diff --git a/pilot/base_modules/agent/controller.py b/pilot/base_modules/agent/controller.py index 47532a66b..92ca2f477 100644 --- a/pilot/base_modules/agent/controller.py +++ b/pilot/base_modules/agent/controller.py @@ -69,8 +69,10 @@ async def agent_hub_update(update_param: PluginHubParam = Body()): logger.info(f"agent_hub_update:{update_param.__dict__}") try: agent_hub = AgentHub(PLUGINS_DIR) + branch = update_param.branch if update_param.branch is not None and len(update_param.branch) > 0 else "main" + authorization = update_param.authorization if update_param.branch is not None and len(update_param.branch) > 0 else None agent_hub.refresh_hub_from_git( - update_param.url, update_param.branch, update_param.authorization + update_param.url, branch, authorization ) return Result.succ(None) except Exception as e: diff --git a/pilot/base_modules/agent/hub/agent_hub.py b/pilot/base_modules/agent/hub/agent_hub.py index 3af9c722e..29cd49fc3 100644 --- a/pilot/base_modules/agent/hub/agent_hub.py +++ b/pilot/base_modules/agent/hub/agent_hub.py @@ -125,7 +125,7 @@ class AgentHub: my_plugin_entity.version = hub_plugin.version return my_plugin_entity - def refresh_hub_from_git(self, github_repo: str = None, branch_name: str = None, authorization: str = None): + def refresh_hub_from_git(self, github_repo: str = None, branch_name: str = "main", authorization: str = None): logger.info("refresh_hub_by_git start!") update_from_git(self.temp_hub_file_path, github_repo, branch_name, authorization) git_plugins = scan_plugins(self.temp_hub_file_path) diff --git a/pilot/connections/base.py b/pilot/connections/base.py index 028f4f71e..c380a1455 100644 --- a/pilot/connections/base.py +++ b/pilot/connections/base.py @@ -34,6 +34,9 @@ class BaseConnect(ABC): def run(self, session, command: str, fetch: str = "all") -> List: pass + def run_to_df(self, command: str, fetch: str = "all"): + pass + def get_users(self): pass diff --git a/pilot/connections/rdbms/base.py b/pilot/connections/rdbms/base.py index 97d90e344..a6c9fe7f7 100644 --- a/pilot/connections/rdbms/base.py +++ b/pilot/connections/rdbms/base.py @@ -3,7 +3,7 @@ from urllib.parse import quote import warnings import sqlparse import regex as re - +import pandas as pd from typing import Any, Iterable, List, Optional from pydantic import BaseModel, Field, root_validator, validator, Extra from abc import ABC, abstractmethod @@ -357,7 +357,13 @@ class RDBMSDatabase(BaseConnect): else: return self.__query(f"SHOW COLUMNS FROM {table_name}") - def run_no_throw(self, session, command: str, fetch: str = "all") -> List: + def run_to_df(self, command: str, fetch: str = "all"): + result_lst = self.run(command, fetch) + colunms = result_lst[0] + values = result_lst[1:] + return pd.DataFrame(values, columns=colunms) + + def run_no_throw(self, command: str, fetch: str = "all") -> List: """Execute a SQL command and return a string representing the results. If the statement returns rows, a string of the results is returned. @@ -366,7 +372,7 @@ class RDBMSDatabase(BaseConnect): If the statement throws an error, the error message is returned. """ try: - return self.run(session, command, fetch) + return self.run( command, fetch) except SQLAlchemyError as e: """Format the error message""" return f"Error: {e}" diff --git a/pilot/scene/chat_agent/prompt.py b/pilot/scene/chat_agent/prompt.py index a42fd6363..7d01bfd2f 100644 --- a/pilot/scene/chat_agent/prompt.py +++ b/pilot/scene/chat_agent/prompt.py @@ -16,11 +16,14 @@ You need to analyze the user goals and, under the given constraints, prioritize Tool list: {tool_list} Constraint: - 1. After selecting an available tool, please ensure that the output results include the following parts to use the tool: - Selected Tool namevalue - 2. If you cannot analyze the exact tool for the problem, you can consider using the search engine tool among the tools first. - 3. Parameter content may need to be inferred based on the user's goals, not just extracted from text - 4. If you cannot find a suitable tool, please answer Unable to complete the goal. + 1. After finding the available tools from the tool list given below, please output the following content to use the tool. Please make sure that the following content only appears once in the output result: + Selected Tool namevaluevalue + 2. Please generate the above call text according to the definition of the corresponding tool in the tool list. The reference case is as follows: + Introduction to tool function: "Tool name", args: "Parameter 1": "", "Parameter 2": "" Corresponding call text: < name>Tool namevaluevalue + 3. Generate the call of each tool according to the above constraints. The prompt text for tool use needs to be generated before the tool is used. + 4. If the user goals cannot be understood and the intention is unclear, give priority to using search engine tools + 5. Parameter content may need to be inferred based on the user's goals, not just extracted from text + 6. Constraint conditions and tool information are used as auxiliary information for the reasoning process and should not be expressed in the output content to the user. {expand_constraints} User goals: {user_goal} diff --git a/pilot/scene/chat_data/chat_excel/excel_analyze/prompt.py b/pilot/scene/chat_data/chat_excel/excel_analyze/prompt.py index 1a350a0e2..23c86bd4d 100644 --- a/pilot/scene/chat_data/chat_excel/excel_analyze/prompt.py +++ b/pilot/scene/chat_data/chat_excel/excel_analyze/prompt.py @@ -35,7 +35,7 @@ _DEFAULT_TEMPLATE_ZH = """ 5.优先使用数据分析的方式回答,如果用户问题不涉及数据分析内容,你可以按你的理解进行回答 6.请确保你的输出内容有良好排版,输出内容均为普通markdown文本,不要用```或者```python这种标签来包围的输出内容 请确保你的输出格式如下: - 输出给用户的分析文本信息.[数据展示方式][正确的duckdb数据分析sql] + 分析思路简介.[数据展示方式][正确的duckdb数据分析sql] 用户问题:{user_input} """ diff --git a/pilot/scene/chat_data/chat_excel/excel_reader.py b/pilot/scene/chat_data/chat_excel/excel_reader.py index c9e4aa785..4037840af 100644 --- a/pilot/scene/chat_data/chat_excel/excel_reader.py +++ b/pilot/scene/chat_data/chat_excel/excel_reader.py @@ -5,7 +5,6 @@ import os import re import sqlparse -import pandas as pd import chardet import pandas as pd import numpy as np diff --git a/pilot/server/static/404.html b/pilot/server/static/404.html index 206730555..08c6daf30 100644 --- a/pilot/server/static/404.html +++ b/pilot/server/static/404.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/pilot/server/static/404/index.html b/pilot/server/static/404/index.html index 206730555..08c6daf30 100644 --- a/pilot/server/static/404/index.html +++ b/pilot/server/static/404/index.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/104-953a3907bb8d7bfd.js b/pilot/server/static/_next/static/chunks/104-953a3907bb8d7bfd.js deleted file mode 100644 index 6ca0f2040..000000000 --- a/pilot/server/static/_next/static/chunks/104-953a3907bb8d7bfd.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[104],{6321:function(t,i,e){e.d(i,{Z:function(){return c}});var n=e(87462),o=e(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 244c176.18 0 319 142.82 319 319v233a32 32 0 01-32 32H225a32 32 0 01-32-32V563c0-176.18 142.82-319 319-319zM484 68h56a8 8 0 018 8v96a8 8 0 01-8 8h-56a8 8 0 01-8-8V76a8 8 0 018-8zM177.25 191.66a8 8 0 0111.32 0l67.88 67.88a8 8 0 010 11.31l-39.6 39.6a8 8 0 01-11.31 0l-67.88-67.88a8 8 0 010-11.31l39.6-39.6zm669.6 0l39.6 39.6a8 8 0 010 11.3l-67.88 67.9a8 8 0 01-11.32 0l-39.6-39.6a8 8 0 010-11.32l67.89-67.88a8 8 0 0111.31 0zM192 892h640a32 32 0 0132 32v24a8 8 0 01-8 8H168a8 8 0 01-8-8v-24a32 32 0 0132-32zm148-317v253h64V575h-64z"}}]},name:"alert",theme:"filled"},a=e(84089),c=o.forwardRef(function(t,i){return o.createElement(a.Z,(0,n.Z)({},t,{ref:i,icon:r}))})},27704:function(t,i,e){e.d(i,{Z:function(){return c}});var n=e(87462),o=e(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z"}}]},name:"delete",theme:"filled"},a=e(84089),c=o.forwardRef(function(t,i){return o.createElement(a.Z,(0,n.Z)({},t,{ref:i,icon:r}))})},31326:function(t,i,e){e.d(i,{Z:function(){return c}});var n=e(87462),o=e(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M396 512a112 112 0 10224 0 112 112 0 10-224 0zm546.2-25.8C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM508 688c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z"}}]},name:"eye",theme:"filled"},a=e(84089),c=o.forwardRef(function(t,i){return o.createElement(a.Z,(0,n.Z)({},t,{ref:i,icon:r}))})},31545:function(t,i,e){e.d(i,{Z:function(){return c}});var n=e(87462),o=e(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 000-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"file-search",theme:"outlined"},a=e(84089),c=o.forwardRef(function(t,i){return o.createElement(a.Z,(0,n.Z)({},t,{ref:i,icon:r}))})},27595:function(t,i,e){e.d(i,{Z:function(){return c}});var n=e(87462),o=e(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"},a=e(84089),c=o.forwardRef(function(t,i){return o.createElement(a.Z,(0,n.Z)({},t,{ref:i,icon:r}))})},27329:function(t,i,e){e.d(i,{Z:function(){return c}});var n=e(87462),o=e(67294),r={icon:function(t,i){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42zm101.3 129.3c1.3-5.4 6.1-9.3 11.7-9.3h35.6a12.04 12.04 0 0111.6 15.1l-74.4 276c-1.4 5.3-6.2 8.9-11.6 8.9h-31.8c-5.4 0-10.2-3.7-11.6-8.9l-52.8-197-52.8 197c-1.4 5.3-6.2 8.9-11.6 8.9h-32c-5.4 0-10.2-3.7-11.6-8.9l-74.2-276a12.02 12.02 0 0111.6-15.1h35.4c5.6 0 10.4 3.9 11.7 9.3L434.6 680l49.7-198.9c1.3-5.4 6.1-9.1 11.6-9.1h32.2c5.5 0 10.3 3.7 11.6 9.1l49.8 199.3 45.8-199.1z",fill:i}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}},{tag:"path",attrs:{d:"M528.1 472h-32.2c-5.5 0-10.3 3.7-11.6 9.1L434.6 680l-46.1-198.7c-1.3-5.4-6.1-9.3-11.7-9.3h-35.4a12.02 12.02 0 00-11.6 15.1l74.2 276c1.4 5.2 6.2 8.9 11.6 8.9h32c5.4 0 10.2-3.6 11.6-8.9l52.8-197 52.8 197c1.4 5.2 6.2 8.9 11.6 8.9h31.8c5.4 0 10.2-3.6 11.6-8.9l74.4-276a12.04 12.04 0 00-11.6-15.1H647c-5.6 0-10.4 3.9-11.7 9.3l-45.8 199.1-49.8-199.3c-1.3-5.4-6.1-9.1-11.6-9.1z",fill:t}}]}},name:"file-word",theme:"twotone"},a=e(84089),c=o.forwardRef(function(t,i){return o.createElement(a.Z,(0,n.Z)({},t,{ref:i,icon:r}))})},68346:function(t,i,e){e.d(i,{Z:function(){return c}});var n=e(87462),o=e(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M693.6 284.4c-24 0-51.1 11.7-72.6 22 46.3 18 86 57.3 112.3 99.6 7.1-18.9 14.6-47.9 14.6-67.9 0-32-22.8-53.7-54.3-53.7zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm253.9 492.9H437.1c0 100.4 144.3 136 196.8 47.4h120.8c-32.6 91.7-119.7 146-216.8 146-35.1 0-70.3-.1-101.7-15.6-87.4 44.5-180.3 56.6-180.3-42 0-45.8 23.2-107.1 44-145C335 484 381.3 422.8 435.6 374.5c-43.7 18.9-91.1 66.3-122 101.2 25.9-112.8 129.5-193.6 237.1-186.5 130-59.8 209.7-34.1 209.7 38.6 0 27.4-10.6 63.3-21.4 87.9 25.2 45.5 33.3 97.6 26.9 141.2zM540.5 399.1c-53.7 0-102 39.7-104 94.9h208c-2-55.1-50.6-94.9-104-94.9zM320.6 602.9c-73 152.4 11.5 172.2 100.3 123.3-46.6-27.5-82.6-72.2-100.3-123.3z"}}]},name:"ie-circle",theme:"filled"},a=e(84089),c=o.forwardRef(function(t,i){return o.createElement(a.Z,(0,n.Z)({},t,{ref:i,icon:r}))})},64082:function(t,i,e){e.d(i,{Z:function(){return c}});var n=e(87462),o=e(67294),r={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},a=e(84089),c=o.forwardRef(function(t,i){return o.createElement(a.Z,(0,n.Z)({},t,{ref:i,icon:r}))})},88008:function(t,i,e){e.d(i,{Z:function(){return c}});var n=e(87462),o=e(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM726 585.7c0 55.3-44.7 100.1-99.7 100.1H420.6v53.4c0 5.7-6.5 8.8-10.9 5.3l-109.1-85.7c-3.5-2.7-3.5-8 0-10.7l109.1-85.7c4.4-3.5 10.9-.3 10.9 5.3v53.4h205.7c19.6 0 35.5-16 35.5-35.6v-78.9c0-3.7 3-6.8 6.8-6.8h50.7c3.7 0 6.8 3 6.8 6.8v79.1zm-2.6-209.9l-109.1 85.7c-4.4 3.5-10.9.3-10.9-5.3v-53.4H397.7c-19.6 0-35.5 16-35.5 35.6v78.9c0 3.7-3 6.8-6.8 6.8h-50.7c-3.7 0-6.8-3-6.8-6.8v-78.9c0-55.3 44.7-100.1 99.7-100.1h205.7v-53.4c0-5.7 6.5-8.8 10.9-5.3l109.1 85.7c3.6 2.5 3.6 7.8.1 10.5z"}}]},name:"interaction",theme:"filled"},a=e(84089),c=o.forwardRef(function(t,i){return o.createElement(a.Z,(0,n.Z)({},t,{ref:i,icon:r}))})},18754:function(t,i,e){e.d(i,{Z:function(){return c}});var n=e(87462),o=e(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M865.3 244.7c-.3-.3-61.1 59.8-182.1 180.6l-84.9-84.9 180.9-180.9c-95.2-57.3-217.5-42.6-296.8 36.7A244.42 244.42 0 00419 432l1.8 6.7-283.5 283.4c-6.2 6.2-6.2 16.4 0 22.6l141.4 141.4c6.2 6.2 16.4 6.2 22.6 0l283.3-283.3 6.7 1.8c83.7 22.3 173.6-.9 236-63.3 79.4-79.3 94.1-201.6 38-296.6z"}}]},name:"tool",theme:"filled"},a=e(84089),c=o.forwardRef(function(t,i){return o.createElement(a.Z,(0,n.Z)({},t,{ref:i,icon:r}))})},15746:function(t,i,e){var n=e(21584);i.Z=n.Z},96074:function(t,i,e){e.d(i,{Z:function(){return m}});var n=e(94184),o=e.n(n),r=e(67294),a=e(53124),c=e(14747),l=e(67968),s=e(45503);let d=t=>{let{componentCls:i,sizePaddingEdgeHorizontal:e,colorSplit:n,lineWidth:o}=t;return{[i]:Object.assign(Object.assign({},(0,c.Wf)(t)),{borderBlockStart:`${o}px solid ${n}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${t.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${n}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${t.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${i}-with-text`]:{display:"flex",alignItems:"center",margin:`${t.dividerHorizontalWithTextGutterMargin}px 0`,color:t.colorTextHeading,fontWeight:500,fontSize:t.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${n}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${i}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${i}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${i}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:n,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${i}-with-text${i}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${i}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${i}-with-text`]:{color:t.colorText,fontWeight:"normal",fontSize:t.fontSize},[`&-horizontal${i}-with-text-left${i}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${i}-inner-text`]:{paddingInlineStart:e}},[`&-horizontal${i}-with-text-right${i}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${i}-inner-text`]:{paddingInlineEnd:e}}})}};var h=(0,l.Z)("Divider",t=>{let i=(0,s.TS)(t,{dividerVerticalGutterMargin:t.marginXS,dividerHorizontalWithTextGutterMargin:t.margin,dividerHorizontalGutterMargin:t.marginLG});return[d(i)]},{sizePaddingEdgeHorizontal:0}),g=function(t,i){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>i.indexOf(n)&&(e[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(t);oi.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]]);return e},m=t=>{let{getPrefixCls:i,direction:e,divider:n}=r.useContext(a.E_),{prefixCls:c,type:l="horizontal",orientation:s="center",orientationMargin:d,className:m,rootClassName:p,children:$,dashed:u,plain:f,style:b}=t,S=g(t,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),v=i("divider",c),[w,x]=h(v),I=s.length>0?`-${s}`:s,z=!!$,M="left"===s&&null!=d,y="right"===s&&null!=d,C=o()(v,null==n?void 0:n.className,x,`${v}-${l}`,{[`${v}-with-text`]:z,[`${v}-with-text${I}`]:z,[`${v}-dashed`]:!!u,[`${v}-plain`]:!!f,[`${v}-rtl`]:"rtl"===e,[`${v}-no-default-orientation-margin-left`]:M,[`${v}-no-default-orientation-margin-right`]:y},m,p),k=r.useMemo(()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d,[d]),E=Object.assign(Object.assign({},M&&{marginLeft:k}),y&&{marginRight:k});return w(r.createElement("div",Object.assign({className:C,style:Object.assign(Object.assign({},null==n?void 0:n.style),b)},S,{role:"separator"}),$&&"vertical"!==l&&r.createElement("span",{className:`${v}-inner-text`,style:E},$)))}},25378:function(t,i,e){var n=e(67294),o=e(8410),r=e(57838),a=e(74443);i.Z=function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],i=(0,n.useRef)({}),e=(0,r.Z)(),c=(0,a.Z)();return(0,o.Z)(()=>{let n=c.subscribe(n=>{i.current=n,t&&e()});return()=>c.unsubscribe(n)},[]),i.current}},71230:function(t,i,e){var n=e(92820);i.Z=n.Z},3363:function(t,i,e){e.d(i,{Z:function(){return G}});var n,o,r=e(63606),a=e(97937),c=e(94184),l=e.n(c),s=e(87462),d=e(1413),h=e(4942),g=e(45987),m=e(67294),p=e(15105),$=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function u(t){return"string"==typeof t}var f=function(t){var i,e,n,o,r,a=t.className,c=t.prefixCls,f=t.style,b=t.active,S=t.status,v=t.iconPrefix,w=t.icon,x=(t.wrapperStyle,t.stepNumber),I=t.disabled,z=t.description,M=t.title,y=t.subTitle,C=t.progressDot,k=t.stepIcon,E=t.tailContent,H=t.icons,Z=t.stepIndex,O=t.onStepClick,P=t.onClick,T=t.render,N=(0,g.Z)(t,$),W={};O&&!I&&(W.role="button",W.tabIndex=0,W.onClick=function(t){null==P||P(t),O(Z)},W.onKeyDown=function(t){var i=t.which;(i===p.Z.ENTER||i===p.Z.SPACE)&&O(Z)});var j=S||"wait",X=l()("".concat(c,"-item"),"".concat(c,"-item-").concat(j),a,(r={},(0,h.Z)(r,"".concat(c,"-item-custom"),w),(0,h.Z)(r,"".concat(c,"-item-active"),b),(0,h.Z)(r,"".concat(c,"-item-disabled"),!0===I),r)),B=(0,d.Z)({},f),D=m.createElement("div",(0,s.Z)({},N,{className:X,style:B}),m.createElement("div",(0,s.Z)({onClick:P},W,{className:"".concat(c,"-item-container")}),m.createElement("div",{className:"".concat(c,"-item-tail")},E),m.createElement("div",{className:"".concat(c,"-item-icon")},(n=l()("".concat(c,"-icon"),"".concat(v,"icon"),(i={},(0,h.Z)(i,"".concat(v,"icon-").concat(w),w&&u(w)),(0,h.Z)(i,"".concat(v,"icon-check"),!w&&"finish"===S&&(H&&!H.finish||!H)),(0,h.Z)(i,"".concat(v,"icon-cross"),!w&&"error"===S&&(H&&!H.error||!H)),i)),o=m.createElement("span",{className:"".concat(c,"-icon-dot")}),e=C?"function"==typeof C?m.createElement("span",{className:"".concat(c,"-icon")},C(o,{index:x-1,status:S,title:M,description:z})):m.createElement("span",{className:"".concat(c,"-icon")},o):w&&!u(w)?m.createElement("span",{className:"".concat(c,"-icon")},w):H&&H.finish&&"finish"===S?m.createElement("span",{className:"".concat(c,"-icon")},H.finish):H&&H.error&&"error"===S?m.createElement("span",{className:"".concat(c,"-icon")},H.error):w||"finish"===S||"error"===S?m.createElement("span",{className:n}):m.createElement("span",{className:"".concat(c,"-icon")},x),k&&(e=k({index:x-1,status:S,title:M,description:z,node:e})),e)),m.createElement("div",{className:"".concat(c,"-item-content")},m.createElement("div",{className:"".concat(c,"-item-title")},M,y&&m.createElement("div",{title:"string"==typeof y?y:void 0,className:"".concat(c,"-item-subtitle")},y)),z&&m.createElement("div",{className:"".concat(c,"-item-description")},z))));return T&&(D=T(D)||null),D},b=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function S(t){var i,e=t.prefixCls,n=void 0===e?"rc-steps":e,o=t.style,r=void 0===o?{}:o,a=t.className,c=(t.children,t.direction),p=t.type,$=void 0===p?"default":p,u=t.labelPlacement,S=t.iconPrefix,v=void 0===S?"rc":S,w=t.status,x=void 0===w?"process":w,I=t.size,z=t.current,M=void 0===z?0:z,y=t.progressDot,C=t.stepIcon,k=t.initial,E=void 0===k?0:k,H=t.icons,Z=t.onChange,O=t.itemRender,P=t.items,T=(0,g.Z)(t,b),N="inline"===$,W=N||void 0!==y&&y,j=N?"horizontal":void 0===c?"horizontal":c,X=N?void 0:I,B=W?"vertical":void 0===u?"horizontal":u,D=l()(n,"".concat(n,"-").concat(j),a,(i={},(0,h.Z)(i,"".concat(n,"-").concat(X),X),(0,h.Z)(i,"".concat(n,"-label-").concat(B),"horizontal"===j),(0,h.Z)(i,"".concat(n,"-dot"),!!W),(0,h.Z)(i,"".concat(n,"-navigation"),"navigation"===$),(0,h.Z)(i,"".concat(n,"-inline"),N),i)),R=function(t){Z&&M!==t&&Z(t)};return m.createElement("div",(0,s.Z)({className:D,style:r},T),(void 0===P?[]:P).filter(function(t){return t}).map(function(t,i){var e=(0,d.Z)({},t),o=E+i;return"error"===x&&i===M-1&&(e.className="".concat(n,"-next-error")),e.status||(o===M?e.status=x:o{let{componentCls:i,customIconTop:e,customIconSize:n,customIconFontSize:o}=t;return{[`${i}-item-custom`]:{[`> ${i}-item-container > ${i}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${i}-icon`]:{top:e,width:n,height:n,fontSize:o,lineHeight:`${o}px`}}},[`&:not(${i}-vertical)`]:{[`${i}-item-custom`]:{[`${i}-item-icon`]:{width:"auto",background:"none"}}}}},E=t=>{let{componentCls:i,inlineDotSize:e,inlineTitleColor:n,inlineTailColor:o}=t,r=t.paddingXS+t.lineWidth,a={[`${i}-item-container ${i}-item-content ${i}-item-title`]:{color:n}};return{[`&${i}-inline`]:{width:"auto",display:"inline-flex",[`${i}-item`]:{flex:"none","&-container":{padding:`${r}px ${t.paddingXXS}px 0`,margin:`0 ${t.marginXXS/2}px`,borderRadius:t.borderRadiusSM,cursor:"pointer",transition:`background-color ${t.motionDurationMid}`,"&:hover":{background:t.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:e,height:e,marginInlineStart:`calc(50% - ${e/2}px)`,[`> ${i}-icon`]:{top:0},[`${i}-icon-dot`]:{borderRadius:t.fontSizeSM/4}},"&-content":{width:"auto",marginTop:t.marginXS-t.lineWidth},"&-title":{color:n,fontSize:t.fontSizeSM,lineHeight:t.lineHeightSM,fontWeight:"normal",marginBottom:t.marginXXS/2},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:r+e/2,transform:"translateY(-50%)","&:after":{width:"100%",height:t.lineWidth,borderRadius:0,marginInlineStart:0,background:o}},[`&:first-child ${i}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${i}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${i}-item-icon ${i}-icon ${i}-icon-dot`]:{backgroundColor:t.colorBorderBg,border:`${t.lineWidth}px ${t.lineType} ${o}`}},a),"&-finish":Object.assign({[`${i}-item-tail::after`]:{backgroundColor:o},[`${i}-item-icon ${i}-icon ${i}-icon-dot`]:{backgroundColor:o,border:`${t.lineWidth}px ${t.lineType} ${o}`}},a),"&-error":a,"&-active, &-process":Object.assign({[`${i}-item-icon`]:{width:e,height:e,marginInlineStart:`calc(50% - ${e/2}px)`,top:0}},a),[`&:not(${i}-item-active) > ${i}-item-container[role='button']:hover`]:{[`${i}-item-title`]:{color:n}}}}}},H=t=>{let{componentCls:i,iconSize:e,lineHeight:n,iconSizeSM:o}=t;return{[`&${i}-label-vertical`]:{[`${i}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e/2+t.controlHeightLG,padding:`${t.paddingXXS}px ${t.paddingLG}px`},"&-content":{display:"block",width:(e/2+t.controlHeightLG)*2,marginTop:t.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:t.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:t.marginXXS,marginInlineStart:0,lineHeight:n}},[`&${i}-small:not(${i}-dot)`]:{[`${i}-item`]:{"&-icon":{marginInlineStart:t.controlHeightLG+(e-o)/2}}}}}},Z=t=>{let{componentCls:i,navContentMaxWidth:e,navArrowColor:n,stepsNavActiveColor:o,motionDurationSlow:r}=t;return{[`&${i}-navigation`]:{paddingTop:t.paddingSM,[`&${i}-small`]:{[`${i}-item`]:{"&-container":{marginInlineStart:-t.marginSM}}},[`${i}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:-t.margin,paddingBottom:t.paddingSM,textAlign:"start",transition:`opacity ${r}`,[`${i}-item-content`]:{maxWidth:e},[`${i}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},M.vS),{"&::after":{display:"none"}})},[`&:not(${i}-item-active)`]:{[`${i}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${t.paddingSM/2}px)`,insetInlineStart:"100%",display:"inline-block",width:t.fontSizeIcon,height:t.fontSizeIcon,borderTop:`${t.lineWidth}px ${t.lineType} ${n}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${t.lineWidth}px ${t.lineType} ${n}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:t.lineWidthBold,backgroundColor:o,transition:`width ${r}, inset-inline-start ${r}`,transitionTimingFunction:"ease-out",content:'""'}},[`${i}-item${i}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${i}-navigation${i}-vertical`]:{[`> ${i}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${i}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:3*t.lineWidth,height:`calc(100% - ${t.marginLG}px)`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:.25*t.controlHeight,height:.25*t.controlHeight,marginBottom:t.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${i}-item-container > ${i}-item-tail`]:{visibility:"hidden"}}},[`&${i}-navigation${i}-horizontal`]:{[`> ${i}-item > ${i}-item-container > ${i}-item-tail`]:{visibility:"hidden"}}}},O=t=>{let{antCls:i,componentCls:e}=t;return{[`&${e}-with-progress`]:{[`${e}-item`]:{paddingTop:t.paddingXXS,[`&-process ${e}-item-container ${e}-item-icon ${e}-icon`]:{color:t.processIconColor}},[`&${e}-vertical > ${e}-item `]:{paddingInlineStart:t.paddingXXS,[`> ${e}-item-container > ${e}-item-tail`]:{top:t.marginXXS,insetInlineStart:t.iconSize/2-t.lineWidth+t.paddingXXS}},[`&, &${e}-small`]:{[`&${e}-horizontal ${e}-item:first-child`]:{paddingBottom:t.paddingXXS,paddingInlineStart:t.paddingXXS}},[`&${e}-small${e}-vertical > ${e}-item > ${e}-item-container > ${e}-item-tail`]:{insetInlineStart:t.iconSizeSM/2-t.lineWidth+t.paddingXXS},[`&${e}-label-vertical`]:{[`${e}-item ${e}-item-tail`]:{top:t.margin-2*t.lineWidth}},[`${e}-item-icon`]:{position:"relative",[`${i}-progress`]:{position:"absolute",insetBlockStart:(t.iconSize-t.stepsProgressSize-2*t.lineWidth)/2,insetInlineStart:(t.iconSize-t.stepsProgressSize-2*t.lineWidth)/2}}}}},P=t=>{let{componentCls:i,descriptionMaxWidth:e,lineHeight:n,dotCurrentSize:o,dotSize:r,motionDurationSlow:a}=t;return{[`&${i}-dot, &${i}-dot${i}-small`]:{[`${i}-item`]:{"&-title":{lineHeight:n},"&-tail":{top:Math.floor((t.dotSize-3*t.lineWidth)/2),width:"100%",marginTop:0,marginBottom:0,marginInline:`${e/2}px 0`,padding:0,"&::after":{width:`calc(100% - ${2*t.marginSM}px)`,height:3*t.lineWidth,marginInlineStart:t.marginSM}},"&-icon":{width:r,height:r,marginInlineStart:(t.descriptionMaxWidth-r)/2,paddingInlineEnd:0,lineHeight:`${r}px`,background:"transparent",border:0,[`${i}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${a}`,"&::after":{position:"absolute",top:-t.marginSM,insetInlineStart:(r-1.5*t.controlHeightLG)/2,width:1.5*t.controlHeightLG,height:t.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:e},[`&-process ${i}-item-icon`]:{position:"relative",top:(r-o)/2,width:o,height:o,lineHeight:`${o}px`,background:"none",marginInlineStart:(t.descriptionMaxWidth-o)/2},[`&-process ${i}-icon`]:{[`&:first-child ${i}-icon-dot`]:{insetInlineStart:0}}}},[`&${i}-vertical${i}-dot`]:{[`${i}-item-icon`]:{marginTop:(t.controlHeight-r)/2,marginInlineStart:0,background:"none"},[`${i}-item-process ${i}-item-icon`]:{marginTop:(t.controlHeight-o)/2,top:0,insetInlineStart:(r-o)/2,marginInlineStart:0},[`${i}-item > ${i}-item-container > ${i}-item-tail`]:{top:(t.controlHeight-r)/2,insetInlineStart:0,margin:0,padding:`${r+t.paddingXS}px 0 ${t.paddingXS}px`,"&::after":{marginInlineStart:(r-t.lineWidth)/2}},[`&${i}-small`]:{[`${i}-item-icon`]:{marginTop:(t.controlHeightSM-r)/2},[`${i}-item-process ${i}-item-icon`]:{marginTop:(t.controlHeightSM-o)/2},[`${i}-item > ${i}-item-container > ${i}-item-tail`]:{top:(t.controlHeightSM-r)/2}},[`${i}-item:first-child ${i}-icon-dot`]:{insetInlineStart:0},[`${i}-item-content`]:{width:"inherit"}}}},T=t=>{let{componentCls:i}=t;return{[`&${i}-rtl`]:{direction:"rtl",[`${i}-item`]:{"&-subtitle":{float:"left"}},[`&${i}-navigation`]:{[`${i}-item::after`]:{transform:"rotate(-45deg)"}},[`&${i}-vertical`]:{[`> ${i}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${i}-item-icon`]:{float:"right"}}},[`&${i}-dot`]:{[`${i}-item-icon ${i}-icon-dot, &${i}-small ${i}-item-icon ${i}-icon-dot`]:{float:"right"}}}}},N=t=>{let{componentCls:i,iconSizeSM:e,fontSizeSM:n,fontSize:o,colorTextDescription:r}=t;return{[`&${i}-small`]:{[`&${i}-horizontal:not(${i}-label-vertical) ${i}-item`]:{paddingInlineStart:t.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${i}-item-icon`]:{width:e,height:e,marginTop:0,marginBottom:0,marginInline:`0 ${t.marginXS}px`,fontSize:n,lineHeight:`${e}px`,textAlign:"center",borderRadius:e},[`${i}-item-title`]:{paddingInlineEnd:t.paddingSM,fontSize:o,lineHeight:`${e}px`,"&::after":{top:e/2}},[`${i}-item-description`]:{color:r,fontSize:o},[`${i}-item-tail`]:{top:e/2-t.paddingXXS},[`${i}-item-custom ${i}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${i}-icon`]:{fontSize:e,lineHeight:`${e}px`,transform:"none"}}}}},W=t=>{let{componentCls:i,iconSizeSM:e,iconSize:n}=t;return{[`&${i}-vertical`]:{display:"flex",flexDirection:"column",[`> ${i}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${i}-item-icon`]:{float:"left",marginInlineEnd:t.margin},[`${i}-item-content`]:{display:"block",minHeight:1.5*t.controlHeight,overflow:"hidden"},[`${i}-item-title`]:{lineHeight:`${n}px`},[`${i}-item-description`]:{paddingBottom:t.paddingSM}},[`> ${i}-item > ${i}-item-container > ${i}-item-tail`]:{position:"absolute",top:0,insetInlineStart:n/2-t.lineWidth,width:t.lineWidth,height:"100%",padding:`${n+1.5*t.marginXXS}px 0 ${1.5*t.marginXXS}px`,"&::after":{width:t.lineWidth,height:"100%"}},[`> ${i}-item:not(:last-child) > ${i}-item-container > ${i}-item-tail`]:{display:"block"},[` > ${i}-item > ${i}-item-container > ${i}-item-content > ${i}-item-title`]:{"&::after":{display:"none"}},[`&${i}-small ${i}-item-container`]:{[`${i}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e/2-t.lineWidth,padding:`${e+1.5*t.marginXXS}px 0 ${1.5*t.marginXXS}px`},[`${i}-item-title`]:{lineHeight:`${e}px`}}}}};(n=o||(o={})).wait="wait",n.process="process",n.finish="finish",n.error="error";let j=(t,i)=>{let e=`${i.componentCls}-item`,n=`${t}IconColor`,o=`${t}TitleColor`,r=`${t}DescriptionColor`,a=`${t}TailColor`,c=`${t}IconBgColor`,l=`${t}IconBorderColor`,s=`${t}DotColor`;return{[`${e}-${t} ${e}-icon`]:{backgroundColor:i[c],borderColor:i[l],[`> ${i.componentCls}-icon`]:{color:i[n],[`${i.componentCls}-icon-dot`]:{background:i[s]}}},[`${e}-${t}${e}-custom ${e}-icon`]:{[`> ${i.componentCls}-icon`]:{color:i[s]}},[`${e}-${t} > ${e}-container > ${e}-content > ${e}-title`]:{color:i[o],"&::after":{backgroundColor:i[a]}},[`${e}-${t} > ${e}-container > ${e}-content > ${e}-description`]:{color:i[r]},[`${e}-${t} > ${e}-container > ${e}-tail::after`]:{backgroundColor:i[a]}}},X=t=>{let{componentCls:i,motionDurationSlow:e}=t,n=`${i}-item`,r=`${n}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${n}-container > ${n}-tail, > ${n}-container > ${n}-content > ${n}-title::after`]:{display:"none"}}},[`${n}-container`]:{outline:"none","&:focus-visible":{[r]:Object.assign({},(0,M.oN)(t))}},[`${r}, ${n}-content`]:{display:"inline-block",verticalAlign:"top"},[r]:{width:t.iconSize,height:t.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:t.marginXS,fontSize:t.iconFontSize,fontFamily:t.fontFamily,lineHeight:`${t.iconSize}px`,textAlign:"center",borderRadius:t.iconSize,border:`${t.lineWidth}px ${t.lineType} transparent`,transition:`background-color ${e}, border-color ${e}`,[`${i}-icon`]:{position:"relative",top:t.iconTop,color:t.colorPrimary,lineHeight:1}},[`${n}-tail`]:{position:"absolute",top:t.iconSize/2-t.paddingXXS,insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:t.lineWidth,background:t.colorSplit,borderRadius:t.lineWidth,transition:`background ${e}`,content:'""'}},[`${n}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:t.padding,color:t.colorText,fontSize:t.fontSizeLG,lineHeight:`${t.titleLineHeight}px`,"&::after":{position:"absolute",top:t.titleLineHeight/2,insetInlineStart:"100%",display:"block",width:9999,height:t.lineWidth,background:t.processTailColor,content:'""'}},[`${n}-subtitle`]:{display:"inline",marginInlineStart:t.marginXS,color:t.colorTextDescription,fontWeight:"normal",fontSize:t.fontSize},[`${n}-description`]:{color:t.colorTextDescription,fontSize:t.fontSize}},j(o.wait,t)),j(o.process,t)),{[`${n}-process > ${n}-container > ${n}-title`]:{fontWeight:t.fontWeightStrong}}),j(o.finish,t)),j(o.error,t)),{[`${n}${i}-next-error > ${i}-item-title::after`]:{background:t.colorError},[`${n}-disabled`]:{cursor:"not-allowed"}})},B=t=>{let{componentCls:i,motionDurationSlow:e}=t;return{[`& ${i}-item`]:{[`&:not(${i}-item-active)`]:{[`& > ${i}-item-container[role='button']`]:{cursor:"pointer",[`${i}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${i}-icon`]:{transition:`color ${e}`}},"&:hover":{[`${i}-item`]:{"&-title, &-subtitle, &-description":{color:t.colorPrimary}}}},[`&:not(${i}-item-process)`]:{[`& > ${i}-item-container[role='button']:hover`]:{[`${i}-item`]:{"&-icon":{borderColor:t.colorPrimary,[`${i}-icon`]:{color:t.colorPrimary}}}}}}},[`&${i}-horizontal:not(${i}-label-vertical)`]:{[`${i}-item`]:{paddingInlineStart:t.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${i}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:t.descriptionMaxWidth,whiteSpace:"normal"}}}}},D=t=>{let{componentCls:i}=t;return{[i]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,M.Wf)(t)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),X(t)),B(t)),k(t)),N(t)),W(t)),H(t)),P(t)),Z(t)),T(t)),O(t)),E(t))}};var R=(0,y.Z)("Steps",t=>{let{wireframe:i,colorTextDisabled:e,controlHeightLG:n,colorTextLightSolid:o,colorText:r,colorPrimary:a,colorTextLabel:c,colorTextDescription:l,colorTextQuaternary:s,colorFillContent:d,controlItemBgActive:h,colorError:g,colorBgContainer:m,colorBorderSecondary:p,colorSplit:$}=t,u=(0,C.TS)(t,{processIconColor:o,processTitleColor:r,processDescriptionColor:r,processIconBgColor:a,processIconBorderColor:a,processDotColor:a,processTailColor:$,waitIconColor:i?e:c,waitTitleColor:l,waitDescriptionColor:l,waitTailColor:$,waitIconBgColor:i?m:d,waitIconBorderColor:i?e:"transparent",waitDotColor:e,finishIconColor:a,finishTitleColor:r,finishDescriptionColor:l,finishTailColor:a,finishIconBgColor:i?m:h,finishIconBorderColor:i?a:h,finishDotColor:a,errorIconColor:o,errorTitleColor:g,errorDescriptionColor:g,errorTailColor:$,errorIconBgColor:g,errorIconBorderColor:g,errorDotColor:g,stepsNavActiveColor:a,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:s,inlineTailColor:p});return[D(u)]},t=>{let{colorTextDisabled:i,fontSize:e,controlHeightSM:n,controlHeight:o,controlHeightLG:r,fontSizeHeading3:a}=t;return{titleLineHeight:o,customIconSize:o,customIconTop:0,customIconFontSize:n,iconSize:o,iconTop:-.5,iconFontSize:e,iconSizeSM:a,dotSize:o/4,dotCurrentSize:r/4,navArrowColor:i,navContentMaxWidth:"auto",descriptionMaxWidth:140}}),L=e(50344),A=function(t,i){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>i.indexOf(n)&&(e[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(t);oi.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]]);return e};let V=t=>{let{percent:i,size:e,className:n,rootClassName:o,direction:c,items:s,responsive:d=!0,current:h=0,children:g,style:p}=t,$=A(t,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:u}=(0,x.Z)(d),{getPrefixCls:f,direction:b,steps:M}=m.useContext(v.E_),y=m.useMemo(()=>d&&u?"vertical":c,[u,c]),C=(0,w.Z)(e),k=f("steps",t.prefixCls),[E,H]=R(k),Z="inline"===t.type,O=f("",t.iconPrefix),P=function(t,i){if(t)return t;let e=(0,L.Z)(i).map(t=>{if(m.isValidElement(t)){let{props:i}=t,e=Object.assign({},i);return e}return null});return e.filter(t=>t)}(s,g),T=Z?void 0:i,N=Object.assign(Object.assign({},null==M?void 0:M.style),p),W=l()(null==M?void 0:M.className,{[`${k}-rtl`]:"rtl"===b,[`${k}-with-progress`]:void 0!==T},n,o,H),j={finish:m.createElement(r.Z,{className:`${k}-finish-icon`}),error:m.createElement(a.Z,{className:`${k}-error-icon`})};return E(m.createElement(S,Object.assign({icons:j},$,{style:N,current:h,size:C,items:P,itemRender:Z?(t,i)=>t.description?m.createElement(z.Z,{title:t.description},i):i:void 0,stepIcon:t=>{let{node:i,status:e}=t;return"process"===e&&void 0!==T?m.createElement("div",{className:`${k}-progress-icon`},m.createElement(I.Z,{type:"circle",percent:T,size:"small"===C?32:40,strokeWidth:4,format:()=>null}),i):i},direction:y,prefixCls:k,iconPrefix:O,className:W})))};V.Step=S.Step;var G=V},72269:function(t,i,e){e.d(i,{Z:function(){return Z}});var n=e(50888),o=e(94184),r=e.n(o),a=e(87462),c=e(4942),l=e(97685),s=e(45987),d=e(67294),h=e(21770),g=e(15105),m=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],p=d.forwardRef(function(t,i){var e,n=t.prefixCls,o=void 0===n?"rc-switch":n,p=t.className,$=t.checked,u=t.defaultChecked,f=t.disabled,b=t.loadingIcon,S=t.checkedChildren,v=t.unCheckedChildren,w=t.onClick,x=t.onChange,I=t.onKeyDown,z=(0,s.Z)(t,m),M=(0,h.Z)(!1,{value:$,defaultValue:u}),y=(0,l.Z)(M,2),C=y[0],k=y[1];function E(t,i){var e=C;return f||(k(e=t),null==x||x(e,i)),e}var H=r()(o,p,(e={},(0,c.Z)(e,"".concat(o,"-checked"),C),(0,c.Z)(e,"".concat(o,"-disabled"),f),e));return d.createElement("button",(0,a.Z)({},z,{type:"button",role:"switch","aria-checked":C,disabled:f,className:H,ref:i,onKeyDown:function(t){t.which===g.Z.LEFT?E(!1,t):t.which===g.Z.RIGHT&&E(!0,t),null==I||I(t)},onClick:function(t){var i=E(!C,t);null==w||w(i,t)}}),b,d.createElement("span",{className:"".concat(o,"-inner")},d.createElement("span",{className:"".concat(o,"-inner-checked")},S),d.createElement("span",{className:"".concat(o,"-inner-unchecked")},v)))});p.displayName="Switch";var $=e(45353),u=e(53124),f=e(98866),b=e(98675),S=e(10274),v=e(14747),w=e(67968),x=e(45503);let I=t=>{let{componentCls:i}=t,e=`${i}-inner`;return{[i]:{[`&${i}-small`]:{minWidth:t.switchMinWidthSM,height:t.switchHeightSM,lineHeight:`${t.switchHeightSM}px`,[`${i}-inner`]:{paddingInlineStart:t.switchInnerMarginMaxSM,paddingInlineEnd:t.switchInnerMarginMinSM,[`${e}-checked`]:{marginInlineStart:`calc(-100% + ${t.switchPinSizeSM+2*t.switchPadding}px - ${2*t.switchInnerMarginMaxSM}px)`,marginInlineEnd:`calc(100% - ${t.switchPinSizeSM+2*t.switchPadding}px + ${2*t.switchInnerMarginMaxSM}px)`},[`${e}-unchecked`]:{marginTop:-t.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${i}-handle`]:{width:t.switchPinSizeSM,height:t.switchPinSizeSM},[`${i}-loading-icon`]:{top:(t.switchPinSizeSM-t.switchLoadingIconSize)/2,fontSize:t.switchLoadingIconSize},[`&${i}-checked`]:{[`${i}-inner`]:{paddingInlineStart:t.switchInnerMarginMinSM,paddingInlineEnd:t.switchInnerMarginMaxSM,[`${e}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${e}-unchecked`]:{marginInlineStart:`calc(100% - ${t.switchPinSizeSM+2*t.switchPadding}px + ${2*t.switchInnerMarginMaxSM}px)`,marginInlineEnd:`calc(-100% + ${t.switchPinSizeSM+2*t.switchPadding}px - ${2*t.switchInnerMarginMaxSM}px)`}},[`${i}-handle`]:{insetInlineStart:`calc(100% - ${t.switchPinSizeSM+t.switchPadding}px)`}},[`&:not(${i}-disabled):active`]:{[`&:not(${i}-checked) ${e}`]:{[`${e}-unchecked`]:{marginInlineStart:t.marginXXS/2,marginInlineEnd:-t.marginXXS/2}},[`&${i}-checked ${e}`]:{[`${e}-checked`]:{marginInlineStart:-t.marginXXS/2,marginInlineEnd:t.marginXXS/2}}}}}}},z=t=>{let{componentCls:i}=t;return{[i]:{[`${i}-loading-icon${t.iconCls}`]:{position:"relative",top:(t.switchPinSize-t.fontSize)/2,color:t.switchLoadingIconColor,verticalAlign:"top"},[`&${i}-checked ${i}-loading-icon`]:{color:t.switchColor}}}},M=t=>{let{componentCls:i,motion:e}=t,n=`${i}-handle`;return{[i]:{[n]:{position:"absolute",top:t.switchPadding,insetInlineStart:t.switchPadding,width:t.switchPinSize,height:t.switchPinSize,transition:`all ${t.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:t.colorWhite,borderRadius:t.switchPinSize/2,boxShadow:t.switchHandleShadow,transition:`all ${t.switchDuration} ease-in-out`,content:'""'}},[`&${i}-checked ${n}`]:{insetInlineStart:`calc(100% - ${t.switchPinSize+t.switchPadding}px)`},[`&:not(${i}-disabled):active`]:e?{[`${n}::before`]:{insetInlineEnd:t.switchHandleActiveInset,insetInlineStart:0},[`&${i}-checked ${n}::before`]:{insetInlineEnd:0,insetInlineStart:t.switchHandleActiveInset}}:{}}}},y=t=>{let{componentCls:i}=t,e=`${i}-inner`;return{[i]:{[e]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:t.switchInnerMarginMax,paddingInlineEnd:t.switchInnerMarginMin,transition:`padding-inline-start ${t.switchDuration} ease-in-out, padding-inline-end ${t.switchDuration} ease-in-out`,[`${e}-checked, ${e}-unchecked`]:{display:"block",color:t.colorTextLightSolid,fontSize:t.fontSizeSM,transition:`margin-inline-start ${t.switchDuration} ease-in-out, margin-inline-end ${t.switchDuration} ease-in-out`,pointerEvents:"none"},[`${e}-checked`]:{marginInlineStart:`calc(-100% + ${t.switchPinSize+2*t.switchPadding}px - ${2*t.switchInnerMarginMax}px)`,marginInlineEnd:`calc(100% - ${t.switchPinSize+2*t.switchPadding}px + ${2*t.switchInnerMarginMax}px)`},[`${e}-unchecked`]:{marginTop:-t.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${i}-checked ${e}`]:{paddingInlineStart:t.switchInnerMarginMin,paddingInlineEnd:t.switchInnerMarginMax,[`${e}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${e}-unchecked`]:{marginInlineStart:`calc(100% - ${t.switchPinSize+2*t.switchPadding}px + ${2*t.switchInnerMarginMax}px)`,marginInlineEnd:`calc(-100% + ${t.switchPinSize+2*t.switchPadding}px - ${2*t.switchInnerMarginMax}px)`}},[`&:not(${i}-disabled):active`]:{[`&:not(${i}-checked) ${e}`]:{[`${e}-unchecked`]:{marginInlineStart:2*t.switchPadding,marginInlineEnd:-(2*t.switchPadding)}},[`&${i}-checked ${e}`]:{[`${e}-checked`]:{marginInlineStart:-(2*t.switchPadding),marginInlineEnd:2*t.switchPadding}}}}}},C=t=>{let{componentCls:i}=t;return{[i]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,v.Wf)(t)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:t.switchMinWidth,height:t.switchHeight,lineHeight:`${t.switchHeight}px`,verticalAlign:"middle",background:t.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${t.motionDurationMid}`,userSelect:"none",[`&:hover:not(${i}-disabled)`]:{background:t.colorTextTertiary}}),(0,v.Qy)(t)),{[`&${i}-checked`]:{background:t.switchColor,[`&:hover:not(${i}-disabled)`]:{background:t.colorPrimaryHover}},[`&${i}-loading, &${i}-disabled`]:{cursor:"not-allowed",opacity:t.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${i}-rtl`]:{direction:"rtl"}})}};var k=(0,w.Z)("Switch",t=>{let i=t.fontSize*t.lineHeight,e=t.controlHeight/2,n=i-4,o=e-4,r=(0,x.TS)(t,{switchMinWidth:2*n+8,switchHeight:i,switchDuration:t.motionDurationMid,switchColor:t.colorPrimary,switchDisabledOpacity:t.opacityLoading,switchInnerMarginMin:n/2,switchInnerMarginMax:n+2+4,switchPadding:2,switchPinSize:n,switchBg:t.colorBgContainer,switchMinWidthSM:2*o+4,switchHeightSM:e,switchInnerMarginMinSM:o/2,switchInnerMarginMaxSM:o+2+4,switchPinSizeSM:o,switchHandleShadow:`0 2px 4px 0 ${new S.C("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:.75*t.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${t.opacityLoading})`,switchHandleActiveInset:"-30%"});return[C(r),y(r),M(r),z(r),I(r)]}),E=function(t,i){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>i.indexOf(n)&&(e[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(t);oi.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]]);return e};let H=d.forwardRef((t,i)=>{let{prefixCls:e,size:o,disabled:a,loading:c,className:l,rootClassName:s,style:h}=t,g=E(t,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:m,direction:S,switch:v}=d.useContext(u.E_),w=d.useContext(f.Z),x=(null!=a?a:w)||c,I=m("switch",e),z=d.createElement("div",{className:`${I}-handle`},c&&d.createElement(n.Z,{className:`${I}-loading-icon`})),[M,y]=k(I),C=(0,b.Z)(o),H=r()(null==v?void 0:v.className,{[`${I}-small`]:"small"===C,[`${I}-loading`]:c,[`${I}-rtl`]:"rtl"===S},l,s,y),Z=Object.assign(Object.assign({},null==v?void 0:v.style),h);return M(d.createElement($.Z,{component:"Switch"},d.createElement(p,Object.assign({},g,{prefixCls:I,className:H,style:Z,disabled:x,ref:i,loadingIcon:z}))))});H.__ANT_SWITCH=!0;var Z=H}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/997.193eae2dde151aaf.js b/pilot/server/static/_next/static/chunks/207.60c86d63a2e1860f.js similarity index 93% rename from pilot/server/static/_next/static/chunks/997.193eae2dde151aaf.js rename to pilot/server/static/_next/static/chunks/207.60c86d63a2e1860f.js index 4ae2eb40c..54fabbb53 100644 --- a/pilot/server/static/_next/static/chunks/997.193eae2dde151aaf.js +++ b/pilot/server/static/_next/static/chunks/207.60c86d63a2e1860f.js @@ -1,4 +1,4 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[997],{96991:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 144H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zM464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16z"}}]},name:"appstore",theme:"filled"},s=i(84089),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},29158:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},s=i(84089),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},49591:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h360c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H184V184h656v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM653.3 599.4l52.2-52.2a8.01 8.01 0 00-4.7-13.6l-179.4-21c-5.1-.6-9.5 3.7-8.9 8.9l21 179.4c.8 6.6 8.9 9.4 13.6 4.7l52.4-52.4 256.2 256.2c3.1 3.1 8.2 3.1 11.3 0l42.4-42.4c3.1-3.1 3.1-8.2 0-11.3L653.3 599.4z"}}]},name:"select",theme:"outlined"},s=i(84089),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},88484:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},s=i(84089),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},90494:function(e,t){"use strict";var i=function(){function e(){this._events={}}return e.prototype.on=function(e,t,i){return this._events[e]||(this._events[e]=[]),this._events[e].push({callback:t,once:!!i}),this},e.prototype.once=function(e,t){return this.on(e,t,!0)},e.prototype.emit=function(e){for(var t=this,i=[],n=1;n=0&&t._call.call(null,e),t=t._next;--u}()}finally{u=0,function(){for(var e,t,i=n,o=1/0;i;)i._call?(o>i._time&&(o=i._time),e=i,i=i._next):(t=i._next,i._next=null,i=e?e._next=t:n=t);r=e,b(o)}(),p=0}}function T(){var e=m.now(),t=e-g;t>1e3&&(f-=t,g=e)}function b(e){!u&&(d&&(d=clearTimeout(d)),e-p>24?(e<1/0&&(d=setTimeout(y,e-m.now()-f)),c&&(c=clearInterval(c))):(c||(g=m.now(),c=setInterval(T,1e3)),u=1,v(y)))}function A(e,t,i){e.prototype=t.prototype=i,i.constructor=e}function R(e,t){var i=Object.create(e.prototype);for(var n in t)i[n]=t[n];return i}function L(){}C.prototype=S.prototype={constructor:C,restart:function(e,t,i){if("function"!=typeof e)throw TypeError("callback is not a function");i=(null==i?E():+i)+(null==t?0:+t),this._next||r===this||(r?r._next=this:n=this,r=this),this._call=e,this._time=i,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}};var N="\\s*([+-]?\\d+)\\s*",I="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",w="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",O=/^#([0-9a-f]{3,8})$/,x=RegExp(`^rgb\\(${N},${N},${N}\\)$`),D=RegExp(`^rgb\\(${w},${w},${w}\\)$`),M=RegExp(`^rgba\\(${N},${N},${N},${I}\\)$`),k=RegExp(`^rgba\\(${w},${w},${w},${I}\\)$`),P=RegExp(`^hsl\\(${I},${w},${w}\\)$`),F=RegExp(`^hsla\\(${I},${w},${w},${I}\\)$`),B={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function U(){return this.rgb().formatHex()}function H(){return this.rgb().formatRgb()}function V(e){var t,i;return e=(e+"").trim().toLowerCase(),(t=O.exec(e))?(i=t[1].length,t=parseInt(t[1],16),6===i?W(t):3===i?new Y(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?G(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?G(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=x.exec(e))?new Y(t[1],t[2],t[3],1):(t=D.exec(e))?new Y(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=M.exec(e))?G(t[1],t[2],t[3],t[4]):(t=k.exec(e))?G(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=P.exec(e))?Z(t[1],t[2]/100,t[3]/100,1):(t=F.exec(e))?Z(t[1],t[2]/100,t[3]/100,t[4]):B.hasOwnProperty(e)?W(B[e]):"transparent"===e?new Y(NaN,NaN,NaN,0):null}function W(e){return new Y(e>>16&255,e>>8&255,255&e,1)}function G(e,t,i,n){return n<=0&&(e=t=i=NaN),new Y(e,t,i,n)}function z(e,t,i,n){var r;return 1==arguments.length?((r=e)instanceof L||(r=V(r)),r)?(r=r.rgb(),new Y(r.r,r.g,r.b,r.opacity)):new Y:new Y(e,t,i,null==n?1:n)}function Y(e,t,i,n){this.r=+e,this.g=+t,this.b=+i,this.opacity=+n}function K(){return`#${q(this.r)}${q(this.g)}${q(this.b)}`}function $(){let e=X(this.opacity);return`${1===e?"rgb(":"rgba("}${j(this.r)}, ${j(this.g)}, ${j(this.b)}${1===e?")":`, ${e})`}`}function X(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function j(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function q(e){return((e=j(e))<16?"0":"")+e.toString(16)}function Z(e,t,i,n){return n<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new Q(e,t,i,n)}function J(e){if(e instanceof Q)return new Q(e.h,e.s,e.l,e.opacity);if(e instanceof L||(e=V(e)),!e)return new Q;if(e instanceof Q)return e;var t=(e=e.rgb()).r/255,i=e.g/255,n=e.b/255,r=Math.min(t,i,n),o=Math.max(t,i,n),s=NaN,a=o-r,l=(o+r)/2;return a?(s=t===o?(i-n)/a+(i0&&l<1?0:s,new Q(s,a,l,e.opacity)}function Q(e,t,i,n){this.h=+e,this.s=+t,this.l=+i,this.opacity=+n}function ee(e){return(e=(e||0)%360)<0?e+360:e}function et(e){return Math.max(0,Math.min(1,e||0))}function ei(e,t,i){return(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)*255}function en(e,t,i,n,r){var o=e*e,s=o*e;return((1-3*e+3*o-s)*t+(4-6*o+3*s)*i+(1+3*e+3*o-3*s)*n+s*r)/6}A(L,V,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:U,formatHex:U,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return J(this).formatHsl()},formatRgb:H,toString:H}),A(Y,z,R(L,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new Y(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Y(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Y(j(this.r),j(this.g),j(this.b),X(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:K,formatHex:K,formatHex8:function(){return`#${q(this.r)}${q(this.g)}${q(this.b)}${q((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:$,toString:$})),A(Q,function(e,t,i,n){return 1==arguments.length?J(e):new Q(e,t,i,null==n?1:n)},R(L,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new Q(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Q(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,n=i+(i<.5?i:1-i)*t,r=2*i-n;return new Y(ei(e>=240?e-240:e+120,r,n),ei(e,r,n),ei(e<120?e+240:e-120,r,n),this.opacity)},clamp(){return new Q(ee(this.h),et(this.s),et(this.l),X(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=X(this.opacity);return`${1===e?"hsl(":"hsla("}${ee(this.h)}, ${100*et(this.s)}%, ${100*et(this.l)}%${1===e?")":`, ${e})`}`}}));var er=e=>()=>e;function eo(e,t){var i=t-e;return i?function(t){return e+t*i}:er(isNaN(e)?t:e)}var es=function e(t){var i,n=1==(i=+(i=t))?eo:function(e,t){var n,r,o;return t-e?(n=e,r=t,n=Math.pow(n,o=i),r=Math.pow(r,o)-n,o=1/o,function(e){return Math.pow(n+e*r,o)}):er(isNaN(e)?t:e)};function r(e,t){var i=n((e=z(e)).r,(t=z(t)).r),r=n(e.g,t.g),o=n(e.b,t.b),s=eo(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=r(t),e.b=o(t),e.opacity=s(t),e+""}}return r.gamma=e,r}(1);function ea(e){return function(t){var i,n,r=t.length,o=Array(r),s=Array(r),a=Array(r);for(i=0;i=1?(i=1,t-1):Math.floor(i*t),r=e[n],o=e[n+1],s=n>0?e[n-1]:2*r-o,a=na&&(s=t.slice(a,s),h[l]?h[l]+=s:h[++l]=s),(r=r[0])===(o=o[0])?h[l]?h[l]+=o:h[++l]=o:(h[++l]=null,u.push({i:l,x:ec(r,o)})),a=ef.lastIndex;return a0){for(var o=n.animators.length-1;o>=0;o--){if((e=n.animators[o]).destroyed){n.removeAnimator(o);continue}if(!e.isAnimatePaused()){t=e.get("animations");for(var s=t.length-1;s>=0;s--)(function(e,t,i){var n,r=t.startTime;if(id.length?(u=e_.parsePathString(s[a]),d=e_.parsePathString(o[a]),d=e_.fillPathByDiff(d,u),d=e_.formatPath(d,u),t.fromAttrs.path=d,t.toAttrs.path=u):t.pathFormatted||(u=e_.parsePathString(s[a]),d=e_.parsePathString(o[a]),d=e_.formatPath(d,u),t.fromAttrs.path=d,t.toAttrs.path=u,t.pathFormatted=!0),r[a]=[];for(var c=0;c120||h*h+u*u>40?a&&a.get("draggable")?((o=this.mousedownShape).set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",i,e,o),this.mousedownShape=null,this.mousedownPoint=null):!a&&n.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",i,e,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(i,e,r,t),this._emitEvent("mousemove",i,e,t)):(this._emitMouseoverEvents(i,e,r,t),this._emitEvent("mousemove",i,e,t))}else this._emitMouseoverEvents(i,e,r,t),this._emitEvent("mousemove",i,e,t)}},e.prototype._emitEvent=function(e,t,i,n,r,o){var s=this._getEventObj(e,t,i,n,r,o);if(n){s.shape=n,eb(n,e,s);for(var a=n.getParent();a;)a.emitDelegation(e,s),s.propagationStopped||function(e,t,i){if(i.bubbles){var n=void 0,r=!1;if("mouseenter"===t?(n=i.fromShape,r=!0):"mouseleave"===t&&(r=!0,n=i.toShape),!e.isCanvas()||!r){if(n&&(0,l.UY)(e,n)){i.bubbles=!1;return}i.name=t,i.currentTarget=e,i.delegateTarget=e,e.emit(t,i)}}}(a,e,s),s.propagationPath.push(a),a=a.getParent()}else eb(this.canvas,e,s)},e.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},e}(),eR=(0,s.qY)(),eL=eR&&"firefox"===eR.name,eN=function(e){function t(t){var i=e.call(this,t)||this;return i.initContainer(),i.initDom(),i.initEvents(),i.initTimeline(),i}return(0,o.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.cursor="default",t.supportCSSTransform=!1,t},t.prototype.initContainer=function(){var e=this.get("container");(0,l.HD)(e)&&(e=document.getElementById(e),this.set("container",e))},t.prototype.initDom=function(){var e=this.createDom();this.set("el",e),this.get("container").appendChild(e),this.setDOMSize(this.get("width"),this.get("height"))},t.prototype.initEvents=function(){var e=new eA({canvas:this});e.init(),this.set("eventController",e)},t.prototype.initTimeline=function(){var e=new eS(this);this.set("timeline",e)},t.prototype.setDOMSize=function(e,t){var i=this.get("el");l.jU&&(i.style.width=e+"px",i.style.height=t+"px")},t.prototype.changeSize=function(e,t){this.setDOMSize(e,t),this.set("width",e),this.set("height",t),this.onCanvasChange("changeSize")},t.prototype.getRenderer=function(){return this.get("renderer")},t.prototype.getCursor=function(){return this.get("cursor")},t.prototype.setCursor=function(e){this.set("cursor",e);var t=this.get("el");l.jU&&t&&(t.style.cursor=e)},t.prototype.getPointByEvent=function(e){if(this.get("supportCSSTransform")){if(eL&&!(0,l.kK)(e.layerX)&&e.layerX!==e.offsetX)return{x:e.layerX,y:e.layerY};if(!(0,l.kK)(e.offsetX))return{x:e.offsetX,y:e.offsetY}}var t=this.getClientByEvent(e),i=t.x,n=t.y;return this.getPointByClient(i,n)},t.prototype.getClientByEvent=function(e){var t=e;return e.touches&&(t="touchend"===e.type?e.changedTouches[0]:e.touches[0]),{x:t.clientX,y:t.clientY}},t.prototype.getPointByClient=function(e,t){var i=this.get("el").getBoundingClientRect();return{x:e-i.left,y:t-i.top}},t.prototype.getClientByPoint=function(e,t){var i=this.get("el").getBoundingClientRect();return{x:e+i.left,y:t+i.top}},t.prototype.draw=function(){},t.prototype.removeDom=function(){var e=this.get("el");e.parentNode.removeChild(e)},t.prototype.clearEvents=function(){this.get("eventController").destroy()},t.prototype.isCanvas=function(){return!0},t.prototype.getParent=function(){return null},t.prototype.destroy=function(){var t=this.get("timeline");this.get("destroyed")||(this.clear(),t&&t.stop(),this.clearEvents(),this.removeDom(),e.prototype.destroy.call(this))},t}(a.Z)},37153:function(e,t,i){"use strict";var n=i(97582),r=i(29881),o=i(77341),s={},a="_INDEX",l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.ZT)(t,e),t.prototype.isCanvas=function(){return!1},t.prototype.getBBox=function(){var e=1/0,t=-1/0,i=1/0,n=-1/0,r=this.getChildren().filter(function(e){return e.get("visible")&&(!e.isGroup()||e.isGroup()&&e.getChildren().length>0)});return r.length>0?(0,o.S6)(r,function(r){var o=r.getBBox(),s=o.minX,a=o.maxX,l=o.minY,h=o.maxY;st&&(t=a),ln&&(n=h)}):(e=0,t=0,i=0,n=0),{x:e,y:i,minX:e,minY:i,maxX:t,maxY:n,width:t-e,height:n-i}},t.prototype.getCanvasBBox=function(){var e=1/0,t=-1/0,i=1/0,n=-1/0,r=this.getChildren().filter(function(e){return e.get("visible")&&(!e.isGroup()||e.isGroup()&&e.getChildren().length>0)});return r.length>0?(0,o.S6)(r,function(r){var o=r.getCanvasBBox(),s=o.minX,a=o.maxX,l=o.minY,h=o.maxY;st&&(t=a),ln&&(n=h)}):(e=0,t=0,i=0,n=0),{x:e,y:i,minX:e,minY:i,maxX:t,maxY:n,width:t-e,height:n-i}},t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.children=[],t},t.prototype.onAttrChange=function(t,i,n){if(e.prototype.onAttrChange.call(this,t,i,n),"matrix"===t){var r=this.getTotalMatrix();this._applyChildrenMarix(r)}},t.prototype.applyMatrix=function(t){var i=this.getTotalMatrix();e.prototype.applyMatrix.call(this,t);var n=this.getTotalMatrix();n!==i&&this._applyChildrenMarix(n)},t.prototype._applyChildrenMarix=function(e){var t=this.getChildren();(0,o.S6)(t,function(t){t.applyMatrix(e)})},t.prototype.addShape=function(){for(var e=[],t=0;t=0;s--){var a=e[s];if((0,o.pP)(a)&&(a.isGroup()?r=a.getShape(t,i,n):a.isHit(t,i)&&(r=a)),r)break}return r},t.prototype.add=function(e){var t=this.getCanvas(),i=this.getChildren(),n=this.get("timeline"),r=e.getParent();r&&(e.set("parent",null),e.set("canvas",null),(0,o.As)(r.getChildren(),e)),e.set("parent",this),t&&function e(t,i){if(t.set("canvas",i),t.isGroup()){var n=t.get("children");n.length&&n.forEach(function(t){e(t,i)})}}(e,t),n&&function e(t,i){if(t.set("timeline",i),t.isGroup()){var n=t.get("children");n.length&&n.forEach(function(t){e(t,i)})}}(e,n),i.push(e),e.onCanvasChange("add"),this._applyElementMatrix(e)},t.prototype._applyElementMatrix=function(e){var t=this.getTotalMatrix();t&&e.applyMatrix(t)},t.prototype.getChildren=function(){return this.get("children")},t.prototype.sort=function(){var e=this.getChildren();(0,o.S6)(e,function(e,t){return e[a]=t,e}),e.sort(function(e,t){var i=e.get("zIndex")-t.get("zIndex");return 0===i?e[a]-t[a]:i}),this.onCanvasChange("sort")},t.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var e=this.getChildren(),t=e.length-1;t>=0;t--)e[t].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},t.prototype.destroy=function(){this.get("destroyed")||(this.clear(),e.prototype.destroy.call(this))},t.prototype.getFirst=function(){return this.getChildByIndex(0)},t.prototype.getLast=function(){var e=this.getChildren();return this.getChildByIndex(e.length-1)},t.prototype.getChildByIndex=function(e){return this.getChildren()[e]},t.prototype.getCount=function(){return this.getChildren().length},t.prototype.contain=function(e){return this.getChildren().indexOf(e)>-1},t.prototype.removeChild=function(e,t){void 0===t&&(t=!0),this.contain(e)&&e.remove(t)},t.prototype.findAll=function(e){var t=[],i=this.getChildren();return(0,o.S6)(i,function(i){e(i)&&t.push(i),i.isGroup()&&(t=t.concat(i.findAll(e)))}),t},t.prototype.find=function(e){var t=null,i=this.getChildren();return(0,o.S6)(i,function(i){if(e(i)?t=i:i.isGroup()&&(t=i.find(e)),t)return!1}),t},t.prototype.findById=function(e){return this.find(function(t){return t.get("id")===e})},t.prototype.findByClassName=function(e){return this.find(function(t){return t.get("className")===e})},t.prototype.findAllByName=function(e){return this.findAll(function(t){return t.get("name")===e})},t}(r.Z);t.Z=l},29881:function(e,t,i){"use strict";var n=i(97582),r=i(21030),o=i(31506),s=i(77341),a=i(41482),l=i(2667),h=o.vs,u="matrix",d=["zIndex","capture","visible","type"],c=["repeat"],g=function(e){function t(t){var i=e.call(this,t)||this;i.attrs={};var n=i.getDefaultAttrs();return(0,r.CD)(n,t.attrs),i.attrs=n,i.initAttrs(n),i.initAnimate(),i}return(0,n.ZT)(t,e),t.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},t.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},t.prototype.onCanvasChange=function(e){},t.prototype.initAttrs=function(e){},t.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},t.prototype.isGroup=function(){return!1},t.prototype.getParent=function(){return this.get("parent")},t.prototype.getCanvas=function(){return this.get("canvas")},t.prototype.attr=function(){for(var e,t=[],i=0;i0?g=function(e,t){if(t.onFrame)return e;var i=t.startTime,n=t.delay,o=t.duration,s=Object.prototype.hasOwnProperty;return(0,r.S6)(e,function(e){i+ne.delay&&(0,r.S6)(t.toAttrs,function(t,i){s.call(e.toAttrs,i)&&(delete e.toAttrs[i],delete e.fromAttrs[i])})}),e}(g,T):d.addAnimator(this),g.push(T),this.set("animations",g),this.set("_pause",{isPaused:!1})}},t.prototype.stopAnimate=function(e){var t=this;void 0===e&&(e=!0);var i=this.get("animations");(0,r.S6)(i,function(i){e&&(i.onFrame?t.attr(i.onFrame(1)):t.attr(i.toAttrs)),i.callback&&i.callback()}),this.set("animating",!1),this.set("animations",[])},t.prototype.pauseAnimate=function(){var e=this.get("timeline"),t=this.get("animations"),i=e.getTime();return(0,r.S6)(t,function(e){e._paused=!0,e._pauseTime=i,e.pauseCallback&&e.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:i}),this},t.prototype.resumeAnimate=function(){var e=this.get("timeline").getTime(),t=this.get("animations"),i=this.get("_pause").pauseTime;return(0,r.S6)(t,function(t){t.startTime=t.startTime+(e-i),t._paused=!1,t._pauseTime=null,t.resumeCallback&&t.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",t),this},t.prototype.emitDelegation=function(e,t){var i,n=this,o=t.propagationPath;this.getEvents(),"mouseenter"===e?i=t.fromShape:"mouseleave"===e&&(i=t.toShape);for(var a=this,l=0;l=e&&i.minY<=t&&i.maxY>=t},t.prototype.afterAttrsChange=function(t){e.prototype.afterAttrsChange.call(this,t),this.clearCacheBBox()},t.prototype.getBBox=function(){var e=this.cfg.bbox;return e||(e=this.calculateBBox(),this.set("bbox",e)),e},t.prototype.getCanvasBBox=function(){var e=this.cfg.canvasBBox;return e||(e=this.calculateCanvasBBox(),this.set("canvasBBox",e)),e},t.prototype.applyMatrix=function(t){e.prototype.applyMatrix.call(this,t),this.set("canvasBBox",null)},t.prototype.calculateCanvasBBox=function(){var e=this.getBBox(),t=this.getTotalMatrix(),i=e.minX,n=e.minY,r=e.maxX,s=e.maxY;if(t){var a=(0,o.rG)(t,[e.minX,e.minY]),l=(0,o.rG)(t,[e.maxX,e.minY]),h=(0,o.rG)(t,[e.minX,e.maxY]),u=(0,o.rG)(t,[e.maxX,e.maxY]);i=Math.min(a[0],l[0],h[0],u[0]),r=Math.max(a[0],l[0],h[0],u[0]),n=Math.min(a[1],l[1],h[1],u[1]),s=Math.max(a[1],l[1],h[1],u[1])}var d=this.attrs;if(d.shadowColor){var c=d.shadowBlur,g=void 0===c?0:c,p=d.shadowOffsetX,f=void 0===p?0:p,m=d.shadowOffsetY,v=void 0===m?0:m,E=i-g+f,_=r+g+f,C=n-g+v,S=s+g+v;i=Math.min(i,E),r=Math.max(r,_),n=Math.min(n,C),s=Math.max(s,S)}return{x:i,y:n,minX:i,minY:n,maxX:r,maxY:s,width:r-i,height:s-n}},t.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},t.prototype.isClipShape=function(){return this.get("isClipShape")},t.prototype.isInShape=function(e,t){return!1},t.prototype.isOnlyHitBox=function(){return!1},t.prototype.isHit=function(e,t){var i=this.get("startArrowShape"),n=this.get("endArrowShape"),r=[e,t,1],o=(r=this.invertFromMatrix(r))[0],s=r[1],a=this._isInBBox(o,s);return this.isOnlyHitBox()?a:!!(a&&!this.isClipped(o,s)&&(this.isInShape(o,s)||i&&i.isHit(o,s)||n&&n.isHit(o,s)))},t}(r.Z);t.Z=s},93924:function(e,t,i){"use strict";i.d(t,{_:function(){return $},C:function(){return X}});var n={};function r(e){return+e}function o(e){return e*e}function s(e){return e*(2-e)}function a(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function l(e){return e*e*e}function h(e){return--e*e*e+1}function u(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}i.r(n),i.d(n,{easeBack:function(){return V},easeBackIn:function(){return U},easeBackInOut:function(){return V},easeBackOut:function(){return H},easeBounce:function(){return F},easeBounceIn:function(){return P},easeBounceInOut:function(){return B},easeBounceOut:function(){return F},easeCircle:function(){return A},easeCircleIn:function(){return T},easeCircleInOut:function(){return A},easeCircleOut:function(){return b},easeCubic:function(){return u},easeCubicIn:function(){return l},easeCubicInOut:function(){return u},easeCubicOut:function(){return h},easeElastic:function(){return z},easeElasticIn:function(){return G},easeElasticInOut:function(){return Y},easeElasticOut:function(){return z},easeExp:function(){return y},easeExpIn:function(){return C},easeExpInOut:function(){return y},easeExpOut:function(){return S},easeLinear:function(){return r},easePoly:function(){return g},easePolyIn:function(){return d},easePolyInOut:function(){return g},easePolyOut:function(){return c},easeQuad:function(){return a},easeQuadIn:function(){return o},easeQuadInOut:function(){return a},easeQuadOut:function(){return s},easeSin:function(){return E},easeSinIn:function(){return m},easeSinInOut:function(){return E},easeSinOut:function(){return v}});var d=function e(t){function i(e){return Math.pow(e,t)}return t=+t,i.exponent=e,i}(3),c=function e(t){function i(e){return 1-Math.pow(1-e,t)}return t=+t,i.exponent=e,i}(3),g=function e(t){function i(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,i.exponent=e,i}(3),p=Math.PI,f=p/2;function m(e){return 1==+e?1:1-Math.cos(e*f)}function v(e){return Math.sin(e*f)}function E(e){return(1-Math.cos(p*e))/2}function _(e){return(Math.pow(2,-10*e)-9765625e-10)*1.0009775171065494}function C(e){return _(1-+e)}function S(e){return 1-_(e)}function y(e){return((e*=2)<=1?_(1-e):2-_(e-1))/2}function T(e){return 1-Math.sqrt(1-e*e)}function b(e){return Math.sqrt(1- --e*e)}function A(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var R=4/11,L=6/11,N=8/11,I=3/4,w=9/11,O=10/11,x=15/16,D=21/22,M=63/64,k=1/(4/11)/(4/11);function P(e){return 1-F(1-e)}function F(e){return(e=+e)Math.PI/2?Math.PI-l:l))*(t/2*(1/Math.sin(a/2)))-t/2||0,yExtra:Math.cos((h=h>Math.PI/2?Math.PI-h:h)-a/2)*(t/2*(1/Math.sin(a/2)))-t/2||0}}r("rect",s),r("image",s),r("circle",a),r("marker",a),r("polyline",function(e){for(var t=e.attr().points,i=[],n=[],r=0;r["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(s)&&(o[s]=(function(e){return r[e]}).bind(0,s));i.d(t,o);var a=i(15294),o={};for(var s in a)0>["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(s)&&(o[s]=(function(e){return a[e]}).bind(0,s));i.d(t,o);var l=i(89473),h=i(2667),u=i(97050),d=i(31841),c=i(15032),g=i(46556),p=i(8723),f=i(77341),m=i(41482),v=i(67052),E=i(93924),_="0.5.11"},15294:function(){},52:function(){},41482:function(e,t,i){"use strict";function n(e,t){var i=[],n=e[0],r=e[1],o=e[2],s=e[3],a=e[4],l=e[5],h=e[6],u=e[7],d=e[8],c=t[0],g=t[1],p=t[2],f=t[3],m=t[4],v=t[5],E=t[6],_=t[7],C=t[8];return i[0]=c*n+g*s+p*h,i[1]=c*r+g*a+p*u,i[2]=c*o+g*l+p*d,i[3]=f*n+m*s+v*h,i[4]=f*r+m*a+v*u,i[5]=f*o+m*l+v*d,i[6]=E*n+_*s+C*h,i[7]=E*r+_*a+C*u,i[8]=E*o+_*l+C*d,i}function r(e,t){var i=[],n=t[0],r=t[1];return i[0]=e[0]*n+e[3]*r+e[6],i[1]=e[1]*n+e[4]*r+e[7],i}function o(e){var t=[],i=e[0],n=e[1],r=e[2],o=e[3],s=e[4],a=e[5],l=e[6],h=e[7],u=e[8],d=u*s-a*h,c=-u*o+a*l,g=h*o-s*l,p=i*d+n*c+r*g;return p?(p=1/p,t[0]=d*p,t[1]=(-u*n+r*h)*p,t[2]=(a*n-r*s)*p,t[3]=c*p,t[4]=(u*i-r*l)*p,t[5]=(-a*i+r*o)*p,t[6]=g*p,t[7]=(-h*i+n*l)*p,t[8]=(s*i-n*o)*p,t):null}i.d(t,{U_:function(){return o},rG:function(){return r},xq:function(){return n}})},67052:function(e,t,i){"use strict";i.d(t,{L:function(){return r}});var n=null;function r(){if(!n){var e=document.createElement("canvas");e.width=1,e.height=1,n=e.getContext("2d")}return n}},47575:function(e,t,i){"use strict";i.r(t),i.d(t,{catmullRomToBezier:function(){return l},fillPath:function(){return w},fillPathByDiff:function(){return D},formatPath:function(){return P},intersection:function(){return N},parsePathArray:function(){return m},parsePathString:function(){return a},pathToAbsolute:function(){return u},pathToCurve:function(){return p},rectPath:function(){return y}});var n=i(21030),r=" \n\v\f\r \xa0 ᠎              \u2028\u2029",o=RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),s=RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+r+"]*,?["+r+"]*","ig"),a=function(e){if(!e)return null;if((0,n.kJ)(e))return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},i=[];return String(e).replace(o,function(n,r,o){var a=[],l=r.toLowerCase();if(o.replace(s,function(e,t){t&&a.push(+t)}),"m"===l&&a.length>2&&(i.push([r].concat(a.splice(0,2))),l="l",r="m"===r?"l":"L"),"o"===l&&1===a.length&&i.push([r,a[0]]),"r"===l)i.push([r].concat(a));else for(;a.length>=t[l]&&(i.push([r].concat(a.splice(0,t[l]))),t[l]););return e}),i},l=function(e,t){for(var i=[],n=0,r=e.length;r-2*!t>n;n+=2){var o=[{x:+e[n-2],y:+e[n-1]},{x:+e[n],y:+e[n+1]},{x:+e[n+2],y:+e[n+3]},{x:+e[n+4],y:+e[n+5]}];t?n?r-4===n?o[3]={x:+e[0],y:+e[1]}:r-2===n&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[r-2],y:+e[r-1]}:r-4===n?o[3]=o[2]:n||(o[0]={x:+e[n],y:+e[n+1]}),i.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return i},h=function(e,t,i,n,r){var o=[];if(null===r&&null===n&&(n=i),e=+e,t=+t,i=+i,n=+n,null!==r){var s=Math.PI/180,a=e+i*Math.cos(-n*s),l=e+i*Math.cos(-r*s),h=t+i*Math.sin(-n*s),u=t+i*Math.sin(-r*s);o=[["M",a,h],["A",i,i,0,+(r-n>180),0,l,u]]}else o=[["M",e,t],["m",0,-n],["a",i,n,0,1,1,0,2*n],["a",i,n,0,1,1,0,-2*n],["z"]];return o},u=function(e){if(!(e=a(e))||!e.length)return[["M",0,0]];var t,i,n=[],r=0,o=0,s=0,u=0,d=0;"M"===e[0][0]&&(r=+e[0][1],o=+e[0][2],s=r,u=o,d++,n[0]=["M",r,o]);for(var c=3===e.length&&"M"===e[0][0]&&"R"===e[1][0].toUpperCase()&&"Z"===e[2][0].toUpperCase(),g=void 0,p=void 0,f=d,m=e.length;f1&&(i*=y=Math.sqrt(y),n*=y);var T=i*i,b=n*n,A=(o===s?-1:1)*Math.sqrt(Math.abs((T*b-T*S*S-b*C*C)/(T*S*S+b*C*C)));p=A*i*S/n+(e+a)/2,f=-(A*n)*C/i+(t+l)/2,d=Math.asin(((t-f)/n).toFixed(9)),c=Math.asin(((l-f)/n).toFixed(9)),d=ec&&(d-=2*Math.PI),!s&&c>d&&(c-=2*Math.PI)}var R=c-d;if(Math.abs(R)>m){var L=c,N=a,I=l;E=g(a=p+i*Math.cos(c=d+m*(s&&c>d?1:-1)),l=f+n*Math.sin(c),i,n,r,0,s,N,I,[c,L,p,f])}R=c-d;var w=Math.cos(d),O=Math.cos(c),x=Math.tan(R/4),D=4/3*i*x,M=4/3*n*x,k=[e,t],P=[e+D*Math.sin(d),t-M*w],F=[a+D*Math.sin(c),l-M*O],B=[a,l];if(P[0]=2*k[0]-P[0],P[1]=2*k[1]-P[1],h)return[P,F,B].concat(E);E=[P,F,B].concat(E).join().split(",");for(var U=[],H=0,V=E.length;H7){e[t].shift();for(var o=e[t];o.length;)a[t]="A",r&&(l[t]="A"),e.splice(t++,0,["C"].concat(o.splice(0,6)));e.splice(t,1),i=Math.max(n.length,r&&r.length||0)}},v=function(e,t,o,s,a){e&&t&&"M"===e[a][0]&&"M"!==t[a][0]&&(t.splice(a,0,["M",s.x,s.y]),o.bx=0,o.by=0,o.x=e[a][1],o.y=e[a][2],i=Math.max(n.length,r&&r.length||0))};i=Math.max(n.length,r&&r.length||0);for(var E=0;E1?1:l<0?0:l)/2,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],c=0,g=0;g<12;g++){var p=h*u[g]+h,f=v(p,e,i,r,s),m=v(p,t,n,o,a),E=f*f+m*m;c+=d[g]*Math.sqrt(E)}return h*c},_=function(e,t,i,n,r,o,s,a){for(var l,h,u,d,c,g=[],p=[[],[]],f=0;f<2;++f){if(0===f?(h=6*e-12*i+6*r,l=-3*e+9*i-9*r+3*s,u=3*i-3*e):(h=6*t-12*n+6*o,l=-3*t+9*n-9*o+3*a,u=3*n-3*t),1e-12>Math.abs(l)){if(1e-12>Math.abs(h))continue;(d=-u/h)>0&&d<1&&g.push(d);continue}var m=h*h-4*u*l,v=Math.sqrt(m);if(!(m<0)){var E=(-h+v)/(2*l);E>0&&E<1&&g.push(E);var _=(-h-v)/(2*l);_>0&&_<1&&g.push(_)}}for(var C=g.length,S=C;C--;)c=1-(d=g[C]),p[0][C]=c*c*c*e+3*c*c*d*i+3*c*d*d*r+d*d*d*s,p[1][C]=c*c*c*t+3*c*c*d*n+3*c*d*d*o+d*d*d*a;return p[0][S]=e,p[1][S]=t,p[0][S+1]=s,p[1][S+1]=a,p[0].length=p[1].length=S+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},C=function(e,t,i,n,r,o,s,a){if(!(Math.max(e,i)Math.max(r,s)||Math.max(t,n)Math.max(o,a))){var l=(e-i)*(o-a)-(t-n)*(r-s);if(l){var h=((e*n-t*i)*(r-s)-(e-i)*(r*a-o*s))/l,u=((e*n-t*i)*(o-a)-(t-n)*(r*a-o*s))/l,d=+h.toFixed(2),c=+u.toFixed(2);if(!(d<+Math.min(e,i).toFixed(2)||d>+Math.max(e,i).toFixed(2)||d<+Math.min(r,s).toFixed(2)||d>+Math.max(r,s).toFixed(2)||c<+Math.min(t,n).toFixed(2)||c>+Math.max(t,n).toFixed(2)||c<+Math.min(o,a).toFixed(2)||c>+Math.max(o,a).toFixed(2)))return{x:h,y:u}}}},S=function(e,t,i){return t>=e.x&&t<=e.x+e.width&&i>=e.y&&i<=e.y+e.height},y=function(e,t,i,n,r){if(r)return[["M",+e+ +r,t],["l",i-2*r,0],["a",r,r,0,0,1,r,r],["l",0,n-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-i,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-n],["a",r,r,0,0,1,r,-r],["z"]];var o=[["M",e,t],["l",i,0],["l",0,n],["l",-i,0],["z"]];return o.parsePathArray=m,o},T=function(e,t,i,n){return null===e&&(e=t=i=n=0),null===t&&(t=e.y,i=e.width,n=e.height,e=e.x),{x:e,y:t,width:i,w:i,height:n,h:n,x2:e+i,y2:t+n,cx:e+i/2,cy:t+n/2,r1:Math.min(i,n)/2,r2:Math.max(i,n)/2,r0:Math.sqrt(i*i+n*n)/2,path:y(e,t,i,n),vb:[e,t,i,n].join(" ")}},b=function(e,t,i,r,o,s,a,l){(0,n.kJ)(e)||(e=[e,t,i,r,o,s,a,l]);var h=_.apply(null,e);return T(h.min.x,h.min.y,h.max.x-h.min.x,h.max.y-h.min.y)},A=function(e,t,i,n,r,o,s,a,l){var h=1-l,u=Math.pow(h,3),d=Math.pow(h,2),c=l*l,g=c*l,p=e+2*l*(i-e)+c*(r-2*i+e),f=t+2*l*(n-t)+c*(o-2*n+t),m=i+2*l*(r-i)+c*(s-2*r+i),v=n+2*l*(o-n)+c*(a-2*o+n),E=90-180*Math.atan2(p-m,f-v)/Math.PI;return{x:u*e+3*d*l*i+3*h*l*l*r+g*s,y:u*t+3*d*l*n+3*h*l*l*o+g*a,m:{x:p,y:f},n:{x:m,y:v},start:{x:h*e+l*i,y:h*t+l*n},end:{x:h*r+l*s,y:h*o+l*a},alpha:E}},R=function(e,t,i){var n,r,o=b(e),s=b(t);if(n=o,r=s,n=T(n),!(S(r=T(r),n.x,n.y)||S(r,n.x2,n.y)||S(r,n.x,n.y2)||S(r,n.x2,n.y2)||S(n,r.x,r.y)||S(n,r.x2,r.y)||S(n,r.x,r.y2)||S(n,r.x2,r.y2))&&((!(n.xr.x))&&(!(r.xn.x))||(!(n.yr.y))&&(!(r.yn.y))))return i?0:[];for(var a=E.apply(0,e),l=E.apply(0,t),h=~~(a/8),u=~~(l/8),d=[],c=[],g={},p=i?0:[],f=0;fMath.abs(y.x-_.x)?"y":"x",I=.001>Math.abs(L.x-R.x)?"y":"x",w=C(_.x,_.y,y.x,y.y,R.x,R.y,L.x,L.y);if(w){if(g[w.x.toFixed(4)]===w.y.toFixed(4))continue;g[w.x.toFixed(4)]=w.y.toFixed(4);var O=_.t+Math.abs((w[N]-_[N])/(y[N]-_[N]))*(y.t-_.t),x=R.t+Math.abs((w[I]-R[I])/(L[I]-R[I]))*(L.t-R.t);O>=0&&O<=1&&x>=0&&x<=1&&(i?p+=1:p.push({x:w.x,y:w.y,t1:O,t2:x}))}}return p},L=function(e,t,i){e=p(e),t=p(t);for(var n,r,o,s,a,l,h,u,d,c,g=i?0:[],f=0,m=e.length;f=3&&(3===e.length&&t.push("Q"),t=t.concat(e[1])),2===e.length&&t.push("L"),t=t.concat(e[e.length-1])})}(e,t,i));else{var r=[].concat(e);"M"===r[0]&&(r[0]="L");for(var o=0;o<=i-1;o++)n.push(r)}return n},w=function(e,t){if(1===e.length)return e;var i=e.length-1,n=t.length-1,r=i/n,o=[];if(1===e.length&&"M"===e[0][0]){for(var s=0;s=0;l--)s=o[l].index,"add"===o[l].type?e.splice(s,0,[].concat(e[s])):e.splice(s,1)}var d=r-(n=e.length);if(n0)i=M(i,e[n-1],1);else{e[n]=t[n];break}}e[n]=["Q"].concat(i.reduce(function(e,t){return e.concat(t)},[]));break;case"T":e[n]=["T"].concat(i[0]);break;case"C":if(i.length<3){if(n>0)i=M(i,e[n-1],2);else{e[n]=t[n];break}}e[n]=["C"].concat(i.reduce(function(e,t){return e.concat(t)},[]));break;case"S":if(i.length<2){if(n>0)i=M(i,e[n-1],1);else{e[n]=t[n];break}}e[n]=["S"].concat(i.reduce(function(e,t){return e.concat(t)},[]));break;default:e[n]=t[n]}return e}},8723:function(e,t,i){"use strict";i.d(t,{$O:function(){return a},FE:function(){return o},mY:function(){return s}});var n=i(77341),r=i(67052);function o(e,t,i){var r=1;if((0,n.HD)(e)&&(r=e.split("\n").length),r>1)return t*r+(i?i-t:.14*t)*(r-1);return t}function s(e,t){var i=(0,r.L)(),o=0;if((0,n.kK)(e)||""===e)return o;if(i.save(),i.font=t,(0,n.HD)(e)&&e.includes("\n")){var s=e.split("\n");(0,n.S6)(s,function(e){var t=i.measureText(e).width;oMath.abs(e-t)}function a(e,t){var i=(0,r.VV)(e),n=(0,r.VV)(t);return{x:i,y:n,width:(0,r.Fp)(e)-i,height:(0,r.Fp)(t)-n}}function l(e,t,i,n){return{minX:(0,r.VV)([e,i]),maxX:(0,r.Fp)([e,i]),minY:(0,r.VV)([t,n]),maxY:(0,r.Fp)([t,n])}}function h(e){return(e+2*Math.PI)%(2*Math.PI)}var u=i(31437),d={box:function(e,t,i,n){return a([e,i],[t,n])},length:function(e,t,i,n){return o(e,t,i,n)},pointAt:function(e,t,i,n,r){return{x:(1-r)*e+r*i,y:(1-r)*t+r*n}},pointDistance:function(e,t,i,n,r,s){var a=(i-e)*(r-e)+(n-t)*(s-t);return a<0?o(e,t,r,s):a>(i-e)*(i-e)+(n-t)*(n-t)?o(i,n,r,s):this.pointToLine(e,t,i,n,r,s)},pointToLine:function(e,t,i,n,r,o){var s=[i-e,n-t];if(u.I6(s,[0,0]))return Math.sqrt((r-e)*(r-e)+(o-t)*(o-t));var a=[-s[1],s[0]];return u.Fv(a,a),Math.abs(u.AK([r-e,o-t],a))},tangentAngle:function(e,t,i,n){return Math.atan2(n-t,i-e)}};function c(e,t,i,n,r,s){var a,l=1/0,h=[i,n],u=20;s&&s>200&&(u=s/10);for(var d=1/u,c=d/10,g=0;g<=u;g++){var p=g*d,f=[r.apply(null,e.concat([p])),r.apply(null,t.concat([p]))],m=o(h[0],h[1],f[0],f[1]);m=0&&m=0?[r]:[]}function f(e,t,i,n){return 2*(1-n)*(t-e)+2*n*(i-t)}function m(e,t,i,n,r,o,s){var a=g(e,i,r,s),l=g(t,n,o,s),h=d.pointAt(e,t,i,n,s),u=d.pointAt(i,n,r,o,s);return[[e,t,h.x,h.y,a,l],[a,l,u.x,u.y,r,o]]}var v={box:function(e,t,i,n,r,o){var s=p(e,i,r)[0],l=p(t,n,o)[0],h=[e,r],u=[t,o];return void 0!==s&&h.push(g(e,i,r,s)),void 0!==l&&u.push(g(t,n,o,l)),a(h,u)},length:function(e,t,i,n,r,s){return function e(t,i,n,r,s,a,l){if(0===l)return(o(t,i,n,r)+o(n,r,s,a)+o(t,i,s,a))/2;var h=m(t,i,n,r,s,a,.5),u=h[0],d=h[1];return u.push(l-1),d.push(l-1),e.apply(null,u)+e.apply(null,d)}(e,t,i,n,r,s,3)},nearestPoint:function(e,t,i,n,r,o,s,a){return c([e,i,r],[t,n,o],s,a,g)},pointDistance:function(e,t,i,n,r,s,a,l){var h=this.nearestPoint(e,t,i,n,r,s,a,l);return o(h.x,h.y,a,l)},interpolationAt:g,pointAt:function(e,t,i,n,r,o,s){return{x:g(e,i,r,s),y:g(t,n,o,s)}},divide:function(e,t,i,n,r,o,s){return m(e,t,i,n,r,o,s)},tangentAngle:function(e,t,i,n,r,o,s){var a=f(e,i,r,s);return h(Math.atan2(f(t,n,o,s),a))}};function E(e,t,i,n,r){var o=1-r;return o*o*o*e+3*t*r*o*o+3*i*r*r*o+n*r*r*r}function _(e,t,i,n,r){var o=1-r;return 3*(o*o*(t-e)+2*o*r*(i-t)+r*r*(n-i))}function C(e,t,i,n){var r,o,a,l=-3*e+9*t-9*i+3*n,h=6*e-12*t+6*i,u=3*t-3*e,d=[];if(s(l,0))!s(h,0)&&(r=-u/h)>=0&&r<=1&&d.push(r);else{var c=h*h-4*l*u;s(c,0)?d.push(-h/(2*l)):c>0&&(r=(-h+(a=Math.sqrt(c)))/(2*l),o=(-h-a)/(2*l),r>=0&&r<=1&&d.push(r),o>=0&&o<=1&&d.push(o))}return d}function S(e,t,i,n,r,o,s,a,l){var h=E(e,i,r,s,l),u=E(t,n,o,a,l),c=d.pointAt(e,t,i,n,l),g=d.pointAt(i,n,r,o,l),p=d.pointAt(r,o,s,a,l),f=d.pointAt(c.x,c.y,g.x,g.y,l),m=d.pointAt(g.x,g.y,p.x,p.y,l);return[[e,t,c.x,c.y,f.x,f.y,h,u],[h,u,m.x,m.y,p.x,p.y,s,a]]}var y={extrema:C,box:function(e,t,i,n,r,o,s,l){for(var h=[e,s],u=[t,l],d=C(e,i,r,s),c=C(t,n,o,l),g=0;g0?i:-1*i}var b={box:function(e,t,i,n){return{x:e-i,y:t-n,width:2*i,height:2*n}},length:function(e,t,i,n){return Math.PI*(3*(i+n)-Math.sqrt((3*i+n)*(i+3*n)))},nearestPoint:function(e,t,i,n,r,o){if(0===i||0===n)return{x:e,y:t};for(var s,a,l=r-e,h=o-t,u=Math.abs(l),d=Math.abs(h),c=i*i,g=n*n,p=Math.PI/4,f=0;f<4;f++){s=i*Math.cos(p),a=n*Math.sin(p);var m=(c-g)*Math.pow(Math.cos(p),3)/i,v=(g-c)*Math.pow(Math.sin(p),3)/n,E=s-m,_=a-v,C=u-m,S=d-v,y=Math.hypot(_,E),b=Math.hypot(S,C);p+=y*Math.asin((E*S-_*C)/(y*b))/Math.sqrt(c+g-s*s-a*a),p=Math.min(Math.PI/2,Math.max(0,p))}return{x:e+T(s,l),y:t+T(a,h)}},pointDistance:function(e,t,i,n,r,s){var a=this.nearestPoint(e,t,i,n,r,s);return o(a.x,a.y,r,s)},pointAt:function(e,t,i,n,r){var o=2*Math.PI*r;return{x:e+i*Math.cos(o),y:t+n*Math.sin(o)}},tangentAngle:function(e,t,i,n,r){var o=2*Math.PI*r;return h(Math.atan2(n*Math.cos(o),-i*Math.sin(o)))}};function A(e,t,i,n,r,o){return i*Math.cos(r)*Math.cos(o)-n*Math.sin(r)*Math.sin(o)+e}function R(e,t,i,n,r,o){return i*Math.sin(r)*Math.cos(o)+n*Math.cos(r)*Math.sin(o)+t}function L(e,t,i){return{x:e*Math.cos(i),y:t*Math.sin(i)}}function N(e,t,i){var n=Math.cos(i),r=Math.sin(i);return[e*n-t*r,e*r+t*n]}var I={box:function(e,t,i,n,r,o,s){for(var a=Math.atan(-n/i*Math.tan(r)),l=1/0,h=-1/0,u=[o,s],d=-(2*Math.PI);d<=2*Math.PI;d+=Math.PI){var c=a+d;oh&&(h=g)}for(var p=Math.atan(n/(i*Math.tan(r))),f=1/0,m=-1/0,v=[o,s],d=-(2*Math.PI);d<=2*Math.PI;d+=Math.PI){var E=p+d;om&&(m=_)}return{x:l,y:f,width:h-l,height:m-f}},length:function(e,t,i,n,r,o,s){},nearestPoint:function(e,t,i,n,r,o,s,a,l){var h,u=N(a-e,l-t,-r),d=u[0],c=u[1],g=b.nearestPoint(0,0,i,n,d,c),p=(h=g.x,(Math.atan2(g.y*i,h*n)+2*Math.PI)%(2*Math.PI));ps&&(g=L(i,n,s));var f=N(g.x,g.y,r);return{x:f[0]+e,y:f[1]+t}},pointDistance:function(e,t,i,n,r,s,a,l,h){var u=this.nearestPoint(e,t,i,n,l,h);return o(u.x,u.y,l,h)},pointAt:function(e,t,i,n,r,o,s,a){var l=(s-o)*a+o;return{x:A(e,t,i,n,r,l),y:R(e,t,i,n,r,l)}},tangentAngle:function(e,t,i,n,r,o,s,a){var l=(s-o)*a+o,u=-1*i*Math.cos(r)*Math.sin(l)-n*Math.sin(r)*Math.cos(l);return h(Math.atan2(-1*i*Math.sin(r)*Math.sin(l)+n*Math.cos(r)*Math.cos(l),u))}};function w(e){for(var t=0,i=[],n=0;n1||t<0||e.length<2)return null;var i=w(e),n=i.segments,r=i.totalLength;if(0===r)return{x:e[0][0],y:e[0][1]};for(var o=0,s=null,a=0;a=o&&t<=o+c){var g=(t-o)/c;s=d.pointAt(h[0],h[1],u[0],u[1],g);break}o+=c}return s}(e,t)},pointDistance:function(e,t,i){return function(e,t,i){for(var n=1/0,r=0;r1||t<0||e.length<2)return 0;for(var i=w(e),n=i.segments,r=i.totalLength,o=0,s=0,a=0;a=o&&t<=o+d){s=Math.atan2(u[1]-h[1],u[0]-h[0]);break}o+=d}return s}(e,t)}}},75227:function(e,t,i){"use strict";i.d(t,{sg:function(){return d0},x1:function(){return c1}});var n,r,o,s,a,l,h,u,d,c,g,p,f,m,v,E,_,C,S,y,T,b,A,R,L,N,I,w,O,x,D,M,k,P,F,B,U,H,V,W,G,z,Y,K,$,X,j,q,Z,J,Q,ee,et,ei={};i.r(ei),i.d(ei,{assign:function(){return to},default:function(){return tA},defaultI18n:function(){return th},format:function(){return tT},parse:function(){return tb},setGlobalDateI18n:function(){return td},setGlobalDateMasks:function(){return ty}});var en={};i.r(en),i.d(en,{Arc:function(){return iU},DataMarker:function(){return iW},DataRegion:function(){return iG},Html:function(){return iX},Image:function(){return iV},Line:function(){return iF},Region:function(){return iH},RegionFilter:function(){return iz},Shape:function(){return iY},Text:function(){return iB}});var er={};i.r(er),i.d(er,{ellipsisHead:function(){return iQ},ellipsisMiddle:function(){return i1},ellipsisTail:function(){return i0},getDefault:function(){return iJ}});var eo={};i.r(eo),i.d(eo,{equidistance:function(){return ne},equidistanceWithReverseBoth:function(){return nt},getDefault:function(){return i3},reserveBoth:function(){return i8},reserveFirst:function(){return i9},reserveLast:function(){return i7}});var es={};i.r(es),i.d(es,{fixedAngle:function(){return nr},getDefault:function(){return nn},unfixedAngle:function(){return no}});var ea={};i.r(ea),i.d(ea,{autoEllipsis:function(){return er},autoHide:function(){return eo},autoRotate:function(){return es}});var el={};i.r(el),i.d(el,{Base:function(){return nl},Circle:function(){return nu},Html:function(){return nf},Line:function(){return nh}});var eh={};i.r(eh),i.d(eh,{CONTAINER_CLASS:function(){return nL},CROSSHAIR_X:function(){return nM},CROSSHAIR_Y:function(){return nk},LIST_CLASS:function(){return nI},LIST_ITEM_CLASS:function(){return nw},MARKER_CLASS:function(){return nO},NAME_CLASS:function(){return nD},TITLE_CLASS:function(){return nN},VALUE_CLASS:function(){return nx}});var eu={};i.r(eu),i.d(eu,{Base:function(){return sF},Circle:function(){return sB},Ellipse:function(){return sU},Image:function(){return sV},Line:function(){return sz},Marker:function(){return sK},Path:function(){return s0},Polygon:function(){return s2},Polyline:function(){return s4},Rect:function(){return s5},Text:function(){return s6}});var ed={};i.r(ed),i.d(ed,{Canvas:function(){return s7},Group:function(){return sP},Shape:function(){return eu},getArcParams:function(){return sC},version:function(){return s8}});var ec={};i.r(ec),i.d(ec,{Base:function(){return au},Circle:function(){return ad},Dom:function(){return ac},Ellipse:function(){return ag},Image:function(){return ap},Line:function(){return af},Marker:function(){return aE},Path:function(){return a_},Polygon:function(){return aC},Polyline:function(){return aS},Rect:function(){return ay},Text:function(){return aL}});var eg={};i.r(eg),i.d(eg,{Canvas:function(){return aV},Group:function(){return ah},Shape:function(){return ec},version:function(){return aW}});var ep={};i.r(ep),i.d(ep,{cluster:function(){return vy},hierarchy:function(){return fC},pack:function(){return ff},packEnclose:function(){return p8},packSiblings:function(){return fu},partition:function(){return vm},stratify:function(){return vL},tree:function(){return vx},treemap:function(){return vF},treemapBinary:function(){return vB},treemapDice:function(){return vf},treemapResquarify:function(){return vH},treemapSlice:function(){return vD},treemapSliceDice:function(){return vU},treemapSquarify:function(){return vP}});var ef=i(97582),em=i(21030);(n=O||(O={})).FORE="fore",n.MID="mid",n.BG="bg",(r=x||(x={})).TOP="top",r.TOP_LEFT="top-left",r.TOP_RIGHT="top-right",r.RIGHT="right",r.RIGHT_TOP="right-top",r.RIGHT_BOTTOM="right-bottom",r.LEFT="left",r.LEFT_TOP="left-top",r.LEFT_BOTTOM="left-bottom",r.BOTTOM="bottom",r.BOTTOM_LEFT="bottom-left",r.BOTTOM_RIGHT="bottom-right",r.RADIUS="radius",r.CIRCLE="circle",r.NONE="none",(o=D||(D={})).AXIS="axis",o.GRID="grid",o.LEGEND="legend",o.TOOLTIP="tooltip",o.ANNOTATION="annotation",o.SLIDER="slider",o.SCROLLBAR="scrollbar",o.OTHER="other";var ev={FORE:3,MID:2,BG:1};(s=M||(M={})).BEFORE_RENDER="beforerender",s.AFTER_RENDER="afterrender",s.BEFORE_PAINT="beforepaint",s.AFTER_PAINT="afterpaint",s.BEFORE_CHANGE_DATA="beforechangedata",s.AFTER_CHANGE_DATA="afterchangedata",s.BEFORE_CLEAR="beforeclear",s.AFTER_CLEAR="afterclear",s.BEFORE_DESTROY="beforedestroy",s.BEFORE_CHANGE_SIZE="beforechangesize",s.AFTER_CHANGE_SIZE="afterchangesize",(a=k||(k={})).BEFORE_DRAW_ANIMATE="beforeanimate",a.AFTER_DRAW_ANIMATE="afteranimate",(l=P||(P={})).MOUSE_ENTER="plot:mouseenter",l.MOUSE_DOWN="plot:mousedown",l.MOUSE_MOVE="plot:mousemove",l.MOUSE_UP="plot:mouseup",l.MOUSE_LEAVE="plot:mouseleave",l.TOUCH_START="plot:touchstart",l.TOUCH_MOVE="plot:touchmove",l.TOUCH_END="plot:touchend",l.TOUCH_CANCEL="plot:touchcancel",l.CLICK="plot:click",l.DBLCLICK="plot:dblclick",l.CONTEXTMENU="plot:contextmenu",l.LEAVE="plot:leave",l.ENTER="plot:enter",(h=F||(F={})).ACTIVE="active",h.INACTIVE="inactive",h.SELECTED="selected",h.DEFAULT="default";var eE=["color","shape","size"],e_="_origin",eC={};function eS(e){B||(B=document.createElement("table"),U=document.createElement("tr"),H=/^\s*<(\w+|!)[^>]*>/,V={tr:document.createElement("tbody"),tbody:B,thead:B,tfoot:B,td:U,th:U,"*":document.createElement("div")});var t=H.test(e)&&RegExp.$1;t&&t in V||(t="*");var i=V[t];e="string"==typeof e?e.replace(/(^\s*)|(\s*$)/g,""):e,i.innerHTML=""+e;var n=i.childNodes[0];return n&&i.contains(n)&&i.removeChild(n),n}function ey(e,t){if(e)for(var i in t)t.hasOwnProperty(i)&&(e.style[i]=t[i]);return e}function eT(e){return"number"==typeof e&&!isNaN(e)}function eb(e,t,i,n){var r=i,o=n;if(t){var s,a=(s=getComputedStyle(e),{width:(e.clientWidth||parseInt(s.width,10))-parseInt(s.paddingLeft,10)-parseInt(s.paddingRight,10),height:(e.clientHeight||parseInt(s.height,10))-parseInt(s.paddingTop,10)-parseInt(s.paddingBottom,10)});r=a.width?a.width:r,o=a.height?a.height:o}return{width:Math.max(eT(r)?r:1,1),height:Math.max(eT(o)?o:1,1)}}var eA=i(90494),eR=function(e){function t(t){var i=e.call(this)||this;i.destroyed=!1;var n=t.visible;return i.visible=void 0===n||n,i}return(0,ef.ZT)(t,e),t.prototype.show=function(){this.visible||this.changeVisible(!0)},t.prototype.hide=function(){this.visible&&this.changeVisible(!1)},t.prototype.destroy=function(){this.off(),this.destroyed=!0},t.prototype.changeVisible=function(e){this.visible!==e&&(this.visible=e)},t}(eA.Z),eL=i(98190),eN=function(){function e(e){var t=e.xField,i=e.yField,n=e.adjustNames,r=e.dimValuesMap;this.adjustNames=void 0===n?["x","y"]:n,this.xField=t,this.yField=i,this.dimValuesMap=r}return e.prototype.isAdjust=function(e){return this.adjustNames.indexOf(e)>=0},e.prototype.getAdjustRange=function(e,t,i){var n,r,o=this.yField,s=i.indexOf(t),a=i.length;return!o&&this.isAdjust("y")?(n=0,r=1):a>1?(n=i[0===s?0:s-1],r=i[s===a-1?a-1:s+1],0!==s?n+=(t-n)/2:n-=(r-t)/2,s!==a-1?r-=(r-t)/2:r+=(t-i[a-2])/2):(n=0===t?0:t-.5,r=0===t?1:t+.5),{pre:n,next:r}},e.prototype.adjustData=function(e,t){var i=this,n=this.getDimValues(t);em.S6(e,function(e,t){em.S6(n,function(n,r){i.adjustDim(r,n,e,t)})})},e.prototype.groupData=function(e,t){return em.S6(e,function(e){void 0===e[t]&&(e[t]=0)}),em.vM(e,t)},e.prototype.adjustDim=function(e,t,i,n){},e.prototype.getDimValues=function(e){var t=this.xField,i=this.yField,n=em.f0({},this.dimValuesMap),r=[];return t&&this.isAdjust("x")&&r.push(t),i&&this.isAdjust("y")&&r.push(i),r.forEach(function(t){n&&n[t]||(n[t]=em.I(e,t).sort(function(e,t){return e-t}))}),!i&&this.isAdjust("y")&&(n.y=[0,1]),n},e}(),eI={},ew=function(e){return eI[e.toLowerCase()]},eO=function(e,t){if(ew(e))throw Error("Adjust type '"+e+"' existed.");eI[e.toLowerCase()]=t},ex=function(e,t){return(ex=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function eD(e,t){function i(){this.constructor=e}ex(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var eM=function(){return(eM=Object.assign||function(e){for(var t,i=1,n=arguments.length;i=0){var d=this.getIntervalOnlyOffset(i,t);n=l+d}else if(!em.UM(a)&&em.UM(s)&&a>=0){var d=this.getDodgeOnlyOffset(i,t);n=l+d}else if(!em.UM(s)&&!em.UM(a)&&s>=0&&a>=0){var d=this.getIntervalAndDodgeOffset(i,t);n=l+d}else{var c=u*r/i,g=o*c,d=.5*(u-i*c-(i-1)*g)+((t+1)*c+t*g)-.5*c-.5*u;n=(l+h)/2+d}return n},t.prototype.getIntervalOnlyOffset=function(e,t){var i=this.defaultSize,n=this.intervalPadding,r=this.xDimensionLegenth,o=this.groupNum,s=this.dodgeRatio,a=this.maxColumnWidth,l=this.minColumnWidth,h=this.columnWidthRatio,u=n/r,d=(1-(o-1)*u)/o*s/(e-1),c=((1-u*(o-1))/o-d*(e-1))/e;return c=em.UM(h)?c:1/o/e*h,em.UM(a)||(c=Math.min(c,a/r)),em.UM(l)||(c=Math.max(c,l/r)),d=((1-(o-1)*u)/o-e*(c=i?i/r:c))/(e-1),((.5+t)*c+t*d+.5*u)*o-u/2},t.prototype.getDodgeOnlyOffset=function(e,t){var i=this.defaultSize,n=this.dodgePadding,r=this.xDimensionLegenth,o=this.groupNum,s=this.marginRatio,a=this.maxColumnWidth,l=this.minColumnWidth,h=this.columnWidthRatio,u=n/r,d=1*s/(o-1),c=((1-d*(o-1))/o-u*(e-1))/e;return c=h?1/o/e*h:c,em.UM(a)||(c=Math.min(c,a/r)),em.UM(l)||(c=Math.max(c,l/r)),d=(1-((c=i?i/r:c)*e+u*(e-1))*o)/(o-1),((.5+t)*c+t*u+.5*d)*o-d/2},t.prototype.getIntervalAndDodgeOffset=function(e,t){var i=this.intervalPadding,n=this.dodgePadding,r=this.xDimensionLegenth,o=this.groupNum,s=i/r,a=n/r;return((.5+t)*(((1-s*(o-1))/o-a*(e-1))/e)+t*a+.5*s)*o-s/2},t.prototype.getDistribution=function(e){var t=this.adjustDataArray,i=this.cacheMap,n=i[e];return n||(n={},em.S6(t,function(t,i){var r=em.I(t,e);r.length||r.push(0),em.S6(r,function(e){n[e]||(n[e]=[]),n[e].push(i)})}),i[e]=n),n},t}(eN),eP=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return eD(t,e),t.prototype.process=function(e){var t=em.d9(e),i=em.xH(t);return this.adjustData(t,i),t},t.prototype.adjustDim=function(e,t,i){var n=this,r=this.groupData(i,e);return em.S6(r,function(i,r){return n.adjustGroup(i,e,parseFloat(r),t)})},t.prototype.getAdjustOffset=function(e){var t,i=e.pre,n=e.next,r=(n-i)*.05;return t=i+r,(n-r-t)*Math.random()+t},t.prototype.adjustGroup=function(e,t,i,n){var r=this,o=this.getAdjustRange(t,i,n);return em.S6(e,function(e){e[t]=r.getAdjustOffset(o)}),e},t}(eN),eF=em.Ct,eB=function(e){function t(t){var i=e.call(this,t)||this,n=t.adjustNames,r=t.height,o=void 0===r?NaN:r,s=t.size,a=t.reverseOrder;return i.adjustNames=void 0===n?["y"]:n,i.height=o,i.size=void 0===s?10:s,i.reverseOrder=void 0!==a&&a,i}return eD(t,e),t.prototype.process=function(e){var t=this.yField,i=this.reverseOrder,n=t?this.processStack(e):this.processOneDimStack(e);return i?this.reverse(n):n},t.prototype.reverse=function(e){return e.slice(0).reverse()},t.prototype.processStack=function(e){var t=this.xField,i=this.yField,n=this.reverseOrder?this.reverse(e):e,r=new eF,o=new eF;return n.map(function(e){return e.map(function(e){var n,s=em.U2(e,t,0),a=em.U2(e,[i]),l=s.toString();if(a=em.kJ(a)?a[1]:a,!em.UM(a)){var h=a>=0?r:o;h.has(l)||h.set(l,0);var u=h.get(l),d=a+u;return h.set(l,d),eM(eM({},e),((n={})[i]=[u,d],n))}return e})})},t.prototype.processOneDimStack=function(e){var t=this,i=this.xField,n=this.height,r=this.reverseOrder?this.reverse(e):e,o=new eF;return r.map(function(e){return e.map(function(e){var r,s=t.size,a=e[i],l=2*s/n;o.has(a)||o.set(a,l/2);var h=o.get(a);return o.set(a,h+l),eM(eM({},e),((r={}).y=h,r))})})},t}(eN),eU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return eD(t,e),t.prototype.process=function(e){var t=em.xH(e),i=this.xField,n=this.yField,r=this.getXValuesMaxMap(t),o=Math.max.apply(Math,Object.keys(r).map(function(e){return r[e]}));return em.UI(e,function(e){return em.UI(e,function(e){var t,s,a=e[n],l=e[i];if(em.kJ(a)){var h=(o-r[l])/2;return eM(eM({},e),((t={})[n]=em.UI(a,function(e){return h+e}),t))}var u=(o-a)/2;return eM(eM({},e),((s={})[n]=[u,a+u],s))})})},t.prototype.getXValuesMaxMap=function(e){var t=this,i=this.xField,n=this.yField,r=em.vM(e,function(e){return e[i]});return em.Q8(r,function(e){return t.getDimMaxValue(e,n)})},t.prototype.getDimMaxValue=function(e,t){var i=em.UI(e,function(e){return em.U2(e,t,[])}),n=em.xH(i);return Math.max.apply(Math,n)},t}(eN);eO("Dodge",ek),eO("Jitter",eP),eO("Stack",eB),eO("Symmetric",eU);var eH=function(e,t){return(0,em.HD)(t)?t:e.invert(e.scale(t))},eV=function(){function e(e){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(e)}return e.prototype.mapping=function(){for(var e=this,t=[],i=0;i1?1:Number(t),n=e.length-1,r=Math.floor(n*i),o=n*i-r,s=e[r],a=r===n?s:e[r+1];return eX([e$(s,a,o,0),e$(s,a,o,1),e$(s,a,o,2)])},eJ=function(e){if("#"===e[0]&&7===e.length)return e;W||(W=eK()),W.style.color=e;var t=document.defaultView.getComputedStyle(W,"").getPropertyValue("color");return eX(eW.exec(t)[1].split(/\s*,\s*/).map(function(e){return Number(e)}))},eQ={rgb2arr:ej,gradient:function(e){var t=(0,em.HD)(e)?e.split("-"):e,i=(0,em.UI)(t,function(e){return ej(-1===e.indexOf("#")?eJ(e):e)});return function(e){return eZ(i,e)}},toRGB:(0,em.HP)(eJ),toCSSGradient:function(e){if(/^[r,R,L,l]{1}[\s]*\(/.test(e)){var t,i=void 0;if("l"===e[0]){var n=eG.exec(e),r=+n[1]+90;i=n[2],t="linear-gradient("+r+"deg, "}else if("r"===e[0]){t="radial-gradient(";var n=ez.exec(e);i=n[4]}var o=i.match(eY);return(0,em.S6)(o,function(e,i){var n=e.split(":");t+=n[1]+" "+100*n[0]+"%",i!==o.length-1&&(t+=", ")}),t+=")"}return e}},e0=function(e){function t(t){var i=e.call(this,t)||this;return i.type="color",i.names=["color"],(0,em.HD)(i.values)&&(i.linear=!0),i.gradient=eQ.gradient(i.values),i}return(0,ef.ZT)(t,e),t.prototype.getLinearValue=function(e){return this.gradient(e)},t}(eV),e1=function(e){function t(t){var i=e.call(this,t)||this;return i.type="opacity",i.names=["opacity"],i}return(0,ef.ZT)(t,e),t}(eV),e2=function(e){function t(t){var i=e.call(this,t)||this;return i.names=["x","y"],i.type="position",i}return(0,ef.ZT)(t,e),t.prototype.mapping=function(e,t){var i=this.scales,n=i[0],r=i[1];return(0,em.UM)(e)||(0,em.UM)(t)?[]:[(0,em.kJ)(e)?e.map(function(e){return n.scale(e)}):n.scale(e),(0,em.kJ)(t)?t.map(function(e){return r.scale(e)}):r.scale(t)]},t}(eV),e4=function(e){function t(t){var i=e.call(this,t)||this;return i.type="shape",i.names=["shape"],i}return(0,ef.ZT)(t,e),t.prototype.getLinearValue=function(e){var t=Math.round((this.values.length-1)*e);return this.values[t]},t}(eV),e5=function(e){function t(t){var i=e.call(this,t)||this;return i.type="size",i.names=["size"],i}return(0,ef.ZT)(t,e),t}(eV),e6={},e3=function(){function e(e){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=e,this.initCfg(),this.init()}return e.prototype.translate=function(e){return e},e.prototype.change=function(e){(0,em.f0)(this.__cfg__,e),this.init()},e.prototype.clone=function(){return this.constructor(this.__cfg__)},e.prototype.getTicks=function(){var e=this;return(0,em.UI)(this.ticks,function(t,i){return(0,em.Kn)(t)?t:{text:e.getText(t,i),tickValue:t,value:e.scale(t)}})},e.prototype.getText=function(e,t){var i=this.formatter,n=i?i(e,t):e;return(0,em.UM)(n)||!(0,em.mf)(n.toString)?"":n.toString()},e.prototype.getConfig=function(e){return this.__cfg__[e]},e.prototype.init=function(){(0,em.f0)(this,this.__cfg__),this.setDomain(),(0,em.xb)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},e.prototype.initCfg=function(){},e.prototype.setDomain=function(){},e.prototype.calculateTicks=function(){var e=this.tickMethod,t=[];if((0,em.HD)(e)){var i=e6[e];if(!i)throw Error("There is no method to to calculate ticks!");t=i(this)}else(0,em.mf)(e)&&(t=e(this));return t},e.prototype.rangeMin=function(){return this.range[0]},e.prototype.rangeMax=function(){return this.range[1]},e.prototype.calcPercent=function(e,t,i){return(0,em.hj)(e)?(e-t)/(i-t):NaN},e.prototype.calcValue=function(e,t,i){return t+e*(i-t)},e}(),e9=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cat",t.isCategory=!0,t}return(0,ef.ZT)(t,e),t.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var e=0;ethis.max?NaN:this.values[t]},t.prototype.getText=function(t){for(var i=[],n=1;n1?e-1:e}this.translateIndexMap&&(this.translateIndexMap=void 0)},t}(e3),e7=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,e8="\\d\\d?",te="\\d\\d",tt="[^\\s]+",ti=/\[([^]*?)\]/gm;function tn(e,t){for(var i=[],n=0,r=e.length;n-1?n:null}};function to(e){for(var t=[],i=1;i3?0:(e-e%10!=10?1:0)*e%10]}},tu=to({},th),td=function(e){return tu=to(tu,e)},tc=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},tg=function(e,t){for(void 0===t&&(t=2),e=String(e);e.lengthe.getHours()?t.amPm[0]:t.amPm[1]},A:function(e,t){return 12>e.getHours()?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+tg(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+tg(Math.floor(Math.abs(t)/60),2)+":"+tg(Math.abs(t)%60,2)}},tf=function(e){return+e-1},tm=[null,e8],tv=[null,tt],tE=["isPm",tt,function(e,t){var i=e.toLowerCase();return i===t.amPm[0]?0:i===t.amPm[1]?1:null}],t_=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var i=60*+t[1]+parseInt(t[2],10);return"+"===t[0]?i:-i}return 0}],tC={D:["day",e8],DD:["day",te],Do:["day",e8+tt,function(e){return parseInt(e,10)}],M:["month",e8,tf],MM:["month",te,tf],YY:["year",te,function(e){var t=+(""+new Date().getFullYear()).substr(0,2);return+(""+(+e>68?t-1:t)+e)}],h:["hour",e8,void 0,"isPm"],hh:["hour",te,void 0,"isPm"],H:["hour",e8],HH:["hour",te],m:["minute",e8],mm:["minute",te],s:["second",e8],ss:["second",te],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(e){return 100*+e}],SS:["millisecond",te,function(e){return 10*+e}],SSS:["millisecond","\\d{3}"],d:tm,dd:tm,ddd:tv,dddd:tv,MMM:["month",tt,tr("monthNamesShort")],MMMM:["month",tt,tr("monthNames")],a:tE,A:tE,ZZ:t_,Z:t_},tS={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},ty=function(e){return to(tS,e)},tT=function(e,t,i){if(void 0===t&&(t=tS.default),void 0===i&&(i={}),"number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw Error("Invalid Date pass to format");t=tS[t]||t;var n=[];t=t.replace(ti,function(e,t){return n.push(t),"@@@"});var r=to(to({},tu),i);return(t=t.replace(e7,function(t){return tp[t](e,r)})).replace(/@@@/g,function(){return n.shift()})};function tb(e,t,i){if(void 0===i&&(i={}),"string"!=typeof t)throw Error("Invalid format in fecha parse");if(t=tS[t]||t,e.length>1e3)return null;var n,r={year:new Date().getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},o=[],s=[],a=t.replace(ti,function(e,t){return s.push(tc(t)),"@@@"}),l={},h={};a=tc(a).replace(e7,function(e){var t=tC[e],i=t[0],n=t[1],r=t[3];if(l[i])throw Error("Invalid format. "+i+" specified twice in format");return l[i]=!0,r&&(h[r]=!0),o.push(t),"("+n+")"}),Object.keys(h).forEach(function(e){if(!l[e])throw Error("Invalid format. "+e+" is required in specified format")}),a=a.replace(/@@@/g,function(){return s.shift()});var u=e.match(RegExp(a,"i"));if(!u)return null;for(var d=to(to({},tu),i),c=1;c11||r.month<0||r.day>31||r.day<1||r.hour>23||r.hour<0||r.minute>59||r.minute<0||r.second>59||r.second<0)return null;return n}var tA={format:tT,parse:tb,defaultI18n:th,setGlobalDateI18n:td,setGlobalDateMasks:ty},tR="format";function tL(e,t){return(ei[tR]||tA[tR])(e,t)}function tN(e){return(0,em.HD)(e)&&(e=e.indexOf("T")>0?new Date(e).getTime():new Date(e.replace(/-/gi,"/")).getTime()),(0,em.J_)(e)&&(e=e.getTime()),e}var tI=[["HH:mm:ss",1e3],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",6e4],["HH:mm",6e5],["HH:mm",18e5],["HH",36e5],["HH",216e5],["HH",432e5],["YYYY-MM-DD",864e5],["YYYY-MM-DD",3456e5],["YYYY-WW",6048e5],["YYYY-MM",26784e5],["YYYY-MM",107136e5],["YYYY-MM",160704e5],["YYYY",32832e6]],tw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="timeCat",t}return(0,ef.ZT)(t,e),t.prototype.translate=function(e){e=tN(e);var t=this.values.indexOf(e);return -1===t&&(t=(0,em.hj)(e)&&e-1){var n=this.values[i],r=this.formatter;return r?r(n,t):tL(n,this.mask)}return e},t.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},t.prototype.setDomain=function(){var t=this.values;(0,em.S6)(t,function(e,i){t[i]=tN(e)}),t.sort(function(e,t){return e-t}),e.prototype.setDomain.call(this)},t}(e9),tO=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isContinuous=!0,t}return(0,ef.ZT)(t,e),t.prototype.scale=function(e){if((0,em.UM)(e))return NaN;var t=this.rangeMin(),i=this.rangeMax();return this.max===this.min?t:t+this.getScalePercent(e)*(i-t)},t.prototype.init=function(){e.prototype.init.call(this);var t=this.ticks,i=(0,em.YM)(t),n=(0,em.Z$)(t);ithis.max&&(this.max=n),(0,em.UM)(this.minLimit)||(this.min=i),(0,em.UM)(this.maxLimit)||(this.max=n)},t.prototype.setDomain=function(){var e=(0,em.rx)(this.values),t=e.min,i=e.max;(0,em.UM)(this.min)&&(this.min=t),(0,em.UM)(this.max)&&(this.max=i),this.min>this.max&&(this.min=t,this.max=i)},t.prototype.calculateTicks=function(){var t=this,i=e.prototype.calculateTicks.call(this);return this.nice||(i=(0,em.hX)(i,function(e){return e>=t.min&&e<=t.max})),i},t.prototype.getScalePercent=function(e){var t=this.max,i=this.min;return(e-i)/(t-i)},t.prototype.getInvertPercent=function(e){return(e-this.rangeMin())/(this.rangeMax()-this.rangeMin())},t}(e3),tx=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="linear",t.isLinear=!0,t}return(0,ef.ZT)(t,e),t.prototype.invert=function(e){var t=this.getInvertPercent(e);return this.min+t*(this.max-this.min)},t.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},t}(tO);function tD(e,t){var i=Math.E;return t>=0?Math.pow(i,Math.log(t)/e):-1*Math.pow(i,Math.log(-t)/e)}function tM(e,t){return 1===e?1:Math.log(t)/Math.log(e)}function tk(e,t,i){(0,em.UM)(i)&&(i=Math.max.apply(null,e));var n=i;return(0,em.S6)(e,function(e){e>0&&e1&&(n=1),n}var tP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t}return(0,ef.ZT)(t,e),t.prototype.invert=function(e){var t,i=this.base,n=tM(i,this.max),r=this.rangeMin(),o=this.rangeMax()-r,s=this.positiveMin;if(s){if(0===e)return 0;var a=1/(n-(t=tM(i,s/i)))*o;if(e=0?1:-1)},t.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},t.prototype.getScalePercent=function(e){var t=this.max,i=this.min;if(t===i)return 0;var n=this.exponent;return(tD(n,e)-tD(n,i))/(tD(n,t)-tD(n,i))},t}(tO),tB=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="time",t}return(0,ef.ZT)(t,e),t.prototype.getText=function(e,t){var i=this.translate(e),n=this.formatter;return n?n(i,t):tL(i,this.mask)},t.prototype.scale=function(t){var i=t;return((0,em.HD)(i)||(0,em.J_)(i))&&(i=this.translate(i)),e.prototype.scale.call(this,i)},t.prototype.translate=function(e){return tN(e)},t.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},t.prototype.setDomain=function(){var e=this.values,t=this.getConfig("min"),i=this.getConfig("max");if((0,em.UM)(t)&&(0,em.hj)(t)||(this.min=this.translate(this.min)),(0,em.UM)(i)&&(0,em.hj)(i)||(this.max=this.translate(this.max)),e&&e.length){var n=[],r=1/0,o=1/0,s=0;(0,em.S6)(e,function(e){var t=tN(e);if(isNaN(t))throw TypeError("Invalid Time: "+e+" in time scale!");r>t?(o=r,r=t):o>t&&(o=t),s1&&(this.minTickInterval=o-r),(0,em.UM)(t)&&(this.min=r),(0,em.UM)(i)&&(this.max=s)}},t}(tx),tU=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="quantize",t}return(0,ef.ZT)(t,e),t.prototype.invert=function(e){var t=this.ticks,i=t.length,n=this.getInvertPercent(e),r=Math.floor(n*(i-1));if(r>=i-1)return(0,em.Z$)(t);if(r<0)return(0,em.YM)(t);var o=t[r],s=t[r+1],a=r/(i-1);return o+(n-a)/((r+1)/(i-1)-a)*(s-o)},t.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},t.prototype.calculateTicks=function(){var t=e.prototype.calculateTicks.call(this);return this.nice||((0,em.Z$)(t)!==this.max&&t.push(this.max),(0,em.YM)(t)!==this.min&&t.unshift(this.min)),t},t.prototype.getScalePercent=function(e){var t=this.ticks;if(e<(0,em.YM)(t))return 0;if(e>(0,em.Z$)(t))return 1;var i=0;return(0,em.S6)(t,function(t,n){if(!(e>=t))return!1;i=n}),i/(t.length-1)},t}(tO),tH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="quantile",t}return(0,ef.ZT)(t,e),t.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},t}(tU),tV={};function tW(e,t){if(tV[e])throw Error("type '"+e+"' existed.");tV[e]=t}var tG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="identity",t.isIdentity=!0,t}return(0,ef.ZT)(t,e),t.prototype.calculateTicks=function(){return this.values},t.prototype.scale=function(e){return this.values[0]!==e&&(0,em.hj)(e)?e:this.range[0]},t.prototype.invert=function(e){var t=this.range;return et[1]?NaN:this.values[0]},t}(e3);function tz(e){var t=e.values,i=e.tickInterval,n=e.tickCount,r=e.showLast;if((0,em.hj)(i)){var o=(0,em.hX)(t,function(e,t){return t%i==0}),s=(0,em.Z$)(t);return r&&(0,em.Z$)(o)!==s&&o.push(s),o}var a=t.length,l=e.min,h=e.max;if((0,em.UM)(l)&&(l=0),(0,em.UM)(h)&&(h=t.length-1),!(0,em.hj)(n)||n>=a)return t.slice(l,h+1);if(n<=0||h<=0)return[];for(var u=1===n?a:Math.floor(a/(n-1)),d=[],c=l,g=0;g=h);g++)c=Math.min(l+g*u,h),g===n-1&&r?d.push(t[h]):d.push(t[c]);return d}var tY=Math.sqrt(50),tK=Math.sqrt(10),t$=Math.sqrt(2),tX=function(){function e(){this._domain=[0,1]}return e.prototype.domain=function(e){return e?(this._domain=Array.from(e,Number),this):this._domain.slice()},e.prototype.nice=function(e){void 0===e&&(e=5);var t,i,n,r=this._domain.slice(),o=0,s=this._domain.length-1,a=this._domain[o],l=this._domain[s];return l0?n=tj(a=Math.floor(a/n)*n,l=Math.ceil(l/n)*n,e):n<0&&(n=tj(a=Math.ceil(a*n)/n,l=Math.floor(l*n)/n,e)),n>0?(r[o]=Math.floor(a/n)*n,r[s]=Math.ceil(l/n)*n,this.domain(r)):n<0&&(r[o]=Math.ceil(a*n)/n,r[s]=Math.floor(l*n)/n,this.domain(r)),this},e.prototype.ticks=function(e){return void 0===e&&(e=5),function(e,t,i){var n,r,o,s,a=-1;if(i=+i,(e=+e)==(t=+t)&&i>0)return[e];if((n=t0)for(e=Math.ceil(e/s),o=Array(r=Math.ceil((t=Math.floor(t/s))-e+1));++a=0?(o>=tY?10:o>=tK?5:o>=t$?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=tY?10:o>=tK?5:o>=t$?2:1)}function tq(e,t,i){return("ceil"===i?Math.ceil(e/t):"floor"===i?Math.floor(e/t):Math.round(e/t))*t}function tZ(e,t,i){var n=tq(e,i,"floor"),r=tq(t,i,"ceil");n=(0,em.ri)(n,i),r=(0,em.ri)(r,i);for(var o=[],s=Math.max((r-n)/4095,i),a=n;a<=r;a+=s){var l=(0,em.ri)(a,s);o.push(l)}return{min:n,max:r,ticks:o}}function tJ(e,t,i){var n,r=e.minLimit,o=e.maxLimit,s=e.min,a=e.max,l=e.tickCount,h=void 0===l?5:l,u=(0,em.UM)(r)?(0,em.UM)(t)?s:t:r,d=(0,em.UM)(o)?(0,em.UM)(i)?a:i:o;if(u>d&&(d=(n=[u,d])[0],u=n[1]),h<=2)return[u,d];for(var c=(d-u)/(h-1),g=[],p=0;pMath.abs(e)?e:parseFloat(e.toFixed(15))}var t0=[1,5,2,2.5,4,3],t1=100*Number.EPSILON;function t2(e,t,i){if(void 0===i&&(i=5),e===t)return{max:t,min:e,ticks:[e]};var n=i<0?0:Math.round(i);if(0===n)return{max:t,min:e,ticks:[]};var r=(t-e)/n,o=Math.pow(10,Math.floor(Math.log10(r))),s=o;2*o-r<1.5*(r-s)&&(s=2*o,5*o-r<2.75*(r-s)&&(s=5*o,10*o-r<1.5*(r-s)&&(s=10*o)));for(var a=Math.ceil(t/s),l=Math.floor(e/s),h=Math.max(a*s,t),u=Math.min(l*s,e),d=Math.floor((h-u)/s)+1,c=Array(d),g=0;g1e148){var a=i||5,l=(t-e)/a;return{min:e,max:t,ticks:Array(a).fill(null).map(function(t,i){return tQ(e+l*i)})}}for(var h={score:-2,lmin:0,lmax:0,lstep:0},u=1;u<1/0;){for(var d=0;d=s?2-(y-1)/(s-1):1;if(o[0]*g+o[1]+o[2]*f+o[3]n?1-Math.pow((i-n)/2,2)/Math.pow(.1*n,2):1}(e,t,v*(p-1));if(o[0]*g+o[1]*E+o[2]*f+o[3]=0&&(l=1),1-a/(s-1)-i+l}(c,r,u,T,b,v),R=1-.5*(Math.pow(t-b,2)+Math.pow(e-T,2))/Math.pow(.1*(t-e),2),L=function(e,t,i,n,r,o){var s=(e-1)/(o-r),a=(t-1)/(Math.max(o,n)-Math.min(i,r));return 2-Math.max(s/a,a/s)}(p,s,e,t,T,b),N=o[0]*A+o[1]*R+o[2]*L+1*o[3];N>h.score&&(!n||T<=e&&b>=t)&&(h.lmin=T,h.lmax=b,h.lstep=v,h.score=N)}m+=1}p+=1}}u+=1}var I=tQ(h.lmax),w=tQ(h.lmin),O=tQ(h.lstep),x=Math.floor(Math.round(1e12*((I-w)/O))/1e12)+1,D=Array(x);D[0]=tQ(w);for(var d=1;d>>1;e[s][1]>t?o=s:r=s+1}return r}(tI,(i-t)/(s=o))-1,l=tI[a],a<0?l=tI[0]:a>=tI.length&&(l=(0,em.Z$)(tI)),l)[1];var s,a,l,h=(i-t)/r/o;h>1&&(r*=Math.ceil(h)),n&&r31536e6)for(var l,h=t4(i),u=Math.ceil(o/31536e6),d=a;d<=h+u;d+=u)s.push((l=d,new Date(l,0,1).getTime()));else if(o>26784e5)for(var c,g,p,f,m=Math.ceil(o/26784e5),v=t5(t),E=(c=t4(t),g=t4(i),p=t5(t),(g-c)*12+(t5(i)-p)%12),d=0;d<=E+m;d+=m)s.push((f=d+v,new Date(a,f,1).getTime()));else if(o>864e5)for(var _=new Date(t),C=_.getFullYear(),S=_.getMonth(),y=_.getDate(),T=Math.ceil(o/864e5),b=Math.ceil((i-t)/864e5),d=0;d36e5)for(var _=new Date(t),C=_.getFullYear(),S=_.getMonth(),T=_.getDate(),A=_.getHours(),R=Math.ceil(o/36e5),L=Math.ceil((i-t)/36e5),d=0;d<=L+R;d+=R)s.push(new Date(C,S,T,A+d).getTime());else if(o>6e4)for(var N=Math.ceil((i-t)/6e4),I=Math.ceil(o/6e4),d=0;d<=N+I;d+=I)s.push(t+6e4*d);else{var w=o;w<1e3&&(w=1e3);for(var O=1e3*Math.floor(t/1e3),x=Math.ceil((i-t)/1e3),D=Math.ceil(w/1e3),d=0;d=512&&console.warn("Notice: current ticks length("+s.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+o+") is too small, increase the value to solve the problem!"),s},e6.log=function(e){var t,i=e.base,n=e.tickCount,r=e.min,o=e.max,s=e.values,a=tM(i,o);if(r>0)t=Math.floor(tM(i,r));else{var l=tk(s,i,o);t=Math.floor(tM(i,l))}for(var h=Math.ceil((a-t)/n),u=[],d=t;d=0?1:-1)})},e6.quantile=function(e){var t=e.tickCount,i=e.values;if(!i||!i.length)return[];for(var n=i.slice().sort(function(e,t){return e-t}),r=[],o=0;o=0&&this.radius<=1&&(i*=this.radius),this.d=Math.floor(i*(1-this.innerRadius)/t),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*i,end:this.innerRadius*i+.99*this.d}},t.prototype.convertPoint=function(e){var t,i=e.x,n=e.y;this.isTransposed&&(i=(t=[n,i])[0],n=t[1]);var r=this.convertDim(i,"x"),o=this.a*r,s=this.convertDim(n,"y");return{x:this.center.x+Math.cos(r)*(o+s),y:this.center.y+Math.sin(r)*(o+s)}},t.prototype.invertPoint=function(e){var t,i=this.d+this.y.start,n=io.$X([0,0],[e.x,e.y],[this.center.x,this.center.y]),r=it.Dg(n,[1,0],!0),o=r*this.a;io.kE(n)this.width/n?(t=this.width/n,this.circleCenter={x:this.center.x-(.5-o)*this.width,y:this.center.y-(.5-s)*t*r}):(t=this.height/r,this.circleCenter={x:this.center.x-(.5-o)*t*n,y:this.center.y-(.5-s)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=t*this.radius:(this.radius<=0||this.radius>t)&&(this.polarRadius=t):this.polarRadius=t,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},t.prototype.getRadius=function(){return this.polarRadius},t.prototype.convertPoint=function(e){var t,i=this.getCenter(),n=e.x,r=e.y;return this.isTransposed&&(n=(t=[r,n])[0],r=t[1]),n=this.convertDim(n,"x"),r=this.convertDim(r,"y"),{x:i.x+Math.cos(n)*r,y:i.y+Math.sin(n)*r}},t.prototype.invertPoint=function(e){var t,i=this.getCenter(),n=[e.x-i.x,e.y-i.y],r=this.startAngle,o=this.endAngle;this.isReflect("x")&&(r=(t=[o,r])[0],o=t[1]);var s=[1,0,0,0,1,0,0,0,1];it.zu(s,s,r);var a=[1,0,0];t8(a,a,s);var l=[a[0],a[1]],h=it.Dg(l,n,o0?d:-d;var c=this.invertDim(u,"y"),g={x:0,y:0};return g.x=this.isTransposed?c:d,g.y=this.isTransposed?d:c,g},t.prototype.getCenter=function(){return this.circleCenter},t.prototype.getOneBox=function(){var e=this.startAngle,t=this.endAngle;if(Math.abs(t-e)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var i=[0,Math.cos(e),Math.cos(t)],n=[0,Math.sin(e),Math.sin(t)],r=Math.min(e,t);r=0;n--)e.removeChild(t[n])}function iC(e){var t=e.start,i=e.end,n=Math.min(t.x,i.x),r=Math.min(t.y,i.y),o=Math.max(t.x,i.x),s=Math.max(t.y,i.y);return{x:n,y:r,minX:n,minY:r,maxX:o,maxY:s,width:o-n,height:s-r}}function iS(e,t,i,n){var r=e+i,o=t+n;return{x:e,y:t,width:i,height:n,minX:e,minY:t,maxX:isNaN(r)?0:r,maxY:isNaN(o)?0:o}}function iy(e,t,i){return{x:e.x+Math.cos(i)*t,y:e.y+Math.sin(i)*t}}var iT=function(e,t,i){return void 0===i&&(i=Math.pow(Number.EPSILON,.5)),[e,t].includes(1/0)?Math.abs(e)===Math.abs(t):Math.abs(e-t)0?(0,em.S6)(c,function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var i=e(t),n=t.applyToMatrix([i.minX,i.minY,1]),r=t.applyToMatrix([i.minX,i.maxY,1]),o=t.applyToMatrix([i.maxX,i.minY,1]),s=t.applyToMatrix([i.maxX,i.maxY,1]),a=Math.min(n[0],r[0],o[0],s[0]),c=Math.max(n[0],r[0],o[0],s[0]),g=Math.min(n[1],r[1],o[1],s[1]),p=Math.max(n[1],r[1],o[1],s[1]);ah&&(h=c),gd&&(d=p)}}):(l=0,h=0,u=0,d=0),o=iS(l,u,h-l,d-u)}else o=t.getBBox();return a?iS(n=Math.max((i=o).minX,a.minX),r=Math.max(i.minY,a.minY),Math.min(i.maxX,a.maxX)-n,Math.min(i.maxY,a.maxY)-r):o}(e)),e},t.prototype.addGroup=function(e,t){this.appendDelegateObject(e,t);var i=e.addGroup(t);return this.get("isRegister")&&this.registerElement(i),i},t.prototype.addShape=function(e,t){this.appendDelegateObject(e,t);var i=e.addShape(t);return this.get("isRegister")&&this.registerElement(i),i},t.prototype.addComponent=function(e,t){var i=t.id,n=t.component,r=(0,ef._T)(t,["id","component"]),o=new n((0,ef.pi)((0,ef.pi)({},r),{id:i,container:e,updateAutoRender:this.get("updateAutoRender")}));return o.init(),o.render(),this.get("isRegister")&&this.registerElement(o.get("group")),o},t.prototype.initEvent=function(){},t.prototype.removeEvent=function(){this.get("group").off()},t.prototype.getElementId=function(e){return this.get("id")+"-"+this.get("name")+"-"+e},t.prototype.registerElement=function(e){var t=e.get("id");this.get("shapesMap")[t]=e},t.prototype.unregisterElement=function(e){var t=e.get("id");delete this.get("shapesMap")[t]},t.prototype.moveElementTo=function(e,t){var i=ig(t);e.attr("matrix",i)},t.prototype.addAnimation=function(e,t,i){var n=t.attr("opacity");(0,em.UM)(n)&&(n=1),t.attr("opacity",0),t.animate({opacity:n},i)},t.prototype.removeAnimation=function(e,t,i){t.animate({opacity:0},i)},t.prototype.updateAnimation=function(e,t,i,n){t.animate(i,n)},t.prototype.updateElements=function(e,t){var i,n=this,r=this.get("animate"),o=this.get("animateOption"),s=e.getChildren().slice(0);(0,em.S6)(s,function(e){var s=e.get("id"),a=n.getElementById(s),l=e.get("name");if(a){if(e.get("isComponent")){var h=e.get("component"),u=a.get("component"),d=(0,em.ei)(h.cfg,(0,em.e5)((0,em.XP)(h.cfg),iw));u.update(d),a.set(iN,"update")}else{var c=n.getReplaceAttrs(a,e);r&&o.update?n.updateAnimation(l,a,c,o.update):a.attr(c),e.isGroup()&&n.updateElements(e,a),(0,em.S6)(iI,function(t){a.set(t,e.get(t))}),function(e,t){if(e.getClip()||t.getClip()){var i=t.getClip();if(!i){e.setClip(null);return}var n={type:i.get("type"),attrs:i.attr()};e.setClip(n)}}(a,e),i=a,a.set(iN,"update")}}else{t.add(e);var g=t.getChildren();if(g.splice(g.length-1,1),i){var p=g.indexOf(i);g.splice(p+1,0,e)}else g.unshift(e);if(n.registerElement(e),e.set(iN,"add"),e.get("isComponent")){var h=e.get("component");h.set("container",t)}else e.isGroup()&&n.registerNewGroup(e);if(i=e,r){var f=n.get("isInit")?o.appear:o.enter;f&&n.addAnimation(l,e,f)}}})},t.prototype.clearUpdateStatus=function(e){var t=e.getChildren();(0,em.S6)(t,function(e){e.set(iN,null)})},t.prototype.clearOffScreenCache=function(){var e=this.get("offScreenGroup");e&&e.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},t.prototype.getDelegateObject=function(){var e,t=this.get("name");return(e={})[t]=this,e.component=this,e},t.prototype.appendDelegateObject=function(e,t){var i=e.get("delegateObject");t.delegateObject||(t.delegateObject={}),(0,em.CD)(t.delegateObject,i)},t.prototype.getReplaceAttrs=function(e,t){var i=e.attr(),n=t.attr();return(0,em.S6)(i,function(e,t){void 0===n[t]&&(n[t]=void 0)}),n},t.prototype.registerNewGroup=function(e){var t=this,i=e.getChildren();(0,em.S6)(i,function(e){t.registerElement(e),e.set(iN,"add"),e.isGroup()&&t.registerNewGroup(e)})},t.prototype.deleteElements=function(){var e=this,t=this.get("shapesMap"),i=[];(0,em.S6)(t,function(e,t){!e.get(iN)||e.destroyed?i.push([t,e]):e.set(iN,null)});var n=this.get("animate"),r=this.get("animateOption");(0,em.S6)(i,function(i){var o=i[0],s=i[1];if(!s.destroyed){var a=s.get("name");if(n&&r.leave){var l=(0,em.CD)({callback:function(){e.removeElement(s)}},r.leave);e.removeAnimation(a,s,l)}else e.removeElement(s)}delete t[o]})},t.prototype.removeElement=function(e){if(e.get("isGroup")){var t=e.get("component");t&&t.destroy()}e.remove()},t}(iL);function ix(e,t){return e.charCodeAt(t)>0&&128>e.charCodeAt(t)?1:2}function iD(e){if(e.length>400)return function(e){for(var t=e.map(function(e){var t=e.attr("text");return(0,em.UM)(t)?"":""+t}),i=0,n=0,r=0;r=19968&&a<=40869?o+=2:o+=1}o>i&&(i=o,n=r)}return e[n].getBBox().width}(e);var t=0;return(0,em.S6)(e,function(e){var i=e.getBBox().width;t=0?function(e,t,i){void 0===i&&(i="tail");var n=e.length,r="";if("tail"===i){for(var o=0,s=0;o1||n<0)&&(n=1),{x:(r=e.x,o=t.x,(1-(s=n))*r+o*s),y:(a=e.y,l=t.y,(1-(h=n))*a+l*h)}},t.prototype.renderLabel=function(e){var t=this.get("text"),i=this.get("start"),n=this.get("end"),r=t.position,o=t.content,s=t.style,a=t.offsetX,l=t.offsetY,h=t.autoRotate,u=t.maxLength,d=t.autoEllipsis,c=t.ellipsisPosition,g=t.background,p=t.isVertical,f=this.getLabelPoint(i,n,r),m=f.x+a,v=f.y+l,E={id:this.getElementId("line-text"),name:"annotation-line-text",x:m,y:v,content:o,style:s,maxLength:u,autoEllipsis:d,ellipsisPosition:c,background:g,isVertical:void 0!==p&&p};if(h){var _=[n.x-i.x,n.y-i.y];E.rotate=Math.atan2(_[1],_[0])}ik(e,E)},t}(iO),iB=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:iP.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:iP.fontFamily}}})},t.prototype.setLocation=function(e){this.set("x",e.x),this.set("y",e.y),this.resetLocation()},t.prototype.renderInner=function(e){var t=this.getLocation(),i=t.x,n=t.y,r=this.get("content"),o=this.get("style");ik(e,{id:this.getElementId("text"),name:this.get("name")+"-text",x:i,y:n,content:r,style:o,maxLength:this.get("maxLength"),autoEllipsis:this.get("autoEllipsis"),isVertical:this.get("isVertical"),ellipsisPosition:this.get("ellipsisPosition"),background:this.get("background"),rotate:this.get("rotate")})},t.prototype.resetLocation=function(){var e=this.getElementByLocalId("text-group");if(e){var t=this.getLocation(),i=t.x,n=t.y,r=this.get("rotate");iv(e,i,n),im(e,r,i,n)}},t}(iO),iU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},t.prototype.renderInner=function(e){this.renderArc(e)},t.prototype.getArcPath=function(){var e=this.getLocation(),t=e.center,i=e.radius,n=e.startAngle,r=e.endAngle,o=iy(t,i,n),s=iy(t,i,r),a=r-n>Math.PI?1:0,l=[["M",o.x,o.y]];if(r-n==2*Math.PI){var h=iy(t,i,n+Math.PI);l.push(["A",i,i,0,a,1,h.x,h.y]),l.push(["A",i,i,0,a,1,s.x,s.y])}else l.push(["A",i,i,0,a,1,s.x,s.y]);return l},t.prototype.renderArc=function(e){var t=this.getArcPath(),i=this.get("style");this.addShape(e,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:(0,ef.pi)({path:t},i)})},t}(iO),iH=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:iP.regionColor,opacity:.4}}})},t.prototype.renderInner=function(e){this.renderRegion(e)},t.prototype.renderRegion=function(e){var t=this.get("start"),i=this.get("end"),n=this.get("style"),r=iC({start:t,end:i});this.addShape(e,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:(0,ef.pi)({x:r.x,y:r.y,width:r.width,height:r.height},n)})},t}(iO),iV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},t.prototype.renderInner=function(e){this.renderImage(e)},t.prototype.getImageAttrs=function(){var e=this.get("start"),t=this.get("end"),i=this.get("style"),n=iC({start:e,end:t}),r=this.get("src");return(0,ef.pi)({x:n.x,y:n.y,img:r,width:n.width,height:n.height},i)},t.prototype.renderImage=function(e){this.addShape(e,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},t}(iO),iW=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:iP.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:iP.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:iP.fontFamily}}}})},t.prototype.renderInner=function(e){(0,em.U2)(this.get("line"),"display")&&this.renderLine(e),(0,em.U2)(this.get("text"),"display")&&this.renderText(e),(0,em.U2)(this.get("point"),"display")&&this.renderPoint(e),this.get("autoAdjust")&&this.autoAdjust(e)},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},t.prototype.renderPoint=function(e){var t=this.getShapeAttrs().point;this.addShape(e,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:t})},t.prototype.renderLine=function(e){var t=this.getShapeAttrs().line;this.addShape(e,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:t})},t.prototype.renderText=function(e){var t=this.getShapeAttrs().text,i=t.x,n=t.y,r=t.text,o=(0,ef._T)(t,["x","y","text"]),s=this.get("text"),a=s.background,l=s.maxLength,h=s.autoEllipsis,u=s.isVertival,d=s.ellipsisPosition;ik(e,{x:i,y:n,id:this.getElementId("text"),name:"annotation-text",content:r,style:o,background:a,maxLength:l,autoEllipsis:h,isVertival:u,ellipsisPosition:d})},t.prototype.autoAdjust=function(e){var t=this.get("direction"),i=this.get("x"),n=this.get("y"),r=(0,em.U2)(this.get("line"),"length",0),o=this.get("coordinateBBox"),s=e.getBBox(),a=s.minX,l=s.maxX,h=s.minY,u=s.maxY,d=e.findById(this.getElementId("text-group")),c=e.findById(this.getElementId("text")),g=e.findById(this.getElementId("line"));if(o&&d){var p=d.attr("x"),f=d.attr("y"),m=c.getCanvasBBox(),v=m.width,E=m.height,_=0,C=0;if(i+a<=o.minX){if("leftward"===t)_=1;else{var S=o.minX-(i+a);p=d.attr("x")+S}}else if(i+l>=o.maxX){if("rightward"===t)_=-1;else{var S=i+l-o.maxX;p=d.attr("x")-S}}if(_&&(g&&g.attr("path",[["M",0,0],["L",r*_,0]]),p=(r+2+v)*_),n+h<=o.minY){if("upward"===t)C=1;else{var S=o.minY-(n+h);f=d.attr("y")+S}}else if(n+u>=o.maxY){if("downward"===t)C=-1;else{var S=n+u-o.maxY;f=d.attr("y")-S}}C&&(g&&g.attr("path",[["M",0,0],["L",0,r*C]]),f=(r+2+E)*C),(p!==d.attr("x")||f!==d.attr("y"))&&iv(d,p,f)}},t.prototype.getShapeAttrs=function(){var e=(0,em.U2)(this.get("line"),"display"),t=(0,em.U2)(this.get("point"),"style",{}),i=(0,em.U2)(this.get("line"),"style",{}),n=(0,em.U2)(this.get("text"),"style",{}),r=this.get("direction"),o=e?(0,em.U2)(this.get("line"),"length",0):0,s=0,a=0,l="top",h="start";switch(r){case"upward":a=-1,l="bottom";break;case"downward":a=1,l="top";break;case"leftward":s=-1,h="end";break;case"rightward":s=1,h="start"}return{point:(0,ef.pi)({x:0,y:0},t),line:(0,ef.pi)({path:[["M",0,0],["L",o*s,o*a]]},i),text:(0,ef.pi)({x:(o+2)*s,y:(o+2)*a,text:(0,em.U2)(this.get("text"),"content",""),textBaseline:l,textAlign:h},n)}},t}(iO),iG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:iP.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:iP.textColor,fontFamily:iP.fontFamily}}}})},t.prototype.renderInner=function(e){var t,i,n,r,o,s,a=(0,em.U2)(this.get("region"),"style",{});(0,em.U2)(this.get("text"),"style",{});var l=this.get("lineLength")||0,h=this.get("points");if(h.length){var u=(t=h.map(function(e){return e.x}),i=h.map(function(e){return e.y}),n=Math.min.apply(Math,t),r=Math.min.apply(Math,i),{x:n,y:r,minX:n,minY:r,maxX:o=Math.max.apply(Math,t),maxY:s=Math.max.apply(Math,i),width:o-n,height:s-r}),d=[];d.push(["M",h[0].x,u.minY-l]),h.forEach(function(e){d.push(["L",e.x,e.y])}),d.push(["L",h[h.length-1].x,h[h.length-1].y-l]),this.addShape(e,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:(0,ef.pi)({path:d},a)}),ik(e,(0,ef.pi)({id:this.getElementId("text"),name:"annotation-text",x:(u.minX+u.maxX)/2,y:u.minY-l},this.get("text")))}},t}(iO),iz=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},t.prototype.renderInner=function(e){var t=this,i=this.get("start"),n=this.get("end"),r=this.addGroup(e,{id:this.getElementId("region-filter"),capture:!1});(0,em.S6)(this.get("shapes"),function(e,i){var n=e.get("type"),o=(0,em.d9)(e.attr());t.adjustShapeAttrs(o),t.addShape(r,{id:t.getElementId("shape-"+n+"-"+i),capture:!1,type:n,attrs:o})});var o=iC({start:i,end:n});r.setClip({type:"rect",attrs:{x:o.minX,y:o.minY,width:o.width,height:o.height}})},t.prototype.adjustShapeAttrs=function(e){var t=this.get("color");e.fill&&(e.fill=e.fillStyle=t),e.stroke=e.strokeStyle=t},t}(iO),iY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"shape",draw:em.ZT})},t.prototype.renderInner=function(e){var t=this.get("render");(0,em.mf)(t)&&t(e)},t}(iO);function iK(e,t,i){var n;try{n=window.getComputedStyle?window.getComputedStyle(e,null)[t]:e.style[t]}catch(e){}finally{n=void 0===n?i:n}return n}var i$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{container:null,containerTpl:"
",updateAutoRender:!0,containerClassName:"",parent:null})},t.prototype.getContainer=function(){return this.get("container")},t.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},t.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},t.prototype.setCapture=function(e){var t=this.getContainer(),i=e?"auto":"none";t.style.pointerEvents=i,this.set("capture",e)},t.prototype.getBBox=function(){var e=this.getContainer();return iS(parseFloat(e.style.left)||0,parseFloat(e.style.top)||0,e.clientWidth,e.clientHeight)},t.prototype.clear=function(){i_(this.get("container"))},t.prototype.destroy=function(){this.removeEvent(),this.removeDom(),e.prototype.destroy.call(this)},t.prototype.init=function(){e.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},t.prototype.initCapture=function(){this.setCapture(this.get("capture"))},t.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},t.prototype.initDom=function(){},t.prototype.initContainer=function(){var e=this.get("container");if((0,em.UM)(e)){e=this.createDom();var t=this.get("parent");(0,em.HD)(t)&&(t=document.getElementById(t),this.set("parent",t)),t.appendChild(e),this.get("containerId")&&e.setAttribute("id",this.get("containerId")),this.set("container",e)}else(0,em.HD)(e)&&(e=document.getElementById(e),this.set("container",e));this.get("parent")||this.set("parent",e.parentNode)},t.prototype.resetStyles=function(){var e=this.get("domStyles"),t=this.get("defaultStyles");e=e?(0,em.b$)({},t,e):t,this.set("domStyles",e)},t.prototype.applyStyles=function(){var e=this.get("domStyles");if(e){var t=this.getContainer();this.applyChildrenStyles(t,e);var i=this.get("containerClassName");i&&t.className.match(RegExp("(\\s|^)"+i+"(\\s|$)"))&&ey(t,e[i])}},t.prototype.applyChildrenStyles=function(e,t){(0,em.S6)(t,function(t,i){var n=e.getElementsByClassName(i);(0,em.S6)(n,function(e){ey(e,t)})})},t.prototype.applyStyle=function(e,t){ey(t,this.get("domStyles")[e])},t.prototype.createDom=function(){return eS(this.get("containerTpl"))},t.prototype.initEvent=function(){},t.prototype.removeDom=function(){var e=this.get("container");e&&e.parentNode&&e.parentNode.removeChild(e)},t.prototype.removeEvent=function(){},t.prototype.updateInner=function(e){(0,em.wH)(e,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},t.prototype.resetPosition=function(){},t}(iL),iX=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'
',alignX:"left",alignY:"top",html:"",zIndex:7})},t.prototype.render=function(){var e=this.getContainer(),t=this.get("html");i_(e);var i=(0,em.mf)(t)?t(e):t;if((0,em.kK)(i))e.appendChild(i);else if((0,em.HD)(i)||(0,em.hj)(i)){var n=eS(""+i);n&&e.appendChild(n)}this.resetPosition()},t.prototype.resetPosition=function(){var e,t,i,n,r,o,s,a,l,h,u,d,c=this.getContainer(),g=this.getLocation(),p=g.x,f=g.y,m=this.get("alignX"),v=this.get("alignY"),E=this.get("offsetX"),_=this.get("offsetY"),C=("auto"===(e=iK(c,"width",void 0))&&(e=c.offsetWidth),t=parseFloat(e),i=parseFloat(iK(c,"borderLeftWidth"))||0,n=parseFloat(iK(c,"paddingLeft"))||0,r=parseFloat(iK(c,"paddingRight"))||0,o=parseFloat(iK(c,"borderRightWidth"))||0,s=parseFloat(iK(c,"marginRight"))||0,t+i+o+n+r+(parseFloat(iK(c,"marginLeft"))||0)+s),S=("auto"===(a=iK(c,"height",void 0))&&(a=c.offsetHeight),l=parseFloat(a),h=parseFloat(iK(c,"borderTopWidth"))||0,u=parseFloat(iK(c,"paddingTop"))||0,d=parseFloat(iK(c,"paddingBottom"))||0,l+h+(parseFloat(iK(c,"borderBottomWidth"))||0)+u+d+(parseFloat(iK(c,"marginTop"))||0)+(parseFloat(iK(c,"marginBottom"))||0)),y={x:p,y:f};"middle"===m?y.x-=Math.round(C/2):"right"===m&&(y.x-=Math.round(C)),"middle"===v?y.y-=Math.round(S/2):"bottom"===v&&(y.y-=Math.round(S)),E&&(y.x+=E),_&&(y.y+=_),ey(c,{position:"absolute",left:y.x+"px",top:y.y+"px",zIndex:this.get("zIndex")})},t}(i$);function ij(e,t,i){var n=t+"Style",r=null;return(0,em.S6)(i,function(t,i){e[i]&&t[n]&&(r||(r={}),(0,em.CD)(r,t[n]))}),r}var iq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:iP.lineColor}},tickLine:{style:{lineWidth:1,stroke:iP.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:iP.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:iP.textColor,fontFamily:iP.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:iP.textColor,textBaseline:"middle",fontFamily:iP.fontFamily,textAlign:"center"},iconStyle:{fill:iP.descriptionIconFill,stroke:iP.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:iP.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},t.prototype.renderInner=function(e){this.get("line")&&this.drawLine(e),this.drawTicks(e),this.get("title")&&this.drawTitle(e)},t.prototype.isList=function(){return!0},t.prototype.getItems=function(){return this.get("ticks")},t.prototype.setItems=function(e){this.update({ticks:e})},t.prototype.updateItem=function(e,t){(0,em.CD)(e,t),this.clear(),this.render()},t.prototype.clearItems=function(){var e=this.getElementByLocalId("label-group");e&&e.clear()},t.prototype.setItemState=function(e,t,i){e[t]=i,this.updateTickStates(e)},t.prototype.hasState=function(e,t){return!!e[t]},t.prototype.getItemStates=function(e){var t=this.get("tickStates"),i=[];return(0,em.S6)(t,function(t,n){e[n]&&i.push(n)}),i},t.prototype.clearItemsState=function(e){var t=this,i=this.getItemsByState(e);(0,em.S6)(i,function(i){t.setItemState(i,e,!1)})},t.prototype.getItemsByState=function(e){var t=this,i=this.getItems();return(0,em.hX)(i,function(i){return t.hasState(i,e)})},t.prototype.getSidePoint=function(e,t){var i=this.getSideVector(t,e);return{x:e.x+i[0],y:e.y+i[1]}},t.prototype.getTextAnchor=function(e){var t;return(0,em.vQ)(e[0],0)?t="center":e[0]>0?t="start":e[0]<0&&(t="end"),t},t.prototype.getTextBaseline=function(e){var t;return(0,em.vQ)(e[1],0)?t="middle":e[1]>0?t="top":e[1]<0&&(t="bottom"),t},t.prototype.processOverlap=function(e){},t.prototype.drawLine=function(e){var t=this.getLinePath(),i=this.get("line");this.addShape(e,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:(0,em.CD)({path:t},i.style)})},t.prototype.getTickLineItems=function(e){var t=this,i=[],n=this.get("tickLine"),r=n.alignTick,o=n.length,s=1;return e.length>=2&&(s=e[1].value-e[0].value),(0,em.S6)(e,function(e){var n=e.point;r||(n=t.getTickPoint(e.value-s/2));var a=t.getSidePoint(n,o);i.push({startPoint:n,tickValue:e.value,endPoint:a,tickId:e.id,id:"tickline-"+e.id})}),i},t.prototype.getSubTickLineItems=function(e){var t=[],i=this.get("subTickLine"),n=i.count,r=e.length;if(r>=2)for(var o=0;o0){var i=(0,em.dp)(t);if(i>e.threshold){var n=Math.ceil(i/e.threshold),r=t.filter(function(e,t){return t%n==0});this.set("ticks",r),this.set("originalTicks",t)}}},t.prototype.getLabelAttrs=function(e,t,i){var n=this.get("label"),r=n.offset,o=n.offsetX,s=n.offsetY,a=n.rotate,l=n.formatter,h=this.getSidePoint(e.point,r),u=this.getSideVector(r,h),d=l?l(e.name,e,t):e.name,c=n.style;c=(0,em.mf)(c)?(0,em.U2)(this.get("theme"),["label","style"],{}):c;var g=(0,em.CD)({x:h.x+o,y:h.y+s,text:d,textAlign:this.getTextAnchor(u),textBaseline:this.getTextBaseline(u)},c);return a&&(g.matrix=ic(h,a)),g},t.prototype.drawLabels=function(e){var t=this,i=this.get("ticks"),n=this.addGroup(e,{name:"axis-label-group",id:this.getElementId("label-group")});(0,em.S6)(i,function(e,r){t.addShape(n,{type:"text",name:"axis-label",id:t.getElementId("label-"+e.id),attrs:t.getLabelAttrs(e,r,i),delegateObject:{tick:e,item:e,index:r}})}),this.processOverlap(n);var r=n.getChildren(),o=(0,em.U2)(this.get("theme"),["label","style"],{}),s=this.get("label"),a=s.style,l=s.formatter;if((0,em.mf)(a)){var h=r.map(function(e){return(0,em.U2)(e.get("delegateObject"),"tick")});(0,em.S6)(r,function(e,t){var i=e.get("delegateObject").tick,n=l?l(i.name,i,t):i.name,r=(0,em.CD)({},o,a(n,t,h));e.attr(r)})}},t.prototype.getTitleAttrs=function(){var e=this.get("title"),t=e.style,i=e.position,n=e.offset,r=e.spacing,o=void 0===r?0:r,s=e.autoRotate,a=t.fontSize,l=.5;"start"===i?l=0:"end"===i&&(l=1);var h=this.getTickPoint(l),u=this.getSidePoint(h,n||o+a/2),d=(0,em.CD)({x:u.x,y:u.y,text:e.text},t),c=e.rotate,g=c;if((0,em.UM)(c)&&s){var p=this.getAxisVector(h);g=it.Dg(p,[1,0],!0)}if(g){var f=ic(u,g);d.matrix=f}return d},t.prototype.drawTitle=function(e){var t,i=this.getTitleAttrs(),n=this.addShape(e,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:i});(null===(t=this.get("title"))||void 0===t?void 0:t.description)&&this.drawDescriptionIcon(e,n,i.matrix)},t.prototype.drawDescriptionIcon=function(e,t,i){var n=this.addGroup(e,{name:"axis-description",id:this.getElementById("description")}),r=t.getBBox(),o=r.maxX,s=r.maxY,a=r.height,l=this.get("title").iconStyle,h=a/2,u=h/6,d=o+4,c=s-a/2,g=[d+h,c-h],p=g[0],f=g[1],m=[p+h,f+h],v=m[0],E=m[1],_=[p,E+h],C=_[0],S=_[1],y=[d,f+h],T=y[0],b=y[1],A=[d+h,c-a/4],R=A[0],L=A[1],N=[R,L+u],I=N[0],w=N[1],O=[I,w+u],x=O[0],D=O[1],M=[x,D+3*h/4],k=M[0],P=M[1];this.addShape(n,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:(0,ef.pi)({path:[["M",p,f],["A",h,h,0,0,1,v,E],["A",h,h,0,0,1,C,S],["A",h,h,0,0,1,T,b],["A",h,h,0,0,1,p,f],["M",R,L],["L",I,w],["M",x,D],["L",k,P]],lineWidth:u,matrix:i},l)}),this.addShape(n,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:d,y:c-a/2,width:a,height:a,stroke:"#000",fill:"#000",opacity:0,matrix:i,cursor:"pointer"}})},t.prototype.applyTickStates=function(e,t){if(this.getItemStates(e).length){var i=this.get("tickStates"),n=this.getElementId("label-"+e.id),r=t.findById(n);if(r){var o=ij(e,"label",i);o&&r.attr(o)}var s=this.getElementId("tickline-"+e.id),a=t.findById(s);if(a){var l=ij(e,"tickLine",i);l&&a.attr(l)}}},t.prototype.updateTickStates=function(e){var t=this.getItemStates(e),i=this.get("tickStates"),n=this.get("label"),r=this.getElementByLocalId("label-"+e.id),o=this.get("tickLine"),s=this.getElementByLocalId("tickline-"+e.id);if(t.length){if(r){var a=ij(e,"label",i);a&&r.attr(a)}if(s){var l=ij(e,"tickLine",i);l&&s.attr(l)}}else r&&r.attr(n.style),s&&s.attr(o.style)},t}(iO);function iZ(e,t,i,n){var r=t.getChildren(),o=!1;return(0,em.S6)(r,function(t){var r=iM(e,t,i,n);o=o||r}),o}function iJ(){return i0}function iQ(e,t,i){return iZ(e,t,i,"head")}function i0(e,t,i){return iZ(e,t,i,"tail")}function i1(e,t,i){return iZ(e,t,i,"middle")}function i2(e){var t,i;return((t=e.attr("matrix"))&&1!==t[0]?(t8(i=[0,0,0],[1,0,0],e.attr("matrix")),Math.atan2(i[1],i[0])):0)%360}function i4(e,t,i,n){var r=!1,o=i2(t),s=e?Math.abs(i.attr("y")-t.attr("y")):Math.abs(i.attr("x")-t.attr("x")),a=(e?i.attr("y")>t.attr("y"):i.attr("x")>t.attr("x"))?t.getBBox():i.getBBox();if(e){var l=Math.abs(Math.cos(o));r=iT(l,0,Math.PI/180)?a.width+n>s:a.height/l+n>s}else{var l=Math.abs(Math.sin(o));r=iT(l,0,Math.PI/180)?a.width+n>s:a.height/l+n>s}return r}function i5(e,t,i,n){var r=(null==n?void 0:n.minGap)||0,o=t.getChildren().slice().filter(function(e){return e.get("visible")});if(!o.length)return!1;var s=!1;i&&o.reverse();for(var a=o.length,l=o[0],h=1;h1){c=Math.ceil(c);for(var f=0;f2){var s=r[0],a=r[r.length-1];!s.get("visible")&&(s.show(),i5(e,t,!1,n)&&(o=!0)),!a.get("visible")&&(a.show(),i5(e,t,!0,n)&&(o=!0))}return o}function ni(e,t,i,n){var r=t.getChildren();if(!r.length||!e&&r.length<2)return!1;var o=iD(r),s=!1;if(s=e?!!i&&o>i:o>Math.abs(r[1].attr("x")-r[0].attr("x"))){var a=n(i,o);(0,em.S6)(r,function(e){var t=ic({x:e.attr("x"),y:e.attr("y")},a);e.attr("matrix",t)})}return s}function nn(){return nr}function nr(e,t,i,n){return ni(e,t,i,function(){return(0,em.hj)(n)?n:e?iP.verticalAxisRotate:iP.horizontalAxisRotate})}function no(e,t,i){return ni(e,t,i,function(t,i){if(!t)return e?iP.verticalAxisRotate:iP.horizontalAxisRotate;if(e)return-Math.acos(t/i);var n=0;return t>i?n=Math.PI/4:(n=Math.asin(t/i))>Math.PI/4&&(n=Math.PI/4),n})}var ns=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{type:"line",locationType:"region",start:null,end:null})},t.prototype.getLinePath=function(){var e=this.get("start"),t=this.get("end"),i=[];return i.push(["M",e.x,e.y]),i.push(["L",t.x,t.y]),i},t.prototype.getInnerLayoutBBox=function(){var t=this.get("start"),i=this.get("end"),n=e.prototype.getInnerLayoutBBox.call(this),r=Math.min(t.x,i.x,n.x),o=Math.min(t.y,i.y,n.y),s=Math.max(t.x,i.x,n.maxX),a=Math.max(t.y,i.y,n.maxY);return{x:r,y:o,minX:r,minY:o,maxX:s,maxY:a,width:s-r,height:a-o}},t.prototype.isVertical=function(){var e=this.get("start"),t=this.get("end");return(0,em.vQ)(e.x,t.x)},t.prototype.isHorizontal=function(){var e=this.get("start"),t=this.get("end");return(0,em.vQ)(e.y,t.y)},t.prototype.getTickPoint=function(e){var t=this.get("start"),i=this.get("end"),n=i.x-t.x,r=i.y-t.y;return{x:t.x+n*e,y:t.y+r*e}},t.prototype.getSideVector=function(e){var t=this.getAxisVector(),i=io.Fv([0,0],t),n=this.get("verticalFactor"),r=[i[1],-1*i[0]];return io.bA([0,0],r,e*n)},t.prototype.getAxisVector=function(){var e=this.get("start"),t=this.get("end");return[t.x-e.x,t.y-e.y]},t.prototype.processOverlap=function(e){var t=this,i=this.isVertical(),n=this.isHorizontal();if(i||n){var r=this.get("label"),o=this.get("title"),s=this.get("verticalLimitLength"),a=r.offset,l=s,h=0,u=0;o&&(h=o.style.fontSize,u=o.spacing),l&&(l=l-a-u-h);var d=this.get("overlapOrder");if((0,em.S6)(d,function(i){r[i]&&t.canProcessOverlap(i)&&t.autoProcessOverlap(i,r[i],e,l)}),o&&(0,em.UM)(o.offset)){var c=e.getCanvasBBox(),g=i?c.width:c.height;o.offset=a+g+u+h/2}}},t.prototype.canProcessOverlap=function(e){var t=this.get("label");return"autoRotate"!==e||(0,em.UM)(t.rotate)},t.prototype.autoProcessOverlap=function(e,t,i,n){var r=this,o=this.isVertical(),s=!1,a=ea[e];if(!0===t?(this.get("label"),s=a.getDefault()(o,i,n)):(0,em.mf)(t)?s=t(o,i,n):(0,em.Kn)(t)?a[t.type]&&(s=a[t.type](o,i,n,t.cfg)):a[t]&&(s=a[t](o,i,n)),"autoRotate"===e){if(s){var l=i.getChildren(),h=this.get("verticalFactor");(0,em.S6)(l,function(e){"center"===e.attr("textAlign")&&e.attr("textAlign",h>0?"end":"start")})}}else if("autoHide"===e){var u=i.getChildren().slice(0);(0,em.S6)(u,function(e){e.get("visible")||(r.get("isRegister")&&r.unregisterElement(e),e.remove())})}},t}(iq),na=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},t.prototype.getLinePath=function(){var e=this.get("center"),t=e.x,i=e.y,n=this.get("radius"),r=this.get("startAngle"),o=this.get("endAngle"),s=[];if(Math.abs(o-r)===2*Math.PI)s=[["M",t,i-n],["A",n,n,0,1,1,t,i+n],["A",n,n,0,1,1,t,i-n],["Z"]];else{var a=this.getCirclePoint(r),l=this.getCirclePoint(o),h=Math.abs(o-r)>Math.PI?1:0,u=r>o?0:1;s=[["M",t,i],["L",a.x,a.y],["A",n,n,0,h,u,l.x,l.y],["L",t,i]]}return s},t.prototype.getTickPoint=function(e){var t=this.get("startAngle"),i=this.get("endAngle");return this.getCirclePoint(t+(i-t)*e)},t.prototype.getSideVector=function(e,t){var i=this.get("center"),n=[t.x-i.x,t.y-i.y],r=this.get("verticalFactor"),o=io.kE(n);return io.bA(n,n,r*e/o),n},t.prototype.getAxisVector=function(e){var t=this.get("center"),i=[e.x-t.x,e.y-t.y];return[i[1],-1*i[0]]},t.prototype.getCirclePoint=function(e,t){var i=this.get("center");return t=t||this.get("radius"),{x:i.x+Math.cos(e)*t,y:i.y+Math.sin(e)*t}},t.prototype.canProcessOverlap=function(e){var t=this.get("label");return"autoRotate"!==e||(0,em.UM)(t.rotate)},t.prototype.processOverlap=function(e){var t=this,i=this.get("label"),n=this.get("title"),r=this.get("verticalLimitLength"),o=i.offset,s=r,a=0,l=0;n&&(a=n.style.fontSize,l=n.spacing),s&&(s=s-o-l-a);var h=this.get("overlapOrder");if((0,em.S6)(h,function(n){i[n]&&t.canProcessOverlap(n)&&t.autoProcessOverlap(n,i[n],e,s)}),n&&(0,em.UM)(n.offset)){var u=e.getCanvasBBox().height;n.offset=o+u+l+a/2}},t.prototype.autoProcessOverlap=function(e,t,i,n){var r=this,o=!1,s=ea[e];if(n>0&&(!0===t?o=s.getDefault()(!1,i,n):(0,em.mf)(t)?o=t(!1,i,n):(0,em.Kn)(t)?s[t.type]&&(o=s[t.type](!1,i,n,t.cfg)):s[t]&&(o=s[t](!1,i,n))),"autoRotate"===e){if(o){var a=i.getChildren(),l=this.get("verticalFactor");(0,em.S6)(a,function(e){"center"===e.attr("textAlign")&&e.attr("textAlign",l>0?"end":"start")})}}else if("autoHide"===e){var h=i.getChildren().slice(0);(0,em.S6)(h,function(e){e.get("visible")||(r.get("isRegister")&&r.unregisterElement(e),e.remove())})}},t}(iq),nl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:iP.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:iP.textColor,textAlign:"center",textBaseline:"middle",fontFamily:iP.fontFamily}},textBackground:{padding:5,style:{stroke:iP.lineColor}}}})},t.prototype.renderInner=function(e){this.get("line")&&this.renderLine(e),this.get("text")&&(this.renderText(e),this.renderBackground(e))},t.prototype.renderText=function(e){var t=this.get("text"),i=t.style,n=t.autoRotate,r=t.content;if(!(0,em.UM)(r)){var o=this.getTextPoint(),s=null;n&&(s=ic(o,this.getRotateAngle())),this.addShape(e,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:(0,ef.pi)((0,ef.pi)((0,ef.pi)({},o),{text:r,matrix:s}),i)})}},t.prototype.renderLine=function(e){var t=this.getLinePath(),i=this.get("line").style;this.addShape(e,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:(0,ef.pi)({path:t},i)})},t.prototype.renderBackground=function(e){var t=this.getElementId("text"),i=e.findById(t),n=this.get("textBackground");if(n&&i){var r=i.getBBox(),o=iE(n.padding),s=n.style;this.addShape(e,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:(0,ef.pi)({x:r.x-o[3],y:r.y-o[0],width:r.width+o[1]+o[3],height:r.height+o[0]+o[2],matrix:i.attr("matrix")},s)}).toBack()}},t}(iO),nh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{type:"line",locationType:"region",start:null,end:null})},t.prototype.getRotateAngle=function(){var e=this.getLocation(),t=e.start,i=e.end,n=this.get("text").position,r=Math.atan2(i.y-t.y,i.x-t.x);return"start"===n?r-Math.PI/2:r+Math.PI/2},t.prototype.getTextPoint=function(){var e=this.getLocation(),t=e.start,i=e.end,n=this.get("text");return iA(t,i,n.position,n.offset)},t.prototype.getLinePath=function(){var e=this.getLocation(),t=e.start,i=e.end;return[["M",t.x,t.y],["L",i.x,i.y]]},t}(nl),nu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},t.prototype.getRotateAngle=function(){var e=this.getLocation(),t=e.startAngle,i=e.endAngle;return"start"===this.get("text").position?t+Math.PI/2:i-Math.PI/2},t.prototype.getTextPoint=function(){var e=this.get("text"),t=e.position,i=e.offset,n=this.getLocation(),r=n.center,o=n.radius,s=n.startAngle,a=n.endAngle,l=this.getRotateAngle()-Math.PI,h=iy(r,o,"start"===t?s:a),u=Math.cos(l)*i,d=Math.sin(l)*i;return{x:h.x+u,y:h.y+d}},t.prototype.getLinePath=function(){var e=this.getLocation(),t=e.center,i=e.radius,n=e.startAngle,r=e.endAngle,o=null;if(r-n==2*Math.PI){var s=t.x,a=t.y;o=[["M",s,a-i],["A",i,i,0,1,1,s,a+i],["A",i,i,0,1,1,s,a-i],["Z"]]}else{var l=iy(t,i,n),h=iy(t,i,r),u=Math.abs(r-n)>Math.PI?1:0,d=n>r?0:1;o=[["M",l.x,l.y],["A",i,i,0,u,d,h.x,h.y]]}return o},t}(nl),nd="g2-crosshair",nc=nd+"-line",ng=nd+"-text",np=((G={})[""+nd]={position:"relative"},G[""+nc]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},G[""+ng]={position:"absolute",color:iP.textColor,fontFamily:iP.fontFamily},G),nf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'
',crosshairTpl:'
',textTpl:'{content}',domStyles:null,containerClassName:nd,defaultStyles:np,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},t.prototype.render=function(){this.resetText(),this.resetPosition()},t.prototype.initCrossHair=function(){var e=this.getContainer(),t=eS(this.get("crosshairTpl"));e.appendChild(t),this.applyStyle(nc,t),this.set("crosshairEl",t)},t.prototype.getTextPoint=function(){var e=this.getLocation(),t=e.start,i=e.end,n=this.get("text");return iA(t,i,n.position,n.offset)},t.prototype.resetText=function(){var e=this.get("text"),t=this.get("textEl");if(e){var i=e.content;if(!t){var n=this.getContainer();t=eS((0,em.ng)(this.get("textTpl"),e)),n.appendChild(t),this.applyStyle(ng,t),this.set("textEl",t)}t.innerHTML=i}else t&&t.remove()},t.prototype.isVertical=function(e,t){return e.x===t.x},t.prototype.resetPosition=function(){var e=this.get("crosshairEl");e||(this.initCrossHair(),e=this.get("crosshairEl"));var t=this.get("start"),i=this.get("end"),n=Math.min(t.x,i.x),r=Math.min(t.y,i.y);this.isVertical(t,i)?ey(e,{width:"1px",height:ib(Math.abs(i.y-t.y))}):ey(e,{height:"1px",width:ib(Math.abs(i.x-t.x))}),ey(e,{top:ib(r),left:ib(n)}),this.alignText()},t.prototype.alignText=function(){var e=this.get("textEl");if(e){var t=this.get("text").align,i=e.clientWidth,n=this.getTextPoint();switch(t){case"center":n.x=n.x-i/2;break;case"right":n.x=n.x-i}ey(e,{top:ib(n.y),left:ib(n.x)})}},t.prototype.updateInner=function(t){(0,em.wH)(t,"text")&&this.resetText(),e.prototype.updateInner.call(this,t)},t}(i$),nm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:iP.lineColor}}}})},t.prototype.getLineType=function(){return(this.get("line")||this.get("defaultCfg").line).type},t.prototype.renderInner=function(e){this.drawGrid(e)},t.prototype.getAlternatePath=function(e,t){var i=this.getGridPath(e),n=t.slice(0).reverse(),r=this.getGridPath(n,!0);return this.get("closed")?i=i.concat(r):(r[0][0]="L",(i=i.concat(r)).push(["Z"])),i},t.prototype.getPathStyle=function(){return this.get("line").style},t.prototype.drawGrid=function(e){var t=this,i=this.get("line"),n=this.get("items"),r=this.get("alternateColor"),o=null;(0,em.S6)(n,function(s,a){var l=s.id||a;if(i){var h=t.getPathStyle();h=(0,em.mf)(h)?h(s,a,n):h;var u=t.getElementId("line-"+l),d=t.getGridPath(s.points);t.addShape(e,{type:"path",name:"grid-line",id:u,attrs:(0,em.CD)({path:d},h)})}if(r&&a>0){var c=t.getElementId("region-"+l),g=a%2==0;if((0,em.HD)(r))g&&t.drawAlternateRegion(c,e,o.points,s.points,r);else{var p=g?r[1]:r[0];t.drawAlternateRegion(c,e,o.points,s.points,p)}}o=s})},t.prototype.drawAlternateRegion=function(e,t,i,n,r){var o=this.getAlternatePath(i,n);this.addShape(t,{type:"path",id:e,name:"grid-region",attrs:{path:o,fill:r}})},t}(iO),nv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{type:"circle",center:null,closed:!0})},t.prototype.getGridPath=function(e,t){var i=this.getLineType(),n=this.get("closed"),r=[];if(e.length){if("circle"===i){var o,s,a,l,h,u,d=this.get("center"),c=e[0],g=(o=d.x,s=d.y,a=c.x,l=c.y,Math.sqrt((h=a-o)*h+(u=l-s)*u)),p=t?0:1;n?(r.push(["M",d.x,d.y-g]),r.push(["A",g,g,0,0,p,d.x,d.y+g]),r.push(["A",g,g,0,0,p,d.x,d.y-g]),r.push(["Z"])):(0,em.S6)(e,function(e,t){0===t?r.push(["M",e.x,e.y]):r.push(["A",g,g,0,0,p,e.x,e.y])})}else(0,em.S6)(e,function(e,t){0===t?r.push(["M",e.x,e.y]):r.push(["L",e.x,e.y])}),n&&r.push(["Z"])}return r},t}(nm),nE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{type:"line"})},t.prototype.getGridPath=function(e){var t=[];return(0,em.S6)(e,function(e,i){0===i?t.push(["M",e.x,e.y]):t.push(["L",e.x,e.y])}),t},t}(nm),n_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},t.prototype.getLayoutBBox=function(){var t=e.prototype.getLayoutBBox.call(this),i=this.get("maxWidth"),n=this.get("maxHeight"),r=t.width,o=t.height;return i&&(r=Math.min(r,i)),n&&(o=Math.min(o,n)),iS(t.minX,t.minY,r,o)},t.prototype.setLocation=function(e){this.set("x",e.x),this.set("y",e.y),this.resetLocation()},t.prototype.resetLocation=function(){var e=this.get("x"),t=this.get("y"),i=this.get("offsetX"),n=this.get("offsetY");this.moveElementTo(this.get("group"),{x:e+i,y:t+n})},t.prototype.applyOffset=function(){this.resetLocation()},t.prototype.getDrawPoint=function(){return this.get("currentPoint")},t.prototype.setDrawPoint=function(e){return this.set("currentPoint",e)},t.prototype.renderInner=function(e){this.resetDraw(),this.get("title")&&this.drawTitle(e),this.drawLegendContent(e),this.get("background")&&this.drawBackground(e)},t.prototype.drawBackground=function(e){var t=this.get("background"),i=e.getBBox(),n=iE(t.padding),r=(0,ef.pi)({x:0,y:0,width:i.width+n[1]+n[3],height:i.height+n[0]+n[2]},t.style);this.addShape(e,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:r}).toBack()},t.prototype.drawTitle=function(e){var t=this.get("currentPoint"),i=this.get("title"),n=i.spacing,r=i.style,o=i.text,s=this.addShape(e,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:(0,ef.pi)({text:o,x:t.x,y:t.y},r)}).getBBox();this.set("currentPoint",{x:t.x,y:s.maxY+n})},t.prototype.resetDraw=function(){var e=this.get("background"),t={x:0,y:0};if(e){var i=iE(e.padding);t.x=i[3],t.y=i[0]}this.set("currentPoint",t)},t}(iO),nC={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},nS={fill:iP.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:iP.fontFamily,fontWeight:"normal",lineHeight:12},ny="navigation-arrow-right",nT="navigation-arrow-left",nb={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},nA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentPageIndex=1,t.totalPagesCnt=1,t.pageWidth=0,t.pageHeight=0,t.startX=0,t.startY=0,t.onNavigationBack=function(){var e=t.getElementByLocalId("item-group");if(t.currentPageIndex>1){t.currentPageIndex-=1,t.updateNavigation();var i=t.getCurrentNavigationMatrix();t.get("animate")?e.animate({matrix:i},100):e.attr({matrix:i})}},t.onNavigationAfter=function(){var e=t.getElementByLocalId("item-group");if(t.currentPageIndexp&&(p=E),"horizontal"===d?(f&&fa))&&(1===m&&(v=f.x+u,i.moveElementTo(g,{x:T,y:f.y+d/2-p.height/2-p.minY})),m+=1,f.x=n,f.y+=y),i.moveElementTo(e,f),e.getParent().setClip({type:"rect",attrs:{x:f.x,y:f.y,width:s+u,height:d}}),f.x+=s+u})}else{(0,em.S6)(s,function(e){var t=e.getBBox();t.width>E&&(E=t.width)}),_=E,E+=u,a&&(E=Math.min(a,E),_=Math.min(a,_)),this.pageWidth=E,this.pageHeight=l-Math.max(p.height,d+C);var b=Math.floor(this.pageHeight/(d+C));(0,em.S6)(s,function(e,t){0!==t&&t%b==0&&(m+=1,f.x+=E,f.y=r),i.moveElementTo(e,f),e.getParent().setClip({type:"rect",attrs:{x:f.x,y:f.y,width:E,height:d}}),f.y+=d+C}),this.totalPagesCnt=m,this.moveElementTo(g,{x:n+_/2-p.width/2-p.minX,y:l-p.height-p.minY})}this.pageHeight&&this.pageWidth&&t.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),"horizontal"===o&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(m/this.get("maxRow")):this.totalPagesCnt=m,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(g),t.attr("matrix",this.getCurrentNavigationMatrix())},t.prototype.drawNavigation=function(e,t,i,n){var r={x:0,y:0},o=this.addGroup(e,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),s=(0,em.U2)(n.marker,"style",{}),a=s.size,l=void 0===a?12:a,h=(0,ef._T)(s,["size"]),u=this.drawArrow(o,r,nT,"horizontal"===t?"up":"left",l,h);u.on("click",this.onNavigationBack);var d=u.getBBox();r.x+=d.width+2;var c=this.addShape(o,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:(0,ef.pi)({x:r.x,y:r.y+l/2,text:i,textBaseline:"middle"},(0,em.U2)(n.text,"style"))}).getBBox();return r.x+=c.width+2,this.drawArrow(o,r,ny,"horizontal"===t?"down":"right",l,h).on("click",this.onNavigationAfter),o},t.prototype.updateNavigation=function(e){var t=(0,em.b$)({},nC,this.get("pageNavigator")).marker.style,i=t.fill,n=t.opacity,r=t.inactiveFill,o=t.inactiveOpacity,s=this.currentPageIndex+"/"+this.totalPagesCnt,a=e?e.getChildren()[1]:this.getElementByLocalId("navigation-text"),l=e?e.findById(this.getElementId(nT)):this.getElementByLocalId(nT),h=e?e.findById(this.getElementId(ny)):this.getElementByLocalId(ny);a.attr("text",s),l.attr("opacity",1===this.currentPageIndex?o:n),l.attr("fill",1===this.currentPageIndex?r:i),l.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),h.attr("opacity",this.currentPageIndex===this.totalPagesCnt?o:n),h.attr("fill",this.currentPageIndex===this.totalPagesCnt?r:i),h.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var u=l.getBBox().maxX+2;a.attr("x",u),u+=a.getBBox().width+2,this.updateArrowPath(h,{x:u,y:0})},t.prototype.drawArrow=function(e,t,i,n,r,o){var s=t.x,a=t.y,l=this.addShape(e,{type:"path",id:this.getElementId(i),name:i,attrs:(0,ef.pi)({size:r,direction:n,path:[["M",s+r/2,a],["L",s,a+r],["L",s+r,a+r],["Z"]],cursor:"pointer"},o)});return l.attr("matrix",ic({x:s+r/2,y:a+r/2},nb[n])),l},t.prototype.updateArrowPath=function(e,t){var i=t.x,n=t.y,r=e.attr(),o=r.size,s=ic({x:i+o/2,y:n+o/2},nb[r.direction]);e.attr("path",[["M",i+o/2,n],["L",i,n+o],["L",i+o,n+o],["Z"]]),e.attr("matrix",s)},t.prototype.getCurrentNavigationMatrix=function(){var e=this.currentPageIndex,t=this.pageWidth,i=this.pageHeight;return ig("horizontal"===this.get("layout")?{x:0,y:i*(1-e)}:{x:t*(1-e),y:0})},t.prototype.applyItemStates=function(e,t){if(this.getItemStates(e).length>0){var i=t.getChildren(),n=this.get("itemStates");(0,em.S6)(i,function(t){var i=t.get("name").split("-")[2],r=ij(e,i,n);r&&(t.attr(r),"marker"===i&&!(t.get("isStroke")&&t.get("isFill"))&&(t.get("isStroke")&&t.attr("fill",null),t.get("isFill")&&t.attr("stroke",null)))})}},t.prototype.getLimitItemWidth=function(){var e=this.get("itemWidth"),t=this.get("maxItemWidth");return t?e&&(t=e<=t?e:t):e&&(t=e),t},t}(n_),nR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:iP.textColor,textBaseline:"middle",fontFamily:iP.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:iP.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},t.prototype.isSlider=function(){return!0},t.prototype.getValue=function(){return this.getCurrentValue()},t.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},t.prototype.setRange=function(e,t){this.update({min:e,max:t})},t.prototype.setValue=function(e){var t=this.getValue();this.set("value",e);var i=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(i),this.delegateEmit("valuechanged",{originValue:t,value:e})},t.prototype.initEvent=function(){var e=this.get("group");this.bindSliderEvent(e),this.bindRailEvent(e),this.bindTrackEvent(e)},t.prototype.drawLegendContent=function(e){this.drawRail(e),this.drawLabels(e),this.fixedElements(e),this.resetTrack(e),this.resetTrackClip(e),this.get("slidable")&&this.resetHandlers(e)},t.prototype.bindSliderEvent=function(e){this.bindHandlersEvent(e)},t.prototype.bindHandlersEvent=function(e){var t=this;e.on("legend-handler-min:drag",function(e){var i=t.getValueByCanvasPoint(e.x,e.y),n=t.getCurrentValue()[1];ni&&(n=i),t.setValue([n,i])})},t.prototype.bindRailEvent=function(e){},t.prototype.bindTrackEvent=function(e){var t=this,i=null;e.on("legend-track:dragstart",function(e){i={x:e.x,y:e.y}}),e.on("legend-track:drag",function(e){if(i){var n=t.getValueByCanvasPoint(i.x,i.y),r=t.getValueByCanvasPoint(e.x,e.y),o=t.getCurrentValue(),s=o[1]-o[0],a=t.getRange(),l=r-n;l<0?o[0]+l>a.min?t.setValue([o[0]+l,o[1]+l]):t.setValue([a.min,a.min+s]):l>0&&(l>0&&o[1]+lo&&(h=o),h0&&this.changeRailLength(n,r,i[r]-h)}},t.prototype.changeRailLength=function(e,t,i){var n,r=e.getBBox();n="height"===t?this.getRailPath(r.x,r.y,r.width,i):this.getRailPath(r.x,r.y,i,r.height),e.attr("path",n)},t.prototype.changeRailPosition=function(e,t,i){var n=e.getBBox(),r=this.getRailPath(t,i,n.width,n.height);e.attr("path",r)},t.prototype.fixedHorizontal=function(e,t,i,n){var r=this.get("label"),o=r.align,s=r.spacing,a=i.getBBox(),l=e.getBBox(),h=t.getBBox(),u=a.height;this.fitRailLength(l,h,a,i),a=i.getBBox(),"rail"===o?(e.attr({x:n.x,y:n.y+u/2}),this.changeRailPosition(i,n.x+l.width+s,n.y),t.attr({x:n.x+l.width+a.width+2*s,y:n.y+u/2})):"top"===o?(e.attr({x:n.x,y:n.y}),t.attr({x:n.x+a.width,y:n.y}),this.changeRailPosition(i,n.x,n.y+l.height+s)):(this.changeRailPosition(i,n.x,n.y),e.attr({x:n.x,y:n.y+a.height+s}),t.attr({x:n.x+a.width,y:n.y+a.height+s}))},t.prototype.fixedVertail=function(e,t,i,n){var r=this.get("label"),o=r.align,s=r.spacing,a=i.getBBox(),l=e.getBBox(),h=t.getBBox();if(this.fitRailLength(l,h,a,i),a=i.getBBox(),"rail"===o)e.attr({x:n.x,y:n.y}),this.changeRailPosition(i,n.x,n.y+l.height+s),t.attr({x:n.x,y:n.y+l.height+a.height+2*s});else if("right"===o)e.attr({x:n.x+a.width+s,y:n.y}),this.changeRailPosition(i,n.x,n.y),t.attr({x:n.x+a.width+s,y:n.y+a.height});else{var u=Math.max(l.width,h.width);e.attr({x:n.x,y:n.y}),this.changeRailPosition(i,n.x+u+s,n.y),t.attr({x:n.x,y:n.y+a.height})}},t}(n_),nL="g2-tooltip",nN="g2-tooltip-title",nI="g2-tooltip-list",nw="g2-tooltip-list-item",nO="g2-tooltip-marker",nx="g2-tooltip-value",nD="g2-tooltip-name",nM="g2-tooltip-crosshair-x",nk="g2-tooltip-crosshair-y",nP=((z={})[""+nL]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:iP.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},z[""+nN]={marginBottom:"4px"},z[""+nI]={margin:"0px",listStyleType:"none",padding:"0px"},z[""+nw]={listStyleType:"none",marginBottom:"4px"},z[""+nO]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},z[""+nx]={display:"inline-block",float:"right",marginLeft:"30px"},z[""+nM]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},z[""+nk]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},z),nF=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'
    ',itemTpl:'
  • \n \n {name}:\n {value}\n
  • ',xCrosshairTpl:'
    ',yCrosshairTpl:'
    ',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:nL,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:nP})},t.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},t.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},t.prototype.show=function(){var e=this.getContainer();e&&!this.destroyed&&(this.set("visible",!0),ey(e,{visibility:"visible"}),this.setCrossHairsVisible(!0))},t.prototype.hide=function(){var e=this.getContainer();e&&!this.destroyed&&(this.set("visible",!1),ey(e,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},t.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},t.prototype.setLocation=function(e){this.set("x",e.x),this.set("y",e.y),this.resetPosition()},t.prototype.setCrossHairsVisible=function(e){var t=e?"":"none",i=this.get("xCrosshairDom"),n=this.get("yCrosshairDom");i&&ey(i,{display:t}),n&&ey(n,{display:t})},t.prototype.initContainer=function(){if(e.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var t=this.getHtmlContentNode();this.get("parent").appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()}},t.prototype.updateInner=function(t){if(this.get("customContent"))this.renderCustomContent();else{var i;i=!1,(0,em.S6)(["title","showTitle"],function(e){if((0,em.wH)(t,e))return i=!0,!1}),i&&this.resetTitle(),(0,em.wH)(t,"items")&&this.renderItems()}e.prototype.updateInner.call(this,t)},t.prototype.initDom=function(){this.cacheDoms()},t.prototype.removeDom=function(){e.prototype.removeDom.call(this),this.clearCrosshairs()},t.prototype.resetPosition=function(){var e,t=this.get("x"),i=this.get("y"),n=this.get("offset"),r=this.getOffset(),o=r.offsetX,s=r.offsetY,a=this.get("position"),l=this.get("region"),h=this.getContainer(),u=this.getBBox(),d=u.width,c=u.height;l&&(e=iC(l));var g=function(e,t,i,n,r,o,s){var a=function(e,t,i,n,r,o){var s=e,a=t;switch(o){case"left":s=e-n-i,a=t-r/2;break;case"right":s=e+i,a=t-r/2;break;case"top":s=e-n/2,a=t-r-i;break;case"bottom":s=e-n/2,a=t+i;break;default:s=e+i,a=t-r-i}return{x:s,y:a}}(e,t,i,n,r,o);if(s){var l,h,u=(l=a.x,h=a.y,{left:ls.x+s.width,top:hs.y+s.height});"auto"===o?(u.right&&(a.x=Math.max(0,e-n-i)),u.top&&(a.y=Math.max(0,t-r-i))):"top"===o||"bottom"===o?(u.left&&(a.x=s.x),u.right&&(a.x=s.x+s.width-n),"top"===o&&u.top&&(a.y=t+i),"bottom"===o&&u.bottom&&(a.y=t-r-i)):(u.top&&(a.y=s.y),u.bottom&&(a.y=s.y+s.height-r),"left"===o&&u.left&&(a.x=e+i),"right"===o&&u.right&&(a.x=e-n-i))}return a}(t,i,n,d,c,a,e);ey(h,{left:ib(g.x+o),top:ib(g.y+s)}),this.resetCrosshairs()},t.prototype.renderCustomContent=function(){var e=this.getHtmlContentNode(),t=this.get("parent"),i=this.get("container");i&&i.parentNode===t?t.replaceChild(e,i):t.appendChild(e),this.set("container",e),this.resetStyles(),this.applyStyles()},t.prototype.getHtmlContentNode=function(){var e,t=this.get("customContent");if(t){var i=t(this.get("title"),this.get("items"));e=(0,em.kK)(i)?i:eS(i)}return e},t.prototype.cacheDoms=function(){var e=this.getContainer(),t=e.getElementsByClassName(nN)[0],i=e.getElementsByClassName(nI)[0];this.set("titleDom",t),this.set("listDom",i)},t.prototype.resetTitle=function(){var e=this.get("title");this.get("showTitle")&&e?this.setTitle(e):this.setTitle("")},t.prototype.setTitle=function(e){var t=this.get("titleDom");t&&(t.innerText=e)},t.prototype.resetCrosshairs=function(){var e=this.get("crosshairsRegion"),t=this.get("crosshairs");if(e&&t){var i=iC(e),n=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");"x"===t?(this.resetCrosshair("x",i),r&&(r.remove(),this.set("yCrosshairDom",null))):"y"===t?(this.resetCrosshair("y",i),n&&(n.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",i),this.resetCrosshair("y",i)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},t.prototype.resetCrosshair=function(e,t){var i=this.checkCrosshair(e),n=this.get(e);"x"===e?ey(i,{left:ib(n),top:ib(t.y),height:ib(t.height)}):ey(i,{top:ib(n),left:ib(t.x),width:ib(t.width)})},t.prototype.checkCrosshair=function(e){var t=e+"CrosshairDom",i=eh["CROSSHAIR_"+e.toUpperCase()],n=this.get(t),r=this.get("parent");return n||(n=eS(this.get(e+"CrosshairTpl")),this.applyStyle(i,n),r.appendChild(n),this.set(t,n)),n},t.prototype.renderItems=function(){this.clearItemDoms();var e=this.get("items"),t=this.get("itemTpl"),i=this.get("listDom");i&&((0,em.S6)(e,function(e){var n=eQ.toCSSGradient(e.color),r=(0,ef.pi)((0,ef.pi)({},e),{color:n}),o=eS((0,em.ng)(t,r));i.appendChild(o)}),this.applyChildrenStyles(i,this.get("domStyles")))},t.prototype.clearItemDoms=function(){this.get("listDom")&&i_(this.get("listDom"))},t.prototype.clearCrosshairs=function(){var e=this.get("xCrosshairDom"),t=this.get("yCrosshairDom");e&&e.remove(),t&&t.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},t}(i$),nB={opacity:0},nU={stroke:"#C5C5C5",strokeOpacity:.85},nH={fill:"#CACED4",opacity:.85},nV=i(39499);function nW(e){return(0,em.UI)(e,function(e,t){return[0===t?"M":"L",e[0],e[1]]})}var nG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:nB,lineStyle:nU,areaStyle:nH})},t.prototype.renderInner=function(e){var t=this.cfg,i=t.width,n=t.height,r=t.data,o=t.smooth,s=t.isArea,a=t.backgroundStyle,l=t.lineStyle,h=t.areaStyle;this.addShape(e,{id:this.getElementId("background"),type:"rect",attrs:(0,ef.pi)({x:0,y:0,width:i,height:n},a)});var u=(void 0===(d=o)&&(d=!0),c=new tx({values:r}),g=new e9({values:(0,em.UI)(r,function(e,t){return t})}),p=(0,em.UI)(r,function(e,t){return[g.scale(t)*i,n-c.scale(e)*n]}),d?function(e){if(e.length<=2)return nW(e);var t=[];(0,em.S6)(e,function(e){(0,em.Xy)(e,t.slice(t.length-2))||t.push(e[0],e[1])});var i=(0,nV.e9)(t,!1),n=(0,em.YM)(e),r=n[0],o=n[1];return i.unshift(["M",r,o]),i}(p):nW(p));if(this.addShape(e,{id:this.getElementId("line"),type:"path",attrs:(0,ef.pi)({path:u},l)}),s){var d,c,g,p,f,m,v,E,_=(f=(0,ef.pr)(u),v=(m=new tx({values:r})).max<0?m.max:Math.max(0,m.min),E=n-m.scale(v)*n,f.push(["L",i,E]),f.push(["L",0,E]),f.push(["Z"]),f);this.addShape(e,{id:this.getElementId("area"),type:"path",attrs:(0,ef.pi)({path:_},h)})}},t.prototype.applyOffset=function(){var e=this.cfg,t=e.x,i=e.y;this.moveElementTo(this.get("group"),{x:t,y:i})},t}(iO),nz={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},nY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"handler",x:0,y:0,width:10,height:24,style:nz})},t.prototype.renderInner=function(e){var t=this.cfg,i=t.width,n=t.height,r=t.style,o=r.fill,s=r.stroke,a=r.radius,l=r.opacity,h=r.cursor;this.addShape(e,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:i,height:n,fill:o,stroke:s,radius:a,opacity:l,cursor:h}});var u=1/3*i,d=2/3*i,c=1/4*n,g=3/4*n;this.addShape(e,{id:this.getElementId("line-left"),type:"line",attrs:{x1:u,y1:c,x2:u,y2:g,stroke:s,cursor:h}}),this.addShape(e,{id:this.getElementId("line-right"),type:"line",attrs:{x1:d,y1:c,x2:d,y2:g,stroke:s,cursor:h}})},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.bindEvents=function(){var e=this;this.get("group").on("mouseenter",function(){var t=e.get("style").highLightFill;e.getElementByLocalId("background").attr("fill",t),e.draw()}),this.get("group").on("mouseleave",function(){var t=e.get("style").fill;e.getElementByLocalId("background").attr("fill",t),e.draw()})},t.prototype.draw=function(){var e=this.get("container").get("canvas");e&&e.draw()},t}(iO),nK={fill:"#416180",opacity:.05},n$={fill:"#5B8FF9",opacity:.15,cursor:"move"},nX={width:10,height:24},nj={textBaseline:"middle",fill:"#000",opacity:.45},nq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){return function(i){t.currentTarget=e;var n=i.originalEvent;n.stopPropagation(),n.preventDefault(),t.prevX=(0,em.U2)(n,"touches.0.pageX",n.pageX),t.prevY=(0,em.U2)(n,"touches.0.pageY",n.pageY);var r=t.getContainerDOM();r.addEventListener("mousemove",t.onMouseMove),r.addEventListener("mouseup",t.onMouseUp),r.addEventListener("mouseleave",t.onMouseUp),r.addEventListener("touchmove",t.onMouseMove),r.addEventListener("touchend",t.onMouseUp),r.addEventListener("touchcancel",t.onMouseUp)}},t.onMouseMove=function(e){var i=t.cfg.width,n=[t.get("start"),t.get("end")];e.stopPropagation(),e.preventDefault();var r=(0,em.U2)(e,"touches.0.pageX",e.pageX),o=(0,em.U2)(e,"touches.0.pageY",e.pageY),s=r-t.prevX,a=t.adjustOffsetRange(s/i);t.updateStartEnd(a),t.updateUI(t.getElementByLocalId("foreground"),t.getElementByLocalId("minText"),t.getElementByLocalId("maxText")),t.prevX=r,t.prevY=o,t.draw(),t.emit("sliderchange",[t.get("start"),t.get("end")].sort()),t.delegateEmit("valuechanged",{originValue:n,value:[t.get("start"),t.get("end")]})},t.onMouseUp=function(){t.currentTarget&&(t.currentTarget=void 0);var e=t.getContainerDOM();e&&(e.removeEventListener("mousemove",t.onMouseMove),e.removeEventListener("mouseup",t.onMouseUp),e.removeEventListener("mouseleave",t.onMouseUp),e.removeEventListener("touchmove",t.onMouseMove),e.removeEventListener("touchend",t.onMouseUp),e.removeEventListener("touchcancel",t.onMouseUp))},t}return(0,ef.ZT)(t,e),t.prototype.setRange=function(e,t){this.set("minLimit",e),this.set("maxLimit",t);var i=this.get("start"),n=this.get("end"),r=(0,em.uZ)(i,e,t),o=(0,em.uZ)(n,e,t);this.get("isInit")||i===r&&n===o||this.setValue([r,o])},t.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},t.prototype.setValue=function(e){var t=this.getRange();if((0,em.kJ)(e)&&2===e.length){var i=[this.get("start"),this.get("end")];this.update({start:(0,em.uZ)(e[0],t.min,t.max),end:(0,em.uZ)(e[1],t.min,t.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:i,value:e})}},t.prototype.getValue=function(){return[this.get("start"),this.get("end")]},t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:nK,foregroundStyle:n$,handlerStyle:nX,textStyle:nj}})},t.prototype.update=function(t){var i=t.start,n=t.end,r=(0,ef.pi)({},t);(0,em.UM)(i)||(r.start=(0,em.uZ)(i,0,1)),(0,em.UM)(n)||(r.end=(0,em.uZ)(n,0,1)),e.prototype.update.call(this,r),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},t.prototype.init=function(){this.set("start",(0,em.uZ)(this.get("start"),0,1)),this.set("end",(0,em.uZ)(this.get("end"),0,1)),e.prototype.init.call(this)},t.prototype.render=function(){e.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},t.prototype.renderInner=function(e){var t=this.cfg,i=(t.start,t.end,t.width),n=t.height,r=t.trendCfg,o=void 0===r?{}:r,s=t.minText,a=t.maxText,l=t.backgroundStyle,h=void 0===l?{}:l,u=t.foregroundStyle,d=void 0===u?{}:u,c=t.textStyle,g=void 0===c?{}:c,p=(0,em.b$)({},nz,this.cfg.handlerStyle);(0,em.dp)((0,em.U2)(o,"data"))&&(this.trend=this.addComponent(e,(0,ef.pi)({component:nG,id:this.getElementId("trend"),x:0,y:0,width:i,height:n},o))),this.addShape(e,{id:this.getElementId("background"),type:"rect",attrs:(0,ef.pi)({x:0,y:0,width:i,height:n},h)}),this.addShape(e,{id:this.getElementId("minText"),type:"text",attrs:(0,ef.pi)({y:n/2,textAlign:"right",text:s,silent:!1},g)}),this.addShape(e,{id:this.getElementId("maxText"),type:"text",attrs:(0,ef.pi)({y:n/2,textAlign:"left",text:a,silent:!1},g)}),this.addShape(e,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:(0,ef.pi)({y:0,height:n},d)});var f=(0,em.U2)(p,"width",10),m=(0,em.U2)(p,"height",24);this.minHandler=this.addComponent(e,{component:nY,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(n-m)/2,width:f,height:m,cursor:"ew-resize",style:p}),this.maxHandler=this.addComponent(e,{component:nY,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(n-m)/2,width:f,height:m,cursor:"ew-resize",style:p})},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.updateUI=function(e,t,i){var n=this.cfg,r=n.start,o=n.end,s=n.width,a=n.minText,l=n.maxText,h=n.handlerStyle,u=n.height,d=r*s,c=o*s;this.trend&&(this.trend.update({width:s,height:u}),this.get("updateAutoRender")||this.trend.render()),e.attr("x",d),e.attr("width",c-d);var g=(0,em.U2)(h,"width",10);t.attr("text",a),i.attr("text",l);var p=this._dodgeText([d,c],t,i),f=p[0],m=p[1];this.minHandler&&(this.minHandler.update({x:d-g/2}),this.get("updateAutoRender")||this.minHandler.render()),(0,em.S6)(f,function(e,i){return t.attr(i,e)}),this.maxHandler&&(this.maxHandler.update({x:c-g/2}),this.get("updateAutoRender")||this.maxHandler.render()),(0,em.S6)(m,function(e,t){return i.attr(t,e)})},t.prototype.bindEvents=function(){var e=this.get("group");e.on("handler-min:mousedown",this.onMouseDown("minHandler")),e.on("handler-min:touchstart",this.onMouseDown("minHandler")),e.on("handler-max:mousedown",this.onMouseDown("maxHandler")),e.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var t=e.findById(this.getElementId("foreground"));t.on("mousedown",this.onMouseDown("foreground")),t.on("touchstart",this.onMouseDown("foreground"))},t.prototype.adjustOffsetRange=function(e){var t=this.cfg,i=t.start,n=t.end;switch(this.currentTarget){case"minHandler":var r=0-i,o=1-i;return Math.min(o,Math.max(r,e));case"maxHandler":var r=0-n,o=1-n;return Math.min(o,Math.max(r,e));case"foreground":var r=0-i,o=1-n;return Math.min(o,Math.max(r,e))}},t.prototype.updateStartEnd=function(e){var t=this.cfg,i=t.start,n=t.end;switch(this.currentTarget){case"minHandler":i+=e;break;case"maxHandler":n+=e;break;case"foreground":i+=e,n+=e}this.set("start",i),this.set("end",n)},t.prototype._dodgeText=function(e,t,i){var n,r,o=this.cfg,s=o.handlerStyle,a=o.width,l=(0,em.U2)(s,"width",10),h=e[0],u=e[1],d=!1;h>u&&(h=(n=[u,h])[0],u=n[1],t=(r=[i,t])[0],i=r[1],d=!0);var c=t.getBBox(),g=i.getBBox(),p=c.width>h-2?{x:h+l/2+2,textAlign:"left"}:{x:h-l/2-2,textAlign:"right"},f=g.width>a-u-2?{x:u-l/2-2,textAlign:"right"}:{x:u+l/2+2,textAlign:"left"};return d?[f,p]:[p,f]},t.prototype.draw=function(){var e=this.get("container"),t=e&&e.get("canvas");t&&t.draw()},t.prototype.getContainerDOM=function(){var e=this.get("container"),t=e&&e.get("canvas");return t&&t.get("container")},t}(iO);function nZ(e,t,i){if(e){if("function"==typeof e.addEventListener)return e.addEventListener(t,i,!1),{remove:function(){e.removeEventListener(t,i,!1)}};if("function"==typeof e.attachEvent)return e.attachEvent("on"+t,i),{remove:function(){e.detachEvent("on"+t,i)}}}}var nJ={default:{trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},hover:{thumbColor:"rgba(0,0,0,0.2)"}},nQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.clearEvents=em.ZT,t.onStartEvent=function(e){return function(i){t.isMobile=e,i.originalEvent.preventDefault();var n=e?(0,em.U2)(i.originalEvent,"touches.0.clientX"):i.clientX,r=e?(0,em.U2)(i.originalEvent,"touches.0.clientY"):i.clientY;t.startPos=t.cfg.isHorizontal?n:r,t.bindLaterEvent()}},t.bindLaterEvent=function(){var e=t.getContainerDOM(),i=[];i=t.isMobile?[nZ(e,"touchmove",t.onMouseMove),nZ(e,"touchend",t.onMouseUp),nZ(e,"touchcancel",t.onMouseUp)]:[nZ(e,"mousemove",t.onMouseMove),nZ(e,"mouseup",t.onMouseUp),nZ(e,"mouseleave",t.onMouseUp)],t.clearEvents=function(){i.forEach(function(e){e.remove()})}},t.onMouseMove=function(e){var i=t.cfg,n=i.isHorizontal,r=i.thumbOffset;e.preventDefault();var o=t.isMobile?(0,em.U2)(e,"touches.0.clientX"):e.clientX,s=t.isMobile?(0,em.U2)(e,"touches.0.clientY"):e.clientY,a=n?o:s,l=a-t.startPos;t.startPos=a,t.updateThumbOffset(r+l)},t.onMouseUp=function(e){e.preventDefault(),t.clearEvents()},t.onTrackClick=function(e){var i=t.cfg,n=i.isHorizontal,r=i.x,o=i.y,s=i.thumbLen,a=t.getContainerDOM().getBoundingClientRect(),l=e.clientX,h=e.clientY,u=n?l-a.left-r-s/2:h-a.top-o-s/2,d=t.validateRange(u);t.updateThumbOffset(d)},t.onThumbMouseOver=function(){var e=t.cfg.theme.hover.thumbColor;t.getElementByLocalId("thumb").attr("stroke",e),t.draw()},t.onThumbMouseOut=function(){var e=t.cfg.theme.default.thumbColor;t.getElementByLocalId("thumb").attr("stroke",e),t.draw()},t}return(0,ef.ZT)(t,e),t.prototype.setRange=function(e,t){this.set("minLimit",e),this.set("maxLimit",t);var i=this.getValue(),n=(0,em.uZ)(i,e,t);i===n||this.get("isInit")||this.setValue(n)},t.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},t.prototype.setValue=function(e){var t=this.getRange(),i=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*(0,em.uZ)(e,t.min,t.max)}),this.delegateEmit("valuechange",{originalValue:i,value:this.getValue()})},t.prototype.getValue=function(){return(0,em.uZ)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:nJ})},t.prototype.renderInner=function(e){this.renderTrackShape(e),this.renderThumbShape(e)},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.renderTrackShape=function(e){var t=this.cfg,i=t.trackLen,n=t.theme,r=(0,em.b$)({},nJ,void 0===n?{default:{}}:n).default,o=r.lineCap,s=r.trackColor,a=r.size,l=(0,em.U2)(this.cfg,"size",a),h=this.get("isHorizontal")?{x1:0+l/2,y1:l/2,x2:i-l/2,y2:l/2,lineWidth:l,stroke:s,lineCap:o}:{x1:l/2,y1:0+l/2,x2:l/2,y2:i-l/2,lineWidth:l,stroke:s,lineCap:o};return this.addShape(e,{id:this.getElementId("track"),name:"track",type:"line",attrs:h})},t.prototype.renderThumbShape=function(e){var t=this.cfg,i=t.thumbOffset,n=t.thumbLen,r=t.theme,o=(0,em.b$)({},nJ,r).default,s=o.size,a=o.lineCap,l=o.thumbColor,h=(0,em.U2)(this.cfg,"size",s),u=this.get("isHorizontal")?{x1:i+h/2,y1:h/2,x2:i+n-h/2,y2:h/2,lineWidth:h,stroke:l,lineCap:a,cursor:"default"}:{x1:h/2,y1:i+h/2,x2:h/2,y2:i+n-h/2,lineWidth:h,stroke:l,lineCap:a,cursor:"default"};return this.addShape(e,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:u})},t.prototype.bindEvents=function(){var e=this.get("group");e.on("mousedown",this.onStartEvent(!1)),e.on("mouseup",this.onMouseUp),e.on("touchstart",this.onStartEvent(!0)),e.on("touchend",this.onMouseUp),e.findById(this.getElementId("track")).on("click",this.onTrackClick);var t=e.findById(this.getElementId("thumb"));t.on("mouseover",this.onThumbMouseOver),t.on("mouseout",this.onThumbMouseOut)},t.prototype.getContainerDOM=function(){var e=this.get("container"),t=e&&e.get("canvas");return t&&t.get("container")},t.prototype.validateRange=function(e){var t=this.cfg,i=t.thumbLen,n=t.trackLen,r=e;return e+i>n?r=n-i:e+ie.x?e.x:t,i=ie.y?e.y:n,r=r=n&&e<=r}function n7(e,t){return"object"==typeof e&&t.forEach(function(t){delete e[t]}),e}function n8(e,t,i){void 0===t&&(t=[]),void 0===i&&(i=new Map);for(var n=0;n=this.minX&&e.maxX<=this.maxX&&e.minY>=this.minY&&e.maxY<=this.maxY},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.add=function(){for(var e=[],t=0;te.minX&&this.minYe.minY},e.prototype.size=function(){return this.width*this.height},e.prototype.isPointIn=function(e){return e.x>=this.minX&&e.x<=this.maxX&&e.y>=this.minY&&e.y<=this.maxY},e}();function rt(e){if(e.isPolar&&!e.isTransposed)return(e.endAngle-e.startAngle)*e.getRadius();var t=e.convert({x:0,y:0}),i=e.convert({x:1,y:0});return Math.sqrt(Math.pow(i.x-t.x,2)+Math.pow(i.y-t.y,2))}function ri(e,t){var i=e.getCenter();return Math.sqrt(Math.pow(t.x-i.x,2)+Math.pow(t.y-i.y,2))}function rn(e,t){var i=!1;if(e){if("theta"===e.type){var n=e.start,r=e.end;i=n9(t.x,n.x,r.x)&&n9(t.y,n.y,r.y)}else{var o=e.invert(t);i=n9(o.x,0,1)&&n9(o.y,0,1)}}return i}function rr(e,t){var i=e.getCenter();return Math.atan2(t.y-i.y,t.x-i.x)}function ro(e,t){void 0===t&&(t=0);var i,n=e.start,r=e.end,o=e.getWidth(),s=e.getHeight();if(e.isPolar){var a=e.startAngle,l=e.endAngle,h=e.getCenter(),u=e.getRadius();return{type:"path",startState:{path:n4(h.x,h.y,u+t,a,a)},endState:function(e){var i=(l-a)*e+a;return{path:n4(h.x,h.y,u+t,a,i)}},attrs:{path:n4(h.x,h.y,u+t,a,l)}}}return i=e.isTransposed?{height:s+2*t}:{width:o+2*t},{type:"rect",startState:{x:n.x-t,y:r.y-t,width:e.isTransposed?o+2*t:0,height:e.isTransposed?0:s+2*t},endState:i,attrs:{x:n.x-t,y:r.y-t,width:o+2*t,height:s+2*t}}}var rs=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function ra(e){return e.alias||e.field}function rl(e,t,i){var n,r=e.values.length;if(1===r)n=[.5,1];else{var o=0;n=!function(e){if(e.isPolar){var t=e.startAngle;return e.endAngle-t==2*Math.PI}return!1}(t)?[o=1/r/2,1-o]:t.isTransposed?[(o=1/r*(0,em.U2)(i,"widthRatio.multiplePie",1/1.3))/2,1-o/2]:[0,1-1/r]}return n}function rh(e,t){var i,n,r={start:{x:0,y:0},end:{x:0,y:0}};e.isRect?r=function(e){var t,i;switch(e){case x.TOP:t={x:0,y:1},i={x:1,y:1};break;case x.RIGHT:t={x:1,y:0},i={x:1,y:1};break;case x.BOTTOM:t={x:0,y:0},i={x:1,y:0};break;case x.LEFT:t={x:0,y:0},i={x:0,y:1};break;default:t=i={x:0,y:0}}return{start:t,end:i}}(t):e.isPolar&&(e.isTransposed?(i={x:0,y:0},n={x:1,y:0}):(i={x:0,y:0},n={x:0,y:1}),r={start:i,end:n});var o=r.start,s=r.end;return{start:e.convert(o),end:e.convert(s)}}function ru(e){var t=e.start,i=e.end;return t.x===i.x}function rd(e,t){var i=e.start,n=e.end;return ru(e)?(i.y-n.y)*(t.x-i.x)>0?1:-1:(n.x-i.x)*(i.y-t.y)>0?-1:1}function rc(e,t){var i=(0,em.U2)(e,["components","axis"],{});return(0,em.b$)({},(0,em.U2)(i,["common"],{}),(0,em.b$)({},(0,em.U2)(i,[t],{})))}function rg(e,t,i){var n=(0,em.U2)(e,["components","axis"],{});return(0,em.b$)({},(0,em.U2)(n,["common","title"],{}),(0,em.b$)({},(0,em.U2)(n,[t,"title"],{})),i)}function rp(e){var t=e.x,i=e.y,n=e.circleCenter,r=i.start>i.end,o=e.isTransposed?e.convert({x:r?0:1,y:0}):e.convert({x:0,y:r?0:1}),s=[o.x-n.x,o.y-n.y],a=[1,0],l=o.y>n.y?io.EU(s,a):-1*io.EU(s,a),h=l+(t.end-t.start),u=Math.sqrt(Math.pow(o.x-n.x,2)+Math.pow(o.y-n.y,2));return{center:n,radius:u,startAngle:l,endAngle:h}}function rf(e,t){return(0,em.jn)(e)?!1!==e&&{}:(0,em.U2)(e,[t])}function rm(e,t){return(0,em.U2)(e,"position",t)}function rv(e,t){return(0,em.U2)(t,["title","text"],ra(e))}var rE=function(){function e(e,t){this.destroyed=!1,this.facets=[],this.view=e,this.cfg=(0,em.b$)({},this.getDefaultCfg(),t)}return e.prototype.init=function(){this.container||(this.container=this.createContainer());var e=this.view.getData();this.facets=this.generateFacets(e)},e.prototype.render=function(){this.renderViews()},e.prototype.update=function(){},e.prototype.clear=function(){this.clearFacetViews()},e.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},e.prototype.facetToView=function(e){var t=e.region,i=e.data,n=e.padding,r=void 0===n?this.cfg.padding:n,o=this.view.createView({region:t,padding:r});o.data(i||[]),e.view=o,this.beforeEachView(o,e);var s=this.cfg.eachView;return s&&s(o,e),this.afterEachView(o,e),o},e.prototype.createContainer=function(){return this.view.getLayer(O.FORE).addGroup()},e.prototype.renderViews=function(){this.createFacetViews()},e.prototype.createFacetViews=function(){var e=this;return this.facets.map(function(t){return e.facetToView(t)})},e.prototype.clearFacetViews=function(){var e=this;(0,em.S6)(this.facets,function(t){t.view&&(e.view.removeView(t.view),t.view=void 0)})},e.prototype.parseSpacing=function(){var e=this.view.viewBBox,t=e.width,i=e.height;return this.cfg.spacing.map(function(e,n){return(0,em.hj)(e)?e/(0===n?t:i):parseFloat(e)/100})},e.prototype.getFieldValues=function(e,t){var i=[],n={};return(0,em.S6)(e,function(e){var r=e[t];(0,em.UM)(r)||n[r]||(i.push(r),n[r]=!0)}),i},e.prototype.getRegion=function(e,t,i,n){var r=this.parseSpacing(),o=r[0],s=r[1],a=(1+o)/(0===t?1:t)-o,l=(1+s)/(0===e?1:e)-s,h={x:(a+o)*i,y:(l+s)*n},u={x:h.x+a,y:h.y+l};return{start:h,end:u}},e.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},e.prototype.getDefaultTitleCfg=function(){return{style:{fontSize:14,fill:"#666",fontFamily:this.view.getTheme().fontFamily}}},e.prototype.processAxis=function(e,t){var i=e.getOptions(),n=i.coordinate,r=e.geometries;if("rect"===(0,em.U2)(n,"type","rect")&&r.length){(0,em.UM)(i.axes)&&(i.axes={});var o=i.axes,s=r[0].getXYFields(),a=s[0],l=s[1],h=rf(o,a),u=rf(o,l);!1!==h&&(i.axes[a]=this.getXAxisOption(a,o,h,t)),!1!==u&&(i.axes[l]=this.getYAxisOption(l,o,u,t))}},e.prototype.getFacetDataFilter=function(e){return function(t){return(0,em.yW)(e,function(e){var i=e.field,n=e.value;return!!(0,em.UM)(n)||!i||t[i]===n})}},e}(),r_={},rC=function(e,t){r_[(0,em.vl)(e)]=t},rS=function(){function e(e,t){this.context=e,this.cfg=t,e.addAction(this)}return e.prototype.applyCfg=function(e){(0,em.f0)(this,e)},e.prototype.init=function(){this.applyCfg(this.cfg)},e.prototype.destroy=function(){this.context.removeAction(this),this.context=null},e}(),ry=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.execute=function(){this.callback&&this.callback(this.context)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.callback=null},t}(rS),rT={};function rb(e){var t=rT[e];return(0,em.U2)(t,"ActionClass")}function rA(e,t,i){rT[e]={ActionClass:t,cfg:i}}function rR(e,t){for(var i=[e[0]],n=1,r=e.length;n=t||i.height>=t?i:null}function rD(e){var t,i=e.event.target;return i&&(t=i.get("element")),t}function rM(e){var t,i=e.event.target;return i&&(t=i.get("delegateObject")),t}function rk(e){var t=e.event.gEvent;return!t||!t.fromShape||!t.toShape||t.fromShape.get("element")!==t.toShape.get("element")}function rP(e){return e&&e.component&&e.component.isList()}function rF(e){return e&&e.component&&e.component.isSlider()}function rB(e){var t=e.event.target;return t&&"mask"===t.get("name")}function rU(e,t){if("path"===e.event.target.get("type")){var i,n,r,o,s=(o=(r=e.event.target).getCanvasBBox()).width>=t||o.height>=t?r.attr("path"):null;if(!s)return;return i=rV(e.view),n=rY(s),i.filter(function(e){var t,i,r=e.shape;return i="path"===r.get("type")?rY(r.attr("path")):[[(t=r.getCanvasBBox()).minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]],(0,nV.Wq)(n,i)})}var a=rx(e,t);return a?rz(e.view,a):null}function rH(e,t,i){var n=rx(e,i);if(!n)return null;var r=e.view,o=rq(r,t,{x:n.x,y:n.y}),s=rq(r,t,{x:n.maxX,y:n.maxY}),a={minX:o.x,minY:o.y,maxX:s.x,maxY:s.y};return rz(t,a)}function rV(e){var t=e.geometries,i=[];return(0,em.S6)(t,function(e){var t=e.elements;i=i.concat(t)}),e.views&&e.views.length&&(0,em.S6)(e.views,function(e){i=i.concat(rV(e))}),i}function rW(e,t){var i=e.geometries,n=[];return(0,em.S6)(i,function(e){var i=e.getElementsBy(function(e){return e.hasState(t)});n=n.concat(i)}),n}function rG(e,t){var i=e.getModel().data;return(0,em.kJ)(i)?i[0][t]:i[t]}function rz(e,t){var i=rV(e),n=[];return(0,em.S6)(i,function(e){var i=e.shape.getCanvasBBox();i.minX>t.maxX||i.maxXt.maxY||i.maxY=t.x&&e.y<=t.y&&e.maxY>t.y}function rj(e){var t=e.parent,i=null;return t&&(i=t.views.filter(function(t){return t!==e})),i}function rq(e,t,i){var n=e.getCoordinate().invert(i);return t.getCoordinate().convert(n)}function rZ(e,t,i,n){var r=!1;return(0,em.S6)(e,function(e){if(e[i]===t[i]&&e[n]===t[n])return r=!0,!1}),r}function rJ(e,t){var i=e.getScaleByField(t);return!i&&e.views&&(0,em.S6)(e.views,function(e){if(i=rJ(e,t))return!1}),i}var rQ=function(){function e(e){this.actions=[],this.event=null,this.cacheMap={},this.view=e}return e.prototype.cache=function(){for(var e=[],t=0;t=0&&t.splice(i,1)},e.prototype.getCurrentPoint=function(){var e=this.event;return e?e.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(e.clientX,e.clientY):{x:e.x,y:e.y}:null},e.prototype.getCurrentShape=function(){return(0,em.U2)(this.event,["gEvent","shape"])},e.prototype.isInPlot=function(){var e=this.getCurrentPoint();return!!e&&this.view.isPointInPlot(e)},e.prototype.isInShape=function(e){var t=this.getCurrentShape();return!!t&&t.get("name")===e},e.prototype.isInComponent=function(e){var t=rK(this.view),i=this.getCurrentPoint();return!!i&&!!t.find(function(t){var n=t.getBBox();return e?t.get("name")===e&&rX(n,i):rX(n,i)})},e.prototype.destroy=function(){(0,em.S6)(this.actions.slice(),function(e){e.destroy()}),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},e}(),r0=function(){function e(e,t){this.view=e,this.cfg=t}return e.prototype.init=function(){this.initEvents()},e.prototype.initEvents=function(){},e.prototype.clearEvents=function(){},e.prototype.destroy=function(){this.clearEvents()},e}();function r1(e,t,i){var n=e.split(":"),r=n[0],o=t.getAction(r)||function(e,t){var i=rT[e],n=null;if(i){var r=i.ActionClass,o=i.cfg;(n=new r(t,o)).name=e,n.init()}return n}(r,t);if(!o)throw Error("There is no action named "+r);return{action:o,methodName:n[1],arg:i}}function r2(e){var t=e.action,i=e.methodName,n=e.arg;if(t[i])t[i](n);else throw Error("Action("+t.name+") doesn't have a method called "+i)}var r4={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},r5=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n.callbackCaches={},n.emitCaches={},n.steps=i,n}return(0,ef.ZT)(t,e),t.prototype.init=function(){this.initContext(),e.prototype.init.call(this)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},t.prototype.initEvents=function(){var e=this;(0,em.S6)(this.steps,function(t,i){(0,em.S6)(t,function(t){var n=e.getActionCallback(i,t);n&&e.bindEvent(t.trigger,n)})})},t.prototype.clearEvents=function(){var e=this;(0,em.S6)(this.steps,function(t,i){(0,em.S6)(t,function(t){var n=e.getActionCallback(i,t);n&&e.offEvent(t.trigger,n)})})},t.prototype.initContext=function(){var e=this.view,t=new rQ(e);this.context=t;var i=this.steps;(0,em.S6)(i,function(e){(0,em.S6)(e,function(e){if((0,em.mf)(e.action)){var i,n;e.actionObject={action:(i=e.action,(n=new ry(t)).callback=i,n.name="callback",n),methodName:"execute"}}else if((0,em.HD)(e.action))e.actionObject=r1(e.action,t,e.arg);else if((0,em.kJ)(e.action)){var r=e.action,o=(0,em.kJ)(e.arg)?e.arg:[e.arg];e.actionObject=[],(0,em.S6)(r,function(i,n){e.actionObject.push(r1(i,t,o[n]))})}})})},t.prototype.isAllowStep=function(e){var t=this.currentStepName,i=this.steps;if(t===e||e===r4.SHOW_ENABLE)return!0;if(e===r4.PROCESSING)return t===r4.START;if(e===r4.START)return t!==r4.PROCESSING;if(e===r4.END)return t===r4.PROCESSING||t===r4.START;if(e===r4.ROLLBACK){if(i[r4.END])return t===r4.END;if(t===r4.START)return!0}return!1},t.prototype.isAllowExecute=function(e,t){if(this.isAllowStep(e)){var i=this.getKey(e,t);return(!t.once||!this.emitCaches[i])&&(!t.isEnable||t.isEnable(this.context))}return!1},t.prototype.enterStep=function(e){this.currentStepName=e,this.emitCaches={}},t.prototype.afterExecute=function(e,t){e!==r4.SHOW_ENABLE&&this.currentStepName!==e&&this.enterStep(e);var i=this.getKey(e,t);this.emitCaches[i]=!0},t.prototype.getKey=function(e,t){return e+t.trigger+t.action},t.prototype.getActionCallback=function(e,t){var i=this,n=this.context,r=this.callbackCaches,o=t.actionObject;if(t.action&&o){var s=this.getKey(e,t);if(!r[s]){var a=function(r){n.event=r,i.isAllowExecute(e,t)?((0,em.kJ)(o)?(0,em.S6)(o,function(e){n.event=r,r2(e)}):(n.event=r,r2(o)),i.afterExecute(e,t),t.callback&&(n.event=r,t.callback(n))):n.event=null};t.debounce?r[s]=(0,em.Ds)(a,t.debounce.wait,t.debounce.immediate):t.throttle?r[s]=(0,em.P2)(a,t.throttle.wait,{leading:t.throttle.leading,trailing:t.throttle.trailing}):r[s]=a}return r[s]}return null},t.prototype.bindEvent=function(e,t){var i=e.split(":");"window"===i[0]?window.addEventListener(i[1],t):"document"===i[0]?document.addEventListener(i[1],t):this.view.on(e,t)},t.prototype.offEvent=function(e,t){var i=e.split(":");"window"===i[0]?window.removeEventListener(i[1],t):"document"===i[0]?document.removeEventListener(i[1],t):this.view.off(e,t)},t}(r0),r6={};function r3(e,t){r6[(0,em.vl)(e)]=t}function r9(e){var t,i={point:{default:{fill:e.pointFillColor,r:e.pointSize,stroke:e.pointBorderColor,lineWidth:e.pointBorder,fillOpacity:e.pointFillOpacity},active:{stroke:e.pointActiveBorderColor,lineWidth:e.pointActiveBorder},selected:{stroke:e.pointSelectedBorderColor,lineWidth:e.pointSelectedBorder},inactive:{fillOpacity:e.pointInactiveFillOpacity,strokeOpacity:e.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:e.hollowPointFillColor,lineWidth:e.hollowPointBorder,stroke:e.hollowPointBorderColor,strokeOpacity:e.hollowPointBorderOpacity,r:e.hollowPointSize},active:{stroke:e.hollowPointActiveBorderColor,strokeOpacity:e.hollowPointActiveBorderOpacity},selected:{lineWidth:e.hollowPointSelectedBorder,stroke:e.hollowPointSelectedBorderColor,strokeOpacity:e.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:e.hollowPointInactiveBorderOpacity}},area:{default:{fill:e.areaFillColor,fillOpacity:e.areaFillOpacity,stroke:null},active:{fillOpacity:e.areaActiveFillOpacity},selected:{fillOpacity:e.areaSelectedFillOpacity},inactive:{fillOpacity:e.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:e.hollowAreaBorderColor,lineWidth:e.hollowAreaBorder,strokeOpacity:e.hollowAreaBorderOpacity},active:{fill:null,lineWidth:e.hollowAreaActiveBorder},selected:{fill:null,lineWidth:e.hollowAreaSelectedBorder},inactive:{strokeOpacity:e.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:e.intervalFillColor,fillOpacity:e.intervalFillOpacity},active:{stroke:e.intervalActiveBorderColor,lineWidth:e.intervalActiveBorder},selected:{stroke:e.intervalSelectedBorderColor,lineWidth:e.intervalSelectedBorder},inactive:{fillOpacity:e.intervalInactiveFillOpacity,strokeOpacity:e.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:e.hollowIntervalFillColor,stroke:e.hollowIntervalBorderColor,lineWidth:e.hollowIntervalBorder,strokeOpacity:e.hollowIntervalBorderOpacity},active:{stroke:e.hollowIntervalActiveBorderColor,lineWidth:e.hollowIntervalActiveBorder,strokeOpacity:e.hollowIntervalActiveBorderOpacity},selected:{stroke:e.hollowIntervalSelectedBorderColor,lineWidth:e.hollowIntervalSelectedBorder,strokeOpacity:e.hollowIntervalSelectedBorderOpacity},inactive:{stroke:e.hollowIntervalInactiveBorderColor,lineWidth:e.hollowIntervalInactiveBorder,strokeOpacity:e.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:e.lineBorderColor,lineWidth:e.lineBorder,strokeOpacity:e.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:e.lineActiveBorder},selected:{lineWidth:e.lineSelectedBorder},inactive:{strokeOpacity:e.lineInactiveBorderOpacity}}},n={title:{autoRotate:!0,position:"center",spacing:e.axisTitleSpacing,style:{fill:e.axisTitleTextFillColor,fontSize:e.axisTitleTextFontSize,lineHeight:e.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:e.axisLabelOffset,style:{fill:e.axisLabelFillColor,fontSize:e.axisLabelFontSize,lineHeight:e.axisLabelLineHeight,fontFamily:e.fontFamily}},line:{style:{lineWidth:e.axisLineBorder,stroke:e.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:e.axisGridBorderColor,lineWidth:e.axisGridBorder,lineDash:e.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:e.axisTickLineBorder,stroke:e.axisTickLineBorderColor},alignTick:!0,length:e.axisTickLineLength},subTickLine:null,animate:!0},r={title:null,marker:{symbol:"circle",spacing:e.legendMarkerSpacing,style:{r:e.legendCircleMarkerSize,fill:e.legendMarkerColor}},itemName:{spacing:5,style:{fill:e.legendItemNameFillColor,fontFamily:e.fontFamily,fontSize:e.legendItemNameFontSize,lineHeight:e.legendItemNameLineHeight,fontWeight:e.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:e.legendPageNavigatorMarkerSize,inactiveFill:e.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:e.legendPageNavigatorMarkerInactiveFillOpacity,fill:e.legendPageNavigatorMarkerFillColor,opacity:e.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:e.legendPageNavigatorTextFillColor,fontSize:e.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:e.legendItemSpacing,itemMarginBottom:e.legendItemMarginBottom,padding:e.legendPadding};return{background:e.backgroundColor,defaultColor:e.brandColor,subColor:e.subColor,semanticRed:e.paletteSemanticRed,semanticGreen:e.paletteSemanticGreen,padding:"auto",fontFamily:e.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:e.paletteQualitative10,colors20:e.paletteQualitative20,sequenceColors:e.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:i.interval.default},active:{style:i.interval.active},inactive:{style:i.interval.inactive},selected:{style:function(e){var t=e.geometry.coordinate;if(t.isPolar&&t.isTransposed){var n=n6(e.getModel(),t),r=(n.startAngle+n.endAngle)/2,o=7.5*Math.cos(r),s=7.5*Math.sin(r);return{matrix:it.vs(null,[["t",o,s]])}}return i.interval.selected}}},"hollow-rect":{default:{style:i.hollowInterval.default},active:{style:i.hollowInterval.active},inactive:{style:i.hollowInterval.inactive},selected:{style:i.hollowInterval.selected}},line:{default:{style:i.hollowInterval.default},active:{style:i.hollowInterval.active},inactive:{style:i.hollowInterval.inactive},selected:{style:i.hollowInterval.selected}},tick:{default:{style:i.hollowInterval.default},active:{style:i.hollowInterval.active},inactive:{style:i.hollowInterval.inactive},selected:{style:i.hollowInterval.selected}},funnel:{default:{style:i.interval.default},active:{style:i.interval.active},inactive:{style:i.interval.inactive},selected:{style:i.interval.selected}},pyramid:{default:{style:i.interval.default},active:{style:i.interval.active},inactive:{style:i.interval.inactive},selected:{style:i.interval.selected}}},line:{line:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},dot:{default:{style:(0,ef.pi)((0,ef.pi)({},i.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:(0,ef.pi)((0,ef.pi)({},i.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:(0,ef.pi)((0,ef.pi)({},i.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:(0,ef.pi)((0,ef.pi)({},i.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:(0,ef.pi)((0,ef.pi)({},i.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:(0,ef.pi)((0,ef.pi)({},i.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:(0,ef.pi)((0,ef.pi)({},i.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:(0,ef.pi)((0,ef.pi)({},i.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},hv:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},vh:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},hvh:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},vhv:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}}},polygon:{polygon:{default:{style:i.interval.default},active:{style:i.interval.active},inactive:{style:i.interval.inactive},selected:{style:i.interval.selected}}},point:{circle:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},square:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},bowtie:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},diamond:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},hexagon:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},triangle:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},"triangle-down":{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},"hollow-circle":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-square":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-bowtie":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-diamond":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-hexagon":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-triangle":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-triangle-down":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},cross:{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},tick:{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},plus:{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},hyphen:{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},line:{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}}},area:{area:{default:{style:i.area.default},active:{style:i.area.active},inactive:{style:i.area.inactive},selected:{style:i.area.selected}},smooth:{default:{style:i.area.default},active:{style:i.area.active},inactive:{style:i.area.inactive},selected:{style:i.area.selected}},line:{default:{style:i.hollowArea.default},active:{style:i.hollowArea.active},inactive:{style:i.hollowArea.inactive},selected:{style:i.hollowArea.selected}},"smooth-line":{default:{style:i.hollowArea.default},active:{style:i.hollowArea.active},inactive:{style:i.hollowArea.inactive},selected:{style:i.hollowArea.selected}}},schema:{candle:{default:{style:i.hollowInterval.default},active:{style:i.hollowInterval.active},inactive:{style:i.hollowInterval.inactive},selected:{style:i.hollowInterval.selected}},box:{default:{style:i.hollowInterval.default},active:{style:i.hollowInterval.active},inactive:{style:i.hollowInterval.inactive},selected:{style:i.hollowInterval.selected}}},edge:{line:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},vhv:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},smooth:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},arc:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}}},violin:{violin:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},smooth:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},hollow:{default:{style:i.hollowArea.default},active:{style:i.hollowArea.active},inactive:{style:i.hollowArea.inactive},selected:{style:i.hollowArea.selected}},"hollow-smooth":{default:{style:i.hollowArea.default},active:{style:i.hollowArea.active},inactive:{style:i.hollowArea.inactive},selected:{style:i.hollowArea.selected}}}},components:{axis:{common:n,top:{position:"top",grid:null,title:null,verticalLimitLength:.5},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:.5},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:(0,em.b$)({},n.grid,{line:{type:"line"}})},radius:{title:null,grid:(0,em.b$)({},n.grid,{line:{type:"circle"}})}},legend:{common:r,right:{layout:"vertical",padding:e.legendVerticalPadding},left:{layout:"vertical",padding:e.legendVerticalPadding},top:{layout:"horizontal",padding:e.legendHorizontalPadding},bottom:{layout:"horizontal",padding:e.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:e.sliderRailHeight,defaultLength:e.sliderRailWidth,style:{fill:e.sliderRailFillColor,stroke:e.sliderRailBorderColor,lineWidth:e.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:e.sliderLabelTextFillColor,fontSize:e.sliderLabelTextFontSize,lineHeight:e.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily}},handler:{size:e.sliderHandlerWidth,style:{fill:e.sliderHandlerFillColor,stroke:e.sliderHandlerBorderColor}},slidable:!0,padding:r.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:e.tooltipCrosshairsBorderColor,lineWidth:e.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:((t={})[""+nL]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:e.tooltipContainerFillColor,opacity:e.tooltipContainerFillOpacity,boxShadow:e.tooltipContainerShadow,borderRadius:e.tooltipContainerBorderRadius+"px",color:e.tooltipTextFillColor,fontSize:e.tooltipTextFontSize+"px",fontFamily:e.fontFamily,lineHeight:e.tooltipTextLineHeight+"px",padding:"0 12px 0 12px"},t[""+nN]={marginBottom:"12px",marginTop:"12px"},t[""+nI]={margin:0,listStyleType:"none",padding:0},t[""+nw]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},t[""+nO]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},t[""+nx]={display:"inline-block",float:"right",marginLeft:"30px"},t)},annotation:{arc:{style:{stroke:e.annotationArcBorderColor,lineWidth:e.annotationArcBorder},animate:!0},line:{style:{stroke:e.annotationLineBorderColor,lineDash:e.annotationLineDash,lineWidth:e.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textAlign:"start",fontFamily:e.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:e.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:e.annotationRegionBorder,stroke:e.annotationRegionBorderColor,fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:e.brandColor,lineWidth:2}},line:{style:{stroke:e.annotationLineBorderColor,lineWidth:e.annotationLineBorder},length:e.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:e.cSliderBackgroundFillColor,opacity:e.cSliderBackgroundFillOpacity},foregroundStyle:{fill:e.cSliderForegroundFillColor,opacity:e.cSliderForegroundFillOpacity},handlerStyle:{width:e.cSliderHandlerWidth,height:e.cSliderHandlerHeight,fill:e.cSliderHandlerFillColor,opacity:e.cSliderHandlerFillOpacity,stroke:e.cSliderHandlerBorderColor,lineWidth:e.cSliderHandlerBorder,radius:e.cSliderHandlerBorderRadius,highLightFill:e.cSliderHandlerHighlightFillColor},textStyle:{fill:e.cSliderTextFillColor,opacity:e.cSliderTextFillOpacity,fontSize:e.cSliderTextFontSize,lineHeight:e.cSliderTextLineHeight,fontWeight:e.cSliderTextFontWeight,stroke:e.cSliderTextBorderColor,lineWidth:e.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:e.scrollbarTrackFillColor,thumbColor:e.scrollbarThumbFillColor}},hover:{style:{thumbColor:e.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:e.labelFillColor,fontSize:e.labelFontSize,fontFamily:e.fontFamily,stroke:e.labelBorderColor,lineWidth:e.labelBorder},fillColorDark:e.labelFillColorDark,fillColorLight:e.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:e.innerLabelFillColor,fontSize:e.innerLabelFontSize,fontFamily:e.fontFamily,stroke:e.innerLabelBorderColor,lineWidth:e.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:e.overflowLabelFillColor,fontSize:e.overflowLabelFontSize,fontFamily:e.fontFamily,stroke:e.overflowLabelBorderColor,lineWidth:e.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:e.labelLineBorder}},autoRotate:!0}}}var r7={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},r8={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},oe=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],ot=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],oi=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],on=function(e){void 0===e&&(e={});var t=e.backgroundColor,i=e.subColor,n=e.paletteQualitative10,r=void 0===n?oe:n,o=e.paletteQualitative20,s=e.paletteSemanticRed,a=e.paletteSemanticGreen,l=e.paletteSemanticYellow,h=e.paletteSequence,u=e.fontFamily,d=e.brandColor,c=void 0===d?r[0]:d;return{backgroundColor:void 0===t?"transparent":t,brandColor:c,subColor:void 0===i?"rgba(0,0,0,0.05)":i,paletteQualitative10:r,paletteQualitative20:void 0===o?ot:o,paletteSemanticRed:void 0===s?"#F4664A":s,paletteSemanticGreen:void 0===a?"#30BF78":a,paletteSemanticYellow:void 0===l?"#FAAD14":l,paletteSequence:void 0===h?oi:h,fontFamily:void 0===u?'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"':u,axisLineBorderColor:r7[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:r7[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:r7[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:r7[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:r7[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:r7[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:r7[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:c,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:r7[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:r7[100],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:r7[100],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:r7[45],legendPageNavigatorTextFontSize:12,sliderRailFillColor:r7[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:r7[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:r7[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:r7[25],annotationArcBorderColor:r7[15],annotationArcBorder:1,annotationLineBorderColor:r7[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:r7[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:r7[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:r7[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:r7[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:r7[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:r8[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:r7[65],overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:r8[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:r7[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:c,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:r8[100],pointBorderOpacity:1,pointActiveBorderColor:r7[100],pointSelectedBorder:2,pointSelectedBorderColor:r7[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:c,hollowPointBorderOpacity:.95,hollowPointFillColor:r8[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:r7[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:r7[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:c,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:c,areaFillOpacity:.25,areaActiveFillColor:c,areaActiveFillOpacity:.5,areaSelectedFillColor:c,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:c,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:r7[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:r7[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:c,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:r7[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:r7[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:c,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:r8[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:r7[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:r7[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}};function or(e){var t=e.styleSheet,i=(0,ef._T)(e,["styleSheet"]),n=on(void 0===t?{}:t);return(0,em.b$)({},r9(n),i)}on();var oo={default:or({})};function os(e){return(0,em.U2)(oo,(0,em.vl)(e),oo.default)}function oa(e,t,i){var n=i.translate(e),r=i.translate(t);return(0,em.vQ)(n,r)}function ol(e,t,i){var n=i.coordinate,r=i.getYScale(),o=r.field,s=n.invert(t),a=r.invert(s.y);return(0,em.sE)(e,function(e){var t=e[e_];return t[o][0]<=a&&t[o][1]>=a})||e[e.length-1]}var oh=(0,em.HP)(function(e){if(e.isCategory)return 1;for(var t=e.values,i=t.length,n=e.translate(t[0]),r=n,o=0;or&&(r=a)}return(r-n)/(i-1)});function ou(e){for(var t,i,n=(t=(0,em.VO)(e.attributes),(0,em.hX)(t,function(e){return(0,em.FX)(eE,e.type)})),r=0;r(1+s)/2&&(l=a),r.translate(r.invert(l))),R=T[e_][c],L=T[e_][g],N=b[e_][c],I=d.isLinear&&(0,em.kJ)(L);if((0,em.kJ)(R)){for(var _=0;_=A){if(I)(0,em.kJ)(p)||(p=[]),p.push(w);else{p=w;break}}}(0,em.kJ)(p)&&(p=ol(p,e,i))}else{var O=void 0;if(u.isLinear||"timeCat"===u.type){if((A>u.translate(N)||Au.max||AMath.abs(u.translate(O[e_][c])-A)&&(b=O)}var P=oh(i.getXScale());return!p&&Math.abs(u.translate(b[e_][c])-A)<=P/2&&(p=b),p}function oc(e,t,i,n){void 0===i&&(i=""),void 0===n&&(n=!1);var r,o,s,a,l,h,u,d,c,g=e[e_],p=(r=i,o=t.getAttribute("position").getFields(),l=(a=t.scales[s=(0,em.mf)(r)||!r?o[0]:r])?a.getText(g[s]):g[s]||s,(0,em.mf)(r)?r(l,g):l),f=t.tooltipOption,m=t.theme.defaultColor,v=[];function E(t,i){if(n||!(0,em.UM)(i)&&""!==i){var r={title:p,data:g,mappingData:e,name:t,value:i,color:e.color||m,marker:!0};v.push(r)}}if((0,em.Kn)(f)){var _=f.fields,C=f.callback;if(C){var S=_.map(function(t){return e[e_][t]}),y=C.apply(void 0,S),T=(0,ef.pi)({data:e[e_],mappingData:e,title:p,color:e.color||m,marker:!0},y);v.push(T)}else for(var b=t.scales,A=0;A<_.length;A++){var R=_[A];if(!(0,em.UM)(g[R])){var L=b[R];E(ra(L),c=L.getText(g[R]))}}}else u=g[(h=ou(t)).field],c=(0,em.kJ)(u)?u.map(function(e){return h.getText(e)}).join("-"):h.getText(u),E(function(e,t){var i,n=t.getGroupScales();if(n.length&&(i=n[0]),i){var r=i.field;return i.getText(e[r])}return ra(ou(t))}(g,t),c);return v}function og(e,t,i,n){var r=n.showNil,o=[],s=e.dataArray;if(!(0,em.xb)(s)){e.sort(s);for(var a=0;a');T.appendChild(b);var A=eb(T,a,r,o),R=new(function(e){var t=eC[e];if(!t)throw Error("G engine '"+e+"' is not exist, please register it at first.");return t}(d)).Canvas((0,ef.pi)({container:b,pixelRatio:c,localRefresh:p,supportCSSTransform:void 0!==m&&m},A));return(i=e.call(this,{parent:null,canvas:R,backgroundGroup:R.addGroup({zIndex:ev.BG}),middleGroup:R.addGroup({zIndex:ev.MID}),foregroundGroup:R.addGroup({zIndex:ev.FORE}),padding:l,appendPadding:h,visible:void 0===f||f,options:_,limitInPlot:C,theme:S,syncViewPadding:y})||this).onResize=(0,em.Ds)(function(){i.forceFit()},300),i.ele=T,i.canvas=R,i.width=A.width,i.height=A.height,i.autoFit=a,i.localRefresh=p,i.renderer=d,i.wrapperElement=b,i.updateCanvasStyle(),i.bindAutoFit(),i.initDefaultInteractions(E),i}return(0,ef.ZT)(t,e),t.prototype.initDefaultInteractions=function(e){var t=this;(0,em.S6)(e,function(e){t.interaction(e)})},t.prototype.aria=function(e){var t="aria-label";!1===e?this.ele.removeAttribute(t):this.ele.setAttribute(t,e.label)},t.prototype.changeSize=function(e,t){return this.width===e&&this.height===t||(this.emit(M.BEFORE_CHANGE_SIZE),this.width=e,this.height=t,this.canvas.changeSize(e,t),this.render(!0),this.emit(M.AFTER_CHANGE_SIZE)),this},t.prototype.clear=function(){e.prototype.clear.call(this),this.aria(!1)},t.prototype.destroy=function(){var t,i;e.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),(i=(t=this.wrapperElement).parentNode)&&i.removeChild(t),this.wrapperElement=null},t.prototype.changeVisible=function(t){return e.prototype.changeVisible.call(this,t),this.wrapperElement.style.display=t?"":"none",this},t.prototype.forceFit=function(){if(!this.destroyed){var e=eb(this.ele,!0,this.width,this.height),t=e.width,i=e.height;this.changeSize(t,i)}},t.prototype.updateCanvasStyle=function(){ey(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},t.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},t.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},t}(ob),oL=function(){function e(e){this.visible=!0,this.components=[],this.view=e}return e.prototype.clear=function(e){(0,em.S6)(this.components,function(e){e.component.destroy()}),this.components=[]},e.prototype.destroy=function(){this.clear()},e.prototype.getComponents=function(){return this.components},e.prototype.changeVisible=function(e){this.visible!==e&&(this.components.forEach(function(t){e?t.component.show():t.component.hide()}),this.visible=e)},e}(),oN=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isLocked=!1,t}return(0,ef.ZT)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.isVisible=function(){return!1!==this.view.getOptions().tooltip},t.prototype.render=function(){},t.prototype.showTooltip=function(e){if(this.point=e,this.isVisible()){var t=this.view,i=this.getTooltipItems(e);if(!i.length){this.hideTooltip();return}var n=this.getTitle(i),r={x:i[0].x,y:i[0].y};t.emit("tooltip:show",o_.fromData(t,"tooltip:show",(0,ef.pi)({items:i,title:n},e)));var o=this.getTooltipCfg(),s=o.follow,a=o.showMarkers,l=o.showCrosshairs,h=o.showContent,u=o.marker,d=this.items,c=this.title;if((0,em.Xy)(c,n)&&(0,em.Xy)(d,i)?(this.tooltip&&s&&(this.tooltip.update(e),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(t.emit("tooltip:change",o_.fromData(t,"tooltip:change",(0,ef.pi)({items:i,title:n},e))),((0,em.mf)(h)?h(i):h)&&(this.tooltip||this.renderTooltip(),this.tooltip.update((0,em.CD)({},o,{items:this.getItemsAfterProcess(i),title:n},s?e:{})),this.tooltip.show()),a&&this.renderTooltipMarkers(i,u)),this.items=i,this.title=n,l){var g=(0,em.U2)(o,["crosshairs","follow"],!1);this.renderCrosshairs(g?e:r,o)}}},t.prototype.hideTooltip=function(){if(!this.getTooltipCfg().follow){this.point=null;return}var e=this.tooltipMarkersGroup;e&&e.hide();var t=this.xCrosshair,i=this.yCrosshair;t&&t.hide(),i&&i.hide();var n=this.tooltip;n&&n.hide(),this.view.emit("tooltip:hide",o_.fromData(this.view,"tooltip:hide",{})),this.point=null},t.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},t.prototype.unlockTooltip=function(){this.isLocked=!1;var e=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(e.capture)},t.prototype.isTooltipLocked=function(){return this.isLocked},t.prototype.clear=function(){var e=this.tooltip,t=this.xCrosshair,i=this.yCrosshair,n=this.tooltipMarkersGroup;e&&(e.hide(),e.clear()),t&&t.clear(),i&&i.clear(),n&&n.clear(),(null==e?void 0:e.get("customContent"))&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},t.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},t.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},t.prototype.changeVisible=function(e){if(this.visible!==e){var t=this.tooltip,i=this.tooltipMarkersGroup,n=this.xCrosshair,r=this.yCrosshair;e?(t&&t.show(),i&&i.show(),n&&n.show(),r&&r.show()):(t&&t.hide(),i&&i.hide(),n&&n.hide(),r&&r.hide()),this.visible=e}},t.prototype.getTooltipItems=function(e){var t=this.findItemsFromView(this.view,e);if(t.length){t=(0,em.xH)(t);for(var i=0,n=t;i1){for(var u=t[0],d=Math.abs(e.y-u[0].y),c=0,g=t;c'+n+"":n}})},t.prototype.getTitle=function(e){var t=e[0].title||e[0].name;return this.title=t,t},t.prototype.renderTooltip=function(){var e=this.view.getCanvas(),t={start:{x:0,y:0},end:{x:e.get("width"),y:e.get("height")}},i=this.getTooltipCfg(),n=new nF((0,ef.pi)((0,ef.pi)({parent:e.get("el").parentNode,region:t},i),{visible:!1,crosshairs:null}));n.init(),this.tooltip=n},t.prototype.renderTooltipMarkers=function(e,t){for(var i=this.getTooltipMarkersGroup(),n=0;n-1)return;i.push(e),("active"===e||"selected"===e)&&(null==o||o.toFront())}else{if(-1===a)return;i.splice(a,1),("active"===e||"selected"===e)&&(this.geometry.zIndexReversed?o.setZIndex(this.geometry.elements.length-this.elementIndex):o.setZIndex(this.elementIndex))}var l=n.drawShape(s,r,this.getOffscreenGroup());i.length?this.syncShapeStyle(o,l,i,null):this.syncShapeStyle(o,l,["reset"],null),l.remove(!0);var h={state:e,stateStatus:t,element:this,target:this.container};this.container.emit("statechange",h),iu(this.shape,"statechange",h)},t.prototype.clearStates=function(){var e=this,t=this.states;(0,em.S6)(t,function(t){e.setState(t,!1)}),this.states=[]},t.prototype.hasState=function(e){return this.states.includes(e)},t.prototype.getStates=function(){return this.states},t.prototype.getData=function(){return this.data},t.prototype.getModel=function(){return this.model},t.prototype.getBBox=function(){var e=this.shape,t=this.labelShape,i={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return e&&(i=e.getCanvasBBox()),t&&t.forEach(function(e){var t=e.getCanvasBBox();i.x=Math.min(t.x,i.x),i.y=Math.min(t.y,i.y),i.minX=Math.min(t.minX,i.minX),i.minY=Math.min(t.minY,i.minY),i.maxX=Math.max(t.maxX,i.maxX),i.maxY=Math.max(t.maxY,i.maxY)}),i.width=i.maxX-i.minX,i.height=i.maxY-i.minY,i},t.prototype.getStatesStyle=function(){if(!this.statesStyle){var e=this.shapeType,t=this.geometry,i=this.shapeFactory,n=t.stateOption,r=i.defaultShapeType,o=i.theme[e]||i.theme[r];this.statesStyle=(0,em.b$)({},o,n)}return this.statesStyle},t.prototype.getStateStyle=function(e,t){var i=this.getStatesStyle(),n=(0,em.U2)(i,[e,"style"],{}),r=n[t]||n;return(0,em.mf)(r)?r(this):r},t.prototype.getAnimateCfg=function(e){var t=this,i=this.animate;if(i){var n=i[e];return n?(0,ef.pi)((0,ef.pi)({},n),{callback:function(){var e;(0,em.mf)(n.callback)&&n.callback(),null===(e=t.geometry)||void 0===e||e.emit(k.AFTER_DRAW_ANIMATE)}}):n}return null},t.prototype.drawShape=function(e,t){void 0===t&&(t=!1);var i,n=this.shapeFactory,r=this.container,o=this.shapeType;if(this.shape=n.drawShape(o,e,r),this.shape){this.setShapeInfo(this.shape,e);var s=this.shape.cfg.name;s?(0,em.HD)(s)&&(this.shape.cfg.name=["element",s]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var a=t?"enter":"appear",l=this.getAnimateCfg(a);l&&(null===(i=this.geometry)||void 0===i||i.emit(k.BEFORE_DRAW_ANIMATE),oP(this.shape,l,{coordinate:n.coordinate,toAttrs:(0,ef.pi)({},this.shape.attr())}))}},t.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var e=this.container.getGroupBase();this.offscreenGroup=new e({})}return this.offscreenGroup},t.prototype.setShapeInfo=function(e,t){var i=this;e.cfg.origin=t,e.cfg.element=this,e.isGroup()&&e.get("children").forEach(function(e){i.setShapeInfo(e,t)})},t.prototype.syncShapeStyle=function(e,t,i,n,r){var o,s=this;if(void 0===i&&(i=[]),void 0===r&&(r=0),e&&t){var a=e.get("clipShape"),l=t.get("clipShape");if(this.syncShapeStyle(a,l,i,n),e.isGroup())for(var h=e.get("children"),u=t.get("children"),d=0;d=s[h]?1:0,c=u>Math.PI?1:0,g=i.convert(a),p=ri(i,g);if(p>=.5){if(u===2*Math.PI){var f={x:(a.x+s.x)/2,y:(a.y+s.y)/2},m=i.convert(f);l.push(["A",p,p,0,c,d,m.x,m.y]),l.push(["A",p,p,0,c,d,g.x,g.y])}else l.push(["A",p,p,0,c,d,g.x,g.y])}return l}(i,e,a)):n.push(rR(e,a));break;case"a":n.push(rL(e,a));break;default:n.push(e)}}),r=n,(0,em.S6)(r,function(e,t){if("a"===e[0].toLowerCase()){var i=r[t-1],n=r[t+1];n&&"a"===n[0].toLowerCase()?i&&"l"===i[0].toLowerCase()&&(i[0]="M"):i&&"a"===i[0].toLowerCase()&&n&&"l"===n[0].toLowerCase()&&(n[0]="M")}}),l=n):(o=l,s=[],(0,em.S6)(o,function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":s.push(rR(e,a));break;case"a":s.push(rL(e,a));break;default:s.push(e)}}),l=s),l},parsePoint:function(e){return this.coordinate.convert(e)},parsePoints:function(e){var t=this.coordinate;return e.map(function(e){return t.convert(e)})},draw:function(e,t){}},oY={};function oK(e,t){var i=(0,em.jC)(e),n=(0,ef.pi)((0,ef.pi)((0,ef.pi)({},oG),t),{geometryType:e});return oY[i]=n,n}function o$(e,t,i){var n=oY[(0,em.jC)(e)],r=(0,ef.pi)((0,ef.pi)({},oz),i);return n[t]=r,r}function oX(e){return oY[(0,em.jC)(e)]}function oj(e,t){return(0,em.G)(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],function(i){return!(0,em.Xy)(e[i],t[i])})}function oq(e){return(0,em.kJ)(e)?e:e.split("*")}function oZ(e,t){for(var i=[],n=[],r=[],o=new Map,s=0;s=0?t:i<=0?i:0},t.prototype.createAttrOption=function(e,t,i){if((0,em.UM)(t)||(0,em.Kn)(t))(0,em.Kn)(t)&&(0,em.Xy)(Object.keys(t),["values"])?(0,em.t8)(this.attributeOption,e,{fields:t.values}):(0,em.t8)(this.attributeOption,e,t);else{var n={};(0,em.hj)(t)?n.values=[t]:n.fields=oq(t),i&&((0,em.mf)(i)?n.callback=i:n.values=i),(0,em.t8)(this.attributeOption,e,n)}},t.prototype.initAttributes=function(){var e=this,t=this.attributes,i=this.attributeOption,n=this.theme,r=this.shapeType;this.groupScales=[];var o={},s=function(s){if(i.hasOwnProperty(s)){var a=i[s];if(!a)return{value:void 0};var l=(0,ef.pi)({},a),h=l.callback,u=l.values,d=l.fields,c=(void 0===d?[]:d).map(function(t){var i=e.scales[t];return i.isCategory&&!o[t]&&eE.includes(s)&&(e.groupScales.push(i),o[t]=!0),i});l.scales=c,"position"!==s&&1===c.length&&"identity"===c[0].type?l.values=c[0].values:h||u||("size"===s?l.values=n.sizes:"shape"===s?l.values=n.shapes[r]||[]:"color"===s&&(c.length?l.values=c[0].values.length<=10?n.colors10:n.colors20:l.values=n.colors10));var g=t3(s);t[s]=new g(l)}};for(var a in i){var l=s(a);if("object"==typeof l)return l.value}},t.prototype.processData=function(e){this.hasSorted=!1;for(var t=this.getAttribute("position").scales.filter(function(e){return e.isCategory}),i=this.groupData(e),n=[],r=0,o=i.length;ro&&(o=h)}var u=this.scaleDefs,d={};re.max&&!(0,em.U2)(u,[n,"max"])&&(d.max=o),e.change(d)},t.prototype.beforeMapping=function(e){if(this.sortable&&this.sort(e),this.generatePoints)for(var t=0,i=e.length;t1)for(var u=0;u=t.getCount()&&!e.destroyed&&t.add(e)})})(d,h[t],{data:o,origin:s,animateCfg:u,coordinate:a}),n.shapesMap[t]=d}else{r.add(e);var c=(0,em.U2)(e.get("animateCfg"),i?"enter":"appear");c&&oP(e,c,{toAttrs:(0,ef.pi)({},e.attr()),coordinate:e.get("coordinate")})}delete l[t]}}),(0,em.S6)(l,function(e){var t=(0,em.U2)(e.get("animateCfg"),"leave");t?oP(e,t,{toAttrs:null,coordinate:e.get("coordinate")}):e.remove(!0)}),this.lastShapesMap=h,o.destroy()},e.prototype.clear=function(){this.container.clear(),this.shapesMap={},this.lastShapesMap={}},e.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null,this.lastShapesMap=null},e.prototype.renderLabel=function(e,t){var i,n=e.id,r=e.elementId,o=e.data,s=e.mappingData,a=e.coordinate,l=e.animate,h=e.content,u={id:n,elementId:r,data:o,origin:(0,ef.pi)((0,ef.pi)({},s),{data:s[e_]}),coordinate:a},d=t.addGroup((0,ef.pi)({name:"label",animateCfg:!1!==this.animate&&null!==l&&!1!==l&&(0,em.b$)({},this.animate,l)},u));if(h.isGroup&&h.isGroup()||h.isShape&&h.isShape()){var c=h.getCanvasBBox(),g=c.width,p=c.height,f=(0,em.U2)(e,"textAlign","left"),m=e.x,v=e.y-p/2;"center"===f?m-=g/2:("right"===f||"end"===f)&&(m-=g),o0(h,m,v),i=h,d.add(h)}else{var E=(0,em.U2)(e,["style","fill"]);i=d.addShape("text",(0,ef.pi)({attrs:(0,ef.pi)((0,ef.pi)({x:e.x,y:e.y,textAlign:e.textAlign,textBaseline:(0,em.U2)(e,"textBaseline","middle"),text:e.content},e.style),{fill:(0,em.Ft)(E)?e.color:E})},u))}e.rotate&&o1(i,e.rotate),this.shapesMap[n]=d},e.prototype.doLayout=function(e,t){var i=this;if(this.layout){var n=(0,em.kJ)(this.layout)?this.layout:[this.layout];(0,em.S6)(n,function(n){var r=oH[(0,em.U2)(n,"type","").toLowerCase()];if(r){var o=[],s=[];(0,em.S6)(i.shapesMap,function(e,i){o.push(e),s.push(t[e.get("elementId")])}),r(e,o,s,i.region,n.cfg)}})}},e.prototype.renderLabelLine=function(e){var t=this;(0,em.S6)(e,function(e){var i=(0,em.U2)(e,"coordinate");if(e&&i){var n=i.getCenter(),r=i.getRadius();if(e.labelLine){var o=(0,em.U2)(e,"labelLine",{}),s=e.id,a=o.path;if(!a){var l=n2(n.x,n.y,r,e.angle);a=[["M",l.x,l.y],["L",e.x,e.y]]}var h=t.shapesMap[s];h.destroyed||h.addShape("path",{capture:!1,attrs:(0,ef.pi)({path:a,stroke:e.color?e.color:(0,em.U2)(e,["style","fill"],"#000"),fill:null},o.style),id:s,origin:e.mappingData,data:e.data,coordinate:e.coordinate})}}})},e.prototype.renderLabelBackground=function(e){var t=this;(0,em.S6)(e,function(e){var i=(0,em.U2)(e,"coordinate"),n=(0,em.U2)(e,"background");if(n&&i){var r=e.id,o=t.shapesMap[r];if(!o.destroyed){var s=o.getChildren()[0];if(s){var a=o4(o,e,n.padding),l=a.rotation,h=(0,ef._T)(a,["rotation"]),u=o.addShape("rect",{attrs:(0,ef.pi)((0,ef.pi)({},h),n.style||{}),id:r,origin:e.mappingData,data:e.data,coordinate:e.coordinate});if(u.setZIndex(-1),l){var d=s.getMatrix();u.setMatrix(d)}}}}})},e.prototype.createOffscreenGroup=function(){return new(this.container.getGroupBase())({})},e.prototype.adjustLabel=function(e){var t=this;(0,em.S6)(e,function(e){if(e){var i=e.id,n=t.shapesMap[i];if(!n.destroyed){var r=n.findAll(function(e){return"path"!==e.get("type")});(0,em.S6)(r,function(t){t&&(e.offsetX&&t.attr("x",t.attr("x")+e.offsetX),e.offsetY&&t.attr("y",t.attr("y")+e.offsetY))})}}})},e}();function o6(e){var t=0;return(0,em.S6)(e,function(e){t+=e}),t/e.length}var o3=function(){function e(e){this.geometry=e}return e.prototype.getLabelItems=function(e){var t=this,i=[],n=this.getLabelCfgs(e);return(0,em.S6)(e,function(e,r){var o=n[r];if(!o||(0,em.UM)(e.x)||(0,em.UM)(e.y)){i.push(null);return}var s=(0,em.kJ)(o.content)?o.content:[o.content];o.content=s;var a=s.length;(0,em.S6)(s,function(n,r){if((0,em.UM)(n)||""===n){i.push(null);return}var s=(0,ef.pi)((0,ef.pi)({},o),t.getLabelPoint(o,e,r));s.textAlign||(s.textAlign=t.getLabelAlign(s,r,a)),s.offset<=0&&(s.labelLine=null),i.push(s)})}),i},e.prototype.render=function(e,t){void 0===t&&(t=!1);var i=this.getLabelItems(e),n=this.getLabelsRenderer(),r=this.getGeometryShapes();n.render(i,r,t)},e.prototype.clear=function(){var e=this.labelsRenderer;e&&e.clear()},e.prototype.destroy=function(){var e=this.labelsRenderer;e&&e.destroy(),this.labelsRenderer=null},e.prototype.getCoordinate=function(){return this.geometry.coordinate},e.prototype.getDefaultLabelCfg=function(e,t){var i=this.geometry,n=i.type,r=i.theme;return"polygon"===n||"interval"===n&&"middle"===t||e<0&&!["line","point","path"].includes(n)?(0,em.U2)(r,"innerLabels",{}):(0,em.U2)(r,"labels",{})},e.prototype.getThemedLabelCfg=function(e){var t=this.geometry,i=this.getDefaultLabelCfg(),n=t.type,r=t.theme;return"polygon"===n||e.offset<0&&!["line","point","path"].includes(n)?(0,em.b$)({},i,r.innerLabels,e):(0,em.b$)({},i,r.labels,e)},e.prototype.setLabelPosition=function(e,t,i,n){},e.prototype.getLabelOffset=function(e){var t=this.getCoordinate(),i=this.getOffsetVector(e);return t.isTransposed?i[0]:i[1]},e.prototype.getLabelOffsetPoint=function(e,t,i){var n=e.offset,r=this.getCoordinate().isTransposed,o=r?"x":"y",s=r?1:-1,a={x:0,y:0};return t>0||1===i?a[o]=n*s:a[o]=-(n*s*1),a},e.prototype.getLabelPoint=function(e,t,i){var n=this.getCoordinate(),r=e.content.length;function o(t,i,n){void 0===n&&(n=!1);var r=t;return(0,em.kJ)(r)&&(r=1===e.content.length?n?o6(r):r.length<=2?r[t.length-1]:o6(r):r[i]),r}var s={content:e.content[i],x:0,y:0,start:{x:0,y:0},color:"#fff"},a=(0,em.kJ)(t.shape)?t.shape[0]:t.shape,l="funnel"===a||"pyramid"===a;if("polygon"===this.geometry.type){var h=function(e,t){if((0,em.hj)(e)&&(0,em.hj)(t))return[e,t];if(n0(e)||n0(t))return[n1(e),n1(t)];for(var i,n,r=-1,o=0,s=0,a=e.length-1,l=0;++r1&&0===t&&("right"===n?n="left":"left"===n&&(n="right"))}return n},e.prototype.getLabelId=function(e){var t=this.geometry,i=t.type,n=t.getXScale(),r=t.getYScale(),o=e[e_],s=t.getElementId(e);return"line"===i||"area"===i?s+=" "+o[n.field]:"path"===i&&(s+=" "+o[n.field]+"-"+o[r.field]),s},e.prototype.getLabelsRenderer=function(){var e=this.geometry,t=e.labelsContainer,i=e.labelOption,n=e.canvasRegion,r=e.animateOption,o=this.geometry.coordinate,s=this.labelsRenderer;return s||(s=new o5({container:t,layout:(0,em.U2)(i,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=s),s.region=n,s.animate=!!r&&ok("label",o),s},e.prototype.getLabelCfgs=function(e){var t=this,i=this.geometry,n=i.labelOption,r=i.scales,o=i.coordinate,s=n.fields,a=n.callback,l=n.cfg,h=s.map(function(e){return r[e]}),u=[];return(0,em.S6)(e,function(e,i){var n,r=e[e_],d=t.getLabelText(r,h);if(a){var c=s.map(function(e){return r[e]});if(n=a.apply(void 0,c),(0,em.UM)(n)){u.push(null);return}}var g=(0,ef.pi)((0,ef.pi)({id:t.getLabelId(e),elementId:t.geometry.getElementId(e),data:r,mappingData:e,coordinate:o},l),n);(0,em.mf)(g.position)&&(g.position=g.position(r,e,i));var p=t.getLabelOffset(g.offset||0),f=t.getDefaultLabelCfg(p,g.position);(g=(0,em.b$)({},f,g)).offset=t.getLabelOffset(g.offset||0);var m=g.content;(0,em.mf)(m)?g.content=m(r,e,i):(0,em.o8)(m)&&(g.content=d[0]),u.push(g)}),u},e.prototype.getLabelText=function(e,t){var i=[];return(0,em.S6)(t,function(t){var n=e[t.field];n=(0,em.kJ)(n)?n.map(function(e){return t.getText(e)}):t.getText(n),(0,em.UM)(n)||""===n?i.push(null):i.push(n)}),i},e.prototype.getOffsetVector=function(e){void 0===e&&(e=0);var t=this.getCoordinate(),i=0;return(0,em.hj)(e)&&(i=e),t.isTransposed?t.applyMatrix(i,0):t.applyMatrix(0,i)},e.prototype.getGeometryShapes=function(){var e=this.geometry,t={};return(0,em.S6)(e.elementsMap,function(e,i){t[i]=e.shape}),(0,em.S6)(e.getOffscreenGroup().getChildren(),function(i){t[e.getElementId(i.get("origin").mappingData)]=i}),t},e}();function o9(e,t,i){if(!e)return i;if(e.callback&&e.callback.length>1){var n,r=Array(e.callback.length-1).fill("");n=e.mapping.apply(e,(0,ef.ev)([t],r,!1)).join("")}else n=e.mapping(t).join("");return n||i}var o7={hexagon:function(e,t,i){var n=i/2*Math.sqrt(3);return[["M",e,t-i],["L",e+n,t-i/2],["L",e+n,t+i/2],["L",e,t+i],["L",e-n,t+i/2],["L",e-n,t-i/2],["Z"]]},bowtie:function(e,t,i){var n=i-1.5;return[["M",e-i,t-n],["L",e+i,t+n],["L",e+i,t-n],["L",e-i,t+n],["Z"]]},cross:function(e,t,i){return[["M",e-i,t-i],["L",e+i,t+i],["M",e+i,t-i],["L",e-i,t+i]]},tick:function(e,t,i){return[["M",e-i/2,t-i],["L",e+i/2,t-i],["M",e,t-i],["L",e,t+i],["M",e-i/2,t+i],["L",e+i/2,t+i]]},plus:function(e,t,i){return[["M",e-i,t],["L",e+i,t],["M",e,t-i],["L",e,t+i]]},hyphen:function(e,t,i){return[["M",e-i,t],["L",e+i,t]]},line:function(e,t,i){return[["M",e,t-i],["L",e,t+i]]}},o8=["line","cross","tick","plus","hyphen"];function se(e){var t=e.symbol;(0,em.HD)(t)&&o7[t]&&(e.symbol=o7[t])}function st(e){return e.startsWith(x.LEFT)||e.startsWith(x.RIGHT)?"vertical":"horizontal"}function si(e,t,i,n,r){var o=i.getScale(i.type);if(o.isCategory){var s=o.field,a=t.getAttribute("color"),l=t.getAttribute("shape"),h=e.getTheme().defaultColor,u=t.coordinate.isPolar;return o.getTicks().map(function(i,d){var c,g,p,f=i.text,m=i.value,v=o.invert(m),E=0===e.filterFieldData(s,[((p={})[s]=v,p)]).length;(0,em.S6)(e.views,function(e){var t;e.filterFieldData(s,[((t={})[s]=v,t)]).length||(E=!0)});var _=o9(a,v,h),C=o9(l,v,"point"),S=t.getShapeMarker(C,{color:_,isInPolar:u}),y=r;return(0,em.mf)(y)&&(y=y(f,d,(0,ef.pi)({name:f,value:v},(0,em.b$)({},n,S)))),!function(e,t){var i=e.symbol;if((0,em.HD)(i)&&-1!==o8.indexOf(i)){var n=(0,em.U2)(e,"style",{}),r=(0,em.U2)(n,"lineWidth",1),o=n.stroke||n.fill||t;e.style=(0,em.b$)({},e.style,{lineWidth:r,stroke:o,fill:null})}}(S=(0,em.b$)({},n,S,n7((0,ef.pi)({},y),["style"])),_),y&&y.style&&(S.style=(c=S.style,g=y.style,(0,em.mf)(g)?g(c):(0,em.b$)({},c,g))),se(S),{id:v,name:f,value:v,marker:S,unchecked:E}})}return[]}function sn(e,t){var i=(0,em.U2)(e,["components","legend"],{});return(0,em.b$)({},(0,em.U2)(i,["common"],{}),(0,em.b$)({},(0,em.U2)(i,[t],{})))}var sr={getLegendItems:si,translate:o0,rotate:o1,zoom:function(e,t){var i=e.getBBox(),n=(i.minX+i.maxX)/2,r=(i.minY+i.maxY)/2;e.applyToMatrix([n,r,1]);var o=oQ(e.getMatrix(),[["t",-n,-r],["s",t,t],["t",n,r]]);e.setMatrix(o)},transform:oQ,getAngle:n6,getSectorPath:n4,polarToCartesian:n2,getDelegationObject:rM,getTooltipItems:oc,getMappingValue:o9},so={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},ss={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},sa=(void 0===d&&(d={}),c=d.backgroundColor,g=d.subColor,f=void 0===(p=d.paletteQualitative10)?["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"]:p,m=d.paletteQualitative20,v=d.paletteSemanticRed,E=d.paletteSemanticGreen,_=d.paletteSemanticYellow,C=d.paletteSequence,S=d.fontFamily,{backgroundColor:void 0===c?"#141414":c,brandColor:void 0===(y=d.brandColor)?f[0]:y,subColor:void 0===g?"rgba(255,255,255,0.05)":g,paletteQualitative10:f,paletteQualitative20:void 0===m?["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"]:m,paletteSemanticRed:void 0===v?"#F4664A":v,paletteSemanticGreen:void 0===E?"#30BF78":E,paletteSemanticYellow:void 0===_?"#FAAD14":_,paletteSequence:void 0===C?["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"]:C,fontFamily:void 0===S?'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"':S,axisLineBorderColor:ss[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:ss[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:ss[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:ss[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:ss[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:ss[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:ss[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:"#5B8FF9",legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:ss[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:ss[45],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:ss[45],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:ss[65],legendPageNavigatorTextFontSize:12,sliderRailFillColor:ss[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:ss[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:so[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:so[25],annotationArcBorderColor:ss[15],annotationArcBorder:1,annotationLineBorderColor:ss[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:ss[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:ss[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:ss[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:ss[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:ss[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:so[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:ss[65],overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:so[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:ss[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:"#5B8FF9",pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:so[100],pointBorderOpacity:1,pointActiveBorderColor:ss[100],pointSelectedBorder:2,pointSelectedBorderColor:ss[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:"#5B8FF9",hollowPointBorderOpacity:.95,hollowPointFillColor:so[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:ss[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:ss[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:"#5B8FF9",lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:"#5B8FF9",areaFillOpacity:.25,areaActiveFillColor:"#5B8FF9",areaActiveFillOpacity:.5,areaSelectedFillColor:"#5B8FF9",areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:"#5B8FF9",hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:ss[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:ss[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:"#5B8FF9",intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:ss[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:ss[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:"#5B8FF9",hollowIntervalBorderOpacity:1,hollowIntervalFillColor:so[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:ss[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:ss[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3});function sl(e,t,i,n){var r=e-i,o=t-n;return Math.sqrt(r*r+o*o)}function sh(e,t,i,n,r,o){return r>=e&&r<=e+i&&o>=t&&o<=t+n}function su(e,t){return!(t.minX>e.maxX||t.maxXe.maxY||t.maxY1&&(i*=Math.sqrt(g),n*=Math.sqrt(g));var p=i*i*(c*c)+n*n*(d*d),f=p?Math.sqrt((i*i*(n*n)-p)/p):1;o===s&&(f*=-1),isNaN(f)&&(f=0);var m=n?f*i*c/n:0,v=i?-(f*n)*d/i:0,E=(a+h)/2+Math.cos(r)*m-Math.sin(r)*v,_=(l+u)/2+Math.sin(r)*m+Math.cos(r)*v,C=[(d-m)/i,(c-v)/n],S=[(-1*d-m)/i,(-1*c-v)/n],y=s_([1,0],C),T=s_(C,S);return -1>=sE(C,S)&&(T=Math.PI),sE(C,S)>=1&&(T=0),0===s&&T>0&&(T-=2*Math.PI),1===s&&T<0&&(T+=2*Math.PI),{cx:E,cy:_,rx:sd(e,[h,u])?0:i,ry:sd(e,[h,u])?0:n,startAngle:y,endAngle:y+T,xRotation:r,arcFlag:o,sweepFlag:s}}var sS=Math.sin,sy=Math.cos,sT=Math.atan2,sb=Math.PI;function sA(e,t,i,n,r,o,s){var a=t.stroke,l=t.lineWidth,h=sT(n-o,i-r),u=new s0({type:"path",canvas:e.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*sy(sb/6)+","+10*sS(sb/6)+" L0,0 L"+10*sy(sb/6)+",-"+10*sS(sb/6),stroke:a,lineWidth:l}});u.translate(r,o),u.rotateAtPoint(r,o,h),e.set(s?"startArrowShape":"endArrowShape",u)}function sR(e,t,i,n,r,o,s){var a=t.startArrow,l=t.endArrow,h=t.stroke,u=t.lineWidth,d=s?a:l,c=d.d,g=d.fill,p=d.stroke,f=d.lineWidth,m=(0,ef._T)(d,["d","fill","stroke","lineWidth"]),v=sT(n-o,i-r);c&&(r-=sy(v)*c,o-=sS(v)*c);var E=new s0({type:"path",canvas:e.get("canvas"),isArrowShape:!0,attrs:(0,ef.pi)((0,ef.pi)({},m),{stroke:p||h,lineWidth:f||u,fill:g})});E.translate(r,o),E.rotateAtPoint(r,o,v),e.set(s?"startArrowShape":"endArrowShape",E)}function sL(e,t,i,n,r){var o=sT(n-t,i-e);return{dx:sy(o)*r,dy:sS(o)*r}}function sN(e,t,i,n,r,o){"object"==typeof t.startArrow?sR(e,t,i,n,r,o,!0):t.startArrow?sA(e,t,i,n,r,o,!0):e.set("startArrowShape",null)}function sI(e,t,i,n,r,o){"object"==typeof t.endArrow?sR(e,t,i,n,r,o,!1):t.endArrow?sA(e,t,i,n,r,o,!1):e.set("startArrowShape",null)}var sw={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function sO(e,t){var i=t.attr();for(var n in i){var r=i[n],o=sw[n]?sw[n]:n;"matrix"===o&&r?e.transform(r[0],r[1],r[3],r[4],r[6],r[7]):"lineDash"===o&&e.setLineDash?(0,em.kJ)(r)&&e.setLineDash(r):("strokeStyle"===o||"fillStyle"===o?r=function(e,t,i){var n,r,o,s,a,l,h,u,d,c,g,p=t.getBBox();if(isNaN(p.x)||isNaN(p.y)||isNaN(p.width)||isNaN(p.height))return i;if((0,em.HD)(i)){if("("===i[1]||"("===i[2]){if("l"===i[0])return s=parseFloat((o=sc.exec(i))[1])%360*(Math.PI/180),a=o[2],l=t.getBBox(),s>=0&&s<.5*Math.PI?(n={x:l.minX,y:l.minY},r={x:l.maxX,y:l.maxY}):.5*Math.PI<=s&&sC?_:C,R=_>C?1:_/C,L=_>C?C/_:1;t.translate(v,E),t.rotate(T),t.scale(R,L),t.arc(0,0,A,S,y,1-b),t.scale(1/R,1/L),t.rotate(-T),t.translate(-v,-E)}break;case"Z":t.closePath()}if("Z"===c)a=l;else{var N=d.length;a=[d[N-2],d[N-1]]}}}}function sk(e,t){var i=e.get("canvas");i&&("remove"===t&&(e._cacheCanvasBBox=e.get("cacheCanvasBBox")),e.get("hasChanged")||(e.set("hasChanged",!0),!(e.cfg.parent&&e.cfg.parent.get("hasChanged"))&&(i.refreshElement(e,t,i),i.get("autoDraw")&&i.draw())))}var sP=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.onCanvasChange=function(e){sk(this,e)},t.prototype.getShapeBase=function(){return eu},t.prototype.getGroupBase=function(){return t},t.prototype._applyClip=function(e,t){t&&(e.save(),sO(e,t),t.createPath(e),e.restore(),e.clip(),t._afterDraw())},t.prototype.cacheCanvasBBox=function(){var e=this.cfg.children,t=[],i=[];(0,em.S6)(e,function(e){var n=e.cfg.cacheCanvasBBox;n&&e.cfg.isInView&&(t.push(n.minX,n.maxX),i.push(n.minY,n.maxY))});var n=null;if(t.length){var r=(0,em.VV)(t),o=(0,em.Fp)(t),s=(0,em.VV)(i),a=(0,em.Fp)(i);n={minX:r,minY:s,x:r,y:s,maxX:o,maxY:a,width:o-r,height:a-s};var l=this.cfg.canvas;if(l){var h=l.getViewRange();this.set("isInView",su(n,h))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",n)},t.prototype.draw=function(e,t){var i=this.cfg.children,n=!t||this.cfg.refresh;i.length&&n&&(e.save(),sO(e,this),this._applyClip(e,this.getClip()),sx(e,i,t),e.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},t.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},t}(eL.AbstractGroup),sF=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},t.prototype.getShapeBase=function(){return eu},t.prototype.getGroupBase=function(){return sP},t.prototype.onCanvasChange=function(e){sk(this,e)},t.prototype.calculateBBox=function(){var e=this.get("type"),t=this.getHitLineWidth(),i=(0,eL.getBBoxMethod)(e)(this),n=t/2,r=i.x-n,o=i.y-n,s=i.x+i.width+n,a=i.y+i.height+n;return{x:r,minX:r,y:o,minY:o,width:i.width+t,height:i.height+t,maxX:s,maxY:a}},t.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},t.prototype.isStroke=function(){return!!this.attrs.stroke},t.prototype._applyClip=function(e,t){t&&(e.save(),sO(e,t),t.createPath(e),e.restore(),e.clip(),t._afterDraw())},t.prototype.draw=function(e,t){var i=this.cfg.clipShape;if(t){if(!1===this.cfg.refresh){this.set("hasChanged",!1);return}if(!su(t,this.getCanvasBBox())){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}e.save(),sO(e,this),this._applyClip(e,i),this.drawPath(e),e.restore(),this._afterDraw()},t.prototype.getCanvasViewBox=function(){var e=this.cfg.canvas;return e?e.getViewRange():null},t.prototype.cacheCanvasBBox=function(){var e=this.getCanvasViewBox();if(e){var t=this.getCanvasBBox(),i=su(t,e);this.set("isInView",i),i?this.set("cacheCanvasBBox",t):this.set("cacheCanvasBBox",null)}},t.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},t.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},t.prototype.drawPath=function(e){this.createPath(e),this.strokeAndFill(e),this.afterDrawPath(e)},t.prototype.fill=function(e){e.fill()},t.prototype.stroke=function(e){e.stroke()},t.prototype.strokeAndFill=function(e){var t=this.attrs,i=t.lineWidth,n=t.opacity,r=t.strokeOpacity,o=t.fillOpacity;this.isFill()&&((0,em.UM)(o)||1===o?this.fill(e):(e.globalAlpha=o,this.fill(e),e.globalAlpha=n)),this.isStroke()&&i>0&&((0,em.UM)(r)||1===r||(e.globalAlpha=r),this.stroke(e)),this.afterDrawPath(e)},t.prototype.createPath=function(e){},t.prototype.afterDrawPath=function(e){},t.prototype.isInShape=function(e,t){var i=this.isStroke(),n=this.isFill(),r=this.getHitLineWidth();return this.isInStrokeOrPath(e,t,i,n,r)},t.prototype.isInStrokeOrPath=function(e,t,i,n,r){return!1},t.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var e=this.attrs;return e.lineWidth+e.lineAppendWidth},t}(eL.AbstractShape),sB=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,r:0})},t.prototype.isInStrokeOrPath=function(e,t,i,n,r){var o=this.attr(),s=o.x,a=o.y,l=o.r,h=r/2,u=sl(s,a,e,t);return n&&i?u<=l+h:n?u<=l:!!i&&u>=l-h&&u<=l+h},t.prototype.createPath=function(e){var t=this.attr(),i=t.x,n=t.y,r=t.r;e.beginPath(),e.arc(i,n,r,0,2*Math.PI,!1),e.closePath()},t}(sF),sU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,rx:0,ry:0})},t.prototype.isInStrokeOrPath=function(e,t,i,n,r){var o,s,a,l,h,u,d=this.attr(),c=r/2,g=d.x,p=d.y,f=d.rx,m=d.ry,v=(e-g)*(e-g),E=(t-p)*(t-p);return n&&i?1>=v/((o=f+c)*o)+E/((s=m+c)*s):n?1>=v/(f*f)+E/(m*m):!!i&&v/((a=f-c)*a)+E/((l=m-c)*l)>=1&&1>=v/((h=f+c)*h)+E/((u=m+c)*u)},t.prototype.createPath=function(e){var t=this.attr(),i=t.x,n=t.y,r=t.rx,o=t.ry;if(e.beginPath(),e.ellipse)e.ellipse(i,n,r,o,0,0,2*Math.PI,!1);else{var s=r>o?r:o,a=r>o?1:r/o,l=r>o?o/r:1;e.save(),e.translate(i,n),e.scale(a,l),e.arc(0,0,s,0,2*Math.PI),e.restore(),e.closePath()}},t}(sF);function sH(e){return e instanceof HTMLElement&&(0,em.HD)(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase()}var sV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,width:0,height:0})},t.prototype.initAttrs=function(e){this._setImage(e.img)},t.prototype.isStroke=function(){return!1},t.prototype.isOnlyHitBox=function(){return!0},t.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var e=this.get("canvas");e?e.draw():this.createPath(this.get("context"))}},t.prototype._setImage=function(e){var t=this,i=this.attrs;if((0,em.HD)(e)){var n=new Image;n.onload=function(){if(t.destroyed)return!1;t.attr("img",n),t.set("loading",!1),t._afterLoading();var e=t.get("callback");e&&e.call(t)},n.crossOrigin="Anonymous",n.src=e,this.set("loading",!0)}else e instanceof Image?(i.width||(i.width=e.width),i.height||(i.height=e.height)):sH(e)&&(i.width||(i.width=Number(e.getAttribute("width"))),i.height||(i.height,e.getAttribute("height")))},t.prototype.onAttrChange=function(t,i,n){e.prototype.onAttrChange.call(this,t,i,n),"img"===t&&this._setImage(i)},t.prototype.createPath=function(e){if(this.get("loading")){this.set("toDraw",!0),this.set("context",e);return}var t=this.attr(),i=t.x,n=t.y,r=t.width,o=t.height,s=t.sx,a=t.sy,l=t.swidth,h=t.sheight,u=t.img;(u instanceof Image||sH(u))&&((0,em.UM)(s)||(0,em.UM)(a)||(0,em.UM)(l)||(0,em.UM)(h)?e.drawImage(u,i,n,r,o):e.drawImage(u,s,a,l,h,i,n,r,o))},t}(sF),sW=i(32793);function sG(e,t,i,n,r,o,s){var a=Math.min(e,i),l=Math.max(e,i),h=Math.min(t,n),u=Math.max(t,n),d=r/2;return o>=a-d&&o<=l+d&&s>=h-d&&s<=u+d&&sW.x1.pointToLine(e,t,i,n,o,s)<=r/2}var sz=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(e){this.setArrow()},t.prototype.onAttrChange=function(t,i,n){e.prototype.onAttrChange.call(this,t,i,n),this.setArrow()},t.prototype.setArrow=function(){var e=this.attr(),t=e.x1,i=e.y1,n=e.x2,r=e.y2,o=e.startArrow,s=e.endArrow;o&&sN(this,e,n,r,t,i),s&&sI(this,e,t,i,n,r)},t.prototype.isInStrokeOrPath=function(e,t,i,n,r){if(!i||!r)return!1;var o=this.attr();return sG(o.x1,o.y1,o.x2,o.y2,r,e,t)},t.prototype.createPath=function(e){var t=this.attr(),i=t.x1,n=t.y1,r=t.x2,o=t.y2,s=t.startArrow,a=t.endArrow,l={dx:0,dy:0},h={dx:0,dy:0};s&&s.d&&(l=sL(i,n,r,o,t.startArrow.d)),a&&a.d&&(h=sL(i,n,r,o,t.endArrow.d)),e.beginPath(),e.moveTo(i+l.dx,n+l.dy),e.lineTo(r-h.dx,o-h.dy)},t.prototype.afterDrawPath=function(e){var t=this.get("startArrowShape"),i=this.get("endArrowShape");t&&t.draw(e),i&&i.draw(e)},t.prototype.getTotalLength=function(){var e=this.attr(),t=e.x1,i=e.y1,n=e.x2,r=e.y2;return sW.x1.length(t,i,n,r)},t.prototype.getPoint=function(e){var t=this.attr(),i=t.x1,n=t.y1,r=t.x2,o=t.y2;return sW.x1.pointAt(i,n,r,o,e)},t}(sF),sY={circle:function(e,t,i){return[["M",e-i,t],["A",i,i,0,1,0,e+i,t],["A",i,i,0,1,0,e-i,t]]},square:function(e,t,i){return[["M",e-i,t-i],["L",e+i,t-i],["L",e+i,t+i],["L",e-i,t+i],["Z"]]},diamond:function(e,t,i){return[["M",e-i,t],["L",e,t-i],["L",e+i,t],["L",e,t+i],["Z"]]},triangle:function(e,t,i){var n=i*Math.sin(1/3*Math.PI);return[["M",e-i,t+n],["L",e,t-n],["L",e+i,t+n],["Z"]]},"triangle-down":function(e,t,i){var n=i*Math.sin(1/3*Math.PI);return[["M",e-i,t-n],["L",e+i,t-n],["L",e,t+n],["Z"]]}},sK=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.initAttrs=function(e){this._resetParamsCache()},t.prototype._resetParamsCache=function(){this.set("paramsCache",{})},t.prototype.onAttrChange=function(t,i,n){e.prototype.onAttrChange.call(this,t,i,n),-1!==["symbol","x","y","r","radius"].indexOf(t)&&this._resetParamsCache()},t.prototype.isOnlyHitBox=function(){return!0},t.prototype._getR=function(e){return(0,em.UM)(e.r)?e.radius:e.r},t.prototype._getPath=function(){var e,i,n=this.attr(),r=n.x,o=n.y,s=n.symbol||"circle",a=this._getR(n);if((0,em.mf)(s))i=(e=s)(r,o,a),i=(0,nV.wb)(i);else{if(!(e=t.Symbols[s]))return console.warn(s+" marker is not supported."),null;i=e(r,o,a)}return i},t.prototype.createPath=function(e){sM(this,e,{path:this._getPath()},this.get("paramsCache"))},t.Symbols=sY,t}(sF);function s$(e,t,i){var n=(0,eL.getOffScreenContext)();return e.createPath(n),n.isPointInPath(t,i)}function sX(e){return 1e-6>Math.abs(e)?0:e<0?-1:1}function sj(e,t,i){var n=!1,r=e.length;if(r<=2)return!1;for(var o=0;o0!=sX(l[1]-i)>0&&0>sX(t-(i-a[1])*(a[0]-l[0])/(a[1]-l[1])-a[0])&&(n=!n)}return n}function sq(e,t,i,n,r,o,s,a){var l=(Math.atan2(a-t,s-e)+2*Math.PI)%(2*Math.PI);if(lr)return!1;var h={x:e+i*Math.cos(l),y:t+i*Math.sin(l)};return sl(h.x,h.y,s,a)<=o/2}var sZ=it.vs,sJ=(0,ef.pi)({hasArc:function(e){for(var t=!1,i=e.length,n=0;n0&&n.push(r),{polygons:i,polylines:n}},isPointInStroke:function(e,t,i,n,r){for(var o=!1,s=t/2,a=0;av?m:v;t8(S,S,sZ(null,[["t",-p,-f],["r",-C],["s",1/(m>v?1:m/v),1/(m>v?v/m:1)]])),o=sq(0,0,y,E,_,t,S[0],S[1])}if(o)break}}return o}},eL.PathUtil);function sQ(e,t,i){for(var n=!1,r=0;r=n[0]&&e<=n[1]&&(t=(e-n[0])/(n[1]-n[0]),i=r)});var o=r[i];if((0,em.UM)(o)||(0,em.UM)(i))return null;var s=o.length,a=r[i+1];return sW.Ll.pointAt(o[s-2],o[s-1],a[1],a[2],a[3],a[4],a[5],a[6],t)},t.prototype._calculateCurve=function(){var e=this.attr().path;this.set("curve",sJ.pathToCurve(e))},t.prototype._setTcache=function(){var e,t,i,n=0,r=0,o=[],s=this.get("curve");if(s){if((0,em.S6)(s,function(e,r){t=s[r+1],i=e.length,t&&(n+=sW.Ll.length(e[i-2],e[i-1],t[1],t[2],t[3],t[4],t[5],t[6])||0)}),this.set("totalLength",n),0===n){this.set("tCache",[]);return}(0,em.S6)(s,function(a,l){t=s[l+1],i=a.length,t&&((e=[])[0]=r/n,r+=sW.Ll.length(a[i-2],a[i-1],t[1],t[2],t[3],t[4],t[5],t[6])||0,e[1]=r/n,o.push(e))}),this.set("tCache",o)}},t.prototype.getStartTangent=function(){var e,t=this.getSegments();if(t.length>1){var i=t[0].currentPoint,n=t[1].currentPoint,r=t[1].startTangent;e=[],r?(e.push([i[0]-r[0],i[1]-r[1]]),e.push([i[0],i[1]])):(e.push([n[0],n[1]]),e.push([i[0],i[1]]))}return e},t.prototype.getEndTangent=function(){var e,t=this.getSegments(),i=t.length;if(i>1){var n=t[i-2].currentPoint,r=t[i-1].currentPoint,o=t[i-1].endTangent;e=[],o?(e.push([r[0]-o[0],r[1]-o[1]]),e.push([r[0],r[1]])):(e.push([n[0],n[1]]),e.push([r[0],r[1]]))}return e},t}(sF);function s1(e,t,i,n,r){var o=e.length;if(o<2)return!1;for(var s=0;s=n[0]&&e<=n[1]&&(t=(e-n[0])/(n[1]-n[0]),i=r)}),sW.x1.pointAt(n[i][0],n[i][1],n[i+1][0],n[i+1][1],t)},t.prototype._setTcache=function(){var e,t=this.attr().points;if(t&&0!==t.length){var i=this.getTotalLength();if(!(i<=0)){var n=0,r=[];(0,em.S6)(t,function(o,s){t[s+1]&&((e=[])[0]=n/i,n+=sW.x1.length(o[0],o[1],t[s+1][0],t[s+1][1]),e[1]=n/i,r.push(e))}),this.set("tCache",r)}}},t.prototype.getStartTangent=function(){var e=this.attr().points,t=[];return t.push([e[1][0],e[1][1]]),t.push([e[0][0],e[0][1]]),t},t.prototype.getEndTangent=function(){var e=this.attr().points,t=e.length-1,i=[];return i.push([e[t-1][0],e[t-1][1]]),i.push([e[t][0],e[t][1]]),i},t}(sF),s5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,width:0,height:0,radius:0})},t.prototype.isInStrokeOrPath=function(e,t,i,n,r){var o,s=this.attr(),a=s.x,l=s.y,h=s.width,u=s.height,d=s.radius;if(d){var c=!1;return i&&(c=sG(a+d,l,a+h-d,l,r,e,t)||sG(a+h,l+d,a+h,l+u-d,r,e,t)||sG(a+h-d,l+u,a+d,l+u,r,e,t)||sG(a,l+u-d,a,l+d,r,e,t)||sq(a+h-d,l+d,d,1.5*Math.PI,2*Math.PI,r,e,t)||sq(a+h-d,l+u-d,d,0,.5*Math.PI,r,e,t)||sq(a+d,l+u-d,d,.5*Math.PI,Math.PI,r,e,t)||sq(a+d,l+d,d,Math.PI,1.5*Math.PI,r,e,t)),!c&&n&&(c=s$(this,e,t)),c}var g=r/2;return n&&i?sh(a-g,l-g,h+g,u+g,e,t):n?sh(a,l,h,u,e,t):i?sh(a-(o=r/2),l-o,h,r,e,t)||sh(a+h-o,l-o,r,u,e,t)||sh(a+o,l+u-o,h,r,e,t)||sh(a-o,l+o,r,u,e,t):void 0},t.prototype.createPath=function(e){var t=this.attr(),i=t.x,n=t.y,r=t.width,o=t.height,s=t.radius;if(e.beginPath(),0===s)e.rect(i,n,r,o);else{var a,l,h,u,d=(a=0,l=0,h=0,u=0,(0,em.kJ)(s)?1===s.length?a=l=h=u=s[0]:2===s.length?(a=h=s[0],l=u=s[1]):3===s.length?(a=s[0],l=u=s[1],h=s[2]):(a=s[0],l=s[1],h=s[2],u=s[3]):a=l=h=u=s,[a,l,h,u]),c=d[0],g=d[1],p=d[2],f=d[3];e.moveTo(i+c,n),e.lineTo(i+r-g,n),0!==g&&e.arc(i+r-g,n+g,g,-Math.PI/2,0),e.lineTo(i+r,n+o-p),0!==p&&e.arc(i+r-p,n+o-p,p,0,Math.PI/2),e.lineTo(i+f,n+o),0!==f&&e.arc(i+f,n+o-f,f,Math.PI/2,Math.PI),e.lineTo(i,n+c),0!==c&&e.arc(i+c,n+c,c,Math.PI,1.5*Math.PI),e.closePath()}},t}(sF),s6=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},t.prototype.isOnlyHitBox=function(){return!0},t.prototype.initAttrs=function(e){this._assembleFont(),e.text&&this._setText(e.text)},t.prototype._assembleFont=function(){var e=this.attrs;e.font=(0,eL.assembleFont)(e)},t.prototype._setText=function(e){var t=null;(0,em.HD)(e)&&-1!==e.indexOf("\n")&&(t=e.split("\n")),this.set("textArr",t)},t.prototype.onAttrChange=function(t,i,n){e.prototype.onAttrChange.call(this,t,i,n),t.startsWith("font")&&this._assembleFont(),"text"===t&&this._setText(i)},t.prototype._getSpaceingY=function(){var e=this.attrs,t=e.lineHeight,i=1*e.fontSize;return t?t-i:.14*i},t.prototype._drawTextArr=function(e,t,i){var n,r=this.attrs,o=r.textBaseline,s=r.x,a=r.y,l=1*r.fontSize,h=this._getSpaceingY(),u=(0,eL.getTextHeight)(r.text,r.fontSize,r.lineHeight);(0,em.S6)(t,function(t,r){n=a+r*(h+l)-u+l,"middle"===o&&(n+=u-l-(u-l)/2),"top"===o&&(n+=u-l),(0,em.UM)(t)||(i?e.fillText(t,s,n):e.strokeText(t,s,n))})},t.prototype._drawText=function(e,t){var i=this.attr(),n=i.x,r=i.y,o=this.get("textArr");if(o)this._drawTextArr(e,o,t);else{var s=i.text;(0,em.UM)(s)||(t?e.fillText(s,n,r):e.strokeText(s,n,r))}},t.prototype.strokeAndFill=function(e){var t=this.attrs,i=t.lineWidth,n=t.opacity,r=t.strokeOpacity,o=t.fillOpacity;this.isStroke()&&i>0&&((0,em.UM)(r)||1===r||(e.globalAlpha=n),this.stroke(e)),this.isFill()&&((0,em.UM)(o)||1===o?this.fill(e):(e.globalAlpha=o,this.fill(e),e.globalAlpha=n)),this.afterDrawPath(e)},t.prototype.fill=function(e){this._drawText(e,!0)},t.prototype.stroke=function(e){this._drawText(e,!1)},t}(sF);function s3(e,t,i){var n=e.getTotalMatrix();if(n){var r=function(e,t){if(t){var i=(0,eL.invert)(t);return(0,eL.multiplyVec2)(i,e)}return e}([t,i,1],n);return[r[0],r[1]]}return[t,i]}function s9(e,t,i){if(e.isCanvas&&e.isCanvas())return!0;if(!(0,eL.isAllowCapture)(e)||!1===e.cfg.isInView)return!1;if(e.cfg.clipShape){var n=s3(e,t,i),r=n[0],o=n[1];if(e.isClipped(r,o))return!1}var s=e.cfg.cacheCanvasBBox||e.getCanvasBBox();return t>=s.minX&&t<=s.maxX&&i>=s.minY&&i<=s.maxY}var s7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.renderer="canvas",t.autoDraw=!0,t.localRefresh=!0,t.refreshElements=[],t.clipView=!0,t.quickHit=!1,t},t.prototype.onCanvasChange=function(e){("attr"===e||"sort"===e||"changeSize"===e)&&(this.set("refreshElements",[this]),this.draw())},t.prototype.getShapeBase=function(){return eu},t.prototype.getGroupBase=function(){return sP},t.prototype.getPixelRatio=function(){var e=this.get("pixelRatio")||(window?window.devicePixelRatio:1);return e>=1?Math.ceil(e):1},t.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},t.prototype.createDom=function(){var e=document.createElement("canvas"),t=e.getContext("2d");return this.set("context",t),e},t.prototype.setDOMSize=function(t,i){e.prototype.setDOMSize.call(this,t,i);var n=this.get("context"),r=this.get("el"),o=this.getPixelRatio();r.width=o*t,r.height=o*i,o>1&&n.scale(o,o)},t.prototype.clear=function(){e.prototype.clear.call(this),this._clearFrame();var t=this.get("context"),i=this.get("el");t.clearRect(0,0,i.width,i.height)},t.prototype.getShape=function(t,i){return this.get("quickHit")?function e(t,i,n){if(!s9(t,i,n))return null;for(var r=null,o=t.getChildren(),s=o.length,a=s-1;a>=0;a--){var l=o[a];if(l.isGroup())r=e(l,i,n);else if(s9(l,i,n)){var h=s3(l,i,n),u=h[0],d=h[1];l.isInShape(u,d)&&(r=l)}if(r)break}return r}(this,t,i):e.prototype.getShape.call(this,t,i,null)},t.prototype._getRefreshRegion=function(){var e,t,i=this.get("refreshElements"),n=this.getViewRange();return i.length&&i[0]===this?t=n:(t=function(e){if(!e.length)return null;var t=[],i=[],n=[],r=[];return(0,em.S6)(e,function(e){var o=function(e){var t;if(e.destroyed)t=e._cacheCanvasBBox;else{var i=e.get("cacheCanvasBBox"),n=i&&!!(i.width&&i.height),r=e.getCanvasBBox(),o=r&&!!(r.width&&r.height);n&&o?t=i&&r?{minX:Math.min(i.minX,r.minX),minY:Math.min(i.minY,r.minY),maxX:Math.max(i.maxX,r.maxX),maxY:Math.max(i.maxY,r.maxY)}:i||r:n?t=i:o&&(t=r)}return t}(e);o&&(t.push(o.minX),i.push(o.minY),n.push(o.maxX),r.push(o.maxY))}),{minX:(0,em.VV)(t),minY:(0,em.VV)(i),maxX:(0,em.Fp)(n),maxY:(0,em.Fp)(r)}}(i))&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView"))&&(t=(e=t)&&n&&su(e,n)?{minX:Math.max(e.minX,n.minX),minY:Math.max(e.minY,n.minY),maxX:Math.min(e.maxX,n.maxX),maxY:Math.min(e.maxY,n.maxY)}:null),t},t.prototype.refreshElement=function(e){this.get("refreshElements").push(e)},t.prototype._clearFrame=function(){var e=this.get("drawFrame");e&&((0,em.VS)(e),this.set("drawFrame",null),this.set("refreshElements",[]))},t.prototype.draw=function(){var e=this.get("drawFrame");this.get("autoDraw")&&e||this._startDraw()},t.prototype._drawAll=function(){var e=this.get("context"),t=this.get("el"),i=this.getChildren();e.clearRect(0,0,t.width,t.height),sO(e,this),sx(e,i),this.set("refreshElements",[])},t.prototype._drawRegion=function(){var e,t,i=this.get("context"),n=this.get("refreshElements"),r=this.getChildren(),o=this._getRefreshRegion();o?(i.clearRect(o.minX,o.minY,o.maxX-o.minX,o.maxY-o.minY),i.save(),i.beginPath(),i.rect(o.minX,o.minY,o.maxX-o.minX,o.maxY-o.minY),i.clip(),sO(i,this),e=this,t=e.get("refreshElements"),(0,em.S6)(t,function(t){if(t!==e)for(var i=t.cfg.parent;i&&i!==e&&!i.cfg.refresh;)i.cfg.refresh=!0,i=i.cfg.parent}),t[0]===e?sD(r,o):function e(t,i){for(var n=0;nt)i.insertBefore(e,r);else if(o0&&(t?"stroke"in i?this._setColor(e,"stroke",o):"strokeStyle"in i&&this._setColor(e,"stroke",s):this._setColor(e,"stroke",o||s),l&&u.setAttribute(at.strokeOpacity,l),h&&u.setAttribute(at.lineWidth,h))},t.prototype._setColor=function(e,t,i){var n=this.get("el");if(!i){n.setAttribute(at[t],"none");return}if(i=i.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(i)){var r=e.find("gradient",i);r||(r=e.addGradient(i)),n.setAttribute(at[t],"url(#"+r+")")}else if(/^[p,P]{1}[\s]*\(/.test(i)){var r=e.find("pattern",i);r||(r=e.addPattern(i)),n.setAttribute(at[t],"url(#"+r+")")}else n.setAttribute(at[t],i)},t.prototype.shadow=function(e,t){var i=this.attr(),n=t||i,r=n.shadowOffsetX,o=n.shadowOffsetY,s=n.shadowBlur,a=n.shadowColor;(r||o||s||a)&&function(e,t){var i=e.cfg.el,n=e.attr(),r={dx:n.shadowOffsetX,dy:n.shadowOffsetY,blur:n.shadowBlur,color:n.shadowColor};if(r.dx||r.dy||r.blur||r.color){var o=t.find("filter",r);o||(o=t.addShadow(r)),i.setAttribute("filter","url(#"+o+")")}else i.removeAttribute("filter")}(this,e)},t.prototype.transform=function(e){var t=this.attr();(e||t).matrix&&ao(this)},t.prototype.isInShape=function(e,t){return this.isPointInPath(e,t)},t.prototype.isPointInPath=function(e,t){var i=this.get("el"),n=this.get("canvas").get("el").getBoundingClientRect(),r=e+n.left,o=t+n.top,s=document.elementFromPoint(r,o);return!!(s&&s.isEqualNode(i))},t.prototype.getHitLineWidth=function(){var e=this.attrs,t=e.lineWidth,i=e.lineAppendWidth;return this.isStroke()?t+i:0},t}(eL.AbstractShape),ad=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="circle",t.canFill=!0,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,r:0})},t.prototype.createPath=function(e,t){var i=this.attr(),n=this.get("el");(0,em.S6)(t||i,function(e,t){"x"===t||"y"===t?n.setAttribute("c"+t,e):at[t]&&n.setAttribute(at[t],e)})},t}(au),ac=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dom",t.canFill=!1,t.canStroke=!1,t}return(0,ef.ZT)(t,e),t.prototype.createPath=function(e,t){var i=this.attr(),n=this.get("el");if((0,em.S6)(t||i,function(e,t){at[t]&&n.setAttribute(at[t],e)}),"function"==typeof i.html){var r=i.html.call(this,i);if(r instanceof Element||r instanceof HTMLDocument){for(var o=n.childNodes,s=o.length-1;s>=0;s--)n.removeChild(o[s]);n.appendChild(r)}else n.innerHTML=r}else n.innerHTML=i.html},t}(au),ag=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="ellipse",t.canFill=!0,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,rx:0,ry:0})},t.prototype.createPath=function(e,t){var i=this.attr(),n=this.get("el");(0,em.S6)(t||i,function(e,t){"x"===t||"y"===t?n.setAttribute("c"+t,e):at[t]&&n.setAttribute(at[t],e)})},t}(au),ap=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="image",t.canFill=!1,t.canStroke=!1,t}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,width:0,height:0})},t.prototype.createPath=function(e,t){var i=this,n=this.attr(),r=this.get("el");(0,em.S6)(t||n,function(e,t){"img"===t?i._setImage(n.img):at[t]&&r.setAttribute(at[t],e)})},t.prototype.setAttr=function(e,t){this.attrs[e]=t,"img"===e&&this._setImage(t)},t.prototype._setImage=function(e){var t=this.attr(),i=this.get("el");if((0,em.HD)(e))i.setAttribute("href",e);else if(e instanceof window.Image)t.width||(i.setAttribute("width",e.width),this.attr("width",e.width)),t.height||(i.setAttribute("height",e.height),this.attr("height",e.height)),i.setAttribute("href",e.src);else if(e instanceof HTMLElement&&(0,em.HD)(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase())i.setAttribute("href",e.toDataURL());else if(e instanceof ImageData){var n=document.createElement("canvas");n.setAttribute("width",""+e.width),n.setAttribute("height",""+e.height),n.getContext("2d").putImageData(e,0,0),t.width||(i.setAttribute("width",""+e.width),this.attr("width",e.width)),t.height||(i.setAttribute("height",""+e.height),this.attr("height",e.height)),i.setAttribute("href",n.toDataURL())}},t}(au),af=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="line",t.canFill=!1,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},t.prototype.createPath=function(e,t){var i=this.attr(),n=this.get("el");(0,em.S6)(t||i,function(t,r){if("startArrow"===r||"endArrow"===r){if(t){var o=(0,em.Kn)(t)?e.addArrow(i,at[r]):e.getDefaultArrow(i,at[r]);n.setAttribute(at[r],"url(#"+o+")")}else n.removeAttribute(at[r])}else at[r]&&n.setAttribute(at[r],t)})},t.prototype.getTotalLength=function(){var e=this.attr(),t=e.x1,i=e.y1,n=e.x2,r=e.y2;return sW.x1.length(t,i,n,r)},t.prototype.getPoint=function(e){var t=this.attr(),i=t.x1,n=t.y1,r=t.x2,o=t.y2;return sW.x1.pointAt(i,n,r,o,e)},t}(au),am={circle:function(e,t,i){return[["M",e,t],["m",-i,0],["a",i,i,0,1,0,2*i,0],["a",i,i,0,1,0,-(2*i),0]]},square:function(e,t,i){return[["M",e-i,t-i],["L",e+i,t-i],["L",e+i,t+i],["L",e-i,t+i],["Z"]]},diamond:function(e,t,i){return[["M",e-i,t],["L",e,t-i],["L",e+i,t],["L",e,t+i],["Z"]]},triangle:function(e,t,i){var n=i*Math.sin(1/3*Math.PI);return[["M",e-i,t+n],["L",e,t-n],["L",e+i,t+n],["z"]]},triangleDown:function(e,t,i){var n=i*Math.sin(1/3*Math.PI);return[["M",e-i,t-n],["L",e+i,t-n],["L",e,t+n],["Z"]]}},av={get:function(e){return am[e]},register:function(e,t){am[e]=t},remove:function(e){delete am[e]},getAll:function(){return am}},aE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="marker",t.canFill=!0,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.createPath=function(e){this.get("el").setAttribute("d",this._assembleMarker())},t.prototype._assembleMarker=function(){var e=this._getPath();return(0,em.kJ)(e)?e.map(function(e){return e.join(" ")}).join(""):e},t.prototype._getPath=function(){var e,t=this.attr(),i=t.x,n=t.y,r=t.r||t.radius,o=t.symbol||"circle";return(e=(0,em.mf)(o)?o:av.get(o))?e(i,n,r):(console.warn(e+" symbol is not exist."),null)},t.symbolsFactory=av,t}(au),a_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="path",t.canFill=!0,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{startArrow:!1,endArrow:!1})},t.prototype.createPath=function(e,t){var i=this,n=this.attr(),r=this.get("el");(0,em.S6)(t||n,function(t,o){if("path"===o&&(0,em.kJ)(t))r.setAttribute("d",i._formatPath(t));else if("startArrow"===o||"endArrow"===o){if(t){var s=(0,em.Kn)(t)?e.addArrow(n,at[o]):e.getDefaultArrow(n,at[o]);r.setAttribute(at[o],"url(#"+s+")")}else r.removeAttribute(at[o])}else at[o]&&r.setAttribute(at[o],t)})},t.prototype._formatPath=function(e){var t=e.map(function(e){return e.join(" ")}).join("");return~t.indexOf("NaN")?"":t},t.prototype.getTotalLength=function(){var e=this.get("el");return e?e.getTotalLength():null},t.prototype.getPoint=function(e){var t=this.get("el"),i=this.getTotalLength();if(0===i)return null;var n=t?t.getPointAtLength(e*i):null;return n?{x:n.x,y:n.y}:null},t}(au),aC=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="polygon",t.canFill=!0,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.createPath=function(e,t){var i=this.attr(),n=this.get("el");(0,em.S6)(t||i,function(e,t){"points"===t&&(0,em.kJ)(e)&&e.length>=2?n.setAttribute("points",e.map(function(e){return e[0]+","+e[1]}).join(" ")):at[t]&&n.setAttribute(at[t],e)})},t}(au),aS=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="polyline",t.canFill=!0,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{startArrow:!1,endArrow:!1})},t.prototype.onAttrChange=function(t,i,n){e.prototype.onAttrChange.call(this,t,i,n),-1!==["points"].indexOf(t)&&this._resetCache()},t.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},t.prototype.createPath=function(e,t){var i=this.attr(),n=this.get("el");(0,em.S6)(t||i,function(e,t){"points"===t&&(0,em.kJ)(e)&&e.length>=2?n.setAttribute("points",e.map(function(e){return e[0]+","+e[1]}).join(" ")):at[t]&&n.setAttribute(at[t],e)})},t.prototype.getTotalLength=function(){var e=this.attr().points,t=this.get("totalLength");return(0,em.UM)(t)?(this.set("totalLength",sW.aH.length(e)),this.get("totalLength")):t},t.prototype.getPoint=function(e){var t,i,n=this.attr().points,r=this.get("tCache");return r||(this._setTcache(),r=this.get("tCache")),(0,em.S6)(r,function(n,r){e>=n[0]&&e<=n[1]&&(t=(e-n[0])/(n[1]-n[0]),i=r)}),sW.x1.pointAt(n[i][0],n[i][1],n[i+1][0],n[i+1][1],t)},t.prototype._setTcache=function(){var e,t=this.attr().points;if(t&&0!==t.length){var i=this.getTotalLength();if(!(i<=0)){var n=0,r=[];(0,em.S6)(t,function(o,s){t[s+1]&&((e=[])[0]=n/i,n+=sW.x1.length(o[0],o[1],t[s+1][0],t[s+1][1]),e[1]=n/i,r.push(e))}),this.set("tCache",r)}}},t.prototype.getStartTangent=function(){var e=this.attr().points,t=[];return t.push([e[1][0],e[1][1]]),t.push([e[0][0],e[0][1]]),t},t.prototype.getEndTangent=function(){var e=this.attr().points,t=e.length-1,i=[];return i.push([e[t-1][0],e[t-1][1]]),i.push([e[t][0],e[t][1]]),i},t}(au),ay=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="rect",t.canFill=!0,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,width:0,height:0,radius:0})},t.prototype.createPath=function(e,t){var i=this,n=this.attr(),r=this.get("el"),o=!1,s=["x","y","width","height","radius"];(0,em.S6)(t||n,function(e,t){-1===s.indexOf(t)||o?-1===s.indexOf(t)&&at[t]&&r.setAttribute(at[t],e):(r.setAttribute("d",i._assembleRect(n)),o=!0)})},t.prototype._assembleRect=function(e){var t,i,n,r,o=e.x,s=e.y,a=e.width,l=e.height,h=e.radius;if(!h)return"M "+o+","+s+" l "+a+",0 l 0,"+l+" l"+-a+" 0 z";var u=(t=0,i=0,n=0,r=0,(0,em.kJ)(h)?1===h.length?t=i=n=r=h[0]:2===h.length?(t=n=h[0],i=r=h[1]):3===h.length?(t=h[0],i=r=h[1],n=h[2]):(t=h[0],i=h[1],n=h[2],r=h[3]):t=i=n=r=h,{r1:t,r2:i,r3:n,r4:r});return(0,em.kJ)(h)?1===h.length?u.r1=u.r2=u.r3=u.r4=h[0]:2===h.length?(u.r1=u.r3=h[0],u.r2=u.r4=h[1]):3===h.length?(u.r1=h[0],u.r2=u.r4=h[1],u.r3=h[2]):(u.r1=h[0],u.r2=h[1],u.r3=h[2],u.r4=h[3]):u.r1=u.r2=u.r3=u.r4=h,[["M "+(o+u.r1)+","+s],["l "+(a-u.r1-u.r2)+",0"],["a "+u.r2+","+u.r2+",0,0,1,"+u.r2+","+u.r2],["l 0,"+(l-u.r2-u.r3)],["a "+u.r3+","+u.r3+",0,0,1,"+-u.r3+","+u.r3],["l "+(u.r3+u.r4-a)+",0"],["a "+u.r4+","+u.r4+",0,0,1,"+-u.r4+","+-u.r4],["l 0,"+(u.r4+u.r1-l)],["a "+u.r1+","+u.r1+",0,0,1,"+u.r1+","+-u.r1],["z"]].join(" ")},t}(au),aT=i(43631),ab={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},aA={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},aR={left:"left",start:"left",center:"middle",right:"end",end:"end"},aL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="text",t.canFill=!0,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},t.prototype.createPath=function(e,t){var i=this,n=this.attr(),r=this.get("el");this._setFont(),(0,em.S6)(t||n,function(e,t){"text"===t?i._setText(""+e):"matrix"===t&&e?ao(i):at[t]&&r.setAttribute(at[t],e)}),r.setAttribute("paint-order","stroke"),r.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},t.prototype._setFont=function(){var e=this.get("el"),t=this.attr(),i=t.textBaseline,n=t.textAlign,r=(0,aT.qY)();r&&"firefox"===r.name?e.setAttribute("dominant-baseline",aA[i]||"alphabetic"):e.setAttribute("alignment-baseline",ab[i]||"baseline"),e.setAttribute("text-anchor",aR[n]||"left")},t.prototype._setText=function(e){var t=this.get("el"),i=this.attr(),n=i.x,r=i.textBaseline,o=void 0===r?"bottom":r;if(e){if(~e.indexOf("\n")){var s=e.split("\n"),a=s.length-1,l="";(0,em.S6)(s,function(e,t){0===t?"alphabetic"===o?l+=''+e+"":"top"===o?l+=''+e+"":"middle"===o?l+=''+e+"":"bottom"===o?l+=''+e+"":"hanging"===o&&(l+=''+e+""):l+=''+e+""}),t.innerHTML=l}else t.innerHTML=e}else t.innerHTML=""},t}(au),aN=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,aI=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,aw=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function aO(e){var t=e.match(aw);if(!t)return"";var i="";return t.sort(function(e,t){return e=e.split(":"),t=t.split(":"),Number(e[0])-Number(t[0])}),(0,em.S6)(t,function(e){i+=''}),i}var ax=function(){function e(e){this.cfg={};var t,i,n,r,o,s,a,l,h,u,d,c,g,p,f,m,v=null,E=(0,em.EL)("gradient_");return"l"===e.toLowerCase()[0]?(t=v=ai("linearGradient"),r=aN.exec(e),o=(0,em.wQ)((0,em.c$)(parseFloat(r[1])),2*Math.PI),s=r[2],o>=0&&o<.5*Math.PI?(i={x:0,y:0},n={x:1,y:1}):.5*Math.PI<=o&&o';t.innerHTML=i},e}(),aP=function(){function e(e,t){this.cfg={};var i=ai("marker"),n=(0,em.EL)("marker_");i.setAttribute("id",n);var r=ai("path");r.setAttribute("stroke",e.stroke||"none"),r.setAttribute("fill",e.fill||"none"),i.appendChild(r),i.setAttribute("overflow","visible"),i.setAttribute("orient","auto-start-reverse"),this.el=i,this.child=r,this.id=n;var o=e["marker-start"===t?"startArrow":"endArrow"];return this.stroke=e.stroke||"#000",!0===o?this._setDefaultPath(t,r):(this.cfg=o,this._setMarker(e.lineWidth,r)),this}return e.prototype.match=function(){return!1},e.prototype._setDefaultPath=function(e,t){var i=this.el;t.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),i.setAttribute("refX",""+10*Math.cos(Math.PI/6)),i.setAttribute("refY","5")},e.prototype._setMarker=function(e,t){var i=this.el,n=this.cfg.path,r=this.cfg.d;(0,em.kJ)(n)&&(n=n.map(function(e){return e.join(" ")}).join("")),t.setAttribute("d",n),i.appendChild(t),r&&i.setAttribute("refX",""+r/e)},e.prototype.update=function(e){var t=this.child;t.attr?t.attr("fill",e):t.setAttribute("fill",e)},e}(),aF=function(){function e(e){this.type="clip",this.cfg={};var t=ai("clipPath");this.el=t,this.id=(0,em.EL)("clip_"),t.id=this.id;var i=e.cfg.el;return t.appendChild(i),this.cfg=e,this}return e.prototype.match=function(){return!1},e.prototype.remove=function(){var e=this.el;e.parentNode.removeChild(e)},e}(),aB=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,aU=function(){function e(e){this.cfg={};var t=ai("pattern");t.setAttribute("patternUnits","userSpaceOnUse");var i=ai("image");t.appendChild(i);var n=(0,em.EL)("pattern_");t.id=n,this.el=t,this.id=n,this.cfg=e;var r=aB.exec(e)[2];i.setAttribute("href",r);var o=new Image;function s(){t.setAttribute("width",""+o.width),t.setAttribute("height",""+o.height)}return r.match(/^data:/i)||(o.crossOrigin="Anonymous"),o.src=r,o.complete?s():(o.onload=s,o.src=o.src),this}return e.prototype.match=function(e,t){return this.cfg===t},e}(),aH=function(){function e(e){var t=ai("defs"),i=(0,em.EL)("defs_");t.id=i,e.appendChild(t),this.children=[],this.defaultArrow={},this.el=t,this.canvas=e}return e.prototype.find=function(e,t){for(var i=this.children,n=null,r=0;r0&&(h[0][0]="L")),o=o.concat(h)}),o.push(["Z"])}return o}(c,a,i,n,r))}return o.path=h,o}function a2(e){var t=e.start,i=e.end;return[[t.x,i.y],[i.x,t.y]]}oK("area",{defaultShapeType:"area",getDefaultPoints:function(e){var t=e.x,i=e.y0;return((0,em.kJ)(e.y)?e.y:[i,e.y]).map(function(e){return{x:t,y:e}})}}),o$("area","area",{draw:function(e,t){var i=a1(e,!1,!1,this);return t.addShape({type:"path",attrs:i,name:"area"})},getMarker:function(e){return{symbol:function(e,t,i){return void 0===i&&(i=5.5),[["M",e-i,t-4],["L",e+i,t-4],["L",e+i,t+4],["L",e-i,t+4],["Z"]]},style:{r:5,fill:e.color}}}});var a4=function(e){function t(t){var i=e.call(this,t)||this;i.type="area",i.shapeType="area",i.generatePoints=!0,i.startOnZero=!0;var n=t.startOnZero,r=t.sortable,o=t.showSinglePoint;return i.startOnZero=void 0===n||n,i.sortable=void 0!==r&&r,i.showSinglePoint=void 0!==o&&o,i}return(0,ef.ZT)(t,e),t.prototype.getPointsAndData=function(e){for(var t=[],i=[],n=0,r=e.length;nn&&(n=r),r=t[0]}));for(var d=this.scales[h],c=0,g=e;ct&&(i=i?t/(1+n/i):0,n=t-i),r+o>t&&(r=r?t/(1+o/r):0,o=t-r),[i||0,n||0,r||0,o||0]}function a8(e,t,i){var n=[];if(i.isRect){var r=i.isTransposed?{x:i.start.x,y:t[0].y}:{x:t[0].x,y:i.start.y},o=i.isTransposed?{x:i.end.x,y:t[2].y}:{x:t[3].x,y:i.end.y},s=(0,em.U2)(e,["background","style","radius"]);if(s){var a=a7(s,Math.min(i.isTransposed?Math.abs(t[0].y-t[2].y):t[2].x-t[1].x,i.isTransposed?i.getWidth():i.getHeight())),l=a[0],h=a[1],u=a[2],d=a[3];n.push(["M",r.x,o.y+l]),0!==l&&n.push(["A",l,l,0,0,1,r.x+l,o.y]),n.push(["L",o.x-h,o.y]),0!==h&&n.push(["A",h,h,0,0,1,o.x,o.y+h]),n.push(["L",o.x,r.y-u]),0!==u&&n.push(["A",u,u,0,0,1,o.x-u,r.y]),n.push(["L",r.x+d,r.y]),0!==d&&n.push(["A",d,d,0,0,1,r.x,r.y-d])}else n.push(["M",r.x,r.y]),n.push(["L",o.x,r.y]),n.push(["L",o.x,o.y]),n.push(["L",r.x,o.y]),n.push(["L",r.x,r.y]);n.push(["z"])}if(i.isPolar){var c=i.getCenter(),g=n6(e,i),p=g.startAngle,f=g.endAngle;if("theta"===i.type||i.isTransposed){var m=function(e){return Math.pow(e,2)},l=Math.sqrt(m(c.x-t[0].x)+m(c.y-t[0].y)),h=Math.sqrt(m(c.x-t[2].x)+m(c.y-t[2].y));n=n4(c.x,c.y,l,i.startAngle,i.endAngle,h)}else n=n4(c.x,c.y,i.getRadius(),p,f)}return n}function le(e,t,i){var n=[];return(0,em.UM)(t)?i?n.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",(e[2].x+e[3].x)/2,(e[2].y+e[3].y)/2],["Z"]):n.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",e[2].x,e[2].y],["L",e[3].x,e[3].y],["Z"]):n.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",t[1].x,t[1].y],["L",t[0].x,t[0].y],["Z"]),n}function lt(e){var t=e.theme,i=e.coordinate,n=e.getXScale(),r=n.values,o=e.beforeMappingData,s=r.length,a=rt(e.coordinate),l=e.intervalPadding,h=e.dodgePadding,u=e.maxColumnWidth||t.maxColumnWidth,d=e.minColumnWidth||t.minColumnWidth,c=e.columnWidthRatio||t.columnWidthRatio,g=e.multiplePieWidthRatio||t.multiplePieWidthRatio,p=e.roseWidthRatio||t.roseWidthRatio;if(n.isLinear&&r.length>1){r.sort();var f=function(e,t){var i=e.length,n=e;(0,em.HD)(n[0])&&(n=e.map(function(e){return t.translate(e)}));for(var r=n[1]-n[0],o=2;os&&(r=s)}return r}(r,n);s=(n.max-n.min)/f,r.length>s&&(s=r.length)}var m=n.range,v=1/s,E=1;if(i.isPolar?E=i.isTransposed&&s>1?g:p:(n.isLinear&&(v*=m[1]-m[0]),E=c),!(0,em.UM)(l)&&l>=0?v=(1-(s-1)*(l/a))/s:v*=E,e.getAdjust("dodge")){var _=function(e,t){if(t){var i=(0,em.xH)(e);return(0,em.I)(i,t).length}return e.length}(o,e.getAdjust("dodge").dodgeBy);!(0,em.UM)(h)&&h>=0?v=(v-h/a*(_-1))/_:(!(0,em.UM)(l)&&l>=0&&(v*=E),v/=_),v=v>=0?v:0}if(!(0,em.UM)(u)&&u>=0){var C=u/a;v>C&&(v=C)}if(!(0,em.UM)(d)&&d>=0){var S=d/a;vi[1].x?(c=i[0],h=i[1],u=i[2],d=i[3],g=(a=a7(r,Math.min(c.x-h.x,h.y-u.y)))[0],m=a[1],f=a[2],p=a[3]):(p=(l=a7(r,Math.min(c.x-h.x,h.y-u.y)))[0],f=l[1],m=l[2],g=l[3])),(v=[]).push(["M",u.x,u.y+g]),0!==g&&v.push(["A",g,g,0,0,1,u.x+g,u.y]),v.push(["L",d.x-p,d.y]),0!==p&&v.push(["A",p,p,0,0,1,d.x,d.y+p]),v.push(["L",c.x,c.y-f]),0!==f&&v.push(["A",f,f,0,0,1,c.x-f,c.y]),v.push(["L",h.x+m,h.y]),0!==m&&v.push(["A",m,m,0,0,1,h.x,h.y-m]),v.push(["L",u.x,u.y+g]),v.push(["z"]),L=v):L=this.parsePath((E=e.points,_=N.lineCap,S=(C=this.coordinate).getWidth(),y=C.getHeight(),T="rect"===C.type,b=[],A=(E[2].x-E[1].x)/2,R=C.isTransposed?A*y/S:A*S/y,"round"===_?(T?(b.push(["M",E[0].x,E[0].y+R]),b.push(["L",E[1].x,E[1].y-R]),b.push(["A",A,A,0,0,1,E[2].x,E[2].y-R]),b.push(["L",E[3].x,E[3].y+R]),b.push(["A",A,A,0,0,1,E[0].x,E[0].y+R])):(b.push(["M",E[0].x,E[0].y]),b.push(["L",E[1].x,E[1].y]),b.push(["A",A,A,0,0,1,E[2].x,E[2].y]),b.push(["L",E[3].x,E[3].y]),b.push(["A",A,A,0,0,1,E[0].x,E[0].y])),b.push(["z"])):b=a9(E),b));var D=I.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},N),{path:L}),name:"interval"});return w?I:D},getMarker:function(e){var t=e.color;return e.isInPolar?{symbol:"circle",style:{r:4.5,fill:t}}:{symbol:"square",style:{r:4,fill:t}}}});var li=function(e){function t(t){var i=e.call(this,t)||this;i.type="interval",i.shapeType="interval",i.generatePoints=!0;var n=t.background;return i.background=n,i}return(0,ef.ZT)(t,e),t.prototype.createShapePointsCfg=function(t){var i,n=e.prototype.createShapePointsCfg.call(this,t),r=this.getAttribute("size");return r?i=this.getAttributeValues(r,t)[0]/rt(this.coordinate):(this.defaultSize||(this.defaultSize=lt(this)),i=this.defaultSize),n.size=i,n},t.prototype.adjustScale=function(){e.prototype.adjustScale.call(this);var t,i=this.getYScale();if("theta"===this.coordinate.type)i.change({nice:!1,min:0,max:(t=i.values.filter(function(e){return!(0,em.UM)(e)&&!isNaN(e)}),Math.max.apply(Math,(0,ef.ev)((0,ef.ev)([],t,!1),[(0,em.UM)(i.max)?-1/0:i.max],!1)))});else{var n=this.scaleDefs,r=i.field,o=i.min,s=i.max;"time"!==i.type&&(o>0&&!(0,em.U2)(n,[r,"min"])&&i.change({min:0}),s<=0&&!(0,em.U2)(n,[r,"max"])&&i.change({max:0}))}},t.prototype.getDrawCfg=function(t){var i=e.prototype.getDrawCfg.call(this,t);return i.background=this.background,i},t}(oJ),ln=function(e){function t(t){var i=e.call(this,t)||this;i.type="line";var n=t.sortable;return i.sortable=void 0!==n&&n,i}return(0,ef.ZT)(t,e),t}(a0),lr=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"];function lo(e,t,i,n,r){var o=aX(t,r,!r,"r"),s=e.parsePoints(t.points),a=s[0];if(t.isStack)a=s[1];else if(s.length>1){for(var l=i.addGroup(),h=0;h2?"weight":"normal";if(e.isInCircle){var s,a,l,h,u,d,c,g={x:0,y:1};return"normal"===o?(s=r[0],a=ld(r[1],g),(l=[["M",s.x,s.y]]).push(a),i=l):(n.fill=n.stroke,u=ld((h=r)[1],g),d=ld(h[3],g),(c=[["M",h[0].x,h[0].y]]).push(d),c.push(["L",h[3].x,h[3].y]),c.push(["L",h[2].x,h[2].y]),c.push(u),c.push(["L",h[1].x,h[1].y]),c.push(["L",h[0].x,h[0].y]),c.push(["Z"]),i=c),i=this.parsePath(i),t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},n),{path:i})})}if("normal"===o)return i=n5(((r=this.parsePoints(r))[1].x+r[0].x)/2,r[0].y,Math.abs(r[1].x-r[0].x)/2,Math.PI,2*Math.PI),t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},n),{path:i})});var p=lu(r[1],r[3]),f=lu(r[2],r[0]);return i=[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],p,["L",r[3].x,r[3].y],["L",r[2].x,r[2].y],f,["Z"]],i=this.parsePath(i),n.fill=n.stroke,t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},n),{path:i})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}}),o$("edge","smooth",{draw:function(e,t){var i,n,r,o=aX(e,!0,!1,"lineWidth"),s=e.points,a=this.parsePath((n=lu(i=s[0],s[1]),(r=[["M",i.x,i.y]]).push(n),r));return t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},o),{path:a})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}});var lc=1/3;o$("edge","vhv",{draw:function(e,t){var i,n,r,o,s=aX(e,!0,!1,"lineWidth"),a=e.points,l=this.parsePath((i=a[0],n=a[1],(r=[]).push({x:i.x,y:i.y*(1-lc)+n.y*lc}),r.push({x:n.x,y:i.y*(1-lc)+n.y*lc}),r.push(n),o=[["M",i.x,i.y]],(0,em.S6)(r,function(e){o.push(["L",e.x,e.y])}),o));return t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},s),{path:l})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}}),o$("interval","funnel",{getPoints:function(e){return e.size=2*e.size,a3(e)},draw:function(e,t){var i=aX(e,!1,!0),n=this.parsePath(le(e.points,e.nextPoints,!1));return t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},i),{path:n}),name:"interval"})},getMarker:function(e){return{symbol:"square",style:{r:4,fill:e.color}}}}),o$("interval","hollow-rect",{draw:function(e,t){var i=aX(e,!0,!1),n=t,r=null==e?void 0:e.background;if(r){n=t.addGroup();var o=aj(e),s=a8(e,this.parsePoints(e.points),this.coordinate);n.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},o),{path:s}),zIndex:-1,name:oF})}var a=this.parsePath(a9(e.points)),l=n.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},i),{path:a}),name:"interval"});return r?n:l},getMarker:function(e){var t=e.color;return e.isInPolar?{symbol:"circle",style:{r:4.5,stroke:t,fill:null}}:{symbol:"square",style:{r:4,stroke:t,fill:null}}}}),o$("interval","line",{getPoints:function(e){var t,i,n;return t=e.x,i=e.y,n=e.y0,(0,em.kJ)(i)?i.map(function(e,i){return{x:(0,em.kJ)(t)?t[i]:t,y:e}}):[{x:t,y:n},{x:t,y:i}]},draw:function(e,t){var i=aX(e,!0,!1,"lineWidth"),n=n7((0,ef.pi)({},i),["fill"]),r=this.parsePath(a9(e.points,!1));return t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},n),{path:r}),name:"interval"})},getMarker:function(e){return{symbol:function(e,t,i){return[["M",e,t-i],["L",e,t+i]]},style:{r:5,stroke:e.color}}}}),o$("interval","pyramid",{getPoints:function(e){return e.size=2*e.size,a3(e)},draw:function(e,t){var i=aX(e,!1,!0),n=this.parsePath(le(e.points,e.nextPoints,!0));return t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},i),{path:n}),name:"interval"})},getMarker:function(e){return{symbol:"square",style:{r:4,fill:e.color}}}}),o$("interval","tick",{getPoints:function(e){var t,i,n,r,o,s,a,l;return n=e.x,r=e.y,o=e.y0,s=e.size,(0,em.kJ)(r)?(t=r[0],i=r[1]):(t=o,i=r),a=n+s/2,l=n-s/2,[{x:n,y:t},{x:n,y:i},{x:l,y:t},{x:a,y:t},{x:l,y:i},{x:a,y:i}]},draw:function(e,t){var i,n=aX(e,!0,!1),r=this.parsePath([["M",(i=e.points)[0].x,i[0].y],["L",i[1].x,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["M",i[4].x,i[4].y],["L",i[5].x,i[5].y]]);return t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},n),{path:r}),name:"interval"})},getMarker:function(e){return{symbol:function(e,t,i){return[["M",e-i/2,t-i],["L",e+i/2,t-i],["M",e,t-i],["L",e,t+i],["M",e-i/2,t+i],["L",e+i/2,t+i]]},style:{r:5,stroke:e.color}}}});var lg=function(e,t,i){var n,r=e.x,o=e.y,s=t.x,a=t.y;switch(i){case"hv":n=[{x:s,y:o}];break;case"vh":n=[{x:r,y:a}];break;case"hvh":var l=(s+r)/2;n=[{x:l,y:o},{x:l,y:a}];break;case"vhv":var h=(o+a)/2;n=[{x:r,y:h},{x:s,y:h}]}return n};function lp(e){var t=(0,em.kJ)(e)?e:[e],i=t[0],n=t[t.length-1],r=t.length>1?t[1]:i,o=t.length>3?t[3]:n,s=t.length>2?t[2]:r;return{min:i,max:n,min1:r,max1:o,median:s}}function lf(e,t,i){var n,r=i/2;if((0,em.kJ)(t)){var o=lp(t),s=o.min,a=o.max,l=o.median,h=o.min1,u=o.max1,d=e-r,c=e+r;n=[[d,a],[c,a],[e,a],[e,u],[d,h],[d,u],[c,u],[c,h],[e,h],[e,s],[d,s],[c,s],[d,l],[c,l]]}else{t=(0,em.UM)(t)?.5:t;var g=lp(e),s=g.min,a=g.max,l=g.median,h=g.min1,u=g.max1,p=t-r,f=t+r;n=[[s,p],[s,f],[s,t],[h,t],[h,p],[h,f],[u,f],[u,p],[u,t],[a,t],[a,p],[a,f],[l,p],[l,f]]}return n.map(function(e){return{x:e[0],y:e[1]}})}function lm(e,t,i){var n,r=function(e,t,i){if((0,em.HD)(e))return e.padEnd(t,i);if((0,em.kJ)(e)){var n=e.length;if(n1){for(var o=t.addGroup(),s=0;s0?"left":"right");break;case"left":e.x=a,e.y=(r+s)/2,e.textAlign=(0,em.U2)(e,"textAlign",g>0?"left":"right");break;case"bottom":h&&(e.x=(o+a)/2),e.y=s,e.textAlign=(0,em.U2)(e,"textAlign","center"),e.textBaseline=(0,em.U2)(e,"textBaseline",g>0?"bottom":"top");break;case"middle":h&&(e.x=(o+a)/2),e.y=(r+s)/2,e.textAlign=(0,em.U2)(e,"textAlign","center"),e.textBaseline=(0,em.U2)(e,"textBaseline","middle");break;case"top":h&&(e.x=(o+a)/2),e.y=r,e.textAlign=(0,em.U2)(e,"textAlign","center"),e.textBaseline=(0,em.U2)(e,"textBaseline",g>0?"bottom":"top")}},t}(o3),lE=Math.PI/2,l_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getLabelOffset=function(e){var t=this.getCoordinate(),i=0;if((0,em.hj)(e))i=e;else if((0,em.HD)(e)&&-1!==e.indexOf("%")){var n=t.getRadius();t.innerRadius>0&&(n*=1-t.innerRadius),i=.01*parseFloat(e)*n}return i},t.prototype.getLabelItems=function(t){var i=e.prototype.getLabelItems.call(this,t),n=this.geometry.getYScale();return(0,em.UI)(i,function(e){if(e&&n){var t=n.scale((0,em.U2)(e.data,n.field));return(0,ef.pi)((0,ef.pi)({},e),{percent:t})}return e})},t.prototype.getLabelAlign=function(e){var t,i=this.getCoordinate();if(e.labelEmit)t=e.angle<=Math.PI/2&&e.angle>=-Math.PI/2?"left":"right";else if(i.isTransposed){var n=i.getCenter(),r=e.offset;t=1>Math.abs(e.x-n.x)?"center":e.angle>Math.PI||e.angle<=0?r>0?"left":"right":r>0?"right":"left"}else t="center";return t},t.prototype.getLabelPoint=function(e,t,i){var n,r=1,o=e.content[i];this.isToMiddle(t)?n=this.getMiddlePoint(t.points):(1===e.content.length&&0===i?i=1:0===i&&(r=-1),n=this.getArcPoint(t,i));var s=e.offset*r,a=this.getPointAngle(n),l=e.labelEmit,h=this.getCirclePoint(a,s,n,l);return 0===h.r?h.content="":(h.content=o,h.angle=a,h.color=t.color),h.rotate=e.autoRotate?this.getLabelRotate(a,s,l):e.rotate,h.start={x:n.x,y:n.y},h},t.prototype.getArcPoint=function(e,t){return(void 0===t&&(t=0),(0,em.kJ)(e.x)||(0,em.kJ)(e.y))?{x:(0,em.kJ)(e.x)?e.x[t]:e.x,y:(0,em.kJ)(e.y)?e.y[t]:e.y}:{x:e.x,y:e.y}},t.prototype.getPointAngle=function(e){return rr(this.getCoordinate(),e)},t.prototype.getCirclePoint=function(e,t,i,n){var r=this.getCoordinate(),o=r.getCenter(),s=ri(r,i);if(0===s)return(0,ef.pi)((0,ef.pi)({},o),{r:s});var a=e;return r.isTransposed&&s>t&&!n?a=e+2*Math.asin(t/(2*s)):s+=t,{x:o.x+s*Math.cos(a),y:o.y+s*Math.sin(a),r:s}},t.prototype.getLabelRotate=function(e,t,i){var n=e+lE;return i&&(n-=lE),n&&(n>lE?n-=Math.PI:n<-lE&&(n+=Math.PI)),n},t.prototype.getMiddlePoint=function(e){var t=this.getCoordinate(),i=e.length,n={x:0,y:0};return(0,em.S6)(e,function(e){n.x+=e.x,n.y+=e.y}),n.x/=i,n.y/=i,n=t.convert(n)},t.prototype.isToMiddle=function(e){return e.x.length>2},t}(o3),lC=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.defaultLayout="distribute",t}return(0,ef.ZT)(t,e),t.prototype.getDefaultLabelCfg=function(t,i){var n=e.prototype.getDefaultLabelCfg.call(this,t,i);return(0,em.b$)({},n,(0,em.U2)(this.geometry.theme,"pieLabels",{}))},t.prototype.getLabelOffset=function(t){return e.prototype.getLabelOffset.call(this,t)||0},t.prototype.getLabelRotate=function(e,t,i){var n;return t<0&&((n=e)>Math.PI/2&&(n-=Math.PI),n<-Math.PI/2&&(n+=Math.PI)),n},t.prototype.getLabelAlign=function(e){var t,i=this.getCoordinate().getCenter();return t=e.angle<=Math.PI/2&&e.x>=i.x?"left":"right",e.offset<=0&&(t="right"===t?"left":"right"),t},t.prototype.getArcPoint=function(e){return e},t.prototype.getPointAngle=function(e){var t,i=this.getCoordinate(),n={x:(0,em.kJ)(e.x)?e.x[0]:e.x,y:e.y[0]},r={x:(0,em.kJ)(e.x)?e.x[1]:e.x,y:e.y[1]},o=rr(i,n);if(e.points&&e.points[0].y===e.points[1].y)t=o;else{var s=rr(i,r);o>=s&&(s+=2*Math.PI),t=o+(s-o)/2}return t},t.prototype.getCirclePoint=function(e,t){var i=this.getCoordinate(),n=i.getCenter(),r=i.getRadius()+t;return(0,ef.pi)((0,ef.pi)({},n2(n.x,n.y,r,e)),{angle:e,r:r})},t}(l_);function lS(e,t,i){var n,r=e.filter(function(e){return!e.invisible});r.sort(function(e,t){return e.y-t.y});var o=!0,s=i.minY,a=Math.abs(s-i.maxY),l=0,h=Number.MIN_VALUE,u=r.map(function(e){return e.y>l&&(l=e.y),e.ya&&(a=l-s);o;)for(u.forEach(function(e){var t=(Math.min.apply(h,e.targets)+Math.max.apply(h,e.targets))/2;e.pos=Math.min(Math.max(h,t-e.size/2),a-e.size),e.pos=Math.max(0,e.pos)}),o=!1,n=u.length;n--;)if(n>0){var d=u[n-1],c=u[n];d.pos+d.size>c.pos&&(d.size+=c.size,d.targets=d.targets.concat(c.targets),d.pos+d.size>a&&(d.pos=a-d.size),u.splice(n,1),o=!0)}n=0,u.forEach(function(e){var i=s+t/2;e.targets.forEach(function(){r[n].y=e.pos+i,i+=t,n++})})}var ly=function(){function e(e){void 0===e&&(e={}),this.bitmap={};var t=e.xGap,i=e.yGap;this.xGap=void 0===t?1:t,this.yGap=void 0===i?8:i}return e.prototype.hasGap=function(e){for(var t=!0,i=this.bitmap,n=Math.round(e.minX),r=Math.round(e.maxX),o=Math.round(e.minY),s=Math.round(e.maxY),a=n;a<=r;a+=1){if(!i[a]){i[a]={};continue}if(a===n||a===r){for(var l=o;l<=s;l++)if(i[a][l]){t=!1;break}}else if(i[a][o]||i[a][s]){t=!1;break}}return t},e.prototype.fillGap=function(e){for(var t=this.bitmap,i=Math.round(e.minX),n=Math.round(e.maxX),r=Math.round(e.minY),o=Math.round(e.maxY),s=i;s<=n;s+=1)t[s]||(t[s]={});for(var s=i;s<=n;s+=this.xGap){for(var a=r;a<=o;a+=this.yGap)t[s][a]=!0;t[s][o]=!0}if(1!==this.yGap)for(var s=r;s<=o;s+=1)t[i][s]=!0,t[n][s]=!0;if(1!==this.xGap)for(var s=i;s<=n;s+=1)t[s][r]=!0,t[s][o]=!0},e.prototype.destroy=function(){this.bitmap={}},e}(),lT=io.AK;function lb(e){if(e.length>4)return[];var t=function(e,t){return[t.x-e.x,t.y-e.y]};return[t(e[0],e[1]),t(e[1],e[2])]}function lA(e,t,i){void 0===t&&(t=0),void 0===i&&(i={x:0,y:0});var n=e.x,r=e.y;return{x:(n-i.x)*Math.cos(-t)+(r-i.y)*Math.sin(-t)+i.x,y:(i.x-n)*Math.sin(-t)+(r-i.y)*Math.cos(-t)+i.y}}function lR(e){var t=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],i=e.rotation;return i?[lA(t[0],i,t[0]),lA(t[1],i,t[0]),lA(t[2],i,t[0]),lA(t[3],i,t[0])]:t}function lL(e,t){if(e.length>4)return{min:0,max:0};var i=[];return e.forEach(function(e){i.push(lT([e.x,e.y],t))}),{min:Math.min.apply(Math,i),max:Math.max.apply(Math,i)}}function lN(e){return(0,em.hj)(e)&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0}function lI(e){return Object.values(e).every(lN)}var lw={"#5B8FF9":!0},lO=function(e){var t=eQ.toRGB(e).toUpperCase();if(lw[t])return lw[t];var i=eQ.rgb2arr(t);return(299*i[0]+587*i[1]+114*i[2])/1e3<128};function lx(e,t,i){return e.some(function(e){return i(e,t)})}function lD(e,t){return lx(e,t,function(e,t){var i,n,r=o2(e),o=o2(t);return i=r.getCanvasBBox(),n=o.getCanvasBBox(),Math.max(0,Math.min(i.x+i.width+2,n.x+n.width+2)-Math.max(i.x-2,n.x-2))*Math.max(0,Math.min(i.y+i.height+2,n.y+n.height+2)-Math.max(i.y-2,n.y-2))>0})}function lM(e,t,i){return e.some(function(e){return i(e,t)})}function lk(e,t){return lM(e,t,function(e,t){var i,n,r=o2(e),o=o2(t);return i=r.getCanvasBBox(),n=o.getCanvasBBox(),Math.max(0,Math.min(i.x+i.width+2,n.x+n.width+2)-Math.max(i.x-2,n.x-2))*Math.max(0,Math.min(i.y+i.height+2,n.y+n.height+2)-Math.max(i.y-2,n.y-2))>0})}var lP=(0,em.HP)(function(e,t){void 0===t&&(t={});var i=t.fontSize,n=t.fontFamily,r=t.fontWeight,o=t.fontStyle,s=t.fontVariant,a=(Y||(Y=document.createElement("canvas").getContext("2d")),Y);return a.font=[o,s,r,i+"px",n].join(" "),a.measureText((0,em.HD)(e)?e:"").width},function(e,t){return void 0===t&&(t={}),(0,ef.ev)([e],(0,em.VO)(t),!0).join("")}),lF=function(e,t,i){var n,r,o,s=lP("...",i);n=(0,em.HD)(e)?e:(0,em.BB)(e);var a=t,l=[];if(lP(e,i)<=t)return e;for(;!((o=lP(r=n.substr(0,16),i))+s>a)||!(o>a);)if(l.push(r),a-=o,!(n=n.substr(16)))return l.join("");for(;!((o=lP(r=n.substr(0,1),i))+s>a);)if(l.push(r),a-=o,!(n=n.substr(1)))return l.join("");return l.join("")+"..."};function lB(e,t,i,n,r){var o,s,a,l,h,u,d=i.start,c=i.end,g=i.getWidth(),p=i.getHeight();"y"===r?(h=d.x+g/2,u=n.yd.x?n.x:d.x,u=d.y+p/2):"xy"===r&&(i.isPolar?(h=i.getCenter().x,u=i.getCenter().y):(h=(d.x+c.x)/2,u=(d.y+c.y)/2));var f=(a=(o=[h,u])[0],l=o[1],e.applyToMatrix([a,l,1]),"x"===r?(e.setMatrix(it.vs(e.getMatrix(),[["t",-a,-l],["s",.01,1],["t",a,l]])),s=it.vs(e.getMatrix(),[["t",-a,-l],["s",100,1],["t",a,l]])):"y"===r?(e.setMatrix(it.vs(e.getMatrix(),[["t",-a,-l],["s",1,.01],["t",a,l]])),s=it.vs(e.getMatrix(),[["t",-a,-l],["s",1,100],["t",a,l]])):"xy"===r&&(e.setMatrix(it.vs(e.getMatrix(),[["t",-a,-l],["s",.01,.01],["t",a,l]])),s=it.vs(e.getMatrix(),[["t",-a,-l],["s",100,100],["t",a,l]])),s);e.animate({matrix:f},t)}function lU(e,t){var i,n=sC(e,t),r=n.startAngle,o=n.endAngle;return!(0,em.vQ)(r,-(.5*Math.PI))&&r<-(.5*Math.PI)&&(r+=2*Math.PI),!(0,em.vQ)(o,-(.5*Math.PI))&&o<-(.5*Math.PI)&&(o+=2*Math.PI),0===t[5]&&(r=(i=[o,r])[0],o=i[1]),(0,em.vQ)(r,1.5*Math.PI)&&(r=-.5*Math.PI),(0,em.vQ)(o,-.5*Math.PI)&&(o=1.5*Math.PI),{startAngle:r,endAngle:o}}function lH(e){var t;return"M"===e[0]||"L"===e[0]?t=[e[1],e[2]]:("a"===e[0]||"A"===e[0]||"C"===e[0])&&(t=[e[e.length-2],e[e.length-1]]),t}function lV(e){var t,i,n,r=e.filter(function(e){return"A"===e[0]||"a"===e[0]});if(0===r.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var o=r[0],s=r.length>1?r[1]:r[0],a=e.indexOf(o),l=e.indexOf(s),h=lH(e[a-1]),u=lH(e[l-1]),d=lU(h,o),c=d.startAngle,g=d.endAngle,p=lU(u,s),f=p.startAngle,m=p.endAngle;(0,em.vQ)(c,f)&&(0,em.vQ)(g,m)?(i=c,n=g):(i=Math.min(c,f),n=Math.max(g,m));var v=o[1],E=r[r.length-1][1];return v=0;o--)for(var s=this.getFacetsByLevel(e,o),a=0;a=i){var r=n.parsePosition([e[s],e[o.field]]);r&&u.push(r)}if(e[s]===h)return!1}),u},t.prototype.parsePercentPosition=function(e){var t=parseFloat(e[0])/100,i=parseFloat(e[1])/100,n=this.view.getCoordinate(),r=n.start,o=n.end,s={x:Math.min(r.x,o.x),y:Math.min(r.y,o.y)};return{x:n.getWidth()*t+s.x,y:n.getHeight()*i+s.y}},t.prototype.getCoordinateBBox=function(){var e=this.view.getCoordinate(),t=e.start,i=e.end,n=e.getWidth(),r=e.getHeight(),o={x:Math.min(t.x,i.x),y:Math.min(t.y,i.y)};return{x:o.x,y:o.y,minX:o.x,minY:o.y,maxX:o.x+n,maxY:o.y+r,width:n,height:r}},t.prototype.getAnnotationCfg=function(e,t,i){var n=this,r=this.view.getCoordinate(),o=this.view.getCanvas(),s={};if((0,em.UM)(t))return null;if("arc"===e){var a=t.start,l=t.end,h=(0,ef._T)(t,["start","end"]),u=this.parsePosition(a),d=this.parsePosition(l),c=rr(r,u),g=rr(r,d);c>g&&(g=2*Math.PI+g),s=(0,ef.pi)((0,ef.pi)({},h),{center:r.getCenter(),radius:ri(r,u),startAngle:c,endAngle:g})}else if("image"===e){var a=t.start,l=t.end,h=(0,ef._T)(t,["start","end"]);s=(0,ef.pi)((0,ef.pi)({},h),{start:this.parsePosition(a),end:this.parsePosition(l),src:t.src})}else if("line"===e){var a=t.start,l=t.end,h=(0,ef._T)(t,["start","end"]);s=(0,ef.pi)((0,ef.pi)({},h),{start:this.parsePosition(a),end:this.parsePosition(l),text:(0,em.U2)(t,"text",null)})}else if("region"===e){var a=t.start,l=t.end,h=(0,ef._T)(t,["start","end"]);s=(0,ef.pi)((0,ef.pi)({},h),{start:this.parsePosition(a),end:this.parsePosition(l)})}else if("text"===e){var p=this.view.getData(),f=t.position,m=t.content,h=(0,ef._T)(t,["position","content"]),v=m;(0,em.mf)(m)&&(v=m(p)),s=(0,ef.pi)((0,ef.pi)((0,ef.pi)({},this.parsePosition(f)),h),{content:v})}else if("dataMarker"===e){var f=t.position,E=t.point,_=t.line,C=t.text,S=t.autoAdjust,y=t.direction,h=(0,ef._T)(t,["position","point","line","text","autoAdjust","direction"]);s=(0,ef.pi)((0,ef.pi)((0,ef.pi)({},h),this.parsePosition(f)),{coordinateBBox:this.getCoordinateBBox(),point:E,line:_,text:C,autoAdjust:S,direction:y})}else if("dataRegion"===e){var a=t.start,l=t.end,T=t.region,C=t.text,b=t.lineLength,h=(0,ef._T)(t,["start","end","region","text","lineLength"]);s=(0,ef.pi)((0,ef.pi)({},h),{points:this.getRegionPoints(a,l),region:T,text:C,lineLength:b})}else if("regionFilter"===e){var a=t.start,l=t.end,A=t.apply,R=t.color,h=(0,ef._T)(t,["start","end","apply","color"]),L=this.view.geometries,N=[],I=function(e){e&&(e.isGroup()?e.getChildren().forEach(function(e){return I(e)}):N.push(e))};(0,em.S6)(L,function(e){A?(0,em.FX)(A,e.type)&&(0,em.S6)(e.elements,function(e){I(e.shape)}):(0,em.S6)(e.elements,function(e){I(e.shape)})}),s=(0,ef.pi)((0,ef.pi)({},h),{color:R,shapes:N,start:this.parsePosition(a),end:this.parsePosition(l)})}else if("shape"===e){var w=t.render,O=(0,ef._T)(t,["render"]);s=(0,ef.pi)((0,ef.pi)({},O),{render:function(e){if((0,em.mf)(t.render))return w(e,n.view,{parsePosition:n.parsePosition.bind(n)})}})}else if("html"===e){var x=t.html,f=t.position,O=(0,ef._T)(t,["html","position"]);s=(0,ef.pi)((0,ef.pi)((0,ef.pi)({},O),this.parsePosition(f)),{parent:o.get("el").parentNode,html:function(e){return(0,em.mf)(x)?x(e,n.view):x}})}var D=(0,em.b$)({},i,(0,ef.pi)((0,ef.pi)({},s),{top:t.top,style:t.style,offsetX:t.offsetX,offsetY:t.offsetY}));return"html"!==e&&(D.container=this.getComponentContainer(D)),D.animate=this.view.getOptions().animate&&D.animate&&(0,em.U2)(t,"animate",D.animate),D.animateOption=(0,em.b$)({},ox,D.animateOption,t.animateOption),D},t.prototype.isTop=function(e){return(0,em.U2)(e,"top",!0)},t.prototype.getComponentContainer=function(e){return this.isTop(e)?this.foregroundContainer:this.backgroundContainer},t.prototype.getAnnotationTheme=function(e){return(0,em.U2)(this.view.getTheme(),["components","annotation",e],{})},t.prototype.updateOrCreate=function(e){var t=this.cache.get(this.getCacheKey(e));if(t){var i=e.type,n=this.getAnnotationTheme(i),r=this.getAnnotationCfg(i,e,n);n7(r,["container"]),t.component.update(r),(0,em.q9)(lQ,e.type)&&t.component.render()}else(t=this.createAnnotation(e))&&(t.component.init(),(0,em.q9)(lQ,e.type)&&t.component.render());return t},t.prototype.syncCache=function(e){var t=this,i=new Map(this.cache);return e.forEach(function(e,t){i.set(t,e)}),i.forEach(function(e,n){(0,em.sE)(t.option,function(e){return n===t.getCacheKey(e)})||(e.component.destroy(),i.delete(n))}),i},t.prototype.getCacheKey=function(e){return e},t}(oL);function l1(e,t){var i=(0,em.b$)({},(0,em.U2)(e,["components","axis","common"]),(0,em.U2)(e,["components","axis",t]));return(0,em.U2)(i,["grid"],{})}function l2(e,t,i,n){var r=[],o=t.getTicks();return e.isPolar&&o.push({value:1,text:"",tickValue:""}),o.reduce(function(t,o,s){var a=o.value;if(n)r.push({points:[e.convert("y"===i?{x:0,y:a}:{x:a,y:0}),e.convert("y"===i?{x:1,y:a}:{x:a,y:1})]});else if(s){var l=(t.value+a)/2;r.push({points:[e.convert("y"===i?{x:0,y:l}:{x:l,y:0}),e.convert("y"===i?{x:1,y:l}:{x:l,y:1})]})}return o},o[0]),r}function l4(e,t,i,n,r){var o=t.values.length,s=[],a=i.getTicks();return a.reduce(function(t,i){var a=t?t.value:i.value,l=i.value,h=(a+l)/2;return"x"===r?s.push({points:[e.convert({x:n?l:h,y:0}),e.convert({x:n?l:h,y:1})]}):s.push({points:(0,em.UI)(Array(o+1),function(t,i){return e.convert({x:i/o,y:n?l:h})})}),i},a[0]),s}function l5(e,t){var i=(0,em.U2)(t,"grid");if(null===i)return!1;var n=(0,em.U2)(e,"grid");return!(void 0===i&&null===n)}var l6=["container"],l3=(0,ef.pi)((0,ef.pi)({},ox),{appear:null}),l9=function(e){function t(t){var i=e.call(this,t)||this;return i.cache=new Map,i.gridContainer=i.view.getLayer(O.BG).addGroup(),i.gridForeContainer=i.view.getLayer(O.FORE).addGroup(),i.axisContainer=i.view.getLayer(O.BG).addGroup(),i.axisForeContainer=i.view.getLayer(O.FORE).addGroup(),i}return(0,ef.ZT)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.render=function(){this.update()},t.prototype.layout=function(){var e=this,t=this.view.getCoordinate();(0,em.S6)(this.getComponents(),function(i){var n,r=i.component,o=i.direction,s=i.type,a=i.extra,l=a.dim,h=a.scale,u=a.alignTick;s===D.AXIS?t.isPolar?"x"===l?n=t.isTransposed?rh(t,o):rp(t):"y"===l&&(n=t.isTransposed?rp(t):rh(t,o)):n=rh(t,o):s===D.GRID&&(n=t.isPolar?{items:t.isTransposed?"x"===l?l4(t,e.view.getYScales()[0],h,u,l):l2(t,h,l,u):"x"===l?l2(t,h,l,u):l4(t,e.view.getXScale(),h,u,l),center:e.view.getCoordinate().getCenter()}:{items:l2(t,h,l,u)}),r.update(n)})},t.prototype.update=function(){this.option=this.view.getOptions().axes;var e=new Map;this.updateXAxes(e),this.updateYAxes(e);var t=new Map;this.cache.forEach(function(i,n){e.has(n)?t.set(n,i):i.component.destroy()}),this.cache=t},t.prototype.clear=function(){e.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},t.prototype.getComponents=function(){var e=[];return this.cache.forEach(function(t){e.push(t)}),e},t.prototype.updateXAxes=function(e){var t=this.view.getXScale();if(t&&!t.isIdentity){var i=rf(this.option,t.field);if(!1!==i){var n=rm(i,x.BOTTOM),r=O.BG,o=this.view.getCoordinate(),s=this.getId("axis",t.field),a=this.getId("grid",t.field);if(o.isRect){var l=this.cache.get(s);if(l){var h=this.getLineAxisCfg(t,i,n);n7(h,l6),l.component.update(h),e.set(s,l)}else l=this.createLineAxis(t,i,r,n,"x"),this.cache.set(s,l),e.set(s,l);var u=this.cache.get(a);if(u){var h=this.getLineGridCfg(t,i,n,"x");n7(h,l6),u.component.update(h),e.set(a,u)}else(u=this.createLineGrid(t,i,r,n,"x"))&&(this.cache.set(a,u),e.set(a,u))}else if(o.isPolar){var l=this.cache.get(s);if(l){var h=o.isTransposed?this.getLineAxisCfg(t,i,x.RADIUS):this.getCircleAxisCfg(t,i,n);n7(h,l6),l.component.update(h),e.set(s,l)}else{if(o.isTransposed){if((0,em.o8)(i))return;l=this.createLineAxis(t,i,r,x.RADIUS,"x")}else l=this.createCircleAxis(t,i,r,n,"x");this.cache.set(s,l),e.set(s,l)}var u=this.cache.get(a);if(u){var h=o.isTransposed?this.getCircleGridCfg(t,i,x.RADIUS,"x"):this.getLineGridCfg(t,i,x.CIRCLE,"x");n7(h,l6),u.component.update(h),e.set(a,u)}else{if(o.isTransposed){if((0,em.o8)(i))return;u=this.createCircleGrid(t,i,r,x.RADIUS,"x")}else u=this.createLineGrid(t,i,r,x.CIRCLE,"x");u&&(this.cache.set(a,u),e.set(a,u))}}}}},t.prototype.updateYAxes=function(e){var t=this,i=this.view.getYScales();(0,em.S6)(i,function(i,n){if(i&&!i.isIdentity){var r=i.field,o=rf(t.option,r);if(!1!==o){var s=O.BG,a=t.getId("axis",r),l=t.getId("grid",r),h=t.view.getCoordinate();if(h.isRect){var u=rm(o,0===n?x.LEFT:x.RIGHT),d=t.cache.get(a);if(d){var c=t.getLineAxisCfg(i,o,u);n7(c,l6),d.component.update(c),e.set(a,d)}else d=t.createLineAxis(i,o,s,u,"y"),t.cache.set(a,d),e.set(a,d);var g=t.cache.get(l);if(g){var c=t.getLineGridCfg(i,o,u,"y");n7(c,l6),g.component.update(c),e.set(l,g)}else(g=t.createLineGrid(i,o,s,u,"y"))&&(t.cache.set(l,g),e.set(l,g))}else if(h.isPolar){var d=t.cache.get(a);if(d){var c=h.isTransposed?t.getCircleAxisCfg(i,o,x.CIRCLE):t.getLineAxisCfg(i,o,x.RADIUS);n7(c,l6),d.component.update(c),e.set(a,d)}else{if(h.isTransposed){if((0,em.o8)(o))return;d=t.createCircleAxis(i,o,s,x.CIRCLE,"y")}else d=t.createLineAxis(i,o,s,x.RADIUS,"y");t.cache.set(a,d),e.set(a,d)}var g=t.cache.get(l);if(g){var c=h.isTransposed?t.getLineGridCfg(i,o,x.CIRCLE,"y"):t.getCircleGridCfg(i,o,x.RADIUS,"y");n7(c,l6),g.component.update(c),e.set(l,g)}else{if(h.isTransposed){if((0,em.o8)(o))return;g=t.createLineGrid(i,o,s,x.CIRCLE,"y")}else g=t.createCircleGrid(i,o,s,x.RADIUS,"y");g&&(t.cache.set(l,g),e.set(l,g))}}}}})},t.prototype.createLineAxis=function(e,t,i,n,r){var o={component:new ns(this.getLineAxisCfg(e,t,n)),layer:i,direction:n===x.RADIUS?x.NONE:n,type:D.AXIS,extra:{dim:r,scale:e}};return o.component.set("field",e.field),o.component.init(),o},t.prototype.createLineGrid=function(e,t,i,n,r){var o=this.getLineGridCfg(e,t,n,r);if(o){var s={component:new nE(o),layer:i,direction:x.NONE,type:D.GRID,extra:{dim:r,scale:e,alignTick:(0,em.U2)(o,"alignTick",!0)}};return s.component.init(),s}},t.prototype.createCircleAxis=function(e,t,i,n,r){var o={component:new na(this.getCircleAxisCfg(e,t,n)),layer:i,direction:n,type:D.AXIS,extra:{dim:r,scale:e}};return o.component.set("field",e.field),o.component.init(),o},t.prototype.createCircleGrid=function(e,t,i,n,r){var o=this.getCircleGridCfg(e,t,n,r);if(o){var s={component:new nv(o),layer:i,direction:x.NONE,type:D.GRID,extra:{dim:r,scale:e,alignTick:(0,em.U2)(o,"alignTick",!0)}};return s.component.init(),s}},t.prototype.getLineAxisCfg=function(e,t,i){var n=(0,em.U2)(t,["top"])?this.axisForeContainer:this.axisContainer,r=this.view.getCoordinate(),o=rh(r,i),s=rv(e,t),a=rc(this.view.getTheme(),i),l=(0,em.U2)(t,["title"])?(0,em.b$)({title:{style:{text:s}}},{title:rg(this.view.getTheme(),i,t.title)},t):t,h=(0,em.b$)((0,ef.pi)((0,ef.pi)({container:n},o),{ticks:e.getTicks().map(function(e){return{id:""+e.tickValue,name:e.text,value:e.value}}),verticalFactor:r.isPolar?-1*rd(o,r.getCenter()):rd(o,r.getCenter()),theme:a}),a,l),u=this.getAnimateCfg(h),d=u.animate,c=u.animateOption;h.animateOption=c,h.animate=d;var g=ru(o),p=(0,em.U2)(h,"verticalLimitLength",g?1/3:.5);if(p<=1){var f=this.view.getCanvas().get("width"),m=this.view.getCanvas().get("height");h.verticalLimitLength=p*(g?f:m)}return h},t.prototype.getLineGridCfg=function(e,t,i,n){if(l5(rc(this.view.getTheme(),i),t)){var r=l1(this.view.getTheme(),i),o=(0,em.b$)({container:(0,em.U2)(t,["top"])?this.gridForeContainer:this.gridContainer},r,(0,em.U2)(t,"grid"),this.getAnimateCfg(t));return o.items=l2(this.view.getCoordinate(),e,n,(0,em.U2)(o,"alignTick",!0)),o}},t.prototype.getCircleAxisCfg=function(e,t,i){var n=(0,em.U2)(t,["top"])?this.axisForeContainer:this.axisContainer,r=this.view.getCoordinate(),o=e.getTicks().map(function(e){return{id:""+e.tickValue,name:e.text,value:e.value}});e.isCategory||Math.abs(r.endAngle-r.startAngle)!==2*Math.PI||o.pop();var s=rv(e,t),a=rc(this.view.getTheme(),x.CIRCLE),l=(0,em.U2)(t,["title"])?(0,em.b$)({title:{style:{text:s}}},{title:rg(this.view.getTheme(),i,t.title)},t):t,h=(0,em.b$)((0,ef.pi)((0,ef.pi)({container:n},rp(this.view.getCoordinate())),{ticks:o,verticalFactor:1,theme:a}),a,l),u=this.getAnimateCfg(h),d=u.animate,c=u.animateOption;return h.animate=d,h.animateOption=c,h},t.prototype.getCircleGridCfg=function(e,t,i,n){if(l5(rc(this.view.getTheme(),i),t)){var r=l1(this.view.getTheme(),x.RADIUS),o=(0,em.b$)({container:(0,em.U2)(t,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},r,(0,em.U2)(t,"grid"),this.getAnimateCfg(t)),s=(0,em.U2)(o,"alignTick",!0),a="x"===n?this.view.getYScales()[0]:this.view.getXScale();return o.items=l4(this.view.getCoordinate(),a,e,s,n),o}},t.prototype.getId=function(e,t){return e+"-"+t+"-"+this.view.getCoordinate().type},t.prototype.getAnimateCfg=function(e){return{animate:this.view.getOptions().animate&&(0,em.U2)(e,"animate"),animateOption:e&&e.animateOption?(0,em.b$)({},l3,e.animateOption):l3}},t}(oL);function l7(e,t,i){return i===x.TOP?[e.minX+e.width/2-t.width/2,e.minY]:i===x.BOTTOM?[e.minX+e.width/2-t.width/2,e.maxY-t.height]:i===x.LEFT?[e.minX,e.minY+e.height/2-t.height/2]:i===x.RIGHT?[e.maxX-t.width,e.minY+e.height/2-t.height/2]:i===x.TOP_LEFT||i===x.LEFT_TOP?[e.tl.x,e.tl.y]:i===x.TOP_RIGHT||i===x.RIGHT_TOP?[e.tr.x-t.width,e.tr.y]:i===x.BOTTOM_LEFT||i===x.LEFT_BOTTOM?[e.bl.x,e.bl.y-t.height]:i===x.BOTTOM_RIGHT||i===x.RIGHT_BOTTOM?[e.br.x-t.width,e.br.y-t.height]:[0,0]}function l8(e,t){return(0,em.jn)(e)?!1!==e&&{}:(0,em.U2)(e,[t],e)}function he(e){return(0,em.U2)(e,"position",x.BOTTOM)}var ht=function(e){function t(t){var i=e.call(this,t)||this;return i.container=i.view.getLayer(O.FORE).addGroup(),i}return(0,ef.ZT)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.render=function(){this.update()},t.prototype.layout=function(){var e=this;this.layoutBBox=this.view.viewBBox,(0,em.S6)(this.components,function(t){var i=t.component,n=t.direction,r=st(n),o=i.get("maxWidthRatio"),s=i.get("maxHeightRatio"),a=e.getCategoryLegendSizeCfg(r,o,s),l=i.get("maxWidth"),h=i.get("maxHeight");i.update({maxWidth:Math.min(a.maxWidth,l||0),maxHeight:Math.min(a.maxHeight,h||0)});var u=i.get("padding"),d=i.getLayoutBBox(),c=new re(d.x,d.y,d.width,d.height).expand(u),g=l7(e.view.viewBBox,c,n),p=g[0],f=g[1],m=l7(e.layoutBBox,c,n),v=m[0],E=m[1],_=0,C=0;n.startsWith("top")||n.startsWith("bottom")?(_=p,C=E):(_=v,C=f),i.setLocation({x:_+u[3],y:C+u[0]}),e.layoutBBox=e.layoutBBox.cut(c,n)})},t.prototype.update=function(){var e=this;this.option=this.view.getOptions().legends;var t={};if((0,em.U2)(this.option,"custom")){var i="global-custom",n=this.getComponentById(i);if(n){var r=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);n7(r,["container"]),n.component.update(r),t[i]=!0}else{var o=this.createCustomLegend(void 0,void 0,void 0,this.option);if(o){o.init();var s=O.FORE,a=he(this.option);this.components.push({id:i,component:o,layer:s,direction:a,type:D.LEGEND,extra:void 0}),t[i]=!0}}}else this.loopLegends(function(i,n,r){var o=e.getId(r.field),s=e.getComponentById(o);if(s){var a=void 0,l=l8(e.option,r.field);!1!==l&&((0,em.U2)(l,"custom")?a=e.getCategoryCfg(i,n,r,l,!0):r.isLinear?a=e.getContinuousCfg(i,n,r,l):r.isCategory&&(a=e.getCategoryCfg(i,n,r,l))),a&&(n7(a,["container"]),s.direction=he(l),s.component.update(a),t[o]=!0)}else{var h=e.createFieldLegend(i,n,r);h&&(h.component.init(),e.components.push(h),t[o]=!0)}});var l=[];(0,em.S6)(this.getComponents(),function(e){t[e.id]?l.push(e):e.component.destroy()}),this.components=l},t.prototype.clear=function(){e.prototype.clear.call(this),this.container.clear()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.container.remove(!0)},t.prototype.getGeometries=function(e){var t=this,i=e.geometries;return(0,em.S6)(e.views,function(e){i=i.concat(t.getGeometries(e))}),i},t.prototype.loopLegends=function(e){if(this.view.getRootView()===this.view){var t=this.getGeometries(this.view),i={};(0,em.S6)(t,function(t){var n=t.getGroupAttributes();(0,em.S6)(n,function(n){var r=n.getScale(n.type);r&&"identity"!==r.type&&!i[r.field]&&(e(t,n,r),i[r.field]=!0)})})}},t.prototype.createFieldLegend=function(e,t,i){var n,r=l8(this.option,i.field),o=O.FORE,s=he(r);if(!1!==r&&((0,em.U2)(r,"custom")?n=this.createCustomLegend(e,t,i,r):i.isLinear?n=this.createContinuousLegend(e,t,i,r):i.isCategory&&(n=this.createCategoryLegend(e,t,i,r))),n)return n.set("field",i.field),{id:this.getId(i.field),component:n,layer:o,direction:s,type:D.LEGEND,extra:{scale:i}}},t.prototype.createCustomLegend=function(e,t,i,n){var r=this.getCategoryCfg(e,t,i,n,!0);return new nA(r)},t.prototype.createContinuousLegend=function(e,t,i,n){var r=this.getContinuousCfg(e,t,i,n7(n,["value"]));return new nR(r)},t.prototype.createCategoryLegend=function(e,t,i,n){var r=this.getCategoryCfg(e,t,i,n);return new nA(r)},t.prototype.getContinuousCfg=function(e,t,i,n){var r=i.getTicks(),o=(0,em.sE)(r,function(e){return 0===e.value}),s=(0,em.sE)(r,function(e){return 1===e.value}),a=r.map(function(e){var n=e.value,r=e.tickValue,o=t.mapping(i.invert(n)).join("");return{value:r,attrValue:o,color:o,scaleValue:n}});o||a.push({value:i.min,attrValue:t.mapping(i.invert(0)).join(""),color:t.mapping(i.invert(0)).join(""),scaleValue:0}),s||a.push({value:i.max,attrValue:t.mapping(i.invert(1)).join(""),color:t.mapping(i.invert(1)).join(""),scaleValue:1}),a.sort(function(e,t){return e.value-t.value});var l={min:(0,em.YM)(a).value,max:(0,em.Z$)(a).value,colors:[],rail:{type:t.type},track:{}};"size"===t.type&&(l.track={style:{fill:"size"===t.type?this.view.getTheme().defaultColor:void 0}}),"color"===t.type&&(l.colors=a.map(function(e){return e.attrValue}));var h=this.container,u=st(he(n)),d=(0,em.U2)(n,"title");return d&&(d=(0,em.b$)({text:ra(i)},d)),l.container=h,l.layout=u,l.title=d,l.animateOption=ox,this.mergeLegendCfg(l,n,"continuous")},t.prototype.getCategoryCfg=function(e,t,i,n,r){var o=this.container,s=(0,em.U2)(n,"position",x.BOTTOM),a=sn(this.view.getTheme(),s),l=(0,em.U2)(a,["marker"]),h=(0,em.U2)(n,"marker"),u=st(s),d=(0,em.U2)(a,["pageNavigator"]),c=(0,em.U2)(n,"pageNavigator"),g=r?n.items.map(function(e,t){var i=h;(0,em.mf)(i)&&(i=i(e.name,t,(0,em.b$)({},l,e)));var n=(0,em.mf)(e.marker)?e.marker(e.name,t,(0,em.b$)({},l,e)):e.marker,r=(0,em.b$)({},l,i,n);return se(r),e.marker=r,e}):si(this.view,e,t,l,h),p=(0,em.U2)(n,"title");p&&(p=(0,em.b$)({text:i?ra(i):""},p));var f=(0,em.U2)(n,"maxWidthRatio"),m=(0,em.U2)(n,"maxHeightRatio"),v=this.getCategoryLegendSizeCfg(u,f,m);v.container=o,v.layout=u,v.items=g,v.title=p,v.animateOption=ox,v.pageNavigator=(0,em.b$)({},d,c);var E=this.mergeLegendCfg(v,n,s);E.reversed&&E.items.reverse();var _=(0,em.U2)(E,"maxItemWidth");return _&&_<=1&&(E.maxItemWidth=this.view.viewBBox.width*_),E},t.prototype.mergeLegendCfg=function(e,t,i){var n=i.split("-")[0],r=sn(this.view.getTheme(),n);return(0,em.b$)({},r,e,t)},t.prototype.getId=function(e){return this.name+"-"+e},t.prototype.getComponentById=function(e){return(0,em.sE)(this.components,function(t){return t.id===e})},t.prototype.getCategoryLegendSizeCfg=function(e,t,i){void 0===t&&(t=.25),void 0===i&&(i=.25);var n=this.view.viewBBox,r=n.width,o=n.height;return"vertical"===e?{maxWidth:r*t,maxHeight:o}:{maxWidth:r,maxHeight:o*i}},t}(oL),hi=function(e){function t(t){var i=e.call(this,t)||this;return i.onChangeFn=em.ZT,i.resetMeasure=function(){i.clear()},i.onValueChange=function(e){var t=e[0],n=e[1];i.start=t,i.end=n,i.changeViewData(t,n)},i.container=i.view.getLayer(O.FORE).addGroup(),i.onChangeFn=(0,em.P2)(i.onValueChange,20,{leading:!0}),i.width=0,i.view.on(M.BEFORE_CHANGE_DATA,i.resetMeasure),i.view.on(M.BEFORE_CHANGE_SIZE,i.resetMeasure),i}return(0,ef.ZT)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(M.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(M.BEFORE_CHANGE_SIZE,this.resetMeasure)},t.prototype.init=function(){},t.prototype.render=function(){this.option=this.view.getOptions().slider;var e=this.getSliderCfg(),t=e.start,i=e.end;(0,em.UM)(this.start)&&(this.start=t,this.end=i);var n=this.view.getOptions().data;this.option&&!(0,em.xb)(n)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},t.prototype.layout=function(){var e=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout(function(){e.view.destroyed||e.changeViewData(e.start,e.end)},0)),this.slider){var t=this.view.coordinateBBox.width,i=this.slider.component.get("padding"),n=i[0],r=(i[1],i[2],i[3]),o=this.slider.component.getLayoutBBox(),s=new re(o.x,o.y,Math.min(o.width,t),o.height).expand(i),a=this.getMinMaxText(this.start,this.end),l=a.minText,h=a.maxText,u=l7(this.view.viewBBox,s,x.BOTTOM),d=(u[0],u[1]),c=l7(this.view.coordinateBBox,s,x.BOTTOM),g=c[0];c[1],this.slider.component.update((0,ef.pi)((0,ef.pi)({},this.getSliderCfg()),{x:g+r,y:d+n,width:this.width,start:this.start,end:this.end,minText:l,maxText:h})),this.view.viewBBox=this.view.viewBBox.cut(s,x.BOTTOM)}},t.prototype.update=function(){this.render()},t.prototype.createSlider=function(){var e=this.getSliderCfg(),t=new nq((0,ef.pi)({container:this.container},e));return t.init(),{component:t,layer:O.FORE,direction:x.BOTTOM,type:D.SLIDER}},t.prototype.updateSlider=function(){var e=this.getSliderCfg();if(this.width){var t=this.getMinMaxText(this.start,this.end),i=t.minText,n=t.maxText;e=(0,ef.pi)((0,ef.pi)({},e),{width:this.width,start:this.start,end:this.end,minText:i,maxText:n})}return this.slider.component.update(e),this.slider},t.prototype.measureSlider=function(){var e=this.getSliderCfg().width;this.width=e},t.prototype.getSliderCfg=function(){var e={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if((0,em.Kn)(this.option)){var t=(0,ef.pi)({data:this.getData()},(0,em.U2)(this.option,"trendCfg",{}));e=(0,em.b$)({},e,this.getThemeOptions(),this.option),e=(0,ef.pi)((0,ef.pi)({},e),{trendCfg:t})}return e.start=(0,em.uZ)(Math.min((0,em.UM)(e.start)?0:e.start,(0,em.UM)(e.end)?1:e.end),0,1),e.end=(0,em.uZ)(Math.max((0,em.UM)(e.start)?0:e.start,(0,em.UM)(e.end)?1:e.end),0,1),e},t.prototype.getData=function(){var e=this.view.getOptions().data,t=this.view.getYScales()[0],i=this.view.getGroupScales();if(i.length){var n=i[0],r=n.field,o=n.ticks;return e.reduce(function(e,i){return i[r]===o[0]&&e.push(i[t.field]),e},[])}return e.map(function(e){return e[t.field]||0})},t.prototype.getThemeOptions=function(){var e=this.view.getTheme();return(0,em.U2)(e,["components","slider","common"],{})},t.prototype.getMinMaxText=function(e,t){var i=this.view.getOptions().data,n=this.view.getXScale(),r=(0,em.I)(i,n.field),o=(0,em.dp)(i);if(!n||!o)return{};var s=(0,em.dp)(r),a=Math.floor(e*(s-1)),l=Math.floor(t*(s-1)),h=(0,em.U2)(r,[a]),u=(0,em.U2)(r,[l]),d=this.getSliderCfg().formatter;return d&&(h=d(h,i[a],a),u=d(u,i[l],l)),{minText:h,maxText:u}},t.prototype.changeViewData=function(e,t){var i=this.view.getOptions().data,n=this.view.getXScale(),r=(0,em.dp)(i);if(n&&r){var o=(0,em.I)(i,n.field),s=(0,em.dp)(o),a=Math.floor(e*(s-1)),l=Math.floor(t*(s-1));this.view.filter(n.field,function(e,t){var i=o.indexOf(e);return!(i>-1)||n9(i,a,l)}),this.view.render(!0)}},t.prototype.getComponents=function(){return this.slider?[this.slider]:[]},t.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},t}(oL),hn=function(e){function t(t){var i=e.call(this,t)||this;return i.onChangeFn=em.ZT,i.resetMeasure=function(){i.clear()},i.onValueChange=function(e){var t=e.ratio,n=i.getValidScrollbarCfg().animate;i.ratio=(0,em.uZ)(t,0,1);var r=i.view.getOptions().animate;n||i.view.animate(!1),i.changeViewData(i.getScrollRange(),!0),i.view.animate(r)},i.container=i.view.getLayer(O.FORE).addGroup(),i.onChangeFn=(0,em.P2)(i.onValueChange,20,{leading:!0}),i.trackLen=0,i.thumbLen=0,i.ratio=0,i.view.on(M.BEFORE_CHANGE_DATA,i.resetMeasure),i.view.on(M.BEFORE_CHANGE_SIZE,i.resetMeasure),i}return(0,ef.ZT)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(M.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(M.BEFORE_CHANGE_SIZE,this.resetMeasure)},t.prototype.init=function(){},t.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},t.prototype.layout=function(){var e=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout(function(){e.view.destroyed||e.changeViewData(e.getScrollRange(),!0)})),this.scrollbar){var t=this.view.coordinateBBox.width,i=this.scrollbar.component.get("padding"),n=this.scrollbar.component.getLayoutBBox(),r=new re(n.x,n.y,Math.min(n.width,t),n.height).expand(i),o=this.getScrollbarComponentCfg(),s=void 0,a=void 0;if(o.isHorizontal){var l=l7(this.view.viewBBox,r,x.BOTTOM),h=l[0],u=l[1],d=l7(this.view.coordinateBBox,r,x.BOTTOM),c=d[0],g=d[1];s=c,a=u}else{var p=l7(this.view.viewBBox,r,x.RIGHT),h=p[0],u=p[1],f=l7(this.view.viewBBox,r,x.RIGHT),c=f[0],g=f[1];s=c,a=u}s+=i[3],a+=i[0],this.trackLen?this.scrollbar.component.update((0,ef.pi)((0,ef.pi)({},o),{x:s,y:a,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update((0,ef.pi)((0,ef.pi)({},o),{x:s,y:a})),this.view.viewBBox=this.view.viewBBox.cut(r,o.isHorizontal?x.BOTTOM:x.RIGHT)}},t.prototype.update=function(){this.render()},t.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},t.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},t.prototype.setValue=function(e){this.onValueChange({ratio:e})},t.prototype.getValue=function(){return this.ratio},t.prototype.getThemeOptions=function(){var e=this.view.getTheme();return(0,em.U2)(e,["components","scrollbar","common"],{})},t.prototype.getScrollbarTheme=function(e){var t=(0,em.U2)(this.view.getTheme(),["components","scrollbar"]),i=e||{},n=i.thumbHighlightColor,r=(0,ef._T)(i,["thumbHighlightColor"]);return{default:(0,em.b$)({},(0,em.U2)(t,["default","style"],{}),r),hover:(0,em.b$)({},(0,em.U2)(t,["hover","style"],{}),{thumbColor:n})}},t.prototype.measureScrollbar=function(){var e=this.view.getXScale(),t=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var i=this.getScrollbarComponentCfg(),n=i.trackLen,r=i.thumbLen;this.trackLen=n,this.thumbLen=r,this.xScaleCfg={field:e.field,values:e.values||[]},this.yScalesCfg=t},t.prototype.getScrollRange=function(){var e=Math.floor((this.cnt-this.step)*(0,em.uZ)(this.ratio,0,1)),t=Math.min(e+this.step-1,this.cnt-1);return[e,t]},t.prototype.changeViewData=function(e,t){var i=this,n=e[0],r=e[1],o=this.getValidScrollbarCfg().type,s=(0,em.I)(this.data,this.xScaleCfg.field),a="vertical"!==o?s:s.reverse();this.yScalesCfg.forEach(function(e){i.view.scale(e.field,{formatter:e.formatter,type:e.type,min:e.min,max:e.max})}),this.view.filter(this.xScaleCfg.field,function(e){var t=a.indexOf(e);return!(t>-1)||n9(t,n,r)}),this.view.render(!0)},t.prototype.createScrollbar=function(){var e=this.getValidScrollbarCfg().type,t=new nQ((0,ef.pi)((0,ef.pi)({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return t.init(),{component:t,layer:O.FORE,direction:"vertical"!==e?x.BOTTOM:x.RIGHT,type:D.SCROLLBAR}},t.prototype.updateScrollbar=function(){var e=this.getScrollbarComponentCfg(),t=this.trackLen?(0,ef.pi)((0,ef.pi)({},e),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):(0,ef.pi)({},e);return this.scrollbar.component.update(t),this.scrollbar},t.prototype.getStep=function(){if(this.step)return this.step;var e=this.view.coordinateBBox,t=this.getValidScrollbarCfg(),i=t.type,n=t.categorySize;return Math.floor(("vertical"!==i?e.width:e.height)/n)},t.prototype.getCnt=function(){if(this.cnt)return this.cnt;var e=this.view.getXScale(),t=this.getScrollbarData(),i=(0,em.I)(t,e.field);return(0,em.dp)(i)},t.prototype.getScrollbarComponentCfg=function(){var e=this.view,t=e.coordinateBBox,i=e.viewBBox,n=this.getValidScrollbarCfg(),r=n.type,o=n.padding,s=n.width,a=n.height,l=n.style,h="vertical"!==r,u=o[0],d=o[1],c=o[2],g=o[3],p=h?{x:t.minX+g,y:i.maxY-a-c}:{x:i.maxX-s-d,y:t.minY+u},f=this.getStep(),m=this.getCnt(),v=h?t.width-g-d:t.height-u-c,E=Math.max(v*(0,em.uZ)(f/m,0,1),20);return(0,ef.pi)((0,ef.pi)({},this.getThemeOptions()),{x:p.x,y:p.y,size:h?a:s,isHorizontal:h,trackLen:v,thumbLen:E,thumbOffset:0,theme:this.getScrollbarTheme(l)})},t.prototype.getValidScrollbarCfg=function(){var e={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0,style:{}};return(0,em.Kn)(this.option)&&(e=(0,ef.pi)((0,ef.pi)({},e),this.option)),(0,em.Kn)(this.option)&&this.option.padding||(e.padding=(e.type,[0,0,0,0])),e},t.prototype.getScrollbarData=function(){var e=this.view.getCoordinate(),t=this.getValidScrollbarCfg(),i=this.view.getOptions().data||[];return e.isReflect("y")&&"vertical"===t.type&&(i=(0,ef.ev)([],i,!0).reverse()),i},t}(oL),hr={fill:"#CCD6EC",opacity:.3},ho=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.show=function(e){var t=this.context.view,i=this.context.event,n=t.getController("tooltip").getTooltipCfg(),r=function(e,t,i){var n=function(e,t,i){for(var n=of(e,t,i),r=0,o=e.views;r1){for(var c=n[0],g=Math.abs(t.y-c[0].y),p=0,f=n;pd.maxY&&(d=t)):(t.minXd.maxX&&(d=t)),c.x=Math.min(t.minX,c.minX),c.y=Math.min(t.minY,c.minY),c.width=Math.max(t.maxX,c.maxX)-c.x,c.height=Math.max(t.maxY,c.maxY)-c.y});var g=t.backgroundGroup,p=t.coordinateBBox,f=void 0;if(h.isRect){var m=t.getXScale(),v=e||{},E=v.appendRatio,_=v.appendWidth;(0,em.UM)(_)&&(E=(0,em.UM)(E)?m.isLinear?0:.25:E,_=h.isTransposed?E*d.height:E*u.width);var C=void 0,S=void 0,y=void 0,T=void 0;h.isTransposed?(C=p.minX,S=Math.min(d.minY,u.minY)-_,y=p.width,T=c.height+2*_):(C=Math.min(u.minX,d.minX)-_,S=p.minY,y=c.width+2*_,T=p.height),f=[["M",C,S],["L",C+y,S],["L",C+y,S+T],["L",C,S+T],["Z"]]}else{var b=(0,em.YM)(a),A=(0,em.Z$)(a),R=n6(b.getModel(),h).startAngle,L=n6(A.getModel(),h).endAngle,N=h.getCenter(),I=h.getRadius(),w=h.innerRadius*I;f=n4(N.x,N.y,I,R,L,w)}if(this.regionPath)this.regionPath.attr("path",f),this.regionPath.show();else{var O=(0,em.U2)(e,"style",hr);this.regionPath=g.addShape({type:"path",name:"active-region",capture:!1,attrs:(0,ef.pi)((0,ef.pi)({},O),{path:f})})}}}},t.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},t.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),e.prototype.destroy.call(this)},t}(rS),hs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return(0,ef.ZT)(t,e),t.prototype.show=function(){var e=this.context,t=e.event,i=e.view;if(!i.isTooltipLocked()){var n=this.timeStamp,r=+new Date;if(r-n>(0,em.U2)(e.view.getOptions(),"tooltip.showDelay",16)){var o=this.location,s={x:t.x,y:t.y};o&&(0,em.Xy)(o,s)||this.showTooltip(i,s),this.timeStamp=r,this.location=s}}},t.prototype.hide=function(){var e=this.context.view,t=e.getController("tooltip"),i=this.context.event,n=i.clientX,r=i.clientY;t.isCursorEntered({x:n,y:r})||e.isTooltipLocked()||(this.hideTooltip(e),this.location=null)},t.prototype.showTooltip=function(e,t){e.showTooltip(t)},t.prototype.hideTooltip=function(e){e.hideTooltip()},t}(rS),ha=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.showTooltip=function(e,t){var i=rj(e);(0,em.S6)(i,function(i){var n=rq(e,i,t);i.showTooltip(n)})},t.prototype.hideTooltip=function(e){var t=rj(e);(0,em.S6)(t,function(e){e.hideTooltip()})},t}(hs),hl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return(0,ef.ZT)(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},t.prototype.show=function(){var e=this.context.event,t=this.timeStamp,i=+new Date;if(i-t>16){var n=this.location,r={x:e.x,y:e.y};n&&(0,em.Xy)(n,r)||this.showTooltip(r),this.timeStamp=i,this.location=r}},t.prototype.hide=function(){this.hideTooltip(),this.location=null},t.prototype.showTooltip=function(e){var t=this.context.event.target;if(t&&t.get("tip")){this.tooltip||this.renderTooltip();var i=t.get("tip");this.tooltip.update((0,ef.pi)({title:i},e)),this.tooltip.show()}},t.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},t.prototype.renderTooltip=function(){var e,t=this.context.view,i=t.canvas,n={start:{x:0,y:0},end:{x:i.get("width"),y:i.get("height")}},r=t.getTheme(),o=(0,em.U2)(r,["components","tooltip","domStyles"],{}),s=new nF({parent:i.get("el").parentNode,region:n,visible:!1,crosshairs:null,domStyles:(0,ef.pi)({},(0,em.b$)({},o,((e={})[nL]={"max-width":"50%"},e[nN]={"word-break":"break-all"},e)))});s.init(),s.setCapture(!1),this.tooltip=s},t}(rS),hh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="",t}return(0,ef.ZT)(t,e),t.prototype.hasState=function(e){return e.hasState(this.stateName)},t.prototype.setElementState=function(e,t){e.setState(this.stateName,t)},t.prototype.setState=function(){this.setStateEnable(!0)},t.prototype.clear=function(){var e=this.context.view;this.clearViewState(e)},t.prototype.clearViewState=function(e){var t=this,i=rW(e,this.stateName);(0,em.S6)(i,function(e){t.setElementState(e,!1)})},t}(rS);function hu(e){return(0,em.U2)(e.get("delegateObject"),"item")}var hd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreListItemStates=["unchecked"],t}return(0,ef.ZT)(t,e),t.prototype.isItemIgnore=function(e,t){return!!this.ignoreListItemStates.filter(function(i){return t.hasState(e,i)}).length},t.prototype.setStateByComponent=function(e,t,i){var n=this.context.view,r=e.get("field"),o=rV(n);this.setElementsStateByItem(o,r,t,i)},t.prototype.setStateByElement=function(e,t){this.setElementState(e,t)},t.prototype.isMathItem=function(e,t,i){var n=rJ(this.context.view,t),r=rG(e,t);return!(0,em.UM)(r)&&i.name===n.getText(r)},t.prototype.setElementsStateByItem=function(e,t,i,n){var r=this;(0,em.S6)(e,function(e){r.isMathItem(e,t,i)&&e.setState(r.stateName,n)})},t.prototype.setStateEnable=function(e){var t=rD(this.context);if(t)rk(this.context)&&this.setStateByElement(t,e);else{var i=rM(this.context);if(rP(i)){var n=i.item,r=i.component;if(n&&r&&!this.isItemIgnore(n,r)){var o=this.context.event.gEvent;if(o&&o.fromShape&&o.toShape&&hu(o.fromShape)===hu(o.toShape))return;this.setStateByComponent(r,n,e)}}}},t.prototype.toggle=function(){var e=rD(this.context);if(e){var t=e.hasState(this.stateName);this.setElementState(e,!t)}},t.prototype.reset=function(){this.setStateEnable(!1)},t}(hh),hc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,ef.ZT)(t,e),t.prototype.active=function(){this.setState()},t}(hd),hg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={},t}return(0,ef.ZT)(t,e),t.prototype.getColorScale=function(e,t){var i=t.geometry.getAttribute("color");return i?e.getScaleByField(i.getFields()[0]):null},t.prototype.getLinkPath=function(e,t){var i=this.context.view.getCoordinate().isTransposed,n=e.shape.getCanvasBBox(),r=t.shape.getCanvasBBox();return i?[["M",n.minX,n.minY],["L",r.minX,r.maxY],["L",r.maxX,r.maxY],["L",n.maxX,n.minY],["Z"]]:[["M",n.maxX,n.minY],["L",r.minX,r.minY],["L",r.minX,r.maxY],["L",n.maxX,n.maxY],["Z"]]},t.prototype.addLinkShape=function(e,t,i,n){var r={opacity:.4,fill:t.shape.attr("fill")};e.addShape({type:"path",attrs:(0,ef.pi)((0,ef.pi)({},(0,em.b$)({},r,(0,em.mf)(n)?n(r,t):n)),{path:this.getLinkPath(t,i)})})},t.prototype.linkByElement=function(e,t){var i=this,n=this.context.view,r=this.getColorScale(n,e);if(r){var o=rG(e,r.field);if(!this.cache[o]){var s,a=(s=r.field,rV(n).filter(function(e){return rG(e,s)===o})),l=this.linkGroup.addGroup();this.cache[o]=l;var h=a.length;(0,em.S6)(a,function(e,n){if(n=0},t)},t}(hp),hN=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,ef.ZT)(t,e),t.prototype.highlight=function(){this.setState()},t.prototype.setElementState=function(e,t){hS(rV(this.context.view),function(t){return e===t},t)},t.prototype.clear=function(){hC(this.context.view)},t}(hm),hI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,ef.ZT)(t,e),t.prototype.selected=function(){this.setState()},t}(hp),hw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,ef.ZT)(t,e),t.prototype.selected=function(){this.setState()},t}(hd),hO=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,ef.ZT)(t,e),t.prototype.selected=function(){this.setState()},t}(hm),hx=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="",t.ignoreItemStates=[],t}return(0,ef.ZT)(t,e),t.prototype.getTriggerListInfo=function(){var e=rM(this.context),t=null;return rP(e)&&(t={item:e.item,list:e.component}),t},t.prototype.getAllowComponents=function(){var e=this,t=rK(this.context.view),i=[];return(0,em.S6)(t,function(t){t.isList()&&e.allowSetStateByElement(t)&&i.push(t)}),i},t.prototype.hasState=function(e,t){return e.hasState(t,this.stateName)},t.prototype.clearAllComponentsState=function(){var e=this,t=this.getAllowComponents();(0,em.S6)(t,function(t){t.clearItemsState(e.stateName)})},t.prototype.allowSetStateByElement=function(e){var t=e.get("field");if(!t)return!1;if(this.cfg&&this.cfg.componentNames){var i=e.get("name");if(-1===this.cfg.componentNames.indexOf(i))return!1}var n=rJ(this.context.view,t);return n&&n.isCategory},t.prototype.allowSetStateByItem=function(e,t){var i=this.ignoreItemStates;return!i.length||0===i.filter(function(i){return t.hasState(e,i)}).length},t.prototype.setStateByElement=function(e,t,i){var n=e.get("field"),r=rJ(this.context.view,n),o=rG(t,n),s=r.getText(o);this.setItemsState(e,s,i)},t.prototype.setStateEnable=function(e){var t=this,i=rD(this.context);if(i){var n=this.getAllowComponents();(0,em.S6)(n,function(n){t.setStateByElement(n,i,e)})}else{var r=rM(this.context);if(rP(r)){var o=r.item,s=r.component;this.allowSetStateByElement(s)&&this.allowSetStateByItem(o,s)&&this.setItemState(s,o,e)}}},t.prototype.setItemsState=function(e,t,i){var n=this,r=e.getItems();(0,em.S6)(r,function(r){r.name===t&&n.setItemState(e,r,i)})},t.prototype.setItemState=function(e,t,i){e.setItemState(t,this.stateName,i)},t.prototype.setState=function(){this.setStateEnable(!0)},t.prototype.reset=function(){this.setStateEnable(!1)},t.prototype.toggle=function(){var e=this.getTriggerListInfo();if(e&&e.item){var t=e.list,i=e.item,n=this.hasState(t,i);this.setItemState(t,i,!n)}},t.prototype.clear=function(){var e=this.getTriggerListInfo();e?e.list.clearItemsState(this.stateName):this.clearAllComponentsState()},t}(rS),hD=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,ef.ZT)(t,e),t.prototype.active=function(){this.setState()},t}(hx),hM="inactive",hk="active",hP="inactive",hF="active",hB=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName=hF,t.ignoreItemStates=["unchecked"],t}return(0,ef.ZT)(t,e),t.prototype.setItemsState=function(e,t,i){this.setHighlightBy(e,function(e){return e.name===t},i)},t.prototype.setItemState=function(e,t,i){e.getItems(),this.setHighlightBy(e,function(e){return e===t},i)},t.prototype.setHighlightBy=function(e,t,i){var n=e.getItems();if(i)(0,em.S6)(n,function(i){t(i)?(e.hasState(i,hP)&&e.setItemState(i,hP,!1),e.setItemState(i,hF,!0)):e.hasState(i,hF)||e.setItemState(i,hP,!0)});else{var r=e.getItemsByState(hF),o=!0;(0,em.S6)(r,function(e){if(!t(e))return o=!1,!1}),o?this.clear():(0,em.S6)(n,function(i){t(i)&&(e.hasState(i,hF)&&e.setItemState(i,hF,!1),e.setItemState(i,hP,!0))})}},t.prototype.highlight=function(){this.setState()},t.prototype.clear=function(){var e,t,i=this.getTriggerListInfo();if(i)t=(e=i.list).getItems(),(0,em.S6)(t,function(t){e.hasState(t,hk)&&e.setItemState(t,hk,!1),e.hasState(t,hM)&&e.setItemState(t,hM,!1)});else{var n=this.getAllowComponents();(0,em.S6)(n,function(e){e.clearItemsState(hF),e.clearItemsState(hP)})}},t}(hx),hU=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,ef.ZT)(t,e),t.prototype.selected=function(){this.setState()},t}(hx),hH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="unchecked",t}return(0,ef.ZT)(t,e),t.prototype.unchecked=function(){this.setState()},t}(hx),hV="unchecked",hW="checked",hG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName=hW,t}return(0,ef.ZT)(t,e),t.prototype.setItemState=function(e,t,i){this.setCheckedBy(e,function(e){return e===t},i)},t.prototype.setCheckedBy=function(e,t,i){var n=e.getItems();i&&(0,em.S6)(n,function(i){t(i)?(e.hasState(i,hV)&&e.setItemState(i,hV,!1),e.setItemState(i,hW,!0)):e.hasState(i,hW)||e.setItemState(i,hV,!0)})},t.prototype.toggle=function(){var e=this.getTriggerListInfo();if(e&&e.item){var t=e.list,i=e.item;!(0,em.G)(t.getItems(),function(e){return t.hasState(e,hV)})||t.hasState(i,hV)?this.setItemState(t,i,!0):this.reset()}},t.prototype.checked=function(){this.setState()},t.prototype.reset=function(){var e=this.getAllowComponents();(0,em.S6)(e,function(e){e.clearItemsState(hW),e.clearItemsState(hV)})},t}(hx),hz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.maskShape=null,t.points=[],t.starting=!1,t.moving=!1,t.preMovePoint=null,t.shapeType="path",t}return(0,ef.ZT)(t,e),t.prototype.getCurrentPoint=function(){var e=this.context.event;return{x:e.x,y:e.y}},t.prototype.emitEvent=function(e){var t=this.context.view,i=this.context.event;t.emit("mask:"+e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:i.x,y:i.y})},t.prototype.createMask=function(){var e=this.context.view,t=this.getMaskAttrs();return e.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:(0,ef.pi)({fill:"#C5D4EB",opacity:.3},t)})},t.prototype.getMaskPath=function(){return[]},t.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},t.prototype.start=function(e){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(null==e?void 0:e.maskStyle),this.emitEvent("start")},t.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},t.prototype.move=function(){if(this.moving&&this.maskShape){var e=this.getCurrentPoint(),t=this.preMovePoint,i=e.x-t.x,n=e.y-t.y,r=this.points;(0,em.S6)(r,function(e){e.x+=i,e.y+=n}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=e}},t.prototype.updateMask=function(e){var t=(0,em.b$)({},this.getMaskAttrs(),e);this.maskShape.attr(t)},t.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},t.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},t.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},t.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},t.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,e.prototype.destroy.call(this)},t}(rS),hY=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.shapeType="circle",t}return(0,ef.ZT)(t,e),t.prototype.getMaskAttrs=function(){var e=this.points,t=(0,em.Z$)(this.points),i=0,n=0,r=0;if(e.length){var o=e[0];i=r$(o,t)/2,n=(t.x+o.x)/2,r=(t.y+o.y)/2}return{x:n,y:r,r:i}},t}(hz),hK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.shapeType="rect",t}return(0,ef.ZT)(t,e),t.prototype.getRegion=function(){var e=this.points;return{start:(0,em.YM)(e),end:(0,em.Z$)(e)}},t.prototype.getMaskAttrs=function(){var e=this.getRegion(),t=e.start,i=e.end;return{x:Math.min(t.x,i.x),y:Math.min(t.y,i.y),width:Math.abs(i.x-t.x),height:Math.abs(i.y-t.y)}},t}(hz);function h$(e){e.x=(0,em.uZ)(e.x,0,1),e.y=(0,em.uZ)(e.y,0,1)}var hX=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return(0,ef.ZT)(t,e),t.prototype.getRegion=function(){var e=null,t=null,i=this.points,n=this.dim,r=this.context.view.getCoordinate(),o=r.invert((0,em.YM)(i)),s=r.invert((0,em.Z$)(i));return this.inPlot&&(h$(o),h$(s)),"x"===n?(e=r.convert({x:o.x,y:0}),t=r.convert({x:s.x,y:1})):(e=r.convert({x:0,y:o.y}),t=r.convert({x:1,y:s.y})),{start:e,end:t}},t}(hK),hj=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getMaskPath=function(){var e=this.points,t=[];return e.length&&((0,em.S6)(e,function(e,i){0===i?t.push(["M",e.x,e.y]):t.push(["L",e.x,e.y])}),t.push(["L",e[0].x,e[0].y])),t},t.prototype.getMaskAttrs=function(){return{path:this.getMaskPath()}},t.prototype.addPoint=function(){this.resize()},t}(hz),hq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getMaskPath=function(){return function(e,t){if(e.length<=2)return rw(e,!1);var i=e[0],n=[];(0,em.S6)(e,function(e){n.push(e.x),n.push(e.y)});var r=rI(n,t,null);return r.unshift(["M",i.x,i.y]),r}(this.points,!0)},t}(hj),hZ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.setCursor=function(e){this.context.view.getCanvas().setCursor(e)},t.prototype.default=function(){this.setCursor("default")},t.prototype.pointer=function(){this.setCursor("pointer")},t.prototype.move=function(){this.setCursor("move")},t.prototype.crosshair=function(){this.setCursor("crosshair")},t.prototype.wait=function(){this.setCursor("wait")},t.prototype.help=function(){this.setCursor("help")},t.prototype.text=function(){this.setCursor("text")},t.prototype.eResize=function(){this.setCursor("e-resize")},t.prototype.wResize=function(){this.setCursor("w-resize")},t.prototype.nResize=function(){this.setCursor("n-resize")},t.prototype.sResize=function(){this.setCursor("s-resize")},t.prototype.neResize=function(){this.setCursor("ne-resize")},t.prototype.nwResize=function(){this.setCursor("nw-resize")},t.prototype.seResize=function(){this.setCursor("se-resize")},t.prototype.swResize=function(){this.setCursor("sw-resize")},t.prototype.nsResize=function(){this.setCursor("ns-resize")},t.prototype.ewResize=function(){this.setCursor("ew-resize")},t}(rS),hJ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.filterView=function(e,t,i){var n=this;e.getScaleByField(t)&&e.filter(t,i),e.views&&e.views.length&&(0,em.S6)(e.views,function(e){n.filterView(e,t,i)})},t.prototype.filter=function(){var e=rM(this.context);if(e){var t=this.context.view,i=e.component,n=i.get("field");if(rP(e)){if(n){var r=i.getItemsByState("unchecked"),o=rJ(t,n),s=r.map(function(e){return e.name});s.length?this.filterView(t,n,function(e){var t=o.getText(e);return!s.includes(t)}):this.filterView(t,n,null),t.render(!0)}}else if(rF(e)){var a=i.getValue(),l=a[0],h=a[1];this.filterView(t,n,function(e){return e>=l&&e<=h}),t.render(!0)}}},t}(rS);function hQ(e,t,i,n){var r=Math.min(i[t],n[t]),o=Math.max(i[t],n[t]),s=e.range,a=s[0],l=s[1];if(rl&&(o=l),r===l&&o===l)return null;var h=e.invert(r),u=e.invert(o);if(!e.isCategory)return function(e){return e>=h&&e<=u};var d=e.values.indexOf(h),c=e.values.indexOf(u),g=e.values.slice(d,c+1);return function(e){return g.includes(e)}}(b=$||($={})).FILTER="brush-filter-processing",b.RESET="brush-filter-reset",b.BEFORE_FILTER="brush-filter:beforefilter",b.AFTER_FILTER="brush-filter:afterfilter",b.BEFORE_RESET="brush-filter:beforereset",b.AFTER_RESET="brush-filter:afterreset";var h0=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dims=["x","y"],t.startPoint=null,t.isStarted=!1,t}return(0,ef.ZT)(t,e),t.prototype.hasDim=function(e){return this.dims.includes(e)},t.prototype.start=function(){var e=this.context;this.isStarted=!0,this.startPoint=e.getCurrentPoint()},t.prototype.filter=function(){if(rB(this.context)){var e,t,i=this.context.event.target.getCanvasBBox();e={x:i.x,y:i.y},t={x:i.maxX,y:i.maxY}}else{if(!this.isStarted)return;e=this.startPoint,t=this.context.getCurrentPoint()}if(!(5>Math.abs(e.x-t.x)||5>Math.abs(e.x-t.y))){var n=this.context,r=n.view,o={view:r,event:n.event,dims:this.dims};r.emit($.BEFORE_FILTER,o_.fromData(r,$.BEFORE_FILTER,o));var s=r.getCoordinate(),a=s.invert(t),l=s.invert(e);if(this.hasDim("x")){var h=r.getXScale(),u=hQ(h,"x",a,l);this.filterView(r,h.field,u)}if(this.hasDim("y")){var d=r.getYScales()[0],u=hQ(d,"y",a,l);this.filterView(r,d.field,u)}this.reRender(r,{source:$.FILTER}),r.emit($.AFTER_FILTER,o_.fromData(r,$.AFTER_FILTER,o))}},t.prototype.end=function(){this.isStarted=!1},t.prototype.reset=function(){var e=this.context.view;if(e.emit($.BEFORE_RESET,o_.fromData(e,$.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var t=e.getXScale();this.filterView(e,t.field,null)}if(this.hasDim("y")){var i=e.getYScales()[0];this.filterView(e,i.field,null)}this.reRender(e,{source:$.RESET}),e.emit($.AFTER_RESET,o_.fromData(e,$.AFTER_RESET,{}))},t.prototype.filterView=function(e,t,i){e.filter(t,i)},t.prototype.reRender=function(e,t){e.render(!0,t)},t}(rS),h1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.filterView=function(e,t,i){var n=rj(e);(0,em.S6)(n,function(e){e.filter(t,i)})},t.prototype.reRender=function(e){var t=rj(e);(0,em.S6)(t,function(e){e.render(!0)})},t}(h0),h2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.filter=function(){var e=rM(this.context),t=this.context.view,i=rV(t);if(rB(this.context)){var n=rU(this.context,10);n&&(0,em.S6)(i,function(e){n.includes(e)?e.show():e.hide()})}else if(e){var r=e.component,o=r.get("field");if(rP(e)){if(o){var s=r.getItemsByState("unchecked"),a=rJ(t,o),l=s.map(function(e){return e.name});(0,em.S6)(i,function(e){var t=rG(e,o),i=a.getText(t);l.indexOf(i)>=0?e.hide():e.show()})}}else if(rF(e)){var h=r.getValue(),u=h[0],d=h[1];(0,em.S6)(i,function(e){var t=rG(e,o);t>=u&&t<=d?e.show():e.hide()})}}},t.prototype.clear=function(){var e=rV(this.context.view);(0,em.S6)(e,function(e){e.show()})},t.prototype.reset=function(){this.clear()},t}(rS),h4=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.byRecord=!1,t}return(0,ef.ZT)(t,e),t.prototype.filter=function(){rB(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},t.prototype.filterByRecord=function(){var e=this.context.view,t=rU(this.context,10);if(t){var i=e.getXScale().field,n=e.getYScales()[0].field,r=t.map(function(e){return e.getModel().data}),o=rj(e);(0,em.S6)(o,function(e){var t=rV(e);(0,em.S6)(t,function(e){rZ(r,e.getModel().data,i,n)?e.show():e.hide()})})}},t.prototype.filterByBBox=function(){var e=this,t=rj(this.context.view);(0,em.S6)(t,function(t){var i=rH(e.context,t,10),n=rV(t);i&&(0,em.S6)(n,function(e){i.includes(e)?e.show():e.hide()})})},t.prototype.reset=function(){var e=rj(this.context.view);(0,em.S6)(e,function(e){var t=rV(e);(0,em.S6)(t,function(e){e.show()})})},t}(rS),h5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buttonGroup=null,t.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},t}return(0,ef.ZT)(t,e),t.prototype.getButtonCfg=function(){return(0,em.b$)(this.buttonCfg,this.cfg)},t.prototype.drawButton=function(){var e=this.getButtonCfg(),t=this.context.view.foregroundGroup.addGroup({name:e.name}),i=t.addShape({type:"text",name:"button-text",attrs:(0,ef.pi)({text:e.text},e.textStyle)}).getBBox(),n=om(e.padding),r=t.addShape({type:"rect",name:"button-rect",attrs:(0,ef.pi)({x:i.x-n[3],y:i.y-n[0],width:i.width+n[1]+n[3],height:i.height+n[0]+n[2]},e.style)});r.toBack(),t.on("mouseenter",function(){r.attr(e.activeStyle)}),t.on("mouseleave",function(){r.attr(e.style)}),this.buttonGroup=t},t.prototype.resetPosition=function(){var e=this.context.view.getCoordinate().convert({x:1,y:1}),t=this.buttonGroup,i=t.getBBox(),n=it.vs(null,[["t",e.x-i.width-10,e.y+i.height+5]]);t.setMatrix(n)},t.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},t.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},t.prototype.destroy=function(){var t=this.buttonGroup;t&&t.remove(),e.prototype.destroy.call(this)},t}(rS),h6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.starting=!1,t.dragStart=!1,t}return(0,ef.ZT)(t,e),t.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},t.prototype.drag=function(){if(this.startPoint){var e=this.context.getCurrentPoint(),t=this.context.view,i=this.context.event;this.dragStart?t.emit("drag",{target:i.target,x:i.x,y:i.y}):r$(e,this.startPoint)>4&&(t.emit("dragstart",{target:i.target,x:i.x,y:i.y}),this.dragStart=!0)}},t.prototype.end=function(){if(this.dragStart){var e=this.context.view,t=this.context.event;e.emit("dragend",{target:t.target,x:t.x,y:t.y})}this.starting=!1,this.dragStart=!1},t}(rS),h3=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.starting=!1,t.isMoving=!1,t.startPoint=null,t.startMatrix=null,t}return(0,ef.ZT)(t,e),t.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},t.prototype.move=function(){if(this.starting){var e=this.startPoint,t=this.context.getCurrentPoint();if(r$(e,t)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var i=this.context.view,n=it.vs(this.startMatrix,[["t",t.x-e.x,t.y-e.y]]);i.backgroundGroup.setMatrix(n),i.foregroundGroup.setMatrix(n),i.middleGroup.setMatrix(n)}}},t.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},t.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var e=this.context.view;e.backgroundGroup.resetMatrix(),e.foregroundGroup.resetMatrix(),e.middleGroup.resetMatrix(),this.isMoving=!1},t}(rS),h9=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dims=["x","y"],t.cfgFields=["dims"],t.cacheScaleDefs={},t}return(0,ef.ZT)(t,e),t.prototype.hasDim=function(e){return this.dims.includes(e)},t.prototype.getScale=function(e){var t=this.context.view;return"x"===e?t.getXScale():t.getYScales()[0]},t.prototype.resetDim=function(e){var t=this.context.view;if(this.hasDim(e)&&this.cacheScaleDefs[e]){var i=this.getScale(e);t.scale(i.field,this.cacheScaleDefs[e]),this.cacheScaleDefs[e]=null}},t.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},t}(rS),h7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.startPoint=null,t.starting=!1,t.startCache={},t}return(0,ef.ZT)(t,e),t.prototype.start=function(){var e=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var t=this.dims;(0,em.S6)(t,function(t){var i=e.getScale(t),n=i.min,r=i.max,o=i.values;e.startCache[t]={min:n,max:r,values:o}})},t.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},t.prototype.translate=function(){var e=this;if(this.starting){var t=this.startPoint,i=this.context.view.getCoordinate(),n=this.context.getCurrentPoint(),r=i.invert(t),o=i.invert(n),s=o.x-r.x,a=o.y-r.y,l=this.context.view,h=this.dims;(0,em.S6)(h,function(t){e.translateDim(t,{x:-1*s,y:-1*a})}),l.render(!0)}},t.prototype.translateDim=function(e,t){if(this.hasDim(e)){var i=this.getScale(e);i.isLinear&&this.translateLinear(e,i,t)}},t.prototype.translateLinear=function(e,t,i){var n=this.context.view,r=this.startCache[e],o=r.min,s=r.max,a=i[e]*(s-o);this.cacheScaleDefs[e]||(this.cacheScaleDefs[e]={nice:t.nice,min:o,max:s}),n.scale(t.field,{nice:!1,min:o+a,max:s+a})},t.prototype.reset=function(){e.prototype.reset.call(this),this.startPoint=null,this.starting=!1},t}(h9),h8=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.zoomRatio=.05,t}return(0,ef.ZT)(t,e),t.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},t.prototype.zoom=function(e){var t=this,i=this.dims;(0,em.S6)(i,function(i){t.zoomDim(i,e)}),this.context.view.render(!0)},t.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},t.prototype.zoomDim=function(e,t){if(this.hasDim(e)){var i=this.getScale(e);i.isLinear&&this.zoomLinear(e,i,t)}},t.prototype.zoomLinear=function(e,t,i){var n=this.context.view;this.cacheScaleDefs[e]||(this.cacheScaleDefs[e]={nice:t.nice,min:t.min,max:t.max});var r=this.cacheScaleDefs[e],o=r.max-r.min,s=t.min,a=t.max,l=i*o,h=s-l,u=a+l,d=(u-h)/o;u>h&&d<100&&d>.01&&n.scale(t.field,{nice:!1,min:s-l,max:a+l})},t}(h9),ue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.scroll=function(e){var t=this.context,i=t.view,n=t.event;if(i.getOptions().scrollbar){var r=(null==e?void 0:e.wheelDelta)||1,o=i.getController("scrollbar"),s=i.getXScale(),a=i.getOptions().data,l=(0,em.dp)((0,em.I)(a,s.field)),h=(0,em.dp)(s.values),u=Math.floor((l-h)*o.getValue())+(n.gEvent.originalEvent.deltaY>0?r:-r),d=r/(l-h)/1e4,c=(0,em.uZ)(u/(l-h)+d,0,1);o.setValue(c)}},t}(rS);function ut(e){return e.isInPlot()}function ui(e){return e.gEvent.preventDefault(),e.gEvent.originalEvent.deltaY>0}A=r9(sa),oo[(0,em.vl)("dark")]=or(A),eC.canvas=ed,eC.svg=eg,oA("Polygon",la),oA("Interval",li),oA("Schema",ll),oA("Path",a0),oA("Point",ls),oA("Line",ln),oA("Area",a4),oA("Edge",a5),oA("Heatmap",a6),oA("Violin",lh),oV("base",o3),oV("interval",lv),oV("pie",lC),oV("polar",l_),oW("overlap",function(e,t,i,n){var r=new ly;(0,em.S6)(t,function(e){for(var t=e.find(function(e){return"text"===e.get("type")}),i=t.attr(),n=i.x,o=i.y,s=!1,a=0;a<=8;a++){var l=function(e,t,i,n){var r=e.getCanvasBBox(),o=r.width,s=r.height,a={x:t,y:i,textAlign:"center"};switch(n){case 0:a.y-=s+1,a.x+=1,a.textAlign="left";break;case 1:a.y-=s+1,a.x-=1,a.textAlign="right";break;case 2:a.y+=s+1,a.x-=1,a.textAlign="right";break;case 3:a.y+=s+1,a.x+=1,a.textAlign="left";break;case 5:a.y-=2*s+2;break;case 6:a.y+=2*s+2;break;case 7:a.x+=o+1,a.textAlign="left";break;case 8:a.x-=o+1,a.textAlign="right"}return e.attr(a),e.getCanvasBBox()}(t,n,o,a);if(r.hasGap(l)){r.fillGap(l),s=!0;break}}s||e.remove(!0)}),r.destroy()}),oW("distribute",function(e,t,i,n){if(e.length&&t.length){var r=e[0]?e[0].offset:0,o=t[0].get("coordinate"),s=o.getRadius(),a=o.getCenter();if(r>0){var l=2*(s+r)+28,h={start:o.start,end:o.end},u=[[],[]];e.forEach(function(e){e&&("right"===e.textAlign?u[0].push(e):u[1].push(e))}),u.forEach(function(e,i){var n=l/14;e.length>n&&(e.sort(function(e,t){return t["..percent"]-e["..percent"]}),e.splice(n,e.length-n)),e.sort(function(e,t){return e.y-t.y}),function(e,t,i,n,r,o){var s,a=!0,l=n.start,h=n.end,u=Math.min(l.y,h.y),d=Math.abs(l.y-h.y),c=0,g=Number.MIN_VALUE,p=t.map(function(e){return e.y>c&&(c=e.y),e.yd&&(d=c-u);a;)for(p.forEach(function(e){var t=(Math.min.apply(g,e.targets)+Math.max.apply(g,e.targets))/2;e.pos=Math.min(Math.max(g,t-e.size/2),d-e.size)}),a=!1,s=p.length;s--;)if(s>0){var f=p[s-1],m=p[s];f.pos+f.size>m.pos&&(f.size+=m.size,f.targets=f.targets.concat(m.targets),f.pos+f.size>d&&(f.pos=d-f.size),p.splice(s,1),a=!0)}s=0,p.forEach(function(e){var n=u+i/2;e.targets.forEach(function(){t[s].y=e.pos+n,n+=i,s++})});for(var v={},E=0;Ee.x+e.width+i||t.x+t.widthe.y+e.height+i||t.y+t.heighth.min)||!(l.minr.maxX||n.maxY>r.maxY)&&e.remove(!0)})}),oW("limit-in-canvas",function(e,t,i,n){(0,em.S6)(t,function(e){var t=n.minX,i=n.minY,r=n.maxX,o=n.maxY,s=e.getCanvasBBox(),a=s.minX,l=s.minY,h=s.maxX,u=s.maxY,d=s.x,c=s.y,g=s.width,p=s.height,f=d,m=c;(ar?f=r-g:h>r&&(f-=h-r),l>o?m=o-p:u>o&&(m-=u-o),(f!==d||m!==c)&&o0(e,f-d,m-c)})}),oW("limit-in-plot",function(e,t,i,n,r){if(!(t.length<=0)){var o,s,a,l,h,u,d,c=(null==r?void 0:r.direction)||["top","right","bottom","left"],g=(null==r?void 0:r.action)||"translate",p=(null==r?void 0:r.margin)||0,f=t[0].get("coordinate");if(f){var m=(void 0===(o=p)&&(o=0),s=f.start,a=f.end,l=f.getWidth(),h=f.getHeight(),u=Math.min(s.x,a.x),d=Math.min(s.y,a.y),re.fromRange(u-o,d-o,u+l+o,d+h+o)),v=m.minX,E=m.minY,_=m.maxX,C=m.maxY;(0,em.S6)(t,function(e){var t=e.getCanvasBBox(),i=t.minX,n=t.minY,r=t.maxX,o=t.maxY,s=t.x,a=t.y,l=t.width,h=t.height,u=s,d=a;if(c.indexOf("left")>=0&&(i=0&&(n=0&&(i>_?u=_-l:r>_&&(u-=r-_)),c.indexOf("bottom")>=0&&(n>C?d=C-h:o>C&&(d-=o-C)),u!==s||d!==a){var p=u-s;"translate"===g?o0(e,p,d-a):"ellipsis"===g?e.findAll(function(e){return"text"===e.get("type")}).forEach(function(e){var t=(0,em.ei)(e.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),i=e.getCanvasBBox(),n=lF(e.attr("text"),i.width-Math.abs(p),t);e.attr("text",n)}):e.hide()}})}}}),oW("pie-outer",function(e,t,i,n){var r=(0,em.hX)(e,function(e){return!(0,em.UM)(e)}),o=t[0]&&t[0].get("coordinate");if(o){for(var s=o.getCenter(),a=o.getRadius(),l={},h=0;hi&&(e.sort(function(e,t){return t.percent-e.percent}),(0,em.S6)(e,function(e,t){t+1>i&&(l[e.id].set("visible",!1),e.invisible=!0)})),lS(e,d,_)}),(0,em.S6)(p,function(e,t){(0,em.S6)(e,function(e){var i=t===g,n=l[e.id].getChildByIndex(0);if(n){var r=a+c,h=e.y-s.y,u=Math.pow(r,2),d=Math.pow(h,2),p=Math.sqrt(u-d>0?u-d:0),f=Math.abs(Math.cos(e.angle)*r);i?e.x=s.x+Math.max(p,f):e.x=s.x-Math.max(p,f)}n&&(n.attr("y",e.y),n.attr("x",e.x)),function(e,t){var i=t.getCenter(),n=t.getRadius();if(e&&e.labelLine){var r=e.angle,o=e.offset,s=n2(i.x,i.y,n,r),a=e.x+(0,em.U2)(e,"offsetX",0)*(Math.cos(r)>0?1:-1),l=e.y+(0,em.U2)(e,"offsetY",0)*(Math.sin(r)>0?1:-1),h={x:a-4*Math.cos(r),y:l-4*Math.sin(r)},u=e.labelLine.smooth,d=[],c=h.x-i.x,g=Math.atan((h.y-i.y)/c);if(c<0&&(g+=Math.PI),!1===u){(0,em.Kn)(e.labelLine)||(e.labelLine={});var p=0;(r<0&&r>-Math.PI/2||r>1.5*Math.PI)&&h.y>s.y&&(p=1),r>=0&&rs.y&&(p=1),r>=Math.PI/2&&rh.y&&(p=1),(r<-Math.PI/2||r>=Math.PI&&r<1.5*Math.PI)&&s.y>h.y&&(p=1);var f=o/2>4?4:Math.max(o/2-1,0),m=n2(i.x,i.y,n+f,r),v=n2(i.x,i.y,n+o/2,g);d.push("M "+s.x+" "+s.y),d.push("L "+m.x+" "+m.y),d.push("A "+i.x+" "+i.y+" 0 0 "+p+" "+v.x+" "+v.y),d.push("L "+h.x+" "+h.y)}else{var m=n2(i.x,i.y,n+(o/2>4?4:Math.max(o/2-1,0)),r),E=s.x11253517471925921e-23&&d.push.apply(d,["C",h.x+4*E,h.y,2*m.x-s.x,2*m.y-s.y,s.x,s.y]),d.push("L "+s.x+" "+s.y)}e.labelLine.path=d.join(" ")}}(e,o)})})}}}),oW("adjust-color",function(e,t,i){if(0!==i.length){var n=i[0].get("element").geometry.theme,r=n.labels||{},o=r.fillColorLight,s=r.fillColorDark;i.forEach(function(e,i){var r=t[i].find(function(e){return"text"===e.get("type")}),a=re.fromObject(e.getBBox()),l=re.fromObject(r.getCanvasBBox()),h=!a.contains(l),u=lO(e.attr("fill"));h?r.attr(n.overflowLabels.style):u?o&&r.attr("fill",o):s&&r.attr("fill",s)})}}),oW("interval-adjust-position",function(e,t,i){if(0!==i.length){var n,r=null===(n=i[0])||void 0===n?void 0:n.get("element"),o=null==r?void 0:r.geometry;o&&"interval"===o.type&&(o.getAdjust("stack")||t.every(function(e,t){var n,r,s,a,l=i[t];return n=o.coordinate,r=o2(e),s=re.fromObject(r.getCanvasBBox()),a=re.fromObject(l.getBBox()),n.isTransposed?a.height>=s.height:a.width>=s.width}))&&i.forEach(function(e,i){var n,r,s,a=t[i];n=o.coordinate,r=re.fromObject(e.getBBox()),s=o2(a),n.isTransposed?s.attr({x:r.minX+r.width/2,textAlign:"center"}):s.attr({y:r.minY+r.height/2,textBaseline:"middle"})})}}),oW("interval-hide-overlap",function(e,t,i){if(0!==i.length){var n,r,o,s=null===(o=i[0])||void 0===o?void 0:o.get("element"),a=null==s?void 0:s.geometry;if(a&&"interval"===a.type){var l=(n=[],r=Math.max(Math.floor(t.length/500),1),(0,em.S6)(t,function(e,t){t%r==0?n.push(e):e.set("visible",!1)}),n),h=a.getXYFields()[0],u=[],d=[],c=(0,em.vM)(l,function(e){return e.get("data")[h]}),g=(0,em.jj)((0,em.UI)(l,function(e){return e.get("data")[h]}));l.forEach(function(e){e.set("visible",!0)});var p=function(e){e&&(e.length&&d.push(e.pop()),d.push.apply(d,e))};for((0,em.dp)(g)>0&&p(c[g.shift()]),(0,em.dp)(g)>0&&p(c[g.pop()]),(0,em.S6)(g.reverse(),function(e){p(c[e])});d.length>0;){var f=d.shift();f.get("visible")&&(function(e,t){var i=e.getBBox();return(0,em.G)(t,function(e){var t=e.getBBox();return Math.max(0,Math.min(i.x+i.width+2,t.x+t.width+2)-Math.max(i.x-2,t.x-2))*Math.max(0,Math.min(i.y+i.height+2,t.y+t.height+2)-Math.max(i.y-2,t.y-2))>0})}(f,u)?f.set("visible",!1):u.push(f))}}}}),oW("point-adjust-position",function(e,t,i,n,r){if(0!==i.length){var o,s,a=null===(o=i[0])||void 0===o?void 0:o.get("element"),l=null==a?void 0:a.geometry;if(l&&"point"===l.type){var h=l.getXYFields(),u=h[0],d=h[1],c=(0,em.vM)(t,function(e){return e.get("data")[u]}),g=[],p=r&&r.offset||(null===(s=e[0])||void 0===s?void 0:s.offset)||12;(0,em.UI)((0,em.XP)(c).reverse(),function(e){for(var t,i,n,r,o=(t=c[e],i=l.getXYFields()[1],n=[],(r=t.sort(function(e,t){return e.get("data")[i]-e.get("data")[i]})).length>0&&n.push(r.shift()),r.length>0&&n.push(r.pop()),n.push.apply(n,r),n);o.length;){var s=o.shift(),a=o2(s);if(lx(g,s,function(e,t){return e.get("data")[u]===t.get("data")[u]&&e.get("data")[d]===t.get("data")[d]})){a.set("visible",!1);continue}var h=lD(g,s),f=!1;if(h&&(a.attr("y",a.attr("y")+2*p),f=lD(g,s)),f){a.set("visible",!1);continue}g.push(s)}})}}}),oW("pie-spider",function(e,t,i,n){var r=t[0]&&t[0].get("coordinate");if(r){for(var o=r.getCenter(),s=r.getRadius(),a={},l=0;lo.x||e.x===o.x&&e.y>o.y,i=(0,em.UM)(e.offsetX)?4:e.offsetX,n=n2(o.x,o.y,s+4,e.angle);e.x=o.x+(t?1:-1)*(s+(d+i)),e.y=n.y}});var c=r.start,g=r.end,p="right",f=(0,em.vM)(e,function(e){return e.xm&&(m=Math.min(t,Math.abs(c.y-g.y)))});var v={minX:c.x,maxX:g.x,minY:o.y-m/2,maxY:o.y+m/2};(0,em.S6)(f,function(e,t){var i=m/u;e.length>i&&(e.sort(function(e,t){return t.percent-e.percent}),(0,em.S6)(e,function(e,t){t>i&&(a[e.id].set("visible",!1),e.invisible=!0)})),lS(e,u,v)});var E=v.minY,_=v.maxY;(0,em.S6)(f,function(e,t){var i=t===p;(0,em.S6)(e,function(e){var t=(0,em.U2)(a,e&&[e.id]);if(t){if(e.y_){t.set("visible",!1);return}var n=t.getChildByIndex(0),o=n.getCanvasBBox(),s={x:i?o.x:o.maxX,y:o.y+o.height/2};o0(n,e.x-s.x,e.y-s.y),e.labelLine&&function(e,t,i){var n=t.getCenter(),r=t.getRadius(),o={x:e.x-(i?4:-4),y:e.y},s=n2(n.x,n.y,r+4,e.angle),a={x:o.x,y:o.y},l={x:s.x,y:s.y},h=n2(n.x,n.y,r,e.angle),u="";if(o.y!==s.y){var d=i?4:-4;a.y=o.y,e.angle<0&&e.angle>=-Math.PI/2&&(a.x=Math.max(s.x,o.x-d),o.y0&&e.angles.y?l.y=a.y:(l.y=s.y,l.x=Math.max(l.x,a.x-d))),e.angle>Math.PI/2&&(a.x=Math.min(s.x,o.x-d),o.y>s.y?l.y=a.y:(l.y=s.y,l.x=Math.min(l.x,a.x-d))),e.angle<-Math.PI/2&&(a.x=Math.min(s.x,o.x-d),o.y["path","line","area"].indexOf(l.type))){var h=l.getXYFields(),u=h[0],d=h[1],c=(0,em.vM)(t,function(e){return e.get("data")[u]}),g=[],p=r&&r.offset||(null===(s=e[0])||void 0===s?void 0:s.offset)||12;(0,em.UI)((0,em.XP)(c).reverse(),function(e){for(var t,i,n,r,o=(t=c[e],i=l.getXYFields()[1],n=[],(r=t.sort(function(e,t){return e.get("data")[i]-e.get("data")[i]})).length>0&&n.push(r.shift()),r.length>0&&n.push(r.pop()),n.push.apply(n,r),n);o.length;){var s=o.shift(),a=o2(s);if(lM(g,s,function(e,t){return e.get("data")[u]===t.get("data")[u]&&e.get("data")[d]===t.get("data")[d]})){a.set("visible",!1);continue}var h=lk(g,s),f=!1;if(h&&(a.attr("y",a.attr("y")+2*p),f=lk(g,s)),f){a.set("visible",!1);continue}g.push(s)}})}}}),oO("fade-in",function(e,t,i){var n={fillOpacity:(0,em.UM)(e.attr("fillOpacity"))?1:e.attr("fillOpacity"),strokeOpacity:(0,em.UM)(e.attr("strokeOpacity"))?1:e.attr("strokeOpacity"),opacity:(0,em.UM)(e.attr("opacity"))?1:e.attr("opacity")};e.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),e.animate(n,t)}),oO("fade-out",function(e,t,i){var n=t.easing,r=t.duration,o=t.delay;e.animate({fillOpacity:0,strokeOpacity:0,opacity:0},r,n,function(){e.remove(!0)},o)}),oO("grow-in-x",function(e,t,i){lB(e,t,i.coordinate,i.minYPoint,"x")}),oO("grow-in-xy",function(e,t,i){lB(e,t,i.coordinate,i.minYPoint,"xy")}),oO("grow-in-y",function(e,t,i){lB(e,t,i.coordinate,i.minYPoint,"y")}),oO("scale-in-x",function(e,t,i){var n=e.getBBox(),r=e.get("origin").mappingData.points,o=r[0].y-r[1].y>0?n.maxX:n.minX,s=(n.minY+n.maxY)/2;e.applyToMatrix([o,s,1]);var a=it.vs(e.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);e.setMatrix(a),e.animate({matrix:it.vs(e.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},t)}),oO("scale-in-y",function(e,t,i){var n=e.getBBox(),r=e.get("origin").mappingData,o=(n.minX+n.maxX)/2,s=r.points,a=s[0].y-s[1].y<=0?n.maxY:n.minY;e.applyToMatrix([o,a,1]);var l=it.vs(e.getMatrix(),[["t",-o,-a],["s",1,.01],["t",o,a]]);e.setMatrix(l),e.animate({matrix:it.vs(e.getMatrix(),[["t",-o,-a],["s",1,100],["t",o,a]])},t)}),oO("wave-in",function(e,t,i){var n=ro(i.coordinate,20),r=n.type,o=n.startState,s=n.endState,a=e.setClip({type:r,attrs:o});a.animate(s,(0,ef.pi)((0,ef.pi)({},t),{callback:function(){e&&!e.get("destroyed")&&e.set("clipShape",null),a.remove(!0)}}))}),oO("zoom-in",function(e,t,i){lW(e,t,"zoomIn")}),oO("zoom-out",function(e,t,i){lW(e,t,"zoomOut")}),oO("position-update",function(e,t,i){var n=i.toAttrs,r=n.x,o=n.y;delete n.x,delete n.y,e.attr(n),e.animate({x:r,y:o},t)}),oO("sector-path-update",function(e,t,i){var n=i.toAttrs,r=i.coordinate,o=n.path||[],s=o.map(function(e){return e[0]});if(!(o.length<1)){var a=lV(o),l=a.startAngle,h=a.endAngle,u=a.radius,d=a.innerRadius,c=lV(e.attr("path")),g=c.startAngle,p=c.endAngle,f=r.getCenter(),m=l-g,v=h-p;if(0===m&&0===v){e.attr("path",o);return}e.animate(function(e){var t=g+e*m,i=p+e*v;return(0,ef.pi)((0,ef.pi)({},n),{path:(0,em.Xy)(s,["M","A","A","Z"])?n5(f.x,f.y,u,t,i):n4(f.x,f.y,u,t,i,d)})},(0,ef.pi)((0,ef.pi)({},t),{callback:function(){e.attr("path",o)}}))}}),oO("path-in",function(e,t,i){var n=e.getTotalLength();e.attr("lineDash",[n]),e.animate(function(e){return{lineDashOffset:(1-e)*n}},t)}),rC("rect",lj),rC("mirror",lX),rC("list",lK),rC("matrix",l$),rC("circle",lY),rC("tree",lq),ov.axis=l9,ov.legend=ht,ov.tooltip=oN,ov.annotation=l0,ov.slider=hi,ov.scrollbar=hn,rA("tooltip",hs),rA("sibling-tooltip",ha),rA("ellipsis-text",hl),rA("element-active",hc),rA("element-single-active",hv),rA("element-range-active",hf),rA("element-highlight",hb),rA("element-highlight-by-x",hR),rA("element-highlight-by-color",hA),rA("element-single-highlight",hN),rA("element-range-highlight",hL),rA("element-sibling-highlight",hL,{effectSiblings:!0,effectByRecord:!0}),rA("element-selected",hw),rA("element-single-selected",hO),rA("element-range-selected",hI),rA("element-link-by-color",hg),rA("active-region",ho),rA("list-active",hD),rA("list-selected",hU),rA("list-highlight",hB),rA("list-unchecked",hH),rA("list-checked",hG),rA("legend-item-highlight",hB,{componentNames:["legend"]}),rA("axis-label-highlight",hB,{componentNames:["axis"]}),rA("rect-mask",hK),rA("x-rect-mask",hX,{dim:"x"}),rA("y-rect-mask",hX,{dim:"y"}),rA("circle-mask",hY),rA("path-mask",hj),rA("smooth-path-mask",hq),rA("cursor",hZ),rA("data-filter",hJ),rA("brush",h0),rA("brush-x",h0,{dims:["x"]}),rA("brush-y",h0,{dims:["y"]}),rA("sibling-filter",h1),rA("sibling-x-filter",h1),rA("sibling-y-filter",h1),rA("element-filter",h2),rA("element-sibling-filter",h4),rA("element-sibling-filter-record",h4,{byRecord:!0}),rA("view-drag",h6),rA("view-move",h3),rA("scale-translate",h7),rA("scale-zoom",h8),rA("reset-button",h5,{name:"reset-button",text:"reset"}),rA("mousewheel-scroll",ue),r3("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),r3("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),r3("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),r3("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),r3("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),r3("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),r3("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),r3("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),r3("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),r3("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),r3("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),r3("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(e){return!e.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(e){return!e.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),r3("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:ut,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:ut,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:ut,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),r3("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),r3("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:ut,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:ut,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:ut,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),r3("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:ut,action:"path-mask:start"},{trigger:"mousedown",isEnable:ut,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),r3("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),r3("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","data-filter:filter"]}]}),r3("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),r3("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),r3("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","element-filter:filter"]}]}),r3("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),r3("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(e){return ui(e.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(e){return!ui(e.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),r3("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),r3("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var un=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"];function ur(e){for(var t=[],i=1;i=0}),r=i.every(function(e){return 0>=(0,em.U2)(e,[t])});return n?{min:0}:r?{max:0}:{}}function ul(e,t,i,n,r){if(void 0===r&&(r=[]),!Array.isArray(e))return{nodes:[],links:[]};var o=[],s={},a=-1;return e.forEach(function(e){var l=e[t],h=e[i],u=e[n],d=us(e,r);s[l]||(s[l]=(0,ef.pi)({id:++a,name:l},d)),s[h]||(s[h]=(0,ef.pi)({id:++a,name:h},d)),o.push((0,ef.pi)({source:s[l].id,target:s[h].id,value:u},d))}),{nodes:Object.values(s).sort(function(e,t){return e.id-t.id}),links:o}}function uh(e,t){var i=(0,em.hX)(e,function(e){var i=e[t];return null===i||"number"==typeof i&&!isNaN(i)});return uo(X.WARN,i.length===e.length,"illegal data existed in chart data."),i}(R=X||(X={})).ERROR="error",R.WARN="warn",R.INFO="log";var uu={}.toString,ud=function(e,t){return uu.call(e)==="[object "+t+"]"},uc=function(e){if(!("object"==typeof e&&null!==e)||!ud(e,"Object"))return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},ug=function(e,t,i,n){for(var r in i=i||0,n=n||5,t)if(Object.prototype.hasOwnProperty.call(t,r)){var o=t[r];o?uc(o)?(uc(e[r])||(e[r]={}),i=(0,em.U2)(e,["views","length"],0)?uE(e):(0,em.u4)(e.views,function(e,t){return e.concat(u_(t))},uE(e))}function uC(e){if(!(0,em.P9)(e,"Object"))return e;var t=(0,ef.pi)({},e);return t.formatter&&!t.content&&(t.content=t.formatter),t}function uS(e){return"number"==typeof e&&!isNaN(e)}function uy(e){if((0,em.hj)(e))return[e,e,e,e];if((0,em.kJ)(e)){var t=e.length;if(1===t)return[e[0],e[0],e[0],e[0]];if(2===t)return[e[0],e[1],e[0],e[1]];if(3===t)return[e[0],e[1],e[2],e[1]];if(4===t)return e}return[0,0,0,0]}function uT(e,t,i){void 0===t&&(t="bottom"),void 0===i&&(i=25);var n=uy(e),r=[t.startsWith("top")?i:0,t.startsWith("right")?i:0,t.startsWith("bottom")?i:0,t.startsWith("left")?i:0];return[n[0]+r[0],n[1]+r[1],n[2]+r[2],n[3]+r[3]]}function ub(e){var t=e.map(function(e){return uy(e)}),i=[0,0,0,0];return t.length>0&&(i=i.map(function(e,i){return t.forEach(function(n,r){e+=t[r][i]}),e})),i}(0,em.HP)(function(e,t){void 0===t&&(t={});var i=t.fontSize,n=t.fontFamily,r=t.fontWeight,o=t.fontStyle,s=t.fontVariant,a=(j||(j=document.createElement("canvas").getContext("2d")),j);return a.font=[o,r,s,"".concat(i,"px"),void 0===n?"sans-serif":n].join(" "),a.measureText((0,em.HD)(e)?e:"").width},function(e,t){return void 0===t&&(t={}),(0,ef.ev)([e],(0,em.VO)(t),!0).join("")});var uA=function(e,t,i,n){var r,o,s,a,l=[],h=!!n;if(h){s=[1/0,1/0],a=[-1/0,-1/0];for(var u=0,d=e.length;u"},key:"".concat(0===n?"top":"bottom","-statistic")},us(t,["offsetX","offsetY","rotate","style","formatter"])))}})},uw=function(e,t,i){var n=t.statistic;[n.title,n.content].forEach(function(t){if(t){var n=(0,em.mf)(t.style)?t.style(i):t.style;e.annotation().html((0,ef.pi)({position:["50%","100%"],html:function(e,r){var o=r.getCoordinate(),s=r.views[0].getCoordinate(),a=s.getCenter(),l=s.getRadius(),h=Math.max(Math.sin(s.startAngle),Math.sin(s.endAngle))*l,u=a.y+h-o.y.start-parseFloat((0,em.U2)(n,"fontSize",0)),d=o.getRadius()*o.innerRadius*2;uN(e,(0,ef.pi)({width:"".concat(d,"px"),transform:"translate(-50%, ".concat(u,"px)")},uL(n)));var c=r.getData();if(t.customHtml)return t.customHtml(e,r,i,c);var g=t.content;return t.formatter&&(g=t.formatter(i,c)),g?(0,em.HD)(g)?g:"".concat(g):"
    "}},us(t,["offsetX","offsetY","rotate","style","formatter"])))}})};function uO(e,t){return t?(0,em.u4)(t,function(e,t,i){return e.replace(RegExp("{\\s*".concat(i,"\\s*}"),"g"),t)},e):e}function ux(e,t){return e.views.find(function(e){return e.id===t})}function uD(e){var t=e.parent;return t?t.views:[]}function uM(e){return uD(e).filter(function(t){return t!==e})}function uk(e,t,i){void 0===i&&(i=e.geometries),"boolean"==typeof t?e.animate(t):e.animate(!0),(0,em.S6)(i,function(e){var i;i=(0,em.mf)(t)?t(e.type||e.shapeType,e)||!0:t,e.animate(i)})}function uP(){return"object"==typeof window?null==window?void 0:window.devicePixelRatio:2}function uF(e,t){void 0===t&&(t=e);var i=document.createElement("canvas"),n=uP();return i.width=e*n,i.height=t*n,i.style.width="".concat(e,"px"),i.style.height="".concat(t,"px"),i.getContext("2d").scale(n,n),i}function uB(e,t,i,n){void 0===n&&(n=i);var r=t.backgroundColor,o=t.opacity;e.globalAlpha=o,e.fillStyle=r,e.beginPath(),e.fillRect(0,0,i,n),e.closePath()}function uU(e,t,i){var n=e+t;return i?2*n:n}function uH(e,t){return t?[[e*(1/4),e*(1/4)],[e*(3/4),e*(3/4)]]:[[.5*e,.5*e]]}function uV(e,t){var i=t*Math.PI/180;return{a:Math.cos(i)*(1/e),b:Math.sin(i)*(1/e),c:-Math.sin(i)*(1/e),d:Math.cos(i)*(1/e),e:0,f:0}}var uW={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0},uG={rotation:45,spacing:5,opacity:1,backgroundColor:"transparent",strokeOpacity:.5,stroke:"#fff",lineWidth:2},uz={size:6,padding:1,isStagger:!0,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0};function uY(e){var t=this;return function(i){var n,r=i.options,o=i.chart,s=r.pattern;return s?up({},i,{options:((n={})[e]=function(i){for(var n,a,l,h=[],u=1;u0){var i;(function(e,t,i){var n,r=e.view,o=e.geometry,s=e.group,a=e.options,l=e.horizontal,h=a.offset,u=a.size,d=a.arrow,c=r.getCoordinate(),g=dP(c,t)[3],p=dP(c,i)[0],f=p.y-g.y,m=p.x-g.x;if("boolean"!=typeof d){var v=d.headSize,E=a.spacing;l?(m-v)/2_){var S=Math.max(1,Math.ceil(_/(C/f.length))-1),y="".concat(f.slice(0,S),"...");E.attr("text",y)}}}}(l,i,e)}})}})),e}),(o=!s.isStack,function(e){var t=e.chart,i=e.options.connectedArea,n=function(){t.removeInteraction(dD.hover),t.removeInteraction(dD.click)};if(!o&&i){var r=i.trigger||"hover";n(),t.interaction(dD[r],{start:dM(r,i.style)})}else n();return e}),u2)(e)}function dY(e){var t=e.options,i=t.xField,n=t.yField,r=t.xAxis,o=t.yAxis,s={left:"bottom",right:"top",top:"left",bottom:"right"},a=!1!==o&&(0,ef.pi)({position:s[(null==o?void 0:o.position)||"left"]},o),l=!1!==r&&(0,ef.pi)({position:s[(null==r?void 0:r.position)||"bottom"]},r);return(0,ef.pi)((0,ef.pi)({},e),{options:(0,ef.pi)((0,ef.pi)({},t),{xField:n,yField:i,xAxis:a,yAxis:l})})}function dK(e){var t=e.options.label;return!t||t.position||(t.position="left",t.layout||(t.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),up({},e,{options:{label:t}})}function d$(e){var t=e.options,i=t.seriesField,n=t.isStack,r=t.legend;return i?!1!==r&&(r=(0,ef.pi)({position:n?"top-left":"right-top"},r||{})):r=!1,up({},e,{options:{legend:r}})}function dX(e){var t=[{type:"transpose"},{type:"reflectY"}].concat(e.options.coordinate||[]);return up({},e,{options:{coordinate:t}})}function dj(e){var t=e.chart,i=e.options,n=i.barStyle,r=i.barWidthRatio,o=i.minBarWidth,s=i.maxBarWidth,a=i.barBackground;return dz({chart:t,options:(0,ef.pi)((0,ef.pi)({},i),{columnStyle:n,columnWidthRatio:r,minColumnWidth:o,maxColumnWidth:s,columnBackground:a})},!0)}function dq(e){return um(dY,dK,d$,u$,dX,dj)(e)}r3(dD.hover,{start:dM(dD.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),r3(dD.click,{start:dM(dD.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]});var dZ=up({},dc.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),dJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="bar",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return dZ},t.prototype.changeData=function(e){this.updateOption({data:e});var t,i,n,r,o,s=this.chart,a=this.options,l=a.isPercent,h=a.xField,u=a.yField,d=a.xAxis,c=a.yAxis;h=(r=[u,h])[0],u=r[1],d=(o=[c,d])[0],c=o[1],dU({chart:s,options:(0,ef.pi)((0,ef.pi)({},a),{xField:h,yField:u,yAxis:c,xAxis:d})}),s.changeData((t=h,i=u,n=h,l?dg(e,t,i,n):e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return dq},t}(dc),dQ=up({},dc.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),d0=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="column",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return dQ},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.options,i=t.yField,n=t.xField,r=t.isPercent;dU({chart:this.chart,options:this.options}),this.chart.changeData(r?dg(e,i,n,i):e)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return dz},t}(dc),d1="$$percentage$$",d2="$$mappingValue$$",d4="$$conversion$$",d5="$$totalPercentage$$",d6="$$x$$",d3="$$y$$",d9={appendPadding:[0,80],minSize:0,maxSize:1,meta:((q={})[d2]={min:0,max:1,nice:!1},q),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}},d7="CONVERSION_TAG_NAME";function d8(e,t,i){var n=i.yField,r=i.maxSize,o=i.minSize,s=(0,em.U2)((0,em.UT)(t,n),[n]),a=(0,em.hj)(r)?r:1,l=(0,em.hj)(o)?o:0;return(0,em.UI)(e,function(t,i){var r=(t[n]||0)/s;return t[d1]=r,t[d2]=(a-l)*r+l,t[d4]=[(0,em.U2)(e,[i-1,n]),t[n]],t})}function ce(e){return function(t){var i=t.chart,n=t.options,r=n.conversionTag,o=n.filteredData||i.getOptions().data;if(r){var s=r.formatter;o.forEach(function(t,n){if(!(n<=0||Number.isNaN(t[d2]))){var a=e(t,n,o,{top:!0,name:d7,text:{content:(0,em.mf)(s)?s(t,o):s,offsetX:r.offsetX,offsetY:r.offsetY,position:"end",autoRotate:!1,style:(0,ef.pi)({textAlign:"start",textBaseline:"middle"},r.style)}});i.annotation().line(a)}})}return t}}function ct(e){var t=e.chart,i=e.options,n=i.data,r=void 0===n?[]:n,o=d8(r,r,{yField:i.yField,maxSize:i.maxSize,minSize:i.minSize});return t.data(o),e}function ci(e){var t=e.chart,i=e.options,n=i.xField,r=i.yField,o=i.color,s=i.tooltip,a=i.label,l=i.shape,h=i.funnelStyle,u=i.state,d=u9(s,[n,r]),c=d.fields,g=d.formatter;return de({chart:t,options:{type:"interval",xField:n,yField:d2,colorField:n,tooltipFields:(0,em.kJ)(c)&&c.concat([d1,d4]),mapping:{shape:void 0===l?"funnel":l,tooltip:g,color:o,style:h},label:a,state:u}}),uv(e.chart,"interval").adjust("symmetric"),e}function cn(e){var t=e.chart,i=e.options.isTransposed;return t.coordinate({type:"rect",actions:i?[]:[["transpose"],["scale",1,-1]]}),e}function cr(e){var t=e.options,i=e.chart,n=t.maxSize,r=(0,em.U2)(i,["geometries","0","dataArray"],[]),o=(0,em.U2)(i,["options","data","length"]),s=(0,em.UI)(r,function(e){return(0,em.U2)(e,["0","nextPoints","0","x"])*o-.5});return ce(function(e,t,i,r){var o=n-(n-e[d2])/2;return(0,ef.pi)((0,ef.pi)({},r),{start:[s[t-1]||t-.5,o],end:[s[t-1]||t-.5,o+.05]})})(e),e}function co(e){return um(ct,ci,cn,cr)(e)}function cs(e){var t,i=e.chart,n=e.options,r=n.data,o=void 0===r?[]:r,s=n.yField;return i.data(o),i.scale(((t={})[s]={sync:!0},t)),e}function ca(e){var t=e.chart,i=e.options,n=i.data,r=i.xField,o=i.yField,s=i.color,a=i.compareField,l=i.isTransposed,h=i.tooltip,u=i.maxSize,d=i.minSize,c=i.label,g=i.funnelStyle,p=i.state,f=i.showFacetTitle;return t.facet("mirror",{fields:[a],transpose:!l,padding:l?0:[32,0,0,0],showTitle:f,eachView:function(e,t){var i=l?t.rowIndex:t.columnIndex;l||e.coordinate({type:"rect",actions:[["transpose"],["scale",0===i?-1:1,-1]]});var f=d8(t.data,n,{yField:o,maxSize:u,minSize:d});e.data(f);var m=u9(h,[r,o,a]),v=m.fields,E=m.formatter;de({chart:e,options:{type:"interval",xField:r,yField:d2,colorField:r,tooltipFields:(0,em.kJ)(v)&&v.concat([d1,d4]),mapping:{shape:"funnel",tooltip:E,color:s,style:g},label:!1!==c&&up({},l?{offset:0===i?10:-23,position:0===i?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===i?"end":"start"}},c),state:p}})}}),e}function cl(e){var t=e.chart,i=e.index,n=e.options,r=n.conversionTag,o=n.isTransposed;((0,em.hj)(i)?[t]:t.views).forEach(function(e,t){var s=(0,em.U2)(e,["geometries","0","dataArray"],[]),a=(0,em.U2)(e,["options","data","length"]),l=(0,em.UI)(s,function(e){return(0,em.U2)(e,["0","nextPoints","0","x"])*a-.5});ce(function(e,n,s,a){var h=0===(i||t)?-1:1;return up({},a,{start:[l[n-1]||n-.5,e[d2]],end:[l[n-1]||n-.5,e[d2]+.05],text:o?{style:{textAlign:"start"}}:{offsetX:!1!==r?h*r.offsetX:0,style:{textAlign:0===(i||t)?"end":"start"}}})})(up({},{chart:e,options:n}))})}function ch(e){return e.chart.once("beforepaint",function(){return cl(e)}),e}function cu(e){var t=e.chart,i=e.options,n=i.data,r=void 0===n?[]:n,o=i.yField,s=(0,em.u4)(r,function(e,t){return e+(t[o]||0)},0),a=(0,em.UT)(r,o)[o],l=(0,em.UI)(r,function(e,t){var i=[],n=[];if(e[d5]=(e[o]||0)/s,t){var l=r[t-1][d6],h=r[t-1][d3];i[0]=l[3],n[0]=h[3],i[1]=l[2],n[1]=h[2]}else i[0]=-.5,n[0]=1,i[1]=.5,n[1]=1;return n[2]=n[1]-e[d5],i[2]=(n[2]+1)/4,n[3]=n[2],i[3]=-i[2],e[d6]=i,e[d3]=n,e[d1]=(e[o]||0)/a,e[d4]=[(0,em.U2)(r,[t-1,o]),e[o]],e});return t.data(l),e}function cd(e){var t=e.chart,i=e.options,n=i.xField,r=i.yField,o=i.color,s=i.tooltip,a=i.label,l=i.funnelStyle,h=i.state,u=u9(s,[n,r]),d=u.fields,c=u.formatter;return de({chart:t,options:{type:"polygon",xField:d6,yField:d3,colorField:n,tooltipFields:(0,em.kJ)(d)&&d.concat([d1,d4]),label:a,state:h,mapping:{tooltip:c,color:o,style:l}}}),e}function cc(e){var t=e.chart,i=e.options.isTransposed;return t.coordinate({type:"rect",actions:i?[["transpose"],["reflect","x"]]:[]}),e}function cg(e){return ce(function(e,t,i,n){return(0,ef.pi)((0,ef.pi)({},n),{start:[e[d6][1],e[d3][1]],end:[e[d6][1]+.05,e[d3][1]]})})(e),e}function cp(e){var t,i=e.chart,n=e.options,r=n.data,o=void 0===r?[]:r,s=n.yField;return i.data(o),i.scale(((t={})[s]={sync:!0},t)),e}function cf(e){var t=e.chart,i=e.options,n=i.seriesField,r=i.isTransposed,o=i.showFacetTitle;return t.facet("rect",{fields:[n],padding:[r?0:32,10,0,10],showTitle:o,eachView:function(t,i){co(up({},e,{chart:t,options:{data:i.data}}))}}),e}var cm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendering=!1,t}return(0,ef.ZT)(t,e),t.prototype.change=function(e){var t=this;if(!this.rendering){var i=e.seriesField,n=e.compareField,r=n?cl:cr,o=this.context.view,s=i||n?o.views:[o];(0,em.UI)(s,function(i,n){var o=i.getController("annotation"),s=(0,em.hX)((0,em.U2)(o,["option"],[]),function(e){return e.name!==d7});o.clear(!0),(0,em.S6)(s,function(e){"object"==typeof e&&i.annotation()[e.type](e)});var a=(0,em.U2)(i,["filteredData"],i.getOptions().data);r({chart:i,index:n,options:(0,ef.pi)((0,ef.pi)({},e),{filteredData:d8(a,a,e)})}),i.filterData(a),t.rendering=!0,i.render(!0)})}this.rendering=!1},t}(rS),cv="funnel-conversion-tag",cE="funnel-afterrender",c_={trigger:"afterrender",action:"".concat(cv,":change")};function cC(e){var t,i=e.options,n=i.compareField,r=i.xField,o=i.yField,s=i.locale,a=i.funnelStyle,l=i.data,h=u3(s);return(n||a)&&(t=function(e){return up({},n&&{lineWidth:1,stroke:"#fff"},(0,em.mf)(a)?a(e):a)}),up({options:{label:n?{fields:[r,o,n,d1,d4],formatter:function(e){return"".concat(e[o])}}:{fields:[r,o,d1,d4],offset:0,position:"middle",formatter:function(e){return"".concat(e[r]," ").concat(e[o])}},tooltip:{title:r,formatter:function(e){return{name:e[r],value:e[o]}}},conversionTag:{formatter:function(e){return"".concat(h.get(["conversionTag","label"]),": ").concat(dk.apply(void 0,e[d4]))}}}},e,{options:{funnelStyle:t,data:(0,em.d9)(l)}})}function cS(e){var t=e.options,i=t.compareField,n=t.dynamicHeight;return t.seriesField?um(cp,cf)(e):i?um(cs,ca,ch)(e):n?um(cu,cd,cc,cg)(e):co(e)}function cy(e){var t,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.yField;return um(u0(((t={})[o]=n,t[s]=r,t)))(e)}function cT(e){return e.chart.axis(!1),e}function cb(e){var t=e.chart,i=e.options.legend;return!1===i?t.legend(!1):t.legend(i),e}function cA(e){var t=e.chart,i=e.options,n=i.interactions,r=i.dynamicHeight;return(0,em.S6)(n,function(e){!1===e.enable?t.removeInteraction(e.type):t.interaction(e.type,e.cfg||{})}),r?t.removeInteraction(cE):t.interaction(cE,{start:[(0,ef.pi)((0,ef.pi)({},c_),{arg:i})]}),e}function cR(e){return um(cC,cS,cy,cT,u$,cA,cb,uj,uq,u1())(e)}rA(cv,cm),r3(cE,{start:[c_]});var cL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="funnel",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return d9},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return cR},t.prototype.setState=function(e,t,i){void 0===i&&(i=!0);var n=u_(this.chart);(0,em.S6)(n,function(n){t(n.getData())&&n.setState(e,i)})},t.prototype.getStates=function(){var e=u_(this.chart),t=[];return(0,em.S6)(e,function(e){var i=e.getData(),n=e.getStates();(0,em.S6)(n,function(n){t.push({data:i,state:n,geometry:e.geometry,element:e})})}),t},t.CONVERSATION_FIELD=d4,t.PERCENT_FIELD=d1,t.TOTAL_PERCENT_FIELD=d5,t}(dc),cN="range",cI="type",cw="percent",cO="indicator-view",cx="range-view",cD={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:((Z={})[cN]={sync:"v"},Z[cw]={sync:"v",tickCount:5,tickInterval:.2},Z),animation:!1};function cM(e){var t;return[((t={})[cw]=(0,em.uZ)(e,0,1),t)]}function ck(e,t){var i=(0,em.U2)(t,["ticks"],[]),n=(0,em.dp)(i)?(0,em.jj)(i):[0,(0,em.uZ)(e,0,1),1];return n[0]||n.shift(),n.map(function(t,i){var r;return(r={})[cN]=t-(n[i-1]||0),r[cI]="".concat(i),r[cw]=e,r})}function cP(e){var t=e.chart,i=e.options,n=i.percent,r=i.range,o=i.radius,s=i.innerRadius,a=i.startAngle,l=i.endAngle,h=i.axis,u=i.indicator,d=i.gaugeStyle,c=i.type,g=i.meter,p=r.color,f=r.width;if(u){var m=cM(n),v=t.createView({id:cO});v.data(m),v.point().position("".concat(cw,"*1")).shape(u.shape||"gauge-indicator").customInfo({defaultColor:t.getTheme().defaultColor,indicator:u}),v.coordinate("polar",{startAngle:a,endAngle:l,radius:s*o}),v.axis(cw,h),v.scale(cw,us(h,un))}var E=ck(n,i.range),_=t.createView({id:cx});return _.data(E),dn({chart:_,options:{xField:"1",yField:cN,seriesField:cI,rawFields:[cw],isStack:!0,interval:{color:(0,em.HD)(p)?[p,"#f0f0f0"]:p,style:d,shape:"meter"===c?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:f,maxColumnWidth:f}}).ext.geometry.customInfo({meter:g}),_.coordinate("polar",{innerRadius:s,radius:o,startAngle:a,endAngle:l}).transpose(),e}function cF(e){var t;return um(u0(((t={range:{min:0,max:1,maxLimit:1,minLimit:0}})[cw]={},t)))(e)}function cB(e,t){var i=e.chart,n=e.options,r=n.statistic,o=n.percent;if(i.getController("annotation").clear(!0),r){var s=r.content,a=void 0;s&&(a=up({},{content:"".concat((100*o).toFixed(2),"%"),style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},s)),uw(i,{statistic:(0,ef.pi)((0,ef.pi)({},r),{content:a})},{percent:o})}return t&&i.render(!0),e}function cU(e){var t=e.chart,i=e.options.tooltip;return i?t.tooltip(up({showTitle:!1,showMarkers:!1,containerTpl:'
    ',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(e,t){var i=(0,em.U2)(t,[0,"data",cw],0);return"".concat((100*i).toFixed(2),"%")}},i)):t.tooltip(!1),e}function cH(e){return e.chart.legend(!1),e}function cV(e){return um(uq,uj,cP,cF,cU,cB,uX,u1(),cH)(e)}o$("point","gauge-indicator",{draw:function(e,t){var i=e.customInfo,n=i.indicator,r=i.defaultColor,o=n.pointer,s=n.pin,a=t.addGroup(),l=this.parsePoint({x:0,y:0});return o&&a.addShape("line",{name:"pointer",attrs:(0,ef.pi)({x1:l.x,y1:l.y,x2:e.x,y2:e.y,stroke:r},o.style)}),s&&a.addShape("circle",{name:"pin",attrs:(0,ef.pi)({x:l.x,y:l.y,stroke:r},s.style)}),a}}),o$("interval","meter-gauge",{draw:function(e,t){var i=e.customInfo.meter,n=void 0===i?{}:i,r=n.steps,o=void 0===r?50:r,s=n.stepRatio,a=void 0===s?.5:s;o=o<1?1:o,a=(0,em.uZ)(a,0,1);var l=this.coordinate,h=l.startAngle,u=l.endAngle,d=0;a>0&&a<1&&(d=(u-h)/o/(a/(1-a)+1-1/o));for(var c=d/(1-a)*a,g=t.addGroup(),p=this.coordinate.getCenter(),f=this.coordinate.getRadius(),m=sr.getAngle(e,this.coordinate),v=m.startAngle,E=m.endAngle,_=v;_1?l/(n-1):a.max),i||n||(h=l/(Math.ceil(Math.log(s.length)/Math.LN2)+1));var u={},d=(0,em.vM)(o,r);(0,em.xb)(d)?(0,em.S6)(o,function(e){var i=cG(e[t],h,n),r="".concat(i[0],"-").concat(i[1]);(0,em.wH)(u,r)||(u[r]={range:i,count:0}),u[r].count+=1}):Object.keys(d).forEach(function(e){(0,em.S6)(d[e],function(i){var o=cG(i[t],h,n),s="".concat(o[0],"-").concat(o[1]),a="".concat(s,"-").concat(e);(0,em.wH)(u,a)||(u[a]={range:o,count:0},u[a][r]=e),u[a].count+=1})});var c=[];return(0,em.S6)(u,function(e){c.push(e)}),c}var cY="range",cK="count",c$=up({},dc.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});function cX(e){var t=e.chart,i=e.options,n=i.data,r=i.binField,o=i.binNumber,s=i.binWidth,a=i.color,l=i.stackField,h=i.legend,u=i.columnStyle,d=cz(n,r,s,o,l);return t.data(d),dn(up({},e,{options:{xField:cY,yField:cK,seriesField:l,isStack:!0,interval:{color:a,style:u}}})),h&&l?t.legend(l,h):t.legend(!1),e}function cj(e){var t,i=e.options,n=i.xAxis,r=i.yAxis;return um(u0(((t={})[cY]=n,t[cK]=r,t)))(e)}function cq(e){var t=e.chart,i=e.options,n=i.xAxis,r=i.yAxis;return!1===n?t.axis(cY,!1):t.axis(cY,n),!1===r?t.axis(cK,!1):t.axis(cK,r),e}function cZ(e){var t=e.chart,i=e.options.label,n=uv(t,"interval");if(i){var r=i.callback,o=(0,ef._T)(i,["callback"]);n.label({fields:[cK],callback:r,cfg:uC(o)})}else n.label(!1);return e}function cJ(e){return um(uq,uY("columnStyle"),cX,cj,cq,uZ,cZ,u$,uX,uj)(e)}var cQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="histogram",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return c$},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.options,i=t.binField,n=t.binNumber,r=t.binWidth,o=t.stackField;this.chart.changeData(cz(e,i,r,n,o))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return cJ},t}(dc),c0=up({},dc.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left",radio:{}},isStack:!1});rA("marker-active",function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.active=function(){var e=this.getView(),t=this.context.event;if(t.data){var i=t.data.items,n=e.geometries.filter(function(e){return"point"===e.type});(0,em.S6)(n,function(e){(0,em.S6)(e.elements,function(e){var t=-1!==(0,em.cx)(i,function(t){return t.data===e.data});e.setState("active",t)})})}},t.prototype.reset=function(){var e=this.getView().geometries.filter(function(e){return"point"===e.type});(0,em.S6)(e,function(e){(0,em.S6)(e.elements,function(e){e.setState("active",!1)})})},t.prototype.getView=function(){return this.context.view},t}(rS)),r3("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]});var c1=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="line",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return c0},t.prototype.changeData=function(e){this.updateOption({data:e}),df({chart:this.chart,options:this.options}),this.chart.changeData(e)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return dS},t}(dc),c2=up({},dc.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}}),c4=[1,0,0,0,1,0,0,0,1];function c5(e,t){var i=t?(0,ef.ev)([],t,!0):(0,ef.ev)([],c4,!0);return sr.transform(i,e)}var c6=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getActiveElements=function(){var e=sr.getDelegationObject(this.context);if(e){var t=this.context.view,i=e.component,n=e.item,r=i.get("field");if(r)return t.geometries[0].elements.filter(function(e){return e.getModel().data[r]===n.value})}return[]},t.prototype.getActiveElementLabels=function(){var e=this.context.view,t=this.getActiveElements();return e.geometries[0].labelsContainer.getChildren().filter(function(e){return t.find(function(t){return(0,em.Xy)(t.getData(),e.get("data"))})})},t.prototype.transfrom=function(e){void 0===e&&(e=7.5);var t=this.getActiveElements(),i=this.getActiveElementLabels();t.forEach(function(t,n){var r=i[n],o=t.geometry.coordinate;if(o.isPolar&&o.isTransposed){var s=sr.getAngle(t.getModel(),o),a=(s.startAngle+s.endAngle)/2,l=e,h=l*Math.cos(a),u=l*Math.sin(a);t.shape.setMatrix(c5([["t",h,u]])),r.setMatrix(c5([["t",h,u]]))}})},t.prototype.active=function(){this.transfrom()},t.prototype.reset=function(){this.transfrom(0)},t}(rS),c3=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getAnnotations=function(e){return(e||this.context.view).getController("annotation").option},t.prototype.getInitialAnnotation=function(){return this.initialAnnotation},t.prototype.init=function(){var e=this,t=this.context.view;t.removeInteraction("tooltip"),t.on("afterchangesize",function(){var i=e.getAnnotations(t);e.initialAnnotation=i})},t.prototype.change=function(e){var t,i,n=this.context,r=n.view,o=n.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var s=(0,em.U2)(o,["data","data"]);if(o.type.match("legend-item")){var a=sr.getDelegationObject(this.context),l=r.getGroupedFields()[0];if(a&&l){var h=a.item;s=r.getData().find(function(e){return e[l]===h.value})}}if(s){var u=(0,em.U2)(e,"annotations",[]),d=(0,em.U2)(e,"statistic",{});r.getController("annotation").clear(!0),(0,em.S6)(u,function(e){"object"==typeof e&&r.annotation()[e.type](e)}),uI(r,{statistic:d,plotType:"pie"},s),r.render(!0)}var c=((i=this.context.event.target)&&(t=i.get("element")),t);c&&c.shape.toFront()},t.prototype.reset=function(){var e=this.context.view;e.getController("annotation").clear(!0);var t=this.getInitialAnnotation();(0,em.S6)(t,function(t){e.annotation()[t.type](t)}),e.render(!0)},t}(rS),c9="pie-statistic";function c7(e,t){return(0,em.yW)(uh(e,t),function(e){return 0===e[t]})}function c8(e){var t=e.chart,i=e.options,n=i.data,r=i.angleField,o=i.colorField,s=i.color,a=i.pieStyle,l=i.shape,h=uh(n,r);if(c7(h,r)){var u="$$percentage$$";h=h.map(function(e){var t;return(0,ef.pi)((0,ef.pi)({},e),((t={})[u]=1/h.length,t))}),t.data(h);var d=up({},e,{options:{xField:"1",yField:u,seriesField:o,isStack:!0,interval:{color:s,shape:l,style:a},args:{zIndexReversed:!0,sortZIndex:!0}}});dn(d)}else{t.data(h);var d=up({},e,{options:{xField:"1",yField:r,seriesField:o,isStack:!0,interval:{color:s,shape:l,style:a},args:{zIndexReversed:!0,sortZIndex:!0}}});dn(d)}return e}function ge(e){var t,i=e.chart,n=e.options,r=n.meta,o=n.colorField,s=up({},r);return i.scale(s,((t={})[o]={type:"cat"},t)),e}function gt(e){var t=e.chart,i=e.options,n=i.radius,r=i.innerRadius,o=i.startAngle,s=i.endAngle;return t.coordinate({type:"theta",cfg:{radius:n,innerRadius:r,startAngle:o,endAngle:s}}),e}function gi(e){var t=e.chart,i=e.options,n=i.label,r=i.colorField,o=i.angleField,s=t.geometries[0];if(n){var a=n.callback,l=uC((0,ef._T)(n,["callback"]));if(l.content){var h=l.content;l.content=function(e,i,n){var s=e[r],a=e[o],l=t.getScaleByField(o),u=null==l?void 0:l.scale(a);return(0,em.mf)(h)?h((0,ef.pi)((0,ef.pi)({},e),{percent:u}),i,n):(0,em.HD)(h)?uO(h,{value:a,name:s,percentage:(0,em.hj)(u)&&!(0,em.UM)(a)?"".concat((100*u).toFixed(2),"%"):null}):h}}var u=l.type?({inner:"",outer:"pie-outer",spider:"pie-spider"})[l.type]:"pie-outer",d=l.layout?(0,em.kJ)(l.layout)?l.layout:[l.layout]:[];l.layout=(u?[{type:u}]:[]).concat(d),s.label({fields:r?[o,r]:[o],callback:a,cfg:(0,ef.pi)((0,ef.pi)({},l),{offset:function(e,t){var i;switch(e){case"inner":if(i="-30%",(0,em.HD)(t)&&t.endsWith("%"))return .01*parseFloat(t)>0?i:t;return t<0?t:i;case"outer":if(i=12,(0,em.HD)(t)&&t.endsWith("%"))return .01*parseFloat(t)<0?i:t;return t>0?t:i;default:return t}}(l.type,l.offset),type:"pie"})})}else s.label(!1);return e}function gn(e){var t=e.innerRadius,i=e.statistic,n=e.angleField,r=e.colorField,o=e.meta,s=u3(e.locale);if(t&&i){var a=up({},c2.statistic,i),l=a.title,h=a.content;return!1!==l&&(l=up({},{formatter:function(e){var t=e?e[r]:(0,em.UM)(l.content)?s.get(["statistic","total"]):l.content;return((0,em.U2)(o,[r,"formatter"])||function(e){return e})(t)}},l)),!1!==h&&(h=up({},{formatter:function(e,t){var i,r=e?e[n]:(i=null,(0,em.S6)(t,function(e){"number"==typeof e[n]&&(i+=e[n])}),i),s=(0,em.U2)(o,[n,"formatter"])||function(e){return e};return e?s(r):(0,em.UM)(h.content)?s(r):h.content}},h)),up({},{statistic:{title:l,content:h}},e)}return e}function gr(e){var t=e.chart,i=gn(e.options),n=i.innerRadius,r=i.statistic;return t.getController("annotation").clear(!0),um(u1())(e),n&&r&&uI(t,{statistic:r,plotType:"pie"}),e}function go(e){var t=e.chart,i=e.options,n=i.tooltip,r=i.colorField,o=i.angleField,s=i.data;if(!1===n)t.tooltip(n);else if(t.tooltip(up({},n,{shared:!1})),c7(s,o)){var a=(0,em.U2)(n,"fields"),l=(0,em.U2)(n,"formatter");(0,em.xb)((0,em.U2)(n,"fields"))&&(a=[r,o],l=l||function(e){return{name:e[r],value:(0,em.BB)(e[o])}}),t.geometries[0].tooltip(a.join("*"),u8(a,l))}return e}function gs(e){var t=e.chart,i=gn(e.options),n=i.interactions,r=i.statistic,o=i.annotations;return(0,em.S6)(n,function(e){var i,n;if(!1===e.enable)t.removeInteraction(e.type);else if("pie-statistic-active"===e.type){var s=[];(null===(i=e.cfg)||void 0===i?void 0:i.start)||(s=[{trigger:"element:mouseenter",action:"".concat(c9,":change"),arg:{statistic:r,annotations:o}}]),(0,em.S6)(null===(n=e.cfg)||void 0===n?void 0:n.start,function(e){s.push((0,ef.pi)((0,ef.pi)({},e),{arg:{statistic:r,annotations:o}}))}),t.interaction(e.type,up({},e.cfg,{start:s}))}else t.interaction(e.type,e.cfg||{})}),e}function ga(e){return um(uY("pieStyle"),c8,ge,uq,gt,uK,go,gi,uZ,gr,gs,uj)(e)}rA(c9,c3),r3("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),rA("pie-legend",c6),r3("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]});var gl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="pie",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return c2},t.prototype.changeData=function(e){this.chart.emit(M.BEFORE_CHANGE_DATA,o_.fromData(this.chart,M.BEFORE_CHANGE_DATA,null));var t=this.options,i=this.options.angleField,n=uh(t.data,i),r=uh(e,i);c7(n,i)||c7(r,i)?this.update({data:e}):(this.updateOption({data:e}),this.chart.data(r),gr({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(M.AFTER_CHANGE_DATA,o_.fromData(this.chart,M.AFTER_CHANGE_DATA,null))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return ga},t}(dc),gh={percent:.2,color:["#FAAD14","#E8EDF3"],animation:{}};function gu(e){var t=(0,em.uZ)(uS(e)?e:0,0,1);return[{current:"".concat(t),type:"current",percent:t},{current:"".concat(t),type:"target",percent:1}]}function gd(e){var t=e.chart,i=e.options,n=i.percent,r=i.progressStyle,o=i.color,s=i.barWidthRatio;return t.data(gu(n)),dn(up({},e,{options:{xField:"current",yField:"percent",seriesField:"type",widthRatio:s,interval:{style:r,color:(0,em.HD)(o)?[o,"#E8EDF3"]:o},args:{zIndexReversed:!0,sortZIndex:!0}}})),t.tooltip(!1),t.axis(!1),t.legend(!1),e}function gc(e){return e.chart.coordinate("rect").transpose(),e}function gg(e){return um(gd,u0({}),gc,uj,uq,u1())(e)}var gp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="process",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return gh},t.prototype.changeData=function(e){this.updateOption({percent:e}),this.chart.changeData(gu(e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return gg},t}(dc);function gf(e){var t=e.chart,i=e.options,n=i.innerRadius,r=i.radius;return t.coordinate("theta",{innerRadius:n,radius:r}),e}function gm(e,t){var i=e.chart,n=e.options,r=n.innerRadius,o=n.statistic,s=n.percent,a=n.meta;if(i.getController("annotation").clear(!0),r&&o){var l=(0,em.U2)(a,["percent","formatter"])||function(e){return"".concat((100*e).toFixed(2),"%")},h=o.content;h&&(h=up({},h,{content:(0,em.UM)(h.content)?l(s):h.content})),uI(i,{statistic:(0,ef.pi)((0,ef.pi)({},o),{content:h}),plotType:"ring-progress"},{percent:s})}return t&&i.render(!0),e}function gv(e){return um(gd,u0({}),gf,gm,uj,uq,u1())(e)}var gE={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}},g_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="ring-process",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return gE},t.prototype.changeData=function(e){this.chart.emit(M.BEFORE_CHANGE_DATA,o_.fromData(this.chart,M.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:e}),this.chart.data(gu(e)),gm({chart:this.chart,options:this.options},!0),this.chart.emit(M.AFTER_CHANGE_DATA,o_.fromData(this.chart,M.AFTER_CHANGE_DATA,null))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return gv},t}(dc),gC=i(56645),gS={exp:gC.regressionExp,linear:gC.regressionLinear,loess:gC.regressionLoess,log:gC.regressionLog,poly:gC.regressionPoly,pow:gC.regressionPow,quad:gC.regressionQuad},gy=function(e,t){var i=t.view,n=t.options,r=n.xField,o=n.yField,s=i.getScaleByField(r),a=i.getScaleByField(o);return function(e,t,i){var n=[],r=e[0],o=null;if(e.length<=2)return function(e,t){var i=[];if(e.length){i.push(["M",e[0].x,e[0].y]);for(var n=1,r=e.length;n
    ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},gZ={appendPadding:2,tooltip:(0,ef.pi)({},gq),animation:{}};function gJ(e){var t=e.chart,i=e.options,n=i.data,r=i.color,o=i.areaStyle,s=i.point,a=i.line,l=null==s?void 0:s.state,h=gj(n);t.data(h);var u=up({},e,{options:{xField:"x",yField:"y",area:{color:r,style:o},line:a,point:s}}),d=up({},u,{options:{tooltip:!1}}),c=up({},u,{options:{tooltip:!1,state:l}});return dt(u),dr(d),ds(c),t.axis(!1),t.legend(!1),e}function gQ(e){var t,i,n=e.options,r=n.xAxis,o=n.yAxis,s=gj(n.data);return um(u0(((t={}).x=r,t.y=o,t),((i={}).x={type:"cat"},i.y=ua(s,"y"),i)))(e)}function g0(e){return um(uY("areaStyle"),gJ,gQ,u$,uq,uj,u1())(e)}var g1={appendPadding:2,tooltip:(0,ef.pi)({},gq),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},g2=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="tiny-area",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return g1},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.chart;gQ({chart:t,options:this.options}),t.changeData(gj(e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return g0},t}(dc);function g4(e){var t=e.chart,i=e.options,n=i.data,r=i.color,o=i.columnStyle,s=i.columnWidthRatio,a=gj(n);return t.data(a),dn(up({},e,{options:{xField:"x",yField:"y",widthRatio:s,interval:{style:o,color:r}}})),t.axis(!1),t.legend(!1),t.interaction("element-active"),e}function g5(e){return um(uq,uY("columnStyle"),g4,gQ,u$,uj,u1())(e)}var g6={appendPadding:2,tooltip:(0,ef.pi)({},{showTitle:!1,shared:!0,showMarkers:!1,customContent:function(e,t){return"".concat((0,em.U2)(t,[0,"data","y"],0))},containerTpl:'
    ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}}),animation:{}},g3=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="tiny-column",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return g6},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.chart;gQ({chart:t,options:this.options}),t.changeData(gj(e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return g5},t}(dc);function g9(e){var t=e.chart,i=e.options,n=i.data,r=i.color,o=i.lineStyle,s=i.point,a=null==s?void 0:s.state,l=gj(n);t.data(l);var h=up({},e,{options:{xField:"x",yField:"y",line:{color:r,style:o},point:s}}),u=up({},h,{options:{tooltip:!1,state:a}});return dr(h),ds(u),t.axis(!1),t.legend(!1),e}function g7(e){return um(g9,gQ,uq,u$,uj,u1())(e)}var g8=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="tiny-line",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return gZ},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.chart;gQ({chart:t,options:this.options}),t.changeData(gj(e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return g7},t}(dc),pe={line:dS,pie:ga,column:dz,bar:dq,area:dA,gauge:cV,"tiny-line":g7,"tiny-column":g5,"tiny-area":g0,"ring-progress":gv,progress:gg,scatter:gM,histogram:cJ,funnel:cR,stock:g$},pt={line:c1,pie:gl,column:d0,bar:dJ,area:dL,gauge:cW,"tiny-line":g8,"tiny-column":g3,"tiny-area":g2,"ring-progress":g_,progress:gp,scatter:gP,histogram:cQ,funnel:cL,stock:gX},pi={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function pn(e,t,i){var n=pt[e];if(!n){console.error("could not find ".concat(e," plot"));return}(0,pe[e])({chart:t,options:up({},n.getDefaultOptions(),(0,em.U2)(pi,e,{}),i)})}function pr(e){var t=e.chart,i=e.options,n=i.views,r=i.legend;return(0,em.S6)(n,function(e){var i=e.region,n=e.data,r=e.meta,o=e.axes,s=e.coordinate,a=e.interactions,l=e.annotations,h=e.tooltip,u=e.geometries,d=t.createView({region:i});d.data(n);var c={};o&&(0,em.S6)(o,function(e,t){c[t]=us(e,un)}),c=up({},r,c),d.scale(c),o?(0,em.S6)(o,function(e,t){d.axis(t,e)}):d.axis(!1),d.coordinate(s),(0,em.S6)(u,function(e){var t=de({chart:d,options:e}).ext,i=e.adjust;i&&t.geometry.adjust(i)}),(0,em.S6)(a,function(e){!1===e.enable?d.removeInteraction(e.type):d.interaction(e.type,e.cfg)}),(0,em.S6)(l,function(e){d.annotation()[e.type]((0,ef.pi)({},e))}),"boolean"==typeof e.animation?d.animate(!1):(d.animate(!0),(0,em.S6)(d.geometries,function(t){t.animate(e.animation)})),h&&(d.interaction("tooltip"),d.tooltip(h))}),r?(0,em.S6)(r,function(e,i){t.legend(i,e)}):t.legend(!1),t.tooltip(i.tooltip),e}function po(e){var t=e.chart,i=e.options,n=i.plots,r=i.data,o=void 0===r?[]:r;return(0,em.S6)(n,function(e){var i=e.type,n=e.region,r=e.options,s=void 0===r?{}:r,a=e.top,l=s.tooltip;if(a){pn(i,t,(0,ef.pi)((0,ef.pi)({},s),{data:o}));return}var h=t.createView((0,ef.pi)({region:n},us(s,dd)));l&&h.interaction("tooltip"),pn(i,h,(0,ef.pi)({data:o},s))}),e}function ps(e){var t=e.chart,i=e.options;return t.option("slider",i.slider),e}function pa(e){return um(uj,pr,po,uX,uj,uq,u$,ps,u1())(e)}rA("association",function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getAssociationItems=function(e,t){var i,n=this.context.event,r=t||{},o=r.linkField,s=r.dim,a=[];if(null===(i=n.data)||void 0===i?void 0:i.data){var l=n.data.data;(0,em.S6)(e,function(e){var t,i,n=o;if("x"===s?n=e.getXScale().field:"y"===s?n=null===(t=e.getYScales().find(function(e){return e.field===n}))||void 0===t?void 0:t.field:n||(n=null===(i=e.getGroupScales()[0])||void 0===i?void 0:i.field),n){var r=(0,em.UI)(uE(e),function(t){var i,r,o=!1,s=!1,a=(0,em.kJ)(l)?(0,em.U2)(l[0],n):(0,em.U2)(l,n);return(i=n,r=t.getModel().data,((0,em.kJ)(r)?r[0][i]:r[i])===a)?o=!0:s=!0,{element:t,view:e,active:o,inactive:s}});a.push.apply(a,r)}})}return a},t.prototype.showTooltip=function(e){var t=uM(this.context.view),i=this.getAssociationItems(t,e);(0,em.S6)(i,function(e){if(e.active){var t=e.element.shape.getCanvasBBox();e.view.showTooltip({x:t.minX+t.width/2,y:t.minY+t.height/2})}})},t.prototype.hideTooltip=function(){var e=uM(this.context.view);(0,em.S6)(e,function(e){e.hideTooltip()})},t.prototype.active=function(e){var t=uD(this.context.view),i=this.getAssociationItems(t,e);(0,em.S6)(i,function(e){var t=e.active,i=e.element;t&&i.setState("active",!0)})},t.prototype.selected=function(e){var t=uD(this.context.view),i=this.getAssociationItems(t,e);(0,em.S6)(i,function(e){var t=e.active,i=e.element;t&&i.setState("selected",!0)})},t.prototype.highlight=function(e){var t=uD(this.context.view),i=this.getAssociationItems(t,e);(0,em.S6)(i,function(e){var t=e.inactive,i=e.element;t&&i.setState("inactive",!0)})},t.prototype.reset=function(){var e=uD(this.context.view);(0,em.S6)(e,function(e){var t;t=uE(e),(0,em.S6)(t,function(e){e.hasState("active")&&e.setState("active",!1),e.hasState("selected")&&e.setState("selected",!1),e.hasState("inactive")&&e.setState("inactive",!1)})})},t}(rS)),r3("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),r3("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),r3("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),r3("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]});var pl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="mix",t}return(0,ef.ZT)(t,e),t.prototype.getSchemaAdaptor=function(){return pa},t}(dc);(L=J||(J={})).DEV="DEV",L.BETA="BETA",L.STABLE="STABLE",Object.defineProperty(function(){},"MultiView",{get:function(){var e,t;return e=J.STABLE,t="MultiView",console.warn(e===J.DEV?"Plot '".concat(t,"' is in DEV stage, just give us issues."):e===J.BETA?"Plot '".concat(t,"' is in BETA stage, DO NOT use it in production env."):e===J.STABLE?"Plot '".concat(t,"' is in STABLE stage, import it by \"import { ").concat(t," } from '@antv/g2plot'\"."):"invalid Stage type."),pl},enumerable:!1,configurable:!0});var ph="first-axes-view",pu="second-axes-view",pd="series-field-key";function pc(e,t,i,n,r){var o=[];t.forEach(function(t){n.forEach(function(n){var r,s=((r={})[e]=n[e],r[i]=t,r[t]=n[t],r);o.push(s)})});var s=Object.values((0,em.vM)(o,i)),a=s[0],l=void 0===a?[]:a,h=s[1],u=void 0===h?[]:h;return r?[l.reverse(),u.reverse()]:[l,u]}function pg(e){return"vertical"!==e}function pp(e,t,i){var n=t[0],r=t[1],o=n.autoPadding,s=r.autoPadding,a=e.__axisPosition,l=a.layout,h=a.position;if(pg(l)&&"top"===h&&(n.autoPadding=i.instance(o.top,0,o.bottom,o.left),r.autoPadding=i.instance(s.top,o.left,s.bottom,0)),pg(l)&&"bottom"===h&&(n.autoPadding=i.instance(o.top,o.right/2+5,o.bottom,o.left),r.autoPadding=i.instance(s.top,s.right,s.bottom,o.right/2+5)),!pg(l)&&"bottom"===h){var u=o.left>=s.left?o.left:s.left;n.autoPadding=i.instance(o.top,o.right,o.bottom/2+5,u),r.autoPadding=i.instance(o.bottom/2+5,s.right,s.bottom,u)}if(!pg(l)&&"top"===h){var u=o.left>=s.left?o.left:s.left;n.autoPadding=i.instance(o.top,o.right,0,u),r.autoPadding=i.instance(0,s.right,o.top,u)}}function pf(e){var t,i,n=e.chart,r=e.options,o=r.data,s=r.xField,a=r.yField,l=r.color,h=r.barStyle,u=r.widthRatio,d=r.legend,c=r.layout,g=pc(s,a,pd,o,pg(c));d?n.legend(pd,d):!1===d&&n.legend(!1);var p=g[0],f=g[1];return pg(c)?((t=n.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:ph})).coordinate().transpose().reflect("x"),(i=n.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:pu})).coordinate().transpose(),t.data(p),i.data(f)):(t=n.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:ph}),(i=n.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:pu})).coordinate().reflect("y"),t.data(p),i.data(f)),dn(up({},e,{chart:t,options:{widthRatio:u,xField:s,yField:a[0],seriesField:pd,interval:{color:l,style:h}}})),dn(up({},e,{chart:i,options:{xField:s,yField:a[1],seriesField:pd,widthRatio:u,interval:{color:l,style:h}}})),e}function pm(e){var t,i,n,r=e.options,o=e.chart,s=r.xAxis,a=r.yAxis,l=r.xField,h=r.yField,u=ux(o,ph),d=ux(o,pu),c={};return(0,em.XP)((null==r?void 0:r.meta)||{}).map(function(e){(0,em.U2)(null==r?void 0:r.meta,[e,"alias"])&&(c[e]=r.meta[e].alias)}),o.scale(((t={})[pd]={sync:!0,formatter:function(e){return(0,em.U2)(c,e,e)}},t)),u0(((i={})[l]=s,i[h[0]]=a[h[0]],i))(up({},e,{chart:u})),u0(((n={})[l]=s,n[h[1]]=a[h[1]],n))(up({},e,{chart:d})),e}function pv(e){var t=e.chart,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.yField,a=i.layout,l=ux(t,ph),h=ux(t,pu);return(null==n?void 0:n.position)==="bottom"?h.axis(o,(0,ef.pi)((0,ef.pi)({},n),{label:{formatter:function(){return""}}})):h.axis(o,!1),!1===n?l.axis(o,!1):l.axis(o,(0,ef.pi)({position:pg(a)?"top":"bottom"},n)),!1===r?(l.axis(s[0],!1),h.axis(s[1],!1)):(l.axis(s[0],r[s[0]]),h.axis(s[1],r[s[1]])),t.__axisPosition={position:l.getOptions().axes[o].position,layout:a},e}function pE(e){var t=e.chart;return uX(up({},e,{chart:ux(t,ph)})),uX(up({},e,{chart:ux(t,pu)})),e}function p_(e){var t=e.chart,i=e.options,n=i.yField,r=i.yAxis;return u2(up({},e,{chart:ux(t,ph),options:{yAxis:r[n[0]]}})),u2(up({},e,{chart:ux(t,pu),options:{yAxis:r[n[1]]}})),e}function pC(e){var t=e.chart;return uq(up({},e,{chart:ux(t,ph)})),uq(up({},e,{chart:ux(t,pu)})),uq(e),e}function pS(e){var t=e.chart;return uj(up({},e,{chart:ux(t,ph)})),uj(up({},e,{chart:ux(t,pu)})),e}function py(e){var t,i,n=this,r=e.chart,o=e.options,s=o.label,a=o.yField,l=o.layout,h=ux(r,ph),u=ux(r,pu),d=uv(h,"interval"),c=uv(u,"interval");if(s){var g=s.callback,p=(0,ef._T)(s,["callback"]);p.position||(p.position="middle"),void 0===p.offset&&(p.offset=2);var f=(0,ef.pi)({},p);if(pg(l)){var m=(null===(t=f.style)||void 0===t?void 0:t.textAlign)||("middle"===p.position?"center":"left");p.style=up({},p.style,{textAlign:m}),f.style=up({},f.style,{textAlign:{left:"right",right:"left",center:"center"}[m]})}else{var v={top:"bottom",bottom:"top",middle:"middle"};"string"==typeof p.position?p.position=v[p.position]:"function"==typeof p.position&&(p.position=function(){for(var e=[],t=0;t1?"".concat(t,"_").concat(i):"".concat(t)}function pk(e){var t=e.data,i=e.xField,n=e.measureField,r=e.rangeField,o=e.targetField,s=e.layout,a=[],l=[];t.forEach(function(e,t){var s=[e[r]].flat();s.sort(function(e,t){return e-t}),s.forEach(function(n,o){var l,h=0===o?n:s[o]-s[o-1];a.push(((l={rKey:"".concat(r,"_").concat(o)})[i]=i?e[i]:String(t),l[r]=h,l))});var h=[e[n]].flat();h.forEach(function(r,o){var s;a.push(((s={mKey:pM(h,n,o)})[i]=i?e[i]:String(t),s[n]=r,s))});var u=[e[o]].flat();u.forEach(function(n,r){var s;a.push(((s={tKey:pM(u,o,r)})[i]=i?e[i]:String(t),s[o]=n,s))}),l.push(e[r],e[n],e[o])});var h=Math.min.apply(Math,l.flat(1/0)),u=Math.max.apply(Math,l.flat(1/0));return h=h>0?0:h,"vertical"===s&&a.reverse(),{min:h,max:u,ds:a}}function pP(e){var t=e.chart,i=e.options,n=i.bulletStyle,r=i.targetField,o=i.rangeField,s=i.measureField,a=i.xField,l=i.color,h=i.layout,u=i.size,d=i.label,c=pk(i),g=c.min,p=c.max,f=c.ds;return t.data(f),dn(up({},e,{options:{xField:a,yField:o,seriesField:"rKey",isStack:!0,label:(0,em.U2)(d,"range"),interval:{color:(0,em.U2)(l,"range"),style:(0,em.U2)(n,"range"),size:(0,em.U2)(u,"range")}}})),t.geometries[0].tooltip(!1),dn(up({},e,{options:{xField:a,yField:s,seriesField:"mKey",isStack:!0,label:(0,em.U2)(d,"measure"),interval:{color:(0,em.U2)(l,"measure"),style:(0,em.U2)(n,"measure"),size:(0,em.U2)(u,"measure")}}})),ds(up({},e,{options:{xField:a,yField:r,seriesField:"tKey",label:(0,em.U2)(d,"target"),point:{color:(0,em.U2)(l,"target"),style:(0,em.U2)(n,"target"),size:(0,em.mf)((0,em.U2)(u,"target"))?function(e){return(0,em.U2)(u,"target")(e)/2}:(0,em.U2)(u,"target")/2,shape:"horizontal"===h?"line":"hyphen"}}})),"horizontal"===h&&t.coordinate().transpose(),(0,ef.pi)((0,ef.pi)({},e),{ext:{data:{min:g,max:p}}})}function pF(e){var t,i,n=e.options,r=e.ext,o=n.xAxis,s=n.yAxis,a=n.targetField,l=n.rangeField,h=n.measureField,u=n.xField,d=r.data;return um(u0(((t={})[u]=o,t[h]=s,t),((i={})[h]={min:null==d?void 0:d.min,max:null==d?void 0:d.max,sync:!0},i[a]={sync:"".concat(h)},i[l]={sync:"".concat(h)},i)))(e)}function pB(e){var t=e.chart,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.measureField,a=i.rangeField,l=i.targetField;return t.axis("".concat(a),!1),t.axis("".concat(l),!1),!1===n?t.axis("".concat(o),!1):t.axis("".concat(o),n),!1===r?t.axis("".concat(s),!1):t.axis("".concat(s),r),e}function pU(e){var t=e.chart,i=e.options.legend;return t.removeInteraction("legend-filter"),t.legend(i),t.legend("rKey",!1),t.legend("mKey",!1),t.legend("tKey",!1),e}function pH(e){var t=e.chart,i=e.options,n=i.label,r=i.measureField,o=i.targetField,s=i.rangeField,a=t.geometries,l=a[0],h=a[1],u=a[2];return(0,em.U2)(n,"range")?l.label("".concat(s),(0,ef.pi)({layout:[{type:"limit-in-plot"}]},uC(n.range))):l.label(!1),(0,em.U2)(n,"measure")?h.label("".concat(r),(0,ef.pi)({layout:[{type:"limit-in-plot"}]},uC(n.measure))):h.label(!1),(0,em.U2)(n,"target")?u.label("".concat(o),(0,ef.pi)({layout:[{type:"limit-in-plot"}]},uC(n.target))):u.label(!1),e}function pV(e){um(pP,pF,pB,pU,uq,pH,u$,uX,uj)(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="box",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return pR},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.options.yField,i=this.chart.views.find(function(e){return e.id===pA});i&&i.data(e),this.chart.changeData(pL(e,t))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return pD}}(dc);var pW=up({},dc.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}});!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="bullet",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return pW},t.prototype.changeData=function(e){this.updateOption({data:e});var t=pk(this.options),i=t.min,n=t.max,r=t.ds;pF({options:this.options,ext:{data:{min:i,max:n}},chart:this.chart}),this.chart.changeData(r)},t.prototype.getSchemaAdaptor=function(){return pV},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()}}(dc);var pG={y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(e){return e.id},source:function(e){return e.source},target:function(e){return e.target},sourceWeight:function(e){return e.value||1},targetWeight:function(e){return e.value||1},sortBy:null},pz="name",pY="source",pK={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(e,t){return{offsetX:(e[0]+e[1])/2>.5?-4:4,content:t}},labelEmit:!0,style:{fill:"#8c8c8c"}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(e){return!(0,em.U2)(e,[0,"data","isNode"])},formatter:function(e){var t=e.source,i=e.target,n=e.value;return{name:"".concat(t," -> ").concat(i),value:n}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function p$(e){var t,i,n,r,o,s,a=e.options,l=a.data,h=a.sourceField,u=a.targetField,d=a.weightField,c=a.nodePaddingRatio,g=a.nodeWidthRatio,p=a.rawFields,f=void 0===p?[]:p,m=ul(l,h,u,d),v=(t=(0,em.f0)({},pG,{weight:!0,nodePaddingRatio:c,nodeWidthRatio:g}),i={},n=m.nodes,r=m.links,n.forEach(function(e){i[t.id(e)]=e}),(0,em.U5)(i,function(e,i){e.inEdges=r.filter(function(e){return"".concat(t.target(e))==="".concat(i)}),e.outEdges=r.filter(function(e){return"".concat(t.source(e))==="".concat(i)}),e.edges=e.outEdges.concat(e.inEdges),e.frequency=e.edges.length,e.value=0,e.inEdges.forEach(function(i){e.value+=t.targetWeight(i)}),e.outEdges.forEach(function(i){e.value+=t.sourceWeight(i)})}),!(s=({weight:function(e,t){return t.value-e.value},frequency:function(e,t){return t.frequency-e.frequency},id:function(e,t){return"".concat(o.id(e)).localeCompare("".concat(o.id(t)))}})[(o=t).sortBy])&&(0,em.mf)(o.sortBy)&&(s=o.sortBy),s&&n.sort(s),{nodes:function(e,t){var i=e.length;if(!i)throw TypeError("Invalid nodes: it's empty!");if(t.weight){var n=t.nodePaddingRatio;if(n<0||n>=1)throw TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var r=n/(2*i),o=t.nodeWidthRatio;if(o<=0||o>=1)throw TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var s=0;e.forEach(function(e){s+=e.value}),e.forEach(function(e){e.weight=e.value/s,e.width=e.weight*(1-n),e.height=o}),e.forEach(function(i,n){for(var s=0,a=n-1;a>=0;a--)s+=e[a].width+2*r;var l=i.minX=r+s,h=i.maxX=i.minX+i.width,u=i.minY=t.y-o/2,d=i.maxY=u+o;i.x=[l,h,h,l],i.y=[u,u,d,d]})}else{var a=1/i;e.forEach(function(e,i){e.x=(i+.5)*a,e.y=t.y})}return e}(n,t),links:function(e,t,i){if(i.weight){var n={};(0,em.U5)(e,function(e,t){n[t]=e.value}),t.forEach(function(t){var r=i.source(t),o=i.target(t),s=e[r],a=e[o];if(s&&a){var l=n[r],h=i.sourceWeight(t),u=s.minX+(s.value-l)/s.value*s.width,d=u+h/s.value*s.width;n[r]-=h;var c=n[o],g=i.targetWeight(t),p=a.minX+(a.value-c)/a.value*a.width,f=p+g/a.value*a.width;n[o]-=g;var m=i.y;t.x=[u,d,p,f],t.y=[m,m,m,m],t.source=s,t.target=a}})}else t.forEach(function(t){var n=e[i.source(t)],r=e[i.target(t)];n&&r&&(t.x=[n.x,r.x],t.y=[n.y,r.y],t.source=n,t.target=r)});return t}(i,r,t)}),E=v.nodes,_=v.links,C=E.map(function(e){return(0,ef.pi)((0,ef.pi)({},us(e,(0,ef.ev)(["id","x","y","name"],f,!0))),{isNode:!0})}),S=_.map(function(e){return(0,ef.pi)((0,ef.pi)({source:e.source.name,target:e.target.name,name:e.source.name||e.target.name},us(e,(0,ef.ev)(["x","y","value"],f,!0))),{isNode:!1})});return(0,ef.pi)((0,ef.pi)({},e),{ext:(0,ef.pi)((0,ef.pi)({},e.ext),{chordData:{nodesData:C,edgesData:S}})})}function pX(e){var t;return e.chart.scale(((t={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}})[pz]={sync:"color"},t[pY]={sync:"color"},t)),e}function pj(e){return e.chart.axis(!1),e}function pq(e){return e.chart.legend(!1),e}function pZ(e){var t=e.chart,i=e.options.tooltip;return t.tooltip(i),e}function pJ(e){return e.chart.coordinate("polar").reflect("y"),e}function pQ(e){var t=e.chart,i=e.options,n=e.ext.chordData.nodesData,r=i.nodeStyle,o=i.label,s=i.tooltip,a=t.createView();return a.data(n),da({chart:a,options:{xField:"x",yField:"y",seriesField:pz,polygon:{style:r},label:o,tooltip:s}}),e}function p0(e){var t=e.chart,i=e.options,n=e.ext.chordData.edgesData,r=i.edgeStyle,o=i.tooltip,s=t.createView();return s.data(n),di({chart:s,options:{xField:"x",yField:"y",seriesField:pY,edge:{style:r,shape:"arc"},tooltip:o}}),e}function p1(e){var t=e.chart;return uk(t,e.options.animation,0>=(0,em.U2)(t,["views","length"],0)?t.geometries:(0,em.u4)(t.views,function(e,t){return e.concat(t.geometries)},t.geometries)),e}function p2(e){return um(uq,p$,pJ,pX,pj,pq,pZ,p0,pQ,uX,uZ,p1)(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="chord",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return pK},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return p2}}(dc);var p4=["x","y","r","name","value","path","depth"],p5={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}},p6="drilldown-bread-crumb",p3={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},p9="hierarchy-data-transform-params",p7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="drill-down",t.historyCache=[],t.breadCrumbGroup=null,t.breadCrumbCfg=p3,t}return(0,ef.ZT)(t,e),t.prototype.click=function(){var e=(0,em.U2)(this.context,["event","data","data"]);if(!e)return!1;this.drill(e),this.drawBreadCrumb()},t.prototype.resetPosition=function(){if(this.breadCrumbGroup){var e=this.context.view.getCoordinate(),t=this.breadCrumbGroup,i=t.getBBox(),n=this.getButtonCfg().position,r={x:e.start.x,y:e.end.y-(i.height+10)};e.isPolar&&(r={x:0,y:0}),"bottom-left"===n&&(r={x:e.start.x,y:e.start.y});var o=sr.transform(null,[["t",r.x+0,r.y+i.height+5]]);t.setMatrix(o)}},t.prototype.back=function(){(0,em.dp)(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},t.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},t.prototype.drill=function(e){var t=this.context.view,i=(0,em.U2)(t,["interactions","drill-down","cfg","transformData"],function(e){return e}),n=i((0,ef.pi)({data:e.data},e[p9]));t.changeData(n);for(var r=[],o=e;o;){var s=o.data;r.unshift({id:"".concat(s.name,"_").concat(o.height,"_").concat(o.depth),name:s.name,children:i((0,ef.pi)({data:s},e[p9]))}),o=o.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(r)},t.prototype.backTo=function(e){if(e&&!(e.length<=0)){var t=this.context.view,i=(0,em.Z$)(e).children;t.changeData(i),e.length>1?(this.historyCache=e,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},t.prototype.getButtonCfg=function(){var e=this.context.view,t=(0,em.U2)(e,["interactions","drill-down","cfg","drillDownConfig"]);return up(this.breadCrumbCfg,null==t?void 0:t.breadCrumb,this.cfg)},t.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},t.prototype.drawBreadCrumbGroup=function(){var e=this,t=this.getButtonCfg(),i=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:p6});var n=0;i.forEach(function(r,o){var s=e.breadCrumbGroup.addShape({type:"text",id:r.id,name:"".concat(p6,"_").concat(r.name,"_text"),attrs:(0,ef.pi)((0,ef.pi)({text:0!==o||(0,em.UM)(t.rootText)?r.name:t.rootText},t.textStyle),{x:n,y:0})}),a=s.getBBox();if(n+=a.width+4,s.on("click",function(t){var n,r=t.target.get("id");if(r!==(null===(n=(0,em.Z$)(i))||void 0===n?void 0:n.id)){var o=i.slice(0,i.findIndex(function(e){return e.id===r})+1);e.backTo(o)}}),s.on("mouseenter",function(e){var n;e.target.get("id")!==(null===(n=(0,em.Z$)(i))||void 0===n?void 0:n.id)?s.attr(t.activeTextStyle):s.attr({cursor:"default"})}),s.on("mouseleave",function(){s.attr(t.textStyle)}),o0&&i*i>n*n+r*r}function fi(e,t){for(var i=0;i(s*=s)?(n=(h+s-r)/(2*h),o=Math.sqrt(Math.max(0,s/h-n*n)),i.x=e.x-n*a-o*l,i.y=e.y-n*l+o*a):(n=(h+r-s)/(2*h),o=Math.sqrt(Math.max(0,r/h-n*n)),i.x=t.x+n*a-o*l,i.y=t.y+n*l+o*a)):(i.x=t.x+i.r,i.y=t.y)}function fs(e,t){var i=e.r+t.r-1e-6,n=t.x-e.x,r=t.y-e.y;return i>0&&i*i>n*n+r*r}function fa(e){var t=e._,i=e.next._,n=t.r+i.r,r=(t.x*i.r+i.x*t.r)/n,o=(t.y*i.r+i.y*t.r)/n;return r*r+o*o}function fl(e){this._=e,this.next=null,this.previous=null}function fh(e){var t,i,n,r,o,s,a,l,h,u,d,c;if(!(r=(e="object"==typeof(c=e)&&"length"in c?c:Array.from(c)).length))return 0;if((t=e[0]).x=0,t.y=0,!(r>1))return t.r;if(i=e[1],t.x=-i.r,i.x=t.r,i.y=0,!(r>2))return t.r+i.r;fo(i,t,n=e[2]),t=new fl(t),i=new fl(i),n=new fl(n),t.next=n.previous=i,i.next=t.previous=n,n.next=i.previous=t;e:for(a=3;a=0;)t+=i[n].value;else t=1;e.value=t}function fC(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=fy)):void 0===t&&(t=fS);for(var i,n,r,o,s,a=new fA(e),l=[a];i=l.pop();)if((r=t(i.data))&&(s=(r=Array.from(r)).length))for(i.children=r,o=s-1;o>=0;--o)l.push(n=r[o]=new fA(r[o])),n.parent=i,n.depth=i.depth+1;return a.eachBefore(fb)}function fS(e){return e.children}function fy(e){return Array.isArray(e)?e[1]:null}function fT(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function fb(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function fA(e){this.data=e,this.depth=this.height=0,this.parent=null}fA.prototype=fC.prototype={constructor:fA,count:function(){return this.eachAfter(f_)},each:function(e,t){let i=-1;for(let n of this)e.call(t,n,++i,this);return this},eachAfter:function(e,t){for(var i,n,r,o=this,s=[o],a=[],l=-1;o=s.pop();)if(a.push(o),i=o.children)for(n=0,r=i.length;n=0;--n)o.push(i[n]);return this},find:function(e,t){let i=-1;for(let n of this)if(e.call(t,n,++i,this))return n},sum:function(e){return this.eachAfter(function(t){for(var i=+e(t.data)||0,n=t.children,r=n&&n.length;--r>=0;)i+=n[r].value;t.value=i})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,i=function(e,t){if(e===t)return e;var i=e.ancestors(),n=t.ancestors(),r=null;for(e=i.pop(),t=n.pop();e===t;)r=e,e=i.pop(),t=n.pop();return r}(t,e),n=[t];t!==i;)n.push(t=t.parent);for(var r=n.length;e!==i;)n.splice(r,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(i){i!==e&&t.push({source:i.parent,target:i})}),t},copy:function(){return fC(this).eachBefore(fT)},[Symbol.iterator]:function*(){var e,t,i,n,r=this,o=[r];do for(e=o.reverse(),o=[];r=e.pop();)if(yield r,t=r.children)for(i=0,n=t.length;i0&&i1;)n="".concat(null===(t=s.parent.data)||void 0===t?void 0:t.name," / ").concat(n),s=s.parent;if(o&&e.depth>2)return null;var l=up({},e.data,(0,ef.pi)((0,ef.pi)((0,ef.pi)({},us(e.data,r)),{path:n}),e));l.ext=i,l[p9]={hierarchyConfig:i,rawFields:r,enableDrillDown:o},a.push(l)}),a}function fM(e,t,i){var n=ub([e,t]),r=n[0],o=n[1],s=n[2],a=n[3],l=i.width,h=i.height,u=l-(a+o),d=h-(r+s),c=Math.min(u,d),g=(u-c)/2,p=(d-c)/2;return{finalPadding:[r+p,o+g,s+p,a+g],finalSize:c<0?0:c}}function fk(e){var t=e.chart,i=Math.min(t.viewBBox.width,t.viewBBox.height);return up({options:{size:function(e){return e.r*i}}},e)}function fP(e){var t=e.options,i=e.chart,n=i.viewBBox,r=t.padding,o=t.appendPadding,s=t.drilldown,a=o;(null==s?void 0:s.enabled)&&(a=ub([uT(i.appendPadding,(0,em.U2)(s,["breadCrumb","position"])),o]));var l=fM(r,a,n).finalPadding;return i.padding=l,i.appendPadding=0,e}function fF(e){var t=e.chart,i=e.options,n=t.padding,r=t.appendPadding,o=i.color,s=i.colorField,a=i.pointStyle,l=i.hierarchyConfig,h=i.sizeField,u=i.rawFields,d=void 0===u?[]:u,c=i.drilldown,g=fD({data:i.data,hierarchyConfig:l,enableDrillDown:null==c?void 0:c.enabled,rawFields:d});t.data(g);var p=fM(n,r,t.viewBBox).finalSize,f=function(e){return e.r*p};return h&&(f=function(e){return e[h]*p}),ds(up({},e,{options:{xField:"x",yField:"y",seriesField:s,sizeField:h,rawFields:(0,ef.ev)((0,ef.ev)([],p4,!0),d,!0),point:{color:o,style:a,shape:"circle",size:f}}})),e}function fB(e){return um(u0({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(e)}function fU(e){var t=e.chart,i=e.options.tooltip;if(!1===i)t.tooltip(!1);else{var n=i;(0,em.U2)(i,"fields")||(n=up({},{customItems:function(e){return e.map(function(e){var i=(0,em.U2)(t.getOptions(),"scales"),n=(0,em.U2)(i,["name","formatter"],function(e){return e}),r=(0,em.U2)(i,["value","formatter"],function(e){return e});return(0,ef.pi)((0,ef.pi)({},e),{name:n(e.data.name),value:r(e.data.value)})})}},n)),t.tooltip(n)}return e}function fH(e){return e.chart.axis(!1),e}function fV(e){var t,i,n;return uX({chart:e.chart,options:(i=(t=e.options).drilldown,n=t.interactions,(null==i?void 0:i.enabled)?up({},t,{interactions:(0,ef.ev)((0,ef.ev)([],void 0===n?[]:n,!0),[{type:"drill-down",cfg:{drillDownConfig:i,transformData:fD,enableDrillDown:!0}}],!1)}):t)}),e}function fW(e){return um(uY("pointStyle"),fk,fP,uq,fB,fF,fH,uK,fU,fV,uj,u1())(e)}function fG(e){var t=(0,em.U2)(e,["event","data","data"],{});return(0,em.kJ)(t.children)&&t.children.length>0}function fz(e){var t=e.view.getCoordinate(),i=t.innerRadius;if(i){var n=e.event,r=n.x,o=n.y,s=t.center;return Math.sqrt(Math.pow(s.x-r,2)+Math.pow(s.y-o,2))-1)||(t=Math.min(h,u),i=Math.max(h,u),n>=t&&n<=i)}),e.getRootView().render(!0)}};function f4(e){var t,i=e.options,n=i.geometryOptions,r=void 0===n?[]:n,o=i.xField,s=i.yField,a=(0,em.yW)(r,function(e){var t=e.geometry;return t===et.Line||void 0===t});return up({},{options:{geometryOptions:[],meta:((t={})[o]={type:"cat",sync:!0,range:a?[0,1]:void 0},t),tooltip:{showMarkers:a,showCrosshairs:a,shared:!0,crosshairs:{type:"x"}},interactions:a?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},e,{options:{yAxis:fQ(s,i.yAxis),geometryOptions:[fJ(o,s[0],r[0]),fJ(o,s[1],r[1])],annotations:fQ(s,i.annotations)}})}function f5(e){var t,i,n=e.chart,r=e.options.geometryOptions,o={line:0,column:1};return[{type:null===(t=r[0])||void 0===t?void 0:t.geometry,id:fY},{type:null===(i=r[1])||void 0===i?void 0:i.geometry,id:fK}].sort(function(e,t){return-o[e.type]+o[t.type]}).forEach(function(e){return n.createView({id:e.id})}),e}function f6(e){var t=e.chart,i=e.options,n=i.xField,r=i.yField,o=i.geometryOptions,s=i.data,a=i.tooltip;return[(0,ef.pi)((0,ef.pi)({},o[0]),{id:fY,data:s[0],yField:r[0]}),(0,ef.pi)((0,ef.pi)({},o[1]),{id:fK,data:s[1],yField:r[1]})].forEach(function(e){var i=e.id,r=e.data,o=e.yField,s=fZ(e)&&e.isPercent,l=s?dg(r,o,n,o):r,h=ux(t,i).data(l),u=s?(0,ef.pi)({formatter:function(t){return{name:t[e.seriesField]||o,value:(100*Number(t[o])).toFixed(2)+"%"}}},a):a;!function(e){var t=e.options,i=e.chart,n=t.geometryOption,r=n.isStack,o=n.color,s=n.seriesField,a=n.groupField,l=n.isGroup,h=["xField","yField"];if(fq(n)){dr(up({},e,{options:(0,ef.pi)((0,ef.pi)((0,ef.pi)({},us(t,h)),n),{line:{color:n.color,style:n.lineStyle}})})),ds(up({},e,{options:(0,ef.pi)((0,ef.pi)((0,ef.pi)({},us(t,h)),n),{point:n.point&&(0,ef.pi)({color:o,shape:"circle"},n.point)})}));var u=[];l&&u.push({type:"dodge",dodgeBy:a||s,customOffset:0}),r&&u.push({type:"stack"}),u.length&&(0,em.S6)(i.geometries,function(e){e.adjust(u)})}fZ(n)&&dz(up({},e,{options:(0,ef.pi)((0,ef.pi)((0,ef.pi)({},us(t,h)),n),{widthRatio:n.columnWidthRatio,interval:(0,ef.pi)((0,ef.pi)({},us(n,["color"])),{style:n.columnStyle})})}))}({chart:h,options:{xField:n,yField:o,tooltip:u,geometryOption:e}})}),e}function f3(e){var t,i=e.chart,n=e.options.geometryOptions,r=(null===(t=i.getTheme())||void 0===t?void 0:t.colors10)||[],o=0;return i.once("beforepaint",function(){(0,em.S6)(n,function(e,t){var n=ux(i,0===t?fY:fK);if(!e.color){var s=n.getGroupScales(),a=(0,em.U2)(s,[0,"values","length"],1),l=r.slice(o,o+a).concat(0===t?[]:r);n.geometries.forEach(function(t){e.seriesField?t.color(e.seriesField,l):t.color(l[0])}),o+=a}}),i.render(!0)}),e}function f9(e){var t,i,n=e.chart,r=e.options,o=r.xAxis,s=r.yAxis,a=r.xField,l=r.yField;return u0(((t={})[a]=o,t[l[0]]=s[0],t))(up({},e,{chart:ux(n,fY)})),u0(((i={})[a]=o,i[l[1]]=s[1],i))(up({},e,{chart:ux(n,fK)})),e}function f7(e){var t=e.chart,i=e.options,n=ux(t,fY),r=ux(t,fK),o=i.xField,s=i.yField,a=i.xAxis,l=i.yAxis;return t.axis(o,!1),t.axis(s[0],!1),t.axis(s[1],!1),n.axis(o,a),n.axis(s[0],f0(l[0],ee.Left)),r.axis(o,!1),r.axis(s[1],f0(l[1],ee.Right)),e}function f8(e){var t=e.chart,i=e.options.tooltip,n=ux(t,fY),r=ux(t,fK);return t.tooltip(i),n.tooltip({shared:!0}),r.tooltip({shared:!0}),e}function me(e){var t=e.chart;return uX(up({},e,{chart:ux(t,fY)})),uX(up({},e,{chart:ux(t,fK)})),e}function mt(e){var t=e.chart,i=e.options.annotations,n=(0,em.U2)(i,[0]),r=(0,em.U2)(i,[1]);return u1(n)(up({},e,{chart:ux(t,fY),options:{annotations:n}})),u1(r)(up({},e,{chart:ux(t,fK),options:{annotations:r}})),e}function mi(e){var t=e.chart;return uq(up({},e,{chart:ux(t,fY)})),uq(up({},e,{chart:ux(t,fK)})),uq(e),e}function mn(e){var t=e.chart;return uj(up({},e,{chart:ux(t,fY)})),uj(up({},e,{chart:ux(t,fK)})),e}function mr(e){var t=e.chart,i=e.options.yAxis;return u2(up({},e,{chart:ux(t,fY),options:{yAxis:i[0]}})),u2(up({},e,{chart:ux(t,fK),options:{yAxis:i[1]}})),e}function mo(e){var t=e.chart,i=e.options,n=i.legend,r=i.geometryOptions,o=i.yField,s=i.data,a=ux(t,fY),l=ux(t,fK);if(!1===n)t.legend(!1);else if((0,em.Kn)(n)&&!0===n.custom)t.legend(n);else{var h=(0,em.U2)(r,[0,"legend"],n),u=(0,em.U2)(r,[1,"legend"],n);t.once("beforepaint",function(){var e=s[0].length?f1({view:a,geometryOption:r[0],yField:o[0],legend:h}):[],i=s[1].length?f1({view:l,geometryOption:r[1],yField:o[1],legend:u}):[];t.legend(up({},n,{custom:!0,items:e.concat(i)}))}),r[0].seriesField&&a.legend(r[0].seriesField,h),r[1].seriesField&&l.legend(r[1].seriesField,u),t.on("legend-item:click",function(e){var i=(0,em.U2)(e,"gEvent.delegateObject",{});if(i&&i.item){var n=i.item,r=n.value,s=n.isGeometry,a=n.viewId;if(s){if((0,em.cx)(o,function(e){return e===r})>-1){var l=(0,em.U2)(ux(t,a),"geometries");(0,em.S6)(l,function(e){e.changeVisible(!i.item.unchecked)})}}else{var h=(0,em.U2)(t.getController("legend"),"option.items",[]);(0,em.S6)(t.views,function(e){var i=e.getGroupScales();(0,em.S6)(i,function(t){t.values&&t.values.indexOf(r)>-1&&e.filter(t.field,function(e){return!(0,em.sE)(h,function(t){return t.value===e}).unchecked})}),t.render(!0)})}}})}return e}function ms(e){var t=e.chart,i=e.options.slider,n=ux(t,fY),r=ux(t,fK);return i&&(n.option("slider",i),n.on("slider:valuechanged",function(e){var t=e.event,i=t.value,n=t.originValue;(0,em.Xy)(i,n)||f2(r,i)}),t.once("afterpaint",function(){if(!(0,em.jn)(i)){var e=i.start,t=i.end;(e||t)&&f2(r,[e,t])}})),e}function ma(e){return um(f4,f5,mi,f6,f9,f7,mr,f8,me,mt,mn,f3,mo,ms)(e)}function ml(e){var t=e.chart,i=e.options,n=i.type,r=i.data,o=i.fields,s=i.eachView,a=(0,em.CE)(i,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return t.data(r),t.facet(n,(0,ef.pi)((0,ef.pi)({},a),{fields:o,eachView:function(e,t){var i,n,r,o,a,l,h,u,d,c,g=s(e,t);if(g.geometries)i=g.data,n=g.coordinate,r=g.interactions,o=g.annotations,a=g.animation,l=g.tooltip,h=g.axes,u=g.meta,d=g.geometries,i&&e.data(i),c={},h&&(0,em.S6)(h,function(e,t){c[t]=us(e,un)}),c=up({},u,c),e.scale(c),n&&e.coordinate(n),!1===h?e.axis(!1):(0,em.S6)(h,function(t,i){e.axis(i,t)}),(0,em.S6)(d,function(t){var i=de({chart:e,options:t}).ext,n=t.adjust;n&&i.geometry.adjust(n)}),(0,em.S6)(r,function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg)}),(0,em.S6)(o,function(t){e.annotation()[t.type]((0,ef.pi)({},t))}),uk(e,a),l?(e.interaction("tooltip"),e.tooltip(l)):!1===l&&e.removeInteraction("tooltip");else{var p=g.options;p.tooltip&&e.interaction("tooltip"),pn(g.type,e,p)}}})),e}function mh(e){var t=e.chart,i=e.options,n=i.axes,r=i.meta,o=i.tooltip,s=i.coordinate,a=i.theme,l=i.legend,h=i.interactions,u=i.annotations,d={};return n&&(0,em.S6)(n,function(e,t){d[t]=us(e,un)}),d=up({},r,d),t.scale(d),t.coordinate(s),n?(0,em.S6)(n,function(e,i){t.axis(i,e)}):t.axis(!1),o?(t.interaction("tooltip"),t.tooltip(o)):!1===o&&t.removeInteraction("tooltip"),t.legend(l),a&&t.theme(a),(0,em.S6)(h,function(e){!1===e.enable?t.removeInteraction(e.type):t.interaction(e.type,e.cfg)}),(0,em.S6)(u,function(e){t.annotation()[e.type]((0,ef.pi)({},e))}),e}function mu(e){return um(uq,ml,mh)(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dual-axes",t}(0,ef.ZT)(t,e),t.prototype.getDefaultOptions=function(){return up({},e.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},t.prototype.getSchemaAdaptor=function(){return ma}}(dc);var md={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}};function mc(e){var t=e.chart,i=e.options,n=i.data,r=i.type,o=i.xField,s=i.yField,a=i.colorField,l=i.sizeField,h=i.sizeRatio,u=i.shape,d=i.color,c=i.tooltip,g=i.heatmapStyle,p=i.meta;t.data(n);var f="polygon";"density"===r&&(f="heatmap");var m=u9(c,[o,s,a]),v=m.fields,E=m.formatter,_=1;return(h||0===h)&&(u||l?h<0||h>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):_=h:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),de(up({},e,{options:{type:f,colorField:a,tooltipFields:v,shapeField:l||"",label:void 0,mapping:{tooltip:E,shape:u&&(l?function(e){var t=n.map(function(e){return e[l]}),i=(null==p?void 0:p[l])||{},r=i.min,o=i.max;return r=(0,em.hj)(r)?r:Math.min.apply(Math,t),o=(0,em.hj)(o)?o:Math.max.apply(Math,t),[u,((0,em.U2)(e,l)-r)/(o-r),_]}:function(){return[u,1,_]}),color:d||a&&t.getTheme().sequenceColors.join("-"),style:g}}})),e}function mg(e){var t,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.yField;return um(u0(((t={})[o]=n,t[s]=r,t)))(e)}function mp(e){var t=e.chart,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.yField;return!1===n?t.axis(o,!1):t.axis(o,n),!1===r?t.axis(s,!1):t.axis(s,r),e}function mf(e){var t=e.chart,i=e.options,n=i.legend,r=i.colorField,o=i.sizeField,s=i.sizeLegend,a=!1!==n;return r&&t.legend(r,!!a&&n),o&&t.legend(o,void 0===s?n:s),a||s||t.legend(!1),e}function mm(e){var t=e.chart,i=e.options,n=i.label,r=i.colorField,o=uv(t,"density"===i.type?"heatmap":"polygon");if(n){if(r){var s=n.callback,a=(0,ef._T)(n,["callback"]);o.label({fields:[r],callback:s,cfg:uC(a)})}}else o.label(!1);return e}function mv(e){var t,i,n=e.chart,r=e.options,o=r.coordinate,s=r.reflect,a=up({actions:[]},null!=o?o:{type:"rect"});return s&&(null===(i=null===(t=a.actions)||void 0===t?void 0:t.push)||void 0===i||i.call(t,["reflect",s])),n.coordinate(a),e}function mE(e){return um(uq,uY("heatmapStyle"),mg,mv,mc,mp,mf,u$,mm,u1(),uX,uj,uZ)(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="area",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return md},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return mu}}(dc);var m_=up({},dc.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}});function mC(e){return[{percent:e,type:"liquid"}]}function mS(e){var t=e.chart,i=e.options,n=i.percent,r=i.liquidStyle,o=i.radius,s=i.outline,a=i.wave,l=i.shape,h=i.shapeStyle,u=i.animation;t.scale({percent:{min:0,max:1}}),t.data(mC(n));var d=dn(up({},e,{options:{xField:"type",yField:"percent",widthRatio:o,interval:{color:i.color||t.getTheme().defaultColor,style:r,shape:"liquid-fill-gauge"}}})).ext.geometry,c=t.getTheme().background;return d.customInfo({percent:n,radius:o,outline:s,wave:a,shape:l,shapeStyle:h,background:c,animation:u}),t.legend(!1),t.axis(!1),t.tooltip(!1),e}function my(e,t){var i=e.chart,n=e.options,r=n.statistic,o=n.percent,s=n.meta;i.getController("annotation").clear(!0);var a=(0,em.U2)(s,["percent","formatter"])||function(e){return"".concat((100*e).toFixed(2),"%")},l=r.content;return l&&(l=up({},l,{content:(0,em.UM)(l.content)?a(o):l.content})),uI(i,{statistic:(0,ef.pi)((0,ef.pi)({},r),{content:l}),plotType:"liquid"},{percent:o}),t&&i.render(!0),e}function mT(e){return um(uq,uY("liquidStyle"),mS,my,u0({}),uj,uX)(e)}o$("polygon","circle",{draw:function(e,t){var i,n,r=e.x,o=e.y,s=this.parsePoints(e.points),a=Math.min(Math.abs(s[2].x-s[1].x),Math.abs(s[1].y-s[0].y))/2,l=Number(e.shape[1]),h=a*Math.sqrt(Number(e.shape[2]))*Math.sqrt(l),u=(null===(i=e.style)||void 0===i?void 0:i.fill)||e.color||(null===(n=e.defaultStyle)||void 0===n?void 0:n.fill);return t.addShape("circle",{attrs:(0,ef.pi)((0,ef.pi)((0,ef.pi)({x:r,y:o,r:h},e.defaultStyle),e.style),{fill:u})})}}),o$("polygon","square",{draw:function(e,t){var i,n,r=e.x,o=e.y,s=this.parsePoints(e.points),a=Math.min(Math.abs(s[2].x-s[1].x),Math.abs(s[1].y-s[0].y)),l=Number(e.shape[1]),h=a*Math.sqrt(Number(e.shape[2]))*Math.sqrt(l),u=(null===(i=e.style)||void 0===i?void 0:i.fill)||e.color||(null===(n=e.defaultStyle)||void 0===n?void 0:n.fill);return t.addShape("rect",{attrs:(0,ef.pi)((0,ef.pi)((0,ef.pi)({x:r-h/2,y:o-h/2,width:h,height:h},e.defaultStyle),e.style),{fill:u})})}}),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="heatmap",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return m_},t.prototype.getSchemaAdaptor=function(){return mE},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()}}(dc);var mb={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"},mA={pin:function(e,t,i,n){var r=2*i/3,o=Math.max(r,n),s=r/2,a=s+t-o/2,l=Math.asin(s/((o-s)*.85)),h=Math.sin(l)*s,u=Math.cos(l)*s,d=e-u,c=a+h,g=a+s/Math.sin(l);return"\n M ".concat(d," ").concat(c,"\n A ").concat(s," ").concat(s," 0 1 1 ").concat(d+2*u," ").concat(c,"\n Q ").concat(e," ").concat(g," ").concat(e," ").concat(t+o/2,"\n Q ").concat(e," ").concat(g," ").concat(d," ").concat(c,"\n Z \n ")},circle:function(e,t,i,n){var r=i/2,o=n/2;return"\n M ".concat(e," ").concat(t-o," \n a ").concat(r," ").concat(o," 0 1 0 0 ").concat(2*o,"\n a ").concat(r," ").concat(o," 0 1 0 0 ").concat(-(2*o),"\n Z\n ")},diamond:function(e,t,i,n){var r=n/2,o=i/2;return"\n M ".concat(e," ").concat(t-r,"\n L ").concat(e+o," ").concat(t,"\n L ").concat(e," ").concat(t+r,"\n L ").concat(e-o," ").concat(t,"\n Z\n ")},triangle:function(e,t,i,n){var r=n/2,o=i/2;return"\n M ".concat(e," ").concat(t-r,"\n L ").concat(e+o," ").concat(t+r,"\n L ").concat(e-o," ").concat(t+r,"\n Z\n ")},rect:function(e,t,i,n){var r=n/2,o=i/2*.618;return"\n M ".concat(e-o," ").concat(t-r,"\n L ").concat(e+o," ").concat(t-r,"\n L ").concat(e+o," ").concat(t+r,"\n L ").concat(e-o," ").concat(t+r,"\n Z\n ")}};function mR(e){var t=e.chart,i=e.options,n=i.data,r=i.lineStyle,o=i.color,s=i.point,a=i.area;t.data(n);var l=up({},e,{options:{line:{style:r,color:o},point:s?(0,ef.pi)({color:o},s):s,area:a?(0,ef.pi)({color:o},a):a,label:void 0}}),h=up({},l,{options:{tooltip:!1}}),u=up({},l,{options:{tooltip:!1,state:(null==s?void 0:s.state)||i.state}});return dr(l),ds(u),dt(h),e}function mL(e){var t,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.yField;return um(u0(((t={})[o]=n,t[s]=r,t)))(e)}function mN(e){var t=e.chart,i=e.options,n=i.radius,r=i.startAngle,o=i.endAngle;return t.coordinate("polar",{radius:n,startAngle:r,endAngle:o}),e}function mI(e){var t=e.chart,i=e.options,n=i.xField,r=i.xAxis,o=i.yField,s=i.yAxis;return t.axis(n,r),t.axis(o,s),e}function mw(e){var t=e.chart,i=e.options,n=i.label,r=i.yField,o=uv(t,"line");if(n){var s=n.callback,a=(0,ef._T)(n,["callback"]);o.label({fields:[r],callback:s,cfg:uC(a)})}else o.label(!1);return e}function mO(e){return um(mR,mL,uq,mN,mI,uK,u$,mw,uX,uj,u1())(e)}function mx(e){var t=e.chart,i=e.options,n=i.barStyle,r=i.color,o=i.tooltip,s=i.colorField,a=i.type,l=i.xField,h=i.yField,u=i.data,d=i.shape,c=uh(u,h);return t.data(c),dn(up({},e,{options:{tooltip:o,seriesField:s,interval:{style:n,color:r,shape:d||("line"===a?"line":"intervel")},minColumnWidth:i.minBarWidth,maxColumnWidth:i.maxBarWidth,columnBackground:i.barBackground}})),"line"===a&&ds({chart:t,options:{xField:l,yField:h,seriesField:s,point:{shape:"circle",color:r}}}),e}function mD(e){var t,i,n,r,o,s=e.options,a=s.yField,l=s.xField,h=s.data,u=s.isStack,d=s.isGroup,c=s.colorField,g=s.maxAngle,p=uh(u&&!d&&c?(t=[],h.forEach(function(e){var i=t.find(function(t){return t[l]===e[l]});i?i[a]+=e[a]||null:t.push((0,ef.pi)({},e))}),t):h,a);return um(u0(((o={})[a]={min:0,max:(n=(i=p.map(function(e){return e[a]}).filter(function(e){return void 0!==e})).length>0?Math.max.apply(Math,i):0,(r=Math.abs(g)%360)?360*n/r:n)},o)))(e)}function mM(e){var t=e.chart,i=e.options,n=i.radius,r=i.innerRadius,o=i.startAngle,s=i.endAngle;return t.coordinate({type:"polar",cfg:{radius:n,innerRadius:r,startAngle:o,endAngle:s}}).transpose(),e}function mk(e){var t=e.chart,i=e.options,n=i.xField,r=i.xAxis;return t.axis(n,r),e}function mP(e){var t=e.chart,i=e.options,n=i.label,r=i.yField,o=uv(t,"interval");if(n){var s=n.callback,a=(0,ef._T)(n,["callback"]);o.label({fields:[r],callback:s,cfg:(0,ef.pi)((0,ef.pi)({},uC(a)),{type:"polar"})})}else o.label(!1);return e}function mF(e){return um(uY("barStyle"),mx,mD,mk,mM,uX,uj,uq,u$,uK,u1(),mP)(e)}o$("interval","liquid-fill-gauge",{draw:function(e,t){var i,n,r,o=e.customInfo,s=o.percent,a=o.radius,l=o.shape,h=o.shapeStyle,u=o.background,d=o.animation,c=o.outline,g=o.wave,p=c.border,f=c.distance,m=g.count,v=g.length,E=(0,em.u4)(e.points,function(e,t){return Math.min(e,t.x)},1/0),_=this.parsePoint({x:.5,y:.5}),C=this.parsePoint({x:E,y:.5}),S=Math.min(_.x-C.x,C.y*a),y=(i=(0,ef.pi)({opacity:1},e.style),e.color&&!i.fill&&(i.fill=e.color),i),T=(n=(0,em.CD)({},e,c),r=(0,em.CD)({},{fill:"#fff",fillOpacity:0,lineWidth:4},n.style),n.color&&!r.stroke&&(r.stroke=n.color),(0,em.hj)(n.opacity)&&(r.opacity=r.strokeOpacity=n.opacity),r),b=S-p/2,A=("function"==typeof l?l:mA[l]||mA.circle)(_.x,_.y,2*b,2*b);if(h&&t.addShape("path",{name:"shape",attrs:(0,ef.pi)({path:A},h)}),s>0){var R=t.addGroup({name:"waves"}),L=R.setClip({type:"path",attrs:{path:A}});!function(e,t,i,n,r,o,s,a,l,h){for(var u=r.fill,d=r.opacity,c=s.getBBox(),g=c.maxX-c.minX,p=c.maxY-c.minY,f=0;f0;)h-=2*Math.PI;var u=o-e+(h=h/Math.PI/2*i)-2*e;l.push(["M",u,t]);for(var d=0,c=0;c0){var s=this.view.geometries[0],a=s.dataArray,l=o[0].name,h=[];return a.forEach(function(e){e.forEach(function(e){var t=sr.getTooltipItems(e,s)[0];if(!n&&t&&t.name===l){var i=(0,em.UM)(r)?l:r;h.push((0,ef.pi)((0,ef.pi)({},t),{name:t.title,title:i}))}else if(n&&t){var i=(0,em.UM)(r)?t.name||l:r;h.push((0,ef.pi)((0,ef.pi)({},t),{name:t.title,title:i}))}})}),h}return[]},t}(oN),ov["radar-tooltip"]=w,rA("radar-tooltip",function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.init=function(){this.context.view.removeInteraction("tooltip")},t.prototype.show=function(){var e=this.context.event;this.getTooltipController().showTooltip({x:e.x,y:e.y})},t.prototype.hide=function(){this.getTooltipController().hideTooltip()},t.prototype.getTooltipController=function(){return this.context.view.getController("radar-tooltip")},t}(rS)),r3("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]}),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="radar",t}(0,ef.ZT)(t,e),t.prototype.changeData=function(e){this.updateOption({data:e}),this.chart.changeData(e)},t.prototype.getDefaultOptions=function(){return up({},e.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},t.prototype.getSchemaAdaptor=function(){return mO}}(dc);var mB=up({},dc.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240});function mU(e){var t=e.chart,i=e.options,n=i.data,r=i.sectorStyle,o=i.shape,s=i.color;return t.data(n),um(dn)(up({},e,{options:{marginRatio:1,interval:{style:r,color:s,shape:o}}})),e}function mH(e){var t=e.chart,i=e.options,n=i.label,r=i.xField,o=uv(t,"interval");if(!1===n)o.label(!1);else if((0,em.Kn)(n)){var s=n.callback,a=n.fields,l=(0,ef._T)(n,["callback","fields"]),h=l.offset,u=l.layout;(void 0===h||h>=0)&&(u=u?(0,em.kJ)(u)?u:[u]:[],l.layout=(0,em.hX)(u,function(e){return"limit-in-shape"!==e.type}),l.layout.length||delete l.layout),o.label({fields:a||[r],callback:s,cfg:uC(l)})}else uo(X.WARN,null===n,"the label option must be an Object."),o.label({fields:[r]});return e}function mV(e){var t=e.chart,i=e.options,n=i.legend,r=i.seriesField;return!1===n?t.legend(!1):r&&t.legend(r,n),e}function mW(e){var t=e.chart,i=e.options,n=i.radius,r=i.innerRadius,o=i.startAngle,s=i.endAngle;return t.coordinate({type:"polar",cfg:{radius:n,innerRadius:r,startAngle:o,endAngle:s}}),e}function mG(e){var t,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.yField;return um(u0(((t={})[o]=n,t[s]=r,t)))(e)}function mz(e){var t=e.chart,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.yField;return n?t.axis(o,n):t.axis(o,!1),r?t.axis(s,r):t.axis(s,!1),e}function mY(e){um(uY("sectorStyle"),mU,mG,mH,mW,mz,mV,u$,uX,uj,uq,u1(),uZ)(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="radial-bar",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return mB},t.prototype.changeData=function(e){this.updateOption({data:e}),mD({chart:this.chart,options:this.options}),this.chart.changeData(e)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return mF}}(dc);var mK=up({},dc.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="rose",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return mK},t.prototype.changeData=function(e){this.updateOption({data:e}),this.chart.changeData(e)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return mY}}(dc);var m$="name",mX="nodes",mj="edges";function mq(e){return e.target.depth}function mZ(e,t){return e.sourceLinks.length?e.depth:t-1}function mJ(e){return function(){return e}}function mQ(e,t){for(var i=0,n=0;no.findIndex(function(n){return n==="".concat(e[t],"_").concat(e[i])})})}(p,f,m),f,m,v,R);var L=(n={nodeAlign:E,nodePadding:uS(C)?C/i:S,nodeWidth:uS(y)?y/t:T,nodeSort:_,nodeDepth:b},o=(r=(0,em.f0)({},vt,n)).nodeId,s=r.nodeSort,a=r.nodeAlign,l=r.nodeWidth,h=r.nodePadding,u=r.nodeDepth,{nodes:(d=(function(){var e,t,i,n,r=0,o=0,s=1,a=1,l=24,h=8,u=m6,d=mZ,c=m3,g=m9,p=6;function f(f){var v={nodes:c(f),links:g(f)};return function(e){var t=e.nodes,n=e.links;t.forEach(function(e,t){e.index=t,e.sourceLinks=[],e.targetLinks=[]});var r=new Map(t.map(function(e){return[u(e),e]}));if(n.forEach(function(e,t){e.index=t;var i=e.source,n=e.target;"object"!=typeof i&&(i=e.source=m7(r,i)),"object"!=typeof n&&(n=e.target=m7(r,n)),i.sourceLinks.push(e),n.targetLinks.push(e)}),null!=i)for(var o=0;on)throw Error("circular link");r=o,o=new Set}if(e)for(var a=Math.max(m0(i,function(e){return e.depth})+1,0),l=void 0,h=0;hi)throw Error("circular link");n=r,r=new Set}}(v),function(e){var u=function(e){for(var i=e.nodes,n=Math.max(m0(i,function(e){return e.depth})+1,0),o=(s-r-l)/(n-1),a=Array(n).fill(0).map(function(){return[]}),h=0;h=0;--s){for(var a=e[s],l=0;l0){var E=(u/d-h.y0)*i;h.y0+=E,h.y1+=E,_(h)}}void 0===t&&a.sort(m4),a.length&&m(a,r)}})(u,g,f),function(e,i,r){for(var o=1,s=e.length;o0){var E=(u/d-h.y0)*i;h.y0+=E,h.y1+=E,_(h)}}void 0===t&&a.sort(m4),a.length&&m(a,r)}}(u,g,f)}}(v),m8(v),v}function m(e,t){var i=e.length>>1,r=e[i];E(e,r.y0-n,i-1,t),v(e,r.y1+n,i+1,t),E(e,a,e.length-1,t),v(e,o,0,t)}function v(e,t,i,r){for(;i1e-6&&(o.y0+=s,o.y1+=s),t=o.y1+n}}function E(e,t,i,r){for(;i>=0;--i){var o=e[i],s=(o.y1-t)*r;s>1e-6&&(o.y0-=s,o.y1-=s),t=o.y0-n}}function _(e){var t=e.sourceLinks,n=e.targetLinks;if(void 0===i){for(var r=0;r "+e.target,value:e.value}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},t.prototype.changeData=function(e){this.updateOption({data:e});var t=vi(this.options,this.chart.width,this.chart.height),i=t.nodes,n=t.edges,r=ux(this.chart,mX),o=ux(this.chart,mj);r.changeData(i),o.changeData(n)},t.prototype.getSchemaAdaptor=function(){return vl},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()}}(dc);var vh="ancestor-node",vu="value",vd="path",vc=[vd,fR,fN,fL,"name","depth","height"],vg=up({},dc.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},legend:!1,sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}});function vp(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function vf(e,t,i,n,r){for(var o,s=e.children,a=-1,l=s.length,h=e.value&&(n-t)/e.value;++a0)throw Error("cycle");return o}return i.id=function(t){return arguments.length?(e=fd(t),i):e},i.parentId=function(e){return arguments.length?(t=fd(e),i):t},i}function vN(e,t){return e.parent===t.parent?1:2}function vI(e){var t=e.children;return t?t[0]:e.t}function vw(e){var t=e.children;return t?t[t.length-1]:e.t}function vO(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function vx(){var e=vN,t=1,i=1,n=null;function r(r){var l=function(e){for(var t,i,n,r,o,s=new vO(e,0),a=[s];t=a.pop();)if(n=t._.children)for(t.children=Array(o=n.length),r=o-1;r>=0;--r)a.push(i=t.children[r]=new vO(n[r],r)),i.parent=t;return(s.parent=new vO(null,0)).children=[s],s}(r);if(l.eachAfter(o),l.parent.m=-l.z,l.eachBefore(s),n)r.eachBefore(a);else{var h=r,u=r,d=r;r.eachBefore(function(e){e.xu.x&&(u=e),e.depth>d.depth&&(d=e)});var c=h===u?1:e(h,u)/2,g=c-h.x,p=t/(u.x+c+g),f=i/(d.depth||1);r.eachBefore(function(e){e.x=(e.x+g)*p,e.y=e.depth*f})}return r}function o(t){var i=t.children,n=t.parent.children,r=t.i?n[t.i-1]:null;if(i){!function(e){for(var t,i=0,n=0,r=e.children,o=r.length;--o>=0;)t=r[o],t.z+=i,t.m+=i,i+=t.s+(n+=t.c)}(t);var o=(i[0].z+i[i.length-1].z)/2;r?(t.z=r.z+e(t._,r._),t.m=t.z-o):t.z=o}else r&&(t.z=r.z+e(t._,r._));t.parent.A=function(t,i,n){if(i){for(var r,o,s,a=t,l=t,h=i,u=a.parent.children[0],d=a.m,c=l.m,g=h.m,p=u.m;h=vw(h),a=vI(a),h&&a;)u=vI(u),(l=vw(l)).a=t,(s=h.z+g-a.z-d+e(h._,a._))>0&&(function(e,t,i){var n=i/(t.i-e.i);t.c-=n,t.s+=i,e.c+=n,t.z+=i,t.m+=i}((r=h,o=n,r.a.parent===t.parent?r.a:o),t,s),d+=s,c+=s),g+=h.m,d+=a.m,p+=u.m,c+=l.m;h&&!vw(l)&&(l.t=h,l.m+=g-c),a&&!vI(u)&&(u.t=a,u.m+=d-p,n=t)}return n}(t,r,t.parent.A||n[0])}function s(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function a(e){e.x*=t,e.y=e.depth*i}return r.separation=function(t){return arguments.length?(e=t,r):e},r.size=function(e){return arguments.length?(n=!1,t=+e[0],i=+e[1],r):n?null:[t,i]},r.nodeSize=function(e){return arguments.length?(n=!0,t=+e[0],i=+e[1],r):n?[t,i]:null},r}function vD(e,t,i,n,r){for(var o,s=e.children,a=-1,l=s.length,h=e.value&&(r-i)/e.value;++ac&&(c=a),(g=Math.max(c/(m=u*u*f),m/d))>p){u-=a;break}p=g}v.push(s={value:u,dice:l1?t:1)},i}(vM);function vF(){var e=vP,t=!1,i=1,n=1,r=[0],o=fc,s=fc,a=fc,l=fc,h=fc;function u(e){return e.x0=e.y0=0,e.x1=i,e.y1=n,e.eachBefore(d),r=[0],t&&e.eachBefore(vp),e}function d(t){var i=r[t.depth],n=t.x0+i,u=t.y0+i,d=t.x1-i,c=t.y1-i;d=i-1){var u=a[t];u.x0=r,u.y0=o,u.x1=s,u.y1=l;return}for(var d=h[t],c=n/2+d,g=t+1,p=i-1;g>>1;h[f]l-o){var E=n?(r*v+s*m)/n:s;e(t,g,m,r,o,E,l),e(g,i,v,E,o,s,l)}else{var _=n?(o*v+l*m)/n:l;e(t,g,m,r,o,s,_),e(g,i,v,r,_,s,l)}}(0,l,e.value,t,i,n,r)}function vU(e,t,i,n,r){(1&e.depth?vD:vf)(e,t,i,n,r)}var vH=function e(t){function i(e,i,n,r,o){if((s=e._squarify)&&s.ratio===t)for(var s,a,l,h,u,d=-1,c=s.length,g=e.value;++d1?t:1)},i}(vM),vV={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(e,t){return t.value-e.value},ratio:.5*(1+Math.sqrt(5))};function vW(e,t){var i,n,r,o=(t=(0,em.f0)({},vV,t)).as;if(!(0,em.kJ)(o)||2!==o.length)throw TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{r=fw(t)}catch(e){console.warn(e)}var s=(i=t.tile,n=t.ratio,"treemapSquarify"===i?ep[i].ratio(n):ep[i]),a=vF().tile(s).size(t.size).round(t.round).padding(t.padding).paddingInner(t.paddingInner).paddingOuter(t.paddingOuter).paddingTop(t.paddingTop).paddingRight(t.paddingRight).paddingBottom(t.paddingBottom).paddingLeft(t.paddingLeft)(fC(e).sum(function(e){return t.ignoreParentValue&&e.children?0:e[r]}).sort(t.sort)),l=o[0],h=o[1];return a.each(function(e){e[l]=[e.x0,e.x1,e.x1,e.x0],e[h]=[e.y1,e.y1,e.y0,e.y0],["x0","x1","y0","y1"].forEach(function(t){-1===o.indexOf(t)&&delete e[t]})}),fO(a)}function vG(e){var t=e.data,i=e.colorField,n=e.rawFields,r=e.hierarchyConfig,o=void 0===r?{}:r,s=o.activeDepth,a=e.seriesField,l=e.type||"partition",h=({partition:vE,treemap:vW})[l](t,(0,ef.pi)((0,ef.pi)({field:a||"value"},(0,em.CE)(o,["activeDepth"])),{type:"hierarchy.".concat(l),as:["x","y"]})),u=[];return h.forEach(function(e){if(0===e.depth||s>0&&e.depth>s)return null;for(var t,r,l,h,d,c,g=e.data.name,p=(0,ef.pi)({},e);p.depth>1;)g="".concat(null===(r=p.parent.data)||void 0===r?void 0:r.name," / ").concat(g),p=p.parent;var f=(0,ef.pi)((0,ef.pi)((0,ef.pi)({},us(e.data,(0,ef.ev)((0,ef.ev)([],n||[],!0),[o.field],!1))),((t={})[vd]=g,t[vh]=p.data.name,t)),e);a&&(f[a]=e.data[a]||(null===(h=null===(l=e.parent)||void 0===l?void 0:l.data)||void 0===h?void 0:h[a])),i&&(f[i]=e.data[i]||(null===(c=null===(d=e.parent)||void 0===d?void 0:d.data)||void 0===c?void 0:c[i])),f.ext=o,f[p9]={hierarchyConfig:o,colorField:i,rawFields:n},u.push(f)}),u}function vz(e){var t,i=e.chart,n=e.options,r=n.color,o=n.colorField,s=void 0===o?vh:o,a=n.sunburstStyle,l=n.rawFields,h=void 0===l?[]:l,u=n.shape,d=vG(n);return i.data(d),a&&(t=function(e){return up({},{fillOpacity:Math.pow(.85,e.depth)},(0,em.mf)(a)?a(e):a)}),da(up({},e,{options:{xField:"x",yField:"y",seriesField:s,rawFields:(0,em.jj)((0,ef.ev)((0,ef.ev)([],vc,!0),h,!0)),polygon:{color:r,style:t,shape:u}}})),e}function vY(e){return e.chart.axis(!1),e}function vK(e){var t=e.chart,i=e.options.label,n=uv(t,"polygon");if(i){var r=i.fields,o=i.callback,s=(0,ef._T)(i,["fields","callback"]);n.label({fields:void 0===r?["name"]:r,callback:o,cfg:uC(s)})}else n.label(!1);return e}function v$(e){var t=e.chart,i=e.options,n=i.innerRadius,r=i.radius,o=i.reflect,s=t.coordinate({type:"polar",cfg:{innerRadius:n,radius:r}});return o&&s.reflect(o),e}function vX(e){var t,i=e.options,n=i.hierarchyConfig,r=i.meta;return um(u0({},((t={})[vu]=(0,em.U2)(r,(0,em.U2)(n,["field"],"value")),t)))(e)}function vj(e){var t=e.chart,i=e.options.tooltip;if(!1===i)t.tooltip(!1);else{var n=i;(0,em.U2)(i,"fields")||(n=up({},{customItems:function(e){return e.map(function(e){var i=(0,em.U2)(t.getOptions(),"scales"),n=(0,em.U2)(i,[vd,"formatter"],function(e){return e}),r=(0,em.U2)(i,[vu,"formatter"],function(e){return e});return(0,ef.pi)((0,ef.pi)({},e),{name:n(e.data[vd]),value:r(e.data.value)})})}},n)),t.tooltip(n)}return e}function vq(e){var t,i,n=e.chart,r=e.options,o=r.drilldown;return uX({chart:n,options:(t=r.drilldown,i=r.interactions,(null==t?void 0:t.enabled)?up({},r,{interactions:(0,ef.ev)((0,ef.ev)([],void 0===i?[]:i,!0),[{type:"drill-down",cfg:{drillDownConfig:t,transformData:vG}}],!1)}):r)}),(null==o?void 0:o.enabled)&&(n.appendPadding=uT(n.appendPadding,(0,em.U2)(o,["breadCrumb","position"]))),e}function vZ(e){return um(uq,uY("sunburstStyle"),vz,vY,vX,uK,v$,vj,vK,vq,uj,u1())(e)}function vJ(e,t){if((0,em.kJ)(e))return e.find(function(e){return e.type===t})}function vQ(e,t){var i=vJ(e,t);return i&&!1!==i.enable}function v0(e){var t=e.interactions,i=e.drilldown;return(0,em.U2)(i,"enabled")||vQ(t,"treemap-drill-down")}function v1(e){var t=e.data,i=e.colorField,n=e.enableDrillDown,r=e.hierarchyConfig,o=vW(t,(0,ef.pi)((0,ef.pi)({},r),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),s=[];return o.forEach(function(e){if(0===e.depth||n&&1!==e.depth||!n&&e.children)return null;var o=e.ancestors().map(function(e){return{data:e.data,height:e.height,value:e.value}}),a=n&&(0,em.kJ)(t.path)?o.concat(t.path.slice(1)):o,l=Object.assign({},e.data,(0,ef.pi)({x:e.x,y:e.y,depth:e.depth,value:e.value,path:a},e));if(!e.data[i]&&e.parent){var h=e.ancestors().find(function(e){return e.data[i]});l[i]=null==h?void 0:h.data[i]}else l[i]=e.data[i];l[p9]={hierarchyConfig:r,colorField:i,enableDrillDown:n},s.push(l)}),s}function v2(e){return up({options:{rawFields:["value"],tooltip:{fields:["name","value",e.options.colorField,"path"],formatter:function(e){return{name:e.name,value:e.value}}}}},e)}function v4(e){var t=e.chart,i=e.options,n=i.color,r=i.colorField,o=i.rectStyle,s=i.hierarchyConfig,a=i.rawFields,l=v1({data:i.data,colorField:i.colorField,enableDrillDown:v0(i),hierarchyConfig:s});return t.data(l),da(up({},e,{options:{xField:"x",yField:"y",seriesField:r,rawFields:a,polygon:{color:n,style:o}}})),t.coordinate().reflect("y"),e}function v5(e){return e.chart.axis(!1),e}function v6(e){var t,i,n=e.chart,r=e.options,o=r.interactions,s=r.drilldown;uX({chart:n,options:(t=r.drilldown,i=r.interactions,v0(r)?up({},r,{interactions:(0,ef.ev)((0,ef.ev)([],void 0===i?[]:i,!0),[{type:"drill-down",cfg:{drillDownConfig:t,transformData:v1}}],!1)}):r)});var a=vJ(o,"view-zoom");return a&&(!1!==a.enable?n.getCanvas().on("mousewheel",function(e){e.preventDefault()}):n.getCanvas().off("mousewheel")),v0(r)&&(n.appendPadding=uT(n.appendPadding,(0,em.U2)(s,["breadCrumb","position"]))),e}function v3(e){return um(v2,uq,uY("rectStyle"),v4,v5,uK,u$,v6,uj,u1())(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="sunburst",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return vg},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return vZ},t.SUNBURST_ANCESTOR_FIELD=vh,t.SUNBURST_PATH_FIELD=vd,t.NODE_ANCESTORS_FIELD=fN}(dc);var v9={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"初始",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="treemap",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return v9},t.prototype.changeData=function(e){var t,i=this.options,n=i.colorField,r=i.interactions,o=i.hierarchyConfig;this.updateOption({data:e});var s=v1({data:e,colorField:n,enableDrillDown:vQ(r,"treemap-drill-down"),hierarchyConfig:o});this.chart.changeData(s),(t=this.chart.interactions["drill-down"])&&t.context.actions.find(function(e){return"drill-down-action"===e.name}).reset()},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return v3}}(dc);var v7="path",v8={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(e){return{name:e.id,value:e.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]};function Ee(e){e&&e.geometries[0].elements.forEach(function(e){e.shape.toFront()})}var Et=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.syncElementsPos=function(){Ee(this.context.view)},t.prototype.active=function(){e.prototype.active.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(rb("element-active")),Ei=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.syncElementsPos=function(){Ee(this.context.view)},t.prototype.highlight=function(){e.prototype.highlight.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.clear=function(){e.prototype.clear.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(rb("element-highlight")),En=rb("element-selected"),Er=rb("element-single-selected"),Eo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.syncElementsPos=function(){Ee(this.context.view)},t.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(En),Es=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.syncElementsPos=function(){Ee(this.context.view)},t.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(Er);rA("venn-element-active",Et),rA("venn-element-highlight",Ei),rA("venn-element-selected",Eo),rA("venn-element-single-selected",Es),r3("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]}),r3("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]}),r3("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]}),r3("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]}),r3("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]}),r3("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]}),oV("venn",function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getLabelPoint=function(e,t,i){var n=e.data,r=n.x,o=n.y,s=e.customLabelInfo,a=s.offsetX,l=s.offsetY;return{content:e.content[i],x:r+a,y:o+l}},t}(o3));var Ea=Array.isArray,El=" \n\v\f\r \xa0 ᠎              \u2028\u2029",Eh=RegExp("([a-z])["+El+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+El+"]*,?["+El+"]*)+)","ig"),Eu=RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+El+"]*,?["+El+"]*","ig");o$("schema","venn",{draw:function(e,t){var i=function(e){if(!e)return null;if(Ea(e))return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},i=[];return String(e).replace(Eh,function(e,n,r){var o=[],s=n.toLowerCase();if(r.replace(Eu,function(e,t){t&&o.push(+t)}),"m"===s&&o.length>2&&(i.push([n].concat(o.splice(0,2))),s="l",n="m"===n?"l":"L"),"o"===s&&1===o.length&&i.push([n,o[0]]),"r"===s)i.push([n].concat(o));else for(;o.length>=t[s]&&(i.push([n].concat(o.splice(0,t[s]))),t[s]););return""}),i}(e.data[v7]),n=up({},e.defaultStyle,{fill:e.color},e.style),r=t.addGroup({name:"venn-shape"});r.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},n),{path:i}),name:"venn-path"});var o=e.customInfo,s=o.offsetX,a=o.offsetY,l=sr.transform(null,[["t",s,a]]);return r.setMatrix(l),r},getMarker:function(e){var t=e.color;return{symbol:"circle",style:{lineWidth:0,stroke:t,fill:t,r:4}}}});var Ed={normal:function(e){return e},multiply:function(e,t){return e*t/255},screen:function(e,t){return 255*(1-(1-e/255)*(1-t/255))},overlay:function(e,t){return t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255))},darken:function(e,t){return e>t?t:e},lighten:function(e,t){return e>t?e:t},dodge:function(e,t){return 255===e?255:(e=255*(t/255)/(1-e/255))>255?255:e},burn:function(e,t){return 255===t?255:0===e?0:255*(1-Math.min(1,(1-t/255)/(e/255)))}},Ec=function(e){if(!Ed[e])throw Error("unknown blend mode "+e);return Ed[e]};function Eg(e){var t,i=e.replace("/s+/g","");return"string"!=typeof i||i.startsWith("rgba")||i.startsWith("#")?(i.startsWith("rgba")&&(t=i.replace("rgba(","").replace(")","").split(",")),i.startsWith("#")&&(t=eQ.rgb2arr(i).concat([1])),t.map(function(e,t){return 3===t?Number(e):0|e})):eQ.rgb2arr(eQ.toRGB(i)).concat([1])}var Ep=i(69916);function Ef(e,t){var i,n=function(e){for(var t=[],i=0;it[i].radius+1e-10)return!1;return!0}(t,e)}),o=0,s=0,a=[];if(r.length>1){var l=EC(r);for(i=0;i-1){var f=e[d.parentIndex[p]],m=Math.atan2(d.x-f.x,d.y-f.y),v=Math.atan2(u.x-f.x,u.y-f.y),E=v-m;E<0&&(E+=2*Math.PI);var _=v-E/2,C=Ev(c,{x:f.x+f.radius*Math.sin(_),y:f.y+f.radius*Math.cos(_)});C>2*f.radius&&(C=2*f.radius),(null===g||g.width>C)&&(g={circle:f,width:C,p1:d,p2:u})}null!==g&&(a.push(g),o+=Em(g.circle.radius,g.width),u=d)}}else{var S=e[0];for(i=1;iMath.abs(S.radius-e[i].radius)){y=!0;break}y?o=s=0:(o=S.radius*S.radius*Math.PI,a.push({circle:S,p1:{x:S.x,y:S.y+S.radius},p2:{x:S.x-1e-10,y:S.y+S.radius},width:2*S.radius}))}return s/=2,t&&(t.area=o+s,t.arcArea=o,t.polygonArea=s,t.arcs=a,t.innerPoints=r,t.intersectionPoints=n),o+s}function Em(e,t){return e*e*Math.acos(1-t/e)-(e-t)*Math.sqrt(t*(2*e-t))}function Ev(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))}function EE(e,t,i){if(i>=e+t)return 0;if(i<=Math.abs(e-t))return Math.PI*Math.min(e,t)*Math.min(e,t);var n=e-(i*i-t*t+e*e)/(2*i),r=t-(i*i-e*e+t*t)/(2*i);return Em(e,n)+Em(t,r)}function E_(e,t){var i=Ev(e,t),n=e.radius,r=t.radius;if(i>=n+r||i<=Math.abs(n-r))return[];var o=(n*n-r*r+i*i)/(2*i),s=Math.sqrt(n*n-o*o),a=e.x+o*(t.x-e.x)/i,l=e.y+o*(t.y-e.y)/i,h=-(t.y-e.y)*(s/i),u=-(t.x-e.x)*(s/i);return[{x:a+h,y:l-u},{x:a-h,y:l+u}]}function EC(e){for(var t={x:0,y:0},i=0;i=Math.min(r[u].size,r[d].size)&&(h=0),o[u].push({set:d,size:l.size,weight:h}),o[d].push({set:u,size:l.size,weight:h})}var c=[];for(i in o)if(o.hasOwnProperty(i)){for(var g=0,s=0;s=8){var r=function(e,t){var i,n,r,o,s,a=(t=t||{}).restarts||10,l=[],h={};for(r=0;r=Math.min(l[t].size,l[r].size)?s=1:e.size<=1e-10&&(s=-1),n[t][r]=n[r][t]=s}),{distances:i,constraints:n}),c=d.distances,g=d.constraints,p=(0,Ep.norm2)(c.map(Ep.norm2))/c.length;c=c.map(function(e){return e.map(function(e){return e/p})});var f=function(e,t){return function(e,t,i,n){var r,o=0;for(r=0;r0&&p<=d||c<0&&p>=d||(o+=2*f*f,t[2*r]+=4*f*(s-h),t[2*r+1]+=4*f*(a-u),t[2*l]+=4*f*(h-s),t[2*l+1]+=4*f*(u-a))}return o}(e,t,c,g)};for(r=0;rt?1:-1}),t=0;t=a&&(s=r[n],a=l)}var h=(0,Ep.nelderMead)(function(e){return -1*ES({x:e[0],y:e[1]},t,i)},[s.x,s.y],{maxIterations:500,minErrorDelta:1e-10}).x,u={x:h[0],y:h[1]},d=!0;for(n=0;nt[n].radius){d=!1;break}for(n=0;n0&&console.log("WARNING: area "+o+" not represented on screen")}return i}(l,a);return a.forEach(function(e){var t=e.sets,i=t.join(",");e.id=i;var n=function(e){var t={};Ef(e,t);var i=t.arcs;if(0===i.length)return"M 0 0";if(1==i.length){var n,r,o,s,a,l=i[0].circle;return n=l.x,r=l.y,o=l.radius,s=[],a=n-o,s.push("M",a,r),s.push("A",o,o,0,1,0,a+2*o,r),s.push("A",o,o,0,1,0,a,r),s.join(" ")}for(var h=["\nM",i[0].p2.x,i[0].p2.y],u=0;uc;h.push("\nA",c,c,0,g?1:0,1,d.p1.x,d.p1.y)}return h.join(" ")}(t.map(function(e){return l[e]}));/[zZ]$/.test(n)||(n+=" Z"),e[v7]=n;var r=h[i]||{x:0,y:0};(0,em.f0)(e,r)}),a}(i,Math.max(d.width-(l+u),0),Math.max(d.height-(a+h),0),0);t.data(c);var g=dl(up({},e,{options:{xField:"x",yField:"y",sizeField:o,seriesField:"id",rawFields:[r,o],schema:{shape:"venn",style:n}}})).ext.geometry;g.customInfo({offsetX:u,offsetY:a});var p=function(e,t){var i=e.options.color;if("function"!=typeof i){var n=ER(e,t,"string"==typeof i?[i]:i);return function(e){return n(e.id)}}return i}(e,c);return"function"==typeof p&&g.color("id",function(t){return p(c.find(function(e){return e.id===t}),ER(e,c)(t))}),e}function Ew(e){var t=e.chart,i=e.options.label,n=uy(t.appendPadding),r=n[0],o=n[3],s=uv(t,"schema");if(i){var a=i.callback,l=(0,ef._T)(i,["callback"]);s.label({fields:["id"],callback:a,cfg:(0,em.b$)({},uC(l),{type:"venn",customLabelInfo:{offsetX:o,offsetY:r}})})}else s.label(!1);return e}function EO(e){var t=e.chart,i=e.options,n=i.legend,r=i.sizeField;return t.legend("id",n),t.legend(r,!1),e}function Ex(e){return e.chart.axis(!1),e}function ED(e){var t=e.options,i=e.chart,n=t.interactions;if(n){var r={"legend-active":"venn-legend-active","legend-highlight":"venn-legend-highlight"};uX(up({},e,{options:{interactions:n.map(function(e){return(0,ef.pi)((0,ef.pi)({},e),{type:r[e.type]||e.type})})}}))}return i.removeInteraction("legend-active"),i.removeInteraction("legend-highlight"),e}function EM(e){return um(EL,uq,EN,EI,Ew,u0({}),EO,Ex,u$,ED,uj)(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="venn",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return v8},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return EM},t.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))}}(dc);var Ek="violinY",EP="minMax",EF="quantile",EB="median",EU="violin_view",EH=up({},dc.getDefaultOptions(),{syncViewPadding:!0,kde:{type:"triangular",sampleSize:32,width:3},violinStyle:{lineWidth:1,fillOpacity:.3,strokeOpacity:.75},xAxis:{grid:{line:null},tickLine:{alignTick:!1}},yAxis:{grid:{line:{style:{lineWidth:.5,lineDash:[4,4]}}}},legend:{position:"top-left"},tooltip:{showMarkers:!1}}),EV=i(53843),EW=i.n(EV);function EG(e,t){var i=e.length*t;if(0===e.length)throw Error("quantile requires at least one data point.");if(t<0||t>1)throw Error("quantiles must be between 0 and 1");return 1===t?e[e.length-1]:0===t?e[0]:i%1!=0?e[Math.ceil(i)-1]:e.length%2==0?(e[i-1]+e[i])/2:e[i]}function Ez(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function EY(e,t,i,n){for(i=i||0,n=n||e.length-1;n>i;){if(n-i>600){var r=n-i+1,o=t-i+1,s=Math.log(r),a=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*a*(r-a)/r);o-r/2<0&&(l*=-1);var h=Math.max(i,Math.floor(t-o*a/r+l)),u=Math.min(n,Math.floor(t+(r-o)*a/r+l));EY(e,t,h,u)}var d=e[t],c=i,g=n;for(Ez(e,i,t),e[n]>d&&Ez(e,i,n);cd;)g--}e[i]===d?Ez(e,i,g):Ez(e,++g,n),g<=t&&(i=g+1),t<=g&&(n=g-1)}}function EK(e,t){var i=e.slice();if(Array.isArray(t)){!function(e,t){for(var i=[0],n=0;n0?u:d};return dn(up({},e,{options:{xField:r,yField:_e,seriesField:r,rawFields:[o,_t,_n,_e],widthRatio:l,interval:{style:h,shape:g||"waterfall",color:f}}})).ext.geometry.customInfo((0,ef.pi)((0,ef.pi)({},p),{leaderLine:a})),e}function _l(e){var t,i,n=e.options,r=n.xAxis,o=n.yAxis,s=n.xField,a=n.yField,l=n.meta,h=up({},{alias:a},(0,em.U2)(l,a));return um(u0(((t={})[s]=r,t[a]=o,t[_e]=o,t),up({},l,((i={})[_e]=h,i[_t]=h,i[_i]=h,i))))(e)}function _h(e){var t=e.chart,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.yField;return!1===n?t.axis(o,!1):t.axis(o,n),!1===r?(t.axis(s,!1),t.axis(_e,!1)):(t.axis(s,r),t.axis(_e,r)),e}function _u(e){var t=e.chart,i=e.options,n=i.legend,r=i.total,o=i.risingFill,s=i.fallingFill,a=u3(i.locale);if(!1===n)t.legend(!1);else{var l=[{name:a.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:o}}},{name:a.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:s}}}];r&&l.push({name:r.label||"",value:"total",marker:{symbol:"square",style:up({},{r:5},(0,em.U2)(r,"style"))}}),t.legend(up({},{custom:!0,position:"top",items:l},n)),t.removeInteraction("legend-filter")}return e}function _d(e){var t=e.chart,i=e.options,n=i.label,r=i.labelMode,o=i.xField,s=uv(t,"interval");if(n){var a=n.callback,l=(0,ef._T)(n,["callback"]);s.label({fields:"absolute"===r?[_i,o]:[_t,o],callback:a,cfg:uC(l)})}else s.label(!1);return e}function _c(e){var t=e.chart,i=e.options,n=i.tooltip,r=i.xField,o=i.yField;if(!1!==n){t.tooltip((0,ef.pi)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[o]},n));var s=t.geometries[0];(null==n?void 0:n.formatter)?s.tooltip("".concat(r,"*").concat(o),n.formatter):s.tooltip(o)}else t.tooltip(!1);return e}function _g(e){return um(_s,uq,_a,_l,_h,_u,_c,_d,uZ,uX,uj,u1())(e)}o$("interval","waterfall",{draw:function(e,t){var i=e.customInfo,n=e.points,r=e.nextPoints,o=t.addGroup(),s=this.parsePath(function(e){for(var t=[],i=0;i>2),e.width=2048/t,e.height=2048/t,(g=e.getContext("2d",{willReadFrequently:!0})).fillStyle=g.strokeStyle="red",g.textAlign="center",{context:g,ratio:t}),v=c.board?c.board:_A((i[0]>>5)*i[1]),E=u.length,_=[],C=u.map(function(e,t,i){return e.text=_E.call(this,e,t,i),e.font=n.call(this,e,t,i),e.style=_C.call(this,e,t,i),e.weight=o.call(this,e,t,i),e.rotate=s.call(this,e,t,i),e.size=~~r.call(this,e,t,i),e.padding=a.call(this,e,t,i),e}).sort(function(e,t){return t.size-e.size}),S=-1,y=c.board?[{x:0,y:0},{x:p,y:f}]:null;return function(){for(var e=Date.now();Date.now()-e>1,t.y=f*(h()+.5)>>1,function(e,t,i,n){if(!t.sprite){var r=e.context,o=e.ratio;r.clearRect(0,0,2048/o,2048/o);var s=0,a=0,l=0,h=i.length;for(--n;++n>5<<5,d=~~Math.max(Math.abs(f+m),Math.abs(f-m))}else u=u+31>>5<<5;if(d>l&&(l=d),s+u>=2048&&(s=0,a+=l,l=0),a+d>=2048)break;r.translate((s+(u>>1))/o,(a+(d>>1))/o),t.rotate&&r.rotate(t.rotate*_v),r.fillText(t.text,0,0),t.padding&&(r.lineWidth=2*t.padding,r.strokeText(t.text,0,0)),r.restore(),t.width=u,t.height=d,t.xoff=s,t.yoff=a,t.x1=u>>1,t.y1=d>>1,t.x0=-t.x1,t.y0=-t.y1,t.hasText=!0,s+=u}for(var E=r.getImageData(0,0,2048/o,2048/o).data,_=[];--n>=0;)if((t=i[n]).hasText){for(var u=t.width,C=u>>5,d=t.y1-t.y0,S=0;S>5),R=E[(a+b)*2048+(s+S)<<2]?1<<31-S%32:0;_[A]|=R,y|=R}y?T=b:(t.y0++,d--,b--,a++)}t.y1=t.y0+T,t.sprite=_.slice(0,(t.y1-t.y0)*C)}}}(m,t,C,S),t.hasText&&function(e,t,n){for(var r,o,s,a=t.x,u=t.y,d=Math.sqrt(i[0]*i[0]+i[1]*i[1]),c=l(i),g=.5>h()?1:-1,p=-g;(r=c(p+=g))&&!(Math.min(Math.abs(o=~~r[0]),Math.abs(s=~~r[1]))>=d);)if(t.x=a+o,t.y=u+s,!(t.x+t.x0<0)&&!(t.y+t.y0<0)&&!(t.x+t.x1>i[0])&&!(t.y+t.y1>i[1])&&(!n||!function(e,t,i){i>>=5;for(var n,r=e.sprite,o=e.width>>5,s=e.x-(o<<4),a=127&s,l=32-a,h=e.y1-e.y0,u=(e.y+e.y0)*i+(s>>5),d=0;d>>a:0))&t[u+c])return!0;u+=i}return!1}(t,e,i[0]))&&(!n||t.x+t.x1>n[0].x&&t.x+t.x0n[0].y&&t.y+t.y0>5,v=i[0]>>5,E=t.x-(m<<4),_=127&E,C=32-_,S=t.y1-t.y0,y=void 0,T=(t.y+t.y0)*v+(E>>5),b=0;b>>_:0);T+=v}return delete t.sprite,!0}return!1}(v,t,y)&&(_.push(t),y?c.hasImage||function(e,t){var i=e[0],n=e[1];t.x+t.x0n.x&&(n.x=t.x+t.x1),t.y+t.y1>n.y&&(n.y=t.y+t.y1)}(y,t):y=[{x:t.x+t.x0,y:t.y+t.y0},{x:t.x+t.x1,y:t.y+t.y1}],t.x-=i[0]>>1,t.y-=i[1]>>1)}c._tags=_,c._bounds=y}(),c},c.createMask=function(e){var t=document.createElement("canvas"),n=i[0],r=i[1];if(n&&r){var o=n>>5,s=_A((n>>5)*r);t.width=n,t.height=r;var a=t.getContext("2d");a.drawImage(e,0,0,e.width,e.height,0,0,n,r);for(var l=a.getImageData(0,0,n,r).data,h=0;h>5),g=h*n+u<<2,p=l[g]>=250&&l[g+1]>=250&&l[g+2]>=250?1<<31-u%32:0;s[d]|=p}c.board=s,c.hasImage=!0}},c.timeInterval=function(e){d=null==e?1/0:e},c.words=function(e){u=e},c.size=function(e){i=[+e[0],+e[1]]},c.font=function(e){n=_R(e)},c.fontWeight=function(e){o=_R(e)},c.rotate=function(e){s=_R(e)},c.spiral=function(e){l=_L[e]||e},c.fontSize=function(e){r=_R(e)},c.padding=function(e){a=_R(e)},c.random=function(e){h=_R(e)},["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach(function(e){(0,em.UM)(t[e])||c[e](t[e])}),c.words(W),t.imageMask&&c.createMask(t.imageMask),(g=c.start()._tags).forEach(function(e){e.x+=t.size[0]/2,e.y+=t.size[1]/2}),f=(p=t.size)[0],m=p[1],g.push({text:"",value:0,x:0,y:0,opacity:0}),g.push({text:"",value:0,x:f,y:m,opacity:0}),g}function _I(e){var t=e.chart,i=e.options,n=i.colorField,r=i.color,o=_N(e);return t.data(o),ds(up({},e,{options:{xField:"x",yField:"y",seriesField:n&&_p,rawFields:(0,em.mf)(r)&&(0,ef.ev)((0,ef.ev)([],(0,em.U2)(i,"rawFields",[]),!0),["datum"],!1),point:{color:r,shape:"word-cloud"}}})).ext.geometry.label(!1),t.coordinate().reflect("y"),t.axis(!1),e}function _w(e){return um(u0({x:{nice:!1},y:{nice:!1}}))(e)}function _O(e){var t=e.chart,i=e.options,n=i.legend,r=i.colorField;return!1===n?t.legend(!1):r&&t.legend(_p,n),e}function _x(e){um(_I,_w,u$,_O,uX,uj,uq,uZ)(e)}o$("point","word-cloud",{draw:function(e,t){var i=e.x,n=e.y,r=t.addShape("text",{attrs:(0,ef.pi)((0,ef.pi)({},{fontSize:e.data.size,text:e.data.text,textAlign:"center",fontFamily:e.data.font,fontWeight:e.data.weight,fill:e.color||e.defaultStyle.stroke,textBaseline:"alphabetic"}),{x:i,y:n})}),o=e.data.rotate;return"number"==typeof o&&sr.rotate(r,o*Math.PI/180),r}}),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="word-cloud",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return _f},t.prototype.changeData=function(e){this.updateOption({data:e}),this.options.imageMask?this.render():this.chart.changeData(_N({chart:this.chart,options:this.options}))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.render=function(){var t=this;return new Promise(function(i){var n=t.options.imageMask;if(!n){e.prototype.render.call(t),i();return}var r=function(n){t.options=(0,ef.pi)((0,ef.pi)({},t.options),{imageMask:n||null}),e.prototype.render.call(t),i()};new Promise(function(e,t){if(n instanceof HTMLImageElement){e(n);return}if((0,em.HD)(n)){var i=new Image;i.crossOrigin="anonymous",i.src=n,i.onload=function(){e(i)},i.onerror=function(){uo(X.ERROR,!1,"image %s load failed !!!",n),t()};return}uo(X.WARN,void 0===n,"The type of imageMask option must be String or HTMLImageElement."),t()}).then(r).catch(r)})},t.prototype.getSchemaAdaptor=function(){return _x},t.prototype.triggerResize=function(){var t=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout(function(){e.prototype.triggerResize.call(t)}))}}(dc),function(e){function t(t,i,n,r){var o=e.call(this,t,up({},r,i))||this;return o.type="g2-plot",o.defaultOptions=r,o.adaptor=n,o}(0,ef.ZT)(t,e),t.prototype.getDefaultOptions=function(){return this.defaultOptions},t.prototype.getSchemaAdaptor=function(){return this.adaptor}}(dc),u6["en-US"]={locale:"en-US",general:{increase:"Increase",decrease:"Decrease",root:"Root"},statistic:{total:"Total"},conversionTag:{label:"Rate"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"Total"}},u6["zh-CN"]={locale:"zh-CN",general:{increase:"增加",decrease:"减少",root:"初始"},statistic:{total:"总计"},conversionTag:{label:"转化率"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"总计"}}},31506:function(e,t,i){"use strict";i.d(t,{Dg:function(){return h},lh:function(){return a},m$:function(){return o},vs:function(){return l},zu:function(){return s}});var n=i(35600),r=i(31437);function o(e,t,i){var r=[0,0,0,0,0,0,0,0,0];return n.vc(r,i),n.Jp(e,r,t)}function s(e,t,i){var r=[0,0,0,0,0,0,0,0,0];return n.Us(r,i),n.Jp(e,r,t)}function a(e,t,i){var r=[0,0,0,0,0,0,0,0,0];return n.xJ(r,i),n.Jp(e,r,t)}function l(e,t){for(var i=e?[].concat(e):[1,0,0,0,1,0,0,0,1],r=0,l=t.length;r=0;return i?o?2*Math.PI-n:n:o?n:2*Math.PI-n}},39499:function(e,t,i){"use strict";i.d(t,{e9:function(){return l},Wq:function(){return L},tr:function(){return c},wb:function(){return f},zx:function(){return S}});var n=i(21030),r=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/ig,o=/[^\s\,]+/ig,s=function(e){var t=e||[];return(0,n.kJ)(t)?t:(0,n.HD)(t)?(t=t.match(r),(0,n.S6)(t,function(e,i){if((e=e.match(o))[0].length>1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}(0,n.S6)(e,function(t,i){isNaN(t)||(e[i]=+t)}),t[i]=e}),t):void 0},a=i(31437),l=function(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=[[0,0],[1,1]]);for(var n,r,o,s=!!t,l=[],h=0,u=e.length;h2&&(i.push([n].concat(o.splice(0,2))),s="l",n="m"===n?"l":"L"),"o"===s&&1===o.length&&i.push([n,o[0]]),"r"===s)i.push([n].concat(o));else for(;o.length>=t[s]&&(i.push([n].concat(o.splice(0,t[s]))),t[s]););return""}),i}var g=/[a-z]/;function p(e,t){return[t[0]+(t[0]-e[0]),t[1]+(t[1]-e[1])]}function f(e){var t=c(e);if(!t||!t.length)return[["M",0,0]];for(var i=!1,n=0;n=0){i=!0;break}}if(!i)return t;var o=[],s=0,a=0,l=0,h=0,u=0,d=t[0];("M"===d[0]||"m"===d[0])&&(s=+d[1],a=+d[2],l=s,h=a,u++,o[0]=["M",s,a]);for(var n=u,f=t.length;n1&&(i*=Math.sqrt(p),r*=Math.sqrt(p));var f=i*i*(g*g)+r*r*(c*c),m=f?Math.sqrt((i*i*(r*r)-f)/f):1;s===a&&(m*=-1),isNaN(m)&&(m=0);var C=r?m*i*g/r:0,S=i?-(m*r)*c/i:0,y=(l+u)/2+Math.cos(o)*C-Math.sin(o)*S,T=(h+d)/2+Math.sin(o)*C+Math.cos(o)*S,b=[(c-C)/i,(g-S)/r],A=[(-1*c-C)/i,(-1*g-S)/r],R=E([1,0],b),L=E(b,A);return -1>=v(b,A)&&(L=Math.PI),v(b,A)>=1&&(L=0),0===a&&L>0&&(L-=2*Math.PI),1===a&&L<0&&(L+=2*Math.PI),{cx:y,cy:T,rx:_(e,[u,d])?0:i,ry:_(e,[u,d])?0:r,startAngle:R,endAngle:R+L,xRotation:o,arcFlag:s,sweepFlag:a}}(i,u);c.arcParams=g}if("Z"===d)i=o,r=e[a+1];else{var p=u.length;i=[u[p-2],u[p-1]]}r&&"Z"===r[0]&&(r=e[a],t[a]&&(t[a].prePoint=i)),c.currentPoint=i,t[a]&&_(i,t[a].currentPoint)&&(t[a].prePoint=c.prePoint);var f=r?[r[r.length-2],r[r.length-1]]:null;c.nextPoint=f;var m=c.prePoint;if(["L","H","V"].includes(d))c.startTangent=[m[0]-i[0],m[1]-i[1]],c.endTangent=[i[0]-m[0],i[1]-m[1]];else if("Q"===d){var S=[u[1],u[2]];c.startTangent=[m[0]-S[0],m[1]-S[1]],c.endTangent=[i[0]-S[0],i[1]-S[1]]}else if("T"===d){var y=t[h-1],S=C(y.currentPoint,m);"Q"===y.command?(c.command="Q",c.startTangent=[m[0]-S[0],m[1]-S[1]],c.endTangent=[i[0]-S[0],i[1]-S[1]]):(c.command="TL",c.startTangent=[m[0]-i[0],m[1]-i[1]],c.endTangent=[i[0]-m[0],i[1]-m[1]])}else if("C"===d){var T=[u[1],u[2]],b=[u[3],u[4]];c.startTangent=[m[0]-T[0],m[1]-T[1]],c.endTangent=[i[0]-b[0],i[1]-b[1]],0===c.startTangent[0]&&0===c.startTangent[1]&&(c.startTangent=[T[0]-b[0],T[1]-b[1]]),0===c.endTangent[0]&&0===c.endTangent[1]&&(c.endTangent=[b[0]-T[0],b[1]-T[1]])}else if("S"===d){var y=t[h-1],T=C(y.currentPoint,m),b=[u[1],u[2]];"C"===y.command?(c.command="C",c.startTangent=[m[0]-T[0],m[1]-T[1]],c.endTangent=[i[0]-b[0],i[1]-b[1]]):(c.command="SQ",c.startTangent=[m[0]-b[0],m[1]-b[1]],c.endTangent=[i[0]-b[0],i[1]-b[1]])}else if("A"===d){var A=.001,R=c.arcParams||{},L=R.cx,N=void 0===L?0:L,I=R.cy,w=void 0===I?0:I,O=R.rx,x=void 0===O?0:O,D=R.ry,M=void 0===D?0:D,k=R.sweepFlag,P=void 0===k?0:k,F=R.startAngle,B=void 0===F?0:F,U=R.endAngle,H=void 0===U?0:U;0===P&&(A*=-1);var V=x*Math.cos(B-A)+N,W=M*Math.sin(B-A)+w;c.startTangent=[V-o[0],W-o[1]];var G=x*Math.cos(B+H+A)+N,z=M*Math.sin(B+H-A)+w;c.endTangent=[m[0]-G,m[1]-z]}t.push(c)}return t}function y(e){return 1e-6>Math.abs(e)?0:e<0?-1:1}function T(e,t,i){var n=!1,r=e.length;if(r<=2)return!1;for(var o=0;o0!=y(l[1]-i)>0&&0>y(t-(i-a[1])*(a[0]-l[0])/(a[1]-l[1])-a[0])&&(n=!n)}return n}var b=function(e,t,i){return e>=t&&e<=i};function A(e){for(var t=[],i=e.length,n=0;n1){var s=e[0],a=e[i-1];t.push({from:{x:a[0],y:a[1]},to:{x:s[0],y:s[1]}})}return t}function R(e){var t=e.map(function(e){return e[0]}),i=e.map(function(e){return e[1]});return{minX:Math.min.apply(null,t),maxX:Math.max.apply(null,t),minY:Math.min.apply(null,i),maxY:Math.max.apply(null,i)}}function L(e,t){if(e.length<2||t.length<2)return!1;var i=R(e),r=R(t);if(r.minX>i.maxX||r.maxXi.maxY||r.maxY.001*l*h){var d=(r.x*s.y-r.y*s.x)/a,c=(r.x*o.y-r.y*o.x)/a;b(d,0,1)&&b(c,0,1)&&(u={x:e.x+d*o.x,y:e.y+d*o.y})}return u}(i.from,i.to,e.from,e.to))return t=!0,!1}),t)return l=!0,!1}),l}},21030:function(e,t,i){"use strict";i.d(t,{Ct:function(){return eY},f0:function(){return ew},uZ:function(){return z},VS:function(){return ef},d9:function(){return ev},FX:function(){return o},Ds:function(){return eE},b$:function(){return eC},e5:function(){return a},S6:function(){return p},yW:function(){return B},hX:function(){return s},sE:function(){return _},cx:function(){return C},Wx:function(){return S},ri:function(){return Y},xH:function(){return y},U5:function(){return Q},U2:function(){return eO},Lo:function(){return ez},rx:function(){return R},ru:function(){return G},vM:function(){return V},Ms:function(){return W},wH:function(){return ee},YM:function(){return P},q9:function(){return o},cq:function(){return eS},kJ:function(){return c},jn:function(){return ea},J_:function(){return el},kK:function(){return eg},xb:function(){return eT},Xy:function(){return eA},mf:function(){return u},BD:function(){return m},UM:function(){return d},Ft:function(){return eh},hj:function(){return K},vQ:function(){return $},Kn:function(){return g},PO:function(){return E},HD:function(){return x},P9:function(){return h},o8:function(){return ec},XP:function(){return f},Z$:function(){return F},vl:function(){return en},UI:function(){return eR},Q8:function(){return eN},Fp:function(){return b},UT:function(){return X},HP:function(){return e_},VV:function(){return A},F:function(){return j},CD:function(){return ew},wQ:function(){return q},ZT:function(){return eH},CE:function(){return ek},ei:function(){return eM},u4:function(){return w},Od:function(){return O},U7:function(){return ep},t8:function(){return ex},dp:function(){return eV},G:function(){return U},MR:function(){return D},ng:function(){return er},P2:function(){return eP},qo:function(){return eF},c$:function(){return J},BB:function(){return ei},jj:function(){return M},EL:function(){return eU},jC:function(){return eo},VO:function(){return et},I:function(){return k}});var n,r=function(e){return null!==e&&"function"!=typeof e&&isFinite(e.length)},o=function(e,t){return!!r(e)&&e.indexOf(t)>-1},s=function(e,t){if(!r(e))return e;for(var i=[],n=0;nt[r])return 1;if(e[r]i?i:e},Y=function(e,t){var i=t.toString(),n=i.indexOf(".");if(-1===n)return Math.round(e);var r=i.substr(n+1).length;return r>20&&(r=20),parseFloat(e.toFixed(r))},K=function(e){return h(e,"Number")};function $(e,t,i){return void 0===i&&(i=1e-5),Math.abs(e-t)n&&(i=o,n=s)}return i}},j=function(e,t){if(c(e)){for(var i,n=1/0,r=0;rt?(n&&(clearTimeout(n),n=null),a=h,s=e.apply(r,o),n||(r=o=null)):n||!1===i.trailing||(n=setTimeout(l,u)),s};return h.cancel=function(){clearTimeout(n),a=0,n=r=o=null},h},eF=function(e){return r(e)?Array.prototype.slice.call(e):[]},eB={},eU=function(e){return eB[e=e||"g"]?eB[e]+=1:eB[e]=1,e+eB[e]},eH=function(){};function eV(e){return d(e)?0:r(e)?e.length:Object.keys(e).length}var eW=i(97582),eG=e_(function(e,t){void 0===t&&(t={});var i=t.fontSize,r=t.fontFamily,o=t.fontWeight,s=t.fontStyle,a=t.fontVariant;return n||(n=document.createElement("canvas").getContext("2d")),n.font=[s,a,o,i+"px",r].join(" "),n.measureText(x(e)?e:"").width},function(e,t){return void 0===t&&(t={}),(0,eW.pr)([e],et(t)).join("")}),ez=function(e,t,i,n){void 0===n&&(n="...");var r,o,s=eG(n,i),a=x(e)?e:ei(e),l=t,h=[];if(eG(e,i)<=t)return e;for(;!((o=eG(r=a.substr(0,16),i))+s>l)||!(o>l);)if(h.push(r),l-=o,!(a=a.substr(16)))return h.join("");for(;!((o=eG(r=a.substr(0,1),i))+s>l);)if(h.push(r),l-=o,!(a=a.substr(1)))return h.join("");return""+h.join("")+n},eY=function(){function e(){this.map={}}return e.prototype.has=function(e){return void 0!==this.map[e]},e.prototype.get=function(e,t){var i=this.map[e];return void 0===i?t:i},e.prototype.set=function(e,t){this.map[e]=t},e.prototype.clear=function(){this.map={}},e.prototype.delete=function(e){delete this.map[e]},e.prototype.size=function(){return Object.keys(this.map).length},e}()},53406:function(e,t,i){"use strict";i.d(t,{r:function(){return eO}});var n,r,o,s,a,l=i(87462),h=i(63366),u=i(67294),d=i(33703),c=i(73546),g=i(82690);function p(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function f(e){var t=p(e).Element;return e instanceof t||e instanceof Element}function m(e){var t=p(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function v(e){if("undefined"==typeof ShadowRoot)return!1;var t=p(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var E=Math.max,_=Math.min,C=Math.round;function S(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function y(){return!/^((?!chrome|android).)*safari/i.test(S())}function T(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),r=1,o=1;t&&m(e)&&(r=e.offsetWidth>0&&C(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&C(n.height)/e.offsetHeight||1);var s=(f(e)?p(e):window).visualViewport,a=!y()&&i,l=(n.left+(a&&s?s.offsetLeft:0))/r,h=(n.top+(a&&s?s.offsetTop:0))/o,u=n.width/r,d=n.height/o;return{width:u,height:d,top:h,right:l+u,bottom:h+d,left:l,x:l,y:h}}function b(e){var t=p(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function A(e){return e?(e.nodeName||"").toLowerCase():null}function R(e){return((f(e)?e.ownerDocument:e.document)||window.document).documentElement}function L(e){return T(R(e)).left+b(e).scrollLeft}function N(e){return p(e).getComputedStyle(e)}function I(e){var t=N(e),i=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function w(e){var t=T(e),i=e.offsetWidth,n=e.offsetHeight;return 1>=Math.abs(t.width-i)&&(i=t.width),1>=Math.abs(t.height-n)&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function O(e){return"html"===A(e)?e:e.assignedSlot||e.parentNode||(v(e)?e.host:null)||R(e)}function x(e,t){void 0===t&&(t=[]);var i,n=function e(t){return["html","body","#document"].indexOf(A(t))>=0?t.ownerDocument.body:m(t)&&I(t)?t:e(O(t))}(e),r=n===(null==(i=e.ownerDocument)?void 0:i.body),o=p(n),s=r?[o].concat(o.visualViewport||[],I(n)?n:[]):n,a=t.concat(s);return r?a:a.concat(x(O(s)))}function D(e){return m(e)&&"fixed"!==N(e).position?e.offsetParent:null}function M(e){for(var t=p(e),i=D(e);i&&["table","td","th"].indexOf(A(i))>=0&&"static"===N(i).position;)i=D(i);return i&&("html"===A(i)||"body"===A(i)&&"static"===N(i).position)?t:i||function(e){var t=/firefox/i.test(S());if(/Trident/i.test(S())&&m(e)&&"fixed"===N(e).position)return null;var i=O(e);for(v(i)&&(i=i.host);m(i)&&0>["html","body"].indexOf(A(i));){var n=N(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}var k="bottom",P="right",F="left",B="auto",U=["top",k,P,F],H="start",V="viewport",W="popper",G=U.reduce(function(e,t){return e.concat([t+"-"+H,t+"-end"])},[]),z=[].concat(U,[B]).reduce(function(e,t){return e.concat([t,t+"-"+H,t+"-end"])},[]),Y=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],K={placement:"bottom",modifiers:[],strategy:"absolute"};function $(){for(var e=arguments.length,t=Array(e),i=0;i=0?"x":"y"}function J(e){var t,i=e.reference,n=e.element,r=e.placement,o=r?j(r):null,s=r?q(r):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case"top":t={x:a,y:i.y-n.height};break;case k:t={x:a,y:i.y+i.height};break;case P:t={x:i.x+i.width,y:l};break;case F:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var h=o?Z(o):null;if(null!=h){var u="y"===h?"height":"width";switch(s){case H:t[h]=t[h]-(i[u]/2-n[u]/2);break;case"end":t[h]=t[h]+(i[u]/2-n[u]/2)}}return t}var Q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ee(e){var t,i,n,r,o,s,a,l=e.popper,h=e.popperRect,u=e.placement,d=e.variation,c=e.offsets,g=e.position,f=e.gpuAcceleration,m=e.adaptive,v=e.roundOffsets,E=e.isFixed,_=c.x,S=void 0===_?0:_,y=c.y,T=void 0===y?0:y,b="function"==typeof v?v({x:S,y:T}):{x:S,y:T};S=b.x,T=b.y;var A=c.hasOwnProperty("x"),L=c.hasOwnProperty("y"),I=F,w="top",O=window;if(m){var x=M(l),D="clientHeight",B="clientWidth";x===p(l)&&"static"!==N(x=R(l)).position&&"absolute"===g&&(D="scrollHeight",B="scrollWidth"),("top"===u||(u===F||u===P)&&"end"===d)&&(w=k,T-=(E&&x===O&&O.visualViewport?O.visualViewport.height:x[D])-h.height,T*=f?1:-1),(u===F||("top"===u||u===k)&&"end"===d)&&(I=P,S-=(E&&x===O&&O.visualViewport?O.visualViewport.width:x[B])-h.width,S*=f?1:-1)}var U=Object.assign({position:g},m&&Q),H=!0===v?(t={x:S,y:T},i=p(l),n=t.x,r=t.y,{x:C(n*(o=i.devicePixelRatio||1))/o||0,y:C(r*o)/o||0}):{x:S,y:T};return(S=H.x,T=H.y,f)?Object.assign({},U,((a={})[w]=L?"0":"",a[I]=A?"0":"",a.transform=1>=(O.devicePixelRatio||1)?"translate("+S+"px, "+T+"px)":"translate3d("+S+"px, "+T+"px, 0)",a)):Object.assign({},U,((s={})[w]=L?T+"px":"",s[I]=A?S+"px":"",s.transform="",s))}var et={left:"right",right:"left",bottom:"top",top:"bottom"};function ei(e){return e.replace(/left|right|bottom|top/g,function(e){return et[e]})}var en={start:"end",end:"start"};function er(e){return e.replace(/start|end/g,function(e){return en[e]})}function eo(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&v(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function es(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ea(e,t,i){var n,r,o,s,a,l,h,u,d,c;return t===V?es(function(e,t){var i=p(e),n=R(e),r=i.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var h=y();(h||!h&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+L(e),y:l}}(e,i)):f(t)?((n=T(t,!1,"fixed"===i)).top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n):es((r=R(e),s=R(r),a=b(r),l=null==(o=r.ownerDocument)?void 0:o.body,h=E(s.scrollWidth,s.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),u=E(s.scrollHeight,s.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),d=-a.scrollLeft+L(r),c=-a.scrollTop,"rtl"===N(l||s).direction&&(d+=E(s.clientWidth,l?l.clientWidth:0)-h),{width:h,height:u,x:d,y:c}))}function el(){return{top:0,right:0,bottom:0,left:0}}function eh(e){return Object.assign({},el(),e)}function eu(e,t){return t.reduce(function(t,i){return t[i]=e,t},{})}function ed(e,t){void 0===t&&(t={});var i,n,r,o,s,a,l,h=t,u=h.placement,d=void 0===u?e.placement:u,c=h.strategy,g=void 0===c?e.strategy:c,p=h.boundary,v=h.rootBoundary,C=h.elementContext,S=void 0===C?W:C,y=h.altBoundary,b=h.padding,L=void 0===b?0:b,I=eh("number"!=typeof L?L:eu(L,U)),w=e.rects.popper,D=e.elements[void 0!==y&&y?S===W?"reference":W:S],F=(i=f(D)?D:D.contextElement||R(e.elements.popper),a=(s=[].concat("clippingParents"===(n=void 0===p?"clippingParents":p)?(r=x(O(i)),f(o=["absolute","fixed"].indexOf(N(i).position)>=0&&m(i)?M(i):i)?r.filter(function(e){return f(e)&&eo(e,o)&&"body"!==A(e)}):[]):[].concat(n),[void 0===v?V:v]))[0],(l=s.reduce(function(e,t){var n=ea(i,t,g);return e.top=E(n.top,e.top),e.right=_(n.right,e.right),e.bottom=_(n.bottom,e.bottom),e.left=E(n.left,e.left),e},ea(i,a,g))).width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l),B=T(e.elements.reference),H=J({reference:B,element:w,strategy:"absolute",placement:d}),G=es(Object.assign({},w,H)),z=S===W?G:B,Y={top:F.top-z.top+I.top,bottom:z.bottom-F.bottom+I.bottom,left:F.left-z.left+I.left,right:z.right-F.right+I.right},K=e.modifiersData.offset;if(S===W&&K){var $=K[d];Object.keys(Y).forEach(function(e){var t=[P,k].indexOf(e)>=0?1:-1,i=["top",k].indexOf(e)>=0?"y":"x";Y[e]+=$[i]*t})}return Y}function ec(e,t,i){return E(e,_(t,i))}function eg(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function ep(e){return["top",P,k,F].some(function(t){return e[t]>=0})}var ef=(o=void 0===(r=(n={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,r=n.scroll,o=void 0===r||r,s=n.resize,a=void 0===s||s,l=p(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&h.forEach(function(e){e.addEventListener("scroll",i.update,X)}),a&&l.addEventListener("resize",i.update,X),function(){o&&h.forEach(function(e){e.removeEventListener("scroll",i.update,X)}),a&&l.removeEventListener("resize",i.update,X)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=J({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,r=i.adaptive,o=i.roundOffsets,s=void 0===o||o,a={placement:j(t.placement),variation:q(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===n||n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ee(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===r||r,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ee(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},r=t.elements[e];m(r)&&A(r)&&(Object.assign(r.style,i),Object.keys(n).forEach(function(e){var t=n[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce(function(e,t){return e[t]="",e},{});m(n)&&A(n)&&(Object.assign(n.style,o),Object.keys(r).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.offset,o=void 0===r?[0,0]:r,s=z.reduce(function(e,i){var n,r,s,a,l,h;return e[i]=(n=t.rects,s=[F,"top"].indexOf(r=j(i))>=0?-1:1,l=(a="function"==typeof o?o(Object.assign({},n,{placement:i})):o)[0],h=a[1],l=l||0,h=(h||0)*s,[F,P].indexOf(r)>=0?{x:h,y:l}:{x:l,y:h}),e},{}),a=s[t.placement],l=a.x,h=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=h),t.modifiersData[n]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=i.mainAxis,o=void 0===r||r,s=i.altAxis,a=void 0===s||s,l=i.fallbackPlacements,h=i.padding,u=i.boundary,d=i.rootBoundary,c=i.altBoundary,g=i.flipVariations,p=void 0===g||g,f=i.allowedAutoPlacements,m=t.options.placement,v=j(m)===m,E=l||(v||!p?[ei(m)]:function(e){if(j(e)===B)return[];var t=ei(e);return[er(e),t,er(t)]}(m)),_=[m].concat(E).reduce(function(e,i){var n,r,o,s,a,l,c,g,m,v,E,_;return e.concat(j(i)===B?(r=(n={placement:i,boundary:u,rootBoundary:d,padding:h,flipVariations:p,allowedAutoPlacements:f}).placement,o=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,g=void 0===(c=n.allowedAutoPlacements)?z:c,0===(E=(v=(m=q(r))?l?G:G.filter(function(e){return q(e)===m}):U).filter(function(e){return g.indexOf(e)>=0})).length&&(E=v),Object.keys(_=E.reduce(function(e,i){return e[i]=ed(t,{placement:i,boundary:o,rootBoundary:s,padding:a})[j(i)],e},{})).sort(function(e,t){return _[e]-_[t]})):i)},[]),C=t.rects.reference,S=t.rects.popper,y=new Map,T=!0,b=_[0],A=0;A<_.length;A++){var R=_[A],L=j(R),N=q(R)===H,I=["top",k].indexOf(L)>=0,w=I?"width":"height",O=ed(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:c,padding:h}),x=I?N?P:F:N?k:"top";C[w]>S[w]&&(x=ei(x));var D=ei(x),M=[];if(o&&M.push(O[L]<=0),a&&M.push(O[x]<=0,O[D]<=0),M.every(function(e){return e})){b=R,T=!1;break}y.set(R,M)}if(T)for(var V=p?3:1,W=function(e){var t=_.find(function(t){var i=y.get(t);if(i)return i.slice(0,e).every(function(e){return e})});if(t)return b=t,"break"},Y=V;Y>0&&"break"!==W(Y);Y--);t.placement!==b&&(t.modifiersData[n]._skip=!0,t.placement=b,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.mainAxis,o=i.altAxis,s=i.boundary,a=i.rootBoundary,l=i.altBoundary,h=i.padding,u=i.tether,d=void 0===u||u,c=i.tetherOffset,g=void 0===c?0:c,p=ed(t,{boundary:s,rootBoundary:a,padding:h,altBoundary:l}),f=j(t.placement),m=q(t.placement),v=!m,C=Z(f),S="x"===C?"y":"x",y=t.modifiersData.popperOffsets,T=t.rects.reference,b=t.rects.popper,A="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,R="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(y){if(void 0===r||r){var I,O="y"===C?"top":F,x="y"===C?k:P,D="y"===C?"height":"width",B=y[C],U=B+p[O],V=B-p[x],W=d?-b[D]/2:0,G=m===H?T[D]:b[D],z=m===H?-b[D]:-T[D],Y=t.elements.arrow,K=d&&Y?w(Y):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:el(),X=$[O],J=$[x],Q=ec(0,T[D],K[D]),ee=v?T[D]/2-W-Q-X-R.mainAxis:G-Q-X-R.mainAxis,et=v?-T[D]/2+W+Q+J+R.mainAxis:z+Q+J+R.mainAxis,ei=t.elements.arrow&&M(t.elements.arrow),en=ei?"y"===C?ei.clientTop||0:ei.clientLeft||0:0,er=null!=(I=null==L?void 0:L[C])?I:0,eo=B+ee-er-en,es=B+et-er,ea=ec(d?_(U,eo):U,B,d?E(V,es):V);y[C]=ea,N[C]=ea-B}if(void 0!==o&&o){var eh,eu,eg="x"===C?"top":F,ep="x"===C?k:P,ef=y[S],em="y"===S?"height":"width",ev=ef+p[eg],eE=ef-p[ep],e_=-1!==["top",F].indexOf(f),eC=null!=(eu=null==L?void 0:L[S])?eu:0,eS=e_?ev:ef-T[em]-b[em]-eC+R.altAxis,ey=e_?ef+T[em]+b[em]-eC-R.altAxis:eE,eT=d&&e_?(eh=ec(eS,ef,ey))>ey?ey:eh:ec(d?eS:ev,ef,d?ey:eE);y[S]=eT,N[S]=eT-ef}t.modifiersData[n]=N}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=j(n.placement),h=Z(l),u=[F,P].indexOf(l)>=0?"height":"width";if(s&&a){var d=eh("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:eu(t,U)),c=w(s),g="y"===h?"top":F,p="y"===h?k:P,f=n.rects.reference[u]+n.rects.reference[h]-a[h]-n.rects.popper[u],m=a[h]-n.rects.reference[h],v=M(s),E=v?"y"===h?v.clientHeight||0:v.clientWidth||0:0,_=d[g],C=E-c[u]-d[p],S=E/2-c[u]/2+(f/2-m/2),y=ec(_,S,C);n.modifiersData[r]=((i={})[h]=y,i.centerOffset=y-S,i)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&eo(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=ed(t,{elementContext:"reference"}),a=ed(t,{altBoundary:!0}),l=eg(s,n),h=eg(a,r,o),u=ep(l),d=ep(h);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:h,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:r,a=void 0===(s=n.defaultOptions)?K:s,function(e,t,i){void 0===i&&(i=a);var n,r={placement:"bottom",orderedModifiers:[],options:Object.assign({},K,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],l=!1,h={state:r,setOptions:function(i){var n,l,d,c,g,p="function"==typeof i?i(r.options):i;u(),r.options=Object.assign({},a,r.options,p),r.scrollParents={reference:f(e)?x(e):e.contextElement?x(e.contextElement):[],popper:x(t)};var m=(l=Object.keys(n=[].concat(o,r.options.modifiers).reduce(function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e},{})).map(function(e){return n[e]}),d=new Map,c=new Set,g=[],l.forEach(function(e){d.set(e.name,e)}),l.forEach(function(e){c.has(e.name)||function e(t){c.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!c.has(t)){var i=d.get(t);i&&e(i)}}),g.push(t)}(e)}),Y.reduce(function(e,t){return e.concat(g.filter(function(e){return e.phase===t}))},[]));return r.orderedModifiers=m.filter(function(e){return e.enabled}),r.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,n=e.effect;if("function"==typeof n){var o=n({state:r,name:t,instance:h,options:void 0===i?{}:i});s.push(o||function(){})}}),h.update()},forceUpdate:function(){if(!l){var e,t,i,n,o,s,a,u,d,c,g,f,v=r.elements,E=v.reference,_=v.popper;if($(E,_)){r.rects={reference:(t=M(_),i="fixed"===r.options.strategy,n=m(t),u=m(t)&&(s=C((o=t.getBoundingClientRect()).width)/t.offsetWidth||1,a=C(o.height)/t.offsetHeight||1,1!==s||1!==a),d=R(t),c=T(E,u,i),g={scrollLeft:0,scrollTop:0},f={x:0,y:0},(n||!n&&!i)&&(("body"!==A(t)||I(d))&&(g=(e=t)!==p(e)&&m(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:b(e)),m(t)?(f=T(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):d&&(f.x=L(d))),{x:c.left+g.scrollLeft-f.x,y:c.top+g.scrollTop-f.y,width:c.width,height:c.height}),popper:w(_)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach(function(e){return r.modifiersData[e.name]=Object.assign({},e.data)});for(var S=0;S{!r&&s(("function"==typeof n?n():n)||document.body)},[n,r]),(0,c.Z)(()=>{if(o&&!r)return(0,eE.Z)(t,o),()=>{(0,eE.Z)(t,null)}},[t,o,r]),r)?u.isValidElement(i)?u.cloneElement(i,{ref:a}):(0,e_.jsx)(u.Fragment,{children:i}):(0,e_.jsx)(u.Fragment,{children:o?ev.createPortal(i,o):o})});var eS=i(34867);function ey(e){return(0,eS.Z)("MuiPopper",e)}(0,i(1588).Z)("MuiPopper",["root"]);var eT=i(7293);let eb=u.createContext({disableDefaultClasses:!1}),eA=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],eR=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function eL(e){return"function"==typeof e?e():e}let eN=()=>(0,em.Z)({root:["root"]},function(e){let{disableDefaultClasses:t}=u.useContext(eb);return i=>t?"":e(i)}(ey)),eI={},ew=u.forwardRef(function(e,t){var i;let{anchorEl:n,children:r,direction:o,disablePortal:s,modifiers:a,open:g,placement:p,popperOptions:f,popperRef:m,slotProps:v={},slots:E={},TransitionProps:_}=e,C=(0,h.Z)(e,eA),S=u.useRef(null),y=(0,d.Z)(S,t),T=u.useRef(null),b=(0,d.Z)(T,m),A=u.useRef(b);(0,c.Z)(()=>{A.current=b},[b]),u.useImperativeHandle(m,()=>T.current,[]);let R=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(p,o),[L,N]=u.useState(R),[I,w]=u.useState(eL(n));u.useEffect(()=>{T.current&&T.current.forceUpdate()}),u.useEffect(()=>{n&&w(eL(n))},[n]),(0,c.Z)(()=>{if(!I||!g)return;let e=e=>{N(e.placement)},t=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:t})=>{e(t)}}];null!=a&&(t=t.concat(a)),f&&null!=f.modifiers&&(t=t.concat(f.modifiers));let i=ef(I,S.current,(0,l.Z)({placement:R},f,{modifiers:t}));return A.current(i),()=>{i.destroy(),A.current(null)}},[I,s,a,g,f,R]);let O={placement:L};null!==_&&(O.TransitionProps=_);let x=eN(),D=null!=(i=E.root)?i:"div",M=(0,eT.y)({elementType:D,externalSlotProps:v.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:y},ownerState:e,className:x.root});return(0,e_.jsx)(D,(0,l.Z)({},M,{children:"function"==typeof r?r(O):r}))}),eO=u.forwardRef(function(e,t){let i;let{anchorEl:n,children:r,container:o,direction:s="ltr",disablePortal:a=!1,keepMounted:d=!1,modifiers:c,open:p,placement:f="bottom",popperOptions:m=eI,popperRef:v,style:E,transition:_=!1,slotProps:C={},slots:S={}}=e,y=(0,h.Z)(e,eR),[T,b]=u.useState(!0);if(!d&&!p&&(!_||T))return null;if(o)i=o;else if(n){let e=eL(n);i=e&&void 0!==e.nodeType?(0,g.Z)(e).body:(0,g.Z)(null).body}let A=!p&&d&&(!_||T)?"none":void 0;return(0,e_.jsx)(eC,{disablePortal:a,container:i,children:(0,e_.jsx)(ew,(0,l.Z)({anchorEl:n,direction:s,disablePortal:a,modifiers:c,ref:t,open:_?!T:p,placement:f,popperOptions:m,popperRef:v,slotProps:C,slots:S},y,{style:(0,l.Z)({position:"fixed",top:0,left:0,display:A},E),TransitionProps:_?{in:p,onEnter:()=>{b(!1)},onExited:()=>{b(!0)}}:void 0,children:r}))})})},70758:function(e,t,i){"use strict";i.d(t,{U:function(){return l}});var n=i(87462),r=i(67294),o=i(99962),s=i(33703),a=i(30437);function l(e={}){let{disabled:t=!1,focusableWhenDisabled:i,href:l,rootRef:h,tabIndex:u,to:d,type:c}=e,g=r.useRef(),[p,f]=r.useState(!1),{isFocusVisibleRef:m,onFocus:v,onBlur:E,ref:_}=(0,o.Z)(),[C,S]=r.useState(!1);t&&!i&&C&&S(!1),r.useEffect(()=>{m.current=C},[C,m]);let[y,T]=r.useState(""),b=e=>t=>{var i;C&&t.preventDefault(),null==(i=e.onMouseLeave)||i.call(e,t)},A=e=>t=>{var i;E(t),!1===m.current&&S(!1),null==(i=e.onBlur)||i.call(e,t)},R=e=>t=>{var i,n;g.current||(g.current=t.currentTarget),v(t),!0===m.current&&(S(!0),null==(n=e.onFocusVisible)||n.call(e,t)),null==(i=e.onFocus)||i.call(e,t)},L=()=>{let e=g.current;return"BUTTON"===y||"INPUT"===y&&["button","submit","reset"].includes(null==e?void 0:e.type)||"A"===y&&(null==e?void 0:e.href)},N=e=>i=>{if(!t){var n;null==(n=e.onClick)||n.call(e,i)}},I=e=>i=>{var n;t||(f(!0),document.addEventListener("mouseup",()=>{f(!1)},{once:!0})),null==(n=e.onMouseDown)||n.call(e,i)},w=e=>i=>{var n,r;null==(n=e.onKeyDown)||n.call(e,i),!i.defaultMuiPrevented&&(i.target!==i.currentTarget||L()||" "!==i.key||i.preventDefault(),i.target!==i.currentTarget||" "!==i.key||t||f(!0),i.target!==i.currentTarget||L()||"Enter"!==i.key||t||(null==(r=e.onClick)||r.call(e,i),i.preventDefault()))},O=e=>i=>{var n,r;i.target===i.currentTarget&&f(!1),null==(n=e.onKeyUp)||n.call(e,i),i.target!==i.currentTarget||L()||t||" "!==i.key||i.defaultMuiPrevented||null==(r=e.onClick)||r.call(e,i)},x=r.useCallback(e=>{var t;T(null!=(t=null==e?void 0:e.tagName)?t:"")},[]),D=(0,s.Z)(x,h,_,g),M={};return void 0!==u&&(M.tabIndex=u),"BUTTON"===y?(M.type=null!=c?c:"button",i?M["aria-disabled"]=t:M.disabled=t):""!==y&&(l||d||(M.role="button",M.tabIndex=null!=u?u:0),t&&(M["aria-disabled"]=t,M.tabIndex=i?null!=u?u:0:-1)),{getRootProps:(t={})=>{let i=(0,n.Z)({},(0,a._)(e),(0,a._)(t)),r=(0,n.Z)({type:c},i,M,t,{onBlur:A(i),onClick:N(i),onFocus:R(i),onKeyDown:w(i),onKeyUp:O(i),onMouseDown:I(i),onMouseLeave:b(i),ref:D});return delete r.onFocusVisible,r},focusVisible:C,setFocusVisible:S,active:p,rootRef:D}}},26558:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});var n=i(67294);let r=n.createContext(null)},22644:function(e,t,i){"use strict";i.d(t,{F:function(){return n}});let n={blur:"list:blur",focus:"list:focus",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",textNavigation:"list:textNavigation"}},7333:function(e,t,i){"use strict";i.d(t,{R$:function(){return a},Rl:function(){return o}});var n=i(87462),r=i(22644);function o(e,t,i){var n;let r,o;let{items:s,isItemDisabled:a,disableListWrap:l,disabledItemsFocusable:h,itemComparer:u,focusManagement:d}=i,c=s.length-1,g=null==e?-1:s.findIndex(t=>u(t,e)),p=!l;switch(t){case"reset":if(-1==("DOM"===d?0:-1))return null;r=0,o="next",p=!1;break;case"start":r=0,o="next",p=!1;break;case"end":r=c,o="previous",p=!1;break;default:{let e=g+t;e<0?!p&&-1!==g||Math.abs(t)>1?(r=0,o="next"):(r=c,o="previous"):e>c?!p||Math.abs(t)>1?(r=c,o="previous"):(r=0,o="next"):(r=e,o=t>=0?"next":"previous")}}let f=function(e,t,i,n,r,o){if(0===i.length||!n&&i.every((e,t)=>r(e,t)))return -1;let s=e;for(;;){if(!o&&"next"===t&&s===i.length||!o&&"previous"===t&&-1===s)return -1;let e=!n&&r(i[s],s);if(!e)return s;s+="next"===t?1:-1,o&&(s=(s+i.length)%i.length)}}(r,o,s,h,a,p);return -1!==f||null===e||a(e,g)?null!=(n=s[f])?n:null:e}function s(e,t,i){let{itemComparer:r,isItemDisabled:o,selectionMode:s,items:a}=i,{selectedValues:l}=t,h=a.findIndex(t=>r(e,t));if(o(e,h))return t;let u="none"===s?[]:"single"===s?r(l[0],e)?l:[e]:l.some(t=>r(t,e))?l.filter(t=>!r(t,e)):[...l,e];return(0,n.Z)({},t,{selectedValues:u,highlightedValue:e})}function a(e,t){let{type:i,context:a}=t;switch(i){case r.F.keyDown:return function(e,t,i){let r=t.highlightedValue,{orientation:a,pageSize:l}=i;switch(e){case"Home":return(0,n.Z)({},t,{highlightedValue:o(r,"start",i)});case"End":return(0,n.Z)({},t,{highlightedValue:o(r,"end",i)});case"PageUp":return(0,n.Z)({},t,{highlightedValue:o(r,-l,i)});case"PageDown":return(0,n.Z)({},t,{highlightedValue:o(r,l,i)});case"ArrowUp":if("vertical"!==a)break;return(0,n.Z)({},t,{highlightedValue:o(r,-1,i)});case"ArrowDown":if("vertical"!==a)break;return(0,n.Z)({},t,{highlightedValue:o(r,1,i)});case"ArrowLeft":if("vertical"===a)break;return(0,n.Z)({},t,{highlightedValue:o(r,"horizontal-ltr"===a?-1:1,i)});case"ArrowRight":if("vertical"===a)break;return(0,n.Z)({},t,{highlightedValue:o(r,"horizontal-ltr"===a?1:-1,i)});case"Enter":case" ":if(null===t.highlightedValue)break;return s(t.highlightedValue,t,i)}return t}(t.key,e,a);case r.F.itemClick:return s(t.item,e,a);case r.F.blur:return"DOM"===a.focusManagement?e:(0,n.Z)({},e,{highlightedValue:null});case r.F.textNavigation:return function(e,t,i){let{items:r,isItemDisabled:s,disabledItemsFocusable:a,getItemAsString:l}=i,h=t.length>1,u=h?e.highlightedValue:o(e.highlightedValue,1,i);for(let d=0;dl(e,i.highlightedValue)))?a:null:"DOM"===h&&0===t.length&&(u=o(null,"reset",r));let d=null!=(s=i.selectedValues)?s:[],c=d.filter(t=>e.some(e=>l(e,t)));return(0,n.Z)({},i,{highlightedValue:u,selectedValues:c})}(t.items,t.previousItems,e,a);case r.F.resetHighlight:return(0,n.Z)({},e,{highlightedValue:o(null,"reset",a)});default:return e}}},96592:function(e,t,i){"use strict";i.d(t,{s:function(){return _}});var n=i(87462),r=i(67294),o=i(33703),s=i(22644),a=i(7333);let l="select:change-selection",h="select:change-highlight";var u=i(78031),d=i(6414);function c(e,t){let i=r.useRef(e);return r.useEffect(()=>{i.current=e},null!=t?t:[e]),i}let g={},p=()=>{},f=(e,t)=>e===t,m=()=>!1,v=e=>"string"==typeof e?e:String(e),E=()=>({highlightedValue:null,selectedValues:[]});function _(e){let{controlledProps:t=g,disabledItemsFocusable:i=!1,disableListWrap:_=!1,focusManagement:C="activeDescendant",getInitialState:S=E,getItemDomElement:y,getItemId:T,isItemDisabled:b=m,rootRef:A,onStateChange:R=p,items:L,itemComparer:N=f,getItemAsString:I=v,onChange:w,onHighlightChange:O,onItemsChange:x,orientation:D="vertical",pageSize:M=5,reducerActionContext:k=g,selectionMode:P="single",stateReducer:F}=e,B=r.useRef(null),U=(0,o.Z)(A,B),H=r.useCallback((e,t,i)=>{if(null==O||O(e,t,i),"DOM"===C&&null!=t&&(i===s.F.itemClick||i===s.F.keyDown||i===s.F.textNavigation)){var n;null==y||null==(n=y(t))||n.focus()}},[y,O,C]),V=r.useMemo(()=>({highlightedValue:N,selectedValues:(e,t)=>(0,d.H)(e,t,N)}),[N]),W=r.useCallback((e,t,i,n,r)=>{switch(null==R||R(e,t,i,n,r),t){case"highlightedValue":H(e,i,n);break;case"selectedValues":null==w||w(e,i,n)}},[H,w,R]),G=r.useMemo(()=>({disabledItemsFocusable:i,disableListWrap:_,focusManagement:C,isItemDisabled:b,itemComparer:N,items:L,getItemAsString:I,onHighlightChange:H,orientation:D,pageSize:M,selectionMode:P,stateComparers:V}),[i,_,C,b,N,L,I,H,D,M,P,V]),z=S(),Y=null!=F?F:a.R$,K=r.useMemo(()=>(0,n.Z)({},k,G),[k,G]),[$,X]=(0,u.r)({reducer:Y,actionContext:K,initialState:z,controlledProps:t,stateComparers:V,onStateChange:W}),{highlightedValue:j,selectedValues:q}=$,Z=function(e){let t=r.useRef({searchString:"",lastTime:null});return r.useCallback(i=>{if(1===i.key.length&&" "!==i.key){let n=t.current,r=i.key.toLowerCase(),o=performance.now();n.searchString.length>0&&n.lastTime&&o-n.lastTime>500?n.searchString=r:(1!==n.searchString.length||r!==n.searchString)&&(n.searchString+=r),n.lastTime=o,e(n.searchString,i)}},[e])}((e,t)=>X({type:s.F.textNavigation,event:t,searchString:e})),J=c(q),Q=c(j),ee=r.useRef([]);r.useEffect(()=>{(0,d.H)(ee.current,L,N)||(X({type:s.F.itemsChange,event:null,items:L,previousItems:ee.current}),ee.current=L,null==x||x(L))},[L,N,X,x]);let{notifySelectionChanged:et,notifyHighlightChanged:ei,registerHighlightChangeHandler:en,registerSelectionChangeHandler:er}=function(){let e=function(){let e=r.useRef();return e.current||(e.current=function(){let e=new Map;return{subscribe:function(t,i){let n=e.get(t);return n?n.add(i):(n=new Set([i]),e.set(t,n)),()=>{n.delete(i),0===n.size&&e.delete(t)}},publish:function(t,...i){let n=e.get(t);n&&n.forEach(e=>e(...i))}}}()),e.current}(),t=r.useCallback(t=>{e.publish(l,t)},[e]),i=r.useCallback(t=>{e.publish(h,t)},[e]),n=r.useCallback(t=>e.subscribe(l,t),[e]),o=r.useCallback(t=>e.subscribe(h,t),[e]);return{notifySelectionChanged:t,notifyHighlightChanged:i,registerSelectionChangeHandler:n,registerHighlightChangeHandler:o}}();r.useEffect(()=>{et(q)},[q,et]),r.useEffect(()=>{ei(j)},[j,ei]);let eo=e=>t=>{var i;if(null==(i=e.onKeyDown)||i.call(e,t),t.defaultMuiPrevented)return;let n=["Home","End","PageUp","PageDown"];"vertical"===D?n.push("ArrowUp","ArrowDown"):n.push("ArrowLeft","ArrowRight"),"activeDescendant"===C&&n.push(" ","Enter"),n.includes(t.key)&&t.preventDefault(),X({type:s.F.keyDown,key:t.key,event:t}),Z(t)},es=e=>t=>{var i,n;null==(i=e.onBlur)||i.call(e,t),t.defaultMuiPrevented||null!=(n=B.current)&&n.contains(t.relatedTarget)||X({type:s.F.blur,event:t})},ea=r.useCallback(e=>{var t;let i=L.findIndex(t=>N(t,e)),n=(null!=(t=J.current)?t:[]).some(t=>null!=t&&N(e,t)),r=b(e,i),o=null!=Q.current&&N(e,Q.current),s="DOM"===C;return{disabled:r,focusable:s,highlighted:o,index:i,selected:n}},[L,b,N,J,Q,C]),el=r.useMemo(()=>({dispatch:X,getItemState:ea,registerHighlightChangeHandler:en,registerSelectionChangeHandler:er}),[X,ea,en,er]);return r.useDebugValue({state:$}),{contextValue:el,dispatch:X,getRootProps:(e={})=>(0,n.Z)({},e,{"aria-activedescendant":"activeDescendant"===C&&null!=j?T(j):void 0,onBlur:es(e),onKeyDown:eo(e),tabIndex:"DOM"===C?-1:0,ref:U}),rootRef:U,state:$}}},43069:function(e,t,i){"use strict";i.d(t,{J:function(){return h}});var n=i(87462),r=i(67294),o=i(33703),s=i(73546),a=i(22644),l=i(26558);function h(e){let t;let{handlePointerOverEvents:i=!1,item:h,rootRef:u}=e,d=r.useRef(null),c=(0,o.Z)(d,u),g=r.useContext(l.Z);if(!g)throw Error("useListItem must be used within a ListProvider");let{dispatch:p,getItemState:f,registerHighlightChangeHandler:m,registerSelectionChangeHandler:v}=g,{highlighted:E,selected:_,focusable:C}=f(h),S=function(){let[,e]=r.useState({});return r.useCallback(()=>{e({})},[])}();(0,s.Z)(()=>m(function(e){e!==h||E?e!==h&&E&&S():S()})),(0,s.Z)(()=>v(function(e){_?e.includes(h)||S():e.includes(h)&&S()}),[v,S,_,h]);let y=r.useCallback(e=>t=>{var i;null==(i=e.onClick)||i.call(e,t),t.defaultPrevented||p({type:a.F.itemClick,item:h,event:t})},[p,h]),T=r.useCallback(e=>t=>{var i;null==(i=e.onMouseOver)||i.call(e,t),t.defaultPrevented||p({type:a.F.itemHover,item:h,event:t})},[p,h]);return C&&(t=E?0:-1),{getRootProps:(e={})=>(0,n.Z)({},e,{onClick:y(e),onPointerOver:i?T(e):void 0,ref:c,tabIndex:t}),highlighted:E,rootRef:c,selected:_}}},10238:function(e,t,i){"use strict";i.d(t,{$:function(){return o}});var n=i(87462),r=i(28442);function o(e,t,i){return void 0===e||(0,r.X)(e)?t:(0,n.Z)({},t,{ownerState:(0,n.Z)({},t.ownerState,i)})}},6414:function(e,t,i){"use strict";function n(e,t,i=(e,t)=>e===t){return e.length===t.length&&e.every((e,n)=>i(e,t[n]))}i.d(t,{H:function(){return n}})},2900:function(e,t,i){"use strict";i.d(t,{f:function(){return r}});var n=i(87462);function r(e,t){return function(i={}){let r=(0,n.Z)({},i,e(i)),o=(0,n.Z)({},r,t(r));return o}}},30437:function(e,t,i){"use strict";function n(e,t=[]){if(void 0===e)return{};let i={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&"function"==typeof e[i]&&!t.includes(i)).forEach(t=>{i[t]=e[t]}),i}i.d(t,{_:function(){return n}})},28442:function(e,t,i){"use strict";function n(e){return"string"==typeof e}i.d(t,{X:function(){return n}})},24407:function(e,t,i){"use strict";i.d(t,{L:function(){return a}});var n=i(87462),r=i(90512),o=i(30437);function s(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(i=>{t[i]=e[i]}),t}function a(e){let{getSlotProps:t,additionalProps:i,externalSlotProps:a,externalForwardedProps:l,className:h}=e;if(!t){let e=(0,r.Z)(null==l?void 0:l.className,null==a?void 0:a.className,h,null==i?void 0:i.className),t=(0,n.Z)({},null==i?void 0:i.style,null==l?void 0:l.style,null==a?void 0:a.style),o=(0,n.Z)({},i,l,a);return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let u=(0,o._)((0,n.Z)({},l,a)),d=s(a),c=s(l),g=t(u),p=(0,r.Z)(null==g?void 0:g.className,null==i?void 0:i.className,h,null==l?void 0:l.className,null==a?void 0:a.className),f=(0,n.Z)({},null==g?void 0:g.style,null==i?void 0:i.style,null==l?void 0:l.style,null==a?void 0:a.style),m=(0,n.Z)({},g,i,c,d);return p.length>0&&(m.className=p),Object.keys(f).length>0&&(m.style=f),{props:m,internalRef:g.ref}}},71276:function(e,t,i){"use strict";function n(e,t,i){return"function"==typeof e?e(t,i):e}i.d(t,{x:function(){return n}})},12247:function(e,t,i){"use strict";i.d(t,{Y:function(){return o},s:function(){return r}});var n=i(67294);let r=n.createContext(null);function o(){let[e,t]=n.useState(new Map),i=n.useRef(new Set),r=n.useCallback(function(e){i.current.delete(e),t(t=>{let i=new Map(t);return i.delete(e),i})},[]),o=n.useCallback(function(e,n){let o;return o="function"==typeof e?e(i.current):e,i.current.add(o),t(e=>{let t=new Map(e);return t.set(o,n),t}),{id:o,deregister:()=>r(o)}},[r]),s=n.useMemo(()=>(function(e){let t=Array.from(e.keys()).map(t=>{let i=e.get(t);return{key:t,subitem:i}});return t.sort((e,t)=>{let i=e.subitem.ref.current,n=t.subitem.ref.current;return null===i||null===n||i===n?0:i.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(e=>[e.key,e.subitem]))})(e),[e]),a=n.useCallback(function(e){return Array.from(s.keys()).indexOf(e)},[s]),l=n.useMemo(()=>({getItemIndex:a,registerItem:o,totalSubitemCount:e.size}),[a,o,e.size]);return{contextValue:l,subitems:s}}r.displayName="CompoundComponentContext"},14072:function(e,t,i){"use strict";i.d(t,{B:function(){return s}});var n=i(67294),r=i(73546),o=i(12247);function s(e,t){let i=n.useContext(o.s);if(null===i)throw Error("useCompoundItem must be used within a useCompoundParent");let{registerItem:s}=i,[a,l]=n.useState("function"==typeof e?void 0:e);return(0,r.Z)(()=>{let{id:i,deregister:n}=s(e,t);return l(i),n},[s,t,e]),{id:a,index:void 0!==a?i.getItemIndex(a):-1,totalItemCount:i.totalSubitemCount}}},78031:function(e,t,i){"use strict";i.d(t,{r:function(){return h}});var n=i(87462),r=i(67294);function o(e,t){return e===t}let s={},a=()=>{};function l(e,t){let i=(0,n.Z)({},e);return Object.keys(t).forEach(e=>{void 0!==t[e]&&(i[e]=t[e])}),i}function h(e){let t=r.useRef(null),{reducer:i,initialState:h,controlledProps:u=s,stateComparers:d=s,onStateChange:c=a,actionContext:g}=e,p=r.useCallback((e,n)=>{t.current=n;let r=l(e,u),o=i(r,n);return o},[u,i]),[f,m]=r.useReducer(p,h),v=r.useCallback(e=>{m((0,n.Z)({},e,{context:g}))},[g]);return!function(e){let{nextState:t,initialState:i,stateComparers:n,onStateChange:s,controlledProps:a,lastActionRef:h}=e,u=r.useRef(i);r.useEffect(()=>{if(null===h.current)return;let e=l(u.current,a);Object.keys(t).forEach(i=>{var r,a,l;let u=null!=(r=n[i])?r:o,d=t[i],c=e[i];(null!=c||null==d)&&(null==c||null!=d)&&(null==c||null==d||u(d,c))||null==s||s(null!=(a=h.current.event)?a:null,i,d,null!=(l=h.current.type)?l:"",t)}),u.current=t,h.current=null},[u,t,h,s,n,a])}({nextState:f,initialState:h,stateComparers:null!=d?d:s,onStateChange:null!=c?c:a,controlledProps:u,lastActionRef:t}),[l(f,u),v]}},7293:function(e,t,i){"use strict";i.d(t,{y:function(){return u}});var n=i(87462),r=i(63366),o=i(33703),s=i(10238),a=i(24407),l=i(71276);let h=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function u(e){var t;let{elementType:i,externalSlotProps:u,ownerState:d,skipResolvingSlotProps:c=!1}=e,g=(0,r.Z)(e,h),p=c?{}:(0,l.x)(u,d),{props:f,internalRef:m}=(0,a.L)((0,n.Z)({},g,{externalSlotProps:p})),v=(0,o.Z)(m,null==p?void 0:p.ref,null==(t=e.additionalProps)?void 0:t.ref),E=(0,s.$)(i,(0,n.Z)({},f,{ref:v}),d);return E}},48665:function(e,t,i){"use strict";i.d(t,{Z:function(){return v}});var n=i(87462),r=i(63366),o=i(67294),s=i(90512),a=i(49731),l=i(86523),h=i(39707),u=i(96682),d=i(85893);let c=["className","component"];var g=i(37078),p=i(1812),f=i(2548);let m=function(e={}){let{themeId:t,defaultTheme:i,defaultClassName:g="MuiBox-root",generateClassName:p}=e,f=(0,a.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.Z),m=o.forwardRef(function(e,o){let a=(0,u.Z)(i),l=(0,h.Z)(e),{className:m,component:v="div"}=l,E=(0,r.Z)(l,c);return(0,d.jsx)(f,(0,n.Z)({as:v,ref:o,className:(0,s.Z)(m,p?p(g):g),theme:t&&a[t]||a},E))});return m}({themeId:f.Z,defaultTheme:p.Z,defaultClassName:"MuiBox-root",generateClassName:g.Z.generate});var v=m},41118:function(e,t,i){"use strict";i.d(t,{Z:function(){return y}});var n=i(63366),r=i(87462),o=i(67294),s=i(90512),a=i(94780),l=i(14142),h=i(18719),u=i(20407),d=i(74312),c=i(78653),g=i(26821);function p(e){return(0,g.d6)("MuiCard",e)}(0,g.sI)("MuiCard",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","horizontal","vertical"]);var f=i(58859),m=i(30220),v=i(85893);let E=["className","color","component","invertedColors","size","variant","children","orientation","slots","slotProps"],_=e=>{let{size:t,variant:i,color:n,orientation:r}=e,o={root:["root",r,i&&`variant${(0,l.Z)(i)}`,n&&`color${(0,l.Z)(n)}`,t&&`size${(0,l.Z)(t)}`]};return(0,a.Z)(o,p,{})},C=(0,d.Z)("div",{name:"JoyCard",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n;let{p:o,padding:s,borderRadius:a}=(0,f.V)({theme:e,ownerState:t},["p","padding","borderRadius"]);return[(0,r.Z)({"--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon,"--Card-childRadius":"max((var(--Card-radius) - var(--variant-borderWidth, 0px)) - var(--Card-padding), min(var(--Card-padding) / 2, (var(--Card-radius) - var(--variant-borderWidth, 0px)) / 2))","--AspectRatio-radius":"var(--Card-childRadius)","--unstable_actionMargin":"calc(-1 * var(--variant-borderWidth, 0px))","--unstable_actionRadius":"var(--Card-radius)","--CardCover-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--CardOverflow-offset":"calc(-1 * var(--Card-padding))","--CardOverflow-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--Divider-inset":"calc(-1 * var(--Card-padding))"},"sm"===t.size&&{"--Card-radius":e.vars.radius.sm,"--Card-padding":"0.625rem",gap:"0.5rem"},"md"===t.size&&{"--Card-radius":e.vars.radius.md,"--Card-padding":"1rem",gap:"0.75rem 1rem"},"lg"===t.size&&{"--Card-radius":e.vars.radius.lg,"--Card-padding":"1.5rem",gap:"1rem 1.5rem"},{padding:"var(--Card-padding)",borderRadius:"var(--Card-radius)",backgroundColor:e.vars.palette.background.surface,position:"relative",display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column"},e.typography[`body-${t.size}`],null==(i=e.variants[t.variant])?void 0:i[t.color]),"context"!==t.color&&t.invertedColors&&(null==(n=e.colorInversion[t.variant])?void 0:n[t.color]),void 0!==o&&{"--Card-padding":o},void 0!==s&&{"--Card-padding":s},void 0!==a&&{"--Card-radius":a}]}),S=o.forwardRef(function(e,t){let i=(0,u.Z)({props:e,name:"JoyCard"}),{className:a,color:l="neutral",component:d="div",invertedColors:g=!1,size:p="md",variant:f="outlined",children:S,orientation:y="vertical",slots:T={},slotProps:b={}}=i,A=(0,n.Z)(i,E),{getColor:R}=(0,c.VT)(f),L=R(e.color,l),N=(0,r.Z)({},i,{color:L,component:d,orientation:y,size:p,variant:f}),I=_(N),w=(0,r.Z)({},A,{component:d,slots:T,slotProps:b}),[O,x]=(0,m.Z)("root",{ref:t,className:(0,s.Z)(I.root,a),elementType:C,externalForwardedProps:w,ownerState:N}),D=(0,v.jsx)(O,(0,r.Z)({},x,{children:o.Children.map(S,(e,t)=>{if(!o.isValidElement(e))return e;let i={};if((0,h.Z)(e,["Divider"])){i.inset="inset"in e.props?e.props.inset:"context";let t="vertical"===y?"horizontal":"vertical";i.orientation="orientation"in e.props?e.props.orientation:t}return(0,h.Z)(e,["CardOverflow"])&&("horizontal"===y&&(i["data-parent"]="Card-horizontal"),"vertical"===y&&(i["data-parent"]="Card-vertical")),0===t&&(i["data-first-child"]=""),t===o.Children.count(S)-1&&(i["data-last-child"]=""),o.cloneElement(e,i)})}));return g?(0,v.jsx)(c.do,{variant:f,children:D}):D});var y=S},30208:function(e,t,i){"use strict";i.d(t,{Z:function(){return _}});var n=i(87462),r=i(63366),o=i(67294),s=i(90512),a=i(94780),l=i(20407),h=i(74312),u=i(26821);function d(e){return(0,u.d6)("MuiCardContent",e)}(0,u.sI)("MuiCardContent",["root"]);let c=(0,u.sI)("MuiCardOverflow",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var g=i(30220),p=i(85893);let f=["className","component","children","orientation","slots","slotProps"],m=()=>(0,a.Z)({root:["root"]},d,{}),v=(0,h.Z)("div",{name:"JoyCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({display:"flex",flexDirection:"horizontal"===e.orientation?"row":"column",flex:9999,zIndex:1,columnGap:"var(--Card-padding)",rowGap:"max(2px, calc(0.1875 * var(--Card-padding)))",padding:"var(--unstable_padding)",[`.${c.root} > &`]:{"--unstable_padding":"calc(var(--Card-padding) * 0.75) 0px"}})),E=o.forwardRef(function(e,t){let i=(0,l.Z)({props:e,name:"JoyCardContent"}),{className:o,component:a="div",children:h,orientation:u="vertical",slots:d={},slotProps:c={}}=i,E=(0,r.Z)(i,f),_=(0,n.Z)({},E,{component:a,slots:d,slotProps:c}),C=(0,n.Z)({},i,{component:a,orientation:u}),S=m(),[y,T]=(0,g.Z)("root",{ref:t,className:(0,s.Z)(S.root,o),elementType:v,externalForwardedProps:_,ownerState:C});return(0,p.jsx)(y,(0,n.Z)({},T,{children:h}))});var _=E},76043:function(e,t,i){"use strict";var n=i(67294);let r=n.createContext(void 0);t.Z=r},43614:function(e,t,i){"use strict";var n=i(67294);let r=n.createContext(void 0);t.Z=r},50984:function(e,t,i){"use strict";i.d(t,{C:function(){return s}});var n=i(87462);i(67294);var r=i(74312),o=i(58859);i(85893);let s=(0,r.Z)("ul")(({theme:e,ownerState:t})=>{var i;let{p:r,padding:s,borderRadius:a}=(0,o.V)({theme:e,ownerState:t},["p","padding","borderRadius"]);function l(i){return"sm"===i?{"--ListDivider-gap":"0.25rem","--ListItem-minHeight":"2rem","--ListItem-paddingY":"0.25rem","--ListItem-paddingX":"0.5rem","--ListItemDecorator-size":"horizontal"===t.orientation?"1.5rem":"2rem","--Icon-fontSize":e.vars.fontSize.lg}:"md"===i?{"--ListDivider-gap":"0.375rem","--ListItem-minHeight":"2.5rem","--ListItem-paddingY":"0.375rem","--ListItem-paddingX":"0.75rem","--ListItemDecorator-size":"horizontal"===t.orientation?"1.75rem":"2.5rem","--Icon-fontSize":e.vars.fontSize.xl}:"lg"===i?{"--ListDivider-gap":"0.5rem","--ListItem-minHeight":"3rem","--ListItem-paddingY":"0.5rem","--ListItem-paddingX":"1rem","--ListItemDecorator-size":"horizontal"===t.orientation?"2.25rem":"3rem","--Icon-fontSize":e.vars.fontSize.xl2}:{}}return[t.nesting&&(0,n.Z)({},l(t.instanceSize),{"--ListItem-paddingRight":"var(--ListItem-paddingX)","--ListItem-paddingLeft":"var(--NestedListItem-paddingLeft)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px",padding:0,marginInlineStart:"var(--NestedList-marginLeft)",marginInlineEnd:"var(--NestedList-marginRight)",marginBlockStart:"var(--List-gap)",marginBlockEnd:"initial"}),!t.nesting&&(0,n.Z)({},l(t.size),{"--List-gap":"0px","--List-nestedInsetStart":"0px","--ListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItem-paddingRight":"var(--ListItem-paddingX)","--unstable_List-childRadius":"calc(max(var(--List-radius) - var(--List-padding), min(var(--List-padding) / 2, var(--List-radius) / 2)) - var(--variant-borderWidth, 0px))","--ListItem-radius":"var(--unstable_List-childRadius)","--ListItem-startActionTranslateX":"calc(0.5 * var(--ListItem-paddingLeft))","--ListItem-endActionTranslateX":"calc(-0.5 * var(--ListItem-paddingRight))",margin:"initial"},e.typography[`body-${t.size}`],"horizontal"===t.orientation?(0,n.Z)({},t.wrap?{padding:"var(--List-padding)",marginInlineStart:"calc(-1 * var(--List-gap))",marginBlockStart:"calc(-1 * var(--List-gap))"}:{paddingInline:"var(--List-padding, var(--ListDivider-gap))",paddingBlock:"var(--List-padding)"}):{paddingBlock:"var(--List-padding, var(--ListDivider-gap))",paddingInline:"var(--List-padding)"}),(0,n.Z)({boxSizing:"border-box",borderRadius:"var(--List-radius)",listStyle:"none",display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column"},t.wrap&&{flexWrap:"wrap"},{flexGrow:1,position:"relative"},null==(i=e.variants[t.variant])?void 0:i[t.color],{"--unstable_List-borderWidth":"var(--variant-borderWidth, 0px)"},void 0!==a&&{"--List-radius":a},void 0!==r&&{"--List-padding":r},void 0!==s&&{"--List-padding":s})]});(0,r.Z)(s,{name:"JoyList",slot:"Root",overridesResolver:(e,t)=>t.root})({})},3419:function(e,t,i){"use strict";i.d(t,{Z:function(){return u},M:function(){return h}});var n=i(87462),r=i(67294),o=i(40780);let s=r.createContext(!1),a=r.createContext(!1);var l=i(85893);let h={"--NestedList-marginRight":"0px","--NestedList-marginLeft":"0px","--NestedListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px"};var u=function(e){let{children:t,nested:i,row:h=!1,wrap:u=!1}=e,d=(0,l.jsx)(o.Z.Provider,{value:h,children:(0,l.jsx)(s.Provider,{value:u,children:r.Children.map(t,(e,i)=>r.isValidElement(e)?r.cloneElement(e,(0,n.Z)({},0===i&&{"data-first-child":""},i===r.Children.count(t)-1&&{"data-last-child":""})):e)})});return void 0===i?d:(0,l.jsx)(a.Provider,{value:i,children:d})}},40780:function(e,t,i){"use strict";var n=i(67294);let r=n.createContext(!1);t.Z=r},39984:function(e,t,i){"use strict";i.d(t,{r:function(){return l}});var n=i(87462);i(67294);var r=i(74312),o=i(26821);let s=(0,o.sI)("MuiListItem",["root","startAction","endAction","nested","nesting","sticky","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]),a=(0,o.sI)("MuiListItemButton",["root","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","variantPlain","variantSoft","variantOutlined","variantSolid"]);i(85893);let l=(0,r.Z)("div")(({theme:e,ownerState:t})=>{var i,r,o,l,h;return(0,n.Z)({"--Icon-margin":"initial","--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon,WebkitTapHighlightColor:"transparent",boxSizing:"border-box",position:"relative",font:"inherit",display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"stretch"},"vertical"===t.orientation&&{flexDirection:"column",justifyContent:"center"},{textAlign:"initial",textDecoration:"initial",backgroundColor:"initial",cursor:"pointer",marginInline:"var(--ListItemButton-marginInline)",marginBlock:"var(--ListItemButton-marginBlock)"},void 0===t["data-first-child"]&&{marginInlineStart:t.row?"var(--List-gap)":void 0,marginBlockStart:t.row?void 0:"var(--List-gap)"},{paddingBlock:"calc(var(--ListItem-paddingY) - var(--variant-borderWidth, 0px))",paddingInlineStart:"calc(var(--ListItem-paddingLeft) + var(--ListItem-startActionWidth, var(--unstable_startActionWidth, 0px)))",paddingInlineEnd:"calc(var(--ListItem-paddingRight) + var(--ListItem-endActionWidth, var(--unstable_endActionWidth, 0px)))",minBlockSize:"var(--ListItem-minHeight)",border:"1px solid transparent",borderRadius:"var(--ListItem-radius)",flex:"var(--unstable_ListItem-flex, none)",fontSize:"inherit",lineHeight:"inherit",minInlineSize:0,[e.focus.selector]:(0,n.Z)({},e.focus.default,{zIndex:1})},null==(i=e.variants[t.variant])?void 0:i[t.color],{[`.${s.root} > &`]:{"--unstable_ListItem-flex":"1 0 0%"},[`&.${a.selected}`]:(0,n.Z)({},null==(r=e.variants[`${t.variant}Active`])?void 0:r[t.color],{"--Icon-color":"currentColor"}),[`&:not(.${a.selected}, [aria-selected="true"])`]:{"&:hover":null==(o=e.variants[`${t.variant}Hover`])?void 0:o[t.color],"&:active":null==(l=e.variants[`${t.variant}Active`])?void 0:l[t.color]},[`&.${a.disabled}`]:(0,n.Z)({},null==(h=e.variants[`${t.variant}Disabled`])?void 0:h[t.color])})});(0,r.Z)(l,{name:"JoyListItemButton",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>(0,n.Z)({},!e.row&&{[`&.${a.selected}`]:{fontWeight:t.vars.fontWeight.md}}))},57814:function(e,t,i){"use strict";i.d(t,{Z:function(){return R}});var n=i(87462),r=i(63366),o=i(67294),s=i(94780),a=i(92996),l=i(33703),h=i(43069),u=i(14072),d=i(30220),c=i(39984),g=i(74312),p=i(20407),f=i(78653),m=i(55907),v=i(26821);function E(e){return(0,v.d6)("MuiOption",e)}let _=(0,v.sI)("MuiOption",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","highlighted","variantPlain","variantSoft","variantOutlined","variantSolid"]);var C=i(40780),S=i(85893);let y=["component","children","disabled","value","label","variant","color","slots","slotProps"],T=e=>{let{disabled:t,highlighted:i,selected:n}=e;return(0,s.Z)({root:["root",t&&"disabled",i&&"highlighted",n&&"selected"]},E,{})},b=(0,g.Z)(c.r,{name:"JoyOption",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i;let n=null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color];return{[`&.${_.highlighted}:not([aria-selected="true"])`]:{backgroundColor:null==n?void 0:n.backgroundColor}}}),A=o.forwardRef(function(e,t){var i;let s=(0,p.Z)({props:e,name:"JoyOption"}),{component:c="li",children:g,disabled:v=!1,value:E,label:_,variant:A="plain",color:R="neutral",slots:L={},slotProps:N={}}=s,I=(0,r.Z)(s,y),w=o.useContext(C.Z),{variant:O=A,color:x=R}=(0,m.yP)(e.variant,e.color),D=o.useRef(null),M=(0,l.Z)(D,t),k=null!=_?_:"string"==typeof g?g:null==(i=D.current)?void 0:i.innerText,{getRootProps:P,selected:F,highlighted:B,index:U}=function(e){let{value:t,label:i,disabled:r,rootRef:s,id:d}=e,{getRootProps:c,rootRef:g,highlighted:p,selected:f}=(0,h.J)({item:t}),m=(0,a.Z)(d),v=o.useRef(null),E=o.useMemo(()=>({disabled:r,label:i,value:t,ref:v,id:m}),[r,i,t,m]),{index:_}=(0,u.B)(t,E),C=(0,l.Z)(s,v,g);return{getRootProps:(e={})=>(0,n.Z)({},e,c(e),{id:m,ref:C,role:"option","aria-selected":f}),highlighted:p,index:_,selected:f,rootRef:C}}({disabled:v,label:k,value:E,rootRef:M}),{getColor:H}=(0,f.VT)(O),V=H(e.color,x),W=(0,n.Z)({},s,{disabled:v,selected:F,highlighted:B,index:U,component:c,variant:O,color:V,row:w}),G=T(W),z=(0,n.Z)({},I,{component:c,slots:L,slotProps:N}),[Y,K]=(0,d.Z)("root",{ref:t,getSlotProps:P,elementType:b,externalForwardedProps:z,className:G.root,ownerState:W});return(0,S.jsx)(Y,(0,n.Z)({},K,{children:g}))});var R=A},99056:function(e,t,i){"use strict";i.d(t,{Z:function(){return ea}});var n,r=i(63366),o=i(87462),s=i(67294),a=i(90512),l=i(14142),h=i(33703),u=i(53406),d=i(92996),c=i(73546),g=i(70758);let p={buttonClick:"buttonClick"};var f=i(96592);let m=e=>{let{label:t,value:i}=e;return"string"==typeof t?t:"string"==typeof i?i:String(e)};var v=i(12247),E=i(7333),_=i(22644);function C(e,t){var i,n,r;let{open:s}=e,{context:{selectionMode:a}}=t;if(t.type===p.buttonClick){let n=null!=(i=e.selectedValues[0])?i:(0,E.Rl)(null,"start",t.context);return(0,o.Z)({},e,{open:!s,highlightedValue:s?null:n})}let l=(0,E.R$)(e,t);switch(t.type){case _.F.keyDown:if(e.open){if("Escape"===t.event.key||"single"===a&&("Enter"===t.event.key||" "===t.event.key))return(0,o.Z)({},l,{open:!1})}else{if("Enter"===t.event.key||" "===t.event.key||"ArrowDown"===t.event.key)return(0,o.Z)({},e,{open:!0,highlightedValue:null!=(n=e.selectedValues[0])?n:(0,E.Rl)(null,"start",t.context)});if("ArrowUp"===t.event.key)return(0,o.Z)({},e,{open:!0,highlightedValue:null!=(r=e.selectedValues[0])?r:(0,E.Rl)(null,"end",t.context)})}break;case _.F.itemClick:if("single"===a)return(0,o.Z)({},l,{open:!1});break;case _.F.blur:return(0,o.Z)({},l,{open:!1})}return l}var S=i(2900);let y={clip:"rect(1px, 1px, 1px, 1px)",clipPath:"inset(50%)",height:"1px",width:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",left:"50%",bottom:0},T=()=>{};function b(e){return Array.isArray(e)?0===e.length?"":JSON.stringify(e.map(e=>e.value)):(null==e?void 0:e.value)==null?"":"string"==typeof e.value||"number"==typeof e.value?e.value:JSON.stringify(e.value)}function A(e){e.preventDefault()}var R=i(26558),L=i(85893);function N(e){let{value:t,children:i}=e,{dispatch:n,getItemIndex:r,getItemState:o,registerHighlightChangeHandler:a,registerSelectionChangeHandler:l,registerItem:h,totalSubitemCount:u}=t,d=s.useMemo(()=>({dispatch:n,getItemState:o,getItemIndex:r,registerHighlightChangeHandler:a,registerSelectionChangeHandler:l}),[n,r,o,a,l]),c=s.useMemo(()=>({getItemIndex:r,registerItem:h,totalSubitemCount:u}),[h,r,u]);return(0,L.jsx)(v.s.Provider,{value:c,children:(0,L.jsx)(R.Z.Provider,{value:d,children:i})})}var I=i(94780),w=i(50984),O=i(3419),x=i(43614),D=i(74312),M=i(20407),k=i(30220),P=i(26821);function F(e){return(0,P.d6)("MuiSvgIcon",e)}(0,P.sI)("MuiSvgIcon",["root","colorInherit","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","fontSizeInherit","fontSizeXs","fontSizeSm","fontSizeMd","fontSizeLg","fontSizeXl","fontSizeXl2","fontSizeXl3","fontSizeXl4","sizeSm","sizeMd","sizeLg"]);let B=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox","size","slots","slotProps"],U=e=>{let{color:t,size:i,fontSize:n}=e,r={root:["root",t&&"inherit"!==t&&`color${(0,l.Z)(t)}`,i&&`size${(0,l.Z)(i)}`,n&&`fontSize${(0,l.Z)(n)}`]};return(0,I.Z)(r,F,{})},H={sm:"xl",md:"xl2",lg:"xl3"},V=(0,D.Z)("svg",{name:"JoySvgIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i;return(0,o.Z)({},t.instanceSize&&{"--Icon-fontSize":e.vars.fontSize[H[t.instanceSize]]},t.instanceFontSize&&"inherit"!==t.instanceFontSize&&{"--Icon-fontSize":e.vars.fontSize[t.instanceFontSize]},{userSelect:"none",margin:"var(--Icon-margin)",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,fontSize:`var(--Icon-fontSize, ${e.vars.fontSize[H[t.size]]||"unset"})`},t.fontSize&&"inherit"!==t.fontSize&&{fontSize:`var(--Icon-fontSize, ${e.fontSize[t.fontSize]})`},!t.htmlColor&&(0,o.Z)({color:`var(--Icon-color, ${e.vars.palette.text.icon})`},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"context"!==t.color&&e.vars.palette[t.color]&&{color:`rgba(${null==(i=e.vars.palette[t.color])?void 0:i.mainChannel} / 1)`}))}),W=s.forwardRef(function(e,t){let i=(0,M.Z)({props:e,name:"JoySvgIcon"}),{children:n,className:l,color:h,component:u="svg",fontSize:d,htmlColor:c,inheritViewBox:g=!1,titleAccess:p,viewBox:f="0 0 24 24",size:m="md",slots:v={},slotProps:E={}}=i,_=(0,r.Z)(i,B),C=s.isValidElement(n)&&"svg"===n.type,S=(0,o.Z)({},i,{color:h,component:u,size:m,instanceSize:e.size,fontSize:d,instanceFontSize:e.fontSize,inheritViewBox:g,viewBox:f,hasSvgAsChild:C}),y=U(S),T=(0,o.Z)({},_,{component:u,slots:v,slotProps:E}),[b,A]=(0,k.Z)("root",{ref:t,className:(0,a.Z)(y.root,l),elementType:V,externalForwardedProps:T,ownerState:S,additionalProps:(0,o.Z)({color:c,focusable:!1},p&&{role:"img"},!p&&{"aria-hidden":!0},!g&&{viewBox:f},C&&n.props)});return(0,L.jsxs)(b,(0,o.Z)({},A,{children:[C?n.props.children:n,p?(0,L.jsx)("title",{children:p}):null]}))});var G=function(e,t){function i(i,n){return(0,L.jsx)(W,(0,o.Z)({"data-testid":`${t}Icon`,ref:n},i,{children:e}))}return i.muiName=W.muiName,s.memo(s.forwardRef(i))}((0,L.jsx)("path",{d:"m12 5.83 2.46 2.46c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 3.7a.9959.9959 0 0 0-1.41 0L8.12 6.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 5.83zm0 12.34-2.46-2.46a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l3.17 3.18c.39.39 1.02.39 1.41 0l3.17-3.17c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L12 18.17z"}),"Unfold"),z=i(78653),Y=i(58859);function K(e){return(0,P.d6)("MuiSelect",e)}let $=(0,P.sI)("MuiSelect",["root","button","indicator","startDecorator","endDecorator","popper","listbox","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","focusVisible","disabled","expanded"]);var X=i(76043),j=i(55907);let q=["action","autoFocus","children","defaultValue","defaultListboxOpen","disabled","getSerializedValue","placeholder","listboxId","listboxOpen","onChange","onListboxOpenChange","onClose","renderValue","required","value","size","variant","color","startDecorator","endDecorator","indicator","aria-describedby","aria-label","aria-labelledby","id","name","slots","slotProps"];function Z(e){var t;return null!=(t=null==e?void 0:e.label)?t:""}let J=[{name:"offset",options:{offset:[0,4]}},{name:"equalWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`}}],Q=e=>{let{color:t,disabled:i,focusVisible:n,size:r,variant:o,open:s}=e,a={root:["root",i&&"disabled",n&&"focusVisible",s&&"expanded",o&&`variant${(0,l.Z)(o)}`,t&&`color${(0,l.Z)(t)}`,r&&`size${(0,l.Z)(r)}`],button:["button"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],indicator:["indicator",s&&"expanded"],listbox:["listbox",s&&"expanded",i&&"disabled"]};return(0,I.Z)(a,K,{})},ee=(0,D.Z)("div",{name:"JoySelect",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n,r,s;let a=null==(i=e.variants[`${t.variant}`])?void 0:i[t.color],{borderRadius:l}=(0,Y.V)({theme:e,ownerState:t},["borderRadius"]);return[(0,o.Z)({"--Select-radius":e.vars.radius.sm,"--Select-gap":"0.5rem","--Select-placeholderOpacity":.64,"--Select-decoratorColor":e.vars.palette.text.icon,"--Select-focusedThickness":e.vars.focus.thickness},"context"===t.color?{"--Select-focusedHighlight":e.vars.palette.focusVisible}:{"--Select-focusedHighlight":null==(n=e.vars.palette["neutral"===t.color?"primary":t.color])?void 0:n[500]},{"--Select-indicatorColor":null!=a&&a.backgroundColor?null==a?void 0:a.color:e.vars.palette.text.tertiary},"sm"===t.size&&{"--Select-minHeight":"2rem","--Select-paddingInline":"0.5rem","--Select-decoratorChildHeight":"min(1.5rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl},"md"===t.size&&{"--Select-minHeight":"2.5rem","--Select-paddingInline":"0.75rem","--Select-decoratorChildHeight":"min(2rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},"lg"===t.size&&{"--Select-minHeight":"3rem","--Select-paddingInline":"1rem","--Select-decoratorChildHeight":"min(2.375rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},{"--Select-decoratorChildOffset":"min(calc(var(--Select-paddingInline) - (var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2), var(--Select-paddingInline))","--_Select-paddingBlock":"max((var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2, 0px)","--Select-decoratorChildRadius":"max(var(--Select-radius) - var(--variant-borderWidth, 0px) - var(--_Select-paddingBlock), min(var(--_Select-paddingBlock) + var(--variant-borderWidth, 0px), var(--Select-radius) / 2))","--Button-minHeight":"var(--Select-decoratorChildHeight)","--IconButton-size":"var(--Select-decoratorChildHeight)","--Button-radius":"var(--Select-decoratorChildRadius)","--IconButton-radius":"var(--Select-decoratorChildRadius)",boxSizing:"border-box"},"plain"!==t.variant&&{boxShadow:e.shadow.xs},{minWidth:0,minHeight:"var(--Select-minHeight)",position:"relative",display:"flex",alignItems:"center",borderRadius:"var(--Select-radius)",cursor:"pointer"},!(null!=a&&a.backgroundColor)&&{backgroundColor:e.vars.palette.background.surface},t.size&&{paddingBlock:({sm:2,md:3,lg:4})[t.size]},{paddingInline:"var(--Select-paddingInline)"},e.typography[`body-${t.size}`],a,{"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)"},[`&.${$.focusVisible}`]:{"--Select-indicatorColor":null==a?void 0:a.color,"&::before":{boxShadow:"inset 0 0 0 var(--Select-focusedThickness) var(--Select-focusedHighlight)"}},[`&.${$.disabled}`]:{"--Select-indicatorColor":"inherit"}}),{"&:hover":null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color],[`&.${$.disabled}`]:null==(s=e.variants[`${t.variant}Disabled`])?void 0:s[t.color]},void 0!==l&&{"--Select-radius":l}]}),et=(0,D.Z)("button",{name:"JoySelect",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>(0,o.Z)({border:0,outline:0,background:"none",padding:0,fontSize:"inherit",color:"inherit",alignSelf:"stretch",display:"flex",alignItems:"center",flex:1,fontFamily:"inherit",cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden"},(null===e.value||void 0===e.value)&&{opacity:"var(--Select-placeholderOpacity)"},{"&::before":{content:'""',display:"block",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))",right:"calc(-1 * var(--variant-borderWidth, 0px))",bottom:"calc(-1 * var(--variant-borderWidth, 0px))",borderRadius:"var(--Select-radius)"}})),ei=(0,D.Z)(w.C,{name:"JoySelect",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e,ownerState:t})=>{var i;let n="context"===t.color?void 0:null==(i=e.variants[t.variant])?void 0:i[t.color];return(0,o.Z)({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":(null==n?void 0:n.backgroundColor)||(null==n?void 0:n.background)||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},O.M,{minWidth:"max-content",maxHeight:"44vh",overflow:"auto",outline:0,boxShadow:e.shadow.md,borderRadius:`var(--List-radius, ${e.vars.radius.sm})`,zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`},!(null!=n&&n.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup})}),en=(0,D.Z)("span",{name:"JoySelect",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Button-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--IconButton-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Select-paddingInline) / -4)",display:"inherit",alignItems:"center",color:"var(--Select-decoratorColor)",marginInlineEnd:"var(--Select-gap)"}),er=(0,D.Z)("span",{name:"JoySelect",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Button-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--IconButton-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Select-paddingInline) / -4) 0 0",display:"inherit",alignItems:"center",color:"var(--Select-decoratorColor)",marginInlineStart:"var(--Select-gap)"}),eo=(0,D.Z)("span",{name:"JoySelect",slot:"Indicator"})(({ownerState:e,theme:t})=>(0,o.Z)({},"sm"===e.size&&{"--Icon-fontSize":t.vars.fontSize.lg},"md"===e.size&&{"--Icon-fontSize":t.vars.fontSize.xl},"lg"===e.size&&{"--Icon-fontSize":t.vars.fontSize.xl2},{"--Icon-color":"neutral"!==e.color||"solid"===e.variant?"currentColor":t.vars.palette.text.icon,display:"inherit",alignItems:"center",marginInlineStart:"var(--Select-gap)",marginInlineEnd:"calc(var(--Select-paddingInline) / -4)",[`.${$.endDecorator} + &`]:{marginInlineStart:"calc(var(--Select-gap) / 2)"},[`&.${$.expanded}, .${$.disabled} > &`]:{"--Icon-color":"currentColor"}})),es=s.forwardRef(function(e,t){var i,l,E,_,R,I,w;let D=(0,M.Z)({props:e,name:"JoySelect"}),{action:P,autoFocus:F,children:B,defaultValue:U,defaultListboxOpen:H=!1,disabled:V,getSerializedValue:W,placeholder:Y,listboxId:K,listboxOpen:es,onChange:ea,onListboxOpenChange:el,onClose:eh,renderValue:eu,required:ed=!1,value:ec,size:eg="md",variant:ep="outlined",color:ef="neutral",startDecorator:em,endDecorator:ev,indicator:eE=n||(n=(0,L.jsx)(G,{})),"aria-describedby":e_,"aria-label":eC,"aria-labelledby":eS,id:ey,name:eT,slots:eb={},slotProps:eA={}}=D,eR=(0,r.Z)(D,q),eL=s.useContext(X.Z),eN=null!=(i=null!=(l=e.disabled)?l:null==eL?void 0:eL.disabled)?i:V,eI=null!=(E=null!=(_=e.size)?_:null==eL?void 0:eL.size)?E:eg,{getColor:ew}=(0,z.VT)(ep),eO=ew(e.color,null!=eL&&eL.error?"danger":null!=(R=null==eL?void 0:eL.color)?R:ef),ex=null!=eu?eu:Z,[eD,eM]=s.useState(null),ek=s.useRef(null),eP=s.useRef(null),eF=s.useRef(null),eB=(0,h.Z)(t,ek);s.useImperativeHandle(P,()=>({focusVisible:()=>{var e;null==(e=eP.current)||e.focus()}}),[]),s.useEffect(()=>{eM(ek.current)},[]),s.useEffect(()=>{F&&eP.current.focus()},[F]);let eU=s.useCallback(e=>{null==el||el(e),e||null==eh||eh()},[eh,el]),{buttonActive:eH,buttonFocusVisible:eV,contextValue:eW,disabled:eG,getButtonProps:ez,getListboxProps:eY,getHiddenInputProps:eK,getOptionMetadata:e$,open:eX,value:ej}=function(e){let t,i,n;let{areOptionsEqual:r,buttonRef:a,defaultOpen:l=!1,defaultValue:u,disabled:E=!1,listboxId:_,listboxRef:R,multiple:L=!1,name:N,required:I,onChange:w,onHighlightChange:O,onOpenChange:x,open:D,options:M,getOptionAsString:k=m,getSerializedValue:P=b,value:F}=e,B=s.useRef(null),U=(0,h.Z)(a,B),H=s.useRef(null),V=(0,d.Z)(_);void 0===F&&void 0===u?t=[]:void 0!==u&&(t=L?u:null==u?[]:[u]);let W=s.useMemo(()=>{if(void 0!==F)return L?F:null==F?[]:[F]},[F,L]),{subitems:G,contextValue:z}=(0,v.Y)(),Y=s.useMemo(()=>null!=M?new Map(M.map((e,t)=>[e.value,{value:e.value,label:e.label,disabled:e.disabled,ref:s.createRef(),id:`${V}_${t}`}])):G,[M,G,V]),K=(0,h.Z)(R,H),{getRootProps:$,active:X,focusVisible:j,rootRef:q}=(0,g.U)({disabled:E,rootRef:U}),Z=s.useMemo(()=>Array.from(Y.keys()),[Y]),J=s.useCallback(e=>{if(void 0!==r){let t=Z.find(t=>r(t,e));return Y.get(t)}return Y.get(e)},[Y,r,Z]),Q=s.useCallback(e=>{var t;let i=J(e);return null!=(t=null==i?void 0:i.disabled)&&t},[J]),ee=s.useCallback(e=>{let t=J(e);return t?k(t):""},[J,k]),et=s.useMemo(()=>({selectedValues:W,open:D}),[W,D]),ei=s.useCallback(e=>{var t;return null==(t=Y.get(e))?void 0:t.id},[Y]),en=s.useCallback((e,t)=>{if(L)null==w||w(e,t);else{var i;null==w||w(e,null!=(i=t[0])?i:null)}},[L,w]),er=s.useCallback((e,t)=>{null==O||O(e,null!=t?t:null)},[O]),eo=s.useCallback((e,t,i)=>{if("open"===t&&(null==x||x(i),!1===i&&(null==e?void 0:e.type)!=="blur")){var n;null==(n=B.current)||n.focus()}},[x]),es={getInitialState:()=>{var e;return{highlightedValue:null,selectedValues:null!=(e=t)?e:[],open:l}},getItemId:ei,controlledProps:et,itemComparer:r,isItemDisabled:Q,rootRef:q,onChange:en,onHighlightChange:er,onStateChange:eo,reducerActionContext:s.useMemo(()=>({multiple:L}),[L]),items:Z,getItemAsString:ee,selectionMode:L?"multiple":"single",stateReducer:C},{dispatch:ea,getRootProps:el,contextValue:eh,state:{open:eu,highlightedValue:ed,selectedValues:ec},rootRef:eg}=(0,f.s)(es),ep=e=>t=>{var i;if(null==e||null==(i=e.onMouseDown)||i.call(e,t),!t.defaultMuiPrevented){let e={type:p.buttonClick,event:t};ea(e)}};(0,c.Z)(()=>{if(null!=ed){var e;let t=null==(e=J(ed))?void 0:e.ref;if(!H.current||!(null!=t&&t.current))return;let i=H.current.getBoundingClientRect(),n=t.current.getBoundingClientRect();n.topi.bottom&&(H.current.scrollTop+=n.bottom-i.bottom)}},[ed,J]);let ef=s.useCallback(e=>J(e),[J]),em=(e={})=>(0,o.Z)({},e,{onMouseDown:ep(e),ref:eg,role:"combobox","aria-expanded":eu,"aria-controls":V});s.useDebugValue({selectedOptions:ec,highlightedOption:ed,open:eu});let ev=s.useMemo(()=>(0,o.Z)({},eh,z),[eh,z]);if(i=e.multiple?ec:ec.length>0?ec[0]:null,L)n=i.map(e=>ef(e)).filter(e=>void 0!==e);else{var eE;n=null!=(eE=ef(i))?eE:null}return{buttonActive:X,buttonFocusVisible:j,buttonRef:q,contextValue:ev,disabled:E,dispatch:ea,getButtonProps:(e={})=>{let t=(0,S.f)($,el),i=(0,S.f)(t,em);return i(e)},getHiddenInputProps:(e={})=>(0,o.Z)({name:N,tabIndex:-1,"aria-hidden":!0,required:!!I||void 0,value:P(n),onChange:T,style:y},e),getListboxProps:(e={})=>(0,o.Z)({},e,{id:V,role:"listbox","aria-multiselectable":L?"true":void 0,ref:K,onMouseDown:A}),getOptionMetadata:ef,listboxRef:eg,open:eu,options:Z,value:i,highlightedOption:ed}}({buttonRef:eP,defaultOpen:H,defaultValue:U,disabled:eN,getSerializedValue:W,listboxId:K,multiple:!1,name:eT,required:ed,onChange:ea,onOpenChange:eU,open:es,value:ec}),eq=(0,o.Z)({},D,{active:eH,defaultListboxOpen:H,disabled:eG,focusVisible:eV,open:eX,renderValue:ex,value:ej,size:eI,variant:ep,color:eO}),eZ=Q(eq),eJ=(0,o.Z)({},eR,{slots:eb,slotProps:eA}),eQ=s.useMemo(()=>{var e;return null!=(e=e$(ej))?e:null},[e$,ej]),[e0,e1]=(0,k.Z)("root",{ref:eB,className:eZ.root,elementType:ee,externalForwardedProps:eJ,ownerState:eq}),[e2,e4]=(0,k.Z)("button",{additionalProps:{"aria-describedby":null!=e_?e_:null==eL?void 0:eL["aria-describedby"],"aria-label":eC,"aria-labelledby":null!=eS?eS:null==eL?void 0:eL.labelId,"aria-required":ed?"true":void 0,id:null!=ey?ey:null==eL?void 0:eL.htmlFor,name:eT},className:eZ.button,elementType:et,externalForwardedProps:eJ,getSlotProps:ez,ownerState:eq}),[e5,e6]=(0,k.Z)("listbox",{additionalProps:{ref:eF,anchorEl:eD,open:eX,placement:"bottom",keepMounted:!0},className:eZ.listbox,elementType:ei,externalForwardedProps:eJ,getSlotProps:eY,ownerState:(0,o.Z)({},eq,{nesting:!1,row:!1,wrap:!1}),getSlotOwnerState:e=>({size:e.size||eI,variant:e.variant||ep,color:e.color||(e.disablePortal?eO:ef),disableColorInversion:!e.disablePortal})}),[e3,e9]=(0,k.Z)("startDecorator",{className:eZ.startDecorator,elementType:en,externalForwardedProps:eJ,ownerState:eq}),[e7,e8]=(0,k.Z)("endDecorator",{className:eZ.endDecorator,elementType:er,externalForwardedProps:eJ,ownerState:eq}),[te,tt]=(0,k.Z)("indicator",{className:eZ.indicator,elementType:eo,externalForwardedProps:eJ,ownerState:eq}),ti=s.useMemo(()=>[...J,...e6.modifiers||[]],[e6.modifiers]),tn=null;return eD&&(tn=(0,L.jsx)(e5,(0,o.Z)({},e6,{className:(0,a.Z)(e6.className,(null==(I=e6.ownerState)?void 0:I.color)==="context"&&$.colorContext),modifiers:ti},!(null!=(w=D.slots)&&w.listbox)&&{as:u.r,slots:{root:e6.as||"ul"}},{children:(0,L.jsx)(N,{value:eW,children:(0,L.jsx)(j.Yb,{variant:ep,color:ef,children:(0,L.jsx)(x.Z.Provider,{value:"select",children:(0,L.jsx)(O.Z,{nested:!0,children:B})})})})})),e6.disablePortal||(tn=(0,L.jsx)(z.ZP.Provider,{value:void 0,children:tn}))),(0,L.jsxs)(s.Fragment,{children:[(0,L.jsxs)(e0,(0,o.Z)({},e1,{children:[em&&(0,L.jsx)(e3,(0,o.Z)({},e9,{children:em})),(0,L.jsx)(e2,(0,o.Z)({},e4,{children:eQ?ex(eQ):Y})),ev&&(0,L.jsx)(e7,(0,o.Z)({},e8,{children:ev})),eE&&(0,L.jsx)(te,(0,o.Z)({},tt,{children:eE})),(0,L.jsx)("input",(0,o.Z)({},eK()))]})),tn]})});var ea=es},61685:function(e,t,i){"use strict";i.d(t,{Z:function(){return y}});var n=i(63366),r=i(87462),o=i(67294),s=i(90512),a=i(14142),l=i(94780),h=i(20407),u=i(78653),d=i(74312),c=i(26821);function g(e){return(0,c.d6)("MuiTable",e)}(0,c.sI)("MuiTable",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","stickyHeader","stickyFooter","noWrap","hoverRow","borderAxisNone","borderAxisX","borderAxisXBetween","borderAxisY","borderAxisYBetween","borderAxisBoth","borderAxisBothBetween"]);var p=i(40911),f=i(30220),m=i(85893);let v=["className","component","children","borderAxis","hoverRow","noWrap","size","variant","color","stripe","stickyHeader","stickyFooter","slots","slotProps"],E=e=>{let{size:t,variant:i,color:n,borderAxis:r,stickyHeader:o,stickyFooter:s,noWrap:h,hoverRow:u}=e,d={root:["root",o&&"stickyHeader",s&&"stickyFooter",h&&"noWrap",u&&"hoverRow",r&&`borderAxis${(0,a.Z)(r)}`,i&&`variant${(0,a.Z)(i)}`,n&&`color${(0,a.Z)(n)}`,t&&`size${(0,a.Z)(t)}`]};return(0,l.Z)(d,g,{})},_={getColumnExceptFirst:()=>"& tr > *:not(:first-of-type), & tr > th + td, & tr > td + th",getCell:()=>"& th, & td",getHeadCell:()=>"& th",getHeaderCell:()=>"& thead th",getHeaderCellOfRow:e=>`& thead tr:nth-of-type(${e}) th`,getBottomHeaderCell:()=>"& thead th:not([colspan])",getHeaderNestedFirstColumn:()=>"& thead tr:not(:first-of-type) th:not([colspan]):first-of-type",getDataCell:()=>"& td",getDataCellExceptLastRow:()=>"& tr:not(:last-of-type) > td",getBodyCellExceptLastRow(){return`${this.getDataCellExceptLastRow()}, & tr:not(:last-of-type) > th[scope="row"]`},getBodyCellOfRow:e=>"number"==typeof e&&e<0?`& tbody tr:nth-last-of-type(${Math.abs(e)}) td, & tbody tr:nth-last-of-type(${Math.abs(e)}) th[scope="row"]`:`& tbody tr:nth-of-type(${e}) td, & tbody tr:nth-of-type(${e}) th[scope="row"]`,getBodyRow:e=>void 0===e?"& tbody tr":`& tbody tr:nth-of-type(${e})`,getFooterCell:()=>"& tfoot th, & tfoot td",getFooterFirstRowCell:()=>"& tfoot tr:not(:last-of-type) th, & tfoot tr:not(:last-of-type) td"},C=(0,d.Z)("table",{name:"JoyTable",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n,o,s,a,l,h;let u=null==(i=e.variants[t.variant])?void 0:i[t.color];return[(0,r.Z)({"--Table-headerUnderlineThickness":"2px","--TableCell-borderColor":null!=(n=null==u?void 0:u.borderColor)?n:e.vars.palette.divider,"--TableCell-headBackground":`var(--Sheet-background, ${e.vars.palette.background.surface})`},"sm"===t.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 32px)","--TableCell-paddingX":"0.25rem","--TableCell-paddingY":"0.25rem"},"md"===t.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 40px)","--TableCell-paddingX":"0.5rem","--TableCell-paddingY":"0.375rem"},"lg"===t.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 48px)","--TableCell-paddingX":"0.75rem","--TableCell-paddingY":"0.5rem"},{tableLayout:"fixed",width:"100%",borderSpacing:"0px",borderCollapse:"separate",borderRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},e.typography[`body-${({sm:"xs",md:"sm",lg:"md"})[t.size]}`],null==(o=e.variants[t.variant])?void 0:o[t.color],{"& caption":{color:e.vars.palette.text.tertiary,padding:"calc(2 * var(--TableCell-paddingY)) var(--TableCell-paddingX)"},[_.getDataCell()]:(0,r.Z)({padding:"var(--TableCell-paddingY) var(--TableCell-paddingX)",height:"var(--unstable_TableCell-height)",borderColor:"var(--TableCell-borderColor)",backgroundColor:"var(--TableCell-dataBackground)"},t.noWrap&&{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}),[_.getHeadCell()]:{textAlign:"left",padding:"var(--TableCell-paddingY) var(--TableCell-paddingX)",backgroundColor:"var(--TableCell-headBackground)",height:"var(--unstable_TableCell-height)",fontWeight:e.vars.fontWeight.lg,borderColor:"var(--TableCell-borderColor)",color:e.vars.palette.text.secondary,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},[_.getHeaderCell()]:{verticalAlign:"bottom","&:first-of-type":{borderTopLeftRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},"&:last-of-type":{borderTopRightRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"}},"& tfoot tr > *":{backgroundColor:`var(--TableCell-footBackground, ${e.vars.palette.background.level1})`,"&:first-of-type":{borderBottomLeftRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},"&:last-of-type":{borderBottomRightRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"}}}),((null==(s=t.borderAxis)?void 0:s.startsWith("x"))||(null==(a=t.borderAxis)?void 0:a.startsWith("both")))&&{[_.getHeaderCell()]:{borderBottomWidth:1,borderBottomStyle:"solid"},[_.getBottomHeaderCell()]:{borderBottomWidth:"var(--Table-headerUnderlineThickness)",borderBottomStyle:"solid"},[_.getBodyCellExceptLastRow()]:{borderBottomWidth:1,borderBottomStyle:"solid"},[_.getFooterCell()]:{borderTopWidth:1,borderTopStyle:"solid"}},((null==(l=t.borderAxis)?void 0:l.startsWith("y"))||(null==(h=t.borderAxis)?void 0:h.startsWith("both")))&&{[`${_.getColumnExceptFirst()}, ${_.getHeaderNestedFirstColumn()}`]:{borderLeftWidth:1,borderLeftStyle:"solid"}},("x"===t.borderAxis||"both"===t.borderAxis)&&{[_.getHeaderCellOfRow(1)]:{borderTopWidth:1,borderTopStyle:"solid"},[_.getBodyCellOfRow(-1)]:{borderBottomWidth:1,borderBottomStyle:"solid"},[_.getFooterCell()]:{borderBottomWidth:1,borderBottomStyle:"solid"}},("y"===t.borderAxis||"both"===t.borderAxis)&&{"& tr > *:first-of-type":{borderLeftWidth:1,borderLeftStyle:"solid"},"& tr > *:last-of-type:not(:first-of-type)":{borderRightWidth:1,borderRightStyle:"solid"}},t.stripe&&{[_.getBodyRow(t.stripe)]:{background:`var(--TableRow-stripeBackground, ${e.vars.palette.background.level2})`,color:e.vars.palette.text.primary}},t.hoverRow&&{[_.getBodyRow()]:{"&:hover":{background:`var(--TableRow-hoverBackground, ${e.vars.palette.background.level3})`}}},t.stickyHeader&&{[_.getHeaderCell()]:{position:"sticky",top:0,zIndex:e.vars.zIndex.table},[_.getHeaderCellOfRow(2)]:{top:"var(--unstable_TableCell-height)"}},t.stickyFooter&&{[_.getFooterCell()]:{position:"sticky",bottom:0,zIndex:e.vars.zIndex.table,color:e.vars.palette.text.secondary,fontWeight:e.vars.fontWeight.lg},[_.getFooterFirstRowCell()]:{bottom:"var(--unstable_TableCell-height)"}}]}),S=o.forwardRef(function(e,t){let i=(0,h.Z)({props:e,name:"JoyTable"}),{className:o,component:a,children:l,borderAxis:d="xBetween",hoverRow:c=!1,noWrap:g=!1,size:_="md",variant:S="plain",color:y="neutral",stripe:T,stickyHeader:b=!1,stickyFooter:A=!1,slots:R={},slotProps:L={}}=i,N=(0,n.Z)(i,v),{getColor:I}=(0,u.VT)(S),w=I(e.color,y),O=(0,r.Z)({},i,{borderAxis:d,hoverRow:c,noWrap:g,component:a,size:_,color:w,variant:S,stripe:T,stickyHeader:b,stickyFooter:A}),x=E(O),D=(0,r.Z)({},N,{component:a,slots:R,slotProps:L}),[M,k]=(0,f.Z)("root",{ref:t,className:(0,s.Z)(x.root,o),elementType:C,externalForwardedProps:D,ownerState:O});return(0,m.jsx)(p.eu.Provider,{value:!0,children:(0,m.jsx)(M,(0,r.Z)({},k,{children:l}))})});var y=S},40911:function(e,t,i){"use strict";i.d(t,{eu:function(){return C},ZP:function(){return L}});var n=i(63366),r=i(87462),o=i(67294),s=i(14142),a=i(18719),l=i(39707),h=i(94780),u=i(74312),d=i(20407),c=i(78653),g=i(30220),p=i(26821);function f(e){return(0,p.d6)("MuiTypography",e)}(0,p.sI)("MuiTypography",["root","h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","noWrap","gutterBottom","startDecorator","endDecorator","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var m=i(85893);let v=["color","textColor"],E=["component","gutterBottom","noWrap","level","levelMapping","children","endDecorator","startDecorator","variant","slots","slotProps"],_=o.createContext(!1),C=o.createContext(!1),S=e=>{let{gutterBottom:t,noWrap:i,level:n,color:r,variant:o}=e,a={root:["root",n,t&&"gutterBottom",i&&"noWrap",r&&`color${(0,s.Z)(r)}`,o&&`variant${(0,s.Z)(o)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,h.Z)(a,f,{})},y=(0,u.Z)("span",{name:"JoyTypography",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),T=(0,u.Z)("span",{name:"JoyTypography",slot:"endDecorator",overridesResolver:(e,t)=>t.endDecorator})({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),b=(0,u.Z)("span",{name:"JoyTypography",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n,o,s,a;let l="inherit"!==t.level?null==(i=e.typography[t.level])?void 0:i.lineHeight:"1";return(0,r.Z)({"--Icon-fontSize":`calc(1em * ${l})`},t.color&&{"--Icon-color":"currentColor"},{margin:"var(--Typography-margin, 0px)"},t.nesting?{display:"inline"}:(0,r.Z)({display:"block"},t.unstable_hasSkeleton&&{position:"relative"}),(t.startDecorator||t.endDecorator)&&(0,r.Z)({display:"flex",alignItems:"center"},t.nesting&&(0,r.Z)({display:"inline-flex"},t.startDecorator&&{verticalAlign:"bottom"})),t.level&&"inherit"!==t.level&&e.typography[t.level],{fontSize:`var(--Typography-fontSize, ${t.level&&"inherit"!==t.level&&null!=(n=null==(o=e.typography[t.level])?void 0:o.fontSize)?n:"inherit"})`},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.color&&"context"!==t.color&&{color:`rgba(${null==(s=e.vars.palette[t.color])?void 0:s.mainChannel} / 1)`},t.variant&&(0,r.Z)({borderRadius:e.vars.radius.xs,paddingBlock:"min(0.1em, 4px)",paddingInline:"0.25em"},!t.nesting&&{marginInline:"-0.25em"},null==(a=e.variants[t.variant])?void 0:a[t.color]))}),A={h1:"h1",h2:"h2",h3:"h3",h4:"h4","title-lg":"p","title-md":"p","title-sm":"p","body-lg":"p","body-md":"p","body-sm":"p","body-xs":"span",inherit:"p"},R=o.forwardRef(function(e,t){let i=(0,d.Z)({props:e,name:"JoyTypography"}),{color:s,textColor:h}=i,u=(0,n.Z)(i,v),p=o.useContext(_),f=o.useContext(C),R=(0,l.Z)((0,r.Z)({},u,{color:h})),{component:L,gutterBottom:N=!1,noWrap:I=!1,level:w="body-md",levelMapping:O=A,children:x,endDecorator:D,startDecorator:M,variant:k,slots:P={},slotProps:F={}}=R,B=(0,n.Z)(R,E),{getColor:U}=(0,c.VT)(k),H=U(e.color,k?null!=s?s:"neutral":s),V=p||f?e.level||"inherit":w,W=(0,a.Z)(x,["Skeleton"]),G=L||(p?"span":O[V]||A[V]||"span"),z=(0,r.Z)({},R,{level:V,component:G,color:H,gutterBottom:N,noWrap:I,nesting:p,variant:k,unstable_hasSkeleton:W}),Y=S(z),K=(0,r.Z)({},B,{component:G,slots:P,slotProps:F}),[$,X]=(0,g.Z)("root",{ref:t,className:Y.root,elementType:b,externalForwardedProps:K,ownerState:z}),[j,q]=(0,g.Z)("startDecorator",{className:Y.startDecorator,elementType:y,externalForwardedProps:K,ownerState:z}),[Z,J]=(0,g.Z)("endDecorator",{className:Y.endDecorator,elementType:T,externalForwardedProps:K,ownerState:z});return(0,m.jsx)(_.Provider,{value:!0,children:(0,m.jsxs)($,(0,r.Z)({},X,{children:[M&&(0,m.jsx)(j,(0,r.Z)({},q,{children:M})),W?o.cloneElement(x,{variant:x.props.variant||"inline"}):x,D&&(0,m.jsx)(Z,(0,r.Z)({},J,{children:D}))]}))})});R.muiName="Typography";var L=R},78653:function(e,t,i){"use strict";i.d(t,{VT:function(){return l},do:function(){return h}});var n=i(67294),r=i(38629),o=i(1812),s=i(85893);let a=n.createContext(void 0),l=e=>{let t=n.useContext(a);return{getColor:(i,n)=>t&&e&&t.includes(e)?i||"context":i||n}};function h({children:e,variant:t}){var i;let n=(0,r.F)();return(0,s.jsx)(a.Provider,{value:t?(null!=(i=n.colorInversionConfig)?i:o.Z.colorInversionConfig)[t]:void 0,children:e})}t.ZP=a},58859:function(e,t,i){"use strict";i.d(t,{V:function(){return r}});var n=i(87462);let r=({theme:e,ownerState:t},i)=>{let r={};return t.sx&&(function t(i){if("function"==typeof i){let n=i(e);t(n)}else Array.isArray(i)?i.forEach(e=>{"boolean"!=typeof e&&t(e)}):"object"==typeof i&&(r=(0,n.Z)({},r,i))}(t.sx),i.forEach(t=>{let i=r[t];if("string"==typeof i||"number"==typeof i){if("borderRadius"===t){if("number"==typeof i)r[t]=`${i}px`;else{var n;r[t]=(null==(n=e.vars)?void 0:n.radius[i])||i}}else -1!==["p","padding","m","margin"].indexOf(t)&&"number"==typeof i?r[t]=e.spacing(i):r[t]=i}else"function"==typeof i?r[t]=i(e):r[t]=void 0})),r}},74312:function(e,t,i){"use strict";var n=i(70182),r=i(1812),o=i(2548);let s=(0,n.ZP)({defaultTheme:r.Z,themeId:o.Z});t.Z=s},20407:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(39214),o=i(1812),s=i(2548);function a({props:e,name:t}){return(0,r.Z)({props:e,name:t,defaultTheme:(0,n.Z)({},o.Z,{components:{}}),themeId:s.Z})}},55907:function(e,t,i){"use strict";i.d(t,{Yb:function(){return a},yP:function(){return s}});var n=i(67294),r=i(85893);let o=n.createContext(void 0);function s(e,t){var i;let r,s;let a=n.useContext(o),[l,h]="string"==typeof a?a.split(":"):[],u=(i=l||void 0,r=h||void 0,s=i,"outlined"===i&&(r="neutral",s="plain"),"plain"===i&&(r="neutral"),{variant:s,color:r});return u.variant=e||u.variant,u.color=t||u.color,u}function a({children:e,color:t,variant:i}){return(0,r.jsx)(o.Provider,{value:`${i||""}:${t||""}`,children:e})}},30220:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var n=i(87462),r=i(63366),o=i(33703),s=i(71276),a=i(24407),l=i(10238),h=i(78653);let u=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],d=["component","slots","slotProps"],c=["component"],g=["disableColorInversion"];function p(e,t){let{className:i,elementType:p,ownerState:f,externalForwardedProps:m,getSlotOwnerState:v,internalForwardedProps:E}=t,_=(0,r.Z)(t,u),{component:C,slots:S={[e]:void 0},slotProps:y={[e]:void 0}}=m,T=(0,r.Z)(m,d),b=S[e]||p,A=(0,s.x)(y[e],f),R=(0,a.L)((0,n.Z)({className:i},_,{externalForwardedProps:"root"===e?T:void 0,externalSlotProps:A})),{props:{component:L},internalRef:N}=R,I=(0,r.Z)(R.props,c),w=(0,o.Z)(N,null==A?void 0:A.ref,t.ref),O=v?v(I):{},{disableColorInversion:x=!1}=O,D=(0,r.Z)(O,g),M=(0,n.Z)({},f,D),{getColor:k}=(0,h.VT)(M.variant);if("root"===e){var P;M.color=null!=(P=I.color)?P:f.color}else x||(M.color=k(I.color,M.color));let F="root"===e?L||C:L,B=(0,l.$)(b,(0,n.Z)({},"root"===e&&!C&&!S[e]&&E,"root"!==e&&!S[e]&&E,I,F&&{as:F},{ref:w}),M);return Object.keys(D).forEach(e=>{delete B[e]}),[b,B]}},39707:function(e,t,i){"use strict";i.d(t,{Z:function(){return h}});var n=i(87462),r=i(63366),o=i(59766),s=i(44920);let a=["sx"],l=e=>{var t,i;let n={systemProps:{},otherProps:{}},r=null!=(t=null==e||null==(i=e.theme)?void 0:i.unstable_sxConfig)?t:s.Z;return Object.keys(e).forEach(t=>{r[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n};function h(e){let t;let{sx:i}=e,s=(0,r.Z)(e,a),{systemProps:h,otherProps:u}=l(s);return t=Array.isArray(i)?[h,...i]:"function"==typeof i?(...e)=>{let t=i(...e);return(0,o.P)(t)?(0,n.Z)({},h,t):h}:(0,n.Z)({},h,i),(0,n.Z)({},u,{sx:t})}},2093:function(e,t,i){"use strict";var n=i(97582),r=i(67294),o=i(92770);t.Z=function(e,t){(0,r.useEffect)(function(){var t=e(),i=!1;return!function(){(0,n.mG)(this,void 0,void 0,function(){return(0,n.Jh)(this,function(e){switch(e.label){case 0:if(!(0,o.mf)(t[Symbol.asyncIterator]))return[3,4];e.label=1;case 1:return[4,t.next()];case 2:if(e.sent().done||i)return[3,3];return[3,1];case 3:return[3,6];case 4:return[4,t];case 5:e.sent(),e.label=6;case 6:return[2]}})})}(),function(){i=!0}},t)}},56645:function(e,t){!function(e){"use strict";function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=[],n=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return i}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e,t,i,n){e=e.filter(function(e,n){var r=t(e,n),o=i(e,n);return null!=r&&isFinite(r)&&null!=o&&isFinite(o)}),n&&e.sort(function(e,i){return t(e)-t(i)});for(var r,o,s,a=e.length,l=new Float64Array(a),h=new Float64Array(a),u=0,d=0,c=0;cn&&(e.splice(a+1,0,c),r=!0)}return r}(r)&&s<1e4;);return r}function a(e,t,i,n){var r=n-e*e,o=1e-24>Math.abs(r)?0:(i-e*t)/r;return[t-o*e,o]}function l(){var e,i=function(e){return e[0]},o=function(e){return e[1]};function s(s){var l=0,h=0,u=0,d=0,c=0,g=e?+e[0]:1/0,p=e?+e[1]:-1/0;n(s,i,o,function(t,i){++l,h+=(t-h)/l,u+=(i-u)/l,d+=(t*i-d)/l,c+=(t*t-c)/l,!e&&(tp&&(p=t))});var f=t(a(h,u,d,c),2),m=f[0],v=f[1],E=function(e){return v*e+m},_=[[g,E(g)],[p,E(p)]];return _.a=v,_.b=m,_.predict=E,_.rSquared=r(s,i,o,u,E),_}return s.domain=function(t){return arguments.length?(e=t,s):e},s.x=function(e){return arguments.length?(i=e,s):i},s.y=function(e){return arguments.length?(o=e,s):o},s}function h(){var e,o=function(e){return e[0]},a=function(e){return e[1]};function l(l){var h,u,d,c,g=t(i(l,o,a),4),p=g[0],f=g[1],m=g[2],v=g[3],E=p.length,_=0,C=0,S=0,y=0,T=0;for(h=0;hL&&(L=t))});var N=S-_*_,I=_*N-C*C,w=(T*_-y*C)/I,O=(y*N-T*C)/I,x=-w*_,D=function(e){return w*(e-=m)*e+O*e+x+v},M=s(R,L,D);return M.a=w,M.b=O-2*w*m,M.c=x-O*m+w*m*m+v,M.predict=D,M.rSquared=r(l,o,a,b,D),M}return l.domain=function(t){return arguments.length?(e=t,l):e},l.x=function(e){return arguments.length?(o=e,l):o},l.y=function(e){return arguments.length?(a=e,l):a},l}e.regressionExp=function(){var e,i=function(e){return e[0]},o=function(e){return e[1]};function l(l){var h=0,u=0,d=0,c=0,g=0,p=0,f=e?+e[0]:1/0,m=e?+e[1]:-1/0;n(l,i,o,function(t,i){var n=Math.log(i),r=t*i;++h,u+=(i-u)/h,c+=(r-c)/h,p+=(t*r-p)/h,d+=(i*n-d)/h,g+=(r*n-g)/h,!e&&(tm&&(m=t))});var v=t(a(c/u,d/u,g/u,p/u),2),E=v[0],_=v[1];E=Math.exp(E);var C=function(e){return E*Math.exp(_*e)},S=s(f,m,C);return S.a=E,S.b=_,S.predict=C,S.rSquared=r(l,i,o,u,C),S}return l.domain=function(t){return arguments.length?(e=t,l):e},l.x=function(e){return arguments.length?(i=e,l):i},l.y=function(e){return arguments.length?(o=e,l):o},l},e.regressionLinear=l,e.regressionLoess=function(){var e=function(e){return e[0]},n=function(e){return e[1]},r=.3;function o(o){for(var s=t(i(o,e,n,!0),4),l=s[0],h=s[1],u=s[2],d=s[3],c=l.length,g=Math.max(2,~~(r*c)),p=new Float64Array(c),f=new Float64Array(c),m=new Float64Array(c).fill(1),v=-1;++v<=2;){for(var E=[0,g-1],_=0;_l[y]-C?S:y,b=0,A=0,R=0,L=0,N=0,I=1/Math.abs(l[T]-C||1),w=S;w<=y;++w){var O,x=l[w],D=h[w],M=(O=1-(O=Math.abs(C-x)*I)*O*O)*O*O*m[w],k=x*M;b+=M,A+=k,R+=D*M,L+=D*k,N+=x*k}var P=t(a(A/b,R/b,L/b,N/b),2),F=P[0],B=P[1];p[_]=F+B*C,f[_]=Math.abs(h[_]-p[_]),function(e,t,i){var n=e[t],r=i[0],o=i[1]+1;if(!(o>=e.length))for(;t>r&&e[o]-n<=n-e[r];)i[0]=++r,i[1]=o,++o}(l,_+1,E)}if(2===v)break;var U=function(e){e.sort(function(e,t){return e-t});var t=e.length/2;return t%1==0?(e[t-1]+e[t])/2:e[Math.floor(t)]}(f);if(1e-12>Math.abs(U))break;for(var H,V,W=0;W=1?1e-12:(V=1-H*H)*V}return function(e,t,i,n){for(var r,o=e.length,s=[],a=0,l=0,h=[];am&&(m=t))});var E=t(a(d,c,g,p),2),_=E[0],C=E[1],S=function(e){return C*Math.log(e)/v+_},y=s(f,m,S);return y.a=C,y.b=_,y.predict=S,y.rSquared=r(h,i,o,c,S),y}return h.domain=function(t){return arguments.length?(e=t,h):e},h.x=function(e){return arguments.length?(i=e,h):i},h.y=function(e){return arguments.length?(o=e,h):o},h.base=function(e){return arguments.length?(l=e,h):l},h},e.regressionPoly=function(){var e,o=function(e){return e[0]},a=function(e){return e[1]},u=3;function d(d){if(1===u){var c,g,p,f,m,v=l().x(o).y(a).domain(e)(d);return v.coefficients=[v.b,v.a],delete v.a,delete v.b,v}if(2===u){var E=h().x(o).y(a).domain(e)(d);return E.coefficients=[E.c,E.b,E.a],delete E.a,delete E.b,delete E.c,E}var _=t(i(d,o,a),4),C=_[0],S=_[1],y=_[2],T=_[3],b=C.length,A=[],R=[],L=u+1,N=0,I=0,w=e?+e[0]:1/0,O=e?+e[1]:-1/0;for(n(d,o,a,function(t,i){++I,N+=(i-N)/I,!e&&(tO&&(O=t))}),c=0;cMath.abs(e[t][r])&&(r=i);for(n=t;n=t;n--)e[n][i]-=e[n][t]*e[t][i]/e[t][t]}for(i=s-1;i>=0;--i){for(o=0,n=i+1;n=0;--r)for(s=t[r],a=1,l[r]+=s,o=1;o<=r;++o)a*=(r+1-o)/o,l[r-o]+=s*Math.pow(i,o)*a;return l[0]+=n,l}(L,x,-y,T),M.predict=D,M.rSquared=r(d,o,a,N,D),M}return d.domain=function(t){return arguments.length?(e=t,d):e},d.x=function(e){return arguments.length?(o=e,d):o},d.y=function(e){return arguments.length?(a=e,d):a},d.order=function(e){return arguments.length?(u=e,d):u},d},e.regressionPow=function(){var e,i=function(e){return e[0]},o=function(e){return e[1]};function l(l){var h=0,u=0,d=0,c=0,g=0,p=0,f=e?+e[0]:1/0,m=e?+e[1]:-1/0;n(l,i,o,function(t,i){var n=Math.log(t),r=Math.log(i);++h,u+=(n-u)/h,d+=(r-d)/h,c+=(n*r-c)/h,g+=(n*n-g)/h,p+=(i-p)/h,!e&&(tm&&(m=t))});var v=t(a(u,d,c,g),2),E=v[0],_=v[1];E=Math.exp(E);var C=function(e){return E*Math.pow(e,_)},S=s(f,m,C);return S.a=E,S.b=_,S.predict=C,S.rSquared=r(l,i,o,p,C),S}return l.domain=function(t){return arguments.length?(e=t,l):e},l.x=function(e){return arguments.length?(i=e,l):i},l.y=function(e){return arguments.length?(o=e,l):o},l},e.regressionQuad=h,Object.defineProperty(e,"__esModule",{value:!0})}(t)},43631:function(e,t,i){"use strict";i.d(t,{qY:function(){return g}});var n=i(83454),r=function(e,t,i){if(i||2==arguments.length)for(var n,r=0,o=t.length;rh+a*s*u||d>=f)p=s;else{if(Math.abs(g)<=-l*u)return s;g*(p-c)>=0&&(p=c),c=s,f=d}return 0}s=s||1,a=a||1e-6,l=l||.1;for(var m=0;m<10;++m){if(o(r.x,1,n.x,s,t),d=r.fx=e(r.x,r.fxprime),g=i(r.fxprime,t),d>h+a*s*u||m&&d>=c)return f(p,s,c);if(Math.abs(g)<=-l*u)break;if(g>=0)return f(s,p,d);c=d,p=s,s*=2}return s}e.bisect=function(e,t,i,n){var r=(n=n||{}).maxIterations||100,o=n.tolerance||1e-10,s=e(t),a=e(i),l=i-t;if(s*a>0)throw"Initial bisect points must have opposite signs";if(0===s)return t;if(0===a)return i;for(var h=0;h=0&&(t=u),Math.abs(l)=f[p-1].fx){var N=!1;if(S.fx>L.fx?(o(y,1+c,C,-c,L),y.fx=e(y),y.fx=1)break;for(m=1;m=n(d.fxprime))break}return a.history&&a.history.push({x:d.x.slice(),fx:d.fx,fxprime:d.fxprime.slice(),alpha:p}),d},e.gradientDescent=function(e,t,i){for(var r=(i=i||{}).maxIterations||100*t.length,s=i.learnRate||.001,a={x:t.slice(),fx:0,fxprime:t.slice()},l=0;l=n(a.fxprime)));++l);return a},e.gradientDescentLineSearch=function(e,t,i){i=i||{};var o,a={x:t.slice(),fx:0,fxprime:t.slice()},l={x:t.slice(),fx:0,fxprime:t.slice()},h=i.maxIterations||100*t.length,u=i.learnRate||1,d=t.slice(),c=i.c1||.001,g=i.c2||.1,p=[];if(i.history){var f=e;e=function(e,t){return p.push(e.slice()),f(e,t)}}a.fx=e(a.x,a.fxprime);for(var m=0;mn(a.fxprime)));++m);return a},e.zeros=t,e.zerosM=function(e,i){return t(e).map(function(){return t(i)})},e.norm2=n,e.weightedSum=o,e.scale=r}(t)},49685:function(e,t,i){"use strict";i.d(t,{WT:function(){return n}});var n="undefined"!=typeof Float32Array?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)})},35600:function(e,t,i){"use strict";function n(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=t[4],a=t[5],l=t[6],h=t[7],u=t[8],d=u*s-a*h,c=-u*o+a*l,g=h*o-s*l,p=i*d+n*c+r*g;return p?(p=1/p,e[0]=d*p,e[1]=(-u*n+r*h)*p,e[2]=(a*n-r*s)*p,e[3]=c*p,e[4]=(u*i-r*l)*p,e[5]=(-a*i+r*o)*p,e[6]=g*p,e[7]=(-h*i+n*l)*p,e[8]=(s*i-n*o)*p,e):null}function r(e,t,i){var n=t[0],r=t[1],o=t[2],s=t[3],a=t[4],l=t[5],h=t[6],u=t[7],d=t[8],c=i[0],g=i[1],p=i[2],f=i[3],m=i[4],v=i[5],E=i[6],_=i[7],C=i[8];return e[0]=c*n+g*s+p*h,e[1]=c*r+g*a+p*u,e[2]=c*o+g*l+p*d,e[3]=f*n+m*s+v*h,e[4]=f*r+m*a+v*u,e[5]=f*o+m*l+v*d,e[6]=E*n+_*s+C*h,e[7]=E*r+_*a+C*u,e[8]=E*o+_*l+C*d,e}function o(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=t[0],e[7]=t[1],e[8]=1,e}function s(e,t){var i=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=i,e[2]=0,e[3]=-i,e[4]=n,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function a(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=t[1],e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}i.d(t,{Jp:function(){return r},U_:function(){return n},Us:function(){return s},vc:function(){return o},xJ:function(){return a}})},31437:function(e,t,i){"use strict";i.d(t,{$X:function(){return s},AK:function(){return g},EU:function(){return f},Fp:function(){return l},Fv:function(){return c},I6:function(){return m},IH:function(){return o},TE:function(){return u},VV:function(){return a},bA:function(){return h},kE:function(){return d},kK:function(){return p},lu:function(){return v}});var n,r=i(49685);function o(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e}function s(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e}function a(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e}function l(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e}function h(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e}function u(e,t){return Math.hypot(t[0]-e[0],t[1]-e[1])}function d(e){return Math.hypot(e[0],e[1])}function c(e,t){var i=t[0],n=t[1],r=i*i+n*n;return r>0&&(r=1/Math.sqrt(r)),e[0]=t[0]*r,e[1]=t[1]*r,e}function g(e,t){return e[0]*t[0]+e[1]*t[1]}function p(e,t,i){var n=t[0],r=t[1];return e[0]=i[0]*n+i[3]*r+i[6],e[1]=i[1]*n+i[4]*r+i[7],e}function f(e,t){var i=e[0],n=e[1],r=t[0],o=t[1],s=Math.sqrt(i*i+n*n)*Math.sqrt(r*r+o*o);return Math.acos(Math.min(Math.max(s&&(i*r+n*o)/s,-1),1))}function m(e,t){return e[0]===t[0]&&e[1]===t[1]}var v=s;n=new r.WT(2),r.WT!=Float32Array&&(n[0]=0,n[1]=0)},9488:function(e,t,i){"use strict";var n,r;function o(e,t=0){return e[e.length-(1+t)]}function s(e){if(0===e.length)throw Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function a(e,t,i=(e,t)=>e===t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0,r=e.length;n0))return e;n=e-1}}return-(i+1)}(e.length,n=>i(e[n],t))}function u(e){return e.filter(e=>!!e)}function d(e){return!Array.isArray(e)||0===e.length}function c(e){return Array.isArray(e)&&e.length>0}function g(e,t=e=>e){let i=new Set;return e.filter(e=>{let n=t(e);return!i.has(n)&&(i.add(n),!0)})}function p(e,t){let i=function(e,t){for(let i=e.length-1;i>=0;i--){let n=e[i];if(t(n))return i}return -1}(e,t);if(-1!==i)return e[i]}function f(e,t){return e.length>0?e[0]:t}function m(e,t){let i="number"==typeof t?e:0;"number"==typeof t?i=e:(i=0,t=e);let n=[];if(i<=t)for(let e=i;et;e--)n.push(e);return n}function v(e,t,i){let n=e.slice(0,t),r=e.slice(t);return n.concat(i,r)}function E(e,t){let i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function _(e,t){let i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function C(e,t){for(let i of t)e.push(i)}function S(e,t,i,n){let r=y(e,t),o=e.splice(r,i);return!function(e,t,i){let n=y(e,t),r=e.length,o=i.length;e.length=r+o;for(let t=r-1;t>=n;t--)e[t+o]=e[t];for(let t=0;tt(e(i),e(n))}function b(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n=0&&(i=r)}return i}function A(e,t){return function(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n0&&(i=r)}return i}(e,(e,i)=>-t(e,i))}i.d(t,{EB:function(){return g},Gb:function(){return o},H9:function(){return R},JH:function(){return s},LS:function(){return l},Of:function(){return c},VJ:function(){return A},W$:function(){return L},XY:function(){return d},Xh:function(){return f},Zv:function(){return v},al:function(){return _},dF:function(){return p},db:function(){return S},fS:function(){return a},jV:function(){return b},kX:function(){return u},ry:function(){return h},tT:function(){return T},vA:function(){return C},w6:function(){return m},zI:function(){return E}}),(r=n||(n={})).isLessThan=function(e){return e<0},r.isGreaterThan=function(e){return e>0},r.isNeitherLessOrGreaterThan=function(e){return 0===e},r.greaterThan=1,r.lessThan=-1,r.neitherLessOrGreaterThan=0;class R{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;let i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){let e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){let t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class L{constructor(e){this.iterate=e}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new L(t=>this.iterate(i=>!e(i)||t(i)))}map(e){return new L(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t;let i=!0;return this.iterate(r=>((i||n.isGreaterThan(e(r,t)))&&(i=!1,t=r),!0)),t}}L.empty=new L(e=>{})},53725:function(e,t,i){"use strict";var n;i.d(t,{$:function(){return n}}),function(e){function t(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]}e.is=t;let i=Object.freeze([]);function*n(e){yield e}e.empty=function(){return i},e.single=n,e.wrap=function(e){return t(e)?e:n(e)},e.from=function(e){return e||i},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(let i of e)if(t(i))return!0;return!1},e.find=function(e,t){for(let i of e)if(t(i))return i},e.filter=function*(e,t){for(let i of e)t(i)&&(yield i)},e.map=function*(e,t){let i=0;for(let n of e)yield t(n,i++)},e.concat=function*(...e){for(let t of e)for(let e of t)yield e},e.reduce=function(e,t,i){let n=i;for(let i of e)n=t(n,i);return n},e.slice=function*(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);tr}]}}(n||(n={}))},91741:function(e,t,i){"use strict";i.d(t,{S:function(){return r}});class n{constructor(e){this.element=e,this.next=n.Undefined,this.prev=n.Undefined}}n.Undefined=new n(void 0);class r{constructor(){this._first=n.Undefined,this._last=n.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===n.Undefined}clear(){let e=this._first;for(;e!==n.Undefined;){let t=e.next;e.prev=n.Undefined,e.next=n.Undefined,e=t}this._first=n.Undefined,this._last=n.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let i=new n(e);if(this._first===n.Undefined)this._first=i,this._last=i;else if(t){let e=this._last;this._last=i,i.prev=e,e.next=i}else{let e=this._first;this._first=i,i.next=e,e.prev=i}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(i))}}shift(){if(this._first!==n.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==n.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==n.Undefined&&e.next!==n.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===n.Undefined&&e.next===n.Undefined?(this._first=n.Undefined,this._last=n.Undefined):e.next===n.Undefined?(this._last=this._last.prev,this._last.next=n.Undefined):e.prev===n.Undefined&&(this._first=this._first.next,this._first.prev=n.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==n.Undefined;)yield e.element,e=e.next}}},36248:function(e,t,i){"use strict";i.d(t,{$E:function(){return a},I8:function(){return function e(t){if(!t||"object"!=typeof t||t instanceof RegExp)return t;let i=Array.isArray(t)?[]:{};return Object.entries(t).forEach(([t,n])=>{i[t]=n&&"object"==typeof n?e(n):n}),i}},IU:function(){return l},_A:function(){return r},fS:function(){return function e(t,i){let n,r;if(t===i)return!0;if(null==t||null==i||typeof t!=typeof i||"object"!=typeof t||Array.isArray(t)!==Array.isArray(i))return!1;if(Array.isArray(t)){if(t.length!==i.length)return!1;for(n=0;n{o in t?r&&((0,n.Kn)(t[o])&&(0,n.Kn)(i[o])?e(t[o],i[o],r):t[o]=i[o]):t[o]=i[o]}),t):i}},rs:function(){return s}});var n=i(98401);function r(e){if(!e||"object"!=typeof e)return e;let t=[e];for(;t.length>0;){let e=t.shift();for(let i in Object.freeze(e),e)if(o.call(e,i)){let r=e[i];"object"!=typeof r||Object.isFrozen(r)||(0,n.fU)(r)||t.push(r)}}return e}let o=Object.prototype.hasOwnProperty;function s(e,t){return function e(t,i,r){if((0,n.Jp)(t))return t;let s=i(t);if(void 0!==s)return s;if(Array.isArray(t)){let n=[];for(let o of t)n.push(e(o,i,r));return n}if((0,n.Kn)(t)){if(r.has(t))throw Error("Cannot clone recursive data-structure");r.add(t);let n={};for(let s in t)o.call(t,s)&&(n[s]=e(t[s],i,r));return r.delete(t),n}return t}(e,t,new Set)}function a(e){let t=[];for(let i of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"==typeof e[i]&&t.push(i);return t}function l(e,t){let i=e=>function(){let i=Array.prototype.slice.call(arguments,0);return t(e,i)},n={};for(let t of e)n[t]=i(t);return n}},1432:function(e,t,i){"use strict";let n,r;i.d(t,{$L:function(){return y},ED:function(){return E},G6:function(){return k},IJ:function(){return C},OS:function(){return I},dz:function(){return _},fn:function(){return N},gn:function(){return b},i7:function(){return D},li:function(){return f},n2:function(){return T},r:function(){return x},tY:function(){return S},tq:function(){return A},un:function(){return P},vU:function(){return M}});var o,s=i(63580),a=i(83454);let l=!1,h=!1,u=!1,d=!1,c=!1,g=!1,p=!1,f="object"==typeof self?self:"object"==typeof i.g?i.g:{};void 0!==f.vscode&&void 0!==f.vscode.process?r=f.vscode.process:void 0!==a&&(r=a);let m="string"==typeof(null===(o=null==r?void 0:r.versions)||void 0===o?void 0:o.electron),v=m&&(null==r?void 0:r.type)==="renderer";if("object"!=typeof navigator||v){if("object"==typeof r){l="win32"===r.platform,h="darwin"===r.platform,(u="linux"===r.platform)&&r.env.SNAP&&r.env.SNAP_REVISION,r.env.CI||r.env.BUILD_ARTIFACTSTAGINGDIRECTORY;let e=r.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);t.availableLanguages["*"],t.locale,t.osLocale,t._translationsConfigFile}catch(e){}d=!0}else console.error("Unable to resolve platform.")}else l=(n=navigator.userAgent).indexOf("Windows")>=0,h=n.indexOf("Macintosh")>=0,g=(n.indexOf("Macintosh")>=0||n.indexOf("iPad")>=0||n.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,u=n.indexOf("Linux")>=0,p=(null==n?void 0:n.indexOf("Mobi"))>=0,c=!0,s.aj(s.NC({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_")),navigator.language;let E=l,_=h,C=u,S=d,y=c,T=c&&"function"==typeof f.importScripts,b=g,A=p,R=n,L="function"==typeof f.postMessage&&!f.importScripts,N=(()=>{if(L){let e=[];f.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=e.length;i{let n=++t;e.push({id:n,callback:i}),f.postMessage({vscodeScheduleAsyncWork:n},"*")}}return e=>setTimeout(e)})(),I=h||g?2:l?1:3,w=!0,O=!1;function x(){if(!O){O=!0;let e=new Uint8Array(2);e[0]=1,e[1]=2;let t=new Uint16Array(e.buffer);w=513===t[0]}return w}let D=!!(R&&R.indexOf("Chrome")>=0),M=!!(R&&R.indexOf("Firefox")>=0),k=!!(!D&&R&&R.indexOf("Safari")>=0),P=!!(R&&R.indexOf("Edg/")>=0);R&&R.indexOf("Android")},98401:function(e,t,i){"use strict";function n(e){return"string"==typeof e}function r(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function o(e){let t=Object.getPrototypeOf(Uint8Array);return"object"==typeof e&&e instanceof t}function s(e){return"number"==typeof e&&!isNaN(e)}function a(e){return!!e&&"function"==typeof e[Symbol.iterator]}function l(e){return!0===e||!1===e}function h(e){return void 0===e}function u(e){return!d(e)}function d(e){return h(e)||null===e}function c(e,t){if(!e)throw Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function g(e){if(d(e))throw Error("Assertion Failed: argument is undefined or null");return e}function p(e){return"function"==typeof e}function f(e,t){let i=Math.min(e.length,t.length);for(let r=0;rs.maxLen){let n=t-s.maxLen/2;return n<0?n=0:o+=n,r=r.substring(n,t+s.maxLen/2),e(t,i,r,o,s)}let a=Date.now(),h=t-1-o,u=-1,d=null;for(let e=1;!(Date.now()-a>=s.timeBudget);e++){let t=h-s.windowSize*e;i.lastIndex=Math.max(0,t);let n=function(e,t,i,n){let r;for(;r=e.exec(t);){let t=r.index||0;if(t<=i&&e.lastIndex>=i)return r;if(n>0&&t>n)break}return null}(i,r,h,u);if(!n&&d||(d=n,t<=0))break;u=t}if(d){let e={word:d[0],startColumn:o+1+d.index,endColumn:o+1+d.index+d[0].length};return i.lastIndex=0,e}return null}},vu:function(){return o}});var n=i(53725),r=i(91741);let o="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",s=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(let i of o)e.indexOf(i)>=0||(t+="\\"+i);return RegExp(t+="\\s]+)","g")}();function a(e){let t=s;if(e&&e instanceof RegExp){if(e.global)t=e;else{let i="g";e.ignoreCase&&(i+="i"),e.multiline&&(i+="m"),e.unicode&&(i+="u"),t=new RegExp(e.source,i)}}return t.lastIndex=0,t}let l=new r.S;l.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},77119:function(e,t,i){"use strict";let n,r,o,s,a,l,h,u,d,c,g,p,f,m,v,E,_,C;i.r(t),i.d(t,{CancellationTokenSource:function(){return k1},Emitter:function(){return k2},KeyCode:function(){return k4},KeyMod:function(){return k5},MarkerSeverity:function(){return k8},MarkerTag:function(){return Pe},Position:function(){return k6},Range:function(){return k3},Selection:function(){return k9},SelectionDirection:function(){return k7},Token:function(){return Pi},Uri:function(){return Pt},editor:function(){return Pn},languages:function(){return Pr}});var S,y,T,b,A,R,L,N,I,w,O,x,D,M,k,P,F,B,U,H,V,W,G,z,Y,K,$,X,j,q,Z,J,Q,ee,et,ei,en,er,eo,es,ea,el,eh,eu,ed,ec,eg,ep,ef,em,ev,eE,e_,eC,eS,ey,eT,eb,eA,eR,eL,eN,eI,ew,eO,ex,eD,eM,ek,eP,eF,eB,eU,eH,eV,eW,eG,ez,eY,eK,e$,eX,ej,eq,eZ,eJ,eQ,e0,e1,e2,e4,e5,e6,e3,e9,e7,e8,te,tt,ti,tn,tr,to,ts,ta,tl,th,tu,td,tc,tg,tp,tf,tm,tv,tE,t_,tC,tS,ty,tT,tb,tA,tR,tL,tN,tI,tw,tO,tx,tD,tM,tk,tP,tF,tB,tU,tH,tV,tW,tG,tz,tY,tK,t$,tX,tj,tq,tZ,tJ,tQ,t0,t1,t2,t4,t5,t6,t3,t9,t7,t8,ie,it,ii,ir,io,is,ia,il,ih,iu,id,ic,ig,ip,im,iv,iE,i_,iC,iS,iy,iT,ib,iA,iR,iL,iN,iI,iw,iO,ix,iD,iM,ik,iP,iF,iB,iU,iH,iV,iW,iG,iz,iY,iK,i$,iX,ij,iq,iZ,iJ,iQ=i(64141);let i0=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack){if(ne.isErrorNoTelemetry(e))throw new ne(e.message+"\n\n"+e.stack);throw Error(e.message+"\n\n"+e.stack)}throw e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function i1(e){i6(e)||i0.onUnexpectedError(e)}function i2(e){i6(e)||i0.onUnexpectedExternalError(e)}function i4(e){if(e instanceof Error){let{name:t,message:i}=e,n=e.stacktrace||e.stack;return{$isError:!0,name:t,message:i,stack:n,noTelemetry:ne.isErrorNoTelemetry(e)}}return e}let i5="Canceled";function i6(e){return e instanceof i3||e instanceof Error&&e.name===i5&&e.message===i5}class i3 extends Error{constructor(){super(i5),this.name=this.message}}function i9(e){return e?Error(`Illegal argument: ${e}`):Error("Illegal argument")}function i7(e){return e?Error(`Illegal state: ${e}`):Error("Illegal state")}class i8 extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class ne extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof ne)return e;let t=new ne;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class nt extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,nt.prototype)}}function ni(e){let t;let i=this,n=!1;return function(){return n?t:(n=!0,t=e.apply(i,arguments))}}var nn=i(53725);function nr(e){return e}function no(e){}function ns(e,t){}function na(e){return e}function nl(e){if(nn.$.is(e)){let t=[];for(let i of e)if(i)try{i.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function nh(...e){let t=nu(()=>nl(e));return t}function nu(e){let t={dispose:ni(()=>{e()})};return t}class nd{constructor(){var e;this._toDispose=new Set,this._isDisposed=!1,e=this}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{nl(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw Error("Cannot register a disposable on itself!");return this._isDisposed?nd.DISABLE_DISPOSED_WARNING||console.warn(Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}nd.DISABLE_DISPOSED_WARNING=!1;class nc{constructor(){var e;this._store=new nd,e=this,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw Error("Cannot register a disposable on itself!");return this._store.add(e)}}nc.None=Object.freeze({dispose(){}});class ng{constructor(){var e;this._isDisposed=!1,e=this}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}}class np{constructor(e){this.object=e}dispose(){}}class nf{constructor(){var e;this._store=new Map,this._isDisposed=!1,e=this}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{nl(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){var n;this._isDisposed&&console.warn(Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||null===(n=this._store.get(e))||void 0===n||n.dispose(),this._store.set(e,t)}deleteAndDispose(e){var t;null===(t=this._store.get(e))||void 0===t||t.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}var nm=i(91741);let nv=globalThis.performance&&"function"==typeof globalThis.performance.now;class nE{static create(e){return new nE(e)}constructor(e){this._now=nv&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return -1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}!function(e){function t(e){return(t,i=null,n)=>{let r,o=!1;return r=e(e=>o?void 0:(r?r.dispose():o=!0,t.call(i,e)),null,n),o&&r.dispose(),r}}function i(e,t,i){return s((i,n=null,r)=>e(e=>i.call(n,t(e)),null,r),i)}function n(e,t,i){return s((i,n=null,r)=>e(e=>{t(e),i.call(n,e)},null,r),i)}function r(e,t,i){return s((i,n=null,r)=>e(e=>t(e)&&i.call(n,e),null,r),i)}function o(e,t,n,r){let o=n;return i(e,e=>o=t(o,e),r)}function s(e,t){let i;let n=new nT({onWillAddFirstListener(){i=e(n.fire,n)},onDidRemoveLastListener(){null==i||i.dispose()}});return null==t||t.add(n),n.event}function a(e,t,i=100,n=!1,r=!1,o,s){let a,l,h,u;let d=0,c=new nT({leakWarningThreshold:o,onWillAddFirstListener(){a=e(e=>{d++,h=t(h,e),n&&!u&&(c.fire(h),h=void 0),l=()=>{let e=h;h=void 0,u=void 0,(!n||d>1)&&c.fire(e),d=0},"number"==typeof i?(clearTimeout(u),u=setTimeout(l,i)):void 0===u&&(u=0,queueMicrotask(l))})},onWillRemoveListener(){r&&d>0&&(null==l||l())},onDidRemoveLastListener(){l=void 0,a.dispose()}});return null==s||s.add(c),c.event}function l(e,t=(e,t)=>e===t,i){let n,o=!0;return r(e,e=>{let i=o||!t(e,n);return o=!1,n=e,i},i)}e.None=()=>nc.None,e.defer=function(e,t){return a(e,()=>void 0,0,void 0,!0,void 0,t)},e.once=t,e.map=i,e.forEach=n,e.filter=r,e.signal=function(e){return e},e.any=function(...e){return(t,i=null,n)=>nh(...e.map(e=>e(e=>t.call(i,e),null,n)))},e.reduce=o,e.debounce=a,e.accumulate=function(t,i=0,n){return e.debounce(t,(e,t)=>e?(e.push(t),e):[t],i,void 0,!0,void 0,n)},e.latch=l,e.split=function(t,i,n){return[e.filter(t,i,n),e.filter(t,e=>!i(e),n)]},e.buffer=function(e,t=!1,i=[]){let n=i.slice(),r=e(e=>{n?n.push(e):s.fire(e)}),o=()=>{null==n||n.forEach(e=>s.fire(e)),n=null},s=new nT({onWillAddFirstListener(){r||(r=e(e=>s.fire(e)))},onDidAddFirstListener(){n&&(t?setTimeout(o):o())},onDidRemoveLastListener(){r&&r.dispose(),r=null}});return s.event};class h{constructor(e){this.event=e,this.disposables=new nd}map(e){return new h(i(this.event,e,this.disposables))}forEach(e){return new h(n(this.event,e,this.disposables))}filter(e){return new h(r(this.event,e,this.disposables))}reduce(e,t){return new h(o(this.event,e,t,this.disposables))}latch(){return new h(l(this.event,void 0,this.disposables))}debounce(e,t=100,i=!1,n=!1,r){return new h(a(this.event,e,t,i,n,r,this.disposables))}on(e,t,i){return this.event(e,t,i)}once(e,i,n){return t(this.event)(e,i,n)}dispose(){this.disposables.dispose()}}e.chain=function(e){return new h(e)},e.fromNodeEventEmitter=function(e,t,i=e=>e){let n=(...e)=>r.fire(i(...e)),r=new nT({onWillAddFirstListener:()=>e.on(t,n),onDidRemoveLastListener:()=>e.removeListener(t,n)});return r.event},e.fromDOMEventEmitter=function(e,t,i=e=>e){let n=(...e)=>r.fire(i(...e)),r=new nT({onWillAddFirstListener:()=>e.addEventListener(t,n),onDidRemoveLastListener:()=>e.removeEventListener(t,n)});return r.event},e.toPromise=function(e){return new Promise(i=>t(e)(i))},e.runAndSubscribe=function(e,t){return t(void 0),e(e=>t(e))},e.runAndSubscribeWithStore=function(e,t){let i=null;function n(e){null==i||i.dispose(),t(e,i=new nd)}n(void 0);let r=e(e=>n(e));return nu(()=>{r.dispose(),null==i||i.dispose()})};class u{constructor(e,t){this._observable=e,this._counter=0,this._hasChanged=!1;this.emitter=new nT({onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}}),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){let i=new u(e,t);return i.emitter.event},e.fromObservableLight=function(e){return t=>{let i=0,n=!1,r={beginUpdate(){i++},endUpdate(){0==--i&&(e.reportChanges(),n&&(n=!1,t()))},handlePossibleChange(){},handleChange(){n=!0}};return e.addObserver(r),e.reportChanges(),{dispose(){e.removeObserver(r)}}}}}(e7||(e7={}));class n_{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${n_._idPool++}`,n_.all.add(this)}start(e){this._stopWatch=new nE,this.listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}n_.all=new Set,n_._idPool=0;class nC{constructor(e,t=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=t,this._warnCountdown=0}dispose(){var e;null===(e=this._stacks)||void 0===e||e.clear()}check(e,t){let i=this.threshold;if(i<=0||t{let t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}}class nS{static create(){var e;return new nS(null!==(e=Error().stack)&&void 0!==e?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class ny{constructor(e){this.value=e}}class nT{constructor(e){var t,i,n,r,o;this._size=0,this._options=e,this._leakageMon=(null===(t=this._options)||void 0===t?void 0:t.leakWarningThreshold)?new nC(null!==(n=null===(i=this._options)||void 0===i?void 0:i.leakWarningThreshold)&&void 0!==n?n:-1):void 0,this._perfMon=(null===(r=this._options)||void 0===r?void 0:r._profName)?new n_(this._options._profName):void 0,this._deliveryQueue=null===(o=this._options)||void 0===o?void 0:o.deliveryQueue}dispose(){var e,t,i,n;this._disposed||(this._disposed=!0,(null===(e=this._deliveryQueue)||void 0===e?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),null===(i=null===(t=this._options)||void 0===t?void 0:t.onDidRemoveLastListener)||void 0===i||i.call(t),null===(n=this._leakageMon)||void 0===n||n.dispose())}get event(){var e;return null!==(e=this._event)&&void 0!==e||(this._event=(e,t,i)=>{var n,r,o,s,a;let l;if(this._leakageMon&&this._size>3*this._leakageMon.threshold)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),nc.None;if(this._disposed)return nc.None;t&&(e=e.bind(t));let h=new ny(e);this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(h.stack=nS.create(),l=this._leakageMon.check(h.stack,this._size+1)),this._listeners?this._listeners instanceof ny?(null!==(a=this._deliveryQueue)&&void 0!==a||(this._deliveryQueue=new nA),this._listeners=[this._listeners,h]):this._listeners.push(h):(null===(r=null===(n=this._options)||void 0===n?void 0:n.onWillAddFirstListener)||void 0===r||r.call(n,this),this._listeners=h,null===(s=null===(o=this._options)||void 0===o?void 0:o.onDidAddFirstListener)||void 0===s||s.call(o,this)),this._size++;let u=nu(()=>{null==l||l(),this._removeListener(h)});return i instanceof nd?i.add(u):Array.isArray(i)&&i.push(u),u}),this._event}_removeListener(e){var t,i,n,r;if(null===(i=null===(t=this._options)||void 0===t?void 0:t.onWillRemoveListener)||void 0===i||i.call(t,this),!this._listeners)return;if(1===this._size){this._listeners=void 0,null===(r=null===(n=this._options)||void 0===n?void 0:n.onDidRemoveLastListener)||void 0===r||r.call(n,this),this._size=0;return}let o=this._listeners,s=o.indexOf(e);if(-1===s)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),Error("Attempted to dispose unknown listener");this._size--,o[s]=void 0;let a=this._deliveryQueue.current===this;if(2*this._size<=o.length){let e=0;for(let t=0;t0}}let nb=()=>new nA;class nA{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class nR extends nT{constructor(e){super(e),this._isPaused=0,this._eventQueue=new nm.S,this._mergeFn=null==e?void 0:e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused){if(this._mergeFn){if(this._eventQueue.size>0){let e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}}fire(e){this._size&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class nL extends nR{constructor(e){var t;super(e),this._delay=null!==(t=e.delay)&&void 0!==t?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class nN extends nT{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=null==e?void 0:e.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),1===this._queuedEvents.length&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(e=>super.fire(e)),this._queuedEvents=[]}))}}class nI{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,n)=>e(e=>{let n=this.buffers[this.buffers.length-1];n?n.push(()=>t.call(i,e)):t.call(i,e)},void 0,n)}bufferEvents(e){let t=[];this.buffers.push(t);let i=e();return this.buffers.pop(),t.forEach(e=>e()),i}}class nw{constructor(){this.listening=!1,this.inputEvent=e7.None,this.inputEventListener=nc.None,this.emitter=new nT({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}let nO=Object.freeze(function(e,t){let i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}});(y=e8||(e8={})).isCancellationToken=function(e){return e===y.None||e===y.Cancelled||e instanceof nx||!!e&&"object"==typeof e&&"boolean"==typeof e.isCancellationRequested&&"function"==typeof e.onCancellationRequested},y.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:e7.None}),y.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:nO});class nx{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){!this._isCancelled&&(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?nO:(this._emitter||(this._emitter=new nT),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class nD{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new nx),this._token}cancel(){this._token?this._token instanceof nx&&this._token.cancel():this._token=e8.Cancelled}dispose(e=!1){var t;e&&this.cancel(),null===(t=this._parentListener)||void 0===t||t.dispose(),this._token?this._token instanceof nx&&this._token.dispose():this._token=e8.None}}class nM{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}let nk=new nM,nP=new nM,nF=new nM,nB=Array(230),nU={},nH=[],nV=Object.create(null),nW=Object.create(null),nG=[],nz=[];for(let e=0;e<=193;e++)nG[e]=-1;for(let e=0;e<=132;e++)nz[e]=-1;!function(){let e=[],t=[];for(let i of[[1,0,"None",0,"unknown",0,"VK_UNKNOWN","",""],[1,1,"Hyper",0,"",0,"","",""],[1,2,"Super",0,"",0,"","",""],[1,3,"Fn",0,"",0,"","",""],[1,4,"FnLock",0,"",0,"","",""],[1,5,"Suspend",0,"",0,"","",""],[1,6,"Resume",0,"",0,"","",""],[1,7,"Turbo",0,"",0,"","",""],[1,8,"Sleep",0,"",0,"VK_SLEEP","",""],[1,9,"WakeUp",0,"",0,"","",""],[0,10,"KeyA",31,"A",65,"VK_A","",""],[0,11,"KeyB",32,"B",66,"VK_B","",""],[0,12,"KeyC",33,"C",67,"VK_C","",""],[0,13,"KeyD",34,"D",68,"VK_D","",""],[0,14,"KeyE",35,"E",69,"VK_E","",""],[0,15,"KeyF",36,"F",70,"VK_F","",""],[0,16,"KeyG",37,"G",71,"VK_G","",""],[0,17,"KeyH",38,"H",72,"VK_H","",""],[0,18,"KeyI",39,"I",73,"VK_I","",""],[0,19,"KeyJ",40,"J",74,"VK_J","",""],[0,20,"KeyK",41,"K",75,"VK_K","",""],[0,21,"KeyL",42,"L",76,"VK_L","",""],[0,22,"KeyM",43,"M",77,"VK_M","",""],[0,23,"KeyN",44,"N",78,"VK_N","",""],[0,24,"KeyO",45,"O",79,"VK_O","",""],[0,25,"KeyP",46,"P",80,"VK_P","",""],[0,26,"KeyQ",47,"Q",81,"VK_Q","",""],[0,27,"KeyR",48,"R",82,"VK_R","",""],[0,28,"KeyS",49,"S",83,"VK_S","",""],[0,29,"KeyT",50,"T",84,"VK_T","",""],[0,30,"KeyU",51,"U",85,"VK_U","",""],[0,31,"KeyV",52,"V",86,"VK_V","",""],[0,32,"KeyW",53,"W",87,"VK_W","",""],[0,33,"KeyX",54,"X",88,"VK_X","",""],[0,34,"KeyY",55,"Y",89,"VK_Y","",""],[0,35,"KeyZ",56,"Z",90,"VK_Z","",""],[0,36,"Digit1",22,"1",49,"VK_1","",""],[0,37,"Digit2",23,"2",50,"VK_2","",""],[0,38,"Digit3",24,"3",51,"VK_3","",""],[0,39,"Digit4",25,"4",52,"VK_4","",""],[0,40,"Digit5",26,"5",53,"VK_5","",""],[0,41,"Digit6",27,"6",54,"VK_6","",""],[0,42,"Digit7",28,"7",55,"VK_7","",""],[0,43,"Digit8",29,"8",56,"VK_8","",""],[0,44,"Digit9",30,"9",57,"VK_9","",""],[0,45,"Digit0",21,"0",48,"VK_0","",""],[1,46,"Enter",3,"Enter",13,"VK_RETURN","",""],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE","",""],[1,48,"Backspace",1,"Backspace",8,"VK_BACK","",""],[1,49,"Tab",2,"Tab",9,"VK_TAB","",""],[1,50,"Space",10,"Space",32,"VK_SPACE","",""],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,"",0,"","",""],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL","",""],[1,64,"F1",59,"F1",112,"VK_F1","",""],[1,65,"F2",60,"F2",113,"VK_F2","",""],[1,66,"F3",61,"F3",114,"VK_F3","",""],[1,67,"F4",62,"F4",115,"VK_F4","",""],[1,68,"F5",63,"F5",116,"VK_F5","",""],[1,69,"F6",64,"F6",117,"VK_F6","",""],[1,70,"F7",65,"F7",118,"VK_F7","",""],[1,71,"F8",66,"F8",119,"VK_F8","",""],[1,72,"F9",67,"F9",120,"VK_F9","",""],[1,73,"F10",68,"F10",121,"VK_F10","",""],[1,74,"F11",69,"F11",122,"VK_F11","",""],[1,75,"F12",70,"F12",123,"VK_F12","",""],[1,76,"PrintScreen",0,"",0,"","",""],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL","",""],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE","",""],[1,79,"Insert",19,"Insert",45,"VK_INSERT","",""],[1,80,"Home",14,"Home",36,"VK_HOME","",""],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR","",""],[1,82,"Delete",20,"Delete",46,"VK_DELETE","",""],[1,83,"End",13,"End",35,"VK_END","",""],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT","",""],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",""],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",""],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",""],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",""],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK","",""],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE","",""],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY","",""],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT","",""],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD","",""],[1,94,"NumpadEnter",3,"",0,"","",""],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1","",""],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2","",""],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3","",""],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4","",""],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5","",""],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6","",""],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7","",""],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8","",""],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9","",""],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0","",""],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL","",""],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102","",""],[1,107,"ContextMenu",58,"ContextMenu",93,"","",""],[1,108,"Power",0,"",0,"","",""],[1,109,"NumpadEqual",0,"",0,"","",""],[1,110,"F13",71,"F13",124,"VK_F13","",""],[1,111,"F14",72,"F14",125,"VK_F14","",""],[1,112,"F15",73,"F15",126,"VK_F15","",""],[1,113,"F16",74,"F16",127,"VK_F16","",""],[1,114,"F17",75,"F17",128,"VK_F17","",""],[1,115,"F18",76,"F18",129,"VK_F18","",""],[1,116,"F19",77,"F19",130,"VK_F19","",""],[1,117,"F20",78,"F20",131,"VK_F20","",""],[1,118,"F21",79,"F21",132,"VK_F21","",""],[1,119,"F22",80,"F22",133,"VK_F22","",""],[1,120,"F23",81,"F23",134,"VK_F23","",""],[1,121,"F24",82,"F24",135,"VK_F24","",""],[1,122,"Open",0,"",0,"","",""],[1,123,"Help",0,"",0,"","",""],[1,124,"Select",0,"",0,"","",""],[1,125,"Again",0,"",0,"","",""],[1,126,"Undo",0,"",0,"","",""],[1,127,"Cut",0,"",0,"","",""],[1,128,"Copy",0,"",0,"","",""],[1,129,"Paste",0,"",0,"","",""],[1,130,"Find",0,"",0,"","",""],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE","",""],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP","",""],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN","",""],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR","",""],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1","",""],[1,136,"KanaMode",0,"",0,"","",""],[0,137,"IntlYen",0,"",0,"","",""],[1,138,"Convert",0,"",0,"","",""],[1,139,"NonConvert",0,"",0,"","",""],[1,140,"Lang1",0,"",0,"","",""],[1,141,"Lang2",0,"",0,"","",""],[1,142,"Lang3",0,"",0,"","",""],[1,143,"Lang4",0,"",0,"","",""],[1,144,"Lang5",0,"",0,"","",""],[1,145,"Abort",0,"",0,"","",""],[1,146,"Props",0,"",0,"","",""],[1,147,"NumpadParenLeft",0,"",0,"","",""],[1,148,"NumpadParenRight",0,"",0,"","",""],[1,149,"NumpadBackspace",0,"",0,"","",""],[1,150,"NumpadMemoryStore",0,"",0,"","",""],[1,151,"NumpadMemoryRecall",0,"",0,"","",""],[1,152,"NumpadMemoryClear",0,"",0,"","",""],[1,153,"NumpadMemoryAdd",0,"",0,"","",""],[1,154,"NumpadMemorySubtract",0,"",0,"","",""],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR","",""],[1,156,"NumpadClearEntry",0,"",0,"","",""],[1,0,"",5,"Ctrl",17,"VK_CONTROL","",""],[1,0,"",4,"Shift",16,"VK_SHIFT","",""],[1,0,"",6,"Alt",18,"VK_MENU","",""],[1,0,"",57,"Meta",91,"VK_COMMAND","",""],[1,157,"ControlLeft",5,"",0,"VK_LCONTROL","",""],[1,158,"ShiftLeft",4,"",0,"VK_LSHIFT","",""],[1,159,"AltLeft",6,"",0,"VK_LMENU","",""],[1,160,"MetaLeft",57,"",0,"VK_LWIN","",""],[1,161,"ControlRight",5,"",0,"VK_RCONTROL","",""],[1,162,"ShiftRight",4,"",0,"VK_RSHIFT","",""],[1,163,"AltRight",6,"",0,"VK_RMENU","",""],[1,164,"MetaRight",57,"",0,"VK_RWIN","",""],[1,165,"BrightnessUp",0,"",0,"","",""],[1,166,"BrightnessDown",0,"",0,"","",""],[1,167,"MediaPlay",0,"",0,"","",""],[1,168,"MediaRecord",0,"",0,"","",""],[1,169,"MediaFastForward",0,"",0,"","",""],[1,170,"MediaRewind",0,"",0,"","",""],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK","",""],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK","",""],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP","",""],[1,174,"Eject",0,"",0,"","",""],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE","",""],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT","",""],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL","",""],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2","",""],[1,179,"LaunchApp1",0,"",0,"VK_MEDIA_LAUNCH_APP1","",""],[1,180,"SelectTask",0,"",0,"","",""],[1,181,"LaunchScreenSaver",0,"",0,"","",""],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH","",""],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME","",""],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK","",""],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD","",""],[1,186,"BrowserStop",0,"",0,"VK_BROWSER_STOP","",""],[1,187,"BrowserRefresh",0,"",0,"VK_BROWSER_REFRESH","",""],[1,188,"BrowserFavorites",0,"",0,"VK_BROWSER_FAVORITES","",""],[1,189,"ZoomToggle",0,"",0,"","",""],[1,190,"MailReply",0,"",0,"","",""],[1,191,"MailForward",0,"",0,"","",""],[1,192,"MailSend",0,"",0,"","",""],[1,0,"",114,"KeyInComposition",229,"","",""],[1,0,"",116,"ABNT_C2",194,"VK_ABNT_C2","",""],[1,0,"",96,"OEM_8",223,"VK_OEM_8","",""],[1,0,"",0,"",0,"VK_KANA","",""],[1,0,"",0,"",0,"VK_HANGUL","",""],[1,0,"",0,"",0,"VK_JUNJA","",""],[1,0,"",0,"",0,"VK_FINAL","",""],[1,0,"",0,"",0,"VK_HANJA","",""],[1,0,"",0,"",0,"VK_KANJI","",""],[1,0,"",0,"",0,"VK_CONVERT","",""],[1,0,"",0,"",0,"VK_NONCONVERT","",""],[1,0,"",0,"",0,"VK_ACCEPT","",""],[1,0,"",0,"",0,"VK_MODECHANGE","",""],[1,0,"",0,"",0,"VK_SELECT","",""],[1,0,"",0,"",0,"VK_PRINT","",""],[1,0,"",0,"",0,"VK_EXECUTE","",""],[1,0,"",0,"",0,"VK_SNAPSHOT","",""],[1,0,"",0,"",0,"VK_HELP","",""],[1,0,"",0,"",0,"VK_APPS","",""],[1,0,"",0,"",0,"VK_PROCESSKEY","",""],[1,0,"",0,"",0,"VK_PACKET","",""],[1,0,"",0,"",0,"VK_DBE_SBCSCHAR","",""],[1,0,"",0,"",0,"VK_DBE_DBCSCHAR","",""],[1,0,"",0,"",0,"VK_ATTN","",""],[1,0,"",0,"",0,"VK_CRSEL","",""],[1,0,"",0,"",0,"VK_EXSEL","",""],[1,0,"",0,"",0,"VK_EREOF","",""],[1,0,"",0,"",0,"VK_PLAY","",""],[1,0,"",0,"",0,"VK_ZOOM","",""],[1,0,"",0,"",0,"VK_NONAME","",""],[1,0,"",0,"",0,"VK_PA1","",""],[1,0,"",0,"",0,"VK_OEM_CLEAR","",""]]){let[n,r,o,s,a,l,h,u,d]=i;if(!t[r]&&(t[r]=!0,nH[r]=o,nV[o]=r,nW[o.toLowerCase()]=r,n&&(nG[r]=s,0!==s&&3!==s&&5!==s&&4!==s&&6!==s&&57!==s&&(nz[s]=r))),!e[s]){if(e[s]=!0,!a)throw Error(`String representation missing for key code ${s} around scan code ${o}`);nk.define(s,a),nP.define(s,u||a),nF.define(s,d||u||a)}l&&(nB[l]=s),h&&(nU[h]=s)}nz[3]=46}(),(T=te||(te={})).toString=function(e){return nk.keyCodeToStr(e)},T.fromString=function(e){return nk.strToKeyCode(e)},T.toUserSettingsUS=function(e){return nP.keyCodeToStr(e)},T.toUserSettingsGeneral=function(e){return nF.keyCodeToStr(e)},T.fromUserSettings=function(e){return nP.strToKeyCode(e)||nF.strToKeyCode(e)},T.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return nk.keyCodeToStr(e)};var nY=i(1432),nK=i(83454);if(void 0!==nY.li.vscode&&void 0!==nY.li.vscode.process){let e=nY.li.vscode.process;n={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else n=void 0!==nK?{get platform(){return nK.platform},get arch(){return nK.arch},get env(){return nK.env},cwd:()=>nK.env.VSCODE_CWD||nK.cwd()}:{get platform(){return nY.ED?"win32":nY.dz?"darwin":"linux"},get arch(){return},get env(){return{}},cwd:()=>"/"};let n$=n.cwd,nX=n.env,nj=n.platform;class nq extends Error{constructor(e,t,i){let n;"string"==typeof t&&0===t.indexOf("not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let r=-1!==e.indexOf(".")?"property":"argument",o=`The "${e}" ${r} ${n} of type ${t}`;super(o+=`. Received type ${typeof i}`),this.code="ERR_INVALID_ARG_TYPE"}}function nZ(e,t){if("string"!=typeof e)throw new nq(t,"string",e)}let nJ="win32"===nj;function nQ(e){return 47===e||92===e}function n0(e){return 47===e}function n1(e){return e>=65&&e<=90||e>=97&&e<=122}function n2(e,t,i,n){let r="",o=0,s=-1,a=0,l=0;for(let h=0;h<=e.length;++h){if(h2){let e=r.lastIndexOf(i);-1===e?(r="",o=0):o=(r=r.slice(0,e)).length-1-r.lastIndexOf(i),s=h,a=0;continue}if(0!==r.length){r="",o=0,s=h,a=0;continue}}t&&(r+=r.length>0?`${i}..`:"..",o=2)}else r.length>0?r+=`${i}${e.slice(s+1,h)}`:r=e.slice(s+1,h),o=h-s-1;s=h,a=0}else 46===l&&-1!==a?++a:a=-1}return r}function n4(e,t){!function(e,t){if(null===e||"object"!=typeof e)throw new nq(t,"Object",e)}(t,"pathObject");let i=t.dir||t.root,n=t.base||`${t.name||""}${t.ext||""}`;return i?i===t.root?`${i}${n}`:`${i}${e}${n}`:n}let n5={resolve(...e){let t="",i="",n=!1;for(let r=e.length-1;r>=-1;r--){let o;if(r>=0){if(nZ(o=e[r],"path"),0===o.length)continue}else 0===t.length?o=n$():(void 0===(o=nX[`=${t}`]||n$())||o.slice(0,2).toLowerCase()!==t.toLowerCase()&&92===o.charCodeAt(2))&&(o=`${t}\\`);let s=o.length,a=0,l="",h=!1,u=o.charCodeAt(0);if(1===s)nQ(u)&&(a=1,h=!0);else if(nQ(u)){if(h=!0,nQ(o.charCodeAt(1))){let e=2,t=2;for(;e2&&nQ(o.charCodeAt(2))&&(h=!0,a=3));if(l.length>0){if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l}if(n){if(t.length>0)break}else if(i=`${o.slice(a)}\\${i}`,n=h,h&&t.length>0)break}return i=n2(i,!n,"\\",nQ),n?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){let t;nZ(e,"path");let i=e.length;if(0===i)return".";let n=0,r=!1,o=e.charCodeAt(0);if(1===i)return n0(o)?"\\":e;if(nQ(o)){if(r=!0,nQ(e.charCodeAt(1))){let r=2,o=2;for(;r2&&nQ(e.charCodeAt(2))&&(r=!0,n=3));let s=n0&&nQ(e.charCodeAt(i-1))&&(s+="\\"),void 0===t)?r?`\\${s}`:s:r?`${t}\\${s}`:`${t}${s}`},isAbsolute(e){nZ(e,"path");let t=e.length;if(0===t)return!1;let i=e.charCodeAt(0);return nQ(i)||t>2&&n1(i)&&58===e.charCodeAt(1)&&nQ(e.charCodeAt(2))},join(...e){let t,i;if(0===e.length)return".";for(let n=0;n0&&(void 0===t?t=i=r:t+=`\\${r}`)}if(void 0===t)return".";let n=!0,r=0;if("string"==typeof i&&nQ(i.charCodeAt(0))){++r;let e=i.length;e>1&&nQ(i.charCodeAt(1))&&(++r,e>2&&(nQ(i.charCodeAt(2))?++r:n=!1))}if(n){for(;r=2&&(t=`\\${t.slice(r)}`)}return n5.normalize(t)},relative(e,t){if(nZ(e,"from"),nZ(t,"to"),e===t)return"";let i=n5.resolve(e),n=n5.resolve(t);if(i===n||(e=i.toLowerCase())===(t=n.toLowerCase()))return"";let r=0;for(;rr&&92===e.charCodeAt(o-1);)o--;let s=o-r,a=0;for(;aa&&92===t.charCodeAt(l-1);)l--;let h=l-a,u=su){if(92===t.charCodeAt(a+c))return n.slice(a+c+1);if(2===c)return n.slice(a+c)}s>u&&(92===e.charCodeAt(r+c)?d=c:2===c&&(d=3)),-1===d&&(d=0)}let g="";for(c=r+d+1;c<=o;++c)(c===o||92===e.charCodeAt(c))&&(g+=0===g.length?"..":"\\..");return(a+=d,g.length>0)?`${g}${n.slice(a,l)}`:(92===n.charCodeAt(a)&&++a,n.slice(a,l))},toNamespacedPath(e){if("string"!=typeof e||0===e.length)return e;let t=n5.resolve(e);if(t.length<=2)return e;if(92===t.charCodeAt(0)){if(92===t.charCodeAt(1)){let e=t.charCodeAt(2);if(63!==e&&46!==e)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(n1(t.charCodeAt(0))&&58===t.charCodeAt(1)&&92===t.charCodeAt(2))return`\\\\?\\${t}`;return e},dirname(e){nZ(e,"path");let t=e.length;if(0===t)return".";let i=-1,n=0,r=e.charCodeAt(0);if(1===t)return nQ(r)?e:".";if(nQ(r)){if(i=n=1,nQ(e.charCodeAt(1))){let r=2,o=2;for(;r2&&nQ(e.charCodeAt(2))?3:2);let o=-1,s=!0;for(let i=t-1;i>=n;--i)if(nQ(e.charCodeAt(i))){if(!s){o=i;break}}else s=!1;if(-1===o){if(-1===i)return".";o=i}return e.slice(0,o)},basename(e,t){let i;void 0!==t&&nZ(t,"ext"),nZ(e,"path");let n=0,r=-1,o=!0;if(e.length>=2&&n1(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(n=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(i=e.length-1;i>=n;--i){let l=e.charCodeAt(i);if(nQ(l)){if(!o){n=i+1;break}}else -1===a&&(o=!1,a=i+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(r=i):(s=-1,r=a))}return n===r?r=a:-1===r&&(r=e.length),e.slice(n,r)}for(i=e.length-1;i>=n;--i)if(nQ(e.charCodeAt(i))){if(!o){n=i+1;break}}else -1===r&&(o=!1,r=i+1);return -1===r?"":e.slice(n,r)},extname(e){nZ(e,"path");let t=0,i=-1,n=0,r=-1,o=!0,s=0;e.length>=2&&58===e.charCodeAt(1)&&n1(e.charCodeAt(0))&&(t=n=2);for(let a=e.length-1;a>=t;--a){let t=e.charCodeAt(a);if(nQ(t)){if(!o){n=a+1;break}continue}-1===r&&(o=!1,r=a+1),46===t?-1===i?i=a:1!==s&&(s=1):-1!==i&&(s=-1)}return -1===i||-1===r||0===s||1===s&&i===r-1&&i===n+1?"":e.slice(i,r)},format:n4.bind(null,"\\"),parse(e){nZ(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;let i=e.length,n=0,r=e.charCodeAt(0);if(1===i)return nQ(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(nQ(r)){if(n=1,nQ(e.charCodeAt(1))){let t=2,r=2;for(;t0&&(t.root=e.slice(0,n));let o=-1,s=n,a=-1,l=!0,h=e.length-1,u=0;for(;h>=n;--h){if(nQ(r=e.charCodeAt(h))){if(!l){s=h+1;break}continue}-1===a&&(l=!1,a=h+1),46===r?-1===o?o=h:1!==u&&(u=1):-1!==o&&(u=-1)}return -1!==a&&(-1===o||0===u||1===u&&o===a-1&&o===s+1?t.base=t.name=e.slice(s,a):(t.name=e.slice(s,o),t.base=e.slice(s,a),t.ext=e.slice(o,a))),s>0&&s!==n?t.dir=e.slice(0,s-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},n6=(()=>{if(nJ){let e=/\\/g;return()=>{let t=n$().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>n$()})(),n3={resolve(...e){let t="",i=!1;for(let n=e.length-1;n>=-1&&!i;n--){let r=n>=0?e[n]:n6();nZ(r,"path"),0!==r.length&&(t=`${r}/${t}`,i=47===r.charCodeAt(0))}return(t=n2(t,!i,"/",n0),i)?`/${t}`:t.length>0?t:"."},normalize(e){if(nZ(e,"path"),0===e.length)return".";let t=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0===(e=n2(e,!t,"/",n0)).length?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(nZ(e,"path"),e.length>0&&47===e.charCodeAt(0)),join(...e){let t;if(0===e.length)return".";for(let i=0;i0&&(void 0===t?t=n:t+=`/${n}`)}return void 0===t?".":n3.normalize(t)},relative(e,t){if(nZ(e,"from"),nZ(t,"to"),e===t||(e=n3.resolve(e))===(t=n3.resolve(t)))return"";let i=e.length,n=i-1,r=t.length-1,o=no){if(47===t.charCodeAt(1+a))return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else n>o&&(47===e.charCodeAt(1+a)?s=a:0===a&&(s=0))}let l="";for(a=1+s+1;a<=i;++a)(a===i||47===e.charCodeAt(a))&&(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+s)}`},toNamespacedPath:e=>e,dirname(e){if(nZ(e,"path"),0===e.length)return".";let t=47===e.charCodeAt(0),i=-1,n=!0;for(let t=e.length-1;t>=1;--t)if(47===e.charCodeAt(t)){if(!n){i=t;break}}else n=!1;return -1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){let i;void 0!==t&&nZ(t,"ext"),nZ(e,"path");let n=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(i=e.length-1;i>=0;--i){let l=e.charCodeAt(i);if(47===l){if(!o){n=i+1;break}}else -1===a&&(o=!1,a=i+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(r=i):(s=-1,r=a))}return n===r?r=a:-1===r&&(r=e.length),e.slice(n,r)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!o){n=i+1;break}}else -1===r&&(o=!1,r=i+1);return -1===r?"":e.slice(n,r)},extname(e){nZ(e,"path");let t=-1,i=0,n=-1,r=!0,o=0;for(let s=e.length-1;s>=0;--s){let a=e.charCodeAt(s);if(47===a){if(!r){i=s+1;break}continue}-1===n&&(r=!1,n=s+1),46===a?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1)}return -1===t||-1===n||0===o||1===o&&t===n-1&&t===i+1?"":e.slice(t,n)},format:n4.bind(null,"/"),parse(e){let t;nZ(e,"path");let i={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return i;let n=47===e.charCodeAt(0);n?(i.root="/",t=1):t=0;let r=-1,o=0,s=-1,a=!0,l=e.length-1,h=0;for(;l>=t;--l){let t=e.charCodeAt(l);if(47===t){if(!a){o=l+1;break}continue}-1===s&&(a=!1,s=l+1),46===t?-1===r?r=l:1!==h&&(h=1):-1!==r&&(h=-1)}if(-1!==s){let t=0===o&&n?1:o;-1===r||0===h||1===h&&r===s-1&&r===o+1?i.base=i.name=e.slice(t,s):(i.name=e.slice(t,r),i.base=e.slice(t,s),i.ext=e.slice(r,s))}return o>0?i.dir=e.slice(0,o-1):n&&(i.dir="/"),i},sep:"/",delimiter:":",win32:null,posix:null};n3.win32=n5.win32=n5,n3.posix=n5.posix=n3;let n9=nJ?n5.normalize:n3.normalize,n7=nJ?n5.resolve:n3.resolve,n8=nJ?n5.relative:n3.relative,re=nJ?n5.dirname:n3.dirname,rt=nJ?n5.basename:n3.basename,ri=nJ?n5.extname:n3.extname,rn=nJ?n5.sep:n3.sep,rr=/^\w[\w\d+.-]*$/,ro=/^\//,rs=/^\/\//,ra=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class rl{static isUri(e){return e instanceof rl||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}constructor(e,t,i,n,r,o=!1){"object"==typeof e?(this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||""):(this.scheme=e||o?e:"file",this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?"/"!==t[0]&&(t="/"+t):t="/"}return t}(this.scheme,i||""),this.query=n||"",this.fragment=r||"",function(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!rr.test(e.scheme))throw Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!ro.test(e.path))throw Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(rs.test(e.path))throw Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,o))}get fsPath(){return rp(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:r,fragment:o}=e;return(void 0===t?t=this.scheme:null===t&&(t=""),void 0===i?i=this.authority:null===i&&(i=""),void 0===n?n=this.path:null===n&&(n=""),void 0===r?r=this.query:null===r&&(r=""),void 0===o?o=this.fragment:null===o&&(o=""),t===this.scheme&&i===this.authority&&n===this.path&&r===this.query&&o===this.fragment)?this:new ru(t,i,n,r,o)}static parse(e,t=!1){let i=ra.exec(e);return i?new ru(i[2]||"",rv(i[4]||""),rv(i[5]||""),rv(i[7]||""),rv(i[9]||""),t):new ru("","","","","")}static file(e){let t="";if(nY.ED&&(e=e.replace(/\\/g,"/")),"/"===e[0]&&"/"===e[1]){let i=e.indexOf("/",2);-1===i?(t=e.substring(2),e="/"):(t=e.substring(2,i),e=e.substring(i)||"/")}return new ru("file",t,e,"","")}static from(e,t){let i=new ru(e.scheme,e.authority,e.path,e.query,e.fragment,t);return i}static joinPath(e,...t){let i;if(!e.path)throw Error("[UriError]: cannot call joinPath on URI without path");return i=nY.ED&&"file"===e.scheme?rl.file(n5.join(rp(e,!0),...t)).path:n3.join(e.path,...t),e.with({path:i})}toString(e=!1){return rf(this,e)}toJSON(){return this}static revive(e){var t,i;if(!e||e instanceof rl)return e;{let n=new ru(e);return n._formatted=null!==(t=e.external)&&void 0!==t?t:null,n._fsPath=e._sep===rh&&null!==(i=e.fsPath)&&void 0!==i?i:null,n}}}let rh=nY.ED?1:void 0;class ru extends rl{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=rp(this,!1)),this._fsPath}toString(e=!1){return e?rf(this,!0):(this._formatted||(this._formatted=rf(this,!1)),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=rh),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}let rd={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function rc(e,t,i){let n;let r=-1;for(let o=0;o=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s||i&&91===s||i&&93===s||i&&58===s)-1!==r&&(n+=encodeURIComponent(e.substring(r,o)),r=-1),void 0!==n&&(n+=e.charAt(o));else{void 0===n&&(n=e.substr(0,o));let t=rd[s];void 0!==t?(-1!==r&&(n+=encodeURIComponent(e.substring(r,o)),r=-1),n+=t):-1===r&&(r=o)}}return -1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function rg(e){let t;for(let i=0;i1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&90>=e.path.charCodeAt(1)||e.path.charCodeAt(1)>=97&&122>=e.path.charCodeAt(1))&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,nY.ED&&(i=i.replace(/\//g,"\\")),i}function rf(e,t){let i=t?rg:rc,n="",{scheme:r,authority:o,path:s,query:a,fragment:l}=e;if(r&&(n+=r+":"),(o||"file"===r)&&(n+="//"),o){let e=o.indexOf("@");if(-1!==e){let t=o.substr(0,e);o=o.substr(e+1),-1===(e=t.lastIndexOf(":"))?n+=i(t,!1,!1):n+=i(t.substr(0,e),!1,!1)+":"+i(t.substr(e+1),!1,!0),n+="@"}-1===(e=(o=o.toLowerCase()).lastIndexOf(":"))?n+=i(o,!1,!0):n+=i(o.substr(0,e),!1,!0)+o.substr(e)}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){let e=s.charCodeAt(1);e>=65&&e<=90&&(s=`/${String.fromCharCode(e+32)}:${s.substr(3)}`)}else if(s.length>=2&&58===s.charCodeAt(1)){let e=s.charCodeAt(0);e>=65&&e<=90&&(s=`${String.fromCharCode(e+32)}:${s.substr(2)}`)}n+=i(s,!0,!1)}return a&&(n+="?"+i(a,!1,!1)),l&&(n+="#"+(t?l:rc(l,!1,!1))),n}let rm=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function rv(e){return e.match(rm)?e.replace(rm,e=>(function e(t){try{return decodeURIComponent(t)}catch(i){if(t.length>3)return t.substr(0,3)+e(t.substr(3));return t}})(e)):e}class rE{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new rE(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return rE.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return rE.isBefore(this,e)}static isBefore(e,t){return e.lineNumberi||e===i&&t>n?(this.startLineNumber=i,this.startColumn=n,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=n)}isEmpty(){return r_.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return r_.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber)&&(t.lineNumber!==e.startLineNumber||!(t.columne.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumbere.endLineNumber)&&(t.lineNumber!==e.startLineNumber||!(t.column<=e.startColumn))&&(t.lineNumber!==e.endLineNumber||!(t.column>=e.endColumn))}containsRange(e){return r_.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber)&&!(t.endLineNumber>e.endLineNumber)&&(t.startLineNumber!==e.startLineNumber||!(t.startColumne.endColumn))}strictContainsRange(e){return r_.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber)&&!(t.endLineNumber>e.endLineNumber)&&(t.startLineNumber!==e.startLineNumber||!(t.startColumn<=e.startColumn))&&(t.endLineNumber!==e.endLineNumber||!(t.endColumn>=e.endColumn))}plusRange(e){return r_.plusRange(this,e)}static plusRange(e,t){let i,n,r,o;return t.startLineNumbere.endLineNumber?(r=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(r=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(r=e.endLineNumber,o=e.endColumn),new r_(i,n,r,o)}intersectRanges(e){return r_.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,n=e.startColumn,r=e.endLineNumber,o=e.endColumn,s=t.startLineNumber,a=t.startColumn,l=t.endLineNumber,h=t.endColumn;return(il?(r=l,o=h):r===l&&(o=Math.min(o,h)),i>r||i===r&&n>o)?null:new r_(i,n,r,o)}equalsRange(e){return r_.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return r_.getEndPosition(this)}static getEndPosition(e){return new rE(e.endLineNumber,e.endColumn)}getStartPosition(){return r_.getStartPosition(this)}static getStartPosition(e){return new rE(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new r_(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new r_(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return r_.collapseToStart(this)}static collapseToStart(e){return new r_(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return r_.collapseToEnd(this)}static collapseToEnd(e){return new r_(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new r_(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new r_(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new r_(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}}class rC extends r_{constructor(e,t,i,n){super(e,t,i,n),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=n}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return rC.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new rC(this.startLineNumber,this.startColumn,e,t):new rC(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new rE(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new rE(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new rC(e,t,this.endLineNumber,this.endColumn):new rC(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new rC(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new rC(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new rC(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new rC(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,n=e.length;i{e&&e.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}let rD=new class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new nT,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),nu(()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){var i;null===(i=this._factories.get(e))||void 0===i||i.dispose();let n=new rR(this,e,t);return this._factories.set(e,n),nu(()=>{let t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())})}getOrCreate(e){return rA(this,void 0,void 0,function*(){let t=this.get(e);if(t)return t;let i=this._factories.get(e);return!i||i.isResolved?null:(yield i.resolve(),this.get(e))})}isResolved(e){let t=this.get(e);if(t)return!0;let i=this._factories.get(e);return!i||!!i.isResolved}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};(N=tl||(tl={}))[N.Unknown=0]="Unknown",N[N.Disabled=1]="Disabled",N[N.Enabled=2]="Enabled",(I=th||(th={}))[I.Invoke=1]="Invoke",I[I.Auto=2]="Auto",(w=tu||(tu={}))[w.None=0]="None",w[w.KeepWhitespace=1]="KeepWhitespace",w[w.InsertAsSnippet=4]="InsertAsSnippet",(O=td||(td={}))[O.Method=0]="Method",O[O.Function=1]="Function",O[O.Constructor=2]="Constructor",O[O.Field=3]="Field",O[O.Variable=4]="Variable",O[O.Class=5]="Class",O[O.Struct=6]="Struct",O[O.Interface=7]="Interface",O[O.Module=8]="Module",O[O.Property=9]="Property",O[O.Event=10]="Event",O[O.Operator=11]="Operator",O[O.Unit=12]="Unit",O[O.Value=13]="Value",O[O.Constant=14]="Constant",O[O.Enum=15]="Enum",O[O.EnumMember=16]="EnumMember",O[O.Keyword=17]="Keyword",O[O.Text=18]="Text",O[O.Color=19]="Color",O[O.File=20]="File",O[O.Reference=21]="Reference",O[O.Customcolor=22]="Customcolor",O[O.Folder=23]="Folder",O[O.TypeParameter=24]="TypeParameter",O[O.User=25]="User",O[O.Issue=26]="Issue",O[O.Snippet=27]="Snippet",(x=tc||(tc={}))[x.Deprecated=1]="Deprecated",(D=tg||(tg={}))[D.Invoke=0]="Invoke",D[D.TriggerCharacter=1]="TriggerCharacter",D[D.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions",(M=tp||(tp={}))[M.EXACT=0]="EXACT",M[M.ABOVE=1]="ABOVE",M[M.BELOW=2]="BELOW",(k=tf||(tf={}))[k.NotSet=0]="NotSet",k[k.ContentFlush=1]="ContentFlush",k[k.RecoverFromMarkers=2]="RecoverFromMarkers",k[k.Explicit=3]="Explicit",k[k.Paste=4]="Paste",k[k.Undo=5]="Undo",k[k.Redo=6]="Redo",(P=tm||(tm={}))[P.LF=1]="LF",P[P.CRLF=2]="CRLF",(F=tv||(tv={}))[F.Text=0]="Text",F[F.Read=1]="Read",F[F.Write=2]="Write",(B=tE||(tE={}))[B.None=0]="None",B[B.Keep=1]="Keep",B[B.Brackets=2]="Brackets",B[B.Advanced=3]="Advanced",B[B.Full=4]="Full",(U=t_||(t_={}))[U.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",U[U.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",U[U.accessibilitySupport=2]="accessibilitySupport",U[U.accessibilityPageSize=3]="accessibilityPageSize",U[U.ariaLabel=4]="ariaLabel",U[U.ariaRequired=5]="ariaRequired",U[U.autoClosingBrackets=6]="autoClosingBrackets",U[U.screenReaderAnnounceInlineSuggestion=7]="screenReaderAnnounceInlineSuggestion",U[U.autoClosingDelete=8]="autoClosingDelete",U[U.autoClosingOvertype=9]="autoClosingOvertype",U[U.autoClosingQuotes=10]="autoClosingQuotes",U[U.autoIndent=11]="autoIndent",U[U.automaticLayout=12]="automaticLayout",U[U.autoSurround=13]="autoSurround",U[U.bracketPairColorization=14]="bracketPairColorization",U[U.guides=15]="guides",U[U.codeLens=16]="codeLens",U[U.codeLensFontFamily=17]="codeLensFontFamily",U[U.codeLensFontSize=18]="codeLensFontSize",U[U.colorDecorators=19]="colorDecorators",U[U.colorDecoratorsLimit=20]="colorDecoratorsLimit",U[U.columnSelection=21]="columnSelection",U[U.comments=22]="comments",U[U.contextmenu=23]="contextmenu",U[U.copyWithSyntaxHighlighting=24]="copyWithSyntaxHighlighting",U[U.cursorBlinking=25]="cursorBlinking",U[U.cursorSmoothCaretAnimation=26]="cursorSmoothCaretAnimation",U[U.cursorStyle=27]="cursorStyle",U[U.cursorSurroundingLines=28]="cursorSurroundingLines",U[U.cursorSurroundingLinesStyle=29]="cursorSurroundingLinesStyle",U[U.cursorWidth=30]="cursorWidth",U[U.disableLayerHinting=31]="disableLayerHinting",U[U.disableMonospaceOptimizations=32]="disableMonospaceOptimizations",U[U.domReadOnly=33]="domReadOnly",U[U.dragAndDrop=34]="dragAndDrop",U[U.dropIntoEditor=35]="dropIntoEditor",U[U.emptySelectionClipboard=36]="emptySelectionClipboard",U[U.experimentalWhitespaceRendering=37]="experimentalWhitespaceRendering",U[U.extraEditorClassName=38]="extraEditorClassName",U[U.fastScrollSensitivity=39]="fastScrollSensitivity",U[U.find=40]="find",U[U.fixedOverflowWidgets=41]="fixedOverflowWidgets",U[U.folding=42]="folding",U[U.foldingStrategy=43]="foldingStrategy",U[U.foldingHighlight=44]="foldingHighlight",U[U.foldingImportsByDefault=45]="foldingImportsByDefault",U[U.foldingMaximumRegions=46]="foldingMaximumRegions",U[U.unfoldOnClickAfterEndOfLine=47]="unfoldOnClickAfterEndOfLine",U[U.fontFamily=48]="fontFamily",U[U.fontInfo=49]="fontInfo",U[U.fontLigatures=50]="fontLigatures",U[U.fontSize=51]="fontSize",U[U.fontWeight=52]="fontWeight",U[U.fontVariations=53]="fontVariations",U[U.formatOnPaste=54]="formatOnPaste",U[U.formatOnType=55]="formatOnType",U[U.glyphMargin=56]="glyphMargin",U[U.gotoLocation=57]="gotoLocation",U[U.hideCursorInOverviewRuler=58]="hideCursorInOverviewRuler",U[U.hover=59]="hover",U[U.inDiffEditor=60]="inDiffEditor",U[U.inlineSuggest=61]="inlineSuggest",U[U.letterSpacing=62]="letterSpacing",U[U.lightbulb=63]="lightbulb",U[U.lineDecorationsWidth=64]="lineDecorationsWidth",U[U.lineHeight=65]="lineHeight",U[U.lineNumbers=66]="lineNumbers",U[U.lineNumbersMinChars=67]="lineNumbersMinChars",U[U.linkedEditing=68]="linkedEditing",U[U.links=69]="links",U[U.matchBrackets=70]="matchBrackets",U[U.minimap=71]="minimap",U[U.mouseStyle=72]="mouseStyle",U[U.mouseWheelScrollSensitivity=73]="mouseWheelScrollSensitivity",U[U.mouseWheelZoom=74]="mouseWheelZoom",U[U.multiCursorMergeOverlapping=75]="multiCursorMergeOverlapping",U[U.multiCursorModifier=76]="multiCursorModifier",U[U.multiCursorPaste=77]="multiCursorPaste",U[U.multiCursorLimit=78]="multiCursorLimit",U[U.occurrencesHighlight=79]="occurrencesHighlight",U[U.overviewRulerBorder=80]="overviewRulerBorder",U[U.overviewRulerLanes=81]="overviewRulerLanes",U[U.padding=82]="padding",U[U.pasteAs=83]="pasteAs",U[U.parameterHints=84]="parameterHints",U[U.peekWidgetDefaultFocus=85]="peekWidgetDefaultFocus",U[U.definitionLinkOpensInPeek=86]="definitionLinkOpensInPeek",U[U.quickSuggestions=87]="quickSuggestions",U[U.quickSuggestionsDelay=88]="quickSuggestionsDelay",U[U.readOnly=89]="readOnly",U[U.readOnlyMessage=90]="readOnlyMessage",U[U.renameOnType=91]="renameOnType",U[U.renderControlCharacters=92]="renderControlCharacters",U[U.renderFinalNewline=93]="renderFinalNewline",U[U.renderLineHighlight=94]="renderLineHighlight",U[U.renderLineHighlightOnlyWhenFocus=95]="renderLineHighlightOnlyWhenFocus",U[U.renderValidationDecorations=96]="renderValidationDecorations",U[U.renderWhitespace=97]="renderWhitespace",U[U.revealHorizontalRightPadding=98]="revealHorizontalRightPadding",U[U.roundedSelection=99]="roundedSelection",U[U.rulers=100]="rulers",U[U.scrollbar=101]="scrollbar",U[U.scrollBeyondLastColumn=102]="scrollBeyondLastColumn",U[U.scrollBeyondLastLine=103]="scrollBeyondLastLine",U[U.scrollPredominantAxis=104]="scrollPredominantAxis",U[U.selectionClipboard=105]="selectionClipboard",U[U.selectionHighlight=106]="selectionHighlight",U[U.selectOnLineNumbers=107]="selectOnLineNumbers",U[U.showFoldingControls=108]="showFoldingControls",U[U.showUnused=109]="showUnused",U[U.snippetSuggestions=110]="snippetSuggestions",U[U.smartSelect=111]="smartSelect",U[U.smoothScrolling=112]="smoothScrolling",U[U.stickyScroll=113]="stickyScroll",U[U.stickyTabStops=114]="stickyTabStops",U[U.stopRenderingLineAfter=115]="stopRenderingLineAfter",U[U.suggest=116]="suggest",U[U.suggestFontSize=117]="suggestFontSize",U[U.suggestLineHeight=118]="suggestLineHeight",U[U.suggestOnTriggerCharacters=119]="suggestOnTriggerCharacters",U[U.suggestSelection=120]="suggestSelection",U[U.tabCompletion=121]="tabCompletion",U[U.tabIndex=122]="tabIndex",U[U.unicodeHighlighting=123]="unicodeHighlighting",U[U.unusualLineTerminators=124]="unusualLineTerminators",U[U.useShadowDOM=125]="useShadowDOM",U[U.useTabStops=126]="useTabStops",U[U.wordBreak=127]="wordBreak",U[U.wordSeparators=128]="wordSeparators",U[U.wordWrap=129]="wordWrap",U[U.wordWrapBreakAfterCharacters=130]="wordWrapBreakAfterCharacters",U[U.wordWrapBreakBeforeCharacters=131]="wordWrapBreakBeforeCharacters",U[U.wordWrapColumn=132]="wordWrapColumn",U[U.wordWrapOverride1=133]="wordWrapOverride1",U[U.wordWrapOverride2=134]="wordWrapOverride2",U[U.wrappingIndent=135]="wrappingIndent",U[U.wrappingStrategy=136]="wrappingStrategy",U[U.showDeprecated=137]="showDeprecated",U[U.inlayHints=138]="inlayHints",U[U.editorClassName=139]="editorClassName",U[U.pixelRatio=140]="pixelRatio",U[U.tabFocusMode=141]="tabFocusMode",U[U.layoutInfo=142]="layoutInfo",U[U.wrappingInfo=143]="wrappingInfo",U[U.defaultColorDecorators=144]="defaultColorDecorators",U[U.colorDecoratorsActivatedOn=145]="colorDecoratorsActivatedOn",(H=tC||(tC={}))[H.TextDefined=0]="TextDefined",H[H.LF=1]="LF",H[H.CRLF=2]="CRLF",(V=tS||(tS={}))[V.LF=0]="LF",V[V.CRLF=1]="CRLF",(W=ty||(ty={}))[W.Left=1]="Left",W[W.Right=2]="Right",(G=tT||(tT={}))[G.None=0]="None",G[G.Indent=1]="Indent",G[G.IndentOutdent=2]="IndentOutdent",G[G.Outdent=3]="Outdent",(z=tb||(tb={}))[z.Both=0]="Both",z[z.Right=1]="Right",z[z.Left=2]="Left",z[z.None=3]="None",(Y=tA||(tA={}))[Y.Type=1]="Type",Y[Y.Parameter=2]="Parameter",(K=tR||(tR={}))[K.Automatic=0]="Automatic",K[K.Explicit=1]="Explicit",($=tL||(tL={}))[$.DependsOnKbLayout=-1]="DependsOnKbLayout",$[$.Unknown=0]="Unknown",$[$.Backspace=1]="Backspace",$[$.Tab=2]="Tab",$[$.Enter=3]="Enter",$[$.Shift=4]="Shift",$[$.Ctrl=5]="Ctrl",$[$.Alt=6]="Alt",$[$.PauseBreak=7]="PauseBreak",$[$.CapsLock=8]="CapsLock",$[$.Escape=9]="Escape",$[$.Space=10]="Space",$[$.PageUp=11]="PageUp",$[$.PageDown=12]="PageDown",$[$.End=13]="End",$[$.Home=14]="Home",$[$.LeftArrow=15]="LeftArrow",$[$.UpArrow=16]="UpArrow",$[$.RightArrow=17]="RightArrow",$[$.DownArrow=18]="DownArrow",$[$.Insert=19]="Insert",$[$.Delete=20]="Delete",$[$.Digit0=21]="Digit0",$[$.Digit1=22]="Digit1",$[$.Digit2=23]="Digit2",$[$.Digit3=24]="Digit3",$[$.Digit4=25]="Digit4",$[$.Digit5=26]="Digit5",$[$.Digit6=27]="Digit6",$[$.Digit7=28]="Digit7",$[$.Digit8=29]="Digit8",$[$.Digit9=30]="Digit9",$[$.KeyA=31]="KeyA",$[$.KeyB=32]="KeyB",$[$.KeyC=33]="KeyC",$[$.KeyD=34]="KeyD",$[$.KeyE=35]="KeyE",$[$.KeyF=36]="KeyF",$[$.KeyG=37]="KeyG",$[$.KeyH=38]="KeyH",$[$.KeyI=39]="KeyI",$[$.KeyJ=40]="KeyJ",$[$.KeyK=41]="KeyK",$[$.KeyL=42]="KeyL",$[$.KeyM=43]="KeyM",$[$.KeyN=44]="KeyN",$[$.KeyO=45]="KeyO",$[$.KeyP=46]="KeyP",$[$.KeyQ=47]="KeyQ",$[$.KeyR=48]="KeyR",$[$.KeyS=49]="KeyS",$[$.KeyT=50]="KeyT",$[$.KeyU=51]="KeyU",$[$.KeyV=52]="KeyV",$[$.KeyW=53]="KeyW",$[$.KeyX=54]="KeyX",$[$.KeyY=55]="KeyY",$[$.KeyZ=56]="KeyZ",$[$.Meta=57]="Meta",$[$.ContextMenu=58]="ContextMenu",$[$.F1=59]="F1",$[$.F2=60]="F2",$[$.F3=61]="F3",$[$.F4=62]="F4",$[$.F5=63]="F5",$[$.F6=64]="F6",$[$.F7=65]="F7",$[$.F8=66]="F8",$[$.F9=67]="F9",$[$.F10=68]="F10",$[$.F11=69]="F11",$[$.F12=70]="F12",$[$.F13=71]="F13",$[$.F14=72]="F14",$[$.F15=73]="F15",$[$.F16=74]="F16",$[$.F17=75]="F17",$[$.F18=76]="F18",$[$.F19=77]="F19",$[$.F20=78]="F20",$[$.F21=79]="F21",$[$.F22=80]="F22",$[$.F23=81]="F23",$[$.F24=82]="F24",$[$.NumLock=83]="NumLock",$[$.ScrollLock=84]="ScrollLock",$[$.Semicolon=85]="Semicolon",$[$.Equal=86]="Equal",$[$.Comma=87]="Comma",$[$.Minus=88]="Minus",$[$.Period=89]="Period",$[$.Slash=90]="Slash",$[$.Backquote=91]="Backquote",$[$.BracketLeft=92]="BracketLeft",$[$.Backslash=93]="Backslash",$[$.BracketRight=94]="BracketRight",$[$.Quote=95]="Quote",$[$.OEM_8=96]="OEM_8",$[$.IntlBackslash=97]="IntlBackslash",$[$.Numpad0=98]="Numpad0",$[$.Numpad1=99]="Numpad1",$[$.Numpad2=100]="Numpad2",$[$.Numpad3=101]="Numpad3",$[$.Numpad4=102]="Numpad4",$[$.Numpad5=103]="Numpad5",$[$.Numpad6=104]="Numpad6",$[$.Numpad7=105]="Numpad7",$[$.Numpad8=106]="Numpad8",$[$.Numpad9=107]="Numpad9",$[$.NumpadMultiply=108]="NumpadMultiply",$[$.NumpadAdd=109]="NumpadAdd",$[$.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",$[$.NumpadSubtract=111]="NumpadSubtract",$[$.NumpadDecimal=112]="NumpadDecimal",$[$.NumpadDivide=113]="NumpadDivide",$[$.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",$[$.ABNT_C1=115]="ABNT_C1",$[$.ABNT_C2=116]="ABNT_C2",$[$.AudioVolumeMute=117]="AudioVolumeMute",$[$.AudioVolumeUp=118]="AudioVolumeUp",$[$.AudioVolumeDown=119]="AudioVolumeDown",$[$.BrowserSearch=120]="BrowserSearch",$[$.BrowserHome=121]="BrowserHome",$[$.BrowserBack=122]="BrowserBack",$[$.BrowserForward=123]="BrowserForward",$[$.MediaTrackNext=124]="MediaTrackNext",$[$.MediaTrackPrevious=125]="MediaTrackPrevious",$[$.MediaStop=126]="MediaStop",$[$.MediaPlayPause=127]="MediaPlayPause",$[$.LaunchMediaPlayer=128]="LaunchMediaPlayer",$[$.LaunchMail=129]="LaunchMail",$[$.LaunchApp2=130]="LaunchApp2",$[$.Clear=131]="Clear",$[$.MAX_VALUE=132]="MAX_VALUE",(X=tN||(tN={}))[X.Hint=1]="Hint",X[X.Info=2]="Info",X[X.Warning=4]="Warning",X[X.Error=8]="Error",(j=tI||(tI={}))[j.Unnecessary=1]="Unnecessary",j[j.Deprecated=2]="Deprecated",(q=tw||(tw={}))[q.Inline=1]="Inline",q[q.Gutter=2]="Gutter",(Z=tO||(tO={}))[Z.UNKNOWN=0]="UNKNOWN",Z[Z.TEXTAREA=1]="TEXTAREA",Z[Z.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",Z[Z.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",Z[Z.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",Z[Z.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",Z[Z.CONTENT_TEXT=6]="CONTENT_TEXT",Z[Z.CONTENT_EMPTY=7]="CONTENT_EMPTY",Z[Z.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",Z[Z.CONTENT_WIDGET=9]="CONTENT_WIDGET",Z[Z.OVERVIEW_RULER=10]="OVERVIEW_RULER",Z[Z.SCROLLBAR=11]="SCROLLBAR",Z[Z.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",Z[Z.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR",(J=tx||(tx={}))[J.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",J[J.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",J[J.TOP_CENTER=2]="TOP_CENTER",(Q=tD||(tD={}))[Q.Left=1]="Left",Q[Q.Center=2]="Center",Q[Q.Right=4]="Right",Q[Q.Full=7]="Full",(ee=tM||(tM={}))[ee.Left=0]="Left",ee[ee.Right=1]="Right",ee[ee.None=2]="None",ee[ee.LeftOfInjectedText=3]="LeftOfInjectedText",ee[ee.RightOfInjectedText=4]="RightOfInjectedText",(et=tk||(tk={}))[et.Off=0]="Off",et[et.On=1]="On",et[et.Relative=2]="Relative",et[et.Interval=3]="Interval",et[et.Custom=4]="Custom",(ei=tP||(tP={}))[ei.None=0]="None",ei[ei.Text=1]="Text",ei[ei.Blocks=2]="Blocks",(en=tF||(tF={}))[en.Smooth=0]="Smooth",en[en.Immediate=1]="Immediate",(er=tB||(tB={}))[er.Auto=1]="Auto",er[er.Hidden=2]="Hidden",er[er.Visible=3]="Visible",(eo=tU||(tU={}))[eo.LTR=0]="LTR",eo[eo.RTL=1]="RTL",(es=tH||(tH={}))[es.Invoke=1]="Invoke",es[es.TriggerCharacter=2]="TriggerCharacter",es[es.ContentChange=3]="ContentChange",(ea=tV||(tV={}))[ea.File=0]="File",ea[ea.Module=1]="Module",ea[ea.Namespace=2]="Namespace",ea[ea.Package=3]="Package",ea[ea.Class=4]="Class",ea[ea.Method=5]="Method",ea[ea.Property=6]="Property",ea[ea.Field=7]="Field",ea[ea.Constructor=8]="Constructor",ea[ea.Enum=9]="Enum",ea[ea.Interface=10]="Interface",ea[ea.Function=11]="Function",ea[ea.Variable=12]="Variable",ea[ea.Constant=13]="Constant",ea[ea.String=14]="String",ea[ea.Number=15]="Number",ea[ea.Boolean=16]="Boolean",ea[ea.Array=17]="Array",ea[ea.Object=18]="Object",ea[ea.Key=19]="Key",ea[ea.Null=20]="Null",ea[ea.EnumMember=21]="EnumMember",ea[ea.Struct=22]="Struct",ea[ea.Event=23]="Event",ea[ea.Operator=24]="Operator",ea[ea.TypeParameter=25]="TypeParameter",(el=tW||(tW={}))[el.Deprecated=1]="Deprecated",(eh=tG||(tG={}))[eh.Hidden=0]="Hidden",eh[eh.Blink=1]="Blink",eh[eh.Smooth=2]="Smooth",eh[eh.Phase=3]="Phase",eh[eh.Expand=4]="Expand",eh[eh.Solid=5]="Solid",(eu=tz||(tz={}))[eu.Line=1]="Line",eu[eu.Block=2]="Block",eu[eu.Underline=3]="Underline",eu[eu.LineThin=4]="LineThin",eu[eu.BlockOutline=5]="BlockOutline",eu[eu.UnderlineThin=6]="UnderlineThin",(ed=tY||(tY={}))[ed.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",ed[ed.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",ed[ed.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",ed[ed.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter",(ec=tK||(tK={}))[ec.None=0]="None",ec[ec.Same=1]="Same",ec[ec.Indent=2]="Indent",ec[ec.DeepIndent=3]="DeepIndent";class rM{static chord(e,t){return(e|(65535&t)<<16>>>0)>>>0}}function rk(){return{editor:void 0,languages:void 0,CancellationTokenSource:nD,Emitter:nT,KeyCode:tL,KeyMod:rM,Position:rE,Range:r_,Selection:rC,SelectionDirection:tU,MarkerSeverity:tN,MarkerTag:tI,Uri:rl,Token:rN}}rM.CtrlCmd=2048,rM.Shift=1024,rM.Alt=512,rM.WinCtrl=256,i(95656);class rP{get cachedValues(){return this._map}constructor(e){this.fn=e,this._map=new Map}get(e){if(this._map.has(e))return this._map.get(e);let t=this.fn(e);return this._map.set(e,t),t}}class rF{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}let rB=/{(\d+)}/g;function rU(e,...t){return 0===t.length?e:e.replace(rB,function(e,i){let n=parseInt(i,10);return isNaN(n)||n<0||n>=t.length?e:t[n]})}function rH(e){return e.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function rV(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function rW(e,t){if(!e||!t)return e;let i=t.length;if(0===i||0===e.length)return e;let n=0;for(;e.indexOf(t,n)===n;)n+=i;return e.substring(n)}function rG(e,t,i={}){if(!e)throw Error("Cannot create regex from empty string");t||(e=rV(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let n="";return i.global&&(n+="g"),i.matchCase||(n+="i"),i.multiline&&(n+="m"),i.unicode&&(n+="u"),new RegExp(e,n)}function rz(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function rY(e){return e.split(/\r\n|\r|\n/)}function rK(e){for(let t=0,i=e.length;t=0;i--){let t=e.charCodeAt(i);if(32!==t&&9!==t)return i}return -1}function rj(e,t){return et?1:0}function rq(e,t,i=0,n=e.length,r=0,o=t.length){for(;io)return 1}let s=n-i,a=o-r;return sa?1:0}function rZ(e,t){return rJ(e,t,0,e.length,0,t.length)}function rJ(e,t,i=0,n=e.length,r=0,o=t.length){for(;i=128||a>=128)return rq(e.toLowerCase(),t.toLowerCase(),i,n,r,o);r0(s)&&(s-=32),r0(a)&&(a-=32);let l=s-a;if(0!==l)return l}let s=n-i,a=o-r;return sa?1:0}function rQ(e){return e>=48&&e<=57}function r0(e){return e>=97&&e<=122}function r1(e){return e>=65&&e<=90}function r2(e,t){return e.length===t.length&&0===rJ(e,t)}function r4(e,t){let i=t.length;return!(t.length>e.length)&&0===rJ(e,t,0,i)}function r5(e,t){let i;let n=Math.min(e.length,t.length);for(i=0;i1){let n=e.charCodeAt(t-2);if(r3(n))return r7(n,i)}return i}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){let e=r8(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class ot{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new oe(e,t)}nextGraphemeLength(){let e=op.getInstance(),t=this._iterator,i=t.offset,n=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){let i=t.offset,r=e.getGraphemeBreakType(t.nextCodePoint());if(og(n,r)){t.setOffset(i);break}n=r}return t.offset-i}prevGraphemeLength(){let e=op.getInstance(),t=this._iterator,i=t.offset,n=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){let i=t.offset,r=e.getGraphemeBreakType(t.prevCodePoint());if(og(r,n)){t.setOffset(i);break}n=r}return i-t.offset}eol(){return this._iterator.eol()}}function oi(e,t){let i=new ot(e,t);return i.nextGraphemeLength()}function on(e,t){let i=new ot(e,t);return i.prevGraphemeLength()}function or(e){return E||(E=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),E.test(e)}let oo=/^[\t\n\r\x20-\x7E]*$/;function os(e){return oo.test(e)}let oa=/[\u2028\u2029]/;function ol(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function oh(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}let ou=String.fromCharCode(65279);function od(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function oc(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function og(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&(11!==e&&9!==e||9!==t&&10!==t)&&(12!==e&&10!==e||10!==t)&&5!==t&&13!==t&&7!==t&&1!==e&&(13!==e||14!==t)&&(6!==e||6!==t))}class op{static getInstance(){return op._INSTANCE||(op._INSTANCE=new op),op._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;let t=this._data,i=t.length/3,n=1;for(;n<=i;)if(et[3*n+1]))return t[3*n+2];n=2*n+1}return 0}}op._INSTANCE=null;class of{static getInstance(e){return of.cache.get(Array.from(e))}static getLocales(){return of._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}of.ambiguousCharacterData=new rF(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),of.cache=new class{constructor(e){this.fn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){let t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}}(e=>{let t;function i(e){let t=new Map;for(let i=0;i!e.startsWith("_")&&e in n);for(let e of(0===r.length&&(r=["_default"]),r)){let r=i(n[e]);t=function(e,t){if(!e)return t;let i=new Map;for(let[n,r]of e)t.has(n)&&i.set(n,r);return i}(t,r)}let o=i(n._common),s=function(e,t){let i=new Map(e);for(let[e,n]of t)i.set(e,n);return i}(o,t);return new of(s)}),of._locales=new rF(()=>Object.keys(of.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));class om{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(om.getRawData())),this._data}static isInvisibleCharacter(e){return om.getData().has(e)}static get codePoints(){return om.getData()}}om._data=void 0;class ov{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}ov.INSTANCE=new ov;class oE extends nc{constructor(){super(),this._onDidChange=this._register(new nT),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){var t;null===(t=this._mediaQueryList)||void 0===t||t.removeEventListener("change",this._listener),this._mediaQueryList=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),e&&this._onDidChange.fire()}}class o_ extends nc{get value(){return this._value}constructor(){super(),this._onDidChange=this._register(new nT),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();let e=this._register(new oE);this._register(e.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}_getPixelRatio(){let e=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,i=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/i}}function oC(e,t){"string"==typeof e&&(e=window.matchMedia(e)),e.addEventListener("change",t)}let oS=new class{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=new o_),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}},oy=navigator.userAgent,oT=oy.indexOf("Firefox")>=0,ob=oy.indexOf("AppleWebKit")>=0,oA=oy.indexOf("Chrome")>=0,oR=!oA&&oy.indexOf("Safari")>=0,oL=!oA&&!oR&&ob;oy.indexOf("Electron/");let oN=oy.indexOf("Android")>=0,oI=!1;if(window.matchMedia){let e=window.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=window.matchMedia("(display-mode: fullscreen)");oI=e.matches,oC(e,({matches:e})=>{oI&&t.matches||(oI=e)})}class ow{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){let t=oO(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){let t=oO(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){let t=oO(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){let t=oO(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){let t=oO(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){let t=oO(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){let t=oO(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){let t=oO(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){let t=oO(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){let t=oO(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){let t=oO(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function oO(e){return"number"==typeof e?`${e}px`:e}function ox(e){return new ow(e)}function oD(e,t){e instanceof ow?(e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setFontVariationSettings(t.fontVariationSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)):(e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.fontVariationSettings=t.fontVariationSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px")}class oM{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class ok{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){let e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";let t=document.createElement("div");oD(t,this._bareFontInfo),e.appendChild(t);let i=document.createElement("div");oD(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);let n=document.createElement("div");oD(n,this._bareFontInfo),n.style.fontStyle="italic",e.appendChild(n);let r=[];for(let e of this._requests){let o;0===e.type&&(o=t),2===e.type&&(o=i),1===e.type&&(o=n),o.appendChild(document.createElement("br"));let s=document.createElement("span");ok._render(s,e),o.appendChild(s),r.push(s)}this._container=e,this._testElements=r}static _render(e,t){if(" "===t.chr){let t="\xa0";for(let e=0;e<8;e++)t+=t;e.innerText=t}else{let i=t.chr;for(let e=0;e<8;e++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;ethis._values[e])}}let oV=new class extends nc{constructor(){super(),this._onDidChange=this._register(new nT),this.onDidChange=this._onDidChange.event,this._cache=new oH,this._evictUntrustedReadingsTimeout=-1}dispose(){-1!==this._evictUntrustedReadingsTimeout&&(window.clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearAllFontInfos(){this._cache=new oH,this._onDidChange.fire()}_writeToCache(e,t){this._cache.put(e,t),t.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=window.setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){let e=this._cache.getValues(),t=!1;for(let i of e)i.isTrusted||(t=!0,this._cache.remove(i));t&&this._onDidChange.fire()}readFontInfo(e){if(!this._cache.has(e)){let t=this._actualReadFontInfo(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new oU({pixelRatio:oS.value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),wsmiddotWidth:Math.max(t.wsmiddotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)}_createRequest(e,t,i,n){let r=new oM(e,t);return i.push(r),null==n||n.push(r),r}_actualReadFontInfo(e){let t=[],i=[],n=this._createRequest("n",0,t,i),r=this._createRequest("m",0,t,null),o=this._createRequest(" ",0,t,i),s=this._createRequest("0",0,t,i),a=this._createRequest("1",0,t,i),l=this._createRequest("2",0,t,i),h=this._createRequest("3",0,t,i),u=this._createRequest("4",0,t,i),d=this._createRequest("5",0,t,i),c=this._createRequest("6",0,t,i),g=this._createRequest("7",0,t,i),p=this._createRequest("8",0,t,i),f=this._createRequest("9",0,t,i),m=this._createRequest("→",0,t,i),v=this._createRequest("→",0,t,null),E=this._createRequest("\xb7",0,t,i),_=this._createRequest(String.fromCharCode(11825),0,t,null),C="|/-_ilm%";for(let e=0,n=C.length;e.001){y=!1;break}}let b=!0;return y&&v.width!==T&&(b=!1),v.width>m.width&&(b=!1),new oU({pixelRatio:oS.value,fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,fontVariationSettings:e.fontVariationSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:y,typicalHalfwidthCharacterWidth:n.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:b,spaceWidth:o.width,middotWidth:E.width,wsmiddotWidth:_.width,maxDigitWidth:S},!0)}};(eg=t$||(t$={})).serviceIds=new Map,eg.DI_TARGET="$di$target",eg.DI_DEPENDENCIES="$di$dependencies",eg.getServiceDependencies=function(e){return e[eg.DI_DEPENDENCIES]||[]};let oW=oG("instantiationService");function oG(e){if(t$.serviceIds.has(e))return t$.serviceIds.get(e);let t=function(e,i,n){if(3!=arguments.length)throw Error("@IServiceName-decorator can only be used to decorate a parameter");e[t$.DI_TARGET]===e?e[t$.DI_DEPENDENCIES].push({id:t,index:n}):(e[t$.DI_DEPENDENCIES]=[{id:t,index:n}],e[t$.DI_TARGET]=e)};return t.toString=()=>e,t$.serviceIds.set(e,t),t}let oz=oG("codeEditorService");function oY(e,t){if(!e)throw Error(t?`Assertion failed (${t})`:"Assertion Failed")}function oK(e,t="Unreachable"){throw Error(t)}function o$(e){e()||(e(),i1(new nt("Assertion Failed")))}function oX(e,t){let i=0;for(;i\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw i7(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;let e=this._advance();switch(e){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){let e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){let e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(o0("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(o0("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(o0("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&this._input.charCodeAt(this._current)===e&&(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){let t=this._start,i=this._input.substring(this._start,this._current),n={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(n)}_string(){this.stringRe.lastIndex=this._start;let e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;let t=this._input.substring(this._start,this._current),i=o4._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(o1);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let e=this._current,t=!1,i=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(o2);return}let n=this._input.charCodeAt(e);if(t)t=!1;else if(47!==n||i)91===n?i=!0:92===n?t=!0:93===n&&(i=!1);else{e++;break}e++}for(;e=this._input.length}}o4._regexFlags=new Set(["i","g","s","m","y","u"].map(e=>e.charCodeAt(0))),o4._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);let o5=new Map;o5.set("false",!1),o5.set("true",!0),o5.set("isMac",nY.dz),o5.set("isLinux",nY.IJ),o5.set("isWindows",nY.ED),o5.set("isWeb",nY.$L),o5.set("isMacNative",nY.dz&&!nY.$L),o5.set("isEdge",nY.un),o5.set("isFirefox",nY.vU),o5.set("isChrome",nY.i7),o5.set("isSafari",nY.G6);let o6=Object.prototype.hasOwnProperty,o3={regexParsingWithErrorRecovery:!0},o9=(0,rL.NC)("contextkey.parser.error.emptyString","Empty context key expression"),o7=(0,rL.NC)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),o8=(0,rL.NC)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),se=(0,rL.NC)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),st=(0,rL.NC)("contextkey.parser.error.unexpectedToken","Unexpected token"),si=(0,rL.NC)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),sn=(0,rL.NC)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),sr=(0,rL.NC)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class so{constructor(e=o3){this._config=e,this._scanner=new o4,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""===e){this._parsingErrors.push({message:o9,offset:0,lexeme:"",additionalInfo:o7});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{let e=this._expr();if(!this._isAtEnd()){let e=this._peek(),t=17===e.type?si:void 0;throw this._parsingErrors.push({message:st,offset:e.offset,lexeme:o4.getLexeme(e),additionalInfo:t}),so._parseError}return e}catch(e){if(e!==so._parseError)throw e;return}}_expr(){return this._or()}_or(){let e=[this._and()];for(;this._matchOne(16);){let t=this._and();e.push(t)}return 1===e.length?e[0]:ss.or(...e)}_and(){let e=[this._term()];for(;this._matchOne(15);){let t=this._term();e.push(t)}return 1===e.length?e[0]:ss.and(...e)}_term(){if(this._matchOne(2)){let e=this._peek();switch(e.type){case 11:return this._advance(),sl.INSTANCE;case 12:return this._advance(),sh.INSTANCE;case 0:{this._advance();let e=this._expr();return this._consume(1,se),null==e?void 0:e.negate()}case 17:return this._advance(),sf.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){let e=this._peek();switch(e.type){case 11:return this._advance(),ss.true();case 12:return this._advance(),ss.false();case 0:{this._advance();let e=this._expr();return this._consume(1,se),e}case 17:{let t=e.lexeme;if(this._advance(),this._matchOne(9)){let e=this._peek();if(!this._config.regexParsingWithErrorRecovery){let i;if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);let n=e.lexeme,r=n.lastIndexOf("/"),o=r===n.length-1?void 0:this._removeFlagsGY(n.substring(r+1));try{i=new RegExp(n.substring(1,r),o)}catch(t){throw this._errExpectedButGot("REGEX",e)}return sS.create(t,i)}switch(e.type){case 10:case 19:{let i;let n=[e.lexeme];this._advance();let r=this._peek(),o=0;for(let t=0;t=0){let o=i.slice(t+1,r),s="i"===i[r+1]?"i":"";try{n=new RegExp(o,s)}catch(t){throw this._errExpectedButGot("REGEX",e)}}}if(null===n)throw this._errExpectedButGot("REGEX",e);return sS.create(t,n)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,o8);let e=this._value();return ss.notIn(t,e)}let i=this._peek().type;switch(i){case 3:{this._advance();let e=this._value();if(18===this._previous().type)return ss.equals(t,e);switch(e){case"true":return ss.has(t);case"false":return ss.not(t);default:return ss.equals(t,e)}}case 4:{this._advance();let e=this._value();if(18===this._previous().type)return ss.notEquals(t,e);switch(e){case"true":return ss.not(t);case"false":return ss.has(t);default:return ss.notEquals(t,e)}}case 5:return this._advance(),s_.create(t,this._value());case 6:return this._advance(),sC.create(t,this._value());case 7:return this._advance(),sv.create(t,this._value());case 8:return this._advance(),sE.create(t,this._value());case 13:return this._advance(),ss.in(t,this._value());default:return ss.has(t)}}case 20:throw this._parsingErrors.push({message:sn,offset:e.offset,lexeme:"",additionalInfo:sr}),so._parseError;default:throw this._errExpectedButGot(`true | false | KEY +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[207],{96991:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 144H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zM464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16z"}}]},name:"appstore",theme:"filled"},s=i(84089),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},29158:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},s=i(84089),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},49591:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h360c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H184V184h656v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM653.3 599.4l52.2-52.2a8.01 8.01 0 00-4.7-13.6l-179.4-21c-5.1-.6-9.5 3.7-8.9 8.9l21 179.4c.8 6.6 8.9 9.4 13.6 4.7l52.4-52.4 256.2 256.2c3.1 3.1 8.2 3.1 11.3 0l42.4-42.4c3.1-3.1 3.1-8.2 0-11.3L653.3 599.4z"}}]},name:"select",theme:"outlined"},s=i(84089),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},88484:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},s=i(84089),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},90494:function(e,t){"use strict";var i=function(){function e(){this._events={}}return e.prototype.on=function(e,t,i){return this._events[e]||(this._events[e]=[]),this._events[e].push({callback:t,once:!!i}),this},e.prototype.once=function(e,t){return this.on(e,t,!0)},e.prototype.emit=function(e){for(var t=this,i=[],n=1;n=0&&t._call.call(null,e),t=t._next;--u}()}finally{u=0,function(){for(var e,t,i=n,o=1/0;i;)i._call?(o>i._time&&(o=i._time),e=i,i=i._next):(t=i._next,i._next=null,i=e?e._next=t:n=t);r=e,b(o)}(),p=0}}function T(){var e=m.now(),t=e-g;t>1e3&&(f-=t,g=e)}function b(e){!u&&(d&&(d=clearTimeout(d)),e-p>24?(e<1/0&&(d=setTimeout(y,e-m.now()-f)),c&&(c=clearInterval(c))):(c||(g=m.now(),c=setInterval(T,1e3)),u=1,v(y)))}function A(e,t,i){e.prototype=t.prototype=i,i.constructor=e}function R(e,t){var i=Object.create(e.prototype);for(var n in t)i[n]=t[n];return i}function L(){}C.prototype=S.prototype={constructor:C,restart:function(e,t,i){if("function"!=typeof e)throw TypeError("callback is not a function");i=(null==i?E():+i)+(null==t?0:+t),this._next||r===this||(r?r._next=this:n=this,r=this),this._call=e,this._time=i,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}};var N="\\s*([+-]?\\d+)\\s*",I="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",w="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",O=/^#([0-9a-f]{3,8})$/,x=RegExp(`^rgb\\(${N},${N},${N}\\)$`),D=RegExp(`^rgb\\(${w},${w},${w}\\)$`),M=RegExp(`^rgba\\(${N},${N},${N},${I}\\)$`),k=RegExp(`^rgba\\(${w},${w},${w},${I}\\)$`),P=RegExp(`^hsl\\(${I},${w},${w}\\)$`),F=RegExp(`^hsla\\(${I},${w},${w},${I}\\)$`),B={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function U(){return this.rgb().formatHex()}function H(){return this.rgb().formatRgb()}function V(e){var t,i;return e=(e+"").trim().toLowerCase(),(t=O.exec(e))?(i=t[1].length,t=parseInt(t[1],16),6===i?W(t):3===i?new Y(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?G(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?G(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=x.exec(e))?new Y(t[1],t[2],t[3],1):(t=D.exec(e))?new Y(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=M.exec(e))?G(t[1],t[2],t[3],t[4]):(t=k.exec(e))?G(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=P.exec(e))?Z(t[1],t[2]/100,t[3]/100,1):(t=F.exec(e))?Z(t[1],t[2]/100,t[3]/100,t[4]):B.hasOwnProperty(e)?W(B[e]):"transparent"===e?new Y(NaN,NaN,NaN,0):null}function W(e){return new Y(e>>16&255,e>>8&255,255&e,1)}function G(e,t,i,n){return n<=0&&(e=t=i=NaN),new Y(e,t,i,n)}function z(e,t,i,n){var r;return 1==arguments.length?((r=e)instanceof L||(r=V(r)),r)?(r=r.rgb(),new Y(r.r,r.g,r.b,r.opacity)):new Y:new Y(e,t,i,null==n?1:n)}function Y(e,t,i,n){this.r=+e,this.g=+t,this.b=+i,this.opacity=+n}function K(){return`#${q(this.r)}${q(this.g)}${q(this.b)}`}function $(){let e=X(this.opacity);return`${1===e?"rgb(":"rgba("}${j(this.r)}, ${j(this.g)}, ${j(this.b)}${1===e?")":`, ${e})`}`}function X(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function j(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function q(e){return((e=j(e))<16?"0":"")+e.toString(16)}function Z(e,t,i,n){return n<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new Q(e,t,i,n)}function J(e){if(e instanceof Q)return new Q(e.h,e.s,e.l,e.opacity);if(e instanceof L||(e=V(e)),!e)return new Q;if(e instanceof Q)return e;var t=(e=e.rgb()).r/255,i=e.g/255,n=e.b/255,r=Math.min(t,i,n),o=Math.max(t,i,n),s=NaN,a=o-r,l=(o+r)/2;return a?(s=t===o?(i-n)/a+(i0&&l<1?0:s,new Q(s,a,l,e.opacity)}function Q(e,t,i,n){this.h=+e,this.s=+t,this.l=+i,this.opacity=+n}function ee(e){return(e=(e||0)%360)<0?e+360:e}function et(e){return Math.max(0,Math.min(1,e||0))}function ei(e,t,i){return(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)*255}function en(e,t,i,n,r){var o=e*e,s=o*e;return((1-3*e+3*o-s)*t+(4-6*o+3*s)*i+(1+3*e+3*o-3*s)*n+s*r)/6}A(L,V,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:U,formatHex:U,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return J(this).formatHsl()},formatRgb:H,toString:H}),A(Y,z,R(L,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new Y(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Y(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Y(j(this.r),j(this.g),j(this.b),X(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:K,formatHex:K,formatHex8:function(){return`#${q(this.r)}${q(this.g)}${q(this.b)}${q((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:$,toString:$})),A(Q,function(e,t,i,n){return 1==arguments.length?J(e):new Q(e,t,i,null==n?1:n)},R(L,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new Q(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Q(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,n=i+(i<.5?i:1-i)*t,r=2*i-n;return new Y(ei(e>=240?e-240:e+120,r,n),ei(e,r,n),ei(e<120?e+240:e-120,r,n),this.opacity)},clamp(){return new Q(ee(this.h),et(this.s),et(this.l),X(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=X(this.opacity);return`${1===e?"hsl(":"hsla("}${ee(this.h)}, ${100*et(this.s)}%, ${100*et(this.l)}%${1===e?")":`, ${e})`}`}}));var er=e=>()=>e;function eo(e,t){var i=t-e;return i?function(t){return e+t*i}:er(isNaN(e)?t:e)}var es=function e(t){var i,n=1==(i=+(i=t))?eo:function(e,t){var n,r,o;return t-e?(n=e,r=t,n=Math.pow(n,o=i),r=Math.pow(r,o)-n,o=1/o,function(e){return Math.pow(n+e*r,o)}):er(isNaN(e)?t:e)};function r(e,t){var i=n((e=z(e)).r,(t=z(t)).r),r=n(e.g,t.g),o=n(e.b,t.b),s=eo(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=r(t),e.b=o(t),e.opacity=s(t),e+""}}return r.gamma=e,r}(1);function ea(e){return function(t){var i,n,r=t.length,o=Array(r),s=Array(r),a=Array(r);for(i=0;i=1?(i=1,t-1):Math.floor(i*t),r=e[n],o=e[n+1],s=n>0?e[n-1]:2*r-o,a=na&&(s=t.slice(a,s),h[l]?h[l]+=s:h[++l]=s),(r=r[0])===(o=o[0])?h[l]?h[l]+=o:h[++l]=o:(h[++l]=null,u.push({i:l,x:ec(r,o)})),a=ef.lastIndex;return a0){for(var o=n.animators.length-1;o>=0;o--){if((e=n.animators[o]).destroyed){n.removeAnimator(o);continue}if(!e.isAnimatePaused()){t=e.get("animations");for(var s=t.length-1;s>=0;s--)(function(e,t,i){var n,r=t.startTime;if(id.length?(u=e_.parsePathString(s[a]),d=e_.parsePathString(o[a]),d=e_.fillPathByDiff(d,u),d=e_.formatPath(d,u),t.fromAttrs.path=d,t.toAttrs.path=u):t.pathFormatted||(u=e_.parsePathString(s[a]),d=e_.parsePathString(o[a]),d=e_.formatPath(d,u),t.fromAttrs.path=d,t.toAttrs.path=u,t.pathFormatted=!0),r[a]=[];for(var c=0;c120||h*h+u*u>40?a&&a.get("draggable")?((o=this.mousedownShape).set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",i,e,o),this.mousedownShape=null,this.mousedownPoint=null):!a&&n.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",i,e,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(i,e,r,t),this._emitEvent("mousemove",i,e,t)):(this._emitMouseoverEvents(i,e,r,t),this._emitEvent("mousemove",i,e,t))}else this._emitMouseoverEvents(i,e,r,t),this._emitEvent("mousemove",i,e,t)}},e.prototype._emitEvent=function(e,t,i,n,r,o){var s=this._getEventObj(e,t,i,n,r,o);if(n){s.shape=n,eb(n,e,s);for(var a=n.getParent();a;)a.emitDelegation(e,s),s.propagationStopped||function(e,t,i){if(i.bubbles){var n=void 0,r=!1;if("mouseenter"===t?(n=i.fromShape,r=!0):"mouseleave"===t&&(r=!0,n=i.toShape),!e.isCanvas()||!r){if(n&&(0,l.UY)(e,n)){i.bubbles=!1;return}i.name=t,i.currentTarget=e,i.delegateTarget=e,e.emit(t,i)}}}(a,e,s),s.propagationPath.push(a),a=a.getParent()}else eb(this.canvas,e,s)},e.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},e}(),eR=(0,s.qY)(),eL=eR&&"firefox"===eR.name,eN=function(e){function t(t){var i=e.call(this,t)||this;return i.initContainer(),i.initDom(),i.initEvents(),i.initTimeline(),i}return(0,o.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.cursor="default",t.supportCSSTransform=!1,t},t.prototype.initContainer=function(){var e=this.get("container");(0,l.HD)(e)&&(e=document.getElementById(e),this.set("container",e))},t.prototype.initDom=function(){var e=this.createDom();this.set("el",e),this.get("container").appendChild(e),this.setDOMSize(this.get("width"),this.get("height"))},t.prototype.initEvents=function(){var e=new eA({canvas:this});e.init(),this.set("eventController",e)},t.prototype.initTimeline=function(){var e=new eS(this);this.set("timeline",e)},t.prototype.setDOMSize=function(e,t){var i=this.get("el");l.jU&&(i.style.width=e+"px",i.style.height=t+"px")},t.prototype.changeSize=function(e,t){this.setDOMSize(e,t),this.set("width",e),this.set("height",t),this.onCanvasChange("changeSize")},t.prototype.getRenderer=function(){return this.get("renderer")},t.prototype.getCursor=function(){return this.get("cursor")},t.prototype.setCursor=function(e){this.set("cursor",e);var t=this.get("el");l.jU&&t&&(t.style.cursor=e)},t.prototype.getPointByEvent=function(e){if(this.get("supportCSSTransform")){if(eL&&!(0,l.kK)(e.layerX)&&e.layerX!==e.offsetX)return{x:e.layerX,y:e.layerY};if(!(0,l.kK)(e.offsetX))return{x:e.offsetX,y:e.offsetY}}var t=this.getClientByEvent(e),i=t.x,n=t.y;return this.getPointByClient(i,n)},t.prototype.getClientByEvent=function(e){var t=e;return e.touches&&(t="touchend"===e.type?e.changedTouches[0]:e.touches[0]),{x:t.clientX,y:t.clientY}},t.prototype.getPointByClient=function(e,t){var i=this.get("el").getBoundingClientRect();return{x:e-i.left,y:t-i.top}},t.prototype.getClientByPoint=function(e,t){var i=this.get("el").getBoundingClientRect();return{x:e+i.left,y:t+i.top}},t.prototype.draw=function(){},t.prototype.removeDom=function(){var e=this.get("el");e.parentNode.removeChild(e)},t.prototype.clearEvents=function(){this.get("eventController").destroy()},t.prototype.isCanvas=function(){return!0},t.prototype.getParent=function(){return null},t.prototype.destroy=function(){var t=this.get("timeline");this.get("destroyed")||(this.clear(),t&&t.stop(),this.clearEvents(),this.removeDom(),e.prototype.destroy.call(this))},t}(a.Z)},37153:function(e,t,i){"use strict";var n=i(97582),r=i(29881),o=i(77341),s={},a="_INDEX",l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.ZT)(t,e),t.prototype.isCanvas=function(){return!1},t.prototype.getBBox=function(){var e=1/0,t=-1/0,i=1/0,n=-1/0,r=this.getChildren().filter(function(e){return e.get("visible")&&(!e.isGroup()||e.isGroup()&&e.getChildren().length>0)});return r.length>0?(0,o.S6)(r,function(r){var o=r.getBBox(),s=o.minX,a=o.maxX,l=o.minY,h=o.maxY;st&&(t=a),ln&&(n=h)}):(e=0,t=0,i=0,n=0),{x:e,y:i,minX:e,minY:i,maxX:t,maxY:n,width:t-e,height:n-i}},t.prototype.getCanvasBBox=function(){var e=1/0,t=-1/0,i=1/0,n=-1/0,r=this.getChildren().filter(function(e){return e.get("visible")&&(!e.isGroup()||e.isGroup()&&e.getChildren().length>0)});return r.length>0?(0,o.S6)(r,function(r){var o=r.getCanvasBBox(),s=o.minX,a=o.maxX,l=o.minY,h=o.maxY;st&&(t=a),ln&&(n=h)}):(e=0,t=0,i=0,n=0),{x:e,y:i,minX:e,minY:i,maxX:t,maxY:n,width:t-e,height:n-i}},t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.children=[],t},t.prototype.onAttrChange=function(t,i,n){if(e.prototype.onAttrChange.call(this,t,i,n),"matrix"===t){var r=this.getTotalMatrix();this._applyChildrenMarix(r)}},t.prototype.applyMatrix=function(t){var i=this.getTotalMatrix();e.prototype.applyMatrix.call(this,t);var n=this.getTotalMatrix();n!==i&&this._applyChildrenMarix(n)},t.prototype._applyChildrenMarix=function(e){var t=this.getChildren();(0,o.S6)(t,function(t){t.applyMatrix(e)})},t.prototype.addShape=function(){for(var e=[],t=0;t=0;s--){var a=e[s];if((0,o.pP)(a)&&(a.isGroup()?r=a.getShape(t,i,n):a.isHit(t,i)&&(r=a)),r)break}return r},t.prototype.add=function(e){var t=this.getCanvas(),i=this.getChildren(),n=this.get("timeline"),r=e.getParent();r&&(e.set("parent",null),e.set("canvas",null),(0,o.As)(r.getChildren(),e)),e.set("parent",this),t&&function e(t,i){if(t.set("canvas",i),t.isGroup()){var n=t.get("children");n.length&&n.forEach(function(t){e(t,i)})}}(e,t),n&&function e(t,i){if(t.set("timeline",i),t.isGroup()){var n=t.get("children");n.length&&n.forEach(function(t){e(t,i)})}}(e,n),i.push(e),e.onCanvasChange("add"),this._applyElementMatrix(e)},t.prototype._applyElementMatrix=function(e){var t=this.getTotalMatrix();t&&e.applyMatrix(t)},t.prototype.getChildren=function(){return this.get("children")},t.prototype.sort=function(){var e=this.getChildren();(0,o.S6)(e,function(e,t){return e[a]=t,e}),e.sort(function(e,t){var i=e.get("zIndex")-t.get("zIndex");return 0===i?e[a]-t[a]:i}),this.onCanvasChange("sort")},t.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var e=this.getChildren(),t=e.length-1;t>=0;t--)e[t].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},t.prototype.destroy=function(){this.get("destroyed")||(this.clear(),e.prototype.destroy.call(this))},t.prototype.getFirst=function(){return this.getChildByIndex(0)},t.prototype.getLast=function(){var e=this.getChildren();return this.getChildByIndex(e.length-1)},t.prototype.getChildByIndex=function(e){return this.getChildren()[e]},t.prototype.getCount=function(){return this.getChildren().length},t.prototype.contain=function(e){return this.getChildren().indexOf(e)>-1},t.prototype.removeChild=function(e,t){void 0===t&&(t=!0),this.contain(e)&&e.remove(t)},t.prototype.findAll=function(e){var t=[],i=this.getChildren();return(0,o.S6)(i,function(i){e(i)&&t.push(i),i.isGroup()&&(t=t.concat(i.findAll(e)))}),t},t.prototype.find=function(e){var t=null,i=this.getChildren();return(0,o.S6)(i,function(i){if(e(i)?t=i:i.isGroup()&&(t=i.find(e)),t)return!1}),t},t.prototype.findById=function(e){return this.find(function(t){return t.get("id")===e})},t.prototype.findByClassName=function(e){return this.find(function(t){return t.get("className")===e})},t.prototype.findAllByName=function(e){return this.findAll(function(t){return t.get("name")===e})},t}(r.Z);t.Z=l},29881:function(e,t,i){"use strict";var n=i(97582),r=i(21030),o=i(31506),s=i(77341),a=i(41482),l=i(2667),h=o.vs,u="matrix",d=["zIndex","capture","visible","type"],c=["repeat"],g=function(e){function t(t){var i=e.call(this,t)||this;i.attrs={};var n=i.getDefaultAttrs();return(0,r.CD)(n,t.attrs),i.attrs=n,i.initAttrs(n),i.initAnimate(),i}return(0,n.ZT)(t,e),t.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},t.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},t.prototype.onCanvasChange=function(e){},t.prototype.initAttrs=function(e){},t.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},t.prototype.isGroup=function(){return!1},t.prototype.getParent=function(){return this.get("parent")},t.prototype.getCanvas=function(){return this.get("canvas")},t.prototype.attr=function(){for(var e,t=[],i=0;i0?g=function(e,t){if(t.onFrame)return e;var i=t.startTime,n=t.delay,o=t.duration,s=Object.prototype.hasOwnProperty;return(0,r.S6)(e,function(e){i+ne.delay&&(0,r.S6)(t.toAttrs,function(t,i){s.call(e.toAttrs,i)&&(delete e.toAttrs[i],delete e.fromAttrs[i])})}),e}(g,T):d.addAnimator(this),g.push(T),this.set("animations",g),this.set("_pause",{isPaused:!1})}},t.prototype.stopAnimate=function(e){var t=this;void 0===e&&(e=!0);var i=this.get("animations");(0,r.S6)(i,function(i){e&&(i.onFrame?t.attr(i.onFrame(1)):t.attr(i.toAttrs)),i.callback&&i.callback()}),this.set("animating",!1),this.set("animations",[])},t.prototype.pauseAnimate=function(){var e=this.get("timeline"),t=this.get("animations"),i=e.getTime();return(0,r.S6)(t,function(e){e._paused=!0,e._pauseTime=i,e.pauseCallback&&e.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:i}),this},t.prototype.resumeAnimate=function(){var e=this.get("timeline").getTime(),t=this.get("animations"),i=this.get("_pause").pauseTime;return(0,r.S6)(t,function(t){t.startTime=t.startTime+(e-i),t._paused=!1,t._pauseTime=null,t.resumeCallback&&t.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",t),this},t.prototype.emitDelegation=function(e,t){var i,n=this,o=t.propagationPath;this.getEvents(),"mouseenter"===e?i=t.fromShape:"mouseleave"===e&&(i=t.toShape);for(var a=this,l=0;l=e&&i.minY<=t&&i.maxY>=t},t.prototype.afterAttrsChange=function(t){e.prototype.afterAttrsChange.call(this,t),this.clearCacheBBox()},t.prototype.getBBox=function(){var e=this.cfg.bbox;return e||(e=this.calculateBBox(),this.set("bbox",e)),e},t.prototype.getCanvasBBox=function(){var e=this.cfg.canvasBBox;return e||(e=this.calculateCanvasBBox(),this.set("canvasBBox",e)),e},t.prototype.applyMatrix=function(t){e.prototype.applyMatrix.call(this,t),this.set("canvasBBox",null)},t.prototype.calculateCanvasBBox=function(){var e=this.getBBox(),t=this.getTotalMatrix(),i=e.minX,n=e.minY,r=e.maxX,s=e.maxY;if(t){var a=(0,o.rG)(t,[e.minX,e.minY]),l=(0,o.rG)(t,[e.maxX,e.minY]),h=(0,o.rG)(t,[e.minX,e.maxY]),u=(0,o.rG)(t,[e.maxX,e.maxY]);i=Math.min(a[0],l[0],h[0],u[0]),r=Math.max(a[0],l[0],h[0],u[0]),n=Math.min(a[1],l[1],h[1],u[1]),s=Math.max(a[1],l[1],h[1],u[1])}var d=this.attrs;if(d.shadowColor){var c=d.shadowBlur,g=void 0===c?0:c,p=d.shadowOffsetX,f=void 0===p?0:p,m=d.shadowOffsetY,v=void 0===m?0:m,E=i-g+f,_=r+g+f,C=n-g+v,S=s+g+v;i=Math.min(i,E),r=Math.max(r,_),n=Math.min(n,C),s=Math.max(s,S)}return{x:i,y:n,minX:i,minY:n,maxX:r,maxY:s,width:r-i,height:s-n}},t.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},t.prototype.isClipShape=function(){return this.get("isClipShape")},t.prototype.isInShape=function(e,t){return!1},t.prototype.isOnlyHitBox=function(){return!1},t.prototype.isHit=function(e,t){var i=this.get("startArrowShape"),n=this.get("endArrowShape"),r=[e,t,1],o=(r=this.invertFromMatrix(r))[0],s=r[1],a=this._isInBBox(o,s);return this.isOnlyHitBox()?a:!!(a&&!this.isClipped(o,s)&&(this.isInShape(o,s)||i&&i.isHit(o,s)||n&&n.isHit(o,s)))},t}(r.Z);t.Z=s},93924:function(e,t,i){"use strict";i.d(t,{_:function(){return $},C:function(){return X}});var n={};function r(e){return+e}function o(e){return e*e}function s(e){return e*(2-e)}function a(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function l(e){return e*e*e}function h(e){return--e*e*e+1}function u(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}i.r(n),i.d(n,{easeBack:function(){return V},easeBackIn:function(){return U},easeBackInOut:function(){return V},easeBackOut:function(){return H},easeBounce:function(){return F},easeBounceIn:function(){return P},easeBounceInOut:function(){return B},easeBounceOut:function(){return F},easeCircle:function(){return A},easeCircleIn:function(){return T},easeCircleInOut:function(){return A},easeCircleOut:function(){return b},easeCubic:function(){return u},easeCubicIn:function(){return l},easeCubicInOut:function(){return u},easeCubicOut:function(){return h},easeElastic:function(){return z},easeElasticIn:function(){return G},easeElasticInOut:function(){return Y},easeElasticOut:function(){return z},easeExp:function(){return y},easeExpIn:function(){return C},easeExpInOut:function(){return y},easeExpOut:function(){return S},easeLinear:function(){return r},easePoly:function(){return g},easePolyIn:function(){return d},easePolyInOut:function(){return g},easePolyOut:function(){return c},easeQuad:function(){return a},easeQuadIn:function(){return o},easeQuadInOut:function(){return a},easeQuadOut:function(){return s},easeSin:function(){return E},easeSinIn:function(){return m},easeSinInOut:function(){return E},easeSinOut:function(){return v}});var d=function e(t){function i(e){return Math.pow(e,t)}return t=+t,i.exponent=e,i}(3),c=function e(t){function i(e){return 1-Math.pow(1-e,t)}return t=+t,i.exponent=e,i}(3),g=function e(t){function i(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,i.exponent=e,i}(3),p=Math.PI,f=p/2;function m(e){return 1==+e?1:1-Math.cos(e*f)}function v(e){return Math.sin(e*f)}function E(e){return(1-Math.cos(p*e))/2}function _(e){return(Math.pow(2,-10*e)-9765625e-10)*1.0009775171065494}function C(e){return _(1-+e)}function S(e){return 1-_(e)}function y(e){return((e*=2)<=1?_(1-e):2-_(e-1))/2}function T(e){return 1-Math.sqrt(1-e*e)}function b(e){return Math.sqrt(1- --e*e)}function A(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var R=4/11,L=6/11,N=8/11,I=3/4,w=9/11,O=10/11,x=15/16,D=21/22,M=63/64,k=1/(4/11)/(4/11);function P(e){return 1-F(1-e)}function F(e){return(e=+e)Math.PI/2?Math.PI-l:l))*(t/2*(1/Math.sin(a/2)))-t/2||0,yExtra:Math.cos((h=h>Math.PI/2?Math.PI-h:h)-a/2)*(t/2*(1/Math.sin(a/2)))-t/2||0}}r("rect",s),r("image",s),r("circle",a),r("marker",a),r("polyline",function(e){for(var t=e.attr().points,i=[],n=[],r=0;r["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(s)&&(o[s]=(function(e){return r[e]}).bind(0,s));i.d(t,o);var a=i(15294),o={};for(var s in a)0>["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(s)&&(o[s]=(function(e){return a[e]}).bind(0,s));i.d(t,o);var l=i(89473),h=i(2667),u=i(97050),d=i(31841),c=i(15032),g=i(46556),p=i(8723),f=i(77341),m=i(41482),v=i(67052),E=i(93924),_="0.5.11"},15294:function(){},52:function(){},41482:function(e,t,i){"use strict";function n(e,t){var i=[],n=e[0],r=e[1],o=e[2],s=e[3],a=e[4],l=e[5],h=e[6],u=e[7],d=e[8],c=t[0],g=t[1],p=t[2],f=t[3],m=t[4],v=t[5],E=t[6],_=t[7],C=t[8];return i[0]=c*n+g*s+p*h,i[1]=c*r+g*a+p*u,i[2]=c*o+g*l+p*d,i[3]=f*n+m*s+v*h,i[4]=f*r+m*a+v*u,i[5]=f*o+m*l+v*d,i[6]=E*n+_*s+C*h,i[7]=E*r+_*a+C*u,i[8]=E*o+_*l+C*d,i}function r(e,t){var i=[],n=t[0],r=t[1];return i[0]=e[0]*n+e[3]*r+e[6],i[1]=e[1]*n+e[4]*r+e[7],i}function o(e){var t=[],i=e[0],n=e[1],r=e[2],o=e[3],s=e[4],a=e[5],l=e[6],h=e[7],u=e[8],d=u*s-a*h,c=-u*o+a*l,g=h*o-s*l,p=i*d+n*c+r*g;return p?(p=1/p,t[0]=d*p,t[1]=(-u*n+r*h)*p,t[2]=(a*n-r*s)*p,t[3]=c*p,t[4]=(u*i-r*l)*p,t[5]=(-a*i+r*o)*p,t[6]=g*p,t[7]=(-h*i+n*l)*p,t[8]=(s*i-n*o)*p,t):null}i.d(t,{U_:function(){return o},rG:function(){return r},xq:function(){return n}})},67052:function(e,t,i){"use strict";i.d(t,{L:function(){return r}});var n=null;function r(){if(!n){var e=document.createElement("canvas");e.width=1,e.height=1,n=e.getContext("2d")}return n}},47575:function(e,t,i){"use strict";i.r(t),i.d(t,{catmullRomToBezier:function(){return l},fillPath:function(){return w},fillPathByDiff:function(){return D},formatPath:function(){return P},intersection:function(){return N},parsePathArray:function(){return m},parsePathString:function(){return a},pathToAbsolute:function(){return u},pathToCurve:function(){return p},rectPath:function(){return y}});var n=i(21030),r=" \n\v\f\r \xa0 ᠎              \u2028\u2029",o=RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),s=RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+r+"]*,?["+r+"]*","ig"),a=function(e){if(!e)return null;if((0,n.kJ)(e))return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},i=[];return String(e).replace(o,function(n,r,o){var a=[],l=r.toLowerCase();if(o.replace(s,function(e,t){t&&a.push(+t)}),"m"===l&&a.length>2&&(i.push([r].concat(a.splice(0,2))),l="l",r="m"===r?"l":"L"),"o"===l&&1===a.length&&i.push([r,a[0]]),"r"===l)i.push([r].concat(a));else for(;a.length>=t[l]&&(i.push([r].concat(a.splice(0,t[l]))),t[l]););return e}),i},l=function(e,t){for(var i=[],n=0,r=e.length;r-2*!t>n;n+=2){var o=[{x:+e[n-2],y:+e[n-1]},{x:+e[n],y:+e[n+1]},{x:+e[n+2],y:+e[n+3]},{x:+e[n+4],y:+e[n+5]}];t?n?r-4===n?o[3]={x:+e[0],y:+e[1]}:r-2===n&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[r-2],y:+e[r-1]}:r-4===n?o[3]=o[2]:n||(o[0]={x:+e[n],y:+e[n+1]}),i.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return i},h=function(e,t,i,n,r){var o=[];if(null===r&&null===n&&(n=i),e=+e,t=+t,i=+i,n=+n,null!==r){var s=Math.PI/180,a=e+i*Math.cos(-n*s),l=e+i*Math.cos(-r*s),h=t+i*Math.sin(-n*s),u=t+i*Math.sin(-r*s);o=[["M",a,h],["A",i,i,0,+(r-n>180),0,l,u]]}else o=[["M",e,t],["m",0,-n],["a",i,n,0,1,1,0,2*n],["a",i,n,0,1,1,0,-2*n],["z"]];return o},u=function(e){if(!(e=a(e))||!e.length)return[["M",0,0]];var t,i,n=[],r=0,o=0,s=0,u=0,d=0;"M"===e[0][0]&&(r=+e[0][1],o=+e[0][2],s=r,u=o,d++,n[0]=["M",r,o]);for(var c=3===e.length&&"M"===e[0][0]&&"R"===e[1][0].toUpperCase()&&"Z"===e[2][0].toUpperCase(),g=void 0,p=void 0,f=d,m=e.length;f1&&(i*=y=Math.sqrt(y),n*=y);var T=i*i,b=n*n,A=(o===s?-1:1)*Math.sqrt(Math.abs((T*b-T*S*S-b*C*C)/(T*S*S+b*C*C)));p=A*i*S/n+(e+a)/2,f=-(A*n)*C/i+(t+l)/2,d=Math.asin(((t-f)/n).toFixed(9)),c=Math.asin(((l-f)/n).toFixed(9)),d=ec&&(d-=2*Math.PI),!s&&c>d&&(c-=2*Math.PI)}var R=c-d;if(Math.abs(R)>m){var L=c,N=a,I=l;E=g(a=p+i*Math.cos(c=d+m*(s&&c>d?1:-1)),l=f+n*Math.sin(c),i,n,r,0,s,N,I,[c,L,p,f])}R=c-d;var w=Math.cos(d),O=Math.cos(c),x=Math.tan(R/4),D=4/3*i*x,M=4/3*n*x,k=[e,t],P=[e+D*Math.sin(d),t-M*w],F=[a+D*Math.sin(c),l-M*O],B=[a,l];if(P[0]=2*k[0]-P[0],P[1]=2*k[1]-P[1],h)return[P,F,B].concat(E);E=[P,F,B].concat(E).join().split(",");for(var U=[],H=0,V=E.length;H7){e[t].shift();for(var o=e[t];o.length;)a[t]="A",r&&(l[t]="A"),e.splice(t++,0,["C"].concat(o.splice(0,6)));e.splice(t,1),i=Math.max(n.length,r&&r.length||0)}},v=function(e,t,o,s,a){e&&t&&"M"===e[a][0]&&"M"!==t[a][0]&&(t.splice(a,0,["M",s.x,s.y]),o.bx=0,o.by=0,o.x=e[a][1],o.y=e[a][2],i=Math.max(n.length,r&&r.length||0))};i=Math.max(n.length,r&&r.length||0);for(var E=0;E1?1:l<0?0:l)/2,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],c=0,g=0;g<12;g++){var p=h*u[g]+h,f=v(p,e,i,r,s),m=v(p,t,n,o,a),E=f*f+m*m;c+=d[g]*Math.sqrt(E)}return h*c},_=function(e,t,i,n,r,o,s,a){for(var l,h,u,d,c,g=[],p=[[],[]],f=0;f<2;++f){if(0===f?(h=6*e-12*i+6*r,l=-3*e+9*i-9*r+3*s,u=3*i-3*e):(h=6*t-12*n+6*o,l=-3*t+9*n-9*o+3*a,u=3*n-3*t),1e-12>Math.abs(l)){if(1e-12>Math.abs(h))continue;(d=-u/h)>0&&d<1&&g.push(d);continue}var m=h*h-4*u*l,v=Math.sqrt(m);if(!(m<0)){var E=(-h+v)/(2*l);E>0&&E<1&&g.push(E);var _=(-h-v)/(2*l);_>0&&_<1&&g.push(_)}}for(var C=g.length,S=C;C--;)c=1-(d=g[C]),p[0][C]=c*c*c*e+3*c*c*d*i+3*c*d*d*r+d*d*d*s,p[1][C]=c*c*c*t+3*c*c*d*n+3*c*d*d*o+d*d*d*a;return p[0][S]=e,p[1][S]=t,p[0][S+1]=s,p[1][S+1]=a,p[0].length=p[1].length=S+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},C=function(e,t,i,n,r,o,s,a){if(!(Math.max(e,i)Math.max(r,s)||Math.max(t,n)Math.max(o,a))){var l=(e-i)*(o-a)-(t-n)*(r-s);if(l){var h=((e*n-t*i)*(r-s)-(e-i)*(r*a-o*s))/l,u=((e*n-t*i)*(o-a)-(t-n)*(r*a-o*s))/l,d=+h.toFixed(2),c=+u.toFixed(2);if(!(d<+Math.min(e,i).toFixed(2)||d>+Math.max(e,i).toFixed(2)||d<+Math.min(r,s).toFixed(2)||d>+Math.max(r,s).toFixed(2)||c<+Math.min(t,n).toFixed(2)||c>+Math.max(t,n).toFixed(2)||c<+Math.min(o,a).toFixed(2)||c>+Math.max(o,a).toFixed(2)))return{x:h,y:u}}}},S=function(e,t,i){return t>=e.x&&t<=e.x+e.width&&i>=e.y&&i<=e.y+e.height},y=function(e,t,i,n,r){if(r)return[["M",+e+ +r,t],["l",i-2*r,0],["a",r,r,0,0,1,r,r],["l",0,n-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-i,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-n],["a",r,r,0,0,1,r,-r],["z"]];var o=[["M",e,t],["l",i,0],["l",0,n],["l",-i,0],["z"]];return o.parsePathArray=m,o},T=function(e,t,i,n){return null===e&&(e=t=i=n=0),null===t&&(t=e.y,i=e.width,n=e.height,e=e.x),{x:e,y:t,width:i,w:i,height:n,h:n,x2:e+i,y2:t+n,cx:e+i/2,cy:t+n/2,r1:Math.min(i,n)/2,r2:Math.max(i,n)/2,r0:Math.sqrt(i*i+n*n)/2,path:y(e,t,i,n),vb:[e,t,i,n].join(" ")}},b=function(e,t,i,r,o,s,a,l){(0,n.kJ)(e)||(e=[e,t,i,r,o,s,a,l]);var h=_.apply(null,e);return T(h.min.x,h.min.y,h.max.x-h.min.x,h.max.y-h.min.y)},A=function(e,t,i,n,r,o,s,a,l){var h=1-l,u=Math.pow(h,3),d=Math.pow(h,2),c=l*l,g=c*l,p=e+2*l*(i-e)+c*(r-2*i+e),f=t+2*l*(n-t)+c*(o-2*n+t),m=i+2*l*(r-i)+c*(s-2*r+i),v=n+2*l*(o-n)+c*(a-2*o+n),E=90-180*Math.atan2(p-m,f-v)/Math.PI;return{x:u*e+3*d*l*i+3*h*l*l*r+g*s,y:u*t+3*d*l*n+3*h*l*l*o+g*a,m:{x:p,y:f},n:{x:m,y:v},start:{x:h*e+l*i,y:h*t+l*n},end:{x:h*r+l*s,y:h*o+l*a},alpha:E}},R=function(e,t,i){var n,r,o=b(e),s=b(t);if(n=o,r=s,n=T(n),!(S(r=T(r),n.x,n.y)||S(r,n.x2,n.y)||S(r,n.x,n.y2)||S(r,n.x2,n.y2)||S(n,r.x,r.y)||S(n,r.x2,r.y)||S(n,r.x,r.y2)||S(n,r.x2,r.y2))&&((!(n.xr.x))&&(!(r.xn.x))||(!(n.yr.y))&&(!(r.yn.y))))return i?0:[];for(var a=E.apply(0,e),l=E.apply(0,t),h=~~(a/8),u=~~(l/8),d=[],c=[],g={},p=i?0:[],f=0;fMath.abs(y.x-_.x)?"y":"x",I=.001>Math.abs(L.x-R.x)?"y":"x",w=C(_.x,_.y,y.x,y.y,R.x,R.y,L.x,L.y);if(w){if(g[w.x.toFixed(4)]===w.y.toFixed(4))continue;g[w.x.toFixed(4)]=w.y.toFixed(4);var O=_.t+Math.abs((w[N]-_[N])/(y[N]-_[N]))*(y.t-_.t),x=R.t+Math.abs((w[I]-R[I])/(L[I]-R[I]))*(L.t-R.t);O>=0&&O<=1&&x>=0&&x<=1&&(i?p+=1:p.push({x:w.x,y:w.y,t1:O,t2:x}))}}return p},L=function(e,t,i){e=p(e),t=p(t);for(var n,r,o,s,a,l,h,u,d,c,g=i?0:[],f=0,m=e.length;f=3&&(3===e.length&&t.push("Q"),t=t.concat(e[1])),2===e.length&&t.push("L"),t=t.concat(e[e.length-1])})}(e,t,i));else{var r=[].concat(e);"M"===r[0]&&(r[0]="L");for(var o=0;o<=i-1;o++)n.push(r)}return n},w=function(e,t){if(1===e.length)return e;var i=e.length-1,n=t.length-1,r=i/n,o=[];if(1===e.length&&"M"===e[0][0]){for(var s=0;s=0;l--)s=o[l].index,"add"===o[l].type?e.splice(s,0,[].concat(e[s])):e.splice(s,1)}var d=r-(n=e.length);if(n0)i=M(i,e[n-1],1);else{e[n]=t[n];break}}e[n]=["Q"].concat(i.reduce(function(e,t){return e.concat(t)},[]));break;case"T":e[n]=["T"].concat(i[0]);break;case"C":if(i.length<3){if(n>0)i=M(i,e[n-1],2);else{e[n]=t[n];break}}e[n]=["C"].concat(i.reduce(function(e,t){return e.concat(t)},[]));break;case"S":if(i.length<2){if(n>0)i=M(i,e[n-1],1);else{e[n]=t[n];break}}e[n]=["S"].concat(i.reduce(function(e,t){return e.concat(t)},[]));break;default:e[n]=t[n]}return e}},8723:function(e,t,i){"use strict";i.d(t,{$O:function(){return a},FE:function(){return o},mY:function(){return s}});var n=i(77341),r=i(67052);function o(e,t,i){var r=1;if((0,n.HD)(e)&&(r=e.split("\n").length),r>1)return t*r+(i?i-t:.14*t)*(r-1);return t}function s(e,t){var i=(0,r.L)(),o=0;if((0,n.kK)(e)||""===e)return o;if(i.save(),i.font=t,(0,n.HD)(e)&&e.includes("\n")){var s=e.split("\n");(0,n.S6)(s,function(e){var t=i.measureText(e).width;oMath.abs(e-t)}function a(e,t){var i=(0,r.VV)(e),n=(0,r.VV)(t);return{x:i,y:n,width:(0,r.Fp)(e)-i,height:(0,r.Fp)(t)-n}}function l(e,t,i,n){return{minX:(0,r.VV)([e,i]),maxX:(0,r.Fp)([e,i]),minY:(0,r.VV)([t,n]),maxY:(0,r.Fp)([t,n])}}function h(e){return(e+2*Math.PI)%(2*Math.PI)}var u=i(31437),d={box:function(e,t,i,n){return a([e,i],[t,n])},length:function(e,t,i,n){return o(e,t,i,n)},pointAt:function(e,t,i,n,r){return{x:(1-r)*e+r*i,y:(1-r)*t+r*n}},pointDistance:function(e,t,i,n,r,s){var a=(i-e)*(r-e)+(n-t)*(s-t);return a<0?o(e,t,r,s):a>(i-e)*(i-e)+(n-t)*(n-t)?o(i,n,r,s):this.pointToLine(e,t,i,n,r,s)},pointToLine:function(e,t,i,n,r,o){var s=[i-e,n-t];if(u.I6(s,[0,0]))return Math.sqrt((r-e)*(r-e)+(o-t)*(o-t));var a=[-s[1],s[0]];return u.Fv(a,a),Math.abs(u.AK([r-e,o-t],a))},tangentAngle:function(e,t,i,n){return Math.atan2(n-t,i-e)}};function c(e,t,i,n,r,s){var a,l=1/0,h=[i,n],u=20;s&&s>200&&(u=s/10);for(var d=1/u,c=d/10,g=0;g<=u;g++){var p=g*d,f=[r.apply(null,e.concat([p])),r.apply(null,t.concat([p]))],m=o(h[0],h[1],f[0],f[1]);m=0&&m=0?[r]:[]}function f(e,t,i,n){return 2*(1-n)*(t-e)+2*n*(i-t)}function m(e,t,i,n,r,o,s){var a=g(e,i,r,s),l=g(t,n,o,s),h=d.pointAt(e,t,i,n,s),u=d.pointAt(i,n,r,o,s);return[[e,t,h.x,h.y,a,l],[a,l,u.x,u.y,r,o]]}var v={box:function(e,t,i,n,r,o){var s=p(e,i,r)[0],l=p(t,n,o)[0],h=[e,r],u=[t,o];return void 0!==s&&h.push(g(e,i,r,s)),void 0!==l&&u.push(g(t,n,o,l)),a(h,u)},length:function(e,t,i,n,r,s){return function e(t,i,n,r,s,a,l){if(0===l)return(o(t,i,n,r)+o(n,r,s,a)+o(t,i,s,a))/2;var h=m(t,i,n,r,s,a,.5),u=h[0],d=h[1];return u.push(l-1),d.push(l-1),e.apply(null,u)+e.apply(null,d)}(e,t,i,n,r,s,3)},nearestPoint:function(e,t,i,n,r,o,s,a){return c([e,i,r],[t,n,o],s,a,g)},pointDistance:function(e,t,i,n,r,s,a,l){var h=this.nearestPoint(e,t,i,n,r,s,a,l);return o(h.x,h.y,a,l)},interpolationAt:g,pointAt:function(e,t,i,n,r,o,s){return{x:g(e,i,r,s),y:g(t,n,o,s)}},divide:function(e,t,i,n,r,o,s){return m(e,t,i,n,r,o,s)},tangentAngle:function(e,t,i,n,r,o,s){var a=f(e,i,r,s);return h(Math.atan2(f(t,n,o,s),a))}};function E(e,t,i,n,r){var o=1-r;return o*o*o*e+3*t*r*o*o+3*i*r*r*o+n*r*r*r}function _(e,t,i,n,r){var o=1-r;return 3*(o*o*(t-e)+2*o*r*(i-t)+r*r*(n-i))}function C(e,t,i,n){var r,o,a,l=-3*e+9*t-9*i+3*n,h=6*e-12*t+6*i,u=3*t-3*e,d=[];if(s(l,0))!s(h,0)&&(r=-u/h)>=0&&r<=1&&d.push(r);else{var c=h*h-4*l*u;s(c,0)?d.push(-h/(2*l)):c>0&&(r=(-h+(a=Math.sqrt(c)))/(2*l),o=(-h-a)/(2*l),r>=0&&r<=1&&d.push(r),o>=0&&o<=1&&d.push(o))}return d}function S(e,t,i,n,r,o,s,a,l){var h=E(e,i,r,s,l),u=E(t,n,o,a,l),c=d.pointAt(e,t,i,n,l),g=d.pointAt(i,n,r,o,l),p=d.pointAt(r,o,s,a,l),f=d.pointAt(c.x,c.y,g.x,g.y,l),m=d.pointAt(g.x,g.y,p.x,p.y,l);return[[e,t,c.x,c.y,f.x,f.y,h,u],[h,u,m.x,m.y,p.x,p.y,s,a]]}var y={extrema:C,box:function(e,t,i,n,r,o,s,l){for(var h=[e,s],u=[t,l],d=C(e,i,r,s),c=C(t,n,o,l),g=0;g0?i:-1*i}var b={box:function(e,t,i,n){return{x:e-i,y:t-n,width:2*i,height:2*n}},length:function(e,t,i,n){return Math.PI*(3*(i+n)-Math.sqrt((3*i+n)*(i+3*n)))},nearestPoint:function(e,t,i,n,r,o){if(0===i||0===n)return{x:e,y:t};for(var s,a,l=r-e,h=o-t,u=Math.abs(l),d=Math.abs(h),c=i*i,g=n*n,p=Math.PI/4,f=0;f<4;f++){s=i*Math.cos(p),a=n*Math.sin(p);var m=(c-g)*Math.pow(Math.cos(p),3)/i,v=(g-c)*Math.pow(Math.sin(p),3)/n,E=s-m,_=a-v,C=u-m,S=d-v,y=Math.hypot(_,E),b=Math.hypot(S,C);p+=y*Math.asin((E*S-_*C)/(y*b))/Math.sqrt(c+g-s*s-a*a),p=Math.min(Math.PI/2,Math.max(0,p))}return{x:e+T(s,l),y:t+T(a,h)}},pointDistance:function(e,t,i,n,r,s){var a=this.nearestPoint(e,t,i,n,r,s);return o(a.x,a.y,r,s)},pointAt:function(e,t,i,n,r){var o=2*Math.PI*r;return{x:e+i*Math.cos(o),y:t+n*Math.sin(o)}},tangentAngle:function(e,t,i,n,r){var o=2*Math.PI*r;return h(Math.atan2(n*Math.cos(o),-i*Math.sin(o)))}};function A(e,t,i,n,r,o){return i*Math.cos(r)*Math.cos(o)-n*Math.sin(r)*Math.sin(o)+e}function R(e,t,i,n,r,o){return i*Math.sin(r)*Math.cos(o)+n*Math.cos(r)*Math.sin(o)+t}function L(e,t,i){return{x:e*Math.cos(i),y:t*Math.sin(i)}}function N(e,t,i){var n=Math.cos(i),r=Math.sin(i);return[e*n-t*r,e*r+t*n]}var I={box:function(e,t,i,n,r,o,s){for(var a=Math.atan(-n/i*Math.tan(r)),l=1/0,h=-1/0,u=[o,s],d=-(2*Math.PI);d<=2*Math.PI;d+=Math.PI){var c=a+d;oh&&(h=g)}for(var p=Math.atan(n/(i*Math.tan(r))),f=1/0,m=-1/0,v=[o,s],d=-(2*Math.PI);d<=2*Math.PI;d+=Math.PI){var E=p+d;om&&(m=_)}return{x:l,y:f,width:h-l,height:m-f}},length:function(e,t,i,n,r,o,s){},nearestPoint:function(e,t,i,n,r,o,s,a,l){var h,u=N(a-e,l-t,-r),d=u[0],c=u[1],g=b.nearestPoint(0,0,i,n,d,c),p=(h=g.x,(Math.atan2(g.y*i,h*n)+2*Math.PI)%(2*Math.PI));ps&&(g=L(i,n,s));var f=N(g.x,g.y,r);return{x:f[0]+e,y:f[1]+t}},pointDistance:function(e,t,i,n,r,s,a,l,h){var u=this.nearestPoint(e,t,i,n,l,h);return o(u.x,u.y,l,h)},pointAt:function(e,t,i,n,r,o,s,a){var l=(s-o)*a+o;return{x:A(e,t,i,n,r,l),y:R(e,t,i,n,r,l)}},tangentAngle:function(e,t,i,n,r,o,s,a){var l=(s-o)*a+o,u=-1*i*Math.cos(r)*Math.sin(l)-n*Math.sin(r)*Math.cos(l);return h(Math.atan2(-1*i*Math.sin(r)*Math.sin(l)+n*Math.cos(r)*Math.cos(l),u))}};function w(e){for(var t=0,i=[],n=0;n1||t<0||e.length<2)return null;var i=w(e),n=i.segments,r=i.totalLength;if(0===r)return{x:e[0][0],y:e[0][1]};for(var o=0,s=null,a=0;a=o&&t<=o+c){var g=(t-o)/c;s=d.pointAt(h[0],h[1],u[0],u[1],g);break}o+=c}return s}(e,t)},pointDistance:function(e,t,i){return function(e,t,i){for(var n=1/0,r=0;r1||t<0||e.length<2)return 0;for(var i=w(e),n=i.segments,r=i.totalLength,o=0,s=0,a=0;a=o&&t<=o+d){s=Math.atan2(u[1]-h[1],u[0]-h[0]);break}o+=d}return s}(e,t)}}},75227:function(e,t,i){"use strict";i.d(t,{sg:function(){return d0},x1:function(){return c1}});var n,r,o,s,a,l,h,u,d,c,g,p,f,m,v,E,_,C,S,y,T,b,A,R,L,N,I,w,O,x,D,M,k,P,F,B,U,H,V,W,G,z,Y,K,$,X,j,q,Z,J,Q,ee,et,ei={};i.r(ei),i.d(ei,{assign:function(){return to},default:function(){return tA},defaultI18n:function(){return th},format:function(){return tT},parse:function(){return tb},setGlobalDateI18n:function(){return td},setGlobalDateMasks:function(){return ty}});var en={};i.r(en),i.d(en,{Arc:function(){return iU},DataMarker:function(){return iW},DataRegion:function(){return iG},Html:function(){return iX},Image:function(){return iV},Line:function(){return iF},Region:function(){return iH},RegionFilter:function(){return iz},Shape:function(){return iY},Text:function(){return iB}});var er={};i.r(er),i.d(er,{ellipsisHead:function(){return iQ},ellipsisMiddle:function(){return i1},ellipsisTail:function(){return i0},getDefault:function(){return iJ}});var eo={};i.r(eo),i.d(eo,{equidistance:function(){return ne},equidistanceWithReverseBoth:function(){return nt},getDefault:function(){return i3},reserveBoth:function(){return i8},reserveFirst:function(){return i9},reserveLast:function(){return i7}});var es={};i.r(es),i.d(es,{fixedAngle:function(){return nr},getDefault:function(){return nn},unfixedAngle:function(){return no}});var ea={};i.r(ea),i.d(ea,{autoEllipsis:function(){return er},autoHide:function(){return eo},autoRotate:function(){return es}});var el={};i.r(el),i.d(el,{Base:function(){return nl},Circle:function(){return nu},Html:function(){return nf},Line:function(){return nh}});var eh={};i.r(eh),i.d(eh,{CONTAINER_CLASS:function(){return nL},CROSSHAIR_X:function(){return nM},CROSSHAIR_Y:function(){return nk},LIST_CLASS:function(){return nI},LIST_ITEM_CLASS:function(){return nw},MARKER_CLASS:function(){return nO},NAME_CLASS:function(){return nD},TITLE_CLASS:function(){return nN},VALUE_CLASS:function(){return nx}});var eu={};i.r(eu),i.d(eu,{Base:function(){return sF},Circle:function(){return sB},Ellipse:function(){return sU},Image:function(){return sV},Line:function(){return sz},Marker:function(){return sK},Path:function(){return s0},Polygon:function(){return s2},Polyline:function(){return s4},Rect:function(){return s5},Text:function(){return s6}});var ed={};i.r(ed),i.d(ed,{Canvas:function(){return s7},Group:function(){return sP},Shape:function(){return eu},getArcParams:function(){return sC},version:function(){return s8}});var ec={};i.r(ec),i.d(ec,{Base:function(){return au},Circle:function(){return ad},Dom:function(){return ac},Ellipse:function(){return ag},Image:function(){return ap},Line:function(){return af},Marker:function(){return aE},Path:function(){return a_},Polygon:function(){return aC},Polyline:function(){return aS},Rect:function(){return ay},Text:function(){return aL}});var eg={};i.r(eg),i.d(eg,{Canvas:function(){return aV},Group:function(){return ah},Shape:function(){return ec},version:function(){return aW}});var ep={};i.r(ep),i.d(ep,{cluster:function(){return vy},hierarchy:function(){return fC},pack:function(){return ff},packEnclose:function(){return p8},packSiblings:function(){return fu},partition:function(){return vm},stratify:function(){return vL},tree:function(){return vx},treemap:function(){return vF},treemapBinary:function(){return vB},treemapDice:function(){return vf},treemapResquarify:function(){return vH},treemapSlice:function(){return vD},treemapSliceDice:function(){return vU},treemapSquarify:function(){return vP}});var ef=i(97582),em=i(21030);(n=O||(O={})).FORE="fore",n.MID="mid",n.BG="bg",(r=x||(x={})).TOP="top",r.TOP_LEFT="top-left",r.TOP_RIGHT="top-right",r.RIGHT="right",r.RIGHT_TOP="right-top",r.RIGHT_BOTTOM="right-bottom",r.LEFT="left",r.LEFT_TOP="left-top",r.LEFT_BOTTOM="left-bottom",r.BOTTOM="bottom",r.BOTTOM_LEFT="bottom-left",r.BOTTOM_RIGHT="bottom-right",r.RADIUS="radius",r.CIRCLE="circle",r.NONE="none",(o=D||(D={})).AXIS="axis",o.GRID="grid",o.LEGEND="legend",o.TOOLTIP="tooltip",o.ANNOTATION="annotation",o.SLIDER="slider",o.SCROLLBAR="scrollbar",o.OTHER="other";var ev={FORE:3,MID:2,BG:1};(s=M||(M={})).BEFORE_RENDER="beforerender",s.AFTER_RENDER="afterrender",s.BEFORE_PAINT="beforepaint",s.AFTER_PAINT="afterpaint",s.BEFORE_CHANGE_DATA="beforechangedata",s.AFTER_CHANGE_DATA="afterchangedata",s.BEFORE_CLEAR="beforeclear",s.AFTER_CLEAR="afterclear",s.BEFORE_DESTROY="beforedestroy",s.BEFORE_CHANGE_SIZE="beforechangesize",s.AFTER_CHANGE_SIZE="afterchangesize",(a=k||(k={})).BEFORE_DRAW_ANIMATE="beforeanimate",a.AFTER_DRAW_ANIMATE="afteranimate",(l=P||(P={})).MOUSE_ENTER="plot:mouseenter",l.MOUSE_DOWN="plot:mousedown",l.MOUSE_MOVE="plot:mousemove",l.MOUSE_UP="plot:mouseup",l.MOUSE_LEAVE="plot:mouseleave",l.TOUCH_START="plot:touchstart",l.TOUCH_MOVE="plot:touchmove",l.TOUCH_END="plot:touchend",l.TOUCH_CANCEL="plot:touchcancel",l.CLICK="plot:click",l.DBLCLICK="plot:dblclick",l.CONTEXTMENU="plot:contextmenu",l.LEAVE="plot:leave",l.ENTER="plot:enter",(h=F||(F={})).ACTIVE="active",h.INACTIVE="inactive",h.SELECTED="selected",h.DEFAULT="default";var eE=["color","shape","size"],e_="_origin",eC={};function eS(e){B||(B=document.createElement("table"),U=document.createElement("tr"),H=/^\s*<(\w+|!)[^>]*>/,V={tr:document.createElement("tbody"),tbody:B,thead:B,tfoot:B,td:U,th:U,"*":document.createElement("div")});var t=H.test(e)&&RegExp.$1;t&&t in V||(t="*");var i=V[t];e="string"==typeof e?e.replace(/(^\s*)|(\s*$)/g,""):e,i.innerHTML=""+e;var n=i.childNodes[0];return n&&i.contains(n)&&i.removeChild(n),n}function ey(e,t){if(e)for(var i in t)t.hasOwnProperty(i)&&(e.style[i]=t[i]);return e}function eT(e){return"number"==typeof e&&!isNaN(e)}function eb(e,t,i,n){var r=i,o=n;if(t){var s,a=(s=getComputedStyle(e),{width:(e.clientWidth||parseInt(s.width,10))-parseInt(s.paddingLeft,10)-parseInt(s.paddingRight,10),height:(e.clientHeight||parseInt(s.height,10))-parseInt(s.paddingTop,10)-parseInt(s.paddingBottom,10)});r=a.width?a.width:r,o=a.height?a.height:o}return{width:Math.max(eT(r)?r:1,1),height:Math.max(eT(o)?o:1,1)}}var eA=i(90494),eR=function(e){function t(t){var i=e.call(this)||this;i.destroyed=!1;var n=t.visible;return i.visible=void 0===n||n,i}return(0,ef.ZT)(t,e),t.prototype.show=function(){this.visible||this.changeVisible(!0)},t.prototype.hide=function(){this.visible&&this.changeVisible(!1)},t.prototype.destroy=function(){this.off(),this.destroyed=!0},t.prototype.changeVisible=function(e){this.visible!==e&&(this.visible=e)},t}(eA.Z),eL=i(98190),eN=function(){function e(e){var t=e.xField,i=e.yField,n=e.adjustNames,r=e.dimValuesMap;this.adjustNames=void 0===n?["x","y"]:n,this.xField=t,this.yField=i,this.dimValuesMap=r}return e.prototype.isAdjust=function(e){return this.adjustNames.indexOf(e)>=0},e.prototype.getAdjustRange=function(e,t,i){var n,r,o=this.yField,s=i.indexOf(t),a=i.length;return!o&&this.isAdjust("y")?(n=0,r=1):a>1?(n=i[0===s?0:s-1],r=i[s===a-1?a-1:s+1],0!==s?n+=(t-n)/2:n-=(r-t)/2,s!==a-1?r-=(r-t)/2:r+=(t-i[a-2])/2):(n=0===t?0:t-.5,r=0===t?1:t+.5),{pre:n,next:r}},e.prototype.adjustData=function(e,t){var i=this,n=this.getDimValues(t);em.S6(e,function(e,t){em.S6(n,function(n,r){i.adjustDim(r,n,e,t)})})},e.prototype.groupData=function(e,t){return em.S6(e,function(e){void 0===e[t]&&(e[t]=0)}),em.vM(e,t)},e.prototype.adjustDim=function(e,t,i,n){},e.prototype.getDimValues=function(e){var t=this.xField,i=this.yField,n=em.f0({},this.dimValuesMap),r=[];return t&&this.isAdjust("x")&&r.push(t),i&&this.isAdjust("y")&&r.push(i),r.forEach(function(t){n&&n[t]||(n[t]=em.I(e,t).sort(function(e,t){return e-t}))}),!i&&this.isAdjust("y")&&(n.y=[0,1]),n},e}(),eI={},ew=function(e){return eI[e.toLowerCase()]},eO=function(e,t){if(ew(e))throw Error("Adjust type '"+e+"' existed.");eI[e.toLowerCase()]=t},ex=function(e,t){return(ex=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function eD(e,t){function i(){this.constructor=e}ex(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var eM=function(){return(eM=Object.assign||function(e){for(var t,i=1,n=arguments.length;i=0){var d=this.getIntervalOnlyOffset(i,t);n=l+d}else if(!em.UM(a)&&em.UM(s)&&a>=0){var d=this.getDodgeOnlyOffset(i,t);n=l+d}else if(!em.UM(s)&&!em.UM(a)&&s>=0&&a>=0){var d=this.getIntervalAndDodgeOffset(i,t);n=l+d}else{var c=u*r/i,g=o*c,d=.5*(u-i*c-(i-1)*g)+((t+1)*c+t*g)-.5*c-.5*u;n=(l+h)/2+d}return n},t.prototype.getIntervalOnlyOffset=function(e,t){var i=this.defaultSize,n=this.intervalPadding,r=this.xDimensionLegenth,o=this.groupNum,s=this.dodgeRatio,a=this.maxColumnWidth,l=this.minColumnWidth,h=this.columnWidthRatio,u=n/r,d=(1-(o-1)*u)/o*s/(e-1),c=((1-u*(o-1))/o-d*(e-1))/e;return c=em.UM(h)?c:1/o/e*h,em.UM(a)||(c=Math.min(c,a/r)),em.UM(l)||(c=Math.max(c,l/r)),d=((1-(o-1)*u)/o-e*(c=i?i/r:c))/(e-1),((.5+t)*c+t*d+.5*u)*o-u/2},t.prototype.getDodgeOnlyOffset=function(e,t){var i=this.defaultSize,n=this.dodgePadding,r=this.xDimensionLegenth,o=this.groupNum,s=this.marginRatio,a=this.maxColumnWidth,l=this.minColumnWidth,h=this.columnWidthRatio,u=n/r,d=1*s/(o-1),c=((1-d*(o-1))/o-u*(e-1))/e;return c=h?1/o/e*h:c,em.UM(a)||(c=Math.min(c,a/r)),em.UM(l)||(c=Math.max(c,l/r)),d=(1-((c=i?i/r:c)*e+u*(e-1))*o)/(o-1),((.5+t)*c+t*u+.5*d)*o-d/2},t.prototype.getIntervalAndDodgeOffset=function(e,t){var i=this.intervalPadding,n=this.dodgePadding,r=this.xDimensionLegenth,o=this.groupNum,s=i/r,a=n/r;return((.5+t)*(((1-s*(o-1))/o-a*(e-1))/e)+t*a+.5*s)*o-s/2},t.prototype.getDistribution=function(e){var t=this.adjustDataArray,i=this.cacheMap,n=i[e];return n||(n={},em.S6(t,function(t,i){var r=em.I(t,e);r.length||r.push(0),em.S6(r,function(e){n[e]||(n[e]=[]),n[e].push(i)})}),i[e]=n),n},t}(eN),eP=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return eD(t,e),t.prototype.process=function(e){var t=em.d9(e),i=em.xH(t);return this.adjustData(t,i),t},t.prototype.adjustDim=function(e,t,i){var n=this,r=this.groupData(i,e);return em.S6(r,function(i,r){return n.adjustGroup(i,e,parseFloat(r),t)})},t.prototype.getAdjustOffset=function(e){var t,i=e.pre,n=e.next,r=(n-i)*.05;return t=i+r,(n-r-t)*Math.random()+t},t.prototype.adjustGroup=function(e,t,i,n){var r=this,o=this.getAdjustRange(t,i,n);return em.S6(e,function(e){e[t]=r.getAdjustOffset(o)}),e},t}(eN),eF=em.Ct,eB=function(e){function t(t){var i=e.call(this,t)||this,n=t.adjustNames,r=t.height,o=void 0===r?NaN:r,s=t.size,a=t.reverseOrder;return i.adjustNames=void 0===n?["y"]:n,i.height=o,i.size=void 0===s?10:s,i.reverseOrder=void 0!==a&&a,i}return eD(t,e),t.prototype.process=function(e){var t=this.yField,i=this.reverseOrder,n=t?this.processStack(e):this.processOneDimStack(e);return i?this.reverse(n):n},t.prototype.reverse=function(e){return e.slice(0).reverse()},t.prototype.processStack=function(e){var t=this.xField,i=this.yField,n=this.reverseOrder?this.reverse(e):e,r=new eF,o=new eF;return n.map(function(e){return e.map(function(e){var n,s=em.U2(e,t,0),a=em.U2(e,[i]),l=s.toString();if(a=em.kJ(a)?a[1]:a,!em.UM(a)){var h=a>=0?r:o;h.has(l)||h.set(l,0);var u=h.get(l),d=a+u;return h.set(l,d),eM(eM({},e),((n={})[i]=[u,d],n))}return e})})},t.prototype.processOneDimStack=function(e){var t=this,i=this.xField,n=this.height,r=this.reverseOrder?this.reverse(e):e,o=new eF;return r.map(function(e){return e.map(function(e){var r,s=t.size,a=e[i],l=2*s/n;o.has(a)||o.set(a,l/2);var h=o.get(a);return o.set(a,h+l),eM(eM({},e),((r={}).y=h,r))})})},t}(eN),eU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return eD(t,e),t.prototype.process=function(e){var t=em.xH(e),i=this.xField,n=this.yField,r=this.getXValuesMaxMap(t),o=Math.max.apply(Math,Object.keys(r).map(function(e){return r[e]}));return em.UI(e,function(e){return em.UI(e,function(e){var t,s,a=e[n],l=e[i];if(em.kJ(a)){var h=(o-r[l])/2;return eM(eM({},e),((t={})[n]=em.UI(a,function(e){return h+e}),t))}var u=(o-a)/2;return eM(eM({},e),((s={})[n]=[u,a+u],s))})})},t.prototype.getXValuesMaxMap=function(e){var t=this,i=this.xField,n=this.yField,r=em.vM(e,function(e){return e[i]});return em.Q8(r,function(e){return t.getDimMaxValue(e,n)})},t.prototype.getDimMaxValue=function(e,t){var i=em.UI(e,function(e){return em.U2(e,t,[])}),n=em.xH(i);return Math.max.apply(Math,n)},t}(eN);eO("Dodge",ek),eO("Jitter",eP),eO("Stack",eB),eO("Symmetric",eU);var eH=function(e,t){return(0,em.HD)(t)?t:e.invert(e.scale(t))},eV=function(){function e(e){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(e)}return e.prototype.mapping=function(){for(var e=this,t=[],i=0;i1?1:Number(t),n=e.length-1,r=Math.floor(n*i),o=n*i-r,s=e[r],a=r===n?s:e[r+1];return eX([e$(s,a,o,0),e$(s,a,o,1),e$(s,a,o,2)])},eJ=function(e){if("#"===e[0]&&7===e.length)return e;W||(W=eK()),W.style.color=e;var t=document.defaultView.getComputedStyle(W,"").getPropertyValue("color");return eX(eW.exec(t)[1].split(/\s*,\s*/).map(function(e){return Number(e)}))},eQ={rgb2arr:ej,gradient:function(e){var t=(0,em.HD)(e)?e.split("-"):e,i=(0,em.UI)(t,function(e){return ej(-1===e.indexOf("#")?eJ(e):e)});return function(e){return eZ(i,e)}},toRGB:(0,em.HP)(eJ),toCSSGradient:function(e){if(/^[r,R,L,l]{1}[\s]*\(/.test(e)){var t,i=void 0;if("l"===e[0]){var n=eG.exec(e),r=+n[1]+90;i=n[2],t="linear-gradient("+r+"deg, "}else if("r"===e[0]){t="radial-gradient(";var n=ez.exec(e);i=n[4]}var o=i.match(eY);return(0,em.S6)(o,function(e,i){var n=e.split(":");t+=n[1]+" "+100*n[0]+"%",i!==o.length-1&&(t+=", ")}),t+=")"}return e}},e0=function(e){function t(t){var i=e.call(this,t)||this;return i.type="color",i.names=["color"],(0,em.HD)(i.values)&&(i.linear=!0),i.gradient=eQ.gradient(i.values),i}return(0,ef.ZT)(t,e),t.prototype.getLinearValue=function(e){return this.gradient(e)},t}(eV),e1=function(e){function t(t){var i=e.call(this,t)||this;return i.type="opacity",i.names=["opacity"],i}return(0,ef.ZT)(t,e),t}(eV),e2=function(e){function t(t){var i=e.call(this,t)||this;return i.names=["x","y"],i.type="position",i}return(0,ef.ZT)(t,e),t.prototype.mapping=function(e,t){var i=this.scales,n=i[0],r=i[1];return(0,em.UM)(e)||(0,em.UM)(t)?[]:[(0,em.kJ)(e)?e.map(function(e){return n.scale(e)}):n.scale(e),(0,em.kJ)(t)?t.map(function(e){return r.scale(e)}):r.scale(t)]},t}(eV),e4=function(e){function t(t){var i=e.call(this,t)||this;return i.type="shape",i.names=["shape"],i}return(0,ef.ZT)(t,e),t.prototype.getLinearValue=function(e){var t=Math.round((this.values.length-1)*e);return this.values[t]},t}(eV),e5=function(e){function t(t){var i=e.call(this,t)||this;return i.type="size",i.names=["size"],i}return(0,ef.ZT)(t,e),t}(eV),e6={},e3=function(){function e(e){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=e,this.initCfg(),this.init()}return e.prototype.translate=function(e){return e},e.prototype.change=function(e){(0,em.f0)(this.__cfg__,e),this.init()},e.prototype.clone=function(){return this.constructor(this.__cfg__)},e.prototype.getTicks=function(){var e=this;return(0,em.UI)(this.ticks,function(t,i){return(0,em.Kn)(t)?t:{text:e.getText(t,i),tickValue:t,value:e.scale(t)}})},e.prototype.getText=function(e,t){var i=this.formatter,n=i?i(e,t):e;return(0,em.UM)(n)||!(0,em.mf)(n.toString)?"":n.toString()},e.prototype.getConfig=function(e){return this.__cfg__[e]},e.prototype.init=function(){(0,em.f0)(this,this.__cfg__),this.setDomain(),(0,em.xb)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},e.prototype.initCfg=function(){},e.prototype.setDomain=function(){},e.prototype.calculateTicks=function(){var e=this.tickMethod,t=[];if((0,em.HD)(e)){var i=e6[e];if(!i)throw Error("There is no method to to calculate ticks!");t=i(this)}else(0,em.mf)(e)&&(t=e(this));return t},e.prototype.rangeMin=function(){return this.range[0]},e.prototype.rangeMax=function(){return this.range[1]},e.prototype.calcPercent=function(e,t,i){return(0,em.hj)(e)?(e-t)/(i-t):NaN},e.prototype.calcValue=function(e,t,i){return t+e*(i-t)},e}(),e9=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cat",t.isCategory=!0,t}return(0,ef.ZT)(t,e),t.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var e=0;ethis.max?NaN:this.values[t]},t.prototype.getText=function(t){for(var i=[],n=1;n1?e-1:e}this.translateIndexMap&&(this.translateIndexMap=void 0)},t}(e3),e7=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,e8="\\d\\d?",te="\\d\\d",tt="[^\\s]+",ti=/\[([^]*?)\]/gm;function tn(e,t){for(var i=[],n=0,r=e.length;n-1?n:null}};function to(e){for(var t=[],i=1;i3?0:(e-e%10!=10?1:0)*e%10]}},tu=to({},th),td=function(e){return tu=to(tu,e)},tc=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},tg=function(e,t){for(void 0===t&&(t=2),e=String(e);e.lengthe.getHours()?t.amPm[0]:t.amPm[1]},A:function(e,t){return 12>e.getHours()?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+tg(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+tg(Math.floor(Math.abs(t)/60),2)+":"+tg(Math.abs(t)%60,2)}},tf=function(e){return+e-1},tm=[null,e8],tv=[null,tt],tE=["isPm",tt,function(e,t){var i=e.toLowerCase();return i===t.amPm[0]?0:i===t.amPm[1]?1:null}],t_=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var i=60*+t[1]+parseInt(t[2],10);return"+"===t[0]?i:-i}return 0}],tC={D:["day",e8],DD:["day",te],Do:["day",e8+tt,function(e){return parseInt(e,10)}],M:["month",e8,tf],MM:["month",te,tf],YY:["year",te,function(e){var t=+(""+new Date().getFullYear()).substr(0,2);return+(""+(+e>68?t-1:t)+e)}],h:["hour",e8,void 0,"isPm"],hh:["hour",te,void 0,"isPm"],H:["hour",e8],HH:["hour",te],m:["minute",e8],mm:["minute",te],s:["second",e8],ss:["second",te],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(e){return 100*+e}],SS:["millisecond",te,function(e){return 10*+e}],SSS:["millisecond","\\d{3}"],d:tm,dd:tm,ddd:tv,dddd:tv,MMM:["month",tt,tr("monthNamesShort")],MMMM:["month",tt,tr("monthNames")],a:tE,A:tE,ZZ:t_,Z:t_},tS={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},ty=function(e){return to(tS,e)},tT=function(e,t,i){if(void 0===t&&(t=tS.default),void 0===i&&(i={}),"number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw Error("Invalid Date pass to format");t=tS[t]||t;var n=[];t=t.replace(ti,function(e,t){return n.push(t),"@@@"});var r=to(to({},tu),i);return(t=t.replace(e7,function(t){return tp[t](e,r)})).replace(/@@@/g,function(){return n.shift()})};function tb(e,t,i){if(void 0===i&&(i={}),"string"!=typeof t)throw Error("Invalid format in fecha parse");if(t=tS[t]||t,e.length>1e3)return null;var n,r={year:new Date().getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},o=[],s=[],a=t.replace(ti,function(e,t){return s.push(tc(t)),"@@@"}),l={},h={};a=tc(a).replace(e7,function(e){var t=tC[e],i=t[0],n=t[1],r=t[3];if(l[i])throw Error("Invalid format. "+i+" specified twice in format");return l[i]=!0,r&&(h[r]=!0),o.push(t),"("+n+")"}),Object.keys(h).forEach(function(e){if(!l[e])throw Error("Invalid format. "+e+" is required in specified format")}),a=a.replace(/@@@/g,function(){return s.shift()});var u=e.match(RegExp(a,"i"));if(!u)return null;for(var d=to(to({},tu),i),c=1;c11||r.month<0||r.day>31||r.day<1||r.hour>23||r.hour<0||r.minute>59||r.minute<0||r.second>59||r.second<0)return null;return n}var tA={format:tT,parse:tb,defaultI18n:th,setGlobalDateI18n:td,setGlobalDateMasks:ty},tR="format";function tL(e,t){return(ei[tR]||tA[tR])(e,t)}function tN(e){return(0,em.HD)(e)&&(e=e.indexOf("T")>0?new Date(e).getTime():new Date(e.replace(/-/gi,"/")).getTime()),(0,em.J_)(e)&&(e=e.getTime()),e}var tI=[["HH:mm:ss",1e3],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",6e4],["HH:mm",6e5],["HH:mm",18e5],["HH",36e5],["HH",216e5],["HH",432e5],["YYYY-MM-DD",864e5],["YYYY-MM-DD",3456e5],["YYYY-WW",6048e5],["YYYY-MM",26784e5],["YYYY-MM",107136e5],["YYYY-MM",160704e5],["YYYY",32832e6]],tw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="timeCat",t}return(0,ef.ZT)(t,e),t.prototype.translate=function(e){e=tN(e);var t=this.values.indexOf(e);return -1===t&&(t=(0,em.hj)(e)&&e-1){var n=this.values[i],r=this.formatter;return r?r(n,t):tL(n,this.mask)}return e},t.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},t.prototype.setDomain=function(){var t=this.values;(0,em.S6)(t,function(e,i){t[i]=tN(e)}),t.sort(function(e,t){return e-t}),e.prototype.setDomain.call(this)},t}(e9),tO=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isContinuous=!0,t}return(0,ef.ZT)(t,e),t.prototype.scale=function(e){if((0,em.UM)(e))return NaN;var t=this.rangeMin(),i=this.rangeMax();return this.max===this.min?t:t+this.getScalePercent(e)*(i-t)},t.prototype.init=function(){e.prototype.init.call(this);var t=this.ticks,i=(0,em.YM)(t),n=(0,em.Z$)(t);ithis.max&&(this.max=n),(0,em.UM)(this.minLimit)||(this.min=i),(0,em.UM)(this.maxLimit)||(this.max=n)},t.prototype.setDomain=function(){var e=(0,em.rx)(this.values),t=e.min,i=e.max;(0,em.UM)(this.min)&&(this.min=t),(0,em.UM)(this.max)&&(this.max=i),this.min>this.max&&(this.min=t,this.max=i)},t.prototype.calculateTicks=function(){var t=this,i=e.prototype.calculateTicks.call(this);return this.nice||(i=(0,em.hX)(i,function(e){return e>=t.min&&e<=t.max})),i},t.prototype.getScalePercent=function(e){var t=this.max,i=this.min;return(e-i)/(t-i)},t.prototype.getInvertPercent=function(e){return(e-this.rangeMin())/(this.rangeMax()-this.rangeMin())},t}(e3),tx=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="linear",t.isLinear=!0,t}return(0,ef.ZT)(t,e),t.prototype.invert=function(e){var t=this.getInvertPercent(e);return this.min+t*(this.max-this.min)},t.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},t}(tO);function tD(e,t){var i=Math.E;return t>=0?Math.pow(i,Math.log(t)/e):-1*Math.pow(i,Math.log(-t)/e)}function tM(e,t){return 1===e?1:Math.log(t)/Math.log(e)}function tk(e,t,i){(0,em.UM)(i)&&(i=Math.max.apply(null,e));var n=i;return(0,em.S6)(e,function(e){e>0&&e1&&(n=1),n}var tP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t}return(0,ef.ZT)(t,e),t.prototype.invert=function(e){var t,i=this.base,n=tM(i,this.max),r=this.rangeMin(),o=this.rangeMax()-r,s=this.positiveMin;if(s){if(0===e)return 0;var a=1/(n-(t=tM(i,s/i)))*o;if(e=0?1:-1)},t.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},t.prototype.getScalePercent=function(e){var t=this.max,i=this.min;if(t===i)return 0;var n=this.exponent;return(tD(n,e)-tD(n,i))/(tD(n,t)-tD(n,i))},t}(tO),tB=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="time",t}return(0,ef.ZT)(t,e),t.prototype.getText=function(e,t){var i=this.translate(e),n=this.formatter;return n?n(i,t):tL(i,this.mask)},t.prototype.scale=function(t){var i=t;return((0,em.HD)(i)||(0,em.J_)(i))&&(i=this.translate(i)),e.prototype.scale.call(this,i)},t.prototype.translate=function(e){return tN(e)},t.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},t.prototype.setDomain=function(){var e=this.values,t=this.getConfig("min"),i=this.getConfig("max");if((0,em.UM)(t)&&(0,em.hj)(t)||(this.min=this.translate(this.min)),(0,em.UM)(i)&&(0,em.hj)(i)||(this.max=this.translate(this.max)),e&&e.length){var n=[],r=1/0,o=1/0,s=0;(0,em.S6)(e,function(e){var t=tN(e);if(isNaN(t))throw TypeError("Invalid Time: "+e+" in time scale!");r>t?(o=r,r=t):o>t&&(o=t),s1&&(this.minTickInterval=o-r),(0,em.UM)(t)&&(this.min=r),(0,em.UM)(i)&&(this.max=s)}},t}(tx),tU=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="quantize",t}return(0,ef.ZT)(t,e),t.prototype.invert=function(e){var t=this.ticks,i=t.length,n=this.getInvertPercent(e),r=Math.floor(n*(i-1));if(r>=i-1)return(0,em.Z$)(t);if(r<0)return(0,em.YM)(t);var o=t[r],s=t[r+1],a=r/(i-1);return o+(n-a)/((r+1)/(i-1)-a)*(s-o)},t.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},t.prototype.calculateTicks=function(){var t=e.prototype.calculateTicks.call(this);return this.nice||((0,em.Z$)(t)!==this.max&&t.push(this.max),(0,em.YM)(t)!==this.min&&t.unshift(this.min)),t},t.prototype.getScalePercent=function(e){var t=this.ticks;if(e<(0,em.YM)(t))return 0;if(e>(0,em.Z$)(t))return 1;var i=0;return(0,em.S6)(t,function(t,n){if(!(e>=t))return!1;i=n}),i/(t.length-1)},t}(tO),tH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="quantile",t}return(0,ef.ZT)(t,e),t.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},t}(tU),tV={};function tW(e,t){if(tV[e])throw Error("type '"+e+"' existed.");tV[e]=t}var tG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="identity",t.isIdentity=!0,t}return(0,ef.ZT)(t,e),t.prototype.calculateTicks=function(){return this.values},t.prototype.scale=function(e){return this.values[0]!==e&&(0,em.hj)(e)?e:this.range[0]},t.prototype.invert=function(e){var t=this.range;return et[1]?NaN:this.values[0]},t}(e3);function tz(e){var t=e.values,i=e.tickInterval,n=e.tickCount,r=e.showLast;if((0,em.hj)(i)){var o=(0,em.hX)(t,function(e,t){return t%i==0}),s=(0,em.Z$)(t);return r&&(0,em.Z$)(o)!==s&&o.push(s),o}var a=t.length,l=e.min,h=e.max;if((0,em.UM)(l)&&(l=0),(0,em.UM)(h)&&(h=t.length-1),!(0,em.hj)(n)||n>=a)return t.slice(l,h+1);if(n<=0||h<=0)return[];for(var u=1===n?a:Math.floor(a/(n-1)),d=[],c=l,g=0;g=h);g++)c=Math.min(l+g*u,h),g===n-1&&r?d.push(t[h]):d.push(t[c]);return d}var tY=Math.sqrt(50),tK=Math.sqrt(10),t$=Math.sqrt(2),tX=function(){function e(){this._domain=[0,1]}return e.prototype.domain=function(e){return e?(this._domain=Array.from(e,Number),this):this._domain.slice()},e.prototype.nice=function(e){void 0===e&&(e=5);var t,i,n,r=this._domain.slice(),o=0,s=this._domain.length-1,a=this._domain[o],l=this._domain[s];return l0?n=tj(a=Math.floor(a/n)*n,l=Math.ceil(l/n)*n,e):n<0&&(n=tj(a=Math.ceil(a*n)/n,l=Math.floor(l*n)/n,e)),n>0?(r[o]=Math.floor(a/n)*n,r[s]=Math.ceil(l/n)*n,this.domain(r)):n<0&&(r[o]=Math.ceil(a*n)/n,r[s]=Math.floor(l*n)/n,this.domain(r)),this},e.prototype.ticks=function(e){return void 0===e&&(e=5),function(e,t,i){var n,r,o,s,a=-1;if(i=+i,(e=+e)==(t=+t)&&i>0)return[e];if((n=t0)for(e=Math.ceil(e/s),o=Array(r=Math.ceil((t=Math.floor(t/s))-e+1));++a=0?(o>=tY?10:o>=tK?5:o>=t$?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=tY?10:o>=tK?5:o>=t$?2:1)}function tq(e,t,i){return("ceil"===i?Math.ceil(e/t):"floor"===i?Math.floor(e/t):Math.round(e/t))*t}function tZ(e,t,i){var n=tq(e,i,"floor"),r=tq(t,i,"ceil");n=(0,em.ri)(n,i),r=(0,em.ri)(r,i);for(var o=[],s=Math.max((r-n)/4095,i),a=n;a<=r;a+=s){var l=(0,em.ri)(a,s);o.push(l)}return{min:n,max:r,ticks:o}}function tJ(e,t,i){var n,r=e.minLimit,o=e.maxLimit,s=e.min,a=e.max,l=e.tickCount,h=void 0===l?5:l,u=(0,em.UM)(r)?(0,em.UM)(t)?s:t:r,d=(0,em.UM)(o)?(0,em.UM)(i)?a:i:o;if(u>d&&(d=(n=[u,d])[0],u=n[1]),h<=2)return[u,d];for(var c=(d-u)/(h-1),g=[],p=0;pMath.abs(e)?e:parseFloat(e.toFixed(15))}var t0=[1,5,2,2.5,4,3],t1=100*Number.EPSILON;function t2(e,t,i){if(void 0===i&&(i=5),e===t)return{max:t,min:e,ticks:[e]};var n=i<0?0:Math.round(i);if(0===n)return{max:t,min:e,ticks:[]};var r=(t-e)/n,o=Math.pow(10,Math.floor(Math.log10(r))),s=o;2*o-r<1.5*(r-s)&&(s=2*o,5*o-r<2.75*(r-s)&&(s=5*o,10*o-r<1.5*(r-s)&&(s=10*o)));for(var a=Math.ceil(t/s),l=Math.floor(e/s),h=Math.max(a*s,t),u=Math.min(l*s,e),d=Math.floor((h-u)/s)+1,c=Array(d),g=0;g1e148){var a=i||5,l=(t-e)/a;return{min:e,max:t,ticks:Array(a).fill(null).map(function(t,i){return tQ(e+l*i)})}}for(var h={score:-2,lmin:0,lmax:0,lstep:0},u=1;u<1/0;){for(var d=0;d=s?2-(y-1)/(s-1):1;if(o[0]*g+o[1]+o[2]*f+o[3]n?1-Math.pow((i-n)/2,2)/Math.pow(.1*n,2):1}(e,t,v*(p-1));if(o[0]*g+o[1]*E+o[2]*f+o[3]=0&&(l=1),1-a/(s-1)-i+l}(c,r,u,T,b,v),R=1-.5*(Math.pow(t-b,2)+Math.pow(e-T,2))/Math.pow(.1*(t-e),2),L=function(e,t,i,n,r,o){var s=(e-1)/(o-r),a=(t-1)/(Math.max(o,n)-Math.min(i,r));return 2-Math.max(s/a,a/s)}(p,s,e,t,T,b),N=o[0]*A+o[1]*R+o[2]*L+1*o[3];N>h.score&&(!n||T<=e&&b>=t)&&(h.lmin=T,h.lmax=b,h.lstep=v,h.score=N)}m+=1}p+=1}}u+=1}var I=tQ(h.lmax),w=tQ(h.lmin),O=tQ(h.lstep),x=Math.floor(Math.round(1e12*((I-w)/O))/1e12)+1,D=Array(x);D[0]=tQ(w);for(var d=1;d>>1;e[s][1]>t?o=s:r=s+1}return r}(tI,(i-t)/(s=o))-1,l=tI[a],a<0?l=tI[0]:a>=tI.length&&(l=(0,em.Z$)(tI)),l)[1];var s,a,l,h=(i-t)/r/o;h>1&&(r*=Math.ceil(h)),n&&r31536e6)for(var l,h=t4(i),u=Math.ceil(o/31536e6),d=a;d<=h+u;d+=u)s.push((l=d,new Date(l,0,1).getTime()));else if(o>26784e5)for(var c,g,p,f,m=Math.ceil(o/26784e5),v=t5(t),E=(c=t4(t),g=t4(i),p=t5(t),(g-c)*12+(t5(i)-p)%12),d=0;d<=E+m;d+=m)s.push((f=d+v,new Date(a,f,1).getTime()));else if(o>864e5)for(var _=new Date(t),C=_.getFullYear(),S=_.getMonth(),y=_.getDate(),T=Math.ceil(o/864e5),b=Math.ceil((i-t)/864e5),d=0;d36e5)for(var _=new Date(t),C=_.getFullYear(),S=_.getMonth(),T=_.getDate(),A=_.getHours(),R=Math.ceil(o/36e5),L=Math.ceil((i-t)/36e5),d=0;d<=L+R;d+=R)s.push(new Date(C,S,T,A+d).getTime());else if(o>6e4)for(var N=Math.ceil((i-t)/6e4),I=Math.ceil(o/6e4),d=0;d<=N+I;d+=I)s.push(t+6e4*d);else{var w=o;w<1e3&&(w=1e3);for(var O=1e3*Math.floor(t/1e3),x=Math.ceil((i-t)/1e3),D=Math.ceil(w/1e3),d=0;d=512&&console.warn("Notice: current ticks length("+s.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+o+") is too small, increase the value to solve the problem!"),s},e6.log=function(e){var t,i=e.base,n=e.tickCount,r=e.min,o=e.max,s=e.values,a=tM(i,o);if(r>0)t=Math.floor(tM(i,r));else{var l=tk(s,i,o);t=Math.floor(tM(i,l))}for(var h=Math.ceil((a-t)/n),u=[],d=t;d=0?1:-1)})},e6.quantile=function(e){var t=e.tickCount,i=e.values;if(!i||!i.length)return[];for(var n=i.slice().sort(function(e,t){return e-t}),r=[],o=0;o=0&&this.radius<=1&&(i*=this.radius),this.d=Math.floor(i*(1-this.innerRadius)/t),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*i,end:this.innerRadius*i+.99*this.d}},t.prototype.convertPoint=function(e){var t,i=e.x,n=e.y;this.isTransposed&&(i=(t=[n,i])[0],n=t[1]);var r=this.convertDim(i,"x"),o=this.a*r,s=this.convertDim(n,"y");return{x:this.center.x+Math.cos(r)*(o+s),y:this.center.y+Math.sin(r)*(o+s)}},t.prototype.invertPoint=function(e){var t,i=this.d+this.y.start,n=io.$X([0,0],[e.x,e.y],[this.center.x,this.center.y]),r=it.Dg(n,[1,0],!0),o=r*this.a;io.kE(n)this.width/n?(t=this.width/n,this.circleCenter={x:this.center.x-(.5-o)*this.width,y:this.center.y-(.5-s)*t*r}):(t=this.height/r,this.circleCenter={x:this.center.x-(.5-o)*t*n,y:this.center.y-(.5-s)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=t*this.radius:(this.radius<=0||this.radius>t)&&(this.polarRadius=t):this.polarRadius=t,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},t.prototype.getRadius=function(){return this.polarRadius},t.prototype.convertPoint=function(e){var t,i=this.getCenter(),n=e.x,r=e.y;return this.isTransposed&&(n=(t=[r,n])[0],r=t[1]),n=this.convertDim(n,"x"),r=this.convertDim(r,"y"),{x:i.x+Math.cos(n)*r,y:i.y+Math.sin(n)*r}},t.prototype.invertPoint=function(e){var t,i=this.getCenter(),n=[e.x-i.x,e.y-i.y],r=this.startAngle,o=this.endAngle;this.isReflect("x")&&(r=(t=[o,r])[0],o=t[1]);var s=[1,0,0,0,1,0,0,0,1];it.zu(s,s,r);var a=[1,0,0];t8(a,a,s);var l=[a[0],a[1]],h=it.Dg(l,n,o0?d:-d;var c=this.invertDim(u,"y"),g={x:0,y:0};return g.x=this.isTransposed?c:d,g.y=this.isTransposed?d:c,g},t.prototype.getCenter=function(){return this.circleCenter},t.prototype.getOneBox=function(){var e=this.startAngle,t=this.endAngle;if(Math.abs(t-e)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var i=[0,Math.cos(e),Math.cos(t)],n=[0,Math.sin(e),Math.sin(t)],r=Math.min(e,t);r=0;n--)e.removeChild(t[n])}function iC(e){var t=e.start,i=e.end,n=Math.min(t.x,i.x),r=Math.min(t.y,i.y),o=Math.max(t.x,i.x),s=Math.max(t.y,i.y);return{x:n,y:r,minX:n,minY:r,maxX:o,maxY:s,width:o-n,height:s-r}}function iS(e,t,i,n){var r=e+i,o=t+n;return{x:e,y:t,width:i,height:n,minX:e,minY:t,maxX:isNaN(r)?0:r,maxY:isNaN(o)?0:o}}function iy(e,t,i){return{x:e.x+Math.cos(i)*t,y:e.y+Math.sin(i)*t}}var iT=function(e,t,i){return void 0===i&&(i=Math.pow(Number.EPSILON,.5)),[e,t].includes(1/0)?Math.abs(e)===Math.abs(t):Math.abs(e-t)0?(0,em.S6)(c,function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var i=e(t),n=t.applyToMatrix([i.minX,i.minY,1]),r=t.applyToMatrix([i.minX,i.maxY,1]),o=t.applyToMatrix([i.maxX,i.minY,1]),s=t.applyToMatrix([i.maxX,i.maxY,1]),a=Math.min(n[0],r[0],o[0],s[0]),c=Math.max(n[0],r[0],o[0],s[0]),g=Math.min(n[1],r[1],o[1],s[1]),p=Math.max(n[1],r[1],o[1],s[1]);ah&&(h=c),gd&&(d=p)}}):(l=0,h=0,u=0,d=0),o=iS(l,u,h-l,d-u)}else o=t.getBBox();return a?iS(n=Math.max((i=o).minX,a.minX),r=Math.max(i.minY,a.minY),Math.min(i.maxX,a.maxX)-n,Math.min(i.maxY,a.maxY)-r):o}(e)),e},t.prototype.addGroup=function(e,t){this.appendDelegateObject(e,t);var i=e.addGroup(t);return this.get("isRegister")&&this.registerElement(i),i},t.prototype.addShape=function(e,t){this.appendDelegateObject(e,t);var i=e.addShape(t);return this.get("isRegister")&&this.registerElement(i),i},t.prototype.addComponent=function(e,t){var i=t.id,n=t.component,r=(0,ef._T)(t,["id","component"]),o=new n((0,ef.pi)((0,ef.pi)({},r),{id:i,container:e,updateAutoRender:this.get("updateAutoRender")}));return o.init(),o.render(),this.get("isRegister")&&this.registerElement(o.get("group")),o},t.prototype.initEvent=function(){},t.prototype.removeEvent=function(){this.get("group").off()},t.prototype.getElementId=function(e){return this.get("id")+"-"+this.get("name")+"-"+e},t.prototype.registerElement=function(e){var t=e.get("id");this.get("shapesMap")[t]=e},t.prototype.unregisterElement=function(e){var t=e.get("id");delete this.get("shapesMap")[t]},t.prototype.moveElementTo=function(e,t){var i=ig(t);e.attr("matrix",i)},t.prototype.addAnimation=function(e,t,i){var n=t.attr("opacity");(0,em.UM)(n)&&(n=1),t.attr("opacity",0),t.animate({opacity:n},i)},t.prototype.removeAnimation=function(e,t,i){t.animate({opacity:0},i)},t.prototype.updateAnimation=function(e,t,i,n){t.animate(i,n)},t.prototype.updateElements=function(e,t){var i,n=this,r=this.get("animate"),o=this.get("animateOption"),s=e.getChildren().slice(0);(0,em.S6)(s,function(e){var s=e.get("id"),a=n.getElementById(s),l=e.get("name");if(a){if(e.get("isComponent")){var h=e.get("component"),u=a.get("component"),d=(0,em.ei)(h.cfg,(0,em.e5)((0,em.XP)(h.cfg),iw));u.update(d),a.set(iN,"update")}else{var c=n.getReplaceAttrs(a,e);r&&o.update?n.updateAnimation(l,a,c,o.update):a.attr(c),e.isGroup()&&n.updateElements(e,a),(0,em.S6)(iI,function(t){a.set(t,e.get(t))}),function(e,t){if(e.getClip()||t.getClip()){var i=t.getClip();if(!i){e.setClip(null);return}var n={type:i.get("type"),attrs:i.attr()};e.setClip(n)}}(a,e),i=a,a.set(iN,"update")}}else{t.add(e);var g=t.getChildren();if(g.splice(g.length-1,1),i){var p=g.indexOf(i);g.splice(p+1,0,e)}else g.unshift(e);if(n.registerElement(e),e.set(iN,"add"),e.get("isComponent")){var h=e.get("component");h.set("container",t)}else e.isGroup()&&n.registerNewGroup(e);if(i=e,r){var f=n.get("isInit")?o.appear:o.enter;f&&n.addAnimation(l,e,f)}}})},t.prototype.clearUpdateStatus=function(e){var t=e.getChildren();(0,em.S6)(t,function(e){e.set(iN,null)})},t.prototype.clearOffScreenCache=function(){var e=this.get("offScreenGroup");e&&e.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},t.prototype.getDelegateObject=function(){var e,t=this.get("name");return(e={})[t]=this,e.component=this,e},t.prototype.appendDelegateObject=function(e,t){var i=e.get("delegateObject");t.delegateObject||(t.delegateObject={}),(0,em.CD)(t.delegateObject,i)},t.prototype.getReplaceAttrs=function(e,t){var i=e.attr(),n=t.attr();return(0,em.S6)(i,function(e,t){void 0===n[t]&&(n[t]=void 0)}),n},t.prototype.registerNewGroup=function(e){var t=this,i=e.getChildren();(0,em.S6)(i,function(e){t.registerElement(e),e.set(iN,"add"),e.isGroup()&&t.registerNewGroup(e)})},t.prototype.deleteElements=function(){var e=this,t=this.get("shapesMap"),i=[];(0,em.S6)(t,function(e,t){!e.get(iN)||e.destroyed?i.push([t,e]):e.set(iN,null)});var n=this.get("animate"),r=this.get("animateOption");(0,em.S6)(i,function(i){var o=i[0],s=i[1];if(!s.destroyed){var a=s.get("name");if(n&&r.leave){var l=(0,em.CD)({callback:function(){e.removeElement(s)}},r.leave);e.removeAnimation(a,s,l)}else e.removeElement(s)}delete t[o]})},t.prototype.removeElement=function(e){if(e.get("isGroup")){var t=e.get("component");t&&t.destroy()}e.remove()},t}(iL);function ix(e,t){return e.charCodeAt(t)>0&&128>e.charCodeAt(t)?1:2}function iD(e){if(e.length>400)return function(e){for(var t=e.map(function(e){var t=e.attr("text");return(0,em.UM)(t)?"":""+t}),i=0,n=0,r=0;r=19968&&a<=40869?o+=2:o+=1}o>i&&(i=o,n=r)}return e[n].getBBox().width}(e);var t=0;return(0,em.S6)(e,function(e){var i=e.getBBox().width;t=0?function(e,t,i){void 0===i&&(i="tail");var n=e.length,r="";if("tail"===i){for(var o=0,s=0;o1||n<0)&&(n=1),{x:(r=e.x,o=t.x,(1-(s=n))*r+o*s),y:(a=e.y,l=t.y,(1-(h=n))*a+l*h)}},t.prototype.renderLabel=function(e){var t=this.get("text"),i=this.get("start"),n=this.get("end"),r=t.position,o=t.content,s=t.style,a=t.offsetX,l=t.offsetY,h=t.autoRotate,u=t.maxLength,d=t.autoEllipsis,c=t.ellipsisPosition,g=t.background,p=t.isVertical,f=this.getLabelPoint(i,n,r),m=f.x+a,v=f.y+l,E={id:this.getElementId("line-text"),name:"annotation-line-text",x:m,y:v,content:o,style:s,maxLength:u,autoEllipsis:d,ellipsisPosition:c,background:g,isVertical:void 0!==p&&p};if(h){var _=[n.x-i.x,n.y-i.y];E.rotate=Math.atan2(_[1],_[0])}ik(e,E)},t}(iO),iB=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:iP.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:iP.fontFamily}}})},t.prototype.setLocation=function(e){this.set("x",e.x),this.set("y",e.y),this.resetLocation()},t.prototype.renderInner=function(e){var t=this.getLocation(),i=t.x,n=t.y,r=this.get("content"),o=this.get("style");ik(e,{id:this.getElementId("text"),name:this.get("name")+"-text",x:i,y:n,content:r,style:o,maxLength:this.get("maxLength"),autoEllipsis:this.get("autoEllipsis"),isVertical:this.get("isVertical"),ellipsisPosition:this.get("ellipsisPosition"),background:this.get("background"),rotate:this.get("rotate")})},t.prototype.resetLocation=function(){var e=this.getElementByLocalId("text-group");if(e){var t=this.getLocation(),i=t.x,n=t.y,r=this.get("rotate");iv(e,i,n),im(e,r,i,n)}},t}(iO),iU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},t.prototype.renderInner=function(e){this.renderArc(e)},t.prototype.getArcPath=function(){var e=this.getLocation(),t=e.center,i=e.radius,n=e.startAngle,r=e.endAngle,o=iy(t,i,n),s=iy(t,i,r),a=r-n>Math.PI?1:0,l=[["M",o.x,o.y]];if(r-n==2*Math.PI){var h=iy(t,i,n+Math.PI);l.push(["A",i,i,0,a,1,h.x,h.y]),l.push(["A",i,i,0,a,1,s.x,s.y])}else l.push(["A",i,i,0,a,1,s.x,s.y]);return l},t.prototype.renderArc=function(e){var t=this.getArcPath(),i=this.get("style");this.addShape(e,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:(0,ef.pi)({path:t},i)})},t}(iO),iH=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:iP.regionColor,opacity:.4}}})},t.prototype.renderInner=function(e){this.renderRegion(e)},t.prototype.renderRegion=function(e){var t=this.get("start"),i=this.get("end"),n=this.get("style"),r=iC({start:t,end:i});this.addShape(e,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:(0,ef.pi)({x:r.x,y:r.y,width:r.width,height:r.height},n)})},t}(iO),iV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},t.prototype.renderInner=function(e){this.renderImage(e)},t.prototype.getImageAttrs=function(){var e=this.get("start"),t=this.get("end"),i=this.get("style"),n=iC({start:e,end:t}),r=this.get("src");return(0,ef.pi)({x:n.x,y:n.y,img:r,width:n.width,height:n.height},i)},t.prototype.renderImage=function(e){this.addShape(e,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},t}(iO),iW=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:iP.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:iP.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:iP.fontFamily}}}})},t.prototype.renderInner=function(e){(0,em.U2)(this.get("line"),"display")&&this.renderLine(e),(0,em.U2)(this.get("text"),"display")&&this.renderText(e),(0,em.U2)(this.get("point"),"display")&&this.renderPoint(e),this.get("autoAdjust")&&this.autoAdjust(e)},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},t.prototype.renderPoint=function(e){var t=this.getShapeAttrs().point;this.addShape(e,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:t})},t.prototype.renderLine=function(e){var t=this.getShapeAttrs().line;this.addShape(e,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:t})},t.prototype.renderText=function(e){var t=this.getShapeAttrs().text,i=t.x,n=t.y,r=t.text,o=(0,ef._T)(t,["x","y","text"]),s=this.get("text"),a=s.background,l=s.maxLength,h=s.autoEllipsis,u=s.isVertival,d=s.ellipsisPosition;ik(e,{x:i,y:n,id:this.getElementId("text"),name:"annotation-text",content:r,style:o,background:a,maxLength:l,autoEllipsis:h,isVertival:u,ellipsisPosition:d})},t.prototype.autoAdjust=function(e){var t=this.get("direction"),i=this.get("x"),n=this.get("y"),r=(0,em.U2)(this.get("line"),"length",0),o=this.get("coordinateBBox"),s=e.getBBox(),a=s.minX,l=s.maxX,h=s.minY,u=s.maxY,d=e.findById(this.getElementId("text-group")),c=e.findById(this.getElementId("text")),g=e.findById(this.getElementId("line"));if(o&&d){var p=d.attr("x"),f=d.attr("y"),m=c.getCanvasBBox(),v=m.width,E=m.height,_=0,C=0;if(i+a<=o.minX){if("leftward"===t)_=1;else{var S=o.minX-(i+a);p=d.attr("x")+S}}else if(i+l>=o.maxX){if("rightward"===t)_=-1;else{var S=i+l-o.maxX;p=d.attr("x")-S}}if(_&&(g&&g.attr("path",[["M",0,0],["L",r*_,0]]),p=(r+2+v)*_),n+h<=o.minY){if("upward"===t)C=1;else{var S=o.minY-(n+h);f=d.attr("y")+S}}else if(n+u>=o.maxY){if("downward"===t)C=-1;else{var S=n+u-o.maxY;f=d.attr("y")-S}}C&&(g&&g.attr("path",[["M",0,0],["L",0,r*C]]),f=(r+2+E)*C),(p!==d.attr("x")||f!==d.attr("y"))&&iv(d,p,f)}},t.prototype.getShapeAttrs=function(){var e=(0,em.U2)(this.get("line"),"display"),t=(0,em.U2)(this.get("point"),"style",{}),i=(0,em.U2)(this.get("line"),"style",{}),n=(0,em.U2)(this.get("text"),"style",{}),r=this.get("direction"),o=e?(0,em.U2)(this.get("line"),"length",0):0,s=0,a=0,l="top",h="start";switch(r){case"upward":a=-1,l="bottom";break;case"downward":a=1,l="top";break;case"leftward":s=-1,h="end";break;case"rightward":s=1,h="start"}return{point:(0,ef.pi)({x:0,y:0},t),line:(0,ef.pi)({path:[["M",0,0],["L",o*s,o*a]]},i),text:(0,ef.pi)({x:(o+2)*s,y:(o+2)*a,text:(0,em.U2)(this.get("text"),"content",""),textBaseline:l,textAlign:h},n)}},t}(iO),iG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:iP.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:iP.textColor,fontFamily:iP.fontFamily}}}})},t.prototype.renderInner=function(e){var t,i,n,r,o,s,a=(0,em.U2)(this.get("region"),"style",{});(0,em.U2)(this.get("text"),"style",{});var l=this.get("lineLength")||0,h=this.get("points");if(h.length){var u=(t=h.map(function(e){return e.x}),i=h.map(function(e){return e.y}),n=Math.min.apply(Math,t),r=Math.min.apply(Math,i),{x:n,y:r,minX:n,minY:r,maxX:o=Math.max.apply(Math,t),maxY:s=Math.max.apply(Math,i),width:o-n,height:s-r}),d=[];d.push(["M",h[0].x,u.minY-l]),h.forEach(function(e){d.push(["L",e.x,e.y])}),d.push(["L",h[h.length-1].x,h[h.length-1].y-l]),this.addShape(e,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:(0,ef.pi)({path:d},a)}),ik(e,(0,ef.pi)({id:this.getElementId("text"),name:"annotation-text",x:(u.minX+u.maxX)/2,y:u.minY-l},this.get("text")))}},t}(iO),iz=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},t.prototype.renderInner=function(e){var t=this,i=this.get("start"),n=this.get("end"),r=this.addGroup(e,{id:this.getElementId("region-filter"),capture:!1});(0,em.S6)(this.get("shapes"),function(e,i){var n=e.get("type"),o=(0,em.d9)(e.attr());t.adjustShapeAttrs(o),t.addShape(r,{id:t.getElementId("shape-"+n+"-"+i),capture:!1,type:n,attrs:o})});var o=iC({start:i,end:n});r.setClip({type:"rect",attrs:{x:o.minX,y:o.minY,width:o.width,height:o.height}})},t.prototype.adjustShapeAttrs=function(e){var t=this.get("color");e.fill&&(e.fill=e.fillStyle=t),e.stroke=e.strokeStyle=t},t}(iO),iY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"shape",draw:em.ZT})},t.prototype.renderInner=function(e){var t=this.get("render");(0,em.mf)(t)&&t(e)},t}(iO);function iK(e,t,i){var n;try{n=window.getComputedStyle?window.getComputedStyle(e,null)[t]:e.style[t]}catch(e){}finally{n=void 0===n?i:n}return n}var i$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{container:null,containerTpl:"
    ",updateAutoRender:!0,containerClassName:"",parent:null})},t.prototype.getContainer=function(){return this.get("container")},t.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},t.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},t.prototype.setCapture=function(e){var t=this.getContainer(),i=e?"auto":"none";t.style.pointerEvents=i,this.set("capture",e)},t.prototype.getBBox=function(){var e=this.getContainer();return iS(parseFloat(e.style.left)||0,parseFloat(e.style.top)||0,e.clientWidth,e.clientHeight)},t.prototype.clear=function(){i_(this.get("container"))},t.prototype.destroy=function(){this.removeEvent(),this.removeDom(),e.prototype.destroy.call(this)},t.prototype.init=function(){e.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},t.prototype.initCapture=function(){this.setCapture(this.get("capture"))},t.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},t.prototype.initDom=function(){},t.prototype.initContainer=function(){var e=this.get("container");if((0,em.UM)(e)){e=this.createDom();var t=this.get("parent");(0,em.HD)(t)&&(t=document.getElementById(t),this.set("parent",t)),t.appendChild(e),this.get("containerId")&&e.setAttribute("id",this.get("containerId")),this.set("container",e)}else(0,em.HD)(e)&&(e=document.getElementById(e),this.set("container",e));this.get("parent")||this.set("parent",e.parentNode)},t.prototype.resetStyles=function(){var e=this.get("domStyles"),t=this.get("defaultStyles");e=e?(0,em.b$)({},t,e):t,this.set("domStyles",e)},t.prototype.applyStyles=function(){var e=this.get("domStyles");if(e){var t=this.getContainer();this.applyChildrenStyles(t,e);var i=this.get("containerClassName");i&&t.className.match(RegExp("(\\s|^)"+i+"(\\s|$)"))&&ey(t,e[i])}},t.prototype.applyChildrenStyles=function(e,t){(0,em.S6)(t,function(t,i){var n=e.getElementsByClassName(i);(0,em.S6)(n,function(e){ey(e,t)})})},t.prototype.applyStyle=function(e,t){ey(t,this.get("domStyles")[e])},t.prototype.createDom=function(){return eS(this.get("containerTpl"))},t.prototype.initEvent=function(){},t.prototype.removeDom=function(){var e=this.get("container");e&&e.parentNode&&e.parentNode.removeChild(e)},t.prototype.removeEvent=function(){},t.prototype.updateInner=function(e){(0,em.wH)(e,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},t.prototype.resetPosition=function(){},t}(iL),iX=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'
    ',alignX:"left",alignY:"top",html:"",zIndex:7})},t.prototype.render=function(){var e=this.getContainer(),t=this.get("html");i_(e);var i=(0,em.mf)(t)?t(e):t;if((0,em.kK)(i))e.appendChild(i);else if((0,em.HD)(i)||(0,em.hj)(i)){var n=eS(""+i);n&&e.appendChild(n)}this.resetPosition()},t.prototype.resetPosition=function(){var e,t,i,n,r,o,s,a,l,h,u,d,c=this.getContainer(),g=this.getLocation(),p=g.x,f=g.y,m=this.get("alignX"),v=this.get("alignY"),E=this.get("offsetX"),_=this.get("offsetY"),C=("auto"===(e=iK(c,"width",void 0))&&(e=c.offsetWidth),t=parseFloat(e),i=parseFloat(iK(c,"borderLeftWidth"))||0,n=parseFloat(iK(c,"paddingLeft"))||0,r=parseFloat(iK(c,"paddingRight"))||0,o=parseFloat(iK(c,"borderRightWidth"))||0,s=parseFloat(iK(c,"marginRight"))||0,t+i+o+n+r+(parseFloat(iK(c,"marginLeft"))||0)+s),S=("auto"===(a=iK(c,"height",void 0))&&(a=c.offsetHeight),l=parseFloat(a),h=parseFloat(iK(c,"borderTopWidth"))||0,u=parseFloat(iK(c,"paddingTop"))||0,d=parseFloat(iK(c,"paddingBottom"))||0,l+h+(parseFloat(iK(c,"borderBottomWidth"))||0)+u+d+(parseFloat(iK(c,"marginTop"))||0)+(parseFloat(iK(c,"marginBottom"))||0)),y={x:p,y:f};"middle"===m?y.x-=Math.round(C/2):"right"===m&&(y.x-=Math.round(C)),"middle"===v?y.y-=Math.round(S/2):"bottom"===v&&(y.y-=Math.round(S)),E&&(y.x+=E),_&&(y.y+=_),ey(c,{position:"absolute",left:y.x+"px",top:y.y+"px",zIndex:this.get("zIndex")})},t}(i$);function ij(e,t,i){var n=t+"Style",r=null;return(0,em.S6)(i,function(t,i){e[i]&&t[n]&&(r||(r={}),(0,em.CD)(r,t[n]))}),r}var iq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:iP.lineColor}},tickLine:{style:{lineWidth:1,stroke:iP.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:iP.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:iP.textColor,fontFamily:iP.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:iP.textColor,textBaseline:"middle",fontFamily:iP.fontFamily,textAlign:"center"},iconStyle:{fill:iP.descriptionIconFill,stroke:iP.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:iP.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},t.prototype.renderInner=function(e){this.get("line")&&this.drawLine(e),this.drawTicks(e),this.get("title")&&this.drawTitle(e)},t.prototype.isList=function(){return!0},t.prototype.getItems=function(){return this.get("ticks")},t.prototype.setItems=function(e){this.update({ticks:e})},t.prototype.updateItem=function(e,t){(0,em.CD)(e,t),this.clear(),this.render()},t.prototype.clearItems=function(){var e=this.getElementByLocalId("label-group");e&&e.clear()},t.prototype.setItemState=function(e,t,i){e[t]=i,this.updateTickStates(e)},t.prototype.hasState=function(e,t){return!!e[t]},t.prototype.getItemStates=function(e){var t=this.get("tickStates"),i=[];return(0,em.S6)(t,function(t,n){e[n]&&i.push(n)}),i},t.prototype.clearItemsState=function(e){var t=this,i=this.getItemsByState(e);(0,em.S6)(i,function(i){t.setItemState(i,e,!1)})},t.prototype.getItemsByState=function(e){var t=this,i=this.getItems();return(0,em.hX)(i,function(i){return t.hasState(i,e)})},t.prototype.getSidePoint=function(e,t){var i=this.getSideVector(t,e);return{x:e.x+i[0],y:e.y+i[1]}},t.prototype.getTextAnchor=function(e){var t;return(0,em.vQ)(e[0],0)?t="center":e[0]>0?t="start":e[0]<0&&(t="end"),t},t.prototype.getTextBaseline=function(e){var t;return(0,em.vQ)(e[1],0)?t="middle":e[1]>0?t="top":e[1]<0&&(t="bottom"),t},t.prototype.processOverlap=function(e){},t.prototype.drawLine=function(e){var t=this.getLinePath(),i=this.get("line");this.addShape(e,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:(0,em.CD)({path:t},i.style)})},t.prototype.getTickLineItems=function(e){var t=this,i=[],n=this.get("tickLine"),r=n.alignTick,o=n.length,s=1;return e.length>=2&&(s=e[1].value-e[0].value),(0,em.S6)(e,function(e){var n=e.point;r||(n=t.getTickPoint(e.value-s/2));var a=t.getSidePoint(n,o);i.push({startPoint:n,tickValue:e.value,endPoint:a,tickId:e.id,id:"tickline-"+e.id})}),i},t.prototype.getSubTickLineItems=function(e){var t=[],i=this.get("subTickLine"),n=i.count,r=e.length;if(r>=2)for(var o=0;o0){var i=(0,em.dp)(t);if(i>e.threshold){var n=Math.ceil(i/e.threshold),r=t.filter(function(e,t){return t%n==0});this.set("ticks",r),this.set("originalTicks",t)}}},t.prototype.getLabelAttrs=function(e,t,i){var n=this.get("label"),r=n.offset,o=n.offsetX,s=n.offsetY,a=n.rotate,l=n.formatter,h=this.getSidePoint(e.point,r),u=this.getSideVector(r,h),d=l?l(e.name,e,t):e.name,c=n.style;c=(0,em.mf)(c)?(0,em.U2)(this.get("theme"),["label","style"],{}):c;var g=(0,em.CD)({x:h.x+o,y:h.y+s,text:d,textAlign:this.getTextAnchor(u),textBaseline:this.getTextBaseline(u)},c);return a&&(g.matrix=ic(h,a)),g},t.prototype.drawLabels=function(e){var t=this,i=this.get("ticks"),n=this.addGroup(e,{name:"axis-label-group",id:this.getElementId("label-group")});(0,em.S6)(i,function(e,r){t.addShape(n,{type:"text",name:"axis-label",id:t.getElementId("label-"+e.id),attrs:t.getLabelAttrs(e,r,i),delegateObject:{tick:e,item:e,index:r}})}),this.processOverlap(n);var r=n.getChildren(),o=(0,em.U2)(this.get("theme"),["label","style"],{}),s=this.get("label"),a=s.style,l=s.formatter;if((0,em.mf)(a)){var h=r.map(function(e){return(0,em.U2)(e.get("delegateObject"),"tick")});(0,em.S6)(r,function(e,t){var i=e.get("delegateObject").tick,n=l?l(i.name,i,t):i.name,r=(0,em.CD)({},o,a(n,t,h));e.attr(r)})}},t.prototype.getTitleAttrs=function(){var e=this.get("title"),t=e.style,i=e.position,n=e.offset,r=e.spacing,o=void 0===r?0:r,s=e.autoRotate,a=t.fontSize,l=.5;"start"===i?l=0:"end"===i&&(l=1);var h=this.getTickPoint(l),u=this.getSidePoint(h,n||o+a/2),d=(0,em.CD)({x:u.x,y:u.y,text:e.text},t),c=e.rotate,g=c;if((0,em.UM)(c)&&s){var p=this.getAxisVector(h);g=it.Dg(p,[1,0],!0)}if(g){var f=ic(u,g);d.matrix=f}return d},t.prototype.drawTitle=function(e){var t,i=this.getTitleAttrs(),n=this.addShape(e,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:i});(null===(t=this.get("title"))||void 0===t?void 0:t.description)&&this.drawDescriptionIcon(e,n,i.matrix)},t.prototype.drawDescriptionIcon=function(e,t,i){var n=this.addGroup(e,{name:"axis-description",id:this.getElementById("description")}),r=t.getBBox(),o=r.maxX,s=r.maxY,a=r.height,l=this.get("title").iconStyle,h=a/2,u=h/6,d=o+4,c=s-a/2,g=[d+h,c-h],p=g[0],f=g[1],m=[p+h,f+h],v=m[0],E=m[1],_=[p,E+h],C=_[0],S=_[1],y=[d,f+h],T=y[0],b=y[1],A=[d+h,c-a/4],R=A[0],L=A[1],N=[R,L+u],I=N[0],w=N[1],O=[I,w+u],x=O[0],D=O[1],M=[x,D+3*h/4],k=M[0],P=M[1];this.addShape(n,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:(0,ef.pi)({path:[["M",p,f],["A",h,h,0,0,1,v,E],["A",h,h,0,0,1,C,S],["A",h,h,0,0,1,T,b],["A",h,h,0,0,1,p,f],["M",R,L],["L",I,w],["M",x,D],["L",k,P]],lineWidth:u,matrix:i},l)}),this.addShape(n,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:d,y:c-a/2,width:a,height:a,stroke:"#000",fill:"#000",opacity:0,matrix:i,cursor:"pointer"}})},t.prototype.applyTickStates=function(e,t){if(this.getItemStates(e).length){var i=this.get("tickStates"),n=this.getElementId("label-"+e.id),r=t.findById(n);if(r){var o=ij(e,"label",i);o&&r.attr(o)}var s=this.getElementId("tickline-"+e.id),a=t.findById(s);if(a){var l=ij(e,"tickLine",i);l&&a.attr(l)}}},t.prototype.updateTickStates=function(e){var t=this.getItemStates(e),i=this.get("tickStates"),n=this.get("label"),r=this.getElementByLocalId("label-"+e.id),o=this.get("tickLine"),s=this.getElementByLocalId("tickline-"+e.id);if(t.length){if(r){var a=ij(e,"label",i);a&&r.attr(a)}if(s){var l=ij(e,"tickLine",i);l&&s.attr(l)}}else r&&r.attr(n.style),s&&s.attr(o.style)},t}(iO);function iZ(e,t,i,n){var r=t.getChildren(),o=!1;return(0,em.S6)(r,function(t){var r=iM(e,t,i,n);o=o||r}),o}function iJ(){return i0}function iQ(e,t,i){return iZ(e,t,i,"head")}function i0(e,t,i){return iZ(e,t,i,"tail")}function i1(e,t,i){return iZ(e,t,i,"middle")}function i2(e){var t,i;return((t=e.attr("matrix"))&&1!==t[0]?(t8(i=[0,0,0],[1,0,0],e.attr("matrix")),Math.atan2(i[1],i[0])):0)%360}function i4(e,t,i,n){var r=!1,o=i2(t),s=e?Math.abs(i.attr("y")-t.attr("y")):Math.abs(i.attr("x")-t.attr("x")),a=(e?i.attr("y")>t.attr("y"):i.attr("x")>t.attr("x"))?t.getBBox():i.getBBox();if(e){var l=Math.abs(Math.cos(o));r=iT(l,0,Math.PI/180)?a.width+n>s:a.height/l+n>s}else{var l=Math.abs(Math.sin(o));r=iT(l,0,Math.PI/180)?a.width+n>s:a.height/l+n>s}return r}function i5(e,t,i,n){var r=(null==n?void 0:n.minGap)||0,o=t.getChildren().slice().filter(function(e){return e.get("visible")});if(!o.length)return!1;var s=!1;i&&o.reverse();for(var a=o.length,l=o[0],h=1;h1){c=Math.ceil(c);for(var f=0;f2){var s=r[0],a=r[r.length-1];!s.get("visible")&&(s.show(),i5(e,t,!1,n)&&(o=!0)),!a.get("visible")&&(a.show(),i5(e,t,!0,n)&&(o=!0))}return o}function ni(e,t,i,n){var r=t.getChildren();if(!r.length||!e&&r.length<2)return!1;var o=iD(r),s=!1;if(s=e?!!i&&o>i:o>Math.abs(r[1].attr("x")-r[0].attr("x"))){var a=n(i,o);(0,em.S6)(r,function(e){var t=ic({x:e.attr("x"),y:e.attr("y")},a);e.attr("matrix",t)})}return s}function nn(){return nr}function nr(e,t,i,n){return ni(e,t,i,function(){return(0,em.hj)(n)?n:e?iP.verticalAxisRotate:iP.horizontalAxisRotate})}function no(e,t,i){return ni(e,t,i,function(t,i){if(!t)return e?iP.verticalAxisRotate:iP.horizontalAxisRotate;if(e)return-Math.acos(t/i);var n=0;return t>i?n=Math.PI/4:(n=Math.asin(t/i))>Math.PI/4&&(n=Math.PI/4),n})}var ns=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{type:"line",locationType:"region",start:null,end:null})},t.prototype.getLinePath=function(){var e=this.get("start"),t=this.get("end"),i=[];return i.push(["M",e.x,e.y]),i.push(["L",t.x,t.y]),i},t.prototype.getInnerLayoutBBox=function(){var t=this.get("start"),i=this.get("end"),n=e.prototype.getInnerLayoutBBox.call(this),r=Math.min(t.x,i.x,n.x),o=Math.min(t.y,i.y,n.y),s=Math.max(t.x,i.x,n.maxX),a=Math.max(t.y,i.y,n.maxY);return{x:r,y:o,minX:r,minY:o,maxX:s,maxY:a,width:s-r,height:a-o}},t.prototype.isVertical=function(){var e=this.get("start"),t=this.get("end");return(0,em.vQ)(e.x,t.x)},t.prototype.isHorizontal=function(){var e=this.get("start"),t=this.get("end");return(0,em.vQ)(e.y,t.y)},t.prototype.getTickPoint=function(e){var t=this.get("start"),i=this.get("end"),n=i.x-t.x,r=i.y-t.y;return{x:t.x+n*e,y:t.y+r*e}},t.prototype.getSideVector=function(e){var t=this.getAxisVector(),i=io.Fv([0,0],t),n=this.get("verticalFactor"),r=[i[1],-1*i[0]];return io.bA([0,0],r,e*n)},t.prototype.getAxisVector=function(){var e=this.get("start"),t=this.get("end");return[t.x-e.x,t.y-e.y]},t.prototype.processOverlap=function(e){var t=this,i=this.isVertical(),n=this.isHorizontal();if(i||n){var r=this.get("label"),o=this.get("title"),s=this.get("verticalLimitLength"),a=r.offset,l=s,h=0,u=0;o&&(h=o.style.fontSize,u=o.spacing),l&&(l=l-a-u-h);var d=this.get("overlapOrder");if((0,em.S6)(d,function(i){r[i]&&t.canProcessOverlap(i)&&t.autoProcessOverlap(i,r[i],e,l)}),o&&(0,em.UM)(o.offset)){var c=e.getCanvasBBox(),g=i?c.width:c.height;o.offset=a+g+u+h/2}}},t.prototype.canProcessOverlap=function(e){var t=this.get("label");return"autoRotate"!==e||(0,em.UM)(t.rotate)},t.prototype.autoProcessOverlap=function(e,t,i,n){var r=this,o=this.isVertical(),s=!1,a=ea[e];if(!0===t?(this.get("label"),s=a.getDefault()(o,i,n)):(0,em.mf)(t)?s=t(o,i,n):(0,em.Kn)(t)?a[t.type]&&(s=a[t.type](o,i,n,t.cfg)):a[t]&&(s=a[t](o,i,n)),"autoRotate"===e){if(s){var l=i.getChildren(),h=this.get("verticalFactor");(0,em.S6)(l,function(e){"center"===e.attr("textAlign")&&e.attr("textAlign",h>0?"end":"start")})}}else if("autoHide"===e){var u=i.getChildren().slice(0);(0,em.S6)(u,function(e){e.get("visible")||(r.get("isRegister")&&r.unregisterElement(e),e.remove())})}},t}(iq),na=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},t.prototype.getLinePath=function(){var e=this.get("center"),t=e.x,i=e.y,n=this.get("radius"),r=this.get("startAngle"),o=this.get("endAngle"),s=[];if(Math.abs(o-r)===2*Math.PI)s=[["M",t,i-n],["A",n,n,0,1,1,t,i+n],["A",n,n,0,1,1,t,i-n],["Z"]];else{var a=this.getCirclePoint(r),l=this.getCirclePoint(o),h=Math.abs(o-r)>Math.PI?1:0,u=r>o?0:1;s=[["M",t,i],["L",a.x,a.y],["A",n,n,0,h,u,l.x,l.y],["L",t,i]]}return s},t.prototype.getTickPoint=function(e){var t=this.get("startAngle"),i=this.get("endAngle");return this.getCirclePoint(t+(i-t)*e)},t.prototype.getSideVector=function(e,t){var i=this.get("center"),n=[t.x-i.x,t.y-i.y],r=this.get("verticalFactor"),o=io.kE(n);return io.bA(n,n,r*e/o),n},t.prototype.getAxisVector=function(e){var t=this.get("center"),i=[e.x-t.x,e.y-t.y];return[i[1],-1*i[0]]},t.prototype.getCirclePoint=function(e,t){var i=this.get("center");return t=t||this.get("radius"),{x:i.x+Math.cos(e)*t,y:i.y+Math.sin(e)*t}},t.prototype.canProcessOverlap=function(e){var t=this.get("label");return"autoRotate"!==e||(0,em.UM)(t.rotate)},t.prototype.processOverlap=function(e){var t=this,i=this.get("label"),n=this.get("title"),r=this.get("verticalLimitLength"),o=i.offset,s=r,a=0,l=0;n&&(a=n.style.fontSize,l=n.spacing),s&&(s=s-o-l-a);var h=this.get("overlapOrder");if((0,em.S6)(h,function(n){i[n]&&t.canProcessOverlap(n)&&t.autoProcessOverlap(n,i[n],e,s)}),n&&(0,em.UM)(n.offset)){var u=e.getCanvasBBox().height;n.offset=o+u+l+a/2}},t.prototype.autoProcessOverlap=function(e,t,i,n){var r=this,o=!1,s=ea[e];if(n>0&&(!0===t?o=s.getDefault()(!1,i,n):(0,em.mf)(t)?o=t(!1,i,n):(0,em.Kn)(t)?s[t.type]&&(o=s[t.type](!1,i,n,t.cfg)):s[t]&&(o=s[t](!1,i,n))),"autoRotate"===e){if(o){var a=i.getChildren(),l=this.get("verticalFactor");(0,em.S6)(a,function(e){"center"===e.attr("textAlign")&&e.attr("textAlign",l>0?"end":"start")})}}else if("autoHide"===e){var h=i.getChildren().slice(0);(0,em.S6)(h,function(e){e.get("visible")||(r.get("isRegister")&&r.unregisterElement(e),e.remove())})}},t}(iq),nl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:iP.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:iP.textColor,textAlign:"center",textBaseline:"middle",fontFamily:iP.fontFamily}},textBackground:{padding:5,style:{stroke:iP.lineColor}}}})},t.prototype.renderInner=function(e){this.get("line")&&this.renderLine(e),this.get("text")&&(this.renderText(e),this.renderBackground(e))},t.prototype.renderText=function(e){var t=this.get("text"),i=t.style,n=t.autoRotate,r=t.content;if(!(0,em.UM)(r)){var o=this.getTextPoint(),s=null;n&&(s=ic(o,this.getRotateAngle())),this.addShape(e,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:(0,ef.pi)((0,ef.pi)((0,ef.pi)({},o),{text:r,matrix:s}),i)})}},t.prototype.renderLine=function(e){var t=this.getLinePath(),i=this.get("line").style;this.addShape(e,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:(0,ef.pi)({path:t},i)})},t.prototype.renderBackground=function(e){var t=this.getElementId("text"),i=e.findById(t),n=this.get("textBackground");if(n&&i){var r=i.getBBox(),o=iE(n.padding),s=n.style;this.addShape(e,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:(0,ef.pi)({x:r.x-o[3],y:r.y-o[0],width:r.width+o[1]+o[3],height:r.height+o[0]+o[2],matrix:i.attr("matrix")},s)}).toBack()}},t}(iO),nh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{type:"line",locationType:"region",start:null,end:null})},t.prototype.getRotateAngle=function(){var e=this.getLocation(),t=e.start,i=e.end,n=this.get("text").position,r=Math.atan2(i.y-t.y,i.x-t.x);return"start"===n?r-Math.PI/2:r+Math.PI/2},t.prototype.getTextPoint=function(){var e=this.getLocation(),t=e.start,i=e.end,n=this.get("text");return iA(t,i,n.position,n.offset)},t.prototype.getLinePath=function(){var e=this.getLocation(),t=e.start,i=e.end;return[["M",t.x,t.y],["L",i.x,i.y]]},t}(nl),nu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},t.prototype.getRotateAngle=function(){var e=this.getLocation(),t=e.startAngle,i=e.endAngle;return"start"===this.get("text").position?t+Math.PI/2:i-Math.PI/2},t.prototype.getTextPoint=function(){var e=this.get("text"),t=e.position,i=e.offset,n=this.getLocation(),r=n.center,o=n.radius,s=n.startAngle,a=n.endAngle,l=this.getRotateAngle()-Math.PI,h=iy(r,o,"start"===t?s:a),u=Math.cos(l)*i,d=Math.sin(l)*i;return{x:h.x+u,y:h.y+d}},t.prototype.getLinePath=function(){var e=this.getLocation(),t=e.center,i=e.radius,n=e.startAngle,r=e.endAngle,o=null;if(r-n==2*Math.PI){var s=t.x,a=t.y;o=[["M",s,a-i],["A",i,i,0,1,1,s,a+i],["A",i,i,0,1,1,s,a-i],["Z"]]}else{var l=iy(t,i,n),h=iy(t,i,r),u=Math.abs(r-n)>Math.PI?1:0,d=n>r?0:1;o=[["M",l.x,l.y],["A",i,i,0,u,d,h.x,h.y]]}return o},t}(nl),nd="g2-crosshair",nc=nd+"-line",ng=nd+"-text",np=((G={})[""+nd]={position:"relative"},G[""+nc]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},G[""+ng]={position:"absolute",color:iP.textColor,fontFamily:iP.fontFamily},G),nf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'
    ',crosshairTpl:'
    ',textTpl:'{content}',domStyles:null,containerClassName:nd,defaultStyles:np,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},t.prototype.render=function(){this.resetText(),this.resetPosition()},t.prototype.initCrossHair=function(){var e=this.getContainer(),t=eS(this.get("crosshairTpl"));e.appendChild(t),this.applyStyle(nc,t),this.set("crosshairEl",t)},t.prototype.getTextPoint=function(){var e=this.getLocation(),t=e.start,i=e.end,n=this.get("text");return iA(t,i,n.position,n.offset)},t.prototype.resetText=function(){var e=this.get("text"),t=this.get("textEl");if(e){var i=e.content;if(!t){var n=this.getContainer();t=eS((0,em.ng)(this.get("textTpl"),e)),n.appendChild(t),this.applyStyle(ng,t),this.set("textEl",t)}t.innerHTML=i}else t&&t.remove()},t.prototype.isVertical=function(e,t){return e.x===t.x},t.prototype.resetPosition=function(){var e=this.get("crosshairEl");e||(this.initCrossHair(),e=this.get("crosshairEl"));var t=this.get("start"),i=this.get("end"),n=Math.min(t.x,i.x),r=Math.min(t.y,i.y);this.isVertical(t,i)?ey(e,{width:"1px",height:ib(Math.abs(i.y-t.y))}):ey(e,{height:"1px",width:ib(Math.abs(i.x-t.x))}),ey(e,{top:ib(r),left:ib(n)}),this.alignText()},t.prototype.alignText=function(){var e=this.get("textEl");if(e){var t=this.get("text").align,i=e.clientWidth,n=this.getTextPoint();switch(t){case"center":n.x=n.x-i/2;break;case"right":n.x=n.x-i}ey(e,{top:ib(n.y),left:ib(n.x)})}},t.prototype.updateInner=function(t){(0,em.wH)(t,"text")&&this.resetText(),e.prototype.updateInner.call(this,t)},t}(i$),nm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:iP.lineColor}}}})},t.prototype.getLineType=function(){return(this.get("line")||this.get("defaultCfg").line).type},t.prototype.renderInner=function(e){this.drawGrid(e)},t.prototype.getAlternatePath=function(e,t){var i=this.getGridPath(e),n=t.slice(0).reverse(),r=this.getGridPath(n,!0);return this.get("closed")?i=i.concat(r):(r[0][0]="L",(i=i.concat(r)).push(["Z"])),i},t.prototype.getPathStyle=function(){return this.get("line").style},t.prototype.drawGrid=function(e){var t=this,i=this.get("line"),n=this.get("items"),r=this.get("alternateColor"),o=null;(0,em.S6)(n,function(s,a){var l=s.id||a;if(i){var h=t.getPathStyle();h=(0,em.mf)(h)?h(s,a,n):h;var u=t.getElementId("line-"+l),d=t.getGridPath(s.points);t.addShape(e,{type:"path",name:"grid-line",id:u,attrs:(0,em.CD)({path:d},h)})}if(r&&a>0){var c=t.getElementId("region-"+l),g=a%2==0;if((0,em.HD)(r))g&&t.drawAlternateRegion(c,e,o.points,s.points,r);else{var p=g?r[1]:r[0];t.drawAlternateRegion(c,e,o.points,s.points,p)}}o=s})},t.prototype.drawAlternateRegion=function(e,t,i,n,r){var o=this.getAlternatePath(i,n);this.addShape(t,{type:"path",id:e,name:"grid-region",attrs:{path:o,fill:r}})},t}(iO),nv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{type:"circle",center:null,closed:!0})},t.prototype.getGridPath=function(e,t){var i=this.getLineType(),n=this.get("closed"),r=[];if(e.length){if("circle"===i){var o,s,a,l,h,u,d=this.get("center"),c=e[0],g=(o=d.x,s=d.y,a=c.x,l=c.y,Math.sqrt((h=a-o)*h+(u=l-s)*u)),p=t?0:1;n?(r.push(["M",d.x,d.y-g]),r.push(["A",g,g,0,0,p,d.x,d.y+g]),r.push(["A",g,g,0,0,p,d.x,d.y-g]),r.push(["Z"])):(0,em.S6)(e,function(e,t){0===t?r.push(["M",e.x,e.y]):r.push(["A",g,g,0,0,p,e.x,e.y])})}else(0,em.S6)(e,function(e,t){0===t?r.push(["M",e.x,e.y]):r.push(["L",e.x,e.y])}),n&&r.push(["Z"])}return r},t}(nm),nE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{type:"line"})},t.prototype.getGridPath=function(e){var t=[];return(0,em.S6)(e,function(e,i){0===i?t.push(["M",e.x,e.y]):t.push(["L",e.x,e.y])}),t},t}(nm),n_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},t.prototype.getLayoutBBox=function(){var t=e.prototype.getLayoutBBox.call(this),i=this.get("maxWidth"),n=this.get("maxHeight"),r=t.width,o=t.height;return i&&(r=Math.min(r,i)),n&&(o=Math.min(o,n)),iS(t.minX,t.minY,r,o)},t.prototype.setLocation=function(e){this.set("x",e.x),this.set("y",e.y),this.resetLocation()},t.prototype.resetLocation=function(){var e=this.get("x"),t=this.get("y"),i=this.get("offsetX"),n=this.get("offsetY");this.moveElementTo(this.get("group"),{x:e+i,y:t+n})},t.prototype.applyOffset=function(){this.resetLocation()},t.prototype.getDrawPoint=function(){return this.get("currentPoint")},t.prototype.setDrawPoint=function(e){return this.set("currentPoint",e)},t.prototype.renderInner=function(e){this.resetDraw(),this.get("title")&&this.drawTitle(e),this.drawLegendContent(e),this.get("background")&&this.drawBackground(e)},t.prototype.drawBackground=function(e){var t=this.get("background"),i=e.getBBox(),n=iE(t.padding),r=(0,ef.pi)({x:0,y:0,width:i.width+n[1]+n[3],height:i.height+n[0]+n[2]},t.style);this.addShape(e,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:r}).toBack()},t.prototype.drawTitle=function(e){var t=this.get("currentPoint"),i=this.get("title"),n=i.spacing,r=i.style,o=i.text,s=this.addShape(e,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:(0,ef.pi)({text:o,x:t.x,y:t.y},r)}).getBBox();this.set("currentPoint",{x:t.x,y:s.maxY+n})},t.prototype.resetDraw=function(){var e=this.get("background"),t={x:0,y:0};if(e){var i=iE(e.padding);t.x=i[3],t.y=i[0]}this.set("currentPoint",t)},t}(iO),nC={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},nS={fill:iP.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:iP.fontFamily,fontWeight:"normal",lineHeight:12},ny="navigation-arrow-right",nT="navigation-arrow-left",nb={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},nA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentPageIndex=1,t.totalPagesCnt=1,t.pageWidth=0,t.pageHeight=0,t.startX=0,t.startY=0,t.onNavigationBack=function(){var e=t.getElementByLocalId("item-group");if(t.currentPageIndex>1){t.currentPageIndex-=1,t.updateNavigation();var i=t.getCurrentNavigationMatrix();t.get("animate")?e.animate({matrix:i},100):e.attr({matrix:i})}},t.onNavigationAfter=function(){var e=t.getElementByLocalId("item-group");if(t.currentPageIndexp&&(p=E),"horizontal"===d?(f&&fa))&&(1===m&&(v=f.x+u,i.moveElementTo(g,{x:T,y:f.y+d/2-p.height/2-p.minY})),m+=1,f.x=n,f.y+=y),i.moveElementTo(e,f),e.getParent().setClip({type:"rect",attrs:{x:f.x,y:f.y,width:s+u,height:d}}),f.x+=s+u})}else{(0,em.S6)(s,function(e){var t=e.getBBox();t.width>E&&(E=t.width)}),_=E,E+=u,a&&(E=Math.min(a,E),_=Math.min(a,_)),this.pageWidth=E,this.pageHeight=l-Math.max(p.height,d+C);var b=Math.floor(this.pageHeight/(d+C));(0,em.S6)(s,function(e,t){0!==t&&t%b==0&&(m+=1,f.x+=E,f.y=r),i.moveElementTo(e,f),e.getParent().setClip({type:"rect",attrs:{x:f.x,y:f.y,width:E,height:d}}),f.y+=d+C}),this.totalPagesCnt=m,this.moveElementTo(g,{x:n+_/2-p.width/2-p.minX,y:l-p.height-p.minY})}this.pageHeight&&this.pageWidth&&t.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),"horizontal"===o&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(m/this.get("maxRow")):this.totalPagesCnt=m,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(g),t.attr("matrix",this.getCurrentNavigationMatrix())},t.prototype.drawNavigation=function(e,t,i,n){var r={x:0,y:0},o=this.addGroup(e,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),s=(0,em.U2)(n.marker,"style",{}),a=s.size,l=void 0===a?12:a,h=(0,ef._T)(s,["size"]),u=this.drawArrow(o,r,nT,"horizontal"===t?"up":"left",l,h);u.on("click",this.onNavigationBack);var d=u.getBBox();r.x+=d.width+2;var c=this.addShape(o,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:(0,ef.pi)({x:r.x,y:r.y+l/2,text:i,textBaseline:"middle"},(0,em.U2)(n.text,"style"))}).getBBox();return r.x+=c.width+2,this.drawArrow(o,r,ny,"horizontal"===t?"down":"right",l,h).on("click",this.onNavigationAfter),o},t.prototype.updateNavigation=function(e){var t=(0,em.b$)({},nC,this.get("pageNavigator")).marker.style,i=t.fill,n=t.opacity,r=t.inactiveFill,o=t.inactiveOpacity,s=this.currentPageIndex+"/"+this.totalPagesCnt,a=e?e.getChildren()[1]:this.getElementByLocalId("navigation-text"),l=e?e.findById(this.getElementId(nT)):this.getElementByLocalId(nT),h=e?e.findById(this.getElementId(ny)):this.getElementByLocalId(ny);a.attr("text",s),l.attr("opacity",1===this.currentPageIndex?o:n),l.attr("fill",1===this.currentPageIndex?r:i),l.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),h.attr("opacity",this.currentPageIndex===this.totalPagesCnt?o:n),h.attr("fill",this.currentPageIndex===this.totalPagesCnt?r:i),h.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var u=l.getBBox().maxX+2;a.attr("x",u),u+=a.getBBox().width+2,this.updateArrowPath(h,{x:u,y:0})},t.prototype.drawArrow=function(e,t,i,n,r,o){var s=t.x,a=t.y,l=this.addShape(e,{type:"path",id:this.getElementId(i),name:i,attrs:(0,ef.pi)({size:r,direction:n,path:[["M",s+r/2,a],["L",s,a+r],["L",s+r,a+r],["Z"]],cursor:"pointer"},o)});return l.attr("matrix",ic({x:s+r/2,y:a+r/2},nb[n])),l},t.prototype.updateArrowPath=function(e,t){var i=t.x,n=t.y,r=e.attr(),o=r.size,s=ic({x:i+o/2,y:n+o/2},nb[r.direction]);e.attr("path",[["M",i+o/2,n],["L",i,n+o],["L",i+o,n+o],["Z"]]),e.attr("matrix",s)},t.prototype.getCurrentNavigationMatrix=function(){var e=this.currentPageIndex,t=this.pageWidth,i=this.pageHeight;return ig("horizontal"===this.get("layout")?{x:0,y:i*(1-e)}:{x:t*(1-e),y:0})},t.prototype.applyItemStates=function(e,t){if(this.getItemStates(e).length>0){var i=t.getChildren(),n=this.get("itemStates");(0,em.S6)(i,function(t){var i=t.get("name").split("-")[2],r=ij(e,i,n);r&&(t.attr(r),"marker"===i&&!(t.get("isStroke")&&t.get("isFill"))&&(t.get("isStroke")&&t.attr("fill",null),t.get("isFill")&&t.attr("stroke",null)))})}},t.prototype.getLimitItemWidth=function(){var e=this.get("itemWidth"),t=this.get("maxItemWidth");return t?e&&(t=e<=t?e:t):e&&(t=e),t},t}(n_),nR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:iP.textColor,textBaseline:"middle",fontFamily:iP.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:iP.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},t.prototype.isSlider=function(){return!0},t.prototype.getValue=function(){return this.getCurrentValue()},t.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},t.prototype.setRange=function(e,t){this.update({min:e,max:t})},t.prototype.setValue=function(e){var t=this.getValue();this.set("value",e);var i=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(i),this.delegateEmit("valuechanged",{originValue:t,value:e})},t.prototype.initEvent=function(){var e=this.get("group");this.bindSliderEvent(e),this.bindRailEvent(e),this.bindTrackEvent(e)},t.prototype.drawLegendContent=function(e){this.drawRail(e),this.drawLabels(e),this.fixedElements(e),this.resetTrack(e),this.resetTrackClip(e),this.get("slidable")&&this.resetHandlers(e)},t.prototype.bindSliderEvent=function(e){this.bindHandlersEvent(e)},t.prototype.bindHandlersEvent=function(e){var t=this;e.on("legend-handler-min:drag",function(e){var i=t.getValueByCanvasPoint(e.x,e.y),n=t.getCurrentValue()[1];ni&&(n=i),t.setValue([n,i])})},t.prototype.bindRailEvent=function(e){},t.prototype.bindTrackEvent=function(e){var t=this,i=null;e.on("legend-track:dragstart",function(e){i={x:e.x,y:e.y}}),e.on("legend-track:drag",function(e){if(i){var n=t.getValueByCanvasPoint(i.x,i.y),r=t.getValueByCanvasPoint(e.x,e.y),o=t.getCurrentValue(),s=o[1]-o[0],a=t.getRange(),l=r-n;l<0?o[0]+l>a.min?t.setValue([o[0]+l,o[1]+l]):t.setValue([a.min,a.min+s]):l>0&&(l>0&&o[1]+lo&&(h=o),h0&&this.changeRailLength(n,r,i[r]-h)}},t.prototype.changeRailLength=function(e,t,i){var n,r=e.getBBox();n="height"===t?this.getRailPath(r.x,r.y,r.width,i):this.getRailPath(r.x,r.y,i,r.height),e.attr("path",n)},t.prototype.changeRailPosition=function(e,t,i){var n=e.getBBox(),r=this.getRailPath(t,i,n.width,n.height);e.attr("path",r)},t.prototype.fixedHorizontal=function(e,t,i,n){var r=this.get("label"),o=r.align,s=r.spacing,a=i.getBBox(),l=e.getBBox(),h=t.getBBox(),u=a.height;this.fitRailLength(l,h,a,i),a=i.getBBox(),"rail"===o?(e.attr({x:n.x,y:n.y+u/2}),this.changeRailPosition(i,n.x+l.width+s,n.y),t.attr({x:n.x+l.width+a.width+2*s,y:n.y+u/2})):"top"===o?(e.attr({x:n.x,y:n.y}),t.attr({x:n.x+a.width,y:n.y}),this.changeRailPosition(i,n.x,n.y+l.height+s)):(this.changeRailPosition(i,n.x,n.y),e.attr({x:n.x,y:n.y+a.height+s}),t.attr({x:n.x+a.width,y:n.y+a.height+s}))},t.prototype.fixedVertail=function(e,t,i,n){var r=this.get("label"),o=r.align,s=r.spacing,a=i.getBBox(),l=e.getBBox(),h=t.getBBox();if(this.fitRailLength(l,h,a,i),a=i.getBBox(),"rail"===o)e.attr({x:n.x,y:n.y}),this.changeRailPosition(i,n.x,n.y+l.height+s),t.attr({x:n.x,y:n.y+l.height+a.height+2*s});else if("right"===o)e.attr({x:n.x+a.width+s,y:n.y}),this.changeRailPosition(i,n.x,n.y),t.attr({x:n.x+a.width+s,y:n.y+a.height});else{var u=Math.max(l.width,h.width);e.attr({x:n.x,y:n.y}),this.changeRailPosition(i,n.x+u+s,n.y),t.attr({x:n.x,y:n.y+a.height})}},t}(n_),nL="g2-tooltip",nN="g2-tooltip-title",nI="g2-tooltip-list",nw="g2-tooltip-list-item",nO="g2-tooltip-marker",nx="g2-tooltip-value",nD="g2-tooltip-name",nM="g2-tooltip-crosshair-x",nk="g2-tooltip-crosshair-y",nP=((z={})[""+nL]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:iP.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},z[""+nN]={marginBottom:"4px"},z[""+nI]={margin:"0px",listStyleType:"none",padding:"0px"},z[""+nw]={listStyleType:"none",marginBottom:"4px"},z[""+nO]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},z[""+nx]={display:"inline-block",float:"right",marginLeft:"30px"},z[""+nM]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},z[""+nk]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},z),nF=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'
      ',itemTpl:'
    • \n \n {name}:\n {value}\n
    • ',xCrosshairTpl:'
      ',yCrosshairTpl:'
      ',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:nL,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:nP})},t.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},t.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},t.prototype.show=function(){var e=this.getContainer();e&&!this.destroyed&&(this.set("visible",!0),ey(e,{visibility:"visible"}),this.setCrossHairsVisible(!0))},t.prototype.hide=function(){var e=this.getContainer();e&&!this.destroyed&&(this.set("visible",!1),ey(e,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},t.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},t.prototype.setLocation=function(e){this.set("x",e.x),this.set("y",e.y),this.resetPosition()},t.prototype.setCrossHairsVisible=function(e){var t=e?"":"none",i=this.get("xCrosshairDom"),n=this.get("yCrosshairDom");i&&ey(i,{display:t}),n&&ey(n,{display:t})},t.prototype.initContainer=function(){if(e.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var t=this.getHtmlContentNode();this.get("parent").appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()}},t.prototype.updateInner=function(t){if(this.get("customContent"))this.renderCustomContent();else{var i;i=!1,(0,em.S6)(["title","showTitle"],function(e){if((0,em.wH)(t,e))return i=!0,!1}),i&&this.resetTitle(),(0,em.wH)(t,"items")&&this.renderItems()}e.prototype.updateInner.call(this,t)},t.prototype.initDom=function(){this.cacheDoms()},t.prototype.removeDom=function(){e.prototype.removeDom.call(this),this.clearCrosshairs()},t.prototype.resetPosition=function(){var e,t=this.get("x"),i=this.get("y"),n=this.get("offset"),r=this.getOffset(),o=r.offsetX,s=r.offsetY,a=this.get("position"),l=this.get("region"),h=this.getContainer(),u=this.getBBox(),d=u.width,c=u.height;l&&(e=iC(l));var g=function(e,t,i,n,r,o,s){var a=function(e,t,i,n,r,o){var s=e,a=t;switch(o){case"left":s=e-n-i,a=t-r/2;break;case"right":s=e+i,a=t-r/2;break;case"top":s=e-n/2,a=t-r-i;break;case"bottom":s=e-n/2,a=t+i;break;default:s=e+i,a=t-r-i}return{x:s,y:a}}(e,t,i,n,r,o);if(s){var l,h,u=(l=a.x,h=a.y,{left:ls.x+s.width,top:hs.y+s.height});"auto"===o?(u.right&&(a.x=Math.max(0,e-n-i)),u.top&&(a.y=Math.max(0,t-r-i))):"top"===o||"bottom"===o?(u.left&&(a.x=s.x),u.right&&(a.x=s.x+s.width-n),"top"===o&&u.top&&(a.y=t+i),"bottom"===o&&u.bottom&&(a.y=t-r-i)):(u.top&&(a.y=s.y),u.bottom&&(a.y=s.y+s.height-r),"left"===o&&u.left&&(a.x=e+i),"right"===o&&u.right&&(a.x=e-n-i))}return a}(t,i,n,d,c,a,e);ey(h,{left:ib(g.x+o),top:ib(g.y+s)}),this.resetCrosshairs()},t.prototype.renderCustomContent=function(){var e=this.getHtmlContentNode(),t=this.get("parent"),i=this.get("container");i&&i.parentNode===t?t.replaceChild(e,i):t.appendChild(e),this.set("container",e),this.resetStyles(),this.applyStyles()},t.prototype.getHtmlContentNode=function(){var e,t=this.get("customContent");if(t){var i=t(this.get("title"),this.get("items"));e=(0,em.kK)(i)?i:eS(i)}return e},t.prototype.cacheDoms=function(){var e=this.getContainer(),t=e.getElementsByClassName(nN)[0],i=e.getElementsByClassName(nI)[0];this.set("titleDom",t),this.set("listDom",i)},t.prototype.resetTitle=function(){var e=this.get("title");this.get("showTitle")&&e?this.setTitle(e):this.setTitle("")},t.prototype.setTitle=function(e){var t=this.get("titleDom");t&&(t.innerText=e)},t.prototype.resetCrosshairs=function(){var e=this.get("crosshairsRegion"),t=this.get("crosshairs");if(e&&t){var i=iC(e),n=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");"x"===t?(this.resetCrosshair("x",i),r&&(r.remove(),this.set("yCrosshairDom",null))):"y"===t?(this.resetCrosshair("y",i),n&&(n.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",i),this.resetCrosshair("y",i)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},t.prototype.resetCrosshair=function(e,t){var i=this.checkCrosshair(e),n=this.get(e);"x"===e?ey(i,{left:ib(n),top:ib(t.y),height:ib(t.height)}):ey(i,{top:ib(n),left:ib(t.x),width:ib(t.width)})},t.prototype.checkCrosshair=function(e){var t=e+"CrosshairDom",i=eh["CROSSHAIR_"+e.toUpperCase()],n=this.get(t),r=this.get("parent");return n||(n=eS(this.get(e+"CrosshairTpl")),this.applyStyle(i,n),r.appendChild(n),this.set(t,n)),n},t.prototype.renderItems=function(){this.clearItemDoms();var e=this.get("items"),t=this.get("itemTpl"),i=this.get("listDom");i&&((0,em.S6)(e,function(e){var n=eQ.toCSSGradient(e.color),r=(0,ef.pi)((0,ef.pi)({},e),{color:n}),o=eS((0,em.ng)(t,r));i.appendChild(o)}),this.applyChildrenStyles(i,this.get("domStyles")))},t.prototype.clearItemDoms=function(){this.get("listDom")&&i_(this.get("listDom"))},t.prototype.clearCrosshairs=function(){var e=this.get("xCrosshairDom"),t=this.get("yCrosshairDom");e&&e.remove(),t&&t.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},t}(i$),nB={opacity:0},nU={stroke:"#C5C5C5",strokeOpacity:.85},nH={fill:"#CACED4",opacity:.85},nV=i(39499);function nW(e){return(0,em.UI)(e,function(e,t){return[0===t?"M":"L",e[0],e[1]]})}var nG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:nB,lineStyle:nU,areaStyle:nH})},t.prototype.renderInner=function(e){var t=this.cfg,i=t.width,n=t.height,r=t.data,o=t.smooth,s=t.isArea,a=t.backgroundStyle,l=t.lineStyle,h=t.areaStyle;this.addShape(e,{id:this.getElementId("background"),type:"rect",attrs:(0,ef.pi)({x:0,y:0,width:i,height:n},a)});var u=(void 0===(d=o)&&(d=!0),c=new tx({values:r}),g=new e9({values:(0,em.UI)(r,function(e,t){return t})}),p=(0,em.UI)(r,function(e,t){return[g.scale(t)*i,n-c.scale(e)*n]}),d?function(e){if(e.length<=2)return nW(e);var t=[];(0,em.S6)(e,function(e){(0,em.Xy)(e,t.slice(t.length-2))||t.push(e[0],e[1])});var i=(0,nV.e9)(t,!1),n=(0,em.YM)(e),r=n[0],o=n[1];return i.unshift(["M",r,o]),i}(p):nW(p));if(this.addShape(e,{id:this.getElementId("line"),type:"path",attrs:(0,ef.pi)({path:u},l)}),s){var d,c,g,p,f,m,v,E,_=(f=(0,ef.pr)(u),v=(m=new tx({values:r})).max<0?m.max:Math.max(0,m.min),E=n-m.scale(v)*n,f.push(["L",i,E]),f.push(["L",0,E]),f.push(["Z"]),f);this.addShape(e,{id:this.getElementId("area"),type:"path",attrs:(0,ef.pi)({path:_},h)})}},t.prototype.applyOffset=function(){var e=this.cfg,t=e.x,i=e.y;this.moveElementTo(this.get("group"),{x:t,y:i})},t}(iO),nz={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},nY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"handler",x:0,y:0,width:10,height:24,style:nz})},t.prototype.renderInner=function(e){var t=this.cfg,i=t.width,n=t.height,r=t.style,o=r.fill,s=r.stroke,a=r.radius,l=r.opacity,h=r.cursor;this.addShape(e,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:i,height:n,fill:o,stroke:s,radius:a,opacity:l,cursor:h}});var u=1/3*i,d=2/3*i,c=1/4*n,g=3/4*n;this.addShape(e,{id:this.getElementId("line-left"),type:"line",attrs:{x1:u,y1:c,x2:u,y2:g,stroke:s,cursor:h}}),this.addShape(e,{id:this.getElementId("line-right"),type:"line",attrs:{x1:d,y1:c,x2:d,y2:g,stroke:s,cursor:h}})},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.bindEvents=function(){var e=this;this.get("group").on("mouseenter",function(){var t=e.get("style").highLightFill;e.getElementByLocalId("background").attr("fill",t),e.draw()}),this.get("group").on("mouseleave",function(){var t=e.get("style").fill;e.getElementByLocalId("background").attr("fill",t),e.draw()})},t.prototype.draw=function(){var e=this.get("container").get("canvas");e&&e.draw()},t}(iO),nK={fill:"#416180",opacity:.05},n$={fill:"#5B8FF9",opacity:.15,cursor:"move"},nX={width:10,height:24},nj={textBaseline:"middle",fill:"#000",opacity:.45},nq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){return function(i){t.currentTarget=e;var n=i.originalEvent;n.stopPropagation(),n.preventDefault(),t.prevX=(0,em.U2)(n,"touches.0.pageX",n.pageX),t.prevY=(0,em.U2)(n,"touches.0.pageY",n.pageY);var r=t.getContainerDOM();r.addEventListener("mousemove",t.onMouseMove),r.addEventListener("mouseup",t.onMouseUp),r.addEventListener("mouseleave",t.onMouseUp),r.addEventListener("touchmove",t.onMouseMove),r.addEventListener("touchend",t.onMouseUp),r.addEventListener("touchcancel",t.onMouseUp)}},t.onMouseMove=function(e){var i=t.cfg.width,n=[t.get("start"),t.get("end")];e.stopPropagation(),e.preventDefault();var r=(0,em.U2)(e,"touches.0.pageX",e.pageX),o=(0,em.U2)(e,"touches.0.pageY",e.pageY),s=r-t.prevX,a=t.adjustOffsetRange(s/i);t.updateStartEnd(a),t.updateUI(t.getElementByLocalId("foreground"),t.getElementByLocalId("minText"),t.getElementByLocalId("maxText")),t.prevX=r,t.prevY=o,t.draw(),t.emit("sliderchange",[t.get("start"),t.get("end")].sort()),t.delegateEmit("valuechanged",{originValue:n,value:[t.get("start"),t.get("end")]})},t.onMouseUp=function(){t.currentTarget&&(t.currentTarget=void 0);var e=t.getContainerDOM();e&&(e.removeEventListener("mousemove",t.onMouseMove),e.removeEventListener("mouseup",t.onMouseUp),e.removeEventListener("mouseleave",t.onMouseUp),e.removeEventListener("touchmove",t.onMouseMove),e.removeEventListener("touchend",t.onMouseUp),e.removeEventListener("touchcancel",t.onMouseUp))},t}return(0,ef.ZT)(t,e),t.prototype.setRange=function(e,t){this.set("minLimit",e),this.set("maxLimit",t);var i=this.get("start"),n=this.get("end"),r=(0,em.uZ)(i,e,t),o=(0,em.uZ)(n,e,t);this.get("isInit")||i===r&&n===o||this.setValue([r,o])},t.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},t.prototype.setValue=function(e){var t=this.getRange();if((0,em.kJ)(e)&&2===e.length){var i=[this.get("start"),this.get("end")];this.update({start:(0,em.uZ)(e[0],t.min,t.max),end:(0,em.uZ)(e[1],t.min,t.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:i,value:e})}},t.prototype.getValue=function(){return[this.get("start"),this.get("end")]},t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:nK,foregroundStyle:n$,handlerStyle:nX,textStyle:nj}})},t.prototype.update=function(t){var i=t.start,n=t.end,r=(0,ef.pi)({},t);(0,em.UM)(i)||(r.start=(0,em.uZ)(i,0,1)),(0,em.UM)(n)||(r.end=(0,em.uZ)(n,0,1)),e.prototype.update.call(this,r),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},t.prototype.init=function(){this.set("start",(0,em.uZ)(this.get("start"),0,1)),this.set("end",(0,em.uZ)(this.get("end"),0,1)),e.prototype.init.call(this)},t.prototype.render=function(){e.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},t.prototype.renderInner=function(e){var t=this.cfg,i=(t.start,t.end,t.width),n=t.height,r=t.trendCfg,o=void 0===r?{}:r,s=t.minText,a=t.maxText,l=t.backgroundStyle,h=void 0===l?{}:l,u=t.foregroundStyle,d=void 0===u?{}:u,c=t.textStyle,g=void 0===c?{}:c,p=(0,em.b$)({},nz,this.cfg.handlerStyle);(0,em.dp)((0,em.U2)(o,"data"))&&(this.trend=this.addComponent(e,(0,ef.pi)({component:nG,id:this.getElementId("trend"),x:0,y:0,width:i,height:n},o))),this.addShape(e,{id:this.getElementId("background"),type:"rect",attrs:(0,ef.pi)({x:0,y:0,width:i,height:n},h)}),this.addShape(e,{id:this.getElementId("minText"),type:"text",attrs:(0,ef.pi)({y:n/2,textAlign:"right",text:s,silent:!1},g)}),this.addShape(e,{id:this.getElementId("maxText"),type:"text",attrs:(0,ef.pi)({y:n/2,textAlign:"left",text:a,silent:!1},g)}),this.addShape(e,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:(0,ef.pi)({y:0,height:n},d)});var f=(0,em.U2)(p,"width",10),m=(0,em.U2)(p,"height",24);this.minHandler=this.addComponent(e,{component:nY,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(n-m)/2,width:f,height:m,cursor:"ew-resize",style:p}),this.maxHandler=this.addComponent(e,{component:nY,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(n-m)/2,width:f,height:m,cursor:"ew-resize",style:p})},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.updateUI=function(e,t,i){var n=this.cfg,r=n.start,o=n.end,s=n.width,a=n.minText,l=n.maxText,h=n.handlerStyle,u=n.height,d=r*s,c=o*s;this.trend&&(this.trend.update({width:s,height:u}),this.get("updateAutoRender")||this.trend.render()),e.attr("x",d),e.attr("width",c-d);var g=(0,em.U2)(h,"width",10);t.attr("text",a),i.attr("text",l);var p=this._dodgeText([d,c],t,i),f=p[0],m=p[1];this.minHandler&&(this.minHandler.update({x:d-g/2}),this.get("updateAutoRender")||this.minHandler.render()),(0,em.S6)(f,function(e,i){return t.attr(i,e)}),this.maxHandler&&(this.maxHandler.update({x:c-g/2}),this.get("updateAutoRender")||this.maxHandler.render()),(0,em.S6)(m,function(e,t){return i.attr(t,e)})},t.prototype.bindEvents=function(){var e=this.get("group");e.on("handler-min:mousedown",this.onMouseDown("minHandler")),e.on("handler-min:touchstart",this.onMouseDown("minHandler")),e.on("handler-max:mousedown",this.onMouseDown("maxHandler")),e.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var t=e.findById(this.getElementId("foreground"));t.on("mousedown",this.onMouseDown("foreground")),t.on("touchstart",this.onMouseDown("foreground"))},t.prototype.adjustOffsetRange=function(e){var t=this.cfg,i=t.start,n=t.end;switch(this.currentTarget){case"minHandler":var r=0-i,o=1-i;return Math.min(o,Math.max(r,e));case"maxHandler":var r=0-n,o=1-n;return Math.min(o,Math.max(r,e));case"foreground":var r=0-i,o=1-n;return Math.min(o,Math.max(r,e))}},t.prototype.updateStartEnd=function(e){var t=this.cfg,i=t.start,n=t.end;switch(this.currentTarget){case"minHandler":i+=e;break;case"maxHandler":n+=e;break;case"foreground":i+=e,n+=e}this.set("start",i),this.set("end",n)},t.prototype._dodgeText=function(e,t,i){var n,r,o=this.cfg,s=o.handlerStyle,a=o.width,l=(0,em.U2)(s,"width",10),h=e[0],u=e[1],d=!1;h>u&&(h=(n=[u,h])[0],u=n[1],t=(r=[i,t])[0],i=r[1],d=!0);var c=t.getBBox(),g=i.getBBox(),p=c.width>h-2?{x:h+l/2+2,textAlign:"left"}:{x:h-l/2-2,textAlign:"right"},f=g.width>a-u-2?{x:u-l/2-2,textAlign:"right"}:{x:u+l/2+2,textAlign:"left"};return d?[f,p]:[p,f]},t.prototype.draw=function(){var e=this.get("container"),t=e&&e.get("canvas");t&&t.draw()},t.prototype.getContainerDOM=function(){var e=this.get("container"),t=e&&e.get("canvas");return t&&t.get("container")},t}(iO);function nZ(e,t,i){if(e){if("function"==typeof e.addEventListener)return e.addEventListener(t,i,!1),{remove:function(){e.removeEventListener(t,i,!1)}};if("function"==typeof e.attachEvent)return e.attachEvent("on"+t,i),{remove:function(){e.detachEvent("on"+t,i)}}}}var nJ={default:{trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},hover:{thumbColor:"rgba(0,0,0,0.2)"}},nQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.clearEvents=em.ZT,t.onStartEvent=function(e){return function(i){t.isMobile=e,i.originalEvent.preventDefault();var n=e?(0,em.U2)(i.originalEvent,"touches.0.clientX"):i.clientX,r=e?(0,em.U2)(i.originalEvent,"touches.0.clientY"):i.clientY;t.startPos=t.cfg.isHorizontal?n:r,t.bindLaterEvent()}},t.bindLaterEvent=function(){var e=t.getContainerDOM(),i=[];i=t.isMobile?[nZ(e,"touchmove",t.onMouseMove),nZ(e,"touchend",t.onMouseUp),nZ(e,"touchcancel",t.onMouseUp)]:[nZ(e,"mousemove",t.onMouseMove),nZ(e,"mouseup",t.onMouseUp),nZ(e,"mouseleave",t.onMouseUp)],t.clearEvents=function(){i.forEach(function(e){e.remove()})}},t.onMouseMove=function(e){var i=t.cfg,n=i.isHorizontal,r=i.thumbOffset;e.preventDefault();var o=t.isMobile?(0,em.U2)(e,"touches.0.clientX"):e.clientX,s=t.isMobile?(0,em.U2)(e,"touches.0.clientY"):e.clientY,a=n?o:s,l=a-t.startPos;t.startPos=a,t.updateThumbOffset(r+l)},t.onMouseUp=function(e){e.preventDefault(),t.clearEvents()},t.onTrackClick=function(e){var i=t.cfg,n=i.isHorizontal,r=i.x,o=i.y,s=i.thumbLen,a=t.getContainerDOM().getBoundingClientRect(),l=e.clientX,h=e.clientY,u=n?l-a.left-r-s/2:h-a.top-o-s/2,d=t.validateRange(u);t.updateThumbOffset(d)},t.onThumbMouseOver=function(){var e=t.cfg.theme.hover.thumbColor;t.getElementByLocalId("thumb").attr("stroke",e),t.draw()},t.onThumbMouseOut=function(){var e=t.cfg.theme.default.thumbColor;t.getElementByLocalId("thumb").attr("stroke",e),t.draw()},t}return(0,ef.ZT)(t,e),t.prototype.setRange=function(e,t){this.set("minLimit",e),this.set("maxLimit",t);var i=this.getValue(),n=(0,em.uZ)(i,e,t);i===n||this.get("isInit")||this.setValue(n)},t.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},t.prototype.setValue=function(e){var t=this.getRange(),i=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*(0,em.uZ)(e,t.min,t.max)}),this.delegateEmit("valuechange",{originalValue:i,value:this.getValue()})},t.prototype.getValue=function(){return(0,em.uZ)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:nJ})},t.prototype.renderInner=function(e){this.renderTrackShape(e),this.renderThumbShape(e)},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.renderTrackShape=function(e){var t=this.cfg,i=t.trackLen,n=t.theme,r=(0,em.b$)({},nJ,void 0===n?{default:{}}:n).default,o=r.lineCap,s=r.trackColor,a=r.size,l=(0,em.U2)(this.cfg,"size",a),h=this.get("isHorizontal")?{x1:0+l/2,y1:l/2,x2:i-l/2,y2:l/2,lineWidth:l,stroke:s,lineCap:o}:{x1:l/2,y1:0+l/2,x2:l/2,y2:i-l/2,lineWidth:l,stroke:s,lineCap:o};return this.addShape(e,{id:this.getElementId("track"),name:"track",type:"line",attrs:h})},t.prototype.renderThumbShape=function(e){var t=this.cfg,i=t.thumbOffset,n=t.thumbLen,r=t.theme,o=(0,em.b$)({},nJ,r).default,s=o.size,a=o.lineCap,l=o.thumbColor,h=(0,em.U2)(this.cfg,"size",s),u=this.get("isHorizontal")?{x1:i+h/2,y1:h/2,x2:i+n-h/2,y2:h/2,lineWidth:h,stroke:l,lineCap:a,cursor:"default"}:{x1:h/2,y1:i+h/2,x2:h/2,y2:i+n-h/2,lineWidth:h,stroke:l,lineCap:a,cursor:"default"};return this.addShape(e,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:u})},t.prototype.bindEvents=function(){var e=this.get("group");e.on("mousedown",this.onStartEvent(!1)),e.on("mouseup",this.onMouseUp),e.on("touchstart",this.onStartEvent(!0)),e.on("touchend",this.onMouseUp),e.findById(this.getElementId("track")).on("click",this.onTrackClick);var t=e.findById(this.getElementId("thumb"));t.on("mouseover",this.onThumbMouseOver),t.on("mouseout",this.onThumbMouseOut)},t.prototype.getContainerDOM=function(){var e=this.get("container"),t=e&&e.get("canvas");return t&&t.get("container")},t.prototype.validateRange=function(e){var t=this.cfg,i=t.thumbLen,n=t.trackLen,r=e;return e+i>n?r=n-i:e+ie.x?e.x:t,i=ie.y?e.y:n,r=r=n&&e<=r}function n7(e,t){return"object"==typeof e&&t.forEach(function(t){delete e[t]}),e}function n8(e,t,i){void 0===t&&(t=[]),void 0===i&&(i=new Map);for(var n=0;n=this.minX&&e.maxX<=this.maxX&&e.minY>=this.minY&&e.maxY<=this.maxY},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.add=function(){for(var e=[],t=0;te.minX&&this.minYe.minY},e.prototype.size=function(){return this.width*this.height},e.prototype.isPointIn=function(e){return e.x>=this.minX&&e.x<=this.maxX&&e.y>=this.minY&&e.y<=this.maxY},e}();function rt(e){if(e.isPolar&&!e.isTransposed)return(e.endAngle-e.startAngle)*e.getRadius();var t=e.convert({x:0,y:0}),i=e.convert({x:1,y:0});return Math.sqrt(Math.pow(i.x-t.x,2)+Math.pow(i.y-t.y,2))}function ri(e,t){var i=e.getCenter();return Math.sqrt(Math.pow(t.x-i.x,2)+Math.pow(t.y-i.y,2))}function rn(e,t){var i=!1;if(e){if("theta"===e.type){var n=e.start,r=e.end;i=n9(t.x,n.x,r.x)&&n9(t.y,n.y,r.y)}else{var o=e.invert(t);i=n9(o.x,0,1)&&n9(o.y,0,1)}}return i}function rr(e,t){var i=e.getCenter();return Math.atan2(t.y-i.y,t.x-i.x)}function ro(e,t){void 0===t&&(t=0);var i,n=e.start,r=e.end,o=e.getWidth(),s=e.getHeight();if(e.isPolar){var a=e.startAngle,l=e.endAngle,h=e.getCenter(),u=e.getRadius();return{type:"path",startState:{path:n4(h.x,h.y,u+t,a,a)},endState:function(e){var i=(l-a)*e+a;return{path:n4(h.x,h.y,u+t,a,i)}},attrs:{path:n4(h.x,h.y,u+t,a,l)}}}return i=e.isTransposed?{height:s+2*t}:{width:o+2*t},{type:"rect",startState:{x:n.x-t,y:r.y-t,width:e.isTransposed?o+2*t:0,height:e.isTransposed?0:s+2*t},endState:i,attrs:{x:n.x-t,y:r.y-t,width:o+2*t,height:s+2*t}}}var rs=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function ra(e){return e.alias||e.field}function rl(e,t,i){var n,r=e.values.length;if(1===r)n=[.5,1];else{var o=0;n=!function(e){if(e.isPolar){var t=e.startAngle;return e.endAngle-t==2*Math.PI}return!1}(t)?[o=1/r/2,1-o]:t.isTransposed?[(o=1/r*(0,em.U2)(i,"widthRatio.multiplePie",1/1.3))/2,1-o/2]:[0,1-1/r]}return n}function rh(e,t){var i,n,r={start:{x:0,y:0},end:{x:0,y:0}};e.isRect?r=function(e){var t,i;switch(e){case x.TOP:t={x:0,y:1},i={x:1,y:1};break;case x.RIGHT:t={x:1,y:0},i={x:1,y:1};break;case x.BOTTOM:t={x:0,y:0},i={x:1,y:0};break;case x.LEFT:t={x:0,y:0},i={x:0,y:1};break;default:t=i={x:0,y:0}}return{start:t,end:i}}(t):e.isPolar&&(e.isTransposed?(i={x:0,y:0},n={x:1,y:0}):(i={x:0,y:0},n={x:0,y:1}),r={start:i,end:n});var o=r.start,s=r.end;return{start:e.convert(o),end:e.convert(s)}}function ru(e){var t=e.start,i=e.end;return t.x===i.x}function rd(e,t){var i=e.start,n=e.end;return ru(e)?(i.y-n.y)*(t.x-i.x)>0?1:-1:(n.x-i.x)*(i.y-t.y)>0?-1:1}function rc(e,t){var i=(0,em.U2)(e,["components","axis"],{});return(0,em.b$)({},(0,em.U2)(i,["common"],{}),(0,em.b$)({},(0,em.U2)(i,[t],{})))}function rg(e,t,i){var n=(0,em.U2)(e,["components","axis"],{});return(0,em.b$)({},(0,em.U2)(n,["common","title"],{}),(0,em.b$)({},(0,em.U2)(n,[t,"title"],{})),i)}function rp(e){var t=e.x,i=e.y,n=e.circleCenter,r=i.start>i.end,o=e.isTransposed?e.convert({x:r?0:1,y:0}):e.convert({x:0,y:r?0:1}),s=[o.x-n.x,o.y-n.y],a=[1,0],l=o.y>n.y?io.EU(s,a):-1*io.EU(s,a),h=l+(t.end-t.start),u=Math.sqrt(Math.pow(o.x-n.x,2)+Math.pow(o.y-n.y,2));return{center:n,radius:u,startAngle:l,endAngle:h}}function rf(e,t){return(0,em.jn)(e)?!1!==e&&{}:(0,em.U2)(e,[t])}function rm(e,t){return(0,em.U2)(e,"position",t)}function rv(e,t){return(0,em.U2)(t,["title","text"],ra(e))}var rE=function(){function e(e,t){this.destroyed=!1,this.facets=[],this.view=e,this.cfg=(0,em.b$)({},this.getDefaultCfg(),t)}return e.prototype.init=function(){this.container||(this.container=this.createContainer());var e=this.view.getData();this.facets=this.generateFacets(e)},e.prototype.render=function(){this.renderViews()},e.prototype.update=function(){},e.prototype.clear=function(){this.clearFacetViews()},e.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},e.prototype.facetToView=function(e){var t=e.region,i=e.data,n=e.padding,r=void 0===n?this.cfg.padding:n,o=this.view.createView({region:t,padding:r});o.data(i||[]),e.view=o,this.beforeEachView(o,e);var s=this.cfg.eachView;return s&&s(o,e),this.afterEachView(o,e),o},e.prototype.createContainer=function(){return this.view.getLayer(O.FORE).addGroup()},e.prototype.renderViews=function(){this.createFacetViews()},e.prototype.createFacetViews=function(){var e=this;return this.facets.map(function(t){return e.facetToView(t)})},e.prototype.clearFacetViews=function(){var e=this;(0,em.S6)(this.facets,function(t){t.view&&(e.view.removeView(t.view),t.view=void 0)})},e.prototype.parseSpacing=function(){var e=this.view.viewBBox,t=e.width,i=e.height;return this.cfg.spacing.map(function(e,n){return(0,em.hj)(e)?e/(0===n?t:i):parseFloat(e)/100})},e.prototype.getFieldValues=function(e,t){var i=[],n={};return(0,em.S6)(e,function(e){var r=e[t];(0,em.UM)(r)||n[r]||(i.push(r),n[r]=!0)}),i},e.prototype.getRegion=function(e,t,i,n){var r=this.parseSpacing(),o=r[0],s=r[1],a=(1+o)/(0===t?1:t)-o,l=(1+s)/(0===e?1:e)-s,h={x:(a+o)*i,y:(l+s)*n},u={x:h.x+a,y:h.y+l};return{start:h,end:u}},e.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},e.prototype.getDefaultTitleCfg=function(){return{style:{fontSize:14,fill:"#666",fontFamily:this.view.getTheme().fontFamily}}},e.prototype.processAxis=function(e,t){var i=e.getOptions(),n=i.coordinate,r=e.geometries;if("rect"===(0,em.U2)(n,"type","rect")&&r.length){(0,em.UM)(i.axes)&&(i.axes={});var o=i.axes,s=r[0].getXYFields(),a=s[0],l=s[1],h=rf(o,a),u=rf(o,l);!1!==h&&(i.axes[a]=this.getXAxisOption(a,o,h,t)),!1!==u&&(i.axes[l]=this.getYAxisOption(l,o,u,t))}},e.prototype.getFacetDataFilter=function(e){return function(t){return(0,em.yW)(e,function(e){var i=e.field,n=e.value;return!!(0,em.UM)(n)||!i||t[i]===n})}},e}(),r_={},rC=function(e,t){r_[(0,em.vl)(e)]=t},rS=function(){function e(e,t){this.context=e,this.cfg=t,e.addAction(this)}return e.prototype.applyCfg=function(e){(0,em.f0)(this,e)},e.prototype.init=function(){this.applyCfg(this.cfg)},e.prototype.destroy=function(){this.context.removeAction(this),this.context=null},e}(),ry=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.execute=function(){this.callback&&this.callback(this.context)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.callback=null},t}(rS),rT={};function rb(e){var t=rT[e];return(0,em.U2)(t,"ActionClass")}function rA(e,t,i){rT[e]={ActionClass:t,cfg:i}}function rR(e,t){for(var i=[e[0]],n=1,r=e.length;n=t||i.height>=t?i:null}function rD(e){var t,i=e.event.target;return i&&(t=i.get("element")),t}function rM(e){var t,i=e.event.target;return i&&(t=i.get("delegateObject")),t}function rk(e){var t=e.event.gEvent;return!t||!t.fromShape||!t.toShape||t.fromShape.get("element")!==t.toShape.get("element")}function rP(e){return e&&e.component&&e.component.isList()}function rF(e){return e&&e.component&&e.component.isSlider()}function rB(e){var t=e.event.target;return t&&"mask"===t.get("name")}function rU(e,t){if("path"===e.event.target.get("type")){var i,n,r,o,s=(o=(r=e.event.target).getCanvasBBox()).width>=t||o.height>=t?r.attr("path"):null;if(!s)return;return i=rV(e.view),n=rY(s),i.filter(function(e){var t,i,r=e.shape;return i="path"===r.get("type")?rY(r.attr("path")):[[(t=r.getCanvasBBox()).minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]],(0,nV.Wq)(n,i)})}var a=rx(e,t);return a?rz(e.view,a):null}function rH(e,t,i){var n=rx(e,i);if(!n)return null;var r=e.view,o=rq(r,t,{x:n.x,y:n.y}),s=rq(r,t,{x:n.maxX,y:n.maxY}),a={minX:o.x,minY:o.y,maxX:s.x,maxY:s.y};return rz(t,a)}function rV(e){var t=e.geometries,i=[];return(0,em.S6)(t,function(e){var t=e.elements;i=i.concat(t)}),e.views&&e.views.length&&(0,em.S6)(e.views,function(e){i=i.concat(rV(e))}),i}function rW(e,t){var i=e.geometries,n=[];return(0,em.S6)(i,function(e){var i=e.getElementsBy(function(e){return e.hasState(t)});n=n.concat(i)}),n}function rG(e,t){var i=e.getModel().data;return(0,em.kJ)(i)?i[0][t]:i[t]}function rz(e,t){var i=rV(e),n=[];return(0,em.S6)(i,function(e){var i=e.shape.getCanvasBBox();i.minX>t.maxX||i.maxXt.maxY||i.maxY=t.x&&e.y<=t.y&&e.maxY>t.y}function rj(e){var t=e.parent,i=null;return t&&(i=t.views.filter(function(t){return t!==e})),i}function rq(e,t,i){var n=e.getCoordinate().invert(i);return t.getCoordinate().convert(n)}function rZ(e,t,i,n){var r=!1;return(0,em.S6)(e,function(e){if(e[i]===t[i]&&e[n]===t[n])return r=!0,!1}),r}function rJ(e,t){var i=e.getScaleByField(t);return!i&&e.views&&(0,em.S6)(e.views,function(e){if(i=rJ(e,t))return!1}),i}var rQ=function(){function e(e){this.actions=[],this.event=null,this.cacheMap={},this.view=e}return e.prototype.cache=function(){for(var e=[],t=0;t=0&&t.splice(i,1)},e.prototype.getCurrentPoint=function(){var e=this.event;return e?e.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(e.clientX,e.clientY):{x:e.x,y:e.y}:null},e.prototype.getCurrentShape=function(){return(0,em.U2)(this.event,["gEvent","shape"])},e.prototype.isInPlot=function(){var e=this.getCurrentPoint();return!!e&&this.view.isPointInPlot(e)},e.prototype.isInShape=function(e){var t=this.getCurrentShape();return!!t&&t.get("name")===e},e.prototype.isInComponent=function(e){var t=rK(this.view),i=this.getCurrentPoint();return!!i&&!!t.find(function(t){var n=t.getBBox();return e?t.get("name")===e&&rX(n,i):rX(n,i)})},e.prototype.destroy=function(){(0,em.S6)(this.actions.slice(),function(e){e.destroy()}),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},e}(),r0=function(){function e(e,t){this.view=e,this.cfg=t}return e.prototype.init=function(){this.initEvents()},e.prototype.initEvents=function(){},e.prototype.clearEvents=function(){},e.prototype.destroy=function(){this.clearEvents()},e}();function r1(e,t,i){var n=e.split(":"),r=n[0],o=t.getAction(r)||function(e,t){var i=rT[e],n=null;if(i){var r=i.ActionClass,o=i.cfg;(n=new r(t,o)).name=e,n.init()}return n}(r,t);if(!o)throw Error("There is no action named "+r);return{action:o,methodName:n[1],arg:i}}function r2(e){var t=e.action,i=e.methodName,n=e.arg;if(t[i])t[i](n);else throw Error("Action("+t.name+") doesn't have a method called "+i)}var r4={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},r5=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n.callbackCaches={},n.emitCaches={},n.steps=i,n}return(0,ef.ZT)(t,e),t.prototype.init=function(){this.initContext(),e.prototype.init.call(this)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},t.prototype.initEvents=function(){var e=this;(0,em.S6)(this.steps,function(t,i){(0,em.S6)(t,function(t){var n=e.getActionCallback(i,t);n&&e.bindEvent(t.trigger,n)})})},t.prototype.clearEvents=function(){var e=this;(0,em.S6)(this.steps,function(t,i){(0,em.S6)(t,function(t){var n=e.getActionCallback(i,t);n&&e.offEvent(t.trigger,n)})})},t.prototype.initContext=function(){var e=this.view,t=new rQ(e);this.context=t;var i=this.steps;(0,em.S6)(i,function(e){(0,em.S6)(e,function(e){if((0,em.mf)(e.action)){var i,n;e.actionObject={action:(i=e.action,(n=new ry(t)).callback=i,n.name="callback",n),methodName:"execute"}}else if((0,em.HD)(e.action))e.actionObject=r1(e.action,t,e.arg);else if((0,em.kJ)(e.action)){var r=e.action,o=(0,em.kJ)(e.arg)?e.arg:[e.arg];e.actionObject=[],(0,em.S6)(r,function(i,n){e.actionObject.push(r1(i,t,o[n]))})}})})},t.prototype.isAllowStep=function(e){var t=this.currentStepName,i=this.steps;if(t===e||e===r4.SHOW_ENABLE)return!0;if(e===r4.PROCESSING)return t===r4.START;if(e===r4.START)return t!==r4.PROCESSING;if(e===r4.END)return t===r4.PROCESSING||t===r4.START;if(e===r4.ROLLBACK){if(i[r4.END])return t===r4.END;if(t===r4.START)return!0}return!1},t.prototype.isAllowExecute=function(e,t){if(this.isAllowStep(e)){var i=this.getKey(e,t);return(!t.once||!this.emitCaches[i])&&(!t.isEnable||t.isEnable(this.context))}return!1},t.prototype.enterStep=function(e){this.currentStepName=e,this.emitCaches={}},t.prototype.afterExecute=function(e,t){e!==r4.SHOW_ENABLE&&this.currentStepName!==e&&this.enterStep(e);var i=this.getKey(e,t);this.emitCaches[i]=!0},t.prototype.getKey=function(e,t){return e+t.trigger+t.action},t.prototype.getActionCallback=function(e,t){var i=this,n=this.context,r=this.callbackCaches,o=t.actionObject;if(t.action&&o){var s=this.getKey(e,t);if(!r[s]){var a=function(r){n.event=r,i.isAllowExecute(e,t)?((0,em.kJ)(o)?(0,em.S6)(o,function(e){n.event=r,r2(e)}):(n.event=r,r2(o)),i.afterExecute(e,t),t.callback&&(n.event=r,t.callback(n))):n.event=null};t.debounce?r[s]=(0,em.Ds)(a,t.debounce.wait,t.debounce.immediate):t.throttle?r[s]=(0,em.P2)(a,t.throttle.wait,{leading:t.throttle.leading,trailing:t.throttle.trailing}):r[s]=a}return r[s]}return null},t.prototype.bindEvent=function(e,t){var i=e.split(":");"window"===i[0]?window.addEventListener(i[1],t):"document"===i[0]?document.addEventListener(i[1],t):this.view.on(e,t)},t.prototype.offEvent=function(e,t){var i=e.split(":");"window"===i[0]?window.removeEventListener(i[1],t):"document"===i[0]?document.removeEventListener(i[1],t):this.view.off(e,t)},t}(r0),r6={};function r3(e,t){r6[(0,em.vl)(e)]=t}function r9(e){var t,i={point:{default:{fill:e.pointFillColor,r:e.pointSize,stroke:e.pointBorderColor,lineWidth:e.pointBorder,fillOpacity:e.pointFillOpacity},active:{stroke:e.pointActiveBorderColor,lineWidth:e.pointActiveBorder},selected:{stroke:e.pointSelectedBorderColor,lineWidth:e.pointSelectedBorder},inactive:{fillOpacity:e.pointInactiveFillOpacity,strokeOpacity:e.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:e.hollowPointFillColor,lineWidth:e.hollowPointBorder,stroke:e.hollowPointBorderColor,strokeOpacity:e.hollowPointBorderOpacity,r:e.hollowPointSize},active:{stroke:e.hollowPointActiveBorderColor,strokeOpacity:e.hollowPointActiveBorderOpacity},selected:{lineWidth:e.hollowPointSelectedBorder,stroke:e.hollowPointSelectedBorderColor,strokeOpacity:e.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:e.hollowPointInactiveBorderOpacity}},area:{default:{fill:e.areaFillColor,fillOpacity:e.areaFillOpacity,stroke:null},active:{fillOpacity:e.areaActiveFillOpacity},selected:{fillOpacity:e.areaSelectedFillOpacity},inactive:{fillOpacity:e.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:e.hollowAreaBorderColor,lineWidth:e.hollowAreaBorder,strokeOpacity:e.hollowAreaBorderOpacity},active:{fill:null,lineWidth:e.hollowAreaActiveBorder},selected:{fill:null,lineWidth:e.hollowAreaSelectedBorder},inactive:{strokeOpacity:e.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:e.intervalFillColor,fillOpacity:e.intervalFillOpacity},active:{stroke:e.intervalActiveBorderColor,lineWidth:e.intervalActiveBorder},selected:{stroke:e.intervalSelectedBorderColor,lineWidth:e.intervalSelectedBorder},inactive:{fillOpacity:e.intervalInactiveFillOpacity,strokeOpacity:e.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:e.hollowIntervalFillColor,stroke:e.hollowIntervalBorderColor,lineWidth:e.hollowIntervalBorder,strokeOpacity:e.hollowIntervalBorderOpacity},active:{stroke:e.hollowIntervalActiveBorderColor,lineWidth:e.hollowIntervalActiveBorder,strokeOpacity:e.hollowIntervalActiveBorderOpacity},selected:{stroke:e.hollowIntervalSelectedBorderColor,lineWidth:e.hollowIntervalSelectedBorder,strokeOpacity:e.hollowIntervalSelectedBorderOpacity},inactive:{stroke:e.hollowIntervalInactiveBorderColor,lineWidth:e.hollowIntervalInactiveBorder,strokeOpacity:e.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:e.lineBorderColor,lineWidth:e.lineBorder,strokeOpacity:e.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:e.lineActiveBorder},selected:{lineWidth:e.lineSelectedBorder},inactive:{strokeOpacity:e.lineInactiveBorderOpacity}}},n={title:{autoRotate:!0,position:"center",spacing:e.axisTitleSpacing,style:{fill:e.axisTitleTextFillColor,fontSize:e.axisTitleTextFontSize,lineHeight:e.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:e.axisLabelOffset,style:{fill:e.axisLabelFillColor,fontSize:e.axisLabelFontSize,lineHeight:e.axisLabelLineHeight,fontFamily:e.fontFamily}},line:{style:{lineWidth:e.axisLineBorder,stroke:e.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:e.axisGridBorderColor,lineWidth:e.axisGridBorder,lineDash:e.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:e.axisTickLineBorder,stroke:e.axisTickLineBorderColor},alignTick:!0,length:e.axisTickLineLength},subTickLine:null,animate:!0},r={title:null,marker:{symbol:"circle",spacing:e.legendMarkerSpacing,style:{r:e.legendCircleMarkerSize,fill:e.legendMarkerColor}},itemName:{spacing:5,style:{fill:e.legendItemNameFillColor,fontFamily:e.fontFamily,fontSize:e.legendItemNameFontSize,lineHeight:e.legendItemNameLineHeight,fontWeight:e.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:e.legendPageNavigatorMarkerSize,inactiveFill:e.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:e.legendPageNavigatorMarkerInactiveFillOpacity,fill:e.legendPageNavigatorMarkerFillColor,opacity:e.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:e.legendPageNavigatorTextFillColor,fontSize:e.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:e.legendItemSpacing,itemMarginBottom:e.legendItemMarginBottom,padding:e.legendPadding};return{background:e.backgroundColor,defaultColor:e.brandColor,subColor:e.subColor,semanticRed:e.paletteSemanticRed,semanticGreen:e.paletteSemanticGreen,padding:"auto",fontFamily:e.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:e.paletteQualitative10,colors20:e.paletteQualitative20,sequenceColors:e.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:i.interval.default},active:{style:i.interval.active},inactive:{style:i.interval.inactive},selected:{style:function(e){var t=e.geometry.coordinate;if(t.isPolar&&t.isTransposed){var n=n6(e.getModel(),t),r=(n.startAngle+n.endAngle)/2,o=7.5*Math.cos(r),s=7.5*Math.sin(r);return{matrix:it.vs(null,[["t",o,s]])}}return i.interval.selected}}},"hollow-rect":{default:{style:i.hollowInterval.default},active:{style:i.hollowInterval.active},inactive:{style:i.hollowInterval.inactive},selected:{style:i.hollowInterval.selected}},line:{default:{style:i.hollowInterval.default},active:{style:i.hollowInterval.active},inactive:{style:i.hollowInterval.inactive},selected:{style:i.hollowInterval.selected}},tick:{default:{style:i.hollowInterval.default},active:{style:i.hollowInterval.active},inactive:{style:i.hollowInterval.inactive},selected:{style:i.hollowInterval.selected}},funnel:{default:{style:i.interval.default},active:{style:i.interval.active},inactive:{style:i.interval.inactive},selected:{style:i.interval.selected}},pyramid:{default:{style:i.interval.default},active:{style:i.interval.active},inactive:{style:i.interval.inactive},selected:{style:i.interval.selected}}},line:{line:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},dot:{default:{style:(0,ef.pi)((0,ef.pi)({},i.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:(0,ef.pi)((0,ef.pi)({},i.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:(0,ef.pi)((0,ef.pi)({},i.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:(0,ef.pi)((0,ef.pi)({},i.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:(0,ef.pi)((0,ef.pi)({},i.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:(0,ef.pi)((0,ef.pi)({},i.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:(0,ef.pi)((0,ef.pi)({},i.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:(0,ef.pi)((0,ef.pi)({},i.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},hv:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},vh:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},hvh:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},vhv:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}}},polygon:{polygon:{default:{style:i.interval.default},active:{style:i.interval.active},inactive:{style:i.interval.inactive},selected:{style:i.interval.selected}}},point:{circle:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},square:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},bowtie:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},diamond:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},hexagon:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},triangle:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},"triangle-down":{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},"hollow-circle":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-square":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-bowtie":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-diamond":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-hexagon":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-triangle":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-triangle-down":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},cross:{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},tick:{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},plus:{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},hyphen:{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},line:{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}}},area:{area:{default:{style:i.area.default},active:{style:i.area.active},inactive:{style:i.area.inactive},selected:{style:i.area.selected}},smooth:{default:{style:i.area.default},active:{style:i.area.active},inactive:{style:i.area.inactive},selected:{style:i.area.selected}},line:{default:{style:i.hollowArea.default},active:{style:i.hollowArea.active},inactive:{style:i.hollowArea.inactive},selected:{style:i.hollowArea.selected}},"smooth-line":{default:{style:i.hollowArea.default},active:{style:i.hollowArea.active},inactive:{style:i.hollowArea.inactive},selected:{style:i.hollowArea.selected}}},schema:{candle:{default:{style:i.hollowInterval.default},active:{style:i.hollowInterval.active},inactive:{style:i.hollowInterval.inactive},selected:{style:i.hollowInterval.selected}},box:{default:{style:i.hollowInterval.default},active:{style:i.hollowInterval.active},inactive:{style:i.hollowInterval.inactive},selected:{style:i.hollowInterval.selected}}},edge:{line:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},vhv:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},smooth:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},arc:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}}},violin:{violin:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},smooth:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},hollow:{default:{style:i.hollowArea.default},active:{style:i.hollowArea.active},inactive:{style:i.hollowArea.inactive},selected:{style:i.hollowArea.selected}},"hollow-smooth":{default:{style:i.hollowArea.default},active:{style:i.hollowArea.active},inactive:{style:i.hollowArea.inactive},selected:{style:i.hollowArea.selected}}}},components:{axis:{common:n,top:{position:"top",grid:null,title:null,verticalLimitLength:.5},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:.5},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:(0,em.b$)({},n.grid,{line:{type:"line"}})},radius:{title:null,grid:(0,em.b$)({},n.grid,{line:{type:"circle"}})}},legend:{common:r,right:{layout:"vertical",padding:e.legendVerticalPadding},left:{layout:"vertical",padding:e.legendVerticalPadding},top:{layout:"horizontal",padding:e.legendHorizontalPadding},bottom:{layout:"horizontal",padding:e.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:e.sliderRailHeight,defaultLength:e.sliderRailWidth,style:{fill:e.sliderRailFillColor,stroke:e.sliderRailBorderColor,lineWidth:e.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:e.sliderLabelTextFillColor,fontSize:e.sliderLabelTextFontSize,lineHeight:e.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily}},handler:{size:e.sliderHandlerWidth,style:{fill:e.sliderHandlerFillColor,stroke:e.sliderHandlerBorderColor}},slidable:!0,padding:r.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:e.tooltipCrosshairsBorderColor,lineWidth:e.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:((t={})[""+nL]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:e.tooltipContainerFillColor,opacity:e.tooltipContainerFillOpacity,boxShadow:e.tooltipContainerShadow,borderRadius:e.tooltipContainerBorderRadius+"px",color:e.tooltipTextFillColor,fontSize:e.tooltipTextFontSize+"px",fontFamily:e.fontFamily,lineHeight:e.tooltipTextLineHeight+"px",padding:"0 12px 0 12px"},t[""+nN]={marginBottom:"12px",marginTop:"12px"},t[""+nI]={margin:0,listStyleType:"none",padding:0},t[""+nw]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},t[""+nO]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},t[""+nx]={display:"inline-block",float:"right",marginLeft:"30px"},t)},annotation:{arc:{style:{stroke:e.annotationArcBorderColor,lineWidth:e.annotationArcBorder},animate:!0},line:{style:{stroke:e.annotationLineBorderColor,lineDash:e.annotationLineDash,lineWidth:e.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textAlign:"start",fontFamily:e.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:e.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:e.annotationRegionBorder,stroke:e.annotationRegionBorderColor,fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:e.brandColor,lineWidth:2}},line:{style:{stroke:e.annotationLineBorderColor,lineWidth:e.annotationLineBorder},length:e.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:e.cSliderBackgroundFillColor,opacity:e.cSliderBackgroundFillOpacity},foregroundStyle:{fill:e.cSliderForegroundFillColor,opacity:e.cSliderForegroundFillOpacity},handlerStyle:{width:e.cSliderHandlerWidth,height:e.cSliderHandlerHeight,fill:e.cSliderHandlerFillColor,opacity:e.cSliderHandlerFillOpacity,stroke:e.cSliderHandlerBorderColor,lineWidth:e.cSliderHandlerBorder,radius:e.cSliderHandlerBorderRadius,highLightFill:e.cSliderHandlerHighlightFillColor},textStyle:{fill:e.cSliderTextFillColor,opacity:e.cSliderTextFillOpacity,fontSize:e.cSliderTextFontSize,lineHeight:e.cSliderTextLineHeight,fontWeight:e.cSliderTextFontWeight,stroke:e.cSliderTextBorderColor,lineWidth:e.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:e.scrollbarTrackFillColor,thumbColor:e.scrollbarThumbFillColor}},hover:{style:{thumbColor:e.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:e.labelFillColor,fontSize:e.labelFontSize,fontFamily:e.fontFamily,stroke:e.labelBorderColor,lineWidth:e.labelBorder},fillColorDark:e.labelFillColorDark,fillColorLight:e.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:e.innerLabelFillColor,fontSize:e.innerLabelFontSize,fontFamily:e.fontFamily,stroke:e.innerLabelBorderColor,lineWidth:e.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:e.overflowLabelFillColor,fontSize:e.overflowLabelFontSize,fontFamily:e.fontFamily,stroke:e.overflowLabelBorderColor,lineWidth:e.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:e.labelLineBorder}},autoRotate:!0}}}var r7={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},r8={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},oe=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],ot=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],oi=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],on=function(e){void 0===e&&(e={});var t=e.backgroundColor,i=e.subColor,n=e.paletteQualitative10,r=void 0===n?oe:n,o=e.paletteQualitative20,s=e.paletteSemanticRed,a=e.paletteSemanticGreen,l=e.paletteSemanticYellow,h=e.paletteSequence,u=e.fontFamily,d=e.brandColor,c=void 0===d?r[0]:d;return{backgroundColor:void 0===t?"transparent":t,brandColor:c,subColor:void 0===i?"rgba(0,0,0,0.05)":i,paletteQualitative10:r,paletteQualitative20:void 0===o?ot:o,paletteSemanticRed:void 0===s?"#F4664A":s,paletteSemanticGreen:void 0===a?"#30BF78":a,paletteSemanticYellow:void 0===l?"#FAAD14":l,paletteSequence:void 0===h?oi:h,fontFamily:void 0===u?'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"':u,axisLineBorderColor:r7[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:r7[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:r7[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:r7[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:r7[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:r7[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:r7[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:c,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:r7[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:r7[100],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:r7[100],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:r7[45],legendPageNavigatorTextFontSize:12,sliderRailFillColor:r7[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:r7[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:r7[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:r7[25],annotationArcBorderColor:r7[15],annotationArcBorder:1,annotationLineBorderColor:r7[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:r7[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:r7[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:r7[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:r7[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:r7[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:r8[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:r7[65],overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:r8[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:r7[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:c,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:r8[100],pointBorderOpacity:1,pointActiveBorderColor:r7[100],pointSelectedBorder:2,pointSelectedBorderColor:r7[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:c,hollowPointBorderOpacity:.95,hollowPointFillColor:r8[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:r7[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:r7[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:c,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:c,areaFillOpacity:.25,areaActiveFillColor:c,areaActiveFillOpacity:.5,areaSelectedFillColor:c,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:c,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:r7[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:r7[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:c,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:r7[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:r7[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:c,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:r8[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:r7[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:r7[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}};function or(e){var t=e.styleSheet,i=(0,ef._T)(e,["styleSheet"]),n=on(void 0===t?{}:t);return(0,em.b$)({},r9(n),i)}on();var oo={default:or({})};function os(e){return(0,em.U2)(oo,(0,em.vl)(e),oo.default)}function oa(e,t,i){var n=i.translate(e),r=i.translate(t);return(0,em.vQ)(n,r)}function ol(e,t,i){var n=i.coordinate,r=i.getYScale(),o=r.field,s=n.invert(t),a=r.invert(s.y);return(0,em.sE)(e,function(e){var t=e[e_];return t[o][0]<=a&&t[o][1]>=a})||e[e.length-1]}var oh=(0,em.HP)(function(e){if(e.isCategory)return 1;for(var t=e.values,i=t.length,n=e.translate(t[0]),r=n,o=0;or&&(r=a)}return(r-n)/(i-1)});function ou(e){for(var t,i,n=(t=(0,em.VO)(e.attributes),(0,em.hX)(t,function(e){return(0,em.FX)(eE,e.type)})),r=0;r(1+s)/2&&(l=a),r.translate(r.invert(l))),R=T[e_][c],L=T[e_][g],N=b[e_][c],I=d.isLinear&&(0,em.kJ)(L);if((0,em.kJ)(R)){for(var _=0;_=A){if(I)(0,em.kJ)(p)||(p=[]),p.push(w);else{p=w;break}}}(0,em.kJ)(p)&&(p=ol(p,e,i))}else{var O=void 0;if(u.isLinear||"timeCat"===u.type){if((A>u.translate(N)||Au.max||AMath.abs(u.translate(O[e_][c])-A)&&(b=O)}var P=oh(i.getXScale());return!p&&Math.abs(u.translate(b[e_][c])-A)<=P/2&&(p=b),p}function oc(e,t,i,n){void 0===i&&(i=""),void 0===n&&(n=!1);var r,o,s,a,l,h,u,d,c,g=e[e_],p=(r=i,o=t.getAttribute("position").getFields(),l=(a=t.scales[s=(0,em.mf)(r)||!r?o[0]:r])?a.getText(g[s]):g[s]||s,(0,em.mf)(r)?r(l,g):l),f=t.tooltipOption,m=t.theme.defaultColor,v=[];function E(t,i){if(n||!(0,em.UM)(i)&&""!==i){var r={title:p,data:g,mappingData:e,name:t,value:i,color:e.color||m,marker:!0};v.push(r)}}if((0,em.Kn)(f)){var _=f.fields,C=f.callback;if(C){var S=_.map(function(t){return e[e_][t]}),y=C.apply(void 0,S),T=(0,ef.pi)({data:e[e_],mappingData:e,title:p,color:e.color||m,marker:!0},y);v.push(T)}else for(var b=t.scales,A=0;A<_.length;A++){var R=_[A];if(!(0,em.UM)(g[R])){var L=b[R];E(ra(L),c=L.getText(g[R]))}}}else u=g[(h=ou(t)).field],c=(0,em.kJ)(u)?u.map(function(e){return h.getText(e)}).join("-"):h.getText(u),E(function(e,t){var i,n=t.getGroupScales();if(n.length&&(i=n[0]),i){var r=i.field;return i.getText(e[r])}return ra(ou(t))}(g,t),c);return v}function og(e,t,i,n){var r=n.showNil,o=[],s=e.dataArray;if(!(0,em.xb)(s)){e.sort(s);for(var a=0;a');T.appendChild(b);var A=eb(T,a,r,o),R=new(function(e){var t=eC[e];if(!t)throw Error("G engine '"+e+"' is not exist, please register it at first.");return t}(d)).Canvas((0,ef.pi)({container:b,pixelRatio:c,localRefresh:p,supportCSSTransform:void 0!==m&&m},A));return(i=e.call(this,{parent:null,canvas:R,backgroundGroup:R.addGroup({zIndex:ev.BG}),middleGroup:R.addGroup({zIndex:ev.MID}),foregroundGroup:R.addGroup({zIndex:ev.FORE}),padding:l,appendPadding:h,visible:void 0===f||f,options:_,limitInPlot:C,theme:S,syncViewPadding:y})||this).onResize=(0,em.Ds)(function(){i.forceFit()},300),i.ele=T,i.canvas=R,i.width=A.width,i.height=A.height,i.autoFit=a,i.localRefresh=p,i.renderer=d,i.wrapperElement=b,i.updateCanvasStyle(),i.bindAutoFit(),i.initDefaultInteractions(E),i}return(0,ef.ZT)(t,e),t.prototype.initDefaultInteractions=function(e){var t=this;(0,em.S6)(e,function(e){t.interaction(e)})},t.prototype.aria=function(e){var t="aria-label";!1===e?this.ele.removeAttribute(t):this.ele.setAttribute(t,e.label)},t.prototype.changeSize=function(e,t){return this.width===e&&this.height===t||(this.emit(M.BEFORE_CHANGE_SIZE),this.width=e,this.height=t,this.canvas.changeSize(e,t),this.render(!0),this.emit(M.AFTER_CHANGE_SIZE)),this},t.prototype.clear=function(){e.prototype.clear.call(this),this.aria(!1)},t.prototype.destroy=function(){var t,i;e.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),(i=(t=this.wrapperElement).parentNode)&&i.removeChild(t),this.wrapperElement=null},t.prototype.changeVisible=function(t){return e.prototype.changeVisible.call(this,t),this.wrapperElement.style.display=t?"":"none",this},t.prototype.forceFit=function(){if(!this.destroyed){var e=eb(this.ele,!0,this.width,this.height),t=e.width,i=e.height;this.changeSize(t,i)}},t.prototype.updateCanvasStyle=function(){ey(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},t.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},t.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},t}(ob),oL=function(){function e(e){this.visible=!0,this.components=[],this.view=e}return e.prototype.clear=function(e){(0,em.S6)(this.components,function(e){e.component.destroy()}),this.components=[]},e.prototype.destroy=function(){this.clear()},e.prototype.getComponents=function(){return this.components},e.prototype.changeVisible=function(e){this.visible!==e&&(this.components.forEach(function(t){e?t.component.show():t.component.hide()}),this.visible=e)},e}(),oN=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isLocked=!1,t}return(0,ef.ZT)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.isVisible=function(){return!1!==this.view.getOptions().tooltip},t.prototype.render=function(){},t.prototype.showTooltip=function(e){if(this.point=e,this.isVisible()){var t=this.view,i=this.getTooltipItems(e);if(!i.length){this.hideTooltip();return}var n=this.getTitle(i),r={x:i[0].x,y:i[0].y};t.emit("tooltip:show",o_.fromData(t,"tooltip:show",(0,ef.pi)({items:i,title:n},e)));var o=this.getTooltipCfg(),s=o.follow,a=o.showMarkers,l=o.showCrosshairs,h=o.showContent,u=o.marker,d=this.items,c=this.title;if((0,em.Xy)(c,n)&&(0,em.Xy)(d,i)?(this.tooltip&&s&&(this.tooltip.update(e),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(t.emit("tooltip:change",o_.fromData(t,"tooltip:change",(0,ef.pi)({items:i,title:n},e))),((0,em.mf)(h)?h(i):h)&&(this.tooltip||this.renderTooltip(),this.tooltip.update((0,em.CD)({},o,{items:this.getItemsAfterProcess(i),title:n},s?e:{})),this.tooltip.show()),a&&this.renderTooltipMarkers(i,u)),this.items=i,this.title=n,l){var g=(0,em.U2)(o,["crosshairs","follow"],!1);this.renderCrosshairs(g?e:r,o)}}},t.prototype.hideTooltip=function(){if(!this.getTooltipCfg().follow){this.point=null;return}var e=this.tooltipMarkersGroup;e&&e.hide();var t=this.xCrosshair,i=this.yCrosshair;t&&t.hide(),i&&i.hide();var n=this.tooltip;n&&n.hide(),this.view.emit("tooltip:hide",o_.fromData(this.view,"tooltip:hide",{})),this.point=null},t.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},t.prototype.unlockTooltip=function(){this.isLocked=!1;var e=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(e.capture)},t.prototype.isTooltipLocked=function(){return this.isLocked},t.prototype.clear=function(){var e=this.tooltip,t=this.xCrosshair,i=this.yCrosshair,n=this.tooltipMarkersGroup;e&&(e.hide(),e.clear()),t&&t.clear(),i&&i.clear(),n&&n.clear(),(null==e?void 0:e.get("customContent"))&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},t.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},t.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},t.prototype.changeVisible=function(e){if(this.visible!==e){var t=this.tooltip,i=this.tooltipMarkersGroup,n=this.xCrosshair,r=this.yCrosshair;e?(t&&t.show(),i&&i.show(),n&&n.show(),r&&r.show()):(t&&t.hide(),i&&i.hide(),n&&n.hide(),r&&r.hide()),this.visible=e}},t.prototype.getTooltipItems=function(e){var t=this.findItemsFromView(this.view,e);if(t.length){t=(0,em.xH)(t);for(var i=0,n=t;i1){for(var u=t[0],d=Math.abs(e.y-u[0].y),c=0,g=t;c'+n+"":n}})},t.prototype.getTitle=function(e){var t=e[0].title||e[0].name;return this.title=t,t},t.prototype.renderTooltip=function(){var e=this.view.getCanvas(),t={start:{x:0,y:0},end:{x:e.get("width"),y:e.get("height")}},i=this.getTooltipCfg(),n=new nF((0,ef.pi)((0,ef.pi)({parent:e.get("el").parentNode,region:t},i),{visible:!1,crosshairs:null}));n.init(),this.tooltip=n},t.prototype.renderTooltipMarkers=function(e,t){for(var i=this.getTooltipMarkersGroup(),n=0;n-1)return;i.push(e),("active"===e||"selected"===e)&&(null==o||o.toFront())}else{if(-1===a)return;i.splice(a,1),("active"===e||"selected"===e)&&(this.geometry.zIndexReversed?o.setZIndex(this.geometry.elements.length-this.elementIndex):o.setZIndex(this.elementIndex))}var l=n.drawShape(s,r,this.getOffscreenGroup());i.length?this.syncShapeStyle(o,l,i,null):this.syncShapeStyle(o,l,["reset"],null),l.remove(!0);var h={state:e,stateStatus:t,element:this,target:this.container};this.container.emit("statechange",h),iu(this.shape,"statechange",h)},t.prototype.clearStates=function(){var e=this,t=this.states;(0,em.S6)(t,function(t){e.setState(t,!1)}),this.states=[]},t.prototype.hasState=function(e){return this.states.includes(e)},t.prototype.getStates=function(){return this.states},t.prototype.getData=function(){return this.data},t.prototype.getModel=function(){return this.model},t.prototype.getBBox=function(){var e=this.shape,t=this.labelShape,i={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return e&&(i=e.getCanvasBBox()),t&&t.forEach(function(e){var t=e.getCanvasBBox();i.x=Math.min(t.x,i.x),i.y=Math.min(t.y,i.y),i.minX=Math.min(t.minX,i.minX),i.minY=Math.min(t.minY,i.minY),i.maxX=Math.max(t.maxX,i.maxX),i.maxY=Math.max(t.maxY,i.maxY)}),i.width=i.maxX-i.minX,i.height=i.maxY-i.minY,i},t.prototype.getStatesStyle=function(){if(!this.statesStyle){var e=this.shapeType,t=this.geometry,i=this.shapeFactory,n=t.stateOption,r=i.defaultShapeType,o=i.theme[e]||i.theme[r];this.statesStyle=(0,em.b$)({},o,n)}return this.statesStyle},t.prototype.getStateStyle=function(e,t){var i=this.getStatesStyle(),n=(0,em.U2)(i,[e,"style"],{}),r=n[t]||n;return(0,em.mf)(r)?r(this):r},t.prototype.getAnimateCfg=function(e){var t=this,i=this.animate;if(i){var n=i[e];return n?(0,ef.pi)((0,ef.pi)({},n),{callback:function(){var e;(0,em.mf)(n.callback)&&n.callback(),null===(e=t.geometry)||void 0===e||e.emit(k.AFTER_DRAW_ANIMATE)}}):n}return null},t.prototype.drawShape=function(e,t){void 0===t&&(t=!1);var i,n=this.shapeFactory,r=this.container,o=this.shapeType;if(this.shape=n.drawShape(o,e,r),this.shape){this.setShapeInfo(this.shape,e);var s=this.shape.cfg.name;s?(0,em.HD)(s)&&(this.shape.cfg.name=["element",s]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var a=t?"enter":"appear",l=this.getAnimateCfg(a);l&&(null===(i=this.geometry)||void 0===i||i.emit(k.BEFORE_DRAW_ANIMATE),oP(this.shape,l,{coordinate:n.coordinate,toAttrs:(0,ef.pi)({},this.shape.attr())}))}},t.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var e=this.container.getGroupBase();this.offscreenGroup=new e({})}return this.offscreenGroup},t.prototype.setShapeInfo=function(e,t){var i=this;e.cfg.origin=t,e.cfg.element=this,e.isGroup()&&e.get("children").forEach(function(e){i.setShapeInfo(e,t)})},t.prototype.syncShapeStyle=function(e,t,i,n,r){var o,s=this;if(void 0===i&&(i=[]),void 0===r&&(r=0),e&&t){var a=e.get("clipShape"),l=t.get("clipShape");if(this.syncShapeStyle(a,l,i,n),e.isGroup())for(var h=e.get("children"),u=t.get("children"),d=0;d=s[h]?1:0,c=u>Math.PI?1:0,g=i.convert(a),p=ri(i,g);if(p>=.5){if(u===2*Math.PI){var f={x:(a.x+s.x)/2,y:(a.y+s.y)/2},m=i.convert(f);l.push(["A",p,p,0,c,d,m.x,m.y]),l.push(["A",p,p,0,c,d,g.x,g.y])}else l.push(["A",p,p,0,c,d,g.x,g.y])}return l}(i,e,a)):n.push(rR(e,a));break;case"a":n.push(rL(e,a));break;default:n.push(e)}}),r=n,(0,em.S6)(r,function(e,t){if("a"===e[0].toLowerCase()){var i=r[t-1],n=r[t+1];n&&"a"===n[0].toLowerCase()?i&&"l"===i[0].toLowerCase()&&(i[0]="M"):i&&"a"===i[0].toLowerCase()&&n&&"l"===n[0].toLowerCase()&&(n[0]="M")}}),l=n):(o=l,s=[],(0,em.S6)(o,function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":s.push(rR(e,a));break;case"a":s.push(rL(e,a));break;default:s.push(e)}}),l=s),l},parsePoint:function(e){return this.coordinate.convert(e)},parsePoints:function(e){var t=this.coordinate;return e.map(function(e){return t.convert(e)})},draw:function(e,t){}},oY={};function oK(e,t){var i=(0,em.jC)(e),n=(0,ef.pi)((0,ef.pi)((0,ef.pi)({},oG),t),{geometryType:e});return oY[i]=n,n}function o$(e,t,i){var n=oY[(0,em.jC)(e)],r=(0,ef.pi)((0,ef.pi)({},oz),i);return n[t]=r,r}function oX(e){return oY[(0,em.jC)(e)]}function oj(e,t){return(0,em.G)(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],function(i){return!(0,em.Xy)(e[i],t[i])})}function oq(e){return(0,em.kJ)(e)?e:e.split("*")}function oZ(e,t){for(var i=[],n=[],r=[],o=new Map,s=0;s=0?t:i<=0?i:0},t.prototype.createAttrOption=function(e,t,i){if((0,em.UM)(t)||(0,em.Kn)(t))(0,em.Kn)(t)&&(0,em.Xy)(Object.keys(t),["values"])?(0,em.t8)(this.attributeOption,e,{fields:t.values}):(0,em.t8)(this.attributeOption,e,t);else{var n={};(0,em.hj)(t)?n.values=[t]:n.fields=oq(t),i&&((0,em.mf)(i)?n.callback=i:n.values=i),(0,em.t8)(this.attributeOption,e,n)}},t.prototype.initAttributes=function(){var e=this,t=this.attributes,i=this.attributeOption,n=this.theme,r=this.shapeType;this.groupScales=[];var o={},s=function(s){if(i.hasOwnProperty(s)){var a=i[s];if(!a)return{value:void 0};var l=(0,ef.pi)({},a),h=l.callback,u=l.values,d=l.fields,c=(void 0===d?[]:d).map(function(t){var i=e.scales[t];return i.isCategory&&!o[t]&&eE.includes(s)&&(e.groupScales.push(i),o[t]=!0),i});l.scales=c,"position"!==s&&1===c.length&&"identity"===c[0].type?l.values=c[0].values:h||u||("size"===s?l.values=n.sizes:"shape"===s?l.values=n.shapes[r]||[]:"color"===s&&(c.length?l.values=c[0].values.length<=10?n.colors10:n.colors20:l.values=n.colors10));var g=t3(s);t[s]=new g(l)}};for(var a in i){var l=s(a);if("object"==typeof l)return l.value}},t.prototype.processData=function(e){this.hasSorted=!1;for(var t=this.getAttribute("position").scales.filter(function(e){return e.isCategory}),i=this.groupData(e),n=[],r=0,o=i.length;ro&&(o=h)}var u=this.scaleDefs,d={};re.max&&!(0,em.U2)(u,[n,"max"])&&(d.max=o),e.change(d)},t.prototype.beforeMapping=function(e){if(this.sortable&&this.sort(e),this.generatePoints)for(var t=0,i=e.length;t1)for(var u=0;u=t.getCount()&&!e.destroyed&&t.add(e)})})(d,h[t],{data:o,origin:s,animateCfg:u,coordinate:a}),n.shapesMap[t]=d}else{r.add(e);var c=(0,em.U2)(e.get("animateCfg"),i?"enter":"appear");c&&oP(e,c,{toAttrs:(0,ef.pi)({},e.attr()),coordinate:e.get("coordinate")})}delete l[t]}}),(0,em.S6)(l,function(e){var t=(0,em.U2)(e.get("animateCfg"),"leave");t?oP(e,t,{toAttrs:null,coordinate:e.get("coordinate")}):e.remove(!0)}),this.lastShapesMap=h,o.destroy()},e.prototype.clear=function(){this.container.clear(),this.shapesMap={},this.lastShapesMap={}},e.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null,this.lastShapesMap=null},e.prototype.renderLabel=function(e,t){var i,n=e.id,r=e.elementId,o=e.data,s=e.mappingData,a=e.coordinate,l=e.animate,h=e.content,u={id:n,elementId:r,data:o,origin:(0,ef.pi)((0,ef.pi)({},s),{data:s[e_]}),coordinate:a},d=t.addGroup((0,ef.pi)({name:"label",animateCfg:!1!==this.animate&&null!==l&&!1!==l&&(0,em.b$)({},this.animate,l)},u));if(h.isGroup&&h.isGroup()||h.isShape&&h.isShape()){var c=h.getCanvasBBox(),g=c.width,p=c.height,f=(0,em.U2)(e,"textAlign","left"),m=e.x,v=e.y-p/2;"center"===f?m-=g/2:("right"===f||"end"===f)&&(m-=g),o0(h,m,v),i=h,d.add(h)}else{var E=(0,em.U2)(e,["style","fill"]);i=d.addShape("text",(0,ef.pi)({attrs:(0,ef.pi)((0,ef.pi)({x:e.x,y:e.y,textAlign:e.textAlign,textBaseline:(0,em.U2)(e,"textBaseline","middle"),text:e.content},e.style),{fill:(0,em.Ft)(E)?e.color:E})},u))}e.rotate&&o1(i,e.rotate),this.shapesMap[n]=d},e.prototype.doLayout=function(e,t){var i=this;if(this.layout){var n=(0,em.kJ)(this.layout)?this.layout:[this.layout];(0,em.S6)(n,function(n){var r=oH[(0,em.U2)(n,"type","").toLowerCase()];if(r){var o=[],s=[];(0,em.S6)(i.shapesMap,function(e,i){o.push(e),s.push(t[e.get("elementId")])}),r(e,o,s,i.region,n.cfg)}})}},e.prototype.renderLabelLine=function(e){var t=this;(0,em.S6)(e,function(e){var i=(0,em.U2)(e,"coordinate");if(e&&i){var n=i.getCenter(),r=i.getRadius();if(e.labelLine){var o=(0,em.U2)(e,"labelLine",{}),s=e.id,a=o.path;if(!a){var l=n2(n.x,n.y,r,e.angle);a=[["M",l.x,l.y],["L",e.x,e.y]]}var h=t.shapesMap[s];h.destroyed||h.addShape("path",{capture:!1,attrs:(0,ef.pi)({path:a,stroke:e.color?e.color:(0,em.U2)(e,["style","fill"],"#000"),fill:null},o.style),id:s,origin:e.mappingData,data:e.data,coordinate:e.coordinate})}}})},e.prototype.renderLabelBackground=function(e){var t=this;(0,em.S6)(e,function(e){var i=(0,em.U2)(e,"coordinate"),n=(0,em.U2)(e,"background");if(n&&i){var r=e.id,o=t.shapesMap[r];if(!o.destroyed){var s=o.getChildren()[0];if(s){var a=o4(o,e,n.padding),l=a.rotation,h=(0,ef._T)(a,["rotation"]),u=o.addShape("rect",{attrs:(0,ef.pi)((0,ef.pi)({},h),n.style||{}),id:r,origin:e.mappingData,data:e.data,coordinate:e.coordinate});if(u.setZIndex(-1),l){var d=s.getMatrix();u.setMatrix(d)}}}}})},e.prototype.createOffscreenGroup=function(){return new(this.container.getGroupBase())({})},e.prototype.adjustLabel=function(e){var t=this;(0,em.S6)(e,function(e){if(e){var i=e.id,n=t.shapesMap[i];if(!n.destroyed){var r=n.findAll(function(e){return"path"!==e.get("type")});(0,em.S6)(r,function(t){t&&(e.offsetX&&t.attr("x",t.attr("x")+e.offsetX),e.offsetY&&t.attr("y",t.attr("y")+e.offsetY))})}}})},e}();function o6(e){var t=0;return(0,em.S6)(e,function(e){t+=e}),t/e.length}var o3=function(){function e(e){this.geometry=e}return e.prototype.getLabelItems=function(e){var t=this,i=[],n=this.getLabelCfgs(e);return(0,em.S6)(e,function(e,r){var o=n[r];if(!o||(0,em.UM)(e.x)||(0,em.UM)(e.y)){i.push(null);return}var s=(0,em.kJ)(o.content)?o.content:[o.content];o.content=s;var a=s.length;(0,em.S6)(s,function(n,r){if((0,em.UM)(n)||""===n){i.push(null);return}var s=(0,ef.pi)((0,ef.pi)({},o),t.getLabelPoint(o,e,r));s.textAlign||(s.textAlign=t.getLabelAlign(s,r,a)),s.offset<=0&&(s.labelLine=null),i.push(s)})}),i},e.prototype.render=function(e,t){void 0===t&&(t=!1);var i=this.getLabelItems(e),n=this.getLabelsRenderer(),r=this.getGeometryShapes();n.render(i,r,t)},e.prototype.clear=function(){var e=this.labelsRenderer;e&&e.clear()},e.prototype.destroy=function(){var e=this.labelsRenderer;e&&e.destroy(),this.labelsRenderer=null},e.prototype.getCoordinate=function(){return this.geometry.coordinate},e.prototype.getDefaultLabelCfg=function(e,t){var i=this.geometry,n=i.type,r=i.theme;return"polygon"===n||"interval"===n&&"middle"===t||e<0&&!["line","point","path"].includes(n)?(0,em.U2)(r,"innerLabels",{}):(0,em.U2)(r,"labels",{})},e.prototype.getThemedLabelCfg=function(e){var t=this.geometry,i=this.getDefaultLabelCfg(),n=t.type,r=t.theme;return"polygon"===n||e.offset<0&&!["line","point","path"].includes(n)?(0,em.b$)({},i,r.innerLabels,e):(0,em.b$)({},i,r.labels,e)},e.prototype.setLabelPosition=function(e,t,i,n){},e.prototype.getLabelOffset=function(e){var t=this.getCoordinate(),i=this.getOffsetVector(e);return t.isTransposed?i[0]:i[1]},e.prototype.getLabelOffsetPoint=function(e,t,i){var n=e.offset,r=this.getCoordinate().isTransposed,o=r?"x":"y",s=r?1:-1,a={x:0,y:0};return t>0||1===i?a[o]=n*s:a[o]=-(n*s*1),a},e.prototype.getLabelPoint=function(e,t,i){var n=this.getCoordinate(),r=e.content.length;function o(t,i,n){void 0===n&&(n=!1);var r=t;return(0,em.kJ)(r)&&(r=1===e.content.length?n?o6(r):r.length<=2?r[t.length-1]:o6(r):r[i]),r}var s={content:e.content[i],x:0,y:0,start:{x:0,y:0},color:"#fff"},a=(0,em.kJ)(t.shape)?t.shape[0]:t.shape,l="funnel"===a||"pyramid"===a;if("polygon"===this.geometry.type){var h=function(e,t){if((0,em.hj)(e)&&(0,em.hj)(t))return[e,t];if(n0(e)||n0(t))return[n1(e),n1(t)];for(var i,n,r=-1,o=0,s=0,a=e.length-1,l=0;++r1&&0===t&&("right"===n?n="left":"left"===n&&(n="right"))}return n},e.prototype.getLabelId=function(e){var t=this.geometry,i=t.type,n=t.getXScale(),r=t.getYScale(),o=e[e_],s=t.getElementId(e);return"line"===i||"area"===i?s+=" "+o[n.field]:"path"===i&&(s+=" "+o[n.field]+"-"+o[r.field]),s},e.prototype.getLabelsRenderer=function(){var e=this.geometry,t=e.labelsContainer,i=e.labelOption,n=e.canvasRegion,r=e.animateOption,o=this.geometry.coordinate,s=this.labelsRenderer;return s||(s=new o5({container:t,layout:(0,em.U2)(i,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=s),s.region=n,s.animate=!!r&&ok("label",o),s},e.prototype.getLabelCfgs=function(e){var t=this,i=this.geometry,n=i.labelOption,r=i.scales,o=i.coordinate,s=n.fields,a=n.callback,l=n.cfg,h=s.map(function(e){return r[e]}),u=[];return(0,em.S6)(e,function(e,i){var n,r=e[e_],d=t.getLabelText(r,h);if(a){var c=s.map(function(e){return r[e]});if(n=a.apply(void 0,c),(0,em.UM)(n)){u.push(null);return}}var g=(0,ef.pi)((0,ef.pi)({id:t.getLabelId(e),elementId:t.geometry.getElementId(e),data:r,mappingData:e,coordinate:o},l),n);(0,em.mf)(g.position)&&(g.position=g.position(r,e,i));var p=t.getLabelOffset(g.offset||0),f=t.getDefaultLabelCfg(p,g.position);(g=(0,em.b$)({},f,g)).offset=t.getLabelOffset(g.offset||0);var m=g.content;(0,em.mf)(m)?g.content=m(r,e,i):(0,em.o8)(m)&&(g.content=d[0]),u.push(g)}),u},e.prototype.getLabelText=function(e,t){var i=[];return(0,em.S6)(t,function(t){var n=e[t.field];n=(0,em.kJ)(n)?n.map(function(e){return t.getText(e)}):t.getText(n),(0,em.UM)(n)||""===n?i.push(null):i.push(n)}),i},e.prototype.getOffsetVector=function(e){void 0===e&&(e=0);var t=this.getCoordinate(),i=0;return(0,em.hj)(e)&&(i=e),t.isTransposed?t.applyMatrix(i,0):t.applyMatrix(0,i)},e.prototype.getGeometryShapes=function(){var e=this.geometry,t={};return(0,em.S6)(e.elementsMap,function(e,i){t[i]=e.shape}),(0,em.S6)(e.getOffscreenGroup().getChildren(),function(i){t[e.getElementId(i.get("origin").mappingData)]=i}),t},e}();function o9(e,t,i){if(!e)return i;if(e.callback&&e.callback.length>1){var n,r=Array(e.callback.length-1).fill("");n=e.mapping.apply(e,(0,ef.ev)([t],r,!1)).join("")}else n=e.mapping(t).join("");return n||i}var o7={hexagon:function(e,t,i){var n=i/2*Math.sqrt(3);return[["M",e,t-i],["L",e+n,t-i/2],["L",e+n,t+i/2],["L",e,t+i],["L",e-n,t+i/2],["L",e-n,t-i/2],["Z"]]},bowtie:function(e,t,i){var n=i-1.5;return[["M",e-i,t-n],["L",e+i,t+n],["L",e+i,t-n],["L",e-i,t+n],["Z"]]},cross:function(e,t,i){return[["M",e-i,t-i],["L",e+i,t+i],["M",e+i,t-i],["L",e-i,t+i]]},tick:function(e,t,i){return[["M",e-i/2,t-i],["L",e+i/2,t-i],["M",e,t-i],["L",e,t+i],["M",e-i/2,t+i],["L",e+i/2,t+i]]},plus:function(e,t,i){return[["M",e-i,t],["L",e+i,t],["M",e,t-i],["L",e,t+i]]},hyphen:function(e,t,i){return[["M",e-i,t],["L",e+i,t]]},line:function(e,t,i){return[["M",e,t-i],["L",e,t+i]]}},o8=["line","cross","tick","plus","hyphen"];function se(e){var t=e.symbol;(0,em.HD)(t)&&o7[t]&&(e.symbol=o7[t])}function st(e){return e.startsWith(x.LEFT)||e.startsWith(x.RIGHT)?"vertical":"horizontal"}function si(e,t,i,n,r){var o=i.getScale(i.type);if(o.isCategory){var s=o.field,a=t.getAttribute("color"),l=t.getAttribute("shape"),h=e.getTheme().defaultColor,u=t.coordinate.isPolar;return o.getTicks().map(function(i,d){var c,g,p,f=i.text,m=i.value,v=o.invert(m),E=0===e.filterFieldData(s,[((p={})[s]=v,p)]).length;(0,em.S6)(e.views,function(e){var t;e.filterFieldData(s,[((t={})[s]=v,t)]).length||(E=!0)});var _=o9(a,v,h),C=o9(l,v,"point"),S=t.getShapeMarker(C,{color:_,isInPolar:u}),y=r;return(0,em.mf)(y)&&(y=y(f,d,(0,ef.pi)({name:f,value:v},(0,em.b$)({},n,S)))),!function(e,t){var i=e.symbol;if((0,em.HD)(i)&&-1!==o8.indexOf(i)){var n=(0,em.U2)(e,"style",{}),r=(0,em.U2)(n,"lineWidth",1),o=n.stroke||n.fill||t;e.style=(0,em.b$)({},e.style,{lineWidth:r,stroke:o,fill:null})}}(S=(0,em.b$)({},n,S,n7((0,ef.pi)({},y),["style"])),_),y&&y.style&&(S.style=(c=S.style,g=y.style,(0,em.mf)(g)?g(c):(0,em.b$)({},c,g))),se(S),{id:v,name:f,value:v,marker:S,unchecked:E}})}return[]}function sn(e,t){var i=(0,em.U2)(e,["components","legend"],{});return(0,em.b$)({},(0,em.U2)(i,["common"],{}),(0,em.b$)({},(0,em.U2)(i,[t],{})))}var sr={getLegendItems:si,translate:o0,rotate:o1,zoom:function(e,t){var i=e.getBBox(),n=(i.minX+i.maxX)/2,r=(i.minY+i.maxY)/2;e.applyToMatrix([n,r,1]);var o=oQ(e.getMatrix(),[["t",-n,-r],["s",t,t],["t",n,r]]);e.setMatrix(o)},transform:oQ,getAngle:n6,getSectorPath:n4,polarToCartesian:n2,getDelegationObject:rM,getTooltipItems:oc,getMappingValue:o9},so={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},ss={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},sa=(void 0===d&&(d={}),c=d.backgroundColor,g=d.subColor,f=void 0===(p=d.paletteQualitative10)?["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"]:p,m=d.paletteQualitative20,v=d.paletteSemanticRed,E=d.paletteSemanticGreen,_=d.paletteSemanticYellow,C=d.paletteSequence,S=d.fontFamily,{backgroundColor:void 0===c?"#141414":c,brandColor:void 0===(y=d.brandColor)?f[0]:y,subColor:void 0===g?"rgba(255,255,255,0.05)":g,paletteQualitative10:f,paletteQualitative20:void 0===m?["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"]:m,paletteSemanticRed:void 0===v?"#F4664A":v,paletteSemanticGreen:void 0===E?"#30BF78":E,paletteSemanticYellow:void 0===_?"#FAAD14":_,paletteSequence:void 0===C?["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"]:C,fontFamily:void 0===S?'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"':S,axisLineBorderColor:ss[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:ss[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:ss[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:ss[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:ss[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:ss[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:ss[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:"#5B8FF9",legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:ss[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:ss[45],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:ss[45],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:ss[65],legendPageNavigatorTextFontSize:12,sliderRailFillColor:ss[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:ss[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:so[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:so[25],annotationArcBorderColor:ss[15],annotationArcBorder:1,annotationLineBorderColor:ss[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:ss[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:ss[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:ss[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:ss[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:ss[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:so[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:ss[65],overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:so[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:ss[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:"#5B8FF9",pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:so[100],pointBorderOpacity:1,pointActiveBorderColor:ss[100],pointSelectedBorder:2,pointSelectedBorderColor:ss[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:"#5B8FF9",hollowPointBorderOpacity:.95,hollowPointFillColor:so[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:ss[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:ss[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:"#5B8FF9",lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:"#5B8FF9",areaFillOpacity:.25,areaActiveFillColor:"#5B8FF9",areaActiveFillOpacity:.5,areaSelectedFillColor:"#5B8FF9",areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:"#5B8FF9",hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:ss[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:ss[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:"#5B8FF9",intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:ss[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:ss[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:"#5B8FF9",hollowIntervalBorderOpacity:1,hollowIntervalFillColor:so[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:ss[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:ss[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3});function sl(e,t,i,n){var r=e-i,o=t-n;return Math.sqrt(r*r+o*o)}function sh(e,t,i,n,r,o){return r>=e&&r<=e+i&&o>=t&&o<=t+n}function su(e,t){return!(t.minX>e.maxX||t.maxXe.maxY||t.maxY1&&(i*=Math.sqrt(g),n*=Math.sqrt(g));var p=i*i*(c*c)+n*n*(d*d),f=p?Math.sqrt((i*i*(n*n)-p)/p):1;o===s&&(f*=-1),isNaN(f)&&(f=0);var m=n?f*i*c/n:0,v=i?-(f*n)*d/i:0,E=(a+h)/2+Math.cos(r)*m-Math.sin(r)*v,_=(l+u)/2+Math.sin(r)*m+Math.cos(r)*v,C=[(d-m)/i,(c-v)/n],S=[(-1*d-m)/i,(-1*c-v)/n],y=s_([1,0],C),T=s_(C,S);return -1>=sE(C,S)&&(T=Math.PI),sE(C,S)>=1&&(T=0),0===s&&T>0&&(T-=2*Math.PI),1===s&&T<0&&(T+=2*Math.PI),{cx:E,cy:_,rx:sd(e,[h,u])?0:i,ry:sd(e,[h,u])?0:n,startAngle:y,endAngle:y+T,xRotation:r,arcFlag:o,sweepFlag:s}}var sS=Math.sin,sy=Math.cos,sT=Math.atan2,sb=Math.PI;function sA(e,t,i,n,r,o,s){var a=t.stroke,l=t.lineWidth,h=sT(n-o,i-r),u=new s0({type:"path",canvas:e.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*sy(sb/6)+","+10*sS(sb/6)+" L0,0 L"+10*sy(sb/6)+",-"+10*sS(sb/6),stroke:a,lineWidth:l}});u.translate(r,o),u.rotateAtPoint(r,o,h),e.set(s?"startArrowShape":"endArrowShape",u)}function sR(e,t,i,n,r,o,s){var a=t.startArrow,l=t.endArrow,h=t.stroke,u=t.lineWidth,d=s?a:l,c=d.d,g=d.fill,p=d.stroke,f=d.lineWidth,m=(0,ef._T)(d,["d","fill","stroke","lineWidth"]),v=sT(n-o,i-r);c&&(r-=sy(v)*c,o-=sS(v)*c);var E=new s0({type:"path",canvas:e.get("canvas"),isArrowShape:!0,attrs:(0,ef.pi)((0,ef.pi)({},m),{stroke:p||h,lineWidth:f||u,fill:g})});E.translate(r,o),E.rotateAtPoint(r,o,v),e.set(s?"startArrowShape":"endArrowShape",E)}function sL(e,t,i,n,r){var o=sT(n-t,i-e);return{dx:sy(o)*r,dy:sS(o)*r}}function sN(e,t,i,n,r,o){"object"==typeof t.startArrow?sR(e,t,i,n,r,o,!0):t.startArrow?sA(e,t,i,n,r,o,!0):e.set("startArrowShape",null)}function sI(e,t,i,n,r,o){"object"==typeof t.endArrow?sR(e,t,i,n,r,o,!1):t.endArrow?sA(e,t,i,n,r,o,!1):e.set("startArrowShape",null)}var sw={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function sO(e,t){var i=t.attr();for(var n in i){var r=i[n],o=sw[n]?sw[n]:n;"matrix"===o&&r?e.transform(r[0],r[1],r[3],r[4],r[6],r[7]):"lineDash"===o&&e.setLineDash?(0,em.kJ)(r)&&e.setLineDash(r):("strokeStyle"===o||"fillStyle"===o?r=function(e,t,i){var n,r,o,s,a,l,h,u,d,c,g,p=t.getBBox();if(isNaN(p.x)||isNaN(p.y)||isNaN(p.width)||isNaN(p.height))return i;if((0,em.HD)(i)){if("("===i[1]||"("===i[2]){if("l"===i[0])return s=parseFloat((o=sc.exec(i))[1])%360*(Math.PI/180),a=o[2],l=t.getBBox(),s>=0&&s<.5*Math.PI?(n={x:l.minX,y:l.minY},r={x:l.maxX,y:l.maxY}):.5*Math.PI<=s&&sC?_:C,R=_>C?1:_/C,L=_>C?C/_:1;t.translate(v,E),t.rotate(T),t.scale(R,L),t.arc(0,0,A,S,y,1-b),t.scale(1/R,1/L),t.rotate(-T),t.translate(-v,-E)}break;case"Z":t.closePath()}if("Z"===c)a=l;else{var N=d.length;a=[d[N-2],d[N-1]]}}}}function sk(e,t){var i=e.get("canvas");i&&("remove"===t&&(e._cacheCanvasBBox=e.get("cacheCanvasBBox")),e.get("hasChanged")||(e.set("hasChanged",!0),!(e.cfg.parent&&e.cfg.parent.get("hasChanged"))&&(i.refreshElement(e,t,i),i.get("autoDraw")&&i.draw())))}var sP=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.onCanvasChange=function(e){sk(this,e)},t.prototype.getShapeBase=function(){return eu},t.prototype.getGroupBase=function(){return t},t.prototype._applyClip=function(e,t){t&&(e.save(),sO(e,t),t.createPath(e),e.restore(),e.clip(),t._afterDraw())},t.prototype.cacheCanvasBBox=function(){var e=this.cfg.children,t=[],i=[];(0,em.S6)(e,function(e){var n=e.cfg.cacheCanvasBBox;n&&e.cfg.isInView&&(t.push(n.minX,n.maxX),i.push(n.minY,n.maxY))});var n=null;if(t.length){var r=(0,em.VV)(t),o=(0,em.Fp)(t),s=(0,em.VV)(i),a=(0,em.Fp)(i);n={minX:r,minY:s,x:r,y:s,maxX:o,maxY:a,width:o-r,height:a-s};var l=this.cfg.canvas;if(l){var h=l.getViewRange();this.set("isInView",su(n,h))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",n)},t.prototype.draw=function(e,t){var i=this.cfg.children,n=!t||this.cfg.refresh;i.length&&n&&(e.save(),sO(e,this),this._applyClip(e,this.getClip()),sx(e,i,t),e.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},t.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},t}(eL.AbstractGroup),sF=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},t.prototype.getShapeBase=function(){return eu},t.prototype.getGroupBase=function(){return sP},t.prototype.onCanvasChange=function(e){sk(this,e)},t.prototype.calculateBBox=function(){var e=this.get("type"),t=this.getHitLineWidth(),i=(0,eL.getBBoxMethod)(e)(this),n=t/2,r=i.x-n,o=i.y-n,s=i.x+i.width+n,a=i.y+i.height+n;return{x:r,minX:r,y:o,minY:o,width:i.width+t,height:i.height+t,maxX:s,maxY:a}},t.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},t.prototype.isStroke=function(){return!!this.attrs.stroke},t.prototype._applyClip=function(e,t){t&&(e.save(),sO(e,t),t.createPath(e),e.restore(),e.clip(),t._afterDraw())},t.prototype.draw=function(e,t){var i=this.cfg.clipShape;if(t){if(!1===this.cfg.refresh){this.set("hasChanged",!1);return}if(!su(t,this.getCanvasBBox())){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}e.save(),sO(e,this),this._applyClip(e,i),this.drawPath(e),e.restore(),this._afterDraw()},t.prototype.getCanvasViewBox=function(){var e=this.cfg.canvas;return e?e.getViewRange():null},t.prototype.cacheCanvasBBox=function(){var e=this.getCanvasViewBox();if(e){var t=this.getCanvasBBox(),i=su(t,e);this.set("isInView",i),i?this.set("cacheCanvasBBox",t):this.set("cacheCanvasBBox",null)}},t.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},t.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},t.prototype.drawPath=function(e){this.createPath(e),this.strokeAndFill(e),this.afterDrawPath(e)},t.prototype.fill=function(e){e.fill()},t.prototype.stroke=function(e){e.stroke()},t.prototype.strokeAndFill=function(e){var t=this.attrs,i=t.lineWidth,n=t.opacity,r=t.strokeOpacity,o=t.fillOpacity;this.isFill()&&((0,em.UM)(o)||1===o?this.fill(e):(e.globalAlpha=o,this.fill(e),e.globalAlpha=n)),this.isStroke()&&i>0&&((0,em.UM)(r)||1===r||(e.globalAlpha=r),this.stroke(e)),this.afterDrawPath(e)},t.prototype.createPath=function(e){},t.prototype.afterDrawPath=function(e){},t.prototype.isInShape=function(e,t){var i=this.isStroke(),n=this.isFill(),r=this.getHitLineWidth();return this.isInStrokeOrPath(e,t,i,n,r)},t.prototype.isInStrokeOrPath=function(e,t,i,n,r){return!1},t.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var e=this.attrs;return e.lineWidth+e.lineAppendWidth},t}(eL.AbstractShape),sB=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,r:0})},t.prototype.isInStrokeOrPath=function(e,t,i,n,r){var o=this.attr(),s=o.x,a=o.y,l=o.r,h=r/2,u=sl(s,a,e,t);return n&&i?u<=l+h:n?u<=l:!!i&&u>=l-h&&u<=l+h},t.prototype.createPath=function(e){var t=this.attr(),i=t.x,n=t.y,r=t.r;e.beginPath(),e.arc(i,n,r,0,2*Math.PI,!1),e.closePath()},t}(sF),sU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,rx:0,ry:0})},t.prototype.isInStrokeOrPath=function(e,t,i,n,r){var o,s,a,l,h,u,d=this.attr(),c=r/2,g=d.x,p=d.y,f=d.rx,m=d.ry,v=(e-g)*(e-g),E=(t-p)*(t-p);return n&&i?1>=v/((o=f+c)*o)+E/((s=m+c)*s):n?1>=v/(f*f)+E/(m*m):!!i&&v/((a=f-c)*a)+E/((l=m-c)*l)>=1&&1>=v/((h=f+c)*h)+E/((u=m+c)*u)},t.prototype.createPath=function(e){var t=this.attr(),i=t.x,n=t.y,r=t.rx,o=t.ry;if(e.beginPath(),e.ellipse)e.ellipse(i,n,r,o,0,0,2*Math.PI,!1);else{var s=r>o?r:o,a=r>o?1:r/o,l=r>o?o/r:1;e.save(),e.translate(i,n),e.scale(a,l),e.arc(0,0,s,0,2*Math.PI),e.restore(),e.closePath()}},t}(sF);function sH(e){return e instanceof HTMLElement&&(0,em.HD)(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase()}var sV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,width:0,height:0})},t.prototype.initAttrs=function(e){this._setImage(e.img)},t.prototype.isStroke=function(){return!1},t.prototype.isOnlyHitBox=function(){return!0},t.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var e=this.get("canvas");e?e.draw():this.createPath(this.get("context"))}},t.prototype._setImage=function(e){var t=this,i=this.attrs;if((0,em.HD)(e)){var n=new Image;n.onload=function(){if(t.destroyed)return!1;t.attr("img",n),t.set("loading",!1),t._afterLoading();var e=t.get("callback");e&&e.call(t)},n.crossOrigin="Anonymous",n.src=e,this.set("loading",!0)}else e instanceof Image?(i.width||(i.width=e.width),i.height||(i.height=e.height)):sH(e)&&(i.width||(i.width=Number(e.getAttribute("width"))),i.height||(i.height,e.getAttribute("height")))},t.prototype.onAttrChange=function(t,i,n){e.prototype.onAttrChange.call(this,t,i,n),"img"===t&&this._setImage(i)},t.prototype.createPath=function(e){if(this.get("loading")){this.set("toDraw",!0),this.set("context",e);return}var t=this.attr(),i=t.x,n=t.y,r=t.width,o=t.height,s=t.sx,a=t.sy,l=t.swidth,h=t.sheight,u=t.img;(u instanceof Image||sH(u))&&((0,em.UM)(s)||(0,em.UM)(a)||(0,em.UM)(l)||(0,em.UM)(h)?e.drawImage(u,i,n,r,o):e.drawImage(u,s,a,l,h,i,n,r,o))},t}(sF),sW=i(32793);function sG(e,t,i,n,r,o,s){var a=Math.min(e,i),l=Math.max(e,i),h=Math.min(t,n),u=Math.max(t,n),d=r/2;return o>=a-d&&o<=l+d&&s>=h-d&&s<=u+d&&sW.x1.pointToLine(e,t,i,n,o,s)<=r/2}var sz=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(e){this.setArrow()},t.prototype.onAttrChange=function(t,i,n){e.prototype.onAttrChange.call(this,t,i,n),this.setArrow()},t.prototype.setArrow=function(){var e=this.attr(),t=e.x1,i=e.y1,n=e.x2,r=e.y2,o=e.startArrow,s=e.endArrow;o&&sN(this,e,n,r,t,i),s&&sI(this,e,t,i,n,r)},t.prototype.isInStrokeOrPath=function(e,t,i,n,r){if(!i||!r)return!1;var o=this.attr();return sG(o.x1,o.y1,o.x2,o.y2,r,e,t)},t.prototype.createPath=function(e){var t=this.attr(),i=t.x1,n=t.y1,r=t.x2,o=t.y2,s=t.startArrow,a=t.endArrow,l={dx:0,dy:0},h={dx:0,dy:0};s&&s.d&&(l=sL(i,n,r,o,t.startArrow.d)),a&&a.d&&(h=sL(i,n,r,o,t.endArrow.d)),e.beginPath(),e.moveTo(i+l.dx,n+l.dy),e.lineTo(r-h.dx,o-h.dy)},t.prototype.afterDrawPath=function(e){var t=this.get("startArrowShape"),i=this.get("endArrowShape");t&&t.draw(e),i&&i.draw(e)},t.prototype.getTotalLength=function(){var e=this.attr(),t=e.x1,i=e.y1,n=e.x2,r=e.y2;return sW.x1.length(t,i,n,r)},t.prototype.getPoint=function(e){var t=this.attr(),i=t.x1,n=t.y1,r=t.x2,o=t.y2;return sW.x1.pointAt(i,n,r,o,e)},t}(sF),sY={circle:function(e,t,i){return[["M",e-i,t],["A",i,i,0,1,0,e+i,t],["A",i,i,0,1,0,e-i,t]]},square:function(e,t,i){return[["M",e-i,t-i],["L",e+i,t-i],["L",e+i,t+i],["L",e-i,t+i],["Z"]]},diamond:function(e,t,i){return[["M",e-i,t],["L",e,t-i],["L",e+i,t],["L",e,t+i],["Z"]]},triangle:function(e,t,i){var n=i*Math.sin(1/3*Math.PI);return[["M",e-i,t+n],["L",e,t-n],["L",e+i,t+n],["Z"]]},"triangle-down":function(e,t,i){var n=i*Math.sin(1/3*Math.PI);return[["M",e-i,t-n],["L",e+i,t-n],["L",e,t+n],["Z"]]}},sK=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.initAttrs=function(e){this._resetParamsCache()},t.prototype._resetParamsCache=function(){this.set("paramsCache",{})},t.prototype.onAttrChange=function(t,i,n){e.prototype.onAttrChange.call(this,t,i,n),-1!==["symbol","x","y","r","radius"].indexOf(t)&&this._resetParamsCache()},t.prototype.isOnlyHitBox=function(){return!0},t.prototype._getR=function(e){return(0,em.UM)(e.r)?e.radius:e.r},t.prototype._getPath=function(){var e,i,n=this.attr(),r=n.x,o=n.y,s=n.symbol||"circle",a=this._getR(n);if((0,em.mf)(s))i=(e=s)(r,o,a),i=(0,nV.wb)(i);else{if(!(e=t.Symbols[s]))return console.warn(s+" marker is not supported."),null;i=e(r,o,a)}return i},t.prototype.createPath=function(e){sM(this,e,{path:this._getPath()},this.get("paramsCache"))},t.Symbols=sY,t}(sF);function s$(e,t,i){var n=(0,eL.getOffScreenContext)();return e.createPath(n),n.isPointInPath(t,i)}function sX(e){return 1e-6>Math.abs(e)?0:e<0?-1:1}function sj(e,t,i){var n=!1,r=e.length;if(r<=2)return!1;for(var o=0;o0!=sX(l[1]-i)>0&&0>sX(t-(i-a[1])*(a[0]-l[0])/(a[1]-l[1])-a[0])&&(n=!n)}return n}function sq(e,t,i,n,r,o,s,a){var l=(Math.atan2(a-t,s-e)+2*Math.PI)%(2*Math.PI);if(lr)return!1;var h={x:e+i*Math.cos(l),y:t+i*Math.sin(l)};return sl(h.x,h.y,s,a)<=o/2}var sZ=it.vs,sJ=(0,ef.pi)({hasArc:function(e){for(var t=!1,i=e.length,n=0;n0&&n.push(r),{polygons:i,polylines:n}},isPointInStroke:function(e,t,i,n,r){for(var o=!1,s=t/2,a=0;av?m:v;t8(S,S,sZ(null,[["t",-p,-f],["r",-C],["s",1/(m>v?1:m/v),1/(m>v?v/m:1)]])),o=sq(0,0,y,E,_,t,S[0],S[1])}if(o)break}}return o}},eL.PathUtil);function sQ(e,t,i){for(var n=!1,r=0;r=n[0]&&e<=n[1]&&(t=(e-n[0])/(n[1]-n[0]),i=r)});var o=r[i];if((0,em.UM)(o)||(0,em.UM)(i))return null;var s=o.length,a=r[i+1];return sW.Ll.pointAt(o[s-2],o[s-1],a[1],a[2],a[3],a[4],a[5],a[6],t)},t.prototype._calculateCurve=function(){var e=this.attr().path;this.set("curve",sJ.pathToCurve(e))},t.prototype._setTcache=function(){var e,t,i,n=0,r=0,o=[],s=this.get("curve");if(s){if((0,em.S6)(s,function(e,r){t=s[r+1],i=e.length,t&&(n+=sW.Ll.length(e[i-2],e[i-1],t[1],t[2],t[3],t[4],t[5],t[6])||0)}),this.set("totalLength",n),0===n){this.set("tCache",[]);return}(0,em.S6)(s,function(a,l){t=s[l+1],i=a.length,t&&((e=[])[0]=r/n,r+=sW.Ll.length(a[i-2],a[i-1],t[1],t[2],t[3],t[4],t[5],t[6])||0,e[1]=r/n,o.push(e))}),this.set("tCache",o)}},t.prototype.getStartTangent=function(){var e,t=this.getSegments();if(t.length>1){var i=t[0].currentPoint,n=t[1].currentPoint,r=t[1].startTangent;e=[],r?(e.push([i[0]-r[0],i[1]-r[1]]),e.push([i[0],i[1]])):(e.push([n[0],n[1]]),e.push([i[0],i[1]]))}return e},t.prototype.getEndTangent=function(){var e,t=this.getSegments(),i=t.length;if(i>1){var n=t[i-2].currentPoint,r=t[i-1].currentPoint,o=t[i-1].endTangent;e=[],o?(e.push([r[0]-o[0],r[1]-o[1]]),e.push([r[0],r[1]])):(e.push([n[0],n[1]]),e.push([r[0],r[1]]))}return e},t}(sF);function s1(e,t,i,n,r){var o=e.length;if(o<2)return!1;for(var s=0;s=n[0]&&e<=n[1]&&(t=(e-n[0])/(n[1]-n[0]),i=r)}),sW.x1.pointAt(n[i][0],n[i][1],n[i+1][0],n[i+1][1],t)},t.prototype._setTcache=function(){var e,t=this.attr().points;if(t&&0!==t.length){var i=this.getTotalLength();if(!(i<=0)){var n=0,r=[];(0,em.S6)(t,function(o,s){t[s+1]&&((e=[])[0]=n/i,n+=sW.x1.length(o[0],o[1],t[s+1][0],t[s+1][1]),e[1]=n/i,r.push(e))}),this.set("tCache",r)}}},t.prototype.getStartTangent=function(){var e=this.attr().points,t=[];return t.push([e[1][0],e[1][1]]),t.push([e[0][0],e[0][1]]),t},t.prototype.getEndTangent=function(){var e=this.attr().points,t=e.length-1,i=[];return i.push([e[t-1][0],e[t-1][1]]),i.push([e[t][0],e[t][1]]),i},t}(sF),s5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,width:0,height:0,radius:0})},t.prototype.isInStrokeOrPath=function(e,t,i,n,r){var o,s=this.attr(),a=s.x,l=s.y,h=s.width,u=s.height,d=s.radius;if(d){var c=!1;return i&&(c=sG(a+d,l,a+h-d,l,r,e,t)||sG(a+h,l+d,a+h,l+u-d,r,e,t)||sG(a+h-d,l+u,a+d,l+u,r,e,t)||sG(a,l+u-d,a,l+d,r,e,t)||sq(a+h-d,l+d,d,1.5*Math.PI,2*Math.PI,r,e,t)||sq(a+h-d,l+u-d,d,0,.5*Math.PI,r,e,t)||sq(a+d,l+u-d,d,.5*Math.PI,Math.PI,r,e,t)||sq(a+d,l+d,d,Math.PI,1.5*Math.PI,r,e,t)),!c&&n&&(c=s$(this,e,t)),c}var g=r/2;return n&&i?sh(a-g,l-g,h+g,u+g,e,t):n?sh(a,l,h,u,e,t):i?sh(a-(o=r/2),l-o,h,r,e,t)||sh(a+h-o,l-o,r,u,e,t)||sh(a+o,l+u-o,h,r,e,t)||sh(a-o,l+o,r,u,e,t):void 0},t.prototype.createPath=function(e){var t=this.attr(),i=t.x,n=t.y,r=t.width,o=t.height,s=t.radius;if(e.beginPath(),0===s)e.rect(i,n,r,o);else{var a,l,h,u,d=(a=0,l=0,h=0,u=0,(0,em.kJ)(s)?1===s.length?a=l=h=u=s[0]:2===s.length?(a=h=s[0],l=u=s[1]):3===s.length?(a=s[0],l=u=s[1],h=s[2]):(a=s[0],l=s[1],h=s[2],u=s[3]):a=l=h=u=s,[a,l,h,u]),c=d[0],g=d[1],p=d[2],f=d[3];e.moveTo(i+c,n),e.lineTo(i+r-g,n),0!==g&&e.arc(i+r-g,n+g,g,-Math.PI/2,0),e.lineTo(i+r,n+o-p),0!==p&&e.arc(i+r-p,n+o-p,p,0,Math.PI/2),e.lineTo(i+f,n+o),0!==f&&e.arc(i+f,n+o-f,f,Math.PI/2,Math.PI),e.lineTo(i,n+c),0!==c&&e.arc(i+c,n+c,c,Math.PI,1.5*Math.PI),e.closePath()}},t}(sF),s6=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},t.prototype.isOnlyHitBox=function(){return!0},t.prototype.initAttrs=function(e){this._assembleFont(),e.text&&this._setText(e.text)},t.prototype._assembleFont=function(){var e=this.attrs;e.font=(0,eL.assembleFont)(e)},t.prototype._setText=function(e){var t=null;(0,em.HD)(e)&&-1!==e.indexOf("\n")&&(t=e.split("\n")),this.set("textArr",t)},t.prototype.onAttrChange=function(t,i,n){e.prototype.onAttrChange.call(this,t,i,n),t.startsWith("font")&&this._assembleFont(),"text"===t&&this._setText(i)},t.prototype._getSpaceingY=function(){var e=this.attrs,t=e.lineHeight,i=1*e.fontSize;return t?t-i:.14*i},t.prototype._drawTextArr=function(e,t,i){var n,r=this.attrs,o=r.textBaseline,s=r.x,a=r.y,l=1*r.fontSize,h=this._getSpaceingY(),u=(0,eL.getTextHeight)(r.text,r.fontSize,r.lineHeight);(0,em.S6)(t,function(t,r){n=a+r*(h+l)-u+l,"middle"===o&&(n+=u-l-(u-l)/2),"top"===o&&(n+=u-l),(0,em.UM)(t)||(i?e.fillText(t,s,n):e.strokeText(t,s,n))})},t.prototype._drawText=function(e,t){var i=this.attr(),n=i.x,r=i.y,o=this.get("textArr");if(o)this._drawTextArr(e,o,t);else{var s=i.text;(0,em.UM)(s)||(t?e.fillText(s,n,r):e.strokeText(s,n,r))}},t.prototype.strokeAndFill=function(e){var t=this.attrs,i=t.lineWidth,n=t.opacity,r=t.strokeOpacity,o=t.fillOpacity;this.isStroke()&&i>0&&((0,em.UM)(r)||1===r||(e.globalAlpha=n),this.stroke(e)),this.isFill()&&((0,em.UM)(o)||1===o?this.fill(e):(e.globalAlpha=o,this.fill(e),e.globalAlpha=n)),this.afterDrawPath(e)},t.prototype.fill=function(e){this._drawText(e,!0)},t.prototype.stroke=function(e){this._drawText(e,!1)},t}(sF);function s3(e,t,i){var n=e.getTotalMatrix();if(n){var r=function(e,t){if(t){var i=(0,eL.invert)(t);return(0,eL.multiplyVec2)(i,e)}return e}([t,i,1],n);return[r[0],r[1]]}return[t,i]}function s9(e,t,i){if(e.isCanvas&&e.isCanvas())return!0;if(!(0,eL.isAllowCapture)(e)||!1===e.cfg.isInView)return!1;if(e.cfg.clipShape){var n=s3(e,t,i),r=n[0],o=n[1];if(e.isClipped(r,o))return!1}var s=e.cfg.cacheCanvasBBox||e.getCanvasBBox();return t>=s.minX&&t<=s.maxX&&i>=s.minY&&i<=s.maxY}var s7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.renderer="canvas",t.autoDraw=!0,t.localRefresh=!0,t.refreshElements=[],t.clipView=!0,t.quickHit=!1,t},t.prototype.onCanvasChange=function(e){("attr"===e||"sort"===e||"changeSize"===e)&&(this.set("refreshElements",[this]),this.draw())},t.prototype.getShapeBase=function(){return eu},t.prototype.getGroupBase=function(){return sP},t.prototype.getPixelRatio=function(){var e=this.get("pixelRatio")||(window?window.devicePixelRatio:1);return e>=1?Math.ceil(e):1},t.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},t.prototype.createDom=function(){var e=document.createElement("canvas"),t=e.getContext("2d");return this.set("context",t),e},t.prototype.setDOMSize=function(t,i){e.prototype.setDOMSize.call(this,t,i);var n=this.get("context"),r=this.get("el"),o=this.getPixelRatio();r.width=o*t,r.height=o*i,o>1&&n.scale(o,o)},t.prototype.clear=function(){e.prototype.clear.call(this),this._clearFrame();var t=this.get("context"),i=this.get("el");t.clearRect(0,0,i.width,i.height)},t.prototype.getShape=function(t,i){return this.get("quickHit")?function e(t,i,n){if(!s9(t,i,n))return null;for(var r=null,o=t.getChildren(),s=o.length,a=s-1;a>=0;a--){var l=o[a];if(l.isGroup())r=e(l,i,n);else if(s9(l,i,n)){var h=s3(l,i,n),u=h[0],d=h[1];l.isInShape(u,d)&&(r=l)}if(r)break}return r}(this,t,i):e.prototype.getShape.call(this,t,i,null)},t.prototype._getRefreshRegion=function(){var e,t,i=this.get("refreshElements"),n=this.getViewRange();return i.length&&i[0]===this?t=n:(t=function(e){if(!e.length)return null;var t=[],i=[],n=[],r=[];return(0,em.S6)(e,function(e){var o=function(e){var t;if(e.destroyed)t=e._cacheCanvasBBox;else{var i=e.get("cacheCanvasBBox"),n=i&&!!(i.width&&i.height),r=e.getCanvasBBox(),o=r&&!!(r.width&&r.height);n&&o?t=i&&r?{minX:Math.min(i.minX,r.minX),minY:Math.min(i.minY,r.minY),maxX:Math.max(i.maxX,r.maxX),maxY:Math.max(i.maxY,r.maxY)}:i||r:n?t=i:o&&(t=r)}return t}(e);o&&(t.push(o.minX),i.push(o.minY),n.push(o.maxX),r.push(o.maxY))}),{minX:(0,em.VV)(t),minY:(0,em.VV)(i),maxX:(0,em.Fp)(n),maxY:(0,em.Fp)(r)}}(i))&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView"))&&(t=(e=t)&&n&&su(e,n)?{minX:Math.max(e.minX,n.minX),minY:Math.max(e.minY,n.minY),maxX:Math.min(e.maxX,n.maxX),maxY:Math.min(e.maxY,n.maxY)}:null),t},t.prototype.refreshElement=function(e){this.get("refreshElements").push(e)},t.prototype._clearFrame=function(){var e=this.get("drawFrame");e&&((0,em.VS)(e),this.set("drawFrame",null),this.set("refreshElements",[]))},t.prototype.draw=function(){var e=this.get("drawFrame");this.get("autoDraw")&&e||this._startDraw()},t.prototype._drawAll=function(){var e=this.get("context"),t=this.get("el"),i=this.getChildren();e.clearRect(0,0,t.width,t.height),sO(e,this),sx(e,i),this.set("refreshElements",[])},t.prototype._drawRegion=function(){var e,t,i=this.get("context"),n=this.get("refreshElements"),r=this.getChildren(),o=this._getRefreshRegion();o?(i.clearRect(o.minX,o.minY,o.maxX-o.minX,o.maxY-o.minY),i.save(),i.beginPath(),i.rect(o.minX,o.minY,o.maxX-o.minX,o.maxY-o.minY),i.clip(),sO(i,this),e=this,t=e.get("refreshElements"),(0,em.S6)(t,function(t){if(t!==e)for(var i=t.cfg.parent;i&&i!==e&&!i.cfg.refresh;)i.cfg.refresh=!0,i=i.cfg.parent}),t[0]===e?sD(r,o):function e(t,i){for(var n=0;nt)i.insertBefore(e,r);else if(o0&&(t?"stroke"in i?this._setColor(e,"stroke",o):"strokeStyle"in i&&this._setColor(e,"stroke",s):this._setColor(e,"stroke",o||s),l&&u.setAttribute(at.strokeOpacity,l),h&&u.setAttribute(at.lineWidth,h))},t.prototype._setColor=function(e,t,i){var n=this.get("el");if(!i){n.setAttribute(at[t],"none");return}if(i=i.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(i)){var r=e.find("gradient",i);r||(r=e.addGradient(i)),n.setAttribute(at[t],"url(#"+r+")")}else if(/^[p,P]{1}[\s]*\(/.test(i)){var r=e.find("pattern",i);r||(r=e.addPattern(i)),n.setAttribute(at[t],"url(#"+r+")")}else n.setAttribute(at[t],i)},t.prototype.shadow=function(e,t){var i=this.attr(),n=t||i,r=n.shadowOffsetX,o=n.shadowOffsetY,s=n.shadowBlur,a=n.shadowColor;(r||o||s||a)&&function(e,t){var i=e.cfg.el,n=e.attr(),r={dx:n.shadowOffsetX,dy:n.shadowOffsetY,blur:n.shadowBlur,color:n.shadowColor};if(r.dx||r.dy||r.blur||r.color){var o=t.find("filter",r);o||(o=t.addShadow(r)),i.setAttribute("filter","url(#"+o+")")}else i.removeAttribute("filter")}(this,e)},t.prototype.transform=function(e){var t=this.attr();(e||t).matrix&&ao(this)},t.prototype.isInShape=function(e,t){return this.isPointInPath(e,t)},t.prototype.isPointInPath=function(e,t){var i=this.get("el"),n=this.get("canvas").get("el").getBoundingClientRect(),r=e+n.left,o=t+n.top,s=document.elementFromPoint(r,o);return!!(s&&s.isEqualNode(i))},t.prototype.getHitLineWidth=function(){var e=this.attrs,t=e.lineWidth,i=e.lineAppendWidth;return this.isStroke()?t+i:0},t}(eL.AbstractShape),ad=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="circle",t.canFill=!0,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,r:0})},t.prototype.createPath=function(e,t){var i=this.attr(),n=this.get("el");(0,em.S6)(t||i,function(e,t){"x"===t||"y"===t?n.setAttribute("c"+t,e):at[t]&&n.setAttribute(at[t],e)})},t}(au),ac=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dom",t.canFill=!1,t.canStroke=!1,t}return(0,ef.ZT)(t,e),t.prototype.createPath=function(e,t){var i=this.attr(),n=this.get("el");if((0,em.S6)(t||i,function(e,t){at[t]&&n.setAttribute(at[t],e)}),"function"==typeof i.html){var r=i.html.call(this,i);if(r instanceof Element||r instanceof HTMLDocument){for(var o=n.childNodes,s=o.length-1;s>=0;s--)n.removeChild(o[s]);n.appendChild(r)}else n.innerHTML=r}else n.innerHTML=i.html},t}(au),ag=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="ellipse",t.canFill=!0,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,rx:0,ry:0})},t.prototype.createPath=function(e,t){var i=this.attr(),n=this.get("el");(0,em.S6)(t||i,function(e,t){"x"===t||"y"===t?n.setAttribute("c"+t,e):at[t]&&n.setAttribute(at[t],e)})},t}(au),ap=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="image",t.canFill=!1,t.canStroke=!1,t}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,width:0,height:0})},t.prototype.createPath=function(e,t){var i=this,n=this.attr(),r=this.get("el");(0,em.S6)(t||n,function(e,t){"img"===t?i._setImage(n.img):at[t]&&r.setAttribute(at[t],e)})},t.prototype.setAttr=function(e,t){this.attrs[e]=t,"img"===e&&this._setImage(t)},t.prototype._setImage=function(e){var t=this.attr(),i=this.get("el");if((0,em.HD)(e))i.setAttribute("href",e);else if(e instanceof window.Image)t.width||(i.setAttribute("width",e.width),this.attr("width",e.width)),t.height||(i.setAttribute("height",e.height),this.attr("height",e.height)),i.setAttribute("href",e.src);else if(e instanceof HTMLElement&&(0,em.HD)(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase())i.setAttribute("href",e.toDataURL());else if(e instanceof ImageData){var n=document.createElement("canvas");n.setAttribute("width",""+e.width),n.setAttribute("height",""+e.height),n.getContext("2d").putImageData(e,0,0),t.width||(i.setAttribute("width",""+e.width),this.attr("width",e.width)),t.height||(i.setAttribute("height",""+e.height),this.attr("height",e.height)),i.setAttribute("href",n.toDataURL())}},t}(au),af=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="line",t.canFill=!1,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},t.prototype.createPath=function(e,t){var i=this.attr(),n=this.get("el");(0,em.S6)(t||i,function(t,r){if("startArrow"===r||"endArrow"===r){if(t){var o=(0,em.Kn)(t)?e.addArrow(i,at[r]):e.getDefaultArrow(i,at[r]);n.setAttribute(at[r],"url(#"+o+")")}else n.removeAttribute(at[r])}else at[r]&&n.setAttribute(at[r],t)})},t.prototype.getTotalLength=function(){var e=this.attr(),t=e.x1,i=e.y1,n=e.x2,r=e.y2;return sW.x1.length(t,i,n,r)},t.prototype.getPoint=function(e){var t=this.attr(),i=t.x1,n=t.y1,r=t.x2,o=t.y2;return sW.x1.pointAt(i,n,r,o,e)},t}(au),am={circle:function(e,t,i){return[["M",e,t],["m",-i,0],["a",i,i,0,1,0,2*i,0],["a",i,i,0,1,0,-(2*i),0]]},square:function(e,t,i){return[["M",e-i,t-i],["L",e+i,t-i],["L",e+i,t+i],["L",e-i,t+i],["Z"]]},diamond:function(e,t,i){return[["M",e-i,t],["L",e,t-i],["L",e+i,t],["L",e,t+i],["Z"]]},triangle:function(e,t,i){var n=i*Math.sin(1/3*Math.PI);return[["M",e-i,t+n],["L",e,t-n],["L",e+i,t+n],["z"]]},triangleDown:function(e,t,i){var n=i*Math.sin(1/3*Math.PI);return[["M",e-i,t-n],["L",e+i,t-n],["L",e,t+n],["Z"]]}},av={get:function(e){return am[e]},register:function(e,t){am[e]=t},remove:function(e){delete am[e]},getAll:function(){return am}},aE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="marker",t.canFill=!0,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.createPath=function(e){this.get("el").setAttribute("d",this._assembleMarker())},t.prototype._assembleMarker=function(){var e=this._getPath();return(0,em.kJ)(e)?e.map(function(e){return e.join(" ")}).join(""):e},t.prototype._getPath=function(){var e,t=this.attr(),i=t.x,n=t.y,r=t.r||t.radius,o=t.symbol||"circle";return(e=(0,em.mf)(o)?o:av.get(o))?e(i,n,r):(console.warn(e+" symbol is not exist."),null)},t.symbolsFactory=av,t}(au),a_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="path",t.canFill=!0,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{startArrow:!1,endArrow:!1})},t.prototype.createPath=function(e,t){var i=this,n=this.attr(),r=this.get("el");(0,em.S6)(t||n,function(t,o){if("path"===o&&(0,em.kJ)(t))r.setAttribute("d",i._formatPath(t));else if("startArrow"===o||"endArrow"===o){if(t){var s=(0,em.Kn)(t)?e.addArrow(n,at[o]):e.getDefaultArrow(n,at[o]);r.setAttribute(at[o],"url(#"+s+")")}else r.removeAttribute(at[o])}else at[o]&&r.setAttribute(at[o],t)})},t.prototype._formatPath=function(e){var t=e.map(function(e){return e.join(" ")}).join("");return~t.indexOf("NaN")?"":t},t.prototype.getTotalLength=function(){var e=this.get("el");return e?e.getTotalLength():null},t.prototype.getPoint=function(e){var t=this.get("el"),i=this.getTotalLength();if(0===i)return null;var n=t?t.getPointAtLength(e*i):null;return n?{x:n.x,y:n.y}:null},t}(au),aC=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="polygon",t.canFill=!0,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.createPath=function(e,t){var i=this.attr(),n=this.get("el");(0,em.S6)(t||i,function(e,t){"points"===t&&(0,em.kJ)(e)&&e.length>=2?n.setAttribute("points",e.map(function(e){return e[0]+","+e[1]}).join(" ")):at[t]&&n.setAttribute(at[t],e)})},t}(au),aS=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="polyline",t.canFill=!0,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{startArrow:!1,endArrow:!1})},t.prototype.onAttrChange=function(t,i,n){e.prototype.onAttrChange.call(this,t,i,n),-1!==["points"].indexOf(t)&&this._resetCache()},t.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},t.prototype.createPath=function(e,t){var i=this.attr(),n=this.get("el");(0,em.S6)(t||i,function(e,t){"points"===t&&(0,em.kJ)(e)&&e.length>=2?n.setAttribute("points",e.map(function(e){return e[0]+","+e[1]}).join(" ")):at[t]&&n.setAttribute(at[t],e)})},t.prototype.getTotalLength=function(){var e=this.attr().points,t=this.get("totalLength");return(0,em.UM)(t)?(this.set("totalLength",sW.aH.length(e)),this.get("totalLength")):t},t.prototype.getPoint=function(e){var t,i,n=this.attr().points,r=this.get("tCache");return r||(this._setTcache(),r=this.get("tCache")),(0,em.S6)(r,function(n,r){e>=n[0]&&e<=n[1]&&(t=(e-n[0])/(n[1]-n[0]),i=r)}),sW.x1.pointAt(n[i][0],n[i][1],n[i+1][0],n[i+1][1],t)},t.prototype._setTcache=function(){var e,t=this.attr().points;if(t&&0!==t.length){var i=this.getTotalLength();if(!(i<=0)){var n=0,r=[];(0,em.S6)(t,function(o,s){t[s+1]&&((e=[])[0]=n/i,n+=sW.x1.length(o[0],o[1],t[s+1][0],t[s+1][1]),e[1]=n/i,r.push(e))}),this.set("tCache",r)}}},t.prototype.getStartTangent=function(){var e=this.attr().points,t=[];return t.push([e[1][0],e[1][1]]),t.push([e[0][0],e[0][1]]),t},t.prototype.getEndTangent=function(){var e=this.attr().points,t=e.length-1,i=[];return i.push([e[t-1][0],e[t-1][1]]),i.push([e[t][0],e[t][1]]),i},t}(au),ay=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="rect",t.canFill=!0,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,width:0,height:0,radius:0})},t.prototype.createPath=function(e,t){var i=this,n=this.attr(),r=this.get("el"),o=!1,s=["x","y","width","height","radius"];(0,em.S6)(t||n,function(e,t){-1===s.indexOf(t)||o?-1===s.indexOf(t)&&at[t]&&r.setAttribute(at[t],e):(r.setAttribute("d",i._assembleRect(n)),o=!0)})},t.prototype._assembleRect=function(e){var t,i,n,r,o=e.x,s=e.y,a=e.width,l=e.height,h=e.radius;if(!h)return"M "+o+","+s+" l "+a+",0 l 0,"+l+" l"+-a+" 0 z";var u=(t=0,i=0,n=0,r=0,(0,em.kJ)(h)?1===h.length?t=i=n=r=h[0]:2===h.length?(t=n=h[0],i=r=h[1]):3===h.length?(t=h[0],i=r=h[1],n=h[2]):(t=h[0],i=h[1],n=h[2],r=h[3]):t=i=n=r=h,{r1:t,r2:i,r3:n,r4:r});return(0,em.kJ)(h)?1===h.length?u.r1=u.r2=u.r3=u.r4=h[0]:2===h.length?(u.r1=u.r3=h[0],u.r2=u.r4=h[1]):3===h.length?(u.r1=h[0],u.r2=u.r4=h[1],u.r3=h[2]):(u.r1=h[0],u.r2=h[1],u.r3=h[2],u.r4=h[3]):u.r1=u.r2=u.r3=u.r4=h,[["M "+(o+u.r1)+","+s],["l "+(a-u.r1-u.r2)+",0"],["a "+u.r2+","+u.r2+",0,0,1,"+u.r2+","+u.r2],["l 0,"+(l-u.r2-u.r3)],["a "+u.r3+","+u.r3+",0,0,1,"+-u.r3+","+u.r3],["l "+(u.r3+u.r4-a)+",0"],["a "+u.r4+","+u.r4+",0,0,1,"+-u.r4+","+-u.r4],["l 0,"+(u.r4+u.r1-l)],["a "+u.r1+","+u.r1+",0,0,1,"+u.r1+","+-u.r1],["z"]].join(" ")},t}(au),aT=i(43631),ab={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},aA={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},aR={left:"left",start:"left",center:"middle",right:"end",end:"end"},aL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="text",t.canFill=!0,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},t.prototype.createPath=function(e,t){var i=this,n=this.attr(),r=this.get("el");this._setFont(),(0,em.S6)(t||n,function(e,t){"text"===t?i._setText(""+e):"matrix"===t&&e?ao(i):at[t]&&r.setAttribute(at[t],e)}),r.setAttribute("paint-order","stroke"),r.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},t.prototype._setFont=function(){var e=this.get("el"),t=this.attr(),i=t.textBaseline,n=t.textAlign,r=(0,aT.qY)();r&&"firefox"===r.name?e.setAttribute("dominant-baseline",aA[i]||"alphabetic"):e.setAttribute("alignment-baseline",ab[i]||"baseline"),e.setAttribute("text-anchor",aR[n]||"left")},t.prototype._setText=function(e){var t=this.get("el"),i=this.attr(),n=i.x,r=i.textBaseline,o=void 0===r?"bottom":r;if(e){if(~e.indexOf("\n")){var s=e.split("\n"),a=s.length-1,l="";(0,em.S6)(s,function(e,t){0===t?"alphabetic"===o?l+=''+e+"":"top"===o?l+=''+e+"":"middle"===o?l+=''+e+"":"bottom"===o?l+=''+e+"":"hanging"===o&&(l+=''+e+""):l+=''+e+""}),t.innerHTML=l}else t.innerHTML=e}else t.innerHTML=""},t}(au),aN=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,aI=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,aw=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function aO(e){var t=e.match(aw);if(!t)return"";var i="";return t.sort(function(e,t){return e=e.split(":"),t=t.split(":"),Number(e[0])-Number(t[0])}),(0,em.S6)(t,function(e){i+=''}),i}var ax=function(){function e(e){this.cfg={};var t,i,n,r,o,s,a,l,h,u,d,c,g,p,f,m,v=null,E=(0,em.EL)("gradient_");return"l"===e.toLowerCase()[0]?(t=v=ai("linearGradient"),r=aN.exec(e),o=(0,em.wQ)((0,em.c$)(parseFloat(r[1])),2*Math.PI),s=r[2],o>=0&&o<.5*Math.PI?(i={x:0,y:0},n={x:1,y:1}):.5*Math.PI<=o&&o';t.innerHTML=i},e}(),aP=function(){function e(e,t){this.cfg={};var i=ai("marker"),n=(0,em.EL)("marker_");i.setAttribute("id",n);var r=ai("path");r.setAttribute("stroke",e.stroke||"none"),r.setAttribute("fill",e.fill||"none"),i.appendChild(r),i.setAttribute("overflow","visible"),i.setAttribute("orient","auto-start-reverse"),this.el=i,this.child=r,this.id=n;var o=e["marker-start"===t?"startArrow":"endArrow"];return this.stroke=e.stroke||"#000",!0===o?this._setDefaultPath(t,r):(this.cfg=o,this._setMarker(e.lineWidth,r)),this}return e.prototype.match=function(){return!1},e.prototype._setDefaultPath=function(e,t){var i=this.el;t.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),i.setAttribute("refX",""+10*Math.cos(Math.PI/6)),i.setAttribute("refY","5")},e.prototype._setMarker=function(e,t){var i=this.el,n=this.cfg.path,r=this.cfg.d;(0,em.kJ)(n)&&(n=n.map(function(e){return e.join(" ")}).join("")),t.setAttribute("d",n),i.appendChild(t),r&&i.setAttribute("refX",""+r/e)},e.prototype.update=function(e){var t=this.child;t.attr?t.attr("fill",e):t.setAttribute("fill",e)},e}(),aF=function(){function e(e){this.type="clip",this.cfg={};var t=ai("clipPath");this.el=t,this.id=(0,em.EL)("clip_"),t.id=this.id;var i=e.cfg.el;return t.appendChild(i),this.cfg=e,this}return e.prototype.match=function(){return!1},e.prototype.remove=function(){var e=this.el;e.parentNode.removeChild(e)},e}(),aB=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,aU=function(){function e(e){this.cfg={};var t=ai("pattern");t.setAttribute("patternUnits","userSpaceOnUse");var i=ai("image");t.appendChild(i);var n=(0,em.EL)("pattern_");t.id=n,this.el=t,this.id=n,this.cfg=e;var r=aB.exec(e)[2];i.setAttribute("href",r);var o=new Image;function s(){t.setAttribute("width",""+o.width),t.setAttribute("height",""+o.height)}return r.match(/^data:/i)||(o.crossOrigin="Anonymous"),o.src=r,o.complete?s():(o.onload=s,o.src=o.src),this}return e.prototype.match=function(e,t){return this.cfg===t},e}(),aH=function(){function e(e){var t=ai("defs"),i=(0,em.EL)("defs_");t.id=i,e.appendChild(t),this.children=[],this.defaultArrow={},this.el=t,this.canvas=e}return e.prototype.find=function(e,t){for(var i=this.children,n=null,r=0;r0&&(h[0][0]="L")),o=o.concat(h)}),o.push(["Z"])}return o}(c,a,i,n,r))}return o.path=h,o}function a2(e){var t=e.start,i=e.end;return[[t.x,i.y],[i.x,t.y]]}oK("area",{defaultShapeType:"area",getDefaultPoints:function(e){var t=e.x,i=e.y0;return((0,em.kJ)(e.y)?e.y:[i,e.y]).map(function(e){return{x:t,y:e}})}}),o$("area","area",{draw:function(e,t){var i=a1(e,!1,!1,this);return t.addShape({type:"path",attrs:i,name:"area"})},getMarker:function(e){return{symbol:function(e,t,i){return void 0===i&&(i=5.5),[["M",e-i,t-4],["L",e+i,t-4],["L",e+i,t+4],["L",e-i,t+4],["Z"]]},style:{r:5,fill:e.color}}}});var a4=function(e){function t(t){var i=e.call(this,t)||this;i.type="area",i.shapeType="area",i.generatePoints=!0,i.startOnZero=!0;var n=t.startOnZero,r=t.sortable,o=t.showSinglePoint;return i.startOnZero=void 0===n||n,i.sortable=void 0!==r&&r,i.showSinglePoint=void 0!==o&&o,i}return(0,ef.ZT)(t,e),t.prototype.getPointsAndData=function(e){for(var t=[],i=[],n=0,r=e.length;nn&&(n=r),r=t[0]}));for(var d=this.scales[h],c=0,g=e;ct&&(i=i?t/(1+n/i):0,n=t-i),r+o>t&&(r=r?t/(1+o/r):0,o=t-r),[i||0,n||0,r||0,o||0]}function a8(e,t,i){var n=[];if(i.isRect){var r=i.isTransposed?{x:i.start.x,y:t[0].y}:{x:t[0].x,y:i.start.y},o=i.isTransposed?{x:i.end.x,y:t[2].y}:{x:t[3].x,y:i.end.y},s=(0,em.U2)(e,["background","style","radius"]);if(s){var a=a7(s,Math.min(i.isTransposed?Math.abs(t[0].y-t[2].y):t[2].x-t[1].x,i.isTransposed?i.getWidth():i.getHeight())),l=a[0],h=a[1],u=a[2],d=a[3];n.push(["M",r.x,o.y+l]),0!==l&&n.push(["A",l,l,0,0,1,r.x+l,o.y]),n.push(["L",o.x-h,o.y]),0!==h&&n.push(["A",h,h,0,0,1,o.x,o.y+h]),n.push(["L",o.x,r.y-u]),0!==u&&n.push(["A",u,u,0,0,1,o.x-u,r.y]),n.push(["L",r.x+d,r.y]),0!==d&&n.push(["A",d,d,0,0,1,r.x,r.y-d])}else n.push(["M",r.x,r.y]),n.push(["L",o.x,r.y]),n.push(["L",o.x,o.y]),n.push(["L",r.x,o.y]),n.push(["L",r.x,r.y]);n.push(["z"])}if(i.isPolar){var c=i.getCenter(),g=n6(e,i),p=g.startAngle,f=g.endAngle;if("theta"===i.type||i.isTransposed){var m=function(e){return Math.pow(e,2)},l=Math.sqrt(m(c.x-t[0].x)+m(c.y-t[0].y)),h=Math.sqrt(m(c.x-t[2].x)+m(c.y-t[2].y));n=n4(c.x,c.y,l,i.startAngle,i.endAngle,h)}else n=n4(c.x,c.y,i.getRadius(),p,f)}return n}function le(e,t,i){var n=[];return(0,em.UM)(t)?i?n.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",(e[2].x+e[3].x)/2,(e[2].y+e[3].y)/2],["Z"]):n.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",e[2].x,e[2].y],["L",e[3].x,e[3].y],["Z"]):n.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",t[1].x,t[1].y],["L",t[0].x,t[0].y],["Z"]),n}function lt(e){var t=e.theme,i=e.coordinate,n=e.getXScale(),r=n.values,o=e.beforeMappingData,s=r.length,a=rt(e.coordinate),l=e.intervalPadding,h=e.dodgePadding,u=e.maxColumnWidth||t.maxColumnWidth,d=e.minColumnWidth||t.minColumnWidth,c=e.columnWidthRatio||t.columnWidthRatio,g=e.multiplePieWidthRatio||t.multiplePieWidthRatio,p=e.roseWidthRatio||t.roseWidthRatio;if(n.isLinear&&r.length>1){r.sort();var f=function(e,t){var i=e.length,n=e;(0,em.HD)(n[0])&&(n=e.map(function(e){return t.translate(e)}));for(var r=n[1]-n[0],o=2;os&&(r=s)}return r}(r,n);s=(n.max-n.min)/f,r.length>s&&(s=r.length)}var m=n.range,v=1/s,E=1;if(i.isPolar?E=i.isTransposed&&s>1?g:p:(n.isLinear&&(v*=m[1]-m[0]),E=c),!(0,em.UM)(l)&&l>=0?v=(1-(s-1)*(l/a))/s:v*=E,e.getAdjust("dodge")){var _=function(e,t){if(t){var i=(0,em.xH)(e);return(0,em.I)(i,t).length}return e.length}(o,e.getAdjust("dodge").dodgeBy);!(0,em.UM)(h)&&h>=0?v=(v-h/a*(_-1))/_:(!(0,em.UM)(l)&&l>=0&&(v*=E),v/=_),v=v>=0?v:0}if(!(0,em.UM)(u)&&u>=0){var C=u/a;v>C&&(v=C)}if(!(0,em.UM)(d)&&d>=0){var S=d/a;vi[1].x?(c=i[0],h=i[1],u=i[2],d=i[3],g=(a=a7(r,Math.min(c.x-h.x,h.y-u.y)))[0],m=a[1],f=a[2],p=a[3]):(p=(l=a7(r,Math.min(c.x-h.x,h.y-u.y)))[0],f=l[1],m=l[2],g=l[3])),(v=[]).push(["M",u.x,u.y+g]),0!==g&&v.push(["A",g,g,0,0,1,u.x+g,u.y]),v.push(["L",d.x-p,d.y]),0!==p&&v.push(["A",p,p,0,0,1,d.x,d.y+p]),v.push(["L",c.x,c.y-f]),0!==f&&v.push(["A",f,f,0,0,1,c.x-f,c.y]),v.push(["L",h.x+m,h.y]),0!==m&&v.push(["A",m,m,0,0,1,h.x,h.y-m]),v.push(["L",u.x,u.y+g]),v.push(["z"]),L=v):L=this.parsePath((E=e.points,_=N.lineCap,S=(C=this.coordinate).getWidth(),y=C.getHeight(),T="rect"===C.type,b=[],A=(E[2].x-E[1].x)/2,R=C.isTransposed?A*y/S:A*S/y,"round"===_?(T?(b.push(["M",E[0].x,E[0].y+R]),b.push(["L",E[1].x,E[1].y-R]),b.push(["A",A,A,0,0,1,E[2].x,E[2].y-R]),b.push(["L",E[3].x,E[3].y+R]),b.push(["A",A,A,0,0,1,E[0].x,E[0].y+R])):(b.push(["M",E[0].x,E[0].y]),b.push(["L",E[1].x,E[1].y]),b.push(["A",A,A,0,0,1,E[2].x,E[2].y]),b.push(["L",E[3].x,E[3].y]),b.push(["A",A,A,0,0,1,E[0].x,E[0].y])),b.push(["z"])):b=a9(E),b));var D=I.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},N),{path:L}),name:"interval"});return w?I:D},getMarker:function(e){var t=e.color;return e.isInPolar?{symbol:"circle",style:{r:4.5,fill:t}}:{symbol:"square",style:{r:4,fill:t}}}});var li=function(e){function t(t){var i=e.call(this,t)||this;i.type="interval",i.shapeType="interval",i.generatePoints=!0;var n=t.background;return i.background=n,i}return(0,ef.ZT)(t,e),t.prototype.createShapePointsCfg=function(t){var i,n=e.prototype.createShapePointsCfg.call(this,t),r=this.getAttribute("size");return r?i=this.getAttributeValues(r,t)[0]/rt(this.coordinate):(this.defaultSize||(this.defaultSize=lt(this)),i=this.defaultSize),n.size=i,n},t.prototype.adjustScale=function(){e.prototype.adjustScale.call(this);var t,i=this.getYScale();if("theta"===this.coordinate.type)i.change({nice:!1,min:0,max:(t=i.values.filter(function(e){return!(0,em.UM)(e)&&!isNaN(e)}),Math.max.apply(Math,(0,ef.ev)((0,ef.ev)([],t,!1),[(0,em.UM)(i.max)?-1/0:i.max],!1)))});else{var n=this.scaleDefs,r=i.field,o=i.min,s=i.max;"time"!==i.type&&(o>0&&!(0,em.U2)(n,[r,"min"])&&i.change({min:0}),s<=0&&!(0,em.U2)(n,[r,"max"])&&i.change({max:0}))}},t.prototype.getDrawCfg=function(t){var i=e.prototype.getDrawCfg.call(this,t);return i.background=this.background,i},t}(oJ),ln=function(e){function t(t){var i=e.call(this,t)||this;i.type="line";var n=t.sortable;return i.sortable=void 0!==n&&n,i}return(0,ef.ZT)(t,e),t}(a0),lr=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"];function lo(e,t,i,n,r){var o=aX(t,r,!r,"r"),s=e.parsePoints(t.points),a=s[0];if(t.isStack)a=s[1];else if(s.length>1){for(var l=i.addGroup(),h=0;h2?"weight":"normal";if(e.isInCircle){var s,a,l,h,u,d,c,g={x:0,y:1};return"normal"===o?(s=r[0],a=ld(r[1],g),(l=[["M",s.x,s.y]]).push(a),i=l):(n.fill=n.stroke,u=ld((h=r)[1],g),d=ld(h[3],g),(c=[["M",h[0].x,h[0].y]]).push(d),c.push(["L",h[3].x,h[3].y]),c.push(["L",h[2].x,h[2].y]),c.push(u),c.push(["L",h[1].x,h[1].y]),c.push(["L",h[0].x,h[0].y]),c.push(["Z"]),i=c),i=this.parsePath(i),t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},n),{path:i})})}if("normal"===o)return i=n5(((r=this.parsePoints(r))[1].x+r[0].x)/2,r[0].y,Math.abs(r[1].x-r[0].x)/2,Math.PI,2*Math.PI),t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},n),{path:i})});var p=lu(r[1],r[3]),f=lu(r[2],r[0]);return i=[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],p,["L",r[3].x,r[3].y],["L",r[2].x,r[2].y],f,["Z"]],i=this.parsePath(i),n.fill=n.stroke,t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},n),{path:i})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}}),o$("edge","smooth",{draw:function(e,t){var i,n,r,o=aX(e,!0,!1,"lineWidth"),s=e.points,a=this.parsePath((n=lu(i=s[0],s[1]),(r=[["M",i.x,i.y]]).push(n),r));return t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},o),{path:a})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}});var lc=1/3;o$("edge","vhv",{draw:function(e,t){var i,n,r,o,s=aX(e,!0,!1,"lineWidth"),a=e.points,l=this.parsePath((i=a[0],n=a[1],(r=[]).push({x:i.x,y:i.y*(1-lc)+n.y*lc}),r.push({x:n.x,y:i.y*(1-lc)+n.y*lc}),r.push(n),o=[["M",i.x,i.y]],(0,em.S6)(r,function(e){o.push(["L",e.x,e.y])}),o));return t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},s),{path:l})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}}),o$("interval","funnel",{getPoints:function(e){return e.size=2*e.size,a3(e)},draw:function(e,t){var i=aX(e,!1,!0),n=this.parsePath(le(e.points,e.nextPoints,!1));return t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},i),{path:n}),name:"interval"})},getMarker:function(e){return{symbol:"square",style:{r:4,fill:e.color}}}}),o$("interval","hollow-rect",{draw:function(e,t){var i=aX(e,!0,!1),n=t,r=null==e?void 0:e.background;if(r){n=t.addGroup();var o=aj(e),s=a8(e,this.parsePoints(e.points),this.coordinate);n.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},o),{path:s}),zIndex:-1,name:oF})}var a=this.parsePath(a9(e.points)),l=n.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},i),{path:a}),name:"interval"});return r?n:l},getMarker:function(e){var t=e.color;return e.isInPolar?{symbol:"circle",style:{r:4.5,stroke:t,fill:null}}:{symbol:"square",style:{r:4,stroke:t,fill:null}}}}),o$("interval","line",{getPoints:function(e){var t,i,n;return t=e.x,i=e.y,n=e.y0,(0,em.kJ)(i)?i.map(function(e,i){return{x:(0,em.kJ)(t)?t[i]:t,y:e}}):[{x:t,y:n},{x:t,y:i}]},draw:function(e,t){var i=aX(e,!0,!1,"lineWidth"),n=n7((0,ef.pi)({},i),["fill"]),r=this.parsePath(a9(e.points,!1));return t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},n),{path:r}),name:"interval"})},getMarker:function(e){return{symbol:function(e,t,i){return[["M",e,t-i],["L",e,t+i]]},style:{r:5,stroke:e.color}}}}),o$("interval","pyramid",{getPoints:function(e){return e.size=2*e.size,a3(e)},draw:function(e,t){var i=aX(e,!1,!0),n=this.parsePath(le(e.points,e.nextPoints,!0));return t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},i),{path:n}),name:"interval"})},getMarker:function(e){return{symbol:"square",style:{r:4,fill:e.color}}}}),o$("interval","tick",{getPoints:function(e){var t,i,n,r,o,s,a,l;return n=e.x,r=e.y,o=e.y0,s=e.size,(0,em.kJ)(r)?(t=r[0],i=r[1]):(t=o,i=r),a=n+s/2,l=n-s/2,[{x:n,y:t},{x:n,y:i},{x:l,y:t},{x:a,y:t},{x:l,y:i},{x:a,y:i}]},draw:function(e,t){var i,n=aX(e,!0,!1),r=this.parsePath([["M",(i=e.points)[0].x,i[0].y],["L",i[1].x,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["M",i[4].x,i[4].y],["L",i[5].x,i[5].y]]);return t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},n),{path:r}),name:"interval"})},getMarker:function(e){return{symbol:function(e,t,i){return[["M",e-i/2,t-i],["L",e+i/2,t-i],["M",e,t-i],["L",e,t+i],["M",e-i/2,t+i],["L",e+i/2,t+i]]},style:{r:5,stroke:e.color}}}});var lg=function(e,t,i){var n,r=e.x,o=e.y,s=t.x,a=t.y;switch(i){case"hv":n=[{x:s,y:o}];break;case"vh":n=[{x:r,y:a}];break;case"hvh":var l=(s+r)/2;n=[{x:l,y:o},{x:l,y:a}];break;case"vhv":var h=(o+a)/2;n=[{x:r,y:h},{x:s,y:h}]}return n};function lp(e){var t=(0,em.kJ)(e)?e:[e],i=t[0],n=t[t.length-1],r=t.length>1?t[1]:i,o=t.length>3?t[3]:n,s=t.length>2?t[2]:r;return{min:i,max:n,min1:r,max1:o,median:s}}function lf(e,t,i){var n,r=i/2;if((0,em.kJ)(t)){var o=lp(t),s=o.min,a=o.max,l=o.median,h=o.min1,u=o.max1,d=e-r,c=e+r;n=[[d,a],[c,a],[e,a],[e,u],[d,h],[d,u],[c,u],[c,h],[e,h],[e,s],[d,s],[c,s],[d,l],[c,l]]}else{t=(0,em.UM)(t)?.5:t;var g=lp(e),s=g.min,a=g.max,l=g.median,h=g.min1,u=g.max1,p=t-r,f=t+r;n=[[s,p],[s,f],[s,t],[h,t],[h,p],[h,f],[u,f],[u,p],[u,t],[a,t],[a,p],[a,f],[l,p],[l,f]]}return n.map(function(e){return{x:e[0],y:e[1]}})}function lm(e,t,i){var n,r=function(e,t,i){if((0,em.HD)(e))return e.padEnd(t,i);if((0,em.kJ)(e)){var n=e.length;if(n1){for(var o=t.addGroup(),s=0;s0?"left":"right");break;case"left":e.x=a,e.y=(r+s)/2,e.textAlign=(0,em.U2)(e,"textAlign",g>0?"left":"right");break;case"bottom":h&&(e.x=(o+a)/2),e.y=s,e.textAlign=(0,em.U2)(e,"textAlign","center"),e.textBaseline=(0,em.U2)(e,"textBaseline",g>0?"bottom":"top");break;case"middle":h&&(e.x=(o+a)/2),e.y=(r+s)/2,e.textAlign=(0,em.U2)(e,"textAlign","center"),e.textBaseline=(0,em.U2)(e,"textBaseline","middle");break;case"top":h&&(e.x=(o+a)/2),e.y=r,e.textAlign=(0,em.U2)(e,"textAlign","center"),e.textBaseline=(0,em.U2)(e,"textBaseline",g>0?"bottom":"top")}},t}(o3),lE=Math.PI/2,l_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getLabelOffset=function(e){var t=this.getCoordinate(),i=0;if((0,em.hj)(e))i=e;else if((0,em.HD)(e)&&-1!==e.indexOf("%")){var n=t.getRadius();t.innerRadius>0&&(n*=1-t.innerRadius),i=.01*parseFloat(e)*n}return i},t.prototype.getLabelItems=function(t){var i=e.prototype.getLabelItems.call(this,t),n=this.geometry.getYScale();return(0,em.UI)(i,function(e){if(e&&n){var t=n.scale((0,em.U2)(e.data,n.field));return(0,ef.pi)((0,ef.pi)({},e),{percent:t})}return e})},t.prototype.getLabelAlign=function(e){var t,i=this.getCoordinate();if(e.labelEmit)t=e.angle<=Math.PI/2&&e.angle>=-Math.PI/2?"left":"right";else if(i.isTransposed){var n=i.getCenter(),r=e.offset;t=1>Math.abs(e.x-n.x)?"center":e.angle>Math.PI||e.angle<=0?r>0?"left":"right":r>0?"right":"left"}else t="center";return t},t.prototype.getLabelPoint=function(e,t,i){var n,r=1,o=e.content[i];this.isToMiddle(t)?n=this.getMiddlePoint(t.points):(1===e.content.length&&0===i?i=1:0===i&&(r=-1),n=this.getArcPoint(t,i));var s=e.offset*r,a=this.getPointAngle(n),l=e.labelEmit,h=this.getCirclePoint(a,s,n,l);return 0===h.r?h.content="":(h.content=o,h.angle=a,h.color=t.color),h.rotate=e.autoRotate?this.getLabelRotate(a,s,l):e.rotate,h.start={x:n.x,y:n.y},h},t.prototype.getArcPoint=function(e,t){return(void 0===t&&(t=0),(0,em.kJ)(e.x)||(0,em.kJ)(e.y))?{x:(0,em.kJ)(e.x)?e.x[t]:e.x,y:(0,em.kJ)(e.y)?e.y[t]:e.y}:{x:e.x,y:e.y}},t.prototype.getPointAngle=function(e){return rr(this.getCoordinate(),e)},t.prototype.getCirclePoint=function(e,t,i,n){var r=this.getCoordinate(),o=r.getCenter(),s=ri(r,i);if(0===s)return(0,ef.pi)((0,ef.pi)({},o),{r:s});var a=e;return r.isTransposed&&s>t&&!n?a=e+2*Math.asin(t/(2*s)):s+=t,{x:o.x+s*Math.cos(a),y:o.y+s*Math.sin(a),r:s}},t.prototype.getLabelRotate=function(e,t,i){var n=e+lE;return i&&(n-=lE),n&&(n>lE?n-=Math.PI:n<-lE&&(n+=Math.PI)),n},t.prototype.getMiddlePoint=function(e){var t=this.getCoordinate(),i=e.length,n={x:0,y:0};return(0,em.S6)(e,function(e){n.x+=e.x,n.y+=e.y}),n.x/=i,n.y/=i,n=t.convert(n)},t.prototype.isToMiddle=function(e){return e.x.length>2},t}(o3),lC=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.defaultLayout="distribute",t}return(0,ef.ZT)(t,e),t.prototype.getDefaultLabelCfg=function(t,i){var n=e.prototype.getDefaultLabelCfg.call(this,t,i);return(0,em.b$)({},n,(0,em.U2)(this.geometry.theme,"pieLabels",{}))},t.prototype.getLabelOffset=function(t){return e.prototype.getLabelOffset.call(this,t)||0},t.prototype.getLabelRotate=function(e,t,i){var n;return t<0&&((n=e)>Math.PI/2&&(n-=Math.PI),n<-Math.PI/2&&(n+=Math.PI)),n},t.prototype.getLabelAlign=function(e){var t,i=this.getCoordinate().getCenter();return t=e.angle<=Math.PI/2&&e.x>=i.x?"left":"right",e.offset<=0&&(t="right"===t?"left":"right"),t},t.prototype.getArcPoint=function(e){return e},t.prototype.getPointAngle=function(e){var t,i=this.getCoordinate(),n={x:(0,em.kJ)(e.x)?e.x[0]:e.x,y:e.y[0]},r={x:(0,em.kJ)(e.x)?e.x[1]:e.x,y:e.y[1]},o=rr(i,n);if(e.points&&e.points[0].y===e.points[1].y)t=o;else{var s=rr(i,r);o>=s&&(s+=2*Math.PI),t=o+(s-o)/2}return t},t.prototype.getCirclePoint=function(e,t){var i=this.getCoordinate(),n=i.getCenter(),r=i.getRadius()+t;return(0,ef.pi)((0,ef.pi)({},n2(n.x,n.y,r,e)),{angle:e,r:r})},t}(l_);function lS(e,t,i){var n,r=e.filter(function(e){return!e.invisible});r.sort(function(e,t){return e.y-t.y});var o=!0,s=i.minY,a=Math.abs(s-i.maxY),l=0,h=Number.MIN_VALUE,u=r.map(function(e){return e.y>l&&(l=e.y),e.ya&&(a=l-s);o;)for(u.forEach(function(e){var t=(Math.min.apply(h,e.targets)+Math.max.apply(h,e.targets))/2;e.pos=Math.min(Math.max(h,t-e.size/2),a-e.size),e.pos=Math.max(0,e.pos)}),o=!1,n=u.length;n--;)if(n>0){var d=u[n-1],c=u[n];d.pos+d.size>c.pos&&(d.size+=c.size,d.targets=d.targets.concat(c.targets),d.pos+d.size>a&&(d.pos=a-d.size),u.splice(n,1),o=!0)}n=0,u.forEach(function(e){var i=s+t/2;e.targets.forEach(function(){r[n].y=e.pos+i,i+=t,n++})})}var ly=function(){function e(e){void 0===e&&(e={}),this.bitmap={};var t=e.xGap,i=e.yGap;this.xGap=void 0===t?1:t,this.yGap=void 0===i?8:i}return e.prototype.hasGap=function(e){for(var t=!0,i=this.bitmap,n=Math.round(e.minX),r=Math.round(e.maxX),o=Math.round(e.minY),s=Math.round(e.maxY),a=n;a<=r;a+=1){if(!i[a]){i[a]={};continue}if(a===n||a===r){for(var l=o;l<=s;l++)if(i[a][l]){t=!1;break}}else if(i[a][o]||i[a][s]){t=!1;break}}return t},e.prototype.fillGap=function(e){for(var t=this.bitmap,i=Math.round(e.minX),n=Math.round(e.maxX),r=Math.round(e.minY),o=Math.round(e.maxY),s=i;s<=n;s+=1)t[s]||(t[s]={});for(var s=i;s<=n;s+=this.xGap){for(var a=r;a<=o;a+=this.yGap)t[s][a]=!0;t[s][o]=!0}if(1!==this.yGap)for(var s=r;s<=o;s+=1)t[i][s]=!0,t[n][s]=!0;if(1!==this.xGap)for(var s=i;s<=n;s+=1)t[s][r]=!0,t[s][o]=!0},e.prototype.destroy=function(){this.bitmap={}},e}(),lT=io.AK;function lb(e){if(e.length>4)return[];var t=function(e,t){return[t.x-e.x,t.y-e.y]};return[t(e[0],e[1]),t(e[1],e[2])]}function lA(e,t,i){void 0===t&&(t=0),void 0===i&&(i={x:0,y:0});var n=e.x,r=e.y;return{x:(n-i.x)*Math.cos(-t)+(r-i.y)*Math.sin(-t)+i.x,y:(i.x-n)*Math.sin(-t)+(r-i.y)*Math.cos(-t)+i.y}}function lR(e){var t=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],i=e.rotation;return i?[lA(t[0],i,t[0]),lA(t[1],i,t[0]),lA(t[2],i,t[0]),lA(t[3],i,t[0])]:t}function lL(e,t){if(e.length>4)return{min:0,max:0};var i=[];return e.forEach(function(e){i.push(lT([e.x,e.y],t))}),{min:Math.min.apply(Math,i),max:Math.max.apply(Math,i)}}function lN(e){return(0,em.hj)(e)&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0}function lI(e){return Object.values(e).every(lN)}var lw={"#5B8FF9":!0},lO=function(e){var t=eQ.toRGB(e).toUpperCase();if(lw[t])return lw[t];var i=eQ.rgb2arr(t);return(299*i[0]+587*i[1]+114*i[2])/1e3<128};function lx(e,t,i){return e.some(function(e){return i(e,t)})}function lD(e,t){return lx(e,t,function(e,t){var i,n,r=o2(e),o=o2(t);return i=r.getCanvasBBox(),n=o.getCanvasBBox(),Math.max(0,Math.min(i.x+i.width+2,n.x+n.width+2)-Math.max(i.x-2,n.x-2))*Math.max(0,Math.min(i.y+i.height+2,n.y+n.height+2)-Math.max(i.y-2,n.y-2))>0})}function lM(e,t,i){return e.some(function(e){return i(e,t)})}function lk(e,t){return lM(e,t,function(e,t){var i,n,r=o2(e),o=o2(t);return i=r.getCanvasBBox(),n=o.getCanvasBBox(),Math.max(0,Math.min(i.x+i.width+2,n.x+n.width+2)-Math.max(i.x-2,n.x-2))*Math.max(0,Math.min(i.y+i.height+2,n.y+n.height+2)-Math.max(i.y-2,n.y-2))>0})}var lP=(0,em.HP)(function(e,t){void 0===t&&(t={});var i=t.fontSize,n=t.fontFamily,r=t.fontWeight,o=t.fontStyle,s=t.fontVariant,a=(Y||(Y=document.createElement("canvas").getContext("2d")),Y);return a.font=[o,s,r,i+"px",n].join(" "),a.measureText((0,em.HD)(e)?e:"").width},function(e,t){return void 0===t&&(t={}),(0,ef.ev)([e],(0,em.VO)(t),!0).join("")}),lF=function(e,t,i){var n,r,o,s=lP("...",i);n=(0,em.HD)(e)?e:(0,em.BB)(e);var a=t,l=[];if(lP(e,i)<=t)return e;for(;!((o=lP(r=n.substr(0,16),i))+s>a)||!(o>a);)if(l.push(r),a-=o,!(n=n.substr(16)))return l.join("");for(;!((o=lP(r=n.substr(0,1),i))+s>a);)if(l.push(r),a-=o,!(n=n.substr(1)))return l.join("");return l.join("")+"..."};function lB(e,t,i,n,r){var o,s,a,l,h,u,d=i.start,c=i.end,g=i.getWidth(),p=i.getHeight();"y"===r?(h=d.x+g/2,u=n.yd.x?n.x:d.x,u=d.y+p/2):"xy"===r&&(i.isPolar?(h=i.getCenter().x,u=i.getCenter().y):(h=(d.x+c.x)/2,u=(d.y+c.y)/2));var f=(a=(o=[h,u])[0],l=o[1],e.applyToMatrix([a,l,1]),"x"===r?(e.setMatrix(it.vs(e.getMatrix(),[["t",-a,-l],["s",.01,1],["t",a,l]])),s=it.vs(e.getMatrix(),[["t",-a,-l],["s",100,1],["t",a,l]])):"y"===r?(e.setMatrix(it.vs(e.getMatrix(),[["t",-a,-l],["s",1,.01],["t",a,l]])),s=it.vs(e.getMatrix(),[["t",-a,-l],["s",1,100],["t",a,l]])):"xy"===r&&(e.setMatrix(it.vs(e.getMatrix(),[["t",-a,-l],["s",.01,.01],["t",a,l]])),s=it.vs(e.getMatrix(),[["t",-a,-l],["s",100,100],["t",a,l]])),s);e.animate({matrix:f},t)}function lU(e,t){var i,n=sC(e,t),r=n.startAngle,o=n.endAngle;return!(0,em.vQ)(r,-(.5*Math.PI))&&r<-(.5*Math.PI)&&(r+=2*Math.PI),!(0,em.vQ)(o,-(.5*Math.PI))&&o<-(.5*Math.PI)&&(o+=2*Math.PI),0===t[5]&&(r=(i=[o,r])[0],o=i[1]),(0,em.vQ)(r,1.5*Math.PI)&&(r=-.5*Math.PI),(0,em.vQ)(o,-.5*Math.PI)&&(o=1.5*Math.PI),{startAngle:r,endAngle:o}}function lH(e){var t;return"M"===e[0]||"L"===e[0]?t=[e[1],e[2]]:("a"===e[0]||"A"===e[0]||"C"===e[0])&&(t=[e[e.length-2],e[e.length-1]]),t}function lV(e){var t,i,n,r=e.filter(function(e){return"A"===e[0]||"a"===e[0]});if(0===r.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var o=r[0],s=r.length>1?r[1]:r[0],a=e.indexOf(o),l=e.indexOf(s),h=lH(e[a-1]),u=lH(e[l-1]),d=lU(h,o),c=d.startAngle,g=d.endAngle,p=lU(u,s),f=p.startAngle,m=p.endAngle;(0,em.vQ)(c,f)&&(0,em.vQ)(g,m)?(i=c,n=g):(i=Math.min(c,f),n=Math.max(g,m));var v=o[1],E=r[r.length-1][1];return v=0;o--)for(var s=this.getFacetsByLevel(e,o),a=0;a=i){var r=n.parsePosition([e[s],e[o.field]]);r&&u.push(r)}if(e[s]===h)return!1}),u},t.prototype.parsePercentPosition=function(e){var t=parseFloat(e[0])/100,i=parseFloat(e[1])/100,n=this.view.getCoordinate(),r=n.start,o=n.end,s={x:Math.min(r.x,o.x),y:Math.min(r.y,o.y)};return{x:n.getWidth()*t+s.x,y:n.getHeight()*i+s.y}},t.prototype.getCoordinateBBox=function(){var e=this.view.getCoordinate(),t=e.start,i=e.end,n=e.getWidth(),r=e.getHeight(),o={x:Math.min(t.x,i.x),y:Math.min(t.y,i.y)};return{x:o.x,y:o.y,minX:o.x,minY:o.y,maxX:o.x+n,maxY:o.y+r,width:n,height:r}},t.prototype.getAnnotationCfg=function(e,t,i){var n=this,r=this.view.getCoordinate(),o=this.view.getCanvas(),s={};if((0,em.UM)(t))return null;if("arc"===e){var a=t.start,l=t.end,h=(0,ef._T)(t,["start","end"]),u=this.parsePosition(a),d=this.parsePosition(l),c=rr(r,u),g=rr(r,d);c>g&&(g=2*Math.PI+g),s=(0,ef.pi)((0,ef.pi)({},h),{center:r.getCenter(),radius:ri(r,u),startAngle:c,endAngle:g})}else if("image"===e){var a=t.start,l=t.end,h=(0,ef._T)(t,["start","end"]);s=(0,ef.pi)((0,ef.pi)({},h),{start:this.parsePosition(a),end:this.parsePosition(l),src:t.src})}else if("line"===e){var a=t.start,l=t.end,h=(0,ef._T)(t,["start","end"]);s=(0,ef.pi)((0,ef.pi)({},h),{start:this.parsePosition(a),end:this.parsePosition(l),text:(0,em.U2)(t,"text",null)})}else if("region"===e){var a=t.start,l=t.end,h=(0,ef._T)(t,["start","end"]);s=(0,ef.pi)((0,ef.pi)({},h),{start:this.parsePosition(a),end:this.parsePosition(l)})}else if("text"===e){var p=this.view.getData(),f=t.position,m=t.content,h=(0,ef._T)(t,["position","content"]),v=m;(0,em.mf)(m)&&(v=m(p)),s=(0,ef.pi)((0,ef.pi)((0,ef.pi)({},this.parsePosition(f)),h),{content:v})}else if("dataMarker"===e){var f=t.position,E=t.point,_=t.line,C=t.text,S=t.autoAdjust,y=t.direction,h=(0,ef._T)(t,["position","point","line","text","autoAdjust","direction"]);s=(0,ef.pi)((0,ef.pi)((0,ef.pi)({},h),this.parsePosition(f)),{coordinateBBox:this.getCoordinateBBox(),point:E,line:_,text:C,autoAdjust:S,direction:y})}else if("dataRegion"===e){var a=t.start,l=t.end,T=t.region,C=t.text,b=t.lineLength,h=(0,ef._T)(t,["start","end","region","text","lineLength"]);s=(0,ef.pi)((0,ef.pi)({},h),{points:this.getRegionPoints(a,l),region:T,text:C,lineLength:b})}else if("regionFilter"===e){var a=t.start,l=t.end,A=t.apply,R=t.color,h=(0,ef._T)(t,["start","end","apply","color"]),L=this.view.geometries,N=[],I=function(e){e&&(e.isGroup()?e.getChildren().forEach(function(e){return I(e)}):N.push(e))};(0,em.S6)(L,function(e){A?(0,em.FX)(A,e.type)&&(0,em.S6)(e.elements,function(e){I(e.shape)}):(0,em.S6)(e.elements,function(e){I(e.shape)})}),s=(0,ef.pi)((0,ef.pi)({},h),{color:R,shapes:N,start:this.parsePosition(a),end:this.parsePosition(l)})}else if("shape"===e){var w=t.render,O=(0,ef._T)(t,["render"]);s=(0,ef.pi)((0,ef.pi)({},O),{render:function(e){if((0,em.mf)(t.render))return w(e,n.view,{parsePosition:n.parsePosition.bind(n)})}})}else if("html"===e){var x=t.html,f=t.position,O=(0,ef._T)(t,["html","position"]);s=(0,ef.pi)((0,ef.pi)((0,ef.pi)({},O),this.parsePosition(f)),{parent:o.get("el").parentNode,html:function(e){return(0,em.mf)(x)?x(e,n.view):x}})}var D=(0,em.b$)({},i,(0,ef.pi)((0,ef.pi)({},s),{top:t.top,style:t.style,offsetX:t.offsetX,offsetY:t.offsetY}));return"html"!==e&&(D.container=this.getComponentContainer(D)),D.animate=this.view.getOptions().animate&&D.animate&&(0,em.U2)(t,"animate",D.animate),D.animateOption=(0,em.b$)({},ox,D.animateOption,t.animateOption),D},t.prototype.isTop=function(e){return(0,em.U2)(e,"top",!0)},t.prototype.getComponentContainer=function(e){return this.isTop(e)?this.foregroundContainer:this.backgroundContainer},t.prototype.getAnnotationTheme=function(e){return(0,em.U2)(this.view.getTheme(),["components","annotation",e],{})},t.prototype.updateOrCreate=function(e){var t=this.cache.get(this.getCacheKey(e));if(t){var i=e.type,n=this.getAnnotationTheme(i),r=this.getAnnotationCfg(i,e,n);n7(r,["container"]),t.component.update(r),(0,em.q9)(lQ,e.type)&&t.component.render()}else(t=this.createAnnotation(e))&&(t.component.init(),(0,em.q9)(lQ,e.type)&&t.component.render());return t},t.prototype.syncCache=function(e){var t=this,i=new Map(this.cache);return e.forEach(function(e,t){i.set(t,e)}),i.forEach(function(e,n){(0,em.sE)(t.option,function(e){return n===t.getCacheKey(e)})||(e.component.destroy(),i.delete(n))}),i},t.prototype.getCacheKey=function(e){return e},t}(oL);function l1(e,t){var i=(0,em.b$)({},(0,em.U2)(e,["components","axis","common"]),(0,em.U2)(e,["components","axis",t]));return(0,em.U2)(i,["grid"],{})}function l2(e,t,i,n){var r=[],o=t.getTicks();return e.isPolar&&o.push({value:1,text:"",tickValue:""}),o.reduce(function(t,o,s){var a=o.value;if(n)r.push({points:[e.convert("y"===i?{x:0,y:a}:{x:a,y:0}),e.convert("y"===i?{x:1,y:a}:{x:a,y:1})]});else if(s){var l=(t.value+a)/2;r.push({points:[e.convert("y"===i?{x:0,y:l}:{x:l,y:0}),e.convert("y"===i?{x:1,y:l}:{x:l,y:1})]})}return o},o[0]),r}function l4(e,t,i,n,r){var o=t.values.length,s=[],a=i.getTicks();return a.reduce(function(t,i){var a=t?t.value:i.value,l=i.value,h=(a+l)/2;return"x"===r?s.push({points:[e.convert({x:n?l:h,y:0}),e.convert({x:n?l:h,y:1})]}):s.push({points:(0,em.UI)(Array(o+1),function(t,i){return e.convert({x:i/o,y:n?l:h})})}),i},a[0]),s}function l5(e,t){var i=(0,em.U2)(t,"grid");if(null===i)return!1;var n=(0,em.U2)(e,"grid");return!(void 0===i&&null===n)}var l6=["container"],l3=(0,ef.pi)((0,ef.pi)({},ox),{appear:null}),l9=function(e){function t(t){var i=e.call(this,t)||this;return i.cache=new Map,i.gridContainer=i.view.getLayer(O.BG).addGroup(),i.gridForeContainer=i.view.getLayer(O.FORE).addGroup(),i.axisContainer=i.view.getLayer(O.BG).addGroup(),i.axisForeContainer=i.view.getLayer(O.FORE).addGroup(),i}return(0,ef.ZT)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.render=function(){this.update()},t.prototype.layout=function(){var e=this,t=this.view.getCoordinate();(0,em.S6)(this.getComponents(),function(i){var n,r=i.component,o=i.direction,s=i.type,a=i.extra,l=a.dim,h=a.scale,u=a.alignTick;s===D.AXIS?t.isPolar?"x"===l?n=t.isTransposed?rh(t,o):rp(t):"y"===l&&(n=t.isTransposed?rp(t):rh(t,o)):n=rh(t,o):s===D.GRID&&(n=t.isPolar?{items:t.isTransposed?"x"===l?l4(t,e.view.getYScales()[0],h,u,l):l2(t,h,l,u):"x"===l?l2(t,h,l,u):l4(t,e.view.getXScale(),h,u,l),center:e.view.getCoordinate().getCenter()}:{items:l2(t,h,l,u)}),r.update(n)})},t.prototype.update=function(){this.option=this.view.getOptions().axes;var e=new Map;this.updateXAxes(e),this.updateYAxes(e);var t=new Map;this.cache.forEach(function(i,n){e.has(n)?t.set(n,i):i.component.destroy()}),this.cache=t},t.prototype.clear=function(){e.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},t.prototype.getComponents=function(){var e=[];return this.cache.forEach(function(t){e.push(t)}),e},t.prototype.updateXAxes=function(e){var t=this.view.getXScale();if(t&&!t.isIdentity){var i=rf(this.option,t.field);if(!1!==i){var n=rm(i,x.BOTTOM),r=O.BG,o=this.view.getCoordinate(),s=this.getId("axis",t.field),a=this.getId("grid",t.field);if(o.isRect){var l=this.cache.get(s);if(l){var h=this.getLineAxisCfg(t,i,n);n7(h,l6),l.component.update(h),e.set(s,l)}else l=this.createLineAxis(t,i,r,n,"x"),this.cache.set(s,l),e.set(s,l);var u=this.cache.get(a);if(u){var h=this.getLineGridCfg(t,i,n,"x");n7(h,l6),u.component.update(h),e.set(a,u)}else(u=this.createLineGrid(t,i,r,n,"x"))&&(this.cache.set(a,u),e.set(a,u))}else if(o.isPolar){var l=this.cache.get(s);if(l){var h=o.isTransposed?this.getLineAxisCfg(t,i,x.RADIUS):this.getCircleAxisCfg(t,i,n);n7(h,l6),l.component.update(h),e.set(s,l)}else{if(o.isTransposed){if((0,em.o8)(i))return;l=this.createLineAxis(t,i,r,x.RADIUS,"x")}else l=this.createCircleAxis(t,i,r,n,"x");this.cache.set(s,l),e.set(s,l)}var u=this.cache.get(a);if(u){var h=o.isTransposed?this.getCircleGridCfg(t,i,x.RADIUS,"x"):this.getLineGridCfg(t,i,x.CIRCLE,"x");n7(h,l6),u.component.update(h),e.set(a,u)}else{if(o.isTransposed){if((0,em.o8)(i))return;u=this.createCircleGrid(t,i,r,x.RADIUS,"x")}else u=this.createLineGrid(t,i,r,x.CIRCLE,"x");u&&(this.cache.set(a,u),e.set(a,u))}}}}},t.prototype.updateYAxes=function(e){var t=this,i=this.view.getYScales();(0,em.S6)(i,function(i,n){if(i&&!i.isIdentity){var r=i.field,o=rf(t.option,r);if(!1!==o){var s=O.BG,a=t.getId("axis",r),l=t.getId("grid",r),h=t.view.getCoordinate();if(h.isRect){var u=rm(o,0===n?x.LEFT:x.RIGHT),d=t.cache.get(a);if(d){var c=t.getLineAxisCfg(i,o,u);n7(c,l6),d.component.update(c),e.set(a,d)}else d=t.createLineAxis(i,o,s,u,"y"),t.cache.set(a,d),e.set(a,d);var g=t.cache.get(l);if(g){var c=t.getLineGridCfg(i,o,u,"y");n7(c,l6),g.component.update(c),e.set(l,g)}else(g=t.createLineGrid(i,o,s,u,"y"))&&(t.cache.set(l,g),e.set(l,g))}else if(h.isPolar){var d=t.cache.get(a);if(d){var c=h.isTransposed?t.getCircleAxisCfg(i,o,x.CIRCLE):t.getLineAxisCfg(i,o,x.RADIUS);n7(c,l6),d.component.update(c),e.set(a,d)}else{if(h.isTransposed){if((0,em.o8)(o))return;d=t.createCircleAxis(i,o,s,x.CIRCLE,"y")}else d=t.createLineAxis(i,o,s,x.RADIUS,"y");t.cache.set(a,d),e.set(a,d)}var g=t.cache.get(l);if(g){var c=h.isTransposed?t.getLineGridCfg(i,o,x.CIRCLE,"y"):t.getCircleGridCfg(i,o,x.RADIUS,"y");n7(c,l6),g.component.update(c),e.set(l,g)}else{if(h.isTransposed){if((0,em.o8)(o))return;g=t.createLineGrid(i,o,s,x.CIRCLE,"y")}else g=t.createCircleGrid(i,o,s,x.RADIUS,"y");g&&(t.cache.set(l,g),e.set(l,g))}}}}})},t.prototype.createLineAxis=function(e,t,i,n,r){var o={component:new ns(this.getLineAxisCfg(e,t,n)),layer:i,direction:n===x.RADIUS?x.NONE:n,type:D.AXIS,extra:{dim:r,scale:e}};return o.component.set("field",e.field),o.component.init(),o},t.prototype.createLineGrid=function(e,t,i,n,r){var o=this.getLineGridCfg(e,t,n,r);if(o){var s={component:new nE(o),layer:i,direction:x.NONE,type:D.GRID,extra:{dim:r,scale:e,alignTick:(0,em.U2)(o,"alignTick",!0)}};return s.component.init(),s}},t.prototype.createCircleAxis=function(e,t,i,n,r){var o={component:new na(this.getCircleAxisCfg(e,t,n)),layer:i,direction:n,type:D.AXIS,extra:{dim:r,scale:e}};return o.component.set("field",e.field),o.component.init(),o},t.prototype.createCircleGrid=function(e,t,i,n,r){var o=this.getCircleGridCfg(e,t,n,r);if(o){var s={component:new nv(o),layer:i,direction:x.NONE,type:D.GRID,extra:{dim:r,scale:e,alignTick:(0,em.U2)(o,"alignTick",!0)}};return s.component.init(),s}},t.prototype.getLineAxisCfg=function(e,t,i){var n=(0,em.U2)(t,["top"])?this.axisForeContainer:this.axisContainer,r=this.view.getCoordinate(),o=rh(r,i),s=rv(e,t),a=rc(this.view.getTheme(),i),l=(0,em.U2)(t,["title"])?(0,em.b$)({title:{style:{text:s}}},{title:rg(this.view.getTheme(),i,t.title)},t):t,h=(0,em.b$)((0,ef.pi)((0,ef.pi)({container:n},o),{ticks:e.getTicks().map(function(e){return{id:""+e.tickValue,name:e.text,value:e.value}}),verticalFactor:r.isPolar?-1*rd(o,r.getCenter()):rd(o,r.getCenter()),theme:a}),a,l),u=this.getAnimateCfg(h),d=u.animate,c=u.animateOption;h.animateOption=c,h.animate=d;var g=ru(o),p=(0,em.U2)(h,"verticalLimitLength",g?1/3:.5);if(p<=1){var f=this.view.getCanvas().get("width"),m=this.view.getCanvas().get("height");h.verticalLimitLength=p*(g?f:m)}return h},t.prototype.getLineGridCfg=function(e,t,i,n){if(l5(rc(this.view.getTheme(),i),t)){var r=l1(this.view.getTheme(),i),o=(0,em.b$)({container:(0,em.U2)(t,["top"])?this.gridForeContainer:this.gridContainer},r,(0,em.U2)(t,"grid"),this.getAnimateCfg(t));return o.items=l2(this.view.getCoordinate(),e,n,(0,em.U2)(o,"alignTick",!0)),o}},t.prototype.getCircleAxisCfg=function(e,t,i){var n=(0,em.U2)(t,["top"])?this.axisForeContainer:this.axisContainer,r=this.view.getCoordinate(),o=e.getTicks().map(function(e){return{id:""+e.tickValue,name:e.text,value:e.value}});e.isCategory||Math.abs(r.endAngle-r.startAngle)!==2*Math.PI||o.pop();var s=rv(e,t),a=rc(this.view.getTheme(),x.CIRCLE),l=(0,em.U2)(t,["title"])?(0,em.b$)({title:{style:{text:s}}},{title:rg(this.view.getTheme(),i,t.title)},t):t,h=(0,em.b$)((0,ef.pi)((0,ef.pi)({container:n},rp(this.view.getCoordinate())),{ticks:o,verticalFactor:1,theme:a}),a,l),u=this.getAnimateCfg(h),d=u.animate,c=u.animateOption;return h.animate=d,h.animateOption=c,h},t.prototype.getCircleGridCfg=function(e,t,i,n){if(l5(rc(this.view.getTheme(),i),t)){var r=l1(this.view.getTheme(),x.RADIUS),o=(0,em.b$)({container:(0,em.U2)(t,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},r,(0,em.U2)(t,"grid"),this.getAnimateCfg(t)),s=(0,em.U2)(o,"alignTick",!0),a="x"===n?this.view.getYScales()[0]:this.view.getXScale();return o.items=l4(this.view.getCoordinate(),a,e,s,n),o}},t.prototype.getId=function(e,t){return e+"-"+t+"-"+this.view.getCoordinate().type},t.prototype.getAnimateCfg=function(e){return{animate:this.view.getOptions().animate&&(0,em.U2)(e,"animate"),animateOption:e&&e.animateOption?(0,em.b$)({},l3,e.animateOption):l3}},t}(oL);function l7(e,t,i){return i===x.TOP?[e.minX+e.width/2-t.width/2,e.minY]:i===x.BOTTOM?[e.minX+e.width/2-t.width/2,e.maxY-t.height]:i===x.LEFT?[e.minX,e.minY+e.height/2-t.height/2]:i===x.RIGHT?[e.maxX-t.width,e.minY+e.height/2-t.height/2]:i===x.TOP_LEFT||i===x.LEFT_TOP?[e.tl.x,e.tl.y]:i===x.TOP_RIGHT||i===x.RIGHT_TOP?[e.tr.x-t.width,e.tr.y]:i===x.BOTTOM_LEFT||i===x.LEFT_BOTTOM?[e.bl.x,e.bl.y-t.height]:i===x.BOTTOM_RIGHT||i===x.RIGHT_BOTTOM?[e.br.x-t.width,e.br.y-t.height]:[0,0]}function l8(e,t){return(0,em.jn)(e)?!1!==e&&{}:(0,em.U2)(e,[t],e)}function he(e){return(0,em.U2)(e,"position",x.BOTTOM)}var ht=function(e){function t(t){var i=e.call(this,t)||this;return i.container=i.view.getLayer(O.FORE).addGroup(),i}return(0,ef.ZT)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.render=function(){this.update()},t.prototype.layout=function(){var e=this;this.layoutBBox=this.view.viewBBox,(0,em.S6)(this.components,function(t){var i=t.component,n=t.direction,r=st(n),o=i.get("maxWidthRatio"),s=i.get("maxHeightRatio"),a=e.getCategoryLegendSizeCfg(r,o,s),l=i.get("maxWidth"),h=i.get("maxHeight");i.update({maxWidth:Math.min(a.maxWidth,l||0),maxHeight:Math.min(a.maxHeight,h||0)});var u=i.get("padding"),d=i.getLayoutBBox(),c=new re(d.x,d.y,d.width,d.height).expand(u),g=l7(e.view.viewBBox,c,n),p=g[0],f=g[1],m=l7(e.layoutBBox,c,n),v=m[0],E=m[1],_=0,C=0;n.startsWith("top")||n.startsWith("bottom")?(_=p,C=E):(_=v,C=f),i.setLocation({x:_+u[3],y:C+u[0]}),e.layoutBBox=e.layoutBBox.cut(c,n)})},t.prototype.update=function(){var e=this;this.option=this.view.getOptions().legends;var t={};if((0,em.U2)(this.option,"custom")){var i="global-custom",n=this.getComponentById(i);if(n){var r=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);n7(r,["container"]),n.component.update(r),t[i]=!0}else{var o=this.createCustomLegend(void 0,void 0,void 0,this.option);if(o){o.init();var s=O.FORE,a=he(this.option);this.components.push({id:i,component:o,layer:s,direction:a,type:D.LEGEND,extra:void 0}),t[i]=!0}}}else this.loopLegends(function(i,n,r){var o=e.getId(r.field),s=e.getComponentById(o);if(s){var a=void 0,l=l8(e.option,r.field);!1!==l&&((0,em.U2)(l,"custom")?a=e.getCategoryCfg(i,n,r,l,!0):r.isLinear?a=e.getContinuousCfg(i,n,r,l):r.isCategory&&(a=e.getCategoryCfg(i,n,r,l))),a&&(n7(a,["container"]),s.direction=he(l),s.component.update(a),t[o]=!0)}else{var h=e.createFieldLegend(i,n,r);h&&(h.component.init(),e.components.push(h),t[o]=!0)}});var l=[];(0,em.S6)(this.getComponents(),function(e){t[e.id]?l.push(e):e.component.destroy()}),this.components=l},t.prototype.clear=function(){e.prototype.clear.call(this),this.container.clear()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.container.remove(!0)},t.prototype.getGeometries=function(e){var t=this,i=e.geometries;return(0,em.S6)(e.views,function(e){i=i.concat(t.getGeometries(e))}),i},t.prototype.loopLegends=function(e){if(this.view.getRootView()===this.view){var t=this.getGeometries(this.view),i={};(0,em.S6)(t,function(t){var n=t.getGroupAttributes();(0,em.S6)(n,function(n){var r=n.getScale(n.type);r&&"identity"!==r.type&&!i[r.field]&&(e(t,n,r),i[r.field]=!0)})})}},t.prototype.createFieldLegend=function(e,t,i){var n,r=l8(this.option,i.field),o=O.FORE,s=he(r);if(!1!==r&&((0,em.U2)(r,"custom")?n=this.createCustomLegend(e,t,i,r):i.isLinear?n=this.createContinuousLegend(e,t,i,r):i.isCategory&&(n=this.createCategoryLegend(e,t,i,r))),n)return n.set("field",i.field),{id:this.getId(i.field),component:n,layer:o,direction:s,type:D.LEGEND,extra:{scale:i}}},t.prototype.createCustomLegend=function(e,t,i,n){var r=this.getCategoryCfg(e,t,i,n,!0);return new nA(r)},t.prototype.createContinuousLegend=function(e,t,i,n){var r=this.getContinuousCfg(e,t,i,n7(n,["value"]));return new nR(r)},t.prototype.createCategoryLegend=function(e,t,i,n){var r=this.getCategoryCfg(e,t,i,n);return new nA(r)},t.prototype.getContinuousCfg=function(e,t,i,n){var r=i.getTicks(),o=(0,em.sE)(r,function(e){return 0===e.value}),s=(0,em.sE)(r,function(e){return 1===e.value}),a=r.map(function(e){var n=e.value,r=e.tickValue,o=t.mapping(i.invert(n)).join("");return{value:r,attrValue:o,color:o,scaleValue:n}});o||a.push({value:i.min,attrValue:t.mapping(i.invert(0)).join(""),color:t.mapping(i.invert(0)).join(""),scaleValue:0}),s||a.push({value:i.max,attrValue:t.mapping(i.invert(1)).join(""),color:t.mapping(i.invert(1)).join(""),scaleValue:1}),a.sort(function(e,t){return e.value-t.value});var l={min:(0,em.YM)(a).value,max:(0,em.Z$)(a).value,colors:[],rail:{type:t.type},track:{}};"size"===t.type&&(l.track={style:{fill:"size"===t.type?this.view.getTheme().defaultColor:void 0}}),"color"===t.type&&(l.colors=a.map(function(e){return e.attrValue}));var h=this.container,u=st(he(n)),d=(0,em.U2)(n,"title");return d&&(d=(0,em.b$)({text:ra(i)},d)),l.container=h,l.layout=u,l.title=d,l.animateOption=ox,this.mergeLegendCfg(l,n,"continuous")},t.prototype.getCategoryCfg=function(e,t,i,n,r){var o=this.container,s=(0,em.U2)(n,"position",x.BOTTOM),a=sn(this.view.getTheme(),s),l=(0,em.U2)(a,["marker"]),h=(0,em.U2)(n,"marker"),u=st(s),d=(0,em.U2)(a,["pageNavigator"]),c=(0,em.U2)(n,"pageNavigator"),g=r?n.items.map(function(e,t){var i=h;(0,em.mf)(i)&&(i=i(e.name,t,(0,em.b$)({},l,e)));var n=(0,em.mf)(e.marker)?e.marker(e.name,t,(0,em.b$)({},l,e)):e.marker,r=(0,em.b$)({},l,i,n);return se(r),e.marker=r,e}):si(this.view,e,t,l,h),p=(0,em.U2)(n,"title");p&&(p=(0,em.b$)({text:i?ra(i):""},p));var f=(0,em.U2)(n,"maxWidthRatio"),m=(0,em.U2)(n,"maxHeightRatio"),v=this.getCategoryLegendSizeCfg(u,f,m);v.container=o,v.layout=u,v.items=g,v.title=p,v.animateOption=ox,v.pageNavigator=(0,em.b$)({},d,c);var E=this.mergeLegendCfg(v,n,s);E.reversed&&E.items.reverse();var _=(0,em.U2)(E,"maxItemWidth");return _&&_<=1&&(E.maxItemWidth=this.view.viewBBox.width*_),E},t.prototype.mergeLegendCfg=function(e,t,i){var n=i.split("-")[0],r=sn(this.view.getTheme(),n);return(0,em.b$)({},r,e,t)},t.prototype.getId=function(e){return this.name+"-"+e},t.prototype.getComponentById=function(e){return(0,em.sE)(this.components,function(t){return t.id===e})},t.prototype.getCategoryLegendSizeCfg=function(e,t,i){void 0===t&&(t=.25),void 0===i&&(i=.25);var n=this.view.viewBBox,r=n.width,o=n.height;return"vertical"===e?{maxWidth:r*t,maxHeight:o}:{maxWidth:r,maxHeight:o*i}},t}(oL),hi=function(e){function t(t){var i=e.call(this,t)||this;return i.onChangeFn=em.ZT,i.resetMeasure=function(){i.clear()},i.onValueChange=function(e){var t=e[0],n=e[1];i.start=t,i.end=n,i.changeViewData(t,n)},i.container=i.view.getLayer(O.FORE).addGroup(),i.onChangeFn=(0,em.P2)(i.onValueChange,20,{leading:!0}),i.width=0,i.view.on(M.BEFORE_CHANGE_DATA,i.resetMeasure),i.view.on(M.BEFORE_CHANGE_SIZE,i.resetMeasure),i}return(0,ef.ZT)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(M.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(M.BEFORE_CHANGE_SIZE,this.resetMeasure)},t.prototype.init=function(){},t.prototype.render=function(){this.option=this.view.getOptions().slider;var e=this.getSliderCfg(),t=e.start,i=e.end;(0,em.UM)(this.start)&&(this.start=t,this.end=i);var n=this.view.getOptions().data;this.option&&!(0,em.xb)(n)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},t.prototype.layout=function(){var e=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout(function(){e.view.destroyed||e.changeViewData(e.start,e.end)},0)),this.slider){var t=this.view.coordinateBBox.width,i=this.slider.component.get("padding"),n=i[0],r=(i[1],i[2],i[3]),o=this.slider.component.getLayoutBBox(),s=new re(o.x,o.y,Math.min(o.width,t),o.height).expand(i),a=this.getMinMaxText(this.start,this.end),l=a.minText,h=a.maxText,u=l7(this.view.viewBBox,s,x.BOTTOM),d=(u[0],u[1]),c=l7(this.view.coordinateBBox,s,x.BOTTOM),g=c[0];c[1],this.slider.component.update((0,ef.pi)((0,ef.pi)({},this.getSliderCfg()),{x:g+r,y:d+n,width:this.width,start:this.start,end:this.end,minText:l,maxText:h})),this.view.viewBBox=this.view.viewBBox.cut(s,x.BOTTOM)}},t.prototype.update=function(){this.render()},t.prototype.createSlider=function(){var e=this.getSliderCfg(),t=new nq((0,ef.pi)({container:this.container},e));return t.init(),{component:t,layer:O.FORE,direction:x.BOTTOM,type:D.SLIDER}},t.prototype.updateSlider=function(){var e=this.getSliderCfg();if(this.width){var t=this.getMinMaxText(this.start,this.end),i=t.minText,n=t.maxText;e=(0,ef.pi)((0,ef.pi)({},e),{width:this.width,start:this.start,end:this.end,minText:i,maxText:n})}return this.slider.component.update(e),this.slider},t.prototype.measureSlider=function(){var e=this.getSliderCfg().width;this.width=e},t.prototype.getSliderCfg=function(){var e={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if((0,em.Kn)(this.option)){var t=(0,ef.pi)({data:this.getData()},(0,em.U2)(this.option,"trendCfg",{}));e=(0,em.b$)({},e,this.getThemeOptions(),this.option),e=(0,ef.pi)((0,ef.pi)({},e),{trendCfg:t})}return e.start=(0,em.uZ)(Math.min((0,em.UM)(e.start)?0:e.start,(0,em.UM)(e.end)?1:e.end),0,1),e.end=(0,em.uZ)(Math.max((0,em.UM)(e.start)?0:e.start,(0,em.UM)(e.end)?1:e.end),0,1),e},t.prototype.getData=function(){var e=this.view.getOptions().data,t=this.view.getYScales()[0],i=this.view.getGroupScales();if(i.length){var n=i[0],r=n.field,o=n.ticks;return e.reduce(function(e,i){return i[r]===o[0]&&e.push(i[t.field]),e},[])}return e.map(function(e){return e[t.field]||0})},t.prototype.getThemeOptions=function(){var e=this.view.getTheme();return(0,em.U2)(e,["components","slider","common"],{})},t.prototype.getMinMaxText=function(e,t){var i=this.view.getOptions().data,n=this.view.getXScale(),r=(0,em.I)(i,n.field),o=(0,em.dp)(i);if(!n||!o)return{};var s=(0,em.dp)(r),a=Math.floor(e*(s-1)),l=Math.floor(t*(s-1)),h=(0,em.U2)(r,[a]),u=(0,em.U2)(r,[l]),d=this.getSliderCfg().formatter;return d&&(h=d(h,i[a],a),u=d(u,i[l],l)),{minText:h,maxText:u}},t.prototype.changeViewData=function(e,t){var i=this.view.getOptions().data,n=this.view.getXScale(),r=(0,em.dp)(i);if(n&&r){var o=(0,em.I)(i,n.field),s=(0,em.dp)(o),a=Math.floor(e*(s-1)),l=Math.floor(t*(s-1));this.view.filter(n.field,function(e,t){var i=o.indexOf(e);return!(i>-1)||n9(i,a,l)}),this.view.render(!0)}},t.prototype.getComponents=function(){return this.slider?[this.slider]:[]},t.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},t}(oL),hn=function(e){function t(t){var i=e.call(this,t)||this;return i.onChangeFn=em.ZT,i.resetMeasure=function(){i.clear()},i.onValueChange=function(e){var t=e.ratio,n=i.getValidScrollbarCfg().animate;i.ratio=(0,em.uZ)(t,0,1);var r=i.view.getOptions().animate;n||i.view.animate(!1),i.changeViewData(i.getScrollRange(),!0),i.view.animate(r)},i.container=i.view.getLayer(O.FORE).addGroup(),i.onChangeFn=(0,em.P2)(i.onValueChange,20,{leading:!0}),i.trackLen=0,i.thumbLen=0,i.ratio=0,i.view.on(M.BEFORE_CHANGE_DATA,i.resetMeasure),i.view.on(M.BEFORE_CHANGE_SIZE,i.resetMeasure),i}return(0,ef.ZT)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(M.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(M.BEFORE_CHANGE_SIZE,this.resetMeasure)},t.prototype.init=function(){},t.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},t.prototype.layout=function(){var e=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout(function(){e.view.destroyed||e.changeViewData(e.getScrollRange(),!0)})),this.scrollbar){var t=this.view.coordinateBBox.width,i=this.scrollbar.component.get("padding"),n=this.scrollbar.component.getLayoutBBox(),r=new re(n.x,n.y,Math.min(n.width,t),n.height).expand(i),o=this.getScrollbarComponentCfg(),s=void 0,a=void 0;if(o.isHorizontal){var l=l7(this.view.viewBBox,r,x.BOTTOM),h=l[0],u=l[1],d=l7(this.view.coordinateBBox,r,x.BOTTOM),c=d[0],g=d[1];s=c,a=u}else{var p=l7(this.view.viewBBox,r,x.RIGHT),h=p[0],u=p[1],f=l7(this.view.viewBBox,r,x.RIGHT),c=f[0],g=f[1];s=c,a=u}s+=i[3],a+=i[0],this.trackLen?this.scrollbar.component.update((0,ef.pi)((0,ef.pi)({},o),{x:s,y:a,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update((0,ef.pi)((0,ef.pi)({},o),{x:s,y:a})),this.view.viewBBox=this.view.viewBBox.cut(r,o.isHorizontal?x.BOTTOM:x.RIGHT)}},t.prototype.update=function(){this.render()},t.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},t.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},t.prototype.setValue=function(e){this.onValueChange({ratio:e})},t.prototype.getValue=function(){return this.ratio},t.prototype.getThemeOptions=function(){var e=this.view.getTheme();return(0,em.U2)(e,["components","scrollbar","common"],{})},t.prototype.getScrollbarTheme=function(e){var t=(0,em.U2)(this.view.getTheme(),["components","scrollbar"]),i=e||{},n=i.thumbHighlightColor,r=(0,ef._T)(i,["thumbHighlightColor"]);return{default:(0,em.b$)({},(0,em.U2)(t,["default","style"],{}),r),hover:(0,em.b$)({},(0,em.U2)(t,["hover","style"],{}),{thumbColor:n})}},t.prototype.measureScrollbar=function(){var e=this.view.getXScale(),t=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var i=this.getScrollbarComponentCfg(),n=i.trackLen,r=i.thumbLen;this.trackLen=n,this.thumbLen=r,this.xScaleCfg={field:e.field,values:e.values||[]},this.yScalesCfg=t},t.prototype.getScrollRange=function(){var e=Math.floor((this.cnt-this.step)*(0,em.uZ)(this.ratio,0,1)),t=Math.min(e+this.step-1,this.cnt-1);return[e,t]},t.prototype.changeViewData=function(e,t){var i=this,n=e[0],r=e[1],o=this.getValidScrollbarCfg().type,s=(0,em.I)(this.data,this.xScaleCfg.field),a="vertical"!==o?s:s.reverse();this.yScalesCfg.forEach(function(e){i.view.scale(e.field,{formatter:e.formatter,type:e.type,min:e.min,max:e.max})}),this.view.filter(this.xScaleCfg.field,function(e){var t=a.indexOf(e);return!(t>-1)||n9(t,n,r)}),this.view.render(!0)},t.prototype.createScrollbar=function(){var e=this.getValidScrollbarCfg().type,t=new nQ((0,ef.pi)((0,ef.pi)({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return t.init(),{component:t,layer:O.FORE,direction:"vertical"!==e?x.BOTTOM:x.RIGHT,type:D.SCROLLBAR}},t.prototype.updateScrollbar=function(){var e=this.getScrollbarComponentCfg(),t=this.trackLen?(0,ef.pi)((0,ef.pi)({},e),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):(0,ef.pi)({},e);return this.scrollbar.component.update(t),this.scrollbar},t.prototype.getStep=function(){if(this.step)return this.step;var e=this.view.coordinateBBox,t=this.getValidScrollbarCfg(),i=t.type,n=t.categorySize;return Math.floor(("vertical"!==i?e.width:e.height)/n)},t.prototype.getCnt=function(){if(this.cnt)return this.cnt;var e=this.view.getXScale(),t=this.getScrollbarData(),i=(0,em.I)(t,e.field);return(0,em.dp)(i)},t.prototype.getScrollbarComponentCfg=function(){var e=this.view,t=e.coordinateBBox,i=e.viewBBox,n=this.getValidScrollbarCfg(),r=n.type,o=n.padding,s=n.width,a=n.height,l=n.style,h="vertical"!==r,u=o[0],d=o[1],c=o[2],g=o[3],p=h?{x:t.minX+g,y:i.maxY-a-c}:{x:i.maxX-s-d,y:t.minY+u},f=this.getStep(),m=this.getCnt(),v=h?t.width-g-d:t.height-u-c,E=Math.max(v*(0,em.uZ)(f/m,0,1),20);return(0,ef.pi)((0,ef.pi)({},this.getThemeOptions()),{x:p.x,y:p.y,size:h?a:s,isHorizontal:h,trackLen:v,thumbLen:E,thumbOffset:0,theme:this.getScrollbarTheme(l)})},t.prototype.getValidScrollbarCfg=function(){var e={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0,style:{}};return(0,em.Kn)(this.option)&&(e=(0,ef.pi)((0,ef.pi)({},e),this.option)),(0,em.Kn)(this.option)&&this.option.padding||(e.padding=(e.type,[0,0,0,0])),e},t.prototype.getScrollbarData=function(){var e=this.view.getCoordinate(),t=this.getValidScrollbarCfg(),i=this.view.getOptions().data||[];return e.isReflect("y")&&"vertical"===t.type&&(i=(0,ef.ev)([],i,!0).reverse()),i},t}(oL),hr={fill:"#CCD6EC",opacity:.3},ho=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.show=function(e){var t=this.context.view,i=this.context.event,n=t.getController("tooltip").getTooltipCfg(),r=function(e,t,i){var n=function(e,t,i){for(var n=of(e,t,i),r=0,o=e.views;r1){for(var c=n[0],g=Math.abs(t.y-c[0].y),p=0,f=n;pd.maxY&&(d=t)):(t.minXd.maxX&&(d=t)),c.x=Math.min(t.minX,c.minX),c.y=Math.min(t.minY,c.minY),c.width=Math.max(t.maxX,c.maxX)-c.x,c.height=Math.max(t.maxY,c.maxY)-c.y});var g=t.backgroundGroup,p=t.coordinateBBox,f=void 0;if(h.isRect){var m=t.getXScale(),v=e||{},E=v.appendRatio,_=v.appendWidth;(0,em.UM)(_)&&(E=(0,em.UM)(E)?m.isLinear?0:.25:E,_=h.isTransposed?E*d.height:E*u.width);var C=void 0,S=void 0,y=void 0,T=void 0;h.isTransposed?(C=p.minX,S=Math.min(d.minY,u.minY)-_,y=p.width,T=c.height+2*_):(C=Math.min(u.minX,d.minX)-_,S=p.minY,y=c.width+2*_,T=p.height),f=[["M",C,S],["L",C+y,S],["L",C+y,S+T],["L",C,S+T],["Z"]]}else{var b=(0,em.YM)(a),A=(0,em.Z$)(a),R=n6(b.getModel(),h).startAngle,L=n6(A.getModel(),h).endAngle,N=h.getCenter(),I=h.getRadius(),w=h.innerRadius*I;f=n4(N.x,N.y,I,R,L,w)}if(this.regionPath)this.regionPath.attr("path",f),this.regionPath.show();else{var O=(0,em.U2)(e,"style",hr);this.regionPath=g.addShape({type:"path",name:"active-region",capture:!1,attrs:(0,ef.pi)((0,ef.pi)({},O),{path:f})})}}}},t.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},t.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),e.prototype.destroy.call(this)},t}(rS),hs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return(0,ef.ZT)(t,e),t.prototype.show=function(){var e=this.context,t=e.event,i=e.view;if(!i.isTooltipLocked()){var n=this.timeStamp,r=+new Date;if(r-n>(0,em.U2)(e.view.getOptions(),"tooltip.showDelay",16)){var o=this.location,s={x:t.x,y:t.y};o&&(0,em.Xy)(o,s)||this.showTooltip(i,s),this.timeStamp=r,this.location=s}}},t.prototype.hide=function(){var e=this.context.view,t=e.getController("tooltip"),i=this.context.event,n=i.clientX,r=i.clientY;t.isCursorEntered({x:n,y:r})||e.isTooltipLocked()||(this.hideTooltip(e),this.location=null)},t.prototype.showTooltip=function(e,t){e.showTooltip(t)},t.prototype.hideTooltip=function(e){e.hideTooltip()},t}(rS),ha=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.showTooltip=function(e,t){var i=rj(e);(0,em.S6)(i,function(i){var n=rq(e,i,t);i.showTooltip(n)})},t.prototype.hideTooltip=function(e){var t=rj(e);(0,em.S6)(t,function(e){e.hideTooltip()})},t}(hs),hl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return(0,ef.ZT)(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},t.prototype.show=function(){var e=this.context.event,t=this.timeStamp,i=+new Date;if(i-t>16){var n=this.location,r={x:e.x,y:e.y};n&&(0,em.Xy)(n,r)||this.showTooltip(r),this.timeStamp=i,this.location=r}},t.prototype.hide=function(){this.hideTooltip(),this.location=null},t.prototype.showTooltip=function(e){var t=this.context.event.target;if(t&&t.get("tip")){this.tooltip||this.renderTooltip();var i=t.get("tip");this.tooltip.update((0,ef.pi)({title:i},e)),this.tooltip.show()}},t.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},t.prototype.renderTooltip=function(){var e,t=this.context.view,i=t.canvas,n={start:{x:0,y:0},end:{x:i.get("width"),y:i.get("height")}},r=t.getTheme(),o=(0,em.U2)(r,["components","tooltip","domStyles"],{}),s=new nF({parent:i.get("el").parentNode,region:n,visible:!1,crosshairs:null,domStyles:(0,ef.pi)({},(0,em.b$)({},o,((e={})[nL]={"max-width":"50%"},e[nN]={"word-break":"break-all"},e)))});s.init(),s.setCapture(!1),this.tooltip=s},t}(rS),hh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="",t}return(0,ef.ZT)(t,e),t.prototype.hasState=function(e){return e.hasState(this.stateName)},t.prototype.setElementState=function(e,t){e.setState(this.stateName,t)},t.prototype.setState=function(){this.setStateEnable(!0)},t.prototype.clear=function(){var e=this.context.view;this.clearViewState(e)},t.prototype.clearViewState=function(e){var t=this,i=rW(e,this.stateName);(0,em.S6)(i,function(e){t.setElementState(e,!1)})},t}(rS);function hu(e){return(0,em.U2)(e.get("delegateObject"),"item")}var hd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreListItemStates=["unchecked"],t}return(0,ef.ZT)(t,e),t.prototype.isItemIgnore=function(e,t){return!!this.ignoreListItemStates.filter(function(i){return t.hasState(e,i)}).length},t.prototype.setStateByComponent=function(e,t,i){var n=this.context.view,r=e.get("field"),o=rV(n);this.setElementsStateByItem(o,r,t,i)},t.prototype.setStateByElement=function(e,t){this.setElementState(e,t)},t.prototype.isMathItem=function(e,t,i){var n=rJ(this.context.view,t),r=rG(e,t);return!(0,em.UM)(r)&&i.name===n.getText(r)},t.prototype.setElementsStateByItem=function(e,t,i,n){var r=this;(0,em.S6)(e,function(e){r.isMathItem(e,t,i)&&e.setState(r.stateName,n)})},t.prototype.setStateEnable=function(e){var t=rD(this.context);if(t)rk(this.context)&&this.setStateByElement(t,e);else{var i=rM(this.context);if(rP(i)){var n=i.item,r=i.component;if(n&&r&&!this.isItemIgnore(n,r)){var o=this.context.event.gEvent;if(o&&o.fromShape&&o.toShape&&hu(o.fromShape)===hu(o.toShape))return;this.setStateByComponent(r,n,e)}}}},t.prototype.toggle=function(){var e=rD(this.context);if(e){var t=e.hasState(this.stateName);this.setElementState(e,!t)}},t.prototype.reset=function(){this.setStateEnable(!1)},t}(hh),hc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,ef.ZT)(t,e),t.prototype.active=function(){this.setState()},t}(hd),hg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={},t}return(0,ef.ZT)(t,e),t.prototype.getColorScale=function(e,t){var i=t.geometry.getAttribute("color");return i?e.getScaleByField(i.getFields()[0]):null},t.prototype.getLinkPath=function(e,t){var i=this.context.view.getCoordinate().isTransposed,n=e.shape.getCanvasBBox(),r=t.shape.getCanvasBBox();return i?[["M",n.minX,n.minY],["L",r.minX,r.maxY],["L",r.maxX,r.maxY],["L",n.maxX,n.minY],["Z"]]:[["M",n.maxX,n.minY],["L",r.minX,r.minY],["L",r.minX,r.maxY],["L",n.maxX,n.maxY],["Z"]]},t.prototype.addLinkShape=function(e,t,i,n){var r={opacity:.4,fill:t.shape.attr("fill")};e.addShape({type:"path",attrs:(0,ef.pi)((0,ef.pi)({},(0,em.b$)({},r,(0,em.mf)(n)?n(r,t):n)),{path:this.getLinkPath(t,i)})})},t.prototype.linkByElement=function(e,t){var i=this,n=this.context.view,r=this.getColorScale(n,e);if(r){var o=rG(e,r.field);if(!this.cache[o]){var s,a=(s=r.field,rV(n).filter(function(e){return rG(e,s)===o})),l=this.linkGroup.addGroup();this.cache[o]=l;var h=a.length;(0,em.S6)(a,function(e,n){if(n=0},t)},t}(hp),hN=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,ef.ZT)(t,e),t.prototype.highlight=function(){this.setState()},t.prototype.setElementState=function(e,t){hS(rV(this.context.view),function(t){return e===t},t)},t.prototype.clear=function(){hC(this.context.view)},t}(hm),hI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,ef.ZT)(t,e),t.prototype.selected=function(){this.setState()},t}(hp),hw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,ef.ZT)(t,e),t.prototype.selected=function(){this.setState()},t}(hd),hO=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,ef.ZT)(t,e),t.prototype.selected=function(){this.setState()},t}(hm),hx=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="",t.ignoreItemStates=[],t}return(0,ef.ZT)(t,e),t.prototype.getTriggerListInfo=function(){var e=rM(this.context),t=null;return rP(e)&&(t={item:e.item,list:e.component}),t},t.prototype.getAllowComponents=function(){var e=this,t=rK(this.context.view),i=[];return(0,em.S6)(t,function(t){t.isList()&&e.allowSetStateByElement(t)&&i.push(t)}),i},t.prototype.hasState=function(e,t){return e.hasState(t,this.stateName)},t.prototype.clearAllComponentsState=function(){var e=this,t=this.getAllowComponents();(0,em.S6)(t,function(t){t.clearItemsState(e.stateName)})},t.prototype.allowSetStateByElement=function(e){var t=e.get("field");if(!t)return!1;if(this.cfg&&this.cfg.componentNames){var i=e.get("name");if(-1===this.cfg.componentNames.indexOf(i))return!1}var n=rJ(this.context.view,t);return n&&n.isCategory},t.prototype.allowSetStateByItem=function(e,t){var i=this.ignoreItemStates;return!i.length||0===i.filter(function(i){return t.hasState(e,i)}).length},t.prototype.setStateByElement=function(e,t,i){var n=e.get("field"),r=rJ(this.context.view,n),o=rG(t,n),s=r.getText(o);this.setItemsState(e,s,i)},t.prototype.setStateEnable=function(e){var t=this,i=rD(this.context);if(i){var n=this.getAllowComponents();(0,em.S6)(n,function(n){t.setStateByElement(n,i,e)})}else{var r=rM(this.context);if(rP(r)){var o=r.item,s=r.component;this.allowSetStateByElement(s)&&this.allowSetStateByItem(o,s)&&this.setItemState(s,o,e)}}},t.prototype.setItemsState=function(e,t,i){var n=this,r=e.getItems();(0,em.S6)(r,function(r){r.name===t&&n.setItemState(e,r,i)})},t.prototype.setItemState=function(e,t,i){e.setItemState(t,this.stateName,i)},t.prototype.setState=function(){this.setStateEnable(!0)},t.prototype.reset=function(){this.setStateEnable(!1)},t.prototype.toggle=function(){var e=this.getTriggerListInfo();if(e&&e.item){var t=e.list,i=e.item,n=this.hasState(t,i);this.setItemState(t,i,!n)}},t.prototype.clear=function(){var e=this.getTriggerListInfo();e?e.list.clearItemsState(this.stateName):this.clearAllComponentsState()},t}(rS),hD=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,ef.ZT)(t,e),t.prototype.active=function(){this.setState()},t}(hx),hM="inactive",hk="active",hP="inactive",hF="active",hB=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName=hF,t.ignoreItemStates=["unchecked"],t}return(0,ef.ZT)(t,e),t.prototype.setItemsState=function(e,t,i){this.setHighlightBy(e,function(e){return e.name===t},i)},t.prototype.setItemState=function(e,t,i){e.getItems(),this.setHighlightBy(e,function(e){return e===t},i)},t.prototype.setHighlightBy=function(e,t,i){var n=e.getItems();if(i)(0,em.S6)(n,function(i){t(i)?(e.hasState(i,hP)&&e.setItemState(i,hP,!1),e.setItemState(i,hF,!0)):e.hasState(i,hF)||e.setItemState(i,hP,!0)});else{var r=e.getItemsByState(hF),o=!0;(0,em.S6)(r,function(e){if(!t(e))return o=!1,!1}),o?this.clear():(0,em.S6)(n,function(i){t(i)&&(e.hasState(i,hF)&&e.setItemState(i,hF,!1),e.setItemState(i,hP,!0))})}},t.prototype.highlight=function(){this.setState()},t.prototype.clear=function(){var e,t,i=this.getTriggerListInfo();if(i)t=(e=i.list).getItems(),(0,em.S6)(t,function(t){e.hasState(t,hk)&&e.setItemState(t,hk,!1),e.hasState(t,hM)&&e.setItemState(t,hM,!1)});else{var n=this.getAllowComponents();(0,em.S6)(n,function(e){e.clearItemsState(hF),e.clearItemsState(hP)})}},t}(hx),hU=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,ef.ZT)(t,e),t.prototype.selected=function(){this.setState()},t}(hx),hH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="unchecked",t}return(0,ef.ZT)(t,e),t.prototype.unchecked=function(){this.setState()},t}(hx),hV="unchecked",hW="checked",hG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName=hW,t}return(0,ef.ZT)(t,e),t.prototype.setItemState=function(e,t,i){this.setCheckedBy(e,function(e){return e===t},i)},t.prototype.setCheckedBy=function(e,t,i){var n=e.getItems();i&&(0,em.S6)(n,function(i){t(i)?(e.hasState(i,hV)&&e.setItemState(i,hV,!1),e.setItemState(i,hW,!0)):e.hasState(i,hW)||e.setItemState(i,hV,!0)})},t.prototype.toggle=function(){var e=this.getTriggerListInfo();if(e&&e.item){var t=e.list,i=e.item;!(0,em.G)(t.getItems(),function(e){return t.hasState(e,hV)})||t.hasState(i,hV)?this.setItemState(t,i,!0):this.reset()}},t.prototype.checked=function(){this.setState()},t.prototype.reset=function(){var e=this.getAllowComponents();(0,em.S6)(e,function(e){e.clearItemsState(hW),e.clearItemsState(hV)})},t}(hx),hz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.maskShape=null,t.points=[],t.starting=!1,t.moving=!1,t.preMovePoint=null,t.shapeType="path",t}return(0,ef.ZT)(t,e),t.prototype.getCurrentPoint=function(){var e=this.context.event;return{x:e.x,y:e.y}},t.prototype.emitEvent=function(e){var t=this.context.view,i=this.context.event;t.emit("mask:"+e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:i.x,y:i.y})},t.prototype.createMask=function(){var e=this.context.view,t=this.getMaskAttrs();return e.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:(0,ef.pi)({fill:"#C5D4EB",opacity:.3},t)})},t.prototype.getMaskPath=function(){return[]},t.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},t.prototype.start=function(e){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(null==e?void 0:e.maskStyle),this.emitEvent("start")},t.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},t.prototype.move=function(){if(this.moving&&this.maskShape){var e=this.getCurrentPoint(),t=this.preMovePoint,i=e.x-t.x,n=e.y-t.y,r=this.points;(0,em.S6)(r,function(e){e.x+=i,e.y+=n}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=e}},t.prototype.updateMask=function(e){var t=(0,em.b$)({},this.getMaskAttrs(),e);this.maskShape.attr(t)},t.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},t.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},t.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},t.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},t.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,e.prototype.destroy.call(this)},t}(rS),hY=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.shapeType="circle",t}return(0,ef.ZT)(t,e),t.prototype.getMaskAttrs=function(){var e=this.points,t=(0,em.Z$)(this.points),i=0,n=0,r=0;if(e.length){var o=e[0];i=r$(o,t)/2,n=(t.x+o.x)/2,r=(t.y+o.y)/2}return{x:n,y:r,r:i}},t}(hz),hK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.shapeType="rect",t}return(0,ef.ZT)(t,e),t.prototype.getRegion=function(){var e=this.points;return{start:(0,em.YM)(e),end:(0,em.Z$)(e)}},t.prototype.getMaskAttrs=function(){var e=this.getRegion(),t=e.start,i=e.end;return{x:Math.min(t.x,i.x),y:Math.min(t.y,i.y),width:Math.abs(i.x-t.x),height:Math.abs(i.y-t.y)}},t}(hz);function h$(e){e.x=(0,em.uZ)(e.x,0,1),e.y=(0,em.uZ)(e.y,0,1)}var hX=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return(0,ef.ZT)(t,e),t.prototype.getRegion=function(){var e=null,t=null,i=this.points,n=this.dim,r=this.context.view.getCoordinate(),o=r.invert((0,em.YM)(i)),s=r.invert((0,em.Z$)(i));return this.inPlot&&(h$(o),h$(s)),"x"===n?(e=r.convert({x:o.x,y:0}),t=r.convert({x:s.x,y:1})):(e=r.convert({x:0,y:o.y}),t=r.convert({x:1,y:s.y})),{start:e,end:t}},t}(hK),hj=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getMaskPath=function(){var e=this.points,t=[];return e.length&&((0,em.S6)(e,function(e,i){0===i?t.push(["M",e.x,e.y]):t.push(["L",e.x,e.y])}),t.push(["L",e[0].x,e[0].y])),t},t.prototype.getMaskAttrs=function(){return{path:this.getMaskPath()}},t.prototype.addPoint=function(){this.resize()},t}(hz),hq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getMaskPath=function(){return function(e,t){if(e.length<=2)return rw(e,!1);var i=e[0],n=[];(0,em.S6)(e,function(e){n.push(e.x),n.push(e.y)});var r=rI(n,t,null);return r.unshift(["M",i.x,i.y]),r}(this.points,!0)},t}(hj),hZ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.setCursor=function(e){this.context.view.getCanvas().setCursor(e)},t.prototype.default=function(){this.setCursor("default")},t.prototype.pointer=function(){this.setCursor("pointer")},t.prototype.move=function(){this.setCursor("move")},t.prototype.crosshair=function(){this.setCursor("crosshair")},t.prototype.wait=function(){this.setCursor("wait")},t.prototype.help=function(){this.setCursor("help")},t.prototype.text=function(){this.setCursor("text")},t.prototype.eResize=function(){this.setCursor("e-resize")},t.prototype.wResize=function(){this.setCursor("w-resize")},t.prototype.nResize=function(){this.setCursor("n-resize")},t.prototype.sResize=function(){this.setCursor("s-resize")},t.prototype.neResize=function(){this.setCursor("ne-resize")},t.prototype.nwResize=function(){this.setCursor("nw-resize")},t.prototype.seResize=function(){this.setCursor("se-resize")},t.prototype.swResize=function(){this.setCursor("sw-resize")},t.prototype.nsResize=function(){this.setCursor("ns-resize")},t.prototype.ewResize=function(){this.setCursor("ew-resize")},t}(rS),hJ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.filterView=function(e,t,i){var n=this;e.getScaleByField(t)&&e.filter(t,i),e.views&&e.views.length&&(0,em.S6)(e.views,function(e){n.filterView(e,t,i)})},t.prototype.filter=function(){var e=rM(this.context);if(e){var t=this.context.view,i=e.component,n=i.get("field");if(rP(e)){if(n){var r=i.getItemsByState("unchecked"),o=rJ(t,n),s=r.map(function(e){return e.name});s.length?this.filterView(t,n,function(e){var t=o.getText(e);return!s.includes(t)}):this.filterView(t,n,null),t.render(!0)}}else if(rF(e)){var a=i.getValue(),l=a[0],h=a[1];this.filterView(t,n,function(e){return e>=l&&e<=h}),t.render(!0)}}},t}(rS);function hQ(e,t,i,n){var r=Math.min(i[t],n[t]),o=Math.max(i[t],n[t]),s=e.range,a=s[0],l=s[1];if(rl&&(o=l),r===l&&o===l)return null;var h=e.invert(r),u=e.invert(o);if(!e.isCategory)return function(e){return e>=h&&e<=u};var d=e.values.indexOf(h),c=e.values.indexOf(u),g=e.values.slice(d,c+1);return function(e){return g.includes(e)}}(b=$||($={})).FILTER="brush-filter-processing",b.RESET="brush-filter-reset",b.BEFORE_FILTER="brush-filter:beforefilter",b.AFTER_FILTER="brush-filter:afterfilter",b.BEFORE_RESET="brush-filter:beforereset",b.AFTER_RESET="brush-filter:afterreset";var h0=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dims=["x","y"],t.startPoint=null,t.isStarted=!1,t}return(0,ef.ZT)(t,e),t.prototype.hasDim=function(e){return this.dims.includes(e)},t.prototype.start=function(){var e=this.context;this.isStarted=!0,this.startPoint=e.getCurrentPoint()},t.prototype.filter=function(){if(rB(this.context)){var e,t,i=this.context.event.target.getCanvasBBox();e={x:i.x,y:i.y},t={x:i.maxX,y:i.maxY}}else{if(!this.isStarted)return;e=this.startPoint,t=this.context.getCurrentPoint()}if(!(5>Math.abs(e.x-t.x)||5>Math.abs(e.x-t.y))){var n=this.context,r=n.view,o={view:r,event:n.event,dims:this.dims};r.emit($.BEFORE_FILTER,o_.fromData(r,$.BEFORE_FILTER,o));var s=r.getCoordinate(),a=s.invert(t),l=s.invert(e);if(this.hasDim("x")){var h=r.getXScale(),u=hQ(h,"x",a,l);this.filterView(r,h.field,u)}if(this.hasDim("y")){var d=r.getYScales()[0],u=hQ(d,"y",a,l);this.filterView(r,d.field,u)}this.reRender(r,{source:$.FILTER}),r.emit($.AFTER_FILTER,o_.fromData(r,$.AFTER_FILTER,o))}},t.prototype.end=function(){this.isStarted=!1},t.prototype.reset=function(){var e=this.context.view;if(e.emit($.BEFORE_RESET,o_.fromData(e,$.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var t=e.getXScale();this.filterView(e,t.field,null)}if(this.hasDim("y")){var i=e.getYScales()[0];this.filterView(e,i.field,null)}this.reRender(e,{source:$.RESET}),e.emit($.AFTER_RESET,o_.fromData(e,$.AFTER_RESET,{}))},t.prototype.filterView=function(e,t,i){e.filter(t,i)},t.prototype.reRender=function(e,t){e.render(!0,t)},t}(rS),h1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.filterView=function(e,t,i){var n=rj(e);(0,em.S6)(n,function(e){e.filter(t,i)})},t.prototype.reRender=function(e){var t=rj(e);(0,em.S6)(t,function(e){e.render(!0)})},t}(h0),h2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.filter=function(){var e=rM(this.context),t=this.context.view,i=rV(t);if(rB(this.context)){var n=rU(this.context,10);n&&(0,em.S6)(i,function(e){n.includes(e)?e.show():e.hide()})}else if(e){var r=e.component,o=r.get("field");if(rP(e)){if(o){var s=r.getItemsByState("unchecked"),a=rJ(t,o),l=s.map(function(e){return e.name});(0,em.S6)(i,function(e){var t=rG(e,o),i=a.getText(t);l.indexOf(i)>=0?e.hide():e.show()})}}else if(rF(e)){var h=r.getValue(),u=h[0],d=h[1];(0,em.S6)(i,function(e){var t=rG(e,o);t>=u&&t<=d?e.show():e.hide()})}}},t.prototype.clear=function(){var e=rV(this.context.view);(0,em.S6)(e,function(e){e.show()})},t.prototype.reset=function(){this.clear()},t}(rS),h4=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.byRecord=!1,t}return(0,ef.ZT)(t,e),t.prototype.filter=function(){rB(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},t.prototype.filterByRecord=function(){var e=this.context.view,t=rU(this.context,10);if(t){var i=e.getXScale().field,n=e.getYScales()[0].field,r=t.map(function(e){return e.getModel().data}),o=rj(e);(0,em.S6)(o,function(e){var t=rV(e);(0,em.S6)(t,function(e){rZ(r,e.getModel().data,i,n)?e.show():e.hide()})})}},t.prototype.filterByBBox=function(){var e=this,t=rj(this.context.view);(0,em.S6)(t,function(t){var i=rH(e.context,t,10),n=rV(t);i&&(0,em.S6)(n,function(e){i.includes(e)?e.show():e.hide()})})},t.prototype.reset=function(){var e=rj(this.context.view);(0,em.S6)(e,function(e){var t=rV(e);(0,em.S6)(t,function(e){e.show()})})},t}(rS),h5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buttonGroup=null,t.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},t}return(0,ef.ZT)(t,e),t.prototype.getButtonCfg=function(){return(0,em.b$)(this.buttonCfg,this.cfg)},t.prototype.drawButton=function(){var e=this.getButtonCfg(),t=this.context.view.foregroundGroup.addGroup({name:e.name}),i=t.addShape({type:"text",name:"button-text",attrs:(0,ef.pi)({text:e.text},e.textStyle)}).getBBox(),n=om(e.padding),r=t.addShape({type:"rect",name:"button-rect",attrs:(0,ef.pi)({x:i.x-n[3],y:i.y-n[0],width:i.width+n[1]+n[3],height:i.height+n[0]+n[2]},e.style)});r.toBack(),t.on("mouseenter",function(){r.attr(e.activeStyle)}),t.on("mouseleave",function(){r.attr(e.style)}),this.buttonGroup=t},t.prototype.resetPosition=function(){var e=this.context.view.getCoordinate().convert({x:1,y:1}),t=this.buttonGroup,i=t.getBBox(),n=it.vs(null,[["t",e.x-i.width-10,e.y+i.height+5]]);t.setMatrix(n)},t.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},t.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},t.prototype.destroy=function(){var t=this.buttonGroup;t&&t.remove(),e.prototype.destroy.call(this)},t}(rS),h6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.starting=!1,t.dragStart=!1,t}return(0,ef.ZT)(t,e),t.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},t.prototype.drag=function(){if(this.startPoint){var e=this.context.getCurrentPoint(),t=this.context.view,i=this.context.event;this.dragStart?t.emit("drag",{target:i.target,x:i.x,y:i.y}):r$(e,this.startPoint)>4&&(t.emit("dragstart",{target:i.target,x:i.x,y:i.y}),this.dragStart=!0)}},t.prototype.end=function(){if(this.dragStart){var e=this.context.view,t=this.context.event;e.emit("dragend",{target:t.target,x:t.x,y:t.y})}this.starting=!1,this.dragStart=!1},t}(rS),h3=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.starting=!1,t.isMoving=!1,t.startPoint=null,t.startMatrix=null,t}return(0,ef.ZT)(t,e),t.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},t.prototype.move=function(){if(this.starting){var e=this.startPoint,t=this.context.getCurrentPoint();if(r$(e,t)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var i=this.context.view,n=it.vs(this.startMatrix,[["t",t.x-e.x,t.y-e.y]]);i.backgroundGroup.setMatrix(n),i.foregroundGroup.setMatrix(n),i.middleGroup.setMatrix(n)}}},t.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},t.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var e=this.context.view;e.backgroundGroup.resetMatrix(),e.foregroundGroup.resetMatrix(),e.middleGroup.resetMatrix(),this.isMoving=!1},t}(rS),h9=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dims=["x","y"],t.cfgFields=["dims"],t.cacheScaleDefs={},t}return(0,ef.ZT)(t,e),t.prototype.hasDim=function(e){return this.dims.includes(e)},t.prototype.getScale=function(e){var t=this.context.view;return"x"===e?t.getXScale():t.getYScales()[0]},t.prototype.resetDim=function(e){var t=this.context.view;if(this.hasDim(e)&&this.cacheScaleDefs[e]){var i=this.getScale(e);t.scale(i.field,this.cacheScaleDefs[e]),this.cacheScaleDefs[e]=null}},t.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},t}(rS),h7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.startPoint=null,t.starting=!1,t.startCache={},t}return(0,ef.ZT)(t,e),t.prototype.start=function(){var e=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var t=this.dims;(0,em.S6)(t,function(t){var i=e.getScale(t),n=i.min,r=i.max,o=i.values;e.startCache[t]={min:n,max:r,values:o}})},t.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},t.prototype.translate=function(){var e=this;if(this.starting){var t=this.startPoint,i=this.context.view.getCoordinate(),n=this.context.getCurrentPoint(),r=i.invert(t),o=i.invert(n),s=o.x-r.x,a=o.y-r.y,l=this.context.view,h=this.dims;(0,em.S6)(h,function(t){e.translateDim(t,{x:-1*s,y:-1*a})}),l.render(!0)}},t.prototype.translateDim=function(e,t){if(this.hasDim(e)){var i=this.getScale(e);i.isLinear&&this.translateLinear(e,i,t)}},t.prototype.translateLinear=function(e,t,i){var n=this.context.view,r=this.startCache[e],o=r.min,s=r.max,a=i[e]*(s-o);this.cacheScaleDefs[e]||(this.cacheScaleDefs[e]={nice:t.nice,min:o,max:s}),n.scale(t.field,{nice:!1,min:o+a,max:s+a})},t.prototype.reset=function(){e.prototype.reset.call(this),this.startPoint=null,this.starting=!1},t}(h9),h8=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.zoomRatio=.05,t}return(0,ef.ZT)(t,e),t.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},t.prototype.zoom=function(e){var t=this,i=this.dims;(0,em.S6)(i,function(i){t.zoomDim(i,e)}),this.context.view.render(!0)},t.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},t.prototype.zoomDim=function(e,t){if(this.hasDim(e)){var i=this.getScale(e);i.isLinear&&this.zoomLinear(e,i,t)}},t.prototype.zoomLinear=function(e,t,i){var n=this.context.view;this.cacheScaleDefs[e]||(this.cacheScaleDefs[e]={nice:t.nice,min:t.min,max:t.max});var r=this.cacheScaleDefs[e],o=r.max-r.min,s=t.min,a=t.max,l=i*o,h=s-l,u=a+l,d=(u-h)/o;u>h&&d<100&&d>.01&&n.scale(t.field,{nice:!1,min:s-l,max:a+l})},t}(h9),ue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.scroll=function(e){var t=this.context,i=t.view,n=t.event;if(i.getOptions().scrollbar){var r=(null==e?void 0:e.wheelDelta)||1,o=i.getController("scrollbar"),s=i.getXScale(),a=i.getOptions().data,l=(0,em.dp)((0,em.I)(a,s.field)),h=(0,em.dp)(s.values),u=Math.floor((l-h)*o.getValue())+(n.gEvent.originalEvent.deltaY>0?r:-r),d=r/(l-h)/1e4,c=(0,em.uZ)(u/(l-h)+d,0,1);o.setValue(c)}},t}(rS);function ut(e){return e.isInPlot()}function ui(e){return e.gEvent.preventDefault(),e.gEvent.originalEvent.deltaY>0}A=r9(sa),oo[(0,em.vl)("dark")]=or(A),eC.canvas=ed,eC.svg=eg,oA("Polygon",la),oA("Interval",li),oA("Schema",ll),oA("Path",a0),oA("Point",ls),oA("Line",ln),oA("Area",a4),oA("Edge",a5),oA("Heatmap",a6),oA("Violin",lh),oV("base",o3),oV("interval",lv),oV("pie",lC),oV("polar",l_),oW("overlap",function(e,t,i,n){var r=new ly;(0,em.S6)(t,function(e){for(var t=e.find(function(e){return"text"===e.get("type")}),i=t.attr(),n=i.x,o=i.y,s=!1,a=0;a<=8;a++){var l=function(e,t,i,n){var r=e.getCanvasBBox(),o=r.width,s=r.height,a={x:t,y:i,textAlign:"center"};switch(n){case 0:a.y-=s+1,a.x+=1,a.textAlign="left";break;case 1:a.y-=s+1,a.x-=1,a.textAlign="right";break;case 2:a.y+=s+1,a.x-=1,a.textAlign="right";break;case 3:a.y+=s+1,a.x+=1,a.textAlign="left";break;case 5:a.y-=2*s+2;break;case 6:a.y+=2*s+2;break;case 7:a.x+=o+1,a.textAlign="left";break;case 8:a.x-=o+1,a.textAlign="right"}return e.attr(a),e.getCanvasBBox()}(t,n,o,a);if(r.hasGap(l)){r.fillGap(l),s=!0;break}}s||e.remove(!0)}),r.destroy()}),oW("distribute",function(e,t,i,n){if(e.length&&t.length){var r=e[0]?e[0].offset:0,o=t[0].get("coordinate"),s=o.getRadius(),a=o.getCenter();if(r>0){var l=2*(s+r)+28,h={start:o.start,end:o.end},u=[[],[]];e.forEach(function(e){e&&("right"===e.textAlign?u[0].push(e):u[1].push(e))}),u.forEach(function(e,i){var n=l/14;e.length>n&&(e.sort(function(e,t){return t["..percent"]-e["..percent"]}),e.splice(n,e.length-n)),e.sort(function(e,t){return e.y-t.y}),function(e,t,i,n,r,o){var s,a=!0,l=n.start,h=n.end,u=Math.min(l.y,h.y),d=Math.abs(l.y-h.y),c=0,g=Number.MIN_VALUE,p=t.map(function(e){return e.y>c&&(c=e.y),e.yd&&(d=c-u);a;)for(p.forEach(function(e){var t=(Math.min.apply(g,e.targets)+Math.max.apply(g,e.targets))/2;e.pos=Math.min(Math.max(g,t-e.size/2),d-e.size)}),a=!1,s=p.length;s--;)if(s>0){var f=p[s-1],m=p[s];f.pos+f.size>m.pos&&(f.size+=m.size,f.targets=f.targets.concat(m.targets),f.pos+f.size>d&&(f.pos=d-f.size),p.splice(s,1),a=!0)}s=0,p.forEach(function(e){var n=u+i/2;e.targets.forEach(function(){t[s].y=e.pos+n,n+=i,s++})});for(var v={},E=0;Ee.x+e.width+i||t.x+t.widthe.y+e.height+i||t.y+t.heighth.min)||!(l.minr.maxX||n.maxY>r.maxY)&&e.remove(!0)})}),oW("limit-in-canvas",function(e,t,i,n){(0,em.S6)(t,function(e){var t=n.minX,i=n.minY,r=n.maxX,o=n.maxY,s=e.getCanvasBBox(),a=s.minX,l=s.minY,h=s.maxX,u=s.maxY,d=s.x,c=s.y,g=s.width,p=s.height,f=d,m=c;(ar?f=r-g:h>r&&(f-=h-r),l>o?m=o-p:u>o&&(m-=u-o),(f!==d||m!==c)&&o0(e,f-d,m-c)})}),oW("limit-in-plot",function(e,t,i,n,r){if(!(t.length<=0)){var o,s,a,l,h,u,d,c=(null==r?void 0:r.direction)||["top","right","bottom","left"],g=(null==r?void 0:r.action)||"translate",p=(null==r?void 0:r.margin)||0,f=t[0].get("coordinate");if(f){var m=(void 0===(o=p)&&(o=0),s=f.start,a=f.end,l=f.getWidth(),h=f.getHeight(),u=Math.min(s.x,a.x),d=Math.min(s.y,a.y),re.fromRange(u-o,d-o,u+l+o,d+h+o)),v=m.minX,E=m.minY,_=m.maxX,C=m.maxY;(0,em.S6)(t,function(e){var t=e.getCanvasBBox(),i=t.minX,n=t.minY,r=t.maxX,o=t.maxY,s=t.x,a=t.y,l=t.width,h=t.height,u=s,d=a;if(c.indexOf("left")>=0&&(i=0&&(n=0&&(i>_?u=_-l:r>_&&(u-=r-_)),c.indexOf("bottom")>=0&&(n>C?d=C-h:o>C&&(d-=o-C)),u!==s||d!==a){var p=u-s;"translate"===g?o0(e,p,d-a):"ellipsis"===g?e.findAll(function(e){return"text"===e.get("type")}).forEach(function(e){var t=(0,em.ei)(e.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),i=e.getCanvasBBox(),n=lF(e.attr("text"),i.width-Math.abs(p),t);e.attr("text",n)}):e.hide()}})}}}),oW("pie-outer",function(e,t,i,n){var r=(0,em.hX)(e,function(e){return!(0,em.UM)(e)}),o=t[0]&&t[0].get("coordinate");if(o){for(var s=o.getCenter(),a=o.getRadius(),l={},h=0;hi&&(e.sort(function(e,t){return t.percent-e.percent}),(0,em.S6)(e,function(e,t){t+1>i&&(l[e.id].set("visible",!1),e.invisible=!0)})),lS(e,d,_)}),(0,em.S6)(p,function(e,t){(0,em.S6)(e,function(e){var i=t===g,n=l[e.id].getChildByIndex(0);if(n){var r=a+c,h=e.y-s.y,u=Math.pow(r,2),d=Math.pow(h,2),p=Math.sqrt(u-d>0?u-d:0),f=Math.abs(Math.cos(e.angle)*r);i?e.x=s.x+Math.max(p,f):e.x=s.x-Math.max(p,f)}n&&(n.attr("y",e.y),n.attr("x",e.x)),function(e,t){var i=t.getCenter(),n=t.getRadius();if(e&&e.labelLine){var r=e.angle,o=e.offset,s=n2(i.x,i.y,n,r),a=e.x+(0,em.U2)(e,"offsetX",0)*(Math.cos(r)>0?1:-1),l=e.y+(0,em.U2)(e,"offsetY",0)*(Math.sin(r)>0?1:-1),h={x:a-4*Math.cos(r),y:l-4*Math.sin(r)},u=e.labelLine.smooth,d=[],c=h.x-i.x,g=Math.atan((h.y-i.y)/c);if(c<0&&(g+=Math.PI),!1===u){(0,em.Kn)(e.labelLine)||(e.labelLine={});var p=0;(r<0&&r>-Math.PI/2||r>1.5*Math.PI)&&h.y>s.y&&(p=1),r>=0&&rs.y&&(p=1),r>=Math.PI/2&&rh.y&&(p=1),(r<-Math.PI/2||r>=Math.PI&&r<1.5*Math.PI)&&s.y>h.y&&(p=1);var f=o/2>4?4:Math.max(o/2-1,0),m=n2(i.x,i.y,n+f,r),v=n2(i.x,i.y,n+o/2,g);d.push("M "+s.x+" "+s.y),d.push("L "+m.x+" "+m.y),d.push("A "+i.x+" "+i.y+" 0 0 "+p+" "+v.x+" "+v.y),d.push("L "+h.x+" "+h.y)}else{var m=n2(i.x,i.y,n+(o/2>4?4:Math.max(o/2-1,0)),r),E=s.x11253517471925921e-23&&d.push.apply(d,["C",h.x+4*E,h.y,2*m.x-s.x,2*m.y-s.y,s.x,s.y]),d.push("L "+s.x+" "+s.y)}e.labelLine.path=d.join(" ")}}(e,o)})})}}}),oW("adjust-color",function(e,t,i){if(0!==i.length){var n=i[0].get("element").geometry.theme,r=n.labels||{},o=r.fillColorLight,s=r.fillColorDark;i.forEach(function(e,i){var r=t[i].find(function(e){return"text"===e.get("type")}),a=re.fromObject(e.getBBox()),l=re.fromObject(r.getCanvasBBox()),h=!a.contains(l),u=lO(e.attr("fill"));h?r.attr(n.overflowLabels.style):u?o&&r.attr("fill",o):s&&r.attr("fill",s)})}}),oW("interval-adjust-position",function(e,t,i){if(0!==i.length){var n,r=null===(n=i[0])||void 0===n?void 0:n.get("element"),o=null==r?void 0:r.geometry;o&&"interval"===o.type&&(o.getAdjust("stack")||t.every(function(e,t){var n,r,s,a,l=i[t];return n=o.coordinate,r=o2(e),s=re.fromObject(r.getCanvasBBox()),a=re.fromObject(l.getBBox()),n.isTransposed?a.height>=s.height:a.width>=s.width}))&&i.forEach(function(e,i){var n,r,s,a=t[i];n=o.coordinate,r=re.fromObject(e.getBBox()),s=o2(a),n.isTransposed?s.attr({x:r.minX+r.width/2,textAlign:"center"}):s.attr({y:r.minY+r.height/2,textBaseline:"middle"})})}}),oW("interval-hide-overlap",function(e,t,i){if(0!==i.length){var n,r,o,s=null===(o=i[0])||void 0===o?void 0:o.get("element"),a=null==s?void 0:s.geometry;if(a&&"interval"===a.type){var l=(n=[],r=Math.max(Math.floor(t.length/500),1),(0,em.S6)(t,function(e,t){t%r==0?n.push(e):e.set("visible",!1)}),n),h=a.getXYFields()[0],u=[],d=[],c=(0,em.vM)(l,function(e){return e.get("data")[h]}),g=(0,em.jj)((0,em.UI)(l,function(e){return e.get("data")[h]}));l.forEach(function(e){e.set("visible",!0)});var p=function(e){e&&(e.length&&d.push(e.pop()),d.push.apply(d,e))};for((0,em.dp)(g)>0&&p(c[g.shift()]),(0,em.dp)(g)>0&&p(c[g.pop()]),(0,em.S6)(g.reverse(),function(e){p(c[e])});d.length>0;){var f=d.shift();f.get("visible")&&(function(e,t){var i=e.getBBox();return(0,em.G)(t,function(e){var t=e.getBBox();return Math.max(0,Math.min(i.x+i.width+2,t.x+t.width+2)-Math.max(i.x-2,t.x-2))*Math.max(0,Math.min(i.y+i.height+2,t.y+t.height+2)-Math.max(i.y-2,t.y-2))>0})}(f,u)?f.set("visible",!1):u.push(f))}}}}),oW("point-adjust-position",function(e,t,i,n,r){if(0!==i.length){var o,s,a=null===(o=i[0])||void 0===o?void 0:o.get("element"),l=null==a?void 0:a.geometry;if(l&&"point"===l.type){var h=l.getXYFields(),u=h[0],d=h[1],c=(0,em.vM)(t,function(e){return e.get("data")[u]}),g=[],p=r&&r.offset||(null===(s=e[0])||void 0===s?void 0:s.offset)||12;(0,em.UI)((0,em.XP)(c).reverse(),function(e){for(var t,i,n,r,o=(t=c[e],i=l.getXYFields()[1],n=[],(r=t.sort(function(e,t){return e.get("data")[i]-e.get("data")[i]})).length>0&&n.push(r.shift()),r.length>0&&n.push(r.pop()),n.push.apply(n,r),n);o.length;){var s=o.shift(),a=o2(s);if(lx(g,s,function(e,t){return e.get("data")[u]===t.get("data")[u]&&e.get("data")[d]===t.get("data")[d]})){a.set("visible",!1);continue}var h=lD(g,s),f=!1;if(h&&(a.attr("y",a.attr("y")+2*p),f=lD(g,s)),f){a.set("visible",!1);continue}g.push(s)}})}}}),oW("pie-spider",function(e,t,i,n){var r=t[0]&&t[0].get("coordinate");if(r){for(var o=r.getCenter(),s=r.getRadius(),a={},l=0;lo.x||e.x===o.x&&e.y>o.y,i=(0,em.UM)(e.offsetX)?4:e.offsetX,n=n2(o.x,o.y,s+4,e.angle);e.x=o.x+(t?1:-1)*(s+(d+i)),e.y=n.y}});var c=r.start,g=r.end,p="right",f=(0,em.vM)(e,function(e){return e.xm&&(m=Math.min(t,Math.abs(c.y-g.y)))});var v={minX:c.x,maxX:g.x,minY:o.y-m/2,maxY:o.y+m/2};(0,em.S6)(f,function(e,t){var i=m/u;e.length>i&&(e.sort(function(e,t){return t.percent-e.percent}),(0,em.S6)(e,function(e,t){t>i&&(a[e.id].set("visible",!1),e.invisible=!0)})),lS(e,u,v)});var E=v.minY,_=v.maxY;(0,em.S6)(f,function(e,t){var i=t===p;(0,em.S6)(e,function(e){var t=(0,em.U2)(a,e&&[e.id]);if(t){if(e.y_){t.set("visible",!1);return}var n=t.getChildByIndex(0),o=n.getCanvasBBox(),s={x:i?o.x:o.maxX,y:o.y+o.height/2};o0(n,e.x-s.x,e.y-s.y),e.labelLine&&function(e,t,i){var n=t.getCenter(),r=t.getRadius(),o={x:e.x-(i?4:-4),y:e.y},s=n2(n.x,n.y,r+4,e.angle),a={x:o.x,y:o.y},l={x:s.x,y:s.y},h=n2(n.x,n.y,r,e.angle),u="";if(o.y!==s.y){var d=i?4:-4;a.y=o.y,e.angle<0&&e.angle>=-Math.PI/2&&(a.x=Math.max(s.x,o.x-d),o.y0&&e.angles.y?l.y=a.y:(l.y=s.y,l.x=Math.max(l.x,a.x-d))),e.angle>Math.PI/2&&(a.x=Math.min(s.x,o.x-d),o.y>s.y?l.y=a.y:(l.y=s.y,l.x=Math.min(l.x,a.x-d))),e.angle<-Math.PI/2&&(a.x=Math.min(s.x,o.x-d),o.y["path","line","area"].indexOf(l.type))){var h=l.getXYFields(),u=h[0],d=h[1],c=(0,em.vM)(t,function(e){return e.get("data")[u]}),g=[],p=r&&r.offset||(null===(s=e[0])||void 0===s?void 0:s.offset)||12;(0,em.UI)((0,em.XP)(c).reverse(),function(e){for(var t,i,n,r,o=(t=c[e],i=l.getXYFields()[1],n=[],(r=t.sort(function(e,t){return e.get("data")[i]-e.get("data")[i]})).length>0&&n.push(r.shift()),r.length>0&&n.push(r.pop()),n.push.apply(n,r),n);o.length;){var s=o.shift(),a=o2(s);if(lM(g,s,function(e,t){return e.get("data")[u]===t.get("data")[u]&&e.get("data")[d]===t.get("data")[d]})){a.set("visible",!1);continue}var h=lk(g,s),f=!1;if(h&&(a.attr("y",a.attr("y")+2*p),f=lk(g,s)),f){a.set("visible",!1);continue}g.push(s)}})}}}),oO("fade-in",function(e,t,i){var n={fillOpacity:(0,em.UM)(e.attr("fillOpacity"))?1:e.attr("fillOpacity"),strokeOpacity:(0,em.UM)(e.attr("strokeOpacity"))?1:e.attr("strokeOpacity"),opacity:(0,em.UM)(e.attr("opacity"))?1:e.attr("opacity")};e.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),e.animate(n,t)}),oO("fade-out",function(e,t,i){var n=t.easing,r=t.duration,o=t.delay;e.animate({fillOpacity:0,strokeOpacity:0,opacity:0},r,n,function(){e.remove(!0)},o)}),oO("grow-in-x",function(e,t,i){lB(e,t,i.coordinate,i.minYPoint,"x")}),oO("grow-in-xy",function(e,t,i){lB(e,t,i.coordinate,i.minYPoint,"xy")}),oO("grow-in-y",function(e,t,i){lB(e,t,i.coordinate,i.minYPoint,"y")}),oO("scale-in-x",function(e,t,i){var n=e.getBBox(),r=e.get("origin").mappingData.points,o=r[0].y-r[1].y>0?n.maxX:n.minX,s=(n.minY+n.maxY)/2;e.applyToMatrix([o,s,1]);var a=it.vs(e.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);e.setMatrix(a),e.animate({matrix:it.vs(e.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},t)}),oO("scale-in-y",function(e,t,i){var n=e.getBBox(),r=e.get("origin").mappingData,o=(n.minX+n.maxX)/2,s=r.points,a=s[0].y-s[1].y<=0?n.maxY:n.minY;e.applyToMatrix([o,a,1]);var l=it.vs(e.getMatrix(),[["t",-o,-a],["s",1,.01],["t",o,a]]);e.setMatrix(l),e.animate({matrix:it.vs(e.getMatrix(),[["t",-o,-a],["s",1,100],["t",o,a]])},t)}),oO("wave-in",function(e,t,i){var n=ro(i.coordinate,20),r=n.type,o=n.startState,s=n.endState,a=e.setClip({type:r,attrs:o});a.animate(s,(0,ef.pi)((0,ef.pi)({},t),{callback:function(){e&&!e.get("destroyed")&&e.set("clipShape",null),a.remove(!0)}}))}),oO("zoom-in",function(e,t,i){lW(e,t,"zoomIn")}),oO("zoom-out",function(e,t,i){lW(e,t,"zoomOut")}),oO("position-update",function(e,t,i){var n=i.toAttrs,r=n.x,o=n.y;delete n.x,delete n.y,e.attr(n),e.animate({x:r,y:o},t)}),oO("sector-path-update",function(e,t,i){var n=i.toAttrs,r=i.coordinate,o=n.path||[],s=o.map(function(e){return e[0]});if(!(o.length<1)){var a=lV(o),l=a.startAngle,h=a.endAngle,u=a.radius,d=a.innerRadius,c=lV(e.attr("path")),g=c.startAngle,p=c.endAngle,f=r.getCenter(),m=l-g,v=h-p;if(0===m&&0===v){e.attr("path",o);return}e.animate(function(e){var t=g+e*m,i=p+e*v;return(0,ef.pi)((0,ef.pi)({},n),{path:(0,em.Xy)(s,["M","A","A","Z"])?n5(f.x,f.y,u,t,i):n4(f.x,f.y,u,t,i,d)})},(0,ef.pi)((0,ef.pi)({},t),{callback:function(){e.attr("path",o)}}))}}),oO("path-in",function(e,t,i){var n=e.getTotalLength();e.attr("lineDash",[n]),e.animate(function(e){return{lineDashOffset:(1-e)*n}},t)}),rC("rect",lj),rC("mirror",lX),rC("list",lK),rC("matrix",l$),rC("circle",lY),rC("tree",lq),ov.axis=l9,ov.legend=ht,ov.tooltip=oN,ov.annotation=l0,ov.slider=hi,ov.scrollbar=hn,rA("tooltip",hs),rA("sibling-tooltip",ha),rA("ellipsis-text",hl),rA("element-active",hc),rA("element-single-active",hv),rA("element-range-active",hf),rA("element-highlight",hb),rA("element-highlight-by-x",hR),rA("element-highlight-by-color",hA),rA("element-single-highlight",hN),rA("element-range-highlight",hL),rA("element-sibling-highlight",hL,{effectSiblings:!0,effectByRecord:!0}),rA("element-selected",hw),rA("element-single-selected",hO),rA("element-range-selected",hI),rA("element-link-by-color",hg),rA("active-region",ho),rA("list-active",hD),rA("list-selected",hU),rA("list-highlight",hB),rA("list-unchecked",hH),rA("list-checked",hG),rA("legend-item-highlight",hB,{componentNames:["legend"]}),rA("axis-label-highlight",hB,{componentNames:["axis"]}),rA("rect-mask",hK),rA("x-rect-mask",hX,{dim:"x"}),rA("y-rect-mask",hX,{dim:"y"}),rA("circle-mask",hY),rA("path-mask",hj),rA("smooth-path-mask",hq),rA("cursor",hZ),rA("data-filter",hJ),rA("brush",h0),rA("brush-x",h0,{dims:["x"]}),rA("brush-y",h0,{dims:["y"]}),rA("sibling-filter",h1),rA("sibling-x-filter",h1),rA("sibling-y-filter",h1),rA("element-filter",h2),rA("element-sibling-filter",h4),rA("element-sibling-filter-record",h4,{byRecord:!0}),rA("view-drag",h6),rA("view-move",h3),rA("scale-translate",h7),rA("scale-zoom",h8),rA("reset-button",h5,{name:"reset-button",text:"reset"}),rA("mousewheel-scroll",ue),r3("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),r3("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),r3("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),r3("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),r3("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),r3("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),r3("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),r3("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),r3("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),r3("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),r3("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),r3("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(e){return!e.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(e){return!e.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),r3("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:ut,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:ut,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:ut,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),r3("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),r3("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:ut,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:ut,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:ut,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),r3("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:ut,action:"path-mask:start"},{trigger:"mousedown",isEnable:ut,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),r3("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),r3("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","data-filter:filter"]}]}),r3("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),r3("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),r3("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","element-filter:filter"]}]}),r3("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),r3("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(e){return ui(e.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(e){return!ui(e.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),r3("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),r3("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var un=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"];function ur(e){for(var t=[],i=1;i=0}),r=i.every(function(e){return 0>=(0,em.U2)(e,[t])});return n?{min:0}:r?{max:0}:{}}function ul(e,t,i,n,r){if(void 0===r&&(r=[]),!Array.isArray(e))return{nodes:[],links:[]};var o=[],s={},a=-1;return e.forEach(function(e){var l=e[t],h=e[i],u=e[n],d=us(e,r);s[l]||(s[l]=(0,ef.pi)({id:++a,name:l},d)),s[h]||(s[h]=(0,ef.pi)({id:++a,name:h},d)),o.push((0,ef.pi)({source:s[l].id,target:s[h].id,value:u},d))}),{nodes:Object.values(s).sort(function(e,t){return e.id-t.id}),links:o}}function uh(e,t){var i=(0,em.hX)(e,function(e){var i=e[t];return null===i||"number"==typeof i&&!isNaN(i)});return uo(X.WARN,i.length===e.length,"illegal data existed in chart data."),i}(R=X||(X={})).ERROR="error",R.WARN="warn",R.INFO="log";var uu={}.toString,ud=function(e,t){return uu.call(e)==="[object "+t+"]"},uc=function(e){if(!("object"==typeof e&&null!==e)||!ud(e,"Object"))return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},ug=function(e,t,i,n){for(var r in i=i||0,n=n||5,t)if(Object.prototype.hasOwnProperty.call(t,r)){var o=t[r];o?uc(o)?(uc(e[r])||(e[r]={}),i=(0,em.U2)(e,["views","length"],0)?uE(e):(0,em.u4)(e.views,function(e,t){return e.concat(u_(t))},uE(e))}function uC(e){if(!(0,em.P9)(e,"Object"))return e;var t=(0,ef.pi)({},e);return t.formatter&&!t.content&&(t.content=t.formatter),t}function uS(e){return"number"==typeof e&&!isNaN(e)}function uy(e){if((0,em.hj)(e))return[e,e,e,e];if((0,em.kJ)(e)){var t=e.length;if(1===t)return[e[0],e[0],e[0],e[0]];if(2===t)return[e[0],e[1],e[0],e[1]];if(3===t)return[e[0],e[1],e[2],e[1]];if(4===t)return e}return[0,0,0,0]}function uT(e,t,i){void 0===t&&(t="bottom"),void 0===i&&(i=25);var n=uy(e),r=[t.startsWith("top")?i:0,t.startsWith("right")?i:0,t.startsWith("bottom")?i:0,t.startsWith("left")?i:0];return[n[0]+r[0],n[1]+r[1],n[2]+r[2],n[3]+r[3]]}function ub(e){var t=e.map(function(e){return uy(e)}),i=[0,0,0,0];return t.length>0&&(i=i.map(function(e,i){return t.forEach(function(n,r){e+=t[r][i]}),e})),i}(0,em.HP)(function(e,t){void 0===t&&(t={});var i=t.fontSize,n=t.fontFamily,r=t.fontWeight,o=t.fontStyle,s=t.fontVariant,a=(j||(j=document.createElement("canvas").getContext("2d")),j);return a.font=[o,r,s,"".concat(i,"px"),void 0===n?"sans-serif":n].join(" "),a.measureText((0,em.HD)(e)?e:"").width},function(e,t){return void 0===t&&(t={}),(0,ef.ev)([e],(0,em.VO)(t),!0).join("")});var uA=function(e,t,i,n){var r,o,s,a,l=[],h=!!n;if(h){s=[1/0,1/0],a=[-1/0,-1/0];for(var u=0,d=e.length;u"},key:"".concat(0===n?"top":"bottom","-statistic")},us(t,["offsetX","offsetY","rotate","style","formatter"])))}})},uw=function(e,t,i){var n=t.statistic;[n.title,n.content].forEach(function(t){if(t){var n=(0,em.mf)(t.style)?t.style(i):t.style;e.annotation().html((0,ef.pi)({position:["50%","100%"],html:function(e,r){var o=r.getCoordinate(),s=r.views[0].getCoordinate(),a=s.getCenter(),l=s.getRadius(),h=Math.max(Math.sin(s.startAngle),Math.sin(s.endAngle))*l,u=a.y+h-o.y.start-parseFloat((0,em.U2)(n,"fontSize",0)),d=o.getRadius()*o.innerRadius*2;uN(e,(0,ef.pi)({width:"".concat(d,"px"),transform:"translate(-50%, ".concat(u,"px)")},uL(n)));var c=r.getData();if(t.customHtml)return t.customHtml(e,r,i,c);var g=t.content;return t.formatter&&(g=t.formatter(i,c)),g?(0,em.HD)(g)?g:"".concat(g):"
      "}},us(t,["offsetX","offsetY","rotate","style","formatter"])))}})};function uO(e,t){return t?(0,em.u4)(t,function(e,t,i){return e.replace(RegExp("{\\s*".concat(i,"\\s*}"),"g"),t)},e):e}function ux(e,t){return e.views.find(function(e){return e.id===t})}function uD(e){var t=e.parent;return t?t.views:[]}function uM(e){return uD(e).filter(function(t){return t!==e})}function uk(e,t,i){void 0===i&&(i=e.geometries),"boolean"==typeof t?e.animate(t):e.animate(!0),(0,em.S6)(i,function(e){var i;i=(0,em.mf)(t)?t(e.type||e.shapeType,e)||!0:t,e.animate(i)})}function uP(){return"object"==typeof window?null==window?void 0:window.devicePixelRatio:2}function uF(e,t){void 0===t&&(t=e);var i=document.createElement("canvas"),n=uP();return i.width=e*n,i.height=t*n,i.style.width="".concat(e,"px"),i.style.height="".concat(t,"px"),i.getContext("2d").scale(n,n),i}function uB(e,t,i,n){void 0===n&&(n=i);var r=t.backgroundColor,o=t.opacity;e.globalAlpha=o,e.fillStyle=r,e.beginPath(),e.fillRect(0,0,i,n),e.closePath()}function uU(e,t,i){var n=e+t;return i?2*n:n}function uH(e,t){return t?[[e*(1/4),e*(1/4)],[e*(3/4),e*(3/4)]]:[[.5*e,.5*e]]}function uV(e,t){var i=t*Math.PI/180;return{a:Math.cos(i)*(1/e),b:Math.sin(i)*(1/e),c:-Math.sin(i)*(1/e),d:Math.cos(i)*(1/e),e:0,f:0}}var uW={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0},uG={rotation:45,spacing:5,opacity:1,backgroundColor:"transparent",strokeOpacity:.5,stroke:"#fff",lineWidth:2},uz={size:6,padding:1,isStagger:!0,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0};function uY(e){var t=this;return function(i){var n,r=i.options,o=i.chart,s=r.pattern;return s?up({},i,{options:((n={})[e]=function(i){for(var n,a,l,h=[],u=1;u0){var i;(function(e,t,i){var n,r=e.view,o=e.geometry,s=e.group,a=e.options,l=e.horizontal,h=a.offset,u=a.size,d=a.arrow,c=r.getCoordinate(),g=dP(c,t)[3],p=dP(c,i)[0],f=p.y-g.y,m=p.x-g.x;if("boolean"!=typeof d){var v=d.headSize,E=a.spacing;l?(m-v)/2_){var S=Math.max(1,Math.ceil(_/(C/f.length))-1),y="".concat(f.slice(0,S),"...");E.attr("text",y)}}}}(l,i,e)}})}})),e}),(o=!s.isStack,function(e){var t=e.chart,i=e.options.connectedArea,n=function(){t.removeInteraction(dD.hover),t.removeInteraction(dD.click)};if(!o&&i){var r=i.trigger||"hover";n(),t.interaction(dD[r],{start:dM(r,i.style)})}else n();return e}),u2)(e)}function dY(e){var t=e.options,i=t.xField,n=t.yField,r=t.xAxis,o=t.yAxis,s={left:"bottom",right:"top",top:"left",bottom:"right"},a=!1!==o&&(0,ef.pi)({position:s[(null==o?void 0:o.position)||"left"]},o),l=!1!==r&&(0,ef.pi)({position:s[(null==r?void 0:r.position)||"bottom"]},r);return(0,ef.pi)((0,ef.pi)({},e),{options:(0,ef.pi)((0,ef.pi)({},t),{xField:n,yField:i,xAxis:a,yAxis:l})})}function dK(e){var t=e.options.label;return!t||t.position||(t.position="left",t.layout||(t.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),up({},e,{options:{label:t}})}function d$(e){var t=e.options,i=t.seriesField,n=t.isStack,r=t.legend;return i?!1!==r&&(r=(0,ef.pi)({position:n?"top-left":"right-top"},r||{})):r=!1,up({},e,{options:{legend:r}})}function dX(e){var t=[{type:"transpose"},{type:"reflectY"}].concat(e.options.coordinate||[]);return up({},e,{options:{coordinate:t}})}function dj(e){var t=e.chart,i=e.options,n=i.barStyle,r=i.barWidthRatio,o=i.minBarWidth,s=i.maxBarWidth,a=i.barBackground;return dz({chart:t,options:(0,ef.pi)((0,ef.pi)({},i),{columnStyle:n,columnWidthRatio:r,minColumnWidth:o,maxColumnWidth:s,columnBackground:a})},!0)}function dq(e){return um(dY,dK,d$,u$,dX,dj)(e)}r3(dD.hover,{start:dM(dD.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),r3(dD.click,{start:dM(dD.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]});var dZ=up({},dc.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),dJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="bar",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return dZ},t.prototype.changeData=function(e){this.updateOption({data:e});var t,i,n,r,o,s=this.chart,a=this.options,l=a.isPercent,h=a.xField,u=a.yField,d=a.xAxis,c=a.yAxis;h=(r=[u,h])[0],u=r[1],d=(o=[c,d])[0],c=o[1],dU({chart:s,options:(0,ef.pi)((0,ef.pi)({},a),{xField:h,yField:u,yAxis:c,xAxis:d})}),s.changeData((t=h,i=u,n=h,l?dg(e,t,i,n):e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return dq},t}(dc),dQ=up({},dc.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),d0=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="column",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return dQ},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.options,i=t.yField,n=t.xField,r=t.isPercent;dU({chart:this.chart,options:this.options}),this.chart.changeData(r?dg(e,i,n,i):e)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return dz},t}(dc),d1="$$percentage$$",d2="$$mappingValue$$",d4="$$conversion$$",d5="$$totalPercentage$$",d6="$$x$$",d3="$$y$$",d9={appendPadding:[0,80],minSize:0,maxSize:1,meta:((q={})[d2]={min:0,max:1,nice:!1},q),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}},d7="CONVERSION_TAG_NAME";function d8(e,t,i){var n=i.yField,r=i.maxSize,o=i.minSize,s=(0,em.U2)((0,em.UT)(t,n),[n]),a=(0,em.hj)(r)?r:1,l=(0,em.hj)(o)?o:0;return(0,em.UI)(e,function(t,i){var r=(t[n]||0)/s;return t[d1]=r,t[d2]=(a-l)*r+l,t[d4]=[(0,em.U2)(e,[i-1,n]),t[n]],t})}function ce(e){return function(t){var i=t.chart,n=t.options,r=n.conversionTag,o=n.filteredData||i.getOptions().data;if(r){var s=r.formatter;o.forEach(function(t,n){if(!(n<=0||Number.isNaN(t[d2]))){var a=e(t,n,o,{top:!0,name:d7,text:{content:(0,em.mf)(s)?s(t,o):s,offsetX:r.offsetX,offsetY:r.offsetY,position:"end",autoRotate:!1,style:(0,ef.pi)({textAlign:"start",textBaseline:"middle"},r.style)}});i.annotation().line(a)}})}return t}}function ct(e){var t=e.chart,i=e.options,n=i.data,r=void 0===n?[]:n,o=d8(r,r,{yField:i.yField,maxSize:i.maxSize,minSize:i.minSize});return t.data(o),e}function ci(e){var t=e.chart,i=e.options,n=i.xField,r=i.yField,o=i.color,s=i.tooltip,a=i.label,l=i.shape,h=i.funnelStyle,u=i.state,d=u9(s,[n,r]),c=d.fields,g=d.formatter;return de({chart:t,options:{type:"interval",xField:n,yField:d2,colorField:n,tooltipFields:(0,em.kJ)(c)&&c.concat([d1,d4]),mapping:{shape:void 0===l?"funnel":l,tooltip:g,color:o,style:h},label:a,state:u}}),uv(e.chart,"interval").adjust("symmetric"),e}function cn(e){var t=e.chart,i=e.options.isTransposed;return t.coordinate({type:"rect",actions:i?[]:[["transpose"],["scale",1,-1]]}),e}function cr(e){var t=e.options,i=e.chart,n=t.maxSize,r=(0,em.U2)(i,["geometries","0","dataArray"],[]),o=(0,em.U2)(i,["options","data","length"]),s=(0,em.UI)(r,function(e){return(0,em.U2)(e,["0","nextPoints","0","x"])*o-.5});return ce(function(e,t,i,r){var o=n-(n-e[d2])/2;return(0,ef.pi)((0,ef.pi)({},r),{start:[s[t-1]||t-.5,o],end:[s[t-1]||t-.5,o+.05]})})(e),e}function co(e){return um(ct,ci,cn,cr)(e)}function cs(e){var t,i=e.chart,n=e.options,r=n.data,o=void 0===r?[]:r,s=n.yField;return i.data(o),i.scale(((t={})[s]={sync:!0},t)),e}function ca(e){var t=e.chart,i=e.options,n=i.data,r=i.xField,o=i.yField,s=i.color,a=i.compareField,l=i.isTransposed,h=i.tooltip,u=i.maxSize,d=i.minSize,c=i.label,g=i.funnelStyle,p=i.state,f=i.showFacetTitle;return t.facet("mirror",{fields:[a],transpose:!l,padding:l?0:[32,0,0,0],showTitle:f,eachView:function(e,t){var i=l?t.rowIndex:t.columnIndex;l||e.coordinate({type:"rect",actions:[["transpose"],["scale",0===i?-1:1,-1]]});var f=d8(t.data,n,{yField:o,maxSize:u,minSize:d});e.data(f);var m=u9(h,[r,o,a]),v=m.fields,E=m.formatter;de({chart:e,options:{type:"interval",xField:r,yField:d2,colorField:r,tooltipFields:(0,em.kJ)(v)&&v.concat([d1,d4]),mapping:{shape:"funnel",tooltip:E,color:s,style:g},label:!1!==c&&up({},l?{offset:0===i?10:-23,position:0===i?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===i?"end":"start"}},c),state:p}})}}),e}function cl(e){var t=e.chart,i=e.index,n=e.options,r=n.conversionTag,o=n.isTransposed;((0,em.hj)(i)?[t]:t.views).forEach(function(e,t){var s=(0,em.U2)(e,["geometries","0","dataArray"],[]),a=(0,em.U2)(e,["options","data","length"]),l=(0,em.UI)(s,function(e){return(0,em.U2)(e,["0","nextPoints","0","x"])*a-.5});ce(function(e,n,s,a){var h=0===(i||t)?-1:1;return up({},a,{start:[l[n-1]||n-.5,e[d2]],end:[l[n-1]||n-.5,e[d2]+.05],text:o?{style:{textAlign:"start"}}:{offsetX:!1!==r?h*r.offsetX:0,style:{textAlign:0===(i||t)?"end":"start"}}})})(up({},{chart:e,options:n}))})}function ch(e){return e.chart.once("beforepaint",function(){return cl(e)}),e}function cu(e){var t=e.chart,i=e.options,n=i.data,r=void 0===n?[]:n,o=i.yField,s=(0,em.u4)(r,function(e,t){return e+(t[o]||0)},0),a=(0,em.UT)(r,o)[o],l=(0,em.UI)(r,function(e,t){var i=[],n=[];if(e[d5]=(e[o]||0)/s,t){var l=r[t-1][d6],h=r[t-1][d3];i[0]=l[3],n[0]=h[3],i[1]=l[2],n[1]=h[2]}else i[0]=-.5,n[0]=1,i[1]=.5,n[1]=1;return n[2]=n[1]-e[d5],i[2]=(n[2]+1)/4,n[3]=n[2],i[3]=-i[2],e[d6]=i,e[d3]=n,e[d1]=(e[o]||0)/a,e[d4]=[(0,em.U2)(r,[t-1,o]),e[o]],e});return t.data(l),e}function cd(e){var t=e.chart,i=e.options,n=i.xField,r=i.yField,o=i.color,s=i.tooltip,a=i.label,l=i.funnelStyle,h=i.state,u=u9(s,[n,r]),d=u.fields,c=u.formatter;return de({chart:t,options:{type:"polygon",xField:d6,yField:d3,colorField:n,tooltipFields:(0,em.kJ)(d)&&d.concat([d1,d4]),label:a,state:h,mapping:{tooltip:c,color:o,style:l}}}),e}function cc(e){var t=e.chart,i=e.options.isTransposed;return t.coordinate({type:"rect",actions:i?[["transpose"],["reflect","x"]]:[]}),e}function cg(e){return ce(function(e,t,i,n){return(0,ef.pi)((0,ef.pi)({},n),{start:[e[d6][1],e[d3][1]],end:[e[d6][1]+.05,e[d3][1]]})})(e),e}function cp(e){var t,i=e.chart,n=e.options,r=n.data,o=void 0===r?[]:r,s=n.yField;return i.data(o),i.scale(((t={})[s]={sync:!0},t)),e}function cf(e){var t=e.chart,i=e.options,n=i.seriesField,r=i.isTransposed,o=i.showFacetTitle;return t.facet("rect",{fields:[n],padding:[r?0:32,10,0,10],showTitle:o,eachView:function(t,i){co(up({},e,{chart:t,options:{data:i.data}}))}}),e}var cm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendering=!1,t}return(0,ef.ZT)(t,e),t.prototype.change=function(e){var t=this;if(!this.rendering){var i=e.seriesField,n=e.compareField,r=n?cl:cr,o=this.context.view,s=i||n?o.views:[o];(0,em.UI)(s,function(i,n){var o=i.getController("annotation"),s=(0,em.hX)((0,em.U2)(o,["option"],[]),function(e){return e.name!==d7});o.clear(!0),(0,em.S6)(s,function(e){"object"==typeof e&&i.annotation()[e.type](e)});var a=(0,em.U2)(i,["filteredData"],i.getOptions().data);r({chart:i,index:n,options:(0,ef.pi)((0,ef.pi)({},e),{filteredData:d8(a,a,e)})}),i.filterData(a),t.rendering=!0,i.render(!0)})}this.rendering=!1},t}(rS),cv="funnel-conversion-tag",cE="funnel-afterrender",c_={trigger:"afterrender",action:"".concat(cv,":change")};function cC(e){var t,i=e.options,n=i.compareField,r=i.xField,o=i.yField,s=i.locale,a=i.funnelStyle,l=i.data,h=u3(s);return(n||a)&&(t=function(e){return up({},n&&{lineWidth:1,stroke:"#fff"},(0,em.mf)(a)?a(e):a)}),up({options:{label:n?{fields:[r,o,n,d1,d4],formatter:function(e){return"".concat(e[o])}}:{fields:[r,o,d1,d4],offset:0,position:"middle",formatter:function(e){return"".concat(e[r]," ").concat(e[o])}},tooltip:{title:r,formatter:function(e){return{name:e[r],value:e[o]}}},conversionTag:{formatter:function(e){return"".concat(h.get(["conversionTag","label"]),": ").concat(dk.apply(void 0,e[d4]))}}}},e,{options:{funnelStyle:t,data:(0,em.d9)(l)}})}function cS(e){var t=e.options,i=t.compareField,n=t.dynamicHeight;return t.seriesField?um(cp,cf)(e):i?um(cs,ca,ch)(e):n?um(cu,cd,cc,cg)(e):co(e)}function cy(e){var t,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.yField;return um(u0(((t={})[o]=n,t[s]=r,t)))(e)}function cT(e){return e.chart.axis(!1),e}function cb(e){var t=e.chart,i=e.options.legend;return!1===i?t.legend(!1):t.legend(i),e}function cA(e){var t=e.chart,i=e.options,n=i.interactions,r=i.dynamicHeight;return(0,em.S6)(n,function(e){!1===e.enable?t.removeInteraction(e.type):t.interaction(e.type,e.cfg||{})}),r?t.removeInteraction(cE):t.interaction(cE,{start:[(0,ef.pi)((0,ef.pi)({},c_),{arg:i})]}),e}function cR(e){return um(cC,cS,cy,cT,u$,cA,cb,uj,uq,u1())(e)}rA(cv,cm),r3(cE,{start:[c_]});var cL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="funnel",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return d9},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return cR},t.prototype.setState=function(e,t,i){void 0===i&&(i=!0);var n=u_(this.chart);(0,em.S6)(n,function(n){t(n.getData())&&n.setState(e,i)})},t.prototype.getStates=function(){var e=u_(this.chart),t=[];return(0,em.S6)(e,function(e){var i=e.getData(),n=e.getStates();(0,em.S6)(n,function(n){t.push({data:i,state:n,geometry:e.geometry,element:e})})}),t},t.CONVERSATION_FIELD=d4,t.PERCENT_FIELD=d1,t.TOTAL_PERCENT_FIELD=d5,t}(dc),cN="range",cI="type",cw="percent",cO="indicator-view",cx="range-view",cD={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:((Z={})[cN]={sync:"v"},Z[cw]={sync:"v",tickCount:5,tickInterval:.2},Z),animation:!1};function cM(e){var t;return[((t={})[cw]=(0,em.uZ)(e,0,1),t)]}function ck(e,t){var i=(0,em.U2)(t,["ticks"],[]),n=(0,em.dp)(i)?(0,em.jj)(i):[0,(0,em.uZ)(e,0,1),1];return n[0]||n.shift(),n.map(function(t,i){var r;return(r={})[cN]=t-(n[i-1]||0),r[cI]="".concat(i),r[cw]=e,r})}function cP(e){var t=e.chart,i=e.options,n=i.percent,r=i.range,o=i.radius,s=i.innerRadius,a=i.startAngle,l=i.endAngle,h=i.axis,u=i.indicator,d=i.gaugeStyle,c=i.type,g=i.meter,p=r.color,f=r.width;if(u){var m=cM(n),v=t.createView({id:cO});v.data(m),v.point().position("".concat(cw,"*1")).shape(u.shape||"gauge-indicator").customInfo({defaultColor:t.getTheme().defaultColor,indicator:u}),v.coordinate("polar",{startAngle:a,endAngle:l,radius:s*o}),v.axis(cw,h),v.scale(cw,us(h,un))}var E=ck(n,i.range),_=t.createView({id:cx});return _.data(E),dn({chart:_,options:{xField:"1",yField:cN,seriesField:cI,rawFields:[cw],isStack:!0,interval:{color:(0,em.HD)(p)?[p,"#f0f0f0"]:p,style:d,shape:"meter"===c?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:f,maxColumnWidth:f}}).ext.geometry.customInfo({meter:g}),_.coordinate("polar",{innerRadius:s,radius:o,startAngle:a,endAngle:l}).transpose(),e}function cF(e){var t;return um(u0(((t={range:{min:0,max:1,maxLimit:1,minLimit:0}})[cw]={},t)))(e)}function cB(e,t){var i=e.chart,n=e.options,r=n.statistic,o=n.percent;if(i.getController("annotation").clear(!0),r){var s=r.content,a=void 0;s&&(a=up({},{content:"".concat((100*o).toFixed(2),"%"),style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},s)),uw(i,{statistic:(0,ef.pi)((0,ef.pi)({},r),{content:a})},{percent:o})}return t&&i.render(!0),e}function cU(e){var t=e.chart,i=e.options.tooltip;return i?t.tooltip(up({showTitle:!1,showMarkers:!1,containerTpl:'
      ',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(e,t){var i=(0,em.U2)(t,[0,"data",cw],0);return"".concat((100*i).toFixed(2),"%")}},i)):t.tooltip(!1),e}function cH(e){return e.chart.legend(!1),e}function cV(e){return um(uq,uj,cP,cF,cU,cB,uX,u1(),cH)(e)}o$("point","gauge-indicator",{draw:function(e,t){var i=e.customInfo,n=i.indicator,r=i.defaultColor,o=n.pointer,s=n.pin,a=t.addGroup(),l=this.parsePoint({x:0,y:0});return o&&a.addShape("line",{name:"pointer",attrs:(0,ef.pi)({x1:l.x,y1:l.y,x2:e.x,y2:e.y,stroke:r},o.style)}),s&&a.addShape("circle",{name:"pin",attrs:(0,ef.pi)({x:l.x,y:l.y,stroke:r},s.style)}),a}}),o$("interval","meter-gauge",{draw:function(e,t){var i=e.customInfo.meter,n=void 0===i?{}:i,r=n.steps,o=void 0===r?50:r,s=n.stepRatio,a=void 0===s?.5:s;o=o<1?1:o,a=(0,em.uZ)(a,0,1);var l=this.coordinate,h=l.startAngle,u=l.endAngle,d=0;a>0&&a<1&&(d=(u-h)/o/(a/(1-a)+1-1/o));for(var c=d/(1-a)*a,g=t.addGroup(),p=this.coordinate.getCenter(),f=this.coordinate.getRadius(),m=sr.getAngle(e,this.coordinate),v=m.startAngle,E=m.endAngle,_=v;_1?l/(n-1):a.max),i||n||(h=l/(Math.ceil(Math.log(s.length)/Math.LN2)+1));var u={},d=(0,em.vM)(o,r);(0,em.xb)(d)?(0,em.S6)(o,function(e){var i=cG(e[t],h,n),r="".concat(i[0],"-").concat(i[1]);(0,em.wH)(u,r)||(u[r]={range:i,count:0}),u[r].count+=1}):Object.keys(d).forEach(function(e){(0,em.S6)(d[e],function(i){var o=cG(i[t],h,n),s="".concat(o[0],"-").concat(o[1]),a="".concat(s,"-").concat(e);(0,em.wH)(u,a)||(u[a]={range:o,count:0},u[a][r]=e),u[a].count+=1})});var c=[];return(0,em.S6)(u,function(e){c.push(e)}),c}var cY="range",cK="count",c$=up({},dc.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});function cX(e){var t=e.chart,i=e.options,n=i.data,r=i.binField,o=i.binNumber,s=i.binWidth,a=i.color,l=i.stackField,h=i.legend,u=i.columnStyle,d=cz(n,r,s,o,l);return t.data(d),dn(up({},e,{options:{xField:cY,yField:cK,seriesField:l,isStack:!0,interval:{color:a,style:u}}})),h&&l?t.legend(l,h):t.legend(!1),e}function cj(e){var t,i=e.options,n=i.xAxis,r=i.yAxis;return um(u0(((t={})[cY]=n,t[cK]=r,t)))(e)}function cq(e){var t=e.chart,i=e.options,n=i.xAxis,r=i.yAxis;return!1===n?t.axis(cY,!1):t.axis(cY,n),!1===r?t.axis(cK,!1):t.axis(cK,r),e}function cZ(e){var t=e.chart,i=e.options.label,n=uv(t,"interval");if(i){var r=i.callback,o=(0,ef._T)(i,["callback"]);n.label({fields:[cK],callback:r,cfg:uC(o)})}else n.label(!1);return e}function cJ(e){return um(uq,uY("columnStyle"),cX,cj,cq,uZ,cZ,u$,uX,uj)(e)}var cQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="histogram",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return c$},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.options,i=t.binField,n=t.binNumber,r=t.binWidth,o=t.stackField;this.chart.changeData(cz(e,i,r,n,o))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return cJ},t}(dc),c0=up({},dc.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left",radio:{}},isStack:!1});rA("marker-active",function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.active=function(){var e=this.getView(),t=this.context.event;if(t.data){var i=t.data.items,n=e.geometries.filter(function(e){return"point"===e.type});(0,em.S6)(n,function(e){(0,em.S6)(e.elements,function(e){var t=-1!==(0,em.cx)(i,function(t){return t.data===e.data});e.setState("active",t)})})}},t.prototype.reset=function(){var e=this.getView().geometries.filter(function(e){return"point"===e.type});(0,em.S6)(e,function(e){(0,em.S6)(e.elements,function(e){e.setState("active",!1)})})},t.prototype.getView=function(){return this.context.view},t}(rS)),r3("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]});var c1=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="line",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return c0},t.prototype.changeData=function(e){this.updateOption({data:e}),df({chart:this.chart,options:this.options}),this.chart.changeData(e)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return dS},t}(dc),c2=up({},dc.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}}),c4=[1,0,0,0,1,0,0,0,1];function c5(e,t){var i=t?(0,ef.ev)([],t,!0):(0,ef.ev)([],c4,!0);return sr.transform(i,e)}var c6=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getActiveElements=function(){var e=sr.getDelegationObject(this.context);if(e){var t=this.context.view,i=e.component,n=e.item,r=i.get("field");if(r)return t.geometries[0].elements.filter(function(e){return e.getModel().data[r]===n.value})}return[]},t.prototype.getActiveElementLabels=function(){var e=this.context.view,t=this.getActiveElements();return e.geometries[0].labelsContainer.getChildren().filter(function(e){return t.find(function(t){return(0,em.Xy)(t.getData(),e.get("data"))})})},t.prototype.transfrom=function(e){void 0===e&&(e=7.5);var t=this.getActiveElements(),i=this.getActiveElementLabels();t.forEach(function(t,n){var r=i[n],o=t.geometry.coordinate;if(o.isPolar&&o.isTransposed){var s=sr.getAngle(t.getModel(),o),a=(s.startAngle+s.endAngle)/2,l=e,h=l*Math.cos(a),u=l*Math.sin(a);t.shape.setMatrix(c5([["t",h,u]])),r.setMatrix(c5([["t",h,u]]))}})},t.prototype.active=function(){this.transfrom()},t.prototype.reset=function(){this.transfrom(0)},t}(rS),c3=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getAnnotations=function(e){return(e||this.context.view).getController("annotation").option},t.prototype.getInitialAnnotation=function(){return this.initialAnnotation},t.prototype.init=function(){var e=this,t=this.context.view;t.removeInteraction("tooltip"),t.on("afterchangesize",function(){var i=e.getAnnotations(t);e.initialAnnotation=i})},t.prototype.change=function(e){var t,i,n=this.context,r=n.view,o=n.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var s=(0,em.U2)(o,["data","data"]);if(o.type.match("legend-item")){var a=sr.getDelegationObject(this.context),l=r.getGroupedFields()[0];if(a&&l){var h=a.item;s=r.getData().find(function(e){return e[l]===h.value})}}if(s){var u=(0,em.U2)(e,"annotations",[]),d=(0,em.U2)(e,"statistic",{});r.getController("annotation").clear(!0),(0,em.S6)(u,function(e){"object"==typeof e&&r.annotation()[e.type](e)}),uI(r,{statistic:d,plotType:"pie"},s),r.render(!0)}var c=((i=this.context.event.target)&&(t=i.get("element")),t);c&&c.shape.toFront()},t.prototype.reset=function(){var e=this.context.view;e.getController("annotation").clear(!0);var t=this.getInitialAnnotation();(0,em.S6)(t,function(t){e.annotation()[t.type](t)}),e.render(!0)},t}(rS),c9="pie-statistic";function c7(e,t){return(0,em.yW)(uh(e,t),function(e){return 0===e[t]})}function c8(e){var t=e.chart,i=e.options,n=i.data,r=i.angleField,o=i.colorField,s=i.color,a=i.pieStyle,l=i.shape,h=uh(n,r);if(c7(h,r)){var u="$$percentage$$";h=h.map(function(e){var t;return(0,ef.pi)((0,ef.pi)({},e),((t={})[u]=1/h.length,t))}),t.data(h);var d=up({},e,{options:{xField:"1",yField:u,seriesField:o,isStack:!0,interval:{color:s,shape:l,style:a},args:{zIndexReversed:!0,sortZIndex:!0}}});dn(d)}else{t.data(h);var d=up({},e,{options:{xField:"1",yField:r,seriesField:o,isStack:!0,interval:{color:s,shape:l,style:a},args:{zIndexReversed:!0,sortZIndex:!0}}});dn(d)}return e}function ge(e){var t,i=e.chart,n=e.options,r=n.meta,o=n.colorField,s=up({},r);return i.scale(s,((t={})[o]={type:"cat"},t)),e}function gt(e){var t=e.chart,i=e.options,n=i.radius,r=i.innerRadius,o=i.startAngle,s=i.endAngle;return t.coordinate({type:"theta",cfg:{radius:n,innerRadius:r,startAngle:o,endAngle:s}}),e}function gi(e){var t=e.chart,i=e.options,n=i.label,r=i.colorField,o=i.angleField,s=t.geometries[0];if(n){var a=n.callback,l=uC((0,ef._T)(n,["callback"]));if(l.content){var h=l.content;l.content=function(e,i,n){var s=e[r],a=e[o],l=t.getScaleByField(o),u=null==l?void 0:l.scale(a);return(0,em.mf)(h)?h((0,ef.pi)((0,ef.pi)({},e),{percent:u}),i,n):(0,em.HD)(h)?uO(h,{value:a,name:s,percentage:(0,em.hj)(u)&&!(0,em.UM)(a)?"".concat((100*u).toFixed(2),"%"):null}):h}}var u=l.type?({inner:"",outer:"pie-outer",spider:"pie-spider"})[l.type]:"pie-outer",d=l.layout?(0,em.kJ)(l.layout)?l.layout:[l.layout]:[];l.layout=(u?[{type:u}]:[]).concat(d),s.label({fields:r?[o,r]:[o],callback:a,cfg:(0,ef.pi)((0,ef.pi)({},l),{offset:function(e,t){var i;switch(e){case"inner":if(i="-30%",(0,em.HD)(t)&&t.endsWith("%"))return .01*parseFloat(t)>0?i:t;return t<0?t:i;case"outer":if(i=12,(0,em.HD)(t)&&t.endsWith("%"))return .01*parseFloat(t)<0?i:t;return t>0?t:i;default:return t}}(l.type,l.offset),type:"pie"})})}else s.label(!1);return e}function gn(e){var t=e.innerRadius,i=e.statistic,n=e.angleField,r=e.colorField,o=e.meta,s=u3(e.locale);if(t&&i){var a=up({},c2.statistic,i),l=a.title,h=a.content;return!1!==l&&(l=up({},{formatter:function(e){var t=e?e[r]:(0,em.UM)(l.content)?s.get(["statistic","total"]):l.content;return((0,em.U2)(o,[r,"formatter"])||function(e){return e})(t)}},l)),!1!==h&&(h=up({},{formatter:function(e,t){var i,r=e?e[n]:(i=null,(0,em.S6)(t,function(e){"number"==typeof e[n]&&(i+=e[n])}),i),s=(0,em.U2)(o,[n,"formatter"])||function(e){return e};return e?s(r):(0,em.UM)(h.content)?s(r):h.content}},h)),up({},{statistic:{title:l,content:h}},e)}return e}function gr(e){var t=e.chart,i=gn(e.options),n=i.innerRadius,r=i.statistic;return t.getController("annotation").clear(!0),um(u1())(e),n&&r&&uI(t,{statistic:r,plotType:"pie"}),e}function go(e){var t=e.chart,i=e.options,n=i.tooltip,r=i.colorField,o=i.angleField,s=i.data;if(!1===n)t.tooltip(n);else if(t.tooltip(up({},n,{shared:!1})),c7(s,o)){var a=(0,em.U2)(n,"fields"),l=(0,em.U2)(n,"formatter");(0,em.xb)((0,em.U2)(n,"fields"))&&(a=[r,o],l=l||function(e){return{name:e[r],value:(0,em.BB)(e[o])}}),t.geometries[0].tooltip(a.join("*"),u8(a,l))}return e}function gs(e){var t=e.chart,i=gn(e.options),n=i.interactions,r=i.statistic,o=i.annotations;return(0,em.S6)(n,function(e){var i,n;if(!1===e.enable)t.removeInteraction(e.type);else if("pie-statistic-active"===e.type){var s=[];(null===(i=e.cfg)||void 0===i?void 0:i.start)||(s=[{trigger:"element:mouseenter",action:"".concat(c9,":change"),arg:{statistic:r,annotations:o}}]),(0,em.S6)(null===(n=e.cfg)||void 0===n?void 0:n.start,function(e){s.push((0,ef.pi)((0,ef.pi)({},e),{arg:{statistic:r,annotations:o}}))}),t.interaction(e.type,up({},e.cfg,{start:s}))}else t.interaction(e.type,e.cfg||{})}),e}function ga(e){return um(uY("pieStyle"),c8,ge,uq,gt,uK,go,gi,uZ,gr,gs,uj)(e)}rA(c9,c3),r3("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),rA("pie-legend",c6),r3("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]});var gl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="pie",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return c2},t.prototype.changeData=function(e){this.chart.emit(M.BEFORE_CHANGE_DATA,o_.fromData(this.chart,M.BEFORE_CHANGE_DATA,null));var t=this.options,i=this.options.angleField,n=uh(t.data,i),r=uh(e,i);c7(n,i)||c7(r,i)?this.update({data:e}):(this.updateOption({data:e}),this.chart.data(r),gr({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(M.AFTER_CHANGE_DATA,o_.fromData(this.chart,M.AFTER_CHANGE_DATA,null))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return ga},t}(dc),gh={percent:.2,color:["#FAAD14","#E8EDF3"],animation:{}};function gu(e){var t=(0,em.uZ)(uS(e)?e:0,0,1);return[{current:"".concat(t),type:"current",percent:t},{current:"".concat(t),type:"target",percent:1}]}function gd(e){var t=e.chart,i=e.options,n=i.percent,r=i.progressStyle,o=i.color,s=i.barWidthRatio;return t.data(gu(n)),dn(up({},e,{options:{xField:"current",yField:"percent",seriesField:"type",widthRatio:s,interval:{style:r,color:(0,em.HD)(o)?[o,"#E8EDF3"]:o},args:{zIndexReversed:!0,sortZIndex:!0}}})),t.tooltip(!1),t.axis(!1),t.legend(!1),e}function gc(e){return e.chart.coordinate("rect").transpose(),e}function gg(e){return um(gd,u0({}),gc,uj,uq,u1())(e)}var gp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="process",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return gh},t.prototype.changeData=function(e){this.updateOption({percent:e}),this.chart.changeData(gu(e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return gg},t}(dc);function gf(e){var t=e.chart,i=e.options,n=i.innerRadius,r=i.radius;return t.coordinate("theta",{innerRadius:n,radius:r}),e}function gm(e,t){var i=e.chart,n=e.options,r=n.innerRadius,o=n.statistic,s=n.percent,a=n.meta;if(i.getController("annotation").clear(!0),r&&o){var l=(0,em.U2)(a,["percent","formatter"])||function(e){return"".concat((100*e).toFixed(2),"%")},h=o.content;h&&(h=up({},h,{content:(0,em.UM)(h.content)?l(s):h.content})),uI(i,{statistic:(0,ef.pi)((0,ef.pi)({},o),{content:h}),plotType:"ring-progress"},{percent:s})}return t&&i.render(!0),e}function gv(e){return um(gd,u0({}),gf,gm,uj,uq,u1())(e)}var gE={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}},g_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="ring-process",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return gE},t.prototype.changeData=function(e){this.chart.emit(M.BEFORE_CHANGE_DATA,o_.fromData(this.chart,M.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:e}),this.chart.data(gu(e)),gm({chart:this.chart,options:this.options},!0),this.chart.emit(M.AFTER_CHANGE_DATA,o_.fromData(this.chart,M.AFTER_CHANGE_DATA,null))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return gv},t}(dc),gC=i(56645),gS={exp:gC.regressionExp,linear:gC.regressionLinear,loess:gC.regressionLoess,log:gC.regressionLog,poly:gC.regressionPoly,pow:gC.regressionPow,quad:gC.regressionQuad},gy=function(e,t){var i=t.view,n=t.options,r=n.xField,o=n.yField,s=i.getScaleByField(r),a=i.getScaleByField(o);return function(e,t,i){var n=[],r=e[0],o=null;if(e.length<=2)return function(e,t){var i=[];if(e.length){i.push(["M",e[0].x,e[0].y]);for(var n=1,r=e.length;n
      ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},gZ={appendPadding:2,tooltip:(0,ef.pi)({},gq),animation:{}};function gJ(e){var t=e.chart,i=e.options,n=i.data,r=i.color,o=i.areaStyle,s=i.point,a=i.line,l=null==s?void 0:s.state,h=gj(n);t.data(h);var u=up({},e,{options:{xField:"x",yField:"y",area:{color:r,style:o},line:a,point:s}}),d=up({},u,{options:{tooltip:!1}}),c=up({},u,{options:{tooltip:!1,state:l}});return dt(u),dr(d),ds(c),t.axis(!1),t.legend(!1),e}function gQ(e){var t,i,n=e.options,r=n.xAxis,o=n.yAxis,s=gj(n.data);return um(u0(((t={}).x=r,t.y=o,t),((i={}).x={type:"cat"},i.y=ua(s,"y"),i)))(e)}function g0(e){return um(uY("areaStyle"),gJ,gQ,u$,uq,uj,u1())(e)}var g1={appendPadding:2,tooltip:(0,ef.pi)({},gq),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},g2=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="tiny-area",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return g1},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.chart;gQ({chart:t,options:this.options}),t.changeData(gj(e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return g0},t}(dc);function g4(e){var t=e.chart,i=e.options,n=i.data,r=i.color,o=i.columnStyle,s=i.columnWidthRatio,a=gj(n);return t.data(a),dn(up({},e,{options:{xField:"x",yField:"y",widthRatio:s,interval:{style:o,color:r}}})),t.axis(!1),t.legend(!1),t.interaction("element-active"),e}function g5(e){return um(uq,uY("columnStyle"),g4,gQ,u$,uj,u1())(e)}var g6={appendPadding:2,tooltip:(0,ef.pi)({},{showTitle:!1,shared:!0,showMarkers:!1,customContent:function(e,t){return"".concat((0,em.U2)(t,[0,"data","y"],0))},containerTpl:'
      ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}}),animation:{}},g3=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="tiny-column",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return g6},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.chart;gQ({chart:t,options:this.options}),t.changeData(gj(e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return g5},t}(dc);function g9(e){var t=e.chart,i=e.options,n=i.data,r=i.color,o=i.lineStyle,s=i.point,a=null==s?void 0:s.state,l=gj(n);t.data(l);var h=up({},e,{options:{xField:"x",yField:"y",line:{color:r,style:o},point:s}}),u=up({},h,{options:{tooltip:!1,state:a}});return dr(h),ds(u),t.axis(!1),t.legend(!1),e}function g7(e){return um(g9,gQ,uq,u$,uj,u1())(e)}var g8=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="tiny-line",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return gZ},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.chart;gQ({chart:t,options:this.options}),t.changeData(gj(e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return g7},t}(dc),pe={line:dS,pie:ga,column:dz,bar:dq,area:dA,gauge:cV,"tiny-line":g7,"tiny-column":g5,"tiny-area":g0,"ring-progress":gv,progress:gg,scatter:gM,histogram:cJ,funnel:cR,stock:g$},pt={line:c1,pie:gl,column:d0,bar:dJ,area:dL,gauge:cW,"tiny-line":g8,"tiny-column":g3,"tiny-area":g2,"ring-progress":g_,progress:gp,scatter:gP,histogram:cQ,funnel:cL,stock:gX},pi={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function pn(e,t,i){var n=pt[e];if(!n){console.error("could not find ".concat(e," plot"));return}(0,pe[e])({chart:t,options:up({},n.getDefaultOptions(),(0,em.U2)(pi,e,{}),i)})}function pr(e){var t=e.chart,i=e.options,n=i.views,r=i.legend;return(0,em.S6)(n,function(e){var i=e.region,n=e.data,r=e.meta,o=e.axes,s=e.coordinate,a=e.interactions,l=e.annotations,h=e.tooltip,u=e.geometries,d=t.createView({region:i});d.data(n);var c={};o&&(0,em.S6)(o,function(e,t){c[t]=us(e,un)}),c=up({},r,c),d.scale(c),o?(0,em.S6)(o,function(e,t){d.axis(t,e)}):d.axis(!1),d.coordinate(s),(0,em.S6)(u,function(e){var t=de({chart:d,options:e}).ext,i=e.adjust;i&&t.geometry.adjust(i)}),(0,em.S6)(a,function(e){!1===e.enable?d.removeInteraction(e.type):d.interaction(e.type,e.cfg)}),(0,em.S6)(l,function(e){d.annotation()[e.type]((0,ef.pi)({},e))}),"boolean"==typeof e.animation?d.animate(!1):(d.animate(!0),(0,em.S6)(d.geometries,function(t){t.animate(e.animation)})),h&&(d.interaction("tooltip"),d.tooltip(h))}),r?(0,em.S6)(r,function(e,i){t.legend(i,e)}):t.legend(!1),t.tooltip(i.tooltip),e}function po(e){var t=e.chart,i=e.options,n=i.plots,r=i.data,o=void 0===r?[]:r;return(0,em.S6)(n,function(e){var i=e.type,n=e.region,r=e.options,s=void 0===r?{}:r,a=e.top,l=s.tooltip;if(a){pn(i,t,(0,ef.pi)((0,ef.pi)({},s),{data:o}));return}var h=t.createView((0,ef.pi)({region:n},us(s,dd)));l&&h.interaction("tooltip"),pn(i,h,(0,ef.pi)({data:o},s))}),e}function ps(e){var t=e.chart,i=e.options;return t.option("slider",i.slider),e}function pa(e){return um(uj,pr,po,uX,uj,uq,u$,ps,u1())(e)}rA("association",function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getAssociationItems=function(e,t){var i,n=this.context.event,r=t||{},o=r.linkField,s=r.dim,a=[];if(null===(i=n.data)||void 0===i?void 0:i.data){var l=n.data.data;(0,em.S6)(e,function(e){var t,i,n=o;if("x"===s?n=e.getXScale().field:"y"===s?n=null===(t=e.getYScales().find(function(e){return e.field===n}))||void 0===t?void 0:t.field:n||(n=null===(i=e.getGroupScales()[0])||void 0===i?void 0:i.field),n){var r=(0,em.UI)(uE(e),function(t){var i,r,o=!1,s=!1,a=(0,em.kJ)(l)?(0,em.U2)(l[0],n):(0,em.U2)(l,n);return(i=n,r=t.getModel().data,((0,em.kJ)(r)?r[0][i]:r[i])===a)?o=!0:s=!0,{element:t,view:e,active:o,inactive:s}});a.push.apply(a,r)}})}return a},t.prototype.showTooltip=function(e){var t=uM(this.context.view),i=this.getAssociationItems(t,e);(0,em.S6)(i,function(e){if(e.active){var t=e.element.shape.getCanvasBBox();e.view.showTooltip({x:t.minX+t.width/2,y:t.minY+t.height/2})}})},t.prototype.hideTooltip=function(){var e=uM(this.context.view);(0,em.S6)(e,function(e){e.hideTooltip()})},t.prototype.active=function(e){var t=uD(this.context.view),i=this.getAssociationItems(t,e);(0,em.S6)(i,function(e){var t=e.active,i=e.element;t&&i.setState("active",!0)})},t.prototype.selected=function(e){var t=uD(this.context.view),i=this.getAssociationItems(t,e);(0,em.S6)(i,function(e){var t=e.active,i=e.element;t&&i.setState("selected",!0)})},t.prototype.highlight=function(e){var t=uD(this.context.view),i=this.getAssociationItems(t,e);(0,em.S6)(i,function(e){var t=e.inactive,i=e.element;t&&i.setState("inactive",!0)})},t.prototype.reset=function(){var e=uD(this.context.view);(0,em.S6)(e,function(e){var t;t=uE(e),(0,em.S6)(t,function(e){e.hasState("active")&&e.setState("active",!1),e.hasState("selected")&&e.setState("selected",!1),e.hasState("inactive")&&e.setState("inactive",!1)})})},t}(rS)),r3("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),r3("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),r3("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),r3("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]});var pl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="mix",t}return(0,ef.ZT)(t,e),t.prototype.getSchemaAdaptor=function(){return pa},t}(dc);(L=J||(J={})).DEV="DEV",L.BETA="BETA",L.STABLE="STABLE",Object.defineProperty(function(){},"MultiView",{get:function(){var e,t;return e=J.STABLE,t="MultiView",console.warn(e===J.DEV?"Plot '".concat(t,"' is in DEV stage, just give us issues."):e===J.BETA?"Plot '".concat(t,"' is in BETA stage, DO NOT use it in production env."):e===J.STABLE?"Plot '".concat(t,"' is in STABLE stage, import it by \"import { ").concat(t," } from '@antv/g2plot'\"."):"invalid Stage type."),pl},enumerable:!1,configurable:!0});var ph="first-axes-view",pu="second-axes-view",pd="series-field-key";function pc(e,t,i,n,r){var o=[];t.forEach(function(t){n.forEach(function(n){var r,s=((r={})[e]=n[e],r[i]=t,r[t]=n[t],r);o.push(s)})});var s=Object.values((0,em.vM)(o,i)),a=s[0],l=void 0===a?[]:a,h=s[1],u=void 0===h?[]:h;return r?[l.reverse(),u.reverse()]:[l,u]}function pg(e){return"vertical"!==e}function pp(e,t,i){var n=t[0],r=t[1],o=n.autoPadding,s=r.autoPadding,a=e.__axisPosition,l=a.layout,h=a.position;if(pg(l)&&"top"===h&&(n.autoPadding=i.instance(o.top,0,o.bottom,o.left),r.autoPadding=i.instance(s.top,o.left,s.bottom,0)),pg(l)&&"bottom"===h&&(n.autoPadding=i.instance(o.top,o.right/2+5,o.bottom,o.left),r.autoPadding=i.instance(s.top,s.right,s.bottom,o.right/2+5)),!pg(l)&&"bottom"===h){var u=o.left>=s.left?o.left:s.left;n.autoPadding=i.instance(o.top,o.right,o.bottom/2+5,u),r.autoPadding=i.instance(o.bottom/2+5,s.right,s.bottom,u)}if(!pg(l)&&"top"===h){var u=o.left>=s.left?o.left:s.left;n.autoPadding=i.instance(o.top,o.right,0,u),r.autoPadding=i.instance(0,s.right,o.top,u)}}function pf(e){var t,i,n=e.chart,r=e.options,o=r.data,s=r.xField,a=r.yField,l=r.color,h=r.barStyle,u=r.widthRatio,d=r.legend,c=r.layout,g=pc(s,a,pd,o,pg(c));d?n.legend(pd,d):!1===d&&n.legend(!1);var p=g[0],f=g[1];return pg(c)?((t=n.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:ph})).coordinate().transpose().reflect("x"),(i=n.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:pu})).coordinate().transpose(),t.data(p),i.data(f)):(t=n.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:ph}),(i=n.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:pu})).coordinate().reflect("y"),t.data(p),i.data(f)),dn(up({},e,{chart:t,options:{widthRatio:u,xField:s,yField:a[0],seriesField:pd,interval:{color:l,style:h}}})),dn(up({},e,{chart:i,options:{xField:s,yField:a[1],seriesField:pd,widthRatio:u,interval:{color:l,style:h}}})),e}function pm(e){var t,i,n,r=e.options,o=e.chart,s=r.xAxis,a=r.yAxis,l=r.xField,h=r.yField,u=ux(o,ph),d=ux(o,pu),c={};return(0,em.XP)((null==r?void 0:r.meta)||{}).map(function(e){(0,em.U2)(null==r?void 0:r.meta,[e,"alias"])&&(c[e]=r.meta[e].alias)}),o.scale(((t={})[pd]={sync:!0,formatter:function(e){return(0,em.U2)(c,e,e)}},t)),u0(((i={})[l]=s,i[h[0]]=a[h[0]],i))(up({},e,{chart:u})),u0(((n={})[l]=s,n[h[1]]=a[h[1]],n))(up({},e,{chart:d})),e}function pv(e){var t=e.chart,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.yField,a=i.layout,l=ux(t,ph),h=ux(t,pu);return(null==n?void 0:n.position)==="bottom"?h.axis(o,(0,ef.pi)((0,ef.pi)({},n),{label:{formatter:function(){return""}}})):h.axis(o,!1),!1===n?l.axis(o,!1):l.axis(o,(0,ef.pi)({position:pg(a)?"top":"bottom"},n)),!1===r?(l.axis(s[0],!1),h.axis(s[1],!1)):(l.axis(s[0],r[s[0]]),h.axis(s[1],r[s[1]])),t.__axisPosition={position:l.getOptions().axes[o].position,layout:a},e}function pE(e){var t=e.chart;return uX(up({},e,{chart:ux(t,ph)})),uX(up({},e,{chart:ux(t,pu)})),e}function p_(e){var t=e.chart,i=e.options,n=i.yField,r=i.yAxis;return u2(up({},e,{chart:ux(t,ph),options:{yAxis:r[n[0]]}})),u2(up({},e,{chart:ux(t,pu),options:{yAxis:r[n[1]]}})),e}function pC(e){var t=e.chart;return uq(up({},e,{chart:ux(t,ph)})),uq(up({},e,{chart:ux(t,pu)})),uq(e),e}function pS(e){var t=e.chart;return uj(up({},e,{chart:ux(t,ph)})),uj(up({},e,{chart:ux(t,pu)})),e}function py(e){var t,i,n=this,r=e.chart,o=e.options,s=o.label,a=o.yField,l=o.layout,h=ux(r,ph),u=ux(r,pu),d=uv(h,"interval"),c=uv(u,"interval");if(s){var g=s.callback,p=(0,ef._T)(s,["callback"]);p.position||(p.position="middle"),void 0===p.offset&&(p.offset=2);var f=(0,ef.pi)({},p);if(pg(l)){var m=(null===(t=f.style)||void 0===t?void 0:t.textAlign)||("middle"===p.position?"center":"left");p.style=up({},p.style,{textAlign:m}),f.style=up({},f.style,{textAlign:{left:"right",right:"left",center:"center"}[m]})}else{var v={top:"bottom",bottom:"top",middle:"middle"};"string"==typeof p.position?p.position=v[p.position]:"function"==typeof p.position&&(p.position=function(){for(var e=[],t=0;t1?"".concat(t,"_").concat(i):"".concat(t)}function pk(e){var t=e.data,i=e.xField,n=e.measureField,r=e.rangeField,o=e.targetField,s=e.layout,a=[],l=[];t.forEach(function(e,t){var s=[e[r]].flat();s.sort(function(e,t){return e-t}),s.forEach(function(n,o){var l,h=0===o?n:s[o]-s[o-1];a.push(((l={rKey:"".concat(r,"_").concat(o)})[i]=i?e[i]:String(t),l[r]=h,l))});var h=[e[n]].flat();h.forEach(function(r,o){var s;a.push(((s={mKey:pM(h,n,o)})[i]=i?e[i]:String(t),s[n]=r,s))});var u=[e[o]].flat();u.forEach(function(n,r){var s;a.push(((s={tKey:pM(u,o,r)})[i]=i?e[i]:String(t),s[o]=n,s))}),l.push(e[r],e[n],e[o])});var h=Math.min.apply(Math,l.flat(1/0)),u=Math.max.apply(Math,l.flat(1/0));return h=h>0?0:h,"vertical"===s&&a.reverse(),{min:h,max:u,ds:a}}function pP(e){var t=e.chart,i=e.options,n=i.bulletStyle,r=i.targetField,o=i.rangeField,s=i.measureField,a=i.xField,l=i.color,h=i.layout,u=i.size,d=i.label,c=pk(i),g=c.min,p=c.max,f=c.ds;return t.data(f),dn(up({},e,{options:{xField:a,yField:o,seriesField:"rKey",isStack:!0,label:(0,em.U2)(d,"range"),interval:{color:(0,em.U2)(l,"range"),style:(0,em.U2)(n,"range"),size:(0,em.U2)(u,"range")}}})),t.geometries[0].tooltip(!1),dn(up({},e,{options:{xField:a,yField:s,seriesField:"mKey",isStack:!0,label:(0,em.U2)(d,"measure"),interval:{color:(0,em.U2)(l,"measure"),style:(0,em.U2)(n,"measure"),size:(0,em.U2)(u,"measure")}}})),ds(up({},e,{options:{xField:a,yField:r,seriesField:"tKey",label:(0,em.U2)(d,"target"),point:{color:(0,em.U2)(l,"target"),style:(0,em.U2)(n,"target"),size:(0,em.mf)((0,em.U2)(u,"target"))?function(e){return(0,em.U2)(u,"target")(e)/2}:(0,em.U2)(u,"target")/2,shape:"horizontal"===h?"line":"hyphen"}}})),"horizontal"===h&&t.coordinate().transpose(),(0,ef.pi)((0,ef.pi)({},e),{ext:{data:{min:g,max:p}}})}function pF(e){var t,i,n=e.options,r=e.ext,o=n.xAxis,s=n.yAxis,a=n.targetField,l=n.rangeField,h=n.measureField,u=n.xField,d=r.data;return um(u0(((t={})[u]=o,t[h]=s,t),((i={})[h]={min:null==d?void 0:d.min,max:null==d?void 0:d.max,sync:!0},i[a]={sync:"".concat(h)},i[l]={sync:"".concat(h)},i)))(e)}function pB(e){var t=e.chart,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.measureField,a=i.rangeField,l=i.targetField;return t.axis("".concat(a),!1),t.axis("".concat(l),!1),!1===n?t.axis("".concat(o),!1):t.axis("".concat(o),n),!1===r?t.axis("".concat(s),!1):t.axis("".concat(s),r),e}function pU(e){var t=e.chart,i=e.options.legend;return t.removeInteraction("legend-filter"),t.legend(i),t.legend("rKey",!1),t.legend("mKey",!1),t.legend("tKey",!1),e}function pH(e){var t=e.chart,i=e.options,n=i.label,r=i.measureField,o=i.targetField,s=i.rangeField,a=t.geometries,l=a[0],h=a[1],u=a[2];return(0,em.U2)(n,"range")?l.label("".concat(s),(0,ef.pi)({layout:[{type:"limit-in-plot"}]},uC(n.range))):l.label(!1),(0,em.U2)(n,"measure")?h.label("".concat(r),(0,ef.pi)({layout:[{type:"limit-in-plot"}]},uC(n.measure))):h.label(!1),(0,em.U2)(n,"target")?u.label("".concat(o),(0,ef.pi)({layout:[{type:"limit-in-plot"}]},uC(n.target))):u.label(!1),e}function pV(e){um(pP,pF,pB,pU,uq,pH,u$,uX,uj)(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="box",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return pR},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.options.yField,i=this.chart.views.find(function(e){return e.id===pA});i&&i.data(e),this.chart.changeData(pL(e,t))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return pD}}(dc);var pW=up({},dc.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}});!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="bullet",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return pW},t.prototype.changeData=function(e){this.updateOption({data:e});var t=pk(this.options),i=t.min,n=t.max,r=t.ds;pF({options:this.options,ext:{data:{min:i,max:n}},chart:this.chart}),this.chart.changeData(r)},t.prototype.getSchemaAdaptor=function(){return pV},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()}}(dc);var pG={y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(e){return e.id},source:function(e){return e.source},target:function(e){return e.target},sourceWeight:function(e){return e.value||1},targetWeight:function(e){return e.value||1},sortBy:null},pz="name",pY="source",pK={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(e,t){return{offsetX:(e[0]+e[1])/2>.5?-4:4,content:t}},labelEmit:!0,style:{fill:"#8c8c8c"}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(e){return!(0,em.U2)(e,[0,"data","isNode"])},formatter:function(e){var t=e.source,i=e.target,n=e.value;return{name:"".concat(t," -> ").concat(i),value:n}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function p$(e){var t,i,n,r,o,s,a=e.options,l=a.data,h=a.sourceField,u=a.targetField,d=a.weightField,c=a.nodePaddingRatio,g=a.nodeWidthRatio,p=a.rawFields,f=void 0===p?[]:p,m=ul(l,h,u,d),v=(t=(0,em.f0)({},pG,{weight:!0,nodePaddingRatio:c,nodeWidthRatio:g}),i={},n=m.nodes,r=m.links,n.forEach(function(e){i[t.id(e)]=e}),(0,em.U5)(i,function(e,i){e.inEdges=r.filter(function(e){return"".concat(t.target(e))==="".concat(i)}),e.outEdges=r.filter(function(e){return"".concat(t.source(e))==="".concat(i)}),e.edges=e.outEdges.concat(e.inEdges),e.frequency=e.edges.length,e.value=0,e.inEdges.forEach(function(i){e.value+=t.targetWeight(i)}),e.outEdges.forEach(function(i){e.value+=t.sourceWeight(i)})}),!(s=({weight:function(e,t){return t.value-e.value},frequency:function(e,t){return t.frequency-e.frequency},id:function(e,t){return"".concat(o.id(e)).localeCompare("".concat(o.id(t)))}})[(o=t).sortBy])&&(0,em.mf)(o.sortBy)&&(s=o.sortBy),s&&n.sort(s),{nodes:function(e,t){var i=e.length;if(!i)throw TypeError("Invalid nodes: it's empty!");if(t.weight){var n=t.nodePaddingRatio;if(n<0||n>=1)throw TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var r=n/(2*i),o=t.nodeWidthRatio;if(o<=0||o>=1)throw TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var s=0;e.forEach(function(e){s+=e.value}),e.forEach(function(e){e.weight=e.value/s,e.width=e.weight*(1-n),e.height=o}),e.forEach(function(i,n){for(var s=0,a=n-1;a>=0;a--)s+=e[a].width+2*r;var l=i.minX=r+s,h=i.maxX=i.minX+i.width,u=i.minY=t.y-o/2,d=i.maxY=u+o;i.x=[l,h,h,l],i.y=[u,u,d,d]})}else{var a=1/i;e.forEach(function(e,i){e.x=(i+.5)*a,e.y=t.y})}return e}(n,t),links:function(e,t,i){if(i.weight){var n={};(0,em.U5)(e,function(e,t){n[t]=e.value}),t.forEach(function(t){var r=i.source(t),o=i.target(t),s=e[r],a=e[o];if(s&&a){var l=n[r],h=i.sourceWeight(t),u=s.minX+(s.value-l)/s.value*s.width,d=u+h/s.value*s.width;n[r]-=h;var c=n[o],g=i.targetWeight(t),p=a.minX+(a.value-c)/a.value*a.width,f=p+g/a.value*a.width;n[o]-=g;var m=i.y;t.x=[u,d,p,f],t.y=[m,m,m,m],t.source=s,t.target=a}})}else t.forEach(function(t){var n=e[i.source(t)],r=e[i.target(t)];n&&r&&(t.x=[n.x,r.x],t.y=[n.y,r.y],t.source=n,t.target=r)});return t}(i,r,t)}),E=v.nodes,_=v.links,C=E.map(function(e){return(0,ef.pi)((0,ef.pi)({},us(e,(0,ef.ev)(["id","x","y","name"],f,!0))),{isNode:!0})}),S=_.map(function(e){return(0,ef.pi)((0,ef.pi)({source:e.source.name,target:e.target.name,name:e.source.name||e.target.name},us(e,(0,ef.ev)(["x","y","value"],f,!0))),{isNode:!1})});return(0,ef.pi)((0,ef.pi)({},e),{ext:(0,ef.pi)((0,ef.pi)({},e.ext),{chordData:{nodesData:C,edgesData:S}})})}function pX(e){var t;return e.chart.scale(((t={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}})[pz]={sync:"color"},t[pY]={sync:"color"},t)),e}function pj(e){return e.chart.axis(!1),e}function pq(e){return e.chart.legend(!1),e}function pZ(e){var t=e.chart,i=e.options.tooltip;return t.tooltip(i),e}function pJ(e){return e.chart.coordinate("polar").reflect("y"),e}function pQ(e){var t=e.chart,i=e.options,n=e.ext.chordData.nodesData,r=i.nodeStyle,o=i.label,s=i.tooltip,a=t.createView();return a.data(n),da({chart:a,options:{xField:"x",yField:"y",seriesField:pz,polygon:{style:r},label:o,tooltip:s}}),e}function p0(e){var t=e.chart,i=e.options,n=e.ext.chordData.edgesData,r=i.edgeStyle,o=i.tooltip,s=t.createView();return s.data(n),di({chart:s,options:{xField:"x",yField:"y",seriesField:pY,edge:{style:r,shape:"arc"},tooltip:o}}),e}function p1(e){var t=e.chart;return uk(t,e.options.animation,0>=(0,em.U2)(t,["views","length"],0)?t.geometries:(0,em.u4)(t.views,function(e,t){return e.concat(t.geometries)},t.geometries)),e}function p2(e){return um(uq,p$,pJ,pX,pj,pq,pZ,p0,pQ,uX,uZ,p1)(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="chord",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return pK},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return p2}}(dc);var p4=["x","y","r","name","value","path","depth"],p5={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}},p6="drilldown-bread-crumb",p3={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},p9="hierarchy-data-transform-params",p7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="drill-down",t.historyCache=[],t.breadCrumbGroup=null,t.breadCrumbCfg=p3,t}return(0,ef.ZT)(t,e),t.prototype.click=function(){var e=(0,em.U2)(this.context,["event","data","data"]);if(!e)return!1;this.drill(e),this.drawBreadCrumb()},t.prototype.resetPosition=function(){if(this.breadCrumbGroup){var e=this.context.view.getCoordinate(),t=this.breadCrumbGroup,i=t.getBBox(),n=this.getButtonCfg().position,r={x:e.start.x,y:e.end.y-(i.height+10)};e.isPolar&&(r={x:0,y:0}),"bottom-left"===n&&(r={x:e.start.x,y:e.start.y});var o=sr.transform(null,[["t",r.x+0,r.y+i.height+5]]);t.setMatrix(o)}},t.prototype.back=function(){(0,em.dp)(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},t.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},t.prototype.drill=function(e){var t=this.context.view,i=(0,em.U2)(t,["interactions","drill-down","cfg","transformData"],function(e){return e}),n=i((0,ef.pi)({data:e.data},e[p9]));t.changeData(n);for(var r=[],o=e;o;){var s=o.data;r.unshift({id:"".concat(s.name,"_").concat(o.height,"_").concat(o.depth),name:s.name,children:i((0,ef.pi)({data:s},e[p9]))}),o=o.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(r)},t.prototype.backTo=function(e){if(e&&!(e.length<=0)){var t=this.context.view,i=(0,em.Z$)(e).children;t.changeData(i),e.length>1?(this.historyCache=e,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},t.prototype.getButtonCfg=function(){var e=this.context.view,t=(0,em.U2)(e,["interactions","drill-down","cfg","drillDownConfig"]);return up(this.breadCrumbCfg,null==t?void 0:t.breadCrumb,this.cfg)},t.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},t.prototype.drawBreadCrumbGroup=function(){var e=this,t=this.getButtonCfg(),i=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:p6});var n=0;i.forEach(function(r,o){var s=e.breadCrumbGroup.addShape({type:"text",id:r.id,name:"".concat(p6,"_").concat(r.name,"_text"),attrs:(0,ef.pi)((0,ef.pi)({text:0!==o||(0,em.UM)(t.rootText)?r.name:t.rootText},t.textStyle),{x:n,y:0})}),a=s.getBBox();if(n+=a.width+4,s.on("click",function(t){var n,r=t.target.get("id");if(r!==(null===(n=(0,em.Z$)(i))||void 0===n?void 0:n.id)){var o=i.slice(0,i.findIndex(function(e){return e.id===r})+1);e.backTo(o)}}),s.on("mouseenter",function(e){var n;e.target.get("id")!==(null===(n=(0,em.Z$)(i))||void 0===n?void 0:n.id)?s.attr(t.activeTextStyle):s.attr({cursor:"default"})}),s.on("mouseleave",function(){s.attr(t.textStyle)}),o0&&i*i>n*n+r*r}function fi(e,t){for(var i=0;i(s*=s)?(n=(h+s-r)/(2*h),o=Math.sqrt(Math.max(0,s/h-n*n)),i.x=e.x-n*a-o*l,i.y=e.y-n*l+o*a):(n=(h+r-s)/(2*h),o=Math.sqrt(Math.max(0,r/h-n*n)),i.x=t.x+n*a-o*l,i.y=t.y+n*l+o*a)):(i.x=t.x+i.r,i.y=t.y)}function fs(e,t){var i=e.r+t.r-1e-6,n=t.x-e.x,r=t.y-e.y;return i>0&&i*i>n*n+r*r}function fa(e){var t=e._,i=e.next._,n=t.r+i.r,r=(t.x*i.r+i.x*t.r)/n,o=(t.y*i.r+i.y*t.r)/n;return r*r+o*o}function fl(e){this._=e,this.next=null,this.previous=null}function fh(e){var t,i,n,r,o,s,a,l,h,u,d,c;if(!(r=(e="object"==typeof(c=e)&&"length"in c?c:Array.from(c)).length))return 0;if((t=e[0]).x=0,t.y=0,!(r>1))return t.r;if(i=e[1],t.x=-i.r,i.x=t.r,i.y=0,!(r>2))return t.r+i.r;fo(i,t,n=e[2]),t=new fl(t),i=new fl(i),n=new fl(n),t.next=n.previous=i,i.next=t.previous=n,n.next=i.previous=t;e:for(a=3;a=0;)t+=i[n].value;else t=1;e.value=t}function fC(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=fy)):void 0===t&&(t=fS);for(var i,n,r,o,s,a=new fA(e),l=[a];i=l.pop();)if((r=t(i.data))&&(s=(r=Array.from(r)).length))for(i.children=r,o=s-1;o>=0;--o)l.push(n=r[o]=new fA(r[o])),n.parent=i,n.depth=i.depth+1;return a.eachBefore(fb)}function fS(e){return e.children}function fy(e){return Array.isArray(e)?e[1]:null}function fT(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function fb(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function fA(e){this.data=e,this.depth=this.height=0,this.parent=null}fA.prototype=fC.prototype={constructor:fA,count:function(){return this.eachAfter(f_)},each:function(e,t){let i=-1;for(let n of this)e.call(t,n,++i,this);return this},eachAfter:function(e,t){for(var i,n,r,o=this,s=[o],a=[],l=-1;o=s.pop();)if(a.push(o),i=o.children)for(n=0,r=i.length;n=0;--n)o.push(i[n]);return this},find:function(e,t){let i=-1;for(let n of this)if(e.call(t,n,++i,this))return n},sum:function(e){return this.eachAfter(function(t){for(var i=+e(t.data)||0,n=t.children,r=n&&n.length;--r>=0;)i+=n[r].value;t.value=i})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,i=function(e,t){if(e===t)return e;var i=e.ancestors(),n=t.ancestors(),r=null;for(e=i.pop(),t=n.pop();e===t;)r=e,e=i.pop(),t=n.pop();return r}(t,e),n=[t];t!==i;)n.push(t=t.parent);for(var r=n.length;e!==i;)n.splice(r,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(i){i!==e&&t.push({source:i.parent,target:i})}),t},copy:function(){return fC(this).eachBefore(fT)},[Symbol.iterator]:function*(){var e,t,i,n,r=this,o=[r];do for(e=o.reverse(),o=[];r=e.pop();)if(yield r,t=r.children)for(i=0,n=t.length;i0&&i1;)n="".concat(null===(t=s.parent.data)||void 0===t?void 0:t.name," / ").concat(n),s=s.parent;if(o&&e.depth>2)return null;var l=up({},e.data,(0,ef.pi)((0,ef.pi)((0,ef.pi)({},us(e.data,r)),{path:n}),e));l.ext=i,l[p9]={hierarchyConfig:i,rawFields:r,enableDrillDown:o},a.push(l)}),a}function fM(e,t,i){var n=ub([e,t]),r=n[0],o=n[1],s=n[2],a=n[3],l=i.width,h=i.height,u=l-(a+o),d=h-(r+s),c=Math.min(u,d),g=(u-c)/2,p=(d-c)/2;return{finalPadding:[r+p,o+g,s+p,a+g],finalSize:c<0?0:c}}function fk(e){var t=e.chart,i=Math.min(t.viewBBox.width,t.viewBBox.height);return up({options:{size:function(e){return e.r*i}}},e)}function fP(e){var t=e.options,i=e.chart,n=i.viewBBox,r=t.padding,o=t.appendPadding,s=t.drilldown,a=o;(null==s?void 0:s.enabled)&&(a=ub([uT(i.appendPadding,(0,em.U2)(s,["breadCrumb","position"])),o]));var l=fM(r,a,n).finalPadding;return i.padding=l,i.appendPadding=0,e}function fF(e){var t=e.chart,i=e.options,n=t.padding,r=t.appendPadding,o=i.color,s=i.colorField,a=i.pointStyle,l=i.hierarchyConfig,h=i.sizeField,u=i.rawFields,d=void 0===u?[]:u,c=i.drilldown,g=fD({data:i.data,hierarchyConfig:l,enableDrillDown:null==c?void 0:c.enabled,rawFields:d});t.data(g);var p=fM(n,r,t.viewBBox).finalSize,f=function(e){return e.r*p};return h&&(f=function(e){return e[h]*p}),ds(up({},e,{options:{xField:"x",yField:"y",seriesField:s,sizeField:h,rawFields:(0,ef.ev)((0,ef.ev)([],p4,!0),d,!0),point:{color:o,style:a,shape:"circle",size:f}}})),e}function fB(e){return um(u0({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(e)}function fU(e){var t=e.chart,i=e.options.tooltip;if(!1===i)t.tooltip(!1);else{var n=i;(0,em.U2)(i,"fields")||(n=up({},{customItems:function(e){return e.map(function(e){var i=(0,em.U2)(t.getOptions(),"scales"),n=(0,em.U2)(i,["name","formatter"],function(e){return e}),r=(0,em.U2)(i,["value","formatter"],function(e){return e});return(0,ef.pi)((0,ef.pi)({},e),{name:n(e.data.name),value:r(e.data.value)})})}},n)),t.tooltip(n)}return e}function fH(e){return e.chart.axis(!1),e}function fV(e){var t,i,n;return uX({chart:e.chart,options:(i=(t=e.options).drilldown,n=t.interactions,(null==i?void 0:i.enabled)?up({},t,{interactions:(0,ef.ev)((0,ef.ev)([],void 0===n?[]:n,!0),[{type:"drill-down",cfg:{drillDownConfig:i,transformData:fD,enableDrillDown:!0}}],!1)}):t)}),e}function fW(e){return um(uY("pointStyle"),fk,fP,uq,fB,fF,fH,uK,fU,fV,uj,u1())(e)}function fG(e){var t=(0,em.U2)(e,["event","data","data"],{});return(0,em.kJ)(t.children)&&t.children.length>0}function fz(e){var t=e.view.getCoordinate(),i=t.innerRadius;if(i){var n=e.event,r=n.x,o=n.y,s=t.center;return Math.sqrt(Math.pow(s.x-r,2)+Math.pow(s.y-o,2))-1)||(t=Math.min(h,u),i=Math.max(h,u),n>=t&&n<=i)}),e.getRootView().render(!0)}};function f4(e){var t,i=e.options,n=i.geometryOptions,r=void 0===n?[]:n,o=i.xField,s=i.yField,a=(0,em.yW)(r,function(e){var t=e.geometry;return t===et.Line||void 0===t});return up({},{options:{geometryOptions:[],meta:((t={})[o]={type:"cat",sync:!0,range:a?[0,1]:void 0},t),tooltip:{showMarkers:a,showCrosshairs:a,shared:!0,crosshairs:{type:"x"}},interactions:a?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},e,{options:{yAxis:fQ(s,i.yAxis),geometryOptions:[fJ(o,s[0],r[0]),fJ(o,s[1],r[1])],annotations:fQ(s,i.annotations)}})}function f5(e){var t,i,n=e.chart,r=e.options.geometryOptions,o={line:0,column:1};return[{type:null===(t=r[0])||void 0===t?void 0:t.geometry,id:fY},{type:null===(i=r[1])||void 0===i?void 0:i.geometry,id:fK}].sort(function(e,t){return-o[e.type]+o[t.type]}).forEach(function(e){return n.createView({id:e.id})}),e}function f6(e){var t=e.chart,i=e.options,n=i.xField,r=i.yField,o=i.geometryOptions,s=i.data,a=i.tooltip;return[(0,ef.pi)((0,ef.pi)({},o[0]),{id:fY,data:s[0],yField:r[0]}),(0,ef.pi)((0,ef.pi)({},o[1]),{id:fK,data:s[1],yField:r[1]})].forEach(function(e){var i=e.id,r=e.data,o=e.yField,s=fZ(e)&&e.isPercent,l=s?dg(r,o,n,o):r,h=ux(t,i).data(l),u=s?(0,ef.pi)({formatter:function(t){return{name:t[e.seriesField]||o,value:(100*Number(t[o])).toFixed(2)+"%"}}},a):a;!function(e){var t=e.options,i=e.chart,n=t.geometryOption,r=n.isStack,o=n.color,s=n.seriesField,a=n.groupField,l=n.isGroup,h=["xField","yField"];if(fq(n)){dr(up({},e,{options:(0,ef.pi)((0,ef.pi)((0,ef.pi)({},us(t,h)),n),{line:{color:n.color,style:n.lineStyle}})})),ds(up({},e,{options:(0,ef.pi)((0,ef.pi)((0,ef.pi)({},us(t,h)),n),{point:n.point&&(0,ef.pi)({color:o,shape:"circle"},n.point)})}));var u=[];l&&u.push({type:"dodge",dodgeBy:a||s,customOffset:0}),r&&u.push({type:"stack"}),u.length&&(0,em.S6)(i.geometries,function(e){e.adjust(u)})}fZ(n)&&dz(up({},e,{options:(0,ef.pi)((0,ef.pi)((0,ef.pi)({},us(t,h)),n),{widthRatio:n.columnWidthRatio,interval:(0,ef.pi)((0,ef.pi)({},us(n,["color"])),{style:n.columnStyle})})}))}({chart:h,options:{xField:n,yField:o,tooltip:u,geometryOption:e}})}),e}function f3(e){var t,i=e.chart,n=e.options.geometryOptions,r=(null===(t=i.getTheme())||void 0===t?void 0:t.colors10)||[],o=0;return i.once("beforepaint",function(){(0,em.S6)(n,function(e,t){var n=ux(i,0===t?fY:fK);if(!e.color){var s=n.getGroupScales(),a=(0,em.U2)(s,[0,"values","length"],1),l=r.slice(o,o+a).concat(0===t?[]:r);n.geometries.forEach(function(t){e.seriesField?t.color(e.seriesField,l):t.color(l[0])}),o+=a}}),i.render(!0)}),e}function f9(e){var t,i,n=e.chart,r=e.options,o=r.xAxis,s=r.yAxis,a=r.xField,l=r.yField;return u0(((t={})[a]=o,t[l[0]]=s[0],t))(up({},e,{chart:ux(n,fY)})),u0(((i={})[a]=o,i[l[1]]=s[1],i))(up({},e,{chart:ux(n,fK)})),e}function f7(e){var t=e.chart,i=e.options,n=ux(t,fY),r=ux(t,fK),o=i.xField,s=i.yField,a=i.xAxis,l=i.yAxis;return t.axis(o,!1),t.axis(s[0],!1),t.axis(s[1],!1),n.axis(o,a),n.axis(s[0],f0(l[0],ee.Left)),r.axis(o,!1),r.axis(s[1],f0(l[1],ee.Right)),e}function f8(e){var t=e.chart,i=e.options.tooltip,n=ux(t,fY),r=ux(t,fK);return t.tooltip(i),n.tooltip({shared:!0}),r.tooltip({shared:!0}),e}function me(e){var t=e.chart;return uX(up({},e,{chart:ux(t,fY)})),uX(up({},e,{chart:ux(t,fK)})),e}function mt(e){var t=e.chart,i=e.options.annotations,n=(0,em.U2)(i,[0]),r=(0,em.U2)(i,[1]);return u1(n)(up({},e,{chart:ux(t,fY),options:{annotations:n}})),u1(r)(up({},e,{chart:ux(t,fK),options:{annotations:r}})),e}function mi(e){var t=e.chart;return uq(up({},e,{chart:ux(t,fY)})),uq(up({},e,{chart:ux(t,fK)})),uq(e),e}function mn(e){var t=e.chart;return uj(up({},e,{chart:ux(t,fY)})),uj(up({},e,{chart:ux(t,fK)})),e}function mr(e){var t=e.chart,i=e.options.yAxis;return u2(up({},e,{chart:ux(t,fY),options:{yAxis:i[0]}})),u2(up({},e,{chart:ux(t,fK),options:{yAxis:i[1]}})),e}function mo(e){var t=e.chart,i=e.options,n=i.legend,r=i.geometryOptions,o=i.yField,s=i.data,a=ux(t,fY),l=ux(t,fK);if(!1===n)t.legend(!1);else if((0,em.Kn)(n)&&!0===n.custom)t.legend(n);else{var h=(0,em.U2)(r,[0,"legend"],n),u=(0,em.U2)(r,[1,"legend"],n);t.once("beforepaint",function(){var e=s[0].length?f1({view:a,geometryOption:r[0],yField:o[0],legend:h}):[],i=s[1].length?f1({view:l,geometryOption:r[1],yField:o[1],legend:u}):[];t.legend(up({},n,{custom:!0,items:e.concat(i)}))}),r[0].seriesField&&a.legend(r[0].seriesField,h),r[1].seriesField&&l.legend(r[1].seriesField,u),t.on("legend-item:click",function(e){var i=(0,em.U2)(e,"gEvent.delegateObject",{});if(i&&i.item){var n=i.item,r=n.value,s=n.isGeometry,a=n.viewId;if(s){if((0,em.cx)(o,function(e){return e===r})>-1){var l=(0,em.U2)(ux(t,a),"geometries");(0,em.S6)(l,function(e){e.changeVisible(!i.item.unchecked)})}}else{var h=(0,em.U2)(t.getController("legend"),"option.items",[]);(0,em.S6)(t.views,function(e){var i=e.getGroupScales();(0,em.S6)(i,function(t){t.values&&t.values.indexOf(r)>-1&&e.filter(t.field,function(e){return!(0,em.sE)(h,function(t){return t.value===e}).unchecked})}),t.render(!0)})}}})}return e}function ms(e){var t=e.chart,i=e.options.slider,n=ux(t,fY),r=ux(t,fK);return i&&(n.option("slider",i),n.on("slider:valuechanged",function(e){var t=e.event,i=t.value,n=t.originValue;(0,em.Xy)(i,n)||f2(r,i)}),t.once("afterpaint",function(){if(!(0,em.jn)(i)){var e=i.start,t=i.end;(e||t)&&f2(r,[e,t])}})),e}function ma(e){return um(f4,f5,mi,f6,f9,f7,mr,f8,me,mt,mn,f3,mo,ms)(e)}function ml(e){var t=e.chart,i=e.options,n=i.type,r=i.data,o=i.fields,s=i.eachView,a=(0,em.CE)(i,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return t.data(r),t.facet(n,(0,ef.pi)((0,ef.pi)({},a),{fields:o,eachView:function(e,t){var i,n,r,o,a,l,h,u,d,c,g=s(e,t);if(g.geometries)i=g.data,n=g.coordinate,r=g.interactions,o=g.annotations,a=g.animation,l=g.tooltip,h=g.axes,u=g.meta,d=g.geometries,i&&e.data(i),c={},h&&(0,em.S6)(h,function(e,t){c[t]=us(e,un)}),c=up({},u,c),e.scale(c),n&&e.coordinate(n),!1===h?e.axis(!1):(0,em.S6)(h,function(t,i){e.axis(i,t)}),(0,em.S6)(d,function(t){var i=de({chart:e,options:t}).ext,n=t.adjust;n&&i.geometry.adjust(n)}),(0,em.S6)(r,function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg)}),(0,em.S6)(o,function(t){e.annotation()[t.type]((0,ef.pi)({},t))}),uk(e,a),l?(e.interaction("tooltip"),e.tooltip(l)):!1===l&&e.removeInteraction("tooltip");else{var p=g.options;p.tooltip&&e.interaction("tooltip"),pn(g.type,e,p)}}})),e}function mh(e){var t=e.chart,i=e.options,n=i.axes,r=i.meta,o=i.tooltip,s=i.coordinate,a=i.theme,l=i.legend,h=i.interactions,u=i.annotations,d={};return n&&(0,em.S6)(n,function(e,t){d[t]=us(e,un)}),d=up({},r,d),t.scale(d),t.coordinate(s),n?(0,em.S6)(n,function(e,i){t.axis(i,e)}):t.axis(!1),o?(t.interaction("tooltip"),t.tooltip(o)):!1===o&&t.removeInteraction("tooltip"),t.legend(l),a&&t.theme(a),(0,em.S6)(h,function(e){!1===e.enable?t.removeInteraction(e.type):t.interaction(e.type,e.cfg)}),(0,em.S6)(u,function(e){t.annotation()[e.type]((0,ef.pi)({},e))}),e}function mu(e){return um(uq,ml,mh)(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dual-axes",t}(0,ef.ZT)(t,e),t.prototype.getDefaultOptions=function(){return up({},e.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},t.prototype.getSchemaAdaptor=function(){return ma}}(dc);var md={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}};function mc(e){var t=e.chart,i=e.options,n=i.data,r=i.type,o=i.xField,s=i.yField,a=i.colorField,l=i.sizeField,h=i.sizeRatio,u=i.shape,d=i.color,c=i.tooltip,g=i.heatmapStyle,p=i.meta;t.data(n);var f="polygon";"density"===r&&(f="heatmap");var m=u9(c,[o,s,a]),v=m.fields,E=m.formatter,_=1;return(h||0===h)&&(u||l?h<0||h>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):_=h:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),de(up({},e,{options:{type:f,colorField:a,tooltipFields:v,shapeField:l||"",label:void 0,mapping:{tooltip:E,shape:u&&(l?function(e){var t=n.map(function(e){return e[l]}),i=(null==p?void 0:p[l])||{},r=i.min,o=i.max;return r=(0,em.hj)(r)?r:Math.min.apply(Math,t),o=(0,em.hj)(o)?o:Math.max.apply(Math,t),[u,((0,em.U2)(e,l)-r)/(o-r),_]}:function(){return[u,1,_]}),color:d||a&&t.getTheme().sequenceColors.join("-"),style:g}}})),e}function mg(e){var t,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.yField;return um(u0(((t={})[o]=n,t[s]=r,t)))(e)}function mp(e){var t=e.chart,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.yField;return!1===n?t.axis(o,!1):t.axis(o,n),!1===r?t.axis(s,!1):t.axis(s,r),e}function mf(e){var t=e.chart,i=e.options,n=i.legend,r=i.colorField,o=i.sizeField,s=i.sizeLegend,a=!1!==n;return r&&t.legend(r,!!a&&n),o&&t.legend(o,void 0===s?n:s),a||s||t.legend(!1),e}function mm(e){var t=e.chart,i=e.options,n=i.label,r=i.colorField,o=uv(t,"density"===i.type?"heatmap":"polygon");if(n){if(r){var s=n.callback,a=(0,ef._T)(n,["callback"]);o.label({fields:[r],callback:s,cfg:uC(a)})}}else o.label(!1);return e}function mv(e){var t,i,n=e.chart,r=e.options,o=r.coordinate,s=r.reflect,a=up({actions:[]},null!=o?o:{type:"rect"});return s&&(null===(i=null===(t=a.actions)||void 0===t?void 0:t.push)||void 0===i||i.call(t,["reflect",s])),n.coordinate(a),e}function mE(e){return um(uq,uY("heatmapStyle"),mg,mv,mc,mp,mf,u$,mm,u1(),uX,uj,uZ)(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="area",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return md},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return mu}}(dc);var m_=up({},dc.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}});function mC(e){return[{percent:e,type:"liquid"}]}function mS(e){var t=e.chart,i=e.options,n=i.percent,r=i.liquidStyle,o=i.radius,s=i.outline,a=i.wave,l=i.shape,h=i.shapeStyle,u=i.animation;t.scale({percent:{min:0,max:1}}),t.data(mC(n));var d=dn(up({},e,{options:{xField:"type",yField:"percent",widthRatio:o,interval:{color:i.color||t.getTheme().defaultColor,style:r,shape:"liquid-fill-gauge"}}})).ext.geometry,c=t.getTheme().background;return d.customInfo({percent:n,radius:o,outline:s,wave:a,shape:l,shapeStyle:h,background:c,animation:u}),t.legend(!1),t.axis(!1),t.tooltip(!1),e}function my(e,t){var i=e.chart,n=e.options,r=n.statistic,o=n.percent,s=n.meta;i.getController("annotation").clear(!0);var a=(0,em.U2)(s,["percent","formatter"])||function(e){return"".concat((100*e).toFixed(2),"%")},l=r.content;return l&&(l=up({},l,{content:(0,em.UM)(l.content)?a(o):l.content})),uI(i,{statistic:(0,ef.pi)((0,ef.pi)({},r),{content:l}),plotType:"liquid"},{percent:o}),t&&i.render(!0),e}function mT(e){return um(uq,uY("liquidStyle"),mS,my,u0({}),uj,uX)(e)}o$("polygon","circle",{draw:function(e,t){var i,n,r=e.x,o=e.y,s=this.parsePoints(e.points),a=Math.min(Math.abs(s[2].x-s[1].x),Math.abs(s[1].y-s[0].y))/2,l=Number(e.shape[1]),h=a*Math.sqrt(Number(e.shape[2]))*Math.sqrt(l),u=(null===(i=e.style)||void 0===i?void 0:i.fill)||e.color||(null===(n=e.defaultStyle)||void 0===n?void 0:n.fill);return t.addShape("circle",{attrs:(0,ef.pi)((0,ef.pi)((0,ef.pi)({x:r,y:o,r:h},e.defaultStyle),e.style),{fill:u})})}}),o$("polygon","square",{draw:function(e,t){var i,n,r=e.x,o=e.y,s=this.parsePoints(e.points),a=Math.min(Math.abs(s[2].x-s[1].x),Math.abs(s[1].y-s[0].y)),l=Number(e.shape[1]),h=a*Math.sqrt(Number(e.shape[2]))*Math.sqrt(l),u=(null===(i=e.style)||void 0===i?void 0:i.fill)||e.color||(null===(n=e.defaultStyle)||void 0===n?void 0:n.fill);return t.addShape("rect",{attrs:(0,ef.pi)((0,ef.pi)((0,ef.pi)({x:r-h/2,y:o-h/2,width:h,height:h},e.defaultStyle),e.style),{fill:u})})}}),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="heatmap",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return m_},t.prototype.getSchemaAdaptor=function(){return mE},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()}}(dc);var mb={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"},mA={pin:function(e,t,i,n){var r=2*i/3,o=Math.max(r,n),s=r/2,a=s+t-o/2,l=Math.asin(s/((o-s)*.85)),h=Math.sin(l)*s,u=Math.cos(l)*s,d=e-u,c=a+h,g=a+s/Math.sin(l);return"\n M ".concat(d," ").concat(c,"\n A ").concat(s," ").concat(s," 0 1 1 ").concat(d+2*u," ").concat(c,"\n Q ").concat(e," ").concat(g," ").concat(e," ").concat(t+o/2,"\n Q ").concat(e," ").concat(g," ").concat(d," ").concat(c,"\n Z \n ")},circle:function(e,t,i,n){var r=i/2,o=n/2;return"\n M ".concat(e," ").concat(t-o," \n a ").concat(r," ").concat(o," 0 1 0 0 ").concat(2*o,"\n a ").concat(r," ").concat(o," 0 1 0 0 ").concat(-(2*o),"\n Z\n ")},diamond:function(e,t,i,n){var r=n/2,o=i/2;return"\n M ".concat(e," ").concat(t-r,"\n L ").concat(e+o," ").concat(t,"\n L ").concat(e," ").concat(t+r,"\n L ").concat(e-o," ").concat(t,"\n Z\n ")},triangle:function(e,t,i,n){var r=n/2,o=i/2;return"\n M ".concat(e," ").concat(t-r,"\n L ").concat(e+o," ").concat(t+r,"\n L ").concat(e-o," ").concat(t+r,"\n Z\n ")},rect:function(e,t,i,n){var r=n/2,o=i/2*.618;return"\n M ".concat(e-o," ").concat(t-r,"\n L ").concat(e+o," ").concat(t-r,"\n L ").concat(e+o," ").concat(t+r,"\n L ").concat(e-o," ").concat(t+r,"\n Z\n ")}};function mR(e){var t=e.chart,i=e.options,n=i.data,r=i.lineStyle,o=i.color,s=i.point,a=i.area;t.data(n);var l=up({},e,{options:{line:{style:r,color:o},point:s?(0,ef.pi)({color:o},s):s,area:a?(0,ef.pi)({color:o},a):a,label:void 0}}),h=up({},l,{options:{tooltip:!1}}),u=up({},l,{options:{tooltip:!1,state:(null==s?void 0:s.state)||i.state}});return dr(l),ds(u),dt(h),e}function mL(e){var t,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.yField;return um(u0(((t={})[o]=n,t[s]=r,t)))(e)}function mN(e){var t=e.chart,i=e.options,n=i.radius,r=i.startAngle,o=i.endAngle;return t.coordinate("polar",{radius:n,startAngle:r,endAngle:o}),e}function mI(e){var t=e.chart,i=e.options,n=i.xField,r=i.xAxis,o=i.yField,s=i.yAxis;return t.axis(n,r),t.axis(o,s),e}function mw(e){var t=e.chart,i=e.options,n=i.label,r=i.yField,o=uv(t,"line");if(n){var s=n.callback,a=(0,ef._T)(n,["callback"]);o.label({fields:[r],callback:s,cfg:uC(a)})}else o.label(!1);return e}function mO(e){return um(mR,mL,uq,mN,mI,uK,u$,mw,uX,uj,u1())(e)}function mx(e){var t=e.chart,i=e.options,n=i.barStyle,r=i.color,o=i.tooltip,s=i.colorField,a=i.type,l=i.xField,h=i.yField,u=i.data,d=i.shape,c=uh(u,h);return t.data(c),dn(up({},e,{options:{tooltip:o,seriesField:s,interval:{style:n,color:r,shape:d||("line"===a?"line":"intervel")},minColumnWidth:i.minBarWidth,maxColumnWidth:i.maxBarWidth,columnBackground:i.barBackground}})),"line"===a&&ds({chart:t,options:{xField:l,yField:h,seriesField:s,point:{shape:"circle",color:r}}}),e}function mD(e){var t,i,n,r,o,s=e.options,a=s.yField,l=s.xField,h=s.data,u=s.isStack,d=s.isGroup,c=s.colorField,g=s.maxAngle,p=uh(u&&!d&&c?(t=[],h.forEach(function(e){var i=t.find(function(t){return t[l]===e[l]});i?i[a]+=e[a]||null:t.push((0,ef.pi)({},e))}),t):h,a);return um(u0(((o={})[a]={min:0,max:(n=(i=p.map(function(e){return e[a]}).filter(function(e){return void 0!==e})).length>0?Math.max.apply(Math,i):0,(r=Math.abs(g)%360)?360*n/r:n)},o)))(e)}function mM(e){var t=e.chart,i=e.options,n=i.radius,r=i.innerRadius,o=i.startAngle,s=i.endAngle;return t.coordinate({type:"polar",cfg:{radius:n,innerRadius:r,startAngle:o,endAngle:s}}).transpose(),e}function mk(e){var t=e.chart,i=e.options,n=i.xField,r=i.xAxis;return t.axis(n,r),e}function mP(e){var t=e.chart,i=e.options,n=i.label,r=i.yField,o=uv(t,"interval");if(n){var s=n.callback,a=(0,ef._T)(n,["callback"]);o.label({fields:[r],callback:s,cfg:(0,ef.pi)((0,ef.pi)({},uC(a)),{type:"polar"})})}else o.label(!1);return e}function mF(e){return um(uY("barStyle"),mx,mD,mk,mM,uX,uj,uq,u$,uK,u1(),mP)(e)}o$("interval","liquid-fill-gauge",{draw:function(e,t){var i,n,r,o=e.customInfo,s=o.percent,a=o.radius,l=o.shape,h=o.shapeStyle,u=o.background,d=o.animation,c=o.outline,g=o.wave,p=c.border,f=c.distance,m=g.count,v=g.length,E=(0,em.u4)(e.points,function(e,t){return Math.min(e,t.x)},1/0),_=this.parsePoint({x:.5,y:.5}),C=this.parsePoint({x:E,y:.5}),S=Math.min(_.x-C.x,C.y*a),y=(i=(0,ef.pi)({opacity:1},e.style),e.color&&!i.fill&&(i.fill=e.color),i),T=(n=(0,em.CD)({},e,c),r=(0,em.CD)({},{fill:"#fff",fillOpacity:0,lineWidth:4},n.style),n.color&&!r.stroke&&(r.stroke=n.color),(0,em.hj)(n.opacity)&&(r.opacity=r.strokeOpacity=n.opacity),r),b=S-p/2,A=("function"==typeof l?l:mA[l]||mA.circle)(_.x,_.y,2*b,2*b);if(h&&t.addShape("path",{name:"shape",attrs:(0,ef.pi)({path:A},h)}),s>0){var R=t.addGroup({name:"waves"}),L=R.setClip({type:"path",attrs:{path:A}});!function(e,t,i,n,r,o,s,a,l,h){for(var u=r.fill,d=r.opacity,c=s.getBBox(),g=c.maxX-c.minX,p=c.maxY-c.minY,f=0;f0;)h-=2*Math.PI;var u=o-e+(h=h/Math.PI/2*i)-2*e;l.push(["M",u,t]);for(var d=0,c=0;c0){var s=this.view.geometries[0],a=s.dataArray,l=o[0].name,h=[];return a.forEach(function(e){e.forEach(function(e){var t=sr.getTooltipItems(e,s)[0];if(!n&&t&&t.name===l){var i=(0,em.UM)(r)?l:r;h.push((0,ef.pi)((0,ef.pi)({},t),{name:t.title,title:i}))}else if(n&&t){var i=(0,em.UM)(r)?t.name||l:r;h.push((0,ef.pi)((0,ef.pi)({},t),{name:t.title,title:i}))}})}),h}return[]},t}(oN),ov["radar-tooltip"]=w,rA("radar-tooltip",function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.init=function(){this.context.view.removeInteraction("tooltip")},t.prototype.show=function(){var e=this.context.event;this.getTooltipController().showTooltip({x:e.x,y:e.y})},t.prototype.hide=function(){this.getTooltipController().hideTooltip()},t.prototype.getTooltipController=function(){return this.context.view.getController("radar-tooltip")},t}(rS)),r3("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]}),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="radar",t}(0,ef.ZT)(t,e),t.prototype.changeData=function(e){this.updateOption({data:e}),this.chart.changeData(e)},t.prototype.getDefaultOptions=function(){return up({},e.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},t.prototype.getSchemaAdaptor=function(){return mO}}(dc);var mB=up({},dc.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240});function mU(e){var t=e.chart,i=e.options,n=i.data,r=i.sectorStyle,o=i.shape,s=i.color;return t.data(n),um(dn)(up({},e,{options:{marginRatio:1,interval:{style:r,color:s,shape:o}}})),e}function mH(e){var t=e.chart,i=e.options,n=i.label,r=i.xField,o=uv(t,"interval");if(!1===n)o.label(!1);else if((0,em.Kn)(n)){var s=n.callback,a=n.fields,l=(0,ef._T)(n,["callback","fields"]),h=l.offset,u=l.layout;(void 0===h||h>=0)&&(u=u?(0,em.kJ)(u)?u:[u]:[],l.layout=(0,em.hX)(u,function(e){return"limit-in-shape"!==e.type}),l.layout.length||delete l.layout),o.label({fields:a||[r],callback:s,cfg:uC(l)})}else uo(X.WARN,null===n,"the label option must be an Object."),o.label({fields:[r]});return e}function mV(e){var t=e.chart,i=e.options,n=i.legend,r=i.seriesField;return!1===n?t.legend(!1):r&&t.legend(r,n),e}function mW(e){var t=e.chart,i=e.options,n=i.radius,r=i.innerRadius,o=i.startAngle,s=i.endAngle;return t.coordinate({type:"polar",cfg:{radius:n,innerRadius:r,startAngle:o,endAngle:s}}),e}function mG(e){var t,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.yField;return um(u0(((t={})[o]=n,t[s]=r,t)))(e)}function mz(e){var t=e.chart,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.yField;return n?t.axis(o,n):t.axis(o,!1),r?t.axis(s,r):t.axis(s,!1),e}function mY(e){um(uY("sectorStyle"),mU,mG,mH,mW,mz,mV,u$,uX,uj,uq,u1(),uZ)(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="radial-bar",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return mB},t.prototype.changeData=function(e){this.updateOption({data:e}),mD({chart:this.chart,options:this.options}),this.chart.changeData(e)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return mF}}(dc);var mK=up({},dc.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="rose",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return mK},t.prototype.changeData=function(e){this.updateOption({data:e}),this.chart.changeData(e)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return mY}}(dc);var m$="name",mX="nodes",mj="edges";function mq(e){return e.target.depth}function mZ(e,t){return e.sourceLinks.length?e.depth:t-1}function mJ(e){return function(){return e}}function mQ(e,t){for(var i=0,n=0;no.findIndex(function(n){return n==="".concat(e[t],"_").concat(e[i])})})}(p,f,m),f,m,v,R);var L=(n={nodeAlign:E,nodePadding:uS(C)?C/i:S,nodeWidth:uS(y)?y/t:T,nodeSort:_,nodeDepth:b},o=(r=(0,em.f0)({},vt,n)).nodeId,s=r.nodeSort,a=r.nodeAlign,l=r.nodeWidth,h=r.nodePadding,u=r.nodeDepth,{nodes:(d=(function(){var e,t,i,n,r=0,o=0,s=1,a=1,l=24,h=8,u=m6,d=mZ,c=m3,g=m9,p=6;function f(f){var v={nodes:c(f),links:g(f)};return function(e){var t=e.nodes,n=e.links;t.forEach(function(e,t){e.index=t,e.sourceLinks=[],e.targetLinks=[]});var r=new Map(t.map(function(e){return[u(e),e]}));if(n.forEach(function(e,t){e.index=t;var i=e.source,n=e.target;"object"!=typeof i&&(i=e.source=m7(r,i)),"object"!=typeof n&&(n=e.target=m7(r,n)),i.sourceLinks.push(e),n.targetLinks.push(e)}),null!=i)for(var o=0;on)throw Error("circular link");r=o,o=new Set}if(e)for(var a=Math.max(m0(i,function(e){return e.depth})+1,0),l=void 0,h=0;hi)throw Error("circular link");n=r,r=new Set}}(v),function(e){var u=function(e){for(var i=e.nodes,n=Math.max(m0(i,function(e){return e.depth})+1,0),o=(s-r-l)/(n-1),a=Array(n).fill(0).map(function(){return[]}),h=0;h=0;--s){for(var a=e[s],l=0;l0){var E=(u/d-h.y0)*i;h.y0+=E,h.y1+=E,_(h)}}void 0===t&&a.sort(m4),a.length&&m(a,r)}})(u,g,f),function(e,i,r){for(var o=1,s=e.length;o0){var E=(u/d-h.y0)*i;h.y0+=E,h.y1+=E,_(h)}}void 0===t&&a.sort(m4),a.length&&m(a,r)}}(u,g,f)}}(v),m8(v),v}function m(e,t){var i=e.length>>1,r=e[i];E(e,r.y0-n,i-1,t),v(e,r.y1+n,i+1,t),E(e,a,e.length-1,t),v(e,o,0,t)}function v(e,t,i,r){for(;i1e-6&&(o.y0+=s,o.y1+=s),t=o.y1+n}}function E(e,t,i,r){for(;i>=0;--i){var o=e[i],s=(o.y1-t)*r;s>1e-6&&(o.y0-=s,o.y1-=s),t=o.y0-n}}function _(e){var t=e.sourceLinks,n=e.targetLinks;if(void 0===i){for(var r=0;r "+e.target,value:e.value}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},t.prototype.changeData=function(e){this.updateOption({data:e});var t=vi(this.options,this.chart.width,this.chart.height),i=t.nodes,n=t.edges,r=ux(this.chart,mX),o=ux(this.chart,mj);r.changeData(i),o.changeData(n)},t.prototype.getSchemaAdaptor=function(){return vl},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()}}(dc);var vh="ancestor-node",vu="value",vd="path",vc=[vd,fR,fN,fL,"name","depth","height"],vg=up({},dc.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},legend:!1,sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}});function vp(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function vf(e,t,i,n,r){for(var o,s=e.children,a=-1,l=s.length,h=e.value&&(n-t)/e.value;++a0)throw Error("cycle");return o}return i.id=function(t){return arguments.length?(e=fd(t),i):e},i.parentId=function(e){return arguments.length?(t=fd(e),i):t},i}function vN(e,t){return e.parent===t.parent?1:2}function vI(e){var t=e.children;return t?t[0]:e.t}function vw(e){var t=e.children;return t?t[t.length-1]:e.t}function vO(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function vx(){var e=vN,t=1,i=1,n=null;function r(r){var l=function(e){for(var t,i,n,r,o,s=new vO(e,0),a=[s];t=a.pop();)if(n=t._.children)for(t.children=Array(o=n.length),r=o-1;r>=0;--r)a.push(i=t.children[r]=new vO(n[r],r)),i.parent=t;return(s.parent=new vO(null,0)).children=[s],s}(r);if(l.eachAfter(o),l.parent.m=-l.z,l.eachBefore(s),n)r.eachBefore(a);else{var h=r,u=r,d=r;r.eachBefore(function(e){e.xu.x&&(u=e),e.depth>d.depth&&(d=e)});var c=h===u?1:e(h,u)/2,g=c-h.x,p=t/(u.x+c+g),f=i/(d.depth||1);r.eachBefore(function(e){e.x=(e.x+g)*p,e.y=e.depth*f})}return r}function o(t){var i=t.children,n=t.parent.children,r=t.i?n[t.i-1]:null;if(i){!function(e){for(var t,i=0,n=0,r=e.children,o=r.length;--o>=0;)t=r[o],t.z+=i,t.m+=i,i+=t.s+(n+=t.c)}(t);var o=(i[0].z+i[i.length-1].z)/2;r?(t.z=r.z+e(t._,r._),t.m=t.z-o):t.z=o}else r&&(t.z=r.z+e(t._,r._));t.parent.A=function(t,i,n){if(i){for(var r,o,s,a=t,l=t,h=i,u=a.parent.children[0],d=a.m,c=l.m,g=h.m,p=u.m;h=vw(h),a=vI(a),h&&a;)u=vI(u),(l=vw(l)).a=t,(s=h.z+g-a.z-d+e(h._,a._))>0&&(function(e,t,i){var n=i/(t.i-e.i);t.c-=n,t.s+=i,e.c+=n,t.z+=i,t.m+=i}((r=h,o=n,r.a.parent===t.parent?r.a:o),t,s),d+=s,c+=s),g+=h.m,d+=a.m,p+=u.m,c+=l.m;h&&!vw(l)&&(l.t=h,l.m+=g-c),a&&!vI(u)&&(u.t=a,u.m+=d-p,n=t)}return n}(t,r,t.parent.A||n[0])}function s(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function a(e){e.x*=t,e.y=e.depth*i}return r.separation=function(t){return arguments.length?(e=t,r):e},r.size=function(e){return arguments.length?(n=!1,t=+e[0],i=+e[1],r):n?null:[t,i]},r.nodeSize=function(e){return arguments.length?(n=!0,t=+e[0],i=+e[1],r):n?[t,i]:null},r}function vD(e,t,i,n,r){for(var o,s=e.children,a=-1,l=s.length,h=e.value&&(r-i)/e.value;++ac&&(c=a),(g=Math.max(c/(m=u*u*f),m/d))>p){u-=a;break}p=g}v.push(s={value:u,dice:l1?t:1)},i}(vM);function vF(){var e=vP,t=!1,i=1,n=1,r=[0],o=fc,s=fc,a=fc,l=fc,h=fc;function u(e){return e.x0=e.y0=0,e.x1=i,e.y1=n,e.eachBefore(d),r=[0],t&&e.eachBefore(vp),e}function d(t){var i=r[t.depth],n=t.x0+i,u=t.y0+i,d=t.x1-i,c=t.y1-i;d=i-1){var u=a[t];u.x0=r,u.y0=o,u.x1=s,u.y1=l;return}for(var d=h[t],c=n/2+d,g=t+1,p=i-1;g>>1;h[f]l-o){var E=n?(r*v+s*m)/n:s;e(t,g,m,r,o,E,l),e(g,i,v,E,o,s,l)}else{var _=n?(o*v+l*m)/n:l;e(t,g,m,r,o,s,_),e(g,i,v,r,_,s,l)}}(0,l,e.value,t,i,n,r)}function vU(e,t,i,n,r){(1&e.depth?vD:vf)(e,t,i,n,r)}var vH=function e(t){function i(e,i,n,r,o){if((s=e._squarify)&&s.ratio===t)for(var s,a,l,h,u,d=-1,c=s.length,g=e.value;++d1?t:1)},i}(vM),vV={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(e,t){return t.value-e.value},ratio:.5*(1+Math.sqrt(5))};function vW(e,t){var i,n,r,o=(t=(0,em.f0)({},vV,t)).as;if(!(0,em.kJ)(o)||2!==o.length)throw TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{r=fw(t)}catch(e){console.warn(e)}var s=(i=t.tile,n=t.ratio,"treemapSquarify"===i?ep[i].ratio(n):ep[i]),a=vF().tile(s).size(t.size).round(t.round).padding(t.padding).paddingInner(t.paddingInner).paddingOuter(t.paddingOuter).paddingTop(t.paddingTop).paddingRight(t.paddingRight).paddingBottom(t.paddingBottom).paddingLeft(t.paddingLeft)(fC(e).sum(function(e){return t.ignoreParentValue&&e.children?0:e[r]}).sort(t.sort)),l=o[0],h=o[1];return a.each(function(e){e[l]=[e.x0,e.x1,e.x1,e.x0],e[h]=[e.y1,e.y1,e.y0,e.y0],["x0","x1","y0","y1"].forEach(function(t){-1===o.indexOf(t)&&delete e[t]})}),fO(a)}function vG(e){var t=e.data,i=e.colorField,n=e.rawFields,r=e.hierarchyConfig,o=void 0===r?{}:r,s=o.activeDepth,a=e.seriesField,l=e.type||"partition",h=({partition:vE,treemap:vW})[l](t,(0,ef.pi)((0,ef.pi)({field:a||"value"},(0,em.CE)(o,["activeDepth"])),{type:"hierarchy.".concat(l),as:["x","y"]})),u=[];return h.forEach(function(e){if(0===e.depth||s>0&&e.depth>s)return null;for(var t,r,l,h,d,c,g=e.data.name,p=(0,ef.pi)({},e);p.depth>1;)g="".concat(null===(r=p.parent.data)||void 0===r?void 0:r.name," / ").concat(g),p=p.parent;var f=(0,ef.pi)((0,ef.pi)((0,ef.pi)({},us(e.data,(0,ef.ev)((0,ef.ev)([],n||[],!0),[o.field],!1))),((t={})[vd]=g,t[vh]=p.data.name,t)),e);a&&(f[a]=e.data[a]||(null===(h=null===(l=e.parent)||void 0===l?void 0:l.data)||void 0===h?void 0:h[a])),i&&(f[i]=e.data[i]||(null===(c=null===(d=e.parent)||void 0===d?void 0:d.data)||void 0===c?void 0:c[i])),f.ext=o,f[p9]={hierarchyConfig:o,colorField:i,rawFields:n},u.push(f)}),u}function vz(e){var t,i=e.chart,n=e.options,r=n.color,o=n.colorField,s=void 0===o?vh:o,a=n.sunburstStyle,l=n.rawFields,h=void 0===l?[]:l,u=n.shape,d=vG(n);return i.data(d),a&&(t=function(e){return up({},{fillOpacity:Math.pow(.85,e.depth)},(0,em.mf)(a)?a(e):a)}),da(up({},e,{options:{xField:"x",yField:"y",seriesField:s,rawFields:(0,em.jj)((0,ef.ev)((0,ef.ev)([],vc,!0),h,!0)),polygon:{color:r,style:t,shape:u}}})),e}function vY(e){return e.chart.axis(!1),e}function vK(e){var t=e.chart,i=e.options.label,n=uv(t,"polygon");if(i){var r=i.fields,o=i.callback,s=(0,ef._T)(i,["fields","callback"]);n.label({fields:void 0===r?["name"]:r,callback:o,cfg:uC(s)})}else n.label(!1);return e}function v$(e){var t=e.chart,i=e.options,n=i.innerRadius,r=i.radius,o=i.reflect,s=t.coordinate({type:"polar",cfg:{innerRadius:n,radius:r}});return o&&s.reflect(o),e}function vX(e){var t,i=e.options,n=i.hierarchyConfig,r=i.meta;return um(u0({},((t={})[vu]=(0,em.U2)(r,(0,em.U2)(n,["field"],"value")),t)))(e)}function vj(e){var t=e.chart,i=e.options.tooltip;if(!1===i)t.tooltip(!1);else{var n=i;(0,em.U2)(i,"fields")||(n=up({},{customItems:function(e){return e.map(function(e){var i=(0,em.U2)(t.getOptions(),"scales"),n=(0,em.U2)(i,[vd,"formatter"],function(e){return e}),r=(0,em.U2)(i,[vu,"formatter"],function(e){return e});return(0,ef.pi)((0,ef.pi)({},e),{name:n(e.data[vd]),value:r(e.data.value)})})}},n)),t.tooltip(n)}return e}function vq(e){var t,i,n=e.chart,r=e.options,o=r.drilldown;return uX({chart:n,options:(t=r.drilldown,i=r.interactions,(null==t?void 0:t.enabled)?up({},r,{interactions:(0,ef.ev)((0,ef.ev)([],void 0===i?[]:i,!0),[{type:"drill-down",cfg:{drillDownConfig:t,transformData:vG}}],!1)}):r)}),(null==o?void 0:o.enabled)&&(n.appendPadding=uT(n.appendPadding,(0,em.U2)(o,["breadCrumb","position"]))),e}function vZ(e){return um(uq,uY("sunburstStyle"),vz,vY,vX,uK,v$,vj,vK,vq,uj,u1())(e)}function vJ(e,t){if((0,em.kJ)(e))return e.find(function(e){return e.type===t})}function vQ(e,t){var i=vJ(e,t);return i&&!1!==i.enable}function v0(e){var t=e.interactions,i=e.drilldown;return(0,em.U2)(i,"enabled")||vQ(t,"treemap-drill-down")}function v1(e){var t=e.data,i=e.colorField,n=e.enableDrillDown,r=e.hierarchyConfig,o=vW(t,(0,ef.pi)((0,ef.pi)({},r),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),s=[];return o.forEach(function(e){if(0===e.depth||n&&1!==e.depth||!n&&e.children)return null;var o=e.ancestors().map(function(e){return{data:e.data,height:e.height,value:e.value}}),a=n&&(0,em.kJ)(t.path)?o.concat(t.path.slice(1)):o,l=Object.assign({},e.data,(0,ef.pi)({x:e.x,y:e.y,depth:e.depth,value:e.value,path:a},e));if(!e.data[i]&&e.parent){var h=e.ancestors().find(function(e){return e.data[i]});l[i]=null==h?void 0:h.data[i]}else l[i]=e.data[i];l[p9]={hierarchyConfig:r,colorField:i,enableDrillDown:n},s.push(l)}),s}function v2(e){return up({options:{rawFields:["value"],tooltip:{fields:["name","value",e.options.colorField,"path"],formatter:function(e){return{name:e.name,value:e.value}}}}},e)}function v4(e){var t=e.chart,i=e.options,n=i.color,r=i.colorField,o=i.rectStyle,s=i.hierarchyConfig,a=i.rawFields,l=v1({data:i.data,colorField:i.colorField,enableDrillDown:v0(i),hierarchyConfig:s});return t.data(l),da(up({},e,{options:{xField:"x",yField:"y",seriesField:r,rawFields:a,polygon:{color:n,style:o}}})),t.coordinate().reflect("y"),e}function v5(e){return e.chart.axis(!1),e}function v6(e){var t,i,n=e.chart,r=e.options,o=r.interactions,s=r.drilldown;uX({chart:n,options:(t=r.drilldown,i=r.interactions,v0(r)?up({},r,{interactions:(0,ef.ev)((0,ef.ev)([],void 0===i?[]:i,!0),[{type:"drill-down",cfg:{drillDownConfig:t,transformData:v1}}],!1)}):r)});var a=vJ(o,"view-zoom");return a&&(!1!==a.enable?n.getCanvas().on("mousewheel",function(e){e.preventDefault()}):n.getCanvas().off("mousewheel")),v0(r)&&(n.appendPadding=uT(n.appendPadding,(0,em.U2)(s,["breadCrumb","position"]))),e}function v3(e){return um(v2,uq,uY("rectStyle"),v4,v5,uK,u$,v6,uj,u1())(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="sunburst",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return vg},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return vZ},t.SUNBURST_ANCESTOR_FIELD=vh,t.SUNBURST_PATH_FIELD=vd,t.NODE_ANCESTORS_FIELD=fN}(dc);var v9={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"初始",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="treemap",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return v9},t.prototype.changeData=function(e){var t,i=this.options,n=i.colorField,r=i.interactions,o=i.hierarchyConfig;this.updateOption({data:e});var s=v1({data:e,colorField:n,enableDrillDown:vQ(r,"treemap-drill-down"),hierarchyConfig:o});this.chart.changeData(s),(t=this.chart.interactions["drill-down"])&&t.context.actions.find(function(e){return"drill-down-action"===e.name}).reset()},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return v3}}(dc);var v7="path",v8={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(e){return{name:e.id,value:e.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]};function Ee(e){e&&e.geometries[0].elements.forEach(function(e){e.shape.toFront()})}var Et=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.syncElementsPos=function(){Ee(this.context.view)},t.prototype.active=function(){e.prototype.active.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(rb("element-active")),Ei=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.syncElementsPos=function(){Ee(this.context.view)},t.prototype.highlight=function(){e.prototype.highlight.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.clear=function(){e.prototype.clear.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(rb("element-highlight")),En=rb("element-selected"),Er=rb("element-single-selected"),Eo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.syncElementsPos=function(){Ee(this.context.view)},t.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(En),Es=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.syncElementsPos=function(){Ee(this.context.view)},t.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(Er);rA("venn-element-active",Et),rA("venn-element-highlight",Ei),rA("venn-element-selected",Eo),rA("venn-element-single-selected",Es),r3("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]}),r3("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]}),r3("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]}),r3("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]}),r3("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]}),r3("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]}),oV("venn",function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getLabelPoint=function(e,t,i){var n=e.data,r=n.x,o=n.y,s=e.customLabelInfo,a=s.offsetX,l=s.offsetY;return{content:e.content[i],x:r+a,y:o+l}},t}(o3));var Ea=Array.isArray,El=" \n\v\f\r \xa0 ᠎              \u2028\u2029",Eh=RegExp("([a-z])["+El+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+El+"]*,?["+El+"]*)+)","ig"),Eu=RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+El+"]*,?["+El+"]*","ig");o$("schema","venn",{draw:function(e,t){var i=function(e){if(!e)return null;if(Ea(e))return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},i=[];return String(e).replace(Eh,function(e,n,r){var o=[],s=n.toLowerCase();if(r.replace(Eu,function(e,t){t&&o.push(+t)}),"m"===s&&o.length>2&&(i.push([n].concat(o.splice(0,2))),s="l",n="m"===n?"l":"L"),"o"===s&&1===o.length&&i.push([n,o[0]]),"r"===s)i.push([n].concat(o));else for(;o.length>=t[s]&&(i.push([n].concat(o.splice(0,t[s]))),t[s]););return""}),i}(e.data[v7]),n=up({},e.defaultStyle,{fill:e.color},e.style),r=t.addGroup({name:"venn-shape"});r.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},n),{path:i}),name:"venn-path"});var o=e.customInfo,s=o.offsetX,a=o.offsetY,l=sr.transform(null,[["t",s,a]]);return r.setMatrix(l),r},getMarker:function(e){var t=e.color;return{symbol:"circle",style:{lineWidth:0,stroke:t,fill:t,r:4}}}});var Ed={normal:function(e){return e},multiply:function(e,t){return e*t/255},screen:function(e,t){return 255*(1-(1-e/255)*(1-t/255))},overlay:function(e,t){return t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255))},darken:function(e,t){return e>t?t:e},lighten:function(e,t){return e>t?e:t},dodge:function(e,t){return 255===e?255:(e=255*(t/255)/(1-e/255))>255?255:e},burn:function(e,t){return 255===t?255:0===e?0:255*(1-Math.min(1,(1-t/255)/(e/255)))}},Ec=function(e){if(!Ed[e])throw Error("unknown blend mode "+e);return Ed[e]};function Eg(e){var t,i=e.replace("/s+/g","");return"string"!=typeof i||i.startsWith("rgba")||i.startsWith("#")?(i.startsWith("rgba")&&(t=i.replace("rgba(","").replace(")","").split(",")),i.startsWith("#")&&(t=eQ.rgb2arr(i).concat([1])),t.map(function(e,t){return 3===t?Number(e):0|e})):eQ.rgb2arr(eQ.toRGB(i)).concat([1])}var Ep=i(69916);function Ef(e,t){var i,n=function(e){for(var t=[],i=0;it[i].radius+1e-10)return!1;return!0}(t,e)}),o=0,s=0,a=[];if(r.length>1){var l=EC(r);for(i=0;i-1){var f=e[d.parentIndex[p]],m=Math.atan2(d.x-f.x,d.y-f.y),v=Math.atan2(u.x-f.x,u.y-f.y),E=v-m;E<0&&(E+=2*Math.PI);var _=v-E/2,C=Ev(c,{x:f.x+f.radius*Math.sin(_),y:f.y+f.radius*Math.cos(_)});C>2*f.radius&&(C=2*f.radius),(null===g||g.width>C)&&(g={circle:f,width:C,p1:d,p2:u})}null!==g&&(a.push(g),o+=Em(g.circle.radius,g.width),u=d)}}else{var S=e[0];for(i=1;iMath.abs(S.radius-e[i].radius)){y=!0;break}y?o=s=0:(o=S.radius*S.radius*Math.PI,a.push({circle:S,p1:{x:S.x,y:S.y+S.radius},p2:{x:S.x-1e-10,y:S.y+S.radius},width:2*S.radius}))}return s/=2,t&&(t.area=o+s,t.arcArea=o,t.polygonArea=s,t.arcs=a,t.innerPoints=r,t.intersectionPoints=n),o+s}function Em(e,t){return e*e*Math.acos(1-t/e)-(e-t)*Math.sqrt(t*(2*e-t))}function Ev(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))}function EE(e,t,i){if(i>=e+t)return 0;if(i<=Math.abs(e-t))return Math.PI*Math.min(e,t)*Math.min(e,t);var n=e-(i*i-t*t+e*e)/(2*i),r=t-(i*i-e*e+t*t)/(2*i);return Em(e,n)+Em(t,r)}function E_(e,t){var i=Ev(e,t),n=e.radius,r=t.radius;if(i>=n+r||i<=Math.abs(n-r))return[];var o=(n*n-r*r+i*i)/(2*i),s=Math.sqrt(n*n-o*o),a=e.x+o*(t.x-e.x)/i,l=e.y+o*(t.y-e.y)/i,h=-(t.y-e.y)*(s/i),u=-(t.x-e.x)*(s/i);return[{x:a+h,y:l-u},{x:a-h,y:l+u}]}function EC(e){for(var t={x:0,y:0},i=0;i=Math.min(r[u].size,r[d].size)&&(h=0),o[u].push({set:d,size:l.size,weight:h}),o[d].push({set:u,size:l.size,weight:h})}var c=[];for(i in o)if(o.hasOwnProperty(i)){for(var g=0,s=0;s=8){var r=function(e,t){var i,n,r,o,s,a=(t=t||{}).restarts||10,l=[],h={};for(r=0;r=Math.min(l[t].size,l[r].size)?s=1:e.size<=1e-10&&(s=-1),n[t][r]=n[r][t]=s}),{distances:i,constraints:n}),c=d.distances,g=d.constraints,p=(0,Ep.norm2)(c.map(Ep.norm2))/c.length;c=c.map(function(e){return e.map(function(e){return e/p})});var f=function(e,t){return function(e,t,i,n){var r,o=0;for(r=0;r0&&p<=d||c<0&&p>=d||(o+=2*f*f,t[2*r]+=4*f*(s-h),t[2*r+1]+=4*f*(a-u),t[2*l]+=4*f*(h-s),t[2*l+1]+=4*f*(u-a))}return o}(e,t,c,g)};for(r=0;rt?1:-1}),t=0;t=a&&(s=r[n],a=l)}var h=(0,Ep.nelderMead)(function(e){return -1*ES({x:e[0],y:e[1]},t,i)},[s.x,s.y],{maxIterations:500,minErrorDelta:1e-10}).x,u={x:h[0],y:h[1]},d=!0;for(n=0;nt[n].radius){d=!1;break}for(n=0;n0&&console.log("WARNING: area "+o+" not represented on screen")}return i}(l,a);return a.forEach(function(e){var t=e.sets,i=t.join(",");e.id=i;var n=function(e){var t={};Ef(e,t);var i=t.arcs;if(0===i.length)return"M 0 0";if(1==i.length){var n,r,o,s,a,l=i[0].circle;return n=l.x,r=l.y,o=l.radius,s=[],a=n-o,s.push("M",a,r),s.push("A",o,o,0,1,0,a+2*o,r),s.push("A",o,o,0,1,0,a,r),s.join(" ")}for(var h=["\nM",i[0].p2.x,i[0].p2.y],u=0;uc;h.push("\nA",c,c,0,g?1:0,1,d.p1.x,d.p1.y)}return h.join(" ")}(t.map(function(e){return l[e]}));/[zZ]$/.test(n)||(n+=" Z"),e[v7]=n;var r=h[i]||{x:0,y:0};(0,em.f0)(e,r)}),a}(i,Math.max(d.width-(l+u),0),Math.max(d.height-(a+h),0),0);t.data(c);var g=dl(up({},e,{options:{xField:"x",yField:"y",sizeField:o,seriesField:"id",rawFields:[r,o],schema:{shape:"venn",style:n}}})).ext.geometry;g.customInfo({offsetX:u,offsetY:a});var p=function(e,t){var i=e.options.color;if("function"!=typeof i){var n=ER(e,t,"string"==typeof i?[i]:i);return function(e){return n(e.id)}}return i}(e,c);return"function"==typeof p&&g.color("id",function(t){return p(c.find(function(e){return e.id===t}),ER(e,c)(t))}),e}function Ew(e){var t=e.chart,i=e.options.label,n=uy(t.appendPadding),r=n[0],o=n[3],s=uv(t,"schema");if(i){var a=i.callback,l=(0,ef._T)(i,["callback"]);s.label({fields:["id"],callback:a,cfg:(0,em.b$)({},uC(l),{type:"venn",customLabelInfo:{offsetX:o,offsetY:r}})})}else s.label(!1);return e}function EO(e){var t=e.chart,i=e.options,n=i.legend,r=i.sizeField;return t.legend("id",n),t.legend(r,!1),e}function Ex(e){return e.chart.axis(!1),e}function ED(e){var t=e.options,i=e.chart,n=t.interactions;if(n){var r={"legend-active":"venn-legend-active","legend-highlight":"venn-legend-highlight"};uX(up({},e,{options:{interactions:n.map(function(e){return(0,ef.pi)((0,ef.pi)({},e),{type:r[e.type]||e.type})})}}))}return i.removeInteraction("legend-active"),i.removeInteraction("legend-highlight"),e}function EM(e){return um(EL,uq,EN,EI,Ew,u0({}),EO,Ex,u$,ED,uj)(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="venn",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return v8},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return EM},t.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))}}(dc);var Ek="violinY",EP="minMax",EF="quantile",EB="median",EU="violin_view",EH=up({},dc.getDefaultOptions(),{syncViewPadding:!0,kde:{type:"triangular",sampleSize:32,width:3},violinStyle:{lineWidth:1,fillOpacity:.3,strokeOpacity:.75},xAxis:{grid:{line:null},tickLine:{alignTick:!1}},yAxis:{grid:{line:{style:{lineWidth:.5,lineDash:[4,4]}}}},legend:{position:"top-left"},tooltip:{showMarkers:!1}}),EV=i(53843),EW=i.n(EV);function EG(e,t){var i=e.length*t;if(0===e.length)throw Error("quantile requires at least one data point.");if(t<0||t>1)throw Error("quantiles must be between 0 and 1");return 1===t?e[e.length-1]:0===t?e[0]:i%1!=0?e[Math.ceil(i)-1]:e.length%2==0?(e[i-1]+e[i])/2:e[i]}function Ez(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function EY(e,t,i,n){for(i=i||0,n=n||e.length-1;n>i;){if(n-i>600){var r=n-i+1,o=t-i+1,s=Math.log(r),a=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*a*(r-a)/r);o-r/2<0&&(l*=-1);var h=Math.max(i,Math.floor(t-o*a/r+l)),u=Math.min(n,Math.floor(t+(r-o)*a/r+l));EY(e,t,h,u)}var d=e[t],c=i,g=n;for(Ez(e,i,t),e[n]>d&&Ez(e,i,n);cd;)g--}e[i]===d?Ez(e,i,g):Ez(e,++g,n),g<=t&&(i=g+1),t<=g&&(n=g-1)}}function EK(e,t){var i=e.slice();if(Array.isArray(t)){!function(e,t){for(var i=[0],n=0;n0?u:d};return dn(up({},e,{options:{xField:r,yField:_e,seriesField:r,rawFields:[o,_t,_n,_e],widthRatio:l,interval:{style:h,shape:g||"waterfall",color:f}}})).ext.geometry.customInfo((0,ef.pi)((0,ef.pi)({},p),{leaderLine:a})),e}function _l(e){var t,i,n=e.options,r=n.xAxis,o=n.yAxis,s=n.xField,a=n.yField,l=n.meta,h=up({},{alias:a},(0,em.U2)(l,a));return um(u0(((t={})[s]=r,t[a]=o,t[_e]=o,t),up({},l,((i={})[_e]=h,i[_t]=h,i[_i]=h,i))))(e)}function _h(e){var t=e.chart,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.yField;return!1===n?t.axis(o,!1):t.axis(o,n),!1===r?(t.axis(s,!1),t.axis(_e,!1)):(t.axis(s,r),t.axis(_e,r)),e}function _u(e){var t=e.chart,i=e.options,n=i.legend,r=i.total,o=i.risingFill,s=i.fallingFill,a=u3(i.locale);if(!1===n)t.legend(!1);else{var l=[{name:a.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:o}}},{name:a.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:s}}}];r&&l.push({name:r.label||"",value:"total",marker:{symbol:"square",style:up({},{r:5},(0,em.U2)(r,"style"))}}),t.legend(up({},{custom:!0,position:"top",items:l},n)),t.removeInteraction("legend-filter")}return e}function _d(e){var t=e.chart,i=e.options,n=i.label,r=i.labelMode,o=i.xField,s=uv(t,"interval");if(n){var a=n.callback,l=(0,ef._T)(n,["callback"]);s.label({fields:"absolute"===r?[_i,o]:[_t,o],callback:a,cfg:uC(l)})}else s.label(!1);return e}function _c(e){var t=e.chart,i=e.options,n=i.tooltip,r=i.xField,o=i.yField;if(!1!==n){t.tooltip((0,ef.pi)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[o]},n));var s=t.geometries[0];(null==n?void 0:n.formatter)?s.tooltip("".concat(r,"*").concat(o),n.formatter):s.tooltip(o)}else t.tooltip(!1);return e}function _g(e){return um(_s,uq,_a,_l,_h,_u,_c,_d,uZ,uX,uj,u1())(e)}o$("interval","waterfall",{draw:function(e,t){var i=e.customInfo,n=e.points,r=e.nextPoints,o=t.addGroup(),s=this.parsePath(function(e){for(var t=[],i=0;i>2),e.width=2048/t,e.height=2048/t,(g=e.getContext("2d",{willReadFrequently:!0})).fillStyle=g.strokeStyle="red",g.textAlign="center",{context:g,ratio:t}),v=c.board?c.board:_A((i[0]>>5)*i[1]),E=u.length,_=[],C=u.map(function(e,t,i){return e.text=_E.call(this,e,t,i),e.font=n.call(this,e,t,i),e.style=_C.call(this,e,t,i),e.weight=o.call(this,e,t,i),e.rotate=s.call(this,e,t,i),e.size=~~r.call(this,e,t,i),e.padding=a.call(this,e,t,i),e}).sort(function(e,t){return t.size-e.size}),S=-1,y=c.board?[{x:0,y:0},{x:p,y:f}]:null;return function(){for(var e=Date.now();Date.now()-e>1,t.y=f*(h()+.5)>>1,function(e,t,i,n){if(!t.sprite){var r=e.context,o=e.ratio;r.clearRect(0,0,2048/o,2048/o);var s=0,a=0,l=0,h=i.length;for(--n;++n>5<<5,d=~~Math.max(Math.abs(f+m),Math.abs(f-m))}else u=u+31>>5<<5;if(d>l&&(l=d),s+u>=2048&&(s=0,a+=l,l=0),a+d>=2048)break;r.translate((s+(u>>1))/o,(a+(d>>1))/o),t.rotate&&r.rotate(t.rotate*_v),r.fillText(t.text,0,0),t.padding&&(r.lineWidth=2*t.padding,r.strokeText(t.text,0,0)),r.restore(),t.width=u,t.height=d,t.xoff=s,t.yoff=a,t.x1=u>>1,t.y1=d>>1,t.x0=-t.x1,t.y0=-t.y1,t.hasText=!0,s+=u}for(var E=r.getImageData(0,0,2048/o,2048/o).data,_=[];--n>=0;)if((t=i[n]).hasText){for(var u=t.width,C=u>>5,d=t.y1-t.y0,S=0;S>5),R=E[(a+b)*2048+(s+S)<<2]?1<<31-S%32:0;_[A]|=R,y|=R}y?T=b:(t.y0++,d--,b--,a++)}t.y1=t.y0+T,t.sprite=_.slice(0,(t.y1-t.y0)*C)}}}(m,t,C,S),t.hasText&&function(e,t,n){for(var r,o,s,a=t.x,u=t.y,d=Math.sqrt(i[0]*i[0]+i[1]*i[1]),c=l(i),g=.5>h()?1:-1,p=-g;(r=c(p+=g))&&!(Math.min(Math.abs(o=~~r[0]),Math.abs(s=~~r[1]))>=d);)if(t.x=a+o,t.y=u+s,!(t.x+t.x0<0)&&!(t.y+t.y0<0)&&!(t.x+t.x1>i[0])&&!(t.y+t.y1>i[1])&&(!n||!function(e,t,i){i>>=5;for(var n,r=e.sprite,o=e.width>>5,s=e.x-(o<<4),a=127&s,l=32-a,h=e.y1-e.y0,u=(e.y+e.y0)*i+(s>>5),d=0;d>>a:0))&t[u+c])return!0;u+=i}return!1}(t,e,i[0]))&&(!n||t.x+t.x1>n[0].x&&t.x+t.x0n[0].y&&t.y+t.y0>5,v=i[0]>>5,E=t.x-(m<<4),_=127&E,C=32-_,S=t.y1-t.y0,y=void 0,T=(t.y+t.y0)*v+(E>>5),b=0;b>>_:0);T+=v}return delete t.sprite,!0}return!1}(v,t,y)&&(_.push(t),y?c.hasImage||function(e,t){var i=e[0],n=e[1];t.x+t.x0n.x&&(n.x=t.x+t.x1),t.y+t.y1>n.y&&(n.y=t.y+t.y1)}(y,t):y=[{x:t.x+t.x0,y:t.y+t.y0},{x:t.x+t.x1,y:t.y+t.y1}],t.x-=i[0]>>1,t.y-=i[1]>>1)}c._tags=_,c._bounds=y}(),c},c.createMask=function(e){var t=document.createElement("canvas"),n=i[0],r=i[1];if(n&&r){var o=n>>5,s=_A((n>>5)*r);t.width=n,t.height=r;var a=t.getContext("2d");a.drawImage(e,0,0,e.width,e.height,0,0,n,r);for(var l=a.getImageData(0,0,n,r).data,h=0;h>5),g=h*n+u<<2,p=l[g]>=250&&l[g+1]>=250&&l[g+2]>=250?1<<31-u%32:0;s[d]|=p}c.board=s,c.hasImage=!0}},c.timeInterval=function(e){d=null==e?1/0:e},c.words=function(e){u=e},c.size=function(e){i=[+e[0],+e[1]]},c.font=function(e){n=_R(e)},c.fontWeight=function(e){o=_R(e)},c.rotate=function(e){s=_R(e)},c.spiral=function(e){l=_L[e]||e},c.fontSize=function(e){r=_R(e)},c.padding=function(e){a=_R(e)},c.random=function(e){h=_R(e)},["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach(function(e){(0,em.UM)(t[e])||c[e](t[e])}),c.words(W),t.imageMask&&c.createMask(t.imageMask),(g=c.start()._tags).forEach(function(e){e.x+=t.size[0]/2,e.y+=t.size[1]/2}),f=(p=t.size)[0],m=p[1],g.push({text:"",value:0,x:0,y:0,opacity:0}),g.push({text:"",value:0,x:f,y:m,opacity:0}),g}function _I(e){var t=e.chart,i=e.options,n=i.colorField,r=i.color,o=_N(e);return t.data(o),ds(up({},e,{options:{xField:"x",yField:"y",seriesField:n&&_p,rawFields:(0,em.mf)(r)&&(0,ef.ev)((0,ef.ev)([],(0,em.U2)(i,"rawFields",[]),!0),["datum"],!1),point:{color:r,shape:"word-cloud"}}})).ext.geometry.label(!1),t.coordinate().reflect("y"),t.axis(!1),e}function _w(e){return um(u0({x:{nice:!1},y:{nice:!1}}))(e)}function _O(e){var t=e.chart,i=e.options,n=i.legend,r=i.colorField;return!1===n?t.legend(!1):r&&t.legend(_p,n),e}function _x(e){um(_I,_w,u$,_O,uX,uj,uq,uZ)(e)}o$("point","word-cloud",{draw:function(e,t){var i=e.x,n=e.y,r=t.addShape("text",{attrs:(0,ef.pi)((0,ef.pi)({},{fontSize:e.data.size,text:e.data.text,textAlign:"center",fontFamily:e.data.font,fontWeight:e.data.weight,fill:e.color||e.defaultStyle.stroke,textBaseline:"alphabetic"}),{x:i,y:n})}),o=e.data.rotate;return"number"==typeof o&&sr.rotate(r,o*Math.PI/180),r}}),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="word-cloud",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return _f},t.prototype.changeData=function(e){this.updateOption({data:e}),this.options.imageMask?this.render():this.chart.changeData(_N({chart:this.chart,options:this.options}))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.render=function(){var t=this;return new Promise(function(i){var n=t.options.imageMask;if(!n){e.prototype.render.call(t),i();return}var r=function(n){t.options=(0,ef.pi)((0,ef.pi)({},t.options),{imageMask:n||null}),e.prototype.render.call(t),i()};new Promise(function(e,t){if(n instanceof HTMLImageElement){e(n);return}if((0,em.HD)(n)){var i=new Image;i.crossOrigin="anonymous",i.src=n,i.onload=function(){e(i)},i.onerror=function(){uo(X.ERROR,!1,"image %s load failed !!!",n),t()};return}uo(X.WARN,void 0===n,"The type of imageMask option must be String or HTMLImageElement."),t()}).then(r).catch(r)})},t.prototype.getSchemaAdaptor=function(){return _x},t.prototype.triggerResize=function(){var t=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout(function(){e.prototype.triggerResize.call(t)}))}}(dc),function(e){function t(t,i,n,r){var o=e.call(this,t,up({},r,i))||this;return o.type="g2-plot",o.defaultOptions=r,o.adaptor=n,o}(0,ef.ZT)(t,e),t.prototype.getDefaultOptions=function(){return this.defaultOptions},t.prototype.getSchemaAdaptor=function(){return this.adaptor}}(dc),u6["en-US"]={locale:"en-US",general:{increase:"Increase",decrease:"Decrease",root:"Root"},statistic:{total:"Total"},conversionTag:{label:"Rate"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"Total"}},u6["zh-CN"]={locale:"zh-CN",general:{increase:"增加",decrease:"减少",root:"初始"},statistic:{total:"总计"},conversionTag:{label:"转化率"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"总计"}}},31506:function(e,t,i){"use strict";i.d(t,{Dg:function(){return h},lh:function(){return a},m$:function(){return o},vs:function(){return l},zu:function(){return s}});var n=i(35600),r=i(31437);function o(e,t,i){var r=[0,0,0,0,0,0,0,0,0];return n.vc(r,i),n.Jp(e,r,t)}function s(e,t,i){var r=[0,0,0,0,0,0,0,0,0];return n.Us(r,i),n.Jp(e,r,t)}function a(e,t,i){var r=[0,0,0,0,0,0,0,0,0];return n.xJ(r,i),n.Jp(e,r,t)}function l(e,t){for(var i=e?[].concat(e):[1,0,0,0,1,0,0,0,1],r=0,l=t.length;r=0;return i?o?2*Math.PI-n:n:o?n:2*Math.PI-n}},39499:function(e,t,i){"use strict";i.d(t,{e9:function(){return l},Wq:function(){return L},tr:function(){return c},wb:function(){return f},zx:function(){return S}});var n=i(21030),r=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/ig,o=/[^\s\,]+/ig,s=function(e){var t=e||[];return(0,n.kJ)(t)?t:(0,n.HD)(t)?(t=t.match(r),(0,n.S6)(t,function(e,i){if((e=e.match(o))[0].length>1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}(0,n.S6)(e,function(t,i){isNaN(t)||(e[i]=+t)}),t[i]=e}),t):void 0},a=i(31437),l=function(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=[[0,0],[1,1]]);for(var n,r,o,s=!!t,l=[],h=0,u=e.length;h2&&(i.push([n].concat(o.splice(0,2))),s="l",n="m"===n?"l":"L"),"o"===s&&1===o.length&&i.push([n,o[0]]),"r"===s)i.push([n].concat(o));else for(;o.length>=t[s]&&(i.push([n].concat(o.splice(0,t[s]))),t[s]););return""}),i}var g=/[a-z]/;function p(e,t){return[t[0]+(t[0]-e[0]),t[1]+(t[1]-e[1])]}function f(e){var t=c(e);if(!t||!t.length)return[["M",0,0]];for(var i=!1,n=0;n=0){i=!0;break}}if(!i)return t;var o=[],s=0,a=0,l=0,h=0,u=0,d=t[0];("M"===d[0]||"m"===d[0])&&(s=+d[1],a=+d[2],l=s,h=a,u++,o[0]=["M",s,a]);for(var n=u,f=t.length;n1&&(i*=Math.sqrt(p),r*=Math.sqrt(p));var f=i*i*(g*g)+r*r*(c*c),m=f?Math.sqrt((i*i*(r*r)-f)/f):1;s===a&&(m*=-1),isNaN(m)&&(m=0);var C=r?m*i*g/r:0,S=i?-(m*r)*c/i:0,y=(l+u)/2+Math.cos(o)*C-Math.sin(o)*S,T=(h+d)/2+Math.sin(o)*C+Math.cos(o)*S,b=[(c-C)/i,(g-S)/r],A=[(-1*c-C)/i,(-1*g-S)/r],R=E([1,0],b),L=E(b,A);return -1>=v(b,A)&&(L=Math.PI),v(b,A)>=1&&(L=0),0===a&&L>0&&(L-=2*Math.PI),1===a&&L<0&&(L+=2*Math.PI),{cx:y,cy:T,rx:_(e,[u,d])?0:i,ry:_(e,[u,d])?0:r,startAngle:R,endAngle:R+L,xRotation:o,arcFlag:s,sweepFlag:a}}(i,u);c.arcParams=g}if("Z"===d)i=o,r=e[a+1];else{var p=u.length;i=[u[p-2],u[p-1]]}r&&"Z"===r[0]&&(r=e[a],t[a]&&(t[a].prePoint=i)),c.currentPoint=i,t[a]&&_(i,t[a].currentPoint)&&(t[a].prePoint=c.prePoint);var f=r?[r[r.length-2],r[r.length-1]]:null;c.nextPoint=f;var m=c.prePoint;if(["L","H","V"].includes(d))c.startTangent=[m[0]-i[0],m[1]-i[1]],c.endTangent=[i[0]-m[0],i[1]-m[1]];else if("Q"===d){var S=[u[1],u[2]];c.startTangent=[m[0]-S[0],m[1]-S[1]],c.endTangent=[i[0]-S[0],i[1]-S[1]]}else if("T"===d){var y=t[h-1],S=C(y.currentPoint,m);"Q"===y.command?(c.command="Q",c.startTangent=[m[0]-S[0],m[1]-S[1]],c.endTangent=[i[0]-S[0],i[1]-S[1]]):(c.command="TL",c.startTangent=[m[0]-i[0],m[1]-i[1]],c.endTangent=[i[0]-m[0],i[1]-m[1]])}else if("C"===d){var T=[u[1],u[2]],b=[u[3],u[4]];c.startTangent=[m[0]-T[0],m[1]-T[1]],c.endTangent=[i[0]-b[0],i[1]-b[1]],0===c.startTangent[0]&&0===c.startTangent[1]&&(c.startTangent=[T[0]-b[0],T[1]-b[1]]),0===c.endTangent[0]&&0===c.endTangent[1]&&(c.endTangent=[b[0]-T[0],b[1]-T[1]])}else if("S"===d){var y=t[h-1],T=C(y.currentPoint,m),b=[u[1],u[2]];"C"===y.command?(c.command="C",c.startTangent=[m[0]-T[0],m[1]-T[1]],c.endTangent=[i[0]-b[0],i[1]-b[1]]):(c.command="SQ",c.startTangent=[m[0]-b[0],m[1]-b[1]],c.endTangent=[i[0]-b[0],i[1]-b[1]])}else if("A"===d){var A=.001,R=c.arcParams||{},L=R.cx,N=void 0===L?0:L,I=R.cy,w=void 0===I?0:I,O=R.rx,x=void 0===O?0:O,D=R.ry,M=void 0===D?0:D,k=R.sweepFlag,P=void 0===k?0:k,F=R.startAngle,B=void 0===F?0:F,U=R.endAngle,H=void 0===U?0:U;0===P&&(A*=-1);var V=x*Math.cos(B-A)+N,W=M*Math.sin(B-A)+w;c.startTangent=[V-o[0],W-o[1]];var G=x*Math.cos(B+H+A)+N,z=M*Math.sin(B+H-A)+w;c.endTangent=[m[0]-G,m[1]-z]}t.push(c)}return t}function y(e){return 1e-6>Math.abs(e)?0:e<0?-1:1}function T(e,t,i){var n=!1,r=e.length;if(r<=2)return!1;for(var o=0;o0!=y(l[1]-i)>0&&0>y(t-(i-a[1])*(a[0]-l[0])/(a[1]-l[1])-a[0])&&(n=!n)}return n}var b=function(e,t,i){return e>=t&&e<=i};function A(e){for(var t=[],i=e.length,n=0;n1){var s=e[0],a=e[i-1];t.push({from:{x:a[0],y:a[1]},to:{x:s[0],y:s[1]}})}return t}function R(e){var t=e.map(function(e){return e[0]}),i=e.map(function(e){return e[1]});return{minX:Math.min.apply(null,t),maxX:Math.max.apply(null,t),minY:Math.min.apply(null,i),maxY:Math.max.apply(null,i)}}function L(e,t){if(e.length<2||t.length<2)return!1;var i=R(e),r=R(t);if(r.minX>i.maxX||r.maxXi.maxY||r.maxY.001*l*h){var d=(r.x*s.y-r.y*s.x)/a,c=(r.x*o.y-r.y*o.x)/a;b(d,0,1)&&b(c,0,1)&&(u={x:e.x+d*o.x,y:e.y+d*o.y})}return u}(i.from,i.to,e.from,e.to))return t=!0,!1}),t)return l=!0,!1}),l}},21030:function(e,t,i){"use strict";i.d(t,{Ct:function(){return eY},f0:function(){return ew},uZ:function(){return z},VS:function(){return ef},d9:function(){return ev},FX:function(){return o},Ds:function(){return eE},b$:function(){return eC},e5:function(){return a},S6:function(){return p},yW:function(){return B},hX:function(){return s},sE:function(){return _},cx:function(){return C},Wx:function(){return S},ri:function(){return Y},xH:function(){return y},U5:function(){return Q},U2:function(){return eO},Lo:function(){return ez},rx:function(){return R},ru:function(){return G},vM:function(){return V},Ms:function(){return W},wH:function(){return ee},YM:function(){return P},q9:function(){return o},cq:function(){return eS},kJ:function(){return c},jn:function(){return ea},J_:function(){return el},kK:function(){return eg},xb:function(){return eT},Xy:function(){return eA},mf:function(){return u},BD:function(){return m},UM:function(){return d},Ft:function(){return eh},hj:function(){return K},vQ:function(){return $},Kn:function(){return g},PO:function(){return E},HD:function(){return x},P9:function(){return h},o8:function(){return ec},XP:function(){return f},Z$:function(){return F},vl:function(){return en},UI:function(){return eR},Q8:function(){return eN},Fp:function(){return b},UT:function(){return X},HP:function(){return e_},VV:function(){return A},F:function(){return j},CD:function(){return ew},wQ:function(){return q},ZT:function(){return eH},CE:function(){return ek},ei:function(){return eM},u4:function(){return w},Od:function(){return O},U7:function(){return ep},t8:function(){return ex},dp:function(){return eV},G:function(){return U},MR:function(){return D},ng:function(){return er},P2:function(){return eP},qo:function(){return eF},c$:function(){return J},BB:function(){return ei},jj:function(){return M},EL:function(){return eU},jC:function(){return eo},VO:function(){return et},I:function(){return k}});var n,r=function(e){return null!==e&&"function"!=typeof e&&isFinite(e.length)},o=function(e,t){return!!r(e)&&e.indexOf(t)>-1},s=function(e,t){if(!r(e))return e;for(var i=[],n=0;nt[r])return 1;if(e[r]i?i:e},Y=function(e,t){var i=t.toString(),n=i.indexOf(".");if(-1===n)return Math.round(e);var r=i.substr(n+1).length;return r>20&&(r=20),parseFloat(e.toFixed(r))},K=function(e){return h(e,"Number")};function $(e,t,i){return void 0===i&&(i=1e-5),Math.abs(e-t)n&&(i=o,n=s)}return i}},j=function(e,t){if(c(e)){for(var i,n=1/0,r=0;rt?(n&&(clearTimeout(n),n=null),a=h,s=e.apply(r,o),n||(r=o=null)):n||!1===i.trailing||(n=setTimeout(l,u)),s};return h.cancel=function(){clearTimeout(n),a=0,n=r=o=null},h},eF=function(e){return r(e)?Array.prototype.slice.call(e):[]},eB={},eU=function(e){return eB[e=e||"g"]?eB[e]+=1:eB[e]=1,e+eB[e]},eH=function(){};function eV(e){return d(e)?0:r(e)?e.length:Object.keys(e).length}var eW=i(97582),eG=e_(function(e,t){void 0===t&&(t={});var i=t.fontSize,r=t.fontFamily,o=t.fontWeight,s=t.fontStyle,a=t.fontVariant;return n||(n=document.createElement("canvas").getContext("2d")),n.font=[s,a,o,i+"px",r].join(" "),n.measureText(x(e)?e:"").width},function(e,t){return void 0===t&&(t={}),(0,eW.pr)([e],et(t)).join("")}),ez=function(e,t,i,n){void 0===n&&(n="...");var r,o,s=eG(n,i),a=x(e)?e:ei(e),l=t,h=[];if(eG(e,i)<=t)return e;for(;!((o=eG(r=a.substr(0,16),i))+s>l)||!(o>l);)if(h.push(r),l-=o,!(a=a.substr(16)))return h.join("");for(;!((o=eG(r=a.substr(0,1),i))+s>l);)if(h.push(r),l-=o,!(a=a.substr(1)))return h.join("");return""+h.join("")+n},eY=function(){function e(){this.map={}}return e.prototype.has=function(e){return void 0!==this.map[e]},e.prototype.get=function(e,t){var i=this.map[e];return void 0===i?t:i},e.prototype.set=function(e,t){this.map[e]=t},e.prototype.clear=function(){this.map={}},e.prototype.delete=function(e){delete this.map[e]},e.prototype.size=function(){return Object.keys(this.map).length},e}()},53406:function(e,t,i){"use strict";i.d(t,{r:function(){return eO}});var n,r,o,s,a,l=i(87462),h=i(63366),u=i(67294),d=i(33703),c=i(73546),g=i(82690);function p(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function f(e){var t=p(e).Element;return e instanceof t||e instanceof Element}function m(e){var t=p(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function v(e){if("undefined"==typeof ShadowRoot)return!1;var t=p(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var E=Math.max,_=Math.min,C=Math.round;function S(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function y(){return!/^((?!chrome|android).)*safari/i.test(S())}function T(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),r=1,o=1;t&&m(e)&&(r=e.offsetWidth>0&&C(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&C(n.height)/e.offsetHeight||1);var s=(f(e)?p(e):window).visualViewport,a=!y()&&i,l=(n.left+(a&&s?s.offsetLeft:0))/r,h=(n.top+(a&&s?s.offsetTop:0))/o,u=n.width/r,d=n.height/o;return{width:u,height:d,top:h,right:l+u,bottom:h+d,left:l,x:l,y:h}}function b(e){var t=p(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function A(e){return e?(e.nodeName||"").toLowerCase():null}function R(e){return((f(e)?e.ownerDocument:e.document)||window.document).documentElement}function L(e){return T(R(e)).left+b(e).scrollLeft}function N(e){return p(e).getComputedStyle(e)}function I(e){var t=N(e),i=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function w(e){var t=T(e),i=e.offsetWidth,n=e.offsetHeight;return 1>=Math.abs(t.width-i)&&(i=t.width),1>=Math.abs(t.height-n)&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function O(e){return"html"===A(e)?e:e.assignedSlot||e.parentNode||(v(e)?e.host:null)||R(e)}function x(e,t){void 0===t&&(t=[]);var i,n=function e(t){return["html","body","#document"].indexOf(A(t))>=0?t.ownerDocument.body:m(t)&&I(t)?t:e(O(t))}(e),r=n===(null==(i=e.ownerDocument)?void 0:i.body),o=p(n),s=r?[o].concat(o.visualViewport||[],I(n)?n:[]):n,a=t.concat(s);return r?a:a.concat(x(O(s)))}function D(e){return m(e)&&"fixed"!==N(e).position?e.offsetParent:null}function M(e){for(var t=p(e),i=D(e);i&&["table","td","th"].indexOf(A(i))>=0&&"static"===N(i).position;)i=D(i);return i&&("html"===A(i)||"body"===A(i)&&"static"===N(i).position)?t:i||function(e){var t=/firefox/i.test(S());if(/Trident/i.test(S())&&m(e)&&"fixed"===N(e).position)return null;var i=O(e);for(v(i)&&(i=i.host);m(i)&&0>["html","body"].indexOf(A(i));){var n=N(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}var k="bottom",P="right",F="left",B="auto",U=["top",k,P,F],H="start",V="viewport",W="popper",G=U.reduce(function(e,t){return e.concat([t+"-"+H,t+"-end"])},[]),z=[].concat(U,[B]).reduce(function(e,t){return e.concat([t,t+"-"+H,t+"-end"])},[]),Y=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],K={placement:"bottom",modifiers:[],strategy:"absolute"};function $(){for(var e=arguments.length,t=Array(e),i=0;i=0?"x":"y"}function J(e){var t,i=e.reference,n=e.element,r=e.placement,o=r?j(r):null,s=r?q(r):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case"top":t={x:a,y:i.y-n.height};break;case k:t={x:a,y:i.y+i.height};break;case P:t={x:i.x+i.width,y:l};break;case F:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var h=o?Z(o):null;if(null!=h){var u="y"===h?"height":"width";switch(s){case H:t[h]=t[h]-(i[u]/2-n[u]/2);break;case"end":t[h]=t[h]+(i[u]/2-n[u]/2)}}return t}var Q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ee(e){var t,i,n,r,o,s,a,l=e.popper,h=e.popperRect,u=e.placement,d=e.variation,c=e.offsets,g=e.position,f=e.gpuAcceleration,m=e.adaptive,v=e.roundOffsets,E=e.isFixed,_=c.x,S=void 0===_?0:_,y=c.y,T=void 0===y?0:y,b="function"==typeof v?v({x:S,y:T}):{x:S,y:T};S=b.x,T=b.y;var A=c.hasOwnProperty("x"),L=c.hasOwnProperty("y"),I=F,w="top",O=window;if(m){var x=M(l),D="clientHeight",B="clientWidth";x===p(l)&&"static"!==N(x=R(l)).position&&"absolute"===g&&(D="scrollHeight",B="scrollWidth"),("top"===u||(u===F||u===P)&&"end"===d)&&(w=k,T-=(E&&x===O&&O.visualViewport?O.visualViewport.height:x[D])-h.height,T*=f?1:-1),(u===F||("top"===u||u===k)&&"end"===d)&&(I=P,S-=(E&&x===O&&O.visualViewport?O.visualViewport.width:x[B])-h.width,S*=f?1:-1)}var U=Object.assign({position:g},m&&Q),H=!0===v?(t={x:S,y:T},i=p(l),n=t.x,r=t.y,{x:C(n*(o=i.devicePixelRatio||1))/o||0,y:C(r*o)/o||0}):{x:S,y:T};return(S=H.x,T=H.y,f)?Object.assign({},U,((a={})[w]=L?"0":"",a[I]=A?"0":"",a.transform=1>=(O.devicePixelRatio||1)?"translate("+S+"px, "+T+"px)":"translate3d("+S+"px, "+T+"px, 0)",a)):Object.assign({},U,((s={})[w]=L?T+"px":"",s[I]=A?S+"px":"",s.transform="",s))}var et={left:"right",right:"left",bottom:"top",top:"bottom"};function ei(e){return e.replace(/left|right|bottom|top/g,function(e){return et[e]})}var en={start:"end",end:"start"};function er(e){return e.replace(/start|end/g,function(e){return en[e]})}function eo(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&v(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function es(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ea(e,t,i){var n,r,o,s,a,l,h,u,d,c;return t===V?es(function(e,t){var i=p(e),n=R(e),r=i.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var h=y();(h||!h&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+L(e),y:l}}(e,i)):f(t)?((n=T(t,!1,"fixed"===i)).top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n):es((r=R(e),s=R(r),a=b(r),l=null==(o=r.ownerDocument)?void 0:o.body,h=E(s.scrollWidth,s.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),u=E(s.scrollHeight,s.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),d=-a.scrollLeft+L(r),c=-a.scrollTop,"rtl"===N(l||s).direction&&(d+=E(s.clientWidth,l?l.clientWidth:0)-h),{width:h,height:u,x:d,y:c}))}function el(){return{top:0,right:0,bottom:0,left:0}}function eh(e){return Object.assign({},el(),e)}function eu(e,t){return t.reduce(function(t,i){return t[i]=e,t},{})}function ed(e,t){void 0===t&&(t={});var i,n,r,o,s,a,l,h=t,u=h.placement,d=void 0===u?e.placement:u,c=h.strategy,g=void 0===c?e.strategy:c,p=h.boundary,v=h.rootBoundary,C=h.elementContext,S=void 0===C?W:C,y=h.altBoundary,b=h.padding,L=void 0===b?0:b,I=eh("number"!=typeof L?L:eu(L,U)),w=e.rects.popper,D=e.elements[void 0!==y&&y?S===W?"reference":W:S],F=(i=f(D)?D:D.contextElement||R(e.elements.popper),a=(s=[].concat("clippingParents"===(n=void 0===p?"clippingParents":p)?(r=x(O(i)),f(o=["absolute","fixed"].indexOf(N(i).position)>=0&&m(i)?M(i):i)?r.filter(function(e){return f(e)&&eo(e,o)&&"body"!==A(e)}):[]):[].concat(n),[void 0===v?V:v]))[0],(l=s.reduce(function(e,t){var n=ea(i,t,g);return e.top=E(n.top,e.top),e.right=_(n.right,e.right),e.bottom=_(n.bottom,e.bottom),e.left=E(n.left,e.left),e},ea(i,a,g))).width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l),B=T(e.elements.reference),H=J({reference:B,element:w,strategy:"absolute",placement:d}),G=es(Object.assign({},w,H)),z=S===W?G:B,Y={top:F.top-z.top+I.top,bottom:z.bottom-F.bottom+I.bottom,left:F.left-z.left+I.left,right:z.right-F.right+I.right},K=e.modifiersData.offset;if(S===W&&K){var $=K[d];Object.keys(Y).forEach(function(e){var t=[P,k].indexOf(e)>=0?1:-1,i=["top",k].indexOf(e)>=0?"y":"x";Y[e]+=$[i]*t})}return Y}function ec(e,t,i){return E(e,_(t,i))}function eg(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function ep(e){return["top",P,k,F].some(function(t){return e[t]>=0})}var ef=(o=void 0===(r=(n={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,r=n.scroll,o=void 0===r||r,s=n.resize,a=void 0===s||s,l=p(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&h.forEach(function(e){e.addEventListener("scroll",i.update,X)}),a&&l.addEventListener("resize",i.update,X),function(){o&&h.forEach(function(e){e.removeEventListener("scroll",i.update,X)}),a&&l.removeEventListener("resize",i.update,X)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=J({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,r=i.adaptive,o=i.roundOffsets,s=void 0===o||o,a={placement:j(t.placement),variation:q(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===n||n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ee(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===r||r,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ee(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},r=t.elements[e];m(r)&&A(r)&&(Object.assign(r.style,i),Object.keys(n).forEach(function(e){var t=n[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce(function(e,t){return e[t]="",e},{});m(n)&&A(n)&&(Object.assign(n.style,o),Object.keys(r).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.offset,o=void 0===r?[0,0]:r,s=z.reduce(function(e,i){var n,r,s,a,l,h;return e[i]=(n=t.rects,s=[F,"top"].indexOf(r=j(i))>=0?-1:1,l=(a="function"==typeof o?o(Object.assign({},n,{placement:i})):o)[0],h=a[1],l=l||0,h=(h||0)*s,[F,P].indexOf(r)>=0?{x:h,y:l}:{x:l,y:h}),e},{}),a=s[t.placement],l=a.x,h=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=h),t.modifiersData[n]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=i.mainAxis,o=void 0===r||r,s=i.altAxis,a=void 0===s||s,l=i.fallbackPlacements,h=i.padding,u=i.boundary,d=i.rootBoundary,c=i.altBoundary,g=i.flipVariations,p=void 0===g||g,f=i.allowedAutoPlacements,m=t.options.placement,v=j(m)===m,E=l||(v||!p?[ei(m)]:function(e){if(j(e)===B)return[];var t=ei(e);return[er(e),t,er(t)]}(m)),_=[m].concat(E).reduce(function(e,i){var n,r,o,s,a,l,c,g,m,v,E,_;return e.concat(j(i)===B?(r=(n={placement:i,boundary:u,rootBoundary:d,padding:h,flipVariations:p,allowedAutoPlacements:f}).placement,o=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,g=void 0===(c=n.allowedAutoPlacements)?z:c,0===(E=(v=(m=q(r))?l?G:G.filter(function(e){return q(e)===m}):U).filter(function(e){return g.indexOf(e)>=0})).length&&(E=v),Object.keys(_=E.reduce(function(e,i){return e[i]=ed(t,{placement:i,boundary:o,rootBoundary:s,padding:a})[j(i)],e},{})).sort(function(e,t){return _[e]-_[t]})):i)},[]),C=t.rects.reference,S=t.rects.popper,y=new Map,T=!0,b=_[0],A=0;A<_.length;A++){var R=_[A],L=j(R),N=q(R)===H,I=["top",k].indexOf(L)>=0,w=I?"width":"height",O=ed(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:c,padding:h}),x=I?N?P:F:N?k:"top";C[w]>S[w]&&(x=ei(x));var D=ei(x),M=[];if(o&&M.push(O[L]<=0),a&&M.push(O[x]<=0,O[D]<=0),M.every(function(e){return e})){b=R,T=!1;break}y.set(R,M)}if(T)for(var V=p?3:1,W=function(e){var t=_.find(function(t){var i=y.get(t);if(i)return i.slice(0,e).every(function(e){return e})});if(t)return b=t,"break"},Y=V;Y>0&&"break"!==W(Y);Y--);t.placement!==b&&(t.modifiersData[n]._skip=!0,t.placement=b,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.mainAxis,o=i.altAxis,s=i.boundary,a=i.rootBoundary,l=i.altBoundary,h=i.padding,u=i.tether,d=void 0===u||u,c=i.tetherOffset,g=void 0===c?0:c,p=ed(t,{boundary:s,rootBoundary:a,padding:h,altBoundary:l}),f=j(t.placement),m=q(t.placement),v=!m,C=Z(f),S="x"===C?"y":"x",y=t.modifiersData.popperOffsets,T=t.rects.reference,b=t.rects.popper,A="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,R="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(y){if(void 0===r||r){var I,O="y"===C?"top":F,x="y"===C?k:P,D="y"===C?"height":"width",B=y[C],U=B+p[O],V=B-p[x],W=d?-b[D]/2:0,G=m===H?T[D]:b[D],z=m===H?-b[D]:-T[D],Y=t.elements.arrow,K=d&&Y?w(Y):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:el(),X=$[O],J=$[x],Q=ec(0,T[D],K[D]),ee=v?T[D]/2-W-Q-X-R.mainAxis:G-Q-X-R.mainAxis,et=v?-T[D]/2+W+Q+J+R.mainAxis:z+Q+J+R.mainAxis,ei=t.elements.arrow&&M(t.elements.arrow),en=ei?"y"===C?ei.clientTop||0:ei.clientLeft||0:0,er=null!=(I=null==L?void 0:L[C])?I:0,eo=B+ee-er-en,es=B+et-er,ea=ec(d?_(U,eo):U,B,d?E(V,es):V);y[C]=ea,N[C]=ea-B}if(void 0!==o&&o){var eh,eu,eg="x"===C?"top":F,ep="x"===C?k:P,ef=y[S],em="y"===S?"height":"width",ev=ef+p[eg],eE=ef-p[ep],e_=-1!==["top",F].indexOf(f),eC=null!=(eu=null==L?void 0:L[S])?eu:0,eS=e_?ev:ef-T[em]-b[em]-eC+R.altAxis,ey=e_?ef+T[em]+b[em]-eC-R.altAxis:eE,eT=d&&e_?(eh=ec(eS,ef,ey))>ey?ey:eh:ec(d?eS:ev,ef,d?ey:eE);y[S]=eT,N[S]=eT-ef}t.modifiersData[n]=N}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=j(n.placement),h=Z(l),u=[F,P].indexOf(l)>=0?"height":"width";if(s&&a){var d=eh("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:eu(t,U)),c=w(s),g="y"===h?"top":F,p="y"===h?k:P,f=n.rects.reference[u]+n.rects.reference[h]-a[h]-n.rects.popper[u],m=a[h]-n.rects.reference[h],v=M(s),E=v?"y"===h?v.clientHeight||0:v.clientWidth||0:0,_=d[g],C=E-c[u]-d[p],S=E/2-c[u]/2+(f/2-m/2),y=ec(_,S,C);n.modifiersData[r]=((i={})[h]=y,i.centerOffset=y-S,i)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&eo(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=ed(t,{elementContext:"reference"}),a=ed(t,{altBoundary:!0}),l=eg(s,n),h=eg(a,r,o),u=ep(l),d=ep(h);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:h,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:r,a=void 0===(s=n.defaultOptions)?K:s,function(e,t,i){void 0===i&&(i=a);var n,r={placement:"bottom",orderedModifiers:[],options:Object.assign({},K,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],l=!1,h={state:r,setOptions:function(i){var n,l,d,c,g,p="function"==typeof i?i(r.options):i;u(),r.options=Object.assign({},a,r.options,p),r.scrollParents={reference:f(e)?x(e):e.contextElement?x(e.contextElement):[],popper:x(t)};var m=(l=Object.keys(n=[].concat(o,r.options.modifiers).reduce(function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e},{})).map(function(e){return n[e]}),d=new Map,c=new Set,g=[],l.forEach(function(e){d.set(e.name,e)}),l.forEach(function(e){c.has(e.name)||function e(t){c.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!c.has(t)){var i=d.get(t);i&&e(i)}}),g.push(t)}(e)}),Y.reduce(function(e,t){return e.concat(g.filter(function(e){return e.phase===t}))},[]));return r.orderedModifiers=m.filter(function(e){return e.enabled}),r.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,n=e.effect;if("function"==typeof n){var o=n({state:r,name:t,instance:h,options:void 0===i?{}:i});s.push(o||function(){})}}),h.update()},forceUpdate:function(){if(!l){var e,t,i,n,o,s,a,u,d,c,g,f,v=r.elements,E=v.reference,_=v.popper;if($(E,_)){r.rects={reference:(t=M(_),i="fixed"===r.options.strategy,n=m(t),u=m(t)&&(s=C((o=t.getBoundingClientRect()).width)/t.offsetWidth||1,a=C(o.height)/t.offsetHeight||1,1!==s||1!==a),d=R(t),c=T(E,u,i),g={scrollLeft:0,scrollTop:0},f={x:0,y:0},(n||!n&&!i)&&(("body"!==A(t)||I(d))&&(g=(e=t)!==p(e)&&m(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:b(e)),m(t)?(f=T(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):d&&(f.x=L(d))),{x:c.left+g.scrollLeft-f.x,y:c.top+g.scrollTop-f.y,width:c.width,height:c.height}),popper:w(_)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach(function(e){return r.modifiersData[e.name]=Object.assign({},e.data)});for(var S=0;S{!r&&s(("function"==typeof n?n():n)||document.body)},[n,r]),(0,c.Z)(()=>{if(o&&!r)return(0,eE.Z)(t,o),()=>{(0,eE.Z)(t,null)}},[t,o,r]),r)?u.isValidElement(i)?u.cloneElement(i,{ref:a}):(0,e_.jsx)(u.Fragment,{children:i}):(0,e_.jsx)(u.Fragment,{children:o?ev.createPortal(i,o):o})});var eS=i(34867);function ey(e){return(0,eS.Z)("MuiPopper",e)}(0,i(1588).Z)("MuiPopper",["root"]);var eT=i(7293);let eb=u.createContext({disableDefaultClasses:!1}),eA=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],eR=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function eL(e){return"function"==typeof e?e():e}let eN=()=>(0,em.Z)({root:["root"]},function(e){let{disableDefaultClasses:t}=u.useContext(eb);return i=>t?"":e(i)}(ey)),eI={},ew=u.forwardRef(function(e,t){var i;let{anchorEl:n,children:r,direction:o,disablePortal:s,modifiers:a,open:g,placement:p,popperOptions:f,popperRef:m,slotProps:v={},slots:E={},TransitionProps:_}=e,C=(0,h.Z)(e,eA),S=u.useRef(null),y=(0,d.Z)(S,t),T=u.useRef(null),b=(0,d.Z)(T,m),A=u.useRef(b);(0,c.Z)(()=>{A.current=b},[b]),u.useImperativeHandle(m,()=>T.current,[]);let R=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(p,o),[L,N]=u.useState(R),[I,w]=u.useState(eL(n));u.useEffect(()=>{T.current&&T.current.forceUpdate()}),u.useEffect(()=>{n&&w(eL(n))},[n]),(0,c.Z)(()=>{if(!I||!g)return;let e=e=>{N(e.placement)},t=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:t})=>{e(t)}}];null!=a&&(t=t.concat(a)),f&&null!=f.modifiers&&(t=t.concat(f.modifiers));let i=ef(I,S.current,(0,l.Z)({placement:R},f,{modifiers:t}));return A.current(i),()=>{i.destroy(),A.current(null)}},[I,s,a,g,f,R]);let O={placement:L};null!==_&&(O.TransitionProps=_);let x=eN(),D=null!=(i=E.root)?i:"div",M=(0,eT.y)({elementType:D,externalSlotProps:v.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:y},ownerState:e,className:x.root});return(0,e_.jsx)(D,(0,l.Z)({},M,{children:"function"==typeof r?r(O):r}))}),eO=u.forwardRef(function(e,t){let i;let{anchorEl:n,children:r,container:o,direction:s="ltr",disablePortal:a=!1,keepMounted:d=!1,modifiers:c,open:p,placement:f="bottom",popperOptions:m=eI,popperRef:v,style:E,transition:_=!1,slotProps:C={},slots:S={}}=e,y=(0,h.Z)(e,eR),[T,b]=u.useState(!0);if(!d&&!p&&(!_||T))return null;if(o)i=o;else if(n){let e=eL(n);i=e&&void 0!==e.nodeType?(0,g.Z)(e).body:(0,g.Z)(null).body}let A=!p&&d&&(!_||T)?"none":void 0;return(0,e_.jsx)(eC,{disablePortal:a,container:i,children:(0,e_.jsx)(ew,(0,l.Z)({anchorEl:n,direction:s,disablePortal:a,modifiers:c,ref:t,open:_?!T:p,placement:f,popperOptions:m,popperRef:v,slotProps:C,slots:S},y,{style:(0,l.Z)({position:"fixed",top:0,left:0,display:A},E),TransitionProps:_?{in:p,onEnter:()=>{b(!1)},onExited:()=>{b(!0)}}:void 0,children:r}))})})},70758:function(e,t,i){"use strict";i.d(t,{U:function(){return l}});var n=i(87462),r=i(67294),o=i(99962),s=i(33703),a=i(30437);function l(e={}){let{disabled:t=!1,focusableWhenDisabled:i,href:l,rootRef:h,tabIndex:u,to:d,type:c}=e,g=r.useRef(),[p,f]=r.useState(!1),{isFocusVisibleRef:m,onFocus:v,onBlur:E,ref:_}=(0,o.Z)(),[C,S]=r.useState(!1);t&&!i&&C&&S(!1),r.useEffect(()=>{m.current=C},[C,m]);let[y,T]=r.useState(""),b=e=>t=>{var i;C&&t.preventDefault(),null==(i=e.onMouseLeave)||i.call(e,t)},A=e=>t=>{var i;E(t),!1===m.current&&S(!1),null==(i=e.onBlur)||i.call(e,t)},R=e=>t=>{var i,n;g.current||(g.current=t.currentTarget),v(t),!0===m.current&&(S(!0),null==(n=e.onFocusVisible)||n.call(e,t)),null==(i=e.onFocus)||i.call(e,t)},L=()=>{let e=g.current;return"BUTTON"===y||"INPUT"===y&&["button","submit","reset"].includes(null==e?void 0:e.type)||"A"===y&&(null==e?void 0:e.href)},N=e=>i=>{if(!t){var n;null==(n=e.onClick)||n.call(e,i)}},I=e=>i=>{var n;t||(f(!0),document.addEventListener("mouseup",()=>{f(!1)},{once:!0})),null==(n=e.onMouseDown)||n.call(e,i)},w=e=>i=>{var n,r;null==(n=e.onKeyDown)||n.call(e,i),!i.defaultMuiPrevented&&(i.target!==i.currentTarget||L()||" "!==i.key||i.preventDefault(),i.target!==i.currentTarget||" "!==i.key||t||f(!0),i.target!==i.currentTarget||L()||"Enter"!==i.key||t||(null==(r=e.onClick)||r.call(e,i),i.preventDefault()))},O=e=>i=>{var n,r;i.target===i.currentTarget&&f(!1),null==(n=e.onKeyUp)||n.call(e,i),i.target!==i.currentTarget||L()||t||" "!==i.key||i.defaultMuiPrevented||null==(r=e.onClick)||r.call(e,i)},x=r.useCallback(e=>{var t;T(null!=(t=null==e?void 0:e.tagName)?t:"")},[]),D=(0,s.Z)(x,h,_,g),M={};return void 0!==u&&(M.tabIndex=u),"BUTTON"===y?(M.type=null!=c?c:"button",i?M["aria-disabled"]=t:M.disabled=t):""!==y&&(l||d||(M.role="button",M.tabIndex=null!=u?u:0),t&&(M["aria-disabled"]=t,M.tabIndex=i?null!=u?u:0:-1)),{getRootProps:(t={})=>{let i=(0,n.Z)({},(0,a._)(e),(0,a._)(t)),r=(0,n.Z)({type:c},i,M,t,{onBlur:A(i),onClick:N(i),onFocus:R(i),onKeyDown:w(i),onKeyUp:O(i),onMouseDown:I(i),onMouseLeave:b(i),ref:D});return delete r.onFocusVisible,r},focusVisible:C,setFocusVisible:S,active:p,rootRef:D}}},26558:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});var n=i(67294);let r=n.createContext(null)},22644:function(e,t,i){"use strict";i.d(t,{F:function(){return n}});let n={blur:"list:blur",focus:"list:focus",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",textNavigation:"list:textNavigation"}},7333:function(e,t,i){"use strict";i.d(t,{R$:function(){return a},Rl:function(){return o}});var n=i(87462),r=i(22644);function o(e,t,i){var n;let r,o;let{items:s,isItemDisabled:a,disableListWrap:l,disabledItemsFocusable:h,itemComparer:u,focusManagement:d}=i,c=s.length-1,g=null==e?-1:s.findIndex(t=>u(t,e)),p=!l;switch(t){case"reset":if(-1==("DOM"===d?0:-1))return null;r=0,o="next",p=!1;break;case"start":r=0,o="next",p=!1;break;case"end":r=c,o="previous",p=!1;break;default:{let e=g+t;e<0?!p&&-1!==g||Math.abs(t)>1?(r=0,o="next"):(r=c,o="previous"):e>c?!p||Math.abs(t)>1?(r=c,o="previous"):(r=0,o="next"):(r=e,o=t>=0?"next":"previous")}}let f=function(e,t,i,n,r,o){if(0===i.length||!n&&i.every((e,t)=>r(e,t)))return -1;let s=e;for(;;){if(!o&&"next"===t&&s===i.length||!o&&"previous"===t&&-1===s)return -1;let e=!n&&r(i[s],s);if(!e)return s;s+="next"===t?1:-1,o&&(s=(s+i.length)%i.length)}}(r,o,s,h,a,p);return -1!==f||null===e||a(e,g)?null!=(n=s[f])?n:null:e}function s(e,t,i){let{itemComparer:r,isItemDisabled:o,selectionMode:s,items:a}=i,{selectedValues:l}=t,h=a.findIndex(t=>r(e,t));if(o(e,h))return t;let u="none"===s?[]:"single"===s?r(l[0],e)?l:[e]:l.some(t=>r(t,e))?l.filter(t=>!r(t,e)):[...l,e];return(0,n.Z)({},t,{selectedValues:u,highlightedValue:e})}function a(e,t){let{type:i,context:a}=t;switch(i){case r.F.keyDown:return function(e,t,i){let r=t.highlightedValue,{orientation:a,pageSize:l}=i;switch(e){case"Home":return(0,n.Z)({},t,{highlightedValue:o(r,"start",i)});case"End":return(0,n.Z)({},t,{highlightedValue:o(r,"end",i)});case"PageUp":return(0,n.Z)({},t,{highlightedValue:o(r,-l,i)});case"PageDown":return(0,n.Z)({},t,{highlightedValue:o(r,l,i)});case"ArrowUp":if("vertical"!==a)break;return(0,n.Z)({},t,{highlightedValue:o(r,-1,i)});case"ArrowDown":if("vertical"!==a)break;return(0,n.Z)({},t,{highlightedValue:o(r,1,i)});case"ArrowLeft":if("vertical"===a)break;return(0,n.Z)({},t,{highlightedValue:o(r,"horizontal-ltr"===a?-1:1,i)});case"ArrowRight":if("vertical"===a)break;return(0,n.Z)({},t,{highlightedValue:o(r,"horizontal-ltr"===a?1:-1,i)});case"Enter":case" ":if(null===t.highlightedValue)break;return s(t.highlightedValue,t,i)}return t}(t.key,e,a);case r.F.itemClick:return s(t.item,e,a);case r.F.blur:return"DOM"===a.focusManagement?e:(0,n.Z)({},e,{highlightedValue:null});case r.F.textNavigation:return function(e,t,i){let{items:r,isItemDisabled:s,disabledItemsFocusable:a,getItemAsString:l}=i,h=t.length>1,u=h?e.highlightedValue:o(e.highlightedValue,1,i);for(let d=0;dl(e,i.highlightedValue)))?a:null:"DOM"===h&&0===t.length&&(u=o(null,"reset",r));let d=null!=(s=i.selectedValues)?s:[],c=d.filter(t=>e.some(e=>l(e,t)));return(0,n.Z)({},i,{highlightedValue:u,selectedValues:c})}(t.items,t.previousItems,e,a);case r.F.resetHighlight:return(0,n.Z)({},e,{highlightedValue:o(null,"reset",a)});default:return e}}},96592:function(e,t,i){"use strict";i.d(t,{s:function(){return _}});var n=i(87462),r=i(67294),o=i(33703),s=i(22644),a=i(7333);let l="select:change-selection",h="select:change-highlight";var u=i(78031),d=i(6414);function c(e,t){let i=r.useRef(e);return r.useEffect(()=>{i.current=e},null!=t?t:[e]),i}let g={},p=()=>{},f=(e,t)=>e===t,m=()=>!1,v=e=>"string"==typeof e?e:String(e),E=()=>({highlightedValue:null,selectedValues:[]});function _(e){let{controlledProps:t=g,disabledItemsFocusable:i=!1,disableListWrap:_=!1,focusManagement:C="activeDescendant",getInitialState:S=E,getItemDomElement:y,getItemId:T,isItemDisabled:b=m,rootRef:A,onStateChange:R=p,items:L,itemComparer:N=f,getItemAsString:I=v,onChange:w,onHighlightChange:O,onItemsChange:x,orientation:D="vertical",pageSize:M=5,reducerActionContext:k=g,selectionMode:P="single",stateReducer:F}=e,B=r.useRef(null),U=(0,o.Z)(A,B),H=r.useCallback((e,t,i)=>{if(null==O||O(e,t,i),"DOM"===C&&null!=t&&(i===s.F.itemClick||i===s.F.keyDown||i===s.F.textNavigation)){var n;null==y||null==(n=y(t))||n.focus()}},[y,O,C]),V=r.useMemo(()=>({highlightedValue:N,selectedValues:(e,t)=>(0,d.H)(e,t,N)}),[N]),W=r.useCallback((e,t,i,n,r)=>{switch(null==R||R(e,t,i,n,r),t){case"highlightedValue":H(e,i,n);break;case"selectedValues":null==w||w(e,i,n)}},[H,w,R]),G=r.useMemo(()=>({disabledItemsFocusable:i,disableListWrap:_,focusManagement:C,isItemDisabled:b,itemComparer:N,items:L,getItemAsString:I,onHighlightChange:H,orientation:D,pageSize:M,selectionMode:P,stateComparers:V}),[i,_,C,b,N,L,I,H,D,M,P,V]),z=S(),Y=null!=F?F:a.R$,K=r.useMemo(()=>(0,n.Z)({},k,G),[k,G]),[$,X]=(0,u.r)({reducer:Y,actionContext:K,initialState:z,controlledProps:t,stateComparers:V,onStateChange:W}),{highlightedValue:j,selectedValues:q}=$,Z=function(e){let t=r.useRef({searchString:"",lastTime:null});return r.useCallback(i=>{if(1===i.key.length&&" "!==i.key){let n=t.current,r=i.key.toLowerCase(),o=performance.now();n.searchString.length>0&&n.lastTime&&o-n.lastTime>500?n.searchString=r:(1!==n.searchString.length||r!==n.searchString)&&(n.searchString+=r),n.lastTime=o,e(n.searchString,i)}},[e])}((e,t)=>X({type:s.F.textNavigation,event:t,searchString:e})),J=c(q),Q=c(j),ee=r.useRef([]);r.useEffect(()=>{(0,d.H)(ee.current,L,N)||(X({type:s.F.itemsChange,event:null,items:L,previousItems:ee.current}),ee.current=L,null==x||x(L))},[L,N,X,x]);let{notifySelectionChanged:et,notifyHighlightChanged:ei,registerHighlightChangeHandler:en,registerSelectionChangeHandler:er}=function(){let e=function(){let e=r.useRef();return e.current||(e.current=function(){let e=new Map;return{subscribe:function(t,i){let n=e.get(t);return n?n.add(i):(n=new Set([i]),e.set(t,n)),()=>{n.delete(i),0===n.size&&e.delete(t)}},publish:function(t,...i){let n=e.get(t);n&&n.forEach(e=>e(...i))}}}()),e.current}(),t=r.useCallback(t=>{e.publish(l,t)},[e]),i=r.useCallback(t=>{e.publish(h,t)},[e]),n=r.useCallback(t=>e.subscribe(l,t),[e]),o=r.useCallback(t=>e.subscribe(h,t),[e]);return{notifySelectionChanged:t,notifyHighlightChanged:i,registerSelectionChangeHandler:n,registerHighlightChangeHandler:o}}();r.useEffect(()=>{et(q)},[q,et]),r.useEffect(()=>{ei(j)},[j,ei]);let eo=e=>t=>{var i;if(null==(i=e.onKeyDown)||i.call(e,t),t.defaultMuiPrevented)return;let n=["Home","End","PageUp","PageDown"];"vertical"===D?n.push("ArrowUp","ArrowDown"):n.push("ArrowLeft","ArrowRight"),"activeDescendant"===C&&n.push(" ","Enter"),n.includes(t.key)&&t.preventDefault(),X({type:s.F.keyDown,key:t.key,event:t}),Z(t)},es=e=>t=>{var i,n;null==(i=e.onBlur)||i.call(e,t),t.defaultMuiPrevented||null!=(n=B.current)&&n.contains(t.relatedTarget)||X({type:s.F.blur,event:t})},ea=r.useCallback(e=>{var t;let i=L.findIndex(t=>N(t,e)),n=(null!=(t=J.current)?t:[]).some(t=>null!=t&&N(e,t)),r=b(e,i),o=null!=Q.current&&N(e,Q.current),s="DOM"===C;return{disabled:r,focusable:s,highlighted:o,index:i,selected:n}},[L,b,N,J,Q,C]),el=r.useMemo(()=>({dispatch:X,getItemState:ea,registerHighlightChangeHandler:en,registerSelectionChangeHandler:er}),[X,ea,en,er]);return r.useDebugValue({state:$}),{contextValue:el,dispatch:X,getRootProps:(e={})=>(0,n.Z)({},e,{"aria-activedescendant":"activeDescendant"===C&&null!=j?T(j):void 0,onBlur:es(e),onKeyDown:eo(e),tabIndex:"DOM"===C?-1:0,ref:U}),rootRef:U,state:$}}},43069:function(e,t,i){"use strict";i.d(t,{J:function(){return h}});var n=i(87462),r=i(67294),o=i(33703),s=i(73546),a=i(22644),l=i(26558);function h(e){let t;let{handlePointerOverEvents:i=!1,item:h,rootRef:u}=e,d=r.useRef(null),c=(0,o.Z)(d,u),g=r.useContext(l.Z);if(!g)throw Error("useListItem must be used within a ListProvider");let{dispatch:p,getItemState:f,registerHighlightChangeHandler:m,registerSelectionChangeHandler:v}=g,{highlighted:E,selected:_,focusable:C}=f(h),S=function(){let[,e]=r.useState({});return r.useCallback(()=>{e({})},[])}();(0,s.Z)(()=>m(function(e){e!==h||E?e!==h&&E&&S():S()})),(0,s.Z)(()=>v(function(e){_?e.includes(h)||S():e.includes(h)&&S()}),[v,S,_,h]);let y=r.useCallback(e=>t=>{var i;null==(i=e.onClick)||i.call(e,t),t.defaultPrevented||p({type:a.F.itemClick,item:h,event:t})},[p,h]),T=r.useCallback(e=>t=>{var i;null==(i=e.onMouseOver)||i.call(e,t),t.defaultPrevented||p({type:a.F.itemHover,item:h,event:t})},[p,h]);return C&&(t=E?0:-1),{getRootProps:(e={})=>(0,n.Z)({},e,{onClick:y(e),onPointerOver:i?T(e):void 0,ref:c,tabIndex:t}),highlighted:E,rootRef:c,selected:_}}},10238:function(e,t,i){"use strict";i.d(t,{$:function(){return o}});var n=i(87462),r=i(28442);function o(e,t,i){return void 0===e||(0,r.X)(e)?t:(0,n.Z)({},t,{ownerState:(0,n.Z)({},t.ownerState,i)})}},6414:function(e,t,i){"use strict";function n(e,t,i=(e,t)=>e===t){return e.length===t.length&&e.every((e,n)=>i(e,t[n]))}i.d(t,{H:function(){return n}})},2900:function(e,t,i){"use strict";i.d(t,{f:function(){return r}});var n=i(87462);function r(e,t){return function(i={}){let r=(0,n.Z)({},i,e(i)),o=(0,n.Z)({},r,t(r));return o}}},30437:function(e,t,i){"use strict";function n(e,t=[]){if(void 0===e)return{};let i={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&"function"==typeof e[i]&&!t.includes(i)).forEach(t=>{i[t]=e[t]}),i}i.d(t,{_:function(){return n}})},28442:function(e,t,i){"use strict";function n(e){return"string"==typeof e}i.d(t,{X:function(){return n}})},24407:function(e,t,i){"use strict";i.d(t,{L:function(){return a}});var n=i(87462),r=i(90512),o=i(30437);function s(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(i=>{t[i]=e[i]}),t}function a(e){let{getSlotProps:t,additionalProps:i,externalSlotProps:a,externalForwardedProps:l,className:h}=e;if(!t){let e=(0,r.Z)(null==l?void 0:l.className,null==a?void 0:a.className,h,null==i?void 0:i.className),t=(0,n.Z)({},null==i?void 0:i.style,null==l?void 0:l.style,null==a?void 0:a.style),o=(0,n.Z)({},i,l,a);return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let u=(0,o._)((0,n.Z)({},l,a)),d=s(a),c=s(l),g=t(u),p=(0,r.Z)(null==g?void 0:g.className,null==i?void 0:i.className,h,null==l?void 0:l.className,null==a?void 0:a.className),f=(0,n.Z)({},null==g?void 0:g.style,null==i?void 0:i.style,null==l?void 0:l.style,null==a?void 0:a.style),m=(0,n.Z)({},g,i,c,d);return p.length>0&&(m.className=p),Object.keys(f).length>0&&(m.style=f),{props:m,internalRef:g.ref}}},71276:function(e,t,i){"use strict";function n(e,t,i){return"function"==typeof e?e(t,i):e}i.d(t,{x:function(){return n}})},12247:function(e,t,i){"use strict";i.d(t,{Y:function(){return o},s:function(){return r}});var n=i(67294);let r=n.createContext(null);function o(){let[e,t]=n.useState(new Map),i=n.useRef(new Set),r=n.useCallback(function(e){i.current.delete(e),t(t=>{let i=new Map(t);return i.delete(e),i})},[]),o=n.useCallback(function(e,n){let o;return o="function"==typeof e?e(i.current):e,i.current.add(o),t(e=>{let t=new Map(e);return t.set(o,n),t}),{id:o,deregister:()=>r(o)}},[r]),s=n.useMemo(()=>(function(e){let t=Array.from(e.keys()).map(t=>{let i=e.get(t);return{key:t,subitem:i}});return t.sort((e,t)=>{let i=e.subitem.ref.current,n=t.subitem.ref.current;return null===i||null===n||i===n?0:i.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(e=>[e.key,e.subitem]))})(e),[e]),a=n.useCallback(function(e){return Array.from(s.keys()).indexOf(e)},[s]),l=n.useMemo(()=>({getItemIndex:a,registerItem:o,totalSubitemCount:e.size}),[a,o,e.size]);return{contextValue:l,subitems:s}}r.displayName="CompoundComponentContext"},14072:function(e,t,i){"use strict";i.d(t,{B:function(){return s}});var n=i(67294),r=i(73546),o=i(12247);function s(e,t){let i=n.useContext(o.s);if(null===i)throw Error("useCompoundItem must be used within a useCompoundParent");let{registerItem:s}=i,[a,l]=n.useState("function"==typeof e?void 0:e);return(0,r.Z)(()=>{let{id:i,deregister:n}=s(e,t);return l(i),n},[s,t,e]),{id:a,index:void 0!==a?i.getItemIndex(a):-1,totalItemCount:i.totalSubitemCount}}},78031:function(e,t,i){"use strict";i.d(t,{r:function(){return h}});var n=i(87462),r=i(67294);function o(e,t){return e===t}let s={},a=()=>{};function l(e,t){let i=(0,n.Z)({},e);return Object.keys(t).forEach(e=>{void 0!==t[e]&&(i[e]=t[e])}),i}function h(e){let t=r.useRef(null),{reducer:i,initialState:h,controlledProps:u=s,stateComparers:d=s,onStateChange:c=a,actionContext:g}=e,p=r.useCallback((e,n)=>{t.current=n;let r=l(e,u),o=i(r,n);return o},[u,i]),[f,m]=r.useReducer(p,h),v=r.useCallback(e=>{m((0,n.Z)({},e,{context:g}))},[g]);return!function(e){let{nextState:t,initialState:i,stateComparers:n,onStateChange:s,controlledProps:a,lastActionRef:h}=e,u=r.useRef(i);r.useEffect(()=>{if(null===h.current)return;let e=l(u.current,a);Object.keys(t).forEach(i=>{var r,a,l;let u=null!=(r=n[i])?r:o,d=t[i],c=e[i];(null!=c||null==d)&&(null==c||null!=d)&&(null==c||null==d||u(d,c))||null==s||s(null!=(a=h.current.event)?a:null,i,d,null!=(l=h.current.type)?l:"",t)}),u.current=t,h.current=null},[u,t,h,s,n,a])}({nextState:f,initialState:h,stateComparers:null!=d?d:s,onStateChange:null!=c?c:a,controlledProps:u,lastActionRef:t}),[l(f,u),v]}},7293:function(e,t,i){"use strict";i.d(t,{y:function(){return u}});var n=i(87462),r=i(63366),o=i(33703),s=i(10238),a=i(24407),l=i(71276);let h=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function u(e){var t;let{elementType:i,externalSlotProps:u,ownerState:d,skipResolvingSlotProps:c=!1}=e,g=(0,r.Z)(e,h),p=c?{}:(0,l.x)(u,d),{props:f,internalRef:m}=(0,a.L)((0,n.Z)({},g,{externalSlotProps:p})),v=(0,o.Z)(m,null==p?void 0:p.ref,null==(t=e.additionalProps)?void 0:t.ref),E=(0,s.$)(i,(0,n.Z)({},f,{ref:v}),d);return E}},48665:function(e,t,i){"use strict";i.d(t,{Z:function(){return v}});var n=i(87462),r=i(63366),o=i(67294),s=i(90512),a=i(49731),l=i(86523),h=i(39707),u=i(96682),d=i(85893);let c=["className","component"];var g=i(37078),p=i(1812),f=i(2548);let m=function(e={}){let{themeId:t,defaultTheme:i,defaultClassName:g="MuiBox-root",generateClassName:p}=e,f=(0,a.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.Z),m=o.forwardRef(function(e,o){let a=(0,u.Z)(i),l=(0,h.Z)(e),{className:m,component:v="div"}=l,E=(0,r.Z)(l,c);return(0,d.jsx)(f,(0,n.Z)({as:v,ref:o,className:(0,s.Z)(m,p?p(g):g),theme:t&&a[t]||a},E))});return m}({themeId:f.Z,defaultTheme:p.Z,defaultClassName:"MuiBox-root",generateClassName:g.Z.generate});var v=m},41118:function(e,t,i){"use strict";i.d(t,{Z:function(){return y}});var n=i(63366),r=i(87462),o=i(67294),s=i(90512),a=i(94780),l=i(14142),h=i(18719),u=i(20407),d=i(74312),c=i(78653),g=i(26821);function p(e){return(0,g.d6)("MuiCard",e)}(0,g.sI)("MuiCard",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","horizontal","vertical"]);var f=i(58859),m=i(30220),v=i(85893);let E=["className","color","component","invertedColors","size","variant","children","orientation","slots","slotProps"],_=e=>{let{size:t,variant:i,color:n,orientation:r}=e,o={root:["root",r,i&&`variant${(0,l.Z)(i)}`,n&&`color${(0,l.Z)(n)}`,t&&`size${(0,l.Z)(t)}`]};return(0,a.Z)(o,p,{})},C=(0,d.Z)("div",{name:"JoyCard",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n;let{p:o,padding:s,borderRadius:a}=(0,f.V)({theme:e,ownerState:t},["p","padding","borderRadius"]);return[(0,r.Z)({"--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon,"--Card-childRadius":"max((var(--Card-radius) - var(--variant-borderWidth, 0px)) - var(--Card-padding), min(var(--Card-padding) / 2, (var(--Card-radius) - var(--variant-borderWidth, 0px)) / 2))","--AspectRatio-radius":"var(--Card-childRadius)","--unstable_actionMargin":"calc(-1 * var(--variant-borderWidth, 0px))","--unstable_actionRadius":"var(--Card-radius)","--CardCover-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--CardOverflow-offset":"calc(-1 * var(--Card-padding))","--CardOverflow-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--Divider-inset":"calc(-1 * var(--Card-padding))"},"sm"===t.size&&{"--Card-radius":e.vars.radius.sm,"--Card-padding":"0.625rem",gap:"0.5rem"},"md"===t.size&&{"--Card-radius":e.vars.radius.md,"--Card-padding":"1rem",gap:"0.75rem 1rem"},"lg"===t.size&&{"--Card-radius":e.vars.radius.lg,"--Card-padding":"1.5rem",gap:"1rem 1.5rem"},{padding:"var(--Card-padding)",borderRadius:"var(--Card-radius)",backgroundColor:e.vars.palette.background.surface,position:"relative",display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column"},e.typography[`body-${t.size}`],null==(i=e.variants[t.variant])?void 0:i[t.color]),"context"!==t.color&&t.invertedColors&&(null==(n=e.colorInversion[t.variant])?void 0:n[t.color]),void 0!==o&&{"--Card-padding":o},void 0!==s&&{"--Card-padding":s},void 0!==a&&{"--Card-radius":a}]}),S=o.forwardRef(function(e,t){let i=(0,u.Z)({props:e,name:"JoyCard"}),{className:a,color:l="neutral",component:d="div",invertedColors:g=!1,size:p="md",variant:f="outlined",children:S,orientation:y="vertical",slots:T={},slotProps:b={}}=i,A=(0,n.Z)(i,E),{getColor:R}=(0,c.VT)(f),L=R(e.color,l),N=(0,r.Z)({},i,{color:L,component:d,orientation:y,size:p,variant:f}),I=_(N),w=(0,r.Z)({},A,{component:d,slots:T,slotProps:b}),[O,x]=(0,m.Z)("root",{ref:t,className:(0,s.Z)(I.root,a),elementType:C,externalForwardedProps:w,ownerState:N}),D=(0,v.jsx)(O,(0,r.Z)({},x,{children:o.Children.map(S,(e,t)=>{if(!o.isValidElement(e))return e;let i={};if((0,h.Z)(e,["Divider"])){i.inset="inset"in e.props?e.props.inset:"context";let t="vertical"===y?"horizontal":"vertical";i.orientation="orientation"in e.props?e.props.orientation:t}return(0,h.Z)(e,["CardOverflow"])&&("horizontal"===y&&(i["data-parent"]="Card-horizontal"),"vertical"===y&&(i["data-parent"]="Card-vertical")),0===t&&(i["data-first-child"]=""),t===o.Children.count(S)-1&&(i["data-last-child"]=""),o.cloneElement(e,i)})}));return g?(0,v.jsx)(c.do,{variant:f,children:D}):D});var y=S},30208:function(e,t,i){"use strict";i.d(t,{Z:function(){return _}});var n=i(87462),r=i(63366),o=i(67294),s=i(90512),a=i(94780),l=i(20407),h=i(74312),u=i(26821);function d(e){return(0,u.d6)("MuiCardContent",e)}(0,u.sI)("MuiCardContent",["root"]);let c=(0,u.sI)("MuiCardOverflow",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var g=i(30220),p=i(85893);let f=["className","component","children","orientation","slots","slotProps"],m=()=>(0,a.Z)({root:["root"]},d,{}),v=(0,h.Z)("div",{name:"JoyCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({display:"flex",flexDirection:"horizontal"===e.orientation?"row":"column",flex:9999,zIndex:1,columnGap:"var(--Card-padding)",rowGap:"max(2px, calc(0.1875 * var(--Card-padding)))",padding:"var(--unstable_padding)",[`.${c.root} > &`]:{"--unstable_padding":"calc(var(--Card-padding) * 0.75) 0px"}})),E=o.forwardRef(function(e,t){let i=(0,l.Z)({props:e,name:"JoyCardContent"}),{className:o,component:a="div",children:h,orientation:u="vertical",slots:d={},slotProps:c={}}=i,E=(0,r.Z)(i,f),_=(0,n.Z)({},E,{component:a,slots:d,slotProps:c}),C=(0,n.Z)({},i,{component:a,orientation:u}),S=m(),[y,T]=(0,g.Z)("root",{ref:t,className:(0,s.Z)(S.root,o),elementType:v,externalForwardedProps:_,ownerState:C});return(0,p.jsx)(y,(0,n.Z)({},T,{children:h}))});var _=E},76043:function(e,t,i){"use strict";var n=i(67294);let r=n.createContext(void 0);t.Z=r},43614:function(e,t,i){"use strict";var n=i(67294);let r=n.createContext(void 0);t.Z=r},50984:function(e,t,i){"use strict";i.d(t,{C:function(){return s}});var n=i(87462);i(67294);var r=i(74312),o=i(58859);i(85893);let s=(0,r.Z)("ul")(({theme:e,ownerState:t})=>{var i;let{p:r,padding:s,borderRadius:a}=(0,o.V)({theme:e,ownerState:t},["p","padding","borderRadius"]);function l(i){return"sm"===i?{"--ListDivider-gap":"0.25rem","--ListItem-minHeight":"2rem","--ListItem-paddingY":"0.25rem","--ListItem-paddingX":"0.5rem","--ListItemDecorator-size":"horizontal"===t.orientation?"1.5rem":"2rem","--Icon-fontSize":e.vars.fontSize.lg}:"md"===i?{"--ListDivider-gap":"0.375rem","--ListItem-minHeight":"2.5rem","--ListItem-paddingY":"0.375rem","--ListItem-paddingX":"0.75rem","--ListItemDecorator-size":"horizontal"===t.orientation?"1.75rem":"2.5rem","--Icon-fontSize":e.vars.fontSize.xl}:"lg"===i?{"--ListDivider-gap":"0.5rem","--ListItem-minHeight":"3rem","--ListItem-paddingY":"0.5rem","--ListItem-paddingX":"1rem","--ListItemDecorator-size":"horizontal"===t.orientation?"2.25rem":"3rem","--Icon-fontSize":e.vars.fontSize.xl2}:{}}return[t.nesting&&(0,n.Z)({},l(t.instanceSize),{"--ListItem-paddingRight":"var(--ListItem-paddingX)","--ListItem-paddingLeft":"var(--NestedListItem-paddingLeft)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px",padding:0,marginInlineStart:"var(--NestedList-marginLeft)",marginInlineEnd:"var(--NestedList-marginRight)",marginBlockStart:"var(--List-gap)",marginBlockEnd:"initial"}),!t.nesting&&(0,n.Z)({},l(t.size),{"--List-gap":"0px","--List-nestedInsetStart":"0px","--ListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItem-paddingRight":"var(--ListItem-paddingX)","--unstable_List-childRadius":"calc(max(var(--List-radius) - var(--List-padding), min(var(--List-padding) / 2, var(--List-radius) / 2)) - var(--variant-borderWidth, 0px))","--ListItem-radius":"var(--unstable_List-childRadius)","--ListItem-startActionTranslateX":"calc(0.5 * var(--ListItem-paddingLeft))","--ListItem-endActionTranslateX":"calc(-0.5 * var(--ListItem-paddingRight))",margin:"initial"},e.typography[`body-${t.size}`],"horizontal"===t.orientation?(0,n.Z)({},t.wrap?{padding:"var(--List-padding)",marginInlineStart:"calc(-1 * var(--List-gap))",marginBlockStart:"calc(-1 * var(--List-gap))"}:{paddingInline:"var(--List-padding, var(--ListDivider-gap))",paddingBlock:"var(--List-padding)"}):{paddingBlock:"var(--List-padding, var(--ListDivider-gap))",paddingInline:"var(--List-padding)"}),(0,n.Z)({boxSizing:"border-box",borderRadius:"var(--List-radius)",listStyle:"none",display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column"},t.wrap&&{flexWrap:"wrap"},{flexGrow:1,position:"relative"},null==(i=e.variants[t.variant])?void 0:i[t.color],{"--unstable_List-borderWidth":"var(--variant-borderWidth, 0px)"},void 0!==a&&{"--List-radius":a},void 0!==r&&{"--List-padding":r},void 0!==s&&{"--List-padding":s})]});(0,r.Z)(s,{name:"JoyList",slot:"Root",overridesResolver:(e,t)=>t.root})({})},3419:function(e,t,i){"use strict";i.d(t,{Z:function(){return u},M:function(){return h}});var n=i(87462),r=i(67294),o=i(40780);let s=r.createContext(!1),a=r.createContext(!1);var l=i(85893);let h={"--NestedList-marginRight":"0px","--NestedList-marginLeft":"0px","--NestedListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px"};var u=function(e){let{children:t,nested:i,row:h=!1,wrap:u=!1}=e,d=(0,l.jsx)(o.Z.Provider,{value:h,children:(0,l.jsx)(s.Provider,{value:u,children:r.Children.map(t,(e,i)=>r.isValidElement(e)?r.cloneElement(e,(0,n.Z)({},0===i&&{"data-first-child":""},i===r.Children.count(t)-1&&{"data-last-child":""})):e)})});return void 0===i?d:(0,l.jsx)(a.Provider,{value:i,children:d})}},40780:function(e,t,i){"use strict";var n=i(67294);let r=n.createContext(!1);t.Z=r},39984:function(e,t,i){"use strict";i.d(t,{r:function(){return l}});var n=i(87462);i(67294);var r=i(74312),o=i(26821);let s=(0,o.sI)("MuiListItem",["root","startAction","endAction","nested","nesting","sticky","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]),a=(0,o.sI)("MuiListItemButton",["root","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","variantPlain","variantSoft","variantOutlined","variantSolid"]);i(85893);let l=(0,r.Z)("div")(({theme:e,ownerState:t})=>{var i,r,o,l,h;return(0,n.Z)({"--Icon-margin":"initial","--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon,WebkitTapHighlightColor:"transparent",boxSizing:"border-box",position:"relative",font:"inherit",display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"stretch"},"vertical"===t.orientation&&{flexDirection:"column",justifyContent:"center"},{textAlign:"initial",textDecoration:"initial",backgroundColor:"initial",cursor:"pointer",marginInline:"var(--ListItemButton-marginInline)",marginBlock:"var(--ListItemButton-marginBlock)"},void 0===t["data-first-child"]&&{marginInlineStart:t.row?"var(--List-gap)":void 0,marginBlockStart:t.row?void 0:"var(--List-gap)"},{paddingBlock:"calc(var(--ListItem-paddingY) - var(--variant-borderWidth, 0px))",paddingInlineStart:"calc(var(--ListItem-paddingLeft) + var(--ListItem-startActionWidth, var(--unstable_startActionWidth, 0px)))",paddingInlineEnd:"calc(var(--ListItem-paddingRight) + var(--ListItem-endActionWidth, var(--unstable_endActionWidth, 0px)))",minBlockSize:"var(--ListItem-minHeight)",border:"1px solid transparent",borderRadius:"var(--ListItem-radius)",flex:"var(--unstable_ListItem-flex, none)",fontSize:"inherit",lineHeight:"inherit",minInlineSize:0,[e.focus.selector]:(0,n.Z)({},e.focus.default,{zIndex:1})},null==(i=e.variants[t.variant])?void 0:i[t.color],{[`.${s.root} > &`]:{"--unstable_ListItem-flex":"1 0 0%"},[`&.${a.selected}`]:(0,n.Z)({},null==(r=e.variants[`${t.variant}Active`])?void 0:r[t.color],{"--Icon-color":"currentColor"}),[`&:not(.${a.selected}, [aria-selected="true"])`]:{"&:hover":null==(o=e.variants[`${t.variant}Hover`])?void 0:o[t.color],"&:active":null==(l=e.variants[`${t.variant}Active`])?void 0:l[t.color]},[`&.${a.disabled}`]:(0,n.Z)({},null==(h=e.variants[`${t.variant}Disabled`])?void 0:h[t.color])})});(0,r.Z)(l,{name:"JoyListItemButton",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>(0,n.Z)({},!e.row&&{[`&.${a.selected}`]:{fontWeight:t.vars.fontWeight.md}}))},57814:function(e,t,i){"use strict";i.d(t,{Z:function(){return R}});var n=i(87462),r=i(63366),o=i(67294),s=i(94780),a=i(92996),l=i(33703),h=i(43069),u=i(14072),d=i(30220),c=i(39984),g=i(74312),p=i(20407),f=i(78653),m=i(55907),v=i(26821);function E(e){return(0,v.d6)("MuiOption",e)}let _=(0,v.sI)("MuiOption",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","highlighted","variantPlain","variantSoft","variantOutlined","variantSolid"]);var C=i(40780),S=i(85893);let y=["component","children","disabled","value","label","variant","color","slots","slotProps"],T=e=>{let{disabled:t,highlighted:i,selected:n}=e;return(0,s.Z)({root:["root",t&&"disabled",i&&"highlighted",n&&"selected"]},E,{})},b=(0,g.Z)(c.r,{name:"JoyOption",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i;let n=null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color];return{[`&.${_.highlighted}:not([aria-selected="true"])`]:{backgroundColor:null==n?void 0:n.backgroundColor}}}),A=o.forwardRef(function(e,t){var i;let s=(0,p.Z)({props:e,name:"JoyOption"}),{component:c="li",children:g,disabled:v=!1,value:E,label:_,variant:A="plain",color:R="neutral",slots:L={},slotProps:N={}}=s,I=(0,r.Z)(s,y),w=o.useContext(C.Z),{variant:O=A,color:x=R}=(0,m.yP)(e.variant,e.color),D=o.useRef(null),M=(0,l.Z)(D,t),k=null!=_?_:"string"==typeof g?g:null==(i=D.current)?void 0:i.innerText,{getRootProps:P,selected:F,highlighted:B,index:U}=function(e){let{value:t,label:i,disabled:r,rootRef:s,id:d}=e,{getRootProps:c,rootRef:g,highlighted:p,selected:f}=(0,h.J)({item:t}),m=(0,a.Z)(d),v=o.useRef(null),E=o.useMemo(()=>({disabled:r,label:i,value:t,ref:v,id:m}),[r,i,t,m]),{index:_}=(0,u.B)(t,E),C=(0,l.Z)(s,v,g);return{getRootProps:(e={})=>(0,n.Z)({},e,c(e),{id:m,ref:C,role:"option","aria-selected":f}),highlighted:p,index:_,selected:f,rootRef:C}}({disabled:v,label:k,value:E,rootRef:M}),{getColor:H}=(0,f.VT)(O),V=H(e.color,x),W=(0,n.Z)({},s,{disabled:v,selected:F,highlighted:B,index:U,component:c,variant:O,color:V,row:w}),G=T(W),z=(0,n.Z)({},I,{component:c,slots:L,slotProps:N}),[Y,K]=(0,d.Z)("root",{ref:t,getSlotProps:P,elementType:b,externalForwardedProps:z,className:G.root,ownerState:W});return(0,S.jsx)(Y,(0,n.Z)({},K,{children:g}))});var R=A},99056:function(e,t,i){"use strict";i.d(t,{Z:function(){return ea}});var n,r=i(63366),o=i(87462),s=i(67294),a=i(90512),l=i(14142),h=i(33703),u=i(53406),d=i(92996),c=i(73546),g=i(70758);let p={buttonClick:"buttonClick"};var f=i(96592);let m=e=>{let{label:t,value:i}=e;return"string"==typeof t?t:"string"==typeof i?i:String(e)};var v=i(12247),E=i(7333),_=i(22644);function C(e,t){var i,n,r;let{open:s}=e,{context:{selectionMode:a}}=t;if(t.type===p.buttonClick){let n=null!=(i=e.selectedValues[0])?i:(0,E.Rl)(null,"start",t.context);return(0,o.Z)({},e,{open:!s,highlightedValue:s?null:n})}let l=(0,E.R$)(e,t);switch(t.type){case _.F.keyDown:if(e.open){if("Escape"===t.event.key||"single"===a&&("Enter"===t.event.key||" "===t.event.key))return(0,o.Z)({},l,{open:!1})}else{if("Enter"===t.event.key||" "===t.event.key||"ArrowDown"===t.event.key)return(0,o.Z)({},e,{open:!0,highlightedValue:null!=(n=e.selectedValues[0])?n:(0,E.Rl)(null,"start",t.context)});if("ArrowUp"===t.event.key)return(0,o.Z)({},e,{open:!0,highlightedValue:null!=(r=e.selectedValues[0])?r:(0,E.Rl)(null,"end",t.context)})}break;case _.F.itemClick:if("single"===a)return(0,o.Z)({},l,{open:!1});break;case _.F.blur:return(0,o.Z)({},l,{open:!1})}return l}var S=i(2900);let y={clip:"rect(1px, 1px, 1px, 1px)",clipPath:"inset(50%)",height:"1px",width:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",left:"50%",bottom:0},T=()=>{};function b(e){return Array.isArray(e)?0===e.length?"":JSON.stringify(e.map(e=>e.value)):(null==e?void 0:e.value)==null?"":"string"==typeof e.value||"number"==typeof e.value?e.value:JSON.stringify(e.value)}function A(e){e.preventDefault()}var R=i(26558),L=i(85893);function N(e){let{value:t,children:i}=e,{dispatch:n,getItemIndex:r,getItemState:o,registerHighlightChangeHandler:a,registerSelectionChangeHandler:l,registerItem:h,totalSubitemCount:u}=t,d=s.useMemo(()=>({dispatch:n,getItemState:o,getItemIndex:r,registerHighlightChangeHandler:a,registerSelectionChangeHandler:l}),[n,r,o,a,l]),c=s.useMemo(()=>({getItemIndex:r,registerItem:h,totalSubitemCount:u}),[h,r,u]);return(0,L.jsx)(v.s.Provider,{value:c,children:(0,L.jsx)(R.Z.Provider,{value:d,children:i})})}var I=i(94780),w=i(50984),O=i(3419),x=i(43614),D=i(74312),M=i(20407),k=i(30220),P=i(26821);function F(e){return(0,P.d6)("MuiSvgIcon",e)}(0,P.sI)("MuiSvgIcon",["root","colorInherit","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","fontSizeInherit","fontSizeXs","fontSizeSm","fontSizeMd","fontSizeLg","fontSizeXl","fontSizeXl2","fontSizeXl3","fontSizeXl4","sizeSm","sizeMd","sizeLg"]);let B=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox","size","slots","slotProps"],U=e=>{let{color:t,size:i,fontSize:n}=e,r={root:["root",t&&"inherit"!==t&&`color${(0,l.Z)(t)}`,i&&`size${(0,l.Z)(i)}`,n&&`fontSize${(0,l.Z)(n)}`]};return(0,I.Z)(r,F,{})},H={sm:"xl",md:"xl2",lg:"xl3"},V=(0,D.Z)("svg",{name:"JoySvgIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i;return(0,o.Z)({},t.instanceSize&&{"--Icon-fontSize":e.vars.fontSize[H[t.instanceSize]]},t.instanceFontSize&&"inherit"!==t.instanceFontSize&&{"--Icon-fontSize":e.vars.fontSize[t.instanceFontSize]},{userSelect:"none",margin:"var(--Icon-margin)",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,fontSize:`var(--Icon-fontSize, ${e.vars.fontSize[H[t.size]]||"unset"})`},t.fontSize&&"inherit"!==t.fontSize&&{fontSize:`var(--Icon-fontSize, ${e.fontSize[t.fontSize]})`},!t.htmlColor&&(0,o.Z)({color:`var(--Icon-color, ${e.vars.palette.text.icon})`},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"context"!==t.color&&e.vars.palette[t.color]&&{color:`rgba(${null==(i=e.vars.palette[t.color])?void 0:i.mainChannel} / 1)`}))}),W=s.forwardRef(function(e,t){let i=(0,M.Z)({props:e,name:"JoySvgIcon"}),{children:n,className:l,color:h,component:u="svg",fontSize:d,htmlColor:c,inheritViewBox:g=!1,titleAccess:p,viewBox:f="0 0 24 24",size:m="md",slots:v={},slotProps:E={}}=i,_=(0,r.Z)(i,B),C=s.isValidElement(n)&&"svg"===n.type,S=(0,o.Z)({},i,{color:h,component:u,size:m,instanceSize:e.size,fontSize:d,instanceFontSize:e.fontSize,inheritViewBox:g,viewBox:f,hasSvgAsChild:C}),y=U(S),T=(0,o.Z)({},_,{component:u,slots:v,slotProps:E}),[b,A]=(0,k.Z)("root",{ref:t,className:(0,a.Z)(y.root,l),elementType:V,externalForwardedProps:T,ownerState:S,additionalProps:(0,o.Z)({color:c,focusable:!1},p&&{role:"img"},!p&&{"aria-hidden":!0},!g&&{viewBox:f},C&&n.props)});return(0,L.jsxs)(b,(0,o.Z)({},A,{children:[C?n.props.children:n,p?(0,L.jsx)("title",{children:p}):null]}))});var G=function(e,t){function i(i,n){return(0,L.jsx)(W,(0,o.Z)({"data-testid":`${t}Icon`,ref:n},i,{children:e}))}return i.muiName=W.muiName,s.memo(s.forwardRef(i))}((0,L.jsx)("path",{d:"m12 5.83 2.46 2.46c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 3.7a.9959.9959 0 0 0-1.41 0L8.12 6.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 5.83zm0 12.34-2.46-2.46a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l3.17 3.18c.39.39 1.02.39 1.41 0l3.17-3.17c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L12 18.17z"}),"Unfold"),z=i(78653),Y=i(58859);function K(e){return(0,P.d6)("MuiSelect",e)}let $=(0,P.sI)("MuiSelect",["root","button","indicator","startDecorator","endDecorator","popper","listbox","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","focusVisible","disabled","expanded"]);var X=i(76043),j=i(55907);let q=["action","autoFocus","children","defaultValue","defaultListboxOpen","disabled","getSerializedValue","placeholder","listboxId","listboxOpen","onChange","onListboxOpenChange","onClose","renderValue","required","value","size","variant","color","startDecorator","endDecorator","indicator","aria-describedby","aria-label","aria-labelledby","id","name","slots","slotProps"];function Z(e){var t;return null!=(t=null==e?void 0:e.label)?t:""}let J=[{name:"offset",options:{offset:[0,4]}},{name:"equalWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`}}],Q=e=>{let{color:t,disabled:i,focusVisible:n,size:r,variant:o,open:s}=e,a={root:["root",i&&"disabled",n&&"focusVisible",s&&"expanded",o&&`variant${(0,l.Z)(o)}`,t&&`color${(0,l.Z)(t)}`,r&&`size${(0,l.Z)(r)}`],button:["button"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],indicator:["indicator",s&&"expanded"],listbox:["listbox",s&&"expanded",i&&"disabled"]};return(0,I.Z)(a,K,{})},ee=(0,D.Z)("div",{name:"JoySelect",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n,r,s;let a=null==(i=e.variants[`${t.variant}`])?void 0:i[t.color],{borderRadius:l}=(0,Y.V)({theme:e,ownerState:t},["borderRadius"]);return[(0,o.Z)({"--Select-radius":e.vars.radius.sm,"--Select-gap":"0.5rem","--Select-placeholderOpacity":.64,"--Select-decoratorColor":e.vars.palette.text.icon,"--Select-focusedThickness":e.vars.focus.thickness},"context"===t.color?{"--Select-focusedHighlight":e.vars.palette.focusVisible}:{"--Select-focusedHighlight":null==(n=e.vars.palette["neutral"===t.color?"primary":t.color])?void 0:n[500]},{"--Select-indicatorColor":null!=a&&a.backgroundColor?null==a?void 0:a.color:e.vars.palette.text.tertiary},"sm"===t.size&&{"--Select-minHeight":"2rem","--Select-paddingInline":"0.5rem","--Select-decoratorChildHeight":"min(1.5rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl},"md"===t.size&&{"--Select-minHeight":"2.5rem","--Select-paddingInline":"0.75rem","--Select-decoratorChildHeight":"min(2rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},"lg"===t.size&&{"--Select-minHeight":"3rem","--Select-paddingInline":"1rem","--Select-decoratorChildHeight":"min(2.375rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},{"--Select-decoratorChildOffset":"min(calc(var(--Select-paddingInline) - (var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2), var(--Select-paddingInline))","--_Select-paddingBlock":"max((var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2, 0px)","--Select-decoratorChildRadius":"max(var(--Select-radius) - var(--variant-borderWidth, 0px) - var(--_Select-paddingBlock), min(var(--_Select-paddingBlock) + var(--variant-borderWidth, 0px), var(--Select-radius) / 2))","--Button-minHeight":"var(--Select-decoratorChildHeight)","--IconButton-size":"var(--Select-decoratorChildHeight)","--Button-radius":"var(--Select-decoratorChildRadius)","--IconButton-radius":"var(--Select-decoratorChildRadius)",boxSizing:"border-box"},"plain"!==t.variant&&{boxShadow:e.shadow.xs},{minWidth:0,minHeight:"var(--Select-minHeight)",position:"relative",display:"flex",alignItems:"center",borderRadius:"var(--Select-radius)",cursor:"pointer"},!(null!=a&&a.backgroundColor)&&{backgroundColor:e.vars.palette.background.surface},t.size&&{paddingBlock:({sm:2,md:3,lg:4})[t.size]},{paddingInline:"var(--Select-paddingInline)"},e.typography[`body-${t.size}`],a,{"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)"},[`&.${$.focusVisible}`]:{"--Select-indicatorColor":null==a?void 0:a.color,"&::before":{boxShadow:"inset 0 0 0 var(--Select-focusedThickness) var(--Select-focusedHighlight)"}},[`&.${$.disabled}`]:{"--Select-indicatorColor":"inherit"}}),{"&:hover":null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color],[`&.${$.disabled}`]:null==(s=e.variants[`${t.variant}Disabled`])?void 0:s[t.color]},void 0!==l&&{"--Select-radius":l}]}),et=(0,D.Z)("button",{name:"JoySelect",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>(0,o.Z)({border:0,outline:0,background:"none",padding:0,fontSize:"inherit",color:"inherit",alignSelf:"stretch",display:"flex",alignItems:"center",flex:1,fontFamily:"inherit",cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden"},(null===e.value||void 0===e.value)&&{opacity:"var(--Select-placeholderOpacity)"},{"&::before":{content:'""',display:"block",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))",right:"calc(-1 * var(--variant-borderWidth, 0px))",bottom:"calc(-1 * var(--variant-borderWidth, 0px))",borderRadius:"var(--Select-radius)"}})),ei=(0,D.Z)(w.C,{name:"JoySelect",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e,ownerState:t})=>{var i;let n="context"===t.color?void 0:null==(i=e.variants[t.variant])?void 0:i[t.color];return(0,o.Z)({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":(null==n?void 0:n.backgroundColor)||(null==n?void 0:n.background)||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},O.M,{minWidth:"max-content",maxHeight:"44vh",overflow:"auto",outline:0,boxShadow:e.shadow.md,borderRadius:`var(--List-radius, ${e.vars.radius.sm})`,zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`},!(null!=n&&n.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup})}),en=(0,D.Z)("span",{name:"JoySelect",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Button-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--IconButton-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Select-paddingInline) / -4)",display:"inherit",alignItems:"center",color:"var(--Select-decoratorColor)",marginInlineEnd:"var(--Select-gap)"}),er=(0,D.Z)("span",{name:"JoySelect",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Button-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--IconButton-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Select-paddingInline) / -4) 0 0",display:"inherit",alignItems:"center",color:"var(--Select-decoratorColor)",marginInlineStart:"var(--Select-gap)"}),eo=(0,D.Z)("span",{name:"JoySelect",slot:"Indicator"})(({ownerState:e,theme:t})=>(0,o.Z)({},"sm"===e.size&&{"--Icon-fontSize":t.vars.fontSize.lg},"md"===e.size&&{"--Icon-fontSize":t.vars.fontSize.xl},"lg"===e.size&&{"--Icon-fontSize":t.vars.fontSize.xl2},{"--Icon-color":"neutral"!==e.color||"solid"===e.variant?"currentColor":t.vars.palette.text.icon,display:"inherit",alignItems:"center",marginInlineStart:"var(--Select-gap)",marginInlineEnd:"calc(var(--Select-paddingInline) / -4)",[`.${$.endDecorator} + &`]:{marginInlineStart:"calc(var(--Select-gap) / 2)"},[`&.${$.expanded}, .${$.disabled} > &`]:{"--Icon-color":"currentColor"}})),es=s.forwardRef(function(e,t){var i,l,E,_,R,I,w;let D=(0,M.Z)({props:e,name:"JoySelect"}),{action:P,autoFocus:F,children:B,defaultValue:U,defaultListboxOpen:H=!1,disabled:V,getSerializedValue:W,placeholder:Y,listboxId:K,listboxOpen:es,onChange:ea,onListboxOpenChange:el,onClose:eh,renderValue:eu,required:ed=!1,value:ec,size:eg="md",variant:ep="outlined",color:ef="neutral",startDecorator:em,endDecorator:ev,indicator:eE=n||(n=(0,L.jsx)(G,{})),"aria-describedby":e_,"aria-label":eC,"aria-labelledby":eS,id:ey,name:eT,slots:eb={},slotProps:eA={}}=D,eR=(0,r.Z)(D,q),eL=s.useContext(X.Z),eN=null!=(i=null!=(l=e.disabled)?l:null==eL?void 0:eL.disabled)?i:V,eI=null!=(E=null!=(_=e.size)?_:null==eL?void 0:eL.size)?E:eg,{getColor:ew}=(0,z.VT)(ep),eO=ew(e.color,null!=eL&&eL.error?"danger":null!=(R=null==eL?void 0:eL.color)?R:ef),ex=null!=eu?eu:Z,[eD,eM]=s.useState(null),ek=s.useRef(null),eP=s.useRef(null),eF=s.useRef(null),eB=(0,h.Z)(t,ek);s.useImperativeHandle(P,()=>({focusVisible:()=>{var e;null==(e=eP.current)||e.focus()}}),[]),s.useEffect(()=>{eM(ek.current)},[]),s.useEffect(()=>{F&&eP.current.focus()},[F]);let eU=s.useCallback(e=>{null==el||el(e),e||null==eh||eh()},[eh,el]),{buttonActive:eH,buttonFocusVisible:eV,contextValue:eW,disabled:eG,getButtonProps:ez,getListboxProps:eY,getHiddenInputProps:eK,getOptionMetadata:e$,open:eX,value:ej}=function(e){let t,i,n;let{areOptionsEqual:r,buttonRef:a,defaultOpen:l=!1,defaultValue:u,disabled:E=!1,listboxId:_,listboxRef:R,multiple:L=!1,name:N,required:I,onChange:w,onHighlightChange:O,onOpenChange:x,open:D,options:M,getOptionAsString:k=m,getSerializedValue:P=b,value:F}=e,B=s.useRef(null),U=(0,h.Z)(a,B),H=s.useRef(null),V=(0,d.Z)(_);void 0===F&&void 0===u?t=[]:void 0!==u&&(t=L?u:null==u?[]:[u]);let W=s.useMemo(()=>{if(void 0!==F)return L?F:null==F?[]:[F]},[F,L]),{subitems:G,contextValue:z}=(0,v.Y)(),Y=s.useMemo(()=>null!=M?new Map(M.map((e,t)=>[e.value,{value:e.value,label:e.label,disabled:e.disabled,ref:s.createRef(),id:`${V}_${t}`}])):G,[M,G,V]),K=(0,h.Z)(R,H),{getRootProps:$,active:X,focusVisible:j,rootRef:q}=(0,g.U)({disabled:E,rootRef:U}),Z=s.useMemo(()=>Array.from(Y.keys()),[Y]),J=s.useCallback(e=>{if(void 0!==r){let t=Z.find(t=>r(t,e));return Y.get(t)}return Y.get(e)},[Y,r,Z]),Q=s.useCallback(e=>{var t;let i=J(e);return null!=(t=null==i?void 0:i.disabled)&&t},[J]),ee=s.useCallback(e=>{let t=J(e);return t?k(t):""},[J,k]),et=s.useMemo(()=>({selectedValues:W,open:D}),[W,D]),ei=s.useCallback(e=>{var t;return null==(t=Y.get(e))?void 0:t.id},[Y]),en=s.useCallback((e,t)=>{if(L)null==w||w(e,t);else{var i;null==w||w(e,null!=(i=t[0])?i:null)}},[L,w]),er=s.useCallback((e,t)=>{null==O||O(e,null!=t?t:null)},[O]),eo=s.useCallback((e,t,i)=>{if("open"===t&&(null==x||x(i),!1===i&&(null==e?void 0:e.type)!=="blur")){var n;null==(n=B.current)||n.focus()}},[x]),es={getInitialState:()=>{var e;return{highlightedValue:null,selectedValues:null!=(e=t)?e:[],open:l}},getItemId:ei,controlledProps:et,itemComparer:r,isItemDisabled:Q,rootRef:q,onChange:en,onHighlightChange:er,onStateChange:eo,reducerActionContext:s.useMemo(()=>({multiple:L}),[L]),items:Z,getItemAsString:ee,selectionMode:L?"multiple":"single",stateReducer:C},{dispatch:ea,getRootProps:el,contextValue:eh,state:{open:eu,highlightedValue:ed,selectedValues:ec},rootRef:eg}=(0,f.s)(es),ep=e=>t=>{var i;if(null==e||null==(i=e.onMouseDown)||i.call(e,t),!t.defaultMuiPrevented){let e={type:p.buttonClick,event:t};ea(e)}};(0,c.Z)(()=>{if(null!=ed){var e;let t=null==(e=J(ed))?void 0:e.ref;if(!H.current||!(null!=t&&t.current))return;let i=H.current.getBoundingClientRect(),n=t.current.getBoundingClientRect();n.topi.bottom&&(H.current.scrollTop+=n.bottom-i.bottom)}},[ed,J]);let ef=s.useCallback(e=>J(e),[J]),em=(e={})=>(0,o.Z)({},e,{onMouseDown:ep(e),ref:eg,role:"combobox","aria-expanded":eu,"aria-controls":V});s.useDebugValue({selectedOptions:ec,highlightedOption:ed,open:eu});let ev=s.useMemo(()=>(0,o.Z)({},eh,z),[eh,z]);if(i=e.multiple?ec:ec.length>0?ec[0]:null,L)n=i.map(e=>ef(e)).filter(e=>void 0!==e);else{var eE;n=null!=(eE=ef(i))?eE:null}return{buttonActive:X,buttonFocusVisible:j,buttonRef:q,contextValue:ev,disabled:E,dispatch:ea,getButtonProps:(e={})=>{let t=(0,S.f)($,el),i=(0,S.f)(t,em);return i(e)},getHiddenInputProps:(e={})=>(0,o.Z)({name:N,tabIndex:-1,"aria-hidden":!0,required:!!I||void 0,value:P(n),onChange:T,style:y},e),getListboxProps:(e={})=>(0,o.Z)({},e,{id:V,role:"listbox","aria-multiselectable":L?"true":void 0,ref:K,onMouseDown:A}),getOptionMetadata:ef,listboxRef:eg,open:eu,options:Z,value:i,highlightedOption:ed}}({buttonRef:eP,defaultOpen:H,defaultValue:U,disabled:eN,getSerializedValue:W,listboxId:K,multiple:!1,name:eT,required:ed,onChange:ea,onOpenChange:eU,open:es,value:ec}),eq=(0,o.Z)({},D,{active:eH,defaultListboxOpen:H,disabled:eG,focusVisible:eV,open:eX,renderValue:ex,value:ej,size:eI,variant:ep,color:eO}),eZ=Q(eq),eJ=(0,o.Z)({},eR,{slots:eb,slotProps:eA}),eQ=s.useMemo(()=>{var e;return null!=(e=e$(ej))?e:null},[e$,ej]),[e0,e1]=(0,k.Z)("root",{ref:eB,className:eZ.root,elementType:ee,externalForwardedProps:eJ,ownerState:eq}),[e2,e4]=(0,k.Z)("button",{additionalProps:{"aria-describedby":null!=e_?e_:null==eL?void 0:eL["aria-describedby"],"aria-label":eC,"aria-labelledby":null!=eS?eS:null==eL?void 0:eL.labelId,"aria-required":ed?"true":void 0,id:null!=ey?ey:null==eL?void 0:eL.htmlFor,name:eT},className:eZ.button,elementType:et,externalForwardedProps:eJ,getSlotProps:ez,ownerState:eq}),[e5,e6]=(0,k.Z)("listbox",{additionalProps:{ref:eF,anchorEl:eD,open:eX,placement:"bottom",keepMounted:!0},className:eZ.listbox,elementType:ei,externalForwardedProps:eJ,getSlotProps:eY,ownerState:(0,o.Z)({},eq,{nesting:!1,row:!1,wrap:!1}),getSlotOwnerState:e=>({size:e.size||eI,variant:e.variant||ep,color:e.color||(e.disablePortal?eO:ef),disableColorInversion:!e.disablePortal})}),[e3,e9]=(0,k.Z)("startDecorator",{className:eZ.startDecorator,elementType:en,externalForwardedProps:eJ,ownerState:eq}),[e7,e8]=(0,k.Z)("endDecorator",{className:eZ.endDecorator,elementType:er,externalForwardedProps:eJ,ownerState:eq}),[te,tt]=(0,k.Z)("indicator",{className:eZ.indicator,elementType:eo,externalForwardedProps:eJ,ownerState:eq}),ti=s.useMemo(()=>[...J,...e6.modifiers||[]],[e6.modifiers]),tn=null;return eD&&(tn=(0,L.jsx)(e5,(0,o.Z)({},e6,{className:(0,a.Z)(e6.className,(null==(I=e6.ownerState)?void 0:I.color)==="context"&&$.colorContext),modifiers:ti},!(null!=(w=D.slots)&&w.listbox)&&{as:u.r,slots:{root:e6.as||"ul"}},{children:(0,L.jsx)(N,{value:eW,children:(0,L.jsx)(j.Yb,{variant:ep,color:ef,children:(0,L.jsx)(x.Z.Provider,{value:"select",children:(0,L.jsx)(O.Z,{nested:!0,children:B})})})})})),e6.disablePortal||(tn=(0,L.jsx)(z.ZP.Provider,{value:void 0,children:tn}))),(0,L.jsxs)(s.Fragment,{children:[(0,L.jsxs)(e0,(0,o.Z)({},e1,{children:[em&&(0,L.jsx)(e3,(0,o.Z)({},e9,{children:em})),(0,L.jsx)(e2,(0,o.Z)({},e4,{children:eQ?ex(eQ):Y})),ev&&(0,L.jsx)(e7,(0,o.Z)({},e8,{children:ev})),eE&&(0,L.jsx)(te,(0,o.Z)({},tt,{children:eE})),(0,L.jsx)("input",(0,o.Z)({},eK()))]})),tn]})});var ea=es},61685:function(e,t,i){"use strict";i.d(t,{Z:function(){return y}});var n=i(63366),r=i(87462),o=i(67294),s=i(90512),a=i(14142),l=i(94780),h=i(20407),u=i(78653),d=i(74312),c=i(26821);function g(e){return(0,c.d6)("MuiTable",e)}(0,c.sI)("MuiTable",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","stickyHeader","stickyFooter","noWrap","hoverRow","borderAxisNone","borderAxisX","borderAxisXBetween","borderAxisY","borderAxisYBetween","borderAxisBoth","borderAxisBothBetween"]);var p=i(40911),f=i(30220),m=i(85893);let v=["className","component","children","borderAxis","hoverRow","noWrap","size","variant","color","stripe","stickyHeader","stickyFooter","slots","slotProps"],E=e=>{let{size:t,variant:i,color:n,borderAxis:r,stickyHeader:o,stickyFooter:s,noWrap:h,hoverRow:u}=e,d={root:["root",o&&"stickyHeader",s&&"stickyFooter",h&&"noWrap",u&&"hoverRow",r&&`borderAxis${(0,a.Z)(r)}`,i&&`variant${(0,a.Z)(i)}`,n&&`color${(0,a.Z)(n)}`,t&&`size${(0,a.Z)(t)}`]};return(0,l.Z)(d,g,{})},_={getColumnExceptFirst:()=>"& tr > *:not(:first-of-type), & tr > th + td, & tr > td + th",getCell:()=>"& th, & td",getHeadCell:()=>"& th",getHeaderCell:()=>"& thead th",getHeaderCellOfRow:e=>`& thead tr:nth-of-type(${e}) th`,getBottomHeaderCell:()=>"& thead th:not([colspan])",getHeaderNestedFirstColumn:()=>"& thead tr:not(:first-of-type) th:not([colspan]):first-of-type",getDataCell:()=>"& td",getDataCellExceptLastRow:()=>"& tr:not(:last-of-type) > td",getBodyCellExceptLastRow(){return`${this.getDataCellExceptLastRow()}, & tr:not(:last-of-type) > th[scope="row"]`},getBodyCellOfRow:e=>"number"==typeof e&&e<0?`& tbody tr:nth-last-of-type(${Math.abs(e)}) td, & tbody tr:nth-last-of-type(${Math.abs(e)}) th[scope="row"]`:`& tbody tr:nth-of-type(${e}) td, & tbody tr:nth-of-type(${e}) th[scope="row"]`,getBodyRow:e=>void 0===e?"& tbody tr":`& tbody tr:nth-of-type(${e})`,getFooterCell:()=>"& tfoot th, & tfoot td",getFooterFirstRowCell:()=>"& tfoot tr:not(:last-of-type) th, & tfoot tr:not(:last-of-type) td"},C=(0,d.Z)("table",{name:"JoyTable",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n,o,s,a,l,h;let u=null==(i=e.variants[t.variant])?void 0:i[t.color];return[(0,r.Z)({"--Table-headerUnderlineThickness":"2px","--TableCell-borderColor":null!=(n=null==u?void 0:u.borderColor)?n:e.vars.palette.divider,"--TableCell-headBackground":`var(--Sheet-background, ${e.vars.palette.background.surface})`},"sm"===t.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 32px)","--TableCell-paddingX":"0.25rem","--TableCell-paddingY":"0.25rem"},"md"===t.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 40px)","--TableCell-paddingX":"0.5rem","--TableCell-paddingY":"0.375rem"},"lg"===t.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 48px)","--TableCell-paddingX":"0.75rem","--TableCell-paddingY":"0.5rem"},{tableLayout:"fixed",width:"100%",borderSpacing:"0px",borderCollapse:"separate",borderRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},e.typography[`body-${({sm:"xs",md:"sm",lg:"md"})[t.size]}`],null==(o=e.variants[t.variant])?void 0:o[t.color],{"& caption":{color:e.vars.palette.text.tertiary,padding:"calc(2 * var(--TableCell-paddingY)) var(--TableCell-paddingX)"},[_.getDataCell()]:(0,r.Z)({padding:"var(--TableCell-paddingY) var(--TableCell-paddingX)",height:"var(--unstable_TableCell-height)",borderColor:"var(--TableCell-borderColor)",backgroundColor:"var(--TableCell-dataBackground)"},t.noWrap&&{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}),[_.getHeadCell()]:{textAlign:"left",padding:"var(--TableCell-paddingY) var(--TableCell-paddingX)",backgroundColor:"var(--TableCell-headBackground)",height:"var(--unstable_TableCell-height)",fontWeight:e.vars.fontWeight.lg,borderColor:"var(--TableCell-borderColor)",color:e.vars.palette.text.secondary,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},[_.getHeaderCell()]:{verticalAlign:"bottom","&:first-of-type":{borderTopLeftRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},"&:last-of-type":{borderTopRightRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"}},"& tfoot tr > *":{backgroundColor:`var(--TableCell-footBackground, ${e.vars.palette.background.level1})`,"&:first-of-type":{borderBottomLeftRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},"&:last-of-type":{borderBottomRightRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"}}}),((null==(s=t.borderAxis)?void 0:s.startsWith("x"))||(null==(a=t.borderAxis)?void 0:a.startsWith("both")))&&{[_.getHeaderCell()]:{borderBottomWidth:1,borderBottomStyle:"solid"},[_.getBottomHeaderCell()]:{borderBottomWidth:"var(--Table-headerUnderlineThickness)",borderBottomStyle:"solid"},[_.getBodyCellExceptLastRow()]:{borderBottomWidth:1,borderBottomStyle:"solid"},[_.getFooterCell()]:{borderTopWidth:1,borderTopStyle:"solid"}},((null==(l=t.borderAxis)?void 0:l.startsWith("y"))||(null==(h=t.borderAxis)?void 0:h.startsWith("both")))&&{[`${_.getColumnExceptFirst()}, ${_.getHeaderNestedFirstColumn()}`]:{borderLeftWidth:1,borderLeftStyle:"solid"}},("x"===t.borderAxis||"both"===t.borderAxis)&&{[_.getHeaderCellOfRow(1)]:{borderTopWidth:1,borderTopStyle:"solid"},[_.getBodyCellOfRow(-1)]:{borderBottomWidth:1,borderBottomStyle:"solid"},[_.getFooterCell()]:{borderBottomWidth:1,borderBottomStyle:"solid"}},("y"===t.borderAxis||"both"===t.borderAxis)&&{"& tr > *:first-of-type":{borderLeftWidth:1,borderLeftStyle:"solid"},"& tr > *:last-of-type:not(:first-of-type)":{borderRightWidth:1,borderRightStyle:"solid"}},t.stripe&&{[_.getBodyRow(t.stripe)]:{background:`var(--TableRow-stripeBackground, ${e.vars.palette.background.level2})`,color:e.vars.palette.text.primary}},t.hoverRow&&{[_.getBodyRow()]:{"&:hover":{background:`var(--TableRow-hoverBackground, ${e.vars.palette.background.level3})`}}},t.stickyHeader&&{[_.getHeaderCell()]:{position:"sticky",top:0,zIndex:e.vars.zIndex.table},[_.getHeaderCellOfRow(2)]:{top:"var(--unstable_TableCell-height)"}},t.stickyFooter&&{[_.getFooterCell()]:{position:"sticky",bottom:0,zIndex:e.vars.zIndex.table,color:e.vars.palette.text.secondary,fontWeight:e.vars.fontWeight.lg},[_.getFooterFirstRowCell()]:{bottom:"var(--unstable_TableCell-height)"}}]}),S=o.forwardRef(function(e,t){let i=(0,h.Z)({props:e,name:"JoyTable"}),{className:o,component:a,children:l,borderAxis:d="xBetween",hoverRow:c=!1,noWrap:g=!1,size:_="md",variant:S="plain",color:y="neutral",stripe:T,stickyHeader:b=!1,stickyFooter:A=!1,slots:R={},slotProps:L={}}=i,N=(0,n.Z)(i,v),{getColor:I}=(0,u.VT)(S),w=I(e.color,y),O=(0,r.Z)({},i,{borderAxis:d,hoverRow:c,noWrap:g,component:a,size:_,color:w,variant:S,stripe:T,stickyHeader:b,stickyFooter:A}),x=E(O),D=(0,r.Z)({},N,{component:a,slots:R,slotProps:L}),[M,k]=(0,f.Z)("root",{ref:t,className:(0,s.Z)(x.root,o),elementType:C,externalForwardedProps:D,ownerState:O});return(0,m.jsx)(p.eu.Provider,{value:!0,children:(0,m.jsx)(M,(0,r.Z)({},k,{children:l}))})});var y=S},40911:function(e,t,i){"use strict";i.d(t,{eu:function(){return C},ZP:function(){return L}});var n=i(63366),r=i(87462),o=i(67294),s=i(14142),a=i(18719),l=i(39707),h=i(94780),u=i(74312),d=i(20407),c=i(78653),g=i(30220),p=i(26821);function f(e){return(0,p.d6)("MuiTypography",e)}(0,p.sI)("MuiTypography",["root","h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","noWrap","gutterBottom","startDecorator","endDecorator","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var m=i(85893);let v=["color","textColor"],E=["component","gutterBottom","noWrap","level","levelMapping","children","endDecorator","startDecorator","variant","slots","slotProps"],_=o.createContext(!1),C=o.createContext(!1),S=e=>{let{gutterBottom:t,noWrap:i,level:n,color:r,variant:o}=e,a={root:["root",n,t&&"gutterBottom",i&&"noWrap",r&&`color${(0,s.Z)(r)}`,o&&`variant${(0,s.Z)(o)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,h.Z)(a,f,{})},y=(0,u.Z)("span",{name:"JoyTypography",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),T=(0,u.Z)("span",{name:"JoyTypography",slot:"endDecorator",overridesResolver:(e,t)=>t.endDecorator})({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),b=(0,u.Z)("span",{name:"JoyTypography",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n,o,s,a;let l="inherit"!==t.level?null==(i=e.typography[t.level])?void 0:i.lineHeight:"1";return(0,r.Z)({"--Icon-fontSize":`calc(1em * ${l})`},t.color&&{"--Icon-color":"currentColor"},{margin:"var(--Typography-margin, 0px)"},t.nesting?{display:"inline"}:(0,r.Z)({display:"block"},t.unstable_hasSkeleton&&{position:"relative"}),(t.startDecorator||t.endDecorator)&&(0,r.Z)({display:"flex",alignItems:"center"},t.nesting&&(0,r.Z)({display:"inline-flex"},t.startDecorator&&{verticalAlign:"bottom"})),t.level&&"inherit"!==t.level&&e.typography[t.level],{fontSize:`var(--Typography-fontSize, ${t.level&&"inherit"!==t.level&&null!=(n=null==(o=e.typography[t.level])?void 0:o.fontSize)?n:"inherit"})`},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.color&&"context"!==t.color&&{color:`rgba(${null==(s=e.vars.palette[t.color])?void 0:s.mainChannel} / 1)`},t.variant&&(0,r.Z)({borderRadius:e.vars.radius.xs,paddingBlock:"min(0.1em, 4px)",paddingInline:"0.25em"},!t.nesting&&{marginInline:"-0.25em"},null==(a=e.variants[t.variant])?void 0:a[t.color]))}),A={h1:"h1",h2:"h2",h3:"h3",h4:"h4","title-lg":"p","title-md":"p","title-sm":"p","body-lg":"p","body-md":"p","body-sm":"p","body-xs":"span",inherit:"p"},R=o.forwardRef(function(e,t){let i=(0,d.Z)({props:e,name:"JoyTypography"}),{color:s,textColor:h}=i,u=(0,n.Z)(i,v),p=o.useContext(_),f=o.useContext(C),R=(0,l.Z)((0,r.Z)({},u,{color:h})),{component:L,gutterBottom:N=!1,noWrap:I=!1,level:w="body-md",levelMapping:O=A,children:x,endDecorator:D,startDecorator:M,variant:k,slots:P={},slotProps:F={}}=R,B=(0,n.Z)(R,E),{getColor:U}=(0,c.VT)(k),H=U(e.color,k?null!=s?s:"neutral":s),V=p||f?e.level||"inherit":w,W=(0,a.Z)(x,["Skeleton"]),G=L||(p?"span":O[V]||A[V]||"span"),z=(0,r.Z)({},R,{level:V,component:G,color:H,gutterBottom:N,noWrap:I,nesting:p,variant:k,unstable_hasSkeleton:W}),Y=S(z),K=(0,r.Z)({},B,{component:G,slots:P,slotProps:F}),[$,X]=(0,g.Z)("root",{ref:t,className:Y.root,elementType:b,externalForwardedProps:K,ownerState:z}),[j,q]=(0,g.Z)("startDecorator",{className:Y.startDecorator,elementType:y,externalForwardedProps:K,ownerState:z}),[Z,J]=(0,g.Z)("endDecorator",{className:Y.endDecorator,elementType:T,externalForwardedProps:K,ownerState:z});return(0,m.jsx)(_.Provider,{value:!0,children:(0,m.jsxs)($,(0,r.Z)({},X,{children:[M&&(0,m.jsx)(j,(0,r.Z)({},q,{children:M})),W?o.cloneElement(x,{variant:x.props.variant||"inline"}):x,D&&(0,m.jsx)(Z,(0,r.Z)({},J,{children:D}))]}))})});R.muiName="Typography";var L=R},78653:function(e,t,i){"use strict";i.d(t,{VT:function(){return l},do:function(){return h}});var n=i(67294),r=i(38629),o=i(1812),s=i(85893);let a=n.createContext(void 0),l=e=>{let t=n.useContext(a);return{getColor:(i,n)=>t&&e&&t.includes(e)?i||"context":i||n}};function h({children:e,variant:t}){var i;let n=(0,r.F)();return(0,s.jsx)(a.Provider,{value:t?(null!=(i=n.colorInversionConfig)?i:o.Z.colorInversionConfig)[t]:void 0,children:e})}t.ZP=a},58859:function(e,t,i){"use strict";i.d(t,{V:function(){return r}});var n=i(87462);let r=({theme:e,ownerState:t},i)=>{let r={};return t.sx&&(function t(i){if("function"==typeof i){let n=i(e);t(n)}else Array.isArray(i)?i.forEach(e=>{"boolean"!=typeof e&&t(e)}):"object"==typeof i&&(r=(0,n.Z)({},r,i))}(t.sx),i.forEach(t=>{let i=r[t];if("string"==typeof i||"number"==typeof i){if("borderRadius"===t){if("number"==typeof i)r[t]=`${i}px`;else{var n;r[t]=(null==(n=e.vars)?void 0:n.radius[i])||i}}else -1!==["p","padding","m","margin"].indexOf(t)&&"number"==typeof i?r[t]=e.spacing(i):r[t]=i}else"function"==typeof i?r[t]=i(e):r[t]=void 0})),r}},74312:function(e,t,i){"use strict";var n=i(70182),r=i(1812),o=i(2548);let s=(0,n.ZP)({defaultTheme:r.Z,themeId:o.Z});t.Z=s},20407:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(39214),o=i(1812),s=i(2548);function a({props:e,name:t}){return(0,r.Z)({props:e,name:t,defaultTheme:(0,n.Z)({},o.Z,{components:{}}),themeId:s.Z})}},55907:function(e,t,i){"use strict";i.d(t,{Yb:function(){return a},yP:function(){return s}});var n=i(67294),r=i(85893);let o=n.createContext(void 0);function s(e,t){var i;let r,s;let a=n.useContext(o),[l,h]="string"==typeof a?a.split(":"):[],u=(i=l||void 0,r=h||void 0,s=i,"outlined"===i&&(r="neutral",s="plain"),"plain"===i&&(r="neutral"),{variant:s,color:r});return u.variant=e||u.variant,u.color=t||u.color,u}function a({children:e,color:t,variant:i}){return(0,r.jsx)(o.Provider,{value:`${i||""}:${t||""}`,children:e})}},30220:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var n=i(87462),r=i(63366),o=i(33703),s=i(71276),a=i(24407),l=i(10238),h=i(78653);let u=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],d=["component","slots","slotProps"],c=["component"],g=["disableColorInversion"];function p(e,t){let{className:i,elementType:p,ownerState:f,externalForwardedProps:m,getSlotOwnerState:v,internalForwardedProps:E}=t,_=(0,r.Z)(t,u),{component:C,slots:S={[e]:void 0},slotProps:y={[e]:void 0}}=m,T=(0,r.Z)(m,d),b=S[e]||p,A=(0,s.x)(y[e],f),R=(0,a.L)((0,n.Z)({className:i},_,{externalForwardedProps:"root"===e?T:void 0,externalSlotProps:A})),{props:{component:L},internalRef:N}=R,I=(0,r.Z)(R.props,c),w=(0,o.Z)(N,null==A?void 0:A.ref,t.ref),O=v?v(I):{},{disableColorInversion:x=!1}=O,D=(0,r.Z)(O,g),M=(0,n.Z)({},f,D),{getColor:k}=(0,h.VT)(M.variant);if("root"===e){var P;M.color=null!=(P=I.color)?P:f.color}else x||(M.color=k(I.color,M.color));let F="root"===e?L||C:L,B=(0,l.$)(b,(0,n.Z)({},"root"===e&&!C&&!S[e]&&E,"root"!==e&&!S[e]&&E,I,F&&{as:F},{ref:w}),M);return Object.keys(D).forEach(e=>{delete B[e]}),[b,B]}},39707:function(e,t,i){"use strict";i.d(t,{Z:function(){return h}});var n=i(87462),r=i(63366),o=i(59766),s=i(44920);let a=["sx"],l=e=>{var t,i;let n={systemProps:{},otherProps:{}},r=null!=(t=null==e||null==(i=e.theme)?void 0:i.unstable_sxConfig)?t:s.Z;return Object.keys(e).forEach(t=>{r[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n};function h(e){let t;let{sx:i}=e,s=(0,r.Z)(e,a),{systemProps:h,otherProps:u}=l(s);return t=Array.isArray(i)?[h,...i]:"function"==typeof i?(...e)=>{let t=i(...e);return(0,o.P)(t)?(0,n.Z)({},h,t):h}:(0,n.Z)({},h,i),(0,n.Z)({},u,{sx:t})}},2093:function(e,t,i){"use strict";var n=i(97582),r=i(67294),o=i(92770);t.Z=function(e,t){(0,r.useEffect)(function(){var t=e(),i=!1;return!function(){(0,n.mG)(this,void 0,void 0,function(){return(0,n.Jh)(this,function(e){switch(e.label){case 0:if(!(0,o.mf)(t[Symbol.asyncIterator]))return[3,4];e.label=1;case 1:return[4,t.next()];case 2:if(e.sent().done||i)return[3,3];return[3,1];case 3:return[3,6];case 4:return[4,t];case 5:e.sent(),e.label=6;case 6:return[2]}})})}(),function(){i=!0}},t)}},56645:function(e,t){!function(e){"use strict";function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=[],n=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return i}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e,t,i,n){e=e.filter(function(e,n){var r=t(e,n),o=i(e,n);return null!=r&&isFinite(r)&&null!=o&&isFinite(o)}),n&&e.sort(function(e,i){return t(e)-t(i)});for(var r,o,s,a=e.length,l=new Float64Array(a),h=new Float64Array(a),u=0,d=0,c=0;cn&&(e.splice(a+1,0,c),r=!0)}return r}(r)&&s<1e4;);return r}function a(e,t,i,n){var r=n-e*e,o=1e-24>Math.abs(r)?0:(i-e*t)/r;return[t-o*e,o]}function l(){var e,i=function(e){return e[0]},o=function(e){return e[1]};function s(s){var l=0,h=0,u=0,d=0,c=0,g=e?+e[0]:1/0,p=e?+e[1]:-1/0;n(s,i,o,function(t,i){++l,h+=(t-h)/l,u+=(i-u)/l,d+=(t*i-d)/l,c+=(t*t-c)/l,!e&&(tp&&(p=t))});var f=t(a(h,u,d,c),2),m=f[0],v=f[1],E=function(e){return v*e+m},_=[[g,E(g)],[p,E(p)]];return _.a=v,_.b=m,_.predict=E,_.rSquared=r(s,i,o,u,E),_}return s.domain=function(t){return arguments.length?(e=t,s):e},s.x=function(e){return arguments.length?(i=e,s):i},s.y=function(e){return arguments.length?(o=e,s):o},s}function h(){var e,o=function(e){return e[0]},a=function(e){return e[1]};function l(l){var h,u,d,c,g=t(i(l,o,a),4),p=g[0],f=g[1],m=g[2],v=g[3],E=p.length,_=0,C=0,S=0,y=0,T=0;for(h=0;hL&&(L=t))});var N=S-_*_,I=_*N-C*C,w=(T*_-y*C)/I,O=(y*N-T*C)/I,x=-w*_,D=function(e){return w*(e-=m)*e+O*e+x+v},M=s(R,L,D);return M.a=w,M.b=O-2*w*m,M.c=x-O*m+w*m*m+v,M.predict=D,M.rSquared=r(l,o,a,b,D),M}return l.domain=function(t){return arguments.length?(e=t,l):e},l.x=function(e){return arguments.length?(o=e,l):o},l.y=function(e){return arguments.length?(a=e,l):a},l}e.regressionExp=function(){var e,i=function(e){return e[0]},o=function(e){return e[1]};function l(l){var h=0,u=0,d=0,c=0,g=0,p=0,f=e?+e[0]:1/0,m=e?+e[1]:-1/0;n(l,i,o,function(t,i){var n=Math.log(i),r=t*i;++h,u+=(i-u)/h,c+=(r-c)/h,p+=(t*r-p)/h,d+=(i*n-d)/h,g+=(r*n-g)/h,!e&&(tm&&(m=t))});var v=t(a(c/u,d/u,g/u,p/u),2),E=v[0],_=v[1];E=Math.exp(E);var C=function(e){return E*Math.exp(_*e)},S=s(f,m,C);return S.a=E,S.b=_,S.predict=C,S.rSquared=r(l,i,o,u,C),S}return l.domain=function(t){return arguments.length?(e=t,l):e},l.x=function(e){return arguments.length?(i=e,l):i},l.y=function(e){return arguments.length?(o=e,l):o},l},e.regressionLinear=l,e.regressionLoess=function(){var e=function(e){return e[0]},n=function(e){return e[1]},r=.3;function o(o){for(var s=t(i(o,e,n,!0),4),l=s[0],h=s[1],u=s[2],d=s[3],c=l.length,g=Math.max(2,~~(r*c)),p=new Float64Array(c),f=new Float64Array(c),m=new Float64Array(c).fill(1),v=-1;++v<=2;){for(var E=[0,g-1],_=0;_l[y]-C?S:y,b=0,A=0,R=0,L=0,N=0,I=1/Math.abs(l[T]-C||1),w=S;w<=y;++w){var O,x=l[w],D=h[w],M=(O=1-(O=Math.abs(C-x)*I)*O*O)*O*O*m[w],k=x*M;b+=M,A+=k,R+=D*M,L+=D*k,N+=x*k}var P=t(a(A/b,R/b,L/b,N/b),2),F=P[0],B=P[1];p[_]=F+B*C,f[_]=Math.abs(h[_]-p[_]),function(e,t,i){var n=e[t],r=i[0],o=i[1]+1;if(!(o>=e.length))for(;t>r&&e[o]-n<=n-e[r];)i[0]=++r,i[1]=o,++o}(l,_+1,E)}if(2===v)break;var U=function(e){e.sort(function(e,t){return e-t});var t=e.length/2;return t%1==0?(e[t-1]+e[t])/2:e[Math.floor(t)]}(f);if(1e-12>Math.abs(U))break;for(var H,V,W=0;W=1?1e-12:(V=1-H*H)*V}return function(e,t,i,n){for(var r,o=e.length,s=[],a=0,l=0,h=[];am&&(m=t))});var E=t(a(d,c,g,p),2),_=E[0],C=E[1],S=function(e){return C*Math.log(e)/v+_},y=s(f,m,S);return y.a=C,y.b=_,y.predict=S,y.rSquared=r(h,i,o,c,S),y}return h.domain=function(t){return arguments.length?(e=t,h):e},h.x=function(e){return arguments.length?(i=e,h):i},h.y=function(e){return arguments.length?(o=e,h):o},h.base=function(e){return arguments.length?(l=e,h):l},h},e.regressionPoly=function(){var e,o=function(e){return e[0]},a=function(e){return e[1]},u=3;function d(d){if(1===u){var c,g,p,f,m,v=l().x(o).y(a).domain(e)(d);return v.coefficients=[v.b,v.a],delete v.a,delete v.b,v}if(2===u){var E=h().x(o).y(a).domain(e)(d);return E.coefficients=[E.c,E.b,E.a],delete E.a,delete E.b,delete E.c,E}var _=t(i(d,o,a),4),C=_[0],S=_[1],y=_[2],T=_[3],b=C.length,A=[],R=[],L=u+1,N=0,I=0,w=e?+e[0]:1/0,O=e?+e[1]:-1/0;for(n(d,o,a,function(t,i){++I,N+=(i-N)/I,!e&&(tO&&(O=t))}),c=0;cMath.abs(e[t][r])&&(r=i);for(n=t;n=t;n--)e[n][i]-=e[n][t]*e[t][i]/e[t][t]}for(i=s-1;i>=0;--i){for(o=0,n=i+1;n=0;--r)for(s=t[r],a=1,l[r]+=s,o=1;o<=r;++o)a*=(r+1-o)/o,l[r-o]+=s*Math.pow(i,o)*a;return l[0]+=n,l}(L,x,-y,T),M.predict=D,M.rSquared=r(d,o,a,N,D),M}return d.domain=function(t){return arguments.length?(e=t,d):e},d.x=function(e){return arguments.length?(o=e,d):o},d.y=function(e){return arguments.length?(a=e,d):a},d.order=function(e){return arguments.length?(u=e,d):u},d},e.regressionPow=function(){var e,i=function(e){return e[0]},o=function(e){return e[1]};function l(l){var h=0,u=0,d=0,c=0,g=0,p=0,f=e?+e[0]:1/0,m=e?+e[1]:-1/0;n(l,i,o,function(t,i){var n=Math.log(t),r=Math.log(i);++h,u+=(n-u)/h,d+=(r-d)/h,c+=(n*r-c)/h,g+=(n*n-g)/h,p+=(i-p)/h,!e&&(tm&&(m=t))});var v=t(a(u,d,c,g),2),E=v[0],_=v[1];E=Math.exp(E);var C=function(e){return E*Math.pow(e,_)},S=s(f,m,C);return S.a=E,S.b=_,S.predict=C,S.rSquared=r(l,i,o,p,C),S}return l.domain=function(t){return arguments.length?(e=t,l):e},l.x=function(e){return arguments.length?(i=e,l):i},l.y=function(e){return arguments.length?(o=e,l):o},l},e.regressionQuad=h,Object.defineProperty(e,"__esModule",{value:!0})}(t)},43631:function(e,t,i){"use strict";i.d(t,{qY:function(){return g}});var n=i(83454),r=function(e,t,i){if(i||2==arguments.length)for(var n,r=0,o=t.length;rh+a*s*u||d>=f)p=s;else{if(Math.abs(g)<=-l*u)return s;g*(p-c)>=0&&(p=c),c=s,f=d}return 0}s=s||1,a=a||1e-6,l=l||.1;for(var m=0;m<10;++m){if(o(r.x,1,n.x,s,t),d=r.fx=e(r.x,r.fxprime),g=i(r.fxprime,t),d>h+a*s*u||m&&d>=c)return f(p,s,c);if(Math.abs(g)<=-l*u)break;if(g>=0)return f(s,p,d);c=d,p=s,s*=2}return s}e.bisect=function(e,t,i,n){var r=(n=n||{}).maxIterations||100,o=n.tolerance||1e-10,s=e(t),a=e(i),l=i-t;if(s*a>0)throw"Initial bisect points must have opposite signs";if(0===s)return t;if(0===a)return i;for(var h=0;h=0&&(t=u),Math.abs(l)=f[p-1].fx){var N=!1;if(S.fx>L.fx?(o(y,1+c,C,-c,L),y.fx=e(y),y.fx=1)break;for(m=1;m=n(d.fxprime))break}return a.history&&a.history.push({x:d.x.slice(),fx:d.fx,fxprime:d.fxprime.slice(),alpha:p}),d},e.gradientDescent=function(e,t,i){for(var r=(i=i||{}).maxIterations||100*t.length,s=i.learnRate||.001,a={x:t.slice(),fx:0,fxprime:t.slice()},l=0;l=n(a.fxprime)));++l);return a},e.gradientDescentLineSearch=function(e,t,i){i=i||{};var o,a={x:t.slice(),fx:0,fxprime:t.slice()},l={x:t.slice(),fx:0,fxprime:t.slice()},h=i.maxIterations||100*t.length,u=i.learnRate||1,d=t.slice(),c=i.c1||.001,g=i.c2||.1,p=[];if(i.history){var f=e;e=function(e,t){return p.push(e.slice()),f(e,t)}}a.fx=e(a.x,a.fxprime);for(var m=0;mn(a.fxprime)));++m);return a},e.zeros=t,e.zerosM=function(e,i){return t(e).map(function(){return t(i)})},e.norm2=n,e.weightedSum=o,e.scale=r}(t)},49685:function(e,t,i){"use strict";i.d(t,{WT:function(){return n}});var n="undefined"!=typeof Float32Array?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)})},35600:function(e,t,i){"use strict";function n(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=t[4],a=t[5],l=t[6],h=t[7],u=t[8],d=u*s-a*h,c=-u*o+a*l,g=h*o-s*l,p=i*d+n*c+r*g;return p?(p=1/p,e[0]=d*p,e[1]=(-u*n+r*h)*p,e[2]=(a*n-r*s)*p,e[3]=c*p,e[4]=(u*i-r*l)*p,e[5]=(-a*i+r*o)*p,e[6]=g*p,e[7]=(-h*i+n*l)*p,e[8]=(s*i-n*o)*p,e):null}function r(e,t,i){var n=t[0],r=t[1],o=t[2],s=t[3],a=t[4],l=t[5],h=t[6],u=t[7],d=t[8],c=i[0],g=i[1],p=i[2],f=i[3],m=i[4],v=i[5],E=i[6],_=i[7],C=i[8];return e[0]=c*n+g*s+p*h,e[1]=c*r+g*a+p*u,e[2]=c*o+g*l+p*d,e[3]=f*n+m*s+v*h,e[4]=f*r+m*a+v*u,e[5]=f*o+m*l+v*d,e[6]=E*n+_*s+C*h,e[7]=E*r+_*a+C*u,e[8]=E*o+_*l+C*d,e}function o(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=t[0],e[7]=t[1],e[8]=1,e}function s(e,t){var i=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=i,e[2]=0,e[3]=-i,e[4]=n,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function a(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=t[1],e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}i.d(t,{Jp:function(){return r},U_:function(){return n},Us:function(){return s},vc:function(){return o},xJ:function(){return a}})},31437:function(e,t,i){"use strict";i.d(t,{$X:function(){return s},AK:function(){return g},EU:function(){return f},Fp:function(){return l},Fv:function(){return c},I6:function(){return m},IH:function(){return o},TE:function(){return u},VV:function(){return a},bA:function(){return h},kE:function(){return d},kK:function(){return p},lu:function(){return v}});var n,r=i(49685);function o(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e}function s(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e}function a(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e}function l(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e}function h(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e}function u(e,t){return Math.hypot(t[0]-e[0],t[1]-e[1])}function d(e){return Math.hypot(e[0],e[1])}function c(e,t){var i=t[0],n=t[1],r=i*i+n*n;return r>0&&(r=1/Math.sqrt(r)),e[0]=t[0]*r,e[1]=t[1]*r,e}function g(e,t){return e[0]*t[0]+e[1]*t[1]}function p(e,t,i){var n=t[0],r=t[1];return e[0]=i[0]*n+i[3]*r+i[6],e[1]=i[1]*n+i[4]*r+i[7],e}function f(e,t){var i=e[0],n=e[1],r=t[0],o=t[1],s=Math.sqrt(i*i+n*n)*Math.sqrt(r*r+o*o);return Math.acos(Math.min(Math.max(s&&(i*r+n*o)/s,-1),1))}function m(e,t){return e[0]===t[0]&&e[1]===t[1]}var v=s;n=new r.WT(2),r.WT!=Float32Array&&(n[0]=0,n[1]=0)},9488:function(e,t,i){"use strict";var n,r;function o(e,t=0){return e[e.length-(1+t)]}function s(e){if(0===e.length)throw Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function a(e,t,i=(e,t)=>e===t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0,r=e.length;n0))return e;n=e-1}}return-(i+1)}(e.length,n=>i(e[n],t))}function u(e){return e.filter(e=>!!e)}function d(e){return!Array.isArray(e)||0===e.length}function c(e){return Array.isArray(e)&&e.length>0}function g(e,t=e=>e){let i=new Set;return e.filter(e=>{let n=t(e);return!i.has(n)&&(i.add(n),!0)})}function p(e,t){let i=function(e,t){for(let i=e.length-1;i>=0;i--){let n=e[i];if(t(n))return i}return -1}(e,t);if(-1!==i)return e[i]}function f(e,t){return e.length>0?e[0]:t}function m(e,t){let i="number"==typeof t?e:0;"number"==typeof t?i=e:(i=0,t=e);let n=[];if(i<=t)for(let e=i;et;e--)n.push(e);return n}function v(e,t,i){let n=e.slice(0,t),r=e.slice(t);return n.concat(i,r)}function E(e,t){let i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function _(e,t){let i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function C(e,t){for(let i of t)e.push(i)}function S(e,t,i,n){let r=y(e,t),o=e.splice(r,i);return!function(e,t,i){let n=y(e,t),r=e.length,o=i.length;e.length=r+o;for(let t=r-1;t>=n;t--)e[t+o]=e[t];for(let t=0;tt(e(i),e(n))}function b(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n=0&&(i=r)}return i}function A(e,t){return function(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n0&&(i=r)}return i}(e,(e,i)=>-t(e,i))}i.d(t,{EB:function(){return g},Gb:function(){return o},H9:function(){return R},JH:function(){return s},LS:function(){return l},Of:function(){return c},VJ:function(){return A},W$:function(){return L},XY:function(){return d},Xh:function(){return f},Zv:function(){return v},al:function(){return _},dF:function(){return p},db:function(){return S},fS:function(){return a},jV:function(){return b},kX:function(){return u},ry:function(){return h},tT:function(){return T},vA:function(){return C},w6:function(){return m},zI:function(){return E}}),(r=n||(n={})).isLessThan=function(e){return e<0},r.isGreaterThan=function(e){return e>0},r.isNeitherLessOrGreaterThan=function(e){return 0===e},r.greaterThan=1,r.lessThan=-1,r.neitherLessOrGreaterThan=0;class R{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;let i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){let e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){let t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class L{constructor(e){this.iterate=e}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new L(t=>this.iterate(i=>!e(i)||t(i)))}map(e){return new L(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t;let i=!0;return this.iterate(r=>((i||n.isGreaterThan(e(r,t)))&&(i=!1,t=r),!0)),t}}L.empty=new L(e=>{})},53725:function(e,t,i){"use strict";var n;i.d(t,{$:function(){return n}}),function(e){function t(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]}e.is=t;let i=Object.freeze([]);function*n(e){yield e}e.empty=function(){return i},e.single=n,e.wrap=function(e){return t(e)?e:n(e)},e.from=function(e){return e||i},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(let i of e)if(t(i))return!0;return!1},e.find=function(e,t){for(let i of e)if(t(i))return i},e.filter=function*(e,t){for(let i of e)t(i)&&(yield i)},e.map=function*(e,t){let i=0;for(let n of e)yield t(n,i++)},e.concat=function*(...e){for(let t of e)for(let e of t)yield e},e.reduce=function(e,t,i){let n=i;for(let i of e)n=t(n,i);return n},e.slice=function*(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);tr}]}}(n||(n={}))},91741:function(e,t,i){"use strict";i.d(t,{S:function(){return r}});class n{constructor(e){this.element=e,this.next=n.Undefined,this.prev=n.Undefined}}n.Undefined=new n(void 0);class r{constructor(){this._first=n.Undefined,this._last=n.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===n.Undefined}clear(){let e=this._first;for(;e!==n.Undefined;){let t=e.next;e.prev=n.Undefined,e.next=n.Undefined,e=t}this._first=n.Undefined,this._last=n.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let i=new n(e);if(this._first===n.Undefined)this._first=i,this._last=i;else if(t){let e=this._last;this._last=i,i.prev=e,e.next=i}else{let e=this._first;this._first=i,i.next=e,e.prev=i}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(i))}}shift(){if(this._first!==n.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==n.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==n.Undefined&&e.next!==n.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===n.Undefined&&e.next===n.Undefined?(this._first=n.Undefined,this._last=n.Undefined):e.next===n.Undefined?(this._last=this._last.prev,this._last.next=n.Undefined):e.prev===n.Undefined&&(this._first=this._first.next,this._first.prev=n.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==n.Undefined;)yield e.element,e=e.next}}},36248:function(e,t,i){"use strict";i.d(t,{$E:function(){return a},I8:function(){return function e(t){if(!t||"object"!=typeof t||t instanceof RegExp)return t;let i=Array.isArray(t)?[]:{};return Object.entries(t).forEach(([t,n])=>{i[t]=n&&"object"==typeof n?e(n):n}),i}},IU:function(){return l},_A:function(){return r},fS:function(){return function e(t,i){let n,r;if(t===i)return!0;if(null==t||null==i||typeof t!=typeof i||"object"!=typeof t||Array.isArray(t)!==Array.isArray(i))return!1;if(Array.isArray(t)){if(t.length!==i.length)return!1;for(n=0;n{o in t?r&&((0,n.Kn)(t[o])&&(0,n.Kn)(i[o])?e(t[o],i[o],r):t[o]=i[o]):t[o]=i[o]}),t):i}},rs:function(){return s}});var n=i(98401);function r(e){if(!e||"object"!=typeof e)return e;let t=[e];for(;t.length>0;){let e=t.shift();for(let i in Object.freeze(e),e)if(o.call(e,i)){let r=e[i];"object"!=typeof r||Object.isFrozen(r)||(0,n.fU)(r)||t.push(r)}}return e}let o=Object.prototype.hasOwnProperty;function s(e,t){return function e(t,i,r){if((0,n.Jp)(t))return t;let s=i(t);if(void 0!==s)return s;if(Array.isArray(t)){let n=[];for(let o of t)n.push(e(o,i,r));return n}if((0,n.Kn)(t)){if(r.has(t))throw Error("Cannot clone recursive data-structure");r.add(t);let n={};for(let s in t)o.call(t,s)&&(n[s]=e(t[s],i,r));return r.delete(t),n}return t}(e,t,new Set)}function a(e){let t=[];for(let i of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"==typeof e[i]&&t.push(i);return t}function l(e,t){let i=e=>function(){let i=Array.prototype.slice.call(arguments,0);return t(e,i)},n={};for(let t of e)n[t]=i(t);return n}},1432:function(e,t,i){"use strict";let n,r;i.d(t,{$L:function(){return y},ED:function(){return E},G6:function(){return k},IJ:function(){return C},OS:function(){return I},dz:function(){return _},fn:function(){return N},gn:function(){return b},i7:function(){return D},li:function(){return f},n2:function(){return T},r:function(){return x},tY:function(){return S},tq:function(){return A},un:function(){return P},vU:function(){return M}});var o,s=i(63580),a=i(83454);let l=!1,h=!1,u=!1,d=!1,c=!1,g=!1,p=!1,f="object"==typeof self?self:"object"==typeof i.g?i.g:{};void 0!==f.vscode&&void 0!==f.vscode.process?r=f.vscode.process:void 0!==a&&(r=a);let m="string"==typeof(null===(o=null==r?void 0:r.versions)||void 0===o?void 0:o.electron),v=m&&(null==r?void 0:r.type)==="renderer";if("object"!=typeof navigator||v){if("object"==typeof r){l="win32"===r.platform,h="darwin"===r.platform,(u="linux"===r.platform)&&r.env.SNAP&&r.env.SNAP_REVISION,r.env.CI||r.env.BUILD_ARTIFACTSTAGINGDIRECTORY;let e=r.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);t.availableLanguages["*"],t.locale,t.osLocale,t._translationsConfigFile}catch(e){}d=!0}else console.error("Unable to resolve platform.")}else l=(n=navigator.userAgent).indexOf("Windows")>=0,h=n.indexOf("Macintosh")>=0,g=(n.indexOf("Macintosh")>=0||n.indexOf("iPad")>=0||n.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,u=n.indexOf("Linux")>=0,p=(null==n?void 0:n.indexOf("Mobi"))>=0,c=!0,s.aj(s.NC({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_")),navigator.language;let E=l,_=h,C=u,S=d,y=c,T=c&&"function"==typeof f.importScripts,b=g,A=p,R=n,L="function"==typeof f.postMessage&&!f.importScripts,N=(()=>{if(L){let e=[];f.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=e.length;i{let n=++t;e.push({id:n,callback:i}),f.postMessage({vscodeScheduleAsyncWork:n},"*")}}return e=>setTimeout(e)})(),I=h||g?2:l?1:3,w=!0,O=!1;function x(){if(!O){O=!0;let e=new Uint8Array(2);e[0]=1,e[1]=2;let t=new Uint16Array(e.buffer);w=513===t[0]}return w}let D=!!(R&&R.indexOf("Chrome")>=0),M=!!(R&&R.indexOf("Firefox")>=0),k=!!(!D&&R&&R.indexOf("Safari")>=0),P=!!(R&&R.indexOf("Edg/")>=0);R&&R.indexOf("Android")},98401:function(e,t,i){"use strict";function n(e){return"string"==typeof e}function r(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function o(e){let t=Object.getPrototypeOf(Uint8Array);return"object"==typeof e&&e instanceof t}function s(e){return"number"==typeof e&&!isNaN(e)}function a(e){return!!e&&"function"==typeof e[Symbol.iterator]}function l(e){return!0===e||!1===e}function h(e){return void 0===e}function u(e){return!d(e)}function d(e){return h(e)||null===e}function c(e,t){if(!e)throw Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function g(e){if(d(e))throw Error("Assertion Failed: argument is undefined or null");return e}function p(e){return"function"==typeof e}function f(e,t){let i=Math.min(e.length,t.length);for(let r=0;rs.maxLen){let n=t-s.maxLen/2;return n<0?n=0:o+=n,r=r.substring(n,t+s.maxLen/2),e(t,i,r,o,s)}let a=Date.now(),h=t-1-o,u=-1,d=null;for(let e=1;!(Date.now()-a>=s.timeBudget);e++){let t=h-s.windowSize*e;i.lastIndex=Math.max(0,t);let n=function(e,t,i,n){let r;for(;r=e.exec(t);){let t=r.index||0;if(t<=i&&e.lastIndex>=i)return r;if(n>0&&t>n)break}return null}(i,r,h,u);if(!n&&d||(d=n,t<=0))break;u=t}if(d){let e={word:d[0],startColumn:o+1+d.index,endColumn:o+1+d.index+d[0].length};return i.lastIndex=0,e}return null}},vu:function(){return o}});var n=i(53725),r=i(91741);let o="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",s=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(let i of o)e.indexOf(i)>=0||(t+="\\"+i);return RegExp(t+="\\s]+)","g")}();function a(e){let t=s;if(e&&e instanceof RegExp){if(e.global)t=e;else{let i="g";e.ignoreCase&&(i+="i"),e.multiline&&(i+="m"),e.unicode&&(i+="u"),t=new RegExp(e.source,i)}}return t.lastIndex=0,t}let l=new r.S;l.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},77119:function(e,t,i){"use strict";let n,r,o,s,a,l,h,u,d,c,g,p,f,m,v,E,_,C;i.r(t),i.d(t,{CancellationTokenSource:function(){return k1},Emitter:function(){return k2},KeyCode:function(){return k4},KeyMod:function(){return k5},MarkerSeverity:function(){return k8},MarkerTag:function(){return Pe},Position:function(){return k6},Range:function(){return k3},Selection:function(){return k9},SelectionDirection:function(){return k7},Token:function(){return Pi},Uri:function(){return Pt},editor:function(){return Pn},languages:function(){return Pr}});var S,y,T,b,A,R,L,N,I,w,O,x,D,M,k,P,F,B,U,H,V,W,G,z,Y,K,$,X,j,q,Z,J,Q,ee,et,ei,en,er,eo,es,ea,el,eh,eu,ed,ec,eg,ep,ef,em,ev,eE,e_,eC,eS,ey,eT,eb,eA,eR,eL,eN,eI,ew,eO,ex,eD,eM,ek,eP,eF,eB,eU,eH,eV,eW,eG,ez,eY,eK,e$,eX,ej,eq,eZ,eJ,eQ,e0,e1,e2,e4,e5,e6,e3,e9,e7,e8,te,tt,ti,tn,tr,to,ts,ta,tl,th,tu,td,tc,tg,tp,tf,tm,tv,tE,t_,tC,tS,ty,tT,tb,tA,tR,tL,tN,tI,tw,tO,tx,tD,tM,tk,tP,tF,tB,tU,tH,tV,tW,tG,tz,tY,tK,t$,tX,tj,tq,tZ,tJ,tQ,t0,t1,t2,t4,t5,t6,t3,t9,t7,t8,ie,it,ii,ir,io,is,ia,il,ih,iu,id,ic,ig,ip,im,iv,iE,i_,iC,iS,iy,iT,ib,iA,iR,iL,iN,iI,iw,iO,ix,iD,iM,ik,iP,iF,iB,iU,iH,iV,iW,iG,iz,iY,iK,i$,iX,ij,iq,iZ,iJ,iQ=i(64141);let i0=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack){if(ne.isErrorNoTelemetry(e))throw new ne(e.message+"\n\n"+e.stack);throw Error(e.message+"\n\n"+e.stack)}throw e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function i1(e){i6(e)||i0.onUnexpectedError(e)}function i2(e){i6(e)||i0.onUnexpectedExternalError(e)}function i4(e){if(e instanceof Error){let{name:t,message:i}=e,n=e.stacktrace||e.stack;return{$isError:!0,name:t,message:i,stack:n,noTelemetry:ne.isErrorNoTelemetry(e)}}return e}let i5="Canceled";function i6(e){return e instanceof i3||e instanceof Error&&e.name===i5&&e.message===i5}class i3 extends Error{constructor(){super(i5),this.name=this.message}}function i9(e){return e?Error(`Illegal argument: ${e}`):Error("Illegal argument")}function i7(e){return e?Error(`Illegal state: ${e}`):Error("Illegal state")}class i8 extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class ne extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof ne)return e;let t=new ne;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class nt extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,nt.prototype)}}function ni(e){let t;let i=this,n=!1;return function(){return n?t:(n=!0,t=e.apply(i,arguments))}}var nn=i(53725);function nr(e){return e}function no(e){}function ns(e,t){}function na(e){return e}function nl(e){if(nn.$.is(e)){let t=[];for(let i of e)if(i)try{i.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function nh(...e){let t=nu(()=>nl(e));return t}function nu(e){let t={dispose:ni(()=>{e()})};return t}class nd{constructor(){var e;this._toDispose=new Set,this._isDisposed=!1,e=this}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{nl(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw Error("Cannot register a disposable on itself!");return this._isDisposed?nd.DISABLE_DISPOSED_WARNING||console.warn(Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}nd.DISABLE_DISPOSED_WARNING=!1;class nc{constructor(){var e;this._store=new nd,e=this,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw Error("Cannot register a disposable on itself!");return this._store.add(e)}}nc.None=Object.freeze({dispose(){}});class ng{constructor(){var e;this._isDisposed=!1,e=this}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}}class np{constructor(e){this.object=e}dispose(){}}class nf{constructor(){var e;this._store=new Map,this._isDisposed=!1,e=this}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{nl(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){var n;this._isDisposed&&console.warn(Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||null===(n=this._store.get(e))||void 0===n||n.dispose(),this._store.set(e,t)}deleteAndDispose(e){var t;null===(t=this._store.get(e))||void 0===t||t.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}var nm=i(91741);let nv=globalThis.performance&&"function"==typeof globalThis.performance.now;class nE{static create(e){return new nE(e)}constructor(e){this._now=nv&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return -1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}!function(e){function t(e){return(t,i=null,n)=>{let r,o=!1;return r=e(e=>o?void 0:(r?r.dispose():o=!0,t.call(i,e)),null,n),o&&r.dispose(),r}}function i(e,t,i){return s((i,n=null,r)=>e(e=>i.call(n,t(e)),null,r),i)}function n(e,t,i){return s((i,n=null,r)=>e(e=>{t(e),i.call(n,e)},null,r),i)}function r(e,t,i){return s((i,n=null,r)=>e(e=>t(e)&&i.call(n,e),null,r),i)}function o(e,t,n,r){let o=n;return i(e,e=>o=t(o,e),r)}function s(e,t){let i;let n=new nT({onWillAddFirstListener(){i=e(n.fire,n)},onDidRemoveLastListener(){null==i||i.dispose()}});return null==t||t.add(n),n.event}function a(e,t,i=100,n=!1,r=!1,o,s){let a,l,h,u;let d=0,c=new nT({leakWarningThreshold:o,onWillAddFirstListener(){a=e(e=>{d++,h=t(h,e),n&&!u&&(c.fire(h),h=void 0),l=()=>{let e=h;h=void 0,u=void 0,(!n||d>1)&&c.fire(e),d=0},"number"==typeof i?(clearTimeout(u),u=setTimeout(l,i)):void 0===u&&(u=0,queueMicrotask(l))})},onWillRemoveListener(){r&&d>0&&(null==l||l())},onDidRemoveLastListener(){l=void 0,a.dispose()}});return null==s||s.add(c),c.event}function l(e,t=(e,t)=>e===t,i){let n,o=!0;return r(e,e=>{let i=o||!t(e,n);return o=!1,n=e,i},i)}e.None=()=>nc.None,e.defer=function(e,t){return a(e,()=>void 0,0,void 0,!0,void 0,t)},e.once=t,e.map=i,e.forEach=n,e.filter=r,e.signal=function(e){return e},e.any=function(...e){return(t,i=null,n)=>nh(...e.map(e=>e(e=>t.call(i,e),null,n)))},e.reduce=o,e.debounce=a,e.accumulate=function(t,i=0,n){return e.debounce(t,(e,t)=>e?(e.push(t),e):[t],i,void 0,!0,void 0,n)},e.latch=l,e.split=function(t,i,n){return[e.filter(t,i,n),e.filter(t,e=>!i(e),n)]},e.buffer=function(e,t=!1,i=[]){let n=i.slice(),r=e(e=>{n?n.push(e):s.fire(e)}),o=()=>{null==n||n.forEach(e=>s.fire(e)),n=null},s=new nT({onWillAddFirstListener(){r||(r=e(e=>s.fire(e)))},onDidAddFirstListener(){n&&(t?setTimeout(o):o())},onDidRemoveLastListener(){r&&r.dispose(),r=null}});return s.event};class h{constructor(e){this.event=e,this.disposables=new nd}map(e){return new h(i(this.event,e,this.disposables))}forEach(e){return new h(n(this.event,e,this.disposables))}filter(e){return new h(r(this.event,e,this.disposables))}reduce(e,t){return new h(o(this.event,e,t,this.disposables))}latch(){return new h(l(this.event,void 0,this.disposables))}debounce(e,t=100,i=!1,n=!1,r){return new h(a(this.event,e,t,i,n,r,this.disposables))}on(e,t,i){return this.event(e,t,i)}once(e,i,n){return t(this.event)(e,i,n)}dispose(){this.disposables.dispose()}}e.chain=function(e){return new h(e)},e.fromNodeEventEmitter=function(e,t,i=e=>e){let n=(...e)=>r.fire(i(...e)),r=new nT({onWillAddFirstListener:()=>e.on(t,n),onDidRemoveLastListener:()=>e.removeListener(t,n)});return r.event},e.fromDOMEventEmitter=function(e,t,i=e=>e){let n=(...e)=>r.fire(i(...e)),r=new nT({onWillAddFirstListener:()=>e.addEventListener(t,n),onDidRemoveLastListener:()=>e.removeEventListener(t,n)});return r.event},e.toPromise=function(e){return new Promise(i=>t(e)(i))},e.runAndSubscribe=function(e,t){return t(void 0),e(e=>t(e))},e.runAndSubscribeWithStore=function(e,t){let i=null;function n(e){null==i||i.dispose(),t(e,i=new nd)}n(void 0);let r=e(e=>n(e));return nu(()=>{r.dispose(),null==i||i.dispose()})};class u{constructor(e,t){this._observable=e,this._counter=0,this._hasChanged=!1;this.emitter=new nT({onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}}),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){let i=new u(e,t);return i.emitter.event},e.fromObservableLight=function(e){return t=>{let i=0,n=!1,r={beginUpdate(){i++},endUpdate(){0==--i&&(e.reportChanges(),n&&(n=!1,t()))},handlePossibleChange(){},handleChange(){n=!0}};return e.addObserver(r),e.reportChanges(),{dispose(){e.removeObserver(r)}}}}}(e7||(e7={}));class n_{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${n_._idPool++}`,n_.all.add(this)}start(e){this._stopWatch=new nE,this.listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}n_.all=new Set,n_._idPool=0;class nC{constructor(e,t=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=t,this._warnCountdown=0}dispose(){var e;null===(e=this._stacks)||void 0===e||e.clear()}check(e,t){let i=this.threshold;if(i<=0||t{let t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}}class nS{static create(){var e;return new nS(null!==(e=Error().stack)&&void 0!==e?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class ny{constructor(e){this.value=e}}class nT{constructor(e){var t,i,n,r,o;this._size=0,this._options=e,this._leakageMon=(null===(t=this._options)||void 0===t?void 0:t.leakWarningThreshold)?new nC(null!==(n=null===(i=this._options)||void 0===i?void 0:i.leakWarningThreshold)&&void 0!==n?n:-1):void 0,this._perfMon=(null===(r=this._options)||void 0===r?void 0:r._profName)?new n_(this._options._profName):void 0,this._deliveryQueue=null===(o=this._options)||void 0===o?void 0:o.deliveryQueue}dispose(){var e,t,i,n;this._disposed||(this._disposed=!0,(null===(e=this._deliveryQueue)||void 0===e?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),null===(i=null===(t=this._options)||void 0===t?void 0:t.onDidRemoveLastListener)||void 0===i||i.call(t),null===(n=this._leakageMon)||void 0===n||n.dispose())}get event(){var e;return null!==(e=this._event)&&void 0!==e||(this._event=(e,t,i)=>{var n,r,o,s,a;let l;if(this._leakageMon&&this._size>3*this._leakageMon.threshold)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),nc.None;if(this._disposed)return nc.None;t&&(e=e.bind(t));let h=new ny(e);this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(h.stack=nS.create(),l=this._leakageMon.check(h.stack,this._size+1)),this._listeners?this._listeners instanceof ny?(null!==(a=this._deliveryQueue)&&void 0!==a||(this._deliveryQueue=new nA),this._listeners=[this._listeners,h]):this._listeners.push(h):(null===(r=null===(n=this._options)||void 0===n?void 0:n.onWillAddFirstListener)||void 0===r||r.call(n,this),this._listeners=h,null===(s=null===(o=this._options)||void 0===o?void 0:o.onDidAddFirstListener)||void 0===s||s.call(o,this)),this._size++;let u=nu(()=>{null==l||l(),this._removeListener(h)});return i instanceof nd?i.add(u):Array.isArray(i)&&i.push(u),u}),this._event}_removeListener(e){var t,i,n,r;if(null===(i=null===(t=this._options)||void 0===t?void 0:t.onWillRemoveListener)||void 0===i||i.call(t,this),!this._listeners)return;if(1===this._size){this._listeners=void 0,null===(r=null===(n=this._options)||void 0===n?void 0:n.onDidRemoveLastListener)||void 0===r||r.call(n,this),this._size=0;return}let o=this._listeners,s=o.indexOf(e);if(-1===s)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),Error("Attempted to dispose unknown listener");this._size--,o[s]=void 0;let a=this._deliveryQueue.current===this;if(2*this._size<=o.length){let e=0;for(let t=0;t0}}let nb=()=>new nA;class nA{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class nR extends nT{constructor(e){super(e),this._isPaused=0,this._eventQueue=new nm.S,this._mergeFn=null==e?void 0:e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused){if(this._mergeFn){if(this._eventQueue.size>0){let e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}}fire(e){this._size&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class nL extends nR{constructor(e){var t;super(e),this._delay=null!==(t=e.delay)&&void 0!==t?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class nN extends nT{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=null==e?void 0:e.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),1===this._queuedEvents.length&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(e=>super.fire(e)),this._queuedEvents=[]}))}}class nI{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,n)=>e(e=>{let n=this.buffers[this.buffers.length-1];n?n.push(()=>t.call(i,e)):t.call(i,e)},void 0,n)}bufferEvents(e){let t=[];this.buffers.push(t);let i=e();return this.buffers.pop(),t.forEach(e=>e()),i}}class nw{constructor(){this.listening=!1,this.inputEvent=e7.None,this.inputEventListener=nc.None,this.emitter=new nT({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}let nO=Object.freeze(function(e,t){let i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}});(y=e8||(e8={})).isCancellationToken=function(e){return e===y.None||e===y.Cancelled||e instanceof nx||!!e&&"object"==typeof e&&"boolean"==typeof e.isCancellationRequested&&"function"==typeof e.onCancellationRequested},y.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:e7.None}),y.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:nO});class nx{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){!this._isCancelled&&(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?nO:(this._emitter||(this._emitter=new nT),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class nD{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new nx),this._token}cancel(){this._token?this._token instanceof nx&&this._token.cancel():this._token=e8.Cancelled}dispose(e=!1){var t;e&&this.cancel(),null===(t=this._parentListener)||void 0===t||t.dispose(),this._token?this._token instanceof nx&&this._token.dispose():this._token=e8.None}}class nM{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}let nk=new nM,nP=new nM,nF=new nM,nB=Array(230),nU={},nH=[],nV=Object.create(null),nW=Object.create(null),nG=[],nz=[];for(let e=0;e<=193;e++)nG[e]=-1;for(let e=0;e<=132;e++)nz[e]=-1;!function(){let e=[],t=[];for(let i of[[1,0,"None",0,"unknown",0,"VK_UNKNOWN","",""],[1,1,"Hyper",0,"",0,"","",""],[1,2,"Super",0,"",0,"","",""],[1,3,"Fn",0,"",0,"","",""],[1,4,"FnLock",0,"",0,"","",""],[1,5,"Suspend",0,"",0,"","",""],[1,6,"Resume",0,"",0,"","",""],[1,7,"Turbo",0,"",0,"","",""],[1,8,"Sleep",0,"",0,"VK_SLEEP","",""],[1,9,"WakeUp",0,"",0,"","",""],[0,10,"KeyA",31,"A",65,"VK_A","",""],[0,11,"KeyB",32,"B",66,"VK_B","",""],[0,12,"KeyC",33,"C",67,"VK_C","",""],[0,13,"KeyD",34,"D",68,"VK_D","",""],[0,14,"KeyE",35,"E",69,"VK_E","",""],[0,15,"KeyF",36,"F",70,"VK_F","",""],[0,16,"KeyG",37,"G",71,"VK_G","",""],[0,17,"KeyH",38,"H",72,"VK_H","",""],[0,18,"KeyI",39,"I",73,"VK_I","",""],[0,19,"KeyJ",40,"J",74,"VK_J","",""],[0,20,"KeyK",41,"K",75,"VK_K","",""],[0,21,"KeyL",42,"L",76,"VK_L","",""],[0,22,"KeyM",43,"M",77,"VK_M","",""],[0,23,"KeyN",44,"N",78,"VK_N","",""],[0,24,"KeyO",45,"O",79,"VK_O","",""],[0,25,"KeyP",46,"P",80,"VK_P","",""],[0,26,"KeyQ",47,"Q",81,"VK_Q","",""],[0,27,"KeyR",48,"R",82,"VK_R","",""],[0,28,"KeyS",49,"S",83,"VK_S","",""],[0,29,"KeyT",50,"T",84,"VK_T","",""],[0,30,"KeyU",51,"U",85,"VK_U","",""],[0,31,"KeyV",52,"V",86,"VK_V","",""],[0,32,"KeyW",53,"W",87,"VK_W","",""],[0,33,"KeyX",54,"X",88,"VK_X","",""],[0,34,"KeyY",55,"Y",89,"VK_Y","",""],[0,35,"KeyZ",56,"Z",90,"VK_Z","",""],[0,36,"Digit1",22,"1",49,"VK_1","",""],[0,37,"Digit2",23,"2",50,"VK_2","",""],[0,38,"Digit3",24,"3",51,"VK_3","",""],[0,39,"Digit4",25,"4",52,"VK_4","",""],[0,40,"Digit5",26,"5",53,"VK_5","",""],[0,41,"Digit6",27,"6",54,"VK_6","",""],[0,42,"Digit7",28,"7",55,"VK_7","",""],[0,43,"Digit8",29,"8",56,"VK_8","",""],[0,44,"Digit9",30,"9",57,"VK_9","",""],[0,45,"Digit0",21,"0",48,"VK_0","",""],[1,46,"Enter",3,"Enter",13,"VK_RETURN","",""],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE","",""],[1,48,"Backspace",1,"Backspace",8,"VK_BACK","",""],[1,49,"Tab",2,"Tab",9,"VK_TAB","",""],[1,50,"Space",10,"Space",32,"VK_SPACE","",""],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,"",0,"","",""],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL","",""],[1,64,"F1",59,"F1",112,"VK_F1","",""],[1,65,"F2",60,"F2",113,"VK_F2","",""],[1,66,"F3",61,"F3",114,"VK_F3","",""],[1,67,"F4",62,"F4",115,"VK_F4","",""],[1,68,"F5",63,"F5",116,"VK_F5","",""],[1,69,"F6",64,"F6",117,"VK_F6","",""],[1,70,"F7",65,"F7",118,"VK_F7","",""],[1,71,"F8",66,"F8",119,"VK_F8","",""],[1,72,"F9",67,"F9",120,"VK_F9","",""],[1,73,"F10",68,"F10",121,"VK_F10","",""],[1,74,"F11",69,"F11",122,"VK_F11","",""],[1,75,"F12",70,"F12",123,"VK_F12","",""],[1,76,"PrintScreen",0,"",0,"","",""],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL","",""],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE","",""],[1,79,"Insert",19,"Insert",45,"VK_INSERT","",""],[1,80,"Home",14,"Home",36,"VK_HOME","",""],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR","",""],[1,82,"Delete",20,"Delete",46,"VK_DELETE","",""],[1,83,"End",13,"End",35,"VK_END","",""],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT","",""],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",""],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",""],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",""],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",""],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK","",""],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE","",""],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY","",""],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT","",""],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD","",""],[1,94,"NumpadEnter",3,"",0,"","",""],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1","",""],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2","",""],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3","",""],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4","",""],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5","",""],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6","",""],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7","",""],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8","",""],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9","",""],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0","",""],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL","",""],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102","",""],[1,107,"ContextMenu",58,"ContextMenu",93,"","",""],[1,108,"Power",0,"",0,"","",""],[1,109,"NumpadEqual",0,"",0,"","",""],[1,110,"F13",71,"F13",124,"VK_F13","",""],[1,111,"F14",72,"F14",125,"VK_F14","",""],[1,112,"F15",73,"F15",126,"VK_F15","",""],[1,113,"F16",74,"F16",127,"VK_F16","",""],[1,114,"F17",75,"F17",128,"VK_F17","",""],[1,115,"F18",76,"F18",129,"VK_F18","",""],[1,116,"F19",77,"F19",130,"VK_F19","",""],[1,117,"F20",78,"F20",131,"VK_F20","",""],[1,118,"F21",79,"F21",132,"VK_F21","",""],[1,119,"F22",80,"F22",133,"VK_F22","",""],[1,120,"F23",81,"F23",134,"VK_F23","",""],[1,121,"F24",82,"F24",135,"VK_F24","",""],[1,122,"Open",0,"",0,"","",""],[1,123,"Help",0,"",0,"","",""],[1,124,"Select",0,"",0,"","",""],[1,125,"Again",0,"",0,"","",""],[1,126,"Undo",0,"",0,"","",""],[1,127,"Cut",0,"",0,"","",""],[1,128,"Copy",0,"",0,"","",""],[1,129,"Paste",0,"",0,"","",""],[1,130,"Find",0,"",0,"","",""],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE","",""],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP","",""],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN","",""],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR","",""],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1","",""],[1,136,"KanaMode",0,"",0,"","",""],[0,137,"IntlYen",0,"",0,"","",""],[1,138,"Convert",0,"",0,"","",""],[1,139,"NonConvert",0,"",0,"","",""],[1,140,"Lang1",0,"",0,"","",""],[1,141,"Lang2",0,"",0,"","",""],[1,142,"Lang3",0,"",0,"","",""],[1,143,"Lang4",0,"",0,"","",""],[1,144,"Lang5",0,"",0,"","",""],[1,145,"Abort",0,"",0,"","",""],[1,146,"Props",0,"",0,"","",""],[1,147,"NumpadParenLeft",0,"",0,"","",""],[1,148,"NumpadParenRight",0,"",0,"","",""],[1,149,"NumpadBackspace",0,"",0,"","",""],[1,150,"NumpadMemoryStore",0,"",0,"","",""],[1,151,"NumpadMemoryRecall",0,"",0,"","",""],[1,152,"NumpadMemoryClear",0,"",0,"","",""],[1,153,"NumpadMemoryAdd",0,"",0,"","",""],[1,154,"NumpadMemorySubtract",0,"",0,"","",""],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR","",""],[1,156,"NumpadClearEntry",0,"",0,"","",""],[1,0,"",5,"Ctrl",17,"VK_CONTROL","",""],[1,0,"",4,"Shift",16,"VK_SHIFT","",""],[1,0,"",6,"Alt",18,"VK_MENU","",""],[1,0,"",57,"Meta",91,"VK_COMMAND","",""],[1,157,"ControlLeft",5,"",0,"VK_LCONTROL","",""],[1,158,"ShiftLeft",4,"",0,"VK_LSHIFT","",""],[1,159,"AltLeft",6,"",0,"VK_LMENU","",""],[1,160,"MetaLeft",57,"",0,"VK_LWIN","",""],[1,161,"ControlRight",5,"",0,"VK_RCONTROL","",""],[1,162,"ShiftRight",4,"",0,"VK_RSHIFT","",""],[1,163,"AltRight",6,"",0,"VK_RMENU","",""],[1,164,"MetaRight",57,"",0,"VK_RWIN","",""],[1,165,"BrightnessUp",0,"",0,"","",""],[1,166,"BrightnessDown",0,"",0,"","",""],[1,167,"MediaPlay",0,"",0,"","",""],[1,168,"MediaRecord",0,"",0,"","",""],[1,169,"MediaFastForward",0,"",0,"","",""],[1,170,"MediaRewind",0,"",0,"","",""],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK","",""],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK","",""],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP","",""],[1,174,"Eject",0,"",0,"","",""],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE","",""],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT","",""],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL","",""],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2","",""],[1,179,"LaunchApp1",0,"",0,"VK_MEDIA_LAUNCH_APP1","",""],[1,180,"SelectTask",0,"",0,"","",""],[1,181,"LaunchScreenSaver",0,"",0,"","",""],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH","",""],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME","",""],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK","",""],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD","",""],[1,186,"BrowserStop",0,"",0,"VK_BROWSER_STOP","",""],[1,187,"BrowserRefresh",0,"",0,"VK_BROWSER_REFRESH","",""],[1,188,"BrowserFavorites",0,"",0,"VK_BROWSER_FAVORITES","",""],[1,189,"ZoomToggle",0,"",0,"","",""],[1,190,"MailReply",0,"",0,"","",""],[1,191,"MailForward",0,"",0,"","",""],[1,192,"MailSend",0,"",0,"","",""],[1,0,"",114,"KeyInComposition",229,"","",""],[1,0,"",116,"ABNT_C2",194,"VK_ABNT_C2","",""],[1,0,"",96,"OEM_8",223,"VK_OEM_8","",""],[1,0,"",0,"",0,"VK_KANA","",""],[1,0,"",0,"",0,"VK_HANGUL","",""],[1,0,"",0,"",0,"VK_JUNJA","",""],[1,0,"",0,"",0,"VK_FINAL","",""],[1,0,"",0,"",0,"VK_HANJA","",""],[1,0,"",0,"",0,"VK_KANJI","",""],[1,0,"",0,"",0,"VK_CONVERT","",""],[1,0,"",0,"",0,"VK_NONCONVERT","",""],[1,0,"",0,"",0,"VK_ACCEPT","",""],[1,0,"",0,"",0,"VK_MODECHANGE","",""],[1,0,"",0,"",0,"VK_SELECT","",""],[1,0,"",0,"",0,"VK_PRINT","",""],[1,0,"",0,"",0,"VK_EXECUTE","",""],[1,0,"",0,"",0,"VK_SNAPSHOT","",""],[1,0,"",0,"",0,"VK_HELP","",""],[1,0,"",0,"",0,"VK_APPS","",""],[1,0,"",0,"",0,"VK_PROCESSKEY","",""],[1,0,"",0,"",0,"VK_PACKET","",""],[1,0,"",0,"",0,"VK_DBE_SBCSCHAR","",""],[1,0,"",0,"",0,"VK_DBE_DBCSCHAR","",""],[1,0,"",0,"",0,"VK_ATTN","",""],[1,0,"",0,"",0,"VK_CRSEL","",""],[1,0,"",0,"",0,"VK_EXSEL","",""],[1,0,"",0,"",0,"VK_EREOF","",""],[1,0,"",0,"",0,"VK_PLAY","",""],[1,0,"",0,"",0,"VK_ZOOM","",""],[1,0,"",0,"",0,"VK_NONAME","",""],[1,0,"",0,"",0,"VK_PA1","",""],[1,0,"",0,"",0,"VK_OEM_CLEAR","",""]]){let[n,r,o,s,a,l,h,u,d]=i;if(!t[r]&&(t[r]=!0,nH[r]=o,nV[o]=r,nW[o.toLowerCase()]=r,n&&(nG[r]=s,0!==s&&3!==s&&5!==s&&4!==s&&6!==s&&57!==s&&(nz[s]=r))),!e[s]){if(e[s]=!0,!a)throw Error(`String representation missing for key code ${s} around scan code ${o}`);nk.define(s,a),nP.define(s,u||a),nF.define(s,d||u||a)}l&&(nB[l]=s),h&&(nU[h]=s)}nz[3]=46}(),(T=te||(te={})).toString=function(e){return nk.keyCodeToStr(e)},T.fromString=function(e){return nk.strToKeyCode(e)},T.toUserSettingsUS=function(e){return nP.keyCodeToStr(e)},T.toUserSettingsGeneral=function(e){return nF.keyCodeToStr(e)},T.fromUserSettings=function(e){return nP.strToKeyCode(e)||nF.strToKeyCode(e)},T.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return nk.keyCodeToStr(e)};var nY=i(1432),nK=i(83454);if(void 0!==nY.li.vscode&&void 0!==nY.li.vscode.process){let e=nY.li.vscode.process;n={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else n=void 0!==nK?{get platform(){return nK.platform},get arch(){return nK.arch},get env(){return nK.env},cwd:()=>nK.env.VSCODE_CWD||nK.cwd()}:{get platform(){return nY.ED?"win32":nY.dz?"darwin":"linux"},get arch(){return},get env(){return{}},cwd:()=>"/"};let n$=n.cwd,nX=n.env,nj=n.platform;class nq extends Error{constructor(e,t,i){let n;"string"==typeof t&&0===t.indexOf("not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let r=-1!==e.indexOf(".")?"property":"argument",o=`The "${e}" ${r} ${n} of type ${t}`;super(o+=`. Received type ${typeof i}`),this.code="ERR_INVALID_ARG_TYPE"}}function nZ(e,t){if("string"!=typeof e)throw new nq(t,"string",e)}let nJ="win32"===nj;function nQ(e){return 47===e||92===e}function n0(e){return 47===e}function n1(e){return e>=65&&e<=90||e>=97&&e<=122}function n2(e,t,i,n){let r="",o=0,s=-1,a=0,l=0;for(let h=0;h<=e.length;++h){if(h2){let e=r.lastIndexOf(i);-1===e?(r="",o=0):o=(r=r.slice(0,e)).length-1-r.lastIndexOf(i),s=h,a=0;continue}if(0!==r.length){r="",o=0,s=h,a=0;continue}}t&&(r+=r.length>0?`${i}..`:"..",o=2)}else r.length>0?r+=`${i}${e.slice(s+1,h)}`:r=e.slice(s+1,h),o=h-s-1;s=h,a=0}else 46===l&&-1!==a?++a:a=-1}return r}function n4(e,t){!function(e,t){if(null===e||"object"!=typeof e)throw new nq(t,"Object",e)}(t,"pathObject");let i=t.dir||t.root,n=t.base||`${t.name||""}${t.ext||""}`;return i?i===t.root?`${i}${n}`:`${i}${e}${n}`:n}let n5={resolve(...e){let t="",i="",n=!1;for(let r=e.length-1;r>=-1;r--){let o;if(r>=0){if(nZ(o=e[r],"path"),0===o.length)continue}else 0===t.length?o=n$():(void 0===(o=nX[`=${t}`]||n$())||o.slice(0,2).toLowerCase()!==t.toLowerCase()&&92===o.charCodeAt(2))&&(o=`${t}\\`);let s=o.length,a=0,l="",h=!1,u=o.charCodeAt(0);if(1===s)nQ(u)&&(a=1,h=!0);else if(nQ(u)){if(h=!0,nQ(o.charCodeAt(1))){let e=2,t=2;for(;e2&&nQ(o.charCodeAt(2))&&(h=!0,a=3));if(l.length>0){if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l}if(n){if(t.length>0)break}else if(i=`${o.slice(a)}\\${i}`,n=h,h&&t.length>0)break}return i=n2(i,!n,"\\",nQ),n?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){let t;nZ(e,"path");let i=e.length;if(0===i)return".";let n=0,r=!1,o=e.charCodeAt(0);if(1===i)return n0(o)?"\\":e;if(nQ(o)){if(r=!0,nQ(e.charCodeAt(1))){let r=2,o=2;for(;r2&&nQ(e.charCodeAt(2))&&(r=!0,n=3));let s=n0&&nQ(e.charCodeAt(i-1))&&(s+="\\"),void 0===t)?r?`\\${s}`:s:r?`${t}\\${s}`:`${t}${s}`},isAbsolute(e){nZ(e,"path");let t=e.length;if(0===t)return!1;let i=e.charCodeAt(0);return nQ(i)||t>2&&n1(i)&&58===e.charCodeAt(1)&&nQ(e.charCodeAt(2))},join(...e){let t,i;if(0===e.length)return".";for(let n=0;n0&&(void 0===t?t=i=r:t+=`\\${r}`)}if(void 0===t)return".";let n=!0,r=0;if("string"==typeof i&&nQ(i.charCodeAt(0))){++r;let e=i.length;e>1&&nQ(i.charCodeAt(1))&&(++r,e>2&&(nQ(i.charCodeAt(2))?++r:n=!1))}if(n){for(;r=2&&(t=`\\${t.slice(r)}`)}return n5.normalize(t)},relative(e,t){if(nZ(e,"from"),nZ(t,"to"),e===t)return"";let i=n5.resolve(e),n=n5.resolve(t);if(i===n||(e=i.toLowerCase())===(t=n.toLowerCase()))return"";let r=0;for(;rr&&92===e.charCodeAt(o-1);)o--;let s=o-r,a=0;for(;aa&&92===t.charCodeAt(l-1);)l--;let h=l-a,u=su){if(92===t.charCodeAt(a+c))return n.slice(a+c+1);if(2===c)return n.slice(a+c)}s>u&&(92===e.charCodeAt(r+c)?d=c:2===c&&(d=3)),-1===d&&(d=0)}let g="";for(c=r+d+1;c<=o;++c)(c===o||92===e.charCodeAt(c))&&(g+=0===g.length?"..":"\\..");return(a+=d,g.length>0)?`${g}${n.slice(a,l)}`:(92===n.charCodeAt(a)&&++a,n.slice(a,l))},toNamespacedPath(e){if("string"!=typeof e||0===e.length)return e;let t=n5.resolve(e);if(t.length<=2)return e;if(92===t.charCodeAt(0)){if(92===t.charCodeAt(1)){let e=t.charCodeAt(2);if(63!==e&&46!==e)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(n1(t.charCodeAt(0))&&58===t.charCodeAt(1)&&92===t.charCodeAt(2))return`\\\\?\\${t}`;return e},dirname(e){nZ(e,"path");let t=e.length;if(0===t)return".";let i=-1,n=0,r=e.charCodeAt(0);if(1===t)return nQ(r)?e:".";if(nQ(r)){if(i=n=1,nQ(e.charCodeAt(1))){let r=2,o=2;for(;r2&&nQ(e.charCodeAt(2))?3:2);let o=-1,s=!0;for(let i=t-1;i>=n;--i)if(nQ(e.charCodeAt(i))){if(!s){o=i;break}}else s=!1;if(-1===o){if(-1===i)return".";o=i}return e.slice(0,o)},basename(e,t){let i;void 0!==t&&nZ(t,"ext"),nZ(e,"path");let n=0,r=-1,o=!0;if(e.length>=2&&n1(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(n=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(i=e.length-1;i>=n;--i){let l=e.charCodeAt(i);if(nQ(l)){if(!o){n=i+1;break}}else -1===a&&(o=!1,a=i+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(r=i):(s=-1,r=a))}return n===r?r=a:-1===r&&(r=e.length),e.slice(n,r)}for(i=e.length-1;i>=n;--i)if(nQ(e.charCodeAt(i))){if(!o){n=i+1;break}}else -1===r&&(o=!1,r=i+1);return -1===r?"":e.slice(n,r)},extname(e){nZ(e,"path");let t=0,i=-1,n=0,r=-1,o=!0,s=0;e.length>=2&&58===e.charCodeAt(1)&&n1(e.charCodeAt(0))&&(t=n=2);for(let a=e.length-1;a>=t;--a){let t=e.charCodeAt(a);if(nQ(t)){if(!o){n=a+1;break}continue}-1===r&&(o=!1,r=a+1),46===t?-1===i?i=a:1!==s&&(s=1):-1!==i&&(s=-1)}return -1===i||-1===r||0===s||1===s&&i===r-1&&i===n+1?"":e.slice(i,r)},format:n4.bind(null,"\\"),parse(e){nZ(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;let i=e.length,n=0,r=e.charCodeAt(0);if(1===i)return nQ(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(nQ(r)){if(n=1,nQ(e.charCodeAt(1))){let t=2,r=2;for(;t0&&(t.root=e.slice(0,n));let o=-1,s=n,a=-1,l=!0,h=e.length-1,u=0;for(;h>=n;--h){if(nQ(r=e.charCodeAt(h))){if(!l){s=h+1;break}continue}-1===a&&(l=!1,a=h+1),46===r?-1===o?o=h:1!==u&&(u=1):-1!==o&&(u=-1)}return -1!==a&&(-1===o||0===u||1===u&&o===a-1&&o===s+1?t.base=t.name=e.slice(s,a):(t.name=e.slice(s,o),t.base=e.slice(s,a),t.ext=e.slice(o,a))),s>0&&s!==n?t.dir=e.slice(0,s-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},n6=(()=>{if(nJ){let e=/\\/g;return()=>{let t=n$().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>n$()})(),n3={resolve(...e){let t="",i=!1;for(let n=e.length-1;n>=-1&&!i;n--){let r=n>=0?e[n]:n6();nZ(r,"path"),0!==r.length&&(t=`${r}/${t}`,i=47===r.charCodeAt(0))}return(t=n2(t,!i,"/",n0),i)?`/${t}`:t.length>0?t:"."},normalize(e){if(nZ(e,"path"),0===e.length)return".";let t=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0===(e=n2(e,!t,"/",n0)).length?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(nZ(e,"path"),e.length>0&&47===e.charCodeAt(0)),join(...e){let t;if(0===e.length)return".";for(let i=0;i0&&(void 0===t?t=n:t+=`/${n}`)}return void 0===t?".":n3.normalize(t)},relative(e,t){if(nZ(e,"from"),nZ(t,"to"),e===t||(e=n3.resolve(e))===(t=n3.resolve(t)))return"";let i=e.length,n=i-1,r=t.length-1,o=no){if(47===t.charCodeAt(1+a))return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else n>o&&(47===e.charCodeAt(1+a)?s=a:0===a&&(s=0))}let l="";for(a=1+s+1;a<=i;++a)(a===i||47===e.charCodeAt(a))&&(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+s)}`},toNamespacedPath:e=>e,dirname(e){if(nZ(e,"path"),0===e.length)return".";let t=47===e.charCodeAt(0),i=-1,n=!0;for(let t=e.length-1;t>=1;--t)if(47===e.charCodeAt(t)){if(!n){i=t;break}}else n=!1;return -1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){let i;void 0!==t&&nZ(t,"ext"),nZ(e,"path");let n=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(i=e.length-1;i>=0;--i){let l=e.charCodeAt(i);if(47===l){if(!o){n=i+1;break}}else -1===a&&(o=!1,a=i+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(r=i):(s=-1,r=a))}return n===r?r=a:-1===r&&(r=e.length),e.slice(n,r)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!o){n=i+1;break}}else -1===r&&(o=!1,r=i+1);return -1===r?"":e.slice(n,r)},extname(e){nZ(e,"path");let t=-1,i=0,n=-1,r=!0,o=0;for(let s=e.length-1;s>=0;--s){let a=e.charCodeAt(s);if(47===a){if(!r){i=s+1;break}continue}-1===n&&(r=!1,n=s+1),46===a?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1)}return -1===t||-1===n||0===o||1===o&&t===n-1&&t===i+1?"":e.slice(t,n)},format:n4.bind(null,"/"),parse(e){let t;nZ(e,"path");let i={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return i;let n=47===e.charCodeAt(0);n?(i.root="/",t=1):t=0;let r=-1,o=0,s=-1,a=!0,l=e.length-1,h=0;for(;l>=t;--l){let t=e.charCodeAt(l);if(47===t){if(!a){o=l+1;break}continue}-1===s&&(a=!1,s=l+1),46===t?-1===r?r=l:1!==h&&(h=1):-1!==r&&(h=-1)}if(-1!==s){let t=0===o&&n?1:o;-1===r||0===h||1===h&&r===s-1&&r===o+1?i.base=i.name=e.slice(t,s):(i.name=e.slice(t,r),i.base=e.slice(t,s),i.ext=e.slice(r,s))}return o>0?i.dir=e.slice(0,o-1):n&&(i.dir="/"),i},sep:"/",delimiter:":",win32:null,posix:null};n3.win32=n5.win32=n5,n3.posix=n5.posix=n3;let n9=nJ?n5.normalize:n3.normalize,n7=nJ?n5.resolve:n3.resolve,n8=nJ?n5.relative:n3.relative,re=nJ?n5.dirname:n3.dirname,rt=nJ?n5.basename:n3.basename,ri=nJ?n5.extname:n3.extname,rn=nJ?n5.sep:n3.sep,rr=/^\w[\w\d+.-]*$/,ro=/^\//,rs=/^\/\//,ra=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class rl{static isUri(e){return e instanceof rl||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}constructor(e,t,i,n,r,o=!1){"object"==typeof e?(this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||""):(this.scheme=e||o?e:"file",this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?"/"!==t[0]&&(t="/"+t):t="/"}return t}(this.scheme,i||""),this.query=n||"",this.fragment=r||"",function(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!rr.test(e.scheme))throw Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!ro.test(e.path))throw Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(rs.test(e.path))throw Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,o))}get fsPath(){return rp(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:r,fragment:o}=e;return(void 0===t?t=this.scheme:null===t&&(t=""),void 0===i?i=this.authority:null===i&&(i=""),void 0===n?n=this.path:null===n&&(n=""),void 0===r?r=this.query:null===r&&(r=""),void 0===o?o=this.fragment:null===o&&(o=""),t===this.scheme&&i===this.authority&&n===this.path&&r===this.query&&o===this.fragment)?this:new ru(t,i,n,r,o)}static parse(e,t=!1){let i=ra.exec(e);return i?new ru(i[2]||"",rv(i[4]||""),rv(i[5]||""),rv(i[7]||""),rv(i[9]||""),t):new ru("","","","","")}static file(e){let t="";if(nY.ED&&(e=e.replace(/\\/g,"/")),"/"===e[0]&&"/"===e[1]){let i=e.indexOf("/",2);-1===i?(t=e.substring(2),e="/"):(t=e.substring(2,i),e=e.substring(i)||"/")}return new ru("file",t,e,"","")}static from(e,t){let i=new ru(e.scheme,e.authority,e.path,e.query,e.fragment,t);return i}static joinPath(e,...t){let i;if(!e.path)throw Error("[UriError]: cannot call joinPath on URI without path");return i=nY.ED&&"file"===e.scheme?rl.file(n5.join(rp(e,!0),...t)).path:n3.join(e.path,...t),e.with({path:i})}toString(e=!1){return rf(this,e)}toJSON(){return this}static revive(e){var t,i;if(!e||e instanceof rl)return e;{let n=new ru(e);return n._formatted=null!==(t=e.external)&&void 0!==t?t:null,n._fsPath=e._sep===rh&&null!==(i=e.fsPath)&&void 0!==i?i:null,n}}}let rh=nY.ED?1:void 0;class ru extends rl{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=rp(this,!1)),this._fsPath}toString(e=!1){return e?rf(this,!0):(this._formatted||(this._formatted=rf(this,!1)),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=rh),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}let rd={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function rc(e,t,i){let n;let r=-1;for(let o=0;o=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s||i&&91===s||i&&93===s||i&&58===s)-1!==r&&(n+=encodeURIComponent(e.substring(r,o)),r=-1),void 0!==n&&(n+=e.charAt(o));else{void 0===n&&(n=e.substr(0,o));let t=rd[s];void 0!==t?(-1!==r&&(n+=encodeURIComponent(e.substring(r,o)),r=-1),n+=t):-1===r&&(r=o)}}return -1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function rg(e){let t;for(let i=0;i1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&90>=e.path.charCodeAt(1)||e.path.charCodeAt(1)>=97&&122>=e.path.charCodeAt(1))&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,nY.ED&&(i=i.replace(/\//g,"\\")),i}function rf(e,t){let i=t?rg:rc,n="",{scheme:r,authority:o,path:s,query:a,fragment:l}=e;if(r&&(n+=r+":"),(o||"file"===r)&&(n+="//"),o){let e=o.indexOf("@");if(-1!==e){let t=o.substr(0,e);o=o.substr(e+1),-1===(e=t.lastIndexOf(":"))?n+=i(t,!1,!1):n+=i(t.substr(0,e),!1,!1)+":"+i(t.substr(e+1),!1,!0),n+="@"}-1===(e=(o=o.toLowerCase()).lastIndexOf(":"))?n+=i(o,!1,!0):n+=i(o.substr(0,e),!1,!0)+o.substr(e)}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){let e=s.charCodeAt(1);e>=65&&e<=90&&(s=`/${String.fromCharCode(e+32)}:${s.substr(3)}`)}else if(s.length>=2&&58===s.charCodeAt(1)){let e=s.charCodeAt(0);e>=65&&e<=90&&(s=`${String.fromCharCode(e+32)}:${s.substr(2)}`)}n+=i(s,!0,!1)}return a&&(n+="?"+i(a,!1,!1)),l&&(n+="#"+(t?l:rc(l,!1,!1))),n}let rm=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function rv(e){return e.match(rm)?e.replace(rm,e=>(function e(t){try{return decodeURIComponent(t)}catch(i){if(t.length>3)return t.substr(0,3)+e(t.substr(3));return t}})(e)):e}class rE{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new rE(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return rE.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return rE.isBefore(this,e)}static isBefore(e,t){return e.lineNumberi||e===i&&t>n?(this.startLineNumber=i,this.startColumn=n,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=n)}isEmpty(){return r_.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return r_.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber)&&(t.lineNumber!==e.startLineNumber||!(t.columne.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumbere.endLineNumber)&&(t.lineNumber!==e.startLineNumber||!(t.column<=e.startColumn))&&(t.lineNumber!==e.endLineNumber||!(t.column>=e.endColumn))}containsRange(e){return r_.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber)&&!(t.endLineNumber>e.endLineNumber)&&(t.startLineNumber!==e.startLineNumber||!(t.startColumne.endColumn))}strictContainsRange(e){return r_.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber)&&!(t.endLineNumber>e.endLineNumber)&&(t.startLineNumber!==e.startLineNumber||!(t.startColumn<=e.startColumn))&&(t.endLineNumber!==e.endLineNumber||!(t.endColumn>=e.endColumn))}plusRange(e){return r_.plusRange(this,e)}static plusRange(e,t){let i,n,r,o;return t.startLineNumbere.endLineNumber?(r=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(r=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(r=e.endLineNumber,o=e.endColumn),new r_(i,n,r,o)}intersectRanges(e){return r_.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,n=e.startColumn,r=e.endLineNumber,o=e.endColumn,s=t.startLineNumber,a=t.startColumn,l=t.endLineNumber,h=t.endColumn;return(il?(r=l,o=h):r===l&&(o=Math.min(o,h)),i>r||i===r&&n>o)?null:new r_(i,n,r,o)}equalsRange(e){return r_.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return r_.getEndPosition(this)}static getEndPosition(e){return new rE(e.endLineNumber,e.endColumn)}getStartPosition(){return r_.getStartPosition(this)}static getStartPosition(e){return new rE(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new r_(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new r_(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return r_.collapseToStart(this)}static collapseToStart(e){return new r_(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return r_.collapseToEnd(this)}static collapseToEnd(e){return new r_(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new r_(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new r_(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new r_(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}}class rC extends r_{constructor(e,t,i,n){super(e,t,i,n),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=n}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return rC.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new rC(this.startLineNumber,this.startColumn,e,t):new rC(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new rE(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new rE(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new rC(e,t,this.endLineNumber,this.endColumn):new rC(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new rC(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new rC(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new rC(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new rC(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,n=e.length;i{e&&e.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}let rD=new class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new nT,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),nu(()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){var i;null===(i=this._factories.get(e))||void 0===i||i.dispose();let n=new rR(this,e,t);return this._factories.set(e,n),nu(()=>{let t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())})}getOrCreate(e){return rA(this,void 0,void 0,function*(){let t=this.get(e);if(t)return t;let i=this._factories.get(e);return!i||i.isResolved?null:(yield i.resolve(),this.get(e))})}isResolved(e){let t=this.get(e);if(t)return!0;let i=this._factories.get(e);return!i||!!i.isResolved}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};(N=tl||(tl={}))[N.Unknown=0]="Unknown",N[N.Disabled=1]="Disabled",N[N.Enabled=2]="Enabled",(I=th||(th={}))[I.Invoke=1]="Invoke",I[I.Auto=2]="Auto",(w=tu||(tu={}))[w.None=0]="None",w[w.KeepWhitespace=1]="KeepWhitespace",w[w.InsertAsSnippet=4]="InsertAsSnippet",(O=td||(td={}))[O.Method=0]="Method",O[O.Function=1]="Function",O[O.Constructor=2]="Constructor",O[O.Field=3]="Field",O[O.Variable=4]="Variable",O[O.Class=5]="Class",O[O.Struct=6]="Struct",O[O.Interface=7]="Interface",O[O.Module=8]="Module",O[O.Property=9]="Property",O[O.Event=10]="Event",O[O.Operator=11]="Operator",O[O.Unit=12]="Unit",O[O.Value=13]="Value",O[O.Constant=14]="Constant",O[O.Enum=15]="Enum",O[O.EnumMember=16]="EnumMember",O[O.Keyword=17]="Keyword",O[O.Text=18]="Text",O[O.Color=19]="Color",O[O.File=20]="File",O[O.Reference=21]="Reference",O[O.Customcolor=22]="Customcolor",O[O.Folder=23]="Folder",O[O.TypeParameter=24]="TypeParameter",O[O.User=25]="User",O[O.Issue=26]="Issue",O[O.Snippet=27]="Snippet",(x=tc||(tc={}))[x.Deprecated=1]="Deprecated",(D=tg||(tg={}))[D.Invoke=0]="Invoke",D[D.TriggerCharacter=1]="TriggerCharacter",D[D.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions",(M=tp||(tp={}))[M.EXACT=0]="EXACT",M[M.ABOVE=1]="ABOVE",M[M.BELOW=2]="BELOW",(k=tf||(tf={}))[k.NotSet=0]="NotSet",k[k.ContentFlush=1]="ContentFlush",k[k.RecoverFromMarkers=2]="RecoverFromMarkers",k[k.Explicit=3]="Explicit",k[k.Paste=4]="Paste",k[k.Undo=5]="Undo",k[k.Redo=6]="Redo",(P=tm||(tm={}))[P.LF=1]="LF",P[P.CRLF=2]="CRLF",(F=tv||(tv={}))[F.Text=0]="Text",F[F.Read=1]="Read",F[F.Write=2]="Write",(B=tE||(tE={}))[B.None=0]="None",B[B.Keep=1]="Keep",B[B.Brackets=2]="Brackets",B[B.Advanced=3]="Advanced",B[B.Full=4]="Full",(U=t_||(t_={}))[U.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",U[U.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",U[U.accessibilitySupport=2]="accessibilitySupport",U[U.accessibilityPageSize=3]="accessibilityPageSize",U[U.ariaLabel=4]="ariaLabel",U[U.ariaRequired=5]="ariaRequired",U[U.autoClosingBrackets=6]="autoClosingBrackets",U[U.screenReaderAnnounceInlineSuggestion=7]="screenReaderAnnounceInlineSuggestion",U[U.autoClosingDelete=8]="autoClosingDelete",U[U.autoClosingOvertype=9]="autoClosingOvertype",U[U.autoClosingQuotes=10]="autoClosingQuotes",U[U.autoIndent=11]="autoIndent",U[U.automaticLayout=12]="automaticLayout",U[U.autoSurround=13]="autoSurround",U[U.bracketPairColorization=14]="bracketPairColorization",U[U.guides=15]="guides",U[U.codeLens=16]="codeLens",U[U.codeLensFontFamily=17]="codeLensFontFamily",U[U.codeLensFontSize=18]="codeLensFontSize",U[U.colorDecorators=19]="colorDecorators",U[U.colorDecoratorsLimit=20]="colorDecoratorsLimit",U[U.columnSelection=21]="columnSelection",U[U.comments=22]="comments",U[U.contextmenu=23]="contextmenu",U[U.copyWithSyntaxHighlighting=24]="copyWithSyntaxHighlighting",U[U.cursorBlinking=25]="cursorBlinking",U[U.cursorSmoothCaretAnimation=26]="cursorSmoothCaretAnimation",U[U.cursorStyle=27]="cursorStyle",U[U.cursorSurroundingLines=28]="cursorSurroundingLines",U[U.cursorSurroundingLinesStyle=29]="cursorSurroundingLinesStyle",U[U.cursorWidth=30]="cursorWidth",U[U.disableLayerHinting=31]="disableLayerHinting",U[U.disableMonospaceOptimizations=32]="disableMonospaceOptimizations",U[U.domReadOnly=33]="domReadOnly",U[U.dragAndDrop=34]="dragAndDrop",U[U.dropIntoEditor=35]="dropIntoEditor",U[U.emptySelectionClipboard=36]="emptySelectionClipboard",U[U.experimentalWhitespaceRendering=37]="experimentalWhitespaceRendering",U[U.extraEditorClassName=38]="extraEditorClassName",U[U.fastScrollSensitivity=39]="fastScrollSensitivity",U[U.find=40]="find",U[U.fixedOverflowWidgets=41]="fixedOverflowWidgets",U[U.folding=42]="folding",U[U.foldingStrategy=43]="foldingStrategy",U[U.foldingHighlight=44]="foldingHighlight",U[U.foldingImportsByDefault=45]="foldingImportsByDefault",U[U.foldingMaximumRegions=46]="foldingMaximumRegions",U[U.unfoldOnClickAfterEndOfLine=47]="unfoldOnClickAfterEndOfLine",U[U.fontFamily=48]="fontFamily",U[U.fontInfo=49]="fontInfo",U[U.fontLigatures=50]="fontLigatures",U[U.fontSize=51]="fontSize",U[U.fontWeight=52]="fontWeight",U[U.fontVariations=53]="fontVariations",U[U.formatOnPaste=54]="formatOnPaste",U[U.formatOnType=55]="formatOnType",U[U.glyphMargin=56]="glyphMargin",U[U.gotoLocation=57]="gotoLocation",U[U.hideCursorInOverviewRuler=58]="hideCursorInOverviewRuler",U[U.hover=59]="hover",U[U.inDiffEditor=60]="inDiffEditor",U[U.inlineSuggest=61]="inlineSuggest",U[U.letterSpacing=62]="letterSpacing",U[U.lightbulb=63]="lightbulb",U[U.lineDecorationsWidth=64]="lineDecorationsWidth",U[U.lineHeight=65]="lineHeight",U[U.lineNumbers=66]="lineNumbers",U[U.lineNumbersMinChars=67]="lineNumbersMinChars",U[U.linkedEditing=68]="linkedEditing",U[U.links=69]="links",U[U.matchBrackets=70]="matchBrackets",U[U.minimap=71]="minimap",U[U.mouseStyle=72]="mouseStyle",U[U.mouseWheelScrollSensitivity=73]="mouseWheelScrollSensitivity",U[U.mouseWheelZoom=74]="mouseWheelZoom",U[U.multiCursorMergeOverlapping=75]="multiCursorMergeOverlapping",U[U.multiCursorModifier=76]="multiCursorModifier",U[U.multiCursorPaste=77]="multiCursorPaste",U[U.multiCursorLimit=78]="multiCursorLimit",U[U.occurrencesHighlight=79]="occurrencesHighlight",U[U.overviewRulerBorder=80]="overviewRulerBorder",U[U.overviewRulerLanes=81]="overviewRulerLanes",U[U.padding=82]="padding",U[U.pasteAs=83]="pasteAs",U[U.parameterHints=84]="parameterHints",U[U.peekWidgetDefaultFocus=85]="peekWidgetDefaultFocus",U[U.definitionLinkOpensInPeek=86]="definitionLinkOpensInPeek",U[U.quickSuggestions=87]="quickSuggestions",U[U.quickSuggestionsDelay=88]="quickSuggestionsDelay",U[U.readOnly=89]="readOnly",U[U.readOnlyMessage=90]="readOnlyMessage",U[U.renameOnType=91]="renameOnType",U[U.renderControlCharacters=92]="renderControlCharacters",U[U.renderFinalNewline=93]="renderFinalNewline",U[U.renderLineHighlight=94]="renderLineHighlight",U[U.renderLineHighlightOnlyWhenFocus=95]="renderLineHighlightOnlyWhenFocus",U[U.renderValidationDecorations=96]="renderValidationDecorations",U[U.renderWhitespace=97]="renderWhitespace",U[U.revealHorizontalRightPadding=98]="revealHorizontalRightPadding",U[U.roundedSelection=99]="roundedSelection",U[U.rulers=100]="rulers",U[U.scrollbar=101]="scrollbar",U[U.scrollBeyondLastColumn=102]="scrollBeyondLastColumn",U[U.scrollBeyondLastLine=103]="scrollBeyondLastLine",U[U.scrollPredominantAxis=104]="scrollPredominantAxis",U[U.selectionClipboard=105]="selectionClipboard",U[U.selectionHighlight=106]="selectionHighlight",U[U.selectOnLineNumbers=107]="selectOnLineNumbers",U[U.showFoldingControls=108]="showFoldingControls",U[U.showUnused=109]="showUnused",U[U.snippetSuggestions=110]="snippetSuggestions",U[U.smartSelect=111]="smartSelect",U[U.smoothScrolling=112]="smoothScrolling",U[U.stickyScroll=113]="stickyScroll",U[U.stickyTabStops=114]="stickyTabStops",U[U.stopRenderingLineAfter=115]="stopRenderingLineAfter",U[U.suggest=116]="suggest",U[U.suggestFontSize=117]="suggestFontSize",U[U.suggestLineHeight=118]="suggestLineHeight",U[U.suggestOnTriggerCharacters=119]="suggestOnTriggerCharacters",U[U.suggestSelection=120]="suggestSelection",U[U.tabCompletion=121]="tabCompletion",U[U.tabIndex=122]="tabIndex",U[U.unicodeHighlighting=123]="unicodeHighlighting",U[U.unusualLineTerminators=124]="unusualLineTerminators",U[U.useShadowDOM=125]="useShadowDOM",U[U.useTabStops=126]="useTabStops",U[U.wordBreak=127]="wordBreak",U[U.wordSeparators=128]="wordSeparators",U[U.wordWrap=129]="wordWrap",U[U.wordWrapBreakAfterCharacters=130]="wordWrapBreakAfterCharacters",U[U.wordWrapBreakBeforeCharacters=131]="wordWrapBreakBeforeCharacters",U[U.wordWrapColumn=132]="wordWrapColumn",U[U.wordWrapOverride1=133]="wordWrapOverride1",U[U.wordWrapOverride2=134]="wordWrapOverride2",U[U.wrappingIndent=135]="wrappingIndent",U[U.wrappingStrategy=136]="wrappingStrategy",U[U.showDeprecated=137]="showDeprecated",U[U.inlayHints=138]="inlayHints",U[U.editorClassName=139]="editorClassName",U[U.pixelRatio=140]="pixelRatio",U[U.tabFocusMode=141]="tabFocusMode",U[U.layoutInfo=142]="layoutInfo",U[U.wrappingInfo=143]="wrappingInfo",U[U.defaultColorDecorators=144]="defaultColorDecorators",U[U.colorDecoratorsActivatedOn=145]="colorDecoratorsActivatedOn",(H=tC||(tC={}))[H.TextDefined=0]="TextDefined",H[H.LF=1]="LF",H[H.CRLF=2]="CRLF",(V=tS||(tS={}))[V.LF=0]="LF",V[V.CRLF=1]="CRLF",(W=ty||(ty={}))[W.Left=1]="Left",W[W.Right=2]="Right",(G=tT||(tT={}))[G.None=0]="None",G[G.Indent=1]="Indent",G[G.IndentOutdent=2]="IndentOutdent",G[G.Outdent=3]="Outdent",(z=tb||(tb={}))[z.Both=0]="Both",z[z.Right=1]="Right",z[z.Left=2]="Left",z[z.None=3]="None",(Y=tA||(tA={}))[Y.Type=1]="Type",Y[Y.Parameter=2]="Parameter",(K=tR||(tR={}))[K.Automatic=0]="Automatic",K[K.Explicit=1]="Explicit",($=tL||(tL={}))[$.DependsOnKbLayout=-1]="DependsOnKbLayout",$[$.Unknown=0]="Unknown",$[$.Backspace=1]="Backspace",$[$.Tab=2]="Tab",$[$.Enter=3]="Enter",$[$.Shift=4]="Shift",$[$.Ctrl=5]="Ctrl",$[$.Alt=6]="Alt",$[$.PauseBreak=7]="PauseBreak",$[$.CapsLock=8]="CapsLock",$[$.Escape=9]="Escape",$[$.Space=10]="Space",$[$.PageUp=11]="PageUp",$[$.PageDown=12]="PageDown",$[$.End=13]="End",$[$.Home=14]="Home",$[$.LeftArrow=15]="LeftArrow",$[$.UpArrow=16]="UpArrow",$[$.RightArrow=17]="RightArrow",$[$.DownArrow=18]="DownArrow",$[$.Insert=19]="Insert",$[$.Delete=20]="Delete",$[$.Digit0=21]="Digit0",$[$.Digit1=22]="Digit1",$[$.Digit2=23]="Digit2",$[$.Digit3=24]="Digit3",$[$.Digit4=25]="Digit4",$[$.Digit5=26]="Digit5",$[$.Digit6=27]="Digit6",$[$.Digit7=28]="Digit7",$[$.Digit8=29]="Digit8",$[$.Digit9=30]="Digit9",$[$.KeyA=31]="KeyA",$[$.KeyB=32]="KeyB",$[$.KeyC=33]="KeyC",$[$.KeyD=34]="KeyD",$[$.KeyE=35]="KeyE",$[$.KeyF=36]="KeyF",$[$.KeyG=37]="KeyG",$[$.KeyH=38]="KeyH",$[$.KeyI=39]="KeyI",$[$.KeyJ=40]="KeyJ",$[$.KeyK=41]="KeyK",$[$.KeyL=42]="KeyL",$[$.KeyM=43]="KeyM",$[$.KeyN=44]="KeyN",$[$.KeyO=45]="KeyO",$[$.KeyP=46]="KeyP",$[$.KeyQ=47]="KeyQ",$[$.KeyR=48]="KeyR",$[$.KeyS=49]="KeyS",$[$.KeyT=50]="KeyT",$[$.KeyU=51]="KeyU",$[$.KeyV=52]="KeyV",$[$.KeyW=53]="KeyW",$[$.KeyX=54]="KeyX",$[$.KeyY=55]="KeyY",$[$.KeyZ=56]="KeyZ",$[$.Meta=57]="Meta",$[$.ContextMenu=58]="ContextMenu",$[$.F1=59]="F1",$[$.F2=60]="F2",$[$.F3=61]="F3",$[$.F4=62]="F4",$[$.F5=63]="F5",$[$.F6=64]="F6",$[$.F7=65]="F7",$[$.F8=66]="F8",$[$.F9=67]="F9",$[$.F10=68]="F10",$[$.F11=69]="F11",$[$.F12=70]="F12",$[$.F13=71]="F13",$[$.F14=72]="F14",$[$.F15=73]="F15",$[$.F16=74]="F16",$[$.F17=75]="F17",$[$.F18=76]="F18",$[$.F19=77]="F19",$[$.F20=78]="F20",$[$.F21=79]="F21",$[$.F22=80]="F22",$[$.F23=81]="F23",$[$.F24=82]="F24",$[$.NumLock=83]="NumLock",$[$.ScrollLock=84]="ScrollLock",$[$.Semicolon=85]="Semicolon",$[$.Equal=86]="Equal",$[$.Comma=87]="Comma",$[$.Minus=88]="Minus",$[$.Period=89]="Period",$[$.Slash=90]="Slash",$[$.Backquote=91]="Backquote",$[$.BracketLeft=92]="BracketLeft",$[$.Backslash=93]="Backslash",$[$.BracketRight=94]="BracketRight",$[$.Quote=95]="Quote",$[$.OEM_8=96]="OEM_8",$[$.IntlBackslash=97]="IntlBackslash",$[$.Numpad0=98]="Numpad0",$[$.Numpad1=99]="Numpad1",$[$.Numpad2=100]="Numpad2",$[$.Numpad3=101]="Numpad3",$[$.Numpad4=102]="Numpad4",$[$.Numpad5=103]="Numpad5",$[$.Numpad6=104]="Numpad6",$[$.Numpad7=105]="Numpad7",$[$.Numpad8=106]="Numpad8",$[$.Numpad9=107]="Numpad9",$[$.NumpadMultiply=108]="NumpadMultiply",$[$.NumpadAdd=109]="NumpadAdd",$[$.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",$[$.NumpadSubtract=111]="NumpadSubtract",$[$.NumpadDecimal=112]="NumpadDecimal",$[$.NumpadDivide=113]="NumpadDivide",$[$.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",$[$.ABNT_C1=115]="ABNT_C1",$[$.ABNT_C2=116]="ABNT_C2",$[$.AudioVolumeMute=117]="AudioVolumeMute",$[$.AudioVolumeUp=118]="AudioVolumeUp",$[$.AudioVolumeDown=119]="AudioVolumeDown",$[$.BrowserSearch=120]="BrowserSearch",$[$.BrowserHome=121]="BrowserHome",$[$.BrowserBack=122]="BrowserBack",$[$.BrowserForward=123]="BrowserForward",$[$.MediaTrackNext=124]="MediaTrackNext",$[$.MediaTrackPrevious=125]="MediaTrackPrevious",$[$.MediaStop=126]="MediaStop",$[$.MediaPlayPause=127]="MediaPlayPause",$[$.LaunchMediaPlayer=128]="LaunchMediaPlayer",$[$.LaunchMail=129]="LaunchMail",$[$.LaunchApp2=130]="LaunchApp2",$[$.Clear=131]="Clear",$[$.MAX_VALUE=132]="MAX_VALUE",(X=tN||(tN={}))[X.Hint=1]="Hint",X[X.Info=2]="Info",X[X.Warning=4]="Warning",X[X.Error=8]="Error",(j=tI||(tI={}))[j.Unnecessary=1]="Unnecessary",j[j.Deprecated=2]="Deprecated",(q=tw||(tw={}))[q.Inline=1]="Inline",q[q.Gutter=2]="Gutter",(Z=tO||(tO={}))[Z.UNKNOWN=0]="UNKNOWN",Z[Z.TEXTAREA=1]="TEXTAREA",Z[Z.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",Z[Z.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",Z[Z.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",Z[Z.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",Z[Z.CONTENT_TEXT=6]="CONTENT_TEXT",Z[Z.CONTENT_EMPTY=7]="CONTENT_EMPTY",Z[Z.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",Z[Z.CONTENT_WIDGET=9]="CONTENT_WIDGET",Z[Z.OVERVIEW_RULER=10]="OVERVIEW_RULER",Z[Z.SCROLLBAR=11]="SCROLLBAR",Z[Z.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",Z[Z.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR",(J=tx||(tx={}))[J.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",J[J.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",J[J.TOP_CENTER=2]="TOP_CENTER",(Q=tD||(tD={}))[Q.Left=1]="Left",Q[Q.Center=2]="Center",Q[Q.Right=4]="Right",Q[Q.Full=7]="Full",(ee=tM||(tM={}))[ee.Left=0]="Left",ee[ee.Right=1]="Right",ee[ee.None=2]="None",ee[ee.LeftOfInjectedText=3]="LeftOfInjectedText",ee[ee.RightOfInjectedText=4]="RightOfInjectedText",(et=tk||(tk={}))[et.Off=0]="Off",et[et.On=1]="On",et[et.Relative=2]="Relative",et[et.Interval=3]="Interval",et[et.Custom=4]="Custom",(ei=tP||(tP={}))[ei.None=0]="None",ei[ei.Text=1]="Text",ei[ei.Blocks=2]="Blocks",(en=tF||(tF={}))[en.Smooth=0]="Smooth",en[en.Immediate=1]="Immediate",(er=tB||(tB={}))[er.Auto=1]="Auto",er[er.Hidden=2]="Hidden",er[er.Visible=3]="Visible",(eo=tU||(tU={}))[eo.LTR=0]="LTR",eo[eo.RTL=1]="RTL",(es=tH||(tH={}))[es.Invoke=1]="Invoke",es[es.TriggerCharacter=2]="TriggerCharacter",es[es.ContentChange=3]="ContentChange",(ea=tV||(tV={}))[ea.File=0]="File",ea[ea.Module=1]="Module",ea[ea.Namespace=2]="Namespace",ea[ea.Package=3]="Package",ea[ea.Class=4]="Class",ea[ea.Method=5]="Method",ea[ea.Property=6]="Property",ea[ea.Field=7]="Field",ea[ea.Constructor=8]="Constructor",ea[ea.Enum=9]="Enum",ea[ea.Interface=10]="Interface",ea[ea.Function=11]="Function",ea[ea.Variable=12]="Variable",ea[ea.Constant=13]="Constant",ea[ea.String=14]="String",ea[ea.Number=15]="Number",ea[ea.Boolean=16]="Boolean",ea[ea.Array=17]="Array",ea[ea.Object=18]="Object",ea[ea.Key=19]="Key",ea[ea.Null=20]="Null",ea[ea.EnumMember=21]="EnumMember",ea[ea.Struct=22]="Struct",ea[ea.Event=23]="Event",ea[ea.Operator=24]="Operator",ea[ea.TypeParameter=25]="TypeParameter",(el=tW||(tW={}))[el.Deprecated=1]="Deprecated",(eh=tG||(tG={}))[eh.Hidden=0]="Hidden",eh[eh.Blink=1]="Blink",eh[eh.Smooth=2]="Smooth",eh[eh.Phase=3]="Phase",eh[eh.Expand=4]="Expand",eh[eh.Solid=5]="Solid",(eu=tz||(tz={}))[eu.Line=1]="Line",eu[eu.Block=2]="Block",eu[eu.Underline=3]="Underline",eu[eu.LineThin=4]="LineThin",eu[eu.BlockOutline=5]="BlockOutline",eu[eu.UnderlineThin=6]="UnderlineThin",(ed=tY||(tY={}))[ed.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",ed[ed.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",ed[ed.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",ed[ed.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter",(ec=tK||(tK={}))[ec.None=0]="None",ec[ec.Same=1]="Same",ec[ec.Indent=2]="Indent",ec[ec.DeepIndent=3]="DeepIndent";class rM{static chord(e,t){return(e|(65535&t)<<16>>>0)>>>0}}function rk(){return{editor:void 0,languages:void 0,CancellationTokenSource:nD,Emitter:nT,KeyCode:tL,KeyMod:rM,Position:rE,Range:r_,Selection:rC,SelectionDirection:tU,MarkerSeverity:tN,MarkerTag:tI,Uri:rl,Token:rN}}rM.CtrlCmd=2048,rM.Shift=1024,rM.Alt=512,rM.WinCtrl=256,i(95656);class rP{get cachedValues(){return this._map}constructor(e){this.fn=e,this._map=new Map}get(e){if(this._map.has(e))return this._map.get(e);let t=this.fn(e);return this._map.set(e,t),t}}class rF{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}let rB=/{(\d+)}/g;function rU(e,...t){return 0===t.length?e:e.replace(rB,function(e,i){let n=parseInt(i,10);return isNaN(n)||n<0||n>=t.length?e:t[n]})}function rH(e){return e.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function rV(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function rW(e,t){if(!e||!t)return e;let i=t.length;if(0===i||0===e.length)return e;let n=0;for(;e.indexOf(t,n)===n;)n+=i;return e.substring(n)}function rG(e,t,i={}){if(!e)throw Error("Cannot create regex from empty string");t||(e=rV(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let n="";return i.global&&(n+="g"),i.matchCase||(n+="i"),i.multiline&&(n+="m"),i.unicode&&(n+="u"),new RegExp(e,n)}function rz(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function rY(e){return e.split(/\r\n|\r|\n/)}function rK(e){for(let t=0,i=e.length;t=0;i--){let t=e.charCodeAt(i);if(32!==t&&9!==t)return i}return -1}function rj(e,t){return et?1:0}function rq(e,t,i=0,n=e.length,r=0,o=t.length){for(;io)return 1}let s=n-i,a=o-r;return sa?1:0}function rZ(e,t){return rJ(e,t,0,e.length,0,t.length)}function rJ(e,t,i=0,n=e.length,r=0,o=t.length){for(;i=128||a>=128)return rq(e.toLowerCase(),t.toLowerCase(),i,n,r,o);r0(s)&&(s-=32),r0(a)&&(a-=32);let l=s-a;if(0!==l)return l}let s=n-i,a=o-r;return sa?1:0}function rQ(e){return e>=48&&e<=57}function r0(e){return e>=97&&e<=122}function r1(e){return e>=65&&e<=90}function r2(e,t){return e.length===t.length&&0===rJ(e,t)}function r4(e,t){let i=t.length;return!(t.length>e.length)&&0===rJ(e,t,0,i)}function r5(e,t){let i;let n=Math.min(e.length,t.length);for(i=0;i1){let n=e.charCodeAt(t-2);if(r3(n))return r7(n,i)}return i}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){let e=r8(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class ot{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new oe(e,t)}nextGraphemeLength(){let e=op.getInstance(),t=this._iterator,i=t.offset,n=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){let i=t.offset,r=e.getGraphemeBreakType(t.nextCodePoint());if(og(n,r)){t.setOffset(i);break}n=r}return t.offset-i}prevGraphemeLength(){let e=op.getInstance(),t=this._iterator,i=t.offset,n=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){let i=t.offset,r=e.getGraphemeBreakType(t.prevCodePoint());if(og(r,n)){t.setOffset(i);break}n=r}return i-t.offset}eol(){return this._iterator.eol()}}function oi(e,t){let i=new ot(e,t);return i.nextGraphemeLength()}function on(e,t){let i=new ot(e,t);return i.prevGraphemeLength()}function or(e){return E||(E=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),E.test(e)}let oo=/^[\t\n\r\x20-\x7E]*$/;function os(e){return oo.test(e)}let oa=/[\u2028\u2029]/;function ol(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function oh(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}let ou=String.fromCharCode(65279);function od(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function oc(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function og(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&(11!==e&&9!==e||9!==t&&10!==t)&&(12!==e&&10!==e||10!==t)&&5!==t&&13!==t&&7!==t&&1!==e&&(13!==e||14!==t)&&(6!==e||6!==t))}class op{static getInstance(){return op._INSTANCE||(op._INSTANCE=new op),op._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;let t=this._data,i=t.length/3,n=1;for(;n<=i;)if(et[3*n+1]))return t[3*n+2];n=2*n+1}return 0}}op._INSTANCE=null;class of{static getInstance(e){return of.cache.get(Array.from(e))}static getLocales(){return of._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}of.ambiguousCharacterData=new rF(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),of.cache=new class{constructor(e){this.fn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){let t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}}(e=>{let t;function i(e){let t=new Map;for(let i=0;i!e.startsWith("_")&&e in n);for(let e of(0===r.length&&(r=["_default"]),r)){let r=i(n[e]);t=function(e,t){if(!e)return t;let i=new Map;for(let[n,r]of e)t.has(n)&&i.set(n,r);return i}(t,r)}let o=i(n._common),s=function(e,t){let i=new Map(e);for(let[e,n]of t)i.set(e,n);return i}(o,t);return new of(s)}),of._locales=new rF(()=>Object.keys(of.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));class om{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(om.getRawData())),this._data}static isInvisibleCharacter(e){return om.getData().has(e)}static get codePoints(){return om.getData()}}om._data=void 0;class ov{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}ov.INSTANCE=new ov;class oE extends nc{constructor(){super(),this._onDidChange=this._register(new nT),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){var t;null===(t=this._mediaQueryList)||void 0===t||t.removeEventListener("change",this._listener),this._mediaQueryList=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),e&&this._onDidChange.fire()}}class o_ extends nc{get value(){return this._value}constructor(){super(),this._onDidChange=this._register(new nT),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();let e=this._register(new oE);this._register(e.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}_getPixelRatio(){let e=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,i=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/i}}function oC(e,t){"string"==typeof e&&(e=window.matchMedia(e)),e.addEventListener("change",t)}let oS=new class{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=new o_),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}},oy=navigator.userAgent,oT=oy.indexOf("Firefox")>=0,ob=oy.indexOf("AppleWebKit")>=0,oA=oy.indexOf("Chrome")>=0,oR=!oA&&oy.indexOf("Safari")>=0,oL=!oA&&!oR&&ob;oy.indexOf("Electron/");let oN=oy.indexOf("Android")>=0,oI=!1;if(window.matchMedia){let e=window.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=window.matchMedia("(display-mode: fullscreen)");oI=e.matches,oC(e,({matches:e})=>{oI&&t.matches||(oI=e)})}class ow{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){let t=oO(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){let t=oO(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){let t=oO(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){let t=oO(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){let t=oO(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){let t=oO(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){let t=oO(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){let t=oO(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){let t=oO(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){let t=oO(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){let t=oO(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function oO(e){return"number"==typeof e?`${e}px`:e}function ox(e){return new ow(e)}function oD(e,t){e instanceof ow?(e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setFontVariationSettings(t.fontVariationSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)):(e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.fontVariationSettings=t.fontVariationSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px")}class oM{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class ok{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){let e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";let t=document.createElement("div");oD(t,this._bareFontInfo),e.appendChild(t);let i=document.createElement("div");oD(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);let n=document.createElement("div");oD(n,this._bareFontInfo),n.style.fontStyle="italic",e.appendChild(n);let r=[];for(let e of this._requests){let o;0===e.type&&(o=t),2===e.type&&(o=i),1===e.type&&(o=n),o.appendChild(document.createElement("br"));let s=document.createElement("span");ok._render(s,e),o.appendChild(s),r.push(s)}this._container=e,this._testElements=r}static _render(e,t){if(" "===t.chr){let t="\xa0";for(let e=0;e<8;e++)t+=t;e.innerText=t}else{let i=t.chr;for(let e=0;e<8;e++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;ethis._values[e])}}let oV=new class extends nc{constructor(){super(),this._onDidChange=this._register(new nT),this.onDidChange=this._onDidChange.event,this._cache=new oH,this._evictUntrustedReadingsTimeout=-1}dispose(){-1!==this._evictUntrustedReadingsTimeout&&(window.clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearAllFontInfos(){this._cache=new oH,this._onDidChange.fire()}_writeToCache(e,t){this._cache.put(e,t),t.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=window.setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){let e=this._cache.getValues(),t=!1;for(let i of e)i.isTrusted||(t=!0,this._cache.remove(i));t&&this._onDidChange.fire()}readFontInfo(e){if(!this._cache.has(e)){let t=this._actualReadFontInfo(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new oU({pixelRatio:oS.value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),wsmiddotWidth:Math.max(t.wsmiddotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)}_createRequest(e,t,i,n){let r=new oM(e,t);return i.push(r),null==n||n.push(r),r}_actualReadFontInfo(e){let t=[],i=[],n=this._createRequest("n",0,t,i),r=this._createRequest("m",0,t,null),o=this._createRequest(" ",0,t,i),s=this._createRequest("0",0,t,i),a=this._createRequest("1",0,t,i),l=this._createRequest("2",0,t,i),h=this._createRequest("3",0,t,i),u=this._createRequest("4",0,t,i),d=this._createRequest("5",0,t,i),c=this._createRequest("6",0,t,i),g=this._createRequest("7",0,t,i),p=this._createRequest("8",0,t,i),f=this._createRequest("9",0,t,i),m=this._createRequest("→",0,t,i),v=this._createRequest("→",0,t,null),E=this._createRequest("\xb7",0,t,i),_=this._createRequest(String.fromCharCode(11825),0,t,null),C="|/-_ilm%";for(let e=0,n=C.length;e.001){y=!1;break}}let b=!0;return y&&v.width!==T&&(b=!1),v.width>m.width&&(b=!1),new oU({pixelRatio:oS.value,fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,fontVariationSettings:e.fontVariationSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:y,typicalHalfwidthCharacterWidth:n.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:b,spaceWidth:o.width,middotWidth:E.width,wsmiddotWidth:_.width,maxDigitWidth:S},!0)}};(eg=t$||(t$={})).serviceIds=new Map,eg.DI_TARGET="$di$target",eg.DI_DEPENDENCIES="$di$dependencies",eg.getServiceDependencies=function(e){return e[eg.DI_DEPENDENCIES]||[]};let oW=oG("instantiationService");function oG(e){if(t$.serviceIds.has(e))return t$.serviceIds.get(e);let t=function(e,i,n){if(3!=arguments.length)throw Error("@IServiceName-decorator can only be used to decorate a parameter");e[t$.DI_TARGET]===e?e[t$.DI_DEPENDENCIES].push({id:t,index:n}):(e[t$.DI_DEPENDENCIES]=[{id:t,index:n}],e[t$.DI_TARGET]=e)};return t.toString=()=>e,t$.serviceIds.set(e,t),t}let oz=oG("codeEditorService");function oY(e,t){if(!e)throw Error(t?`Assertion failed (${t})`:"Assertion Failed")}function oK(e,t="Unreachable"){throw Error(t)}function o$(e){e()||(e(),i1(new nt("Assertion Failed")))}function oX(e,t){let i=0;for(;i\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw i7(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;let e=this._advance();switch(e){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){let e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){let e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(o0("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(o0("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(o0("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&this._input.charCodeAt(this._current)===e&&(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){let t=this._start,i=this._input.substring(this._start,this._current),n={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(n)}_string(){this.stringRe.lastIndex=this._start;let e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;let t=this._input.substring(this._start,this._current),i=o4._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(o1);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let e=this._current,t=!1,i=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(o2);return}let n=this._input.charCodeAt(e);if(t)t=!1;else if(47!==n||i)91===n?i=!0:92===n?t=!0:93===n&&(i=!1);else{e++;break}e++}for(;e=this._input.length}}o4._regexFlags=new Set(["i","g","s","m","y","u"].map(e=>e.charCodeAt(0))),o4._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);let o5=new Map;o5.set("false",!1),o5.set("true",!0),o5.set("isMac",nY.dz),o5.set("isLinux",nY.IJ),o5.set("isWindows",nY.ED),o5.set("isWeb",nY.$L),o5.set("isMacNative",nY.dz&&!nY.$L),o5.set("isEdge",nY.un),o5.set("isFirefox",nY.vU),o5.set("isChrome",nY.i7),o5.set("isSafari",nY.G6);let o6=Object.prototype.hasOwnProperty,o3={regexParsingWithErrorRecovery:!0},o9=(0,rL.NC)("contextkey.parser.error.emptyString","Empty context key expression"),o7=(0,rL.NC)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),o8=(0,rL.NC)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),se=(0,rL.NC)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),st=(0,rL.NC)("contextkey.parser.error.unexpectedToken","Unexpected token"),si=(0,rL.NC)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),sn=(0,rL.NC)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),sr=(0,rL.NC)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class so{constructor(e=o3){this._config=e,this._scanner=new o4,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""===e){this._parsingErrors.push({message:o9,offset:0,lexeme:"",additionalInfo:o7});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{let e=this._expr();if(!this._isAtEnd()){let e=this._peek(),t=17===e.type?si:void 0;throw this._parsingErrors.push({message:st,offset:e.offset,lexeme:o4.getLexeme(e),additionalInfo:t}),so._parseError}return e}catch(e){if(e!==so._parseError)throw e;return}}_expr(){return this._or()}_or(){let e=[this._and()];for(;this._matchOne(16);){let t=this._and();e.push(t)}return 1===e.length?e[0]:ss.or(...e)}_and(){let e=[this._term()];for(;this._matchOne(15);){let t=this._term();e.push(t)}return 1===e.length?e[0]:ss.and(...e)}_term(){if(this._matchOne(2)){let e=this._peek();switch(e.type){case 11:return this._advance(),sl.INSTANCE;case 12:return this._advance(),sh.INSTANCE;case 0:{this._advance();let e=this._expr();return this._consume(1,se),null==e?void 0:e.negate()}case 17:return this._advance(),sf.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){let e=this._peek();switch(e.type){case 11:return this._advance(),ss.true();case 12:return this._advance(),ss.false();case 0:{this._advance();let e=this._expr();return this._consume(1,se),e}case 17:{let t=e.lexeme;if(this._advance(),this._matchOne(9)){let e=this._peek();if(!this._config.regexParsingWithErrorRecovery){let i;if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);let n=e.lexeme,r=n.lastIndexOf("/"),o=r===n.length-1?void 0:this._removeFlagsGY(n.substring(r+1));try{i=new RegExp(n.substring(1,r),o)}catch(t){throw this._errExpectedButGot("REGEX",e)}return sS.create(t,i)}switch(e.type){case 10:case 19:{let i;let n=[e.lexeme];this._advance();let r=this._peek(),o=0;for(let t=0;t=0){let o=i.slice(t+1,r),s="i"===i[r+1]?"i":"";try{n=new RegExp(o,s)}catch(t){throw this._errExpectedButGot("REGEX",e)}}}if(null===n)throw this._errExpectedButGot("REGEX",e);return sS.create(t,n)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,o8);let e=this._value();return ss.notIn(t,e)}let i=this._peek().type;switch(i){case 3:{this._advance();let e=this._value();if(18===this._previous().type)return ss.equals(t,e);switch(e){case"true":return ss.has(t);case"false":return ss.not(t);default:return ss.equals(t,e)}}case 4:{this._advance();let e=this._value();if(18===this._previous().type)return ss.notEquals(t,e);switch(e){case"true":return ss.not(t);case"false":return ss.has(t);default:return ss.notEquals(t,e)}}case 5:return this._advance(),s_.create(t,this._value());case 6:return this._advance(),sC.create(t,this._value());case 7:return this._advance(),sv.create(t,this._value());case 8:return this._advance(),sE.create(t,this._value());case 13:return this._advance(),ss.in(t,this._value());default:return ss.has(t)}}case 20:throw this._parsingErrors.push({message:sn,offset:e.offset,lexeme:"",additionalInfo:sr}),so._parseError;default:throw this._errExpectedButGot(`true | false | KEY | KEY '=~' REGEX | KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){let e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return!this._isAtEnd()&&this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,i){let n=(0,rL.NC)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,o4.getLexeme(t)),r=t.offset,o=o4.getLexeme(t);return this._parsingErrors.push({message:n,offset:r,lexeme:o,additionalInfo:i}),so._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}so._parseError=Error();class ss{static false(){return sl.INSTANCE}static true(){return sh.INSTANCE}static has(e){return su.create(e)}static equals(e,t){return sd.create(e,t)}static notEquals(e,t){return sp.create(e,t)}static regex(e,t){return sS.create(e,t)}static in(e,t){return sc.create(e,t)}static notIn(e,t){return sg.create(e,t)}static not(e){return sf.create(e)}static and(...e){return sb.create(e,null,!0)}static or(...e){return sA.create(e,null,!0)}static deserialize(e){if(null==e)return;let t=this._parser.parse(e);return t}}function sa(e,t){return e.cmp(t)}ss._parser=new so({regexParsingWithErrorRecovery:!1});class sl{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return sh.INSTANCE}}sl.INSTANCE=new sl;class sh{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return sl.INSTANCE}}sh.INSTANCE=new sh;class su{static create(e,t=null){let i=o5.get(e);return"boolean"==typeof i?i?sh.INSTANCE:sl.INSTANCE:new su(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){var t,i;return e.type!==this.type?this.type-e.type:(t=this.key,t<(i=e.key)?-1:t>i?1:0)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){let e=o5.get(this.key);return"boolean"==typeof e?e?sh.INSTANCE:sl.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=sf.create(this.key,this)),this.negated}}class sd{static create(e,t,i=null){if("boolean"==typeof t)return t?su.create(e,i):sf.create(e,i);let n=o5.get(e);return"boolean"==typeof n?t===(n?"true":"false")?sh.INSTANCE:sl.INSTANCE:new sd(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:sN(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){let e=o5.get(this.key);return"boolean"==typeof e?this.value===(e?"true":"false")?sh.INSTANCE:sl.INSTANCE:this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=sp.create(this.key,this.value,this)),this.negated}}class sc{static create(e,t){return new sc(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:sN(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&this.key===e.key&&this.valueKey===e.valueKey}substituteConstants(){return this}evaluate(e){let t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.includes(i):"string"==typeof i&&"object"==typeof t&&null!==t&&o6.call(t,i)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=sg.create(this.key,this.valueKey)),this.negated}}class sg{static create(e,t){return new sg(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=sc.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class sp{static create(e,t,i=null){if("boolean"==typeof t)return t?sf.create(e,i):su.create(e,i);let n=o5.get(e);return"boolean"==typeof n?t===(n?"true":"false")?sl.INSTANCE:sh.INSTANCE:new sp(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:sN(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){let e=o5.get(this.key);return"boolean"==typeof e?this.value===(e?"true":"false")?sl.INSTANCE:sh.INSTANCE:this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=sd.create(this.key,this.value,this)),this.negated}}class sf{static create(e,t=null){let i=o5.get(e);return"boolean"==typeof i?i?sl.INSTANCE:sh.INSTANCE:new sf(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){var t,i;return e.type!==this.type?this.type-e.type:(t=this.key,t<(i=e.key)?-1:t>i?1:0)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){let e=o5.get(this.key);return"boolean"==typeof e?e?sl.INSTANCE:sh.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=su.create(this.key,this)),this.negated}}function sm(e,t){if("string"==typeof e){let t=parseFloat(e);isNaN(t)||(e=t)}return"string"==typeof e||"number"==typeof e?t(e):sl.INSTANCE}class sv{static create(e,t,i=null){return sm(t,t=>new sv(e,t,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:sN(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=sC.create(this.key,this.value,this)),this.negated}}class sE{static create(e,t,i=null){return sm(t,t=>new sE(e,t,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:sN(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=s_.create(this.key,this.value,this)),this.negated}}class s_{static create(e,t,i=null){return sm(t,t=>new s_(e,t,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:sN(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))new sC(e,t,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:sN(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=sv.create(this.key,this.value,this)),this.negated}}class sS{static create(e,t){return new sS(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.keye.key)return 1;let t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return ti?1:0}equals(e){if(e.type===this.type){let t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i}return!1}substituteConstants(){return this}evaluate(e){let t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){let e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=sy.create(this)),this.negated}}class sy{static create(e){return new sy(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function sT(e){let t=null;for(let i=0,n=e.length;ie.expr.length)return 1;for(let t=0,i=this.expr.length;t1;){let e=n[n.length-1];if(9!==e.type)break;n.pop();let t=n.pop(),r=0===n.length,o=sA.create(e.expr.map(e=>sb.create([e,t],null,i)),null,r);o&&(n.push(o),n.sort(sa))}if(1===n.length)return n[0];if(i){for(let e=0;ee.serialize()).join(" && ")}keys(){let e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){let e=[];for(let t of this.expr)e.push(t.negate());this.negated=sA.create(e,this,!0)}return this.negated}}class sA{static create(e,t,i){return sA._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let t=0,i=this.expr.length;te.serialize()).join(" || ")}keys(){let e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){let e=[];for(let t of this.expr)e.push(t.negate());for(;e.length>1;){let t=e.shift(),i=e.shift(),n=[];for(let e of sw(t))for(let t of sw(i))n.push(sb.create([e,t],null,!1));e.unshift(sA.create(n,null,!1))}this.negated=sA.create(e,this,!0)}return this.negated}}class sR extends su{static all(){return sR._info.values()}constructor(e,t,i){super(e,null),this._defaultValue=t,"object"==typeof i?sR._info.push(Object.assign(Object.assign({},i),{key:e})):!0!==i&&sR._info.push({key:e,description:i,type:null!=t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return sd.create(this.key,e)}}sR._info=[];let sL=oG("contextKeyService");function sN(e,t,i,n){return ei?1:tn?1:0}function sI(e,t){let i=0,n=0;for(;ithis._onDiffUpdated())),this._options.followsCaret&&this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition(e=>{this.ignoreSelectionChange||(this._updateAccessibilityState(e.position.lineNumber),this.nextIdx=-1)})),this._init()}_init(){let e=this._editor.getLineChanges();if(!e)return}_onDiffUpdated(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&null!==this._editor.getLineChanges()&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))}_compute(e){this.ranges=[],e&&e.forEach(e=>{!this._options.ignoreCharChanges&&e.charChanges?e.charChanges.forEach(e=>{this.ranges.push({rhs:!0,range:new r_(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)})}):0===e.modifiedEndLineNumber?this.ranges.push({rhs:!0,range:new r_(e.modifiedStartLineNumber,1,e.modifiedStartLineNumber+1,1)}):this.ranges.push({rhs:!0,range:new r_(e.modifiedStartLineNumber,1,e.modifiedEndLineNumber+1,1)})}),this.ranges.sort((e,t)=>r_.compareRangesUsingStarts(e.range,t.range)),this._onDidUpdate.fire(this)}_initIdx(e){let t=!1,i=this._editor.getPosition();if(!i){this.nextIdx=0;return}for(let n=0,r=this.ranges.length;n=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));let i=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{let e=i.range.getStartPosition();this._editor.setPosition(e),this._editor.revealRangeInCenter(i.range,t),this._updateAccessibilityState(e.lineNumber,!0)}finally{this.ignoreSelectionChange=!1}}_updateAccessibilityState(e,t){var i;let n=null===(i=this._editor.getModel())||void 0===i?void 0:i.modified;if(!n)return;let r=n.getLineDecorations(e).find(e=>"line-insert"===e.options.className);if(r)this._audioCueService.playAudioCue(oQ.diffLineModified,!0);else{if(!t)return;this._audioCueService.playAudioCue(oQ.diffLineDeleted,!0)}let o=this._codeEditorService.getActiveCodeEditor();t&&o&&r&&this._accessibilityService.isScreenReaderOptimized()&&(o.setSelection({startLineNumber:e,startColumn:0,endLineNumber:e,endColumn:Number.MAX_VALUE}),o.writeScreenReaderContent("diff-navigation"))}canNavigate(){return this.ranges&&this.ranges.length>0}next(e=0){this.canNavigateNext()&&this._move(!0,e)}previous(e=0){this.canNavigatePrevious()&&this._move(!1,e)}canNavigateNext(){return this.canNavigateLoop()||this.nextIdx=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([sD(2,oq),sD(3,oz),sD(4,sO)],sk);let sP={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"};(ep=tX||(tX={}))[ep.Left=1]="Left",ep[ep.Center=2]="Center",ep[ep.Right=4]="Right",ep[ep.Full=7]="Full",(ef=tj||(tj={}))[ef.Left=1]="Left",ef[ef.Right=2]="Right",(em=tq||(tq={}))[em.Inline=1]="Inline",em[em.Gutter=2]="Gutter",(ev=tZ||(tZ={}))[ev.Both=0]="Both",ev[ev.Right=1]="Right",ev[ev.Left=2]="Left",ev[ev.None=3]="None";class sF{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=!!e.insertSpaces,this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=!!e.trimAutoWhitespace,this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,oj.fS)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class sB{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}class sU{constructor(e,t,i,n,r,o){this.identifier=e,this.range=t,this.text=i,this.forceMoveMarkers=n,this.isAutoWhitespaceEdit=r,this._isTracked=o}}class sH{constructor(e,t,i){this.regex=e,this.wordSeparators=t,this.simpleSearch=i}}class sV{constructor(e,t,i){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=i}}var sW=i(270);(eE=tJ||(tJ={}))[eE.None=0]="None",eE[eE.Indent=1]="Indent",eE[eE.IndentOutdent=2]="IndentOutdent",eE[eE.Outdent=3]="Outdent";class sG{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t0&&e.getLanguageId(s-1)===r;)s--;return new s$(e,r,s,o+1,e.getStartOffset(s),e.getEndOffset(o))}class s${constructor(e,t,i,n,r,o){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=n,this.firstCharOffset=r,this._lastCharOffset=o}getLineContent(){let e=this._actual.getLineContent();return e.substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(e){let t=this._actual.getLineContent();return t.substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}function sX(e){return(3&e)!=0}class sj{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(e=>new sG(e)):e.brackets?this._autoClosingPairs=e.brackets.map(e=>new sG({open:e[0],close:e[1]})):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){let t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new sG({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"==typeof e.autoCloseBefore?e.autoCloseBefore:sj.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"==typeof e.autoCloseBefore?e.autoCloseBefore:sj.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}sj.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n ",sj.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n ";var sq=i(9488),sZ=i(21876).Buffer;let sJ=void 0!==sZ;new rF(()=>new Uint8Array(256));class sQ{static wrap(e){return sJ&&!sZ.isBuffer(e)&&(e=sZ.from(e.buffer,e.byteOffset,e.byteLength)),new sQ(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return sJ?this.buffer.toString():(r||(r=new TextDecoder),r.decode(this.buffer))}}function s0(e,t){return 16777216*e[t]+65536*e[t+1]+256*e[t+2]+e[t+3]}function s1(e,t,i){e[i+3]=t,t>>>=8,e[i+2]=t,t>>>=8,e[i+1]=t,t>>>=8,e[i]=t}function s2(){return o||(o=new TextDecoder("UTF-16LE")),o}function s4(){return a||(a=nY.r()?s2():(s||(s=new TextDecoder("UTF-16BE")),s)),a}class s5{constructor(e){this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(0===this._bufferLength)return"";let e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return s4().decode(e)}_flushBuffer(){let e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}appendCharCode(e){let t=this._capacity-this._bufferLength;t<=1&&(0===t||r3(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIICharCode(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendString(e){let t=e.length;if(this._bufferLength+t>=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=e;return}for(let i=0;i[e[0].toLowerCase(),e[1].toLowerCase()]);let i=[];for(let e=0;e{let[i,n]=e,[r,o]=t;return i===r||i===o||n===r||n===o},r=(e,n)=>{let r=Math.min(e,n),o=Math.max(e,n);for(let e=0;e0&&o.push({open:r,close:s})}return o}(t);for(let t of(this.brackets=i.map((t,n)=>new s6(e,n,t.open,t.close,function(e,t,i,n){let r=[];r=(r=r.concat(e)).concat(t);for(let e=0,t=r.length;e=0&&n.push(t);for(let t of o.close)t.indexOf(e)>=0&&n.push(t)}}function s7(e,t){return e.length-t.length}function s8(e){if(e.length<=1)return e;let t=[],i=new Set;for(let n of e)i.has(n)||(t.push(n),i.add(n));return t}function ae(e){let t=/^[\w ]+$/.test(e);return e=rV(e),t?`\\b${e}\\b`:e}function at(e){let t=`(${e.map(ae).join(")|(")})`;return rG(t,!0)}let ai=(_=null,C=null,function(e){return _!==e&&(C=function(e){let t=new Uint16Array(e.length),i=0;for(let n=e.length-1;n>=0;n--)t[i++]=e.charCodeAt(n);return s4().decode(t)}(_=e)),C});class an{static _findPrevBracketInText(e,t,i,n){let r=i.match(e);if(!r)return null;let o=i.length-(r.index||0),s=r[0].length,a=n+o;return new r_(t,a-s+1,t,a+1)}static findPrevBracketInRange(e,t,i,n,r){let o=ai(i),s=o.substring(i.length-r,i.length-n);return this._findPrevBracketInText(e,t,s,n)}static findNextBracketInText(e,t,i,n){let r=i.match(e);if(!r)return null;let o=r.index||0,s=r[0].length;if(0===s)return null;let a=n+o;return new r_(t,a+1,t,a+1+s)}static findNextBracketInRange(e,t,i,n,r){let o=i.substring(n,r);return this.findNextBracketInText(e,t,o,n)}}class ar{constructor(e){this._richEditBrackets=e}getElectricCharacters(){let e=[];if(this._richEditBrackets)for(let t of this._richEditBrackets.brackets)for(let i of t.close){let t=i.charAt(i.length-1);e.push(t)}return(0,sq.EB)(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;let n=t.findTokenIndexAtOffset(i-1);if(sX(t.getStandardTokenType(n)))return null;let r=this._richEditBrackets.reversedRegex,o=t.getLineContent().substring(0,i-1)+e,s=an.findPrevBracketInRange(r,1,o,0,o.length);if(!s)return null;let a=o.substring(s.startColumn-1,s.endColumn-1).toLowerCase(),l=this._richEditBrackets.textIsOpenBracket[a];if(l)return null;let h=t.getActualLineContentBefore(s.startColumn-1);return/^\s*$/.test(h)?{matchOpenBracket:a}:null}}function ao(e){return e.global&&(e.lastIndex=0),!0}class as{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&ao(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&ao(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&ao(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&ao(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class aa{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach(e=>{let t=aa._createOpenBracketRegExp(e[0]),i=aa._createCloseBracketRegExp(e[1]);t&&i&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:i})}),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,i,n){if(e>=3)for(let e=0,r=this._regExpRules.length;e!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)));if(o)return r.action}if(e>=2&&i.length>0&&n.length>0)for(let e=0,t=this._brackets.length;e=2&&i.length>0)for(let e=0,t=this._brackets.length;e0&&"#"===e.charAt(e.length-1)?e.substring(0,e.length-1):e]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};am.add(aE.JSONContribution,a_);let aC={Configuration:"base.contributions.configuration"},aS={properties:{},patternProperties:{}},ay={properties:{},patternProperties:{}},aT={properties:{},patternProperties:{}},ab={properties:{},patternProperties:{}},aA={properties:{},patternProperties:{}},aR={properties:{},patternProperties:{}},aL="vscode://schemas/settings/resourceLanguage",aN=am.as(aE.JSONContribution),aI="\\[([^\\]]+)\\]",aw=RegExp(aI,"g"),aO=`^(${aI})+$`,ax=new RegExp(aO);function aD(e){let t=[];if(ax.test(e)){let i=aw.exec(e);for(;null==i?void 0:i.length;){let n=i[1].trim();n&&t.push(n),i=aw.exec(e)}}return(0,sq.EB)(t)}let aM=new class{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new nT,this._onDidUpdateConfiguration=new nT,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:rL.NC("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},aN.registerSchema(aL,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){let i=new Set;this.doRegisterConfigurations(e,t,i),aN.registerSchema(aL,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){let t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){var i;let n=[];for(let{overrides:r,source:o}of e)for(let e in r)if(t.add(e),ax.test(e)){let t=this.configurationDefaultsOverrides.get(e),s=null!==(i=null==t?void 0:t.valuesSources)&&void 0!==i?i:new Map;if(o)for(let t of Object.keys(r[e]))s.set(t,o);let a=Object.assign(Object.assign({},(null==t?void 0:t.value)||{}),r[e]);this.configurationDefaultsOverrides.set(e,{source:o,value:a,valuesSources:s});let l=e.replace(/[\[\]]/g,""),h={type:"object",default:a,description:rL.NC("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",l),$ref:aL,defaultDefaultValue:a,source:rS.HD(o)?void 0:o,defaultValueSource:o};n.push(...aD(e)),this.configurationProperties[e]=h,this.defaultLanguageConfigurationOverridesNode.properties[e]=h}else{this.configurationDefaultsOverrides.set(e,{value:r[e],source:o});let t=this.configurationProperties[e];t&&(this.updatePropertyDefaultValue(e,t),this.updateSchema(e,t))}this.doRegisterOverrideIdentifiers(n)}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(let t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,i){e.forEach(e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,i),this.configurationContributors.push(e),this.registerJSONConfiguration(e)})}validateAndRegisterProperties(e,t=!0,i,n,r=3,o){var s;r=rS.Jp(e.scope)?r:e.scope;let a=e.properties;if(a)for(let e in a){let l=a[e];if(t&&function(e,t){var i,n,r,o;return e.trim()?ax.test(e)?rL.NC("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==aM.getConfigurationProperties()[e]?rL.NC("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):(null===(i=t.policy)||void 0===i?void 0:i.name)&&void 0!==aM.getPolicyConfigurations().get(null===(n=t.policy)||void 0===n?void 0:n.name)?rL.NC("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,null===(r=t.policy)||void 0===r?void 0:r.name,aM.getPolicyConfigurations().get(null===(o=t.policy)||void 0===o?void 0:o.name)):null:rL.NC("config.property.empty","Cannot register an empty property")}(e,l)){delete a[e];continue}if(l.source=i,l.defaultDefaultValue=a[e].default,this.updatePropertyDefaultValue(e,l),ax.test(e)?l.scope=void 0:(l.scope=rS.Jp(l.scope)?r:l.scope,l.restricted=rS.Jp(l.restricted)?!!(null==n?void 0:n.includes(e)):l.restricted),a[e].hasOwnProperty("included")&&!a[e].included){this.excludedConfigurationProperties[e]=a[e],delete a[e];continue}this.configurationProperties[e]=a[e],(null===(s=a[e].policy)||void 0===s?void 0:s.name)&&this.policyConfigurations.set(a[e].policy.name,e),!a[e].deprecationMessage&&a[e].markdownDeprecationMessage&&(a[e].deprecationMessage=a[e].markdownDeprecationMessage),o.add(e)}let l=e.allOf;if(l)for(let e of l)this.validateAndRegisterProperties(e,t,i,n,r,o)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){let t=e=>{let i=e.properties;if(i)for(let e in i)this.updateSchema(e,i[e]);let n=e.allOf;null==n||n.forEach(t)};t(e)}updateSchema(e,t){switch(aS.properties[e]=t,t.scope){case 1:ay.properties[e]=t;break;case 2:aT.properties[e]=t;break;case 6:ab.properties[e]=t;break;case 3:aA.properties[e]=t;break;case 4:aR.properties[e]=t;break;case 5:aR.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(let e of this.overrideIdentifiers.values()){let t=`[${e}]`,i={type:"object",description:rL.NC("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:rL.NC("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:aL};this.updatePropertyDefaultValue(t,i),aS.properties[t]=i,ay.properties[t]=i,aT.properties[t]=i,ab.properties[t]=i,aA.properties[t]=i,aR.properties[t]=i}}registerOverridePropertyPatternKey(){let e={type:"object",description:rL.NC("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:rL.NC("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:aL};aS.patternProperties[aO]=e,ay.patternProperties[aO]=e,aT.patternProperties[aO]=e,ab.patternProperties[aO]=e,aA.patternProperties[aO]=e,aR.patternProperties[aO]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){let i=this.configurationDefaultsOverrides.get(e),n=null==i?void 0:i.value,r=null==i?void 0:i.source;rS.o8(n)&&(n=t.defaultDefaultValue,r=void 0),rS.o8(n)&&(n=function(e){let t=Array.isArray(e)?e[0]:e;switch(t){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=n,t.defaultValueSource=r}};am.add(aC.Configuration,aM);let ak=new class{constructor(){this._onDidChangeLanguages=new nT,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,i=this._languages.length;t{let t=new Set;return{info:new aH(this,e,t),closing:t}}),r=new rP(e=>{let t=new Set,i=new Set;return{info:new aV(this,e,t,i),opening:t,openingColorized:i}});for(let[e,t]of i){let i=n.get(e),o=r.get(t);i.closing.add(o.info),o.opening.add(i.info)}let o=t.colorizedBracketPairs?aB(t.colorizedBracketPairs):i.filter(e=>!("<"===e[0]&&">"===e[1]));for(let[e,t]of o){let i=n.get(e),o=r.get(t);i.closing.add(o.info),o.openingColorized.add(i.info),o.opening.add(i.info)}this._openingBrackets=new Map([...n.cachedValues].map(([e,t])=>[e,t.info])),this._closingBrackets=new Map([...r.cachedValues].map(([e,t])=>[e,t.info]))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}}function aB(e){return e.filter(([e,t])=>""!==e&&""!==t)}class aU{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class aH extends aU{constructor(e,t,i){super(e,t),this.openedBrackets=i,this.isOpeningBracket=!0}}class aV extends aU{constructor(e,t,i,n){super(e,t),this.openingBrackets=i,this.openingColorizedBrackets=n,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var aW=function(e,t){return function(i,n){t(i,n,e)}};class aG{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}let az=oG("languageConfigurationService"),aY=class extends nc{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new a0),this.onDidChangeEmitter=this._register(new nT),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;let i=new Set(Object.values(aK));this._register(this.configurationService.onDidChangeConfiguration(e=>{let t=e.change.keys.some(e=>i.has(e)),n=e.change.overrides.filter(([e,t])=>t.some(e=>i.has(e))).map(([e])=>e);if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new aG(void 0));else for(let e of n)this.languageService.isRegisteredLanguageId(e)&&(this.configurations.delete(e),this.onDidChangeEmitter.fire(new aG(e)))})),this._register(this._registry.onDidChange(e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new aG(e.languageId))}))}register(e,t,i){return this._registry.register(e,t,i)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,i,n){let r=t.getLanguageConfiguration(e);if(!r){if(!n.isRegisteredLanguageId(e))return new a1(e,{});r=new a1(e,{})}let o=function(e,t){let i=t.getValue(aK.brackets,{overrideIdentifier:e}),n=t.getValue(aK.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:a$(i),colorizedBracketPairs:a$(n)}}(r.languageId,i),s=aZ([r.underlyingConfig,o]),a=new a1(r.languageId,s);return a}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};aY=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([aW(0,al),aW(1,ac)],aY);let aK={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function a$(e){if(Array.isArray(e))return e.map(e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]}).filter(e=>!!e)}function aX(e,t,i){let n=e.getLineContent(t),r=r$(n);return r.length>i-1&&(r=r.substring(0,i-1)),r}function aj(e,t,i){e.tokenization.forceTokenization(t);let n=e.tokenization.getLineTokens(t),r=void 0===i?e.getLineMaxColumn(t)-1:i-1;return sK(n,r)}class aq{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){let i=new aJ(e,t,++this._order);return this._entries.push(i),this._resolved=null,nu(()=>{for(let e=0;ee.configuration)))}}function aZ(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(let i of e)t={comments:i.comments||t.comments,brackets:i.brackets||t.brackets,wordPattern:i.wordPattern||t.wordPattern,indentationRules:i.indentationRules||t.indentationRules,onEnterRules:i.onEnterRules||t.onEnterRules,autoClosingPairs:i.autoClosingPairs||t.autoClosingPairs,surroundingPairs:i.surroundingPairs||t.surroundingPairs,autoCloseBefore:i.autoCloseBefore||t.autoCloseBefore,folding:i.folding||t.folding,colorizedBracketPairs:i.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:i.__electricCharacterSupport||t.__electricCharacterSupport};return t}class aJ{constructor(e,t,i){this.configuration=e,this.priority=t,this.order=i}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class aQ{constructor(e){this.languageId=e}}class a0 extends nc{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new nT),this.onDidChange=this._onDidChange.event,this._register(this.register(aP,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,i=0){let n=this._entries.get(e);n||(n=new aq(e),this._entries.set(e,n));let r=n.register(t,i);return this._onDidChange.fire(new aQ(e)),nu(()=>{r.dispose(),this._onDidChange.fire(new aQ(e))})}getLanguageConfiguration(e){let t=this._entries.get(e);return(null==t?void 0:t.getResolvedConfiguration())||null}}class a1{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new aa(this.underlyingConfig):null,this.comments=a1._handleComments(this.underlyingConfig),this.characterPair=new sj(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||sW.Af,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new as(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new aF(e,this.underlyingConfig)}getWordDefinition(){return(0,sW.eq)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new s3(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new ar(this.brackets)),this._electricCharacter}onEnter(e,t,i,n){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,i,n):null}getAutoClosingPairs(){return new sz(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){let t=e.comments;if(!t)return null;let i={};if(t.lineComment&&(i.lineCommentToken=t.lineComment),t.blockComment){let[e,n]=t.blockComment;i.blockCommentStartToken=e,i.blockCommentEndToken=n}return i}}af(az,aY,1);let a2=new class{clone(){return this}equals(e){return this===e}};function a4(e,t){return new rI([new rN(0,"",e)],t)}function a5(e,t){let i=new Uint32Array(2);return i[0]=0,i[1]=(e<<0|33587200)>>>0,new rw(i,null===t?a2:t)}let a6=oG("modelService"),a3=Symbol("MicrotaskDelay");var a9=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})},a7=function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=e[i]&&function(t){return new Promise(function(n,r){!function(e,t,i,n){Promise.resolve(n).then(function(t){e({value:t,done:i})},t)}(n,r,(t=e[i](t)).done,t.value)})}}};function a8(e){return!!e&&"function"==typeof e.then}function le(e){let t=new nD,i=e(t.token),n=new Promise((e,n)=>{let r=t.token.onCancellationRequested(()=>{r.dispose(),t.dispose(),n(new i3)});Promise.resolve(i).then(i=>{r.dispose(),t.dispose(),e(i)},e=>{r.dispose(),t.dispose(),n(e)})});return new class{cancel(){t.cancel()}then(e,t){return n.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return n.finally(e)}}}class lt{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.isDisposed)throw Error("Throttler is disposed");if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){let e=()=>{if(this.queuedPromise=null,this.isDisposed)return;let e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise(t=>{this.activePromise.then(e,e).then(t)})}return new Promise((e,t)=>{this.queuedPromise.then(e,t)})}return this.activePromise=e(),new Promise((e,t)=>{this.activePromise.then(t=>{this.activePromise=null,e(t)},e=>{this.activePromise=null,t(e)})})}dispose(){this.isDisposed=!0}}let li=(e,t)=>{let i=!0,n=setTimeout(()=>{i=!1,t()},e);return{isTriggered:()=>i,dispose:()=>{clearTimeout(n),i=!1}}},ln=e=>{let t=!0;return queueMicrotask(()=>{t&&(t=!1,e())}),{isTriggered:()=>t,dispose:()=>{t=!1}}};class lr{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((e,t)=>{this.doResolve=e,this.doReject=t}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){let e=this.task;return this.task=null,e()}}));let i=()=>{var e;this.deferred=null,null===(e=this.doResolve)||void 0===e||e.call(this,null)};return this.deferred=t===a3?ln(i):li(t,i),this.completionPromise}isTriggered(){var e;return!!(null===(e=this.deferred)||void 0===e?void 0:e.isTriggered())}cancel(){var e;this.cancelTimeout(),this.completionPromise&&(null===(e=this.doReject)||void 0===e||e.call(this,new i3),this.completionPromise=null)}cancelTimeout(){var e;null===(e=this.deferred)||void 0===e||e.dispose(),this.deferred=null}dispose(){this.cancel()}}class lo{constructor(e){this.delayer=new lr(e),this.throttler=new lt}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}function ls(e,t){return t?new Promise((i,n)=>{let r=setTimeout(()=>{o.dispose(),i()},e),o=t.onCancellationRequested(()=>{clearTimeout(r),o.dispose(),n(new i3)})}):le(t=>ls(e,t))}function la(e,t=0){let i=setTimeout(e,t);return nu(()=>clearTimeout(i))}class ll{constructor(e,t){this._token=-1,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}class lh{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}}class lu{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return -1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){var e;null===(e=this.runner)||void 0===e||e.call(this)}}l="function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback?e=>{(0,nY.fn)(()=>{if(t)return;let i=Date.now()+15;e(Object.freeze({didTimeout:!0,timeRemaining:()=>Math.max(0,i-Date.now())}))});let t=!1;return{dispose(){t||(t=!0)}}}:(e,t)=>{let i=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0),n=!1;return{dispose(){n||(n=!0,cancelIdleCallback(i))}}};class ld{constructor(e){this._didRun=!1,this._executor=()=>{try{this._value=e()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=l(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class lc{get isRejected(){var e;return(null===(e=this.outcome)||void 0===e?void 0:e.outcome)===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}complete(e){return new Promise(t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()})}error(e){return new Promise(t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()})}cancel(){return this.error(new i3)}}(e_=tQ||(tQ={})).settled=function(e){return a9(this,void 0,void 0,function*(){let t;let i=yield Promise.all(e.map(e=>e.then(e=>e,e=>{t||(t=e)})));if(void 0!==t)throw t;return i})},e_.withAsyncBody=function(e){return new Promise((t,i)=>a9(this,void 0,void 0,function*(){try{yield e(t,i)}catch(e){i(e)}}))};class lg{static fromArray(e){return new lg(t=>{t.emitMany(e)})}static fromPromise(e){return new lg(t=>a9(this,void 0,void 0,function*(){t.emitMany((yield e))}))}static fromPromises(e){return new lg(t=>a9(this,void 0,void 0,function*(){yield Promise.all(e.map(e=>a9(this,void 0,void 0,function*(){return t.emitOne((yield e))})))}))}static merge(e){return new lg(t=>a9(this,void 0,void 0,function*(){yield Promise.all(e.map(e=>{var i,n,r;return a9(this,void 0,void 0,function*(){var o,s,a,l;try{for(i=!0,n=a7(e);!(o=(r=yield n.next()).done);i=!0)l=r.value,i=!1,t.emitOne(l)}catch(e){s={error:e}}finally{try{!i&&!o&&(a=n.return)&&(yield a.call(n))}finally{if(s)throw s.error}}})}))}))}constructor(e){this._state=0,this._results=[],this._error=null,this._onStateChanged=new nT,queueMicrotask(()=>a9(this,void 0,void 0,function*(){let t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{yield Promise.resolve(e(t)),this.resolve()}catch(e){this.reject(e)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:()=>a9(this,void 0,void 0,function*(){for(;;){if(2===this._state)throw this._error;if(ea9(this,void 0,void 0,function*(){var n,r,o,s;try{for(var a,l=!0,h=a7(e);!(n=(a=yield h.next()).done);l=!0)s=a.value,l=!1,i.emitOne(t(s))}catch(e){r={error:e}}finally{try{!l&&!n&&(o=h.return)&&(yield o.call(h))}finally{if(r)throw r.error}}}))}map(e){return lg.map(this,e)}static filter(e,t){return new lg(i=>a9(this,void 0,void 0,function*(){var n,r,o,s;try{for(var a,l=!0,h=a7(e);!(n=(a=yield h.next()).done);l=!0)s=a.value,l=!1,t(s)&&i.emitOne(s)}catch(e){r={error:e}}finally{try{!l&&!n&&(o=h.return)&&(yield o.call(h))}finally{if(r)throw r.error}}}))}filter(e){return lg.filter(this,e)}static coalesce(e){return lg.filter(e,e=>!!e)}coalesce(){return lg.coalesce(this)}static toPromise(e){var t,i,n,r,o,s,a;return a9(this,void 0,void 0,function*(){let l=[];try{for(t=!0,i=a7(e);!(r=(n=yield i.next()).done);t=!0)a=n.value,t=!1,l.push(a)}catch(e){o={error:e}}finally{try{!t&&!r&&(s=i.return)&&(yield s.call(i))}finally{if(o)throw o.error}}return l})}toPromise(){return lg.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}lg.EMPTY=lg.fromArray([]);let lp=!1;function lf(e){nY.$L&&(lp||(lp=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class lm{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.method=i,this.args=n,this.type=0}}class lv{constructor(e,t,i,n){this.vsWorker=e,this.seq=t,this.res=i,this.err=n,this.type=1}}class lE{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.eventName=i,this.arg=n,this.type=2}}class l_{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class lC{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class lS{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){let i=String(++this._lastSentReq);return new Promise((n,r)=>{this._pendingReplies[i]={resolve:n,reject:r},this._send(new lm(this._workerId,i,e,t))})}listen(e,t){let i=null,n=new nT({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,n),this._send(new lE(this._workerId,i,e,t))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new lC(this._workerId,i)),i=null}});return n.event}handleMessage(e){e&&e.vsWorker&&(-1===this._workerId||e.vsWorker===this._workerId)&&this._handleMessage(e)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}let t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;e.err.$isError&&((i=Error()).name=e.err.name,i.message=e.err.message,i.stack=e.err.stack),t.reject(i);return}t.resolve(e.res)}_handleRequestMessage(e){let t=e.req,i=this._handler.handleMessage(e.method,e.args);i.then(e=>{this._send(new lv(this._workerId,t,e,void 0))},e=>{e.detail instanceof Error&&(e.detail=i4(e.detail)),this._send(new lv(this._workerId,t,void 0,i4(e)))})}_handleSubscribeEventMessage(e){let t=e.req,i=this._handler.handleEvent(e.eventName,e.arg)(e=>{this._send(new l_(this._workerId,t,e))});this._pendingEvents.set(t,i)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){let t=[];if(0===e.type)for(let i=0;i{this._protocol.handleMessage(e)},e=>{null==n||n(e)})),this._protocol=new lS({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t)=>{if("function"!=typeof i[e])return Promise.reject(Error("Missing method "+e+" on main thread host."));try{return Promise.resolve(i[e].apply(i,t))}catch(e){return Promise.reject(e)}},handleEvent:(e,t)=>{if(lb(e)){let n=i[e].call(i,t);if("function"!=typeof n)throw Error(`Missing dynamic event ${e} on main thread host.`);return n}if(lT(e)){let t=i[e];if("function"!=typeof t)throw Error(`Missing event ${e} on main thread host.`);return t}throw Error(`Malformed event name ${e}`)}}),this._protocol.setWorkerId(this._worker.getId());let r=null,o=globalThis.require;void 0!==o&&"function"==typeof o.getConfig?r=o.getConfig():void 0!==globalThis.requirejs&&(r=globalThis.requirejs.s.contexts._.config);let s=(0,oj.$E)(i);this._onModuleLoaded=this._protocol.sendMessage("$initialize",[this._worker.getId(),JSON.parse(JSON.stringify(r)),t,s]);let a=(e,t)=>this._request(e,t),l=(e,t)=>this._protocol.listen(e,t);this._lazyProxy=new Promise((e,i)=>{n=i,this._onModuleLoaded.then(t=>{e(function(e,t,i){let n=e=>function(){let i=Array.prototype.slice.call(arguments,0);return t(e,i)},r=e=>function(t){return i(e,t)},o={};for(let t of e){if(lb(t)){o[t]=r(t);continue}if(lT(t)){o[t]=i(t,void 0);continue}o[t]=n(t)}return o}(t,a,l))},e=>{i(e),this._onError("Worker failed to load "+t,e)})})}getProxyObject(){return this._lazyProxy}_request(e,t){return new Promise((i,n)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(e,t).then(i,n)},n)})}_onError(e,t){console.error(e),console.info(t)}}function lT(e){return"o"===e[0]&&"n"===e[1]&&r1(e.charCodeAt(2))}function lb(e){return/^onDynamic/.test(e)&&r1(e.charCodeAt(9))}function lA(e,t){var i;let n=globalThis.MonacoEnvironment;if(null==n?void 0:n.createTrustedTypesPolicy)try{return n.createTrustedTypesPolicy(e,t)}catch(e){i1(e);return}try{return null===(i=window.trustedTypes)||void 0===i?void 0:i.createPolicy(e,t)}catch(e){i1(e);return}}let lR=lA("defaultWorkerFactory",{createScriptURL:e=>e});class lL{constructor(e,t,i,n,r){this.id=t;let o=function(e){let t=globalThis.MonacoEnvironment;if(t){if("function"==typeof t.getWorker)return t.getWorker("workerMain.js",e);if("function"==typeof t.getWorkerUrl){let i=t.getWorkerUrl("workerMain.js",e);return new Worker(lR?lR.createScriptURL(i):i,{name:e})}}throw Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}(i);("function"==typeof o.then?0:1)?this.worker=Promise.resolve(o):this.worker=o,this.postMessage(e,[]),this.worker.then(e=>{e.onmessage=function(e){n(e.data)},e.onmessageerror=r,"function"==typeof e.addEventListener&&e.addEventListener("error",r)})}getId(){return this.id}postMessage(e,t){var i;null===(i=this.worker)||void 0===i||i.then(i=>i.postMessage(e,t))}dispose(){var e;null===(e=this.worker)||void 0===e||e.then(e=>e.terminate()),this.worker=null}}class lN{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,t,i){let n=++lN.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new lL(e,n,this._label||"anonymous"+n,t,e=>{lf(e),this._webWorkerFailedBeforeError=e,i(e)})}}lN.LAST_WORKER_ID=0;class lI{constructor(e,t,i,n){this.originalStart=e,this.originalLength=t,this.modifiedStart=i,this.modifiedLength=n}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function lw(e,t){return(t<<5)-t+e|0}function lO(e,t){t=lw(149417,t);for(let i=0,n=e.length;i>>n)>>>0}function lD(e,t=0,i=e.byteLength,n=0){for(let r=0;re.toString(16).padStart(2,"0")).join(""):function(e,t,i="0"){for(;e.length>>0).toString(16),t/4)}class lk{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){let t,i;let n=e.length;if(0===n)return;let r=this._buff,o=this._buffLen,s=this._leftoverHighSurrogate;for(0!==s?(t=s,i=-1,s=0):(t=e.charCodeAt(0),i=0);;){let a=t;if(r3(t)){if(i+1>>6,e[t++]=128|(63&i)>>>0):i<65536?(e[t++]=224|(61440&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0):(e[t++]=240|(1835008&i)>>>18,e[t++]=128|(258048&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),lM(this._h0)+lM(this._h1)+lM(this._h2)+lM(this._h3)+lM(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,lD(this._buff,this._buffLen),this._buffLen>56&&(this._step(),lD(this._buff));let e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){let e,t,i;let n=lk._bigBlock32,r=this._buffDV;for(let e=0;e<64;e+=4)n.setUint32(e,r.getUint32(e,!1),!1);for(let e=64;e<320;e+=4)n.setUint32(e,lx(n.getUint32(e-12,!1)^n.getUint32(e-32,!1)^n.getUint32(e-56,!1)^n.getUint32(e-64,!1),1),!1);let o=this._h0,s=this._h1,a=this._h2,l=this._h3,h=this._h4;for(let r=0;r<80;r++)r<20?(e=s&a|~s&l,t=1518500249):r<40?(e=s^a^l,t=1859775393):r<60?(e=s&a|s&l|a&l,t=2400959708):(e=s^a^l,t=3395469782),i=lx(o,5)+e+h+t+n.getUint32(4*r,!1)&4294967295,h=l,l=a,a=lx(s,30),s=o,o=i;this._h0=this._h0+o&4294967295,this._h1=this._h1+s&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+l&4294967295,this._h4=this._h4+h&4294967295}}lk._bigBlock32=new DataView(new ArrayBuffer(320));class lP{constructor(e){this.source=e}getElements(){let e=this.source,t=new Int32Array(e.length);for(let i=0,n=e.length;i0||this.m_modifiedCount>0)&&this.m_changes.push(new lI(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class lH{constructor(e,t,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;let[n,r,o]=lH._getElements(e),[s,a,l]=lH._getElements(t);this._hasStrings=o&&l,this._originalStringElements=n,this._originalElementsOrHash=r,this._modifiedStringElements=s,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"==typeof e[0]}static _getElements(e){let t=e.getElements();if(lH._isStringArray(t)){let e=new Int32Array(t.length);for(let i=0,n=t.length;i=e&&n>=i&&this.ElementsAreEqual(t,n);)t--,n--;if(e>t||i>n){let r;return i<=n?(lF.Assert(e===t+1,"originalStart should only be one more than originalEnd"),r=[new lI(e,0,i,n-i+1)]):e<=t?(lF.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),r=[new lI(e,t-e+1,i,0)]):(lF.Assert(e===t+1,"originalStart should only be one more than originalEnd"),lF.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),r=[]),r}let o=[0],s=[0],a=this.ComputeRecursionPoint(e,t,i,n,o,s,r),l=o[0],h=s[0];if(null!==a)return a;if(!r[0]){let o=this.ComputeDiffRecursive(e,l,i,h,r),s=[];return s=r[0]?[new lI(l+1,t-(l+1)+1,h+1,n-(h+1)+1)]:this.ComputeDiffRecursive(l+1,t,h+1,n,r),this.ConcatenateChanges(o,s)}return[new lI(e,t-e+1,i,n-i+1)]}WALKTRACE(e,t,i,n,r,o,s,a,l,h,u,d,c,g,p,f,m,v){let E=null,_=null,C=new lU,S=t,y=i,T=c[0]-f[0]-n,b=-1073741824,A=this.m_forwardHistory.length-1;do{let t=T+e;t===S||t=0&&(e=(l=this.m_forwardHistory[A])[0],S=1,y=l.length-1)}while(--A>=-1);if(E=C.getReverseChanges(),v[0]){let e=c[0]+1,t=f[0]+1;if(null!==E&&E.length>0){let i=E[E.length-1];e=Math.max(e,i.getOriginalEnd()),t=Math.max(t,i.getModifiedEnd())}_=[new lI(e,d-e+1,t,p-t+1)]}else{C=new lU,S=o,y=s,T=c[0]-f[0]-a,b=1073741824,A=m?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{let e=T+r;e===S||e=h[e+1]?(g=(u=h[e+1]-1)-T-a,u>b&&C.MarkNextChange(),b=u+1,C.AddOriginalElement(u+1,g+1),T=e+1-r):(g=(u=h[e-1])-T-a,u>b&&C.MarkNextChange(),b=u,C.AddModifiedElement(u+1,g+1),T=e-1-r),A>=0&&(r=(h=this.m_reverseHistory[A])[0],S=1,y=h.length-1)}while(--A>=-1);_=C.getChanges()}return this.ConcatenateChanges(E,_)}ComputeRecursionPoint(e,t,i,n,r,o,s){let a=0,l=0,h=0,u=0,d=0,c=0;e--,i--,r[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];let g=t-e+(n-i),p=g+1,f=new Int32Array(p),m=new Int32Array(p),v=n-i,E=t-e,_=e-i,C=t-n,S=E-v,y=S%2==0;f[v]=e,m[E]=t,s[0]=!1;for(let S=1;S<=g/2+1;S++){let g=0,T=0;h=this.ClipDiagonalBound(v-S,S,v,p),u=this.ClipDiagonalBound(v+S,S,v,p);for(let e=h;e<=u;e+=2){l=(a=e===h||eg+T&&(g=a,T=l),!y&&Math.abs(e-E)<=S-1&&a>=m[e]){if(r[0]=a,o[0]=l,i<=m[e]&&S<=1448)return this.WALKTRACE(v,h,u,_,E,d,c,C,f,m,a,t,r,l,n,o,y,s);return null}}let b=(g-e+(T-i)-S)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(g,b)){if(s[0]=!0,r[0]=g,o[0]=T,!(b>0)||!(S<=1448))return e++,i++,[new lI(e,t-e+1,i,n-i+1)];break}d=this.ClipDiagonalBound(E-S,S,E,p),c=this.ClipDiagonalBound(E+S,S,E,p);for(let g=d;g<=c;g+=2){l=(a=g===d||g=m[g+1]?m[g+1]-1:m[g-1])-(g-E)-C;let p=a;for(;a>e&&l>i&&this.ElementsAreEqual(a,l);)a--,l--;if(m[g]=a,y&&Math.abs(g-v)<=S&&a<=f[g]){if(r[0]=a,o[0]=l,p>=f[g]&&S<=1448)return this.WALKTRACE(v,h,u,_,E,d,c,C,f,m,a,t,r,l,n,o,y,s);return null}}if(S<=1447){let e=new Int32Array(u-h+2);e[0]=v-h+1,lB.Copy2(f,h,e,1,u-h+1),this.m_forwardHistory.push(e),(e=new Int32Array(c-d+2))[0]=E-d+1,lB.Copy2(m,d,e,1,c-d+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(v,h,u,_,E,d,c,C,f,m,a,t,r,l,n,o,y,s)}PrettifyChanges(e){for(let t=0;t0,s=i.modifiedLength>0;for(;i.originalStart+i.originalLength=0;t--){let i=e[t],n=0,r=0;if(t>0){let i=e[t-1];n=i.originalStart+i.originalLength,r=i.modifiedStart+i.modifiedLength}let o=i.originalLength>0,s=i.modifiedLength>0,a=0,l=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let e=1;;e++){let t=i.originalStart-e,h=i.modifiedStart-e;if(tl&&(l=d,a=e)}i.originalStart-=a,i.modifiedStart-=a;let h=[null];if(t>0&&this.ChangesOverlap(e[t-1],e[t],h)){e[t-1]=h[0],e.splice(t,1),t++;continue}}if(this._hasStrings)for(let t=1,i=e.length;t0&&i>a&&(a=i,l=t,h=e)}return a>0?[l,h]:null}_contiguousSequenceScore(e,t,i){let n=0;for(let r=0;r=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){let i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){let i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,t,i,n){let r=this._OriginalRegionIsBoundary(e,t)?1:0,o=this._ModifiedRegionIsBoundary(i,n)?1:0;return r+o}ConcatenateChanges(e,t){let i=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){let n=Array(e.length+t.length-1);return lB.Copy(e,0,n,0,e.length-1),n[e.length-1]=i[0],lB.Copy(t,1,n,e.length,t.length-1),n}{let i=Array(e.length+t.length);return lB.Copy(e,0,i,0,e.length),lB.Copy(t,0,i,e.length,t.length),i}}ChangesOverlap(e,t,i){if(lF.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),lF.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),!(e.originalStart+e.originalLength>=t.originalStart)&&!(e.modifiedStart+e.modifiedLength>=t.modifiedStart))return i[0]=null,!1;{let n=e.originalStart,r=e.originalLength,o=e.modifiedStart,s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new lI(n,r,o,s),!0}}ClipDiagonalBound(e,t,i,n){if(e>=0&&e255?255:0|e}function lW(e){return e<0?0:e>4294967295?4294967295:0|e}class lG{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=lW(e);let i=this.values,n=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(i.length+r),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+r),this.values.set(t,e),e-1=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=lW(e),t=lW(t),this.values[e]!==t&&(this.values[e]=t,e-1=i.length)return!1;let r=i.length-e;return t>=r&&(t=r),0!==t&&(this.values=new Uint32Array(i.length-t),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=lW(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,i=this.values.length-1,n=0,r=0,o=0;for(;t<=i;)if(n=t+(i-t)/2|0,e<(o=(r=this.prefixSum[n])-this.values[n]))i=n-1;else if(e>=r)t=n+1;else break;return new lY(n,e-o)}}class lz{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return(this._ensureValid(),0===e)?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();let t=this._indexBySum[e],i=t>0?this._prefixSum[t-1]:0;return new lY(t,e-i)}removeValues(e,t){this._values.splice(e,t),this._invalidate(e)}insertValues(e,t){this._values=(0,sq.Zv)(this._values,e,t),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._values.length;e0?this._prefixSum[e-1]:0;this._prefixSum[e]=i+t;for(let n=0;n=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class lX{constructor(e,t,i){let n=new Uint8Array(e*t);for(let r=0,o=e*t;rt&&(t=o),r>i&&(i=r),s>i&&(i=s)}t++,i++;let n=new lX(i,t,0);for(let t=0,i=e.length;t=this._maxCharCode?0:this._states.get(e,t)}}let lq=null;function lZ(){return null===lq&&(lq=new lj([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),lq}let lJ=null;class lQ{static _createLink(e,t,i,n,r){let o=r-1;do{let i=t.charCodeAt(o),n=e.get(i);if(2!==n)break;o--}while(o>n);if(n>0){let e=t.charCodeAt(n-1),i=t.charCodeAt(o);(40===e&&41===i||91===e&&93===i||123===e&&125===i)&&o--}return{range:{startLineNumber:i,startColumn:n+1,endLineNumber:i,endColumn:o+2},url:t.substring(n,o+1)}}static computeLinks(e,t=lZ()){let i=function(){if(null===lJ){lJ=new l$(0);let e=" <>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let t=0;t=0?((n+=i?1:-1)<0?n=e.length-1:n%=e.length,e[n]):null}}l0.INSTANCE=new l0;class l1 extends l${constructor(e){super(0);for(let t=0,i=e.length;t(t.hasOwnProperty(i)||(t[i]=e(i)),t[i])}(e=>new l1(e));class l4{constructor(e,t,i,n){this.searchString=e,this.isRegex=t,this.matchCase=i,this.wordSeparators=n}parseSearchRequest(){let e;if(""===this.searchString)return null;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,i=e.length;t=i)break;let n=e.charCodeAt(t);if(110===n||114===n||87===n)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=rG(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(e){return null}if(!t)return null;let i=!this.isRegex&&!e;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new sH(t,this.wordSeparators?l2(this.wordSeparators):null,i?this.searchString:null)}}function l5(e,t,i){if(!i)return new sB(e,null);let n=[];for(let e=0,i=t.length;e>0);t[r]>=e?n=r-1:t[r+1]>=e?(i=r,n=r):i=r+1}return i+1}}class l3{static findMatches(e,t,i,n,r){let o=t.parseSearchRequest();return o?o.regex.multiline?this._doFindMatchesMultiline(e,i,new l7(o.wordSeparators,o.regex),n,r):this._doFindMatchesLineByLine(e,i,o,n,r):[]}static _getMultilineMatchRange(e,t,i,n,r,o){let s,a;let l=0;if(n?(l=n.findLineFeedCountBeforeOffset(r),s=t+r+l):s=t+r,n){let e=n.findLineFeedCountBeforeOffset(r+o.length),t=e-l;a=s+o.length+t}else a=s+o.length;let h=e.getPositionAt(s),u=e.getPositionAt(a);return new r_(h.lineNumber,h.column,u.lineNumber,u.column)}static _doFindMatchesMultiline(e,t,i,n,r){let o;let s=e.getOffsetAt(t.getStartPosition()),a=e.getValueInRange(t,1),l="\r\n"===e.getEOL()?new l6(a):null,h=[],u=0;for(i.reset(0);(o=i.next(a))&&(h[u++]=l5(this._getMultilineMatchRange(e,s,a,l,o.index,o[0]),o,n),!(u>=r)););return h}static _doFindMatchesLineByLine(e,t,i,n,r){let o=[],s=0;if(t.startLineNumber===t.endLineNumber){let a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return s=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,s,o,n,r),o}let a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);s=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,s,o,n,r);for(let a=t.startLineNumber+1;a=a))););return r}let u=new l7(e.wordSeparators,e.regex);u.reset(0);do if((l=u.next(t))&&(o[r++]=l5(new r_(i,l.index+1+n,i,l.index+1+l[0].length+n),l,s),r>=a))break;while(l);return r}static findNextMatch(e,t,i,n){let r=t.parseSearchRequest();if(!r)return null;let o=new l7(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindNextMatchMultiline(e,i,o,n):this._doFindNextMatchLineByLine(e,i,o,n)}static _doFindNextMatchMultiline(e,t,i,n){let r=new rE(t.lineNumber,1),o=e.getOffsetAt(r),s=e.getLineCount(),a=e.getValueInRange(new r_(r.lineNumber,r.column,s,e.getLineMaxColumn(s)),1),l="\r\n"===e.getEOL()?new l6(a):null;i.reset(t.column-1);let h=i.next(a);return h?l5(this._getMultilineMatchRange(e,o,a,l,h.index,h[0]),h,n):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new rE(1,1),i,n):null}static _doFindNextMatchLineByLine(e,t,i,n){let r=e.getLineCount(),o=t.lineNumber,s=e.getLineContent(o),a=this._findFirstMatchInLine(i,s,o,t.column,n);if(a)return a;for(let t=1;t<=r;t++){let s=(o+t-1)%r,a=e.getLineContent(s+1),l=this._findFirstMatchInLine(i,a,s+1,1,n);if(l)return l}return null}static _findFirstMatchInLine(e,t,i,n,r){e.reset(n-1);let o=e.next(t);return o?l5(new r_(i,o.index+1,i,o.index+1+o[0].length),o,r):null}static findPreviousMatch(e,t,i,n){let r=t.parseSearchRequest();if(!r)return null;let o=new l7(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindPreviousMatchMultiline(e,i,o,n):this._doFindPreviousMatchLineByLine(e,i,o,n)}static _doFindPreviousMatchMultiline(e,t,i,n){let r=this._doFindMatchesMultiline(e,new r_(1,1,t.lineNumber,t.column),i,n,9990);if(r.length>0)return r[r.length-1];let o=e.getLineCount();return t.lineNumber!==o||t.column!==e.getLineMaxColumn(o)?this._doFindPreviousMatchMultiline(e,new rE(o,e.getLineMaxColumn(o)),i,n):null}static _doFindPreviousMatchLineByLine(e,t,i,n){let r=e.getLineCount(),o=t.lineNumber,s=e.getLineContent(o).substring(0,t.column-1),a=this._findLastMatchInLine(i,s,o,n);if(a)return a;for(let t=1;t<=r;t++){let s=(r+o-t-1)%r,a=e.getLineContent(s+1),l=this._findLastMatchInLine(i,a,s+1,n);if(l)return l}return null}static _findLastMatchInLine(e,t,i,n){let r,o=null;for(e.reset(0);r=e.next(t);)o=l5(new r_(i,r.index+1,i,r.index+1+r[0].length),r,n);return o}}function l9(e,t,i,n,r){return function(e,t,i,n,r){if(0===n)return!0;let o=t.charCodeAt(n-1);if(0!==e.get(o)||13===o||10===o)return!0;if(r>0){let i=t.charCodeAt(n);if(0!==e.get(i))return!0}return!1}(e,t,0,n,r)&&function(e,t,i,n,r){if(n+r===i)return!0;let o=t.charCodeAt(n+r);if(0!==e.get(o)||13===o||10===o)return!0;if(r>0){let i=t.charCodeAt(n+r-1);if(0!==e.get(i))return!0}return!1}(e,t,i,n,r)}class l7{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){let t;let i=e.length;do{if(this._prevMatchStartIndex+this._prevMatchLength===i||!(t=this._searchRegex.exec(e)))break;let n=t.index,r=t[0].length;if(n===this._prevMatchStartIndex&&r===this._prevMatchLength){if(0===r){r8(e,i,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}break}if(this._prevMatchStartIndex=n,this._prevMatchLength=r,!this._wordSeparators||l9(this._wordSeparators,e,i,n,r))return t}while(t);return null}}class l8{static computeUnicodeHighlights(e,t,i){let n,r;let o=i?i.startLineNumber:1,s=i?i.endLineNumber:e.getLineCount(),a=new he(t),l=a.getCandidateCodePoints();n="allNonBasicAscii"===l?RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):RegExp(`${function(e,t){let i=`[${rV(e.map(e=>String.fromCodePoint(e)).join(""))}]`;return i}(Array.from(l))}`,"g");let h=new l7(null,n),u=[],d=!1,c=0,g=0,p=0;t:for(let t=o;t<=s;t++){let i=e.getLineContent(t),n=i.length;h.reset(0);do if(r=h.next(i)){let e=r.index,o=r.index+r[0].length;if(e>0){let t=i.charCodeAt(e-1);r3(t)&&e--}if(o+1=1e3){d=!0;break t}u.push(new r_(t,e+1,t,o+1))}}while(r)}return{ranges:u,hasMore:d,ambiguousCharacterCount:c,invisibleCharacterCount:g,nonBasicAsciiCharacterCount:p}}static computeUnicodeHighlightReason(e,t){let i=new he(t),n=i.shouldHighlightNonBasicASCII(e,null);switch(n){case 0:return null;case 2:return{kind:1};case 3:{let n=e.codePointAt(0),r=i.ambiguousCharacters.getPrimaryConfusable(n),o=of.getLocales().filter(e=>!of.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(n));return{kind:0,confusableWith:String.fromCodePoint(r),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}class he{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=of.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";let e=new Set;if(this.options.invisibleCharacters)for(let t of om.codePoints)ht(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(let t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(let t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){let i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let n=!1,r=!1;if(t)for(let e of t){let t=e.codePointAt(0),i=os(e);n=n||i,i||this.ambiguousCharacters.isAmbiguous(t)||om.isInvisibleCharacter(t)||(r=!0)}return!n&&r?0:this.options.invisibleCharacters&&!ht(e)&&om.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function ht(e){return" "===e||"\n"===e||" "===e}class hi{static fromRange(e){return new hi(e.startLineNumber,e.endLineNumber)}static subtract(e,t){return t?e.startLineNumber=s.startLineNumber?o=new hi(o.startLineNumber,Math.max(o.endLineNumberExclusive,s.endLineNumberExclusive)):(i.push(o),o=s)}return null!==o&&i.push(o),i}static ofLength(e,t){return new hi(e,e+t)}static deserialize(e){return new hi(e[0],e[1])}constructor(e,t){if(e>t)throw new nt(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e${this.modifiedRange.toString()}}`}get changedLineCount(){return Math.max(this.originalRange.length,this.modifiedRange.length)}flip(){var e;return new hr(this.modifiedRange,this.originalRange,null===(e=this.innerChanges)||void 0===e?void 0:e.map(e=>e.flip()))}}class ho{constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new ho(this.modifiedRange,this.originalRange)}}class hs{constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new hs(this.modified,this.original)}}class ha{constructor(e,t){this.lineRangeMapping=e,this.changes=t}flip(){return new ha(this.lineRangeMapping.flip(),this.changes.map(e=>e.flip()))}}class hl{computeDiff(e,t,i){var n;let r=new hp(e,t,{maxComputationTime:i.maxComputationTimeMs,shouldIgnoreTrimWhitespace:i.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}),o=r.computeDiff(),s=[],a=null;for(let e of o.changes){let t,i;t=0===e.originalEndLineNumber?new hi(e.originalStartLineNumber+1,e.originalStartLineNumber+1):new hi(e.originalStartLineNumber,e.originalEndLineNumber+1),i=0===e.modifiedEndLineNumber?new hi(e.modifiedStartLineNumber+1,e.modifiedStartLineNumber+1):new hi(e.modifiedStartLineNumber,e.modifiedEndLineNumber+1);let r=new hr(t,i,null===(n=e.charChanges)||void 0===n?void 0:n.map(e=>new ho(new r_(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new r_(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn))));a&&(a.modifiedRange.endLineNumberExclusive===r.modifiedRange.startLineNumber||a.originalRange.endLineNumberExclusive===r.originalRange.startLineNumber)&&(r=new hr(a.originalRange.join(r.originalRange),a.modifiedRange.join(r.modifiedRange),a.innerChanges&&r.innerChanges?a.innerChanges.concat(r.innerChanges):void 0),s.pop()),s.push(r),a=r}return o$(()=>oX(s,(e,t)=>t.originalRange.startLineNumber-e.originalRange.endLineNumberExclusive==t.modifiedRange.startLineNumber-e.modifiedRange.endLineNumberExclusive&&e.originalRange.endLineNumberExclusive(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return -1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e])?this._lineNumbers[e]+1:this._lineNumbers[e]}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return -1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e])?1:this._columns[e]+1}}class hc{constructor(e,t,i,n,r,o,s,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=i,this.originalEndColumn=n,this.modifiedStartLineNumber=r,this.modifiedStartColumn=o,this.modifiedEndLineNumber=s,this.modifiedEndColumn=a}static createFromDiffChange(e,t,i){let n=t.getStartLineNumber(e.originalStart),r=t.getStartColumn(e.originalStart),o=t.getEndLineNumber(e.originalStart+e.originalLength-1),s=t.getEndColumn(e.originalStart+e.originalLength-1),a=i.getStartLineNumber(e.modifiedStart),l=i.getStartColumn(e.modifiedStart),h=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),u=i.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new hc(n,r,o,s,a,l,h,u)}}class hg{constructor(e,t,i,n,r){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=n,this.charChanges=r}static createFromDiffResult(e,t,i,n,r,o,s){let a,l,h,u,d;if(0===t.originalLength?(a=i.getStartLineNumber(t.originalStart)-1,l=0):(a=i.getStartLineNumber(t.originalStart),l=i.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(h=n.getStartLineNumber(t.modifiedStart)-1,u=0):(h=n.getStartLineNumber(t.modifiedStart),u=n.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),o&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&r()){let o=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=n.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(o.getElements().length>0&&a.getElements().length>0){let e=hh(o,a,r,!0).changes;s&&(e=function(e){if(e.length<=1)return e;let t=[e[0]],i=t[0];for(let n=1,r=e.length;n1&&s>1;){let n=e.charCodeAt(i-2),r=t.charCodeAt(s-2);if(n!==r)break;i--,s--}(i>1||s>1)&&this._pushTrimWhitespaceCharChange(n,r+1,1,i,o+1,1,s)}{let i=hm(e,1),s=hm(t,1),a=e.length+1,l=t.length+1;for(;i!0;let t=Date.now();return()=>Date.now()-tt))return new hE(e,t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new nt(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new hE(this.start+e,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(e){return this.start===e.start&&this.endExclusive===e.endExclusive}containsRange(e){return this.start<=e.start&&e.endExclusive<=this.endExclusive}contains(e){return this.start<=e&&e ${this.seq2Range}`}join(e){return new hC(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new hC(this.seq1Range.delta(e),this.seq2Range.delta(e))}}class hS{isValid(){return!0}}hS.instance=new hS;class hy{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new nt("timeout must be positive")}isValid(){let e=Date.now()-this.startTime0&&l>0&&3===o.get(a-1,l-1)&&(h+=s.get(a-1,l-1)),h+=n?n(a,l):1):h=-1;let c=Math.max(u,d,h);if(c===h){let e=a>0&&l>0?s.get(a-1,l-1):0;s.set(a,l,e+1),o.set(a,l,3)}else c===u?(s.set(a,l,0),o.set(a,l,1)):c===d&&(s.set(a,l,0),o.set(a,l,2));r.set(a,l,c)}let a=[],l=e.length,h=t.length;function u(e,t){(e+1!==l||t+1!==h)&&a.push(new hC(new hE(e+1,l),new hE(t+1,h))),l=e,h=t}let d=e.length-1,c=t.length-1;for(;d>=0&&c>=0;)3===o.get(d,c)?(u(d,c),d--,c--):1===o.get(d,c)?d--:c--;return u(-1,-1),a.reverse(),new h_(a,!1)}}function hA(e,t,i){let n=i;return n=function(e,t,i){if(0===i.length)return i;let n=[];n.push(i[0]);for(let r=1;r0&&(s=s.delta(r))}r.push(s)}return n.length>0&&r.push(n[n.length-1]),r}(e,t,n),n=function(e,t,i){if(!e.getBoundaryScore||!t.getBoundaryScore)return i;for(let n=0;n0?i[n-1]:void 0,o=i[n],s=n+1=n.start&&e.seq2Range.start-o>=r.start&&i.getElement(e.seq2Range.start-o)===i.getElement(e.seq2Range.endExclusive-o)&&o<100;)o++;o--;let s=0;for(;e.seq1Range.start+sl&&(l=h,a=n)}return e.delta(a)}class hL{compute(e,t,i=hS.instance){if(0===e.length||0===t.length)return h_.trivial(e,t);function n(i,n){for(;ie.length||d>t.length)continue;let c=n(u,d);o.set(a,c);let g=u===i?s.get(a+1):s.get(a-1);if(s.set(a,c!==u?new hN(g,u,d,c-u):g),o.get(a)===e.length&&o.get(a)-a===t.length)break i}}let l=s.get(a),h=[],u=e.length,d=t.length;for(;;){let e=l?l.x+l.length:0,t=l?l.y+l.length:0;if((e!==u||t!==d)&&h.push(new hC(new hE(e,u),new hE(t,d))),!l)break;u=l.x,d=l.y,l=l.prev}return h.reverse(),new h_(h,!1)}}class hN{constructor(e,t,i,n){this.prev=e,this.x=t,this.y=i,this.length=n}}class hI{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if((e=-e-1)>=this.negativeArr.length){let e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){let e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class hw{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}class hO{constructor(){this.dynamicProgrammingDiffing=new hb,this.myersDiffingAlgorithm=new hL}computeDiff(e,t,i){if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return{changes:[new hr(new hi(1,e.length+1),new hi(1,t.length+1),[new ho(new r_(1,1,e.length,e[0].length+1),new r_(1,1,t.length,t[0].length+1))])],hitTimeout:!1,moves:[]};let n=0===i.maxComputationTimeMs?hS.instance:new hy(i.maxComputationTimeMs),r=!i.ignoreTrimWhitespace,o=new Map;function s(e){let t=o.get(e);return void 0===t&&(t=o.size,o.set(e,t)),t}let a=e.map(e=>s(e.trim())),l=t.map(e=>s(e.trim())),h=new hD(a,e),u=new hD(l,t),d=h.length+u.length<1500?this.dynamicProgrammingDiffing.compute(h,u,n,(i,n)=>e[i]===t[n]?0===t[n].length?.1:1+Math.log(1+t[n].length):.99):this.myersDiffingAlgorithm.compute(h,u),c=d.diffs,g=d.hitTimeout;c=hA(h,u,c);let p=[],f=i=>{if(r)for(let o=0;oi.seq1Range.start-m==i.seq2Range.start-v);let o=i.seq1Range.start-m;f(o),m=i.seq1Range.endExclusive,v=i.seq2Range.endExclusive;let s=this.refineDiff(e,t,i,n,r);for(let e of(s.hitTimeout&&(g=!0),s.mappings))p.push(e)}f(e.length-m);let E=hx(p,e,t),_=[];if(i.computeMoves){let i=E.filter(e=>e.modifiedRange.isEmpty&&e.originalRange.length>=3).map(t=>new hV(t.originalRange,e)),o=new Set(E.filter(e=>e.originalRange.isEmpty&&e.modifiedRange.length>=3).map(e=>new hV(e.modifiedRange,t)));for(let s of i){let i,a=-1;for(let e of o){let t=s.computeSimilarity(e);t>a&&(a=t,i=e)}if(a>.9&&i){let a=this.refineDiff(e,t,new hC(new hE(s.range.startLineNumber-1,s.range.endLineNumberExclusive-1),new hE(i.range.startLineNumber-1,i.range.endLineNumberExclusive-1)),n,r),l=hx(a.mappings,e,t,!0);o.delete(i),_.push(new ha(new hs(s.range,i.range),l))}}}return o$(()=>{function i(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;let i=t[e.lineNumber-1];return!(e.column<1)&&!(e.column>i.length+1)}function n(e,t){return!(e.startLineNumber<1)&&!(e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1)&&!(e.endLineNumberExclusive>t.length+1)}for(let r of E){if(!r.innerChanges)return!1;for(let n of r.innerChanges){let r=i(n.modifiedRange.getStartPosition(),t)&&i(n.modifiedRange.getEndPosition(),t)&&i(n.originalRange.getStartPosition(),e)&&i(n.originalRange.getEndPosition(),e);if(!r)return!1}if(!n(r.modifiedRange,t)||!n(r.originalRange,e))return!1}return!0}),new hn(E,_,g)}refineDiff(e,t,i,n,r){let o=new hk(e,i.seq1Range,r),s=new hk(t,i.seq2Range,r),a=o.length+s.length<500?this.dynamicProgrammingDiffing.compute(o,s,n):this.myersDiffingAlgorithm.compute(o,s,n),l=a.diffs;l=hA(o,s,l),l=function(e,t,i){let n=[];for(let e of i){let t=n[n.length-1];if(!t){n.push(e);continue}e.seq1Range.start-t.seq1Range.endExclusive<=2||e.seq2Range.start-t.seq2Range.endExclusive<=2?n[n.length-1]=new hC(t.seq1Range.join(e.seq1Range),t.seq2Range.join(e.seq2Range)):n.push(e)}return n}(0,0,l=function(e,t,i){let n;let r=[];function o(){if(!n)return;let e=n.s1Range.length-n.deleted;n.s2Range.length,n.added,Math.max(n.deleted,n.added)+(n.count-1)>e&&r.push(new hC(n.s1Range,n.s2Range)),n=void 0}for(let r of i){function s(e,t){var i,s,a,l;if(!n||!n.s1Range.containsRange(e)||!n.s2Range.containsRange(t)){if(n&&!(n.s1Range.endExclusive0||t.length>0;){let n;let r=e[0],o=t[0];n=r&&(!o||r.seq1Range.start0&&i[i.length-1].seq1Range.endExclusive>=n.seq1Range.start?i[i.length-1]=i[i.length-1].join(n):i.push(n)}return i}(i,r);return a}(o,s,l)),l=function(e,t,i){let n,r=i;if(0===r.length)return r;let o=0;do{n=!1;let i=[r[0]];for(let o=1;o5||r.length>500)return!1;let l=e.getText(r).trim();if(l.length>20||l.split(/\r\n|\r|\n/).length>1)return!1;let h=e.countLinesIn(i.seq1Range),u=i.seq1Range.length,d=t.countLinesIn(i.seq2Range),c=i.seq2Range.length,g=e.countLinesIn(n.seq1Range),p=n.seq1Range.length,f=t.countLinesIn(n.seq2Range),m=n.seq2Range.length;function v(e){return Math.min(e,130)}return Math.pow(Math.pow(v(40*h+u),1.5)+Math.pow(v(40*d+c),1.5),1.5)+Math.pow(Math.pow(v(40*g+p),1.5)+Math.pow(v(40*f+m),1.5),1.5)>74184.96480721243}(a,s);l?(n=!0,i[i.length-1]=i[i.length-1].join(s)):i.push(s)}r=i}while(o++<10&&n);return r}(o,s,l);let h=l.map(e=>new ho(o.translateRange(e.seq1Range),s.translateRange(e.seq2Range)));return{mappings:h,hitTimeout:a.hitTimeout}}}function hx(e,t,i,n=!1){let r=[];for(let n of function*(e,t){let i,n;for(let r of e)void 0!==n&&t(n,r)?i.push(r):(i&&(yield i),i=[r]),n=r;i&&(yield i)}(e.map(e=>(function(e,t,i){let n=0,r=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+n<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+n<=e.modifiedRange.endLineNumber&&(r=-1),e.modifiedRange.startColumn-1>=i[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+r&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+r&&(n=1);let o=new hi(e.originalRange.startLineNumber+n,e.originalRange.endLineNumber+1+r),s=new hi(e.modifiedRange.startLineNumber+n,e.modifiedRange.endLineNumber+1+r);return new hr(o,s,[e])})(e,t,i)),(e,t)=>e.originalRange.overlapOrTouch(t.originalRange)||e.modifiedRange.overlapOrTouch(t.modifiedRange))){let e=n[0],t=n[n.length-1];r.push(new hr(e.originalRange.join(t.originalRange),e.modifiedRange.join(t.modifiedRange),n.map(e=>e.innerChanges[0])))}return o$(()=>(!!n||!(r.length>0)||r[0].originalRange.startLineNumber===r[0].modifiedRange.startLineNumber)&&oX(r,(e,t)=>t.originalRange.startLineNumber-e.originalRange.endLineNumberExclusive==t.modifiedRange.startLineNumber-e.modifiedRange.endLineNumberExclusive&&e.originalRange.endLineNumberExclusive0&&t.endExclusive>=e.length&&(t=new hE(t.start-1,t.endExclusive),n=!0),this.lineRange=t;for(let t=this.lineRange.start;tString.fromCharCode(e)).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){let t=hB(e>0?this.elements[e-1]:-1),i=hB(ee?i=n:t=n+1}let n=0===t?0:this.firstCharOffsetByLineMinusOne[t-1];return new rE(this.lineRange.start+t+1,e-n+1+this.offsetByLine[t])}translateRange(e){return r_.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length||!hP(this.elements[e]))return;let t=e;for(;t>0&&hP(this.elements[t-1]);)t--;let i=e;for(;i=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}let hF={0:0,1:0,2:0,3:10,4:2,5:3,6:10,7:10};function hB(e){if(10===e)return 7;if(13===e)return 6;if(32===e||9===e)return 5;if(e>=97&&e<=122)return 0;if(e>=65&&e<=90)return 1;if(e>=48&&e<=57)return 2;if(-1===e)return 3;else return 4}let hU=new Map;function hH(e){let t=hU.get(e);return void 0===t&&(t=hU.size,hU.set(e,t)),t}class hV{constructor(e,t){this.range=e,this.lines=t,this.histogram=[];let i=0;for(let n=e.startLineNumber-1;nnew hl,getAdvanced:()=>new hO};function hG(e,t){let i=Math.pow(10,t);return Math.round(e*i)/i}class hz{constructor(e,t,i,n=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,i)),this.a=hG(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class hY{constructor(e,t,i,n){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=hG(Math.max(Math.min(1,t),0),3),this.l=hG(Math.max(Math.min(1,i),0),3),this.a=hG(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){let t=e.r/255,i=e.g/255,n=e.b/255,r=e.a,o=Math.max(t,i,n),s=Math.min(t,i,n),a=0,l=0,h=(s+o)/2,u=o-s;if(u>0){switch(l=Math.min(h<=.5?u/(2*h):u/(2-2*h),1),o){case t:a=(i-n)/u+(i1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){let t,i,n;let r=e.h/360,{s:o,l:s,a}=e;if(0===o)t=i=n=s;else{let e=s<.5?s*(1+o):s+o-s*o,a=2*s-e;t=hY._hue2rgb(a,e,r+1/3),i=hY._hue2rgb(a,e,r),n=hY._hue2rgb(a,e,r-1/3)}return new hz(Math.round(255*t),Math.round(255*i),Math.round(255*n),a)}}class hK{constructor(e,t,i,n){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=hG(Math.max(Math.min(1,t),0),3),this.v=hG(Math.max(Math.min(1,i),0),3),this.a=hG(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){let t;let i=e.r/255,n=e.g/255,r=e.b/255,o=Math.max(i,n,r),s=Math.min(i,n,r),a=o-s,l=0===o?0:a/o;return t=0===a?0:o===i?((n-r)/a%6+6)%6:o===n?(r-i)/a+2:(i-n)/a+4,new hK(Math.round(60*t),l,o,e.a)}static toRGBA(e){let{h:t,s:i,v:n,a:r}=e,o=n*i,s=o*(1-Math.abs(t/60%2-1)),a=n-o,[l,h,u]=[0,0,0];return t<60?(l=o,h=s):t<120?(l=s,h=o):t<180?(h=o,u=s):t<240?(h=s,u=o):t<300?(l=s,u=o):t<=360&&(l=o,u=s),l=Math.round((l+a)*255),h=Math.round((h+a)*255),u=Math.round((u+a)*255),new hz(l,h,u,r)}}class h${static fromHex(e){return h$.Format.CSS.parseHex(e)||h$.red}static equals(e,t){return!e&&!t||!!e&&!!t&&e.equals(t)}get hsla(){return this._hsla?this._hsla:hY.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:hK.fromRGBA(this.rgba)}constructor(e){if(e){if(e instanceof hz)this.rgba=e;else if(e instanceof hY)this._hsla=e,this.rgba=hY.toRGBA(e);else if(e instanceof hK)this._hsva=e,this.rgba=hK.toRGBA(e);else throw Error("Invalid color ctor argument")}else throw Error("Color needs a value")}equals(e){return!!e&&hz.equals(this.rgba,e.rgba)&&hY.equals(this.hsla,e.hsla)&&hK.equals(this.hsva,e.hsva)}getRelativeLuminance(){let e=h$._relativeLuminanceForComponent(this.rgba.r),t=h$._relativeLuminanceForComponent(this.rgba.g),i=h$._relativeLuminanceForComponent(this.rgba.b);return hG(.2126*e+.7152*t+.0722*i,4)}static _relativeLuminanceForComponent(e){let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){let e=(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3;return e>=128}isLighterThan(e){let t=this.getRelativeLuminance(),i=e.getRelativeLuminance();return t>i}isDarkerThan(e){let t=this.getRelativeLuminance(),i=e.getRelativeLuminance();return tthis._lines.length)t=this._lines.length,i=this._lines[t-1].length+1,n=!0;else{let e=this._lines[t-1].length+1;i<1?(i=1,n=!0):i>e&&(i=e,n=!0)}return n?{lineNumber:t,column:i}:e}}class h2{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){let e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}acceptNewModel(e){this._models[e.url]=new h1(rl.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;let i=this._models[e];i.onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeUnicodeHighlights(e,t,i){return h0(this,void 0,void 0,function*(){let n=this._getModel(e);return n?l8.computeUnicodeHighlights(n,t,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(e,t,i,n){return h0(this,void 0,void 0,function*(){let r=this._getModel(e),o=this._getModel(t);return r&&o?h2.computeDiff(r,o,i,n):null})}static computeDiff(e,t,i,n){let r="advanced"===n?hW.getAdvanced():hW.getLegacy(),o=e.getLinesContent(),s=t.getLinesContent(),a=r.computeDiff(o,s,i),l=!(a.changes.length>0)&&this._modelsAreIdentical(e,t);function h(e){return e.map(e=>{var t;return[e.originalRange.startLineNumber,e.originalRange.endLineNumberExclusive,e.modifiedRange.startLineNumber,e.modifiedRange.endLineNumberExclusive,null===(t=e.innerChanges)||void 0===t?void 0:t.map(e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn])]})}return{identical:l,quitEarly:a.hitTimeout,changes:h(a.changes),moves:a.moves.map(e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,h(e.changes)])}}static _modelsAreIdentical(e,t){let i=e.getLineCount(),n=t.getLineCount();if(i!==n)return!1;for(let n=1;n<=i;n++){let i=e.getLineContent(n),r=t.getLineContent(n);if(i!==r)return!1}return!0}computeMoreMinimalEdits(e,t,i){return h0(this,void 0,void 0,function*(){let n;let r=this._getModel(e);if(!r)return t;let o=[];for(let{range:e,text:a,eol:l}of t=t.slice(0).sort((e,t)=>{if(e.range&&t.range)return r_.compareRangesUsingStarts(e.range,t.range);let i=e.range?0:1,n=t.range?0:1;return i-n})){var s;if("number"==typeof l&&(n=l),r_.isEmpty(e)&&!a)continue;let t=r.getValueInRange(e);if(t===(a=a.replace(/\r\n|\n|\r/g,r.eol)))continue;if(Math.max(a.length,t.length)>h2._diffLimit){o.push({range:e,text:a});continue}let h=(s=a,new lH(new lP(t),new lP(s)).ComputeDiff(i).changes),u=r.offsetAt(r_.lift(e).getStartPosition());for(let e of h){let t=r.positionAt(u+e.originalStart),i=r.positionAt(u+e.originalStart+e.originalLength),n={text:a.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}};r.getValueInRange(n.range)!==n.text&&o.push(n)}}return"number"==typeof n&&o.push({eol:n,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),o})}computeLinks(e){return h0(this,void 0,void 0,function*(){let t=this._getModel(e);return t?t&&"function"==typeof t.getLineCount&&"function"==typeof t.getLineContent?lQ.computeLinks(t):[]:null})}computeDefaultDocumentColors(e){return h0(this,void 0,void 0,function*(){let t=this._getModel(e);return t?t&&"function"==typeof t.getValue&&"function"==typeof t.positionAt?function(e){let t=[],i=hQ(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(i.length>0)for(let n of i){let i;let r=n.filter(e=>void 0!==e),o=r[1],s=r[2];if(s){if("rgb"===o){let t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;i=hZ(hq(e,n),hQ(s,t),!1)}else if("rgba"===o){let t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;i=hZ(hq(e,n),hQ(s,t),!0)}else if("hsl"===o){let t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;i=hJ(hq(e,n),hQ(s,t),!1)}else if("hsla"===o){let t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;i=hJ(hq(e,n),hQ(s,t),!0)}else"#"===o&&(i=function(e,t){if(!e)return;let i=h$.Format.CSS.parseHex(t);if(i)return{range:e,color:hj(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}}(hq(e,n),o+s));i&&t.push(i)}}return t}(t):[]:null})}textualSuggest(e,t,i,n){return h0(this,void 0,void 0,function*(){let r=new nE,o=new RegExp(i,n),s=new Set;n:for(let i of e){let e=this._getModel(i);if(e){for(let i of e.words(o))if(i!==t&&isNaN(Number(i))&&(s.add(i),s.size>h2._suggestionsLimit))break n}}return{words:Array.from(s),duration:r.elapsed()}})}computeWordRanges(e,t,i,n){return h0(this,void 0,void 0,function*(){let r=this._getModel(e);if(!r)return Object.create(null);let o=new RegExp(i,n),s=Object.create(null);for(let e=t.startLineNumber;ethis._host.fhr(e,t));return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory({host:n,getMirrorModels:()=>this._getModels()},t),Promise.resolve((0,oj.$E)(this._foreignModule))):Promise.reject(Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}}h2._diffLimit=1e5,h2._suggestionsLimit=1e4,"function"==typeof importScripts&&(globalThis.monaco=rk());let h4=oG("textResourceConfigurationService"),h5=oG("textResourcePropertiesService"),h6=oG("logService");(ey=t0||(t0={}))[ey.Off=0]="Off",ey[ey.Trace=1]="Trace",ey[ey.Debug=2]="Debug",ey[ey.Info=3]="Info",ey[ey.Warning=4]="Warning",ey[ey.Error=5]="Error";let h3=t0.Info;class h9 extends nc{constructor(){super(...arguments),this.level=h3,this._onDidChangeLogLevel=this._register(new nT),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==t0.Off&&this.level<=e}}class h7 extends h9{constructor(e=h3,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.checkLogLevel(t0.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.checkLogLevel(t0.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.checkLogLevel(t0.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}warn(e,...t){this.checkLogLevel(t0.Warning)&&(this.useColors?console.log("%c WARN","color: #993",e,...t):console.log(e,...t))}error(e,...t){this.checkLogLevel(t0.Error)&&(this.useColors?console.log("%c ERR","color: #f33",e,...t):console.error(e,...t))}dispose(){}}class h8 extends h9{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(let t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(let i of this.loggers)i.trace(e,...t)}debug(e,...t){for(let i of this.loggers)i.debug(e,...t)}info(e,...t){for(let i of this.loggers)i.info(e,...t)}warn(e,...t){for(let i of this.loggers)i.warn(e,...t)}error(e,...t){for(let i of this.loggers)i.error(e,...t)}dispose(){for(let e of this.loggers)e.dispose()}}new sR("logLevel",function(e){switch(e){case t0.Trace:return"trace";case t0.Debug:return"debug";case t0.Info:return"info";case t0.Warning:return"warn";case t0.Error:return"error";case t0.Off:return"off"}}(t0.Info));let ue=oG("ILanguageFeaturesService");var ut=function(e,t){return function(i,n){t(i,n,e)}},ui=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};function un(e,t){let i=e.getModel(t);return!(!i||i.isTooLargeForSyncing())}let ur=class extends nc{constructor(e,t,i,n,r){super(),this._modelService=e,this._workerManager=this._register(new us(this._modelService,n)),this._logService=i,this._register(r.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(e,t)=>un(this._modelService,e.uri)?this._workerManager.withWorker().then(t=>t.computeLinks(e.uri)).then(e=>e&&{links:e}):Promise.resolve({links:[]})})),this._register(r.completionProvider.register("*",new uo(this._workerManager,t,this._modelService,n)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return un(this._modelService,e)}computedUnicodeHighlights(e,t,i){return this._workerManager.withWorker().then(n=>n.computedUnicodeHighlights(e,t,i))}computeDiff(e,t,i,n){return ui(this,void 0,void 0,function*(){let r=yield this._workerManager.withWorker().then(r=>r.computeDiff(e,t,i,n));if(!r)return null;let o={identical:r.identical,quitEarly:r.quitEarly,changes:s(r.changes),moves:r.moves.map(e=>new ha(new hs(new hi(e[0],e[1]),new hi(e[2],e[3])),s(e[4])))};return o;function s(e){return e.map(e=>{var t;return new hr(new hi(e[0],e[1]),new hi(e[2],e[3]),null===(t=e[4])||void 0===t?void 0:t.map(e=>new ho(new r_(e[0],e[1],e[2],e[3]),new r_(e[4],e[5],e[6],e[7]))))})}})}computeMoreMinimalEdits(e,t,i=!1){if(!(0,sq.Of)(t))return Promise.resolve(void 0);{if(!un(this._modelService,e))return Promise.resolve(t);let n=nE.create(),r=this._workerManager.withWorker().then(n=>n.computeMoreMinimalEdits(e,t,i));return r.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),n.elapsed())),Promise.race([r,ls(1e3).then(()=>t)])}}canNavigateValueSet(e){return un(this._modelService,e)}navigateValueSet(e,t,i){return this._workerManager.withWorker().then(n=>n.navigateValueSet(e,t,i))}canComputeWordRanges(e){return un(this._modelService,e)}computeWordRanges(e,t){return this._workerManager.withWorker().then(i=>i.computeWordRanges(e,t))}};ur=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([ut(0,a6),ut(1,h4),ut(2,h6),ut(3,az),ut(4,ue)],ur);class uo{constructor(e,t,i,n){this.languageConfigurationService=n,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}provideCompletionItems(e,t){return ui(this,void 0,void 0,function*(){let i=this._configurationService.getValue(e.uri,t,"editor");if(!i.wordBasedSuggestions)return;let n=[];if("currentDocument"===i.wordBasedSuggestionsMode)un(this._modelService,e.uri)&&n.push(e.uri);else for(let t of this._modelService.getModels())un(this._modelService,t.uri)&&(t===e?n.unshift(t.uri):("allDocuments"===i.wordBasedSuggestionsMode||t.getLanguageId()===e.getLanguageId())&&n.push(t.uri));if(0===n.length)return;let r=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),o=e.getWordAtPosition(t),s=o?new r_(t.lineNumber,o.startColumn,t.lineNumber,o.endColumn):r_.fromPositions(t),a=s.setEndPosition(t.lineNumber,t.column),l=yield this._workerManager.withWorker(),h=yield l.textualSuggest(n,null==o?void 0:o.word,r);if(h)return{duration:h.duration,suggestions:h.words.map(e=>({kind:18,label:e,insertText:e,range:{insert:a,replace:s}}))}})}}class us extends nc{constructor(e,t){super(),this.languageConfigurationService=t,this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime();let i=this._register(new lh);i.cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(15e4)),this._register(this._modelService.onModelRemoved(e=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;let e=this._modelService.getModels();0===e.length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;let e=new Date().getTime()-this._lastWorkerUsedTime;e>3e5&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new uu(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}}class ua extends nc{constructor(e,t,i){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!i){let e=new lh;e.cancelAndSet(()=>this._checkStopModelSync(),Math.round(3e4)),this._register(e)}}dispose(){for(let e in this._syncedModels)nl(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t){for(let i of e){let e=i.toString();this._syncedModels[e]||this._beginModelSync(i,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=new Date().getTime())}}_checkStopModelSync(){let e=new Date().getTime(),t=[];for(let i in this._syncedModelsLastUsedTime){let n=e-this._syncedModelsLastUsedTime[i];n>6e4&&t.push(i)}for(let e of t)this._stopModelSync(e)}_beginModelSync(e,t){let i=this._modelService.getModel(e);if(!i||!t&&i.isTooLargeForSyncing())return;let n=e.toString();this._proxy.acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});let r=new nd;r.add(i.onDidChangeContent(e=>{this._proxy.acceptModelChanged(n.toString(),e)})),r.add(i.onWillDispose(()=>{this._stopModelSync(n)})),r.add(nu(()=>{this._proxy.acceptRemovedModel(n)})),this._syncedModels[n]=r}_stopModelSync(e){let t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],nl(t)}}class ul{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class uh{constructor(e){this._workerClient=e}fhr(e,t){return this._workerClient.fhr(e,t)}}class uu extends nc{constructor(e,t,i,n){super(),this.languageConfigurationService=n,this._disposed=!1,this._modelService=e,this._keepIdleModels=t,this._workerFactory=new lN(i),this._worker=null,this._modelManager=null}fhr(e,t){throw Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new ly(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new uh(this)))}catch(e){lf(e),this._worker=new ul(new h2(new uh(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,e=>(lf(e),this._worker=new ul(new h2(new uh(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new ua(e,this._modelService,this._keepIdleModels))),this._modelManager}_withSyncedResources(e,t=!1){return ui(this,void 0,void 0,function*(){return this._disposed?Promise.reject(function(){let e=Error(i5);return e.name=e.message,e}()):this._getProxy().then(i=>(this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i))})}computedUnicodeHighlights(e,t,i){return this._withSyncedResources([e]).then(n=>n.computeUnicodeHighlights(e.toString(),t,i))}computeDiff(e,t,i,n){return this._withSyncedResources([e,t],!0).then(r=>r.computeDiff(e.toString(),t.toString(),i,n))}computeMoreMinimalEdits(e,t,i){return this._withSyncedResources([e]).then(n=>n.computeMoreMinimalEdits(e.toString(),t,i))}computeLinks(e){return this._withSyncedResources([e]).then(t=>t.computeLinks(e.toString()))}computeDefaultDocumentColors(e){return this._withSyncedResources([e]).then(t=>t.computeDefaultDocumentColors(e.toString()))}textualSuggest(e,t,i){return ui(this,void 0,void 0,function*(){let n=yield this._withSyncedResources(e),r=i.source,o=rz(i);return n.textualSuggest(e.map(e=>e.toString()),t,r,o)})}computeWordRanges(e,t){return this._withSyncedResources([e]).then(i=>{let n=this._modelService.getModel(e);if(!n)return Promise.resolve(null);let r=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId()).getWordDefinition(),o=r.source,s=rz(r);return i.computeWordRanges(e.toString(),t,o,s)})}navigateValueSet(e,t,i){return this._withSyncedResources([e]).then(n=>{let r=this._modelService.getModel(e);if(!r)return null;let o=this.languageConfigurationService.getLanguageConfiguration(r.getLanguageId()).getWordDefinition(),s=o.source,a=rz(o);return n.navigateValueSet(e.toString(),t,i,s,a)})}dispose(){super.dispose(),this._disposed=!0}}class ud extends uu{constructor(e,t,i){super(e,i.keepIdleModels||!1,i.label,t),this._foreignModuleId=i.moduleId,this._foreignModuleCreateData=i.createData||null,this._foreignModuleHost=i.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||"function"!=typeof this._foreignModuleHost[e])return Promise.reject(Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(e){return Promise.reject(e)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(e=>{let t=this._foreignModuleHost?(0,oj.$E)(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then(t=>{this._foreignModuleCreateData=null;let i=(t,i)=>e.fmr(t,i),n=(e,t)=>function(){let i=Array.prototype.slice.call(arguments,0);return t(e,i)},r={};for(let e of t)r[e]=n(e,i);return r})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then(e=>this.getProxy())}}class uc{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t=this.getForeground(e),i="mtk"+t,n=this.getFontStyle(e);return 1&n&&(i+=" mtki"),2&n&&(i+=" mtkb"),4&n&&(i+=" mtku"),8&n&&(i+=" mtks"),i}static getInlineStyleFromMetadata(e,t){let i=this.getForeground(e),n=this.getFontStyle(e),r=`color: ${t[i]};`;1&n&&(r+="font-style: italic;"),2&n&&(r+="font-weight: bold;");let o="";return 4&n&&(o+=" underline"),8&n&&(o+=" line-through"),o&&(r+=`text-decoration:${o};`),r}static getPresentationFromMetadata(e){let t=this.getForeground(e),i=this.getFontStyle(e);return{foreground:t,italic:!!(1&i),bold:!!(2&i),underline:!!(4&i),strikethrough:!!(8&i)}}}class ug{static createEmpty(e,t){let i=ug.defaultTokenMetadata,n=new Uint32Array(2);return n[0]=e.length,n[1]=i,new ug(n,e,t)}constructor(e,t,i){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this._languageIdCodec=i}equals(e){return e instanceof ug&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,i){if(this._text!==e._text||this._tokensCount!==e._tokensCount)return!1;let n=t<<1,r=n+(i<<1);for(let t=n;t0?this._tokens[e-1<<1]:0}getMetadata(e){let t=this._tokens[(e<<1)+1];return t}getLanguageId(e){let t=this._tokens[(e<<1)+1],i=uc.getLanguageId(t);return this._languageIdCodec.decodeLanguageId(i)}getStandardTokenType(e){let t=this._tokens[(e<<1)+1];return uc.getTokenType(t)}getForeground(e){let t=this._tokens[(e<<1)+1];return uc.getForeground(t)}getClassName(e){let t=this._tokens[(e<<1)+1];return uc.getClassNameFromMetadata(t)}getInlineStyle(e,t){let i=this._tokens[(e<<1)+1];return uc.getInlineStyleFromMetadata(i,t)}getPresentation(e){let t=this._tokens[(e<<1)+1];return uc.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return ug.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,i){return new up(this,e,t,i)}static convertToEndOffset(e,t){let i=e.length>>>1,n=i-1;for(let t=0;t>>1)-1;for(;it&&(n=r)}return i}withInserted(e){if(0===e.length)return this;let t=0,i=0,n="",r=[],o=0;for(;;){let s=to){n+=this._text.substring(o,a.offset);let e=this._tokens[(t<<1)+1];r.push(n.length,e),o=a.offset}n+=a.text,r.push(n.length,a.tokenMetadata),i++}else break}return new ug(new Uint32Array(r),n,this._languageIdCodec)}}ug.defaultTokenMetadata=33587200;class up{constructor(e,t,i,n){this._source=e,this._startOffset=t,this._endOffset=i,this._deltaOffset=n,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(let t=this._firstTokenIndex,n=e.getCount();t=i)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof up&&this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount)}getCount(){return this._tokensCount}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){let t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}class uf{constructor(e,t,i,n){this.startColumn=e,this.endColumn=t,this.className=i,this.type=n,this._lineDecorationBrand=void 0}static _equals(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type}static equalsArr(e,t){let i=e.length,n=t.length;if(i!==n)return!1;for(let n=0;n=r||(s[a++]=new uf(Math.max(1,t.startColumn-n+1),Math.min(o+1,t.endColumn-n+1),t.className,t.type));return s}static filter(e,t,i,n){if(0===e.length)return[];let r=[],o=0;for(let s=0,a=e.length;st||l.isEmpty()&&(0===a.type||3===a.type))continue;let h=l.startLineNumber===t?l.startColumn:i,u=l.endLineNumber===t?l.endColumn:n;r[o++]=new uf(h,u,a.inlineClassName,a.type)}return r}static _typeCompare(e,t){let i=[2,0,1,3];return i[e]-i[t]}static compare(e,t){if(e.startColumn!==t.startColumn)return e.startColumn-t.startColumn;if(e.endColumn!==t.endColumn)return e.endColumn-t.endColumn;let i=uf._typeCompare(e.type,t.type);return 0!==i?i:e.className!==t.className?e.className0&&this.stopOffsets[0]0&&t=e){this.stopOffsets.splice(n,0,e),this.classNames.splice(n,0,t),this.metadata.splice(n,0,i);break}this.count++}}class uE{static normalize(e,t){if(0===t.length)return[];let i=[],n=new uv,r=0;for(let o=0,s=t.length;o1){let t=e.charCodeAt(a-2);r3(t)&&a--}if(l>1){let t=e.charCodeAt(l-2);r3(t)&&l--}let d=a-1,c=l-2;r=n.consumeLowerThan(d,r,i),0===n.count&&(r=d),n.insert(c,h,u)}return n.consumeLowerThan(1073741824,r,i),i}}class u_{constructor(e,t,i,n){this.endIndex=e,this.type=t,this.metadata=i,this.containsRTL=n,this._linePartBrand=void 0}isWhitespace(){return!!(1&this.metadata)}isPseudoAfter(){return!!(4&this.metadata)}}class uC{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class uS{constructor(e,t,i,n,r,o,s,a,l,h,u,d,c,g,p,f,m,v,E){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=n,this.isBasicASCII=r,this.containsRTL=o,this.fauxIndentLength=s,this.lineTokens=a,this.lineDecorations=l.sort(uf.compare),this.tabSize=h,this.startVisibleColumn=u,this.spaceWidth=d,this.stopRenderingLineAfter=p,this.renderWhitespace="all"===f?4:"boundary"===f?1:"selection"===f?2:"trailing"===f?3:0,this.renderControlCharacters=m,this.fontLigatures=v,this.selectionsOnLine=E&&E.sort((e,t)=>e.startOffset>>16}static getCharIndex(e){return(65535&e)>>>0}constructor(e,t){this.length=e,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(e,t,i,n){this._data[e-1]=(t<<16|i<<0)>>>0,this._horizontalOffset[e-1]=n}getHorizontalOffset(e){return 0===this._horizontalOffset.length?0:this._horizontalOffset[e-1]}charOffsetToPartData(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){let t=this.charOffsetToPartData(e-1),i=uT.getPartIndex(t),n=uT.getCharIndex(t);return new uy(i,n)}getColumn(e,t){let i=this.partDataToCharOffset(e.partIndex,t,e.charIndex);return i+1}partDataToCharOffset(e,t,i){if(0===this.length)return 0;let n=(e<<16|i<<0)>>>0,r=0,o=this.length-1;for(;r+1>>1,t=this._data[e];if(t===n)return e;t>n?o=e:r=e}if(r===o)return r;let s=this._data[r],a=this._data[o];if(s===n)return r;if(a===n)return o;let l=uT.getPartIndex(s),h=uT.getCharIndex(s),u=uT.getPartIndex(a);return i-h<=(l!==u?t:uT.getCharIndex(a))-i?r:o}}class ub{constructor(e,t,i){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=i}}function uA(e,t){if(0===e.lineContent.length){if(e.lineDecorations.length>0){t.appendString("");let i=0,n=0,r=0;for(let o of e.lineDecorations)(1===o.type||2===o.type)&&(t.appendString(''),1===o.type&&(r|=1,i++),2===o.type&&(r|=2,n++));t.appendString("");let o=new uT(1,i+n);return o.setColumnInfo(1,i,0,0),new ub(o,!1,r)}return t.appendString(""),new ub(new uT(0,0),!1,0)}return function(e,t){let i=e.fontIsMonospace,n=e.canUseHalfwidthRightwardsArrow,r=e.containsForeignElements,o=e.lineContent,s=e.len,a=e.isOverflowing,l=e.overflowingCharCount,h=e.parts,u=e.fauxIndentLength,d=e.tabSize,c=e.startVisibleColumn,g=e.containsRTL,p=e.spaceWidth,f=e.renderSpaceCharCode,m=e.renderWhitespace,v=e.renderControlCharacters,E=new uT(s+1,h.length),_=!1,C=0,S=c,y=0,T=0,b=0;g?t.appendString(''):t.appendString("");for(let e=0,a=h.length;e=u&&(t+=r)}}for(R&&(t.appendString(' style="width:'),t.appendString(String(p*i)),t.appendString('px"')),t.appendASCIICharCode(62);C1?t.appendCharCode(8594):t.appendCharCode(65515);for(let e=2;e<=r;e++)t.appendCharCode(160)}else i=2,r=1,t.appendCharCode(f),t.appendCharCode(8204);y+=i,T+=r,C>=u&&(S+=r)}}else for(t.appendASCIICharCode(62);C=u&&(S+=r)}L?b++:b=0,C>=s&&!_&&a.isPseudoAfter()&&(_=!0,E.setColumnInfo(C+1,e,y,T)),t.appendString("")}return _||E.setColumnInfo(s+1,h.length-1,y,T),a&&(t.appendString(''),t.appendString(rL.NC("showMore","Show more ({0})",l<1024?rL.NC("overflow.chars","{0} chars",l):l<1048576?`${(l/1024).toFixed(1)} KB`:`${(l/1024/1024).toFixed(1)} MB`)),t.appendString("")),t.appendString(""),new ub(E,g,r)}(function(e){let t,i,n;let r=e.lineContent;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter0&&(o[s++]=new u_(n,"",0,!1));let a=n;for(let l=0,h=i.getCount();l=r){let i=!!t&&or(e.substring(a,r));o[s++]=new u_(r,u,0,i);break}let d=!!t&&or(e.substring(a,h));o[s++]=new u_(h,u,0,d),a=h}return o}(r,e.containsRTL,e.lineTokens,e.fauxIndentLength,n);e.renderControlCharacters&&!e.isBasicASCII&&(o=function(e,t){let i=[],n=new u_(0,"",0,!1),r=0;for(let o of t){let t=o.endIndex;for(;rn.endIndex&&(n=new u_(r,o.type,o.metadata,o.containsRTL),i.push(n)),n=new u_(r+1,"mtkcontrol",o.metadata,!1),i.push(n))}r>n.endIndex&&(n=new u_(t,o.type,o.metadata,o.containsRTL),i.push(n))}return i}(r,o)),(4===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine||3===e.renderWhitespace&&!e.continuesWithWrappedLine)&&(o=function(e,t,i,n){let r;let o=e.continuesWithWrappedLine,s=e.fauxIndentLength,a=e.tabSize,l=e.startVisibleColumn,h=e.useMonospaceOptimizations,u=e.selectionsOnLine,d=1===e.renderWhitespace,c=3===e.renderWhitespace,g=e.renderSpaceWidth!==e.spaceWidth,p=[],f=0,m=0,v=n[0].type,E=n[m].containsRTL,_=n[m].endIndex,C=n.length,S=!1,y=rK(t);-1===y?(S=!0,y=i,r=i):r=rX(t);let T=!1,b=0,A=u&&u[b],R=l%a;for(let e=s;e=A.endOffset&&(b++,A=u&&u[b]),er)o=!0;else if(9===l)o=!0;else if(32===l){if(d){if(T)o=!0;else{let n=e+1e),o&&c&&(o=S||e>r),o&&E&&e>=y&&e<=r&&(o=!1),T){if(!o||!h&&R>=a){if(g){let t=f>0?p[f-1].endIndex:s;for(let i=t+1;i<=e;i++)p[f++]=new u_(i,"mtkw",1,!1)}else p[f++]=new u_(e,"mtkw",1,!1);R%=a}}else(e===_||o&&e>s)&&(p[f++]=new u_(e,v,0,E),R%=a);for(9===l?R=a:ol(l)?R+=2:R++,T=o;e===_;)if(++m0?t.charCodeAt(i-1):0,n=i>1?t.charCodeAt(i-2):0;32===e&&32!==n&&9!==n||(L=!0)}else L=!0}if(L){if(g){let e=f>0?p[f-1].endIndex:s;for(let t=e+1;t<=i;t++)p[f++]=new u_(t,"mtkw",1,!1)}else p[f++]=new u_(i,"mtkw",1,!1)}else p[f++]=new u_(i,v,0,E);return p}(e,r,n,o));let s=0;if(e.lineDecorations.length>0){for(let t=0,i=e.lineDecorations.length;th&&(h=e.startOffset,a[l++]=new u_(h,u,d,c)),e.endOffset+1<=n)h=e.endOffset+1,a[l++]=new u_(h,u+" "+e.className,d|e.metadata,c),s++;else{h=n,a[l++]=new u_(h,u+" "+e.className,d|e.metadata,c);break}}n>h&&(h=n,a[l++]=new u_(h,u,d,c))}let u=i[i.length-1].endIndex;if(s=50&&(r[o++]=new u_(h+1,t,i,l),u=h+1,h=-1);u!==a&&(r[o++]=new u_(a,t,i,l))}else r[o++]=s;n=a}else for(let e=0,i=t.length;e50){let e=i.type,t=i.metadata,l=i.containsRTL,h=Math.ceil(a/50);for(let i=1;i=8234&&e<=8238||e>=8294&&e<=8297||e>=8206&&e<=8207||1564===e}class uw{constructor(e,t,i,n){this._viewportBrand=void 0,this.top=0|e,this.left=0|t,this.width=0|i,this.height=0|n}}class uO{constructor(e,t){this.tabSize=e,this.data=t}}class ux{constructor(e,t,i,n,r,o,s){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=n,this.startVisibleColumn=r,this.tokens=o,this.inlineDecorations=s}}class uD{constructor(e,t,i,n,r,o,s,a,l,h){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=n,this.isBasicASCII=uD.isBasicASCII(i,o),this.containsRTL=uD.containsRTL(i,this.isBasicASCII,r),this.tokens=s,this.inlineDecorations=a,this.tabSize=l,this.startVisibleColumn=h}static isBasicASCII(e,t){return!t||os(e)}static containsRTL(e,t,i){return!t&&!!i&&or(e)}}class uM{constructor(e,t,i){this.range=e,this.inlineClassName=t,this.type=i}}class uk{constructor(e,t,i,n){this.startOffset=e,this.endOffset=t,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=n}toInlineDecoration(e){return new uM(new r_(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class uP{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}class uF{constructor(e,t,i){this.color=e,this.zIndex=t,this.data=i}static cmp(e,t){return e.zIndex===t.zIndex?e.colort.color?1:0:e.zIndex-t.zIndex}}function uB(e){return"string"==typeof e}function uU(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function uH(e){return e.replace(/[&<>'"_]/g,"-")}function uV(e,t){return Error(`${e.languageId}: ${t}`)}function uW(e,t,i,n,r){let o=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,function(t,s,a,l,h,u,d,c,g){return a?"$":l?uU(e,i):h&&h0;){let t=e.tokenizer[i];if(t)return t;let n=i.lastIndexOf(".");i=n<0?null:i.substr(0,n)}return null}class uz{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new uY(e,t);let i=uY.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let n=this._entries[i];return n||(n=new uY(e,t),this._entries[i]=n),n}}uz._INSTANCE=new uz(5);class uY{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t}equals(e){return uY._equals(this,e)}push(e){return uz.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return uz.create(this.parent,e)}}class uK{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){let e=this.state.clone();return e===this.state?this:new uK(this.languageId,this.state)}}class u${static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==t||null!==e&&e.depth>=this._maxCacheDepth)return new uX(e,t);let i=uY.getStackElementId(e),n=this._entries[i];return n||(n=new uX(e,null),this._entries[i]=n),n}}u$._INSTANCE=new u$(5);class uX{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){let e=this.embeddedLanguageData?this.embeddedLanguageData.clone():null;return e===this.embeddedLanguageData?this:u$.create(this.stack,this.embeddedLanguageData)}equals(e){return!!(e instanceof uX&&this.stack.equals(e.stack))&&(null===this.embeddedLanguageData&&null===e.embeddedLanguageData||null!==this.embeddedLanguageData&&null!==e.embeddedLanguageData&&this.embeddedLanguageData.equals(e.embeddedLanguageData))}}class uj{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){(this._lastTokenType!==t||this._lastTokenLanguage!==this._languageId)&&(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new rN(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,n){let r=i.languageId,o=i.state,s=rD.get(r);if(!s)return this.enterLanguage(r),this.emit(n,""),o;let a=s.tokenize(e,t,o);if(0!==n)for(let e of a.tokens)this._tokens.push(new rN(e.offset+n,e.type,e.language));else this._tokens=this._tokens.concat(a.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,a.endState}finalize(e){return new rI(this._tokens,e)}}class uq{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){let i=1024|this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i))}static _merge(e,t,i){let n=null!==e?e.length:0,r=t.length,o=null!==i?i.length:0;if(0===n&&0===r&&0===o)return new Uint32Array(0);if(0===n&&0===r)return i;if(0===r&&0===o)return e;let s=new Uint32Array(n+r+o);null!==e&&s.set(e);for(let e=0;e{if(o)return;let t=!1;for(let i=0,n=e.changedLanguages.length;i{e.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))})}dispose(){this._tokenizationRegistryListener.dispose()}getLoadStatus(){let t=[];for(let i in this._embeddedLanguages){let n=rD.get(i);if(n){if(n instanceof e){let e=n.getLoadStatus();!1===e.loaded&&t.push(e.promise)}continue}rD.isResolved(i)||t.push(rD.getOrCreate(i))}return 0===t.length?{loaded:!0}:{loaded:!1,promise:Promise.all(t).then(e=>void 0)}}getInitialState(){let e=uz.create(null,this._lexer.start);return u$.create(e,null)}tokenize(e,t,i){if(e.length>=this._maxTokenizationLineLength)return a4(this._languageId,i);let n=new uj,r=this._tokenize(e,t,i,n);return n.finalize(r)}tokenizeEncoded(e,t,i){if(e.length>=this._maxTokenizationLineLength)return a5(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),i);let n=new uq(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),r=this._tokenize(e,t,i,n);return n.finalize(r)}_tokenize(e,t,i,n){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,n):this._myTokenize(e,t,i,0,n)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&!(i=uG(this._lexer,t.stack.state)))throw uV(this._lexer,"tokenizer state is not defined: "+t.stack.state);let n=-1,r=!1;for(let t of i){if(uB(t.action)||"@pop"!==t.action.nextEmbedded)continue;r=!0;let i=t.regex,o=t.regex.source;if("^(?:"===o.substr(0,4)&&")"===o.substr(o.length-1,1)){let e=(i.ignoreCase?"i":"")+(i.unicode?"u":"");i=new RegExp(o.substr(4,o.length-5),e)}let s=e.search(i);-1!==s&&(0===s||!t.matchOnlyAtLineStart)&&(-1===n||s0&&r.nestedLanguageTokenize(s,!1,i.embeddedLanguageData,n);let a=e.substring(o);return this._myTokenize(a,t,i,n+o,r)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,n,r){r.enterLanguage(this._languageId);let o=e.length,s=t&&this._lexer.includeLF?e+"\n":e,a=s.length,l=i.embeddedLanguageData,h=i.stack,u=0,d=null,c=!0;for(;c||u=a)break;c=!1;let e=this._lexer.tokenizer[f];if(!e&&!(e=uG(this._lexer,f)))throw uV(this._lexer,"tokenizer state is not defined: "+f);let t=s.substr(u);for(let i of e)if((0===u||!i.matchOnlyAtLineStart)&&(m=t.match(i.regex))){v=m[0],E=i.action;break}}if(m||(m=[""],v=""),E||(u=this._lexer.maxStack)throw uV(this._lexer,"maximum tokenizer stack size reached: ["+h.state+","+h.parent.state+",...]");h=h.push(f)}else if("@pop"===E.next){if(h.depth<=1)throw uV(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(_));h=h.pop()}else if("@popall"===E.next)h=h.popall();else{let e=uW(this._lexer,E.next,v,m,f);if("@"===e[0]&&(e=e.substr(1)),uG(this._lexer,e))h=h.push(e);else throw uV(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(_))}}E.log&&"string"==typeof E.log&&console.log(`${this._lexer.languageId}: ${this._lexer.languageId+": "+uW(this._lexer,E.log,v,m,f)}`)}if(null===S)throw uV(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(_));let y=i=>{let o=this._languageService.getLanguageIdByLanguageName(i)||this._languageService.getLanguageIdByMimeType(i)||i,s=this._getNestedEmbeddedLanguageData(o);if(!(u0)throw uV(this._lexer,"groups cannot be nested: "+this._safeRuleName(_));if(m.length!==S.length+1)throw uV(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(_));let e=0;for(let t=1;t=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([function(e,t){al(e,t,4)}],uZ);let uJ=lA("standaloneColorizer",{createHTML:e=>e});class uQ{static colorizeElement(e,t,i,n){n=n||{};let r=n.theme||"vs",o=n.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!o)return console.error("Mode not detected"),Promise.resolve();let s=t.getLanguageIdByMimeType(o)||o;e.setTheme(r);let a=i.firstChild?i.firstChild.nodeValue:"";return i.className+=" "+r,this.colorize(t,a||"",s,n).then(e=>{var t;let n=null!==(t=null==uJ?void 0:uJ.createHTML(e))&&void 0!==t?t:e;i.innerHTML=n},e=>console.error(e))}static colorize(e,t,i,n){var r,o,s,a;return r=this,o=void 0,s=void 0,a=function*(){var r;let o=e.languageIdCodec,s=4;n&&"number"==typeof n.tabSize&&(s=n.tabSize),od(t)&&(t=t.substr(1));let a=rY(t);if(!e.isRegisteredLanguageId(i))return u0(a,s,o);let l=yield rD.getOrCreate(i);return l?(r=s,new Promise((e,t)=>{let i=()=>{let n=function(e,t,i,n){let r=[],o=i.getInitialState();for(let s=0,a=e.length;s"),o=l.endState}return r.join("")}(a,r,l,o);if(l instanceof uZ){let e=l.getLoadStatus();if(!1===e.loaded){e.promise.then(i,t);return}}e(n)};i()})):u0(a,s,o)},new(s||(s=Promise))(function(e,t){function i(e){try{l(a.next(e))}catch(e){t(e)}}function n(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof s?r:new s(function(e){e(r)})).then(i,n)}l((a=a.apply(r,o||[])).next())})}static colorizeLine(e,t,i,n,r=4){let o=uD.isBasicASCII(e,t),s=uD.containsRTL(e,o,i),a=uL(new uS(!1,!0,e,!1,o,s,0,n,[],r,0,0,0,0,-1,"none",!1,!1,null));return a.html}static colorizeModelLine(e,t,i=4){let n=e.getLineContent(t);e.tokenization.forceTokenization(t);let r=e.tokenization.getLineTokens(t),o=r.inflate();return this.colorizeLine(n,e.mightContainNonBasicASCII(),e.mightContainRTL(),o,i)}}function u0(e,t,i){let n=[],r=new Uint32Array(2);r[0]=0,r[1]=33587200;for(let o=0,s=e.length;o")}return n.join("")}let u1={clipboard:{writeText:nY.tY||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:nY.tY||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:nY.tY||oI?0:navigator.keyboard||oR?1:2,touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)};function u2(e,t){if("number"==typeof e){if(0===e)return null;let i=(65535&e)>>>0,n=(4294901760&e)>>>16;return new u6(0!==n?[u4(i,t),u4(n,t)]:[u4(i,t)])}{let i=[];for(let n=0;n1?i-1:0),r=1;r/gm),dz=dc(/^data-[\-\w.\u00B7-\uFFFF]/),dY=dc(/^aria-[\-\w]+$/),dK=dc(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),d$=dc(/^(?:\w+script|data):/i),dX=dc(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),dj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function dq(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,i=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,i=function(t){return e(t)};if(i.version="2.3.1",i.removed=[],!t||!t.document||9!==t.document.nodeType)return i.isSupported=!1,i;var n=t.document,r=t.document,o=t.DocumentFragment,s=t.HTMLTemplateElement,a=t.Node,l=t.Element,h=t.NodeFilter,u=t.NamedNodeMap,d=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,c=t.Text,g=t.Comment,p=t.DOMParser,f=t.trustedTypes,m=l.prototype,v=dw(m,"cloneNode"),E=dw(m,"nextSibling"),_=dw(m,"childNodes"),C=dw(m,"parentNode");if("function"==typeof s){var S=r.createElement("template");S.content&&S.content.ownerDocument&&(r=S.content.ownerDocument)}var y=dZ(f,n),T=y&&j?y.createHTML(""):"",b=r,A=b.implementation,R=b.createNodeIterator,L=b.createDocumentFragment,N=b.getElementsByTagName,I=n.importNode,w={};try{w=dI(r).documentMode?r.documentMode:{}}catch(e){}var O={};i.isSupported="function"==typeof C&&A&&void 0!==A.createHTMLDocument&&9!==w;var x=dK,D=null,M=dN({},[].concat(dq(dO),dq(dx),dq(dD),dq(dk),dq(dF))),k=null,P=dN({},[].concat(dq(dB),dq(dU),dq(dH),dq(dV))),F=null,B=null,U=!0,H=!0,V=!1,W=!1,G=!1,z=!1,Y=!1,K=!1,$=!1,X=!0,j=!1,q=!0,Z=!0,J=!1,Q={},ee=null,et=dN({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ei=null,en=dN({},["audio","video","img","source","image","track"]),er=null,eo=dN({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),es="http://www.w3.org/1998/Math/MathML",ea="http://www.w3.org/2000/svg",el="http://www.w3.org/1999/xhtml",eh=el,eu=!1,ed=null,ec=r.createElement("form"),eg=function(e){ed&&ed===e||(e&&(void 0===e?"undefined":dj(e))==="object"||(e={}),D="ALLOWED_TAGS"in(e=dI(e))?dN({},e.ALLOWED_TAGS):M,k="ALLOWED_ATTR"in e?dN({},e.ALLOWED_ATTR):P,er="ADD_URI_SAFE_ATTR"in e?dN(dI(eo),e.ADD_URI_SAFE_ATTR):eo,ei="ADD_DATA_URI_TAGS"in e?dN(dI(en),e.ADD_DATA_URI_TAGS):en,ee="FORBID_CONTENTS"in e?dN({},e.FORBID_CONTENTS):et,F="FORBID_TAGS"in e?dN({},e.FORBID_TAGS):{},B="FORBID_ATTR"in e?dN({},e.FORBID_ATTR):{},Q="USE_PROFILES"in e&&e.USE_PROFILES,U=!1!==e.ALLOW_ARIA_ATTR,H=!1!==e.ALLOW_DATA_ATTR,V=e.ALLOW_UNKNOWN_PROTOCOLS||!1,W=e.SAFE_FOR_TEMPLATES||!1,G=e.WHOLE_DOCUMENT||!1,K=e.RETURN_DOM||!1,$=e.RETURN_DOM_FRAGMENT||!1,X=!1!==e.RETURN_DOM_IMPORT,j=e.RETURN_TRUSTED_TYPE||!1,Y=e.FORCE_BODY||!1,q=!1!==e.SANITIZE_DOM,Z=!1!==e.KEEP_CONTENT,J=e.IN_PLACE||!1,x=e.ALLOWED_URI_REGEXP||x,eh=e.NAMESPACE||el,W&&(H=!1),$&&(K=!0),Q&&(D=dN({},[].concat(dq(dF))),k=[],!0===Q.html&&(dN(D,dO),dN(k,dB)),!0===Q.svg&&(dN(D,dx),dN(k,dU),dN(k,dV)),!0===Q.svgFilters&&(dN(D,dD),dN(k,dU),dN(k,dV)),!0===Q.mathMl&&(dN(D,dk),dN(k,dH),dN(k,dV))),e.ADD_TAGS&&(D===M&&(D=dI(D)),dN(D,e.ADD_TAGS)),e.ADD_ATTR&&(k===P&&(k=dI(k)),dN(k,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&dN(er,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(ee===et&&(ee=dI(ee)),dN(ee,e.FORBID_CONTENTS)),Z&&(D["#text"]=!0),G&&dN(D,["html","head","body"]),D.table&&(dN(D,["tbody"]),delete F.tbody),dd&&dd(e),ed=e)},ep=dN({},["mi","mo","mn","ms","mtext"]),ef=dN({},["foreignobject","desc","title","annotation-xml"]),em=dN({},dx);dN(em,dD),dN(em,dM);var ev=dN({},dk);dN(ev,dP);var eE=function(e){var t=C(e);t&&t.tagName||(t={namespaceURI:el,tagName:"template"});var i=dC(e.tagName),n=dC(t.tagName);if(e.namespaceURI===ea)return t.namespaceURI===el?"svg"===i:t.namespaceURI===es?"svg"===i&&("annotation-xml"===n||ep[n]):!!em[i];if(e.namespaceURI===es)return t.namespaceURI===el?"math"===i:t.namespaceURI===ea?"math"===i&&ef[n]:!!ev[i];if(e.namespaceURI===el){if(t.namespaceURI===ea&&!ef[n]||t.namespaceURI===es&&!ep[n])return!1;var r=dN({},["title","style","font","a","script"]);return!ev[i]&&(r[i]||!em[i])}return!1},e_=function(e){d_(i.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=T}catch(t){e.remove()}}},eC=function(e,t){try{d_(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){d_(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!k[e]){if(K||$)try{e_(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}}},eS=function(e){var t=void 0,i=void 0;if(Y)e=""+e;else{var n=dS(e,/^[\r\n\t ]+/);i=n&&n[0]}var o=y?y.createHTML(e):e;if(eh===el)try{t=new p().parseFromString(o,"text/html")}catch(e){}if(!t||!t.documentElement){t=A.createDocument(eh,"template",null);try{t.documentElement.innerHTML=eu?"":o}catch(e){}}var s=t.body||t.documentElement;return(e&&i&&s.insertBefore(r.createTextNode(i),s.childNodes[0]||null),eh===el)?N.call(t,G?"html":"body")[0]:G?t.documentElement:s},ey=function(e){return R.call(e.ownerDocument||e,e,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null,!1)},eT=function(e){return(void 0===a?"undefined":dj(a))==="object"?e instanceof a:e&&(void 0===e?"undefined":dj(e))==="object"&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},eb=function(e,t,n){O[e]&&dv(O[e],function(e){e.call(i,t,n,ed)})},eA=function(e){var t=void 0;if(eb("beforeSanitizeElements",e,null),!(e instanceof c)&&!(e instanceof g)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)||dS(e.nodeName,/[\u0080-\uFFFF]/))return e_(e),!0;var n=dC(e.nodeName);if(eb("uponSanitizeElement",e,{tagName:n,allowedTags:D}),!eT(e.firstElementChild)&&(!eT(e.content)||!eT(e.content.firstElementChild))&&dA(/<[/\w]/g,e.innerHTML)&&dA(/<[/\w]/g,e.textContent)||"select"===n&&dA(/