diff --git a/dbgpt/app/openapi/api_v1/api_v1.py b/dbgpt/app/openapi/api_v1/api_v1.py index 30e4d8765..d0c03c3fe 100644 --- a/dbgpt/app/openapi/api_v1/api_v1.py +++ b/dbgpt/app/openapi/api_v1/api_v1.py @@ -436,6 +436,7 @@ async def get_chat_instance(dialogue: ConversationVo = Body()) -> BaseChat: "app_code": dialogue.app_code, "ext_info": dialogue.ext_info, "temperature": dialogue.temperature, + "max_new_tokens": dialogue.max_new_tokens, } chat: BaseChat = await blocking_func_to_async( get_executor(), diff --git a/dbgpt/app/openapi/api_v2.py b/dbgpt/app/openapi/api_v2.py index 684d8c5c1..fa3956da2 100644 --- a/dbgpt/app/openapi/api_v2.py +++ b/dbgpt/app/openapi/api_v2.py @@ -185,6 +185,8 @@ async def get_chat_instance(dialogue: ChatCompletionRequestBody = Body()) -> Bas "current_user_input": dialogue.messages, "select_param": dialogue.chat_param, "model_name": dialogue.model, + "temperature": dialogue.temperature, + "max_new_tokens": dialogue.max_new_tokens, } chat: BaseChat = await blocking_func_to_async( get_executor(), diff --git a/dbgpt/app/openapi/api_view_model.py b/dbgpt/app/openapi/api_view_model.py index 616f268ef..341b94b2d 100644 --- a/dbgpt/app/openapi/api_view_model.py +++ b/dbgpt/app/openapi/api_view_model.py @@ -65,6 +65,7 @@ class ConversationVo(BaseModel): app_code: Optional[str] = "" temperature: Optional[float] = 0.5 + max_new_tokens: Optional[int] = 2048 """ chat scene select param """ diff --git a/dbgpt/app/operators/rag.py b/dbgpt/app/operators/rag.py index abf10736e..37c42528b 100644 --- a/dbgpt/app/operators/rag.py +++ b/dbgpt/app/operators/rag.py @@ -108,9 +108,7 @@ class HOKnowledgeOperator(MapOperator[str, HOContextBody]): name="higher_order_knowledge_operator", category=OperatorCategory.RAG, description=_( - _( - "Knowledge Space Operator, retrieve your knowledge from knowledge space" - ) + _("Knowledge Space Operator, retrieve your knowledge from knowledge space") ), parameters=[ Parameter.build_from( diff --git a/dbgpt/app/scene/base_chat.py b/dbgpt/app/scene/base_chat.py index 774e915d4..50602c06b 100644 --- a/dbgpt/app/scene/base_chat.py +++ b/dbgpt/app/scene/base_chat.py @@ -230,11 +230,16 @@ class BaseChat(ABC): chat_mode=self.chat_mode.value(), span_id=root_tracer.get_current_span_id(), ) + temperature = float( + self._chat_param.get("temperature", self.prompt_template.temperature) + ) + max_new_tokens = int( + self._chat_param.get("max_new_tokens", self.prompt_template.max_new_tokens) + ) node = AppChatComposerOperator( model=self.llm_model, - temperature=self._chat_param.get("temperature") - or float(self.prompt_template.temperature), - max_new_tokens=int(self.prompt_template.max_new_tokens), + temperature=temperature, + max_new_tokens=max_new_tokens, prompt=self.prompt_template.prompt, message_version=self._message_version, echo=self.llm_echo, diff --git a/dbgpt/app/static/web/404.html b/dbgpt/app/static/web/404.html index 8077690d4..82f922c4a 100644 --- a/dbgpt/app/static/web/404.html +++ b/dbgpt/app/static/web/404.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dbgpt/app/static/web/404/index.html b/dbgpt/app/static/web/404/index.html index 8077690d4..82f922c4a 100644 --- a/dbgpt/app/static/web/404/index.html +++ b/dbgpt/app/static/web/404/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dbgpt/app/static/web/_next/data/uxzFDWvtDY7kRGsQkNbam/construct/prompt/add.json b/dbgpt/app/static/web/_next/data/dw2LVfeIFz9EZTHA03IHs/construct/prompt/add.json similarity index 100% rename from dbgpt/app/static/web/_next/data/uxzFDWvtDY7kRGsQkNbam/construct/prompt/add.json rename to dbgpt/app/static/web/_next/data/dw2LVfeIFz9EZTHA03IHs/construct/prompt/add.json diff --git a/dbgpt/app/static/web/_next/data/uxzFDWvtDY7kRGsQkNbam/construct/prompt/edit.json b/dbgpt/app/static/web/_next/data/dw2LVfeIFz9EZTHA03IHs/construct/prompt/edit.json similarity index 100% rename from dbgpt/app/static/web/_next/data/uxzFDWvtDY7kRGsQkNbam/construct/prompt/edit.json rename to dbgpt/app/static/web/_next/data/dw2LVfeIFz9EZTHA03IHs/construct/prompt/edit.json diff --git a/dbgpt/app/static/web/_next/static/chunks/008713dc-eeceae92b15b9b6f.js b/dbgpt/app/static/web/_next/static/chunks/008713dc-dc1f72d2eff49743.js similarity index 100% rename from dbgpt/app/static/web/_next/static/chunks/008713dc-eeceae92b15b9b6f.js rename to dbgpt/app/static/web/_next/static/chunks/008713dc-dc1f72d2eff49743.js diff --git a/dbgpt/app/static/web/_next/static/chunks/152-56fad3e011927332.js b/dbgpt/app/static/web/_next/static/chunks/152-56fad3e011927332.js new file mode 100644 index 000000000..58a474088 --- /dev/null +++ b/dbgpt/app/static/web/_next/static/chunks/152-56fad3e011927332.js @@ -0,0 +1,73 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[152],{29158:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var r=n(87462),i=n(67294),a={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"},o=n(13401),l=i.forwardRef(function(t,e){return i.createElement(o.Z,(0,r.Z)({},t,{ref:e,icon:a}))})},64352:function(t,e,n){"use strict";n.d(e,{w:function(){return ev}});var r=n(97582),i={line_chart:{id:"line_chart",name:"Line Chart",alias:["Lines"],family:["LineCharts"],def:"A line chart uses lines with segments to show changes in data in a ordinal dimension.",purpose:["Comparison","Trend","Anomaly"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position","Direction"],recRate:"Recommended"},step_line_chart:{id:"step_line_chart",name:"Step Line Chart",alias:["Step Lines"],family:["LineCharts"],def:"A step line chart is a line chart in which points of each line are connected by horizontal and vertical line segments, looking like steps of a staircase.",purpose:["Comparison","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position","Direction"],recRate:"Recommended"},area_chart:{id:"area_chart",name:"Area Chart",alias:[],family:["AreaCharts"],def:"An area chart uses series of line segments with overlapped areas to show the change in data in a ordinal dimension.",purpose:["Comparison","Trend","Anomaly"],coord:["Cartesian2D"],category:["Statistic"],shape:["Area"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Position"],recRate:"Recommended"},stacked_area_chart:{id:"stacked_area_chart",name:"Stacked Area Chart",alias:[],family:["AreaCharts"],def:"A stacked area chart uses layered line segments with different styles of padding regions to display how multiple sets of data change in the same ordinal dimension, and the endpoint heights of the segments on the same dimension tick are accumulated by value.",purpose:["Composition","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Area"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Length"],recRate:"Recommended"},percent_stacked_area_chart:{id:"percent_stacked_area_chart",name:"Percent Stacked Area Chart",alias:["Percent Stacked Area","% Stacked Area","100% Stacked Area"],family:["AreaCharts"],def:"A percent stacked area chart is an extented stacked area chart in which the height of the endpoints of the line segment on the same dimension tick is the accumulated proportion of the ratio, which is 100% of the total.",purpose:["Comparison","Composition","Proportion","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Area"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Length"],recRate:"Recommended"},column_chart:{id:"column_chart",name:"Column Chart",alias:["Columns"],family:["ColumnCharts"],def:"A column chart uses series of columns to display the value of the dimension. The horizontal axis shows the classification dimension and the vertical axis shows the corresponding value.",purpose:["Comparison","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position","Color"],recRate:"Recommended"},grouped_column_chart:{id:"grouped_column_chart",name:"Grouped Column Chart",alias:["Grouped Column"],family:["ColumnCharts"],def:"A grouped column chart uses columns of different colors to form a group to display the values of dimensions. The horizontal axis indicates the grouping of categories, the color indicates the categories, and the vertical axis shows the corresponding value.",purpose:["Comparison","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Position"],recRate:"Recommended"},stacked_column_chart:{id:"stacked_column_chart",name:"Stacked Column Chart",alias:["Stacked Column"],family:["ColumnCharts"],def:"A stacked column chart uses stacked bars of different colors to display the values for each dimension. The horizontal axis indicates the first classification dimension, the color indicates the second classification dimension, and the vertical axis shows the corresponding value.",purpose:["Comparison","Composition","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length","Position"],recRate:"Recommended"},percent_stacked_column_chart:{id:"percent_stacked_column_chart",name:"Percent Stacked Column Chart",alias:["Percent Stacked Column","% Stacked Column","100% Stacked Column"],family:["ColumnCharts"],def:"A percent stacked column chart uses stacked bars of different colors to display the values for each dimension. The horizontal axis indicates the first classification dimension, the color indicates the second classification dimension, and the vertical axis shows the percentage of the corresponding classification.",purpose:["Comparison","Composition","Distribution","Proportion"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length"],recRate:"Recommended"},range_column_chart:{id:"range_column_chart",name:"Range Column Chart",alias:[],family:["ColumnCharts"],def:"A column chart that does not have to start from zero axis.",purpose:["Comparison"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Interval","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Length"],recRate:"Recommended"},waterfall_chart:{id:"waterfall_chart",name:"Waterfall Chart",alias:["Flying Bricks Chart","Mario Chart","Bridge Chart","Cascade Chart"],family:["ColumnCharts"],def:"A waterfall chart is used to portray how an initial value is affected by a series of intermediate positive or negative values",purpose:["Comparison","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Ordinal","Time","Nominal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length","Position"],recRate:"Recommended"},histogram:{id:"histogram",name:"Histogram",alias:[],family:["ColumnCharts"],def:"A histogram is an accurate representation of the distribution of numerical data.",purpose:["Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position"],recRate:"Recommended"},bar_chart:{id:"bar_chart",name:"Bar Chart",alias:["Bars"],family:["BarCharts"],def:"A bar chart uses series of bars to display the value of the dimension. The vertical axis shows the classification dimension and the horizontal axis shows the corresponding value.",purpose:["Comparison","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position","Color"],recRate:"Recommended"},stacked_bar_chart:{id:"stacked_bar_chart",name:"Stacked Bar Chart",alias:["Stacked Bar"],family:["BarCharts"],def:"A stacked bar chart uses stacked bars of different colors to display the values for each dimension. The vertical axis indicates the first classification dimension, the color indicates the second classification dimension, and the horizontal axis shows the corresponding value.",purpose:["Comparison","Composition","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length","Position"],recRate:"Recommended"},percent_stacked_bar_chart:{id:"percent_stacked_bar_chart",name:"Percent Stacked Bar Chart",alias:["Percent Stacked Bar","% Stacked Bar","100% Stacked Bar"],family:["BarCharts"],def:"A percent stacked column chart uses stacked bars of different colors to display the values for each dimension. The vertical axis indicates the first classification dimension, the color indicates the second classification dimension, and the horizontal axis shows the percentage of the corresponding classification.",purpose:["Comparison","Composition","Distribution","Proportion"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length"],recRate:"Recommended"},grouped_bar_chart:{id:"grouped_bar_chart",name:"Grouped Bar Chart",alias:["Grouped Bar"],family:["BarCharts"],def:"A grouped bar chart uses bars of different colors to form a group to display the values of the dimensions. The vertical axis indicates the grouping of categories, the color indicates the categories, and the horizontal axis shows the corresponding value.",purpose:["Comparison","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Position"],recRate:"Recommended"},range_bar_chart:{id:"range_bar_chart",name:"Range Bar Chart",alias:[],family:["BarCharts"],def:"A bar chart that does not have to start from zero axis.",purpose:["Comparison"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]}],channel:["Length"],recRate:"Recommended"},radial_bar_chart:{id:"radial_bar_chart",name:"Radial Bar Chart",alias:["Radial Column Chart"],family:["BarCharts"],def:"A bar chart that is plotted in the polar coordinate system. The axis along radius shows the classification dimension and the angle shows the corresponding value.",purpose:["Comparison","Distribution","Rank"],coord:["Polar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Angle","Color"],recRate:"Recommended"},bullet_chart:{id:"bullet_chart",name:"Bullet Chart",alias:[],family:["BarCharts"],def:"A bullet graph is a variation of a bar graph developed by Stephen Few. Seemingly inspired by the traditional thermometer charts and progress bars found in many dashboards, the bullet graph serves as a replacement for dashboard gauges and meters.",purpose:["Proportion"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:3,maxQty:3,fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]}],channel:["Position","Color"],recRate:"Recommended"},pie_chart:{id:"pie_chart",name:"Pie Chart",alias:["Circle Chart","Pie"],family:["PieCharts"],def:"A pie chart is a chart that the classification and proportion of data are represented by the color and arc length (angle, area) of the sector.",purpose:["Comparison","Composition","Proportion"],coord:["Polar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Angle","Area","Color"],recRate:"Use with Caution"},donut_chart:{id:"donut_chart",name:"Donut Chart",alias:["Donut","Doughnut","Doughnut Chart","Ring Chart"],family:["PieCharts"],def:"A donut chart is a variation on a Pie chart except it has a round hole in the center which makes it look like a donut.",purpose:["Comparison","Composition","Proportion"],coord:["Polar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["ArcLength"],recRate:"Recommended"},nested_pie_chart:{id:"nested_pie_chart",name:"Nested Pie Chart",alias:["Nested Circle Chart","Nested Pie","Nested Donut Chart"],family:["PieCharts"],def:"A nested pie chart is a chart that contains several donut charts, where all the donut charts share the same center in position.",purpose:["Comparison","Composition","Proportion"],coord:["Polar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:"*",fieldConditions:["Interval"]}],channel:["Angle","Area","Color","Position"],recRate:"Use with Caution"},rose_chart:{id:"rose_chart",name:"Rose Chart",alias:["Nightingale Chart","Polar Area Chart","Coxcomb Chart"],family:["PieCharts"],def:"Nightingale Rose Chart is a peculiar combination of the Radar Chart and Stacked Column Chart types of data visualization.",purpose:["Comparison","Composition","Proportion"],coord:["Polar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Angle","Color","Length"],recRate:"Use with Caution"},scatter_plot:{id:"scatter_plot",name:"Scatter Plot",alias:["Scatter Chart","Scatterplot"],family:["ScatterCharts"],def:"A scatter plot is a type of plot or mathematical diagram using Cartesian coordinates to display values for typically two variables for series of data.",purpose:["Comparison","Distribution","Anomaly"],coord:["Cartesian2D"],category:["Statistic"],shape:["Scatter"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Interval"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Position"],recRate:"Recommended"},bubble_chart:{id:"bubble_chart",name:"Bubble Chart",alias:["Bubble Chart"],family:["ScatterCharts"],def:"A bubble chart is a type of chart that displays four dimensions of data with x, y positions, circle size and circle color.",purpose:["Comparison","Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Scatter"],dataPres:[{minQty:3,maxQty:3,fieldConditions:["Interval"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Position","Size"],recRate:"Recommended"},non_ribbon_chord_diagram:{id:"non_ribbon_chord_diagram",name:"Non-Ribbon Chord Diagram",alias:[],family:["GeneralGraph"],def:"A stripped-down version of a Chord Diagram, with only the connection lines showing. This provides more emphasis on the connections within the data.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},arc_diagram:{id:"arc_diagram",name:"Arc Diagram",alias:[],family:["GeneralGraph"],def:"A graph where the edges are represented as arcs.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},chord_diagram:{id:"chord_diagram",name:"Chord Diagram",alias:[],family:["GeneralGraph"],def:"A graphical method of displaying the inter-relationships between data in a matrix. The data are arranged radially around a circle with the relationships between the data points typically drawn as arcs connecting the data.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},treemap:{id:"treemap",name:"Treemap",alias:[],family:["TreeGraph"],def:"A visual representation of a data tree with nodes. Each node is displayed as a rectangle, sized and colored according to values that you assign.",purpose:["Composition","Comparison","Hierarchy"],coord:["Cartesian2D"],category:["Statistic"],shape:["Square"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Area"],recRate:"Recommended"},sankey_diagram:{id:"sankey_diagram",name:"Sankey Diagram",alias:[],family:["GeneralGraph"],def:"A graph shows the flows with weights between objects.",purpose:["Flow","Trend","Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},funnel_chart:{id:"funnel_chart",name:"Funnel Chart",alias:[],family:["FunnelCharts"],def:"A funnel chart is often used to represent stages in a sales process and show the amount of potential revenue for each stage.",purpose:["Trend"],coord:["SymmetricCartesian"],category:["Statistic"],shape:["Symmetric"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length"],recRate:"Recommended"},mirror_funnel_chart:{id:"mirror_funnel_chart",name:"Mirror Funnel Chart",alias:["Contrast Funnel Chart"],family:["FunnelCharts"],def:"A mirror funnel chart is a funnel chart divided into two series by a central axis.",purpose:["Comparison","Trend"],coord:["SymmetricCartesian"],category:["Statistic"],shape:["Symmetric"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Length","Direction"],recRate:"Recommended"},box_plot:{id:"box_plot",name:"Box Plot",alias:["Box and Whisker Plot","boxplot"],family:["BarCharts"],def:"A box plot is often used to graphically depict groups of numerical data through their quartiles. Box plots may also have lines extending from the boxes indicating variability outside the upper and lower quartiles. Outliers may be plotted as individual points.",purpose:["Distribution","Anomaly"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position"],recRate:"Recommended"},heatmap:{id:"heatmap",name:"Heatmap",alias:[],family:["HeatmapCharts"],def:"A heatmap is a graphical representation of data where the individual values contained in a matrix are represented as colors.",purpose:["Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Square"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Position"],recRate:"Recommended"},density_heatmap:{id:"density_heatmap",name:"Density Heatmap",alias:["Heatmap"],family:["HeatmapCharts"],def:"A density heatmap is a heatmap for representing the density of dots.",purpose:["Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Area"],dataPres:[{minQty:3,maxQty:3,fieldConditions:["Interval"]}],channel:["Color","Position","Area"],recRate:"Recommended"},radar_chart:{id:"radar_chart",name:"Radar Chart",alias:["Web Chart","Spider Chart","Star Chart","Cobweb Chart","Irregular Polygon","Kiviat diagram"],family:["RadarCharts"],def:"A radar chart maps series of data volume of multiple dimensions onto the axes. Starting at the same center point, usually ending at the edge of the circle, connecting the same set of points using lines.",purpose:["Comparison"],coord:["Radar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:2,fieldConditions:["Nominal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Position"],recRate:"Recommended"},wordcloud:{id:"wordcloud",name:"Word Cloud",alias:["Wordle","Tag Cloud","Text Cloud"],family:["Others"],def:"A word cloud is a collection, or cluster, of words depicted in different sizes, colors, and shapes, which takes a piece of text as input. Typically, the font size in the word cloud is encoded as the word frequency in the input text.",purpose:["Proportion"],coord:["Cartesian2D"],category:["Diagram"],shape:["Scatter"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal"]},{minQty:0,maxQty:1,fieldConditions:["Interval"]}],channel:["Size","Position","Color"],recRate:"Recommended"},candlestick_chart:{id:"candlestick_chart",name:"Candlestick Chart",alias:["Japanese Candlestick Chart)"],family:["BarCharts"],def:"A candlestick chart is a specific version of box plot, which is a style of financial chart used to describe price movements of a security, derivative, or currency.",purpose:["Trend","Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position"],recRate:"Recommended"},compact_box_tree:{id:"compact_box_tree",name:"CompactBox Tree",alias:[],family:["TreeGraph"],def:"A type of tree graph layout which arranges the nodes with same depth on the same level.",purpose:["Relation","Hierarchy"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},dendrogram:{id:"dendrogram",name:"Dendrogram",alias:[],family:["TreeGraph"],def:"A type of tree graph layout which arranges the leaves on the same level.",purpose:["Relation","Hierarchy"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},indented_tree:{id:"indented_tree",name:"Indented Tree Layout",alias:[],family:["TreeGraph"],def:"A type of tree graph layout where the hierarchy of tree is represented by the horizontal indentation, and each element will occupy one row/column. It is commonly used to represent the file directory structure.",purpose:["Relation","Hierarchy"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},radial_tree:{id:"radial_tree",name:"Radial Tree Layout",alias:[],family:["TreeGraph"],def:"A type of tree graph layout which places the root at the center, and the branches around the root radially.",purpose:["Relation","Hierarchy"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},flow_diagram:{id:"flow_diagram",name:"Flow Diagram",alias:["Dagre Graph Layout","Dagre","Flow Chart"],family:["GeneralGraph"],def:"Directed flow graph.",purpose:["Relation","Flow"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},fruchterman_layout_graph:{id:"fruchterman_layout_graph",name:"Fruchterman Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of force directed graph layout.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},force_directed_layout_graph:{id:"force_directed_layout_graph",name:"Force Directed Graph Layout",alias:[],family:["GeneralGraph"],def:"The classical force directed graph layout.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},fa2_layout_graph:{id:"fa2_layout_graph",name:"Force Atlas 2 Graph Layout",alias:["FA2 Layout"],family:["GeneralGraph"],def:"A type of force directed graph layout algorithm. It focuses more on the degree of the node when calculating the force than the classical force-directed algorithm .",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},mds_layout_graph:{id:"mds_layout_graph",name:"Multi-Dimensional Scaling Layout",alias:["MDS Layout"],family:["GeneralGraph"],def:"A type of dimension reduction algorithm that could be used for calculating graph layout. MDS (Multidimensional scaling) is used for project high dimensional data onto low dimensional space.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},circular_layout_graph:{id:"circular_layout_graph",name:"Circular Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of graph layout which arranges all the nodes on a circle.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},spiral_layout_graph:{id:"spiral_layout_graph",name:"Spiral Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of graph layout which arranges all the nodes along a spiral line.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},radial_layout_graph:{id:"radial_layout_graph",name:"Radial Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of graph layout which places a focus node on the center and the others on the concentrics centered at the focus node according to the shortest path length to the it.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},concentric_layout_graph:{id:"concentric_layout_graph",name:"Concentric Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of graph layout which arranges the nodes on concentrics.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},grid_layout_graph:{id:"grid_layout_graph",name:"Grid Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of graph layout arranges the nodes on grids.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"}};function a(t,e){return e.every(function(e){return t.includes(e)})}var o=["bar_chart","grouped_bar_chart","stacked_bar_chart","percent_stacked_bar_chart","column_chart","grouped_column_chart","stacked_column_chart","percent_stacked_column_chart"],l=["bar_chart","grouped_bar_chart","stacked_bar_chart","percent_stacked_bar_chart","column_chart","grouped_column_chart","stacked_column_chart","percent_stacked_column_chart"];function s(t,e){return e.some(function(e){return t.includes(e)})}function c(t,e){return t.distincte.distinct?-1:0}var u=["pie_chart","donut_chart"],f=["bar_chart","grouped_bar_chart","stacked_bar_chart","percent_stacked_bar_chart","column_chart","grouped_column_chart","stacked_column_chart","percent_stacked_column_chart"];function d(t){var e=t.chartType,n=t.dataProps,r=t.preferences;return!!(n&&e&&r&&r.canvasLayout)}var h=["line_chart","area_chart","stacked_area_chart","percent_stacked_area_chart"],p=["bar_chart","column_chart","grouped_bar_chart","grouped_column_chart","stacked_bar_chart","stacked_column_chart"];function g(t){return t.filter(function(t){return a(t.levelOfMeasurements,["Nominal"])})}var m=["pie_chart","donut_chart","radar_chart","rose_chart"],y=n(96486);function v(t){return"number"==typeof t}function b(t){return"string"==typeof t||"boolean"==typeof t}function x(t){return t instanceof Date}function O(t){var e=t.encode,n=t.data,i=t.scale,a=(0,y.mapValues)(e,function(t,e){var r,a,o;return{field:t,type:void 0!==(r=null==i?void 0:i[e].type)?function(t){switch(t){case"linear":case"log":case"pow":case"sqrt":case"quantile":case"threshold":case"quantize":case"sequential":return"quantitative";case"time":return"temporal";case"ordinal":case"point":case"band":return"categorical";default:throw Error("Unkonwn scale type: ".concat(t,"."))}}(r):function(t){if(t.some(v))return"quantitative";if(t.some(b))return"categorical";if(t.some(x))return"temporal";throw Error("Unknown type: ".concat(typeof t[0]))}((a=n,"function"==typeof(o=t)?a.map(o):"string"==typeof o&&a.some(function(t){return void 0!==t[o]})?a.map(function(t){return t[o]}):a.map(function(){return o})))}});return(0,r.pi)((0,r.pi)({},t),{encode:a})}var w=["line_chart"];(0,r.ev)((0,r.ev)([],(0,r.CR)(["data-check","data-field-qty","no-redundant-field","purpose-check"]),!1),(0,r.CR)(["series-qty-limit","bar-series-qty","line-field-time-ordinal","landscape-or-portrait","diff-pie-sector","nominal-enum-combinatorial","limit-series"]),!1);var _={"data-check":{id:"data-check",type:"HARD",docs:{lintText:"Data must satisfy the data prerequisites."},trigger:function(){return!0},validator:function(t){var e=0,n=t.dataProps,r=t.chartType,i=t.chartWIKI;if(n&&r&&i[r]){e=1;var a=i[r].dataPres||[];a.forEach(function(t){!function(t,e){var n=e.map(function(t){return t.levelOfMeasurements});if(n){var r=0;if(n.forEach(function(e){e&&s(e,t.fieldConditions)&&(r+=1)}),r>=t.minQty&&("*"===t.maxQty||r<=t.maxQty))return!0}return!1}(t,n)&&(e=0)}),n.map(function(t){return t.levelOfMeasurements}).forEach(function(t){var n=!1;a.forEach(function(e){t&&s(t,e.fieldConditions)&&(n=!0)}),n||(e=0)})}return e}},"data-field-qty":{id:"data-field-qty",type:"HARD",docs:{lintText:"Data must have at least the min qty of the prerequisite."},trigger:function(){return!0},validator:function(t){var e=0,n=t.dataProps,r=t.chartType,i=t.chartWIKI;if(n&&r&&i[r]){e=1;var a=(i[r].dataPres||[]).map(function(t){return t.minQty}).reduce(function(t,e){return t+e});n.length&&n.length>=a&&(e=1)}return e}},"no-redundant-field":{id:"no-redundant-field",type:"HARD",docs:{lintText:"No redundant field."},trigger:function(){return!0},validator:function(t){var e=0,n=t.dataProps,r=t.chartType,i=t.chartWIKI;if(n&&r&&i[r]){var a=(i[r].dataPres||[]).map(function(t){return"*"===t.maxQty?99:t.maxQty}).reduce(function(t,e){return t+e});n.length&&n.length<=a&&(e=1)}return e}},"purpose-check":{id:"purpose-check",type:"HARD",docs:{lintText:"Choose chart types that satisfy the purpose, if purpose is defined."},trigger:function(){return!0},validator:function(t){var e=0,n=t.chartType,r=t.purpose,i=t.chartWIKI;return r?(n&&i[n]&&r&&(i[n].purpose||"").includes(r)&&(e=1),e):e=1}},"bar-series-qty":{id:"bar-series-qty",type:"SOFT",docs:{lintText:"Bar chart should has proper number of bars or bar groups."},trigger:function(t){var e=t.chartType;return o.includes(e)},validator:function(t){var e=1,n=t.dataProps,r=t.chartType;if(n&&r){var i=n.find(function(t){return a(t.levelOfMeasurements,["Nominal"])}),o=i&&i.count?i.count:0;o>20&&(e=20/o)}return e<.1?.1:e}},"diff-pie-sector":{id:"diff-pie-sector",type:"SOFT",docs:{lintText:"The difference between sectors of a pie chart should be large enough."},trigger:function(t){var e=t.chartType;return u.includes(e)},validator:function(t){var e=1,n=t.dataProps;if(n){var r=n.find(function(t){return a(t.levelOfMeasurements,["Interval"])});if(r&&r.sum&&r.rawData){var i=1/r.sum,o=r.rawData.map(function(t){return t*i}).reduce(function(t,e){return t*e}),l=r.rawData.length,s=Math.pow(1/l,l);e=2*(Math.abs(s-Math.abs(o))/s)}}return e<.1?.1:e}},"landscape-or-portrait":{id:"landscape-or-portrait",type:"SOFT",docs:{lintText:"Recommend column charts for landscape layout and bar charts for portrait layout."},trigger:function(t){return f.includes(t.chartType)&&d(t)},validator:function(t){var e=1,n=t.chartType,r=t.preferences;return d(t)&&("portrait"===r.canvasLayout&&["bar_chart","grouped_bar_chart","stacked_bar_chart","percent_stacked_bar_chart"].includes(n)?e=5:"landscape"===r.canvasLayout&&["column_chart","grouped_column_chart","stacked_column_chart","percent_stacked_column_chart"].includes(n)&&(e=5)),e}},"limit-series":{id:"limit-series",type:"SOFT",docs:{lintText:"Avoid too many values in one series."},trigger:function(t){return t.dataProps.filter(function(t){return s(t.levelOfMeasurements,["Nominal","Ordinal"])}).length>=2},validator:function(t){var e=1,n=t.dataProps,r=t.chartType;if(n){var i=n.filter(function(t){return s(t.levelOfMeasurements,["Nominal","Ordinal"])});if(i.length>=2){var a=i.sort(c)[1];a.distinct&&(e=a.distinct>10?.1:1/a.distinct,a.distinct>6&&"heatmap"===r?e=5:"heatmap"===r&&(e=1))}}return e}},"line-field-time-ordinal":{id:"line-field-time-ordinal",type:"SOFT",docs:{lintText:"Data containing time or ordinal fields are suitable for line or area charts."},trigger:function(t){var e=t.chartType;return h.includes(e)},validator:function(t){var e=1,n=t.dataProps;return n&&n.find(function(t){return s(t.levelOfMeasurements,["Ordinal","Time"])})&&(e=5),e}},"nominal-enum-combinatorial":{id:"nominal-enum-combinatorial",type:"SOFT",docs:{lintText:"Single (Basic) and Multi (Stacked, Grouped,...) charts should be optimized recommended by nominal enums combinatorial numbers."},trigger:function(t){var e=t.chartType,n=t.dataProps;return p.includes(e)&&g(n).length>=2},validator:function(t){var e=1,n=t.dataProps,r=t.chartType;if(n){var i=g(n);if(i.length>=2){var a=i.sort(c),o=a[0],l=a[1];o.distinct===o.count&&["bar_chart","column_chart"].includes(r)&&(e=5),o.count&&o.distinct&&l.distinct&&o.count>o.distinct&&["grouped_bar_chart","grouped_column_chart","stacked_bar_chart","stacked_column_chart"].includes(r)&&(e=5)}}return e}},"series-qty-limit":{id:"series-qty-limit",type:"SOFT",docs:{lintText:"Some charts should has at most N values for the series."},trigger:function(t){var e=t.chartType;return m.includes(e)},validator:function(t){var e=1,n=t.dataProps,r=t.chartType,i=t.limit;if((!Number.isInteger(i)||i<=0)&&(i=6,("pie_chart"===r||"donut_chart"===r||"rose_chart"===r)&&(i=6),"radar_chart"===r&&(i=8)),n){var o=n.find(function(t){return a(t.levelOfMeasurements,["Nominal"])}),l=o&&o.count?o.count:0;l>=2&&l<=i&&(e=5+2/l)}return e}},"x-axis-line-fading":{id:"x-axis-line-fading",type:"DESIGN",docs:{lintText:"Adjust axis to make it prettier"},trigger:function(t){var e=t.chartType;return w.includes(e)},optimizer:function(t,e){var n,r=O(e).encode;if(r&&(null===(n=r.y)||void 0===n?void 0:n.type)==="quantitative"){var i=t.find(function(t){var e;return t.name===(null===(e=r.y)||void 0===e?void 0:e.field)});if(i){var a=i.maximum-i.minimum;if(i.minimum&&i.maximum&&a<2*i.maximum/3){var o=Math.floor(i.minimum-a/5);return{axis:{x:{tick:!1}},scale:{y:{domainMin:o>0?o:0}},clip:!0}}}}return{}}},"bar-without-axis-min":{id:"bar-without-axis-min",type:"DESIGN",docs:{lintText:"It is not recommended to set the minimum value of axis for the bar or column chart.",fixText:"Remove the minimum value config of axis."},trigger:function(t){var e=t.chartType;return l.includes(e)},optimizer:function(t,e){var n,r,i=e.scale;if(!i)return{};var a=null===(n=i.x)||void 0===n?void 0:n.domainMin,o=null===(r=i.y)||void 0===r?void 0:r.domainMin;if(a||o){var l=JSON.parse(JSON.stringify(i));return a&&(l.x.domainMin=0),o&&(l.y.domainMin=0),{scale:l}}return{}}}},k=Object.keys(_),C=function(t){var e={};return t.forEach(function(t){Object.keys(_).includes(t)&&(e[t]=_[t])}),e},j=function(t){if(!t)return C(k);var e=C(k);if(t.exclude&&t.exclude.forEach(function(t){Object.keys(e).includes(t)&&delete e[t]}),t.include){var n=t.include;Object.keys(e).forEach(function(t){n.includes(t)||delete e[t]})}var i=(0,r.pi)((0,r.pi)({},e),t.custom),a=t.options;return a&&Object.keys(a).forEach(function(t){if(Object.keys(i).includes(t)){var e=a[t];i[t]=(0,r.pi)((0,r.pi)({},i[t]),{option:e})}}),i},M=function(t){if("object"!=typeof t||null===t)return t;if(Array.isArray(t)){e=[];for(var e,n=0,r=t.length;ne.distinct)return -1}return 0};function Z(t){var e,n,r,i=null!==(n=null!==(e=t.find(function(t){return s(t.levelOfMeasurements,["Nominal"])}))&&void 0!==e?e:t.find(function(t){return s(t.levelOfMeasurements,["Time","Ordinal"])}))&&void 0!==n?n:t.find(function(t){return s(t.levelOfMeasurements,["Interval"])}),a=null!==(r=t.filter(function(t){return t!==i}).find(function(t){return s(t.levelOfMeasurements,["Interval"])}))&&void 0!==r?r:t.filter(function(t){return t!==i}).find(function(t){return s(t.levelOfMeasurements,["Nominal","Time","Ordinal"])});return[i,a]}function I(t){var e,n=null!==(e=t.find(function(t){return s(t.levelOfMeasurements,["Time","Ordinal","Nominal"])}))&&void 0!==e?e:t.find(function(t){return a(t.levelOfMeasurements,["Interval"])}),r=t.filter(function(t){return t!==n}).find(function(t){return a(t.levelOfMeasurements,["Interval"])}),i=t.filter(function(t){return t!==n&&t!==r}).find(function(t){return s(t.levelOfMeasurements,["Nominal","Ordinal","Time"])});return[n,r,i]}function N(t){var e=t.find(function(t){return s(t.levelOfMeasurements,["Time","Ordinal"])}),n=t.find(function(t){return a(t.levelOfMeasurements,["Nominal"])});return[e,t.find(function(t){return a(t.levelOfMeasurements,["Interval"])}),n]}function D(t){var e=t.filter(function(t){return a(t.levelOfMeasurements,["Nominal"])}).sort(B),n=e[0],r=e[1];return[t.find(function(t){return a(t.levelOfMeasurements,["Interval"])}),n,r]}function z(t){var e,n,i,o,l,s,c=t.filter(function(t){return a(t.levelOfMeasurements,["Nominal"])}).sort(B);return(0,T.Js)(null===(i=c[1])||void 0===i?void 0:i.rawData,null===(o=c[0])||void 0===o?void 0:o.rawData)?(s=(e=(0,r.CR)(c,2))[0],l=e[1]):(l=(n=(0,r.CR)(c,2))[0],s=n[1]),[l,t.find(function(t){return a(t.levelOfMeasurements,["Interval"])}),s]}var F=function(t){var e=t.data,n=t.xField;return(0,y.uniq)(e.map(function(t){return t[n]})).length<=1},$=function(t,e,n){var r=n.field4Split,i=n.field4X;if((null==r?void 0:r.name)&&(null==i?void 0:i.name)){var a=t[r.name];return F({data:e.filter(function(t){return r.name&&t[r.name]===a}),xField:i.name})?5:void 0}return(null==i?void 0:i.name)&&F({data:e,xField:i.name})?5:void 0},W=n(66465);function H(t){var e,n,i,o,l,c,u,f,d,h,p,g,m,y,v,b,x,O,w,_,k,C,j,M,S,A,E,P,T,L,F,H,G,q,Y,V,U,Q,K,X,J,tt,te,tn,tr,ti=t.chartType,ta=t.data,to=t.dataProps,tl=t.chartKnowledge;if(!R.includes(ti)&&tl)return tl.toSpec?tl.toSpec(ta,to):null;switch(ti){case"pie_chart":return n=(e=(0,r.CR)(Z(to),2))[0],(i=e[1])&&n?{type:"interval",data:ta,encode:{color:n.name,y:i.name},transform:[{type:"stackY"}],coordinate:{type:"theta"}}:null;case"donut_chart":return l=(o=(0,r.CR)(Z(to),2))[0],(c=o[1])&&l?{type:"interval",data:ta,encode:{color:l.name,y:c.name},transform:[{type:"stackY"}],coordinate:{type:"theta",innerRadius:.6}}:null;case"line_chart":return function(t,e){var n=(0,r.CR)(I(e),3),i=n[0],a=n[1],o=n[2];if(!i||!a)return null;var l={type:"line",data:t,encode:{x:i.name,y:a.name,size:function(e){return $(e,t,{field4X:i})}},legend:{size:!1}};return o&&(l.encode.color=o.name),l}(ta,to);case"step_line_chart":return function(t,e){var n=(0,r.CR)(I(e),3),i=n[0],a=n[1],o=n[2];if(!i||!a)return null;var l={type:"line",data:t,encode:{x:i.name,y:a.name,shape:"hvh",size:function(e){return $(e,t,{field4X:i})}},legend:{size:!1}};return o&&(l.encode.color=o.name),l}(ta,to);case"area_chart":return u=to.find(function(t){return s(t.levelOfMeasurements,["Time","Ordinal"])}),f=to.find(function(t){return a(t.levelOfMeasurements,["Interval"])}),u&&f?{type:"area",data:ta,encode:{x:u.name,y:f.name,size:function(t){return $(t,ta,{field4X:u})}},legend:{size:!1}}:null;case"stacked_area_chart":return h=(d=(0,r.CR)(N(to),3))[0],p=d[1],g=d[2],h&&p&&g?{type:"area",data:ta,encode:{x:h.name,y:p.name,color:g.name,size:function(t){return $(t,ta,{field4Split:g,field4X:h})}},legend:{size:!1},transform:[{type:"stackY"}]}:null;case"percent_stacked_area_chart":return y=(m=(0,r.CR)(N(to),3))[0],v=m[1],b=m[2],y&&v&&b?{type:"area",data:ta,encode:{x:y.name,y:v.name,color:b.name},transform:[{type:"stackY"},{type:"normalizeY"}]}:null;case"bar_chart":return function(t,e){var n=(0,r.CR)(D(e),3),i=n[0],a=n[1],o=n[2];if(!i||!a)return null;var l={type:"interval",data:t,encode:{x:a.name,y:i.name},coordinate:{transform:[{type:"transpose"}]}};return o&&(l.encode.color=o.name,l.transform=[{type:"stackY"}]),l}(ta,to);case"grouped_bar_chart":return O=(x=(0,r.CR)(D(to),3))[0],w=x[1],_=x[2],O&&w&&_?{type:"interval",data:ta,encode:{x:w.name,y:O.name,color:_.name},transform:[{type:"dodgeX"}],coordinate:{transform:[{type:"transpose"}]}}:null;case"stacked_bar_chart":return C=(k=(0,r.CR)(D(to),3))[0],j=k[1],M=k[2],C&&j&&M?{type:"interval",data:ta,encode:{x:j.name,y:C.name,color:M.name},transform:[{type:"stackY"}],coordinate:{transform:[{type:"transpose"}]}}:null;case"percent_stacked_bar_chart":return A=(S=(0,r.CR)(D(to),3))[0],E=S[1],P=S[2],A&&E&&P?{type:"interval",data:ta,encode:{x:E.name,y:A.name,color:P.name},transform:[{type:"stackY"},{type:"normalizeY"}],coordinate:{transform:[{type:"transpose"}]}}:null;case"column_chart":return function(t,e){var n=e.filter(function(t){return a(t.levelOfMeasurements,["Nominal"])}).sort(B),r=n[0],i=n[1],o=e.find(function(t){return a(t.levelOfMeasurements,["Interval"])});if(!r||!o)return null;var l={type:"interval",data:t,encode:{x:r.name,y:o.name}};return i&&(l.encode.color=i.name,l.transform=[{type:"stackY"}]),l}(ta,to);case"grouped_column_chart":return L=(T=(0,r.CR)(z(to),3))[0],F=T[1],H=T[2],L&&F&&H?{type:"interval",data:ta,encode:{x:L.name,y:F.name,color:H.name},transform:[{type:"dodgeX"}]}:null;case"stacked_column_chart":return q=(G=(0,r.CR)(z(to),3))[0],Y=G[1],V=G[2],q&&Y&&V?{type:"interval",data:ta,encode:{x:q.name,y:Y.name,color:V.name},transform:[{type:"stackY"}]}:null;case"percent_stacked_column_chart":return Q=(U=(0,r.CR)(z(to),3))[0],K=U[1],X=U[2],Q&&K&&X?{type:"interval",data:ta,encode:{x:Q.name,y:K.name,color:X.name},transform:[{type:"stackY"},{type:"normalizeY"}]}:null;case"scatter_plot":return function(t,e){var n=e.filter(function(t){return a(t.levelOfMeasurements,["Interval"])}).sort(B),r=n[0],i=n[1],o=e.find(function(t){return a(t.levelOfMeasurements,["Nominal"])});if(!r||!i)return null;var l={type:"point",data:t,encode:{x:r.name,y:i.name}};return o&&(l.encode.color=o.name),l}(ta,to);case"bubble_chart":return function(t,e){for(var n=e.filter(function(t){return a(t.levelOfMeasurements,["Interval"])}),i={x:n[0],y:n[1],corr:0,size:n[2]},o=function(t){for(var e=function(e){var a=(0,W.Vs)(n[t].rawData,n[e].rawData);Math.abs(a)>i.corr&&(i.x=n[t],i.y=n[e],i.corr=a,i.size=n[(0,r.ev)([],(0,r.CR)(Array(n.length).keys()),!1).find(function(n){return n!==t&&n!==e})||0])},a=t+1;ae.score?-1:0},K=function(t){var e=t.chartWIKI,n=t.dataProps,r=t.ruleBase,i=t.options;return Object.keys(e).map(function(t){return function(t,e,n,r,i){var a=i?i.purpose:"",o=i?i.preferences:void 0,l=[],s={dataProps:n,chartType:t,purpose:a,preferences:o},c=U(t,e,r,"HARD",s,l);if(0===c)return{chartType:t,score:0,log:l};var u=U(t,e,r,"SOFT",s,l);return{chartType:t,score:c*u,log:l}}(t,e,n,r,i)}).filter(function(t){return t.score>0}).sort(Q)};function X(t,e,n,r){return Object.values(n).filter(function(r){var i;return"DESIGN"===r.type&&r.trigger({dataProps:e,chartType:t})&&!(null===(i=n[r.id].option)||void 0===i?void 0:i.off)}).reduce(function(t,n){return P(t,n.optimizer(e,r))},{})}var J=n(28670),tt=n.n(J);let te=t=>!!tt().valid(t);function tn(t){let{value:e}=t;return te(e)?tt()(e).hex():""}let tr={lab:{l:[0,100],a:[-86.185,98.254],b:[-107.863,94.482]},lch:{l:[0,100],c:[0,100],h:[0,360]},rgb:{r:[0,255],g:[0,255],b:[0,255]},rgba:{r:[0,255],g:[0,255],b:[0,255],a:[0,1]},hsl:{h:[0,360],s:[0,1],l:[0,1]},hsv:{h:[0,360],s:[0,1],v:[0,1]},hsi:{h:[0,360],s:[0,1],i:[0,1]},cmyk:{c:[0,1],m:[0,1],y:[0,1],k:[0,1]}},ti={model:"rgb",value:{r:255,g:255,b:255}},ta=["normal","darken","multiply","colorBurn","linearBurn","lighten","screen","colorDodge","linearDodge","overlay","softLight","hardLight","vividLight","linearLight","pinLight","difference","exclusion"];[...ta];let to=t=>!!tt().valid(t),tl=t=>{let{value:e}=t;return to(e)?tt()(e):tt()("#000")},ts=(t,e=t.model)=>{let n=tl(t);return n?n[e]():[0,0,0]},tc=(t,e=4===t.length?"rgba":"rgb")=>{let n={};if(1===t.length){let[r]=t;for(let t=0;tt*e/255,tp=(t,e)=>t+e-t*e/255,tg=(t,e)=>t<128?th(2*t,e):tp(2*t-255,e),tm={normal:t=>t,darken:(t,e)=>Math.min(t,e),multiply:th,colorBurn:(t,e)=>0===t?0:Math.max(0,255*(1-(255-e)/t)),lighten:(t,e)=>Math.max(t,e),screen:tp,colorDodge:(t,e)=>255===t?255:Math.min(255,255*(e/(255-t))),overlay:(t,e)=>tg(e,t),softLight:(t,e)=>{if(t<128)return e-(1-2*t/255)*e*(1-e/255);let n=e<64?((16*(e/255)-12)*(e/255)+4)*(e/255):Math.sqrt(e/255);return e+255*(2*t/255-1)*(n-e/255)},hardLight:tg,difference:(t,e)=>Math.abs(t-e),exclusion:(t,e)=>t+e-2*t*e/255,linearBurn:(t,e)=>Math.max(t+e-255,0),linearDodge:(t,e)=>Math.min(255,t+e),linearLight:(t,e)=>Math.max(e+2*t-255,0),vividLight:(t,e)=>t<128?255*(1-(1-e/255)/(2*t/255)):255*(e/2/(255-t)),pinLight:(t,e)=>t<128?Math.min(e,2*t):Math.max(e,2*t-255)},ty=t=>.3*t[0]+.58*t[1]+.11*t[2],tv=t=>{let e=ty(t),n=Math.min(...t),r=Math.max(...t),i=[...t];return n<0&&(i=i.map(t=>e+(t-e)*e/(e-n))),r>255&&(i=i.map(t=>e+(t-e)*(255-e)/(r-e))),i},tb=(t,e)=>{let n=e-ty(t);return tv(t.map(t=>t+n))},tx=t=>Math.max(...t)-Math.min(...t),tO=(t,e)=>{let n=t.map((t,e)=>({value:t,index:e}));n.sort((t,e)=>t.value-e.value);let r=n[0].index,i=n[1].index,a=n[2].index,o=[...t];return o[a]>o[r]?(o[i]=(o[i]-o[r])*e/(o[a]-o[r]),o[a]=e):(o[i]=0,o[a]=0),o[r]=0,o},tw={hue:(t,e)=>tb(tO(t,tx(e)),ty(e)),saturation:(t,e)=>tb(tO(e,tx(t)),ty(e)),color:(t,e)=>tb(t,ty(e)),luminosity:(t,e)=>tb(e,ty(t))},t_=(t,e,n="normal")=>{let r;let[i,a,o,l]=ts(t,"rgba"),[s,c,u,f]=ts(e,"rgba"),d=[i,a,o],h=[s,c,u];if(ta.includes(n)){let t=tm[n];r=d.map((e,n)=>Math.floor(t(e,h[n])))}else r=tw[n](d,h);let p=l+f*(1-l),g=Math.round((l*(1-f)*i+l*f*r[0]+(1-l)*f*s)/p),m=Math.round((l*(1-f)*a+l*f*r[1]+(1-l)*f*c)/p),y=Math.round((l*(1-f)*o+l*f*r[2]+(1-l)*f*u)/p);return 1===p?{model:"rgb",value:{r:g,g:m,b:y}}:{model:"rgba",value:{r:g,g:m,b:y,a:p}}},tk=(t,e)=>{let n=(t+e)%360;return n<0?n+=360:n>=360&&(n-=360),n},tC=(t=1,e=0)=>{let n=Math.min(t,e),r=Math.max(t,e);return n+Math.random()*(r-n)},tj=(t=1,e=0)=>{let n=Math.ceil(Math.min(t,e)),r=Math.floor(Math.max(t,e));return Math.floor(n+Math.random()*(r-n+1))},tM=t=>{if(t&&"object"==typeof t){let e=Array.isArray(t);if(e){let e=t.map(t=>tM(t));return e}let n={},r=Object.keys(t);return r.forEach(e=>{n[e]=tM(t[e])}),n}return t};function tS(t){return t*(Math.PI/180)}var tA=n(56917),tE=n.n(tA);let tP=(t,e="normal")=>{if("normal"===e)return{...t};let n=tn(t),r=tE()[e](n);return td(r)},tR=t=>{let e=tu(t),[,,,n=1]=ts(t,"rgba");return tf(e,n)},tT=(t,e="normal")=>"grayscale"===e?tR(t):tP(t,e),tL=(t,e,n=[tj(5,10),tj(90,95)])=>{let[r,i,a]=ts(t,"lab"),o=r<=15?r:n[0],l=r>=85?r:n[1],s=(l-o)/(e-1),c=Math.ceil((r-o)/s);return s=0===c?s:(r-o)/c,Array(e).fill(0).map((t,e)=>tc([s*e+o,i,a],"lab"))},tB=t=>{let{count:e,color:n,tendency:r}=t,i=tL(n,e),a={name:"monochromatic",semantic:null,type:"discrete-scale",colors:"tint"===r?i:i.reverse()};return a},tZ={model:"rgb",value:{r:0,g:0,b:0}},tI={model:"rgb",value:{r:255,g:255,b:255}},tN=(t,e,n="lab")=>tt().distance(tl(t),tl(e),n),tD=(t,e)=>{let n=Math.atan2(t,e)*(180/Math.PI);return n>=0?n:n+360},tz=(t,e)=>{let n,r;let[i,a,o]=ts(t,"lab"),[l,s,c]=ts(e,"lab"),u=Math.sqrt(a**2+o**2),f=Math.sqrt(s**2+c**2),d=(u+f)/2,h=.5*(1-Math.sqrt(d**7/(d**7+6103515625))),p=(1+h)*a,g=(1+h)*s,m=Math.sqrt(p**2+o**2),y=Math.sqrt(g**2+c**2),v=tD(o,p),b=tD(c,g),x=y-m;n=180>=Math.abs(b-v)?b-v:b-v<-180?b-v+360:b-v-360;let O=2*Math.sqrt(m*y)*Math.sin(tS(n)/2);r=180>=Math.abs(v-b)?(v+b)/2:Math.abs(v-b)>180&&v+b<360?(v+b+360)/2:(v+b-360)/2;let w=(i+l)/2,_=(m+y)/2,k=1-.17*Math.cos(tS(r-30))+.24*Math.cos(tS(2*r))+.32*Math.cos(tS(3*r+6))-.2*Math.cos(tS(4*r-63)),C=1+.015*(w-50)**2/Math.sqrt(20+(w-50)**2),j=1+.045*_,M=1+.015*_*k,S=-2*Math.sqrt(_**7/(_**7+6103515625))*Math.sin(tS(60*Math.exp(-(((r-275)/25)**2)))),A=Math.sqrt(((l-i)/(1*C))**2+(x/(1*j))**2+(O/(1*M))**2+S*(x/(1*j))*(O/(1*M)));return A},tF=t=>{let e=t/255;return e<=.03928?e/12.92:((e+.055)/1.055)**2.4},t$=t=>{let[e,n,r]=ts(t);return .2126*tF(e)+.7152*tF(n)+.0722*tF(r)},tW=(t,e)=>{let n=t$(t),r=t$(e);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)},tH=(t,e,n={measure:"euclidean"})=>{let{measure:r="euclidean",backgroundColor:i=ti}=n,a=t_(t,i),o=t_(e,i);switch(r){case"CIEDE2000":return tz(a,o);case"euclidean":return tN(a,o,n.colorModel);case"contrastRatio":return tW(a,o);default:return tN(a,o)}},tG=[.8,1.2],tq={rouletteWheel:t=>{let e=t.reduce((t,e)=>t+e),n=0,r=tC(e),i=0;for(let e=0;e{let e=-1,n=0;for(let r=0;r<3;r+=1){let i=tj(t.length-1);t[i]>n&&(e=r,n=t[i])}return e}},tY=(t,e="tournament")=>tq[e](t),tV=(t,e)=>{let n=tM(t),r=tM(e);for(let i=1;i{let i=tM(t),a=e[tj(e.length-1)],o=tj(t[0].length-1),l=i[a][o]*tC(...tG),s=[15,240];"grayscale"!==n&&(s=tr[r][r.split("")[o]]);let[c,u]=s;return lu&&(l=u),i[a][o]=l,i},tQ=(t,e,n,r,i,a)=>{let o;o="grayscale"===n?t.map(([t])=>tf(t)):t.map(t=>tT(tc(t,r),n));let l=1/0;for(let t=0;t{if(Math.round(tQ(t,e,n,i,a,o))>r)return t;let l=Array(t.length).fill(0).map((t,e)=>e).filter((t,n)=>!e[n]),s=Array(50).fill(0).map(()=>tU(t,l,n,i)),c=s.map(t=>tQ(t,e,n,i,a,o)),u=Math.max(...c),f=s[c.findIndex(t=>t===u)],d=1;for(;d<100&&Math.round(u)tC()?tV(e,r):[e,r];a=a.map(t=>.1>tC()?tU(t,l,n,i):t),t.push(...a)}c=(s=t).map(t=>tQ(t,e,n,i,a,o));let r=Math.max(...c);u=r,f=s[c.findIndex(t=>t===r)],d+=1}return f},tX={euclidean:30,CIEDE2000:20,contrastRatio:4.5},tJ={euclidean:291.48,CIEDE2000:100,contrastRatio:21},t0=(t,e={})=>{let{locked:n=[],simulationType:r="normal",threshold:i,colorModel:a="hsv",colorDifferenceMeasure:o="euclidean",backgroundColor:l=ti}=e,s=i;if(s||(s=tX[o]),"grayscale"===r){let e=tJ[o];s=Math.min(s,e/t.colors.length)}let c=tM(t);if("matrix"!==c.type&&"continuous-scale"!==c.type){if("grayscale"===r){let t=c.colors.map(t=>[tu(t)]),e=tK(t,n,r,s,a,o,l);c.colors.forEach((t,n)=>Object.assign(t,function(t,e){let n;let[,r,i]=ts(e,"lab"),[,,,a=1]=ts(e,"rgba"),o=100*t,l=Math.round(o),s=tu(tc([l,r,i],"lab")),c=25;for(;Math.round(o)!==Math.round(s/255*100)&&c>0;)o>s/255*100?l+=1:l-=1,c-=1,s=tu(tc([l,r,i],"lab"));if(Math.round(o)ts(t,a)),e=tK(t,n,r,s,a,o,l);c.colors.forEach((t,n)=>{Object.assign(t,tc(e[n],a))})}}return c},t1=[.3,.9],t2=[.5,1],t5=(t,e,n,r=[])=>{let[i]=ts(t,"hsv"),a=Array(n).fill(!1),o=-1===r.findIndex(e=>e&&e.model===t.model&&e.value===t.value),l=Array(n).fill(0).map((n,l)=>{let s=r[l];return s?(a[l]=!0,s):o?(o=!1,a[l]=!0,t):tc([tk(i,e*l),tC(...t1),tC(...t2)],"hsv")});return{newColors:l,locked:a}};function t3(){let t=tj(255),e=tj(255),n=tj(255);return tc([t,e,n],"rgb")}let t6=t=>{let{count:e,colors:n}=t,r=[],i={name:"random",semantic:null,type:"categorical",colors:Array(e).fill(0).map((t,e)=>{let i=n[e];return i?(r[e]=!0,i):t3()})};return t0(i,{locked:r})},t4=["monochromatic"],t8=(t,e)=>{let{count:n=8,tendency:r="tint"}=e,{colors:i=[],color:a}=e;return a||(a=i.find(t=>!!t&&!!t.model&&!!t.value)||t3()),t4.includes(t)&&(i=[]),{color:a,colors:i,count:n,tendency:r}},t7={monochromatic:tB,analogous:t=>{let{count:e,color:n,tendency:r}=t,[i,a,o]=ts(n,"hsv"),l=Math.floor(e/2),s=60/(e-1);i>=60&&i<=240&&(s=-s);let c=(a-.1)/3/(e-l-1),u=(o-.4)/3/l,f=Array(e).fill(0).map((t,e)=>{let n=tk(i,s*(e-l)),r=e<=l?Math.min(a+c*(l-e),1):a+3*c*(l-e),f=e<=l?o-3*u*(l-e):Math.min(o-u*(l-e),1);return tc([n,r,f],"hsv")}),d={name:"analogous",semantic:null,type:"discrete-scale",colors:"tint"===r?f:f.reverse()};return d},achromatic:t=>{let{tendency:e}=t,n={...t,color:"tint"===e?tZ:tI},r=tB(n);return{...r,name:"achromatic"}},complementary:t=>{let e;let{count:n,color:r}=t,[i,a,o]=ts(r,"hsv"),l=tc([tk(i,180),a,o],"hsv"),s=tj(80,90),c=tj(15,25),u=Math.floor(n/2),f=tL(r,u,[c,s]),d=tL(l,u,[c,s]).reverse();if(n%2==1){let t=tc([(tk(i,180)+i)/2,tC(.05,.1),tC(.9,.95)],"hsv");e=[...f,t,...d]}else e=[...f,...d];let h={name:"complementary",semantic:null,type:"discrete-scale",colors:e};return h},"split-complementary":t=>{let{count:e,color:n,colors:r}=t,{newColors:i,locked:a}=t5(n,180,e,r);return t0({name:"tetradic",semantic:null,type:"categorical",colors:i},{locked:a})},triadic:t=>{let{count:e,color:n,colors:r}=t,{newColors:i,locked:a}=t5(n,120,e,r);return t0({name:"tetradic",semantic:null,type:"categorical",colors:i},{locked:a})},tetradic:t=>{let{count:e,color:n,colors:r}=t,{newColors:i,locked:a}=t5(n,90,e,r);return t0({name:"tetradic",semantic:null,type:"categorical",colors:i},{locked:a})},polychromatic:t=>{let{count:e,color:n,colors:r}=t,i=360/e,{newColors:a,locked:o}=t5(n,i,e,r);return t0({name:"tetradic",semantic:null,type:"categorical",colors:a},{locked:o})},customized:t6},t9=(t="monochromatic",e={})=>{let n=t8(t,e);try{return t7[t](n)}catch(t){return t6(n)}};function et(t,e,n){var r,i=O(e),a=n.primaryColor,o=i.encode;if(a&&o){var l=td(a);if(o.color){var s=o.color,c=s.type,u=s.field;return{scale:{color:{range:t9("quantitative"===c?G[Math.floor(Math.random()*G.length)]:q[Math.floor(Math.random()*q.length)],{color:l,count:null===(r=t.find(function(t){return t.name===u}))||void 0===r?void 0:r.count}).colors.map(function(t){return tn(t)})}}}}return"line"===e.type?{style:{stroke:tn(l)}}:{style:{fill:tn(l)}}}return{}}function ee(t,e,n,r,i){var a,o=O(e).encode;if(n&&o){var l=td(n);if(o.color){var s=o.color,c=s.type,u=s.field,f=r;return f||(f="quantitative"===c?"monochromatic":"polychromatic"),{scale:{color:{range:t9(f,{color:l,count:null===(a=t.find(function(t){return t.name===u}))||void 0===a?void 0:a.count}).colors.map(function(t){return tn(i?tT(t,i):t)})}}}}return"line"===e.type?{style:{stroke:tn(l)}}:{style:{fill:tn(l)}}}return{}}n(16243);var en=n(8625);function er(t,e,n){try{i=e?new en.Z(t,{columns:e}):new en.Z(t)}catch(t){return console.error("failed to transform the input data into DataFrame: ",t),[]}var i,a=i.info();return n?a.map(function(t){var e=n.find(function(e){return e.name===t.name});return(0,r.pi)((0,r.pi)({},t),e)}):a}var ei=function(t){var e=t.data,n=t.fields;return n?e.map(function(t){return Object.keys(t).forEach(function(e){n.includes(e)||delete t[e]}),t}):e};function ea(t){var e=t.adviseParams,n=t.ckb,r=t.ruleBase,i=e.data,a=e.dataProps,o=e.smartColor,l=e.options,s=e.colorOptions,c=e.fields,u=l||{},f=u.refine,d=void 0!==f&&f,h=u.requireSpec,p=void 0===h||h,g=u.theme,m=s||{},y=m.themeColor,v=void 0===y?Y:y,b=m.colorSchemeType,x=m.simulationType,O=M(i),w=er(O,c,a),_=ei({data:O,fields:c}),k=K({dataProps:w,ruleBase:r,chartWIKI:n});return{advices:k.map(function(t){var e=t.score,i=t.chartType,a=H({chartType:i,data:_,dataProps:w,chartKnowledge:n[i]});if(a&&d){var l=X(i,w,r,a);P(a,l)}if(a){if(g&&!o){var l=et(w,a,g);P(a,l)}else if(o){var l=ee(w,a,v,b,x);P(a,l)}}return{type:i,spec:a,score:e}}).filter(function(t){return!p||t.spec}),log:k}}var eo=function(t){var e,n=t.coordinate;if((null==n?void 0:n.type)==="theta")return(null==n?void 0:n.innerRadius)?"donut_chart":"pie_chart";var r=t.transform,i=null===(e=null==n?void 0:n.transform)||void 0===e?void 0:e.some(function(t){return"transpose"===t.type}),a=null==r?void 0:r.some(function(t){return"normalizeY"===t.type}),o=null==r?void 0:r.some(function(t){return"stackY"===t.type}),l=null==r?void 0:r.some(function(t){return"dodgeX"===t.type});return i?l?"grouped_bar_chart":a?"stacked_bar_chart":o?"percent_stacked_bar_chart":"bar_chart":l?"grouped_column_chart":a?"stacked_column_chart":o?"percent_stacked_column_chart":"column_chart"},el=function(t){var e=t.transform,n=null==e?void 0:e.some(function(t){return"stackY"===t.type}),r=null==e?void 0:e.some(function(t){return"normalizeY"===t.type});return n?r?"percent_stacked_area_chart":"stacked_area_chart":"area_chart"},es=function(t){var e=t.encode;return e.shape&&"hvh"===e.shape?"step_line_chart":"line_chart"},ec=function(t){var e;switch(t.type){case"area":e=el(t);break;case"interval":e=eo(t);break;case"line":e=es(t);break;case"point":e=t.encode.size?"bubble_chart":"scatter_plot";break;case"rect":e="histogram";break;case"cell":e="heatmap";break;default:e=""}return e};function eu(t,e,n,i,a,o,l){Object.values(t).filter(function(t){var i,a,l=t.option||{},s=l.weight,c=l.extra;return i=t.type,("DESIGN"===e?"DESIGN"===i:"DESIGN"!==i)&&!(null===(a=t.option)||void 0===a?void 0:a.off)&&t.trigger((0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},n),{weight:s}),c),{chartWIKI:o}))}).forEach(function(t){var s,c=t.type,u=t.id,f=t.docs;if("DESIGN"===e){var d=t.optimizer(n.dataProps,l);s=0===Object.keys(d).length?1:0,a.push({type:c,id:u,score:s,fix:d,docs:f})}else{var h=t.option||{},p=h.weight,g=h.extra;s=t.validator((0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},n),{weight:p}),g),{chartWIKI:o})),a.push({type:c,id:u,score:s,docs:f})}i.push({phase:"LINT",ruleId:u,score:s,base:s,weight:1,ruleType:c})})}function ef(t,e,n){var r=t.spec,i=t.options,a=t.dataProps,o=null==i?void 0:i.purpose,l=null==i?void 0:i.preferences,s=ec(r),c=[],u=[];if(!r||!s)return{lints:c,log:u};if(!a||!a.length)try{a=new en.Z(r.data).info()}catch(t){return console.error("error: ",t),{lints:c,log:u}}var f={dataProps:a,chartType:s,purpose:o,preferences:l};return eu(e,"notDESIGN",f,u,c,n),eu(e,"DESIGN",f,u,c,n,r),{lints:c=c.filter(function(t){return t.score<1}),log:u}}var ed=n(89991),eh=function(){function t(t,e){var n,r,i,a=this;this.plugins=[],this.name=t,this.afterPluginsExecute=null!==(n=null==e?void 0:e.afterPluginsExecute)&&void 0!==n?n:this.defaultAfterPluginsExecute,this.pluginManager=new ed.AsyncParallelHook(["data","results"]),this.syncPluginManager=new ed.SyncHook(["data","results"]),this.context=null==e?void 0:e.context,this.hasAsyncPlugin=!!(null===(r=null==e?void 0:e.plugins)||void 0===r?void 0:r.find(function(t){return a.isPluginAsync(t)})),null===(i=null==e?void 0:e.plugins)||void 0===i||i.forEach(function(t){a.registerPlugin(t)})}return t.prototype.defaultAfterPluginsExecute=function(t){return(0,y.last)(Object.values(t))},t.prototype.isPluginAsync=function(t){return"AsyncFunction"===t.execute.constructor.name},t.prototype.registerPlugin=function(t){var e,n=this;null===(e=t.onLoad)||void 0===e||e.call(t,this.context),this.plugins.push(t),this.isPluginAsync(t)&&(this.hasAsyncPlugin=!0),this.hasAsyncPlugin?this.pluginManager.tapPromise(t.name,function(e,i){return void 0===i&&(i={}),(0,r.mG)(n,void 0,void 0,function(){var n,a,o;return(0,r.Jh)(this,function(r){switch(r.label){case 0:return null===(a=t.onBeforeExecute)||void 0===a||a.call(t,e,this.context),[4,t.execute(e,this.context)];case 1:return n=r.sent(),null===(o=t.onAfterExecute)||void 0===o||o.call(t,n,this.context),i[t.name]=n,[2]}})})}):this.syncPluginManager.tap(t.name,function(e,r){void 0===r&&(r={}),null===(i=t.onBeforeExecute)||void 0===i||i.call(t,e,n.context);var i,a,o=t.execute(e,n.context);return null===(a=t.onAfterExecute)||void 0===a||a.call(t,o,n.context),r[t.name]=o,o})},t.prototype.unloadPlugin=function(t){var e,n=this.plugins.find(function(e){return e.name===t});n&&(null===(e=n.onUnload)||void 0===e||e.call(n,this.context),this.plugins=this.plugins.filter(function(e){return e.name!==t}))},t.prototype.execute=function(t){var e,n=this;if(this.hasAsyncPlugin){var i={};return this.pluginManager.promise(t,i).then(function(){return(0,r.mG)(n,void 0,void 0,function(){var t;return(0,r.Jh)(this,function(e){return[2,null===(t=this.afterPluginsExecute)||void 0===t?void 0:t.call(this,i)]})})})}var a={};return this.syncPluginManager.call(t,a),null===(e=this.afterPluginsExecute)||void 0===e?void 0:e.call(this,a)},t}(),ep=function(){function t(t){var e=t.components,n=this;this.components=e,this.componentsManager=new ed.AsyncSeriesWaterfallHook(["initialParams"]),e.forEach(function(t){t&&n.componentsManager.tapPromise(t.name,function(e){return(0,r.mG)(n,void 0,void 0,function(){var n,i;return(0,r.Jh)(this,function(a){switch(a.label){case 0:return n=e,[4,t.execute(n||{})];case 1:return i=a.sent(),[2,(0,r.pi)((0,r.pi)({},n),i)]}})})})})}return t.prototype.execute=function(t){return(0,r.mG)(this,void 0,void 0,function(){return(0,r.Jh)(this,function(e){switch(e.label){case 0:return[4,this.componentsManager.promise(t)];case 1:return[2,e.sent()]}})})},t}(),eg={name:"defaultDataProcessor",stage:["dataAnalyze"],execute:function(t,e){var n=t.data,r=t.customDataProps,i=((null==e?void 0:e.options)||{}).fields,a=(0,y.cloneDeep)(n),o=er(a,i,r);return{data:ei({data:a,fields:i}),dataProps:o}}},em={name:"defaultChartTypeRecommend",stage:["chartTypeRecommend"],execute:function(t,e){var n=t.dataProps,r=e||{},i=r.advisor,a=r.options;return{chartTypeRecommendations:K({dataProps:n,chartWIKI:i.ckb,ruleBase:i.ruleBase,options:a})}}},ey={name:"defaultSpecGenerator",stage:["specGenerate"],execute:function(t,e){var n=t.chartTypeRecommendations,r=t.dataProps,i=t.data,a=e||{},o=a.options,l=a.advisor,s=o||{},c=s.refine,u=void 0!==c&&c,f=s.theme,d=s.colorOptions,h=s.smartColor,p=d||{},g=p.themeColor,m=void 0===g?Y:g,y=p.colorSchemeType,v=p.simulationType;return{advices:null==n?void 0:n.map(function(t){var e=t.chartType,n=H({chartType:e,data:i,dataProps:r,chartKnowledge:l.ckb[e]});if(n&&u){var a=X(e,r,l.ruleBase,n);P(n,a)}if(n){if(f&&!h){var a=et(r,n,f);P(n,a)}else if(h){var a=ee(r,n,m,y,v);P(n,a)}}return{type:t.chartType,spec:n,score:t.score}}).filter(function(t){return t.spec})}}},ev=function(){function t(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this.ckb=(n=t.ckbCfg,a=JSON.parse(JSON.stringify(i)),n?(o=n.exclude,l=n.include,s=n.custom,o&&o.forEach(function(t){Object.keys(a).includes(t)&&delete a[t]}),l&&Object.keys(a).forEach(function(t){l.includes(t)||delete a[t]}),(0,r.pi)((0,r.pi)({},a),s)):a),this.ruleBase=j(t.ruleCfg),this.context={advisor:this},this.initDefaultComponents();var n,a,o,l,s,c=[this.dataAnalyzer,this.chartTypeRecommender,this.chartEncoder,this.specGenerator],u=e.plugins,f=e.components;this.plugins=u,this.pipeline=new ep({components:null!=f?f:c})}return t.prototype.initDefaultComponents=function(){this.dataAnalyzer=new eh("data",{plugins:[eg],context:this.context}),this.chartTypeRecommender=new eh("chartType",{plugins:[em],context:this.context}),this.specGenerator=new eh("specGenerate",{plugins:[ey],context:this.context})},t.prototype.advise=function(t){return ea({adviseParams:t,ckb:this.ckb,ruleBase:this.ruleBase}).advices},t.prototype.adviseAsync=function(t){return(0,r.mG)(this,void 0,void 0,function(){return(0,r.Jh)(this,function(e){switch(e.label){case 0:return this.context=(0,r.pi)((0,r.pi)({},this.context),{data:t.data,options:t.options}),[4,this.pipeline.execute(t)];case 1:return[2,e.sent().advices]}})})},t.prototype.adviseWithLog=function(t){return ea({adviseParams:t,ckb:this.ckb,ruleBase:this.ruleBase})},t.prototype.lint=function(t){return ef(t,this.ruleBase,this.ckb).lints},t.prototype.lintWithLog=function(t){return ef(t,this.ruleBase,this.ckb)},t.prototype.registerPlugins=function(t){var e={dataAnalyze:this.dataAnalyzer,chartTypeRecommend:this.chartTypeRecommender,encode:this.chartEncoder,specGenerate:this.specGenerator};t.forEach(function(t){"string"==typeof t.stage&&e[t.stage].registerPlugin(t)})},t}()},8625:function(t,e,n){"use strict";n.d(e,{Z:function(){return O}});var r=n(97582),i=n(66465),a=n(61839),o=n(7813),l=function(t){var e,n,i=(void 0===(e=t)&&(e=!0),["".concat(o.oP),"".concat(o.oP).concat(o.cF).concat(e?"":"?","W").concat(o.ps,"(").concat(o.cF).concat(e?"":"?").concat(o.NO,")?"),"".concat(o.vc).concat(o.cF).concat(e?"":"?").concat(o.x4).concat(o.cF).concat(e?"":"?").concat(o.oP),"".concat(o.oP).concat(o.cF).concat(e?"":"?").concat(o.vc).concat(o.cF).concat(e?"":"?").concat(o.x4),"".concat(o.oP).concat(o.cF).concat(e?"":"?").concat(o.vc),"".concat(o.oP).concat(o.cF).concat(e?"":"?").concat(o.IY)]),a=(void 0===(n=t)&&(n=!0),["".concat(o.kr,":").concat(n?"":"?").concat(o.EB,":").concat(n?"":"?").concat(o.sh,"([.,]").concat(o.KP,")?").concat(o.ew,"?"),"".concat(o.kr,":").concat(n?"":"?").concat(o.EB,"?").concat(o.ew)]),l=(0,r.ev)((0,r.ev)([],(0,r.CR)(i),!1),(0,r.CR)(a),!1);return i.forEach(function(t){a.forEach(function(e){l.push("".concat(t,"[T\\s]").concat(e))})}),l.map(function(t){return new RegExp("^".concat(t,"$"))})};function s(t,e){if((0,a.HD)(t)){for(var n=l(e),r=0;r0&&(m.generateColumns([0],null==n?void 0:n.columns),m.colData=[m.data],m.data=m.data.map(function(t){return[t]})),(0,a.kJ)(b)){var x=(0,c.w6)(b.length);m.generateDataAndColDataFromArray(!1,e,x,null==n?void 0:n.fillValue,null==n?void 0:n.columnTypes),m.generateColumns(x,null==n?void 0:n.columns)}if((0,a.Kn)(b)){for(var O=[],y=0;y=0&&b>=0||O.length>0,"The rowLoc is not found in the indexes."),v>=0&&b>=0&&(E=this.data.slice(v,b),P=this.indexes.slice(v,b)),O.length>0)for(var s=0;s=0&&_>=0){for(var s=0;s0){for(var R=[],T=E.slice(),s=0;s=0&&y>=0||v.length>0,"The colLoc is illegal"),(0,a.U)(n)&&(0,c.w6)(this.columns.length).includes(n)&&(b=n,O=n+1),(0,a.kJ)(n))for(var s=0;s=0&&y>=0||v.length>0,"The rowLoc is not found in the indexes.");var S=[],A=[];if(m>=0&&y>=0)S=this.data.slice(m,y),A=this.indexes.slice(m,y);else if(v.length>0)for(var s=0;s=0&&O>=0||w.length>0,"The colLoc is not found in the columns index."),b>=0&&O>=0){for(var s=0;s0){for(var E=[],P=S.slice(),s=0;s1){var _={},k=y;b.forEach(function(e){"date"===e?(_.date=t(k.filter(function(t){return s(t)}),n),k=k.filter(function(t){return!s(t)})):"integer"===e?(_.integer=t(k.filter(function(t){return(0,a.Cf)(t)&&!s(t)}),n),k=k.filter(function(t){return!(0,a.Cf)(t)})):"float"===e?(_.float=t(k.filter(function(t){return(0,a.vn)(t)&&!s(t)}),n),k=k.filter(function(t){return!(0,a.vn)(t)})):"string"===e&&(_.string=t(k.filter(function(t){return"string"===f(t,n)})),k=k.filter(function(t){return"string"!==f(t,n)}))}),w.meta=_}2===w.distinct&&"date"!==w.recommendation&&(g.length>=100?w.recommendation="boolean":(0,a.jn)(O,!0)&&(w.recommendation="boolean")),"string"===p&&Object.assign(w,(o=(r=y.map(function(t){return"".concat(t)})).map(function(t){return t.length}),{maxLength:(0,i.Fp)(o),minLength:(0,i.VV)(o),meanLength:(0,i.J6)(o),containsChar:r.some(function(t){return/[A-z]/.test(t)}),containsDigit:r.some(function(t){return/[0-9]/.test(t)}),containsSpace:r.some(function(t){return/\s/.test(t)})})),("integer"===p||"float"===p)&&Object.assign(w,(l=y.map(function(t){return 1*t}),{minimum:(0,i.VV)(l),maximum:(0,i.Fp)(l),mean:(0,i.J6)(l),percentile5:(0,i.VR)(l,5),percentile25:(0,i.VR)(l,25),percentile50:(0,i.VR)(l,50),percentile75:(0,i.VR)(l,75),percentile95:(0,i.VR)(l,95),sum:(0,i.Sm)(l),variance:(0,i.CA)(l),standardDeviation:(0,i.IN)(l),zeros:l.filter(function(t){return 0===t}).length})),"date"===p&&Object.assign(w,(d="integer"===w.type,h=y.map(function(t){if(d){var e="".concat(t);if(8===e.length)return new Date("".concat(e.substring(0,4),"/").concat(e.substring(4,2),"/").concat(e.substring(6,2))).getTime()}return new Date(t).getTime()}),{minimum:y[(0,i._D)(h)],maximum:y[(0,i.F_)(h)]}));var C=[];return"boolean"!==w.recommendation&&("string"!==w.recommendation||u(w))||C.push("Nominal"),u(w)&&C.push("Ordinal"),("integer"===w.recommendation||"float"===w.recommendation)&&C.push("Interval"),"integer"===w.recommendation&&C.push("Discrete"),"float"===w.recommendation&&C.push("Continuous"),"date"===w.recommendation&&C.push("Time"),w.levelOfMeasurements=C,w}(this.colData[n],this.extra.strictDatePattern)),{name:String(o)}))}return e},e.prototype.toString=function(){for(var t=this,e=Array(this.columns.length+1).fill(0),n=0;ne[0]&&(e[0]=r)}for(var n=0;ne[n+1]&&(e[n+1]=r)}for(var n=0;ne[n+1]&&(e[n+1]=r)}return"".concat(g(e[0])).concat(this.columns.map(function(n,r){return"".concat(n).concat(r!==t.columns.length?g(e[r+1]-y(n)+2):"")}).join(""),"\n").concat(this.indexes.map(function(n,r){var i;return"".concat(n).concat(g(e[0]-y(n))).concat(null===(i=t.data[r])||void 0===i?void 0:i.map(function(n,r){return"".concat(m(n)).concat(r!==t.columns.length?g(e[r+1]-y(n)):"")}).join("")).concat(r!==t.indexes.length?"\n":"")}).join(""))},e}(b)},66465:function(t,e,n){"use strict";n.d(e,{Fp:function(){return u},F_:function(){return f},J6:function(){return h},VV:function(){return s},_D:function(){return c},Vs:function(){return y},VR:function(){return p},IN:function(){return m},Sm:function(){return d},Gn:function(){return v},CA:function(){return g}});var r=n(97582),i=n(84813),a=new WeakMap;function o(t,e,n){return a.get(t)||a.set(t,new Map),a.get(t).set(e,n),n}function l(t,e){var n=a.get(t);if(n)return n.get(e)}function s(t){var e=l(t,"min");return void 0!==e?e:o(t,"min",Math.min.apply(Math,(0,r.ev)([],(0,r.CR)(t),!1)))}function c(t){var e=l(t,"minIndex");return void 0!==e?e:o(t,"minIndex",function(t){for(var e=t[0],n=0,r=0;re&&(n=r,e=t[r]);return n}(t))}function d(t){var e=l(t,"sum");return void 0!==e?e:o(t,"sum",t.reduce(function(t,e){return e+t},0))}function h(t){return d(t)/t.length}function p(t,e,n){return void 0===n&&(n=!1),(0,i.hu)(e>0&&e<100,"The percent cannot be between (0, 100)."),(n?t:t.sort(function(t,e){return t>e?1:-1}))[Math.ceil(t.length*e/100)-1]}function g(t){var e=h(t),n=l(t,"variance");return void 0!==n?n:o(t,"variance",t.reduce(function(t,n){return t+Math.pow(n-e,2)},0)/t.length)}function m(t){return Math.sqrt(g(t))}function y(t,e){return(0,i.hu)(t.length===e.length,"The x and y must has same length."),(h(t.map(function(t,n){return t*e[n]}))-h(t)*h(e))/(m(t)*m(e))}function v(t){var e={};return t.forEach(function(t){var n="".concat(t);e[n]?e[n]+=1:e[n]=1}),e}},84813:function(t,e,n){"use strict";n.d(e,{Js:function(){return s},Tw:function(){return a},hu:function(){return l},w6:function(){return o}});var r=n(97582),i=n(61839);function a(t){return Array.from(new Set(t))}function o(t){return(0,r.ev)([],(0,r.CR)(Array(t).keys()),!1)}function l(t,e){if(!t)throw Error(e)}function s(t,e){if(!(0,i.kJ)(t)||0===t.length||!(0,i.kJ)(e)||0===e.length||t.length!==e.length)return!1;for(var n={},r=0;r(18|19|20)\\d{2})",o="(?0?[1-9]|1[012])",l="(?0?[1-9]|[12]\\d|3[01])",s="(?[0-4]\\d|5[0-2])",c="(?[1-7])",u="(0?\\d|[012345]\\d)",f="(?".concat(u,")"),d="(?".concat(u,")"),h="(?".concat(u,")"),p="(?\\d{1,4})",g="(?(([0-2]\\d|3[0-5])\\d)|36[0-6])",m="(?Z|[+-]".concat("(0?\\d|1\\d|2[0-4])","(:").concat(u,")?)")},61839:function(t,e,n){"use strict";n.d(e,{Cf:function(){return c},HD:function(){return a},J_:function(){return f},Kn:function(){return h},M1:function(){return g},U:function(){return s},hj:function(){return o},i1:function(){return l},jn:function(){return d},kJ:function(){return p},kK:function(){return i},vn:function(){return u}});var r=n(7813);function i(t){return null==t||""===t||Number.isNaN(t)||"null"===t}function a(t){return"string"==typeof t}function o(t){return"number"==typeof t}function l(t){if(a(t)){var e=!1,n=t;/^[+-]/.test(n)&&(n=n.slice(1));for(var r=0;re?0:1;return"M".concat(m,",").concat(y,",A").concat(s,",").concat(c,",0,").concat(o>180?1:0,",").concat(_,",").concat(b,",").concat(x)}function I(t){var e=(0,r.CR)(t,2),n=(0,r.CR)(e[0],2),i=n[0],a=n[1],o=(0,r.CR)(e[1],2);return{x1:i,y1:a,x2:o[0],y2:o[1]}}function N(t){var e=t.type,n=t.gridCenter;return"linear"===e?n:n||t.center}function D(t,e,n,r,i){return void 0===r&&(r=!0),void 0===i&&(i=!1),!!r&&t===e||!!i&&t===n||t>e&&t0,b=i-c,x=a-u,O=h*x-p*b;if(O<0===v)return!1;var w=g*x-m*b;return w<0!==v&&O>y!==v&&w>y!==v}(e,t)})}(l,f))return!0}}catch(t){i={error:t}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}return!1}(h.firstChild,p.firstChild,(0,Y.j)(n)):0)?(l.add(s),l.add(p)):s=p}}catch(t){i={error:t}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}return Array.from(l)}function J(t,e){return(void 0===e&&(e={}),(0,q.Z)(t))?0:"number"==typeof t?t:Math.floor((0,$.Ux)(t,e))}var tt=n(39639),te={parity:function(t,e){var n=e.seq,r=void 0===n?2:n;return t.filter(function(t,e){return!(e%r)||((0,z.Cp)(t),!1)})}},tn=new Map([["hide",function(t,e,n,i){var a,o,l=t.length,s=e.keepHeader,c=e.keepTail;if(!(l<=1)&&(2!==l||!s||!c)){var u=te.parity,f=function(t){return t.forEach(i.show),t},d=2,h=t.slice(),p=t.slice(),g=Math.min.apply(Math,(0,r.ev)([1],(0,r.CR)(t.map(function(t){return t.getBBox().width})),!1));if("linear"===n.type&&(L(n)||B(n))){var m=(0,tt._v)(t[0]).left,y=Math.abs((0,tt._v)(t[l-1]).right-m)||1;d=Math.max(Math.floor(l*g/y),d)}for(s&&(a=h.splice(0,1)[0]),c&&(o=h.splice(-1,1)[0],h.reverse()),f(h);dg+p;x-=p){var O=b(x);if("object"==typeof O)return O.value}}}],["wrap",function(t,e,n,i){var a,o,l=e.wordWrapWidth,s=void 0===l?50:l,c=e.maxLines,u=void 0===c?3:c,f=e.recoverWhenFailed,d=e.margin,h=void 0===d?[0,0,0,0]:d,p=t.map(function(t){return t.attr("maxLines")||1}),g=Math.min.apply(Math,(0,r.ev)([],(0,r.CR)(p),!1)),m=(a=n.type,o=n.labelDirection,"linear"===a&&L(n)?"negative"===o?"bottom":"top":"middle"),y=function(e){return t.forEach(function(t,n){var r=Array.isArray(e)?e[n]:e;i.wrap(t,s,r,m)})};if(!(g>u)){for(var v=g;v<=u;v++)if(y(v),X(t,n,h).length<1)return;(void 0===f||f)&&y(p)}}]]);function tr(t){for(var e=t;e<0;)e+=360;return Math.round(e%360)}function ti(t,e){var n=(0,r.CR)(t,2),i=n[0],a=n[1],o=(0,r.CR)(e,2),l=o[0],s=o[1],c=(0,r.CR)([i*l+a*s,i*s-a*l],2),u=c[0];return Math.atan2(c[1],u)}function ta(t,e,n){var r=n.type,i=n.labelAlign,a=R(t,n),o=tr(e),l=tr(d(ti([1,0],a))),s="center",c="middle";return"linear"===r?[90,270].includes(l)&&0===o?(s="center",c=1===a[1]?"top":"bottom"):!(l%180)&&[90,270].includes(o)?s="center":0===l?D(o,0,90,!1,!0)?s="start":(D(o,0,90)||D(o,270,360))&&(s="start"):90===l?D(o,0,90,!1,!0)?s="start":(D(o,90,180)||D(o,270,360))&&(s="end"):270===l?D(o,0,90,!1,!0)?s="end":(D(o,90,180)||D(o,270,360))&&(s="start"):180===l&&(90===o?s="start":(D(o,0,90)||D(o,270,360))&&(s="end")):"parallel"===i?c=D(l,0,180,!0)?"top":"bottom":"horizontal"===i?D(l,90,270,!1)?s="end":(D(l,270,360,!1)||D(l,0,90))&&(s="start"):"perpendicular"===i&&(s=D(l,90,270)?"end":"start"),{textAlign:s,textBaseline:c}}function to(t,e,n){var i=n.showTick,a=n.tickLength,o=n.tickDirection,l=n.labelDirection,s=n.labelSpacing,c=e.indexOf(t),f=(0,p.S)(s,[t,c,e]),d=(0,r.CR)([R(t.value,n),function(){for(var t=[],e=0;e1))||null==a||a(e,r,t,n)})}function tc(t,e,n,i,a){var o,u=n.indexOf(e),f=(0,l.Ys)(t).append((o=a.labelFormatter,(0,c.Z)(o)?function(){return(0,k.S)((0,p.S)(o,[e,u,n,R(e.value,a)]))}:function(){return(0,k.S)(e.label||"")})).attr("className",s.Ec.labelItem.name).node(),g=(0,r.CR)((0,h.Hm)(M(i,[e,u,n])),2),m=g[0],y=g[1],v=y.transform,b=(0,r._T)(y,["transform"]);W(f,v);var x=function(t,e,n){var r,i,a=n.labelAlign;if(null===(i=e.style.transform)||void 0===i?void 0:i.includes("rotate"))return e.getLocalEulerAngles();var o=0,l=R(t.value,n),s=E(t.value,n);return"horizontal"===a?0:(D(r=(d(o="perpendicular"===a?ti([1,0],l):ti([s[0]<0?-1:1,0],s))+360)%180,-90,90)||(r+=180),r)}(e,f,a);return f.getLocalEulerAngles()||f.setLocalEulerAngles(x),tl(f,(0,r.pi)((0,r.pi)({},ta(e.value,x,a)),m)),t.attr(b),f}function tu(t,e){return P(t,e.tickDirection,e)}function tf(t,e,n,a,o,u){var f,d,g,m,y,v,b,x,O,w,_,k,C,j,S,A,E,P,R,L,B,Z=(f=(0,l.Ys)(this),d=a.tickFormatter,g=tu(t.value,a),m="line",(0,c.Z)(d)&&(m=function(){return(0,p.S)(d,[t,e,n,g])}),f.append(m).attr("className",s.Ec.tickItem.name));y=tu(t.value,a),v=a.tickLength,O=(0,r.CR)((b=(0,p.S)(v,[t,e,n]),[[0,0],[(x=(0,r.CR)(y,2))[0]*b,x[1]*b]]),2),_=(w=(0,r.CR)(O[0],2))[0],k=w[1],S=(j={x1:_,x2:(C=(0,r.CR)(O[1],2))[0],y1:k,y2:C[1]}).x1,A=j.x2,E=j.y1,P=j.y2,L=(R=(0,r.CR)((0,h.Hm)(M(o,[t,e,n,y])),2))[0],B=R[1],"line"===Z.node().nodeName&&Z.styles((0,r.pi)({x1:S,x2:A,y1:E,y2:P},L)),this.attr(B),Z.styles(L);var I=(0,r.CR)(T(t.value,a),2),N=I[0],D=I[1];return(0,i.eR)(this,{transform:"translate(".concat(N,", ").concat(D,")")},u)}var td=n(1366);function th(t,e,n,a,o){var c=(0,h.zs)(a,"title"),f=(0,r.CR)((0,h.Hm)(c),2),d=f[0],p=f[1],g=p.transform,m=p.transformOrigin,y=(0,r._T)(p,["transform","transformOrigin"]);e.styles(y);var v=g||function(t,e,n){var r=2*t.getGeometryBounds().halfExtents[1];if("vertical"===e){if("left"===n)return"rotate(-90) translate(0, ".concat(r/2,")");if("right"===n)return"rotate(-90) translate(0, -".concat(r/2,")")}return""}(t.node(),d.direction,d.position);t.styles((0,r.pi)((0,r.pi)({},d),{transformOrigin:m})),W(t.node(),v);var b=function(t,e,n){var i=n.titlePosition,a=void 0===i?"lb":i,o=n.titleSpacing,l=(0,td.li)(a),s=t.node().getLocalBounds(),c=(0,r.CR)(s.min,2),f=c[0],d=c[1],h=(0,r.CR)(s.halfExtents,2),p=h[0],g=h[1],m=(0,r.CR)(e.node().getLocalBounds().halfExtents,2),y=m[0],v=m[1],b=(0,r.CR)([f+p,d+g],2),x=b[0],O=b[1],w=(0,r.CR)((0,Y.j)(o),4),_=w[0],k=w[1],C=w[2],j=w[3];if(["start","end"].includes(a)&&"linear"===n.type){var M=n.startPos,S=n.endPos,A=(0,r.CR)("start"===a?[M,S]:[S,M],2),E=A[0],P=A[1],R=(0,u.Fv)([-P[0]+E[0],-P[1]+E[1]]),T=(0,r.CR)((0,u.bA)(R,_),2),L=T[0],B=T[1];return{x:E[0]+L,y:E[1]+B}}return l.includes("t")&&(O-=g+v+_),l.includes("r")&&(x+=p+y+k),l.includes("l")&&(x-=p+y+j),l.includes("b")&&(O+=g+v+C),{x:x,y:O}}((0,l.Ys)(n._offscreen||n.querySelector(s.Ec.mainGroup.class)),e,a),x=b.x,O=b.y;return(0,i.eR)(e.node(),{transform:"translate(".concat(x,", ").concat(O,")")},o)}function tp(t,e,n,a){var c=t.showLine,u=t.showTick,f=t.showLabel,d=e.maybeAppendByClassName(s.Ec.lineGroup,"g"),p=(0,o.z)(c,d,function(e){var n,o,l,c,u,f,d,p,g,m,y;return n=e,o=t,l=a,m=o.type,y=(0,h.zs)(o,"line"),"linear"===m?g=function(t,e,n,a){var o,l,c,u,f,d,h,p,g,m,y,v,b,x,O,w,_,k,C=e.showTrunc,j=e.startPos,M=e.endPos,S=e.truncRange,A=e.lineExtension,E=(0,r.CR)([j,M],2),P=(0,r.CR)(E[0],2),R=P[0],T=P[1],L=(0,r.CR)(E[1],2),B=L[0],Z=L[1],N=(0,r.CR)(A?(void 0===(o=A)&&(o=[0,0]),l=(0,r.CR)([j,M,o],3),u=(c=(0,r.CR)(l[0],2))[0],f=c[1],h=(d=(0,r.CR)(l[1],2))[0],p=d[1],m=(g=(0,r.CR)(l[2],2))[0],y=g[1],O=Math.sqrt(Math.pow(b=(v=(0,r.CR)([h-u,p-f],2))[0],2)+Math.pow(x=v[1],2)),[(_=(w=(0,r.CR)([-m/O,y/O],2))[0])*b,_*x,(k=w[1])*b,k*x]):[,,,,].fill(0),4),D=N[0],z=N[1],F=N[2],$=N[3],W=function(e){return t.selectAll(s.Ec.line.class).data(e,function(t,e){return e}).join(function(t){return t.append("line").attr("className",function(t){return"".concat(s.Ec.line.name," ").concat(t.className)}).styles(n).transition(function(t){return(0,i.eR)(this,I(t.line),!1)})},function(t){return t.styles(n).transition(function(t){var e=t.line;return(0,i.eR)(this,I(e),a.update)})},function(t){return t.remove()}).transitions()};if(!C||!S)return W([{line:[[R+D,T+z],[B+F,Z+$]],className:s.Ec.line.name}]);var H=(0,r.CR)(S,2),G=H[0],q=H[1],Y=B-R,V=Z-T,U=(0,r.CR)([R+Y*G,T+V*G],2),Q=U[0],K=U[1],X=(0,r.CR)([R+Y*q,T+V*q],2),J=X[0],tt=X[1],te=W([{line:[[R+D,T+z],[Q,K]],className:s.Ec.lineFirst.name},{line:[[J,tt],[B+F,Z+$]],className:s.Ec.lineSecond.name}]);return e.truncRange,e.truncShape,e.lineExtension,te}(n,o,j(y,"arrow"),l):(c=j(y,"arrow"),u=o.startAngle,f=o.endAngle,d=o.center,p=o.radius,g=n.selectAll(s.Ec.line.class).data([{d:Z.apply(void 0,(0,r.ev)((0,r.ev)([u,f],(0,r.CR)(d),!1),[p],!1))}],function(t,e){return e}).join(function(t){return t.append("path").attr("className",s.Ec.line.name).styles(o).styles({d:function(t){return t.d}})},function(t){return t.transition(function(){var t,e,n,i,a,o=this,s=function(t,e,n,i){if(!i)return t.attr("__keyframe_data__",n),null;var a=i.duration,o=function t(e,n){var i,a,o,l,s,c;return"number"==typeof e&&"number"==typeof n?function(t){return e*(1-t)+n*t}:Array.isArray(e)&&Array.isArray(n)?(i=n?n.length:0,a=e?Math.min(i,e.length):0,function(r){var o=Array(a),l=Array(i),s=0;for(s=0;sx[0])||!(ey&&(m=(a=(0,r.CR)([y,m],2))[0],y=a[1]),v>s-l)?[l,s]:ms?p===s&&h===m?[m,s]:[s-v,s]:[m,y]}function l(t,e,n){return void 0===t&&(t="horizontal"),"horizontal"===t?e:n}i.J.registerSymbol("hiddenHandle",function(t,e,n){var r=1.4*n;return[["M",t-n,e-r],["L",t+n,e-r],["L",t+n,e+r],["L",t-n,e+r],["Z"]]}),i.J.registerSymbol("verticalHandle",function(t,e,n){var r=1.4*n,i=n/2,a=n/6,o=t+.4*r;return[["M",t,e],["L",o,e+i],["L",t+r,e+i],["L",t+r,e-i],["L",o,e-i],["Z"],["M",o,e+a],["L",t+r-2,e+a],["M",o,e-a],["L",t+r-2,e-a]]}),i.J.registerSymbol("horizontalHandle",function(t,e,n){var r=1.4*n,i=n/2,a=n/6,o=e+.4*r;return[["M",t,e],["L",t-i,o],["L",t-i,e+r],["L",t+i,e+r],["L",t+i,o],["Z"],["M",t-a,o],["L",t-a,e+r-2],["M",t+a,o],["L",t+a,e+r-2]]})},86224:function(t,e,n){"use strict";n.d(e,{J:function(){return f}});var r=n(97582),i=n(45607),a=n(5951),o=n(47772),l=n(54015),s=n(56546),c=n(4637),u=n(76714),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.render=function(t,n){var a,s=t.x,f=void 0===s?0:s,d=t.y,h=void 0===d?0:d,p=this.getSubShapeStyle(t),g=p.symbol,m=p.size,y=void 0===m?16:m,v=(0,r._T)(p,["symbol","size"]),b=["base64","url","image"].includes(a=function(t){var e="default";if((0,c.Z)(t)&&t instanceof Image)e="image";else if((0,i.Z)(t))e="symbol";else if((0,u.Z)(t)){var n=RegExp("data:(image|text)");e=t.match(n)?"base64":/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(t)?"url":"symbol"}return e}(g))?"image":g&&"symbol"===a?"path":null;(0,o.z)(!!b,(0,l.Ys)(n),function(t){t.maybeAppendByClassName("marker",b).attr("className","marker ".concat(b,"-marker")).call(function(t){if("image"===b){var n=2*y;t.styles({img:g,width:n,height:n,x:f-y,y:h-y})}else{var n=y/2,a=(0,i.Z)(g)?g:e.getSymbol(g);t.styles((0,r.pi)({d:null==a?void 0:a(f,h,n)},v))}})})},e.MARKER_SYMBOL_MAP=new Map,e.registerSymbol=function(t,n){e.MARKER_SYMBOL_MAP.set(t,n)},e.getSymbol=function(t){return e.MARKER_SYMBOL_MAP.get(t)},e.getSymbols=function(){return Array.from(e.MARKER_SYMBOL_MAP.keys())},e}(a.w);f.registerSymbol("cross",s.kC),f.registerSymbol("hyphen",s.Zb),f.registerSymbol("line",s.jv),f.registerSymbol("plus",s.PD),f.registerSymbol("tick",s.Ky),f.registerSymbol("circle",s.Xw),f.registerSymbol("point",s.xm),f.registerSymbol("bowtie",s.XF),f.registerSymbol("hexagon",s.bL),f.registerSymbol("square",s.h6),f.registerSymbol("diamond",s.tf),f.registerSymbol("triangle",s.cP),f.registerSymbol("triangle-down",s.MG),f.registerSymbol("line",s.jv),f.registerSymbol("dot",s.AK),f.registerSymbol("dash",s.P2),f.registerSymbol("smooth",s.ip),f.registerSymbol("hv",s.hv),f.registerSymbol("vh",s.vh),f.registerSymbol("hvh",s.t7),f.registerSymbol("vhv",s.sN)},56546:function(t,e,n){"use strict";n.d(e,{AK:function(){return m},Ky:function(){return h},LI:function(){return _},MG:function(){return s},P2:function(){return y},PD:function(){return p},XF:function(){return u},Xw:function(){return r},Zb:function(){return g},bL:function(){return c},cP:function(){return l},h6:function(){return a},hv:function(){return b},ip:function(){return v},jv:function(){return f},kC:function(){return d},sN:function(){return w},t7:function(){return O},tf:function(){return o},vh:function(){return x},xm:function(){return i}});var r=function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]]},i=r,a=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},o=function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},l=function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},s=function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]},c=function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},u=function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},f=function(t,e,n){return[["M",t,e+n],["L",t,e-n]]},d=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},h=function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},p=function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},g=function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},m=function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},y=m,v=function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},b=function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]},x=function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]},O=function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]};function w(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}var _=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e],["L",t-n,e+n],["Z"]]}},42100:function(t,e,n){"use strict";n.d(e,{Ec:function(){return l},Qi:function(){return i},b0:function(){return a},fI:function(){return o}});var r=n(79274),i={fill:"#fff",lineWidth:1,radius:2,size:10,stroke:"#bfbfbf",strokeOpacity:1,zIndex:0},a={fill:"#000",fillOpacity:.45,fontSize:12,textAlign:"center",textBaseline:"middle",zIndex:1},o={x:0,y:0,orientation:"horizontal",showLabel:!0,type:"start"},l=(0,r.A)({foreground:"foreground",handle:"handle",selection:"selection",sparkline:"sparkline",sparklineGroup:"sparkline-group",track:"track",brushArea:"brush-area"},"slider")},77687:function(t,e,n){"use strict";n.d(e,{H:function(){return d}});var r=n(97582),i=n(5951),a=n(79274),o=n(54015),l=n(33016),s=n(47772),c=n(42100),u=(0,a.A)({labelGroup:"label-group",label:"label",iconGroup:"icon-group",icon:"icon",iconRect:"icon-rect",iconLine:"icon-line"},"handle"),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.render=function(t,e){var n=t.x,i=t.y,a=t.size,l=void 0===a?10:a,s=t.radius,c=t.orientation,f=(0,r._T)(t,["x","y","size","radius","orientation"]),d=2.4*l,h=(0,o.Ys)(e).maybeAppendByClassName(u.iconRect,"rect").styles((0,r.pi)((0,r.pi)({},f),{width:l,height:d,radius:void 0===s?l/4:s,x:n-l/2,y:i-d/2,transformOrigin:"center"})),p=n+1/3*l-l/2,g=n+2/3*l-l/2,m=i+1/4*d-d/2,y=i+3/4*d-d/2;h.maybeAppendByClassName("".concat(u.iconLine,"-1"),"line").styles((0,r.pi)({x1:p,x2:p,y1:m,y2:y},f)),h.maybeAppendByClassName("".concat(u.iconLine,"-2"),"line").styles((0,r.pi)({x1:g,x2:g,y1:m,y2:y},f)),"vertical"===c&&(h.node().style.transform="rotate(90)")},e}(i.w),d=function(t){function e(e){return t.call(this,e,c.fI)||this}return(0,r.ZT)(e,t),e.prototype.renderLabel=function(t){var e=this,n=this.attributes,i=n.x,a=n.y,f=n.showLabel,d=(0,l.zs)(this.attributes,"label"),h=d.x,p=void 0===h?0:h,g=d.y,m=void 0===g?0:g,y=d.transform,v=d.transformOrigin,b=(0,r._T)(d,["x","y","transform","transformOrigin"]),x=(0,r.CR)((0,l.Hm)(b,[]),2),O=x[0],w=x[1],_=(0,o.Ys)(t).maybeAppendByClassName(u.labelGroup,"g").styles(w),k=(0,r.pi)((0,r.pi)({},c.b0),O),C=k.text,j=(0,r._T)(k,["text"]);(0,s.z)(!!f,_,function(t){e.label=t.maybeAppendByClassName(u.label,"text").styles((0,r.pi)((0,r.pi)({},j),{x:i+p,y:a+m,transform:y,transformOrigin:v,text:"".concat(C)})),e.label.on("mousedown",function(t){t.stopPropagation()}),e.label.on("touchstart",function(t){t.stopPropagation()})})},e.prototype.renderIcon=function(t){var e=this.attributes,n=e.x,i=e.y,a=e.orientation,s=e.type,d=(0,r.pi)((0,r.pi)({x:n,y:i,orientation:a},c.Qi),(0,l.zs)(this.attributes,"icon")),h=this.attributes.iconShape,p=void 0===h?function(){return new f({style:d})}:h;(0,o.Ys)(t).maybeAppendByClassName(u.iconGroup,"g").selectAll(u.icon.class).data([p]).join(function(t){return t.append("string"==typeof p?p:function(){return p(s)}).attr("className",u.icon.name)},function(t){return t.update(d)},function(t){return t.remove()})},e.prototype.render=function(t,e){this.renderIcon(e),this.renderLabel(e)},e}(i.w)},1366:function(t,e,n){"use strict";n.d(e,{Dx:function(){return g},jY:function(){return h},li:function(){return d}});var r=n(97582),i=n(5951),a=n(79274),o=n(62191),l=n(43629),s=n(33016),c=n(47772),u=n(54015),f=(0,a.A)({text:"text"},"title");function d(t){return/\S+-\S+/g.test(t)?t.split("-").map(function(t){return t[0]}):t.length>2?[t[0]]:t.split("")}function h(t,e){var n=t.attributes,i=n.position,a=n.spacing,s=n.inset,c=n.text,u=t.getBBox(),f=e.getBBox(),h=d(i),p=(0,r.CR)((0,o.j)(c?a:0),4),g=p[0],m=p[1],y=p[2],v=p[3],b=(0,r.CR)((0,o.j)(s),4),x=b[0],O=b[1],w=b[2],_=b[3],k=(0,r.CR)([v+m,g+y],2),C=k[0],j=k[1],M=(0,r.CR)([_+O,x+w],2),S=M[0],A=M[1];if("l"===h[0])return new l.b(u.x,u.y,f.width+u.width+C+S,Math.max(f.height+A,u.height));if("t"===h[0])return new l.b(u.x,u.y,Math.max(f.width+S,u.width),f.height+u.height+j+A);var E=(0,r.CR)([e.attributes.width||f.width,e.attributes.height||f.height],2),P=E[0],R=E[1];return new l.b(f.x,f.y,P+u.width+C+S,R+u.height+j+A)}function p(t,e){var n=Object.entries(e).reduce(function(e,n){var i=(0,r.CR)(n,2),a=i[0],o=i[1];return t.node().attr(a)||(e[a]=o),e},{});t.styles(n)}var g=function(t){function e(e){return t.call(this,e,{text:"",width:0,height:0,fill:"#4a505a",fontWeight:"bold",fontSize:12,fontFamily:"sans-serif",inset:0,spacing:0,position:"top-left"})||this}return(0,r.ZT)(e,t),e.prototype.getAvailableSpace=function(){var t=this.attributes,e=t.width,n=t.height,i=t.position,a=t.spacing,s=t.inset,c=this.querySelector(f.text.class);if(!c)return new l.b(0,0,+e,+n);var u=c.getBBox(),h=u.width,p=u.height,g=(0,r.CR)((0,o.j)(a),4),m=g[0],y=g[1],v=g[2],b=g[3],x=(0,r.CR)([0,0,+e,+n],4),O=x[0],w=x[1],_=x[2],k=x[3],C=d(i);if(C.includes("i"))return new l.b(O,w,_,k);C.forEach(function(t,i){var a,o;"t"===t&&(w=(a=(0,r.CR)(0===i?[p+v,+n-p-v]:[0,+n],2))[0],k=a[1]),"r"===t&&(_=(0,r.CR)([+e-h-b],1)[0]),"b"===t&&(k=(0,r.CR)([+n-p-m],1)[0]),"l"===t&&(O=(o=(0,r.CR)(0===i?[h+y,+e-h-y]:[0,+e],2))[0],_=o[1])});var j=(0,r.CR)((0,o.j)(s),4),M=j[0],S=j[1],A=j[2],E=j[3],P=(0,r.CR)([E+S,M+A],2),R=P[0],T=P[1];return new l.b(O+E,w+M,_-R,k-T)},e.prototype.getBBox=function(){return this.title?this.title.getBBox():new l.b(0,0,0,0)},e.prototype.render=function(t,e){var n,i,a,o,l,h,g,m,y,v,b,x,O,w,_,k,C=this;t.width,t.height,t.position,t.spacing;var j=(0,r._T)(t,["width","height","position","spacing"]),M=(0,r.CR)((0,s.Hm)(j),1)[0],S=(l=t.width,h=t.height,g=t.position,y=(m=(0,r.CR)([+l/2,+h/2],2))[0],v=m[1],x=(b=(0,r.CR)([+y,+v,"center","middle"],4))[0],O=b[1],w=b[2],_=b[3],(k=d(g)).includes("l")&&(x=(n=(0,r.CR)([0,"start"],2))[0],w=n[1]),k.includes("r")&&(x=(i=(0,r.CR)([+l,"end"],2))[0],w=i[1]),k.includes("t")&&(O=(a=(0,r.CR)([0,"top"],2))[0],_=a[1]),k.includes("b")&&(O=(o=(0,r.CR)([+h,"bottom"],2))[0],_=o[1]),{x:x,y:O,textAlign:w,textBaseline:_}),A=S.x,E=S.y,P=S.textAlign,R=S.textBaseline;(0,c.z)(!!j.text,(0,u.Ys)(e),function(t){C.title=t.maybeAppendByClassName(f.text,"text").styles(M).call(p,{x:A,y:E,textAlign:P,textBaseline:R}).node()})},e}(i.w)},43629:function(t,e,n){"use strict";n.d(e,{b:function(){return r}});var r=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.x=0,this.y=0,this.width=0,this.height=0,this.x=t,this.y=e,this.width=n,this.height=r}return Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t.prototype.toJSON=function(){return{x:this.x,y:this.y,width:this.width,height:this.height,top:this.top,right:this.right,bottom:this.bottom,left:this.left}},t.prototype.isPointIn=function(t,e){return t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom},t}()},86650:function(t,e,n){"use strict";n.d(e,{S:function(){return a}});var r=n(97582),i=n(45607);function a(t,e){return(0,i.Z)(t)?t.apply(void 0,(0,r.ev)([],(0,r.CR)(e),!1)):t}},79274:function(t,e,n){"use strict";n.d(e,{A:function(){return i}});var r=n(97582),i=function(t,e){var n=function(t){return"".concat(e,"-").concat(t)},i=Object.fromEntries(Object.entries(t).map(function(t){var e=(0,r.CR)(t,2),i=e[0],a=n(e[1]);return[i,{name:a,class:".".concat(a),id:"#".concat(a),toString:function(){return a}}]}));return Object.assign(i,{prefix:n}),i}},8126:function(t,e,n){"use strict";n.d(e,{n:function(){return l}});var r=n(97582),i=n(83845),a=n(5199),o=function(t,e,n,l){void 0===n&&(n=0),void 0===l&&(l=5),Object.entries(e).forEach(function(s){var c=(0,r.CR)(s,2),u=c[0],f=c[1];Object.prototype.hasOwnProperty.call(e,u)&&(f?(0,i.Z)(f)?((0,i.Z)(t[u])||(t[u]={}),n="A"&&n<="Z"};function s(t,e,n){void 0===n&&(n=!1);var o={};return Object.entries(t).forEach(function(t){var s=(0,r.CR)(t,2),c=s[0],u=s[1];if("className"===c||"class"===c);else if(l(c,"show")&&l(a(c,"show"),e)!==n)c==="".concat("show").concat(i(e))?o[c]=u:o[c.replace(new RegExp(i(e)),"")]=u;else if(!l(c,"show")&&l(c,e)!==n){var f=a(c,e);"filter"===f&&"function"==typeof u||(o[f]=u)}}),o}function c(t,e){return Object.entries(t).reduce(function(t,n){var a=(0,r.CR)(n,2),o=a[0],l=a[1];return o.startsWith("show")?t["show".concat(e).concat(o.slice(4))]=l:t["".concat(e).concat(i(o))]=l,t},{})}function u(t,e){void 0===e&&(e=["x","y","class","className"]);var n=["transform","transformOrigin","anchor","visibility","pointerEvents","zIndex","cursor","clipPath","clipPathTargets","offsetPath","offsetPathTargets","offsetDistance","draggable","droppable"],i={},a={};return Object.entries(t).forEach(function(t){var o=(0,r.CR)(t,2),l=o[0],s=o[1];e.includes(l)||(-1!==n.indexOf(l)?a[l]=s:i[l]=s)}),[i,a]}},30650:function(t,e,n){"use strict";n.d(e,{Rm:function(){return c},U4:function(){return s},Ux:function(){return o},qT:function(){return l}});var r,i,a=n(1242),o=(0,n(92426).Z)(function(t,e){var n=e.fontSize,o=e.fontFamily,l=e.fontWeight,s=e.fontStyle,c=e.fontVariant;return i?i(t,n):(r||(r=a.GZ.offscreenCanvasCreator.getOrCreateContext(void 0)),r.font=[s,c,l,"".concat(n,"px"),o].join(" "),r.measureText(t).width)},function(t,e){return[t,Object.values(e||l(t)).join()].join("")},4096),l=function(t){var e=t.style.fontFamily||"sans-serif",n=t.style.fontWeight||"normal",r=t.style.fontStyle||"normal",i=t.style.fontVariant,a=t.style.fontSize;return{fontSize:a="object"==typeof a?a.value:a,fontFamily:e,fontWeight:n,fontStyle:r,fontVariant:i}};function s(t){return"text"===t.nodeName?t:"g"===t.nodeName&&1===t.children.length&&"text"===t.children[0].nodeName?t.children[0]:null}function c(t,e){var n=s(t);n&&n.attr(e)}},62059:function(t,e,n){"use strict";function r(t){a(t,!0)}function i(t){a(t,!1)}function a(t,e){var n=e?"visible":"hidden";!function t(e,n){n(e),e.children&&e.children.forEach(function(e){e&&t(e,n)})}(t,function(t){t.attr("visibility",n)})}n.d(e,{Cp:function(){return i},$Z:function(){return r},WD:function(){return a}})},17816:function(t,e){!function(t){"use strict";function e(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&r>=t.length?void 0:t)&&t[r++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function n(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{for(;(void 0===e||0n=>t(e(n)),t)}function k(t,e){return e-t?n=>(n-t)/(e-t):t=>.5}T=new p(3),p!=Float32Array&&(T[0]=0,T[1]=0,T[2]=0),T=new p(4),p!=Float32Array&&(T[0]=0,T[1]=0,T[2]=0,T[3]=0);let C=Math.sqrt(50),j=Math.sqrt(10),M=Math.sqrt(2);function S(t,e,n){return t=Math.floor(Math.log(e=(e-t)/Math.max(0,n))/Math.LN10),n=e/10**t,0<=t?(n>=C?10:n>=j?5:n>=M?2:1)*10**t:-(10**-t)/(n>=C?10:n>=j?5:n>=M?2:1)}let A=(t,e,n=5)=>{let r=0,i=(t=[t,e]).length-1,a=t[r],o=t[i],l;return o{n.prototype.rescale=function(){this.initRange(),this.nice();var[t]=this.chooseTransforms();this.composeOutput(t,this.chooseClamp(t))},n.prototype.initRange=function(){var e=this.options.interpolator;this.options.range=t(e)},n.prototype.composeOutput=function(t,n){var{domain:r,interpolator:i,round:a}=this.getOptions(),r=e(r.map(t)),a=a?t=>l(t=i(t),"Number")?Math.round(t):t:i;this.output=_(a,r,n,t)},n.prototype.invert=void 0}}var R,T={exports:{}},L={exports:{}},B=Array.prototype.concat,Z=Array.prototype.slice,I=L.exports=function(t){for(var e=[],n=0,r=t.length;nn=>t*(1-n)+e*n,U=(t,e)=>{if("number"==typeof t&&"number"==typeof e)return V(t,e);if("string"!=typeof t||"string"!=typeof e)return()=>t;{let n=Y(t),r=Y(e);return null===n||null===r?n?()=>t:()=>e:t=>{var e=[,,,,];for(let o=0;o<4;o+=1){var i=n[o],a=r[o];e[o]=i*(1-t)+a*t}var[o,l,s,c]=e;return`rgba(${Math.round(o)}, ${Math.round(l)}, ${Math.round(s)}, ${c})`}}},Q=(t,e)=>{let n=V(t,e);return t=>Math.round(n(t))};function K({map:t,initKey:e},n){return e=e(n),t.has(e)?t.get(e):n}function X(t){return"object"==typeof t?t.valueOf():t}class J extends Map{constructor(t){if(super(),this.map=new Map,this.initKey=X,null!==t)for(var[e,n]of t)this.set(e,n)}get(t){return super.get(K({map:this.map,initKey:this.initKey},t))}has(t){return super.has(K({map:this.map,initKey:this.initKey},t))}set(t,e){var n,r;return super.set(([{map:t,initKey:n},r]=[{map:this.map,initKey:this.initKey},t],n=n(r),t.has(n)?t.get(n):(t.set(n,r),r)),e)}delete(t){var e,n;return super.delete(([{map:t,initKey:e},n]=[{map:this.map,initKey:this.initKey},t],e=e(n),t.has(e)&&(n=t.get(e),t.delete(e)),n))}}class tt{constructor(t){this.options=f({},this.getDefaultOptions()),this.update(t)}getOptions(){return this.options}update(t={}){this.options=f({},this.options,t),this.rescale(t)}rescale(t){}}let te=Symbol("defaultUnknown");function tn(t,e,n){for(let r=0;r""+t:"object"==typeof t?t=>JSON.stringify(t):t=>t}class ta extends tt{getDefaultOptions(){return{domain:[],range:[],unknown:te}}constructor(t){super(t)}map(t){return 0===this.domainIndexMap.size&&tn(this.domainIndexMap,this.getDomain(),this.domainKey),tr({value:this.domainKey(t),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(t){return 0===this.rangeIndexMap.size&&tn(this.rangeIndexMap,this.getRange(),this.rangeKey),tr({value:this.rangeKey(t),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(t){var[e]=this.options.domain,[n]=this.options.range;this.domainKey=ti(e),this.rangeKey=ti(n),this.rangeIndexMap?(t&&!t.range||this.rangeIndexMap.clear(),(!t||t.domain||t.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)):(this.rangeIndexMap=new Map,this.domainIndexMap=new Map)}clone(){return new ta(this.options)}getRange(){return this.options.range}getDomain(){var t,e;return this.sortedDomain||({domain:t,compare:e}=this.options,this.sortedDomain=e?[...t].sort(e):t),this.sortedDomain}}class to extends ta{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:te,flex:[]}}constructor(t){super(t)}clone(){return new to(this.options)}getStep(t){return void 0===this.valueStep?1:"number"==typeof this.valueStep?this.valueStep:void 0===t?Array.from(this.valueStep.values())[0]:this.valueStep.get(t)}getBandWidth(t){return void 0===this.valueBandWidth?1:"number"==typeof this.valueBandWidth?this.valueBandWidth:void 0===t?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(t)}getRange(){return this.adjustedRange}getPaddingInner(){var{padding:t,paddingInner:e}=this.options;return 0t/e)}(c),p=f/h.reduce((t,e)=>t+e);var c=new J(e.map((t,e)=>(e=h[e]*p,[t,o?Math.floor(e):e]))),g=new J(e.map((t,e)=>(e=h[e]*p+d,[t,o?Math.floor(e):e]))),f=Array.from(g.values()).reduce((t,e)=>t+e),t=t+(u-(f-f/s*i))*l;let m=o?Math.round(t):t;var y=Array(s);for(let t=0;ts+e*o),{valueStep:o,valueBandWidth:l,adjustedRange:t}}({align:t,range:n,round:r,flex:i,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:e});this.valueStep=r,this.valueBandWidth=n,this.adjustedRange=t}}let tl=(t,e,n)=>{let r,i,a=t,o=e;if(a===o&&0{let r;var[t,i]=t,[e,a]=e;return _(t{let r=Math.min(t.length,e.length)-1,i=Array(r),a=Array(r);var o=t[0]>t[r],l=o?[...t].reverse():t,s=o?[...e].reverse():e;for(let t=0;t{var n=function(t,e,n,r,i){let a=1,o=r||t.length;for(var l=t=>t;ae?o=s:a=s+1}return a}(t,e,0,r)-1,o=i[n];return _(a[n],o)(e)}},tu=(t,e,n,r)=>(2Math.min(Math.max(r,t),i)}return d}composeOutput(t,e){var{domain:n,range:r,round:i,interpolate:a}=this.options,n=tu(n.map(t),r,a,i);this.output=_(n,e,t)}composeInput(t,e,n){var{domain:r,range:i}=this.options,i=tu(i,r.map(t),V);this.input=_(e,n,i)}}class td extends tf{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:U,tickMethod:tl,tickCount:5}}chooseTransforms(){return[d,d]}clone(){return new td(this.options)}}class th extends to{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:te,paddingInner:1,paddingOuter:0}}constructor(t){super(t)}getPaddingInner(){return 1}clone(){return new th(this.options)}update(t){super.update(t)}getPaddingOuter(){return this.options.padding}}function tp(t,e){for(var n=[],r=0,i=t.length;r{var[t,e]=t;return _(V(0,1),k(t,e))})],ty);let tv=a=class extends td{getDefaultOptions(){return{domain:[0,.5,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:d,tickMethod:tl,tickCount:5}}constructor(t){super(t)}clone(){return new a(this.options)}};function tb(t,e,r,i,a){var o=new td({range:[e,e+i]}),l=new td({range:[r,r+a]});return{transform:function(t){var t=n(t,2),e=t[0],t=t[1];return[o.map(e),l.map(t)]},untransform:function(t){var t=n(t,2),e=t[0],t=t[1];return[o.invert(e),l.invert(t)]}}}function tx(t,e,r,i,a){return(0,n(t,1)[0])(e,r,i,a)}function tO(t,e,r,i,a){return n(t,1)[0]}function tw(t,e,r,i,a){var o=(t=n(t,4))[0],l=t[1],s=t[2],t=t[3],c=new td({range:[s,t]}),u=new td({range:[o,l]}),f=1<(s=a/i)?1:s,d=1{let[e,n,r]=t,i=_(V(0,.5),k(e,n)),a=_(V(.5,1),k(n,r));return t=>(e>r?tt-e);let r=[];for(let n=1;nMath.abs(t)?t:parseFloat(t.toFixed(14))}let l=[1,5,2,2.5,4,3],s=100*Number.EPSILON,c=(t,e,n=5,i=!0,c=l,u=[.25,.2,.5,.05])=>{let f=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||"number"!=typeof t||"number"!=typeof e||!f)return[];if(e-t<1e-15||1===f)return[t];let d={score:-2,lmin:0,lmax:0,lstep:0},h=1;for(;h<1/0;){for(let n=0;n=f?2-(p-1)/(f-1):1;if(u[0]*l+u[1]+u[2]*n+u[3]r?1-((n-r)/2)**2/(.1*r)**2:1}(t,e,p*(g-1));if(u[0]*l+u[1]*m+u[2]*n+u[3]=0&&(f=1),1-u/(c-1)-n+f}(o,c,h,m,y,p),x=1-.5*((e-y)**2+(t-m)**2)/(.1*(e-t))**2,O=function(t,e,n,r,i,a){let o=(t-1)/(a-i),l=(e-1)/(Math.max(a,r)-Math.min(n,i));return 2-Math.max(o/l,l/o)}(g,f,t,e,m,y),w=u[0]*b+u[1]*x+u[2]*O+1*u[3];w>d.score&&(!i||m<=t&&y>=e)&&(d.lmin=m,d.lmax=y,d.lstep=p,d.score=w)}}y+=1}g+=1}}h+=1}let g=o(d.lmax),m=o(d.lmin),y=o(d.lstep),v=Math.floor(Math.round(1e12*((g-m)/y))/1e12)+1,b=Array(v);b[0]=o(m);for(let t=1;t0?g[O]+" "+w:l(w,/&\f/g,g[O])).trim())&&(f[x++]=_);return b(t,e,n,0===a?E:c,f,d,h)}function Z(t,e,n,r){return b(t,e,n,P,u(t,0,r),u(t,r+1,-1),r)}var I=function(t,e,n){for(var r=0,i=0;r=i,i=w(),38===r&&12===i&&(e[n]=1),!_(i);)O();return u(v,t,m)},N=function(t,e){var n=-1,r=44;do switch(_(r)){case 0:38===r&&12===w()&&(e[n]=1),t[n]+=I(m-1,e,n);break;case 2:t[n]+=C(r);break;case 4:if(44===r){t[++n]=58===w()?"&\f":"",e[n]=t[n].length;break}default:t[n]+=a(r)}while(r=O());return t},D=function(t,e){var n;return n=N(k(t),e),v="",n},z=new WeakMap,F=function(t){if("rule"===t.type&&t.parent&&!(t.length<1)){for(var e=t.value,n=t.parent,r=t.column===n.column&&t.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==t.props.length||58===e.charCodeAt(0)||z.get(n))&&!r){z.set(t,!0);for(var i=[],a=D(e,i),o=n.props,l=0,s=0;l-1&&!t.return)switch(t.type){case P:t.return=function t(e,n){switch(45^c(e,0)?(((n<<2^c(e,0))<<2^c(e,1))<<2^c(e,2))<<2^c(e,3):0){case 5103:return S+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return S+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return S+e+M+e+j+e+e;case 6828:case 4268:return S+e+j+e+e;case 6165:return S+e+j+"flex-"+e+e;case 5187:return S+e+l(e,/(\w+).+(:[^]+)/,S+"box-$1$2"+j+"flex-$1$2")+e;case 5443:return S+e+j+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return S+e+j+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return S+e+j+l(e,"shrink","negative")+e;case 5292:return S+e+j+l(e,"basis","preferred-size")+e;case 6060:return S+"box-"+l(e,"-grow","")+S+e+j+l(e,"grow","positive")+e;case 4554:return S+l(e,/([^-])(transform)/g,"$1"+S+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,S+"$1"),/(image-set)/,S+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,S+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,S+"box-pack:$3"+j+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+S+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,S+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(f(e)-1-n>6)switch(c(e,n+1)){case 109:if(45!==c(e,n+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+S+"$2-$3$1"+M+(108==c(e,n+3)?"$3":"$2-$3"))+e;case 115:return~s(e,"stretch")?t(l(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(115!==c(e,n+1))break;case 6444:switch(c(e,f(e)-3-(~s(e,"!important")&&10))){case 107:return l(e,":",":"+S)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+S+(45===c(e,14)?"inline-":"")+"box$3$1"+S+"$2$3$1"+j+"$2box$3")+e}break;case 5936:switch(c(e,n+11)){case 114:return S+e+j+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return S+e+j+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return S+e+j+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return S+e+j+e+e}return e}(t.value,t.length);break;case R:return T([x(t,{value:l(t.value,"@","@"+S)})],r);case E:if(t.length)return t.props.map(function(e){var n;switch(n=e,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return T([x(t,{props:[l(e,/:(read-\w+)/,":"+M+"$1")]})],r);case"::placeholder":return T([x(t,{props:[l(e,/:(plac\w+)/,":"+S+"input-$1")]}),x(t,{props:[l(e,/:(plac\w+)/,":"+M+"$1")]}),x(t,{props:[l(e,/:(plac\w+)/,j+"input-$1")]})],r)}return""}).join("")}}],H=function(t){var e,n,i,o,g,x=t.key;if("css"===x){var j=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(j,function(t){-1!==t.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(t),t.setAttribute("data-s",""))})}var M=t.stylisPlugins||W,S={},E=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+x+' "]'),function(t){for(var e=t.getAttribute("data-emotion").split(" "),n=1;n2||_(y)>3?"":" "}(L);break;case 92:G+=function(t,e){for(var n;--e&&O()&&!(y<48)&&!(y>102)&&(!(y>57)||!(y<65))&&(!(y>70)||!(y<97)););return n=m+(e<6&&32==w()&&32==O()),u(v,t,n)}(m-1,7);continue;case 47:switch(w()){case 42:case 47:d(b(M=function(t,e){for(;O();)if(t+y===57)break;else if(t+y===84&&47===w())break;return"/*"+u(v,e,m-1)+"*"+a(47===t?t:O())}(O(),m),n,r,A,a(y),u(M,2,-2),0),j);break;default:G+="/"}break;case 123*I:k[S++]=f(G)*D;case 125*I:case 59:case 0:switch(z){case 0:case 125:N=0;case 59+E:-1==D&&(G=l(G,/\f/g,"")),T>0&&f(G)-P&&d(T>32?Z(G+";",i,r,P-1):Z(l(G," ","")+";",i,r,P-2),j);break;case 59:G+=";";default:if(d(H=B(G,n,r,S,E,o,k,F,$=[],W=[],P),g),123===z){if(0===E)t(G,n,H,H,$,g,P,k,W);else switch(99===R&&110===c(G,3)?100:R){case 100:case 108:case 109:case 115:t(e,H,H,i&&d(B(e,H,H,0,0,o,k,F,o,$=[],P),W),o,W,P,k,i?$:W);break;default:t(G,H,H,H,[""],W,0,k,W)}}}S=E=T=0,I=D=1,F=G="",P=x;break;case 58:P=1+f(G),T=L;default:if(I<1){if(123==z)--I;else if(125==z&&0==I++&&125==(y=m>0?c(v,--m):0,p--,10===y&&(p=1,h--),y))continue}switch(G+=a(z),z*I){case 38:D=E>0?1:(G+="\f",-1);break;case 44:k[S++]=(f(G)-1)*D,D=1;break;case 64:45===w()&&(G+=C(O())),R=w(),E=P=f(F=G+=function(t){for(;!_(w());)O();return u(v,t,m)}(m)),z++;break;case 45:45===L&&2==f(G)&&(I=0)}}return g}("",null,null,null,[""],e=k(e=t),0,[0],e),v="",n),P)},I={key:x,sheet:new r({key:x,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:S,registered:{},insert:function(t,e,n,r){g=n,R(t?t+"{"+e.styles+"}":e.styles),r&&(I.inserted[e.name]=!0)}};return I.sheet.hydrate(E),I}},45042:function(t,e,n){"use strict";function r(t){var e=Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}n.d(e,{Z:function(){return r}})},6498:function(t,e,n){"use strict";n.d(e,{C:function(){return l},T:function(){return c},i:function(){return a},w:function(){return s}});var r=n(67294),i=n(8417);n(26346),n(27278);var a=!0,o=r.createContext("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null),l=o.Provider,s=function(t){return(0,r.forwardRef)(function(e,n){return t(e,(0,r.useContext)(o),n)})};a||(s=function(t){return function(e){var n=(0,r.useContext)(o);return null===n?(n=(0,i.Z)({key:"css"}),r.createElement(o.Provider,{value:n},t(e,n))):t(e,n)}});var c=r.createContext({})},70917:function(t,e,n){"use strict";n.d(e,{F4:function(){return u},iv:function(){return c},xB:function(){return s}});var r=n(6498),i=n(67294),a=n(70444),o=n(27278),l=n(26346);n(8417),n(8679);var s=(0,r.w)(function(t,e){var n=t.styles,s=(0,l.O)([n],void 0,i.useContext(r.T));if(!r.i){for(var c,u=s.name,f=s.styles,d=s.next;void 0!==d;)u+=" "+d.name,f+=d.styles,d=d.next;var h=!0===e.compat,p=e.insert("",{name:u,styles:f},e.sheet,h);return h?null:i.createElement("style",((c={})["data-emotion"]=e.key+"-global "+u,c.dangerouslySetInnerHTML={__html:p},c.nonce=e.sheet.nonce,c))}var g=i.useRef();return(0,o.j)(function(){var t=e.key+"-global",n=new e.sheet.constructor({key:t,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+t+" "+s.name+'"]');return e.sheet.tags.length&&(n.before=e.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",t),n.hydrate([i])),g.current=[n,r],function(){n.flush()}},[e]),(0,o.j)(function(){var t=g.current,n=t[0];if(t[1]){t[1]=!1;return}if(void 0!==s.next&&(0,a.My)(e,s.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}e.insert("",s,n,!1)},[e,s.name]),null});function c(){for(var t=arguments.length,e=Array(t),n=0;n=4;++r,i-=4)e=(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))*1540483477+((e>>>16)*59797<<16),e^=e>>>24,n=(65535&e)*1540483477+((e>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(i){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n^=255&t.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(o)+c,styles:o,next:r}}},94371:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},27278:function(t,e,n){"use strict";n.d(e,{L:function(){return o},j:function(){return l}});var r,i=n(67294),a=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,o=a||function(t){return t()},l=a||i.useLayoutEffect},70444:function(t,e,n){"use strict";function r(t,e,n){var r="";return n.split(" ").forEach(function(n){void 0!==t[n]?e.push(t[n]+";"):r+=n+" "}),r}n.d(e,{My:function(){return a},fp:function(){return r},hC:function(){return i}});var i=function(t,e,n){var r=t.key+"-"+e.name;!1===n&&void 0===t.registered[r]&&(t.registered[r]=e.styles)},a=function(t,e,n){i(t,e,n);var r=t.key+"-"+e.name;if(void 0===t.inserted[e.name]){var a=e;do t.insert(e===a?"."+r:"",a,t.sheet,!0),a=a.next;while(void 0!==a)}}},10238:function(t,e,n){"use strict";n.d(e,{$:function(){return a}});var r=n(87462),i=n(28442);function a(t,e,n){return void 0===t||(0,i.X)(t)?e:(0,r.Z)({},e,{ownerState:(0,r.Z)({},e.ownerState,n)})}},30437:function(t,e,n){"use strict";function r(t,e=[]){if(void 0===t)return{};let n={};return Object.keys(t).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof t[n]&&!e.includes(n)).forEach(e=>{n[e]=t[e]}),n}n.d(e,{_:function(){return r}})},28442:function(t,e,n){"use strict";function r(t){return"string"==typeof t}n.d(e,{X:function(){return r}})},24407:function(t,e,n){"use strict";n.d(e,{L:function(){return l}});var r=n(87462),i=n(90512),a=n(30437);function o(t){if(void 0===t)return{};let e={};return Object.keys(t).filter(e=>!(e.match(/^on[A-Z]/)&&"function"==typeof t[e])).forEach(n=>{e[n]=t[n]}),e}function l(t){let{getSlotProps:e,additionalProps:n,externalSlotProps:l,externalForwardedProps:s,className:c}=t;if(!e){let t=(0,i.Z)(null==s?void 0:s.className,null==l?void 0:l.className,c,null==n?void 0:n.className),e=(0,r.Z)({},null==n?void 0:n.style,null==s?void 0:s.style,null==l?void 0:l.style),a=(0,r.Z)({},n,s,l);return t.length>0&&(a.className=t),Object.keys(e).length>0&&(a.style=e),{props:a,internalRef:void 0}}let u=(0,a._)((0,r.Z)({},s,l)),f=o(l),d=o(s),h=e(u),p=(0,i.Z)(null==h?void 0:h.className,null==n?void 0:n.className,c,null==s?void 0:s.className,null==l?void 0:l.className),g=(0,r.Z)({},null==h?void 0:h.style,null==n?void 0:n.style,null==s?void 0:s.style,null==l?void 0:l.style),m=(0,r.Z)({},h,n,d,f);return p.length>0&&(m.className=p),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:h.ref}}},71276:function(t,e,n){"use strict";function r(t,e,n){return"function"==typeof t?t(e,n):t}n.d(e,{x:function(){return r}})},41118:function(t,e,n){"use strict";n.d(e,{Z:function(){return w}});var r=n(63366),i=n(87462),a=n(67294),o=n(90512),l=n(58510),s=n(62908),c=n(16485),u=n(20407),f=n(74312),d=n(2226),h=n(26821);function p(t){return(0,h.d6)("MuiCard",t)}(0,h.sI)("MuiCard",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","horizontal","vertical"]);var g=n(58859),m=n(30220),y=n(85893);let v=["className","color","component","invertedColors","size","variant","children","orientation","slots","slotProps"],b=t=>{let{size:e,variant:n,color:r,orientation:i}=t,a={root:["root",i,n&&`variant${(0,s.Z)(n)}`,r&&`color${(0,s.Z)(r)}`,e&&`size${(0,s.Z)(e)}`]};return(0,l.Z)(a,p,{})},x=(0,f.Z)("div",{name:"JoyCard",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t,ownerState:e})=>{var n,r;let{p:a,padding:o,borderRadius:l}=(0,g.V)({theme:t,ownerState:e},["p","padding","borderRadius"]);return[(0,i.Z)({"--Icon-color":"neutral"!==e.color||"solid"===e.variant?"currentColor":t.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"===e.size&&{"--Card-radius":t.vars.radius.sm,"--Card-padding":"0.625rem",gap:"0.5rem"},"md"===e.size&&{"--Card-radius":t.vars.radius.md,"--Card-padding":"1rem",gap:"0.75rem 1rem"},"lg"===e.size&&{"--Card-radius":t.vars.radius.lg,"--Card-padding":"1.5rem",gap:"1rem 1.5rem"},{padding:"var(--Card-padding)",borderRadius:"var(--Card-radius)",backgroundColor:t.vars.palette.background.surface,position:"relative",display:"flex",flexDirection:"horizontal"===e.orientation?"row":"column"},t.typography[`body-${e.size}`],null==(n=t.variants[e.variant])?void 0:n[e.color]),"context"!==e.color&&e.invertedColors&&(null==(r=t.colorInversion[e.variant])?void 0:r[e.color]),void 0!==a&&{"--Card-padding":a},void 0!==o&&{"--Card-padding":o},void 0!==l&&{"--Card-radius":l}]}),O=a.forwardRef(function(t,e){let n=(0,u.Z)({props:t,name:"JoyCard"}),{className:l,color:s="neutral",component:f="div",invertedColors:h=!1,size:p="md",variant:g="outlined",children:O,orientation:w="vertical",slots:_={},slotProps:k={}}=n,C=(0,r.Z)(n,v),{getColor:j}=(0,d.VT)(g),M=j(t.color,s),S=(0,i.Z)({},n,{color:M,component:f,orientation:w,size:p,variant:g}),A=b(S),E=(0,i.Z)({},C,{component:f,slots:_,slotProps:k}),[P,R]=(0,m.Z)("root",{ref:e,className:(0,o.Z)(A.root,l),elementType:x,externalForwardedProps:E,ownerState:S}),T=(0,y.jsx)(P,(0,i.Z)({},R,{children:a.Children.map(O,(t,e)=>{if(!a.isValidElement(t))return t;let n={};if((0,c.Z)(t,["Divider"])){n.inset="inset"in t.props?t.props.inset:"context";let e="vertical"===w?"horizontal":"vertical";n.orientation="orientation"in t.props?t.props.orientation:e}return(0,c.Z)(t,["CardOverflow"])&&("horizontal"===w&&(n["data-parent"]="Card-horizontal"),"vertical"===w&&(n["data-parent"]="Card-vertical")),0===e&&(n["data-first-child"]=""),e===a.Children.count(O)-1&&(n["data-last-child"]=""),a.cloneElement(t,n)})}));return h?(0,y.jsx)(d.do,{variant:g,children:T}):T});var w=O},30208:function(t,e,n){"use strict";n.d(e,{Z:function(){return b}});var r=n(87462),i=n(63366),a=n(67294),o=n(90512),l=n(58510),s=n(20407),c=n(74312),u=n(26821);function f(t){return(0,u.d6)("MuiCardContent",t)}(0,u.sI)("MuiCardContent",["root"]);let d=(0,u.sI)("MuiCardOverflow",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var h=n(30220),p=n(85893);let g=["className","component","children","orientation","slots","slotProps"],m=()=>(0,l.Z)({root:["root"]},f,{}),y=(0,c.Z)("div",{name:"JoyCardContent",slot:"Root",overridesResolver:(t,e)=>e.root})(({ownerState:t})=>({display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column",flex:9999,zIndex:1,columnGap:"var(--Card-padding)",rowGap:"max(2px, calc(0.1875 * var(--Card-padding)))",padding:"var(--unstable_padding)",[`.${d.root} > &`]:{"--unstable_padding":"calc(var(--Card-padding) * 0.75) 0px"}})),v=a.forwardRef(function(t,e){let n=(0,s.Z)({props:t,name:"JoyCardContent"}),{className:a,component:l="div",children:c,orientation:u="vertical",slots:f={},slotProps:d={}}=n,v=(0,i.Z)(n,g),b=(0,r.Z)({},v,{component:l,slots:f,slotProps:d}),x=(0,r.Z)({},n,{component:l,orientation:u}),O=m(),[w,_]=(0,h.Z)("root",{ref:e,className:(0,o.Z)(O.root,a),elementType:y,externalForwardedProps:b,ownerState:x});return(0,p.jsx)(w,(0,r.Z)({},_,{children:c}))});var b=v},61685:function(t,e,n){"use strict";n.d(e,{Z:function(){return w}});var r=n(63366),i=n(87462),a=n(67294),o=n(90512),l=n(62908),s=n(58510),c=n(20407),u=n(2226),f=n(74312),d=n(26821);function h(t){return(0,d.d6)("MuiTable",t)}(0,d.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=n(40911),g=n(30220),m=n(85893);let y=["className","component","children","borderAxis","hoverRow","noWrap","size","variant","color","stripe","stickyHeader","stickyFooter","slots","slotProps"],v=t=>{let{size:e,variant:n,color:r,borderAxis:i,stickyHeader:a,stickyFooter:o,noWrap:c,hoverRow:u}=t,f={root:["root",a&&"stickyHeader",o&&"stickyFooter",c&&"noWrap",u&&"hoverRow",i&&`borderAxis${(0,l.Z)(i)}`,n&&`variant${(0,l.Z)(n)}`,r&&`color${(0,l.Z)(r)}`,e&&`size${(0,l.Z)(e)}`]};return(0,s.Z)(f,h,{})},b={getColumnExceptFirst:()=>"& tr > *:not(:first-of-type), & tr > th + td, & tr > td + th",getCell:()=>"& th, & td",getHeadCell:()=>"& th",getHeaderCell:()=>"& thead th",getHeaderCellOfRow:t=>`& thead tr:nth-of-type(${t}) 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:t=>"number"==typeof t&&t<0?`& tbody tr:nth-last-of-type(${Math.abs(t)}) td, & tbody tr:nth-last-of-type(${Math.abs(t)}) th[scope="row"]`:`& tbody tr:nth-of-type(${t}) td, & tbody tr:nth-of-type(${t}) th[scope="row"]`,getBodyRow:t=>void 0===t?"& tbody tr":`& tbody tr:nth-of-type(${t})`,getFooterCell:()=>"& tfoot th, & tfoot td",getFooterFirstRowCell:()=>"& tfoot tr:not(:last-of-type) th, & tfoot tr:not(:last-of-type) td"},x=(0,f.Z)("table",{name:"JoyTable",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t,ownerState:e})=>{var n,r,a,o,l,s,c;let u=null==(n=t.variants[e.variant])?void 0:n[e.color];return[(0,i.Z)({"--Table-headerUnderlineThickness":"2px","--TableCell-borderColor":null!=(r=null==u?void 0:u.borderColor)?r:t.vars.palette.divider,"--TableCell-headBackground":`var(--Sheet-background, ${t.vars.palette.background.surface})`},"sm"===e.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 32px)","--TableCell-paddingX":"0.25rem","--TableCell-paddingY":"0.25rem"},"md"===e.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 40px)","--TableCell-paddingX":"0.5rem","--TableCell-paddingY":"0.375rem"},"lg"===e.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))"},t.typography[`body-${({sm:"xs",md:"sm",lg:"md"})[e.size]}`],null==(a=t.variants[e.variant])?void 0:a[e.color],{"& caption":{color:t.vars.palette.text.tertiary,padding:"calc(2 * var(--TableCell-paddingY)) var(--TableCell-paddingX)"},[b.getDataCell()]:(0,i.Z)({padding:"var(--TableCell-paddingY) var(--TableCell-paddingX)",height:"var(--unstable_TableCell-height)",borderColor:"var(--TableCell-borderColor)",backgroundColor:"var(--TableCell-dataBackground)"},e.noWrap&&{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}),[b.getHeadCell()]:{textAlign:"left",padding:"var(--TableCell-paddingY) var(--TableCell-paddingX)",backgroundColor:"var(--TableCell-headBackground)",height:"var(--unstable_TableCell-height)",fontWeight:t.vars.fontWeight.lg,borderColor:"var(--TableCell-borderColor)",color:t.vars.palette.text.secondary,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},[b.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, ${t.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==(o=e.borderAxis)?void 0:o.startsWith("x"))||(null==(l=e.borderAxis)?void 0:l.startsWith("both")))&&{[b.getHeaderCell()]:{borderBottomWidth:1,borderBottomStyle:"solid"},[b.getBottomHeaderCell()]:{borderBottomWidth:"var(--Table-headerUnderlineThickness)",borderBottomStyle:"solid"},[b.getBodyCellExceptLastRow()]:{borderBottomWidth:1,borderBottomStyle:"solid"},[b.getFooterCell()]:{borderTopWidth:1,borderTopStyle:"solid"}},((null==(s=e.borderAxis)?void 0:s.startsWith("y"))||(null==(c=e.borderAxis)?void 0:c.startsWith("both")))&&{[`${b.getColumnExceptFirst()}, ${b.getHeaderNestedFirstColumn()}`]:{borderLeftWidth:1,borderLeftStyle:"solid"}},("x"===e.borderAxis||"both"===e.borderAxis)&&{[b.getHeaderCellOfRow(1)]:{borderTopWidth:1,borderTopStyle:"solid"},[b.getBodyCellOfRow(-1)]:{borderBottomWidth:1,borderBottomStyle:"solid"},[b.getFooterCell()]:{borderBottomWidth:1,borderBottomStyle:"solid"}},("y"===e.borderAxis||"both"===e.borderAxis)&&{"& tr > *:first-of-type":{borderLeftWidth:1,borderLeftStyle:"solid"},"& tr > *:last-of-type:not(:first-of-type)":{borderRightWidth:1,borderRightStyle:"solid"}},e.stripe&&{[b.getBodyRow(e.stripe)]:{background:`var(--TableRow-stripeBackground, ${t.vars.palette.background.level2})`,color:t.vars.palette.text.primary}},e.hoverRow&&{[b.getBodyRow()]:{"&:hover":{background:`var(--TableRow-hoverBackground, ${t.vars.palette.background.level3})`}}},e.stickyHeader&&{[b.getHeaderCell()]:{position:"sticky",top:0,zIndex:t.vars.zIndex.table},[b.getHeaderCellOfRow(2)]:{top:"var(--unstable_TableCell-height)"}},e.stickyFooter&&{[b.getFooterCell()]:{position:"sticky",bottom:0,zIndex:t.vars.zIndex.table,color:t.vars.palette.text.secondary,fontWeight:t.vars.fontWeight.lg},[b.getFooterFirstRowCell()]:{bottom:"var(--unstable_TableCell-height)"}}]}),O=a.forwardRef(function(t,e){let n=(0,c.Z)({props:t,name:"JoyTable"}),{className:a,component:l,children:s,borderAxis:f="xBetween",hoverRow:d=!1,noWrap:h=!1,size:b="md",variant:O="plain",color:w="neutral",stripe:_,stickyHeader:k=!1,stickyFooter:C=!1,slots:j={},slotProps:M={}}=n,S=(0,r.Z)(n,y),{getColor:A}=(0,u.VT)(O),E=A(t.color,w),P=(0,i.Z)({},n,{borderAxis:f,hoverRow:d,noWrap:h,component:l,size:b,color:E,variant:O,stripe:_,stickyHeader:k,stickyFooter:C}),R=v(P),T=(0,i.Z)({},S,{component:l,slots:j,slotProps:M}),[L,B]=(0,g.Z)("root",{ref:e,className:(0,o.Z)(R.root,a),elementType:x,externalForwardedProps:T,ownerState:P});return(0,m.jsx)(p.eu.Provider,{value:!0,children:(0,m.jsx)(L,(0,i.Z)({},B,{children:s}))})});var w=O},40911:function(t,e,n){"use strict";n.d(e,{eu:function(){return x},ZP:function(){return M}});var r=n(63366),i=n(87462),a=n(67294),o=n(62908),l=n(16485),s=n(39707),c=n(58510),u=n(74312),f=n(20407),d=n(2226),h=n(30220),p=n(26821);function g(t){return(0,p.d6)("MuiTypography",t)}(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=n(85893);let y=["color","textColor"],v=["component","gutterBottom","noWrap","level","levelMapping","children","endDecorator","startDecorator","variant","slots","slotProps"],b=a.createContext(!1),x=a.createContext(!1),O=t=>{let{gutterBottom:e,noWrap:n,level:r,color:i,variant:a}=t,l={root:["root",r,e&&"gutterBottom",n&&"noWrap",i&&`color${(0,o.Z)(i)}`,a&&`variant${(0,o.Z)(a)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,c.Z)(l,g,{})},w=(0,u.Z)("span",{name:"JoyTypography",slot:"StartDecorator",overridesResolver:(t,e)=>e.startDecorator})({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),_=(0,u.Z)("span",{name:"JoyTypography",slot:"endDecorator",overridesResolver:(t,e)=>e.endDecorator})({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),k=(0,u.Z)("span",{name:"JoyTypography",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t,ownerState:e})=>{var n,r,a,o,l;let s="inherit"!==e.level?null==(n=t.typography[e.level])?void 0:n.lineHeight:"1";return(0,i.Z)({"--Icon-fontSize":`calc(1em * ${s})`},e.color&&{"--Icon-color":"currentColor"},{margin:"var(--Typography-margin, 0px)"},e.nesting?{display:"inline"}:(0,i.Z)({display:"block"},e.unstable_hasSkeleton&&{position:"relative"}),(e.startDecorator||e.endDecorator)&&(0,i.Z)({display:"flex",alignItems:"center"},e.nesting&&(0,i.Z)({display:"inline-flex"},e.startDecorator&&{verticalAlign:"bottom"})),e.level&&"inherit"!==e.level&&t.typography[e.level],{fontSize:`var(--Typography-fontSize, ${e.level&&"inherit"!==e.level&&null!=(r=null==(a=t.typography[e.level])?void 0:a.fontSize)?r:"inherit"})`},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.color&&"context"!==e.color&&{color:`rgba(${null==(o=t.vars.palette[e.color])?void 0:o.mainChannel} / 1)`},e.variant&&(0,i.Z)({borderRadius:t.vars.radius.xs,paddingBlock:"min(0.1em, 4px)",paddingInline:"0.25em"},!e.nesting&&{marginInline:"-0.25em"},null==(l=t.variants[e.variant])?void 0:l[e.color]))}),C={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"},j=a.forwardRef(function(t,e){let n=(0,f.Z)({props:t,name:"JoyTypography"}),{color:o,textColor:c}=n,u=(0,r.Z)(n,y),p=a.useContext(b),g=a.useContext(x),j=(0,s.Z)((0,i.Z)({},u,{color:c})),{component:M,gutterBottom:S=!1,noWrap:A=!1,level:E="body-md",levelMapping:P=C,children:R,endDecorator:T,startDecorator:L,variant:B,slots:Z={},slotProps:I={}}=j,N=(0,r.Z)(j,v),{getColor:D}=(0,d.VT)(B),z=D(t.color,B?null!=o?o:"neutral":o),F=p||g?t.level||"inherit":E,$=(0,l.Z)(R,["Skeleton"]),W=M||(p?"span":P[F]||C[F]||"span"),H=(0,i.Z)({},j,{level:F,component:W,color:z,gutterBottom:S,noWrap:A,nesting:p,variant:B,unstable_hasSkeleton:$}),G=O(H),q=(0,i.Z)({},N,{component:W,slots:Z,slotProps:I}),[Y,V]=(0,h.Z)("root",{ref:e,className:G.root,elementType:k,externalForwardedProps:q,ownerState:H}),[U,Q]=(0,h.Z)("startDecorator",{className:G.startDecorator,elementType:w,externalForwardedProps:q,ownerState:H}),[K,X]=(0,h.Z)("endDecorator",{className:G.endDecorator,elementType:_,externalForwardedProps:q,ownerState:H});return(0,m.jsx)(b.Provider,{value:!0,children:(0,m.jsxs)(Y,(0,i.Z)({},V,{children:[L&&(0,m.jsx)(U,(0,i.Z)({},Q,{children:L})),$?a.cloneElement(R,{variant:R.props.variant||"inline"}):R,T&&(0,m.jsx)(K,(0,i.Z)({},X,{children:T}))]}))})});j.muiName="Typography";var M=j},26821:function(t,e,n){"use strict";n.d(e,{d6:function(){return a},sI:function(){return o}});var r=n(8027),i=n(1977);let a=(t,e)=>(0,r.ZP)(t,e,"Mui"),o=(t,e)=>(0,i.Z)(t,e,"Mui")},2226:function(t,e,n){"use strict";n.d(e,{do:function(){return f},ZP:function(){return d},VT:function(){return u}});var r=n(67294),i=n(79718),a=n(67299),o=n(2548),l=n(85893);let s=()=>{let t=(0,i.Z)(a.Z);return t[o.Z]||t},c=r.createContext(void 0),u=t=>{let e=r.useContext(c);return{getColor:(n,r)=>e&&t&&e.includes(t)?n||"context":n||r}};function f({children:t,variant:e}){var n;let r=s();return(0,l.jsx)(c.Provider,{value:e?(null!=(n=r.colorInversionConfig)?n:a.Z.colorInversionConfig)[e]:void 0,children:t})}var d=c},67299:function(t,e,n){"use strict";n.d(e,{Z:function(){return B}});var r=n(87462),i=n(63366),a=n(68027);function o(t=""){return(e,...n)=>`var(--${t?`${t}-`:""}${e}${function e(...n){if(!n.length)return"";let r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${t?`${t}-`:""}${r}${e(...n.slice(1))})`}(...n)})`}var l=n(78758);let s=t=>{let e=function t(e){let n;if(e.type)return e;if("#"===e.charAt(0))return t(function(t){t=t.slice(1);let e=RegExp(`.{1,${t.length>=6?2:1}}`,"g"),n=t.match(e);return n&&1===n[0].length&&(n=n.map(t=>t+t)),n?`rgb${4===n.length?"a":""}(${n.map((t,e)=>e<3?parseInt(t,16):Math.round(parseInt(t,16)/255*1e3)/1e3).join(", ")})`:""}(e));let r=e.indexOf("("),i=e.substring(0,r);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(i))throw Error((0,l.Z)(9,e));let a=e.substring(r+1,e.length-1);if("color"===i){if(n=(a=a.split(" ")).shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw Error((0,l.Z)(10,n))}else a=a.split(",");return{type:i,values:a=a.map(t=>parseFloat(t)),colorSpace:n}}(t);return e.values.slice(0,3).map((t,n)=>-1!==e.type.indexOf("hsl")&&0!==n?`${t}%`:t).join(" ")};var c=n(41512),u=n(98373),f=n(83997);let d=(t,e,n,r=[])=>{let i=t;e.forEach((t,a)=>{a===e.length-1?Array.isArray(i)?i[Number(t)]=n:i&&"object"==typeof i&&(i[t]=n):i&&"object"==typeof i&&(i[t]||(i[t]=r.includes(t)?[]:{}),i=i[t])})},h=(t,e,n)=>{!function t(r,i=[],a=[]){Object.entries(r).forEach(([r,o])=>{n&&(!n||n([...i,r]))||null==o||("object"==typeof o&&Object.keys(o).length>0?t(o,[...i,r],Array.isArray(o)?[...a,r]:a):e([...i,r],o,a))})}(t)},p=(t,e)=>{if("number"==typeof e){if(["lineHeight","fontWeight","opacity","zIndex"].some(e=>t.includes(e)))return e;let n=t[t.length-1];return n.toLowerCase().indexOf("opacity")>=0?e:`${e}px`}return e};function g(t,e){let{prefix:n,shouldSkipGeneratingVar:r}=e||{},i={},a={},o={};return h(t,(t,e,l)=>{if(("string"==typeof e||"number"==typeof e)&&(!r||!r(t,e))){let r=`--${n?`${n}-`:""}${t.join("-")}`;Object.assign(i,{[r]:p(t,e)}),d(a,t,`var(${r})`,l),d(o,t,`var(${r}, ${e})`,l)}},t=>"vars"===t[0]),{css:i,vars:a,varsWithDefaults:o}}let m=["colorSchemes","components","defaultColorScheme"];var y=function(t,e){let{colorSchemes:n={},defaultColorScheme:o="light"}=t,l=(0,i.Z)(t,m),{vars:s,css:c,varsWithDefaults:u}=g(l,e),d=u,h={},{[o]:p}=n,y=(0,i.Z)(n,[o].map(f.Z));if(Object.entries(y||{}).forEach(([t,n])=>{let{vars:r,css:i,varsWithDefaults:o}=g(n,e);d=(0,a.Z)(d,o),h[t]={css:i,vars:r}}),p){let{css:t,vars:n,varsWithDefaults:r}=g(p,e);d=(0,a.Z)(d,r),h[o]={css:t,vars:n}}return{vars:d,generateCssVars:t=>{var n,i;if(!t){let n=(0,r.Z)({},c);return{css:n,vars:s,selector:(null==e||null==(i=e.getSelector)?void 0:i.call(e,t,n))||":root"}}let a=(0,r.Z)({},h[t].css);return{css:a,vars:h[t].vars,selector:(null==e||null==(n=e.getSelector)?void 0:n.call(e,t,a))||":root"}}}},v=n(86523),b=n(44920);let x=(0,r.Z)({},b.Z,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}});var O={grey:{50:"#F5F7FA",100:"#EAEEF6",200:"#DDE7EE",300:"#CDD7E1",400:"#9FA6AD",500:"#636B74",600:"#555E68",700:"#32383E",800:"#23272B",900:"#121416"},blue:{50:"#EDF5FD",100:"#E3EFFB",200:"#C7DFF7",300:"#97C3F0",400:"#4393E4",500:"#0B6BCB",600:"#185EA5",700:"#12467B",800:"#0A2744",900:"#051423"},yellow:{50:"#FEFAF6",100:"#FDF0E1",200:"#FCE1C2",300:"#F3C896",400:"#EA9A3E",500:"#9A5B13",600:"#72430D",700:"#492B08",800:"#2E1B05",900:"#1D1002"},red:{50:"#FEF6F6",100:"#FCE4E4",200:"#F7C5C5",300:"#F09898",400:"#E47474",500:"#C41C1C",600:"#A51818",700:"#7D1212",800:"#430A0A",900:"#240505"},green:{50:"#F6FEF6",100:"#E3FBE3",200:"#C7F7C7",300:"#A1E8A1",400:"#51BC51",500:"#1F7A1F",600:"#136C13",700:"#0A470A",800:"#042F04",900:"#021D02"}};function w(t){var e;return!!t[0].match(/^(typography|variants|breakpoints|colorInversion|colorInversionConfig)$/)||!!t[0].match(/sxConfig$/)||"palette"===t[0]&&!!(null!=(e=t[1])&&e.match(/^(mode)$/))||"focus"===t[0]&&"thickness"!==t[1]}var _=n(26821);let k=t=>t&&"object"==typeof t&&Object.keys(t).some(t=>{var e;return null==(e=t.match)?void 0:e.call(t,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)}),C=(t,e,n)=>{e.includes("Color")&&(t.color=n),e.includes("Bg")&&(t.backgroundColor=n),e.includes("Border")&&(t.borderColor=n)},j=(t,e,n)=>{let r={};return Object.entries(e||{}).forEach(([e,i])=>{if(e.match(RegExp(`${t}(color|bg|border)`,"i"))&&i){let t=n?n(e):i;e.includes("Disabled")&&(r.pointerEvents="none",r.cursor="default",r["--Icon-color"]="currentColor"),e.match(/(Hover|Active|Disabled)/)||(r["--variant-borderWidth"]||(r["--variant-borderWidth"]="0px"),e.includes("Border")&&(r["--variant-borderWidth"]="1px",r.border="var(--variant-borderWidth) solid")),C(r,e,t)}}),r},M=t=>e=>`--${t?`${t}-`:""}${e.replace(/^--/,"")}`,S=(t,e)=>{let n={};if(e){let{getCssVar:i,palette:a}=e;Object.entries(a).forEach(e=>{let[o,l]=e;k(l)&&"object"==typeof l&&(n=(0,r.Z)({},n,{[o]:j(t,l,t=>i(`palette-${o}-${t}`,a[o][t]))}))})}return n.context=j(t,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),n},A=(t,e)=>{let n=o(t.cssVarPrefix),r=M(t.cssVarPrefix),i={},a=e?e=>{var r;let i=e.split("-"),a=i[1],o=i[2];return n(e,null==(r=t.palette)||null==(r=r[a])?void 0:r[o])}:n;return Object.entries(t.palette).forEach(e=>{let[n,o]=e;k(o)&&(i[n]={"--Badge-ringColor":a(`palette-${n}-softBg`),[t.getColorSchemeSelector("dark")]:{[r("--palette-focusVisible")]:a(`palette-${n}-300`),[r("--palette-background-body")]:`rgba(${a(`palette-${n}-mainChannel`)} / 0.1)`,[r("--palette-background-surface")]:`rgba(${a(`palette-${n}-mainChannel`)} / 0.08)`,[r("--palette-background-level1")]:`rgba(${a(`palette-${n}-mainChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${a(`palette-${n}-mainChannel`)} / 0.4)`,[r("--palette-background-level3")]:`rgba(${a(`palette-${n}-mainChannel`)} / 0.6)`,[r("--palette-text-primary")]:a(`palette-${n}-100`),[r("--palette-text-secondary")]:`rgba(${a(`palette-${n}-lightChannel`)} / 0.72)`,[r("--palette-text-tertiary")]:`rgba(${a(`palette-${n}-lightChannel`)} / 0.6)`,[r("--palette-text-icon")]:`rgba(${a(`palette-${n}-lightChannel`)} / 0.6)`,[r("--palette-divider")]:`rgba(${a(`palette-${n}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${a(`palette-${n}-lightChannel`)} / 1)`,"--variant-plainHoverColor":a(`palette-${n}-50`),"--variant-plainHoverBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${a(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${a(`palette-${n}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":a(`palette-${n}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${a(`palette-${n}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":a(`palette-${n}-600`),"--variant-outlinedHoverBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${a(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${a(`palette-${n}-mainChannel`)} / 0.2)`,"--variant-softColor":a(`palette-${n}-200`),"--variant-softBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${a(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":a(`palette-${n}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":a(`palette-${n}-600`),"--variant-solidActiveBg":a(`palette-${n}-600`),"--variant-solidDisabledColor":`rgba(${a(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.12)`},[t.getColorSchemeSelector("light")]:{[r("--palette-focusVisible")]:a(`palette-${n}-500`),[r("--palette-background-body")]:`rgba(${a(`palette-${n}-mainChannel`)} / 0.1)`,[r("--palette-background-surface")]:`rgba(${a(`palette-${n}-mainChannel`)} / 0.08)`,[r("--palette-background-level1")]:`rgba(${a(`palette-${n}-mainChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${a(`palette-${n}-mainChannel`)} / 0.32)`,[r("--palette-background-level3")]:`rgba(${a(`palette-${n}-mainChannel`)} / 0.48)`,[r("--palette-text-primary")]:a(`palette-${n}-700`),[r("--palette-text-secondary")]:`rgba(${a(`palette-${n}-darkChannel`)} / 0.8)`,[r("--palette-text-tertiary")]:`rgba(${a(`palette-${n}-darkChannel`)} / 0.68)`,[r("--palette-text-icon")]:a(`palette-${n}-500`),[r("--palette-divider")]:`rgba(${a(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${a(`palette-${n}-darkChannel`)} / 0.8)`,"--variant-plainHoverColor":`rgba(${a(`palette-${n}-darkChannel`)} / 1)`,"--variant-plainHoverBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${a(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${a(`palette-${n}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${a(`palette-${n}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":a(`palette-${n}-600`),"--variant-outlinedHoverBorder":a(`palette-${n}-300`),"--variant-outlinedHoverBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${a(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${a(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-softColor":a(`palette-${n}-600`),"--variant-softBg":`rgba(${a(`palette-${n}-lightChannel`)} / 0.8)`,"--variant-softHoverColor":a(`palette-${n}-700`),"--variant-softHoverBg":a(`palette-${n}-200`),"--variant-softActiveBg":a(`palette-${n}-300`),"--variant-softDisabledColor":`rgba(${a(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.08)`,"--variant-solidColor":a("palette-common-white"),"--variant-solidBg":a(`palette-${n}-${"neutral"===n?"700":"500"}`),"--variant-solidHoverColor":a("palette-common-white"),"--variant-solidHoverBg":a(`palette-${n}-600`),"--variant-solidActiveBg":a(`palette-${n}-600`),"--variant-solidDisabledColor":`rgba(${a(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.08)`}})}),i},E=(t,e)=>{let n=o(t.cssVarPrefix),r=M(t.cssVarPrefix),i={},a=e?e=>{let r=e.split("-"),i=r[1],a=r[2];return n(e,t.palette[i][a])}:n;return Object.entries(t.palette).forEach(t=>{let[e,n]=t;k(n)&&(i[e]={colorScheme:"dark","--Badge-ringColor":a(`palette-${e}-solidBg`),[r("--palette-focusVisible")]:a(`palette-${e}-200`),[r("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[r("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[r("--palette-background-popup")]:a(`palette-${e}-700`),[r("--palette-background-level1")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.36)`,[r("--palette-background-level3")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.6)`,[r("--palette-text-primary")]:a("palette-common-white"),[r("--palette-text-secondary")]:a(`palette-${e}-200`),[r("--palette-text-tertiary")]:a(`palette-${e}-300`),[r("--palette-text-icon")]:a(`palette-${e}-200`),[r("--palette-divider")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-plainColor":a(`palette-${e}-50`),"--variant-plainHoverColor":"#fff","--variant-plainHoverBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-outlinedColor":a(`palette-${e}-50`),"--variant-outlinedBorder":`rgba(${a(`palette-${e}-lightChannel`)} / 0.5)`,"--variant-outlinedHoverColor":"#fff","--variant-outlinedHoverBorder":a(`palette-${e}-300`),"--variant-outlinedHoverBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":"rgba(255 255 255 / 0.2)","--variant-softColor":a("palette-common-white"),"--variant-softHoverColor":a("palette-common-white"),"--variant-softBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.24)`,"--variant-softHoverBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.36)`,"--variant-softActiveBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.16)`,"--variant-softDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.1)`,"--variant-solidColor":a(`palette-${e}-${"neutral"===e?"600":"500"}`),"--variant-solidBg":a("palette-common-white"),"--variant-solidHoverBg":a("palette-common-white"),"--variant-solidActiveBg":a(`palette-${e}-100`),"--variant-solidDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.1)`})}),i},P=["cssVarPrefix","breakpoints","spacing","components","variants","colorInversion","shouldSkipGeneratingVar"],R=["colorSchemes"],T=(t="joy")=>o(t),L=function(t){var e,n,o,l,f,d,h,p,g,m;let b=t||{},{cssVarPrefix:k="joy",breakpoints:C,spacing:j,components:M,variants:L,colorInversion:B,shouldSkipGeneratingVar:Z=w}=b,I=(0,i.Z)(b,P),N=T(k),D={primary:O.blue,neutral:O.grey,danger:O.red,success:O.green,warning:O.yellow,common:{white:"#FCFCFD",black:"#09090B"}},z=t=>{var e;let n=t.split("-"),r=n[1],i=n[2];return N(t,null==(e=D[r])?void 0:e[i])},F=t=>({plainColor:z(`palette-${t}-500`),plainHoverBg:z(`palette-${t}-50`),plainActiveBg:z(`palette-${t}-100`),plainDisabledColor:z("palette-neutral-400"),outlinedColor:z(`palette-${t}-500`),outlinedBorder:z(`palette-${t}-300`),outlinedHoverBg:z(`palette-${t}-100`),outlinedActiveBg:z(`palette-${t}-200`),outlinedDisabledColor:z("palette-neutral-400"),outlinedDisabledBorder:z("palette-neutral-200"),softColor:z(`palette-${t}-700`),softBg:z(`palette-${t}-100`),softHoverBg:z(`palette-${t}-200`),softActiveColor:z(`palette-${t}-800`),softActiveBg:z(`palette-${t}-300`),softDisabledColor:z("palette-neutral-400"),softDisabledBg:z(`palette-${t}-50`),solidColor:z("palette-common-white"),solidBg:z(`palette-${t}-500`),solidHoverBg:z(`palette-${t}-600`),solidActiveBg:z(`palette-${t}-700`),solidDisabledColor:z("palette-neutral-400"),solidDisabledBg:z(`palette-${t}-100`)}),$=t=>({plainColor:z(`palette-${t}-300`),plainHoverBg:z(`palette-${t}-800`),plainActiveBg:z(`palette-${t}-700`),plainDisabledColor:z("palette-neutral-500"),outlinedColor:z(`palette-${t}-200`),outlinedBorder:z(`palette-${t}-700`),outlinedHoverBg:z(`palette-${t}-800`),outlinedActiveBg:z(`palette-${t}-700`),outlinedDisabledColor:z("palette-neutral-500"),outlinedDisabledBorder:z("palette-neutral-800"),softColor:z(`palette-${t}-200`),softBg:z(`palette-${t}-800`),softHoverBg:z(`palette-${t}-700`),softActiveColor:z(`palette-${t}-100`),softActiveBg:z(`palette-${t}-600`),softDisabledColor:z("palette-neutral-500"),softDisabledBg:z(`palette-${t}-900`),solidColor:z("palette-common-white"),solidBg:z(`palette-${t}-500`),solidHoverBg:z(`palette-${t}-600`),solidActiveBg:z(`palette-${t}-700`),solidDisabledColor:z("palette-neutral-500"),solidDisabledBg:z(`palette-${t}-800`)}),W={palette:{mode:"light",primary:(0,r.Z)({},D.primary,F("primary")),neutral:(0,r.Z)({},D.neutral,F("neutral"),{plainColor:z("palette-neutral-700"),outlinedColor:z("palette-neutral-700")}),danger:(0,r.Z)({},D.danger,F("danger")),success:(0,r.Z)({},D.success,F("success")),warning:(0,r.Z)({},D.warning,F("warning")),common:{white:"#FBFCFD",black:"#0E0E10"},text:{primary:z("palette-neutral-800"),secondary:z("palette-neutral-700"),tertiary:z("palette-neutral-600"),icon:z("palette-neutral-500")},background:{body:z("palette-neutral-50"),surface:z("palette-common-white"),popup:z("palette-common-white"),level1:z("palette-neutral-100"),level2:z("palette-neutral-200"),level3:z("palette-neutral-300"),tooltip:z("palette-neutral-500"),backdrop:`rgba(${N("palette-neutral-darkChannel",s(D.neutral[900]))} / 0.25)`},divider:`rgba(${N("palette-neutral-mainChannel",s(D.neutral[500]))} / 0.3)`,focusVisible:z("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"21 21 21",shadowOpacity:"0.08"},H={palette:{mode:"dark",primary:(0,r.Z)({},D.primary,$("primary")),neutral:(0,r.Z)({},D.neutral,$("neutral")),danger:(0,r.Z)({},D.danger,$("danger")),success:(0,r.Z)({},D.success,$("success")),warning:(0,r.Z)({},D.warning,$("warning")),common:{white:"#FBFCFD",black:"#0E0E10"},text:{primary:z("palette-neutral-100"),secondary:z("palette-neutral-300"),tertiary:z("palette-neutral-400"),icon:z("palette-neutral-400")},background:{body:z("palette-common-black"),surface:z("palette-neutral-900"),popup:z("palette-common-black"),level1:z("palette-neutral-800"),level2:z("palette-neutral-700"),level3:z("palette-neutral-600"),tooltip:z("palette-neutral-600"),backdrop:`rgba(${N("palette-neutral-darkChannel",s(D.neutral[50]))} / 0.25)`},divider:`rgba(${N("palette-neutral-mainChannel",s(D.neutral[500]))} / 0.16)`,focusVisible:z("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0",shadowOpacity:"0.6"},G='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',q=(0,r.Z)({body:`"Inter", ${N(`fontFamily-fallback, ${G}`)}`,display:`"Inter", ${N(`fontFamily-fallback, ${G}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:G},I.fontFamily),Y=(0,r.Z)({sm:300,md:500,lg:600,xl:700},I.fontWeight),V=(0,r.Z)({xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem"},I.fontSize),U=(0,r.Z)({xs:"1.33334",sm:"1.42858",md:"1.5",lg:"1.55556",xl:"1.66667"},I.lineHeight),Q=null!=(e=null==(n=I.colorSchemes)||null==(n=n.light)?void 0:n.shadowRing)?e:W.shadowRing,K=null!=(o=null==(l=I.colorSchemes)||null==(l=l.light)?void 0:l.shadowChannel)?o:W.shadowChannel,X=null!=(f=null==(d=I.colorSchemes)||null==(d=d.light)?void 0:d.shadowOpacity)?f:W.shadowOpacity,J={colorSchemes:{light:W,dark:H},fontSize:V,fontFamily:q,fontWeight:Y,focus:{thickness:"2px",selector:`&.${(0,_.d6)("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${N("focus-thickness",null!=(h=null==(p=I.focus)?void 0:p.thickness)?h:"2px")})`,outline:`${N("focus-thickness",null!=(g=null==(m=I.focus)?void 0:m.thickness)?g:"2px")} solid ${N("palette-focusVisible",D.primary[500])}`}},lineHeight:U,radius:{xs:"2px",sm:"6px",md:"8px",lg:"12px",xl:"16px"},shadow:{xs:`${N("shadowRing",Q)}, 0px 1px 2px 0px rgba(${N("shadowChannel",K)} / ${N("shadowOpacity",X)})`,sm:`${N("shadowRing",Q)}, 0px 1px 2px 0px rgba(${N("shadowChannel",K)} / ${N("shadowOpacity",X)}), 0px 2px 4px 0px rgba(${N("shadowChannel",K)} / ${N("shadowOpacity",X)})`,md:`${N("shadowRing",Q)}, 0px 2px 8px -2px rgba(${N("shadowChannel",K)} / ${N("shadowOpacity",X)}), 0px 6px 12px -2px rgba(${N("shadowChannel",K)} / ${N("shadowOpacity",X)})`,lg:`${N("shadowRing",Q)}, 0px 2px 8px -2px rgba(${N("shadowChannel",K)} / ${N("shadowOpacity",X)}), 0px 12px 16px -4px rgba(${N("shadowChannel",K)} / ${N("shadowOpacity",X)})`,xl:`${N("shadowRing",Q)}, 0px 2px 8px -2px rgba(${N("shadowChannel",K)} / ${N("shadowOpacity",X)}), 0px 20px 24px -4px rgba(${N("shadowChannel",K)} / ${N("shadowOpacity",X)})`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,tooltip:1500},typography:{h1:{fontFamily:N(`fontFamily-display, ${q.display}`),fontWeight:N(`fontWeight-xl, ${Y.xl}`),fontSize:N(`fontSize-xl4, ${V.xl4}`),lineHeight:N(`lineHeight-xs, ${U.xs}`),letterSpacing:"-0.025em",color:N(`palette-text-primary, ${W.palette.text.primary}`)},h2:{fontFamily:N(`fontFamily-display, ${q.display}`),fontWeight:N(`fontWeight-xl, ${Y.xl}`),fontSize:N(`fontSize-xl3, ${V.xl3}`),lineHeight:N(`lineHeight-xs, ${U.xs}`),letterSpacing:"-0.025em",color:N(`palette-text-primary, ${W.palette.text.primary}`)},h3:{fontFamily:N(`fontFamily-display, ${q.display}`),fontWeight:N(`fontWeight-lg, ${Y.lg}`),fontSize:N(`fontSize-xl2, ${V.xl2}`),lineHeight:N(`lineHeight-xs, ${U.xs}`),letterSpacing:"-0.025em",color:N(`palette-text-primary, ${W.palette.text.primary}`)},h4:{fontFamily:N(`fontFamily-display, ${q.display}`),fontWeight:N(`fontWeight-lg, ${Y.lg}`),fontSize:N(`fontSize-xl, ${V.xl}`),lineHeight:N(`lineHeight-md, ${U.md}`),letterSpacing:"-0.025em",color:N(`palette-text-primary, ${W.palette.text.primary}`)},"title-lg":{fontFamily:N(`fontFamily-body, ${q.body}`),fontWeight:N(`fontWeight-lg, ${Y.lg}`),fontSize:N(`fontSize-lg, ${V.lg}`),lineHeight:N(`lineHeight-xs, ${U.xs}`),color:N(`palette-text-primary, ${W.palette.text.primary}`)},"title-md":{fontFamily:N(`fontFamily-body, ${q.body}`),fontWeight:N(`fontWeight-md, ${Y.md}`),fontSize:N(`fontSize-md, ${V.md}`),lineHeight:N(`lineHeight-md, ${U.md}`),color:N(`palette-text-primary, ${W.palette.text.primary}`)},"title-sm":{fontFamily:N(`fontFamily-body, ${q.body}`),fontWeight:N(`fontWeight-md, ${Y.md}`),fontSize:N(`fontSize-sm, ${V.sm}`),lineHeight:N(`lineHeight-sm, ${U.sm}`),color:N(`palette-text-primary, ${W.palette.text.primary}`)},"body-lg":{fontFamily:N(`fontFamily-body, ${q.body}`),fontSize:N(`fontSize-lg, ${V.lg}`),lineHeight:N(`lineHeight-md, ${U.md}`),color:N(`palette-text-secondary, ${W.palette.text.secondary}`)},"body-md":{fontFamily:N(`fontFamily-body, ${q.body}`),fontSize:N(`fontSize-md, ${V.md}`),lineHeight:N(`lineHeight-md, ${U.md}`),color:N(`palette-text-secondary, ${W.palette.text.secondary}`)},"body-sm":{fontFamily:N(`fontFamily-body, ${q.body}`),fontSize:N(`fontSize-sm, ${V.sm}`),lineHeight:N(`lineHeight-md, ${U.md}`),color:N(`palette-text-tertiary, ${W.palette.text.tertiary}`)},"body-xs":{fontFamily:N(`fontFamily-body, ${q.body}`),fontWeight:N(`fontWeight-md, ${Y.md}`),fontSize:N(`fontSize-xs, ${V.xs}`),lineHeight:N(`lineHeight-md, ${U.md}`),color:N(`palette-text-tertiary, ${W.palette.text.tertiary}`)}}},tt=I?(0,a.Z)(J,I):J,{colorSchemes:te}=tt,tn=(0,i.Z)(tt,R),tr=(0,r.Z)({colorSchemes:te},tn,{breakpoints:(0,c.Z)(null!=C?C:{}),components:(0,a.Z)({MuiSvgIcon:{defaultProps:{fontSize:"xl2"},styleOverrides:{root:({ownerState:t,theme:e})=>{var n;let i=t.instanceFontSize;return(0,r.Z)({margin:"var(--Icon-margin)"},t.fontSize&&"inherit"!==t.fontSize&&{fontSize:`var(--Icon-fontSize, ${e.vars.fontSize[t.fontSize]})`},!t.htmlColor&&(0,r.Z)({color:`var(--Icon-color, ${tr.vars.palette.text.icon})`},t.color&&"inherit"!==t.color&&"context"!==t.color&&e.vars.palette[t.color]&&{color:`rgba(${null==(n=e.vars.palette[t.color])?void 0:n.mainChannel} / 1)`},"context"===t.color&&{color:e.vars.palette.text.secondary}),i&&"inherit"!==i&&{"--Icon-fontSize":e.vars.fontSize[i]})}}}},M),cssVarPrefix:k,getCssVar:N,spacing:(0,u.Z)(j),colorInversionConfig:{soft:["plain","outlined","soft","solid"],solid:["plain","outlined","soft","solid"]}});Object.entries(tr.colorSchemes).forEach(([t,e])=>{!function(t,e){Object.keys(e).forEach(n=>{let r={main:"500",light:"200",dark:"700"};"dark"===t&&(r.main=400),!e[n].mainChannel&&e[n][r.main]&&(e[n].mainChannel=s(e[n][r.main])),!e[n].lightChannel&&e[n][r.light]&&(e[n].lightChannel=s(e[n][r.light])),!e[n].darkChannel&&e[n][r.dark]&&(e[n].darkChannel=s(e[n][r.dark]))})}(t,e.palette)});let{vars:ti,generateCssVars:ta}=y((0,r.Z)({colorSchemes:te},tn),{prefix:k,shouldSkipGeneratingVar:Z});tr.vars=ti,tr.generateCssVars=ta,tr.unstable_sxConfig=(0,r.Z)({},x,null==t?void 0:t.unstable_sxConfig),tr.unstable_sx=function(t){return(0,v.Z)({sx:t,theme:this})},tr.getColorSchemeSelector=t=>"light"===t?"&":`&[data-joy-color-scheme="${t}"], [data-joy-color-scheme="${t}"] &`;let to={getCssVar:N,palette:tr.colorSchemes.light.palette};return tr.variants=(0,a.Z)({plain:S("plain",to),plainHover:S("plainHover",to),plainActive:S("plainActive",to),plainDisabled:S("plainDisabled",to),outlined:S("outlined",to),outlinedHover:S("outlinedHover",to),outlinedActive:S("outlinedActive",to),outlinedDisabled:S("outlinedDisabled",to),soft:S("soft",to),softHover:S("softHover",to),softActive:S("softActive",to),softDisabled:S("softDisabled",to),solid:S("solid",to),solidHover:S("solidHover",to),solidActive:S("solidActive",to),solidDisabled:S("solidDisabled",to)},L),tr.palette=(0,r.Z)({},tr.colorSchemes.light.palette,{colorScheme:"light"}),tr.shouldSkipGeneratingVar=Z,tr.colorInversion="function"==typeof B?B:(0,a.Z)({soft:A(tr,!0),solid:E(tr,!0)},B||{},{clone:!1}),tr}();var B=L},2548:function(t,e){"use strict";e.Z="$$joy"},58859:function(t,e,n){"use strict";n.d(e,{V:function(){return i}});var r=n(87462);let i=({theme:t,ownerState:e},n)=>{let i={};return e.sx&&(function e(n){if("function"==typeof n){let r=n(t);e(r)}else Array.isArray(n)?n.forEach(t=>{"boolean"!=typeof t&&e(t)}):"object"==typeof n&&(i=(0,r.Z)({},i,n))}(e.sx),n.forEach(e=>{let n=i[e];if("string"==typeof n||"number"==typeof n){if("borderRadius"===e){if("number"==typeof n)i[e]=`${n}px`;else{var r;i[e]=(null==(r=t.vars)?void 0:r.radius[n])||n}}else -1!==["p","padding","m","margin"].indexOf(e)&&"number"==typeof n?i[e]=t.spacing(n):i[e]=n}else"function"==typeof n?i[e]=n(t):i[e]=void 0})),i}},74312:function(t,e,n){"use strict";var r=n(86154),i=n(67299),a=n(2548);let o=(0,r.ZP)({defaultTheme:i.Z,themeId:a.Z});e.Z=o},20407:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var r=n(87462),i=n(44065),a=n(67299),o=n(2548);function l({props:t,name:e}){return(0,i.Z)({props:t,name:e,defaultTheme:(0,r.Z)({},a.Z,{components:{}}),themeId:o.Z})}},30220:function(t,e,n){"use strict";n.d(e,{Z:function(){return p}});var r=n(87462),i=n(63366),a=n(22760),o=n(71276),l=n(24407),s=n(10238),c=n(2226);let u=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],f=["component","slots","slotProps"],d=["component"],h=["disableColorInversion"];function p(t,e){let{className:n,elementType:p,ownerState:g,externalForwardedProps:m,getSlotOwnerState:y,internalForwardedProps:v}=e,b=(0,i.Z)(e,u),{component:x,slots:O={[t]:void 0},slotProps:w={[t]:void 0}}=m,_=(0,i.Z)(m,f),k=O[t]||p,C=(0,o.x)(w[t],g),j=(0,l.L)((0,r.Z)({className:n},b,{externalForwardedProps:"root"===t?_:void 0,externalSlotProps:C})),{props:{component:M},internalRef:S}=j,A=(0,i.Z)(j.props,d),E=(0,a.Z)(S,null==C?void 0:C.ref,e.ref),P=y?y(A):{},{disableColorInversion:R=!1}=P,T=(0,i.Z)(P,h),L=(0,r.Z)({},g,T),{getColor:B}=(0,c.VT)(L.variant);if("root"===t){var Z;L.color=null!=(Z=A.color)?Z:g.color}else R||(L.color=B(A.color,L.color));let I="root"===t?M||x:M,N=(0,s.$)(k,(0,r.Z)({},"root"===t&&!x&&!O[t]&&v,"root"!==t&&!O[t]&&v,A,I&&{as:I},{ref:E}),L);return Object.keys(T).forEach(t=>{delete N[t]}),[k,N]}},23534:function(t,e,n){"use strict";let r;n.r(e),n.d(e,{GlobalStyles:function(){return w},StyledEngineProvider:function(){return O},ThemeContext:function(){return c.T},css:function(){return v.iv},default:function(){return _},internal_processStyles:function(){return k},keyframes:function(){return v.F4}});var i=n(87462),a=n(67294),o=n(45042),l=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,o.Z)(function(t){return l.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&91>t.charCodeAt(2)}),c=n(6498),u=n(70444),f=n(26346),d=n(27278),h=function(t){return"theme"!==t},p=function(t){return"string"==typeof t&&t.charCodeAt(0)>96?s:h},g=function(t,e,n){var r;if(e){var i=e.shouldForwardProp;r=t.__emotion_forwardProp&&i?function(e){return t.__emotion_forwardProp(e)&&i(e)}:i}return"function"!=typeof r&&n&&(r=t.__emotion_forwardProp),r},m=function(t){var e=t.cache,n=t.serialized,r=t.isStringTag;return(0,u.hC)(e,n,r),(0,d.L)(function(){return(0,u.My)(e,n,r)}),null},y=(function t(e,n){var r,o,l=e.__emotion_real===e,s=l&&e.__emotion_base||e;void 0!==n&&(r=n.label,o=n.target);var d=g(e,n,l),h=d||p(s),y=!h("as");return function(){var v=arguments,b=l&&void 0!==e.__emotion_styles?e.__emotion_styles.slice(0):[];if(void 0!==r&&b.push("label:"+r+";"),null==v[0]||void 0===v[0].raw)b.push.apply(b,v);else{b.push(v[0][0]);for(var x=v.length,O=1;Oe(null==t||0===Object.keys(t).length?n:t):e;return(0,x.jsx)(v.xB,{styles:r})}function _(t,e){let n=y(t,e);return n}"object"==typeof document&&(r=(0,b.Z)({key:"css",prepend:!0}));let k=(t,e)=>{Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}},95408:function(t,e,n){"use strict";n.d(e,{L7:function(){return l},VO:function(){return r},W8:function(){return o},k9:function(){return a}});let r={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${r[t]}px)`};function a(t,e,n){let a=t.theme||{};if(Array.isArray(e)){let t=a.breakpoints||i;return e.reduce((r,i,a)=>(r[t.up(t.keys[a])]=n(e[a]),r),{})}if("object"==typeof e){let t=a.breakpoints||i;return Object.keys(e).reduce((i,a)=>{if(-1!==Object.keys(t.values||r).indexOf(a)){let r=t.up(a);i[r]=n(e[a],a)}else i[a]=e[a];return i},{})}let o=n(e);return o}function o(t={}){var e;let n=null==(e=t.keys)?void 0:e.reduce((e,n)=>{let r=t.up(n);return e[r]={},e},{});return n||{}}function l(t,e){return t.reduce((t,e)=>{let n=t[e],r=!n||0===Object.keys(n).length;return r&&delete t[e],t},e)}},86154:function(t,e,n){"use strict";n.d(e,{ZP:function(){return y}});var r=n(87462),i=n(63366),a=n(23534),o=n(68027),l=n(88647),s=n(86523);let c=["ownerState"],u=["variants"],f=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function d(t){return"ownerState"!==t&&"theme"!==t&&"sx"!==t&&"as"!==t}let h=(0,l.Z)(),p=t=>t?t.charAt(0).toLowerCase()+t.slice(1):t;function g({defaultTheme:t,theme:e,themeId:n}){return 0===Object.keys(e).length?t:e[n]||e}function m(t,e){let{ownerState:n}=e,a=(0,i.Z)(e,c),o="function"==typeof t?t((0,r.Z)({ownerState:n},a)):t;if(Array.isArray(o))return o.flatMap(t=>m(t,(0,r.Z)({ownerState:n},a)));if(o&&"object"==typeof o&&Array.isArray(o.variants)){let{variants:t=[]}=o,e=(0,i.Z)(o,u),l=e;return t.forEach(t=>{let e=!0;"function"==typeof t.props?e=t.props((0,r.Z)({ownerState:n},a,n)):Object.keys(t.props).forEach(r=>{(null==n?void 0:n[r])!==t.props[r]&&a[r]!==t.props[r]&&(e=!1)}),e&&(Array.isArray(l)||(l=[l]),l.push("function"==typeof t.style?t.style((0,r.Z)({ownerState:n},a,n)):t.style))}),l}return o}function y(t={}){let{themeId:e,defaultTheme:n=h,rootShouldForwardProp:l=d,slotShouldForwardProp:c=d}=t,u=t=>(0,s.Z)((0,r.Z)({},t,{theme:g((0,r.Z)({},t,{defaultTheme:n,themeId:e}))}));return u.__mui_systemSx=!0,(t,s={})=>{var h;let y;(0,a.internal_processStyles)(t,t=>t.filter(t=>!(null!=t&&t.__mui_systemSx)));let{name:v,slot:b,skipVariantsResolver:x,skipSx:O,overridesResolver:w=(h=p(b))?(t,e)=>e[h]:null}=s,_=(0,i.Z)(s,f),k=void 0!==x?x:b&&"Root"!==b&&"root"!==b||!1,C=O||!1,j=d;"Root"===b||"root"===b?j=l:b?j=c:"string"==typeof t&&t.charCodeAt(0)>96&&(j=void 0);let M=(0,a.default)(t,(0,r.Z)({shouldForwardProp:j,label:y},_)),S=t=>"function"==typeof t&&t.__emotion_real!==t||(0,o.P)(t)?i=>m(t,(0,r.Z)({},i,{theme:g({theme:i.theme,defaultTheme:n,themeId:e})})):t,A=(i,...a)=>{let o=S(i),l=a?a.map(S):[];v&&w&&l.push(t=>{let i=g((0,r.Z)({},t,{defaultTheme:n,themeId:e}));if(!i.components||!i.components[v]||!i.components[v].styleOverrides)return null;let a=i.components[v].styleOverrides,o={};return Object.entries(a).forEach(([e,n])=>{o[e]=m(n,(0,r.Z)({},t,{theme:i}))}),w(t,o)}),v&&!k&&l.push(t=>{var i;let a=g((0,r.Z)({},t,{defaultTheme:n,themeId:e})),o=null==a||null==(i=a.components)||null==(i=i[v])?void 0:i.variants;return m({variants:o},(0,r.Z)({},t,{theme:a}))}),C||l.push(u);let s=l.length-a.length;if(Array.isArray(i)&&s>0){let t=Array(s).fill("");(o=[...i,...t]).raw=[...i.raw,...t]}let c=M(o,...l);return t.muiName&&(c.muiName=t.muiName),c};return M.withConfig&&(A.withConfig=M.withConfig),A}}},57064:function(t,e,n){"use strict";function r(t,e){if(this.vars&&"function"==typeof this.getColorSchemeSelector){let n=this.getColorSchemeSelector(t).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:e}}return this.palette.mode===t?e:{}}n.d(e,{Z:function(){return r}})},41512:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var r=n(63366),i=n(87462);let a=["values","unit","step"],o=t=>{let e=Object.keys(t).map(e=>({key:e,val:t[e]}))||[];return e.sort((t,e)=>t.val-e.val),e.reduce((t,e)=>(0,i.Z)({},t,{[e.key]:e.val}),{})};function l(t){let{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:l=5}=t,s=(0,r.Z)(t,a),c=o(e),u=Object.keys(c);function f(t){let r="number"==typeof e[t]?e[t]:t;return`@media (min-width:${r}${n})`}function d(t){let r="number"==typeof e[t]?e[t]:t;return`@media (max-width:${r-l/100}${n})`}function h(t,r){let i=u.indexOf(r);return`@media (min-width:${"number"==typeof e[t]?e[t]:t}${n}) and (max-width:${(-1!==i&&"number"==typeof e[u[i]]?e[u[i]]:r)-l/100}${n})`}return(0,i.Z)({keys:u,values:c,up:f,down:d,between:h,only:function(t){return u.indexOf(t)+1{let n=0===t.length?[1]:t;return n.map(t=>{let n=e(t);return"number"==typeof n?`${n}px`:n}).join(" ")};return n.mui=!0,n}},88647:function(t,e,n){"use strict";n.d(e,{Z:function(){return h}});var r=n(87462),i=n(63366),a=n(68027),o=n(41512),l={borderRadius:4},s=n(98373),c=n(86523),u=n(44920),f=n(57064);let d=["breakpoints","palette","spacing","shape"];var h=function(t={},...e){let{breakpoints:n={},palette:h={},spacing:p,shape:g={}}=t,m=(0,i.Z)(t,d),y=(0,o.Z)(n),v=(0,s.Z)(p),b=(0,a.Z)({breakpoints:y,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},h),spacing:v,shape:(0,r.Z)({},l,g)},m);return b.applyStyles=f.Z,(b=e.reduce((t,e)=>(0,a.Z)(t,e),b)).unstable_sxConfig=(0,r.Z)({},u.Z,null==m?void 0:m.unstable_sxConfig),b.unstable_sx=function(t){return(0,c.Z)({sx:t,theme:this})},b}},47730:function(t,e,n){"use strict";var r=n(68027);e.Z=function(t,e){return e?(0,r.Z)(t,e,{clone:!1}):t}},98700:function(t,e,n){"use strict";n.d(e,{hB:function(){return p},eI:function(){return h},NA:function(){return g},e6:function(){return y},o3:function(){return v}});var r=n(95408),i=n(54844),a=n(47730);let o={m:"margin",p:"padding"},l={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},s={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(t){let e={};return n=>(void 0===e[n]&&(e[n]=t(n)),e[n])}(t=>{if(t.length>2){if(!s[t])return[t];t=s[t]}let[e,n]=t.split(""),r=o[e],i=l[n]||"";return Array.isArray(i)?i.map(t=>r+t):[r+i]}),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],d=[...u,...f];function h(t,e,n,r){var a;let o=null!=(a=(0,i.DW)(t,e,!1))?a:n;return"number"==typeof o?t=>"string"==typeof t?t:o*t:Array.isArray(o)?t=>"string"==typeof t?t:o[t]:"function"==typeof o?o:()=>void 0}function p(t){return h(t,"spacing",8,"spacing")}function g(t,e){if("string"==typeof e||null==e)return e;let n=Math.abs(e),r=t(n);return e>=0?r:"number"==typeof r?-r:`-${r}`}function m(t,e){let n=p(t.theme);return Object.keys(t).map(i=>(function(t,e,n,i){if(-1===e.indexOf(n))return null;let a=c(n),o=t[n];return(0,r.k9)(t,o,t=>a.reduce((e,n)=>(e[n]=g(i,t),e),{}))})(t,e,i,n)).reduce(a.Z,{})}function y(t){return m(t,u)}function v(t){return m(t,f)}function b(t){return m(t,d)}y.propTypes={},y.filterProps=u,v.propTypes={},v.filterProps=f,b.propTypes={},b.filterProps=d},54844:function(t,e,n){"use strict";n.d(e,{DW:function(){return a},Jq:function(){return o}});var r=n(62908),i=n(95408);function a(t,e,n=!0){if(!e||"string"!=typeof e)return null;if(t&&t.vars&&n){let n=`vars.${e}`.split(".").reduce((t,e)=>t&&t[e]?t[e]:null,t);if(null!=n)return n}return e.split(".").reduce((t,e)=>t&&null!=t[e]?t[e]:null,t)}function o(t,e,n,r=n){let i;return i="function"==typeof t?t(n):Array.isArray(t)?t[n]||r:a(t,n)||r,e&&(i=e(i,r,t)),i}e.ZP=function(t){let{prop:e,cssProperty:n=t.prop,themeKey:l,transform:s}=t,c=t=>{if(null==t[e])return null;let c=t[e],u=t.theme,f=a(u,l)||{};return(0,i.k9)(t,c,t=>{let i=o(f,s,t);return(t===i&&"string"==typeof t&&(i=o(f,s,`${e}${"default"===t?"":(0,r.Z)(t)}`,t)),!1===n)?i:{[n]:i}})};return c.propTypes={},c.filterProps=[e],c}},44920:function(t,e,n){"use strict";n.d(e,{Z:function(){return V}});var r=n(98700),i=n(54844),a=n(47730),o=function(...t){let e=t.reduce((t,e)=>(e.filterProps.forEach(n=>{t[n]=e}),t),{}),n=t=>Object.keys(t).reduce((n,r)=>e[r]?(0,a.Z)(n,e[r](t)):n,{});return n.propTypes={},n.filterProps=t.reduce((t,e)=>t.concat(e.filterProps),[]),n},l=n(95408);function s(t){return"number"!=typeof t?t:`${t}px solid`}function c(t,e){return(0,i.ZP)({prop:t,themeKey:"borders",transform:e})}let u=c("border",s),f=c("borderTop",s),d=c("borderRight",s),h=c("borderBottom",s),p=c("borderLeft",s),g=c("borderColor"),m=c("borderTopColor"),y=c("borderRightColor"),v=c("borderBottomColor"),b=c("borderLeftColor"),x=c("outline",s),O=c("outlineColor"),w=t=>{if(void 0!==t.borderRadius&&null!==t.borderRadius){let e=(0,r.eI)(t.theme,"shape.borderRadius",4,"borderRadius");return(0,l.k9)(t,t.borderRadius,t=>({borderRadius:(0,r.NA)(e,t)}))}return null};w.propTypes={},w.filterProps=["borderRadius"],o(u,f,d,h,p,g,m,y,v,b,w,x,O);let _=t=>{if(void 0!==t.gap&&null!==t.gap){let e=(0,r.eI)(t.theme,"spacing",8,"gap");return(0,l.k9)(t,t.gap,t=>({gap:(0,r.NA)(e,t)}))}return null};_.propTypes={},_.filterProps=["gap"];let k=t=>{if(void 0!==t.columnGap&&null!==t.columnGap){let e=(0,r.eI)(t.theme,"spacing",8,"columnGap");return(0,l.k9)(t,t.columnGap,t=>({columnGap:(0,r.NA)(e,t)}))}return null};k.propTypes={},k.filterProps=["columnGap"];let C=t=>{if(void 0!==t.rowGap&&null!==t.rowGap){let e=(0,r.eI)(t.theme,"spacing",8,"rowGap");return(0,l.k9)(t,t.rowGap,t=>({rowGap:(0,r.NA)(e,t)}))}return null};C.propTypes={},C.filterProps=["rowGap"];let j=(0,i.ZP)({prop:"gridColumn"}),M=(0,i.ZP)({prop:"gridRow"}),S=(0,i.ZP)({prop:"gridAutoFlow"}),A=(0,i.ZP)({prop:"gridAutoColumns"}),E=(0,i.ZP)({prop:"gridAutoRows"}),P=(0,i.ZP)({prop:"gridTemplateColumns"}),R=(0,i.ZP)({prop:"gridTemplateRows"}),T=(0,i.ZP)({prop:"gridTemplateAreas"}),L=(0,i.ZP)({prop:"gridArea"});function B(t,e){return"grey"===e?e:t}o(_,k,C,j,M,S,A,E,P,R,T,L);let Z=(0,i.ZP)({prop:"color",themeKey:"palette",transform:B}),I=(0,i.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:B}),N=(0,i.ZP)({prop:"backgroundColor",themeKey:"palette",transform:B});function D(t){return t<=1&&0!==t?`${100*t}%`:t}o(Z,I,N);let z=(0,i.ZP)({prop:"width",transform:D}),F=t=>void 0!==t.maxWidth&&null!==t.maxWidth?(0,l.k9)(t,t.maxWidth,e=>{var n,r;let i=(null==(n=t.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[e])||l.VO[e];return i?(null==(r=t.theme)||null==(r=r.breakpoints)?void 0:r.unit)!=="px"?{maxWidth:`${i}${t.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:D(e)}}):null;F.filterProps=["maxWidth"];let $=(0,i.ZP)({prop:"minWidth",transform:D}),W=(0,i.ZP)({prop:"height",transform:D}),H=(0,i.ZP)({prop:"maxHeight",transform:D}),G=(0,i.ZP)({prop:"minHeight",transform:D});(0,i.ZP)({prop:"size",cssProperty:"width",transform:D}),(0,i.ZP)({prop:"size",cssProperty:"height",transform:D});let q=(0,i.ZP)({prop:"boxSizing"});o(z,F,$,W,H,G,q);let Y={border:{themeKey:"borders",transform:s},borderTop:{themeKey:"borders",transform:s},borderRight:{themeKey:"borders",transform:s},borderBottom:{themeKey:"borders",transform:s},borderLeft:{themeKey:"borders",transform:s},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:s},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:w},color:{themeKey:"palette",transform:B},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:B},backgroundColor:{themeKey:"palette",transform:B},p:{style:r.o3},pt:{style:r.o3},pr:{style:r.o3},pb:{style:r.o3},pl:{style:r.o3},px:{style:r.o3},py:{style:r.o3},padding:{style:r.o3},paddingTop:{style:r.o3},paddingRight:{style:r.o3},paddingBottom:{style:r.o3},paddingLeft:{style:r.o3},paddingX:{style:r.o3},paddingY:{style:r.o3},paddingInline:{style:r.o3},paddingInlineStart:{style:r.o3},paddingInlineEnd:{style:r.o3},paddingBlock:{style:r.o3},paddingBlockStart:{style:r.o3},paddingBlockEnd:{style:r.o3},m:{style:r.e6},mt:{style:r.e6},mr:{style:r.e6},mb:{style:r.e6},ml:{style:r.e6},mx:{style:r.e6},my:{style:r.e6},margin:{style:r.e6},marginTop:{style:r.e6},marginRight:{style:r.e6},marginBottom:{style:r.e6},marginLeft:{style:r.e6},marginX:{style:r.e6},marginY:{style:r.e6},marginInline:{style:r.e6},marginInlineStart:{style:r.e6},marginInlineEnd:{style:r.e6},marginBlock:{style:r.e6},marginBlockStart:{style:r.e6},marginBlockEnd:{style:r.e6},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:_},rowGap:{style:C},columnGap:{style:k},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:D},maxWidth:{style:F},minWidth:{transform:D},height:{transform:D},maxHeight:{transform:D},minHeight:{transform:D},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};var V=Y},39707:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=n(87462),i=n(63366),a=n(68027),o=n(44920);let l=["sx"],s=t=>{var e,n;let r={systemProps:{},otherProps:{}},i=null!=(e=null==t||null==(n=t.theme)?void 0:n.unstable_sxConfig)?e:o.Z;return Object.keys(t).forEach(e=>{i[e]?r.systemProps[e]=t[e]:r.otherProps[e]=t[e]}),r};function c(t){let e;let{sx:n}=t,o=(0,i.Z)(t,l),{systemProps:c,otherProps:u}=s(o);return e=Array.isArray(n)?[c,...n]:"function"==typeof n?(...t)=>{let e=n(...t);return(0,a.P)(e)?(0,r.Z)({},c,e):c}:(0,r.Z)({},c,n),(0,r.Z)({},u,{sx:e})}},86523:function(t,e,n){"use strict";n.d(e,{n:function(){return s}});var r=n(62908),i=n(47730),a=n(54844),o=n(95408),l=n(44920);function s(){function t(t,e,n,i){let l={[t]:e,theme:n},s=i[t];if(!s)return{[t]:e};let{cssProperty:c=t,themeKey:u,transform:f,style:d}=s;if(null==e)return null;if("typography"===u&&"inherit"===e)return{[t]:e};let h=(0,a.DW)(n,u)||{};return d?d(l):(0,o.k9)(l,e,e=>{let n=(0,a.Jq)(h,f,e);return(e===n&&"string"==typeof e&&(n=(0,a.Jq)(h,f,`${t}${"default"===e?"":(0,r.Z)(e)}`,e)),!1===c)?n:{[c]:n}})}return function e(n){var r;let{sx:a,theme:s={}}=n||{};if(!a)return null;let c=null!=(r=s.unstable_sxConfig)?r:l.Z;function u(n){let r=n;if("function"==typeof n)r=n(s);else if("object"!=typeof n)return n;if(!r)return null;let a=(0,o.W8)(s.breakpoints),l=Object.keys(a),u=a;return Object.keys(r).forEach(n=>{var a;let l="function"==typeof(a=r[n])?a(s):a;if(null!=l){if("object"==typeof l){if(c[n])u=(0,i.Z)(u,t(n,l,s,c));else{let t=(0,o.k9)({theme:s},l,t=>({[n]:t}));(function(...t){let e=t.reduce((t,e)=>t.concat(Object.keys(e)),[]),n=new Set(e);return t.every(t=>n.size===Object.keys(t).length)})(t,l)?u[n]=e({sx:l,theme:s}):u=(0,i.Z)(u,t)}}else u=(0,i.Z)(u,t(n,l,s,c))}}),(0,o.L7)(l,u)}return Array.isArray(a)?a.map(u):u(a)}}let c=s();c.filterProps=["sx"],e.Z=c},79718:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(88647),i=n(67294),a=n(6498),o=function(t=null){let e=i.useContext(a.T);return e&&0!==Object.keys(e).length?e:t};let l=(0,r.Z)();var s=function(t=l){return o(t)}},44065:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(87462),i=n(79718);function a({props:t,name:e,defaultTheme:n,themeId:a}){let o=(0,i.Z)(n);a&&(o=o[a]||o);let l=function(t){let{theme:e,name:n,props:i}=t;return e&&e.components&&e.components[n]&&e.components[n].defaultProps?function t(e,n){let i=(0,r.Z)({},n);return Object.keys(e).forEach(a=>{if(a.toString().match(/^(components|slots)$/))i[a]=(0,r.Z)({},e[a],i[a]);else if(a.toString().match(/^(componentsProps|slotProps)$/)){let o=e[a]||{},l=n[a];i[a]={},l&&Object.keys(l)?o&&Object.keys(o)?(i[a]=(0,r.Z)({},l),Object.keys(o).forEach(e=>{i[a][e]=t(o[e],l[e])})):i[a]=l:i[a]=o}else void 0===i[a]&&(i[a]=e[a])}),i}(e.components[n].defaultProps,i):i}({theme:o,name:e,props:t});return l}},31983:function(t,e){"use strict";let n;let r=t=>t,i=(n=r,{configure(t){n=t},generate:t=>n(t),reset(){n=r}});e.Z=i},62908:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(78758);function i(t){if("string"!=typeof t)throw Error((0,r.Z)(7));return t.charAt(0).toUpperCase()+t.slice(1)}},58510:function(t,e,n){"use strict";function r(t,e,n){let r={};return Object.keys(t).forEach(i=>{r[i]=t[i].reduce((t,r)=>{if(r){let i=e(r);""!==i&&t.push(i),n&&n[r]&&t.push(n[r])}return t},[]).join(" ")}),r}n.d(e,{Z:function(){return r}})},68027:function(t,e,n){"use strict";n.d(e,{P:function(){return i},Z:function(){return function t(e,n,a={clone:!0}){let o=a.clone?(0,r.Z)({},e):e;return i(e)&&i(n)&&Object.keys(n).forEach(r=>{i(n[r])&&Object.prototype.hasOwnProperty.call(e,r)&&i(e[r])?o[r]=t(e[r],n[r],a):a.clone?o[r]=i(n[r])?function t(e){if(!i(e))return e;let n={};return Object.keys(e).forEach(r=>{n[r]=t(e[r])}),n}(n[r]):n[r]:o[r]=n[r]}),o}}});var r=n(87462);function i(t){if("object"!=typeof t||null===t)return!1;let e=Object.getPrototypeOf(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}},78758:function(t,e,n){"use strict";function r(t){let e="https://mui.com/production-error/?code="+t;for(let t=1;t{i[e]=(0,r.ZP)(t,e,n)}),i}},16485:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(67294);function i(t,e){var n,i;return r.isValidElement(t)&&-1!==e.indexOf(null!=(n=t.type.muiName)?n:null==(i=t.type)||null==(i=i._payload)||null==(i=i.value)?void 0:i.muiName)}},25091:function(t,e,n){"use strict";function r(t,e){"function"==typeof t?t(e):t&&(t.current=e)}n.d(e,{Z:function(){return r}})},22760:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(67294),i=n(25091);function a(...t){return r.useMemo(()=>t.every(t=>null==t)?null:e=>{t.forEach(t=>{(0,i.Z)(t,e)})},t)}},15746:function(t,e,n){"use strict";var r=n(21584);e.Z=r.Z},71230:function(t,e,n){"use strict";var r=n(92820);e.Z=r.Z},87760:function(t,e){"use strict";var n={protan:{x:.7465,y:.2535,m:1.273463,yi:-.073894},deutan:{x:1.4,y:-.4,m:.968437,yi:.003331},tritan:{x:.1748,y:0,m:.062921,yi:.292119},custom:{x:.735,y:.265,m:-1.059259,yi:1.026914}},r=function(t){var e={},n=t.R/255,r=t.G/255,i=t.B/255;return n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,e.X=.41242371206635076*n+.3575793401363035*r+.1804662232369621*i,e.Y=.21265606784927693*n+.715157818248362*r+.0721864539171564*i,e.Z=.019331987577444885*n+.11919267420354762*r+.9504491124870351*i,e},i=function(t){var e=t.X+t.Y+t.Z;return 0===e?{x:0,y:0,Y:t.Y}:{x:t.X/e,y:t.Y/e,Y:t.Y}};e.a=function(t,e,a){var o,l,s,c,u,f,d,h,p,g,m,y,v,b,x,O,w,_,k,C;return"achroma"===e?(o={R:o=.212656*t.R+.715158*t.G+.072186*t.B,G:o,B:o},a&&(s=(l=1.75)+1,o.R=(l*o.R+t.R)/s,o.G=(l*o.G+t.G)/s,o.B=(l*o.B+t.B)/s),o):(c=n[e],f=((u=i(r(t))).y-c.y)/(u.x-c.x),d=u.y-u.x*f,h=(c.yi-d)/(f-c.m),p=f*h+d,(o={}).X=h*u.Y/p,o.Y=u.Y,o.Z=(1-(h+p))*u.Y/p,_=.312713*u.Y/.329016,k=.358271*u.Y/.329016,y=3.240712470389558*(g=_-o.X)+-0+-.49857440415943116*(m=k-o.Z),v=-.969259258688888*g+0+.041556132211625726*m,b=.05563600315398933*g+-0+1.0570636917433989*m,o.R=3.240712470389558*o.X+-1.5372626602963142*o.Y+-.49857440415943116*o.Z,o.G=-.969259258688888*o.X+1.875996969313966*o.Y+.041556132211625726*o.Z,o.B=.05563600315398933*o.X+-.2039948802843549*o.Y+1.0570636917433989*o.Z,x=((o.R<0?0:1)-o.R)/y,O=((o.G<0?0:1)-o.G)/v,(w=(w=((o.B<0?0:1)-o.B)/b)>1||w<0?0:w)>(C=(x=x>1||x<0?0:x)>(O=O>1||O<0?0:O)?x:O)&&(C=w),o.R+=C*y,o.G+=C*v,o.B+=C*b,o.R=255*(o.R<=0?0:o.R>=1?1:Math.pow(o.R,.45454545454545453)),o.G=255*(o.G<=0?0:o.G>=1?1:Math.pow(o.G,.45454545454545453)),o.B=255*(o.B<=0?0:o.B>=1?1:Math.pow(o.B,.45454545454545453)),a&&(s=(l=1.75)+1,o.R=(l*o.R+t.R)/s,o.G=(l*o.G+t.G)/s,o.B=(l*o.B+t.B)/s),o)}},56917:function(t,e,n){"use strict";var r=n(74314),i=n(87760).a,a={protanomaly:{type:"protan",anomalize:!0},protanopia:{type:"protan"},deuteranomaly:{type:"deutan",anomalize:!0},deuteranopia:{type:"deutan"},tritanomaly:{type:"tritan",anomalize:!0},tritanopia:{type:"tritan"},achromatomaly:{type:"achroma",anomalize:!0},achromatopsia:{type:"achroma"}},o=function(t){return Math.round(255*t)},l=function(t){return function(e,n){var l=r(e);if(!l)return n?{R:0,G:0,B:0}:"#000000";var s=new i({R:o(l.red()||0),G:o(l.green()||0),B:o(l.blue()||0)},a[t].type,a[t].anomalize);return(s.R=s.R||0,s.G=s.G||0,s.B=s.B||0,n)?(delete s.X,delete s.Y,delete s.Z,s):new r.RGB(s.R%256/255,s.G%256/255,s.B%256/255,1).hex()}};for(var s in a)e[s]=l(s)},91077:function(t,e,n){"use strict";function r(t,e){return te?1:t>=e?0:NaN}n.d(e,{Z:function(){return r}})},44355:function(t,e,n){"use strict";n.d(e,{Nw:function(){return s},ZR:function(){return c}});var r=n(91077),i=n(29173),a=n(62921);let o=(0,i.Z)(r.Z),l=o.right,s=o.left,c=(0,i.Z)(a.Z).center;e.ZP=l},29173:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(91077);function i(t){let e=t,n=t;function i(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;0>n(t[a],e)?r=a+1:i=a}return r}return 1===t.length&&(e=(e,n)=>t(e)-n,n=(e,n)=>(0,r.Z)(t(e),n)),{left:i,center:function(t,n,r,a){null==r&&(r=0),null==a&&(a=t.length);let o=i(t,n,r,a-1);return o>r&&e(t[o-1],n)>-e(t[o],n)?o-1:o},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[a],e)>0?i=a:r=a+1}return r}}}},23865:function(t,e,n){"use strict";function r(t,e){let n,r;if(void 0===e)for(let e of t)null!=e&&(void 0===n?e>=e&&(n=r=e):(n>e&&(n=e),r=a&&(n=r=a):(n>a&&(n=a),r=i.length)return n(a);let l=new r,s=i[o++],c=-1;for(let t of a){let e=s(t,++c,a),n=l.get(e);n?n.push(t):l.set(e,[t])}for(let[e,n]of l)l.set(e,t(n,o));return e(l)}(t,0)}},10874:function(t,e,n){"use strict";function r(t){return t}n.d(e,{Z:function(){return r}})},98823:function(t,e,n){"use strict";function r(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n=i)&&(n=i)}return n}n.d(e,{Z:function(){return r}})},11616:function(t,e,n){"use strict";function r(t,e){let n;let r=-1,i=-1;if(void 0===e)for(let e of t)++i,null!=e&&(n=e)&&(n=e,r=i);else for(let a of t)null!=(a=e(a,++i,t))&&(n=a)&&(n=a,r=i);return r}n.d(e,{Z:function(){return r}})},47622:function(t,e,n){"use strict";function r(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}n.d(e,{Z:function(){return r}})},62921:function(t,e,n){"use strict";function r(t){return null===t?NaN:+t}function*i(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}n.d(e,{K:function(){return i},Z:function(){return r}})},80732:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(91077);function i(t,...e){if("function"!=typeof t[Symbol.iterator])throw TypeError("values is not iterable");t=Array.from(t);let[n=r.Z]=e;if(1===n.length||e.length>1){var a;let i=Uint32Array.from(t,(t,e)=>e);return e.length>1?(e=e.map(e=>t.map(e)),i.sort((t,n)=>{for(let i of e){let e=(0,r.Z)(i[t],i[n]);if(e)return e}})):(n=t.map(n),i.sort((t,e)=>(0,r.Z)(n[t],n[e]))),a=t,Array.from(i,t=>a[t])}return t.sort(n)}},90155:function(t,e,n){"use strict";function r(t,e){let n=0;if(void 0===e)for(let e of t)(e=+e)&&(n+=e);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}n.d(e,{Z:function(){return r}})},17694:function(t,e,n){"use strict";function r(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}n.d(e,{WU:function(){return o}});var i,a,o,l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(t){var e;if(!(e=l.exec(t)))throw Error("invalid format: "+t);return new c({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function c(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function u(t,e){var n=r(t,e);if(!n)return t+"";var i=n[0],a=n[1];return a<0?"0."+Array(-a).join("0")+i:i.length>a+1?i.slice(0,a+1)+"."+i.slice(a+1):i+Array(a-i.length+2).join("0")}s.prototype=c.prototype,c.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var f={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>u(100*t,e),r:u,s:function(t,e){var n=r(t,e);if(!n)return t+"";var a=n[0],o=n[1],l=o-(i=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=a.length;return l===s?a:l>s?a+Array(l-s+1).join("0"):l>0?a.slice(0,l)+"."+a.slice(l):"0."+Array(1-l).join("0")+r(t,Math.max(0,e+l-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function d(t){return t}var h=Array.prototype.map,p=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];o=(a=function(t){var e,n,a,o=void 0===t.grouping||void 0===t.thousands?d:(e=h.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,l=e[0],s=0;i>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),a.push(t.substring(i-=l,i+l)),!((s+=l+1)>r));)l=e[o=(o+1)%e.length];return a.reverse().join(n)}),l=void 0===t.currency?"":t.currency[0]+"",c=void 0===t.currency?"":t.currency[1]+"",u=void 0===t.decimal?".":t.decimal+"",g=void 0===t.numerals?d:(a=h.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return a[+t]})}),m=void 0===t.percent?"%":t.percent+"",y=void 0===t.minus?"−":t.minus+"",v=void 0===t.nan?"NaN":t.nan+"";function b(t){var e=(t=s(t)).fill,n=t.align,r=t.sign,a=t.symbol,d=t.zero,h=t.width,b=t.comma,x=t.precision,O=t.trim,w=t.type;"n"===w?(b=!0,w="g"):f[w]||(void 0===x&&(x=12),O=!0,w="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var _="$"===a?l:"#"===a&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",k="$"===a?c:/[%p]/.test(w)?m:"",C=f[w],j=/[defgprs%]/.test(w);function M(t){var a,l,s,c=_,f=k;if("c"===w)f=C(t)+f,t="";else{var m=(t=+t)<0||1/t<0;if(t=isNaN(t)?v:C(Math.abs(t),x),O&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),m&&0==+t&&"+"!==r&&(m=!1),c=(m?"("===r?r:y:"-"===r||"("===r?"":r)+c,f=("s"===w?p[8+i/3]:"")+f+(m&&"("===r?")":""),j){for(a=-1,l=t.length;++a(s=t.charCodeAt(a))||s>57){f=(46===s?u+t.slice(a+1):t.slice(a))+f,t=t.slice(0,a);break}}}b&&!d&&(t=o(t,1/0));var M=c.length+t.length+f.length,S=M>1)+c+t+f+S.slice(M);break;default:t=S+c+t+f}return g(t)}return x=void 0===x?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),M.toString=function(){return t+""},M}return{format:b,formatPrefix:function(t,e){var n,i=b(((t=s(t)).type="f",t)),a=3*Math.max(-8,Math.min(8,Math.floor(((n=r(Math.abs(n=e)))?n[1]:NaN)/3))),o=Math.pow(10,-a),l=p[8+a/3];return function(t){return i(o*t)+l}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a.formatPrefix},70569:function(t,e,n){"use strict";function r(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function i(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=o)):void 0===e&&(e=a);for(var n,r,i,l,u,f=new c(t),d=[f];n=d.pop();)if((i=e(n.data))&&(u=(i=Array.from(i)).length))for(n.children=i,l=u-1;l>=0;--l)d.push(r=i[l]=new c(i[l])),r.parent=n,r.depth=n.depth+1;return f.eachBefore(s)}function a(t){return t.children}function o(t){return Array.isArray(t)?t[1]:null}function l(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function s(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function c(t){this.data=t,this.depth=this.height=0,this.parent=null}n.d(e,{NB:function(){return c},le:function(){return s},ZP:function(){return i}}),c.prototype=i.prototype={constructor:c,count:function(){return this.eachAfter(r)},each:function(t,e){let n=-1;for(let r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,i,a=this,o=[a],l=[],s=-1;a=o.pop();)if(l.push(a),n=a.children)for(r=0,i=n.length;r=0;--r)a.push(n[r]);return this},find:function(t,e){let n=-1;for(let r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return i(this).eachBefore(l)},[Symbol.iterator]:function*(){var t,e,n,r,i=this,a=[i];do for(t=a.reverse(),a=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n1e-6){if(Math.abs(f*s-c*u)>1e-6&&a){var h=r-o,p=i-l,g=s*s+c*c,m=Math.sqrt(g),y=Math.sqrt(d),v=a*Math.tan((n-Math.acos((g+d-(h*h+p*p))/(2*m*y)))/2),b=v/y,x=v/m;Math.abs(b-1)>1e-6&&(this._+="L"+(t+b*u)+","+(e+b*f)),this._+="A"+a+","+a+",0,0,"+ +(f*h>u*p)+","+(this._x1=t+x*s)+","+(this._y1=e+x*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)}},arc:function(t,e,a,o,l,s){t=+t,e=+e,a=+a,s=!!s;var c=a*Math.cos(o),u=a*Math.sin(o),f=t+c,d=e+u,h=1^s,p=s?o-l:l-o;if(a<0)throw Error("negative radius: "+a);null===this._x1?this._+="M"+f+","+d:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-d)>1e-6)&&(this._+="L"+f+","+d),a&&(p<0&&(p=p%r+r),p>i?this._+="A"+a+","+a+",0,1,"+h+","+(t-c)+","+(e-u)+"A"+a+","+a+",0,1,"+h+","+(this._x1=f)+","+(this._y1=d):p>1e-6&&(this._+="A"+a+","+a+",0,"+ +(p>=n)+","+h+","+(this._x1=t+a*Math.cos(l))+","+(this._y1=e+a*Math.sin(l))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},e.Z=o},10233:function(t,e,n){"use strict";n.d(e,{Z:function(){return d}});var r=n(11108),i=n(93072),a=n(44915);function o(t){return t.innerRadius}function l(t){return t.outerRadius}function s(t){return t.startAngle}function c(t){return t.endAngle}function u(t){return t&&t.padAngle}function f(t,e,n,r,i,o,l){var s=t-n,c=e-r,u=(l?o:-o)/(0,a._b)(s*s+c*c),f=u*c,d=-u*s,h=t+f,p=e+d,g=n+f,m=r+d,y=(h+g)/2,v=(p+m)/2,b=g-h,x=m-p,O=b*b+x*x,w=i-o,_=h*m-g*p,k=(x<0?-1:1)*(0,a._b)((0,a.Fp)(0,w*w*O-_*_)),C=(_*x-b*k)/O,j=(-_*b-x*k)/O,M=(_*x+b*k)/O,S=(-_*b+x*k)/O,A=C-y,E=j-v,P=M-y,R=S-v;return A*A+E*E>P*P+R*R&&(C=M,j=S),{cx:C,cy:j,x01:-f,y01:-d,x11:C*(i/w-1),y11:j*(i/w-1)}}function d(){var t=o,e=l,n=(0,i.Z)(0),d=null,h=s,p=c,g=u,m=null;function y(){var i,o,l=+t.apply(this,arguments),s=+e.apply(this,arguments),c=h.apply(this,arguments)-a.ou,u=p.apply(this,arguments)-a.ou,y=(0,a.Wn)(u-c),v=u>c;if(m||(m=i=(0,r.Z)()),sa.Ho){if(y>a.BZ-a.Ho)m.moveTo(s*(0,a.mC)(c),s*(0,a.O$)(c)),m.arc(0,0,s,c,u,!v),l>a.Ho&&(m.moveTo(l*(0,a.mC)(u),l*(0,a.O$)(u)),m.arc(0,0,l,u,c,v));else{var b,x,O=c,w=u,_=c,k=u,C=y,j=y,M=g.apply(this,arguments)/2,S=M>a.Ho&&(d?+d.apply(this,arguments):(0,a._b)(l*l+s*s)),A=(0,a.VV)((0,a.Wn)(s-l)/2,+n.apply(this,arguments)),E=A,P=A;if(S>a.Ho){var R=(0,a.ZR)(S/l*(0,a.O$)(M)),T=(0,a.ZR)(S/s*(0,a.O$)(M));(C-=2*R)>a.Ho?(R*=v?1:-1,_+=R,k-=R):(C=0,_=k=(c+u)/2),(j-=2*T)>a.Ho?(T*=v?1:-1,O+=T,w-=T):(j=0,O=w=(c+u)/2)}var L=s*(0,a.mC)(O),B=s*(0,a.O$)(O),Z=l*(0,a.mC)(k),I=l*(0,a.O$)(k);if(A>a.Ho){var N,D=s*(0,a.mC)(w),z=s*(0,a.O$)(w),F=l*(0,a.mC)(_),$=l*(0,a.O$)(_);if(ya.Ho?P>a.Ho?(b=f(F,$,L,B,s,P,v),x=f(D,z,Z,I,s,P,v),m.moveTo(b.cx+b.x01,b.cy+b.y01),Pa.Ho&&C>a.Ho?E>a.Ho?(b=f(Z,I,D,z,l,-E,v),x=f(L,B,F,$,l,-E,v),m.lineTo(b.cx+b.x01,b.cy+b.y01),E1?0:t<-1?f:Math.acos(t)}function g(t){return t>=1?d:t<=-1?-d:Math.asin(t)}},78260:function(t,e,n){"use strict";function r(t){return t[0]}function i(t){return t[1]}n.d(e,{x:function(){return r},y:function(){return i}})},69916:function(t,e){!function(t){"use strict";function e(t){for(var e=Array(t),n=0;nc+l*o*u||f>=g)p=o;else{if(Math.abs(h)<=-s*u)return o;h*(p-d)>=0&&(p=d),d=o,g=f}return 0}o=o||1,l=l||1e-6,s=s||.1;for(var m=0;m<10;++m){if(a(i.x,1,r.x,o,e),f=i.fx=t(i.x,i.fxprime),h=n(i.fxprime,e),f>c+l*o*u||m&&f>=d)return g(p,o,d);if(Math.abs(h)<=-s*u)break;if(h>=0)return g(o,p,f);d=f,p=o,o*=2}return o}t.bisect=function(t,e,n,r){var i=(r=r||{}).maxIterations||100,a=r.tolerance||1e-10,o=t(e),l=t(n),s=n-e;if(o*l>0)throw"Initial bisect points must have opposite signs";if(0===o)return e;if(0===l)return n;for(var c=0;c=0&&(e=u),Math.abs(s)=g[p-1].fx){var S=!1;if(O.fx>M.fx?(a(w,1+d,x,-d,M),w.fx=t(w),w.fx=1)break;for(m=1;m=r(f.fxprime))break}return l.history&&l.history.push({x:f.x.slice(),fx:f.fx,fxprime:f.fxprime.slice(),alpha:p}),f},t.gradientDescent=function(t,e,n){for(var i=(n=n||{}).maxIterations||100*e.length,o=n.learnRate||.001,l={x:e.slice(),fx:0,fxprime:e.slice()},s=0;s=r(l.fxprime)));++s);return l},t.gradientDescentLineSearch=function(t,e,n){n=n||{};var a,l={x:e.slice(),fx:0,fxprime:e.slice()},s={x:e.slice(),fx:0,fxprime:e.slice()},c=n.maxIterations||100*e.length,u=n.learnRate||1,f=e.slice(),d=n.c1||.001,h=n.c2||.1,p=[];if(n.history){var g=t;t=function(t,e){return p.push(t.slice()),g(t,e)}}l.fx=t(l.x,l.fxprime);for(var m=0;mr(l.fxprime)));++m);return l},t.zeros=e,t.zerosM=function(t,n){return e(t).map(function(){return e(n)})},t.norm2=r,t.weightedSum=a,t.scale=i}(e)},8679:function(t,e,n){"use strict";var r=n(21296),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(t){return r.isMemo(t)?o:l[t.$$typeof]||i}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=o;var c=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&t(e,i,r)}var o=u(n);f&&(o=o.concat(f(n)));for(var l=s(e),g=s(n),m=0;ml?o:l,c=o>l?1:o/l,u=o>l?l/o:1;t.save(),t.scale(c,u),t.arc(r,a,s,0,2*Math.PI)}}function d(t,e){var n,r=e.x1,i=e.y1,a=e.x2,o=e.y2,l=e.markerStart,c=e.markerEnd,u=e.markerStartOffset,f=e.markerEndOffset,d=0,h=0,p=0,g=0,m=0;l&&(0,s.RV)(l)&&u&&(d=Math.cos(m=Math.atan2(o-i,a-r))*(u||0),h=Math.sin(m)*(u||0)),c&&(0,s.RV)(c)&&f&&(p=Math.cos(m=Math.atan2(i-o,r-a))*(f||0),g=Math.sin(m)*(f||0)),t.moveTo(r+d,i+h),t.lineTo(a+p,o+g)}function h(t,e){var n,r=e.markerStart,i=e.markerEnd,a=e.markerStartOffset,l=e.markerEndOffset,c=e.d,u=c.absolutePath,f=c.segments,d=0,h=0,p=0,g=0,m=0;if(r&&(0,s.RV)(r)&&a){var y=(0,o.CR)(r.parentNode.getStartTangent(),2),v=y[0],b=y[1];n=v[0]-b[0],d=Math.cos(m=Math.atan2(v[1]-b[1],n))*(a||0),h=Math.sin(m)*(a||0)}if(i&&(0,s.RV)(i)&&l){var x=(0,o.CR)(i.parentNode.getEndTangent(),2),v=x[0],b=x[1];n=v[0]-b[0],p=Math.cos(m=Math.atan2(v[1]-b[1],n))*(l||0),g=Math.sin(m)*(l||0)}for(var O=0;OP?E:P,I=E>P?1:E/P,N=E>P?P/E:1;t.translate(S,A),t.rotate(L),t.scale(I,N),t.arc(0,0,Z,R,T,!!(1-B)),t.scale(1/I,1/N),t.rotate(-L),t.translate(-S,-A)}j&&t.lineTo(w[6]+p,w[7]+g);break;case"Z":t.closePath()}}}function p(t,e){var n,r=e.markerStart,i=e.markerEnd,a=e.markerStartOffset,o=e.markerEndOffset,l=e.points.points,c=l.length,u=l[0][0],f=l[0][1],d=l[c-1][0],h=l[c-1][1],p=0,g=0,m=0,y=0,v=0;r&&(0,s.RV)(r)&&a&&(n=l[1][0]-l[0][0],p=Math.cos(v=Math.atan2(l[1][1]-l[0][1],n))*(a||0),g=Math.sin(v)*(a||0)),i&&(0,s.RV)(i)&&o&&(n=l[c-1][0]-l[0][0],m=Math.cos(v=Math.atan2(l[c-1][1]-l[0][1],n))*(o||0),y=Math.sin(v)*(o||0)),t.moveTo(u+(p||m),f+(g||y));for(var b=1;b0?1:-1,d=u>0?1:-1,h=f+d===0,p=(0,o.CR)(l.map(function(t){return(0,c.Z)(t,0,Math.min(Math.abs(s)/2,Math.abs(u)/2))}),4),g=p[0],m=p[1],y=p[2],v=p[3];t.moveTo(f*g+r,a),t.lineTo(s-f*m+r,a),0!==m&&t.arc(s-f*m+r,d*m+a,m,-d*Math.PI/2,f>0?0:Math.PI,h),t.lineTo(s+r,u-d*y+a),0!==y&&t.arc(s-f*y+r,u-d*y+a,y,f>0?0:Math.PI,d>0?Math.PI/2:1.5*Math.PI,h),t.lineTo(f*v+r,u+a),0!==v&&t.arc(f*v+r,u-d*v+a,v,d>0?Math.PI/2:-Math.PI/2,f>0?Math.PI:0,h),t.lineTo(r,d*g+a),0!==g&&t.arc(f*g+r,d*g+a,g,f>0?Math.PI:0,d>0?1.5*Math.PI:Math.PI/2,h)}else t.rect(r,a,s,u)}var y=function(t){function e(){var e=t.apply(this,(0,o.ev)([],(0,o.CR)(arguments),!1))||this;return e.name="canvas-path-generator",e}return(0,o.ZT)(e,t),e.prototype.init=function(){var t,e=((t={})[s.bn.CIRCLE]=u,t[s.bn.ELLIPSE]=f,t[s.bn.RECT]=m,t[s.bn.LINE]=d,t[s.bn.POLYLINE]=g,t[s.bn.POLYGON]=p,t[s.bn.PATH]=h,t[s.bn.TEXT]=void 0,t[s.bn.GROUP]=void 0,t[s.bn.IMAGE]=void 0,t[s.bn.HTML]=void 0,t[s.bn.MESH]=void 0,t);this.context.pathGeneratorFactory=e},e.prototype.destroy=function(){delete this.context.pathGeneratorFactory},e}(s.F6),v=n(80647),b=n(77160),x=n(85975),O=n(11702),w=n(74873),_=b.Ue(),k=b.Ue(),C=b.Ue(),j=x.create(),M=function(){function t(){var t=this;this.isHit=function(e,n,r,i){var a=t.context.pointInPathPickerFactory[e.nodeName];if(a){var o=x.invert(j,r),l=b.fF(k,b.t8(C,n[0],n[1],0),o);if(a(e,new v.E9(l[0],l[1]),i,t.isPointInPath,t.context,t.runtime))return!0}return!1},this.isPointInPath=function(e,n){var r=t.runtime.offscreenCanvasCreator.getOrCreateContext(t.context.config.offscreenCanvas),i=t.context.pathGeneratorFactory[e.nodeName];return i&&(r.beginPath(),i(r,e.parsedStyle),r.closePath()),r.isPointInPath(n.x,n.y)}}return t.prototype.apply=function(e,n){var r,i=this,a=e.renderingService,l=e.renderingContext;this.context=e,this.runtime=n;var s=null===(r=l.root)||void 0===r?void 0:r.ownerDocument;a.hooks.pick.tapPromise(t.tag,function(t){return(0,o.mG)(i,void 0,void 0,function(){return(0,o.Jh)(this,function(e){return[2,this.pick(s,t)]})})}),a.hooks.pickSync.tap(t.tag,function(t){return i.pick(s,t)})},t.prototype.pick=function(t,e){var n,r,i=e.topmost,a=e.position,l=a.x,s=a.y,c=b.t8(_,l,s,0),u=t.elementsFromBBox(c[0],c[1],c[0],c[1]),f=[];try{for(var d=(0,o.XA)(u),h=d.next();!h.done;h=d.next()){var p=h.value,g=p.getWorldTransform();if(this.isHit(p,c,g,!1)){var m=(0,v.Oi)(p);if(m){var y=m.parsedStyle.clipPath;if(this.isHit(y,c,y.getWorldTransform(),!0)){if(i)return e.picked=[p],e;f.push(p)}}else{if(i)return e.picked=[p],e;f.push(p)}}}}catch(t){n={error:t}}finally{try{h&&!h.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}return e.picked=f,e},t.tag="CanvasPicker",t}();function S(t,e,n){var r=t.parsedStyle,i=r.cx,a=r.cy,l=r.r,s=r.fill,c=r.stroke,u=r.lineWidth,f=r.increasedLineWidthForHitTesting,d=r.pointerEvents,h=((void 0===u?1:u)+(void 0===f?0:f))/2,p=(0,O.TE)(void 0===i?0:i,void 0===a?0:a,e.x,e.y),g=(0,o.CR)((0,v.L1)(void 0===d?"auto":d,s,c),2),m=g[0],y=g[1];return m&&y||n?p<=l+h:m?p<=l:!!y&&p>=l-h&&p<=l+h}function A(t,e,n){var r,i,a,l,s,c,u=t.parsedStyle,f=u.cx,d=void 0===f?0:f,h=u.cy,p=void 0===h?0:h,g=u.rx,m=u.ry,y=u.fill,b=u.stroke,x=u.lineWidth,O=u.increasedLineWidthForHitTesting,w=u.pointerEvents,_=e.x,k=e.y,C=(0,o.CR)((0,v.L1)(void 0===w?"auto":w,y,b),2),j=C[0],M=C[1],S=((void 0===x?1:x)+(void 0===O?0:O))/2,A=(_-d)*(_-d),E=(k-p)*(k-p);return j&&M||n?1>=A/((r=g+S)*r)+E/((i=m+S)*i):j?1>=A/(g*g)+E/(m*m):!!M&&A/((a=g-S)*a)+E/((l=m-S)*l)>=1&&1>=A/((s=g+S)*s)+E/((c=m+S)*c)}function E(t,e,n,r,i,a){return i>=t&&i<=t+n&&a>=e&&a<=e+r}function P(t,e,n,r,i,a,o,l){var s=(Math.atan2(l-e,o-t)+2*Math.PI)%(2*Math.PI),c={x:t+n*Math.cos(s),y:e+n*Math.sin(s)};return(0,O.TE)(c.x,c.y,o,l)<=a/2}function R(t,e,n,r,i,a,o){var l=Math.min(t,n),s=Math.max(t,n),c=Math.min(e,r),u=Math.max(e,r),f=i/2;return a>=l-f&&a<=s+f&&o>=c-f&&o<=u+f&&(0,O._x)(t,e,n,r,a,o)<=i/2}function T(t,e,n,r,i){var a=t.length;if(a<2)return!1;for(var o=0;oMath.abs(t)?0:t<0?-1:1}function B(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var a=0;a0!=L(s[1]-n)>0&&0>L(e-(n-l[1])*(l[0]-s[0])/(l[1]-s[1])-l[0])&&(r=!r)}return r}function Z(t,e,n){for(var r=!1,i=0;ic&&g/p>u,e&&(e.resetTransform?e.resetTransform():e.setTransform(1,0,0,1,0,0),r.clearFullScreen&&r.clearRect(e,0,0,a*n,o*n,i.background))});var g=function(t,e){t.isVisible()&&!t.isCulled()&&r.renderDisplayObject(t,e,r.context,r.restoreStack,n),(t.sortable.sorted||t.childNodes).forEach(function(t){g(t,e)})};l.hooks.endFrame.tap(t.tag,function(){if(0===s.root.childNodes.length){r.clearFullScreenLastFrame=!0;return}r.clearFullScreenLastFrame=!1;var t=f.getContext(),e=f.getDPR();if(x.fromScaling(r.dprMatrix,[e,e,1]),x.multiply(r.vpMatrix,r.dprMatrix,a.getOrthoMatrix()),r.clearFullScreen)g(s.root,t);else{var l=r.safeMergeAABB.apply(r,(0,o.ev)([r.mergeDirtyAABBs(r.renderQueue)],(0,o.CR)(r.removedRBushNodeAABBs.map(function(t){var e=t.minX,n=t.minY,r=t.maxX,i=t.maxY,a=new H.mN;return a.setMinMax([e,n,0],[r,i,0]),a})),!1));if(r.removedRBushNodeAABBs=[],H.mN.isEmpty(l)){r.renderQueue=[];return}var c=r.convertAABB2Rect(l),u=c.x,h=c.y,p=c.width,m=c.height,y=b.fF(r.vec3a,[u,h,0],r.vpMatrix),v=b.fF(r.vec3b,[u+p,h,0],r.vpMatrix),O=b.fF(r.vec3c,[u,h+m,0],r.vpMatrix),w=b.fF(r.vec3d,[u+p,h+m,0],r.vpMatrix),_=Math.min(y[0],v[0],w[0],O[0]),k=Math.min(y[1],v[1],w[1],O[1]),C=Math.max(y[0],v[0],w[0],O[0]),j=Math.max(y[1],v[1],w[1],O[1]),M=Math.floor(_),S=Math.floor(k),A=Math.ceil(C-_),E=Math.ceil(j-k);t.save(),r.clearRect(t,M,S,A,E,i.background),t.beginPath(),t.rect(M,S,A,E),t.clip(),t.setTransform(r.vpMatrix[0],r.vpMatrix[1],r.vpMatrix[4],r.vpMatrix[5],r.vpMatrix[12],r.vpMatrix[13]),i.renderer.getConfig().enableDirtyRectangleRenderingDebug&&d.dispatchEvent(new H.Aw(H.$6.DIRTY_RECTANGLE,{dirtyRect:{x:M,y:S,width:A,height:E}})),r.searchDirtyObjects(l).sort(function(t,e){return t.sortable.renderOrder-e.sortable.renderOrder}).forEach(function(e){e&&e.isVisible()&&!e.isCulled()&&r.renderDisplayObject(e,t,r.context,r.restoreStack,n)}),t.restore(),r.renderQueue.forEach(function(t){r.saveDirtyAABB(t)}),r.renderQueue=[]}r.restoreStack.forEach(function(){t.restore()}),r.restoreStack=[]}),l.hooks.render.tap(t.tag,function(t){r.clearFullScreen||r.renderQueue.push(t)})},t.prototype.clearRect=function(t,e,n,r,i,a){t.clearRect(e,n,r,i),a&&(t.fillStyle=a,t.fillRect(e,n,r,i))},t.prototype.renderDisplayObject=function(t,e,n,r,i){var a=t.nodeName,o=r[r.length-1];o&&!(t.compareDocumentPosition(o)&H.NB.DOCUMENT_POSITION_CONTAINS)&&(e.restore(),r.pop());var l=this.context.styleRendererFactory[a],s=this.pathGeneratorFactory[a],c=t.parsedStyle.clipPath;if(c){this.applyWorldTransform(e,c);var u=this.pathGeneratorFactory[c.nodeName];u&&(e.save(),r.push(t),e.beginPath(),u(e,c.parsedStyle),e.closePath(),e.clip())}l&&(this.applyWorldTransform(e,t),e.save(),this.applyAttributesToContext(e,t)),s&&(e.beginPath(),s(e,t.parsedStyle),t.nodeName!==H.bn.LINE&&t.nodeName!==H.bn.PATH&&t.nodeName!==H.bn.POLYLINE&&e.closePath()),l&&(l.render(e,t.parsedStyle,t,n,this,i),e.restore()),t.renderable.dirty=!1},t.prototype.convertAABB2Rect=function(t){var e=t.getMin(),n=t.getMax(),r=Math.floor(e[0]),i=Math.floor(e[1]);return{x:r,y:i,width:Math.ceil(n[0])-r,height:Math.ceil(n[1])-i}},t.prototype.mergeDirtyAABBs=function(t){var e=new H.mN;return t.forEach(function(t){var n=t.getRenderBounds();e.add(n);var r=t.renderable.dirtyRenderBounds;r&&e.add(r)}),e},t.prototype.searchDirtyObjects=function(t){var e=(0,o.CR)(t.getMin(),2),n=e[0],r=e[1],i=(0,o.CR)(t.getMax(),2),a=i[0],l=i[1];return this.rBush.search({minX:n,minY:r,maxX:a,maxY:l}).map(function(t){return t.displayObject})},t.prototype.saveDirtyAABB=function(t){var e=t.renderable;e.dirtyRenderBounds||(e.dirtyRenderBounds=new H.mN);var n=t.getRenderBounds();n&&e.dirtyRenderBounds.update(n.center,n.halfExtents)},t.prototype.applyAttributesToContext=function(t,e){var n=e.parsedStyle,r=n.stroke,i=n.fill,a=n.opacity,o=n.lineDash,l=n.lineDashOffset;o&&t.setLineDash(o),(0,G.Z)(l)||(t.lineDashOffset=l),(0,G.Z)(a)||(t.globalAlpha*=a),(0,G.Z)(r)||Array.isArray(r)||r.isNone||(t.strokeStyle=e.attributes.stroke),(0,G.Z)(i)||Array.isArray(i)||i.isNone||(t.fillStyle=e.attributes.fill)},t.prototype.applyWorldTransform=function(t,e,n){n?(x.copy(this.tmpMat4,e.getLocalTransform()),x.multiply(this.tmpMat4,n,this.tmpMat4),x.multiply(this.tmpMat4,this.vpMatrix,this.tmpMat4)):(x.copy(this.tmpMat4,e.getWorldTransform()),x.multiply(this.tmpMat4,this.vpMatrix,this.tmpMat4)),t.setTransform(this.tmpMat4[0],this.tmpMat4[1],this.tmpMat4[4],this.tmpMat4[5],this.tmpMat4[12],this.tmpMat4[13])},t.prototype.safeMergeAABB=function(){for(var t=[],e=0;e0,k=(null==o?void 0:o.alpha)===0,C=!!(x&&x.length),j=!(0,G.Z)(v)&&b>0,M=n.nodeName,S="inner"===y,A=_&&j&&(M===H.bn.PATH||M===H.bn.LINE||M===H.bn.POLYLINE||k||S);w&&(t.globalAlpha=c*(void 0===u?1:u),A||U(n,t,j),X(t,n,o,l,r,i,a,this.imagePool),A||this.clearShadowAndFilter(t,C,j)),_&&(t.globalAlpha=c*(void 0===d?1:d),t.lineWidth=p,(0,G.Z)(O)||(t.miterLimit=O),(0,G.Z)(g)||(t.lineCap=g),(0,G.Z)(m)||(t.lineJoin=m),A&&(S&&(t.globalCompositeOperation="source-atop"),U(n,t,!0),S&&(J(t,n,f,r,i,a,this.imagePool),t.globalCompositeOperation="source-over",this.clearShadowAndFilter(t,C,!0))),J(t,n,f,r,i,a,this.imagePool))},t.prototype.clearShadowAndFilter=function(t,e,n){if(n&&(t.shadowColor="transparent",t.shadowBlur=0),e){var r=t.filter;!(0,G.Z)(r)&&r.indexOf("drop-shadow")>-1&&(t.filter=r.replace(/drop-shadow\([^)]*\)/,"").trim()||"none")}},t}();function U(t,e,n){var r=t.parsedStyle,i=r.filter,a=r.shadowColor,o=r.shadowBlur,l=r.shadowOffsetX,s=r.shadowOffsetY;i&&i.length&&(e.filter=t.style.filter),n&&(e.shadowColor=a.toString(),e.shadowBlur=o||0,e.shadowOffsetX=l||0,e.shadowOffsetY=s||0)}function Q(t,e,n,r,i,a,o){if("rect"===t.image.nodeName){var l,s,c=t.image.parsedStyle,u=c.width,f=c.height;s=r.contextService.getDPR();var d=r.config.offscreenCanvas;(l=a.offscreenCanvasCreator.getOrCreateCanvas(d)).width=u*s,l.height=f*s;var h=a.offscreenCanvasCreator.getOrCreateContext(d),p=[];t.image.forEach(function(t){i.renderDisplayObject(t,h,r,p,a)}),p.forEach(function(){h.restore()})}return o.getOrCreatePatternSync(t,n,l,s,e.getGeometryBounds().min,function(){e.renderable.dirty=!0,r.renderingService.dirtify()})}function K(t,e,n,r){var i;if(t.type===H.GL.LinearGradient||t.type===H.GL.RadialGradient){var a=e.getGeometryBounds(),l=a&&2*a.halfExtents[0]||1,s=a&&2*a.halfExtents[1]||1,c=a&&a.min||[0,0];i=r.getOrCreateGradient((0,o.pi)((0,o.pi)({type:t.type},t.value),{min:c,width:l,height:s}),n)}return i}function X(t,e,n,r,i,a,o,l,s){void 0===s&&(s=!1),Array.isArray(n)?n.forEach(function(n){t.fillStyle=K(n,e,t,l),s||(r?t.fill(r):t.fill())}):((0,H.R)(n)&&(t.fillStyle=Q(n,e,t,i,a,o,l)),s||(r?t.fill(r):t.fill()))}function J(t,e,n,r,i,a,o,l){void 0===l&&(l=!1),Array.isArray(n)?n.forEach(function(n){t.strokeStyle=K(n,e,t,o),l||t.stroke()}):((0,H.R)(n)&&(t.strokeStyle=Q(n,e,t,r,i,a,o)),l||t.stroke())}var tt=function(){function t(t){this.imagePool=t}return t.prototype.render=function(t,e,n){var r,i=e.x,a=e.y,o=e.width,l=e.height,s=e.src,c=e.shadowColor,u=e.shadowBlur,f=o,d=l;if((0,q.Z)(s)?r=this.imagePool.getImageSync(s):(f||(f=s.width),d||(d=s.height),r=s),r){U(n,t,!(0,G.Z)(c)&&u>0);try{t.drawImage(r,void 0===i?0:i,void 0===a?0:a,f,d)}catch(t){}}},t}(),te=function(){function t(t){this.imagePool=t}return t.prototype.render=function(t,e,n,r,i,a){n.getBounds();var o=e.lineWidth,l=void 0===o?1:o,s=e.textAlign,c=void 0===s?"start":s,u=e.textBaseline,f=void 0===u?"alphabetic":u,d=e.lineJoin,h=e.miterLimit,p=void 0===h?10:h,g=e.letterSpacing,m=void 0===g?0:g,y=e.stroke,v=e.fill,b=e.fillRule,x=e.fillOpacity,O=void 0===x?1:x,w=e.strokeOpacity,_=void 0===w?1:w,k=e.opacity,C=void 0===k?1:k,j=e.metrics,M=e.x,S=e.y,A=e.dx,E=e.dy,P=e.shadowColor,R=e.shadowBlur,T=j.font,L=j.lines,B=j.height,Z=j.lineHeight,I=j.lineMetrics;t.font=T,t.lineWidth=l,t.textAlign="middle"===c?"center":c;var N=f;a.enableCSSParsing||"alphabetic"!==N||(N="bottom"),t.lineJoin=void 0===d?"miter":d,(0,G.Z)(p)||(t.miterLimit=p);var D=void 0===S?0:S;"middle"===f?D+=-B/2-Z/2:"bottom"===f||"alphabetic"===f||"ideographic"===f?D+=-B:("top"===f||"hanging"===f)&&(D+=-Z);var z=(void 0===M?0:M)+(A||0);D+=E||0,1===L.length&&("bottom"===N?(N="middle",D-=.5*B):"top"===N&&(N="middle",D+=.5*B)),t.textBaseline=N,U(n,t,!(0,G.Z)(P)&&R>0);for(var F=0;F=1?Math.ceil(n):1,this.dpr=n,this.$canvas&&(this.$canvas.width=this.dpr*t,this.$canvas.height=this.dpr*e,(0,l.$p)(this.$canvas,t,e)),this.renderingContext.renderReasons.add(l.Rr.CAMERA_CHANGED)},t.prototype.applyCursorStyle=function(t){this.$container&&this.$container.style&&(this.$container.style.cursor=t)},t.prototype.toDataURL=function(t){return void 0===t&&(t={}),(0,o.mG)(this,void 0,void 0,function(){var e,n;return(0,o.Jh)(this,function(r){return e=t.type,n=t.encoderOptions,[2,this.context.canvas.toDataURL(e,n)]})})},t}(),tp=function(t){function e(){var e=t.apply(this,(0,o.ev)([],(0,o.CR)(arguments),!1))||this;return e.name="canvas-context-register",e}return(0,o.ZT)(e,t),e.prototype.init=function(){this.context.ContextService=th},e.prototype.destroy=function(){delete this.context.ContextService},e}(l.F6),tg=function(t){function e(e){var n=t.call(this,e)||this;return n.registerPlugin(new tp),n.registerPlugin(new td),n.registerPlugin(new y),n.registerPlugin(new tn),n.registerPlugin(new ta),n.registerPlugin(new W),n.registerPlugin(new ts),n}return(0,o.ZT)(e,t),e}(l.I8),tm=n(98875),ty=n(68040),tv=n(90494),tb=n(83787),tx=n(80866),tO=n(95188),tw=n(5199),t_=n(83914),tk=n(44022),tC=n(17694),tj=n(76115),tM=n(39513),tS=n(30335),tA=n(90155),tE=n(98823),tP=n(45323),tR=n(41745),tT=n(11896);let tL=[["legendCategory",[[["color","discrete"],["opacity","discrete"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","constant"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","constant"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","discrete"]],[["color","discrete"],["opacity","discrete"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","discrete"]],[["color","discrete"],["opacity","constant"],["size","constant"]],[["color","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","constant"]],[["color","discrete"],["opacity","constant"],["shape","constant"]],[["color","constant"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","discrete"]],[["color","constant"],["opacity","discrete"],["size","constant"]],[["color","constant"],["opacity","constant"],["shape","discrete"]],[["color","constant"],["opacity","discrete"],["shape","constant"]],[["color","discrete"],["shape","discrete"]],[["color","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"]],[["color","discrete"],["opacity","constant"]],[["color","discrete"],["shape","constant"]],[["color","constant"],["shape","discrete"]],[["color","constant"],["size","constant"]],[["color","constant"],["opacity","discrete"]],[["color","discrete"]]]],["legendContinuousSize",[[["color","continuous"],["opacity","continuous"],["size","continuous"]],[["color","constant"],["opacity","continuous"],["size","continuous"]],[["color","continuous"],["size","continuous"]],[["color","constant"],["size","continuous"]],[["size","continuous"],["opacity","continuous"]],[["size","continuous"]]]],["legendContinuousBlockSize",[[["color","distribution"],["opacity","distribution"],["size","distribution"]],[["color","distribution"],["size","distribution"]]]],["legendContinuousBlock",[[["color","distribution"],["opacity","continuous"]],[["color","distribution"]]]],["legendContinuous",[[["color","continuous"],["opacity","continuous"]],[["color","continuous"]],[["opacity","continuous"]]]]];var tB=n(17816),tZ=n(67700),tI=n(24816),tN=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let tD=t=>{let{important:e={}}=t,n=tN(t,["important"]);return r=>{let{theme:i,coordinate:a,scales:o}=r;return(0,tI._T)(Object.assign(Object.assign(Object.assign({},n),function(t){let e=t%(2*Math.PI);return e===Math.PI/2?{titleTransform:"translate(0, 50%)"}:e>-Math.PI/2&&eMath.PI/2&&e<3*Math.PI/2?{titleTransform:"translate(-50%, 0)"}:{}}(t.orientation)),{important:Object.assign(Object.assign({},function(t,e,n,r){let{radar:i}=t,[a]=r,o=a.getOptions().name,[l,s]=(0,tZ.gl)(n),{axisRadar:c={}}=e;return Object.assign(Object.assign({},c),{grid:"position"===o,gridConnect:"line",gridControlAngles:Array(i.count).fill(0).map((t,e)=>{let n=(s-l)/i.count;return n*e})})}(t,i,a,o)),e)}))(r)}};tD.props=Object.assign(Object.assign({},tI._T.props),{defaultPosition:"center"});var tz=n(53347);let tF=t=>function(){for(var e=arguments.length,n=Array(e),r=0;re=>{let{scales:n}=e,r=(0,t$.nU)(n,"size");return(0,tz.c)(Object.assign({},{type:"size",data:r.getTicks().map((t,e)=>({value:t,label:String(t)}))},t))(e)};tW.props=Object.assign(Object.assign({},tz.c.props),{defaultPosition:"top",defaultOrientation:"horizontal"});let tH=t=>tW(Object.assign({},{block:!0},t));tH.props=Object.assign(Object.assign({},tz.c.props),{defaultPosition:"top",defaultOrientation:"horizontal"});var tG=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let tq=function(){let{static:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e=>{let{width:n,height:r,depth:i,paddingLeft:a,paddingRight:o,paddingTop:l,paddingBottom:s,padding:c,inset:u,insetLeft:f,insetTop:d,insetRight:h,insetBottom:p,margin:g,marginLeft:m,marginBottom:y,marginTop:v,marginRight:b,data:x,coordinate:O,theme:w,component:_,interaction:k,x:C,y:j,z:M,key:S,frame:A,labelTransform:E,parentKey:P,clip:R,viewStyle:T,title:L}=e,B=tG(e,["width","height","depth","paddingLeft","paddingRight","paddingTop","paddingBottom","padding","inset","insetLeft","insetTop","insetRight","insetBottom","margin","marginLeft","marginBottom","marginTop","marginRight","data","coordinate","theme","component","interaction","x","y","z","key","frame","labelTransform","parentKey","clip","viewStyle","title"]);return[Object.assign(Object.assign({type:"standardView",x:C,y:j,z:M,key:S,width:n,height:r,depth:i,padding:c,paddingLeft:a,paddingRight:o,paddingTop:l,inset:u,insetLeft:f,insetTop:d,insetRight:h,insetBottom:p,paddingBottom:s,theme:w,coordinate:O,component:_,interaction:k,frame:A,labelTransform:E,margin:g,marginLeft:m,marginBottom:y,marginTop:v,marginRight:b,parentKey:P,clip:R,style:T},!t&&{title:L}),{marks:[Object.assign(Object.assign(Object.assign({},B),{key:"".concat(S,"-0"),data:x}),t&&{title:L})]})]}};tq.props={};var tY=n(89511),tV=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let tU=()=>t=>{let{children:e}=t,n=tV(t,["children"]);if(!Array.isArray(e))return[];let{data:r,scale:i={},axis:a={},legend:o={},encode:l={},transform:s=[]}=n,c=tV(n,["data","scale","axis","legend","encode","transform"]),u=e.map(t=>{var{data:e,scale:n={},axis:c={},legend:u={},encode:f={},transform:d=[]}=t,h=tV(t,["data","scale","axis","legend","encode","transform"]);return Object.assign({data:(0,tY.b3)(e,r),scale:(0,tb.Z)({},i,n),encode:(0,tb.Z)({},l,f),transform:[...s,...d],axis:!!c&&!!a&&(0,tb.Z)({},a,c),legend:!!u&&!!o&&(0,tb.Z)({},o,u)},h)});return[Object.assign(Object.assign({},c),{marks:u,type:"standardView"})]};tU.props={};var tQ=n(86124),tK=n(7254),tX=n(5099),tJ=n(11616),t0=n(70174);function t1(t,e,n,r){let i=e.length/2,a=e.slice(0,i),o=e.slice(i),l=(0,tJ.Z)(a,(t,e)=>Math.abs(t[1]-o[e][1]));l=Math.max(Math.min(l,i-2),1);let s=t=>[a[t][0],(a[t][1]+o[t][1])/2],c=s(l),u=s(l-1),f=s(l+1),d=(0,t0.EU)((0,t0.lu)(f,u))/Math.PI*180;return{x:c[0],y:c[1],transform:"rotate(".concat(d,")"),textAlign:"center",textBaseline:"middle"}}function t2(t,e,n,r){let{bounds:i}=n,[[a,o],[l,s]]=i,c=l-a,u=s-o;return(t=>{let{x:e,y:r}=t,i=(0,tM.Lq)(n.x,c),l=(0,tM.Lq)(n.y,u);return Object.assign(Object.assign({},t),{x:(i||e)+a,y:(l||r)+o})})("left"===t?{x:0,y:u/2,textAlign:"start",textBaseline:"middle"}:"right"===t?{x:c,y:u/2,textAlign:"end",textBaseline:"middle"}:"top"===t?{x:c/2,y:0,textAlign:"center",textBaseline:"top"}:"bottom"===t?{x:c/2,y:u,textAlign:"center",textBaseline:"bottom"}:"top-left"===t?{x:0,y:0,textAlign:"start",textBaseline:"top"}:"top-right"===t?{x:c,y:0,textAlign:"end",textBaseline:"top"}:"bottom-left"===t?{x:0,y:u,textAlign:"start",textBaseline:"bottom"}:"bottom-right"===t?{x:c,y:u,textAlign:"end",textBaseline:"bottom"}:{x:c/2,y:u/2,textAlign:"center",textBaseline:"middle"})}function t5(t,e,n,r){let{y:i,y1:a,autoRotate:o,rotateToAlignArc:l}=n,s=r.getCenter(),c=(0,tQ._x)(r,e,[i,a]),{innerRadius:u,outerRadius:f,startAngle:d,endAngle:h}=c,p="inside"===t?(d+h)/2:h,g=t6(p,o,l),m=(()=>{let[n,r]=e,[i,a]="inside"===t?t3(s,p,u+(f-u)*.5):(0,t0.Pi)(n,r);return{x:i,y:a}})();return Object.assign(Object.assign({},m),{textAlign:"inside"===t?"center":"start",textBaseline:"middle",rotate:g})}function t3(t,e,n){return[t[0]+Math.sin(e)*n,t[1]-Math.cos(e)*n]}function t6(t,e,n){if(!e)return 0;let r=n?0:0>Math.sin(t)?90:-90;return t/Math.PI*180+r}function t4(t,e,n,r){let{y:i,y1:a,autoRotate:o,rotateToAlignArc:l,radius:s=.5,offset:c=0}=n,u=(0,tQ._x)(r,e,[i,a]),{startAngle:f,endAngle:d}=u,h=r.getCenter(),p=(f+d)/2,g=t6(p,o,l),{innerRadius:m,outerRadius:y}=u,[v,b]=t3(h,p,m+(y-m)*s+c);return Object.assign({x:v,y:b},{textAlign:"center",textBaseline:"middle",rotate:g})}function t8(t){return void 0===t?null:t}function t7(t,e,n,r){let{bounds:i}=n,[a]=i;return{x:t8(a[0]),y:t8(a[1])}}function t9(t,e,n,r){let{bounds:i}=n;if(1===i.length)return t7(t,e,n,r);let a=(0,tZ.DS)(r)?t5:(0,tZ.bC)(r)?t4:t2;return a(t,e,n,r)}function et(t,e,n){let r=(0,tQ._x)(n,t,[e.y,e.y1]),{innerRadius:i,outerRadius:a}=r;return i+(a-i)}function ee(t,e,n){let r=(0,tQ._x)(n,t,[e.y,e.y1]),{startAngle:i,endAngle:a}=r;return(i+a)/2}function en(t,e,n,r){let{autoRotate:i,rotateToAlignArc:a,offset:o=0,connector:l=!0,connectorLength:s=o,connectorLength2:c=0,connectorDistance:u=0}=n,f=r.getCenter(),d=ee(e,n,r),h=Math.sin(d)>0?1:-1,p=t6(d,i,a),g={textAlign:h>0||(0,tZ.DS)(r)?"start":"end",textBaseline:"middle",rotate:p},m=et(e,n,r),y=m+(l?s:o),[[v,b],[x,O],[w,_]]=function(t,e,n,r,i){let[a,o]=t3(t,e,n),[l,s]=t3(t,e,r),c=Math.sin(e)>0?1:-1;return[[a,o],[l,s],[l+c*i,s]]}(f,d,m,y,l?c:0),k=l?+u*h:0,C=w+k;return Object.assign(Object.assign({x0:v,y0:b,x:w+k,y:_},g),{connector:l,connectorPoints:[[x-C,O-_],[w-C,_-_]]})}function er(t,e,n,r){let{bounds:i}=n;if(1===i.length)return t7(t,e,n,r);let a=(0,tZ.DS)(r)?t5:(0,tZ.bC)(r)?en:t2;return a(t,e,n,r)}var ei=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function ea(t,e,n,r){if(!(0,tZ.bC)(r))return{};let{connectorLength:i,connectorLength2:a,connectorDistance:o}=n,l=ei(en("outside",e,n,r),[]),s=r.getCenter(),c=et(e,n,r),u=ee(e,n,r),f=Math.sin(u)>0?1:-1,d=s[0]+(c+i+a+ +o)*f,{x:h}=l,p=d-h;return l.x+=p,l.connectorPoints[0][0]-=p,l}var eo=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function el(t,e,n,r){if(!(0,tZ.bC)(r))return{};let{connectorLength:i,connectorLength2:a,connectorDistance:o}=n,l=eo(en("outside",e,n,r),[]),{x0:s,y0:c}=l,u=r.getCenter(),f=(0,tZ.H5)(r),d=(0,t0.SH)([s-u[0],c-u[1]]),h=Math.sin(d)>0?1:-1,[p,g]=t3(u,d,f+i);return l.x=p+(a+o)*h,l.y=g,l}var es=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let ec=(t,e)=>{let{coordinate:n,theme:i}=e,{render:a}=t;return(e,o)=>{let{text:l,x:s,y:c,transform:u="",transformOrigin:f,className:d=""}=o,h=es(o,["text","x","y","transform","transformOrigin","className"]),p=function(t,e,n,i,a){let{position:o}=e,{render:l}=a,s=void 0!==o?o:(0,tZ.bC)(n)?"inside":(0,tZ._e)(n)?"right":"top",c=l?"htmlLabel":"inside"===s?"innerLabel":"label",u=i[c],f=Object.assign({},u,e),d=r[(0,tK.e)(s)];if(!d)throw Error("Unknown position: ".concat(s));return Object.assign(Object.assign({},u),d(s,t,f,n,a))}(e,o,n,i,t),{rotate:g=0,transform:m=""}=p,y=es(p,["rotate","transform"]);return(0,tx.F)(new tX.g).call(tQ.bg,y).style("text","".concat(l)).style("className","".concat(d," g2-label")).style("innerHTML",a?a(l,o.datum,o.index):void 0).style("labelTransform","".concat(m," rotate(").concat(+g,") ").concat(u).trim()).style("labelTransformOrigin",f).style("coordCenter",n.getCenter()).call(tQ.bg,h).node()}};ec.props={defaultMarker:"point"};var eu=n(14121),ef=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function ed(t,e){let n=Object.assign(Object.assign({},{"component.axisRadar":tD,"component.axisLinear":tI._T,"component.axisArc":tI.Yv,"component.legendContinuousBlock":tF,"component.legendContinuousBlockSize":tH,"component.legendContinuousSize":tW,"interaction.event":eu.j,"composition.mark":tq,"composition.view":tU,"shape.label.label":ec}),e),r=e=>{if("string"!=typeof e)return e;let r="".concat(t,".").concat(e);return n[r]||(0,tM.vU)("Unknown Component: ".concat(r))};return[(t,e)=>{let{type:n}=t,i=ef(t,["type"]);n||(0,tM.vU)("Plot type is required!");let a=r(n);return null==a?void 0:a(i,e)},r]}function eh(t){let{canvas:e,group:n}=t;return(null==e?void 0:e.document)||(null==n?void 0:n.ownerDocument)||(0,tM.vU)("Cannot find library document")}var ep=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function eg(t,e){let{coordinate:n={}}=t,r=ep(t,["coordinate"]),{type:i,transform:a=[]}=n,o=ep(n,["type","transform"]);if(!i)return Object.assign(Object.assign({},r),{coordinates:a});let[,l]=ed("coordinate",e),{transform:s=!1}=l(i).props||{};if(s)throw Error("Unknown coordinate: ".concat(i,"."));return Object.assign(Object.assign({},r),{coordinates:[Object.assign({type:i},o),...a]})}function em(t,e){return t.filter(t=>t.type===e)}function ey(t){return em(t,"polar").length>0}function ev(t){return em(t,"transpose").length%2==1}function eb(t){return em(t,"theta").length>0}function ex(t){return em(t,"radial").length>0}var eO=n(36380),ew=n(25338),e_=n(23865);function ek(t){for(var e=t.length/6|0,n=Array(e),r=0;r()=>t;function eN(t,e){return function(n){return t+n*e}}function eD(t,e){var n=e-t;return n?eN(t,n):eI(isNaN(t)?e:t)}function ez(t){return function(e){var n,r,i=e.length,a=Array(i),o=Array(i),l=Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,l=reF(t[t.length-1]),eW=[,,,].concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(ek),eH=e$(eW),eG=[,,,].concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(ek),eq=e$(eG),eY=[,,,].concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(ek),eV=e$(eY),eU=[,,,].concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(ek),eQ=e$(eU),eK=[,,,].concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(ek),eX=e$(eK),eJ=[,,,].concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(ek),e0=e$(eJ),e1=[,,,].concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(ek),e2=e$(e1),e5=[,,,].concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(ek),e3=e$(e5),e6=[,,,].concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(ek),e4=e$(e6),e8=[,,,].concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(ek),e7=e$(e8),e9=[,,,].concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(ek),nt=e$(e9),ne=[,,,].concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(ek),nn=e$(ne),nr=[,,,].concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(ek),ni=e$(nr),na=[,,,].concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(ek),no=e$(na),nl=[,,,].concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(ek),ns=e$(nl),nc=[,,,].concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(ek),nu=e$(nc),nf=[,,,].concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(ek),nd=e$(nf),nh=[,,,].concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(ek),np=e$(nh),ng=[,,,].concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(ek),nm=e$(ng),ny=[,,,].concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(ek),nv=e$(ny),nb=[,,,].concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(ek),nx=e$(nb),nO=[,,,].concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(ek),nw=e$(nO),n_=[,,,].concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(ek),nk=e$(n_),nC=[,,,].concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(ek),nj=e$(nC),nM=[,,,].concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(ek),nS=e$(nM),nA=[,,,].concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(ek),nE=e$(nA),nP=[,,,].concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(ek),nR=e$(nP);function nT(t){return"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-(t=Math.max(0,Math.min(1,t)))*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"}var nL=n(44087);let nB=Math.PI/180,nZ=180/Math.PI;var nI=-1.78277*.29227-.1347134789;function nN(t,e,n,r){return 1==arguments.length?function(t){if(t instanceof nD)return new nD(t.h,t.s,t.l,t.opacity);t instanceof eB.Ss||(t=(0,eB.SU)(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(nI*r+-1.7884503806*e-3.5172982438*n)/(nI+-1.7884503806-3.5172982438),a=r-i,o=-((1.97294*(n-i)- -.29227*a)/.90649),l=Math.sqrt(o*o+a*a)/(1.97294*i*(1-i)),s=l?Math.atan2(o,a)*nZ-120:NaN;return new nD(s<0?s+360:s,l,i,t.opacity)}(t):new nD(t,e,n,null==r?1:r)}function nD(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function nz(t){return function e(n){function r(e,r){var i=t((e=nN(e)).h,(r=nN(r)).h),a=eD(e.s,r.s),o=eD(e.l,r.l),l=eD(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=a(t),e.l=o(Math.pow(t,n)),e.opacity=l(t),e+""}}return n=+n,r.gamma=e,r}(1)}(0,nL.Z)(nD,nN,(0,nL.l)(eB.Il,{brighter:function(t){return t=null==t?eB.J5:Math.pow(eB.J5,t),new nD(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?eB.xV:Math.pow(eB.xV,t),new nD(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*nB,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new eB.Ss(255*(e+n*(-.14861*r+1.78277*i)),255*(e+n*(-.29227*r+-.90649*i)),255*(e+n*(1.97294*r)),this.opacity)}})),nz(function(t,e){var n=e-t;return n?eN(t,n>180||n<-180?n-360*Math.round(n/360):n):eI(isNaN(t)?e:t)});var nF=nz(eD),n$=nF(nN(300,.5,0),nN(-240,.5,1)),nW=nF(nN(-100,.75,.35),nN(80,1.5,.8)),nH=nF(nN(260,.75,.35),nN(80,1.5,.8)),nG=nN();function nq(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return nG.h=360*t-100,nG.s=1.5-1.5*e,nG.l=.8-.9*e,nG+""}var nY=(0,eB.B8)(),nV=Math.PI/3,nU=2*Math.PI/3;function nQ(t){var e;return t=(.5-t)*Math.PI,nY.r=255*(e=Math.sin(t))*e,nY.g=255*(e=Math.sin(t+nV))*e,nY.b=255*(e=Math.sin(t+nU))*e,nY+""}function nK(t){return"rgb("+Math.max(0,Math.min(255,Math.round(34.61+(t=Math.max(0,Math.min(1,t)))*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"}function nX(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var nJ=nX(ek("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),n0=nX(ek("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),n1=nX(ek("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),n2=nX(ek("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),n5=n(69959);function n3(t,e){let n=Object.keys(t);for(let r of Object.values(e)){let{name:e}=r.getOptions();if(e in t){let i=n.filter(t=>t.startsWith(e)).map(t=>+(t.replace(e,"")||0)),a=(0,tE.Z)(i)+1,o="".concat(e).concat(a);t[o]=r,r.getOptions().key=o}else t[e]=r}return t}function n6(t,e){let n,r;let[i]=ed("scale",e),{relations:a}=t,[o]=a&&Array.isArray(a)?[t=>{var e;n=t.map.bind(t),r=null===(e=t.invert)||void 0===e?void 0:e.bind(t);let i=a.filter(t=>{let[e]=t;return"function"==typeof e}),o=a.filter(t=>{let[e]=t;return"function"!=typeof e}),l=new Map(o);if(t.map=t=>{for(let[e,n]of i)if(e(t))return n;return l.has(t)?l.get(t):n(t)},!r)return t;let s=new Map(o.map(t=>{let[e,n]=t;return[n,e]})),c=new Map(i.map(t=>{let[e,n]=t;return[n,e]}));return t.invert=t=>c.has(t)?t:s.has(t)?s.get(t):r(t),t},t=>(null!==n&&(t.map=n),null!==r&&(t.invert=r),t)]:[tM.yR,tM.yR],l=i(t);return o(l)}function n4(t,e){let n=t.filter(t=>{let{name:n,facet:r=!0}=t;return r&&n===e}),r=n.flatMap(t=>t.domain),i=n.every(n8)?(0,e_.Z)(r):n.every(n7)?Array.from(new Set(r)):null;if(null!==i)for(let t of n)t.domain=i}function n8(t){let{type:e}=t;return"string"==typeof e&&["linear","log","pow","time"].includes(e)}function n7(t){let{type:e}=t;return"string"==typeof e&&["band","point","ordinal"].includes(e)}function n9(t,e,n,r,a){let[o]=ed("palette",a),{category10:l,category20:s}=r,c=(0,tj.Tw)(t.flat()).length<=l.length?l:s,{palette:u=c,offset:f}=e;if(Array.isArray(u))return u;try{return o({type:u})}catch(e){let t=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t=>t;if(!t)return null;let r=(0,t_.Z)(t),a=i["scheme".concat(r)],o=i["interpolate".concat(r)];if(!a&&!o)return null;if(a){if(!a.some(Array.isArray))return a;let t=a[e.length];if(t)return t}return e.map((t,r)=>o(n(r/e.length)))}(u,n,f);if(t)return t;throw Error("Unknown Component: ".concat(u," "))}}function rt(t,e){return e||(t.startsWith("x")||t.startsWith("y")||t.startsWith("position")||t.startsWith("size")?"point":"ordinal")}function re(t,e,n){return n||("color"!==t?"linear":e?"linear":"sequential")}function rn(t,e){if(0===t.length)return t;let{domainMin:n,domainMax:r}=e,[i,a]=t;return[null!=n?n:i,null!=r?r:a]}function rr(t){return ra(t,t=>{let e=typeof t;return"string"===e||"boolean"===e})}function ri(t){return ra(t,t=>t instanceof Date)}function ra(t,e){for(let n of t)if(n.some(e))return!0;return!1}let ro={linear:"linear",identity:"identity",log:"log",pow:"pow",sqrt:"sqrt",sequential:"sequential"},rl={threshold:"threshold",quantize:"quantize",quantile:"quantile"},rs={ordinal:"ordinal",band:"band",point:"point"},rc={constant:"constant"};var ru=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function rf(t,e,n,r,i){let[a]=ed("component",r),{scaleInstances:o,scale:l,bbox:s}=t,c=ru(t,["scaleInstances","scale","bbox"]),u=a(c);return u({coordinate:e,library:r,markState:i,scales:o,theme:n,value:{bbox:s,library:r},scale:l})}function rd(t,e){let n=["left","right","bottom","top"],r=(0,tk.Xx)(t,t=>{let{type:e,position:r,group:i}=t;return n.includes(r)?void 0===i?e.startsWith("legend")?"legend-".concat(r):Symbol("independent"):"independent"===i?Symbol("independent"):i:Symbol("independent")});return r.flatMap(t=>{let[,n]=t;if(1===n.length)return n[0];if(void 0!==e){let t=n.filter(t=>void 0!==t.length).map(t=>t.length),r=(0,tA.Z)(t);if(r>e)return n.forEach(t=>t.group=Symbol("independent")),n;let i=n.length-t.length,a=(e-r)/i;n.forEach(t=>{void 0===t.length&&(t.length=a)})}let r=(0,tE.Z)(n,t=>t.size),i=(0,tE.Z)(n,t=>t.order),a=(0,tE.Z)(n,t=>t.crossPadding),o=n[0].position;return{type:"group",size:r,order:i,position:o,children:n,crossPadding:a}})}function rh(t){let e=em(t,"polar");if(e.length){let t=e[e.length-1],{startAngle:n,endAngle:r}=(0,tP.C)(t);return[n,r]}let n=em(t,"radial");if(n.length){let t=n[n.length-1],{startAngle:e,endAngle:r}=(0,tR.M)(t);return[e,r]}return[-Math.PI/2,Math.PI/2*3]}function rp(t,e,n,r,i,a){let{type:o}=t;if(["left","right","bottom","top"].includes(r)&&"string"==typeof o)return(o.startsWith("axis")?rb:o.startsWith("group")?rg:o.startsWith("legendContinuous")?rx:"legendCategory"===o?rO:o.startsWith("slider")?rv:"title"===o?ry:o.startsWith("scrollbar")?rm:()=>{})(t,e,n,r,i,a)}function rg(t,e,n,r,i,a){let{children:o}=t,l=(0,tE.Z)(o,t=>t.crossPadding);o.forEach(t=>t.crossPadding=l),o.forEach(t=>rp(t,e,n,r,i,a));let s=(0,tE.Z)(o,t=>t.size);t.size=s,o.forEach(t=>t.size=s)}function rm(t,e,n,r,i,a){let{trackSize:o=6}=(0,tb.Z)({},i.scrollbar,t);t.size=o}function ry(t,e,n,r,i,a){let o=(0,tb.Z)({},i.title,t),{title:l,subtitle:s,spacing:c=0}=o,u=ru(o,["title","subtitle","spacing"]);if(l){let e=(0,tM.hB)(u,"title"),n=rM(l,e);t.size=n.height}if(s){let e=(0,tM.hB)(u,"subtitle"),n=rM(s,e);t.size+=c+n.height}}function rv(t,e,n,r,i,a){let{trackSize:o,handleIconSize:l}=(()=>{let{slider:e}=i;return(0,tb.Z)({},e,t)})(),s=Math.max(o,2.4*l);t.size=s}function rb(t,e,n,r,i,a){var o;t.transform=t.transform||[{type:"hide"}];let l="left"===r||"right"===r,s=rC(t,r,i),{tickLength:c=0,labelSpacing:u=0,titleSpacing:f=0,labelAutoRotate:d}=s,h=ru(s,["tickLength","labelSpacing","titleSpacing","labelAutoRotate"]),p=rw(t,a),g=r_(h,p),m=c+u;if(g&&g.length){let r=(0,tE.Z)(g,t=>t.width),i=(0,tE.Z)(g,t=>t.height);if(l)t.size=r+m;else{let{tickFilter:a,labelTransform:l}=t;(function(t,e,n,r,i){let a=(0,tA.Z)(e,t=>t.width);if(a>n)return!0;let o=t.clone();o.update({range:[0,n]});let l=rj(t,i),s=l.map(t=>o.map(t)+function(t,e){if(!t.getBandWidth)return 0;let n=t.getBandWidth(e)/2;return n}(o,t)),c=l.map((t,e)=>e),u=-r[0],f=n+r[1],d=(t,e)=>{let{width:n}=e;return[t-n/2,t+n/2]};for(let t=0;tf)return!0;let a=s[t+1];if(a){let[n]=d(a,e[t+1]);if(i>n)return!0}}return!1})(p,g,e,n,a)&&!l&&!1!==d&&null!==d?(t.labelTransform="rotate(90)",t.size=r+m):(t.labelTransform=null!==(o=t.labelTransform)&&void 0!==o?o:"rotate(0)",t.size=i+m)}}else t.size=c;let y=rk(h);y&&(l?t.size+=f+y.width:t.size+=f+y.height)}function rx(t,e,n,r,i,a){let o=(()=>{let{legendContinuous:e}=i;return(0,tb.Z)({},e,t)})(),{labelSpacing:l=0,titleSpacing:s=0}=o,c=ru(o,["labelSpacing","titleSpacing"]),u="left"===r||"right"===r,f=(0,tM.hB)(c,"ribbon"),{size:d}=f,h=(0,tM.hB)(c,"handleIcon"),{size:p}=h,g=Math.max(d,2.4*p);t.size=g;let m=rw(t,a),y=r_(c,m);if(y){let e=u?"width":"height",n=(0,tE.Z)(y,t=>t[e]);t.size+=n+l}let v=rk(c);v&&(u?t.size=Math.max(t.size,v.width):t.size+=s+v.height)}function rO(t,e,n,r,i,a){let o=(()=>{let{legendCategory:e}=i,{title:n}=t,[r,a]=Array.isArray(n)?[n,void 0]:[void 0,n];return(0,tb.Z)({title:r},e,Object.assign(Object.assign({},t),{title:a}))})(),{itemSpacing:l,itemMarkerSize:s,titleSpacing:c,rowPadding:u,colPadding:f,maxCols:d=1/0,maxRows:h=1/0}=o,p=ru(o,["itemSpacing","itemMarkerSize","titleSpacing","rowPadding","colPadding","maxCols","maxRows"]),{cols:g,length:m}=t,y=t=>Math.min(t,h),v=t=>Math.min(t,d),b="left"===r||"right"===r,x=void 0===m?e+(b?0:n[0]+n[1]):m,O=rk(p),w=rw(t,a),_=r_(p,w,"itemLabel"),k=Math.max(_[0].height,s)+u,C=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return s+t+l[0]+e};b?(()=>{let e=-1/0,n=0,r=1,i=0,a=-1/0,o=-1/0,l=O?O.height:0,s=x-l;for(let{width:t}of _){let l=C(t,f);e=Math.max(e,l),n+k>s?(r++,a=Math.max(a,i),o=Math.max(o,n),i=1,n=k):(n+=k,i++)}r<=1&&(a=i,o=n),t.size=e*v(r),t.length=o+l,(0,tb.Z)(t,{cols:v(r),gridRow:a})})():"number"==typeof g?(()=>{let e=Math.ceil(_.length/g),n=(0,tE.Z)(_,t=>C(t.width))*g;t.size=k*y(e)-u,t.length=Math.min(n,x)})():(()=>{let e=1,n=0,r=-1/0;for(let{width:t}of _){let i=C(t,f);n+i>x?(r=Math.max(r,n),n=i,e++):n+=i}1===e&&(r=n),t.size=k*y(e)-u,t.length=r})(),O&&(b?t.size=Math.max(t.size,O.width):t.size+=c+O.height)}function rw(t,e){let[n]=ed("scale",e),{scales:r,tickCount:i,tickMethod:a}=t,o=r.find(t=>"constant"!==t.type&&"identity"!==t.type);return void 0!==i&&(o.tickCount=i),void 0!==a&&(o.tickMethod=a),n(o)}function r_(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"label",{labelFormatter:r,tickFilter:i,label:a=!0}=t,o=ru(t,["labelFormatter","tickFilter","label"]);if(!a)return null;let l=function(t,e,n){let r=rj(t,n),i=r.map(t=>"number"==typeof t?(0,tT.C)(t):t),a=e?"string"==typeof e?(0,tC.WU)(e):e:t.getFormatter?t.getFormatter():t=>"".concat(t);return i.map(a)}(e,r,i),s=(0,tM.hB)(o,n),c=l.map((t,e)=>Object.fromEntries(Object.entries(s).map(n=>{let[r,i]=n;return[r,"function"==typeof i?i(t,e):i]}))),u=l.map((t,e)=>{let n=c[e];return rM(t,n)}),f=c.some(t=>t.transform);if(!f){let e=l.map((t,e)=>e);t.indexBBox=new Map(e.map(t=>[t,[l[t],u[t]]]))}return u}function rk(t){let{title:e}=t,n=ru(t,["title"]);if(!1===e||null==e)return null;let r=(0,tM.hB)(n,"title"),{direction:i,transform:a}=r,o=Array.isArray(e)?e.join(","):e;if("string"!=typeof o)return null;let l=rM(o,Object.assign(Object.assign({},r),{transform:a||("vertical"===i?"rotate(-90)":"")}));return l}function rC(t,e,n){let{title:r}=t,[i,a]=Array.isArray(r)?[r,void 0]:[void 0,r],{axis:o,["axis".concat((0,tM.Ez)(e))]:l}=n;return(0,tb.Z)({title:i},o,l,Object.assign(Object.assign({},t),{title:a}))}function rj(t,e){let n=t.getTicks?t.getTicks():t.getOptions().domain;return e?n.filter(e):n}function rM(t,e){let n=t instanceof a.s$?t:new a.xv({style:{text:"".concat(t)}}),{filter:r}=e,i=ru(e,["filter"]);n.attr(Object.assign(Object.assign({},i),{visibility:"none"}));let o=n.getBBox();return o}var rS=n(83190),rA=n(47622),rE=n(91077);function rP(t,e,n,r,i,a,o){let l=(0,tk.ZP)(t,t=>t.position),{padding:s=a.padding,paddingLeft:c=s,paddingRight:u=s,paddingBottom:f=s,paddingTop:d=s}=i,h={paddingBottom:f,paddingLeft:c,paddingTop:d,paddingRight:u};for(let t of r){let r="padding".concat((0,tM.Ez)((0,tK.e)(t))),i=l.get(t)||[],s=h[r],c=t=>{void 0===t.size&&(t.size=t.defaultSize)},u=t=>{"group"===t.type?(t.children.forEach(c),t.size=(0,tE.Z)(t.children,t=>t.size)):t.size=t.defaultSize},f=r=>{r.size||("auto"!==s?u(r):(rp(r,e,n,t,a,o),c(r)))},d=t=>{t.type.startsWith("axis")&&void 0===t.labelAutoHide&&(t.labelAutoHide=!0)},p="bottom"===t||"top"===t,g=(0,rA.Z)(i,t=>t.order),m=i.filter(t=>t.type.startsWith("axis")&&t.order==g);if(m.length&&(m[0].crossPadding=0),"number"==typeof s)i.forEach(c),i.forEach(d);else if(0===i.length)h[r]=0;else{let t=p?e+n[0]+n[1]:e,a=rd(i,t);a.forEach(f);let o=a.reduce((t,e)=>{let{size:n,crossPadding:r=12}=e;return t+n+r},0);h[r]=o}}return h}function rR(t){let{width:e,height:n,paddingLeft:r,paddingRight:i,paddingTop:a,paddingBottom:o,marginLeft:l,marginTop:s,marginBottom:c,marginRight:u,innerHeight:f,innerWidth:d,insetBottom:h,insetLeft:p,insetRight:g,insetTop:m}=t,y=r+l,v=a+s,b=i+u,x=o+c,O=e-l-u,w=[y+p,v+m,d-p-g,f-m-h,"center",null,null],_={top:[y,0,d,v,"vertical",!0,rE.Z,l,O],right:[e-b,v,b,f,"horizontal",!1,rE.Z],bottom:[y,n-x,d,x,"vertical",!1,rE.Z,l,O],left:[0,v,y,f,"horizontal",!0,rE.Z],"top-left":[y,0,d,v,"vertical",!0,rE.Z],"top-right":[y,0,d,v,"vertical",!0,rE.Z],"bottom-left":[y,n-x,d,x,"vertical",!1,rE.Z],"bottom-right":[y,n-x,d,x,"vertical",!1,rE.Z],center:w,inner:w,outer:w};return _}var rT=n(54514),rL=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function rB(t,e,n){let{encode:r={},scale:i={},transform:a=[]}=e,o=rL(e,["encode","scale","transform"]);return[t,Object.assign(Object.assign({},o),{encode:r,scale:i,transform:a})]}function rZ(t,e,n){var r,i,a,o;return r=this,i=void 0,a=void 0,o=function*(){let{library:t}=n,{data:r}=e,[i]=ed("data",t),a=function(t){if((0,to.Z)(t))return{type:"inline",value:t};if(!t)return{type:"inline",value:null};if(Array.isArray(t))return{type:"inline",value:t};let{type:e="inline"}=t,n=rL(t,["type"]);return Object.assign(Object.assign({},n),{type:e})}(r),{transform:o=[]}=a,l=rL(a,["transform"]),s=[l,...o],c=s.map(i),u=yield(0,tM.ne)(c)(r),f=!r||Array.isArray(r)||Array.isArray(u)?u:{value:u};return[Array.isArray(u)?(0,tj.cq)(u):[],Object.assign(Object.assign({},e),{data:f})]},new(a||(a=Promise))(function(t,e){function n(t){try{s(o.next(t))}catch(t){e(t)}}function l(t){try{s(o.throw(t))}catch(t){e(t)}}function s(e){var r;e.done?t(e.value):((r=e.value)instanceof a?r:new a(function(t){t(r)})).then(n,l)}s((o=o.apply(r,i||[])).next())})}function rI(t,e,n){let{encode:r}=e;if(!r)return[t,e];let i={};for(let[t,e]of Object.entries(r))if(Array.isArray(e))for(let n=0;n{if(function(t){if("object"!=typeof t||t instanceof Date||null===t)return!1;let{type:e}=t;return(0,tM.ri)(e)}(t))return t;let e="function"==typeof t?"transform":"string"==typeof t&&Array.isArray(i)&&i.some(e=>void 0!==e[t])?"field":"constant";return{type:e,value:t}});return[t,Object.assign(Object.assign({},e),{encode:a})]}function rD(t,e,n){let{encode:r}=e;if(!r)return[t,e];let i=(0,tj.Xc)(r,(t,e)=>{var n;let{type:r}=t;return"constant"!==r||(n=e).startsWith("x")||n.startsWith("y")||n.startsWith("position")||"enterDelay"===n||"enterDuration"===n||"updateDelay"===n||"updateDuration"===n||"exitDelay"===n||"exitDuration"===n?t:Object.assign(Object.assign({},t),{constant:!0})});return[t,Object.assign(Object.assign({},e),{encode:i})]}function rz(t,e,n){let{encode:r,data:i}=e;if(!r)return[t,e];let{library:a}=n,o=function(t){let[e]=ed("encode",t);return(t,n)=>void 0===n||void 0===t?null:Object.assign(Object.assign({},n),{type:"column",value:e(n)(t),field:function(t){let{type:e,value:n}=t;return"field"===e&&"string"==typeof n?n:null}(n)})}(a),l=(0,tj.Xc)(r,t=>o(i,t));return[t,Object.assign(Object.assign({},e),{encode:l})]}function rF(t,e,n){let{tooltip:r={}}=e;return(0,tM.Qp)(r)?[t,e]:Array.isArray(r)?[t,Object.assign(Object.assign({},e),{tooltip:{items:r}})]:(0,tM.mx)(r)&&(0,rT.gt)(r)?[t,Object.assign(Object.assign({},e),{tooltip:r})]:[t,Object.assign(Object.assign({},e),{tooltip:{items:[r]}})]}function r$(t,e,n){let{data:r,encode:i,tooltip:a={}}=e;if((0,tM.Qp)(a))return[t,e];let o=e=>{if(!e)return e;if("string"==typeof e)return t.map(t=>({name:e,value:r[t][e]}));if((0,tM.mx)(e)){let{field:n,channel:a,color:o,name:l=n,valueFormatter:s=t=>t}=e,c="string"==typeof s?(0,tC.WU)(s):s,u=a&&i[a],f=u&&i[a].field,d=l||f||a,h=[];for(let e of t){let t=n?r[e][n]:u?i[a].value[e]:null;h[e]={name:d,color:o,value:c(t)}}return h}if("function"==typeof e){let n=[];for(let a of t){let t=e(r[a],a,r,i);(0,tM.mx)(t)?n[a]=t:n[a]={value:t}}return n}return e},{title:l,items:s=[]}=a,c=rL(a,["title","items"]),u=Object.assign({title:o(l),items:Array.isArray(s)?s.map(o):[]},c);return[t,Object.assign(Object.assign({},e),{tooltip:u})]}function rW(t,e,n){let{encode:r}=e,i=rL(e,["encode"]);if(!r)return[t,e];let a=Object.entries(r),o=a.filter(t=>{let[,e]=t,{value:n}=e;return Array.isArray(n[0])}).flatMap(e=>{let[n,r]=e,i=[[n,Array(t.length).fill(void 0)]],{value:a}=r,o=rL(r,["value"]);for(let e=0;e{let[e,n]=t;return[e,Object.assign({type:"column",value:n},o)]})}),l=Object.fromEntries([...a,...o]);return[t,Object.assign(Object.assign({},i),{encode:l})]}function rH(t,e,n){let{axis:r={},legend:i={},slider:a={},scrollbar:o={}}=e,l=(t,e)=>{if("boolean"==typeof t)return t?{}:null;let n=t[e];return void 0===n||n?n:null},s="object"==typeof r?Array.from(new Set(["x","y","z",...Object.keys(r)])):["x","y","z"];return(0,tb.Z)(e,{scale:Object.assign(Object.assign({},Object.fromEntries(s.map(t=>{let e=l(o,t);return[t,Object.assign({guide:l(r,t),slider:l(a,t),scrollbar:e},e&&{ratio:void 0===e.ratio?.5:e.ratio})]}))),{color:{guide:l(i,"color")},size:{guide:l(i,"size")},shape:{guide:l(i,"shape")},opacity:{guide:l(i,"opacity")}})}),[t,e]}function rG(t,e,n){let{animate:r}=e;return r||void 0===r||(0,tb.Z)(e,{animate:{enter:{type:null},exit:{type:null},update:{type:null}}}),[t,e]}var rq=function(t,e,n,r){return new(n||(n=Promise))(function(i,a){function o(t){try{s(r.next(t))}catch(t){a(t)}}function l(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(o,l)}s((r=r.apply(t,e||[])).next())})},rY=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},rV=function(t,e,n,r){return new(n||(n=Promise))(function(i,a){function o(t){try{s(r.next(t))}catch(t){a(t)}}function l(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(o,l)}s((r=r.apply(t,e||[])).next())})},rU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function rQ(t){t.style("transform",t=>"translate(".concat(t.layout.x,", ").concat(t.layout.y,")"))}function rK(t,e){return rV(this,void 0,void 0,function*(){let n=yield function(t,e){return rV(this,void 0,void 0,function*(){let[n,r]=ed("mark",e),i=new Set(Object.keys(e).map(t=>{var e;return null===(e=/component\.(.*)/.exec(t))||void 0===e?void 0:e[1]}).filter(tM.ri)),{marks:a}=t,o=[],l=[],s=[...a],{width:c,height:u}=function(t){let{height:e,width:n,padding:r=0,paddingLeft:i=r,paddingRight:a=r,paddingTop:o=r,paddingBottom:l=r,margin:s=16,marginLeft:c=s,marginRight:u=s,marginTop:f=s,marginBottom:d=s,inset:h=0,insetLeft:p=h,insetRight:g=h,insetTop:m=h,insetBottom:y=h}=t,v=t=>"auto"===t?20:t,b=n-v(i)-v(a)-c-u-p-g,x=e-v(o)-v(l)-f-d-m-y;return{width:b,height:x}}(t),f={options:t,width:c,height:u};for(;s.length;){let[t]=s.splice(0,1),a=yield r7(t,e),{type:c=(0,tM.vU)("G2Mark type is required."),key:u}=a;if(i.has(c))l.push(a);else{let{props:t={}}=r(c),{composite:e=!0}=t;if(e){let{data:t}=a,e=Object.assign(Object.assign({},a),{data:t?Array.isArray(t)?t:t.value:t}),r=yield n(e,f),i=Array.isArray(r)?r:[r];s.unshift(...i.map((t,e)=>Object.assign(Object.assign({},t),{key:"".concat(u,"-").concat(e)})))}else o.push(a)}}return Object.assign(Object.assign({},t),{marks:o,components:l})})}(t,e),r=function(t){let{coordinate:e={},interaction:n={},style:r={},marks:i}=t,a=rU(t,["coordinate","interaction","style","marks"]),o=i.map(t=>t.coordinate||{}),l=i.map(t=>t.interaction||{}),s=i.map(t=>t.viewStyle||{}),c=[...o,e].reduceRight((t,e)=>(0,tb.Z)(t,e),{}),u=[n,...l].reduce((t,e)=>(0,tb.Z)(t,e),{}),f=[...s,r].reduce((t,e)=>(0,tb.Z)(t,e),{});return Object.assign(Object.assign({},a),{marks:i,coordinate:c,interaction:u,style:f})}(n);t.interaction=r.interaction,t.coordinate=r.coordinate,t.marks=[...r.marks,...r.components];let i=eg(r,e),a=yield rX(i,e);return r0(a,i,e)})}function rX(t,e){return rV(this,void 0,void 0,function*(){let[n]=ed("theme",e),[,r]=ed("mark",e),{theme:a,marks:o,coordinates:l=[]}=t,s=n(r4(a)),c=new Map;for(let t of o){let{type:n}=t,{props:i={}}=r(n),a=yield function(t,e,n){return rq(this,void 0,void 0,function*(){let[r,i]=yield function(t,e,n){return rq(this,void 0,void 0,function*(){let{library:r}=n,[i]=ed("transform",r),{preInference:a=[],postInference:o=[]}=e,{transform:l=[]}=t,s=[rB,rZ,rI,rN,rD,rz,rW,rG,rH,rF,...a.map(i),...l.map(i),...o.map(i),r$],c=[],u=t;for(let t of s)[c,u]=yield t(c,u,n);return[c,u]})}(t,e,{library:n}),{encode:a,scale:o,data:l,tooltip:s}=i;if(!1===Array.isArray(l))return null;let{channels:c}=e,u=(0,tk.Q3)(Object.entries(a).filter(t=>{let[,e]=t;return(0,tM.ri)(e)}),t=>t.map(t=>{let[e,n]=t;return Object.assign({name:e},n)}),t=>{var e;let[n]=t,r=null===(e=/([^\d]+)\d*$/.exec(n))||void 0===e?void 0:e[1],i=c.find(t=>t.name===r);return(null==i?void 0:i.independent)?n:r}),f=c.filter(t=>{let{name:e,required:n}=t;if(u.find(t=>{let[n]=t;return n===e}))return!0;if(n)throw Error("Missing encoding for channel: ".concat(e,"."));return!1}).flatMap(t=>{let{name:e,scale:n,scaleKey:r,range:i,quantitative:a,ordinal:l}=t,s=u.filter(t=>{let[n]=t;return n.startsWith(e)});return s.map((t,e)=>{let[s,c]=t,u=c.some(t=>t.visual),f=c.some(t=>t.constant),d=o[s]||{},{independent:h=!1,key:p=r||s,type:g=f?"constant":u?"identity":n}=d,m=rY(d,["independent","key","type"]),y="constant"===g;return{name:s,values:c,scaleKey:h||y?Symbol("independent"):p,scale:Object.assign(Object.assign({type:g,range:y?void 0:i},m),{quantitative:a,ordinal:l})}})});return[i,Object.assign(Object.assign({},e),{index:r,channels:f,tooltip:s})]})}(t,i,e);if(a){let[t,e]=a;c.set(t,e)}}let u=(0,tk.ZP)(Array.from(c.values()).flatMap(t=>t.channels),t=>{let{scaleKey:e}=t;return e});for(let t of u.values()){let n=t.reduce((t,e)=>{let{scale:n}=e;return(0,tb.Z)(t,n)},{}),{scaleKey:r}=t[0],{values:a}=t[0],o=Array.from(new Set(a.map(t=>t.field).filter(tM.ri))),c=(0,tb.Z)({guide:{title:0===o.length?void 0:o},field:o[0]},n),{name:u}=t[0],f=t.flatMap(t=>{let{values:e}=t;return e.map(t=>t.value)}),d=Object.assign(Object.assign({},function(t,e,n,r,a,o){let{guide:l={}}=n,s=function(t,e,n){let{type:r,domain:i,range:a,quantitative:o,ordinal:l}=n;return void 0!==r?r:ra(e,tM.mx)?"identity":"string"==typeof a?"linear":(i||a||[]).length>2?rt(t,l):void 0!==i?rr([i])?rt(t,l):ri(e)?"time":re(t,a,o):rr(e)?rt(t,l):ri(e)?"time":re(t,a,o)}(t,e,n);if("string"!=typeof s)return n;let c=function(t,e,n,r){let{domain:i}=r;if(void 0!==i)return i;switch(t){case"linear":case"time":case"log":case"pow":case"sqrt":case"quantize":case"threshold":return rn(function(t,e){let{zero:n=!1}=e,r=1/0,i=-1/0;for(let e of t)for(let t of e)(0,tM.ri)(t)&&(r=Math.min(r,+t),i=Math.max(i,+t));return r===1/0?[]:n?[Math.min(0,r),i]:[r,i]}(n,r),r);case"band":case"ordinal":case"point":return Array.from(new Set(n.flat()));case"quantile":return n.flat().sort();case"sequential":return rn(function(t){let e=1/0,n=-1/0;for(let r of t)for(let t of r)(0,tM.ri)(t)&&(e=Math.min(e,+t),n=Math.max(n,+t));return e===1/0?[]:[e<0?-n:e,n]}(n),r);default:return[]}}(s,0,e,n),u=function(t,e,n){let{ratio:r}=n;return null==r?e:n8({type:t})?function(t,e,n){let r=t.map(Number),i=new eO.b({domain:r,range:[r[0],r[0]+(r[r.length-1]-r[0])*e]});return"time"===n?t.map(t=>new Date(i.map(t))):t.map(t=>i.map(t))}(e,r,t):n7({type:t})?function(t,e){let n=Math.round(t.length*e);return t.slice(0,n)}(e,r):e}(s,c,n);return Object.assign(Object.assign(Object.assign({},n),function(t,e,n,r,a){switch(t){case"linear":case"time":case"log":case"pow":case"sqrt":return function(t,e){let{interpolate:n=ew.wp,nice:r=!1,tickCount:i=5}=e;return Object.assign(Object.assign({},e),{interpolate:n,nice:r,tickCount:i})}(0,r);case"band":case"point":return function(t,e,n,r){if(void 0!==r.padding||void 0!==r.paddingInner||void 0!==r.paddingOuter)return Object.assign(Object.assign({},r),{unknown:NaN});let i="enterDelay"===e||"enterDuration"===e||"size"===e?0:"band"===t?eb(n)?0:.1:"point"===t?.5:0,{paddingInner:a=i,paddingOuter:o=i}=r;return Object.assign(Object.assign({},r),{paddingInner:a,paddingOuter:o,padding:i,unknown:NaN})}(t,e,a,r);case"sequential":return function(t){let{palette:e="ylGnBu",offset:n}=t,r=(0,t_.Z)(e),a=i["interpolate".concat(r)];if(!a)throw Error("Unknown palette: ".concat(r));return{interpolator:n?t=>a(n(t)):a}}(r);default:return r}}(s,t,0,n,r)),{domain:u,range:function(t,e,n,r,i,a,o){let{range:l}=r;if("string"==typeof l)return l.split("-");if(void 0!==l)return l;let{rangeMin:s,rangeMax:c}=r;switch(t){case"linear":case"time":case"log":case"pow":case"sqrt":{let t=n9(n,r,i,a,o),[l,u]="enterDelay"===e?[0,1e3]:"enterDuration"==e?[300,1e3]:e.startsWith("y")||e.startsWith("position")?[1,0]:"color"===e?[(0,tj.Hw)(t),(0,tj.Rz)(t)]:"opacity"===e?[0,1]:"size"===e?[1,10]:[0,1];return[null!=s?s:l,null!=c?c:u]}case"band":case"point":{let t="size"===e?5:0,n="size"===e?10:1;return[null!=s?s:t,null!=c?c:n]}case"ordinal":return n9(n,r,i,a,o);case"sequential":return;case"constant":return[n[0][0]];default:return[]}}(s,t,e,n,u,a,o),expectedDomain:c,guide:l,name:t,type:s})}(u,f,c,l,s,e)),{key:r});t.forEach(t=>t.scale=d)}return c})}function rJ(t,e,n,r){let i=t.theme,a="string"==typeof e&&i[e]||{},o=r((0,tb.Z)(a,Object.assign({type:e},n)));return o}function r0(t,e,n){let[r]=ed("mark",n),[i]=ed("theme",n),[a]=ed("labelTransform",n),{key:o,frame:l=!1,theme:s,clip:c,style:u={},labelTransform:f=[]}=e,d=i(r4(s)),h=Array.from(t.values()),p=function(t,e){var n;let{components:r=[]}=e,i=["scale","encode","axis","legend","data","transform"],a=Array.from(new Set(t.flatMap(t=>t.channels.map(t=>t.scale)))),o=new Map(a.map(t=>[t.name,t]));for(let t of r){let e=function(t){let{channels:e=[],type:n,scale:r={}}=t,i=["shape","color","opacity","size"];return 0!==e.length?e:"axisX"===n?["x"]:"axisY"===n?["y"]:"legends"===n?Object.keys(r).filter(t=>i.includes(t)):[]}(t);for(let r of e){let e=o.get(r),l=(null===(n=t.scale)||void 0===n?void 0:n[r])||{},{independent:s=!1}=l;if(e&&!s){let{guide:n}=e,r="boolean"==typeof n?{}:n;e.guide=(0,tb.Z)({},r,t),Object.assign(e,l)}else{let e=Object.assign(Object.assign({},l),{expectedDomain:l.domain,name:r,guide:(0,n5.Z)(t,i)});a.push(e)}}}return a}(h,e),g=(function(t,e,n){let{coordinates:r=[],title:i}=e,[,a]=ed("component",n),o=t.filter(t=>{let{guide:e}=t;return null!==e}),l=[],s=function(t,e,n){let[,r]=ed("component",n),{coordinates:i}=t;function a(t,e,n,a){let o=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return"x"===t?ev(n)?"".concat(e,"Y"):"".concat(e,"X"):"y"===t?ev(n)?"".concat(e,"X"):"".concat(e,"Y"):null}(e,t,i);if(!a||!o)return;let{props:l}=r(o),{defaultPosition:s,defaultSize:c,defaultOrder:u,defaultCrossPadding:[f]}=l;return Object.assign(Object.assign({position:s,defaultSize:c,order:u,type:o,crossPadding:f},a),{scales:[n]})}return e.filter(t=>t.slider||t.scrollbar).flatMap(t=>{let{slider:e,scrollbar:n,name:r}=t;return[a("slider",r,t,e),a("scrollbar",r,t,n)]}).filter(t=>!!t)}(e,t,n);if(l.push(...s),i){let{props:t}=a("title"),{defaultPosition:e,defaultOrientation:n,defaultOrder:r,defaultSize:o,defaultCrossPadding:s}=t,c="string"==typeof i?{title:i}:i;l.push(Object.assign({type:"title",position:e,orientation:n,order:r,crossPadding:s[0],defaultSize:o},c))}let c=function(t,e){let n=t.filter(t=>(function(t){if(!t||!t.type)return!1;if("function"==typeof t.type)return!0;let{type:e,domain:n,range:r,interpolator:i}=t,a=n&&n.length>0,o=r&&r.length>0;return!!(["linear","sqrt","log","time","pow","threshold","quantize","quantile","ordinal","band","point"].includes(e)&&a&&o||["sequential"].includes(e)&&a&&(o||i)||["constant","identity"].includes(e)&&o)})(t));return[...function(t,e){let n=["shape","size","color","opacity"],r=(t,e)=>"constant"===t&&"size"===e,i=t.filter(t=>{let{type:e,name:i}=t;return"string"==typeof e&&n.includes(i)&&!r(e,i)}),a=i.filter(t=>{let{type:e}=t;return"constant"===e}),o=i.filter(t=>{let{type:e}=t;return"constant"!==e}),l=(0,tk.Xx)(o,t=>t.field?t.field:Symbol("independent")).map(t=>{let[e,n]=t;return[e,[...n,...a]]}).filter(t=>{let[,e]=t;return e.some(t=>"constant"!==t.type)}),s=new Map(l);if(0===s.size)return[];let c=t=>t.sort((t,e)=>{let[n]=t,[r]=e;return n.localeCompare(r)}),u=Array.from(s).map(t=>{let[,e]=t,n=(0,tj.$e)(e).sort((t,e)=>e.length-t.length),r=n.map(t=>({combination:t,option:t.map(t=>[t.name,function(t){let{type:e}=t;return"string"!=typeof e?null:e in ro?"continuous":e in rs?"discrete":e in rl?"distribution":e in rc?"constant":null}(t)])}));for(let{option:t,combination:e}of r)if(!t.every(t=>"constant"===t[1])&&t.every(t=>"discrete"===t[1]||"constant"===t[1]))return["legendCategory",e];for(let[t,e]of tL)for(let{option:n,combination:i}of r)if(e.some(t=>(0,tS.Z)(c(t),c(n))))return[t,i];return null}).filter(tM.ri);return u}(n,0),...n.map(t=>{let{name:n}=t;if(em(e,"helix").length>0||eb(e)||ev(e)&&(ey(e)||ex(e)))return null;if(n.startsWith("x"))return ey(e)?["axisArc",[t]]:ex(e)?["axisLinear",[t]]:[ev(e)?"axisY":"axisX",[t]];if(n.startsWith("y"))return ey(e)?["axisLinear",[t]]:ex(e)?["axisArc",[t]]:[ev(e)?"axisX":"axisY",[t]];if(n.startsWith("z"))return["axisZ",[t]];if(n.startsWith("position")){if(em(e,"radar").length>0)return["axisRadar",[t]];if(!ey(e))return["axisY",[t]]}return null}).filter(tM.ri)]}(o,r);return c.forEach(t=>{let[e,n]=t,{props:i}=a(e),{defaultPosition:s,defaultPlane:c="xy",defaultOrientation:u,defaultSize:f,defaultOrder:d,defaultLength:h,defaultPadding:p=[0,0],defaultCrossPadding:g=[0,0]}=i,m=(0,tb.Z)({},...n),{guide:y,field:v}=m,b=Array.isArray(y)?y:[y];for(let t of b){let[i,a]=function(t,e,n,r,i,a,o){let[l]=rh(o),s=[r.position||e,null!=l?l:n];return"string"==typeof t&&t.startsWith("axis")?function(t,e,n,r,i){let{name:a}=n[0];if("axisRadar"===t){let t=r.filter(t=>t.name.startsWith("position")),e=function(t){let e=/position(\d*)/g.exec(t);return e?+e[1]:null}(a);if(a===t.slice(-1)[0].name||null===e)return[null,null];let[n,o]=rh(i),l=(o-n)/(t.length-1)*e+n;return["center",l]}if("axisY"===t&&em(i,"parallel").length>0)return ev(i)?["center","horizontal"]:["center","vertical"];if("axisLinear"===t){let[t]=rh(i);return["center",t]}return"axisArc"===t?"inner"===e[0]?["inner",null]:["outer",null]:ey(i)||ex(i)?["center",null]:"axisX"===t&&em(i,"reflect").length>0||"axisX"===t&&em(i,"reflectY").length>0?["top",null]:e}(t,s,i,a,o):"string"==typeof t&&t.startsWith("legend")&&ey(o)&&"center"===r.position?["center","vertical"]:s}(e,s,u,t,n,o,r);if(!i&&!a)continue;let m="left"===i||"right"===i,y=m?p[1]:p[0],b=m?g[1]:g[0],{size:x,order:O=d,length:w=h,padding:_=y,crossPadding:k=b}=t;l.push(Object.assign(Object.assign({title:v},t),{defaultSize:f,length:w,position:i,plane:c,orientation:a,padding:_,order:O,crossPadding:k,size:x,type:e,scales:n}))}}),l})(function(t,e,n){var r;for(let[e]of n.entries())if("cell"===e.type)return t.filter(t=>"shape"!==t.name);if(1!==e.length||t.some(t=>"shape"===t.name))return t;let{defaultShape:i}=e[0];if(!["point","line","rect","hollow"].includes(i))return t;let a=(null===(r=t.find(t=>"color"===t.name))||void 0===r?void 0:r.field)||null;return[...t,{field:a,name:"shape",type:"constant",domain:[],range:[{point:"point",line:"hyphen",rect:"square",hollow:"hollow"}[i]]}]}(Array.from(p),h,t),e,n).map(t=>{let e=(0,tb.Z)(t,t.style);return delete e.style,e}),m=function(t,e,n,r){var i,a;let{width:o,height:l,depth:s,x:c=0,y:u=0,z:f=0,inset:d=null!==(i=n.inset)&&void 0!==i?i:0,insetLeft:h=d,insetTop:p=d,insetBottom:g=d,insetRight:m=d,margin:y=null!==(a=n.margin)&&void 0!==a?a:0,marginLeft:v=y,marginBottom:b=y,marginTop:x=y,marginRight:O=y,padding:w=n.padding,paddingBottom:_=w,paddingLeft:k=w,paddingRight:C=w,paddingTop:j=w}=function(t,e,n,r){let{coordinates:i}=e;if(!ey(i)&&!ex(i))return e;let a=t.filter(t=>"string"==typeof t.type&&t.type.startsWith("axis"));if(0===a.length)return e;let o=a.map(t=>{let e="axisArc"===t.type?"arc":"linear";return rC(t,e,n)}),l=(0,tE.Z)(o,t=>{var e;return null!==(e=t.labelSpacing)&&void 0!==e?e:0}),s=a.flatMap((t,e)=>{let n=o[e],i=rw(t,r),a=r_(n,i);return a}).filter(tM.ri),c=(0,tE.Z)(s,t=>t.height)+l,u=a.flatMap((t,e)=>{let n=o[e];return rk(n)}).filter(t=>null!==t),f=0===u.length?0:(0,tE.Z)(u,t=>t.height),{inset:d=c,insetLeft:h=d,insetBottom:p=d,insetTop:g=d+f,insetRight:m=d}=e;return Object.assign(Object.assign({},e),{insetLeft:h,insetBottom:p,insetTop:g,insetRight:m})}(t,e,n,r),M=1/4,S=(t,n,r,i,a)=>{let{marks:o}=e;if(0===o.length||t-i-a-t*M>0)return[i,a];let l=t*(1-M);return["auto"===n?l*i/(i+a):i,"auto"===r?l*a/(i+a):a]},A=t=>"auto"===t?20:null!=t?t:20,E=A(j),P=A(_),R=rP(t,l-E-P,[E+x,P+b],["left","right"],e,n,r),{paddingLeft:T,paddingRight:L}=R,B=o-v-O,[Z,I]=S(B,k,C,T,L),N=B-Z-I,D=rP(t,N,[Z+v,I+O],["bottom","top"],e,n,r),{paddingTop:z,paddingBottom:F}=D,$=l-b-x,[W,H]=S($,_,j,F,z),G=$-W-H;return{width:o,height:l,depth:s,insetLeft:h,insetTop:p,insetBottom:g,insetRight:m,innerWidth:N,innerHeight:G,paddingLeft:Z,paddingRight:I,paddingTop:H,paddingBottom:W,marginLeft:v,marginBottom:b,marginTop:x,marginRight:O,x:c,y:u,z:f}}(g,e,d,n),y=function(t,e,n){let[r]=ed("coordinate",n),{innerHeight:i,innerWidth:a,insetLeft:o,insetTop:l,insetRight:s,insetBottom:c}=t,{coordinates:u=[]}=e,f=u.find(t=>"cartesian"===t.type||"cartesian3D"===t.type)?u:[...u,{type:"cartesian"}],d="cartesian3D"===f[0].type,h=Object.assign(Object.assign({},t),{x:o,y:l,width:a-o-s,height:i-c-l,transformations:f.flatMap(r)}),p=d?new tB.Coordinate3D(h):new tB.Coordinate(h);return p}(m,e,n),v=l?(0,tb.Z)({mainLineWidth:1,mainStroke:"#000"},u):u;!function(t,e,n){let r=(0,tk.ZP)(t,t=>"".concat(t.plane||"xy","-").concat(t.position)),{paddingLeft:i,paddingRight:a,paddingTop:o,paddingBottom:l,marginLeft:s,marginTop:c,marginBottom:u,marginRight:f,innerHeight:d,innerWidth:h,insetBottom:p,insetLeft:g,insetRight:m,insetTop:y,height:v,width:b,depth:x}=n,O={xy:rR({width:b,height:v,paddingLeft:i,paddingRight:a,paddingTop:o,paddingBottom:l,marginLeft:s,marginTop:c,marginBottom:u,marginRight:f,innerHeight:d,innerWidth:h,insetBottom:p,insetLeft:g,insetRight:m,insetTop:y}),yz:rR({width:x,height:v,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:0,marginTop:0,marginBottom:0,marginRight:0,innerWidth:x,innerHeight:v,insetBottom:0,insetLeft:0,insetRight:0,insetTop:0}),xz:rR({width:b,height:x,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:0,marginTop:0,marginBottom:0,marginRight:0,innerWidth:b,innerHeight:x,insetBottom:0,insetLeft:0,insetRight:0,insetTop:0})};for(let[t,n]of r.entries()){let[r,i]=t.split("-"),a=O[r][i],[o,l]=(0,tj.cs)(n,t=>"string"==typeof t.type&&!!("center"===i||t.type.startsWith("axis")&&["inner","outer"].includes(i)));o.length&&function(t,e,n,r){let[i,a]=(0,tj.cs)(t,t=>!!("string"==typeof t.type&&t.type.startsWith("axis")));(function(t,e,n,r){var i;"center"===r?(0,tZ.fg)(e)?function(t,e,n,r){let[i,a,o,l]=n;for(let e of t)e.bbox={x:i,y:a,width:o,height:l},e.radar={index:t.indexOf(e),count:t.length}}(t,0,n,0):(0,tZ.Z0)(e)?function(t,e,n){let[r,i,a,o]=n;for(let e of t)e.bbox={x:r,y:i,width:a,height:o}}(t,0,n):(0,tZ.rN)(e)&&("horizontal"===(i=t[0].orientation)?function(t,e,n){let[r,i,a]=n,o=Array(t.length).fill(0),l=e.map(o),s=l.filter((t,e)=>e%2==1).map(t=>t+i);for(let e=0;ee%2==0).map(t=>t+r);for(let e=0;enull==c?void 0:c(t.order,e.order));let x=t=>"title"===t||"group"===t||t.startsWith("legend"),O=(t,e,n)=>void 0===n?e:x(t)?n:e,w=(t,e,n)=>void 0===n?e:x(t)?n:e;for(let e=0,n=s?h+y:h;e"group"===t.type);for(let t of _){let{bbox:e,children:n}=t,r=e[v],i=r/n.length,a=n.reduce((t,e)=>{var n;let r=null===(n=e.layout)||void 0===n?void 0:n.justifyContent;return r||t},"flex-start"),o=n.map((t,e)=>{let{length:r=i,padding:a=0}=t;return r+(e===n.length-1?0:a)}),l=(0,tA.Z)(o),s=r-l,c="flex-start"===a?0:"center"===a?s/2:s;for(let t=0,r=e[p]+c;t{let{type:e}=t;return"axisX"===e}),n=t.find(t=>{let{type:e}=t;return"axisY"===e}),r=t.find(t=>{let{type:e}=t;return"axisZ"===e});e&&n&&r&&(e.plane="xy",n.plane="xy",r.plane="yz",r.origin=[e.bbox.x,e.bbox.y,0],r.eulerAngles=[0,-90,0],r.bbox.x=e.bbox.x,r.bbox.y=e.bbox.y,t.push(Object.assign(Object.assign({},e),{plane:"xz",showLabel:!1,showTitle:!1,origin:[e.bbox.x,e.bbox.y,0],eulerAngles:[-90,0,0]})),t.push(Object.assign(Object.assign({},n),{plane:"yz",showLabel:!1,showTitle:!1,origin:[n.bbox.x+n.bbox.width,n.bbox.y,0],eulerAngles:[0,-90,0]})),t.push(Object.assign(Object.assign({},r),{plane:"xz",actualPosition:"left",showLabel:!1,showTitle:!1,eulerAngles:[90,-90,0]})))}(g);let b={};for(let t of g){let{scales:e=[]}=t,r=[];for(let t of e){let{name:e}=t,i=n6(t,n);r.push(i),"y"===e&&i.update(Object.assign(Object.assign({},i.getOptions()),{xScale:b.x})),n3(b,{[e]:i})}t.scaleInstances=r}let x=[];for(let[e,i]of t.entries()){let{children:t,dataDomain:a,modifier:l,key:s}=e,{index:c,channels:u,tooltip:f}=i,d=Object.fromEntries(u.map(t=>{let{name:e,scale:n}=t;return[e,n]})),h=(0,tj.Xc)(d,t=>n6(t,n));n3(b,h);let p=function(t,e){let n={};for(let r of t){let{values:t,name:i}=r,a=e[i];for(let e of t){let{name:t,value:r}=e;n[t]=r.map(t=>a.map(t))}}return n}(u,h),g=r(e),[v,O,w]=function(t){let[e,n,r]=t;if(r)return[e,n,r];let i=[],a=[];for(let t=0;t{let[e,n]=t;return(0,tM.ri)(e)&&(0,tM.ri)(n)})&&(i.push(r),a.push(o))}return[i,a]}(g(c,h,p,y)),_=a||v.length,k=l?l(O,_,m):[],C=t=>{var e,n;return null===(n=null===(e=f.title)||void 0===e?void 0:e[t])||void 0===n?void 0:n.value},j=t=>f.items.map(e=>e[t]),M=v.map((t,e)=>{let n=Object.assign({points:O[e],transform:k[e],index:t,markKey:s,viewKey:o},f&&{title:C(t),items:j(t)});for(let[r,i]of Object.entries(p))n[r]=i[t],w&&(n["series".concat((0,t_.Z)(r))]=w[e].map(t=>i[t]));return w&&(n.seriesIndex=w[e]),w&&f&&(n.seriesItems=w[e].map(t=>j(t)),n.seriesTitle=w[e].map(t=>C(t))),n});i.data=M,i.index=v;let S=null==t?void 0:t(M,h,m);x.push(...S||[])}let O={layout:m,theme:d,coordinate:y,markState:t,key:o,clip:c,scale:b,style:v,components:g,labelTransform:(0,tM.qC)(f.map(a))};return[O,x]}function r1(t,e,n,r,i){return rV(this,void 0,void 0,function*(){let{components:a,theme:o,layout:l,markState:s,coordinate:c,key:u,style:f,clip:d,scale:h}=t,{x:p,y:g,width:m,height:y}=l,v=rU(l,["x","y","width","height"]),b=["view","plot","main","content"],x=b.map((t,e)=>e),O=b.map(t=>(0,tM.c7)(Object.assign({},o.view,f),t)),w=["a","margin","padding","inset"].map(t=>(0,tM.hB)(v,t)),_=t=>t.style("x",t=>S[t].x).style("y",t=>S[t].y).style("width",t=>S[t].width).style("height",t=>S[t].height).each(function(t,e,n){!function(t,e){for(let[n,r]of Object.entries(e))t.style(n,r)}((0,tx.F)(n),O[t])}),k=0,C=0,j=m,M=y,S=x.map(t=>{let e=w[t],{left:n=0,top:r=0,bottom:i=0,right:a=0}=e;return{x:k+=n,y:C+=r,width:j-=n+a,height:M-=r+i}});e.selectAll(ir(rS.tu)).data(x.filter(t=>(0,tM.ri)(O[t])),t=>b[t]).join(t=>t.append("rect").attr("className",rS.tu).style("zIndex",-2).call(_),t=>t.call(_),t=>t.remove());let A=function(t){let e=-1/0,n=1/0;for(let[r,i]of t){let{animate:t={}}=r,{data:a}=i,{enter:o={},update:l={},exit:s={}}=t,{type:c,duration:u=300,delay:f=0}=l,{type:d,duration:h=300,delay:p=0}=o,{type:g,duration:m=300,delay:y=0}=s;for(let t of a){let{updateType:r=c,updateDuration:i=u,updateDelay:a=f,enterType:o=d,enterDuration:l=h,enterDelay:s=p,exitDuration:v=m,exitDelay:b=y,exitType:x=g}=t;(void 0===r||r)&&(e=Math.max(e,i+a),n=Math.min(n,a)),(void 0===x||x)&&(e=Math.max(e,v+b),n=Math.min(n,b)),(void 0===o||o)&&(e=Math.max(e,l+s),n=Math.min(n,s))}}return e===-1/0?null:[n,e-n]}(s),E=!!A&&{duration:A[1]};for(let[,t]of(0,tk.Xx)(a,t=>"".concat(t.type,"-").concat(t.position)))t.forEach((t,e)=>t.index=e);let P=e.selectAll(ir(rS.nQ)).data(a,t=>"".concat(t.type,"-").concat(t.position,"-").concat(t.index)).join(t=>t.append("g").style("zIndex",t=>{let{zIndex:e}=t;return e||-1}).attr("className",rS.nQ).append(t=>rf((0,tb.Z)({animate:E,scale:h},t),c,o,r,s)),t=>t.transition(function(t,e,n){let{preserve:i=!1}=t;if(i)return;let a=rf((0,tb.Z)({animate:E,scale:h},t),c,o,r,s),{attributes:l}=a,[u]=n.childNodes;return u.update(l,!1)})).transitions();n.push(...P.flat().filter(tM.ri));let R=e.selectAll(ir(rS.V$)).data([l],()=>u).join(t=>t.append("rect").style("zIndex",0).style("fill","transparent").attr("className",rS.V$).call(r9).call(ie,Array.from(s.keys())).call(ii,d),t=>t.call(ie,Array.from(s.keys())).call(t=>A?function(t,e){let[n,r]=e;t.transition(function(t,e,i){let{transform:a,width:o,height:l}=i.style,{paddingLeft:s,paddingTop:c,innerWidth:u,innerHeight:f,marginLeft:d,marginTop:h}=t,p=[{transform:a,width:o,height:l},{transform:"translate(".concat(s+d,", ").concat(c+h,")"),width:u,height:f}];return i.animate(p,{delay:n,duration:r,fill:"both"})})}(t,A):r9(t)).call(ii,d)).transitions();for(let[a,o]of(n.push(...R.flat()),s.entries())){let{data:l}=o,{key:s,class:c,type:u}=a,f=e.select("#".concat(s)),d=function(t,e,n,r,i){let[a]=ed("shape",r),{data:o,encode:l}=t,{defaultShape:s,data:c,shape:u}=e,f=(0,tj.Xc)(l,t=>t.value),d=c.map(t=>t.points),{theme:h,coordinate:p}=n,{type:g,style:m={}}=t,y=Object.assign(Object.assign({},i),{document:eh(i),coordinate:p,theme:h});return e=>{let{shape:n=s}=m,{shape:r=n,points:i,seriesIndex:l,index:c}=e,p=rU(e,["shape","points","seriesIndex","index"]),v=Object.assign(Object.assign({},p),{index:c}),b=l?l.map(t=>o[t]):o[c],x=l||c,O=(0,tj.Xc)(m,t=>r2(t,b,x,o,{channel:f})),w=u[r]?u[r](O,y):a(Object.assign(Object.assign({},O),{type:it(t,r)}),y),_=r5(h,g,r,s);return w(i,v,_,d)}}(a,o,t,r,i),h=r3("enter",a,o,t,r),p=r3("update",a,o,t,r),g=r3("exit",a,o,t,r),m=function(t,e,n,r){let i=t.node().parentElement;return i.findAll(t=>void 0!==t.style.facet&&t.style.facet===n&&t!==e.node()).flatMap(t=>t.getElementsByClassName(r))}(e,f,c,"element"),y=f.selectAll(ir(rS.Tt)).selectFacetAll(m).data(l,t=>t.key,t=>t.groupKey).join(t=>t.append(d).attr("className",rS.Tt).attr("markType",u).transition(function(t,e,n){return h(t,[n])}),t=>t.call(t=>{let e=t.parent(),n=(0,tM.Ye)(t=>{let[e,n]=t.getBounds().min;return[e,n]});t.transition(function(t,r,i){!function(t,e,n){if(!t.__facet__)return;let r=t.parentNode.parentNode,i=e.parentNode,[a,o]=n(r),[l,s]=n(i),c="translate(".concat(a-l,", ").concat(o-s,")");(0,tM.gn)(t,c),e.append(t)}(i,e,n);let a=d(t,r),o=p(t,[i],[a]);return null!==o||(i.nodeName===a.nodeName&&"g"!==a.nodeName?(0,tM.DM)(i,a):(i.parentNode.replaceChild(a,i),a.className=rS.Tt,a.markType=u,a.__data__=i.__data__)),o}).attr("markType",u).attr("className",rS.Tt)}),t=>t.each(function(t,e,n){n.__removed__=!0}).transition(function(t,e,n){return g(t,[n])}).remove(),t=>t.append(d).attr("className",rS.Tt).attr("markType",u).transition(function(t,e,n){let{__fromElements__:r}=n,i=p(t,r,[n]),a=new tx.Y(r,null,n.parentNode);return a.transition(i).remove(),i}),t=>t.transition(function(t,e,n){let r=new tx.Y([],n.__toData__,n.parentNode),i=r.append(d).attr("className",rS.Tt).attr("markType",u).nodes();return p(t,[n],i)}).remove()).transitions();n.push(...y.flat())}!function(t,e,n,r,i){let[a]=ed("labelTransform",r),{markState:o,labelTransform:l}=t,s=e.select(ir(rS.z3)).node(),c=new Map,u=new Map,f=Array.from(o.entries()).flatMap(n=>{let[a,o]=n,{labels:l=[],key:s}=a,f=function(t,e,n,r,i){let[a]=ed("shape",r),{data:o,encode:l}=t,{data:s,defaultLabelShape:c}=e,u=s.map(t=>t.points),f=(0,tj.Xc)(l,t=>t.value),{theme:d,coordinate:h}=n,p=Object.assign(Object.assign({},i),{document:eh(i),theme:d,coordinate:h});return t=>{let{index:e,points:n}=t,r=o[e],{formatter:i=t=>"".concat(t),transform:l,style:s,render:h}=t,g=rU(t,["formatter","transform","style","render"]),m=(0,tj.Xc)(Object.assign(Object.assign({},g),s),t=>r2(t,r,e,o,{channel:f})),{shape:y=c,text:v}=m,b=rU(m,["shape","text"]),x="string"==typeof i?(0,tC.WU)(i):i,O=Object.assign(Object.assign({},b),{text:x(v,r,e,o),datum:r}),w=Object.assign({type:"label.".concat(y),render:h},b),_=a(w,p),k=r5(d,"label",y,"label");return _(n,O,k,u)}}(a,o,t,r,i),d=e.select("#".concat(s)).selectAll(ir(rS.Tt)).nodes().filter(t=>!t.__removed__);return l.flatMap((t,e)=>{let{transform:n=[]}=t,r=rU(t,["transform"]);return d.flatMap(n=>{let i=function(t,e,n){let{seriesIndex:r,seriesKey:i,points:a,key:o,index:l}=n.__data__,s=function(t){let e=t.cloneNode(),n=t.getAnimations();e.style.visibility="hidden",n.forEach(t=>{let n=t.effect.getKeyframes();e.attr(n[n.length-1])}),t.parentNode.appendChild(e);let r=e.getLocalBounds();e.destroy();let{min:i,max:a}=r;return[i,a]}(n);if(!r)return[Object.assign(Object.assign({},t),{key:"".concat(o,"-").concat(e),bounds:s,index:l,points:a,dependentElement:n})];let c=function(t){let{selector:e}=t;if(!e)return null;if("function"==typeof e)return e;if("first"===e)return t=>[t[0]];if("last"===e)return t=>[t[t.length-1]];throw Error("Unknown selector: ".concat(e))}(t),u=r.map((r,o)=>Object.assign(Object.assign({},t),{key:"".concat(i[o],"-").concat(e),bounds:[a[o]],index:r,points:a,dependentElement:n}));return c?c(u):u}(r,e,n);return i.forEach(e=>{c.set(e,f),u.set(e,t)}),i})})}),d=(0,tx.F)(s).selectAll(ir(rS.fw)).data(f,t=>t.key).join(t=>t.append(t=>c.get(t)(t)).attr("className",rS.fw),t=>t.each(function(t,e,n){let r=c.get(t),i=r(t);(0,tM.DM)(n,i)}),t=>t.remove()).nodes(),h=(0,tk.ZP)(d,t=>u.get(t.__data__)),{coordinate:p}=t,g={canvas:i.canvas,coordinate:p};for(let[t,e]of h){let{transform:n=[]}=t,r=(0,tM.qC)(n.map(a));r(e,g)}l&&l(d,g)}(t,e,0,r,i)})}function r2(t,e,n,r,i){return"function"==typeof t?t(e,n,r,i):"string"!=typeof t?t:(0,tM.mx)(e)&&void 0!==e[t]?e[t]:t}function r5(t,e,n,r){if("string"!=typeof e)return;let{color:i}=t,a=t[e]||{},o=a[n]||a[r];return Object.assign({color:i},o)}function r3(t,e,n,r,i){var a,o;let[,l]=ed("shape",i),[s]=ed("animation",i),{defaultShape:c,shape:u}=n,{theme:f,coordinate:d}=r,h=(0,t_.Z)(t),{["default".concat(h,"Animation")]:p}=(null===(a=u[c])||void 0===a?void 0:a.props)||l(it(e,c)).props,{[t]:g={}}=f,m=(null===(o=e.animate)||void 0===o?void 0:o[t])||{},y={coordinate:d};return(e,n,r)=>{let{["".concat(t,"Type")]:i,["".concat(t,"Delay")]:a,["".concat(t,"Duration")]:o,["".concat(t,"Easing")]:l}=e,c=Object.assign({type:i||p},m);if(!c.type)return null;let u=s(c,y),f=u(n,r,(0,tb.Z)(g,{delay:a,duration:o,easing:l}));return Array.isArray(f)?f:[f]}}function r6(t){return t.finished.then(()=>{t.cancel()}),t}function r4(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("string"==typeof t)return{type:t};let{type:e="light"}=t,n=rU(t,["type"]);return Object.assign(Object.assign({},n),{type:e})}function r8(t){let{interaction:e={}}=t;return Object.entries((0,tb.Z)({event:!0,tooltip:!0,sliderFilter:!0,legendFilter:!0,scrollbarFilter:!0},e)).reverse()}function r7(t,e){return rV(this,void 0,void 0,function*(){let{data:n}=t,r=rU(t,["data"]);if(void 0==n)return t;let[,{data:i}]=yield rZ([],{data:n},{library:e});return Object.assign({data:i},r)})}function r9(t){t.style("transform",t=>"translate(".concat(t.paddingLeft+t.marginLeft,", ").concat(t.paddingTop+t.marginTop,")")).style("width",t=>t.innerWidth).style("height",t=>t.innerHeight)}function it(t,e){let{type:n}=t;return"string"==typeof e?"".concat(n,".").concat(e):e}function ie(t,e){let n=t=>void 0!==t.class?"".concat(t.class):"",r=t.nodes();if(0===r.length)return;t.selectAll(ir(rS.Sx)).data(e,t=>t.key).join(t=>t.append("g").attr("className",rS.Sx).attr("id",t=>t.key).style("facet",n).style("fill","transparent").style("zIndex",t=>{var e;return null!==(e=t.zIndex)&&void 0!==e?e:0}),t=>t.style("facet",n).style("fill","transparent").style("zIndex",t=>{var e;return null!==(e=t.zIndex)&&void 0!==e?e:0}),t=>t.remove());let i=t.select(ir(rS.z3)).node();i||t.append("g").attr("className",rS.z3).style("zIndex",0)}function ir(){for(var t=arguments.length,e=Array(t),n=0;n".".concat(t)).join("")}function ii(t,e){t.node()&&t.style("clipPath",t=>{if(!e)return null;let{paddingTop:n,paddingLeft:r,marginLeft:i,marginTop:o,innerWidth:l,innerHeight:s}=t;return new a.UL({style:{x:r+i,y:n+o,width:l,height:s}})})}function ia(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{canvas:r,emitter:i}=e;r&&(function(t){let e=t.getRoot().querySelectorAll(".".concat(rS.S));null==e||e.forEach(t=>{let{nameInteraction:e=new Map}=t;(null==e?void 0:e.size)>0&&Array.from(null==e?void 0:e.values()).forEach(t=>{null==t||t.destroy()})})}(r),n?r.destroy():r.destroyChildren()),i.off()}let io=t=>t?parseInt(t):0;function il(t,e){let n=[t];for(;n.length;){let t=n.shift();e&&e(t);let r=t.children||[];for(let t of r)n.push(t)}}class is{map(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t=>t,e=t(this.value);return this.value=e,this}attr(t,e){return 1==arguments.length?this.value[t]:this.map(n=>(n[t]=e,n))}append(t){let e=new t({});return e.children=[],this.push(e),e}push(t){return t.parentNode=this,t.index=this.children.length,this.children.push(t),this}remove(){let t=this.parentNode;if(t){let{children:e}=t,n=e.findIndex(t=>t===this);e.splice(n,1)}return this}getNodeByKey(t){let e=null;return il(this,n=>{t===n.attr("key")&&(e=n)}),e}getNodesByType(t){let e=[];return il(this,n=>{t===n.type&&e.push(n)}),e}getNodeByType(t){let e=null;return il(this,n=>{e||t!==n.type||(e=n)}),e}call(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;re.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let iu=["width","height","depth","padding","paddingLeft","paddingRight","paddingBottom","paddingTop","inset","insetLeft","insetRight","insetTop","insetBottom","margin","marginLeft","marginRight","marginTop","marginBottom","autoFit","theme","title"],id="__remove__",ih="__callback__";function ip(t){return Object.assign(Object.assign({},t.value),{type:t.type})}function ig(t,e){let{width:n,height:r,autoFit:i,depth:a=0}=t,o=640,l=480;if(i){let{width:t,height:n}=function(t){let e=getComputedStyle(t),n=t.clientWidth||io(e.width),r=t.clientHeight||io(e.height),i=io(e.paddingLeft)+io(e.paddingRight),a=io(e.paddingTop)+io(e.paddingBottom);return{width:n-i,height:r-a}}(e);o=t||o,l=n||l}return o=n||o,l=r||l,{width:Math.max((0,to.Z)(o)?o:1,1),height:Math.max((0,to.Z)(l)?l:1,1),depth:a}}var im=n(34629);function iy(t){return e=>{for(let[n,r]of Object.entries(t)){let{type:t}=r;"value"===t?function(t,e,n){let{key:r=e}=n;t.prototype[e]=function(t){return 0==arguments.length?this.attr(r):this.attr(r,t)}}(e,n,r):"array"===t?function(t,e,n){let{key:r=e}=n;t.prototype[e]=function(t){if(0==arguments.length)return this.attr(r);if(Array.isArray(t))return this.attr(r,t);let e=[...this.attr(r)||[],t];return this.attr(r,e)}}(e,n,r):"object"===t?function(t,e,n){let{key:r=e}=n;t.prototype[e]=function(t,e){if(0==arguments.length)return this.attr(r);if(1==arguments.length&&"string"!=typeof t)return this.attr(r,t);let n=this.attr(r)||{};return n[t]=1==arguments.length||e,this.attr(r,n)}}(e,n,r):"node"===t?function(t,e,n){let{ctor:r}=n;t.prototype[e]=function(t){let n=this.append(r);return"mark"===e&&(n.type=t),n}}(e,n,r):"container"===t?function(t,e,n){let{ctor:r}=n;t.prototype[e]=function(){return this.type=null,this.append(r)}}(e,n,r):"mix"===t&&function(t,e,n){t.prototype[e]=function(t){if(0==arguments.length)return this.attr(e);if(Array.isArray(t))return this.attr(e,{items:t});if((0,tM.mx)(t)&&(void 0!==t.title||void 0!==t.items)||null===t||!1===t)return this.attr(e,t);let n=this.attr(e)||{},{items:r=[]}=n;return r.push(t),n.items=r,this.attr(e,n)}}(e,n,0)}return e}}function iv(t){return Object.fromEntries(Object.entries(t).map(t=>{let[e,n]=t;return[e,{type:"node",ctor:n}]}))}let ib={encode:{type:"object"},scale:{type:"object"},data:{type:"value"},transform:{type:"array"},style:{type:"object"},animate:{type:"object"},coordinate:{type:"object"},interaction:{type:"object"},label:{type:"array",key:"labels"},axis:{type:"object"},legend:{type:"object"},slider:{type:"object"},scrollbar:{type:"object"},state:{type:"object"},layout:{type:"object"},theme:{type:"object"},title:{type:"value"}},ix=Object.assign(Object.assign({},ib),{tooltip:{type:"mix"},viewStyle:{type:"object"}}),iO=Object.assign(Object.assign({},ib),{labelTransform:{type:"array"}}),iw=class extends is{changeData(t){var e;let n=this.getRoot();if(n)return this.attr("data",t),(null===(e=this.children)||void 0===e?void 0:e.length)&&this.children.forEach(e=>{e.attr("data",t)}),null==n?void 0:n.render()}getView(){let t=this.getRoot(),{views:e}=t.getContext();if(null==e?void 0:e.length)return e.find(t=>t.key===this._key)}getScale(){var t;return null===(t=this.getView())||void 0===t?void 0:t.scale}getScaleByChannel(t){let e=this.getScale();if(e)return e[t]}getCoordinate(){var t;return null===(t=this.getView())||void 0===t?void 0:t.coordinate}getTheme(){var t;return null===(t=this.getView())||void 0===t?void 0:t.theme}getGroup(){let t=this._key;if(!t)return;let e=this.getRoot(),n=e.getContext().canvas.getRoot();return n.getElementById(t)}show(){let t=this.getGroup();t&&(t.isVisible()||(0,im.$Z)(t))}hide(){let t=this.getGroup();t&&t.isVisible()&&(0,im.Cp)(t)}};iw=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([iy(iO)],iw);let i_=class extends is{changeData(t){let e=this.getRoot();if(e)return this.attr("data",t),null==e?void 0:e.render()}getMark(){var t;let e=null===(t=this.getRoot())||void 0===t?void 0:t.getView();if(!e)return;let{markState:n}=e,r=Array.from(n.keys()).find(t=>t.key===this.attr("key"));return n.get(r)}getScale(){var t;let e=null===(t=this.getRoot())||void 0===t?void 0:t.getView();if(e)return null==e?void 0:e.scale}getScaleByChannel(t){var e,n;let r=null===(e=this.getRoot())||void 0===e?void 0:e.getView();if(r)return null===(n=null==r?void 0:r.scale)||void 0===n?void 0:n[t]}getGroup(){let t=this.attr("key");if(!t)return;let e=this.getRoot(),n=e.getContext().canvas.getRoot();return n.getElementById(t)}};i_=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([iy(ix)],i_);var ik=n(86426),iC=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},ij=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};class iM extends iw{render(){if(this._rendering)return this._addToTrailing();this._context.canvas||this._createCanvas(),this._context.canvas.getConfig().supportsCSSTransform=!0,this._bindAutoFit(),this._rendering=!0;let t=new Promise((t,e)=>(function(t){var e;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t=>{throw t},{width:o=640,height:l=480,depth:s=0}=t,c=function(t){let e=(0,tb.Z)({},t),n=new Map([[e,null]]),r=new Map([[null,-1]]),i=[e];for(;i.length;){let t=i.shift();if(void 0===t.key){let e=n.get(t),i=r.get(t),a=null===e?"".concat(0):"".concat(e.key,"-").concat(i);t.key=a}let{children:e=[]}=t;if(Array.isArray(e))for(let a=0;a(function t(e,n,r,i){var a;return rV(this,void 0,void 0,function*(){let[o]=ed("composition",r),[l]=ed("interaction",r),s=new Set(Object.keys(r).map(t=>{var e;return null===(e=/mark\.(.*)/.exec(t))||void 0===e?void 0:e[1]}).filter(tM.ri)),c=new Set(Object.keys(r).map(t=>{var e;return null===(e=/component\.(.*)/.exec(t))||void 0===e?void 0:e[1]}).filter(tM.ri)),u=t=>{let{type:e}=t;if("function"==typeof e){let{props:t={}}=e,{composite:n=!0}=t;if(n)return"mark"}return"string"!=typeof e?e:s.has(e)||c.has(e)?"mark":e},f=t=>"mark"===u(t),d=t=>"standardView"===u(t),h=t=>{let{type:e}=t;return"string"==typeof e&&!!c.has(e)},p=t=>{if(d(t))return[t];let e=u(t),n=o({type:e,static:h(t)});return n(t)},g=[],m=new Map,y=new Map,v=[e],b=[];for(;v.length;){let t=v.shift();if(d(t)){let e=y.get(t),[n,i]=e?r0(e,t,r):yield rK(t,r);m.set(n,t),g.push(n);let a=i.flatMap(p).map(t=>eg(t,r));if(v.push(...a),a.every(d)){let t=yield Promise.all(a.map(t=>rX(t,r)));!function(t){let e=t.flatMap(t=>Array.from(t.values())).flatMap(t=>t.channels.map(t=>t.scale));n4(e,"x"),n4(e,"y")}(t);for(let e=0;et.key).join(t=>t.append("g").attr("className",rS.S).attr("id",t=>t.key).call(rQ).each(function(t,e,n){r1(t,(0,tx.F)(n),w,r,i),x.set(t,n)}),t=>t.call(rQ).each(function(t,e,n){r1(t,(0,tx.F)(n),w,r,i),O.set(t,n)}),t=>t.each(function(t,e,n){let r=n.nameInteraction.values();for(let t of r)t.destroy()}).remove());let _=(e,n,a)=>Array.from(e.entries()).map(o=>{let[l,s]=o,c=a||new Map,u=m.get(l),f=function(e,n,r,i){let a=function(t){let[,e]=ed("interaction",t);return t=>{let[n,r]=t;try{return[n,e(n)]}catch(t){return[n,r.type]}}}(r),o=r8(n),l=o.map(a).filter(t=>t[1]&&t[1].props&&t[1].props.reapplyWhenUpdate).map(t=>t[0]);return(n,a,o)=>rV(this,void 0,void 0,function*(){let[s,c]=yield rK(n,r);for(let t of(r1(s,e,[],r,i),l.filter(t=>t!==a)))!function(t,e,n,r,i,a){var o;let[l]=ed("interaction",i),s=e.node(),c=s.nameInteraction,u=r8(n).find(e=>{let[n]=e;return n===t}),f=c.get(t);if(!f||(null===(o=f.destroy)||void 0===o||o.call(f),!u[1]))return;let d=rJ(r,t,u[1],l),h={options:n,view:r,container:e.node(),update:t=>Promise.resolve(t)},p=d(h,[],a.emitter);c.set(t,{destroy:p})}(t,e,n,s,r,i);for(let n of c)t(n,e,r,i);return o(),{options:n,view:s}})}((0,tx.F)(s),u,r,i);return{view:l,container:s,options:u,setState:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t=>t;return c.set(t,e)},update:(t,r)=>rV(this,void 0,void 0,function*(){let i=(0,tM.qC)(Array.from(c.values())),a=i(u);return yield f(a,t,()=>{(0,tw.Z)(r)&&n(e,r,c)})})}}),k=function(){var t;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,a=_(e,k,r);for(let e of a){let{options:r,container:o}=e,s=o.nameInteraction,c=r8(r);for(let r of(n&&(c=c.filter(t=>n.includes(t[0]))),c)){let[n,o]=r,c=s.get(n);if(c&&(null===(t=c.destroy)||void 0===t||t.call(c)),o){let t=rJ(e.view,n,o,l),r=t(e,a,i.emitter);s.set(n,{destroy:r})}}}},C=_(x,k);for(let t of C){let{options:e}=t,n=new Map;for(let r of(t.container.nameInteraction=n,r8(e))){let[e,a]=r;if(a){let r=rJ(t.view,e,a,l),o=r(t,C,i.emitter);n.set(e,{destroy:o})}}}k();let{width:j,height:M}=e,S=[];for(let e of b){let a=new Promise(a=>rV(this,void 0,void 0,function*(){for(let a of e){let e=Object.assign({width:j,height:M},a);yield t(e,n,r,i)}a()}));S.push(a)}i.views=g,null===(a=i.animations)||void 0===a||a.forEach(t=>null==t?void 0:t.cancel()),i.animations=w,i.emitter.emit(tO.$.AFTER_PAINT);let A=w.filter(tM.ri).map(r6).map(t=>t.finished);return Promise.all([...A,...S])})})(Object.assign(Object.assign({},c),{width:o,height:l,depth:s}),g,d,n)).then(()=>{if(s){let[t,e]=u.document.documentElement.getPosition();u.document.documentElement.setPosition(t,e,-s/2)}u.requestAnimationFrame(()=>{f.emit(tO.$.AFTER_RENDER),null==r||r()})}).catch(t=>{null==i||i(t)}),"string"==typeof(e=u.getConfig().container)?document.getElementById(e):e})(this._computedOptions(),this._context,this._createResolve(t),this._createReject(e))),[e,n,r]=function(){let t,e;let n=new Promise((n,r)=>{e=n,t=r});return[n,e,t]}();return t.then(n).catch(r).then(()=>this._renderTrailing()),e}options(t){if(0==arguments.length)return function(t){let e=function(t){if(null!==t.type)return t;let e=t.children[t.children.length-1];for(let n of iu)e.attr(n,t.attr(n));return e}(t),n=[e],r=new Map;for(r.set(e,ip(e));n.length;){let t=n.pop(),e=r.get(t),{children:i=[]}=t;for(let t of i)if(t.type===ih)e.children=t.value;else{let i=ip(t),{children:a=[]}=e;a.push(i),n.push(t),r.set(t,i),e.children=a}}return r.get(e)}(this);let{type:e}=t;return e&&(this._previousDefinedType=e),!function(t,e,n,r,i){let a=function(t,e,n,r,i){let{type:a}=t,{type:o=n||a}=e;if("function"!=typeof o&&new Set(Object.keys(i)).has(o)){for(let n of iu)void 0!==t.attr(n)&&void 0===e[n]&&(e[n]=t.attr(n));return e}if("function"==typeof o||new Set(Object.keys(r)).has(o)){let t={type:"view"},n=Object.assign({},e);for(let e of iu)void 0!==n[e]&&(t[e]=n[e],delete n[e]);return Object.assign(Object.assign({},t),{children:[n]})}return e}(t,e,n,r,i),o=[[null,t,a]];for(;o.length;){let[t,e,n]=o.shift();if(e){if(n){!function(t,e){let{type:n,children:r}=e,i=ic(e,["type","children"]);t.type===n||void 0===n?(0,tM.nx)(t.value,i):"string"==typeof n&&(t.type=n,t.value=i)}(e,n);let{children:t}=n,{children:r}=e;if(Array.isArray(t)&&Array.isArray(r)){let n=Math.max(t.length,r.length);for(let i=0;i1?e-1:0),r=1;r{this.emit(tO.$.AFTER_CHANGE_SIZE)}),n}changeSize(t,e){if(t===this._width&&e===this._height)return Promise.resolve(this);this.emit(tO.$.BEFORE_CHANGE_SIZE),this.attr("width",t),this.attr("height",e);let n=this.render();return n.then(()=>{this.emit(tO.$.AFTER_CHANGE_SIZE)}),n}_create(){let{library:t}=this._context,e=["mark.mark",...Object.keys(t).filter(t=>t.startsWith("mark.")||"component.axisX"===t||"component.axisY"===t||"component.legends"===t)];for(let t of(this._marks={},e)){let e=t.split(".").pop();class n extends i_{constructor(){super({},e)}}this._marks[e]=n,this[e]=function(t){let r=this.append(n);return"mark"===e&&(r.type=t),r}}let n=["composition.view",...Object.keys(t).filter(t=>t.startsWith("composition.")&&"composition.mark"!==t)];for(let t of(this._compositions=Object.fromEntries(n.map(t=>{let e=t.split(".").pop(),n=class extends iw{constructor(){super({},e)}};return n=iC([iy(iv(this._marks))],n),[e,n]})),Object.values(this._compositions)))iy(iv(this._compositions))(t);for(let t of n){let e=t.split(".").pop();this[e]=function(){let t=this._compositions[e];return this.type=null,this.append(t)}}}_reset(){let t=["theme","type","width","height","autoFit"];this.type="view",this.value=Object.fromEntries(Object.entries(this.value).filter(e=>{let[n]=e;return n.startsWith("margin")||n.startsWith("padding")||n.startsWith("inset")||t.includes(n)})),this.children=[]}_renderTrailing(){this._trailing&&(this._trailing=!1,this.render().then(()=>{let t=this._trailingResolve.bind(this);this._trailingResolve=null,t(this)}).catch(t=>{let e=this._trailingReject.bind(this);this._trailingReject=null,e(t)}))}_createResolve(t){return()=>{this._rendering=!1,t(this)}}_createReject(t){return e=>{this._rendering=!1,t(e)}}_computedOptions(){let t=this.options(),{key:e="G2_CHART_KEY"}=t,{width:n,height:r,depth:i}=ig(t,this._container);return this._width=n,this._height=r,this._key=e,Object.assign(Object.assign({key:this._key},t),{width:n,height:r,depth:i})}_createCanvas(){let{width:t,height:e}=ig(this.options(),this._container);this._plugins.push(new tm.S),this._plugins.forEach(t=>this._renderer.registerPlugin(t)),this._context.canvas=new a.Xz({container:this._container,width:t,height:e,renderer:this._renderer})}_addToTrailing(){var t;null===(t=this._trailingResolve)||void 0===t||t.call(this,this),this._trailing=!0;let e=new Promise((t,e)=>{this._trailingResolve=t,this._trailingReject=e});return e}_bindAutoFit(){let t=this.options(),{autoFit:e}=t;if(this._hasBindAutoFit){e||this._unbindAutoFit();return}e&&(this._hasBindAutoFit=!0,window.addEventListener("resize",this._onResize))}_unbindAutoFit(){this._hasBindAutoFit&&(this._hasBindAutoFit=!1,window.removeEventListener("resize",this._onResize))}constructor(t){let{container:e,canvas:n,renderer:r,plugins:i,lib:a}=t,o=ij(t,["container","canvas","renderer","plugins","lib"]);super(o,"view"),this._hasBindAutoFit=!1,this._rendering=!1,this._trailing=!1,this._trailingResolve=null,this._trailingReject=null,this._previousDefinedType=null,this._onResize=(0,ty.Z)(()=>{this.forceFit()},300),this._renderer=r||new tg,this._plugins=i||[],this._container=function(t){if(void 0===t){let t=document.createElement("div");return t[id]=!0,t}if("string"==typeof t){let e=document.getElementById(t);return e}return t}(e),this._emitter=new tv.Z,this._context={library:Object.assign(Object.assign({},a),ik.v),emitter:this._emitter,canvas:n},this._create()}}},24816:function(t,e,n){"use strict";n.d(e,{Yt:function(){return g},Yv:function(){return x},_T:function(){return b}});var r=n(47537),i=n(36380),a=n(83787),o=n(69959),l=n(83914),s=n(23865),c=n(17694),u=n(67700),f=n(11896),d=n(39513),h=n(25524),p=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function g(t,e){let{eulerAngles:n,origin:r}=e;r&&t.setOrigin(r),n&&t.rotate(n[0],n[1],n[2])}function m(t){let{innerWidth:e,innerHeight:n,depth:r}=t.getOptions();return[e,n,r]}function y(t,e,n,r,a,o,l,c){var d;(void 0!==n||void 0!==o)&&t.update(Object.assign(Object.assign({},n&&{tickCount:n}),o&&{tickMethod:o}));let h=function(t,e,n){if(t.getTicks)return t.getTicks();if(!n)return e;let[r,i]=(0,s.Z)(e,t=>+t),{tickCount:a}=t.getOptions();return n(r,i,a)}(t,e,o),p=a?h.filter(a):h,g=t=>t instanceof Date?String(t):"object"==typeof t&&t?t:String(t),m=r||(null===(d=t.getFormatter)||void 0===d?void 0:d.call(t))||g,y=function(t,e){if((0,u.Z0)(e))return t=>t;let n=e.getOptions(),{innerWidth:r,innerHeight:a,insetTop:o,insetBottom:l,insetLeft:s,insetRight:c}=n,[f,d,h]="left"===t||"right"===t?[o,l,a]:[s,c,r],p=new i.b({domain:[0,1],range:[f/h,1-d/h]});return t=>p.map(t)}(l,c),v=function(t,e){let{width:n,height:r}=e.getOptions();return a=>{if(!(0,u.vx)(e))return a;let o=e.map("bottom"===t?[a,1]:[0,a]);if("bottom"===t){let t=o[0],e=new i.b({domain:[0,n],range:[0,1]});return e.map(t)}if("left"===t){let t=o[1],e=new i.b({domain:[0,r],range:[0,1]});return e.map(t)}return a}}(l,c),b=t=>["top","bottom","center","outer"].includes(t),x=t=>["left","right"].includes(t);return(0,u.Z0)(c)||(0,u._e)(c)?p.map((e,n,r)=>{var i,a;let o=(null===(i=t.getBandWidth)||void 0===i?void 0:i.call(t,e))/2||0,s=y(t.map(e)+o),d=(0,u.DS)(c)&&"center"===l||(0,u._e)(c)&&(null===(a=t.getTicks)||void 0===a?void 0:a.call(t))&&b(l)||(0,u._e)(c)&&x(l);return{value:d?1-s:s,label:g(m((0,f.C)(e),n,r)),id:String(n)}}):p.map((e,n,r)=>{var i;let a=(null===(i=t.getBandWidth)||void 0===i?void 0:i.call(t,e))/2||0,o=v(y(t.map(e)+a)),s=x(l);return{value:s?1-o:o,label:g(m((0,f.C)(e),n,r)),id:String(n)}})}let v=t=>e=>{let{labelFormatter:n,labelFilter:r=()=>!0}=e;return i=>{var a;let{scales:[o]}=i,l=(null===(a=o.getTicks)||void 0===a?void 0:a.call(o))||o.getOptions().domain,s="string"==typeof n?(0,c.WU)(n):n,u=Object.assign(Object.assign({},e),{labelFormatter:s,labelFilter:(t,e,n)=>r(l[e],e,l),scale:o});return t(u)(i)}},b=v(t=>{let{direction:e="left",important:n={},labelFormatter:i,order:a,orientation:o,actualPosition:s,position:c,size:f,style:g={},title:v,tickCount:b,tickFilter:x,tickMethod:O,transform:w,indexBBox:_}=t,k=p(t,["direction","important","labelFormatter","order","orientation","actualPosition","position","size","style","title","tickCount","tickFilter","tickMethod","transform","indexBBox"]);return a=>{var p;let{scales:C,value:j,coordinate:M,theme:S}=a,{bbox:A}=j,[E]=C,{domain:P,xScale:R}=E.getOptions(),T=function(t,e,n,r,i,a){let o=function(t,e,n,r,i,a){let o=n.axis,s=["top","right","bottom","left"].includes(i)?n["axis".concat((0,d.Ez)(i))]:n.axisLinear,c=t.getOptions().name,u=n["axis".concat((0,l.Z)(c))]||{};return Object.assign({},o,s,u)}(t,0,n,0,i,0);return"center"===i?Object.assign(Object.assign(Object.assign(Object.assign({},o),{labelDirection:"right"===r?"negative":"positive"}),"center"===r?{labelTransform:"translate(50%,0)"}:null),{tickDirection:"right"===r?"negative":"positive",labelSpacing:"center"===r?0:4,titleSpacing:(0,h.cp)(a)?10:0,tick:"center"!==r&&void 0}):o}(E,0,S,e,c,o),L=Object.assign(Object.assign(Object.assign({},T),g),k),B=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"xy",[r,i,a]=m(e);return"xy"===n?t.includes("bottom")||t.includes("top")?i:r:"xz"===n?t.includes("bottom")||t.includes("top")?a:r:t.includes("bottom")||t.includes("top")?i:a}(s||c,M,t.plane),Z=function(t,e,n,r,i){let{x:a,y:o,width:l,height:s}=n;if("bottom"===t)return{startPos:[a,o],endPos:[a+l,o]};if("left"===t)return{startPos:[a+l,o+s],endPos:[a+l,o]};if("right"===t)return{startPos:[a,o+s],endPos:[a,o]};if("top"===t)return{startPos:[a,o+s],endPos:[a+l,o+s]};if("center"===t){if("vertical"===e)return{startPos:[a,o],endPos:[a,o+s]};if("horizontal"===e)return{startPos:[a,o],endPos:[a+l,o]};if("number"==typeof e){let[t,n]=r.getCenter(),[c,f]=(0,u.De)(r),[d,h]=(0,u.gl)(r),p=Math.min(l,s)/2,{insetLeft:g,insetTop:m}=r.getOptions(),y=c*p,v=f*p,[b,x]=[t+a-g,n+o-m],[O,w]=[Math.cos(e),Math.sin(e)],_=(0,u.Z0)(r)&&i?(()=>{let{domain:t}=i.getOptions();return t.length})():3;return{startPos:[b+v*O,x+v*w],endPos:[b+y*O,x+y*w],gridClosed:1e-6>Math.abs(h-d-360),gridCenter:[b,x],gridControlAngles:Array(_).fill(0).map((t,e,n)=>(h-d)/_*e)}}}return{}}(c,o,A,M,R),I=function(t){let{depth:e}=t.getOptions();return e?{tickIsBillboard:!0,lineIsBillboard:!0,labelIsBillboard:!0,titleIsBillboard:!0,gridIsBillboard:!0}:{}}(M),N=y(E,P,b,i,x,O,c,M),D=_?N.map((t,e)=>{let n=_.get(e);return n&&n[0]===t.label?Object.assign(Object.assign({},t),{bbox:n[1]}):t}):N,z=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},L),{type:"linear",data:D,crossSize:f,titleText:(0,h.iN)(v),labelOverlap:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;if(t.length>0)return t;let{labelAutoRotate:n,labelAutoHide:r,labelAutoEllipsis:i,labelAutoWrap:a}=e,o=[],l=(t,e)=>{e&&o.push(Object.assign(Object.assign({},t),e))};return l({type:"rotate",optionalAngles:[0,15,30,45,60,90]},n),l({type:"ellipsis",minLength:20},i),l({type:"hide"},r),l({type:"wrap",wordWrapWidth:100,maxLines:3,recoveryWhenFail:!0},a),o}(w,L),grid:(p=L.grid,!((0,u.bi)(M)||(0,u.rN)(M))&&(void 0===p?!!E.getTicks:p)),gridLength:B,line:!0,indexBBox:_}),L.line?null:{lineOpacity:0}),Z),I),n),F=z.labelOverlap.find(t=>"hide"===t.type);return F&&(z.crossSize=!1),new r.R({className:"axis",style:(0,h.N)(z)})}}),x=v(t=>{let{order:e,size:n,position:i,orientation:l,labelFormatter:s,tickFilter:c,tickCount:f,tickMethod:d,important:g={},style:v={},indexBBox:b,title:x,grid:O=!1}=t,w=p(t,["order","size","position","orientation","labelFormatter","tickFilter","tickCount","tickMethod","important","style","indexBBox","title","grid"]);return t=>{let{scales:[e],value:n,coordinate:l,theme:p}=t,{bbox:v}=n,{domain:_}=e.getOptions(),k=y(e,_,f,s,c,d,i,l),C=b?k.map((t,e)=>{let n=b.get(e);return n&&n[0]===t.label?Object.assign(Object.assign({},t),{bbox:n[1]}):t}):k,[j,M]=(0,u.De)(l),S=function(t,e,n,r,i){let{x:a,y:o,width:l,height:s}=e,c=[a+l/2,o+s/2],f=Math.min(l,s)/2,[d,h]=(0,u.gl)(i),[p,g]=m(i),y=Math.min(p,g)/2,v={center:c,radius:f,startAngle:d,endAngle:h,gridLength:(r-n)*y};if("inner"===t){let{insetLeft:t,insetTop:e}=i.getOptions();return Object.assign(Object.assign({},v),{center:[c[0]-t,c[1]-e],labelAlign:"perpendicular",labelDirection:"positive",tickDirection:"positive",gridDirection:"negative"})}return Object.assign(Object.assign({},v),{labelAlign:"parallel",labelDirection:"negative",tickDirection:"negative",gridDirection:"positive"})}(i,v,j,M,l),{axis:A,axisArc:E={}}=p,P=(0,h.N)((0,a.Z)({},A,E,S,Object.assign(Object.assign({type:"arc",data:C,titleText:(0,h.iN)(x),grid:O},w),g)));return new r.R({style:(0,o.Z)(P,["transform"])})}});b.props={defaultPosition:"center",defaultSize:45,defaultOrder:0,defaultCrossPadding:[12,12],defaultPadding:[12,12]},x.props={defaultPosition:"outer",defaultOrientation:"vertical",defaultSize:45,defaultOrder:0,defaultCrossPadding:[12,12],defaultPadding:[12,12]}},53347:function(t,e,n){"use strict";n.d(e,{c:function(){return Y}});var r=n(1242),i=n(97582),a=n(36380),o=n(81957),l=n(71154),s=n(5951),c=n(43629),u=n(54015),f=n(47772),d=n(33016),h=n(8126),p=n(62059),g=n(48951),m=n(26406),y=n(47537),v=n(61021),b=n(79274),x=n(62191),O=n(75494),w=n(39639),_={backgroundFill:"#262626",backgroundLineCap:"round",backgroundLineWidth:1,backgroundStroke:"#333",backgroundZIndex:-1,formatter:function(t){return t.toString()},labelFill:"#fff",labelFontSize:12,labelTextBaseline:"middle",padding:[2,4],position:"right",radius:0,zIndex:999},k=(0,b.A)({background:"background",labelGroup:"label-group",label:"label"},"indicator"),C=function(t){function e(e){var n=t.call(this,e,_)||this;return n.point=[0,0],n.group=n.appendChild(new r.ZA({})),n.isMutationObserved=!0,n}return(0,i.ZT)(e,t),e.prototype.renderBackground=function(){if(this.label){var t=this.attributes,e=t.position,n=t.padding,r=(0,i.CR)((0,x.j)(n),4),a=r[0],o=r[1],l=r[2],s=r[3],f=this.label.node().getLocalBounds(),h=f.min,p=f.max,g=new c.b(h[0]-s,h[1]-a,p[0]+o-h[0]+s,p[1]+l-h[1]+a),m=this.getPath(e,g),y=(0,d.zs)(this.attributes,"background");this.background=(0,u.Ys)(this.group).maybeAppendByClassName(k.background,"path").styles((0,i.pi)((0,i.pi)({},y),{d:m})),this.group.appendChild(this.label.node())}},e.prototype.renderLabel=function(){var t=this.attributes,e=t.formatter,n=t.labelText,r=(0,d.zs)(this.attributes,"label"),a=(0,i.CR)((0,d.Hm)(r),2),o=a[0],l=a[1],s=(o.text,(0,i._T)(o,["text"]));this.label=(0,u.Ys)(this.group).maybeAppendByClassName(k.labelGroup,"g").styles(l),n&&this.label.maybeAppendByClassName(k.label,function(){return(0,O.S)(e(n))}).style("text",e(n).toString()).selectAll("text").styles(s)},e.prototype.adjustLayout=function(){var t=(0,i.CR)(this.point,2),e=t[0],n=t[1],r=this.attributes,a=r.x,o=r.y;this.group.attr("transform","translate(".concat(a-e,", ").concat(o-n,")"))},e.prototype.getPath=function(t,e){var n=this.attributes.radius,r=e.x,a=e.y,o=e.width,l=e.height,s=[["M",r+n,a],["L",r+o-n,a],["A",n,n,0,0,1,r+o,a+n],["L",r+o,a+l-n],["A",n,n,0,0,1,r+o-n,a+l],["L",r+n,a+l],["A",n,n,0,0,1,r,a+l-n],["L",r,a+n],["A",n,n,0,0,1,r+n,a],["Z"]],c={top:4,right:6,bottom:0,left:2}[t],u=this.createCorner([s[c].slice(-2),s[c+1].slice(-2)]);return s.splice.apply(s,(0,i.ev)([c+1,1],(0,i.CR)(u),!1)),s[0][0]="M",s},e.prototype.createCorner=function(t,e){void 0===e&&(e=10);var n=w.wE.apply(void 0,(0,i.ev)([],(0,i.CR)(t),!1)),r=(0,i.CR)(t,2),a=(0,i.CR)(r[0],2),o=a[0],l=a[1],s=(0,i.CR)(r[1],2),c=s[0],u=s[1],f=(0,i.CR)(n?[c-o,[o,c]]:[u-l,[l,u]],2),d=f[0],h=(0,i.CR)(f[1],2),p=h[0],g=h[1],m=d/2,y=e*(d/Math.abs(d)),v=y/2,b=y*Math.sqrt(3)/2*.8,x=(0,i.CR)([p,p+m-v,p+m,p+m+v,g],5),O=x[0],_=x[1],k=x[2],C=x[3],j=x[4];return n?(this.point=[k,l-b],[["L",O,l],["L",_,l],["L",k,l-b],["L",C,l],["L",j,l]]):(this.point=[o+b,k],[["L",o,O],["L",o,_],["L",o+b,k],["L",o,C],["L",o,j]])},e.prototype.applyVisibility=function(){"hidden"===this.attributes.visibility?(0,p.Cp)(this):(0,p.$Z)(this)},e.prototype.bindEvents=function(){this.label.on(r.Dk.BOUNDS_CHANGED,this.renderBackground)},e.prototype.render=function(){this.renderLabel(),this.renderBackground(),this.adjustLayout(),this.applyVisibility()},e}(s.w),j=n(77687),M=n(1366),S=n(47334),A=n(52774),E=n(45607),P=n(52644);function R(t,e){var n=(0,i.CR)(function(t,e){for(var n=1;n=r&&e<=i)return[r,i]}return[e,e]}(t,e),2),r=n[0],a=n[1];return{tick:e>(r+a)/2?a:r,range:[r,a]}}var T=(0,b.A)({trackGroup:"background-group",track:"background",selectionGroup:"ribbon-group",selection:"ribbon",clipPath:"clip-path"},"ribbon");function L(t){var e=t.orientation,n=t.size,r=t.length;return(0,P._h)(e,[r,n],[n,r])}function B(t){var e=t.type,n=(0,i.CR)(L(t),2),r=n[0],a=n[1];return"size"===e?[["M",0,a],["L",0+r,0],["L",0+r,a],["Z"]]:[["M",0,a],["L",0,0],["L",0+r,0],["L",0+r,a],["Z"]]}var Z=function(t){function e(e){return t.call(this,e,{type:"color",orientation:"horizontal",size:30,range:[0,1],length:200,block:!1,partition:[],color:["#fff","#000"],trackFill:"#e5e5e5"})||this}return(0,i.ZT)(e,t),e.prototype.render=function(t,e){var n,a,o,l,s,c,f,h,p,g,m,y,v,b,x;(function(t,e){var n=(0,d.zs)(e,"track");t.maybeAppendByClassName(T.track,"path").styles((0,i.pi)({d:B(e)},n))})((0,u.Ys)(e).maybeAppendByClassName(T.trackGroup,"g"),t),n=(0,u.Ys)(e).maybeAppendByClassName(T.selectionGroup,"g"),a=(0,d.zs)(t,"selection"),g=(c=t).orientation,m=c.color,y=c.block,v=c.partition,b=(p=(0,E.Z)(m)?Array(20).fill(0).map(function(t,e,n){return m(e/(n.length-1))}):m).length,x=p.map(function(t){return(0,r.lu)(t).toString()}),o=b?1===b?x[0]:y?(f=Array.from(x),Array(h=v.length).fill(0).reduce(function(t,e,n){var r=f[n%f.length];return t+" ".concat(v[n],":").concat(r).concat(ng?Math.max(d-s,0):Math.max((d-s-g)/y,0));var x=Math.max(m,u),O=h-x,w=(0,i.CR)(this.ifHorizontal([O,v],[v,O]),2),_=w[0],k=w[1],C=["top","left"].includes(b)?s:0,j=(0,i.CR)(this.ifHorizontal([x/2,C],[C,x/2]),2),M=j[0],S=j[1];return new c.b(M,S,_,k)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonShape",{get:function(){var t=this.ribbonBBox,e=t.width,n=t.height;return this.ifHorizontal({size:n,length:e},{size:e,length:n})},enumerable:!1,configurable:!0}),e.prototype.renderRibbon=function(t){var e=this.attributes,n=e.data,r=e.type,i=e.orientation,a=e.color,o=e.block,l=(0,d.zs)(this.attributes,"ribbon"),s=this.range,c=s.min,u=s.max,f=this.ribbonBBox,p=f.x,g=f.y,m=this.ribbonShape,y=m.length,v=m.size,b=(0,h.n)({transform:"translate(".concat(p,", ").concat(g,")"),length:y,size:v,type:r,orientation:i,color:a,block:o,partition:n.map(function(t){return(t.value-c)/(u-c)}),range:this.ribbonRange},l);this.ribbon=t.maybeAppendByClassName(S.Ec.ribbon,function(){return new Z({style:b})}).update(b)},e.prototype.getHandleClassName=function(t){return"".concat(S.Ec.prefix("".concat(t,"-handle")))},e.prototype.renderHandles=function(){var t=this.attributes,e=t.showHandle,n=t.orientation,r=(0,d.zs)(this.attributes,"handle"),a=(0,i.CR)(this.selection,2),o=a[0],l=a[1],s=(0,i.pi)((0,i.pi)({},r),{orientation:n}),c=r.shape,u="basic"===(void 0===c?"slider":c)?A.H:j.H,f=this;this.handlesGroup.selectAll(S.Ec.handle.class).data(e?[{value:o,type:"start"},{value:l,type:"end"}]:[],function(t){return t.type}).join(function(t){return t.append(function(){return new u({style:s})}).attr("className",function(t){var e=t.type;return"".concat(S.Ec.handle," ").concat(f.getHandleClassName(e))}).each(function(t){var e=t.type,n=t.value;this.update({labelText:n}),f["".concat(e,"Handle")]=this,this.addEventListener("pointerdown",f.onDragStart(e))})},function(t){return t.update(s).each(function(t){var e=t.value;this.update({labelText:e})})},function(t){return t.each(function(t){var e=t.type;f["".concat(e,"Handle")]=void 0}).remove()})},e.prototype.adjustHandles=function(){var t=(0,i.CR)(this.selection,2),e=t[0],n=t[1];this.setHandlePosition("start",e),this.setHandlePosition("end",n)},Object.defineProperty(e.prototype,"handleBBox",{get:function(){if(this.cacheHandleBBox)return this.cacheHandleBBox;if(!this.attributes.showHandle)return new c.b(0,0,0,0);var t=this.startHandle.getBBox(),e=t.width,n=t.height,r=this.endHandle.getBBox(),a=r.width,o=r.height,l=(0,i.CR)([Math.max(e,a),Math.max(n,o)],2),s=l[0],u=l[1];return this.cacheHandleBBox=new c.b(0,0,s,u),this.cacheHandleBBox},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"handleShape",{get:function(){var t=this.handleBBox,e=t.width,n=t.height,r=(0,i.CR)(this.ifHorizontal([n,e],[e,n]),2),a=r[0],o=r[1];return{width:e,height:n,size:a,length:o}},enumerable:!1,configurable:!0}),e.prototype.setHandlePosition=function(t,e){var n=this.attributes.handleFormatter,r=this.ribbonBBox,a=r.x,o=r.y,l=this.ribbonShape.size,s=this.getOffset(e),c=(0,i.CR)(this.ifHorizontal([a+s,o+l*this.handleOffsetRatio],[a+l*this.handleOffsetRatio,o+s]),2),u=c[0],f=c[1],d=this.handlesGroup.select(".".concat(this.getHandleClassName(t))).node();null==d||d.update({transform:"translate(".concat(u,", ").concat(f,")"),formatter:n})},e.prototype.renderIndicator=function(t){var e=(0,d.zs)(this.attributes,"indicator");this.indicator=t.maybeAppendByClassName(S.Ec.indicator,function(){return new C({})}).update(e)},Object.defineProperty(e.prototype,"labelData",{get:function(){var t=this;return this.attributes.data.reduce(function(e,n,r,a){var o,l,s=null!==(o=null==n?void 0:n.id)&&void 0!==o?o:r.toString();if(e.push((0,i.pi)((0,i.pi)({},n),{id:s,index:r,type:"value",label:null!==(l=null==n?void 0:n.label)&&void 0!==l?l:n.value.toString(),value:t.ribbonScale.map(n.value)})),re.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function q(t){let{domain:e}=t.getOptions(),[n,r]=[e[0],(0,W.Rz)(e)];return[n,r]}let Y=t=>{let{labelFormatter:e,layout:n,order:i,orientation:a,position:o,size:l,title:s,style:c,crossPadding:u,padding:f}=t,d=G(t,["labelFormatter","layout","order","orientation","position","size","title","style","crossPadding","padding"]);return i=>{let{scales:a,value:l,theme:u,scale:f}=i,{bbox:h}=l,{x:p,y:g,width:m,height:y}=h,v=(0,H.Gd)(o,n),{legendContinuous:b={}}=u,x=(0,H.N)(Object.assign({},b,Object.assign(Object.assign({titleText:(0,H.iN)(s),labelAlign:"value",labelFormatter:"string"==typeof e?t=>(0,$.WU)(e)(t.label):e},function(t,e,n,i,a,o){let l=(0,H.nU)(t,"color"),s=function(t,e,n){var r;let{size:i}=e,a=(0,H.SJ)(t,e,n);return r=a.orientation,a.size=i,(0,H.wE)(r)?a.height=i:a.width=i,a}(n,i,a);if(l instanceof D.M){let{range:t}=l.getOptions(),[e,n]=q(l);return l instanceof z.J||l instanceof F.c?function(t,e,n,r,i){let a=e.thresholds;return Object.assign(Object.assign({},t),{color:i,data:[n,...a,r].map(t=>({value:t/r,label:String(t)}))})}(s,l,e,n,t):function(t,e,n){let r=e.thresholds,i=[-1/0,...r,1/0].map((t,e)=>({value:e,label:t}));return Object.assign(Object.assign({},t),{data:i,color:n,labelFilter:(t,e)=>e>0&&evoid 0!==t).find(t=>!(t instanceof N.s)));return Object.assign(Object.assign({},t),{domain:[d,h],data:c.getTicks().map(t=>({value:t})),color:Array(Math.floor(l)).fill(0).map((t,e)=>{let n=(f-u)/(l-1)*e+u,r=c.map(n)||s,a=i?i.map(n):1;return r.replace(/rgb[a]*\(([\d]{1,3}) *, *([\d]{1,3}) *, *([\d]{1,3})[\S\s]*\)/,(t,e,n,r)=>"rgba(".concat(e,", ").concat(n,", ").concat(r,", ").concat(a,")"))})})}(s,l,c,u,e,o)}(a,f,l,t,Y,u)),c),d)),O=new H.jS({style:Object.assign(Object.assign({x:p,y:g,width:m,height:y},v),{subOptions:x})});return O.appendChild(new I({className:"legend-continuous",style:x})),O}};Y.props={defaultPosition:"top",defaultOrientation:"vertical",defaultOrder:1,defaultSize:60,defaultLength:200,defaultLegendSize:60,defaultPadding:[20,10],defaultCrossPadding:[12,12]}},25524:function(t,e,n){"use strict";n.d(e,{jS:function(){return x},L5:function(){return O},N:function(){return M},LM:function(){return m},ib:function(){return j},Gd:function(){return b},SJ:function(){return C},wE:function(){return _},cp:function(){return k},OV:function(){return y},nU:function(){return w},iN:function(){return v}});var r=n(1242),i=n(97582),a=n(43629);function o(t){for(var e=1/0,n=1/0,r=-1/0,o=-1/0,l=0;lr&&(r=p),g>o&&(o=g)}return new a.b(e,n,r-e,o-n)}var l=function(t,e,n){var r=t.width,l=t.height,s=n.flexDirection,c=void 0===s?"row":s,u=(n.flexWrap,n.justifyContent),f=void 0===u?"flex-start":u,d=(n.alignContent,n.alignItems),h=void 0===d?"flex-start":d,p="row"===c,g="row"===c||"column"===c,m=p?g?[1,0]:[-1,0]:g?[0,1]:[0,-1],y=(0,i.CR)([0,0],2),v=y[0],b=y[1],x=e.map(function(t){var e,n=t.width,r=t.height,o=(0,i.CR)([v,b],2),l=o[0],s=o[1];return v=(e=(0,i.CR)([v+n*m[0],b+r*m[1]],2))[0],b=e[1],new a.b(l,s,n,r)}),O=o(x),w={"flex-start":0,"flex-end":p?r-O.width:l-O.height,center:p?(r-O.width)/2:(l-O.height)/2},_=x.map(function(t){var e=t.x,n=t.y,r=a.b.fromRect(t);return r.x=p?e+w[f]:e,r.y=p?n:n+w[f],r});o(_);var k=function(t){var e=(0,i.CR)(p?["height",l]:["width",r],2),n=e[0],a=e[1];switch(h){case"flex-start":default:return 0;case"flex-end":return a-t[n];case"center":return a/2-t[n]/2}};return _.map(function(t){var e=t.x,n=t.y,r=a.b.fromRect(t);return r.x=p?e:e+k(r),r.y=p?n+k(r):n,r}).map(function(e){var n,r,i=a.b.fromRect(e);return i.x+=null!==(n=t.x)&&void 0!==n?n:0,i.y+=null!==(r=t.y)&&void 0!==r?r:0,i})},s=function(t,e,n){return[]},c=function(t,e,n){if(0===e.length)return[];var r={flex:l,grid:s},i=n.display in r?r[n.display]:null;return(null==i?void 0:i.call(null,t,e,n))||[]},u=n(62191),f=function(t){function e(e){var n=t.call(this,e)||this;n.layoutEvents=[r.Dk.BOUNDS_CHANGED,r.Dk.INSERTED,r.Dk.REMOVED],n.$margin=(0,u.j)(0),n.$padding=(0,u.j)(0);var i=e.style||{},a=i.margin,o=i.padding;return n.margin=void 0===a?0:a,n.padding=void 0===o?0:o,n.isMutationObserved=!0,n.bindEvents(),n}return(0,i.ZT)(e,t),Object.defineProperty(e.prototype,"margin",{get:function(){return this.$margin},set:function(t){this.$margin=(0,u.j)(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this.$padding},set:function(t){this.$padding=(0,u.j)(t)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var t=this.attributes,e=t.x,n=void 0===e?0:e,r=t.y,o=void 0===r?0:r,l=t.width,s=t.height,c=(0,i.CR)(this.$margin,4),u=c[0],f=c[1],d=c[2],h=c[3];return new a.b(n-h,o-u,l+h+f,s+u+d)},e.prototype.appendChild=function(e,n){return e.isMutationObserved=!0,t.prototype.appendChild.call(this,e,n),e},e.prototype.getAvailableSpace=function(){var t=this.attributes,e=t.width,n=t.height,r=(0,i.CR)(this.$padding,4),o=r[0],l=r[1],s=r[2],c=r[3],u=(0,i.CR)(this.$margin,4),f=u[0],d=u[3];return new a.b(c+d,o+f,e-c-l,n-o-s)},e.prototype.layout=function(){if(this.attributes.display&&this.isConnected&&!this.children.some(function(t){return!t.isConnected}))try{var t=this.attributes,e=t.x,n=t.y;this.style.transform="translate(".concat(e,", ").concat(n,")");var r=c(this.getAvailableSpace(),this.children.map(function(t){return t.getBBox()}),this.attributes);this.children.forEach(function(t,e){var n=r[e],i=n.x,a=n.y;t.style.transform="translate(".concat(i,", ").concat(a,")")})}catch(t){}},e.prototype.bindEvents=function(){var t=this;this.layoutEvents.forEach(function(e){t.addEventListener(e,function(e){e.target.isMutationObserved=!0,t.layout()})})},e.prototype.attributeChangedCallback=function(t,e,n){"margin"===t?this.margin=n:"padding"===t&&(this.padding=n),this.layout()},e}(r.ZA),d=n(83787),h=n(83914),p=n(80866),g=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function m(t){return class extends r.b_{connectedCallback(){var t,e;null===(e=(t=this.descriptor).render)||void 0===e||e.call(t,this.attributes,this)}update(){var t,e;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.attr((0,d.Z)({},this.attributes,n)),null===(e=(t=this.descriptor).render)||void 0===e||e.call(t,this.attributes,this)}constructor(e){super(e),this.descriptor=t}}}function y(t,e,n){return t.querySelector(e)?(0,p.F)(t).select(e):(0,p.F)(t).append(n)}function v(t){return Array.isArray(t)?t.join(", "):"".concat(t||"")}function b(t,e){let{flexDirection:n,justifyContent:r,alignItems:i}={display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},a={top:["row","flex-start","center"],bottom:["row","flex-start","center"],left:["column","flex-start","center"],right:["column","flex-start","center"],center:["column","center","center"]};return t in a&&([n,r,i]=a[t]),Object.assign({display:"flex",flexDirection:n,justifyContent:r,alignItems:i},e)}class x extends f{get child(){var t;return null===(t=this.children)||void 0===t?void 0:t[0]}update(t){var e;this.attr(t);let{subOptions:n}=t;null===(e=this.child)||void 0===e||e.update(n)}}class O extends x{update(t){var e;let{subOptions:n}=t;this.attr(t),null===(e=this.child)||void 0===e||e.update(n)}}function w(t,e){var n;return null===(n=t.filter(t=>t.getOptions().name===e))||void 0===n?void 0:n[0]}function _(t){return"horizontal"===t||0===t}function k(t){return"vertical"===t||t===-Math.PI/2}function C(t,e,n){let{bbox:r}=t,{position:i="top",size:a,length:o}=e,l=["top","bottom","center"].includes(i),[s,c]=l?[r.height,r.width]:[r.width,r.height],{defaultSize:u,defaultLength:f}=n.props,d=a||u||s,h=o||f||c,[p,g]=l?[h,d]:[d,h];return{orientation:l?"horizontal":"vertical",width:p,height:g,size:d,length:h}}function j(t){return t.find(t=>t.getOptions().domain.length>0).getOptions().domain}function M(t){let e=["arrow","crosshairs","grid","handle","handleLabel","indicator","label","line","tick","tip","title","trunc"],{style:n}=t,r=g(t,["style"]),i={};return Object.entries(r).forEach(t=>{let[n,r]=t;e.includes(n)?i["show".concat((0,h.Z)(n))]=r:i[n]=r}),Object.assign(Object.assign({},i),n)}},89511:function(t,e,n){"use strict";n.d(e,{b3:function(){return l},ev:function(){return o},l7:function(){return a}});var r=n(83787),i=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function a(t){return function(e){for(var n=arguments.length,i=Array(n>1?n-1:0),a=1;a1?n-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{},r=Object.assign(Object.assign({},{startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,outerRadius:1}),n);return Object.assign(Object.assign({},r),(t=r.startAngle,e=r.endAngle,t%=2*Math.PI,e%=2*Math.PI,t<0&&(t=2*Math.PI+t),e<0&&(e=2*Math.PI+e),t>=e&&(e+=2*Math.PI),{startAngle:t,endAngle:e}))},i=t=>{let{startAngle:e,endAngle:n,innerRadius:i,outerRadius:a}=r(t);return[["translate",0,.5],["reflect.y"],["translate",0,-.5],["polar",e,n,i,a]]};i.props={}},41745:function(t,e,n){"use strict";n.d(e,{E:function(){return a},M:function(){return i}});var r=n(45323);let i=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(Object.assign({},{startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,outerRadius:1}),t)},a=t=>{let{startAngle:e,endAngle:n,innerRadius:a,outerRadius:o}=i(t);return[["transpose"],["translate",.5,.5],["reflect"],["translate",-.5,-.5],...(0,r.A)({startAngle:e,endAngle:n,innerRadius:a,outerRadius:o})]};a.props={}},50368:function(t,e,n){"use strict";n.d(e,{$7:function(){return l.$},V$:function(){return r.V$},Ys:function(){return s.F},l7:function(){return o.l},r_:function(){return a.r},z2:function(){return i.z}});var r=n(83190),i=n(86426),a=n(95674),o=n(55786),l=n(95188),s=n(80866)},14121:function(t,e,n){"use strict";n.d(e,{$:function(){return a},j:function(){return l}});var r=n(95188),i=n(65611);function a(t,e){let{__data__:n}=t,{markKey:r,index:i,seriesIndex:a}=n,{markState:o}=e,l=Array.from(o.keys()).find(t=>t.key===r);if(l)return a?a.map(t=>l.data[t]):l.data[i]}function o(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t=>!0;return o=>{if(!r(o))return;n.emit("plot:".concat(t),o);let{target:l}=o;if(!l)return;let{className:s}=l;if("plot"===s)return;let c=(0,i.Qv)(l,t=>"element"===t.className),u=(0,i.Qv)(l,t=>"component"===t.className),f=(0,i.Qv)(l,t=>"label"===t.className),d=c||u||f;if(!d)return;let{className:h,markType:p}=d,g=Object.assign(Object.assign({},o),{nativeEvent:!0});"element"===h?(g.data={data:a(d,e)},n.emit("element:".concat(t),g),n.emit("".concat(p,":").concat(t),g)):"label"===h?(g.data={data:d.attributes.datum},n.emit("label:".concat(t),g),n.emit("".concat(s,":").concat(t),g)):(n.emit("component:".concat(t),g),n.emit("".concat(s,":").concat(t),g))}}function l(){return(t,e,n)=>{let{container:i,view:a}=t,l=o(r.$.CLICK,a,n,t=>1===t.detail),s=o(r.$.DBLCLICK,a,n,t=>2===t.detail),c=o(r.$.POINTER_TAP,a,n),u=o(r.$.POINTER_DOWN,a,n),f=o(r.$.POINTER_UP,a,n),d=o(r.$.POINTER_OVER,a,n),h=o(r.$.POINTER_OUT,a,n),p=o(r.$.POINTER_MOVE,a,n),g=o(r.$.POINTER_ENTER,a,n),m=o(r.$.POINTER_LEAVE,a,n),y=o(r.$.POINTER_UPOUTSIDE,a,n),v=o(r.$.DRAG_START,a,n),b=o(r.$.DRAG,a,n),x=o(r.$.DRAG_END,a,n),O=o(r.$.DRAG_ENTER,a,n),w=o(r.$.DRAG_LEAVE,a,n),_=o(r.$.DRAG_OVER,a,n),k=o(r.$.DROP,a,n);return i.addEventListener("click",l),i.addEventListener("click",s),i.addEventListener("pointertap",c),i.addEventListener("pointerdown",u),i.addEventListener("pointerup",f),i.addEventListener("pointerover",d),i.addEventListener("pointerout",h),i.addEventListener("pointermove",p),i.addEventListener("pointerenter",g),i.addEventListener("pointerleave",m),i.addEventListener("pointerupoutside",y),i.addEventListener("dragstart",v),i.addEventListener("drag",b),i.addEventListener("dragend",x),i.addEventListener("dragenter",O),i.addEventListener("dragleave",w),i.addEventListener("dragover",_),i.addEventListener("drop",k),()=>{i.removeEventListener("click",l),i.removeEventListener("click",s),i.removeEventListener("pointertap",c),i.removeEventListener("pointerdown",u),i.removeEventListener("pointerup",f),i.removeEventListener("pointerover",d),i.removeEventListener("pointerout",h),i.removeEventListener("pointermove",p),i.removeEventListener("pointerenter",g),i.removeEventListener("pointerleave",m),i.removeEventListener("pointerupoutside",y),i.removeEventListener("dragstart",v),i.removeEventListener("drag",b),i.removeEventListener("dragend",x),i.removeEventListener("dragenter",O),i.removeEventListener("dragleave",w),i.removeEventListener("dragover",_),i.removeEventListener("drop",k)}}}l.props={reapplyWhenUpdate:!0}},65611:function(t,e,n){"use strict";n.d(e,{$3:function(){return D},A9:function(){return y},AN:function(){return A},B1:function(){return E},C0:function(){return _},DW:function(){return v},KJ:function(){return P},Ks:function(){return x},Qv:function(){return F},Qz:function(){return O},Sv:function(){return w},TC:function(){return z},TL:function(){return C},TQ:function(){return T},TT:function(){return L},W3:function(){return b},d2:function(){return j},eJ:function(){return M},fB:function(){return R},jH:function(){return k},k5:function(){return Z},kX:function(){return I},r7:function(){return N},xi:function(){return B}});var r=n(1242),i=n(11108),a=n(80732),o=n(47666),l=n(80866),s=n(76115),c=n(83190),u=n(60954),f=n(86043),d=n(67700),h=n(34629),p=n(86124),g=n(70174),m=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function y(t){return(0,l.F)(t).selectAll(".".concat(c.Tt)).nodes().filter(t=>!t.__removed__)}function v(t,e){return b(t,e).flatMap(t=>{let{container:e}=t;return y(e)})}function b(t,e){return e.filter(e=>e!==t&&e.options.parentKey===t.options.key)}function x(t){return(0,l.F)(t).select(".".concat(c.V$)).node()}function O(t){if("g"===t.tagName)return t.getRenderBounds();let e=t.getGeometryBounds(),n=new r.mN;return n.setFromTransformedAABB(e,t.getWorldTransform()),n}function w(t,e){let{offsetX:n,offsetY:r}=e,i=O(t),{min:[a,o],max:[l,s]}=i;return nl||rs?null:[n-a,r-o]}function _(t,e){let{offsetX:n,offsetY:r}=e,[i,a,o,l]=function(t){let e=t.getRenderBounds(),{min:[n,r],max:[i,a]}=e;return[n,r,i,a]}(t);return[Math.min(o,Math.max(i,n))-i,Math.min(l,Math.max(a,r))-a]}function k(t){return t=>t.__data__.color}function C(t){return t=>t.__data__.x}function j(t){let e=Array.isArray(t)?t:[t],n=new Map(e.flatMap(t=>{let e=Array.from(t.markState.keys());return e.map(e=>[S(t.key,e.key),e.data])}));return t=>{let{index:e,markKey:r,viewKey:i}=t.__data__,a=n.get(S(i,r));return a[e]}}function M(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t,e)=>t,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(t,e,n)=>t.setAttribute(e,n),r="__states__",i="__ordinal__",a=a=>{let{[r]:o=[],[i]:l={}}=a,s=o.reduce((e,n)=>Object.assign(Object.assign({},e),t[n]),l);if(0!==Object.keys(s).length){for(let[t,r]of Object.entries(s)){let i=(0,h.C2)(a,t),o=e(r,a);n(a,t,o),t in l||(l[t]=i)}a[i]=l}},o=t=>{t[r]||(t[r]=[])};return{setState:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i1?e-1:0),i=1;i(o(t),-1!==t[r].indexOf(e))}}function S(t,e){return"".concat(t,",").concat(e)}function A(t,e){let n=Array.isArray(t)?t:[t],r=n.flatMap(t=>t.marks.map(e=>[S(t.key,e.key),e.state])),i={};for(let t of e){let[e,n]=Array.isArray(t)?t:[t,{}];i[e]=r.reduce((t,r)=>{var i;let[a,o={}]=r,l=void 0===(i=o[e])||"object"==typeof i&&0===Object.keys(i).length?n:o[e];for(let[e,n]of Object.entries(l)){let r=t[e],i=(t,e,i,o)=>{let l=S(o.__data__.viewKey,o.__data__.markKey);return a!==l?null==r?void 0:r(t,e,i,o):"function"!=typeof n?n:n(t,e,i,o)};t[e]=i}return t},{})}return i}function E(t,e){let n=new Map(t.map((t,e)=>[t,e])),r=e?t.map(e):t;return(t,i)=>{if("function"!=typeof t)return t;let a=n.get(i),o=e?e(i):i;return t(o,a,r,i)}}function P(t){var{link:e=!1,valueof:n=(t,e)=>t,coordinate:o}=t,l=m(t,["link","valueof","coordinate"]);if(!e)return[()=>{},()=>{}];let c=t=>t.__data__.points,u=(t,e)=>{let[,n,r]=t,[i,,,a]=e;return[n,i,a,r]};return[t=>{var e;if(t.length<=1)return;let o=(0,a.Z)(t,(t,e)=>{let{x:n}=t.__data__,{x:r}=e.__data__;return n-r});for(let t=1;tn(t,f)),{fill:b=f.getAttribute("fill")}=v,x=m(v,["fill"]),O=new r.y$({className:"element-link",style:Object.assign({d:a.toString(),fill:b,zIndex:-2},x)});null===(e=f.link)||void 0===e||e.remove(),f.parentNode.appendChild(O),f.link=O}},t=>{var e;null===(e=t.link)||void 0===e||e.remove(),t.link=null}]}function R(t,e,n){let r=e=>{let{transform:n}=t.style;return n?"".concat(n," ").concat(e):e};if((0,d.Z0)(n)){let{points:i}=t.__data__,[a,o]=(0,d._e)(n)?(0,p.HP)(i):i,l=n.getCenter(),s=(0,g.lu)(a,l),c=(0,g.lu)(o,l),u=(0,g.EU)(s),f=(0,g.dI)(s,c),h=u+f/2,m=e*Math.cos(h),y=e*Math.sin(h);return r("translate(".concat(m,", ").concat(y,")"))}return r((0,d._e)(n)?"translate(".concat(e,", 0)"):"translate(0, ".concat(-e,")"))}function T(t){var{document:e,background:n,scale:r,coordinate:i,valueof:a}=t,o=m(t,["document","background","scale","coordinate","valueof"]);let l="element-background";if(!n)return[()=>{},()=>{}];let c=(t,e,n)=>{let r=t.invert(e),i=e+t.getBandWidth(r)/2,a=t.getStep(r)/2,o=a*n;return[i-a+o,i+a-o]},d=(t,e)=>{let{x:n}=r;if(!(0,u.a3)(n))return[0,1];let{__data__:i}=t,{x:a}=i,[o,l]=c(n,a,e);return[o,l]},h=(t,e)=>{let{y:n}=r;if(!(0,u.a3)(n))return[0,1];let{__data__:i}=t,{y:a}=i,[o,l]=c(n,a,e);return[o,l]},p=(t,n)=>{let{padding:r}=n,[a,o]=d(t,r),[l,s]=h(t,r),c=[[a,l],[o,l],[o,s],[a,s]].map(t=>i.map(t)),{__data__:u}=t,{y:p,y1:g}=u;return(0,f.J)(e,c,{y:p,y1:g},i,n)},g=(t,e)=>{let{transform:n="scale(1.2, 1.2)",transformOrigin:r="center center",stroke:i=""}=e,a=m(e,["transform","transformOrigin","stroke"]),o=Object.assign({transform:n,transformOrigin:r,stroke:i},a),l=t.cloneNode(!0);for(let[t,e]of Object.entries(o))l.style[t]=e;return l},y=()=>{let{x:t,y:e}=r;return[t,e].some(u.a3)};return[t=>{t.background&&t.background.remove();let e=(0,s.Xc)(o,e=>a(e,t)),{fill:n="#CCD6EC",fillOpacity:r=.3,zIndex:i=-2,padding:c=.001,lineWidth:u=0}=e,f=m(e,["fill","fillOpacity","zIndex","padding","lineWidth"]),d=Object.assign(Object.assign({},f),{fill:n,fillOpacity:r,zIndex:i,padding:c,lineWidth:u}),h=y()?p:g,v=h(t,d);v.className=l,t.parentNode.parentNode.appendChild(v),t.background=v},t=>{var e;null===(e=t.background)||void 0===e||e.remove(),t.background=null},t=>t.className===l]}function L(t,e){let n=t.getRootNode().defaultView,r=n.getContextService().getDomElement();(null==r?void 0:r.style)&&(t.cursor=r.style.cursor,r.style.cursor=e)}function B(t){L(t,t.cursor)}function Z(t,e,n){return t.find(t=>Object.entries(e).every(e=>{let[r,i]=e;return n(t)[r]===i}))}function I(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))}function N(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,o.Z)(t,t=>!!t).map((t,e)=>[0===e?"M":"L",...t]);return e&&n.push(["Z"]),n}function D(t){return t.querySelectorAll(".element")}function z(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=[["M",...e[1]]],i=I(t,e[1]),a=I(t,e[0]);return 0===i?r.push(["L",...e[3]],["A",a,a,0,n,1,...e[0]],["Z"]):r.push(["A",i,i,0,n,0,...e[2]],["L",...e[3]],["A",a,a,0,n,1,...e[0]],["Z"]),r}function F(t,e){if(e(t))return t;let n=t.parent;for(;n&&!e(n);)n=n.parent;return n}},98257:function(t,e,n){"use strict";n.d(e,{s:function(){return ml}});var r={};n.r(r);var i={};n.r(i),n.d(i,{geoAlbers:function(){return hB},geoAlbersUsa:function(){return hZ},geoAzimuthalEqualArea:function(){return hz},geoAzimuthalEqualAreaRaw:function(){return hD},geoAzimuthalEquidistant:function(){return h$},geoAzimuthalEquidistantRaw:function(){return hF},geoConicConformal:function(){return hV},geoConicConformalRaw:function(){return hY},geoConicEqualArea:function(){return hL},geoConicEqualAreaRaw:function(){return hT},geoConicEquidistant:function(){return hX},geoConicEquidistantRaw:function(){return hK},geoEqualEarth:function(){return h1},geoEqualEarthRaw:function(){return h0},geoEquirectangular:function(){return hQ},geoEquirectangularRaw:function(){return hU},geoGnomonic:function(){return h5},geoGnomonicRaw:function(){return h2},geoIdentity:function(){return h3},geoMercator:function(){return hH},geoMercatorRaw:function(){return hW},geoNaturalEarth1:function(){return h4},geoNaturalEarth1Raw:function(){return h6},geoOrthographic:function(){return h7},geoOrthographicRaw:function(){return h8},geoProjection:function(){return hE},geoProjectionMutator:function(){return hP},geoStereographic:function(){return pt},geoStereographicRaw:function(){return h9},geoTransverseMercator:function(){return pn},geoTransverseMercatorRaw:function(){return pe}});var a={};n.r(a),n.d(a,{frequency:function(){return gm},id:function(){return gy},name:function(){return gv},weight:function(){return gg}});let o=()=>[["cartesian"]];o.props={};var l=n(45323);let s=()=>[["transpose"],["translate",.5,.5],["reflect.x"],["translate",-.5,-.5]];s.props={transform:!0};let c=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(Object.assign({},{startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,outerRadius:1}),t)},u=t=>{let{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=c(t);return[...s(),...(0,l.A)({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};u.props={};let f=()=>[["parallel",0,1,0,1]];f.props={};let d=t=>{let{focusX:e=0,focusY:n=0,distortionX:r=2,distortionY:i=2,visual:a=!1}=t;return[["fisheye",e,n,r,i,a]]};d.props={transform:!0};var h=n(41745);let p=t=>{let{startAngle:e=-Math.PI/2,endAngle:n=3*Math.PI/2,innerRadius:r=0,outerRadius:i=1}=t;return[...f(),...(0,l.A)({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};p.props={};let g=t=>{let{value:e}=t;return t=>t.map(()=>e)};g.props={};let m=t=>{let{value:e}=t;return t=>t.map(t=>t[e])};m.props={};let y=t=>{let{value:e}=t;return t=>t.map(e)};y.props={};let v=t=>{let{value:e}=t;return()=>e};v.props={};var b=n(83787);function x(t,e){if(null!==t)return{type:"column",value:t,field:e}}function O(t,e){let n=x(t,e);return Object.assign(Object.assign({},n),{inferred:!0})}function w(t,e){if(null!==t)return{type:"column",value:t,field:e,visual:!0}}function _(t,e){let n=[];for(let r of t)n[r]=e;return n}function k(t,e){let n=t[e];if(!n)return[null,null];let{value:r,field:i=null}=n;return[r,i]}function C(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r(t,e)=>{let{encode:n}=e,{y1:r}=n;return void 0!==r?[t,e]:[t,(0,b.Z)({},e,{encode:{y1:O(_(t,0))}})]};M.props={};let S=()=>(t,e)=>{let{encode:n}=e,{x:r}=n;return void 0!==r?[t,e]:[t,(0,b.Z)({},e,{encode:{x:O(_(t,0))},scale:{x:{guide:null}}})]};S.props={};var A=n(86043);let E=(t,e)=>(0,A.I)(Object.assign({colorAttribute:"fill"},t),e);E.props=Object.assign(Object.assign({},A.I.props),{defaultMarker:"square"});let P=(t,e)=>(0,A.I)(Object.assign({colorAttribute:"stroke"},t),e);P.props=Object.assign(Object.assign({},A.I.props),{defaultMarker:"hollowSquare"});var R=n(25049);function T(){}function L(t){this._context=t}function B(t){return new L(t)}L.prototype={areaStart:T,areaEnd:T,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};var Z=n(67700),I=n(80866),N=n(86124),D=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function z(t,e,n){let[r,i,a,o]=t;if((0,Z._e)(n)){let t=[e?e[0][0]:i[0],i[1]],n=[e?e[3][0]:a[0],a[1]];return[r,t,n,o]}let l=[i[0],e?e[0][1]:i[1]],s=[a[0],e?e[3][1]:a[1]];return[r,l,s,o]}let F=(t,e)=>{let{adjustPoints:n=z}=t,r=D(t,["adjustPoints"]),{coordinate:i,document:a}=e;return(t,e,o,l)=>{let{index:s}=e,{color:c}=o,u=D(o,["color"]),f=l[s+1],d=n(t,f,i),h=!!(0,Z._e)(i),[p,g,m,y]=h?(0,N.HP)(d):d,{color:v=c,opacity:b}=e,x=(0,R.Z)().curve(B)([p,g,m,y]);return(0,I.F)(a.createElement("path",{})).call(N.bg,u).style("d",x).style("fill",v).style("fillOpacity",b).call(N.bg,r).node()}};function $(t,e,n){let[r,i,a,o]=t;if((0,Z._e)(n)){let t=[e?e[0][0]:(i[0]+a[0])/2,i[1]],n=[e?e[3][0]:(i[0]+a[0])/2,a[1]];return[r,t,n,o]}let l=[i[0],e?e[0][1]:(i[1]+a[1])/2],s=[a[0],e?e[3][1]:(i[1]+a[1])/2];return[r,l,s,o]}F.props={defaultMarker:"square"};let W=(t,e)=>F(Object.assign({adjustPoints:$},t),e);W.props={defaultMarker:"square"};var H=n(39513);function G(t){return Math.abs(t)>10?String(t):t.toString().padStart(2,"0")}let q=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{channel:e="x"}=t;return(t,n)=>{let{encode:r}=n,{tooltip:i}=n;if((0,H.Qp)(i))return[t,n];let{title:a}=i;if(void 0!==a)return[t,n];let o=Object.keys(r).filter(t=>t.startsWith(e)).filter(t=>!r[t].inferred).map(t=>k(r,t)).filter(t=>{let[e]=t;return e}).map(t=>t[0]);if(0===o.length)return[t,n];let l=[];for(let e of t)l[e]={value:o.map(t=>t[e]instanceof Date?function(t){let e=t.getFullYear(),n=G(t.getMonth()+1),r=G(t.getDate()),i="".concat(e,"-").concat(n,"-").concat(r),a=t.getHours(),o=t.getMinutes(),l=t.getSeconds();return a||o||l?"".concat(i," ").concat(G(a),":").concat(G(o),":").concat(G(l)):i}(t[e]):t[e]).join(", ")};return[t,(0,b.Z)({},n,{tooltip:{title:l}})]}};q.props={};let Y=t=>{let{channel:e}=t;return(t,n)=>{let{encode:r,tooltip:i}=n;if((0,H.Qp)(i))return[t,n];let{items:a=[]}=i;if(!a||a.length>0)return[t,n];let o=Array.isArray(e)?e:[e],l=o.flatMap(t=>Object.keys(r).filter(e=>e.startsWith(t)).map(t=>{let{field:e,value:n,inferred:i=!1,aggregate:a}=r[t];return i?null:a&&n?{channel:t}:e?{field:e}:n?{channel:t}:null}).filter(t=>null!==t));return[t,(0,b.Z)({},n,{tooltip:{items:l}})]}};Y.props={};var V=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let U=()=>(t,e)=>{let{encode:n}=e,{key:r}=n,i=V(n,["key"]);if(void 0!==r)return[t,e];let a=Object.values(i).map(t=>{let{value:e}=t;return e}),o=t.map(t=>a.filter(Array.isArray).map(e=>e[t]).join("-"));return[t,(0,b.Z)({},e,{encode:{key:x(o)}})]};function Q(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{shapes:e}=t;return[{name:"color"},{name:"opacity"},{name:"shape",range:e},{name:"enterType"},{name:"enterDelay",scaleKey:"enter"},{name:"enterDuration",scaleKey:"enter"},{name:"enterEasing"},{name:"key",scale:"identity"},{name:"groupKey",scale:"identity"},{name:"label",scale:"identity"}]}function K(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[...Q(t),{name:"title",scale:"identity"}]}function X(){return[{type:q,channel:"color"},{type:Y,channel:["x","y"]}]}function J(){return[{type:q,channel:"x"},{type:Y,channel:["y"]}]}function tt(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Q(t)}function te(){return[{type:U}]}function tn(t,e){return t.getBandWidth(t.invert(e))}function tr(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{x:r,y:i,series:a}=e,{x:o,y:l,series:s}=t,{style:{bandOffset:c=s?0:.5,bandOffsetX:u=c,bandOffsetY:f=c}={}}=n,d=!!(null==o?void 0:o.getBandWidth),h=!!(null==l?void 0:l.getBandWidth),p=!!(null==s?void 0:s.getBandWidth);return d||h?(t,e)=>{let n=d?tn(o,r[e]):0,c=h?tn(l,i[e]):0,g=p&&a?(tn(s,a[e])/2+ +a[e])*n:0,[m,y]=t;return[m+u*n+g,y+f*c]}:t=>t}function ti(t){return parseFloat(t)/100}function ta(t,e,n,r){let{x:i,y:a}=n,{innerWidth:o,innerHeight:l}=r.getOptions(),s=Array.from(t,t=>{let e=i[t],n=a[t],r="string"==typeof e?ti(e)*o:+e,s="string"==typeof n?ti(n)*l:+n;return[[r,s]]});return[t,s]}function to(t){return"function"==typeof t?t:e=>e[t]}function tl(t,e){return Array.from(t,to(e))}function ts(t,e){let{source:n=t=>t.source,target:r=t=>t.target,value:i=t=>t.value}=e,{links:a,nodes:o}=t,l=tl(a,n),s=tl(a,r),c=tl(a,i);return{links:a.map((t,e)=>({target:s[e],source:l[e],value:c[e]})),nodes:o||Array.from(new Set([...l,...s]),t=>({key:t}))}}function tc(t,e){return t.getBandWidth(t.invert(e))}U.props={};let tu={rect:E,hollow:P,funnel:F,pyramid:W},tf=()=>(t,e,n,r)=>{let{x:i,y:a,y1:o,series:l,size:s}=n,c=e.x,u=e.series,[f]=r.getSize(),d=s?s.map(t=>+t/f):null,h=s?(t,e,n)=>{let r=t+e/2,i=d[n];return[r-i/2,r+i/2]}:(t,e,n)=>[t,t+e],p=Array.from(t,t=>{let e=tc(c,i[t]),n=u?tc(u,null==l?void 0:l[t]):1,s=(+(null==l?void 0:l[t])||0)*e,f=+i[t]+s,[d,p]=h(f,e*n,t),g=+a[t],m=+o[t];return[[d,g],[p,g],[p,m],[d,m]].map(t=>r.map(t))});return[t,p]};tf.props={defaultShape:"rect",defaultLabelShape:"label",composite:!1,shape:tu,channels:[...K({shapes:Object.keys(tu)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"},{name:"size"}],preInference:[...te(),{type:M},{type:S}],postInference:[...J()],interaction:{shareTooltip:!0}};let td={rect:E,hollow:P},th=()=>(t,e,n,r)=>{let{x:i,x1:a,y:o,y1:l}=n,s=Array.from(t,t=>{let e=[+i[t],+o[t]],n=[+a[t],+o[t]],s=[+a[t],+l[t]],c=[+i[t],+l[t]];return[e,n,s,c].map(t=>r.map(t))});return[t,s]};th.props={defaultShape:"rect",defaultLabelShape:"label",composite:!1,shape:td,channels:[...K({shapes:Object.keys(td)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...te(),{type:M}],postInference:[...J()],interaction:{shareTooltip:!0}};var tp=n(44022),tg=n(18143),tm=tv(tg.Z);function ty(t){this._curve=t}function tv(t){function e(e){return new ty(t(e))}return e._curve=t,e}function tb(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(tv(t)):e()._curve},t}ty.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),-(e*Math.cos(t)))}};var tx=n(21399),tO=n(70174),tw=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let t_=(0,tx.a)(t=>{let{d1:e,d2:n,style1:r,style2:i}=t.attributes,a=t.ownerDocument;(0,I.F)(t).maybeAppend("line",()=>a.createElement("path",{})).style("d",e).call(N.bg,r),(0,I.F)(t).maybeAppend("line1",()=>a.createElement("path",{})).style("d",n).call(N.bg,i)}),tk=(t,e)=>{let{curve:n,gradient:r=!1,gradientColor:i="between",defined:a=t=>!Number.isNaN(t)&&null!=t,connect:o=!1}=t,l=tw(t,["curve","gradient","gradientColor","defined","connect"]),{coordinate:s,document:c}=e;return(t,e,u)=>{let f;let{color:d,lineWidth:h}=u,p=tw(u,["color","lineWidth"]),{color:g=d,size:m=h,seriesColor:y,seriesX:v,seriesY:b}=e,x=(0,N.Ck)(s,e),O=(0,Z._e)(s),w=r&&y?(0,N.o7)(y,v,b,r,i,O):g,_=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p),w&&{stroke:w}),m&&{lineWidth:m}),x&&{transform:x}),l);if((0,Z.Z0)(s)){let t=s.getCenter();f=e=>tb((0,R.Z)().curve(tm)).angle((n,r)=>(0,tO.SH)((0,tO.lu)(e[r],t))).radius((n,r)=>(0,tO.TK)(e[r],t)).defined(t=>{let[e,n]=t;return a(e)&&a(n)}).curve(n)(e)}else f=(0,R.Z)().x(t=>t[0]).y(t=>t[1]).defined(t=>{let[e,n]=t;return a(e)&&a(n)}).curve(n);let[k,C]=function(t,e){let n=[],r=[],i=!1,a=null;for(let o of t)e(o[0])&&e(o[1])?(n.push(o),i&&(i=!1,r.push([a,o])),a=o):i=!0;return[n,r]}(t,a),j=(0,H.hB)(_,"connect"),M=!!C.length;return M&&(!o||Object.keys(j).length)?M&&!o?(0,I.F)(c.createElement("path",{})).style("d",f(t)).call(N.bg,_).node():(0,I.F)(new t_).style("style1",Object.assign(Object.assign({},_),j)).style("style2",_).style("d1",C.map(f).join(",")).style("d2",f(t)).node():(0,I.F)(c.createElement("path",{})).style("d",f(k)||[]).call(N.bg,_).node()}};tk.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let tC=(t,e)=>{let{coordinate:n}=e;return function(){for(var r=arguments.length,i=Array(r),a=0;atA.Ho){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,s=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/s,i=(i*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/s}if(t._l23_a>tA.Ho){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*c+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function tP(t,e){this._context=t,this._alpha=e}function tR(t,e){this._context=t,this._alpha=e}tP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:tE(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return e?new tP(t,e):new tM(t,0)}return n.alpha=function(e){return t(+e)},n}(.5),tR.prototype={areaStart:T,areaEnd:T,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:tE(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var tT=function t(e){function n(t){return e?new tR(t,e):new tS(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function tL(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0);return((a<0?-1:1)+(o<0?-1:1))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs((a*i+o*r)/(r+i)))||0}function tB(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function tZ(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,l=(a-r)/3;t._context.bezierCurveTo(r+l,i+l*e,a-l,o-l*n,a,o)}function tI(t){this._context=t}function tN(t){this._context=new tD(t)}function tD(t){this._context=t}function tz(t){return new tI(t)}function tF(t){return new tN(t)}tI.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:tZ(this,this._t0,tB(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,tZ(this,tB(this,n=tL(this,t,e)),n);break;default:tZ(this,this._t0,n=tL(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(tN.prototype=Object.create(tI.prototype)).point=function(t,e){tI.prototype.point.call(this,e,t)},tD.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}};var t$=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let tW=(t,e)=>{let n=t$(t,[]),{coordinate:r}=e;return function(){for(var t=arguments.length,i=Array(t),a=0;a=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};let tV=(t,e)=>tk(Object.assign({curve:tY},t),e);tV.props=Object.assign(Object.assign({},tk.props),{defaultMarker:"hv"});let tU=(t,e)=>tk(Object.assign({curve:tq},t),e);tU.props=Object.assign(Object.assign({},tk.props),{defaultMarker:"vh"});let tQ=(t,e)=>tk(Object.assign({curve:tG},t),e);tQ.props=Object.assign(Object.assign({},tk.props),{defaultMarker:"hvh"});var tK=n(11108),tX=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let tJ=(t,e)=>{let{document:n}=e;return(e,r,i)=>{let{seriesSize:a,color:o}=r,{color:l}=i,s=tX(i,["color"]),c=(0,tK.Z)();for(let t=0;t(t,e)=>{let{style:n={},encode:r}=e,{series:i}=r,{gradient:a}=n;return!a||i?[t,e]:[t,(0,b.Z)({},e,{encode:{series:w(_(t,void 0))}})]};t0.props={};let t1=()=>(t,e)=>{let{encode:n}=e,{series:r,color:i}=n;if(void 0!==r||void 0===i)return[t,e];let[a,o]=k(n,"color");return[t,(0,b.Z)({},e,{encode:{series:x(a,o)}})]};t1.props={};let t2={line:tC,smooth:tW,hv:tV,vh:tU,hvh:tQ,trail:tJ},t5=(t,e,n,r)=>{var i,a;let{series:o,x:l,y:s}=n,{x:c,y:u}=e;if(void 0===l||void 0===s)throw Error("Missing encode for x or y channel.");let f=o?Array.from((0,tp.ZP)(t,t=>o[t]).values()):[t],d=f.map(t=>t[0]).filter(t=>void 0!==t),h=((null===(i=null==c?void 0:c.getBandWidth)||void 0===i?void 0:i.call(c))||0)/2,p=((null===(a=null==u?void 0:u.getBandWidth)||void 0===a?void 0:a.call(u))||0)/2,g=Array.from(f,t=>t.map(t=>r.map([+l[t]+h,+s[t]+p])));return[d,g,f]},t3=(t,e,n,r)=>{let i=Object.entries(n).filter(t=>{let[e]=t;return e.startsWith("position")}).map(t=>{let[,e]=t;return e});if(0===i.length)throw Error("Missing encode for position channel.");let a=Array.from(t,t=>{let e=i.map(e=>+e[t]),n=r.map(e),a=[];for(let t=0;t(t,e,n,r)=>{let i=(0,Z.rN)(r)?t3:t5;return i(t,e,n,r)};t6.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:t2,channels:[...K({shapes:Object.keys(t2)}),{name:"x"},{name:"y"},{name:"position",independent:!0},{name:"size"},{name:"series",scale:"band"}],preInference:[...te(),{type:t0},{type:t1}],postInference:[...J(),{type:q,channel:"color"},{type:Y,channel:["position"]}],interaction:{shareTooltip:!0,seriesTooltip:!0,crosshairs:!0}};var t4=n(1242),t8=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let t7=(t,e,n)=>[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]];t7.style=["fill"];let t9=t7.bind(void 0);t9.style=["stroke","lineWidth"];let et=(t,e,n)=>[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]];et.style=["fill"];let ee=et.bind(void 0);ee.style=["fill"];let en=et.bind(void 0);en.style=["stroke","lineWidth"];let er=(t,e,n)=>{let r=.618*n;return[["M",t-r,e],["L",t,e-n],["L",t+r,e],["L",t,e+n],["Z"]]};er.style=["fill"];let ei=er.bind(void 0);ei.style=["stroke","lineWidth"];let ea=(t,e,n)=>{let r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]};ea.style=["fill"];let eo=ea.bind(void 0);eo.style=["stroke","lineWidth"];let el=(t,e,n)=>{let r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]};el.style=["fill"];let es=el.bind(void 0);es.style=["stroke","lineWidth"];let ec=(t,e,n)=>{let r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]};ec.style=["fill"];let eu=ec.bind(void 0);eu.style=["stroke","lineWidth"];let ef=(t,e,n)=>{let r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]};ef.style=["fill"];let ed=ef.bind(void 0);ed.style=["stroke","lineWidth"];let eh=(t,e,n)=>[["M",t,e+n],["L",t,e-n]];eh.style=["stroke","lineWidth"];let ep=(t,e,n)=>[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]];ep.style=["stroke","lineWidth"];let eg=(t,e,n)=>[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]];eg.style=["stroke","lineWidth"];let em=(t,e,n)=>[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]];em.style=["stroke","lineWidth"];let ey=(t,e,n)=>[["M",t-n,e],["L",t+n,e]];ey.style=["stroke","lineWidth"];let ev=(t,e,n)=>[["M",t-n,e],["L",t+n,e]];ev.style=["stroke","lineWidth"];let eb=ev.bind(void 0);eb.style=["stroke","lineWidth"];let ex=(t,e,n)=>[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]];ex.style=["stroke","lineWidth"];let eO=(t,e,n)=>[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]];eO.style=["stroke","lineWidth"];let ew=(t,e,n)=>[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]];ew.style=["stroke","lineWidth"];let e_=(t,e,n)=>[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]];e_.style=["stroke","lineWidth"];let ek=(t,e,n)=>[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]];ek.style=["stroke","lineWidth"];let eC=new Map([["bowtie",ef],["cross",ep],["dash",eb],["diamond",er],["dot",ev],["hexagon",ec],["hollowBowtie",ed],["hollowDiamond",ei],["hollowHexagon",eu],["hollowPoint",t9],["hollowSquare",en],["hollowTriangle",eo],["hollowTriangleDown",es],["hv",eO],["hvh",e_],["hyphen",ey],["line",eh],["plus",em],["point",t7],["rect",ee],["smooth",ex],["square",et],["tick",eg],["triangleDown",el],["triangle",ea],["vh",ew],["vhv",ek]]);var ej=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function eM(t,e,n,r){if(1===e.length)return;let{size:i}=n;if("fixed"===t)return i;if("normal"===t||(0,Z.vx)(r)){let[[t,n],[r,i]]=e,a=Math.abs((r-t)/2),o=Math.abs((i-n)/2);return Math.max(0,(a+o)/2)}return i}let eS=(t,e)=>{let{colorAttribute:n,symbol:r,mode:i="auto"}=t,a=ej(t,["colorAttribute","symbol","mode"]),o=eC.get(r)||eC.get("point"),{coordinate:l,document:s}=e;return(e,r,c)=>{let{lineWidth:u,color:f}=c,d=a.stroke?u||1:u,{color:h=f,transform:p,opacity:g}=r,[m,y]=(0,N.P$)(e),v=eM(i,e,r,l),b=v||a.r||c.r;return(0,I.F)(s.createElement("path",{})).call(N.bg,c).style("fill","transparent").style("d",o(m,y,b)).style("lineWidth",d).style("transform",p).style("transformOrigin","".concat(m-b," ").concat(y-b)).style("stroke",h).style((0,N.E9)(t),g).style(n,h).call(N.bg,a).node()}};eS.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let eA=(t,e)=>eS(Object.assign({colorAttribute:"stroke",symbol:"point"},t),e);eA.props=Object.assign({defaultMarker:"hollowPoint"},eS.props);let eE=(t,e)=>eS(Object.assign({colorAttribute:"stroke",symbol:"diamond"},t),e);eE.props=Object.assign({defaultMarker:"hollowDiamond"},eS.props);let eP=(t,e)=>eS(Object.assign({colorAttribute:"stroke",symbol:"hexagon"},t),e);eP.props=Object.assign({defaultMarker:"hollowHexagon"},eS.props);let eR=(t,e)=>eS(Object.assign({colorAttribute:"stroke",symbol:"square"},t),e);eR.props=Object.assign({defaultMarker:"hollowSquare"},eS.props);let eT=(t,e)=>eS(Object.assign({colorAttribute:"stroke",symbol:"triangle-down"},t),e);eT.props=Object.assign({defaultMarker:"hollowTriangleDown"},eS.props);let eL=(t,e)=>eS(Object.assign({colorAttribute:"stroke",symbol:"triangle"},t),e);eL.props=Object.assign({defaultMarker:"hollowTriangle"},eS.props);let eB=(t,e)=>eS(Object.assign({colorAttribute:"stroke",symbol:"bowtie"},t),e);eB.props=Object.assign({defaultMarker:"hollowBowtie"},eS.props);var eZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let eI=(t,e)=>{let{colorAttribute:n,mode:r="auto"}=t,i=eZ(t,["colorAttribute","mode"]),{coordinate:a,document:o}=e;return(e,l,s)=>{let{lineWidth:c,color:u}=s,f=i.stroke?c||1:c,{color:d=u,transform:h,opacity:p}=l,[g,m]=(0,N.P$)(e),y=eM(r,e,l,a),v=y||i.r||s.r;return(0,I.F)(o.createElement("circle",{})).call(N.bg,s).style("fill","transparent").style("cx",g).style("cy",m).style("r",v).style("lineWidth",f).style("transform",h).style("transformOrigin","".concat(g," ").concat(m)).style("stroke",d).style((0,N.E9)(t),p).style(n,d).call(N.bg,i).node()}},eN=(t,e)=>eI(Object.assign({colorAttribute:"fill"},t),e);eN.props={defaultMarker:"circle",defaultEnterAnimation:"fadeIn",defaultExitAnimation:"fadeOut"};let eD=(t,e)=>eI(Object.assign({colorAttribute:"stroke"},t),e);eD.props=Object.assign({defaultMarker:"hollowPoint"},eN.props);let ez=(t,e)=>eS(Object.assign({colorAttribute:"fill",symbol:"point"},t),e);ez.props=Object.assign({defaultMarker:"point"},eS.props);let eF=(t,e)=>eS(Object.assign({colorAttribute:"stroke",symbol:"plus"},t),e);eF.props=Object.assign({defaultMarker:"plus"},eS.props);let e$=(t,e)=>eS(Object.assign({colorAttribute:"fill",symbol:"diamond"},t),e);e$.props=Object.assign({defaultMarker:"diamond"},eS.props);let eW=(t,e)=>eS(Object.assign({colorAttribute:"fill",symbol:"square"},t),e);eW.props=Object.assign({defaultMarker:"square"},eS.props);let eH=(t,e)=>eS(Object.assign({colorAttribute:"fill",symbol:"triangle"},t),e);eH.props=Object.assign({defaultMarker:"triangle"},eS.props);let eG=(t,e)=>eS(Object.assign({colorAttribute:"fill",symbol:"hexagon"},t),e);eG.props=Object.assign({defaultMarker:"hexagon"},eS.props);let eq=(t,e)=>eS(Object.assign({colorAttribute:"stroke",symbol:"cross"},t),e);eq.props=Object.assign({defaultMarker:"cross"},eS.props);let eY=(t,e)=>eS(Object.assign({colorAttribute:"fill",symbol:"bowtie"},t),e);eY.props=Object.assign({defaultMarker:"bowtie"},eS.props);let eV=(t,e)=>eS(Object.assign({colorAttribute:"stroke",symbol:"hyphen"},t),e);eV.props=Object.assign({defaultMarker:"hyphen"},eS.props);let eU=(t,e)=>eS(Object.assign({colorAttribute:"stroke",symbol:"line"},t),e);eU.props=Object.assign({defaultMarker:"line"},eS.props);let eQ=(t,e)=>eS(Object.assign({colorAttribute:"stroke",symbol:"tick"},t),e);eQ.props=Object.assign({defaultMarker:"tick"},eS.props);let eK=(t,e)=>eS(Object.assign({colorAttribute:"fill",symbol:"triangle-down"},t),e);eK.props=Object.assign({defaultMarker:"triangleDown"},eS.props);let eX=()=>(t,e)=>{let{encode:n}=e,{y:r}=n;return void 0!==r?[t,e]:[t,(0,b.Z)({},e,{encode:{y:O(_(t,0))},scale:{y:{guide:null}}})]};eX.props={};let eJ=()=>(t,e)=>{let{encode:n}=e,{size:r}=n;return void 0!==r?[t,e]:[t,(0,b.Z)({},e,{encode:{size:w(_(t,3))}})]};eJ.props={};let e0={hollow:eA,hollowDiamond:eE,hollowHexagon:eP,hollowSquare:eR,hollowTriangleDown:eT,hollowTriangle:eL,hollowBowtie:eB,hollowCircle:eD,point:ez,plus:eF,diamond:e$,square:eW,triangle:eH,hexagon:eG,cross:eq,bowtie:eY,hyphen:eV,line:eU,tick:eQ,triangleDown:eK,circle:eN},e1=t=>(e,n,r,i)=>{let{x:a,y:o,x1:l,y1:s,size:c,dx:u,dy:f}=r,[d,h]=i.getSize(),p=tr(n,r,t),g=t=>{let e=+((null==u?void 0:u[t])||0),n=+((null==f?void 0:f[t])||0),r=l?(+a[t]+ +l[t])/2:+a[t],i=s?(+o[t]+ +s[t])/2:+o[t];return[r+e,i+n]},m=c?Array.from(e,t=>{let[e,n]=g(t),r=+c[t],a=r/d,o=r/h;return[i.map(p([e-a,n-o],t)),i.map(p([e+a,n+o],t))]}):Array.from(e,t=>[i.map(p(g(t),t))]);return[e,m]};e1.props={defaultShape:"hollow",defaultLabelShape:"label",composite:!1,shape:e0,channels:[...K({shapes:Object.keys(e0)}),{name:"x",required:!0},{name:"y",required:!0},{name:"series",scale:"band"},{name:"size",quantitative:"sqrt"},{name:"dx",scale:"identity"},{name:"dy",scale:"identity"}],preInference:[...te(),{type:S},{type:eX}],postInference:[{type:eJ},...X()]};var e2=n(5099);let e5=(t,e)=>{let{coordinate:n}=e;return(e,r,i)=>{let{color:a,text:o="",fontSize:l,rotate:s=0,transform:c=""}=r,u={text:String(o),stroke:a,fill:a,fontSize:l},[[f,d]]=e;return(0,I.F)(new e2.g).style("x",f).style("y",d).call(N.bg,i).style("transform","".concat(c,"rotate(").concat(+s,")")).style("coordCenter",n.getCenter()).call(N.bg,u).call(N.bg,t).node()}};e5.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var e3=n(86224),e6=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let e4=(0,tx.a)(t=>{let e=t.attributes,{class:n,x:r,y:i,transform:a}=e,o=e6(e,["class","x","y","transform"]),l=(0,H.hB)(o,"marker"),{size:s=24}=l,c=()=>(function(t){let e=t/Math.sqrt(2),n=t*Math.sqrt(2),[r,i]=[-e,e-n],[a,o]=[0,0],[l,s]=[e,e-n];return[["M",r,i],["A",t,t,0,1,1,l,s],["L",a,o],["Z"]]})(s/2),u=(0,I.F)(t).maybeAppend("marker",()=>new e3.J({})).call(t=>t.node().update(Object.assign({symbol:c},l))).node(),[f,d]=function(t){let{min:e,max:n}=t.getLocalBounds();return[(e[0]+n[0])*.5,(e[1]+n[1])*.5]}(u);(0,I.F)(t).maybeAppend("text","text").style("x",f).style("y",d).call(N.bg,o)}),e8=(t,e)=>{let n=e6(t,[]);return(t,e,r)=>{let{color:i}=r,a=e6(r,["color"]),{color:o=i,text:l=""}=e,s={text:String(l),stroke:o,fill:o},[[c,u]]=t;return(0,I.F)(new e4).call(N.bg,a).style("transform","translate(".concat(c,",").concat(u,")")).call(N.bg,s).call(N.bg,n).node()}};e8.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let e7=(t,e)=>{let{coordinate:n}=e;return(e,r,i)=>{let{color:a,text:o="",fontSize:l,rotate:s=0,transform:c=""}=r,u={text:String(o),stroke:a,fill:a,fontSize:l,textAlign:"center",textBaseline:"middle"},[[f,d]]=e,h=(0,I.F)(new t4.xv).style("x",f).style("y",d).call(N.bg,i).style("transformOrigin","center center").style("transform","".concat(c,"rotate(").concat(s,"deg)")).style("coordCenter",n.getCenter()).call(N.bg,u).call(N.bg,t).node();return h}};e7.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let e9=()=>(t,e)=>{let{data:n}=e;if(!Array.isArray(n)||n.some(j))return[t,e];let r=Array.isArray(n[0])?n:[n],i=r.map(t=>t[0]),a=r.map(t=>t[1]);return[t,(0,b.Z)({},e,{encode:{x:x(i),y:x(a)}})]};e9.props={};var nt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let ne=()=>(t,e)=>{let{data:n,style:r={}}=e,i=nt(e,["data","style"]),{x:a,y:o}=r,l=nt(r,["x","y"]);if(void 0==a||void 0==o)return[t,e];let s=a||0,c=o||0;return[[0],(0,b.Z)({},i,{data:[0],cartesian:!0,encode:{x:x([s]),y:x([c])},scale:{x:{type:"identity",independent:!0,guide:null},y:{type:"identity",independent:!0,guide:null}},style:l})]};ne.props={};let nn={text:e5,badge:e8,tag:e7},nr=t=>{let{cartesian:e=!1}=t;return e?ta:(e,n,r,i)=>{let{x:a,y:o}=r,l=tr(n,r,t),s=Array.from(e,t=>{let e=[+a[t],+o[t]];return[i.map(l(e,t))]});return[e,s]}};nr.props={defaultShape:"text",defaultLabelShape:"label",composite:!1,shape:nn,channels:[...K({shapes:Object.keys(nn)}),{name:"x",required:!0},{name:"y",required:!0},{name:"text",scale:"identity"},{name:"fontSize",scale:"identity"},{name:"rotate",scale:"identity"}],preInference:[...te(),{type:e9},{type:ne}],postInference:[...X()]};let ni=()=>(t,e)=>[t,(0,b.Z)({scale:{x:{padding:0},y:{padding:0}}},e)];ni.props={};let na={cell:E,hollow:P},no=()=>(t,e,n,r)=>{let{x:i,y:a}=n,o=e.x,l=e.y,s=Array.from(t,t=>{let e=o.getBandWidth(o.invert(+i[t])),n=l.getBandWidth(l.invert(+a[t])),s=+i[t],c=+a[t];return[[s,c],[s+e,c],[s+e,c+n],[s,c+n]].map(t=>r.map(t))});return[t,s]};no.props={defaultShape:"cell",defaultLabelShape:"label",shape:na,composite:!1,channels:[...K({shapes:Object.keys(na)}),{name:"x",required:!0,scale:"band"},{name:"y",required:!0,scale:"band"}],preInference:[...te(),{type:S},{type:eX},{type:ni}],postInference:[...X()]};var nl=n(5742),ns=n(93072),nc=n(78260);function nu(t,e,n){var r=null,i=(0,ns.Z)(!0),a=null,o=tg.Z,l=null;function s(s){var c,u,f,d,h,p=(s=(0,nl.Z)(s)).length,g=!1,m=Array(p),y=Array(p);for(null==a&&(l=o(h=(0,tK.Z)())),c=0;c<=p;++c){if(!(c=u;--f)l.point(m[f],y[f]);l.lineEnd(),l.areaEnd()}}g&&(m[c]=+t(d,c,s),y[c]=+e(d,c,s),l.point(r?+r(d,c,s):m[c],n?+n(d,c,s):y[c]))}if(h)return l=null,h+""||null}function c(){return(0,R.Z)().defined(i).curve(o).context(a)}return t="function"==typeof t?t:void 0===t?nc.x:(0,ns.Z)(+t),e="function"==typeof e?e:void 0===e?(0,ns.Z)(0):(0,ns.Z)(+e),n="function"==typeof n?n:void 0===n?nc.y:(0,ns.Z)(+n),s.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,ns.Z)(+e),r=null,s):t},s.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,ns.Z)(+e),s):t},s.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:(0,ns.Z)(+t),s):r},s.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,ns.Z)(+t),n=null,s):e},s.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,ns.Z)(+t),s):e},s.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:(0,ns.Z)(+t),s):n},s.lineX0=s.lineY0=function(){return c().x(t).y(e)},s.lineY1=function(){return c().x(t).y(n)},s.lineX1=function(){return c().x(r).y(e)},s.defined=function(t){return arguments.length?(i="function"==typeof t?t:(0,ns.Z)(!!t),s):i},s.curve=function(t){return arguments.length?(o=t,null!=a&&(l=o(a)),s):o},s.context=function(t){return arguments.length?(null==t?a=l=null:l=o(a=t),s):a},s}var nf=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let nd=(0,tx.a)(t=>{let{areaPath:e,connectPath:n,areaStyle:r,connectStyle:i}=t.attributes,a=t.ownerDocument;(0,I.F)(t).maybeAppend("connect-path",()=>a.createElement("path",{})).style("d",n).call(N.bg,i),(0,I.F)(t).maybeAppend("area-path",()=>a.createElement("path",{})).style("d",e).call(N.bg,r)}),nh=(t,e)=>{let{curve:n,gradient:r=!1,defined:i=t=>!Number.isNaN(t)&&null!=t,connect:a=!1}=t,o=nf(t,["curve","gradient","defined","connect"]),{coordinate:l,document:s}=e;return(t,e,c)=>{let{color:u}=c,{color:f=u,seriesColor:d,seriesX:h,seriesY:p}=e,g=(0,Z._e)(l),m=(0,N.Ck)(l,e),y=r&&d?(0,N.o7)(d,h,p,r,void 0,g):f,v=Object.assign(Object.assign(Object.assign(Object.assign({},c),{stroke:y,fill:y}),m&&{transform:m}),o),[b,x]=function(t,e){let n=[],r=[],i=[],a=!1,o=null,l=t.length/2;for(let s=0;s!e(t)))a=!0;else{if(n.push(c),r.push(u),a&&o){a=!1;let[t,e]=o;i.push([t,c,e,u])}o=[c,u]}}return[n.concat(r),i]}(t,i),O=(0,H.hB)(v,"connect"),w=!!x.length,_=t=>(0,I.F)(s.createElement("path",{})).style("d",t||"").call(N.bg,v).node();if((0,Z.Z0)(l)){let e=t=>{var e,r,a,o,s,c;let u=l.getCenter(),f=t.slice(0,t.length/2),d=t.slice(t.length/2);return(r=(e=nu().curve(tm)).curve,a=e.lineX0,o=e.lineX1,s=e.lineY0,c=e.lineY1,e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return tb(a())},delete e.lineX0,e.lineEndAngle=function(){return tb(o())},delete e.lineX1,e.lineInnerRadius=function(){return tb(s())},delete e.lineY0,e.lineOuterRadius=function(){return tb(c())},delete e.lineY1,e.curve=function(t){return arguments.length?r(tv(t)):r()._curve},e).angle((t,e)=>(0,tO.SH)((0,tO.lu)(f[e],u))).outerRadius((t,e)=>(0,tO.TK)(f[e],u)).innerRadius((t,e)=>(0,tO.TK)(d[e],u)).defined((t,e)=>[...f[e],...d[e]].every(i)).curve(n)(d)};return w&&(!a||Object.keys(O).length)?w&&!a?_(e(t)):(0,I.F)(new nd).style("areaStyle",v).style("connectStyle",Object.assign(Object.assign({},O),o)).style("areaPath",e(t)).style("connectPath",x.map(e).join("")).node():_(e(b))}{let e=t=>{let e=t.slice(0,t.length/2),r=t.slice(t.length/2);return g?nu().y((t,n)=>e[n][1]).x1((t,n)=>e[n][0]).x0((t,e)=>r[e][0]).defined((t,n)=>[...e[n],...r[n]].every(i)).curve(n)(e):nu().x((t,n)=>e[n][0]).y1((t,n)=>e[n][1]).y0((t,e)=>r[e][1]).defined((t,n)=>[...e[n],...r[n]].every(i)).curve(n)(e)};return w&&(!a||Object.keys(O).length)?w&&!a?_(e(t)):(0,I.F)(new nd).style("areaStyle",v).style("connectStyle",Object.assign(Object.assign({},O),o)).style("areaPath",e(t)).style("connectPath",x.map(e).join("")).node():_(e(b))}}};nh.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let np=(t,e)=>{let{coordinate:n}=e;return function(){for(var r=arguments.length,i=Array(r),a=0;ae.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let nm=(t,e)=>{let n=ng(t,[]),{coordinate:r}=e;return function(){for(var t=arguments.length,i=Array(t),a=0;afunction(){for(var n=arguments.length,r=Array(n),i=0;ifunction(){for(var n=arguments.length,r=Array(n),i=0;ifunction(){for(var n=arguments.length,r=Array(n),i=0;i(t,e,n,r)=>{var i,a;let{x:o,y:l,y1:s,series:c}=n,{x:u,y:f}=e,d=c?Array.from((0,tp.ZP)(t,t=>c[t]).values()):[t],h=d.map(t=>t[0]).filter(t=>void 0!==t),p=((null===(i=null==u?void 0:u.getBandWidth)||void 0===i?void 0:i.call(u))||0)/2,g=((null===(a=null==f?void 0:f.getBandWidth)||void 0===a?void 0:a.call(f))||0)/2,m=Array.from(d,t=>{let e=t.length,n=Array(2*e);for(let i=0;i(t,e)=>{let{encode:n}=e,{y1:r}=n;if(r)return[t,e];let[i]=k(n,"y");return[t,(0,b.Z)({},e,{encode:{y1:x([...i])}})]};nw.props={};let n_=()=>(t,e)=>{let{encode:n}=e,{x1:r}=n;if(r)return[t,e];let[i]=k(n,"x");return[t,(0,b.Z)({},e,{encode:{x1:x([...i])}})]};n_.props={};var nk=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let nC=(t,e)=>{let{arrow:n=!0,arrowSize:r="40%"}=t,i=nk(t,["arrow","arrowSize"]),{document:a}=e;return(t,e,o)=>{let{defaultColor:l}=o,s=nk(o,["defaultColor"]),{color:c=l,transform:u}=e,[f,d]=t,h=(0,tK.Z)();if(h.moveTo(...f),h.lineTo(...d),n){let[t,e]=(0,N.pA)(f,d,{arrowSize:r});h.moveTo(...t),h.lineTo(...d),h.lineTo(...e)}return(0,I.F)(a.createElement("path",{})).call(N.bg,s).style("d",h.toString()).style("stroke",c).style("transform",u).call(N.bg,i).node()}};nC.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let nj=(t,e)=>{let{arrow:n=!1}=t;return function(){for(var r=arguments.length,i=Array(r),a=0;ae.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let nS=(t,e)=>{let n=nM(t,[]),{coordinate:r,document:i}=e;return(t,e,a)=>{let{color:o}=a,l=nM(a,["color"]),{color:s=o,transform:c}=e,[u,f]=t,d=(0,tK.Z)();if(d.moveTo(u[0],u[1]),(0,Z.Z0)(r)){let t=r.getCenter();d.quadraticCurveTo(t[0],t[1],f[0],f[1])}else{let t=(0,tO.Pi)(u,f),e=(0,tO.TK)(u,f)/2;(0,N.IG)(d,u,f,t,e)}return(0,I.F)(i.createElement("path",{})).call(N.bg,l).style("d",d.toString()).style("stroke",s).style("transform",c).call(N.bg,n).node()}};nS.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var nA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let nE=(t,e)=>{let n=nA(t,[]),{document:r}=e;return(t,e,i)=>{let{color:a}=i,o=nA(i,["color"]),{color:l=a,transform:s}=e,[c,u]=t,f=(0,tK.Z)();return f.moveTo(c[0],c[1]),f.bezierCurveTo(c[0]/2+u[0]/2,c[1],c[0]/2+u[0]/2,u[1],u[0],u[1]),(0,I.F)(r.createElement("path",{})).call(N.bg,o).style("d",f.toString()).style("stroke",l).style("transform",s).call(N.bg,n).node()}};nE.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var nP=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let nR=(t,e)=>{let{cornerRatio:n=1/3}=t,r=nP(t,["cornerRatio"]),{coordinate:i,document:a}=e;return(t,e,o)=>{let{defaultColor:l}=o,s=nP(o,["defaultColor"]),{color:c=l,transform:u}=e,[f,d]=t,h=function(t,e,n,r){let i=(0,tK.Z)();if((0,Z.Z0)(n)){let a=n.getCenter(),o=(0,tO.TK)(t,a),l=(0,tO.TK)(e,a),s=(l-o)*r+o;return i.moveTo(t[0],t[1]),(0,N.IG)(i,t,e,a,s),i.lineTo(e[0],e[1]),i}return(0,Z._e)(n)?(i.moveTo(t[0],t[1]),i.lineTo(t[0]+(e[0]-t[0])*r,t[1]),i.lineTo(t[0]+(e[0]-t[0])*r,e[1]),i.lineTo(e[0],e[1]),i):(i.moveTo(t[0],t[1]),i.lineTo(t[0],t[1]+(e[1]-t[1])*r),i.lineTo(e[0],t[1]+(e[1]-t[1])*r),i.lineTo(e[0],e[1]),i)}(f,d,i,n);return(0,I.F)(a.createElement("path",{})).call(N.bg,s).style("d",h.toString()).style("stroke",c).style("transform",u).call(N.bg,r).node()}};nR.props={defaultMarker:"vhv",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let nT={link:nj,arc:nS,smooth:nE,vhv:nR},nL=t=>(e,n,r,i)=>{let{x:a,y:o,x1:l=a,y1:s=o}=r,c=tr(n,r,t),u=e.map(t=>[i.map(c([+a[t],+o[t]],t)),i.map(c([+l[t],+s[t]],t))]);return[e,u]};nL.props={defaultShape:"link",defaultLabelShape:"label",composite:!1,shape:nT,channels:[...K({shapes:Object.keys(nT)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...te(),{type:nw},{type:n_}],postInference:[...X()]};var nB=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let nZ=(t,e)=>{let{coordinate:n,document:r}=e;return(e,i,a)=>{let{color:o}=a,l=nB(a,["color"]),{color:s=o,src:c="",size:u=32,transform:f=""}=i,{width:d=u,height:h=u}=t,[[p,g]]=e,[m,y]=n.getSize();d="string"==typeof d?ti(d)*m:d,h="string"==typeof h?ti(h)*y:h;let v=p-Number(d)/2,b=g-Number(h)/2;return(0,I.F)(r.createElement("image",{})).call(N.bg,l).style("x",v).style("y",b).style("src",c).style("stroke",s).style("transform",f).call(N.bg,t).style("width",d).style("height",h).node()}};nZ.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let nI={image:nZ},nN=t=>{let{cartesian:e}=t;return e?ta:(e,n,r,i)=>{let{x:a,y:o}=r,l=tr(n,r,t),s=Array.from(e,t=>{let e=[+a[t],+o[t]];return[i.map(l(e,t))]});return[e,s]}};nN.props={defaultShape:"image",defaultLabelShape:"label",composite:!1,shape:nI,channels:[...K({shapes:Object.keys(nI)}),{name:"x",required:!0},{name:"y",required:!0},{name:"src",scale:"identity"},{name:"size"}],preInference:[...te(),{type:e9},{type:ne}],postInference:[...X()]};var nD=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let nz=(t,e)=>{let{coordinate:n,document:r}=e;return(e,i,a)=>{let{color:o}=a,l=nD(a,["color"]),{color:s=o,transform:c}=i,u=function(t,e){let n=(0,tK.Z)();if((0,Z.Z0)(e)){let r=e.getCenter(),i=[...t,t[0]],a=i.map(t=>(0,tO.TK)(t,r));return i.forEach((e,i)=>{if(0===i){n.moveTo(e[0],e[1]);return}let o=a[i],l=t[i-1],s=a[i-1];void 0!==s&&1e-10>Math.abs(o-s)?(0,N.IG)(n,l,e,r,o):n.lineTo(e[0],e[1])}),n.closePath(),n}return(0,N.ug)(n,t)}(e,n);return(0,I.F)(r.createElement("path",{})).call(N.bg,l).style("d",u.toString()).style("stroke",s).style("fill",s).style("transform",c).call(N.bg,t).node()}};nz.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var nF=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let n$=(t,e)=>{let n=nF(t,[]),{coordinate:r,document:i}=e;return(t,e,a)=>{let{color:o}=a,l=nF(a,["color"]),{color:s=o,transform:c}=e,u=function(t,e){let[n,r,i,a]=t,o=(0,tK.Z)();if((0,Z.Z0)(e)){let t=e.getCenter(),l=(0,tO.TK)(t,n);return o.moveTo(n[0],n[1]),o.quadraticCurveTo(t[0],t[1],i[0],i[1]),(0,N.IG)(o,i,a,t,l),o.quadraticCurveTo(t[0],t[1],r[0],r[1]),(0,N.IG)(o,r,n,t,l),o.closePath(),o}return o.moveTo(n[0],n[1]),o.bezierCurveTo(n[0]/2+i[0]/2,n[1],n[0]/2+i[0]/2,i[1],i[0],i[1]),o.lineTo(a[0],a[1]),o.bezierCurveTo(a[0]/2+r[0]/2,a[1],a[0]/2+r[0]/2,r[1],r[0],r[1]),o.lineTo(n[0],n[1]),o.closePath(),o}(t,r);return(0,I.F)(i.createElement("path",{})).call(N.bg,l).style("d",u.toString()).style("fill",s||o).style("stroke",s||o).style("transform",c).call(N.bg,n).node()}};n$.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let nW={polygon:nz,ribbon:n$},nH=()=>(t,e,n,r)=>{let i=Object.entries(n).filter(t=>{let[e]=t;return e.startsWith("x")}).map(t=>{let[,e]=t;return e}),a=Object.entries(n).filter(t=>{let[e]=t;return e.startsWith("y")}).map(t=>{let[,e]=t;return e}),o=t.map(t=>{let e=[];for(let n=0;ne.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let nq=(t,e)=>{let{coordinate:n,document:r}=e;return(e,i,a)=>{let{color:o,transform:l}=i,{color:s,fill:c=s,stroke:u=s}=a,f=nG(a,["color","fill","stroke"]),d=function(t,e){let n=(0,tK.Z)();if((0,Z.Z0)(e)){let r=e.getCenter(),[i,a]=r,o=(0,tO.EU)((0,tO.lu)(t[0],r)),l=(0,tO.EU)((0,tO.lu)(t[1],r)),s=(0,tO.TK)(r,t[2]),c=(0,tO.TK)(r,t[3]),u=(0,tO.TK)(r,t[8]),f=(0,tO.TK)(r,t[10]),d=(0,tO.TK)(r,t[11]);n.moveTo(...t[0]),n.arc(i,a,s,o,l),n.arc(i,a,s,l,o,!0),n.moveTo(...t[2]),n.lineTo(...t[3]),n.moveTo(...t[4]),n.arc(i,a,c,o,l),n.lineTo(...t[6]),n.arc(i,a,f,l,o,!0),n.closePath(),n.moveTo(...t[8]),n.arc(i,a,u,o,l),n.arc(i,a,u,l,o,!0),n.moveTo(...t[10]),n.lineTo(...t[11]),n.moveTo(...t[12]),n.arc(i,a,d,o,l),n.arc(i,a,d,l,o,!0)}else n.moveTo(...t[0]),n.lineTo(...t[1]),n.moveTo(...t[2]),n.lineTo(...t[3]),n.moveTo(...t[4]),n.lineTo(...t[5]),n.lineTo(...t[6]),n.lineTo(...t[7]),n.closePath(),n.moveTo(...t[8]),n.lineTo(...t[9]),n.moveTo(...t[10]),n.lineTo(...t[11]),n.moveTo(...t[12]),n.lineTo(...t[13]);return n}(e,n);return(0,I.F)(r.createElement("path",{})).call(N.bg,f).style("d",d.toString()).style("stroke",u).style("fill",o||c).style("transform",l).call(N.bg,t).node()}};nq.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var nY=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let nV=(t,e)=>{let{coordinate:n,document:r}=e;return(e,i,a)=>{let{color:o,transform:l}=i,{color:s,fill:c=s,stroke:u=s}=a,f=nY(a,["color","fill","stroke"]),d=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,r=(0,tK.Z)();if(!(0,Z.Z0)(e))return r.moveTo(...t[2]),r.lineTo(...t[3]),r.lineTo(t[3][0]-n,t[3][1]),r.lineTo(t[10][0]-n,t[10][1]),r.lineTo(t[10][0]+n,t[10][1]),r.lineTo(t[3][0]+n,t[3][1]),r.lineTo(...t[3]),r.closePath(),r.moveTo(...t[10]),r.lineTo(...t[11]),r.moveTo(t[3][0]+n/2,t[8][1]),r.arc(t[3][0],t[8][1],n/2,0,2*Math.PI),r.closePath(),r;let i=e.getCenter(),[a,o]=i,l=(0,tO.TK)(i,t[3]),s=(0,tO.TK)(i,t[8]),c=(0,tO.TK)(i,t[10]),u=(0,tO.EU)((0,tO.lu)(t[2],i)),f=Math.asin(n/s),d=u-f,h=u+f;r.moveTo(...t[2]),r.lineTo(...t[3]),r.moveTo(Math.cos(d)*l+a,Math.sin(d)*l+o),r.arc(a,o,l,d,h),r.lineTo(Math.cos(h)*c+a,Math.sin(h)*c+o),r.arc(a,o,c,h,d,!0),r.lineTo(Math.cos(d)*l+a,Math.sin(d)*l+o),r.closePath(),r.moveTo(...t[10]),r.lineTo(...t[11]);let p=(d+h)/2;return r.moveTo(Math.cos(p)*(s+n/2)+a,Math.sin(p)*(s+n/2)+o),r.arc(Math.cos(p)*s+a,Math.sin(p)*s+o,n/2,p,2*Math.PI+p),r.closePath(),r}(e,n,4);return(0,I.F)(r.createElement("path",{})).call(N.bg,f).style("d",d.toString()).style("stroke",u).style("fill",o||c).style("transform",l).call(N.bg,t).node()}};nV.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let nU={box:nq,violin:nV},nQ=()=>(t,e,n,r)=>{let{x:i,y:a,y1:o,y2:l,y3:s,y4:c,series:u}=n,f=e.x,d=e.series,h=Array.from(t,t=>{let e=f.getBandWidth(f.invert(+i[t])),n=d?d.getBandWidth(d.invert(+(null==u?void 0:u[t]))):1,h=e*n,p=(+(null==u?void 0:u[t])||0)*e,g=+i[t]+p+h/2,[m,y,v,b,x]=[+a[t],+o[t],+l[t],+s[t],+c[t]];return[[g-h/2,x],[g+h/2,x],[g,x],[g,b],[g-h/2,b],[g+h/2,b],[g+h/2,y],[g-h/2,y],[g-h/2,v],[g+h/2,v],[g,y],[g,m],[g-h/2,m],[g+h/2,m]].map(t=>r.map(t))});return[t,h]};nQ.props={defaultShape:"box",defaultLabelShape:"label",composite:!1,shape:nU,channels:[...K({shapes:Object.keys(nU)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"}],preInference:[...te(),{type:S}],postInference:[...J()],interaction:{shareTooltip:!0}};let nK={vector:nC},nX=()=>(t,e,n,r)=>{let{x:i,y:a,size:o,rotate:l}=n,[s,c]=r.getSize(),u=t.map(t=>{let e=+l[t]/180*Math.PI,n=+o[t],u=n/s*Math.cos(e),f=-(n/c)*Math.sin(e);return[r.map([+i[t]-u/2,+a[t]-f/2]),r.map([+i[t]+u/2,+a[t]+f/2])]});return[t,u]};nX.props={defaultShape:"vector",defaultLabelShape:"label",composite:!1,shape:nK,channels:[...K({shapes:Object.keys(nK)}),{name:"x",required:!0},{name:"y",required:!0},{name:"rotate",required:!0,scale:"identity"},{name:"size",required:!0}],preInference:[...te()],postInference:[...X()]};var nJ=n(10233),n0=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let n1=(t,e)=>{let{arrow:n,arrowSize:r=4}=t,i=n0(t,["arrow","arrowSize"]),{coordinate:a,document:o}=e;return(t,e,l)=>{let{color:s,lineWidth:c}=l,u=n0(l,["color","lineWidth"]),{color:f=s,size:d=c}=e,h=n?function(t,e,n){let r=t.createElement("path",{style:Object.assign({d:"M ".concat(e,",").concat(e," L -").concat(e,",0 L ").concat(e,",-").concat(e," L 0,0 Z"),transformOrigin:"center"},n)});return r}(o,r,Object.assign({fill:i.stroke||f,stroke:i.stroke||f},(0,H.hB)(i,"arrow"))):null,p=function(t,e){if(!(0,Z.Z0)(e))return(0,R.Z)().x(t=>t[0]).y(t=>t[1])(t);let n=e.getCenter();return(0,nJ.Z)()({startAngle:0,endAngle:2*Math.PI,outerRadius:(0,tO.TK)(t[0],n),innerRadius:(0,tO.TK)(t[1],n)})}(t,a),g=function(t,e){if(!(0,Z.Z0)(t))return e;let[n,r]=t.getCenter();return"translate(".concat(n,", ").concat(r,") ").concat(e||"")}(a,e.transform);return(0,I.F)(o.createElement("path",{})).call(N.bg,u).style("d",p).style("stroke",f).style("lineWidth",d).style("transform",g).style("markerEnd",h).call(N.bg,i).node()}};n1.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let n2=()=>(t,e)=>{let{data:n}=e;return!Array.isArray(n)||n.some(j)?[t,e]:[t,(0,b.Z)({},e,{encode:{x:x(n)}})]};n2.props={};let n5={line:n1},n3=t=>(e,n,r,i)=>{let{x:a}=r,o=tr(n,r,(0,b.Z)({style:{bandOffset:0}},t)),l=Array.from(e,t=>{let e=[a[t],1],n=[a[t],0];return[e,n].map(e=>i.map(o(e,t)))});return[e,l]};n3.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:n5,channels:[...tt({shapes:Object.keys(n5)}),{name:"x",required:!0}],preInference:[...te(),{type:n2}],postInference:[]};let n6=()=>(t,e)=>{let{data:n}=e;return!Array.isArray(n)||n.some(j)?[t,e]:[t,(0,b.Z)({},e,{encode:{y:x(n)}})]};n6.props={};let n4={line:n1},n8=t=>(e,n,r,i)=>{let{y:a}=r,o=tr(n,r,(0,b.Z)({style:{bandOffset:0}},t)),l=Array.from(e,t=>{let e=[0,a[t]],n=[1,a[t]];return[e,n].map(e=>i.map(o(e,t)))});return[e,l]};n8.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:n4,channels:[...tt({shapes:Object.keys(n4)}),{name:"y",required:!0}],preInference:[...te(),{type:n6}],postInference:[]};var n7=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function n9(t,e,n){return[["M",t,e],["L",t+2*n,e-n],["L",t+2*n,e+n],["Z"]]}let rt=(t,e)=>{let{offset:n=0,offset1:r=n,offset2:i=n,connectLength1:a,endMarker:o=!0}=t,l=n7(t,["offset","offset1","offset2","connectLength1","endMarker"]),{coordinate:s}=e;return(t,e,n)=>{let{color:c,connectLength1:u}=n,f=n7(n,["color","connectLength1"]),{color:d,transform:h}=e,p=function(t,e,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,[[a,o],[l,s]]=e;if((0,Z._e)(t)){let t=a+n,e=t+i;return[[t,o],[e,o],[e,s],[l+r,s]]}let c=o-n,u=c-i;return[[a,c],[a,u],[l,u],[l,s-r]]}(s,t,r,i,null!=a?a:u),g=(0,H.hB)(Object.assign(Object.assign({},l),n),"endMarker");return(0,I.F)(new t4.y$).call(N.bg,f).style("d",(0,R.Z)().x(t=>t[0]).y(t=>t[1])(p)).style("stroke",d||c).style("transform",h).style("markerEnd",o?new e3.J({className:"marker",style:Object.assign(Object.assign({},g),{symbol:n9})}):null).call(N.bg,l).node()}};rt.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let re={connector:rt},rn=function(){for(var t=arguments.length,e=Array(t),n=0;n[0,1];let{[t]:i,["".concat(t,"1")]:a}=n;return t=>{var e;let n=(null===(e=r.getBandWidth)||void 0===e?void 0:e.call(r,r.invert(+a[t])))||0;return[i[t],a[t]+n]}}function ri(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{extendX:e=!1,extendY:n=!1}=t;return(t,r,i,a)=>{let o=rr("x",e,i,r.x),l=rr("y",n,i,r.y),s=Array.from(t,t=>{let[e,n]=o(t),[r,i]=l(t);return[[e,r],[n,r],[n,i],[e,i]].map(t=>a.map(t))});return[t,s]}}rn.props={defaultShape:"connector",defaultLabelShape:"label",composite:!1,shape:re,channels:[...tt({shapes:Object.keys(re)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...te()],postInference:[]};let ra={range:E},ro=()=>ri();ro.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:ra,channels:[...tt({shapes:Object.keys(ra)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...te()],postInference:[]};let rl=()=>(t,e)=>{let{data:n}=e;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(j))){let r=(t,e)=>Array.isArray(t[0])?t.map(t=>t[e]):[t[e]];return[t,(0,b.Z)({},e,{encode:{x:x(r(n,0)),x1:x(r(n,1))}})]}return[t,e]};rl.props={};let rs={range:E},rc=()=>ri({extendY:!0});rc.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:rs,channels:[...tt({shapes:Object.keys(rs)}),{name:"x",required:!0}],preInference:[...te(),{type:rl}],postInference:[]};let ru=()=>(t,e)=>{let{data:n}=e;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(j))){let r=(t,e)=>Array.isArray(t[0])?t.map(t=>t[e]):[t[e]];return[t,(0,b.Z)({},e,{encode:{y:x(r(n,0)),y1:x(r(n,1))}})]}return[t,e]};ru.props={};let rf={range:E},rd=()=>ri({extendX:!0});rd.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:rf,channels:[...tt({shapes:Object.keys(rf)}),{name:"y",required:!0}],preInference:[...te(),{type:ru}],postInference:[]};var rh=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let rp=(t,e)=>{let{arrow:n,colorAttribute:r}=t,i=rh(t,["arrow","colorAttribute"]),{coordinate:a,document:o}=e;return(t,e,n)=>{let{color:l,stroke:s}=n,c=rh(n,["color","stroke"]),{d:u,color:f=l}=e,[d,h]=a.getSize();return(0,I.F)(o.createElement("path",{})).call(N.bg,c).style("d","function"==typeof u?u({width:d,height:h}):u).style(r,f).call(N.bg,i).node()}};rp.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let rg=(t,e)=>rp(Object.assign({colorAttribute:"fill"},t),e);rg.props={defaultMarker:"hvh",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let rm=(t,e)=>rp(Object.assign({fill:"none",colorAttribute:"stroke"},t),e);rm.props={defaultMarker:"hvh",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let ry={path:rg,hollow:rm},rv=t=>(t,e,n,r)=>[t,t.map(()=>[[0,0]])];rv.props={defaultShape:"path",defaultLabelShape:"label",shape:ry,composite:!1,channels:[...K({shapes:Object.keys(ry)}),{name:"d",scale:"identity"}],preInference:[...te()],postInference:[]};var rb=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let rx=(t,e)=>{let{render:n}=t,r=rb(t,["render"]);return t=>{let[[i,a]]=t;return n(Object.assign(Object.assign({},r),{x:i,y:a}),e)}};rx.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let rO=()=>(t,e)=>{let{style:n={}}=e;return[t,(0,b.Z)({},e,{style:Object.assign(Object.assign({},n),Object.fromEntries(Object.entries(n).filter(t=>{let[,e]=t;return"function"==typeof e}).map(t=>{let[e,n]=t;return[e,()=>n]})))})]};rO.props={};let rw=t=>{let{cartesian:e}=t;return e?ta:(e,n,r,i)=>{let{x:a,y:o}=r,l=tr(n,r,t),s=Array.from(e,t=>{let e=[+a[t],+o[t]];return[i.map(l(e,t))]});return[e,s]}};rw.props={defaultShape:"shape",defaultLabelShape:"label",composite:!1,shape:{shape:rx},channels:[{name:"x",required:!0},{name:"y",required:!0}],preInference:[...te(),{type:e9},{type:ne},{type:rO}]};var r_=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let rk=(t,e)=>{let{document:n}=e;return(e,r,i)=>{let{transform:a}=r,{color:o}=i,l=r_(i,["color"]),{color:s=o}=r,[c,...u]=e,f=(0,tK.Z)();return f.moveTo(...c),u.forEach(t=>{let[e,n]=t;f.lineTo(e,n)}),f.closePath(),(0,I.F)(n.createElement("path",{})).call(N.bg,l).style("d",f.toString()).style("stroke",s||o).style("fill",s||o).style("fillOpacity",.4).style("transform",a).call(N.bg,t).node()}};rk.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let rC={density:rk},rj=()=>(t,e,n,r)=>{let{x:i,series:a}=n,o=Object.entries(n).filter(t=>{let[e]=t;return e.startsWith("y")}).map(t=>{let[,e]=t;return e}),l=Object.entries(n).filter(t=>{let[e]=t;return e.startsWith("size")}).map(t=>{let[,e]=t;return e});if(void 0===i||void 0===o||void 0===l)throw Error("Missing encode for x or y or size channel.");let s=e.x,c=e.series,u=Array.from(t,e=>{let n=s.getBandWidth(s.invert(+i[e])),u=c?c.getBandWidth(c.invert(+(null==a?void 0:a[e]))):1,f=(+(null==a?void 0:a[e])||0)*n,d=+i[e]+f+n*u/2,h=[...o.map((n,r)=>[d+ +l[r][e]/t.length,+o[r][e]]),...o.map((n,r)=>[d-+l[r][e]/t.length,+o[r][e]]).reverse()];return h.map(t=>r.map(t))});return[t,u]};rj.props={defaultShape:"density",defaultLabelShape:"label",composite:!1,shape:rC,channels:[...K({shapes:Object.keys(rC)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"size",required:!0},{name:"series",scale:"band"},{name:"size",required:!0,scale:"identity"}],preInference:[...te(),{type:M},{type:S}],postInference:[...J()],interaction:{shareTooltip:!0}};var rM=n(47622),rS=n(98823);function rA(t){var e,n,r,i=t||1;function a(t,a){++e>i&&(r=n,o(1),++e),n[t]=a}function o(t){e=0,n=Object.create(null),t||(r=Object.create(null))}return o(),{clear:o,has:function(t){return void 0!==n[t]||void 0!==r[t]},get:function(t){var e=n[t];return void 0!==e?e:void 0!==(e=r[t])?(a(t,e),e):void 0},set:function(t,e){void 0!==n[t]?n[t]=e:a(t,e)}}}function rE(t,e,n){let r=t?t():document.createElement("canvas");return r.width=e,r.height=n,r}rA(3);let rP=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){for(var t=arguments.length,e=Array(t),n=0;n2&&void 0!==arguments[2]?arguments[2]:16,r=rA(n);return function(){for(var n=arguments.length,i=Array(n),a=0;a{let r=rE(n,2*t,2*t),i=r.getContext("2d");if(1===e)i.beginPath(),i.arc(t,t,t,0,2*Math.PI,!1),i.fillStyle="rgba(0,0,0,1)",i.fill();else{let n=i.createRadialGradient(t,t,t*e,t,t,t);n.addColorStop(0,"rgba(0,0,0,1)"),n.addColorStop(1,"rgba(0,0,0,0)"),i.fillStyle=n,i.fillRect(0,0,2*t,2*t)}return r},t=>"".concat(t));var rR=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let rT=(t,e)=>{let{gradient:n,opacity:r,maxOpacity:i,minOpacity:a,blur:o,useGradientOpacity:l}=t,s=rR(t,["gradient","opacity","maxOpacity","minOpacity","blur","useGradientOpacity"]),{coordinate:c,createCanvas:u,document:f}=e;return(t,e,d)=>{var h,p;let{transform:g}=e,[m,y]=c.getSize(),v=t.map(t=>({x:t[0],y:t[1],value:t[2],radius:t[3]})),b=(0,rM.Z)(t,t=>t[2]),x=(0,rS.Z)(t,t=>t[2]),O=m&&y?function(t,e,n,r,i,a,o){let l=Object.assign({blur:.85,minOpacity:0,opacity:.6,maxOpacity:1,gradient:[[.25,"rgb(0,0,255)"],[.55,"rgb(0,255,0)"],[.85,"yellow"],[1,"rgb(255,0,0)"]]},a);l.minOpacity*=255,l.opacity*=255,l.maxOpacity*=255;let s=rE(o,t,e),c=s.getContext("2d"),u=function(t,e){let n=rE(e,256,1),r=n.getContext("2d"),i=r.createLinearGradient(0,0,256,1);return("string"==typeof t?t.split(" ").map(t=>{let[e,n]=t.split(":");return[+e,n]}):t).forEach(t=>{let[e,n]=t;i.addColorStop(e,n)}),r.fillStyle=i,r.fillRect(0,0,256,1),r.getImageData(0,0,256,1).data}(l.gradient,o);c.clearRect(0,0,t,e),function(t,e,n,r,i,a){let{blur:o}=i,l=r.length;for(;l--;){let{x:i,y:s,value:c,radius:u}=r[l],f=Math.min(c,n),d=i-u,h=s-u,p=rP(u,1-o,a),g=(f-e)/(n-e);t.globalAlpha=Math.max(g,.001),t.drawImage(p,d,h)}}(c,n,r,i,l,o);let f=function(t,e,n,r,i){let{minOpacity:a,opacity:o,maxOpacity:l,useGradientOpacity:s}=i,c=t.getImageData(0,0,e,n),u=c.data,f=u.length;for(let t=3;tvoid 0===t,Object.keys(h).reduce((t,e)=>{let n=h[e];return p(n,e)||(t[e]=n),t},{})),u):{canvas:null};return(0,I.F)(f.createElement("image",{})).call(N.bg,d).style("x",0).style("y",0).style("width",m).style("height",y).style("src",O.canvas).style("transform",g).call(N.bg,s).node()}};rT.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let rL={heatmap:rT},rB=t=>(t,e,n,r)=>{let{x:i,y:a,size:o,color:l}=n,s=Array.from(t,t=>{let e=o?+o[t]:40;return[...r.map([+i[t],+a[t]]),l[t],e]});return[[0],[s]]};rB.props={defaultShape:"heatmap",defaultLabelShape:"label",composite:!1,shape:rL,channels:[...K({shapes:Object.keys(rL)}),{name:"x",required:!0},{name:"y",required:!0},{name:"color",scale:"identity",required:!0},{name:"size"}],preInference:[...te(),{type:S},{type:eX}],postInference:[...X()]};var rZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let rI=()=>({axis:!1,type:"text",encode:{x:"x",y:"y",text:"text",rotate:"rotate",fontSize:"size",shape:"tag"},scale:{x:{range:[0,1]},y:{range:[0,1]}},style:{fontFamily:t=>t.fontFamily}}),rN=(t,e)=>{var n,r,i,a;return n=void 0,r=void 0,i=void 0,a=function*(){let{width:n,height:r}=e,{data:i,encode:a={},scale:o,style:l={},layout:s={}}=t,c=rZ(t,["data","encode","scale","style","layout"]),u=function(t,e){let{text:n="text",value:r="value"}=e;return t.map(t=>Object.assign(Object.assign({},t),{text:t[n],value:t[r]}))}(i,a);return(0,b.Z)({},rI(),Object.assign(Object.assign({data:{value:u,transform:[Object.assign({type:"wordCloud",size:[n,r]},s)]},encode:a,scale:o,style:l},c),{axis:!1}))},new(i||(i=Promise))(function(t,e){function o(t){try{s(a.next(t))}catch(t){e(t)}}function l(t){try{s(a.throw(t))}catch(t){e(t)}}function s(e){var n;e.done?t(e.value):((n=e.value)instanceof i?n:new i(function(t){t(n)})).then(o,l)}s((a=a.apply(n,r||[])).next())})};rN.props={};let rD=()=>["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"];rD.props={};let rz=()=>["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"];rz.props={};var rF=n(36380);let r$=t=>new rF.b(t);r$.props={};var rW=n(8064);let rH=t=>new rW.r(t);rH.props={};var rG=n(88944);let rq=t=>new rG.t(t);rq.props={};var rY=n(25897),rV=n(74271),rU=n(88073),rQ=n(13393);class rK extends rV.X{getDefaultOptions(){return{domain:[0,1],range:[0,1],tickCount:5,unknown:void 0,tickMethod:rU.GX}}map(t){return(0,rQ.J)(t)?t:this.options.unknown}invert(t){return this.map(t)}clone(){return new rK(this.options)}getTicks(){let{domain:t,tickCount:e,tickMethod:n}=this.options,[r,i]=t;return(0,rY.Z)(r)&&(0,rY.Z)(i)?n(r,i,e):[]}}let rX=t=>new rK(t);rX.props={};class rJ extends rG.t{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:rW.z,paddingInner:1,paddingOuter:0}}constructor(t){super(t)}getPaddingInner(){return 1}clone(){return new rJ(this.options)}update(t){super.update(t)}getPaddingOuter(){return this.options.padding}}let r0=t=>new rJ(t);r0.props={};var r1=n(67128),r2=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,r5=/\[([^]*?)\]/gm;function r3(t,e){for(var n=[],r=0,i=t.length;r-1?r:null}};function r4(t){for(var e=[],n=1;n3?0:(t-t%10!=10?1:0)*t%10]}}),ie=function(t,e){for(void 0===e&&(e=2),t=String(t);t.lengtht.getHours()?e.amPm[0]:e.amPm[1]},A:function(t,e){return 12>t.getHours()?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+ie(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+ie(Math.floor(Math.abs(e)/60),2)+":"+ie(Math.abs(e)%60,2)}};r6("monthNamesShort"),r6("monthNames");var ii={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"},ia=function(t,e,n){if(void 0===e&&(e=ii.default),void 0===n&&(n={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw Error("Invalid Date pass to format");e=ii[e]||e;var r=[];e=e.replace(r5,function(t,e){return r.push(e),"@@@"});var i=r4(r4({},it),n);return(e=e.replace(r2,function(e){return ir[e](t,i)})).replace(/@@@/g,function(){return r.shift()})},io=n(63025);let il=864e5,is=7*il,ic=30*il,iu=365*il;function id(t,e,n,r){let i=(t,e)=>{let i=t=>r(t)%e==0,a=e;for(;a&&!i(t);)n(t,-1),a-=1;return t},a=(t,n)=>{n&&i(t,n),e(t)},o=(t,e)=>{let r=new Date(+t-1);return a(r,e),n(r,e),a(r),r};return{ceil:o,floor:(t,e)=>{let n=new Date(+t);return a(n,e),n},range:(t,e,r,i)=>{let l=[],s=Math.floor(r),c=i?o(t,r):o(t);for(;ct,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),ip=id(1e3,t=>{t.setMilliseconds(0)},(t,e=1)=>{t.setTime(+t+1e3*e)},t=>t.getSeconds()),ig=id(6e4,t=>{t.setSeconds(0,0)},(t,e=1)=>{t.setTime(+t+6e4*e)},t=>t.getMinutes()),im=id(36e5,t=>{t.setMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+36e5*e)},t=>t.getHours()),iy=id(il,t=>{t.setHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+il*e)},t=>t.getDate()-1),iv=id(ic,t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e=1)=>{let n=t.getMonth();t.setMonth(n+e)},t=>t.getMonth()),ib=id(is,t=>{t.setDate(t.getDate()-t.getDay()%7),t.setHours(0,0,0,0)},(t,e=1)=>{t.setDate(t.getDate()+7*e)},t=>{let e=iv.floor(t),n=new Date(+t);return Math.floor((+n-+e)/is)}),ix=id(iu,t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e=1)=>{let n=t.getFullYear();t.setFullYear(n+e)},t=>t.getFullYear()),iO={millisecond:ih,second:ip,minute:ig,hour:im,day:iy,week:ib,month:iv,year:ix},iw=id(1,t=>t,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),i_=id(1e3,t=>{t.setUTCMilliseconds(0)},(t,e=1)=>{t.setTime(+t+1e3*e)},t=>t.getUTCSeconds()),ik=id(6e4,t=>{t.setUTCSeconds(0,0)},(t,e=1)=>{t.setTime(+t+6e4*e)},t=>t.getUTCMinutes()),iC=id(36e5,t=>{t.setUTCMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+36e5*e)},t=>t.getUTCHours()),ij=id(il,t=>{t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+il*e)},t=>t.getUTCDate()-1),iM=id(ic,t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{let n=t.getUTCMonth();t.setUTCMonth(n+e)},t=>t.getUTCMonth()),iS=id(is,t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7)%7),t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+is*e)},t=>{let e=iM.floor(t),n=new Date(+t);return Math.floor((+n-+e)/is)}),iA=id(iu,t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{let n=t.getUTCFullYear();t.setUTCFullYear(n+e)},t=>t.getUTCFullYear()),iE={millisecond:iw,second:i_,minute:ik,hour:iC,day:ij,week:iS,month:iM,year:iA};var iP=n(33338),iR=n(72478);function iT(t,e,n,r,i){let a;let o=+t,l=+e,{tickIntervals:s,year:c,millisecond:u}=function(t){let{year:e,month:n,week:r,day:i,hour:a,minute:o,second:l,millisecond:s}=t?iE:iO;return{tickIntervals:[[l,1],[l,5],[l,15],[l,30],[o,1],[o,5],[o,15],[o,30],[a,1],[a,3],[a,6],[a,12],[i,1],[i,2],[r,1],[n,1],[n,3],[e,1]],year:e,millisecond:s}}(i),f=([t,e])=>t.duration*e,d=r?(l-o)/r:n||5,h=r||(l-o)/d,p=s.length,g=(0,iP.b)(s,h,0,p,f);if(g===p){let t=(0,iR.l)(o/c.duration,l/c.duration,d);a=[c,t]}else if(g){let t=h/f(s[g-1]){let a=t>e,o=a?e:t,l=a?t:e,[s,c]=iT(o,l,n,r,i),u=s.range(o,new Date(+l+1),c,!0);return a?u.reverse():u};var iB=n(25338);let iZ=(t,e,n,r,i)=>{let a=t>e,o=a?e:t,l=a?t:e,[s,c]=iT(o,l,n,r,i),u=[s.floor(o,c),s.ceil(l,c)];return a?u.reverse():u};function iI(t){let e=t.getTimezoneOffset(),n=new Date(t);return n.setMinutes(n.getMinutes()+e,n.getSeconds(),n.getMilliseconds()),n}class iN extends io.V{getDefaultOptions(){return{domain:[new Date(2e3,0,1),new Date(2e3,0,2)],range:[0,1],nice:!1,tickCount:5,tickInterval:void 0,unknown:void 0,clamp:!1,tickMethod:iL,interpolate:iB.fv,mask:void 0,utc:!1}}chooseTransforms(){return[t=>+t,t=>new Date(t)]}chooseNice(){return iZ}getTickMethodOptions(){let{domain:t,tickCount:e,tickInterval:n,utc:r}=this.options,i=t[0],a=t[t.length-1];return[i,a,e,n,r]}getFormatter(){let{mask:t,utc:e}=this.options,n=e?iE:iO,r=e?iI:r1.Z;return e=>ia(r(e),t||function(t,e){let{second:n,minute:r,hour:i,day:a,week:o,month:l,year:s}=e;return n.floor(t)new iN(t);iD.props={};let iz=t=>e=>-t(-e),iF=(t,e)=>{let n=Math.log(t),r=t===Math.E?Math.log:10===t?Math.log10:2===t?Math.log2:t=>Math.log(t)/n;return e?iz(r):r},i$=(t,e)=>{let n=t===Math.E?Math.exp:e=>t**e;return e?iz(n):n};var iW=n(7847);let iH=(t,e,n,r=10)=>{let i=t<0,a=i$(r,i),o=iF(r,i),l=e=1;e-=1){let n=t*e;if(n>c)break;n>=s&&d.push(n)}}else for(;u<=f;u+=1){let t=a(u);for(let e=1;ec)break;n>=s&&d.push(n)}}2*d.length{let i=t<0,a=iF(r,i),o=i$(r,i),l=t>e,s=[o(Math.floor(a(l?e:t))),o(Math.ceil(a(l?t:e)))];return l?s.reverse():s};class iq extends io.V{getDefaultOptions(){return{domain:[1,10],range:[0,1],base:10,interpolate:iB.wp,tickMethod:iH,tickCount:5}}chooseNice(){return iG}getTickMethodOptions(){let{domain:t,tickCount:e,base:n}=this.options,r=t[0],i=t[t.length-1];return[r,i,e,n]}chooseTransforms(){let{base:t,domain:e}=this.options,n=e[0]<0;return[iF(t,n),i$(t,n)]}clone(){return new iq(this.options)}}let iY=t=>new iq(t);iY.props={};let iV=t=>e=>e<0?-((-e)**t):e**t,iU=t=>e=>e<0?-((-e)**(1/t)):e**(1/t),iQ=t=>t<0?-Math.sqrt(-t):Math.sqrt(t);class iK extends io.V{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,exponent:2,interpolate:iB.wp,tickMethod:iW.Z,tickCount:5}}constructor(t){super(t)}chooseTransforms(){let{exponent:t}=this.options;if(1===t)return[r1.Z,r1.Z];let e=.5===t?iQ:iV(t),n=iU(t);return[e,n]}clone(){return new iK(this.options)}}let iX=t=>new iK(t);iX.props={};class iJ extends iK{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:iB.wp,tickMethod:iW.Z,tickCount:5,exponent:.5}}constructor(t){super(t)}update(t){super.update(t)}clone(){return new iJ(this.options)}}let i0=t=>new iJ(t);i0.props={};var i1=n(90314);let i2=t=>new i1.M(t);i2.props={};var i5=n(15203);let i3=t=>new i5.c(t);i3.props={};var i6=n(29631);let i4=t=>new i6.J(t);i4.props={};var i8=n(99871),i7=n(34199);let i9=t=>e=>{let n=t(e);return(0,rY.Z)(n)?Math.round(n):n},at=f9=class extends rF.b{getDefaultOptions(){return{domain:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:r1.Z,tickMethod:iW.Z,tickCount:5}}constructor(t){super(t)}clone(){return new f9(this.options)}};at=f9=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([(f7=t=>{let[e,n]=t,r=(0,i8.q)((0,iB.fv)(0,1),(0,i7.I)(e,n));return r},t=>{t.prototype.rescale=function(){this.initRange(),this.nice();let[t]=this.chooseTransforms();this.composeOutput(t,this.chooseClamp(t))},t.prototype.initRange=function(){let{interpolator:t}=this.options;this.options.range=[t(0),t(1)]},t.prototype.composeOutput=function(t,e){let{domain:n,interpolator:r,round:i}=this.getOptions(),a=f7(n.map(t)),o=i?i9(r):r;this.output=(0,i8.q)(o,a,e,t)},t.prototype.invert=void 0})],at);let ae=t=>new at(t);ae.props={};var an=n(84965);let ar=t=>new an.s(t);function ai(t){let{colorDefault:e,colorBlack:n,colorWhite:r,colorStroke:i,colorBackground:a,padding1:o,padding2:l,padding3:s,alpha90:c,alpha65:u,alpha45:f,alpha25:d,alpha10:h,category10:p,category20:g,sizeDefault:m=1,padding:y="auto",margin:v=16}=t;return{padding:y,margin:v,size:m,color:e,category10:p,category20:g,enter:{duration:300,fill:"both",delay:0},update:{duration:300,fill:"both",delay:0},exit:{duration:300,fill:"both",delay:0},view:{viewFill:a,plotFill:"transparent",mainFill:"transparent",contentFill:"transparent"},line:{line:{fill:"",strokeOpacity:1,lineWidth:1,lineCap:"round"}},point:{point:{r:3,fillOpacity:.95,lineWidth:0},hollow:{r:3,strokeOpacity:.95,lineWidth:1},plus:{r:3,strokeOpacity:.95,lineWidth:3},diamond:{r:3,strokeOpacity:.95,lineWidth:1}},interval:{rect:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},area:{area:{fillOpacity:.85,lineWidth:0}},polygon:{polygon:{fillOpacity:.95}},cell:{cell:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},rect:{rect:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},link:{link:{fill:"",strokeOpacity:1}},vector:{vector:{fillOpacity:1}},box:{box:{fillOpacity:.95,stroke:n,lineWidth:1}},text:{text:{fill:"#1D2129",fontSize:12,lineWidth:0,connectorStroke:i,connectorStrokeOpacity:.45,connectorLineWidth:1,backgroundFill:i,backgroundFillOpacity:.15,backgroundPadding:[2,4],startMarkerSymbol:"circle",startMarkerSize:4,endMarkerSymbol:"circle",endMarkerSize:4},badge:{fill:"#1D2129",fillOpacity:.65,lineWidth:0,fontSize:10,textAlign:"center",textBaseline:"middle",markerFill:i,markerFillOpacity:.25,markerStrokeOpacity:0}},lineX:{line:{stroke:i,strokeOpacity:.45,lineWidth:1}},lineY:{line:{stroke:i,strokeOpacity:.45,lineWidth:1}},rangeX:{range:{fill:i,fillOpacity:.15,lineWidth:0}},rangeY:{range:{fill:i,fillOpacity:.15,lineWidth:0}},connector:{connector:{stroke:i,strokeOpacity:.45,lineWidth:1,connectLength1:12,endMarker:!0,endMarkerSize:6,endMarkerFill:i,endMarkerFillOpacity:.95}},axis:{arrow:!1,gridLineDash:[3,4],gridLineWidth:.5,gridStroke:n,gridStrokeOpacity:h,labelAlign:"horizontal",labelFill:n,labelOpacity:f,labelFontSize:12,labelFontWeight:"normal",labelSpacing:o,line:!1,lineLineWidth:.5,lineStroke:n,lineStrokeOpacity:f,tickLength:4,tickLineWidth:1,tickStroke:n,tickOpacity:f,titleFill:n,titleOpacity:c,titleFontSize:12,titleFontWeight:"normal",titleSpacing:12,titleTransformOrigin:"center",lineArrowOffset:6,lineArrowSize:6},axisTop:{gridDirection:"positive",labelDirection:"negative",tickDirection:"negative",titlePosition:"top",titleSpacing:12,labelSpacing:4,titleTextBaseline:"middle"},axisBottom:{gridDirection:"negative",labelDirection:"positive",tickDirection:"positive",titlePosition:"bottom",titleSpacing:12,labelSpacing:4,titleTextBaseline:"bottom",titleTransform:"translate(0, 8)"},axisLeft:{gridDirection:"positive",labelDirection:"negative",labelSpacing:4,tickDirection:"negative",titlePosition:"left",titleSpacing:12,titleTextBaseline:"middle",titleDirection:"vertical",titleTransform:"rotate(-90) translate(0, -8)",titleTransformOrigin:"center"},axisRight:{gridDirection:"negative",labelDirection:"positive",labelSpacing:4,tickDirection:"positive",titlePosition:"right",titleSpacing:12,titleTextBaseline:"top",titleDirection:"vertical",titleTransformOrigin:"center"},axisLinear:{girdClosed:!0,gridConnect:"arc",gridDirection:"negative",gridType:"surround",titlePosition:"top",titleSpacing:0},axisArc:{title:!1,titlePosition:"inner",line:!1,tick:!0,labelSpacing:4},axisRadar:{girdClosed:!0,gridStrokeOpacity:.3,gridType:"surround",label:!1,tick:!1,titlePosition:"start"},legendCategory:{backgroundFill:"transparent",itemBackgroundFill:"transparent",itemLabelFill:n,itemLabelFillOpacity:c,itemLabelFontSize:12,itemLabelFontWeight:"normal",itemMarkerFillOpacity:1,itemMarkerSize:8,itemSpacing:[o,o],itemValueFill:n,itemValueFillOpacity:.65,itemValueFontSize:12,itemValueFontWeight:"normal",navButtonFill:n,navButtonFillOpacity:.65,navPageNumFill:n,navPageNumFillOpacity:.45,navPageNumFontSize:12,padding:8,title:!1,titleFill:n,titleFillOpacity:.65,titleFontSize:12,titleFontWeight:"normal",titleSpacing:4,tickStroke:n,tickStrokeOpacity:.25,rowPadding:o,colPadding:l,maxRows:3,maxCols:3},legendContinuous:{handleHeight:12,handleLabelFill:n,handleLabelFillOpacity:f,handleLabelFontSize:12,handleLabelFontWeight:"normal",handleMarkerFill:n,handleMarkerFillOpacity:.6,handleMarkerLineWidth:1,handleMarkerStroke:n,handleMarkerStrokeOpacity:.25,handleWidth:10,labelFill:n,labelFillOpacity:f,labelFontSize:12,labelFontWeight:"normal",labelSpacing:3,tick:!0,tickLength:12,ribbonSize:12,ribbonFill:"#aaa",handle:!0,handleLabel:!1,handleShape:"slider",handleIconSize:12/1.8,indicator:!1,titleFontSize:12,titleSpacing:4,titleFontWeight:"normal",titleFillOpacity:c,tickStroke:n,tickStrokeOpacity:f},label:{fill:n,fillOpacity:.65,fontSize:12,fontWeight:"normal",stroke:void 0,offset:12,connectorStroke:n,connectorStrokeOpacity:.45,connectorLineWidth:1,connectorLength:12,connectorLength2:8,connectorDistance:4},innerLabel:{fill:r,fontSize:12,fillOpacity:.85,fontWeight:"normal",stroke:void 0,offset:0},htmlLabel:{fontSize:12,opacity:.65,color:n,fontWeight:"normal"},slider:{trackSize:16,trackFill:i,trackFillOpacity:1,selectionFill:e,selectionFillOpacity:.15,handleIconSize:10,handleIconFill:"#f7f7f7",handleIconFillOpacity:1,handleIconStroke:n,handleIconStrokeOpacity:.25,handleIconLineWidth:1,handleIconRadius:2,handleLabelFill:n,handleLabelFillOpacity:.45,handleLabelFontSize:12,handleLabelFontWeight:"normal"},scrollbar:{padding:[0,0,0,0],trackSize:6,isRound:!0,slidable:!0,scrollable:!0,trackFill:"#e5e5e5",trackFillOpacity:0,thumbFill:"#000",thumbFillOpacity:.15,thumbHighlightedFillOpacity:.2},title:{spacing:8,titleFill:n,titleFillOpacity:c,titleFontSize:16,titleFontWeight:"bold",titleTextBaseline:"top",subtitleFill:n,subtitleFillOpacity:u,subtitleFontSize:12,subtitleFontWeight:"normal",subtitleTextBaseline:"top"}}}ar.props={};let aa=ai({colorBlack:"#1D2129",colorWhite:"#ffffff",colorStroke:"#416180",colorDefault:"#1783FF",colorBackground:"transparent",category10:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F"],category20:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#AABA01","#BC7CFC","#237CBC","#2DE379","#CE8032","#FF7AF4","#545FD3","#AFE410","#D8C608","#FFA1E0"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.1}),ao=t=>(0,b.Z)({},aa,t);ao.props={};let al=t=>(0,b.Z)({},ao(),{category10:"category10",category20:"category20"},t);al.props={};let as=ai({colorBlack:"#fff",colorWhite:"#000",colorStroke:"#416180",colorDefault:"#1783FF",colorBackground:"transparent",category10:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F"],category20:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#AABA01","#BC7CFC","#237CBC","#2DE379","#CE8032","#FF7AF4","#545FD3","#AFE410","#D8C608","#FFA1E0"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.25}),ac=t=>(0,b.Z)({},as,{tooltip:{crosshairsStroke:"#fff",crosshairsLineWidth:1,crosshairsStrokeOpacity:.25,css:{".g2-tooltip":{background:"#1f1f1f",opacity:.95},".g2-tooltip-title":{color:"#A6A6A6"},".g2-tooltip-list-item-name-label":{color:"#A6A6A6"},".g2-tooltip-list-item-value":{color:"#A6A6A6"}}}},t),au=t=>Object.assign({},ac(),{category10:"category10",category20:"category20"},t);au.props={};let af=ai({colorBlack:"#000",colorWhite:"#fff",colorStroke:"#888",colorDefault:"#4e79a7",colorBackground:"transparent",category10:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"],category20:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.1}),ad=t=>(0,b.Z)({},af,{text:{text:{fontSize:10}},axis:{gridLineDash:[0,0],gridLineWidth:1,gridStroke:"#ddd",gridStrokeOpacity:1,labelOpacity:1,labelStrokeOpacity:1,labelFontSize:10,line:!0,lineLineWidth:1,lineStroke:"#888",lineStrokeOpacity:1,tickLength:5,tickStrokeOpacity:1,titleOpacity:1,titleStrokeOpacity:1,titleFillOpacity:1,titleFontSize:11,titleFontWeight:"bold"},axisLeft:{gridFilter:(t,e)=>0!==e},axisRight:{gridFilter:(t,e)=>0!==e},legendCategory:{itemLabelFillOpacity:1,itemLabelFontSize:10,itemValueFillOpacity:1,itemValueFontSize:10,titleFillOpacity:1,titleFontSize:11,titleFontWeight:"bold"},legendContinuous:{handleLabelFontSize:10,labelFillOpacity:.45,labelFontSize:10},label:{fontSize:10},innerLabel:{fontSize:10},htmlLabel:{fontSize:10},slider:{handleLabelFontSize:10,trackFillOpacity:.05}},t);ad.props={};var ah=n(24816);let ap=t=>function(){for(var e=arguments.length,n=Array(e),r=0;rfunction(){for(var e=arguments.length,n=Array(e),r=0;r1?{width:55,height:0}:{width:0,height:0}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageShape",{get:function(){var t,e,n=this.pageViews,r=(0,am.CR)(((null===(e=(t=n.map(function(t){var e=t.getBBox();return[e.width,e.height]}))[0])||void 0===e?void 0:e.map(function(e,n){return t.map(function(t){return t[n]})}))||[]).map(function(t){return Math.max.apply(Math,(0,am.ev)([],(0,am.CR)(t),!1))}),2),i=r[0],a=r[1],o=this.attributes,l=o.pageWidth,s=o.pageHeight;return{pageWidth:void 0===l?i:l,pageHeight:void 0===s?a:s}},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.playWindow},Object.defineProperty(e.prototype,"totalPages",{get:function(){return this.pageViews.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currPage",{get:function(){return this.innerCurrPage},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var e=t.prototype.getBBox.call(this),n=e.x,r=e.y,i=this.controllerShape,a=this.pageShape,o=a.pageWidth,l=a.pageHeight;return new ax.b(n,r,o+i.width,l)},e.prototype.goTo=function(t){var e=this,n=this.attributes.animate,r=this.currPage,i=this.playState,a=this.playWindow,o=this.pageViews;if("idle"!==i||t<0||o.length<=0||t>=o.length)return null;o[r].setLocalPosition(0,0),this.prepareFollowingPage(t);var l=(0,am.CR)(this.getFollowingPageDiff(t),2),s=l[0],c=l[1];this.playState="running";var u=(0,aA.jt)(a,[{transform:"translate(0, 0)"},{transform:"translate(".concat(-s,", ").concat(-c,")")}],n);return(0,aA.Yq)(u,function(){e.innerCurrPage=t,e.playState="idle",e.setVisiblePages([t]),e.updatePageInfo()}),u},e.prototype.prev=function(){var t=this.attributes.loop,e=this.pageViews.length,n=this.currPage;if(!t&&n<=0)return null;var r=t?(n-1+e)%e:(0,aM.Z)(n-1,0,e);return this.goTo(r)},e.prototype.next=function(){var t=this.attributes.loop,e=this.pageViews.length,n=this.currPage;if(!t&&n>=e-1)return null;var r=t?(n+1)%e:(0,aM.Z)(n+1,0,e);return this.goTo(r)},e.prototype.renderClipPath=function(t){var e=this.pageShape,n=e.pageWidth,r=e.pageHeight;if(!n||!r){this.contentGroup.style.clipPath=void 0;return}this.clipPath=t.maybeAppendByClassName(aT.clipPath,"rect").styles({width:n,height:r}),this.contentGroup.attr("clipPath",this.clipPath.node())},e.prototype.setVisiblePages=function(t){this.playWindow.children.forEach(function(e,n){t.includes(n)?(0,aE.$Z)(e):(0,aE.Cp)(e)})},e.prototype.adjustControllerLayout=function(){var t=this.prevBtnGroup,e=this.nextBtnGroup,n=this.pageInfoGroup,r=this.attributes,i=r.orientation,a=r.controllerPadding,o=n.getBBox(),l=o.width;o.height;var s=(0,am.CR)("horizontal"===i?[-180,0]:[-90,90],2),c=s[0],u=s[1];t.setLocalEulerAngles(c),e.setLocalEulerAngles(u);var f=t.getBBox(),d=f.width,h=f.height,p=e.getBBox(),g=p.width,m=p.height,y=Math.max(d,l,g),v="horizontal"===i?{offset:[[0,0],[d/2+a,0],[d+l+2*a,0]],textAlign:"start"}:{offset:[[y/2,-h-a],[y/2,0],[y/2,m+a]],textAlign:"center"},b=(0,am.CR)(v.offset,3),x=(0,am.CR)(b[0],2),O=x[0],w=x[1],_=(0,am.CR)(b[1],2),k=_[0],C=_[1],j=(0,am.CR)(b[2],2),M=j[0],S=j[1],A=v.textAlign,E=n.querySelector("text");E&&(E.style.textAlign=A),t.setLocalPosition(O,w),n.setLocalPosition(k,C),e.setLocalPosition(M,S)},e.prototype.updatePageInfo=function(){var t,e=this.currPage,n=this.pageViews,r=this.attributes.formatter;n.length<2||(null===(t=this.pageInfoGroup.querySelector(aT.pageInfo.class))||void 0===t||t.attr("text",r(e+1,n.length)),this.adjustControllerLayout())},e.prototype.getFollowingPageDiff=function(t){var e=this.currPage;if(e===t)return[0,0];var n=this.attributes.orientation,r=this.pageShape,i=r.pageWidth,a=r.pageHeight,o=t=2,l=t.maybeAppendByClassName(aT.controller,"g");if((0,aE.WD)(l.node(),o),o){var s=(0,av.zs)(this.attributes,"button"),c=(0,av.zs)(this.attributes,"pageNum"),u=(0,am.CR)((0,av.Hm)(s),2),f=u[0],d=u[1],h=f.size,p=(0,am._T)(f,["size"]),g=!l.select(aT.prevBtnGroup.class).node(),m=l.maybeAppendByClassName(aT.prevBtnGroup,"g").styles(d);this.prevBtnGroup=m.node();var y=m.maybeAppendByClassName(aT.prevBtn,"path"),v=l.maybeAppendByClassName(aT.nextBtnGroup,"g").styles(d);this.nextBtnGroup=v.node(),[y,v.maybeAppendByClassName(aT.nextBtn,"path")].forEach(function(t){t.styles((0,am.pi)((0,am.pi)({},p),{transformOrigin:"center"})),(0,aP.b)(t.node(),h,!0)});var b=l.maybeAppendByClassName(aT.pageInfoGroup,"g");this.pageInfoGroup=b.node(),b.maybeAppendByClassName(aT.pageInfo,"text").styles(c),this.updatePageInfo(),l.node().setLocalPosition(i+n,a/2),g&&(this.prevBtnGroup.addEventListener("click",function(){e.prev()}),this.nextBtnGroup.addEventListener("click",function(){e.next()}))}},e.prototype.render=function(t,e){var n=t.x,r=t.y,i=void 0===r?0:r;this.attr("transform","translate(".concat(void 0===n?0:n,", ").concat(i,")"));var a=(0,ab.Ys)(e);this.renderClipPath(a),this.renderController(a),this.setVisiblePages([this.defaultPage]),this.goTo(this.defaultPage)},e.prototype.bindEvents=function(){var t=this,e=(0,aS.Z)(function(){return t.render(t.attributes,t)},50);this.playWindow.addEventListener(t4.Dk.INSERTED,e),this.playWindow.addEventListener(t4.Dk.REMOVED,e)},e}(ay.w),aB=n(52644),aZ=n(62191),aI=n(47772),aN=n(39639),aD=n(75494),az=n(83186),aF=(0,ak.A)({layout:"flex",markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label",valueGroup:"value-group",value:"value",backgroundGroup:"background-group",background:"background"},"legend-category-item"),a$=function(t){function e(e){return t.call(this,e,{span:[1,1],marker:function(){return new t4.Cd({style:{r:6}})},markerSize:10,labelFill:"#646464",valueFill:"#646464",labelFontSize:12,valueFontSize:12,labelTextBaseline:"middle",valueTextBaseline:"middle"})||this}return(0,am.ZT)(e,t),Object.defineProperty(e.prototype,"showValue",{get:function(){var t=this.attributes.valueText;return!!t&&("string"==typeof t||"number"==typeof t?""!==t:"function"==typeof t||""!==t.attr("text"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"actualSpace",{get:function(){var t=this.labelGroup,e=this.valueGroup,n=this.attributes.markerSize,r=t.node().getBBox(),i=r.width,a=r.height,o=e.node().getBBox();return{markerWidth:n,labelWidth:i,valueWidth:o.width,height:Math.max(n,a,o.height)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"span",{get:function(){var t=this.attributes.span;if(!t)return[1,1];var e=(0,am.CR)((0,aZ.j)(t),2),n=e[0],r=e[1],i=this.showValue?r:0,a=n+i;return[n/a,i/a]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){var t,e=this.attributes,n=e.markerSize,r=e.width,i=this.actualSpace,a=i.markerWidth,o=i.height,l=this.actualSpace,s=l.labelWidth,c=l.valueWidth,u=(0,am.CR)(this.spacing,2),f=u[0],d=u[1];if(r){var h=r-n-f-d,p=(0,am.CR)(this.span,2),g=p[0],m=p[1];s=(t=(0,am.CR)([g*h,m*h],2))[0],c=t[1]}return{width:a+s+c+f+d,height:o,markerWidth:a,labelWidth:s,valueWidth:c}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"spacing",{get:function(){var t=this.attributes.spacing;if(!t)return[0,0];var e=(0,am.CR)((0,aZ.j)(t),2),n=e[0],r=e[1];return this.showValue?[n,r]:[n,0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){var t=this.shape,e=t.markerWidth,n=t.labelWidth,r=t.valueWidth,i=t.width,a=t.height,o=(0,am.CR)(this.spacing,2),l=o[0];return{height:a,width:i,markerWidth:e,labelWidth:n,valueWidth:r,position:[e/2,e+l,e+n+l+o[1]]}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleSize",{get:function(){var t,e=(t=this.markerGroup.node().querySelector(aF.marker.class))?t.style:{},n=this.attributes,r=n.markerSize,i=n.markerStrokeWidth,a=void 0===i?e.strokeWidth:i,o=n.markerLineWidth,l=void 0===o?e.lineWidth:o,s=n.markerStroke,c=void 0===s?e.stroke:s,u=+(a||l||(c?1:0))*Math.sqrt(2),f=this.markerGroup.node().getBBox();return(1-u/Math.max(f.width,f.height))*r},enumerable:!1,configurable:!0}),e.prototype.renderMarker=function(t){var e=this,n=this.attributes.marker,r=(0,av.zs)(this.attributes,"marker");this.markerGroup=t.maybeAppendByClassName(aF.markerGroup,"g").style("zIndex",0),(0,aI.z)(!!n,this.markerGroup,function(){var t,i=e.markerGroup.node(),a=null===(t=i.childNodes)||void 0===t?void 0:t[0],o="string"==typeof n?new e3.J({style:{symbol:n},className:aF.marker.name}):n();a?o.nodeName===a.nodeName?a instanceof e3.J?a.update((0,am.pi)((0,am.pi)({},r),{symbol:n})):((0,aN.DM)(a,o),(0,ab.Ys)(a).styles(r)):(a.remove(),(0,ab.Ys)(o).attr("className",aF.marker.name).styles(r),i.appendChild(o)):(o instanceof e3.J||(0,ab.Ys)(o).attr("className",aF.marker.name).styles(r),i.appendChild(o)),e.markerGroup.node().scale(1/e.markerGroup.node().getScale()[0]);var l=(0,aP.b)(e.markerGroup.node(),e.scaleSize,!0);e.markerGroup.node().style._transform="scale(".concat(l,")")})},e.prototype.renderLabel=function(t){var e=(0,av.zs)(this.attributes,"label"),n=e.text,r=(0,am._T)(e,["text"]);this.labelGroup=t.maybeAppendByClassName(aF.labelGroup,"g").style("zIndex",0),this.labelGroup.maybeAppendByClassName(aF.label,function(){return(0,aD.S)(n)}).styles(r)},e.prototype.renderValue=function(t){var e=this,n=(0,av.zs)(this.attributes,"value"),r=n.text,i=(0,am._T)(n,["text"]);this.valueGroup=t.maybeAppendByClassName(aF.valueGroup,"g").style("zIndex",0),(0,aI.z)(this.showValue,this.valueGroup,function(){e.valueGroup.maybeAppendByClassName(aF.value,function(){return(0,aD.S)(r)}).styles(i)})},e.prototype.renderBackground=function(t){var e=this.shape,n=e.width,r=e.height,i=(0,av.zs)(this.attributes,"background");this.background=t.maybeAppendByClassName(aF.backgroundGroup,"g").style("zIndex",-1),this.background.maybeAppendByClassName(aF.background,"rect").styles((0,am.pi)({width:n,height:r},i))},e.prototype.adjustLayout=function(){var t=this.layout,e=t.labelWidth,n=t.valueWidth,r=t.height,i=(0,am.CR)(t.position,3),a=i[0],o=i[1],l=i[2],s=r/2;this.markerGroup.styles({transform:"translate(".concat(a,", ").concat(s,")").concat(this.markerGroup.node().style._transform)}),this.labelGroup.styles({transform:"translate(".concat(o,", ").concat(s,")")}),(0,az.O)(this.labelGroup.select(aF.label.class).node(),Math.ceil(e)),this.showValue&&(this.valueGroup.styles({transform:"translate(".concat(l,", ").concat(s,")")}),(0,az.O)(this.valueGroup.select(aF.value.class).node(),Math.ceil(n)))},e.prototype.render=function(t,e){var n=(0,ab.Ys)(e),r=t.x,i=t.y,a=void 0===i?0:i;n.styles({transform:"translate(".concat(void 0===r?0:r,", ").concat(a,")")}),this.renderMarker(n),this.renderLabel(n),this.renderValue(n),this.renderBackground(n),this.adjustLayout()},e}(ay.w),aW=(0,ak.A)({page:"item-page",navigator:"navigator",item:"item"},"items"),aH=function(t,e,n){return(void 0===n&&(n=!0),t)?e(t):n},aG=function(t){function e(e){var n=t.call(this,e,{data:[],gridRow:1/0,gridCol:void 0,padding:0,width:1e3,height:100,rowPadding:0,colPadding:0,layout:"flex",orientation:"horizontal",click:aw.Z,mouseenter:aw.Z,mouseleave:aw.Z})||this;return n.navigatorShape=[0,0],n}return(0,am.ZT)(e,t),Object.defineProperty(e.prototype,"pageViews",{get:function(){return this.navigator.getContainer()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){var t=this.attributes,e=t.gridRow,n=t.gridCol,r=t.data;if(!e&&!n)throw Error("gridRow and gridCol can not be set null at the same time");return e&&n?[e,n]:e?[e,r.length]:[r.length,n]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderData",{get:function(){var t=this.attributes,e=t.data,n=t.layout,r=(0,av.zs)(this.attributes,"item");return e.map(function(t,i){var a=t.id,o=void 0===a?i:a,l=t.label,s=t.value;return{id:"".concat(o),index:i,style:(0,am.pi)({layout:n,labelText:l,valueText:s},Object.fromEntries(Object.entries(r).map(function(n){var r=(0,am.CR)(n,2),a=r[0],o=r[1];return[a,(0,aC.S)(o,[t,i,e])]})))}})},enumerable:!1,configurable:!0}),e.prototype.getGridLayout=function(){var t=this,e=this.attributes,n=e.orientation,r=e.width,i=e.rowPadding,a=e.colPadding,o=(0,am.CR)(this.navigatorShape,1)[0],l=(0,am.CR)(this.grid,2),s=l[0],c=l[1],u=c*s,f=0;return this.pageViews.children.map(function(e,l){var d,h,p=Math.floor(l/u),g=l%u,m=t.ifHorizontal(c,s),y=[Math.floor(g/m),g%m];"vertical"===n&&y.reverse();var v=(0,am.CR)(y,2),b=v[0],x=v[1],O=(r-o-(c-1)*a)/c,w=e.getBBox().height,_=(0,am.CR)([0,0],2),k=_[0],C=_[1];return"horizontal"===n?(k=(d=(0,am.CR)([f,b*(w+i)],2))[0],C=d[1],f=x===c-1?0:f+O+a):(k=(h=(0,am.CR)([x*(O+a),f],2))[0],C=h[1],f=b===s-1?0:f+w+i),{page:p,index:l,row:b,col:x,pageIndex:g,width:O,height:w,x:k,y:C}})},e.prototype.getFlexLayout=function(){var t=this.attributes,e=t.width,n=t.height,r=t.rowPadding,i=t.colPadding,a=(0,am.CR)(this.navigatorShape,1)[0],o=(0,am.CR)(this.grid,2),l=o[0],s=o[1],c=(0,am.CR)([e-a,n],2),u=c[0],f=c[1],d=(0,am.CR)([0,0,0,0,0,0,0,0],8),h=d[0],p=d[1],g=d[2],m=d[3],y=d[4],v=d[5],b=d[6],x=d[7];return this.pageViews.children.map(function(t,e){var n,a,o,c,d=t.getBBox(),O=d.width,w=d.height,_=0===b?0:i,k=b+_+O;return k<=u&&aH(y,function(t){return t0?(this.navigatorShape=[55,0],t.call(this)):e},enumerable:!1,configurable:!0}),e.prototype.ifHorizontal=function(t,e){var n=this.attributes.orientation;return(0,aB._h)(n,t,e)},e.prototype.flattenPage=function(t){t.querySelectorAll(aW.item.class).forEach(function(e){t.appendChild(e)}),t.querySelectorAll(aW.page.class).forEach(function(e){t.removeChild(e).destroy()})},e.prototype.renderItems=function(t){var e=this.attributes,n=e.click,r=e.mouseenter,i=e.mouseleave;this.flattenPage(t);var a=this.dispatchCustomEvent.bind(this);(0,ab.Ys)(t).selectAll(aW.item.class).data(this.renderData,function(t){return t.id}).join(function(t){return t.append(function(t){var e=t.style;return new a$({style:e})}).attr("className",aW.item.name).on("click",function(){null==n||n(this),a("itemClick",{item:this})}).on("pointerenter",function(){null==r||r(this),a("itemMouseenter",{item:this})}).on("pointerleave",function(){null==i||i(this),a("itemMouseleave",{item:this})})},function(t){return t.each(function(t){var e=t.style;this.update(e)})},function(t){return t.remove()})},e.prototype.relayoutNavigator=function(){var t,e=this.attributes,n=e.layout,r=e.width,i=(null===(t=this.pageViews.children[0])||void 0===t?void 0:t.getBBox().height)||0,a=(0,am.CR)(this.navigatorShape,2),o=a[0],l=a[1];this.navigator.update("grid"===n?{pageWidth:r-o,pageHeight:i-l}:{})},e.prototype.adjustLayout=function(){var t,e,n=this,r=Object.entries((t=this.itemsLayout,e="page",t.reduce(function(t,n){return(t[n[e]]=t[n[e]]||[]).push(n),t},{}))).map(function(t){var e=(0,am.CR)(t,2);return{page:e[0],layouts:e[1]}}),i=(0,am.ev)([],(0,am.CR)(this.navigator.getContainer().children),!1);r.forEach(function(t){var e=t.layouts,r=n.pageViews.appendChild(new t4.ZA({className:aW.page.name}));e.forEach(function(t){var e=t.x,n=t.y,a=t.index,o=t.width,l=t.height,s=i[a];r.appendChild(s),(0,a_.Z)(s,"__layout__",t),s.update({x:e,y:n,width:o,height:l})})}),this.relayoutNavigator()},e.prototype.renderNavigator=function(t){var e=this.attributes.orientation,n=(0,av.zs)(this.attributes,"nav"),r=(0,aj.n)({orientation:e},n),i=this;return t.selectAll(aW.navigator.class).data(["nav"]).join(function(t){return t.append(function(){return new aL({style:r})}).attr("className",aW.navigator.name).each(function(){i.navigator=this})},function(t){return t.each(function(){this.update(r)})},function(t){return t.remove()}),this.navigator},e.prototype.getBBox=function(){return this.navigator.getBBox()},e.prototype.render=function(t,e){var n=this.attributes.data;if(n&&0!==n.length){var r=this.renderNavigator((0,ab.Ys)(e));this.renderItems(r.getContainer()),this.adjustLayout()}},e.prototype.dispatchCustomEvent=function(t,e){var n=new t4.Aw(t,{detail:e});this.dispatchEvent(n)},e}(ay.w),aq=n(47334),aY=function(t){function e(e){return t.call(this,e,aq.bD)||this}return(0,am.ZT)(e,t),e.prototype.renderTitle=function(t,e,n){var r=this.attributes,i=r.showTitle,a=r.titleText,o=(0,av.zs)(this.attributes,"title"),l=(0,am.CR)((0,av.Hm)(o),2),s=l[0],c=l[1];this.titleGroup=t.maybeAppendByClassName(aq.Ec.titleGroup,"g").styles(c);var u=(0,am.pi)((0,am.pi)({width:e,height:n},s),{text:i?a:""});this.title=this.titleGroup.maybeAppendByClassName(aq.Ec.title,function(){return new aO.Dx({style:u})}).update(u)},e.prototype.renderItems=function(t,e){var n=e.x,r=e.y,i=e.width,a=e.height,o=(0,av.zs)(this.attributes,"title",!0),l=(0,am.CR)((0,av.Hm)(o),2),s=l[0],c=l[1],u=(0,am.pi)((0,am.pi)({},s),{width:i,height:a,x:0,y:0});this.itemsGroup=t.maybeAppendByClassName(aq.Ec.itemsGroup,"g").styles((0,am.pi)((0,am.pi)({},c),{transform:"translate(".concat(n,", ").concat(r,")")}));var f=this;this.itemsGroup.selectAll(aq.Ec.items.class).data(["items"]).join(function(t){return t.append(function(){return new aG({style:u})}).attr("className",aq.Ec.items.name).each(function(){f.items=(0,ab.Ys)(this)})},function(t){return t.update(u)},function(t){return t.remove()})},e.prototype.adjustLayout=function(){if(this.attributes.showTitle){var t=this.title.node().getAvailableSpace(),e=t.x,n=t.y;this.itemsGroup.node().style.transform="translate(".concat(e,", ").concat(n,")")}},Object.defineProperty(e.prototype,"availableSpace",{get:function(){var t=this.attributes,e=t.showTitle,n=t.width,r=t.height;return e?this.title.node().getAvailableSpace():new ax.b(0,0,n,r)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var e,n,r=null===(e=this.title)||void 0===e?void 0:e.node(),i=null===(n=this.items)||void 0===n?void 0:n.node();return r&&i?(0,aO.jY)(r,i):t.prototype.getBBox.call(this)},e.prototype.render=function(t,e){var n=this.attributes,r=n.width,i=n.height,a=n.x,o=n.y,l=void 0===o?0:o,s=(0,ab.Ys)(e);e.style.transform="translate(".concat(void 0===a?0:a,", ").concat(l,")"),this.renderTitle(s,r,i),this.renderItems(s,this.availableSpace),this.adjustLayout()},e}(ay.w),aV=n(82844);function aU(t){if((0,aV.Z)(t))return t[t.length-1]}var aQ=n(17694),aK=n(25524),aX=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let aJ=t=>{let{labelFormatter:e,layout:n,order:r,orientation:i,position:a,size:o,title:l,cols:s,itemMarker:c}=t,u=aX(t,["labelFormatter","layout","order","orientation","position","size","title","cols","itemMarker"]),{gridRow:f}=u;return e=>{let{value:r,theme:i}=e,{bbox:o}=r,{width:c,height:d}=function(t,e,n){let{position:r}=e;if("center"===r){let{bbox:e}=t,{width:n,height:r}=e;return{width:n,height:r}}let{width:i,height:a}=(0,aK.SJ)(t,e,n);return{width:i,height:a}}(r,t,aJ),h=(0,aK.Gd)(a,n),p=Object.assign(Object.assign(Object.assign(Object.assign({orientation:["right","left","center"].includes(a)?"vertical":"horizontal",width:c,height:d,layout:void 0!==s?"grid":"flex"},void 0!==s&&{gridCol:s}),void 0!==f&&{gridRow:f}),{titleText:(0,aK.iN)(l)}),function(t,e){let{labelFormatter:n=t=>"".concat(t)}=t,{scales:r,theme:i}=e,a=i.legendCategory.itemMarkerSize,o=function(t,e){let n=(0,aK.nU)(t,"size");return n instanceof rK?2*n.map(NaN):e}(r,a),l={itemMarker:function(t,e){let{scales:n,library:r,markState:i}=e,[a,o]=function(t,e){let n=(0,aK.nU)(t,"shape"),r=(0,aK.nU)(t,"color"),i=n?n.clone():null,a=[];for(let[t,n]of e){let e=t.type,o=(null==r?void 0:r.getOptions().domain.length)>0?null==r?void 0:r.getOptions().domain:n.data,l=o.map((e,r)=>{var a;return i?i.map(e||"point"):(null===(a=null==t?void 0:t.style)||void 0===a?void 0:a.shape)||n.defaultShape||"point"});"string"==typeof e&&a.push([e,l])}if(0===a.length)return["point",["point"]];if(1===a.length||!n)return a[0];let{range:o}=n.getOptions();return a.map(t=>{let[e,n]=t,r=0;for(let t=0;te[0]-t[0])[0][1]}(n,i),{itemMarker:l,itemMarkerSize:s}=t,c=(t,e)=>{var n,i,o;let l=(null===(o=null===(i=null===(n=r["mark.".concat(a)])||void 0===n?void 0:n.props)||void 0===i?void 0:i.shape[t])||void 0===o?void 0:o.props.defaultMarker)||aU(t.split(".")),c="function"==typeof s?s(e):s;return()=>(function(t,e){var{d:n,fill:r,lineWidth:i,path:a,stroke:o,color:l}=e,s=t8(e,["d","fill","lineWidth","path","stroke","color"]);let c=eC.get(t)||eC.get("point");return function(){for(var t=arguments.length,e=Array(t),n=0;n"".concat(o[t]),f=(0,aK.nU)(n,"shape");return f&&!l?(t,e)=>c(u(e),t):"function"==typeof l?(t,e)=>{let n=l(t.id,e);return"string"==typeof n?c(n,t):n}:(t,e)=>c(l||u(e),t)}(Object.assign(Object.assign({},t),{itemMarkerSize:o}),e),itemMarkerSize:o,itemMarkerOpacity:function(t){let e=(0,aK.nU)(t,"opacity");if(e){let{range:t}=e.getOptions();return(e,n)=>t[n]}}(r)},s="string"==typeof n?(0,aQ.WU)(n):n,c=(0,aK.nU)(r,"color"),u=(0,aK.ib)(r),f=c?t=>c.map(t):()=>e.theme.color;return Object.assign(Object.assign({},l),{data:u.map(t=>({id:t,label:s(t),color:f(t)}))})}(t,e)),{legendCategory:g={}}=i,m=(0,aK.N)(Object.assign({},g,p,u)),y=new aK.L5({style:Object.assign(Object.assign({x:o.x,y:o.y,width:o.width,height:o.height},h),{subOptions:m})});return y.appendChild(new aY({className:"legend-category",style:m})),y}};aJ.props={defaultPosition:"top",defaultOrder:1,defaultSize:40,defaultCrossPadding:[12,12],defaultPadding:[12,12]};var a0=n(53347);let a1=t=>()=>new t4.ZA;a1.props={};var a2=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function a5(t,e,n,r){switch(r){case"center":return{x:t+n/2,y:e,textAlign:"middle"};case"right":return{x:t+n,y:e,textAlign:"right"};default:return{x:t,y:e,textAlign:"left"}}}let a3=(0,aK.LM)({render(t,e){let{width:n,title:r,subtitle:i,spacing:a=2,align:o="left",x:l,y:s}=t,c=a2(t,["width","title","subtitle","spacing","align","x","y"]);e.style.transform="translate(".concat(l,", ").concat(s,")");let u=(0,H.hB)(c,"title"),f=(0,H.hB)(c,"subtitle"),d=(0,aK.OV)(e,".title","text").attr("className","title").call(N.bg,Object.assign(Object.assign(Object.assign({},a5(0,0,n,o)),{fontSize:14,textBaseline:"top",text:r}),u)).node(),h=d.getLocalBounds();(0,aK.OV)(e,".sub-title","text").attr("className","sub-title").call(t=>{if(!i)return t.node().remove();t.node().attr(Object.assign(Object.assign(Object.assign({},a5(0,h.max[1]+a,n,o)),{fontSize:12,textBaseline:"top",text:i}),f))})}}),a6=t=>e=>{let{value:n,theme:r}=e,{x:i,y:a,width:o,height:l}=n.bbox;return new a3({style:(0,b.Z)({},r.title,Object.assign({x:i,y:a,width:o,height:l},t))})};a6.props={defaultPosition:"top",defaultOrder:2,defaultSize:36,defaultCrossPadding:[20,20],defaultPadding:[12,12]};var a4=n(8523),a8=n(26406),a7=n(48951),a9=n(83207),ot=n(5199),oe=n(45607),on=function(t){function e(e){var n=this,r=e.style,i=(0,am._T)(e,["style"]);return(n=t.call(this,(0,b.Z)({},{type:"column"},(0,am.pi)({style:r},i)))||this).columnsGroup=new t4.ZA({name:"columns"}),n.appendChild(n.columnsGroup),n.render(),n}return(0,am.ZT)(e,t),e.prototype.render=function(){var t=this.attributes,e=t.columns,n=t.x,r=t.y;this.columnsGroup.style.transform="translate(".concat(n,", ").concat(r,")"),(0,ab.Ys)(this.columnsGroup).selectAll(".column").data(e.flat()).join(function(t){return t.append("rect").attr("className","column").each(function(t){this.attr(t)})},function(t){return t.each(function(t){this.attr(t)})},function(t){return t.remove()})},e.prototype.update=function(t){this.attr((0,aj.n)({},this.attributes,t)),this.render()},e.prototype.clear=function(){this.removeChildren()},e}(t4.s$),or=function(t){function e(e){var n=this,r=e.style,i=(0,am._T)(e,["style"]);return(n=t.call(this,(0,b.Z)({},{type:"lines"},(0,am.pi)({style:r},i)))||this).linesGroup=n.appendChild(new t4.ZA),n.areasGroup=n.appendChild(new t4.ZA),n.render(),n}return(0,am.ZT)(e,t),e.prototype.render=function(){var t=this.attributes,e=t.lines,n=t.areas,r=t.x,i=t.y;this.style.transform="translate(".concat(r,", ").concat(i,")"),e&&this.renderLines(e),n&&this.renderAreas(n)},e.prototype.clear=function(){this.linesGroup.removeChildren(),this.areasGroup.removeChildren()},e.prototype.update=function(t){this.attr((0,aj.n)({},this.attributes,t)),this.render()},e.prototype.renderLines=function(t){(0,ab.Ys)(this.linesGroup).selectAll(".line").data(t).join(function(t){return t.append("path").attr("className","line").each(function(t){this.attr(t)})},function(t){return t.each(function(t){this.attr(t)})},function(t){return t.remove()})},e.prototype.renderAreas=function(t){(0,ab.Ys)(this.linesGroup).selectAll(".area").data(t).join(function(t){return t.append("path").attr("className","area").each(function(t){this.attr(t)})},function(t){return t.each(function(t){this.style(t)})},function(t){return t.remove()})},e}(t4.s$),oi=n(30335),oa=n(80264);function oo(t,e){void 0===e&&(e=!1);var n=e?t.length-1:0,r=t.map(function(t,e){return(0,am.ev)([e===n?"M":"L"],(0,am.CR)(t),!1)});return e?r.reverse():r}function ol(t,e){if(void 0===e&&(e=!1),t.length<=2)return oo(t);for(var n=[],r=t.length,i=0;i=0?(l[s]+=i[s],i[s]=l[s]):(l[s]+=a[s],a[s]=l[s]);return e}var og=function(t){function e(e){return t.call(this,e,{type:"line",x:0,y:0,width:200,height:20,isStack:!1,color:["#83daad","#edbf45","#d2cef9","#e290b3","#6f63f4"],smooth:!0,lineLineWidth:1,areaOpacity:0,isGroup:!1,columnLineWidth:1,columnStroke:"#fff",scale:1,spacing:0})||this}return(0,am.ZT)(e,t),Object.defineProperty(e.prototype,"rawData",{get:function(){var t=this.attributes.data;if(!t||(null==t?void 0:t.length)===0)return[[]];var e=(0,a9.Z)(t);return(0,rY.Z)(e[0])?[e]:e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.attributes.isStack?op(this.rawData):this.rawData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scales",{get:function(){return this.createScales(this.data)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseline",{get:function(){var t=this.scales.y,e=(0,am.CR)(t.getOptions().domain||[0,0],2),n=e[0],r=e[1];return r<0?t.map(r):t.map(n<0?0:n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerShape",{get:function(){var t=this.attributes;return{width:t.width,height:t.height}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linesStyle",{get:function(){var t=this,e=this.attributes,n=e.type,r=e.isStack,i=e.smooth;if("line"!==n)throw Error("linesStyle can only be used in line type");var a=(0,av.zs)(this.attributes,"area"),o=(0,av.zs)(this.attributes,"line"),l=this.containerShape.width,s=this.data;if(0===s[0].length)return{lines:[],areas:[]};var c=this.scales,u=(p=(d={type:"line",x:c.x,y:c.y}).x,g=d.y,y=(m=(0,am.CR)(g.getOptions().range||[0,0],2))[0],(v=m[1])>y&&(v=(h=(0,am.CR)([y,v],2))[0],y=h[1]),s.map(function(t){return t.map(function(t,e){return[p.map(e),(0,aM.Z)(g.map(t),v,y)]})})),f=[];if(a){var d,h,p,g,m,y,v,b=this.baseline;f=r?i?function(t,e,n){for(var r=[],i=t.length-1;i>=0;i-=1){var a=t[i],o=ol(a),l=void 0;if(0===i)l=os(o,e,n);else{var s=ol(t[i-1],!0),c=a[0];s[0][0]="L",l=(0,am.ev)((0,am.ev)((0,am.ev)([],(0,am.CR)(o),!1),(0,am.CR)(s),!1),[(0,am.ev)(["M"],(0,am.CR)(c),!1),["Z"]],!1)}r.push(l)}return r}(u,l,b):function(t,e,n){for(var r=[],i=t.length-1;i>=0;i-=1){var a=oo(t[i]),o=void 0;if(0===i)o=os(a,e,n);else{var l=oo(t[i-1],!0);l[0][0]="L",o=(0,am.ev)((0,am.ev)((0,am.ev)([],(0,am.CR)(a),!1),(0,am.CR)(l),!1),[["Z"]],!1)}r.push(o)}return r}(u,l,b):u.map(function(t){return os(i?ol(t):oo(t),l,b)})}return{lines:u.map(function(e,n){return(0,am.pi)({stroke:t.getColor(n),d:i?ol(e):oo(e)},o)}),areas:f.map(function(e,n){return(0,am.pi)({d:e,fill:t.getColor(n)},a)})}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnsStyle",{get:function(){var t=this,e=(0,av.zs)(this.attributes,"column"),n=this.attributes,r=n.isStack,i=n.type,a=n.scale;if("column"!==i)throw Error("columnsStyle can only be used in column type");var o=this.containerShape.height,l=this.rawData;if(!l)return{columns:[]};r&&(l=op(l));var s=this.createScales(l),c=s.x,u=s.y,f=(0,am.CR)(oh(l),2),d=f[0],h=f[1],p=new rF.b({domain:[0,h-(d>0?0:d)],range:[0,o*a]}),g=c.getBandWidth(),m=this.rawData;return{columns:l.map(function(n,i){return n.map(function(n,a){var o=g/l.length;return(0,am.pi)((0,am.pi)({fill:t.getColor(i)},e),r?{x:c.map(a),y:u.map(n),width:g,height:p.map(m[i][a])}:{x:c.map(a)+o*i,y:n>=0?u.map(n):u.map(0),width:o,height:p.map(Math.abs(n))})})})}},enumerable:!1,configurable:!0}),e.prototype.render=function(t,e){(0,ab.OV)(e,".container","rect").attr("className","container").node();var n=t.type,r=t.x,i=t.y,a="spark".concat(n),o=(0,am.pi)({x:r,y:i},"line"===n?this.linesStyle:this.columnsStyle);(0,ab.Ys)(e).selectAll(".spark").data([n]).join(function(t){return t.append(function(t){return"line"===t?new or({className:a,style:o}):new on({className:a,style:o})}).attr("className","spark ".concat(a))},function(t){return t.update(o)},function(t){return t.remove()})},e.prototype.getColor=function(t){var e=this.attributes.color;return(0,ot.Z)(e)?e[t%e.length]:(0,oe.Z)(e)?e.call(null,t):e},e.prototype.createScales=function(t){var e,n,r=this.attributes,i=r.type,a=r.scale,o=r.range,l=void 0===o?[]:o,s=r.spacing,c=this.containerShape,u=c.width,f=c.height,d=(0,am.CR)(oh(t),2),h=d[0],p=d[1],g=new rF.b({domain:[null!==(e=l[0])&&void 0!==e?e:h,null!==(n=l[1])&&void 0!==n?n:p],range:[f,f*(1-a)]});return"line"===i?{type:i,x:new rF.b({domain:[0,t[0].length-1],range:[0,u]}),y:g}:{type:i,x:new rG.t({domain:t[0].map(function(t,e){return e}),range:[0,u],paddingInner:s,paddingOuter:s/2,align:.5}),y:g}},e.tag="sparkline",e}(ay.w),om=n(42100),oy=n(77687),ov=function(t){function e(e){var n=t.call(this,e,(0,am.pi)((0,am.pi)((0,am.pi)({x:0,y:0,animate:{duration:100,fill:"both"},brushable:!0,formatter:function(t){return t.toString()},handleSpacing:2,orientation:"horizontal",padding:0,autoFitLabel:!0,scrollable:!0,selectionFill:"#5B8FF9",selectionFillOpacity:.45,selectionZIndex:2,showHandle:!0,showLabel:!0,slidable:!0,trackFill:"#416180",trackLength:200,trackOpacity:.05,trackSize:20,trackZIndex:-1,values:[0,1],type:"range",selectionType:"select",handleIconOffset:0},(0,av.dq)(om.fI,"handle")),(0,av.dq)(om.Qi,"handleIcon")),(0,av.dq)(om.b0,"handleLabel")))||this;return n.range=[0,1],n.onDragStart=function(t){return function(e){e.stopPropagation(),n.target=t,n.prevPos=n.getOrientVal((0,a8.s)(e));var r=n.availableSpace,i=r.x,a=r.y,o=n.getBBox(),l=o.x,s=o.y;n.selectionStartPos=n.getRatio(n.prevPos-n.getOrientVal([i,a])-n.getOrientVal([+l,+s])),n.selectionWidth=0,document.addEventListener("pointermove",n.onDragging),document.addEventListener("pointerup",n.onDragEnd)}},n.onDragging=function(t){var e=n.attributes,r=e.slidable,i=e.brushable,a=e.type;t.stopPropagation();var o=n.getOrientVal((0,a8.s)(t)),l=o-n.prevPos;if(l){var s=n.getRatio(l);switch(n.target){case"start":r&&n.setValuesOffset(s);break;case"end":r&&n.setValuesOffset(0,s);break;case"selection":r&&n.setValuesOffset(s,s);break;case"track":if(!i)return;n.selectionWidth+=s,"range"===a?n.innerSetValues([n.selectionStartPos,n.selectionStartPos+n.selectionWidth].sort(),!0):n.innerSetValues([0,n.selectionStartPos+n.selectionWidth],!0)}n.prevPos=o}},n.onDragEnd=function(){document.removeEventListener("pointermove",n.onDragging),document.removeEventListener("pointermove",n.onDragging),document.removeEventListener("pointerup",n.onDragEnd),n.target="",n.updateHandlesPosition(!1)},n.onValueChange=function(t){var e=n.attributes,r=e.onChange,i=e.type,a="range"===i?t:t[1],o="range"===i?n.getValues():n.getValues()[1],l=new t4.Aw("valuechange",{detail:{oldValue:a,value:o}});n.dispatchEvent(l),null==r||r(o)},n.selectionStartPos=0,n.selectionWidth=0,n.prevPos=0,n.target="",n}return(0,am.ZT)(e,t),Object.defineProperty(e.prototype,"values",{get:function(){return this.attributes.values},set:function(t){this.attributes.values=this.clampValues(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sparklineStyle",{get:function(){if("horizontal"!==this.attributes.orientation)return null;var t=(0,av.zs)(this.attributes,"sparkline");return(0,am.pi)((0,am.pi)({zIndex:0},this.availableSpace),t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){var t=this.attributes,e=t.trackLength,n=t.trackSize,r=(0,am.CR)(this.getOrientVal([[e,n],[n,e]]),2);return{width:r[0],height:r[1]}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableSpace",{get:function(){var t=this.attributes,e=(t.x,t.y,t.padding),n=(0,am.CR)((0,aZ.j)(e),4),r=n[0],i=n[1],a=n[2],o=n[3],l=this.shape;return{x:o,y:r,width:l.width-(o+i),height:l.height-(r+a)}},enumerable:!1,configurable:!0}),e.prototype.getValues=function(){return this.values},e.prototype.setValues=function(t,e){void 0===t&&(t=[0,0]),void 0===e&&(e=!1),this.attributes.values=t;var n=!1!==e&&this.attributes.animate;this.updateSelectionArea(n),this.updateHandlesPosition(n)},e.prototype.updateSelectionArea=function(t){var e=this.calcSelectionArea();this.foregroundGroup.selectAll(om.Ec.selection.class).each(function(n,r){(0,aA.eR)(this,e[r],t)})},e.prototype.updateHandlesPosition=function(t){this.attributes.showHandle&&(this.startHandle&&(0,aA.eR)(this.startHandle,this.getHandleStyle("start"),t),this.endHandle&&(0,aA.eR)(this.endHandle,this.getHandleStyle("end"),t))},e.prototype.innerSetValues=function(t,e){void 0===t&&(t=[0,0]),void 0===e&&(e=!1);var n=this.values,r=this.clampValues(t);this.attributes.values=r,this.setValues(r),e&&this.onValueChange(n)},e.prototype.renderTrack=function(t){var e=this.attributes,n=e.x,r=e.y,i=(0,av.zs)(this.attributes,"track");this.trackShape=(0,ab.Ys)(t).maybeAppendByClassName(om.Ec.track,"rect").styles((0,am.pi)((0,am.pi)({x:n,y:r},this.shape),i))},e.prototype.renderBrushArea=function(t){var e=this.attributes,n=e.x,r=e.y,i=e.brushable;this.brushArea=(0,ab.Ys)(t).maybeAppendByClassName(om.Ec.brushArea,"rect").styles((0,am.pi)({x:n,y:r,fill:"transparent",cursor:i?"crosshair":"default"},this.shape))},e.prototype.renderSparkline=function(t){var e=this,n=this.attributes,r=n.x,i=n.y,a=n.orientation,o=(0,ab.Ys)(t).maybeAppendByClassName(om.Ec.sparklineGroup,"g");(0,aI.z)("horizontal"===a,o,function(t){var n=(0,am.pi)((0,am.pi)({},e.sparklineStyle),{x:r,y:i});t.maybeAppendByClassName(om.Ec.sparkline,function(){return new og({style:n})}).update(n)})},e.prototype.renderHandles=function(){var t,e=this,n=this.attributes,r=n.showHandle,i=n.type,a=this;null===(t=this.foregroundGroup)||void 0===t||t.selectAll(om.Ec.handle.class).data((r?"range"===i?["start","end"]:["end"]:[]).map(function(t){return{type:t}}),function(t){return t.type}).join(function(t){return t.append(function(t){var n=t.type;return new oy.H({style:e.getHandleStyle(n)})}).each(function(t){var e=t.type;this.attr("class","".concat(om.Ec.handle.name," ").concat(e,"-handle")),a["".concat(e,"Handle")]=this,this.addEventListener("pointerdown",a.onDragStart(e))})},function(t){return t.each(function(t){var e=t.type;this.update(a.getHandleStyle(e))})},function(t){return t.each(function(t){var e=t.type;a["".concat(e,"Handle")]=void 0}).remove()})},e.prototype.renderSelection=function(t){var e=this.attributes,n=e.x,r=e.y,i=e.type,a=e.selectionType;this.foregroundGroup=(0,ab.Ys)(t).maybeAppendByClassName(om.Ec.foreground,"g");var o=(0,av.zs)(this.attributes,"selection"),l=function(t){return t.style("visibility",function(t){return t.show?"visible":"hidden"}).style("cursor",function(t){return"select"===a?"grab":"invert"===a?"crosshair":"default"}).styles((0,am.pi)((0,am.pi)({},o),{transform:"translate(".concat(n,", ").concat(r,")")}))},s=this;this.foregroundGroup.selectAll(om.Ec.selection.class).data("value"===i?[]:this.calcSelectionArea().map(function(t,e){return{style:(0,am.pi)({},t),index:e,show:"select"===a?1===e:1!==e}}),function(t){return t.index}).join(function(t){return t.append("rect").attr("className",om.Ec.selection.name).call(l).each(function(t,e){var n=this;1===e?(s.selectionShape=(0,ab.Ys)(this),this.on("pointerdown",function(t){n.attr("cursor","grabbing"),s.onDragStart("selection")(t)}),s.dispatchCustomEvent(this,"pointerenter","selectionMouseenter"),s.dispatchCustomEvent(this,"pointerleave","selectionMouseleave"),s.dispatchCustomEvent(this,"click","selectionClick"),this.addEventListener("pointerdown",function(){n.attr("cursor","grabbing")}),this.addEventListener("pointerup",function(){n.attr("cursor","pointer")}),this.addEventListener("pointerover",function(){n.attr("cursor","pointer")})):this.on("pointerdown",s.onDragStart("track"))})},function(t){return t.call(l)},function(t){return t.remove()}),this.updateSelectionArea(!1),this.renderHandles()},e.prototype.render=function(t,e){this.renderTrack(e),this.renderSparkline(e),this.renderBrushArea(e),this.renderSelection(e)},e.prototype.clampValues=function(t,e){void 0===e&&(e=4);var n,r=(0,am.CR)(this.range,2),i=r[0],a=r[1],o=(0,am.CR)(this.getValues().map(function(t){return(0,a7.Zd)(t,e)}),2),l=o[0],s=o[1],c=Array.isArray(t)?t:[l,null!=t?t:s],u=(0,am.CR)((c||[l,s]).map(function(t){return(0,a7.Zd)(t,e)}),2),f=u[0],d=u[1];if("value"===this.attributes.type)return[0,(0,aM.Z)(d,i,a)];f>d&&(f=(n=(0,am.CR)([d,f],2))[0],d=n[1]);var h=d-f;return h>a-i?[i,a]:fa?s===a&&l===f?[f,a]:[a-h,a]:[f,d]},e.prototype.calcSelectionArea=function(t){var e=(0,am.CR)(this.clampValues(t),2),n=e[0],r=e[1],i=this.availableSpace,a=i.x,o=i.y,l=i.width,s=i.height;return this.getOrientVal([[{y:o,height:s,x:a,width:n*l},{y:o,height:s,x:n*l+a,width:(r-n)*l},{y:o,height:s,x:r*l,width:(1-r)*l}],[{x:a,width:l,y:o,height:n*s},{x:a,width:l,y:n*s+o,height:(r-n)*s},{x:a,width:l,y:r*s,height:(1-r)*s}]])},e.prototype.calcHandlePosition=function(t){var e=this.attributes.handleIconOffset,n=this.availableSpace,r=n.x,i=n.y,a=n.width,o=n.height,l=(0,am.CR)(this.clampValues(),2),s=l[0],c=l[1],u=("start"===t?s:c)*this.getOrientVal([a,o])+("start"===t?-e:e);return{x:r+this.getOrientVal([u,a/2]),y:i+this.getOrientVal([o/2,u])}},e.prototype.inferTextStyle=function(t){return"horizontal"===this.attributes.orientation?{}:"start"===t?{transformOrigin:"left center",transform:"rotate(90)",textAlign:"start"}:"end"===t?{transformOrigin:"right center",transform:"rotate(90)",textAlign:"end"}:{}},e.prototype.calcHandleText=function(t){var e,n=this.attributes,r=n.type,i=n.orientation,a=n.formatter,o=n.autoFitLabel,l=(0,av.zs)(this.attributes,"handle"),s=(0,av.zs)(l,"label"),c=l.spacing,u=this.getHandleSize(),f=this.clampValues(),d=a("start"===t?f[0]:f[1]),h=new a4.x({style:(0,am.pi)((0,am.pi)((0,am.pi)({},s),this.inferTextStyle(t)),{text:d})}),p=h.getBBox(),g=p.width,m=p.height;if(h.destroy(),!o){if("value"===r)return{text:d,x:0,y:-m-c};var y=c+u+("horizontal"===i?g/2:0);return(e={text:d})["horizontal"===i?"x":"y"]="start"===t?-y:y,e}var v=0,b=0,x=this.availableSpace,O=x.width,w=x.height,_=this.calcSelectionArea()[1],k=_.x,C=_.y,j=_.width,M=_.height,S=c+u;if("horizontal"===i){var A=S+g/2;v="start"===t?k-S-g>0?-A:A:O-k-j-S>g?A:-A}else{var E=m+S;b="start"===t?C-u>m?-E:S:w-(C+M)-u>m?E:-S}return{x:v,y:b,text:d}},e.prototype.getHandleLabelStyle=function(t){var e=(0,av.zs)(this.attributes,"handleLabel");return(0,am.pi)((0,am.pi)((0,am.pi)({},e),this.calcHandleText(t)),this.inferTextStyle(t))},e.prototype.getHandleIconStyle=function(){var t=this.attributes.handleIconShape,e=(0,av.zs)(this.attributes,"handleIcon"),n=this.getOrientVal(["ew-resize","ns-resize"]),r=this.getHandleSize();return(0,am.pi)({cursor:n,shape:t,size:r},e)},e.prototype.getHandleStyle=function(t){var e=this.attributes,n=e.x,r=e.y,i=e.showLabel,a=e.showLabelOnInteraction,o=e.orientation,l=this.calcHandlePosition(t),s=l.x,c=l.y,u=this.calcHandleText(t),f=i;return!i&&a&&(f=!!this.target),(0,am.pi)((0,am.pi)((0,am.pi)({},(0,av.dq)(this.getHandleIconStyle(),"icon")),(0,av.dq)((0,am.pi)((0,am.pi)({},this.getHandleLabelStyle(t)),u),"label")),{transform:"translate(".concat(s+n,", ").concat(c+r,")"),orientation:o,showLabel:f,type:t,zIndex:3})},e.prototype.getHandleSize=function(){var t=this.attributes,e=t.handleIconSize,n=t.width,r=t.height;return e||Math.floor((this.getOrientVal([+r,+n])+4)/2.4)},e.prototype.getOrientVal=function(t){var e=(0,am.CR)(t,2),n=e[0],r=e[1];return"horizontal"===this.attributes.orientation?n:r},e.prototype.setValuesOffset=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=!1);var r=this.attributes.type,i=(0,am.CR)(this.getValues(),2),a=[i[0]+("range"===r?t:0),i[1]+e].sort();n?this.setValues(a):this.innerSetValues(a,!0)},e.prototype.getRatio=function(t){var e=this.availableSpace,n=e.width,r=e.height;return t/this.getOrientVal([n,r])},e.prototype.dispatchCustomEvent=function(t,e,n){var r=this;t.on(e,function(t){t.stopPropagation(),r.dispatchEvent(new t4.Aw(n,{detail:t}))})},e.prototype.bindEvents=function(){this.addEventListener("wheel",this.onScroll);var t=this.brushArea;this.dispatchCustomEvent(t,"click","trackClick"),this.dispatchCustomEvent(t,"pointerenter","trackMouseenter"),this.dispatchCustomEvent(t,"pointerleave","trackMouseleave"),t.on("pointerdown",this.onDragStart("track"))},e.prototype.onScroll=function(t){if(this.attributes.scrollable){var e=t.deltaX,n=t.deltaY||e,r=this.getRatio(n);this.setValuesOffset(r,r,!0)}},e.tag="slider",e}(ay.w),ob=n(60954),ox=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let oO=t=>{let{orientation:e,labelFormatter:n,size:r,style:i={},position:a}=t,o=ox(t,["orientation","labelFormatter","size","style","position"]);return r=>{var l;let{scales:[s],value:c,theme:u,coordinate:f}=r,{bbox:d}=c,{width:h,height:p}=d,{slider:g={}}=u,m=(null===(l=s.getFormatter)||void 0===l?void 0:l.call(s))||(t=>t+""),y="string"==typeof n?(0,aQ.WU)(n):n,v="horizontal"===e,b=(0,Z._e)(f)&&v,{trackSize:x=g.trackSize}=i,[O,w]=function(t,e,n){let{x:r,y:i,width:a,height:o}=t;return"left"===e?[r+a-n,i]:"right"===e||"bottom"===e?[r,i]:"top"===e?[r,i+o-n]:void 0}(d,a,x);return new ov({className:"slider",style:Object.assign({},g,Object.assign(Object.assign({x:O,y:w,trackLength:v?h:p,orientation:e,formatter:t=>{let e=(0,ob.U_)(s,b?1-t:t,!0);return(y||m)(e)},sparklineData:function(t,e){let{markState:n}=e;return(0,ot.Z)(t.sparklineData)?t.sparklineData:function(t,e){let[n]=Array.from(t.entries()).filter(t=>{let[e]=t;return"line"===e.type||"area"===e.type}).map(t=>{let[n]=t,{encode:r,slider:i}=n;if((null==i?void 0:i.x)&&0===Object.keys(i.x).length)return Object.fromEntries(e.map(t=>{let e=r[t];return[t,e?e.value:void 0]}))});if(!(null==n?void 0:n.series))return null==n?void 0:n.y;let r=n.series.reduce((t,e,r)=>(t[e]=t[e]||[],t[e].push(n.y[r]),t),{});return Object.values(r)}(n,["y","series"])}(t,r)},i),o))})}};oO.props={defaultPosition:"bottom",defaultSize:24,defaultOrder:1,defaultCrossPadding:[12,12],defaultPadding:[12,12]};let ow=t=>oO(Object.assign(Object.assign({},t),{orientation:"horizontal"}));ow.props=Object.assign(Object.assign({},oO.props),{defaultPosition:"bottom"});let o_=t=>oO(Object.assign(Object.assign({},t),{orientation:"vertical"}));o_.props=Object.assign(Object.assign({},oO.props),{defaultPosition:"left"});var ok=function(t){function e(e){var n=t.call(this,e,{x:0,y:0,isRound:!0,orientation:"vertical",padding:[2,2,2,2],scrollable:!0,slidable:!0,thumbCursor:"default",trackSize:10,value:0})||this;return n.range=[0,1],n.onValueChange=function(t){var e=n.attributes.value;if(t!==e){var r={detail:{oldValue:t,value:e}};n.dispatchEvent(new t4.Aw("scroll",r)),n.dispatchEvent(new t4.Aw("valuechange",r))}},n.onTrackClick=function(t){if(n.attributes.slidable){var e=(0,am.CR)(n.getLocalPosition(),2),r=e[0],i=e[1],a=(0,am.CR)(n.padding,4),o=a[0],l=a[3],s=n.getOrientVal([r+l,i+o]),c=(n.getOrientVal((0,a8.s)(t))-s)/n.trackLength;n.setValue(c,!0)}},n.onThumbMouseenter=function(t){n.dispatchEvent(new t4.Aw("thumbMouseenter",{detail:t.detail}))},n.onTrackMouseenter=function(t){n.dispatchEvent(new t4.Aw("trackMouseenter",{detail:t.detail}))},n.onThumbMouseleave=function(t){n.dispatchEvent(new t4.Aw("thumbMouseleave",{detail:t.detail}))},n.onTrackMouseleave=function(t){n.dispatchEvent(new t4.Aw("trackMouseleave",{detail:t.detail}))},n}return(0,am.ZT)(e,t),Object.defineProperty(e.prototype,"padding",{get:function(){var t=this.attributes.padding;return(0,aZ.j)(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){var t=this.attributes.value,e=(0,am.CR)(this.range,2),n=e[0],r=e[1];return(0,aM.Z)(t,n,r)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackLength",{get:function(){var t=this.attributes,e=t.viewportLength,n=t.trackLength;return void 0===n?e:n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableSpace",{get:function(){var t=this.attributes.trackSize,e=this.trackLength,n=(0,am.CR)(this.padding,4),r=n[0],i=n[1],a=n[2],o=n[3],l=(0,am.CR)(this.getOrientVal([[e,t],[t,e]]),2);return{x:o,y:r,width:+l[0]-(o+i),height:+l[1]-(r+a)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackRadius",{get:function(){var t=this.attributes,e=t.isRound,n=t.trackSize;return e?n/2:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"thumbRadius",{get:function(){var t=this.attributes,e=t.isRound,n=t.thumbRadius;if(!e)return 0;var r=this.availableSpace,i=r.width,a=r.height;return n||this.getOrientVal([a,i])/2},enumerable:!1,configurable:!0}),e.prototype.getValues=function(t){void 0===t&&(t=this.value);var e=this.attributes,n=e.viewportLength/e.contentLength,r=(0,am.CR)(this.range,2),i=r[0],a=t*(r[1]-i-n);return[a,a+n]},e.prototype.getValue=function(){return this.value},e.prototype.renderSlider=function(t){var e=this.attributes,n=e.x,r=e.y,i=e.orientation,a=e.trackSize,o=e.padding,l=e.slidable,s=(0,av.zs)(this.attributes,"track"),c=(0,av.zs)(this.attributes,"thumb"),u=(0,am.pi)((0,am.pi)({x:n,y:r,brushable:!1,orientation:i,padding:o,selectionRadius:this.thumbRadius,showHandle:!1,slidable:l,trackLength:this.trackLength,trackRadius:this.trackRadius,trackSize:a,values:this.getValues()},(0,av.dq)(s,"track")),(0,av.dq)(c,"selection"));this.slider=(0,ab.Ys)(t).maybeAppendByClassName("scrollbar",function(){return new ov({style:u})}).update(u).node()},e.prototype.render=function(t,e){this.renderSlider(e)},e.prototype.setValue=function(t,e){void 0===e&&(e=!1);var n=this.attributes.value,r=(0,am.CR)(this.range,2),i=r[0],a=r[1];this.slider.setValues(this.getValues((0,aM.Z)(t,i,a)),e),this.onValueChange(n)},e.prototype.bindEvents=function(){var t=this;this.slider.addEventListener("trackClick",function(e){e.stopPropagation(),t.onTrackClick(e.detail)}),this.onHover()},e.prototype.getOrientVal=function(t){return"horizontal"===this.attributes.orientation?t[0]:t[1]},e.prototype.onHover=function(){this.slider.addEventListener("selectionMouseenter",this.onThumbMouseenter),this.slider.addEventListener("trackMouseenter",this.onTrackMouseenter),this.slider.addEventListener("selectionMouseleave",this.onThumbMouseleave),this.slider.addEventListener("trackMouseleave",this.onTrackMouseleave)},e.tag="scrollbar",e}(ay.w),oC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let oj=t=>{let{orientation:e,labelFormatter:n,style:r}=t,i=oC(t,["orientation","labelFormatter","style"]);return t=>{let{scales:[n],value:a,theme:o}=t,{bbox:l}=a,{x:s,y:c,width:u,height:f}=l,{scrollbar:d={}}=o,{ratio:h,range:p}=n.getOptions(),g="horizontal"===e?u:f,[m,y]=p;return new ok({className:"g2-scrollbar",style:Object.assign({},d,Object.assign(Object.assign(Object.assign(Object.assign({},r),{x:s,y:c,trackLength:g,value:y>m?0:1}),i),{orientation:e,contentLength:g/h,viewportLength:g}))})}};oj.props={defaultPosition:"bottom",defaultSize:24,defaultOrder:1,defaultCrossPadding:[12,12],defaultPadding:[12,12]};let oM=t=>oj(Object.assign(Object.assign({},t),{orientation:"horizontal"}));oM.props=Object.assign(Object.assign({},oj.props),{defaultPosition:"bottom"});let oS=t=>oj(Object.assign(Object.assign({},t),{orientation:"vertical"}));oS.props=Object.assign(Object.assign({},oj.props),{defaultPosition:"left"});let oA=(t,e)=>{let{coordinate:n}=e;return(e,r,i)=>{let[a]=e,{transform:o="",fillOpacity:l=1,strokeOpacity:s=1,opacity:c=1}=a.style,[u,f]=(0,Z._e)(n)?["left bottom","scale(1, ".concat(1e-4,")")]:["left top","scale(".concat(1e-4,", 1)")],d=[{transform:"".concat(o," ").concat(f).trimStart(),transformOrigin:u,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:"".concat(o," ").concat(f).trimStart(),transformOrigin:u,fillOpacity:l,strokeOpacity:s,opacity:c,offset:.01},{transform:"".concat(o," scale(1, 1)").trimStart(),transformOrigin:u,fillOpacity:l,strokeOpacity:s,opacity:c}],h=a.animate(d,Object.assign(Object.assign({},i),t));return h}},oE=(t,e)=>{let{coordinate:n}=e;return(e,r,i)=>{let[a]=e,{transform:o="",fillOpacity:l=1,strokeOpacity:s=1,opacity:c=1}=a.style,[u,f]=(0,Z._e)(n)?["left bottom","scale(1, ".concat(1e-4,")")]:["left top","scale(".concat(1e-4,", 1)")],d=[{transform:"".concat(o," scale(1, 1)").trimStart(),transformOrigin:u},{transform:"".concat(o," ").concat(f).trimStart(),transformOrigin:u,fillOpacity:l,strokeOpacity:s,opacity:c,offset:.99},{transform:"".concat(o," ").concat(f).trimStart(),transformOrigin:u,fillOpacity:0,strokeOpacity:0,opacity:0}],h=a.animate(d,Object.assign(Object.assign({},i),t));return h}},oP=(t,e)=>{let{coordinate:n}=e;return t4.ux.registerProperty({name:"scaleInYRadius",inherits:!1,initialValue:"",interpolable:!0,syntax:t4.h0.NUMBER}),(e,r,i)=>{let[a]=e;return(0,Z.Z0)(n)?(e=>{let{__data__:r,style:a}=e,{radius:o=0,inset:l=0,fillOpacity:s=1,strokeOpacity:c=1,opacity:u=1}=a,{points:f,y:d,y1:h}=r,p=(0,N._x)(n,f,[d,h]),{innerRadius:g,outerRadius:m}=p,y=(0,nJ.Z)().cornerRadius(o).padAngle(l*Math.PI/180),v=new t4.y$({}),b=t=>{v.attr({d:y(t)});let e=(0,t4.YR)(v);return e},x=e.animate([{scaleInYRadius:g+1e-4,fillOpacity:0,strokeOpacity:0,opacity:0},{scaleInYRadius:g+1e-4,fillOpacity:s,strokeOpacity:c,opacity:u,offset:.01},{scaleInYRadius:m,fillOpacity:s,strokeOpacity:c,opacity:u}],Object.assign(Object.assign({},i),t));return x.onframe=function(){e.style.d=b(Object.assign(Object.assign({},p),{outerRadius:Number(e.style.scaleInYRadius)}))},x.onfinish=function(){e.style.d=b(Object.assign(Object.assign({},p),{outerRadius:m}))},x})(a):(e=>{let{style:r}=e,{transform:a="",fillOpacity:o=1,strokeOpacity:l=1,opacity:s=1}=r,[c,u]=(0,Z._e)(n)?["left top","scale(".concat(1e-4,", 1)")]:["left bottom","scale(1, ".concat(1e-4,")")],f=[{transform:"".concat(a," ").concat(u).trimStart(),transformOrigin:c,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:"".concat(a," ").concat(u).trimStart(),transformOrigin:c,fillOpacity:o,strokeOpacity:l,opacity:s,offset:.01},{transform:"".concat(a," scale(1, 1)").trimStart(),transformOrigin:c,fillOpacity:o,strokeOpacity:l,opacity:s}],d=e.animate(f,Object.assign(Object.assign({},i),t));return d})(a)}},oR=(t,e)=>{let{coordinate:n}=e;return(e,r,i)=>{let[a]=e,{transform:o="",fillOpacity:l=1,strokeOpacity:s=1,opacity:c=1}=a.style,[u,f]=(0,Z._e)(n)?["left top","scale(".concat(1e-4,", 1)")]:["left bottom","scale(1, ".concat(1e-4,")")],d=[{transform:"".concat(o," scale(1, 1)").trimStart(),transformOrigin:u},{transform:"".concat(o," ").concat(f).trimStart(),transformOrigin:u,fillOpacity:l,strokeOpacity:s,opacity:c,offset:.99},{transform:"".concat(o," ").concat(f).trimStart(),transformOrigin:u,fillOpacity:0,strokeOpacity:0,opacity:0}],h=a.animate(d,Object.assign(Object.assign({},i),t));return h}},oT=(t,e)=>{t4.ux.registerProperty({name:"waveInArcAngle",inherits:!1,initialValue:"",interpolable:!0,syntax:t4.h0.NUMBER});let{coordinate:n}=e;return(r,i,a)=>{let[o]=r;if(!(0,Z.Z0)(n))return oA(t,e)(r,i,a);let{__data__:l,style:s}=o,{radius:c=0,inset:u=0,fillOpacity:f=1,strokeOpacity:d=1,opacity:h=1}=s,{points:p,y:g,y1:m}=l,y=(0,nJ.Z)().cornerRadius(c).padAngle(u*Math.PI/180),v=(0,N._x)(n,p,[g,m]),{startAngle:b,endAngle:x}=v,O=o.animate([{waveInArcAngle:b+1e-4,fillOpacity:0,strokeOpacity:0,opacity:0},{waveInArcAngle:b+1e-4,fillOpacity:f,strokeOpacity:d,opacity:h,offset:.01},{waveInArcAngle:x,fillOpacity:f,strokeOpacity:d,opacity:h}],Object.assign(Object.assign({},a),t));return O.onframe=function(){o.style.d=y(Object.assign(Object.assign({},v),{endAngle:Number(o.style.waveInArcAngle)}))},O.onfinish=function(){o.style.d=y(Object.assign(Object.assign({},v),{endAngle:x}))},O}};oT.props={};let oL=t=>(e,n,r)=>{let[i]=e,{fillOpacity:a=1,strokeOpacity:o=1,opacity:l=1}=i.style,s=[{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:a,strokeOpacity:o,opacity:l}];return i.animate(s,Object.assign(Object.assign({},r),t))};oL.props={};let oB=t=>(e,n,r)=>{let[i]=e,{fillOpacity:a=1,strokeOpacity:o=1,opacity:l=1}=i.style,s=[{fillOpacity:a,strokeOpacity:o,opacity:l},{fillOpacity:0,strokeOpacity:0,opacity:0}];return i.animate(s,Object.assign(Object.assign({},r),t))};oB.props={};let oZ=t=>(e,n,r)=>{let[i]=e,{transform:a="",fillOpacity:o=1,strokeOpacity:l=1,opacity:s=1}=i.style,c="center center",u=[{transform:"".concat(a," scale(").concat(1e-4,")").trimStart(),transformOrigin:c,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:"".concat(a," scale(").concat(1e-4,")").trimStart(),transformOrigin:c,fillOpacity:o,strokeOpacity:l,opacity:s,offset:.01},{transform:"".concat(a," scale(1)").trimStart(),transformOrigin:c,fillOpacity:o,strokeOpacity:l,opacity:s}],f=i.animate(u,Object.assign(Object.assign({},r),t));return f},oI=t=>(e,n,r)=>{let[i]=e,{transform:a="",fillOpacity:o=1,strokeOpacity:l=1,opacity:s=1}=i.style,c="center center",u=[{transform:"".concat(a," scale(1)").trimStart(),transformOrigin:c},{transform:"".concat(a," scale(").concat(1e-4,")").trimStart(),transformOrigin:c,fillOpacity:o,strokeOpacity:l,opacity:s,offset:.99},{transform:"".concat(a," scale(").concat(1e-4,")").trimStart(),transformOrigin:c,fillOpacity:0,strokeOpacity:0,opacity:0}],f=i.animate(u,Object.assign(Object.assign({},r),t));return f},oN=t=>(e,n,r)=>{var i;let[a]=e,o=(null===(i=a.getTotalLength)||void 0===i?void 0:i.call(a))||0,l=[{lineDash:[0,o]},{lineDash:[o,0]}];return a.animate(l,Object.assign(Object.assign({},r),t))};oN.props={};let oD={opacity:1,strokeOpacity:1,fillOpacity:1,lineWidth:0,x:0,y:0,cx:0,cy:0,r:0,rx:0,ry:0,width:0,height:0},oz={[t4.bn.CIRCLE]:["cx","cy","r"],[t4.bn.ELLIPSE]:["cx","cy","rx","ry"],[t4.bn.RECT]:["x","y","width","height"],[t4.bn.IMAGE]:["x","y","width","height"],[t4.bn.LINE]:["x1","y1","x2","y2"],[t4.bn.POLYLINE]:["points"],[t4.bn.POLYGON]:["points"]};function oF(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r={};for(let i of e){let e=t.style[i];e?r[i]=e:n&&(r[i]=oD[i])}return r}let o$=["fill","stroke","fillOpacity","strokeOpacity","opacity","lineWidth"];function oW(t){let{min:e,max:n}=t.getLocalBounds(),[r,i]=e,[a,o]=n;return[r,i,a-r,o-i]}function oH(t,e){let[n,r,i,a]=oW(t),o=Math.ceil(Math.sqrt(e/(a/i))),l=Math.ceil(e/o),s=[],c=a/l,u=0,f=e;for(;f>0;){let t=Math.min(f,o),e=i/t;for(let i=0;i{let t=c.style.d;(0,H.DM)(c,n),c.style.d=t,c.style.transform="none"},c.style.transform="none",t}return null}let oU=t=>(e,n,r)=>{let i=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pack";return"function"==typeof t?t:oH}(t.split),a=Object.assign(Object.assign({},r),t),{length:o}=e,{length:l}=n;if(1===o&&1===l||o>1&&l>1){let[t]=e,[r]=n;return oV(t,t,r,a)}if(1===o&&l>1){let[t]=e;return function(t,e,n,r){t.style.visibility="hidden";let i=r(t,e.length);return e.map((e,r)=>{let a=new t4.y$({style:Object.assign({d:i[r]},oF(t,o$))});return oV(e,a,e,n)})}(t,n,a,i)}if(o>1&&1===l){let[t]=n;return function(t,e,n,r){let i=r(e,t.length),{fillOpacity:a=1,strokeOpacity:o=1,opacity:l=1}=e.style,s=e.animate([{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:0,strokeOpacity:0,opacity:0,offset:.99},{fillOpacity:a,strokeOpacity:o,opacity:l}],n),c=t.map((t,r)=>{let a=new t4.y$({style:{d:i[r],fill:e.style.fill}});return oV(t,t,a,n)});return[...c,s]}(e,t,a,i)}return null};oU.props={};let oQ=(t,e)=>(n,r,i)=>{let[a]=n,{min:[o,l],halfExtents:s}=a.getLocalBounds(),c=2*s[0],u=2*s[1],f=new t4.y$({style:{d:"M".concat(o,",").concat(l,"L").concat(o+c,",").concat(l,"L").concat(o+c,",").concat(l+u,"L").concat(o,",").concat(l+u,"Z")}});a.appendChild(f),a.style.clipPath=f;let d=oA(t,e)([f],r,i);return d};oQ.props={};let oK=(t,e)=>(n,r,i)=>{let[a]=n,{min:[o,l],halfExtents:s}=a.getLocalBounds(),c=2*s[0],u=2*s[1],f=new t4.y$({style:{d:"M".concat(o,",").concat(l,"L").concat(o+c,",").concat(l,"L").concat(o+c,",").concat(l+u,"L").concat(o,",").concat(l+u,"Z")}});a.appendChild(f),a.style.clipPath=f;let d=oP(t,e)([f],r,i);return d};oK.props={};var oX=n(65611),oJ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function o0(t){var{delay:e,createGroup:n,background:r=!1,link:i=!1}=t,a=oJ(t,["delay","createGroup","background","link"]);return(t,o,l)=>{let{container:s,view:c,options:u}=t,{scale:f,coordinate:d}=c,h=(0,oX.Ks)(s);return function(t,e){var n;let r,{elements:i,datum:a,groupKey:o=t=>t,link:l=!1,background:s=!1,delay:c=60,scale:u,coordinate:f,emitter:d,state:h={}}=e,p=i(t),g=new Set(p),m=(0,tp.ZP)(p,o),y=(0,oX.B1)(p,a),[v,x]=(0,oX.KJ)(Object.assign({elements:p,valueof:y,link:l,coordinate:f},(0,H.hB)(h.active,"link"))),[O,w,_]=(0,oX.TQ)(Object.assign({document:t.ownerDocument,scale:u,coordinate:f,background:s,valueof:y},(0,H.hB)(h.active,"background"))),k=(0,b.Z)(h,{active:Object.assign({},(null===(n=h.active)||void 0===n?void 0:n.offset)&&{transform:function(){for(var t=arguments.length,e=Array(t),n=0;n{let{target:e,nativeEvent:n=!0}=t;if(!g.has(e))return;r&&clearTimeout(r);let i=o(e),l=m.get(i),s=new Set(l);for(let t of p)s.has(t)?M(t,"active")||C(t,"active"):(C(t,"inactive"),x(t)),t!==e&&w(t);O(e),v(l),n&&d.emit("element:highlight",{nativeEvent:n,data:{data:a(e),group:l.map(a)}})},A=()=>{r&&clearTimeout(r),r=setTimeout(()=>{E(),r=null},c)},E=function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];for(let t of p)j(t,"active","inactive"),w(t),x(t);t&&d.emit("element:unhighlight",{nativeEvent:t})},P=t=>{let{target:e}=t;(!s||_(e))&&(s||g.has(e))&&(c>0?A():E())},R=()=>{E()};t.addEventListener("pointerover",S),t.addEventListener("pointerout",P),t.addEventListener("pointerleave",R);let T=t=>{let{nativeEvent:e}=t;e||E(!1)},L=t=>{let{nativeEvent:e}=t;if(e)return;let{data:n}=t.data,r=(0,oX.k5)(p,n,a);r&&S({target:r,nativeEvent:!1})};return d.on("element:highlight",L),d.on("element:unhighlight",T),()=>{for(let e of(t.removeEventListener("pointerover",S),t.removeEventListener("pointerout",P),t.removeEventListener("pointerleave",R),d.off("element:highlight",L),d.off("element:unhighlight",T),p))w(e),x(e)}}(h,Object.assign({elements:oX.A9,datum:(0,oX.d2)(c),groupKey:n?n(c):void 0,coordinate:d,scale:f,state:(0,oX.AN)(u,[["active",r?{}:{lineWidth:"1",stroke:"#000"}],"inactive"]),background:r,link:i,delay:e,emitter:l},a))}}function o1(t){return o0(Object.assign(Object.assign({},t),{createGroup:oX.TL}))}function o2(t){return o0(Object.assign(Object.assign({},t),{createGroup:oX.jH}))}o0.props={reapplyWhenUpdate:!0},o1.props={reapplyWhenUpdate:!0},o2.props={reapplyWhenUpdate:!0};var o5=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function o3(t){var{createGroup:e,background:n=!1,link:r=!1}=t,i=o5(t,["createGroup","background","link"]);return(t,a,o)=>{let{container:l,view:s,options:c}=t,{coordinate:u,scale:f}=s,d=(0,oX.Ks)(l);return function(t,e){var n;let{elements:r,datum:i,groupKey:a=t=>t,link:o=!1,single:l=!1,coordinate:s,background:c=!1,scale:u,emitter:f,state:d={}}=e,h=r(t),p=new Set(h),g=(0,tp.ZP)(h,a),m=(0,oX.B1)(h,i),[y,v]=(0,oX.KJ)(Object.assign({link:o,elements:h,valueof:m,coordinate:s},(0,H.hB)(d.selected,"link"))),[x,O]=(0,oX.TQ)(Object.assign({document:t.ownerDocument,background:c,coordinate:s,scale:u,valueof:m},(0,H.hB)(d.selected,"background"))),w=(0,b.Z)(d,{selected:Object.assign({},(null===(n=d.selected)||void 0===n?void 0:n.offset)&&{transform:function(){for(var t=arguments.length,e=Array(t),n=0;n0)||void 0===arguments[0]||arguments[0];for(let t of h)k(t,"selected","unselected"),v(t),O(t);t&&f.emit("element:unselect",{nativeEvent:!0})},M=function(t,e){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(C(e,"selected"))j();else{let r=a(e),o=g.get(r),l=new Set(o);for(let t of h)l.has(t)?_(t,"selected"):(_(t,"unselected"),v(t)),t!==e&&O(t);if(y(o),x(e),!n)return;f.emit("element:select",Object.assign(Object.assign({},t),{nativeEvent:n,data:{data:[i(e),...o.map(i)]}}))}},S=function(t,e){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=a(e),l=g.get(r),s=new Set(l);if(C(e,"selected")){let t=h.some(t=>!s.has(t)&&C(t,"selected"));if(!t)return j();for(let t of l)_(t,"unselected"),v(t),O(t)}else{let t=l.some(t=>C(t,"selected"));for(let t of h)s.has(t)?_(t,"selected"):C(t,"selected")||_(t,"unselected");!t&&o&&y(l),x(e)}n&&f.emit("element:select",Object.assign(Object.assign({},t),{nativeEvent:n,data:{data:h.filter(t=>C(t,"selected")).map(i)}}))},A=t=>{let{target:e,nativeEvent:n=!0}=t;return p.has(e)?l?M(t,e,n):S(t,e,n):j()};t.addEventListener("click",A);let E=t=>{let{nativeEvent:e,data:n}=t;if(e)return;let r=l?n.data.slice(0,1):n.data;for(let t of r){let e=(0,oX.k5)(h,t,i);A({target:e,nativeEvent:!1})}},P=()=>{j(!1)};return f.on("element:select",E),f.on("element:unselect",P),()=>{for(let t of h)v(t);t.removeEventListener("click",A),f.off("element:select",E),f.off("element:unselect",P)}}(d,Object.assign({elements:oX.A9,datum:(0,oX.d2)(s),groupKey:e?e(s):void 0,coordinate:u,scale:f,state:(0,oX.AN)(c,[["selected",n?{}:{lineWidth:"1",stroke:"#000"}],"unselected"]),background:n,link:r,emitter:o},i))}}function o6(t){return o3(Object.assign(Object.assign({},t),{createGroup:oX.TL}))}function o4(t){return o3(Object.assign(Object.assign({},t),{createGroup:oX.jH}))}o3.props={reapplyWhenUpdate:!0},o6.props={reapplyWhenUpdate:!0},o4.props={reapplyWhenUpdate:!0};var o8=n(99711);function o7(t){let{wait:e=30,leading:n,trailing:r=!1}=t;return t=>{let{options:i,update:a,setState:o,container:l}=t,s=(0,oX.Ks)(l),c=(0,o8.Z)(t=>{let e=(0,oX.Sv)(s,t);if(!e){o("fisheye"),a();return}o("fisheye",t=>{let n=(0,b.Z)({},t,{interaction:{tooltip:{preserve:!0}}});for(let t of n.marks)t.animate=!1;let[r,i]=e,a=function(t){let{coordinate:e={}}=t,{transform:n=[]}=e,r=n.find(t=>"fisheye"===t.type);if(r)return r;let i={type:"fisheye"};return n.push(i),e.transform=n,t.coordinate=e,i}(n);return a.focusX=r,a.focusY=i,a.visual=!0,n}),a()},e,{leading:n,trailing:r});return s.addEventListener("pointerenter",c),s.addEventListener("pointermove",c),s.addEventListener("pointerleave",c),()=>{s.removeEventListener("pointerenter",c),s.removeEventListener("pointermove",c),s.removeEventListener("pointerleave",c)}}}var o9=n(80732),lt=n(44355),le=n(29173),ln=n(83190),lr=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function li(t){var{wait:e=20,leading:n,trailing:r=!1,labelFormatter:i=t=>"".concat(t)}=t,a=lr(t,["wait","leading","trailing","labelFormatter"]);return t=>{let o;let{view:l,container:s,update:c,setState:u}=t,{markState:f,scale:d,coordinate:h}=l,p=function(t,e,n){let[r]=Array.from(t.entries()).filter(t=>{let[n]=t;return n.type===e}).map(t=>{let[e]=t,{encode:r}=e;return Object.fromEntries(n.map(t=>{let e=r[t];return[t,e?e.value:void 0]}))});return r}(f,"line",["x","y","series"]);if(!p)return;let{y:g,x:m,series:y=[]}=p,v=g.map((t,e)=>e),x=(0,o9.Z)(v.map(t=>m[t])),O=(0,oX.Ks)(s),w=s.getElementsByClassName(ln.Tt),_=s.getElementsByClassName(ln.fw),k=(0,tp.ZP)(_,t=>t.__data__.key.split("-")[0]),C=new t4.x1({style:Object.assign({x1:0,y1:0,x2:0,y2:O.getAttribute("height"),stroke:"black",lineWidth:1},(0,H.hB)(a,"rule"))}),j=new t4.xv({style:Object.assign({x:0,y:O.getAttribute("height"),text:"",fontSize:10},(0,H.hB)(a,"label"))});C.append(j),O.appendChild(C);let M=(t,e,n)=>{let[r]=t.invert(n),i=e.invert(r);return x[(0,lt.ZR)(x,i)]},S=(t,e)=>{C.setAttribute("x1",t[0]),C.setAttribute("x2",t[0]),j.setAttribute("text",i(e))},A=t=>{let{scale:e,coordinate:n}=o,{x:r,y:i}=e,a=M(n,r,t);for(let e of(S(t,a),w)){let{seriesIndex:t,key:r}=e.__data__,o=t[(0,le.Z)(t=>m[+t]).center(t,a)],l=[0,i.map(1)],s=[0,i.map(g[o]/g[t[0]])],[,c]=n.map(l),[,u]=n.map(s),f=c-u;e.setAttribute("transform","translate(0, ".concat(f,")"));let d=k.get(r)||[];for(let t of d)t.setAttribute("dy",f)}},E=(0,o8.Z)(t=>{let e=(0,oX.Sv)(O,t);e&&A(e)},e,{leading:n,trailing:r});return(t=>{var e,n,r,i;return e=this,n=void 0,r=void 0,i=function*(){let{x:e}=d,n=M(h,e,t);S(t,n),u("chartIndex",t=>{let e=(0,b.Z)({},t),r=e.marks.find(t=>"line"===t.type),i=(0,rS.Z)((0,tp.jJ)(v,t=>(0,rS.Z)(t,t=>+g[t])/(0,rM.Z)(t,t=>+g[t]),t=>y[t]).values());(0,b.Z)(r,{scale:{y:{domain:[1/i,i]}}});let a=function(t){let{transform:e=[]}=t,n=e.find(t=>"normalizeY"===t.type);if(n)return n;let r={type:"normalizeY"};return e.push(r),t.transform=e,r}(r);for(let t of(a.groupBy="color",a.basis=(t,e)=>{let r=t[(0,le.Z)(t=>m[+t]).center(t,n)];return e[r]},e.marks))t.animate=!1;return e});let r=yield c("chartIndex");o=r.view},new(r||(r=Promise))(function(t,a){function o(t){try{s(i.next(t))}catch(t){a(t)}}function l(t){try{s(i.throw(t))}catch(t){a(t)}}function s(e){var n;e.done?t(e.value):((n=e.value)instanceof r?n:new r(function(t){t(n)})).then(o,l)}s((i=i.apply(e,n||[])).next())})})([0,0]),O.addEventListener("pointerenter",E),O.addEventListener("pointermove",E),O.addEventListener("pointerleave",E),()=>{C.remove(),O.removeEventListener("pointerenter",E),O.removeEventListener("pointermove",E),O.removeEventListener("pointerleave",E)}}}function la(t,e){let n;let r=-1,i=-1;if(void 0===e)for(let e of t)++i,null!=e&&(n>e||void 0===n&&e>=e)&&(n=e,r=i);else for(let a of t)null!=(a=e(a,++i,t))&&(n>a||void 0===n&&a>=a)&&(n=a,r=i);return r}function lo(t,e){let n=0,r=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(++n,r+=e);else{let i=-1;for(let a of t)null!=(a=e(a,++i,t))&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}li.props={reapplyWhenUpdate:!0};var ll=n(73576),ls=n(88204),lc=n(68856);function lu(t){return void 0===t&&(t=""),{CONTAINER:"".concat(t,"tooltip"),TITLE:"".concat(t,"tooltip-title"),LIST:"".concat(t,"tooltip-list"),LIST_ITEM:"".concat(t,"tooltip-list-item"),NAME:"".concat(t,"tooltip-list-item-name"),MARKER:"".concat(t,"tooltip-list-item-marker"),NAME_LABEL:"".concat(t,"tooltip-list-item-name-label"),VALUE:"".concat(t,"tooltip-list-item-value"),CROSSHAIR_X:"".concat(t,"tooltip-crosshair-x"),CROSSHAIR_Y:"".concat(t,"tooltip-crosshair-y")}}var lf={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"},ld=function(t){function e(e){var n,r,i,a,o,l=this,s=null===(o=null===(a=e.style)||void 0===a?void 0:a.template)||void 0===o?void 0:o.prefixCls,c=lu(s);return(l=t.call(this,e,{data:[],x:0,y:0,visibility:"visible",title:"",position:"bottom-right",offset:[5,5],enterable:!1,container:{x:0,y:0},bounding:null,template:{prefixCls:"",container:'
'),title:'
'),item:'
  • \n \n \n {name}\n \n {value}\n
  • ')},style:(void 0===(n=s)&&(n=""),i=lu(n),(r={})[".".concat(i.CONTAINER)]={position:"absolute",visibility:"visible","z-index":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)","background-color":"rgba(255, 255, 255, 0.96)","box-shadow":"0 6px 12px 0 rgba(0, 0, 0, 0.12)","border-radius":"4px",color:"rgba(0, 0, 0, 0.65)","font-size":"12px","line-height":"20px",padding:"12px","min-width":"120px","max-width":"360px","font-family":"Roboto-Regular"},r[".".concat(i.TITLE)]={color:"rgba(0, 0, 0, 0.45)"},r[".".concat(i.LIST)]={margin:"0px","list-style-type":"none",padding:"0px"},r[".".concat(i.LIST_ITEM)]={"list-style-type":"none",display:"flex","line-height":"2em","align-items":"center","justify-content":"space-between","white-space":"nowrap"},r[".".concat(i.MARKER)]={width:"8px",height:"8px","border-radius":"50%",display:"inline-block","margin-right":"4px"},r[".".concat(i.NAME)]={display:"flex","align-items":"center","max-width":"216px"},r[".".concat(i.NAME_LABEL)]=(0,am.pi)({flex:1},lf),r[".".concat(i.VALUE)]=(0,am.pi)({display:"inline-block",float:"right",flex:1,"text-align":"right","min-width":"28px","margin-left":"30px",color:"rgba(0, 0, 0, 0.85)"},lf),r[".".concat(i.CROSSHAIR_X)]={position:"absolute",width:"1px","background-color":"rgba(0, 0, 0, 0.25)"},r[".".concat(i.CROSSHAIR_Y)]={position:"absolute",height:"1px","background-color":"rgba(0, 0, 0, 0.25)"},r)})||this).timestamp=-1,l.prevCustomContentKey=l.attributes.contentKey,l.initShape(),l.render(l.attributes,l),l}return(0,am.ZT)(e,t),Object.defineProperty(e.prototype,"HTMLTooltipElement",{get:function(){return this.element},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.element},Object.defineProperty(e.prototype,"elementSize",{get:function(){return{width:this.element.offsetWidth,height:this.element.offsetHeight}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HTMLTooltipItemsElements",{get:function(){var t=this.attributes,e=t.data,n=t.template;return e.map(function(t,e){var r=t.name,i=t.color,a=t.index,o=(0,am._T)(t,["name","color","index"]),l=(0,am.pi)({name:void 0===r?"":r,color:void 0===i?"black":i,index:null!=a?a:e},o);return(0,ls.L)((0,lc.Z)(n.item,l))})},enumerable:!1,configurable:!0}),e.prototype.render=function(t,e){this.renderHTMLTooltipElement(),this.updatePosition()},e.prototype.destroy=function(){var e;null===(e=this.element)||void 0===e||e.remove(),t.prototype.destroy.call(this)},e.prototype.show=function(t,e){var n=this;if(void 0!==t&&void 0!==e){var r="hidden"===this.element.style.visibility,i=function(){n.attributes.x=null!=t?t:n.attributes.x,n.attributes.y=null!=e?e:n.attributes.y,n.updatePosition()};r?this.closeTransition(i):i()}this.element.style.visibility="visible"},e.prototype.hide=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.attributes.enterable&&this.isCursorEntered(t,e)||(this.element.style.visibility="hidden")},e.prototype.initShape=function(){var t=this.attributes.template;this.element=(0,ls.L)(t.container),this.id&&this.element.setAttribute("id",this.id)},e.prototype.renderCustomContent=function(){if(void 0===this.prevCustomContentKey||this.prevCustomContentKey!==this.attributes.contentKey){this.prevCustomContentKey=this.attributes.contentKey;var t=this.attributes.content;t&&("string"==typeof t?this.element.innerHTML=t:this.element.replaceChildren(t))}},e.prototype.renderHTMLTooltipElement=function(){var t,e,n=this.attributes,r=n.template,i=n.title,a=n.enterable,o=n.style,l=n.content,s=lu(r.prefixCls),c=this.element;if(this.element.style.pointerEvents=a?"auto":"none",l)this.renderCustomContent();else{i?(c.innerHTML=r.title,c.getElementsByClassName(s.TITLE)[0].innerHTML=i):null===(e=null===(t=c.getElementsByClassName(s.TITLE))||void 0===t?void 0:t[0])||void 0===e||e.remove();var u=this.HTMLTooltipItemsElements,f=document.createElement("ul");f.className=s.LIST,f.replaceChildren.apply(f,(0,am.ev)([],(0,am.CR)(u),!1));var d=this.element.querySelector(".".concat(s.LIST));d?d.replaceWith(f):c.appendChild(f)}(0,av.MC)(c,o)},e.prototype.getRelativeOffsetFromCursor=function(t){var e=this.attributes,n=e.position,r=e.offset,i=(t||n).split("-"),a={left:[-1,0],right:[1,0],top:[0,-1],bottom:[0,1]},o=this.elementSize,l=o.width,s=o.height,c=[-l/2,-s/2];return i.forEach(function(t){var e=(0,am.CR)(c,2),n=e[0],i=e[1],o=(0,am.CR)(a[t],2),u=o[0],f=o[1];c=[n+(l/2+r[0])*u,i+(s/2+r[1])*f]}),c},e.prototype.setOffsetPosition=function(t){var e=(0,am.CR)(t,2),n=e[0],r=e[1],i=this.attributes,a=i.x,o=i.y,l=i.container,s=l.x,c=l.y;this.element.style.left="".concat(+(void 0===a?0:a)+s+n,"px"),this.element.style.top="".concat(+(void 0===o?0:o)+c+r,"px")},e.prototype.updatePosition=function(){var t=this.attributes.showDelay,e=Date.now();this.timestamp>0&&e-this.timestamp<(void 0===t?60:t)||(this.timestamp=e,this.setOffsetPosition(this.autoPosition(this.getRelativeOffsetFromCursor())))},e.prototype.autoPosition=function(t){var e=(0,am.CR)(t,2),n=e[0],r=e[1],i=this.attributes,a=i.x,o=i.y,l=i.bounding,s=i.position;if(!l)return[n,r];var c=this.element,u=c.offsetWidth,f=c.offsetHeight,d=(0,am.CR)([+a+n,+o+r],2),h=d[0],p=d[1],g={left:"right",right:"left",top:"bottom",bottom:"top"},m=l.x,y=l.y,v={left:hm+l.width,top:py+l.height},b=[];s.split("-").forEach(function(t){v[t]?b.push(g[t]):b.push(t)});var x=b.join("-");return this.getRelativeOffsetFromCursor(x)},e.prototype.isCursorEntered=function(t,e){if(this.element){var n=this.element.getBoundingClientRect(),r=n.x,i=n.y,a=n.width,o=n.height;return new ax.b(r,i,a,o).isPointIn(t,e)}return!1},e.prototype.closeTransition=function(t){var e=this,n=this.element.style.transition;this.element.style.transition="none",t(),setTimeout(function(){e.element.style.transition=n},10)},e.tag="tooltip",e}(ay.w),lh=n(14121),lp=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function lg(t,e){if(e)return"string"==typeof e?document.querySelector(e):e;let n=t.ownerDocument.defaultView.getContextService().getDomElement();return n.parentElement}function lm(t){let{root:e,data:n,x:r,y:i,render:a,event:o,single:l,position:s="right-bottom",enterable:c=!1,css:u,mount:f,bounding:d}=t,h=lg(e,f),p=lg(e),g=l?p:e,m=d||function(t){let e=t.getRenderBounds(),{min:[n,r],max:[i,a]}=e;return{x:n,y:r,width:i-n,height:a-r}}(e),y=function(t,e){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return{x:n.x-r.x,y:n.y-r.y}}(p,h),{tooltipElement:v=function(t,e,n,r,i,a,o){let l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},s=new ld({className:"tooltip",style:{x:e,y:n,container:o,data:[],bounding:a,position:r,enterable:i,title:"",offset:[10,10],template:{prefixCls:"g2-"},style:(0,b.Z)({".g2-tooltip":{},".g2-tooltip-title":{overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"}},l)}});return t.appendChild(s.HTMLTooltipElement),s}(h,r,i,s,c,m,y,u)}=g,{items:x,title:O=""}=n;v.update(Object.assign({x:r,y:i,data:x,title:O,position:s,enterable:c},void 0!==a&&{content:a(o,{items:x,title:O})})),g.tooltipElement=v}function ly(t){let{root:e,single:n,emitter:r,nativeEvent:i=!0,event:a=null}=t;i&&r.emit("tooltip:hide",{nativeEvent:i});let o=lg(e),l=n?o:e,{tooltipElement:s}=l;s&&s.hide(null==a?void 0:a.clientX,null==a?void 0:a.clientY)}function lv(t){let{root:e,single:n}=t,r=lg(e),i=n?r:e;if(!i)return;let{tooltipElement:a}=i;a&&(a.destroy(),i.tooltipElement=void 0)}function lb(t){let{value:e}=t;return Object.assign(Object.assign({},t),{value:void 0===e?"undefined":e})}function lx(t){let e=t.getAttribute("fill"),n=t.getAttribute("stroke"),{__data__:r}=t,{color:i=e&&"transparent"!==e?e:n}=r;return i}function lO(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t=>t,n=new Map(t.map(t=>[e(t),t]));return Array.from(n.values())}function lw(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.map(t=>t.__data__),i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=t=>t instanceof Date?+t:t,o=lO(r.map(t=>t.title),a).filter(H.ri),l=r.flatMap((r,a)=>{let o=t[a],{items:l=[],title:s}=r,c=l.filter(H.ri),u=void 0!==n?n:l.length<=1;return c.map(t=>{var{color:n=lx(o)||i.color,name:a}=t,l=lp(t,["color","name"]);let c=function(t,e){let{color:n,series:r,facet:i=!1}=t,{color:a,series:o}=e;if(r&&r.invert&&!(r instanceof rG.t)&&!(r instanceof an.s)){let t=r.clone();return t.invert(o)}if(o&&r instanceof rG.t&&r.invert(o)!==a&&!i)return r.invert(o);if(n&&n.invert&&!(n instanceof rG.t)&&!(n instanceof an.s)){let t=n.invert(a);return Array.isArray(t)?null:t}return null}(e,r);return Object.assign(Object.assign({},l),{color:n,name:(u?c||a:a||c)||s})})}).map(lb);return Object.assign(Object.assign({},o.length>0&&{title:o.join(",")}),{items:lO(l,t=>"(".concat(a(t.name),", ").concat(a(t.value),", ").concat(a(t.color),")"))})}function l_(t){t.ruleY&&(t.ruleY.remove(),t.ruleY=void 0)}function lk(t){t.ruleX&&(t.ruleX.remove(),t.ruleX=void 0)}function lC(t){t.markers&&(t.markers.forEach(t=>t.remove()),t.markers=[])}function lj(t,e){return Array.from(t.values()).some(t=>{var n;return null===(n=t.interaction)||void 0===n?void 0:n[e]})}function lM(t,e){return void 0===t?e:t}function lS(t){let{title:e,items:n}=t;return 0===n.length&&void 0===e}function lA(t,e){var{elements:n,sort:r,filter:i,scale:a,coordinate:o,crosshairs:l,crosshairsX:s,crosshairsY:c,render:u,groupName:f,emitter:d,wait:h=50,leading:p=!0,trailing:g=!1,startX:m=0,startY:y=0,body:v=!0,single:x=!0,position:O,enterable:w,mount:_,bounding:k,theme:C,disableNative:j=!1,marker:M=!0,preserve:S=!1,style:A={},css:E={}}=e,P=lp(e,["elements","sort","filter","scale","coordinate","crosshairs","crosshairsX","crosshairsY","render","groupName","emitter","wait","leading","trailing","startX","startY","body","single","position","enterable","mount","bounding","theme","disableNative","marker","preserve","style","css"]);let R=n(t),T=(0,Z._e)(o),L=(0,Z.Z0)(o),B=(0,b.Z)(A,P),{innerWidth:I,innerHeight:N,width:D,height:z,insetLeft:F,insetTop:$}=o.getOptions(),W=[],G=[];for(let t of R){let{__data__:e}=t,{seriesX:n,title:r,items:i}=e;n?W.push(t):(r||i)&&G.push(t)}let q=!!a.x.getBandWidth,Y=q&&G.length>0;W.sort((t,e)=>{let n=T?0:1,r=t=>t.getBounds().min[n];return T?r(e)-r(t):r(t)-r(e)});let V=t=>{let e=T?1:0,{min:n,max:r}=t.getLocalBounds();return(0,o9.Z)([n[e],r[e]])};G.sort((t,e)=>{let[n,r]=V(t),[i,a]=V(e),o=(n+r)/2,l=(i+a)/2;return T?l-o:o-l});let U=new Map(W.map(t=>{let{__data__:e}=t,{seriesX:n}=e,r=n.map((t,e)=>e),i=(0,o9.Z)(r,t=>n[+t]);return[t,[i,n]]})),{x:Q}=a,K=(null==Q?void 0:Q.getBandWidth)?Q.getBandWidth()/2:0,X=t=>{let[e]=o.invert(t);return e-K},J=(t,e,n)=>{let r=X(t),i=n.filter(H.ri),[a,o]=(0,o9.Z)([i[0],i[i.length-1]]);if(!Y&&(ro)&&a!==o)return null;let l=(0,le.Z)(t=>n[+t]).center,s=l(e,r);return e[s]},tt=(t,e)=>{let n=T?1:0,r=t[n],i=e.filter(t=>{let[e,n]=V(t);return r>=e&&r<=n});if(!Y||i.length>0)return i;let a=(0,le.Z)(t=>{let[e,n]=V(t);return(e+n)/2}).center,o=a(e,r);return[e[o]].filter(H.ri)},te=(t,e)=>{let{__data__:n}=t;return Object.fromEntries(Object.entries(n).filter(t=>{let[e]=t;return e.startsWith("series")&&"series"!==e}).map(t=>{let[n,r]=t,i=r[e];return[(0,ll.Z)(n.replace("series","")),i]}))},tn=(0,o8.Z)(e=>{let n=(0,oX.Sv)(t,e);if(!n)return;let h=(0,oX.Qz)(t),p=h.min[0],g=h.min[1],b=[n[0]-m,n[1]-y];if(!b)return;let j=tt(b,G),S=[],A=[];for(let t of W){let[e,n]=U.get(t),r=J(b,e,n);if(null!==r){S.push(t);let e=te(t,r),{x:n,y:i}=e,a=o.map([(n||0)+K,i||0]);A.push([Object.assign(Object.assign({},e),{element:t}),a])}}let P=Array.from(new Set(A.map(t=>t[0].x))),R=P[la(P,t=>Math.abs(t-X(b)))],Z=A.filter(t=>t[0].x===R),q=[...Z.map(t=>t[0]),...j.map(t=>t.__data__)],Y=[...S,...j],V=lw(Y,a,f,q,C);if(r&&V.items.sort((t,e)=>r(t)-r(e)),i&&(V.items=V.items.filter(i)),0===Y.length||lS(V)){tr(e);return}if(v&&lm({root:t,data:V,x:n[0]+p,y:n[1]+g,render:u,event:e,single:x,position:O,enterable:w,mount:_,bounding:k,css:E}),l||s||c){let e=(0,H.hB)(B,"crosshairs"),r=Object.assign(Object.assign({},e),(0,H.hB)(B,"crosshairsX")),i=Object.assign(Object.assign({},e),(0,H.hB)(B,"crosshairsY")),a=Z.map(t=>t[1]);s&&function(t,e,n,r){var{plotWidth:i,plotHeight:a,mainWidth:o,mainHeight:l,startX:s,startY:c,transposed:u,polar:f,insetLeft:d,insetTop:h}=r,p=lp(r,["plotWidth","plotHeight","mainWidth","mainHeight","startX","startY","transposed","polar","insetLeft","insetTop"]);let g=Object.assign({lineWidth:1,stroke:"#1b1e23",strokeOpacity:.5},p),m=((t,e)=>{if(1===e.length)return e[0];let n=e.map(e=>(0,tO.TK)(e,t)),r=la(n,t=>t);return e[r]})(n,e);if(f){let[e,n,r]=(()=>{let t=s+d+o/2,e=c+h+l/2,n=(0,tO.TK)([t,e],m);return[t,e,n]})(),i=t.ruleX||((e,n,r)=>{let i=new t4.Cd({style:Object.assign({cx:e,cy:n,r},g)});return t.appendChild(i),i})(e,n,r);i.style.cx=e,i.style.cy=n,i.style.r=r,t.ruleX=i}else{let[e,n,r,o]=u?[s+m[0],s+m[0],c,c+a]:[s,s+i,m[1]+c,m[1]+c],l=t.ruleX||((e,n,r,i)=>{let a=new t4.x1({style:Object.assign({x1:e,x2:n,y1:r,y2:i},g)});return t.appendChild(a),a})(e,n,r,o);l.style.x1=e,l.style.x2=n,l.style.y1=r,l.style.y2=o,t.ruleX=l}}(t,a,n,Object.assign(Object.assign({},r),{plotWidth:I,plotHeight:N,mainWidth:D,mainHeight:z,insetLeft:F,insetTop:$,startX:m,startY:y,transposed:T,polar:L})),c&&function(t,e,n){var{plotWidth:r,plotHeight:i,mainWidth:a,mainHeight:o,startX:l,startY:s,transposed:c,polar:u,insetLeft:f,insetTop:d}=n,h=lp(n,["plotWidth","plotHeight","mainWidth","mainHeight","startX","startY","transposed","polar","insetLeft","insetTop"]);let p=Object.assign({lineWidth:1,stroke:"#1b1e23",strokeOpacity:.5},h),g=e.map(t=>t[1]),m=e.map(t=>t[0]),y=lo(g),v=lo(m),[b,x,O,w]=(()=>{if(u){let t=Math.min(a,o)/2,e=l+f+a/2,n=s+d+o/2,r=(0,tO.EU)((0,tO.lu)([v,y],[e,n])),i=e+t*Math.cos(r),c=n+t*Math.sin(r);return[e,i,n,c]}return c?[l,l+r,y+s,y+s]:[v+l,v+l,s,s+i]})();if(m.length>0){let e=t.ruleY||(()=>{let e=new t4.x1({style:Object.assign({x1:b,x2:x,y1:O,y2:w},p)});return t.appendChild(e),e})();e.style.x1=b,e.style.x2=x,e.style.y1=O,e.style.y2=w,t.ruleY=e}}(t,a,Object.assign(Object.assign({},i),{plotWidth:I,plotHeight:N,mainWidth:D,mainHeight:z,insetLeft:F,insetTop:$,startX:m,startY:y,transposed:T,polar:L}))}if(M){let e=(0,H.hB)(B,"marker");!function(t,e){let{data:n,style:r,theme:i}=e;t.markers&&t.markers.forEach(t=>t.remove());let a=n.filter(t=>{let[{x:e,y:n}]=t;return(0,H.ri)(e)&&(0,H.ri)(n)}).map(t=>{let[{color:e,element:n},a]=t,o=e||n.style.fill||n.style.stroke||i.color,l=new t4.Cd({style:Object.assign({cx:a[0],cy:a[1],fill:o,r:4,stroke:"#fff",lineWidth:2},r)});return l});for(let e of a)t.appendChild(e);t.markers=a}(t,{data:Z,style:e,theme:C})}d.emit("tooltip:show",Object.assign(Object.assign({},e),{nativeEvent:!0,data:{data:{x:(0,ob.U_)(a.x,X(b),!0)}}}))},h,{leading:p,trailing:g}),tr=e=>{ly({root:t,single:x,emitter:d,event:e}),l&&(l_(t),lk(t)),M&&lC(t)},ti=()=>{lv({root:t,single:x}),l&&(l_(t),lk(t)),M&&lC(t)},ta=e=>{let{nativeEvent:n,data:r}=e;if(n)return;let{x:i}=r.data,{x:l}=a,s=l.map(i),[c,u]=o.map([s,.5]),{min:[f,d]}=t.getRenderBounds();tn({offsetX:c+f,offsetY:u+d})},to=()=>{ly({root:t,single:x,emitter:d,nativeEvent:!1})},tl=()=>{tu(),ti()},ts=()=>{tc()},tc=()=>{j||(t.addEventListener("pointerenter",tn),t.addEventListener("pointermove",tn),t.addEventListener("pointerleave",tr))},tu=()=>{j||(t.removeEventListener("pointerenter",tn),t.removeEventListener("pointermove",tn),t.removeEventListener("pointerleave",tr))};return tc(),d.on("tooltip:show",ta),d.on("tooltip:hide",to),d.on("tooltip:disable",tl),d.on("tooltip:enable",ts),()=>{tu(),d.off("tooltip:show",ta),d.off("tooltip:hide",to),d.off("tooltip:disable",tl),d.off("tooltip:enable",ts),S?ly({root:t,single:x,emitter:d,nativeEvent:!1}):ti()}}function lE(t){let{shared:e,crosshairs:n,crosshairsX:r,crosshairsY:i,series:a,name:o,item:l=()=>({}),facet:s=!1}=t,c=lp(t,["shared","crosshairs","crosshairsX","crosshairsY","series","name","item","facet"]);return(t,o,u)=>{let{container:f,view:d}=t,{scale:h,markState:p,coordinate:g,theme:m}=d,y=lj(p,"seriesTooltip"),v=lj(p,"crosshairs"),b=(0,oX.Ks)(f),x=lM(a,y),O=lM(n,v);if(x&&Array.from(p.values()).some(t=>{var e;return(null===(e=t.interaction)||void 0===e?void 0:e.seriesTooltip)&&t.tooltip})&&!s)return lA(b,Object.assign(Object.assign({},c),{theme:m,elements:oX.A9,scale:h,coordinate:g,crosshairs:O,crosshairsX:lM(lM(r,n),!1),crosshairsY:lM(i,O),item:l,emitter:u}));if(x&&s){let e=o.filter(e=>e!==t&&e.options.parentKey===t.options.key),a=(0,oX.DW)(t,o),s=e[0].view.scale,f=b.getBounds(),d=f.min[0],h=f.min[1];return Object.assign(s,{facet:!0}),lA(b.parentNode.parentNode,Object.assign(Object.assign({},c),{theme:m,elements:()=>a,scale:s,coordinate:g,crosshairs:lM(n,v),crosshairsX:lM(lM(r,n),!1),crosshairsY:lM(i,O),item:l,startX:d,startY:h,emitter:u}))}return function(t,e){let{elements:n,coordinate:r,scale:i,render:a,groupName:o,sort:l,filter:s,emitter:c,wait:u=50,leading:f=!0,trailing:d=!1,groupKey:h=t=>t,single:p=!0,position:g,enterable:m,datum:y,view:v,mount:b,bounding:x,theme:O,shared:w=!1,body:_=!0,disableNative:k=!1,preserve:C=!1,css:j={}}=e,M=n(t),S=(0,tp.ZP)(M,h),A=M.every(t=>"interval"===t.markType)&&!(0,Z.Z0)(r),E=t=>t.__data__.x,P=i.x;A&&M.sort((t,e)=>E(t)-E(e));let R=A?e=>{let n=(0,oX.Sv)(t,e);if(!n)return;let i=(null==P?void 0:P.getBandWidth)?P.getBandWidth()/2:0,[a]=r.invert(n),o=(0,le.Z)(E).center,l=o(M,a-i);return M[l]}:t=>{let{target:e}=t;return(0,oX.Qv)(e,t=>!!t.classList&&t.classList.includes("element"))},T=(0,o8.Z)(e=>{let n=R(e);if(!n){ly({root:t,single:p,emitter:c,event:e});return}let r=h(n),u=S.get(r);if(!u)return;let f=1!==u.length||w?lw(u,i,o,void 0,O):function(t){let{__data__:e}=t,{title:n,items:r=[]}=e,i=r.filter(H.ri).map(e=>{var{color:n=lx(t)}=e;return Object.assign(Object.assign({},lp(e,["color"])),{color:n})}).map(lb);return Object.assign(Object.assign({},n&&{title:n}),{items:i})}(u[0]);if(l&&f.items.sort((t,e)=>l(t)-l(e)),s&&(f.items=f.items.filter(s)),lS(f)){ly({root:t,single:p,emitter:c,event:e});return}let{offsetX:d,offsetY:y}=e;_&&lm({root:t,data:f,x:d,y:y,render:a,event:e,single:p,position:g,enterable:m,mount:b,bounding:x,css:j}),c.emit("tooltip:show",Object.assign(Object.assign({},e),{nativeEvent:!0,data:{data:(0,lh.$)(n,v)}}))},u,{leading:f,trailing:d}),L=e=>{ly({root:t,single:p,emitter:c,event:e})},B=()=>{k||(t.addEventListener("pointermove",T),t.addEventListener("pointerleave",L))},I=()=>{k||(t.removeEventListener("pointermove",T),t.removeEventListener("pointerleave",L))},N=t=>{let{nativeEvent:e,data:n}=t;if(e)return;let r=(0,oX.k5)(M,n.data,y);if(!r)return;let i=r.getBBox(),{x:a,y:o,width:l,height:s}=i;T({target:r,offsetX:a+l/2,offsetY:o+s/2})},D=function(){let{nativeEvent:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e||ly({root:t,single:p,emitter:c,nativeEvent:!1})};return c.on("tooltip:show",N),c.on("tooltip:hide",D),c.on("tooltip:enable",()=>{B()}),c.on("tooltip:disable",()=>{I(),lv({root:t,single:p})}),B(),()=>{I(),c.off("tooltip:show",N),c.off("tooltip:hide",D),C?ly({root:t,single:p,emitter:c,nativeEvent:!1}):lv({root:t,single:p})}}(b,Object.assign(Object.assign({},c),{datum:(0,oX.d2)(d),elements:oX.A9,scale:h,coordinate:g,groupKey:e?(0,oX.TL)(d):void 0,item:l,emitter:u,view:d,theme:m,shared:e}))}}lE.props={reapplyWhenUpdate:!0};var lP=function(t,e,n,r){return new(n||(n=Promise))(function(i,a){function o(t){try{s(r.next(t))}catch(t){a(t)}}function l(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(o,l)}s((r=r.apply(t,e||[])).next())})};let lR="legend-category";function lT(t){return t.getElementsByClassName("legend-category-item-marker")[0]}function lL(t){return t.getElementsByClassName("legend-category-item-label")[0]}function lB(t){return t.getElementsByClassName("items-item")}function lZ(t){return t.getElementsByClassName(lR)}function lI(t){return t.getElementsByClassName("legend-continuous")}function lN(t){let e=t.parentNode;for(;e&&!e.__data__;)e=e.parentNode;return e.__data__}function lD(t,e){let{legend:n,channel:r,value:i,ordinal:a,channels:o,allChannels:l,facet:s=!1}=e;return lP(this,void 0,void 0,function*(){let{view:e,update:c,setState:u}=t;u(n,t=>{let{marks:n}=t,c=n.map(t=>{if("legends"===t.type)return t;let{transform:n=[]}=t,c=n.findIndex(t=>{let{type:e}=t;return e.startsWith("group")||e.startsWith("bin")}),u=[...n];u.splice(c+1,0,{type:"filter",[r]:{value:i,ordinal:a}});let f=Object.fromEntries(o.map(t=>[t,{domain:e.scale[t].getOptions().domain}]));return(0,b.Z)({},t,Object.assign(Object.assign({transform:u,scale:f},!a&&{animate:!1}),{legend:!s&&Object.fromEntries(l.map(t=>[t,{preserve:!0}]))}))});return Object.assign(Object.assign({},t),{marks:c})}),yield c()})}function lz(t,e){for(let n of t)lD(n,Object.assign(Object.assign({},e),{facet:!0}))}function lF(){return(t,e,n)=>{let{container:r}=t,i=e.filter(e=>e!==t),a=i.length>0,o=t=>lN(t).scales.map(t=>t.name),l=[...lZ(r),...lI(r)],s=l.flatMap(o),c=a?(0,o8.Z)(lz,50,{trailing:!0}):(0,o8.Z)(lD,50,{trailing:!0}),u=l.map(e=>{let{name:l,domain:u}=lN(e).scales[0],f=o(e),d={legend:e,channel:l,channels:f,allChannels:s};return e.className===lR?function(t,e){let{legends:n,marker:r,label:i,datum:a,filter:o,emitter:l,channel:s,state:c={}}=e,u=new Map,f=new Map,d=new Map,{unselected:h={markerStroke:"#aaa",markerFill:"#aaa",labelFill:"#aaa"}}=c,p={unselected:(0,H.hB)(h,"marker")},g={unselected:(0,H.hB)(h,"label")},{setState:m,removeState:y}=(0,oX.eJ)(p,void 0),{setState:v,removeState:b}=(0,oX.eJ)(g,void 0),x=Array.from(n(t)),O=x.map(a),w=()=>{for(let t of x){let e=a(t),n=r(t),o=i(t);O.includes(e)?(y(n,"unselected"),b(o,"unselected")):(m(n,"unselected"),v(o,"unselected"))}};for(let e of x){let n=()=>{(0,oX.TT)(t,"pointer")},r=()=>{(0,oX.xi)(t)},i=t=>lP(this,void 0,void 0,function*(){let n=a(e),r=O.indexOf(n);-1===r?O.push(n):O.splice(r,1),0===O.length&&O.push(...x.map(a)),yield o(O),w();let{nativeEvent:i=!0}=t;i&&(O.length===x.length?l.emit("legend:reset",{nativeEvent:i}):l.emit("legend:filter",Object.assign(Object.assign({},t),{nativeEvent:i,data:{channel:s,values:O}})))});e.addEventListener("click",i),e.addEventListener("pointerenter",n),e.addEventListener("pointerout",r),u.set(e,i),f.set(e,n),d.set(e,r)}let _=t=>lP(this,void 0,void 0,function*(){let{nativeEvent:e}=t;if(e)return;let{data:n}=t,{channel:r,values:i}=n;r===s&&(O=i,yield o(O),w())}),k=t=>lP(this,void 0,void 0,function*(){let{nativeEvent:e}=t;e||(O=x.map(a),yield o(O),w())});return l.on("legend:filter",_),l.on("legend:reset",k),()=>{for(let t of x)t.removeEventListener("click",u.get(t)),t.removeEventListener("pointerenter",f.get(t)),t.removeEventListener("pointerout",d.get(t)),l.off("legend:filter",_),l.off("legend:reset",k)}}(r,{legends:lB,marker:lT,label:lL,datum:t=>{let{__data__:e}=t,{index:n}=e;return u[n]},filter:e=>{let n=Object.assign(Object.assign({},d),{value:e,ordinal:!0});a?c(i,n):c(t,n)},state:e.attributes.state,channel:l,emitter:n}):function(t,e){let{legend:n,filter:r,emitter:i,channel:a}=e,o=t=>{let{detail:{value:e}}=t;r(e),i.emit({nativeEvent:!0,data:{channel:a,values:e}})};return n.addEventListener("valuechange",o),()=>{n.removeEventListener("valuechange",o)}}(0,{legend:e,filter:e=>{let n=Object.assign(Object.assign({},d),{value:e,ordinal:!1});a?c(i,n):c(t,n)},emitter:n,channel:l})});return()=>{u.forEach(t=>t())}}}function l$(){return(t,e,n)=>{let{container:r,view:i,options:a}=t,o=lZ(r),l=(0,oX.A9)(r),s=t=>lN(t).scales[0].name,c=t=>{let{scale:{[t]:e}}=i;return e},u=(0,oX.AN)(a,["active","inactive"]),f=(0,oX.B1)(l,(0,oX.d2)(i)),d=[];for(let t of o){let e=e=>{let{data:n}=t.attributes,{__data__:r}=e,{index:i}=r;return n[i].label},r=s(t),i=lB(t),a=c(r),o=(0,tp.ZP)(l,t=>a.invert(t.__data__[r])),{state:h={}}=t.attributes,{inactive:p={}}=h,{setState:g,removeState:m}=(0,oX.eJ)(u,f),y={inactive:(0,H.hB)(p,"marker")},v={inactive:(0,H.hB)(p,"label")},{setState:b,removeState:x}=(0,oX.eJ)(y),{setState:O,removeState:w}=(0,oX.eJ)(v),_=t=>{for(let e of i){let n=lT(e),r=lL(e);e===t||null===t?(x(n,"inactive"),w(r,"inactive")):(b(n,"inactive"),O(r,"inactive"))}},k=(t,i)=>{let a=e(i),s=new Set(o.get(a));for(let t of l)s.has(t)?g(t,"active"):g(t,"inactive");_(i);let{nativeEvent:c=!0}=t;c&&n.emit("legend:highlight",Object.assign(Object.assign({},t),{nativeEvent:c,data:{channel:r,value:a}}))},C=new Map;for(let t of i){let e=e=>{k(e,t)};t.addEventListener("pointerover",e),C.set(t,e)}let j=t=>{for(let t of l)m(t,"inactive","active");_(null);let{nativeEvent:e=!0}=t;e&&n.emit("legend:unhighlight",{nativeEvent:e})},M=t=>{let{nativeEvent:n,data:a}=t;if(n)return;let{channel:o,value:l}=a;if(o!==r)return;let s=i.find(t=>e(t)===l);s&&k({nativeEvent:!1},s)},S=t=>{let{nativeEvent:e}=t;e||j({nativeEvent:!1})};t.addEventListener("pointerleave",j),n.on("legend:highlight",M),n.on("legend:unhighlight",S);let A=()=>{for(let[e,r]of(t.removeEventListener(j),n.off("legend:highlight",M),n.off("legend:unhighlight",S),C))e.removeEventListener(r)};d.push(A)}return()=>d.forEach(t=>t())}}var lW=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function lH(t,e){for(let[n,r]of Object.entries(e))t.style(n,r)}let lG=(0,tx.a)(t=>{let e=t.attributes,{x:n,y:r,width:i,height:a,class:o,renders:l={},handleSize:s=10,document:c}=e,u=lW(e,["x","y","width","height","class","renders","handleSize","document"]);if(!c||void 0===i||void 0===a||void 0===n||void 0===r)return;let f=s/2,d=(t,e,n)=>{t.handle||(t.handle=n.createElement("rect"),t.append(t.handle));let{handle:r}=t;return r.attr(e),r},h=(0,H.hB)((0,H.C7)(u,"handleNW","handleNE"),"handleN"),{render:p=d}=h,g=lW(h,["render"]),m=(0,H.hB)(u,"handleE"),{render:y=d}=m,v=lW(m,["render"]),b=(0,H.hB)((0,H.C7)(u,"handleSE","handleSW"),"handleS"),{render:x=d}=b,O=lW(b,["render"]),w=(0,H.hB)(u,"handleW"),{render:_=d}=w,k=lW(w,["render"]),C=(0,H.hB)(u,"handleNW"),{render:j=d}=C,M=lW(C,["render"]),S=(0,H.hB)(u,"handleNE"),{render:A=d}=S,E=lW(S,["render"]),P=(0,H.hB)(u,"handleSE"),{render:R=d}=P,T=lW(P,["render"]),L=(0,H.hB)(u,"handleSW"),{render:B=d}=L,Z=lW(L,["render"]),N=(t,e)=>{let{id:n}=t,r=e(t,t.attributes,c);r.id=n,r.style.draggable=!0},D=t=>()=>{let e=(0,tx.a)(e=>N(e,t));return new e({})},z=(0,I.F)(t).attr("className",o).style("transform","translate(".concat(n,", ").concat(r,")")).style("draggable",!0);z.maybeAppend("selection","rect").style("draggable",!0).style("fill","transparent").call(lH,Object.assign(Object.assign({width:i,height:a},(0,H.C7)(u,"handle")),{transform:void 0})),z.maybeAppend("handle-n",D(p)).style("x",f).style("y",-f).style("width",i-s).style("height",s).style("fill","transparent").call(lH,g),z.maybeAppend("handle-e",D(y)).style("x",i-f).style("y",f).style("width",s).style("height",a-s).style("fill","transparent").call(lH,v),z.maybeAppend("handle-s",D(x)).style("x",f).style("y",a-f).style("width",i-s).style("height",s).style("fill","transparent").call(lH,O),z.maybeAppend("handle-w",D(_)).style("x",-f).style("y",f).style("width",s).style("height",a-s).style("fill","transparent").call(lH,k),z.maybeAppend("handle-nw",D(j)).style("x",-f).style("y",-f).style("width",s).style("height",s).style("fill","transparent").call(lH,M),z.maybeAppend("handle-ne",D(A)).style("x",i-f).style("y",-f).style("width",s).style("height",s).style("fill","transparent").call(lH,E),z.maybeAppend("handle-se",D(R)).style("x",i-f).style("y",a-f).style("width",s).style("height",s).style("fill","transparent").call(lH,T),z.maybeAppend("handle-sw",D(B)).style("x",-f).style("y",a-f).style("width",s).style("height",s).style("fill","transparent").call(lH,Z)});function lq(t,e){var{brushed:n=()=>{},brushended:r=()=>{},brushcreated:i=()=>{},brushstarted:a=()=>{},brushupdated:o=()=>{},extent:l=function(t){let{width:e,height:n}=t.getBBox();return[0,0,e,n]}(t),brushRegion:s=(t,e,n,r,i)=>[t,e,n,r],reverse:c=!1,fill:u="#777",fillOpacity:f="0.3",stroke:d="#fff",selectedHandles:h=["handle-n","handle-e","handle-s","handle-w","handle-nw","handle-ne","handle-se","handle-sw"]}=e,p=lW(e,["brushed","brushended","brushcreated","brushstarted","brushupdated","extent","brushRegion","reverse","fill","fillOpacity","stroke","selectedHandles"]);let g=null,m=null,y=null,v=null,b=null,x=!1,[O,w,_,k]=l;(0,oX.TT)(t,"crosshair"),t.style.draggable=!0;let C=(t,e,n)=>{if(a(n),v&&v.remove(),b&&b.remove(),g=[t,e],c)return j();M()},j=()=>{b=new t4.y$({style:Object.assign(Object.assign({},p),{fill:u,fillOpacity:f,stroke:d,pointerEvents:"none"})}),v=new lG({style:{x:0,y:0,width:0,height:0,draggable:!0,document:t.ownerDocument},className:"mask"}),t.appendChild(b),t.appendChild(v)},M=()=>{v=new lG({style:Object.assign(Object.assign({document:t.ownerDocument,x:0,y:0},p),{fill:u,fillOpacity:f,stroke:d,draggable:!0}),className:"mask"}),t.appendChild(v)},S=function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];v&&v.remove(),b&&b.remove(),g=null,m=null,y=null,x=!1,v=null,b=null,r(t)},A=function(t,e){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],[i,a,o,u]=function(t,e,n,r,i){let[a,o,l,s]=i;return[Math.max(a,Math.min(t,n)),Math.max(o,Math.min(e,r)),Math.min(l,Math.max(t,n)),Math.min(s,Math.max(e,r))]}(t[0],t[1],e[0],e[1],l),[f,d,h,p]=s(i,a,o,u,l);return c?P(f,d,h,p):E(f,d,h,p),n(f,d,h,p,r),[f,d,h,p]},E=(t,e,n,r)=>{v.style.x=t,v.style.y=e,v.style.width=n-t,v.style.height=r-e},P=(t,e,n,r)=>{b.style.d="\n M".concat(O,",").concat(w,"L").concat(_,",").concat(w,"L").concat(_,",").concat(k,"L").concat(O,",").concat(k,"Z\n M").concat(t,",").concat(e,"L").concat(t,",").concat(r,"L").concat(n,",").concat(r,"L").concat(n,",").concat(e,"Z\n "),v.style.x=t,v.style.y=e,v.style.width=n-t,v.style.height=r-e},R=t=>{let e=(t,e,n,r,i)=>t+ei?i-n:t,n=t[0]-y[0],r=t[1]-y[1],i=e(n,g[0],m[0],O,_),a=e(r,g[1],m[1],w,k),o=[g[0]+i,g[1]+a],l=[m[0]+i,m[1]+a];A(o,l)},T={"handle-n":{vector:[0,1,0,0],cursor:"ns-resize"},"handle-e":{vector:[0,0,1,0],cursor:"ew-resize"},"handle-s":{vector:[0,0,0,1],cursor:"ns-resize"},"handle-w":{vector:[1,0,0,0],cursor:"ew-resize"},"handle-nw":{vector:[1,1,0,0],cursor:"nwse-resize"},"handle-ne":{vector:[0,1,1,0],cursor:"nesw-resize"},"handle-se":{vector:[0,0,1,1],cursor:"nwse-resize"},"handle-sw":{vector:[1,0,0,1],cursor:"nesw-resize"}},L=t=>Z(t)||B(t),B=t=>{let{id:e}=t;return -1!==h.indexOf(e)&&new Set(Object.keys(T)).has(e)},Z=t=>t===v.getElementById("selection"),I=e=>{let{target:n}=e,[r,i]=(0,oX.C0)(t,e);if(!v||!L(n)){C(r,i,e),x=!0;return}L(n)&&(y=[r,i])},N=e=>{let{target:n}=e,r=(0,oX.C0)(t,e);if(!g)return;if(!y)return A(g,r);if(Z(n))return R(r);let[i,a]=[r[0]-y[0],r[1]-y[1]],{id:o}=n;if(T[o]){let[t,e,n,r]=T[o].vector;return A([g[0]+i*t,g[1]+a*e],[m[0]+i*n,m[1]+a*r])}},D=e=>{if(y){y=null;let{x:t,y:n,width:r,height:i}=v.style;g=[t,n],m=[t+r,n+i],o(t,n,t+r,n+i,e);return}m=(0,oX.C0)(t,e);let[n,r,a,l]=A(g,m);x=!1,i(n,r,a,l,e)},z=t=>{let{target:e}=t;v&&!L(e)&&S()},F=e=>{let{target:n}=e;v&&L(n)&&!x?Z(n)?(0,oX.TT)(t,"move"):B(n)&&(0,oX.TT)(t,T[n.id].cursor):(0,oX.TT)(t,"crosshair")},$=()=>{(0,oX.TT)(t,"default")};return t.addEventListener("dragstart",I),t.addEventListener("drag",N),t.addEventListener("dragend",D),t.addEventListener("click",z),t.addEventListener("pointermove",F),t.addEventListener("pointerleave",$),{mask:v,move(t,e,n,r){let i=!(arguments.length>4)||void 0===arguments[4]||arguments[4];v||C(t,e,{}),g=[t,e],m=[n,r],A([t,e],[n,r],i)},remove(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];v&&S(t)},destroy(){v&&S(!1),(0,oX.TT)(t,"default"),t.removeEventListener("dragstart",I),t.removeEventListener("drag",N),t.removeEventListener("dragend",D),t.removeEventListener("click",z),t.removeEventListener("pointermove",F),t.removeEventListener("pointerleave",$)}}}function lY(t,e,n){return e.filter(e=>{if(e===t)return!1;let{interaction:r={}}=e.options;return Object.values(r).find(t=>t.brushKey===n)})}function lV(t,e){var{elements:n,selectedHandles:r,siblings:i=t=>[],datum:a,brushRegion:o,extent:l,reverse:s,scale:c,coordinate:u,series:f=!1,key:d=t=>t,bboxOf:h=t=>{let{x:e,y:n,width:r,height:i}=t.style;return{x:e,y:n,width:r,height:i}},state:p={},emitter:g}=e,m=lW(e,["elements","selectedHandles","siblings","datum","brushRegion","extent","reverse","scale","coordinate","series","key","bboxOf","state","emitter"]);let y=n(t),v=i(t),b=v.flatMap(n),x=(0,oX.B1)(y,a),O=(0,H.hB)(m,"mask"),{setState:w,removeState:_}=(0,oX.eJ)(p,x),k=new Map,{width:C,height:j,x:M=0,y:S=0}=h(t),A=()=>{for(let t of[...y,...b])_(t,"active","inactive")},E=(t,e,n,r)=>{var i;for(let t of v)null===(i=t.brush)||void 0===i||i.remove();let a=new Set;for(let i of y){let{min:o,max:l}=i.getLocalBounds(),[s,c]=o,[u,f]=l;!function(t,e){let[n,r,i,a]=t,[o,l,s,c]=e;return!(o>i||sa||c{for(let t of y)_(t,"inactive");for(let t of k.values())t.remove();k.clear()},R=(e,n,r,i)=>{let a=t=>{let e=t.cloneNode();return e.__data__=t.__data__,t.parentNode.appendChild(e),k.set(t,e),e},o=new t4.UL({style:{x:e+M,y:n+S,width:r-e,height:i-n}});for(let e of(t.appendChild(o),y)){let t=k.get(e)||a(e);t.style.clipPath=o,w(e,"inactive"),w(t,"active")}},T=lq(t,Object.assign(Object.assign({},O),{extent:l||[0,0,C,j],brushRegion:o,reverse:s,selectedHandles:r,brushended:t=>{let e=f?P:A;t&&g.emit("brush:remove",{nativeEvent:!0}),e()},brushed:(t,e,n,r,i)=>{let a=(0,ob.sm)(t,e,n,r,c,u);i&&g.emit("brush:highlight",{nativeEvent:!0,data:{selection:a}});let o=f?R:E;o(t,e,n,r)},brushcreated:(t,e,n,r,i)=>{let a=(0,ob.sm)(t,e,n,r,c,u);g.emit("brush:end",Object.assign(Object.assign({},i),{nativeEvent:!0,data:{selection:a}}))},brushupdated:(t,e,n,r,i)=>{let a=(0,ob.sm)(t,e,n,r,c,u);g.emit("brush:end",Object.assign(Object.assign({},i),{nativeEvent:!0,data:{selection:a}}))},brushstarted:t=>{g.emit("brush:start",t)}})),L=t=>{let{nativeEvent:e,data:n}=t;if(e)return;let{selection:r}=n,[i,a,o,l]=(0,ob.qP)(r,c,u);T.move(i,a,o,l,!1)};g.on("brush:highlight",L);let B=function(){let{nativeEvent:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t||T.remove(!1)};g.on("brush:remove",B);let Z=T.destroy.bind(T);return T.destroy=()=>{g.off("brush:highlight",L),g.off("brush:remove",B),Z()},T}function lU(t){var{facet:e,brushKey:n}=t,r=lW(t,["facet","brushKey"]);return(t,i,a)=>{let{container:o,view:l,options:s}=t,c=(0,oX.Ks)(o),u={maskFill:"#777",maskFillOpacity:"0.3",maskStroke:"#fff",reverse:!1},f=["active",["inactive",{opacity:.5}]],{scale:d,coordinate:h}=l;if(e){let e=c.getBounds(),n=e.min[0],o=e.min[1],l=e.max[0],s=e.max[1];return lV(c.parentNode.parentNode,Object.assign(Object.assign({elements:()=>(0,oX.DW)(t,i),datum:(0,oX.d2)((0,oX.W3)(t,i).map(t=>t.view)),brushRegion:(t,e,n,r)=>[t,e,n,r],extent:[n,o,l,s],state:(0,oX.AN)((0,oX.W3)(t,i).map(t=>t.options),f),emitter:a,scale:d,coordinate:h,selectedHandles:void 0},u),r))}let p=lV(c,Object.assign(Object.assign({elements:oX.A9,key:t=>t.__data__.key,siblings:()=>lY(t,i,n).map(t=>(0,oX.Ks)(t.container)),datum:(0,oX.d2)([l,...lY(t,i,n).map(t=>t.view)]),brushRegion:(t,e,n,r)=>[t,e,n,r],extent:void 0,state:(0,oX.AN)([s,...lY(t,i,n).map(t=>t.options)],f),emitter:a,scale:d,coordinate:h,selectedHandles:void 0},u),r));return c.brush=p,()=>p.destroy()}}function lQ(t,e,n,r,i){let[,a,,o]=i;return[t,a,n,o]}function lK(t){return lU(Object.assign(Object.assign({},t),{brushRegion:lQ,selectedHandles:["handle-e","handle-w"]}))}function lX(t,e,n,r,i){let[a,,o]=i;return[a,e,o,r]}function lJ(t){return lU(Object.assign(Object.assign({},t),{brushRegion:lX,selectedHandles:["handle-n","handle-s"]}))}var l0=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let l1="axis-hot-area";function l2(t){return t.getElementsByClassName("axis")}function l5(t){return t.getElementsByClassName("axis-line")[0]}function l3(t){return t.getElementsByClassName("axis-main-group")[0].getLocalBounds()}function l6(t,e){var{cross:n,offsetX:r,offsetY:i}=e,a=l0(e,["cross","offsetX","offsetY"]);let o=l3(t),l=l5(t),[s]=l.getLocalBounds().min,[c,u]=o.min,[f,d]=o.max,h=(f-c)*2;return{brushRegion:lX,hotZone:new t4.UL({className:l1,style:Object.assign({width:n?h/2:h,transform:"translate(".concat((n?c:s-h/2).toFixed(2),", ").concat(u,")"),height:d-u},a)}),extent:n?(t,e,n,r)=>[-1/0,e,1/0,r]:(t,e,n,i)=>[Math.floor(c-r),e,Math.ceil(f-r),i]}}function l4(t,e){var{offsetY:n,offsetX:r,cross:i=!1}=e,a=l0(e,["offsetY","offsetX","cross"]);let o=l3(t),l=l5(t),[,s]=l.getLocalBounds().min,[c,u]=o.min,[f,d]=o.max,h=d-u;return{brushRegion:lQ,hotZone:new t4.UL({className:l1,style:Object.assign({width:f-c,height:i?h:2*h,transform:"translate(".concat(c,", ").concat(i?u:s-h,")")},a)}),extent:i?(t,e,n,r)=>[t,-1/0,n,1/0]:(t,e,r,i)=>[t,Math.floor(u-n),r,Math.ceil(d-n)]}}function l8(t){return(e,n,r)=>{let{container:i,view:a,options:o}=e,l=(0,oX.Ks)(i),{x:s,y:c}=l.getBBox(),{coordinate:u}=a;return function(t,e){var{axes:n,elements:r,points:i,horizontal:a,datum:o,offsetY:l,offsetX:s,reverse:c=!1,state:u={},emitter:f,coordinate:d}=e,h=l0(e,["axes","elements","points","horizontal","datum","offsetY","offsetX","reverse","state","emitter","coordinate"]);let p=r(t),g=n(t),m=(0,oX.B1)(p,o),{setState:y,removeState:v}=(0,oX.eJ)(u,m),b=new Map,x=(0,H.hB)(h,"mask"),O=t=>Array.from(b.values()).every(e=>{let[n,r,i,a]=e;return t.some(t=>{let[e,o]=t;return e>=n&&e<=i&&o>=r&&o<=a})}),w=g.map(t=>t.attributes.scale),_=t=>t.length>2?[t[0],t[t.length-1]]:t,k=new Map,C=()=>{k.clear();for(let t=0;t{let n=[];for(let t of p){let e=i(t);O(e)?(y(t,"active"),n.push(t)):y(t,"inactive")}k.set(t,S(n,t)),e&&f.emit("brushAxis:highlight",{nativeEvent:!0,data:{selection:(()=>{if(!A)return Array.from(k.values());let t=[];for(let[e,n]of k){let r=w[e],{name:i}=r.getOptions();"x"===i?t[0]=n:t[1]=n}return t})()}})},M=t=>{for(let t of p)v(t,"active","inactive");C(),t&&f.emit("brushAxis:remove",{nativeEvent:!0})},S=(t,e)=>{let n=w[e],{name:r}=n.getOptions(),i=t.map(t=>{let e=t.__data__;return n.invert(e[r])});return _((0,ob.ib)(n,i))},A=g.some(a)&&g.some(t=>!a(t)),E=[];for(let t=0;t0&&void 0!==arguments[0]?arguments[0]:{},{nativeEvent:e}=t;e||E.forEach(t=>t.remove(!1))},R=(t,e,n)=>{let[r,i]=t,o=T(r,e,n),l=T(i,e,n)+(e.getStep?e.getStep():0);return a(n)?[o,-1/0,l,1/0]:[-1/0,o,1/0,l]},T=(t,e,n)=>{let{height:r,width:i}=d.getOptions(),o=e.clone();return a(n)?o.update({range:[0,i]}):o.update({range:[r,0]}),o.map(t)},L=t=>{let{nativeEvent:e}=t;if(e)return;let{selection:n}=t.data;for(let t=0;t{E.forEach(t=>t.destroy()),f.off("brushAxis:remove",P),f.off("brushAxis:highlight",L)}}(i,Object.assign({elements:oX.A9,axes:l2,offsetY:c,offsetX:s,points:t=>t.__data__.points,horizontal:t=>{let{startPos:[e,n],endPos:[r,i]}=t.attributes;return e!==r&&n===i},datum:(0,oX.d2)(a),state:(0,oX.AN)(o,["active",["inactive",{opacity:.5}]]),coordinate:u,emitter:r},t))}}var l7=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function l9(t){var{hideX:e=!0,hideY:n=!0}=t,r=l7(t,["hideX","hideY"]);return(t,i,a)=>{let{container:o,view:l,options:s,update:c,setState:u}=t,f=(0,oX.Ks)(o),d=!1,h=!1,p=l,{scale:g,coordinate:m}=l;return function(t,e){var{filter:n,reset:r,brushRegion:i,extent:a,reverse:o,emitter:l,scale:s,coordinate:c,selection:u,series:f=!1}=e,d=l7(e,["filter","reset","brushRegion","extent","reverse","emitter","scale","coordinate","selection","series"]);let h=(0,H.hB)(d,"mask"),{width:p,height:g}=t.getBBox(),m=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,e=null;return n=>{let{timeStamp:r}=n;return null!==e&&r-e{let{nativeEvent:e,data:r}=t;if(e)return;let{selection:i}=r;n(i,{nativeEvent:!1})};return l.on("brush:filter",b),()=>{y.destroy(),l.off("brush:filter",b),t.removeEventListener("click",v)}}(f,Object.assign(Object.assign({brushRegion:(t,e,n,r)=>[t,e,n,r],selection:(t,e,n,r)=>{let{scale:i,coordinate:a}=p;return(0,ob.sm)(t,e,n,r,i,a)},filter:(t,r)=>{var i,o,l,f;return i=this,o=void 0,l=void 0,f=function*(){if(h)return;h=!0;let[i,o]=t;u("brushFilter",t=>{let{marks:r}=t,a=r.map(t=>(0,b.Z)({axis:Object.assign(Object.assign({},e&&{x:{transform:[{type:"hide"}]}}),n&&{y:{transform:[{type:"hide"}]}})},t,{scale:{x:{domain:i,nice:!1},y:{domain:o,nice:!1}}}));return Object.assign(Object.assign({},s),{marks:a,clip:!0})}),a.emit("brush:filter",Object.assign(Object.assign({},r),{data:{selection:[i,o]}}));let l=yield c();p=l.view,h=!1,d=!0},new(l||(l=Promise))(function(t,e){function n(t){try{a(f.next(t))}catch(t){e(t)}}function r(t){try{a(f.throw(t))}catch(t){e(t)}}function a(e){var i;e.done?t(e.value):((i=e.value)instanceof l?i:new l(function(t){t(i)})).then(n,r)}a((f=f.apply(i,o||[])).next())})},reset:t=>{if(h||!d)return;let{scale:e}=l,{x:n,y:r}=e,i=n.getOptions().domain,o=r.getOptions().domain;a.emit("brush:filter",Object.assign(Object.assign({},t),{data:{selection:[i,o]}})),d=!1,p=l,u("brushFilter"),c()},extent:void 0,emitter:a,scale:g,coordinate:m},{maskFill:"#777",maskFillOpacity:"0.3",maskStroke:"#fff",unhighlightedOpacity:.5,reverse:!1}),r))}}function st(t){return l9(Object.assign(Object.assign({hideX:!0},t),{brushRegion:lQ}))}function se(t){return l9(Object.assign(Object.assign({hideY:!0},t),{brushRegion:lX}))}var sn=n(83914),sr=function(t,e,n,r){return new(n||(n=Promise))(function(i,a){function o(t){try{s(r.next(t))}catch(t){a(t)}}function l(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(o,l)}s((r=r.apply(t,e||[])).next())})};function si(t){return[t[0],t[t.length-1]]}function sa(t){let{initDomain:e={},className:n="slider",prefix:r="slider",setValue:i=(t,e)=>t.setValues(e),hasState:a=!1,wait:o=50,leading:l=!0,trailing:s=!1,getInitValues:c=t=>{var e;let n=null===(e=null==t?void 0:t.attributes)||void 0===e?void 0:e.values;if(0!==n[0]||1!==n[1])return n}}=t;return(t,u,f)=>{let{container:d,view:h,update:p,setState:g}=t,m=d.getElementsByClassName(n);if(!m.length)return()=>{};let y=!1,{scale:v,coordinate:x,layout:O}=h,{paddingLeft:w,paddingTop:_,paddingBottom:k,paddingRight:C}=O,{x:j,y:M}=v,S=(0,Z._e)(x),A=t=>{let e="vertical"===t?"y":"x",n="vertical"===t?"x":"y";return S?[n,e]:[e,n]},E=new Map,P=new Set,R={x:e.x||j.getOptions().domain,y:e.y||M.getOptions().domain};for(let t of m){let{orientation:e}=t.attributes,[n,u]=A(e),d="".concat(r).concat((0,sn.Z)(n),":filter"),h="x"===n,{ratio:m}=j.getOptions(),{ratio:x}=M.getOptions(),O=t=>{if(t.data){let{selection:e}=t.data,[n=si(R.x),r=si(R.y)]=e;return h?[(0,ob.ib)(j,n,m),(0,ob.ib)(M,r,x)]:[(0,ob.ib)(M,r,x),(0,ob.ib)(j,n,m)]}let{value:r}=t.detail,i=v[n],a=function(t,e,n){let[r,i]=t,a=n?t=>1-t:t=>t,o=(0,ob.U_)(e,a(r),!0),l=(0,ob.U_)(e,a(i),!1);return(0,ob.ib)(e,[o,l])}(r,i,S&&"horizontal"===e),o=R[u];return[a,o]},T=(0,o8.Z)(e=>sr(this,void 0,void 0,function*(){let{initValue:i=!1}=e;if(y&&!i)return;y=!0;let{nativeEvent:o=!0}=e,[l,s]=O(e);if(R[n]=l,R[u]=s,o){let t=h?l:s,n=h?s:l;f.emit(d,Object.assign(Object.assign({},e),{nativeEvent:o,data:{selection:[si(t),si(n)]}}))}g(t,t=>Object.assign(Object.assign({},function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"x",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"y",{marks:o}=t,l=o.map(t=>{var o,l;return(0,b.Z)({axis:{x:{transform:[{type:"hide"}]},y:{transform:[{type:"hide"}]}}},t,{scale:e,[n]:Object.assign(Object.assign({},(null===(o=t[n])||void 0===o?void 0:o[i])&&{[i]:Object.assign({preserve:!0},r&&{ratio:null})}),(null===(l=t[n])||void 0===l?void 0:l[a])&&{[a]:{preserve:!0}}),animate:!1})});return Object.assign(Object.assign({},t),{marks:l,clip:!0,animate:!1})}(t,{[n]:{domain:l,nice:!1}},r,a,n,u)),{paddingLeft:w,paddingTop:_,paddingBottom:k,paddingRight:C})),yield p(),y=!1}),o,{leading:l,trailing:s}),L=e=>{let{nativeEvent:n}=e;if(n)return;let{data:r}=e,{selection:a}=r,[o,l]=a;t.dispatchEvent(new t4.Aw("valuechange",{data:r,nativeEvent:!1}));let s=h?(0,ob.ji)(o,j):(0,ob.ji)(l,M);i(t,s)};f.on(d,L),t.addEventListener("valuechange",T),E.set(t,T),P.add([d,L]);let B=c(t);B&&t.dispatchEvent(new t4.Aw("valuechange",{detail:{value:B},nativeEvent:!1,initValue:!0}))}return p(),()=>{for(let[t,e]of E)t.removeEventListener("valuechange",e);for(let[t,e]of P)f.off(t,e)}}}let so="g2-scrollbar";function sl(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e,n,r)=>{let{view:i,container:a}=e,o=a.getElementsByClassName(so);if(!o.length)return()=>{};let{scale:l}=i,{x:s,y:c}=l,u={x:[...s.getOptions().domain],y:[...c.getOptions().domain]};s.update({domain:s.getOptions().expectedDomain}),c.update({domain:c.getOptions().expectedDomain});let f=sa(Object.assign(Object.assign({},t),{initDomain:u,className:so,prefix:"scrollbar",hasState:!0,setValue:(t,e)=>t.setValue(e[0]),getInitValues:t=>{let e=t.slider.attributes.values;if(0!==e[0])return e}}));return f(e,n,r)}}var ss=n(7254),sc=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let su={backgroundColor:"rgba(0,0,0,0.75)",color:"#fff",width:"max-content",padding:"1px 4px",fontSize:"12px",borderRadius:"2.5px",boxShadow:"0 3px 6px -4px rgba(0,0,0,0.12), 0 6px 16px 0 rgba(0,0,0,0.08), 0 9px 28px 8px rgba(0,0,0,0.05)"};function sf(t){return"text"===t.nodeName&&!!t.isOverflowing()}function sd(t){var{offsetX:e=8,offsetY:n=8}=t,r=sc(t,["offsetX","offsetY"]);return t=>{let{container:i}=t,[a,o]=i.getBounds().min,l=(0,H.hB)(r,"tip"),s=new Set,c=t=>{var r;let{target:c}=t;if(!sf(c)){t.stopPropagation();return}let{offsetX:u,offsetY:f}=t,d=u+e-a,h=f+n-o;if(c.tip){c.tip.style.x=d,c.tip.style.y=h;return}let{text:p}=c.style,g=new t4.k9({className:"poptip",style:{innerHTML:(r=Object.assign(Object.assign({},su),l),"<".concat("div",' style="').concat(Object.entries(r).map(t=>{let[e,n]=t;return"".concat((0,ss.G)(e),":").concat(n)}).join(";"),'">').concat(p,"")),x:d,y:h}});i.appendChild(g),c.tip=g,s.add(g)},u=t=>{let{target:e}=t;if(!sf(e)){t.stopPropagation();return}e.tip&&(e.tip.remove(),e.tip=null,s.delete(e.tip))};return i.addEventListener("pointerover",c),i.addEventListener("pointerout",u),()=>{i.removeEventListener("pointerover",c),i.removeEventListener("pointerout",u),s.forEach(t=>t.remove())}}}sd.props={reapplyWhenUpdate:!0};var sh=n(7745),sp=n(53032),sg=n(95147),sm=n(38523),sy=function(t,e){var n=(0,sm.Z)(e),r=n.length;if((0,sg.Z)(t))return!r;for(var i=0;i0)throw Error("cycle");return a}return n.id=function(e){return arguments.length?(t=sO(e),n):t},n.parentId=function(t){return arguments.length?(e=sO(t),n):e},n}function sS(t,e,n,r,i){var a,o,l=t.children,s=l.length,c=Array(s+1);for(c[0]=o=a=0;a=n-1){var u=l[e];u.x0=i,u.y0=a,u.x1=o,u.y1=s;return}for(var f=c[e],d=r/2+f,h=e+1,p=n-1;h>>1;c[g]s-a){var v=r?(i*y+o*m)/r:o;t(e,h,m,i,a,v,s),t(h,n,y,v,a,o,s)}else{var b=r?(a*y+s*m)/r:s;t(e,h,m,i,a,o,b),t(h,n,y,i,b,o,s)}}(0,s,t.value,e,n,r,i)}var sA=n(36849);function sE(t,e,n,r,i){for(var a,o=t.children,l=-1,s=o.length,c=t.value&&(i-n)/t.value;++ld&&(d=l),(h=Math.max(d/(m=u*u*g),m/f))>p){u-=l;break}p=h}y.push(o={value:u,dice:s1?e:1)},n}(sR),sB=function t(e){function n(t,n,r,i,a){if((o=t._squarify)&&o.ratio===e)for(var o,l,s,c,u,f=-1,d=o.length,h=t.value;++f1?e:1)},n}(sR),sZ=n(8080);function sI(){return 0}function sN(t){return function(){return t}}function sD(t,e,n){var r;let{value:i}=n,a=function(t,e){let n={treemapBinary:sS,treemapDice:sA.Z,treemapSlice:sE,treemapSliceDice:sP,treemapSquarify:sL,treemapResquarify:sB},r="treemapSquarify"===t?n[t].ratio(e):n[t];if(!r)throw TypeError("Invalid tile method!");return r}(e.tile,e.ratio),o=(r=e.path,Array.isArray(t)?"function"==typeof r?sM().path(r)(t):sM()(t):(0,sw.ZP)(t));(0,ot.Z)(t)?function t(e){let n=(0,sp.Z)(e,["data","name"]);n.replaceAll&&(e.path=n.replaceAll(".","/").split("/")),e.children&&e.children.forEach(e=>{t(e)})}(o):function t(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[e.data.name];e.id=e.id||e.data.name,e.path=n,e.children&&e.children.forEach(r=>{r.id="".concat(e.id,"/").concat(r.data.name),r.path=[...n,r.data.name],t(r,r.path)})}(o),i?o.sum(t=>e.ignoreParentValue&&t.children?0:to(i)(t)).sort(e.sort):o.count(),(function(){var t=sL,e=!1,n=1,r=1,i=[0],a=sI,o=sI,l=sI,s=sI,c=sI;function u(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(f),i=[0],e&&t.eachBefore(sZ.Z),t}function f(e){var n=i[e.depth],r=e.x0+n,u=e.y0+n,f=e.x1-n,d=e.y1-n;fObject.assign(t,{id:t.id.replace(/^\//,""),x:[t.x0,t.x1],y:[t.y0,t.y1]})),s=l.filter("function"==typeof e.layer?e.layer:t=>t.height===e.layer);return[s,l]}var sz=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let sF={breadCrumbFill:"rgba(0, 0, 0, 0.85)",breadCrumbFontSize:12,breadCrumbY:12,activeFill:"rgba(0, 0, 0, 0.5)"};function s$(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{originData:e=[],layout:n}=t,r=sz(t,["originData","layout"]),i=(0,b.Z)({},sF,r),a=(0,H.hB)(i,"breadCrumb"),o=(0,H.hB)(i,"active");return t=>{let{update:r,setState:i,container:l,options:s}=t,c=(0,I.F)(l).select(".".concat(ln.V$)).node(),u=s.marks[0],{state:f}=u,d=new t4.ZA;c.appendChild(d);let h=(t,s)=>{var u,f,p,g;return u=this,f=void 0,p=void 0,g=function*(){if(d.removeChildren(),s){let e="",n=a.y,r=0,i=[],l=c.getBBox().width,s=t.map((o,s)=>{e="".concat(e).concat(o,"/"),i.push(o);let c=new t4.xv({name:e.replace(/\/$/,""),style:Object.assign(Object.assign({text:o,x:r,path:[...i],depth:s},a),{y:n})});d.appendChild(c),r+=c.getBBox().width;let u=new t4.xv({style:Object.assign(Object.assign({x:r,text:" / "},a),{y:n})});return d.appendChild(u),(r+=u.getBBox().width)>l&&(n=d.getBBox().height+a.y,r=0,c.attr({x:r,y:n}),r+=c.getBBox().width,u.attr({x:r,y:n}),r+=u.getBBox().width),s===(0,sh.Z)(t)-1&&u.remove(),c});s.forEach((t,e)=>{if(e===(0,sh.Z)(s)-1)return;let n=Object.assign({},t.attributes);t.attr("cursor","pointer"),t.addEventListener("mouseenter",()=>{t.attr(o)}),t.addEventListener("mouseleave",()=>{t.attr(n)}),t.addEventListener("click",()=>{h((0,sp.Z)(t,["style","path"]),(0,sp.Z)(t,["style","depth"]))})})}(function(t,e){let n=[...lZ(t),...lI(t)];n.forEach(t=>{e(t,t=>t)})})(l,i),i("treemapDrillDown",r=>{let{marks:i}=r,a=t.join("/"),o=i.map(t=>{if("rect"!==t.type)return t;let r=e;if(s){let t=e.filter(t=>{let e=(0,sp.Z)(t,["id"]);return e&&(e.match("".concat(a,"/"))||a.match(e))}).map(t=>({value:0===t.height?(0,sp.Z)(t,["value"]):void 0,name:(0,sp.Z)(t,["id"])})),{paddingLeft:i,paddingBottom:o,paddingRight:l}=n,c=Object.assign(Object.assign({},n),{paddingTop:(n.paddingTop||d.getBBox().height+10)/(s+1),paddingLeft:i/(s+1),paddingBottom:o/(s+1),paddingRight:l/(s+1),path:t=>t.name,layer:t=>t.depth===s+1});r=sD(t,c,{value:"value"})[0]}else r=e.filter(t=>1===t.depth);let i=[];return r.forEach(t=>{let{path:e}=t;i.push(aU(e))}),(0,b.Z)({},t,{data:r,scale:{color:{domain:i}}})});return Object.assign(Object.assign({},r),{marks:o})}),yield r(void 0,["legendFilter"])},new(p||(p=Promise))(function(t,e){function n(t){try{i(g.next(t))}catch(t){e(t)}}function r(t){try{i(g.throw(t))}catch(t){e(t)}}function i(e){var i;e.done?t(e.value):((i=e.value)instanceof p?i:new p(function(t){t(i)})).then(n,r)}i((g=g.apply(u,f||[])).next())})},p=t=>{let n=t.target;if("rect"!==(0,sp.Z)(n,["markType"]))return;let r=(0,sp.Z)(n,["__data__","key"]),i=sb(e,t=>t.id===r);(0,sp.Z)(i,"height")&&h((0,sp.Z)(i,"path"),(0,sp.Z)(i,"depth"))};c.addEventListener("click",p);let g=(0,sm.Z)(Object.assign(Object.assign({},f.active),f.inactive)),m=()=>{let t=(0,oX.$3)(c);t.forEach(t=>{let n=(0,sp.Z)(t,["style","cursor"]),r=sb(e,e=>e.id===(0,sp.Z)(t,["__data__","key"]));if("pointer"!==n&&(null==r?void 0:r.height)){t.style.cursor="pointer";let e=(0,sx.Z)(t.attributes,g);t.addEventListener("mouseenter",()=>{t.attr(f.active)}),t.addEventListener("mouseleave",()=>{t.attr((0,b.Z)(e,f.inactive))})}})};return m(),c.addEventListener("mousemove",m),()=>{d.remove(),c.removeEventListener("click",p),c.removeEventListener("mousemove",m)}}}var sW=n(71154),sH=function(t,e,n,r){return new(n||(n=Promise))(function(i,a){function o(t){try{s(r.next(t))}catch(t){a(t)}}function l(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(o,l)}s((r=r.apply(t,e||[])).next())})},sG=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let sq={pointR:6,pointStrokeWidth:1,pointStroke:"#888",pointActiveStroke:"#f5f5f5",pathStroke:"#888",pathLineDash:[3,4],labelFontSize:12,labelFill:"#888",labelStroke:"#fff",labelLineWidth:1,labelY:-6,labelX:2},sY="movePoint",sV=t=>{let e=t.target,{markType:n}=e;"line"===n&&(e.attr("_lineWidth",e.attr("lineWidth")||1),e.attr("lineWidth",e.attr("_lineWidth")+3)),"interval"===n&&(e.attr("_opacity",e.attr("opacity")||1),e.attr("opacity",.7*e.attr("_opacity")))},sU=t=>{let e=t.target,{markType:n}=e;"line"===n&&e.attr("lineWidth",e.attr("_lineWidth")),"interval"===n&&e.attr("opacity",e.attr("_opacity"))},sQ=(t,e,n)=>e.map(e=>{let r=["x","color"].reduce((r,i)=>{let a=n[i];return a?e[a]===t[a]&&r:r},!0);return r?Object.assign(Object.assign({},e),t):e}),sK=t=>{let e=(0,sp.Z)(t,["__data__","y"]),n=(0,sp.Z)(t,["__data__","y1"]),r=n-e,{__data__:{data:i,encode:a,transform:o},childNodes:l}=t.parentNode,s=sb(o,t=>{let{type:e}=t;return"normalizeY"===e}),c=(0,sp.Z)(a,["y","field"]),u=i[l.indexOf(t)][c];return function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return s||e?t/(1-t)/(r/(1-r))*u:t}},sX=(t,e)=>{let n=(0,sp.Z)(t,["__data__","seriesItems",e,"0","value"]),r=(0,sp.Z)(t,["__data__","seriesIndex",e]),{__data__:{data:i,encode:a,transform:o}}=t.parentNode,l=sb(o,t=>{let{type:e}=t;return"normalizeY"===e}),s=(0,sp.Z)(a,["y","field"]),c=i[r][s];return t=>l?1===n?t:t/(1-t)/(n/(1-n))*c:t},sJ=(t,e,n)=>{t.forEach((t,r)=>{t.attr("stroke",e[1]===r?n.activeStroke:n.stroke)})},s0=(t,e,n,r)=>{let i=new t4.y$({style:n}),a=new t4.xv({style:r});return e.appendChild(a),t.appendChild(i),[i,a]},s1=(t,e)=>{let n=(0,sp.Z)(t,["options","range","indexOf"]);if(!n)return;let r=t.options.range.indexOf(e);return t.sortedDomain[r]},s2=(t,e,n)=>{let r=(0,oX.kX)(t,e),i=(0,oX.kX)(t,n),a=i/r,o=t[0]+(e[0]-t[0])*a,l=t[1]+(e[1]-t[1])*a;return[o,l]};function s5(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{selection:e=[],precision:n=2}=t,r=sG(t,["selection","precision"]),i=Object.assign(Object.assign({},sq),r||{}),a=(0,H.hB)(i,"path"),o=(0,H.hB)(i,"label"),l=(0,H.hB)(i,"point");return(t,r,i)=>{let s;let{update:c,setState:u,container:f,view:d,options:{marks:h,coordinate:p}}=t,g=(0,oX.Ks)(f),m=(0,oX.$3)(g),y=e,{transform:v=[],type:x}=p,O=!!sb(v,t=>{let{type:e}=t;return"transpose"===e}),w="polar"===x,_="theta"===x,k=!!sb(m,t=>{let{markType:e}=t;return"area"===e});k&&(m=m.filter(t=>{let{markType:e}=t;return"area"===e}));let C=new t4.ZA({style:{zIndex:2}});g.appendChild(C);let j=()=>{i.emit("element-point:select",{nativeEvent:!0,data:{selection:y}})},M=(t,e)=>{i.emit("element-point:moved",{nativeEvent:!0,data:{changeData:t,data:e}})},S=t=>{let e=t.target;y=[e.parentNode.childNodes.indexOf(e)],j(),E(e)},A=t=>{let{data:{selection:e},nativeEvent:n}=t;if(n)return;y=e;let r=(0,sp.Z)(m,[null==y?void 0:y[0]]);r&&E(r)},E=t=>{let e;let{attributes:r,markType:i,__data__:p}=t,{stroke:g}=r,{points:m,seriesTitle:v,color:x,title:S,seriesX:A,y1:P}=p;if(O&&"interval"!==i)return;let{scale:R,coordinate:T}=(null==s?void 0:s.view)||d,{color:L,y:B,x:Z}=R,I=T.getCenter();C.removeChildren();let N=(t,e,n,r)=>sH(this,void 0,void 0,function*(){return u("elementPointMove",i=>{var a;let o=((null===(a=null==s?void 0:s.options)||void 0===a?void 0:a.marks)||h).map(i=>{if(!r.includes(i.type))return i;let{data:a,encode:o}=i,l=Object.keys(o),s=l.reduce((r,i)=>{let a=o[i];return"x"===i&&(r[a]=t),"y"===i&&(r[a]=e),"color"===i&&(r[a]=n),r},{}),c=sQ(s,a,o);return M(s,c),(0,b.Z)({},i,{data:c,animate:!1})});return Object.assign(Object.assign({},i),{marks:o})}),yield c("elementPointMove")});if(["line","area"].includes(i))m.forEach((r,i)=>{let c=Z.invert(A[i]);if(!c)return;let u=new t4.Cd({name:sY,style:Object.assign({cx:r[0],cy:r[1],fill:g},l)}),d=sX(t,i);u.addEventListener("mousedown",h=>{let p=T.output([A[i],0]),g=null==v?void 0:v.length;f.attr("cursor","move"),y[1]!==i&&(y[1]=i,j()),sJ(C.childNodes,y,l);let[b,O]=s0(C,u,a,o),_=t=>{let a=r[1]+t.clientY-e[1];if(k){if(w){let o=r[0]+t.clientX-e[0],[l,s]=s2(I,p,[o,a]),[,c]=T.output([1,B.output(0)]),[,f]=T.invert([l,c-(m[i+g][1]-s)]),h=(i+1)%g,y=(i-1+g)%g,x=(0,oX.r7)([m[y],[l,s],v[h]&&m[h]]);O.attr("text",d(B.invert(f)).toFixed(n)),b.attr("d",x),u.attr("cx",l),u.attr("cy",s)}else{let[,t]=T.output([1,B.output(0)]),[,e]=T.invert([r[0],t-(m[i+g][1]-a)]),o=(0,oX.r7)([m[i-1],[r[0],a],v[i+1]&&m[i+1]]);O.attr("text",d(B.invert(e)).toFixed(n)),b.attr("d",o),u.attr("cy",a)}}else{let[,t]=T.invert([r[0],a]),e=(0,oX.r7)([m[i-1],[r[0],a],m[i+1]]);O.attr("text",B.invert(t).toFixed(n)),b.attr("d",e),u.attr("cy",a)}};e=[h.clientX,h.clientY],window.addEventListener("mousemove",_);let M=()=>sH(this,void 0,void 0,function*(){if(f.attr("cursor","default"),window.removeEventListener("mousemove",_),f.removeEventListener("mouseup",M),(0,sW.Z)(O.attr("text")))return;let e=Number(O.attr("text")),n=s1(L,x);s=yield N(c,e,n,["line","area"]),O.remove(),b.remove(),E(t)});f.addEventListener("mouseup",M)}),C.appendChild(u)}),sJ(C.childNodes,y,l);else if("interval"===i){let r=[(m[0][0]+m[1][0])/2,m[0][1]];O?r=[m[0][0],(m[0][1]+m[1][1])/2]:_&&(r=m[0]);let c=sK(t),u=new t4.Cd({name:sY,style:Object.assign(Object.assign({cx:r[0],cy:r[1],fill:g},l),{stroke:l.activeStroke})});u.addEventListener("mousedown",l=>{f.attr("cursor","move");let d=s1(L,x),[h,p]=s0(C,u,a,o),g=t=>{if(O){let i=r[0]+t.clientX-e[0],[a]=T.output([B.output(0),B.output(0)]),[,o]=T.invert([a+(i-m[2][0]),r[1]]),l=(0,oX.r7)([[i,m[0][1]],[i,m[1][1]],m[2],m[3]],!0);p.attr("text",c(B.invert(o)).toFixed(n)),h.attr("d",l),u.attr("cx",i)}else if(_){let i=r[1]+t.clientY-e[1],a=r[0]+t.clientX-e[0],[o,l]=s2(I,[a,i],r),[s,f]=s2(I,[a,i],m[1]),d=T.invert([o,l])[1],g=P-d;if(g<0)return;let y=(0,oX.TC)(I,[[o,l],[s,f],m[2],m[3]],g>.5?1:0);p.attr("text",c(g,!0).toFixed(n)),h.attr("d",y),u.attr("cx",o),u.attr("cy",l)}else{let i=r[1]+t.clientY-e[1],[,a]=T.output([1,B.output(0)]),[,o]=T.invert([r[0],a-(m[2][1]-i)]),l=(0,oX.r7)([[m[0][0],i],[m[1][0],i],m[2],m[3]],!0);p.attr("text",c(B.invert(o)).toFixed(n)),h.attr("d",l),u.attr("cy",i)}};e=[l.clientX,l.clientY],window.addEventListener("mousemove",g);let y=()=>sH(this,void 0,void 0,function*(){if(f.attr("cursor","default"),f.removeEventListener("mouseup",y),window.removeEventListener("mousemove",g),(0,sW.Z)(p.attr("text")))return;let e=Number(p.attr("text"));s=yield N(S,e,d,[i]),p.remove(),h.remove(),E(t)});f.addEventListener("mouseup",y)}),C.appendChild(u)}};m.forEach((t,e)=>{y[0]===e&&E(t),t.addEventListener("click",S),t.addEventListener("mouseenter",sV),t.addEventListener("mouseleave",sU)});let P=t=>{let e=null==t?void 0:t.target;e&&(e.name===sY||m.includes(e))||(y=[],j(),C.removeChildren())};return i.on("element-point:select",A),i.on("element-point:unselect",P),f.addEventListener("mousedown",P),()=>{C.remove(),i.off("element-point:select",A),i.off("element-point:unselect",P),f.removeEventListener("mousedown",P),m.forEach(t=>{t.removeEventListener("click",S),t.removeEventListener("mouseenter",sV),t.removeEventListener("mouseleave",sU)})}}}var s3=n(89511),s6=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let s4=()=>t=>{let{children:e}=t;if(!Array.isArray(e))return[];let{x:n=0,y:r=0,width:i,height:a,data:o}=t;return e.map(t=>{var{data:e,x:l,y:s,width:c,height:u}=t;return Object.assign(Object.assign({},s6(t,["data","x","y","width","height"])),{data:(0,s3.b3)(e,o),x:null!=l?l:n,y:null!=s?s:r,width:null!=c?c:i,height:null!=u?u:a})})};s4.props={};var s8=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let s7=()=>t=>{let{children:e}=t;if(!Array.isArray(e))return[];let{direction:n="row",ratio:r=e.map(()=>1),padding:i=0,data:a}=t,[o,l,s,c]="col"===n?["y","height","width","x"]:["x","width","height","y"],u=r.reduce((t,e)=>t+e),f=t[l]-i*(e.length-1),d=r.map(t=>f*(t/u)),h=[],p=t[o]||0;for(let n=0;n1?e-1:0),r=1;re.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let cr=(0,s3.l7)(t=>{let{encode:e,data:n,scale:r,shareSize:i=!1}=t,{x:a,y:o}=e,l=(t,e)=>{var a;if(void 0===t||!i)return{};let o=(0,tp.ZP)(n,e=>e[t]),l=(null===(a=null==r?void 0:r[e])||void 0===a?void 0:a.domain)||Array.from(o.keys()),s=l.map(t=>o.has(t)?o.get(t).length:1);return{domain:l,flex:s}};return{scale:{x:Object.assign(Object.assign({paddingOuter:0,paddingInner:.1,guide:void 0===a?null:{position:"top"}},void 0===a&&{paddingInner:0}),l(a,"x")),y:Object.assign(Object.assign({range:[0,1],paddingOuter:0,paddingInner:.1,guide:void 0===o?null:{position:"right"}},void 0===o&&{paddingInner:0}),l(o,"y"))}}}),ci=(0,s3.l7)(t=>{let e,n,r;let{data:i,scale:a}=t,o=[t];for(;o.length;){let t=o.shift(),{children:i,encode:a={},scale:l={},legend:s={}}=t,{color:c}=a,{color:u}=l,{color:f}=s;void 0!==c&&(e=c),void 0!==u&&(n=u),void 0!==f&&(r=f),Array.isArray(i)&&o.push(...i)}let l="string"==typeof e?e:"",[s,c]=(()=>{var t;let n=null===(t=null==a?void 0:a.color)||void 0===t?void 0:t.domain;if(void 0!==n)return[n];if(void 0===e)return[void 0];let r="function"==typeof e?e:t=>t[e],o=i.map(r);return o.some(t=>"number"==typeof t)?[(0,s9.Z)(o)]:[Array.from(new Set(o)),"ordinal"]})();return{encode:{color:e},scale:{color:(0,b.Z)({},n,{domain:s,type:c})},legend:{color:(0,b.Z)({title:l},r)}}}),ca=(0,s3.l7)(()=>({animate:{enterType:"fadeIn"}})),co=(0,s3.ev)(()=>({frame:!1,encode:{shape:"hollow"},style:{lineWidth:0}})),cl=(0,s3.ev)(()=>({type:"cell"})),cs=(0,s3.ev)(t=>{let{data:e}=t;return{data:{type:"inline",value:e,transform:[{type:"custom",callback:()=>{let{data:e,encode:n}=t,{x:r,y:i}=n,a=r?Array.from(new Set(e.map(t=>t[r]))):[],o=i?Array.from(new Set(e.map(t=>t[i]))):[];return(()=>{if(a.length&&o.length){let t=[];for(let e of a)for(let n of o)t.push({[r]:e,[i]:n});return t}return a.length?a.map(t=>({[r]:t})):o.length?o.map(t=>({[i]:t})):void 0})()}}]}}}),cc=(0,s3.ev)(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cu,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:cd,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ch,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},{data:a,encode:o,children:l,scale:s,x:c=0,y:u=0,shareData:f=!1,key:d}=t,{value:h}=a,{x:p,y:g}=o,{color:m}=s,{domain:y}=m;return{children:(t,a,o)=>{let{x:s,y:m}=a,{paddingLeft:v,paddingTop:x,marginLeft:O,marginTop:w}=o,{domain:_}=s.getOptions(),{domain:k}=m.getOptions(),C=(0,ce.cq)(t),j=t.map(e),M=t.map(t=>{let{x:e,y:n}=t;return[s.invert(e),m.invert(n)]}),S=M.map(t=>{let[e,n]=t;return t=>{let{[p]:r,[g]:i}=t;return(void 0===p||r===e)&&(void 0===g||i===n)}}),A=S.map(t=>h.filter(t)),E=f?(0,rS.Z)(A,t=>t.length):void 0,P=M.map(t=>{let[e,n]=t;return{columnField:p,columnIndex:_.indexOf(e),columnValue:e,columnValuesLength:_.length,rowField:g,rowIndex:k.indexOf(n),rowValue:n,rowValuesLength:k.length}}),R=P.map(t=>Array.isArray(l)?l:[l(t)].flat(1));return C.flatMap(t=>{let[e,a,o,l]=j[t],s=P[t],f=A[t],m=R[t];return m.map(m=>{var _,k,{scale:C,key:j,facet:M=!0,axis:S={},legend:A={}}=m,P=cn(m,["scale","key","facet","axis","legend"]);let R=(null===(_=null==C?void 0:C.y)||void 0===_?void 0:_.guide)||S.y,T=(null===(k=null==C?void 0:C.x)||void 0===k?void 0:k.guide)||S.x,L=M?f:0===f.length?[]:h,B={x:cp(T,n)(s,L),y:cp(R,r)(s,L)};return Object.assign(Object.assign({key:"".concat(j,"-").concat(t),data:L,margin:0,x:e+v+c+O,y:a+x+u+w,parentKey:d,width:o,height:l,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!!L.length,dataDomain:E,scale:(0,b.Z)({x:{tickCount:p?5:void 0},y:{tickCount:g?5:void 0}},C,{color:{domain:y}}),axis:(0,b.Z)({},S,B),legend:!1},P),i)})})}}});function cu(t){let{points:e}=t;return(0,tO.PY)(e)}function cf(t,e){return e.length?(0,b.Z)({title:!1,tick:null,label:null},t):(0,b.Z)({title:!1,tick:null,label:null,grid:null},t)}function cd(t){return(e,n)=>{let{rowIndex:r,rowValuesLength:i,columnIndex:a,columnValuesLength:o}=e;if(r!==i-1)return cf(t,n);let l=n.length?void 0:null;return(0,b.Z)({title:a===o-1&&void 0,grid:l},t)}}function ch(t){return(e,n)=>{let{rowIndex:r,columnIndex:i}=e;if(0!==i)return cf(t,n);let a=n.length?void 0:null;return(0,b.Z)({title:0===r&&void 0,grid:a},t)}}function cp(t,e){return"function"==typeof t?t:null===t||!1===t?()=>null:e(t)}let cg=()=>t=>{let e=ct.of(t).call(cl).call(ci).call(ca).call(cr).call(co).call(cs).call(cc).value();return[e]};cg.props={};var cm=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let cy=(0,s3.l7)(t=>({scale:{x:{guide:null,paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}})),cv=(0,s3.ev)(t=>{let{data:e,children:n,x:r=0,y:i=0,key:a}=t;return{children:(t,o,l)=>{let{x:s,y:c}=o,{paddingLeft:u,paddingTop:f,marginLeft:d,marginTop:h}=l,{domain:p}=s.getOptions(),{domain:g}=c.getOptions(),m=(0,ce.cq)(t),y=t.map(t=>{let{points:e}=t;return(0,tO.PY)(e)}),v=t.map(t=>{let{x:e,y:n}=t;return[s.invert(e),c.invert(n)]}),x=v.map(t=>{let[e,n]=t;return{columnField:e,columnIndex:p.indexOf(e),columnValue:e,columnValuesLength:p.length,rowField:n,rowIndex:g.indexOf(n),rowValue:n,rowValuesLength:g.length}}),O=x.map(t=>Array.isArray(n)?n:[n(t)].flat(1));return m.flatMap(t=>{let[n,o,l,s]=y[t],[c,p]=v[t],g=x[t],m=O[t];return m.map(m=>{var y,v;let{scale:x,key:O,encode:w,axis:_,interaction:k}=m,C=cm(m,["scale","key","encode","axis","interaction"]),j=null===(y=null==x?void 0:x.y)||void 0===y?void 0:y.guide,M=null===(v=null==x?void 0:x.x)||void 0===v?void 0:v.guide,S={x:("function"==typeof M?M:null===M?()=>null:(t,e)=>{let{rowIndex:n,rowValuesLength:r}=t;if(n!==r-1)return cf(M,e)})(g,e),y:("function"==typeof j?j:null===j?()=>null:(t,e)=>{let{columnIndex:n}=t;if(0!==n)return cf(j,e)})(g,e)};return Object.assign({data:e,parentKey:a,key:"".concat(O,"-").concat(t),x:n+u+r+d,y:o+f+i+h,width:l,height:s,margin:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!0,scale:(0,b.Z)({x:{facet:!1},y:{facet:!1}},x),axis:(0,b.Z)({x:{tickCount:5},y:{tickCount:5}},_,S),legend:!1,encode:(0,b.Z)({},w,{x:c,y:p}),interaction:(0,b.Z)({},k,{legendFilter:!1})},C)})})}}}),cb=(0,s3.ev)(t=>{let{encode:e}=t,n=cm(t,["encode"]),{position:r=[],x:i=r,y:a=[...r].reverse()}=e,o=cm(e,["position","x","y"]),l=[];for(let t of[i].flat(1))for(let e of[a].flat(1))l.push({$x:t,$y:e});return Object.assign(Object.assign({},n),{data:l,encode:Object.assign(Object.assign({},o),{x:"$x",y:"$y"}),scale:Object.assign(Object.assign({},1===[i].flat(1).length&&{x:{paddingInner:0}}),1===[a].flat(1).length&&{y:{paddingInner:0}})})}),cx=()=>t=>{let e=ct.of(t).call(cl).call(ci).call(cv).call(cb).call(ca).call(co).call(cy).value();return[e]};var cO=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let cw=(0,s3.l7)(t=>({scale:{x:{guide:{type:"axisArc"},paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}})),c_=(0,s3.l7)(t=>({coordinate:{type:"polar"}})),ck=t=>{let{encode:e}=t,n=cO(t,["encode"]),{position:r}=e;return Object.assign(Object.assign({},n),{encode:{x:r}})};function cC(t){return t=>null}function cj(t){let{points:e}=t,[n,r,i,a]=e,o=(0,tO.TK)(n,a),l=(0,tO.lu)(n,a),s=(0,tO.lu)(r,i),c=(0,tO.dI)(l,s),u=1/Math.sin(c/2),f=o/(1+u),d=f*Math.sqrt(2),[h,p]=i,g=(0,tO.SH)(l),m=g+c/2,y=f*u,v=h+y*Math.sin(m),b=p-y*Math.cos(m);return[v-d/2,b-d/2,d,d]}let cM=()=>t=>{let e=ct.of(t).call(cl).call(ck).call(ci).call(c_).call(cs).call(cc,cj,cC,cC,{frame:!1}).call(ca).call(co).call(cw).value();return[e]},cS=()=>t=>{let{children:e=[],duration:n=1e3,iterationCount:r=1,direction:i="normal",easing:a="ease-in-out-sine"}=t,o=e.length;if(!Array.isArray(e)||0===o)return[];let{key:l}=e[0],s=e.map(t=>Object.assign(Object.assign({},t),{key:l})).map(t=>(function(t,e,n){let r=[t];for(;r.length;){let t=r.pop();t.animate=(0,b.Z)({enter:{duration:e},update:{duration:e,easing:n,type:"morphing",fill:"both"},exit:{type:"fadeOut",duration:e}},t.animate||{});let{children:i}=t;Array.isArray(i)&&r.push(...i)}return t})(t,n,a));return function*(){let t,e=0;for(;"infinite"===r||e{var e;return[t,null===(e=k(r,t))||void 0===e?void 0:e[0]]}).filter(t=>{let[,e]=t;return(0,H.ri)(e)});return Array.from((0,tp.ZP)(e,t=>i.map(e=>{let[,n]=e;return n[t]}).join("-")).values())}function cR(t){return Array.isArray(t)?(e,n,r)=>(n,r)=>t.reduce((t,i)=>0!==t?t:(0,cA.Z)(e[n][i],e[r][i]),0):"function"==typeof t?(e,n,r)=>cD(n=>t(e[n])):"series"===t?cB:"value"===t?cZ:"sum"===t?cI:"maxIndex"===t?cN:()=>null}function cT(t,e){for(let n of t)n.sort(e)}function cL(t,e){return(null==e?void 0:e.domain)||Array.from(new Set(t))}function cB(t,e,n){return cD(t=>n[t])}function cZ(t,e,n){return cD(t=>e[t])}function cI(t,e,n){let r=(0,ce.cq)(t),i=Array.from((0,tp.ZP)(r,t=>n[+t]).entries()),a=new Map(i.map(t=>{let[n,r]=t;return[n,r.reduce((t,n)=>t+ +e[n])]}));return cD(t=>a.get(n[t]))}function cN(t,e,n){let r=(0,ce.cq)(t),i=Array.from((0,tp.ZP)(r,t=>n[+t]).entries()),a=new Map(i.map(t=>{let[n,r]=t;return[n,(0,cE.Z)(r,t=>e[t])]}));return cD(t=>a.get(n[t]))}function cD(t){return(e,n)=>(0,cA.Z)(t(e),t(n))}let cz=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{groupBy:e="x",orderBy:n=null,reverse:r=!1,y:i="y",y1:a="y1",series:o=!0}=t;return(t,l)=>{let{data:s,encode:c,style:u={}}=l,[f,d]=k(c,"y"),[h,p]=k(c,"y1"),[g]=o?C(c,"series","color"):k(c,"color"),m=cP(e,t,l),y=cR(n),v=y(s,f,g);v&&cT(m,v);let w=Array(t.length),_=Array(t.length),j=Array(t.length),M=[],S=[];for(let t of m){r&&t.reverse();let e=h?+h[t[0]]:0,n=[],i=[];for(let r of t){let t=j[r]=+f[r]-e;t<0?i.push(r):t>=0&&n.push(r)}let a=n.length>0?n:i,o=i.length>0?i:n,l=n.length-1,s=0;for(;l>0&&0===f[a[l]];)l--;for(;s0?u=w[t]=(_[t]=u)+e:w[t]=_[t]=u}}let A=new Set(M),E=new Set(S),P="y"===i?w:_,R="y"===a?w:_;return[t,(0,b.Z)({},l,{encode:{y0:O(f,d),y:x(P,d),y1:x(R,p)},style:Object.assign({first:(t,e)=>A.has(e),last:(t,e)=>E.has(e)},u)})]}};function cF(t,e){let n=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&++n;else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(i=+i)>=i&&++n}return n}function c$(t,e){let n=function(t,e){let n,r=0,i=0,a=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(n=e-i,i+=n/++r,a+=n*(e-i));else{let o=-1;for(let l of t)null!=(l=e(l,++o,t))&&(l=+l)>=l&&(n=l-i,i+=n/++r,a+=n*(l-i))}if(r>1)return a/(r-1)}(t,e);return n?Math.sqrt(n):n}cz.props={};var cW=Array.prototype,cH=cW.slice;function cG(t){return function(){return t}}cW.map;var cq=n(10874),cY=Math.sqrt(50),cV=Math.sqrt(10),cU=Math.sqrt(2);function cQ(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=cY?10:a>=cV?5:a>=cU?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=cY?10:a>=cV?5:a>=cU?2:1)}function cK(t){return Math.ceil(Math.log(cF(t))/Math.LN2)+1}function cX(t,e,n){let r=t[e];t[e]=t[n],t[n]=r}var cJ=n(62921);function c0(t,e,n){if(r=(t=Float64Array.from((0,cJ.K)(t,n))).length){if((e=+e)<=0||r<2)return(0,rM.Z)(t);if(e>=1)return(0,rS.Z)(t);var r,i=(r-1)*e,a=Math.floor(i),o=(0,rS.Z)((function t(e,n,r=0,i=e.length-1,a=cA.Z){for(;i>r;){if(i-r>600){let o=i-r+1,l=n-r+1,s=Math.log(o),c=.5*Math.exp(2*s/3),u=.5*Math.sqrt(s*c*(o-c)/o)*(l-o/2<0?-1:1),f=Math.max(r,Math.floor(n-l*c/o+u)),d=Math.min(i,Math.floor(n+(o-l)*c/o+u));t(e,n,f,d,a)}let o=e[n],l=r,s=i;for(cX(e,r,n),a(e[i],o)>0&&cX(e,r,i);la(e[l],o);)++l;for(;a(e[s],o)>0;)--s}0===a(e[r],o)?cX(e,r,s):cX(e,++s,i),s<=n&&(r=s+1),n<=s&&(i=s-1)}return e})(t,a).subarray(0,a+1));return o+((0,rM.Z)(t.subarray(a+1))-o)*(i-a)}}var c1=n(90155),c2=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function c5(t){return e=>null===e?t:"".concat(t," of ").concat(e)}function c3(){let t=c5("mean");return[(t,e)=>lo(t,t=>+e[t]),t]}function c6(){let t=c5("median");return[(t,e)=>c0(t,.5,t=>+e[t]),t]}function c4(){let t=c5("max");return[(t,e)=>(0,rS.Z)(t,t=>+e[t]),t]}function c8(){let t=c5("min");return[(t,e)=>(0,rM.Z)(t,t=>+e[t]),t]}function c7(){let t=c5("count");return[(t,e)=>t.length,t]}function c9(){let t=c5("sum");return[(t,e)=>(0,c1.Z)(t,t=>+e[t]),t]}function ut(){let t=c5("first");return[(t,e)=>e[t[0]],t]}function ue(){let t=c5("last");return[(t,e)=>e[t[t.length-1]],t]}let un=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{groupBy:e}=t,n=c2(t,["groupBy"]);return(t,r)=>{let{data:i,encode:a}=r,o=e(t,r);if(!o)return[t,r];let l=(t,e)=>{if(t)return t;let{from:n}=e;if(!n)return t;let[,r]=k(a,n);return r},s=Object.entries(n).map(t=>{let[e,n]=t,[r,s]=function(t){if("function"==typeof t)return[t,null];let e={mean:c3,max:c4,count:c7,first:ut,last:ue,sum:c9,min:c8,median:c6}[t];if(!e)throw Error("Unknown reducer: ".concat(t,"."));return e()}(n),[c,u]=k(a,e),f=l(u,n),d=o.map(t=>r(t,null!=c?c:i));return[e,Object.assign(Object.assign({},function(t,e){let n=x(t,e);return Object.assign(Object.assign({},n),{constant:!1})}(d,(null==s?void 0:s(f))||f)),{aggregate:!0})]}),c=Object.keys(a).map(t=>{let[e,n]=k(a,t),r=o.map(t=>e[t[0]]);return[t,x(r,n)]}),u=o.map(t=>i[t[0]]),f=(0,ce.cq)(o);return[f,(0,b.Z)({},r,{data:u,encode:Object.fromEntries([...c,...s])})]}};un.props={};var ur=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let ui="thresholds",ua=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{groupChannels:e=["color"],binChannels:n=["x","y"]}=t,r=ur(t,["groupChannels","binChannels"]),i={};return un(Object.assign(Object.assign(Object.assign({},Object.fromEntries(Object.entries(r).filter(t=>{let[e]=t;return!e.startsWith(ui)}))),Object.fromEntries(n.flatMap(t=>{let e=e=>{let[n]=e;return+i[t].get(n).split(",")[1]};return e.from=t,[[t,e=>{let[n]=e;return+i[t].get(n).split(",")[0]}],["".concat(t,"1"),e]]}))),{groupBy:(t,a)=>{let{encode:o}=a,l=n.map(t=>{let[e]=k(o,t);return e}),s=(0,H.hB)(r,ui),c=t.filter(t=>l.every(e=>(0,H.ri)(e[t]))),u=[...e.map(t=>{let[e]=k(o,t);return e}).filter(H.ri).map(t=>e=>t[e]),...n.map((t,e)=>{let n=l[e],r=s[t]||function(t){let[e,n]=(0,s9.Z)(t);return Math.min(200,Math.ceil((n-e)/(3.5*c$(t)*Math.pow(cF(t),-1/3))))}(n),a=(function(){var t=cq.Z,e=s9.Z,n=cK;function r(r){Array.isArray(r)||(r=Array.from(r));var i,a,o=r.length,l=Array(o);for(i=0;i0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}(c,u,n)),(f=function(t,e,n){var r,i,a,o,l=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e0){let n=Math.round(t/o),r=Math.round(e/o);for(n*oe&&--r,a=Array(i=r-n+1);++le&&--r,a=Array(i=r-n+1);++l=u){if(t>=u&&e===s9.Z){let t=cQ(c,u,n);isFinite(t)&&(t>0?u=(Math.floor(u/t)+1)*t:t<0&&(u=-((Math.ceil(-(u*t))+1)/t)))}else f.pop()}}for(var d=f.length;f[0]<=c;)f.shift(),--d;for(;f[d-1]>u;)f.pop(),--d;var h,p=Array(d+1);for(i=0;i<=d;++i)(h=p[i]=[]).x0=i>0?f[i-1]:c,h.x1=i+n[t])(c),o=new Map(a.flatMap(t=>{let{x0:e,x1:n}=t,r="".concat(e,",").concat(n);return t.map(t=>[t,r])}));return i[t]=o,t=>o.get(t)})];return Array.from((0,tp.ZP)(c,t=>u.map(e=>e(t)).join("-")).values())}}))};ua.props={};let uo=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{thresholds:e}=t;return ua(Object.assign(Object.assign({},t),{thresholdsX:e,groupChannels:["color"],binChannels:["x"]}))};uo.props={};var ul=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let us=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{groupBy:e="x",reverse:n=!1,orderBy:r,padding:i}=t;return ul(t,["groupBy","reverse","orderBy","padding"]),(t,a)=>{let{data:o,encode:l,scale:s}=a,{series:c}=s,[u]=k(l,"y"),[f]=C(l,"series","color"),d=cL(f,c),h=cP(e,t,a),p=cR(r),g=p(o,u,f);g&&cT(h,g);let m=Array(t.length);for(let t of h){n&&t.reverse();for(let e=0;e0&&void 0!==arguments[0]?arguments[0]:{},{padding:e=0,paddingX:n=e,paddingY:r=e,random:i=Math.random}=t;return(t,e)=>{let{encode:a,scale:o}=e,{x:l,y:s}=o,[c]=k(a,"x"),[u]=k(a,"y"),f=uc(c,l,n),d=uc(u,s,r),h=t.map(()=>(function(t,e,n){return e*(1-t)+n*t})(i(),...d)),p=t.map(()=>(function(t,e,n){return e*(1-t)+n*t})(i(),...f));return[t,(0,b.Z)({scale:{x:{padding:.5},y:{padding:.5}}},e,{encode:{dy:x(h),dx:x(p)}})]}};uu.props={};let uf=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{padding:e=0,random:n=Math.random}=t;return(t,r)=>{let{encode:i,scale:a}=r,{x:o}=a,[l]=k(i,"x"),s=uc(l,o,e),c=t.map(()=>(function(t,e,n){return e*(1-t)+n*t})(n(),...s));return[t,(0,b.Z)({scale:{x:{padding:.5}}},r,{encode:{dx:x(c)}})]}};uf.props={};let ud=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{padding:e=0,random:n=Math.random}=t;return(t,r)=>{let{encode:i,scale:a}=r,{y:o}=a,[l]=k(i,"y"),s=uc(l,o,e),c=t.map(()=>(function(t,e,n){return e*(1-t)+n*t})(n(),...s));return[t,(0,b.Z)({scale:{y:{padding:.5}}},r,{encode:{dy:x(c)}})]}};ud.props={};var uh=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let up=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{groupBy:e="x"}=t;return(t,n)=>{let{encode:r}=n,{x:i}=r,a=uh(r,["x"]),o=Object.entries(a).filter(t=>{let[e]=t;return e.startsWith("y")}).map(t=>{let[e]=t;return[e,k(r,e)[0]]}),l=o.map(e=>{let[n]=e;return[n,Array(t.length)]}),s=cP(e,t,n),c=Array(s.length);for(let t=0;to.map(e=>{let[,n]=e;return+n[t]})),[r,i]=(0,s9.Z)(n);c[t]=(r+i)/2}let u=Math.max(...c);for(let t=0;t{let[e,n]=t;return[e,x(n,k(r,e)[1])]}))})]}};up.props={};let ug=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{groupBy:e="x",series:n=!0}=t;return(t,r)=>{let{encode:i}=r,[a]=k(i,"y"),[o,l]=k(i,"y1"),[s]=n?C(i,"series","color"):k(i,"color"),c=cP(e,t,r),u=Array(t.length);for(let t of c){let e=t.map(t=>+a[t]);for(let n=0;ne!==n));u[r]=a[r]>i?i:a[r]}}return[t,(0,b.Z)({},r,{encode:{y1:x(u,l)}})]}};ug.props={};let um=t=>{let{groupBy:e=["x"],reducer:n=(t,e)=>e[t[0]],orderBy:r=null,reverse:i=!1,duration:a}=t;return(t,o)=>{let{encode:l}=o,s=Array.isArray(e)?e:[e],c=s.map(t=>[t,k(l,t)[0]]);if(0===c.length)return[t,o];let u=[t];for(let[,t]of c){let e=[];for(let n of u){let r=Array.from((0,tp.ZP)(n,e=>t[e]).values());e.push(...r)}u=e}if(r){let[t]=k(l,r);t&&u.sort((e,r)=>n(e,t)-n(r,t)),i&&u.reverse()}let f=(a||3e3)/u.length,[d]=a?[_(t,f)]:C(l,"enterDuration",_(t,f)),[h]=C(l,"enterDelay",_(t,0)),p=Array(t.length);for(let t=0,e=0;t+d[t]);for(let t of n)p[t]=+h[t]+e;e+=r}return[t,(0,b.Z)({},o,{encode:{enterDuration:w(d),enterDelay:w(p)}})]}};um.props={};var uy=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let uv=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{groupBy:e="x",basis:n="max"}=t;return(t,r)=>{let{encode:i,tooltip:a}=r,{x:o}=i,l=uy(i,["x"]),s=Object.entries(l).filter(t=>{let[e]=t;return e.startsWith("y")}).map(t=>{let[e]=t;return[e,k(i,e)[0]]}),[,c]=s.find(t=>{let[e]=t;return"y"===e}),u=s.map(e=>{let[n]=e;return[n,Array(t.length)]}),f=cP(e,t,r),d="function"==typeof n?n:({min:(t,e)=>(0,rM.Z)(t,t=>e[+t]),max:(t,e)=>(0,rS.Z)(t,t=>e[+t]),first:(t,e)=>e[t[0]],last:(t,e)=>e[t[t.length-1]],mean:(t,e)=>lo(t,t=>e[+t]),median:(t,e)=>c0(t,.5,t=>e[+t]),sum:(t,e)=>(0,c1.Z)(t,t=>e[+t]),deviation:(t,e)=>c$(t,t=>e[+t])})[n]||rS.Z;for(let t of f){let e=d(t,c);for(let n of t)for(let t=0;t{let[e,n]=t;return[e,x(n,k(i,e)[1])]}))},!h&&i.y0&&{tooltip:{items:[{channel:"y0"}]}}))]}};function ub(t,e){return[t[0]]}function ux(t,e){let n=t.length-1;return[t[n]]}function uO(t,e){let n=(0,cE.Z)(t,t=>e[t]);return[t[n]]}function uw(t,e){let n=la(t,t=>e[t]);return[t[n]]}uv.props={};let u_=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{groupBy:e="series",channel:n,selector:r}=t;return(t,i)=>{let{encode:a}=i,o=cP(e,t,i),[l]=k(a,n),s="function"==typeof r?r:({first:ub,last:ux,max:uO,min:uw})[r]||ub;return[o.flatMap(t=>s(t,l)),i]}};u_.props={};var uk=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let uC=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{selector:e}=t,n=uk(t,["selector"]);return u_(Object.assign({channel:"x",selector:e},n))};uC.props={};var uj=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let uM=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{selector:e}=t,n=uj(t,["selector"]);return u_(Object.assign({channel:"y",selector:e},n))};uM.props={};var uS=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let uA=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{channels:e=["x","y"]}=t,n=uS(t,["channels"]);return un(Object.assign(Object.assign({},n),{groupBy:(t,n)=>cP(e,t,n)}))};uA.props={};let uE=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return uA(Object.assign(Object.assign({},t),{channels:["x","color","series"]}))};uE.props={};let uP=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return uA(Object.assign(Object.assign({},t),{channels:["y","color","series"]}))};uP.props={};let uR=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return uA(Object.assign(Object.assign({},t),{channels:["color"]}))};uR.props={};var uT=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let uL=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{reverse:e=!1,slice:n,channel:r,ordinal:i=!0}=t,a=uT(t,["reverse","slice","channel","ordinal"]);return(t,o)=>i?function(t,e,n){var r,i;let{reverse:a,slice:o,channel:l}=n,s=uT(n,["reverse","slice","channel"]),{encode:c,scale:u={}}=e,f=null===(r=u[l])||void 0===r?void 0:r.domain,[d]=k(c,l),h=function(t,e,n){let{by:r=t,reducer:i="max"}=e,[a]=k(n,r);if("function"==typeof i)return t=>i(t,a);if("max"===i)return t=>(0,rS.Z)(t,t=>+a[t]);if("min"===i)return t=>(0,rM.Z)(t,t=>+a[t]);if("sum"===i)return t=>(0,c1.Z)(t,t=>+a[t]);if("median"===i)return t=>c0(t,.5,t=>+a[t]);if("mean"===i)return t=>lo(t,t=>+a[t]);if("first"===i)return t=>a[t[0]];if("last"===i)return t=>a[t[t.length-1]];throw Error("Unknown reducer: ".concat(i))}(l,s,c),p=function(t,e,n){if(!Array.isArray(n))return t;let r=new Set(n);return t.filter(t=>r.has(e[t]))}(t,d,f),g=(i=t=>d[t],(1===h.length?(0,o9.Z)((0,tp.jJ)(p,h,i),([t,e],[n,r])=>(0,cA.Z)(e,r)||(0,cA.Z)(t,n)):(0,o9.Z)((0,tp.ZP)(p,i),([t,e],[n,r])=>h(e,r)||(0,cA.Z)(t,n))).map(([t])=>t));a&&g.reverse();let m=o?g.slice(..."number"==typeof o?[0,o]:o):g;return[t,(0,b.Z)(e,{scale:{[l]:{domain:m}}})]}(t,o,Object.assign({reverse:e,slice:n,channel:r},a)):function(t,e,n){let{reverse:r,channel:i}=n,{encode:a}=e,[o]=k(a,i),l=(0,o9.Z)(t,t=>o[t]);return r&&l.reverse(),[l,e]}(t,o,Object.assign({reverse:e,slice:n,channel:r},a))};uL.props={};let uB=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return uL(Object.assign(Object.assign({},t),{channel:"x"}))};uB.props={};let uZ=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return uL(Object.assign(Object.assign({},t),{channel:"y"}))};uZ.props={};let uI=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return uL(Object.assign(Object.assign({},t),{channel:"color"}))};uI.props={};let uN=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{field:e,channel:n="y",reducer:r="sum"}=t;return(t,i)=>{let{data:a,encode:o}=i,[l]=k(o,"x"),s=e?"string"==typeof e?a.map(t=>t[e]):a.map(e):k(o,n)[0],c=function(t,e){if("function"==typeof t)return n=>t(n,e);if("sum"===t)return t=>(0,c1.Z)(t,t=>+e[t]);throw Error("Unknown reducer: ".concat(t))}(r,s),u=(0,tp.Q3)(t,c,t=>l[t]).map(t=>t[1]);return[t,(0,b.Z)({},i,{scale:{x:{flex:u}}})]}};uN.props={};let uD=t=>(e,n)=>[e,(0,b.Z)({},n,{modifier:function(t){let{padding:e=0,direction:n="col"}=t;return(t,r,i)=>{let a=t.length;if(0===a)return[];let{innerWidth:o,innerHeight:l}=i,s=Math.ceil(Math.sqrt(r/(l/o))),c=o/s,u=Math.ceil(r/s),f=u*c;for(;f>l;)s+=1,c=o/s,f=(u=Math.ceil(r/s))*c;let d=l-u*c,h=u<=1?0:d/(u-1),[p,g]=u<=1?[(o-a*c)/(a-1),(l-c)/2]:[0,0];return t.map((t,r)=>{let[i,a,o,l]=(0,tO.PY)(t),f="col"===n?r%s:Math.floor(r/u),m="col"===n?Math.floor(r/s):r%u,y=f*c,v=(u-m-1)*c+d,b=(c-e)/o,x=(c-e)/l;return"translate(".concat(y-i+p*f+.5*e,", ").concat(v-a-h*m-g+.5*e,") scale(").concat(b,", ").concat(x,")")})}}(t),axis:!1})];function uz(t,e,n,r){let i,a,o;let l=t.length;if(r>=l||0===r)return t;let s=n=>1*e[t[n]],c=e=>1*n[t[e]],u=[],f=(l-2)/(r-2),d=0;u.push(d);for(let t=0;ti&&(i=a,o=g);u.push(o),d=o}return u.push(l-1),u.map(e=>t[e])}uD.props={};let uF=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{strategy:e="median",thresholds:n=2e3,groupBy:i=["series","color"]}=t,a=function(t){if("function"==typeof t)return t;if("lttb"===t)return uz;let e={first:t=>[t[0]],last:t=>[t[t.length-1]],min:(t,e,n)=>[t[la(t,t=>n[t])]],max:(t,e,n)=>[t[(0,cE.Z)(t,t=>n[t])]],median:(t,e,n)=>[t[(0,r.medianIndex)(t,t=>n[t])]]},n=e[t]||e.median;return(t,e,r,i)=>{let a=Math.max(1,Math.floor(t.length/i)),o=function(t,e){let n=t.length,r=[],i=0;for(;in(t,e,r))}}(e);return(t,e)=>{let{encode:r}=e,o=cP(i,t,e),[l]=k(r,"x"),[s]=k(r,"y");return[o.flatMap(t=>a(t,l,s,n)),e]}};uF.props={};let u$=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e,n)=>{let{encode:r,data:i}=n,a=Object.entries(t).map(t=>{let[e,n]=t,[i]=k(r,e);if(!i)return null;let[a,o=!0]="object"==typeof n?[n.value,n.ordinal]:[n,!0];if("function"==typeof a)return t=>a(i[t]);if(o){let t=Array.isArray(a)?a:[a];return 0===t.length?null:e=>t.includes(i[e])}{let[t,e]=a;return n=>i[n]>=t&&i[n]<=e}}).filter(H.ri);if(0===a.length)return[e,n];let o=e.filter(t=>a.every(e=>e(t))),l=o.map((t,e)=>e),s=Object.entries(r).map(t=>{let[e,n]=t;return[e,Object.assign(Object.assign({},n),{value:l.map(t=>n.value[o[t]]).filter(t=>void 0!==t)})]});return[l,(0,b.Z)({},n,{encode:Object.fromEntries(s),data:o.map(t=>i[t])})]}};u$.props={};var uW={},uH={};function uG(t){return Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'}).join(",")+"}")}function uq(t){var e=Object.create(null),n=[];return t.forEach(function(t){for(var r in t)r in e||n.push(e[r]=r)}),n}function uY(t,e){var n=t+"",r=n.length;return r{let{value:e,format:n=e.split(".").pop(),delimiter:r=",",autoType:i=!0}=t;return()=>{var t,a,o,l;return t=void 0,a=void 0,o=void 0,l=function*(){let t=yield fetch(e);if("csv"===n){let e=yield t.text();return(function(t){var e=RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function r(t,e){var r,i=[],a=t.length,o=0,l=0,s=a<=0,c=!1;function u(){if(s)return uH;if(c)return c=!1,uW;var e,r,i=o;if(34===t.charCodeAt(i)){for(;o++=a?s=!0:10===(r=t.charCodeAt(o++))?c=!0:13===r&&(c=!0,10===t.charCodeAt(o)&&++o),t.slice(i+1,e-1).replace(/""/g,'"')}for(;o9999?"+"+uY(l,6):uY(l,4))+"-"+uY(n.getUTCMonth()+1,2)+"-"+uY(n.getUTCDate(),2)+(o?"T"+uY(r,2)+":"+uY(i,2)+":"+uY(a,2)+"."+uY(o,3)+"Z":a?"T"+uY(r,2)+":"+uY(i,2)+":"+uY(a,2)+"Z":i||r?"T"+uY(r,2)+":"+uY(i,2)+"Z":"")):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,i,a=r(t,function(t,r){var a;if(n)return n(t,r-1);i=t,n=e?(a=uG(t),function(n,r){return e(a(n),r,t)}):uG(t)});return a.columns=i||[],a},parseRows:r,format:function(e,n){return null==n&&(n=uq(e)),[n.map(o).join(t)].concat(i(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=uq(t)),i(t,e).join("\n")},formatRows:function(t){return t.map(a).join("\n")},formatRow:a,formatValue:o}})(r).parse(e,i?uV:H.yR)}if("json"===n)return yield t.json();throw Error("Unknown format: ".concat(n,"."))},new(o||(o=Promise))(function(e,n){function r(t){try{s(l.next(t))}catch(t){n(t)}}function i(t){try{s(l.throw(t))}catch(t){n(t)}}function s(t){var n;t.done?e(t.value):((n=t.value)instanceof o?n:new o(function(t){t(n)})).then(r,i)}s((l=l.apply(t,a||[])).next())})}};uQ.props={};let uK=t=>{let{value:e}=t;return()=>e};uK.props={};let uX=t=>{let{fields:e=[]}=t,n=e.map(t=>{if(Array.isArray(t)){let[e,n=!0]=t;return[e,n]}return[t,!0]});return t=>[...t].sort((t,e)=>n.reduce((n,r)=>{let[i,a=!0]=r;return 0!==n?n:a?t[i]e[i]?-1:+(t[i]!==e[i])},0))};uX.props={};let uJ=t=>{let{callback:e}=t;return t=>Array.isArray(t)?[...t].sort(e):t};function u0(t){return null!=t&&!Number.isNaN(t)}uJ.props={};let u1=t=>{let{callback:e=u0}=t;return t=>t.filter(e)};u1.props={};let u2=t=>{let{fields:e}=t;return t=>t.map(t=>(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.reduce((e,n)=>(n in t&&(e[n]=t[n]),e),{})})(t,e))};u2.props={};let u5=t=>e=>t&&0!==Object.keys(t).length?e.map(e=>Object.entries(e).reduce((e,n)=>{let[r,i]=n;return e[t[r]||r]=i,e},{})):e;u5.props={};let u3=t=>{let{fields:e,key:n="key",value:r="value"}=t;return t=>e&&0!==Object.keys(e).length?t.flatMap(t=>e.map(e=>Object.assign(Object.assign({},t),{[n]:e,[r]:t[e]}))):t};u3.props={};let u6=t=>{let{start:e,end:n}=t;return t=>t.slice(e,n)};u6.props={};let u4=t=>{let{callback:e=H.yR}=t;return t=>e(t)};u4.props={};let u8=t=>{let{callback:e=H.yR}=t;return t=>Array.isArray(t)?t.map(e):t};function u7(t){return"string"==typeof t?e=>e[t]:t}u8.props={};let u9=t=>{let{join:e,on:n,select:r=[],as:i=r,unknown:a=NaN}=t,[o,l]=n,s=u7(l),c=u7(o),u=(0,tp.jJ)(e,t=>{let[e]=t;return e},t=>s(t));return t=>t.map(t=>{let e=u.get(c(t));return Object.assign(Object.assign({},t),r.reduce((t,n,r)=>(t[i[r]]=e?e[n]:a,t),{}))})};u9.props={};var ft=n(53843),fe=n.n(ft);let fn=t=>{let{field:e,groupBy:n,as:r=["y","size"],min:i,max:a,size:o=10,width:l}=t,[s,c]=r;return t=>{let r=Array.from((0,tp.ZP)(t,t=>n.map(e=>t[e]).join("-")).values());return r.map(t=>{let n=fe().create(t.map(t=>t[e]),{min:i,max:a,size:o,width:l}),r=n.map(t=>t.x),u=n.map(t=>t.y);return Object.assign(Object.assign({},t[0]),{[s]:r,[c]:u})})}};fn.props={};let fr=()=>t=>(console.log("G2 data section:",t),t);fr.props={};let fi=Math.PI/180;function fa(t){return t.text}function fo(){return"serif"}function fl(){return"normal"}function fs(t){return t.value}function fc(){return 90*~~(2*Math.random())}function fu(){return 1}function ff(){}function fd(t){let e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function fh(t){let e=[],n=-1;for(;++ne.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let fy={fontSize:[20,60],font:"Impact",padding:2,rotate:function(){return(~~(6*Math.random())-3)*30}};function fv(t){return new Promise((e,n)=>{if(t instanceof HTMLImageElement){e(t);return}if("string"==typeof t){let r=new Image;r.crossOrigin="anonymous",r.src=t,r.onload=()=>e(r),r.onerror=()=>{console.error("'image ".concat(t," load failed !!!'")),n()};return}n()})}let fb=t=>e=>{var n,r,i,a;return n=void 0,r=void 0,i=void 0,a=function*(){let n=Object.assign({},fy,t),r=function(){let t=[256,256],e=fa,n=fo,r=fs,i=fl,a=fc,o=fu,l=fd,s=Math.random,c=ff,u=[],f=null,d=1/0,h={};return h.start=function(){let[p,g]=t,m=function(t){t.width=t.height=1;let e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=2048/e,t.height=2048/e;let n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",n.textBaseline="middle",{context:n,ratio:e}}(document.createElement("canvas")),y=h.board?h.board:fh((t[0]>>5)*t[1]),v=u.length,b=[],x=u.map(function(t,l,s){return t.text=e.call(this,t,l,s),t.font=n.call(this,t,l,s),t.style=fl.call(this,t,l,s),t.weight=i.call(this,t,l,s),t.rotate=a.call(this,t,l,s),t.size=~~r.call(this,t,l,s),t.padding=o.call(this,t,l,s),t}).sort(function(t,e){return e.size-t.size}),O=-1,w=h.board?[{x:0,y:0},{x:p,y:g}]:void 0;function _(){let e=Date.now();for(;Date.now()-e>1,e.y=g*(s()+.5)>>1,function(t,e,n,r){if(e.sprite)return;let i=t.context,a=t.ratio;i.clearRect(0,0,2048/a,2048/a);let o=0,l=0,s=0,c=n.length;for(--r;++r>5<<5,c=~~Math.max(Math.abs(a+o),Math.abs(a-o))}else t=t+31>>5<<5;if(c>s&&(s=c),o+t>=2048&&(o=0,l+=s,s=0),l+c>=2048)break;i.translate((o+(t>>1))/a,(l+(c>>1))/a),e.rotate&&i.rotate(e.rotate*fi),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=t,e.height=c,e.xoff=o,e.yoff=l,e.x1=t>>1,e.y1=c>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,o+=t}let u=i.getImageData(0,0,2048/a,2048/a).data,f=[];for(;--r>=0;){if(!(e=n[r]).hasText)continue;let t=e.width,i=t>>5,a=e.y1-e.y0;for(let t=0;t>5),r=u[(l+n)*2048+(o+e)<<2]?1<<31-e%32:0;f[t]|=r,s|=r}s?c=n:(e.y0++,a--,n--,l++)}e.y1=e.y0+c,e.sprite=f.slice(0,(e.y1-e.y0)*i)}}(m,e,x,O),e.hasText&&function(e,n,r){let i=n.x,a=n.y,o=Math.sqrt(t[0]*t[0]+t[1]*t[1]),c=l(t),u=.5>s()?1:-1,f,d=-u,h,p;for(;(f=c(d+=u))&&!(Math.min(Math.abs(h=~~f[0]),Math.abs(p=~~f[1]))>=o);)if(n.x=i+h,n.y=a+p,!(n.x+n.x0<0)&&!(n.y+n.y0<0)&&!(n.x+n.x1>t[0])&&!(n.y+n.y1>t[1])&&(!r||!function(t,e,n){n>>=5;let r=t.sprite,i=t.width>>5,a=t.x-(i<<4),o=127&a,l=32-o,s=t.y1-t.y0,c=(t.y+t.y0)*n+(a>>5),u;for(let t=0;t>>o:0))&e[c+n])return!0;c+=n}return!1}(n,e,t[0]))&&(!r||n.x+n.x1>r[0].x&&n.x+n.x0r[0].y&&n.y+n.y0>5,a=t[0]>>5,o=n.x-(i<<4),l=127&o,s=32-l,c=n.y1-n.y0,u,f=(n.y+n.y0)*a+(o>>5);for(let t=0;t>>l:0);f+=a}return delete n.sprite,!0}return!1}(y,e,w)&&(c.call(null,"word",{cloud:h,word:e}),b.push(e),w?h.hasImage||function(t,e){let n=t[0],r=t[1];e.x+e.x0r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}(w,e):w=[{x:e.x+e.x0,y:e.y+e.y0},{x:e.x+e.x1,y:e.y+e.y1}],e.x-=t[0]>>1,e.y-=t[1]>>1)}h._tags=b,h._bounds=w,O>=v&&(h.stop(),c.call(null,"end",{cloud:h,words:b,bounds:w}))}return f&&clearInterval(f),f=setInterval(_,0),_(),h},h.stop=function(){return f&&(clearInterval(f),f=null),h},h.createMask=e=>{let n=document.createElement("canvas"),[r,i]=t;if(!r||!i)return;let a=r>>5,o=fh((r>>5)*i);n.width=r,n.height=i;let l=n.getContext("2d");l.drawImage(e,0,0,e.width,e.height,0,0,r,i);let s=l.getImageData(0,0,r,i).data;for(let t=0;t>5),i=t*r+e<<2,l=s[i]>=250&&s[i+1]>=250&&s[i+2]>=250,c=l?1<<31-e%32:0;o[n]|=c}h.board=o,h.hasImage=!0},h.timeInterval=function(t){d=null==t?1/0:t},h.words=function(t){u=t},h.size=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t=[+e[0],+e[1]]},h.text=function(t){e=fp(t)},h.font=function(t){n=fp(t)},h.fontWeight=function(t){i=fp(t)},h.rotate=function(t){a=fp(t)},h.spiral=function(t){l=fg[t]||t},h.fontSize=function(t){r=fp(t)},h.padding=function(t){o=fp(t)},h.random=function(t){s=fp(t)},h.on=function(t){c=fp(t)},h}();yield({set(t,e,i){if(void 0===n[t])return this;let a=e?e.call(null,n[t]):n[t];return i?i.call(null,a):"function"==typeof r[t]?r[t](a):r[t]=a,this},setAsync(t,e,i){var a,o,l,s;return a=this,o=void 0,l=void 0,s=function*(){if(void 0===n[t])return this;let a=e?yield e.call(null,n[t]):n[t];return i?i.call(null,a):"function"==typeof r[t]?r[t](a):r[t]=a,this},new(l||(l=Promise))(function(t,e){function n(t){try{i(s.next(t))}catch(t){e(t)}}function r(t){try{i(s.throw(t))}catch(t){e(t)}}function i(e){var i;e.done?t(e.value):((i=e.value)instanceof l?i:new l(function(t){t(i)})).then(n,r)}i((s=s.apply(a,o||[])).next())})}}).set("fontSize",t=>{let n=e.map(t=>t.value);return function(t,e){if("function"==typeof t)return t;if(Array.isArray(t)){let[n,r]=t;if(!e)return()=>(r+n)/2;let[i,a]=e;return a===i?()=>(r+n)/2:t=>{let{value:e}=t;return(r-n)/(a-i)*(e-i)+n}}return()=>t}(t,[(0,rM.Z)(n),(0,rS.Z)(n)])}).set("font").set("fontStyle").set("fontWeight").set("padding").set("rotate").set("size").set("spiral").set("timeInterval").set("random").set("text").set("on").setAsync("imageMask",fv,r.createMask),r.words([...e]);let i=r.start(),[a,o]=n.size,{_bounds:l=[{x:0,y:0},{x:a,y:o}],_tags:s,hasImage:c}=i,u=s.map(t=>{var{x:e,y:n,font:r}=t;return Object.assign(Object.assign({},fm(t,["x","y","font"])),{x:e+a/2,y:n+o/2,fontFamily:r})}),[{x:f,y:d},{x:h,y:p}]=l,g={text:"",value:0,opacity:0,fontSize:0};return u.push(Object.assign(Object.assign({},g),{x:c?0:f,y:c?0:d}),Object.assign(Object.assign({},g),{x:c?a:h,y:c?o:p})),u},new(i||(i=Promise))(function(t,e){function o(t){try{s(a.next(t))}catch(t){e(t)}}function l(t){try{s(a.throw(t))}catch(t){e(t)}}function s(e){var n;e.done?t(e.value):((n=e.value)instanceof i?n:new i(function(t){t(n)})).then(o,l)}s((a=a.apply(n,r||[])).next())})};function fx(t){let{min:e,max:n}=t;return[[e[0],e[1]],[n[0],n[1]]]}function fO(t,e){let[n,r]=t,[i,a]=e;return n>=i[0]&&n<=a[0]&&r>=i[1]&&r<=a[1]}fb.props={};var fw=n(34629);let f_=t=>{let{priority:e}=t;return t=>{let n=[];return e&&t.sort(e),t.forEach(t=>{(0,fw.$Z)(t);let e=t.getLocalBounds(),r=n.some(t=>(function(t,e){let[n,r]=t,[i,a]=e;return n[0]i[0]&&n[1]i[1]})(fx(e),fx(t.getLocalBounds())));r?(0,fw.Cp)(t):n.push(t)}),t}};function fk(){let t=new Map;return[e=>t.get(e),(e,n)=>t.set(e,n)]}let fC=t=>{let{maxIterations:e=10,maxError:n=.1,padding:r=1}=t;return t=>{let i=t.length;if(i<=1)return t;let[a,o]=fk(),[l,s]=fk(),[c,u]=fk(),[f,d]=fk();for(let e of t){let{min:t,max:n}=function(t){let e=t.cloneNode(!0),n=e.getElementById("connector");n&&e.removeChild(n);let{min:r,max:i}=e.getRenderBounds();return e.destroy(),{min:r,max:i}}(e),[r,i]=t,[a,l]=n;o(e,i),s(e,i),u(e,l-i),d(e,[r,a])}for(let a=0;a(0,cA.Z)(l(t),l(e)));let e=0;for(let n=0;nn&&r>i}(f(a),f(i));)o+=1;if(i){let t=l(a),n=c(a),o=l(i),u=o-(t+n);if(ut=>(t.forEach(t=>{(0,fw.$Z)(t);let e=t.attr("bounds"),n=t.getLocalBounds(),r=function(t,e){let[n,r]=t;return!(fO(n,e)&&fO(r,e))}(fx(n),e);r&&(0,fw.Cp)(t)}),t);function fM(t){let e=t/255;return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}function fS(t,e,n){return .2126*fM(t)+.7152*fM(e)+.0722*fM(n)}function fA(t,e){let{r:n,g:r,b:i}=t,{r:a,g:o,b:l}=e,s=fS(n,r,i),c=fS(a,o,l);return(Math.max(s,c)+.05)/(Math.min(s,c)+.05)}let fE=t=>{let{threshold:e=4.5,palette:n=["#000","#fff"]}=t;return t=>(t.forEach(t=>{let r=t.attr("dependentElement").parsedStyle.fill,i=t.parsedStyle.fill,a=fA(i,r);afA(t,"object"==typeof e?e:(0,t4.lu)(e)));return e[n]}(r,n))}),t)},fP=(t,e)=>{let[[n,r],[i,a]]=e,[[o,l],[s,c]]=t,u=0,f=0;return oi&&(u=i-s),la&&(f=a-c),[u,f]},fR=()=>(t,e)=>{let{canvas:n}=e,{width:r,height:i}=n.getConfig();return t.forEach(t=>{(0,fw.$Z)(t);let{max:e,min:n}=t.getRenderBounds(),[a,o]=e,[l,s]=n,c=fP([[l,s],[a,o]],[[0,0],[r,i]]);t.style.x+=c[0],t.style.y+=c[1]}),t};var fT=t=>t;function fL(t,e){t&&fZ.hasOwnProperty(t.type)&&fZ[t.type](t,e)}var fB={Feature:function(t,e){fL(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r0){for(a=t[--e];e>0&&(a=(n=a)+(r=t[--e]),!(i=r-(a-n))););e>0&&(i<0&&t[e-1]<0||i>0&&t[e-1]>0)&&(n=a+(r=2*i),r==n-a&&(a=n))}return a}}var fF=Math.PI,f$=fF/2,fW=fF/4,fH=2*fF,fG=180/fF,fq=fF/180,fY=Math.abs,fV=Math.atan,fU=Math.atan2,fQ=Math.cos,fK=Math.ceil,fX=Math.exp,fJ=Math.log,f0=Math.pow,f1=Math.sin,f2=Math.sign||function(t){return t>0?1:t<0?-1:0},f5=Math.sqrt,f3=Math.tan;function f6(t){return t>1?0:t<-1?fF:Math.acos(t)}function f4(t){return t>1?f$:t<-1?-f$:Math.asin(t)}function f8(){}var f7,f9,dt,de,dn,dr,di=new fz,da=new fz,dl={point:f8,lineStart:f8,lineEnd:f8,polygonStart:function(){dl.lineStart=ds,dl.lineEnd=df},polygonEnd:function(){dl.lineStart=dl.lineEnd=dl.point=f8,di.add(fY(da)),da=new fz},result:function(){var t=di/2;return di=new fz,t}};function ds(){dl.point=dc}function dc(t,e){dl.point=du,dt=dn=t,de=dr=e}function du(t,e){da.add(dr*t-dn*e),dn=t,dr=e}function df(){du(dt,de)}var dd,dh,dp,dg,dm=1/0,dy=1/0,dv=-1/0,db=dv,dx={point:function(t,e){tdv&&(dv=t),edb&&(db=e)},lineStart:f8,lineEnd:f8,polygonStart:f8,polygonEnd:f8,result:function(){var t=[[dm,dy],[dv,db]];return dv=db=-(dy=dm=1/0),t}},dO=0,dw=0,d_=0,dk=0,dC=0,dj=0,dM=0,dS=0,dA=0,dE={point:dP,lineStart:dR,lineEnd:dB,polygonStart:function(){dE.lineStart=dZ,dE.lineEnd=dI},polygonEnd:function(){dE.point=dP,dE.lineStart=dR,dE.lineEnd=dB},result:function(){var t=dA?[dM/dA,dS/dA]:dj?[dk/dj,dC/dj]:d_?[dO/d_,dw/d_]:[NaN,NaN];return dO=dw=d_=dk=dC=dj=dM=dS=dA=0,t}};function dP(t,e){dO+=t,dw+=e,++d_}function dR(){dE.point=dT}function dT(t,e){dE.point=dL,dP(dp=t,dg=e)}function dL(t,e){var n=t-dp,r=e-dg,i=f5(n*n+r*r);dk+=i*(dp+t)/2,dC+=i*(dg+e)/2,dj+=i,dP(dp=t,dg=e)}function dB(){dE.point=dP}function dZ(){dE.point=dN}function dI(){dD(dd,dh)}function dN(t,e){dE.point=dD,dP(dd=dp=t,dh=dg=e)}function dD(t,e){var n=t-dp,r=e-dg,i=f5(n*n+r*r);dk+=i*(dp+t)/2,dC+=i*(dg+e)/2,dj+=i,dM+=(i=dg*t-dp*e)*(dp+t),dS+=i*(dg+e),dA+=3*i,dP(dp=t,dg=e)}function dz(t){this._context=t}dz.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,fH)}},result:f8};var dF,d$,dW,dH,dG,dq=new fz,dY={point:f8,lineStart:function(){dY.point=dV},lineEnd:function(){dF&&dU(d$,dW),dY.point=f8},polygonStart:function(){dF=!0},polygonEnd:function(){dF=null},result:function(){var t=+dq;return dq=new fz,t}};function dV(t,e){dY.point=dU,d$=dH=t,dW=dG=e}function dU(t,e){dH-=t,dG-=e,dq.add(f5(dH*dH+dG*dG)),dH=t,dG=e}function dQ(){this._string=[]}function dK(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function dX(t,e){var n,r,i=4.5;function a(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),fD(t,n(r))),r.result()}return a.area=function(t){return fD(t,n(dl)),dl.result()},a.measure=function(t){return fD(t,n(dY)),dY.result()},a.bounds=function(t){return fD(t,n(dx)),dx.result()},a.centroid=function(t){return fD(t,n(dE)),dE.result()},a.projection=function(e){return arguments.length?(n=null==e?(t=null,fT):(t=e).stream,a):t},a.context=function(t){return arguments.length?(r=null==t?(e=null,new dQ):new dz(e=t),"function"!=typeof i&&r.pointRadius(i),a):e},a.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),a):i},a.projection(t).context(e)}function dJ(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),a=Array(i);++r1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function d3(t,e){return 1e-6>fY(t[0]-e[0])&&1e-6>fY(t[1]-e[1])}function d6(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function d4(t,e,n,r,i){var a,o,l=[],s=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],o=t[e];if(d3(r,o)){if(!r[2]&&!o[2]){for(i.lineStart(),a=0;a=0;--a)i.point((u=c[a])[0],u[1]);else r(d.x,d.p.x,-1,i);d=d.p}c=(d=d.o).z,h=!h}while(!d.v);i.lineEnd()}}}function d8(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0?1:-1,j=C*k,M=j>fF,S=m*w;if(s.add(fU(S*C*f1(j),y*_+S*fQ(j))),o+=M?k+C*fH:k,M^p>=n^x>=n){var A=he(d9(h),d9(b));hi(A);var E=he(a,A);hi(E);var P=(M^k>=0?-1:1)*f4(E[2]);(r>P||r===P&&(A[0]||A[1]))&&(l+=M^k>=0?1:-1)}}return(o<-.000001||o<1e-6&&s<-.000000000001)^1&l}(a,r);o.length?(f||(i.polygonStart(),f=!0),d4(o,hc,t,n,i)):t&&(f||(i.polygonStart(),f=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),f&&(i.polygonEnd(),f=!1),o=a=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function h(e,n){t(e,n)&&i.point(e,n)}function p(t,e){s.point(t,e)}function g(){d.point=p,s.lineStart()}function m(){d.point=h,s.lineEnd()}function y(t,e){l.push([t,e]),u.point(t,e)}function v(){u.lineStart(),l=[]}function b(){y(l[0][0],l[0][1]),u.lineEnd();var t,e,n,r,s=u.clean(),d=c.result(),h=d.length;if(l.pop(),a.push(l),l=null,h){if(1&s){if((e=(n=d[0]).length-1)>0){for(f||(i.polygonStart(),f=!0),i.lineStart(),t=0;t1&&2&s&&d.push(d.pop().concat(d.shift())),o.push(d.filter(hs))}}return d}}function hs(t){return t.length>1}function hc(t,e){return((t=t.x)[0]<0?t[1]-f$-1e-6:f$-t[1])-((e=e.x)[0]<0?e[1]-f$-1e-6:f$-e[1])}var hu=hl(function(){return!0},function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var l,s,c,u,f,d,h=a>0?fF:-fF,p=fY(a-n);1e-6>fY(p-fF)?(t.point(n,r=(r+o)/2>0?f$:-f$),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(h,r),t.point(a,r),e=0):i!==h&&p>=fF&&(1e-6>fY(n-i)&&(n-=1e-6*i),1e-6>fY(a-h)&&(a-=1e-6*h),l=n,s=r,r=fY(d=f1(l-(c=a)))>1e-6?fV((f1(s)*(f=fQ(o))*f1(c)-f1(o)*(u=fQ(s))*f1(l))/(u*f*d)):(s+o)/2,t.point(i,r),t.lineEnd(),t.lineStart(),t.point(h,r),e=0),t.point(n=a,r=o),i=h},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}},function(t,e,n,r){var i;if(null==t)i=n*f$,r.point(-fF,i),r.point(0,i),r.point(fF,i),r.point(fF,0),r.point(fF,-i),r.point(0,-i),r.point(-fF,-i),r.point(-fF,0),r.point(-fF,i);else if(fY(t[0]-e[0])>1e-6){var a=t[0]-e[2]?-n:n)+fH-1e-6)%fH}function hd(t,e,n,r){function i(i,a){return t<=i&&i<=n&&e<=a&&a<=r}function a(i,a,l,c){var u=0,f=0;if(null==i||(u=o(i,l))!==(f=o(a,l))||0>s(i,a)^l>0)do c.point(0===u||3===u?t:n,u>1?r:e);while((u=(u+l+4)%4)!==f);else c.point(a[0],a[1])}function o(r,i){return 1e-6>fY(r[0]-t)?i>0?0:3:1e-6>fY(r[0]-n)?i>0?2:1:1e-6>fY(r[1]-e)?i>0?1:0:i>0?3:2}function l(t,e){return s(t.x,e.x)}function s(t,e){var n=o(t,1),r=o(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(o){var s,c,u,f,d,h,p,g,m,y,v,b=o,x=d5(),O={point:w,lineStart:function(){O.point=_,c&&c.push(u=[]),y=!0,m=!1,p=g=NaN},lineEnd:function(){s&&(_(f,d),h&&m&&x.rejoin(),s.push(x.result())),O.point=w,m&&b.lineEnd()},polygonStart:function(){b=x,s=[],c=[],v=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=c.length;nr&&(d-a)*(r-o)>(h-o)*(t-a)&&++e:h<=r&&(d-a)*(r-o)<(h-o)*(t-a)&&--e;return e}(),n=v&&e,i=(s=ho(s)).length;(n||i)&&(o.polygonStart(),n&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),i&&d4(s,l,e,a,o),o.polygonEnd()),b=o,s=c=u=null}};function w(t,e){i(t,e)&&b.point(t,e)}function _(a,o){var l=i(a,o);if(c&&u.push([a,o]),y)f=a,d=o,h=l,y=!1,l&&(b.lineStart(),b.point(a,o));else if(l&&m)b.point(a,o);else{var s=[p=Math.max(-1e9,Math.min(1e9,p)),g=Math.max(-1e9,Math.min(1e9,g))],x=[a=Math.max(-1e9,Math.min(1e9,a)),o=Math.max(-1e9,Math.min(1e9,o))];!function(t,e,n,r,i,a){var o,l=t[0],s=t[1],c=e[0],u=e[1],f=0,d=1,h=c-l,p=u-s;if(o=n-l,h||!(o>0)){if(o/=h,h<0){if(o0){if(o>d)return;o>f&&(f=o)}if(o=i-l,h||!(o<0)){if(o/=h,h<0){if(o>d)return;o>f&&(f=o)}else if(h>0){if(o0)){if(o/=p,p<0){if(o0){if(o>d)return;o>f&&(f=o)}if(o=a-s,p||!(o<0)){if(o/=p,p<0){if(o>d)return;o>f&&(f=o)}else if(p>0){if(o0&&(t[0]=l+f*h,t[1]=s+f*p),d<1&&(e[0]=l+d*h,e[1]=s+d*p),!0}}}}}(s,x,t,e,n,r)?l&&(b.lineStart(),b.point(a,o),v=!1):(m||(b.lineStart(),b.point(s[0],s[1])),b.point(x[0],x[1]),l||b.lineEnd(),v=!1)}p=a,g=o,m=l}return O}}function hh(t,e){function n(n,r){return e((n=t(n,r))[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n}function hp(t,e){return[fY(t)>fF?t+Math.round(-t/fH)*fH:t,e]}function hg(t,e,n){return(t%=fH)?e||n?hh(hy(t),hv(e,n)):hy(t):e||n?hv(e,n):hp}function hm(t){return function(e,n){return[(e+=t)>fF?e-fH:e<-fF?e+fH:e,n]}}function hy(t){var e=hm(t);return e.invert=hm(-t),e}function hv(t,e){var n=fQ(t),r=f1(t),i=fQ(e),a=f1(e);function o(t,e){var o=fQ(e),l=fQ(t)*o,s=f1(t)*o,c=f1(e),u=c*n+l*r;return[fU(s*i-u*a,l*n-c*r),f4(u*i+s*a)]}return o.invert=function(t,e){var o=fQ(e),l=fQ(t)*o,s=f1(t)*o,c=f1(e),u=c*i-s*a;return[fU(s*i+c*a,l*n+u*r),f4(u*n-l*r)]},o}function hb(t){return function(e){var n=new hx;for(var r in t)n[r]=t[r];return n.stream=e,n}}function hx(){}function hO(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),fD(n,t.stream(dx)),e(dx.result()),null!=r&&t.clipExtent(r),t}function hw(t,e,n){return hO(t,function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),o=+e[0][0]+(r-a*(n[1][0]+n[0][0]))/2,l=+e[0][1]+(i-a*(n[1][1]+n[0][1]))/2;t.scale(150*a).translate([o,l])},n)}function h_(t,e,n){return hw(t,[[0,0],e],n)}function hk(t,e,n){return hO(t,function(n){var r=+e,i=r/(n[1][0]-n[0][0]),a=(r-i*(n[1][0]+n[0][0]))/2,o=-i*n[0][1];t.scale(150*i).translate([a,o])},n)}function hC(t,e,n){return hO(t,function(n){var r=+e,i=r/(n[1][1]-n[0][1]),a=-i*n[0][0],o=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([a,o])},n)}hp.invert=hp,hx.prototype={constructor:hx,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var hj=fQ(30*fq);function hM(t,e){return+e?function(t,e){function n(r,i,a,o,l,s,c,u,f,d,h,p,g,m){var y=c-r,v=u-i,b=y*y+v*v;if(b>4*e&&g--){var x=o+d,O=l+h,w=s+p,_=f5(x*x+O*O+w*w),k=f4(w/=_),C=1e-6>fY(fY(w)-1)||1e-6>fY(a-f)?(a+f)/2:fU(O,x),j=t(C,k),M=j[0],S=j[1],A=M-r,E=S-i,P=v*A-y*E;(P*P/b>e||fY((y*A+v*E)/b-.5)>.3||o*d+l*h+s*p0,i=fY(e)>1e-6;function a(t,n){return fQ(t)*fQ(n)>e}function o(t,n,r){var i=d9(t),a=d9(n),o=[1,0,0],l=he(i,a),s=ht(l,l),c=l[0],u=s-c*c;if(!u)return!r&&t;var f=e*s/u,d=-e*c/u,h=he(o,l),p=hr(o,f);hn(p,hr(l,d));var g=ht(p,h),m=ht(h,h),y=g*g-m*(ht(p,p)-1);if(!(y<0)){var v=f5(y),b=hr(h,(-g-v)/m);if(hn(b,p),b=d7(b),!r)return b;var x,O=t[0],w=n[0],_=t[1],k=n[1];wfY(C-fF),M=j||C<1e-6;if(!j&&k<_&&(x=_,_=k,k=x),M?j?_+k>0^b[1]<(1e-6>fY(b[0]-O)?_:k):_<=b[1]&&b[1]<=k:C>fF^(O<=b[0]&&b[0]<=w)){var S=hr(h,(-g+v)/m);return hn(S,p),[b,d7(S)]}}}function l(e,n){var i=r?t:fF-t,a=0;return e<-i?a|=1:e>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}return hl(a,function(t){var e,n,s,c,u;return{lineStart:function(){c=s=!1,u=1},point:function(f,d){var h,p,g=[f,d],m=a(f,d),y=r?m?0:l(f,d):m?l(f+(f<0?fF:-fF),d):0;!e&&(c=s=m)&&t.lineStart(),m!==s&&(!(p=o(e,g))||d3(e,p)||d3(g,p))&&(g[2]=1),m!==s?(u=0,m?(t.lineStart(),p=o(g,e),t.point(p[0],p[1])):(p=o(e,g),t.point(p[0],p[1],2),t.lineEnd()),e=p):i&&e&&r^m&&!(y&n)&&(h=o(g,e,!0))&&(u=0,r?(t.lineStart(),t.point(h[0][0],h[0][1]),t.point(h[1][0],h[1][1]),t.lineEnd()):(t.point(h[1][0],h[1][1]),t.lineEnd(),t.lineStart(),t.point(h[0][0],h[0][1],3))),!m||e&&d3(e,g)||t.point(g[0],g[1]),e=g,s=m,n=y},lineEnd:function(){s&&t.lineEnd(),e=null},clean:function(){return u|(c&&s)<<1}}},function(e,r,i,a){!function(t,e,n,r,i,a){if(n){var o=fQ(e),l=f1(e),s=r*n;null==i?(i=e+r*fH,a=e-s/2):(i=hf(o,i),a=hf(o,a),(r>0?ia)&&(i+=r*fH));for(var c,u=i;r>0?u>a:u2?t[2]%360*fq:0,A()):[m*fG,y*fG,v*fG]},M.angle=function(t){return arguments.length?(b=t%360*fq,A()):b*fG},M.reflectX=function(t){return arguments.length?(x=t?-1:1,A()):x<0},M.reflectY=function(t){return arguments.length?(O=t?-1:1,A()):O<0},M.precision=function(t){return arguments.length?(o=hM(l,j=t*t),E()):f5(j)},M.fitExtent=function(t,e){return hw(M,t,e)},M.fitSize=function(t,e){return h_(M,t,e)},M.fitWidth=function(t,e){return hk(M,t,e)},M.fitHeight=function(t,e){return hC(M,t,e)},function(){return e=t.apply(this,arguments),M.invert=e.invert&&S,A()}}function hR(t){var e=0,n=fF/3,r=hP(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*fq,n=t[1]*fq):[e*fG,n*fG]},i}function hT(t,e){var n=f1(t),r=(n+f1(e))/2;if(1e-6>fY(r))return function(t){var e=fQ(t);function n(t,n){return[t*e,f1(n)/e]}return n.invert=function(t,n){return[t/e,f4(n*e)]},n}(t);var i=1+n*(2*r-n),a=f5(i)/r;function o(t,e){var n=f5(i-2*r*f1(e))/r;return[n*f1(t*=r),a-n*fQ(t)]}return o.invert=function(t,e){var n=a-e,o=fU(t,fY(n))*f2(n);return n*r<0&&(o-=fF*f2(t)*f2(n)),[o/r,f4((i-(t*t+n*n)*r*r)/(2*r))]},o}function hL(){return hR(hT).scale(155.424).center([0,33.6442])}function hB(){return hL().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function hZ(){var t,e,n,r,i,a,o=hB(),l=hL().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=hL().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(t,e){a=[t,e]}};function u(t){var e=t[0],o=t[1];return a=null,n.point(e,o),a||(r.point(e,o),a)||(i.point(e,o),a)}function f(){return t=e=null,u}return u.invert=function(t){var e=o.scale(),n=o.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?l:i>=.166&&i<.234&&r>=-.214&&r<-.115?s:o).invert(t)},u.stream=function(n){var r,i;return t&&e===n?t:(i=(r=[o.stream(e=n),l.stream(n),s.stream(n)]).length,t={point:function(t,e){for(var n=-1;++n2?t[2]*fq:0),e.invert=function(e){return e=t.invert(e[0]*fq,e[1]*fq),e[0]*=fG,e[1]*=fG,e},e})(i.rotate()).invert([0,0]));return s(null==c?[[l[0]-a,l[1]-a],[l[0]+a,l[1]+a]]:t===hW?[[Math.max(l[0]-a,c),e],[Math.min(l[0]+a,n),r]]:[[c,Math.max(l[1]-a,e)],[n,Math.min(l[1]+a,r)]])}return i.scale=function(t){return arguments.length?(o(t),u()):o()},i.translate=function(t){return arguments.length?(l(t),u()):l()},i.center=function(t){return arguments.length?(a(t),u()):a()},i.clipExtent=function(t){return arguments.length?(null==t?c=e=n=r=null:(c=+t[0][0],e=+t[0][1],n=+t[1][0],r=+t[1][1]),u()):null==c?null:[[c,e],[n,r]]},u()}function hq(t){return f3((f$+t)/2)}function hY(t,e){var n=fQ(t),r=t===e?f1(t):fJ(n/fQ(e))/fJ(hq(e)/hq(t)),i=n*f0(hq(t),r)/r;if(!r)return hW;function a(t,e){i>0?e<-f$+1e-6&&(e=-f$+1e-6):e>f$-1e-6&&(e=f$-1e-6);var n=i/f0(hq(e),r);return[n*f1(r*t),i-n*fQ(r*t)]}return a.invert=function(t,e){var n=i-e,a=f2(r)*f5(t*t+n*n),o=fU(t,fY(n))*f2(n);return n*r<0&&(o-=fF*f2(t)*f2(n)),[o/r,2*fV(f0(i/a,1/r))-f$]},a}function hV(){return hR(hY).scale(109.5).parallels([30,30])}function hU(t,e){return[t,e]}function hQ(){return hE(hU).scale(152.63)}function hK(t,e){var n=fQ(t),r=t===e?f1(t):(n-fQ(e))/(e-t),i=n/r+t;if(1e-6>fY(r))return hU;function a(t,e){var n=i-e,a=r*t;return[n*f1(a),i-n*fQ(a)]}return a.invert=function(t,e){var n=i-e,a=fU(t,fY(n))*f2(n);return n*r<0&&(a-=fF*f2(t)*f2(n)),[a/r,i-f2(r)*f5(t*t+n*n)]},a}function hX(){return hR(hK).scale(131.154).center([0,13.9389])}hF.invert=hN(function(t){return t}),hW.invert=function(t,e){return[t,2*fV(fX(e))-f$]},hU.invert=hU;var hJ=f5(3)/2;function h0(t,e){var n=f4(hJ*f1(e)),r=n*n,i=r*r*r;return[t*fQ(n)/(hJ*(1.340264+-.24331799999999998*r+i*(.0062510000000000005+.034164*r))),n*(1.340264+-.081106*r+i*(893e-6+.003796*r))]}function h1(){return hE(h0).scale(177.158)}function h2(t,e){var n=fQ(e),r=fQ(t)*n;return[n*f1(t)/r,f1(e)/r]}function h5(){return hE(h2).scale(144.049).clipAngle(60)}function h3(){var t,e,n,r,i,a,o,l=1,s=0,c=0,u=1,f=1,d=0,h=null,p=1,g=1,m=hb({point:function(t,e){var n=b([t,e]);this.stream.point(n[0],n[1])}}),y=fT;function v(){return p=l*u,g=l*f,a=o=null,b}function b(n){var r=n[0]*p,i=n[1]*g;if(d){var a=i*t-r*e;r=r*t+i*e,i=a}return[r+s,i+c]}return b.invert=function(n){var r=n[0]-s,i=n[1]-c;if(d){var a=i*t+r*e;r=r*t-i*e,i=a}return[r/p,i/g]},b.stream=function(t){return a&&o===t?a:a=m(y(o=t))},b.postclip=function(t){return arguments.length?(y=t,h=n=r=i=null,v()):y},b.clipExtent=function(t){return arguments.length?(y=null==t?(h=n=r=i=null,fT):hd(h=+t[0][0],n=+t[0][1],r=+t[1][0],i=+t[1][1]),v()):null==h?null:[[h,n],[r,i]]},b.scale=function(t){return arguments.length?(l=+t,v()):l},b.translate=function(t){return arguments.length?(s=+t[0],c=+t[1],v()):[s,c]},b.angle=function(n){return arguments.length?(e=f1(d=n%360*fq),t=fQ(d),v()):d*fG},b.reflectX=function(t){return arguments.length?(u=t?-1:1,v()):u<0},b.reflectY=function(t){return arguments.length?(f=t?-1:1,v()):f<0},b.fitExtent=function(t,e){return hw(b,t,e)},b.fitSize=function(t,e){return h_(b,t,e)},b.fitWidth=function(t,e){return hk(b,t,e)},b.fitHeight=function(t,e){return hC(b,t,e)},b}function h6(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(-.013791+r*(.003971*n-.001529*r))),e*(1.007226+n*(.015085+r*(-.044475+.028874*n-.005916*r)))]}function h4(){return hE(h6).scale(175.295)}function h8(t,e){return[fQ(e)*f1(t),f1(e)]}function h7(){return hE(h8).scale(249.5).clipAngle(90.000001)}function h9(t,e){var n=fQ(e),r=1+fQ(t)*n;return[n*f1(t)/r,f1(e)/r]}function pt(){return hE(h9).scale(250).clipAngle(142)}function pe(t,e){return[fJ(f3((f$+e)/2)),-t]}function pn(){var t=hG(pe),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}h0.invert=function(t,e){for(var n,r,i=e,a=i*i,o=a*a*a,l=0;l<12&&(r=i*(1.340264+-.081106*a+o*(893e-6+.003796*a))-e,i-=n=r/(1.340264+-.24331799999999998*a+o*(.0062510000000000005+.034164*a)),o=(a=i*i)*a*a,!(1e-12>fY(n)));++l);return[hJ*t*(1.340264+-.24331799999999998*a+o*(.0062510000000000005+.034164*a))/fQ(i),f4(f1(i)/hJ)]},h2.invert=hN(fV),h6.invert=function(t,e){var n,r=e,i=25;do{var a=r*r,o=a*a;r-=n=(r*(1.007226+a*(.015085+o*(-.044475+.028874*a-.005916*o)))-e)/(1.007226+a*(.045255+o*(-.311325+.259866*a-.005916*11*o)))}while(fY(n)>1e-6&&--i>0);return[t/(.8707+(a=r*r)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),r]},h8.invert=hN(f4),h9.invert=hN(function(t){return 2*fV(t)}),pe.invert=function(t,e){return[-e,2*fV(fX(t))-f$]};var pr=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function pi(t){let{data:e}=t;if(Array.isArray(e))return Object.assign(Object.assign({},t),{data:{value:e}});let{type:n}=e;return"graticule10"===n?Object.assign(Object.assign({},t),{data:{value:[(function(){var t,e,n,r,i,a,o,l,s,c,u,f,d=10,h=10,p=90,g=360,m=2.5;function y(){return{type:"MultiLineString",coordinates:v()}}function v(){return dJ(fK(r/p)*p,n,p).map(u).concat(dJ(fK(l/g)*g,o,g).map(f)).concat(dJ(fK(e/d)*d,t,d).filter(function(t){return fY(t%p)>1e-6}).map(s)).concat(dJ(fK(a/h)*h,i,h).filter(function(t){return fY(t%g)>1e-6}).map(c))}return y.lines=function(){return v().map(function(t){return{type:"LineString",coordinates:t}})},y.outline=function(){return{type:"Polygon",coordinates:[u(r).concat(f(o).slice(1),u(n).reverse().slice(1),f(l).reverse().slice(1))]}},y.extent=function(t){return arguments.length?y.extentMajor(t).extentMinor(t):y.extentMinor()},y.extentMajor=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],l=+t[0][1],o=+t[1][1],r>n&&(t=r,r=n,n=t),l>o&&(t=l,l=o,o=t),y.precision(m)):[[r,l],[n,o]]},y.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],a=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),a>i&&(n=a,a=i,i=n),y.precision(m)):[[e,a],[t,i]]},y.step=function(t){return arguments.length?y.stepMajor(t).stepMinor(t):y.stepMinor()},y.stepMajor=function(t){return arguments.length?(p=+t[0],g=+t[1],y):[p,g]},y.stepMinor=function(t){return arguments.length?(d=+t[0],h=+t[1],y):[d,h]},y.precision=function(d){return arguments.length?(m=+d,s=d0(a,i,90),c=d1(e,t,m),u=d0(l,o,90),f=d1(r,n,m),y):m},y.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])})()()]}}):"sphere"===n?Object.assign(Object.assign({},t),{sphere:!0,data:{value:[{type:"Sphere"}]}}):t}function pa(t){return"geoPath"===t.type}let po=()=>t=>{let e;let{children:n,coordinate:r={}}=t;if(!Array.isArray(n))return[];let{type:a="equalEarth"}=r,o=pr(r,["type"]),l=function(t){if("function"==typeof t)return t;let e="geo".concat((0,sn.Z)(t)),n=i[e];if(!n)throw Error("Unknown coordinate: ".concat(t));return n}(a),s=n.map(pi);return[Object.assign(Object.assign({},t),{type:"view",scale:{x:{type:"identity"},y:{type:"identity"}},axis:!1,coordinate:{type:function(){return[["custom",(t,n,r,i)=>{let a=l();!function(t,e,n,r){let{outline:i=(()=>{let t=e.filter(pa),n=t.find(t=>t.sphere);return n?{type:"Sphere"}:{type:"FeatureCollection",features:t.filter(t=>!t.sphere).flatMap(t=>t.data.value).flatMap(t=>(function(t){if(!t||!t.type)return null;let e={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featureCollection"}[t.type];return e?"geometry"===e?{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:t}]}:"feature"===e?{type:"FeatureCollection",features:[t]}:"featureCollection"===e?t:void 0:null})(t).features)}})()}=r,{size:a="fitExtent"}=r;"fitExtent"===a?function(t,e,n){let{x:r,y:i,width:a,height:o}=n;t.fitExtent([[r,i],[a,o]],e)}(t,i,n):"fitWidth"===a&&function(t,e,n){let{width:r,height:i}=n,[[a,o],[l,s]]=dX(t.fitWidth(r,e)).bounds(e),c=Math.ceil(s-o),u=Math.min(Math.ceil(l-a),c),f=t.scale()*(u-1)/u,[d,h]=t.translate();t.scale(f).translate([d,h+(i-c)/2]).precision(.2)}(t,i,n)}(a,s,{x:t,y:n,width:r,height:i},o),function(t,e){var n;for(let[r,i]of Object.entries(e))null===(n=t[r])||void 0===n||n.call(t,i)}(a,o),e=dX(a);let c=new rF.b({domain:[t,t+r]}),u=new rF.b({domain:[n,n+i]}),f=t=>{let e=a(t);if(!e)return[null,null];let[n,r]=e;return[c.map(n),u.map(r)]},d=t=>{if(!t)return null;let[e,n]=t,r=[c.invert(e),u.invert(n)];return a.invert(r)};return{transform:t=>f(t),untransform:t=>d(t)}}]]}},children:s.flatMap(t=>pa(t)?function(t){let{style:n,tooltip:r={}}=t;return Object.assign(Object.assign({},t),{type:"path",tooltip:(0,d2.e2)(r,{title:"id",items:[{channel:"color"}]}),style:Object.assign(Object.assign({},n),{d:t=>e(t)||[]})})}(t):t)})]};po.props={};var pl=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let ps=()=>t=>{let{type:e,data:n,scale:r,encode:i,style:a,animate:o,key:l,state:s}=t,c=pl(t,["type","data","scale","encode","style","animate","key","state"]);return[Object.assign(Object.assign({type:"geoView"},c),{children:[{type:"geoPath",key:"".concat(l,"-0"),data:{value:n},scale:r,encode:i,style:a,animate:o,state:s}]})]};ps.props={};var pc=n(43231),pu=n(58571),pf=n(69299),pd=n(77715),ph=n(26464),pp=n(32878),pg=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let pm={joint:!0},py={type:"link",axis:!1,legend:!1,encode:{x:[t=>t.source.x,t=>t.target.x],y:[t=>t.source.y,t=>t.target.y]},style:{stroke:"#999",strokeOpacity:.6}},pv={type:"point",axis:!1,legend:!1,encode:{x:"x",y:"y",size:5,color:"group",shape:"point"},style:{stroke:"#fff"}},pb={text:""},px=t=>{let{data:e,encode:n={},scale:r,style:i={},layout:a={},nodeLabels:o=[],linkLabels:l=[],animate:s={},tooltip:c={}}=t,{nodeKey:u=t=>t.id,linkKey:f=t=>t.id}=n,d=pg(n,["nodeKey","linkKey"]),h=Object.assign({nodeKey:u,linkKey:f},d),p=(0,H.hB)(h,"node"),g=(0,H.hB)(h,"link"),{links:m,nodes:y}=ts(e,h),{nodesData:v,linksData:x}=function(t,e,n){let{nodes:r,links:i}=t,{joint:a,nodeStrength:o,linkStrength:l}=e,{nodeKey:s=t=>t.id,linkKey:c=t=>t.id}=n,u=(0,pc.Z)(),f=(0,pu.Z)(i).id(to(c));"function"==typeof o&&u.strength(o),"function"==typeof l&&f.strength(l);let d=(0,pf.Z)(r).force("link",f).force("charge",u);a?d.force("center",(0,pd.Z)()):d.force("x",(0,ph.Z)()).force("y",(0,pp.Z)()),d.stop();let h=Math.ceil(Math.log(d.alphaMin())/Math.log(1-d.alphaDecay()));for(let t=0;t({name:"source",value:to(f)(t.source)}),t=>({name:"target",value:to(f)(t.target)})]}),w=(0,d2.nb)(c,"node",{items:[t=>({name:"key",value:to(u)(t)})]},!0);return[(0,b.Z)({},py,{data:x,encode:g,labels:l,style:(0,H.hB)(i,"link"),tooltip:O,animate:(0,d2.CQ)(s,"link")}),(0,b.Z)({},pv,{data:v,encode:Object.assign({},p),scale:r,style:(0,H.hB)(i,"node"),tooltip:w,labels:[Object.assign(Object.assign({},pb),(0,H.hB)(i,"label")),...o],animate:(0,d2.CQ)(s,"link")})]};function pO(t,e){return t.parent===e.parent?1:2}function pw(t){var e=t.children;return e?e[0]:t.t}function p_(t){var e=t.children;return e?e[e.length-1]:t.t}function pk(t,e){this._=t,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=e}function pC(){var t=pO,e=1,n=1,r=null;function i(i){var s=function(t){for(var e,n,r,i,a,o=new pk(t,0),l=[o];e=l.pop();)if(r=e._.children)for(e.children=Array(a=r.length),i=a-1;i>=0;--i)l.push(n=e.children[i]=new pk(r[i],i)),n.parent=e;return(o.parent=new pk(null,0)).children=[o],o}(i);if(s.eachAfter(a),s.parent.m=-s.z,s.eachBefore(o),r)i.eachBefore(l);else{var c=i,u=i,f=i;i.eachBefore(function(t){t.xu.x&&(u=t),t.depth>f.depth&&(f=t)});var d=c===u?1:t(c,u)/2,h=d-c.x,p=e/(u.x+d+h),g=n/(f.depth||1);i.eachBefore(function(t){t.x=(t.x+h)*p,t.y=t.depth*g})}return i}function a(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,a=i.length;--a>=0;)e=i[a],e.z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var a=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,a,o,l=e,s=e,c=n,u=l.parent.children[0],f=l.m,d=s.m,h=c.m,p=u.m;c=p_(c),l=pw(l),c&&l;)u=pw(u),(s=p_(s)).a=e,(o=c.z+h-l.z-f+t(c._,l._))>0&&(function(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}((i=c,a=r,i.a.parent===e.parent?i.a:a),e,o),f+=o,d+=o),h+=c.m,f+=l.m,p+=u.m,d+=s.m;c&&!p_(s)&&(s.t=c,s.m+=h-d),l&&!pw(u)&&(u.t=l,u.m+=f-p,r=e)}return r}(e,i,e.parent.A||r[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function l(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function pj(t,e){return t.parent===e.parent?1:2}function pM(t,e){return t+e.x}function pS(t,e){return Math.max(t,e.y)}function pA(){var t=pj,e=1,n=1,r=!1;function i(i){var a,o=0;i.eachAfter(function(e){var n=e.children;n?(e.x=n.reduce(pM,0)/n.length,e.y=1+n.reduce(pS,0)):(e.x=a?o+=t(e,a):0,e.y=0,a=e)});var l=function(t){for(var e;e=t.children;)t=e[0];return t}(i),s=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),c=l.x-t(l,s)/2,u=s.x+t(s,l)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-c)/(u-c)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}px.props={},pk.prototype=Object.create(sw.NB.prototype);let pE=t=>e=>n=>{let{field:r="value",nodeSize:i,separation:a,sortBy:o,as:l=["x","y"]}=e,[s,c]=l,u=(0,sw.ZP)(n,t=>t.children).sum(t=>t[r]).sort(o),f=t();f.size([1,1]),i&&f.nodeSize(i),a&&f.separation(a),f(u);let d=[];u.each(t=>{t[s]=t.x,t[c]=t.y,t.name=t.data.name,d.push(t)});let h=u.links();return h.forEach(t=>{t[s]=[t.source[s],t.target[s]],t[c]=[t.source[c],t.target[c]]}),{nodes:d,edges:h}},pP=t=>pE(pA)(t);pP.props={};let pR=t=>pE(pC)(t);pR.props={};let pT={sortBy:(t,e)=>e.value-t.value},pL={axis:!1,legend:!1,type:"point",encode:{x:"x",y:"y",size:2,shape:"point"}},pB={type:"link",encode:{x:"x",y:"y",shape:"smooth"}},pZ={text:"",fontSize:10},pI=t=>{let{data:e,encode:n={},scale:r={},style:i={},layout:a={},nodeLabels:o=[],linkLabels:l=[],animate:s={},tooltip:c={}}=t,u=null==n?void 0:n.value,{nodes:f,edges:d}=pR(Object.assign(Object.assign(Object.assign({},pT),a),{field:u}))(e),h=(0,d2.nb)(c,"node",{title:"name",items:["value"]},!0),p=(0,d2.nb)(c,"link",{title:"",items:[t=>({name:"source",value:t.source.name}),t=>({name:"target",value:t.target.name})]});return[(0,b.Z)({},pB,{data:d,encode:(0,H.hB)(n,"link"),scale:(0,H.hB)(r,"link"),labels:l,style:Object.assign({stroke:"#999"},(0,H.hB)(i,"link")),tooltip:p,animate:(0,d2.CQ)(s,"link")}),(0,b.Z)({},pL,{data:f,scale:(0,H.hB)(r,"node"),encode:(0,H.hB)(n,"node"),labels:[Object.assign(Object.assign({},pZ),(0,H.hB)(i,"label")),...o],style:Object.assign({},(0,H.hB)(i,"node")),tooltip:h,animate:(0,d2.CQ)(s,"node")})]};function pN(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n0&&n*n>r*r+i*i}function pz(t,e){for(var n=0;n(o*=o)?(r=(c+o-i)/(2*c),a=Math.sqrt(Math.max(0,o/c-r*r)),n.x=t.x-r*l-a*s,n.y=t.y-r*s+a*l):(r=(c+i-o)/(2*c),a=Math.sqrt(Math.max(0,i/c-r*r)),n.x=e.x+r*l-a*s,n.y=e.y+r*s+a*l)):(n.x=e.x+n.r,n.y=e.y)}function pH(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function pG(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function pq(t){this._=t,this.next=null,this.previous=null}function pY(t){return Math.sqrt(t.value)}function pV(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function pU(t,e){return function(n){if(r=n.children){var r,i,a,o=r.length,l=t(n)*e||0;if(l)for(i=0;i1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;pW(n,e,r=t[2]),e=new pq(e),n=new pq(n),r=new pq(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;e:for(l=3;le.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let pX=(t,e)=>({size:[t,e],padding:0,sort:(t,e)=>e.value-t.value}),pJ=(t,e,n)=>({type:"point",axis:!1,legend:!1,scale:{x:{domain:[0,t]},y:{domain:[0,e]},size:{type:"identity"}},encode:{x:"x",y:"y",size:"r",shape:"point"},style:{fill:n.color?void 0:t=>0===t.height?"#ddd":"#fff",stroke:n.color?void 0:t=>0===t.height?"":"#000"}}),p0={text:"",position:"inside",textOverflow:"clip",wordWrap:!0,maxLines:1,wordWrapWidth:t=>2*t.r},p1={title:t=>t.data.name,items:[{field:"value"}]},p2=(t,e,n)=>{let{value:r}=n,i=(0,ot.Z)(t)?sM().path(e.path)(t):(0,sw.ZP)(t);return r?i.sum(t=>to(r)(t)).sort(e.sort):i.count(),(function(){var t=null,e=1,n=1,r=sI;function i(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(pV(t)).eachAfter(pU(r,.5)).eachBefore(pQ(1)):i.eachBefore(pV(pY)).eachAfter(pU(sI,1)).eachAfter(pU(r,i.r/Math.min(e,n))).eachBefore(pQ(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=null==e?null:sO(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:sN(+t),i):r},i})().size(e.size).padding(e.padding)(i),i.descendants()},p5=(t,e)=>{let{width:n,height:r}=e,{data:i,encode:a={},scale:o={},style:l={},layout:s={},labels:c=[],tooltip:u={}}=t,f=pK(t,["data","encode","scale","style","layout","labels","tooltip"]),d=pJ(n,r,a),h=p2(i,(0,b.Z)({},pX(n,r),s),(0,b.Z)({},d.encode,a)),p=(0,H.hB)(l,"label");return(0,b.Z)({},d,Object.assign(Object.assign({data:h,encode:a,scale:o,style:l,labels:[Object.assign(Object.assign({},p0),p),...c]},f),{tooltip:(0,d2.e2)(u,p1),axis:!1}))};function p3(t){return t.target.depth}function p6(t,e){return t.sourceLinks.length?t.depth:e-1}function p4(t){return function(){return t}}function p8(t,e){return p9(t.source,e.source)||t.index-e.index}function p7(t,e){return p9(t.target,e.target)||t.index-e.index}function p9(t,e){return t.y0-e.y0}function gt(t){return t.value}function ge(t){return t.index}function gn(t){return t.nodes}function gr(t){return t.links}function gi(t,e){let n=t.get(e);if(!n)throw Error("missing: "+e);return n}function ga(t){let{nodes:e}=t;for(let t of e){let e=t.y0,n=e;for(let n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(let e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}p5.props={};let go={nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodes:t=>t.nodes,links:t=>t.links,nodeSort:void 0,linkSort:void 0,iterations:6},gl={left:function(t){return t.depth},right:function(t,e){return e-1-t.height},center:function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?(0,rM.Z)(t.sourceLinks,p3)-1:0},justify:p6},gs=t=>e=>{let{nodeId:n,nodeSort:r,nodeAlign:i,nodeWidth:a,nodePadding:o,nodeDepth:l,nodes:s,links:c,linkSort:u,iterations:f}=Object.assign({},go,t),d=(function(){let t,e,n,r=0,i=0,a=1,o=1,l=24,s=8,c,u=ge,f=p6,d=gn,h=gr,p=6;function g(g){let y={nodes:d(g),links:h(g)};return function(t){let{nodes:e,links:r}=t;e.forEach((t,e)=>{t.index=e,t.sourceLinks=[],t.targetLinks=[]});let i=new Map(e.map(t=>[u(t),t]));if(r.forEach((t,e)=>{t.index=e;let{source:n,target:r}=t;"object"!=typeof n&&(n=t.source=gi(i,n)),"object"!=typeof r&&(r=t.target=gi(i,r)),n.sourceLinks.push(t),r.targetLinks.push(t)}),null!=n)for(let{sourceLinks:t,targetLinks:r}of e)t.sort(n),r.sort(n)}(y),function(t){let{nodes:e}=t;for(let t of e)t.value=void 0===t.fixedValue?Math.max((0,c1.Z)(t.sourceLinks,gt),(0,c1.Z)(t.targetLinks,gt)):t.fixedValue}(y),function(e){let{nodes:n}=e,r=n.length,i=new Set(n),a=new Set,o=0;for(;i.size;){if(i.forEach(t=>{for(let{target:e}of(t.depth=o,t.sourceLinks))a.add(e)}),++o>r)throw Error("circular link");i=a,a=new Set}if(t){let e;let r=Math.max((0,rS.Z)(n,t=>t.depth)+1,0);for(let i=0;i{for(let{source:e}of(t.height=a,t.targetLinks))i.add(e)}),++a>n)throw Error("circular link");r=i,i=new Set}}(y),function(t){let u=function(t){let{nodes:n}=t,i=Math.max((0,rS.Z)(n,t=>t.depth)+1,0),o=(a-r-l)/(i-1),s=Array(i).fill(0).map(()=>[]);for(let t of n){let e=Math.max(0,Math.min(i-1,Math.floor(f.call(null,t,i))));t.layer=e,t.x0=r+e*o,t.x1=t.x0+l,s[e]?s[e].push(t):s[e]=[t]}if(e)for(let t of s)t.sort(e);return s}(t);c=Math.min(s,(o-i)/((0,rS.Z)(u,t=>t.length)-1)),function(t){let e=(0,rM.Z)(t,t=>(o-i-(t.length-1)*c)/(0,c1.Z)(t,gt));for(let r of t){let t=i;for(let n of r)for(let r of(n.y0=t,n.y1=t+n.value*e,t=n.y1+c,n.sourceLinks))r.width=r.value*e;t=(o-t+c)/(r.length+1);for(let e=0;e=0;--a){let i=t[a];for(let t of i){let e=0,r=0;for(let{target:n,value:i}of t.sourceLinks){let a=i*(n.layer-t.layer);e+=function(t,e){let n=e.y0-(e.targetLinks.length-1)*c/2;for(let{source:r,width:i}of e.targetLinks){if(r===t)break;n+=i+c}for(let{target:r,width:i}of t.sourceLinks){if(r===e)break;n-=i}return n}(t,n)*a,r+=a}if(!(r>0))continue;let i=(e/r-t.y0)*n;t.y0+=i,t.y1+=i,b(t)}void 0===e&&i.sort(p9),i.length&&m(i,r)}})(u,n,r),function(t,n,r){for(let i=1,a=t.length;i0))continue;let i=(e/r-t.y0)*n;t.y0+=i,t.y1+=i,b(t)}void 0===e&&a.sort(p9),a.length&&m(a,r)}}(u,n,r)}}(y),ga(y),y}function m(t,e){let n=t.length>>1,r=t[n];v(t,r.y0-c,n-1,e),y(t,r.y1+c,n+1,e),v(t,o,t.length-1,e),y(t,i,0,e)}function y(t,e,n,r){for(;n1e-6&&(i.y0+=a,i.y1+=a),e=i.y1+c}}function v(t,e,n,r){for(;n>=0;--n){let i=t[n],a=(i.y1-e)*r;a>1e-6&&(i.y0-=a,i.y1-=a),e=i.y0-c}}function b(t){let{sourceLinks:e,targetLinks:r}=t;if(void 0===n){for(let{source:{sourceLinks:t}}of r)t.sort(p7);for(let{target:{targetLinks:t}}of e)t.sort(p8)}}return g.update=function(t){return ga(t),t},g.nodeId=function(t){return arguments.length?(u="function"==typeof t?t:p4(t),g):u},g.nodeAlign=function(t){return arguments.length?(f="function"==typeof t?t:p4(t),g):f},g.nodeDepth=function(e){return arguments.length?(t=e,g):t},g.nodeSort=function(t){return arguments.length?(e=t,g):e},g.nodeWidth=function(t){return arguments.length?(l=+t,g):l},g.nodePadding=function(t){return arguments.length?(s=c=+t,g):s},g.nodes=function(t){return arguments.length?(d="function"==typeof t?t:p4(t),g):d},g.links=function(t){return arguments.length?(h="function"==typeof t?t:p4(t),g):h},g.linkSort=function(t){return arguments.length?(n=t,g):n},g.size=function(t){return arguments.length?(r=i=0,a=+t[0],o=+t[1],g):[a-r,o-i]},g.extent=function(t){return arguments.length?(r=+t[0][0],a=+t[1][0],i=+t[0][1],o=+t[1][1],g):[[r,i],[a,o]]},g.iterations=function(t){return arguments.length?(p=+t,g):p},g})().nodeSort(r).linkSort(u).links(c).nodes(s).nodeWidth(a).nodePadding(o).nodeDepth(l).nodeAlign(function(t){let e=typeof t;return"string"===e?gl[t]||p6:"function"===e?t:p6}(i)).iterations(f).extent([[0,0],[1,1]]);"function"==typeof n&&d.nodeId(n);let h=d(e),{nodes:p,links:g}=h,m=p.map(t=>{let{x0:e,x1:n,y0:r,y1:i}=t;return Object.assign(Object.assign({},t),{x:[e,n,n,e],y:[r,r,i,i]})}),y=g.map(t=>{let{source:e,target:n}=t,r=e.x1,i=n.x0,a=t.width/2;return Object.assign(Object.assign({},t),{x:[r,r,i,i],y:[t.y0+a,t.y0-a,t.y1+a,t.y1-a]})});return{nodes:m,links:y}};gs.props={};var gc=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let gu={nodeId:t=>t.key,nodeWidth:.02,nodePadding:.02},gf={type:"polygon",axis:!1,legend:!1,encode:{shape:"polygon",x:"x",y:"y"},scale:{x:{type:"identity"},y:{type:"identity"}},style:{stroke:"#000"}},gd={type:"polygon",axis:!1,legend:!1,encode:{shape:"ribbon",x:"x",y:"y"},style:{fillOpacity:.5,stroke:void 0}},gh={textAlign:t=>t.x[0]<.5?"start":"end",position:t=>t.x[0]<.5?"right":"left",fontSize:10},gp=t=>{let{data:e,encode:n={},scale:r,style:i={},layout:a={},nodeLabels:o=[],linkLabels:l=[],animate:s={},tooltip:c={}}=t,{links:u,nodes:f}=ts(e,n),d=(0,H.hB)(n,"node"),h=(0,H.hB)(n,"link"),{key:p=t=>t.key,color:g=p}=d,{links:m,nodes:y}=gs(Object.assign(Object.assign(Object.assign({},gu),{nodeId:to(p)}),a))({links:u,nodes:f}),v=(0,H.hB)(i,"label"),{text:x=p,spacing:O=5}=v,w=gc(v,["text","spacing"]),_=to(p),k=(0,d2.nb)(c,"node",{title:_,items:[{field:"value"}]},!0),C=(0,d2.nb)(c,"link",{title:"",items:[t=>({name:"source",value:_(t.source)}),t=>({name:"target",value:_(t.target)})]});return[(0,b.Z)({},gf,{data:y,encode:Object.assign(Object.assign({},d),{color:g}),scale:r,style:(0,H.hB)(i,"node"),labels:[Object.assign(Object.assign(Object.assign({},gh),{text:x,dx:t=>t.x[0]<.5?O:-O}),w),...o],tooltip:k,animate:(0,d2.CQ)(s,"node"),axis:!1}),(0,b.Z)({},gd,{data:m,encode:h,labels:l,style:Object.assign({fill:h.color?void 0:"#aaa",lineWidth:0},(0,H.hB)(i,"link")),tooltip:C,animate:(0,d2.CQ)(s,"link")})]};function gg(t,e){return e.value-t.value}function gm(t,e){return e.frequency-t.frequency}function gy(t,e){return"".concat(t.id).localeCompare("".concat(e.id))}function gv(t,e){return"".concat(t.name).localeCompare("".concat(e.name))}gp.props={};let gb={y:0,thickness:.05,weight:!1,marginRatio:.1,id:t=>t.id,source:t=>t.source,target:t=>t.target,sourceWeight:t=>t.value||1,targetWeight:t=>t.value||1,sortBy:null},gx=t=>e=>(function(t){let{y:e,thickness:n,weight:r,marginRatio:i,id:o,source:l,target:s,sourceWeight:c,targetWeight:u,sortBy:f}=Object.assign(Object.assign({},gb),t);return function(t){let d=t.nodes.map(t=>Object.assign({},t)),h=t.edges.map(t=>Object.assign({},t));return function(t,e){e.forEach(t=>{t.source=l(t),t.target=s(t),t.sourceWeight=c(t),t.targetWeight=u(t)});let n=(0,tp.ZP)(e,t=>t.source),r=(0,tp.ZP)(e,t=>t.target);t.forEach(t=>{t.id=o(t);let e=n.has(t.id)?n.get(t.id):[],i=r.has(t.id)?r.get(t.id):[];t.frequency=e.length+i.length,t.value=(0,c1.Z)(e,t=>t.sourceWeight)+(0,c1.Z)(i,t=>t.targetWeight)})}(d,h),function(t,e){let n="function"==typeof f?f:a[f];n&&t.sort(n)}(d,0),function(t,a){let o=t.length;if(!o)throw(0,H.vU)("Invalid nodes: it's empty!");if(!r){let n=1/o;return t.forEach((t,r)=>{t.x=(r+.5)*n,t.y=e})}let l=i/(2*o),s=t.reduce((t,e)=>t+=e.value,0);t.reduce((t,r)=>{r.weight=r.value/s,r.width=r.weight*(1-i),r.height=n;let a=l+t,o=a+r.width,c=e-n/2,u=c+n;return r.x=[a,o,o,a],r.y=[c,c,u,u],t+r.width+2*l},0)}(d,0),function(t,n){let i=new Map(t.map(t=>[t.id,t]));if(!r)return n.forEach(t=>{let e=l(t),n=s(t),r=i.get(e),a=i.get(n);r&&a&&(t.x=[r.x,a.x],t.y=[r.y,a.y])});n.forEach(t=>{t.x=[0,0,0,0],t.y=[e,e,e,e]});let a=(0,tp.ZP)(n,t=>t.source),o=(0,tp.ZP)(n,t=>t.target);t.forEach(t=>{let{edges:e,width:n,x:r,y:i,value:l,id:s}=t,c=a.get(s)||[],u=o.get(s)||[],f=0;c.map(t=>{let e=t.sourceWeight/l*n;t.x[0]=r[0]+f,t.x[1]=r[0]+f+e,f+=e}),u.forEach(t=>{let e=t.targetWeight/l*n;t.x[3]=r[0]+f,t.x[2]=r[0]+f+e,f+=e})})}(d,h),{nodes:d,edges:h}}})(t)(e);gx.props={};var gO=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let gw={y:0,thickness:.05,marginRatio:.1,id:t=>t.key,source:t=>t.source,target:t=>t.target,sourceWeight:t=>t.value||1,targetWeight:t=>t.value||1,sortBy:null},g_={type:"polygon",axis:!1,legend:!1,encode:{shape:"polygon",x:"x",y:"y"},scale:{x:{type:"identity"},y:{type:"identity"}},style:{opacity:1,fillOpacity:1,lineWidth:1}},gk={type:"polygon",axis:!1,legend:!1,encode:{shape:"ribbon",x:"x",y:"y"},style:{opacity:.5,lineWidth:1}},gC={position:"outside",fontSize:10},gj=(t,e)=>{let{data:n,encode:r={},scale:i,style:a={},layout:o={},nodeLabels:l=[],linkLabels:s=[],animate:c={},tooltip:u={}}=t,{nodes:f,links:d}=ts(n,r),h=(0,H.hB)(r,"node"),p=(0,H.hB)(r,"link"),{key:g=t=>t.key,color:m=g}=h,{linkEncodeColor:y=t=>t.source}=p,{nodeWidthRatio:v=gw.thickness,nodePaddingRatio:x=gw.marginRatio}=o,O=gO(o,["nodeWidthRatio","nodePaddingRatio"]),{nodes:w,edges:_}=gx(Object.assign(Object.assign(Object.assign(Object.assign({},gw),{id:to(g),thickness:v,marginRatio:x}),O),{weight:!0}))({nodes:f,edges:d}),k=(0,H.hB)(a,"label"),{text:C=g}=k,j=gO(k,["text"]),M=(0,d2.nb)(u,"node",{title:"",items:[t=>({name:t.key,value:t.value})]},!0),S=(0,d2.nb)(u,"link",{title:"",items:[t=>({name:"".concat(t.source," -> ").concat(t.target),value:t.value})]}),{height:A,width:E}=e,P=Math.min(A,E);return[(0,b.Z)({},gk,{data:_,encode:Object.assign(Object.assign({},p),{color:y}),labels:s,style:Object.assign({fill:y?void 0:"#aaa"},(0,H.hB)(a,"link")),tooltip:S,animate:(0,d2.CQ)(c,"link")}),(0,b.Z)({},g_,{data:w,encode:Object.assign(Object.assign({},h),{color:m}),scale:i,style:(0,H.hB)(a,"node"),coordinate:{type:"polar",outerRadius:(P-20)/P,startAngle:-(2*Math.PI),endAngle:0},labels:[Object.assign(Object.assign(Object.assign({},gC),{text:C}),j),...l],tooltip:M,animate:(0,d2.CQ)(c,"node"),axis:!1})]};gj.props={};var gM=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let gS=(t,e)=>({tile:"treemapSquarify",ratio:.5*(1+Math.sqrt(5)),size:[t,e],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,sort:(t,e)=>e.value-t.value,layer:0}),gA=(t,e)=>({type:"rect",axis:!1,encode:{x:"x",y:"y",key:"id",color:t=>t.path[1]},scale:{x:{domain:[0,t],range:[0,1]},y:{domain:[0,e],range:[0,1]}},style:{stroke:"#fff"},state:{active:{opacity:.6},inactive:{opacity:1}}}),gE={fontSize:10,text:t=>aU(t.path),position:"inside",fill:"#000",textOverflow:"clip",wordWrap:!0,maxLines:1,wordWrapWidth:t=>t.x1-t.x0},gP={title:t=>{var e,n;return null===(n=null===(e=t.path)||void 0===e?void 0:e.join)||void 0===n?void 0:n.call(e,".")},items:[{field:"value"}]},gR={title:t=>aU(t.path),items:[{field:"value"}]},gT=(t,e)=>{let{width:n,height:r,options:i}=e,{data:a,encode:o={},scale:l,style:s={},layout:c={},labels:u=[],tooltip:f={}}=t,d=gM(t,["data","encode","scale","style","layout","labels","tooltip"]),h=(0,sp.Z)(i,["interaction","treemapDrillDown"]),p=(0,b.Z)({},gS(n,r),c,{layer:h?t=>1===t.depth:c.layer}),[g,m]=sD(a,p,o),y=(0,H.hB)(s,"label");return(0,b.Z)({},gA(n,r),Object.assign(Object.assign({data:g,scale:l,style:s,labels:[Object.assign(Object.assign({},gE),y),...u]},d),{encode:o,tooltip:(0,d2.e2)(f,gP),axis:!1}),h?{interaction:Object.assign(Object.assign({},d.interaction),{treemapDrillDown:h?Object.assign(Object.assign({},h),{originData:m,layout:p}):void 0}),encode:Object.assign({color:t=>aU(t.path)},o),tooltip:(0,d2.e2)(f,gR)}:{})};gT.props={};var gL=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function gB(t,e){return(0,rM.Z)(t,t=>e[t])}function gZ(t,e){return(0,rS.Z)(t,t=>e[t])}function gI(t,e){let n=2.5*gN(t,e)-1.5*gz(t,e);return(0,rM.Z)(t,t=>e[t]>=n?e[t]:NaN)}function gN(t,e){return c0(t,.25,t=>e[t])}function gD(t,e){return c0(t,.5,t=>e[t])}function gz(t,e){return c0(t,.75,t=>e[t])}function gF(t,e){let n=2.5*gz(t,e)-1.5*gN(t,e);return(0,rS.Z)(t,t=>e[t]<=n?e[t]:NaN)}function g$(){return(t,e)=>{let{encode:n}=e,{y:r,x:i}=n,{value:a}=r,{value:o}=i,l=Array.from((0,tp.ZP)(t,t=>o[+t]).values()),s=l.flatMap(t=>{let e=gI(t,a),n=gF(t,a);return t.filter(t=>a[t]n)});return[s,e]}}let gW=t=>{let{data:e,encode:n,style:r={},tooltip:i={},transform:a,animate:o}=t,l=gL(t,["data","encode","style","tooltip","transform","animate"]),{point:s=!0}=r,c=gL(r,["point"]),{y:u}=n,f={y:u,y1:u,y2:u,y3:u,y4:u},d={y1:gN,y2:gD,y3:gz},h=(0,d2.nb)(i,"box",{items:[{channel:"y",name:"min"},{channel:"y1",name:"q1"},{channel:"y2",name:"q2"},{channel:"y3",name:"q3"},{channel:"y4",name:"max"}]},!0),p=(0,d2.nb)(i,"point",{title:{channel:"x"},items:[{name:"outlier",channel:"y"}]});if(!s)return Object.assign({type:"box",data:e,transform:[Object.assign(Object.assign({type:"groupX",y:gB},d),{y4:gZ})],encode:Object.assign(Object.assign({},n),f),style:c,tooltip:h},l);let g=(0,H.hB)(c,"box"),m=(0,H.hB)(c,"point");return[Object.assign({type:"box",data:e,transform:[Object.assign(Object.assign({type:"groupX",y:gI},d),{y4:gF})],encode:Object.assign(Object.assign({},n),f),style:g,tooltip:h,animate:(0,d2.CQ)(o,"box")},l),{type:"point",data:e,transform:[{type:g$}],encode:n,style:Object.assign({},m),tooltip:p,animate:(0,d2.CQ)(o,"point")}]};gW.props={};var gH=n(69959);let gG=(t,e)=>Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))/2,gq=(t,e)=>{if(!e)return;let{coordinate:n}=e;if(!(null==n?void 0:n.getCenter))return;let r=n.getCenter();return(n,i,a)=>{let{document:o}=e.canvas,{color:l,index:s}=i,c=o.createElement("g",{}),u=gG(n[0],n[1]),f=2*gG(n[0],r),d=o.createElement("path",{style:Object.assign(Object.assign(Object.assign({d:[["M",...n[0]],["A",u,u,0,1,0,...n[1]],["A",f+2*u,f+2*u,0,0,0,...n[2]],["A",u,u,0,1,0===s?0:1,...n[3]],["A",f,f,0,0,1,...n[0]],["Z"]]},a),(0,gH.Z)(t,["shape","last","first"])),{fill:l||a.color})});return c.appendChild(d),c}};var gY=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let gV={coordinate:{type:"radial",innerRadius:.9,outerRadius:1,startAngle:-1.1*Math.PI,endAngle:.1*Math.PI},axis:{x:!1},legend:!1,tooltip:!1,encode:{x:"x",y:"y",color:"color"},scale:{color:{range:["#30BF78","#D0D0D0"]}}},gU={style:{shape:(t,e)=>{let{shape:n,radius:r}=t,i=gY(t,["shape","radius"]),a=(0,H.hB)(i,"pointer"),o=(0,H.hB)(i,"pin"),{shape:l}=a,s=gY(a,["shape"]),{shape:c}=o,u=gY(o,["shape"]),{coordinate:f,theme:d}=e;return(t,e)=>{let n=t.map(t=>f.invert(t)),[a,o,p]=(0,Z.o)(f,"polar"),g=f.clone(),{color:m}=e,y=(0,h.E)({startAngle:a,endAngle:o,innerRadius:p,outerRadius:r});y.push(["cartesian"]),g.update({transformations:y});let v=n.map(t=>g.map(t)),[b,x]=(0,N.P$)(v),[O,w]=f.getCenter(),_=Object.assign(Object.assign({x1:b,y1:x,x2:O,y2:w,stroke:m},s),i),k=Object.assign(Object.assign({cx:O,cy:w,stroke:m},u),i),C=(0,I.F)(new t4.ZA);return(0,H.Qp)(l)||("function"==typeof l?C.append(()=>l(v,e,g,d)):C.append("line").call(N.bg,_).node()),(0,H.Qp)(c)||("function"==typeof c?C.append(()=>c(v,e,g,d)):C.append("circle").call(N.bg,k).node()),C.node()}},lineWidth:4,pointerLineCap:"round",pinR:10,pinFill:"#fff",radius:.6}},gQ={type:"text",style:{x:"50%",y:"60%",textAlign:"center",textBaseline:"middle",fontSize:20,fontWeight:800,fill:"#888"}},gK=t=>{let{data:e={},scale:n={},style:r={},animate:i={},transform:a=[]}=t,o=gY(t,["data","scale","style","animate","transform"]),{targetData:l,totalData:s,target:c,total:u,scale:f}=function(t,e){let{name:n="score",target:r,total:i,percent:a,thresholds:o=[]}=function(t){if((0,rY.Z)(t)){let e=Math.max(0,Math.min(t,1));return{percent:e,target:e,total:1}}return t}(t),l=a||r,s=a?1:i,c=Object.assign({y:{domain:[0,s]}},e);return o.length?{targetData:[{x:n,y:l,color:"target"}],totalData:o.map((t,e)=>({x:n,y:e>=1?t-o[e-1]:t,color:e})),target:l,total:s,scale:c}:{targetData:[{x:n,y:l,color:"target"}],totalData:[{x:n,y:l,color:"target"},{x:n,y:s-l,color:"total"}],target:l,total:s,scale:c}}(e,n),d=(0,H.hB)(r,"text"),h=(0,H.b5)(r,["pointer","pin"]),p=(0,H.hB)(r,"arc"),g=p.shape;return[(0,b.Z)({},gV,Object.assign({type:"interval",transform:[{type:"stackY"}],data:s,scale:f,style:"round"===g?Object.assign(Object.assign({},p),{shape:gq}):p,animate:"object"==typeof i?(0,H.hB)(i,"arc"):i},o)),(0,b.Z)({},gV,gU,Object.assign({type:"point",data:l,scale:f,style:h,animate:"object"==typeof i?(0,H.hB)(i,"indicator"):i},o)),(0,b.Z)({},gQ,{style:Object.assign({text:function(t,e){let{target:n,total:r}=e,{content:i}=t;return i?i(n,r):n.toString()}(d,{target:c,total:u})},d),animate:"object"==typeof i?(0,H.hB)(i,"text"):i})]};gK.props={};var gX=n(11896);let gJ={pin:function(t,e,n){let r=4*n/3,i=Math.max(r,2*n),a=r/2,o=a+e-i/2,l=Math.asin(a/((i-a)*.85)),s=Math.sin(l)*a,c=Math.cos(l)*a,u=t-c,f=o+s,d=o+a/Math.sin(l);return"\n M ".concat(u," ").concat(f,"\n A ").concat(a," ").concat(a," 0 1 1 ").concat(u+2*c," ").concat(f,"\n Q ").concat(t," ").concat(d," ").concat(t," ").concat(e+i/2,"\n Q ").concat(t," ").concat(d," ").concat(u," ").concat(f,"\n Z \n ")},rect:function(t,e,n){let r=.618*n;return"\n M ".concat(t-r," ").concat(e-n,"\n L ").concat(t+r," ").concat(e-n,"\n L ").concat(t+r," ").concat(e+n,"\n L ").concat(t-r," ").concat(e+n,"\n Z\n ")},circle:function(t,e,n){return"\n M ".concat(t," ").concat(e-n," \n a ").concat(n," ").concat(n," 0 1 0 0 ").concat(2*n,"\n a ").concat(n," ").concat(n," 0 1 0 0 ").concat(-(2*n),"\n Z\n ")},diamond:function(t,e,n){return"\n M ".concat(t," ").concat(e-n,"\n L ").concat(t+n," ").concat(e,"\n L ").concat(t," ").concat(e+n,"\n L ").concat(t-n," ").concat(e,"\n Z\n ")},triangle:function(t,e,n){return"\n M ".concat(t," ").concat(e-n,"\n L ").concat(t+n," ").concat(e+n,"\n L ").concat(t-n," ").concat(e+n,"\n Z\n ")}};var g0=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let g1=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"circle";return gJ[t]||gJ.circle},g2=(t,e)=>{if(!e)return;let{coordinate:n}=e,{liquidOptions:r,styleOptions:i}=t,{liquidShape:a,percent:o}=r,{background:l,outline:s={},wave:c={}}=i,u=g0(i,["background","outline","wave"]),{border:f=2,distance:d=0}=s,h=g0(s,["border","distance"]),{length:p=192,count:g=3}=c;return(t,r,i)=>{let{document:s}=e.canvas,{color:c,fillOpacity:m}=i,y=Object.assign(Object.assign({fill:c},i),u),v=s.createElement("g",{}),[b,x]=n.getCenter(),O=n.getSize(),w=Math.min(...O)/2,_=(0,oe.Z)(a)?a:g1(a),k=_(b,x,w,...O);if(Object.keys(l).length){let t=s.createElement("path",{style:Object.assign({d:k,fill:"#fff"},l)});v.appendChild(t)}if(o>0){let t=s.createElement("path",{style:{d:k}});v.appendChild(t),v.style.clipPath=t,function(t,e,n,r,i,a,o,l,s,c,u){let{fill:f,fillOpacity:d,opacity:h}=i;for(let i=0;i0;)c-=2*Math.PI;c=c/Math.PI/2*n;let u=a-t+c-2*t;s.push(["M",u,e]);let f=0;for(let t=0;te.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let g3={axis:{x:!1,y:!1},legend:!1,tooltip:!1,encode:{x:"type",y:"percent"},scale:{y:{domain:[0,1]}},style:{shape:g2},animate:{enter:{type:"fadeIn"}}},g6={type:"text",style:{x:"50%",y:"50%",textAlign:"center",textBaseline:"middle",fontSize:20,fontWeight:800,fill:"#888"},animate:{enter:{type:"fadeIn"}}},g4=t=>{let{data:e={},style:n={},animate:r}=t,i=g5(t,["data","style","animate"]),a=Math.max(0,(0,rY.Z)(e)?e:null==e?void 0:e.percent),o=[{percent:a,type:"liquid"}],l=Object.assign(Object.assign({},(0,H.hB)(n,"text")),(0,H.hB)(n,"content")),s=(0,H.hB)(n,"outline"),c=(0,H.hB)(n,"wave"),u=(0,H.hB)(n,"background");return[(0,b.Z)({},g3,Object.assign({type:"interval",data:o,style:{liquidOptions:{percent:a,liquidShape:null==n?void 0:n.shape},styleOptions:Object.assign(Object.assign({},n),{outline:s,wave:c,background:u})},animate:r},i)),(0,b.Z)({},g6,{style:Object.assign({text:"".concat((0,gX.C)(100*a)," %")},l),animate:r})]};g4.props={};var g8=n(69916);function g7(t,e){let n=function(t){let e=[];for(let n=0;ne[n].radius+1e-10)return!1;return!0}(e,t)}),i=0,a=0,o,l=[];if(r.length>1){let e=function(t){let e={x:0,y:0};for(let n=0;n-1){let i=t[e.parentIndex[r]],a=Math.atan2(e.x-i.x,e.y-i.y),o=Math.atan2(n.x-i.x,n.y-i.y),l=o-a;l<0&&(l+=2*Math.PI);let u=o-l/2,f=mt(s,{x:i.x+i.radius*Math.sin(u),y:i.y+i.radius*Math.cos(u)});f>2*i.radius&&(f=2*i.radius),(null===c||c.width>f)&&(c={circle:i,width:f,p1:e,p2:n})}null!==c&&(l.push(c),i+=g9(c.circle.radius,c.width),n=e)}}else{let e=t[0];for(o=1;oMath.abs(e.radius-t[o].radius)){n=!0;break}n?i=a=0:(i=e.radius*e.radius*Math.PI,l.push({circle:e,p1:{x:e.x,y:e.y+e.radius},p2:{x:e.x-1e-10,y:e.y+e.radius},width:2*e.radius}))}return a/=2,e&&(e.area=i+a,e.arcArea=i,e.polygonArea=a,e.arcs=l,e.innerPoints=r,e.intersectionPoints=n),i+a}function g9(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function mt(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function me(t,e,n){if(n>=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);let r=t-(n*n-e*e+t*t)/(2*n),i=e-(n*n-t*t+e*e)/(2*n);return g9(t,r)+g9(e,i)}function mn(t,e){let n=mt(t,e),r=t.radius,i=e.radius;if(n>=r+i||n<=Math.abs(r-i))return[];let a=(r*r-i*i+n*n)/(2*n),o=Math.sqrt(r*r-a*a),l=t.x+a*(e.x-t.x)/n,s=t.y+a*(e.y-t.y)/n,c=-(e.y-t.y)*(o/n),u=-(e.x-t.x)*(o/n);return[{x:l+c,y:s-u},{x:l-c,y:s+u}]}function mr(t,e,n){return Math.min(t,e)*Math.min(t,e)*Math.PI<=n+1e-10?Math.abs(t-e):(0,g8.bisect)(function(r){return me(t,e,r)-n},0,t+e)}function mi(t,e){let n=function(t,e){let n;let r=e&&e.lossFunction?e.lossFunction:ma,i={},a={};for(let e=0;e=Math.min(i[o].size,i[l].size)&&(r=0),a[o].push({set:l,size:n.size,weight:r}),a[l].push({set:o,size:n.size,weight:r})}let o=[];for(n in a)if(a.hasOwnProperty(n)){let t=0;for(let e=0;e=8){let i=function(t,e){let n,r,i;e=e||{};let a=e.restarts||10,o=[],l={};for(n=0;n=Math.min(e[a].size,e[o].size)?u=1:t.size<=1e-10&&(u=-1),i[a][o]=i[o][a]=u}),{distances:r,constraints:i}}(t,o,l),c=s.distances,u=s.constraints,f=(0,g8.norm2)(c.map(g8.norm2))/c.length;c=c.map(function(t){return t.map(function(t){return t/f})});let d=function(t,e){return function(t,e,n,r){let i=0,a;for(a=0;a0&&p<=f||d<0&&p>=f||(i+=2*g*g,e[2*a]+=4*g*(o-c),e[2*a+1]+=4*g*(l-u),e[2*s]+=4*g*(c-o),e[2*s+1]+=4*g*(u-l))}}return i}(t,e,c,u)};for(n=0;n{let{sets:e="sets",size:n="size",as:r=["key","path"],padding:i=0}=t,[a,o]=r;return t=>{let r;let l=t.map(t=>Object.assign(Object.assign({},t),{sets:t[e],size:t[n],[a]:t.sets.join("&")}));l.sort((t,e)=>t.sets.length-e.sets.length);let s=function(t,e){let n;(e=e||{}).maxIterations=e.maxIterations||500;let r=e.initialLayout||mi,i=e.lossFunction||ma;t=function(t){let e,n,r,i;t=t.slice();let a=[],o={};for(e=0;et>e?1:-1),e=0;e{let n=t[e];return Object.assign(Object.assign({},t),{[o]:t=>{let{width:e,height:a}=t;r=r||function(t,e,n,r){let i=[],a=[];for(let e in t)t.hasOwnProperty(e)&&(a.push(e),i.push(t[e]));e-=2*r,n-=2*r;let o=function(t){let e=function(e){let n=Math.max.apply(null,t.map(function(t){return t[e]+t.radius})),r=Math.min.apply(null,t.map(function(t){return t[e]-t.radius}));return{max:n,min:r}};return{xRange:e("x"),yRange:e("y")}}(i),l=o.xRange,s=o.yRange;if(l.max==l.min||s.max==s.min)return console.log("not scaling solution: zero size detected"),t;let c=e/(l.max-l.min),u=n/(s.max-s.min),f=Math.min(u,c),d=(e-(l.max-l.min)*f)/2,h=(n-(s.max-s.min)*f)/2,p={};for(let t=0;tr[t]),l=function(t){let e={};g7(t,e);let n=e.arcs;if(0===n.length)return"M 0 0";if(1==n.length){let t=n[0].circle;return function(t,e,n){let r=[],i=t-n;return r.push("M",i,e),r.push("A",n,n,0,1,0,i+2*n,e),r.push("A",n,n,0,1,0,i,e),r.join(" ")}(t.x,t.y,t.radius)}{let t=["\nM",n[0].p2.x,n[0].p2.y];for(let e=0;ei;t.push("\nA",i,i,0,a?1:0,1,r.p1.x,r.p1.y)}return t.join(" ")}}(o);return/[zZ]$/.test(l)||(l+=" Z"),l}})})}};function ml(){return Object.assign(Object.assign(Object.assign(Object.assign({},{"composition.geoView":po,"composition.geoPath":ps}),{"data.arc":gx,"data.cluster":pP,"mark.forceGraph":px,"mark.tree":pI,"mark.pack":p5,"mark.sankey":gp,"mark.chord":gj,"mark.treemap":gT}),{"data.venn":mo,"mark.boxplot":gW,"mark.gauge":gK,"mark.wordCloud":rN,"mark.liquid":g4}),{"data.fetch":uQ,"data.inline":uK,"data.sortBy":uX,"data.sort":uJ,"data.filter":u1,"data.pick":u2,"data.rename":u5,"data.fold":u3,"data.slice":u6,"data.custom":u4,"data.map":u8,"data.join":u9,"data.kde":fn,"data.log":fr,"data.wordCloud":fb,"transform.stackY":cz,"transform.binX":uo,"transform.bin":ua,"transform.dodgeX":us,"transform.jitter":uu,"transform.jitterX":uf,"transform.jitterY":ud,"transform.symmetryY":up,"transform.diffY":ug,"transform.stackEnter":um,"transform.normalizeY":uv,"transform.select":u_,"transform.selectX":uC,"transform.selectY":uM,"transform.groupX":uE,"transform.groupY":uP,"transform.groupColor":uR,"transform.group":uA,"transform.sortX":uB,"transform.sortY":uZ,"transform.sortColor":uI,"transform.flexX":uN,"transform.pack":uD,"transform.sample":uF,"transform.filter":u$,"coordinate.cartesian":o,"coordinate.polar":l.A,"coordinate.transpose":s,"coordinate.theta":u,"coordinate.parallel":f,"coordinate.fisheye":d,"coordinate.radial":h.E,"coordinate.radar":p,"encode.constant":g,"encode.field":m,"encode.transform":y,"encode.column":v,"mark.interval":tf,"mark.rect":th,"mark.line":t6,"mark.point":e1,"mark.text":nr,"mark.cell":no,"mark.area":nO,"mark.link":nL,"mark.image":nN,"mark.polygon":nH,"mark.box":nQ,"mark.vector":nX,"mark.lineX":n3,"mark.lineY":n8,"mark.connector":rn,"mark.range":ro,"mark.rangeX":rc,"mark.rangeY":rd,"mark.path":rv,"mark.shape":rw,"mark.density":rj,"mark.heatmap":rB,"mark.wordCloud":rN,"palette.category10":rD,"palette.category20":rz,"scale.linear":r$,"scale.ordinal":rH,"scale.band":rq,"scale.identity":rX,"scale.point":r0,"scale.time":iD,"scale.log":iY,"scale.pow":iX,"scale.sqrt":i0,"scale.threshold":i2,"scale.quantile":i3,"scale.quantize":i4,"scale.sequential":ae,"scale.constant":ar,"theme.classic":al,"theme.classicDark":au,"theme.academy":ad,"theme.light":ao,"theme.dark":ac,"component.axisX":ap,"component.axisY":ag,"component.legendCategory":aJ,"component.legendContinuous":a0.c,"component.legends":a1,"component.title":a6,"component.sliderX":ow,"component.sliderY":o_,"component.scrollbarX":oM,"component.scrollbarY":oS,"animation.scaleInX":oA,"animation.scaleOutX":oE,"animation.scaleInY":oP,"animation.scaleOutY":oR,"animation.waveIn":oT,"animation.fadeIn":oL,"animation.fadeOut":oB,"animation.zoomIn":oZ,"animation.zoomOut":oI,"animation.pathIn":oN,"animation.morphing":oU,"animation.growInX":oQ,"animation.growInY":oK,"interaction.elementHighlight":o0,"interaction.elementHighlightByX":o1,"interaction.elementHighlightByColor":o2,"interaction.elementSelect":o3,"interaction.elementSelectByX":o6,"interaction.elementSelectByColor":o4,"interaction.fisheye":o7,"interaction.chartIndex":li,"interaction.tooltip":lE,"interaction.legendFilter":lF,"interaction.legendHighlight":l$,"interaction.brushHighlight":lU,"interaction.brushXHighlight":lK,"interaction.brushYHighlight":lJ,"interaction.brushAxisHighlight":l8,"interaction.brushFilter":l9,"interaction.brushXFilter":st,"interaction.brushYFilter":se,"interaction.sliderFilter":sa,"interaction.scrollbarFilter":sl,"interaction.poptip":sd,"interaction.treemapDrillDown":s$,"interaction.elementPointMove":s5,"composition.spaceLayer":s4,"composition.spaceFlex":s7,"composition.facetRect":cg,"composition.repeatMatrix":cx,"composition.facetCircle":cM,"composition.timingKeyframe":cS,"labelTransform.overlapHide":f_,"labelTransform.overlapDodgeY":fC,"labelTransform.overflowHide":fj,"labelTransform.contrastReverse":fE,"labelTransform.exceedAdjust":fR})}mo.props={}},83190:function(t,e,n){"use strict";n.d(e,{S:function(){return o},Sx:function(){return r},Tt:function(){return a},V$:function(){return l},fw:function(){return c},nQ:function(){return s},tu:function(){return u},z3:function(){return i}});let r="main-layer",i="label-layer",a="element",o="view",l="plot",s="component",c="label",u="area"},86043:function(t,e,n){"use strict";n.d(e,{I:function(){return f},J:function(){return u}});var r=n(10233),i=n(67700),a=n(80866),o=n(70174),l=n(11896),s=n(86124),c=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function u(t,e,n,u){let f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},{inset:d=0,radius:h=0,insetLeft:p=d,insetTop:g=d,insetRight:m=d,insetBottom:y=d,radiusBottomLeft:v=h,radiusBottomRight:b=h,radiusTopLeft:x=h,radiusTopRight:O=h,minWidth:w=-1/0,maxWidth:_=1/0,minHeight:k=-1/0}=f,C=c(f,["inset","radius","insetLeft","insetTop","insetRight","insetBottom","radiusBottomLeft","radiusBottomRight","radiusTopLeft","radiusTopRight","minWidth","maxWidth","minHeight"]);if(!(0,i.Z0)(u)&&!(0,i.x9)(u)){let n=!!(0,i._e)(u),[r,,c]=n?(0,s.HP)(e):e,[f,d]=r,[h,j]=(0,o.lu)(c,r),M=Math.abs(h),S=Math.abs(j),A=(h>0?f:f+h)+p,E=(j>0?d:d+j)+g,P=M-(p+m),R=S-(g+y),T=n?(0,l.u)(P,k,1/0):(0,l.u)(P,w,_),L=n?(0,l.u)(R,w,_):(0,l.u)(R,k,1/0),B=n?A:A-(T-P)/2,Z=n?E-(L-R)/2:E-(L-R);return(0,a.F)(t.createElement("rect",{})).style("x",B).style("y",Z).style("width",T).style("height",L).style("radius",[x,O,b,v]).call(s.bg,C).node()}let{y:j,y1:M}=n,S=u.getCenter(),A=(0,s._x)(u,e,[j,M]),E=(0,r.Z)().cornerRadius(h).padAngle(d*Math.PI/180);return(0,a.F)(t.createElement("path",{})).style("d",E(A)).style("transform","translate(".concat(S[0],", ").concat(S[1],")")).style("radius",h).style("inset",d).call(s.bg,C).node()}let f=(t,e)=>{let{colorAttribute:n,opacityAttribute:r="fill",first:o=!0,last:l=!0}=t,f=c(t,["colorAttribute","opacityAttribute","first","last"]),{coordinate:d,document:h}=e;return(e,r,p)=>{let{color:g,radius:m=0}=p,y=c(p,["color","radius"]),v=y.lineWidth||1,{stroke:b,radius:x=m,radiusTopLeft:O=x,radiusTopRight:w=x,radiusBottomRight:_=x,radiusBottomLeft:k=x,innerRadius:C=0,innerRadiusTopLeft:j=C,innerRadiusTopRight:M=C,innerRadiusBottomRight:S=C,innerRadiusBottomLeft:A=C,lineWidth:E="stroke"===n||b?v:0,inset:P=0,insetLeft:R=P,insetRight:T=P,insetBottom:L=P,insetTop:B=P,minWidth:Z,maxWidth:I,minHeight:N}=f,D=c(f,["stroke","radius","radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft","innerRadius","innerRadiusTopLeft","innerRadiusTopRight","innerRadiusBottomRight","innerRadiusBottomLeft","lineWidth","inset","insetLeft","insetRight","insetBottom","insetTop","minWidth","maxWidth","minHeight"]),{color:z=g,opacity:F}=r,$=[o?O:j,o?w:M,l?_:S,l?k:A],W=["radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft"];(0,i._e)(d)&&W.push(W.shift());let H=Object.assign(Object.assign({radius:x},Object.fromEntries(W.map((t,e)=>[t,$[e]]))),{inset:P,insetLeft:R,insetRight:T,insetBottom:L,insetTop:B,minWidth:Z,maxWidth:I,minHeight:N});return(0,a.F)(u(h,e,r,d,H)).call(s.bg,y).style("fill","transparent").style(n,z).style((0,s.E9)(t),F).style("lineWidth",E).style("stroke",void 0===b?z:b).call(s.bg,D).node()}};f.props={defaultEnterAnimation:"scaleInY",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"}},5099:function(t,e,n){"use strict";n.d(e,{g:function(){return h}});var r=n(25897),i=n(86224),a=n(25049),o=n(21399),l=n(86124),s=n(39513),c=n(80866),u=n(70174),f=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let d=(t,e,n)=>{let r=(0,u.TK)(t,e),i=(0,u.TK)(e,n),a=(0,u.TK)(n,t);return(Math.pow(r,2)+Math.pow(i,2)-Math.pow(a,2))/(2*r*i)},h=(0,o.a)(t=>{let e;let n=t.attributes,{className:o,class:u,transform:h,rotate:p,labelTransform:g,labelTransformOrigin:m,x:y,y:v,x0:b=y,y0:x=v,text:O,background:w,connector:_,startMarker:k,endMarker:C,coordCenter:j,innerHTML:M}=n,S=f(n,["className","class","transform","rotate","labelTransform","labelTransformOrigin","x","y","x0","y0","text","background","connector","startMarker","endMarker","coordCenter","innerHTML"]);if(t.style.transform="translate(".concat(y,", ").concat(v,")"),[y,v,b,x].some(t=>!(0,r.Z)(t))){t.children.forEach(t=>t.remove());return}let A=(0,s.hB)(S,"background"),{padding:E}=A,P=f(A,["padding"]),R=(0,s.hB)(S,"connector"),{points:T=[]}=R,L=f(R,["points"]),B=[[+b,+x],[+y,+v]];e=M?(0,c.F)(t).maybeAppend("html","html",o).style("zIndex",0).style("innerHTML",M).call(l.bg,Object.assign({transform:g,transformOrigin:m},S)).node():(0,c.F)(t).maybeAppend("text","text").style("zIndex",0).style("text",O).call(l.bg,Object.assign({textBaseline:"middle",transform:g,transformOrigin:m},S)).node();let Z=(0,c.F)(t).maybeAppend("background","rect").style("zIndex",-1).call(l.bg,function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],[n=0,r=0,i=n,a=r]=e,o=t.parentNode,l=o.getEulerAngles();o.setEulerAngles(0);let{min:s,halfExtents:c}=t.getLocalBounds(),[u,f]=s,[d,h]=c;return o.setEulerAngles(l),{x:u-a,y:f-n,width:2*d+a+r,height:2*h+n+i}}(e,E)).call(l.bg,w?P:{}).node(),I=function(t,e,n,r){let[[i,o],[l,s]]=e,[c,u]=function(t){let{min:[e,n],max:[r,i]}=t.getLocalBounds(),a=0,o=0;return e>0&&(a=e),r<0&&(a=r),n>0&&(o=n),i<0&&(o=i),[a,o]}(t);if(i===l&&o===s)return(0,a.Z)()([[0,0],[c,u]]);let f=[[i-l,o-s]].concat(n.length?n:[[0,0]]),h=[r[0]-l,r[1]-s],[p,g]=f;if(d(h,p,g)>0){let e=(()=>{let{min:e,max:n}=t.getLocalBounds(),r=p[0]+(p[1]-h[1])*(p[1]-0)/(p[0]-h[0]);return n[0]0===n?t.moveTo(e[0],e[1]):t.lineTo(e[0],e[1])),t.closePath(),t}function f(t,e,n){let{arrowSize:r}=n,i="string"==typeof r?+parseFloat(r)/100*(0,s.TK)(t,e):r,a=Math.PI/6,o=Math.atan2(e[1]-t[1],e[0]-t[0]),l=Math.PI/2-o-a,c=[e[0]-i*Math.sin(l),e[1]-i*Math.cos(l)],u=o-a,f=[e[0]-i*Math.cos(u),e[1]-i*Math.sin(u)];return[c,f]}function d(t,e,n,r,i){let a=(0,s.EU)((0,s.lu)(r,e))+Math.PI,o=(0,s.EU)((0,s.lu)(r,n))+Math.PI;return t.arc(r[0],r[1],i,a,o,o-a<0),t}function h(t,e,n){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"y",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"between",c=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u="y"===l||!0===l?n:e,f=(0,o.cq)(u),[d,h]=(0,a.Z)(f,t=>u[t]),p=new r.b({domain:[d,h],range:[0,100]}),g=t=>(0,i.Z)(u[t])&&!Number.isNaN(u[t])?p.map(u[t]):0,m={between:e=>"".concat(t[e]," ").concat(g(e),"%"),start:e=>0===e?"".concat(t[e]," ").concat(g(e),"%"):"".concat(t[e-1]," ").concat(g(e),"%, ").concat(t[e]," ").concat(g(e),"%"),end:e=>e===t.length-1?"".concat(t[e]," ").concat(g(e),"%"):"".concat(t[e]," ").concat(g(e),"%, ").concat(t[e+1]," ").concat(g(e),"%")},y=f.sort((t,e)=>g(t)-g(e)).map(m[s]||m.between).join(",");return"linear-gradient(".concat("y"===l||!0===l?c?180:90:c?90:0,"deg, ").concat(y,")")}function p(t){let[e,n,r,i]=t;return[i,e,n,r]}function g(t,e,n){let[r,i,,a]=(0,l._e)(t)?p(e):e,[o,c]=n,u=t.getCenter(),f=(0,s.SH)((0,s.lu)(r,u)),d=(0,s.SH)((0,s.lu)(i,u)),h=d===f&&o!==c?d+2*Math.PI:d;return{startAngle:f,endAngle:h-f>=0?h:2*Math.PI+h,innerRadius:(0,s.TK)(a,u),outerRadius:(0,s.TK)(r,u)}}function m(t){let{colorAttribute:e,opacityAttribute:n=e}=t;return"".concat(n,"Opacity")}function y(t,e){if(!(0,l.Z0)(t))return"";let n=t.getCenter(),{transform:r}=e;return"translate(".concat(n[0],", ").concat(n[1],") ").concat(r||"")}function v(t){if(1===t.length)return t[0];let[[e,n,r=0],[i,a,o=0]]=t;return[(e+i)/2,(n+a)/2,(r+o)/2]}},76115:function(t,e,n){"use strict";function r(t,e){return Object.entries(t).reduce((n,r)=>{let[i,a]=r;return n[i]=e(a,i,t),n},{})}function i(t){return t.map((t,e)=>e)}function a(t){return t[0]}function o(t){return t[t.length-1]}function l(t){return Array.from(new Set(t))}function s(t,e){let n=[[],[]];return t.forEach(t=>{n[e(t)?0:1].push(t)}),n}function c(t){if(1===t.length)return[t];let e=[];for(let n=1;n<=t.length;n++)e.push(...function t(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;if(1===n)return e.map(t=>[t]);let r=[];for(let i=0;i{r.push([e[i],...t])})}return r}(t,n));return e}n.d(e,{$e:function(){return c},Hw:function(){return a},Rz:function(){return o},Tw:function(){return l},Xc:function(){return r},cq:function(){return i},cs:function(){return s}})},67700:function(t,e,n){"use strict";function r(t){let{transformations:e}=t.getOptions(),n=e.map(t=>{let[e]=t;return e}).filter(t=>"transpose"===t);return n.length%2!=0}function i(t){let{transformations:e}=t.getOptions();return e.some(t=>{let[e]=t;return"polar"===e})}function a(t){let{transformations:e}=t.getOptions();return e.some(t=>{let[e]=t;return"reflect"===e})&&e.some(t=>{let[e]=t;return e.startsWith("transpose")})}function o(t){let{transformations:e}=t.getOptions();return e.some(t=>{let[e]=t;return"helix"===e})}function l(t){let{transformations:e}=t.getOptions();return e.some(t=>{let[e]=t;return"parallel"===e})}function s(t){let{transformations:e}=t.getOptions();return e.some(t=>{let[e]=t;return"fisheye"===e})}function c(t){return l(t)&&i(t)}function u(t){return o(t)||i(t)}function f(t){return i(t)&&r(t)}function d(t){if(u(t)){let[e,n]=t.getSize(),r=t.getOptions().transformations.find(t=>"polar"===t[0]);if(r)return Math.max(e,n)/2*r[4]}return 0}function h(t){let{transformations:e}=t.getOptions(),[,,,n,r]=e.find(t=>"polar"===t[0]);return[+n,+r]}function p(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],{transformations:n}=t.getOptions(),[,r,i]=n.find(t=>"polar"===t[0]);return e?[180*+r/Math.PI,180*+i/Math.PI]:[r,i]}function g(t,e){let{transformations:n}=t.getOptions(),[,...r]=n.find(t=>t[0]===e);return r}n.d(e,{DS:function(){return a},De:function(){return h},H5:function(){return d},Z0:function(){return i},_e:function(){return r},bC:function(){return u},bi:function(){return f},fg:function(){return c},gl:function(){return p},o:function(){return g},rN:function(){return l},vx:function(){return s},x9:function(){return o}})},21399:function(t,e,n){"use strict";n.d(e,{a:function(){return i}});var r=n(1242);function i(t){let e="function"==typeof t?t:t.render;return class extends r.b_{connectedCallback(){this.draw()}attributeChangedCallback(){this.draw()}draw(){e(this)}}}},95188:function(t,e,n){"use strict";n.d(e,{$:function(){return r}});let r={BEFORE_RENDER:"beforerender",AFTER_RENDER:"afterrender",BEFORE_PAINT:"beforepaint",AFTER_PAINT:"afterpaint",BEFORE_CHANGE_DATA:"beforechangedata",AFTER_CHANGE_DATA:"afterchangedata",BEFORE_CLEAR:"beforeclear",AFTER_CLEAR:"afterclear",BEFORE_DESTROY:"beforedestroy",AFTER_DESTROY:"afterdestroy",BEFORE_CHANGE_SIZE:"beforechangesize",AFTER_CHANGE_SIZE:"afterchangesize",POINTER_TAP:"pointertap",POINTER_DOWN:"pointerdown",POINTER_UP:"pointerup",POINTER_OVER:"pointerover",POINTER_OUT:"pointerout",POINTER_MOVE:"pointermove",POINTER_ENTER:"pointerenter",POINTER_LEAVE:"pointerleave",POINTER_UPOUTSIDE:"pointerupoutside",DRAG_START:"dragstart",DRAG:"drag",DRAG_END:"dragend",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"DROP",CLICK:"click",DBLCLICK:"dblclick"}},39513:function(t,e,n){"use strict";n.d(e,{C7:function(){return y},DM:function(){return u},Ez:function(){return s},Lq:function(){return v},Qp:function(){return x},Ye:function(){return d},b5:function(){return m},c7:function(){return g},gn:function(){return h},hB:function(){return p},mx:function(){return b},ne:function(){return l},nx:function(){return function t(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!(a>=r)){for(let o of Object.keys(n)){let l=n[o];(0,i.Z)(l)&&(0,i.Z)(e[o])?t(e[o],l,r,a+1):e[o]=l}return e}}},qC:function(){return o},ri:function(){return f},vU:function(){return c},yR:function(){return a}});var r=n(73576),i=n(83845);function a(t){return t}function o(t){return t.reduce((t,e)=>function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;an=>{var r,i,a,o;return r=this,i=void 0,a=void 0,o=function*(){let r=yield t(n);return e(r)},new(a||(a=Promise))(function(t,e){function n(t){try{s(o.next(t))}catch(t){e(t)}}function l(t){try{s(o.throw(t))}catch(t){e(t)}}function s(e){var r;e.done?t(e.value):((r=e.value)instanceof a?r:new a(function(t){t(r)})).then(n,l)}s((o=o.apply(r,i||[])).next())})},a)}function s(t){return t.replace(/( |^)[a-z]/g,t=>t.toUpperCase())}function c(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";throw Error(t)}function u(t,e){let{attributes:n}=e,r=new Set(["id","className"]);for(let[e,i]of Object.entries(n))r.has(e)||t.attr(e,i)}function f(t){return null!=t&&!Number.isNaN(t)}function d(t){let e=new Map;return n=>{if(e.has(n))return e.get(n);let r=t(n);return e.set(n,r),r}}function h(t,e){let{transform:n}=t.style;t.style.transform="".concat("none"===n||void 0===n?"":n," ").concat(e).trimStart()}function p(t,e){return g(t,e)||{}}function g(t,e){let n=Object.entries(t||{}).filter(t=>{let[n]=t;return n.startsWith(e)}).map(t=>{let[n,i]=t;return[(0,r.Z)(n.replace(e,"").trim()),i]}).filter(t=>{let[e]=t;return!!e});return 0===n.length?null:Object.fromEntries(n)}function m(t,e){return Object.fromEntries(Object.entries(t).filter(t=>{let[n]=t;return e.find(t=>n.startsWith(t))}))}function y(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r{let[e]=t;return n.every(t=>!e.startsWith(t))}))}function v(t,e){if(void 0===t)return null;if("number"==typeof t)return t;let n=+t.replace("%","");return Number.isNaN(n)?null:n/100*e}function b(t){return"object"==typeof t&&!(t instanceof Date)&&null!==t&&!Array.isArray(t)}function x(t){return null===t||!1===t}},54514:function(t,e,n){"use strict";n.d(e,{CQ:function(){return s},e2:function(){return o},gt:function(){return l},nb:function(){return a}});var r=n(83787),i=n(39513);function a(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if((0,i.Qp)(t)||Array.isArray(t)&&a)return t;let o=(0,i.hB)(t,e);return(0,r.Z)(n,o)}function o(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.Qp)(t)||Array.isArray(t)||!l(t)?t:(0,r.Z)(e,t)}function l(t){if(0===Object.keys(t).length)return!0;let{title:e,items:n}=t;return void 0!==e||void 0!==n}function s(t,e){return"object"==typeof t?(0,i.hB)(t,e):t}},11896:function(t,e,n){"use strict";function r(t,e,n){return Math.max(e,Math.min(t,n))}function i(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;return"number"!=typeof t?t:1e-15>Math.abs(t)?t:parseFloat(t.toFixed(e))}n.d(e,{C:function(){return i},u:function(){return r}})},60954:function(t,e,n){"use strict";n.d(e,{U_:function(){return o},a3:function(){return a},ib:function(){return l},ji:function(){return c},qP:function(){return u},sm:function(){return s}});var r=n(44355),i=n(80732);function a(t){return!!t.getBandWidth}function o(t,e,n){if(!a(t))return t.invert(e);let{adjustedRange:i}=t,{domain:o}=t.getOptions(),l=t.getStep(),s=n?i:i.map(t=>t+l),c=(0,r.Nw)(s,e),u=Math.min(o.length-1,Math.max(0,c+(n?-1:0)));return o[u]}function l(t,e,n){if(!e)return t.getOptions().domain;if(!a(t)){let r=(0,i.Z)(e);if(!n)return r;let[a]=r,{range:o}=t.getOptions(),[l,s]=o,c=t.invert(t.map(a)+(l>s?-1:1)*n);return[a,c]}let{domain:r}=t.getOptions(),o=e[0],l=r.indexOf(o);if(n){let t=l+Math.round(r.length*n);return r.slice(l,t)}let s=e[e.length-1],c=r.indexOf(s);return r.slice(l,c+1)}function s(t,e,n,r,i,a){let{x:s,y:c}=i,u=(t,e)=>{let[n,r]=a.invert(t);return[o(s,n,e),o(c,r,e)]},f=u([t,e],!0),d=u([n,r],!1),h=l(s,[f[0],d[0]]),p=l(c,[f[1],d[1]]);return[h,p]}function c(t,e){let[n,r]=t;return[e.map(n),e.map(r)+(e.getStep?e.getStep():0)]}function u(t,e,n){let{x:r,y:i}=e,[a,o]=t,l=c(a,r),s=c(o,i),u=[l[0],s[0]],f=[l[1],s[1]],[d,h]=n.map(u),[p,g]=n.map(f);return[d,h,p,g]}},80866:function(t,e,n){"use strict";n.d(e,{F:function(){return o},Y:function(){return l}});var r=n(1242),i=n(44022),a=n(39513);function o(t){return new l([t],null,t,t.ownerDocument)}class l{selectAll(t){let e="string"==typeof t?this._parent.querySelectorAll(t):t;return new l(e,null,this._elements[0],this._document)}selectFacetAll(t){let e="string"==typeof t?this._parent.querySelectorAll(t):t;return new l(this._elements,null,this._parent,this._document,void 0,void 0,e)}select(t){let e="string"==typeof t?this._parent.querySelectorAll(t)[0]||null:t;return new l([e],null,e,this._document)}append(t){let e="function"==typeof t?t:()=>this.createElement(t),n=[];if(null!==this._data){for(let t=0;t1&&void 0!==arguments[1]?arguments[1]:t=>t,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>null,r=[],a=[],o=new Set(this._elements),s=[],c=new Set,u=new Map(this._elements.map((t,n)=>[e(t.__data__,n),t])),f=new Map(this._facetElements.map((t,n)=>[e(t.__data__,n),t])),d=(0,i.ZP)(this._elements,t=>n(t.__data__));for(let i=0;i0&&void 0!==arguments[0]?arguments[0]:t=>t,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t=>t,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t=>t.remove(),r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t=>t,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t=>t.remove(),a=t(this._enter),o=e(this._update),l=n(this._exit),s=r(this._merge),c=i(this._split);return o.merge(a).merge(l).merge(s).merge(c)}remove(){for(let t=0;tt.finished)).then(()=>{let e=this._elements[t];e.remove()})}else{let e=this._elements[t];e.remove()}}return new l([],null,this._parent,this._document,void 0,this._transitions)}each(t){for(let e=0;ee:e;return this.each(function(r,i,a){void 0!==e&&(a[t]=n(r,i,a))})}style(t,e){let n="function"!=typeof e?()=>e:e;return this.each(function(r,i,a){void 0!==e&&(a.style[t]=n(r,i,a))})}transition(t){let e="function"!=typeof t?()=>t:t,{_transitions:n}=this;return this.each(function(t,r,i){n[r]=e(t,r,i)})}on(t,e){return this.each(function(n,r,i){i.addEventListener(t,e)}),this}call(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;ra(t,e,n,r))}function o(t){a(t,"visibility","hidden",!0)}function l(t){a(t,"visibility","visible",!0)}},70174:function(t,e,n){"use strict";function r(t,e){let[n,r]=t,[i,a]=e;return[n-i,r-a]}function i(t,e){let[n,r]=t,[i,a]=e;return[n+i,r+a]}function a(t,e){let[n,r]=t,[i,a]=e;return Math.sqrt(Math.pow(n-i,2)+Math.pow(r-a,2))}function o(t){let[e,n]=t;return Math.atan2(n,e)}function l(t){let[e,n]=t;return o([e,n])+Math.PI/2}function s(t,e){let n=o(t),r=o(e);return n{let{options:n,style:i,onInit:a,renderer:o}=t,l=(0,r.useRef)(null),c=(0,r.useRef)(),[u,f]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!c.current&&l.current)return c.current=new s({container:l.current,renderer:o}),f(!0),()=>{c.current&&(c.current.destroy(),c.current=void 0)}},[o]),(0,r.useEffect)(()=>{u&&(null==a||a())},[u,a]),(0,r.useEffect)(()=>{c.current&&n&&(c.current.options(n),c.current.render())},[n]),(0,r.useImperativeHandle)(e,()=>c.current,[u]),r.createElement("div",{ref:l,style:i})})},74314:function(t,e,n){t.exports=n(52172).use(n(81794)).use(n(18870)).use(n(654)).use(n(95305)).use(n(44775)).use(n(52861)).use(n(77273)).use(n(98195)).use(n(12986)).use(n(95632)).use(n(34157)).use(n(52411)).use(n(88508)).use(n(74115)).use(n(75201)).use(n(64209)).use(n(14593)).use(n(93467)).use(n(991)).use(n(48532)).use(n(82810))},44775:function(t){t.exports=function(t){t.installColorSpace("CMYK",["cyan","magenta","yellow","black","alpha"],{rgb:function(){return new t.RGB(1-this._cyan*(1-this._black)-this._black,1-this._magenta*(1-this._black)-this._black,1-this._yellow*(1-this._black)-this._black,this._alpha)},fromRgb:function(){var e=this._red,n=this._green,r=this._blue,i=1-e,a=1-n,o=1-r,l=1;return e||n||r?(l=Math.min(i,Math.min(a,o)),i=(i-l)/(1-l),a=(a-l)/(1-l),o=(o-l)/(1-l)):l=1,new t.CMYK(i,a,o,l,this._alpha)}})}},95305:function(t,e,n){t.exports=function(t){t.use(n(654)),t.installColorSpace("HSL",["hue","saturation","lightness","alpha"],{hsv:function(){var e,n=2*this._lightness,r=this._saturation*(n<=1?n:2-n);return e=n+r<1e-9?0:2*r/(n+r),new t.HSV(this._hue,e,(n+r)/2,this._alpha)},rgb:function(){return this.hsv().rgb()},fromRgb:function(){return this.hsv().hsl()}})}},654:function(t){t.exports=function(t){t.installColorSpace("HSV",["hue","saturation","value","alpha"],{rgb:function(){var e,n,r,i=this._hue,a=this._saturation,o=this._value,l=Math.min(5,Math.floor(6*i)),s=6*i-l,c=o*(1-a),u=o*(1-s*a),f=o*(1-(1-s)*a);switch(l){case 0:e=o,n=f,r=c;break;case 1:e=u,n=o,r=c;break;case 2:e=c,n=o,r=f;break;case 3:e=c,n=u,r=o;break;case 4:e=f,n=c,r=o;break;case 5:e=o,n=c,r=u}return new t.RGB(e,n,r,this._alpha)},hsl:function(){var e=(2-this._saturation)*this._value,n=this._saturation*this._value,r=e<=1?e:2-e;return new t.HSL(this._hue,r<1e-9?0:n/r,e/2,this._alpha)},fromRgb:function(){var e,n=this._red,r=this._green,i=this._blue,a=Math.max(n,r,i),o=a-Math.min(n,r,i),l=0===a?0:o/a;if(0===o)e=0;else switch(a){case n:e=(r-i)/o/6+(r.008856?e:(t-16/116)/7.87},n=(this._l+16)/116,r=this._a/500+n,i=n-this._b/200;return new t.XYZ(95.047*e(r),100*e(n),108.883*e(i),this._alpha)}})}},81794:function(t){t.exports=function(t){t.installColorSpace("XYZ",["x","y","z","alpha"],{fromRgb:function(){var e=function(t){return t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92},n=e(this._red),r=e(this._green),i=e(this._blue);return new t.XYZ(.4124564*n+.3575761*r+.1804375*i,.2126729*n+.7151522*r+.072175*i,.0193339*n+.119192*r+.9503041*i,this._alpha)},rgb:function(){var e=this._x,n=this._y,r=this._z,i=function(t){return t>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t};return new t.RGB(i(3.2404542*e+-1.5371385*n+-.4985314*r),i(-.969266*e+1.8760108*n+.041556*r),i(.0556434*e+-.2040259*n+1.0572252*r),this._alpha)},lab:function(){var e=function(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29},n=e(this._x/95.047),r=e(this._y/100),i=e(this._z/108.883);return new t.LAB(116*r-16,500*(n-r),200*(r-i),this._alpha)}})}},52172:function(t){var e=[],n=function(t){return void 0===t},r=/\s*(\.\d+|\d+(?:\.\d+)?)(%)?\s*/,i=/\s*(\.\d+|100|\d?\d(?:\.\d+)?)%\s*/,a=RegExp("^(rgb|hsl|hsv)a?\\("+r.source+","+r.source+","+r.source+"(?:,"+/\s*(\.\d+|\d+(?:\.\d+)?)\s*/.source+")?\\)$","i");function o(t){if(Array.isArray(t)){if("string"==typeof t[0]&&"function"==typeof o[t[0]])return new o[t[0]](t.slice(1,t.length));if(4===t.length)return new o.RGB(t[0]/255,t[1]/255,t[2]/255,t[3]/255)}else if("string"==typeof t){var e=t.toLowerCase();o.namedColors[e]&&(t="#"+o.namedColors[e]),"transparent"===e&&(t="rgba(0,0,0,0)");var r=t.match(a);if(r){var l=r[1].toUpperCase(),s=n(r[8])?r[8]:parseFloat(r[8]),c="H"===l[0],u=r[3]?100:c?360:255,f=r[5]||c?100:255,d=r[7]||c?100:255;if(n(o[l]))throw Error("color."+l+" is not installed.");return new o[l](parseFloat(r[2])/u,parseFloat(r[4])/f,parseFloat(r[6])/d,s)}t.length<6&&(t=t.replace(/^#?([0-9a-f])([0-9a-f])([0-9a-f])$/i,"$1$1$2$2$3$3"));var h=t.match(/^#?([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])$/i);if(h)return new o.RGB(parseInt(h[1],16)/255,parseInt(h[2],16)/255,parseInt(h[3],16)/255);if(o.CMYK){var p=t.match(RegExp("^cmyk\\("+i.source+","+i.source+","+i.source+","+i.source+"\\)$","i"));if(p)return new o.CMYK(parseFloat(p[1])/100,parseFloat(p[2])/100,parseFloat(p[3])/100,parseFloat(p[4])/100)}}else if("object"==typeof t&&t.isColor)return t;return!1}o.namedColors={},o.installColorSpace=function(t,r,i){o[t]=function(e){var n=Array.isArray(e)?e:arguments;r.forEach(function(e,i){var a=n[i];if("alpha"===e)this._alpha=isNaN(a)||a>1?1:a<0?0:a;else{if(isNaN(a))throw Error("["+t+"]: Invalid color: ("+r.join(",")+")");"hue"===e?this._hue=a<0?a-Math.floor(a):a%1:this["_"+e]=a<0?0:a>1?1:a}},this)},o[t].propertyNames=r;var a=o[t].prototype;for(var l in["valueOf","hex","hexa","css","cssa"].forEach(function(e){a[e]=a[e]||("RGB"===t?a.hex:function(){return this.rgb()[e]()})}),a.isColor=!0,a.equals=function(e,i){n(i)&&(i=1e-10),e=e[t.toLowerCase()]();for(var a=0;ai)return!1;return!0},a.toJSON=function(){return[t].concat(r.map(function(t){return this["_"+t]},this))},i)if(i.hasOwnProperty(l)){var s=l.match(/^from(.*)$/);s?o[s[1].toUpperCase()].prototype[t.toLowerCase()]=i[l]:a[l]=i[l]}function c(t,e){var n={};for(var r in n[e.toLowerCase()]=function(){return this.rgb()[e.toLowerCase()]()},o[e].propertyNames.forEach(function(t){var r="black"===t?"k":t.charAt(0);n[t]=n[r]=function(n,r){return this[e.toLowerCase()]()[t](n,r)}}),n)n.hasOwnProperty(r)&&void 0===o[t].prototype[r]&&(o[t].prototype[r]=n[r])}return a[t.toLowerCase()]=function(){return this},a.toString=function(){return"["+t+" "+r.map(function(t){return this["_"+t]},this).join(", ")+"]"},r.forEach(function(t){var e="black"===t?"k":t.charAt(0);a[t]=a[e]=function(e,n){return void 0===e?this["_"+t]:new this.constructor(n?r.map(function(n){return this["_"+n]+(t===n?e:0)},this):r.map(function(n){return t===n?e:this["_"+n]},this))}}),e.forEach(function(e){c(t,e),c(e,t)}),e.push(t),o},o.pluginList=[],o.use=function(t){return -1===o.pluginList.indexOf(t)&&(this.pluginList.push(t),t(o)),o},o.installMethod=function(t,n){return e.forEach(function(e){o[e].prototype[t]=n}),this},o.installColorSpace("RGB",["red","green","blue","alpha"],{hex:function(){var t=(65536*Math.round(255*this._red)+256*Math.round(255*this._green)+Math.round(255*this._blue)).toString(16);return"#"+"00000".substr(0,6-t.length)+t},hexa:function(){var t=Math.round(255*this._alpha).toString(16);return"#"+"00".substr(0,2-t.length)+t+this.hex().substr(1,6)},css:function(){return"rgb("+Math.round(255*this._red)+","+Math.round(255*this._green)+","+Math.round(255*this._blue)+")"},cssa:function(){return"rgba("+Math.round(255*this._red)+","+Math.round(255*this._green)+","+Math.round(255*this._blue)+","+this._alpha+")"}}),t.exports=o},77273:function(t){t.exports=function(t){t.installMethod("clearer",function(t){return this.alpha(isNaN(t)?-.1:-t,!0)})}},98195:function(t,e,n){t.exports=function(t){t.use(n(75201)),t.installMethod("contrast",function(t){var e=this.luminance(),n=t.luminance();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)})}},12986:function(t,e,n){t.exports=function(t){t.use(n(95305)),t.installMethod("darken",function(t){return this.lightness(isNaN(t)?-.1:-t,!0)})}},95632:function(t,e,n){t.exports=function(t){t.use(n(95305)),t.installMethod("desaturate",function(t){return this.saturation(isNaN(t)?-.1:-t,!0)})}},34157:function(t){t.exports=function(t){function e(){var e=this.rgb(),n=.3*e._red+.59*e._green+.11*e._blue;return new t.RGB(n,n,n,e._alpha)}t.installMethod("greyscale",e).installMethod("grayscale",e)}},52411:function(t){t.exports=function(t){t.installMethod("isDark",function(){var t=this.rgb();return(76245*t._red+149685*t._green+29070*t._blue)/1e3<128})}},88508:function(t,e,n){t.exports=function(t){t.use(n(52411)),t.installMethod("isLight",function(){return!this.isDark()})}},74115:function(t,e,n){t.exports=function(t){t.use(n(95305)),t.installMethod("lighten",function(t){return this.lightness(isNaN(t)?.1:t,!0)})}},75201:function(t){t.exports=function(t){function e(t){return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}t.installMethod("luminance",function(){var t=this.rgb();return .2126*e(t._red)+.7152*e(t._green)+.0722*e(t._blue)})}},64209:function(t){t.exports=function(t){t.installMethod("mix",function(e,n){e=t(e).rgb();var r=2*(n=1-(isNaN(n)?.5:n))-1,i=this._alpha-e._alpha,a=((r*i==-1?r:(r+i)/(1+r*i))+1)/2,o=1-a,l=this.rgb();return new t.RGB(l._red*a+e._red*o,l._green*a+e._green*o,l._blue*a+e._blue*o,l._alpha*n+e._alpha*(1-n))})}},52861:function(t){t.exports=function(t){t.namedColors={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"}}},14593:function(t){t.exports=function(t){t.installMethod("negate",function(){var e=this.rgb();return new t.RGB(1-e._red,1-e._green,1-e._blue,this._alpha)})}},93467:function(t){t.exports=function(t){t.installMethod("opaquer",function(t){return this.alpha(isNaN(t)?.1:t,!0)})}},991:function(t,e,n){t.exports=function(t){t.use(n(95305)),t.installMethod("rotate",function(t){return this.hue((t||0)/360,!0)})}},48532:function(t,e,n){t.exports=function(t){t.use(n(95305)),t.installMethod("saturate",function(t){return this.saturation(isNaN(t)?.1:t,!0)})}},82810:function(t){t.exports=function(t){t.installMethod("toAlpha",function(t){var e=this.rgb(),n=t(t).rgb(),r=new t.RGB(0,0,0,e._alpha),i=["_red","_green","_blue"];return i.forEach(function(t){e[t]<1e-10?r[t]=e[t]:e[t]>n[t]?r[t]=(e[t]-n[t])/(1-n[t]):e[t]>n[t]?r[t]=(n[t]-e[t])/n[t]:r[t]=0}),r._red>r._green?r._red>r._blue?e._alpha=r._red:e._alpha=r._blue:r._green>r._blue?e._alpha=r._green:e._alpha=r._blue,e._alpha<1e-10||(i.forEach(function(t){e[t]=(e[t]-n[t])/e._alpha+n[t]}),e._alpha*=r._alpha),e})}},73807:function(t){"use strict";var e=t.exports;t.exports.isNumber=function(t){return"number"==typeof t},t.exports.findMin=function(t){if(0===t.length)return 1/0;for(var e=t[0],n=1;n=f.length)){var n=Math.max(e-r,0),i=Math.min(e+r,f.length-1),o=n-(e-r),l=e+r-i,c=p/(p-(h[-r-1+o]||0)-(h[-r-1+l]||0));o>0&&(m+=c*(o-1)*g);var d=Math.max(0,e-r+1);a.inside(0,f.length-1,d)&&(f[d].y+=1*c*g),a.inside(0,f.length-1,e+1)&&(f[e+1].y-=2*c*g),a.inside(0,f.length-1,i+1)&&(f[i+1].y+=1*c*g)}});var y=m,v=0,b=0;return f.forEach(function(t){v+=t.y,y+=v,t.y=y,b+=y}),b>0&&f.forEach(function(t){t.y/=b}),f},t.exports.getExpectedValueFromPdf=function(t){if(t&&0!==t.length){var e=0;return t.forEach(function(t){e+=t.x*t.y}),e}},t.exports.getXWithLeftTailArea=function(t,e){if(t&&0!==t.length){for(var n=0,r=0,i=0;i=e));i++);return t[r].x}},t.exports.getPerplexity=function(t){if(t&&0!==t.length){var e=0;return t.forEach(function(t){var n=Math.log(t.y);isFinite(n)&&(e+=t.y*n)}),Math.pow(2,e=-e/r)}}},16243:function(t){if(!e)var e={map:function(t,e){var n={};return e?t.map(function(t,r){return n.index=r,e.call(n,t)}):t.slice()},naturalOrder:function(t,e){return te?1:0},sum:function(t,e){var n={};return t.reduce(e?function(t,r,i){return n.index=i,t+e.call(n,r)}:function(t,e){return t+e},0)},max:function(t,n){return Math.max.apply(null,n?e.map(t,n):t)}};var n=function(){function t(t,e,n){return(t<<10)+(e<<5)+n}function n(t){var e=[],n=!1;function r(){e.sort(t),n=!0}return{push:function(t){e.push(t),n=!1},peek:function(t){return n||r(),void 0===t&&(t=e.length-1),e[t]},pop:function(){return n||r(),e.pop()},size:function(){return e.length},map:function(t){return e.map(t)},debug:function(){return n||r(),e}}}function r(t,e,n,r,i,a,o){this.r1=t,this.r2=e,this.g1=n,this.g2=r,this.b1=i,this.b2=a,this.histo=o}function i(){this.vboxes=new n(function(t,n){return e.naturalOrder(t.vbox.count()*t.vbox.volume(),n.vbox.count()*n.vbox.volume())})}return r.prototype={volume:function(t){return(!this._volume||t)&&(this._volume=(this.r2-this.r1+1)*(this.g2-this.g1+1)*(this.b2-this.b1+1)),this._volume},count:function(e){var n=this.histo;if(!this._count_set||e){var r,i,a,o=0;for(r=this.r1;r<=this.r2;r++)for(i=this.g1;i<=this.g2;i++)for(a=this.b1;a<=this.b2;a++)o+=n[t(r,i,a)]||0;this._count=o,this._count_set=!0}return this._count},copy:function(){return new r(this.r1,this.r2,this.g1,this.g2,this.b1,this.b2,this.histo)},avg:function(e){var n=this.histo;if(!this._avg||e){var r,i,a,o,l=0,s=0,c=0,u=0;for(i=this.r1;i<=this.r2;i++)for(a=this.g1;a<=this.g2;a++)for(o=this.b1;o<=this.b2;o++)l+=r=n[t(i,a,o)]||0,s+=r*(i+.5)*8,c+=r*(a+.5)*8,u+=r*(o+.5)*8;l?this._avg=[~~(s/l),~~(c/l),~~(u/l)]:this._avg=[~~(8*(this.r1+this.r2+1)/2),~~(8*(this.g1+this.g2+1)/2),~~(8*(this.b1+this.b2+1)/2)]}return this._avg},contains:function(t){var e=t[0]>>3;return gval=t[1]>>3,bval=t[2]>>3,e>=this.r1&&e<=this.r2&&gval>=this.g1&&gval<=this.g2&&bval>=this.b1&&bval<=this.b2}},i.prototype={push:function(t){this.vboxes.push({vbox:t,color:t.avg()})},palette:function(){return this.vboxes.map(function(t){return t.color})},size:function(){return this.vboxes.size()},map:function(t){for(var e=this.vboxes,n=0;n251&&i[1]>251&&i[2]>251&&(t[r].color=[255,255,255])}},{quantize:function(a,o){if(!a.length||o<2||o>256)return!1;var l,s,c,u,f,d,h,p,g,m,y,v=(s=Array(32768),a.forEach(function(e){s[l=t(e[0]>>3,e[1]>>3,e[2]>>3)]=(s[l]||0)+1}),s),b=0;v.forEach(function(){b++});var x=(d=1e6,h=0,p=1e6,g=0,m=1e6,y=0,a.forEach(function(t){c=t[0]>>3,u=t[1]>>3,f=t[2]>>3,ch&&(h=c),ug&&(g=u),fy&&(y=f)}),new r(d,h,p,g,m,y,v)),O=new n(function(t,n){return e.naturalOrder(t.count(),n.count())});function w(n,r){for(var i,a=1,o=0;o<1e3;){if(!(i=n.pop()).count()){n.push(i),o++;continue}var l=function(n,r){if(r.count()){var i=r.r2-r.r1+1,a=r.g2-r.g1+1,o=r.b2-r.b1+1,l=e.max([i,a,o]);if(1==r.count())return[r.copy()];var s,c,u,f,d=0,h=[],p=[];if(l==i)for(s=r.r1;s<=r.r2;s++){for(f=0,c=r.g1;c<=r.g2;c++)for(u=r.b1;u<=r.b2;u++)f+=n[t(s,c,u)]||0;d+=f,h[s]=d}else if(l==a)for(s=r.g1;s<=r.g2;s++){for(f=0,c=r.r1;c<=r.r2;c++)for(u=r.b1;u<=r.b2;u++)f+=n[t(c,s,u)]||0;d+=f,h[s]=d}else for(s=r.b1;s<=r.b2;s++){for(f=0,c=r.r1;c<=r.r2;c++)for(u=r.g1;u<=r.g2;u++)f+=n[t(c,u,s)]||0;d+=f,h[s]=d}return h.forEach(function(t,e){p[e]=d-t}),function(t){var e,n,i,a,o,l=t+"1",c=t+"2",u=0;for(s=r[l];s<=r[c];s++)if(h[s]>d/2){for(i=r.copy(),a=r.copy(),o=(e=s-r[l])<=(n=r[c]-s)?Math.min(r[c]-1,~~(s+n/2)):Math.max(r[l],~~(s-1-e/2));!h[o];)o++;for(u=p[o];!u&&h[o-1];)u=p[--o];return i[c]=o,a[l]=i[c]+1,[i,a]}}(l==i?"r":l==a?"g":"b")}}(v,i),s=l[0],c=l[1];if(!s||(n.push(s),c&&(n.push(c),a++),a>=r||o++>1e3))return}}O.push(x),w(O,.75*o);for(var _=new n(function(t,n){return e.naturalOrder(t.count()*t.volume(),n.count()*n.volume())});O.size();)_.push(O.pop());w(_,o-_.size());for(var k=new i;_.size();)k.push(_.pop());return k}}}();t.exports=n.quantize},87247:function(t,e,n){"use strict";let r=n(56534),i=n(12275),a=new class extends i{content({onError:t,onResult:e,onDone:n}){return`var _results = new Array(${this.options.taps.length}); +var _checkDone = function() { +for(var i = 0; i < _results.length; i++) { +var item = _results[i]; +if(item === undefined) return false; +if(item.result !== undefined) { +`+e("item.result")+"return true;\n}\nif(item.error) {\n"+t("item.error")+"return true;\n}\n}\nreturn false;\n}\n"+this.callTapsParallel({onError:(t,e,n,r)=>`if(${t} < _results.length && ((_results.length = ${t+1}), (_results[${t}] = { error: ${e} }), _checkDone())) { +`+r(!0)+"} else {\n"+n()+"}\n",onResult:(t,e,n,r)=>`if(${t} < _results.length && (${e} !== undefined && (_results.length = ${t+1}), (_results[${t}] = { result: ${e} }), _checkDone())) { +`+r(!0)+"} else {\n"+n()+"}\n",onTap:(t,e,n,r)=>{let i="";return t>0&&(i+=`if(${t} >= _results.length) { +`+n()+"} else {\n"),i+=e(),t>0&&(i+="}\n"),i},onDone:n})}},o=function(t){return a.setup(this,t),a.create(t)};function l(t=[],e){let n=new r(t,e);return n.constructor=l,n.compile=o,n._call=void 0,n.call=void 0,n}l.prototype=null,t.exports=l},26714:function(t,e,n){"use strict";let r=n(56534),i=n(12275),a=new class extends i{content({onError:t,onDone:e}){return this.callTapsParallel({onError:(e,n,r,i)=>t(n)+i(!0),onDone:e})}},o=function(t){return a.setup(this,t),a.create(t)};function l(t=[],e){let n=new r(t,e);return n.constructor=l,n.compile=o,n._call=void 0,n.call=void 0,n}l.prototype=null,t.exports=l},21293:function(t,e,n){"use strict";let r=n(56534),i=n(12275),a=new class extends i{content({onError:t,onResult:e,resultReturns:n,onDone:r}){return this.callTapsSeries({onError:(e,n,r,i)=>t(n)+i(!0),onResult:(t,n,r)=>`if(${n} !== undefined) { +${e(n)} +} else { +${r()}} +`,resultReturns:n,onDone:r})}},o=function(t){return a.setup(this,t),a.create(t)};function l(t=[],e){let n=new r(t,e);return n.constructor=l,n.compile=o,n._call=void 0,n.call=void 0,n}l.prototype=null,t.exports=l},21617:function(t,e,n){"use strict";let r=n(56534),i=n(12275),a=new class extends i{content({onError:t,onDone:e}){return this.callTapsSeries({onError:(e,n,r,i)=>t(n)+i(!0),onDone:e})}},o=function(t){return a.setup(this,t),a.create(t)};function l(t=[],e){let n=new r(t,e);return n.constructor=l,n.compile=o,n._call=void 0,n.call=void 0,n}l.prototype=null,t.exports=l},40996:function(t,e,n){"use strict";let r=n(56534),i=n(12275),a=new class extends i{content({onError:t,onDone:e}){return this.callTapsLooping({onError:(e,n,r,i)=>t(n)+i(!0),onDone:e})}},o=function(t){return a.setup(this,t),a.create(t)};function l(t=[],e){let n=new r(t,e);return n.constructor=l,n.compile=o,n._call=void 0,n.call=void 0,n}l.prototype=null,t.exports=l},17178:function(t,e,n){"use strict";let r=n(56534),i=n(12275),a=new class extends i{content({onError:t,onResult:e,onDone:n}){return this.callTapsSeries({onError:(e,n,r,i)=>t(n)+i(!0),onResult:(t,e,n)=>`if(${e} !== undefined) { +${this._args[0]} = ${e}; +} +`+n(),onDone:()=>e(this._args[0])})}},o=function(t){return a.setup(this,t),a.create(t)};function l(t=[],e){if(t.length<1)throw Error("Waterfall hooks must have at least one argument");let n=new r(t,e);return n.constructor=l,n.compile=o,n._call=void 0,n.call=void 0,n}l.prototype=null,t.exports=l},56534:function(t,e,n){"use strict";let r=n(50517),i=r.deprecate(()=>{},"Hook.context is deprecated and will be removed"),a=function(...t){return this.call=this._createCall("sync"),this.call(...t)},o=function(...t){return this.callAsync=this._createCall("async"),this.callAsync(...t)},l=function(...t){return this.promise=this._createCall("promise"),this.promise(...t)};class s{constructor(t=[],e){this._args=t,this.name=e,this.taps=[],this.interceptors=[],this._call=a,this.call=a,this._callAsync=o,this.callAsync=o,this._promise=l,this.promise=l,this._x=void 0,this.compile=this.compile,this.tap=this.tap,this.tapAsync=this.tapAsync,this.tapPromise=this.tapPromise}compile(t){throw Error("Abstract: should be overridden")}_createCall(t){return this.compile({taps:this.taps,interceptors:this.interceptors,args:this._args,type:t})}_tap(t,e,n){if("string"==typeof e)e={name:e.trim()};else if("object"!=typeof e||null===e)throw Error("Invalid tap options");if("string"!=typeof e.name||""===e.name)throw Error("Missing name for tap");void 0!==e.context&&i(),e=Object.assign({type:t,fn:n},e),e=this._runRegisterInterceptors(e),this._insert(e)}tap(t,e){this._tap("sync",t,e)}tapAsync(t,e){this._tap("async",t,e)}tapPromise(t,e){this._tap("promise",t,e)}_runRegisterInterceptors(t){for(let e of this.interceptors)if(e.register){let n=e.register(t);void 0!==n&&(t=n)}return t}withOptions(t){let e=e=>Object.assign({},t,"string"==typeof e?{name:e}:e);return{name:this.name,tap:(t,n)=>this.tap(e(t),n),tapAsync:(t,n)=>this.tapAsync(e(t),n),tapPromise:(t,n)=>this.tapPromise(e(t),n),intercept:t=>this.intercept(t),isUsed:()=>this.isUsed(),withOptions:t=>this.withOptions(e(t))}}isUsed(){return this.taps.length>0||this.interceptors.length>0}intercept(t){if(this._resetCompilation(),this.interceptors.push(Object.assign({},t)),t.register)for(let e=0;e0;){r--;let t=this.taps[r];this.taps[r+1]=t;let i=t.stage||0;if(e){if(e.has(t.name)){e.delete(t.name);continue}if(e.size>0)continue}if(!(i>n)){r++;break}}this.taps[r]=t}}Object.setPrototypeOf(s.prototype,null),t.exports=s},12275:function(t){"use strict";t.exports=class{constructor(t){this.config=t,this.options=void 0,this._args=void 0}create(t){let e;switch(this.init(t),this.options.type){case"sync":e=Function(this.args(),'"use strict";\n'+this.header()+this.contentWithInterceptors({onError:t=>`throw ${t}; +`,onResult:t=>`return ${t}; +`,resultReturns:!0,onDone:()=>"",rethrowIfPossible:!0}));break;case"async":e=Function(this.args({after:"_callback"}),'"use strict";\n'+this.header()+this.contentWithInterceptors({onError:t=>`_callback(${t}); +`,onResult:t=>`_callback(null, ${t}); +`,onDone:()=>"_callback();\n"}));break;case"promise":let n=!1,r=this.contentWithInterceptors({onError:t=>(n=!0,`_error(${t}); +`),onResult:t=>`_resolve(${t}); +`,onDone:()=>"_resolve();\n"}),i="";i+='"use strict";\n'+this.header()+"return new Promise((function(_resolve, _reject) {\n",n&&(i+="var _sync = true;\nfunction _error(_err) {\nif(_sync)\n_resolve(Promise.resolve().then((function() { throw _err; })));\nelse\n_reject(_err);\n};\n"),i+=r,n&&(i+="_sync = false;\n"),i+="}));\n",e=Function(this.args(),i)}return this.deinit(),e}setup(t,e){t._x=e.taps.map(t=>t.fn)}init(t){this.options=t,this._args=t.args.slice()}deinit(){this.options=void 0,this._args=void 0}contentWithInterceptors(t){if(!(this.options.interceptors.length>0))return this.content(t);{let e=t.onError,n=t.onResult,r=t.onDone,i="";for(let t=0;t{let n="";for(let e=0;e{let e="";for(let n=0;n{let t="";for(let e=0;e0&&(t+="var _taps = this.taps;\nvar _interceptors = this.interceptors;\n"),t}needContext(){for(let t of this.options.taps)if(t.context)return!0;return!1}callTap(t,{onError:e,onResult:n,onDone:r,rethrowIfPossible:i}){let a="",o=!1;for(let e=0;e"sync"!==t.type),l=n||i,s="",c=r,u=0;for(let n=this.options.taps.length-1;n>=0;n--){let i=n,f=c!==r&&("sync"!==this.options.taps[i].type||u++>20);f&&(u=0,s+=`function _next${i}() { +`+c()+`} +`,c=()=>`${l?"return ":""}_next${i}(); +`);let d=c,h=t=>t?"":r(),p=this.callTap(i,{onError:e=>t(i,e,d,h),onResult:e&&(t=>e(i,t,d,h)),onDone:!e&&d,rethrowIfPossible:a&&(o<0||ip}return s+c()}callTapsLooping({onError:t,onDone:e,rethrowIfPossible:n}){if(0===this.options.taps.length)return e();let r=this.options.taps.every(t=>"sync"===t.type),i="";r||(i+="var _looper = (function() {\nvar _loopAsync = false;\n"),i+="var _loop;\ndo {\n_loop = false;\n";for(let t=0;t{let a="";return a+=`if(${e} !== undefined) { +_loop = true; +`,r||(a+="if(_loopAsync) _looper();\n"),a+=i(!0)+`} else { +`+n()+`} +`},onDone:e&&(()=>"if(!_loop) {\n"+e()+"}\n"),rethrowIfPossible:n&&r})+"} while(_loop);\n",r||(i+="_loopAsync = true;\n});\n_looper();\n"),i}callTapsParallel({onError:t,onResult:e,onDone:n,rethrowIfPossible:r,onTap:i=(t,e)=>e()}){if(this.options.taps.length<=1)return this.callTapsSeries({onError:t,onResult:e,onDone:n,rethrowIfPossible:r});let a="";a+=`do { +var _counter = ${this.options.taps.length}; +`,n&&(a+="var _done = (function() {\n"+n()+"});\n");for(let o=0;on?"if(--_counter === 0) _done();\n":"--_counter;",s=t=>t||!n?"_counter = 0;\n":"_counter = 0;\n_done();\n";a+="if(_counter <= 0) break;\n"+i(o,()=>this.callTap(o,{onError:e=>"if(_counter > 0) {\n"+t(o,e,l,s)+"}\n",onResult:e&&(t=>"if(_counter > 0) {\n"+e(o,t,l,s)+"}\n"),onDone:!e&&(()=>l()),rethrowIfPossible:r}),l,s)}return a+"} while(false);\n"}args({before:t,after:e}={}){let n=this._args;return(t&&(n=[t].concat(n)),e&&(n=n.concat(e)),0===n.length)?"":n.join(", ")}getTapFn(t){return`_x[${t}]`}getTap(t){return`_taps[${t}]`}getInterceptor(t){return`_interceptors[${t}]`}}},12459:function(t,e,n){"use strict";let r=n(50517),i=(t,e)=>e;class a{constructor(t,e){this._map=new Map,this.name=e,this._factory=t,this._interceptors=[]}get(t){return this._map.get(t)}for(t){let e=this.get(t);if(void 0!==e)return e;let n=this._factory(t),r=this._interceptors;for(let e=0;ee.withOptions(t)),this.name)}}t.exports=r},13922:function(t,e,n){"use strict";let r=n(56534),i=n(12275),a=new class extends i{content({onError:t,onResult:e,resultReturns:n,onDone:r,rethrowIfPossible:i}){return this.callTapsSeries({onError:(e,n)=>t(n),onResult:(t,n,r)=>`if(${n} !== undefined) { +${e(n)}; +} else { +${r()}} +`,resultReturns:n,onDone:r,rethrowIfPossible:i})}},o=()=>{throw Error("tapAsync is not supported on a SyncBailHook")},l=()=>{throw Error("tapPromise is not supported on a SyncBailHook")},s=function(t){return a.setup(this,t),a.create(t)};function c(t=[],e){let n=new r(t,e);return n.constructor=c,n.tapAsync=o,n.tapPromise=l,n.compile=s,n}c.prototype=null,t.exports=c},90537:function(t,e,n){"use strict";let r=n(56534),i=n(12275),a=new class extends i{content({onError:t,onDone:e,rethrowIfPossible:n}){return this.callTapsSeries({onError:(e,n)=>t(n),onDone:e,rethrowIfPossible:n})}},o=()=>{throw Error("tapAsync is not supported on a SyncHook")},l=()=>{throw Error("tapPromise is not supported on a SyncHook")},s=function(t){return a.setup(this,t),a.create(t)};function c(t=[],e){let n=new r(t,e);return n.constructor=c,n.tapAsync=o,n.tapPromise=l,n.compile=s,n}c.prototype=null,t.exports=c},43074:function(t,e,n){"use strict";let r=n(56534),i=n(12275),a=new class extends i{content({onError:t,onDone:e,rethrowIfPossible:n}){return this.callTapsLooping({onError:(e,n)=>t(n),onDone:e,rethrowIfPossible:n})}},o=()=>{throw Error("tapAsync is not supported on a SyncLoopHook")},l=()=>{throw Error("tapPromise is not supported on a SyncLoopHook")},s=function(t){return a.setup(this,t),a.create(t)};function c(t=[],e){let n=new r(t,e);return n.constructor=c,n.tapAsync=o,n.tapPromise=l,n.compile=s,n}c.prototype=null,t.exports=c},62076:function(t,e,n){"use strict";let r=n(56534),i=n(12275),a=new class extends i{content({onError:t,onResult:e,resultReturns:n,rethrowIfPossible:r}){return this.callTapsSeries({onError:(e,n)=>t(n),onResult:(t,e,n)=>`if(${e} !== undefined) { +${this._args[0]} = ${e}; +} +`+n(),onDone:()=>e(this._args[0]),doneReturns:n,rethrowIfPossible:r})}},o=()=>{throw Error("tapAsync is not supported on a SyncWaterfallHook")},l=()=>{throw Error("tapPromise is not supported on a SyncWaterfallHook")},s=function(t){return a.setup(this,t),a.create(t)};function c(t=[],e){if(t.length<1)throw Error("Waterfall hooks must have at least one argument");let n=new r(t,e);return n.constructor=c,n.tapAsync=o,n.tapPromise=l,n.compile=s,n}c.prototype=null,t.exports=c},89991:function(t,e,n){"use strict";e.SyncHook=n(90537),n(13922),n(62076),n(43074),e.AsyncParallelHook=n(26714),n(87247),n(21617),n(21293),n(40996),e.AsyncSeriesWaterfallHook=n(17178),n(12459),n(70942)},50517:function(t,e){"use strict";e.deprecate=(t,e)=>{let n=!0;return function(){return n&&(console.warn("DeprecationWarning: "+e),n=!1),t.apply(this,arguments)}}},28670:function(t){t.exports=function(){"use strict";for(var t=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=1),tn?n:t},e={},n=0,r=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];n255)&&(e._clipped=!0),e[n]=t(e[n],0,255)):3===n&&(e[n]=t(e[n],0,1));return e},limit:t,type:a,unpack:function(t,e){return(void 0===e&&(e=null),t.length>=3)?Array.prototype.slice.call(t):"object"==a(t[0])&&e?e.split("").filter(function(e){return void 0!==t[0][e]}).map(function(e){return t[0][e]}):t[0]},last:function(t){if(t.length<2)return null;var e=t.length-1;return"string"==a(t[e])?t[e].toLowerCase():null},PI:o,TWOPI:2*o,PITHIRD:o/3,DEG2RAD:o/180,RAD2DEG:180/o},s={format:{},autodetect:[]},c=l.last,u=l.clip_rgb,f=l.type,d=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if("object"===f(t[0])&&t[0].constructor&&t[0].constructor===this.constructor)return t[0];var n=c(t),r=!1;if(!n){r=!0,s.sorted||(s.autodetect=s.autodetect.sort(function(t,e){return e.p-t.p}),s.sorted=!0);for(var i=0,a=s.autodetect;i4?t[4]:1;return 1===a?[0,0,0,o]:[n>=1?0:255*(1-n)*(1-a),r>=1?0:255*(1-r)*(1-a),i>=1?0:255*(1-i)*(1-a),o]},s.autodetect.push({p:2,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if("array"===v(t=y(t,"cmyk"))&&4===t.length)return"cmyk"}});var x=l.unpack,O=l.last,w=function(t){return Math.round(100*t)/100},_=l.unpack,k=function(){for(var t,e,n=[],r=arguments.length;r--;)n[r]=arguments[r];var i=(n=_(n,"rgba"))[0],a=n[1],o=n[2],l=Math.min(i/=255,a/=255,o/=255),s=Math.max(i,a,o),c=(s+l)/2;return(s===l?(t=0,e=Number.NaN):t=c<.5?(s-l)/(s+l):(s-l)/(2-s-l),i==s?e=(a-o)/(s-l):a==s?e=2+(o-i)/(s-l):o==s&&(e=4+(i-a)/(s-l)),(e*=60)<0&&(e+=360),n.length>3&&void 0!==n[3])?[e,t,c,n[3]]:[e,t,c]},C=l.unpack,j=l.last,M=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=x(t,"hsla"),r=O(t)||"lsa";return n[0]=w(n[0]||0),n[1]=w(100*n[1])+"%",n[2]=w(100*n[2])+"%","hsla"===r||n.length>3&&n[3]<1?(n[3]=n.length>3?n[3]:1,r="hsla"):n.length=3,r+"("+n.join(",")+")"},S=Math.round,A=l.unpack,E=Math.round,P=function(){for(var t,e,n,r,i=[],a=arguments.length;a--;)i[a]=arguments[a];var o=(i=A(i,"hsl"))[0],l=i[1],s=i[2];if(0===l)e=n=r=255*s;else{var c=[0,0,0],u=[0,0,0],f=s<.5?s*(1+l):s+l-s*l,d=2*s-f,h=o/360;c[0]=h+1/3,c[1]=h,c[2]=h-1/3;for(var p=0;p<3;p++)c[p]<0&&(c[p]+=1),c[p]>1&&(c[p]-=1),6*c[p]<1?u[p]=d+(f-d)*6*c[p]:2*c[p]<1?u[p]=f:3*c[p]<2?u[p]=d+(f-d)*(2/3-c[p])*6:u[p]=d;e=(t=[E(255*u[0]),E(255*u[1]),E(255*u[2])])[0],n=t[1],r=t[2]}return i.length>3?[e,n,r,i[3]]:[e,n,r,1]},R=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,T=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,L=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,B=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Z=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,I=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,N=Math.round,D=function(t){if(t=t.toLowerCase().trim(),s.format.named)try{return s.format.named(t)}catch(t){}if(e=t.match(R)){for(var e,n=e.slice(1,4),r=0;r<3;r++)n[r]=+n[r];return n[3]=1,n}if(e=t.match(T)){for(var i=e.slice(1,5),a=0;a<4;a++)i[a]=+i[a];return i}if(e=t.match(L)){for(var o=e.slice(1,4),l=0;l<3;l++)o[l]=N(2.55*o[l]);return o[3]=1,o}if(e=t.match(B)){for(var c=e.slice(1,5),u=0;u<3;u++)c[u]=N(2.55*c[u]);return c[3]=+c[3],c}if(e=t.match(Z)){var f=e.slice(1,4);f[1]*=.01,f[2]*=.01;var d=P(f);return d[3]=1,d}if(e=t.match(I)){var h=e.slice(1,4);h[1]*=.01,h[2]*=.01;var p=P(h);return p[3]=+e[4],p}};D.test=function(t){return R.test(t)||T.test(t)||L.test(t)||B.test(t)||Z.test(t)||I.test(t)};var z=l.type,F=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=C(t,"rgba"),r=j(t)||"rgb";return"hsl"==r.substr(0,3)?M(k(n),r):(n[0]=S(n[0]),n[1]=S(n[1]),n[2]=S(n[2]),("rgba"===r||n.length>3&&n[3]<1)&&(n[3]=n.length>3?n[3]:1,r="rgba"),r+"("+n.slice(0,"rgb"===r?3:4).join(",")+")")};d.prototype.css=function(t){return F(this._rgb,t)},h.css=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["css"])))},s.format.css=D,s.autodetect.push({p:5,test:function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];if(!e.length&&"string"===z(t)&&D.test(t))return"css"}});var $=l.unpack;s.format.gl=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=$(t,"rgba");return n[0]*=255,n[1]*=255,n[2]*=255,n},h.gl=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["gl"])))},d.prototype.gl=function(){var t=this._rgb;return[t[0]/255,t[1]/255,t[2]/255,t[3]]};var W=l.unpack,H=l.unpack,G=Math.floor,q=l.unpack,Y=l.type,V=function(){for(var t,e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=W(e,"rgb"),i=r[0],a=r[1],o=r[2],l=Math.min(i,a,o),s=Math.max(i,a,o),c=s-l;return 0===c?t=Number.NaN:(i===s&&(t=(a-o)/c),a===s&&(t=2+(o-i)/c),o===s&&(t=4+(i-a)/c),(t*=60)<0&&(t+=360)),[t,100*c/255,l/(255-c)*100]};d.prototype.hcg=function(){return V(this._rgb)},h.hcg=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["hcg"])))},s.format.hcg=function(){for(var t,e,n,r,i,a,o,l,s,c=[],u=arguments.length;u--;)c[u]=arguments[u];var f=(c=H(c,"hcg"))[0],d=c[1],h=c[2];h*=255;var p=255*d;if(0===d)o=l=s=h;else{360===f&&(f=0),f>360&&(f-=360),f<0&&(f+=360);var g=G(f/=60),m=f-g,y=h*(1-d),v=y+p*(1-m),b=y+p*m,x=y+p;switch(g){case 0:o=(t=[x,b,y])[0],l=t[1],s=t[2];break;case 1:o=(e=[v,x,y])[0],l=e[1],s=e[2];break;case 2:o=(n=[y,x,b])[0],l=n[1],s=n[2];break;case 3:o=(r=[y,v,x])[0],l=r[1],s=r[2];break;case 4:o=(i=[b,y,x])[0],l=i[1],s=i[2];break;case 5:o=(a=[x,y,v])[0],l=a[1],s=a[2]}}return[o,l,s,c.length>3?c[3]:1]},s.autodetect.push({p:1,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if("array"===Y(t=q(t,"hcg"))&&3===t.length)return"hcg"}});var U=l.unpack,Q=l.last,K=Math.round,X=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=U(t,"rgba"),r=n[0],i=n[1],a=n[2],o=n[3],l=Q(t)||"auto";void 0===o&&(o=1),"auto"===l&&(l=o<1?"rgba":"rgb");var s="000000"+((r=K(r))<<16|(i=K(i))<<8|(a=K(a))).toString(16);s=s.substr(s.length-6);var c="0"+K(255*o).toString(16);switch(c=c.substr(c.length-2),l.toLowerCase()){case"rgba":return"#"+s+c;case"argb":return"#"+c+s;default:return"#"+s}},J=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,tt=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,te=function(t){if(t.match(J)){(4===t.length||7===t.length)&&(t=t.substr(1)),3===t.length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]);var e=parseInt(t,16);return[e>>16,e>>8&255,255&e,1]}if(t.match(tt)){(5===t.length||9===t.length)&&(t=t.substr(1)),4===t.length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);var n=parseInt(t,16),r=Math.round((255&n)/255*100)/100;return[n>>24&255,n>>16&255,n>>8&255,r]}throw Error("unknown hex color: "+t)},tn=l.type;d.prototype.hex=function(t){return X(this._rgb,t)},h.hex=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["hex"])))},s.format.hex=te,s.autodetect.push({p:4,test:function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];if(!e.length&&"string"===tn(t)&&[3,4,5,6,7,8,9].indexOf(t.length)>=0)return"hex"}});var tr=l.unpack,ti=l.TWOPI,ta=Math.min,to=Math.sqrt,tl=Math.acos,ts=l.unpack,tc=l.limit,tu=l.TWOPI,tf=l.PITHIRD,td=Math.cos,th=l.unpack,tp=l.type,tg=function(){for(var t,e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=tr(e,"rgb"),i=r[0],a=r[1],o=r[2],l=ta(i/=255,a/=255,o/=255),s=(i+a+o)/3,c=s>0?1-l/s:0;return 0===c?t=NaN:(t=tl(t=(i-a+(i-o))/2/to((i-a)*(i-a)+(i-o)*(a-o))),o>a&&(t=ti-t),t/=ti),[360*t,c,s]};d.prototype.hsi=function(){return tg(this._rgb)},h.hsi=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["hsi"])))},s.format.hsi=function(){for(var t,e,n,r=[],i=arguments.length;i--;)r[i]=arguments[i];var a=(r=ts(r,"hsi"))[0],o=r[1],l=r[2];return isNaN(a)&&(a=0),isNaN(o)&&(o=0),a>360&&(a-=360),a<0&&(a+=360),(a/=360)<1/3?e=1-((n=(1-o)/3)+(t=(1+o*td(tu*a)/td(tf-tu*a))/3)):a<2/3?(a-=1/3,n=1-((t=(1-o)/3)+(e=(1+o*td(tu*a)/td(tf-tu*a))/3))):(a-=2/3,t=1-((e=(1-o)/3)+(n=(1+o*td(tu*a)/td(tf-tu*a))/3))),[255*(t=tc(l*t*3)),255*(e=tc(l*e*3)),255*(n=tc(l*n*3)),r.length>3?r[3]:1]},s.autodetect.push({p:2,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if("array"===tp(t=th(t,"hsi"))&&3===t.length)return"hsi"}});var tm=l.unpack,ty=l.type;d.prototype.hsl=function(){return k(this._rgb)},h.hsl=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["hsl"])))},s.format.hsl=P,s.autodetect.push({p:2,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if("array"===ty(t=tm(t,"hsl"))&&3===t.length)return"hsl"}});var tv=l.unpack,tb=Math.min,tx=Math.max,tO=l.unpack,tw=Math.floor,t_=l.unpack,tk=l.type,tC=function(){for(var t,e,n=[],r=arguments.length;r--;)n[r]=arguments[r];var i=(n=tv(n,"rgb"))[0],a=n[1],o=n[2],l=tb(i,a,o),s=tx(i,a,o),c=s-l;return 0===s?(t=Number.NaN,e=0):(e=c/s,i===s&&(t=(a-o)/c),a===s&&(t=2+(o-i)/c),o===s&&(t=4+(i-a)/c),(t*=60)<0&&(t+=360)),[t,e,s/255]};d.prototype.hsv=function(){return tC(this._rgb)},h.hsv=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["hsv"])))},s.format.hsv=function(){for(var t,e,n,r,i,a,o,l,s,c=[],u=arguments.length;u--;)c[u]=arguments[u];var f=(c=tO(c,"hsv"))[0],d=c[1],h=c[2];if(h*=255,0===d)o=l=s=h;else{360===f&&(f=0),f>360&&(f-=360),f<0&&(f+=360);var p=tw(f/=60),g=f-p,m=h*(1-d),y=h*(1-d*g),v=h*(1-d*(1-g));switch(p){case 0:o=(t=[h,v,m])[0],l=t[1],s=t[2];break;case 1:o=(e=[y,h,m])[0],l=e[1],s=e[2];break;case 2:o=(n=[m,h,v])[0],l=n[1],s=n[2];break;case 3:o=(r=[m,y,h])[0],l=r[1],s=r[2];break;case 4:o=(i=[v,m,h])[0],l=i[1],s=i[2];break;case 5:o=(a=[h,m,y])[0],l=a[1],s=a[2]}}return[o,l,s,c.length>3?c[3]:1]},s.autodetect.push({p:2,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if("array"===tk(t=t_(t,"hsv"))&&3===t.length)return"hsv"}});var tj={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},tM=l.unpack,tS=Math.pow,tA=function(t){return(t/=255)<=.04045?t/12.92:tS((t+.055)/1.055,2.4)},tE=function(t){return t>tj.t3?tS(t,1/3):t/tj.t2+tj.t0},tP=function(){for(var t,e,n,r=[],i=arguments.length;i--;)r[i]=arguments[i];var a=tM(r,"rgb"),o=(t=a[0],e=a[1],n=a[2],[tE((.4124564*(t=tA(t))+.3575761*(e=tA(e))+.1804375*(n=tA(n)))/tj.Xn),tE((.2126729*t+.7151522*e+.072175*n)/tj.Yn),tE((.0193339*t+.119192*e+.9503041*n)/tj.Zn)]),l=o[0],s=o[1],c=o[2],u=116*s-16;return[u<0?0:u,500*(l-s),200*(s-c)]},tR=l.unpack,tT=Math.pow,tL=function(t){return 255*(t<=.00304?12.92*t:1.055*tT(t,1/2.4)-.055)},tB=function(t){return t>tj.t1?t*t*t:tj.t2*(t-tj.t0)},tZ=function(){for(var t,e,n,r=[],i=arguments.length;i--;)r[i]=arguments[i];var a=(r=tR(r,"lab"))[0],o=r[1],l=r[2];return e=(a+16)/116,t=isNaN(o)?e:e+o/500,n=isNaN(l)?e:e-l/200,e=tj.Yn*tB(e),t=tj.Xn*tB(t),n=tj.Zn*tB(n),[tL(3.2404542*t-1.5371385*e-.4985314*n),tL(-.969266*t+1.8760108*e+.041556*n),tL(.0556434*t-.2040259*e+1.0572252*n),r.length>3?r[3]:1]},tI=l.unpack,tN=l.type;d.prototype.lab=function(){return tP(this._rgb)},h.lab=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["lab"])))},s.format.lab=tZ,s.autodetect.push({p:2,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if("array"===tN(t=tI(t,"lab"))&&3===t.length)return"lab"}});var tD=l.unpack,tz=l.RAD2DEG,tF=Math.sqrt,t$=Math.atan2,tW=Math.round,tH=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=tD(t,"lab"),r=n[0],i=n[1],a=n[2],o=tF(i*i+a*a),l=(t$(a,i)*tz+360)%360;return 0===tW(1e4*o)&&(l=Number.NaN),[r,o,l]},tG=l.unpack,tq=l.unpack,tY=l.DEG2RAD,tV=Math.sin,tU=Math.cos,tQ=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=tq(t,"lch"),r=n[0],i=n[1],a=n[2];return isNaN(a)&&(a=0),[r,tU(a*=tY)*i,tV(a)*i]},tK=l.unpack,tX=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=tQ((t=tK(t,"lch"))[0],t[1],t[2]),r=tZ(n[0],n[1],n[2]);return[r[0],r[1],r[2],t.length>3?t[3]:1]},tJ=l.unpack,t0=l.unpack,t1=l.type,t2=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=tG(t,"rgb"),r=tP(n[0],n[1],n[2]);return tH(r[0],r[1],r[2])};d.prototype.lch=function(){return t2(this._rgb)},d.prototype.hcl=function(){return t2(this._rgb).reverse()},h.lch=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["lch"])))},h.hcl=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["hcl"])))},s.format.lch=tX,s.format.hcl=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=tJ(t,"hcl").reverse();return tX.apply(void 0,n)},["lch","hcl"].forEach(function(t){return s.autodetect.push({p:2,test:function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if("array"===t1(e=t0(e,t))&&3===e.length)return t}})});var t5={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},t3=l.type;d.prototype.name=function(){for(var t=X(this._rgb,"rgb"),e=0,n=Object.keys(t5);e0;)e[n]=arguments[n+1];if(!e.length&&"string"===t3(t)&&t5[t.toLowerCase()])return"named"}});var t6=l.unpack,t4=l.type,t8=l.type,t7=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=t6(t,"rgb");return(n[0]<<16)+(n[1]<<8)+n[2]};d.prototype.num=function(){return t7(this._rgb)},h.num=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["num"])))},s.format.num=function(t){if("number"==t4(t)&&t>=0&&t<=16777215)return[t>>16,t>>8&255,255&t,1];throw Error("unknown num color: "+t)},s.autodetect.push({p:5,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(1===t.length&&"number"===t8(t[0])&&t[0]>=0&&t[0]<=16777215)return"num"}});var t9=l.unpack,et=l.type,ee=Math.round;d.prototype.rgb=function(t){return(void 0===t&&(t=!0),!1===t)?this._rgb.slice(0,3):this._rgb.slice(0,3).map(ee)},d.prototype.rgba=function(t){return void 0===t&&(t=!0),this._rgb.slice(0,4).map(function(e,n){return n<3?!1===t?e:ee(e):e})},h.rgb=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["rgb"])))},s.format.rgb=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=t9(t,"rgba");return void 0===n[3]&&(n[3]=1),n},s.autodetect.push({p:3,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if("array"===et(t=t9(t,"rgba"))&&(3===t.length||4===t.length&&"number"==et(t[3])&&t[3]>=0&&t[3]<=1))return"rgb"}});var en=Math.log,er=function(t){var e,n,r,i=t/100;return i<66?(e=255,n=i<6?0:-155.25485562709179-.44596950469579133*(n=i-2)+104.49216199393888*en(n),r=i<20?0:-254.76935184120902+.8274096064007395*(r=i-10)+115.67994401066147*en(r)):(e=351.97690566805693+.114206453784165*(e=i-55)-40.25366309332127*en(e),n=325.4494125711974+.07943456536662342*(n=i-50)-28.0852963507957*en(n),r=255),[e,n,r,1]},ei=l.unpack,ea=Math.round,eo=function(){for(var t,e=[],n=arguments.length;n--;)e[n]=arguments[n];for(var r=ei(e,"rgb"),i=r[0],a=r[2],o=1e3,l=4e4;l-o>.4;){var s=er(t=(l+o)*.5);s[2]/s[0]>=a/i?l=t:o=t}return ea(t)};d.prototype.temp=d.prototype.kelvin=d.prototype.temperature=function(){return eo(this._rgb)},h.temp=h.kelvin=h.temperature=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["temp"])))},s.format.temp=s.format.kelvin=s.format.temperature=er;var el=l.unpack,es=Math.cbrt,ec=Math.pow,eu=Math.sign,ef=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=el(t,"rgb"),r=n[0],i=n[1],a=n[2],o=[ed(r/255),ed(i/255),ed(a/255)],l=o[0],s=o[1],c=o[2],u=es(.4122214708*l+.5363325363*s+.0514459929*c),f=es(.2119034982*l+.6806995451*s+.1073969566*c),d=es(.0883024619*l+.2817188376*s+.6299787005*c);return[.2104542553*u+.793617785*f-.0040720468*d,1.9779984951*u-2.428592205*f+.4505937099*d,.0259040371*u+.7827717662*f-.808675766*d]};function ed(t){var e=Math.abs(t);return e<.04045?t/12.92:(eu(t)||1)*ec((e+.055)/1.055,2.4)}var eh=l.unpack,ep=Math.pow,eg=Math.sign,em=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=(t=eh(t,"lab"))[0],r=t[1],i=t[2],a=ep(n+.3963377774*r+.2158037573*i,3),o=ep(n-.1055613458*r-.0638541728*i,3),l=ep(n-.0894841775*r-1.291485548*i,3);return[255*ey(4.0767416621*a-3.3077115913*o+.2309699292*l),255*ey(-1.2684380046*a+2.6097574011*o-.3413193965*l),255*ey(-.0041960863*a-.7034186147*o+1.707614701*l),t.length>3?t[3]:1]};function ey(t){var e=Math.abs(t);return e>.0031308?(eg(t)||1)*(1.055*ep(e,1/2.4)-.055):12.92*t}var ev=l.unpack,eb=l.type;d.prototype.oklab=function(){return ef(this._rgb)},h.oklab=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["oklab"])))},s.format.oklab=em,s.autodetect.push({p:3,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if("array"===eb(t=ev(t,"oklab"))&&3===t.length)return"oklab"}});var ex=l.unpack,eO=l.unpack,ew=l.unpack,e_=l.type,ek=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=ex(t,"rgb"),r=ef(n[0],n[1],n[2]);return tH(r[0],r[1],r[2])};d.prototype.oklch=function(){return ek(this._rgb)},h.oklch=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["oklch"])))},s.format.oklch=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=tQ((t=eO(t,"lch"))[0],t[1],t[2]),r=em(n[0],n[1],n[2]);return[r[0],r[1],r[2],t.length>3?t[3]:1]},s.autodetect.push({p:3,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if("array"===e_(t=ew(t,"oklch"))&&3===t.length)return"oklch"}});var eC=l.type;d.prototype.alpha=function(t,e){return(void 0===e&&(e=!1),void 0!==t&&"number"===eC(t))?e?(this._rgb[3]=t,this):new d([this._rgb[0],this._rgb[1],this._rgb[2],t],"rgb"):this._rgb[3]},d.prototype.clipped=function(){return this._rgb._clipped||!1},d.prototype.darken=function(t){void 0===t&&(t=1);var e=this.lab();return e[0]-=tj.Kn*t,new d(e,"lab").alpha(this.alpha(),!0)},d.prototype.brighten=function(t){return void 0===t&&(t=1),this.darken(-t)},d.prototype.darker=d.prototype.darken,d.prototype.brighter=d.prototype.brighten,d.prototype.get=function(t){var e=t.split("."),n=e[0],r=e[1],i=this[n]();if(!r)return i;var a=n.indexOf(r)-("ok"===n.substr(0,2)?2:0);if(a>-1)return i[a];throw Error("unknown channel "+r+" in mode "+n)};var ej=l.type,eM=Math.pow;d.prototype.luminance=function(t){if(void 0!==t&&"number"===ej(t)){if(0===t)return new d([0,0,0,this._rgb[3]],"rgb");if(1===t)return new d([255,255,255,this._rgb[3]],"rgb");var e=this.luminance(),n=20,r=function(e,i){var a=e.interpolate(i,.5,"rgb"),o=a.luminance();return!(1e-7>Math.abs(t-o))&&n--?o>t?r(e,a):r(a,i):a},i=(e>t?r(new d([0,0,0]),this):r(this,new d([255,255,255]))).rgb();return new d(i.concat([this._rgb[3]]))}return eS.apply(void 0,this._rgb.slice(0,3))};var eS=function(t,e,n){return .2126*(t=eA(t))+.7152*(e=eA(e))+.0722*(n=eA(n))},eA=function(t){return(t/=255)<=.03928?t/12.92:eM((t+.055)/1.055,2.4)},eE={},eP=l.type,eR=function(t,e,n){void 0===n&&(n=.5);for(var r=[],i=arguments.length-3;i-- >0;)r[i]=arguments[i+3];var a=r[0]||"lrgb";if(eE[a]||r.length||(a=Object.keys(eE)[0]),!eE[a])throw Error("interpolation mode "+a+" is not defined");return"object"!==eP(t)&&(t=new d(t)),"object"!==eP(e)&&(e=new d(e)),eE[a](t,e,n).alpha(t.alpha()+n*(e.alpha()-t.alpha()))};d.prototype.mix=d.prototype.interpolate=function(t,e){void 0===e&&(e=.5);for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return eR.apply(void 0,[this,t,e].concat(n))},d.prototype.premultiply=function(t){void 0===t&&(t=!1);var e=this._rgb,n=e[3];return t?(this._rgb=[e[0]*n,e[1]*n,e[2]*n,n],this):new d([e[0]*n,e[1]*n,e[2]*n,n],"rgb")},d.prototype.saturate=function(t){void 0===t&&(t=1);var e=this.lch();return e[1]+=tj.Kn*t,e[1]<0&&(e[1]=0),new d(e,"lch").alpha(this.alpha(),!0)},d.prototype.desaturate=function(t){return void 0===t&&(t=1),this.saturate(-t)};var eT=l.type;d.prototype.set=function(t,e,n){void 0===n&&(n=!1);var r=t.split("."),i=r[0],a=r[1],o=this[i]();if(!a)return o;var l=i.indexOf(a)-("ok"===i.substr(0,2)?2:0);if(l>-1){if("string"==eT(e))switch(e.charAt(0)){case"+":case"-":o[l]+=+e;break;case"*":o[l]*=+e.substr(1);break;case"/":o[l]/=+e.substr(1);break;default:o[l]=+e}else if("number"===eT(e))o[l]=e;else throw Error("unsupported value for Color.set");var s=new d(o,i);return n?(this._rgb=s._rgb,this):s}throw Error("unknown channel "+a+" in mode "+i)},eE.rgb=function(t,e,n){var r=t._rgb,i=e._rgb;return new d(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"rgb")};var eL=Math.sqrt,eB=Math.pow;eE.lrgb=function(t,e,n){var r=t._rgb,i=r[0],a=r[1],o=r[2],l=e._rgb,s=l[0],c=l[1],u=l[2];return new d(eL(eB(i,2)*(1-n)+eB(s,2)*n),eL(eB(a,2)*(1-n)+eB(c,2)*n),eL(eB(o,2)*(1-n)+eB(u,2)*n),"rgb")},eE.lab=function(t,e,n){var r=t.lab(),i=e.lab();return new d(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"lab")};var eZ=function(t,e,n,r){var i,a,o,l,s,c,u,f,h,p,g,m,y,v;return"hsl"===r?(o=t.hsl(),l=e.hsl()):"hsv"===r?(o=t.hsv(),l=e.hsv()):"hcg"===r?(o=t.hcg(),l=e.hcg()):"hsi"===r?(o=t.hsi(),l=e.hsi()):"lch"===r||"hcl"===r?(r="hcl",o=t.hcl(),l=e.hcl()):"oklch"===r&&(o=t.oklch().reverse(),l=e.oklch().reverse()),("h"===r.substr(0,1)||"oklch"===r)&&(s=(i=o)[0],u=i[1],h=i[2],c=(a=l)[0],f=a[1],p=a[2]),isNaN(s)||isNaN(c)?isNaN(s)?isNaN(c)?m=Number.NaN:(m=c,(1==h||0==h)&&"hsv"!=r&&(g=f)):(m=s,(1==p||0==p)&&"hsv"!=r&&(g=u)):(v=c>s&&c-s>180?c-(s+360):c180?c+360-s:c-s,m=s+n*v),void 0===g&&(g=u+n*(f-u)),y=h+n*(p-h),"oklch"===r?new d([y,g,m],r):new d([m,g,y],r)},eI=function(t,e,n){return eZ(t,e,n,"lch")};eE.lch=eI,eE.hcl=eI,eE.num=function(t,e,n){var r=t.num(),i=e.num();return new d(r+n*(i-r),"num")},eE.hcg=function(t,e,n){return eZ(t,e,n,"hcg")},eE.hsi=function(t,e,n){return eZ(t,e,n,"hsi")},eE.hsl=function(t,e,n){return eZ(t,e,n,"hsl")},eE.hsv=function(t,e,n){return eZ(t,e,n,"hsv")},eE.oklab=function(t,e,n){var r=t.oklab(),i=e.oklab();return new d(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"oklab")},eE.oklch=function(t,e,n){return eZ(t,e,n,"oklch")};var eN=l.clip_rgb,eD=Math.pow,ez=Math.sqrt,eF=Math.PI,e$=Math.cos,eW=Math.sin,eH=Math.atan2,eG=function(t,e){for(var n=t.length,r=[0,0,0,0],i=0;i.9999999&&(r[3]=1),new d(eN(r))},eq=l.type,eY=Math.pow,eV=function(t){var e="rgb",n=h("#ccc"),r=0,i=[0,1],a=[],o=[0,0],l=!1,s=[],c=!1,u=0,f=1,d=!1,p={},g=!0,m=1,y=function(t){if("string"===eq(t=t||["#fff","#000"])&&h.brewer&&h.brewer[t.toLowerCase()]&&(t=h.brewer[t.toLowerCase()]),"array"===eq(t)){1===t.length&&(t=[t[0],t[0]]),t=t.slice(0);for(var e=0;e=l[n];)n++;return n-1}return 0},b=function(t){return t},x=function(t){return t},O=function(t,r){if(null==r&&(r=!1),isNaN(t)||null===t)return n;if(r)c=t;else if(l&&l.length>2){var i,c;c=v(t)/(l.length-2)}else c=f!==u?(t-u)/(f-u):1;c=x(c),r||(c=b(c)),1!==m&&(c=eY(c,m));var d=Math.floor(1e4*(c=Math.min(1,Math.max(0,c=o[0]+c*(1-o[0]-o[1])))));if(g&&p[d])i=p[d];else{if("array"===eq(s))for(var y=0;y=O&&y===a.length-1){i=s[y];break}if(c>O&&c2){var c=t.map(function(e,n){return n/(t.length-1)}),d=t.map(function(t){return(t-u)/(f-u)});d.every(function(t,e){return c[e]===t})||(x=function(t){if(t<=0||t>=1)return t;for(var e=0;t>=d[e+1];)e++;var n=(t-d[e])/(d[e+1]-d[e]);return c[e]+n*(c[e+1]-c[e])})}}return i=[u,f],_},_.mode=function(t){return arguments.length?(e=t,w(),_):e},_.range=function(t,e){return y(t),_},_.out=function(t){return c=t,_},_.spread=function(t){return arguments.length?(r=t,_):r},_.correctLightness=function(t){return null==t&&(t=!0),d=t,w(),b=d?function(t){for(var e=O(0,!0).lab()[0],n=O(1,!0).lab()[0],r=e>n,i=O(t,!0).lab()[0],a=e+(n-e)*t,o=i-a,l=0,s=1,c=20;Math.abs(o)>.01&&c-- >0;)r&&(o*=-1),o<0?(l=t,t+=(s-t)*.5):(s=t,t+=(l-t)*.5),o=(i=O(t,!0).lab()[0])-a;return t}:function(t){return t},_},_.padding=function(t){return null!=t?("number"===eq(t)&&(t=[t,t]),o=t,_):o},_.colors=function(e,n){arguments.length<2&&(n="hex");var r=[];if(0==arguments.length)r=s.slice(0);else if(1===e)r=[_(.5)];else if(e>1){var a=i[0],o=i[1]-a;r=(function(t,e,n){for(var r=[],i=ta;i?o++:o--)r.push(o);return r})(0,e,!1).map(function(t){return _(a+t/(e-1)*o)})}else{t=[];var c=[];if(l&&l.length>2)for(var u=1,f=l.length,d=1<=f;d?uf;d?u++:u--)c.push((l[u-1]+l[u])*.5);else c=i;r=c.map(function(t){return _(t)})}return h[n]&&(r=r.map(function(t){return t[n]()})),r},_.cache=function(t){return null!=t?(g=t,_):g},_.gamma=function(t){return null!=t?(m=t,_):m},_.nodata=function(t){return null!=t?(n=h(t),_):n},_},eU=function(t){for(var e=[1,1],n=1;n=5)c=t.map(function(t){return t.lab()}),u=eU(f=t.length-1),i=function(t){var e=1-t,n=[0,1,2].map(function(n){return c.reduce(function(r,i,a){return r+u[a]*Math.pow(e,f-a)*Math.pow(t,a)*i[n]},0)});return new d(n,"lab")};else throw RangeError("No point in running bezier with only one color.");return i},eK=function(t,e,n){if(!eK[n])throw Error("unknown blend mode "+n);return eK[n](t,e)},eX=function(t){return function(e,n){var r=h(n).rgb(),i=h(e).rgb();return h.rgb(t(r,i))}},eJ=function(t){return function(e,n){var r=[];return r[0]=t(e[0],n[0]),r[1]=t(e[1],n[1]),r[2]=t(e[2],n[2]),r}};eK.normal=eX(eJ(function(t){return t})),eK.multiply=eX(eJ(function(t,e){return t*e/255})),eK.screen=eX(eJ(function(t,e){return 255*(1-(1-t/255)*(1-e/255))})),eK.overlay=eX(eJ(function(t,e){return e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255))})),eK.darken=eX(eJ(function(t,e){return t>e?e:t})),eK.lighten=eX(eJ(function(t,e){return t>e?t:e})),eK.dodge=eX(eJ(function(t,e){return 255===t?255:(t=255*(e/255)/(1-t/255))>255?255:t})),eK.burn=eX(eJ(function(t,e){return 255*(1-(1-e/255)/(t/255))}));for(var e0=l.type,e1=l.clip_rgb,e2=l.TWOPI,e5=Math.pow,e3=Math.sin,e6=Math.cos,e4=Math.floor,e8=Math.random,e7=Math.log,e9=Math.pow,nt=Math.floor,ne=Math.abs,nn=function(t,e){void 0===e&&(e=null);var n={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===a(t)&&(t=Object.values(t)),t.forEach(function(t){e&&"object"===a(t)&&(t=t[e]),null==t||isNaN(t)||(n.values.push(t),n.sum+=t,tn.max&&(n.max=t),n.count+=1)}),n.domain=[n.min,n.max],n.limits=function(t,e){return nr(n,t,e)},n},nr=function(t,e,n){void 0===e&&(e="equal"),void 0===n&&(n=7),"array"==a(t)&&(t=nn(t));var r=t.min,i=t.max,o=t.values.sort(function(t,e){return t-e});if(1===n)return[r,i];var l=[];if("c"===e.substr(0,1)&&(l.push(r),l.push(i)),"e"===e.substr(0,1)){l.push(r);for(var s=1;s 0");var c=Math.LOG10E*e7(r),u=Math.LOG10E*e7(i);l.push(r);for(var f=1;f200&&(x=!1)}for(var Z={},I=0;I=360;)g-=360;o[p]=g}else o[p]=o[p]/l[p];return h/=r,new d(o,e).alpha(h>.99999?1:h,!0)},h.bezier=function(t){var e=eQ(t);return e.scale=function(){return eV(e)},e},h.blend=eK,h.cubehelix=function(t,e,n,r,i){void 0===t&&(t=300),void 0===e&&(e=-1.5),void 0===n&&(n=1),void 0===r&&(r=1),void 0===i&&(i=[0,1]);var a,o=0;"array"===e0(i)?a=i[1]-i[0]:(a=0,i=[i,i]);var l=function(l){var s=e2*((t+120)/360+e*l),c=e5(i[0]+a*l,r),u=(0!==o?n[0]+l*o:n)*c*(1-c)/2,f=e6(s),d=e3(s);return h(e1([255*(c+u*(-.14861*f+1.78277*d)),255*(c+u*(-.29227*f-.90649*d)),255*(c+u*(1.97294*f)),1]))};return l.start=function(e){return null==e?t:(t=e,l)},l.rotations=function(t){return null==t?e:(e=t,l)},l.gamma=function(t){return null==t?r:(r=t,l)},l.hue=function(t){return null==t?n:("array"===e0(n=t)?0==(o=n[1]-n[0])&&(n=n[1]):o=0,l)},l.lightness=function(t){return null==t?i:("array"===e0(t)?(i=t,a=t[1]-t[0]):(i=[t,t],a=0),l)},l.scale=function(){return h.scale(l)},l.hue(n),l},h.mix=h.interpolate=eR,h.random=function(){for(var t="#",e=0;e<6;e++)t+="0123456789abcdef".charAt(e4(16*e8()));return new d(t,"hex")},h.scale=eV,h.analyze=ni.analyze,h.contrast=function(t,e){t=new d(t),e=new d(e);var n=t.luminance(),r=e.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},h.deltaE=function(t,e,n,r,i){void 0===n&&(n=1),void 0===r&&(r=1),void 0===i&&(i=1);var a=function(t){return 360*t/(2*np)},o=function(t){return 2*np*t/360};t=new d(t),e=new d(e);var l=Array.from(t.lab()),s=l[0],c=l[1],u=l[2],f=Array.from(e.lab()),h=f[0],p=f[1],g=f[2],m=(s+h)/2,y=(na(no(c,2)+no(u,2))+na(no(p,2)+no(g,2)))/2,v=.5*(1-na(no(y,7)/(no(y,7)+no(25,7)))),b=c*(1+v),x=p*(1+v),O=na(no(b,2)+no(u,2)),w=na(no(x,2)+no(g,2)),_=(O+w)/2,k=a(nc(u,b)),C=a(nc(g,x)),j=k>=0?k:k+360,M=C>=0?C:C+360,S=nu(j-M)>180?(j+M+360)/2:(j+M)/2,A=1-.17*nf(o(S-30))+.24*nf(o(2*S))+.32*nf(o(3*S+6))-.2*nf(o(4*S-63)),E=M-j;E=180>=nu(E)?E:M<=j?E+360:E-360,E=2*na(O*w)*nd(o(E)/2);var P=w-O,R=1+.015*no(m-50,2)/na(20+no(m-50,2)),T=1+.045*_,L=1+.015*_*A,B=30*nh(-no((S-275)/25,2)),Z=-(2*na(no(_,7)/(no(_,7)+no(25,7))))*nd(2*o(B));return ns(0,nl(100,na(no((h-s)/(n*R),2)+no(P/(r*T),2)+no(E/(i*L),2)+Z*(P/(r*T))*(E/(i*L)))))},h.distance=function(t,e,n){void 0===n&&(n="lab"),t=new d(t),e=new d(e);var r=t.get(n),i=e.get(n),a=0;for(var o in r){var l=(r[o]||0)-(i[o]||0);a+=l*l}return Math.sqrt(a)},h.limits=ni.limits,h.valid=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];try{return new(Function.prototype.bind.apply(d,[null].concat(t))),!0}catch(t){return!1}},h.scales={cool:function(){return eV([h.hsl(180,1,.9),h.hsl(250,.7,.4)])},hot:function(){return eV(["#000","#f00","#ff0","#fff"]).mode("rgb")}},h.colors=t5,h.brewer=ng,h}()},15342:function(t,e,n){"use strict";var r=n(93859);e.Z=r},99204:function(t,e,n){"use strict";var r=n(69399);e.Z=r},14457:function(t,e,n){"use strict";var r=n(13346);e.Z=r},51961:function(t,e,n){"use strict";var r=n(47143);e.Z=r},63968:function(t,e,n){"use strict";var r=n(66290);e.Z=r},71879:function(t,e,n){"use strict";var r=n(85014);e.Z=r},90512:function(t,e,n){"use strict";e.Z=function(){for(var t,e,n=0,r="",i=arguments.length;n"object"==typeof t&&null!==t||"function"==typeof t,h=new Map([["proxy",{canHandle:t=>s(t)&&t[u],serialize(t){let{port1:n,port2:e}=new MessageChannel;return v(t,n),[e,[e]]},deserialize:t=>(t.start(),function t(n,e=[],r=function(){}){let i=!1,o=new Proxy(r,{get(r,u){if(p(i),u===f)return()=>{g&&g.unregister(o),d(n),i=!0};if("then"===u){if(0===e.length)return{then:()=>o};let t=N(n,{type:"GET",path:e.map(t=>t.toString())}).then(b);return t.then.bind(t)}return t(n,[...e,u])},set(t,r,o){p(i);let[u,a]=w(o);return N(n,{type:"SET",path:[...e,r].map(t=>t.toString()),value:u},a).then(b)},apply(r,o,u){p(i);let f=e[e.length-1];if(f===a)return N(n,{type:"ENDPOINT"}).then(b);if("bind"===f)return t(n,e.slice(0,-1));let[l,c]=_(u);return N(n,{type:"APPLY",path:e.map(t=>t.toString()),argumentList:l},c).then(b)},construct(t,r){p(i);let[o,u]=_(r);return N(n,{type:"CONSTRUCT",path:e.map(t=>t.toString()),argumentList:o},u).then(b)}});return function(t,n){let e=(x.get(n)||0)+1;x.set(n,e),g&&g.register(t,n,t)}(o,n),o}(t,[],void 0))}],["throw",{canHandle:t=>s(t)&&c in t,serialize:({value:t})=>[t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[]],deserialize(t){if(t.isError)throw Object.assign(Error(t.value.message),t.value);throw t.value}}]]);function v(t,n=globalThis,e=["*"]){n.addEventListener("message",function r(i){let o;if(!i||!i.data)return;if(!function(t,n){for(let e of t)if(n===e||"*"===e||e instanceof RegExp&&e.test(n))return!0;return!1}(e,i.origin)){console.warn(`Invalid origin '${i.origin}' for comlink proxy`);return}let{id:a,type:f,path:s}=Object.assign({path:[]},i.data),h=(i.data.argumentList||[]).map(b);try{var p;let n=s.slice(0,-1).reduce((t,n)=>t[n],t),e=s.reduce((t,n)=>t[n],t);switch(f){case"GET":o=e;break;case"SET":n[s.slice(-1)[0]]=b(i.data.value),o=!0;break;case"APPLY":o=e.apply(n,h);break;case"CONSTRUCT":{let t=new e(...h);o=Object.assign(t,{[u]:!0})}break;case"ENDPOINT":{let{port1:n,port2:e}=new MessageChannel;v(t,e),p=[n],m.set(n,p),o=n}break;case"RELEASE":o=void 0;break;default:return}}catch(t){o={value:t,[c]:0}}Promise.resolve(o).catch(t=>({value:t,[c]:0})).then(e=>{let[i,o]=w(e);n.postMessage(Object.assign(Object.assign({},i),{id:a}),o),"RELEASE"===f&&(n.removeEventListener("message",r),y(n),l in t&&"function"==typeof t[l]&&t[l]())}).catch(t=>{let[e,r]=w({value:TypeError("Unserializable return value"),[c]:0});n.postMessage(Object.assign(Object.assign({},e),{id:a}),r)})}),n.start&&n.start()}function y(t){"MessagePort"===t.constructor.name&&t.close()}function p(t){if(t)throw Error("Proxy has been released and is not useable")}function d(t){return N(t,{type:"RELEASE"}).then(()=>{y(t)})}let x=new WeakMap,g="FinalizationRegistry"in globalThis&&new FinalizationRegistry(t=>{let n=(x.get(t)||0)-1;x.set(t,n),0===n&&d(t)});function _(t){var n;let e=t.map(w);return[e.map(t=>t[0]),(n=e.map(t=>t[1]),Array.prototype.concat.apply([],n))]}let m=new WeakMap;function w(t){for(let[n,e]of h)if(e.canHandle(t)){let[r,i]=e.serialize(t);return[{type:"HANDLER",name:n,value:r},i]}return[{type:"RAW",value:t},m.get(t)||[]]}function b(t){switch(t.type){case"HANDLER":return h.get(t.name).deserialize(t.value);case"RAW":return t.value}}function N(t,n,e){return new Promise(r=>{let i=[,,,,].fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");t.addEventListener("message",function n(e){e.data&&e.data.id&&e.data.id===i&&(t.removeEventListener("message",n),r(e.data))}),t.start&&t.start(),t.postMessage(Object.assign({id:i},n),e)})}var z=e(28104),M=e(63795),A=e(39233),E=e(5192),k=e(63330);function O(t){return function(){return t}}function j(t){return(t()-.5)*1e-6}function S(t){return t.index}function Z(t,n){var e=t.get(n);if(!e)throw Error("node not found: "+n);return e}function T(t){var n,e,r,i,o,u,a,f=S,l=function(t){return 1/Math.min(o[t.source.index],o[t.target.index])},c=O(30),s=1;function h(r){for(var o=0,f=t.length;o1&&(x=h.y+h.vy-c.y-c.vy||j(a)),i>2&&(g=h.z+h.vz-c.z-c.vz||j(a)),v=((v=Math.sqrt(d*d+x*x+g*g))-e[p])/v*r*n[p],d*=v,x*=v,g*=v,h.vx-=d*(y=u[p]),i>1&&(h.vy-=x*y),i>2&&(h.vz-=g*y),c.vx+=d*(y=1-y),i>1&&(c.vy+=x*y),i>2&&(c.vz+=g*y)}function v(){if(r){var i,a,l=r.length,c=t.length,s=new Map(r.map((t,n)=>[f(t,n,r),t]));for(i=0,o=Array(l);i"function"==typeof t)||Math.random,i=n.find(t=>[1,2,3].includes(t))||2,v()},h.links=function(n){return arguments.length?(t=n,v(),h):t},h.id=function(t){return arguments.length?(f=t,h):f},h.iterations=function(t){return arguments.length?(s=+t,h):s},h.strength=function(t){return arguments.length?(l="function"==typeof t?t:O(+t),y(),h):l},h.distance=function(t){return arguments.length?(c="function"==typeof t?t:O(+t),p(),h):c},h}function P(t,n,e){if(isNaN(n))return t;var r,i,o,u,a,f,l=t._root,c={data:e},s=t._x0,h=t._x1;if(!l)return t._root=c,t;for(;l.length;)if((u=n>=(i=(s+h)/2))?s=i:h=i,r=l,!(l=l[a=+u]))return r[a]=c,t;if(n===(o=+t._x.call(null,l.data)))return c.next=l,r?r[a]=c:t._root=c,t;do r=r?r[a]=[,,]:t._root=[,,],(u=n>=(i=(s+h)/2))?s=i:h=i;while((a=+u)==(f=+(o>=i)));return r[f]=l,r[a]=c,t}function q(t,n,e){this.node=t,this.x0=n,this.x1=e}function D(t){return t[0]}function L(t,n){var e=new C(null==n?D:n,NaN,NaN);return null==t?e:e.addAll(t)}function C(t,n,e){this._x=t,this._x0=n,this._x1=e,this._root=void 0}function R(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var I=L.prototype=C.prototype;I.copy=function(){var t,n,e=new C(this._x,this._x0,this._x1),r=this._root;if(!r)return e;if(!r.length)return e._root=R(r),e;for(t=[{source:r,target:e._root=[,,]}];r=t.pop();)for(var i=0;i<2;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=[,,]}):r.target[i]=R(n));return e},I.add=function(t){let n=+this._x.call(null,t);return P(this.cover(n),n,t)},I.addAll=function(t){Array.isArray(t)||(t=Array.from(t));let n=t.length,e=new Float64Array(n),r=1/0,i=-1/0;for(let o=0,u;oi&&(i=u));if(r>i)return this;this.cover(r).cover(i);for(let r=0;rt||t>=e;)switch(i=+(tf)&&!((i=o.x1)=s))&&(o=l[l.length-1],l[l.length-1]=l[l.length-1-u],l[l.length-1-u]=o)}else{var h=Math.abs(t-+this._x.call(null,c.data));h=(u=(s+h)/2))?s=u:h=u,n=c,!(c=c[f=+a]))return this;if(!c.length)break;n[f+1&1]&&(e=n,l=f)}for(;c.data!==t;)if(r=c,!(c=c.next))return this;return((i=c.next)&&delete c.next,r)?(i?r.next=i:delete r.next,this):n?(i?n[f]=i:delete n[f],(c=n[0]||n[1])&&c===(n[1]||n[0])&&!c.length&&(e?e[l]=c:this._root=c),this):(this._root=i,this)},I.removeAll=function(t){for(var n=0,e=t.length;n1&&(t.y=u/c),n>2&&(t.z=a/c)}else{(e=t).x=e.data.x,n>1&&(e.y=e.data.y),n>2&&(e.z=e.data.z);do l+=o[e.data.index];while(e=e.next)}t.value=l}function v(t,u,c,s,h){if(!t.value)return!0;var v=[c,s,h][n-1],y=t.x-e.x,p=n>1?t.y-e.y:0,d=n>2?t.z-e.z:0,x=v-u,g=y*y+p*p+d*d;if(x*x/l1&&0===p&&(g+=(p=j(r))*p),n>2&&0===d&&(g+=(d=j(r))*d),g1&&(e.vy+=p*t.value*i/g),n>2&&(e.vz+=d*t.value*i/g)),!0;if(!t.length&&!(g>=f)){(t.data!==e||t.next)&&(0===y&&(g+=(y=j(r))*y),n>1&&0===p&&(g+=(p=j(r))*p),n>2&&0===d&&(g+=(d=j(r))*d),g1&&(e.vy+=p*x),n>2&&(e.vz+=d*x));while(t=t.next)}}return c.initialize=function(e,...i){t=e,r=i.find(t=>"function"==typeof t)||Math.random,n=i.find(t=>[1,2,3].includes(t))||2,s()},c.strength=function(t){return arguments.length?(u="function"==typeof t?t:O(+t),s(),c):u},c.distanceMin=function(t){return arguments.length?(a=t*t,c):Math.sqrt(a)},c.distanceMax=function(t){return arguments.length?(f=t*t,c):Math.sqrt(f)},c.theta=function(t){return arguments.length?(l=t*t,c):Math.sqrt(l)},c}function J(t,n,e){var r,i=1;function o(){var o,u,a=r.length,f=0,l=0,c=0;for(o=0;o1&&(s=l.y+l.vy),e>2&&(h=l.z+l.vz),a.visit(x);function x(t,n,r,u,a,f,p){var d=[n,r,u,a,f,p],x=d[0],g=d[1],_=d[2],m=d[e],w=d[e+1],b=d[e+2],N=t.data,z=t.r,M=v+z;if(N){if(N.index>l.index){var A=c-N.x-N.vx,E=e>1?s-N.y-N.vy:0,k=e>2?h-N.z-N.vz:0,O=A*A+E*E+k*k;O1&&0===E&&(O+=(E=j(i))*E),e>2&&0===k&&(O+=(k=j(i))*k),O=(M-(O=Math.sqrt(O)))/O*o,l.vx+=(A*=O)*(M=(z*=z)/(y+z)),e>1&&(l.vy+=(E*=O)*M),e>2&&(l.vz+=(k*=O)*M),N.vx-=A*(M=1-M),e>1&&(N.vy-=E*M),e>2&&(N.vz-=k*M))}return}return x>c+M||m1&&(g>s+M||w2&&(_>h+M||bt.r&&(t.r=t[n].r)}function l(){if(n){var e,i,o=n.length;for(e=0,r=Array(o);e"function"==typeof t)||Math.random,e=r.find(t=>[1,2,3].includes(t))||2,l()},a.iterations=function(t){return arguments.length?(u=+t,a):u},a.strength=function(t){return arguments.length?(o=+t,a):o},a.radius=function(n){return arguments.length?(t="function"==typeof n?n:O(+n),l(),a):t},a}function te(t,n,e,r){var i,o,u,a,f=O(.1);function l(t){for(var f=0,l=i.length;f1&&(c.vy+=h*p),o>2&&(c.vz+=v*p)}}function c(){if(i){var n,e=i.length;for(n=0,u=Array(e),a=Array(e);n[1,2,3].includes(t))||2,c()},l.strength=function(t){return arguments.length?(f="function"==typeof t?t:O(+t),c(),l):f},l.radius=function(n){return arguments.length?(t="function"==typeof n?n:O(+n),c(),l):t},l.x=function(t){return arguments.length?(n=+t,l):n},l.y=function(t){return arguments.length?(e=+t,l):e},l.z=function(t){return arguments.length?(r=+t,l):r},l}function tr(t){var n,e,r,i=O(.1);function o(t){for(var i,o=0,u=n.length;ot.id},manyBody:{},center:{x:0,y:0,z:0}}}initSimulation(){return function(t,n){let e;var r,i=Math.min(3,Math.max(1,Math.round(n=n||2))),o=1,u=.001,a=1-Math.pow(.001,1/300),f=0,l=.6,c=new Map,s=(0,G.HT)(y),h=(0,U.Z)("tick","end"),v=(e=1,()=>(e=(1664525*e+1013904223)%4294967296)/4294967296);function y(){p(),h.call("tick",r),o1&&(null==u.fy?u.y+=u.vy*=l:(u.y=u.fy,u.vy=0)),i>2&&(null==u.fz?u.z+=u.vz*=l:(u.z=u.fz,u.vz=0));return r}function d(){for(var n,e=0,r=t.length;e1&&isNaN(n.y)||i>2&&isNaN(n.z)){var o=10*(i>2?Math.cbrt(.5+e):i>1?Math.sqrt(.5+e):e),u=e*Y,a=e*V;1===i?n.x=o:2===i?(n.x=o*Math.cos(u),n.y=o*Math.sin(u)):(n.x=o*Math.sin(u)*Math.cos(a),n.y=o*Math.cos(u),n.z=o*Math.sin(u)*Math.sin(a))}(isNaN(n.vx)||i>1&&isNaN(n.vy)||i>2&&isNaN(n.vz))&&(n.vx=0,i>1&&(n.vy=0),i>2&&(n.vz=0))}}function x(n){return n.initialize&&n.initialize(t,v,i),n}return null==t&&(t=[]),d(),r={tick:p,restart:function(){return s.restart(y),r},stop:function(){return s.stop(),r},numDimensions:function(t){return arguments.length?(i=Math.min(3,Math.max(1,Math.round(t))),c.forEach(x),r):i},nodes:function(n){return arguments.length?(t=n,d(),c.forEach(x),r):t},alpha:function(t){return arguments.length?(o=+t,r):o},alphaMin:function(t){return arguments.length?(u=+t,r):u},alphaDecay:function(t){return arguments.length?(a=+t,r):+a},alphaTarget:function(t){return arguments.length?(f=+t,r):f},velocityDecay:function(t){return arguments.length?(l=1-t,r):1-l},randomSource:function(t){return arguments.length?(v=t,c.forEach(x),r):v},force:function(t,n){return arguments.length>1?(null==n?c.delete(t):c.set(t,x(n)),r):c.get(t)},find:function(){var n,e,r,o,u,a,f=Array.prototype.slice.call(arguments),l=f.shift()||0,c=(i>1?f.shift():null)||0,s=(i>2?f.shift():null)||0,h=f.shift()||1/0,v=0,y=t.length;for(h*=h,v=0;v1?(h.on(t,n),r):h.on(t)}}}()}}var ta=e(51712),tf=e(12368),tl=e(67753),tc=e(89469),ts=e(41733),th=e(64912),tv=e(29257),ty=e(26629);let tp={circular:M.S,concentric:E.W,mds:th.A,random:ty._,grid:ts.M,radial:tv.D,force:tf.y,d3force:k.j,"d3-force-3d":tu,fruchterman:tc.O,forceAtlas2:tl.E,dagre:ta.V,antvDagre:z.b,comboCombined:A.u};var td=e(10779);v({stopLayout(){(null==r?void 0:r.stop)&&r.stop()},calculateLayout(t,n){return(0,i.mG)(this,void 0,void 0,function*(){let{layout:{id:e,options:i,iterations:u},nodes:a,edges:f}=t,l=new o.k({nodes:a,edges:f}),c=tp[e];if(c)r=new c(i);else throw Error(`Unknown layout id: ${e}`);let s=yield r.execute(l);return(0,td.h)(r)&&(r.stop(),s=r.tick(u)),[s,n]})}})},92626:function(t,n){"use strict";var e={value:()=>{}};function r(){for(var t,n=0,e=arguments.length,r={};n=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:n}}),u=-1,a=i.length;if(arguments.length<2){for(;++u0)for(var e,r,i=Array(e),o=0;o[s(t,n,a),t]));for(r=0,f=Array(o);r=s)){(t.data!==n||t.next)&&(0===l&&(p+=(l=(0,o.Z)(e))*l),0===v&&(p+=(v=(0,o.Z)(e))*v),p(n=(1664525*n+1013904223)%4294967296)/4294967296);function p(){d(),v.call("tick",e),o1?(null==n?s.delete(t):s.set(t,g(n)),e):s.get(t)},find:function(n,e,r){var i,o,u,a,f,l=0,c=t.length;for(null==r?r=1/0:r*=r,l=0;l1?(v.on(t,n),e):v.on(t)}}}},26464:function(t,n,e){"use strict";e.d(n,{Z:function(){return i}});var r=e(27898);function i(t){var n,e,i,o=(0,r.Z)(.1);function u(t){for(var r,o=0,u=n.length;o=(o=(p+x)/2))?p=o:x=o,(c=e>=(u=(d+g)/2))?d=u:g=u,i=v,!(v=v[s=c<<1|l]))return i[s]=y,t;if(a=+t._x.call(null,v.data),f=+t._y.call(null,v.data),n===a&&e===f)return y.next=v,i?i[s]=y:t._root=y,t;do i=i?i[s]=[,,,,]:t._root=[,,,,],(l=n>=(o=(p+x)/2))?p=o:x=o,(c=e>=(u=(d+g)/2))?d=u:g=u;while((s=c<<1|l)==(h=(f>=u)<<1|a>=o));return i[h]=v,i[s]=y,t}function i(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i}function o(t){return t[0]}function u(t){return t[1]}function a(t,n,e){var r=new f(null==n?o:n,null==e?u:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function f(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function l(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}e.d(n,{Z:function(){return a}});var c=a.prototype=f.prototype;c.copy=function(){var t,n,e=new f(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=l(r),e;for(t=[{source:r,target:e._root=[,,,,]}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=[,,,,]}):r.target[i]=l(n));return e},c.add=function(t){let n=+this._x.call(null,t),e=+this._y.call(null,t);return r(this.cover(n,e),n,e,t)},c.addAll=function(t){var n,e,i,o,u=t.length,a=Array(u),f=Array(u),l=1/0,c=1/0,s=-1/0,h=-1/0;for(e=0;es&&(s=i),oh&&(h=o));if(l>s||c>h)return this;for(this.cover(l,c).cover(s,h),e=0;et||t>=i||r>n||n>=o;)switch(a=(nv)&&!((u=l.y0)>y)&&!((a=l.x1)=g)<<1|t>=x)&&(l=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=l)}else{var _=t-+this._x.call(null,d.data),m=n-+this._y.call(null,d.data),w=_*_+m*m;if(w=(a=(y+d)/2))?y=a:d=a,(c=u>=(f=(p+x)/2))?p=f:x=f,n=v,!(v=v[s=c<<1|l]))return this;if(!v.length)break;(n[s+1&3]||n[s+2&3]||n[s+3&3])&&(e=n,h=s)}for(;v.data!==t;)if(r=v,!(v=v.next))return this;return((i=v.next)&&delete v.next,r)?(i?r.next=i:delete r.next,this):n?(i?n[s]=i:delete n[s],(v=n[0]||n[1]||n[2]||n[3])&&v===(n[3]||n[2]||n[1]||n[0])&&!v.length&&(e?e[h]=v:this._root=v),this):(this._root=i,this)},c.removeAll=function(t){for(var n=0,e=t.length;n=0&&n._call.call(null,t),n=n._next;--o}()}finally{o=0,function(){for(var t,n,e=r,o=1/0;e;)e._call?(o>e._time&&(o=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:r=n);i=t,_(o)}(),l=0}}function g(){var t=s.now(),n=t-f;n>1e3&&(c-=n,f=t)}function _(t){!o&&(u&&(u=clearTimeout(u)),t-l>24?(t<1/0&&(u=setTimeout(x,t-s.now()-c)),a&&(a=clearInterval(a))):(a||(f=s.now(),a=setInterval(g,1e3)),o=1,h(x)))}p.prototype=d.prototype={constructor:p,restart:function(t,n,e){if("function"!=typeof t)throw TypeError("callback is not a function");e=(null==e?v():+e)+(null==n?0:+n),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=e,_()},stop:function(){this._call&&(this._call=null,this._time=1/0,_())}}},62705:function(t,n,e){var r=e(55639).Symbol;t.exports=r},44239:function(t,n,e){var r=e(62705),i=e(89607),o=e(2333),u=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":u&&u in Object(t)?i(t):o(t)}},27561:function(t,n,e){var r=e(67990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},31957:function(t,n,e){var r="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=r},89607:function(t,n,e){var r=e(62705),i=Object.prototype,o=i.hasOwnProperty,u=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var n=o.call(t,a),e=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=u.call(t);return r&&(n?t[a]=e:delete t[a]),i}},2333:function(t){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},55639:function(t,n,e){var r=e(31957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},67990:function(t){var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},13218:function(t){t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},37005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},33448:function(t,n,e){var r=e(44239),i=e(37005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},7771:function(t,n,e){var r=e(55639);t.exports=function(){return r.Date.now()}},14841:function(t,n,e){var r=e(27561),i=e(13218),o=e(33448),u=0/0,a=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return u;if(i(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=i(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var e=f.test(t);return e||l.test(t)?c(t.slice(2),e?2:8):a.test(t)?u:+t}},97582:function(t,n,e){"use strict";e.d(n,{_T:function(){return r},mG:function(){return i}});function r(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>n.indexOf(r)&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);in.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e}function i(t,n,e,r){return new(e||(e=Promise))(function(i,o){function u(t){try{f(r.next(t))}catch(t){o(t)}}function a(t){try{f(r.throw(t))}catch(t){o(t)}}function f(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e(function(t){t(n)})).then(u,a)}f((r=r.apply(t,n||[])).next())})}"function"==typeof SuppressedError&&SuppressedError}},a={};function f(t){var n=a[t];if(void 0!==n)return n.exports;var e=a[t]={id:t,loaded:!1,exports:{}},r=!0;try{u[t](e,e.exports,f),r=!1}finally{r&&delete a[t]}return e.loaded=!0,e.exports}f.m=u,f.x=function(){var t=f.O(void 0,[2973,4744],function(){return f(60530)});return f.O(t)},t=[],f.O=function(n,e,r,i){if(e){i=i||0;for(var o=t.length;o>0&&t[o-1][2]>i;o--)t[o]=t[o-1];t[o]=[e,r,i];return}for(var u=1/0,o=0;o=i&&Object.keys(f.O).every(function(t){return f.O[t](e[l])})?e.splice(l--,1):(a=!1,i"object"==typeof t&&null!==t||"function"==typeof t,h=new Map([["proxy",{canHandle:t=>s(t)&&t[u],serialize(t){let{port1:n,port2:e}=new MessageChannel;return v(t,n),[e,[e]]},deserialize:t=>(t.start(),function t(n,e=[],r=function(){}){let i=!1,o=new Proxy(r,{get(r,u){if(p(i),u===f)return()=>{g&&g.unregister(o),d(n),i=!0};if("then"===u){if(0===e.length)return{then:()=>o};let t=N(n,{type:"GET",path:e.map(t=>t.toString())}).then(b);return t.then.bind(t)}return t(n,[...e,u])},set(t,r,o){p(i);let[u,a]=w(o);return N(n,{type:"SET",path:[...e,r].map(t=>t.toString()),value:u},a).then(b)},apply(r,o,u){p(i);let f=e[e.length-1];if(f===a)return N(n,{type:"ENDPOINT"}).then(b);if("bind"===f)return t(n,e.slice(0,-1));let[l,c]=_(u);return N(n,{type:"APPLY",path:e.map(t=>t.toString()),argumentList:l},c).then(b)},construct(t,r){p(i);let[o,u]=_(r);return N(n,{type:"CONSTRUCT",path:e.map(t=>t.toString()),argumentList:o},u).then(b)}});return function(t,n){let e=(x.get(n)||0)+1;x.set(n,e),g&&g.register(t,n,t)}(o,n),o}(t,[],void 0))}],["throw",{canHandle:t=>s(t)&&c in t,serialize:({value:t})=>[t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[]],deserialize(t){if(t.isError)throw Object.assign(Error(t.value.message),t.value);throw t.value}}]]);function v(t,n=globalThis,e=["*"]){n.addEventListener("message",function r(i){let o;if(!i||!i.data)return;if(!function(t,n){for(let e of t)if(n===e||"*"===e||e instanceof RegExp&&e.test(n))return!0;return!1}(e,i.origin)){console.warn(`Invalid origin '${i.origin}' for comlink proxy`);return}let{id:a,type:f,path:s}=Object.assign({path:[]},i.data),h=(i.data.argumentList||[]).map(b);try{var p;let n=s.slice(0,-1).reduce((t,n)=>t[n],t),e=s.reduce((t,n)=>t[n],t);switch(f){case"GET":o=e;break;case"SET":n[s.slice(-1)[0]]=b(i.data.value),o=!0;break;case"APPLY":o=e.apply(n,h);break;case"CONSTRUCT":{let t=new e(...h);o=Object.assign(t,{[u]:!0})}break;case"ENDPOINT":{let{port1:n,port2:e}=new MessageChannel;v(t,e),p=[n],m.set(n,p),o=n}break;case"RELEASE":o=void 0;break;default:return}}catch(t){o={value:t,[c]:0}}Promise.resolve(o).catch(t=>({value:t,[c]:0})).then(e=>{let[i,o]=w(e);n.postMessage(Object.assign(Object.assign({},i),{id:a}),o),"RELEASE"===f&&(n.removeEventListener("message",r),y(n),l in t&&"function"==typeof t[l]&&t[l]())}).catch(t=>{let[e,r]=w({value:TypeError("Unserializable return value"),[c]:0});n.postMessage(Object.assign(Object.assign({},e),{id:a}),r)})}),n.start&&n.start()}function y(t){"MessagePort"===t.constructor.name&&t.close()}function p(t){if(t)throw Error("Proxy has been released and is not useable")}function d(t){return N(t,{type:"RELEASE"}).then(()=>{y(t)})}let x=new WeakMap,g="FinalizationRegistry"in globalThis&&new FinalizationRegistry(t=>{let n=(x.get(t)||0)-1;x.set(t,n),0===n&&d(t)});function _(t){var n;let e=t.map(w);return[e.map(t=>t[0]),(n=e.map(t=>t[1]),Array.prototype.concat.apply([],n))]}let m=new WeakMap;function w(t){for(let[n,e]of h)if(e.canHandle(t)){let[r,i]=e.serialize(t);return[{type:"HANDLER",name:n,value:r},i]}return[{type:"RAW",value:t},m.get(t)||[]]}function b(t){switch(t.type){case"HANDLER":return h.get(t.name).deserialize(t.value);case"RAW":return t.value}}function N(t,n,e){return new Promise(r=>{let i=[,,,,].fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");t.addEventListener("message",function n(e){e.data&&e.data.id&&e.data.id===i&&(t.removeEventListener("message",n),r(e.data))}),t.start&&t.start(),t.postMessage(Object.assign({id:i},n),e)})}var z=e(28104),M=e(63795),A=e(39233),E=e(5192),k=e(63330);function O(t){return function(){return t}}function j(t){return(t()-.5)*1e-6}function S(t){return t.index}function Z(t,n){var e=t.get(n);if(!e)throw Error("node not found: "+n);return e}function T(t){var n,e,r,i,o,u,a,f=S,l=function(t){return 1/Math.min(o[t.source.index],o[t.target.index])},c=O(30),s=1;function h(r){for(var o=0,f=t.length;o1&&(x=h.y+h.vy-c.y-c.vy||j(a)),i>2&&(g=h.z+h.vz-c.z-c.vz||j(a)),v=((v=Math.sqrt(d*d+x*x+g*g))-e[p])/v*r*n[p],d*=v,x*=v,g*=v,h.vx-=d*(y=u[p]),i>1&&(h.vy-=x*y),i>2&&(h.vz-=g*y),c.vx+=d*(y=1-y),i>1&&(c.vy+=x*y),i>2&&(c.vz+=g*y)}function v(){if(r){var i,a,l=r.length,c=t.length,s=new Map(r.map((t,n)=>[f(t,n,r),t]));for(i=0,o=Array(l);i"function"==typeof t)||Math.random,i=n.find(t=>[1,2,3].includes(t))||2,v()},h.links=function(n){return arguments.length?(t=n,v(),h):t},h.id=function(t){return arguments.length?(f=t,h):f},h.iterations=function(t){return arguments.length?(s=+t,h):s},h.strength=function(t){return arguments.length?(l="function"==typeof t?t:O(+t),y(),h):l},h.distance=function(t){return arguments.length?(c="function"==typeof t?t:O(+t),p(),h):c},h}function P(t,n,e){if(isNaN(n))return t;var r,i,o,u,a,f,l=t._root,c={data:e},s=t._x0,h=t._x1;if(!l)return t._root=c,t;for(;l.length;)if((u=n>=(i=(s+h)/2))?s=i:h=i,r=l,!(l=l[a=+u]))return r[a]=c,t;if(n===(o=+t._x.call(null,l.data)))return c.next=l,r?r[a]=c:t._root=c,t;do r=r?r[a]=[,,]:t._root=[,,],(u=n>=(i=(s+h)/2))?s=i:h=i;while((a=+u)==(f=+(o>=i)));return r[f]=l,r[a]=c,t}function q(t,n,e){this.node=t,this.x0=n,this.x1=e}function D(t){return t[0]}function L(t,n){var e=new C(null==n?D:n,NaN,NaN);return null==t?e:e.addAll(t)}function C(t,n,e){this._x=t,this._x0=n,this._x1=e,this._root=void 0}function R(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var I=L.prototype=C.prototype;I.copy=function(){var t,n,e=new C(this._x,this._x0,this._x1),r=this._root;if(!r)return e;if(!r.length)return e._root=R(r),e;for(t=[{source:r,target:e._root=[,,]}];r=t.pop();)for(var i=0;i<2;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=[,,]}):r.target[i]=R(n));return e},I.add=function(t){let n=+this._x.call(null,t);return P(this.cover(n),n,t)},I.addAll=function(t){Array.isArray(t)||(t=Array.from(t));let n=t.length,e=new Float64Array(n),r=1/0,i=-1/0;for(let o=0,u;oi&&(i=u));if(r>i)return this;this.cover(r).cover(i);for(let r=0;rt||t>=e;)switch(i=+(tf)&&!((i=o.x1)=s))&&(o=l[l.length-1],l[l.length-1]=l[l.length-1-u],l[l.length-1-u]=o)}else{var h=Math.abs(t-+this._x.call(null,c.data));h=(u=(s+h)/2))?s=u:h=u,n=c,!(c=c[f=+a]))return this;if(!c.length)break;n[f+1&1]&&(e=n,l=f)}for(;c.data!==t;)if(r=c,!(c=c.next))return this;return((i=c.next)&&delete c.next,r)?(i?r.next=i:delete r.next,this):n?(i?n[f]=i:delete n[f],(c=n[0]||n[1])&&c===(n[1]||n[0])&&!c.length&&(e?e[l]=c:this._root=c),this):(this._root=i,this)},I.removeAll=function(t){for(var n=0,e=t.length;n1&&(t.y=u/c),n>2&&(t.z=a/c)}else{(e=t).x=e.data.x,n>1&&(e.y=e.data.y),n>2&&(e.z=e.data.z);do l+=o[e.data.index];while(e=e.next)}t.value=l}function v(t,u,c,s,h){if(!t.value)return!0;var v=[c,s,h][n-1],y=t.x-e.x,p=n>1?t.y-e.y:0,d=n>2?t.z-e.z:0,x=v-u,g=y*y+p*p+d*d;if(x*x/l1&&0===p&&(g+=(p=j(r))*p),n>2&&0===d&&(g+=(d=j(r))*d),g1&&(e.vy+=p*t.value*i/g),n>2&&(e.vz+=d*t.value*i/g)),!0;if(!t.length&&!(g>=f)){(t.data!==e||t.next)&&(0===y&&(g+=(y=j(r))*y),n>1&&0===p&&(g+=(p=j(r))*p),n>2&&0===d&&(g+=(d=j(r))*d),g1&&(e.vy+=p*x),n>2&&(e.vz+=d*x));while(t=t.next)}}return c.initialize=function(e,...i){t=e,r=i.find(t=>"function"==typeof t)||Math.random,n=i.find(t=>[1,2,3].includes(t))||2,s()},c.strength=function(t){return arguments.length?(u="function"==typeof t?t:O(+t),s(),c):u},c.distanceMin=function(t){return arguments.length?(a=t*t,c):Math.sqrt(a)},c.distanceMax=function(t){return arguments.length?(f=t*t,c):Math.sqrt(f)},c.theta=function(t){return arguments.length?(l=t*t,c):Math.sqrt(l)},c}function J(t,n,e){var r,i=1;function o(){var o,u,a=r.length,f=0,l=0,c=0;for(o=0;o1&&(s=l.y+l.vy),e>2&&(h=l.z+l.vz),a.visit(x);function x(t,n,r,u,a,f,p){var d=[n,r,u,a,f,p],x=d[0],g=d[1],_=d[2],m=d[e],w=d[e+1],b=d[e+2],N=t.data,z=t.r,M=v+z;if(N){if(N.index>l.index){var A=c-N.x-N.vx,E=e>1?s-N.y-N.vy:0,k=e>2?h-N.z-N.vz:0,O=A*A+E*E+k*k;O1&&0===E&&(O+=(E=j(i))*E),e>2&&0===k&&(O+=(k=j(i))*k),O=(M-(O=Math.sqrt(O)))/O*o,l.vx+=(A*=O)*(M=(z*=z)/(y+z)),e>1&&(l.vy+=(E*=O)*M),e>2&&(l.vz+=(k*=O)*M),N.vx-=A*(M=1-M),e>1&&(N.vy-=E*M),e>2&&(N.vz-=k*M))}return}return x>c+M||m1&&(g>s+M||w2&&(_>h+M||bt.r&&(t.r=t[n].r)}function l(){if(n){var e,i,o=n.length;for(e=0,r=Array(o);e"function"==typeof t)||Math.random,e=r.find(t=>[1,2,3].includes(t))||2,l()},a.iterations=function(t){return arguments.length?(u=+t,a):u},a.strength=function(t){return arguments.length?(o=+t,a):o},a.radius=function(n){return arguments.length?(t="function"==typeof n?n:O(+n),l(),a):t},a}function te(t,n,e,r){var i,o,u,a,f=O(.1);function l(t){for(var f=0,l=i.length;f1&&(c.vy+=h*p),o>2&&(c.vz+=v*p)}}function c(){if(i){var n,e=i.length;for(n=0,u=Array(e),a=Array(e);n[1,2,3].includes(t))||2,c()},l.strength=function(t){return arguments.length?(f="function"==typeof t?t:O(+t),c(),l):f},l.radius=function(n){return arguments.length?(t="function"==typeof n?n:O(+n),c(),l):t},l.x=function(t){return arguments.length?(n=+t,l):n},l.y=function(t){return arguments.length?(e=+t,l):e},l.z=function(t){return arguments.length?(r=+t,l):r},l}function tr(t){var n,e,r,i=O(.1);function o(t){for(var i,o=0,u=n.length;ot.id},manyBody:{},center:{x:0,y:0,z:0}}}initSimulation(){return function(t,n){let e;var r,i=Math.min(3,Math.max(1,Math.round(n=n||2))),o=1,u=.001,a=1-Math.pow(.001,1/300),f=0,l=.6,c=new Map,s=(0,G.HT)(y),h=(0,U.Z)("tick","end"),v=(e=1,()=>(e=(1664525*e+1013904223)%4294967296)/4294967296);function y(){p(),h.call("tick",r),o1&&(null==u.fy?u.y+=u.vy*=l:(u.y=u.fy,u.vy=0)),i>2&&(null==u.fz?u.z+=u.vz*=l:(u.z=u.fz,u.vz=0));return r}function d(){for(var n,e=0,r=t.length;e1&&isNaN(n.y)||i>2&&isNaN(n.z)){var o=10*(i>2?Math.cbrt(.5+e):i>1?Math.sqrt(.5+e):e),u=e*Y,a=e*V;1===i?n.x=o:2===i?(n.x=o*Math.cos(u),n.y=o*Math.sin(u)):(n.x=o*Math.sin(u)*Math.cos(a),n.y=o*Math.cos(u),n.z=o*Math.sin(u)*Math.sin(a))}(isNaN(n.vx)||i>1&&isNaN(n.vy)||i>2&&isNaN(n.vz))&&(n.vx=0,i>1&&(n.vy=0),i>2&&(n.vz=0))}}function x(n){return n.initialize&&n.initialize(t,v,i),n}return null==t&&(t=[]),d(),r={tick:p,restart:function(){return s.restart(y),r},stop:function(){return s.stop(),r},numDimensions:function(t){return arguments.length?(i=Math.min(3,Math.max(1,Math.round(t))),c.forEach(x),r):i},nodes:function(n){return arguments.length?(t=n,d(),c.forEach(x),r):t},alpha:function(t){return arguments.length?(o=+t,r):o},alphaMin:function(t){return arguments.length?(u=+t,r):u},alphaDecay:function(t){return arguments.length?(a=+t,r):+a},alphaTarget:function(t){return arguments.length?(f=+t,r):f},velocityDecay:function(t){return arguments.length?(l=1-t,r):1-l},randomSource:function(t){return arguments.length?(v=t,c.forEach(x),r):v},force:function(t,n){return arguments.length>1?(null==n?c.delete(t):c.set(t,x(n)),r):c.get(t)},find:function(){var n,e,r,o,u,a,f=Array.prototype.slice.call(arguments),l=f.shift()||0,c=(i>1?f.shift():null)||0,s=(i>2?f.shift():null)||0,h=f.shift()||1/0,v=0,y=t.length;for(h*=h,v=0;v1?(h.on(t,n),r):h.on(t)}}}()}}var ta=e(51712),tf=e(12368),tl=e(67753),tc=e(89469),ts=e(41733),th=e(64912),tv=e(29257),ty=e(26629);let tp={circular:M.S,concentric:E.W,mds:th.A,random:ty._,grid:ts.M,radial:tv.D,force:tf.y,d3force:k.j,"d3-force-3d":tu,fruchterman:tc.O,forceAtlas2:tl.E,dagre:ta.V,antvDagre:z.b,comboCombined:A.u};var td=e(10779);v({stopLayout(){(null==r?void 0:r.stop)&&r.stop()},calculateLayout(t,n){return(0,i.mG)(this,void 0,void 0,function*(){let{layout:{id:e,options:i,iterations:u},nodes:a,edges:f}=t,l=new o.k({nodes:a,edges:f}),c=tp[e];if(c)r=new c(i);else throw Error(`Unknown layout id: ${e}`);let s=yield r.execute(l);return(0,td.h)(r)&&(r.stop(),s=r.tick(u)),[s,n]})}})},92626:function(t,n){"use strict";var e={value:()=>{}};function r(){for(var t,n=0,e=arguments.length,r={};n=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:n}}),u=-1,a=i.length;if(arguments.length<2){for(;++u0)for(var e,r,i=Array(e),o=0;o[s(t,n,a),t]));for(r=0,f=Array(o);r=s)){(t.data!==n||t.next)&&(0===l&&(p+=(l=(0,o.Z)(e))*l),0===v&&(p+=(v=(0,o.Z)(e))*v),p(n=(1664525*n+1013904223)%4294967296)/4294967296);function p(){d(),v.call("tick",e),o1?(null==n?s.delete(t):s.set(t,g(n)),e):s.get(t)},find:function(n,e,r){var i,o,u,a,f,l=0,c=t.length;for(null==r?r=1/0:r*=r,l=0;l1?(v.on(t,n),e):v.on(t)}}}},26464:function(t,n,e){"use strict";e.d(n,{Z:function(){return i}});var r=e(27898);function i(t){var n,e,i,o=(0,r.Z)(.1);function u(t){for(var r,o=0,u=n.length;o=(o=(p+x)/2))?p=o:x=o,(c=e>=(u=(d+g)/2))?d=u:g=u,i=v,!(v=v[s=c<<1|l]))return i[s]=y,t;if(a=+t._x.call(null,v.data),f=+t._y.call(null,v.data),n===a&&e===f)return y.next=v,i?i[s]=y:t._root=y,t;do i=i?i[s]=[,,,,]:t._root=[,,,,],(l=n>=(o=(p+x)/2))?p=o:x=o,(c=e>=(u=(d+g)/2))?d=u:g=u;while((s=c<<1|l)==(h=(f>=u)<<1|a>=o));return i[h]=v,i[s]=y,t}function i(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i}function o(t){return t[0]}function u(t){return t[1]}function a(t,n,e){var r=new f(null==n?o:n,null==e?u:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function f(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function l(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}e.d(n,{Z:function(){return a}});var c=a.prototype=f.prototype;c.copy=function(){var t,n,e=new f(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=l(r),e;for(t=[{source:r,target:e._root=[,,,,]}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=[,,,,]}):r.target[i]=l(n));return e},c.add=function(t){let n=+this._x.call(null,t),e=+this._y.call(null,t);return r(this.cover(n,e),n,e,t)},c.addAll=function(t){var n,e,i,o,u=t.length,a=Array(u),f=Array(u),l=1/0,c=1/0,s=-1/0,h=-1/0;for(e=0;es&&(s=i),oh&&(h=o));if(l>s||c>h)return this;for(this.cover(l,c).cover(s,h),e=0;et||t>=i||r>n||n>=o;)switch(a=(nv)&&!((u=l.y0)>y)&&!((a=l.x1)=g)<<1|t>=x)&&(l=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=l)}else{var _=t-+this._x.call(null,d.data),m=n-+this._y.call(null,d.data),w=_*_+m*m;if(w=(a=(y+d)/2))?y=a:d=a,(c=u>=(f=(p+x)/2))?p=f:x=f,n=v,!(v=v[s=c<<1|l]))return this;if(!v.length)break;(n[s+1&3]||n[s+2&3]||n[s+3&3])&&(e=n,h=s)}for(;v.data!==t;)if(r=v,!(v=v.next))return this;return((i=v.next)&&delete v.next,r)?(i?r.next=i:delete r.next,this):n?(i?n[s]=i:delete n[s],(v=n[0]||n[1]||n[2]||n[3])&&v===(n[3]||n[2]||n[1]||n[0])&&!v.length&&(e?e[h]=v:this._root=v),this):(this._root=i,this)},c.removeAll=function(t){for(var n=0,e=t.length;n=0&&n._call.call(null,t),n=n._next;--o}()}finally{o=0,function(){for(var t,n,e=r,o=1/0;e;)e._call?(o>e._time&&(o=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:r=n);i=t,_(o)}(),l=0}}function g(){var t=s.now(),n=t-f;n>1e3&&(c-=n,f=t)}function _(t){!o&&(u&&(u=clearTimeout(u)),t-l>24?(t<1/0&&(u=setTimeout(x,t-s.now()-c)),a&&(a=clearInterval(a))):(a||(f=s.now(),a=setInterval(g,1e3)),o=1,h(x)))}p.prototype=d.prototype={constructor:p,restart:function(t,n,e){if("function"!=typeof t)throw TypeError("callback is not a function");e=(null==e?v():+e)+(null==n?0:+n),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=e,_()},stop:function(){this._call&&(this._call=null,this._time=1/0,_())}}},62705:function(t,n,e){var r=e(55639).Symbol;t.exports=r},44239:function(t,n,e){var r=e(62705),i=e(89607),o=e(2333),u=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":u&&u in Object(t)?i(t):o(t)}},27561:function(t,n,e){var r=e(67990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},31957:function(t,n,e){var r="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=r},89607:function(t,n,e){var r=e(62705),i=Object.prototype,o=i.hasOwnProperty,u=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var n=o.call(t,a),e=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=u.call(t);return r&&(n?t[a]=e:delete t[a]),i}},2333:function(t){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},55639:function(t,n,e){var r=e(31957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},67990:function(t){var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},13218:function(t){t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},37005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},33448:function(t,n,e){var r=e(44239),i=e(37005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},7771:function(t,n,e){var r=e(55639);t.exports=function(){return r.Date.now()}},14841:function(t,n,e){var r=e(27561),i=e(13218),o=e(33448),u=0/0,a=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return u;if(i(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=i(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var e=f.test(t);return e||l.test(t)?c(t.slice(2),e?2:8):a.test(t)?u:+t}},97582:function(t,n,e){"use strict";e.d(n,{_T:function(){return r},mG:function(){return i}});function r(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>n.indexOf(r)&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);in.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e}function i(t,n,e,r){return new(e||(e=Promise))(function(i,o){function u(t){try{f(r.next(t))}catch(t){o(t)}}function a(t){try{f(r.throw(t))}catch(t){o(t)}}function f(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e(function(t){t(n)})).then(u,a)}f((r=r.apply(t,n||[])).next())})}"function"==typeof SuppressedError&&SuppressedError}},a={};function f(t){var n=a[t];if(void 0!==n)return n.exports;var e=a[t]={id:t,loaded:!1,exports:{}},r=!0;try{u[t](e,e.exports,f),r=!1}finally{r&&delete a[t]}return e.loaded=!0,e.exports}f.m=u,f.x=function(){var t=f.O(void 0,[2973,4744],function(){return f(60530)});return f.O(t)},t=[],f.O=function(n,e,r,i){if(e){i=i||0;for(var o=t.length;o>0&&t[o-1][2]>i;o--)t[o]=t[o-1];t[o]=[e,r,i];return}for(var u=1/0,o=0;o=i&&Object.keys(f.O).every(function(t){return f.O[t](e[l])})?e.splice(l--,1):(a=!1,i ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:p}}}}})}},A=e=>{let{componentCls:t}=e,c=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[c]:{transform:"rotate(180deg)"}}}},D=e=>{let{componentCls:t,headerBg:c,paddingXXS:n,colorBorder:a}=e;return{[`${t}-borderless`]:{backgroundColor:c,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${a}`},[` > ${t}-item:last-child, > ${t}-item:last-child ${t}-header - `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:n}}}},P=e=>{let{componentCls:t,paddingSM:c}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:c}}}}}};var N=(0,$.I$)("Collapse",e=>{let t=(0,F.IX)(e,{collapseHeaderPaddingSM:`${(0,k.bf)(e.paddingXS)} ${(0,k.bf)(e.paddingSM)}`,collapseHeaderPaddingLG:`${(0,k.bf)(e.padding)} ${(0,k.bf)(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[I(t),D(t),P(t),A(t),(0,T.Z)(t)]},e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}));let q=n.forwardRef((e,t)=>{let{getPrefixCls:c,direction:r,collapse:o}=n.useContext(y.E_),{prefixCls:i,className:u,rootClassName:s,style:f,bordered:h=!0,ghost:d,size:m,expandIconPosition:g="start",children:z,expandIcon:p}=e,w=(0,B.Z)(e=>{var t;return null!==(t=null!=m?m:e)&&void 0!==t?t:"middle"}),M=c("collapse",i),Z=c(),[H,b,V]=N(M),C=n.useMemo(()=>"left"===g?"start":"right"===g?"end":g,[g]),S=null!=p?p:null==o?void 0:o.expandIcon,k=n.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="function"==typeof S?S(e):n.createElement(a.Z,{rotate:e.isActive?90:void 0,"aria-label":e.isActive?"expanded":"collapsed"});return(0,R.Tm)(t,()=>{var e;return{className:l()(null===(e=null==t?void 0:t.props)||void 0===e?void 0:e.className,`${M}-arrow`)}})},[S,M]),O=l()(`${M}-icon-position-${C}`,{[`${M}-borderless`]:!h,[`${M}-rtl`]:"rtl"===r,[`${M}-ghost`]:!!d,[`${M}-${w}`]:"middle"!==w},null==o?void 0:o.className,u,s,b,V),T=Object.assign(Object.assign({},(0,L.Z)(Z)),{motionAppear:!1,leavedClassName:`${M}-content-hidden`}),$=n.useMemo(()=>z?(0,v.Z)(z).map((e,t)=>{var c,n;if(null===(c=e.props)||void 0===c?void 0:c.disabled){let c=null!==(n=e.key)&&void 0!==n?n:String(t),{disabled:a,collapsible:r}=e.props,l=Object.assign(Object.assign({},(0,E.Z)(e.props,["disabled"])),{key:c,collapsible:null!=r?r:a?"disabled":void 0});return(0,R.Tm)(e,l)}return e}):null,[z]);return H(n.createElement(x,Object.assign({ref:t,openMotion:T},(0,E.Z)(e,["rootClassName"]),{expandIcon:k,prefixCls:M,className:O,style:Object.assign(Object.assign({},null==o?void 0:o.style),f)}),$))});var W=Object.assign(q,{Panel:S})},69935:function(e,t,c){"use strict";c.d(t,{default:function(){return cb}});var n=c(97909),a=c.n(n),r=c(80334),l=c(33088),o=c.n(l),i=c(26850),u=c.n(i),s=c(90888),f=c.n(s),h=c(99873),d=c.n(h),v=c(86625),m=c.n(v),g=c(40618),z=c.n(g);a().extend(z()),a().extend(m()),a().extend(o()),a().extend(u()),a().extend(f()),a().extend(d()),a().extend(function(e,t){var c=t.prototype,n=c.format;c.format=function(e){var t=(e||"").replace("Wo","wo");return n.bind(this)(t)}});var p={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},w=function(e){return p[e]||e.split("_")[0]},M=function(){(0,r.ET)(!1,"Not match any format. Please help to fire a issue about this.")},Z=c(8745),H=c(67294),b=c(20841),V=c(24019),C=c(32198),x=c(93967),E=c.n(x),L=c(87462),R=c(74902),y=c(1413),B=c(97685),S=c(56790),k=c(8410),O=c(98423),T=c(64217),$=c(4942),F=c(40228);c(15105);var I=c(75164);function A(e,t){return void 0!==e?e:t?"bottomRight":"bottomLeft"}function D(e,t){var c=A(e,t),n=(null==c?void 0:c.toLowerCase().endsWith("right"))?"insetInlineEnd":"insetInlineStart";return t&&(n=["insetInlineStart","insetInlineEnd"].find(function(e){return e!==n})),n}var P=H.createContext(null),N={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}},q=function(e){var t=e.popupElement,c=e.popupStyle,n=e.popupClassName,a=e.popupAlign,r=e.transitionName,l=e.getPopupContainer,o=e.children,i=e.range,u=e.placement,s=e.builtinPlacements,f=e.direction,h=e.visible,d=e.onClose,v=H.useContext(P).prefixCls,m="".concat(v,"-dropdown"),g=A(u,"rtl"===f);return H.createElement(F.Z,{showAction:[],hideAction:["click"],popupPlacement:g,builtinPlacements:void 0===s?N:s,prefixCls:m,popupTransitionName:r,popup:t,popupAlign:a,popupVisible:h,popupClassName:E()(n,(0,$.Z)((0,$.Z)({},"".concat(m,"-range"),i),"".concat(m,"-rtl"),"rtl"===f)),popupStyle:c,stretch:"minWidth",getPopupContainer:l,onPopupVisibleChange:function(e){e||d()}},o)};function W(e,t){for(var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",n=String(e);n.length2&&void 0!==arguments[2]?arguments[2]:[],n=H.useState([!1,!1]),a=(0,B.Z)(n,2),r=a[0],l=a[1];return[H.useMemo(function(){return r.map(function(n,a){if(n)return!0;var r=e[a];return!!r&&!!(!c[a]&&!r||r&&t(r,{activeIndex:a}))})},[e,r,t,c]),function(e,t){l(function(c){return j(c,t,e)})}]}function J(e,t,c,n,a){var r="",l=[];return e&&l.push(a?"hh":"HH"),t&&l.push("mm"),c&&l.push("ss"),r=l.join(":"),n&&(r+=".SSS"),a&&(r+=" A"),r}function ee(e,t){var c=t.showHour,n=t.showMinute,a=t.showSecond,r=t.showMillisecond,l=t.use12Hours;return H.useMemo(function(){var t,o,i,u,s,f,h,d,v,m,g,z,p;return t=e.fieldDateTimeFormat,o=e.fieldDateFormat,i=e.fieldTimeFormat,u=e.fieldMonthFormat,s=e.fieldYearFormat,f=e.fieldWeekFormat,h=e.fieldQuarterFormat,d=e.yearFormat,v=e.cellYearFormat,m=e.cellQuarterFormat,g=e.dayFormat,z=e.cellDateFormat,p=J(c,n,a,r,l),(0,y.Z)((0,y.Z)({},e),{},{fieldDateTimeFormat:t||"YYYY-MM-DD ".concat(p),fieldDateFormat:o||"YYYY-MM-DD",fieldTimeFormat:i||p,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:s||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:h||"YYYY-[Q]Q",yearFormat:d||"YYYY",cellYearFormat:v||"YYYY",cellQuarterFormat:m||"[Q]Q",cellDateFormat:z||g||"D"})},[e,c,n,a,r,l])}var et=c(71002);function ec(e,t,c){return null!=c?c:t.some(function(t){return e.includes(t)})}var en=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function ea(e,t,c,n){return[e,t,c,n].some(function(e){return void 0!==e})}function er(e,t,c,n,a){var r=t,l=c,o=n;if(e||r||l||o||a){if(e){var i,u,s,f=[r,l,o].some(function(e){return!1===e}),h=[r,l,o].some(function(e){return!0===e}),d=!!f||!h;r=null!==(i=r)&&void 0!==i?i:d,l=null!==(u=l)&&void 0!==u?u:d,o=null!==(s=o)&&void 0!==s?s:d}}else r=!0,l=!0,o=!0;return[r,l,o,a]}function el(e){var t,c,n,a,r=e.showTime,l=(t=_(e,en),c=e.format,n=e.picker,a=null,c&&(Array.isArray(a=c)&&(a=a[0]),a="object"===(0,et.Z)(a)?a.format:a),"time"===n&&(t.format=a),[t,a]),o=(0,B.Z)(l,2),i=o[0],u=o[1],s=r&&"object"===(0,et.Z)(r)?r:{},f=(0,y.Z)((0,y.Z)({defaultOpenValue:s.defaultOpenValue||s.defaultValue},i),s),h=f.showMillisecond,d=f.showHour,v=f.showMinute,m=f.showSecond,g=er(ea(d,v,m,h),d,v,m,h),z=(0,B.Z)(g,3);return d=z[0],v=z[1],m=z[2],[f,(0,y.Z)((0,y.Z)({},f),{},{showHour:d,showMinute:v,showSecond:m,showMillisecond:h}),f.format,u]}function eo(e,t,c,n,a){var r="time"===e;if("datetime"===e||r){for(var l=K(e,a,null),o=[t,c],i=0;i1&&void 0!==arguments[1]&&arguments[1];return H.useMemo(function(){var c=e?Y(e):e;return t&&c&&(c[1]=c[1]||c[0]),c},[e,t])}function eb(e,t){var c=e.generateConfig,n=e.locale,a=e.picker,r=void 0===a?"date":a,l=e.prefixCls,o=void 0===l?"rc-picker":l,i=e.styles,u=void 0===i?{}:i,s=e.classNames,f=void 0===s?{}:s,h=e.order,d=void 0===h||h,v=e.components,m=void 0===v?{}:v,g=e.inputRender,z=e.allowClear,p=e.clearIcon,w=e.needConfirm,M=e.multiple,Z=e.format,b=e.inputReadOnly,V=e.disabledDate,C=e.minDate,x=e.maxDate,E=e.showTime,L=e.value,R=e.defaultValue,k=e.pickerValue,O=e.defaultPickerValue,T=eH(L),$=eH(R),F=eH(k),I=eH(O),A="date"===r&&E?"datetime":r,D="time"===A||"datetime"===A,P=D||M,N=null!=w?w:D,q=el(e),W=(0,B.Z)(q,4),j=W[0],_=W[1],U=W[2],X=W[3],G=ee(n,_),Q=H.useMemo(function(){return eo(A,U,X,j,G)},[A,U,X,j,G]),J=H.useMemo(function(){return(0,y.Z)((0,y.Z)({},e),{},{prefixCls:o,locale:G,picker:r,styles:u,classNames:f,order:d,components:(0,y.Z)({input:g},m),clearIcon:!1===z?null:(z&&"object"===(0,et.Z)(z)?z:{}).clearIcon||p||H.createElement("span",{className:"".concat(o,"-clear-btn")}),showTime:Q,value:T,defaultValue:$,pickerValue:F,defaultPickerValue:I},null==t?void 0:t())},[e]),ec=H.useMemo(function(){var e=Y(K(A,G,Z)),t=e[0],c="object"===(0,et.Z)(t)&&"mask"===t.type?t.format:null;return[e.map(function(e){return"string"==typeof e||"function"==typeof e?e:e.format}),c]},[A,G,Z]),en=(0,B.Z)(ec,2),ea=en[0],er=en[1],ei="function"==typeof ea[0]||!!M||b,eu=(0,S.zX)(function(e,t){return!!(V&&V(e,t)||C&&c.isAfter(C,e)&&!ez(c,n,C,e,t.type)||x&&c.isAfter(e,x)&&!ez(c,n,x,e,t.type))}),es=(0,S.zX)(function(e,t){var n=(0,y.Z)({type:r},t);if(delete n.activeIndex,!c.isValidate(e)||eu&&eu(e,n))return!0;if(("date"===r||"time"===r)&&Q){var a,l=t&&1===t.activeIndex?"end":"start",o=(null===(a=Q.disabledTime)||void 0===a?void 0:a.call(Q,e,l,{from:n.from}))||{},i=o.disabledHours,u=o.disabledMinutes,s=o.disabledSeconds,f=o.disabledMilliseconds,h=Q.disabledHours,d=Q.disabledMinutes,v=Q.disabledSeconds,m=i||h,g=u||d,z=s||v,p=c.getHour(e),w=c.getMinute(e),M=c.getSecond(e),Z=c.getMillisecond(e);if(m&&m().includes(p)||g&&g(p).includes(w)||z&&z(p,w).includes(M)||f&&f(p,w,M).includes(Z))return!0}return!1});return[H.useMemo(function(){return(0,y.Z)((0,y.Z)({},J),{},{needConfirm:N,inputReadOnly:ei,disabledDate:eu})},[J,N,ei,eu]),A,P,ea,er,es]}function eV(e,t){var c,n,a,r,l,o,i,u,s,f,h,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],v=arguments.length>3?arguments[3]:void 0,m=(c=!d.every(function(e){return e})&&e,n=t||!1,a=(0,S.C8)(n,{value:c}),l=(r=(0,B.Z)(a,2))[0],o=r[1],i=H.useRef(c),u=H.useRef(),s=function(){I.Z.cancel(u.current)},f=(0,S.zX)(function(){o(i.current),v&&l!==i.current&&v(i.current)}),h=(0,S.zX)(function(e,t){s(),i.current=e,e||t?f():u.current=(0,I.Z)(f)}),H.useEffect(function(){return s},[]),[l,h]),g=(0,B.Z)(m,2),z=g[0],p=g[1];return[z,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(!t.inherit||z)&&p(e,t.force)}]}function eC(e){var t=H.useRef();return H.useImperativeHandle(e,function(){var e;return{nativeElement:null===(e=t.current)||void 0===e?void 0:e.nativeElement,focus:function(e){var c;null===(c=t.current)||void 0===c||c.focus(e)},blur:function(){var e;null===(e=t.current)||void 0===e||e.blur()}}}),t}function ex(e,t){return H.useMemo(function(){return e||(t?((0,r.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(e){var t=(0,B.Z)(e,2);return{label:t[0],value:t[1]}})):[])},[e,t])}function eE(e,t){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=H.useRef(t);n.current=t,(0,k.o)(function(){if(e)n.current(e);else{var t=(0,I.Z)(function(){n.current(e)},c);return function(){I.Z.cancel(t)}}},[e])}function eL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],c=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=H.useState(0),a=(0,B.Z)(n,2),r=a[0],l=a[1],o=H.useState(!1),i=(0,B.Z)(o,2),u=i[0],s=i[1],f=H.useRef([]),h=H.useRef(null);return eE(u||c,function(){u||(f.current=[])}),H.useEffect(function(){u&&f.current.push(r)},[u,r]),[u,function(e){s(e)},function(e){return e&&(h.current=e),h.current},r,l,function(c){var n=f.current,a=new Set(n.filter(function(e){return c[e]||t[e]})),r=0===n[n.length-1]?1:0;return a.size>=2||e[r]?null:r},f.current]}function eR(e,t,c,n){switch(t){case"date":case"week":return e.addMonth(c,n);case"month":case"quarter":return e.addYear(c,n);case"year":return e.addYear(c,10*n);case"decade":return e.addYear(c,100*n);default:return c}}var ey=[];function eB(e,t,c,n,a,r,l,o){var i=arguments.length>8&&void 0!==arguments[8]?arguments[8]:ey,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:ey,s=arguments.length>10&&void 0!==arguments[10]?arguments[10]:ey,f=arguments.length>11?arguments[11]:void 0,h=arguments.length>12?arguments[12]:void 0,d=arguments.length>13?arguments[13]:void 0,v="time"===l,m=r||0,g=function(t){var n=e.getNow();return v&&(n=eZ(e,n)),i[t]||c[t]||n},z=(0,B.Z)(u,2),p=z[0],w=z[1],M=(0,S.C8)(function(){return g(0)},{value:p}),Z=(0,B.Z)(M,2),b=Z[0],V=Z[1],C=(0,S.C8)(function(){return g(1)},{value:w}),x=(0,B.Z)(C,2),E=x[0],L=x[1],R=H.useMemo(function(){var t=[b,E][m];return v?t:eZ(e,t,s[m])},[v,b,E,m,e,s]),y=function(c){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel";(0,[V,L][m])(c);var r=[b,E];r[m]=c,!f||ez(e,t,b,r[0],l)&&ez(e,t,E,r[1],l)||f(r,{source:a,range:1===m?"end":"start",mode:n})},O=function(c,n){if(o){var a={date:"month",week:"month",month:"year",quarter:"year"}[l];if(a&&!ez(e,t,c,n,a)||"year"===l&&c&&Math.floor(e.getYear(c)/10)!==Math.floor(e.getYear(n)/10))return eR(e,l,n,-1)}return n},T=H.useRef(null);return(0,k.Z)(function(){if(a&&!i[m]){var t=v?null:e.getNow();if(null!==T.current&&T.current!==m?t=[b,E][1^m]:c[m]?t=0===m?c[0]:O(c[0],c[1]):c[1^m]&&(t=c[1^m]),t){h&&e.isAfter(h,t)&&(t=h);var n=o?eR(e,l,t,1):t;d&&e.isAfter(n,d)&&(t=o?eR(e,l,d,-1):d),y(t,"reset")}}},[a,m,c[m]]),H.useEffect(function(){a?T.current=m:T.current=null},[a,m]),(0,k.Z)(function(){a&&i&&i[m]&&y(i[m],"reset")},[a,m]),[R,y]}function eS(e,t){var c=H.useRef(e),n=H.useState({}),a=(0,B.Z)(n,2)[1],r=function(e){return e&&void 0!==t?t:c.current};return[r,function(e){c.current=e,a({})},r(!0)]}var ek=[];function eO(e,t,c){return[function(n){return n.map(function(n){return eM(n,{generateConfig:e,locale:t,format:c[0]})})},function(t,c){for(var n=Math.max(t.length,c.length),a=-1,r=0;r2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,l=[],o=c>=1?0|c:1,i=e;i<=t;i+=o){var u=a.includes(i);u&&n||l.push({label:W(i,r),value:i,disabled:u})}return l}function eN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2?arguments[2]:void 0,n=t||{},a=n.use12Hours,r=n.hourStep,l=void 0===r?1:r,o=n.minuteStep,i=void 0===o?1:o,u=n.secondStep,s=void 0===u?1:u,f=n.millisecondStep,h=void 0===f?100:f,d=n.hideDisabledOptions,v=n.disabledTime,m=n.disabledHours,g=n.disabledMinutes,z=n.disabledSeconds,p=H.useMemo(function(){return c||e.getNow()},[c,e]),w=H.useCallback(function(e){var t=(null==v?void 0:v(e))||{};return[t.disabledHours||m||eD,t.disabledMinutes||g||eD,t.disabledSeconds||z||eD,t.disabledMilliseconds||eD]},[v,m,g,z]),M=H.useMemo(function(){return w(p)},[p,w]),Z=(0,B.Z)(M,4),b=Z[0],V=Z[1],C=Z[2],x=Z[3],E=H.useCallback(function(e,t,c,n){var r=eP(0,23,l,d,e());return[a?r.map(function(e){return(0,y.Z)((0,y.Z)({},e),{},{label:W(e.value%12||12,2)})}):r,function(e){return eP(0,59,i,d,t(e))},function(e,t){return eP(0,59,s,d,c(e,t))},function(e,t,c){return eP(0,999,h,d,n(e,t,c),3)}]},[d,l,a,h,i,s]),L=H.useMemo(function(){return E(b,V,C,x)},[E,b,V,C,x]),S=(0,B.Z)(L,4),k=S[0],O=S[1],T=S[2],$=S[3];return[function(t,c){var n=function(){return k},a=O,r=T,l=$;if(c){var o=w(c),i=(0,B.Z)(o,4),u=E(i[0],i[1],i[2],i[3]),s=(0,B.Z)(u,4),f=s[0],h=s[1],d=s[2],v=s[3];n=function(){return f},a=h,r=d,l=v}return function(e,t,c,n,a,r){var l=e;function o(e,t,c){var n=r[e](l),a=c.find(function(e){return e.value===n});if(!a||a.disabled){var o=c.filter(function(e){return!e.disabled}),i=(0,R.Z)(o).reverse().find(function(e){return e.value<=n})||o[0];i&&(n=i.value,l=r[t](l,n))}return n}var i=o("getHour","setHour",t()),u=o("getMinute","setMinute",c(i)),s=o("getSecond","setSecond",n(i,u));return o("getMillisecond","setMillisecond",a(i,u,s)),l}(t,n,a,r,l,e)},k,O,T,$]}function eq(e){var t=e.mode,c=e.internalMode,n=e.renderExtraFooter,a=e.showNow,r=e.showTime,l=e.onSubmit,o=e.onNow,i=e.invalid,u=e.needConfirm,s=e.generateConfig,f=e.disabledDate,h=H.useContext(P),d=h.prefixCls,v=h.locale,m=h.button,g=s.getNow(),z=eN(s,r,g),p=(0,B.Z)(z,1)[0],w=null==n?void 0:n(t),M=f(g,{type:t}),Z="".concat(d,"-now"),b="".concat(Z,"-btn"),V=a&&H.createElement("li",{className:Z},H.createElement("a",{className:E()(b,M&&"".concat(b,"-disabled")),"aria-disabled":M,onClick:function(){M||o(p(g))}},"date"===c?v.today:v.now)),C=u&&H.createElement("li",{className:"".concat(d,"-ok")},H.createElement(void 0===m?"button":m,{disabled:i,onClick:l},v.ok)),x=(V||C)&&H.createElement("ul",{className:"".concat(d,"-ranges")},V,C);return w||x?H.createElement("div",{className:"".concat(d,"-footer")},w&&H.createElement("div",{className:"".concat(d,"-footer-extra")},w),x):null}function eW(e,t,c){return function(n,a){var r=n.findIndex(function(n){return ez(e,t,n,a,c)});if(-1===r)return[].concat((0,R.Z)(n),[a]);var l=(0,R.Z)(n);return l.splice(r,1),l}}var eY=H.createContext(null);function ej(){return H.useContext(eY)}function e_(e,t){var c=e.prefixCls,n=e.generateConfig,a=e.locale,r=e.disabledDate,l=e.minDate,o=e.maxDate,i=e.cellRender,u=e.hoverValue,s=e.hoverRangeValue,f=e.onHover,h=e.values,d=e.pickerValue,v=e.onSelect,m=e.prevIcon,g=e.nextIcon,z=e.superPrevIcon,p=e.superNextIcon,w=n.getNow();return[{now:w,values:h,pickerValue:d,prefixCls:c,disabledDate:r,minDate:l,maxDate:o,cellRender:i,hoverValue:u,hoverRangeValue:s,onHover:f,locale:a,generateConfig:n,onSelect:v,panelType:t,prevIcon:m,nextIcon:g,superPrevIcon:z,superNextIcon:p},w]}var eK=H.createContext({});function eU(e){for(var t=e.rowNum,c=e.colNum,n=e.baseDate,a=e.getCellDate,r=e.prefixColumn,l=e.rowClassName,o=e.titleFormat,i=e.getCellText,u=e.getCellClassName,s=e.headerCells,f=e.cellSelection,h=void 0===f||f,d=e.disabledDate,v=ej(),m=v.prefixCls,g=v.panelType,z=v.now,p=v.disabledDate,w=v.cellRender,M=v.onHover,Z=v.hoverValue,b=v.hoverRangeValue,V=v.generateConfig,C=v.values,x=v.locale,L=v.onSelect,R=d||p,S="".concat(m,"-cell"),k=H.useContext(eK).onCellDblClick,O=function(e){return C.some(function(t){return t&&ez(V,x,e,t,g)})},T=[],F=0;F1&&(r=u.addDate(r,-7)),r),k=u.getMonth(s),O=(void 0===p?Z:p)?function(e){var t=null==m?void 0:m(e,{type:"week"});return H.createElement("td",{key:"week",className:E()(M,"".concat(M,"-week"),(0,$.Z)({},"".concat(M,"-disabled"),t)),onClick:function(){t||g(e)},onMouseEnter:function(){t||null==z||z(e)},onMouseLeave:function(){t||null==z||z(null)}},H.createElement("div",{className:"".concat(M,"-inner")},u.locale.getWeek(i.locale,e)))}:null,T=[],F=i.shortWeekDays||(u.locale.getShortWeekDays?u.locale.getShortWeekDays(i.locale):[]);O&&T.push(H.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var I=0;I<7;I+=1)T.push(H.createElement("th",{key:I},F[(I+R)%7]));var A=i.shortMonths||(u.locale.getShortMonths?u.locale.getShortMonths(i.locale):[]),D=H.createElement("button",{type:"button","aria-label":"year panel",key:"year",onClick:function(){h("year",s)},tabIndex:-1,className:"".concat(l,"-year-btn")},eM(s,{locale:i,format:i.yearFormat,generateConfig:u})),P=H.createElement("button",{type:"button","aria-label":"month panel",key:"month",onClick:function(){h("month",s)},tabIndex:-1,className:"".concat(l,"-month-btn")},i.monthFormat?eM(s,{locale:i,format:i.monthFormat,generateConfig:u}):A[k]),N=i.monthBeforeYear?[P,D]:[D,P];return H.createElement(eY.Provider,{value:C},H.createElement("div",{className:E()(w,p&&"".concat(w,"-show-week"))},H.createElement(eG,{offset:function(e){return u.addMonth(s,e)},superOffset:function(e){return u.addYear(s,e)},onChange:f,getStart:function(e){return u.setDate(e,1)},getEnd:function(e){var t=u.setDate(e,1);return t=u.addMonth(t,1),u.addDate(t,-1)}},N),H.createElement(eU,(0,L.Z)({titleFormat:i.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:S,headerCells:T,getCellDate:function(e,t){return u.addDate(e,t)},getCellText:function(e){return eM(e,{locale:i,format:i.cellDateFormat,generateConfig:u})},getCellClassName:function(e){return(0,$.Z)((0,$.Z)({},"".concat(l,"-cell-in-view"),eh(u,e,s)),"".concat(l,"-cell-today"),ed(u,e,x))},prefixColumn:O,cellSelection:!Z}))))}var eJ=c(5110),e1=1/3;function e4(e){var t,c,n,a,r,l,o=e.units,i=e.value,u=e.optionalValue,s=e.type,f=e.onChange,h=e.onHover,d=e.onDblClick,v=e.changeOnScroll,m=ej(),g=m.prefixCls,z=m.cellRender,p=m.now,w=m.locale,M="".concat(g,"-time-panel-cell"),Z=H.useRef(null),b=H.useRef(),V=function(){clearTimeout(b.current)},C=(t=null!=i?i:u,c=H.useRef(!1),n=H.useRef(null),a=H.useRef(null),r=function(){I.Z.cancel(n.current),c.current=!1},l=H.useRef(),[(0,S.zX)(function(){var e=Z.current;if(a.current=null,l.current=0,e){var o=e.querySelector('[data-value="'.concat(t,'"]')),i=e.querySelector("li");o&&i&&function t(){r(),c.current=!0,l.current+=1;var u=e.scrollTop,s=i.offsetTop,f=o.offsetTop,h=f-s;if(0===f&&o!==i||!(0,eJ.Z)(e)){l.current<=5&&(n.current=(0,I.Z)(t));return}var d=u+(h-u)*e1,v=Math.abs(h-d);if(null!==a.current&&a.current1&&void 0!==arguments[1]&&arguments[1];ep(e),null==m||m(e),t&&ew(e)},eZ=function(e,t){ec(e),t&&eM(t),ew(t,e)},eH=H.useMemo(function(){if(Array.isArray(b)){var e,t,c=(0,B.Z)(b,2);e=c[0],t=c[1]}else e=b;return e||t?(e=e||t,t=t||e,a.isAfter(e,t)?[t,e]:[e,t]):null},[b,a]),eb=G(V,C,x),eV=(void 0===k?{}:k)[en]||e8[en]||eQ,eC=H.useContext(eK),ex=H.useMemo(function(){return(0,y.Z)((0,y.Z)({},eC),{},{hideHeader:O})},[eC,O]),eE="".concat(T,"-panel"),eL=_(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return H.createElement(eK.Provider,{value:ex},H.createElement("div",{ref:F,tabIndex:void 0===o?0:o,className:E()(eE,(0,$.Z)({},"".concat(eE,"-rtl"),"rtl"===r))},H.createElement(eV,(0,L.Z)({},eL,{showTime:U,prefixCls:T,locale:j,generateConfig:a,onModeChange:eZ,pickerValue:eg,onPickerValueChange:function(e){eM(e,!0)},value:ef[0],onSelect:function(e){if(ed(e),eM(e),et!==w){var t=["decade","year"],c=[].concat(t,["month"]),n={quarter:[].concat(t,["quarter"]),week:[].concat((0,R.Z)(c),["week"]),date:[].concat((0,R.Z)(c),["date"])}[w]||c,a=n.indexOf(et),r=n[a+1];r&&eZ(r,e)}},values:ef,cellRender:eb,hoverRangeValue:eH,hoverValue:Z}))))}));function e0(e){var t=e.picker,c=e.multiplePanel,n=e.pickerValue,a=e.onPickerValueChange,r=e.needConfirm,l=e.onSubmit,o=e.range,i=e.hoverValue,u=H.useContext(P),s=u.prefixCls,f=u.generateConfig,h=H.useCallback(function(e,c){return eR(f,t,e,c)},[f,t]),d=H.useMemo(function(){return h(n,1)},[n,h]),v={onCellDblClick:function(){r&&l()}},m="time"===t,g=(0,y.Z)((0,y.Z)({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:m});return(o?g.hoverRangeValue=i:g.hoverValue=i,c)?H.createElement("div",{className:"".concat(s,"-panels")},H.createElement(eK.Provider,{value:(0,y.Z)((0,y.Z)({},v),{},{hideNext:!0})},H.createElement(e6,g)),H.createElement(eK.Provider,{value:(0,y.Z)((0,y.Z)({},v),{},{hidePrev:!0})},H.createElement(e6,(0,L.Z)({},g,{pickerValue:d,onPickerValueChange:function(e){a(h(e,-1))}})))):H.createElement(eK.Provider,{value:(0,y.Z)({},v)},H.createElement(e6,g))}function e5(e){return"function"==typeof e?e():e}function e7(e){var t=e.prefixCls,c=e.presets,n=e.onClick,a=e.onHover;return c.length?H.createElement("div",{className:"".concat(t,"-presets")},H.createElement("ul",null,c.map(function(e,t){var c=e.label,r=e.value;return H.createElement("li",{key:t,onClick:function(){n(e5(r))},onMouseEnter:function(){a(e5(r))},onMouseLeave:function(){a(null)}},c)}))):null}function e9(e){var t=e.panelRender,c=e.internalMode,n=e.picker,a=e.showNow,r=e.range,l=e.multiple,o=e.activeOffset,i=void 0===o?0:o,u=e.placement,s=e.presets,f=e.onPresetHover,h=e.onPresetSubmit,d=e.onFocus,v=e.onBlur,m=e.onPanelMouseDown,g=e.direction,z=e.value,p=e.onSelect,w=e.isInvalid,M=e.defaultOpenValue,Z=e.onOk,b=e.onSubmit,V=H.useContext(P).prefixCls,C="".concat(V,"-panel"),x="rtl"===g,R=H.useRef(null),y=H.useRef(null),S=H.useState(0),k=(0,B.Z)(S,2),O=k[0],T=k[1],F=H.useState(0),I=(0,B.Z)(F,2),N=I[0],q=I[1];function W(e){return e.filter(function(e){return e})}H.useEffect(function(){if(r){var e,t=(null===(e=R.current)||void 0===e?void 0:e.offsetWidth)||0;i<=O-t?q(0):q(i+t-O)}},[O,i,r]);var j=H.useMemo(function(){return W(Y(z))},[z]),_="time"===n&&!j.length,K=H.useMemo(function(){return _?W([M]):j},[_,j,M]),U=_?M:j,X=H.useMemo(function(){return!K.length||K.some(function(e){return w(e)})},[K,w]),G=H.createElement("div",{className:"".concat(V,"-panel-layout")},H.createElement(e7,{prefixCls:V,presets:s,onClick:h,onHover:f}),H.createElement("div",null,H.createElement(e0,(0,L.Z)({},e,{value:U})),H.createElement(eq,(0,L.Z)({},e,{showNow:!l&&a,invalid:X,onSubmit:function(){_&&p(M),Z(),b()}}))));t&&(G=t(G));var Q="marginLeft",J="marginRight",ee=H.createElement("div",{onMouseDown:m,tabIndex:-1,className:E()("".concat(C,"-container"),"".concat(V,"-").concat(c,"-panel-container")),style:(0,$.Z)((0,$.Z)({},x?J:Q,N),x?Q:J,"auto"),onFocus:d,onBlur:v},G);if(r){var et=D(A(u,x),x);ee=H.createElement("div",{onMouseDown:m,ref:y,className:E()("".concat(V,"-range-wrapper"),"".concat(V,"-").concat(n,"-range-wrapper"))},H.createElement("div",{ref:R,className:"".concat(V,"-range-arrow"),style:(0,$.Z)({},et,i)}),H.createElement(eA.Z,{onResize:function(e){e.offsetWidth&&T(e.offsetWidth)}},ee))}return ee}var te=c(45987);function tt(e,t){var c=e.format,n=e.maskFormat,a=e.generateConfig,r=e.locale,l=e.preserveInvalidOnBlur,o=e.inputReadOnly,i=e.required,u=e["aria-required"],s=e.onSubmit,f=e.onFocus,h=e.onBlur,d=e.onInputChange,v=e.onInvalid,m=e.open,g=e.onOpenChange,z=e.onKeyDown,p=e.onChange,w=e.activeHelp,M=e.name,Z=e.autoComplete,b=e.id,V=e.value,C=e.invalid,x=e.placeholder,E=e.disabled,L=e.activeIndex,R=e.allHelp,B=e.picker,S=function(e,t){var c=a.locale.parse(r.locale,e,[t]);return c&&a.isValidate(c)?c:null},k=c[0],O=H.useCallback(function(e){return eM(e,{locale:r,format:k,generateConfig:a})},[r,a,k]),$=H.useMemo(function(){return V.map(O)},[V,O]),F=H.useMemo(function(){return Math.max("time"===B?8:10,"function"==typeof k?k(a.getNow()).length:k.length)+2},[k,B,a]),I=function(e){for(var t=0;t=r&&e<=l)return n;var o=Math.min(Math.abs(e-r),Math.abs(e-l));o0?n:a));var i=a-n+1;return String(n+(i+(o+e)-n)%i)};switch(t){case"Backspace":case"Delete":c="",n=r;break;case"ArrowLeft":c="",o(-1);break;case"ArrowRight":c="",o(1);break;case"ArrowUp":c="",n=i(1);break;case"ArrowDown":c="",n=i(-1);break;default:isNaN(Number(t))||(n=c=_+t)}null!==c&&(K(c),c.length>=a&&(o(1),K(""))),null!==n&&eh((en.slice(0,eu)+W(n,a)+en.slice(es)).slice(0,l.length)),ec({})},onMouseDown:function(){ed.current=!0},onMouseUp:function(e){var t=e.target.selectionStart;Q(el.getMaskCellIndex(t)),ec({}),null==Z||Z(e),ed.current=!1},onPaste:function(e){var t=e.clipboardData.getData("text");o(t)&&eh(t)}}:{};return H.createElement("div",{ref:ea,className:E()(R,(0,$.Z)((0,$.Z)({},"".concat(R,"-active"),c&&a),"".concat(R,"-placeholder"),u))},H.createElement(x,(0,L.Z)({ref:er,"aria-invalid":m,autoComplete:"off"},z,{onKeyDown:em,onBlur:ev},ez,{value:en,onChange:function(e){if(!l){var t=e.target.value;ef(t),q(t),i(t)}}})),H.createElement(tl,{type:"suffix",icon:r}),g)}),tv=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus"],tm=["index"],tg=H.forwardRef(function(e,t){var c=e.id,n=e.clearIcon,a=e.suffixIcon,r=e.separator,l=void 0===r?"~":r,o=e.activeIndex,i=(e.activeHelp,e.allHelp,e.focused),u=(e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig,e.placeholder),s=e.className,f=e.style,h=e.onClick,d=e.onClear,v=e.value,m=(e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),g=e.invalid,z=(e.inputReadOnly,e.direction),p=(e.onOpenChange,e.onActiveOffset),w=e.placement,M=e.onMouseDown,Z=(e.required,e["aria-required"],e.autoFocus),b=(0,te.Z)(e,tv),V="rtl"===z,C=H.useContext(P).prefixCls,x=H.useMemo(function(){if("string"==typeof c)return[c];var e=c||{};return[e.start,e.end]},[c]),R=H.useRef(),k=H.useRef(),O=H.useRef(),T=function(e){var t;return null===(t=[k,O][e])||void 0===t?void 0:t.current};H.useImperativeHandle(t,function(){return{nativeElement:R.current,focus:function(e){if("object"===(0,et.Z)(e)){var t,c,n=e||{},a=n.index,r=void 0===a?0:a,l=(0,te.Z)(n,tm);null===(c=T(r))||void 0===c||c.focus(l)}else null===(t=T(null!=e?e:0))||void 0===t||t.focus()},blur:function(){var e,t;null===(e=T(0))||void 0===e||e.blur(),null===(t=T(1))||void 0===t||t.blur()}}});var F=tn(b),I=H.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),N=tt((0,y.Z)((0,y.Z)({},e),{},{id:x,placeholder:I})),q=(0,B.Z)(N,1)[0],W=A(w,V),Y=D(W,V),j=null==W?void 0:W.toLowerCase().endsWith("right"),_=H.useState({position:"absolute",width:0}),K=(0,B.Z)(_,2),U=K[0],X=K[1],G=(0,S.zX)(function(){var e=T(o);if(e){var t=e.nativeElement,c=t.offsetWidth,n=t.offsetLeft,a=t.offsetParent,r=(null==a?void 0:a.offsetWidth)||0,l=j?r-c-n:n;X(function(e){return(0,y.Z)((0,y.Z)({},e),{},(0,$.Z)({width:c},Y,l))}),p(l)}});H.useEffect(function(){G()},[o]);var Q=n&&(v[0]&&!m[0]||v[1]&&!m[1]),J=Z&&!m[0],ee=Z&&!J&&!m[1];return H.createElement(eA.Z,{onResize:G},H.createElement("div",(0,L.Z)({},F,{className:E()(C,"".concat(C,"-range"),(0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)({},"".concat(C,"-focused"),i),"".concat(C,"-disabled"),m.every(function(e){return e})),"".concat(C,"-invalid"),g.some(function(e){return e})),"".concat(C,"-rtl"),V),s),style:f,ref:R,onClick:h,onMouseDown:function(e){var t=e.target;t!==k.current.inputElement&&t!==O.current.inputElement&&e.preventDefault(),null==M||M(e)}}),H.createElement(td,(0,L.Z)({ref:k},q(0),{autoFocus:J,"date-range":"start"})),H.createElement("div",{className:"".concat(C,"-range-separator")},l),H.createElement(td,(0,L.Z)({ref:O},q(1),{autoFocus:ee,"date-range":"end"})),H.createElement("div",{className:"".concat(C,"-active-bar"),style:U}),H.createElement(tl,{type:"suffix",icon:a}),Q&&H.createElement(to,{icon:n,onClear:d})))});function tz(e,t){var c=null!=e?e:t;return Array.isArray(c)?c:[c,c]}function tp(e){return 1===e?"end":"start"}var tw=H.forwardRef(function(e,t){var c,n=eb(e,function(){var t=e.disabled,c=e.allowEmpty;return{disabled:tz(t,!1),allowEmpty:tz(c,!1)}}),a=(0,B.Z)(n,6),r=a[0],l=a[1],o=a[2],i=a[3],u=a[4],s=a[5],f=r.prefixCls,h=r.styles,d=r.classNames,v=r.placement,m=r.defaultValue,g=r.value,z=r.needConfirm,p=r.onKeyDown,w=r.disabled,M=r.allowEmpty,Z=r.disabledDate,b=r.minDate,V=r.maxDate,C=r.defaultOpen,x=r.open,E=r.onOpenChange,$=r.locale,F=r.generateConfig,I=r.picker,A=r.showNow,D=r.showToday,N=r.showTime,W=r.mode,_=r.onPanelChange,K=r.onCalendarChange,J=r.onOk,ee=r.defaultPickerValue,et=r.pickerValue,ec=r.onPickerValueChange,en=r.inputReadOnly,ea=r.suffixIcon,er=r.onFocus,el=r.onBlur,eo=r.presets,ei=r.ranges,eu=r.components,es=r.cellRender,ef=r.dateRender,eh=r.monthCellRender,ed=r.onClick,ev=eC(t),em=eV(x,C,w,E),eg=(0,B.Z)(em,2),ep=eg[0],ew=eg[1],eM=function(e,t){(w.some(function(e){return!e})||!e)&&ew(e,t)},eZ=e$(F,$,i,!0,!1,m,g,K,J),eH=(0,B.Z)(eZ,5),eE=eH[0],eR=eH[1],ey=eH[2],eS=eH[3],ek=eH[4],eO=ey(),eT=eL(w,M,ep),eA=(0,B.Z)(eT,7),eD=eA[0],eP=eA[1],eN=eA[2],eq=eA[3],eW=eA[4],eY=eA[5],ej=eA[6],e_=function(e,t){eP(!0),null==er||er(e,{range:tp(null!=t?t:eq)})},eK=function(e,t){eP(!1),null==el||el(e,{range:tp(null!=t?t:eq)})},eU=H.useMemo(function(){if(!N)return null;var e=N.disabledTime,t=e?function(t){return e(t,tp(eq),{from:U(eO,ej,eq)})}:void 0;return(0,y.Z)((0,y.Z)({},N),{},{disabledTime:t})},[N,eq,eO,ej]),eX=(0,S.C8)([I,I],{value:W}),eG=(0,B.Z)(eX,2),eQ=eG[0],eJ=eG[1],e1=eQ[eq]||I,e4="date"===e1&&eU?"datetime":e1,e2=e4===I&&"time"!==e4,e3=eI(I,e1,A,D,!0),e8=eF(r,eE,eR,ey,eS,w,i,eD,ep,s),e6=(0,B.Z)(e8,2),e0=e6[0],e5=e6[1],e7=(c=ej[ej.length-1],function(e,t){var n=(0,B.Z)(eO,2),a=n[0],r=n[1],l=(0,y.Z)((0,y.Z)({},t),{},{from:U(eO,ej)});return!!(1===c&&w[0]&&a&&!ez(F,$,a,e,l.type)&&F.isAfter(a,e)||0===c&&w[1]&&r&&!ez(F,$,r,e,l.type)&&F.isAfter(e,r))||(null==Z?void 0:Z(e,l))}),te=Q(eO,s,M),tt=(0,B.Z)(te,2),tc=tt[0],tn=tt[1],ta=eB(F,$,eO,eQ,ep,eq,l,e2,ee,et,null==eU?void 0:eU.defaultOpenValue,ec,b,V),tr=(0,B.Z)(ta,2),tl=tr[0],to=tr[1],ti=(0,S.zX)(function(e,t,c){var n=j(eQ,eq,t);if((n[0]!==eQ[0]||n[1]!==eQ[1])&&eJ(n),_&&!1!==c){var a=(0,R.Z)(eO);e&&(a[eq]=e),_(a,n)}}),tu=function(e,t){return j(eO,t,e)},ts=function(e,t){var c=eO;e&&(c=tu(e,eq));var n=eY(c);eS(c),e0(eq,null===n),null===n?eM(!1,{force:!0}):t||ev.current.focus({index:n})},tf=H.useState(null),th=(0,B.Z)(tf,2),td=th[0],tv=th[1],tm=H.useState(null),tw=(0,B.Z)(tm,2),tM=tw[0],tZ=tw[1],tH=H.useMemo(function(){return tM||eO},[eO,tM]);H.useEffect(function(){ep||tZ(null)},[ep]);var tb=H.useState(0),tV=(0,B.Z)(tb,2),tC=tV[0],tx=tV[1],tE=ex(eo,ei),tL=G(es,ef,eh,tp(eq)),tR=eO[eq]||null,ty=(0,S.zX)(function(e){return s(e,{activeIndex:eq})}),tB=H.useMemo(function(){var e=(0,T.Z)(r,!1);return(0,O.Z)(r,[].concat((0,R.Z)(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]))},[r]),tS=H.createElement(e9,(0,L.Z)({},tB,{showNow:e3,showTime:eU,range:!0,multiplePanel:e2,activeOffset:tC,placement:v,disabledDate:e7,onFocus:function(e){eM(!0),e_(e)},onBlur:eK,onPanelMouseDown:function(){eN("panel")},picker:I,mode:e1,internalMode:e4,onPanelChange:ti,format:u,value:tR,isInvalid:ty,onChange:null,onSelect:function(e){eS(j(eO,eq,e)),z||o||l!==e4||ts(e)},pickerValue:tl,defaultOpenValue:Y(null==N?void 0:N.defaultOpenValue)[eq],onPickerValueChange:to,hoverValue:tH,onHover:function(e){tZ(e?tu(e,eq):null),tv("cell")},needConfirm:z,onSubmit:ts,onOk:ek,presets:tE,onPresetHover:function(e){tZ(e),tv("preset")},onPresetSubmit:function(e){e5(e)&&eM(!1,{force:!0})},onNow:function(e){ts(e)},cellRender:tL})),tk=H.useMemo(function(){return{prefixCls:f,locale:$,generateConfig:F,button:eu.button,input:eu.input}},[f,$,F,eu.button,eu.input]);return(0,k.Z)(function(){ep&&void 0!==eq&&ti(null,I,!1)},[ep,eq,I]),(0,k.Z)(function(){var e=eN();ep||"input"!==e||(eM(!1),ts(null,!0)),ep||!o||z||"panel"!==e||(eM(!0),ts())},[ep]),H.createElement(P.Provider,{value:tk},H.createElement(q,(0,L.Z)({},X(r),{popupElement:tS,popupStyle:h.popup,popupClassName:d.popup,visible:ep,onClose:function(){eM(!1)},range:!0}),H.createElement(tg,(0,L.Z)({},r,{ref:ev,suffixIcon:ea,activeIndex:eD||ep?eq:null,activeHelp:!!tM,allHelp:!!tM&&"preset"===td,focused:eD,onFocus:function(e,t){eN("input"),eM(!0,{inherit:!0}),eq!==t&&ep&&!z&&o&&ts(null,!0),eW(t),e_(e,t)},onBlur:function(e,t){eM(!1),z||"input"!==eN()||e0(eq,null===eY(eO)),eK(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&ts(null,!0),null==p||p(e,t)},onSubmit:ts,value:tH,maskFormat:u,onChange:function(e,t){eS(tu(e,t))},onInputChange:function(){eN("input")},format:i,inputReadOnly:en,disabled:w,open:ep,onOpenChange:eM,onClick:function(e){var t,c=e.target.getRootNode();if(!ev.current.nativeElement.contains(null!==(t=c.activeElement)&&void 0!==t?t:document.activeElement)){var n=w.findIndex(function(e){return!e});n>=0&&ev.current.focus({index:n})}eM(!0),null==ed||ed(e)},onClear:function(){e5(null),eM(!1,{force:!0})},invalid:tc,onInvalid:tn,onActiveOffset:tx}))))}),tM=c(39983);function tZ(e){var t=e.prefixCls,c=e.value,n=e.onRemove,a=e.removeIcon,r=void 0===a?"\xd7":a,l=e.formatDate,o=e.disabled,i=e.maxTagCount,u=e.placeholder,s="".concat(t,"-selection");function f(e,t){return H.createElement("span",{className:E()("".concat(s,"-item")),title:"string"==typeof e?e:null},H.createElement("span",{className:"".concat(s,"-item-content")},e),!o&&t&&H.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:t,className:"".concat(s,"-item-remove")},r))}return H.createElement("div",{className:"".concat(t,"-selector")},H.createElement(tM.Z,{prefixCls:"".concat(s,"-overflow"),data:c,renderItem:function(e){return f(l(e),function(t){t&&t.stopPropagation(),n(e)})},renderRest:function(e){return f("+ ".concat(e.length," ..."))},itemKey:function(e){return l(e)},maxCount:i}),!c.length&&H.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}var tH=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"],tb=H.forwardRef(function(e,t){e.id;var c=e.open,n=e.clearIcon,a=e.suffixIcon,r=(e.activeHelp,e.allHelp,e.focused),l=(e.onFocus,e.onBlur,e.onKeyDown,e.locale),o=e.generateConfig,i=e.placeholder,u=e.className,s=e.style,f=e.onClick,h=e.onClear,d=e.internalPicker,v=e.value,m=e.onChange,g=e.onSubmit,z=(e.onInputChange,e.multiple),p=e.maxTagCount,w=(e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),M=e.invalid,Z=(e.inputReadOnly,e.direction),b=(e.onOpenChange,e.onMouseDown),V=(e.required,e["aria-required"],e.autoFocus),C=e.removeIcon,x=(0,te.Z)(e,tH),R=H.useContext(P).prefixCls,S=H.useRef(),k=H.useRef();H.useImperativeHandle(t,function(){return{nativeElement:S.current,focus:function(e){var t;null===(t=k.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=k.current)||void 0===e||e.blur()}}});var O=tn(x),T=tt((0,y.Z)((0,y.Z)({},e),{},{onChange:function(e){m([e])}}),function(e){return{value:e.valueTexts[0]||"",active:r}}),F=(0,B.Z)(T,2),I=F[0],A=F[1],D=!!(n&&v.length&&!w),N=z?H.createElement(H.Fragment,null,H.createElement(tZ,{prefixCls:R,value:v,onRemove:function(e){m(v.filter(function(t){return t&&!ez(o,l,t,e,d)})),c||g()},formatDate:A,maxTagCount:p,disabled:w,removeIcon:C,placeholder:i}),H.createElement("input",{className:"".concat(R,"-multiple-input"),value:v.map(A).join(","),ref:k,readOnly:!0,autoFocus:V}),H.createElement(tl,{type:"suffix",icon:a}),D&&H.createElement(to,{icon:n,onClear:h})):H.createElement(td,(0,L.Z)({ref:k},I(),{autoFocus:V,suffixIcon:a,clearIcon:D&&H.createElement(to,{icon:n,onClear:h}),showActiveCls:!1}));return H.createElement("div",(0,L.Z)({},O,{className:E()(R,(0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)({},"".concat(R,"-multiple"),z),"".concat(R,"-focused"),r),"".concat(R,"-disabled"),w),"".concat(R,"-invalid"),M),"".concat(R,"-rtl"),"rtl"===Z),u),style:s,ref:S,onClick:f,onMouseDown:function(e){var t;e.target!==(null===(t=k.current)||void 0===t?void 0:t.inputElement)&&e.preventDefault(),null==b||b(e)}}),N)}),tV=H.forwardRef(function(e,t){var c=eb(e),n=(0,B.Z)(c,6),a=n[0],r=n[1],l=n[2],o=n[3],i=n[4],u=n[5],s=a.prefixCls,f=a.styles,h=a.classNames,d=a.order,v=a.defaultValue,m=a.value,g=a.needConfirm,z=a.onChange,p=a.onKeyDown,w=a.disabled,M=a.disabledDate,Z=a.minDate,b=a.maxDate,V=a.defaultOpen,C=a.open,x=a.onOpenChange,E=a.locale,$=a.generateConfig,F=a.picker,I=a.showNow,A=a.showToday,D=a.showTime,N=a.mode,W=a.onPanelChange,j=a.onCalendarChange,_=a.onOk,K=a.multiple,U=a.defaultPickerValue,J=a.pickerValue,ee=a.onPickerValueChange,et=a.inputReadOnly,ec=a.suffixIcon,en=a.removeIcon,ea=a.onFocus,er=a.onBlur,el=a.presets,eo=a.components,ei=a.cellRender,eu=a.dateRender,es=a.monthCellRender,ef=a.onClick,eh=eC(t);function ed(e){return null===e?null:K?e:e[0]}var ev=eW($,E,r),em=eV(C,V,[w],x),eg=(0,B.Z)(em,2),ez=eg[0],ep=eg[1],ew=e$($,E,o,!1,d,v,m,function(e,t,c){if(j){var n=(0,y.Z)({},c);delete n.range,j(ed(e),ed(t),n)}},function(e){null==_||_(ed(e))}),eM=(0,B.Z)(ew,5),eZ=eM[0],eH=eM[1],eE=eM[2],eR=eM[3],ey=eM[4],eS=eE(),ek=eL([w]),eO=(0,B.Z)(ek,4),eT=eO[0],eA=eO[1],eD=eO[2],eP=eO[3],eN=function(e){eA(!0),null==ea||ea(e,{})},eq=function(e){eA(!1),null==er||er(e,{})},eY=(0,S.C8)(F,{value:N}),ej=(0,B.Z)(eY,2),e_=ej[0],eK=ej[1],eU="date"===e_&&D?"datetime":e_,eX=eI(F,e_,I,A),eG=z&&function(e,t){z(ed(e),ed(t))},eQ=eF((0,y.Z)((0,y.Z)({},a),{},{onChange:eG}),eZ,eH,eE,eR,[],o,eT,ez,u),eJ=(0,B.Z)(eQ,2)[1],e1=Q(eS,u),e4=(0,B.Z)(e1,2),e2=e4[0],e3=e4[1],e8=H.useMemo(function(){return e2.some(function(e){return e})},[e2]),e6=eB($,E,eS,[e_],ez,eP,r,!1,U,J,Y(null==D?void 0:D.defaultOpenValue),function(e,t){if(ee){var c=(0,y.Z)((0,y.Z)({},t),{},{mode:t.mode[0]});delete c.range,ee(e[0],c)}},Z,b),e0=(0,B.Z)(e6,2),e5=e0[0],e7=e0[1],te=(0,S.zX)(function(e,t,c){eK(t),W&&!1!==c&&W(e||eS[eS.length-1],t)}),tt=function(){eJ(eE()),ep(!1,{force:!0})},tc=H.useState(null),tn=(0,B.Z)(tc,2),ta=tn[0],tr=tn[1],tl=H.useState(null),to=(0,B.Z)(tl,2),ti=to[0],tu=to[1],ts=H.useMemo(function(){var e=[ti].concat((0,R.Z)(eS)).filter(function(e){return e});return K?e:e.slice(0,1)},[eS,ti,K]),tf=H.useMemo(function(){return!K&&ti?[ti]:eS.filter(function(e){return e})},[eS,ti,K]);H.useEffect(function(){ez||tu(null)},[ez]);var th=ex(el),td=function(e){eJ(K?ev(eE(),e):[e])&&!K&&ep(!1,{force:!0})},tv=G(ei,eu,es),tm=H.useMemo(function(){var e=(0,T.Z)(a,!1),t=(0,O.Z)(a,[].concat((0,R.Z)(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,y.Z)((0,y.Z)({},t),{},{multiple:a.multiple})},[a]),tg=H.createElement(e9,(0,L.Z)({},tm,{showNow:eX,showTime:D,disabledDate:M,onFocus:function(e){ep(!0),eN(e)},onBlur:eq,picker:F,mode:e_,internalMode:eU,onPanelChange:te,format:i,value:eS,isInvalid:u,onChange:null,onSelect:function(e){eD("panel"),eR(K?ev(eE(),e):[e]),g||l||r!==eU||tt()},pickerValue:e5,defaultOpenValue:null==D?void 0:D.defaultOpenValue,onPickerValueChange:e7,hoverValue:ts,onHover:function(e){tu(e),tr("cell")},needConfirm:g,onSubmit:tt,onOk:ey,presets:th,onPresetHover:function(e){tu(e),tr("preset")},onPresetSubmit:td,onNow:function(e){td(e)},cellRender:tv})),tz=H.useMemo(function(){return{prefixCls:s,locale:E,generateConfig:$,button:eo.button,input:eo.input}},[s,E,$,eo.button,eo.input]);return(0,k.Z)(function(){ez&&void 0!==eP&&te(null,F,!1)},[ez,eP,F]),(0,k.Z)(function(){var e=eD();ez||"input"!==e||(ep(!1),tt()),ez||!l||g||"panel"!==e||(ep(!0),tt())},[ez]),H.createElement(P.Provider,{value:tz},H.createElement(q,(0,L.Z)({},X(a),{popupElement:tg,popupStyle:f.popup,popupClassName:h.popup,visible:ez,onClose:function(){ep(!1)}}),H.createElement(tb,(0,L.Z)({},a,{ref:eh,suffixIcon:ec,removeIcon:en,activeHelp:!!ti,allHelp:!!ti&&"preset"===ta,focused:eT,onFocus:function(e){eD("input"),ep(!0,{inherit:!0}),eN(e)},onBlur:function(e){ep(!1),eq(e)},onKeyDown:function(e,t){"Tab"===e.key&&tt(),null==p||p(e,t)},onSubmit:tt,value:tf,maskFormat:i,onChange:function(e){eR(e)},onInputChange:function(){eD("input")},internalPicker:r,format:o,inputReadOnly:et,disabled:w,open:ez,onOpenChange:ep,onClick:function(e){w||eh.current.nativeElement.contains(document.activeElement)||eh.current.focus(),ep(!0),null==ef||ef(e)},onClear:function(){eJ(null),ep(!1,{force:!0})},invalid:e8,onInvalid:function(e){e3(e,0)}}))))}),tC=c(89942),tx=c(87263),tE=c(9708),tL=c(53124),tR=c(98866),ty=c(35792),tB=c(98675),tS=c(65223),tk=c(27833),tO=c(10110),tT=c(4173),t$=c(71191),tF=c(25446),tI=c(47673),tA=c(20353),tD=c(14747),tP=c(80110),tN=c(67771),tq=c(33297),tW=c(79511),tY=c(83559),tj=c(83262),t_=c(16928);let tK=(e,t)=>{let{componentCls:c,controlHeight:n}=e,a=t?`${c}-${t}`:"",r=(0,t_.gp)(e);return[{[`${c}-multiple${a}`]:{paddingBlock:r.containerPadding,paddingInlineStart:r.basePadding,minHeight:n,[`${c}-selection-item`]:{height:r.itemHeight,lineHeight:(0,tF.bf)(r.itemLineHeight)}}}]};var tU=e=>{let{componentCls:t,calc:c,lineWidth:n}=e,a=(0,tj.IX)(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),r=(0,tj.IX)(e,{fontHeight:c(e.multipleItemHeightLG).sub(c(n).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[tK(a,"small"),tK(e),tK(r,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},(0,t_._z)(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},tX=c(10274);let tG=e=>{let{pickerCellCls:t,pickerCellInnerCls:c,cellHeight:n,borderRadiusSM:a,motionDurationMid:r,cellHoverBg:l,lineWidth:o,lineType:i,colorPrimary:u,cellActiveWithRangeBg:s,colorTextLightSolid:f,colorTextDisabled:h,cellBgDisabled:d,colorFillSecondary:v}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:n,transform:"translateY(-50%)",content:'""'},[c]:{position:"relative",zIndex:2,display:"inline-block",minWidth:n,height:n,lineHeight:(0,tF.bf)(n),borderRadius:a,transition:`background ${r}`},[`&:hover:not(${t}-in-view), + `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:n}}}},P=e=>{let{componentCls:t,paddingSM:c}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:c}}}}}};var N=(0,$.I$)("Collapse",e=>{let t=(0,F.IX)(e,{collapseHeaderPaddingSM:`${(0,k.bf)(e.paddingXS)} ${(0,k.bf)(e.paddingSM)}`,collapseHeaderPaddingLG:`${(0,k.bf)(e.padding)} ${(0,k.bf)(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[I(t),D(t),P(t),A(t),(0,T.Z)(t)]},e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}));let q=n.forwardRef((e,t)=>{let{getPrefixCls:c,direction:r,collapse:o}=n.useContext(y.E_),{prefixCls:i,className:u,rootClassName:s,style:f,bordered:h=!0,ghost:d,size:m,expandIconPosition:g="start",children:z,expandIcon:p}=e,w=(0,B.Z)(e=>{var t;return null!==(t=null!=m?m:e)&&void 0!==t?t:"middle"}),M=c("collapse",i),Z=c(),[H,b,V]=N(M),C=n.useMemo(()=>"left"===g?"start":"right"===g?"end":g,[g]),S=null!=p?p:null==o?void 0:o.expandIcon,k=n.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="function"==typeof S?S(e):n.createElement(a.Z,{rotate:e.isActive?90:void 0,"aria-label":e.isActive?"expanded":"collapsed"});return(0,R.Tm)(t,()=>{var e;return{className:l()(null===(e=null==t?void 0:t.props)||void 0===e?void 0:e.className,`${M}-arrow`)}})},[S,M]),O=l()(`${M}-icon-position-${C}`,{[`${M}-borderless`]:!h,[`${M}-rtl`]:"rtl"===r,[`${M}-ghost`]:!!d,[`${M}-${w}`]:"middle"!==w},null==o?void 0:o.className,u,s,b,V),T=Object.assign(Object.assign({},(0,L.Z)(Z)),{motionAppear:!1,leavedClassName:`${M}-content-hidden`}),$=n.useMemo(()=>z?(0,v.Z)(z).map((e,t)=>{var c,n;if(null===(c=e.props)||void 0===c?void 0:c.disabled){let c=null!==(n=e.key)&&void 0!==n?n:String(t),{disabled:a,collapsible:r}=e.props,l=Object.assign(Object.assign({},(0,E.Z)(e.props,["disabled"])),{key:c,collapsible:null!=r?r:a?"disabled":void 0});return(0,R.Tm)(e,l)}return e}):null,[z]);return H(n.createElement(x,Object.assign({ref:t,openMotion:T},(0,E.Z)(e,["rootClassName"]),{expandIcon:k,prefixCls:M,className:O,style:Object.assign(Object.assign({},null==o?void 0:o.style),f)}),$))});var W=Object.assign(q,{Panel:S})},64499:function(e,t,c){"use strict";c.d(t,{default:function(){return cb}});var n=c(27484),a=c.n(n),r=c(80334),l=c(6833),o=c.n(l),i=c(96036),u=c.n(i),s=c(55183),f=c.n(s),h=c(172),d=c.n(h),v=c(28734),m=c.n(v),g=c(10285),z=c.n(g);a().extend(z()),a().extend(m()),a().extend(o()),a().extend(u()),a().extend(f()),a().extend(d()),a().extend(function(e,t){var c=t.prototype,n=c.format;c.format=function(e){var t=(e||"").replace("Wo","wo");return n.bind(this)(t)}});var p={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},w=function(e){return p[e]||e.split("_")[0]},M=function(){(0,r.ET)(!1,"Not match any format. Please help to fire a issue about this.")},Z=c(8745),H=c(67294),b=c(20841),V=c(24019),C=c(32198),x=c(93967),E=c.n(x),L=c(87462),R=c(74902),y=c(1413),B=c(97685),S=c(56790),k=c(8410),O=c(98423),T=c(64217),$=c(4942),F=c(40228);c(15105);var I=c(75164);function A(e,t){return void 0!==e?e:t?"bottomRight":"bottomLeft"}function D(e,t){var c=A(e,t),n=(null==c?void 0:c.toLowerCase().endsWith("right"))?"insetInlineEnd":"insetInlineStart";return t&&(n=["insetInlineStart","insetInlineEnd"].find(function(e){return e!==n})),n}var P=H.createContext(null),N={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}},q=function(e){var t=e.popupElement,c=e.popupStyle,n=e.popupClassName,a=e.popupAlign,r=e.transitionName,l=e.getPopupContainer,o=e.children,i=e.range,u=e.placement,s=e.builtinPlacements,f=e.direction,h=e.visible,d=e.onClose,v=H.useContext(P).prefixCls,m="".concat(v,"-dropdown"),g=A(u,"rtl"===f);return H.createElement(F.Z,{showAction:[],hideAction:["click"],popupPlacement:g,builtinPlacements:void 0===s?N:s,prefixCls:m,popupTransitionName:r,popup:t,popupAlign:a,popupVisible:h,popupClassName:E()(n,(0,$.Z)((0,$.Z)({},"".concat(m,"-range"),i),"".concat(m,"-rtl"),"rtl"===f)),popupStyle:c,stretch:"minWidth",getPopupContainer:l,onPopupVisibleChange:function(e){e||d()}},o)};function W(e,t){for(var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",n=String(e);n.length2&&void 0!==arguments[2]?arguments[2]:[],n=H.useState([!1,!1]),a=(0,B.Z)(n,2),r=a[0],l=a[1];return[H.useMemo(function(){return r.map(function(n,a){if(n)return!0;var r=e[a];return!!r&&!!(!c[a]&&!r||r&&t(r,{activeIndex:a}))})},[e,r,t,c]),function(e,t){l(function(c){return j(c,t,e)})}]}function J(e,t,c,n,a){var r="",l=[];return e&&l.push(a?"hh":"HH"),t&&l.push("mm"),c&&l.push("ss"),r=l.join(":"),n&&(r+=".SSS"),a&&(r+=" A"),r}function ee(e,t){var c=t.showHour,n=t.showMinute,a=t.showSecond,r=t.showMillisecond,l=t.use12Hours;return H.useMemo(function(){var t,o,i,u,s,f,h,d,v,m,g,z,p;return t=e.fieldDateTimeFormat,o=e.fieldDateFormat,i=e.fieldTimeFormat,u=e.fieldMonthFormat,s=e.fieldYearFormat,f=e.fieldWeekFormat,h=e.fieldQuarterFormat,d=e.yearFormat,v=e.cellYearFormat,m=e.cellQuarterFormat,g=e.dayFormat,z=e.cellDateFormat,p=J(c,n,a,r,l),(0,y.Z)((0,y.Z)({},e),{},{fieldDateTimeFormat:t||"YYYY-MM-DD ".concat(p),fieldDateFormat:o||"YYYY-MM-DD",fieldTimeFormat:i||p,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:s||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:h||"YYYY-[Q]Q",yearFormat:d||"YYYY",cellYearFormat:v||"YYYY",cellQuarterFormat:m||"[Q]Q",cellDateFormat:z||g||"D"})},[e,c,n,a,r,l])}var et=c(71002);function ec(e,t,c){return null!=c?c:t.some(function(t){return e.includes(t)})}var en=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function ea(e,t,c,n){return[e,t,c,n].some(function(e){return void 0!==e})}function er(e,t,c,n,a){var r=t,l=c,o=n;if(e||r||l||o||a){if(e){var i,u,s,f=[r,l,o].some(function(e){return!1===e}),h=[r,l,o].some(function(e){return!0===e}),d=!!f||!h;r=null!==(i=r)&&void 0!==i?i:d,l=null!==(u=l)&&void 0!==u?u:d,o=null!==(s=o)&&void 0!==s?s:d}}else r=!0,l=!0,o=!0;return[r,l,o,a]}function el(e){var t,c,n,a,r=e.showTime,l=(t=_(e,en),c=e.format,n=e.picker,a=null,c&&(Array.isArray(a=c)&&(a=a[0]),a="object"===(0,et.Z)(a)?a.format:a),"time"===n&&(t.format=a),[t,a]),o=(0,B.Z)(l,2),i=o[0],u=o[1],s=r&&"object"===(0,et.Z)(r)?r:{},f=(0,y.Z)((0,y.Z)({defaultOpenValue:s.defaultOpenValue||s.defaultValue},i),s),h=f.showMillisecond,d=f.showHour,v=f.showMinute,m=f.showSecond,g=er(ea(d,v,m,h),d,v,m,h),z=(0,B.Z)(g,3);return d=z[0],v=z[1],m=z[2],[f,(0,y.Z)((0,y.Z)({},f),{},{showHour:d,showMinute:v,showSecond:m,showMillisecond:h}),f.format,u]}function eo(e,t,c,n,a){var r="time"===e;if("datetime"===e||r){for(var l=K(e,a,null),o=[t,c],i=0;i1&&void 0!==arguments[1]&&arguments[1];return H.useMemo(function(){var c=e?Y(e):e;return t&&c&&(c[1]=c[1]||c[0]),c},[e,t])}function eb(e,t){var c=e.generateConfig,n=e.locale,a=e.picker,r=void 0===a?"date":a,l=e.prefixCls,o=void 0===l?"rc-picker":l,i=e.styles,u=void 0===i?{}:i,s=e.classNames,f=void 0===s?{}:s,h=e.order,d=void 0===h||h,v=e.components,m=void 0===v?{}:v,g=e.inputRender,z=e.allowClear,p=e.clearIcon,w=e.needConfirm,M=e.multiple,Z=e.format,b=e.inputReadOnly,V=e.disabledDate,C=e.minDate,x=e.maxDate,E=e.showTime,L=e.value,R=e.defaultValue,k=e.pickerValue,O=e.defaultPickerValue,T=eH(L),$=eH(R),F=eH(k),I=eH(O),A="date"===r&&E?"datetime":r,D="time"===A||"datetime"===A,P=D||M,N=null!=w?w:D,q=el(e),W=(0,B.Z)(q,4),j=W[0],_=W[1],U=W[2],X=W[3],G=ee(n,_),Q=H.useMemo(function(){return eo(A,U,X,j,G)},[A,U,X,j,G]),J=H.useMemo(function(){return(0,y.Z)((0,y.Z)({},e),{},{prefixCls:o,locale:G,picker:r,styles:u,classNames:f,order:d,components:(0,y.Z)({input:g},m),clearIcon:!1===z?null:(z&&"object"===(0,et.Z)(z)?z:{}).clearIcon||p||H.createElement("span",{className:"".concat(o,"-clear-btn")}),showTime:Q,value:T,defaultValue:$,pickerValue:F,defaultPickerValue:I},null==t?void 0:t())},[e]),ec=H.useMemo(function(){var e=Y(K(A,G,Z)),t=e[0],c="object"===(0,et.Z)(t)&&"mask"===t.type?t.format:null;return[e.map(function(e){return"string"==typeof e||"function"==typeof e?e:e.format}),c]},[A,G,Z]),en=(0,B.Z)(ec,2),ea=en[0],er=en[1],ei="function"==typeof ea[0]||!!M||b,eu=(0,S.zX)(function(e,t){return!!(V&&V(e,t)||C&&c.isAfter(C,e)&&!ez(c,n,C,e,t.type)||x&&c.isAfter(e,x)&&!ez(c,n,x,e,t.type))}),es=(0,S.zX)(function(e,t){var n=(0,y.Z)({type:r},t);if(delete n.activeIndex,!c.isValidate(e)||eu&&eu(e,n))return!0;if(("date"===r||"time"===r)&&Q){var a,l=t&&1===t.activeIndex?"end":"start",o=(null===(a=Q.disabledTime)||void 0===a?void 0:a.call(Q,e,l,{from:n.from}))||{},i=o.disabledHours,u=o.disabledMinutes,s=o.disabledSeconds,f=o.disabledMilliseconds,h=Q.disabledHours,d=Q.disabledMinutes,v=Q.disabledSeconds,m=i||h,g=u||d,z=s||v,p=c.getHour(e),w=c.getMinute(e),M=c.getSecond(e),Z=c.getMillisecond(e);if(m&&m().includes(p)||g&&g(p).includes(w)||z&&z(p,w).includes(M)||f&&f(p,w,M).includes(Z))return!0}return!1});return[H.useMemo(function(){return(0,y.Z)((0,y.Z)({},J),{},{needConfirm:N,inputReadOnly:ei,disabledDate:eu})},[J,N,ei,eu]),A,P,ea,er,es]}function eV(e,t){var c,n,a,r,l,o,i,u,s,f,h,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],v=arguments.length>3?arguments[3]:void 0,m=(c=!d.every(function(e){return e})&&e,n=t||!1,a=(0,S.C8)(n,{value:c}),l=(r=(0,B.Z)(a,2))[0],o=r[1],i=H.useRef(c),u=H.useRef(),s=function(){I.Z.cancel(u.current)},f=(0,S.zX)(function(){o(i.current),v&&l!==i.current&&v(i.current)}),h=(0,S.zX)(function(e,t){s(),i.current=e,e||t?f():u.current=(0,I.Z)(f)}),H.useEffect(function(){return s},[]),[l,h]),g=(0,B.Z)(m,2),z=g[0],p=g[1];return[z,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(!t.inherit||z)&&p(e,t.force)}]}function eC(e){var t=H.useRef();return H.useImperativeHandle(e,function(){var e;return{nativeElement:null===(e=t.current)||void 0===e?void 0:e.nativeElement,focus:function(e){var c;null===(c=t.current)||void 0===c||c.focus(e)},blur:function(){var e;null===(e=t.current)||void 0===e||e.blur()}}}),t}function ex(e,t){return H.useMemo(function(){return e||(t?((0,r.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(e){var t=(0,B.Z)(e,2);return{label:t[0],value:t[1]}})):[])},[e,t])}function eE(e,t){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=H.useRef(t);n.current=t,(0,k.o)(function(){if(e)n.current(e);else{var t=(0,I.Z)(function(){n.current(e)},c);return function(){I.Z.cancel(t)}}},[e])}function eL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],c=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=H.useState(0),a=(0,B.Z)(n,2),r=a[0],l=a[1],o=H.useState(!1),i=(0,B.Z)(o,2),u=i[0],s=i[1],f=H.useRef([]),h=H.useRef(null);return eE(u||c,function(){u||(f.current=[])}),H.useEffect(function(){u&&f.current.push(r)},[u,r]),[u,function(e){s(e)},function(e){return e&&(h.current=e),h.current},r,l,function(c){var n=f.current,a=new Set(n.filter(function(e){return c[e]||t[e]})),r=0===n[n.length-1]?1:0;return a.size>=2||e[r]?null:r},f.current]}function eR(e,t,c,n){switch(t){case"date":case"week":return e.addMonth(c,n);case"month":case"quarter":return e.addYear(c,n);case"year":return e.addYear(c,10*n);case"decade":return e.addYear(c,100*n);default:return c}}var ey=[];function eB(e,t,c,n,a,r,l,o){var i=arguments.length>8&&void 0!==arguments[8]?arguments[8]:ey,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:ey,s=arguments.length>10&&void 0!==arguments[10]?arguments[10]:ey,f=arguments.length>11?arguments[11]:void 0,h=arguments.length>12?arguments[12]:void 0,d=arguments.length>13?arguments[13]:void 0,v="time"===l,m=r||0,g=function(t){var n=e.getNow();return v&&(n=eZ(e,n)),i[t]||c[t]||n},z=(0,B.Z)(u,2),p=z[0],w=z[1],M=(0,S.C8)(function(){return g(0)},{value:p}),Z=(0,B.Z)(M,2),b=Z[0],V=Z[1],C=(0,S.C8)(function(){return g(1)},{value:w}),x=(0,B.Z)(C,2),E=x[0],L=x[1],R=H.useMemo(function(){var t=[b,E][m];return v?t:eZ(e,t,s[m])},[v,b,E,m,e,s]),y=function(c){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel";(0,[V,L][m])(c);var r=[b,E];r[m]=c,!f||ez(e,t,b,r[0],l)&&ez(e,t,E,r[1],l)||f(r,{source:a,range:1===m?"end":"start",mode:n})},O=function(c,n){if(o){var a={date:"month",week:"month",month:"year",quarter:"year"}[l];if(a&&!ez(e,t,c,n,a)||"year"===l&&c&&Math.floor(e.getYear(c)/10)!==Math.floor(e.getYear(n)/10))return eR(e,l,n,-1)}return n},T=H.useRef(null);return(0,k.Z)(function(){if(a&&!i[m]){var t=v?null:e.getNow();if(null!==T.current&&T.current!==m?t=[b,E][1^m]:c[m]?t=0===m?c[0]:O(c[0],c[1]):c[1^m]&&(t=c[1^m]),t){h&&e.isAfter(h,t)&&(t=h);var n=o?eR(e,l,t,1):t;d&&e.isAfter(n,d)&&(t=o?eR(e,l,d,-1):d),y(t,"reset")}}},[a,m,c[m]]),H.useEffect(function(){a?T.current=m:T.current=null},[a,m]),(0,k.Z)(function(){a&&i&&i[m]&&y(i[m],"reset")},[a,m]),[R,y]}function eS(e,t){var c=H.useRef(e),n=H.useState({}),a=(0,B.Z)(n,2)[1],r=function(e){return e&&void 0!==t?t:c.current};return[r,function(e){c.current=e,a({})},r(!0)]}var ek=[];function eO(e,t,c){return[function(n){return n.map(function(n){return eM(n,{generateConfig:e,locale:t,format:c[0]})})},function(t,c){for(var n=Math.max(t.length,c.length),a=-1,r=0;r2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,l=[],o=c>=1?0|c:1,i=e;i<=t;i+=o){var u=a.includes(i);u&&n||l.push({label:W(i,r),value:i,disabled:u})}return l}function eN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2?arguments[2]:void 0,n=t||{},a=n.use12Hours,r=n.hourStep,l=void 0===r?1:r,o=n.minuteStep,i=void 0===o?1:o,u=n.secondStep,s=void 0===u?1:u,f=n.millisecondStep,h=void 0===f?100:f,d=n.hideDisabledOptions,v=n.disabledTime,m=n.disabledHours,g=n.disabledMinutes,z=n.disabledSeconds,p=H.useMemo(function(){return c||e.getNow()},[c,e]),w=H.useCallback(function(e){var t=(null==v?void 0:v(e))||{};return[t.disabledHours||m||eD,t.disabledMinutes||g||eD,t.disabledSeconds||z||eD,t.disabledMilliseconds||eD]},[v,m,g,z]),M=H.useMemo(function(){return w(p)},[p,w]),Z=(0,B.Z)(M,4),b=Z[0],V=Z[1],C=Z[2],x=Z[3],E=H.useCallback(function(e,t,c,n){var r=eP(0,23,l,d,e());return[a?r.map(function(e){return(0,y.Z)((0,y.Z)({},e),{},{label:W(e.value%12||12,2)})}):r,function(e){return eP(0,59,i,d,t(e))},function(e,t){return eP(0,59,s,d,c(e,t))},function(e,t,c){return eP(0,999,h,d,n(e,t,c),3)}]},[d,l,a,h,i,s]),L=H.useMemo(function(){return E(b,V,C,x)},[E,b,V,C,x]),S=(0,B.Z)(L,4),k=S[0],O=S[1],T=S[2],$=S[3];return[function(t,c){var n=function(){return k},a=O,r=T,l=$;if(c){var o=w(c),i=(0,B.Z)(o,4),u=E(i[0],i[1],i[2],i[3]),s=(0,B.Z)(u,4),f=s[0],h=s[1],d=s[2],v=s[3];n=function(){return f},a=h,r=d,l=v}return function(e,t,c,n,a,r){var l=e;function o(e,t,c){var n=r[e](l),a=c.find(function(e){return e.value===n});if(!a||a.disabled){var o=c.filter(function(e){return!e.disabled}),i=(0,R.Z)(o).reverse().find(function(e){return e.value<=n})||o[0];i&&(n=i.value,l=r[t](l,n))}return n}var i=o("getHour","setHour",t()),u=o("getMinute","setMinute",c(i)),s=o("getSecond","setSecond",n(i,u));return o("getMillisecond","setMillisecond",a(i,u,s)),l}(t,n,a,r,l,e)},k,O,T,$]}function eq(e){var t=e.mode,c=e.internalMode,n=e.renderExtraFooter,a=e.showNow,r=e.showTime,l=e.onSubmit,o=e.onNow,i=e.invalid,u=e.needConfirm,s=e.generateConfig,f=e.disabledDate,h=H.useContext(P),d=h.prefixCls,v=h.locale,m=h.button,g=s.getNow(),z=eN(s,r,g),p=(0,B.Z)(z,1)[0],w=null==n?void 0:n(t),M=f(g,{type:t}),Z="".concat(d,"-now"),b="".concat(Z,"-btn"),V=a&&H.createElement("li",{className:Z},H.createElement("a",{className:E()(b,M&&"".concat(b,"-disabled")),"aria-disabled":M,onClick:function(){M||o(p(g))}},"date"===c?v.today:v.now)),C=u&&H.createElement("li",{className:"".concat(d,"-ok")},H.createElement(void 0===m?"button":m,{disabled:i,onClick:l},v.ok)),x=(V||C)&&H.createElement("ul",{className:"".concat(d,"-ranges")},V,C);return w||x?H.createElement("div",{className:"".concat(d,"-footer")},w&&H.createElement("div",{className:"".concat(d,"-footer-extra")},w),x):null}function eW(e,t,c){return function(n,a){var r=n.findIndex(function(n){return ez(e,t,n,a,c)});if(-1===r)return[].concat((0,R.Z)(n),[a]);var l=(0,R.Z)(n);return l.splice(r,1),l}}var eY=H.createContext(null);function ej(){return H.useContext(eY)}function e_(e,t){var c=e.prefixCls,n=e.generateConfig,a=e.locale,r=e.disabledDate,l=e.minDate,o=e.maxDate,i=e.cellRender,u=e.hoverValue,s=e.hoverRangeValue,f=e.onHover,h=e.values,d=e.pickerValue,v=e.onSelect,m=e.prevIcon,g=e.nextIcon,z=e.superPrevIcon,p=e.superNextIcon,w=n.getNow();return[{now:w,values:h,pickerValue:d,prefixCls:c,disabledDate:r,minDate:l,maxDate:o,cellRender:i,hoverValue:u,hoverRangeValue:s,onHover:f,locale:a,generateConfig:n,onSelect:v,panelType:t,prevIcon:m,nextIcon:g,superPrevIcon:z,superNextIcon:p},w]}var eK=H.createContext({});function eU(e){for(var t=e.rowNum,c=e.colNum,n=e.baseDate,a=e.getCellDate,r=e.prefixColumn,l=e.rowClassName,o=e.titleFormat,i=e.getCellText,u=e.getCellClassName,s=e.headerCells,f=e.cellSelection,h=void 0===f||f,d=e.disabledDate,v=ej(),m=v.prefixCls,g=v.panelType,z=v.now,p=v.disabledDate,w=v.cellRender,M=v.onHover,Z=v.hoverValue,b=v.hoverRangeValue,V=v.generateConfig,C=v.values,x=v.locale,L=v.onSelect,R=d||p,S="".concat(m,"-cell"),k=H.useContext(eK).onCellDblClick,O=function(e){return C.some(function(t){return t&&ez(V,x,e,t,g)})},T=[],F=0;F1&&(r=u.addDate(r,-7)),r),k=u.getMonth(s),O=(void 0===p?Z:p)?function(e){var t=null==m?void 0:m(e,{type:"week"});return H.createElement("td",{key:"week",className:E()(M,"".concat(M,"-week"),(0,$.Z)({},"".concat(M,"-disabled"),t)),onClick:function(){t||g(e)},onMouseEnter:function(){t||null==z||z(e)},onMouseLeave:function(){t||null==z||z(null)}},H.createElement("div",{className:"".concat(M,"-inner")},u.locale.getWeek(i.locale,e)))}:null,T=[],F=i.shortWeekDays||(u.locale.getShortWeekDays?u.locale.getShortWeekDays(i.locale):[]);O&&T.push(H.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var I=0;I<7;I+=1)T.push(H.createElement("th",{key:I},F[(I+R)%7]));var A=i.shortMonths||(u.locale.getShortMonths?u.locale.getShortMonths(i.locale):[]),D=H.createElement("button",{type:"button","aria-label":"year panel",key:"year",onClick:function(){h("year",s)},tabIndex:-1,className:"".concat(l,"-year-btn")},eM(s,{locale:i,format:i.yearFormat,generateConfig:u})),P=H.createElement("button",{type:"button","aria-label":"month panel",key:"month",onClick:function(){h("month",s)},tabIndex:-1,className:"".concat(l,"-month-btn")},i.monthFormat?eM(s,{locale:i,format:i.monthFormat,generateConfig:u}):A[k]),N=i.monthBeforeYear?[P,D]:[D,P];return H.createElement(eY.Provider,{value:C},H.createElement("div",{className:E()(w,p&&"".concat(w,"-show-week"))},H.createElement(eG,{offset:function(e){return u.addMonth(s,e)},superOffset:function(e){return u.addYear(s,e)},onChange:f,getStart:function(e){return u.setDate(e,1)},getEnd:function(e){var t=u.setDate(e,1);return t=u.addMonth(t,1),u.addDate(t,-1)}},N),H.createElement(eU,(0,L.Z)({titleFormat:i.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:S,headerCells:T,getCellDate:function(e,t){return u.addDate(e,t)},getCellText:function(e){return eM(e,{locale:i,format:i.cellDateFormat,generateConfig:u})},getCellClassName:function(e){return(0,$.Z)((0,$.Z)({},"".concat(l,"-cell-in-view"),eh(u,e,s)),"".concat(l,"-cell-today"),ed(u,e,x))},prefixColumn:O,cellSelection:!Z}))))}var eJ=c(5110),e1=1/3;function e4(e){var t,c,n,a,r,l,o=e.units,i=e.value,u=e.optionalValue,s=e.type,f=e.onChange,h=e.onHover,d=e.onDblClick,v=e.changeOnScroll,m=ej(),g=m.prefixCls,z=m.cellRender,p=m.now,w=m.locale,M="".concat(g,"-time-panel-cell"),Z=H.useRef(null),b=H.useRef(),V=function(){clearTimeout(b.current)},C=(t=null!=i?i:u,c=H.useRef(!1),n=H.useRef(null),a=H.useRef(null),r=function(){I.Z.cancel(n.current),c.current=!1},l=H.useRef(),[(0,S.zX)(function(){var e=Z.current;if(a.current=null,l.current=0,e){var o=e.querySelector('[data-value="'.concat(t,'"]')),i=e.querySelector("li");o&&i&&function t(){r(),c.current=!0,l.current+=1;var u=e.scrollTop,s=i.offsetTop,f=o.offsetTop,h=f-s;if(0===f&&o!==i||!(0,eJ.Z)(e)){l.current<=5&&(n.current=(0,I.Z)(t));return}var d=u+(h-u)*e1,v=Math.abs(h-d);if(null!==a.current&&a.current1&&void 0!==arguments[1]&&arguments[1];ep(e),null==m||m(e),t&&ew(e)},eZ=function(e,t){ec(e),t&&eM(t),ew(t,e)},eH=H.useMemo(function(){if(Array.isArray(b)){var e,t,c=(0,B.Z)(b,2);e=c[0],t=c[1]}else e=b;return e||t?(e=e||t,t=t||e,a.isAfter(e,t)?[t,e]:[e,t]):null},[b,a]),eb=G(V,C,x),eV=(void 0===k?{}:k)[en]||e8[en]||eQ,eC=H.useContext(eK),ex=H.useMemo(function(){return(0,y.Z)((0,y.Z)({},eC),{},{hideHeader:O})},[eC,O]),eE="".concat(T,"-panel"),eL=_(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return H.createElement(eK.Provider,{value:ex},H.createElement("div",{ref:F,tabIndex:void 0===o?0:o,className:E()(eE,(0,$.Z)({},"".concat(eE,"-rtl"),"rtl"===r))},H.createElement(eV,(0,L.Z)({},eL,{showTime:U,prefixCls:T,locale:j,generateConfig:a,onModeChange:eZ,pickerValue:eg,onPickerValueChange:function(e){eM(e,!0)},value:ef[0],onSelect:function(e){if(ed(e),eM(e),et!==w){var t=["decade","year"],c=[].concat(t,["month"]),n={quarter:[].concat(t,["quarter"]),week:[].concat((0,R.Z)(c),["week"]),date:[].concat((0,R.Z)(c),["date"])}[w]||c,a=n.indexOf(et),r=n[a+1];r&&eZ(r,e)}},values:ef,cellRender:eb,hoverRangeValue:eH,hoverValue:Z}))))}));function e0(e){var t=e.picker,c=e.multiplePanel,n=e.pickerValue,a=e.onPickerValueChange,r=e.needConfirm,l=e.onSubmit,o=e.range,i=e.hoverValue,u=H.useContext(P),s=u.prefixCls,f=u.generateConfig,h=H.useCallback(function(e,c){return eR(f,t,e,c)},[f,t]),d=H.useMemo(function(){return h(n,1)},[n,h]),v={onCellDblClick:function(){r&&l()}},m="time"===t,g=(0,y.Z)((0,y.Z)({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:m});return(o?g.hoverRangeValue=i:g.hoverValue=i,c)?H.createElement("div",{className:"".concat(s,"-panels")},H.createElement(eK.Provider,{value:(0,y.Z)((0,y.Z)({},v),{},{hideNext:!0})},H.createElement(e6,g)),H.createElement(eK.Provider,{value:(0,y.Z)((0,y.Z)({},v),{},{hidePrev:!0})},H.createElement(e6,(0,L.Z)({},g,{pickerValue:d,onPickerValueChange:function(e){a(h(e,-1))}})))):H.createElement(eK.Provider,{value:(0,y.Z)({},v)},H.createElement(e6,g))}function e5(e){return"function"==typeof e?e():e}function e7(e){var t=e.prefixCls,c=e.presets,n=e.onClick,a=e.onHover;return c.length?H.createElement("div",{className:"".concat(t,"-presets")},H.createElement("ul",null,c.map(function(e,t){var c=e.label,r=e.value;return H.createElement("li",{key:t,onClick:function(){n(e5(r))},onMouseEnter:function(){a(e5(r))},onMouseLeave:function(){a(null)}},c)}))):null}function e9(e){var t=e.panelRender,c=e.internalMode,n=e.picker,a=e.showNow,r=e.range,l=e.multiple,o=e.activeOffset,i=void 0===o?0:o,u=e.placement,s=e.presets,f=e.onPresetHover,h=e.onPresetSubmit,d=e.onFocus,v=e.onBlur,m=e.onPanelMouseDown,g=e.direction,z=e.value,p=e.onSelect,w=e.isInvalid,M=e.defaultOpenValue,Z=e.onOk,b=e.onSubmit,V=H.useContext(P).prefixCls,C="".concat(V,"-panel"),x="rtl"===g,R=H.useRef(null),y=H.useRef(null),S=H.useState(0),k=(0,B.Z)(S,2),O=k[0],T=k[1],F=H.useState(0),I=(0,B.Z)(F,2),N=I[0],q=I[1];function W(e){return e.filter(function(e){return e})}H.useEffect(function(){if(r){var e,t=(null===(e=R.current)||void 0===e?void 0:e.offsetWidth)||0;i<=O-t?q(0):q(i+t-O)}},[O,i,r]);var j=H.useMemo(function(){return W(Y(z))},[z]),_="time"===n&&!j.length,K=H.useMemo(function(){return _?W([M]):j},[_,j,M]),U=_?M:j,X=H.useMemo(function(){return!K.length||K.some(function(e){return w(e)})},[K,w]),G=H.createElement("div",{className:"".concat(V,"-panel-layout")},H.createElement(e7,{prefixCls:V,presets:s,onClick:h,onHover:f}),H.createElement("div",null,H.createElement(e0,(0,L.Z)({},e,{value:U})),H.createElement(eq,(0,L.Z)({},e,{showNow:!l&&a,invalid:X,onSubmit:function(){_&&p(M),Z(),b()}}))));t&&(G=t(G));var Q="marginLeft",J="marginRight",ee=H.createElement("div",{onMouseDown:m,tabIndex:-1,className:E()("".concat(C,"-container"),"".concat(V,"-").concat(c,"-panel-container")),style:(0,$.Z)((0,$.Z)({},x?J:Q,N),x?Q:J,"auto"),onFocus:d,onBlur:v},G);if(r){var et=D(A(u,x),x);ee=H.createElement("div",{onMouseDown:m,ref:y,className:E()("".concat(V,"-range-wrapper"),"".concat(V,"-").concat(n,"-range-wrapper"))},H.createElement("div",{ref:R,className:"".concat(V,"-range-arrow"),style:(0,$.Z)({},et,i)}),H.createElement(eA.Z,{onResize:function(e){e.offsetWidth&&T(e.offsetWidth)}},ee))}return ee}var te=c(45987);function tt(e,t){var c=e.format,n=e.maskFormat,a=e.generateConfig,r=e.locale,l=e.preserveInvalidOnBlur,o=e.inputReadOnly,i=e.required,u=e["aria-required"],s=e.onSubmit,f=e.onFocus,h=e.onBlur,d=e.onInputChange,v=e.onInvalid,m=e.open,g=e.onOpenChange,z=e.onKeyDown,p=e.onChange,w=e.activeHelp,M=e.name,Z=e.autoComplete,b=e.id,V=e.value,C=e.invalid,x=e.placeholder,E=e.disabled,L=e.activeIndex,R=e.allHelp,B=e.picker,S=function(e,t){var c=a.locale.parse(r.locale,e,[t]);return c&&a.isValidate(c)?c:null},k=c[0],O=H.useCallback(function(e){return eM(e,{locale:r,format:k,generateConfig:a})},[r,a,k]),$=H.useMemo(function(){return V.map(O)},[V,O]),F=H.useMemo(function(){return Math.max("time"===B?8:10,"function"==typeof k?k(a.getNow()).length:k.length)+2},[k,B,a]),I=function(e){for(var t=0;t=r&&e<=l)return n;var o=Math.min(Math.abs(e-r),Math.abs(e-l));o0?n:a));var i=a-n+1;return String(n+(i+(o+e)-n)%i)};switch(t){case"Backspace":case"Delete":c="",n=r;break;case"ArrowLeft":c="",o(-1);break;case"ArrowRight":c="",o(1);break;case"ArrowUp":c="",n=i(1);break;case"ArrowDown":c="",n=i(-1);break;default:isNaN(Number(t))||(n=c=_+t)}null!==c&&(K(c),c.length>=a&&(o(1),K(""))),null!==n&&eh((en.slice(0,eu)+W(n,a)+en.slice(es)).slice(0,l.length)),ec({})},onMouseDown:function(){ed.current=!0},onMouseUp:function(e){var t=e.target.selectionStart;Q(el.getMaskCellIndex(t)),ec({}),null==Z||Z(e),ed.current=!1},onPaste:function(e){var t=e.clipboardData.getData("text");o(t)&&eh(t)}}:{};return H.createElement("div",{ref:ea,className:E()(R,(0,$.Z)((0,$.Z)({},"".concat(R,"-active"),c&&a),"".concat(R,"-placeholder"),u))},H.createElement(x,(0,L.Z)({ref:er,"aria-invalid":m,autoComplete:"off"},z,{onKeyDown:em,onBlur:ev},ez,{value:en,onChange:function(e){if(!l){var t=e.target.value;ef(t),q(t),i(t)}}})),H.createElement(tl,{type:"suffix",icon:r}),g)}),tv=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus"],tm=["index"],tg=H.forwardRef(function(e,t){var c=e.id,n=e.clearIcon,a=e.suffixIcon,r=e.separator,l=void 0===r?"~":r,o=e.activeIndex,i=(e.activeHelp,e.allHelp,e.focused),u=(e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig,e.placeholder),s=e.className,f=e.style,h=e.onClick,d=e.onClear,v=e.value,m=(e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),g=e.invalid,z=(e.inputReadOnly,e.direction),p=(e.onOpenChange,e.onActiveOffset),w=e.placement,M=e.onMouseDown,Z=(e.required,e["aria-required"],e.autoFocus),b=(0,te.Z)(e,tv),V="rtl"===z,C=H.useContext(P).prefixCls,x=H.useMemo(function(){if("string"==typeof c)return[c];var e=c||{};return[e.start,e.end]},[c]),R=H.useRef(),k=H.useRef(),O=H.useRef(),T=function(e){var t;return null===(t=[k,O][e])||void 0===t?void 0:t.current};H.useImperativeHandle(t,function(){return{nativeElement:R.current,focus:function(e){if("object"===(0,et.Z)(e)){var t,c,n=e||{},a=n.index,r=void 0===a?0:a,l=(0,te.Z)(n,tm);null===(c=T(r))||void 0===c||c.focus(l)}else null===(t=T(null!=e?e:0))||void 0===t||t.focus()},blur:function(){var e,t;null===(e=T(0))||void 0===e||e.blur(),null===(t=T(1))||void 0===t||t.blur()}}});var F=tn(b),I=H.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),N=tt((0,y.Z)((0,y.Z)({},e),{},{id:x,placeholder:I})),q=(0,B.Z)(N,1)[0],W=A(w,V),Y=D(W,V),j=null==W?void 0:W.toLowerCase().endsWith("right"),_=H.useState({position:"absolute",width:0}),K=(0,B.Z)(_,2),U=K[0],X=K[1],G=(0,S.zX)(function(){var e=T(o);if(e){var t=e.nativeElement,c=t.offsetWidth,n=t.offsetLeft,a=t.offsetParent,r=(null==a?void 0:a.offsetWidth)||0,l=j?r-c-n:n;X(function(e){return(0,y.Z)((0,y.Z)({},e),{},(0,$.Z)({width:c},Y,l))}),p(l)}});H.useEffect(function(){G()},[o]);var Q=n&&(v[0]&&!m[0]||v[1]&&!m[1]),J=Z&&!m[0],ee=Z&&!J&&!m[1];return H.createElement(eA.Z,{onResize:G},H.createElement("div",(0,L.Z)({},F,{className:E()(C,"".concat(C,"-range"),(0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)({},"".concat(C,"-focused"),i),"".concat(C,"-disabled"),m.every(function(e){return e})),"".concat(C,"-invalid"),g.some(function(e){return e})),"".concat(C,"-rtl"),V),s),style:f,ref:R,onClick:h,onMouseDown:function(e){var t=e.target;t!==k.current.inputElement&&t!==O.current.inputElement&&e.preventDefault(),null==M||M(e)}}),H.createElement(td,(0,L.Z)({ref:k},q(0),{autoFocus:J,"date-range":"start"})),H.createElement("div",{className:"".concat(C,"-range-separator")},l),H.createElement(td,(0,L.Z)({ref:O},q(1),{autoFocus:ee,"date-range":"end"})),H.createElement("div",{className:"".concat(C,"-active-bar"),style:U}),H.createElement(tl,{type:"suffix",icon:a}),Q&&H.createElement(to,{icon:n,onClear:d})))});function tz(e,t){var c=null!=e?e:t;return Array.isArray(c)?c:[c,c]}function tp(e){return 1===e?"end":"start"}var tw=H.forwardRef(function(e,t){var c,n=eb(e,function(){var t=e.disabled,c=e.allowEmpty;return{disabled:tz(t,!1),allowEmpty:tz(c,!1)}}),a=(0,B.Z)(n,6),r=a[0],l=a[1],o=a[2],i=a[3],u=a[4],s=a[5],f=r.prefixCls,h=r.styles,d=r.classNames,v=r.placement,m=r.defaultValue,g=r.value,z=r.needConfirm,p=r.onKeyDown,w=r.disabled,M=r.allowEmpty,Z=r.disabledDate,b=r.minDate,V=r.maxDate,C=r.defaultOpen,x=r.open,E=r.onOpenChange,$=r.locale,F=r.generateConfig,I=r.picker,A=r.showNow,D=r.showToday,N=r.showTime,W=r.mode,_=r.onPanelChange,K=r.onCalendarChange,J=r.onOk,ee=r.defaultPickerValue,et=r.pickerValue,ec=r.onPickerValueChange,en=r.inputReadOnly,ea=r.suffixIcon,er=r.onFocus,el=r.onBlur,eo=r.presets,ei=r.ranges,eu=r.components,es=r.cellRender,ef=r.dateRender,eh=r.monthCellRender,ed=r.onClick,ev=eC(t),em=eV(x,C,w,E),eg=(0,B.Z)(em,2),ep=eg[0],ew=eg[1],eM=function(e,t){(w.some(function(e){return!e})||!e)&&ew(e,t)},eZ=e$(F,$,i,!0,!1,m,g,K,J),eH=(0,B.Z)(eZ,5),eE=eH[0],eR=eH[1],ey=eH[2],eS=eH[3],ek=eH[4],eO=ey(),eT=eL(w,M,ep),eA=(0,B.Z)(eT,7),eD=eA[0],eP=eA[1],eN=eA[2],eq=eA[3],eW=eA[4],eY=eA[5],ej=eA[6],e_=function(e,t){eP(!0),null==er||er(e,{range:tp(null!=t?t:eq)})},eK=function(e,t){eP(!1),null==el||el(e,{range:tp(null!=t?t:eq)})},eU=H.useMemo(function(){if(!N)return null;var e=N.disabledTime,t=e?function(t){return e(t,tp(eq),{from:U(eO,ej,eq)})}:void 0;return(0,y.Z)((0,y.Z)({},N),{},{disabledTime:t})},[N,eq,eO,ej]),eX=(0,S.C8)([I,I],{value:W}),eG=(0,B.Z)(eX,2),eQ=eG[0],eJ=eG[1],e1=eQ[eq]||I,e4="date"===e1&&eU?"datetime":e1,e2=e4===I&&"time"!==e4,e3=eI(I,e1,A,D,!0),e8=eF(r,eE,eR,ey,eS,w,i,eD,ep,s),e6=(0,B.Z)(e8,2),e0=e6[0],e5=e6[1],e7=(c=ej[ej.length-1],function(e,t){var n=(0,B.Z)(eO,2),a=n[0],r=n[1],l=(0,y.Z)((0,y.Z)({},t),{},{from:U(eO,ej)});return!!(1===c&&w[0]&&a&&!ez(F,$,a,e,l.type)&&F.isAfter(a,e)||0===c&&w[1]&&r&&!ez(F,$,r,e,l.type)&&F.isAfter(e,r))||(null==Z?void 0:Z(e,l))}),te=Q(eO,s,M),tt=(0,B.Z)(te,2),tc=tt[0],tn=tt[1],ta=eB(F,$,eO,eQ,ep,eq,l,e2,ee,et,null==eU?void 0:eU.defaultOpenValue,ec,b,V),tr=(0,B.Z)(ta,2),tl=tr[0],to=tr[1],ti=(0,S.zX)(function(e,t,c){var n=j(eQ,eq,t);if((n[0]!==eQ[0]||n[1]!==eQ[1])&&eJ(n),_&&!1!==c){var a=(0,R.Z)(eO);e&&(a[eq]=e),_(a,n)}}),tu=function(e,t){return j(eO,t,e)},ts=function(e,t){var c=eO;e&&(c=tu(e,eq));var n=eY(c);eS(c),e0(eq,null===n),null===n?eM(!1,{force:!0}):t||ev.current.focus({index:n})},tf=H.useState(null),th=(0,B.Z)(tf,2),td=th[0],tv=th[1],tm=H.useState(null),tw=(0,B.Z)(tm,2),tM=tw[0],tZ=tw[1],tH=H.useMemo(function(){return tM||eO},[eO,tM]);H.useEffect(function(){ep||tZ(null)},[ep]);var tb=H.useState(0),tV=(0,B.Z)(tb,2),tC=tV[0],tx=tV[1],tE=ex(eo,ei),tL=G(es,ef,eh,tp(eq)),tR=eO[eq]||null,ty=(0,S.zX)(function(e){return s(e,{activeIndex:eq})}),tB=H.useMemo(function(){var e=(0,T.Z)(r,!1);return(0,O.Z)(r,[].concat((0,R.Z)(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]))},[r]),tS=H.createElement(e9,(0,L.Z)({},tB,{showNow:e3,showTime:eU,range:!0,multiplePanel:e2,activeOffset:tC,placement:v,disabledDate:e7,onFocus:function(e){eM(!0),e_(e)},onBlur:eK,onPanelMouseDown:function(){eN("panel")},picker:I,mode:e1,internalMode:e4,onPanelChange:ti,format:u,value:tR,isInvalid:ty,onChange:null,onSelect:function(e){eS(j(eO,eq,e)),z||o||l!==e4||ts(e)},pickerValue:tl,defaultOpenValue:Y(null==N?void 0:N.defaultOpenValue)[eq],onPickerValueChange:to,hoverValue:tH,onHover:function(e){tZ(e?tu(e,eq):null),tv("cell")},needConfirm:z,onSubmit:ts,onOk:ek,presets:tE,onPresetHover:function(e){tZ(e),tv("preset")},onPresetSubmit:function(e){e5(e)&&eM(!1,{force:!0})},onNow:function(e){ts(e)},cellRender:tL})),tk=H.useMemo(function(){return{prefixCls:f,locale:$,generateConfig:F,button:eu.button,input:eu.input}},[f,$,F,eu.button,eu.input]);return(0,k.Z)(function(){ep&&void 0!==eq&&ti(null,I,!1)},[ep,eq,I]),(0,k.Z)(function(){var e=eN();ep||"input"!==e||(eM(!1),ts(null,!0)),ep||!o||z||"panel"!==e||(eM(!0),ts())},[ep]),H.createElement(P.Provider,{value:tk},H.createElement(q,(0,L.Z)({},X(r),{popupElement:tS,popupStyle:h.popup,popupClassName:d.popup,visible:ep,onClose:function(){eM(!1)},range:!0}),H.createElement(tg,(0,L.Z)({},r,{ref:ev,suffixIcon:ea,activeIndex:eD||ep?eq:null,activeHelp:!!tM,allHelp:!!tM&&"preset"===td,focused:eD,onFocus:function(e,t){eN("input"),eM(!0,{inherit:!0}),eq!==t&&ep&&!z&&o&&ts(null,!0),eW(t),e_(e,t)},onBlur:function(e,t){eM(!1),z||"input"!==eN()||e0(eq,null===eY(eO)),eK(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&ts(null,!0),null==p||p(e,t)},onSubmit:ts,value:tH,maskFormat:u,onChange:function(e,t){eS(tu(e,t))},onInputChange:function(){eN("input")},format:i,inputReadOnly:en,disabled:w,open:ep,onOpenChange:eM,onClick:function(e){var t,c=e.target.getRootNode();if(!ev.current.nativeElement.contains(null!==(t=c.activeElement)&&void 0!==t?t:document.activeElement)){var n=w.findIndex(function(e){return!e});n>=0&&ev.current.focus({index:n})}eM(!0),null==ed||ed(e)},onClear:function(){e5(null),eM(!1,{force:!0})},invalid:tc,onInvalid:tn,onActiveOffset:tx}))))}),tM=c(39983);function tZ(e){var t=e.prefixCls,c=e.value,n=e.onRemove,a=e.removeIcon,r=void 0===a?"\xd7":a,l=e.formatDate,o=e.disabled,i=e.maxTagCount,u=e.placeholder,s="".concat(t,"-selection");function f(e,t){return H.createElement("span",{className:E()("".concat(s,"-item")),title:"string"==typeof e?e:null},H.createElement("span",{className:"".concat(s,"-item-content")},e),!o&&t&&H.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:t,className:"".concat(s,"-item-remove")},r))}return H.createElement("div",{className:"".concat(t,"-selector")},H.createElement(tM.Z,{prefixCls:"".concat(s,"-overflow"),data:c,renderItem:function(e){return f(l(e),function(t){t&&t.stopPropagation(),n(e)})},renderRest:function(e){return f("+ ".concat(e.length," ..."))},itemKey:function(e){return l(e)},maxCount:i}),!c.length&&H.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}var tH=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"],tb=H.forwardRef(function(e,t){e.id;var c=e.open,n=e.clearIcon,a=e.suffixIcon,r=(e.activeHelp,e.allHelp,e.focused),l=(e.onFocus,e.onBlur,e.onKeyDown,e.locale),o=e.generateConfig,i=e.placeholder,u=e.className,s=e.style,f=e.onClick,h=e.onClear,d=e.internalPicker,v=e.value,m=e.onChange,g=e.onSubmit,z=(e.onInputChange,e.multiple),p=e.maxTagCount,w=(e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),M=e.invalid,Z=(e.inputReadOnly,e.direction),b=(e.onOpenChange,e.onMouseDown),V=(e.required,e["aria-required"],e.autoFocus),C=e.removeIcon,x=(0,te.Z)(e,tH),R=H.useContext(P).prefixCls,S=H.useRef(),k=H.useRef();H.useImperativeHandle(t,function(){return{nativeElement:S.current,focus:function(e){var t;null===(t=k.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=k.current)||void 0===e||e.blur()}}});var O=tn(x),T=tt((0,y.Z)((0,y.Z)({},e),{},{onChange:function(e){m([e])}}),function(e){return{value:e.valueTexts[0]||"",active:r}}),F=(0,B.Z)(T,2),I=F[0],A=F[1],D=!!(n&&v.length&&!w),N=z?H.createElement(H.Fragment,null,H.createElement(tZ,{prefixCls:R,value:v,onRemove:function(e){m(v.filter(function(t){return t&&!ez(o,l,t,e,d)})),c||g()},formatDate:A,maxTagCount:p,disabled:w,removeIcon:C,placeholder:i}),H.createElement("input",{className:"".concat(R,"-multiple-input"),value:v.map(A).join(","),ref:k,readOnly:!0,autoFocus:V}),H.createElement(tl,{type:"suffix",icon:a}),D&&H.createElement(to,{icon:n,onClear:h})):H.createElement(td,(0,L.Z)({ref:k},I(),{autoFocus:V,suffixIcon:a,clearIcon:D&&H.createElement(to,{icon:n,onClear:h}),showActiveCls:!1}));return H.createElement("div",(0,L.Z)({},O,{className:E()(R,(0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)({},"".concat(R,"-multiple"),z),"".concat(R,"-focused"),r),"".concat(R,"-disabled"),w),"".concat(R,"-invalid"),M),"".concat(R,"-rtl"),"rtl"===Z),u),style:s,ref:S,onClick:f,onMouseDown:function(e){var t;e.target!==(null===(t=k.current)||void 0===t?void 0:t.inputElement)&&e.preventDefault(),null==b||b(e)}}),N)}),tV=H.forwardRef(function(e,t){var c=eb(e),n=(0,B.Z)(c,6),a=n[0],r=n[1],l=n[2],o=n[3],i=n[4],u=n[5],s=a.prefixCls,f=a.styles,h=a.classNames,d=a.order,v=a.defaultValue,m=a.value,g=a.needConfirm,z=a.onChange,p=a.onKeyDown,w=a.disabled,M=a.disabledDate,Z=a.minDate,b=a.maxDate,V=a.defaultOpen,C=a.open,x=a.onOpenChange,E=a.locale,$=a.generateConfig,F=a.picker,I=a.showNow,A=a.showToday,D=a.showTime,N=a.mode,W=a.onPanelChange,j=a.onCalendarChange,_=a.onOk,K=a.multiple,U=a.defaultPickerValue,J=a.pickerValue,ee=a.onPickerValueChange,et=a.inputReadOnly,ec=a.suffixIcon,en=a.removeIcon,ea=a.onFocus,er=a.onBlur,el=a.presets,eo=a.components,ei=a.cellRender,eu=a.dateRender,es=a.monthCellRender,ef=a.onClick,eh=eC(t);function ed(e){return null===e?null:K?e:e[0]}var ev=eW($,E,r),em=eV(C,V,[w],x),eg=(0,B.Z)(em,2),ez=eg[0],ep=eg[1],ew=e$($,E,o,!1,d,v,m,function(e,t,c){if(j){var n=(0,y.Z)({},c);delete n.range,j(ed(e),ed(t),n)}},function(e){null==_||_(ed(e))}),eM=(0,B.Z)(ew,5),eZ=eM[0],eH=eM[1],eE=eM[2],eR=eM[3],ey=eM[4],eS=eE(),ek=eL([w]),eO=(0,B.Z)(ek,4),eT=eO[0],eA=eO[1],eD=eO[2],eP=eO[3],eN=function(e){eA(!0),null==ea||ea(e,{})},eq=function(e){eA(!1),null==er||er(e,{})},eY=(0,S.C8)(F,{value:N}),ej=(0,B.Z)(eY,2),e_=ej[0],eK=ej[1],eU="date"===e_&&D?"datetime":e_,eX=eI(F,e_,I,A),eG=z&&function(e,t){z(ed(e),ed(t))},eQ=eF((0,y.Z)((0,y.Z)({},a),{},{onChange:eG}),eZ,eH,eE,eR,[],o,eT,ez,u),eJ=(0,B.Z)(eQ,2)[1],e1=Q(eS,u),e4=(0,B.Z)(e1,2),e2=e4[0],e3=e4[1],e8=H.useMemo(function(){return e2.some(function(e){return e})},[e2]),e6=eB($,E,eS,[e_],ez,eP,r,!1,U,J,Y(null==D?void 0:D.defaultOpenValue),function(e,t){if(ee){var c=(0,y.Z)((0,y.Z)({},t),{},{mode:t.mode[0]});delete c.range,ee(e[0],c)}},Z,b),e0=(0,B.Z)(e6,2),e5=e0[0],e7=e0[1],te=(0,S.zX)(function(e,t,c){eK(t),W&&!1!==c&&W(e||eS[eS.length-1],t)}),tt=function(){eJ(eE()),ep(!1,{force:!0})},tc=H.useState(null),tn=(0,B.Z)(tc,2),ta=tn[0],tr=tn[1],tl=H.useState(null),to=(0,B.Z)(tl,2),ti=to[0],tu=to[1],ts=H.useMemo(function(){var e=[ti].concat((0,R.Z)(eS)).filter(function(e){return e});return K?e:e.slice(0,1)},[eS,ti,K]),tf=H.useMemo(function(){return!K&&ti?[ti]:eS.filter(function(e){return e})},[eS,ti,K]);H.useEffect(function(){ez||tu(null)},[ez]);var th=ex(el),td=function(e){eJ(K?ev(eE(),e):[e])&&!K&&ep(!1,{force:!0})},tv=G(ei,eu,es),tm=H.useMemo(function(){var e=(0,T.Z)(a,!1),t=(0,O.Z)(a,[].concat((0,R.Z)(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,y.Z)((0,y.Z)({},t),{},{multiple:a.multiple})},[a]),tg=H.createElement(e9,(0,L.Z)({},tm,{showNow:eX,showTime:D,disabledDate:M,onFocus:function(e){ep(!0),eN(e)},onBlur:eq,picker:F,mode:e_,internalMode:eU,onPanelChange:te,format:i,value:eS,isInvalid:u,onChange:null,onSelect:function(e){eD("panel"),eR(K?ev(eE(),e):[e]),g||l||r!==eU||tt()},pickerValue:e5,defaultOpenValue:null==D?void 0:D.defaultOpenValue,onPickerValueChange:e7,hoverValue:ts,onHover:function(e){tu(e),tr("cell")},needConfirm:g,onSubmit:tt,onOk:ey,presets:th,onPresetHover:function(e){tu(e),tr("preset")},onPresetSubmit:td,onNow:function(e){td(e)},cellRender:tv})),tz=H.useMemo(function(){return{prefixCls:s,locale:E,generateConfig:$,button:eo.button,input:eo.input}},[s,E,$,eo.button,eo.input]);return(0,k.Z)(function(){ez&&void 0!==eP&&te(null,F,!1)},[ez,eP,F]),(0,k.Z)(function(){var e=eD();ez||"input"!==e||(ep(!1),tt()),ez||!l||g||"panel"!==e||(ep(!0),tt())},[ez]),H.createElement(P.Provider,{value:tz},H.createElement(q,(0,L.Z)({},X(a),{popupElement:tg,popupStyle:f.popup,popupClassName:h.popup,visible:ez,onClose:function(){ep(!1)}}),H.createElement(tb,(0,L.Z)({},a,{ref:eh,suffixIcon:ec,removeIcon:en,activeHelp:!!ti,allHelp:!!ti&&"preset"===ta,focused:eT,onFocus:function(e){eD("input"),ep(!0,{inherit:!0}),eN(e)},onBlur:function(e){ep(!1),eq(e)},onKeyDown:function(e,t){"Tab"===e.key&&tt(),null==p||p(e,t)},onSubmit:tt,value:tf,maskFormat:i,onChange:function(e){eR(e)},onInputChange:function(){eD("input")},internalPicker:r,format:o,inputReadOnly:et,disabled:w,open:ez,onOpenChange:ep,onClick:function(e){w||eh.current.nativeElement.contains(document.activeElement)||eh.current.focus(),ep(!0),null==ef||ef(e)},onClear:function(){eJ(null),ep(!1,{force:!0})},invalid:e8,onInvalid:function(e){e3(e,0)}}))))}),tC=c(89942),tx=c(87263),tE=c(9708),tL=c(53124),tR=c(98866),ty=c(35792),tB=c(98675),tS=c(65223),tk=c(27833),tO=c(10110),tT=c(4173),t$=c(29494),tF=c(25446),tI=c(47673),tA=c(20353),tD=c(14747),tP=c(80110),tN=c(67771),tq=c(33297),tW=c(79511),tY=c(83559),tj=c(83262),t_=c(16928);let tK=(e,t)=>{let{componentCls:c,controlHeight:n}=e,a=t?`${c}-${t}`:"",r=(0,t_.gp)(e);return[{[`${c}-multiple${a}`]:{paddingBlock:r.containerPadding,paddingInlineStart:r.basePadding,minHeight:n,[`${c}-selection-item`]:{height:r.itemHeight,lineHeight:(0,tF.bf)(r.itemLineHeight)}}}]};var tU=e=>{let{componentCls:t,calc:c,lineWidth:n}=e,a=(0,tj.IX)(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),r=(0,tj.IX)(e,{fontHeight:c(e.multipleItemHeightLG).sub(c(n).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[tK(a,"small"),tK(e),tK(r,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},(0,t_._z)(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},tX=c(10274);let tG=e=>{let{pickerCellCls:t,pickerCellInnerCls:c,cellHeight:n,borderRadiusSM:a,motionDurationMid:r,cellHoverBg:l,lineWidth:o,lineType:i,colorPrimary:u,cellActiveWithRangeBg:s,colorTextLightSolid:f,colorTextDisabled:h,cellBgDisabled:d,colorFillSecondary:v}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:n,transform:"translateY(-50%)",content:'""'},[c]:{position:"relative",zIndex:2,display:"inline-block",minWidth:n,height:n,lineHeight:(0,tF.bf)(n),borderRadius:a,transition:`background ${r}`},[`&:hover:not(${t}-in-view), &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end)`]:{[c]:{background:l}},[`&-in-view${t}-today ${c}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${(0,tF.bf)(o)} ${i} ${u}`,borderRadius:a,content:'""'}},[`&-in-view${t}-in-range, &-in-view${t}-range-start, &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:s}},[`&-in-view${t}-selected, @@ -45,4 +45,4 @@ &${c}-slide-up-appear${c}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, &${c}-slide-up-appear${c}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:tN.fJ},[`&${c}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${c}-slide-up-leave${c}-slide-up-leave-active${t}-dropdown-placement-topLeft, &${c}-slide-up-leave${c}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:tN.ly},[`&${c}-slide-up-leave${c}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, - &${c}-slide-up-leave${c}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:tN.Uw},[`${t}-panel > ${t}-time-panel`]:{paddingTop:b},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(a).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${Z} ease-out`},(0,tW.W)(e,C,k)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:C,borderRadius:x,boxShadow:E,transition:`margin ${Z}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:B,maxWidth:S,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:g,borderInlineEnd:`${(0,tF.bf)(r)} ${l} ${R}`,li:Object.assign(Object.assign({},tD.vS),{borderRadius:L,paddingInline:g,paddingBlock:e.calc(v).sub(O).div(2).equal(),cursor:"pointer",transition:`all ${Z}`,"+ li":{marginTop:z},"&:hover":{background:y}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:o}}}}),"&-dropdown-range":{padding:`${(0,tF.bf)(e.calc(V).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,tN.oN)(e,"slide-up"),(0,tN.oN)(e,"slide-down"),(0,tq.Fm)(e,"move-up"),(0,tq.Fm)(e,"move-down")]};var t5=(0,tY.I$)("DatePicker",e=>{let t=(0,tj.IX)((0,tA.e)(e),t1(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[tJ(t),t0(t),t3(t),t6(t),tU(t),(0,tP.c)(e,{focusElCls:`${e.componentCls}-focused`})]},e=>Object.assign(Object.assign(Object.assign(Object.assign({},(0,tA.T)(e)),t4(e)),(0,tW.w)(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})),t7=c(43277);function t9(e,t){let c={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:c};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:c};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:c};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:c};default:return{points:"rtl"===e?["tr","br"]:["tl","bl"],offset:[0,4],overflow:c}}}function ce(e,t){let{allowClear:c=!0}=e,{clearIcon:n,removeIcon:a}=(0,t7.Z)(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"})),r=H.useMemo(()=>{if(!1===c)return!1;let e=!0===c?{}:c;return Object.assign({clearIcon:n},e)},[c,n]);return[r,a]}let[ct,cc]=["week","WeekPicker"],[cn,ca]=["month","MonthPicker"],[cr,cl]=["year","YearPicker"],[co,ci]=["quarter","QuarterPicker"],[cu,cs]=["time","TimePicker"];var cf=c(14726),ch=e=>H.createElement(cf.ZP,Object.assign({size:"small",type:"primary"},e));function cd(e){return(0,H.useMemo)(()=>Object.assign({button:ch},e),[e])}var cv=function(e,t){var c={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(c[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(c[n[a]]=e[n[a]]);return c},cm=e=>{let t=(0,H.forwardRef)((t,c)=>{var n;let{prefixCls:a,getPopupContainer:r,components:l,className:o,style:i,placement:u,size:s,disabled:f,bordered:h=!0,placeholder:d,popupClassName:v,dropdownClassName:m,status:g,rootClassName:z,variant:p,picker:w}=t,M=cv(t,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),Z=H.useRef(null),{getPrefixCls:x,direction:L,getPopupContainer:R,rangePicker:y}=(0,H.useContext)(tL.E_),B=x("picker",a),{compactSize:S,compactItemClassnames:k}=(0,tT.ri)(B,L),O=x(),[T,$]=(0,tk.Z)("rangePicker",p,h),F=(0,ty.Z)(B),[I,A,D]=t5(B,F),[P]=ce(t,B),N=cd(l),q=(0,tB.Z)(e=>{var t;return null!==(t=null!=s?s:S)&&void 0!==t?t:e}),W=H.useContext(tR.Z),Y=(0,H.useContext)(tS.aM),{hasFeedback:j,status:_,feedbackIcon:K}=Y,U=H.createElement(H.Fragment,null,w===cu?H.createElement(V.Z,null):H.createElement(b.Z,null),j&&K);(0,H.useImperativeHandle)(c,()=>Z.current);let[X]=(0,tO.Z)("Calendar",t$.Z),G=Object.assign(Object.assign({},X),t.locale),[Q]=(0,tx.Cn)("DatePicker",null===(n=t.popupStyle)||void 0===n?void 0:n.zIndex);return I(H.createElement(tC.Z,{space:!0},H.createElement(tw,Object.assign({separator:H.createElement("span",{"aria-label":"to",className:`${B}-separator`},H.createElement(C.Z,null)),disabled:null!=f?f:W,ref:Z,popupAlign:t9(L,u),placement:u,placeholder:void 0!==d?d:"year"===w&&G.lang.yearPlaceholder?G.lang.rangeYearPlaceholder:"quarter"===w&&G.lang.quarterPlaceholder?G.lang.rangeQuarterPlaceholder:"month"===w&&G.lang.monthPlaceholder?G.lang.rangeMonthPlaceholder:"week"===w&&G.lang.weekPlaceholder?G.lang.rangeWeekPlaceholder:"time"===w&&G.timePickerLocale.placeholder?G.timePickerLocale.rangePlaceholder:G.lang.rangePlaceholder,suffixIcon:U,prevIcon:H.createElement("span",{className:`${B}-prev-icon`}),nextIcon:H.createElement("span",{className:`${B}-next-icon`}),superPrevIcon:H.createElement("span",{className:`${B}-super-prev-icon`}),superNextIcon:H.createElement("span",{className:`${B}-super-next-icon`}),transitionName:`${O}-slide-up`,picker:w},M,{className:E()({[`${B}-${q}`]:q,[`${B}-${T}`]:$},(0,tE.Z)(B,(0,tE.F)(_,g),j),A,k,o,null==y?void 0:y.className,D,F,z),style:Object.assign(Object.assign({},null==y?void 0:y.style),i),locale:G.lang,prefixCls:B,getPopupContainer:r||R,generateConfig:e,components:N,direction:L,classNames:{popup:E()(A,v||m,D,F,z)},styles:{popup:Object.assign(Object.assign({},t.popupStyle),{zIndex:Q})},allowClear:P}))))});return t},cg=function(e,t){var c={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(c[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(c[n[a]]=e[n[a]]);return c},cz=e=>{let t=(t,c)=>{let n=c===cs?"timePicker":"datePicker",a=(0,H.forwardRef)((c,a)=>{var r;let{prefixCls:l,getPopupContainer:o,components:i,style:u,className:s,rootClassName:f,size:h,bordered:d,placement:v,placeholder:m,popupClassName:g,dropdownClassName:z,disabled:p,status:w,variant:M,onCalendarChange:Z}=c,C=cg(c,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:x,direction:L,getPopupContainer:R,[n]:y}=(0,H.useContext)(tL.E_),B=x("picker",l),{compactSize:S,compactItemClassnames:k}=(0,tT.ri)(B,L),O=H.useRef(null),[T,$]=(0,tk.Z)("datePicker",M,d),F=(0,ty.Z)(B),[I,A,D]=t5(B,F);(0,H.useImperativeHandle)(a,()=>O.current);let P=t||c.picker,N=x(),{onSelect:q,multiple:W}=C,Y=q&&"time"===t&&!W,[j,_]=ce(c,B),K=cd(i),U=(0,tB.Z)(e=>{var t;return null!==(t=null!=h?h:S)&&void 0!==t?t:e}),X=H.useContext(tR.Z),G=(0,H.useContext)(tS.aM),{hasFeedback:Q,status:J,feedbackIcon:ee}=G,et=H.createElement(H.Fragment,null,"time"===P?H.createElement(V.Z,null):H.createElement(b.Z,null),Q&&ee),[ec]=(0,tO.Z)("DatePicker",t$.Z),en=Object.assign(Object.assign({},ec),c.locale),[ea]=(0,tx.Cn)("DatePicker",null===(r=c.popupStyle)||void 0===r?void 0:r.zIndex);return I(H.createElement(tC.Z,{space:!0},H.createElement(tV,Object.assign({ref:O,placeholder:void 0!==m?m:"year"===P&&en.lang.yearPlaceholder?en.lang.yearPlaceholder:"quarter"===P&&en.lang.quarterPlaceholder?en.lang.quarterPlaceholder:"month"===P&&en.lang.monthPlaceholder?en.lang.monthPlaceholder:"week"===P&&en.lang.weekPlaceholder?en.lang.weekPlaceholder:"time"===P&&en.timePickerLocale.placeholder?en.timePickerLocale.placeholder:en.lang.placeholder,suffixIcon:et,dropdownAlign:t9(L,v),placement:v,prevIcon:H.createElement("span",{className:`${B}-prev-icon`}),nextIcon:H.createElement("span",{className:`${B}-next-icon`}),superPrevIcon:H.createElement("span",{className:`${B}-super-prev-icon`}),superNextIcon:H.createElement("span",{className:`${B}-super-next-icon`}),transitionName:`${N}-slide-up`,picker:t,onCalendarChange:(e,t,c)=>{null==Z||Z(e,t,c),Y&&q(e)}},{showToday:!0},C,{locale:en.lang,className:E()({[`${B}-${U}`]:U,[`${B}-${T}`]:$},(0,tE.Z)(B,(0,tE.F)(J,w),Q),A,k,null==y?void 0:y.className,s,D,F,f),style:Object.assign(Object.assign({},null==y?void 0:y.style),u),prefixCls:B,getPopupContainer:o||R,generateConfig:e,components:K,direction:L,disabled:null!=p?p:X,classNames:{popup:E()(A,D,F,f,g||z)},styles:{popup:Object.assign(Object.assign({},c.popupStyle),{zIndex:ea})},allowClear:j,removeIcon:_}))))});return a},c=t(),n=t(ct,cc),a=t(cn,ca),r=t(cr,cl),l=t(co,ci),o=t(cu,cs);return{DatePicker:c,WeekPicker:n,MonthPicker:a,YearPicker:r,TimePicker:o,QuarterPicker:l}},cp=e=>{let{DatePicker:t,WeekPicker:c,MonthPicker:n,YearPicker:a,TimePicker:r,QuarterPicker:l}=cz(e),o=cm(e);return t.WeekPicker=c,t.MonthPicker=n,t.YearPicker=a,t.RangePicker=o,t.TimePicker=r,t.QuarterPicker=l,t};let cw=cp({getNow:function(){return a()()},getFixedDate:function(e){return a()(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return a()().locale(w(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(w(e)).weekday(0)},getWeek:function(e,t){return t.locale(w(e)).week()},getShortWeekDays:function(e){return a()().locale(w(e)).localeData().weekdaysMin()},getShortMonths:function(e){return a()().locale(w(e)).localeData().monthsShort()},format:function(e,t,c){return t.locale(w(e)).format(c)},parse:function(e,t,c){for(var n=w(e),r=0;rt.indexOf(n)&&(c[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(c[n[a]]=e[n[a]]);return c};let{TimePicker:i,RangePicker:u}=r.default,s=n.forwardRef((e,t)=>n.createElement(u,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),f=n.forwardRef((e,t)=>{var{addon:c,renderExtraFooter:a,variant:r,bordered:u}=e,s=o(e,["addon","renderExtraFooter","variant","bordered"]);let[f]=(0,l.Z)("timePicker",r,u),h=n.useMemo(()=>a||c||void 0,[c,a]);return n.createElement(i,Object.assign({},s,{mode:void 0,ref:t,renderExtraFooter:h,variant:f}))}),h=(0,a.Z)(f,"picker");f._InternalPanelDoNotUseOrYouWillBeFired=h,f.RangePicker=s,f._InternalPanelDoNotUseOrYouWillBeFired=h,t.Z=f},59847:function(e,t,c){"use strict";c.d(t,{Z:function(){return ed}});var n=c(67294),a=c(93967),r=c.n(a),l=c(87462),o=c(74902),i=c(1413),u=c(97685),s=c(45987),f=c(71002),h=c(82275),d=c(88708),v=c(17341),m=c(21770),g=c(80334),z=function(e){var t=n.useRef({valueLabels:new Map});return n.useMemo(function(){var c=t.current.valueLabels,n=new Map,a=e.map(function(e){var t,a=e.value,r=null!==(t=e.label)&&void 0!==t?t:c.get(a);return n.set(a,r),(0,i.Z)((0,i.Z)({},e),{},{label:r})});return t.current.valueLabels=n,[a]},[e])},p=c(1089),w=c(4942),M=c(50344),Z=function(){return null},H=["children","value"];function b(e){if(!e)return e;var t=(0,i.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,g.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}var V=function(e,t,c){var a=c.treeNodeFilterProp,r=c.filterTreeNode,l=c.fieldNames.children;return n.useMemo(function(){if(!t||!1===r)return e;if("function"==typeof r)c=r;else{var c,n=t.toUpperCase();c=function(e,t){return String(t[a]).toUpperCase().includes(n)}}return function e(n){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n.reduce(function(n,r){var o=r[l],u=a||c(t,b(r)),s=e(o||[],u);return(u||s.length)&&n.push((0,i.Z)((0,i.Z)({},r),{},(0,w.Z)({isLeaf:void 0},l,s))),n},[])}(e)},[e,t,l,a,r])};function C(e){var t=n.useRef();return t.current=e,n.useCallback(function(){return t.current.apply(t,arguments)},[])}var x=n.createContext(null),E=c(99814),L=c(15105),R=c(56982),y=n.createContext(null);function B(e){return!e||e.disabled||e.disableCheckbox||!1===e.checkable}var S={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},k=n.forwardRef(function(e,t){var c=(0,h.lk)(),a=c.prefixCls,r=c.multiple,i=c.searchValue,s=c.toggleOpen,f=c.open,d=c.notFoundContent,v=n.useContext(y),m=v.virtual,g=v.listHeight,z=v.listItemHeight,p=v.listItemScrollOffset,w=v.treeData,M=v.fieldNames,Z=v.onSelect,H=v.dropdownMatchSelectWidth,b=v.treeExpandAction,V=v.treeTitleRender,C=v.onPopupScroll,k=n.useContext(x),O=k.checkable,T=k.checkedKeys,$=k.halfCheckedKeys,F=k.treeExpandedKeys,I=k.treeDefaultExpandAll,A=k.treeDefaultExpandedKeys,D=k.onTreeExpand,P=k.treeIcon,N=k.showTreeIcon,q=k.switcherIcon,W=k.treeLine,Y=k.treeNodeFilterProp,j=k.loadData,_=k.treeLoadedKeys,K=k.treeMotion,U=k.onTreeLoad,X=k.keyEntities,G=n.useRef(),Q=(0,R.Z)(function(){return w},[f,w],function(e,t){return t[0]&&e[1]!==t[1]}),J=n.useState(null),ee=(0,u.Z)(J,2),et=ee[0],ec=ee[1],en=X[et],ea=n.useMemo(function(){return O?{checked:T,halfChecked:$}:null},[O,T,$]);n.useEffect(function(){if(f&&!r&&T.length){var e;null===(e=G.current)||void 0===e||e.scrollTo({key:T[0]}),ec(T[0])}},[f]);var er=String(i).toLowerCase(),el=n.useState(A),eo=(0,u.Z)(el,2),ei=eo[0],eu=eo[1],es=n.useState(null),ef=(0,u.Z)(es,2),eh=ef[0],ed=ef[1],ev=n.useMemo(function(){return F?(0,o.Z)(F):i?eh:ei},[ei,eh,F,i]);n.useEffect(function(){if(i){var e;ed((e=[],!function t(c){c.forEach(function(c){var n=c[M.children];n&&(e.push(c[M.value]),t(n))})}(w),e))}},[i]);var em=function(e){e.preventDefault()},eg=function(e,t){var c=t.node;!(O&&B(c))&&(Z(c.key,{selected:!T.includes(c.key)}),r||s(!1))};if(n.useImperativeHandle(t,function(){var e;return{scrollTo:null===(e=G.current)||void 0===e?void 0:e.scrollTo,onKeyDown:function(e){var t;switch(e.which){case L.Z.UP:case L.Z.DOWN:case L.Z.LEFT:case L.Z.RIGHT:null===(t=G.current)||void 0===t||t.onKeyDown(e);break;case L.Z.ENTER:if(en){var c=(null==en?void 0:en.node)||{},n=c.selectable,a=c.value;!1!==n&&eg(null,{node:{key:et},selected:!T.includes(a)})}break;case L.Z.ESC:s(!1)}},onKeyUp:function(){}}}),0===Q.length)return n.createElement("div",{role:"listbox",className:"".concat(a,"-empty"),onMouseDown:em},d);var ez={fieldNames:M};return _&&(ez.loadedKeys=_),ev&&(ez.expandedKeys=ev),n.createElement("div",{onMouseDown:em},en&&f&&n.createElement("span",{style:S,"aria-live":"assertive"},en.node.value),n.createElement(E.Z,(0,l.Z)({ref:G,focusable:!1,prefixCls:"".concat(a,"-tree"),treeData:Q,height:g,itemHeight:z,itemScrollOffset:p,virtual:!1!==m&&!1!==H,multiple:r,icon:P,showIcon:N,switcherIcon:q,showLine:W,loadData:i?null:j,motion:K,activeKey:et,checkable:O,checkStrictly:!0,checkedKeys:ea,selectedKeys:O?[]:T,defaultExpandAll:I,titleRender:V},ez,{onActiveChange:ec,onSelect:eg,onCheck:eg,onExpand:function(e){eu(e),ed(e),D&&D(e)},onLoad:U,filterTreeNode:function(e){return!!er&&String(e[Y]).toLowerCase().includes(er)},expandAction:b,onScroll:C})))}),O="SHOW_ALL",T="SHOW_PARENT",$="SHOW_CHILD";function F(e,t,c,n){var a=new Set(e);return t===$?e.filter(function(e){var t=c[e];return!(t&&t.children&&t.children.some(function(e){var t=e.node;return a.has(t[n.value])})&&t.children.every(function(e){var t=e.node;return B(t)||a.has(t[n.value])}))}):t===T?e.filter(function(e){var t=c[e],n=t?t.parent:null;return!(n&&!B(n.node)&&a.has(n.key))}):e}var I=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"],A=n.forwardRef(function(e,t){var c=e.id,a=e.prefixCls,r=e.value,w=e.defaultValue,E=e.onChange,L=e.onSelect,R=e.onDeselect,B=e.searchValue,S=e.inputValue,T=e.onSearch,A=e.autoClearSearchValue,D=void 0===A||A,P=e.filterTreeNode,N=e.treeNodeFilterProp,q=void 0===N?"value":N,W=e.showCheckedStrategy,Y=e.treeNodeLabelProp,j=e.multiple,_=e.treeCheckable,K=e.treeCheckStrictly,U=e.labelInValue,X=e.fieldNames,G=e.treeDataSimpleMode,Q=e.treeData,J=e.children,ee=e.loadData,et=e.treeLoadedKeys,ec=e.onTreeLoad,en=e.treeDefaultExpandAll,ea=e.treeExpandedKeys,er=e.treeDefaultExpandedKeys,el=e.onTreeExpand,eo=e.treeExpandAction,ei=e.virtual,eu=e.listHeight,es=void 0===eu?200:eu,ef=e.listItemHeight,eh=void 0===ef?20:ef,ed=e.listItemScrollOffset,ev=void 0===ed?0:ed,em=e.onDropdownVisibleChange,eg=e.dropdownMatchSelectWidth,ez=void 0===eg||eg,ep=e.treeLine,ew=e.treeIcon,eM=e.showTreeIcon,eZ=e.switcherIcon,eH=e.treeMotion,eb=e.treeTitleRender,eV=e.onPopupScroll,eC=(0,s.Z)(e,I),ex=(0,d.ZP)(c),eE=_&&!K,eL=_||K,eR=K||U,ey=eL||j,eB=(0,m.Z)(w,{value:r}),eS=(0,u.Z)(eB,2),ek=eS[0],eO=eS[1],eT=n.useMemo(function(){return _?W||$:O},[W,_]),e$=n.useMemo(function(){var e,t,c,n,a;return t=(e=X||{}).label,c=e.value,n=e.children,{_title:t?[t]:["title","label"],value:a=c||"value",key:a,children:n||"children"}},[JSON.stringify(X)]),eF=(0,m.Z)("",{value:void 0!==B?B:S,postState:function(e){return e||""}}),eI=(0,u.Z)(eF,2),eA=eI[0],eD=eI[1],eP=n.useMemo(function(){if(Q){var e,t,c,a,r,l;return G?(t=(e=(0,i.Z)({id:"id",pId:"pId",rootPId:null},!0!==G?G:{})).id,c=e.pId,a=e.rootPId,r={},l=[],Q.map(function(e){var c=(0,i.Z)({},e),n=c[t];return r[n]=c,c.key=c.key||n,c}).forEach(function(e){var t=e[c],n=r[t];n&&(n.children=n.children||[],n.children.push(e)),t!==a&&(n||null!==a)||l.push(e)}),l):Q}return function e(t){return(0,M.Z)(t).map(function(t){if(!n.isValidElement(t)||!t.type)return null;var c=t.key,a=t.props,r=a.children,l=a.value,o=(0,s.Z)(a,H),u=(0,i.Z)({key:c,value:l},o),f=e(r);return f.length&&(u.children=f),u}).filter(function(e){return e})}(J)},[J,G,Q]),eN=n.useMemo(function(){return(0,p.I8)(eP,{fieldNames:e$,initWrapper:function(e){return(0,i.Z)((0,i.Z)({},e),{},{valueEntities:new Map})},processEntity:function(e,t){var c=e.node[e$.value];t.valueEntities.set(c,e)}})},[eP,e$]),eq=eN.keyEntities,eW=eN.valueEntities,eY=n.useCallback(function(e){var t=[],c=[];return e.forEach(function(e){eW.has(e)?c.push(e):t.push(e)}),{missingRawValues:t,existRawValues:c}},[eW]),ej=V(eP,eA,{fieldNames:e$,treeNodeFilterProp:q,filterTreeNode:P}),e_=n.useCallback(function(e){if(e){if(Y)return e[Y];for(var t=e$._title,c=0;c1&&void 0!==arguments[1]?arguments[1]:"0",u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return a.map(function(a,s){var f="".concat(r,"-").concat(s),h=a[l.value],d=c.includes(h),v=e(a[l.children]||[],f,d),m=n.createElement(Z,a,v.map(function(e){return e.node}));if(t===h&&(o=m),d){var g={pos:f,node:m,children:v};return u||i.push(g),g}return null}).filter(function(e){return e})}(a),i.sort(function(e,t){var n=e.node.props.value,a=t.node.props.value;return c.indexOf(n)-c.indexOf(a)}))}Object.defineProperty(e,"triggerNode",{get:function(){return(0,g.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),u(),o}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return((0,g.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),u(),r)?i:i.map(function(e){return e.node})}})}(h,l,e,eP,d,e$),eL?h.checked=i:h.selected=i;var v=eR?f:f.map(function(e){return e.value});E(ey?v:v[0],eR?null:f.map(function(e){return e.label}),h)}}),e9=n.useCallback(function(e,t){var c=t.selected,n=t.source,a=eq[e],r=null==a?void 0:a.node,l=null!==(u=null==r?void 0:r[e$.value])&&void 0!==u?u:e;if(ey){var i=c?[].concat((0,o.Z)(e4),[l]):e8.filter(function(e){return e!==l});if(eE){var u,s,f=eY(i),h=f.missingRawValues,d=f.existRawValues.map(function(e){return eW.get(e).key});s=c?(0,v.S)(d,!0,eq).checkedKeys:(0,v.S)(d,{checked:!1,halfCheckedKeys:e6},eq).checkedKeys,i=[].concat((0,o.Z)(h),(0,o.Z)(s.map(function(e){return eq[e].node[e$.value]})))}e7(i,{selected:c,triggerValue:l},n||"option")}else e7([l],{selected:!0,triggerValue:l},"option");c||!ey?null==L||L(l,b(r)):null==R||R(l,b(r))},[eY,eW,eq,e$,ey,e4,e7,eE,L,R,e8,e6]),te=n.useCallback(function(e){if(em){var t={};Object.defineProperty(t,"documentClickClose",{get:function(){return(0,g.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),em(e,t)}},[em]),tt=C(function(e,t){var c=e.map(function(e){return e.value});if("clear"===t.type){e7(c,{},"selection");return}t.values.length&&e9(t.values[0].value,{selected:!1,source:"selection"})}),tc=n.useMemo(function(){return{virtual:ei,dropdownMatchSelectWidth:ez,listHeight:es,listItemHeight:eh,listItemScrollOffset:ev,treeData:ej,fieldNames:e$,onSelect:e9,treeExpandAction:eo,treeTitleRender:eb,onPopupScroll:eV}},[ei,ez,es,eh,ev,ej,e$,e9,eo,eb,eV]),tn=n.useMemo(function(){return{checkable:eL,loadData:ee,treeLoadedKeys:et,onTreeLoad:ec,checkedKeys:e8,halfCheckedKeys:e6,treeDefaultExpandAll:en,treeExpandedKeys:ea,treeDefaultExpandedKeys:er,onTreeExpand:el,treeIcon:ew,treeMotion:eH,showTreeIcon:eM,switcherIcon:eZ,treeLine:ep,treeNodeFilterProp:q,keyEntities:eq}},[eL,ee,et,ec,e8,e6,en,ea,er,el,ew,eH,eM,eZ,ep,q,eq]);return n.createElement(y.Provider,{value:tc},n.createElement(x.Provider,{value:tn},n.createElement(h.Ac,(0,l.Z)({ref:t},eC,{id:ex,prefixCls:void 0===a?"rc-tree-select":a,mode:ey?"multiple":void 0,displayValues:e5,onDisplayValuesChange:tt,searchValue:eA,onSearch:function(e){eD(e),null==T||T(e)},OptionList:k,emptyOptions:!eP.length,onDropdownVisibleChange:te,dropdownMatchSelectWidth:ez}))))});A.TreeNode=Z,A.SHOW_ALL=O,A.SHOW_PARENT=T,A.SHOW_CHILD=$;var D=c(98423),P=c(87263),N=c(33603),q=c(8745),W=c(9708),Y=c(53124),j=c(88258),_=c(98866),K=c(35792),U=c(98675),X=c(65223),G=c(27833),Q=c(30307),J=c(15030),ee=c(43277),et=c(78642),ec=c(4173),en=c(61639),ea=c(25446),er=c(63185),el=c(83262),eo=c(83559),ei=c(32157);let eu=e=>{let{componentCls:t,treePrefixCls:c,colorBgElevated:n}=e,a=`.${c}`;return[{[`${t}-dropdown`]:[{padding:`${(0,ea.bf)(e.paddingXS)} ${(0,ea.bf)(e.calc(e.paddingXS).div(2).equal())}`},(0,ei.Yk)(c,(0,el.IX)(e,{colorBgContainer:n})),{[a]:{borderRadius:0,[`${a}-list-holder-inner`]:{alignItems:"stretch",[`${a}-treenode`]:{[`${a}-node-content-wrapper`]:{flex:"auto"}}}}},(0,er.C2)(`${c}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${a}-switcher${a}-switcher_close`]:{[`${a}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};var es=function(e,t){var c={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(c[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(c[n[a]]=e[n[a]]);return c};let ef=n.forwardRef((e,t)=>{var c;let a;let{prefixCls:l,size:o,disabled:i,bordered:u=!0,className:s,rootClassName:f,treeCheckable:h,multiple:d,listHeight:v=256,listItemHeight:m=26,placement:g,notFoundContent:z,switcherIcon:p,treeLine:w,getPopupContainer:M,popupClassName:Z,dropdownClassName:H,treeIcon:b=!1,transitionName:V,choiceTransitionName:C="",status:x,treeExpandAction:E,builtinPlacements:L,dropdownMatchSelectWidth:R,popupMatchSelectWidth:y,allowClear:B,variant:S,dropdownStyle:k,tagRender:O}=e,T=es(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender"]),{getPopupContainer:$,getPrefixCls:F,renderEmpty:I,direction:q,virtual:ea,popupMatchSelectWidth:er,popupOverflow:ef}=n.useContext(Y.E_),eh=F(),ed=F("select",l),ev=F("select-tree",l),em=F("tree-select",l),{compactSize:eg,compactItemClassnames:ez}=(0,ec.ri)(ed,q),ep=(0,K.Z)(ed),ew=(0,K.Z)(em),[eM,eZ,eH]=(0,J.Z)(ed,ep),[eb]=(0,eo.I$)("TreeSelect",e=>{let t=(0,el.IX)(e,{treePrefixCls:ev});return[eu(t)]},ei.TM)(em,ew),[eV,eC]=(0,G.Z)("treeSelect",S,u),ex=r()(Z||H,`${em}-dropdown`,{[`${em}-dropdown-rtl`]:"rtl"===q},f,eH,ep,ew,eZ),eE=!!(h||d),eL=(0,et.Z)(e.suffixIcon,e.showArrow),eR=null!==(c=null!=y?y:R)&&void 0!==c?c:er,{status:ey,hasFeedback:eB,isFormItemInput:eS,feedbackIcon:ek}=n.useContext(X.aM),eO=(0,W.F)(ey,x),{suffixIcon:eT,removeIcon:e$,clearIcon:eF}=(0,ee.Z)(Object.assign(Object.assign({},T),{multiple:eE,showSuffixIcon:eL,hasFeedback:eB,feedbackIcon:ek,prefixCls:ed,componentName:"TreeSelect"}));a=void 0!==z?z:(null==I?void 0:I("Select"))||n.createElement(j.Z,{componentName:"Select"});let eI=(0,D.Z)(T,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),eA=n.useMemo(()=>void 0!==g?g:"rtl"===q?"bottomRight":"bottomLeft",[g,q]),eD=(0,U.Z)(e=>{var t;return null!==(t=null!=o?o:eg)&&void 0!==t?t:e}),eP=n.useContext(_.Z),eN=r()(!l&&em,{[`${ed}-lg`]:"large"===eD,[`${ed}-sm`]:"small"===eD,[`${ed}-rtl`]:"rtl"===q,[`${ed}-${eV}`]:eC,[`${ed}-in-form-item`]:eS},(0,W.Z)(ed,eO,eB),ez,s,f,eH,ep,ew,eZ),[eq]=(0,P.Cn)("SelectLike",null==k?void 0:k.zIndex),eW=n.createElement(A,Object.assign({virtual:ea,disabled:null!=i?i:eP},eI,{dropdownMatchSelectWidth:eR,builtinPlacements:(0,Q.Z)(L,ef),ref:t,prefixCls:ed,className:eN,listHeight:v,listItemHeight:m,treeCheckable:h?n.createElement("span",{className:`${ed}-tree-checkbox-inner`}):h,treeLine:!!w,suffixIcon:eT,multiple:eE,placement:eA,removeIcon:e$,allowClear:!0===B?{clearIcon:eF}:B,switcherIcon:e=>n.createElement(en.Z,{prefixCls:ev,switcherIcon:p,treeNodeProps:e,showLine:w}),showTreeIcon:b,notFoundContent:a,getPopupContainer:M||$,treeMotion:null,dropdownClassName:ex,dropdownStyle:Object.assign(Object.assign({},k),{zIndex:eq}),choiceTransitionName:(0,N.m)(eh,"",C),transitionName:(0,N.m)(eh,"slide-up",V),treeExpandAction:E,tagRender:eE?O:void 0}));return eM(eb(eW))}),eh=(0,q.Z)(ef);ef.TreeNode=Z,ef.SHOW_ALL=O,ef.SHOW_PARENT=T,ef.SHOW_CHILD=$,ef._InternalPanelDoNotUseOrYouWillBeFired=eh;var ed=ef},97909:function(e){var t,c,n,a,r,l,o,i,u,s,f,h,d,v,m,g,z,p,w,M,Z,H;e.exports=(t="millisecond",c="second",n="minute",a="hour",r="week",l="month",o="quarter",i="year",u="date",s="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(e,t,c){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(c)+e},(m={})[v="en"]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],c=e%100;return"["+e+(t[(c-20)%10]||t[c]||"th")+"]"}},g="$isDayjsObject",z=function(e){return e instanceof Z||!(!e||!e[g])},p=function e(t,c,n){var a;if(!t)return v;if("string"==typeof t){var r=t.toLowerCase();m[r]&&(a=r),c&&(m[r]=c,a=r);var l=t.split("-");if(!a&&l.length>1)return e(l[0])}else{var o=t.name;m[o]=t,a=o}return!n&&a&&(v=a),a||!n&&v},w=function(e,t){if(z(e))return e.clone();var c="object"==typeof t?t:{};return c.date=e,c.args=arguments,new Z(c)},(M={s:d,z:function(e){var t=-e.utcOffset(),c=Math.abs(t);return(t<=0?"+":"-")+d(Math.floor(c/60),2,"0")+":"+d(c%60,2,"0")},m:function e(t,c){if(t.date()68?1900:2e3)},i=function(e){return function(t){this[e]=+t}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e||"Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),c=60*t[1]+(+t[2]||0);return 0===c?0:"+"===t[0]?-c:c}(e)}],s=function(e){var t=l[e];return t&&(t.indexOf?t:t.s.concat(t.f))},f=function(e,t){var c,n=l.meridiem;if(n){for(var a=1;a<=24;a+=1)if(e.indexOf(n(a,0,t))>-1){c=a>12;break}}else c=e===(t?"pm":"PM");return c},h={A:[r,function(e){this.afternoon=f(e,!1)}],a:[r,function(e){this.afternoon=f(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[a,i("seconds")],ss:[a,i("seconds")],m:[a,i("minutes")],mm:[a,i("minutes")],H:[a,i("hours")],h:[a,i("hours")],HH:[a,i("hours")],hh:[a,i("hours")],D:[a,i("day")],DD:[n,i("day")],Do:[r,function(e){var t=l.ordinal,c=e.match(/\d+/);if(this.day=c[0],t)for(var n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}],M:[a,i("month")],MM:[n,i("month")],MMM:[r,function(e){var t=s("months"),c=(s("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(c<1)throw Error();this.month=c%12||c}],MMMM:[r,function(e){var t=s("months").indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,i("year")],YY:[n,function(e){this.year=o(e)}],YYYY:[/\d{4}/,i("year")],Z:u,ZZ:u},function(e,n,a){a.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(o=e.parseTwoDigitYear);var r=n.prototype,i=r.parse;r.parse=function(e){var n=e.date,r=e.utc,o=e.args;this.$u=r;var u=o[1];if("string"==typeof u){var s=!0===o[2],f=!0===o[3],d=o[2];f&&(d=o[2]),l=this.$locale(),!s&&d&&(l=a.Ls[d]),this.$d=function(e,n,a){try{if(["x","X"].indexOf(n)>-1)return new Date(("X"===n?1e3:1)*e);var r=(function(e){var n,a;n=e,a=l&&l.formats;for(var r=(e=n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,c,n){var r=n&&n.toUpperCase();return c||a[n]||t[n]||a[r].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,c){return t||c.slice(1)})})).match(c),o=r.length,i=0;i0?i-1:g.getMonth());var M=s||0,Z=f||0,H=d||0,b=v||0;return m?new Date(Date.UTC(p,w,z,M,Z,H,b+60*m.offset*1e3)):a?new Date(Date.UTC(p,w,z,M,Z,H,b)):new Date(p,w,z,M,Z,H,b)}catch(e){return new Date("")}}(n,u,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),(s||f)&&n!=this.format(u)&&(this.$d=new Date("")),l={}}else if(u instanceof Array)for(var v=u.length,m=1;m<=v;m+=1){o[1]=u[m-1];var g=a.apply(this,o);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}m===v&&(this.$d=new Date(""))}else i.call(this,e)}})},26850:function(e){e.exports=function(e,t,c){var n=t.prototype,a=function(e){return e&&(e.indexOf?e:e.s)},r=function(e,t,c,n,r){var l=e.name?e:e.$locale(),o=a(l[t]),i=a(l[c]),u=o||i.map(function(e){return e.slice(0,n)});if(!r)return u;var s=l.weekStart;return u.map(function(e,t){return u[(t+(s||0))%7]})},l=function(){return c.Ls[c.locale()]},o=function(e,t){return e.formats[t]||e.formats[t.toUpperCase()].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,c){return t||c.slice(1)})},i=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):r(e,"months")},monthsShort:function(t){return t?t.format("MMM"):r(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):r(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):r(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):r(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return o(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};n.localeData=function(){return i.bind(this)()},c.localeData=function(){var e=l();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return c.weekdays()},weekdaysShort:function(){return c.weekdaysShort()},weekdaysMin:function(){return c.weekdaysMin()},months:function(){return c.months()},monthsShort:function(){return c.monthsShort()},longDateFormat:function(t){return o(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},c.months=function(){return r(l(),"months")},c.monthsShort=function(){return r(l(),"monthsShort","months",3)},c.weekdays=function(e){return r(l(),"weekdays",null,null,e)},c.weekdaysShort=function(e){return r(l(),"weekdaysShort","weekdays",3,e)},c.weekdaysMin=function(e){return r(l(),"weekdaysMin","weekdays",2,e)}}},90888:function(e){var t,c;e.exports=(t="week",c="year",function(e,n,a){var r=n.prototype;r.week=function(e){if(void 0===e&&(e=null),null!==e)return this.add(7*(e-this.week()),"day");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var r=a(this).startOf(c).add(1,c).date(n),l=a(this).endOf(t);if(r.isBefore(l))return 1}var o=a(this).startOf(c).date(n).startOf(t).subtract(1,"millisecond"),i=this.diff(o,t,!0);return i<0?a(this).startOf("week").week():Math.ceil(i)},r.weeks=function(e){return void 0===e&&(e=null),this.week(e)}})},99873:function(e){e.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),c=this.year();return 1===t&&11===e?c+1:0===e&&t>=52?c-1:c}}},33088:function(e){e.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,c=this.$W,n=(c>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===c?H(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===c?H(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=f.exec(e))?new C(t[1],t[2],t[3],1):(t=h.exec(e))?new C(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=d.exec(e))?H(t[1],t[2],t[3],t[4]):(t=v.exec(e))?H(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?R(t[1],t[2]/100,t[3]/100,1):(t=g.exec(e))?R(t[1],t[2]/100,t[3]/100,t[4]):z.hasOwnProperty(e)?Z(z[e]):"transparent"===e?new C(NaN,NaN,NaN,0):null}function Z(e){return new C(e>>16&255,e>>8&255,255&e,1)}function H(e,t,c,n){return n<=0&&(e=t=c=NaN),new C(e,t,c,n)}function b(e){return(e instanceof a||(e=M(e)),e)?(e=e.rgb(),new C(e.r,e.g,e.b,e.opacity)):new C}function V(e,t,c,n){return 1==arguments.length?b(e):new C(e,t,c,null==n?1:n)}function C(e,t,c,n){this.r=+e,this.g=+t,this.b=+c,this.opacity=+n}function x(){return"#"+L(this.r)+L(this.g)+L(this.b)}function E(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function L(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function R(e,t,c,n){return n<=0?e=t=c=NaN:c<=0||c>=1?e=t=NaN:t<=0&&(e=NaN),new B(e,t,c,n)}function y(e){if(e instanceof B)return new B(e.h,e.s,e.l,e.opacity);if(e instanceof a||(e=M(e)),!e)return new B;if(e instanceof B)return e;var t=(e=e.rgb()).r/255,c=e.g/255,n=e.b/255,r=Math.min(t,c,n),l=Math.max(t,c,n),o=NaN,i=l-r,u=(l+r)/2;return i?(o=t===l?(c-n)/i+(c0&&u<1?0:o,new B(o,i,u,e.opacity)}function B(e,t,c,n){this.h=+e,this.s=+t,this.l=+c,this.opacity=+n}function S(e,t,c){return(e<60?t+(c-t)*e/60:e<180?c:e<240?t+(c-t)*(240-e)/60:t)*255}(0,n.Z)(a,M,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:p,formatHex:p,formatHsl:function(){return y(this).formatHsl()},formatRgb:w,toString:w}),(0,n.Z)(C,V,(0,n.l)(a,{brighter:function(e){return e=null==e?l:Math.pow(l,e),new C(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?r:Math.pow(r,e),new C(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:x,formatHex:x,formatRgb:E,toString:E})),(0,n.Z)(B,function(e,t,c,n){return 1==arguments.length?y(e):new B(e,t,c,null==n?1:n)},(0,n.l)(a,{brighter:function(e){return e=null==e?l:Math.pow(l,e),new B(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?r:Math.pow(r,e),new B(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,c=this.l,n=c+(c<.5?c:1-c)*t,a=2*c-n;return new C(S(e>=240?e-240:e+120,a,n),S(e,a,n),S(e<120?e+240:e-120,a,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},44087:function(e,t,c){"use strict";function n(e,t,c){e.prototype=t.prototype=c,c.constructor=e}function a(e,t){var c=Object.create(e.prototype);for(var n in t)c[n]=t[n];return c}c.d(t,{Z:function(){return n},l:function(){return a}})},92626:function(e,t){"use strict";var c={value:()=>{}};function n(){for(var e,t=0,c=arguments.length,n={};t=0&&(t=e.slice(c+1),e=e.slice(0,c)),e&&!n.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),l=-1,o=a.length;if(arguments.length<2){for(;++l0)for(var c,n,a=Array(c),r=0;r=0&&t._call.call(null,e),t=t._next;--r}()}finally{r=0,function(){for(var e,t,c=n,r=1/0;c;)c._call?(r>c._time&&(r=c._time),e=c,c=c._next):(t=c._next,c._next=null,c=e?e._next=t:n=t);a=e,w(r)}(),u=0}}function p(){var e=f.now(),t=e-i;t>1e3&&(s-=t,i=e)}function w(e){!r&&(l&&(l=clearTimeout(l)),e-u>24?(e<1/0&&(l=setTimeout(z,e-f.now()-s)),o&&(o=clearInterval(o))):(o||(i=f.now(),o=setInterval(p,1e3)),r=1,h(z)))}m.prototype=g.prototype={constructor:m,restart:function(e,t,c){if("function"!=typeof e)throw TypeError("callback is not a function");c=(null==c?d():+c)+(null==t?0:+t),this._next||a===this||(a?a._next=this:n=this,a=this),this._call=e,this._time=c,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},36459:function(e,t,c){"use strict";function n(e){if(null==e)throw TypeError("Cannot destructure "+e)}c.d(t,{Z:function(){return n}})},24885:function(e,t,c){"use strict";c.d(t,{Z:function(){return m}});var n=c(67294),a=c(83840),r=c(76248),l=c(36851);function o(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},n.createElement("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"}))}function i(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},n.createElement("path",{d:"M0 0h32v4.2H0z"}))}function u(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30"},n.createElement("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"}))}function s(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},n.createElement("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"}))}function f(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},n.createElement("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"}))}let h=({children:e,className:t,...c})=>n.createElement("button",{type:"button",className:(0,a.Z)(["react-flow__controls-button",t]),...c},e);h.displayName="ControlButton";let d=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom}),v=({style:e,showZoom:t=!0,showFitView:c=!0,showInteractive:v=!0,fitViewOptions:m,onZoomIn:g,onZoomOut:z,onFitView:p,onInteractiveChange:w,className:M,children:Z,position:H="bottom-left"})=>{let b=(0,l.AC)(),[V,C]=(0,n.useState)(!1),{isInteractive:x,minZoomReached:E,maxZoomReached:L}=(0,l.oR)(d,r.X),{zoomIn:R,zoomOut:y,fitView:B}=(0,l._K)();return((0,n.useEffect)(()=>{C(!0)},[]),V)?n.createElement(l.s_,{className:(0,a.Z)(["react-flow__controls",M]),position:H,style:e,"data-testid":"rf__controls"},t&&n.createElement(n.Fragment,null,n.createElement(h,{onClick:()=>{R(),g?.()},className:"react-flow__controls-zoomin",title:"zoom in","aria-label":"zoom in",disabled:L},n.createElement(o,null)),n.createElement(h,{onClick:()=>{y(),z?.()},className:"react-flow__controls-zoomout",title:"zoom out","aria-label":"zoom out",disabled:E},n.createElement(i,null))),c&&n.createElement(h,{className:"react-flow__controls-fitview",onClick:()=>{B(m),p?.()},title:"fit view","aria-label":"fit view"},n.createElement(u,null)),v&&n.createElement(h,{className:"react-flow__controls-interactive",onClick:()=>{b.setState({nodesDraggable:!x,nodesConnectable:!x,elementsSelectable:!x}),w?.(!x)},title:"toggle interactivity","aria-label":"toggle interactivity"},x?n.createElement(f,null):n.createElement(s,null)),Z):null};v.displayName="Controls";var m=(0,n.memo)(v)}}]); \ No newline at end of file + &${c}-slide-up-leave${c}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:tN.Uw},[`${t}-panel > ${t}-time-panel`]:{paddingTop:b},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(a).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${Z} ease-out`},(0,tW.W)(e,C,k)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:C,borderRadius:x,boxShadow:E,transition:`margin ${Z}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:B,maxWidth:S,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:g,borderInlineEnd:`${(0,tF.bf)(r)} ${l} ${R}`,li:Object.assign(Object.assign({},tD.vS),{borderRadius:L,paddingInline:g,paddingBlock:e.calc(v).sub(O).div(2).equal(),cursor:"pointer",transition:`all ${Z}`,"+ li":{marginTop:z},"&:hover":{background:y}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:o}}}}),"&-dropdown-range":{padding:`${(0,tF.bf)(e.calc(V).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,tN.oN)(e,"slide-up"),(0,tN.oN)(e,"slide-down"),(0,tq.Fm)(e,"move-up"),(0,tq.Fm)(e,"move-down")]};var t5=(0,tY.I$)("DatePicker",e=>{let t=(0,tj.IX)((0,tA.e)(e),t1(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[tJ(t),t0(t),t3(t),t6(t),tU(t),(0,tP.c)(e,{focusElCls:`${e.componentCls}-focused`})]},e=>Object.assign(Object.assign(Object.assign(Object.assign({},(0,tA.T)(e)),t4(e)),(0,tW.w)(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})),t7=c(43277);function t9(e,t){let c={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:c};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:c};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:c};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:c};default:return{points:"rtl"===e?["tr","br"]:["tl","bl"],offset:[0,4],overflow:c}}}function ce(e,t){let{allowClear:c=!0}=e,{clearIcon:n,removeIcon:a}=(0,t7.Z)(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"})),r=H.useMemo(()=>{if(!1===c)return!1;let e=!0===c?{}:c;return Object.assign({clearIcon:n},e)},[c,n]);return[r,a]}let[ct,cc]=["week","WeekPicker"],[cn,ca]=["month","MonthPicker"],[cr,cl]=["year","YearPicker"],[co,ci]=["quarter","QuarterPicker"],[cu,cs]=["time","TimePicker"];var cf=c(14726),ch=e=>H.createElement(cf.ZP,Object.assign({size:"small",type:"primary"},e));function cd(e){return(0,H.useMemo)(()=>Object.assign({button:ch},e),[e])}var cv=function(e,t){var c={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(c[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(c[n[a]]=e[n[a]]);return c},cm=e=>{let t=(0,H.forwardRef)((t,c)=>{var n;let{prefixCls:a,getPopupContainer:r,components:l,className:o,style:i,placement:u,size:s,disabled:f,bordered:h=!0,placeholder:d,popupClassName:v,dropdownClassName:m,status:g,rootClassName:z,variant:p,picker:w}=t,M=cv(t,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),Z=H.useRef(null),{getPrefixCls:x,direction:L,getPopupContainer:R,rangePicker:y}=(0,H.useContext)(tL.E_),B=x("picker",a),{compactSize:S,compactItemClassnames:k}=(0,tT.ri)(B,L),O=x(),[T,$]=(0,tk.Z)("rangePicker",p,h),F=(0,ty.Z)(B),[I,A,D]=t5(B,F),[P]=ce(t,B),N=cd(l),q=(0,tB.Z)(e=>{var t;return null!==(t=null!=s?s:S)&&void 0!==t?t:e}),W=H.useContext(tR.Z),Y=(0,H.useContext)(tS.aM),{hasFeedback:j,status:_,feedbackIcon:K}=Y,U=H.createElement(H.Fragment,null,w===cu?H.createElement(V.Z,null):H.createElement(b.Z,null),j&&K);(0,H.useImperativeHandle)(c,()=>Z.current);let[X]=(0,tO.Z)("Calendar",t$.Z),G=Object.assign(Object.assign({},X),t.locale),[Q]=(0,tx.Cn)("DatePicker",null===(n=t.popupStyle)||void 0===n?void 0:n.zIndex);return I(H.createElement(tC.Z,{space:!0},H.createElement(tw,Object.assign({separator:H.createElement("span",{"aria-label":"to",className:`${B}-separator`},H.createElement(C.Z,null)),disabled:null!=f?f:W,ref:Z,popupAlign:t9(L,u),placement:u,placeholder:void 0!==d?d:"year"===w&&G.lang.yearPlaceholder?G.lang.rangeYearPlaceholder:"quarter"===w&&G.lang.quarterPlaceholder?G.lang.rangeQuarterPlaceholder:"month"===w&&G.lang.monthPlaceholder?G.lang.rangeMonthPlaceholder:"week"===w&&G.lang.weekPlaceholder?G.lang.rangeWeekPlaceholder:"time"===w&&G.timePickerLocale.placeholder?G.timePickerLocale.rangePlaceholder:G.lang.rangePlaceholder,suffixIcon:U,prevIcon:H.createElement("span",{className:`${B}-prev-icon`}),nextIcon:H.createElement("span",{className:`${B}-next-icon`}),superPrevIcon:H.createElement("span",{className:`${B}-super-prev-icon`}),superNextIcon:H.createElement("span",{className:`${B}-super-next-icon`}),transitionName:`${O}-slide-up`,picker:w},M,{className:E()({[`${B}-${q}`]:q,[`${B}-${T}`]:$},(0,tE.Z)(B,(0,tE.F)(_,g),j),A,k,o,null==y?void 0:y.className,D,F,z),style:Object.assign(Object.assign({},null==y?void 0:y.style),i),locale:G.lang,prefixCls:B,getPopupContainer:r||R,generateConfig:e,components:N,direction:L,classNames:{popup:E()(A,v||m,D,F,z)},styles:{popup:Object.assign(Object.assign({},t.popupStyle),{zIndex:Q})},allowClear:P}))))});return t},cg=function(e,t){var c={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(c[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(c[n[a]]=e[n[a]]);return c},cz=e=>{let t=(t,c)=>{let n=c===cs?"timePicker":"datePicker",a=(0,H.forwardRef)((c,a)=>{var r;let{prefixCls:l,getPopupContainer:o,components:i,style:u,className:s,rootClassName:f,size:h,bordered:d,placement:v,placeholder:m,popupClassName:g,dropdownClassName:z,disabled:p,status:w,variant:M,onCalendarChange:Z}=c,C=cg(c,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:x,direction:L,getPopupContainer:R,[n]:y}=(0,H.useContext)(tL.E_),B=x("picker",l),{compactSize:S,compactItemClassnames:k}=(0,tT.ri)(B,L),O=H.useRef(null),[T,$]=(0,tk.Z)("datePicker",M,d),F=(0,ty.Z)(B),[I,A,D]=t5(B,F);(0,H.useImperativeHandle)(a,()=>O.current);let P=t||c.picker,N=x(),{onSelect:q,multiple:W}=C,Y=q&&"time"===t&&!W,[j,_]=ce(c,B),K=cd(i),U=(0,tB.Z)(e=>{var t;return null!==(t=null!=h?h:S)&&void 0!==t?t:e}),X=H.useContext(tR.Z),G=(0,H.useContext)(tS.aM),{hasFeedback:Q,status:J,feedbackIcon:ee}=G,et=H.createElement(H.Fragment,null,"time"===P?H.createElement(V.Z,null):H.createElement(b.Z,null),Q&&ee),[ec]=(0,tO.Z)("DatePicker",t$.Z),en=Object.assign(Object.assign({},ec),c.locale),[ea]=(0,tx.Cn)("DatePicker",null===(r=c.popupStyle)||void 0===r?void 0:r.zIndex);return I(H.createElement(tC.Z,{space:!0},H.createElement(tV,Object.assign({ref:O,placeholder:void 0!==m?m:"year"===P&&en.lang.yearPlaceholder?en.lang.yearPlaceholder:"quarter"===P&&en.lang.quarterPlaceholder?en.lang.quarterPlaceholder:"month"===P&&en.lang.monthPlaceholder?en.lang.monthPlaceholder:"week"===P&&en.lang.weekPlaceholder?en.lang.weekPlaceholder:"time"===P&&en.timePickerLocale.placeholder?en.timePickerLocale.placeholder:en.lang.placeholder,suffixIcon:et,dropdownAlign:t9(L,v),placement:v,prevIcon:H.createElement("span",{className:`${B}-prev-icon`}),nextIcon:H.createElement("span",{className:`${B}-next-icon`}),superPrevIcon:H.createElement("span",{className:`${B}-super-prev-icon`}),superNextIcon:H.createElement("span",{className:`${B}-super-next-icon`}),transitionName:`${N}-slide-up`,picker:t,onCalendarChange:(e,t,c)=>{null==Z||Z(e,t,c),Y&&q(e)}},{showToday:!0},C,{locale:en.lang,className:E()({[`${B}-${U}`]:U,[`${B}-${T}`]:$},(0,tE.Z)(B,(0,tE.F)(J,w),Q),A,k,null==y?void 0:y.className,s,D,F,f),style:Object.assign(Object.assign({},null==y?void 0:y.style),u),prefixCls:B,getPopupContainer:o||R,generateConfig:e,components:K,direction:L,disabled:null!=p?p:X,classNames:{popup:E()(A,D,F,f,g||z)},styles:{popup:Object.assign(Object.assign({},c.popupStyle),{zIndex:ea})},allowClear:j,removeIcon:_}))))});return a},c=t(),n=t(ct,cc),a=t(cn,ca),r=t(cr,cl),l=t(co,ci),o=t(cu,cs);return{DatePicker:c,WeekPicker:n,MonthPicker:a,YearPicker:r,TimePicker:o,QuarterPicker:l}},cp=e=>{let{DatePicker:t,WeekPicker:c,MonthPicker:n,YearPicker:a,TimePicker:r,QuarterPicker:l}=cz(e),o=cm(e);return t.WeekPicker=c,t.MonthPicker=n,t.YearPicker=a,t.RangePicker=o,t.TimePicker=r,t.QuarterPicker=l,t};let cw=cp({getNow:function(){return a()()},getFixedDate:function(e){return a()(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return a()().locale(w(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(w(e)).weekday(0)},getWeek:function(e,t){return t.locale(w(e)).week()},getShortWeekDays:function(e){return a()().locale(w(e)).localeData().weekdaysMin()},getShortMonths:function(e){return a()().locale(w(e)).localeData().monthsShort()},format:function(e,t,c){return t.locale(w(e)).format(c)},parse:function(e,t,c){for(var n=w(e),r=0;rt.indexOf(n)&&(c[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(c[n[a]]=e[n[a]]);return c};let{TimePicker:i,RangePicker:u}=r.default,s=n.forwardRef((e,t)=>n.createElement(u,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),f=n.forwardRef((e,t)=>{var{addon:c,renderExtraFooter:a,variant:r,bordered:u}=e,s=o(e,["addon","renderExtraFooter","variant","bordered"]);let[f]=(0,l.Z)("timePicker",r,u),h=n.useMemo(()=>a||c||void 0,[c,a]);return n.createElement(i,Object.assign({},s,{mode:void 0,ref:t,renderExtraFooter:h,variant:f}))}),h=(0,a.Z)(f,"picker");f._InternalPanelDoNotUseOrYouWillBeFired=h,f.RangePicker=s,f._InternalPanelDoNotUseOrYouWillBeFired=h,t.Z=f},59847:function(e,t,c){"use strict";c.d(t,{Z:function(){return ed}});var n=c(67294),a=c(93967),r=c.n(a),l=c(87462),o=c(74902),i=c(1413),u=c(97685),s=c(45987),f=c(71002),h=c(82275),d=c(88708),v=c(17341),m=c(21770),g=c(80334),z=function(e){var t=n.useRef({valueLabels:new Map});return n.useMemo(function(){var c=t.current.valueLabels,n=new Map,a=e.map(function(e){var t,a=e.value,r=null!==(t=e.label)&&void 0!==t?t:c.get(a);return n.set(a,r),(0,i.Z)((0,i.Z)({},e),{},{label:r})});return t.current.valueLabels=n,[a]},[e])},p=c(1089),w=c(4942),M=c(50344),Z=function(){return null},H=["children","value"];function b(e){if(!e)return e;var t=(0,i.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,g.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}var V=function(e,t,c){var a=c.treeNodeFilterProp,r=c.filterTreeNode,l=c.fieldNames.children;return n.useMemo(function(){if(!t||!1===r)return e;if("function"==typeof r)c=r;else{var c,n=t.toUpperCase();c=function(e,t){return String(t[a]).toUpperCase().includes(n)}}return function e(n){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n.reduce(function(n,r){var o=r[l],u=a||c(t,b(r)),s=e(o||[],u);return(u||s.length)&&n.push((0,i.Z)((0,i.Z)({},r),{},(0,w.Z)({isLeaf:void 0},l,s))),n},[])}(e)},[e,t,l,a,r])};function C(e){var t=n.useRef();return t.current=e,n.useCallback(function(){return t.current.apply(t,arguments)},[])}var x=n.createContext(null),E=c(99814),L=c(15105),R=c(56982),y=n.createContext(null);function B(e){return!e||e.disabled||e.disableCheckbox||!1===e.checkable}var S={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},k=n.forwardRef(function(e,t){var c=(0,h.lk)(),a=c.prefixCls,r=c.multiple,i=c.searchValue,s=c.toggleOpen,f=c.open,d=c.notFoundContent,v=n.useContext(y),m=v.virtual,g=v.listHeight,z=v.listItemHeight,p=v.listItemScrollOffset,w=v.treeData,M=v.fieldNames,Z=v.onSelect,H=v.dropdownMatchSelectWidth,b=v.treeExpandAction,V=v.treeTitleRender,C=v.onPopupScroll,k=n.useContext(x),O=k.checkable,T=k.checkedKeys,$=k.halfCheckedKeys,F=k.treeExpandedKeys,I=k.treeDefaultExpandAll,A=k.treeDefaultExpandedKeys,D=k.onTreeExpand,P=k.treeIcon,N=k.showTreeIcon,q=k.switcherIcon,W=k.treeLine,Y=k.treeNodeFilterProp,j=k.loadData,_=k.treeLoadedKeys,K=k.treeMotion,U=k.onTreeLoad,X=k.keyEntities,G=n.useRef(),Q=(0,R.Z)(function(){return w},[f,w],function(e,t){return t[0]&&e[1]!==t[1]}),J=n.useState(null),ee=(0,u.Z)(J,2),et=ee[0],ec=ee[1],en=X[et],ea=n.useMemo(function(){return O?{checked:T,halfChecked:$}:null},[O,T,$]);n.useEffect(function(){if(f&&!r&&T.length){var e;null===(e=G.current)||void 0===e||e.scrollTo({key:T[0]}),ec(T[0])}},[f]);var er=String(i).toLowerCase(),el=n.useState(A),eo=(0,u.Z)(el,2),ei=eo[0],eu=eo[1],es=n.useState(null),ef=(0,u.Z)(es,2),eh=ef[0],ed=ef[1],ev=n.useMemo(function(){return F?(0,o.Z)(F):i?eh:ei},[ei,eh,F,i]);n.useEffect(function(){if(i){var e;ed((e=[],!function t(c){c.forEach(function(c){var n=c[M.children];n&&(e.push(c[M.value]),t(n))})}(w),e))}},[i]);var em=function(e){e.preventDefault()},eg=function(e,t){var c=t.node;!(O&&B(c))&&(Z(c.key,{selected:!T.includes(c.key)}),r||s(!1))};if(n.useImperativeHandle(t,function(){var e;return{scrollTo:null===(e=G.current)||void 0===e?void 0:e.scrollTo,onKeyDown:function(e){var t;switch(e.which){case L.Z.UP:case L.Z.DOWN:case L.Z.LEFT:case L.Z.RIGHT:null===(t=G.current)||void 0===t||t.onKeyDown(e);break;case L.Z.ENTER:if(en){var c=(null==en?void 0:en.node)||{},n=c.selectable,a=c.value;!1!==n&&eg(null,{node:{key:et},selected:!T.includes(a)})}break;case L.Z.ESC:s(!1)}},onKeyUp:function(){}}}),0===Q.length)return n.createElement("div",{role:"listbox",className:"".concat(a,"-empty"),onMouseDown:em},d);var ez={fieldNames:M};return _&&(ez.loadedKeys=_),ev&&(ez.expandedKeys=ev),n.createElement("div",{onMouseDown:em},en&&f&&n.createElement("span",{style:S,"aria-live":"assertive"},en.node.value),n.createElement(E.Z,(0,l.Z)({ref:G,focusable:!1,prefixCls:"".concat(a,"-tree"),treeData:Q,height:g,itemHeight:z,itemScrollOffset:p,virtual:!1!==m&&!1!==H,multiple:r,icon:P,showIcon:N,switcherIcon:q,showLine:W,loadData:i?null:j,motion:K,activeKey:et,checkable:O,checkStrictly:!0,checkedKeys:ea,selectedKeys:O?[]:T,defaultExpandAll:I,titleRender:V},ez,{onActiveChange:ec,onSelect:eg,onCheck:eg,onExpand:function(e){eu(e),ed(e),D&&D(e)},onLoad:U,filterTreeNode:function(e){return!!er&&String(e[Y]).toLowerCase().includes(er)},expandAction:b,onScroll:C})))}),O="SHOW_ALL",T="SHOW_PARENT",$="SHOW_CHILD";function F(e,t,c,n){var a=new Set(e);return t===$?e.filter(function(e){var t=c[e];return!(t&&t.children&&t.children.some(function(e){var t=e.node;return a.has(t[n.value])})&&t.children.every(function(e){var t=e.node;return B(t)||a.has(t[n.value])}))}):t===T?e.filter(function(e){var t=c[e],n=t?t.parent:null;return!(n&&!B(n.node)&&a.has(n.key))}):e}var I=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"],A=n.forwardRef(function(e,t){var c=e.id,a=e.prefixCls,r=e.value,w=e.defaultValue,E=e.onChange,L=e.onSelect,R=e.onDeselect,B=e.searchValue,S=e.inputValue,T=e.onSearch,A=e.autoClearSearchValue,D=void 0===A||A,P=e.filterTreeNode,N=e.treeNodeFilterProp,q=void 0===N?"value":N,W=e.showCheckedStrategy,Y=e.treeNodeLabelProp,j=e.multiple,_=e.treeCheckable,K=e.treeCheckStrictly,U=e.labelInValue,X=e.fieldNames,G=e.treeDataSimpleMode,Q=e.treeData,J=e.children,ee=e.loadData,et=e.treeLoadedKeys,ec=e.onTreeLoad,en=e.treeDefaultExpandAll,ea=e.treeExpandedKeys,er=e.treeDefaultExpandedKeys,el=e.onTreeExpand,eo=e.treeExpandAction,ei=e.virtual,eu=e.listHeight,es=void 0===eu?200:eu,ef=e.listItemHeight,eh=void 0===ef?20:ef,ed=e.listItemScrollOffset,ev=void 0===ed?0:ed,em=e.onDropdownVisibleChange,eg=e.dropdownMatchSelectWidth,ez=void 0===eg||eg,ep=e.treeLine,ew=e.treeIcon,eM=e.showTreeIcon,eZ=e.switcherIcon,eH=e.treeMotion,eb=e.treeTitleRender,eV=e.onPopupScroll,eC=(0,s.Z)(e,I),ex=(0,d.ZP)(c),eE=_&&!K,eL=_||K,eR=K||U,ey=eL||j,eB=(0,m.Z)(w,{value:r}),eS=(0,u.Z)(eB,2),ek=eS[0],eO=eS[1],eT=n.useMemo(function(){return _?W||$:O},[W,_]),e$=n.useMemo(function(){var e,t,c,n,a;return t=(e=X||{}).label,c=e.value,n=e.children,{_title:t?[t]:["title","label"],value:a=c||"value",key:a,children:n||"children"}},[JSON.stringify(X)]),eF=(0,m.Z)("",{value:void 0!==B?B:S,postState:function(e){return e||""}}),eI=(0,u.Z)(eF,2),eA=eI[0],eD=eI[1],eP=n.useMemo(function(){if(Q){var e,t,c,a,r,l;return G?(t=(e=(0,i.Z)({id:"id",pId:"pId",rootPId:null},!0!==G?G:{})).id,c=e.pId,a=e.rootPId,r={},l=[],Q.map(function(e){var c=(0,i.Z)({},e),n=c[t];return r[n]=c,c.key=c.key||n,c}).forEach(function(e){var t=e[c],n=r[t];n&&(n.children=n.children||[],n.children.push(e)),t!==a&&(n||null!==a)||l.push(e)}),l):Q}return function e(t){return(0,M.Z)(t).map(function(t){if(!n.isValidElement(t)||!t.type)return null;var c=t.key,a=t.props,r=a.children,l=a.value,o=(0,s.Z)(a,H),u=(0,i.Z)({key:c,value:l},o),f=e(r);return f.length&&(u.children=f),u}).filter(function(e){return e})}(J)},[J,G,Q]),eN=n.useMemo(function(){return(0,p.I8)(eP,{fieldNames:e$,initWrapper:function(e){return(0,i.Z)((0,i.Z)({},e),{},{valueEntities:new Map})},processEntity:function(e,t){var c=e.node[e$.value];t.valueEntities.set(c,e)}})},[eP,e$]),eq=eN.keyEntities,eW=eN.valueEntities,eY=n.useCallback(function(e){var t=[],c=[];return e.forEach(function(e){eW.has(e)?c.push(e):t.push(e)}),{missingRawValues:t,existRawValues:c}},[eW]),ej=V(eP,eA,{fieldNames:e$,treeNodeFilterProp:q,filterTreeNode:P}),e_=n.useCallback(function(e){if(e){if(Y)return e[Y];for(var t=e$._title,c=0;c1&&void 0!==arguments[1]?arguments[1]:"0",u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return a.map(function(a,s){var f="".concat(r,"-").concat(s),h=a[l.value],d=c.includes(h),v=e(a[l.children]||[],f,d),m=n.createElement(Z,a,v.map(function(e){return e.node}));if(t===h&&(o=m),d){var g={pos:f,node:m,children:v};return u||i.push(g),g}return null}).filter(function(e){return e})}(a),i.sort(function(e,t){var n=e.node.props.value,a=t.node.props.value;return c.indexOf(n)-c.indexOf(a)}))}Object.defineProperty(e,"triggerNode",{get:function(){return(0,g.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),u(),o}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return((0,g.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),u(),r)?i:i.map(function(e){return e.node})}})}(h,l,e,eP,d,e$),eL?h.checked=i:h.selected=i;var v=eR?f:f.map(function(e){return e.value});E(ey?v:v[0],eR?null:f.map(function(e){return e.label}),h)}}),e9=n.useCallback(function(e,t){var c=t.selected,n=t.source,a=eq[e],r=null==a?void 0:a.node,l=null!==(u=null==r?void 0:r[e$.value])&&void 0!==u?u:e;if(ey){var i=c?[].concat((0,o.Z)(e4),[l]):e8.filter(function(e){return e!==l});if(eE){var u,s,f=eY(i),h=f.missingRawValues,d=f.existRawValues.map(function(e){return eW.get(e).key});s=c?(0,v.S)(d,!0,eq).checkedKeys:(0,v.S)(d,{checked:!1,halfCheckedKeys:e6},eq).checkedKeys,i=[].concat((0,o.Z)(h),(0,o.Z)(s.map(function(e){return eq[e].node[e$.value]})))}e7(i,{selected:c,triggerValue:l},n||"option")}else e7([l],{selected:!0,triggerValue:l},"option");c||!ey?null==L||L(l,b(r)):null==R||R(l,b(r))},[eY,eW,eq,e$,ey,e4,e7,eE,L,R,e8,e6]),te=n.useCallback(function(e){if(em){var t={};Object.defineProperty(t,"documentClickClose",{get:function(){return(0,g.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),em(e,t)}},[em]),tt=C(function(e,t){var c=e.map(function(e){return e.value});if("clear"===t.type){e7(c,{},"selection");return}t.values.length&&e9(t.values[0].value,{selected:!1,source:"selection"})}),tc=n.useMemo(function(){return{virtual:ei,dropdownMatchSelectWidth:ez,listHeight:es,listItemHeight:eh,listItemScrollOffset:ev,treeData:ej,fieldNames:e$,onSelect:e9,treeExpandAction:eo,treeTitleRender:eb,onPopupScroll:eV}},[ei,ez,es,eh,ev,ej,e$,e9,eo,eb,eV]),tn=n.useMemo(function(){return{checkable:eL,loadData:ee,treeLoadedKeys:et,onTreeLoad:ec,checkedKeys:e8,halfCheckedKeys:e6,treeDefaultExpandAll:en,treeExpandedKeys:ea,treeDefaultExpandedKeys:er,onTreeExpand:el,treeIcon:ew,treeMotion:eH,showTreeIcon:eM,switcherIcon:eZ,treeLine:ep,treeNodeFilterProp:q,keyEntities:eq}},[eL,ee,et,ec,e8,e6,en,ea,er,el,ew,eH,eM,eZ,ep,q,eq]);return n.createElement(y.Provider,{value:tc},n.createElement(x.Provider,{value:tn},n.createElement(h.Ac,(0,l.Z)({ref:t},eC,{id:ex,prefixCls:void 0===a?"rc-tree-select":a,mode:ey?"multiple":void 0,displayValues:e5,onDisplayValuesChange:tt,searchValue:eA,onSearch:function(e){eD(e),null==T||T(e)},OptionList:k,emptyOptions:!eP.length,onDropdownVisibleChange:te,dropdownMatchSelectWidth:ez}))))});A.TreeNode=Z,A.SHOW_ALL=O,A.SHOW_PARENT=T,A.SHOW_CHILD=$;var D=c(98423),P=c(87263),N=c(33603),q=c(8745),W=c(9708),Y=c(53124),j=c(88258),_=c(98866),K=c(35792),U=c(98675),X=c(65223),G=c(27833),Q=c(30307),J=c(15030),ee=c(43277),et=c(78642),ec=c(4173),en=c(61639),ea=c(25446),er=c(63185),el=c(83262),eo=c(83559),ei=c(32157);let eu=e=>{let{componentCls:t,treePrefixCls:c,colorBgElevated:n}=e,a=`.${c}`;return[{[`${t}-dropdown`]:[{padding:`${(0,ea.bf)(e.paddingXS)} ${(0,ea.bf)(e.calc(e.paddingXS).div(2).equal())}`},(0,ei.Yk)(c,(0,el.IX)(e,{colorBgContainer:n})),{[a]:{borderRadius:0,[`${a}-list-holder-inner`]:{alignItems:"stretch",[`${a}-treenode`]:{[`${a}-node-content-wrapper`]:{flex:"auto"}}}}},(0,er.C2)(`${c}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${a}-switcher${a}-switcher_close`]:{[`${a}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};var es=function(e,t){var c={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(c[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(c[n[a]]=e[n[a]]);return c};let ef=n.forwardRef((e,t)=>{var c;let a;let{prefixCls:l,size:o,disabled:i,bordered:u=!0,className:s,rootClassName:f,treeCheckable:h,multiple:d,listHeight:v=256,listItemHeight:m=26,placement:g,notFoundContent:z,switcherIcon:p,treeLine:w,getPopupContainer:M,popupClassName:Z,dropdownClassName:H,treeIcon:b=!1,transitionName:V,choiceTransitionName:C="",status:x,treeExpandAction:E,builtinPlacements:L,dropdownMatchSelectWidth:R,popupMatchSelectWidth:y,allowClear:B,variant:S,dropdownStyle:k,tagRender:O}=e,T=es(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender"]),{getPopupContainer:$,getPrefixCls:F,renderEmpty:I,direction:q,virtual:ea,popupMatchSelectWidth:er,popupOverflow:ef}=n.useContext(Y.E_),eh=F(),ed=F("select",l),ev=F("select-tree",l),em=F("tree-select",l),{compactSize:eg,compactItemClassnames:ez}=(0,ec.ri)(ed,q),ep=(0,K.Z)(ed),ew=(0,K.Z)(em),[eM,eZ,eH]=(0,J.Z)(ed,ep),[eb]=(0,eo.I$)("TreeSelect",e=>{let t=(0,el.IX)(e,{treePrefixCls:ev});return[eu(t)]},ei.TM)(em,ew),[eV,eC]=(0,G.Z)("treeSelect",S,u),ex=r()(Z||H,`${em}-dropdown`,{[`${em}-dropdown-rtl`]:"rtl"===q},f,eH,ep,ew,eZ),eE=!!(h||d),eL=(0,et.Z)(e.suffixIcon,e.showArrow),eR=null!==(c=null!=y?y:R)&&void 0!==c?c:er,{status:ey,hasFeedback:eB,isFormItemInput:eS,feedbackIcon:ek}=n.useContext(X.aM),eO=(0,W.F)(ey,x),{suffixIcon:eT,removeIcon:e$,clearIcon:eF}=(0,ee.Z)(Object.assign(Object.assign({},T),{multiple:eE,showSuffixIcon:eL,hasFeedback:eB,feedbackIcon:ek,prefixCls:ed,componentName:"TreeSelect"}));a=void 0!==z?z:(null==I?void 0:I("Select"))||n.createElement(j.Z,{componentName:"Select"});let eI=(0,D.Z)(T,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),eA=n.useMemo(()=>void 0!==g?g:"rtl"===q?"bottomRight":"bottomLeft",[g,q]),eD=(0,U.Z)(e=>{var t;return null!==(t=null!=o?o:eg)&&void 0!==t?t:e}),eP=n.useContext(_.Z),eN=r()(!l&&em,{[`${ed}-lg`]:"large"===eD,[`${ed}-sm`]:"small"===eD,[`${ed}-rtl`]:"rtl"===q,[`${ed}-${eV}`]:eC,[`${ed}-in-form-item`]:eS},(0,W.Z)(ed,eO,eB),ez,s,f,eH,ep,ew,eZ),[eq]=(0,P.Cn)("SelectLike",null==k?void 0:k.zIndex),eW=n.createElement(A,Object.assign({virtual:ea,disabled:null!=i?i:eP},eI,{dropdownMatchSelectWidth:eR,builtinPlacements:(0,Q.Z)(L,ef),ref:t,prefixCls:ed,className:eN,listHeight:v,listItemHeight:m,treeCheckable:h?n.createElement("span",{className:`${ed}-tree-checkbox-inner`}):h,treeLine:!!w,suffixIcon:eT,multiple:eE,placement:eA,removeIcon:e$,allowClear:!0===B?{clearIcon:eF}:B,switcherIcon:e=>n.createElement(en.Z,{prefixCls:ev,switcherIcon:p,treeNodeProps:e,showLine:w}),showTreeIcon:b,notFoundContent:a,getPopupContainer:M||$,treeMotion:null,dropdownClassName:ex,dropdownStyle:Object.assign(Object.assign({},k),{zIndex:eq}),choiceTransitionName:(0,N.m)(eh,"",C),transitionName:(0,N.m)(eh,"slide-up",V),treeExpandAction:E,tagRender:eE?O:void 0}));return eM(eb(eW))}),eh=(0,q.Z)(ef);ef.TreeNode=Z,ef.SHOW_ALL=O,ef.SHOW_PARENT=T,ef.SHOW_CHILD=$,ef._InternalPanelDoNotUseOrYouWillBeFired=eh;var ed=ef},16372:function(e,t,c){"use strict";c.d(t,{B8:function(){return V},Il:function(){return a},J5:function(){return l},SU:function(){return b},Ss:function(){return C},ZP:function(){return M},xV:function(){return r}});var n=c(44087);function a(){}var r=.7,l=1.4285714285714286,o="\\s*([+-]?\\d+)\\s*",i="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",s=/^#([0-9a-f]{3,8})$/,f=RegExp("^rgb\\("+[o,o,o]+"\\)$"),h=RegExp("^rgb\\("+[u,u,u]+"\\)$"),d=RegExp("^rgba\\("+[o,o,o,i]+"\\)$"),v=RegExp("^rgba\\("+[u,u,u,i]+"\\)$"),m=RegExp("^hsl\\("+[i,u,u]+"\\)$"),g=RegExp("^hsla\\("+[i,u,u,i]+"\\)$"),z={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 p(){return this.rgb().formatHex()}function w(){return this.rgb().formatRgb()}function M(e){var t,c;return e=(e+"").trim().toLowerCase(),(t=s.exec(e))?(c=t[1].length,t=parseInt(t[1],16),6===c?Z(t):3===c?new C(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===c?H(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===c?H(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=f.exec(e))?new C(t[1],t[2],t[3],1):(t=h.exec(e))?new C(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=d.exec(e))?H(t[1],t[2],t[3],t[4]):(t=v.exec(e))?H(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?R(t[1],t[2]/100,t[3]/100,1):(t=g.exec(e))?R(t[1],t[2]/100,t[3]/100,t[4]):z.hasOwnProperty(e)?Z(z[e]):"transparent"===e?new C(NaN,NaN,NaN,0):null}function Z(e){return new C(e>>16&255,e>>8&255,255&e,1)}function H(e,t,c,n){return n<=0&&(e=t=c=NaN),new C(e,t,c,n)}function b(e){return(e instanceof a||(e=M(e)),e)?(e=e.rgb(),new C(e.r,e.g,e.b,e.opacity)):new C}function V(e,t,c,n){return 1==arguments.length?b(e):new C(e,t,c,null==n?1:n)}function C(e,t,c,n){this.r=+e,this.g=+t,this.b=+c,this.opacity=+n}function x(){return"#"+L(this.r)+L(this.g)+L(this.b)}function E(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function L(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function R(e,t,c,n){return n<=0?e=t=c=NaN:c<=0||c>=1?e=t=NaN:t<=0&&(e=NaN),new B(e,t,c,n)}function y(e){if(e instanceof B)return new B(e.h,e.s,e.l,e.opacity);if(e instanceof a||(e=M(e)),!e)return new B;if(e instanceof B)return e;var t=(e=e.rgb()).r/255,c=e.g/255,n=e.b/255,r=Math.min(t,c,n),l=Math.max(t,c,n),o=NaN,i=l-r,u=(l+r)/2;return i?(o=t===l?(c-n)/i+(c0&&u<1?0:o,new B(o,i,u,e.opacity)}function B(e,t,c,n){this.h=+e,this.s=+t,this.l=+c,this.opacity=+n}function S(e,t,c){return(e<60?t+(c-t)*e/60:e<180?c:e<240?t+(c-t)*(240-e)/60:t)*255}(0,n.Z)(a,M,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:p,formatHex:p,formatHsl:function(){return y(this).formatHsl()},formatRgb:w,toString:w}),(0,n.Z)(C,V,(0,n.l)(a,{brighter:function(e){return e=null==e?l:Math.pow(l,e),new C(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?r:Math.pow(r,e),new C(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:x,formatHex:x,formatRgb:E,toString:E})),(0,n.Z)(B,function(e,t,c,n){return 1==arguments.length?y(e):new B(e,t,c,null==n?1:n)},(0,n.l)(a,{brighter:function(e){return e=null==e?l:Math.pow(l,e),new B(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?r:Math.pow(r,e),new B(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,c=this.l,n=c+(c<.5?c:1-c)*t,a=2*c-n;return new C(S(e>=240?e-240:e+120,a,n),S(e,a,n),S(e<120?e+240:e-120,a,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},44087:function(e,t,c){"use strict";function n(e,t,c){e.prototype=t.prototype=c,c.constructor=e}function a(e,t){var c=Object.create(e.prototype);for(var n in t)c[n]=t[n];return c}c.d(t,{Z:function(){return n},l:function(){return a}})},92626:function(e,t){"use strict";var c={value:()=>{}};function n(){for(var e,t=0,c=arguments.length,n={};t=0&&(t=e.slice(c+1),e=e.slice(0,c)),e&&!n.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),l=-1,o=a.length;if(arguments.length<2){for(;++l0)for(var c,n,a=Array(c),r=0;r=0&&t._call.call(null,e),t=t._next;--r}()}finally{r=0,function(){for(var e,t,c=n,r=1/0;c;)c._call?(r>c._time&&(r=c._time),e=c,c=c._next):(t=c._next,c._next=null,c=e?e._next=t:n=t);a=e,w(r)}(),u=0}}function p(){var e=f.now(),t=e-i;t>1e3&&(s-=t,i=e)}function w(e){!r&&(l&&(l=clearTimeout(l)),e-u>24?(e<1/0&&(l=setTimeout(z,e-f.now()-s)),o&&(o=clearInterval(o))):(o||(i=f.now(),o=setInterval(p,1e3)),r=1,h(z)))}m.prototype=g.prototype={constructor:m,restart:function(e,t,c){if("function"!=typeof e)throw TypeError("callback is not a function");c=(null==c?d():+c)+(null==t?0:+t),this._next||a===this||(a?a._next=this:n=this,a=this),this._call=e,this._time=c,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},27484:function(e){var t,c,n,a,r,l,o,i,u,s,f,h,d,v,m,g,z,p,w,M,Z,H;e.exports=(t="millisecond",c="second",n="minute",a="hour",r="week",l="month",o="quarter",i="year",u="date",s="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(e,t,c){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(c)+e},(m={})[v="en"]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],c=e%100;return"["+e+(t[(c-20)%10]||t[c]||"th")+"]"}},g="$isDayjsObject",z=function(e){return e instanceof Z||!(!e||!e[g])},p=function e(t,c,n){var a;if(!t)return v;if("string"==typeof t){var r=t.toLowerCase();m[r]&&(a=r),c&&(m[r]=c,a=r);var l=t.split("-");if(!a&&l.length>1)return e(l[0])}else{var o=t.name;m[o]=t,a=o}return!n&&a&&(v=a),a||!n&&v},w=function(e,t){if(z(e))return e.clone();var c="object"==typeof t?t:{};return c.date=e,c.args=arguments,new Z(c)},(M={s:d,z:function(e){var t=-e.utcOffset(),c=Math.abs(t);return(t<=0?"+":"-")+d(Math.floor(c/60),2,"0")+":"+d(c%60,2,"0")},m:function e(t,c){if(t.date()68?1900:2e3)},u=function(e){return function(t){this[e]=+t}},s=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e||"Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),c=60*t[1]+(+t[2]||0);return 0===c?0:"+"===t[0]?-c:c}(e)}],f=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},h=function(e,t){var c,n=o.meridiem;if(n){for(var a=1;a<=24;a+=1)if(e.indexOf(n(a,0,t))>-1){c=a>12;break}}else c=e===(t?"pm":"PM");return c},d={A:[l,function(e){this.afternoon=h(e,!1)}],a:[l,function(e){this.afternoon=h(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[a,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,u("seconds")],ss:[r,u("seconds")],m:[r,u("minutes")],mm:[r,u("minutes")],H:[r,u("hours")],h:[r,u("hours")],HH:[r,u("hours")],hh:[r,u("hours")],D:[r,u("day")],DD:[a,u("day")],Do:[l,function(e){var t=o.ordinal,c=e.match(/\d+/);if(this.day=c[0],t)for(var n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}],w:[r,u("week")],ww:[a,u("week")],M:[r,u("month")],MM:[a,u("month")],MMM:[l,function(e){var t=f("months"),c=(f("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(c<1)throw Error();this.month=c%12||c}],MMMM:[l,function(e){var t=f("months").indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(e){this.year=i(e)}],YYYY:[/\d{4}/,u("year")],Z:s,ZZ:s},function(e,n,a){a.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(i=e.parseTwoDigitYear);var r=n.prototype,l=r.parse;r.parse=function(e){var n=e.date,r=e.utc,i=e.args;this.$u=r;var u=i[1];if("string"==typeof u){var s=!0===i[2],f=!0===i[3],h=i[2];f&&(h=i[2]),o=this.$locale(),!s&&h&&(o=a.Ls[h]),this.$d=function(e,n,a,r){try{if(["x","X"].indexOf(n)>-1)return new Date(("X"===n?1e3:1)*e);var l=(function(e){var n,a;n=e,a=o&&o.formats;for(var r=(e=n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,c,n){var r=n&&n.toUpperCase();return c||a[n]||t[n]||a[r].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,c){return t||c.slice(1)})})).match(c),l=r.length,i=0;i0?u-1:p.getMonth());var H,b=f||0,V=h||0,C=v||0,x=m||0;return g?new Date(Date.UTC(M,Z,w,b,V,C,x+60*g.offset*1e3)):a?new Date(Date.UTC(M,Z,w,b,V,C,x)):(H=new Date(M,Z,w,b,V,C,x),z&&(H=r(H).week(z).toDate()),H)}catch(e){return new Date("")}}(n,u,r,a),this.init(),h&&!0!==h&&(this.$L=this.locale(h).$L),(s||f)&&n!=this.format(u)&&(this.$d=new Date("")),o={}}else if(u instanceof Array)for(var v=u.length,m=1;m<=v;m+=1){i[1]=u[m-1];var g=a.apply(this,i);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}m===v&&(this.$d=new Date(""))}else l.call(this,e)}})},96036:function(e){e.exports=function(e,t,c){var n=t.prototype,a=function(e){return e&&(e.indexOf?e:e.s)},r=function(e,t,c,n,r){var l=e.name?e:e.$locale(),o=a(l[t]),i=a(l[c]),u=o||i.map(function(e){return e.slice(0,n)});if(!r)return u;var s=l.weekStart;return u.map(function(e,t){return u[(t+(s||0))%7]})},l=function(){return c.Ls[c.locale()]},o=function(e,t){return e.formats[t]||e.formats[t.toUpperCase()].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,c){return t||c.slice(1)})},i=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):r(e,"months")},monthsShort:function(t){return t?t.format("MMM"):r(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):r(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):r(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):r(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return o(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};n.localeData=function(){return i.bind(this)()},c.localeData=function(){var e=l();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return c.weekdays()},weekdaysShort:function(){return c.weekdaysShort()},weekdaysMin:function(){return c.weekdaysMin()},months:function(){return c.months()},monthsShort:function(){return c.monthsShort()},longDateFormat:function(t){return o(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},c.months=function(){return r(l(),"months")},c.monthsShort=function(){return r(l(),"monthsShort","months",3)},c.weekdays=function(e){return r(l(),"weekdays",null,null,e)},c.weekdaysShort=function(e){return r(l(),"weekdaysShort","weekdays",3,e)},c.weekdaysMin=function(e){return r(l(),"weekdaysMin","weekdays",2,e)}}},55183:function(e){var t,c;e.exports=(t="week",c="year",function(e,n,a){var r=n.prototype;r.week=function(e){if(void 0===e&&(e=null),null!==e)return this.add(7*(e-this.week()),"day");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var r=a(this).startOf(c).add(1,c).date(n),l=a(this).endOf(t);if(r.isBefore(l))return 1}var o=a(this).startOf(c).date(n).startOf(t).subtract(1,"millisecond"),i=this.diff(o,t,!0);return i<0?a(this).startOf("week").week():Math.ceil(i)},r.weeks=function(e){return void 0===e&&(e=null),this.week(e)}})},172:function(e){e.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),c=this.year();return 1===t&&11===e?c+1:0===e&&t>=52?c-1:c}}},6833:function(e){e.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,c=this.$W,n=(cn.createElement("button",{type:"button",className:(0,a.Z)(["react-flow__controls-button",t]),...c},e);h.displayName="ControlButton";let d=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom}),v=({style:e,showZoom:t=!0,showFitView:c=!0,showInteractive:v=!0,fitViewOptions:m,onZoomIn:g,onZoomOut:z,onFitView:p,onInteractiveChange:w,className:M,children:Z,position:H="bottom-left"})=>{let b=(0,l.AC)(),[V,C]=(0,n.useState)(!1),{isInteractive:x,minZoomReached:E,maxZoomReached:L}=(0,l.oR)(d,r.X),{zoomIn:R,zoomOut:y,fitView:B}=(0,l._K)();return((0,n.useEffect)(()=>{C(!0)},[]),V)?n.createElement(l.s_,{className:(0,a.Z)(["react-flow__controls",M]),position:H,style:e,"data-testid":"rf__controls"},t&&n.createElement(n.Fragment,null,n.createElement(h,{onClick:()=>{R(),g?.()},className:"react-flow__controls-zoomin",title:"zoom in","aria-label":"zoom in",disabled:L},n.createElement(o,null)),n.createElement(h,{onClick:()=>{y(),z?.()},className:"react-flow__controls-zoomout",title:"zoom out","aria-label":"zoom out",disabled:E},n.createElement(i,null))),c&&n.createElement(h,{className:"react-flow__controls-fitview",onClick:()=>{B(m),p?.()},title:"fit view","aria-label":"fit view"},n.createElement(u,null)),v&&n.createElement(h,{className:"react-flow__controls-interactive",onClick:()=>{b.setState({nodesDraggable:!x,nodesConnectable:!x,elementsSelectable:!x}),w?.(!x)},title:"toggle interactivity","aria-label":"toggle interactivity"},x?n.createElement(f,null):n.createElement(s,null)),Z):null};v.displayName="Controls";var m=(0,n.memo)(v)}}]); \ No newline at end of file diff --git a/dbgpt/app/static/web/_next/static/chunks/2856-9a9e0d6cc4b626e4.js b/dbgpt/app/static/web/_next/static/chunks/2856-8185c5006e9f312d.js similarity index 100% rename from dbgpt/app/static/web/_next/static/chunks/2856-9a9e0d6cc4b626e4.js rename to dbgpt/app/static/web/_next/static/chunks/2856-8185c5006e9f312d.js diff --git a/dbgpt/app/static/web/_next/static/chunks/33a1eaa4-644c82a62952e2f6.js b/dbgpt/app/static/web/_next/static/chunks/33a1eaa4-7856035046c28279.js similarity index 100% rename from dbgpt/app/static/web/_next/static/chunks/33a1eaa4-644c82a62952e2f6.js rename to dbgpt/app/static/web/_next/static/chunks/33a1eaa4-7856035046c28279.js diff --git a/dbgpt/app/static/web/_next/static/chunks/355a6ca7-539180223e81033b.js b/dbgpt/app/static/web/_next/static/chunks/355a6ca7-744d111cb90d9a0e.js similarity index 100% rename from dbgpt/app/static/web/_next/static/chunks/355a6ca7-539180223e81033b.js rename to dbgpt/app/static/web/_next/static/chunks/355a6ca7-744d111cb90d9a0e.js diff --git a/dbgpt/app/static/web/_next/static/chunks/3913-36b8f2eae36a7052.js b/dbgpt/app/static/web/_next/static/chunks/3913-4cddef9f4644da1e.js similarity index 69% rename from dbgpt/app/static/web/_next/static/chunks/3913-36b8f2eae36a7052.js rename to dbgpt/app/static/web/_next/static/chunks/3913-4cddef9f4644da1e.js index b94df043b..5cf643bc7 100644 --- a/dbgpt/app/static/web/_next/static/chunks/3913-36b8f2eae36a7052.js +++ b/dbgpt/app/static/web/_next/static/chunks/3913-4cddef9f4644da1e.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3913],{56397:function(e,t,l){l.r(t);var n=l(85893),r=l(48218),a=l(58638),i=l(31418),s=l(45030),o=l(20640),c=l.n(o),d=l(67294),u=l(73913);t.default=(0,d.memo)(()=>{var e;let{appInfo:t}=(0,d.useContext)(u.MobileChatContext),{message:l}=i.Z.useApp(),[o,m]=(0,d.useState)(0);if(!(null==t?void 0:t.app_code))return null;let v=async()=>{let e=c()("dingtalk://dingtalkclient/page/link?url=".concat(encodeURIComponent(location.href),"&pc_slide=true"));l[e?"success":"error"](e?"复制成功":"复制失败")};return o>6&&l.info(JSON.stringify(window.navigator.userAgent),2,()=>{m(0)}),(0,n.jsxs)("header",{className:"flex w-full items-center justify-between bg-[rgba(255,255,255,0.9)] border dark:bg-black dark:border-[rgba(255,255,255,0.6)] rounded-xl mx-auto px-4 py-2 mb-4 sticky top-4 z-50 mt-4 shadow-md",children:[(0,n.jsxs)("div",{className:"flex gap-2 items-center",onClick:()=>m(o+1),children:[(0,n.jsx)(r.Z,{scene:(null==t?void 0:null===(e=t.team_context)||void 0===e?void 0:e.chat_scene)||"chat_agent",width:8,height:8}),(0,n.jsxs)("div",{className:"flex flex-col ml-2",children:[(0,n.jsx)(s.Z.Text,{className:"text-md font-bold line-clamp-2",children:null==t?void 0:t.app_name}),(0,n.jsx)(s.Z.Text,{className:"text-sm line-clamp-2",children:null==t?void 0:t.app_describe})]})]}),(0,n.jsx)("div",{onClick:v,className:"flex items-center justify-center w-10 h-10 bg-[#ffffff99] dark:bg-[rgba(255,255,255,0.2)] border border-white dark:border-[rgba(255,255,255,0.2)] rounded-[50%] cursor-pointer",children:(0,n.jsx)(a.Z,{className:"text-lg"})})]})})},74638:function(e,t,l){l.r(t);var n=l(85893),r=l(76212),a=l(62418),i=l(25519),s=l(30159),o=l(87740),c=l(50888),d=l(52645),u=l(27496),m=l(1375),v=l(65654),x=l(66309),p=l(55241),h=l(74330),f=l(25278),g=l(14726),b=l(93967),j=l.n(b),y=l(39332),w=l(67294),_=l(73913),N=l(7001),k=l(73749),C=l(97109),Z=l(83454);let S=["magenta","orange","geekblue","purple","cyan","green"];t.default=()=>{var e,t;let l=(0,y.useSearchParams)(),b=null!==(t=null==l?void 0:l.get("ques"))&&void 0!==t?t:"",{history:R,model:E,scene:M,temperature:O,resource:A,conv_uid:P,appInfo:T,scrollViewRef:V,order:z,userInput:D,ctrl:I,canAbort:J,canNewChat:L,setHistory:U,setCanNewChat:q,setCarAbort:H,setUserInput:W}=(0,w.useContext)(_.MobileChatContext),[$,B]=(0,w.useState)(!1),[F,K]=(0,w.useState)(!1),G=async e=>{var t,l,n;W(""),I.current=new AbortController;let r={chat_mode:M,model_name:E,user_input:e||D,conv_uid:P,temperature:O,app_code:null==T?void 0:T.app_code,...A&&{select_param:JSON.stringify(A)}};if(R&&R.length>0){let e=null==R?void 0:R.filter(e=>"view"===e.role);z.current=e[e.length-1].order+1}let s=[{role:"human",context:e||D,model_name:E,order:z.current,time_stamp:0},{role:"view",context:"",model_name:E,order:z.current,time_stamp:0,thinking:!0}],o=s.length-1;U([...R,...s]),q(!1);try{await (0,m.L)("".concat(null!==(t=Z.env.API_BASE_URL)&&void 0!==t?t:"","/api/v1/chat/completions"),{method:"POST",headers:{"Content-Type":"application/json",[i.gp]:null!==(l=(0,a.n5)())&&void 0!==l?l:""},signal:I.current.signal,body:JSON.stringify(r),openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===m.a)return},onclose(){var e;null===(e=I.current)||void 0===e||e.abort(),q(!0),H(!1)},onerror(e){throw Error(e)},onmessage:e=>{let t=e.data;try{t=JSON.parse(t).vis}catch(e){t.replaceAll("\\n","\n")}"[DONE]"===t?(q(!0),H(!1)):(null==t?void 0:t.startsWith("[ERROR]"))?(s[o].context=null==t?void 0:t.replace("[ERROR]",""),s[o].thinking=!1,U([...R,...s]),q(!0),H(!1)):(H(!0),s[o].context=t,s[o].thinking=!1,U([...R,...s]))}})}catch(e){null===(n=I.current)||void 0===n||n.abort(),s[o].context="Sorry, we meet some error, please try again later.",s[o].thinking=!1,U([...s]),q(!0),H(!1)}},Q=async()=>{D.trim()&&L&&await G()};(0,w.useEffect)(()=>{var e,t;null===(e=V.current)||void 0===e||e.scrollTo({top:null===(t=V.current)||void 0===t?void 0:t.scrollHeight,behavior:"auto"})},[R,V]);let X=(0,w.useMemo)(()=>{if(!T)return[];let{param_need:e=[]}=T;return null==e?void 0:e.map(e=>e.type)},[T]),Y=(0,w.useMemo)(()=>{var e;return 0===R.length&&T&&!!(null==T?void 0:null===(e=T.recommend_questions)||void 0===e?void 0:e.length)},[R,T]),{run:ee,loading:et}=(0,v.Z)(async()=>await (0,r.Vx)((0,r.zR)(P)),{manual:!0,onSuccess:()=>{U([])}});return(0,w.useEffect)(()=>{b&&E&&P&&T&&G(b)},[T,P,E,b]),(0,n.jsxs)("div",{className:"flex flex-col",children:[Y&&(0,n.jsx)("ul",{children:null==T?void 0:null===(e=T.recommend_questions)||void 0===e?void 0:e.map((e,t)=>(0,n.jsx)("li",{className:"mb-3",children:(0,n.jsx)(x.Z,{color:S[t],className:"p-2 rounded-xl",onClick:async()=>{G(e.question)},children:e.question})},e.id))}),(0,n.jsxs)("div",{className:"flex items-center justify-between gap-1",children:[(0,n.jsxs)("div",{className:"flex gap-2 mb-1 w-full overflow-x-auto",children:[(null==X?void 0:X.includes("model"))&&(0,n.jsx)(N.default,{}),(null==X?void 0:X.includes("resource"))&&(0,n.jsx)(k.default,{}),(null==X?void 0:X.includes("temperature"))&&(0,n.jsx)(C.default,{})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between text-lg font-bold",children:[(0,n.jsx)(p.Z,{content:"暂停回复",trigger:["hover"],children:(0,n.jsx)(s.Z,{className:j()("p-2 cursor-pointer",{"text-[#0c75fc]":J,"text-gray-400":!J}),onClick:()=>{var e;J&&(null===(e=I.current)||void 0===e||e.abort(),setTimeout(()=>{H(!1),q(!0)},100))}})}),(0,n.jsx)(p.Z,{content:"再来一次",trigger:["hover"],children:(0,n.jsx)(o.Z,{className:j()("p-2 cursor-pointer",{"text-gray-400":!R.length||!L}),onClick:()=>{var e,t;if(!L||0===R.length)return;let l=null===(e=null===(t=R.filter(e=>"human"===e.role))||void 0===t?void 0:t.slice(-1))||void 0===e?void 0:e[0];G((null==l?void 0:l.context)||"")}})}),et?(0,n.jsx)(h.Z,{spinning:et,indicator:(0,n.jsx)(c.Z,{style:{fontSize:18},spin:!0}),className:"p-2"}):(0,n.jsx)(p.Z,{content:"清除历史",trigger:["hover"],children:(0,n.jsx)(d.Z,{className:j()("p-2 cursor-pointer",{"text-gray-400":!R.length||!L}),onClick:()=>{L&&ee()}})})]})]}),(0,n.jsxs)("div",{className:j()("flex py-2 px-3 items-center justify-between bg-white dark:bg-[#242733] dark:border-[#6f7f95] rounded-xl border",{"border-[#0c75fc] dark:border-[rgba(12,117,252,0.8)]":$}),children:[(0,n.jsx)(f.default.TextArea,{placeholder:"可以问我任何问题",className:"w-full resize-none border-0 p-0 focus:shadow-none",value:D,autoSize:{minRows:1},onKeyDown:e=>{if("Enter"===e.key&&!e.shiftKey){if(F){e.preventDefault();return}D.trim()&&(e.preventDefault(),Q())}},onChange:e=>{W(e.target.value)},onFocus:()=>{B(!0)},onBlur:()=>B(!1),onCompositionStartCapture:()=>{K(!0)},onCompositionEndCapture:()=>{setTimeout(()=>{K(!1)},0)}}),(0,n.jsx)(g.ZP,{type:"primary",className:j()("flex items-center justify-center rounded-lg bg-button-gradient border-0 ml-2",{"opacity-40 cursor-not-allowed":!D.trim()||!L}),onClick:Q,children:L?(0,n.jsx)(u.Z,{}):(0,n.jsx)(h.Z,{indicator:(0,n.jsx)(c.Z,{className:"text-white"})})})]})]})}},7001:function(e,t,l){l.r(t);var n=l(85893),r=l(41468),a=l(39718),i=l(94668),s=l(85418),o=l(55241),c=l(67294),d=l(73913);t.default=()=>{let{modelList:e}=(0,c.useContext)(r.p),{model:t,setModel:l}=(0,c.useContext)(d.MobileChatContext),u=(0,c.useMemo)(()=>e.length>0?e.map(e=>({label:(0,n.jsxs)("div",{className:"flex items-center gap-2",onClick:()=>{l(e)},children:[(0,n.jsx)(a.Z,{width:14,height:14,model:e}),(0,n.jsx)("span",{className:"text-xs",children:e})]}),key:e})):[],[e,l]);return(0,n.jsx)(s.Z,{menu:{items:u},placement:"top",trigger:["click"],children:(0,n.jsx)(o.Z,{content:t,children:(0,n.jsxs)("div",{className:"flex items-center gap-1 border rounded-xl bg-white dark:bg-black p-2 flex-shrink-0",children:[(0,n.jsx)(a.Z,{width:16,height:16,model:t}),(0,n.jsx)("span",{className:"text-xs font-medium line-clamp-1",style:{maxWidth:96},children:t}),(0,n.jsx)(i.Z,{rotate:90})]})})})}},46568:function(e,t,l){l.r(t);var n=l(85893),r=l(25675),a=l.n(r),i=l(67294);t.default=(0,i.memo)(e=>{let{width:t,height:l,src:r,label:i}=e;return(0,n.jsx)(a(),{width:t||14,height:l||14,src:r,alt:i||"db-icon",priority:!0})})},73749:function(e,t,l){l.r(t);var n=l(85893),r=l(76212),a=l(62418),i=l(50888),s=l(94668),o=l(83266),c=l(65654),d=l(74330),u=l(23799),m=l(85418),v=l(67294),x=l(73913),p=l(46568);t.default=()=>{let{appInfo:e,resourceList:t,scene:l,model:h,conv_uid:f,getChatHistoryRun:g,setResource:b,resource:j}=(0,v.useContext)(x.MobileChatContext),[y,w]=(0,v.useState)(null),_=(0,v.useMemo)(()=>{var t,l,n;return null===(t=null==e?void 0:null===(l=e.param_need)||void 0===l?void 0:l.filter(e=>"resource"===e.type))||void 0===t?void 0:null===(n=t[0])||void 0===n?void 0:n.value},[e]),N=(0,v.useMemo)(()=>t&&t.length>0?t.map(e=>({label:(0,n.jsxs)("div",{className:"flex items-center gap-2",onClick:()=>{w(e),b(e.space_id||e.param)},children:[(0,n.jsx)(p.default,{width:14,height:14,src:a.S$[e.type].icon,label:a.S$[e.type].label}),(0,n.jsx)("span",{className:"text-xs",children:e.param})]}),key:e.space_id||e.param})):[],[t,b]),{run:k,loading:C}=(0,c.Z)(async e=>{let[,t]=await (0,r.Vx)((0,r.qn)({convUid:f,chatMode:l,data:e,model:h,config:{timeout:36e5}}));return b(t),t},{manual:!0,onSuccess:async()=>{await g()}}),Z=async e=>{let t=new FormData;t.append("doc_file",null==e?void 0:e.file),await k(t)},S=(0,v.useMemo)(()=>C?(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)(d.Z,{size:"small",indicator:(0,n.jsx)(i.Z,{spin:!0})}),(0,n.jsx)("span",{className:"text-xs",children:"上传中"})]}):j?(0,n.jsxs)("div",{className:"flex gap-1",children:[(0,n.jsx)("span",{className:"text-xs",children:j.file_name}),(0,n.jsx)(s.Z,{rotate:90})]}):(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)(o.Z,{className:"text-base"}),(0,n.jsx)("span",{className:"text-xs",children:"上传文件"})]}),[C,j]);return(0,n.jsx)(n.Fragment,{children:(()=>{switch(_){case"excel_file":case"text_file":case"image_file":return(0,n.jsx)("div",{className:"flex items-center justify-center gap-1 border rounded-xl bg-white dark:bg-black px-2 flex-shrink-0",children:(0,n.jsx)(u.default,{name:"file",accept:".xlsx,.xls",maxCount:1,showUploadList:!1,beforeUpload:()=>!1,onChange:Z,className:"flex h-full w-full items-center justify-center",children:S})});case"database":case"knowledge":case"plugin":case"awel_flow":var e,l,r,i,o;if(!(null==t?void 0:t.length))return null;return(0,n.jsx)(m.Z,{menu:{items:N},placement:"top",trigger:["click"],children:(0,n.jsxs)("div",{className:"flex items-center gap-1 border rounded-xl bg-white dark:bg-black p-2 flex-shrink-0",children:[(0,n.jsx)(p.default,{width:14,height:14,src:null===(e=a.S$[(null==y?void 0:y.type)||(null==t?void 0:null===(l=t[0])||void 0===l?void 0:l.type)])||void 0===e?void 0:e.icon,label:null===(r=a.S$[(null==y?void 0:y.type)||(null==t?void 0:null===(i=t[0])||void 0===i?void 0:i.type)])||void 0===r?void 0:r.label}),(0,n.jsx)("span",{className:"text-xs font-medium",children:(null==y?void 0:y.param)||(null==t?void 0:null===(o=t[0])||void 0===o?void 0:o.param)}),(0,n.jsx)(s.Z,{rotate:90})]})})}})()})}},97109:function(e,t,l){l.r(t);var n=l(85893),r=l(70065),a=l(85418),i=l(30568),s=l(67294),o=l(73913);t.default=()=>{let{temperature:e,setTemperature:t}=(0,s.useContext)(o.MobileChatContext),l=e=>{isNaN(e)||t(e)};return(0,n.jsx)(a.Z,{trigger:["click"],dropdownRender:()=>(0,n.jsx)("div",{className:"flex h-28 bg-white dark:bg-[rgba(255,255,255,0.5)] items-center justify-center rounded-xl py-3",children:(0,n.jsx)(i.Z,{defaultValue:.5,max:1,min:0,step:.1,vertical:!0,onChange:l,value:e})}),placement:"top",children:(0,n.jsxs)("div",{className:"flex items-center justify-between border rounded-xl bg-white dark:bg-black w-14 p-2 flex-shrink-0",children:[(0,n.jsx)(r.Z,{type:"icon-icons-temperature",className:"text-sm"}),(0,n.jsx)("span",{className:"text-xs font-medium",children:e})]})})}},73913:function(e,t,l){l.r(t),l.d(t,{MobileChatContext:function(){return j}});var n=l(85893),r=l(41468),a=l(76212),i=l(2440),s=l(62418),o=l(25519),c=l(1375),d=l(65654),u=l(74330),m=l(5152),v=l.n(m),x=l(39332),p=l(67294),h=l(56397),f=l(74638),g=l(83454);let b=v()(()=>Promise.all([l.e(3662),l.e(7034),l.e(8674),l.e(930),l.e(3166),l.e(2837),l.e(2168),l.e(8163),l.e(7126),l.e(4041),l.e(2398),l.e(1300),l.e(4567),l.e(9773),l.e(3457),l.e(4455),l.e(5110),l.e(4705),l.e(9202),l.e(5782),l.e(2783),l.e(8709),l.e(9256),l.e(9870)]).then(l.bind(l,36818)),{loadableGenerated:{webpack:()=>[36818]},ssr:!1}),j=(0,p.createContext)({model:"",temperature:.5,resource:null,setModel:()=>{},setTemperature:()=>{},setResource:()=>{},scene:"",history:[],setHistory:()=>{},scrollViewRef:{current:null},appInfo:{},conv_uid:"",resourceList:[],order:{current:1},handleChat:()=>Promise.resolve(),canAbort:!1,setCarAbort:()=>{},canNewChat:!1,setCanNewChat:()=>{},ctrl:{current:void 0},userInput:"",setUserInput:()=>{},getChatHistoryRun:()=>{}});t.default=()=>{var e,t;let l=(0,x.useSearchParams)(),m=null!==(e=null==l?void 0:l.get("chat_scene"))&&void 0!==e?e:"",v=null!==(t=null==l?void 0:l.get("app_code"))&&void 0!==t?t:"",{modelList:y}=(0,p.useContext)(r.p),[w,_]=(0,p.useState)([]),[N,k]=(0,p.useState)(""),[C,Z]=(0,p.useState)(.5),[S,R]=(0,p.useState)(null),E=(0,p.useRef)(null),[M,O]=(0,p.useState)(""),[A,P]=(0,p.useState)(!1),[T,V]=(0,p.useState)(!0),z=(0,p.useRef)(),D=(0,p.useRef)(1),I=(0,i.Z)(),J=(0,p.useMemo)(()=>"".concat(null==I?void 0:I.user_no,"_").concat(v),[v,I]),{run:L,loading:U}=(0,d.Z)(async()=>await (0,a.Vx)((0,a.$i)("".concat(null==I?void 0:I.user_no,"_").concat(v))),{manual:!0,onSuccess:e=>{let[,t]=e,l=null==t?void 0:t.filter(e=>"view"===e.role);l&&l.length>0&&(D.current=l[l.length-1].order+1),_(t||[])}}),{data:q,run:H,loading:W}=(0,d.Z)(async e=>{let[,t]=await (0,a.Vx)((0,a.BN)(e));return null!=t?t:{}},{manual:!0}),{run:$,data:B,loading:F}=(0,d.Z)(async()=>{var e,t;let[,l]=await (0,a.Vx)((0,a.vD)(m));return R((null==l?void 0:null===(e=l[0])||void 0===e?void 0:e.space_id)||(null==l?void 0:null===(t=l[0])||void 0===t?void 0:t.param)),null!=l?l:[]},{manual:!0}),{run:K,loading:G}=(0,d.Z)(async()=>{let[,e]=await (0,a.Vx)((0,a.iP)());return null!=e?e:[]},{manual:!0,onSuccess:e=>{var t;let l=null===(t=null==e?void 0:e.filter(e=>e.conv_uid===J))||void 0===t?void 0:t[0];(null==l?void 0:l.select_param)&&R(JSON.parse(null==l?void 0:l.select_param))}});(0,p.useEffect)(()=>{m&&v&&y.length&&H({chat_scene:m,app_code:v})},[v,m,H,y]),(0,p.useEffect)(()=>{v&&L()},[v]),(0,p.useEffect)(()=>{if(y.length>0){var e,t,l;let n=null===(e=null==q?void 0:null===(t=q.param_need)||void 0===t?void 0:t.filter(e=>"model"===e.type))||void 0===e?void 0:null===(l=e[0])||void 0===l?void 0:l.value;k(n||y[0])}},[y,q]),(0,p.useEffect)(()=>{var e,t,l;let n=null===(e=null==q?void 0:null===(t=q.param_need)||void 0===t?void 0:t.filter(e=>"temperature"===e.type))||void 0===e?void 0:null===(l=e[0])||void 0===l?void 0:l.value;Z(n||.5)},[q]),(0,p.useEffect)(()=>{if(m&&(null==q?void 0:q.app_code)){var e,t,l,n,r,a;let i=null===(e=null==q?void 0:null===(t=q.param_need)||void 0===t?void 0:t.filter(e=>"resource"===e.type))||void 0===e?void 0:null===(l=e[0])||void 0===l?void 0:l.value,s=null===(n=null==q?void 0:null===(r=q.param_need)||void 0===r?void 0:r.filter(e=>"resource"===e.type))||void 0===n?void 0:null===(a=n[0])||void 0===a?void 0:a.bind_value;s&&R(s),["database","knowledge","plugin","awel_flow"].includes(i)&&!s&&$()}},[q,m,$]);let Q=async e=>{var t,l,n;O(""),z.current=new AbortController;let r={chat_mode:m,model_name:N,user_input:e||M,conv_uid:J,temperature:C,app_code:null==q?void 0:q.app_code,...S&&{select_param:S}};if(w&&w.length>0){let e=null==w?void 0:w.filter(e=>"view"===e.role);D.current=e[e.length-1].order+1}let a=[{role:"human",context:e||M,model_name:N,order:D.current,time_stamp:0},{role:"view",context:"",model_name:N,order:D.current,time_stamp:0,thinking:!0}],i=a.length-1;_([...w,...a]),V(!1);try{await (0,c.L)("".concat(null!==(t=g.env.API_BASE_URL)&&void 0!==t?t:"","/api/v1/chat/completions"),{method:"POST",headers:{"Content-Type":"application/json",[o.gp]:null!==(l=(0,s.n5)())&&void 0!==l?l:""},signal:z.current.signal,body:JSON.stringify(r),openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===c.a)return},onclose(){var e;null===(e=z.current)||void 0===e||e.abort(),V(!0),P(!1)},onerror(e){throw Error(e)},onmessage:e=>{let t=e.data;try{t=JSON.parse(t).vis}catch(e){t.replaceAll("\\n","\n")}"[DONE]"===t?(V(!0),P(!1)):(null==t?void 0:t.startsWith("[ERROR]"))?(a[i].context=null==t?void 0:t.replace("[ERROR]",""),a[i].thinking=!1,_([...w,...a]),V(!0),P(!1)):(P(!0),a[i].context=t,a[i].thinking=!1,_([...w,...a]))}})}catch(e){null===(n=z.current)||void 0===n||n.abort(),a[i].context="Sorry, we meet some error, please try again later.",a[i].thinking=!1,_([...a]),V(!0),P(!1)}};return(0,p.useEffect)(()=>{m&&"chat_agent"!==m&&K()},[m,K]),(0,n.jsx)(j.Provider,{value:{model:N,resource:S,setModel:k,setTemperature:Z,setResource:R,temperature:C,appInfo:q,conv_uid:J,scene:m,history:w,scrollViewRef:E,setHistory:_,resourceList:B,order:D,handleChat:Q,setCanNewChat:V,ctrl:z,canAbort:A,setCarAbort:P,canNewChat:T,userInput:M,setUserInput:O,getChatHistoryRun:L},children:(0,n.jsx)(u.Z,{size:"large",className:"flex h-screen w-screen justify-center items-center max-h-screen",spinning:U||W||F||G,children:(0,n.jsxs)("div",{className:"flex flex-col h-screen bg-gradient-light dark:bg-gradient-dark p-4 pt-0",children:[(0,n.jsxs)("div",{ref:E,className:"flex flex-col flex-1 overflow-y-auto mb-3",children:[(0,n.jsx)(h.default,{}),(0,n.jsx)(b,{})]}),(null==q?void 0:q.app_code)&&(0,n.jsx)(f.default,{})]})})})}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3913],{56397:function(e,t,l){l.r(t);var n=l(85893),r=l(48218),a=l(58638),i=l(31418),s=l(45030),o=l(20640),c=l.n(o),d=l(67294),u=l(73913);t.default=(0,d.memo)(()=>{var e;let{appInfo:t}=(0,d.useContext)(u.MobileChatContext),{message:l}=i.Z.useApp(),[o,m]=(0,d.useState)(0);if(!(null==t?void 0:t.app_code))return null;let v=async()=>{let e=c()("dingtalk://dingtalkclient/page/link?url=".concat(encodeURIComponent(location.href),"&pc_slide=true"));l[e?"success":"error"](e?"复制成功":"复制失败")};return o>6&&l.info(JSON.stringify(window.navigator.userAgent),2,()=>{m(0)}),(0,n.jsxs)("header",{className:"flex w-full items-center justify-between bg-[rgba(255,255,255,0.9)] border dark:bg-black dark:border-[rgba(255,255,255,0.6)] rounded-xl mx-auto px-4 py-2 mb-4 sticky top-4 z-50 mt-4 shadow-md",children:[(0,n.jsxs)("div",{className:"flex gap-2 items-center",onClick:()=>m(o+1),children:[(0,n.jsx)(r.Z,{scene:(null==t?void 0:null===(e=t.team_context)||void 0===e?void 0:e.chat_scene)||"chat_agent",width:8,height:8}),(0,n.jsxs)("div",{className:"flex flex-col ml-2",children:[(0,n.jsx)(s.Z.Text,{className:"text-md font-bold line-clamp-2",children:null==t?void 0:t.app_name}),(0,n.jsx)(s.Z.Text,{className:"text-sm line-clamp-2",children:null==t?void 0:t.app_describe})]})]}),(0,n.jsx)("div",{onClick:v,className:"flex items-center justify-center w-10 h-10 bg-[#ffffff99] dark:bg-[rgba(255,255,255,0.2)] border border-white dark:border-[rgba(255,255,255,0.2)] rounded-[50%] cursor-pointer",children:(0,n.jsx)(a.Z,{className:"text-lg"})})]})})},74638:function(e,t,l){l.r(t);var n=l(85893),r=l(76212),a=l(62418),i=l(25519),s=l(30159),o=l(87740),c=l(50888),d=l(52645),u=l(27496),m=l(1375),v=l(65654),x=l(66309),p=l(55241),h=l(74330),f=l(25278),g=l(14726),b=l(93967),j=l.n(b),y=l(39332),w=l(67294),_=l(73913),N=l(7001),k=l(73749),C=l(97109),Z=l(83454);let S=["magenta","orange","geekblue","purple","cyan","green"];t.default=()=>{var e,t;let l=(0,y.useSearchParams)(),b=null!==(t=null==l?void 0:l.get("ques"))&&void 0!==t?t:"",{history:R,model:E,scene:M,temperature:O,resource:A,conv_uid:P,appInfo:T,scrollViewRef:V,order:z,userInput:D,ctrl:I,canAbort:J,canNewChat:L,setHistory:U,setCanNewChat:q,setCarAbort:H,setUserInput:W}=(0,w.useContext)(_.MobileChatContext),[$,B]=(0,w.useState)(!1),[F,K]=(0,w.useState)(!1),G=async e=>{var t,l,n;W(""),I.current=new AbortController;let r={chat_mode:M,model_name:E,user_input:e||D,conv_uid:P,temperature:O,app_code:null==T?void 0:T.app_code,...A&&{select_param:JSON.stringify(A)}};if(R&&R.length>0){let e=null==R?void 0:R.filter(e=>"view"===e.role);z.current=e[e.length-1].order+1}let s=[{role:"human",context:e||D,model_name:E,order:z.current,time_stamp:0},{role:"view",context:"",model_name:E,order:z.current,time_stamp:0,thinking:!0}],o=s.length-1;U([...R,...s]),q(!1);try{await (0,m.L)("".concat(null!==(t=Z.env.API_BASE_URL)&&void 0!==t?t:"","/api/v1/chat/completions"),{method:"POST",headers:{"Content-Type":"application/json",[i.gp]:null!==(l=(0,a.n5)())&&void 0!==l?l:""},signal:I.current.signal,body:JSON.stringify(r),openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===m.a)return},onclose(){var e;null===(e=I.current)||void 0===e||e.abort(),q(!0),H(!1)},onerror(e){throw Error(e)},onmessage:e=>{let t=e.data;try{t=JSON.parse(t).vis}catch(e){t.replaceAll("\\n","\n")}"[DONE]"===t?(q(!0),H(!1)):(null==t?void 0:t.startsWith("[ERROR]"))?(s[o].context=null==t?void 0:t.replace("[ERROR]",""),s[o].thinking=!1,U([...R,...s]),q(!0),H(!1)):(H(!0),s[o].context=t,s[o].thinking=!1,U([...R,...s]))}})}catch(e){null===(n=I.current)||void 0===n||n.abort(),s[o].context="Sorry, we meet some error, please try again later.",s[o].thinking=!1,U([...s]),q(!0),H(!1)}},Q=async()=>{D.trim()&&L&&await G()};(0,w.useEffect)(()=>{var e,t;null===(e=V.current)||void 0===e||e.scrollTo({top:null===(t=V.current)||void 0===t?void 0:t.scrollHeight,behavior:"auto"})},[R,V]);let X=(0,w.useMemo)(()=>{if(!T)return[];let{param_need:e=[]}=T;return null==e?void 0:e.map(e=>e.type)},[T]),Y=(0,w.useMemo)(()=>{var e;return 0===R.length&&T&&!!(null==T?void 0:null===(e=T.recommend_questions)||void 0===e?void 0:e.length)},[R,T]),{run:ee,loading:et}=(0,v.Z)(async()=>await (0,r.Vx)((0,r.zR)(P)),{manual:!0,onSuccess:()=>{U([])}});return(0,w.useEffect)(()=>{b&&E&&P&&T&&G(b)},[T,P,E,b]),(0,n.jsxs)("div",{className:"flex flex-col",children:[Y&&(0,n.jsx)("ul",{children:null==T?void 0:null===(e=T.recommend_questions)||void 0===e?void 0:e.map((e,t)=>(0,n.jsx)("li",{className:"mb-3",children:(0,n.jsx)(x.Z,{color:S[t],className:"p-2 rounded-xl",onClick:async()=>{G(e.question)},children:e.question})},e.id))}),(0,n.jsxs)("div",{className:"flex items-center justify-between gap-1",children:[(0,n.jsxs)("div",{className:"flex gap-2 mb-1 w-full overflow-x-auto",children:[(null==X?void 0:X.includes("model"))&&(0,n.jsx)(N.default,{}),(null==X?void 0:X.includes("resource"))&&(0,n.jsx)(k.default,{}),(null==X?void 0:X.includes("temperature"))&&(0,n.jsx)(C.default,{})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between text-lg font-bold",children:[(0,n.jsx)(p.Z,{content:"暂停回复",trigger:["hover"],children:(0,n.jsx)(s.Z,{className:j()("p-2 cursor-pointer",{"text-[#0c75fc]":J,"text-gray-400":!J}),onClick:()=>{var e;J&&(null===(e=I.current)||void 0===e||e.abort(),setTimeout(()=>{H(!1),q(!0)},100))}})}),(0,n.jsx)(p.Z,{content:"再来一次",trigger:["hover"],children:(0,n.jsx)(o.Z,{className:j()("p-2 cursor-pointer",{"text-gray-400":!R.length||!L}),onClick:()=>{var e,t;if(!L||0===R.length)return;let l=null===(e=null===(t=R.filter(e=>"human"===e.role))||void 0===t?void 0:t.slice(-1))||void 0===e?void 0:e[0];G((null==l?void 0:l.context)||"")}})}),et?(0,n.jsx)(h.Z,{spinning:et,indicator:(0,n.jsx)(c.Z,{style:{fontSize:18},spin:!0}),className:"p-2"}):(0,n.jsx)(p.Z,{content:"清除历史",trigger:["hover"],children:(0,n.jsx)(d.Z,{className:j()("p-2 cursor-pointer",{"text-gray-400":!R.length||!L}),onClick:()=>{L&&ee()}})})]})]}),(0,n.jsxs)("div",{className:j()("flex py-2 px-3 items-center justify-between bg-white dark:bg-[#242733] dark:border-[#6f7f95] rounded-xl border",{"border-[#0c75fc] dark:border-[rgba(12,117,252,0.8)]":$}),children:[(0,n.jsx)(f.default.TextArea,{placeholder:"可以问我任何问题",className:"w-full resize-none border-0 p-0 focus:shadow-none",value:D,autoSize:{minRows:1},onKeyDown:e=>{if("Enter"===e.key&&!e.shiftKey){if(F){e.preventDefault();return}D.trim()&&(e.preventDefault(),Q())}},onChange:e=>{W(e.target.value)},onFocus:()=>{B(!0)},onBlur:()=>B(!1),onCompositionStartCapture:()=>{K(!0)},onCompositionEndCapture:()=>{setTimeout(()=>{K(!1)},0)}}),(0,n.jsx)(g.ZP,{type:"primary",className:j()("flex items-center justify-center rounded-lg bg-button-gradient border-0 ml-2",{"opacity-40 cursor-not-allowed":!D.trim()||!L}),onClick:Q,children:L?(0,n.jsx)(u.Z,{}):(0,n.jsx)(h.Z,{indicator:(0,n.jsx)(c.Z,{className:"text-white"})})})]})]})}},7001:function(e,t,l){l.r(t);var n=l(85893),r=l(41468),a=l(39718),i=l(94668),s=l(85418),o=l(55241),c=l(67294),d=l(73913);t.default=()=>{let{modelList:e}=(0,c.useContext)(r.p),{model:t,setModel:l}=(0,c.useContext)(d.MobileChatContext),u=(0,c.useMemo)(()=>e.length>0?e.map(e=>({label:(0,n.jsxs)("div",{className:"flex items-center gap-2",onClick:()=>{l(e)},children:[(0,n.jsx)(a.Z,{width:14,height:14,model:e}),(0,n.jsx)("span",{className:"text-xs",children:e})]}),key:e})):[],[e,l]);return(0,n.jsx)(s.Z,{menu:{items:u},placement:"top",trigger:["click"],children:(0,n.jsx)(o.Z,{content:t,children:(0,n.jsxs)("div",{className:"flex items-center gap-1 border rounded-xl bg-white dark:bg-black p-2 flex-shrink-0",children:[(0,n.jsx)(a.Z,{width:16,height:16,model:t}),(0,n.jsx)("span",{className:"text-xs font-medium line-clamp-1",style:{maxWidth:96},children:t}),(0,n.jsx)(i.Z,{rotate:90})]})})})}},46568:function(e,t,l){l.r(t);var n=l(85893),r=l(25675),a=l.n(r),i=l(67294);t.default=(0,i.memo)(e=>{let{width:t,height:l,src:r,label:i}=e;return(0,n.jsx)(a(),{width:t||14,height:l||14,src:r,alt:i||"db-icon",priority:!0})})},73749:function(e,t,l){l.r(t);var n=l(85893),r=l(76212),a=l(62418),i=l(50888),s=l(94668),o=l(83266),c=l(65654),d=l(74330),u=l(23799),m=l(85418),v=l(67294),x=l(73913),p=l(46568);t.default=()=>{let{appInfo:e,resourceList:t,scene:l,model:h,conv_uid:f,getChatHistoryRun:g,setResource:b,resource:j}=(0,v.useContext)(x.MobileChatContext),[y,w]=(0,v.useState)(null),_=(0,v.useMemo)(()=>{var t,l,n;return null===(t=null==e?void 0:null===(l=e.param_need)||void 0===l?void 0:l.filter(e=>"resource"===e.type))||void 0===t?void 0:null===(n=t[0])||void 0===n?void 0:n.value},[e]),N=(0,v.useMemo)(()=>t&&t.length>0?t.map(e=>({label:(0,n.jsxs)("div",{className:"flex items-center gap-2",onClick:()=>{w(e),b(e.space_id||e.param)},children:[(0,n.jsx)(p.default,{width:14,height:14,src:a.S$[e.type].icon,label:a.S$[e.type].label}),(0,n.jsx)("span",{className:"text-xs",children:e.param})]}),key:e.space_id||e.param})):[],[t,b]),{run:k,loading:C}=(0,c.Z)(async e=>{let[,t]=await (0,r.Vx)((0,r.qn)({convUid:f,chatMode:l,data:e,model:h,config:{timeout:36e5}}));return b(t),t},{manual:!0,onSuccess:async()=>{await g()}}),Z=async e=>{let t=new FormData;t.append("doc_file",null==e?void 0:e.file),await k(t)},S=(0,v.useMemo)(()=>C?(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)(d.Z,{size:"small",indicator:(0,n.jsx)(i.Z,{spin:!0})}),(0,n.jsx)("span",{className:"text-xs",children:"上传中"})]}):j?(0,n.jsxs)("div",{className:"flex gap-1",children:[(0,n.jsx)("span",{className:"text-xs",children:j.file_name}),(0,n.jsx)(s.Z,{rotate:90})]}):(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)(o.Z,{className:"text-base"}),(0,n.jsx)("span",{className:"text-xs",children:"上传文件"})]}),[C,j]);return(0,n.jsx)(n.Fragment,{children:(()=>{switch(_){case"excel_file":case"text_file":case"image_file":return(0,n.jsx)("div",{className:"flex items-center justify-center gap-1 border rounded-xl bg-white dark:bg-black px-2 flex-shrink-0",children:(0,n.jsx)(u.default,{name:"file",accept:".xlsx,.xls",maxCount:1,showUploadList:!1,beforeUpload:()=>!1,onChange:Z,className:"flex h-full w-full items-center justify-center",children:S})});case"database":case"knowledge":case"plugin":case"awel_flow":var e,l,r,i,o;if(!(null==t?void 0:t.length))return null;return(0,n.jsx)(m.Z,{menu:{items:N},placement:"top",trigger:["click"],children:(0,n.jsxs)("div",{className:"flex items-center gap-1 border rounded-xl bg-white dark:bg-black p-2 flex-shrink-0",children:[(0,n.jsx)(p.default,{width:14,height:14,src:null===(e=a.S$[(null==y?void 0:y.type)||(null==t?void 0:null===(l=t[0])||void 0===l?void 0:l.type)])||void 0===e?void 0:e.icon,label:null===(r=a.S$[(null==y?void 0:y.type)||(null==t?void 0:null===(i=t[0])||void 0===i?void 0:i.type)])||void 0===r?void 0:r.label}),(0,n.jsx)("span",{className:"text-xs font-medium",children:(null==y?void 0:y.param)||(null==t?void 0:null===(o=t[0])||void 0===o?void 0:o.param)}),(0,n.jsx)(s.Z,{rotate:90})]})})}})()})}},97109:function(e,t,l){l.r(t);var n=l(85893),r=l(70065),a=l(85418),i=l(30568),s=l(67294),o=l(73913);t.default=()=>{let{temperature:e,setTemperature:t}=(0,s.useContext)(o.MobileChatContext),l=e=>{isNaN(e)||t(e)};return(0,n.jsx)(a.Z,{trigger:["click"],dropdownRender:()=>(0,n.jsx)("div",{className:"flex h-28 bg-white dark:bg-[rgba(255,255,255,0.5)] items-center justify-center rounded-xl py-3",children:(0,n.jsx)(i.Z,{defaultValue:.5,max:1,min:0,step:.1,vertical:!0,onChange:l,value:e})}),placement:"top",children:(0,n.jsxs)("div",{className:"flex items-center justify-between border rounded-xl bg-white dark:bg-black w-14 p-2 flex-shrink-0",children:[(0,n.jsx)(r.Z,{type:"icon-icons-temperature",className:"text-sm"}),(0,n.jsx)("span",{className:"text-xs font-medium",children:e})]})})}},73913:function(e,t,l){l.r(t),l.d(t,{MobileChatContext:function(){return j}});var n=l(85893),r=l(41468),a=l(76212),i=l(2440),s=l(62418),o=l(25519),c=l(1375),d=l(65654),u=l(74330),m=l(5152),v=l.n(m),x=l(39332),p=l(67294),h=l(56397),f=l(74638),g=l(83454);let b=v()(()=>Promise.all([l.e(3662),l.e(7034),l.e(6106),l.e(8674),l.e(3166),l.e(2837),l.e(2168),l.e(8163),l.e(4041),l.e(2398),l.e(1300),l.e(4567),l.e(9773),l.e(3457),l.e(4035),l.e(152),l.e(4705),l.e(9202),l.e(5782),l.e(2783),l.e(8709),l.e(7249),l.e(9870)]).then(l.bind(l,36818)),{loadableGenerated:{webpack:()=>[36818]},ssr:!1}),j=(0,p.createContext)({model:"",temperature:.5,resource:null,setModel:()=>{},setTemperature:()=>{},setResource:()=>{},scene:"",history:[],setHistory:()=>{},scrollViewRef:{current:null},appInfo:{},conv_uid:"",resourceList:[],order:{current:1},handleChat:()=>Promise.resolve(),canAbort:!1,setCarAbort:()=>{},canNewChat:!1,setCanNewChat:()=>{},ctrl:{current:void 0},userInput:"",setUserInput:()=>{},getChatHistoryRun:()=>{}});t.default=()=>{var e,t;let l=(0,x.useSearchParams)(),m=null!==(e=null==l?void 0:l.get("chat_scene"))&&void 0!==e?e:"",v=null!==(t=null==l?void 0:l.get("app_code"))&&void 0!==t?t:"",{modelList:y}=(0,p.useContext)(r.p),[w,_]=(0,p.useState)([]),[N,k]=(0,p.useState)(""),[C,Z]=(0,p.useState)(.5),[S,R]=(0,p.useState)(null),E=(0,p.useRef)(null),[M,O]=(0,p.useState)(""),[A,P]=(0,p.useState)(!1),[T,V]=(0,p.useState)(!0),z=(0,p.useRef)(),D=(0,p.useRef)(1),I=(0,i.Z)(),J=(0,p.useMemo)(()=>"".concat(null==I?void 0:I.user_no,"_").concat(v),[v,I]),{run:L,loading:U}=(0,d.Z)(async()=>await (0,a.Vx)((0,a.$i)("".concat(null==I?void 0:I.user_no,"_").concat(v))),{manual:!0,onSuccess:e=>{let[,t]=e,l=null==t?void 0:t.filter(e=>"view"===e.role);l&&l.length>0&&(D.current=l[l.length-1].order+1),_(t||[])}}),{data:q,run:H,loading:W}=(0,d.Z)(async e=>{let[,t]=await (0,a.Vx)((0,a.BN)(e));return null!=t?t:{}},{manual:!0}),{run:$,data:B,loading:F}=(0,d.Z)(async()=>{var e,t;let[,l]=await (0,a.Vx)((0,a.vD)(m));return R((null==l?void 0:null===(e=l[0])||void 0===e?void 0:e.space_id)||(null==l?void 0:null===(t=l[0])||void 0===t?void 0:t.param)),null!=l?l:[]},{manual:!0}),{run:K,loading:G}=(0,d.Z)(async()=>{let[,e]=await (0,a.Vx)((0,a.iP)());return null!=e?e:[]},{manual:!0,onSuccess:e=>{var t;let l=null===(t=null==e?void 0:e.filter(e=>e.conv_uid===J))||void 0===t?void 0:t[0];(null==l?void 0:l.select_param)&&R(JSON.parse(null==l?void 0:l.select_param))}});(0,p.useEffect)(()=>{m&&v&&y.length&&H({chat_scene:m,app_code:v})},[v,m,H,y]),(0,p.useEffect)(()=>{v&&L()},[v]),(0,p.useEffect)(()=>{if(y.length>0){var e,t,l;let n=null===(e=null==q?void 0:null===(t=q.param_need)||void 0===t?void 0:t.filter(e=>"model"===e.type))||void 0===e?void 0:null===(l=e[0])||void 0===l?void 0:l.value;k(n||y[0])}},[y,q]),(0,p.useEffect)(()=>{var e,t,l;let n=null===(e=null==q?void 0:null===(t=q.param_need)||void 0===t?void 0:t.filter(e=>"temperature"===e.type))||void 0===e?void 0:null===(l=e[0])||void 0===l?void 0:l.value;Z(n||.5)},[q]),(0,p.useEffect)(()=>{if(m&&(null==q?void 0:q.app_code)){var e,t,l,n,r,a;let i=null===(e=null==q?void 0:null===(t=q.param_need)||void 0===t?void 0:t.filter(e=>"resource"===e.type))||void 0===e?void 0:null===(l=e[0])||void 0===l?void 0:l.value,s=null===(n=null==q?void 0:null===(r=q.param_need)||void 0===r?void 0:r.filter(e=>"resource"===e.type))||void 0===n?void 0:null===(a=n[0])||void 0===a?void 0:a.bind_value;s&&R(s),["database","knowledge","plugin","awel_flow"].includes(i)&&!s&&$()}},[q,m,$]);let Q=async e=>{var t,l,n;O(""),z.current=new AbortController;let r={chat_mode:m,model_name:N,user_input:e||M,conv_uid:J,temperature:C,app_code:null==q?void 0:q.app_code,...S&&{select_param:S}};if(w&&w.length>0){let e=null==w?void 0:w.filter(e=>"view"===e.role);D.current=e[e.length-1].order+1}let a=[{role:"human",context:e||M,model_name:N,order:D.current,time_stamp:0},{role:"view",context:"",model_name:N,order:D.current,time_stamp:0,thinking:!0}],i=a.length-1;_([...w,...a]),V(!1);try{await (0,c.L)("".concat(null!==(t=g.env.API_BASE_URL)&&void 0!==t?t:"","/api/v1/chat/completions"),{method:"POST",headers:{"Content-Type":"application/json",[o.gp]:null!==(l=(0,s.n5)())&&void 0!==l?l:""},signal:z.current.signal,body:JSON.stringify(r),openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===c.a)return},onclose(){var e;null===(e=z.current)||void 0===e||e.abort(),V(!0),P(!1)},onerror(e){throw Error(e)},onmessage:e=>{let t=e.data;try{t=JSON.parse(t).vis}catch(e){t.replaceAll("\\n","\n")}"[DONE]"===t?(V(!0),P(!1)):(null==t?void 0:t.startsWith("[ERROR]"))?(a[i].context=null==t?void 0:t.replace("[ERROR]",""),a[i].thinking=!1,_([...w,...a]),V(!0),P(!1)):(P(!0),a[i].context=t,a[i].thinking=!1,_([...w,...a]))}})}catch(e){null===(n=z.current)||void 0===n||n.abort(),a[i].context="Sorry, we meet some error, please try again later.",a[i].thinking=!1,_([...a]),V(!0),P(!1)}};return(0,p.useEffect)(()=>{m&&"chat_agent"!==m&&K()},[m,K]),(0,n.jsx)(j.Provider,{value:{model:N,resource:S,setModel:k,setTemperature:Z,setResource:R,temperature:C,appInfo:q,conv_uid:J,scene:m,history:w,scrollViewRef:E,setHistory:_,resourceList:B,order:D,handleChat:Q,setCanNewChat:V,ctrl:z,canAbort:A,setCarAbort:P,canNewChat:T,userInput:M,setUserInput:O,getChatHistoryRun:L},children:(0,n.jsx)(u.Z,{size:"large",className:"flex h-screen w-screen justify-center items-center max-h-screen",spinning:U||W||F||G,children:(0,n.jsxs)("div",{className:"flex flex-col h-screen bg-gradient-light dark:bg-gradient-dark p-4 pt-0",children:[(0,n.jsxs)("div",{ref:E,className:"flex flex-col flex-1 overflow-y-auto mb-3",children:[(0,n.jsx)(h.default,{}),(0,n.jsx)(b,{})]}),(null==q?void 0:q.app_code)&&(0,n.jsx)(f.default,{})]})})})}}}]); \ No newline at end of file diff --git a/dbgpt/app/static/web/_next/static/chunks/4035-e44efbdb196bb006.js b/dbgpt/app/static/web/_next/static/chunks/4035-e44efbdb196bb006.js new file mode 100644 index 000000000..29b549e21 --- /dev/null +++ b/dbgpt/app/static/web/_next/static/chunks/4035-e44efbdb196bb006.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4035],{90494:function(t,n){"use strict";var e=function(){function t(){this._events={}}return t.prototype.on=function(t,n,e){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:n,once:!!e}),this},t.prototype.once=function(t,n){return this.on(t,n,!0)},t.prototype.emit=function(t){for(var n=this,e=[],r=1;rc&&(c=d)}for(var v=Math.atan(r/(e*Math.tan(i))),m=1/0,g=-1/0,y=[a,o],l=-(2*Math.PI);l<=2*Math.PI;l+=Math.PI){var b=v+l;ag&&(g=x)}return{x:s,y:m,width:c-s,height:g-m}}function c(t,n,e,i,a,u){var s=-1,c=1/0,h=[e,i],l=20;u&&u>200&&(l=u/10);for(var f=1/l,p=f/10,d=0;d<=l;d++){var v=d*f,m=[a.apply(void 0,(0,r.ev)([],(0,r.CR)(t.concat([v])),!1)),a.apply(void 0,(0,r.ev)([],(0,r.CR)(n.concat([v])),!1))],g=o(h[0],h[1],m[0],m[1]);g=0&&g=0&&a<=1&&l.push(a);else{var f=c*c-4*s*h;(0,i.Z)(f,0)?l.push(-c/(2*s)):f>0&&(a=(-c+(u=Math.sqrt(f)))/(2*s),o=(-c-u)/(2*s),a>=0&&a<=1&&l.push(a),o>=0&&o<=1&&l.push(o))}return l}function v(t,n,e,r,i,a,o,s){for(var c=[t,o],h=[n,s],l=d(t,e,i,o),f=d(n,r,a,s),v=0;v=0?[a]:[]}function M(t,n,e,r,i,a){var o=b(t,e,i)[0],s=b(n,r,a)[0],c=[t,i],h=[n,a];return void 0!==o&&c.push(y(t,e,i,o)),void 0!==s&&h.push(y(n,r,a,s)),u(c,h)}function x(t,n,e,r,i,a,u,s){var h=c([t,e,i],[n,r,a],u,s,y);return o(h.x,h.y,u,s)}},98875:function(t,n,e){"use strict";e.d(n,{S:function(){return u}});var r=e(97582),i=e(4559),a=e(44078),o=function(){function t(t){this.dragndropPluginOptions=t}return t.prototype.apply=function(n){var e=this,i=n.renderingService,o=n.renderingContext.root.ownerDocument,u=o.defaultView,s=function(t){var n=t.target,i=n===o,s=i&&e.dragndropPluginOptions.isDocumentDraggable?o:n.closest&&n.closest("[draggable=true]");if(s){var c=!1,h=t.timeStamp,l=[t.clientX,t.clientY],f=null,p=[t.clientX,t.clientY],d=function(t){return(0,r.mG)(e,void 0,void 0,function(){var e,u,d,v,m,g;return(0,r.Jh)(this,function(r){switch(r.label){case 0:if(!c){if(e=t.timeStamp-h,u=(0,a.y)([t.clientX,t.clientY],l),e<=this.dragndropPluginOptions.dragstartTimeThreshold||u<=this.dragndropPluginOptions.dragstartDistanceThreshold)return[2];t.type="dragstart",s.dispatchEvent(t),c=!0}if(t.type="drag",t.dx=t.clientX-p[0],t.dy=t.clientY-p[1],s.dispatchEvent(t),p=[t.clientX,t.clientY],i)return[3,2];return d="pointer"===this.dragndropPluginOptions.overlap?[t.canvasX,t.canvasY]:n.getBounds().center,[4,o.elementsFromPoint(d[0],d[1])];case 1:f!==(g=(null==(m=(v=r.sent())[v.indexOf(n)+1])?void 0:m.closest("[droppable=true]"))||(this.dragndropPluginOptions.isDocumentDroppable?o:null))&&(f&&(t.type="dragleave",t.target=f,f.dispatchEvent(t)),g&&(t.type="dragenter",t.target=g,g.dispatchEvent(t)),(f=g)&&(t.type="dragover",t.target=f,f.dispatchEvent(t))),r.label=2;case 2:return[2]}})})};u.addEventListener("pointermove",d);var v=function(t){if(c){t.detail={preventClick:!0};var n=t.clone();f&&(n.type="drop",n.target=f,f.dispatchEvent(n)),n.type="dragend",s.dispatchEvent(n),c=!1}u.removeEventListener("pointermove",d)};n.addEventListener("pointerup",v,{once:!0}),n.addEventListener("pointerupoutside",v,{once:!0})}};i.hooks.init.tap(t.tag,function(){u.addEventListener("pointerdown",s)}),i.hooks.destroy.tap(t.tag,function(){u.removeEventListener("pointerdown",s)})},t.tag="Dragndrop",t}(),u=function(t){function n(n){void 0===n&&(n={});var e=t.call(this)||this;return e.options=n,e.name="dragndrop",e}return(0,r.ZT)(n,t),n.prototype.init=function(){this.addRenderingPlugin(new o((0,r.pi)({overlap:"pointer",isDocumentDraggable:!1,isDocumentDroppable:!1,dragstartDistanceThreshold:0,dragstartTimeThreshold:0},this.options)))},n.prototype.destroy=function(){this.removeAllRenderingPlugins()},n.prototype.setOptions=function(t){Object.assign(this.plugins[0].dragndropPluginOptions,t)},n}(i.F6)},1242:function(t,n,e){"use strict";e.d(n,{mN:function(){return a.mN},ux:function(){return a.ux},Xz:function(){return a.Xz},$6:function(){return a.$6},Cd:function(){return a.Cd},b_:function(){return a.b_},Aw:function(){return a.Aw},s$:function(){return a.s$},BB:function(){return a.BB},Dk:function(){return a.Dk},Pj:function(){return a.Pj},nR:function(){return a.nR},ZA:function(){return a.ZA},k9:function(){return a.k9},Ee:function(){return a.Ee},x1:function(){return a.x1},y$:function(){return a.y$},mg:function(){return a.mg},aH:function(){return a.aH},h0:function(){return a.h0},UL:function(){return a.UL},bn:function(){return a.bn},xv:function(){return a.xv},YR:function(){return a.YR},lu:function(){return a.lu},GZ:function(){return a.GZ}});var r,i,a=e(4559),o=e(97582),u=e(76714),s=e(25897),c=e(32945),h=e(85975),l=e(77160),f=function(t){function n(){var n=t.apply(this,(0,o.ev)([],(0,o.CR)(arguments),!1))||this;return n.landmarks=[],n}return(0,o.ZT)(n,t),n.prototype.rotate=function(t,n,e){if(this.relElevation=(0,a._O)(n),this.relAzimuth=(0,a._O)(t),this.relRoll=(0,a._O)(e),this.elevation+=this.relElevation,this.azimuth+=this.relAzimuth,this.roll+=this.relRoll,this.type===a.iM.EXPLORING){var r=c.yY(c.Ue(),[1,0,0],(0,a.Vl)((this.rotateWorld?1:-1)*this.relElevation)),i=c.yY(c.Ue(),[0,1,0],(0,a.Vl)((this.rotateWorld?1:-1)*this.relAzimuth)),o=c.yY(c.Ue(),[0,0,1],(0,a.Vl)(this.relRoll)),u=c.Jp(c.Ue(),i,r);u=c.Jp(c.Ue(),u,o);var s=h.fromQuat(h.create(),u);h.translate(this.matrix,this.matrix,[0,0,-this.distance]),h.multiply(this.matrix,this.matrix,s),h.translate(this.matrix,this.matrix,[0,0,this.distance])}else{if(Math.abs(this.elevation)>90)return this;this.computeMatrix()}return this._getAxes(),this.type===a.iM.ORBITING||this.type===a.iM.EXPLORING?this._getPosition():this.type===a.iM.TRACKING&&this._getFocalPoint(),this._update(),this},n.prototype.pan=function(t,n){var e=(0,a.O4)(t,n,0),r=l.d9(this.position);return l.IH(r,r,l.bA(l.Ue(),this.right,e[0])),l.IH(r,r,l.bA(l.Ue(),this.up,e[1])),this._setPosition(r),this.triggerUpdate(),this},n.prototype.dolly=function(t){var n=this.forward,e=l.d9(this.position),r=t*this.dollyingStep;return r=Math.max(Math.min(this.distance+t*this.dollyingStep,this.maxDistance),this.minDistance)-this.distance,e[0]+=r*n[0],e[1]+=r*n[1],e[2]+=r*n[2],this._setPosition(e),this.type===a.iM.ORBITING||this.type===a.iM.EXPLORING?this._getDistance():this.type===a.iM.TRACKING&&l.IH(this.focalPoint,e,this.distanceVector),this.triggerUpdate(),this},n.prototype.cancelLandmarkAnimation=function(){void 0!==this.landmarkAnimationID&&this.canvas.cancelAnimationFrame(this.landmarkAnimationID)},n.prototype.createLandmark=function(t,n){void 0===n&&(n={});var e,r,i,o,u=n.position,s=void 0===u?this.position:u,c=n.focalPoint,f=void 0===c?this.focalPoint:c,p=n.roll,d=n.zoom,v=new a.GZ.CameraContribution;v.setType(this.type,void 0),v.setPosition(s[0],null!==(e=s[1])&&void 0!==e?e:this.position[1],null!==(r=s[2])&&void 0!==r?r:this.position[2]),v.setFocalPoint(f[0],null!==(i=f[1])&&void 0!==i?i:this.focalPoint[1],null!==(o=f[2])&&void 0!==o?o:this.focalPoint[2]),v.setRoll(null!=p?p:this.roll),v.setZoom(null!=d?d:this.zoom);var m={name:t,matrix:h.clone(v.getWorldTransform()),right:l.d9(v.right),up:l.d9(v.up),forward:l.d9(v.forward),position:l.d9(v.getPosition()),focalPoint:l.d9(v.getFocalPoint()),distanceVector:l.d9(v.getDistanceVector()),distance:v.getDistance(),dollyingStep:v.getDollyingStep(),azimuth:v.getAzimuth(),elevation:v.getElevation(),roll:v.getRoll(),relAzimuth:v.relAzimuth,relElevation:v.relElevation,relRoll:v.relRoll,zoom:v.getZoom()};return this.landmarks.push(m),m},n.prototype.gotoLandmark=function(t,n){var e=this;void 0===n&&(n={});var r=(0,u.Z)(t)?this.landmarks.find(function(n){return n.name===t}):t;if(r){var i,o=(0,s.Z)(n)?{duration:n}:n,c=o.easing,h=void 0===c?"linear":c,f=o.duration,p=void 0===f?100:f,d=o.easingFunction,v=o.onfinish,m=void 0===v?void 0:v,g=o.onframe,y=void 0===g?void 0:g;this.cancelLandmarkAnimation();var b=r.position,M=r.focalPoint,x=r.zoom,w=r.roll,_=(void 0===d?void 0:d)||a.GZ.EasingFunction(h),k=function(){e.setFocalPoint(M),e.setPosition(b),e.setRoll(w),e.setZoom(x),e.computeMatrix(),e.triggerUpdate(),null==m||m()};if(0===p)return k();var T=function(t){void 0===i&&(i=t);var n=t-i;if(n>=p){k();return}var r=_(n/p),a=l.Ue(),o=l.Ue(),u=1,s=0;if(l.t7(a,e.focalPoint,M,r),l.t7(o,e.position,b,r),s=e.roll*(1-r)+w*r,u=e.zoom*(1-r)+x*r,e.setFocalPoint(a),e.setPosition(o),e.setRoll(s),e.setZoom(u),l.TK(a,M)+l.TK(o,b)<=.01&&void 0==x&&void 0==w)return k();e.computeMatrix(),e.triggerUpdate(),n0){var u,s=(u=e[o-1],u===t?u:i&&(u===i||u===r)?i:null);if(s){e[o-1]=s;return}}else n=this.observer,b.push(n),y||(y=!0,void 0!==a.GZ.globalThis?a.GZ.globalThis.setTimeout(M):M());e[o]=t},t.prototype.addListeners=function(){this.addListeners_(this.target)},t.prototype.addListeners_=function(t){var n=this.options;n.attributes&&t.addEventListener(a.Dk.ATTR_MODIFIED,this,!0),n.childList&&t.addEventListener(a.Dk.INSERTED,this,!0),(n.childList||n.subtree)&&t.addEventListener(a.Dk.REMOVED,this,!0)},t.prototype.removeListeners=function(){this.removeListeners_(this.target)},t.prototype.removeListeners_=function(t){var n=this.options;n.attributes&&t.removeEventListener(a.Dk.ATTR_MODIFIED,this,!0),n.childList&&t.removeEventListener(a.Dk.INSERTED,this,!0),(n.childList||n.subtree)&&t.removeEventListener(a.Dk.REMOVED,this,!0)},t.prototype.removeTransientObservers=function(){var t=this.transientObservedNodes;this.transientObservedNodes=[],t.forEach(function(t){this.removeListeners_(t);for(var n=v.get(t),e=0;e0&&Number(this._currentTime)>=this._totalDuration||this._playbackRate<0&&0>=Number(this._currentTime))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalDuration",{get:function(){return this._totalDuration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_needsTick",{get:function(){return this.pending||"running"===this.playState||!this._finishedFlag},enumerable:!1,configurable:!0}),t.prototype.updatePromises=function(){var t=this.oldPlayState,n=this.pending?"pending":this.playState;return this.readyPromise&&n!==t&&("idle"===n?(this.rejectReadyPromise(),this.readyPromise=void 0):"pending"===t?this.resolveReadyPromise():"pending"===n&&(this.readyPromise=void 0)),this.finishedPromise&&n!==t&&("idle"===n?(this.rejectFinishedPromise(),this.finishedPromise=void 0):"finished"===n?this.resolveFinishedPromise():"finished"===t&&(this.finishedPromise=void 0)),this.oldPlayState=n,this.readyPromise||this.finishedPromise},t.prototype.play=function(){this.updatePromises(),this._paused=!1,(this._isFinished||this._idle)&&(this.rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this),-1===this.timeline.animations.indexOf(this)&&this.timeline.animations.push(this),this.updatePromises()},t.prototype.pause=function(){this.updatePromises(),this.currentTime&&(this._holdTime=this.currentTime),this._isFinished||this._paused||this._idle?this._idle&&(this.rewind(),this._idle=!1):this.currentTimePending=!0,this._startTime=null,this._paused=!0,this.updatePromises()},t.prototype.finish=function(){this.updatePromises(),this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this.currentTimePending=!1,this.timeline.applyDirtiedAnimation(this),this.updatePromises())},t.prototype.cancel=function(){var t=this;if(this.updatePromises(),this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this.effect.update(null),this.timeline.applyDirtiedAnimation(this),this.updatePromises(),this.oncancel)){var n=new _(null,this,this.currentTime,null);setTimeout(function(){t.oncancel(n)})}},t.prototype.reverse=function(){this.updatePromises();var t=this.currentTime;this.playbackRate*=-1,this.play(),null!==t&&(this.currentTime=t),this.updatePromises()},t.prototype.updatePlaybackRate=function(t){this.playbackRate=t},t.prototype.targetAnimations=function(){var t;return(null===(t=this.effect)||void 0===t?void 0:t.target).getAnimations()},t.prototype.markTarget=function(){var t=this.targetAnimations();-1===t.indexOf(this)&&t.push(this)},t.prototype.unmarkTarget=function(){var t=this.targetAnimations(),n=t.indexOf(this);-1!==n&&t.splice(n,1)},t.prototype.tick=function(t,n){this._idle||this._paused||(null===this._startTime?n&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this.tickCurrentTime((t-this._startTime)*this.playbackRate)),n&&(this.currentTimePending=!1,this.fireEvents(t))},t.prototype.rewind=function(){if(this.playbackRate>=0)this.currentTime=0;else if(this._totalDuration<1/0)this.currentTime=this._totalDuration;else throw Error("Unable to rewind negative playback rate animation with infinite duration")},t.prototype.persist=function(){throw Error(a.jf)},t.prototype.addEventListener=function(t,n,e){throw Error(a.jf)},t.prototype.removeEventListener=function(t,n,e){throw Error(a.jf)},t.prototype.dispatchEvent=function(t){throw Error(a.jf)},t.prototype.commitStyles=function(){throw Error(a.jf)},t.prototype.ensureAlive=function(){var t,n;this.playbackRate<0&&0===this.currentTime?this._inEffect=!!(null===(t=this.effect)||void 0===t?void 0:t.update(-1)):this._inEffect=!!(null===(n=this.effect)||void 0===n?void 0:n.update(this.currentTime)),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,this.timeline.animations.push(this))},t.prototype.tickCurrentTime=function(t,n){t!==this._currentTime&&(this._currentTime=t,this._isFinished&&!n&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this.ensureAlive())},t.prototype.fireEvents=function(t){var n=this;if(this._isFinished){if(!this._finishedFlag){if(this.onfinish){var e=new _(null,this,this.currentTime,t);setTimeout(function(){n.onfinish&&n.onfinish(e)})}this._finishedFlag=!0}}else{if(this.onframe&&"running"===this.playState){var r=new _(null,this,this.currentTime,t);this.onframe(r)}this._finishedFlag=!1}},t}(),A="function"==typeof Float32Array,Z=function(t,n){return 1-3*n+3*t},P=function(t,n){return 3*n-6*t},N=function(t){return 3*t},O=function(t,n,e){return((Z(n,e)*t+P(n,e))*t+N(n))*t},E=function(t,n,e){return 3*Z(n,e)*t*t+2*P(n,e)*t+N(n)},I=function(t,n,e,r,i){var a,o,u=0;do(a=O(o=n+(e-n)/2,r,i)-t)>0?e=o:n=o;while(Math.abs(a)>1e-7&&++u<10);return o},R=function(t,n,e,r){for(var i=0;i<4;++i){var a=E(n,e,r);if(0===a)break;var o=O(n,e,r)-t;n-=o/a}return n},F=function(t,n,e,r){if(!(0<=t&&t<=1&&0<=e&&e<=1))throw Error("bezier x values must be in [0, 1] range");if(t===n&&e===r)return function(t){return t};for(var i=A?new Float32Array(11):Array(11),a=0;a<11;++a)i[a]=O(.1*a,t,e);var o=function(n){for(var r=0,a=1;10!==a&&i[a]<=n;++a)r+=.1;var o=r+(n-i[--a])/(i[a+1]-i[a])*.1,u=E(o,t,e);return u>=.001?R(n,o,t,e):0===u?o:I(n,r,r+.1,t,e)};return function(t){return 0===t||1===t?t:O(o(t),n,r)}},C=function(t){return Math.pow(t,2)},D=function(t){return Math.pow(t,3)},q=function(t){return Math.pow(t,4)},S=function(t){return Math.pow(t,5)},j=function(t){return Math.pow(t,6)},L=function(t){return 1-Math.cos(t*Math.PI/2)},W=function(t){return 1-Math.sqrt(1-t*t)},z=function(t){return t*t*(3*t-2)},V=function(t){for(var n,e=4;t<((n=Math.pow(2,--e))-1)/11;);return 1/Math.pow(4,3-e)-7.5625*Math.pow((3*n-2)/22-t,2)},G=function(t,n){void 0===n&&(n=[]);var e=(0,o.CR)(n,2),r=e[0],i=e[1],a=(0,x.Z)(Number(void 0===r?1:r),1,10),u=(0,x.Z)(Number(void 0===i?.5:i),.1,2);return 0===t||1===t?t:-a*Math.pow(2,10*(t-1))*Math.sin((t-1-u/(2*Math.PI)*Math.asin(1/a))*(2*Math.PI)/u)},K=function(t,n,e){void 0===n&&(n=[]);var r=(0,o.CR)(n,4),i=r[0],a=void 0===i?1:i,u=r[1],s=void 0===u?100:u,c=r[2],h=void 0===c?10:c,l=r[3],f=void 0===l?0:l;a=(0,x.Z)(a,.1,1e3),s=(0,x.Z)(s,.1,1e3),h=(0,x.Z)(h,.1,1e3),f=(0,x.Z)(f,.1,1e3);var p=Math.sqrt(s/a),d=h/(2*Math.sqrt(s*a)),v=d<1?p*Math.sqrt(1-d*d):0,m=d<1?(d*p+-f)/v:-f+p,g=e?e*t/1e3:t;return(g=d<1?Math.exp(-g*d*p)*(1*Math.cos(v*g)+m*Math.sin(v*g)):(1+m*g)*Math.exp(-g*p),0===t||1===t)?t:1-g},U=function(t,n){void 0===n&&(n=[]);var e=(0,o.CR)(n,2),r=e[0],i=void 0===r?10:r;return("start"==e[1]?Math.ceil:Math.floor)((0,x.Z)(t,0,1)*i)/i},$=function(t,n){void 0===n&&(n=[]);var e=(0,o.CR)(n,4);return F(e[0],e[1],e[2],e[3])(t)},H=F(.42,0,1,1),B=function(t){return function(n,e,r){return void 0===e&&(e=[]),1-t(1-n,e,r)}},X=function(t){return function(n,e,r){return void 0===e&&(e=[]),n<.5?t(2*n,e,r)/2:1-t(-2*n+2,e,r)/2}},Y=function(t){return function(n,e,r){return void 0===e&&(e=[]),n<.5?(1-t(1-2*n,e,r))/2:(t(2*n-1,e,r)+1)/2}},J={steps:U,"step-start":function(t){return U(t,[1,"start"])},"step-end":function(t){return U(t,[1,"end"])},linear:function(t){return t},"cubic-bezier":$,ease:function(t){return $(t,[.25,.1,.25,1])},in:H,out:B(H),"in-out":X(H),"out-in":Y(H),"in-quad":C,"out-quad":B(C),"in-out-quad":X(C),"out-in-quad":Y(C),"in-cubic":D,"out-cubic":B(D),"in-out-cubic":X(D),"out-in-cubic":Y(D),"in-quart":q,"out-quart":B(q),"in-out-quart":X(q),"out-in-quart":Y(q),"in-quint":S,"out-quint":B(S),"in-out-quint":X(S),"out-in-quint":Y(S),"in-expo":j,"out-expo":B(j),"in-out-expo":X(j),"out-in-expo":Y(j),"in-sine":L,"out-sine":B(L),"in-out-sine":X(L),"out-in-sine":Y(L),"in-circ":W,"out-circ":B(W),"in-out-circ":X(W),"out-in-circ":Y(W),"in-back":z,"out-back":B(z),"in-out-back":X(z),"out-in-back":Y(z),"in-bounce":V,"out-bounce":B(V),"in-out-bounce":X(V),"out-in-bounce":Y(V),"in-elastic":G,"out-elastic":B(G),"in-out-elastic":X(G),"out-in-elastic":Y(G),spring:K,"spring-in":K,"spring-out":B(K),"spring-in-out":X(K),"spring-out-in":Y(K)},Q=function(t){var n;return("-"===(n=(n=t).replace(/([A-Z])/g,function(t){return"-".concat(t.toLowerCase())})).charAt(0)?n.substring(1):n).replace(/^ease-/,"").replace(/(\(|\s).+/,"").toLowerCase().trim()},tt=function(t){return t};function tn(t,n){return function(e){if(e>=1)return 1;var r=1/t;return(e+=n*r)-e%r}}var te="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",tr=RegExp("cubic-bezier\\("+te+","+te+","+te+","+te+"\\)"),ti=/steps\(\s*(\d+)\s*\)/,ta=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/;function to(t){var n=tr.exec(t);if(n)return F.apply(void 0,(0,o.ev)([],(0,o.CR)(n.slice(1).map(Number)),!1));var e=ti.exec(t);if(e)return tn(Number(e[1]),0);var r=ta.exec(t);return r?tn(Number(r[1]),{start:1,middle:.5,end:0}[r[2]]):J[Q(t)]||J.linear}function tu(t){return"offset"!==t&&"easing"!==t&&"composite"!==t&&"computedOffset"!==t}var ts=function(t,n,e){return function(r){var i=function t(n,e,r){if("number"==typeof n&&"number"==typeof e)return n*(1-r)+e*r;if("boolean"==typeof n&&"boolean"==typeof e||"string"==typeof n&&"string"==typeof e)return r<.5?n:e;if(Array.isArray(n)&&Array.isArray(e)){for(var i=n.length,a=e.length,o=Math.max(i,a),u=[],s=0;s1)throw Error("Keyframe offsets must be between 0 and 1.");e.computedOffset=i}}else if("composite"===r&&-1===["replace","add","accumulate","auto"].indexOf(i))throw Error("".concat(i," compositing is not supported"));e[r]=i}return void 0===e.offset&&(e.offset=null),void 0===e.easing&&(e.easing=(null==n?void 0:n.easing)||"linear"),void 0===e.composite&&(e.composite="auto"),e}),r=!0,i=-1/0,a=0;a=0&&1>=Number(t.offset)}),r||function(){var t,n,r=e.length;e[r-1].computedOffset=Number(null!==(t=e[r-1].offset)&&void 0!==t?t:1),r>1&&(e[0].computedOffset=Number(null!==(n=e[0].offset)&&void 0!==n?n:0));for(var i=0,a=Number(e[0].computedOffset),o=1;o=t.applyFrom&&n=Math.min(e.delay+t+e.endDelay,r)?2:3}(t,n,e),h=function(t,n,e,r,i){switch(r){case 1:if("backwards"===n||"both"===n)return 0;return null;case 3:return e-i;case 2:if("forwards"===n||"both"===n)return t;return null;case 0:return null}}(t,e.fill,n,c,e.delay);if(null===h)return null;var l="auto"===e.duration?0:e.duration,f=(r=e.iterations,i=e.iterationStart,0===l?1!==c&&(i+=r):i+=h/l,i),p=(a=e.iterationStart,o=e.iterations,0==(u=f===1/0?a%1:f%1)&&2===c&&0!==o&&(0!==h||0===l)&&(u=1),u),d=(s=e.iterations,2===c&&s===1/0?1/0:1===p?Math.floor(f)-1:Math.floor(f)),v=function(t,n,e){var r=t;if("normal"!==t&&"reverse"!==t){var i=n;"alternate-reverse"===t&&(i+=1),r="normal",i!==1/0&&i%2!=0&&(r="reverse")}return"normal"===r?e:1-e}(e.direction,d,p);return e.currentIteration=d,e.progress=v,e.easingFunction(v)}(this.timing.activeDuration,t,this.timing),null!==this.timeFraction)},t.prototype.getKeyframes=function(){return this.normalizedKeyframes},t.prototype.setKeyframes=function(t){this.normalizedKeyframes=th(t)},t.prototype.getComputedTiming=function(){return this.computedTiming},t.prototype.getTiming=function(){return this.timing},t.prototype.updateTiming=function(t){var n=this;Object.keys(t||{}).forEach(function(e){n.timing[e]=t[e]})},t}();function td(t,n){return Number(t.id)-Number(n.id)}var tv=function(){function t(t){var n=this;this.document=t,this.animations=[],this.ticking=!1,this.timelineTicking=!1,this.hasRestartedThisFrame=!1,this.animationsWithPromises=[],this.inTick=!1,this.pendingEffects=[],this.currentTime=null,this.rafId=0,this.rafCallbacks=[],this.webAnimationsNextTick=function(t){n.currentTime=t,n.discardAnimations(),0===n.animations.length?n.timelineTicking=!1:n.requestAnimationFrame(n.webAnimationsNextTick)},this.processRafCallbacks=function(t){var e=n.rafCallbacks;n.rafCallbacks=[],t0?t:n}getPaddingOuter(){let{padding:t,paddingOuter:n}=this.options;return t>0?t:n}rescale(){super.rescale();let{align:t,domain:n,range:e,round:r,flex:i}=this.options,{adjustedRange:o,valueBandWidth:u,valueStep:s}=function(t){var n;let e,r;let{domain:i}=t,o=i.length;if(0===o)return{valueBandWidth:void 0,valueStep:void 0,adjustedRange:[]};let u=!!(null===(n=t.flex)||void 0===n?void 0:n.length);if(u)return function(t){let{domain:n,range:e,paddingOuter:r,paddingInner:i,flex:o,round:u,align:s}=t,c=n.length,h=function(t,n){let e=t.length,r=n-e;return r>0?[...t,...Array(r).fill(1)]:r<0?t.slice(0,n):t}(o,c),[l,f]=e,p=f-l,d=2/c*r+1-1/c*i,v=p/d,m=v*i/c,g=v-c*m,y=function(t){let n=Math.min(...t);return t.map(t=>t/n)}(h),b=y.reduce((t,n)=>t+n),M=g/b,x=new a(n.map((t,n)=>{let e=y[n]*M;return[t,u?Math.floor(e):e]})),w=new a(n.map((t,n)=>{let e=y[n]*M,r=e+m;return[t,u?Math.floor(r):r]})),_=Array.from(w.values()).reduce((t,n)=>t+n),k=p-(_-_/c*i),T=l+k*s,A=u?Math.round(T):T,Z=Array(c);for(let t=0;tp+n*e);return{valueStep:e,valueBandWidth:r,adjustedRange:g}}({align:t,range:e,round:r,flex:i,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:n});this.valueStep=s,this.valueBandWidth=u,this.adjustedRange=o}}},74271:function(t,n,e){"use strict";e.d(n,{X:function(){return i}});var r=e(83787);class i{constructor(t){this.options=(0,r.Z)({},this.getDefaultOptions()),this.update(t)}getOptions(){return this.options}update(t={}){this.options=(0,r.Z)({},this.options,t),this.rescale(t)}rescale(t){}}},63025:function(t,n,e){"use strict";e.d(n,{V:function(){return d}});var r=e(67128),i=e(74271),a=e(34199),o=e(99871),u=e(33338),s=e(25338),c=e(13393),h=e(82569);let l=(t,n,e)=>{let r,i;let[u,s]=t,[c,h]=n;return u{let r=Math.min(t.length,n.length)-1,i=Array(r),s=Array(r),c=t[0]>t[r],h=c?[...t].reverse():t,l=c?[...n].reverse():n;for(let t=0;t{let e=(0,u.b)(t,n,1,r)-1,a=i[e],c=s[e];return(0,o.q)(c,a)(n)}},p=(t,n,e,r)=>{let i=Math.min(t.length,n.length),a=r?s.lk:e;return(i>2?f:l)(t,n,a)};class d extends i.X{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:s.fv,tickCount:5}}map(t){return(0,c.J)(t)?this.output(t):this.options.unknown}invert(t){return(0,c.J)(t)?this.input(t):this.options.unknown}nice(){if(!this.options.nice)return;let[t,n,e,...r]=this.getTickMethodOptions();this.options.domain=this.chooseNice()(t,n,e,...r)}getTicks(){let{tickMethod:t}=this.options,[n,e,r,...i]=this.getTickMethodOptions();return t(n,e,r,...i)}getTickMethodOptions(){let{domain:t,tickCount:n}=this.options,e=t[0],r=t[t.length-1];return[e,r,n]}chooseNice(){return h.n}rescale(){this.nice();let[t,n]=this.chooseTransforms();this.composeOutput(t,this.chooseClamp(t)),this.composeInput(t,n,this.chooseClamp(n))}chooseClamp(t){let{clamp:n,range:e}=this.options,i=this.options.domain.map(t),a=Math.min(i.length,e.length);return n?function(t,n){let e=nn?t:n;return t=>Math.min(Math.max(e,t),r)}(i[0],i[a-1]):r.Z}composeOutput(t,n){let{domain:e,range:r,round:i,interpolate:a}=this.options,u=p(e.map(t),r,a,i);this.output=(0,o.q)(u,n,t)}composeInput(t,n,e){let{domain:r,range:i}=this.options,a=p(i,r.map(t),s.fv);this.input=(0,o.q)(n,e,a)}}},36380:function(t,n,e){"use strict";e.d(n,{b:function(){return u}});var r=e(67128),i=e(63025),a=e(25338),o=e(7847);class u extends i.V{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:a.wp,tickMethod:o.Z,tickCount:5}}chooseTransforms(){return[r.Z,r.Z]}clone(){return new u(this.options)}}},8064:function(t,n,e){"use strict";e.d(n,{r:function(){return s},z:function(){return i}});var r=e(74271);let i=Symbol("defaultUnknown");function a(t,n,e){for(let r=0;r`${t}`:"object"==typeof t?t=>JSON.stringify(t):t=>t}class s extends r.X{getDefaultOptions(){return{domain:[],range:[],unknown:i}}constructor(t){super(t)}map(t){return 0===this.domainIndexMap.size&&a(this.domainIndexMap,this.getDomain(),this.domainKey),o({value:this.domainKey(t),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(t){return 0===this.rangeIndexMap.size&&a(this.rangeIndexMap,this.getRange(),this.rangeKey),o({value:this.rangeKey(t),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(t){let[n]=this.options.domain,[e]=this.options.range;if(this.domainKey=u(n),this.rangeKey=u(e),!this.rangeIndexMap){this.rangeIndexMap=new Map,this.domainIndexMap=new Map;return}(!t||t.range)&&this.rangeIndexMap.clear(),(!t||t.domain||t.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)}clone(){return new s(this.options)}getRange(){return this.options.range}getDomain(){if(this.sortedDomain)return this.sortedDomain;let{domain:t,compare:n}=this.options;return this.sortedDomain=n?[...t].sort(n):t,this.sortedDomain}}},7847:function(t,n,e){"use strict";e.d(n,{Z:function(){return i}});var r=e(72478);let i=(t,n,e)=>{let i,a;let o=t,u=n;if(o===u&&e>0)return[o];let s=(0,r.G)(o,u,e);if(0===s||!Number.isFinite(s))return[];if(s>0){o=Math.ceil(o/s),a=Array(i=Math.ceil((u=Math.floor(u/s))-o+1));for(let t=0;tt);for(;an?o=e:a=e+1}return a}e.d(n,{b:function(){return r}})},99871:function(t,n,e){"use strict";function r(t,...n){return n.reduce((t,n)=>e=>t(n(e)),t)}e.d(n,{q:function(){return r}})},82569:function(t,n,e){"use strict";e.d(n,{n:function(){return i}});var r=e(72478);let i=(t,n,e=5)=>{let i;let a=[t,n],o=0,u=a.length-1,s=a[o],c=a[u];return c0?(s=Math.floor(s/i)*i,c=Math.ceil(c/i)*i,i=(0,r.G)(s,c,e)):i<0&&(s=Math.ceil(s*i)/i,c=Math.floor(c*i)/i,i=(0,r.G)(s,c,e)),i>0?(a[o]=Math.floor(s/i)*i,a[u]=Math.ceil(c/i)*i):i<0&&(a[o]=Math.ceil(s*i)/i,a[u]=Math.floor(c*i)/i),a}},25338:function(t,n,e){"use strict";e.d(n,{fv:function(){return u},lk:function(){return h},wp:function(){return c}});var r=e(19818),i=e.n(r);function a(t,n,e){let r=e;return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(n-t)*6*r:r<.5?n:r<2/3?t+(n-t)*(2/3-r)*6:t}function o(t){let n=i().get(t);if(!n)return null;let{model:e,value:r}=n;return"rgb"===e?r:"hsl"===e?function(t){let n=t[0]/360,e=t[1]/100,r=t[2]/100,i=t[3];if(0===e)return[255*r,255*r,255*r,i];let o=r<.5?r*(1+e):r+e-r*e,u=2*r-o,s=a(u,o,n+1/3),c=a(u,o,n),h=a(u,o,n-1/3);return[255*s,255*c,255*h,i]}(r):null}let u=(t,n)=>e=>t*(1-e)+n*e,s=(t,n)=>{let e=o(t),r=o(n);return null===e||null===r?e?()=>t:()=>n:t=>{let n=[,,,,];for(let i=0;i<4;i+=1){let a=e[i],o=r[i];n[i]=a*(1-t)+o*t}let[i,a,o,u]=n;return`rgba(${Math.round(i)}, ${Math.round(a)}, ${Math.round(o)}, ${u})`}},c=(t,n)=>"number"==typeof t&&"number"==typeof n?u(t,n):"string"==typeof t&&"string"==typeof n?s(t,n):()=>t,h=(t,n)=>{let e=u(t,n);return t=>Math.round(e(t))}},13393:function(t,n,e){"use strict";e.d(n,{J:function(){return i}});var r=e(71154);function i(t){return!(0,r.Z)(t)&&null!==t&&!Number.isNaN(t)}},34199:function(t,n,e){"use strict";function r(t,n){return n-t?e=>(e-t)/(n-t):t=>.5}e.d(n,{I:function(){return r}})},72478:function(t,n,e){"use strict";e.d(n,{G:function(){return o},l:function(){return u}});let r=Math.sqrt(50),i=Math.sqrt(10),a=Math.sqrt(2);function o(t,n,e){let o=(n-t)/Math.max(0,e),u=Math.floor(Math.log(o)/Math.LN10),s=o/10**u;return u>=0?(s>=r?10:s>=i?5:s>=a?2:1)*10**u:-(10**-u)/(s>=r?10:s>=i?5:s>=a?2:1)}function u(t,n,e){let o=Math.abs(n-t)/Math.max(0,e),u=10**Math.floor(Math.log(o)/Math.LN10),s=o/u;return s>=r?u*=10:s>=i?u*=5:s>=a&&(u*=2),ne?e:t}},83207:function(t,n,e){"use strict";var r=e(5199),i=function(t){if("object"!=typeof t||null===t)return t;if((0,r.Z)(t)){n=[];for(var n,e=0,a=t.length;ea&&(e=u,a=s)}return e}}},13882:function(t,n,e){"use strict";var r=e(5199);n.Z=function(t){if((0,r.Z)(t))return t.reduce(function(t,n){return Math.max(t,n)},t[0])}},92426:function(t,n,e){"use strict";var r=e(45607);n.Z=function(t,n,e){if(void 0===e&&(e=128),!(0,r.Z)(t))throw TypeError("Expected a function");var i=function(){for(var e=[],r=0;ri&&(r=e,o(1),++n),e[t]=a}function o(t){n=0,e=Object.create(null),t||(r=Object.create(null))}return o(),{clear:o,has:function(t){return void 0!==e[t]||void 0!==r[t]},get:function(t){var n=e[t];return void 0!==n?n:void 0!==(n=r[t])?(a(t,n),n):void 0},set:function(t,n){void 0!==e[t]?e[t]=n:a(t,n)}}}(e),i}},89372:function(t,n,e){"use strict";var r=e(5199),i=e(45607);n.Z=function(t,n){if((0,r.Z)(t)){for(var e,a=1/0,o=0;on?(r&&(clearTimeout(r),r=null),u=c,o=t.apply(i,a),r||(i=a=null)):r||!1===e.trailing||(r=setTimeout(s,h)),o};return c.cancel=function(){clearTimeout(r),u=0,r=i=a=null},c}},92123:function(t,n,e){"use strict";var r=e(95147);n.Z=function(t){return(0,r.Z)(t)?"":t.toString()}},83914:function(t,n,e){"use strict";var r=e(92123);n.Z=function(t){var n=(0,r.Z)(t);return n.charAt(0).toUpperCase()+n.substring(1)}},75839:function(t,n,e){"use strict";e.d(n,{Y:function(){return h}});var r=e(97582),i=e(64985),a=e(4848),o=e(11013),u=e(74873),s=e(17570),c=function(t,n,e,i){var a=(0,s.k)([t,n],[e,i],.5);return(0,r.ev)((0,r.ev)([],a,!0),[e,i,e,i],!1)};function h(t,n){if(void 0===n&&(n=!1),(0,o.y)(t)&&t.every(function(t){var n=t[0];return"MC".includes(n)})){var e,s,h=[].concat(t);return n?[h,[]]:h}for(var l=(0,a.A)(t),f=(0,r.pi)({},i.z),p=[],d="",v=l.length,m=[],g=0;g7){t[e].shift();for(var r=t[e],i=e;r.length;)n[e]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(e,1)}}(l,p,g),v=l.length,"Z"===d&&m.push(g),s=(e=l[g]).length,f.x1=+e[s-2],f.y1=+e[s-1],f.x2=+e[s-4]||f.x1,f.y2=+e[s-3]||f.y1}return n?[l,m]:l}},18323:function(t,n,e){"use strict";e.d(n,{R:function(){return r}});var r={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0}},64985:function(t,n,e){"use strict";e.d(n,{z:function(){return r}});var r={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null}},74873:function(t,n,e){"use strict";function r(t,n,e){return{x:t*Math.cos(e)-n*Math.sin(e),y:t*Math.sin(e)+n*Math.cos(e)}}e.d(n,{W:function(){return function t(n,e,i,a,o,u,s,c,h,l){var f,p,d,v,m,g=n,y=e,b=i,M=a,x=c,w=h,_=120*Math.PI/180,k=Math.PI/180*(+o||0),T=[];if(l)p=l[0],d=l[1],v=l[2],m=l[3];else{g=(f=r(g,y,-k)).x,y=f.y,x=(f=r(x,w,-k)).x,w=f.y;var A=(g-x)/2,Z=(y-w)/2,P=A*A/(b*b)+Z*Z/(M*M);P>1&&(b*=P=Math.sqrt(P),M*=P);var N=b*b,O=M*M,E=(u===s?-1:1)*Math.sqrt(Math.abs((N*O-N*Z*Z-O*A*A)/(N*Z*Z+O*A*A)));v=E*b*Z/M+(g+x)/2,m=-(E*M)*A/b+(y+w)/2,p=Math.asin(((y-m)/M*1e9>>0)/1e9),d=Math.asin(((w-m)/M*1e9>>0)/1e9),p=gd&&(p-=2*Math.PI),!s&&d>p&&(d-=2*Math.PI)}var I=d-p;if(Math.abs(I)>_){var R=d,F=x,C=w;T=t(x=v+b*Math.cos(d=p+_*(s&&d>p?1:-1)),w=m+M*Math.sin(d),b,M,o,0,s,F,C,[d,R,v,m])}I=d-p;var D=Math.cos(p),q=Math.cos(d),S=Math.tan(I/4),j=4/3*b*S,L=4/3*M*S,W=[g,y],z=[g+j*Math.sin(p),y-L*D],V=[x+j*Math.sin(d),w-L*q],G=[x,w];if(z[0]=2*W[0]-z[0],z[1]=2*W[1]-z[1],l)return z.concat(V,G,T);T=z.concat(V,G,T);for(var K=[],U=0,$=T.length;U<$;U+=1)K[U]=U%2?r(T[U-1],T[U],k).y:r(T[U],T[U+1],k).x;return K}}})},28659:function(t,n,e){"use strict";function r(t){return t.map(function(t){return Array.isArray(t)?[].concat(t):t})}e.d(n,{U:function(){return r}})},4848:function(t,n,e){"use strict";e.d(n,{A:function(){return p}});var r=e(97582),i=e(11013),a=e(64985),o=e(41010),u=e(56346),s=e(18323);function c(t){for(var n=t.pathValue[t.segmentStart],e=n.toLowerCase(),r=t.data;r.length>=s.R[e]&&("m"===e&&r.length>2?(t.segments.push([n].concat(r.splice(0,2))),e="l",n="m"===n?"l":"L"):t.segments.push([n].concat(r.splice(0,s.R[e]))),s.R[e]););}function h(t){return t>=48&&t<=57}function l(t){for(var n,e=t.pathValue,r=t.max;t.index=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(n));)t.index+=1}var f=function(t){this.pathValue=t,this.segments=[],this.max=t.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""};function p(t){if((0,i.y)(t))return[].concat(t);for(var n=function(t){if((0,o.b)(t))return[].concat(t);var n=function(t){if((0,u.n)(t))return[].concat(t);var n=new f(t);for(l(n);n.index0;u-=1){if((32|i)==97&&(3===u||4===u)?function(t){var n=t.index,e=t.pathValue,r=e.charCodeAt(n);if(48===r){t.param=0,t.index+=1;return}if(49===r){t.param=1,t.index+=1;return}t.err='[path-util]: invalid Arc flag "'+e[n]+'", expecting 0 or 1 at index '+n}(t):function(t){var n,e=t.max,r=t.pathValue,i=t.index,a=i,o=!1,u=!1,s=!1,c=!1;if(a>=e){t.err="[path-util]: Invalid path value at index "+a+', "pathValue" is missing param';return}if((43===(n=r.charCodeAt(a))||45===n)&&(a+=1,n=r.charCodeAt(a)),!h(n)&&46!==n){t.err="[path-util]: Invalid path value at index "+a+', "'+r[a]+'" is not a number';return}if(46!==n){if(o=48===n,a+=1,n=r.charCodeAt(a),o&&a=t.max||!((o=e.charCodeAt(t.index))>=48&&o<=57||43===o||45===o||46===o))break}c(t)}(n);return n.err?n.err:n.segments}(t),e=0,r=0,i=0,a=0;return n.map(function(t){var n,o=t.slice(1).map(Number),u=t[0],s=u.toUpperCase();if("M"===u)return e=o[0],r=o[1],i=e,a=r,["M",e,r];if(u!==s)switch(s){case"A":n=[s,o[0],o[1],o[2],o[3],o[4],o[5]+e,o[6]+r];break;case"V":n=[s,o[0]+r];break;case"H":n=[s,o[0]+e];break;default:n=[s].concat(o.map(function(t,n){return t+(n%2?r:e)}))}else n=[s].concat(o);var c=n.length;switch(s){case"Z":e=i,r=a;break;case"H":e=n[1];break;case"V":r=n[1];break;default:e=n[c-2],r=n[c-1],"M"===s&&(i=e,a=r)}return n})}(t),e=(0,r.pi)({},a.z),p=0;p=d[n],v[n]-=m?1:0,m?t.ss:[t.s]}).flat()});return g[0].length===g[1].length?g:t(g[0],g[1],p)}}});var r=e(17570),i=e(6489);function a(t){return t.map(function(t,n,e){var a,o,u,s,c,h,l,f,p,d,v,m,g=n&&e[n-1].slice(-2).concat(t.slice(1)),y=n?(0,i.S)(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],{bbox:!1}).length:0;return m=n?y?(void 0===a&&(a=.5),o=g.slice(0,2),u=g.slice(2,4),s=g.slice(4,6),c=g.slice(6,8),h=(0,r.k)(o,u,a),l=(0,r.k)(u,s,a),f=(0,r.k)(s,c,a),p=(0,r.k)(h,l,a),d=(0,r.k)(l,f,a),v=(0,r.k)(p,d,a),[["C"].concat(h,p,v),["C"].concat(d,f,c)]):[t,t]:[t],{s:t,ss:m,l:y}})}},92455:function(t,n,e){"use strict";e.d(n,{b:function(){return i}});var r=e(75839);function i(t){var n,e,i;return n=0,e=0,i=0,(0,r.Y)(t).map(function(t){if("M"===t[0])return n=t[1],e=t[2],0;var r,a,o,u=t.slice(1),s=u[0],c=u[1],h=u[2],l=u[3],f=u[4],p=u[5];return a=n,i=3*((p-(o=e))*(s+h)-(f-a)*(c+l)+c*(a-h)-s*(o-l)+p*(h+a/3)-f*(l+o/3))/20,n=(r=t.slice(-2))[0],e=r[1],i}).reduce(function(t,n){return t+n},0)>=0}},84329:function(t,n,e){"use strict";e.d(n,{r:function(){return a}});var r=e(97582),i=e(32262);function a(t,n,e){return(0,i.s)(t,n,(0,r.pi)((0,r.pi)({},e),{bbox:!1,length:!0})).point}},83555:function(t,n,e){"use strict";e.d(n,{g:function(){return i}});var r=e(44078);function i(t,n){var e,i,a=t.length-1,o=[],u=0,s=(i=(e=t.length)-1,t.map(function(n,r){return t.map(function(n,a){var o=r+a;return 0===a||t[o]&&"M"===t[o][0]?["M"].concat(t[o].slice(-2)):(o>=e&&(o-=i),t[o])})}));return s.forEach(function(e,i){t.slice(1).forEach(function(e,o){u+=(0,r.y)(t[(i+o)%a].slice(-2),n[o%a].slice(-2))}),o[i]=u,u=0}),s[o.indexOf(Math.min.apply(null,o))]}},69877:function(t,n,e){"use strict";e.d(n,{D:function(){return a}});var r=e(97582),i=e(32262);function a(t,n){return(0,i.s)(t,void 0,(0,r.pi)((0,r.pi)({},n),{bbox:!1,length:!0})).length}},41010:function(t,n,e){"use strict";e.d(n,{b:function(){return i}});var r=e(56346);function i(t){return(0,r.n)(t)&&t.every(function(t){var n=t[0];return n===n.toUpperCase()})}},11013:function(t,n,e){"use strict";e.d(n,{y:function(){return i}});var r=e(41010);function i(t){return(0,r.b)(t)&&t.every(function(t){var n=t[0];return"ACLMQZ".includes(n)})}},56346:function(t,n,e){"use strict";e.d(n,{n:function(){return i}});var r=e(18323);function i(t){return Array.isArray(t)&&t.every(function(t){var n=t[0].toLowerCase();return r.R[n]===t.length-1&&"achlmqstvz".includes(n)})}},17570:function(t,n,e){"use strict";function r(t,n,e){var r=t[0],i=t[1];return[r+(n[0]-r)*e,i+(n[1]-i)*e]}e.d(n,{k:function(){return r}})},32262:function(t,n,e){"use strict";e.d(n,{s:function(){return c}});var r=e(4848),i=e(17570),a=e(44078);function o(t,n,e,r,o){var u=(0,a.y)([t,n],[e,r]),s={x:0,y:0};if("number"==typeof o){if(o<=0)s={x:t,y:n};else if(o>=u)s={x:e,y:r};else{var c=(0,i.k)([t,n],[e,r],o/u);s={x:c[0],y:c[1]}}}return{length:u,point:s,min:{x:Math.min(t,e),y:Math.min(n,r)},max:{x:Math.max(t,e),y:Math.max(n,r)}}}function u(t,n){var e=t.x,r=t.y,i=n.x,a=n.y,o=Math.sqrt((Math.pow(e,2)+Math.pow(r,2))*(Math.pow(i,2)+Math.pow(a,2)));return(e*a-r*i<0?-1:1)*Math.acos((e*i+r*a)/o)}var s=e(6489);function c(t,n,e){for(var i,c,h,l,f,p,d,v,m,g=(0,r.A)(t),y="number"==typeof n,b=[],M=0,x=0,w=0,_=0,k=[],T=[],A=0,Z={x:0,y:0},P=Z,N=Z,O=Z,E=0,I=0,R=g.length;I1&&(g*=v(_),y*=v(_));var k=(Math.pow(g,2)*Math.pow(y,2)-Math.pow(g,2)*Math.pow(w.y,2)-Math.pow(y,2)*Math.pow(w.x,2))/(Math.pow(g,2)*Math.pow(w.y,2)+Math.pow(y,2)*Math.pow(w.x,2)),T=(a!==s?1:-1)*v(k=k<0?0:k),A={x:T*(g*w.y/y),y:T*(-(y*w.x)/g)},Z={x:d(b)*A.x-p(b)*A.y+(t+c)/2,y:p(b)*A.x+d(b)*A.y+(n+h)/2},P={x:(w.x-A.x)/g,y:(w.y-A.y)/y},N=u({x:1,y:0},P),O=u(P,{x:(-w.x-A.x)/g,y:(-w.y-A.y)/y});!s&&O>0?O-=2*m:s&&O<0&&(O+=2*m);var E=N+(O%=2*m)*l,I=g*d(E),R=y*p(E);return{x:d(b)*I-p(b)*R+Z.x,y:p(b)*I+d(b)*R+Z.y}}(t,n,e,r,i,s,c,h,l,N/M)).x,_=d.y,m&&P.push({x:w,y:_}),y&&(k+=(0,a.y)(A,[w,_])),A=[w,_],x&&k>=f&&f>T[2]){var O=(k-f)/(k-T[2]);Z={x:A[0]*(1-O)+T[0]*O,y:A[1]*(1-O)+T[1]*O}}T=[w,_,k]}return x&&f>=k&&(Z={x:h,y:l}),{length:k,point:Z,min:{x:Math.min.apply(null,P.map(function(t){return t.x})),y:Math.min.apply(null,P.map(function(t){return t.y}))},max:{x:Math.max.apply(null,P.map(function(t){return t.x})),y:Math.max.apply(null,P.map(function(t){return t.y}))}}}(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],(n||0)-E,e||{})).length,Z=c.min,P=c.max,N=c.point):"C"===v?(A=(h=(0,s.S)(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],(n||0)-E,e||{})).length,Z=h.min,P=h.max,N=h.point):"Q"===v?(A=(l=function(t,n,e,r,i,o,u,s){var c,h=s.bbox,l=void 0===h||h,f=s.length,p=void 0===f||f,d=s.sampleSize,v=void 0===d?10:d,m="number"==typeof u,g=t,y=n,b=0,M=[g,y,0],x=[g,y],w={x:0,y:0},_=[{x:g,y:y}];m&&u<=0&&(w={x:g,y:y});for(var k=0;k<=v;k+=1){if(g=(c=function(t,n,e,r,i,a,o){var u=1-o;return{x:Math.pow(u,2)*t+2*u*o*e+Math.pow(o,2)*i,y:Math.pow(u,2)*n+2*u*o*r+Math.pow(o,2)*a}}(t,n,e,r,i,o,k/v)).x,y=c.y,l&&_.push({x:g,y:y}),p&&(b+=(0,a.y)(x,[g,y])),x=[g,y],m&&b>=u&&u>M[2]){var T=(b-u)/(b-M[2]);w={x:x[0]*(1-T)+M[0]*T,y:x[1]*(1-T)+M[1]*T}}M=[g,y,b]}return m&&u>=b&&(w={x:i,y:o}),{length:b,point:w,min:{x:Math.min.apply(null,_.map(function(t){return t.x})),y:Math.min.apply(null,_.map(function(t){return t.y}))},max:{x:Math.max.apply(null,_.map(function(t){return t.x})),y:Math.max.apply(null,_.map(function(t){return t.y}))}}}(b[0],b[1],b[2],b[3],b[4],b[5],(n||0)-E,e||{})).length,Z=l.min,P=l.max,N=l.point):"Z"===v&&(A=(f=o((b=[M,x,w,_])[0],b[1],b[2],b[3],(n||0)-E)).length,Z=f.min,P=f.max,N=f.point),y&&E=n&&(O=N),T.push(P),k.push(Z),E+=A,M=(p="Z"!==v?m.slice(-2):[w,_])[0],x=p[1];return y&&n>=E&&(O={x:M,y:x}),{length:E,point:O,min:{x:Math.min.apply(null,k.map(function(t){return t.x})),y:Math.min.apply(null,k.map(function(t){return t.y}))},max:{x:Math.max.apply(null,T.map(function(t){return t.x})),y:Math.max.apply(null,T.map(function(t){return t.y}))}}}},6489:function(t,n,e){"use strict";e.d(n,{S:function(){return i}});var r=e(44078);function i(t,n,e,i,a,o,u,s,c,h){var l,f=h.bbox,p=void 0===f||f,d=h.length,v=void 0===d||d,m=h.sampleSize,g=void 0===m?10:m,y="number"==typeof c,b=t,M=n,x=0,w=[b,M,0],_=[b,M],k={x:0,y:0},T=[{x:b,y:M}];y&&c<=0&&(k={x:b,y:M});for(var A=0;A<=g;A+=1){if(b=(l=function(t,n,e,r,i,a,o,u,s){var c=1-s;return{x:Math.pow(c,3)*t+3*Math.pow(c,2)*s*e+3*c*Math.pow(s,2)*i+Math.pow(s,3)*o,y:Math.pow(c,3)*n+3*Math.pow(c,2)*s*r+3*c*Math.pow(s,2)*a+Math.pow(s,3)*u}}(t,n,e,i,a,o,u,s,A/g)).x,M=l.y,p&&T.push({x:b,y:M}),v&&(x+=(0,r.y)(_,[b,M])),_=[b,M],y&&x>=c&&c>w[2]){var Z=(x-c)/(x-w[2]);k={x:_[0]*(1-Z)+w[0]*Z,y:_[1]*(1-Z)+w[1]*Z}}w=[b,M,x]}return y&&c>=x&&(k={x:u,y:s}),{length:x,point:k,min:{x:Math.min.apply(null,T.map(function(t){return t.x})),y:Math.min.apply(null,T.map(function(t){return t.y}))},max:{x:Math.max.apply(null,T.map(function(t){return t.x})),y:Math.max.apply(null,T.map(function(t){return t.y}))}}}},8874:function(t){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},19818:function(t,n,e){var r=e(8874),i=e(86851),a=Object.hasOwnProperty,o=Object.create(null);for(var u in r)a.call(r,u)&&(o[r[u]]=u);var s=t.exports={to:{},get:{}};function c(t,n,e){return Math.min(Math.max(n,t),e)}function h(t){var n=Math.round(t).toString(16).toUpperCase();return n.length<2?"0"+n:n}s.get=function(t){var n,e;switch(t.substring(0,3).toLowerCase()){case"hsl":n=s.get.hsl(t),e="hsl";break;case"hwb":n=s.get.hwb(t),e="hwb";break;default:n=s.get.rgb(t),e="rgb"}return n?{model:e,value:n}:null},s.get.rgb=function(t){if(!t)return null;var n,e,i,o=[0,0,0,1];if(n=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(e=0,i=n[2],n=n[1];e<3;e++){var u=2*e;o[e]=parseInt(n.slice(u,u+2),16)}i&&(o[3]=parseInt(i,16)/255)}else if(n=t.match(/^#([a-f0-9]{3,4})$/i)){for(e=0,i=(n=n[1])[3];e<3;e++)o[e]=parseInt(n[e]+n[e],16);i&&(o[3]=parseInt(i+i,16)/255)}else if(n=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(e=0;e<3;e++)o[e]=parseInt(n[e+1],0);n[4]&&(n[5]?o[3]=.01*parseFloat(n[4]):o[3]=parseFloat(n[4]))}else if(n=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(e=0;e<3;e++)o[e]=Math.round(2.55*parseFloat(n[e+1]));n[4]&&(n[5]?o[3]=.01*parseFloat(n[4]):o[3]=parseFloat(n[4]))}else if(!(n=t.match(/^(\w+)$/)))return null;else return"transparent"===n[1]?[0,0,0,0]:a.call(r,n[1])?((o=r[n[1]])[3]=1,o):null;for(e=0;e<3;e++)o[e]=c(o[e],0,255);return o[3]=c(o[3],0,1),o},s.get.hsl=function(t){if(!t)return null;var n=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(n){var e=parseFloat(n[4]);return[(parseFloat(n[1])%360+360)%360,c(parseFloat(n[2]),0,100),c(parseFloat(n[3]),0,100),c(isNaN(e)?1:e,0,1)]}return null},s.get.hwb=function(t){if(!t)return null;var n=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(n){var e=parseFloat(n[4]);return[(parseFloat(n[1])%360+360)%360,c(parseFloat(n[2]),0,100),c(parseFloat(n[3]),0,100),c(isNaN(e)?1:e,0,1)]}return null},s.to.hex=function(){var t=i(arguments);return"#"+h(t[0])+h(t[1])+h(t[2])+(t[3]<1?h(Math.round(255*t[3])):"")},s.to.rgb=function(){var t=i(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},s.to.rgb.percent=function(){var t=i(arguments),n=Math.round(t[0]/255*100),e=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+n+"%, "+e+"%, "+r+"%)":"rgba("+n+"%, "+e+"%, "+r+"%, "+t[3]+")"},s.to.hsl=function(){var t=i(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},s.to.hwb=function(){var t=i(arguments),n="";return t.length>=4&&1!==t[3]&&(n=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+n+")"},s.to.keyword=function(t){return o[t.slice(0,3)]}},16372:function(t,n,e){"use strict";e.d(n,{B8:function(){return k},Il:function(){return i},J5:function(){return o},SU:function(){return _},Ss:function(){return T},ZP:function(){return M},xV:function(){return a}});var r=e(44087);function i(){}var a=.7,o=1.4285714285714286,u="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",h=/^#([0-9a-f]{3,8})$/,l=RegExp("^rgb\\("+[u,u,u]+"\\)$"),f=RegExp("^rgb\\("+[c,c,c]+"\\)$"),p=RegExp("^rgba\\("+[u,u,u,s]+"\\)$"),d=RegExp("^rgba\\("+[c,c,c,s]+"\\)$"),v=RegExp("^hsl\\("+[s,c,c]+"\\)$"),m=RegExp("^hsla\\("+[s,c,c,s]+"\\)$"),g={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 y(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function M(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=h.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?x(n):3===e?new T(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?w(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?w(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=l.exec(t))?new T(n[1],n[2],n[3],1):(n=f.exec(t))?new T(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=p.exec(t))?w(n[1],n[2],n[3],n[4]):(n=d.exec(t))?w(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=v.exec(t))?N(n[1],n[2]/100,n[3]/100,1):(n=m.exec(t))?N(n[1],n[2]/100,n[3]/100,n[4]):g.hasOwnProperty(t)?x(g[t]):"transparent"===t?new T(NaN,NaN,NaN,0):null}function x(t){return new T(t>>16&255,t>>8&255,255&t,1)}function w(t,n,e,r){return r<=0&&(t=n=e=NaN),new T(t,n,e,r)}function _(t){return(t instanceof i||(t=M(t)),t)?(t=t.rgb(),new T(t.r,t.g,t.b,t.opacity)):new T}function k(t,n,e,r){return 1==arguments.length?_(t):new T(t,n,e,null==r?1:r)}function T(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function A(){return"#"+P(this.r)+P(this.g)+P(this.b)}function Z(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function P(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function N(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new E(t,n,e,r)}function O(t){if(t instanceof E)return new E(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=M(t)),!t)return new E;if(t instanceof E)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,a=Math.min(n,e,r),o=Math.max(n,e,r),u=NaN,s=o-a,c=(o+a)/2;return s?(u=n===o?(e-r)/s+(e0&&c<1?0:u,new E(u,s,c,t.opacity)}function E(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function I(t,n,e){return(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)*255}(0,r.Z)(i,M,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return O(this).formatHsl()},formatRgb:b,toString:b}),(0,r.Z)(T,k,(0,r.l)(i,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new T(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new T(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){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:A,formatHex:A,formatRgb:Z,toString:Z})),(0,r.Z)(E,function(t,n,e,r){return 1==arguments.length?O(t):new E(t,n,e,null==r?1:r)},(0,r.l)(i,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new E(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new E(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new T(I(t>=240?t-240:t+120,i,r),I(t,i,r),I(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},44087:function(t,n,e){"use strict";function r(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function i(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}e.d(n,{Z:function(){return r},l:function(){return i}})},92626:function(t,n){"use strict";var e={value:()=>{}};function r(){for(var t,n=0,e=arguments.length,r={};n=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:n}}),o=-1,u=i.length;if(arguments.length<2){for(;++o0)for(var e,r,i=Array(e),a=0;a[l(t,n,u),t]));for(r=0,s=Array(a);r=l)){(t.data!==n||t.next)&&(0===c&&(v+=(c=(0,a.Z)(e))*c),0===p&&(v+=(p=(0,a.Z)(e))*p),v(n=(1664525*n+1013904223)%4294967296)/4294967296);function v(){m(),p.call("tick",e),a1?(null==n?l.delete(t):l.set(t,y(n)),e):l.get(t)},find:function(n,e,r){var i,a,o,u,s,c=0,h=t.length;for(null==r?r=1/0:r*=r,c=0;c1?(p.on(t,n),e):p.on(t)}}}},26464:function(t,n,e){"use strict";e.d(n,{Z:function(){return i}});var r=e(27898);function i(t){var n,e,i,a=(0,r.Z)(.1);function o(t){for(var r,a=0,o=n.length;a=(a=(v+g)/2))?v=a:g=a,(h=e>=(o=(m+y)/2))?m=o:y=o,i=p,!(p=p[l=h<<1|c]))return i[l]=d,t;if(u=+t._x.call(null,p.data),s=+t._y.call(null,p.data),n===u&&e===s)return d.next=p,i?i[l]=d:t._root=d,t;do i=i?i[l]=[,,,,]:t._root=[,,,,],(c=n>=(a=(v+g)/2))?v=a:g=a,(h=e>=(o=(m+y)/2))?m=o:y=o;while((l=h<<1|c)==(f=(s>=o)<<1|u>=a));return i[f]=p,i[l]=d,t}function i(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i}function a(t){return t[0]}function o(t){return t[1]}function u(t,n,e){var r=new s(null==n?a:n,null==e?o:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function s(t,n,e,r,i,a){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function c(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}e.d(n,{Z:function(){return u}});var h=u.prototype=s.prototype;h.copy=function(){var t,n,e=new s(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=c(r),e;for(t=[{source:r,target:e._root=[,,,,]}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=[,,,,]}):r.target[i]=c(n));return e},h.add=function(t){let n=+this._x.call(null,t),e=+this._y.call(null,t);return r(this.cover(n,e),n,e,t)},h.addAll=function(t){var n,e,i,a,o=t.length,u=Array(o),s=Array(o),c=1/0,h=1/0,l=-1/0,f=-1/0;for(e=0;el&&(l=i),af&&(f=a));if(c>l||h>f)return this;for(this.cover(c,h).cover(l,f),e=0;et||t>=i||r>n||n>=a;)switch(u=(np)&&!((o=c.y0)>d)&&!((u=c.x1)=y)<<1|t>=g)&&(c=v[v.length-1],v[v.length-1]=v[v.length-1-h],v[v.length-1-h]=c)}else{var b=t-+this._x.call(null,m.data),M=n-+this._y.call(null,m.data),x=b*b+M*M;if(x=(u=(d+m)/2))?d=u:m=u,(h=o>=(s=(v+g)/2))?v=s:g=s,n=p,!(p=p[l=h<<1|c]))return this;if(!p.length)break;(n[l+1&3]||n[l+2&3]||n[l+3&3])&&(e=n,f=l)}for(;p.data!==t;)if(r=p,!(p=p.next))return this;return((i=p.next)&&delete p.next,r)?(i?r.next=i:delete r.next,this):n?(i?n[l]=i:delete n[l],(p=n[0]||n[1]||n[2]||n[3])&&p===(n[3]||n[2]||n[1]||n[0])&&!p.length&&(e?e[f]=p:this._root=p),this):(this._root=i,this)},h.removeAll=function(t){for(var n=0,e=t.length;n=0&&n._call.call(null,t),n=n._next;--a}()}finally{a=0,function(){for(var t,n,e=r,a=1/0;e;)e._call?(a>e._time&&(a=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:r=n);i=t,b(a)}(),c=0}}function y(){var t=l.now(),n=t-s;n>1e3&&(h-=n,s=t)}function b(t){!a&&(o&&(o=clearTimeout(o)),t-c>24?(t<1/0&&(o=setTimeout(g,t-l.now()-h)),u&&(u=clearInterval(u))):(u||(s=l.now(),u=setInterval(y,1e3)),a=1,f(g)))}v.prototype=m.prototype={constructor:v,restart:function(t,n,e){if("function"!=typeof t)throw TypeError("callback is not a function");e=(null==e?p():+e)+(null==n?0:+n),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=e,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}}},49685:function(t,n,e){"use strict";e.d(n,{Ib:function(){return r},WT:function(){return i}});var r=1e-6,i="undefined"!=typeof Float32Array?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var t=0,n=arguments.length;n--;)t+=arguments[n]*arguments[n];return Math.sqrt(t)})},35600:function(t,n,e){"use strict";e.d(n,{Ue:function(){return i},al:function(){return o},xO:function(){return a}});var r=e(49685);function i(){var t=new r.WT(9);return r.WT!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function o(t,n,e,i,a,o,u,s,c){var h=new r.WT(9);return h[0]=t,h[1]=n,h[2]=e,h[3]=i,h[4]=a,h[5]=o,h[6]=u,h[7]=s,h[8]=c,h}},85975:function(t,n,e){"use strict";e.r(n),e.d(n,{add:function(){return $},adjoint:function(){return f},clone:function(){return a},copy:function(){return o},create:function(){return i},determinant:function(){return p},equals:function(){return J},exactEquals:function(){return Y},frob:function(){return U},fromQuat:function(){return F},fromQuat2:function(){return P},fromRotation:function(){return _},fromRotationTranslation:function(){return Z},fromRotationTranslationScale:function(){return I},fromRotationTranslationScaleOrigin:function(){return R},fromScaling:function(){return w},fromTranslation:function(){return x},fromValues:function(){return u},fromXRotation:function(){return k},fromYRotation:function(){return T},fromZRotation:function(){return A},frustum:function(){return C},getRotation:function(){return E},getScaling:function(){return O},getTranslation:function(){return N},identity:function(){return c},invert:function(){return l},lookAt:function(){return V},mul:function(){return Q},multiply:function(){return d},multiplyScalar:function(){return B},multiplyScalarAndAdd:function(){return X},ortho:function(){return W},orthoNO:function(){return L},orthoZO:function(){return z},perspective:function(){return q},perspectiveFromFieldOfView:function(){return j},perspectiveNO:function(){return D},perspectiveZO:function(){return S},rotate:function(){return g},rotateX:function(){return y},rotateY:function(){return b},rotateZ:function(){return M},scale:function(){return m},set:function(){return s},str:function(){return K},sub:function(){return tt},subtract:function(){return H},targetTo:function(){return G},translate:function(){return v},transpose:function(){return h}});var r=e(49685);function i(){var t=new r.WT(16);return r.WT!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function a(t){var n=new r.WT(16);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[8]=t[8],n[9]=t[9],n[10]=t[10],n[11]=t[11],n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15],n}function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function u(t,n,e,i,a,o,u,s,c,h,l,f,p,d,v,m){var g=new r.WT(16);return g[0]=t,g[1]=n,g[2]=e,g[3]=i,g[4]=a,g[5]=o,g[6]=u,g[7]=s,g[8]=c,g[9]=h,g[10]=l,g[11]=f,g[12]=p,g[13]=d,g[14]=v,g[15]=m,g}function s(t,n,e,r,i,a,o,u,s,c,h,l,f,p,d,v,m){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=u,t[7]=s,t[8]=c,t[9]=h,t[10]=l,t[11]=f,t[12]=p,t[13]=d,t[14]=v,t[15]=m,t}function c(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function h(t,n){if(t===n){var e=n[1],r=n[2],i=n[3],a=n[6],o=n[7],u=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=e,t[6]=n[9],t[7]=n[13],t[8]=r,t[9]=a,t[11]=n[14],t[12]=i,t[13]=o,t[14]=u}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t}function l(t,n){var e=n[0],r=n[1],i=n[2],a=n[3],o=n[4],u=n[5],s=n[6],c=n[7],h=n[8],l=n[9],f=n[10],p=n[11],d=n[12],v=n[13],m=n[14],g=n[15],y=e*u-r*o,b=e*s-i*o,M=e*c-a*o,x=r*s-i*u,w=r*c-a*u,_=i*c-a*s,k=h*v-l*d,T=h*m-f*d,A=h*g-p*d,Z=l*m-f*v,P=l*g-p*v,N=f*g-p*m,O=y*N-b*P+M*Z+x*A-w*T+_*k;return O?(O=1/O,t[0]=(u*N-s*P+c*Z)*O,t[1]=(i*P-r*N-a*Z)*O,t[2]=(v*_-m*w+g*x)*O,t[3]=(f*w-l*_-p*x)*O,t[4]=(s*A-o*N-c*T)*O,t[5]=(e*N-i*A+a*T)*O,t[6]=(m*M-d*_-g*b)*O,t[7]=(h*_-f*M+p*b)*O,t[8]=(o*P-u*A+c*k)*O,t[9]=(r*A-e*P-a*k)*O,t[10]=(d*w-v*M+g*y)*O,t[11]=(l*M-h*w-p*y)*O,t[12]=(u*T-o*Z-s*k)*O,t[13]=(e*Z-r*T+i*k)*O,t[14]=(v*b-d*x-m*y)*O,t[15]=(h*x-l*b+f*y)*O,t):null}function f(t,n){var e=n[0],r=n[1],i=n[2],a=n[3],o=n[4],u=n[5],s=n[6],c=n[7],h=n[8],l=n[9],f=n[10],p=n[11],d=n[12],v=n[13],m=n[14],g=n[15];return t[0]=u*(f*g-p*m)-l*(s*g-c*m)+v*(s*p-c*f),t[1]=-(r*(f*g-p*m)-l*(i*g-a*m)+v*(i*p-a*f)),t[2]=r*(s*g-c*m)-u*(i*g-a*m)+v*(i*c-a*s),t[3]=-(r*(s*p-c*f)-u*(i*p-a*f)+l*(i*c-a*s)),t[4]=-(o*(f*g-p*m)-h*(s*g-c*m)+d*(s*p-c*f)),t[5]=e*(f*g-p*m)-h*(i*g-a*m)+d*(i*p-a*f),t[6]=-(e*(s*g-c*m)-o*(i*g-a*m)+d*(i*c-a*s)),t[7]=e*(s*p-c*f)-o*(i*p-a*f)+h*(i*c-a*s),t[8]=o*(l*g-p*v)-h*(u*g-c*v)+d*(u*p-c*l),t[9]=-(e*(l*g-p*v)-h*(r*g-a*v)+d*(r*p-a*l)),t[10]=e*(u*g-c*v)-o*(r*g-a*v)+d*(r*c-a*u),t[11]=-(e*(u*p-c*l)-o*(r*p-a*l)+h*(r*c-a*u)),t[12]=-(o*(l*m-f*v)-h*(u*m-s*v)+d*(u*f-s*l)),t[13]=e*(l*m-f*v)-h*(r*m-i*v)+d*(r*f-i*l),t[14]=-(e*(u*m-s*v)-o*(r*m-i*v)+d*(r*s-i*u)),t[15]=e*(u*f-s*l)-o*(r*f-i*l)+h*(r*s-i*u),t}function p(t){var n=t[0],e=t[1],r=t[2],i=t[3],a=t[4],o=t[5],u=t[6],s=t[7],c=t[8],h=t[9],l=t[10],f=t[11],p=t[12],d=t[13],v=t[14],m=t[15];return(n*o-e*a)*(l*m-f*v)-(n*u-r*a)*(h*m-f*d)+(n*s-i*a)*(h*v-l*d)+(e*u-r*o)*(c*m-f*p)-(e*s-i*o)*(c*v-l*p)+(r*s-i*u)*(c*d-h*p)}function d(t,n,e){var r=n[0],i=n[1],a=n[2],o=n[3],u=n[4],s=n[5],c=n[6],h=n[7],l=n[8],f=n[9],p=n[10],d=n[11],v=n[12],m=n[13],g=n[14],y=n[15],b=e[0],M=e[1],x=e[2],w=e[3];return t[0]=b*r+M*u+x*l+w*v,t[1]=b*i+M*s+x*f+w*m,t[2]=b*a+M*c+x*p+w*g,t[3]=b*o+M*h+x*d+w*y,b=e[4],M=e[5],x=e[6],w=e[7],t[4]=b*r+M*u+x*l+w*v,t[5]=b*i+M*s+x*f+w*m,t[6]=b*a+M*c+x*p+w*g,t[7]=b*o+M*h+x*d+w*y,b=e[8],M=e[9],x=e[10],w=e[11],t[8]=b*r+M*u+x*l+w*v,t[9]=b*i+M*s+x*f+w*m,t[10]=b*a+M*c+x*p+w*g,t[11]=b*o+M*h+x*d+w*y,b=e[12],M=e[13],x=e[14],w=e[15],t[12]=b*r+M*u+x*l+w*v,t[13]=b*i+M*s+x*f+w*m,t[14]=b*a+M*c+x*p+w*g,t[15]=b*o+M*h+x*d+w*y,t}function v(t,n,e){var r,i,a,o,u,s,c,h,l,f,p,d,v=e[0],m=e[1],g=e[2];return n===t?(t[12]=n[0]*v+n[4]*m+n[8]*g+n[12],t[13]=n[1]*v+n[5]*m+n[9]*g+n[13],t[14]=n[2]*v+n[6]*m+n[10]*g+n[14],t[15]=n[3]*v+n[7]*m+n[11]*g+n[15]):(r=n[0],i=n[1],a=n[2],o=n[3],u=n[4],s=n[5],c=n[6],h=n[7],l=n[8],f=n[9],p=n[10],d=n[11],t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=u,t[5]=s,t[6]=c,t[7]=h,t[8]=l,t[9]=f,t[10]=p,t[11]=d,t[12]=r*v+u*m+l*g+n[12],t[13]=i*v+s*m+f*g+n[13],t[14]=a*v+c*m+p*g+n[14],t[15]=o*v+h*m+d*g+n[15]),t}function m(t,n,e){var r=e[0],i=e[1],a=e[2];return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=n[7]*i,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=n[11]*a,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function g(t,n,e,i){var a,o,u,s,c,h,l,f,p,d,v,m,g,y,b,M,x,w,_,k,T,A,Z,P,N=i[0],O=i[1],E=i[2],I=Math.hypot(N,O,E);return I0?(e[0]=(s*u+l*i+c*o-h*a)*2/f,e[1]=(c*u+l*a+h*i-s*o)*2/f,e[2]=(h*u+l*o+s*a-c*i)*2/f):(e[0]=(s*u+l*i+c*o-h*a)*2,e[1]=(c*u+l*a+h*i-s*o)*2,e[2]=(h*u+l*o+s*a-c*i)*2),Z(t,n,e),t}function N(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function O(t,n){var e=n[0],r=n[1],i=n[2],a=n[4],o=n[5],u=n[6],s=n[8],c=n[9],h=n[10];return t[0]=Math.hypot(e,r,i),t[1]=Math.hypot(a,o,u),t[2]=Math.hypot(s,c,h),t}function E(t,n){var e=new r.WT(3);O(e,n);var i=1/e[0],a=1/e[1],o=1/e[2],u=n[0]*i,s=n[1]*a,c=n[2]*o,h=n[4]*i,l=n[5]*a,f=n[6]*o,p=n[8]*i,d=n[9]*a,v=n[10]*o,m=u+l+v,g=0;return m>0?(g=2*Math.sqrt(m+1),t[3]=.25*g,t[0]=(f-d)/g,t[1]=(p-c)/g,t[2]=(s-h)/g):u>l&&u>v?(g=2*Math.sqrt(1+u-l-v),t[3]=(f-d)/g,t[0]=.25*g,t[1]=(s+h)/g,t[2]=(p+c)/g):l>v?(g=2*Math.sqrt(1+l-u-v),t[3]=(p-c)/g,t[0]=(s+h)/g,t[1]=.25*g,t[2]=(f+d)/g):(g=2*Math.sqrt(1+v-u-l),t[3]=(s-h)/g,t[0]=(p+c)/g,t[1]=(f+d)/g,t[2]=.25*g),t}function I(t,n,e,r){var i=n[0],a=n[1],o=n[2],u=n[3],s=i+i,c=a+a,h=o+o,l=i*s,f=i*c,p=i*h,d=a*c,v=a*h,m=o*h,g=u*s,y=u*c,b=u*h,M=r[0],x=r[1],w=r[2];return t[0]=(1-(d+m))*M,t[1]=(f+b)*M,t[2]=(p-y)*M,t[3]=0,t[4]=(f-b)*x,t[5]=(1-(l+m))*x,t[6]=(v+g)*x,t[7]=0,t[8]=(p+y)*w,t[9]=(v-g)*w,t[10]=(1-(l+d))*w,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function R(t,n,e,r,i){var a=n[0],o=n[1],u=n[2],s=n[3],c=a+a,h=o+o,l=u+u,f=a*c,p=a*h,d=a*l,v=o*h,m=o*l,g=u*l,y=s*c,b=s*h,M=s*l,x=r[0],w=r[1],_=r[2],k=i[0],T=i[1],A=i[2],Z=(1-(v+g))*x,P=(p+M)*x,N=(d-b)*x,O=(p-M)*w,E=(1-(f+g))*w,I=(m+y)*w,R=(d+b)*_,F=(m-y)*_,C=(1-(f+v))*_;return t[0]=Z,t[1]=P,t[2]=N,t[3]=0,t[4]=O,t[5]=E,t[6]=I,t[7]=0,t[8]=R,t[9]=F,t[10]=C,t[11]=0,t[12]=e[0]+k-(Z*k+O*T+R*A),t[13]=e[1]+T-(P*k+E*T+F*A),t[14]=e[2]+A-(N*k+I*T+C*A),t[15]=1,t}function F(t,n){var e=n[0],r=n[1],i=n[2],a=n[3],o=e+e,u=r+r,s=i+i,c=e*o,h=r*o,l=r*u,f=i*o,p=i*u,d=i*s,v=a*o,m=a*u,g=a*s;return t[0]=1-l-d,t[1]=h+g,t[2]=f-m,t[3]=0,t[4]=h-g,t[5]=1-c-d,t[6]=p+v,t[7]=0,t[8]=f+m,t[9]=p-v,t[10]=1-c-l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function C(t,n,e,r,i,a,o){var u=1/(e-n),s=1/(i-r),c=1/(a-o);return t[0]=2*a*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*s,t[6]=0,t[7]=0,t[8]=(e+n)*u,t[9]=(i+r)*s,t[10]=(o+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*c,t[15]=0,t}function D(t,n,e,r,i){var a,o=1/Math.tan(n/2);return t[0]=o/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(a=1/(r-i),t[10]=(i+r)*a,t[14]=2*i*r*a):(t[10]=-1,t[14]=-2*r),t}var q=D;function S(t,n,e,r,i){var a,o=1/Math.tan(n/2);return t[0]=o/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(a=1/(r-i),t[10]=i*a,t[14]=i*r*a):(t[10]=-1,t[14]=-r),t}function j(t,n,e,r){var i=Math.tan(n.upDegrees*Math.PI/180),a=Math.tan(n.downDegrees*Math.PI/180),o=Math.tan(n.leftDegrees*Math.PI/180),u=Math.tan(n.rightDegrees*Math.PI/180),s=2/(o+u),c=2/(i+a);return t[0]=s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-((o-u)*s*.5),t[9]=(i-a)*c*.5,t[10]=r/(e-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*e/(e-r),t[15]=0,t}function L(t,n,e,r,i,a,o){var u=1/(n-e),s=1/(r-i),c=1/(a-o);return t[0]=-2*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(n+e)*u,t[13]=(i+r)*s,t[14]=(o+a)*c,t[15]=1,t}var W=L;function z(t,n,e,r,i,a,o){var u=1/(n-e),s=1/(r-i),c=1/(a-o);return t[0]=-2*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=c,t[11]=0,t[12]=(n+e)*u,t[13]=(i+r)*s,t[14]=a*c,t[15]=1,t}function V(t,n,e,i){var a,o,u,s,h,l,f,p,d,v,m=n[0],g=n[1],y=n[2],b=i[0],M=i[1],x=i[2],w=e[0],_=e[1],k=e[2];return Math.abs(m-w)0&&(h*=p=1/Math.sqrt(p),l*=p,f*=p);var d=s*f-c*l,v=c*h-u*f,m=u*l-s*h;return(p=d*d+v*v+m*m)>0&&(d*=p=1/Math.sqrt(p),v*=p,m*=p),t[0]=d,t[1]=v,t[2]=m,t[3]=0,t[4]=l*m-f*v,t[5]=f*d-h*m,t[6]=h*v-l*d,t[7]=0,t[8]=h,t[9]=l,t[10]=f,t[11]=0,t[12]=i,t[13]=a,t[14]=o,t[15]=1,t}function K(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function U(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function $(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t[9]=n[9]+e[9],t[10]=n[10]+e[10],t[11]=n[11]+e[11],t[12]=n[12]+e[12],t[13]=n[13]+e[13],t[14]=n[14]+e[14],t[15]=n[15]+e[15],t}function H(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t[9]=n[9]-e[9],t[10]=n[10]-e[10],t[11]=n[11]-e[11],t[12]=n[12]-e[12],t[13]=n[13]-e[13],t[14]=n[14]-e[14],t[15]=n[15]-e[15],t}function B(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t[9]=n[9]*e,t[10]=n[10]*e,t[11]=n[11]*e,t[12]=n[12]*e,t[13]=n[13]*e,t[14]=n[14]*e,t[15]=n[15]*e,t}function X(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t[9]=n[9]+e[9]*r,t[10]=n[10]+e[10]*r,t[11]=n[11]+e[11]*r,t[12]=n[12]+e[12]*r,t[13]=n[13]+e[13]*r,t[14]=n[14]+e[14]*r,t[15]=n[15]+e[15]*r,t}function Y(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}function J(t,n){var e=t[0],i=t[1],a=t[2],o=t[3],u=t[4],s=t[5],c=t[6],h=t[7],l=t[8],f=t[9],p=t[10],d=t[11],v=t[12],m=t[13],g=t[14],y=t[15],b=n[0],M=n[1],x=n[2],w=n[3],_=n[4],k=n[5],T=n[6],A=n[7],Z=n[8],P=n[9],N=n[10],O=n[11],E=n[12],I=n[13],R=n[14],F=n[15];return Math.abs(e-b)<=r.Ib*Math.max(1,Math.abs(e),Math.abs(b))&&Math.abs(i-M)<=r.Ib*Math.max(1,Math.abs(i),Math.abs(M))&&Math.abs(a-x)<=r.Ib*Math.max(1,Math.abs(a),Math.abs(x))&&Math.abs(o-w)<=r.Ib*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(u-_)<=r.Ib*Math.max(1,Math.abs(u),Math.abs(_))&&Math.abs(s-k)<=r.Ib*Math.max(1,Math.abs(s),Math.abs(k))&&Math.abs(c-T)<=r.Ib*Math.max(1,Math.abs(c),Math.abs(T))&&Math.abs(h-A)<=r.Ib*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(l-Z)<=r.Ib*Math.max(1,Math.abs(l),Math.abs(Z))&&Math.abs(f-P)<=r.Ib*Math.max(1,Math.abs(f),Math.abs(P))&&Math.abs(p-N)<=r.Ib*Math.max(1,Math.abs(p),Math.abs(N))&&Math.abs(d-O)<=r.Ib*Math.max(1,Math.abs(d),Math.abs(O))&&Math.abs(v-E)<=r.Ib*Math.max(1,Math.abs(v),Math.abs(E))&&Math.abs(m-I)<=r.Ib*Math.max(1,Math.abs(m),Math.abs(I))&&Math.abs(g-R)<=r.Ib*Math.max(1,Math.abs(g),Math.abs(R))&&Math.abs(y-F)<=r.Ib*Math.max(1,Math.abs(y),Math.abs(F))}var Q=d,tt=H},32945:function(t,n,e){"use strict";e.d(n,{Fv:function(){return v},JG:function(){return p},Jp:function(){return c},Su:function(){return l},U_:function(){return h},Ue:function(){return u},al:function(){return f},dC:function(){return d},yY:function(){return s}});var r=e(49685),i=e(35600),a=e(77160),o=e(98333);function u(){var t=new r.WT(4);return r.WT!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function s(t,n,e){var r=Math.sin(e*=.5);return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=Math.cos(e),t}function c(t,n,e){var r=n[0],i=n[1],a=n[2],o=n[3],u=e[0],s=e[1],c=e[2],h=e[3];return t[0]=r*h+o*u+i*c-a*s,t[1]=i*h+o*s+a*u-r*c,t[2]=a*h+o*c+r*s-i*u,t[3]=o*h-r*u-i*s-a*c,t}function h(t,n){var e=n[0],r=n[1],i=n[2],a=n[3],o=e*e+r*r+i*i+a*a,u=o?1/o:0;return t[0]=-e*u,t[1]=-r*u,t[2]=-i*u,t[3]=a*u,t}function l(t,n,e,r){var i=.5*Math.PI/180,a=Math.sin(n*=i),o=Math.cos(n),u=Math.sin(e*=i),s=Math.cos(e),c=Math.sin(r*=i),h=Math.cos(r);return t[0]=a*s*h-o*u*c,t[1]=o*u*h+a*s*c,t[2]=o*s*c-a*u*h,t[3]=o*s*h+a*u*c,t}o.d9;var f=o.al,p=o.JG;o.t8,o.IH;var d=c;o.bA,o.AK,o.t7,o.kE,o.we;var v=o.Fv;o.I6,o.fS,a.Ue(),a.al(1,0,0),a.al(0,1,0),u(),u(),i.Ue()},31437:function(t,n,e){"use strict";e.d(n,{AK:function(){return s},Fv:function(){return u},I6:function(){return c},JG:function(){return o},al:function(){return a}});var r,i=e(49685);function a(t,n){var e=new i.WT(2);return e[0]=t,e[1]=n,e}function o(t,n){return t[0]=n[0],t[1]=n[1],t}function u(t,n){var e=n[0],r=n[1],i=e*e+r*r;return i>0&&(i=1/Math.sqrt(i)),t[0]=n[0]*i,t[1]=n[1]*i,t}function s(t,n){return t[0]*n[0]+t[1]*n[1]}function c(t,n){return t[0]===n[0]&&t[1]===n[1]}r=new i.WT(2),i.WT!=Float32Array&&(r[0]=0,r[1]=0)},77160:function(t,n,e){"use strict";e.d(n,{$X:function(){return l},AK:function(){return v},Fv:function(){return d},IH:function(){return h},JG:function(){return s},Jp:function(){return f},TK:function(){return w},Ue:function(){return i},VC:function(){return M},Zh:function(){return _},al:function(){return u},bA:function(){return p},d9:function(){return a},fF:function(){return y},fS:function(){return x},kC:function(){return m},kE:function(){return o},kK:function(){return b},t7:function(){return g},t8:function(){return c}});var r=e(49685);function i(){var t=new r.WT(3);return r.WT!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function a(t){var n=new r.WT(3);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function o(t){return Math.hypot(t[0],t[1],t[2])}function u(t,n,e){var i=new r.WT(3);return i[0]=t,i[1]=n,i[2]=e,i}function s(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function c(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function h(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function l(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function f(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function p(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function d(t,n){var e=n[0],r=n[1],i=n[2],a=e*e+r*r+i*i;return a>0&&(a=1/Math.sqrt(a)),t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t}function v(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function m(t,n,e){var r=n[0],i=n[1],a=n[2],o=e[0],u=e[1],s=e[2];return t[0]=i*s-a*u,t[1]=a*o-r*s,t[2]=r*u-i*o,t}function g(t,n,e,r){var i=n[0],a=n[1],o=n[2];return t[0]=i+r*(e[0]-i),t[1]=a+r*(e[1]-a),t[2]=o+r*(e[2]-o),t}function y(t,n,e){var r=n[0],i=n[1],a=n[2],o=e[3]*r+e[7]*i+e[11]*a+e[15];return o=o||1,t[0]=(e[0]*r+e[4]*i+e[8]*a+e[12])/o,t[1]=(e[1]*r+e[5]*i+e[9]*a+e[13])/o,t[2]=(e[2]*r+e[6]*i+e[10]*a+e[14])/o,t}function b(t,n,e){var r=n[0],i=n[1],a=n[2];return t[0]=r*e[0]+i*e[3]+a*e[6],t[1]=r*e[1]+i*e[4]+a*e[7],t[2]=r*e[2]+i*e[5]+a*e[8],t}function M(t,n,e){var r=e[0],i=e[1],a=e[2],o=e[3],u=n[0],s=n[1],c=n[2],h=i*c-a*s,l=a*u-r*c,f=r*s-i*u,p=i*f-a*l,d=a*h-r*f,v=r*l-i*h,m=2*o;return h*=m,l*=m,f*=m,p*=2,d*=2,v*=2,t[0]=u+h+p,t[1]=s+l+d,t[2]=c+f+v,t}function x(t,n){var e=t[0],i=t[1],a=t[2],o=n[0],u=n[1],s=n[2];return Math.abs(e-o)<=r.Ib*Math.max(1,Math.abs(e),Math.abs(o))&&Math.abs(i-u)<=r.Ib*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(a-s)<=r.Ib*Math.max(1,Math.abs(a),Math.abs(s))}var w=function(t,n){return Math.hypot(n[0]-t[0],n[1]-t[1],n[2]-t[2])},_=o;i()},98333:function(t,n,e){"use strict";e.d(n,{AK:function(){return d},Fv:function(){return p},I6:function(){return g},IH:function(){return c},JG:function(){return u},Ue:function(){return i},al:function(){return o},bA:function(){return h},d9:function(){return a},fF:function(){return m},fS:function(){return y},kE:function(){return l},t7:function(){return v},t8:function(){return s},we:function(){return f}});var r=e(49685);function i(){var t=new r.WT(4);return r.WT!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function a(t){var n=new r.WT(4);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n}function o(t,n,e,i){var a=new r.WT(4);return a[0]=t,a[1]=n,a[2]=e,a[3]=i,a}function u(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function s(t,n,e,r,i){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t}function c(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t}function h(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t}function l(t){return Math.hypot(t[0],t[1],t[2],t[3])}function f(t){var n=t[0],e=t[1],r=t[2],i=t[3];return n*n+e*e+r*r+i*i}function p(t,n){var e=n[0],r=n[1],i=n[2],a=n[3],o=e*e+r*r+i*i+a*a;return o>0&&(o=1/Math.sqrt(o)),t[0]=e*o,t[1]=r*o,t[2]=i*o,t[3]=a*o,t}function d(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function v(t,n,e,r){var i=n[0],a=n[1],o=n[2],u=n[3];return t[0]=i+r*(e[0]-i),t[1]=a+r*(e[1]-a),t[2]=o+r*(e[2]-o),t[3]=u+r*(e[3]-u),t}function m(t,n,e){var r=n[0],i=n[1],a=n[2],o=n[3];return t[0]=e[0]*r+e[4]*i+e[8]*a+e[12]*o,t[1]=e[1]*r+e[5]*i+e[9]*a+e[13]*o,t[2]=e[2]*r+e[6]*i+e[10]*a+e[14]*o,t[3]=e[3]*r+e[7]*i+e[11]*a+e[15]*o,t}function g(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function y(t,n){var e=t[0],i=t[1],a=t[2],o=t[3],u=n[0],s=n[1],c=n[2],h=n[3];return Math.abs(e-u)<=r.Ib*Math.max(1,Math.abs(e),Math.abs(u))&&Math.abs(i-s)<=r.Ib*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(a-c)<=r.Ib*Math.max(1,Math.abs(a),Math.abs(c))&&Math.abs(o-h)<=r.Ib*Math.max(1,Math.abs(o),Math.abs(h))}i()},35171:function(t){t.exports=function(t){return!!t&&"string"!=typeof t&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},86851:function(t,n,e){"use strict";var r=e(35171),i=Array.prototype.concat,a=Array.prototype.slice,o=t.exports=function(t){for(var n=[],e=0,o=t.length;et.indexOf(n)&&(l[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(l[n[a]]=e[n[a]]);return l};function c(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}let u=["xs","sm","md","lg","xl","xxl"],h=n.forwardRef((e,t)=>{let{getPrefixCls:l,direction:a}=n.useContext(r.E_),{gutter:h,wrap:m}=n.useContext(s.Z),{prefixCls:v,span:f,order:p,offset:x,push:y,pull:g,className:j,children:w,flex:b,style:_}=e,N=d(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),C=l("col",v),[$,Z,k]=(0,o.cG)(C),S={},O={};u.forEach(t=>{let l={},n=e[t];"number"==typeof n?l.span=n:"object"==typeof n&&(l=n||{}),delete N[t],O=Object.assign(Object.assign({},O),{[`${C}-${t}-${l.span}`]:void 0!==l.span,[`${C}-${t}-order-${l.order}`]:l.order||0===l.order,[`${C}-${t}-offset-${l.offset}`]:l.offset||0===l.offset,[`${C}-${t}-push-${l.push}`]:l.push||0===l.push,[`${C}-${t}-pull-${l.pull}`]:l.pull||0===l.pull,[`${C}-rtl`]:"rtl"===a}),l.flex&&(O[`${C}-${t}-flex`]=!0,S[`--${C}-${t}-flex`]=c(l.flex))});let E=i()(C,{[`${C}-${f}`]:void 0!==f,[`${C}-order-${p}`]:p,[`${C}-offset-${x}`]:x,[`${C}-push-${y}`]:y,[`${C}-pull-${g}`]:g},j,O,Z,k),P={};if(h&&h[0]>0){let e=h[0]/2;P.paddingLeft=e,P.paddingRight=e}return b&&(P.flex=c(b),!1!==m||P.minWidth||(P.minWidth=0)),$(n.createElement("div",Object.assign({},N,{style:Object.assign(Object.assign(Object.assign({},P),_),S),className:E,ref:t}),w))});t.Z=h},92820:function(e,t,l){"use strict";var n=l(67294),a=l(93967),i=l.n(a),r=l(74443),s=l(53124),o=l(99134),d=l(6999),c=function(e,t){var l={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(l[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(l[n[a]]=e[n[a]]);return l};function u(e,t){let[l,a]=n.useState("string"==typeof e?e:""),i=()=>{if("string"==typeof e&&a(e),"object"==typeof e)for(let l=0;l{i()},[JSON.stringify(e),t]),l}let h=n.forwardRef((e,t)=>{let{prefixCls:l,justify:a,align:h,className:m,style:v,children:f,gutter:p=0,wrap:x}=e,y=c(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:g,direction:j}=n.useContext(s.E_),[w,b]=n.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[_,N]=n.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),C=u(h,_),$=u(a,_),Z=n.useRef(p),k=(0,r.ZP)();n.useEffect(()=>{let e=k.subscribe(e=>{N(e);let t=Z.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&b(e)});return()=>k.unsubscribe(e)},[]);let S=g("row",l),[O,E,P]=(0,d.VM)(S),M=(()=>{let e=[void 0,void 0],t=Array.isArray(p)?p:[p,void 0];return t.forEach((t,l)=>{if("object"==typeof t)for(let n=0;n0?-(M[0]/2):void 0;I&&(V.marginLeft=I,V.marginRight=I);let[R,T]=M;V.rowGap=T;let D=n.useMemo(()=>({gutter:[R,T],wrap:x}),[R,T,x]);return O(n.createElement(o.Z.Provider,{value:D},n.createElement("div",Object.assign({},y,{className:z,style:Object.assign(Object.assign({},V),v),ref:t}),f)))});t.Z=h},6999:function(e,t,l){"use strict";l.d(t,{VM:function(){return c},cG:function(){return u}});var n=l(25446),a=l(83559),i=l(83262);let r=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},s=(e,t)=>{let{prefixCls:l,componentCls:n,gridColumns:a}=e,i={};for(let e=a;e>=0;e--)0===e?(i[`${n}${t}-${e}`]={display:"none"},i[`${n}-push-${e}`]={insetInlineStart:"auto"},i[`${n}-pull-${e}`]={insetInlineEnd:"auto"},i[`${n}${t}-push-${e}`]={insetInlineStart:"auto"},i[`${n}${t}-pull-${e}`]={insetInlineEnd:"auto"},i[`${n}${t}-offset-${e}`]={marginInlineStart:0},i[`${n}${t}-order-${e}`]={order:0}):(i[`${n}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/a*100}%`,maxWidth:`${e/a*100}%`}],i[`${n}${t}-push-${e}`]={insetInlineStart:`${e/a*100}%`},i[`${n}${t}-pull-${e}`]={insetInlineEnd:`${e/a*100}%`},i[`${n}${t}-offset-${e}`]={marginInlineStart:`${e/a*100}%`},i[`${n}${t}-order-${e}`]={order:e});return i[`${n}${t}-flex`]={flex:`var(--${l}${t}-flex)`},i},o=(e,t)=>s(e,t),d=(e,t,l)=>({[`@media (min-width: ${(0,n.bf)(t)})`]:Object.assign({},o(e,l))}),c=(0,a.I$)("Grid",e=>{let{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},()=>({})),u=(0,a.I$)("Grid",e=>{let t=(0,i.IX)(e,{gridColumns:24}),l={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[r(t),o(t,""),o(t,"-xs"),Object.keys(l).map(e=>d(t,l[e],e)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]},()=>({}))},21332:function(e,t,l){"use strict";l.d(t,{_:function(){return V},a:function(){return M}});var n=l(85893),a=l(41468),i=l(64371),r=l(23430),s=l(99802),o=l(34041),d=l(71230),c=l(15746),u=l(42075),h=l(83062),m=l(14726),v=l(32983),f=l(96486),p=l(67294);let x=e=>{if(!e)return;let t=e.getContainer(),l=t.getElementsByTagName("canvas")[0];return l};var y=l(64352),g=l(8625);let j=e=>{let{charts:t,scopeOfCharts:l,ruleConfig:n}=e,a={};if(null==t||t.forEach(e=>{if(e.chartKnowledge.toSpec){let t=e.chartKnowledge.toSpec;e.chartKnowledge.toSpec=(e,l)=>({...t(e,l),dataProps:l})}else e.chartKnowledge.toSpec=(e,t)=>({dataProps:t});a[e.chartType]=e.chartKnowledge}),(null==l?void 0:l.exclude)&&l.exclude.forEach(e=>{Object.keys(a).includes(e)&&delete a[e]}),null==l?void 0:l.include){let e=l.include;Object.keys(a).forEach(t=>{e.includes(t)||delete a[t]})}let i={...l,custom:a},r={...n},s=new y.w({ckbCfg:i,ruleCfg:r});return s},w=e=>{var t;let{data:l,dataMetaMap:n,myChartAdvisor:a}=e,i=n?Object.keys(n).map(e=>({name:e,...n[e]})):null,r=new g.Z(l).info(),s=(0,f.size)(r)>2?null==r?void 0:r.filter(e=>"string"!==e.recommendation&&"date"!==e.recommendation||e.distinct&&e.distinct>1):r,o=null==a?void 0:a.adviseWithLog({data:l,dataProps:i,fields:null==s?void 0:s.map(e=>e.name)});return null!==(t=null==o?void 0:o.advices)&&void 0!==t?t:[]};function b(e,t){return t.every(t=>e.includes(t))}function _(e,t){let l=t.find(t=>t.name===e);return(null==l?void 0:l.recommendation)==="date"?t=>new Date(t[e]):e}function N(e){return e.find(e=>{var t;return e.levelOfMeasurements&&(t=e.levelOfMeasurements,["Time","Ordinal"].some(e=>t.includes(e)))})}function C(e){return e.find(e=>e.levelOfMeasurements&&b(e.levelOfMeasurements,["Nominal"]))}let $=e=>{let{data:t,xField:l}=e,n=(0,f.uniq)(t.map(e=>e[l]));return n.length<=1},Z=(e,t,l)=>{let{field4Split:n,field4X:a}=l;if((null==n?void 0:n.name)&&(null==a?void 0:a.name)){let l=e[n.name],i=t.filter(e=>n.name&&e[n.name]===l);return $({data:i,xField:a.name})?5:void 0}return(null==a?void 0:a.name)&&$({data:t,xField:a.name})?5:void 0},k=e=>{let{data:t,chartType:l,xField:n}=e,a=(0,f.cloneDeep)(t);try{if(l.includes("line")&&(null==n?void 0:n.name)&&"date"===n.recommendation)return a.sort((e,t)=>new Date(e[n.name]).getTime()-new Date(t[n.name]).getTime()),a;l.includes("line")&&(null==n?void 0:n.name)&&["float","integer"].includes(n.recommendation)&&a.sort((e,t)=>e[n.name]-t[n.name])}catch(e){console.error(e)}return a},S=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.map(e=>{let l={};return Object.keys(e).forEach(n=>{l[n]=e[n]===t?null:e[n]}),l})},O="multi_line_chart",E="multi_measure_line_chart",P=[{chartType:"multi_line_chart",chartKnowledge:{id:O,name:"multi_line_chart",alias:["multi_line_chart"],family:["LineCharts"],def:"multi_line_chart uses lines with segments to show changes in data in a ordinal dimension",purpose:["Comparison","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:1,maxQty:"*",fieldConditions:["Interval"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Direction","Position"],recRate:"Recommended",toSpec:(e,t)=>{var l,n;let a=N(t),i=C(t),r=null!==(l=null!=a?a:i)&&void 0!==l?l:t[0],s=t.filter(e=>e.name!==(null==r?void 0:r.name)),o=null!==(n=s.filter(e=>e.levelOfMeasurements&&b(e.levelOfMeasurements,["Interval"])))&&void 0!==n?n:[s[0]],d=s.filter(e=>!o.find(t=>t.name===e.name)).find(e=>e.levelOfMeasurements&&b(e.levelOfMeasurements,["Nominal"]));if(!r||!o)return null;let c={type:"view",autoFit:!0,data:k({data:e,chartType:O,xField:r}),children:[]};return o.forEach(l=>{let n={type:"line",encode:{x:_(r.name,t),y:l.name,size:t=>Z(t,e,{field4Split:d,field4X:r})},legend:{size:!1}};d&&(n.encode.color=d.name),c.children.push(n)}),c}},chineseName:"折线图"},{chartType:"multi_measure_column_chart",chartKnowledge:{id:"multi_measure_column_chart",name:"multi_measure_column_chart",alias:["multi_measure_column_chart"],family:["ColumnCharts"],def:"multi_measure_column_chart uses lines with segments to show changes in data in a ordinal dimension",purpose:["Comparison","Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Direction","Position"],recRate:"Recommended",toSpec:(e,t)=>{try{let l=null==t?void 0:t.filter(e=>b(e.levelOfMeasurements,["Interval"])),n=C(t),a=N(t),i=null!=n?n:a;if(!i||!l)return null;let r={type:"view",data:e,children:[]};return null==l||l.forEach(e=>{let t={type:"interval",encode:{x:i.name,y:e.name,color:()=>e.name,series:()=>e.name}};r.children.push(t)}),r}catch(e){return console.log(e),null}}},chineseName:"折线图"},{chartType:"multi_measure_line_chart",chartKnowledge:{id:E,name:"multi_measure_line_chart",alias:["multi_measure_line_chart"],family:["LineCharts"],def:"multi_measure_line_chart uses lines with segments to show changes in data in a ordinal dimension",purpose:["Comparison","Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Direction","Position"],recRate:"Recommended",toSpec:(e,t)=>{try{var l,n;let a=null!==(n=null!==(l=C(t))&&void 0!==l?l:N(t))&&void 0!==n?n:t[0],i=null==t?void 0:t.filter(e=>e.name!==(null==a?void 0:a.name)&&b(e.levelOfMeasurements,["Interval"]));if(!a||!i)return null;let r={type:"view",data:k({data:e,chartType:E,xField:a}),children:[]};return null==i||i.forEach(l=>{let n={type:"line",encode:{x:_(a.name,t),y:l.name,color:()=>l.name,series:()=>l.name,size:t=>Z(t,e,{field4X:a})},legend:{size:!1}};r.children.push(n)}),r}catch(e){return console.log(e),null}}},chineseName:"折线图"}],M=e=>"response_line_chart"===e?["multi_line_chart","multi_measure_line_chart"]:"response_bar_chart"===e?["multi_measure_column_chart"]:"response_pie_chart"===e?["pie_chart"]:"response_scatter_chart"===e?["scatter_plot"]:"response_area_chart"===e?["area_chart"]:"response_heatmap_chart"===e?["heatmap"]:[],{Option:z}=o.default,V=e=>{let{data:t,chartType:l,scopeOfCharts:y,ruleConfig:g}=e,b=S(t),{mode:_}=(0,p.useContext)(a.p),[N,C]=(0,p.useState)(),[$,Z]=(0,p.useState)([]),[O,E]=(0,p.useState)(),M=(0,p.useRef)();(0,p.useEffect)(()=>{C(j({charts:P,scopeOfCharts:{exclude:["area_chart","stacked_area_chart","percent_stacked_area_chart"]},ruleConfig:g}))},[g,y]);let V=e=>{if(!N)return[];let t=function(e){let{advices:t}=e;return t}({advices:e}),n=(0,f.uniq)((0,f.compact)((0,f.concat)(l,e.map(e=>e.type)))),a=n.map(e=>{let l=t.find(t=>t.type===e);if(l)return l;let n=N.dataAnalyzer.execute({data:b});if("data"in n){var a;let t=N.specGenerator.execute({data:n.data,dataProps:n.dataProps,chartTypeRecommendations:[{chartType:e,score:1}]});if("advices"in t)return null===(a=t.advices)||void 0===a?void 0:a[0]}}).filter(e=>null==e?void 0:e.spec);return a};(0,p.useEffect)(()=>{if(b&&N){var e;let t=w({data:b,myChartAdvisor:N}),l=V(t);Z(l),E(null===(e=l[0])||void 0===e?void 0:e.type)}},[JSON.stringify(b),N,l]);let I=(0,p.useMemo)(()=>{if((null==$?void 0:$.length)>0){var e,t,l,a;let i=null!=O?O:$[0].type,r=null!==(t=null===(e=null==$?void 0:$.find(e=>e.type===i))||void 0===e?void 0:e.spec)&&void 0!==t?t:void 0;if(r){if(r.data&&["line_chart","step_line_chart"].includes(i)){let e=null==N?void 0:N.dataAnalyzer.execute({data:b});e&&"dataProps"in e&&(r.data=k({data:r.data,xField:null===(a=e.dataProps)||void 0===a?void 0:a.find(e=>"date"===e.recommendation),chartType:i}))}return"pie_chart"===i&&(null==r?void 0:null===(l=r.encode)||void 0===l?void 0:l.color)&&(r.tooltip={title:{field:r.encode.color}}),(0,n.jsx)(s.k,{options:{...r,autoFit:!0,theme:_,height:300},ref:M},i)}}},[$,_,O]);return O?(0,n.jsxs)("div",{children:[(0,n.jsxs)(d.Z,{justify:"space-between",className:"mb-2",children:[(0,n.jsx)(c.Z,{children:(0,n.jsxs)(u.Z,{children:[(0,n.jsx)("span",{children:i.Z.t("Advices")}),(0,n.jsx)(o.default,{className:"w-52",value:O,placeholder:"Chart Switcher",onChange:e=>E(e),size:"small",children:null==$?void 0:$.map(e=>{let t=i.Z.t(e.type);return(0,n.jsx)(z,{value:e.type,children:(0,n.jsx)(h.Z,{title:t,placement:"right",children:(0,n.jsx)("div",{children:t})})},e.type)})})]})}),(0,n.jsx)(c.Z,{children:(0,n.jsx)(h.Z,{title:i.Z.t("Download"),children:(0,n.jsx)(m.ZP,{onClick:()=>(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Chart",l=document.createElement("a"),n="".concat(t,".png");setTimeout(()=>{let t=function(e){let t=x(e);if(t){let e=t.toDataURL("image/png");return e}}(e);if(t){l.addEventListener("click",()=>{l.download=n,l.href=t});let e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),l.dispatchEvent(e)}},16)})(M.current,i.Z.t(O)),icon:(0,n.jsx)(r.Z,{}),type:"text"})})})]}),(0,n.jsx)("div",{className:"flex",children:I})]}):(0,n.jsx)(v.Z,{image:v.Z.PRESENTED_IMAGE_SIMPLE,description:"暂无合适的可视化视图"})}},39156:function(e,t,l){"use strict";l.d(t,{_z:function(){return f._},ZP:function(){return p},aG:function(){return f.a}});var n=l(85893),a=l(41118),i=l(30208),r=l(40911),s=l(67294),o=l(41468),d=l(99802);function c(e){let{chart:t}=e,{mode:l}=(0,s.useContext)(o.p);return(0,n.jsx)("div",{className:"flex-1 min-w-0 p-4 bg-white dark:bg-theme-dark-container rounded",children:(0,n.jsxs)("div",{className:"h-full",children:[(0,n.jsx)("div",{className:"mb-2",children:t.chart_name}),(0,n.jsx)("div",{className:"opacity-80 text-sm mb-2",children:t.chart_desc}),(0,n.jsx)("div",{className:"h-[300px]",children:(0,n.jsx)(d.k,{style:{height:"100%"},options:{autoFit:!0,theme:l,type:"interval",data:t.values,encode:{x:"name",y:"value",color:"type"},axis:{x:{labelAutoRotate:!1}}}})})]})})}function u(e){let{chart:t}=e,{mode:l}=(0,s.useContext)(o.p);return(0,n.jsx)("div",{className:"flex-1 min-w-0 p-4 bg-white dark:bg-theme-dark-container rounded",children:(0,n.jsxs)("div",{className:"h-full",children:[(0,n.jsx)("div",{className:"mb-2",children:t.chart_name}),(0,n.jsx)("div",{className:"opacity-80 text-sm mb-2",children:t.chart_desc}),(0,n.jsx)("div",{className:"h-[300px]",children:(0,n.jsx)(d.k,{style:{height:"100%"},options:{autoFit:!0,theme:l,type:"view",data:t.values,children:[{type:"line",encode:{x:"name",y:"value",color:"type",shape:"smooth"}},{type:"area",encode:{x:"name",y:"value",color:"type",shape:"smooth"},legend:!1,style:{fillOpacity:.15}}],axis:{x:{labelAutoRotate:!1}}}})})]})})}var h=l(61685),m=l(96486);function v(e){var t,l;let{chart:a}=e,i=(0,m.groupBy)(a.values,"type");return(0,n.jsx)("div",{className:"flex-1 min-w-0 p-4 bg-white dark:bg-theme-dark-container rounded",children:(0,n.jsxs)("div",{className:"h-full",children:[(0,n.jsx)("div",{className:"mb-2",children:a.chart_name}),(0,n.jsx)("div",{className:"opacity-80 text-sm mb-2",children:a.chart_desc}),(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsxs)(h.Z,{"aria-label":"basic table",stripe:"odd",hoverRow:!0,borderAxis:"bothBetween",children:[(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{children:Object.keys(i).map(e=>(0,n.jsx)("th",{children:e},e))})}),(0,n.jsx)("tbody",{children:null===(t=Object.values(i))||void 0===t?void 0:null===(l=t[0])||void 0===l?void 0:l.map((e,t)=>{var l;return(0,n.jsx)("tr",{children:null===(l=Object.keys(i))||void 0===l?void 0:l.map(e=>{var l;return(0,n.jsx)("td",{children:(null==i?void 0:null===(l=i[e])||void 0===l?void 0:l[t].value)||""},e)})},t)})})]})})]})})}var f=l(21332),p=function(e){let{chartsData:t}=e,l=(0,s.useMemo)(()=>{if(t){let e=[],l=null==t?void 0:t.filter(e=>"IndicatorValue"===e.chart_type);l.length>0&&e.push({charts:l,type:"IndicatorValue"});let n=null==t?void 0:t.filter(e=>"IndicatorValue"!==e.chart_type),a=n.length,i=0;return[[0],[1],[2],[1,2],[1,3],[2,1,2],[2,1,3],[3,1,3],[3,2,3]][a].forEach(t=>{if(t>0){let l=n.slice(i,i+t);i+=t,e.push({charts:l})}}),e}},[t]);return(0,n.jsx)("div",{className:"flex flex-col gap-3",children:null==l?void 0:l.map((e,t)=>(0,n.jsx)("div",{className:"".concat((null==e?void 0:e.type)!=="IndicatorValue"?"flex gap-3":""),children:e.charts.map(e=>"IndicatorValue"===e.chart_type||"IndicatorValue"===e.type?(0,n.jsx)("div",{className:"flex flex-row gap-3",children:e.values.map(e=>(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(a.Z,{sx:{background:"transparent"},children:(0,n.jsxs)(i.Z,{className:"justify-around",children:[(0,n.jsx)(r.ZP,{gutterBottom:!0,component:"div",children:e.name}),(0,n.jsx)(r.ZP,{children:e.value})]})})},e.name))},e.chart_uid):"LineChart"===e.chart_type||"LineChart"===e.type?(0,n.jsx)(u,{chart:e},e.chart_uid):"BarChart"===e.chart_type||"BarChart"===e.type?(0,n.jsx)(c,{chart:e},e.chart_uid):"Table"===e.chart_type||"TableChartData"===e.type?(0,n.jsx)(v,{chart:e},e.chart_uid):void 0)},"chart_row_".concat(t)))})}},96307:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return P}});var n=l(85893),a=l(30119),i=l(16165),r=l(65654),s=l(25278),o=l(39773),d=l(83062),c=l(34041),u=l(20863),h=l(14726),m=l(39332),v=l(67294),f=l(39156),p=l(34625),x=l(74434),y=function(){return(0,n.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",children:(0,n.jsx)("path",{d:"M161.05472 919.3472h701.9008a58.71616 58.71616 0 0 0 58.65472-58.65472V180.40832a58.71616 58.71616 0 0 0-58.65472-58.65472H161.09568a58.03008 58.03008 0 0 0-41.4208 17.08032A58.1632 58.1632 0 0 0 102.4 180.30592v680.38656a58.64448 58.64448 0 0 0 58.65472 58.65472z m385.15712-589.568V190.08512h306.95424v660.93056H546.21184V329.7792zM170.83392 190.08512h306.95424v660.93056H170.83392V190.08512z"})})},g=function(){return(0,n.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",children:(0,n.jsx)("path",{d:"M171.85792 110.9504a58.65472 58.65472 0 0 0-58.65472 58.65472v701.9008a58.7264 58.7264 0 0 0 58.65472 58.65472h680.28416a58.7264 58.7264 0 0 0 58.65472-58.65472V169.64608a57.98912 57.98912 0 0 0-17.08032-41.41056 58.1632 58.1632 0 0 0-41.472-17.27488H171.85792z m670.60736 750.77632H181.53472V554.77248h660.93056v306.95424z m0-375.38816H181.53472V179.38432h660.93056v306.95424z"})})},j=l(6171),w=l(18073),b=l(14313),_=l(36986),N=l(93967),C=l.n(N),$=l(91085);function Z(){return(0,n.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",children:[(0,n.jsx)("path",{d:"M512 64c-247.424 0-448 62.72-448 140.032v112c0 77.312 200.576 139.968 448 139.968s448-62.72 448-140.032v-112C960 126.72 759.424 64 512 64z m0 728c-247.424 0-448-62.72-448-140.032v168.064C64 897.28 264.576 960 512 960s448-62.72 448-140.032v-167.936c0 77.312-200.576 139.968-448 139.968z",fill:"#3699FF"}),(0,n.jsx)("path",{d:"M512 540.032c-247.424 0-448-62.72-448-140.032v168c0 77.312 200.576 140.032 448 140.032s448-62.72 448-140.032V400c0 77.312-200.576 140.032-448 140.032z",fill:"#3699FF",opacity:".32"})]})}function k(){return(0,n.jsx)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",children:(0,n.jsx)("path",{d:"M39.385 204.83h346.571L252.054 976.74l-23.63 39.383h259.929v-31.506L614.379 204.83H771.91S960.951 220.584 984.581 0.038H236.3S94.52-7.84 39.384 204.83",fill:"#1296db"})})}function S(){return(0,n.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",children:[(0,n.jsx)("path",{d:"M149.2 99.7h726.6c27.7 0 50.1 22.4 50.1 50.1V336H99.1V149.8c0-27.6 22.4-50.1 50.1-50.1z",fill:"#1ECD93"}),(0,n.jsx)("path",{d:"M99.1 395h236.2v236.3H99.1zM99.1 690.3h236.2v236.2H149.2c-27.7 0-50.1-22.4-50.1-50.1V690.3zM394.4 395h236.2v236.3H394.4z",fill:"#1ECD93",fillOpacity:".5"}),(0,n.jsx)("path",{d:"M394.4 690.3h236.2v236.3H394.4z",fill:"#A1E6C9","data-spm-anchor-id":"a313x.search_index.0.i13.27343a81CqKUWU"}),(0,n.jsx)("path",{d:"M689.7 395h236.2v236.3H689.7z",fill:"#1ECD93",fillOpacity:".5"}),(0,n.jsx)("path",{d:"M689.7 690.3h236.2v186.1c0 27.7-22.4 50.1-50.1 50.1H689.7V690.3z",fill:"#A1E6C9","data-spm-anchor-id":"a313x.search_index.0.i17.27343a81CqKUWU"})]})}let{Search:O}=s.default;function E(e){let{layout:t="LR",editorValue:l,chartData:a,tableData:i,tables:r,handleChange:s}=e,d=(0,v.useMemo)(()=>a?(0,n.jsx)("div",{className:"flex-1 overflow-auto p-2",style:{flexShrink:0,overflow:"hidden"},children:(0,n.jsx)(f.ZP,{chartsData:[a]})}):null,[a]),{columns:c,dataSource:u}=(0,v.useMemo)(()=>{let{columns:e=[],values:t=[]}=null!=i?i:{},l=e.map(e=>({key:e,dataIndex:e,title:e})),n=t.map(t=>t.reduce((t,l,n)=>(t[e[n]]=l,t),{}));return{columns:l,dataSource:n}},[i]),h=(0,v.useMemo)(()=>{let e={},t=null==r?void 0:r.data,l=null==t?void 0:t.children;return null==l||l.forEach(t=>{e[t.title]=t.children.map(e=>({columnName:e.title,columnType:e.type}))}),{getTableList:async e=>e&&e!==(null==t?void 0:t.title)?[]:(null==l?void 0:l.map(e=>e.title))||[],getTableColumns:async t=>e[t]||[],getSchemaList:async()=>(null==t?void 0:t.title)?[null==t?void 0:t.title]:[]}},[r]);return(0,n.jsxs)("div",{className:C()("flex w-full flex-1 h-full gap-2 overflow-hidden",{"flex-col":"TB"===t,"flex-row":"LR"===t}),children:[(0,n.jsx)("div",{className:"flex-1 flex overflow-hidden rounded",children:(0,n.jsx)(x.Z,{value:(null==l?void 0:l.sql)||"",language:"mysql",onChange:s,thoughts:(null==l?void 0:l.thoughts)||"",session:h})}),(0,n.jsxs)("div",{className:"flex-1 h-full overflow-auto bg-white dark:bg-theme-dark-container rounded p-4",children:[(null==i?void 0:i.values.length)?(0,n.jsx)(o.Z,{bordered:!0,scroll:{x:"auto"},rowKey:c[0].key,columns:c,dataSource:u}):(0,n.jsx)("div",{className:"h-full flex justify-center items-center",children:(0,n.jsx)($.Z,{})}),d]})]})}var P=function(){var e,t,l,s,o;let[f,x]=(0,v.useState)([]),[N,$]=(0,v.useState)(""),[P,M]=(0,v.useState)(),[z,V]=(0,v.useState)(!0),[I,R]=(0,v.useState)(),[T,D]=(0,v.useState)(),[H,L]=(0,v.useState)(),[q,A]=(0,v.useState)(),[B,F]=(0,v.useState)(),[U,Q]=(0,v.useState)(!1),[G,K]=(0,v.useState)("TB"),W=(0,m.useSearchParams)(),X=null==W?void 0:W.get("id"),J=null==W?void 0:W.get("scene"),{data:Y}=(0,r.Z)(async()=>await (0,a.Tk)("/v1/editor/sql/rounds",{con_uid:X}),{onSuccess:e=>{var t,l;let n=null==e?void 0:null===(t=e.data)||void 0===t?void 0:t[(null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.length)-1];n&&M(null==n?void 0:n.round)}}),{run:ee,loading:et}=(0,r.Z)(async()=>{var e,t;let l=null===(e=null==Y?void 0:null===(t=Y.data)||void 0===t?void 0:t.find(e=>e.round===P))||void 0===e?void 0:e.db_name;return await (0,a.PR)("/api/v1/editor/sql/run",{db_name:l,sql:null==H?void 0:H.sql})},{manual:!0,onSuccess:e=>{var t,l;A({columns:null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.colunms,values:null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.values})}}),{run:el,loading:en}=(0,r.Z)(async()=>{var e,t;let l=null===(e=null==Y?void 0:null===(t=Y.data)||void 0===t?void 0:t.find(e=>e.round===P))||void 0===e?void 0:e.db_name,n={db_name:l,sql:null==H?void 0:H.sql};return"chat_dashboard"===J&&(n.chart_type=null==H?void 0:H.showcase),await (0,a.PR)("/api/v1/editor/chart/run",n)},{manual:!0,ready:!!(null==H?void 0:H.sql),onSuccess:e=>{if(null==e?void 0:e.success){var t,l,n,a,i,r,s;A({columns:(null==e?void 0:null===(t=e.data)||void 0===t?void 0:null===(l=t.sql_data)||void 0===l?void 0:l.colunms)||[],values:(null==e?void 0:null===(n=e.data)||void 0===n?void 0:null===(a=n.sql_data)||void 0===a?void 0:a.values)||[]}),(null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.chart_values)?R({type:null==e?void 0:null===(r=e.data)||void 0===r?void 0:r.chart_type,values:null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.chart_values,title:null==H?void 0:H.title,description:null==H?void 0:H.thoughts}):R(void 0)}}}),{run:ea,loading:ei}=(0,r.Z)(async()=>{var e,t,l,n,i;let r=null===(e=null==Y?void 0:null===(t=Y.data)||void 0===t?void 0:t.find(e=>e.round===P))||void 0===e?void 0:e.db_name;return await (0,a.PR)("/api/v1/sql/editor/submit",{conv_uid:X,db_name:r,conv_round:P,old_sql:null==T?void 0:T.sql,old_speak:null==T?void 0:T.thoughts,new_sql:null==H?void 0:H.sql,new_speak:(null===(l=null==H?void 0:null===(n=H.thoughts)||void 0===n?void 0:n.match(/^\n--(.*)\n\n$/))||void 0===l?void 0:null===(i=l[1])||void 0===i?void 0:i.trim())||(null==H?void 0:H.thoughts)})},{manual:!0,onSuccess:e=>{(null==e?void 0:e.success)&&ee()}}),{run:er,loading:es}=(0,r.Z)(async()=>{var e,t,l,n,i,r;let s=null===(e=null==Y?void 0:null===(t=Y.data)||void 0===t?void 0:t.find(e=>e.round===P))||void 0===e?void 0:e.db_name;return await (0,a.PR)("/api/v1/chart/editor/submit",{conv_uid:X,chart_title:null==H?void 0:H.title,db_name:s,old_sql:null==T?void 0:null===(l=T[null!=B?B:0])||void 0===l?void 0:l.sql,new_chart_type:null==H?void 0:H.showcase,new_sql:null==H?void 0:H.sql,new_comment:(null===(n=null==H?void 0:null===(i=H.thoughts)||void 0===i?void 0:i.match(/^\n--(.*)\n\n$/))||void 0===n?void 0:null===(r=n[1])||void 0===r?void 0:r.trim())||(null==H?void 0:H.thoughts),gmt_create:new Date().getTime()})},{manual:!0,onSuccess:e=>{(null==e?void 0:e.success)&&el()}}),{data:eo}=(0,r.Z)(async()=>{var e,t;let l=null===(e=null==Y?void 0:null===(t=Y.data)||void 0===t?void 0:t.find(e=>e.round===P))||void 0===e?void 0:e.db_name;return await (0,a.Tk)("/v1/editor/db/tables",{db_name:l,page_index:1,page_size:200})},{ready:!!(null===(e=null==Y?void 0:null===(t=Y.data)||void 0===t?void 0:t.find(e=>e.round===P))||void 0===e?void 0:e.db_name),refreshDeps:[null===(l=null==Y?void 0:null===(s=Y.data)||void 0===s?void 0:s.find(e=>e.round===P))||void 0===l?void 0:l.db_name]}),{run:ed}=(0,r.Z)(async e=>await (0,a.Tk)("/v1/editor/sql",{con_uid:X,round:e}),{manual:!0,onSuccess:e=>{let t;try{if(Array.isArray(null==e?void 0:e.data))t=null==e?void 0:e.data,F(0);else if("string"==typeof(null==e?void 0:e.data)){let l=JSON.parse(null==e?void 0:e.data);t=l}else t=null==e?void 0:e.data}catch(e){console.log(e)}finally{D(t),Array.isArray(t)?L(null==t?void 0:t[Number(B||0)]):L(t)}}}),ec=(0,v.useMemo)(()=>{let e=(t,l)=>t.map(t=>{let a=t.title,i=a.indexOf(N),r=a.substring(0,i),s=a.slice(i+N.length),o=e=>{switch(e){case"db":return(0,n.jsx)(Z,{});case"table":return(0,n.jsx)(S,{});default:return(0,n.jsx)(k,{})}},c=i>-1?(0,n.jsx)(d.Z,{title:((null==t?void 0:t.comment)||(null==t?void 0:t.title))+((null==t?void 0:t.can_null)==="YES"?"(can null)":"(can't null)"),children:(0,n.jsxs)("div",{className:"flex items-center",children:[o(t.type),"\xa0\xa0\xa0",r,(0,n.jsx)("span",{className:"text-[#1677ff]",children:N}),s,"\xa0",(null==t?void 0:t.type)&&(0,n.jsx)("div",{className:"text-gray-400",children:null==t?void 0:t.type})]})}):(0,n.jsx)(d.Z,{title:((null==t?void 0:t.comment)||(null==t?void 0:t.title))+((null==t?void 0:t.can_null)==="YES"?"(can null)":"(can't null)"),children:(0,n.jsxs)("div",{className:"flex items-center",children:[o(t.type),"\xa0\xa0\xa0",a,"\xa0",(null==t?void 0:t.type)&&(0,n.jsx)("div",{className:"text-gray-400",children:null==t?void 0:t.type})]})});if(t.children){let n=l?String(l)+"_"+t.key:t.key;return{title:a,showTitle:c,key:n,children:e(t.children,n)}}return{title:a,showTitle:c,key:t.key}});return(null==eo?void 0:eo.data)?(x([null==eo?void 0:eo.data.key]),e([null==eo?void 0:eo.data])):[]},[N,eo]),eu=(0,v.useMemo)(()=>{let e=[],t=(l,n)=>{if(l&&!((null==l?void 0:l.length)<=0))for(let a=0;a{let l;for(let n=0;nt.key===e)?l=a.key:eh(e,a.children)&&(l=eh(e,a.children)))}return l};function em(e){let t;if(!e)return{sql:"",thoughts:""};let l=e&&e.match(/(--.*)?\n?([\s\S]*)/),n="";return l&&l.length>=3&&(n=l[1],t=l[2]),{sql:t,thoughts:n}}return(0,v.useEffect)(()=>{P&&ed(P)},[ed,P]),(0,v.useEffect)(()=>{T&&"chat_dashboard"===J&&B&&el()},[B,J,T,el]),(0,v.useEffect)(()=>{T&&"chat_dashboard"!==J&&ee()},[J,T,ee]),(0,n.jsxs)("div",{className:"flex flex-col w-full h-full overflow-hidden",children:[(0,n.jsx)(p.Z,{}),(0,n.jsxs)("div",{className:"relative flex flex-1 p-4 pt-0 overflow-hidden",children:[(0,n.jsxs)("div",{className:"relative flex overflow-hidden mr-4",children:[(0,n.jsx)("div",{className:C()("h-full relative transition-[width] overflow-hidden",{"w-0":U,"w-64":!U}),children:(0,n.jsxs)("div",{className:"relative w-64 h-full overflow-hidden flex flex-col rounded bg-white dark:bg-theme-dark-container p-4",children:[(0,n.jsx)(c.default,{size:"middle",className:"w-full mb-2",value:P,options:null==Y?void 0:null===(o=Y.data)||void 0===o?void 0:o.map(e=>({label:e.round_name,value:e.round})),onChange:e=>{M(e)}}),(0,n.jsx)(O,{className:"mb-2",placeholder:"Search",onChange:e=>{let{value:t}=e.target;if(null==eo?void 0:eo.data){if(t){let e=eu.map(e=>e.title.indexOf(t)>-1?eh(e.key,ec):null).filter((e,t,l)=>e&&l.indexOf(e)===t);x(e)}else x([]);$(t),V(!0)}}}),ec&&ec.length>0&&(0,n.jsx)("div",{className:"flex-1 overflow-y-auto",children:(0,n.jsx)(u.Z,{onExpand:e=>{x(e),V(!1)},expandedKeys:f,autoExpandParent:z,treeData:ec,fieldNames:{title:"showTitle"}})})]})}),(0,n.jsx)("div",{className:"absolute right-0 top-0 translate-x-full h-full flex items-center justify-center opacity-0 hover:opacity-100 group-hover/side:opacity-100 transition-opacity",children:(0,n.jsx)("div",{className:"bg-white w-4 h-10 flex items-center justify-center dark:bg-theme-dark-container rounded-tr rounded-br z-10 text-xs cursor-pointer shadow-[4px_0_10px_rgba(0,0,0,0.06)] text-opacity-80",onClick:()=>{Q(!U)},children:U?(0,n.jsx)(w.Z,{}):(0,n.jsx)(j.Z,{})})})]}),(0,n.jsxs)("div",{className:"flex flex-col flex-1 max-w-full overflow-hidden",children:[(0,n.jsxs)("div",{className:"mb-2 bg-white dark:bg-theme-dark-container p-2 flex justify-between items-center",children:[(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(h.ZP,{className:"text-xs rounded-none",size:"small",type:"primary",icon:(0,n.jsx)(b.Z,{}),loading:et||en,onClick:async()=>{"chat_dashboard"===J?el():ee()},children:"Run"}),(0,n.jsx)(h.ZP,{className:"text-xs rounded-none",type:"primary",size:"small",loading:ei||es,icon:(0,n.jsx)(_.Z,{}),onClick:async()=>{"chat_dashboard"===J?await er():await ea()},children:"Save"})]}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(i.Z,{className:C()("flex items-center justify-center w-6 h-6 text-lg rounded",{"bg-theme-primary bg-opacity-10":"TB"===G}),component:g,onClick:()=>{K("TB")}}),(0,n.jsx)(i.Z,{className:C()("flex items-center justify-center w-6 h-6 text-lg rounded",{"bg-theme-primary bg-opacity-10":"LR"===G}),component:y,onClick:()=>{K("LR")}})]})]}),Array.isArray(T)?(0,n.jsxs)("div",{className:"flex flex-col h-full overflow-hidden",children:[(0,n.jsx)("div",{className:"w-full whitespace-nowrap overflow-x-auto bg-white dark:bg-theme-dark-container mb-2 text-[0px]",children:T.map((e,t)=>(0,n.jsx)(d.Z,{className:"inline-block",title:e.title,children:(0,n.jsx)("div",{className:C()("max-w-[240px] px-3 h-10 text-ellipsis overflow-hidden whitespace-nowrap text-sm leading-10 cursor-pointer font-semibold hover:text-theme-primary transition-colors mr-2 last-of-type:mr-0",{"border-b-2 border-solid border-theme-primary text-theme-primary":B===t}),onClick:()=>{F(t),L(null==T?void 0:T[t])},children:e.title})},e.title))}),(0,n.jsx)("div",{className:"flex flex-1 overflow-hidden",children:T.map((e,t)=>(0,n.jsx)("div",{className:C()("w-full overflow-hidden",{hidden:t!==B,"block flex-1":t===B}),children:(0,n.jsx)(E,{layout:G,editorValue:e,handleChange:e=>{let{sql:t,thoughts:l}=em(e);L(e=>Object.assign({},e,{sql:t,thoughts:l}))},tableData:q,chartData:I})},e.title))})]}):(0,n.jsx)(E,{layout:G,editorValue:T,handleChange:e=>{let{sql:t,thoughts:l}=em(e);L(e=>Object.assign({},e,{sql:t,thoughts:l}))},tableData:q,chartData:void 0,tables:eo})]})]})]})}},34625:function(e,t,l){"use strict";l.d(t,{Z:function(){return O}});var n=l(85893),a=l(41468),i=l(81799),r=l(82353),s=l(16165),o=l(96991),d=l(78045),c=l(67294);function u(){let{isContract:e,setIsContract:t,scene:l}=(0,c.useContext)(a.p),i=l&&["chat_with_db_execute","chat_dashboard"].includes(l);return i?(0,n.jsxs)(d.ZP.Group,{value:e,defaultValue:!0,buttonStyle:"solid",onChange:()=>{t(!e)},children:[(0,n.jsxs)(d.ZP.Button,{value:!1,children:[(0,n.jsx)(s.Z,{component:r.ig,className:"mr-1"}),"Preview"]}),(0,n.jsxs)(d.ZP.Button,{value:!0,children:[(0,n.jsx)(o.Z,{className:"mr-1"}),"Editor"]})]}):null}l(23293);var h=l(76212),m=l(65654),v=l(34041),f=l(67421),p=function(){let{t:e}=(0,f.$G)(),{agent:t,setAgent:l}=(0,c.useContext)(a.p),{data:i=[]}=(0,m.Z)(async()=>{let[,e]=await (0,h.Vx)((0,h.H4)());return null!=e?e:[]});return(0,n.jsx)(v.default,{className:"w-60",value:t,placeholder:e("Select_Plugins"),options:i.map(e=>({label:e.app_name,value:e.app_code})),allowClear:!0,onChange:e=>{null==l||l(e)}})},x=l(29158),y=l(49591),g=l(88484),j=l(45360),w=l(83062),b=l(23799),_=l(14726),N=function(e){var t;let{convUid:l,chatMode:i,onComplete:r,...s}=e,[o,d]=(0,c.useState)(!1),[u,m]=j.ZP.useMessage(),[v,f]=(0,c.useState)([]),[p,N]=(0,c.useState)(),{model:C}=(0,c.useContext)(a.p),$=async e=>{var t;if(!e){j.ZP.error("Please select the *.(csv|xlsx|xls) file");return}if(!/\.(csv|xlsx|xls)$/.test(null!==(t=e.file.name)&&void 0!==t?t:"")){j.ZP.error("File type must be csv, xlsx or xls");return}f([e.file])},Z=async()=>{d(!0);try{let e=new FormData;e.append("doc_file",v[0]),u.open({content:"Uploading ".concat(v[0].name),type:"loading",duration:0});let[t]=await (0,h.Vx)((0,h.qn)({convUid:l,chatMode:i,data:e,model:C,config:{timeout:36e5,onUploadProgress:e=>{let t=Math.ceil(e.loaded/(e.total||0)*100);N(t)}}}));if(t)return;j.ZP.success("success"),null==r||r()}catch(e){j.ZP.error((null==e?void 0:e.message)||"Upload Error")}finally{d(!1),u.destroy()}};return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"flex items-start gap-2",children:[m,(0,n.jsx)(w.Z,{placement:"bottom",title:"File cannot be changed after upload",children:(0,n.jsx)(b.default,{disabled:o,className:"mr-1",beforeUpload:()=>!1,fileList:v,name:"file",accept:".csv,.xlsx,.xls",multiple:!1,onChange:$,showUploadList:{showDownloadIcon:!1,showPreviewIcon:!1,showRemoveIcon:!1},itemRender:()=>(0,n.jsx)(n.Fragment,{}),...s,children:(0,n.jsx)(_.ZP,{className:"flex justify-center items-center",type:"primary",disabled:o,icon:(0,n.jsx)(y.Z,{}),children:"Select File"})})}),(0,n.jsx)(_.ZP,{type:"primary",loading:o,className:"flex justify-center items-center",disabled:!v.length,icon:(0,n.jsx)(g.Z,{}),onClick:Z,children:o?100===p?"Analysis":"Uploading":"Upload"}),!!v.length&&(0,n.jsxs)("div",{className:"mt-2 text-gray-500 text-sm flex items-center",onClick:()=>f([]),children:[(0,n.jsx)(x.Z,{className:"mr-2"}),(0,n.jsx)("span",{children:null===(t=v[0])||void 0===t?void 0:t.name})]})]})})},C=function(e){let{onComplete:t}=e,{currentDialogue:l,scene:i,chatId:r}=(0,c.useContext)(a.p);return"chat_excel"!==i?null:(0,n.jsx)("div",{className:"max-w-md h-full relative",children:l?(0,n.jsxs)("div",{className:"flex h-8 overflow-hidden rounded",children:[(0,n.jsx)("div",{className:"flex items-center justify-center px-2 bg-gray-600 text-lg",children:(0,n.jsx)(x.Z,{className:"text-white"})}),(0,n.jsx)("div",{className:"flex items-center justify-center px-3 bg-gray-100 text-xs rounded-tr rounded-br dark:text-gray-800 truncate",children:l.select_param})]}):(0,n.jsx)(N,{convUid:r,chatMode:i,onComplete:t})})},$=l(98978),Z=l(62418),k=l(2093),S=function(){let{scene:e,dbParam:t,setDbParam:l}=(0,c.useContext)(a.p),[i,r]=(0,c.useState)([]);(0,k.Z)(async()=>{let[,t]=await (0,h.Vx)((0,h.vD)(e));r(null!=t?t:[])},[e]);let s=(0,c.useMemo)(()=>{var e;return null===(e=i.map)||void 0===e?void 0:e.call(i,e=>({name:e.param,...Z.S$[e.type]}))},[i]);return((0,c.useEffect)(()=>{(null==s?void 0:s.length)&&!t&&l(s[0].name)},[s,l,t]),null==s?void 0:s.length)?(0,n.jsx)(v.default,{value:t,className:"w-36",onChange:e=>{l(e)},children:s.map(e=>(0,n.jsxs)(v.default.Option,{children:[(0,n.jsx)($.Z,{width:24,height:24,src:e.icon,label:e.label,className:"w-[1.5em] h-[1.5em] mr-1 inline-block mt-[-4px]"}),e.name]},e.name))}):null},O=function(e){let{refreshHistory:t,modelChange:l}=e,{scene:r,refreshDialogList:s}=(0,c.useContext)(a.p);return(0,n.jsxs)("div",{className:"w-full py-2 px-4 md:px-4 flex flex-wrap items-center justify-center gap-1 md:gap-4",children:[(0,n.jsx)(i.Z,{onChange:l}),(0,n.jsx)(S,{}),"chat_excel"===r&&(0,n.jsx)(C,{onComplete:()=>{null==s||s(),null==t||t()}}),"chat_agent"===r&&(0,n.jsx)(p,{}),(0,n.jsx)(u,{})]})}},81799:function(e,t,l){"use strict";l.d(t,{A:function(){return h}});var n=l(85893),a=l(41468),i=l(19284),r=l(34041),s=l(25675),o=l.n(s),d=l(67294),c=l(67421);let u="/models/huggingface.svg";function h(e,t){var l,a;let{width:r,height:s}=t||{};return e?(0,n.jsx)(o(),{className:"rounded-full border border-gray-200 object-contain bg-white inline-block",width:r||24,height:s||24,src:(null===(l=i.Hf[e])||void 0===l?void 0:l.icon)||u,alt:"llm"},(null===(a=i.Hf[e])||void 0===a?void 0:a.icon)||u):null}t.Z=function(e){let{onChange:t}=e,{t:l}=(0,c.$G)(),{modelList:s,model:o}=(0,d.useContext)(a.p);return!s||s.length<=0?null:(0,n.jsx)(r.default,{value:o,placeholder:l("choose_model"),className:"w-52",onChange:e=>{null==t||t(e)},children:s.map(e=>{var t;return(0,n.jsx)(r.default.Option,{children:(0,n.jsxs)("div",{className:"flex items-center",children:[h(e),(0,n.jsx)("span",{className:"ml-2",children:(null===(t=i.Hf[e])||void 0===t?void 0:t.label)||e})]})},e)})})}},91085:function(e,t,l){"use strict";var n=l(85893),a=l(32983),i=l(14726),r=l(93967),s=l.n(r),o=l(67421);t.Z=function(e){let{className:t,error:l,description:r,refresh:d}=e,{t:c}=(0,o.$G)();return(0,n.jsx)(a.Z,{image:"/empty.png",imageStyle:{width:320,height:196,margin:"0 auto",maxWidth:"100%",maxHeight:"100%"},className:s()("flex items-center justify-center flex-col h-full w-full",t),description:l?(0,n.jsx)(i.ZP,{type:"primary",onClick:d,children:c("try_again")}):null!=r?r:c("no_data")})}},30119:function(e,t,l){"use strict";l.d(t,{Tk:function(){return c},PR:function(){return u}});var n,a=l(62418),i=l(45360);l(96486);var r=l(87066),s=l(83454);let o=r.default.create({baseURL:null!==(n=s.env.API_BASE_URL)&&void 0!==n?n:""});o.defaults.timeout=1e4,o.interceptors.response.use(e=>e.data,e=>Promise.reject(e));let d={"content-type":"application/json","User-Id":(0,a.n5)()},c=(e,t)=>{if(t){let l=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");l&&(e+="?".concat(l))}return o.get("/api"+e,{headers:d}).then(e=>e).catch(e=>{i.ZP.error(e),Promise.reject(e)})},u=(e,t)=>o.post(e,t,{headers:d}).then(e=>e).catch(e=>{i.ZP.error(e),Promise.reject(e)})},23293:function(){},36459:function(e,t,l){"use strict";function n(e){if(null==e)throw TypeError("Cannot destructure "+e)}l.d(t,{Z:function(){return n}})}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4451],{96991:function(e,t,l){"use strict";l.d(t,{Z:function(){return s}});var n=l(87462),a=l(67294),i={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"},r=l(13401),s=a.forwardRef(function(e,t){return a.createElement(r.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},36986:function(e,t,l){"use strict";l.d(t,{Z:function(){return s}});var n=l(87462),a=l(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-12-12-28.3-18.7-45.3-18.7H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 176h256v112H384V176zm128 554c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144zm0-224c-44.2 0-80 35.8-80 80s35.8 80 80 80 80-35.8 80-80-35.8-80-80-80z"}}]},name:"save",theme:"filled"},r=l(13401),s=a.forwardRef(function(e,t){return a.createElement(r.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},49591:function(e,t,l){"use strict";l.d(t,{Z:function(){return s}});var n=l(87462),a=l(67294),i={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"},r=l(13401),s=a.forwardRef(function(e,t){return a.createElement(r.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},88484:function(e,t,l){"use strict";l.d(t,{Z:function(){return s}});var n=l(87462),a=l(67294),i={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"},r=l(13401),s=a.forwardRef(function(e,t){return a.createElement(r.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},99134:function(e,t,l){"use strict";var n=l(67294);let a=(0,n.createContext)({});t.Z=a},21584:function(e,t,l){"use strict";var n=l(67294),a=l(93967),i=l.n(a),r=l(53124),s=l(99134),o=l(6999),d=function(e,t){var l={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(l[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(l[n[a]]=e[n[a]]);return l};function c(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}let u=["xs","sm","md","lg","xl","xxl"],h=n.forwardRef((e,t)=>{let{getPrefixCls:l,direction:a}=n.useContext(r.E_),{gutter:h,wrap:m}=n.useContext(s.Z),{prefixCls:v,span:f,order:p,offset:x,push:y,pull:g,className:j,children:w,flex:b,style:_}=e,N=d(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),C=l("col",v),[$,Z,k]=(0,o.cG)(C),S={},O={};u.forEach(t=>{let l={},n=e[t];"number"==typeof n?l.span=n:"object"==typeof n&&(l=n||{}),delete N[t],O=Object.assign(Object.assign({},O),{[`${C}-${t}-${l.span}`]:void 0!==l.span,[`${C}-${t}-order-${l.order}`]:l.order||0===l.order,[`${C}-${t}-offset-${l.offset}`]:l.offset||0===l.offset,[`${C}-${t}-push-${l.push}`]:l.push||0===l.push,[`${C}-${t}-pull-${l.pull}`]:l.pull||0===l.pull,[`${C}-rtl`]:"rtl"===a}),l.flex&&(O[`${C}-${t}-flex`]=!0,S[`--${C}-${t}-flex`]=c(l.flex))});let E=i()(C,{[`${C}-${f}`]:void 0!==f,[`${C}-order-${p}`]:p,[`${C}-offset-${x}`]:x,[`${C}-push-${y}`]:y,[`${C}-pull-${g}`]:g},j,O,Z,k),P={};if(h&&h[0]>0){let e=h[0]/2;P.paddingLeft=e,P.paddingRight=e}return b&&(P.flex=c(b),!1!==m||P.minWidth||(P.minWidth=0)),$(n.createElement("div",Object.assign({},N,{style:Object.assign(Object.assign(Object.assign({},P),_),S),className:E,ref:t}),w))});t.Z=h},92820:function(e,t,l){"use strict";var n=l(67294),a=l(93967),i=l.n(a),r=l(74443),s=l(53124),o=l(99134),d=l(6999),c=function(e,t){var l={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(l[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(l[n[a]]=e[n[a]]);return l};function u(e,t){let[l,a]=n.useState("string"==typeof e?e:""),i=()=>{if("string"==typeof e&&a(e),"object"==typeof e)for(let l=0;l{i()},[JSON.stringify(e),t]),l}let h=n.forwardRef((e,t)=>{let{prefixCls:l,justify:a,align:h,className:m,style:v,children:f,gutter:p=0,wrap:x}=e,y=c(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:g,direction:j}=n.useContext(s.E_),[w,b]=n.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[_,N]=n.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),C=u(h,_),$=u(a,_),Z=n.useRef(p),k=(0,r.ZP)();n.useEffect(()=>{let e=k.subscribe(e=>{N(e);let t=Z.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&b(e)});return()=>k.unsubscribe(e)},[]);let S=g("row",l),[O,E,P]=(0,d.VM)(S),M=(()=>{let e=[void 0,void 0],t=Array.isArray(p)?p:[p,void 0];return t.forEach((t,l)=>{if("object"==typeof t)for(let n=0;n0?-(M[0]/2):void 0;I&&(V.marginLeft=I,V.marginRight=I);let[R,T]=M;V.rowGap=T;let D=n.useMemo(()=>({gutter:[R,T],wrap:x}),[R,T,x]);return O(n.createElement(o.Z.Provider,{value:D},n.createElement("div",Object.assign({},y,{className:z,style:Object.assign(Object.assign({},V),v),ref:t}),f)))});t.Z=h},6999:function(e,t,l){"use strict";l.d(t,{VM:function(){return c},cG:function(){return u}});var n=l(25446),a=l(83559),i=l(83262);let r=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},s=(e,t)=>{let{prefixCls:l,componentCls:n,gridColumns:a}=e,i={};for(let e=a;e>=0;e--)0===e?(i[`${n}${t}-${e}`]={display:"none"},i[`${n}-push-${e}`]={insetInlineStart:"auto"},i[`${n}-pull-${e}`]={insetInlineEnd:"auto"},i[`${n}${t}-push-${e}`]={insetInlineStart:"auto"},i[`${n}${t}-pull-${e}`]={insetInlineEnd:"auto"},i[`${n}${t}-offset-${e}`]={marginInlineStart:0},i[`${n}${t}-order-${e}`]={order:0}):(i[`${n}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/a*100}%`,maxWidth:`${e/a*100}%`}],i[`${n}${t}-push-${e}`]={insetInlineStart:`${e/a*100}%`},i[`${n}${t}-pull-${e}`]={insetInlineEnd:`${e/a*100}%`},i[`${n}${t}-offset-${e}`]={marginInlineStart:`${e/a*100}%`},i[`${n}${t}-order-${e}`]={order:e});return i[`${n}${t}-flex`]={flex:`var(--${l}${t}-flex)`},i},o=(e,t)=>s(e,t),d=(e,t,l)=>({[`@media (min-width: ${(0,n.bf)(t)})`]:Object.assign({},o(e,l))}),c=(0,a.I$)("Grid",e=>{let{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},()=>({})),u=(0,a.I$)("Grid",e=>{let t=(0,i.IX)(e,{gridColumns:24}),l={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[r(t),o(t,""),o(t,"-xs"),Object.keys(l).map(e=>d(t,l[e],e)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]},()=>({}))},21332:function(e,t,l){"use strict";l.d(t,{_:function(){return V},a:function(){return M}});var n=l(85893),a=l(41468),i=l(64371),r=l(23430),s=l(32408),o=l(34041),d=l(71230),c=l(15746),u=l(42075),h=l(83062),m=l(14726),v=l(32983),f=l(96486),p=l(67294);let x=e=>{if(!e)return;let t=e.getContainer(),l=t.getElementsByTagName("canvas")[0];return l};var y=l(64352),g=l(8625);let j=e=>{let{charts:t,scopeOfCharts:l,ruleConfig:n}=e,a={};if(null==t||t.forEach(e=>{if(e.chartKnowledge.toSpec){let t=e.chartKnowledge.toSpec;e.chartKnowledge.toSpec=(e,l)=>({...t(e,l),dataProps:l})}else e.chartKnowledge.toSpec=(e,t)=>({dataProps:t});a[e.chartType]=e.chartKnowledge}),(null==l?void 0:l.exclude)&&l.exclude.forEach(e=>{Object.keys(a).includes(e)&&delete a[e]}),null==l?void 0:l.include){let e=l.include;Object.keys(a).forEach(t=>{e.includes(t)||delete a[t]})}let i={...l,custom:a},r={...n},s=new y.w({ckbCfg:i,ruleCfg:r});return s},w=e=>{var t;let{data:l,dataMetaMap:n,myChartAdvisor:a}=e,i=n?Object.keys(n).map(e=>({name:e,...n[e]})):null,r=new g.Z(l).info(),s=(0,f.size)(r)>2?null==r?void 0:r.filter(e=>"string"!==e.recommendation&&"date"!==e.recommendation||e.distinct&&e.distinct>1):r,o=null==a?void 0:a.adviseWithLog({data:l,dataProps:i,fields:null==s?void 0:s.map(e=>e.name)});return null!==(t=null==o?void 0:o.advices)&&void 0!==t?t:[]};function b(e,t){return t.every(t=>e.includes(t))}function _(e,t){let l=t.find(t=>t.name===e);return(null==l?void 0:l.recommendation)==="date"?t=>new Date(t[e]):e}function N(e){return e.find(e=>{var t;return e.levelOfMeasurements&&(t=e.levelOfMeasurements,["Time","Ordinal"].some(e=>t.includes(e)))})}function C(e){return e.find(e=>e.levelOfMeasurements&&b(e.levelOfMeasurements,["Nominal"]))}let $=e=>{let{data:t,xField:l}=e,n=(0,f.uniq)(t.map(e=>e[l]));return n.length<=1},Z=(e,t,l)=>{let{field4Split:n,field4X:a}=l;if((null==n?void 0:n.name)&&(null==a?void 0:a.name)){let l=e[n.name],i=t.filter(e=>n.name&&e[n.name]===l);return $({data:i,xField:a.name})?5:void 0}return(null==a?void 0:a.name)&&$({data:t,xField:a.name})?5:void 0},k=e=>{let{data:t,chartType:l,xField:n}=e,a=(0,f.cloneDeep)(t);try{if(l.includes("line")&&(null==n?void 0:n.name)&&"date"===n.recommendation)return a.sort((e,t)=>new Date(e[n.name]).getTime()-new Date(t[n.name]).getTime()),a;l.includes("line")&&(null==n?void 0:n.name)&&["float","integer"].includes(n.recommendation)&&a.sort((e,t)=>e[n.name]-t[n.name])}catch(e){console.error(e)}return a},S=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.map(e=>{let l={};return Object.keys(e).forEach(n=>{l[n]=e[n]===t?null:e[n]}),l})},O="multi_line_chart",E="multi_measure_line_chart",P=[{chartType:"multi_line_chart",chartKnowledge:{id:O,name:"multi_line_chart",alias:["multi_line_chart"],family:["LineCharts"],def:"multi_line_chart uses lines with segments to show changes in data in a ordinal dimension",purpose:["Comparison","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:1,maxQty:"*",fieldConditions:["Interval"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Direction","Position"],recRate:"Recommended",toSpec:(e,t)=>{var l,n;let a=N(t),i=C(t),r=null!==(l=null!=a?a:i)&&void 0!==l?l:t[0],s=t.filter(e=>e.name!==(null==r?void 0:r.name)),o=null!==(n=s.filter(e=>e.levelOfMeasurements&&b(e.levelOfMeasurements,["Interval"])))&&void 0!==n?n:[s[0]],d=s.filter(e=>!o.find(t=>t.name===e.name)).find(e=>e.levelOfMeasurements&&b(e.levelOfMeasurements,["Nominal"]));if(!r||!o)return null;let c={type:"view",autoFit:!0,data:k({data:e,chartType:O,xField:r}),children:[]};return o.forEach(l=>{let n={type:"line",encode:{x:_(r.name,t),y:l.name,size:t=>Z(t,e,{field4Split:d,field4X:r})},legend:{size:!1}};d&&(n.encode.color=d.name),c.children.push(n)}),c}},chineseName:"折线图"},{chartType:"multi_measure_column_chart",chartKnowledge:{id:"multi_measure_column_chart",name:"multi_measure_column_chart",alias:["multi_measure_column_chart"],family:["ColumnCharts"],def:"multi_measure_column_chart uses lines with segments to show changes in data in a ordinal dimension",purpose:["Comparison","Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Direction","Position"],recRate:"Recommended",toSpec:(e,t)=>{try{let l=null==t?void 0:t.filter(e=>b(e.levelOfMeasurements,["Interval"])),n=C(t),a=N(t),i=null!=n?n:a;if(!i||!l)return null;let r={type:"view",data:e,children:[]};return null==l||l.forEach(e=>{let t={type:"interval",encode:{x:i.name,y:e.name,color:()=>e.name,series:()=>e.name}};r.children.push(t)}),r}catch(e){return console.log(e),null}}},chineseName:"折线图"},{chartType:"multi_measure_line_chart",chartKnowledge:{id:E,name:"multi_measure_line_chart",alias:["multi_measure_line_chart"],family:["LineCharts"],def:"multi_measure_line_chart uses lines with segments to show changes in data in a ordinal dimension",purpose:["Comparison","Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Direction","Position"],recRate:"Recommended",toSpec:(e,t)=>{try{var l,n;let a=null!==(n=null!==(l=C(t))&&void 0!==l?l:N(t))&&void 0!==n?n:t[0],i=null==t?void 0:t.filter(e=>e.name!==(null==a?void 0:a.name)&&b(e.levelOfMeasurements,["Interval"]));if(!a||!i)return null;let r={type:"view",data:k({data:e,chartType:E,xField:a}),children:[]};return null==i||i.forEach(l=>{let n={type:"line",encode:{x:_(a.name,t),y:l.name,color:()=>l.name,series:()=>l.name,size:t=>Z(t,e,{field4X:a})},legend:{size:!1}};r.children.push(n)}),r}catch(e){return console.log(e),null}}},chineseName:"折线图"}],M=e=>"response_line_chart"===e?["multi_line_chart","multi_measure_line_chart"]:"response_bar_chart"===e?["multi_measure_column_chart"]:"response_pie_chart"===e?["pie_chart"]:"response_scatter_chart"===e?["scatter_plot"]:"response_area_chart"===e?["area_chart"]:"response_heatmap_chart"===e?["heatmap"]:[],{Option:z}=o.default,V=e=>{let{data:t,chartType:l,scopeOfCharts:y,ruleConfig:g}=e,b=S(t),{mode:_}=(0,p.useContext)(a.p),[N,C]=(0,p.useState)(),[$,Z]=(0,p.useState)([]),[O,E]=(0,p.useState)(),M=(0,p.useRef)();(0,p.useEffect)(()=>{C(j({charts:P,scopeOfCharts:{exclude:["area_chart","stacked_area_chart","percent_stacked_area_chart"]},ruleConfig:g}))},[g,y]);let V=e=>{if(!N)return[];let t=function(e){let{advices:t}=e;return t}({advices:e}),n=(0,f.uniq)((0,f.compact)((0,f.concat)(l,e.map(e=>e.type)))),a=n.map(e=>{let l=t.find(t=>t.type===e);if(l)return l;let n=N.dataAnalyzer.execute({data:b});if("data"in n){var a;let t=N.specGenerator.execute({data:n.data,dataProps:n.dataProps,chartTypeRecommendations:[{chartType:e,score:1}]});if("advices"in t)return null===(a=t.advices)||void 0===a?void 0:a[0]}}).filter(e=>null==e?void 0:e.spec);return a};(0,p.useEffect)(()=>{if(b&&N){var e;let t=w({data:b,myChartAdvisor:N}),l=V(t);Z(l),E(null===(e=l[0])||void 0===e?void 0:e.type)}},[JSON.stringify(b),N,l]);let I=(0,p.useMemo)(()=>{if((null==$?void 0:$.length)>0){var e,t,l,a;let i=null!=O?O:$[0].type,r=null!==(t=null===(e=null==$?void 0:$.find(e=>e.type===i))||void 0===e?void 0:e.spec)&&void 0!==t?t:void 0;if(r){if(r.data&&["line_chart","step_line_chart"].includes(i)){let e=null==N?void 0:N.dataAnalyzer.execute({data:b});e&&"dataProps"in e&&(r.data=k({data:r.data,xField:null===(a=e.dataProps)||void 0===a?void 0:a.find(e=>"date"===e.recommendation),chartType:i}))}return"pie_chart"===i&&(null==r?void 0:null===(l=r.encode)||void 0===l?void 0:l.color)&&(r.tooltip={title:{field:r.encode.color}}),(0,n.jsx)(s.k,{options:{...r,autoFit:!0,theme:_,height:300},ref:M},i)}}},[$,_,O]);return O?(0,n.jsxs)("div",{children:[(0,n.jsxs)(d.Z,{justify:"space-between",className:"mb-2",children:[(0,n.jsx)(c.Z,{children:(0,n.jsxs)(u.Z,{children:[(0,n.jsx)("span",{children:i.Z.t("Advices")}),(0,n.jsx)(o.default,{className:"w-52",value:O,placeholder:"Chart Switcher",onChange:e=>E(e),size:"small",children:null==$?void 0:$.map(e=>{let t=i.Z.t(e.type);return(0,n.jsx)(z,{value:e.type,children:(0,n.jsx)(h.Z,{title:t,placement:"right",children:(0,n.jsx)("div",{children:t})})},e.type)})})]})}),(0,n.jsx)(c.Z,{children:(0,n.jsx)(h.Z,{title:i.Z.t("Download"),children:(0,n.jsx)(m.ZP,{onClick:()=>(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Chart",l=document.createElement("a"),n="".concat(t,".png");setTimeout(()=>{let t=function(e){let t=x(e);if(t){let e=t.toDataURL("image/png");return e}}(e);if(t){l.addEventListener("click",()=>{l.download=n,l.href=t});let e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),l.dispatchEvent(e)}},16)})(M.current,i.Z.t(O)),icon:(0,n.jsx)(r.Z,{}),type:"text"})})})]}),(0,n.jsx)("div",{className:"flex",children:I})]}):(0,n.jsx)(v.Z,{image:v.Z.PRESENTED_IMAGE_SIMPLE,description:"暂无合适的可视化视图"})}},39156:function(e,t,l){"use strict";l.d(t,{_z:function(){return f._},ZP:function(){return p},aG:function(){return f.a}});var n=l(85893),a=l(41118),i=l(30208),r=l(40911),s=l(67294),o=l(41468),d=l(32408);function c(e){let{chart:t}=e,{mode:l}=(0,s.useContext)(o.p);return(0,n.jsx)("div",{className:"flex-1 min-w-0 p-4 bg-white dark:bg-theme-dark-container rounded",children:(0,n.jsxs)("div",{className:"h-full",children:[(0,n.jsx)("div",{className:"mb-2",children:t.chart_name}),(0,n.jsx)("div",{className:"opacity-80 text-sm mb-2",children:t.chart_desc}),(0,n.jsx)("div",{className:"h-[300px]",children:(0,n.jsx)(d.k,{style:{height:"100%"},options:{autoFit:!0,theme:l,type:"interval",data:t.values,encode:{x:"name",y:"value",color:"type"},axis:{x:{labelAutoRotate:!1}}}})})]})})}function u(e){let{chart:t}=e,{mode:l}=(0,s.useContext)(o.p);return(0,n.jsx)("div",{className:"flex-1 min-w-0 p-4 bg-white dark:bg-theme-dark-container rounded",children:(0,n.jsxs)("div",{className:"h-full",children:[(0,n.jsx)("div",{className:"mb-2",children:t.chart_name}),(0,n.jsx)("div",{className:"opacity-80 text-sm mb-2",children:t.chart_desc}),(0,n.jsx)("div",{className:"h-[300px]",children:(0,n.jsx)(d.k,{style:{height:"100%"},options:{autoFit:!0,theme:l,type:"view",data:t.values,children:[{type:"line",encode:{x:"name",y:"value",color:"type",shape:"smooth"}},{type:"area",encode:{x:"name",y:"value",color:"type",shape:"smooth"},legend:!1,style:{fillOpacity:.15}}],axis:{x:{labelAutoRotate:!1}}}})})]})})}var h=l(61685),m=l(96486);function v(e){var t,l;let{chart:a}=e,i=(0,m.groupBy)(a.values,"type");return(0,n.jsx)("div",{className:"flex-1 min-w-0 p-4 bg-white dark:bg-theme-dark-container rounded",children:(0,n.jsxs)("div",{className:"h-full",children:[(0,n.jsx)("div",{className:"mb-2",children:a.chart_name}),(0,n.jsx)("div",{className:"opacity-80 text-sm mb-2",children:a.chart_desc}),(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsxs)(h.Z,{"aria-label":"basic table",stripe:"odd",hoverRow:!0,borderAxis:"bothBetween",children:[(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{children:Object.keys(i).map(e=>(0,n.jsx)("th",{children:e},e))})}),(0,n.jsx)("tbody",{children:null===(t=Object.values(i))||void 0===t?void 0:null===(l=t[0])||void 0===l?void 0:l.map((e,t)=>{var l;return(0,n.jsx)("tr",{children:null===(l=Object.keys(i))||void 0===l?void 0:l.map(e=>{var l;return(0,n.jsx)("td",{children:(null==i?void 0:null===(l=i[e])||void 0===l?void 0:l[t].value)||""},e)})},t)})})]})})]})})}var f=l(21332),p=function(e){let{chartsData:t}=e,l=(0,s.useMemo)(()=>{if(t){let e=[],l=null==t?void 0:t.filter(e=>"IndicatorValue"===e.chart_type);l.length>0&&e.push({charts:l,type:"IndicatorValue"});let n=null==t?void 0:t.filter(e=>"IndicatorValue"!==e.chart_type),a=n.length,i=0;return[[0],[1],[2],[1,2],[1,3],[2,1,2],[2,1,3],[3,1,3],[3,2,3]][a].forEach(t=>{if(t>0){let l=n.slice(i,i+t);i+=t,e.push({charts:l})}}),e}},[t]);return(0,n.jsx)("div",{className:"flex flex-col gap-3",children:null==l?void 0:l.map((e,t)=>(0,n.jsx)("div",{className:"".concat((null==e?void 0:e.type)!=="IndicatorValue"?"flex gap-3":""),children:e.charts.map(e=>"IndicatorValue"===e.chart_type||"IndicatorValue"===e.type?(0,n.jsx)("div",{className:"flex flex-row gap-3",children:e.values.map(e=>(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(a.Z,{sx:{background:"transparent"},children:(0,n.jsxs)(i.Z,{className:"justify-around",children:[(0,n.jsx)(r.ZP,{gutterBottom:!0,component:"div",children:e.name}),(0,n.jsx)(r.ZP,{children:e.value})]})})},e.name))},e.chart_uid):"LineChart"===e.chart_type||"LineChart"===e.type?(0,n.jsx)(u,{chart:e},e.chart_uid):"BarChart"===e.chart_type||"BarChart"===e.type?(0,n.jsx)(c,{chart:e},e.chart_uid):"Table"===e.chart_type||"TableChartData"===e.type?(0,n.jsx)(v,{chart:e},e.chart_uid):void 0)},"chart_row_".concat(t)))})}},96307:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return P}});var n=l(85893),a=l(30119),i=l(16165),r=l(65654),s=l(25278),o=l(39773),d=l(83062),c=l(34041),u=l(20863),h=l(14726),m=l(39332),v=l(67294),f=l(39156),p=l(34625),x=l(74434),y=function(){return(0,n.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",children:(0,n.jsx)("path",{d:"M161.05472 919.3472h701.9008a58.71616 58.71616 0 0 0 58.65472-58.65472V180.40832a58.71616 58.71616 0 0 0-58.65472-58.65472H161.09568a58.03008 58.03008 0 0 0-41.4208 17.08032A58.1632 58.1632 0 0 0 102.4 180.30592v680.38656a58.64448 58.64448 0 0 0 58.65472 58.65472z m385.15712-589.568V190.08512h306.95424v660.93056H546.21184V329.7792zM170.83392 190.08512h306.95424v660.93056H170.83392V190.08512z"})})},g=function(){return(0,n.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",children:(0,n.jsx)("path",{d:"M171.85792 110.9504a58.65472 58.65472 0 0 0-58.65472 58.65472v701.9008a58.7264 58.7264 0 0 0 58.65472 58.65472h680.28416a58.7264 58.7264 0 0 0 58.65472-58.65472V169.64608a57.98912 57.98912 0 0 0-17.08032-41.41056 58.1632 58.1632 0 0 0-41.472-17.27488H171.85792z m670.60736 750.77632H181.53472V554.77248h660.93056v306.95424z m0-375.38816H181.53472V179.38432h660.93056v306.95424z"})})},j=l(6171),w=l(18073),b=l(14313),_=l(36986),N=l(93967),C=l.n(N),$=l(91085);function Z(){return(0,n.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",children:[(0,n.jsx)("path",{d:"M512 64c-247.424 0-448 62.72-448 140.032v112c0 77.312 200.576 139.968 448 139.968s448-62.72 448-140.032v-112C960 126.72 759.424 64 512 64z m0 728c-247.424 0-448-62.72-448-140.032v168.064C64 897.28 264.576 960 512 960s448-62.72 448-140.032v-167.936c0 77.312-200.576 139.968-448 139.968z",fill:"#3699FF"}),(0,n.jsx)("path",{d:"M512 540.032c-247.424 0-448-62.72-448-140.032v168c0 77.312 200.576 140.032 448 140.032s448-62.72 448-140.032V400c0 77.312-200.576 140.032-448 140.032z",fill:"#3699FF",opacity:".32"})]})}function k(){return(0,n.jsx)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",children:(0,n.jsx)("path",{d:"M39.385 204.83h346.571L252.054 976.74l-23.63 39.383h259.929v-31.506L614.379 204.83H771.91S960.951 220.584 984.581 0.038H236.3S94.52-7.84 39.384 204.83",fill:"#1296db"})})}function S(){return(0,n.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",children:[(0,n.jsx)("path",{d:"M149.2 99.7h726.6c27.7 0 50.1 22.4 50.1 50.1V336H99.1V149.8c0-27.6 22.4-50.1 50.1-50.1z",fill:"#1ECD93"}),(0,n.jsx)("path",{d:"M99.1 395h236.2v236.3H99.1zM99.1 690.3h236.2v236.2H149.2c-27.7 0-50.1-22.4-50.1-50.1V690.3zM394.4 395h236.2v236.3H394.4z",fill:"#1ECD93",fillOpacity:".5"}),(0,n.jsx)("path",{d:"M394.4 690.3h236.2v236.3H394.4z",fill:"#A1E6C9","data-spm-anchor-id":"a313x.search_index.0.i13.27343a81CqKUWU"}),(0,n.jsx)("path",{d:"M689.7 395h236.2v236.3H689.7z",fill:"#1ECD93",fillOpacity:".5"}),(0,n.jsx)("path",{d:"M689.7 690.3h236.2v186.1c0 27.7-22.4 50.1-50.1 50.1H689.7V690.3z",fill:"#A1E6C9","data-spm-anchor-id":"a313x.search_index.0.i17.27343a81CqKUWU"})]})}let{Search:O}=s.default;function E(e){let{layout:t="LR",editorValue:l,chartData:a,tableData:i,tables:r,handleChange:s}=e,d=(0,v.useMemo)(()=>a?(0,n.jsx)("div",{className:"flex-1 overflow-auto p-2",style:{flexShrink:0,overflow:"hidden"},children:(0,n.jsx)(f.ZP,{chartsData:[a]})}):null,[a]),{columns:c,dataSource:u}=(0,v.useMemo)(()=>{let{columns:e=[],values:t=[]}=null!=i?i:{},l=e.map(e=>({key:e,dataIndex:e,title:e})),n=t.map(t=>t.reduce((t,l,n)=>(t[e[n]]=l,t),{}));return{columns:l,dataSource:n}},[i]),h=(0,v.useMemo)(()=>{let e={},t=null==r?void 0:r.data,l=null==t?void 0:t.children;return null==l||l.forEach(t=>{e[t.title]=t.children.map(e=>({columnName:e.title,columnType:e.type}))}),{getTableList:async e=>e&&e!==(null==t?void 0:t.title)?[]:(null==l?void 0:l.map(e=>e.title))||[],getTableColumns:async t=>e[t]||[],getSchemaList:async()=>(null==t?void 0:t.title)?[null==t?void 0:t.title]:[]}},[r]);return(0,n.jsxs)("div",{className:C()("flex w-full flex-1 h-full gap-2 overflow-hidden",{"flex-col":"TB"===t,"flex-row":"LR"===t}),children:[(0,n.jsx)("div",{className:"flex-1 flex overflow-hidden rounded",children:(0,n.jsx)(x.Z,{value:(null==l?void 0:l.sql)||"",language:"mysql",onChange:s,thoughts:(null==l?void 0:l.thoughts)||"",session:h})}),(0,n.jsxs)("div",{className:"flex-1 h-full overflow-auto bg-white dark:bg-theme-dark-container rounded p-4",children:[(null==i?void 0:i.values.length)?(0,n.jsx)(o.Z,{bordered:!0,scroll:{x:"auto"},rowKey:c[0].key,columns:c,dataSource:u}):(0,n.jsx)("div",{className:"h-full flex justify-center items-center",children:(0,n.jsx)($.Z,{})}),d]})]})}var P=function(){var e,t,l,s,o;let[f,x]=(0,v.useState)([]),[N,$]=(0,v.useState)(""),[P,M]=(0,v.useState)(),[z,V]=(0,v.useState)(!0),[I,R]=(0,v.useState)(),[T,D]=(0,v.useState)(),[H,L]=(0,v.useState)(),[q,A]=(0,v.useState)(),[B,F]=(0,v.useState)(),[U,Q]=(0,v.useState)(!1),[G,K]=(0,v.useState)("TB"),W=(0,m.useSearchParams)(),X=null==W?void 0:W.get("id"),J=null==W?void 0:W.get("scene"),{data:Y}=(0,r.Z)(async()=>await (0,a.Tk)("/v1/editor/sql/rounds",{con_uid:X}),{onSuccess:e=>{var t,l;let n=null==e?void 0:null===(t=e.data)||void 0===t?void 0:t[(null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.length)-1];n&&M(null==n?void 0:n.round)}}),{run:ee,loading:et}=(0,r.Z)(async()=>{var e,t;let l=null===(e=null==Y?void 0:null===(t=Y.data)||void 0===t?void 0:t.find(e=>e.round===P))||void 0===e?void 0:e.db_name;return await (0,a.PR)("/api/v1/editor/sql/run",{db_name:l,sql:null==H?void 0:H.sql})},{manual:!0,onSuccess:e=>{var t,l;A({columns:null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.colunms,values:null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.values})}}),{run:el,loading:en}=(0,r.Z)(async()=>{var e,t;let l=null===(e=null==Y?void 0:null===(t=Y.data)||void 0===t?void 0:t.find(e=>e.round===P))||void 0===e?void 0:e.db_name,n={db_name:l,sql:null==H?void 0:H.sql};return"chat_dashboard"===J&&(n.chart_type=null==H?void 0:H.showcase),await (0,a.PR)("/api/v1/editor/chart/run",n)},{manual:!0,ready:!!(null==H?void 0:H.sql),onSuccess:e=>{if(null==e?void 0:e.success){var t,l,n,a,i,r,s;A({columns:(null==e?void 0:null===(t=e.data)||void 0===t?void 0:null===(l=t.sql_data)||void 0===l?void 0:l.colunms)||[],values:(null==e?void 0:null===(n=e.data)||void 0===n?void 0:null===(a=n.sql_data)||void 0===a?void 0:a.values)||[]}),(null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.chart_values)?R({type:null==e?void 0:null===(r=e.data)||void 0===r?void 0:r.chart_type,values:null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.chart_values,title:null==H?void 0:H.title,description:null==H?void 0:H.thoughts}):R(void 0)}}}),{run:ea,loading:ei}=(0,r.Z)(async()=>{var e,t,l,n,i;let r=null===(e=null==Y?void 0:null===(t=Y.data)||void 0===t?void 0:t.find(e=>e.round===P))||void 0===e?void 0:e.db_name;return await (0,a.PR)("/api/v1/sql/editor/submit",{conv_uid:X,db_name:r,conv_round:P,old_sql:null==T?void 0:T.sql,old_speak:null==T?void 0:T.thoughts,new_sql:null==H?void 0:H.sql,new_speak:(null===(l=null==H?void 0:null===(n=H.thoughts)||void 0===n?void 0:n.match(/^\n--(.*)\n\n$/))||void 0===l?void 0:null===(i=l[1])||void 0===i?void 0:i.trim())||(null==H?void 0:H.thoughts)})},{manual:!0,onSuccess:e=>{(null==e?void 0:e.success)&&ee()}}),{run:er,loading:es}=(0,r.Z)(async()=>{var e,t,l,n,i,r;let s=null===(e=null==Y?void 0:null===(t=Y.data)||void 0===t?void 0:t.find(e=>e.round===P))||void 0===e?void 0:e.db_name;return await (0,a.PR)("/api/v1/chart/editor/submit",{conv_uid:X,chart_title:null==H?void 0:H.title,db_name:s,old_sql:null==T?void 0:null===(l=T[null!=B?B:0])||void 0===l?void 0:l.sql,new_chart_type:null==H?void 0:H.showcase,new_sql:null==H?void 0:H.sql,new_comment:(null===(n=null==H?void 0:null===(i=H.thoughts)||void 0===i?void 0:i.match(/^\n--(.*)\n\n$/))||void 0===n?void 0:null===(r=n[1])||void 0===r?void 0:r.trim())||(null==H?void 0:H.thoughts),gmt_create:new Date().getTime()})},{manual:!0,onSuccess:e=>{(null==e?void 0:e.success)&&el()}}),{data:eo}=(0,r.Z)(async()=>{var e,t;let l=null===(e=null==Y?void 0:null===(t=Y.data)||void 0===t?void 0:t.find(e=>e.round===P))||void 0===e?void 0:e.db_name;return await (0,a.Tk)("/v1/editor/db/tables",{db_name:l,page_index:1,page_size:200})},{ready:!!(null===(e=null==Y?void 0:null===(t=Y.data)||void 0===t?void 0:t.find(e=>e.round===P))||void 0===e?void 0:e.db_name),refreshDeps:[null===(l=null==Y?void 0:null===(s=Y.data)||void 0===s?void 0:s.find(e=>e.round===P))||void 0===l?void 0:l.db_name]}),{run:ed}=(0,r.Z)(async e=>await (0,a.Tk)("/v1/editor/sql",{con_uid:X,round:e}),{manual:!0,onSuccess:e=>{let t;try{if(Array.isArray(null==e?void 0:e.data))t=null==e?void 0:e.data,F(0);else if("string"==typeof(null==e?void 0:e.data)){let l=JSON.parse(null==e?void 0:e.data);t=l}else t=null==e?void 0:e.data}catch(e){console.log(e)}finally{D(t),Array.isArray(t)?L(null==t?void 0:t[Number(B||0)]):L(t)}}}),ec=(0,v.useMemo)(()=>{let e=(t,l)=>t.map(t=>{let a=t.title,i=a.indexOf(N),r=a.substring(0,i),s=a.slice(i+N.length),o=e=>{switch(e){case"db":return(0,n.jsx)(Z,{});case"table":return(0,n.jsx)(S,{});default:return(0,n.jsx)(k,{})}},c=i>-1?(0,n.jsx)(d.Z,{title:((null==t?void 0:t.comment)||(null==t?void 0:t.title))+((null==t?void 0:t.can_null)==="YES"?"(can null)":"(can't null)"),children:(0,n.jsxs)("div",{className:"flex items-center",children:[o(t.type),"\xa0\xa0\xa0",r,(0,n.jsx)("span",{className:"text-[#1677ff]",children:N}),s,"\xa0",(null==t?void 0:t.type)&&(0,n.jsx)("div",{className:"text-gray-400",children:null==t?void 0:t.type})]})}):(0,n.jsx)(d.Z,{title:((null==t?void 0:t.comment)||(null==t?void 0:t.title))+((null==t?void 0:t.can_null)==="YES"?"(can null)":"(can't null)"),children:(0,n.jsxs)("div",{className:"flex items-center",children:[o(t.type),"\xa0\xa0\xa0",a,"\xa0",(null==t?void 0:t.type)&&(0,n.jsx)("div",{className:"text-gray-400",children:null==t?void 0:t.type})]})});if(t.children){let n=l?String(l)+"_"+t.key:t.key;return{title:a,showTitle:c,key:n,children:e(t.children,n)}}return{title:a,showTitle:c,key:t.key}});return(null==eo?void 0:eo.data)?(x([null==eo?void 0:eo.data.key]),e([null==eo?void 0:eo.data])):[]},[N,eo]),eu=(0,v.useMemo)(()=>{let e=[],t=(l,n)=>{if(l&&!((null==l?void 0:l.length)<=0))for(let a=0;a{let l;for(let n=0;nt.key===e)?l=a.key:eh(e,a.children)&&(l=eh(e,a.children)))}return l};function em(e){let t;if(!e)return{sql:"",thoughts:""};let l=e&&e.match(/(--.*)?\n?([\s\S]*)/),n="";return l&&l.length>=3&&(n=l[1],t=l[2]),{sql:t,thoughts:n}}return(0,v.useEffect)(()=>{P&&ed(P)},[ed,P]),(0,v.useEffect)(()=>{T&&"chat_dashboard"===J&&B&&el()},[B,J,T,el]),(0,v.useEffect)(()=>{T&&"chat_dashboard"!==J&&ee()},[J,T,ee]),(0,n.jsxs)("div",{className:"flex flex-col w-full h-full overflow-hidden",children:[(0,n.jsx)(p.Z,{}),(0,n.jsxs)("div",{className:"relative flex flex-1 p-4 pt-0 overflow-hidden",children:[(0,n.jsxs)("div",{className:"relative flex overflow-hidden mr-4",children:[(0,n.jsx)("div",{className:C()("h-full relative transition-[width] overflow-hidden",{"w-0":U,"w-64":!U}),children:(0,n.jsxs)("div",{className:"relative w-64 h-full overflow-hidden flex flex-col rounded bg-white dark:bg-theme-dark-container p-4",children:[(0,n.jsx)(c.default,{size:"middle",className:"w-full mb-2",value:P,options:null==Y?void 0:null===(o=Y.data)||void 0===o?void 0:o.map(e=>({label:e.round_name,value:e.round})),onChange:e=>{M(e)}}),(0,n.jsx)(O,{className:"mb-2",placeholder:"Search",onChange:e=>{let{value:t}=e.target;if(null==eo?void 0:eo.data){if(t){let e=eu.map(e=>e.title.indexOf(t)>-1?eh(e.key,ec):null).filter((e,t,l)=>e&&l.indexOf(e)===t);x(e)}else x([]);$(t),V(!0)}}}),ec&&ec.length>0&&(0,n.jsx)("div",{className:"flex-1 overflow-y-auto",children:(0,n.jsx)(u.Z,{onExpand:e=>{x(e),V(!1)},expandedKeys:f,autoExpandParent:z,treeData:ec,fieldNames:{title:"showTitle"}})})]})}),(0,n.jsx)("div",{className:"absolute right-0 top-0 translate-x-full h-full flex items-center justify-center opacity-0 hover:opacity-100 group-hover/side:opacity-100 transition-opacity",children:(0,n.jsx)("div",{className:"bg-white w-4 h-10 flex items-center justify-center dark:bg-theme-dark-container rounded-tr rounded-br z-10 text-xs cursor-pointer shadow-[4px_0_10px_rgba(0,0,0,0.06)] text-opacity-80",onClick:()=>{Q(!U)},children:U?(0,n.jsx)(w.Z,{}):(0,n.jsx)(j.Z,{})})})]}),(0,n.jsxs)("div",{className:"flex flex-col flex-1 max-w-full overflow-hidden",children:[(0,n.jsxs)("div",{className:"mb-2 bg-white dark:bg-theme-dark-container p-2 flex justify-between items-center",children:[(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(h.ZP,{className:"text-xs rounded-none",size:"small",type:"primary",icon:(0,n.jsx)(b.Z,{}),loading:et||en,onClick:async()=>{"chat_dashboard"===J?el():ee()},children:"Run"}),(0,n.jsx)(h.ZP,{className:"text-xs rounded-none",type:"primary",size:"small",loading:ei||es,icon:(0,n.jsx)(_.Z,{}),onClick:async()=>{"chat_dashboard"===J?await er():await ea()},children:"Save"})]}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(i.Z,{className:C()("flex items-center justify-center w-6 h-6 text-lg rounded",{"bg-theme-primary bg-opacity-10":"TB"===G}),component:g,onClick:()=>{K("TB")}}),(0,n.jsx)(i.Z,{className:C()("flex items-center justify-center w-6 h-6 text-lg rounded",{"bg-theme-primary bg-opacity-10":"LR"===G}),component:y,onClick:()=>{K("LR")}})]})]}),Array.isArray(T)?(0,n.jsxs)("div",{className:"flex flex-col h-full overflow-hidden",children:[(0,n.jsx)("div",{className:"w-full whitespace-nowrap overflow-x-auto bg-white dark:bg-theme-dark-container mb-2 text-[0px]",children:T.map((e,t)=>(0,n.jsx)(d.Z,{className:"inline-block",title:e.title,children:(0,n.jsx)("div",{className:C()("max-w-[240px] px-3 h-10 text-ellipsis overflow-hidden whitespace-nowrap text-sm leading-10 cursor-pointer font-semibold hover:text-theme-primary transition-colors mr-2 last-of-type:mr-0",{"border-b-2 border-solid border-theme-primary text-theme-primary":B===t}),onClick:()=>{F(t),L(null==T?void 0:T[t])},children:e.title})},e.title))}),(0,n.jsx)("div",{className:"flex flex-1 overflow-hidden",children:T.map((e,t)=>(0,n.jsx)("div",{className:C()("w-full overflow-hidden",{hidden:t!==B,"block flex-1":t===B}),children:(0,n.jsx)(E,{layout:G,editorValue:e,handleChange:e=>{let{sql:t,thoughts:l}=em(e);L(e=>Object.assign({},e,{sql:t,thoughts:l}))},tableData:q,chartData:I})},e.title))})]}):(0,n.jsx)(E,{layout:G,editorValue:T,handleChange:e=>{let{sql:t,thoughts:l}=em(e);L(e=>Object.assign({},e,{sql:t,thoughts:l}))},tableData:q,chartData:void 0,tables:eo})]})]})]})}},34625:function(e,t,l){"use strict";l.d(t,{Z:function(){return O}});var n=l(85893),a=l(41468),i=l(81799),r=l(82353),s=l(16165),o=l(96991),d=l(78045),c=l(67294);function u(){let{isContract:e,setIsContract:t,scene:l}=(0,c.useContext)(a.p),i=l&&["chat_with_db_execute","chat_dashboard"].includes(l);return i?(0,n.jsxs)(d.ZP.Group,{value:e,defaultValue:!0,buttonStyle:"solid",onChange:()=>{t(!e)},children:[(0,n.jsxs)(d.ZP.Button,{value:!1,children:[(0,n.jsx)(s.Z,{component:r.ig,className:"mr-1"}),"Preview"]}),(0,n.jsxs)(d.ZP.Button,{value:!0,children:[(0,n.jsx)(o.Z,{className:"mr-1"}),"Editor"]})]}):null}l(23293);var h=l(76212),m=l(65654),v=l(34041),f=l(67421),p=function(){let{t:e}=(0,f.$G)(),{agent:t,setAgent:l}=(0,c.useContext)(a.p),{data:i=[]}=(0,m.Z)(async()=>{let[,e]=await (0,h.Vx)((0,h.H4)());return null!=e?e:[]});return(0,n.jsx)(v.default,{className:"w-60",value:t,placeholder:e("Select_Plugins"),options:i.map(e=>({label:e.app_name,value:e.app_code})),allowClear:!0,onChange:e=>{null==l||l(e)}})},x=l(29158),y=l(49591),g=l(88484),j=l(45360),w=l(83062),b=l(23799),_=l(14726),N=function(e){var t;let{convUid:l,chatMode:i,onComplete:r,...s}=e,[o,d]=(0,c.useState)(!1),[u,m]=j.ZP.useMessage(),[v,f]=(0,c.useState)([]),[p,N]=(0,c.useState)(),{model:C}=(0,c.useContext)(a.p),$=async e=>{var t;if(!e){j.ZP.error("Please select the *.(csv|xlsx|xls) file");return}if(!/\.(csv|xlsx|xls)$/.test(null!==(t=e.file.name)&&void 0!==t?t:"")){j.ZP.error("File type must be csv, xlsx or xls");return}f([e.file])},Z=async()=>{d(!0);try{let e=new FormData;e.append("doc_file",v[0]),u.open({content:"Uploading ".concat(v[0].name),type:"loading",duration:0});let[t]=await (0,h.Vx)((0,h.qn)({convUid:l,chatMode:i,data:e,model:C,config:{timeout:36e5,onUploadProgress:e=>{let t=Math.ceil(e.loaded/(e.total||0)*100);N(t)}}}));if(t)return;j.ZP.success("success"),null==r||r()}catch(e){j.ZP.error((null==e?void 0:e.message)||"Upload Error")}finally{d(!1),u.destroy()}};return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"flex items-start gap-2",children:[m,(0,n.jsx)(w.Z,{placement:"bottom",title:"File cannot be changed after upload",children:(0,n.jsx)(b.default,{disabled:o,className:"mr-1",beforeUpload:()=>!1,fileList:v,name:"file",accept:".csv,.xlsx,.xls",multiple:!1,onChange:$,showUploadList:{showDownloadIcon:!1,showPreviewIcon:!1,showRemoveIcon:!1},itemRender:()=>(0,n.jsx)(n.Fragment,{}),...s,children:(0,n.jsx)(_.ZP,{className:"flex justify-center items-center",type:"primary",disabled:o,icon:(0,n.jsx)(y.Z,{}),children:"Select File"})})}),(0,n.jsx)(_.ZP,{type:"primary",loading:o,className:"flex justify-center items-center",disabled:!v.length,icon:(0,n.jsx)(g.Z,{}),onClick:Z,children:o?100===p?"Analysis":"Uploading":"Upload"}),!!v.length&&(0,n.jsxs)("div",{className:"mt-2 text-gray-500 text-sm flex items-center",onClick:()=>f([]),children:[(0,n.jsx)(x.Z,{className:"mr-2"}),(0,n.jsx)("span",{children:null===(t=v[0])||void 0===t?void 0:t.name})]})]})})},C=function(e){let{onComplete:t}=e,{currentDialogue:l,scene:i,chatId:r}=(0,c.useContext)(a.p);return"chat_excel"!==i?null:(0,n.jsx)("div",{className:"max-w-md h-full relative",children:l?(0,n.jsxs)("div",{className:"flex h-8 overflow-hidden rounded",children:[(0,n.jsx)("div",{className:"flex items-center justify-center px-2 bg-gray-600 text-lg",children:(0,n.jsx)(x.Z,{className:"text-white"})}),(0,n.jsx)("div",{className:"flex items-center justify-center px-3 bg-gray-100 text-xs rounded-tr rounded-br dark:text-gray-800 truncate",children:l.select_param})]}):(0,n.jsx)(N,{convUid:r,chatMode:i,onComplete:t})})},$=l(98978),Z=l(62418),k=l(2093),S=function(){let{scene:e,dbParam:t,setDbParam:l}=(0,c.useContext)(a.p),[i,r]=(0,c.useState)([]);(0,k.Z)(async()=>{let[,t]=await (0,h.Vx)((0,h.vD)(e));r(null!=t?t:[])},[e]);let s=(0,c.useMemo)(()=>{var e;return null===(e=i.map)||void 0===e?void 0:e.call(i,e=>({name:e.param,...Z.S$[e.type]}))},[i]);return((0,c.useEffect)(()=>{(null==s?void 0:s.length)&&!t&&l(s[0].name)},[s,l,t]),null==s?void 0:s.length)?(0,n.jsx)(v.default,{value:t,className:"w-36",onChange:e=>{l(e)},children:s.map(e=>(0,n.jsxs)(v.default.Option,{children:[(0,n.jsx)($.Z,{width:24,height:24,src:e.icon,label:e.label,className:"w-[1.5em] h-[1.5em] mr-1 inline-block mt-[-4px]"}),e.name]},e.name))}):null},O=function(e){let{refreshHistory:t,modelChange:l}=e,{scene:r,refreshDialogList:s}=(0,c.useContext)(a.p);return(0,n.jsxs)("div",{className:"w-full py-2 px-4 md:px-4 flex flex-wrap items-center justify-center gap-1 md:gap-4",children:[(0,n.jsx)(i.Z,{onChange:l}),(0,n.jsx)(S,{}),"chat_excel"===r&&(0,n.jsx)(C,{onComplete:()=>{null==s||s(),null==t||t()}}),"chat_agent"===r&&(0,n.jsx)(p,{}),(0,n.jsx)(u,{})]})}},81799:function(e,t,l){"use strict";l.d(t,{A:function(){return h}});var n=l(85893),a=l(41468),i=l(19284),r=l(34041),s=l(25675),o=l.n(s),d=l(67294),c=l(67421);let u="/models/huggingface.svg";function h(e,t){var l,a;let{width:r,height:s}=t||{};return e?(0,n.jsx)(o(),{className:"rounded-full border border-gray-200 object-contain bg-white inline-block",width:r||24,height:s||24,src:(null===(l=i.Hf[e])||void 0===l?void 0:l.icon)||u,alt:"llm"},(null===(a=i.Hf[e])||void 0===a?void 0:a.icon)||u):null}t.Z=function(e){let{onChange:t}=e,{t:l}=(0,c.$G)(),{modelList:s,model:o}=(0,d.useContext)(a.p);return!s||s.length<=0?null:(0,n.jsx)(r.default,{value:o,placeholder:l("choose_model"),className:"w-52",onChange:e=>{null==t||t(e)},children:s.map(e=>{var t;return(0,n.jsx)(r.default.Option,{children:(0,n.jsxs)("div",{className:"flex items-center",children:[h(e),(0,n.jsx)("span",{className:"ml-2",children:(null===(t=i.Hf[e])||void 0===t?void 0:t.label)||e})]})},e)})})}},91085:function(e,t,l){"use strict";var n=l(85893),a=l(32983),i=l(14726),r=l(93967),s=l.n(r),o=l(67421);t.Z=function(e){let{className:t,error:l,description:r,refresh:d}=e,{t:c}=(0,o.$G)();return(0,n.jsx)(a.Z,{image:"/empty.png",imageStyle:{width:320,height:196,margin:"0 auto",maxWidth:"100%",maxHeight:"100%"},className:s()("flex items-center justify-center flex-col h-full w-full",t),description:l?(0,n.jsx)(i.ZP,{type:"primary",onClick:d,children:c("try_again")}):null!=r?r:c("no_data")})}},30119:function(e,t,l){"use strict";l.d(t,{Tk:function(){return c},PR:function(){return u}});var n,a=l(62418),i=l(45360);l(96486);var r=l(87066),s=l(83454);let o=r.default.create({baseURL:null!==(n=s.env.API_BASE_URL)&&void 0!==n?n:""});o.defaults.timeout=1e4,o.interceptors.response.use(e=>e.data,e=>Promise.reject(e));let d={"content-type":"application/json","User-Id":(0,a.n5)()},c=(e,t)=>{if(t){let l=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");l&&(e+="?".concat(l))}return o.get("/api"+e,{headers:d}).then(e=>e).catch(e=>{i.ZP.error(e),Promise.reject(e)})},u=(e,t)=>o.post(e,t,{headers:d}).then(e=>e).catch(e=>{i.ZP.error(e),Promise.reject(e)})},23293:function(){},36459:function(e,t,l){"use strict";function n(e){if(null==e)throw TypeError("Cannot destructure "+e)}l.d(t,{Z:function(){return n}})}}]); \ No newline at end of file diff --git a/dbgpt/app/static/web/_next/static/chunks/4455-fdc1eaac1afb88bd.js b/dbgpt/app/static/web/_next/static/chunks/4455-fdc1eaac1afb88bd.js deleted file mode 100644 index 278462189..000000000 --- a/dbgpt/app/static/web/_next/static/chunks/4455-fdc1eaac1afb88bd.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4455],{90494:function(t,n){"use strict";var e=function(){function t(){this._events={}}return t.prototype.on=function(t,n,e){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:n,once:!!e}),this},t.prototype.once=function(t,n){return this.on(t,n,!0)},t.prototype.emit=function(t){for(var n=this,e=[],r=1;rc&&(c=d)}for(var v=Math.atan(r/(e*Math.tan(i))),m=1/0,g=-1/0,y=[a,o],l=-(2*Math.PI);l<=2*Math.PI;l+=Math.PI){var b=v+l;ag&&(g=x)}return{x:s,y:m,width:c-s,height:g-m}}function c(t,n,e,i,a,u){var s=-1,c=1/0,h=[e,i],l=20;u&&u>200&&(l=u/10);for(var f=1/l,p=f/10,d=0;d<=l;d++){var v=d*f,m=[a.apply(void 0,(0,r.ev)([],(0,r.CR)(t.concat([v])),!1)),a.apply(void 0,(0,r.ev)([],(0,r.CR)(n.concat([v])),!1))],g=o(h[0],h[1],m[0],m[1]);g=0&&g=0&&a<=1&&l.push(a);else{var f=c*c-4*s*h;(0,i.Z)(f,0)?l.push(-c/(2*s)):f>0&&(a=(-c+(u=Math.sqrt(f)))/(2*s),o=(-c-u)/(2*s),a>=0&&a<=1&&l.push(a),o>=0&&o<=1&&l.push(o))}return l}function v(t,n,e,r,i,a,o,s){for(var c=[t,o],h=[n,s],l=d(t,e,i,o),f=d(n,r,a,s),v=0;v=0?[a]:[]}function M(t,n,e,r,i,a){var o=b(t,e,i)[0],s=b(n,r,a)[0],c=[t,i],h=[n,a];return void 0!==o&&c.push(y(t,e,i,o)),void 0!==s&&h.push(y(n,r,a,s)),u(c,h)}function x(t,n,e,r,i,a,u,s){var h=c([t,e,i],[n,r,a],u,s,y);return o(h.x,h.y,u,s)}},98875:function(t,n,e){"use strict";e.d(n,{S:function(){return u}});var r=e(97582),i=e(4559),a=e(44078),o=function(){function t(t){this.dragndropPluginOptions=t}return t.prototype.apply=function(n){var e=this,i=n.renderingService,o=n.renderingContext.root.ownerDocument,u=o.defaultView,s=function(t){var n=t.target,i=n===o,s=i&&e.dragndropPluginOptions.isDocumentDraggable?o:n.closest&&n.closest("[draggable=true]");if(s){var c=!1,h=t.timeStamp,l=[t.clientX,t.clientY],f=null,p=[t.clientX,t.clientY],d=function(t){return(0,r.mG)(e,void 0,void 0,function(){var e,u,d,v,m,g;return(0,r.Jh)(this,function(r){switch(r.label){case 0:if(!c){if(e=t.timeStamp-h,u=(0,a.y)([t.clientX,t.clientY],l),e<=this.dragndropPluginOptions.dragstartTimeThreshold||u<=this.dragndropPluginOptions.dragstartDistanceThreshold)return[2];t.type="dragstart",s.dispatchEvent(t),c=!0}if(t.type="drag",t.dx=t.clientX-p[0],t.dy=t.clientY-p[1],s.dispatchEvent(t),p=[t.clientX,t.clientY],i)return[3,2];return d="pointer"===this.dragndropPluginOptions.overlap?[t.canvasX,t.canvasY]:n.getBounds().center,[4,o.elementsFromPoint(d[0],d[1])];case 1:f!==(g=(null==(m=(v=r.sent())[v.indexOf(n)+1])?void 0:m.closest("[droppable=true]"))||(this.dragndropPluginOptions.isDocumentDroppable?o:null))&&(f&&(t.type="dragleave",t.target=f,f.dispatchEvent(t)),g&&(t.type="dragenter",t.target=g,g.dispatchEvent(t)),(f=g)&&(t.type="dragover",t.target=f,f.dispatchEvent(t))),r.label=2;case 2:return[2]}})})};u.addEventListener("pointermove",d);var v=function(t){if(c){t.detail={preventClick:!0};var n=t.clone();f&&(n.type="drop",n.target=f,f.dispatchEvent(n)),n.type="dragend",s.dispatchEvent(n),c=!1}u.removeEventListener("pointermove",d)};n.addEventListener("pointerup",v,{once:!0}),n.addEventListener("pointerupoutside",v,{once:!0})}};i.hooks.init.tap(t.tag,function(){u.addEventListener("pointerdown",s)}),i.hooks.destroy.tap(t.tag,function(){u.removeEventListener("pointerdown",s)})},t.tag="Dragndrop",t}(),u=function(t){function n(n){void 0===n&&(n={});var e=t.call(this)||this;return e.options=n,e.name="dragndrop",e}return(0,r.ZT)(n,t),n.prototype.init=function(){this.addRenderingPlugin(new o((0,r.pi)({overlap:"pointer",isDocumentDraggable:!1,isDocumentDroppable:!1,dragstartDistanceThreshold:0,dragstartTimeThreshold:0},this.options)))},n.prototype.destroy=function(){this.removeAllRenderingPlugins()},n.prototype.setOptions=function(t){Object.assign(this.plugins[0].dragndropPluginOptions,t)},n}(i.F6)},1242:function(t,n,e){"use strict";e.d(n,{mN:function(){return a.mN},ux:function(){return a.ux},Xz:function(){return a.Xz},$6:function(){return a.$6},Cd:function(){return a.Cd},b_:function(){return a.b_},Aw:function(){return a.Aw},s$:function(){return a.s$},BB:function(){return a.BB},Dk:function(){return a.Dk},Pj:function(){return a.Pj},nR:function(){return a.nR},ZA:function(){return a.ZA},k9:function(){return a.k9},Ee:function(){return a.Ee},x1:function(){return a.x1},y$:function(){return a.y$},mg:function(){return a.mg},aH:function(){return a.aH},h0:function(){return a.h0},UL:function(){return a.UL},bn:function(){return a.bn},xv:function(){return a.xv},YR:function(){return a.YR},lu:function(){return a.lu},GZ:function(){return a.GZ}});var r,i,a=e(4559),o=e(97582),u=e(76714),s=e(25897),c=e(32945),h=e(85975),l=e(77160),f=function(t){function n(){var n=t.apply(this,(0,o.ev)([],(0,o.CR)(arguments),!1))||this;return n.landmarks=[],n}return(0,o.ZT)(n,t),n.prototype.rotate=function(t,n,e){if(this.relElevation=(0,a._O)(n),this.relAzimuth=(0,a._O)(t),this.relRoll=(0,a._O)(e),this.elevation+=this.relElevation,this.azimuth+=this.relAzimuth,this.roll+=this.relRoll,this.type===a.iM.EXPLORING){var r=c.yY(c.Ue(),[1,0,0],(0,a.Vl)((this.rotateWorld?1:-1)*this.relElevation)),i=c.yY(c.Ue(),[0,1,0],(0,a.Vl)((this.rotateWorld?1:-1)*this.relAzimuth)),o=c.yY(c.Ue(),[0,0,1],(0,a.Vl)(this.relRoll)),u=c.Jp(c.Ue(),i,r);u=c.Jp(c.Ue(),u,o);var s=h.fromQuat(h.create(),u);h.translate(this.matrix,this.matrix,[0,0,-this.distance]),h.multiply(this.matrix,this.matrix,s),h.translate(this.matrix,this.matrix,[0,0,this.distance])}else{if(Math.abs(this.elevation)>90)return this;this.computeMatrix()}return this._getAxes(),this.type===a.iM.ORBITING||this.type===a.iM.EXPLORING?this._getPosition():this.type===a.iM.TRACKING&&this._getFocalPoint(),this._update(),this},n.prototype.pan=function(t,n){var e=(0,a.O4)(t,n,0),r=l.d9(this.position);return l.IH(r,r,l.bA(l.Ue(),this.right,e[0])),l.IH(r,r,l.bA(l.Ue(),this.up,e[1])),this._setPosition(r),this.triggerUpdate(),this},n.prototype.dolly=function(t){var n=this.forward,e=l.d9(this.position),r=t*this.dollyingStep;return r=Math.max(Math.min(this.distance+t*this.dollyingStep,this.maxDistance),this.minDistance)-this.distance,e[0]+=r*n[0],e[1]+=r*n[1],e[2]+=r*n[2],this._setPosition(e),this.type===a.iM.ORBITING||this.type===a.iM.EXPLORING?this._getDistance():this.type===a.iM.TRACKING&&l.IH(this.focalPoint,e,this.distanceVector),this.triggerUpdate(),this},n.prototype.cancelLandmarkAnimation=function(){void 0!==this.landmarkAnimationID&&this.canvas.cancelAnimationFrame(this.landmarkAnimationID)},n.prototype.createLandmark=function(t,n){void 0===n&&(n={});var e,r,i,o,u=n.position,s=void 0===u?this.position:u,c=n.focalPoint,f=void 0===c?this.focalPoint:c,p=n.roll,d=n.zoom,v=new a.GZ.CameraContribution;v.setType(this.type,void 0),v.setPosition(s[0],null!==(e=s[1])&&void 0!==e?e:this.position[1],null!==(r=s[2])&&void 0!==r?r:this.position[2]),v.setFocalPoint(f[0],null!==(i=f[1])&&void 0!==i?i:this.focalPoint[1],null!==(o=f[2])&&void 0!==o?o:this.focalPoint[2]),v.setRoll(null!=p?p:this.roll),v.setZoom(null!=d?d:this.zoom);var m={name:t,matrix:h.clone(v.getWorldTransform()),right:l.d9(v.right),up:l.d9(v.up),forward:l.d9(v.forward),position:l.d9(v.getPosition()),focalPoint:l.d9(v.getFocalPoint()),distanceVector:l.d9(v.getDistanceVector()),distance:v.getDistance(),dollyingStep:v.getDollyingStep(),azimuth:v.getAzimuth(),elevation:v.getElevation(),roll:v.getRoll(),relAzimuth:v.relAzimuth,relElevation:v.relElevation,relRoll:v.relRoll,zoom:v.getZoom()};return this.landmarks.push(m),m},n.prototype.gotoLandmark=function(t,n){var e=this;void 0===n&&(n={});var r=(0,u.Z)(t)?this.landmarks.find(function(n){return n.name===t}):t;if(r){var i,o=(0,s.Z)(n)?{duration:n}:n,c=o.easing,h=void 0===c?"linear":c,f=o.duration,p=void 0===f?100:f,d=o.easingFunction,v=o.onfinish,m=void 0===v?void 0:v,g=o.onframe,y=void 0===g?void 0:g;this.cancelLandmarkAnimation();var b=r.position,M=r.focalPoint,x=r.zoom,w=r.roll,_=(void 0===d?void 0:d)||a.GZ.EasingFunction(h),k=function(){e.setFocalPoint(M),e.setPosition(b),e.setRoll(w),e.setZoom(x),e.computeMatrix(),e.triggerUpdate(),null==m||m()};if(0===p)return k();var T=function(t){void 0===i&&(i=t);var n=t-i;if(n>=p){k();return}var r=_(n/p),a=l.Ue(),o=l.Ue(),u=1,s=0;if(l.t7(a,e.focalPoint,M,r),l.t7(o,e.position,b,r),s=e.roll*(1-r)+w*r,u=e.zoom*(1-r)+x*r,e.setFocalPoint(a),e.setPosition(o),e.setRoll(s),e.setZoom(u),l.TK(a,M)+l.TK(o,b)<=.01&&void 0==x&&void 0==w)return k();e.computeMatrix(),e.triggerUpdate(),n0){var u,s=(u=e[o-1],u===t?u:i&&(u===i||u===r)?i:null);if(s){e[o-1]=s;return}}else n=this.observer,b.push(n),y||(y=!0,void 0!==a.GZ.globalThis?a.GZ.globalThis.setTimeout(M):M());e[o]=t},t.prototype.addListeners=function(){this.addListeners_(this.target)},t.prototype.addListeners_=function(t){var n=this.options;n.attributes&&t.addEventListener(a.Dk.ATTR_MODIFIED,this,!0),n.childList&&t.addEventListener(a.Dk.INSERTED,this,!0),(n.childList||n.subtree)&&t.addEventListener(a.Dk.REMOVED,this,!0)},t.prototype.removeListeners=function(){this.removeListeners_(this.target)},t.prototype.removeListeners_=function(t){var n=this.options;n.attributes&&t.removeEventListener(a.Dk.ATTR_MODIFIED,this,!0),n.childList&&t.removeEventListener(a.Dk.INSERTED,this,!0),(n.childList||n.subtree)&&t.removeEventListener(a.Dk.REMOVED,this,!0)},t.prototype.removeTransientObservers=function(){var t=this.transientObservedNodes;this.transientObservedNodes=[],t.forEach(function(t){this.removeListeners_(t);for(var n=v.get(t),e=0;e0&&Number(this._currentTime)>=this._totalDuration||this._playbackRate<0&&0>=Number(this._currentTime))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalDuration",{get:function(){return this._totalDuration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_needsTick",{get:function(){return this.pending||"running"===this.playState||!this._finishedFlag},enumerable:!1,configurable:!0}),t.prototype.updatePromises=function(){var t=this.oldPlayState,n=this.pending?"pending":this.playState;return this.readyPromise&&n!==t&&("idle"===n?(this.rejectReadyPromise(),this.readyPromise=void 0):"pending"===t?this.resolveReadyPromise():"pending"===n&&(this.readyPromise=void 0)),this.finishedPromise&&n!==t&&("idle"===n?(this.rejectFinishedPromise(),this.finishedPromise=void 0):"finished"===n?this.resolveFinishedPromise():"finished"===t&&(this.finishedPromise=void 0)),this.oldPlayState=n,this.readyPromise||this.finishedPromise},t.prototype.play=function(){this.updatePromises(),this._paused=!1,(this._isFinished||this._idle)&&(this.rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this),-1===this.timeline.animations.indexOf(this)&&this.timeline.animations.push(this),this.updatePromises()},t.prototype.pause=function(){this.updatePromises(),this.currentTime&&(this._holdTime=this.currentTime),this._isFinished||this._paused||this._idle?this._idle&&(this.rewind(),this._idle=!1):this.currentTimePending=!0,this._startTime=null,this._paused=!0,this.updatePromises()},t.prototype.finish=function(){this.updatePromises(),this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this.currentTimePending=!1,this.timeline.applyDirtiedAnimation(this),this.updatePromises())},t.prototype.cancel=function(){var t=this;if(this.updatePromises(),this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this.effect.update(null),this.timeline.applyDirtiedAnimation(this),this.updatePromises(),this.oncancel)){var n=new _(null,this,this.currentTime,null);setTimeout(function(){t.oncancel(n)})}},t.prototype.reverse=function(){this.updatePromises();var t=this.currentTime;this.playbackRate*=-1,this.play(),null!==t&&(this.currentTime=t),this.updatePromises()},t.prototype.updatePlaybackRate=function(t){this.playbackRate=t},t.prototype.targetAnimations=function(){var t;return(null===(t=this.effect)||void 0===t?void 0:t.target).getAnimations()},t.prototype.markTarget=function(){var t=this.targetAnimations();-1===t.indexOf(this)&&t.push(this)},t.prototype.unmarkTarget=function(){var t=this.targetAnimations(),n=t.indexOf(this);-1!==n&&t.splice(n,1)},t.prototype.tick=function(t,n){this._idle||this._paused||(null===this._startTime?n&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this.tickCurrentTime((t-this._startTime)*this.playbackRate)),n&&(this.currentTimePending=!1,this.fireEvents(t))},t.prototype.rewind=function(){if(this.playbackRate>=0)this.currentTime=0;else if(this._totalDuration<1/0)this.currentTime=this._totalDuration;else throw Error("Unable to rewind negative playback rate animation with infinite duration")},t.prototype.persist=function(){throw Error(a.jf)},t.prototype.addEventListener=function(t,n,e){throw Error(a.jf)},t.prototype.removeEventListener=function(t,n,e){throw Error(a.jf)},t.prototype.dispatchEvent=function(t){throw Error(a.jf)},t.prototype.commitStyles=function(){throw Error(a.jf)},t.prototype.ensureAlive=function(){var t,n;this.playbackRate<0&&0===this.currentTime?this._inEffect=!!(null===(t=this.effect)||void 0===t?void 0:t.update(-1)):this._inEffect=!!(null===(n=this.effect)||void 0===n?void 0:n.update(this.currentTime)),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,this.timeline.animations.push(this))},t.prototype.tickCurrentTime=function(t,n){t!==this._currentTime&&(this._currentTime=t,this._isFinished&&!n&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this.ensureAlive())},t.prototype.fireEvents=function(t){var n=this;if(this._isFinished){if(!this._finishedFlag){if(this.onfinish){var e=new _(null,this,this.currentTime,t);setTimeout(function(){n.onfinish&&n.onfinish(e)})}this._finishedFlag=!0}}else{if(this.onframe&&"running"===this.playState){var r=new _(null,this,this.currentTime,t);this.onframe(r)}this._finishedFlag=!1}},t}(),A="function"==typeof Float32Array,P=function(t,n){return 1-3*n+3*t},N=function(t,n){return 3*n-6*t},Z=function(t){return 3*t},O=function(t,n,e){return((P(n,e)*t+N(n,e))*t+Z(n))*t},E=function(t,n,e){return 3*P(n,e)*t*t+2*N(n,e)*t+Z(n)},I=function(t,n,e,r,i){var a,o,u=0;do(a=O(o=n+(e-n)/2,r,i)-t)>0?e=o:n=o;while(Math.abs(a)>1e-7&&++u<10);return o},R=function(t,n,e,r){for(var i=0;i<4;++i){var a=E(n,e,r);if(0===a)break;var o=O(n,e,r)-t;n-=o/a}return n},F=function(t,n,e,r){if(!(0<=t&&t<=1&&0<=e&&e<=1))throw Error("bezier x values must be in [0, 1] range");if(t===n&&e===r)return function(t){return t};for(var i=A?new Float32Array(11):Array(11),a=0;a<11;++a)i[a]=O(.1*a,t,e);var o=function(n){for(var r=0,a=1;10!==a&&i[a]<=n;++a)r+=.1;var o=r+(n-i[--a])/(i[a+1]-i[a])*.1,u=E(o,t,e);return u>=.001?R(n,o,t,e):0===u?o:I(n,r,r+.1,t,e)};return function(t){return 0===t||1===t?t:O(o(t),n,r)}},C=function(t){return Math.pow(t,2)},q=function(t){return Math.pow(t,3)},D=function(t){return Math.pow(t,4)},S=function(t){return Math.pow(t,5)},j=function(t){return Math.pow(t,6)},L=function(t){return 1-Math.cos(t*Math.PI/2)},W=function(t){return 1-Math.sqrt(1-t*t)},z=function(t){return t*t*(3*t-2)},V=function(t){for(var n,e=4;t<((n=Math.pow(2,--e))-1)/11;);return 1/Math.pow(4,3-e)-7.5625*Math.pow((3*n-2)/22-t,2)},G=function(t,n){void 0===n&&(n=[]);var e=(0,o.CR)(n,2),r=e[0],i=e[1],a=(0,x.Z)(Number(void 0===r?1:r),1,10),u=(0,x.Z)(Number(void 0===i?.5:i),.1,2);return 0===t||1===t?t:-a*Math.pow(2,10*(t-1))*Math.sin((t-1-u/(2*Math.PI)*Math.asin(1/a))*(2*Math.PI)/u)},K=function(t,n,e){void 0===n&&(n=[]);var r=(0,o.CR)(n,4),i=r[0],a=void 0===i?1:i,u=r[1],s=void 0===u?100:u,c=r[2],h=void 0===c?10:c,l=r[3],f=void 0===l?0:l;a=(0,x.Z)(a,.1,1e3),s=(0,x.Z)(s,.1,1e3),h=(0,x.Z)(h,.1,1e3),f=(0,x.Z)(f,.1,1e3);var p=Math.sqrt(s/a),d=h/(2*Math.sqrt(s*a)),v=d<1?p*Math.sqrt(1-d*d):0,m=d<1?(d*p+-f)/v:-f+p,g=e?e*t/1e3:t;return(g=d<1?Math.exp(-g*d*p)*(1*Math.cos(v*g)+m*Math.sin(v*g)):(1+m*g)*Math.exp(-g*p),0===t||1===t)?t:1-g},U=function(t,n){void 0===n&&(n=[]);var e=(0,o.CR)(n,2),r=e[0],i=void 0===r?10:r;return("start"==e[1]?Math.ceil:Math.floor)((0,x.Z)(t,0,1)*i)/i},$=function(t,n){void 0===n&&(n=[]);var e=(0,o.CR)(n,4);return F(e[0],e[1],e[2],e[3])(t)},H=F(.42,0,1,1),B=function(t){return function(n,e,r){return void 0===e&&(e=[]),1-t(1-n,e,r)}},X=function(t){return function(n,e,r){return void 0===e&&(e=[]),n<.5?t(2*n,e,r)/2:1-t(-2*n+2,e,r)/2}},Y=function(t){return function(n,e,r){return void 0===e&&(e=[]),n<.5?(1-t(1-2*n,e,r))/2:(t(2*n-1,e,r)+1)/2}},J={steps:U,"step-start":function(t){return U(t,[1,"start"])},"step-end":function(t){return U(t,[1,"end"])},linear:function(t){return t},"cubic-bezier":$,ease:function(t){return $(t,[.25,.1,.25,1])},in:H,out:B(H),"in-out":X(H),"out-in":Y(H),"in-quad":C,"out-quad":B(C),"in-out-quad":X(C),"out-in-quad":Y(C),"in-cubic":q,"out-cubic":B(q),"in-out-cubic":X(q),"out-in-cubic":Y(q),"in-quart":D,"out-quart":B(D),"in-out-quart":X(D),"out-in-quart":Y(D),"in-quint":S,"out-quint":B(S),"in-out-quint":X(S),"out-in-quint":Y(S),"in-expo":j,"out-expo":B(j),"in-out-expo":X(j),"out-in-expo":Y(j),"in-sine":L,"out-sine":B(L),"in-out-sine":X(L),"out-in-sine":Y(L),"in-circ":W,"out-circ":B(W),"in-out-circ":X(W),"out-in-circ":Y(W),"in-back":z,"out-back":B(z),"in-out-back":X(z),"out-in-back":Y(z),"in-bounce":V,"out-bounce":B(V),"in-out-bounce":X(V),"out-in-bounce":Y(V),"in-elastic":G,"out-elastic":B(G),"in-out-elastic":X(G),"out-in-elastic":Y(G),spring:K,"spring-in":K,"spring-out":B(K),"spring-in-out":X(K),"spring-out-in":Y(K)},Q=function(t){var n;return("-"===(n=(n=t).replace(/([A-Z])/g,function(t){return"-".concat(t.toLowerCase())})).charAt(0)?n.substring(1):n).replace(/^ease-/,"").replace(/(\(|\s).+/,"").toLowerCase().trim()},tt=function(t){return t};function tn(t,n){return function(e){if(e>=1)return 1;var r=1/t;return(e+=n*r)-e%r}}var te="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",tr=RegExp("cubic-bezier\\("+te+","+te+","+te+","+te+"\\)"),ti=/steps\(\s*(\d+)\s*\)/,ta=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/;function to(t){var n=tr.exec(t);if(n)return F.apply(void 0,(0,o.ev)([],(0,o.CR)(n.slice(1).map(Number)),!1));var e=ti.exec(t);if(e)return tn(Number(e[1]),0);var r=ta.exec(t);return r?tn(Number(r[1]),{start:1,middle:.5,end:0}[r[2]]):J[Q(t)]||J.linear}function tu(t){return"offset"!==t&&"easing"!==t&&"composite"!==t&&"computedOffset"!==t}var ts=function(t,n,e){return function(r){var i=function t(n,e,r){if("number"==typeof n&&"number"==typeof e)return n*(1-r)+e*r;if("boolean"==typeof n&&"boolean"==typeof e||"string"==typeof n&&"string"==typeof e)return r<.5?n:e;if(Array.isArray(n)&&Array.isArray(e)){for(var i=n.length,a=e.length,o=Math.max(i,a),u=[],s=0;s1)throw Error("Keyframe offsets must be between 0 and 1.");e.computedOffset=i}}else if("composite"===r&&-1===["replace","add","accumulate","auto"].indexOf(i))throw Error("".concat(i," compositing is not supported"));e[r]=i}return void 0===e.offset&&(e.offset=null),void 0===e.easing&&(e.easing=(null==n?void 0:n.easing)||"linear"),void 0===e.composite&&(e.composite="auto"),e}),r=!0,i=-1/0,a=0;a=0&&1>=Number(t.offset)}),r||function(){var t,n,r=e.length;e[r-1].computedOffset=Number(null!==(t=e[r-1].offset)&&void 0!==t?t:1),r>1&&(e[0].computedOffset=Number(null!==(n=e[0].offset)&&void 0!==n?n:0));for(var i=0,a=Number(e[0].computedOffset),o=1;o=t.applyFrom&&n=Math.min(e.delay+t+e.endDelay,r)?2:3}(t,n,e),h=function(t,n,e,r,i){switch(r){case 1:if("backwards"===n||"both"===n)return 0;return null;case 3:return e-i;case 2:if("forwards"===n||"both"===n)return t;return null;case 0:return null}}(t,e.fill,n,c,e.delay);if(null===h)return null;var l="auto"===e.duration?0:e.duration,f=(r=e.iterations,i=e.iterationStart,0===l?1!==c&&(i+=r):i+=h/l,i),p=(a=e.iterationStart,o=e.iterations,0==(u=f===1/0?a%1:f%1)&&2===c&&0!==o&&(0!==h||0===l)&&(u=1),u),d=(s=e.iterations,2===c&&s===1/0?1/0:1===p?Math.floor(f)-1:Math.floor(f)),v=function(t,n,e){var r=t;if("normal"!==t&&"reverse"!==t){var i=n;"alternate-reverse"===t&&(i+=1),r="normal",i!==1/0&&i%2!=0&&(r="reverse")}return"normal"===r?e:1-e}(e.direction,d,p);return e.currentIteration=d,e.progress=v,e.easingFunction(v)}(this.timing.activeDuration,t,this.timing),null!==this.timeFraction)},t.prototype.getKeyframes=function(){return this.normalizedKeyframes},t.prototype.setKeyframes=function(t){this.normalizedKeyframes=th(t)},t.prototype.getComputedTiming=function(){return this.computedTiming},t.prototype.getTiming=function(){return this.timing},t.prototype.updateTiming=function(t){var n=this;Object.keys(t||{}).forEach(function(e){n.timing[e]=t[e]})},t}();function td(t,n){return Number(t.id)-Number(n.id)}var tv=function(){function t(t){var n=this;this.document=t,this.animations=[],this.ticking=!1,this.timelineTicking=!1,this.hasRestartedThisFrame=!1,this.animationsWithPromises=[],this.inTick=!1,this.pendingEffects=[],this.currentTime=null,this.rafId=0,this.rafCallbacks=[],this.webAnimationsNextTick=function(t){n.currentTime=t,n.discardAnimations(),0===n.animations.length?n.timelineTicking=!1:n.requestAnimationFrame(n.webAnimationsNextTick)},this.processRafCallbacks=function(t){var e=n.rafCallbacks;n.rafCallbacks=[],t0?t:n}getPaddingOuter(){let{padding:t,paddingOuter:n}=this.options;return t>0?t:n}rescale(){super.rescale();let{align:t,domain:n,range:e,round:r,flex:i}=this.options,{adjustedRange:o,valueBandWidth:u,valueStep:s}=function(t){var n;let e,r;let{domain:i}=t,o=i.length;if(0===o)return{valueBandWidth:void 0,valueStep:void 0,adjustedRange:[]};let u=!!(null===(n=t.flex)||void 0===n?void 0:n.length);if(u)return function(t){let{domain:n,range:e,paddingOuter:r,paddingInner:i,flex:o,round:u,align:s}=t,c=n.length,h=function(t,n){let e=t.length,r=n-e;return r>0?[...t,...Array(r).fill(1)]:r<0?t.slice(0,n):t}(o,c),[l,f]=e,p=f-l,d=2/c*r+1-1/c*i,v=p/d,m=v*i/c,g=v-c*m,y=function(t){let n=Math.min(...t);return t.map(t=>t/n)}(h),b=y.reduce((t,n)=>t+n),M=g/b,x=new a(n.map((t,n)=>{let e=y[n]*M;return[t,u?Math.floor(e):e]})),w=new a(n.map((t,n)=>{let e=y[n]*M,r=e+m;return[t,u?Math.floor(r):r]})),_=Array.from(w.values()).reduce((t,n)=>t+n),k=p-(_-_/c*i),T=l+k*s,A=u?Math.round(T):T,P=Array(c);for(let t=0;tp+n*e);return{valueStep:e,valueBandWidth:r,adjustedRange:g}}({align:t,range:e,round:r,flex:i,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:n});this.valueStep=s,this.valueBandWidth=u,this.adjustedRange=o}}},74271:function(t,n,e){"use strict";e.d(n,{X:function(){return i}});var r=e(83787);class i{constructor(t){this.options=(0,r.Z)({},this.getDefaultOptions()),this.update(t)}getOptions(){return this.options}update(t={}){this.options=(0,r.Z)({},this.options,t),this.rescale(t)}rescale(t){}}},63025:function(t,n,e){"use strict";e.d(n,{V:function(){return d}});var r=e(67128),i=e(74271),a=e(34199),o=e(99871),u=e(33338),s=e(25338),c=e(13393),h=e(82569);let l=(t,n,e)=>{let r,i;let[u,s]=t,[c,h]=n;return u{let r=Math.min(t.length,n.length)-1,i=Array(r),s=Array(r),c=t[0]>t[r],h=c?[...t].reverse():t,l=c?[...n].reverse():n;for(let t=0;t{let e=(0,u.b)(t,n,1,r)-1,a=i[e],c=s[e];return(0,o.q)(c,a)(n)}},p=(t,n,e,r)=>{let i=Math.min(t.length,n.length),a=r?s.lk:e;return(i>2?f:l)(t,n,a)};class d extends i.X{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:s.fv,tickCount:5}}map(t){return(0,c.J)(t)?this.output(t):this.options.unknown}invert(t){return(0,c.J)(t)?this.input(t):this.options.unknown}nice(){if(!this.options.nice)return;let[t,n,e,...r]=this.getTickMethodOptions();this.options.domain=this.chooseNice()(t,n,e,...r)}getTicks(){let{tickMethod:t}=this.options,[n,e,r,...i]=this.getTickMethodOptions();return t(n,e,r,...i)}getTickMethodOptions(){let{domain:t,tickCount:n}=this.options,e=t[0],r=t[t.length-1];return[e,r,n]}chooseNice(){return h.n}rescale(){this.nice();let[t,n]=this.chooseTransforms();this.composeOutput(t,this.chooseClamp(t)),this.composeInput(t,n,this.chooseClamp(n))}chooseClamp(t){let{clamp:n,range:e}=this.options,i=this.options.domain.map(t),a=Math.min(i.length,e.length);return n?function(t,n){let e=nn?t:n;return t=>Math.min(Math.max(e,t),r)}(i[0],i[a-1]):r.Z}composeOutput(t,n){let{domain:e,range:r,round:i,interpolate:a}=this.options,u=p(e.map(t),r,a,i);this.output=(0,o.q)(u,n,t)}composeInput(t,n,e){let{domain:r,range:i}=this.options,a=p(i,r.map(t),s.fv);this.input=(0,o.q)(n,e,a)}}},36380:function(t,n,e){"use strict";e.d(n,{b:function(){return u}});var r=e(67128),i=e(63025),a=e(25338),o=e(7847);class u extends i.V{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:a.wp,tickMethod:o.Z,tickCount:5}}chooseTransforms(){return[r.Z,r.Z]}clone(){return new u(this.options)}}},8064:function(t,n,e){"use strict";e.d(n,{r:function(){return s},z:function(){return i}});var r=e(74271);let i=Symbol("defaultUnknown");function a(t,n,e){for(let r=0;r`${t}`:"object"==typeof t?t=>JSON.stringify(t):t=>t}class s extends r.X{getDefaultOptions(){return{domain:[],range:[],unknown:i}}constructor(t){super(t)}map(t){return 0===this.domainIndexMap.size&&a(this.domainIndexMap,this.getDomain(),this.domainKey),o({value:this.domainKey(t),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(t){return 0===this.rangeIndexMap.size&&a(this.rangeIndexMap,this.getRange(),this.rangeKey),o({value:this.rangeKey(t),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(t){let[n]=this.options.domain,[e]=this.options.range;if(this.domainKey=u(n),this.rangeKey=u(e),!this.rangeIndexMap){this.rangeIndexMap=new Map,this.domainIndexMap=new Map;return}(!t||t.range)&&this.rangeIndexMap.clear(),(!t||t.domain||t.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)}clone(){return new s(this.options)}getRange(){return this.options.range}getDomain(){if(this.sortedDomain)return this.sortedDomain;let{domain:t,compare:n}=this.options;return this.sortedDomain=n?[...t].sort(n):t,this.sortedDomain}}},7847:function(t,n,e){"use strict";e.d(n,{Z:function(){return i}});var r=e(72478);let i=(t,n,e)=>{let i,a;let o=t,u=n;if(o===u&&e>0)return[o];let s=(0,r.G)(o,u,e);if(0===s||!Number.isFinite(s))return[];if(s>0){o=Math.ceil(o/s),a=Array(i=Math.ceil((u=Math.floor(u/s))-o+1));for(let t=0;tt);for(;an?o=e:a=e+1}return a}e.d(n,{b:function(){return r}})},99871:function(t,n,e){"use strict";function r(t,...n){return n.reduce((t,n)=>e=>t(n(e)),t)}e.d(n,{q:function(){return r}})},82569:function(t,n,e){"use strict";e.d(n,{n:function(){return i}});var r=e(72478);let i=(t,n,e=5)=>{let i;let a=[t,n],o=0,u=a.length-1,s=a[o],c=a[u];return c0?(s=Math.floor(s/i)*i,c=Math.ceil(c/i)*i,i=(0,r.G)(s,c,e)):i<0&&(s=Math.ceil(s*i)/i,c=Math.floor(c*i)/i,i=(0,r.G)(s,c,e)),i>0?(a[o]=Math.floor(s/i)*i,a[u]=Math.ceil(c/i)*i):i<0&&(a[o]=Math.ceil(s*i)/i,a[u]=Math.floor(c*i)/i),a}},25338:function(t,n,e){"use strict";e.d(n,{fv:function(){return u},lk:function(){return h},wp:function(){return c}});var r=e(19818),i=e.n(r);function a(t,n,e){let r=e;return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(n-t)*6*r:r<.5?n:r<2/3?t+(n-t)*(2/3-r)*6:t}function o(t){let n=i().get(t);if(!n)return null;let{model:e,value:r}=n;return"rgb"===e?r:"hsl"===e?function(t){let n=t[0]/360,e=t[1]/100,r=t[2]/100,i=t[3];if(0===e)return[255*r,255*r,255*r,i];let o=r<.5?r*(1+e):r+e-r*e,u=2*r-o,s=a(u,o,n+1/3),c=a(u,o,n),h=a(u,o,n-1/3);return[255*s,255*c,255*h,i]}(r):null}let u=(t,n)=>e=>t*(1-e)+n*e,s=(t,n)=>{let e=o(t),r=o(n);return null===e||null===r?e?()=>t:()=>n:t=>{let n=[,,,,];for(let i=0;i<4;i+=1){let a=e[i],o=r[i];n[i]=a*(1-t)+o*t}let[i,a,o,u]=n;return`rgba(${Math.round(i)}, ${Math.round(a)}, ${Math.round(o)}, ${u})`}},c=(t,n)=>"number"==typeof t&&"number"==typeof n?u(t,n):"string"==typeof t&&"string"==typeof n?s(t,n):()=>t,h=(t,n)=>{let e=u(t,n);return t=>Math.round(e(t))}},13393:function(t,n,e){"use strict";e.d(n,{J:function(){return i}});var r=e(71154);function i(t){return!(0,r.Z)(t)&&null!==t&&!Number.isNaN(t)}},34199:function(t,n,e){"use strict";function r(t,n){return n-t?e=>(e-t)/(n-t):t=>.5}e.d(n,{I:function(){return r}})},72478:function(t,n,e){"use strict";e.d(n,{G:function(){return o},l:function(){return u}});let r=Math.sqrt(50),i=Math.sqrt(10),a=Math.sqrt(2);function o(t,n,e){let o=(n-t)/Math.max(0,e),u=Math.floor(Math.log(o)/Math.LN10),s=o/10**u;return u>=0?(s>=r?10:s>=i?5:s>=a?2:1)*10**u:-(10**-u)/(s>=r?10:s>=i?5:s>=a?2:1)}function u(t,n,e){let o=Math.abs(n-t)/Math.max(0,e),u=10**Math.floor(Math.log(o)/Math.LN10),s=o/u;return s>=r?u*=10:s>=i?u*=5:s>=a&&(u*=2),ne?e:t}},83207:function(t,n,e){"use strict";var r=e(5199),i=function(t){if("object"!=typeof t||null===t)return t;if((0,r.Z)(t)){n=[];for(var n,e=0,a=t.length;ea&&(e=u,a=s)}return e}}},13882:function(t,n,e){"use strict";var r=e(5199);n.Z=function(t){if((0,r.Z)(t))return t.reduce(function(t,n){return Math.max(t,n)},t[0])}},92426:function(t,n,e){"use strict";var r=e(45607);n.Z=function(t,n,e){if(void 0===e&&(e=128),!(0,r.Z)(t))throw TypeError("Expected a function");var i=function(){for(var e=[],r=0;ri&&(r=e,o(1),++n),e[t]=a}function o(t){n=0,e=Object.create(null),t||(r=Object.create(null))}return o(),{clear:o,has:function(t){return void 0!==e[t]||void 0!==r[t]},get:function(t){var n=e[t];return void 0!==n?n:void 0!==(n=r[t])?(a(t,n),n):void 0},set:function(t,n){void 0!==e[t]?e[t]=n:a(t,n)}}}(e),i}},89372:function(t,n,e){"use strict";var r=e(5199),i=e(45607);n.Z=function(t,n){if((0,r.Z)(t)){for(var e,a=1/0,o=0;o7){t[e].shift();for(var r=t[e],i=e;r.length;)n[e]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(e,1)}}(l,p,g),v=l.length,"Z"===d&&m.push(g),s=(e=l[g]).length,f.x1=+e[s-2],f.y1=+e[s-1],f.x2=+e[s-4]||f.x1,f.y2=+e[s-3]||f.y1}return n?[l,m]:l}},18323:function(t,n,e){"use strict";e.d(n,{R:function(){return r}});var r={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0}},64985:function(t,n,e){"use strict";e.d(n,{z:function(){return r}});var r={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null}},74873:function(t,n,e){"use strict";function r(t,n,e){return{x:t*Math.cos(e)-n*Math.sin(e),y:t*Math.sin(e)+n*Math.cos(e)}}e.d(n,{W:function(){return function t(n,e,i,a,o,u,s,c,h,l){var f,p,d,v,m,g=n,y=e,b=i,M=a,x=c,w=h,_=120*Math.PI/180,k=Math.PI/180*(+o||0),T=[];if(l)p=l[0],d=l[1],v=l[2],m=l[3];else{g=(f=r(g,y,-k)).x,y=f.y,x=(f=r(x,w,-k)).x,w=f.y;var A=(g-x)/2,P=(y-w)/2,N=A*A/(b*b)+P*P/(M*M);N>1&&(b*=N=Math.sqrt(N),M*=N);var Z=b*b,O=M*M,E=(u===s?-1:1)*Math.sqrt(Math.abs((Z*O-Z*P*P-O*A*A)/(Z*P*P+O*A*A)));v=E*b*P/M+(g+x)/2,m=-(E*M)*A/b+(y+w)/2,p=Math.asin(((y-m)/M*1e9>>0)/1e9),d=Math.asin(((w-m)/M*1e9>>0)/1e9),p=gd&&(p-=2*Math.PI),!s&&d>p&&(d-=2*Math.PI)}var I=d-p;if(Math.abs(I)>_){var R=d,F=x,C=w;T=t(x=v+b*Math.cos(d=p+_*(s&&d>p?1:-1)),w=m+M*Math.sin(d),b,M,o,0,s,F,C,[d,R,v,m])}I=d-p;var q=Math.cos(p),D=Math.cos(d),S=Math.tan(I/4),j=4/3*b*S,L=4/3*M*S,W=[g,y],z=[g+j*Math.sin(p),y-L*q],V=[x+j*Math.sin(d),w-L*D],G=[x,w];if(z[0]=2*W[0]-z[0],z[1]=2*W[1]-z[1],l)return z.concat(V,G,T);T=z.concat(V,G,T);for(var K=[],U=0,$=T.length;U<$;U+=1)K[U]=U%2?r(T[U-1],T[U],k).y:r(T[U],T[U+1],k).x;return K}}})},28659:function(t,n,e){"use strict";function r(t){return t.map(function(t){return Array.isArray(t)?[].concat(t):t})}e.d(n,{U:function(){return r}})},4848:function(t,n,e){"use strict";e.d(n,{A:function(){return p}});var r=e(97582),i=e(11013),a=e(64985),o=e(41010),u=e(56346),s=e(18323);function c(t){for(var n=t.pathValue[t.segmentStart],e=n.toLowerCase(),r=t.data;r.length>=s.R[e]&&("m"===e&&r.length>2?(t.segments.push([n].concat(r.splice(0,2))),e="l",n="m"===n?"l":"L"):t.segments.push([n].concat(r.splice(0,s.R[e]))),s.R[e]););}function h(t){return t>=48&&t<=57}function l(t){for(var n,e=t.pathValue,r=t.max;t.index=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(n));)t.index+=1}var f=function(t){this.pathValue=t,this.segments=[],this.max=t.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""};function p(t){if((0,i.y)(t))return[].concat(t);for(var n=function(t){if((0,o.b)(t))return[].concat(t);var n=function(t){if((0,u.n)(t))return[].concat(t);var n=new f(t);for(l(n);n.index0;u-=1){if((32|i)==97&&(3===u||4===u)?function(t){var n=t.index,e=t.pathValue,r=e.charCodeAt(n);if(48===r){t.param=0,t.index+=1;return}if(49===r){t.param=1,t.index+=1;return}t.err='[path-util]: invalid Arc flag "'+e[n]+'", expecting 0 or 1 at index '+n}(t):function(t){var n,e=t.max,r=t.pathValue,i=t.index,a=i,o=!1,u=!1,s=!1,c=!1;if(a>=e){t.err="[path-util]: Invalid path value at index "+a+', "pathValue" is missing param';return}if((43===(n=r.charCodeAt(a))||45===n)&&(a+=1,n=r.charCodeAt(a)),!h(n)&&46!==n){t.err="[path-util]: Invalid path value at index "+a+', "'+r[a]+'" is not a number';return}if(46!==n){if(o=48===n,a+=1,n=r.charCodeAt(a),o&&a=t.max||!((o=e.charCodeAt(t.index))>=48&&o<=57||43===o||45===o||46===o))break}c(t)}(n);return n.err?n.err:n.segments}(t),e=0,r=0,i=0,a=0;return n.map(function(t){var n,o=t.slice(1).map(Number),u=t[0],s=u.toUpperCase();if("M"===u)return e=o[0],r=o[1],i=e,a=r,["M",e,r];if(u!==s)switch(s){case"A":n=[s,o[0],o[1],o[2],o[3],o[4],o[5]+e,o[6]+r];break;case"V":n=[s,o[0]+r];break;case"H":n=[s,o[0]+e];break;default:n=[s].concat(o.map(function(t,n){return t+(n%2?r:e)}))}else n=[s].concat(o);var c=n.length;switch(s){case"Z":e=i,r=a;break;case"H":e=n[1];break;case"V":r=n[1];break;default:e=n[c-2],r=n[c-1],"M"===s&&(i=e,a=r)}return n})}(t),e=(0,r.pi)({},a.z),p=0;p=d[n],v[n]-=m?1:0,m?t.ss:[t.s]}).flat()});return g[0].length===g[1].length?g:t(g[0],g[1],p)}}});var r=e(17570),i=e(6489);function a(t){return t.map(function(t,n,e){var a,o,u,s,c,h,l,f,p,d,v,m,g=n&&e[n-1].slice(-2).concat(t.slice(1)),y=n?(0,i.S)(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],{bbox:!1}).length:0;return m=n?y?(void 0===a&&(a=.5),o=g.slice(0,2),u=g.slice(2,4),s=g.slice(4,6),c=g.slice(6,8),h=(0,r.k)(o,u,a),l=(0,r.k)(u,s,a),f=(0,r.k)(s,c,a),p=(0,r.k)(h,l,a),d=(0,r.k)(l,f,a),v=(0,r.k)(p,d,a),[["C"].concat(h,p,v),["C"].concat(d,f,c)]):[t,t]:[t],{s:t,ss:m,l:y}})}},92455:function(t,n,e){"use strict";e.d(n,{b:function(){return i}});var r=e(75839);function i(t){var n,e,i;return n=0,e=0,i=0,(0,r.Y)(t).map(function(t){if("M"===t[0])return n=t[1],e=t[2],0;var r,a,o,u=t.slice(1),s=u[0],c=u[1],h=u[2],l=u[3],f=u[4],p=u[5];return a=n,i=3*((p-(o=e))*(s+h)-(f-a)*(c+l)+c*(a-h)-s*(o-l)+p*(h+a/3)-f*(l+o/3))/20,n=(r=t.slice(-2))[0],e=r[1],i}).reduce(function(t,n){return t+n},0)>=0}},84329:function(t,n,e){"use strict";e.d(n,{r:function(){return a}});var r=e(97582),i=e(32262);function a(t,n,e){return(0,i.s)(t,n,(0,r.pi)((0,r.pi)({},e),{bbox:!1,length:!0})).point}},83555:function(t,n,e){"use strict";e.d(n,{g:function(){return i}});var r=e(44078);function i(t,n){var e,i,a=t.length-1,o=[],u=0,s=(i=(e=t.length)-1,t.map(function(n,r){return t.map(function(n,a){var o=r+a;return 0===a||t[o]&&"M"===t[o][0]?["M"].concat(t[o].slice(-2)):(o>=e&&(o-=i),t[o])})}));return s.forEach(function(e,i){t.slice(1).forEach(function(e,o){u+=(0,r.y)(t[(i+o)%a].slice(-2),n[o%a].slice(-2))}),o[i]=u,u=0}),s[o.indexOf(Math.min.apply(null,o))]}},69877:function(t,n,e){"use strict";e.d(n,{D:function(){return a}});var r=e(97582),i=e(32262);function a(t,n){return(0,i.s)(t,void 0,(0,r.pi)((0,r.pi)({},n),{bbox:!1,length:!0})).length}},41010:function(t,n,e){"use strict";e.d(n,{b:function(){return i}});var r=e(56346);function i(t){return(0,r.n)(t)&&t.every(function(t){var n=t[0];return n===n.toUpperCase()})}},11013:function(t,n,e){"use strict";e.d(n,{y:function(){return i}});var r=e(41010);function i(t){return(0,r.b)(t)&&t.every(function(t){var n=t[0];return"ACLMQZ".includes(n)})}},56346:function(t,n,e){"use strict";e.d(n,{n:function(){return i}});var r=e(18323);function i(t){return Array.isArray(t)&&t.every(function(t){var n=t[0].toLowerCase();return r.R[n]===t.length-1&&"achlmqstvz".includes(n)})}},17570:function(t,n,e){"use strict";function r(t,n,e){var r=t[0],i=t[1];return[r+(n[0]-r)*e,i+(n[1]-i)*e]}e.d(n,{k:function(){return r}})},32262:function(t,n,e){"use strict";e.d(n,{s:function(){return c}});var r=e(4848),i=e(17570),a=e(44078);function o(t,n,e,r,o){var u=(0,a.y)([t,n],[e,r]),s={x:0,y:0};if("number"==typeof o){if(o<=0)s={x:t,y:n};else if(o>=u)s={x:e,y:r};else{var c=(0,i.k)([t,n],[e,r],o/u);s={x:c[0],y:c[1]}}}return{length:u,point:s,min:{x:Math.min(t,e),y:Math.min(n,r)},max:{x:Math.max(t,e),y:Math.max(n,r)}}}function u(t,n){var e=t.x,r=t.y,i=n.x,a=n.y,o=Math.sqrt((Math.pow(e,2)+Math.pow(r,2))*(Math.pow(i,2)+Math.pow(a,2)));return(e*a-r*i<0?-1:1)*Math.acos((e*i+r*a)/o)}var s=e(6489);function c(t,n,e){for(var i,c,h,l,f,p,d,v,m,g=(0,r.A)(t),y="number"==typeof n,b=[],M=0,x=0,w=0,_=0,k=[],T=[],A=0,P={x:0,y:0},N=P,Z=P,O=P,E=0,I=0,R=g.length;I1&&(g*=v(_),y*=v(_));var k=(Math.pow(g,2)*Math.pow(y,2)-Math.pow(g,2)*Math.pow(w.y,2)-Math.pow(y,2)*Math.pow(w.x,2))/(Math.pow(g,2)*Math.pow(w.y,2)+Math.pow(y,2)*Math.pow(w.x,2)),T=(a!==s?1:-1)*v(k=k<0?0:k),A={x:T*(g*w.y/y),y:T*(-(y*w.x)/g)},P={x:d(b)*A.x-p(b)*A.y+(t+c)/2,y:p(b)*A.x+d(b)*A.y+(n+h)/2},N={x:(w.x-A.x)/g,y:(w.y-A.y)/y},Z=u({x:1,y:0},N),O=u(N,{x:(-w.x-A.x)/g,y:(-w.y-A.y)/y});!s&&O>0?O-=2*m:s&&O<0&&(O+=2*m);var E=Z+(O%=2*m)*l,I=g*d(E),R=y*p(E);return{x:d(b)*I-p(b)*R+P.x,y:p(b)*I+d(b)*R+P.y}}(t,n,e,r,i,s,c,h,l,Z/M)).x,_=d.y,m&&N.push({x:w,y:_}),y&&(k+=(0,a.y)(A,[w,_])),A=[w,_],x&&k>=f&&f>T[2]){var O=(k-f)/(k-T[2]);P={x:A[0]*(1-O)+T[0]*O,y:A[1]*(1-O)+T[1]*O}}T=[w,_,k]}return x&&f>=k&&(P={x:h,y:l}),{length:k,point:P,min:{x:Math.min.apply(null,N.map(function(t){return t.x})),y:Math.min.apply(null,N.map(function(t){return t.y}))},max:{x:Math.max.apply(null,N.map(function(t){return t.x})),y:Math.max.apply(null,N.map(function(t){return t.y}))}}}(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],(n||0)-E,e||{})).length,P=c.min,N=c.max,Z=c.point):"C"===v?(A=(h=(0,s.S)(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],(n||0)-E,e||{})).length,P=h.min,N=h.max,Z=h.point):"Q"===v?(A=(l=function(t,n,e,r,i,o,u,s){var c,h=s.bbox,l=void 0===h||h,f=s.length,p=void 0===f||f,d=s.sampleSize,v=void 0===d?10:d,m="number"==typeof u,g=t,y=n,b=0,M=[g,y,0],x=[g,y],w={x:0,y:0},_=[{x:g,y:y}];m&&u<=0&&(w={x:g,y:y});for(var k=0;k<=v;k+=1){if(g=(c=function(t,n,e,r,i,a,o){var u=1-o;return{x:Math.pow(u,2)*t+2*u*o*e+Math.pow(o,2)*i,y:Math.pow(u,2)*n+2*u*o*r+Math.pow(o,2)*a}}(t,n,e,r,i,o,k/v)).x,y=c.y,l&&_.push({x:g,y:y}),p&&(b+=(0,a.y)(x,[g,y])),x=[g,y],m&&b>=u&&u>M[2]){var T=(b-u)/(b-M[2]);w={x:x[0]*(1-T)+M[0]*T,y:x[1]*(1-T)+M[1]*T}}M=[g,y,b]}return m&&u>=b&&(w={x:i,y:o}),{length:b,point:w,min:{x:Math.min.apply(null,_.map(function(t){return t.x})),y:Math.min.apply(null,_.map(function(t){return t.y}))},max:{x:Math.max.apply(null,_.map(function(t){return t.x})),y:Math.max.apply(null,_.map(function(t){return t.y}))}}}(b[0],b[1],b[2],b[3],b[4],b[5],(n||0)-E,e||{})).length,P=l.min,N=l.max,Z=l.point):"Z"===v&&(A=(f=o((b=[M,x,w,_])[0],b[1],b[2],b[3],(n||0)-E)).length,P=f.min,N=f.max,Z=f.point),y&&E=n&&(O=Z),T.push(N),k.push(P),E+=A,M=(p="Z"!==v?m.slice(-2):[w,_])[0],x=p[1];return y&&n>=E&&(O={x:M,y:x}),{length:E,point:O,min:{x:Math.min.apply(null,k.map(function(t){return t.x})),y:Math.min.apply(null,k.map(function(t){return t.y}))},max:{x:Math.max.apply(null,T.map(function(t){return t.x})),y:Math.max.apply(null,T.map(function(t){return t.y}))}}}},6489:function(t,n,e){"use strict";e.d(n,{S:function(){return i}});var r=e(44078);function i(t,n,e,i,a,o,u,s,c,h){var l,f=h.bbox,p=void 0===f||f,d=h.length,v=void 0===d||d,m=h.sampleSize,g=void 0===m?10:m,y="number"==typeof c,b=t,M=n,x=0,w=[b,M,0],_=[b,M],k={x:0,y:0},T=[{x:b,y:M}];y&&c<=0&&(k={x:b,y:M});for(var A=0;A<=g;A+=1){if(b=(l=function(t,n,e,r,i,a,o,u,s){var c=1-s;return{x:Math.pow(c,3)*t+3*Math.pow(c,2)*s*e+3*c*Math.pow(s,2)*i+Math.pow(s,3)*o,y:Math.pow(c,3)*n+3*Math.pow(c,2)*s*r+3*c*Math.pow(s,2)*a+Math.pow(s,3)*u}}(t,n,e,i,a,o,u,s,A/g)).x,M=l.y,p&&T.push({x:b,y:M}),v&&(x+=(0,r.y)(_,[b,M])),_=[b,M],y&&x>=c&&c>w[2]){var P=(x-c)/(x-w[2]);k={x:_[0]*(1-P)+w[0]*P,y:_[1]*(1-P)+w[1]*P}}w=[b,M,x]}return y&&c>=x&&(k={x:u,y:s}),{length:x,point:k,min:{x:Math.min.apply(null,T.map(function(t){return t.x})),y:Math.min.apply(null,T.map(function(t){return t.y}))},max:{x:Math.max.apply(null,T.map(function(t){return t.x})),y:Math.max.apply(null,T.map(function(t){return t.y}))}}}},8874:function(t){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},19818:function(t,n,e){var r=e(8874),i=e(86851),a=Object.hasOwnProperty,o=Object.create(null);for(var u in r)a.call(r,u)&&(o[r[u]]=u);var s=t.exports={to:{},get:{}};function c(t,n,e){return Math.min(Math.max(n,t),e)}function h(t){var n=Math.round(t).toString(16).toUpperCase();return n.length<2?"0"+n:n}s.get=function(t){var n,e;switch(t.substring(0,3).toLowerCase()){case"hsl":n=s.get.hsl(t),e="hsl";break;case"hwb":n=s.get.hwb(t),e="hwb";break;default:n=s.get.rgb(t),e="rgb"}return n?{model:e,value:n}:null},s.get.rgb=function(t){if(!t)return null;var n,e,i,o=[0,0,0,1];if(n=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(e=0,i=n[2],n=n[1];e<3;e++){var u=2*e;o[e]=parseInt(n.slice(u,u+2),16)}i&&(o[3]=parseInt(i,16)/255)}else if(n=t.match(/^#([a-f0-9]{3,4})$/i)){for(e=0,i=(n=n[1])[3];e<3;e++)o[e]=parseInt(n[e]+n[e],16);i&&(o[3]=parseInt(i+i,16)/255)}else if(n=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(e=0;e<3;e++)o[e]=parseInt(n[e+1],0);n[4]&&(n[5]?o[3]=.01*parseFloat(n[4]):o[3]=parseFloat(n[4]))}else if(n=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(e=0;e<3;e++)o[e]=Math.round(2.55*parseFloat(n[e+1]));n[4]&&(n[5]?o[3]=.01*parseFloat(n[4]):o[3]=parseFloat(n[4]))}else if(!(n=t.match(/^(\w+)$/)))return null;else return"transparent"===n[1]?[0,0,0,0]:a.call(r,n[1])?((o=r[n[1]])[3]=1,o):null;for(e=0;e<3;e++)o[e]=c(o[e],0,255);return o[3]=c(o[3],0,1),o},s.get.hsl=function(t){if(!t)return null;var n=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(n){var e=parseFloat(n[4]);return[(parseFloat(n[1])%360+360)%360,c(parseFloat(n[2]),0,100),c(parseFloat(n[3]),0,100),c(isNaN(e)?1:e,0,1)]}return null},s.get.hwb=function(t){if(!t)return null;var n=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(n){var e=parseFloat(n[4]);return[(parseFloat(n[1])%360+360)%360,c(parseFloat(n[2]),0,100),c(parseFloat(n[3]),0,100),c(isNaN(e)?1:e,0,1)]}return null},s.to.hex=function(){var t=i(arguments);return"#"+h(t[0])+h(t[1])+h(t[2])+(t[3]<1?h(Math.round(255*t[3])):"")},s.to.rgb=function(){var t=i(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},s.to.rgb.percent=function(){var t=i(arguments),n=Math.round(t[0]/255*100),e=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+n+"%, "+e+"%, "+r+"%)":"rgba("+n+"%, "+e+"%, "+r+"%, "+t[3]+")"},s.to.hsl=function(){var t=i(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},s.to.hwb=function(){var t=i(arguments),n="";return t.length>=4&&1!==t[3]&&(n=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+n+")"},s.to.keyword=function(t){return o[t.slice(0,3)]}},16372:function(t,n,e){"use strict";e.d(n,{B8:function(){return k},Il:function(){return i},J5:function(){return o},SU:function(){return _},Ss:function(){return T},ZP:function(){return M},xV:function(){return a}});var r=e(44087);function i(){}var a=.7,o=1.4285714285714286,u="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",h=/^#([0-9a-f]{3,8})$/,l=RegExp("^rgb\\("+[u,u,u]+"\\)$"),f=RegExp("^rgb\\("+[c,c,c]+"\\)$"),p=RegExp("^rgba\\("+[u,u,u,s]+"\\)$"),d=RegExp("^rgba\\("+[c,c,c,s]+"\\)$"),v=RegExp("^hsl\\("+[s,c,c]+"\\)$"),m=RegExp("^hsla\\("+[s,c,c,s]+"\\)$"),g={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 y(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function M(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=h.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?x(n):3===e?new T(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?w(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?w(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=l.exec(t))?new T(n[1],n[2],n[3],1):(n=f.exec(t))?new T(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=p.exec(t))?w(n[1],n[2],n[3],n[4]):(n=d.exec(t))?w(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=v.exec(t))?Z(n[1],n[2]/100,n[3]/100,1):(n=m.exec(t))?Z(n[1],n[2]/100,n[3]/100,n[4]):g.hasOwnProperty(t)?x(g[t]):"transparent"===t?new T(NaN,NaN,NaN,0):null}function x(t){return new T(t>>16&255,t>>8&255,255&t,1)}function w(t,n,e,r){return r<=0&&(t=n=e=NaN),new T(t,n,e,r)}function _(t){return(t instanceof i||(t=M(t)),t)?(t=t.rgb(),new T(t.r,t.g,t.b,t.opacity)):new T}function k(t,n,e,r){return 1==arguments.length?_(t):new T(t,n,e,null==r?1:r)}function T(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function A(){return"#"+N(this.r)+N(this.g)+N(this.b)}function P(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function N(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Z(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new E(t,n,e,r)}function O(t){if(t instanceof E)return new E(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=M(t)),!t)return new E;if(t instanceof E)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,a=Math.min(n,e,r),o=Math.max(n,e,r),u=NaN,s=o-a,c=(o+a)/2;return s?(u=n===o?(e-r)/s+(e0&&c<1?0:u,new E(u,s,c,t.opacity)}function E(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function I(t,n,e){return(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)*255}(0,r.Z)(i,M,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return O(this).formatHsl()},formatRgb:b,toString:b}),(0,r.Z)(T,k,(0,r.l)(i,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new T(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new T(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){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:A,formatHex:A,formatRgb:P,toString:P})),(0,r.Z)(E,function(t,n,e,r){return 1==arguments.length?O(t):new E(t,n,e,null==r?1:r)},(0,r.l)(i,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new E(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new E(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new T(I(t>=240?t-240:t+120,i,r),I(t,i,r),I(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},44087:function(t,n,e){"use strict";function r(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function i(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}e.d(n,{Z:function(){return r},l:function(){return i}})},92626:function(t,n){"use strict";var e={value:()=>{}};function r(){for(var t,n=0,e=arguments.length,r={};n=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:n}}),o=-1,u=i.length;if(arguments.length<2){for(;++o0)for(var e,r,i=Array(e),a=0;a[l(t,n,u),t]));for(r=0,s=Array(a);r=l)){(t.data!==n||t.next)&&(0===c&&(v+=(c=(0,a.Z)(e))*c),0===p&&(v+=(p=(0,a.Z)(e))*p),v(n=(1664525*n+1013904223)%4294967296)/4294967296);function v(){m(),p.call("tick",e),a1?(null==n?l.delete(t):l.set(t,y(n)),e):l.get(t)},find:function(n,e,r){var i,a,o,u,s,c=0,h=t.length;for(null==r?r=1/0:r*=r,c=0;c1?(p.on(t,n),e):p.on(t)}}}},26464:function(t,n,e){"use strict";e.d(n,{Z:function(){return i}});var r=e(27898);function i(t){var n,e,i,a=(0,r.Z)(.1);function o(t){for(var r,a=0,o=n.length;a=(a=(v+g)/2))?v=a:g=a,(h=e>=(o=(m+y)/2))?m=o:y=o,i=p,!(p=p[l=h<<1|c]))return i[l]=d,t;if(u=+t._x.call(null,p.data),s=+t._y.call(null,p.data),n===u&&e===s)return d.next=p,i?i[l]=d:t._root=d,t;do i=i?i[l]=[,,,,]:t._root=[,,,,],(c=n>=(a=(v+g)/2))?v=a:g=a,(h=e>=(o=(m+y)/2))?m=o:y=o;while((l=h<<1|c)==(f=(s>=o)<<1|u>=a));return i[f]=p,i[l]=d,t}function i(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i}function a(t){return t[0]}function o(t){return t[1]}function u(t,n,e){var r=new s(null==n?a:n,null==e?o:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function s(t,n,e,r,i,a){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function c(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}e.d(n,{Z:function(){return u}});var h=u.prototype=s.prototype;h.copy=function(){var t,n,e=new s(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=c(r),e;for(t=[{source:r,target:e._root=[,,,,]}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=[,,,,]}):r.target[i]=c(n));return e},h.add=function(t){let n=+this._x.call(null,t),e=+this._y.call(null,t);return r(this.cover(n,e),n,e,t)},h.addAll=function(t){var n,e,i,a,o=t.length,u=Array(o),s=Array(o),c=1/0,h=1/0,l=-1/0,f=-1/0;for(e=0;el&&(l=i),af&&(f=a));if(c>l||h>f)return this;for(this.cover(c,h).cover(l,f),e=0;et||t>=i||r>n||n>=a;)switch(u=(np)&&!((o=c.y0)>d)&&!((u=c.x1)=y)<<1|t>=g)&&(c=v[v.length-1],v[v.length-1]=v[v.length-1-h],v[v.length-1-h]=c)}else{var b=t-+this._x.call(null,m.data),M=n-+this._y.call(null,m.data),x=b*b+M*M;if(x=(u=(d+m)/2))?d=u:m=u,(h=o>=(s=(v+g)/2))?v=s:g=s,n=p,!(p=p[l=h<<1|c]))return this;if(!p.length)break;(n[l+1&3]||n[l+2&3]||n[l+3&3])&&(e=n,f=l)}for(;p.data!==t;)if(r=p,!(p=p.next))return this;return((i=p.next)&&delete p.next,r)?(i?r.next=i:delete r.next,this):n?(i?n[l]=i:delete n[l],(p=n[0]||n[1]||n[2]||n[3])&&p===(n[3]||n[2]||n[1]||n[0])&&!p.length&&(e?e[f]=p:this._root=p),this):(this._root=i,this)},h.removeAll=function(t){for(var n=0,e=t.length;n=0&&n._call.call(null,t),n=n._next;--a}()}finally{a=0,function(){for(var t,n,e=r,a=1/0;e;)e._call?(a>e._time&&(a=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:r=n);i=t,b(a)}(),c=0}}function y(){var t=l.now(),n=t-s;n>1e3&&(h-=n,s=t)}function b(t){!a&&(o&&(o=clearTimeout(o)),t-c>24?(t<1/0&&(o=setTimeout(g,t-l.now()-h)),u&&(u=clearInterval(u))):(u||(s=l.now(),u=setInterval(y,1e3)),a=1,f(g)))}v.prototype=m.prototype={constructor:v,restart:function(t,n,e){if("function"!=typeof t)throw TypeError("callback is not a function");e=(null==e?p():+e)+(null==n?0:+n),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=e,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}}},49685:function(t,n,e){"use strict";e.d(n,{Ib:function(){return r},WT:function(){return i}});var r=1e-6,i="undefined"!=typeof Float32Array?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var t=0,n=arguments.length;n--;)t+=arguments[n]*arguments[n];return Math.sqrt(t)})},35600:function(t,n,e){"use strict";e.d(n,{Ue:function(){return i},al:function(){return o},xO:function(){return a}});var r=e(49685);function i(){var t=new r.WT(9);return r.WT!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function o(t,n,e,i,a,o,u,s,c){var h=new r.WT(9);return h[0]=t,h[1]=n,h[2]=e,h[3]=i,h[4]=a,h[5]=o,h[6]=u,h[7]=s,h[8]=c,h}},85975:function(t,n,e){"use strict";e.r(n),e.d(n,{add:function(){return $},adjoint:function(){return f},clone:function(){return a},copy:function(){return o},create:function(){return i},determinant:function(){return p},equals:function(){return J},exactEquals:function(){return Y},frob:function(){return U},fromQuat:function(){return F},fromQuat2:function(){return N},fromRotation:function(){return _},fromRotationTranslation:function(){return P},fromRotationTranslationScale:function(){return I},fromRotationTranslationScaleOrigin:function(){return R},fromScaling:function(){return w},fromTranslation:function(){return x},fromValues:function(){return u},fromXRotation:function(){return k},fromYRotation:function(){return T},fromZRotation:function(){return A},frustum:function(){return C},getRotation:function(){return E},getScaling:function(){return O},getTranslation:function(){return Z},identity:function(){return c},invert:function(){return l},lookAt:function(){return V},mul:function(){return Q},multiply:function(){return d},multiplyScalar:function(){return B},multiplyScalarAndAdd:function(){return X},ortho:function(){return W},orthoNO:function(){return L},orthoZO:function(){return z},perspective:function(){return D},perspectiveFromFieldOfView:function(){return j},perspectiveNO:function(){return q},perspectiveZO:function(){return S},rotate:function(){return g},rotateX:function(){return y},rotateY:function(){return b},rotateZ:function(){return M},scale:function(){return m},set:function(){return s},str:function(){return K},sub:function(){return tt},subtract:function(){return H},targetTo:function(){return G},translate:function(){return v},transpose:function(){return h}});var r=e(49685);function i(){var t=new r.WT(16);return r.WT!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function a(t){var n=new r.WT(16);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[8]=t[8],n[9]=t[9],n[10]=t[10],n[11]=t[11],n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15],n}function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function u(t,n,e,i,a,o,u,s,c,h,l,f,p,d,v,m){var g=new r.WT(16);return g[0]=t,g[1]=n,g[2]=e,g[3]=i,g[4]=a,g[5]=o,g[6]=u,g[7]=s,g[8]=c,g[9]=h,g[10]=l,g[11]=f,g[12]=p,g[13]=d,g[14]=v,g[15]=m,g}function s(t,n,e,r,i,a,o,u,s,c,h,l,f,p,d,v,m){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=u,t[7]=s,t[8]=c,t[9]=h,t[10]=l,t[11]=f,t[12]=p,t[13]=d,t[14]=v,t[15]=m,t}function c(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function h(t,n){if(t===n){var e=n[1],r=n[2],i=n[3],a=n[6],o=n[7],u=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=e,t[6]=n[9],t[7]=n[13],t[8]=r,t[9]=a,t[11]=n[14],t[12]=i,t[13]=o,t[14]=u}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t}function l(t,n){var e=n[0],r=n[1],i=n[2],a=n[3],o=n[4],u=n[5],s=n[6],c=n[7],h=n[8],l=n[9],f=n[10],p=n[11],d=n[12],v=n[13],m=n[14],g=n[15],y=e*u-r*o,b=e*s-i*o,M=e*c-a*o,x=r*s-i*u,w=r*c-a*u,_=i*c-a*s,k=h*v-l*d,T=h*m-f*d,A=h*g-p*d,P=l*m-f*v,N=l*g-p*v,Z=f*g-p*m,O=y*Z-b*N+M*P+x*A-w*T+_*k;return O?(O=1/O,t[0]=(u*Z-s*N+c*P)*O,t[1]=(i*N-r*Z-a*P)*O,t[2]=(v*_-m*w+g*x)*O,t[3]=(f*w-l*_-p*x)*O,t[4]=(s*A-o*Z-c*T)*O,t[5]=(e*Z-i*A+a*T)*O,t[6]=(m*M-d*_-g*b)*O,t[7]=(h*_-f*M+p*b)*O,t[8]=(o*N-u*A+c*k)*O,t[9]=(r*A-e*N-a*k)*O,t[10]=(d*w-v*M+g*y)*O,t[11]=(l*M-h*w-p*y)*O,t[12]=(u*T-o*P-s*k)*O,t[13]=(e*P-r*T+i*k)*O,t[14]=(v*b-d*x-m*y)*O,t[15]=(h*x-l*b+f*y)*O,t):null}function f(t,n){var e=n[0],r=n[1],i=n[2],a=n[3],o=n[4],u=n[5],s=n[6],c=n[7],h=n[8],l=n[9],f=n[10],p=n[11],d=n[12],v=n[13],m=n[14],g=n[15];return t[0]=u*(f*g-p*m)-l*(s*g-c*m)+v*(s*p-c*f),t[1]=-(r*(f*g-p*m)-l*(i*g-a*m)+v*(i*p-a*f)),t[2]=r*(s*g-c*m)-u*(i*g-a*m)+v*(i*c-a*s),t[3]=-(r*(s*p-c*f)-u*(i*p-a*f)+l*(i*c-a*s)),t[4]=-(o*(f*g-p*m)-h*(s*g-c*m)+d*(s*p-c*f)),t[5]=e*(f*g-p*m)-h*(i*g-a*m)+d*(i*p-a*f),t[6]=-(e*(s*g-c*m)-o*(i*g-a*m)+d*(i*c-a*s)),t[7]=e*(s*p-c*f)-o*(i*p-a*f)+h*(i*c-a*s),t[8]=o*(l*g-p*v)-h*(u*g-c*v)+d*(u*p-c*l),t[9]=-(e*(l*g-p*v)-h*(r*g-a*v)+d*(r*p-a*l)),t[10]=e*(u*g-c*v)-o*(r*g-a*v)+d*(r*c-a*u),t[11]=-(e*(u*p-c*l)-o*(r*p-a*l)+h*(r*c-a*u)),t[12]=-(o*(l*m-f*v)-h*(u*m-s*v)+d*(u*f-s*l)),t[13]=e*(l*m-f*v)-h*(r*m-i*v)+d*(r*f-i*l),t[14]=-(e*(u*m-s*v)-o*(r*m-i*v)+d*(r*s-i*u)),t[15]=e*(u*f-s*l)-o*(r*f-i*l)+h*(r*s-i*u),t}function p(t){var n=t[0],e=t[1],r=t[2],i=t[3],a=t[4],o=t[5],u=t[6],s=t[7],c=t[8],h=t[9],l=t[10],f=t[11],p=t[12],d=t[13],v=t[14],m=t[15];return(n*o-e*a)*(l*m-f*v)-(n*u-r*a)*(h*m-f*d)+(n*s-i*a)*(h*v-l*d)+(e*u-r*o)*(c*m-f*p)-(e*s-i*o)*(c*v-l*p)+(r*s-i*u)*(c*d-h*p)}function d(t,n,e){var r=n[0],i=n[1],a=n[2],o=n[3],u=n[4],s=n[5],c=n[6],h=n[7],l=n[8],f=n[9],p=n[10],d=n[11],v=n[12],m=n[13],g=n[14],y=n[15],b=e[0],M=e[1],x=e[2],w=e[3];return t[0]=b*r+M*u+x*l+w*v,t[1]=b*i+M*s+x*f+w*m,t[2]=b*a+M*c+x*p+w*g,t[3]=b*o+M*h+x*d+w*y,b=e[4],M=e[5],x=e[6],w=e[7],t[4]=b*r+M*u+x*l+w*v,t[5]=b*i+M*s+x*f+w*m,t[6]=b*a+M*c+x*p+w*g,t[7]=b*o+M*h+x*d+w*y,b=e[8],M=e[9],x=e[10],w=e[11],t[8]=b*r+M*u+x*l+w*v,t[9]=b*i+M*s+x*f+w*m,t[10]=b*a+M*c+x*p+w*g,t[11]=b*o+M*h+x*d+w*y,b=e[12],M=e[13],x=e[14],w=e[15],t[12]=b*r+M*u+x*l+w*v,t[13]=b*i+M*s+x*f+w*m,t[14]=b*a+M*c+x*p+w*g,t[15]=b*o+M*h+x*d+w*y,t}function v(t,n,e){var r,i,a,o,u,s,c,h,l,f,p,d,v=e[0],m=e[1],g=e[2];return n===t?(t[12]=n[0]*v+n[4]*m+n[8]*g+n[12],t[13]=n[1]*v+n[5]*m+n[9]*g+n[13],t[14]=n[2]*v+n[6]*m+n[10]*g+n[14],t[15]=n[3]*v+n[7]*m+n[11]*g+n[15]):(r=n[0],i=n[1],a=n[2],o=n[3],u=n[4],s=n[5],c=n[6],h=n[7],l=n[8],f=n[9],p=n[10],d=n[11],t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=u,t[5]=s,t[6]=c,t[7]=h,t[8]=l,t[9]=f,t[10]=p,t[11]=d,t[12]=r*v+u*m+l*g+n[12],t[13]=i*v+s*m+f*g+n[13],t[14]=a*v+c*m+p*g+n[14],t[15]=o*v+h*m+d*g+n[15]),t}function m(t,n,e){var r=e[0],i=e[1],a=e[2];return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=n[7]*i,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=n[11]*a,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function g(t,n,e,i){var a,o,u,s,c,h,l,f,p,d,v,m,g,y,b,M,x,w,_,k,T,A,P,N,Z=i[0],O=i[1],E=i[2],I=Math.hypot(Z,O,E);return I0?(e[0]=(s*u+l*i+c*o-h*a)*2/f,e[1]=(c*u+l*a+h*i-s*o)*2/f,e[2]=(h*u+l*o+s*a-c*i)*2/f):(e[0]=(s*u+l*i+c*o-h*a)*2,e[1]=(c*u+l*a+h*i-s*o)*2,e[2]=(h*u+l*o+s*a-c*i)*2),P(t,n,e),t}function Z(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function O(t,n){var e=n[0],r=n[1],i=n[2],a=n[4],o=n[5],u=n[6],s=n[8],c=n[9],h=n[10];return t[0]=Math.hypot(e,r,i),t[1]=Math.hypot(a,o,u),t[2]=Math.hypot(s,c,h),t}function E(t,n){var e=new r.WT(3);O(e,n);var i=1/e[0],a=1/e[1],o=1/e[2],u=n[0]*i,s=n[1]*a,c=n[2]*o,h=n[4]*i,l=n[5]*a,f=n[6]*o,p=n[8]*i,d=n[9]*a,v=n[10]*o,m=u+l+v,g=0;return m>0?(g=2*Math.sqrt(m+1),t[3]=.25*g,t[0]=(f-d)/g,t[1]=(p-c)/g,t[2]=(s-h)/g):u>l&&u>v?(g=2*Math.sqrt(1+u-l-v),t[3]=(f-d)/g,t[0]=.25*g,t[1]=(s+h)/g,t[2]=(p+c)/g):l>v?(g=2*Math.sqrt(1+l-u-v),t[3]=(p-c)/g,t[0]=(s+h)/g,t[1]=.25*g,t[2]=(f+d)/g):(g=2*Math.sqrt(1+v-u-l),t[3]=(s-h)/g,t[0]=(p+c)/g,t[1]=(f+d)/g,t[2]=.25*g),t}function I(t,n,e,r){var i=n[0],a=n[1],o=n[2],u=n[3],s=i+i,c=a+a,h=o+o,l=i*s,f=i*c,p=i*h,d=a*c,v=a*h,m=o*h,g=u*s,y=u*c,b=u*h,M=r[0],x=r[1],w=r[2];return t[0]=(1-(d+m))*M,t[1]=(f+b)*M,t[2]=(p-y)*M,t[3]=0,t[4]=(f-b)*x,t[5]=(1-(l+m))*x,t[6]=(v+g)*x,t[7]=0,t[8]=(p+y)*w,t[9]=(v-g)*w,t[10]=(1-(l+d))*w,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function R(t,n,e,r,i){var a=n[0],o=n[1],u=n[2],s=n[3],c=a+a,h=o+o,l=u+u,f=a*c,p=a*h,d=a*l,v=o*h,m=o*l,g=u*l,y=s*c,b=s*h,M=s*l,x=r[0],w=r[1],_=r[2],k=i[0],T=i[1],A=i[2],P=(1-(v+g))*x,N=(p+M)*x,Z=(d-b)*x,O=(p-M)*w,E=(1-(f+g))*w,I=(m+y)*w,R=(d+b)*_,F=(m-y)*_,C=(1-(f+v))*_;return t[0]=P,t[1]=N,t[2]=Z,t[3]=0,t[4]=O,t[5]=E,t[6]=I,t[7]=0,t[8]=R,t[9]=F,t[10]=C,t[11]=0,t[12]=e[0]+k-(P*k+O*T+R*A),t[13]=e[1]+T-(N*k+E*T+F*A),t[14]=e[2]+A-(Z*k+I*T+C*A),t[15]=1,t}function F(t,n){var e=n[0],r=n[1],i=n[2],a=n[3],o=e+e,u=r+r,s=i+i,c=e*o,h=r*o,l=r*u,f=i*o,p=i*u,d=i*s,v=a*o,m=a*u,g=a*s;return t[0]=1-l-d,t[1]=h+g,t[2]=f-m,t[3]=0,t[4]=h-g,t[5]=1-c-d,t[6]=p+v,t[7]=0,t[8]=f+m,t[9]=p-v,t[10]=1-c-l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function C(t,n,e,r,i,a,o){var u=1/(e-n),s=1/(i-r),c=1/(a-o);return t[0]=2*a*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*s,t[6]=0,t[7]=0,t[8]=(e+n)*u,t[9]=(i+r)*s,t[10]=(o+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*c,t[15]=0,t}function q(t,n,e,r,i){var a,o=1/Math.tan(n/2);return t[0]=o/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(a=1/(r-i),t[10]=(i+r)*a,t[14]=2*i*r*a):(t[10]=-1,t[14]=-2*r),t}var D=q;function S(t,n,e,r,i){var a,o=1/Math.tan(n/2);return t[0]=o/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(a=1/(r-i),t[10]=i*a,t[14]=i*r*a):(t[10]=-1,t[14]=-r),t}function j(t,n,e,r){var i=Math.tan(n.upDegrees*Math.PI/180),a=Math.tan(n.downDegrees*Math.PI/180),o=Math.tan(n.leftDegrees*Math.PI/180),u=Math.tan(n.rightDegrees*Math.PI/180),s=2/(o+u),c=2/(i+a);return t[0]=s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-((o-u)*s*.5),t[9]=(i-a)*c*.5,t[10]=r/(e-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*e/(e-r),t[15]=0,t}function L(t,n,e,r,i,a,o){var u=1/(n-e),s=1/(r-i),c=1/(a-o);return t[0]=-2*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(n+e)*u,t[13]=(i+r)*s,t[14]=(o+a)*c,t[15]=1,t}var W=L;function z(t,n,e,r,i,a,o){var u=1/(n-e),s=1/(r-i),c=1/(a-o);return t[0]=-2*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=c,t[11]=0,t[12]=(n+e)*u,t[13]=(i+r)*s,t[14]=a*c,t[15]=1,t}function V(t,n,e,i){var a,o,u,s,h,l,f,p,d,v,m=n[0],g=n[1],y=n[2],b=i[0],M=i[1],x=i[2],w=e[0],_=e[1],k=e[2];return Math.abs(m-w)0&&(h*=p=1/Math.sqrt(p),l*=p,f*=p);var d=s*f-c*l,v=c*h-u*f,m=u*l-s*h;return(p=d*d+v*v+m*m)>0&&(d*=p=1/Math.sqrt(p),v*=p,m*=p),t[0]=d,t[1]=v,t[2]=m,t[3]=0,t[4]=l*m-f*v,t[5]=f*d-h*m,t[6]=h*v-l*d,t[7]=0,t[8]=h,t[9]=l,t[10]=f,t[11]=0,t[12]=i,t[13]=a,t[14]=o,t[15]=1,t}function K(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function U(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function $(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t[9]=n[9]+e[9],t[10]=n[10]+e[10],t[11]=n[11]+e[11],t[12]=n[12]+e[12],t[13]=n[13]+e[13],t[14]=n[14]+e[14],t[15]=n[15]+e[15],t}function H(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t[9]=n[9]-e[9],t[10]=n[10]-e[10],t[11]=n[11]-e[11],t[12]=n[12]-e[12],t[13]=n[13]-e[13],t[14]=n[14]-e[14],t[15]=n[15]-e[15],t}function B(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t[9]=n[9]*e,t[10]=n[10]*e,t[11]=n[11]*e,t[12]=n[12]*e,t[13]=n[13]*e,t[14]=n[14]*e,t[15]=n[15]*e,t}function X(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t[9]=n[9]+e[9]*r,t[10]=n[10]+e[10]*r,t[11]=n[11]+e[11]*r,t[12]=n[12]+e[12]*r,t[13]=n[13]+e[13]*r,t[14]=n[14]+e[14]*r,t[15]=n[15]+e[15]*r,t}function Y(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}function J(t,n){var e=t[0],i=t[1],a=t[2],o=t[3],u=t[4],s=t[5],c=t[6],h=t[7],l=t[8],f=t[9],p=t[10],d=t[11],v=t[12],m=t[13],g=t[14],y=t[15],b=n[0],M=n[1],x=n[2],w=n[3],_=n[4],k=n[5],T=n[6],A=n[7],P=n[8],N=n[9],Z=n[10],O=n[11],E=n[12],I=n[13],R=n[14],F=n[15];return Math.abs(e-b)<=r.Ib*Math.max(1,Math.abs(e),Math.abs(b))&&Math.abs(i-M)<=r.Ib*Math.max(1,Math.abs(i),Math.abs(M))&&Math.abs(a-x)<=r.Ib*Math.max(1,Math.abs(a),Math.abs(x))&&Math.abs(o-w)<=r.Ib*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(u-_)<=r.Ib*Math.max(1,Math.abs(u),Math.abs(_))&&Math.abs(s-k)<=r.Ib*Math.max(1,Math.abs(s),Math.abs(k))&&Math.abs(c-T)<=r.Ib*Math.max(1,Math.abs(c),Math.abs(T))&&Math.abs(h-A)<=r.Ib*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(l-P)<=r.Ib*Math.max(1,Math.abs(l),Math.abs(P))&&Math.abs(f-N)<=r.Ib*Math.max(1,Math.abs(f),Math.abs(N))&&Math.abs(p-Z)<=r.Ib*Math.max(1,Math.abs(p),Math.abs(Z))&&Math.abs(d-O)<=r.Ib*Math.max(1,Math.abs(d),Math.abs(O))&&Math.abs(v-E)<=r.Ib*Math.max(1,Math.abs(v),Math.abs(E))&&Math.abs(m-I)<=r.Ib*Math.max(1,Math.abs(m),Math.abs(I))&&Math.abs(g-R)<=r.Ib*Math.max(1,Math.abs(g),Math.abs(R))&&Math.abs(y-F)<=r.Ib*Math.max(1,Math.abs(y),Math.abs(F))}var Q=d,tt=H},32945:function(t,n,e){"use strict";e.d(n,{Fv:function(){return v},JG:function(){return p},Jp:function(){return c},Su:function(){return l},U_:function(){return h},Ue:function(){return u},al:function(){return f},dC:function(){return d},yY:function(){return s}});var r=e(49685),i=e(35600),a=e(77160),o=e(98333);function u(){var t=new r.WT(4);return r.WT!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function s(t,n,e){var r=Math.sin(e*=.5);return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=Math.cos(e),t}function c(t,n,e){var r=n[0],i=n[1],a=n[2],o=n[3],u=e[0],s=e[1],c=e[2],h=e[3];return t[0]=r*h+o*u+i*c-a*s,t[1]=i*h+o*s+a*u-r*c,t[2]=a*h+o*c+r*s-i*u,t[3]=o*h-r*u-i*s-a*c,t}function h(t,n){var e=n[0],r=n[1],i=n[2],a=n[3],o=e*e+r*r+i*i+a*a,u=o?1/o:0;return t[0]=-e*u,t[1]=-r*u,t[2]=-i*u,t[3]=a*u,t}function l(t,n,e,r){var i=.5*Math.PI/180,a=Math.sin(n*=i),o=Math.cos(n),u=Math.sin(e*=i),s=Math.cos(e),c=Math.sin(r*=i),h=Math.cos(r);return t[0]=a*s*h-o*u*c,t[1]=o*u*h+a*s*c,t[2]=o*s*c-a*u*h,t[3]=o*s*h+a*u*c,t}o.d9;var f=o.al,p=o.JG;o.t8,o.IH;var d=c;o.bA,o.AK,o.t7,o.kE,o.we;var v=o.Fv;o.I6,o.fS,a.Ue(),a.al(1,0,0),a.al(0,1,0),u(),u(),i.Ue()},31437:function(t,n,e){"use strict";e.d(n,{AK:function(){return s},Fv:function(){return u},I6:function(){return c},JG:function(){return o},al:function(){return a}});var r,i=e(49685);function a(t,n){var e=new i.WT(2);return e[0]=t,e[1]=n,e}function o(t,n){return t[0]=n[0],t[1]=n[1],t}function u(t,n){var e=n[0],r=n[1],i=e*e+r*r;return i>0&&(i=1/Math.sqrt(i)),t[0]=n[0]*i,t[1]=n[1]*i,t}function s(t,n){return t[0]*n[0]+t[1]*n[1]}function c(t,n){return t[0]===n[0]&&t[1]===n[1]}r=new i.WT(2),i.WT!=Float32Array&&(r[0]=0,r[1]=0)},77160:function(t,n,e){"use strict";e.d(n,{$X:function(){return l},AK:function(){return v},Fv:function(){return d},IH:function(){return h},JG:function(){return s},Jp:function(){return f},TK:function(){return w},Ue:function(){return i},VC:function(){return M},Zh:function(){return _},al:function(){return u},bA:function(){return p},d9:function(){return a},fF:function(){return y},fS:function(){return x},kC:function(){return m},kE:function(){return o},kK:function(){return b},t7:function(){return g},t8:function(){return c}});var r=e(49685);function i(){var t=new r.WT(3);return r.WT!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function a(t){var n=new r.WT(3);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function o(t){return Math.hypot(t[0],t[1],t[2])}function u(t,n,e){var i=new r.WT(3);return i[0]=t,i[1]=n,i[2]=e,i}function s(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function c(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function h(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function l(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function f(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function p(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function d(t,n){var e=n[0],r=n[1],i=n[2],a=e*e+r*r+i*i;return a>0&&(a=1/Math.sqrt(a)),t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t}function v(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function m(t,n,e){var r=n[0],i=n[1],a=n[2],o=e[0],u=e[1],s=e[2];return t[0]=i*s-a*u,t[1]=a*o-r*s,t[2]=r*u-i*o,t}function g(t,n,e,r){var i=n[0],a=n[1],o=n[2];return t[0]=i+r*(e[0]-i),t[1]=a+r*(e[1]-a),t[2]=o+r*(e[2]-o),t}function y(t,n,e){var r=n[0],i=n[1],a=n[2],o=e[3]*r+e[7]*i+e[11]*a+e[15];return o=o||1,t[0]=(e[0]*r+e[4]*i+e[8]*a+e[12])/o,t[1]=(e[1]*r+e[5]*i+e[9]*a+e[13])/o,t[2]=(e[2]*r+e[6]*i+e[10]*a+e[14])/o,t}function b(t,n,e){var r=n[0],i=n[1],a=n[2];return t[0]=r*e[0]+i*e[3]+a*e[6],t[1]=r*e[1]+i*e[4]+a*e[7],t[2]=r*e[2]+i*e[5]+a*e[8],t}function M(t,n,e){var r=e[0],i=e[1],a=e[2],o=e[3],u=n[0],s=n[1],c=n[2],h=i*c-a*s,l=a*u-r*c,f=r*s-i*u,p=i*f-a*l,d=a*h-r*f,v=r*l-i*h,m=2*o;return h*=m,l*=m,f*=m,p*=2,d*=2,v*=2,t[0]=u+h+p,t[1]=s+l+d,t[2]=c+f+v,t}function x(t,n){var e=t[0],i=t[1],a=t[2],o=n[0],u=n[1],s=n[2];return Math.abs(e-o)<=r.Ib*Math.max(1,Math.abs(e),Math.abs(o))&&Math.abs(i-u)<=r.Ib*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(a-s)<=r.Ib*Math.max(1,Math.abs(a),Math.abs(s))}var w=function(t,n){return Math.hypot(n[0]-t[0],n[1]-t[1],n[2]-t[2])},_=o;i()},98333:function(t,n,e){"use strict";e.d(n,{AK:function(){return d},Fv:function(){return p},I6:function(){return g},IH:function(){return c},JG:function(){return u},Ue:function(){return i},al:function(){return o},bA:function(){return h},d9:function(){return a},fF:function(){return m},fS:function(){return y},kE:function(){return l},t7:function(){return v},t8:function(){return s},we:function(){return f}});var r=e(49685);function i(){var t=new r.WT(4);return r.WT!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function a(t){var n=new r.WT(4);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n}function o(t,n,e,i){var a=new r.WT(4);return a[0]=t,a[1]=n,a[2]=e,a[3]=i,a}function u(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function s(t,n,e,r,i){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t}function c(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t}function h(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t}function l(t){return Math.hypot(t[0],t[1],t[2],t[3])}function f(t){var n=t[0],e=t[1],r=t[2],i=t[3];return n*n+e*e+r*r+i*i}function p(t,n){var e=n[0],r=n[1],i=n[2],a=n[3],o=e*e+r*r+i*i+a*a;return o>0&&(o=1/Math.sqrt(o)),t[0]=e*o,t[1]=r*o,t[2]=i*o,t[3]=a*o,t}function d(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function v(t,n,e,r){var i=n[0],a=n[1],o=n[2],u=n[3];return t[0]=i+r*(e[0]-i),t[1]=a+r*(e[1]-a),t[2]=o+r*(e[2]-o),t[3]=u+r*(e[3]-u),t}function m(t,n,e){var r=n[0],i=n[1],a=n[2],o=n[3];return t[0]=e[0]*r+e[4]*i+e[8]*a+e[12]*o,t[1]=e[1]*r+e[5]*i+e[9]*a+e[13]*o,t[2]=e[2]*r+e[6]*i+e[10]*a+e[14]*o,t[3]=e[3]*r+e[7]*i+e[11]*a+e[15]*o,t}function g(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function y(t,n){var e=t[0],i=t[1],a=t[2],o=t[3],u=n[0],s=n[1],c=n[2],h=n[3];return Math.abs(e-u)<=r.Ib*Math.max(1,Math.abs(e),Math.abs(u))&&Math.abs(i-s)<=r.Ib*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(a-c)<=r.Ib*Math.max(1,Math.abs(a),Math.abs(c))&&Math.abs(o-h)<=r.Ib*Math.max(1,Math.abs(o),Math.abs(h))}i()},35171:function(t){t.exports=function(t){return!!t&&"string"!=typeof t&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},86851:function(t,n,e){"use strict";var r=e(35171),i=Array.prototype.concat,a=Array.prototype.slice,o=t.exports=function(t){for(var n=[],e=0,o=t.length;et?(r&&(clearTimeout(r),r=null),s=c,o=e.apply(a,i),r||(a=i=null)):r||!1===n.trailing||(r=setTimeout(l,u)),o};return c.cancel=function(){clearTimeout(r),s=0,r=a=i=null},c}},92123:function(e,t,n){"use strict";var r=n(95147);t.Z=function(e){return(0,r.Z)(e)?"":e.toString()}},83914:function(e,t,n){"use strict";var r=n(92123);t.Z=function(e){var t=(0,r.Z)(e);return t.charAt(0).toUpperCase()+t.substring(1)}},47727:function(e,t,n){"use strict";var r=n(28549),a=n(85893);t.Z=(0,r.Z)((0,a.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"CheckOutlined")},15273:function(e,t,n){"use strict";var r=n(28549),a=n(85893);t.Z=(0,r.Z)((0,a.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"CloseOutlined")},28549:function(e,t,n){"use strict";n.d(t,{Z:function(){return Q}});var r=n(87462),a=n(67294),i=n(63366),o=n(90512),s=n(58510),l=n(62908).Z,c=n(44065),u=n(78758),d=n(68027),p=n(44920),f=n(86523),m=n(88647),g=n(2101),h={black:"#000",white:"#fff"},b={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},y={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},E={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},T={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},v={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},S={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},A={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};let O=["mode","contrastThreshold","tonalOffset"],_={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:h.white,default:h.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},k={text:{primary:h.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:h.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function I(e,t,n,r){let a=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,g.$n)(e.main,a):"dark"===t&&(e.dark=(0,g._j)(e.main,i)))}let C=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],N={textTransform:"uppercase"},x='"Roboto", "Helvetica", "Arial", sans-serif';function w(...e){return`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2),${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14),${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`}let R=["none",w(0,2,1,-1,0,1,1,0,0,1,3,0),w(0,3,1,-2,0,2,2,0,0,1,5,0),w(0,3,3,-2,0,3,4,0,0,1,8,0),w(0,2,4,-1,0,4,5,0,0,1,10,0),w(0,3,5,-1,0,5,8,0,0,1,14,0),w(0,3,5,-1,0,6,10,0,0,1,18,0),w(0,4,5,-2,0,7,10,1,0,2,16,1),w(0,5,5,-3,0,8,10,1,0,3,14,2),w(0,5,6,-3,0,9,12,1,0,3,16,2),w(0,6,6,-3,0,10,14,1,0,4,18,3),w(0,6,7,-4,0,11,15,1,0,4,20,3),w(0,7,8,-4,0,12,17,2,0,5,22,4),w(0,7,8,-4,0,13,19,2,0,5,24,4),w(0,7,9,-4,0,14,21,2,0,5,26,4),w(0,8,9,-5,0,15,22,2,0,6,28,5),w(0,8,10,-5,0,16,24,2,0,6,30,5),w(0,8,11,-5,0,17,26,2,0,6,32,5),w(0,9,11,-5,0,18,28,2,0,7,34,6),w(0,9,12,-6,0,19,29,2,0,7,36,6),w(0,10,13,-6,0,20,31,3,0,8,38,7),w(0,10,13,-6,0,21,33,3,0,8,40,7),w(0,10,14,-6,0,22,35,3,0,8,42,7),w(0,11,14,-7,0,23,36,3,0,9,44,8),w(0,11,15,-7,0,24,38,3,0,9,46,8)],L=["duration","easing","delay"],D={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},P={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function M(e){return`${Math.round(e)}ms`}function F(e){if(!e)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}var B={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};let j=["breakpoints","mixins","spacing","palette","transitions","typography","shape"],U=function(e={}){var t;let{mixins:n={},palette:a={},transitions:o={},typography:s={}}=e,l=(0,i.Z)(e,j);if(e.vars)throw Error((0,u.Z)(18));let c=function(e){let{mode:t="light",contrastThreshold:n=3,tonalOffset:a=.2}=e,o=(0,i.Z)(e,O),s=e.primary||function(e="light"){return"dark"===e?{main:v[200],light:v[50],dark:v[400]}:{main:v[700],light:v[400],dark:v[800]}}(t),l=e.secondary||function(e="light"){return"dark"===e?{main:y[200],light:y[50],dark:y[400]}:{main:y[500],light:y[300],dark:y[700]}}(t),c=e.error||function(e="light"){return"dark"===e?{main:E[500],light:E[300],dark:E[700]}:{main:E[700],light:E[400],dark:E[800]}}(t),p=e.info||function(e="light"){return"dark"===e?{main:S[400],light:S[300],dark:S[700]}:{main:S[700],light:S[500],dark:S[900]}}(t),f=e.success||function(e="light"){return"dark"===e?{main:A[400],light:A[300],dark:A[700]}:{main:A[800],light:A[500],dark:A[900]}}(t),m=e.warning||function(e="light"){return"dark"===e?{main:T[400],light:T[300],dark:T[700]}:{main:"#ed6c02",light:T[500],dark:T[900]}}(t);function C(e){let t=(0,g.mi)(e,k.text.primary)>=n?k.text.primary:_.text.primary;return t}let N=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e=(0,r.Z)({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw Error((0,u.Z)(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw Error((0,u.Z)(12,t?` (${t})`:"",JSON.stringify(e.main)));return I(e,"light",i,a),I(e,"dark",o,a),e.contrastText||(e.contrastText=C(e.main)),e},x=(0,d.Z)((0,r.Z)({common:(0,r.Z)({},h),mode:t,primary:N({color:s,name:"primary"}),secondary:N({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:N({color:c,name:"error"}),warning:N({color:m,name:"warning"}),info:N({color:p,name:"info"}),success:N({color:f,name:"success"}),grey:b,contrastThreshold:n,getContrastText:C,augmentColor:N,tonalOffset:a},{dark:k,light:_}[t]),o);return x}(a),w=(0,m.Z)(e),U=(0,d.Z)(w,{mixins:(t=w.breakpoints,(0,r.Z)({toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}}},n)),palette:c,shadows:R.slice(),typography:function(e,t){let n="function"==typeof t?t(e):t,{fontFamily:a=x,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:l=400,fontWeightMedium:c=500,fontWeightBold:u=700,htmlFontSize:p=16,allVariants:f,pxToRem:m}=n,g=(0,i.Z)(n,C),h=o/14,b=m||(e=>`${e/p*h}rem`),y=(e,t,n,i,o)=>(0,r.Z)({fontFamily:a,fontWeight:e,fontSize:b(t),lineHeight:n},a===x?{letterSpacing:`${Math.round(1e5*(i/t))/1e5}em`}:{},o,f),E={h1:y(s,96,1.167,-1.5),h2:y(s,60,1.2,-.5),h3:y(l,48,1.167,0),h4:y(l,34,1.235,.25),h5:y(l,24,1.334,0),h6:y(c,20,1.6,.15),subtitle1:y(l,16,1.75,.15),subtitle2:y(c,14,1.57,.1),body1:y(l,16,1.5,.15),body2:y(l,14,1.43,.15),button:y(c,14,1.75,.4,N),caption:y(l,12,1.66,.4),overline:y(l,12,2.66,1,N),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,d.Z)((0,r.Z)({htmlFontSize:p,pxToRem:b,fontFamily:a,fontSize:o,fontWeightLight:s,fontWeightRegular:l,fontWeightMedium:c,fontWeightBold:u},E),g,{clone:!1})}(c,s),transitions:function(e){let t=(0,r.Z)({},D,e.easing),n=(0,r.Z)({},P,e.duration);return(0,r.Z)({getAutoHeightDuration:F,create:(e=["all"],r={})=>{let{duration:a=n.standard,easing:o=t.easeInOut,delay:s=0}=r;return(0,i.Z)(r,L),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof a?a:M(a)} ${o} ${"string"==typeof s?s:M(s)}`).join(",")}},e,{easing:t,duration:n})}(o),zIndex:(0,r.Z)({},B)});return(U=[].reduce((e,t)=>(0,d.Z)(e,t),U=(0,d.Z)(U,l))).unstable_sxConfig=(0,r.Z)({},p.Z,null==l?void 0:l.unstable_sxConfig),U.unstable_sx=function(e){return(0,f.Z)({sx:e,theme:this})},U}();var H="$$material",G=n(58128);let $=(0,G.ZP)({themeId:H,defaultTheme:U,rootShouldForwardProp:e=>"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e&&"classes"!==e});var z=n(1977),Z=n(8027);function W(e){return(0,Z.ZP)("MuiSvgIcon",e)}(0,z.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var Y=n(85893);let V=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],q=e=>{let{color:t,fontSize:n,classes:r}=e,a={root:["root","inherit"!==t&&`color${l(t)}`,`fontSize${l(n)}`]};return(0,s.Z)(a,W,r)},K=$("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${l(n.color)}`],t[`fontSize${l(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,a,i,o,s,l,c,u,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(a=e.transitions)||null==(a=a.duration)?void 0:a.shorter}),fontSize:({inherit:"inherit",small:(null==(i=e.typography)||null==(o=i.pxToRem)?void 0:o.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"})[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:({action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0})[t.color]}}),X=a.forwardRef(function(e,t){let n=function({props:e,name:t}){return(0,c.Z)({props:e,name:t,defaultTheme:U,themeId:H})}({props:e,name:"MuiSvgIcon"}),{children:s,className:l,color:u="inherit",component:d="svg",fontSize:p="medium",htmlColor:f,inheritViewBox:m=!1,titleAccess:g,viewBox:h="0 0 24 24"}=n,b=(0,i.Z)(n,V),y=a.isValidElement(s)&&"svg"===s.type,E=(0,r.Z)({},n,{color:u,component:d,fontSize:p,instanceFontSize:e.fontSize,inheritViewBox:m,viewBox:h,hasSvgAsChild:y}),T={};m||(T.viewBox=h);let v=q(E);return(0,Y.jsxs)(K,(0,r.Z)({as:d,className:(0,o.Z)(v.root,l),focusable:"false",color:f,"aria-hidden":!g||void 0,role:g?"img":void 0,ref:t},T,b,y&&s.props,{ownerState:E,children:[y?s.props.children:s,g?(0,Y.jsx)("title",{children:g}):null]}))});function Q(e,t){function n(n,a){return(0,Y.jsx)(X,(0,r.Z)({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return n.muiName=X.muiName,a.memo(a.forwardRef(n))}X.muiName="SvgIcon"},2101:function(e,t,n){"use strict";var r=n(64836);t._j=function(e,t){if(e=s(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return l(e)},t.mi=function(e,t){let n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.$n=function(e,t){if(e=s(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return l(e)};var a=r(n(743)),i=r(n(49425));function o(e,t=0,n=1){return(0,i.default)(e,t,n)}function s(e){let t;if(e.type)return e;if("#"===e.charAt(0))return s(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw Error((0,a.default)(9,e));let i=e.substring(n+1,e.length-1);if("color"===r){if(t=(i=i.split(" ")).shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,a.default)(10,t))}else i=i.split(",");return{type:r,values:i=i.map(e=>parseFloat(e)),colorSpace:t}}function l(e){let{type:t,colorSpace:n}=e,{values:r}=e;return -1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),`${t}(${r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`})`}function c(e){let t="hsl"===(e=s(e)).type||"hsla"===e.type?s(function(e){e=s(e);let{values:t}=e,n=t[0],r=t[1]/100,a=t[2]/100,i=r*Math.min(a,1-a),o=(e,t=(e+n/30)%12)=>a-i*Math.max(Math.min(t-3,9-t,1),-1),c="rgb",u=[Math.round(255*o(0)),Math.round(255*o(8)),Math.round(255*o(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),l({type:c,values:u})}(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}},58128:function(e,t,n){"use strict";var r=n(64836);t.ZP=function(e={}){let{themeId:t,defaultTheme:n=g,rootShouldForwardProp:r=m,slotShouldForwardProp:l=m}=e,u=e=>(0,c.default)((0,a.default)({},e,{theme:b((0,a.default)({},e,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,(e,c={})=>{var d;let f;(0,o.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));let{name:g,slot:E,skipVariantsResolver:T,skipSx:v,overridesResolver:S=(d=h(E))?(e,t)=>t[d]:null}=c,A=(0,i.default)(c,p),O=void 0!==T?T:E&&"Root"!==E&&"root"!==E||!1,_=v||!1,k=m;"Root"===E||"root"===E?k=r:E?k=l:"string"==typeof e&&e.charCodeAt(0)>96&&(k=void 0);let I=(0,o.default)(e,(0,a.default)({shouldForwardProp:k,label:f},A)),C=e=>"function"==typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?r=>y(e,(0,a.default)({},r,{theme:b({theme:r.theme,defaultTheme:n,themeId:t})})):e,N=(r,...i)=>{let o=C(r),s=i?i.map(C):[];g&&S&&s.push(e=>{let r=b((0,a.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[g]||!r.components[g].styleOverrides)return null;let i=r.components[g].styleOverrides,o={};return Object.entries(i).forEach(([t,n])=>{o[t]=y(n,(0,a.default)({},e,{theme:r}))}),S(e,o)}),g&&!O&&s.push(e=>{var r;let i=b((0,a.default)({},e,{defaultTheme:n,themeId:t})),o=null==i||null==(r=i.components)||null==(r=r[g])?void 0:r.variants;return y({variants:o},(0,a.default)({},e,{theme:i}))}),_||s.push(u);let l=s.length-i.length;if(Array.isArray(r)&&l>0){let e=Array(l).fill("");(o=[...r,...e]).raw=[...r.raw,...e]}let c=I(o,...s);return e.muiName&&(c.muiName=e.muiName),c};return I.withConfig&&(N.withConfig=I.withConfig),N}};var a=r(n(10434)),i=r(n(7071)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(23534)),s=n(211);r(n(99698)),r(n(37889));var l=r(n(19926)),c=r(n(386));let u=["ownerState"],d=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function m(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}let g=(0,l.default)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function b({defaultTheme:e,theme:t,themeId:n}){return 0===Object.keys(t).length?e:t[n]||t}function y(e,t){let{ownerState:n}=t,r=(0,i.default)(t,u),o="function"==typeof e?e((0,a.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(e=>y(e,(0,a.default)({ownerState:n},r)));if(o&&"object"==typeof o&&Array.isArray(o.variants)){let{variants:e=[]}=o,t=(0,i.default)(o,d),s=t;return e.forEach(e=>{let t=!0;"function"==typeof e.props?t=e.props((0,a.default)({ownerState:n},r,n)):Object.keys(e.props).forEach(a=>{(null==n?void 0:n[a])!==e.props[a]&&r[a]!==e.props[a]&&(t=!1)}),t&&(Array.isArray(s)||(s=[s]),s.push("function"==typeof e.style?e.style((0,a.default)({ownerState:n},r,n)):e.style))}),s}return o}},19926:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.Z},private_createBreakpoints:function(){return a.Z},unstable_applyStyles:function(){return i.Z}});var r=n(88647),a=n(41512),i=n(57064)},386:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.Z},extendSxProp:function(){return a.Z},unstable_createStyleFunctionSx:function(){return r.n},unstable_defaultSxConfig:function(){return i.Z}});var r=n(86523),a=n(39707),i=n(44920)},99698:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.Z}});var r=n(62908)},49425:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}},211:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.Z},isPlainObject:function(){return r.P}});var r=n(68027)},743:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.Z}});var r=n(78758)},37889:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l},getFunctionName:function(){return i}});var r=n(59864);let a=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function i(e){let t=`${e}`.match(a),n=t&&t[1];return n||""}function o(e,t=""){return e.displayName||e.name||i(e)||t}function s(e,t,n){let r=o(t);return e.displayName||(""!==r?`${n}(${r})`:n)}function l(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return o(e,"Component");if("object"==typeof e)switch(e.$$typeof){case r.ForwardRef:return s(e,e.render,"ForwardRef");case r.Memo:return s(e,e.type,"memo")}}}},47221:function(e,t,n){"use strict";n.d(t,{Z:function(){return z}});var r=n(67294),a=n(18073),i=n(93967),o=n.n(i),s=n(87462),l=n(74902),c=n(97685),u=n(71002),d=n(21770),p=n(80334),f=n(45987),m=n(50344),g=n(4942),h=n(29372),b=n(15105),y=r.forwardRef(function(e,t){var n=e.prefixCls,a=e.forceRender,i=e.className,s=e.style,l=e.children,u=e.isActive,d=e.role,p=r.useState(u||a),f=(0,c.Z)(p,2),m=f[0],h=f[1];return(r.useEffect(function(){(a||u)&&h(!0)},[a,u]),m)?r.createElement("div",{ref:t,className:o()("".concat(n,"-content"),(0,g.Z)((0,g.Z)({},"".concat(n,"-content-active"),u),"".concat(n,"-content-inactive"),!u),i),style:s,role:d},r.createElement("div",{className:"".concat(n,"-content-box")},l)):null});y.displayName="PanelContent";var E=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],T=r.forwardRef(function(e,t){var n=e.showArrow,a=void 0===n||n,i=e.headerClass,l=e.isActive,c=e.onItemClick,u=e.forceRender,d=e.className,p=e.prefixCls,m=e.collapsible,T=e.accordion,v=e.panelKey,S=e.extra,A=e.header,O=e.expandIcon,_=e.openMotion,k=e.destroyInactivePanel,I=e.children,C=(0,f.Z)(e,E),N="disabled"===m,x="header"===m,w="icon"===m,R=null!=S&&"boolean"!=typeof S,L=function(){null==c||c(v)},D="function"==typeof O?O(e):r.createElement("i",{className:"arrow"});D&&(D=r.createElement("div",{className:"".concat(p,"-expand-icon"),onClick:["header","icon"].includes(m)?L:void 0},D));var P=o()((0,g.Z)((0,g.Z)((0,g.Z)({},"".concat(p,"-item"),!0),"".concat(p,"-item-active"),l),"".concat(p,"-item-disabled"),N),d),M={className:o()(i,(0,g.Z)((0,g.Z)((0,g.Z)({},"".concat(p,"-header"),!0),"".concat(p,"-header-collapsible-only"),x),"".concat(p,"-icon-collapsible-only"),w)),"aria-expanded":l,"aria-disabled":N,onKeyDown:function(e){("Enter"===e.key||e.keyCode===b.Z.ENTER||e.which===b.Z.ENTER)&&L()}};return x||w||(M.onClick=L,M.role=T?"tab":"button",M.tabIndex=N?-1:0),r.createElement("div",(0,s.Z)({},C,{ref:t,className:P}),r.createElement("div",M,a&&D,r.createElement("span",{className:"".concat(p,"-header-text"),onClick:"header"===m?L:void 0},A),R&&r.createElement("div",{className:"".concat(p,"-extra")},S)),r.createElement(h.ZP,(0,s.Z)({visible:l,leavedClassName:"".concat(p,"-content-hidden")},_,{forceRender:u,removeOnLeave:k}),function(e,t){var n=e.className,a=e.style;return r.createElement(y,{ref:t,prefixCls:p,className:n,style:a,isActive:l,forceRender:u,role:T?"tabpanel":void 0},I)}))}),v=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],S=function(e,t){var n=t.prefixCls,a=t.accordion,i=t.collapsible,o=t.destroyInactivePanel,l=t.onItemClick,c=t.activeKey,u=t.openMotion,d=t.expandIcon;return e.map(function(e,t){var p=e.children,m=e.label,g=e.key,h=e.collapsible,b=e.onItemClick,y=e.destroyInactivePanel,E=(0,f.Z)(e,v),S=String(null!=g?g:t),A=null!=h?h:i,O=!1;return O=a?c[0]===S:c.indexOf(S)>-1,r.createElement(T,(0,s.Z)({},E,{prefixCls:n,key:S,panelKey:S,isActive:O,accordion:a,openMotion:u,expandIcon:d,header:m,collapsible:A,onItemClick:function(e){"disabled"!==A&&(l(e),null==b||b(e))},destroyInactivePanel:null!=y?y:o}),p)})},A=function(e,t,n){if(!e)return null;var a=n.prefixCls,i=n.accordion,o=n.collapsible,s=n.destroyInactivePanel,l=n.onItemClick,c=n.activeKey,u=n.openMotion,d=n.expandIcon,p=e.key||String(t),f=e.props,m=f.header,g=f.headerClass,h=f.destroyInactivePanel,b=f.collapsible,y=f.onItemClick,E=!1;E=i?c[0]===p:c.indexOf(p)>-1;var T=null!=b?b:o,v={key:p,panelKey:p,header:m,headerClass:g,isActive:E,prefixCls:a,destroyInactivePanel:null!=h?h:s,openMotion:u,accordion:i,children:e.props.children,onItemClick:function(e){"disabled"!==T&&(l(e),null==y||y(e))},expandIcon:d,collapsible:T};return"string"==typeof e.type?e:(Object.keys(v).forEach(function(e){void 0===v[e]&&delete v[e]}),r.cloneElement(e,v))},O=n(64217);function _(e){var t=e;if(!Array.isArray(t)){var n=(0,u.Z)(t);t="number"===n||"string"===n?[t]:[]}return t.map(function(e){return String(e)})}var k=Object.assign(r.forwardRef(function(e,t){var n,a=e.prefixCls,i=void 0===a?"rc-collapse":a,u=e.destroyInactivePanel,f=e.style,g=e.accordion,h=e.className,b=e.children,y=e.collapsible,E=e.openMotion,T=e.expandIcon,v=e.activeKey,k=e.defaultActiveKey,I=e.onChange,C=e.items,N=o()(i,h),x=(0,d.Z)([],{value:v,onChange:function(e){return null==I?void 0:I(e)},defaultValue:k,postState:_}),w=(0,c.Z)(x,2),R=w[0],L=w[1];(0,p.ZP)(!b,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var D=(n={prefixCls:i,accordion:g,openMotion:E,expandIcon:T,collapsible:y,destroyInactivePanel:void 0!==u&&u,onItemClick:function(e){return L(function(){return g?R[0]===e?[]:[e]:R.indexOf(e)>-1?R.filter(function(t){return t!==e}):[].concat((0,l.Z)(R),[e])})},activeKey:R},Array.isArray(C)?S(C,n):(0,m.Z)(b).map(function(e,t){return A(e,t,n)}));return r.createElement("div",(0,s.Z)({ref:t,className:N,style:f,role:g?"tablist":void 0},(0,O.Z)(e,{aria:!0,data:!0})),D)}),{Panel:T});k.Panel;var I=n(98423),C=n(33603),N=n(96159),x=n(53124),w=n(98675);let R=r.forwardRef((e,t)=>{let{getPrefixCls:n}=r.useContext(x.E_),{prefixCls:a,className:i,showArrow:s=!0}=e,l=n("collapse",a),c=o()({[`${l}-no-arrow`]:!s},i);return r.createElement(k.Panel,Object.assign({ref:t},e,{prefixCls:l,className:c}))});var L=n(25446),D=n(14747),P=n(33507),M=n(83559),F=n(83262);let B=e=>{let{componentCls:t,contentBg:n,padding:r,headerBg:a,headerPadding:i,collapseHeaderPaddingSM:o,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:d,colorText:p,colorTextHeading:f,colorTextDisabled:m,fontSizeLG:g,lineHeight:h,lineHeightLG:b,marginSM:y,paddingSM:E,paddingLG:T,paddingXS:v,motionDurationSlow:S,fontSizeIcon:A,contentPadding:O,fontHeight:_,fontHeightLG:k}=e,I=`${(0,L.bf)(c)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},(0,D.Wf)(e)),{backgroundColor:a,border:I,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:I,"&:last-child":{[` +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4705],{8751:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(87462),a=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},o=n(13401),s=a.forwardRef(function(e,t){return a.createElement(o.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},24019:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(87462),a=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},o=n(13401),s=a.forwardRef(function(e,t){return a.createElement(o.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},18429:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(87462),a=n(67294),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},o=n(13401),s=a.forwardRef(function(e,t){return a.createElement(o.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},43749:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(87462),a=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},o=n(13401),s=a.forwardRef(function(e,t){return a.createElement(o.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},56424:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(87462),a=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},o=n(13401),s=a.forwardRef(function(e,t){return a.createElement(o.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},32198:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(87462),a=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},o=n(13401),s=a.forwardRef(function(e,t){return a.createElement(o.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},98165:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(87462),a=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},o=n(13401),s=a.forwardRef(function(e,t){return a.createElement(o.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},35598:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(87462),a=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},o=n(13401),s=a.forwardRef(function(e,t){return a.createElement(o.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},15668:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(87462),a=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},o=n(13401),s=a.forwardRef(function(e,t){return a.createElement(o.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},47727:function(e,t,n){"use strict";var r=n(28549),a=n(85893);t.Z=(0,r.Z)((0,a.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"CheckOutlined")},15273:function(e,t,n){"use strict";var r=n(28549),a=n(85893);t.Z=(0,r.Z)((0,a.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"CloseOutlined")},28549:function(e,t,n){"use strict";n.d(t,{Z:function(){return Q}});var r=n(87462),a=n(67294),i=n(63366),o=n(90512),s=n(58510),l=n(62908).Z,c=n(44065),u=n(78758),d=n(68027),p=n(44920),f=n(86523),m=n(88647),g=n(2101),h={black:"#000",white:"#fff"},b={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},E={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},y={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},T={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},S={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},A={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},_={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};let k=["mode","contrastThreshold","tonalOffset"],I={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:h.white,default:h.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},v={text:{primary:h.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:h.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function N(e,t,n,r){let a=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,g.$n)(e.main,a):"dark"===t&&(e.dark=(0,g._j)(e.main,i)))}let C=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],R={textTransform:"uppercase"},O='"Roboto", "Helvetica", "Arial", sans-serif';function w(...e){return`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2),${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14),${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`}let x=["none",w(0,2,1,-1,0,1,1,0,0,1,3,0),w(0,3,1,-2,0,2,2,0,0,1,5,0),w(0,3,3,-2,0,3,4,0,0,1,8,0),w(0,2,4,-1,0,4,5,0,0,1,10,0),w(0,3,5,-1,0,5,8,0,0,1,14,0),w(0,3,5,-1,0,6,10,0,0,1,18,0),w(0,4,5,-2,0,7,10,1,0,2,16,1),w(0,5,5,-3,0,8,10,1,0,3,14,2),w(0,5,6,-3,0,9,12,1,0,3,16,2),w(0,6,6,-3,0,10,14,1,0,4,18,3),w(0,6,7,-4,0,11,15,1,0,4,20,3),w(0,7,8,-4,0,12,17,2,0,5,22,4),w(0,7,8,-4,0,13,19,2,0,5,24,4),w(0,7,9,-4,0,14,21,2,0,5,26,4),w(0,8,9,-5,0,15,22,2,0,6,28,5),w(0,8,10,-5,0,16,24,2,0,6,30,5),w(0,8,11,-5,0,17,26,2,0,6,32,5),w(0,9,11,-5,0,18,28,2,0,7,34,6),w(0,9,12,-6,0,19,29,2,0,7,36,6),w(0,10,13,-6,0,20,31,3,0,8,38,7),w(0,10,13,-6,0,21,33,3,0,8,40,7),w(0,10,14,-6,0,22,35,3,0,8,42,7),w(0,11,14,-7,0,23,36,3,0,9,44,8),w(0,11,15,-7,0,24,38,3,0,9,46,8)],D=["duration","easing","delay"],L={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},P={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function M(e){return`${Math.round(e)}ms`}function F(e){if(!e)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}var B={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};let U=["breakpoints","mixins","spacing","palette","transitions","typography","shape"],H=function(e={}){var t;let{mixins:n={},palette:a={},transitions:o={},typography:s={}}=e,l=(0,i.Z)(e,U);if(e.vars)throw Error((0,u.Z)(18));let c=function(e){let{mode:t="light",contrastThreshold:n=3,tonalOffset:a=.2}=e,o=(0,i.Z)(e,k),s=e.primary||function(e="light"){return"dark"===e?{main:S[200],light:S[50],dark:S[400]}:{main:S[700],light:S[400],dark:S[800]}}(t),l=e.secondary||function(e="light"){return"dark"===e?{main:E[200],light:E[50],dark:E[400]}:{main:E[500],light:E[300],dark:E[700]}}(t),c=e.error||function(e="light"){return"dark"===e?{main:y[500],light:y[300],dark:y[700]}:{main:y[700],light:y[400],dark:y[800]}}(t),p=e.info||function(e="light"){return"dark"===e?{main:A[400],light:A[300],dark:A[700]}:{main:A[700],light:A[500],dark:A[900]}}(t),f=e.success||function(e="light"){return"dark"===e?{main:_[400],light:_[300],dark:_[700]}:{main:_[800],light:_[500],dark:_[900]}}(t),m=e.warning||function(e="light"){return"dark"===e?{main:T[400],light:T[300],dark:T[700]}:{main:"#ed6c02",light:T[500],dark:T[900]}}(t);function C(e){let t=(0,g.mi)(e,v.text.primary)>=n?v.text.primary:I.text.primary;return t}let R=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e=(0,r.Z)({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw Error((0,u.Z)(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw Error((0,u.Z)(12,t?` (${t})`:"",JSON.stringify(e.main)));return N(e,"light",i,a),N(e,"dark",o,a),e.contrastText||(e.contrastText=C(e.main)),e},O=(0,d.Z)((0,r.Z)({common:(0,r.Z)({},h),mode:t,primary:R({color:s,name:"primary"}),secondary:R({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:R({color:c,name:"error"}),warning:R({color:m,name:"warning"}),info:R({color:p,name:"info"}),success:R({color:f,name:"success"}),grey:b,contrastThreshold:n,getContrastText:C,augmentColor:R,tonalOffset:a},{dark:v,light:I}[t]),o);return O}(a),w=(0,m.Z)(e),H=(0,d.Z)(w,{mixins:(t=w.breakpoints,(0,r.Z)({toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}}},n)),palette:c,shadows:x.slice(),typography:function(e,t){let n="function"==typeof t?t(e):t,{fontFamily:a=O,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:l=400,fontWeightMedium:c=500,fontWeightBold:u=700,htmlFontSize:p=16,allVariants:f,pxToRem:m}=n,g=(0,i.Z)(n,C),h=o/14,b=m||(e=>`${e/p*h}rem`),E=(e,t,n,i,o)=>(0,r.Z)({fontFamily:a,fontWeight:e,fontSize:b(t),lineHeight:n},a===O?{letterSpacing:`${Math.round(1e5*(i/t))/1e5}em`}:{},o,f),y={h1:E(s,96,1.167,-1.5),h2:E(s,60,1.2,-.5),h3:E(l,48,1.167,0),h4:E(l,34,1.235,.25),h5:E(l,24,1.334,0),h6:E(c,20,1.6,.15),subtitle1:E(l,16,1.75,.15),subtitle2:E(c,14,1.57,.1),body1:E(l,16,1.5,.15),body2:E(l,14,1.43,.15),button:E(c,14,1.75,.4,R),caption:E(l,12,1.66,.4),overline:E(l,12,2.66,1,R),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,d.Z)((0,r.Z)({htmlFontSize:p,pxToRem:b,fontFamily:a,fontSize:o,fontWeightLight:s,fontWeightRegular:l,fontWeightMedium:c,fontWeightBold:u},y),g,{clone:!1})}(c,s),transitions:function(e){let t=(0,r.Z)({},L,e.easing),n=(0,r.Z)({},P,e.duration);return(0,r.Z)({getAutoHeightDuration:F,create:(e=["all"],r={})=>{let{duration:a=n.standard,easing:o=t.easeInOut,delay:s=0}=r;return(0,i.Z)(r,D),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof a?a:M(a)} ${o} ${"string"==typeof s?s:M(s)}`).join(",")}},e,{easing:t,duration:n})}(o),zIndex:(0,r.Z)({},B)});return(H=[].reduce((e,t)=>(0,d.Z)(e,t),H=(0,d.Z)(H,l))).unstable_sxConfig=(0,r.Z)({},p.Z,null==l?void 0:l.unstable_sxConfig),H.unstable_sx=function(e){return(0,f.Z)({sx:e,theme:this})},H}();var G="$$material",$=n(58128);let z=(0,$.ZP)({themeId:G,defaultTheme:H,rootShouldForwardProp:e=>"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e&&"classes"!==e});var j=n(1977),Y=n(8027);function V(e){return(0,Y.ZP)("MuiSvgIcon",e)}(0,j.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var W=n(85893);let Z=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],q=e=>{let{color:t,fontSize:n,classes:r}=e,a={root:["root","inherit"!==t&&`color${l(t)}`,`fontSize${l(n)}`]};return(0,s.Z)(a,V,r)},K=z("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${l(n.color)}`],t[`fontSize${l(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,a,i,o,s,l,c,u,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(a=e.transitions)||null==(a=a.duration)?void 0:a.shorter}),fontSize:({inherit:"inherit",small:(null==(i=e.typography)||null==(o=i.pxToRem)?void 0:o.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"})[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:({action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0})[t.color]}}),X=a.forwardRef(function(e,t){let n=function({props:e,name:t}){return(0,c.Z)({props:e,name:t,defaultTheme:H,themeId:G})}({props:e,name:"MuiSvgIcon"}),{children:s,className:l,color:u="inherit",component:d="svg",fontSize:p="medium",htmlColor:f,inheritViewBox:m=!1,titleAccess:g,viewBox:h="0 0 24 24"}=n,b=(0,i.Z)(n,Z),E=a.isValidElement(s)&&"svg"===s.type,y=(0,r.Z)({},n,{color:u,component:d,fontSize:p,instanceFontSize:e.fontSize,inheritViewBox:m,viewBox:h,hasSvgAsChild:E}),T={};m||(T.viewBox=h);let S=q(y);return(0,W.jsxs)(K,(0,r.Z)({as:d,className:(0,o.Z)(S.root,l),focusable:"false",color:f,"aria-hidden":!g||void 0,role:g?"img":void 0,ref:t},T,b,E&&s.props,{ownerState:y,children:[E?s.props.children:s,g?(0,W.jsx)("title",{children:g}):null]}))});function Q(e,t){function n(n,a){return(0,W.jsx)(X,(0,r.Z)({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return n.muiName=X.muiName,a.memo(a.forwardRef(n))}X.muiName="SvgIcon"},2101:function(e,t,n){"use strict";var r=n(64836);t._j=function(e,t){if(e=s(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return l(e)},t.mi=function(e,t){let n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.$n=function(e,t){if(e=s(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return l(e)};var a=r(n(743)),i=r(n(49425));function o(e,t=0,n=1){return(0,i.default)(e,t,n)}function s(e){let t;if(e.type)return e;if("#"===e.charAt(0))return s(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw Error((0,a.default)(9,e));let i=e.substring(n+1,e.length-1);if("color"===r){if(t=(i=i.split(" ")).shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,a.default)(10,t))}else i=i.split(",");return{type:r,values:i=i.map(e=>parseFloat(e)),colorSpace:t}}function l(e){let{type:t,colorSpace:n}=e,{values:r}=e;return -1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),`${t}(${r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`})`}function c(e){let t="hsl"===(e=s(e)).type||"hsla"===e.type?s(function(e){e=s(e);let{values:t}=e,n=t[0],r=t[1]/100,a=t[2]/100,i=r*Math.min(a,1-a),o=(e,t=(e+n/30)%12)=>a-i*Math.max(Math.min(t-3,9-t,1),-1),c="rgb",u=[Math.round(255*o(0)),Math.round(255*o(8)),Math.round(255*o(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),l({type:c,values:u})}(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}},58128:function(e,t,n){"use strict";var r=n(64836);t.ZP=function(e={}){let{themeId:t,defaultTheme:n=g,rootShouldForwardProp:r=m,slotShouldForwardProp:l=m}=e,u=e=>(0,c.default)((0,a.default)({},e,{theme:b((0,a.default)({},e,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,(e,c={})=>{var d;let f;(0,o.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));let{name:g,slot:y,skipVariantsResolver:T,skipSx:S,overridesResolver:A=(d=h(y))?(e,t)=>t[d]:null}=c,_=(0,i.default)(c,p),k=void 0!==T?T:y&&"Root"!==y&&"root"!==y||!1,I=S||!1,v=m;"Root"===y||"root"===y?v=r:y?v=l:"string"==typeof e&&e.charCodeAt(0)>96&&(v=void 0);let N=(0,o.default)(e,(0,a.default)({shouldForwardProp:v,label:f},_)),C=e=>"function"==typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?r=>E(e,(0,a.default)({},r,{theme:b({theme:r.theme,defaultTheme:n,themeId:t})})):e,R=(r,...i)=>{let o=C(r),s=i?i.map(C):[];g&&A&&s.push(e=>{let r=b((0,a.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[g]||!r.components[g].styleOverrides)return null;let i=r.components[g].styleOverrides,o={};return Object.entries(i).forEach(([t,n])=>{o[t]=E(n,(0,a.default)({},e,{theme:r}))}),A(e,o)}),g&&!k&&s.push(e=>{var r;let i=b((0,a.default)({},e,{defaultTheme:n,themeId:t})),o=null==i||null==(r=i.components)||null==(r=r[g])?void 0:r.variants;return E({variants:o},(0,a.default)({},e,{theme:i}))}),I||s.push(u);let l=s.length-i.length;if(Array.isArray(r)&&l>0){let e=Array(l).fill("");(o=[...r,...e]).raw=[...r.raw,...e]}let c=N(o,...s);return e.muiName&&(c.muiName=e.muiName),c};return N.withConfig&&(R.withConfig=N.withConfig),R}};var a=r(n(10434)),i=r(n(7071)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(23534)),s=n(211);r(n(99698)),r(n(37889));var l=r(n(19926)),c=r(n(386));let u=["ownerState"],d=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function m(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}let g=(0,l.default)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function b({defaultTheme:e,theme:t,themeId:n}){return 0===Object.keys(t).length?e:t[n]||t}function E(e,t){let{ownerState:n}=t,r=(0,i.default)(t,u),o="function"==typeof e?e((0,a.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(e=>E(e,(0,a.default)({ownerState:n},r)));if(o&&"object"==typeof o&&Array.isArray(o.variants)){let{variants:e=[]}=o,t=(0,i.default)(o,d),s=t;return e.forEach(e=>{let t=!0;"function"==typeof e.props?t=e.props((0,a.default)({ownerState:n},r,n)):Object.keys(e.props).forEach(a=>{(null==n?void 0:n[a])!==e.props[a]&&r[a]!==e.props[a]&&(t=!1)}),t&&(Array.isArray(s)||(s=[s]),s.push("function"==typeof e.style?e.style((0,a.default)({ownerState:n},r,n)):e.style))}),s}return o}},19926:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.Z},private_createBreakpoints:function(){return a.Z},unstable_applyStyles:function(){return i.Z}});var r=n(88647),a=n(41512),i=n(57064)},386:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.Z},extendSxProp:function(){return a.Z},unstable_createStyleFunctionSx:function(){return r.n},unstable_defaultSxConfig:function(){return i.Z}});var r=n(86523),a=n(39707),i=n(44920)},99698:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.Z}});var r=n(62908)},49425:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}},211:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.Z},isPlainObject:function(){return r.P}});var r=n(68027)},743:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.Z}});var r=n(78758)},37889:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l},getFunctionName:function(){return i}});var r=n(59864);let a=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function i(e){let t=`${e}`.match(a),n=t&&t[1];return n||""}function o(e,t=""){return e.displayName||e.name||i(e)||t}function s(e,t,n){let r=o(t);return e.displayName||(""!==r?`${n}(${r})`:n)}function l(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return o(e,"Component");if("object"==typeof e)switch(e.$$typeof){case r.ForwardRef:return s(e,e.render,"ForwardRef");case r.Memo:return s(e,e.type,"memo")}}}},47221:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var r=n(67294),a=n(18073),i=n(93967),o=n.n(i),s=n(87462),l=n(74902),c=n(97685),u=n(71002),d=n(21770),p=n(80334),f=n(45987),m=n(50344),g=n(4942),h=n(29372),b=n(15105),E=r.forwardRef(function(e,t){var n=e.prefixCls,a=e.forceRender,i=e.className,s=e.style,l=e.children,u=e.isActive,d=e.role,p=r.useState(u||a),f=(0,c.Z)(p,2),m=f[0],h=f[1];return(r.useEffect(function(){(a||u)&&h(!0)},[a,u]),m)?r.createElement("div",{ref:t,className:o()("".concat(n,"-content"),(0,g.Z)((0,g.Z)({},"".concat(n,"-content-active"),u),"".concat(n,"-content-inactive"),!u),i),style:s,role:d},r.createElement("div",{className:"".concat(n,"-content-box")},l)):null});E.displayName="PanelContent";var y=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],T=r.forwardRef(function(e,t){var n=e.showArrow,a=void 0===n||n,i=e.headerClass,l=e.isActive,c=e.onItemClick,u=e.forceRender,d=e.className,p=e.prefixCls,m=e.collapsible,T=e.accordion,S=e.panelKey,A=e.extra,_=e.header,k=e.expandIcon,I=e.openMotion,v=e.destroyInactivePanel,N=e.children,C=(0,f.Z)(e,y),R="disabled"===m,O="header"===m,w="icon"===m,x=null!=A&&"boolean"!=typeof A,D=function(){null==c||c(S)},L="function"==typeof k?k(e):r.createElement("i",{className:"arrow"});L&&(L=r.createElement("div",{className:"".concat(p,"-expand-icon"),onClick:["header","icon"].includes(m)?D:void 0},L));var P=o()((0,g.Z)((0,g.Z)((0,g.Z)({},"".concat(p,"-item"),!0),"".concat(p,"-item-active"),l),"".concat(p,"-item-disabled"),R),d),M={className:o()(i,(0,g.Z)((0,g.Z)((0,g.Z)({},"".concat(p,"-header"),!0),"".concat(p,"-header-collapsible-only"),O),"".concat(p,"-icon-collapsible-only"),w)),"aria-expanded":l,"aria-disabled":R,onKeyDown:function(e){("Enter"===e.key||e.keyCode===b.Z.ENTER||e.which===b.Z.ENTER)&&D()}};return O||w||(M.onClick=D,M.role=T?"tab":"button",M.tabIndex=R?-1:0),r.createElement("div",(0,s.Z)({},C,{ref:t,className:P}),r.createElement("div",M,a&&L,r.createElement("span",{className:"".concat(p,"-header-text"),onClick:"header"===m?D:void 0},_),x&&r.createElement("div",{className:"".concat(p,"-extra")},A)),r.createElement(h.ZP,(0,s.Z)({visible:l,leavedClassName:"".concat(p,"-content-hidden")},I,{forceRender:u,removeOnLeave:v}),function(e,t){var n=e.className,a=e.style;return r.createElement(E,{ref:t,prefixCls:p,className:n,style:a,isActive:l,forceRender:u,role:T?"tabpanel":void 0},N)}))}),S=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],A=function(e,t){var n=t.prefixCls,a=t.accordion,i=t.collapsible,o=t.destroyInactivePanel,l=t.onItemClick,c=t.activeKey,u=t.openMotion,d=t.expandIcon;return e.map(function(e,t){var p=e.children,m=e.label,g=e.key,h=e.collapsible,b=e.onItemClick,E=e.destroyInactivePanel,y=(0,f.Z)(e,S),A=String(null!=g?g:t),_=null!=h?h:i,k=!1;return k=a?c[0]===A:c.indexOf(A)>-1,r.createElement(T,(0,s.Z)({},y,{prefixCls:n,key:A,panelKey:A,isActive:k,accordion:a,openMotion:u,expandIcon:d,header:m,collapsible:_,onItemClick:function(e){"disabled"!==_&&(l(e),null==b||b(e))},destroyInactivePanel:null!=E?E:o}),p)})},_=function(e,t,n){if(!e)return null;var a=n.prefixCls,i=n.accordion,o=n.collapsible,s=n.destroyInactivePanel,l=n.onItemClick,c=n.activeKey,u=n.openMotion,d=n.expandIcon,p=e.key||String(t),f=e.props,m=f.header,g=f.headerClass,h=f.destroyInactivePanel,b=f.collapsible,E=f.onItemClick,y=!1;y=i?c[0]===p:c.indexOf(p)>-1;var T=null!=b?b:o,S={key:p,panelKey:p,header:m,headerClass:g,isActive:y,prefixCls:a,destroyInactivePanel:null!=h?h:s,openMotion:u,accordion:i,children:e.props.children,onItemClick:function(e){"disabled"!==T&&(l(e),null==E||E(e))},expandIcon:d,collapsible:T};return"string"==typeof e.type?e:(Object.keys(S).forEach(function(e){void 0===S[e]&&delete S[e]}),r.cloneElement(e,S))},k=n(64217);function I(e){var t=e;if(!Array.isArray(t)){var n=(0,u.Z)(t);t="number"===n||"string"===n?[t]:[]}return t.map(function(e){return String(e)})}var v=Object.assign(r.forwardRef(function(e,t){var n,a=e.prefixCls,i=void 0===a?"rc-collapse":a,u=e.destroyInactivePanel,f=e.style,g=e.accordion,h=e.className,b=e.children,E=e.collapsible,y=e.openMotion,T=e.expandIcon,S=e.activeKey,v=e.defaultActiveKey,N=e.onChange,C=e.items,R=o()(i,h),O=(0,d.Z)([],{value:S,onChange:function(e){return null==N?void 0:N(e)},defaultValue:v,postState:I}),w=(0,c.Z)(O,2),x=w[0],D=w[1];(0,p.ZP)(!b,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var L=(n={prefixCls:i,accordion:g,openMotion:y,expandIcon:T,collapsible:E,destroyInactivePanel:void 0!==u&&u,onItemClick:function(e){return D(function(){return g?x[0]===e?[]:[e]:x.indexOf(e)>-1?x.filter(function(t){return t!==e}):[].concat((0,l.Z)(x),[e])})},activeKey:x},Array.isArray(C)?A(C,n):(0,m.Z)(b).map(function(e,t){return _(e,t,n)}));return r.createElement("div",(0,s.Z)({ref:t,className:R,style:f,role:g?"tablist":void 0},(0,k.Z)(e,{aria:!0,data:!0})),L)}),{Panel:T});v.Panel;var N=n(98423),C=n(33603),R=n(96159),O=n(53124),w=n(98675);let x=r.forwardRef((e,t)=>{let{getPrefixCls:n}=r.useContext(O.E_),{prefixCls:a,className:i,showArrow:s=!0}=e,l=n("collapse",a),c=o()({[`${l}-no-arrow`]:!s},i);return r.createElement(v.Panel,Object.assign({ref:t},e,{prefixCls:l,className:c}))});var D=n(25446),L=n(14747),P=n(33507),M=n(83559),F=n(83262);let B=e=>{let{componentCls:t,contentBg:n,padding:r,headerBg:a,headerPadding:i,collapseHeaderPaddingSM:o,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:d,colorText:p,colorTextHeading:f,colorTextDisabled:m,fontSizeLG:g,lineHeight:h,lineHeightLG:b,marginSM:E,paddingSM:y,paddingLG:T,paddingXS:S,motionDurationSlow:A,fontSizeIcon:_,contentPadding:k,fontHeight:I,fontHeightLG:v}=e,N=`${(0,D.bf)(c)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},(0,L.Wf)(e)),{backgroundColor:a,border:N,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:N,"&:last-child":{[` &, - & > ${t}-header`]:{borderRadius:`0 0 ${(0,L.bf)(l)} ${(0,L.bf)(l)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:f,lineHeight:h,cursor:"pointer",transition:`all ${S}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:_,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:Object.assign(Object.assign({},(0,D.Ro)()),{fontSize:A,transition:`transform ${S}`,svg:{transition:`transform ${S}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:I,[`& > ${t}-content-box`]:{padding:O},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:o,paddingInlineStart:v,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(E).sub(v).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:E}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:b,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:k,marginInlineStart:e.calc(T).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:T}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${(0,L.bf)(l)} ${(0,L.bf)(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{[` + & > ${t}-header`]:{borderRadius:`0 0 ${(0,D.bf)(l)} ${(0,D.bf)(l)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:f,lineHeight:h,cursor:"pointer",transition:`all ${A}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:I,display:"flex",alignItems:"center",paddingInlineEnd:E},[`${t}-arrow`]:Object.assign(Object.assign({},(0,L.Ro)()),{fontSize:_,transition:`transform ${A}`,svg:{transition:`transform ${A}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:N,[`& > ${t}-content-box`]:{padding:k},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:o,paddingInlineStart:S,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(S).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:b,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:v,marginInlineStart:e.calc(T).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:T}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${(0,D.bf)(l)} ${(0,D.bf)(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{[` &, & > .arrow - `]:{color:m,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},j=e=>{let{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},U=e=>{let{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:a}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${a}`},[` + `]:{color:m,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:E}}}}})}},U=e=>{let{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},H=e=>{let{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:a}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${a}`},[` > ${t}-item:last-child, > ${t}-item:last-child ${t}-header - `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},H=e=>{let{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}};var G=(0,M.I$)("Collapse",e=>{let t=(0,F.IX)(e,{collapseHeaderPaddingSM:`${(0,L.bf)(e.paddingXS)} ${(0,L.bf)(e.paddingSM)}`,collapseHeaderPaddingLG:`${(0,L.bf)(e.padding)} ${(0,L.bf)(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[B(t),U(t),H(t),j(t),(0,P.Z)(t)]},e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}));let $=r.forwardRef((e,t)=>{let{getPrefixCls:n,direction:i,collapse:s}=r.useContext(x.E_),{prefixCls:l,className:c,rootClassName:u,style:d,bordered:p=!0,ghost:f,size:g,expandIconPosition:h="start",children:b,expandIcon:y}=e,E=(0,w.Z)(e=>{var t;return null!==(t=null!=g?g:e)&&void 0!==t?t:"middle"}),T=n("collapse",l),v=n(),[S,A,O]=G(T),_=r.useMemo(()=>"left"===h?"start":"right"===h?"end":h,[h]),R=null!=y?y:null==s?void 0:s.expandIcon,L=r.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="function"==typeof R?R(e):r.createElement(a.Z,{rotate:e.isActive?90:void 0,"aria-label":e.isActive?"expanded":"collapsed"});return(0,N.Tm)(t,()=>{var e;return{className:o()(null===(e=null==t?void 0:t.props)||void 0===e?void 0:e.className,`${T}-arrow`)}})},[R,T]),D=o()(`${T}-icon-position-${_}`,{[`${T}-borderless`]:!p,[`${T}-rtl`]:"rtl"===i,[`${T}-ghost`]:!!f,[`${T}-${E}`]:"middle"!==E},null==s?void 0:s.className,c,u,A,O),P=Object.assign(Object.assign({},(0,C.Z)(v)),{motionAppear:!1,leavedClassName:`${T}-content-hidden`}),M=r.useMemo(()=>b?(0,m.Z)(b).map((e,t)=>{var n,r;if(null===(n=e.props)||void 0===n?void 0:n.disabled){let n=null!==(r=e.key)&&void 0!==r?r:String(t),{disabled:a,collapsible:i}=e.props,o=Object.assign(Object.assign({},(0,I.Z)(e.props,["disabled"])),{key:n,collapsible:null!=i?i:a?"disabled":void 0});return(0,N.Tm)(e,o)}return e}):null,[b]);return S(r.createElement(k,Object.assign({ref:t,openMotion:P},(0,I.Z)(e,["rootClassName"]),{expandIcon:L,prefixCls:T,className:D,style:Object.assign(Object.assign({},null==s?void 0:s.style),d)}),M))});var z=Object.assign($,{Panel:R})},85265:function(e,t,n){"use strict";n.d(t,{Z:function(){return q}});var r=n(67294),a=n(93967),i=n.n(a),o=n(1413),s=n(97685),l=n(2788),c=n(8410),u=r.createContext(null),d=r.createContext({}),p=n(4942),f=n(87462),m=n(29372),g=n(15105),h=n(64217),b=n(45987),y=n(42550),E=["prefixCls","className","containerRef"],T=function(e){var t=e.prefixCls,n=e.className,a=e.containerRef,o=(0,b.Z)(e,E),s=r.useContext(d).panel,l=(0,y.x1)(s,a);return r.createElement("div",(0,f.Z)({className:i()("".concat(t,"-content"),n),role:"dialog",ref:l},(0,h.Z)(e,{aria:!0}),{"aria-modal":"true"},o))},v=n(80334);function S(e){return"string"==typeof e&&String(Number(e))===e?((0,v.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var A={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"},O=r.forwardRef(function(e,t){var n,a,l,c=e.prefixCls,d=e.open,b=e.placement,y=e.inline,E=e.push,v=e.forceRender,O=e.autoFocus,_=e.keyboard,k=e.classNames,I=e.rootClassName,C=e.rootStyle,N=e.zIndex,x=e.className,w=e.id,R=e.style,L=e.motion,D=e.width,P=e.height,M=e.children,F=e.mask,B=e.maskClosable,j=e.maskMotion,U=e.maskClassName,H=e.maskStyle,G=e.afterOpenChange,$=e.onClose,z=e.onMouseEnter,Z=e.onMouseOver,W=e.onMouseLeave,Y=e.onClick,V=e.onKeyDown,q=e.onKeyUp,K=e.styles,X=e.drawerRender,Q=r.useRef(),J=r.useRef(),ee=r.useRef();r.useImperativeHandle(t,function(){return Q.current}),r.useEffect(function(){if(d&&O){var e;null===(e=Q.current)||void 0===e||e.focus({preventScroll:!0})}},[d]);var et=r.useState(!1),en=(0,s.Z)(et,2),er=en[0],ea=en[1],ei=r.useContext(u),eo=null!==(n=null!==(a=null===(l="boolean"==typeof E?E?{}:{distance:0}:E||{})||void 0===l?void 0:l.distance)&&void 0!==a?a:null==ei?void 0:ei.pushDistance)&&void 0!==n?n:180,es=r.useMemo(function(){return{pushDistance:eo,push:function(){ea(!0)},pull:function(){ea(!1)}}},[eo]);r.useEffect(function(){var e,t;d?null==ei||null===(e=ei.push)||void 0===e||e.call(ei):null==ei||null===(t=ei.pull)||void 0===t||t.call(ei)},[d]),r.useEffect(function(){return function(){var e;null==ei||null===(e=ei.pull)||void 0===e||e.call(ei)}},[]);var el=F&&r.createElement(m.ZP,(0,f.Z)({key:"mask"},j,{visible:d}),function(e,t){var n=e.className,a=e.style;return r.createElement("div",{className:i()("".concat(c,"-mask"),n,null==k?void 0:k.mask,U),style:(0,o.Z)((0,o.Z)((0,o.Z)({},a),H),null==K?void 0:K.mask),onClick:B&&d?$:void 0,ref:t})}),ec="function"==typeof L?L(b):L,eu={};if(er&&eo)switch(b){case"top":eu.transform="translateY(".concat(eo,"px)");break;case"bottom":eu.transform="translateY(".concat(-eo,"px)");break;case"left":eu.transform="translateX(".concat(eo,"px)");break;default:eu.transform="translateX(".concat(-eo,"px)")}"left"===b||"right"===b?eu.width=S(D):eu.height=S(P);var ed={onMouseEnter:z,onMouseOver:Z,onMouseLeave:W,onClick:Y,onKeyDown:V,onKeyUp:q},ep=r.createElement(m.ZP,(0,f.Z)({key:"panel"},ec,{visible:d,forceRender:v,onVisibleChanged:function(e){null==G||G(e)},removeOnLeave:!1,leavedClassName:"".concat(c,"-content-wrapper-hidden")}),function(t,n){var a=t.className,s=t.style,l=r.createElement(T,(0,f.Z)({id:w,containerRef:n,prefixCls:c,className:i()(x,null==k?void 0:k.content),style:(0,o.Z)((0,o.Z)({},R),null==K?void 0:K.content)},(0,h.Z)(e,{aria:!0}),ed),M);return r.createElement("div",(0,f.Z)({className:i()("".concat(c,"-content-wrapper"),null==k?void 0:k.wrapper,a),style:(0,o.Z)((0,o.Z)((0,o.Z)({},eu),s),null==K?void 0:K.wrapper)},(0,h.Z)(e,{data:!0})),X?X(l):l)}),ef=(0,o.Z)({},C);return N&&(ef.zIndex=N),r.createElement(u.Provider,{value:es},r.createElement("div",{className:i()(c,"".concat(c,"-").concat(b),I,(0,p.Z)((0,p.Z)({},"".concat(c,"-open"),d),"".concat(c,"-inline"),y)),style:ef,tabIndex:-1,ref:Q,onKeyDown:function(e){var t,n,r=e.keyCode,a=e.shiftKey;switch(r){case g.Z.TAB:r===g.Z.TAB&&(a||document.activeElement!==ee.current?a&&document.activeElement===J.current&&(null===(n=ee.current)||void 0===n||n.focus({preventScroll:!0})):null===(t=J.current)||void 0===t||t.focus({preventScroll:!0}));break;case g.Z.ESC:$&&_&&(e.stopPropagation(),$(e))}}},el,r.createElement("div",{tabIndex:0,ref:J,style:A,"aria-hidden":"true","data-sentinel":"start"}),ep,r.createElement("div",{tabIndex:0,ref:ee,style:A,"aria-hidden":"true","data-sentinel":"end"})))}),_=function(e){var t=e.open,n=e.prefixCls,a=e.placement,i=e.autoFocus,u=e.keyboard,p=e.width,f=e.mask,m=void 0===f||f,g=e.maskClosable,h=e.getContainer,b=e.forceRender,y=e.afterOpenChange,E=e.destroyOnClose,T=e.onMouseEnter,v=e.onMouseOver,S=e.onMouseLeave,A=e.onClick,_=e.onKeyDown,k=e.onKeyUp,I=e.panelRef,C=r.useState(!1),N=(0,s.Z)(C,2),x=N[0],w=N[1],R=r.useState(!1),L=(0,s.Z)(R,2),D=L[0],P=L[1];(0,c.Z)(function(){P(!0)},[]);var M=!!D&&void 0!==t&&t,F=r.useRef(),B=r.useRef();(0,c.Z)(function(){M&&(B.current=document.activeElement)},[M]);var j=r.useMemo(function(){return{panel:I}},[I]);if(!b&&!x&&!M&&E)return null;var U=(0,o.Z)((0,o.Z)({},e),{},{open:M,prefixCls:void 0===n?"rc-drawer":n,placement:void 0===a?"right":a,autoFocus:void 0===i||i,keyboard:void 0===u||u,width:void 0===p?378:p,mask:m,maskClosable:void 0===g||g,inline:!1===h,afterOpenChange:function(e){var t,n;w(e),null==y||y(e),e||!B.current||null!==(t=F.current)&&void 0!==t&&t.contains(B.current)||null===(n=B.current)||void 0===n||n.focus({preventScroll:!0})},ref:F},{onMouseEnter:T,onMouseOver:v,onMouseLeave:S,onClick:A,onKeyDown:_,onKeyUp:k});return r.createElement(d.Provider,{value:j},r.createElement(l.Z,{open:M||b||x,autoDestroy:!1,getContainer:h,autoLock:m&&(M||x)},r.createElement(O,U)))},k=n(89942),I=n(87263),C=n(33603),N=n(43945),x=n(53124),w=n(16569),R=n(69760),L=n(48054),D=e=>{var t,n;let{prefixCls:a,title:o,footer:s,extra:l,loading:c,onClose:u,headerStyle:d,bodyStyle:p,footerStyle:f,children:m,classNames:g,styles:h}=e,{drawer:b}=r.useContext(x.E_),y=r.useCallback(e=>r.createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:`${a}-close`},e),[u]),[E,T]=(0,R.Z)((0,R.w)(e),(0,R.w)(b),{closable:!0,closeIconRender:y}),v=r.useMemo(()=>{var e,t;return o||E?r.createElement("div",{style:Object.assign(Object.assign(Object.assign({},null===(e=null==b?void 0:b.styles)||void 0===e?void 0:e.header),d),null==h?void 0:h.header),className:i()(`${a}-header`,{[`${a}-header-close-only`]:E&&!o&&!l},null===(t=null==b?void 0:b.classNames)||void 0===t?void 0:t.header,null==g?void 0:g.header)},r.createElement("div",{className:`${a}-header-title`},T,o&&r.createElement("div",{className:`${a}-title`},o)),l&&r.createElement("div",{className:`${a}-extra`},l)):null},[E,T,l,d,a,o]),S=r.useMemo(()=>{var e,t;if(!s)return null;let n=`${a}-footer`;return r.createElement("div",{className:i()(n,null===(e=null==b?void 0:b.classNames)||void 0===e?void 0:e.footer,null==g?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},null===(t=null==b?void 0:b.styles)||void 0===t?void 0:t.footer),f),null==h?void 0:h.footer)},s)},[s,f,a]);return r.createElement(r.Fragment,null,v,r.createElement("div",{className:i()(`${a}-body`,null==g?void 0:g.body,null===(t=null==b?void 0:b.classNames)||void 0===t?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},null===(n=null==b?void 0:b.styles)||void 0===n?void 0:n.body),p),null==h?void 0:h.body)},c?r.createElement(L.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${a}-body-skeleton`}):m),S)},P=n(25446),M=n(14747),F=n(83559),B=n(83262);let j=e=>{let t="100%";return({left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`})[e]},U=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),H=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},U({opacity:e},{opacity:1})),G=(e,t)=>[H(.7,t),U({transform:j(e)},{transform:"none"})];var $=e=>{let{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:H(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((e,t)=>Object.assign(Object.assign({},e),{[`&-${t}`]:G(t,n)}),{})}}};let z=e=>{let{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:a,colorBgElevated:i,motionDurationSlow:o,motionDurationMid:s,paddingXS:l,padding:c,paddingLG:u,fontSizeLG:d,lineHeightLG:p,lineWidth:f,lineType:m,colorSplit:g,marginXS:h,colorIcon:b,colorIconHover:y,colorBgTextHover:E,colorBgTextActive:T,colorText:v,fontWeightStrong:S,footerPaddingBlock:A,footerPaddingInline:O,calc:_}=e,k=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:v,"&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:a,pointerEvents:"auto"},[k]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${o}`,"&-hidden":{display:"none"}},[`&-left > ${k}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${k}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${k}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${k}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,P.bf)(c)} ${(0,P.bf)(u)}`,fontSize:d,lineHeight:p,borderBottom:`${(0,P.bf)(f)} ${m} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:_(d).add(l).equal(),height:_(d).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:h,color:b,fontWeight:S,fontSize:d,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:y,backgroundColor:E,textDecoration:"none"},"&:active":{backgroundColor:T}},(0,M.Qy)(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:d,lineHeight:p},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${(0,P.bf)(A)} ${(0,P.bf)(O)}`,borderTop:`${(0,P.bf)(f)} ${m} ${g}`},"&-rtl":{direction:"rtl"}}}};var Z=(0,F.I$)("Drawer",e=>{let t=(0,B.IX)(e,{});return[z(t),$(t)]},e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding})),W=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let Y={distance:180},V=e=>{let{rootClassName:t,width:n,height:a,size:o="default",mask:s=!0,push:l=Y,open:c,afterOpenChange:u,onClose:d,prefixCls:p,getContainer:f,style:m,className:g,visible:h,afterVisibleChange:b,maskStyle:y,drawerStyle:E,contentWrapperStyle:T}=e,v=W(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:S,getPrefixCls:A,direction:O,drawer:R}=r.useContext(x.E_),L=A("drawer",p),[P,M,F]=Z(L),B=void 0===f&&S?()=>S(document.body):f,j=i()({"no-mask":!s,[`${L}-rtl`]:"rtl"===O},t,M,F),U=r.useMemo(()=>null!=n?n:"large"===o?736:378,[n,o]),H=r.useMemo(()=>null!=a?a:"large"===o?736:378,[a,o]),G={motionName:(0,C.m)(L,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},$=(0,w.H)(),[z,V]=(0,I.Cn)("Drawer",v.zIndex),{classNames:q={},styles:K={}}=v,{classNames:X={},styles:Q={}}=R||{};return P(r.createElement(k.Z,{form:!0,space:!0},r.createElement(N.Z.Provider,{value:V},r.createElement(_,Object.assign({prefixCls:L,onClose:d,maskMotion:G,motion:e=>({motionName:(0,C.m)(L,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},v,{classNames:{mask:i()(q.mask,X.mask),content:i()(q.content,X.content),wrapper:i()(q.wrapper,X.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},K.mask),y),Q.mask),content:Object.assign(Object.assign(Object.assign({},K.content),E),Q.content),wrapper:Object.assign(Object.assign(Object.assign({},K.wrapper),T),Q.wrapper)},open:null!=c?c:h,mask:s,push:l,width:U,height:H,style:Object.assign(Object.assign({},null==R?void 0:R.style),m),className:i()(null==R?void 0:R.className,g),rootClassName:j,getContainer:B,afterOpenChange:null!=u?u:b,panelRef:$,zIndex:z}),r.createElement(D,Object.assign({prefixCls:L},v,{onClose:d}))))))};V._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,style:n,className:a,placement:o="right"}=e,s=W(e,["prefixCls","style","className","placement"]),{getPrefixCls:l}=r.useContext(x.E_),c=l("drawer",t),[u,d,p]=Z(c),f=i()(c,`${c}-pure`,`${c}-${o}`,d,p,a);return u(r.createElement("div",{className:f,style:n},r.createElement(D,Object.assign({prefixCls:c},s))))};var q=V},57020:function(e,t,n){"use strict";n.d(t,{Z:function(){return ev}});var r=n(67294),a=n(99611),i=n(93967),o=n.n(i),s=n(87462),l=n(1413),c=n(4942),u=n(97685),d=n(71002),p=n(45987),f=n(27678),m=n(21770),g=n(40974),h=n(64019),b=n(15105),y=n(2788),E=n(29372),T=r.createContext(null),v=function(e){var t=e.visible,n=e.maskTransitionName,a=e.getContainer,i=e.prefixCls,s=e.rootClassName,u=e.icons,d=e.countRender,p=e.showSwitch,f=e.showProgress,m=e.current,g=e.transform,h=e.count,v=e.scale,S=e.minScale,A=e.maxScale,O=e.closeIcon,_=e.onSwitchLeft,k=e.onSwitchRight,I=e.onClose,C=e.onZoomIn,N=e.onZoomOut,x=e.onRotateRight,w=e.onRotateLeft,R=e.onFlipX,L=e.onFlipY,D=e.onReset,P=e.toolbarRender,M=e.zIndex,F=e.image,B=(0,r.useContext)(T),j=u.rotateLeft,U=u.rotateRight,H=u.zoomIn,G=u.zoomOut,$=u.close,z=u.left,Z=u.right,W=u.flipX,Y=u.flipY,V="".concat(i,"-operations-operation");r.useEffect(function(){var e=function(e){e.keyCode===b.Z.ESC&&I()};return t&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[t]);var q=[{icon:Y,onClick:L,type:"flipY"},{icon:W,onClick:R,type:"flipX"},{icon:j,onClick:w,type:"rotateLeft"},{icon:U,onClick:x,type:"rotateRight"},{icon:G,onClick:N,type:"zoomOut",disabled:v<=S},{icon:H,onClick:C,type:"zoomIn",disabled:v===A}].map(function(e){var t,n=e.icon,a=e.onClick,s=e.type,l=e.disabled;return r.createElement("div",{className:o()(V,(t={},(0,c.Z)(t,"".concat(i,"-operations-operation-").concat(s),!0),(0,c.Z)(t,"".concat(i,"-operations-operation-disabled"),!!l),t)),onClick:a,key:s},n)}),K=r.createElement("div",{className:"".concat(i,"-operations")},q);return r.createElement(E.ZP,{visible:t,motionName:n},function(e){var t=e.className,n=e.style;return r.createElement(y.Z,{open:!0,getContainer:null!=a?a:document.body},r.createElement("div",{className:o()("".concat(i,"-operations-wrapper"),t,s),style:(0,l.Z)((0,l.Z)({},n),{},{zIndex:M})},null===O?null:r.createElement("button",{className:"".concat(i,"-close"),onClick:I},O||$),p&&r.createElement(r.Fragment,null,r.createElement("div",{className:o()("".concat(i,"-switch-left"),(0,c.Z)({},"".concat(i,"-switch-left-disabled"),0===m)),onClick:_},z),r.createElement("div",{className:o()("".concat(i,"-switch-right"),(0,c.Z)({},"".concat(i,"-switch-right-disabled"),m===h-1)),onClick:k},Z)),r.createElement("div",{className:"".concat(i,"-footer")},f&&r.createElement("div",{className:"".concat(i,"-progress")},d?d(m+1,h):"".concat(m+1," / ").concat(h)),P?P(K,(0,l.Z)((0,l.Z)({icons:{flipYIcon:q[0],flipXIcon:q[1],rotateLeftIcon:q[2],rotateRightIcon:q[3],zoomOutIcon:q[4],zoomInIcon:q[5]},actions:{onFlipY:L,onFlipX:R,onRotateLeft:w,onRotateRight:x,onZoomOut:N,onZoomIn:C,onReset:D,onClose:I},transform:g},B?{current:m,total:h}:{}),{},{image:F})):K)))})},S=n(91881),A=n(75164),O={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1},_=n(80334);function k(e,t,n,r){var a=t+n,i=(n-r)/2;if(n>r){if(t>0)return(0,c.Z)({},e,i);if(t<0&&ar)return(0,c.Z)({},e,t<0?i:-i);return{}}function I(e,t,n,r){var a=(0,f.g1)(),i=a.width,o=a.height,s=null;return e<=i&&t<=o?s={x:0,y:0}:(e>i||t>o)&&(s=(0,l.Z)((0,l.Z)({},k("x",n,e,i)),k("y",r,t,o))),s}function C(e){var t=e.src,n=e.isCustomPlaceholder,a=e.fallback,i=(0,r.useState)(n?"loading":"normal"),o=(0,u.Z)(i,2),s=o[0],l=o[1],c=(0,r.useRef)(!1),d="error"===s;(0,r.useEffect)(function(){var e=!0;return new Promise(function(e){var n=document.createElement("img");n.onerror=function(){return e(!1)},n.onload=function(){return e(!0)},n.src=t}).then(function(t){!t&&e&&l("error")}),function(){e=!1}},[t]),(0,r.useEffect)(function(){n&&!c.current?l("loading"):d&&l("normal")},[t]);var p=function(){l("normal")};return[function(e){c.current=!1,"loading"===s&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(c.current=!0,p())},d&&a?{src:a}:{onLoad:p,src:t},s]}function N(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}var x=["fallback","src","imgRef"],w=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],R=function(e){var t=e.fallback,n=e.src,a=e.imgRef,i=(0,p.Z)(e,x),o=C({src:n,fallback:t}),l=(0,u.Z)(o,2),c=l[0],d=l[1];return r.createElement("img",(0,s.Z)({ref:function(e){a.current=e,c(e)}},i,d))},L=function(e){var t,n,a,i,d,m,y,E,k,C,x,L,D,P,M,F,B,j,U,H,G,$,z,Z,W,Y,V,q,K=e.prefixCls,X=e.src,Q=e.alt,J=e.imageInfo,ee=e.fallback,et=e.movable,en=void 0===et||et,er=e.onClose,ea=e.visible,ei=e.icons,eo=e.rootClassName,es=e.closeIcon,el=e.getContainer,ec=e.current,eu=void 0===ec?0:ec,ed=e.count,ep=void 0===ed?1:ed,ef=e.countRender,em=e.scaleStep,eg=void 0===em?.5:em,eh=e.minScale,eb=void 0===eh?1:eh,ey=e.maxScale,eE=void 0===ey?50:ey,eT=e.transitionName,ev=e.maskTransitionName,eS=void 0===ev?"fade":ev,eA=e.imageRender,eO=e.imgCommonProps,e_=e.toolbarRender,ek=e.onTransform,eI=e.onChange,eC=(0,p.Z)(e,w),eN=(0,r.useRef)(),ex=(0,r.useContext)(T),ew=ex&&ep>1,eR=ex&&ep>=1,eL=(0,r.useState)(!0),eD=(0,u.Z)(eL,2),eP=eD[0],eM=eD[1],eF=(t=(0,r.useRef)(null),n=(0,r.useRef)([]),a=(0,r.useState)(O),d=(i=(0,u.Z)(a,2))[0],m=i[1],y=function(e,r){null===t.current&&(n.current=[],t.current=(0,A.Z)(function(){m(function(e){var a=e;return n.current.forEach(function(e){a=(0,l.Z)((0,l.Z)({},a),e)}),t.current=null,null==ek||ek({transform:a,action:r}),a})})),n.current.push((0,l.Z)((0,l.Z)({},d),e))},{transform:d,resetTransform:function(e){m(O),(0,S.Z)(O,d)||null==ek||ek({transform:O,action:e})},updateTransform:y,dispatchZoomChange:function(e,t,n,r,a){var i=eN.current,o=i.width,s=i.height,l=i.offsetWidth,c=i.offsetHeight,u=i.offsetLeft,p=i.offsetTop,m=e,g=d.scale*e;g>eE?(g=eE,m=eE/d.scale):g0&&(t=1/t),eH(t,"wheel",e.clientX,e.clientY)}}}),e$=eG.isMoving,ez=eG.onMouseDown,eZ=eG.onWheel,eW=(U=eB.rotate,H=eB.scale,G=eB.x,$=eB.y,z=(0,r.useState)(!1),W=(Z=(0,u.Z)(z,2))[0],Y=Z[1],V=(0,r.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),q=function(e){V.current=(0,l.Z)((0,l.Z)({},V.current),e)},(0,r.useEffect)(function(){var e;return ea&&en&&(e=(0,h.Z)(window,"touchmove",function(e){return e.preventDefault()},{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}},[ea,en]),{isTouching:W,onTouchStart:function(e){if(en){e.stopPropagation(),Y(!0);var t=e.touches,n=void 0===t?[]:t;n.length>1?q({point1:{x:n[0].clientX,y:n[0].clientY},point2:{x:n[1].clientX,y:n[1].clientY},eventType:"touchZoom"}):q({point1:{x:n[0].clientX-G,y:n[0].clientY-$},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,r=V.current,a=r.point1,i=r.point2,o=r.eventType;if(n.length>1&&"touchZoom"===o){var s={x:n[0].clientX,y:n[0].clientY},l={x:n[1].clientX,y:n[1].clientY},c=function(e,t,n,r){var a=N(e,n),i=N(t,r);if(0===a&&0===i)return[e.x,e.y];var o=a/(a+i);return[e.x+o*(t.x-e.x),e.y+o*(t.y-e.y)]}(a,i,s,l),d=(0,u.Z)(c,2),p=d[0],f=d[1];eH(N(s,l)/N(a,i),"touchZoom",p,f,!0),q({point1:s,point2:l,eventType:"touchZoom"})}else"move"===o&&(eU({x:n[0].clientX-a.x,y:n[0].clientY-a.y},"move"),q({eventType:"move"}))},onTouchEnd:function(){if(ea){if(W&&Y(!1),q({eventType:"none"}),eb>H)return eU({x:0,y:0,scale:eb},"touchZoom");var e=eN.current.offsetWidth*H,t=eN.current.offsetHeight*H,n=eN.current.getBoundingClientRect(),r=n.left,a=n.top,i=U%180!=0,o=I(i?t:e,i?e:t,r,a);o&&eU((0,l.Z)({},o),"dragRebound")}}}),eY=eW.isTouching,eV=eW.onTouchStart,eq=eW.onTouchMove,eK=eW.onTouchEnd,eX=eB.rotate,eQ=eB.scale,eJ=o()((0,c.Z)({},"".concat(K,"-moving"),e$));(0,r.useEffect)(function(){eP||eM(!0)},[eP]);var e0=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),eu>0&&(eM(!1),ej("prev"),null==eI||eI(eu-1,eu))},e1=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),eu({position:e||"absolute",inset:0}),eu=e=>{let{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:a,prefixCls:i,colorTextLightSolid:o}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:o,background:new en.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},ea.vS),{padding:`0 ${(0,et.bf)(r)}`,[t]:{marginInlineEnd:a,svg:{verticalAlign:"baseline"}}})}},ed=e=>{let{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:a,margin:i,paddingLG:o,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:d}=e,p=new en.C(n).setAlpha(.1),f=p.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:a,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:a,right:{_skip_check_:!0,value:a},display:"flex",color:d,backgroundColor:p.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:f.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,et.bf)(o)}`,backgroundColor:p.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},ep=e=>{let{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:a,zIndexPopup:i,motionDurationSlow:o}=e,s=new en.C(t).setAlpha(.1),l=s.clone().setAlpha(.2);return{[`${a}-switch-left, ${a}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${o}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${a}-switch-left`]:{insetInlineStart:e.marginSM},[`${a}-switch-right`]:{insetInlineEnd:e.marginSM}}},ef=e=>{let{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:a}=e;return[{[`${a}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},ec()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},ec()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${a}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${a}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[ed(e),ep(e)]}]},em=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},eu(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},ec())}}},eg=e=>{let{previewCls:t}=e;return{[`${t}-root`]:(0,ei._y)(e,"zoom"),"&":(0,eo.J$)(e,!0)}};var eh=(0,es.I$)("Image",e=>{let t=`${e.componentCls}-preview`,n=(0,el.IX)(e,{previewCls:t,modalMaskBg:new en.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[em(n),ef(n),(0,er.QA)((0,el.IX)(n,{componentCls:t})),eg(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new en.C(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new en.C(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new en.C(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon})),eb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let ey={rotateLeft:r.createElement(K.Z,null),rotateRight:r.createElement(X.Z,null),zoomIn:r.createElement(J.Z,null),zoomOut:r.createElement(ee.Z,null),close:r.createElement(Y.Z,null),left:r.createElement(V.Z,null),right:r.createElement(q.Z,null),flipX:r.createElement(Q.Z,null),flipY:r.createElement(Q.Z,{rotate:90})};var eE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let eT=e=>{var t;let{prefixCls:n,preview:i,className:s,rootClassName:l,style:c}=e,u=eE(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:d,locale:p=W.Z,getPopupContainer:f,image:m}=r.useContext(z.E_),g=d("image",n),h=d(),b=p.Image||W.Z.Image,y=(0,Z.Z)(g),[E,T,v]=eh(g,y),S=o()(l,T,v,y),A=o()(s,T,null==m?void 0:m.className),[O]=(0,G.Cn)("ImagePreview","object"==typeof i?i.zIndex:void 0),_=r.useMemo(()=>{var e;if(!1===i)return i;let t="object"==typeof i?i:{},{getContainer:n,closeIcon:o}=t,s=eE(t,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:r.createElement("div",{className:`${g}-mask-info`},r.createElement(a.Z,null),null==b?void 0:b.preview),icons:ey},s),{getContainer:null!=n?n:f,transitionName:(0,$.m)(h,"zoom",t.transitionName),maskTransitionName:(0,$.m)(h,"fade",t.maskTransitionName),zIndex:O,closeIcon:null!=o?o:null===(e=null==m?void 0:m.preview)||void 0===e?void 0:e.closeIcon})},[i,b,null===(t=null==m?void 0:m.preview)||void 0===t?void 0:t.closeIcon]),k=Object.assign(Object.assign({},null==m?void 0:m.style),c);return E(r.createElement(H,Object.assign({prefixCls:g,preview:_,rootClassName:S,className:A,style:k},u)))};eT.PreviewGroup=e=>{var{previewPrefixCls:t,preview:n}=e,a=eb(e,["previewPrefixCls","preview"]);let{getPrefixCls:i}=r.useContext(z.E_),s=i("image",t),l=`${s}-preview`,c=i(),u=(0,Z.Z)(s),[d,p,f]=eh(s,u),[m]=(0,G.Cn)("ImagePreview","object"==typeof n?n.zIndex:void 0),g=r.useMemo(()=>{var e;if(!1===n)return n;let t="object"==typeof n?n:{},r=o()(p,f,u,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:(0,$.m)(c,"zoom",t.transitionName),maskTransitionName:(0,$.m)(c,"fade",t.maskTransitionName),rootClassName:r,zIndex:m})},[n]);return d(r.createElement(H.PreviewGroup,Object.assign({preview:g,previewPrefixCls:l,icons:ey},a)))};var ev=eT},94470:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,a=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!a&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(a)return a(e,n).value}return e[n]};e.exports=function e(){var t,n,r,a,c,u,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p4&&m.slice(0,4)===o&&s.test(t)&&("-"===t.charAt(4)?g=o+(n=t.slice(5).replace(l,d)).charAt(0).toUpperCase()+n.slice(1):(f=(p=t).slice(4),t=l.test(f)?p:("-"!==(f=f.replace(c,u)).charAt(0)&&(f="-"+f),o+f)),h=a),new h(g,t))};var s=/^data[-\w.:]+$/i,l=/-[a-z]/g,c=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},48055:function(e,t,n){"use strict";var r=n(26230),a=n(13970),i=n(10629),o=n(647),s=n(91305),l=n(22537);e.exports=r([i,a,o,s,l])},91305:function(e,t,n){"use strict";var r=n(61422),a=n(47589),i=r.booleanish,o=r.number,s=r.spaceSeparated;e.exports=a({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:i,ariaAutoComplete:null,ariaBusy:i,ariaChecked:i,ariaColCount:o,ariaColIndex:o,ariaColSpan:o,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:i,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:i,ariaFlowTo:s,ariaGrabbed:i,ariaHasPopup:null,ariaHidden:i,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:o,ariaLive:null,ariaModal:i,ariaMultiLine:i,ariaMultiSelectable:i,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:o,ariaPressed:i,ariaReadOnly:i,ariaRelevant:null,ariaRequired:i,ariaRoleDescription:s,ariaRowCount:o,ariaRowIndex:o,ariaRowSpan:o,ariaSelected:i,ariaSetSize:o,ariaSort:null,ariaValueMax:o,ariaValueMin:o,ariaValueNow:o,ariaValueText:null,role:null}})},22537:function(e,t,n){"use strict";var r=n(61422),a=n(47589),i=n(19348),o=r.boolean,s=r.overloadedBoolean,l=r.booleanish,c=r.number,u=r.spaceSeparated,d=r.commaSeparated;e.exports=a({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:i,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:o,allowPaymentRequest:o,allowUserMedia:o,alt:null,as:null,async:o,autoCapitalize:null,autoComplete:u,autoFocus:o,autoPlay:o,capture:o,charSet:null,checked:o,cite:null,className:u,cols:c,colSpan:null,content:null,contentEditable:l,controls:o,controlsList:u,coords:c|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:o,defer:o,dir:null,dirName:null,disabled:o,download:s,draggable:l,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:o,formTarget:null,headers:u,height:c,hidden:o,high:c,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:o,itemId:null,itemProp:u,itemRef:u,itemScope:o,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:o,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:o,muted:o,name:null,nonce:null,noModule:o,noValidate:o,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:o,optimum:c,pattern:null,ping:u,placeholder:null,playsInline:o,poster:null,preload:null,readOnly:o,referrerPolicy:null,rel:u,required:o,reversed:o,rows:c,rowSpan:c,sandbox:u,scope:null,scoped:o,seamless:o,selected:o,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:l,src:null,srcDoc:null,srcLang:null,srcSet:d,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:o,useMap:null,value:l,width:c,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:o,declare:o,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:o,noHref:o,noShade:o,noWrap:o,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:l,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:o,disableRemotePlayback:o,prefix:null,property:null,results:c,security:null,unselectable:null}})},19348:function(e,t,n){"use strict";var r=n(21098);e.exports=function(e,t){return r(e,t.toLowerCase())}},21098:function(e){"use strict";e.exports=function(e,t){return t in e?e[t]:t}},47589:function(e,t,n){"use strict";var r=n(64977),a=n(16038),i=n(78444);e.exports=function(e){var t,n,o=e.space,s=e.mustUseProperty||[],l=e.attributes||{},c=e.properties,u=e.transform,d={},p={};for(t in c)n=new i(t,u(l,t),c[t],o),-1!==s.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,p[r(t)]=t,p[r(n.attribute)]=t;return new a(d,p,o)}},78444:function(e,t,n){"use strict";var r=n(40313),a=n(61422);e.exports=s,s.prototype=new r,s.prototype.defined=!0;var i=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],o=i.length;function s(e,t,n,s){var l,c,u,d=-1;for(s&&(this.space=s),r.call(this,e,t);++d=97&&t<=122||t>=65&&t<=90}},7961:function(e,t,n){"use strict";var r=n(46260),a=n(46195);e.exports=function(e){return r(e)||a(e)}},46195:function(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},79480:function(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},49148:function(e,t,n){"use strict";n.d(t,{r:function(){return vV}});var r,a,i,o,s,l,c,u,d,p,f,m,g,h,b,y,E,T,v,S,A,O,_,k,I,C,N,x,w,R,L,D,P,M,F,B,j,U,H,G,$,z,Z,W,Y,V,q,K,X,Q={};n.r(Q),n.d(Q,{area:function(){return a1},bottom:function(){return a7},bottomLeft:function(){return a7},bottomRight:function(){return a7},inside:function(){return a7},left:function(){return a7},outside:function(){return ia},right:function(){return a7},spider:function(){return iu},surround:function(){return ip},top:function(){return a7},topLeft:function(){return a7},topRight:function(){return a7}});var J={};n.r(J),n.d(J,{geoAlbers:function(){return h2.Z},geoAlbersUsa:function(){return h1.Z},geoAzimuthalEqualArea:function(){return h3.Z},geoAzimuthalEqualAreaRaw:function(){return h3.l},geoAzimuthalEquidistant:function(){return h4.Z},geoAzimuthalEquidistantRaw:function(){return h4.N},geoConicConformal:function(){return h5.Z},geoConicConformalRaw:function(){return h5.l},geoConicEqualArea:function(){return h6.Z},geoConicEqualAreaRaw:function(){return h6.v},geoConicEquidistant:function(){return h9.Z},geoConicEquidistantRaw:function(){return h9.o},geoEqualEarth:function(){return h8.Z},geoEqualEarthRaw:function(){return h8.i},geoEquirectangular:function(){return h7.Z},geoEquirectangularRaw:function(){return h7.k},geoGnomonic:function(){return be.Z},geoGnomonicRaw:function(){return be.M},geoIdentity:function(){return bt.Z},geoMercator:function(){return br.ZP},geoMercatorRaw:function(){return br.hk},geoNaturalEarth1:function(){return ba.Z},geoNaturalEarth1Raw:function(){return ba.K},geoOrthographic:function(){return bi.Z},geoOrthographicRaw:function(){return bi.I},geoProjection:function(){return bn.Z},geoProjectionMutator:function(){return bn.r},geoStereographic:function(){return bo.Z},geoStereographicRaw:function(){return bo.T},geoTransverseMercator:function(){return bs.Z},geoTransverseMercatorRaw:function(){return bs.F}});var ee={};n.r(ee),n.d(ee,{frequency:function(){return yn},id:function(){return yr},name:function(){return ya},weight:function(){return yt}});var et=n(74902),en=n(1413),er=n(87462),ea=n(97685),ei=n(45987),eo=n(50888),es=n(96486),el=n(67294),ec=function(){return(ec=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1&&!e.return)switch(e.type){case ey:e.return=function e(t,n,r){var a;switch(a=n,45^ek(t,0)?(((a<<2^ek(t,0))<<2^ek(t,1))<<2^ek(t,2))<<2^ek(t,3):0){case 5103:return eg+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return eg+t+t;case 4789:return em+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return eg+t+em+t+ef+t+t;case 5936:switch(ek(t,n+11)){case 114:return eg+t+ef+eO(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return eg+t+ef+eO(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return eg+t+ef+eO(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return eg+t+ef+t+t;case 6165:return eg+t+ef+"flex-"+t+t;case 5187:return eg+t+eO(t,/(\w+).+(:[^]+)/,eg+"box-$1$2"+ef+"flex-$1$2")+t;case 5443:return eg+t+ef+"flex-item-"+eO(t,/flex-|-self/g,"")+(eA(t,/flex-|baseline/)?"":ef+"grid-row-"+eO(t,/flex-|-self/g,""))+t;case 4675:return eg+t+ef+"flex-line-pack"+eO(t,/align-content|flex-|-self/g,"")+t;case 5548:return eg+t+ef+eO(t,"shrink","negative")+t;case 5292:return eg+t+ef+eO(t,"basis","preferred-size")+t;case 6060:return eg+"box-"+eO(t,"-grow","")+eg+t+ef+eO(t,"grow","positive")+t;case 4554:return eg+eO(t,/([^-])(transform)/g,"$1"+eg+"$2")+t;case 6187:return eO(eO(eO(t,/(zoom-|grab)/,eg+"$1"),/(image-set)/,eg+"$1"),t,"")+t;case 5495:case 3959:return eO(t,/(image-set\([^]*)/,eg+"$1$`$1");case 4968:return eO(eO(t,/(.+:)(flex-)?(.*)/,eg+"box-pack:$3"+ef+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+eg+t+t;case 4200:if(!eA(t,/flex-|baseline/))return ef+"grid-column-align"+eI(t,n)+t;break;case 2592:case 3360:return ef+eO(t,"template-","")+t;case 4384:case 3616:if(r&&r.some(function(e,t){return n=t,eA(e.props,/grid-\w+-end/)}))return~e_(t+(r=r[n].value),"span",0)?t:ef+eO(t,"-start","")+t+ef+"grid-row-span:"+(~e_(r,"span",0)?eA(r,/\d+/):+eA(r,/\d+/)-+eA(t,/\d+/))+";";return ef+eO(t,"-start","")+t;case 4896:case 4128:return r&&r.some(function(e){return eA(e.props,/grid-\w+-start/)})?t:ef+eO(eO(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return eO(t,/(.+)-inline(.+)/,eg+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(eC(t)-1-n>6)switch(ek(t,n+1)){case 109:if(45!==ek(t,n+4))break;case 102:return eO(t,/(.+:)(.+)-([^]+)/,"$1"+eg+"$2-$3$1"+em+(108==ek(t,n+3)?"$3":"$2-$3"))+t;case 115:return~e_(t,"stretch",0)?e(eO(t,"stretch","fill-available"),n,r)+t:t}break;case 5152:case 5920:return eO(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(e,n,r,a,i,o,s){return ef+n+":"+r+s+(a?ef+n+"-span:"+(i?o:+o-+r)+s:"")+t});case 4949:if(121===ek(t,n+6))return eO(t,":",":"+eg)+t;break;case 6444:switch(ek(t,45===ek(t,14)?18:11)){case 120:return eO(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+eg+(45===ek(t,14)?"inline-":"")+"box$3$1"+eg+"$2$3$1"+ef+"$2box$3")+t;case 100:return eO(t,":",":"+ef)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return eO(t,"scroll-","scroll-snap-")+t}return t}(e.value,e.length,n);return;case eE:return ez([eB(e,{value:eO(e.value,"@","@"+eg)})],r);case eb:if(e.length)return(n=e.props).map(function(t){switch(eA(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ej(eB(e,{props:[eO(t,/:(read-\w+)/,":"+em+"$1")]})),ej(eB(e,{props:[t]})),eS(e,{props:ex(n,r)});break;case"::placeholder":ej(eB(e,{props:[eO(t,/:(plac\w+)/,":"+eg+"input-$1")]})),ej(eB(e,{props:[eO(t,/:(plac\w+)/,":"+em+"$1")]})),ej(eB(e,{props:[eO(t,/:(plac\w+)/,ef+"input-$1")]})),ej(eB(e,{props:[t]})),eS(e,{props:ex(n,r)})}return""}).join("")}}function eY(e,t,n,r,a,i,o,s,l,c,u,d){for(var p=a-1,f=0===a?i:[""],m=f.length,g=0,h=0,b=0;g0?f[y]+" "+E:eO(E,/&\f/g,f[y])).trim())&&(l[b++]=T);return eF(e,t,n,0===a?eb:s,l,c,u,d)}function eV(e,t,n,r,a){return eF(e,t,n,ey,eI(e,0,r),eI(e,r+1,-1),r,a)}var eq=n(94371),eK=n(83454),eX=void 0!==eK&&void 0!==eK.env&&(eK.env.REACT_APP_SC_ATTR||eK.env.SC_ATTR)||"data-styled",eQ="active",eJ="data-styled-version",e0="6.1.12",e1="/*!sc*/\n",e2="undefined"!=typeof window&&"HTMLElement"in window,e3=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==eK&&void 0!==eK.env&&void 0!==eK.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==eK.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==eK.env.REACT_APP_SC_DISABLE_SPEEDY&&eK.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==eK&&void 0!==eK.env&&void 0!==eK.env.SC_DISABLE_SPEEDY&&""!==eK.env.SC_DISABLE_SPEEDY&&"false"!==eK.env.SC_DISABLE_SPEEDY&&eK.env.SC_DISABLE_SPEEDY),e4=Object.freeze([]),e5=Object.freeze({}),e6=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),e9=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,e8=/(^-|-$)/g;function e7(e){return e.replace(e9,"-").replace(e8,"")}var te=/(a)(d)/gi,tt=function(e){return String.fromCharCode(e+(e>25?39:97))};function tn(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=tt(t%52)+n;return(tt(t%52)+n).replace(te,"$1-$2")}var tr,ta=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ti=function(e){return ta(5381,e)};function to(e){return"string"==typeof e}var ts="function"==typeof Symbol&&Symbol.for,tl=ts?Symbol.for("react.memo"):60115,tc=ts?Symbol.for("react.forward_ref"):60112,tu={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},td={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},tp={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},tf=((tr={})[tc]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tr[tl]=tp,tr);function tm(e){return("type"in e&&e.type.$$typeof)===tl?tp:"$$typeof"in e?tf[e.$$typeof]:tu}var tg=Object.defineProperty,th=Object.getOwnPropertyNames,tb=Object.getOwnPropertySymbols,ty=Object.getOwnPropertyDescriptor,tE=Object.getPrototypeOf,tT=Object.prototype;function tv(e){return"function"==typeof e}function tS(e){return"object"==typeof e&&"styledComponentId"in e}function tA(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function tO(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r0?" Args: ".concat(t.join(", ")):""))}var tC=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,a=r;e>=a;)if((a<<=1)<0)throw tI(16,"".concat(e));this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var i=r;i=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),a=r+n,i=r;i=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e0&&(l+="".concat(e,","))}),r+="".concat(o).concat(s,'{content:"').concat(l,'"}').concat(e1)}}})(a);return r}(r)})}return e.registerId=function(e){return tR(e)},e.prototype.rehydrate=function(){!this.server&&e2&&tB(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(ec(ec({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){var e,t,n,r;return this.tag||(this.tag=(n=(t=this.options).useCSSOMInjection,r=t.target,e=t.isServer?new tG(r):n?new tU(r):new tH(r),new tC(e)))},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(tR(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(tR(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(tR(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),tW=/&/g,tY=/^\s*\/\/.*$/gm;function tV(e){var t,n,r,a=void 0===e?e5:e,i=a.options,o=void 0===i?e5:i,s=a.plugins,l=void 0===s?e4:s,c=function(e,r,a){return a.startsWith(n)&&a.endsWith(n)&&a.replaceAll(n,"").length>0?".".concat(t):e},u=l.slice();u.push(function(e){e.type===eb&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(tW,n).replace(r,c))}),o.prefix&&u.push(eW),u.push(eZ);var d=function(e,a,i,s){void 0===a&&(a=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,n=a,r=RegExp("\\".concat(n,"\\b"),"g");var l,c,d,p,f,m=e.replace(tY,""),g=(f=function e(t,n,r,a,i,o,s,l,c){for(var u,d=0,p=0,f=s,m=0,g=0,h=0,b=1,y=1,E=1,T=0,v="",S=i,A=o,O=a,_=v;y;)switch(h=T,T=eU()){case 40:if(108!=h&&58==ek(_,f-1)){-1!=e_(_+=eO(e$(T),"&","&\f"),"&\f",eT(d?l[d-1]:0))&&(E=-1);break}case 34:case 39:case 91:_+=e$(T);break;case 9:case 10:case 13:case 32:_+=function(e){for(;eP=eH();)if(eP<33)eU();else break;return eG(e)>2||eG(eP)>3?"":" "}(h);break;case 92:_+=function(e,t){for(var n;--t&&eU()&&!(eP<48)&&!(eP>102)&&(!(eP>57)||!(eP<65))&&(!(eP>70)||!(eP<97)););return n=eD+(t<6&&32==eH()&&32==eU()),eI(eM,e,n)}(eD-1,7);continue;case 47:switch(eH()){case 42:case 47:eN(eF(u=function(e,t){for(;eU();)if(e+eP===57)break;else if(e+eP===84&&47===eH())break;return"/*"+eI(eM,t,eD-1)+"*"+ev(47===e?e:eU())}(eU(),eD),n,r,eh,ev(eP),eI(u,2,-2),0,c),c);break;default:_+="/"}break;case 123*b:l[d++]=eC(_)*E;case 125*b:case 59:case 0:switch(T){case 0:case 125:y=0;case 59+p:-1==E&&(_=eO(_,/\f/g,"")),g>0&&eC(_)-f&&eN(g>32?eV(_+";",a,r,f-1,c):eV(eO(_," ","")+";",a,r,f-2,c),c);break;case 59:_+=";";default:if(eN(O=eY(_,n,r,d,p,i,l,v,S=[],A=[],f,o),o),123===T){if(0===p)e(_,n,O,O,S,o,f,l,A);else switch(99===m&&110===ek(_,3)?100:m){case 100:case 108:case 109:case 115:e(t,O,O,a&&eN(eY(t,O,O,0,0,i,l,v,i,S=[],f,A),A),i,A,f,l,a?S:A);break;default:e(_,O,O,O,[""],A,0,l,A)}}}d=p=g=0,b=E=1,v=_="",f=s;break;case 58:f=1+eC(_),g=h;default:if(b<1){if(123==T)--b;else if(125==T&&0==b++&&125==(eP=eD>0?ek(eM,--eD):0,eR--,10===eP&&(eR=1,ew--),eP))continue}switch(_+=ev(T),T*b){case 38:E=p>0?1:(_+="\f",-1);break;case 44:l[d++]=(eC(_)-1)*E,E=1;break;case 64:45===eH()&&(_+=e$(eU())),m=eH(),p=f=eC(v=_+=function(e){for(;!eG(eH());)eU();return eI(eM,e,eD)}(eD)),T++;break;case 45:45===h&&2==eC(_)&&(b=0)}}return o}("",null,null,null,[""],(p=d=i||a?"".concat(i," ").concat(a," { ").concat(m," }"):m,ew=eR=1,eL=eC(eM=p),eD=0,d=[]),0,[0],d),eM="",f);o.namespace&&(g=function e(t,n){return t.map(function(t){return"rule"===t.type&&(t.value="".concat(n," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(n," ")),t.props=t.props.map(function(e){return"".concat(n," ").concat(e)})),Array.isArray(t.children)&&"@keyframes"!==t.type&&(t.children=e(t.children,n)),t})}(g,o.namespace));var h=[];return ez(g,(c=(l=u.concat(function(e){var t;!e.root&&(e=e.return)&&(t=e,h.push(t))})).length,function(e,t,n,r){for(var a="",i=0;i="A"&&r<="Z"?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var t3=function(e){return null==e||!1===e||""===e},t4=function(e){var t=[];for(var n in e){var r=e[n];e.hasOwnProperty(n)&&!t3(r)&&(Array.isArray(r)&&r.isCss||tv(r)?t.push("".concat(t2(n),":"),r,";"):t_(r)?t.push.apply(t,eu(eu(["".concat(n," {")],t4(r),!1),["}"],!1)):t.push("".concat(t2(n),": ").concat(null==r||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||n in eq.Z||n.startsWith("--")?String(r).trim():"".concat(r,"px"),";")))}return t};function t5(e,t,n,r){return t3(e)?[]:tS(e)?[".".concat(e.styledComponentId)]:tv(e)?!tv(e)||e.prototype&&e.prototype.isReactComponent||!t?[e]:t5(e(t),t,n,r):e instanceof t1?n?(e.inject(n,r),[e.getName(r)]):[e]:t_(e)?t4(e):Array.isArray(e)?Array.prototype.concat.apply(e4,e.map(function(e){return t5(e,t,n,r)})):[e.toString()]}function t6(e){for(var t=0;t>>0);if(!t.hasNameForId(this.componentId,i)){var o=n(a,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,o)}r=tA(r,i),this.staticRulesId=i}}else{for(var s=ta(this.baseHash,n.hash),l="",c=0;c>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(l,".".concat(p),void 0,this.componentId)),r=tA(r,p)}}return r},e}(),t7=el.createContext(void 0);t7.Consumer;var ne={};function nt(e,t,n){var r,a,i,o,s=tS(e),l=!to(e),c=t.attrs,u=void 0===c?e4:c,d=t.componentId,p=void 0===d?(r=t.displayName,a=t.parentComponentId,ne[i="string"!=typeof r?"sc":e7(r)]=(ne[i]||0)+1,o="".concat(i,"-").concat(tn(ti(e0+i+ne[i])>>>0)),a?"".concat(a,"-").concat(o):o):d,f=t.displayName,m=void 0===f?to(e)?"styled.".concat(e):"Styled(".concat(e.displayName||e.name||"Component",")"):f,g=t.displayName&&t.componentId?"".concat(e7(t.displayName),"-").concat(t.componentId):t.componentId||p,h=s&&e.attrs?e.attrs.concat(u).filter(Boolean):u,b=t.shouldForwardProp;if(s&&e.shouldForwardProp){var y=e.shouldForwardProp;if(t.shouldForwardProp){var E=t.shouldForwardProp;b=function(e,t){return y(e,t)&&E(e,t)}}else b=y}var T=new t8(n,g,s?e.componentStyle:void 0);function v(e,t){return function(e,t,n){var r,a,i=e.attrs,o=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,c=e.styledComponentId,u=e.target,d=el.useContext(t7),p=tJ(),f=e.shouldForwardProp||p.shouldForwardProp,m=(void 0===(r=s)&&(r=e5),t.theme!==r.theme&&t.theme||d||r.theme||e5),g=function(e,t,n){for(var r,a=ec(ec({},t),{className:void 0,theme:n}),i=0;i2&&tZ.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}(),function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=n.nc,a=tO([r&&'nonce="'.concat(r,'"'),"".concat(eX,'="true"'),"".concat(eJ,'="').concat(e0,'"')].filter(Boolean)," ");return"")},this.getStyleTags=function(){if(e.sealed)throw tI(2);return e._emitSheetCSS()},this.getStyleElement=function(){if(e.sealed)throw tI(2);var t,r=e.instance.toString();if(!r)return[];var a=((t={})[eX]="",t[eJ]=e0,t.dangerouslySetInnerHTML={__html:r},t),i=n.nc;return i&&(a.nonce=i),[el.createElement("style",ec({},a,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new tZ({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw tI(2);return el.createElement(t0,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw tI(3)}}();var no=n(4942),ns=n(73935),nl=n.t(ns,2),nc=function(){return(nc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=18&&(q=nu.createRoot)}catch(e){}function nf(e){var t=nu.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"==typeof t&&(t.usingClientEntryPoint=e)}var nm="__rc_react_root__",ng=new Map;"undefined"!=typeof document&&ng.set("tooltip",document.createElement("div"));var nh=function(e,t){void 0===t&&(t=!1);var n=null;if(t)n=ng.get("tooltip");else if(n=document.createElement("div"),null==e?void 0:e.key){var r=ng.get(e.key);r?n=r:ng.set(e.key,n)}return!function(e,t){if(q){var n;nf(!0),n=t[nm]||q(t),nf(!1),n.render(e),t[nm]=n;return}np(e,t)}(e,n),n},nb=function(e){if("undefined"==typeof document)return"loading";var t=e.attachShadow({mode:"open"}),n=document.createElement("div"),r=document.createElement("style");r.innerHTML=".loading {\n display: inline-block;\n position: relative;\n width: 80px;\n height: 80px;\n }\n .loading div {\n position: absolute;\n top: 33px;\n width: 13px;\n height: 13px;\n border-radius: 50%;\n background: #ccc;\n animation-timing-function: cubic-bezier(0, 1, 1, 0);\n }\n .loading div:nth-child(1) {\n left: 8px;\n animation: loading1 0.6s infinite;\n }\n .loading div:nth-child(2) {\n left: 8px;\n animation: loading2 0.6s infinite;\n }\n .loading div:nth-child(3) {\n left: 32px;\n animation: loading2 0.6s infinite;\n }\n .loading div:nth-child(4) {\n left: 56px;\n animation: loading3 0.6s infinite;\n }\n @keyframes loading1 {\n 0% {\n transform: scale(0);\n }\n 100% {\n transform: scale(1);\n }\n }\n @keyframes loading3 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0);\n }\n }\n @keyframes loading2 {\n 0% {\n transform: translate(0, 0);\n }\n 100% {\n transform: translate(24px, 0);\n }\n }\n ",n.classList.add("loading"),n.innerHTML="
    ",t.appendChild(r),t.appendChild(n)},ny=function(e){var t=e.loadingTemplate,n=e.theme,r=el.useRef(null);return el.useEffect(function(){!t&&r.current&&nb(r.current)},[]),el.createElement("div",{className:"charts-loading-container",style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:"dark"===(void 0===n?"light":n)?"rgb(20, 20, 20)":"rgb(255, 255, 255)"}},t||el.createElement("div",{ref:r}))},nE=(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),nT=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={hasError:!1},t.renderError=function(e){var n=t.props.errorTemplate;return"function"==typeof n?n(e):n||el.createElement("h5",null,"组件出错了,请核查后重试: ",e.message)},t}return nE(t,e),t.getDerivedStateFromError=function(e){return{hasError:!0,error:e}},t.getDerivedStateFromProps=function(e,t){return t.children!==e.children?{children:e.children,hasError:!1,error:void 0}:null},t.prototype.render=function(){return this.state.hasError?this.renderError(this.state.error):el.createElement(el.Fragment,null,this.props.children)},t}(el.Component),nv=function(){return(nv=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},nA=n(90494),nO=n(1242),n_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let nk=(e,t,n)=>[["M",e-n,t],["A",n,n,0,1,0,e+n,t],["A",n,n,0,1,0,e-n,t],["Z"]];nk.style=["fill"];let nI=nk.bind(void 0);nI.style=["stroke","lineWidth"];let nC=(e,t,n)=>[["M",e-n,t-n],["L",e+n,t-n],["L",e+n,t+n],["L",e-n,t+n],["Z"]];nC.style=["fill"];let nN=nC.bind(void 0);nN.style=["fill"];let nx=nC.bind(void 0);nx.style=["stroke","lineWidth"];let nw=(e,t,n)=>{let r=.618*n;return[["M",e-r,t],["L",e,t-n],["L",e+r,t],["L",e,t+n],["Z"]]};nw.style=["fill"];let nR=nw.bind(void 0);nR.style=["stroke","lineWidth"];let nL=(e,t,n)=>{let r=n*Math.sin(1/3*Math.PI);return[["M",e-n,t+r],["L",e,t-r],["L",e+n,t+r],["Z"]]};nL.style=["fill"];let nD=nL.bind(void 0);nD.style=["stroke","lineWidth"];let nP=(e,t,n)=>{let r=n*Math.sin(1/3*Math.PI);return[["M",e-n,t-r],["L",e+n,t-r],["L",e,t+r],["Z"]]};nP.style=["fill"];let nM=nP.bind(void 0);nM.style=["stroke","lineWidth"];let nF=(e,t,n)=>{let r=n/2*Math.sqrt(3);return[["M",e,t-n],["L",e+r,t-n/2],["L",e+r,t+n/2],["L",e,t+n],["L",e-r,t+n/2],["L",e-r,t-n/2],["Z"]]};nF.style=["fill"];let nB=nF.bind(void 0);nB.style=["stroke","lineWidth"];let nj=(e,t,n)=>{let r=n-1.5;return[["M",e-n,t-r],["L",e+n,t+r],["L",e+n,t-r],["L",e-n,t+r],["Z"]]};nj.style=["fill"];let nU=nj.bind(void 0);nU.style=["stroke","lineWidth"];let nH=(e,t,n)=>[["M",e,t+n],["L",e,t-n]];nH.style=["stroke","lineWidth"];let nG=(e,t,n)=>[["M",e-n,t-n],["L",e+n,t+n],["M",e+n,t-n],["L",e-n,t+n]];nG.style=["stroke","lineWidth"];let n$=(e,t,n)=>[["M",e-n/2,t-n],["L",e+n/2,t-n],["M",e,t-n],["L",e,t+n],["M",e-n/2,t+n],["L",e+n/2,t+n]];n$.style=["stroke","lineWidth"];let nz=(e,t,n)=>[["M",e-n,t],["L",e+n,t],["M",e,t-n],["L",e,t+n]];nz.style=["stroke","lineWidth"];let nZ=(e,t,n)=>[["M",e-n,t],["L",e+n,t]];nZ.style=["stroke","lineWidth"];let nW=(e,t,n)=>[["M",e-n,t],["L",e+n,t]];nW.style=["stroke","lineWidth"];let nY=nW.bind(void 0);nY.style=["stroke","lineWidth"];let nV=(e,t,n)=>[["M",e-n,t],["A",n/2,n/2,0,1,1,e,t],["A",n/2,n/2,0,1,0,e+n,t]];nV.style=["stroke","lineWidth"];let nq=(e,t,n)=>[["M",e-n-1,t-2.5],["L",e,t-2.5],["L",e,t+2.5],["L",e+n+1,t+2.5]];nq.style=["stroke","lineWidth"];let nK=(e,t,n)=>[["M",e-n-1,t+2.5],["L",e,t+2.5],["L",e,t-2.5],["L",e+n+1,t-2.5]];nK.style=["stroke","lineWidth"];let nX=(e,t,n)=>[["M",e-(n+1),t+2.5],["L",e-n/2,t+2.5],["L",e-n/2,t-2.5],["L",e+n/2,t-2.5],["L",e+n/2,t+2.5],["L",e+n+1,t+2.5]];nX.style=["stroke","lineWidth"];let nQ=(e,t,n)=>[["M",e-5,t+2.5],["L",e-5,t],["L",e,t],["L",e,t-3],["L",e,t+3],["L",e+6.5,t+3]];nQ.style=["stroke","lineWidth"];let nJ=new Map([["bowtie",nj],["cross",nG],["dash",nY],["diamond",nw],["dot",nW],["hexagon",nF],["hollowBowtie",nU],["hollowDiamond",nR],["hollowHexagon",nB],["hollowPoint",nI],["hollowSquare",nx],["hollowTriangle",nD],["hollowTriangleDown",nM],["hv",nq],["hvh",nX],["hyphen",nZ],["line",nH],["plus",nz],["point",nk],["rect",nN],["smooth",nV],["square",nC],["tick",n$],["triangleDown",nP],["triangle",nL],["vh",nK],["vhv",nQ]]),n0={};function n1(e,t){if(e.startsWith("symbol.")){var n;n=e.split(".").pop(),nJ.set(n,t)}else Object.assign(n0,{[e]:t})}var n2=n(31989),n3=n(98875),n4=n(68040),n5=n(83787),n6=n(44022),n9=n(73576),n8=n(83845);function n7(e){return e}function re(e){return e.reduce((e,t)=>(n,...r)=>t(e(n,...r),...r),n7)}function rt(e){return e.replace(/( |^)[a-z]/g,e=>e.toUpperCase())}function rn(e=""){throw Error(e)}function rr(e,t){let{attributes:n}=t,r=new Set(["id","className"]);for(let[t,a]of Object.entries(n))r.has(t)||e.attr(t,a)}function ra(e){return null!=e&&!Number.isNaN(e)}function ri(e,t){return ro(e,t)||{}}function ro(e,t){let n=Object.entries(e||{}).filter(([e])=>e.startsWith(t)).map(([e,n])=>[(0,n9.Z)(e.replace(t,"").trim()),n]).filter(([e])=>!!e);return 0===n.length?null:Object.fromEntries(n)}function rs(e,...t){return Object.fromEntries(Object.entries(e).filter(([e])=>t.every(t=>!e.startsWith(t))))}function rl(e,t){if(void 0===e)return null;if("number"==typeof e)return e;let n=+e.replace("%","");return Number.isNaN(n)?null:n/100*t}function rc(e){return"object"==typeof e&&!(e instanceof Date)&&null!==e&&!Array.isArray(e)}function ru(e){return null===e||!1===e}function rd(e){return new rp([e],null,e,e.ownerDocument)}class rp{constructor(e=null,t=null,n=null,r=null,a=[null,null,null,null,null],i=[],o=[]){this._elements=Array.from(e),this._data=t,this._parent=n,this._document=r,this._enter=a[0],this._update=a[1],this._exit=a[2],this._merge=a[3],this._split=a[4],this._transitions=i,this._facetElements=o}selectAll(e){let t="string"==typeof e?this._parent.querySelectorAll(e):e;return new rp(t,null,this._elements[0],this._document)}selectFacetAll(e){let t="string"==typeof e?this._parent.querySelectorAll(e):e;return new rp(this._elements,null,this._parent,this._document,void 0,void 0,t)}select(e){let t="string"==typeof e?this._parent.querySelectorAll(e)[0]||null:e;return new rp([t],null,t,this._document)}append(e){let t="function"==typeof e?e:()=>this.createElement(e),n=[];if(null!==this._data){for(let e=0;ee,n=()=>null){let r=[],a=[],i=new Set(this._elements),o=[],s=new Set,l=new Map(this._elements.map((e,n)=>[t(e.__data__,n),e])),c=new Map(this._facetElements.map((e,n)=>[t(e.__data__,n),e])),u=(0,n6.ZP)(this._elements,e=>n(e.__data__));for(let d=0;de,t=e=>e,n=e=>e.remove(),r=e=>e,a=e=>e.remove()){let i=e(this._enter),o=t(this._update),s=n(this._exit),l=r(this._merge),c=a(this._split);return o.merge(i).merge(s).merge(l).merge(c)}remove(){for(let e=0;ee.finished)).then(()=>{let t=this._elements[e];t.remove()})}else{let t=this._elements[e];t.remove()}}return new rp([],null,this._parent,this._document,void 0,this._transitions)}each(e){for(let t=0;tt:t;return this.each(function(r,a,i){void 0!==t&&(i[e]=n(r,a,i))})}style(e,t){let n="function"!=typeof t?()=>t:t;return this.each(function(r,a,i){void 0!==t&&(i.style[e]=n(r,a,i))})}transition(e){let t="function"!=typeof e?()=>e:e,{_transitions:n}=this;return this.each(function(e,r,a){n[r]=t(e,r,a)})}on(e,t){return this.each(function(n,r,a){a.addEventListener(e,t)}),this}call(e,...t){return e(this,...t),this}node(){return this._elements[0]}nodes(){return this._elements}transitions(){return this._transitions}parent(){return this._parent}}rp.registry={g:nO.ZA,rect:nO.UL,circle:nO.Cd,path:nO.y$,text:nO.xv,ellipse:nO.Pj,image:nO.Ee,line:nO.x1,polygon:nO.mg,polyline:nO.aH,html:nO.k9};let rf={BEFORE_RENDER:"beforerender",AFTER_RENDER:"afterrender",BEFORE_PAINT:"beforepaint",AFTER_PAINT:"afterpaint",BEFORE_CHANGE_DATA:"beforechangedata",AFTER_CHANGE_DATA:"afterchangedata",BEFORE_CLEAR:"beforeclear",AFTER_CLEAR:"afterclear",BEFORE_DESTROY:"beforedestroy",AFTER_DESTROY:"afterdestroy",BEFORE_CHANGE_SIZE:"beforechangesize",AFTER_CHANGE_SIZE:"afterchangesize",POINTER_TAP:"pointertap",POINTER_DOWN:"pointerdown",POINTER_UP:"pointerup",POINTER_OVER:"pointerover",POINTER_OUT:"pointerout",POINTER_MOVE:"pointermove",POINTER_ENTER:"pointerenter",POINTER_LEAVE:"pointerleave",POINTER_UPOUTSIDE:"pointerupoutside",DRAG_START:"dragstart",DRAG:"drag",DRAG_END:"dragend",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"DROP",CLICK:"click",DBLCLICK:"dblclick"};var rm=n(5199),rg=n(83914),rh=n(17694);function rb(e,t){return Object.entries(e).reduce((n,[r,a])=>(n[r]=t(a,r,e),n),{})}function ry(e){return e.map((e,t)=>t)}function rE(e){return e[e.length-1]}function rT(e,t){let n=[[],[]];return e.forEach(e=>{n[t(e)?0:1].push(e)}),n}var rv=n(30335),rS=n(90155),rA=n(98823);let rO=(e={})=>{var t,n;let r=Object.assign(Object.assign({},{startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,outerRadius:1}),e);return Object.assign(Object.assign({},r),(t=r.startAngle,n=r.endAngle,t%=2*Math.PI,n%=2*Math.PI,t<0&&(t=2*Math.PI+t),n<0&&(n=2*Math.PI+n),t>=n&&(n+=2*Math.PI),{startAngle:t,endAngle:n}))},r_=e=>{let{startAngle:t,endAngle:n,innerRadius:r,outerRadius:a}=rO(e);return[["translate",0,.5],["reflect.y"],["translate",0,-.5],["polar",t,n,r,a]]};r_.props={};let rk=(e={})=>Object.assign(Object.assign({},{startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,outerRadius:1}),e),rI=e=>{let{startAngle:t,endAngle:n,innerRadius:r,outerRadius:a}=rk(e);return[["transpose"],["translate",.5,.5],["reflect"],["translate",-.5,-.5],...r_({startAngle:t,endAngle:n,innerRadius:r,outerRadius:a})]};function rC(e,t,n){return Math.max(t,Math.min(e,n))}function rN(e,t=10){return"number"!=typeof e?e:1e-15>Math.abs(e)?e:parseFloat(e.toFixed(t))}rI.props={};let rx=[["legendCategory",[[["color","discrete"],["opacity","discrete"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","constant"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","constant"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","discrete"]],[["color","discrete"],["opacity","discrete"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","discrete"]],[["color","discrete"],["opacity","constant"],["size","constant"]],[["color","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","constant"]],[["color","discrete"],["opacity","constant"],["shape","constant"]],[["color","constant"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","discrete"]],[["color","constant"],["opacity","discrete"],["size","constant"]],[["color","constant"],["opacity","constant"],["shape","discrete"]],[["color","constant"],["opacity","discrete"],["shape","constant"]],[["color","discrete"],["shape","discrete"]],[["color","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"]],[["color","discrete"],["opacity","constant"]],[["color","discrete"],["shape","constant"]],[["color","constant"],["shape","discrete"]],[["color","constant"],["size","constant"]],[["color","constant"],["opacity","discrete"]],[["color","discrete"]]]],["legendContinuousSize",[[["color","continuous"],["opacity","continuous"],["size","continuous"]],[["color","constant"],["opacity","continuous"],["size","continuous"]],[["color","continuous"],["size","continuous"]],[["color","constant"],["size","continuous"]],[["size","continuous"],["opacity","continuous"]],[["size","continuous"]]]],["legendContinuousBlockSize",[[["color","distribution"],["opacity","distribution"],["size","distribution"]],[["color","distribution"],["size","distribution"]]]],["legendContinuousBlock",[[["color","distribution"],["opacity","continuous"]],[["color","distribution"]]]],["legendContinuous",[[["color","continuous"],["opacity","continuous"]],[["color","continuous"]],[["opacity","continuous"]]]]];var rw=n(17816);function rR(e){let{transformations:t}=e.getOptions(),n=t.map(([e])=>e).filter(e=>"transpose"===e);return n.length%2!=0}function rL(e){let{transformations:t}=e.getOptions();return t.some(([e])=>"polar"===e)}function rD(e){let{transformations:t}=e.getOptions();return t.some(([e])=>"reflect"===e)&&t.some(([e])=>e.startsWith("transpose"))}function rP(e){let{transformations:t}=e.getOptions();return t.some(([e])=>"helix"===e)}function rM(e){let{transformations:t}=e.getOptions();return t.some(([e])=>"parallel"===e)}function rF(e){let{transformations:t}=e.getOptions();return t.some(([e])=>"fisheye"===e)}function rB(e){return rP(e)||rL(e)}function rj(e){let{transformations:t}=e.getOptions(),[,,,n,r]=t.find(e=>"polar"===e[0]);return[+n,+r]}function rU(e,t=!0){let{transformations:n}=e.getOptions(),[,r,a]=n.find(e=>"polar"===e[0]);return t?[180*+r/Math.PI,180*+a/Math.PI]:[r,a]}var rH=n(47537),rG=n(36380),r$=n(69959),rz=n(23865),rZ=n(64493),rW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function rY(e,t,n){return e.querySelector(t)?rd(e).select(t):rd(e).append(n)}function rV(e){return Array.isArray(e)?e.join(", "):`${e||""}`}function rq(e,t){let{flexDirection:n,justifyContent:r,alignItems:a}={display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},i={top:["row","flex-start","center"],bottom:["row","flex-start","center"],left:["column","flex-start","center"],right:["column","flex-start","center"],center:["column","center","center"]};return e in i&&([n,r,a]=i[e]),Object.assign({display:"flex",flexDirection:n,justifyContent:r,alignItems:a},t)}class rK extends rZ.A{get child(){var e;return null===(e=this.children)||void 0===e?void 0:e[0]}update(e){var t;this.attr(e);let{subOptions:n}=e;null===(t=this.child)||void 0===t||t.update(n)}}class rX extends rK{update(e){var t;let{subOptions:n}=e;this.attr(e),null===(t=this.child)||void 0===t||t.update(n)}}function rQ(e,t){var n;return null===(n=e.filter(e=>e.getOptions().name===t))||void 0===n?void 0:n[0]}function rJ(e,t,n){let{bbox:r}=e,{position:a="top",size:i,length:o}=t,s=["top","bottom","center"].includes(a),[l,c]=s?[r.height,r.width]:[r.width,r.height],{defaultSize:u,defaultLength:d}=n.props,p=i||u||l,f=o||d||c,[m,g]=s?[f,p]:[p,f];return{orientation:s?"horizontal":"vertical",width:m,height:g,size:p,length:f}}function r0(e){let t=["arrow","crosshairs","grid","handle","handleLabel","indicator","label","line","tick","tip","title","trunc"],{style:n}=e,r=rW(e,["style"]),a={};return Object.entries(r).forEach(([e,n])=>{t.includes(e)?a[`show${(0,rg.Z)(e)}`]=n:a[e]=n}),Object.assign(Object.assign({},a),n)}var r1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function r2(e,t){let{eulerAngles:n,origin:r}=t;r&&e.setOrigin(r),n&&e.rotate(n[0],n[1],n[2])}function r3(e){let{innerWidth:t,innerHeight:n,depth:r}=e.getOptions();return[t,n,r]}function r4(e,t,n,r,a,i,o,s){var l;(void 0!==n||void 0!==i)&&e.update(Object.assign(Object.assign({},n&&{tickCount:n}),i&&{tickMethod:i}));let c=function(e,t,n){if(e.getTicks)return e.getTicks();if(!n)return t;let[r,a]=(0,rz.Z)(t,e=>+e),{tickCount:i}=e.getOptions();return n(r,a,i)}(e,t,i),u=a?c.filter(a):c,d=e=>e instanceof Date?String(e):"object"==typeof e&&e?e:String(e),p=r||(null===(l=e.getFormatter)||void 0===l?void 0:l.call(e))||d,f=function(e,t){if(rL(t))return e=>e;let n=t.getOptions(),{innerWidth:r,innerHeight:a,insetTop:i,insetBottom:o,insetLeft:s,insetRight:l}=n,[c,u,d]="left"===e||"right"===e?[i,o,a]:[s,l,r],p=new rG.b({domain:[0,1],range:[c/d,1-u/d]});return e=>p.map(e)}(o,s),m=function(e,t){let{width:n,height:r}=t.getOptions();return a=>{if(!rF(t))return a;let i=t.map("bottom"===e?[a,1]:[0,a]);if("bottom"===e){let e=i[0],t=new rG.b({domain:[0,n],range:[0,1]});return t.map(e)}if("left"===e){let e=i[1],t=new rG.b({domain:[0,r],range:[0,1]});return t.map(e)}return a}}(o,s),g=e=>["top","bottom","center","outer"].includes(e),h=e=>["left","right"].includes(e);return rL(s)||rR(s)?u.map((t,n,r)=>{var a,i;let l=(null===(a=e.getBandWidth)||void 0===a?void 0:a.call(e,t))/2||0,c=f(e.map(t)+l),u=rD(s)&&"center"===o||rR(s)&&(null===(i=e.getTicks)||void 0===i?void 0:i.call(e))&&g(o)||rR(s)&&h(o);return{value:u?1-c:c,label:d(p(rN(t),n,r)),id:String(n)}}):u.map((t,n,r)=>{var a;let i=(null===(a=e.getBandWidth)||void 0===a?void 0:a.call(e,t))/2||0,s=m(f(e.map(t)+i)),l=h(o);return{value:l?1-s:s,label:d(p(rN(t),n,r)),id:String(n)}})}let r5=e=>t=>{let{labelFormatter:n,labelFilter:r=()=>!0}=t;return a=>{var i;let{scales:[o]}=a,s=(null===(i=o.getTicks)||void 0===i?void 0:i.call(o))||o.getOptions().domain,l="string"==typeof n?(0,rh.WU)(n):n,c=Object.assign(Object.assign({},t),{labelFormatter:l,labelFilter:(e,t,n)=>r(s[t],t,s),scale:o});return e(c)(a)}},r6=r5(e=>{let{direction:t="left",important:n={},labelFormatter:r,order:a,orientation:i,actualPosition:o,position:s,size:l,style:c={},title:u,tickCount:d,tickFilter:p,tickMethod:f,transform:m,indexBBox:g}=e,h=r1(e,["direction","important","labelFormatter","order","orientation","actualPosition","position","size","style","title","tickCount","tickFilter","tickMethod","transform","indexBBox"]);return({scales:a,value:b,coordinate:y,theme:E})=>{var T;let{bbox:v}=b,[S]=a,{domain:A,xScale:O}=S.getOptions(),_=function(e,t,n,r,a,i){let o=function(e,t,n,r,a,i){let o=n.axis,s=["top","right","bottom","left"].includes(a)?n[`axis${rt(a)}`]:n.axisLinear,l=e.getOptions().name,c=n[`axis${(0,rg.Z)(l)}`]||{};return Object.assign({},o,s,c)}(e,0,n,0,a,0);return"center"===a?Object.assign(Object.assign(Object.assign(Object.assign({},o),{labelDirection:"right"===r?"negative":"positive"}),"center"===r?{labelTransform:"translate(50%,0)"}:null),{tickDirection:"right"===r?"negative":"positive",labelSpacing:"center"===r?0:4,titleSpacing:"vertical"===i||i===-Math.PI/2?10:0,tick:"center"!==r&&void 0}):o}(S,0,E,t,s,i),k=Object.assign(Object.assign(Object.assign({},_),c),h),I=function(e,t,n="xy"){let[r,a,i]=r3(t);return"xy"===n?e.includes("bottom")||e.includes("top")?a:r:"xz"===n?e.includes("bottom")||e.includes("top")?i:r:e.includes("bottom")||e.includes("top")?a:i}(o||s,y,e.plane),C=function(e,t,n,r,a){let{x:i,y:o,width:s,height:l}=n;if("bottom"===e)return{startPos:[i,o],endPos:[i+s,o]};if("left"===e)return{startPos:[i+s,o+l],endPos:[i+s,o]};if("right"===e)return{startPos:[i,o+l],endPos:[i,o]};if("top"===e)return{startPos:[i,o+l],endPos:[i+s,o+l]};if("center"===e){if("vertical"===t)return{startPos:[i,o],endPos:[i,o+l]};if("horizontal"===t)return{startPos:[i,o],endPos:[i+s,o]};if("number"==typeof t){let[e,n]=r.getCenter(),[c,u]=rj(r),[d,p]=rU(r),f=Math.min(s,l)/2,{insetLeft:m,insetTop:g}=r.getOptions(),h=c*f,b=u*f,[y,E]=[e+i-m,n+o-g],[T,v]=[Math.cos(t),Math.sin(t)],S=rL(r)&&a?(()=>{let{domain:e}=a.getOptions();return e.length})():3;return{startPos:[y+b*T,E+b*v],endPos:[y+h*T,E+h*v],gridClosed:1e-6>Math.abs(p-d-360),gridCenter:[y,E],gridControlAngles:Array(S).fill(0).map((e,t,n)=>(p-d)/S*t)}}}return{}}(s,i,v,y,O),N=function(e){let{depth:t}=e.getOptions();return t?{tickIsBillboard:!0,lineIsBillboard:!0,labelIsBillboard:!0,titleIsBillboard:!0,gridIsBillboard:!0}:{}}(y),x=r4(S,A,d,r,p,f,s,y),w=g?x.map((e,t)=>{let n=g.get(t);return n&&n[0]===e.label?Object.assign(Object.assign({},e),{bbox:n[1]}):e}):x,R=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},k),{type:"linear",data:w,crossSize:l,titleText:rV(u),labelOverlap:function(e=[],t){if(e.length>0)return e;let{labelAutoRotate:n,labelAutoHide:r,labelAutoEllipsis:a,labelAutoWrap:i}=t,o=[],s=(e,t)=>{t&&o.push(Object.assign(Object.assign({},e),t))};return s({type:"rotate",optionalAngles:[0,15,30,45,60,90]},n),s({type:"ellipsis",minLength:20},a),s({type:"hide"},r),s({type:"wrap",wordWrapWidth:100,maxLines:3,recoveryWhenFail:!0},i),o}(m,k),grid:(T=k.grid,!(rL(y)&&rR(y)||rM(y))&&(void 0===T?!!S.getTicks:T)),gridLength:I,line:!0,indexBBox:g}),k.line?null:{lineOpacity:0}),C),N),n),L=R.labelOverlap.find(e=>"hide"===e.type);return L&&(R.crossSize=!1),new rH.R({className:"axis",style:r0(R)})}}),r9=r5(e=>{let{order:t,size:n,position:r,orientation:a,labelFormatter:i,tickFilter:o,tickCount:s,tickMethod:l,important:c={},style:u={},indexBBox:d,title:p,grid:f=!1}=e,m=r1(e,["order","size","position","orientation","labelFormatter","tickFilter","tickCount","tickMethod","important","style","indexBBox","title","grid"]);return({scales:[e],value:t,coordinate:n,theme:a})=>{let{bbox:u}=t,{domain:g}=e.getOptions(),h=r4(e,g,s,i,o,l,r,n),b=d?h.map((e,t)=>{let n=d.get(t);return n&&n[0]===e.label?Object.assign(Object.assign({},e),{bbox:n[1]}):e}):h,[y,E]=rj(n),T=function(e,t,n,r,a){let{x:i,y:o,width:s,height:l}=t,c=[i+s/2,o+l/2],[u,d]=rU(a),[p,f]=r3(a),m={center:c,radius:Math.min(s,l)/2,startAngle:u,endAngle:d,gridLength:(r-n)*(Math.min(p,f)/2)};if("inner"===e){let{insetLeft:e,insetTop:t}=a.getOptions();return Object.assign(Object.assign({},m),{center:[c[0]-e,c[1]-t],labelAlign:"perpendicular",labelDirection:"positive",tickDirection:"positive",gridDirection:"negative"})}return Object.assign(Object.assign({},m),{labelAlign:"parallel",labelDirection:"negative",tickDirection:"negative",gridDirection:"positive"})}(r,u,y,E,n),{axis:v,axisArc:S={}}=a,A=r0((0,n5.Z)({},v,S,T,Object.assign(Object.assign({type:"arc",data:b,titleText:rV(p),grid:f},m),c)));return new rH.R({style:(0,r$.Z)(A,["transform"])})}});r6.props={defaultPosition:"center",defaultSize:45,defaultOrder:0,defaultCrossPadding:[12,12],defaultPadding:[12,12]},r9.props={defaultPosition:"outer",defaultOrientation:"vertical",defaultSize:45,defaultOrder:0,defaultCrossPadding:[12,12],defaultPadding:[12,12]};var r8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let r7=e=>{let{important:t={}}=e,n=r8(e,["important"]);return r=>{let{theme:a,coordinate:i,scales:o}=r;return r6(Object.assign(Object.assign(Object.assign({},n),function(e){let t=e%(2*Math.PI);return t===Math.PI/2?{titleTransform:"translate(0, 50%)"}:t>-Math.PI/2&&tMath.PI/2&&t<3*Math.PI/2?{titleTransform:"translate(-50%, 0)"}:{}}(e.orientation)),{important:Object.assign(Object.assign({},function(e,t,n,r){let{radar:a}=e,[i]=r,o=i.getOptions().name,[s,l]=rU(n),{axisRadar:c={}}=t;return Object.assign(Object.assign({},c),{grid:"position"===o,gridConnect:"line",gridControlAngles:Array(a.count).fill(0).map((e,t)=>{let n=(l-s)/a.count;return n*t})})}(e,a,i,o)),t)}))(r)}};r7.props=Object.assign(Object.assign({},r6.props),{defaultPosition:"center"});var ae=n(37948),at=n(25897),an=n(7847),ar=n(74271);class aa extends ar.X{getDefaultOptions(){return{range:[0],domain:[0,1],unknown:void 0,tickCount:5,tickMethod:an.Z}}map(e){let[t]=this.options.range;return void 0!==t?t:this.options.unknown}invert(e){let[t]=this.options.range;return e===t&&void 0!==t?this.options.domain:[]}getTicks(){let{tickMethod:e,domain:t,tickCount:n}=this.options,[r,a]=t;return(0,at.Z)(r)&&(0,at.Z)(a)?e(r,a,n):[]}clone(){return new aa(this.options)}}var ai=n(13393),ao=n(33338);class as extends ar.X{getDefaultOptions(){return{domain:[.5],range:[0,1]}}constructor(e){super(e)}map(e){if(!(0,ai.J)(e))return this.options.unknown;let t=(0,ao.b)(this.thresholds,e,0,this.n);return this.options.range[t]}invert(e){let{range:t}=this.options,n=t.indexOf(e),r=this.thresholds;return[r[n-1],r[n]]}clone(){return new as(this.options)}rescale(){let{domain:e,range:t}=this.options;this.n=Math.min(e.length,t.length-1),this.thresholds=e}}var al=n(95147),ac=n(82844);function au(e){return(0,al.Z)(e)?0:(0,ac.Z)(e)?e.length:Object.keys(e).length}var ad=function(e,t){if(!(0,ac.Z)(e))return -1;var n=Array.prototype.indexOf;if(n)return n.call(e,t);for(var r=-1,a=0;aMath.abs(e)?e:parseFloat(e.toFixed(14))}let af=[1,5,2,2.5,4,3],am=100*Number.EPSILON,ag=(e,t,n=5,r=!0,a=af,i=[.25,.2,.5,.05])=>{let o=n<0?0:Math.round(n);if(Number.isNaN(e)||Number.isNaN(t)||"number"!=typeof e||"number"!=typeof t||!o)return[];if(t-e<1e-15||1===o)return[e];let s={score:-2,lmin:0,lmax:0,lstep:0},l=1;for(;l<1/0;){for(let n=0;n=o?2-(c-1)/(o-1):1;if(i[0]*d+i[1]+i[2]*n+i[3]r?1-((n-r)/2)**2/(.1*r)**2:1}(e,t,c*(p-1));if(i[0]*d+i[1]*f+i[2]*n+i[3]=0&&(l=1),1-s/(o-1)-n+l}(u,a,l,f,m,c),b=1-.5*((t-m)**2+(e-f)**2)/(.1*(t-e))**2,y=function(e,t,n,r,a,i){let o=(e-1)/(i-a),s=(t-1)/(Math.max(i,r)-Math.min(n,a));return 2-Math.max(o/s,s/o)}(p,o,e,t,f,m),E=i[0]*h+i[1]*b+i[2]*y+1*i[3];E>s.score&&(!r||f<=e&&m>=t)&&(s.lmin=f,s.lmax=m,s.lstep=c,s.score=E)}}m+=1}p+=1}}l+=1}let u=ap(s.lmax),d=ap(s.lmin),p=ap(s.lstep),f=Math.floor(Math.round(1e12*((u-d)/p))/1e12)+1,m=Array(f);m[0]=ap(d);for(let e=1;ee-t);let r=[];for(let n=1;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function aT(e){let{domain:t}=e.getOptions(),[n,r]=[t[0],rE(t)];return[n,r]}let av=e=>{let{labelFormatter:t,layout:n,order:r,orientation:a,position:i,size:o,title:s,style:l,crossPadding:c,padding:u}=e,d=aE(e,["labelFormatter","layout","order","orientation","position","size","title","style","crossPadding","padding"]);return({scales:r,value:a,theme:o,scale:c})=>{let{bbox:u}=a,{x:p,y:f,width:m,height:g}=u,h=rq(i,n),{legendContinuous:b={}}=o,y=r0(Object.assign({},b,Object.assign(Object.assign({titleText:rV(s),labelAlign:"value",labelFormatter:"string"==typeof t?e=>(0,rh.WU)(t)(e.label):t},function(e,t,n,r,a,i){let o=rQ(e,"color"),s=function(e,t,n){var r,a,i;let{size:o}=t,s=rJ(e,t,n);return r=s,a=o,i=s.orientation,(r.size=a,"horizontal"===i||0===i)?r.height=a:r.width=a,r}(n,r,a);if(o instanceof as){let{range:e}=o.getOptions(),[t,n]=aT(o);return o instanceof ab||o instanceof ay?function(e,t,n,r,a){let i=t.thresholds;return Object.assign(Object.assign({},e),{color:a,data:[n,...i,r].map(e=>({value:e/r,label:String(e)}))})}(s,o,t,n,e):function(e,t,n){let r=t.thresholds,a=[-1/0,...r,1/0].map((e,t)=>({value:t,label:e}));return Object.assign(Object.assign({},e),{data:a,color:n,labelFilter:(e,t)=>t>0&&tvoid 0!==e).find(e=>!(e instanceof aa)));return Object.assign(Object.assign({},e),{domain:[d,p],data:l.getTicks().map(e=>({value:e})),color:Array(Math.floor(o)).fill(0).map((e,t)=>{let n=(u-c)/(o-1)*t+c,a=l.map(n)||s,i=r?r.map(n):1;return a.replace(/rgb[a]*\(([\d]{1,3}) *, *([\d]{1,3}) *, *([\d]{1,3})[\S\s]*\)/,(e,t,n,r)=>`rgba(${t}, ${n}, ${r}, ${i})`)})})}(s,o,l,c,t,i)}(r,c,a,e,av,o)),l),d)),E=new rK({style:Object.assign(Object.assign({x:p,y:f,width:m,height:g},h),{subOptions:y})});return E.appendChild(new ae.V({className:"legend-continuous",style:y})),E}};av.props={defaultPosition:"top",defaultOrientation:"vertical",defaultOrder:1,defaultSize:60,defaultLength:200,defaultLegendSize:60,defaultPadding:[20,10],defaultCrossPadding:[12,12]};let aS=e=>(...t)=>av(Object.assign({},{block:!0},e))(...t);aS.props=Object.assign(Object.assign({},av.props),{defaultPosition:"top",defaultOrientation:"horizontal"});let aA=e=>t=>{let{scales:n}=t,r=rQ(n,"size");return av(Object.assign({},{type:"size",data:r.getTicks().map((e,t)=>({value:e,label:String(e)}))},e))(t)};aA.props=Object.assign(Object.assign({},av.props),{defaultPosition:"top",defaultOrientation:"horizontal"});let aO=e=>aA(Object.assign({},{block:!0},e));aO.props=Object.assign(Object.assign({},av.props),{defaultPosition:"top",defaultOrientation:"horizontal"});var a_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let ak=({static:e=!1}={})=>t=>{let{width:n,height:r,depth:a,paddingLeft:i,paddingRight:o,paddingTop:s,paddingBottom:l,padding:c,inset:u,insetLeft:d,insetTop:p,insetRight:f,insetBottom:m,margin:g,marginLeft:h,marginBottom:b,marginTop:y,marginRight:E,data:T,coordinate:v,theme:S,component:A,interaction:O,x:_,y:k,z:I,key:C,frame:N,labelTransform:x,parentKey:w,clip:R,viewStyle:L,title:D}=t,P=a_(t,["width","height","depth","paddingLeft","paddingRight","paddingTop","paddingBottom","padding","inset","insetLeft","insetTop","insetRight","insetBottom","margin","marginLeft","marginBottom","marginTop","marginRight","data","coordinate","theme","component","interaction","x","y","z","key","frame","labelTransform","parentKey","clip","viewStyle","title"]);return[Object.assign(Object.assign({type:"standardView",x:_,y:k,z:I,key:C,width:n,height:r,depth:a,padding:c,paddingLeft:i,paddingRight:o,paddingTop:s,inset:u,insetLeft:d,insetTop:p,insetRight:f,insetBottom:m,paddingBottom:l,theme:S,coordinate:v,component:A,interaction:O,frame:N,labelTransform:x,margin:g,marginLeft:h,marginBottom:b,marginTop:y,marginRight:E,parentKey:w,clip:R,style:L},!e&&{title:D}),{marks:[Object.assign(Object.assign(Object.assign({},P),{key:`${C}-0`,data:T}),e&&{title:D})]})]};ak.props={};var aI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function aC(e){return(t,...n)=>(0,n5.Z)({},e(t,...n),t)}function aN(e){return(t,...n)=>(0,n5.Z)({},t,e(t,...n))}function ax(e,t){if(!e)return t;if(Array.isArray(e))return e;if(!(e instanceof Date)&&"object"==typeof e){let{value:n=t}=e,r=aI(e,["value"]);return Object.assign(Object.assign({},r),{value:n})}return e}var aw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let aR=()=>e=>{let{children:t}=e,n=aw(e,["children"]);if(!Array.isArray(t))return[];let{data:r,scale:a={},axis:i={},legend:o={},encode:s={},transform:l=[]}=n,c=aw(n,["data","scale","axis","legend","encode","transform"]),u=t.map(e=>{var{data:t,scale:n={},axis:c={},legend:u={},encode:d={},transform:p=[]}=e,f=aw(e,["data","scale","axis","legend","encode","transform"]);return Object.assign({data:ax(t,r),scale:(0,n5.Z)({},a,n),encode:(0,n5.Z)({},s,d),transform:[...l,...p],axis:!!c&&!!i&&(0,n5.Z)({},i,c),legend:!!u&&!!o&&(0,n5.Z)({},o,u)},f)});return[Object.assign(Object.assign({},c),{marks:u,type:"standardView"})]};function aL([e,t],[n,r]){return[e-n,t-r]}function aD([e,t],[n,r]){return Math.sqrt(Math.pow(e-n,2)+Math.pow(t-r,2))}function aP([e,t]){return Math.atan2(t,e)}function aM([e,t]){return aP([e,t])+Math.PI/2}function aF(e,t){let n=aP(e),r=aP(t);return no[e]),u=new rG.b({domain:[l,c],range:[0,100]}),d=e=>(0,at.Z)(o[e])&&!Number.isNaN(o[e])?u.map(o[e]):0,p={between:t=>`${e[t]} ${d(t)}%`,start:t=>0===t?`${e[t]} ${d(t)}%`:`${e[t-1]} ${d(t)}%, ${e[t]} ${d(t)}%`,end:t=>t===e.length-1?`${e[t]} ${d(t)}%`:`${e[t]} ${d(t)}%, ${e[t+1]} ${d(t)}%`},f=s.sort((e,t)=>d(e)-d(t)).map(p[a]||p.between).join(",");return`linear-gradient(${"y"===r||!0===r?i?180:90:i?90:0}deg, ${f})`}function a$(e){let[t,n,r,a]=e;return[a,t,n,r]}function az(e,t,n){let[r,a,,i]=rR(e)?a$(t):t,[o,s]=n,l=e.getCenter(),c=aM(aL(r,l)),u=aM(aL(a,l)),d=u===c&&o!==s?u+2*Math.PI:u;return{startAngle:c,endAngle:d-c>=0?d:2*Math.PI+d,innerRadius:aD(i,l),outerRadius:aD(r,l)}}function aZ(e){let{colorAttribute:t,opacityAttribute:n=t}=e;return`${n}Opacity`}function aW(e,t){if(!rL(e))return"";let n=e.getCenter(),{transform:r}=t;return`translate(${n[0]}, ${n[1]}) ${r||""}`}function aY(e){if(1===e.length)return e[0];let[[t,n,r=0],[a,i,o=0]]=e;return[(t+a)/2,(n+i)/2,(r+o)/2]}function aV(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}aR.props={};var aq=n(86224),aK=n(25049);function aX(e){let t="function"==typeof e?e:e.render;return class extends nO.b_{connectedCallback(){this.draw()}attributeChangedCallback(){this.draw()}draw(){t(this)}}}var aQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let aJ=aX(e=>{let t;let n=e.attributes,{className:r,class:a,transform:i,rotate:o,labelTransform:s,labelTransformOrigin:l,x:c,y:u,x0:d=c,y0:p=u,text:f,background:m,connector:g,startMarker:h,endMarker:b,coordCenter:y,innerHTML:E}=n,T=aQ(n,["className","class","transform","rotate","labelTransform","labelTransformOrigin","x","y","x0","y0","text","background","connector","startMarker","endMarker","coordCenter","innerHTML"]);if(e.style.transform=`translate(${c}, ${u})`,[c,u,d,p].some(e=>!(0,at.Z)(e))){e.children.forEach(e=>e.remove());return}let v=ri(T,"background"),{padding:S}=v,A=aQ(v,["padding"]),O=ri(T,"connector"),{points:_=[]}=O,k=aQ(O,["points"]);t=E?rd(e).maybeAppend("html","html",r).style("zIndex",0).style("innerHTML",E).call(aU,Object.assign({transform:s,transformOrigin:l},T)).node():rd(e).maybeAppend("text","text").style("zIndex",0).style("text",f).call(aU,Object.assign({textBaseline:"middle",transform:s,transformOrigin:l},T)).node();let I=rd(e).maybeAppend("background","rect").style("zIndex",-1).call(aU,function(e,t=[]){let[n=0,r=0,a=n,i=r]=t,o=e.parentNode,s=o.getEulerAngles();o.setEulerAngles(0);let{min:l,halfExtents:c}=e.getLocalBounds(),[u,d]=l,[p,f]=c;return o.setEulerAngles(s),{x:u-i,y:d-n,width:2*p+i+r,height:2*f+n+a}}(t,S)).call(aU,m?A:{}).node(),C=+d(0,aK.Z)()(e);if(!t[0]&&!t[1])return o([function(e){let{min:[t,n],max:[r,a]}=e.getLocalBounds(),i=0,o=0;return t>0&&(i=t),r<0&&(i=r),n>0&&(o=n),a<0&&(o=a),[i,o]}(e),t]);if(!n.length)return o([[0,0],t]);let[s,l]=n,c=[...l],u=[...s];if(l[0]!==s[0]){let e=a?-4:4;c[1]=l[1],i&&!a&&(c[0]=Math.max(s[0],l[0]-e),l[1]s[1]?u[1]=c[1]:(u[1]=s[1],u[0]=Math.max(u[0],c[0]-e))),!i&&a&&(c[0]=Math.min(s[0],l[0]-e),l[1]>s[1]?u[1]=c[1]:(u[1]=s[1],u[0]=Math.min(u[0],c[0]-e))),i&&a&&(c[0]=Math.min(s[0],l[0]-e),l[1]Math.abs(e[1]-o[t][1]));s=Math.max(Math.min(s,a-2),1);let l=e=>[i[e][0],(i[e][1]+o[e][1])/2],c=l(s),u=l(s-1),d=l(s+1),p=aP(aL(d,u))/Math.PI*180;return{x:c[0],y:c[1],transform:`rotate(${p})`,textAlign:"center",textBaseline:"middle"}}function a2(e,t,n,r){let{bounds:a}=n,[[i,o],[s,l]]=a,c=s-i,u=l-o;return(e=>{let{x:t,y:r}=e,a=rl(n.x,c),s=rl(n.y,u);return Object.assign(Object.assign({},e),{x:(a||t)+i,y:(s||r)+o})})("left"===e?{x:0,y:u/2,textAlign:"start",textBaseline:"middle"}:"right"===e?{x:c,y:u/2,textAlign:"end",textBaseline:"middle"}:"top"===e?{x:c/2,y:0,textAlign:"center",textBaseline:"top"}:"bottom"===e?{x:c/2,y:u,textAlign:"center",textBaseline:"bottom"}:"top-left"===e?{x:0,y:0,textAlign:"start",textBaseline:"top"}:"top-right"===e?{x:c,y:0,textAlign:"end",textBaseline:"top"}:"bottom-left"===e?{x:0,y:u,textAlign:"start",textBaseline:"bottom"}:"bottom-right"===e?{x:c,y:u,textAlign:"end",textBaseline:"bottom"}:{x:c/2,y:u/2,textAlign:"center",textBaseline:"middle"})}function a3(e,t,n,r){let{y:a,y1:i,autoRotate:o,rotateToAlignArc:s}=n,l=r.getCenter(),c=az(r,t,[a,i]),{innerRadius:u,outerRadius:d,startAngle:p,endAngle:f}=c,m="inside"===e?(p+f)/2:f,g=a5(m,o,s),h=(()=>{let[n,r]=t,[a,i]="inside"===e?a4(l,m,u+(d-u)*.5):aj(n,r);return{x:a,y:i}})();return Object.assign(Object.assign({},h),{textAlign:"inside"===e?"center":"start",textBaseline:"middle",rotate:g})}function a4(e,t,n){return[e[0]+Math.sin(t)*n,e[1]-Math.cos(t)*n]}function a5(e,t,n){return t?e/Math.PI*180+(n?0:0>Math.sin(e)?90:-90):0}function a6(e,t,n,r){let{y:a,y1:i,autoRotate:o,rotateToAlignArc:s,radius:l=.5,offset:c=0}=n,u=az(r,t,[a,i]),{startAngle:d,endAngle:p}=u,f=r.getCenter(),m=(d+p)/2,g=a5(m,o,s),{innerRadius:h,outerRadius:b}=u,[y,E]=a4(f,m,h+(b-h)*l+c);return Object.assign({x:y,y:E},{textAlign:"center",textBaseline:"middle",rotate:g})}function a9(e){return void 0===e?null:e}function a8(e,t,n,r){let{bounds:a}=n,[i]=a;return{x:a9(i[0]),y:a9(i[1])}}function a7(e,t,n,r){let{bounds:a}=n;if(1===a.length)return a8(e,t,n,r);let i=rD(r)?a3:rB(r)?a6:a2;return i(e,t,n,r)}function ie(e,t,n){let r=az(n,e,[t.y,t.y1]),{innerRadius:a,outerRadius:i}=r;return a+(i-a)}function it(e,t,n){let r=az(n,e,[t.y,t.y1]),{startAngle:a,endAngle:i}=r;return(a+i)/2}function ir(e,t,n,r){let{autoRotate:a,rotateToAlignArc:i,offset:o=0,connector:s=!0,connectorLength:l=o,connectorLength2:c=0,connectorDistance:u=0}=n,d=r.getCenter(),p=it(t,n,r),f=Math.sin(p)>0?1:-1,m=a5(p,a,i),g={textAlign:f>0||rD(r)?"start":"end",textBaseline:"middle",rotate:m},h=ie(t,n,r),b=h+(s?l:o),[[y,E],[T,v],[S,A]]=function(e,t,n,r,a){let[i,o]=a4(e,t,n),[s,l]=a4(e,t,r),c=Math.sin(t)>0?1:-1;return[[i,o],[s,l],[s+c*a,l]]}(d,p,h,b,s?c:0),O=s?+u*f:0,_=S+O;return Object.assign(Object.assign({x0:y,y0:E,x:S+O,y:A},g),{connector:s,connectorPoints:[[T-_,v-A],[S-_,A-A]]})}function ia(e,t,n,r){let{bounds:a}=n;if(1===a.length)return a8(e,t,n,r);let i=rD(r)?a3:rB(r)?ir:a2;return i(e,t,n,r)}var ii=n(80732);function io(e,t={}){let{labelHeight:n=14,height:r}=t,a=(0,ii.Z)(e,e=>e.y),i=a.length,o=Array(i);for(let e=0;e0;e--){let t=o[e],n=o[e-1];if(n.y1>t.y){s=!0,n.labels.push(...t.labels),o.splice(e,1),n.y1+=t.y1-t.y;let a=n.y1-n.y;n.y1=Math.max(Math.min(n.y1,r),a),n.y=n.y1-a}}}let l=0;for(let e of o){let{y:t,labels:r}=e,i=t-n;for(let e of r){let t=a[l++],r=i+n,o=r-e;t.connectorPoints[0][1]-=o,t.y=i+n,i+=n}}}function is(e,t){let n=(0,ii.Z)(e,e=>e.y),{height:r,labelHeight:a=14}=t,i=Math.ceil(r/a);if(n.length<=i)return io(n,t);let o=[];for(let e=0;et.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let ic=new WeakMap;function iu(e,t,n,r,a,i){if(!rB(r))return{};if(ic.has(t))return ic.get(t);let o=i.map(e=>(function(e,t,n){let{connectorLength:r,connectorLength2:a,connectorDistance:i}=t,o=il(ir("outside",e,t,n),[]),s=n.getCenter(),l=ie(e,t,n),c=it(e,t,n),u=s[0]+(l+r+a+ +i)*(Math.sin(c)>0?1:-1),{x:d}=o,p=u-d;return o.x+=p,o.connectorPoints[0][0]-=p,o})(e,n,r)),{width:s,height:l}=r.getOptions(),c=o.filter(e=>e.xe.x>=s/2),d=Object.assign(Object.assign({},a),{height:l});return is(c,d),is(u,d),o.forEach((e,t)=>ic.set(i[t],e)),ic.get(t)}var id=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function ip(e,t,n,r){if(!rB(r))return{};let{connectorLength:a,connectorLength2:i,connectorDistance:o}=n,s=id(ir("outside",t,n,r),[]),{x0:l,y0:c}=s,u=r.getCenter(),d=function(e){if(rB(e)){let[t,n]=e.getSize(),r=e.getOptions().transformations.find(e=>"polar"===e[0]);if(r)return Math.max(t,n)/2*r[4]}return 0}(r),p=aM([l-u[0],c-u[1]]),f=Math.sin(p)>0?1:-1,[m,g]=a4(u,p,d+a);return s.x=m+(i+o)*f,s.y=g,s}var im=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let ig=(e,t)=>{let{coordinate:n,theme:r}=t,{render:a}=e;return(t,i,o,s)=>{let{text:l,x:c,y:u,transform:d="",transformOrigin:p,className:f=""}=i,m=im(i,["text","x","y","transform","transformOrigin","className"]),g=function(e,t,n,r,a,i){let{position:o}=t,{render:s}=a,l=void 0!==o?o:rB(n)?"inside":rR(n)?"right":"top",c=s?"htmlLabel":"inside"===l?"innerLabel":"label",u=r[c],d=Object.assign({},u,t),p=Q[aV(l)];if(!p)throw Error(`Unknown position: ${l}`);return Object.assign(Object.assign({},u),p(l,e,d,n,a,i))}(t,i,n,r,e,s),{rotate:h=0,transform:b=""}=g,y=im(g,["rotate","transform"]);return rd(new aJ).call(aU,y).style("text",`${l}`).style("className",`${f} g2-label`).style("innerHTML",a?a(l,i.datum,i.index):void 0).style("labelTransform",`${b} rotate(${+h}) ${d}`.trim()).style("labelTransformOrigin",p).style("coordCenter",n.getCenter()).call(aU,m).node()}};ig.props={defaultMarker:"point"};var ih=n(11108),ib=n(47666);let iy="main-layer",iE="label-layer",iT="element",iv="view",iS="plot",iA="component",iO="label",i_="area";var ik=n(44355);function iI(e){return!!e.getBandWidth}function iC(e,t,n){if(!iI(e))return e.invert(t);let{adjustedRange:r}=e,{domain:a}=e.getOptions(),i=e.getStep(),o=n?r:r.map(e=>e+i),s=(0,ik.Nw)(o,t),l=Math.min(a.length-1,Math.max(0,s+(n?-1:0)));return a[l]}function iN(e,t,n){if(!t)return e.getOptions().domain;if(!iI(e)){let r=(0,ii.Z)(t);if(!n)return r;let[a]=r,{range:i}=e.getOptions(),[o,s]=i,l=e.invert(e.map(a)+(o>s?-1:1)*n);return[a,l]}let{domain:r}=e.getOptions(),a=t[0],i=r.indexOf(a);if(n){let e=i+Math.round(r.length*n);return r.slice(i,e)}let o=t[t.length-1],s=r.indexOf(o);return r.slice(i,s+1)}function ix(e,t,n,r,a,i){let{x:o,y:s}=a,l=(e,t)=>{let[n,r]=i.invert(e);return[iC(o,n,t),iC(s,r,t)]},c=l([e,t],!0),u=l([n,r],!1),d=iN(o,[c[0],u[0]]),p=iN(s,[c[1],u[1]]);return[d,p]}function iw(e,t){let[n,r]=e;return[t.map(n),t.map(r)+(t.getStep?t.getStep():0)]}var iR=n(10233),iL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function iD(e,t,n,r,a={}){let{inset:i=0,radius:o=0,insetLeft:s=i,insetTop:l=i,insetRight:c=i,insetBottom:u=i,radiusBottomLeft:d=o,radiusBottomRight:p=o,radiusTopLeft:f=o,radiusTopRight:m=o,minWidth:g=-1/0,maxWidth:h=1/0,minHeight:b=-1/0}=a,y=iL(a,["inset","radius","insetLeft","insetTop","insetRight","insetBottom","radiusBottomLeft","radiusBottomRight","radiusTopLeft","radiusTopRight","minWidth","maxWidth","minHeight"]);if(!rL(r)&&!rP(r)){let n=!!rR(r),[a,,i]=n?a$(t):t,[o,E]=a,[T,v]=aL(i,a),S=(T>0?o:o+T)+s,A=(v>0?E:E+v)+l,O=Math.abs(T)-(s+c),_=Math.abs(v)-(l+u),k=n?rC(O,b,1/0):rC(O,g,h),I=n?rC(_,g,h):rC(_,b,1/0),C=n?S:S-(k-O)/2,N=n?A-(I-_)/2:A-(I-_);return rd(e.createElement("rect",{})).style("x",C).style("y",N).style("width",k).style("height",I).style("radius",[f,m,p,d]).call(aU,y).node()}let{y:E,y1:T}=n,v=r.getCenter(),S=az(r,t,[E,T]),A=(0,iR.Z)().cornerRadius(o).padAngle(i*Math.PI/180);return rd(e.createElement("path",{})).style("d",A(S)).style("transform",`translate(${v[0]}, ${v[1]})`).style("radius",o).style("inset",i).call(aU,y).node()}let iP=(e,t)=>{let{colorAttribute:n,opacityAttribute:r="fill",first:a=!0,last:i=!0}=e,o=iL(e,["colorAttribute","opacityAttribute","first","last"]),{coordinate:s,document:l}=t;return(t,r,c)=>{let{color:u,radius:d=0}=c,p=iL(c,["color","radius"]),f=p.lineWidth||1,{stroke:m,radius:g=d,radiusTopLeft:h=g,radiusTopRight:b=g,radiusBottomRight:y=g,radiusBottomLeft:E=g,innerRadius:T=0,innerRadiusTopLeft:v=T,innerRadiusTopRight:S=T,innerRadiusBottomRight:A=T,innerRadiusBottomLeft:O=T,lineWidth:_="stroke"===n||m?f:0,inset:k=0,insetLeft:I=k,insetRight:C=k,insetBottom:N=k,insetTop:x=k,minWidth:w,maxWidth:R,minHeight:L}=o,D=iL(o,["stroke","radius","radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft","innerRadius","innerRadiusTopLeft","innerRadiusTopRight","innerRadiusBottomRight","innerRadiusBottomLeft","lineWidth","inset","insetLeft","insetRight","insetBottom","insetTop","minWidth","maxWidth","minHeight"]),{color:P=u,opacity:M}=r,F=[a?h:v,a?b:S,i?y:A,i?E:O],B=["radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft"];rR(s)&&B.push(B.shift());let j=Object.assign(Object.assign({radius:g},Object.fromEntries(B.map((e,t)=>[e,F[t]]))),{inset:k,insetLeft:I,insetRight:C,insetBottom:N,insetTop:x,minWidth:w,maxWidth:R,minHeight:L});return rd(iD(l,t,r,s,j)).call(aU,p).style("fill","transparent").style(n,P).style(aZ(e),M).style("lineWidth",_).style("stroke",void 0===m?P:m).call(aU,D).node()}};iP.props={defaultEnterAnimation:"scaleInY",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let iM={visibility:"visible",opacity:1,fillOpacity:1,strokeOpacity:1};function iF(e,t,n,r){e.style[t]=n,r&&e.children.forEach(e=>iF(e,t,n,r))}function iB(e){iF(e,"visibility","hidden",!0)}function ij(e){iF(e,"visibility","visible",!0)}var iU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function iH(e){return rd(e).selectAll(`.${iT}`).nodes().filter(e=>!e.__removed__)}function iG(e,t){return i$(e,t).flatMap(({container:e})=>iH(e))}function i$(e,t){return t.filter(t=>t!==e&&t.options.parentKey===e.options.key)}function iz(e){return rd(e).select(`.${iS}`).node()}function iZ(e){if("g"===e.tagName)return e.getRenderBounds();let t=e.getGeometryBounds(),n=new nO.mN;return n.setFromTransformedAABB(t,e.getWorldTransform()),n}function iW(e,t){let{offsetX:n,offsetY:r}=t,a=iZ(e),{min:[i,o],max:[s,l]}=a;return ns||rl?null:[n-i,r-o]}function iY(e,t){let{offsetX:n,offsetY:r}=t,[a,i,o,s]=function(e){let t=e.getRenderBounds(),{min:[n,r],max:[a,i]}=t;return[n,r,a,i]}(e);return[Math.min(o,Math.max(a,n))-a,Math.min(s,Math.max(i,r))-i]}function iV(e){return e=>e.__data__.color}function iq(e){return e=>e.__data__.x}function iK(e){let t=Array.isArray(e)?e:[e],n=new Map(t.flatMap(e=>{let t=Array.from(e.markState.keys());return t.map(t=>[iQ(e.key,t.key),t.data])}));return e=>{let{index:t,markKey:r,viewKey:a}=e.__data__,i=n.get(iQ(a,r));return i[t]}}function iX(e,t=(e,t)=>e,n=(e,t,n)=>e.setAttribute(t,n)){let r="__states__",a="__ordinal__",i=i=>{let{[r]:o=[],[a]:s={}}=i,l=o.reduce((t,n)=>Object.assign(Object.assign({},t),e[n]),s);if(0!==Object.keys(l).length){for(let[e,r]of Object.entries(l)){let a=function(e,t){var n;return null!==(n=e.style[t])&&void 0!==n?n:iM[t]}(i,e),o=t(r,i);n(i,e,o),e in s||(s[e]=a)}i[a]=s}},o=e=>{e[r]||(e[r]=[])};return{setState:(e,...t)=>{o(e),e[r]=[...t],i(e)},removeState:(e,...t)=>{for(let n of(o(e),t)){let t=e[r].indexOf(n);-1!==t&&e[r].splice(t,1)}i(e)},hasState:(e,t)=>(o(e),-1!==e[r].indexOf(t))}}function iQ(e,t){return`${e},${t}`}function iJ(e,t){let n=Array.isArray(e)?e:[e],r=n.flatMap(e=>e.marks.map(t=>[iQ(e.key,t.key),t.state])),a={};for(let e of t){let[t,n]=Array.isArray(e)?e:[e,{}];a[t]=r.reduce((e,r)=>{var a;let[i,o={}]=r,s=void 0===(a=o[t])||"object"==typeof a&&0===Object.keys(a).length?n:o[t];for(let[t,n]of Object.entries(s)){let r=e[t],a=(e,t,a,o)=>{let s=iQ(o.__data__.viewKey,o.__data__.markKey);return i!==s?null==r?void 0:r(e,t,a,o):"function"!=typeof n?n:n(e,t,a,o)};e[t]=a}return e},{})}return a}function i0(e,t){let n=new Map(e.map((e,t)=>[e,t])),r=t?e.map(t):e;return(e,a)=>{if("function"!=typeof e)return e;let i=n.get(a),o=t?t(a):a;return e(o,i,r,a)}}function i1(e){var{link:t=!1,valueof:n=(e,t)=>e,coordinate:r}=e,a=iU(e,["link","valueof","coordinate"]);if(!t)return[()=>{},()=>{}];let i=e=>e.__data__.points,o=(e,t)=>{let[,n,r]=e,[a,,,i]=t;return[n,a,i,r]};return[e=>{var t;if(e.length<=1)return;let r=(0,ii.Z)(e,(e,t)=>{let{x:n}=e.__data__,{x:r}=t.__data__;return n-r});for(let e=1;en(e,l)),{fill:g=l.getAttribute("fill")}=m,h=iU(m,["fill"]),b=new nO.y$({className:"element-link",style:Object.assign({d:s.toString(),fill:g,zIndex:-2},h)});null===(t=l.link)||void 0===t||t.remove(),l.parentNode.appendChild(b),l.link=b}},e=>{var t;null===(t=e.link)||void 0===t||t.remove(),e.link=null}]}function i2(e,t,n){let r=t=>{let{transform:n}=e.style;return n?`${n} ${t}`:t};if(rL(n)){let{points:a}=e.__data__,[i,o]=rR(n)?a$(a):a,s=n.getCenter(),l=aL(i,s),c=aL(o,s),u=aP(l),d=aF(l,c),p=u+d/2,f=t*Math.cos(p),m=t*Math.sin(p);return r(`translate(${f}, ${m})`)}return r(rR(n)?`translate(${t}, 0)`:`translate(0, ${-t})`)}function i3(e){var{document:t,background:n,scale:r,coordinate:a,valueof:i}=e,o=iU(e,["document","background","scale","coordinate","valueof"]);let s="element-background";if(!n)return[()=>{},()=>{}];let l=(e,t,n)=>{let r=e.invert(t),a=t+e.getBandWidth(r)/2,i=e.getStep(r)/2,o=i*n;return[a-i+o,a+i-o]},c=(e,t)=>{let{x:n}=r;if(!iI(n))return[0,1];let{__data__:a}=e,{x:i}=a,[o,s]=l(n,i,t);return[o,s]},u=(e,t)=>{let{y:n}=r;if(!iI(n))return[0,1];let{__data__:a}=e,{y:i}=a,[o,s]=l(n,i,t);return[o,s]},d=(e,n)=>{let{padding:r}=n,[i,o]=c(e,r),[s,l]=u(e,r),d=[[i,s],[o,s],[o,l],[i,l]].map(e=>a.map(e)),{__data__:p}=e,{y:f,y1:m}=p;return iD(t,d,{y:f,y1:m},a,n)},p=(e,t)=>{let{transform:n="scale(1.2, 1.2)",transformOrigin:r="center center",stroke:a=""}=t,i=iU(t,["transform","transformOrigin","stroke"]),o=Object.assign({transform:n,transformOrigin:r,stroke:a},i),s=e.cloneNode(!0);for(let[e,t]of Object.entries(o))s.style[e]=t;return s},f=()=>{let{x:e,y:t}=r;return[e,t].some(iI)};return[e=>{e.background&&e.background.remove();let t=rb(o,t=>i(t,e)),{fill:n="#CCD6EC",fillOpacity:r=.3,zIndex:a=-2,padding:l=.001,lineWidth:c=0}=t,u=iU(t,["fill","fillOpacity","zIndex","padding","lineWidth"]),m=Object.assign(Object.assign({},u),{fill:n,fillOpacity:r,zIndex:a,padding:l,lineWidth:c}),g=f()?d:p,h=g(e,m);h.className=s,e.parentNode.parentNode.appendChild(h),e.background=h},e=>{var t;null===(t=e.background)||void 0===t||t.remove(),e.background=null},e=>e.className===s]}function i4(e,t){let n=e.getRootNode().defaultView,r=n.getContextService().getDomElement();(null==r?void 0:r.style)&&(e.cursor=r.style.cursor,r.style.cursor=t)}function i5(e,t,n){return e.find(e=>Object.entries(t).every(([t,r])=>n(e)[t]===r))}function i6(e,t){return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2))}function i9(e,t=!1){let n=(0,ib.Z)(e,e=>!!e).map((e,t)=>[0===t?"M":"L",...e]);return t&&n.push(["Z"]),n}function i8(e){return e.querySelectorAll(".element")}function i7(e,t){if(t(e))return e;let n=e.parent;for(;n&&!t(n);)n=n.parent;return n}function oe(e,t){let{__data__:n}=e,{markKey:r,index:a,seriesIndex:i}=n,{markState:o}=t,s=Array.from(o.keys()).find(e=>e.key===r);if(s)return i?i.map(e=>s.data[e]):s.data[a]}function ot(e,t,n,r=e=>!0){return a=>{if(!r(a))return;n.emit(`plot:${e}`,a);let{target:i}=a;if(!i)return;let{className:o}=i;if("plot"===o)return;let s=i7(i,e=>"element"===e.className),l=i7(i,e=>"component"===e.className),c=i7(i,e=>"label"===e.className),u=s||l||c;if(!u)return;let{className:d,markType:p}=u,f=Object.assign(Object.assign({},a),{nativeEvent:!0});"element"===d?(f.data={data:oe(u,t)},n.emit(`element:${e}`,f),n.emit(`${p}:${e}`,f)):"label"===d?(f.data={data:u.attributes.datum},n.emit(`label:${e}`,f),n.emit(`${o}:${e}`,f)):(n.emit(`component:${e}`,f),n.emit(`${o}:${e}`,f))}}function on(){return(e,t,n)=>{let{container:r,view:a}=e,i=ot(rf.CLICK,a,n,e=>1===e.detail),o=ot(rf.DBLCLICK,a,n,e=>2===e.detail),s=ot(rf.POINTER_TAP,a,n),l=ot(rf.POINTER_DOWN,a,n),c=ot(rf.POINTER_UP,a,n),u=ot(rf.POINTER_OVER,a,n),d=ot(rf.POINTER_OUT,a,n),p=ot(rf.POINTER_MOVE,a,n),f=ot(rf.POINTER_ENTER,a,n),m=ot(rf.POINTER_LEAVE,a,n),g=ot(rf.POINTER_UPOUTSIDE,a,n),h=ot(rf.DRAG_START,a,n),b=ot(rf.DRAG,a,n),y=ot(rf.DRAG_END,a,n),E=ot(rf.DRAG_ENTER,a,n),T=ot(rf.DRAG_LEAVE,a,n),v=ot(rf.DRAG_OVER,a,n),S=ot(rf.DROP,a,n);return r.addEventListener("click",i),r.addEventListener("click",o),r.addEventListener("pointertap",s),r.addEventListener("pointerdown",l),r.addEventListener("pointerup",c),r.addEventListener("pointerover",u),r.addEventListener("pointerout",d),r.addEventListener("pointermove",p),r.addEventListener("pointerenter",f),r.addEventListener("pointerleave",m),r.addEventListener("pointerupoutside",g),r.addEventListener("dragstart",h),r.addEventListener("drag",b),r.addEventListener("dragend",y),r.addEventListener("dragenter",E),r.addEventListener("dragleave",T),r.addEventListener("dragover",v),r.addEventListener("drop",S),()=>{r.removeEventListener("click",i),r.removeEventListener("click",o),r.removeEventListener("pointertap",s),r.removeEventListener("pointerdown",l),r.removeEventListener("pointerup",c),r.removeEventListener("pointerover",u),r.removeEventListener("pointerout",d),r.removeEventListener("pointermove",p),r.removeEventListener("pointerenter",f),r.removeEventListener("pointerleave",m),r.removeEventListener("pointerupoutside",g),r.removeEventListener("dragstart",h),r.removeEventListener("drag",b),r.removeEventListener("dragend",y),r.removeEventListener("dragenter",E),r.removeEventListener("dragleave",T),r.removeEventListener("dragover",v),r.removeEventListener("drop",S)}}}on.props={reapplyWhenUpdate:!0};var or=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function oa(e,t){let n=Object.assign(Object.assign({},{"component.axisRadar":r7,"component.axisLinear":r6,"component.axisArc":r9,"component.legendContinuousBlock":aS,"component.legendContinuousBlockSize":aO,"component.legendContinuousSize":aA,"interaction.event":on,"composition.mark":ak,"composition.view":aR,"shape.label.label":ig}),t),r=t=>{if("string"!=typeof t)return t;let r=`${e}.${t}`;return n[r]||rn(`Unknown Component: ${r}`)};return[(e,t)=>{let{type:n}=e,a=or(e,["type"]);n||rn("Plot type is required!");let i=r(n);return null==i?void 0:i(a,t)},r]}function oi(e){let{canvas:t,group:n}=e;return(null==t?void 0:t.document)||(null==n?void 0:n.ownerDocument)||rn("Cannot find library document")}var oo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function os(e,t){let{coordinate:n={},coordinates:r}=e,a=oo(e,["coordinate","coordinates"]);if(r)return e;let{type:i,transform:o=[]}=n,s=oo(n,["type","transform"]);if(!i)return Object.assign(Object.assign({},a),{coordinates:o});let[,l]=oa("coordinate",t),{transform:c=!1}=l(i).props||{};if(c)throw Error(`Unknown coordinate: ${i}.`);return Object.assign(Object.assign({},a),{coordinates:[Object.assign({type:i},s),...o]})}function ol(e,t){return e.filter(e=>e.type===t)}function oc(e){return ol(e,"polar").length>0}function ou(e){return ol(e,"transpose").length%2==1}function od(e){return ol(e,"theta").length>0}function op(e){return ol(e,"radial").length>0}var of=n(25338),om=n(63488);function og(e,t){let n=Object.keys(e);for(let r of Object.values(t)){let{name:t}=r.getOptions();if(t in e){let a=n.filter(e=>e.startsWith(t)).map(e=>+(e.replace(t,"")||0)),i=(0,rA.Z)(a)+1,o=`${t}${i}`;e[o]=r,r.getOptions().key=o}else e[t]=r}return e}function oh(e,t){let n,r;let[a]=oa("scale",t),{relations:i}=e,[o]=i&&Array.isArray(i)?[e=>{var t;n=e.map.bind(e),r=null===(t=e.invert)||void 0===t?void 0:t.bind(e);let a=i.filter(([e])=>"function"==typeof e),o=i.filter(([e])=>"function"!=typeof e),s=new Map(o);if(e.map=e=>{for(let[t,n]of a)if(t(e))return n;return s.has(e)?s.get(e):n(e)},!r)return e;let l=new Map(o.map(([e,t])=>[t,e])),c=new Map(a.map(([e,t])=>[t,e]));return e.invert=e=>c.has(e)?e:l.has(e)?l.get(e):r(e),e},e=>(null!==n&&(e.map=n),null!==r&&(e.invert=r),e)]:[n7,n7],s=a(e);return o(s)}function ob(e,t){let n=e.filter(({name:e,facet:n=!0})=>n&&e===t),r=n.flatMap(e=>e.domain),a=n.every(oy)?(0,rz.Z)(r):n.every(oE)?Array.from(new Set(r)):null;if(null!==a)for(let e of n)e.domain=a}function oy(e){let{type:t}=e;return"string"==typeof t&&["linear","log","pow","time"].includes(t)}function oE(e){let{type:t}=e;return"string"==typeof t&&["band","point","ordinal"].includes(t)}function oT(e,t,n,r,a){let[i]=oa("palette",a),{category10:o,category20:s}=r,l=Array.from(new Set(n)).length<=o.length?o:s,{palette:c=l,offset:u}=t;if(Array.isArray(c))return c;try{return i({type:c})}catch(t){let e=function(e,t,n=e=>e){if(!e)return null;let r=(0,rg.Z)(e),a=om[`scheme${r}`],i=om[`interpolate${r}`];if(!a&&!i)return null;if(a){if(!a.some(Array.isArray))return a;let e=a[t.length];if(e)return e}return t.map((e,r)=>i(n(r/t.length)))}(c,n,u);if(e)return e;throw Error(`Unknown Component: ${c} `)}}function ov(e,t){return t||(e.startsWith("x")||e.startsWith("y")||e.startsWith("position")||e.startsWith("size")?"point":"ordinal")}function oS(e,t,n){return n||("color"!==e?"linear":t?"linear":"sequential")}function oA(e,t){if(0===e.length)return e;let{domainMin:n,domainMax:r}=t,[a,i]=e;return[null!=n?n:a,null!=r?r:i]}function oO(e){return ok(e,e=>{let t=typeof e;return"string"===t||"boolean"===t})}function o_(e){return ok(e,e=>e instanceof Date)}function ok(e,t){for(let n of e)if(n.some(t))return!0;return!1}let oI={linear:"linear",identity:"identity",log:"log",pow:"pow",sqrt:"sqrt",sequential:"sequential"},oC={threshold:"threshold",quantize:"quantize",quantile:"quantile"},oN={ordinal:"ordinal",band:"band",point:"point"},ox={constant:"constant"};var ow=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function oR(e,t,n,r,a){let[i]=oa("component",r),{scaleInstances:o,scale:s,bbox:l}=e,c=ow(e,["scaleInstances","scale","bbox"]),u=i(c);return u({coordinate:t,library:r,markState:a,scales:o,theme:n,value:{bbox:l,library:r},scale:s})}function oL(e,t){let n=["left","right","bottom","top"],r=(0,n6.Xx)(e,({type:e,position:t,group:r})=>n.includes(t)?void 0===r?e.startsWith("legend")?`legend-${t}`:Symbol("independent"):"independent"===r?Symbol("independent"):r:Symbol("independent"));return r.flatMap(([,e])=>{if(1===e.length)return e[0];if(void 0!==t){let n=e.filter(e=>void 0!==e.length).map(e=>e.length),r=(0,rS.Z)(n);if(r>t)return e.forEach(e=>e.group=Symbol("independent")),e;let a=e.length-n.length,i=(t-r)/a;e.forEach(e=>{void 0===e.length&&(e.length=i)})}let n=(0,rA.Z)(e,e=>e.size),r=(0,rA.Z)(e,e=>e.order),a=(0,rA.Z)(e,e=>e.crossPadding),i=e[0].position;return{type:"group",size:n,order:r,position:i,children:e,crossPadding:a}})}function oD(e){let t=ol(e,"polar");if(t.length){let e=t[t.length-1],{startAngle:n,endAngle:r}=rO(e);return[n,r]}let n=ol(e,"radial");if(n.length){let e=n[n.length-1],{startAngle:t,endAngle:r}=rk(e);return[t,r]}return[-Math.PI/2,Math.PI/2*3]}function oP(e,t,n,r,a,i){let{type:o}=e;if(["left","right","bottom","top"].includes(r)&&"string"==typeof o)return(o.startsWith("axis")?oU:o.startsWith("group")?oM:o.startsWith("legendContinuous")?oH:"legendCategory"===o?oG:o.startsWith("slider")?oj:"title"===o?oB:o.startsWith("scrollbar")?oF:()=>{})(e,t,n,r,a,i)}function oM(e,t,n,r,a,i){let{children:o}=e,s=(0,rA.Z)(o,e=>e.crossPadding);o.forEach(e=>e.crossPadding=s),o.forEach(e=>oP(e,t,n,r,a,i));let l=(0,rA.Z)(o,e=>e.size);e.size=l,o.forEach(e=>e.size=l)}function oF(e,t,n,r,a,i){let{trackSize:o=6}=(0,n5.Z)({},a.scrollbar,e);e.size=o}function oB(e,t,n,r,a,i){let o=(0,n5.Z)({},a.title,e),{title:s,subtitle:l,spacing:c=0}=o,u=ow(o,["title","subtitle","spacing"]);if(s){let t=ri(u,"title"),n=oV(s,t);e.size=n.height}if(l){let t=ri(u,"subtitle"),n=oV(l,t);e.size+=c+n.height}}function oj(e,t,n,r,a,i){let{trackSize:o,handleIconSize:s}=(()=>{let{slider:t}=a;return(0,n5.Z)({},t,e)})();e.size=Math.max(o,2.4*s)}function oU(e,t,n,r,a,i){var o;e.transform=e.transform||[{type:"hide"}];let s="left"===r||"right"===r,l=oW(e,r,a),{tickLength:c=0,labelSpacing:u=0,titleSpacing:d=0,labelAutoRotate:p}=l,f=ow(l,["tickLength","labelSpacing","titleSpacing","labelAutoRotate"]),m=o$(e,i),g=oz(f,m),h=c+u;if(g&&g.length){let r=(0,rA.Z)(g,e=>e.width),a=(0,rA.Z)(g,e=>e.height);if(s)e.size=r+h;else{let{tickFilter:i,labelTransform:s}=e;(function(e,t,n,r,a){let i=(0,rS.Z)(t,e=>e.width);if(i>n)return!0;let o=e.clone();o.update({range:[0,n]});let s=oY(e,a),l=s.map(e=>o.map(e)+function(e,t){if(!e.getBandWidth)return 0;let n=e.getBandWidth(t)/2;return n}(o,e)),c=s.map((e,t)=>t),u=-r[0],d=n+r[1],p=(e,t)=>{let{width:n}=t;return[e-n/2,e+n/2]};for(let e=0;ed)return!0;let i=l[e+1];if(i){let[n]=p(i,t[e+1]);if(a>n)return!0}}return!1})(m,g,t,n,i)&&!s&&!1!==p&&null!==p?(e.labelTransform="rotate(90)",e.size=r+h):(e.labelTransform=null!==(o=e.labelTransform)&&void 0!==o?o:"rotate(0)",e.size=a+h)}}else e.size=c;let b=oZ(f);b&&(s?e.size+=d+b.width:e.size+=d+b.height)}function oH(e,t,n,r,a,i){let o=(()=>{let{legendContinuous:t}=a;return(0,n5.Z)({},t,e)})(),{labelSpacing:s=0,titleSpacing:l=0}=o,c=ow(o,["labelSpacing","titleSpacing"]),u="left"===r||"right"===r,d=ri(c,"ribbon"),{size:p}=d,f=ri(c,"handleIcon"),{size:m}=f;e.size=Math.max(p,2.4*m);let g=o$(e,i),h=oz(c,g);if(h){let t=u?"width":"height",n=(0,rA.Z)(h,e=>e[t]);e.size+=n+s}let b=oZ(c);b&&(u?e.size=Math.max(e.size,b.width):e.size+=l+b.height)}function oG(e,t,n,r,a,i){let o=(()=>{let{legendCategory:t}=a,{title:n}=e,[r,i]=Array.isArray(n)?[n,void 0]:[void 0,n];return(0,n5.Z)({title:r},t,Object.assign(Object.assign({},e),{title:i}))})(),{itemSpacing:s,itemMarkerSize:l,titleSpacing:c,rowPadding:u,colPadding:d,maxCols:p=1/0,maxRows:f=1/0}=o,m=ow(o,["itemSpacing","itemMarkerSize","titleSpacing","rowPadding","colPadding","maxCols","maxRows"]),{cols:g,length:h}=e,b=e=>Math.min(e,f),y=e=>Math.min(e,p),E="left"===r||"right"===r,T=void 0===h?t+(E?0:n[0]+n[1]):h,v=oZ(m),S=o$(e,i),A=oz(m,S,"itemLabel"),O=Math.max(A[0].height,l)+u,_=(e,t=0)=>l+e+s[0]+t;E?(()=>{let t=-1/0,n=0,r=1,a=0,i=-1/0,o=-1/0,s=v?v.height:0,l=T-s;for(let{width:e}of A){let s=_(e,d);t=Math.max(t,s),n+O>l?(r++,i=Math.max(i,a),o=Math.max(o,n),a=1,n=O):(n+=O,a++)}r<=1&&(i=a,o=n),e.size=t*y(r),e.length=o+s,(0,n5.Z)(e,{cols:y(r),gridRow:i})})():"number"==typeof g?(()=>{let t=Math.ceil(A.length/g),n=(0,rA.Z)(A,e=>_(e.width))*g;e.size=O*b(t)-u,e.length=Math.min(n,T)})():(()=>{let t=1,n=0,r=-1/0;for(let{width:e}of A){let a=_(e,d);n+a>T?(r=Math.max(r,n),n=a,t++):n+=a}1===t&&(r=n),e.size=O*b(t)-u,e.length=r})(),v&&(E?e.size=Math.max(e.size,v.width):e.size+=c+v.height)}function o$(e,t){let[n]=oa("scale",t),{scales:r,tickCount:a,tickMethod:i}=e,o=r.find(e=>"constant"!==e.type&&"identity"!==e.type);return void 0!==a&&(o.tickCount=a),void 0!==i&&(o.tickMethod=i),n(o)}function oz(e,t,n="label"){let{labelFormatter:r,tickFilter:a,label:i=!0}=e,o=ow(e,["labelFormatter","tickFilter","label"]);if(!i)return null;let s=function(e,t,n){let r=oY(e,n),a=r.map(e=>"number"==typeof e?rN(e):e),i=t?"string"==typeof t?(0,rh.WU)(t):t:e.getFormatter?e.getFormatter():e=>`${e}`;return a.map(i)}(t,r,a),l=ri(o,n),c=s.map((e,t)=>Object.fromEntries(Object.entries(l).map(([n,r])=>[n,"function"==typeof r?r(e,t):r]))),u=s.map((e,t)=>{let n=c[t];return oV(e,n)}),d=c.some(e=>e.transform);if(!d){let t=s.map((e,t)=>t);e.indexBBox=new Map(t.map(e=>[e,[s[e],u[e]]]))}return u}function oZ(e){let{title:t}=e,n=ow(e,["title"]);if(!1===t||null==t)return null;let r=ri(n,"title"),{direction:a,transform:i}=r,o=Array.isArray(t)?t.join(","):t;if("string"!=typeof o)return null;let s=oV(o,Object.assign(Object.assign({},r),{transform:i||("vertical"===a?"rotate(-90)":"")}));return s}function oW(e,t,n){let{title:r}=e,[a,i]=Array.isArray(r)?[r,void 0]:[void 0,r],{axis:o,[`axis${rt(t)}`]:s}=n;return(0,n5.Z)({title:a},o,s,Object.assign(Object.assign({},e),{title:i}))}function oY(e,t){let n=e.getTicks?e.getTicks():e.getOptions().domain;return t?n.filter(t):n}function oV(e,t){let n=e instanceof nO.s$?e:new nO.xv({style:{text:`${e}`}}),{filter:r}=t,a=ow(t,["filter"]);n.attr(Object.assign(Object.assign({},a),{visibility:"none"}));let i=n.getBBox();return i}var oq=n(47622),oK=n(91077);function oX(e,t,n,r,a,i,o){let s=(0,n6.ZP)(e,e=>e.position),{padding:l=i.padding,paddingLeft:c=l,paddingRight:u=l,paddingBottom:d=l,paddingTop:p=l}=a,f={paddingBottom:d,paddingLeft:c,paddingTop:p,paddingRight:u};for(let e of r){let r=`padding${rt(aV(e))}`,a=s.get(e)||[],l=f[r],c=e=>{void 0===e.size&&(e.size=e.defaultSize)},u=e=>{"group"===e.type?(e.children.forEach(c),e.size=(0,rA.Z)(e.children,e=>e.size)):e.size=e.defaultSize},d=r=>{r.size||("auto"!==l?u(r):(oP(r,t,n,e,i,o),c(r)))},p=e=>{e.type.startsWith("axis")&&void 0===e.labelAutoHide&&(e.labelAutoHide=!0)},m="bottom"===e||"top"===e,g=(0,oq.Z)(a,e=>e.order),h=a.filter(e=>e.type.startsWith("axis")&&e.order==g);if(h.length&&(h[0].crossPadding=0),"number"==typeof l)a.forEach(c),a.forEach(p);else if(0===a.length)f[r]=0;else{let e=m?t+n[0]+n[1]:t,i=oL(a,e);i.forEach(d);let o=i.reduce((e,{size:t,crossPadding:n=12})=>e+t+n,0);f[r]=o}}return f}function oQ({width:e,height:t,paddingLeft:n,paddingRight:r,paddingTop:a,paddingBottom:i,marginLeft:o,marginTop:s,marginBottom:l,marginRight:c,innerHeight:u,innerWidth:d,insetBottom:p,insetLeft:f,insetRight:m,insetTop:g}){let h=n+o,b=a+s,y=r+c,E=i+l,T=e-o-c,v=[h+f,b+g,d-f-m,u-g-p,"center",null,null],S={top:[h,0,d,b,"vertical",!0,oK.Z,o,T],right:[e-y,b,y,u,"horizontal",!1,oK.Z],bottom:[h,t-E,d,E,"vertical",!1,oK.Z,o,T],left:[0,b,h,u,"horizontal",!0,oK.Z],"top-left":[h,0,d,b,"vertical",!0,oK.Z],"top-right":[h,0,d,b,"vertical",!0,oK.Z],"bottom-left":[h,t-E,d,E,"vertical",!1,oK.Z],"bottom-right":[h,t-E,d,E,"vertical",!1,oK.Z],center:v,inner:v,outer:v};return S}function oJ(e,t,n={},r=!1){if(ru(e)||Array.isArray(e)&&r)return e;let a=ri(e,t);return(0,n5.Z)(n,a)}function o0(e,t={}){return ru(e)||Array.isArray(e)||!o1(e)?e:(0,n5.Z)(t,e)}function o1(e){if(0===Object.keys(e).length)return!0;let{title:t,items:n}=e;return void 0!==t||void 0!==n}function o2(e,t){return"object"==typeof e?ri(e,t):e}var o3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function o4(e,t,n){let{encode:r={},scale:a={},transform:i=[]}=t,o=o3(t,["encode","scale","transform"]);return[e,Object.assign(Object.assign({},o),{encode:r,scale:a,transform:i})]}function o5(e,t,n){var r,a,i,o;return r=this,a=void 0,i=void 0,o=function*(){let{library:e}=n,{data:r}=t,[a]=oa("data",e),i=function(e){if((0,at.Z)(e))return{type:"inline",value:e};if(!e)return{type:"inline",value:null};if(Array.isArray(e))return{type:"inline",value:e};let{type:t="inline"}=e,n=o3(e,["type"]);return Object.assign(Object.assign({},n),{type:t})}(r),{transform:o=[]}=i,s=o3(i,["transform"]),l=[s,...o],c=l.map(e=>a(e,n)),u=yield(function(e){return e.reduce((e,t)=>n=>{var r,a,i,o;return r=this,a=void 0,i=void 0,o=function*(){let r=yield e(n);return t(r)},new(i||(i=Promise))(function(e,t){function n(e){try{l(o.next(e))}catch(e){t(e)}}function s(e){try{l(o.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof i?r:new i(function(e){e(r)})).then(n,s)}l((o=o.apply(r,a||[])).next())})},n7)})(c)(r),d=!r||Array.isArray(r)||Array.isArray(u)?u:{value:u};return[Array.isArray(u)?ry(u):[],Object.assign(Object.assign({},t),{data:d})]},new(i||(i=Promise))(function(e,t){function n(e){try{l(o.next(e))}catch(e){t(e)}}function s(e){try{l(o.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof i?r:new i(function(e){e(r)})).then(n,s)}l((o=o.apply(r,a||[])).next())})}function o6(e,t,n){let{encode:r}=t;if(!r)return[e,t];let a={};for(let[e,t]of Object.entries(r))if(Array.isArray(t))for(let n=0;n{if(function(e){if("object"!=typeof e||e instanceof Date||null===e)return!1;let{type:t}=e;return ra(t)}(e))return e;let t="function"==typeof e?"transform":"string"==typeof e&&Array.isArray(a)&&a.some(t=>void 0!==t[e])?"field":"constant";return{type:t,value:e}});return[e,Object.assign(Object.assign({},t),{encode:i})]}function o8(e,t,n){let{encode:r}=t;if(!r)return[e,t];let a=rb(r,(e,t)=>{var n;let{type:r}=e;return"constant"!==r||(n=t).startsWith("x")||n.startsWith("y")||n.startsWith("position")||"enterDelay"===n||"enterDuration"===n||"updateDelay"===n||"updateDuration"===n||"exitDelay"===n||"exitDuration"===n?e:Object.assign(Object.assign({},e),{constant:!0})});return[e,Object.assign(Object.assign({},t),{encode:a})]}function o7(e,t,n){let{encode:r,data:a}=t;if(!r)return[e,t];let{library:i}=n,o=function(e){let[t]=oa("encode",e);return(e,n)=>void 0===n||void 0===e?null:Object.assign(Object.assign({},n),{type:"column",value:t(n)(e),field:function(e){let{type:t,value:n}=e;return"field"===t&&"string"==typeof n?n:null}(n)})}(i),s=rb(r,e=>o(a,e));return[e,Object.assign(Object.assign({},t),{encode:s})]}function se(e,t,n){let{tooltip:r={}}=t;return ru(r)?[e,t]:Array.isArray(r)?[e,Object.assign(Object.assign({},t),{tooltip:{items:r}})]:rc(r)&&o1(r)?[e,Object.assign(Object.assign({},t),{tooltip:r})]:[e,Object.assign(Object.assign({},t),{tooltip:{items:[r]}})]}function st(e,t,n){let{data:r,encode:a,tooltip:i={}}=t;if(ru(i))return[e,t];let o=t=>{if(!t)return t;if("string"==typeof t)return e.map(e=>({name:t,value:r[e][t]}));if(rc(t)){let{field:n,channel:i,color:o,name:s=n,valueFormatter:l=e=>e}=t,c="string"==typeof l?(0,rh.WU)(l):l,u=i&&a[i],d=u&&a[i].field,p=s||d||i,f=[];for(let t of e){let e=n?r[t][n]:u?a[i].value[t]:null;f[t]={name:p,color:o,value:c(e)}}return f}if("function"==typeof t){let n=[];for(let i of e){let e=t(r[i],i,r,a);rc(e)?n[i]=e:n[i]={value:e}}return n}return t},{title:s,items:l=[]}=i,c=o3(i,["title","items"]),u=Object.assign({title:o(s),items:Array.isArray(l)?l.map(o):[]},c);return[e,Object.assign(Object.assign({},t),{tooltip:u})]}function sn(e,t,n){let{encode:r}=t,a=o3(t,["encode"]);if(!r)return[e,t];let i=Object.entries(r),o=i.filter(([,e])=>{let{value:t}=e;return Array.isArray(t[0])}).flatMap(([t,n])=>{let r=[[t,Array(e.length).fill(void 0)]],{value:a}=n,i=o3(n,["value"]);for(let n=0;n[e,Object.assign({type:"column",value:t},i)])}),s=Object.fromEntries([...i,...o]);return[e,Object.assign(Object.assign({},a),{encode:s})]}function sr(e,t,n){let{axis:r={},legend:a={},slider:i={},scrollbar:o={}}=t,s=(e,t)=>{if("boolean"==typeof e)return e?{}:null;let n=e[t];return void 0===n||n?n:null},l="object"==typeof r?Array.from(new Set(["x","y","z",...Object.keys(r)])):["x","y","z"];return(0,n5.Z)(t,{scale:Object.assign(Object.assign({},Object.fromEntries(l.map(e=>{let t=s(o,e);return[e,Object.assign({guide:s(r,e),slider:s(i,e),scrollbar:t},t&&{ratio:void 0===t.ratio?.5:t.ratio})]}))),{color:{guide:s(a,"color")},size:{guide:s(a,"size")},shape:{guide:s(a,"shape")},opacity:{guide:s(a,"opacity")}})}),[e,t]}function sa(e,t,n){let{animate:r}=t;return r||void 0===r||(0,n5.Z)(t,{animate:{enter:{type:null},exit:{type:null},update:{type:null}}}),[e,t]}var si=function(e,t,n,r){return new(n||(n=Promise))(function(a,i){function o(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})},so=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},ss=function(e,t,n,r){return new(n||(n=Promise))(function(a,i){function o(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})},sl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function sc(e){e.style("transform",e=>`translate(${e.layout.x}, ${e.layout.y})`)}function su(e,t){return ss(this,void 0,void 0,function*(){let{library:n}=t,r=yield function(e,t){return ss(this,void 0,void 0,function*(){let{library:n}=t,[r,a]=oa("mark",n),i=new Set(Object.keys(n).map(e=>{var t;return null===(t=/component\.(.*)/.exec(e))||void 0===t?void 0:t[1]}).filter(ra)),{marks:o}=e,s=[],l=[],c=[...o],{width:u,height:d}=function(e){let{height:t,width:n,padding:r=0,paddingLeft:a=r,paddingRight:i=r,paddingTop:o=r,paddingBottom:s=r,margin:l=16,marginLeft:c=l,marginRight:u=l,marginTop:d=l,marginBottom:p=l,inset:f=0,insetLeft:m=f,insetRight:g=f,insetTop:h=f,insetBottom:b=f}=e,y=e=>"auto"===e?20:e,E=n-y(a)-y(i)-c-u-m-g,T=t-y(o)-y(s)-d-p-h-b;return{width:E,height:T}}(e),p={options:e,width:u,height:d};for(;c.length;){let[e]=c.splice(0,1),n=yield sv(e,t),{type:o=rn("G2Mark type is required."),key:u}=n;if(i.has(o))l.push(n);else{let{props:e={}}=a(o),{composite:t=!0}=e;if(t){let{data:e}=n,t=Object.assign(Object.assign({},n),{data:e?Array.isArray(e)?e:e.value:e}),a=yield r(t,p),i=Array.isArray(a)?a:[a];c.unshift(...i.map((e,t)=>Object.assign(Object.assign({},e),{key:`${u}-${t}`})))}else s.push(n)}}return Object.assign(Object.assign({},e),{marks:s,components:l})})}(e,t),a=function(e){let{coordinate:t={},interaction:n={},style:r={},marks:a}=e,i=sl(e,["coordinate","interaction","style","marks"]),o=a.map(e=>e.coordinate||{}),s=a.map(e=>e.interaction||{}),l=a.map(e=>e.viewStyle||{}),c=[...o,t].reduceRight((e,t)=>(0,n5.Z)(e,t),{}),u=[n,...s].reduce((e,t)=>(0,n5.Z)(e,t),{}),d=[...l,r].reduce((e,t)=>(0,n5.Z)(e,t),{});return Object.assign(Object.assign({},i),{marks:a,coordinate:c,interaction:u,style:d})}(r);e.interaction=a.interaction,e.coordinate=a.coordinate,e.marks=[...a.marks,...a.components];let i=os(a,n),o=yield sd(i,t);return sf(o,i,n)})}function sd(e,t){return ss(this,void 0,void 0,function*(){let{library:n}=t,[r]=oa("theme",n),[,a]=oa("mark",n),{theme:i,marks:o,coordinates:s=[]}=e,l=r(sE(i)),c=new Map;for(let e of o){let{type:n}=e,{props:r={}}=a(n),i=yield function(e,t,n){return si(this,void 0,void 0,function*(){let[r,a]=yield function(e,t,n){return si(this,void 0,void 0,function*(){let{library:r}=n,[a]=oa("transform",r),{preInference:i=[],postInference:o=[]}=t,{transform:s=[]}=e,l=[o4,o5,o6,o9,o8,o7,sn,sa,sr,se,...i.map(a),...s.map(a),...o.map(a),st],c=[],u=e;for(let e of l)[c,u]=yield e(c,u,n);return[c,u]})}(e,t,n),{encode:i,scale:o,data:s,tooltip:l}=a;if(!1===Array.isArray(s))return null;let{channels:c}=t,u=(0,n6.Q3)(Object.entries(i).filter(([,e])=>ra(e)),e=>e.map(([e,t])=>Object.assign({name:e},t)),([e])=>{var t;let n=null===(t=/([^\d]+)\d*$/.exec(e))||void 0===t?void 0:t[1],r=c.find(e=>e.name===n);return(null==r?void 0:r.independent)?e:n}),d=c.filter(e=>{let{name:t,required:n}=e;if(u.find(([e])=>e===t))return!0;if(n)throw Error(`Missing encoding for channel: ${t}.`);return!1}).flatMap(e=>{let{name:t,scale:n,scaleKey:r,range:a,quantitative:i,ordinal:s}=e,l=u.filter(([e])=>e.startsWith(t));return l.map(([e,t],l)=>{let c=t.some(e=>e.visual),u=t.some(e=>e.constant),d=o[e]||{},{independent:p=!1,key:f=r||e,type:m=u?"constant":c?"identity":n}=d,g=so(d,["independent","key","type"]),h="constant"===m;return{name:e,values:t,scaleKey:p||h?Symbol("independent"):f,scale:Object.assign(Object.assign({type:m,range:h?void 0:a},g),{quantitative:i,ordinal:s})}})});return[a,Object.assign(Object.assign({},t),{index:r,channels:d,tooltip:l})]})}(e,r,t);if(i){let[e,t]=i;c.set(e,t)}}let u=(0,n6.ZP)(Array.from(c.values()).flatMap(e=>e.channels),({scaleKey:e})=>e);for(let e of u.values()){let t=e.reduce((e,{scale:t})=>(0,n5.Z)(e,t),{}),{scaleKey:r}=e[0],{values:a}=e[0],i=Array.from(new Set(a.map(e=>e.field).filter(ra))),o=(0,n5.Z)({guide:{title:0===i.length?void 0:i},field:i[0]},t),{name:c}=e[0],u=e.flatMap(({values:e})=>e.map(e=>e.value)),d=Object.assign(Object.assign({},function(e,t,n,r,a,i){let{guide:o={}}=n,s=function(e,t,n){let{type:r,domain:a,range:i,quantitative:o,ordinal:s}=n;return void 0!==r?r:ok(t,rc)?"identity":"string"==typeof i?"linear":(a||i||[]).length>2?ov(e,s):void 0!==a?oO([a])?ov(e,s):o_(t)?"time":oS(e,i,o):oO(t)?ov(e,s):o_(t)?"time":oS(e,i,o)}(e,t,n);if("string"!=typeof s)return n;let l=function(e,t,n,r){let{domain:a}=r;if(void 0!==a)return a;switch(e){case"linear":case"time":case"log":case"pow":case"sqrt":case"quantize":case"threshold":return oA(function(e,t){let{zero:n=!1}=t,r=1/0,a=-1/0;for(let t of e)for(let e of t)ra(e)&&(r=Math.min(r,+e),a=Math.max(a,+e));return r===1/0?[]:n?[Math.min(0,r),a]:[r,a]}(n,r),r);case"band":case"ordinal":case"point":return Array.from(new Set(n.flat()));case"quantile":return n.flat().sort();case"sequential":return oA(function(e){let t=1/0,n=-1/0;for(let r of e)for(let e of r)ra(e)&&(t=Math.min(t,+e),n=Math.max(n,+e));return t===1/0?[]:[t<0?-n:t,n]}(n),r);default:return[]}}(s,0,t,n),c=function(e,t,n){let{ratio:r}=n;return null==r?t:oy({type:e})?function(e,t,n){let r=e.map(Number),a=new rG.b({domain:r,range:[r[0],r[0]+(r[r.length-1]-r[0])*t]});return"time"===n?e.map(e=>new Date(a.map(e))):e.map(e=>a.map(e))}(t,r,e):oE({type:e})?function(e,t){let n=Math.round(e.length*t);return e.slice(0,n)}(t,r):t}(s,l,n);return Object.assign(Object.assign(Object.assign({},n),function(e,t,n,r,a){switch(e){case"linear":case"time":case"log":case"pow":case"sqrt":return function(e,t){let{interpolate:n=of.wp,nice:r=!1,tickCount:a=5}=t;return Object.assign(Object.assign({},t),{interpolate:n,nice:r,tickCount:a})}(0,r);case"band":case"point":return function(e,t,n,r){if(void 0!==r.padding||void 0!==r.paddingInner||void 0!==r.paddingOuter)return Object.assign(Object.assign({},r),{unknown:NaN});let a="enterDelay"===t||"enterDuration"===t||"size"===t?0:"band"===e?od(n)?0:.1:"point"===e?.5:0,{paddingInner:i=a,paddingOuter:o=a}=r;return Object.assign(Object.assign({},r),{paddingInner:i,paddingOuter:o,padding:a,unknown:NaN})}(e,t,a,r);case"sequential":return function(e){let{palette:t="ylGnBu",offset:n}=e,r=(0,rg.Z)(t),a=om[`interpolate${r}`];if(!a)throw Error(`Unknown palette: ${r}`);return{interpolator:n?e=>a(n(e)):a}}(r);default:return r}}(s,e,0,n,r)),{domain:c,range:function(e,t,n,r,a,i,o){let{range:s}=r;if("string"==typeof s)return s.split("-");if(void 0!==s)return s;let{rangeMin:l,rangeMax:c}=r;switch(e){case"linear":case"time":case"log":case"pow":case"sqrt":{let e=oT(n,r,a,i,o),[s,u]="enterDelay"===t?[0,1e3]:"enterDuration"==t?[300,1e3]:t.startsWith("y")||t.startsWith("position")?[1,0]:"color"===t?[e[0],rE(e)]:"opacity"===t?[0,1]:"size"===t?[1,10]:[0,1];return[null!=l?l:s,null!=c?c:u]}case"band":case"point":{let e="size"===t?5:0,n="size"===t?10:1;return[null!=l?l:e,null!=c?c:n]}case"ordinal":return oT(n,r,a,i,o);case"sequential":return;case"constant":return[n[0][0]];default:return[]}}(s,e,t,n,c,a,i),expectedDomain:l,guide:o,name:e,type:s})}(c,u,o,s,l,n)),{uid:Symbol("scale"),key:r});e.forEach(e=>e.scale=d)}return c})}function sp(e,t,n,r){let a=e.theme,i="string"==typeof t&&a[t]||{},o=r((0,n5.Z)(i,Object.assign({type:t},n)));return o}function sf(e,t,n){var r;let[a]=oa("mark",n),[i]=oa("theme",n),[o]=oa("labelTransform",n),{key:s,frame:l=!1,theme:c,clip:u,style:d={},labelTransform:p=[]}=t,f=i(sE(c)),m=Array.from(e.values()),g=function(e,t){var n;let{components:r=[]}=t,a=["scale","encode","axis","legend","data","transform"],i=Array.from(new Set(e.flatMap(e=>e.channels.map(e=>e.scale)))),o=new Map(i.map(e=>[e.name,e]));for(let e of r){let t=function(e){let{channels:t=[],type:n,scale:r={}}=e,a=["shape","color","opacity","size"];return 0!==t.length?t:"axisX"===n?["x"]:"axisY"===n?["y"]:"legends"===n?Object.keys(r).filter(e=>a.includes(e)):[]}(e);for(let r of t){let t=o.get(r),s=(null===(n=e.scale)||void 0===n?void 0:n[r])||{},{independent:l=!1}=s;if(t&&!l){let{guide:n}=t,r="boolean"==typeof n?{}:n;t.guide=(0,n5.Z)({},r,e),Object.assign(t,s)}else{let t=Object.assign(Object.assign({},s),{expectedDomain:s.domain,name:r,guide:(0,r$.Z)(e,a)});i.push(t)}}}return i}(m,t),h=(function(e,t,n){let{coordinates:r=[],title:a}=t,[,i]=oa("component",n),o=e.filter(({guide:e})=>null!==e),s=[],l=function(e,t,n){let[,r]=oa("component",n),{coordinates:a}=e;function i(e,t,n,i){let o=function(e,t,n=[]){return"x"===e?ou(n)?`${t}Y`:`${t}X`:"y"===e?ou(n)?`${t}X`:`${t}Y`:null}(t,e,a);if(!i||!o)return;let{props:s}=r(o),{defaultPosition:l,defaultSize:c,defaultOrder:u,defaultCrossPadding:[d]}=s;return Object.assign(Object.assign({position:l,defaultSize:c,order:u,type:o,crossPadding:d},i),{scales:[n]})}return t.filter(e=>e.slider||e.scrollbar).flatMap(e=>{let{slider:t,scrollbar:n,name:r}=e;return[i("slider",r,e,t),i("scrollbar",r,e,n)]}).filter(e=>!!e)}(t,e,n);if(s.push(...l),a){let{props:e}=i("title"),{defaultPosition:t,defaultOrientation:n,defaultOrder:r,defaultSize:o,defaultCrossPadding:l}=e,c="string"==typeof a?{title:a}:a;s.push(Object.assign({type:"title",position:t,orientation:n,order:r,crossPadding:l[0],defaultSize:o},c))}let c=function(e,t){let n=e.filter(e=>(function(e){if(!e||!e.type)return!1;if("function"==typeof e.type)return!0;let{type:t,domain:n,range:r,interpolator:a}=e,i=n&&n.length>0,o=r&&r.length>0;return!!(["linear","sqrt","log","time","pow","threshold","quantize","quantile","ordinal","band","point"].includes(t)&&i&&o||["sequential"].includes(t)&&i&&(o||a)||["constant","identity"].includes(t)&&o)})(e));return[...function(e,t){let n=["shape","size","color","opacity"],r=(e,t)=>"constant"===e&&"size"===t,a=e.filter(({type:e,name:t})=>"string"==typeof e&&n.includes(t)&&!r(e,t)),i=a.filter(({type:e})=>"constant"===e),o=a.filter(({type:e})=>"constant"!==e),s=(0,n6.Xx)(o,e=>e.field?e.field:Symbol("independent")).map(([e,t])=>[e,[...t,...i]]).filter(([,e])=>e.some(e=>"constant"!==e.type)),l=new Map(s);if(0===l.size)return[];let c=e=>e.sort(([e],[t])=>e.localeCompare(t)),u=Array.from(l).map(([,e])=>{let t=(function(e){if(1===e.length)return[e];let t=[];for(let n=1;n<=e.length;n++)t.push(...function e(t,n=t.length){if(1===n)return t.map(e=>[e]);let r=[];for(let a=0;a{r.push([t[a],...e])})}return r}(e,n));return t})(e).sort((e,t)=>t.length-e.length),n=t.map(e=>({combination:e,option:e.map(e=>[e.name,function(e){let{type:t}=e;return"string"!=typeof t?null:t in oI?"continuous":t in oN?"discrete":t in oC?"distribution":t in ox?"constant":null}(e)])}));for(let{option:e,combination:t}of n)if(!e.every(e=>"constant"===e[1])&&e.every(e=>"discrete"===e[1]||"constant"===e[1]))return["legendCategory",t];for(let[e,t]of rx)for(let{option:r,combination:a}of n)if(t.some(e=>(0,rv.Z)(c(e),c(r))))return[e,a];return null}).filter(ra);return u}(n,0),...n.map(e=>{let{name:n}=e;if(ol(t,"helix").length>0||od(t)||ou(t)&&(oc(t)||op(t)))return null;if(n.startsWith("x"))return oc(t)?["axisArc",[e]]:op(t)?["axisLinear",[e]]:[ou(t)?"axisY":"axisX",[e]];if(n.startsWith("y"))return oc(t)?["axisLinear",[e]]:op(t)?["axisArc",[e]]:[ou(t)?"axisX":"axisY",[e]];if(n.startsWith("z"))return["axisZ",[e]];if(n.startsWith("position")){if(ol(t,"radar").length>0)return["axisRadar",[e]];if(!oc(t))return["axisY",[e]]}return null}).filter(ra)]}(o,r);return c.forEach(([e,t])=>{let{props:n}=i(e),{defaultPosition:a,defaultPlane:l="xy",defaultOrientation:c,defaultSize:u,defaultOrder:d,defaultLength:p,defaultPadding:f=[0,0],defaultCrossPadding:m=[0,0]}=n,g=(0,n5.Z)({},...t),{guide:h,field:b}=g,y=Array.isArray(h)?h:[h];for(let n of y){let[i,g]=function(e,t,n,r,a,i,o){let[s]=oD(o),l=[r.position||t,null!=s?s:n];return"string"==typeof e&&e.startsWith("axis")?function(e,t,n,r,a){let{name:i}=n[0];if("axisRadar"===e){let e=r.filter(e=>e.name.startsWith("position")),t=function(e){let t=/position(\d*)/g.exec(e);return t?+t[1]:null}(i);if(i===e.slice(-1)[0].name||null===t)return[null,null];let[n,o]=oD(a),s=(o-n)/(e.length-1)*t+n;return["center",s]}if("axisY"===e&&ol(a,"parallel").length>0)return ou(a)?["center","horizontal"]:["center","vertical"];if("axisLinear"===e){let[e]=oD(a);return["center",e]}return"axisArc"===e?"inner"===t[0]?["inner",null]:["outer",null]:oc(a)||op(a)?["center",null]:"axisX"===e&&ol(a,"reflect").length>0||"axisX"===e&&ol(a,"reflectY").length>0?["top",null]:t}(e,l,a,i,o):"string"==typeof e&&e.startsWith("legend")&&oc(o)&&"center"===r.position?["center","vertical"]:l}(e,a,c,n,t,o,r);if(!i&&!g)continue;let h="left"===i||"right"===i,y=h?f[1]:f[0],E=h?m[1]:m[0],{size:T,order:v=d,length:S=p,padding:A=y,crossPadding:O=E}=n;s.push(Object.assign(Object.assign({title:b},n),{defaultSize:u,length:S,position:i,plane:l,orientation:g,padding:A,order:v,crossPadding:O,size:T,type:e,scales:t}))}}),s})(function(e,t,n){var r;for(let[t]of n.entries())if("cell"===t.type)return e.filter(e=>"shape"!==e.name);if(1!==t.length||e.some(e=>"shape"===e.name))return e;let{defaultShape:a}=t[0];if(!["point","line","rect","hollow"].includes(a))return e;let i=(null===(r=e.find(e=>"color"===e.name))||void 0===r?void 0:r.field)||null;return[...e,{field:i,name:"shape",type:"constant",domain:[],range:[{point:"point",line:"hyphen",rect:"square",hollow:"hollow"}[a]]}]}(Array.from(g),m,e),t,n).map(e=>{let t=(0,n5.Z)(e,e.style);return delete t.style,t}),b=function(e,t,n,r){var a,i;let{width:o,height:s,depth:l,x:c=0,y:u=0,z:d=0,inset:p=null!==(a=n.inset)&&void 0!==a?a:0,insetLeft:f=p,insetTop:m=p,insetBottom:g=p,insetRight:h=p,margin:b=null!==(i=n.margin)&&void 0!==i?i:0,marginLeft:y=b,marginBottom:E=b,marginTop:T=b,marginRight:v=b,padding:S=n.padding,paddingBottom:A=S,paddingLeft:O=S,paddingRight:_=S,paddingTop:k=S}=function(e,t,n,r){let{coordinates:a}=t;if(!oc(a)&&!op(a))return t;let i=e.filter(e=>"string"==typeof e.type&&e.type.startsWith("axis"));if(0===i.length)return t;let o=i.map(e=>{let t="axisArc"===e.type?"arc":"linear";return oW(e,t,n)}),s=(0,rA.Z)(o,e=>{var t;return null!==(t=e.labelSpacing)&&void 0!==t?t:0}),l=i.flatMap((e,t)=>{let n=o[t],a=o$(e,r),i=oz(n,a);return i}).filter(ra),c=(0,rA.Z)(l,e=>e.height)+s,u=i.flatMap((e,t)=>{let n=o[t];return oZ(n)}).filter(e=>null!==e),d=0===u.length?0:(0,rA.Z)(u,e=>e.height),{inset:p=c,insetLeft:f=p,insetBottom:m=p,insetTop:g=p+d,insetRight:h=p}=t;return Object.assign(Object.assign({},t),{insetLeft:f,insetBottom:m,insetTop:g,insetRight:h})}(e,t,n,r),I=1/4,C=(e,n,r,a,i)=>{let{marks:o}=t;if(0===o.length||e-a-i-e*I>0)return[a,i];let s=e*(1-I);return["auto"===n?s*a/(a+i):a,"auto"===r?s*i/(a+i):i]},N=e=>"auto"===e?20:null!=e?e:20,x=N(k),w=N(A),R=oX(e,s-x-w,[x+T,w+E],["left","right"],t,n,r),{paddingLeft:L,paddingRight:D}=R,P=o-y-v,[M,F]=C(P,O,_,L,D),B=P-M-F,j=oX(e,B,[M+y,F+v],["bottom","top"],t,n,r),{paddingTop:U,paddingBottom:H}=j,G=s-E-T,[$,z]=C(G,A,k,H,U),Z=G-$-z;return{width:o,height:s,depth:l,insetLeft:f,insetTop:m,insetBottom:g,insetRight:h,innerWidth:B,innerHeight:Z,paddingLeft:M,paddingRight:F,paddingTop:z,paddingBottom:$,marginLeft:y,marginBottom:E,marginTop:T,marginRight:v,x:c,y:u,z:d}}(h,t,f,n),y=function(e,t,n){let[r]=oa("coordinate",n),{innerHeight:a,innerWidth:i,insetLeft:o,insetTop:s,insetRight:l,insetBottom:c}=e,{coordinates:u=[]}=t,d=u.find(e=>"cartesian"===e.type||"cartesian3D"===e.type)?u:[...u,{type:"cartesian"}],p="cartesian3D"===d[0].type,f=Object.assign(Object.assign({},e),{x:o,y:s,width:i-o-l,height:a-c-s,transformations:d.flatMap(r)}),m=p?new rw.Coordinate3D(f):new rw.Coordinate(f);return m}(b,t,n),E=l?(0,n5.Z)({mainLineWidth:1,mainStroke:"#000"},d):d;!function(e,t,n){let r=(0,n6.ZP)(e,e=>`${e.plane||"xy"}-${e.position}`),{paddingLeft:a,paddingRight:i,paddingTop:o,paddingBottom:s,marginLeft:l,marginTop:c,marginBottom:u,marginRight:d,innerHeight:p,innerWidth:f,insetBottom:m,insetLeft:g,insetRight:h,insetTop:b,height:y,width:E,depth:T}=n,v={xy:oQ({width:E,height:y,paddingLeft:a,paddingRight:i,paddingTop:o,paddingBottom:s,marginLeft:l,marginTop:c,marginBottom:u,marginRight:d,innerHeight:p,innerWidth:f,insetBottom:m,insetLeft:g,insetRight:h,insetTop:b}),yz:oQ({width:T,height:y,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:0,marginTop:0,marginBottom:0,marginRight:0,innerWidth:T,innerHeight:y,insetBottom:0,insetLeft:0,insetRight:0,insetTop:0}),xz:oQ({width:E,height:T,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:0,marginTop:0,marginBottom:0,marginRight:0,innerWidth:E,innerHeight:T,insetBottom:0,insetLeft:0,insetRight:0,insetTop:0})};for(let[e,n]of r.entries()){let[r,a]=e.split("-"),i=v[r][a],[o,s]=rT(n,e=>"string"==typeof e.type&&!!("center"===a||e.type.startsWith("axis")&&["inner","outer"].includes(a)));o.length&&function(e,t,n,r){let[a,i]=rT(e,e=>!!("string"==typeof e.type&&e.type.startsWith("axis")));(function(e,t,n,r){if("center"===r){if(rM(t)&&rL(t))(function(e,t,n,r){let[a,i,o,s]=n;for(let t of e)t.bbox={x:a,y:i,width:o,height:s},t.radar={index:e.indexOf(t),count:e.length}})(e,0,n,0);else{var a;rL(t)?function(e,t,n){let[r,a,i,o]=n;for(let t of e)t.bbox={x:r,y:a,width:i,height:o}}(e,0,n):rM(t)&&("horizontal"===(a=e[0].orientation)?function(e,t,n){let[r,a,i]=n,o=Array(e.length).fill(0),s=t.map(o),l=s.filter((e,t)=>t%2==1).map(e=>e+a);for(let t=0;tt%2==0).map(e=>e+r);for(let t=0;tnull==c?void 0:c(e.order,t.order));let T=e=>"title"===e||"group"===e||e.startsWith("legend"),v=(e,t,n)=>void 0===n?t:T(e)?n:t,S=(e,t,n)=>void 0===n?t:T(e)?n:t;for(let t=0,n=l?f+b:f;t"group"===e.type);for(let e of A){let{bbox:t,children:n}=e,r=t[y],a=r/n.length,i=n.reduce((e,t)=>{var n;let r=null===(n=t.layout)||void 0===n?void 0:n.justifyContent;return r||e},"flex-start"),o=n.map((e,t)=>{let{length:r=a,padding:i=0}=e;return r+(t===n.length-1?0:i)}),s=(0,rS.Z)(o),l=r-s,c="flex-start"===i?0:"center"===i?l/2:l;for(let e=0,r=t[m]+c;e"axisX"===e),n=e.find(({type:e})=>"axisY"===e),r=e.find(({type:e})=>"axisZ"===e);t&&n&&r&&(t.plane="xy",n.plane="xy",r.plane="yz",r.origin=[t.bbox.x,t.bbox.y,0],r.eulerAngles=[0,-90,0],r.bbox.x=t.bbox.x,r.bbox.y=t.bbox.y,e.push(Object.assign(Object.assign({},t),{plane:"xz",showLabel:!1,showTitle:!1,origin:[t.bbox.x,t.bbox.y,0],eulerAngles:[-90,0,0]})),e.push(Object.assign(Object.assign({},n),{plane:"yz",showLabel:!1,showTitle:!1,origin:[n.bbox.x+n.bbox.width,n.bbox.y,0],eulerAngles:[0,-90,0]})),e.push(Object.assign(Object.assign({},r),{plane:"xz",actualPosition:"left",showLabel:!1,showTitle:!1,eulerAngles:[90,-90,0]})))}(h);let T=new Map(Array.from(e.values()).flatMap(e=>{let{channels:t}=e;return t.map(({scale:e})=>[e.uid,oh(e,n)])}));!function(e,t){let n=Array.from(e.values()).flatMap(e=>e.channels),r=(0,n6.Q3)(n,e=>e.map(e=>t.get(e.scale.uid)),e=>e.name).filter(([,e])=>e.some(e=>"function"==typeof e.getOptions().groupTransform)&&e.every(e=>e.getTicks)).map(e=>e[1]);r.forEach(e=>{let t=e.map(e=>e.getOptions().groupTransform)[0];t(e)})}(e,T);let v={};for(let e of h){let{scales:t=[]}=e,a=[];for(let e of t){let{name:t,uid:i}=e,o=null!==(r=T.get(i))&&void 0!==r?r:oh(e,n);a.push(o),"y"===t&&o.update(Object.assign(Object.assign({},o.getOptions()),{xScale:v.x})),og(v,{[t]:o})}e.scaleInstances=a}let S=[];for(let[t,n]of e.entries()){let{children:e,dataDomain:r,modifier:i,key:o}=t,{index:l,channels:c,tooltip:u}=n,d=Object.fromEntries(c.map(({name:e,scale:t})=>[e,t])),p=rb(d,({uid:e})=>T.get(e));og(v,p);let f=function(e,t){let n={};for(let r of e){let{values:e,name:a}=r,i=t[a];for(let t of e){let{name:e,value:r}=t;n[e]=r.map(e=>i.map(e))}}return n}(c,p),m=a(t),[g,h,E]=function([e,t,n]){if(n)return[e,t,n];let r=[],a=[];for(let n=0;nra(e)&&ra(t))&&(r.push(i),a.push(o))}return[r,a]}(m(l,p,f,y)),A=r||g.length,O=i?i(h,A,b):[],_=e=>{var t,n;return null===(n=null===(t=u.title)||void 0===t?void 0:t[e])||void 0===n?void 0:n.value},k=e=>u.items.map(t=>t[e]),I=g.map((e,t)=>{let n=Object.assign({points:h[t],transform:O[t],index:e,markKey:o,viewKey:s},u&&{title:_(e),items:k(e)});for(let[r,a]of Object.entries(f))n[r]=a[e],E&&(n[`series${(0,rg.Z)(r)}`]=E[t].map(e=>a[e]));return E&&(n.seriesIndex=E[t]),E&&u&&(n.seriesItems=E[t].map(e=>k(e)),n.seriesTitle=E[t].map(e=>_(e))),n});n.data=I,n.index=g;let C=null==e?void 0:e(I,p,b);S.push(...C||[])}let A={layout:b,theme:f,coordinate:y,markState:e,key:s,clip:u,scale:v,style:E,components:h,labelTransform:re(p.map(o))};return[A,S]}function sm(e,t,n,r){return ss(this,void 0,void 0,function*(){let{library:a}=r,{components:i,theme:o,layout:s,markState:l,coordinate:c,key:u,style:d,clip:p,scale:f}=e,{x:m,y:g,width:h,height:b}=s,y=sl(s,["x","y","width","height"]),E=["view","plot","main","content"],T=E.map((e,t)=>t),v=E.map(e=>ro(Object.assign({},o.view,d),e)),S=["a","margin","padding","inset"].map(e=>ri(y,e)),A=e=>e.style("x",e=>C[e].x).style("y",e=>C[e].y).style("width",e=>C[e].width).style("height",e=>C[e].height).each(function(e,t,n){!function(e,t){for(let[n,r]of Object.entries(t))e.style(n,r)}(rd(n),v[e])}),O=0,_=0,k=h,I=b,C=T.map(e=>{let t=S[e],{left:n=0,top:r=0,bottom:a=0,right:i=0}=t;return{x:O+=n,y:_+=r,width:k-=n+i,height:I-=r+a}});t.selectAll(s_(i_)).data(T.filter(e=>ra(v[e])),e=>E[e]).join(e=>e.append("rect").attr("className",i_).style("zIndex",-2).call(A),e=>e.call(A),e=>e.remove());let N=function(e){let t=-1/0,n=1/0;for(let[r,a]of e){let{animate:e={}}=r,{data:i}=a,{enter:o={},update:s={},exit:l={}}=e,{type:c,duration:u=300,delay:d=0}=s,{type:p,duration:f=300,delay:m=0}=o,{type:g,duration:h=300,delay:b=0}=l;for(let e of i){let{updateType:r=c,updateDuration:a=u,updateDelay:i=d,enterType:o=p,enterDuration:s=f,enterDelay:l=m,exitDuration:y=h,exitDelay:E=b,exitType:T=g}=e;(void 0===r||r)&&(t=Math.max(t,a+i),n=Math.min(n,i)),(void 0===T||T)&&(t=Math.max(t,y+E),n=Math.min(n,E)),(void 0===o||o)&&(t=Math.max(t,s+l),n=Math.min(n,l))}}return t===-1/0?null:[n,t-n]}(l),x=!!N&&{duration:N[1]};for(let[,e]of(0,n6.Xx)(i,e=>`${e.type}-${e.position}`))e.forEach((e,t)=>e.index=t);let w=t.selectAll(s_(iA)).data(i,e=>`${e.type}-${e.position}-${e.index}`).join(e=>e.append("g").style("zIndex",({zIndex:e})=>e||-1).attr("className",iA).append(e=>oR((0,n5.Z)({animate:x,scale:f},e),c,o,a,l)),e=>e.transition(function(e,t,n){let{preserve:r=!1}=e;if(r)return;let i=oR((0,n5.Z)({animate:x,scale:f},e),c,o,a,l),{attributes:s}=i,[u]=n.childNodes;return u.update(s,!1)})).transitions();n.push(...w.flat().filter(ra));let R=t.selectAll(s_(iS)).data([s],()=>u).join(e=>e.append("rect").style("zIndex",0).style("fill","transparent").attr("className",iS).call(sS).call(sO,Array.from(l.keys())).call(sk,p),e=>e.call(sO,Array.from(l.keys())).call(e=>N?function(e,t){let[n,r]=t;e.transition(function(e,t,a){let{transform:i,width:o,height:s}=a.style,{paddingLeft:l,paddingTop:c,innerWidth:u,innerHeight:d,marginLeft:p,marginTop:f}=e,m=[{transform:i,width:o,height:s},{transform:`translate(${l+p}, ${c+f})`,width:u,height:d}];return a.animate(m,{delay:n,duration:r,fill:"both"})})}(e,N):sS(e)).call(sk,p)).transitions();for(let[i,o]of(n.push(...R.flat()),l.entries())){let{data:s}=o,{key:l,class:c,type:u}=i,d=t.select(`#${l}`),p=function(e,t,n,r){let{library:a}=r,[i]=oa("shape",a),{data:o,encode:s}=e,{defaultShape:l,data:c,shape:u}=t,d=rb(s,e=>e.value),p=c.map(e=>e.points),{theme:f,coordinate:m}=n,{type:g,style:h={}}=e,b=Object.assign(Object.assign({},r),{document:oi(r),coordinate:m,theme:f});return t=>{let{shape:n=l}=h,{shape:r=n,points:a,seriesIndex:s,index:c}=t,m=sl(t,["shape","points","seriesIndex","index"]),y=Object.assign(Object.assign({},m),{index:c}),E=s?s.map(e=>o[e]):o[c],T=s||c,v=rb(h,e=>sg(e,E,T,o,{channel:d})),S=u[r]?u[r](v,b):i(Object.assign(Object.assign({},v),{type:sA(e,r)}),b),A=sh(f,g,r,l);return S(a,y,A,p)}}(i,o,e,r),f=sb("enter",i,o,e,a),m=sb("update",i,o,e,a),g=sb("exit",i,o,e,a),h=function(e,t,n,r){let a=e.node().parentElement;return a.findAll(e=>void 0!==e.style.facet&&e.style.facet===n&&e!==t.node()).flatMap(e=>e.getElementsByClassName(r))}(t,d,c,"element"),b=d.selectAll(s_(iT)).selectFacetAll(h).data(s,e=>e.key,e=>e.groupKey).join(e=>e.append(p).attr("className",iT).attr("markType",u).transition(function(e,t,n){return f(e,[n])}),e=>e.call(e=>{let t=e.parent(),n=function(e){let t=new Map;return n=>{if(t.has(n))return t.get(n);let r=e(n);return t.set(n,r),r}}(e=>{let[t,n]=e.getBounds().min;return[t,n]});e.transition(function(e,r,a){!function(e,t,n){if(!e.__facet__)return;let r=e.parentNode.parentNode,a=t.parentNode,[i,o]=n(r),[s,l]=n(a),c=`translate(${i-s}, ${o-l})`;!function(e,t){let{transform:n}=e.style,r="none"===n||void 0===n?"":n;e.style.transform=`${r} ${t}`.trimStart()}(e,c),t.append(e)}(a,t,n);let i=p(e,r),o=m(e,[a],[i]);return null!==o||(a.nodeName===i.nodeName&&"g"!==i.nodeName?rr(a,i):(a.parentNode.replaceChild(i,a),i.className=iT,i.markType=u,i.__data__=a.__data__)),o}).attr("markType",u).attr("className",iT)}),e=>e.each(function(e,t,n){n.__removed__=!0}).transition(function(e,t,n){return g(e,[n])}).remove(),e=>e.append(p).attr("className",iT).attr("markType",u).transition(function(e,t,n){let{__fromElements__:r}=n,a=m(e,r,[n]),i=new rp(r,null,n.parentNode);return i.transition(a).remove(),a}),e=>e.transition(function(e,t,n){let r=new rp([],n.__toData__,n.parentNode),a=r.append(p).attr("className",iT).attr("markType",u).nodes();return m(e,[n],a)}).remove()).transitions();n.push(...b.flat())}!function(e,t,n,r,a){let[i]=oa("labelTransform",r),{markState:o,labelTransform:s}=e,l=t.select(s_(iE)).node(),c=new Map,u=new Map,d=Array.from(o.entries()).flatMap(([n,i])=>{let{labels:o=[],key:s}=n,l=function(e,t,n,r,a){let[i]=oa("shape",r),{data:o,encode:s}=e,{data:l,defaultLabelShape:c}=t,u=l.map(e=>e.points),d=rb(s,e=>e.value),{theme:p,coordinate:f}=n,m=Object.assign(Object.assign({},a),{document:oi(a),theme:p,coordinate:f});return e=>{let{index:t,points:n}=e,r=o[t],{formatter:a=e=>`${e}`,transform:s,style:l,render:f}=e,g=sl(e,["formatter","transform","style","render"]),h=rb(Object.assign(Object.assign({},g),l),e=>sg(e,r,t,o,{channel:d})),{shape:b=c,text:y}=h,E=sl(h,["shape","text"]),T="string"==typeof a?(0,rh.WU)(a):a,v=Object.assign(Object.assign({},E),{text:T(y,r,t,o),datum:r}),S=Object.assign({type:`label.${b}`,render:f},E),A=i(S,m),O=sh(p,"label",b,"label");return A(n,v,O,u)}}(n,i,e,r,a),d=t.select(`#${s}`).selectAll(s_(iT)).nodes().filter(e=>!e.__removed__);return o.flatMap((e,t)=>{let{transform:n=[]}=e,r=sl(e,["transform"]);return d.flatMap(n=>{let a=function(e,t,n){let{seriesIndex:r,seriesKey:a,points:i,key:o,index:s}=n.__data__,l=function(e){let t=e.cloneNode(),n=e.getAnimations();t.style.visibility="hidden",n.forEach(e=>{let n=e.effect.getKeyframes();t.attr(n[n.length-1])}),e.parentNode.appendChild(t);let r=t.getLocalBounds();t.destroy();let{min:a,max:i}=r;return[a,i]}(n);if(!r)return[Object.assign(Object.assign({},e),{key:`${o}-${t}`,bounds:l,index:s,points:i,dependentElement:n})];let c=function(e){let{selector:t}=e;if(!t)return null;if("function"==typeof t)return t;if("first"===t)return e=>[e[0]];if("last"===t)return e=>[e[e.length-1]];throw Error(`Unknown selector: ${t}`)}(e),u=r.map((r,o)=>Object.assign(Object.assign({},e),{key:`${a[o]}-${t}`,bounds:[i[o]],index:r,points:i,dependentElement:n}));return c?c(u):u}(r,t,n);return a.forEach(t=>{c.set(t,l),u.set(t,e)}),a})})}),p=rd(l).selectAll(s_(iO)).data(d,e=>e.key).join(e=>e.append(e=>c.get(e)(e)).attr("className",iO),e=>e.each(function(e,t,n){let r=c.get(e),a=r(e);rr(n,a)}),e=>e.remove()).nodes(),f=(0,n6.ZP)(p,e=>u.get(e.__data__)),{coordinate:m}=e,g={canvas:a.canvas,coordinate:m};for(let[e,t]of f){let{transform:n=[]}=e,r=re(n.map(i));r(t,g)}s&&s(p,g)}(e,t,0,a,r)})}function sg(e,t,n,r,a){return"function"==typeof e?e(t,n,r,a):"string"!=typeof e?e:rc(t)&&void 0!==t[e]?t[e]:e}function sh(e,t,n,r){if("string"!=typeof t)return;let{color:a}=e,i=e[t]||{},o=i[n]||i[r];return Object.assign({color:a},o)}function sb(e,t,n,r,a){var i,o;let[,s]=oa("shape",a),[l]=oa("animation",a),{defaultShape:c,shape:u}=n,{theme:d,coordinate:p}=r,f=(0,rg.Z)(e),m=`default${f}Animation`,{[m]:g}=(null===(i=u[c])||void 0===i?void 0:i.props)||s(sA(t,c)).props,{[e]:h={}}=d,b=(null===(o=t.animate)||void 0===o?void 0:o[e])||{},y={coordinate:p};return(t,n,r)=>{let{[`${e}Type`]:a,[`${e}Delay`]:i,[`${e}Duration`]:o,[`${e}Easing`]:s}=t,c=Object.assign({type:a||g},b);if(!c.type)return null;let u=l(c,y),d=u(n,r,(0,n5.Z)(h,{delay:i,duration:o,easing:s}));return Array.isArray(d)?d:[d]}}function sy(e){return e.finished.then(()=>{e.cancel()}),e}function sE(e={}){if("string"==typeof e)return{type:e};let{type:t="light"}=e,n=sl(e,["type"]);return Object.assign(Object.assign({},n),{type:t})}function sT(e){let{interaction:t={}}=e;return Object.entries((0,n5.Z)({event:!0,tooltip:!0,sliderFilter:!0,legendFilter:!0,scrollbarFilter:!0},t)).reverse()}function sv(e,t){return ss(this,void 0,void 0,function*(){let{data:n}=e,r=sl(e,["data"]);if(void 0==n)return e;let[,{data:a}]=yield o5([],{data:n},t);return Object.assign({data:a},r)})}function sS(e){e.style("transform",e=>`translate(${e.paddingLeft+e.marginLeft}, ${e.paddingTop+e.marginTop})`).style("width",e=>e.innerWidth).style("height",e=>e.innerHeight)}function sA(e,t){let{type:n}=e;return"string"==typeof t?`${n}.${t}`:t}function sO(e,t){let n=e=>void 0!==e.class?`${e.class}`:"",r=e.nodes();if(0===r.length)return;e.selectAll(s_(iy)).data(t,e=>e.key).join(e=>e.append("g").attr("className",iy).attr("id",e=>e.key).style("facet",n).style("fill","transparent").style("zIndex",e=>{var t;return null!==(t=e.zIndex)&&void 0!==t?t:0}),e=>e.style("facet",n).style("fill","transparent").style("zIndex",e=>{var t;return null!==(t=e.zIndex)&&void 0!==t?t:0}),e=>e.remove());let a=e.select(s_(iE)).node();a||e.append("g").attr("className",iE).style("zIndex",0)}function s_(...e){return e.map(e=>`.${e}`).join("")}function sk(e,t){e.node()&&e.style("clipPath",e=>{if(!t)return null;let{paddingTop:n,paddingLeft:r,marginLeft:a,marginTop:i,innerWidth:o,innerHeight:s}=e;return new nO.UL({style:{x:r+a,y:n+i,width:o,height:s}})})}function sI(e,t={},n=!1){let{canvas:r,emitter:a}=t;r&&(function(e){let t=e.getRoot().querySelectorAll(`.${iv}`);null==t||t.forEach(e=>{let{nameInteraction:t=new Map}=e;(null==t?void 0:t.size)>0&&Array.from(null==t?void 0:t.values()).forEach(e=>{null==e||e.destroy()})})}(r),n?r.destroy():r.destroyChildren()),a.off()}let sC=e=>e?parseInt(e):0;function sN(e,t){let n=[e];for(;n.length;){let e=n.shift();t&&t(e);let r=e.children||[];for(let e of r)n.push(e)}}class sx{constructor(e={},t){this.parentNode=null,this.children=[],this.index=0,this.type=t,this.value=e}map(e=e=>e){let t=e(this.value);return this.value=t,this}attr(e,t){return 1==arguments.length?this.value[e]:this.map(n=>(n[e]=t,n))}append(e){let t=new e({});return t.children=[],this.push(t),t}push(e){return e.parentNode=this,e.index=this.children.length,this.children.push(e),this}remove(){let e=this.parentNode;if(e){let{children:t}=e,n=t.findIndex(e=>e===this);t.splice(n,1)}return this}getNodeByKey(e){let t=null;return sN(this,n=>{e===n.attr("key")&&(t=n)}),t}getNodesByType(e){let t=[];return sN(this,n=>{e===n.type&&t.push(n)}),t}getNodeByType(e){let t=null;return sN(this,n=>{t||e!==n.type||(t=n)}),t}call(e,...t){return e(this.map(),...t),this}getRoot(){let e=this;for(;e&&e.parentNode;)e=e.parentNode;return e}}var sw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let sR=["width","height","depth","padding","paddingLeft","paddingRight","paddingBottom","paddingTop","inset","insetLeft","insetRight","insetTop","insetBottom","margin","marginLeft","marginRight","marginTop","marginBottom","autoFit","theme","title","interaction"],sL="__remove__",sD="__callback__";function sP(e){return Object.assign(Object.assign({},e.value),{type:e.type})}function sM(e,t){let{width:n,height:r,autoFit:a,depth:i=0}=e,o=640,s=480;if(a){let{width:e,height:n}=function(e){let t=getComputedStyle(e),n=e.clientWidth||sC(t.width),r=e.clientHeight||sC(t.height),a=sC(t.paddingLeft)+sC(t.paddingRight),i=sC(t.paddingTop)+sC(t.paddingBottom);return{width:n-a,height:r-i}}(t);o=e||o,s=n||s}return o=n||o,s=r||s,{width:Math.max((0,at.Z)(o)?o:1,1),height:Math.max((0,at.Z)(s)?s:1,1),depth:i}}function sF(e){return t=>{for(let[n,r]of Object.entries(e)){let{type:e}=r;"value"===e?function(e,t,{key:n=t}){e.prototype[t]=function(e){return 0==arguments.length?this.attr(n):this.attr(n,e)}}(t,n,r):"array"===e?function(e,t,{key:n=t}){e.prototype[t]=function(e){if(0==arguments.length)return this.attr(n);if(Array.isArray(e))return this.attr(n,e);let t=[...this.attr(n)||[],e];return this.attr(n,t)}}(t,n,r):"object"===e?function(e,t,{key:n=t}){e.prototype[t]=function(e,t){if(0==arguments.length)return this.attr(n);if(1==arguments.length&&"string"!=typeof e)return this.attr(n,e);let r=this.attr(n)||{};return r[e]=1==arguments.length||t,this.attr(n,r)}}(t,n,r):"node"===e?function(e,t,{ctor:n}){e.prototype[t]=function(e){let r=this.append(n);return"mark"===t&&(r.type=e),r}}(t,n,r):"container"===e?function(e,t,{ctor:n}){e.prototype[t]=function(){return this.type=null,this.append(n)}}(t,n,r):"mix"===e&&function(e,t,n){e.prototype[t]=function(e){if(0==arguments.length)return this.attr(t);if(Array.isArray(e))return this.attr(t,{items:e});if(rc(e)&&(void 0!==e.title||void 0!==e.items)||null===e||!1===e)return this.attr(t,e);let n=this.attr(t)||{},{items:r=[]}=n;return r.push(e),n.items=r,this.attr(t,n)}}(t,n,0)}return t}}function sB(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,{type:"node",ctor:t}]))}let sj={encode:{type:"object"},scale:{type:"object"},data:{type:"value"},transform:{type:"array"},style:{type:"object"},animate:{type:"object"},coordinate:{type:"object"},interaction:{type:"object"},label:{type:"array",key:"labels"},axis:{type:"object"},legend:{type:"object"},slider:{type:"object"},scrollbar:{type:"object"},state:{type:"object"},layout:{type:"object"},theme:{type:"object"},title:{type:"value"}},sU=Object.assign(Object.assign({},sj),{tooltip:{type:"mix"},viewStyle:{type:"object"}}),sH=Object.assign(Object.assign({},sj),{labelTransform:{type:"array"}}),sG=class extends sx{changeData(e){var t;let n=this.getRoot();if(n)return this.attr("data",e),(null===(t=this.children)||void 0===t?void 0:t.length)&&this.children.forEach(t=>{t.attr("data",e)}),null==n?void 0:n.render()}getView(){let e=this.getRoot(),{views:t}=e.getContext();if(null==t?void 0:t.length)return t.find(e=>e.key===this._key)}getScale(){var e;return null===(e=this.getView())||void 0===e?void 0:e.scale}getScaleByChannel(e){let t=this.getScale();if(t)return t[e]}getCoordinate(){var e;return null===(e=this.getView())||void 0===e?void 0:e.coordinate}getTheme(){var e;return null===(e=this.getView())||void 0===e?void 0:e.theme}getGroup(){let e=this._key;if(!e)return;let t=this.getRoot(),n=t.getContext().canvas.getRoot();return n.getElementById(e)}show(){let e=this.getGroup();e&&(e.isVisible()||ij(e))}hide(){let e=this.getGroup();e&&e.isVisible()&&iB(e)}};sG=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}([sF(sH)],sG);let s$=class extends sx{changeData(e){let t=this.getRoot();if(t)return this.attr("data",e),null==t?void 0:t.render()}getMark(){var e;let t=null===(e=this.getRoot())||void 0===e?void 0:e.getView();if(!t)return;let{markState:n}=t,r=Array.from(n.keys()).find(e=>e.key===this.attr("key"));return n.get(r)}getScale(){var e;let t=null===(e=this.getRoot())||void 0===e?void 0:e.getView();if(t)return null==t?void 0:t.scale}getScaleByChannel(e){var t,n;let r=null===(t=this.getRoot())||void 0===t?void 0:t.getView();if(r)return null===(n=null==r?void 0:r.scale)||void 0===n?void 0:n[e]}getGroup(){let e=this.attr("key");if(!e)return;let t=this.getRoot(),n=t.getContext().canvas.getRoot();return n.getElementById(e)}};s$=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}([sF(sU)],s$);var sz=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},sZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},sW=n(23413),sY=n(53032),sV=n(8080),sq=n(36849),sK=n(70569),sX=n(76714);function sQ(e,t){for(var n in t)t.hasOwnProperty(n)&&"constructor"!==n&&void 0!==t[n]&&(e[n]=t[n])}var sJ=n(72349);let s0={field:"value",size:[1,1],round:!1,padding:0,sort:(e,t)=>t.value-e.value,as:["x","y"],ignoreParentValue:!0},s1="childNodeCount",s2="Invalid field: it must be a string!";var s3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let s4="sunburst",s5="markType",s6="path",s9="ancestor-node",s8={id:s4,encode:{x:"x",y:"y",key:s6,color:s9,value:"value"},axis:{x:!1,y:!1},style:{[s5]:s4,stroke:"#fff",lineWidth:.5,fillOpacity:"fillOpacity",[s1]:s1,depth:"depth"},state:{active:{zIndex:2,stroke:"#000"},inactive:{zIndex:1,stroke:"#fff"}},legend:!1,interaction:{drillDown:!0},coordinate:{type:"polar",innerRadius:.2}},s7=e=>{let{encode:t,data:n=[],legend:r}=e,a=s3(e,["encode","data","legend"]),i=Object.assign(Object.assign({},a.coordinate),{innerRadius:Math.max((0,sY.Z)(a,["coordinate","innerRadius"],.2),1e-5)}),o=Object.assign(Object.assign({},s8.encode),t),{value:s}=o,l=function(e){let{data:t,encode:n}=e,{color:r,value:a}=n,i=function(e,t){var n,r,a;let i;n={},r=t,s0&&sQ(n,s0),r&&sQ(n,r),a&&sQ(n,a),t=n;let o=t.as;if(!(0,rm.Z)(o)||2!==o.length)throw TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{i=function(e,t){let{field:n,fields:r}=e;if((0,sX.Z)(n))return n;if((0,rm.Z)(n))return console.warn(s2),n[0];if(console.warn("".concat(s2," will try to get fields instead.")),(0,sX.Z)(r))return r;if((0,rm.Z)(r)&&r.length)return r[0];if(t)return t;throw TypeError(s2)}(t)}catch(e){console.warn(e)}let s=(function(){var e=1,t=1,n=0,r=!1;function a(a){var i,o=a.height+1;return a.x0=a.y0=n,a.x1=e,a.y1=t/o,a.eachBefore((i=t,function(e){e.children&&(0,sq.Z)(e,e.x0,i*(e.depth+1)/o,e.x1,i*(e.depth+2)/o);var t=e.x0,r=e.y0,a=e.x1-n,s=e.y1-n;aau(e.children)?t.ignoreParentValue?0:e[i]-(0,sJ.Z)(e.children,(e,t)=>e+t[i],0):e[i]).sort(t.sort)),l=o[0],c=o[1];return s.each(e=>{var t,n;e[l]=[e.x0,e.x1,e.x1,e.x0],e[c]=[e.y1,e.y1,e.y0,e.y0],e.name=e.name||(null===(t=e.data)||void 0===t?void 0:t.name)||(null===(n=e.data)||void 0===n?void 0:n.label),e.data.name=e.name,["x0","x1","y0","y1"].forEach(t=>{-1===o.indexOf(t)&&delete e[t]})}),function(e){let t=[];if(e&&e.each){let n,r;e.each(e=>{var a,i;e.parent!==n?(n=e.parent,r=0):r+=1;let o=(0,ib.Z)(((null===(a=e.ancestors)||void 0===a?void 0:a.call(e))||[]).map(e=>t.find(t=>t.name===e.name)||e),t=>{let{depth:n}=t;return n>0&&n{t.push(e)});return t}(s)}(t,{field:a,type:"hierarchy.".concat("partition"),as:["x","y"]}),o=[];return i.forEach(e=>{var t,n,i,s;if(0===e.depth)return null;let l=e.data.name,c=[l],u=Object.assign({},e);for(;u.depth>1;)l="".concat(null===(t=u.parent.data)||void 0===t?void 0:t.name," / ").concat(l),c.unshift(null===(n=u.parent.data)||void 0===n?void 0:n.name),u=u.parent;let d=Object.assign(Object.assign(Object.assign({},(0,sW.Z)(e.data,[a])),{[s6]:l,[s9]:u.data.name}),e);r&&r!==s9&&(d[r]=e.data[r]||(null===(s=null===(i=e.parent)||void 0===i?void 0:i.data)||void 0===s?void 0:s[r])),o.push(d)}),o.map(e=>{let t=e.x.slice(0,2),n=[e.y[2],e.y[0]];return t[0]===t[1]&&(n[0]=n[1]=(e.y[2]+e.y[0])/2),Object.assign(Object.assign({},e),{x:t,y:n,fillOpacity:Math.pow(.85,e.depth)})})}({encode:o,data:n});return console.log(l,"rectData"),[(0,n5.Z)({},s8,Object.assign(Object.assign({type:"rect",data:l,encode:o,tooltip:{title:"path",items:[e=>({name:s,value:e[s]})]}},a),{coordinate:i}))]};s7.props={};var le=n(15255),lt=n(45607),ln=Object.keys?function(e){return Object.keys(e)}:function(e){var t=[];return(0,le.Z)(e,function(n,r){(0,lt.Z)(e)&&"prototype"===r||t.push(r)}),t},lr=n(50368);let la=e=>e.querySelectorAll(".element").filter(e=>(0,sY.Z)(e,["style",s5])===s4),li={rootText:"root",style:{fill:"rgba(0, 0, 0, 0.85)",fontSize:12,y:1},active:{fill:"rgba(0, 0, 0, 0.5)"}},lo=()=>[["cartesian"]];lo.props={};let ls=()=>[["transpose"],["translate",.5,.5],["reflect.x"],["translate",-.5,-.5]];ls.props={transform:!0};let ll=(e={})=>Object.assign(Object.assign({},{startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,outerRadius:1}),e),lc=e=>{let{startAngle:t,endAngle:n,innerRadius:r,outerRadius:a}=ll(e);return[...ls(),...r_({startAngle:t,endAngle:n,innerRadius:r,outerRadius:a})]};lc.props={};let lu=()=>[["parallel",0,1,0,1]];lu.props={};let ld=({focusX:e=0,focusY:t=0,distortionX:n=2,distortionY:r=2,visual:a=!1})=>[["fisheye",e,t,n,r,a]];ld.props={transform:!0};let lp=e=>{let{startAngle:t=-Math.PI/2,endAngle:n=3*Math.PI/2,innerRadius:r=0,outerRadius:a=1}=e;return[...lu(),...r_({startAngle:t,endAngle:n,innerRadius:r,outerRadius:a})]};lp.props={};let lf=({value:e})=>t=>t.map(()=>e);lf.props={};let lm=({value:e})=>t=>t.map(t=>t[e]);lm.props={};let lg=({value:e})=>t=>t.map(e);lg.props={};let lh=({value:e})=>()=>e;function lb(e,t){if(null!==e)return{type:"column",value:e,field:t}}function ly(e,t){let n=lb(e,t);return Object.assign(Object.assign({},n),{inferred:!0})}function lE(e,t){if(null!==e)return{type:"column",value:e,field:t,visual:!0}}function lT(e,t){let n=[];for(let r of e)n[r]=t;return n}function lv(e,t){let n=e[t];if(!n)return[null,null];let{value:r,field:a=null}=n;return[r,a]}function lS(e,...t){for(let n of t){if("string"!=typeof n)return[n,null];{let[t,r]=lv(e,n);if(null!==t)return[t,r]}}return[null,null]}function lA(e){return!(e instanceof Date)&&"object"==typeof e}lh.props={};let lO=()=>(e,t)=>{let{encode:n}=t,{y1:r}=n;return void 0!==r?[e,t]:[e,(0,n5.Z)({},t,{encode:{y1:ly(lT(e,0))}})]};lO.props={};let l_=()=>(e,t)=>{let{encode:n}=t,{x:r}=n;return void 0!==r?[e,t]:[e,(0,n5.Z)({},t,{encode:{x:ly(lT(e,0))},scale:{x:{guide:null}}})]};l_.props={};let lk=(e,t)=>iP(Object.assign({colorAttribute:"fill"},e),t);lk.props=Object.assign(Object.assign({},iP.props),{defaultMarker:"square"});let lI=(e,t)=>iP(Object.assign({colorAttribute:"stroke"},e),t);lI.props=Object.assign(Object.assign({},iP.props),{defaultMarker:"hollowSquare"});var lC=n(57481),lN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function lx(e,t,n){let[r,a,i,o]=e;if(rR(n)){let e=[t?t[0][0]:a[0],a[1]],n=[t?t[3][0]:i[0],i[1]];return[r,e,n,o]}let s=[a[0],t?t[0][1]:a[1]],l=[i[0],t?t[3][1]:i[1]];return[r,s,l,o]}let lw=(e,t)=>{let{adjustPoints:n=lx}=e,r=lN(e,["adjustPoints"]),{coordinate:a,document:i}=t;return(e,t,o,s)=>{let{index:l}=t,{color:c}=o,u=lN(o,["color"]),d=s[l+1],p=n(e,d,a),f=!!rR(a),[m,g,h,b]=f?a$(p):p,{color:y=c,opacity:E}=t,T=(0,aK.Z)().curve(lC.Z)([m,g,h,b]);return rd(i.createElement("path",{})).call(aU,u).style("d",T).style("fill",y).style("fillOpacity",E).call(aU,r).node()}};function lR(e,t,n){let[r,a,i,o]=e;if(rR(n)){let e=[t?t[0][0]:(a[0]+i[0])/2,a[1]],n=[t?t[3][0]:(a[0]+i[0])/2,i[1]];return[r,e,n,o]}let s=[a[0],t?t[0][1]:(a[1]+i[1])/2],l=[i[0],t?t[3][1]:(a[1]+i[1])/2];return[r,s,l,o]}lw.props={defaultMarker:"square"};let lL=(e,t)=>lw(Object.assign({adjustPoints:lR},e),t);function lD(e){return Math.abs(e)>10?String(e):e.toString().padStart(2,"0")}lL.props={defaultMarker:"square"};let lP=(e={})=>{let{channel:t="x"}=e;return(e,n)=>{let{encode:r}=n,{tooltip:a}=n;if(ru(a))return[e,n];let{title:i}=a;if(void 0!==i)return[e,n];let o=Object.keys(r).filter(e=>e.startsWith(t)).filter(e=>!r[e].inferred).map(e=>lv(r,e)).filter(([e])=>e).map(e=>e[0]);if(0===o.length)return[e,n];let s=[];for(let t of e)s[t]={value:o.map(e=>e[t]instanceof Date?function(e){let t=e.getFullYear(),n=lD(e.getMonth()+1),r=lD(e.getDate()),a=`${t}-${n}-${r}`,i=e.getHours(),o=e.getMinutes(),s=e.getSeconds();return i||o||s?`${a} ${lD(i)}:${lD(o)}:${lD(s)}`:a}(e[t]):e[t]).join(", ")};return[e,(0,n5.Z)({},n,{tooltip:{title:s}})]}};lP.props={};let lM=e=>{let{channel:t}=e;return(e,n)=>{let{encode:r,tooltip:a}=n;if(ru(a))return[e,n];let{items:i=[]}=a;if(!i||i.length>0)return[e,n];let o=Array.isArray(t)?t:[t],s=o.flatMap(e=>Object.keys(r).filter(t=>t.startsWith(e)).map(e=>{let{field:t,value:n,inferred:a=!1,aggregate:i}=r[e];return a?null:i&&n?{channel:e}:t?{field:t}:n?{channel:e}:null}).filter(e=>null!==e));return[e,(0,n5.Z)({},n,{tooltip:{items:s}})]}};lM.props={};var lF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let lB=()=>(e,t)=>{let{encode:n}=t,{key:r}=n,a=lF(n,["key"]);if(void 0!==r)return[e,t];let i=Object.values(a).map(({value:e})=>e),o=e.map(e=>i.filter(Array.isArray).map(t=>t[e]).join("-"));return[e,(0,n5.Z)({},t,{encode:{key:lb(o)}})]};function lj(e={}){let{shapes:t}=e;return[{name:"color"},{name:"opacity"},{name:"shape",range:t},{name:"enterType"},{name:"enterDelay",scaleKey:"enter"},{name:"enterDuration",scaleKey:"enter"},{name:"enterEasing"},{name:"key",scale:"identity"},{name:"groupKey",scale:"identity"},{name:"label",scale:"identity"}]}function lU(e={}){return[...lj(e),{name:"title",scale:"identity"}]}function lH(){return[{type:lP,channel:"color"},{type:lM,channel:["x","y"]}]}function lG(){return[{type:lP,channel:"x"},{type:lM,channel:["y"]}]}function l$(e={}){return lj(e)}function lz(){return[{type:lB}]}function lZ(e,t){return e.getBandWidth(e.invert(t))}function lW(e,t,n={}){let{x:r,y:a,series:i}=t,{x:o,y:s,series:l}=e,{style:{bandOffset:c=l?0:.5,bandOffsetX:u=c,bandOffsetY:d=c}={}}=n,p=!!(null==o?void 0:o.getBandWidth),f=!!(null==s?void 0:s.getBandWidth),m=!!(null==l?void 0:l.getBandWidth);return p||f?(e,t)=>{let n=p?lZ(o,r[t]):0,c=f?lZ(s,a[t]):0,g=m&&i?(lZ(l,i[t])/2+ +i[t])*n:0,[h,b]=e;return[h+u*n+g,b+d*c]}:e=>e}function lY(e){return parseFloat(e)/100}function lV(e,t,n,r){let{x:a,y:i}=n,{innerWidth:o,innerHeight:s}=r.getOptions(),l=Array.from(e,e=>{let t=a[e],n=i[e],r="string"==typeof t?lY(t)*o:+t,l="string"==typeof n?lY(n)*s:+n;return[[r,l]]});return[e,l]}function lq(e){return"function"==typeof e?e:t=>t[e]}function lK(e,t){return Array.from(e,lq(t))}function lX(e,t){let{source:n=e=>e.source,target:r=e=>e.target,value:a=e=>e.value}=t,{links:i,nodes:o}=e,s=lK(i,n),l=lK(i,r),c=lK(i,a);return{links:i.map((e,t)=>({target:l[t],source:s[t],value:c[t]})),nodes:o||Array.from(new Set([...s,...l]),e=>({key:e}))}}function lQ(e,t){return e.getBandWidth(e.invert(t))}lB.props={};let lJ={rect:lk,hollow:lI,funnel:lw,pyramid:lL},l0=()=>(e,t,n,r)=>{let{x:a,y:i,y1:o,series:s,size:l}=n,c=t.x,u=t.series,[d]=r.getSize(),p=l?l.map(e=>+e/d):null,f=l?(e,t,n)=>{let r=e+t/2,a=p[n];return[r-a/2,r+a/2]}:(e,t,n)=>[e,e+t],m=Array.from(e,e=>{let t=lQ(c,a[e]),n=u?lQ(u,null==s?void 0:s[e]):1,l=(+(null==s?void 0:s[e])||0)*t,d=+a[e]+l,[p,m]=f(d,t*n,e),g=+i[e],h=+o[e];return[[p,g],[m,g],[m,h],[p,h]].map(e=>r.map(e))});return[e,m]};l0.props={defaultShape:"rect",defaultLabelShape:"label",composite:!1,shape:lJ,channels:[...lU({shapes:Object.keys(lJ)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"},{name:"size"}],preInference:[...lz(),{type:lO},{type:l_}],postInference:[...lG()],interaction:{shareTooltip:!0}};let l1={rect:lk,hollow:lI},l2=()=>(e,t,n,r)=>{let{x:a,x1:i,y:o,y1:s}=n,l=Array.from(e,e=>{let t=[+a[e],+o[e]],n=[+i[e],+o[e]],l=[+i[e],+s[e]],c=[+a[e],+s[e]];return[t,n,l,c].map(e=>r.map(e))});return[e,l]};l2.props={defaultShape:"rect",defaultLabelShape:"label",composite:!1,shape:l1,channels:[...lU({shapes:Object.keys(l1)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...lz(),{type:lO}],postInference:[...lG()],interaction:{shareTooltip:!0}};var l3=n(18143),l4=n(73671),l5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let l6=aX(e=>{let{d1:t,d2:n,style1:r,style2:a}=e.attributes,i=e.ownerDocument;rd(e).maybeAppend("line",()=>i.createElement("path",{})).style("d",t).call(aU,r),rd(e).maybeAppend("line1",()=>i.createElement("path",{})).style("d",n).call(aU,a)}),l9=(e,t)=>{let{curve:n,gradient:r=!1,gradientColor:a="between",defined:i=e=>!Number.isNaN(e)&&null!=e,connect:o=!1}=e,s=l5(e,["curve","gradient","gradientColor","defined","connect"]),{coordinate:l,document:c}=t;return(e,t,u)=>{let d;let{color:p,lineWidth:f}=u,m=l5(u,["color","lineWidth"]),{color:g=p,size:h=f,seriesColor:b,seriesX:y,seriesY:E}=t,T=aW(l,t),v=rR(l),S=r&&b?aG(b,y,E,r,a,v):g,A=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},m),S&&{stroke:S}),h&&{lineWidth:h}),T&&{transform:T}),s);if(rL(l)){let e=l.getCenter();d=t=>(0,l4.Z)().angle((n,r)=>aM(aL(t[r],e))).radius((n,r)=>aD(t[r],e)).defined(([e,t])=>i(e)&&i(t)).curve(n)(t)}else d=(0,aK.Z)().x(e=>e[0]).y(e=>e[1]).defined(([e,t])=>i(e)&&i(t)).curve(n);let[O,_]=function(e,t){let n=[],r=[],a=!1,i=null;for(let o of e)t(o[0])&&t(o[1])?(n.push(o),a&&(a=!1,r.push([i,o])),i=o):a=!0;return[n,r]}(e,i),k=ri(A,"connect"),I=!!_.length;return I&&(!o||Object.keys(k).length)?I&&!o?rd(c.createElement("path",{})).style("d",d(e)).call(aU,A).node():rd(new l6).style("style1",Object.assign(Object.assign({},A),k)).style("style2",A).style("d1",_.map(d).join(",")).style("d2",d(e)).node():rd(c.createElement("path",{})).style("d",d(O)||[]).call(aU,A).node()}};l9.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let l8=(e,t)=>{let{coordinate:n}=t;return(...r)=>{let a=rL(n)?lC.Z:l3.Z;return l9(Object.assign({curve:a},e),t)(...r)}};l8.props=Object.assign(Object.assign({},l9.props),{defaultMarker:"line"});var l7=n(43683),ce=n(65165),ct=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let cn=(e,t)=>{let n=ct(e,[]),{coordinate:r}=t;return(...e)=>{let a=rL(r)?l7.Z:rR(r)?ce.s:ce.Z;return l9(Object.assign({curve:a},n),t)(...e)}};cn.props=Object.assign(Object.assign({},l9.props),{defaultMarker:"smooth"});var cr=n(77059);let ca=(e,t)=>l9(Object.assign({curve:cr.cD},e),t);ca.props=Object.assign(Object.assign({},l9.props),{defaultMarker:"hv"});let ci=(e,t)=>l9(Object.assign({curve:cr.RN},e),t);ci.props=Object.assign(Object.assign({},l9.props),{defaultMarker:"vh"});let co=(e,t)=>l9(Object.assign({curve:cr.ZP},e),t);co.props=Object.assign(Object.assign({},l9.props),{defaultMarker:"hvh"});var cs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let cl=(e,t)=>{let{document:n}=t;return(t,r,a)=>{let{seriesSize:i,color:o}=r,{color:s}=a,l=cs(a,["color"]),c=(0,ih.Z)();for(let e=0;e(e,t)=>{let{style:n={},encode:r}=t,{series:a}=r,{gradient:i}=n;return!i||a?[e,t]:[e,(0,n5.Z)({},t,{encode:{series:lE(lT(e,void 0))}})]};cc.props={};let cu=()=>(e,t)=>{let{encode:n}=t,{series:r,color:a}=n;if(void 0!==r||void 0===a)return[e,t];let[i,o]=lv(n,"color");return[e,(0,n5.Z)({},t,{encode:{series:lb(i,o)}})]};cu.props={};let cd={line:l8,smooth:cn,hv:ca,vh:ci,hvh:co,trail:cl},cp=(e,t,n,r)=>{var a,i;let{series:o,x:s,y:l}=n,{x:c,y:u}=t;if(void 0===s||void 0===l)throw Error("Missing encode for x or y channel.");let d=o?Array.from((0,n6.ZP)(e,e=>o[e]).values()):[e],p=d.map(e=>e[0]).filter(e=>void 0!==e),f=((null===(a=null==c?void 0:c.getBandWidth)||void 0===a?void 0:a.call(c))||0)/2,m=((null===(i=null==u?void 0:u.getBandWidth)||void 0===i?void 0:i.call(u))||0)/2,g=Array.from(d,e=>e.map(e=>r.map([+s[e]+f,+l[e]+m])));return[p,g,d]},cf=(e,t,n,r)=>{let a=Object.entries(n).filter(([e])=>e.startsWith("position")).map(([,e])=>e);if(0===a.length)throw Error("Missing encode for position channel.");let i=Array.from(e,e=>{let t=a.map(t=>+t[e]),n=r.map(t),i=[];for(let e=0;e(e,t,n,r)=>{let a=rM(r)?cf:cp;return a(e,t,n,r)};cm.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:cd,channels:[...lU({shapes:Object.keys(cd)}),{name:"x"},{name:"y"},{name:"position",independent:!0},{name:"size"},{name:"series",scale:"band"}],preInference:[...lz(),{type:cc},{type:cu}],postInference:[...lG(),{type:lP,channel:"color"},{type:lM,channel:["position"]}],interaction:{shareTooltip:!0,seriesTooltip:!0,crosshairs:!0}};var cg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function ch(e,t,n,r){if(1===t.length)return;let{size:a}=n;if("fixed"===e)return a;if("normal"===e||rF(r)){let[[e,n],[r,a]]=t;return Math.max(0,(Math.abs((r-e)/2)+Math.abs((a-n)/2))/2)}return a}let cb=(e,t)=>{let{colorAttribute:n,symbol:r,mode:a="auto"}=e,i=cg(e,["colorAttribute","symbol","mode"]),o=nJ.get(r)||nJ.get("point"),{coordinate:s,document:l}=t;return(t,r,c)=>{let{lineWidth:u,color:d}=c,p=i.stroke?u||1:u,{color:f=d,transform:m,opacity:g}=r,[h,b]=aY(t),y=ch(a,t,r,s),E=y||i.r||c.r;return rd(l.createElement("path",{})).call(aU,c).style("fill","transparent").style("d",o(h,b,E)).style("lineWidth",p).style("transform",m).style("transformOrigin",`${h-E} ${b-E}`).style("stroke",f).style(aZ(e),g).style(n,f).call(aU,i).node()}};cb.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let cy=(e,t)=>cb(Object.assign({colorAttribute:"stroke",symbol:"point"},e),t);cy.props=Object.assign({defaultMarker:"hollowPoint"},cb.props);let cE=(e,t)=>cb(Object.assign({colorAttribute:"stroke",symbol:"diamond"},e),t);cE.props=Object.assign({defaultMarker:"hollowDiamond"},cb.props);let cT=(e,t)=>cb(Object.assign({colorAttribute:"stroke",symbol:"hexagon"},e),t);cT.props=Object.assign({defaultMarker:"hollowHexagon"},cb.props);let cv=(e,t)=>cb(Object.assign({colorAttribute:"stroke",symbol:"square"},e),t);cv.props=Object.assign({defaultMarker:"hollowSquare"},cb.props);let cS=(e,t)=>cb(Object.assign({colorAttribute:"stroke",symbol:"triangle-down"},e),t);cS.props=Object.assign({defaultMarker:"hollowTriangleDown"},cb.props);let cA=(e,t)=>cb(Object.assign({colorAttribute:"stroke",symbol:"triangle"},e),t);cA.props=Object.assign({defaultMarker:"hollowTriangle"},cb.props);let cO=(e,t)=>cb(Object.assign({colorAttribute:"stroke",symbol:"bowtie"},e),t);cO.props=Object.assign({defaultMarker:"hollowBowtie"},cb.props);var c_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let ck=(e,t)=>{let{colorAttribute:n,mode:r="auto"}=e,a=c_(e,["colorAttribute","mode"]),{coordinate:i,document:o}=t;return(t,s,l)=>{let{lineWidth:c,color:u}=l,d=a.stroke?c||1:c,{color:p=u,transform:f,opacity:m}=s,[g,h]=aY(t),b=ch(r,t,s,i),y=b||a.r||l.r;return rd(o.createElement("circle",{})).call(aU,l).style("fill","transparent").style("cx",g).style("cy",h).style("r",y).style("lineWidth",d).style("transform",f).style("transformOrigin",`${g} ${h}`).style("stroke",p).style(aZ(e),m).style(n,p).call(aU,a).node()}},cI=(e,t)=>ck(Object.assign({colorAttribute:"fill"},e),t);cI.props={defaultMarker:"circle",defaultEnterAnimation:"fadeIn",defaultExitAnimation:"fadeOut"};let cC=(e,t)=>ck(Object.assign({colorAttribute:"stroke"},e),t);cC.props=Object.assign({defaultMarker:"hollowPoint"},cI.props);let cN=(e,t)=>cb(Object.assign({colorAttribute:"fill",symbol:"point"},e),t);cN.props=Object.assign({defaultMarker:"point"},cb.props);let cx=(e,t)=>cb(Object.assign({colorAttribute:"stroke",symbol:"plus"},e),t);cx.props=Object.assign({defaultMarker:"plus"},cb.props);let cw=(e,t)=>cb(Object.assign({colorAttribute:"fill",symbol:"diamond"},e),t);cw.props=Object.assign({defaultMarker:"diamond"},cb.props);let cR=(e,t)=>cb(Object.assign({colorAttribute:"fill",symbol:"square"},e),t);cR.props=Object.assign({defaultMarker:"square"},cb.props);let cL=(e,t)=>cb(Object.assign({colorAttribute:"fill",symbol:"triangle"},e),t);cL.props=Object.assign({defaultMarker:"triangle"},cb.props);let cD=(e,t)=>cb(Object.assign({colorAttribute:"fill",symbol:"hexagon"},e),t);cD.props=Object.assign({defaultMarker:"hexagon"},cb.props);let cP=(e,t)=>cb(Object.assign({colorAttribute:"stroke",symbol:"cross"},e),t);cP.props=Object.assign({defaultMarker:"cross"},cb.props);let cM=(e,t)=>cb(Object.assign({colorAttribute:"fill",symbol:"bowtie"},e),t);cM.props=Object.assign({defaultMarker:"bowtie"},cb.props);let cF=(e,t)=>cb(Object.assign({colorAttribute:"stroke",symbol:"hyphen"},e),t);cF.props=Object.assign({defaultMarker:"hyphen"},cb.props);let cB=(e,t)=>cb(Object.assign({colorAttribute:"stroke",symbol:"line"},e),t);cB.props=Object.assign({defaultMarker:"line"},cb.props);let cj=(e,t)=>cb(Object.assign({colorAttribute:"stroke",symbol:"tick"},e),t);cj.props=Object.assign({defaultMarker:"tick"},cb.props);let cU=(e,t)=>cb(Object.assign({colorAttribute:"fill",symbol:"triangle-down"},e),t);cU.props=Object.assign({defaultMarker:"triangleDown"},cb.props);let cH=()=>(e,t)=>{let{encode:n}=t,{y:r}=n;return void 0!==r?[e,t]:[e,(0,n5.Z)({},t,{encode:{y:ly(lT(e,0))},scale:{y:{guide:null}}})]};cH.props={};let cG=()=>(e,t)=>{let{encode:n}=t,{size:r}=n;return void 0!==r?[e,t]:[e,(0,n5.Z)({},t,{encode:{size:lE(lT(e,3))}})]};cG.props={};let c$={hollow:cy,hollowDiamond:cE,hollowHexagon:cT,hollowSquare:cv,hollowTriangleDown:cS,hollowTriangle:cA,hollowBowtie:cO,hollowCircle:cC,point:cN,plus:cx,diamond:cw,square:cR,triangle:cL,hexagon:cD,cross:cP,bowtie:cM,hyphen:cF,line:cB,tick:cj,triangleDown:cU,circle:cI},cz=e=>(t,n,r,a)=>{let{x:i,y:o,x1:s,y1:l,size:c,dx:u,dy:d}=r,[p,f]=a.getSize(),m=lW(n,r,e),g=e=>{let t=+((null==u?void 0:u[e])||0),n=+((null==d?void 0:d[e])||0),r=s?(+i[e]+ +s[e])/2:+i[e],a=l?(+o[e]+ +l[e])/2:+o[e];return[r+t,a+n]},h=c?Array.from(t,e=>{let[t,n]=g(e),r=+c[e],i=r/p,o=r/f;return[a.map(m([t-i,n-o],e)),a.map(m([t+i,n+o],e))]}):Array.from(t,e=>[a.map(m(g(e),e))]);return[t,h]};cz.props={defaultShape:"hollow",defaultLabelShape:"label",composite:!1,shape:c$,channels:[...lU({shapes:Object.keys(c$)}),{name:"x",required:!0},{name:"y",required:!0},{name:"series",scale:"band"},{name:"size",quantitative:"sqrt"},{name:"dx",scale:"identity"},{name:"dy",scale:"identity"}],preInference:[...lz(),{type:l_},{type:cH}],postInference:[{type:cG},...lH()]};let cZ=(e,t)=>{let{coordinate:n}=t;return(t,r,a)=>{let{color:i,text:o="",fontSize:s,rotate:l=0,transform:c=""}=r,u={text:String(o),stroke:i,fill:i,fontSize:s},[[d,p]]=t;return rd(new aJ).style("x",d).style("y",p).call(aU,a).style("transform",`${c}rotate(${+l})`).style("coordCenter",n.getCenter()).call(aU,u).call(aU,e).node()}};cZ.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var cW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let cY=aX(e=>{let t=e.attributes,{class:n,x:r,y:a,transform:i}=t,o=cW(t,["class","x","y","transform"]),s=ri(o,"marker"),{size:l=24}=s,c=()=>(function(e){let t=e/Math.sqrt(2),n=e*Math.sqrt(2),[r,a]=[-t,t-n],[i,o]=[0,0],[s,l]=[t,t-n];return[["M",r,a],["A",e,e,0,1,1,s,l],["L",i,o],["Z"]]})(l/2),u=rd(e).maybeAppend("marker",()=>new aq.J({})).call(e=>e.node().update(Object.assign({symbol:c},s))).node(),[d,p]=function(e){let{min:t,max:n}=e.getLocalBounds();return[(t[0]+n[0])*.5,(t[1]+n[1])*.5]}(u);rd(e).maybeAppend("text","text").style("x",d).style("y",p).call(aU,o)}),cV=(e,t)=>{let n=cW(e,[]);return(e,t,r)=>{let{color:a}=r,i=cW(r,["color"]),{color:o=a,text:s=""}=t,l={text:String(s),stroke:o,fill:o},[[c,u]]=e;return rd(new cY).call(aU,i).style("transform",`translate(${c},${u})`).call(aU,l).call(aU,n).node()}};cV.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let cq=(e,t)=>{let{coordinate:n}=t;return(t,r,a)=>{let{color:i,text:o="",fontSize:s,rotate:l=0,transform:c=""}=r,u={text:String(o),stroke:i,fill:i,fontSize:s,textAlign:"center",textBaseline:"middle"},[[d,p]]=t,f=rd(new nO.xv).style("x",d).style("y",p).call(aU,a).style("transformOrigin","center center").style("transform",`${c}rotate(${l}deg)`).style("coordCenter",n.getCenter()).call(aU,u).call(aU,e).node();return f}};cq.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let cK=()=>(e,t)=>{let{data:n}=t;if(!Array.isArray(n)||n.some(lA))return[e,t];let r=Array.isArray(n[0])?n:[n],a=r.map(e=>e[0]),i=r.map(e=>e[1]);return[e,(0,n5.Z)({},t,{encode:{x:lb(a),y:lb(i)}})]};cK.props={};var cX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let cQ=()=>(e,t)=>{let{data:n,style:r={}}=t,a=cX(t,["data","style"]),{x:i,y:o}=r,s=cX(r,["x","y"]);if(void 0==i||void 0==o)return[e,t];let l=i||0,c=o||0;return[[0],(0,n5.Z)({},a,{data:[0],cartesian:!0,encode:{x:lb([l]),y:lb([c])},scale:{x:{type:"identity",independent:!0,guide:null},y:{type:"identity",independent:!0,guide:null}},style:s})]};cQ.props={};let cJ={text:cZ,badge:cV,tag:cq},c0=e=>{let{cartesian:t=!1}=e;return t?lV:(t,n,r,a)=>{let{x:i,y:o}=r,s=lW(n,r,e),l=Array.from(t,e=>{let t=[+i[e],+o[e]];return[a.map(s(t,e))]});return[t,l]}};c0.props={defaultShape:"text",defaultLabelShape:"label",composite:!1,shape:cJ,channels:[...lU({shapes:Object.keys(cJ)}),{name:"x",required:!0},{name:"y",required:!0},{name:"text",scale:"identity"},{name:"fontSize",scale:"identity"},{name:"rotate",scale:"identity"}],preInference:[...lz(),{type:cK},{type:cQ}],postInference:[...lH()]};let c1=()=>(e,t)=>[e,(0,n5.Z)({scale:{x:{padding:0},y:{padding:0}}},t)];c1.props={};let c2={cell:lk,hollow:lI},c3=()=>(e,t,n,r)=>{let{x:a,y:i}=n,o=t.x,s=t.y,l=Array.from(e,e=>{let t=o.getBandWidth(o.invert(+a[e])),n=s.getBandWidth(s.invert(+i[e])),l=+a[e],c=+i[e];return[[l,c],[l+t,c],[l+t,c+n],[l,c+n]].map(e=>r.map(e))});return[e,l]};c3.props={defaultShape:"cell",defaultLabelShape:"label",shape:c2,composite:!1,channels:[...lU({shapes:Object.keys(c2)}),{name:"x",required:!0,scale:"band"},{name:"y",required:!0,scale:"band"}],preInference:[...lz(),{type:l_},{type:cH},{type:c1}],postInference:[...lH()]};var c4=n(37633),c5=n(53253),c6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let c9=aX(e=>{let{areaPath:t,connectPath:n,areaStyle:r,connectStyle:a}=e.attributes,i=e.ownerDocument;rd(e).maybeAppend("connect-path",()=>i.createElement("path",{})).style("d",n).call(aU,a),rd(e).maybeAppend("area-path",()=>i.createElement("path",{})).style("d",t).call(aU,r)}),c8=(e,t)=>{let{curve:n,gradient:r=!1,defined:a=e=>!Number.isNaN(e)&&null!=e,connect:i=!1}=e,o=c6(e,["curve","gradient","defined","connect"]),{coordinate:s,document:l}=t;return(e,t,c)=>{let{color:u}=c,{color:d=u,seriesColor:p,seriesX:f,seriesY:m}=t,g=rR(s),h=aW(s,t),b=r&&p?aG(p,f,m,r,void 0,g):d,y=Object.assign(Object.assign(Object.assign(Object.assign({},c),{stroke:b,fill:b}),h&&{transform:h}),o),[E,T]=function(e,t){let n=[],r=[],a=[],i=!1,o=null,s=e.length/2;for(let l=0;l!t(e)))i=!0;else{if(n.push(c),r.push(u),i&&o){i=!1;let[e,t]=o;a.push([e,c,t,u])}o=[c,u]}}return[n.concat(r),a]}(e,a),v=ri(y,"connect"),S=!!T.length,A=e=>rd(l.createElement("path",{})).style("d",e||"").call(aU,y).node();if(rL(s)){let t=e=>{let t=s.getCenter(),r=e.slice(0,e.length/2),i=e.slice(e.length/2);return(0,c5.Z)().angle((e,n)=>aM(aL(r[n],t))).outerRadius((e,n)=>aD(r[n],t)).innerRadius((e,n)=>aD(i[n],t)).defined((e,t)=>[...r[t],...i[t]].every(a)).curve(n)(i)};return S&&(!i||Object.keys(v).length)?S&&!i?A(t(e)):rd(new c9).style("areaStyle",y).style("connectStyle",Object.assign(Object.assign({},v),o)).style("areaPath",t(e)).style("connectPath",T.map(t).join("")).node():A(t(E))}{let t=e=>{let t=e.slice(0,e.length/2),r=e.slice(e.length/2);return g?(0,c4.Z)().y((e,n)=>t[n][1]).x1((e,n)=>t[n][0]).x0((e,t)=>r[t][0]).defined((e,n)=>[...t[n],...r[n]].every(a)).curve(n)(t):(0,c4.Z)().x((e,n)=>t[n][0]).y1((e,n)=>t[n][1]).y0((e,t)=>r[t][1]).defined((e,n)=>[...t[n],...r[n]].every(a)).curve(n)(t)};return S&&(!i||Object.keys(v).length)?S&&!i?A(t(e)):rd(new c9).style("areaStyle",y).style("connectStyle",Object.assign(Object.assign({},v),o)).style("areaPath",t(e)).style("connectPath",T.map(t).join("")).node():A(t(E))}}};c8.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let c7=(e,t)=>{let{coordinate:n}=t;return(...r)=>{let a=rL(n)?lC.Z:l3.Z;return c8(Object.assign({curve:a},e),t)(...r)}};c7.props=Object.assign(Object.assign({},c8.props),{defaultMarker:"square"});var ue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let ut=(e,t)=>{let n=ue(e,[]),{coordinate:r}=t;return(...e)=>{let a=rL(r)?l7.Z:rR(r)?ce.s:ce.Z;return c8(Object.assign({curve:a},n),t)(...e)}};ut.props=Object.assign(Object.assign({},c8.props),{defaultMarker:"smooth"});let un=(e,t)=>(...n)=>c8(Object.assign({curve:cr.ZP},e),t)(...n);un.props=Object.assign(Object.assign({},c8.props),{defaultMarker:"hvh"});let ur=(e,t)=>(...n)=>c8(Object.assign({curve:cr.RN},e),t)(...n);ur.props=Object.assign(Object.assign({},c8.props),{defaultMarker:"vh"});let ua=(e,t)=>(...n)=>c8(Object.assign({curve:cr.cD},e),t)(...n);ua.props=Object.assign(Object.assign({},c8.props),{defaultMarker:"hv"});let ui={area:c7,smooth:ut,hvh:un,vh:ur,hv:ua},uo=()=>(e,t,n,r)=>{var a,i;let{x:o,y:s,y1:l,series:c}=n,{x:u,y:d}=t,p=c?Array.from((0,n6.ZP)(e,e=>c[e]).values()):[e],f=p.map(e=>e[0]).filter(e=>void 0!==e),m=((null===(a=null==u?void 0:u.getBandWidth)||void 0===a?void 0:a.call(u))||0)/2,g=((null===(i=null==d?void 0:d.getBandWidth)||void 0===i?void 0:i.call(d))||0)/2,h=Array.from(p,e=>{let t=e.length,n=Array(2*t);for(let a=0;a(e,t)=>{let{encode:n}=t,{y1:r}=n;if(r)return[e,t];let[a]=lv(n,"y");return[e,(0,n5.Z)({},t,{encode:{y1:lb([...a])}})]};us.props={};let ul=()=>(e,t)=>{let{encode:n}=t,{x1:r}=n;if(r)return[e,t];let[a]=lv(n,"x");return[e,(0,n5.Z)({},t,{encode:{x1:lb([...a])}})]};ul.props={};var uc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let uu=(e,t)=>{let{arrow:n=!0,arrowSize:r="40%"}=e,a=uc(e,["arrow","arrowSize"]),{document:i}=t;return(e,t,o)=>{let{defaultColor:s}=o,l=uc(o,["defaultColor"]),{color:c=s,transform:u}=t,[d,p]=e,f=(0,ih.Z)();if(f.moveTo(...d),f.lineTo(...p),n){let[e,t]=function(e,t,n){let{arrowSize:r}=n,a="string"==typeof r?+parseFloat(r)/100*aD(e,t):r,i=Math.PI/6,o=Math.atan2(t[1]-e[1],t[0]-e[0]),s=Math.PI/2-o-i,l=[t[0]-a*Math.sin(s),t[1]-a*Math.cos(s)],c=o-i,u=[t[0]-a*Math.cos(c),t[1]-a*Math.sin(c)];return[l,u]}(d,p,{arrowSize:r});f.moveTo(...e),f.lineTo(...p),f.lineTo(...t)}return rd(i.createElement("path",{})).call(aU,l).style("d",f.toString()).style("stroke",c).style("transform",u).call(aU,a).node()}};uu.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let ud=(e,t)=>{let{arrow:n=!1}=e;return(...r)=>uu(Object.assign(Object.assign({},e),{arrow:n}),t)(...r)};ud.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var up=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let uf=(e,t)=>{let n=up(e,[]),{coordinate:r,document:a}=t;return(e,t,i)=>{let{color:o}=i,s=up(i,["color"]),{color:l=o,transform:c}=t,[u,d]=e,p=(0,ih.Z)();if(p.moveTo(u[0],u[1]),rL(r)){let e=r.getCenter();p.quadraticCurveTo(e[0],e[1],d[0],d[1])}else{let e=aj(u,d),t=aD(u,d)/2;aH(p,u,d,e,t)}return rd(a.createElement("path",{})).call(aU,s).style("d",p.toString()).style("stroke",l).style("transform",c).call(aU,n).node()}};uf.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var um=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let ug=(e,t)=>{let n=um(e,[]),{document:r}=t;return(e,t,a)=>{let{color:i}=a,o=um(a,["color"]),{color:s=i,transform:l}=t,[c,u]=e,d=(0,ih.Z)();return d.moveTo(c[0],c[1]),d.bezierCurveTo(c[0]/2+u[0]/2,c[1],c[0]/2+u[0]/2,u[1],u[0],u[1]),rd(r.createElement("path",{})).call(aU,o).style("d",d.toString()).style("stroke",s).style("transform",l).call(aU,n).node()}};ug.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var uh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let ub=(e,t)=>{let{cornerRatio:n=1/3}=e,r=uh(e,["cornerRatio"]),{coordinate:a,document:i}=t;return(e,t,o)=>{let{defaultColor:s}=o,l=uh(o,["defaultColor"]),{color:c=s,transform:u}=t,[d,p]=e,f=function(e,t,n,r){let a=(0,ih.Z)();if(rL(n)){let i=n.getCenter(),o=aD(e,i),s=aD(t,i),l=(s-o)*r+o;return a.moveTo(e[0],e[1]),aH(a,e,t,i,l),a.lineTo(t[0],t[1]),a}return rR(n)?(a.moveTo(e[0],e[1]),a.lineTo(e[0]+(t[0]-e[0])*r,e[1]),a.lineTo(e[0]+(t[0]-e[0])*r,t[1]),a.lineTo(t[0],t[1]),a):(a.moveTo(e[0],e[1]),a.lineTo(e[0],e[1]+(t[1]-e[1])*r),a.lineTo(t[0],e[1]+(t[1]-e[1])*r),a.lineTo(t[0],t[1]),a)}(d,p,a,n);return rd(i.createElement("path",{})).call(aU,l).style("d",f.toString()).style("stroke",c).style("transform",u).call(aU,r).node()}};ub.props={defaultMarker:"vhv",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let uy={link:ud,arc:uf,smooth:ug,vhv:ub},uE=e=>(t,n,r,a)=>{let{x:i,y:o,x1:s=i,y1:l=o}=r,c=lW(n,r,e),u=t.map(e=>[a.map(c([+i[e],+o[e]],e)),a.map(c([+s[e],+l[e]],e))]);return[t,u]};uE.props={defaultShape:"link",defaultLabelShape:"label",composite:!1,shape:uy,channels:[...lU({shapes:Object.keys(uy)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...lz(),{type:us},{type:ul}],postInference:[...lH()]};var uT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let uv=(e,t)=>{let{coordinate:n,document:r}=t;return(t,a,i)=>{let{color:o}=i,s=uT(i,["color"]),{color:l=o,src:c="",size:u=32,transform:d=""}=a,{width:p=u,height:f=u}=e,[[m,g]]=t,[h,b]=n.getSize();p="string"==typeof p?lY(p)*h:p,f="string"==typeof f?lY(f)*b:f;let y=m-Number(p)/2,E=g-Number(f)/2;return rd(r.createElement("image",{})).call(aU,s).style("x",y).style("y",E).style("src",c).style("stroke",l).style("transform",d).call(aU,e).style("width",p).style("height",f).node()}};uv.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let uS={image:uv},uA=e=>{let{cartesian:t}=e;return t?lV:(t,n,r,a)=>{let{x:i,y:o}=r,s=lW(n,r,e),l=Array.from(t,e=>{let t=[+i[e],+o[e]];return[a.map(s(t,e))]});return[t,l]}};uA.props={defaultShape:"image",defaultLabelShape:"label",composite:!1,shape:uS,channels:[...lU({shapes:Object.keys(uS)}),{name:"x",required:!0},{name:"y",required:!0},{name:"src",scale:"identity"},{name:"size"}],preInference:[...lz(),{type:cK},{type:cQ}],postInference:[...lH()]};var uO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let u_=(e,t)=>{let{coordinate:n,document:r}=t;return(t,a,i)=>{let{color:o}=i,s=uO(i,["color"]),{color:l=o,transform:c}=a,u=function(e,t){let n=(0,ih.Z)();if(rL(t)){let r=t.getCenter(),a=[...e,e[0]],i=a.map(e=>aD(e,r));return a.forEach((t,a)=>{if(0===a){n.moveTo(t[0],t[1]);return}let o=i[a],s=e[a-1],l=i[a-1];void 0!==l&&1e-10>Math.abs(o-l)?aH(n,s,t,r,o):n.lineTo(t[0],t[1])}),n.closePath(),n}return e.forEach((e,t)=>0===t?n.moveTo(e[0],e[1]):n.lineTo(e[0],e[1])),n.closePath(),n}(t,n);return rd(r.createElement("path",{})).call(aU,s).style("d",u.toString()).style("stroke",l).style("fill",l).style("transform",c).call(aU,e).node()}};u_.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var uk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let uI=(e,t)=>{let n=uk(e,[]),{coordinate:r,document:a}=t;return(e,t,i)=>{let{color:o}=i,s=uk(i,["color"]),{color:l=o,transform:c}=t,u=function(e,t){let[n,r,a,i]=e,o=(0,ih.Z)();if(rL(t)){let e=t.getCenter(),s=aD(e,n);return o.moveTo(n[0],n[1]),o.quadraticCurveTo(e[0],e[1],a[0],a[1]),aH(o,a,i,e,s),o.quadraticCurveTo(e[0],e[1],r[0],r[1]),aH(o,r,n,e,s),o.closePath(),o}return o.moveTo(n[0],n[1]),o.bezierCurveTo(n[0]/2+a[0]/2,n[1],n[0]/2+a[0]/2,a[1],a[0],a[1]),o.lineTo(i[0],i[1]),o.bezierCurveTo(i[0]/2+r[0]/2,i[1],i[0]/2+r[0]/2,r[1],r[0],r[1]),o.lineTo(n[0],n[1]),o.closePath(),o}(e,r);return rd(a.createElement("path",{})).call(aU,s).style("d",u.toString()).style("fill",l||o).style("stroke",l||o).style("transform",c).call(aU,n).node()}};uI.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let uC={polygon:u_,ribbon:uI},uN=()=>(e,t,n,r)=>{let a=Object.entries(n).filter(([e])=>e.startsWith("x")).map(([,e])=>e),i=Object.entries(n).filter(([e])=>e.startsWith("y")).map(([,e])=>e),o=e.map(e=>{let t=[];for(let n=0;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let uw=(e,t)=>{let{coordinate:n,document:r}=t;return(t,a,i)=>{let{color:o,transform:s}=a,{color:l,fill:c=l,stroke:u=l}=i,d=ux(i,["color","fill","stroke"]),p=function(e,t){let n=(0,ih.Z)();if(rL(t)){let r=t.getCenter(),[a,i]=r,o=aP(aL(e[0],r)),s=aP(aL(e[1],r)),l=aD(r,e[2]),c=aD(r,e[3]),u=aD(r,e[8]),d=aD(r,e[10]),p=aD(r,e[11]);n.moveTo(...e[0]),n.arc(a,i,l,o,s),n.arc(a,i,l,s,o,!0),n.moveTo(...e[2]),n.lineTo(...e[3]),n.moveTo(...e[4]),n.arc(a,i,c,o,s),n.lineTo(...e[6]),n.arc(a,i,d,s,o,!0),n.closePath(),n.moveTo(...e[8]),n.arc(a,i,u,o,s),n.arc(a,i,u,s,o,!0),n.moveTo(...e[10]),n.lineTo(...e[11]),n.moveTo(...e[12]),n.arc(a,i,p,o,s),n.arc(a,i,p,s,o,!0)}else n.moveTo(...e[0]),n.lineTo(...e[1]),n.moveTo(...e[2]),n.lineTo(...e[3]),n.moveTo(...e[4]),n.lineTo(...e[5]),n.lineTo(...e[6]),n.lineTo(...e[7]),n.closePath(),n.moveTo(...e[8]),n.lineTo(...e[9]),n.moveTo(...e[10]),n.lineTo(...e[11]),n.moveTo(...e[12]),n.lineTo(...e[13]);return n}(t,n);return rd(r.createElement("path",{})).call(aU,d).style("d",p.toString()).style("stroke",u).style("fill",o||c).style("transform",s).call(aU,e).node()}};uw.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var uR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let uL=(e,t)=>{let{coordinate:n,document:r}=t;return(t,a,i)=>{let{color:o,transform:s}=a,{color:l,fill:c=l,stroke:u=l}=i,d=uR(i,["color","fill","stroke"]),p=function(e,t,n=4){let r=(0,ih.Z)();if(!rL(t))return r.moveTo(...e[2]),r.lineTo(...e[3]),r.lineTo(e[3][0]-n,e[3][1]),r.lineTo(e[10][0]-n,e[10][1]),r.lineTo(e[10][0]+n,e[10][1]),r.lineTo(e[3][0]+n,e[3][1]),r.lineTo(...e[3]),r.closePath(),r.moveTo(...e[10]),r.lineTo(...e[11]),r.moveTo(e[3][0]+n/2,e[8][1]),r.arc(e[3][0],e[8][1],n/2,0,2*Math.PI),r.closePath(),r;let a=t.getCenter(),[i,o]=a,s=aD(a,e[3]),l=aD(a,e[8]),c=aD(a,e[10]),u=aP(aL(e[2],a)),d=Math.asin(n/l),p=u-d,f=u+d;r.moveTo(...e[2]),r.lineTo(...e[3]),r.moveTo(Math.cos(p)*s+i,Math.sin(p)*s+o),r.arc(i,o,s,p,f),r.lineTo(Math.cos(f)*c+i,Math.sin(f)*c+o),r.arc(i,o,c,f,p,!0),r.lineTo(Math.cos(p)*s+i,Math.sin(p)*s+o),r.closePath(),r.moveTo(...e[10]),r.lineTo(...e[11]);let m=(p+f)/2;return r.moveTo(Math.cos(m)*(l+n/2)+i,Math.sin(m)*(l+n/2)+o),r.arc(Math.cos(m)*l+i,Math.sin(m)*l+o,n/2,m,2*Math.PI+m),r.closePath(),r}(t,n,4);return rd(r.createElement("path",{})).call(aU,d).style("d",p.toString()).style("stroke",u).style("fill",o||c).style("transform",s).call(aU,e).node()}};uL.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let uD={box:uw,violin:uL},uP=()=>(e,t,n,r)=>{let{x:a,y:i,y1:o,y2:s,y3:l,y4:c,series:u}=n,d=t.x,p=t.series,f=Array.from(e,e=>{let t=d.getBandWidth(d.invert(+a[e])),n=p?p.getBandWidth(p.invert(+(null==u?void 0:u[e]))):1,f=t*n,m=(+(null==u?void 0:u[e])||0)*t,g=+a[e]+m+f/2,[h,b,y,E,T]=[+i[e],+o[e],+s[e],+l[e],+c[e]];return[[g-f/2,T],[g+f/2,T],[g,T],[g,E],[g-f/2,E],[g+f/2,E],[g+f/2,b],[g-f/2,b],[g-f/2,y],[g+f/2,y],[g,b],[g,h],[g-f/2,h],[g+f/2,h]].map(e=>r.map(e))});return[e,f]};uP.props={defaultShape:"box",defaultLabelShape:"label",composite:!1,shape:uD,channels:[...lU({shapes:Object.keys(uD)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"}],preInference:[...lz(),{type:l_}],postInference:[...lG()],interaction:{shareTooltip:!0}};let uM={vector:uu},uF=()=>(e,t,n,r)=>{let{x:a,y:i,size:o,rotate:s}=n,[l,c]=r.getSize(),u=e.map(e=>{let t=+s[e]/180*Math.PI,n=+o[e],u=n/l*Math.cos(t),d=-(n/c)*Math.sin(t);return[r.map([+a[e]-u/2,+i[e]-d/2]),r.map([+a[e]+u/2,+i[e]+d/2])]});return[e,u]};uF.props={defaultShape:"vector",defaultLabelShape:"label",composite:!1,shape:uM,channels:[...lU({shapes:Object.keys(uM)}),{name:"x",required:!0},{name:"y",required:!0},{name:"rotate",required:!0,scale:"identity"},{name:"size",required:!0}],preInference:[...lz()],postInference:[...lH()]};var uB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let uj=(e,t)=>{let{arrow:n,arrowSize:r=4}=e,a=uB(e,["arrow","arrowSize"]),{coordinate:i,document:o}=t;return(e,t,s)=>{let{color:l,lineWidth:c}=s,u=uB(s,["color","lineWidth"]),{color:d=l,size:p=c}=t,f=n?function(e,t,n){let r=e.createElement("path",{style:Object.assign({d:`M ${t},${t} L -${t},0 L ${t},-${t} L 0,0 Z`,transformOrigin:"center"},n)});return r}(o,r,Object.assign({fill:a.stroke||d,stroke:a.stroke||d},ri(a,"arrow"))):null,m=function(e,t){if(!rL(t))return(0,aK.Z)().x(e=>e[0]).y(e=>e[1])(e);let n=t.getCenter();return(0,iR.Z)()({startAngle:0,endAngle:2*Math.PI,outerRadius:aD(e[0],n),innerRadius:aD(e[1],n)})}(e,i),g=function(e,t){if(!rL(e))return t;let[n,r]=e.getCenter();return`translate(${n}, ${r}) ${t||""}`}(i,t.transform);return rd(o.createElement("path",{})).call(aU,u).style("d",m).style("stroke",d).style("lineWidth",p).style("transform",g).style("markerEnd",f).call(aU,a).node()}};uj.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let uU=()=>(e,t)=>{let{data:n}=t;return!Array.isArray(n)||n.some(lA)?[e,t]:[e,(0,n5.Z)({},t,{encode:{x:lb(n)}})]};uU.props={};let uH={line:uj},uG=e=>(t,n,r,a)=>{let{x:i}=r,o=lW(n,r,(0,n5.Z)({style:{bandOffset:0}},e)),s=Array.from(t,e=>{let t=[i[e],1],n=[i[e],0];return[t,n].map(t=>a.map(o(t,e)))});return[t,s]};uG.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:uH,channels:[...l$({shapes:Object.keys(uH)}),{name:"x",required:!0}],preInference:[...lz(),{type:uU}],postInference:[]};let u$=()=>(e,t)=>{let{data:n}=t;return!Array.isArray(n)||n.some(lA)?[e,t]:[e,(0,n5.Z)({},t,{encode:{y:lb(n)}})]};u$.props={};let uz={line:uj},uZ=e=>(t,n,r,a)=>{let{y:i}=r,o=lW(n,r,(0,n5.Z)({style:{bandOffset:0}},e)),s=Array.from(t,e=>{let t=[0,i[e]],n=[1,i[e]];return[t,n].map(t=>a.map(o(t,e)))});return[t,s]};uZ.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:uz,channels:[...l$({shapes:Object.keys(uz)}),{name:"y",required:!0}],preInference:[...lz(),{type:u$}],postInference:[]};var uW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function uY(e,t,n){return[["M",e,t],["L",e+2*n,t-n],["L",e+2*n,t+n],["Z"]]}let uV=(e,t)=>{let{offset:n=0,offset1:r=n,offset2:a=n,connectLength1:i,endMarker:o=!0}=e,s=uW(e,["offset","offset1","offset2","connectLength1","endMarker"]),{coordinate:l}=t;return(e,t,n)=>{let{color:c,connectLength1:u}=n,d=uW(n,["color","connectLength1"]),{color:p,transform:f}=t,m=function(e,t,n,r,a=0){let[[i,o],[s,l]]=t;if(rR(e)){let e=i+n,t=e+a;return[[e,o],[t,o],[t,l],[s+r,l]]}let c=o-n,u=c-a;return[[i,c],[i,u],[s,u],[s,l-r]]}(l,e,r,a,null!=i?i:u),g=ri(Object.assign(Object.assign({},s),n),"endMarker");return rd(new nO.y$).call(aU,d).style("d",(0,aK.Z)().x(e=>e[0]).y(e=>e[1])(m)).style("stroke",p||c).style("transform",f).style("markerEnd",o?new aq.J({className:"marker",style:Object.assign(Object.assign({},g),{symbol:uY})}):null).call(aU,s).node()}};uV.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let uq={connector:uV},uK=(...e)=>uE(...e);function uX(e,t,n,r){if(t)return()=>[0,1];let{[e]:a,[`${e}1`]:i}=n;return e=>{var t;let n=(null===(t=r.getBandWidth)||void 0===t?void 0:t.call(r,r.invert(+i[e])))||0;return[a[e],i[e]+n]}}function uQ(e={}){let{extendX:t=!1,extendY:n=!1}=e;return(e,r,a,i)=>{let o=uX("x",t,a,r.x),s=uX("y",n,a,r.y),l=Array.from(e,e=>{let[t,n]=o(e),[r,a]=s(e);return[[t,r],[n,r],[n,a],[t,a]].map(e=>i.map(e))});return[e,l]}}uK.props={defaultShape:"connector",defaultLabelShape:"label",composite:!1,shape:uq,channels:[...l$({shapes:Object.keys(uq)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...lz()],postInference:[]};let uJ={range:lk},u0=()=>uQ();u0.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:uJ,channels:[...l$({shapes:Object.keys(uJ)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...lz()],postInference:[]};let u1=()=>(e,t)=>{let{data:n}=t;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(lA))){let r=(e,t)=>Array.isArray(e[0])?e.map(e=>e[t]):[e[t]];return[e,(0,n5.Z)({},t,{encode:{x:lb(r(n,0)),x1:lb(r(n,1))}})]}return[e,t]};u1.props={};let u2={range:lk},u3=()=>uQ({extendY:!0});u3.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:u2,channels:[...l$({shapes:Object.keys(u2)}),{name:"x",required:!0}],preInference:[...lz(),{type:u1}],postInference:[]};let u4=()=>(e,t)=>{let{data:n}=t;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(lA))){let r=(e,t)=>Array.isArray(e[0])?e.map(e=>e[t]):[e[t]];return[e,(0,n5.Z)({},t,{encode:{y:lb(r(n,0)),y1:lb(r(n,1))}})]}return[e,t]};u4.props={};let u5={range:lk},u6=()=>uQ({extendX:!0});u6.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:u5,channels:[...l$({shapes:Object.keys(u5)}),{name:"y",required:!0}],preInference:[...lz(),{type:u4}],postInference:[]};var u9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let u8=(e,t)=>{let{arrow:n,colorAttribute:r}=e,a=u9(e,["arrow","colorAttribute"]),{coordinate:i,document:o}=t;return(e,t,n)=>{let{color:s,stroke:l}=n,c=u9(n,["color","stroke"]),{d:u,color:d=s}=t,[p,f]=i.getSize();return rd(o.createElement("path",{})).call(aU,c).style("d","function"==typeof u?u({width:p,height:f}):u).style(r,d).call(aU,a).node()}};u8.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let u7=(e,t)=>u8(Object.assign({colorAttribute:"fill"},e),t);u7.props={defaultMarker:"hvh",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let de=(e,t)=>u8(Object.assign({fill:"none",colorAttribute:"stroke"},e),t);de.props={defaultMarker:"hvh",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let dt={path:u7,hollow:de},dn=e=>(e,t,n,r)=>[e,e.map(()=>[[0,0]])];dn.props={defaultShape:"path",defaultLabelShape:"label",shape:dt,composite:!1,channels:[...lU({shapes:Object.keys(dt)}),{name:"d",scale:"identity"}],preInference:[...lz()],postInference:[]};var dr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let da=(e,t)=>{let{render:n}=e,r=dr(e,["render"]);return e=>{let[[a,i]]=e;return n(Object.assign(Object.assign({},r),{x:a,y:i}),t)}};da.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let di=()=>(e,t)=>{let{style:n={}}=t;return[e,(0,n5.Z)({},t,{style:Object.assign(Object.assign({},n),Object.fromEntries(Object.entries(n).filter(([,e])=>"function"==typeof e).map(([e,t])=>[e,()=>t])))})]};di.props={};let ds=e=>{let{cartesian:t}=e;return t?lV:(t,n,r,a)=>{let{x:i,y:o}=r,s=lW(n,r,e),l=Array.from(t,e=>{let t=[+i[e],+o[e]];return[a.map(s(t,e))]});return[t,l]}};ds.props={defaultShape:"shape",defaultLabelShape:"label",composite:!1,shape:{shape:da},channels:[{name:"x",required:!0},{name:"y",required:!0}],preInference:[...lz(),{type:cK},{type:cQ},{type:di}]};var dl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let dc=(e,t)=>{let{document:n}=t;return(t,r,a)=>{let{transform:i}=r,{color:o}=a,s=dl(a,["color"]),{color:l=o}=r,[c,...u]=t,d=(0,ih.Z)();return d.moveTo(...c),u.forEach(([e,t])=>{d.lineTo(e,t)}),d.closePath(),rd(n.createElement("path",{})).call(aU,s).style("d",d.toString()).style("stroke",l||o).style("fill",l||o).style("fillOpacity",.4).style("transform",i).call(aU,e).node()}};dc.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let du={density:dc},dd=()=>(e,t,n,r)=>{let{x:a,series:i}=n,o=Object.entries(n).filter(([e])=>e.startsWith("y")).map(([,e])=>e),s=Object.entries(n).filter(([e])=>e.startsWith("size")).map(([,e])=>e);if(void 0===a||void 0===o||void 0===s)throw Error("Missing encode for x or y or size channel.");let l=t.x,c=t.series,u=Array.from(e,t=>{let n=l.getBandWidth(l.invert(+a[t])),u=c?c.getBandWidth(c.invert(+(null==i?void 0:i[t]))):1,d=(+(null==i?void 0:i[t])||0)*n,p=+a[t]+d+n*u/2,f=[...o.map((n,r)=>[p+ +s[r][t]/e.length,+o[r][t]]),...o.map((n,r)=>[p-+s[r][t]/e.length,+o[r][t]]).reverse()];return f.map(e=>r.map(e))});return[e,u]};dd.props={defaultShape:"density",defaultLabelShape:"label",composite:!1,shape:du,channels:[...lU({shapes:Object.keys(du)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"size",required:!0},{name:"series",scale:"band"},{name:"size",required:!0,scale:"identity"}],preInference:[...lz(),{type:lO},{type:l_}],postInference:[...lG()],interaction:{shareTooltip:!0}};var dp=n(82631);function df(e,t,n){let r=e?e():document.createElement("canvas");return r.width=t,r.height=n,r}(0,dp.Z)(3);let dm=function(e,t=(...e)=>`${e[0]}`,n=16){let r=(0,dp.Z)(n);return(...n)=>{let a=t(...n),i=r.get(a);return r.has(a)?r.get(a):(i=e(...n),r.set(a,i),i)}}((e,t,n)=>{let r=df(n,2*e,2*e),a=r.getContext("2d");if(1===t)a.beginPath(),a.arc(e,e,e,0,2*Math.PI,!1),a.fillStyle="rgba(0,0,0,1)",a.fill();else{let n=a.createRadialGradient(e,e,e*t,e,e,e);n.addColorStop(0,"rgba(0,0,0,1)"),n.addColorStop(1,"rgba(0,0,0,0)"),a.fillStyle=n,a.fillRect(0,0,2*e,2*e)}return r},e=>`${e}`);var dg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let dh=(e,t)=>{let{gradient:n,opacity:r,maxOpacity:a,minOpacity:i,blur:o,useGradientOpacity:s}=e,l=dg(e,["gradient","opacity","maxOpacity","minOpacity","blur","useGradientOpacity"]),{coordinate:c,createCanvas:u,document:d}=t;return(e,t,p)=>{var f,m;let{transform:g}=t,[h,b]=c.getSize(),y=e.map(e=>({x:e[0],y:e[1],value:e[2],radius:e[3]})),E=(0,oq.Z)(e,e=>e[2]),T=(0,rA.Z)(e,e=>e[2]),v=h&&b?function(e,t,n,r,a,i,o){let s=Object.assign({blur:.85,minOpacity:0,opacity:.6,maxOpacity:1,gradient:[[.25,"rgb(0,0,255)"],[.55,"rgb(0,255,0)"],[.85,"yellow"],[1,"rgb(255,0,0)"]]},i);s.minOpacity*=255,s.opacity*=255,s.maxOpacity*=255;let l=df(o,e,t),c=l.getContext("2d"),u=function(e,t){let n=df(t,256,1),r=n.getContext("2d"),a=r.createLinearGradient(0,0,256,1);return("string"==typeof e?e.split(" ").map(e=>{let[t,n]=e.split(":");return[+t,n]}):e).forEach(([e,t])=>{a.addColorStop(e,t)}),r.fillStyle=a,r.fillRect(0,0,256,1),r.getImageData(0,0,256,1).data}(s.gradient,o);c.clearRect(0,0,e,t),function(e,t,n,r,a,i){let{blur:o}=a,s=r.length;for(;s--;){let{x:a,y:l,value:c,radius:u}=r[s],d=Math.min(c,n),p=a-u,f=l-u,m=dm(u,1-o,i),g=(d-t)/(n-t);e.globalAlpha=Math.max(g,.001),e.drawImage(m,p,f)}}(c,n,r,a,s,o);let d=function(e,t,n,r,a){let{minOpacity:i,opacity:o,maxOpacity:s,useGradientOpacity:l}=a,c=e.getImageData(0,0,t,n),u=c.data,d=u.length;for(let e=3;evoid 0===e,Object.keys(f).reduce((e,t)=>{let n=f[t];return m(n,t)||(e[t]=n),e},{})),u):{canvas:null};return rd(d.createElement("image",{})).call(aU,p).style("x",0).style("y",0).style("width",h).style("height",b).style("src",v.canvas).style("transform",g).call(aU,l).node()}};dh.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let db={heatmap:dh},dy=e=>(e,t,n,r)=>{let{x:a,y:i,size:o,color:s}=n,l=Array.from(e,e=>{let t=o?+o[e]:40;return[...r.map([+a[e],+i[e]]),s[e],t]});return[[0],[l]]};dy.props={defaultShape:"heatmap",defaultLabelShape:"label",composite:!1,shape:db,channels:[...lU({shapes:Object.keys(db)}),{name:"x",required:!0},{name:"y",required:!0},{name:"color",scale:"identity",required:!0},{name:"size"}],preInference:[...lz(),{type:l_},{type:cH}],postInference:[...lH()]};var dE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let dT=()=>({axis:!1,type:"text",encode:{x:"x",y:"y",text:"text",rotate:"rotate",fontSize:"size",shape:"tag"},scale:{x:{range:[0,1]},y:{range:[0,1]}},style:{fontFamily:e=>e.fontFamily}}),dv=(e,t)=>{var n,r,a,i;return n=void 0,r=void 0,a=void 0,i=function*(){let{width:n,height:r}=t,{data:a,encode:i={},scale:o,style:s={},layout:l={}}=e,c=dE(e,["data","encode","scale","style","layout"]),u=function(e,t){let{text:n="text",value:r="value"}=t;return e.map(e=>Object.assign(Object.assign({},e),{text:e[n],value:e[r]}))}(a,i);return(0,n5.Z)({},dT(),Object.assign(Object.assign({data:{value:u,transform:[Object.assign({type:"wordCloud",size:[n,r]},l)]},encode:i,scale:o,style:s},c),{axis:!1}))},new(a||(a=Promise))(function(e,t){function o(e){try{l(i.next(e))}catch(e){t(e)}}function s(e){try{l(i.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):((n=t.value)instanceof a?n:new a(function(e){e(n)})).then(o,s)}l((i=i.apply(n,r||[])).next())})};dv.props={};let dS=()=>["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"];dS.props={};let dA=()=>["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"];dA.props={};let dO=e=>new rG.b(e);dO.props={};var d_=n(8064);let dk=e=>new d_.r(e);dk.props={};var dI=n(88944);let dC=e=>new dI.t(e);dC.props={};class dN extends ar.X{getDefaultOptions(){return{domain:[0,1],range:[0,1],tickCount:5,unknown:void 0,tickMethod:ag}}map(e){return(0,ai.J)(e)?e:this.options.unknown}invert(e){return this.map(e)}clone(){return new dN(this.options)}getTicks(){let{domain:e,tickCount:t,tickMethod:n}=this.options,[r,a]=e;return(0,at.Z)(r)&&(0,at.Z)(a)?n(r,a,t):[]}}let dx=e=>new dN(e);dx.props={};class dw extends dI.t{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:d_.z,paddingInner:1,paddingOuter:0}}constructor(e){super(e)}getPaddingInner(){return 1}clone(){return new dw(this.options)}update(e){super.update(e)}getPaddingOuter(){return this.options.padding}}let dR=e=>new dw(e);dR.props={};var dL=n(67128),dD=n(19432),dP=n(63025);let dM=864e5,dF=7*dM,dB=30*dM,dj=365*dM;function dU(e,t,n,r){let a=(e,t)=>{let a=e=>r(e)%t==0,i=t;for(;i&&!a(e);)n(e,-1),i-=1;return e},i=(e,n)=>{n&&a(e,n),t(e)},o=(e,t)=>{let r=new Date(+e-1);return i(r,t),n(r,t),i(r),r};return{ceil:o,floor:(e,t)=>{let n=new Date(+e);return i(n,t),n},range:(e,t,r,a)=>{let s=[],l=Math.floor(r),c=a?o(e,r):o(e);for(;ce,(e,t=1)=>{e.setTime(+e+t)},e=>e.getTime()),dG=dU(1e3,e=>{e.setMilliseconds(0)},(e,t=1)=>{e.setTime(+e+1e3*t)},e=>e.getSeconds()),d$=dU(6e4,e=>{e.setSeconds(0,0)},(e,t=1)=>{e.setTime(+e+6e4*t)},e=>e.getMinutes()),dz=dU(36e5,e=>{e.setMinutes(0,0,0)},(e,t=1)=>{e.setTime(+e+36e5*t)},e=>e.getHours()),dZ=dU(dM,e=>{e.setHours(0,0,0,0)},(e,t=1)=>{e.setTime(+e+dM*t)},e=>e.getDate()-1),dW=dU(dB,e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t=1)=>{let n=e.getMonth();e.setMonth(n+t)},e=>e.getMonth()),dY=dU(dF,e=>{e.setDate(e.getDate()-e.getDay()%7),e.setHours(0,0,0,0)},(e,t=1)=>{e.setDate(e.getDate()+7*t)},e=>{let t=dW.floor(e),n=new Date(+e);return Math.floor((+n-+t)/dF)}),dV=dU(dj,e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t=1)=>{let n=e.getFullYear();e.setFullYear(n+t)},e=>e.getFullYear()),dq={millisecond:dH,second:dG,minute:d$,hour:dz,day:dZ,week:dY,month:dW,year:dV},dK=dU(1,e=>e,(e,t=1)=>{e.setTime(+e+t)},e=>e.getTime()),dX=dU(1e3,e=>{e.setUTCMilliseconds(0)},(e,t=1)=>{e.setTime(+e+1e3*t)},e=>e.getUTCSeconds()),dQ=dU(6e4,e=>{e.setUTCSeconds(0,0)},(e,t=1)=>{e.setTime(+e+6e4*t)},e=>e.getUTCMinutes()),dJ=dU(36e5,e=>{e.setUTCMinutes(0,0,0)},(e,t=1)=>{e.setTime(+e+36e5*t)},e=>e.getUTCHours()),d0=dU(dM,e=>{e.setUTCHours(0,0,0,0)},(e,t=1)=>{e.setTime(+e+dM*t)},e=>e.getUTCDate()-1),d1=dU(dB,e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t=1)=>{let n=e.getUTCMonth();e.setUTCMonth(n+t)},e=>e.getUTCMonth()),d2=dU(dF,e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7)%7),e.setUTCHours(0,0,0,0)},(e,t=1)=>{e.setTime(+e+dF*t)},e=>{let t=d1.floor(e),n=new Date(+e);return Math.floor((+n-+t)/dF)}),d3=dU(dj,e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t=1)=>{let n=e.getUTCFullYear();e.setUTCFullYear(n+t)},e=>e.getUTCFullYear()),d4={millisecond:dK,second:dX,minute:dQ,hour:dJ,day:d0,week:d2,month:d1,year:d3};var d5=n(72478);function d6(e,t,n,r,a){let i;let o=+e,s=+t,{tickIntervals:l,year:c,millisecond:u}=function(e){let{year:t,month:n,week:r,day:a,hour:i,minute:o,second:s,millisecond:l}=e?d4:dq;return{tickIntervals:[[s,1],[s,5],[s,15],[s,30],[o,1],[o,5],[o,15],[o,30],[i,1],[i,3],[i,6],[i,12],[a,1],[a,2],[r,1],[n,1],[n,3],[t,1]],year:t,millisecond:l}}(a),d=([e,t])=>e.duration*t,p=r?(s-o)/r:n||5,f=r||(s-o)/p,m=l.length,g=(0,ao.b)(l,f,0,m,d);if(g===m){let e=(0,d5.l)(o/c.duration,s/c.duration,p);i=[c,e]}else if(g){let e=f/d(l[g-1]){let i=e>t,o=i?t:e,s=i?e:t,[l,c]=d6(o,s,n,r,a),u=l.range(o,new Date(+s+1),c,!0);return i?u.reverse():u},d8=(e,t,n,r,a)=>{let i=e>t,o=i?t:e,s=i?e:t,[l,c]=d6(o,s,n,r,a),u=[l.floor(o,c),l.ceil(s,c)];return i?u.reverse():u};function d7(e){let t=e.getTimezoneOffset(),n=new Date(e);return n.setMinutes(n.getMinutes()+t,n.getSeconds(),n.getMilliseconds()),n}class pe extends dP.V{getDefaultOptions(){return{domain:[new Date(2e3,0,1),new Date(2e3,0,2)],range:[0,1],nice:!1,tickCount:5,tickInterval:void 0,unknown:void 0,clamp:!1,tickMethod:d9,interpolate:of.fv,mask:void 0,utc:!1}}chooseTransforms(){return[e=>+e,e=>new Date(e)]}chooseNice(){return d8}getTickMethodOptions(){let{domain:e,tickCount:t,tickInterval:n,utc:r}=this.options,a=e[0],i=e[e.length-1];return[a,i,t,n,r]}getFormatter(){let{mask:e,utc:t}=this.options,n=t?d4:dq,r=t?d7:dL.Z;return t=>(0,dD.WU)(r(t),e||function(e,t){let{second:n,minute:r,hour:a,day:i,week:o,month:s,year:l}=t;return n.floor(e)new pe(e);pt.props={};let pn=e=>t=>-e(-t),pr=(e,t)=>{let n=Math.log(e),r=e===Math.E?Math.log:10===e?Math.log10:2===e?Math.log2:e=>Math.log(e)/n;return t?pn(r):r},pa=(e,t)=>{let n=e===Math.E?Math.exp:t=>e**t;return t?pn(n):n},pi=(e,t,n,r=10)=>{let a=e<0,i=pa(r,a),o=pr(r,a),s=t=1;t-=1){let n=e*t;if(n>c)break;n>=l&&p.push(n)}}else for(;u<=d;u+=1){let e=i(u);for(let t=1;tc)break;n>=l&&p.push(n)}}2*p.length{let a=e<0,i=pr(r,a),o=pa(r,a),s=e>t,l=[o(Math.floor(i(s?t:e))),o(Math.ceil(i(s?e:t)))];return s?l.reverse():l};class ps extends dP.V{getDefaultOptions(){return{domain:[1,10],range:[0,1],base:10,interpolate:of.wp,tickMethod:pi,tickCount:5}}chooseNice(){return po}getTickMethodOptions(){let{domain:e,tickCount:t,base:n}=this.options,r=e[0],a=e[e.length-1];return[r,a,t,n]}chooseTransforms(){let{base:e,domain:t}=this.options,n=t[0]<0;return[pr(e,n),pa(e,n)]}clone(){return new ps(this.options)}}let pl=e=>new ps(e);pl.props={};let pc=e=>t=>t<0?-((-t)**e):t**e,pu=e=>t=>t<0?-((-t)**(1/e)):t**(1/e),pd=e=>e<0?-Math.sqrt(-e):Math.sqrt(e);class pp extends dP.V{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,exponent:2,interpolate:of.wp,tickMethod:an.Z,tickCount:5}}constructor(e){super(e)}chooseTransforms(){let{exponent:e}=this.options;if(1===e)return[dL.Z,dL.Z];let t=.5===e?pd:pc(e),n=pu(e);return[t,n]}clone(){return new pp(this.options)}}let pf=e=>new pp(e);pf.props={};class pm extends pp{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:of.wp,tickMethod:an.Z,tickCount:5,exponent:.5}}constructor(e){super(e)}update(e){super.update(e)}clone(){return new pm(this.options)}}let pg=e=>new pm(e);pg.props={};let ph=e=>new as(e);ph.props={};let pb=e=>new ay(e);pb.props={};let py=e=>new ab(e);py.props={};var pE=n(99871),pT=n(34199);let pv=e=>t=>{let n=e(t);return(0,at.Z)(n)?Math.round(n):n},pS=K=class extends rG.b{getDefaultOptions(){return{domain:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:dL.Z,tickMethod:an.Z,tickCount:5}}constructor(e){super(e)}clone(){return new K(this.options)}};pS=K=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}([(a=e=>{let[t,n]=e,r=(0,pE.q)((0,of.fv)(0,1),(0,pT.I)(t,n));return r},e=>{e.prototype.rescale=function(){this.initRange(),this.nice();let[e]=this.chooseTransforms();this.composeOutput(e,this.chooseClamp(e))},e.prototype.initRange=function(){let{interpolator:e}=this.options;this.options.range=[e(0),e(1)]},e.prototype.composeOutput=function(e,t){let{domain:n,interpolator:r,round:i}=this.getOptions(),o=a(n.map(e)),s=i?pv(r):r;this.output=(0,pE.q)(s,o,t,e)},e.prototype.invert=void 0})],pS);let pA=e=>new pS(e);pA.props={};let pO=e=>new aa(e);function p_({colorDefault:e,colorBlack:t,colorWhite:n,colorStroke:r,colorBackground:a,padding1:i,padding2:o,padding3:s,alpha90:l,alpha65:c,alpha45:u,alpha25:d,alpha10:p,category10:f,category20:m,sizeDefault:g=1,padding:h="auto",margin:b=16}){return{padding:h,margin:b,size:g,color:e,category10:f,category20:m,enter:{duration:300,fill:"both",delay:0},update:{duration:300,fill:"both",delay:0},exit:{duration:300,fill:"both",delay:0},view:{viewFill:a,plotFill:"transparent",mainFill:"transparent",contentFill:"transparent"},line:{line:{fill:"",strokeOpacity:1,lineWidth:1,lineCap:"round"}},point:{point:{r:3,fillOpacity:.95,lineWidth:0},hollow:{r:3,strokeOpacity:.95,lineWidth:1},plus:{r:3,strokeOpacity:.95,lineWidth:3},diamond:{r:3,strokeOpacity:.95,lineWidth:1}},interval:{rect:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},area:{area:{fillOpacity:.85,lineWidth:0}},polygon:{polygon:{fillOpacity:.95}},cell:{cell:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},rect:{rect:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},link:{link:{fill:"",strokeOpacity:1}},vector:{vector:{fillOpacity:1}},box:{box:{fillOpacity:.95,stroke:t,lineWidth:1}},text:{text:{fill:"#1D2129",fontSize:12,lineWidth:0,connectorStroke:r,connectorStrokeOpacity:.45,connectorLineWidth:1,backgroundFill:r,backgroundFillOpacity:.15,backgroundPadding:[2,4],startMarkerSymbol:"circle",startMarkerSize:4,endMarkerSymbol:"circle",endMarkerSize:4},badge:{fill:"#1D2129",fillOpacity:.65,lineWidth:0,fontSize:10,textAlign:"center",textBaseline:"middle",markerFill:r,markerFillOpacity:.25,markerStrokeOpacity:0}},lineX:{line:{stroke:r,strokeOpacity:.45,lineWidth:1}},lineY:{line:{stroke:r,strokeOpacity:.45,lineWidth:1}},rangeX:{range:{fill:r,fillOpacity:.15,lineWidth:0}},rangeY:{range:{fill:r,fillOpacity:.15,lineWidth:0}},connector:{connector:{stroke:r,strokeOpacity:.45,lineWidth:1,connectLength1:12,endMarker:!0,endMarkerSize:6,endMarkerFill:r,endMarkerFillOpacity:.95}},axis:{arrow:!1,gridLineDash:[3,4],gridLineWidth:.5,gridStroke:t,gridStrokeOpacity:p,labelAlign:"horizontal",labelFill:t,labelOpacity:u,labelFontSize:12,labelFontWeight:"normal",labelSpacing:i,line:!1,lineLineWidth:.5,lineStroke:t,lineStrokeOpacity:u,tickLength:4,tickLineWidth:1,tickStroke:t,tickOpacity:u,titleFill:t,titleOpacity:l,titleFontSize:12,titleFontWeight:"normal",titleSpacing:12,titleTransformOrigin:"center",lineArrowOffset:6,lineArrowSize:6},axisTop:{gridDirection:"positive",labelDirection:"negative",tickDirection:"negative",titlePosition:"top",titleSpacing:12,labelSpacing:4,titleTextBaseline:"middle"},axisBottom:{gridDirection:"negative",labelDirection:"positive",tickDirection:"positive",titlePosition:"bottom",titleSpacing:12,labelSpacing:4,titleTextBaseline:"bottom",titleTransform:"translate(0, 8)"},axisLeft:{gridDirection:"positive",labelDirection:"negative",labelSpacing:4,tickDirection:"negative",titlePosition:"left",titleSpacing:12,titleTextBaseline:"middle",titleDirection:"vertical",titleTransform:"rotate(-90) translate(0, -8)",titleTransformOrigin:"center"},axisRight:{gridDirection:"negative",labelDirection:"positive",labelSpacing:4,tickDirection:"positive",titlePosition:"right",titleSpacing:12,titleTextBaseline:"top",titleDirection:"vertical",titleTransformOrigin:"center"},axisLinear:{girdClosed:!0,gridConnect:"arc",gridDirection:"negative",gridType:"surround",titlePosition:"top",titleSpacing:0},axisArc:{title:!1,titlePosition:"inner",line:!1,tick:!0,labelSpacing:4},axisRadar:{girdClosed:!0,gridStrokeOpacity:.3,gridType:"surround",label:!1,tick:!1,titlePosition:"start"},legendCategory:{backgroundFill:"transparent",itemBackgroundFill:"transparent",itemLabelFill:t,itemLabelFillOpacity:l,itemLabelFontSize:12,itemLabelFontWeight:"normal",itemMarkerFillOpacity:1,itemMarkerSize:8,itemSpacing:[i,i],itemValueFill:t,itemValueFillOpacity:.65,itemValueFontSize:12,itemValueFontWeight:"normal",navButtonFill:t,navButtonFillOpacity:.65,navPageNumFill:t,navPageNumFillOpacity:.45,navPageNumFontSize:12,padding:8,title:!1,titleFill:t,titleFillOpacity:.65,titleFontSize:12,titleFontWeight:"normal",titleSpacing:4,tickStroke:t,tickStrokeOpacity:.25,rowPadding:i,colPadding:o,maxRows:3,maxCols:3},legendContinuous:{handleHeight:12,handleLabelFill:t,handleLabelFillOpacity:u,handleLabelFontSize:12,handleLabelFontWeight:"normal",handleMarkerFill:t,handleMarkerFillOpacity:.6,handleMarkerLineWidth:1,handleMarkerStroke:t,handleMarkerStrokeOpacity:.25,handleWidth:10,labelFill:t,labelFillOpacity:u,labelFontSize:12,labelFontWeight:"normal",labelSpacing:3,tick:!0,tickLength:12,ribbonSize:12,ribbonFill:"#aaa",handle:!0,handleLabel:!1,handleShape:"slider",handleIconSize:12/1.8,indicator:!1,titleFontSize:12,titleSpacing:4,titleFontWeight:"normal",titleFillOpacity:l,tickStroke:t,tickStrokeOpacity:u},label:{fill:t,fillOpacity:.65,fontSize:12,fontWeight:"normal",stroke:void 0,offset:12,connectorStroke:t,connectorStrokeOpacity:.45,connectorLineWidth:1,connectorLength:12,connectorLength2:8,connectorDistance:4},innerLabel:{fill:n,fontSize:12,fillOpacity:.85,fontWeight:"normal",stroke:void 0,offset:0},htmlLabel:{fontSize:12,opacity:.65,color:t,fontWeight:"normal"},slider:{trackSize:16,trackFill:r,trackFillOpacity:1,selectionFill:e,selectionFillOpacity:.15,handleIconSize:10,handleIconFill:"#f7f7f7",handleIconFillOpacity:1,handleIconStroke:t,handleIconStrokeOpacity:.25,handleIconLineWidth:1,handleIconRadius:2,handleLabelFill:t,handleLabelFillOpacity:.45,handleLabelFontSize:12,handleLabelFontWeight:"normal"},scrollbar:{padding:[0,0,0,0],trackSize:6,isRound:!0,slidable:!0,scrollable:!0,trackFill:"#e5e5e5",trackFillOpacity:0,thumbFill:"#000",thumbFillOpacity:.15,thumbHighlightedFillOpacity:.2},title:{spacing:8,titleFill:t,titleFillOpacity:l,titleFontSize:16,titleFontWeight:"bold",titleTextBaseline:"top",subtitleFill:t,subtitleFillOpacity:c,subtitleFontSize:12,subtitleFontWeight:"normal",subtitleTextBaseline:"top"},tooltip:{css:{".g2-tooltip":{"font-family":"sans-serif"}}}}}pO.props={};let pk=p_({colorBlack:"#1D2129",colorWhite:"#ffffff",colorStroke:"#416180",colorDefault:"#1783FF",colorBackground:"transparent",category10:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F"],category20:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#AABA01","#BC7CFC","#237CBC","#2DE379","#CE8032","#FF7AF4","#545FD3","#AFE410","#D8C608","#FFA1E0"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.1}),pI=e=>(0,n5.Z)({},pk,e);pI.props={};let pC=e=>(0,n5.Z)({},pI(),{category10:"category10",category20:"category20"},e);pC.props={};let pN=p_({colorBlack:"#fff",colorWhite:"#000",colorStroke:"#416180",colorDefault:"#1783FF",colorBackground:"transparent",category10:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F"],category20:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#AABA01","#BC7CFC","#237CBC","#2DE379","#CE8032","#FF7AF4","#545FD3","#AFE410","#D8C608","#FFA1E0"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.25}),px=e=>(0,n5.Z)({},pN,{tooltip:{crosshairsStroke:"#fff",crosshairsLineWidth:1,crosshairsStrokeOpacity:.25,css:{".g2-tooltip":{background:"#1f1f1f",opacity:.95},".g2-tooltip-title":{color:"#A6A6A6"},".g2-tooltip-list-item-name-label":{color:"#A6A6A6"},".g2-tooltip-list-item-value":{color:"#A6A6A6"}}}},e),pw=e=>Object.assign({},px(),{category10:"category10",category20:"category20"},e);pw.props={};let pR=p_({colorBlack:"#000",colorWhite:"#fff",colorStroke:"#888",colorDefault:"#4e79a7",colorBackground:"transparent",category10:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"],category20:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.1}),pL=e=>(0,n5.Z)({},pR,{text:{text:{fontSize:10}},axis:{gridLineDash:[0,0],gridLineWidth:1,gridStroke:"#ddd",gridStrokeOpacity:1,labelOpacity:1,labelStrokeOpacity:1,labelFontSize:10,line:!0,lineLineWidth:1,lineStroke:"#888",lineStrokeOpacity:1,tickLength:5,tickStrokeOpacity:1,titleOpacity:1,titleStrokeOpacity:1,titleFillOpacity:1,titleFontSize:11,titleFontWeight:"bold"},axisLeft:{gridFilter:(e,t)=>0!==t},axisRight:{gridFilter:(e,t)=>0!==t},legendCategory:{itemLabelFillOpacity:1,itemLabelFontSize:10,itemValueFillOpacity:1,itemValueFontSize:10,titleFillOpacity:1,titleFontSize:11,titleFontWeight:"bold"},legendContinuous:{handleLabelFontSize:10,labelFillOpacity:.45,labelFontSize:10},label:{fontSize:10},innerLabel:{fontSize:10},htmlLabel:{fontSize:10},slider:{handleLabelFontSize:10,trackFillOpacity:.05}},e);pL.props={};let pD=e=>(...t)=>{let n=r6(Object.assign({},{crossPadding:50},e))(...t);return r2(n,e),n};pD.props=Object.assign(Object.assign({},r6.props),{defaultPosition:"bottom"});let pP=e=>(...t)=>{let n=r6(Object.assign({},{crossPadding:10},e))(...t);return r2(n,e),n};pP.props=Object.assign(Object.assign({},r6.props),{defaultPosition:"left"});var pM=n(45130);function pF(e){if((0,ac.Z)(e))return e[e.length-1]}var pB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let pj=e=>{let{labelFormatter:t,layout:n,order:r,orientation:a,position:i,size:o,title:s,cols:l,itemMarker:c}=e,u=pB(e,["labelFormatter","layout","order","orientation","position","size","title","cols","itemMarker"]),{gridRow:d}=u;return t=>{let{value:r,theme:a}=t,{bbox:o}=r,{width:c,height:p}=function(e,t,n){let{position:r}=t;if("center"===r){let{bbox:t}=e,{width:n,height:r}=t;return{width:n,height:r}}let{width:a,height:i}=rJ(e,t,n);return{width:a,height:i}}(r,e,pj),f=rq(i,n),m=Object.assign(Object.assign(Object.assign(Object.assign({orientation:["right","left","center"].includes(i)?"vertical":"horizontal",width:c,height:p,layout:void 0!==l?"grid":"flex"},void 0!==l&&{gridCol:l}),void 0!==d&&{gridRow:d}),{titleText:rV(s)}),function(e,t){let{labelFormatter:n=e=>`${e}`}=e,{scales:r,theme:a}=t,i=a.legendCategory.itemMarkerSize,o=function(e,t){let n=rQ(e,"size");return n instanceof dN?2*n.map(NaN):t}(r,i),s={itemMarker:function(e,t){let{scales:n,library:r,markState:a}=t,[i,o]=function(e,t){let n=rQ(e,"shape"),r=rQ(e,"color"),a=n?n.clone():null,i=[];for(let[e,n]of t){let t=e.type,o=(null==r?void 0:r.getOptions().domain.length)>0?null==r?void 0:r.getOptions().domain:n.data,s=o.map((t,r)=>{var i;return a?a.map(t||"point"):(null===(i=null==e?void 0:e.style)||void 0===i?void 0:i.shape)||n.defaultShape||"point"});"string"==typeof t&&i.push([t,s])}if(0===i.length)return["point",["point"]];if(1===i.length||!n)return i[0];let{range:o}=n.getOptions();return i.map(([e,t])=>{let n=0;for(let e=0;et[0]-e[0])[0][1]}(n,a),{itemMarker:s,itemMarkerSize:l}=e,c=(e,t)=>{var n,a,o;let s=(null===(o=null===(a=null===(n=r[`mark.${i}`])||void 0===n?void 0:n.props)||void 0===a?void 0:a.shape[e])||void 0===o?void 0:o.props.defaultMarker)||pF(e.split(".")),c="function"==typeof l?l(t):l;return()=>(function(e,t){var{d:n,fill:r,lineWidth:a,path:i,stroke:o,color:s}=t,l=n_(t,["d","fill","lineWidth","path","stroke","color"]);let c=nJ.get(e)||nJ.get("point");return(...e)=>{let t=new nO.y$({style:Object.assign(Object.assign({},l),{d:c(...e),stroke:c.style.includes("stroke")?s||o:"",fill:c.style.includes("fill")?s||r:"",lineWidth:c.style.includes("lineWidth")?a||a||2:0})});return t}})(s,{color:t.color})(0,0,c)},u=e=>`${o[e]}`,d=rQ(n,"shape");return d&&!s?(e,t)=>c(u(t),e):"function"==typeof s?(e,t)=>{let n=s(e.id,t);return"string"==typeof n?c(n,e):n}:(e,t)=>c(s||u(t),e)}(Object.assign(Object.assign({},e),{itemMarkerSize:o}),t),itemMarkerSize:o,itemMarkerOpacity:function(e){let t=rQ(e,"opacity");if(t){let{range:e}=t.getOptions();return(t,n)=>e[n]}}(r)},l="string"==typeof n?(0,rh.WU)(n):n,c=rQ(r,"color"),u=r.find(e=>e.getOptions().domain.length>0).getOptions().domain,d=c?e=>c.map(e):()=>t.theme.color;return Object.assign(Object.assign({},s),{data:u.map(e=>({id:e,label:l(e),color:d(e)}))})}(e,t)),{legendCategory:g={}}=a,h=r0(Object.assign({},g,m,u)),b=new rX({style:Object.assign(Object.assign({x:o.x,y:o.y,width:o.width,height:o.height},f),{subOptions:h})});return b.appendChild(new pM.W({className:"legend-category",style:h})),b}};pj.props={defaultPosition:"top",defaultOrder:1,defaultSize:40,defaultCrossPadding:[12,12],defaultPadding:[12,12]};let pU=e=>()=>new nO.ZA;pU.props={};var pH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function pG(e,t,n,r){switch(r){case"center":return{x:e+n/2,y:t,textAlign:"middle"};case"right":return{x:e+n,y:t,textAlign:"right"};default:return{x:e,y:t,textAlign:"left"}}}let p$=(i={render(e,t){let{width:n,title:r,subtitle:a,spacing:i=2,align:o="left",x:s,y:l}=e,c=pH(e,["width","title","subtitle","spacing","align","x","y"]);t.style.transform=`translate(${s}, ${l})`;let u=ri(c,"title"),d=ri(c,"subtitle"),p=rY(t,".title","text").attr("className","title").call(aU,Object.assign(Object.assign(Object.assign({},pG(0,0,n,o)),{fontSize:14,textBaseline:"top",text:r}),u)).node(),f=p.getLocalBounds();rY(t,".sub-title","text").attr("className","sub-title").call(e=>{if(!a)return e.node().remove();e.node().attr(Object.assign(Object.assign(Object.assign({},pG(0,f.max[1]+i,n,o)),{fontSize:12,textBaseline:"top",text:a}),d))})}},class extends nO.b_{constructor(e){super(e),this.descriptor=i}connectedCallback(){var e,t;null===(t=(e=this.descriptor).render)||void 0===t||t.call(e,this.attributes,this)}update(e={}){var t,n;this.attr((0,n5.Z)({},this.attributes,e)),null===(n=(t=this.descriptor).render)||void 0===n||n.call(t,this.attributes,this)}}),pz=e=>({value:t,theme:n})=>{let{x:r,y:a,width:i,height:o}=t.bbox;return new p$({style:(0,n5.Z)({},n.title,Object.assign({x:r,y:a,width:i,height:o},e))})};pz.props={defaultPosition:"top",defaultOrder:2,defaultSize:36,defaultCrossPadding:[20,20],defaultPadding:[12,12]};var pZ=n(6394),pW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let pY=e=>{let{orientation:t,labelFormatter:n,size:r,style:a={},position:i}=e,o=pW(e,["orientation","labelFormatter","size","style","position"]);return r=>{var s;let{scales:[l],value:c,theme:u,coordinate:d}=r,{bbox:p}=c,{width:f,height:m}=p,{slider:g={}}=u,h=(null===(s=l.getFormatter)||void 0===s?void 0:s.call(l))||(e=>e+""),b="string"==typeof n?(0,rh.WU)(n):n,y="horizontal"===t,E=rR(d)&&y,{trackSize:T=g.trackSize}=a,[v,S]=function(e,t,n){let{x:r,y:a,width:i,height:o}=e;return"left"===t?[r+i-n,a]:"right"===t||"bottom"===t?[r,a]:"top"===t?[r,a+o-n]:void 0}(p,i,T);return new pZ.i({className:"slider",style:Object.assign({},g,Object.assign(Object.assign({x:v,y:S,trackLength:y?f:m,orientation:t,formatter:e=>{let t=iC(l,E?1-e:e,!0);return(b||h)(t)},sparklineData:function(e,t){let{markState:n}=t;return(0,rm.Z)(e.sparklineData)?e.sparklineData:function(e,t){let[n]=Array.from(e.entries()).filter(([e])=>"line"===e.type||"area"===e.type).filter(([e])=>e.slider).map(([e])=>{let{encode:n,slider:r}=e;if(null==r?void 0:r.x)return Object.fromEntries(t.map(e=>{let t=n[e];return[e,t?t.value:void 0]}))});if(!(null==n?void 0:n.series))return null==n?void 0:n.y;let r=n.series.reduce((e,t,r)=>(e[t]=e[t]||[],e[t].push(n.y[r]),e),{});return Object.values(r)}(n,["y","series"])}(e,r)},a),o))})}};pY.props={defaultPosition:"bottom",defaultSize:24,defaultOrder:1,defaultCrossPadding:[12,12],defaultPadding:[12,12]};let pV=e=>pY(Object.assign(Object.assign({},e),{orientation:"horizontal"}));pV.props=Object.assign(Object.assign({},pY.props),{defaultPosition:"bottom"});let pq=e=>pY(Object.assign(Object.assign({},e),{orientation:"vertical"}));pq.props=Object.assign(Object.assign({},pY.props),{defaultPosition:"left"});var pK=n(53020),pX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let pQ=e=>{let{orientation:t,labelFormatter:n,style:r}=e,a=pX(e,["orientation","labelFormatter","style"]);return({scales:[e],value:n,theme:i})=>{let{bbox:o}=n,{x:s,y:l,width:c,height:u}=o,{scrollbar:d={}}=i,{ratio:p,range:f}=e.getOptions(),m="horizontal"===t?c:u,[g,h]=f;return new pK.L({className:"g2-scrollbar",style:Object.assign({},d,Object.assign(Object.assign(Object.assign(Object.assign({},r),{x:s,y:l,trackLength:m,value:h>g?0:1}),a),{orientation:t,contentLength:m/p,viewportLength:m}))})}};pQ.props={defaultPosition:"bottom",defaultSize:24,defaultOrder:1,defaultCrossPadding:[12,12],defaultPadding:[12,12]};let pJ=e=>pQ(Object.assign(Object.assign({},e),{orientation:"horizontal"}));pJ.props=Object.assign(Object.assign({},pQ.props),{defaultPosition:"bottom"});let p0=e=>pQ(Object.assign(Object.assign({},e),{orientation:"vertical"}));p0.props=Object.assign(Object.assign({},pQ.props),{defaultPosition:"left"});let p1=(e,t)=>{let{coordinate:n}=t;return(t,r,a)=>{let[i]=t,{transform:o="",fillOpacity:s=1,strokeOpacity:l=1,opacity:c=1}=i.style,[u,d]=rR(n)?["left bottom","scale(1, 0.0001)"]:["left top","scale(0.0001, 1)"],p=[{transform:`${o} ${d}`.trimStart(),transformOrigin:u,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${o} ${d}`.trimStart(),transformOrigin:u,fillOpacity:s,strokeOpacity:l,opacity:c,offset:.01},{transform:`${o} scale(1, 1)`.trimStart(),transformOrigin:u,fillOpacity:s,strokeOpacity:l,opacity:c}],f=i.animate(p,Object.assign(Object.assign({},a),e));return f}},p2=(e,t)=>{let{coordinate:n}=t;return nO.ux.registerProperty({name:"scaleInYRadius",inherits:!1,initialValue:"",interpolable:!0,syntax:nO.h0.NUMBER}),(t,r,a)=>{let[i]=t;return rL(n)?(t=>{let{__data__:r,style:i}=t,{radius:o=0,inset:s=0,fillOpacity:l=1,strokeOpacity:c=1,opacity:u=1}=i,{points:d,y:p,y1:f}=r,m=az(n,d,[p,f]),{innerRadius:g,outerRadius:h}=m,b=(0,iR.Z)().cornerRadius(o).padAngle(s*Math.PI/180),y=new nO.y$({}),E=e=>{y.attr({d:b(e)});let t=(0,nO.YR)(y);return t},T=t.animate([{scaleInYRadius:g+1e-4,fillOpacity:0,strokeOpacity:0,opacity:0},{scaleInYRadius:g+1e-4,fillOpacity:l,strokeOpacity:c,opacity:u,offset:.01},{scaleInYRadius:h,fillOpacity:l,strokeOpacity:c,opacity:u}],Object.assign(Object.assign({},a),e));return T.onframe=function(){t.style.d=E(Object.assign(Object.assign({},m),{outerRadius:Number(t.style.scaleInYRadius)}))},T.onfinish=function(){t.style.d=E(Object.assign(Object.assign({},m),{outerRadius:h}))},T})(i):(t=>{let{style:r}=t,{transform:i="",fillOpacity:o=1,strokeOpacity:s=1,opacity:l=1}=r,[c,u]=rR(n)?["left top","scale(0.0001, 1)"]:["left bottom","scale(1, 0.0001)"],d=[{transform:`${i} ${u}`.trimStart(),transformOrigin:c,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${i} ${u}`.trimStart(),transformOrigin:c,fillOpacity:o,strokeOpacity:s,opacity:l,offset:.01},{transform:`${i} scale(1, 1)`.trimStart(),transformOrigin:c,fillOpacity:o,strokeOpacity:s,opacity:l}],p=t.animate(d,Object.assign(Object.assign({},a),e));return p})(i)}},p3=(e,t)=>{nO.ux.registerProperty({name:"waveInArcAngle",inherits:!1,initialValue:"",interpolable:!0,syntax:nO.h0.NUMBER});let{coordinate:n}=t;return(r,a,i)=>{let[o]=r;if(!rL(n))return p1(e,t)(r,a,i);let{__data__:s,style:l}=o,{radius:c=0,inset:u=0,fillOpacity:d=1,strokeOpacity:p=1,opacity:f=1}=l,{points:m,y:g,y1:h}=s,b=(0,iR.Z)().cornerRadius(c).padAngle(u*Math.PI/180),y=az(n,m,[g,h]),{startAngle:E,endAngle:T}=y,v=o.animate([{waveInArcAngle:E+1e-4,fillOpacity:0,strokeOpacity:0,opacity:0},{waveInArcAngle:E+1e-4,fillOpacity:d,strokeOpacity:p,opacity:f,offset:.01},{waveInArcAngle:T,fillOpacity:d,strokeOpacity:p,opacity:f}],Object.assign(Object.assign({},i),e));return v.onframe=function(){o.style.d=b(Object.assign(Object.assign({},y),{endAngle:Number(o.style.waveInArcAngle)}))},v.onfinish=function(){o.style.d=b(Object.assign(Object.assign({},y),{endAngle:T}))},v}};p3.props={};let p4=e=>(t,n,r)=>{let[a]=t,{fillOpacity:i=1,strokeOpacity:o=1,opacity:s=1}=a.style,l=[{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:i,strokeOpacity:o,opacity:s}];return a.animate(l,Object.assign(Object.assign({},r),e))};p4.props={};let p5=e=>(t,n,r)=>{let[a]=t,{fillOpacity:i=1,strokeOpacity:o=1,opacity:s=1}=a.style,l=[{fillOpacity:i,strokeOpacity:o,opacity:s},{fillOpacity:0,strokeOpacity:0,opacity:0}];return a.animate(l,Object.assign(Object.assign({},r),e))};p5.props={};let p6=e=>(t,n,r)=>{var a;let[i]=t,o=(null===(a=i.getTotalLength)||void 0===a?void 0:a.call(i))||0,s=[{lineDash:[0,o]},{lineDash:[o,0]}];return i.animate(s,Object.assign(Object.assign({},r),e))};p6.props={};let p9={opacity:1,strokeOpacity:1,fillOpacity:1,lineWidth:0,x:0,y:0,cx:0,cy:0,r:0,rx:0,ry:0,width:0,height:0},p8={[nO.bn.CIRCLE]:["cx","cy","r"],[nO.bn.ELLIPSE]:["cx","cy","rx","ry"],[nO.bn.RECT]:["x","y","width","height"],[nO.bn.IMAGE]:["x","y","width","height"],[nO.bn.LINE]:["x1","y1","x2","y2"],[nO.bn.POLYLINE]:["points"],[nO.bn.POLYGON]:["points"]};function p7(e,t,n=!1){let r={};for(let a of t){let t=e.style[a];t?r[a]=t:n&&(r[a]=p9[a])}return r}let fe=["fill","stroke","fillOpacity","strokeOpacity","opacity","lineWidth"];function ft(e){let{min:t,max:n}=e.getLocalBounds(),[r,a]=t,[i,o]=n;return[r,a,i-r,o-a]}function fn(e,t){let[n,r,a,i]=ft(e),o=Math.ceil(Math.sqrt(t/(i/a))),s=[],l=i/Math.ceil(t/o),c=0,u=t;for(;u>0;){let e=Math.min(u,o),t=a/e;for(let a=0;a{let e=c.style.d;rr(c,n),c.style.d=e,c.style.transform="none"},c.style.transform="none",e}return null}let fs=e=>(t,n,r)=>{let a=function(e="pack"){return"function"==typeof e?e:fn}(e.split),i=Object.assign(Object.assign({},r),e),{length:o}=t,{length:s}=n;if(1===o&&1===s||o>1&&s>1){let[e]=t,[r]=n;return fo(e,e,r,i)}if(1===o&&s>1){let[e]=t;return function(e,t,n,r){e.style.visibility="hidden";let a=r(e,t.length);return t.map((t,r)=>{let i=new nO.y$({style:Object.assign({d:a[r]},p7(e,fe))});return fo(t,i,t,n)})}(e,n,i,a)}if(o>1&&1===s){let[e]=n;return function(e,t,n,r){let a=r(t,e.length),{fillOpacity:i=1,strokeOpacity:o=1,opacity:s=1}=t.style,l=t.animate([{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:0,strokeOpacity:0,opacity:0,offset:.99},{fillOpacity:i,strokeOpacity:o,opacity:s}],n),c=e.map((e,r)=>{let i=new nO.y$({style:{d:a[r],fill:t.style.fill}});return fo(e,e,i,n)});return[...c,l]}(t,e,i,a)}return null};fs.props={};let fl=(e,t)=>(n,r,a)=>{let[i]=n,{min:[o,s],halfExtents:l}=i.getLocalBounds(),c=2*l[0],u=2*l[1],d=new nO.y$({style:{d:`M${o},${s}L${o+c},${s}L${o+c},${s+u}L${o},${s+u}Z`}});i.appendChild(d),i.style.clipPath=d;let p=p1(e,t)([d],r,a);return p};fl.props={};let fc=(e,t)=>(n,r,a)=>{let[i]=n,{min:[o,s],halfExtents:l}=i.getLocalBounds(),c=2*l[0],u=2*l[1],d=new nO.y$({style:{d:`M${o},${s}L${o+c},${s}L${o+c},${s+u}L${o},${s+u}Z`}});i.appendChild(d),i.style.clipPath=d;let p=p2(e,t)([d],r,a);return p};fc.props={};var fu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function fd(e){var{delay:t,createGroup:n,background:r=!1,link:a=!1}=e,i=fu(e,["delay","createGroup","background","link"]);return(e,o,s)=>{let{container:l,view:c,options:u}=e,{scale:d,coordinate:p}=c,f=iz(l);return function(e,{elements:t,datum:n,groupKey:r=e=>e,link:a=!1,background:i=!1,delay:o=60,scale:s,coordinate:l,emitter:c,state:u={}}){var d;let p;let f=t(e),m=new Set(f),g=(0,n6.ZP)(f,r),h=i0(f,n),[b,y]=i1(Object.assign({elements:f,valueof:h,link:a,coordinate:l},ri(u.active,"link"))),[E,T,v]=i3(Object.assign({document:e.ownerDocument,scale:s,coordinate:l,background:i,valueof:h},ri(u.active,"background"))),S=(0,n5.Z)(u,{active:Object.assign({},(null===(d=u.active)||void 0===d?void 0:d.offset)&&{transform:(...e)=>{let t=u.active.offset(...e),[,n]=e;return i2(f[n],t,l)}})}),{setState:A,removeState:O,hasState:_}=iX(S,h),k=e=>{let{target:t,nativeEvent:a=!0}=e;if(!m.has(t))return;p&&clearTimeout(p);let i=r(t),o=g.get(i),s=new Set(o);for(let e of f)s.has(e)?_(e,"active")||A(e,"active"):(A(e,"inactive"),y(e)),e!==t&&T(e);E(t),b(o),a&&c.emit("element:highlight",{nativeEvent:a,data:{data:n(t),group:o.map(n)}})},I=()=>{p&&clearTimeout(p),p=setTimeout(()=>{C(),p=null},o)},C=(e=!0)=>{for(let e of f)O(e,"active","inactive"),T(e),y(e);e&&c.emit("element:unhighlight",{nativeEvent:e})},N=e=>{let{target:t}=e;(!i||v(t))&&(i||m.has(t))&&(o>0?I():C())},x=()=>{C()};e.addEventListener("pointerover",k),e.addEventListener("pointerout",N),e.addEventListener("pointerleave",x);let w=e=>{let{nativeEvent:t}=e;t||C(!1)},R=e=>{let{nativeEvent:t}=e;if(t)return;let{data:r}=e.data,a=i5(f,r,n);a&&k({target:a,nativeEvent:!1})};return c.on("element:highlight",R),c.on("element:unhighlight",w),()=>{for(let t of(e.removeEventListener("pointerover",k),e.removeEventListener("pointerout",N),e.removeEventListener("pointerleave",x),c.off("element:highlight",R),c.off("element:unhighlight",w),f))T(t),y(t)}}(f,Object.assign({elements:iH,datum:iK(c),groupKey:n?n(c):void 0,coordinate:p,scale:d,state:iJ(u,[["active",r?{}:{lineWidth:"1",stroke:"#000"}],"inactive"]),background:r,link:a,delay:t,emitter:s},i))}}function fp(e){return fd(Object.assign(Object.assign({},e),{createGroup:iq}))}function ff(e){return fd(Object.assign(Object.assign({},e),{createGroup:iV}))}fd.props={reapplyWhenUpdate:!0},fp.props={reapplyWhenUpdate:!0},ff.props={reapplyWhenUpdate:!0};var fm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function fg(e){var{createGroup:t,background:n=!1,link:r=!1}=e,a=fm(e,["createGroup","background","link"]);return(e,i,o)=>{let{container:s,view:l,options:c}=e,{coordinate:u,scale:d}=l,p=iz(s);return function(e,{elements:t,datum:n,groupKey:r=e=>e,link:a=!1,single:i=!1,coordinate:o,background:s=!1,scale:l,emitter:c,state:u={}}){var d;let p=t(e),f=new Set(p),m=(0,n6.ZP)(p,r),g=i0(p,n),[h,b]=i1(Object.assign({link:a,elements:p,valueof:g,coordinate:o},ri(u.selected,"link"))),[y,E]=i3(Object.assign({document:e.ownerDocument,background:s,coordinate:o,scale:l,valueof:g},ri(u.selected,"background"))),T=(0,n5.Z)(u,{selected:Object.assign({},(null===(d=u.selected)||void 0===d?void 0:d.offset)&&{transform:(...e)=>{let t=u.selected.offset(...e),[,n]=e;return i2(p[n],t,o)}})}),{setState:v,removeState:S,hasState:A}=iX(T,g),O=(e=!0)=>{for(let e of p)S(e,"selected","unselected"),b(e),E(e);e&&c.emit("element:unselect",{nativeEvent:!0})},_=(e,t,a=!0)=>{if(A(t,"selected"))O();else{let i=r(t),o=m.get(i),s=new Set(o);for(let e of p)s.has(e)?v(e,"selected"):(v(e,"unselected"),b(e)),e!==t&&E(e);if(h(o),y(t),!a)return;c.emit("element:select",Object.assign(Object.assign({},e),{nativeEvent:a,data:{data:[n(t),...o.map(n)]}}))}},k=(e,t,i=!0)=>{let o=r(t),s=m.get(o),l=new Set(s);if(A(t,"selected")){let e=p.some(e=>!l.has(e)&&A(e,"selected"));if(!e)return O();for(let e of s)v(e,"unselected"),b(e),E(e)}else{let e=s.some(e=>A(e,"selected"));for(let e of p)l.has(e)?v(e,"selected"):A(e,"selected")||v(e,"unselected");!e&&a&&h(s),y(t)}i&&c.emit("element:select",Object.assign(Object.assign({},e),{nativeEvent:i,data:{data:p.filter(e=>A(e,"selected")).map(n)}}))},I=e=>{let{target:t,nativeEvent:n=!0}=e;return f.has(t)?i?_(e,t,n):k(e,t,n):O()};e.addEventListener("click",I);let C=e=>{let{nativeEvent:t,data:r}=e;if(t)return;let a=i?r.data.slice(0,1):r.data;for(let e of a){let t=i5(p,e,n);I({target:t,nativeEvent:!1})}},N=()=>{O(!1)};return c.on("element:select",C),c.on("element:unselect",N),()=>{for(let e of p)b(e);e.removeEventListener("click",I),c.off("element:select",C),c.off("element:unselect",N)}}(p,Object.assign({elements:iH,datum:iK(l),groupKey:t?t(l):void 0,coordinate:u,scale:d,state:iJ(c,[["selected",n?{}:{lineWidth:"1",stroke:"#000"}],"unselected"]),background:n,link:r,emitter:o},a))}}function fh(e){return fg(Object.assign(Object.assign({},e),{createGroup:iq}))}function fb(e){return fg(Object.assign(Object.assign({},e),{createGroup:iV}))}fg.props={reapplyWhenUpdate:!0},fh.props={reapplyWhenUpdate:!0},fb.props={reapplyWhenUpdate:!0};var fy=n(99711),fE=n(29173),fT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function fv(e){var{wait:t=20,leading:n,trailing:r=!1,labelFormatter:a=e=>`${e}`}=e,i=fT(e,["wait","leading","trailing","labelFormatter"]);return e=>{let o;let{view:s,container:l,update:c,setState:u}=e,{markState:d,scale:p,coordinate:f}=s,m=function(e,t,n){let[r]=Array.from(e.entries()).filter(([e])=>e.type===t).map(([e])=>{let{encode:t}=e;return Object.fromEntries(n.map(e=>{let n=t[e];return[e,n?n.value:void 0]}))});return r}(d,"line",["x","y","series"]);if(!m)return;let{y:g,x:h,series:b=[]}=m,y=g.map((e,t)=>t),E=(0,ii.Z)(y.map(e=>h[e])),T=iz(l),v=l.getElementsByClassName(iT),S=l.getElementsByClassName(iO),A=(0,n6.ZP)(S,e=>e.__data__.key.split("-")[0]),O=new nO.x1({style:Object.assign({x1:0,y1:0,x2:0,y2:T.getAttribute("height"),stroke:"black",lineWidth:1},ri(i,"rule"))}),_=new nO.xv({style:Object.assign({x:0,y:T.getAttribute("height"),text:"",fontSize:10},ri(i,"label"))});O.append(_),T.appendChild(O);let k=(e,t,n)=>{let[r]=e.invert(n),a=t.invert(r);return E[(0,ik.ZR)(E,a)]},I=(e,t)=>{O.setAttribute("x1",e[0]),O.setAttribute("x2",e[0]),_.setAttribute("text",a(t))},C=e=>{let{scale:t,coordinate:n}=o,{x:r,y:a}=t,i=k(n,r,e);for(let t of(I(e,i),v)){let{seriesIndex:e,key:r}=t.__data__,o=e[(0,fE.Z)(e=>h[+e]).center(e,i)],s=[0,a.map(1)],l=[0,a.map(g[o]/g[e[0]])],[,c]=n.map(s),[,u]=n.map(l),d=c-u;t.setAttribute("transform",`translate(0, ${d})`);let p=A.get(r)||[];for(let e of p)e.setAttribute("dy",d)}},N=(0,fy.Z)(e=>{let t=iW(T,e);t&&C(t)},t,{leading:n,trailing:r});return(e=>{var t,n,r,a;return t=this,n=void 0,r=void 0,a=function*(){let{x:t}=p,n=k(f,t,e);I(e,n),u("chartIndex",e=>{let t=(0,n5.Z)({},e),r=t.marks.find(e=>"line"===e.type),a=(0,rA.Z)((0,n6.jJ)(y,e=>(0,rA.Z)(e,e=>+g[e])/(0,oq.Z)(e,e=>+g[e]),e=>b[e]).values());(0,n5.Z)(r,{scale:{y:{domain:[1/a,a]}}});let i=function(e){let{transform:t=[]}=e,n=t.find(e=>"normalizeY"===e.type);if(n)return n;let r={type:"normalizeY"};return t.push(r),e.transform=t,r}(r);for(let e of(i.groupBy="color",i.basis=(e,t)=>{let r=e[(0,fE.Z)(e=>h[+e]).center(e,n)];return t[r]},t.marks))e.animate=!1;return t});let r=yield c("chartIndex");o=r.view},new(r||(r=Promise))(function(e,i){function o(e){try{l(a.next(e))}catch(e){i(e)}}function s(e){try{l(a.throw(e))}catch(e){i(e)}}function l(t){var n;t.done?e(t.value):((n=t.value)instanceof r?n:new r(function(e){e(n)})).then(o,s)}l((a=a.apply(t,n||[])).next())})})([0,0]),T.addEventListener("pointerenter",N),T.addEventListener("pointermove",N),T.addEventListener("pointerleave",N),()=>{O.remove(),T.removeEventListener("pointerenter",N),T.removeEventListener("pointermove",N),T.removeEventListener("pointerleave",N)}}}fv.props={reapplyWhenUpdate:!0};var fS=n(18320),fA=n(71894),fO=n(61385),f_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function fk(e,t){if(t)return"string"==typeof t?document.querySelector(t):t;let n=e.ownerDocument.defaultView.getContextService().getDomElement();return n.parentElement}function fI({root:e,data:t,x:n,y:r,render:a,event:i,single:o,position:s="right-bottom",enterable:l=!1,css:c,mount:u,bounding:d,offset:p}){let f=fk(e,u),m=fk(e),g=o?m:e,h=d||function(e){let t=e.getRenderBounds(),{min:[n,r],max:[a,i]}=t;return{x:n,y:r,width:a-n,height:i-r}}(e),b=function(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return{x:n.x-r.x,y:n.y-r.y}}(m,f),{tooltipElement:y=function(e,t,n,r,a,i,o,s={},l=[10,10]){let c=new fO.u({className:"tooltip",style:{x:t,y:n,container:o,data:[],bounding:i,position:r,enterable:a,title:"",offset:l,template:{prefixCls:"g2-"},style:(0,n5.Z)({".g2-tooltip":{},".g2-tooltip-title":{overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"}},s)}});return e.appendChild(c.HTMLTooltipElement),c}(f,n,r,s,l,h,b,c,p)}=g,{items:E,title:T=""}=t;y.update(Object.assign({x:n,y:r,data:E,title:T,position:s,enterable:l},void 0!==a&&{content:a(i,{items:E,title:T})})),g.tooltipElement=y}function fC({root:e,single:t,emitter:n,nativeEvent:r=!0,event:a=null}){r&&n.emit("tooltip:hide",{nativeEvent:r});let i=fk(e),o=t?i:e,{tooltipElement:s}=o;s&&s.hide(null==a?void 0:a.clientX,null==a?void 0:a.clientY),fD(e),fP(e),fM(e)}function fN({root:e,single:t}){let n=fk(e),r=t?n:e;if(!r)return;let{tooltipElement:a}=r;a&&(a.destroy(),r.tooltipElement=void 0),fD(e),fP(e),fM(e)}function fx(e){let{value:t}=e;return Object.assign(Object.assign({},e),{value:void 0===t?"undefined":t})}function fw(e){let t=e.getAttribute("fill"),n=e.getAttribute("stroke"),{__data__:r}=e,{color:a=t&&"transparent"!==t?t:n}=r;return a}function fR(e,t=e=>e){let n=new Map(e.map(e=>[t(e),e]));return Array.from(n.values())}function fL(e,t,n,r=e.map(e=>e.__data__),a={}){let i=e=>e instanceof Date?+e:e,o=fR(r.map(e=>e.title),i).filter(ra),s=r.flatMap((r,i)=>{let o=e[i],{items:s=[],title:l}=r,c=s.filter(ra),u=void 0!==n?n:s.length<=1;return c.map(e=>{var{color:n=fw(o)||a.color,name:i}=e,s=f_(e,["color","name"]);let c=function(e,t){let{color:n,series:r,facet:a=!1}=e,{color:i,series:o}=t;if(r&&r.invert&&!(r instanceof dI.t)&&!(r instanceof aa)){let e=r.clone();return e.invert(o)}if(o&&r instanceof dI.t&&r.invert(o)!==i&&!a)return r.invert(o);if(n&&n.invert&&!(n instanceof dI.t)&&!(n instanceof aa)){let e=n.invert(i);return Array.isArray(e)?null:e}return null}(t,r);return Object.assign(Object.assign({},s),{color:n,name:(u?c||i:i||c)||l})})}).map(fx);return Object.assign(Object.assign({},o.length>0&&{title:o.join(",")}),{items:fR(s,e=>`(${i(e.name)}, ${i(e.value)}, ${i(e.color)})`)})}function fD(e){e.ruleY&&(e.ruleY.remove(),e.ruleY=void 0)}function fP(e){e.ruleX&&(e.ruleX.remove(),e.ruleX=void 0)}function fM(e){e.markers&&(e.markers.forEach(e=>e.remove()),e.markers=[])}function fF(e,t){return Array.from(e.values()).some(e=>{var n;return null===(n=e.interaction)||void 0===n?void 0:n[t]})}function fB(e,t){return void 0===e?t:e}function fj(e){let{title:t,items:n}=e;return 0===n.length&&void 0===t}function fU(e,t){var{elements:n,sort:r,filter:a,scale:i,coordinate:o,crosshairs:s,crosshairsX:l,crosshairsY:c,render:u,groupName:d,emitter:p,wait:f=50,leading:m=!0,trailing:g=!1,startX:h=0,startY:b=0,body:y=!0,single:E=!0,position:T,enterable:v,mount:S,bounding:A,theme:O,offset:_,disableNative:k=!1,marker:I=!0,preserve:C=!1,style:N={},css:x={}}=t,w=f_(t,["elements","sort","filter","scale","coordinate","crosshairs","crosshairsX","crosshairsY","render","groupName","emitter","wait","leading","trailing","startX","startY","body","single","position","enterable","mount","bounding","theme","offset","disableNative","marker","preserve","style","css"]);let R=n(e),L=rR(o),D=rL(o),P=(0,n5.Z)(N,w),{innerWidth:M,innerHeight:F,width:B,height:j,insetLeft:U,insetTop:H}=o.getOptions(),G=[],$=[];for(let e of R){let{__data__:t}=e,{seriesX:n,title:r,items:a}=t;n?G.push(e):(r||a)&&$.push(e)}let z=$.length&&$.every(e=>"interval"===e.markType)&&!rL(o),Z=e=>e.__data__.x,W=!!i.x.getBandWidth,Y=W&&$.length>0;G.sort((e,t)=>{let n=L?0:1,r=e=>e.getBounds().min[n];return L?r(t)-r(e):r(e)-r(t)});let V=e=>{let t=L?1:0,{min:n,max:r}=e.getLocalBounds();return(0,ii.Z)([n[t],r[t]])};z?R.sort((e,t)=>Z(e)-Z(t)):$.sort((e,t)=>{let[n,r]=V(e),[a,i]=V(t),o=(n+r)/2,s=(a+i)/2;return L?s-o:o-s});let q=new Map(G.map(e=>{let{__data__:t}=e,{seriesX:n}=t,r=n.map((e,t)=>t),a=(0,ii.Z)(r,e=>n[+e]);return[e,[a,n]]})),{x:K}=i,X=(null==K?void 0:K.getBandWidth)?K.getBandWidth()/2:0,Q=e=>{let[t]=o.invert(e);return t-X},J=(e,t,n,r)=>{let{_x:a}=e,i=void 0!==a?K.map(a):Q(t),o=r.filter(ra),[s,l]=(0,ii.Z)([o[0],o[o.length-1]]);if(!Y&&(il)&&s!==l)return null;let c=(0,fE.Z)(e=>r[+e]).center,u=c(n,i);return n[u]},ee=z?(e,t)=>{let n=(0,fE.Z)(Z).center,r=n(t,Q(e)),a=t[r],i=(0,n6.ZP)(t,Z),o=i.get(Z(a));return o}:(e,t)=>{let n=L?1:0,r=e[n],a=t.filter(e=>{let[t,n]=V(e);return r>=t&&r<=n});if(!Y||a.length>0)return a;let i=(0,fE.Z)(e=>{let[t,n]=V(e);return(t+n)/2}).center,o=i(t,r);return[t[o]].filter(ra)},et=(e,t)=>{let{__data__:n}=e;return Object.fromEntries(Object.entries(n).filter(([e])=>e.startsWith("series")&&"series"!==e).map(([e,n])=>{let r=n[t];return[(0,n9.Z)(e.replace("series","")),r]}))},en=(0,fy.Z)(t=>{var n;let f=iW(e,t);if(!f)return;let m=iZ(e),g=m.min[0],k=m.min[1],C=[f[0]-h,f[1]-b];if(!C)return;let N=ee(C,$),w=[],R=[];for(let e of G){let[n,r]=q.get(e),a=J(t,C,n,r);if(null!==a){w.push(e);let t=et(e,a),{x:n,y:r}=t,i=o.map([(n||0)+X,r||0]);R.push([Object.assign(Object.assign({},t),{element:e}),i])}}let z=Array.from(new Set(R.map(e=>e[0].x))),Z=z[(0,fS.Z)(z,e=>Math.abs(e-Q(C)))],W=R.filter(e=>e[0].x===Z),Y=[...W.map(e=>e[0]),...N.map(e=>e.__data__)],V=[...w,...N],K=fL(V,i,d,Y,O);if(r&&K.items.sort((e,t)=>r(e)-r(t)),a&&(K.items=K.items.filter(a)),0===V.length||fj(K)){er(t);return}if(y&&fI({root:e,data:K,x:f[0]+g,y:f[1]+k,render:u,event:t,single:E,position:T,enterable:v,mount:S,bounding:A,css:x,offset:_}),s||l||c){let t=ri(P,"crosshairs"),n=Object.assign(Object.assign({},t),ri(P,"crosshairsX")),r=Object.assign(Object.assign({},t),ri(P,"crosshairsY")),a=W.map(e=>e[1]);l&&function(e,t,n,r){var{plotWidth:a,plotHeight:i,mainWidth:o,mainHeight:s,startX:l,startY:c,transposed:u,polar:d,insetLeft:p,insetTop:f}=r,m=f_(r,["plotWidth","plotHeight","mainWidth","mainHeight","startX","startY","transposed","polar","insetLeft","insetTop"]);let g=Object.assign({lineWidth:1,stroke:"#1b1e23",strokeOpacity:.5},m),h=((e,t)=>{if(1===t.length)return t[0];let n=t.map(t=>aD(t,e)),r=(0,fS.Z)(n,e=>e);return t[r]})(n,t);if(d){let[t,n,r]=(()=>{let e=l+p+o/2,t=c+f+s/2,n=aD([e,t],h);return[e,t,n]})(),a=e.ruleX||((t,n,r)=>{let a=new nO.Cd({style:Object.assign({cx:t,cy:n,r},g)});return e.appendChild(a),a})(t,n,r);a.style.cx=t,a.style.cy=n,a.style.r=r,e.ruleX=a}else{let[t,n,r,o]=u?[l+h[0],l+h[0],c,c+i]:[l,l+a,h[1]+c,h[1]+c],s=e.ruleX||((t,n,r,a)=>{let i=new nO.x1({style:Object.assign({x1:t,x2:n,y1:r,y2:a},g)});return e.appendChild(i),i})(t,n,r,o);s.style.x1=t,s.style.x2=n,s.style.y1=r,s.style.y2=o,e.ruleX=s}}(e,a,f,Object.assign(Object.assign({},n),{plotWidth:M,plotHeight:F,mainWidth:B,mainHeight:j,insetLeft:U,insetTop:H,startX:h,startY:b,transposed:L,polar:D})),c&&function(e,t,n){var{plotWidth:r,plotHeight:a,mainWidth:i,mainHeight:o,startX:s,startY:l,transposed:c,polar:u,insetLeft:d,insetTop:p}=n,f=f_(n,["plotWidth","plotHeight","mainWidth","mainHeight","startX","startY","transposed","polar","insetLeft","insetTop"]);let m=Object.assign({lineWidth:1,stroke:"#1b1e23",strokeOpacity:.5},f),g=t.map(e=>e[1]),h=t.map(e=>e[0]),b=(0,fA.Z)(g),y=(0,fA.Z)(h),[E,T,v,S]=(()=>{if(u){let e=Math.min(i,o)/2,t=s+d+i/2,n=l+p+o/2,r=aP(aL([y,b],[t,n])),a=t+e*Math.cos(r),c=n+e*Math.sin(r);return[t,a,n,c]}return c?[s,s+r,b+l,b+l]:[y+s,y+s,l,l+a]})();if(h.length>0){let t=e.ruleY||(()=>{let t=new nO.x1({style:Object.assign({x1:E,x2:T,y1:v,y2:S},m)});return e.appendChild(t),t})();t.style.x1=E,t.style.x2=T,t.style.y1=v,t.style.y2=S,e.ruleY=t}}(e,a,Object.assign(Object.assign({},r),{plotWidth:M,plotHeight:F,mainWidth:B,mainHeight:j,insetLeft:U,insetTop:H,startX:h,startY:b,transposed:L,polar:D}))}if(I){let t=ri(P,"marker");!function(e,{data:t,style:n,theme:r}){e.markers&&e.markers.forEach(e=>e.remove());let{type:a=""}=n,i=t.filter(e=>{let[{x:t,y:n}]=e;return ra(t)&&ra(n)}).map(e=>{let[{color:t,element:i},o]=e,s=t||i.style.fill||i.style.stroke||r.color,l=new nO.Cd({className:"g2-tooltip-marker",style:Object.assign({cx:o[0],cy:o[1],fill:"hollow"===a?"transparent":s,r:4,stroke:"hollow"===a?s:"#fff",lineWidth:2},n)});return l});for(let t of i)e.appendChild(t);e.markers=i}(e,{data:W,style:t,theme:O})}let en=null===(n=W[0])||void 0===n?void 0:n[0].x,ea=null!=en?en:Q(C);p.emit("tooltip:show",Object.assign(Object.assign({},t),{nativeEvent:!0,data:{data:{x:iC(i.x,ea,!0)}}}))},f,{leading:m,trailing:g}),er=t=>{fC({root:e,single:E,emitter:p,event:t})},ea=()=>{fN({root:e,single:E})},ei=t=>{var n,{nativeEvent:r,data:a,offsetX:s,offsetY:l}=t,c=f_(t,["nativeEvent","data","offsetX","offsetY"]);if(r)return;let u=null===(n=null==a?void 0:a.data)||void 0===n?void 0:n.x,d=i.x,p=d.map(u),[f,m]=o.map([p,.5]),g=e.getRenderBounds(),h=g.min[0],b=g.min[1];en(Object.assign(Object.assign({},c),{offsetX:void 0!==s?s:h+f,offsetY:void 0!==l?l:b+m,_x:u}))},eo=()=>{fC({root:e,single:E,emitter:p,nativeEvent:!1})},es=()=>{eu(),ea()},el=()=>{ec()},ec=()=>{k||(e.addEventListener("pointerenter",en),e.addEventListener("pointermove",en),e.addEventListener("pointerleave",t=>{iW(e,t)||er(t)}))},eu=()=>{k||(e.removeEventListener("pointerenter",en),e.removeEventListener("pointermove",en),e.removeEventListener("pointerleave",er))};return ec(),p.on("tooltip:show",ei),p.on("tooltip:hide",eo),p.on("tooltip:disable",es),p.on("tooltip:enable",el),()=>{eu(),p.off("tooltip:show",ei),p.off("tooltip:hide",eo),p.off("tooltip:disable",es),p.off("tooltip:enable",el),C?fC({root:e,single:E,emitter:p,nativeEvent:!1}):ea()}}function fH(e){let{shared:t,crosshairs:n,crosshairsX:r,crosshairsY:a,series:i,name:o,item:s=()=>({}),facet:l=!1}=e,c=f_(e,["shared","crosshairs","crosshairsX","crosshairsY","series","name","item","facet"]);return(e,o,u)=>{let{container:d,view:p}=e,{scale:f,markState:m,coordinate:g,theme:h}=p,b=fF(m,"seriesTooltip"),y=fF(m,"crosshairs"),E=iz(d),T=fB(i,b),v=fB(n,y);if(T&&Array.from(m.values()).some(e=>{var t;return(null===(t=e.interaction)||void 0===t?void 0:t.seriesTooltip)&&e.tooltip})&&!l)return fU(E,Object.assign(Object.assign({},c),{theme:h,elements:iH,scale:f,coordinate:g,crosshairs:v,crosshairsX:fB(fB(r,n),!1),crosshairsY:fB(a,v),item:s,emitter:u}));if(T&&l){let t=o.filter(t=>t!==e&&t.options.parentKey===e.options.key),i=iG(e,o),l=t[0].view.scale,d=E.getBounds(),p=d.min[0],f=d.min[1];return Object.assign(l,{facet:!0}),fU(E.parentNode.parentNode,Object.assign(Object.assign({},c),{theme:h,elements:()=>i,scale:l,coordinate:g,crosshairs:fB(n,y),crosshairsX:fB(fB(r,n),!1),crosshairsY:fB(a,v),item:s,startX:p,startY:f,emitter:u}))}return function(e,{elements:t,coordinate:n,scale:r,render:a,groupName:i,sort:o,filter:s,emitter:l,wait:c=50,leading:u=!0,trailing:d=!1,groupKey:p=e=>e,single:f=!0,position:m,enterable:g,datum:h,view:b,mount:y,bounding:E,theme:T,offset:v,shared:S=!1,body:A=!0,disableNative:O=!1,preserve:_=!1,css:k={}}){var I,C;let N=t(e),x=(0,n6.ZP)(N,p),w=N.every(e=>"interval"===e.markType)&&!rL(n),R=r.x,L=r.series,D=null!==(C=null===(I=null==R?void 0:R.getBandWidth)||void 0===I?void 0:I.call(R))&&void 0!==C?C:0,P=L?e=>e.__data__.x+e.__data__.series*D:e=>e.__data__.x+D/2;w&&N.sort((e,t)=>P(e)-P(t));let M=e=>{let{target:t}=e;return i7(t,e=>!!e.classList&&e.classList.includes("element"))},F=w?t=>{let r=iW(e,t);if(!r)return;let[a]=n.invert(r),i=(0,fE.Z)(P).center,o=i(N,a),s=N[o];if(!S){let e=N.find(e=>e!==s&&P(e)===P(s));if(e)return M(t)}return s}:M,B=(0,fy.Z)(t=>{let n=F(t);if(!n){fC({root:e,single:f,emitter:l,event:t});return}let c=p(n),u=x.get(c);if(!u)return;let d=1!==u.length||S?fL(u,r,i,void 0,T):function(e){let{__data__:t}=e,{title:n,items:r=[]}=t,a=r.filter(ra).map(t=>{var{color:n=fw(e)}=t;return Object.assign(Object.assign({},f_(t,["color"])),{color:n})}).map(fx);return Object.assign(Object.assign({},n&&{title:n}),{items:a})}(u[0]);if(o&&d.items.sort((e,t)=>o(e)-o(t)),s&&(d.items=d.items.filter(s)),fj(d)){fC({root:e,single:f,emitter:l,event:t});return}let{offsetX:h,offsetY:O}=t;A&&fI({root:e,data:d,x:h,y:O,render:a,event:t,single:f,position:m,enterable:g,mount:y,bounding:E,css:k,offset:v}),l.emit("tooltip:show",Object.assign(Object.assign({},t),{nativeEvent:!0,data:{data:oe(n,b)}}))},c,{leading:u,trailing:d}),j=t=>{fC({root:e,single:f,emitter:l,event:t})},U=()=>{O||(e.addEventListener("pointermove",B),e.addEventListener("pointerleave",j))},H=()=>{O||(e.removeEventListener("pointermove",B),e.removeEventListener("pointerleave",j))},G=({nativeEvent:t,offsetX:n,offsetY:r,data:a})=>{if(t)return;let{data:i}=a,o=i5(N,i,h);if(!o)return;let s=o.getBBox(),{x:l,y:c,width:u,height:d}=s,p=e.getBBox();B({target:o,offsetX:void 0!==n?n+p.x:l+u/2,offsetY:void 0!==r?r+p.y:c+d/2})},$=({nativeEvent:t}={})=>{t||fC({root:e,single:f,emitter:l,nativeEvent:!1})};return l.on("tooltip:show",G),l.on("tooltip:hide",$),l.on("tooltip:enable",()=>{U()}),l.on("tooltip:disable",()=>{H(),fN({root:e,single:f})}),U(),()=>{H(),l.off("tooltip:show",G),l.off("tooltip:hide",$),_?fC({root:e,single:f,emitter:l,nativeEvent:!1}):fN({root:e,single:f})}}(E,Object.assign(Object.assign({},c),{datum:iK(p),elements:iH,scale:f,coordinate:g,groupKey:t?iq(p):void 0,item:s,emitter:u,view:p,theme:h,shared:t}))}}fH.props={reapplyWhenUpdate:!0};var fG=function(e,t,n,r){return new(n||(n=Promise))(function(a,i){function o(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})};let f$="legend-category";function fz(e){return e.getElementsByClassName("legend-category-item-marker")[0]}function fZ(e){return e.getElementsByClassName("legend-category-item-label")[0]}function fW(e){return e.getElementsByClassName("items-item")}function fY(e){return e.getElementsByClassName(f$)}function fV(e){return e.getElementsByClassName("legend-continuous")}function fq(e){let t=e.parentNode;for(;t&&!t.__data__;)t=t.parentNode;return t.__data__}function fK(e,{legend:t,channel:n,value:r,ordinal:a,channels:i,allChannels:o,facet:s=!1}){return fG(this,void 0,void 0,function*(){let{view:l,update:c,setState:u}=e;u(t,e=>{let{marks:t}=e,c=t.map(e=>{if("legends"===e.type)return e;let{transform:t=[],data:c=[]}=e,u=t.findIndex(({type:e})=>e.startsWith("group")||e.startsWith("bin")),d=[...t];c.length&&d.splice(u+1,0,{type:"filter",[n]:{value:r,ordinal:a}});let p=Object.fromEntries(i.map(e=>[e,{domain:l.scale[e].getOptions().domain}]));return(0,n5.Z)({},e,Object.assign(Object.assign({transform:d,scale:p},!a&&{animate:!1}),{legend:!s&&Object.fromEntries(o.map(e=>[e,{preserve:!0}]))}))});return Object.assign(Object.assign({},e),{marks:c})}),yield c()})}function fX(e,t){for(let n of e)fK(n,Object.assign(Object.assign({},t),{facet:!0}))}var fQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function fJ(e,t){for(let[n,r]of Object.entries(t))e.style(n,r)}let f0=aX(e=>{let t=e.attributes,{x:n,y:r,width:a,height:i,class:o,renders:s={},handleSize:l=10,document:c}=t,u=fQ(t,["x","y","width","height","class","renders","handleSize","document"]);if(!c||void 0===a||void 0===i||void 0===n||void 0===r)return;let d=l/2,p=(e,t,n)=>{e.handle||(e.handle=n.createElement("rect"),e.append(e.handle));let{handle:r}=e;return r.attr(t),r},f=ri(rs(u,"handleNW","handleNE"),"handleN"),{render:m=p}=f,g=fQ(f,["render"]),h=ri(u,"handleE"),{render:b=p}=h,y=fQ(h,["render"]),E=ri(rs(u,"handleSE","handleSW"),"handleS"),{render:T=p}=E,v=fQ(E,["render"]),S=ri(u,"handleW"),{render:A=p}=S,O=fQ(S,["render"]),_=ri(u,"handleNW"),{render:k=p}=_,I=fQ(_,["render"]),C=ri(u,"handleNE"),{render:N=p}=C,x=fQ(C,["render"]),w=ri(u,"handleSE"),{render:R=p}=w,L=fQ(w,["render"]),D=ri(u,"handleSW"),{render:P=p}=D,M=fQ(D,["render"]),F=(e,t)=>{let{id:n}=e,r=t(e,e.attributes,c);r.id=n,r.style.draggable=!0},B=e=>()=>{let t=aX(t=>F(t,e));return new t({})},j=rd(e).attr("className",o).style("transform",`translate(${n}, ${r})`).style("draggable",!0);j.maybeAppend("selection","rect").style("draggable",!0).style("fill","transparent").call(fJ,Object.assign(Object.assign({width:a,height:i},rs(u,"handle")),{transform:void 0})),j.maybeAppend("handle-n",B(m)).style("x",d).style("y",-d).style("width",a-l).style("height",l).style("fill","transparent").call(fJ,g),j.maybeAppend("handle-e",B(b)).style("x",a-d).style("y",d).style("width",l).style("height",i-l).style("fill","transparent").call(fJ,y),j.maybeAppend("handle-s",B(T)).style("x",d).style("y",i-d).style("width",a-l).style("height",l).style("fill","transparent").call(fJ,v),j.maybeAppend("handle-w",B(A)).style("x",-d).style("y",d).style("width",l).style("height",i-l).style("fill","transparent").call(fJ,O),j.maybeAppend("handle-nw",B(k)).style("x",-d).style("y",-d).style("width",l).style("height",l).style("fill","transparent").call(fJ,I),j.maybeAppend("handle-ne",B(N)).style("x",a-d).style("y",-d).style("width",l).style("height",l).style("fill","transparent").call(fJ,x),j.maybeAppend("handle-se",B(R)).style("x",a-d).style("y",i-d).style("width",l).style("height",l).style("fill","transparent").call(fJ,L),j.maybeAppend("handle-sw",B(P)).style("x",-d).style("y",i-d).style("width",l).style("height",l).style("fill","transparent").call(fJ,M)});function f1(e,t){var{brushed:n=()=>{},brushended:r=()=>{},brushcreated:a=()=>{},brushstarted:i=()=>{},brushupdated:o=()=>{},extent:s=function(e){let{width:t,height:n}=e.getBBox();return[0,0,t,n]}(e),brushRegion:l=(e,t,n,r,a)=>[e,t,n,r],reverse:c=!1,fill:u="#777",fillOpacity:d="0.3",stroke:p="#fff",selectedHandles:f=["handle-n","handle-e","handle-s","handle-w","handle-nw","handle-ne","handle-se","handle-sw"]}=t,m=fQ(t,["brushed","brushended","brushcreated","brushstarted","brushupdated","extent","brushRegion","reverse","fill","fillOpacity","stroke","selectedHandles"]);let g=null,h=null,b=null,y=null,E=null,T=!1,[v,S,A,O]=s;i4(e,"crosshair"),e.style.draggable=!0;let _=(e,t,n)=>{if(i(n),y&&y.remove(),E&&E.remove(),g=[e,t],c)return k();I()},k=()=>{E=new nO.y$({style:Object.assign(Object.assign({},m),{fill:u,fillOpacity:d,stroke:p,pointerEvents:"none"})}),y=new f0({style:{x:0,y:0,width:0,height:0,draggable:!0,document:e.ownerDocument},className:"mask"}),e.appendChild(E),e.appendChild(y)},I=()=>{y=new f0({style:Object.assign(Object.assign({document:e.ownerDocument,x:0,y:0},m),{fill:u,fillOpacity:d,stroke:p,draggable:!0}),className:"mask"}),e.appendChild(y)},C=(e=!0)=>{y&&y.remove(),E&&E.remove(),g=null,h=null,b=null,T=!1,y=null,E=null,r(e)},N=(e,t,r=!0)=>{let[a,i,o,u]=function(e,t,n,r,a){let[i,o,s,l]=a;return[Math.max(i,Math.min(e,n)),Math.max(o,Math.min(t,r)),Math.min(s,Math.max(e,n)),Math.min(l,Math.max(t,r))]}(e[0],e[1],t[0],t[1],s),[d,p,f,m]=l(a,i,o,u,s);return c?w(d,p,f,m):x(d,p,f,m),n(d,p,f,m,r),[d,p,f,m]},x=(e,t,n,r)=>{y.style.x=e,y.style.y=t,y.style.width=n-e,y.style.height=r-t},w=(e,t,n,r)=>{E.style.d=` - M${v},${S}L${A},${S}L${A},${O}L${v},${O}Z - M${e},${t}L${e},${r}L${n},${r}L${n},${t}Z - `,y.style.x=e,y.style.y=t,y.style.width=n-e,y.style.height=r-t},R=e=>{let t=(e,t,n,r,a)=>e+ta?a-n:e,n=e[0]-b[0],r=e[1]-b[1],a=t(n,g[0],h[0],v,A),i=t(r,g[1],h[1],S,O),o=[g[0]+a,g[1]+i],s=[h[0]+a,h[1]+i];N(o,s)},L={"handle-n":{vector:[0,1,0,0],cursor:"ns-resize"},"handle-e":{vector:[0,0,1,0],cursor:"ew-resize"},"handle-s":{vector:[0,0,0,1],cursor:"ns-resize"},"handle-w":{vector:[1,0,0,0],cursor:"ew-resize"},"handle-nw":{vector:[1,1,0,0],cursor:"nwse-resize"},"handle-ne":{vector:[0,1,1,0],cursor:"nesw-resize"},"handle-se":{vector:[0,0,1,1],cursor:"nwse-resize"},"handle-sw":{vector:[1,0,0,1],cursor:"nesw-resize"}},D=e=>M(e)||P(e),P=e=>{let{id:t}=e;return -1!==f.indexOf(t)&&new Set(Object.keys(L)).has(t)},M=e=>e===y.getElementById("selection"),F=t=>{let{target:n}=t,[r,a]=iY(e,t);if(!y||!D(n)){_(r,a,t),T=!0;return}D(n)&&(b=[r,a])},B=t=>{let{target:n}=t,r=iY(e,t);if(!g)return;if(!b)return N(g,r);if(M(n))return R(r);let[a,i]=[r[0]-b[0],r[1]-b[1]],{id:o}=n;if(L[o]){let[e,t,n,r]=L[o].vector;return N([g[0]+a*e,g[1]+i*t],[h[0]+a*n,h[1]+i*r])}},j=t=>{if(b){b=null;let{x:e,y:n,width:r,height:a}=y.style;g=[e,n],h=[e+r,n+a],o(e,n,e+r,n+a,t);return}h=iY(e,t);let[n,r,i,s]=N(g,h);T=!1,a(n,r,i,s,t)},U=e=>{let{target:t}=e;y&&!D(t)&&C()},H=t=>{let{target:n}=t;y&&D(n)&&!T?M(n)?i4(e,"move"):P(n)&&i4(e,L[n.id].cursor):i4(e,"crosshair")},G=()=>{i4(e,"default")};return e.addEventListener("dragstart",F),e.addEventListener("drag",B),e.addEventListener("dragend",j),e.addEventListener("click",U),e.addEventListener("pointermove",H),e.addEventListener("pointerleave",G),{mask:y,move(e,t,n,r,a=!0){y||_(e,t,{}),g=[e,t],h=[n,r],N([e,t],[n,r],a)},remove(e=!0){y&&C(e)},destroy(){y&&C(!1),i4(e,"default"),e.removeEventListener("dragstart",F),e.removeEventListener("drag",B),e.removeEventListener("dragend",j),e.removeEventListener("click",U),e.removeEventListener("pointermove",H),e.removeEventListener("pointerleave",G)}}}function f2(e,t,n){return t.filter(t=>{if(t===e)return!1;let{interaction:r={}}=t.options;return Object.values(r).find(e=>e.brushKey===n)})}function f3(e,t){var{elements:n,selectedHandles:r,siblings:a=e=>[],datum:i,brushRegion:o,extent:s,reverse:l,scale:c,coordinate:u,series:d=!1,key:p=e=>e,bboxOf:f=e=>{let{x:t,y:n,width:r,height:a}=e.style;return{x:t,y:n,width:r,height:a}},state:m={},emitter:g}=t,h=fQ(t,["elements","selectedHandles","siblings","datum","brushRegion","extent","reverse","scale","coordinate","series","key","bboxOf","state","emitter"]);let b=n(e),y=a(e),E=y.flatMap(n),T=i0(b,i),v=ri(h,"mask"),{setState:S,removeState:A}=iX(m,T),O=new Map,{width:_,height:k,x:I=0,y:C=0}=f(e),N=()=>{for(let e of[...b,...E])A(e,"active","inactive")},x=(e,t,n,r)=>{var a;for(let e of y)null===(a=e.brush)||void 0===a||a.remove();let i=new Set;for(let a of b){let{min:o,max:s}=a.getLocalBounds(),[l,c]=o,[u,d]=s;!function(e,t){let[n,r,a,i]=e,[o,s,l,c]=t;return!(o>a||li||c{for(let e of b)A(e,"inactive");for(let e of O.values())e.remove();O.clear()},R=(t,n,r,a)=>{let i=e=>{let t=e.cloneNode();return t.__data__=e.__data__,e.parentNode.appendChild(t),O.set(e,t),t},o=new nO.UL({style:{x:t+I,y:n+C,width:r-t,height:a-n}});for(let t of(e.appendChild(o),b)){let e=O.get(t)||i(t);e.style.clipPath=o,S(t,"inactive"),S(e,"active")}},L=f1(e,Object.assign(Object.assign({},v),{extent:s||[0,0,_,k],brushRegion:o,reverse:l,selectedHandles:r,brushended:e=>{let t=d?w:N;e&&g.emit("brush:remove",{nativeEvent:!0}),t()},brushed:(e,t,n,r,a)=>{let i=ix(e,t,n,r,c,u);a&&g.emit("brush:highlight",{nativeEvent:!0,data:{selection:i}});let o=d?R:x;o(e,t,n,r)},brushcreated:(e,t,n,r,a)=>{let i=ix(e,t,n,r,c,u);g.emit("brush:end",Object.assign(Object.assign({},a),{nativeEvent:!0,data:{selection:i}}))},brushupdated:(e,t,n,r,a)=>{let i=ix(e,t,n,r,c,u);g.emit("brush:end",Object.assign(Object.assign({},a),{nativeEvent:!0,data:{selection:i}}))},brushstarted:e=>{g.emit("brush:start",e)}})),D=({nativeEvent:e,data:t})=>{if(e)return;let{selection:n}=t,[r,a,i,o]=function(e,t,n){let{x:r,y:a}=t,[i,o]=e,s=iw(i,r),l=iw(o,a),c=[s[0],l[0]],u=[s[1],l[1]],[d,p]=n.map(c),[f,m]=n.map(u);return[d,p,f,m]}(n,c,u);L.move(r,a,i,o,!1)};g.on("brush:highlight",D);let P=({nativeEvent:e}={})=>{e||L.remove(!1)};g.on("brush:remove",P);let M=L.destroy.bind(L);return L.destroy=()=>{g.off("brush:highlight",D),g.off("brush:remove",P),M()},L}function f4(e){var{facet:t,brushKey:n}=e,r=fQ(e,["facet","brushKey"]);return(e,a,i)=>{let{container:o,view:s,options:l}=e,c=iz(o),u={maskFill:"#777",maskFillOpacity:"0.3",maskStroke:"#fff",reverse:!1},d=["active",["inactive",{opacity:.5}]],{scale:p,coordinate:f}=s;if(t){let t=c.getBounds(),n=t.min[0],o=t.min[1],s=t.max[0],l=t.max[1];return f3(c.parentNode.parentNode,Object.assign(Object.assign({elements:()=>iG(e,a),datum:iK(i$(e,a).map(e=>e.view)),brushRegion:(e,t,n,r)=>[e,t,n,r],extent:[n,o,s,l],state:iJ(i$(e,a).map(e=>e.options),d),emitter:i,scale:p,coordinate:f,selectedHandles:void 0},u),r))}let m=f3(c,Object.assign(Object.assign({elements:iH,key:e=>e.__data__.key,siblings:()=>f2(e,a,n).map(e=>iz(e.container)),datum:iK([s,...f2(e,a,n).map(e=>e.view)]),brushRegion:(e,t,n,r)=>[e,t,n,r],extent:void 0,state:iJ([l,...f2(e,a,n).map(e=>e.options)],d),emitter:i,scale:p,coordinate:f,selectedHandles:void 0},u),r));return c.brush=m,()=>m.destroy()}}function f5(e,t,n,r,a){let[,i,,o]=a;return[e,i,n,o]}function f6(e,t,n,r,a){let[i,,o]=a;return[i,t,o,r]}var f9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let f8="axis-hot-area";function f7(e){return e.getElementsByClassName("axis")}function me(e){return e.getElementsByClassName("axis-line")[0]}function mt(e){return e.getElementsByClassName("axis-main-group")[0].getLocalBounds()}function mn(e,t){var{cross:n,offsetX:r,offsetY:a}=t,i=f9(t,["cross","offsetX","offsetY"]);let o=mt(e),s=me(e),[l]=s.getLocalBounds().min,[c,u]=o.min,[d,p]=o.max,f=(d-c)*2;return{brushRegion:f6,hotZone:new nO.UL({className:f8,style:Object.assign({width:n?f/2:f,transform:`translate(${(n?c:l-f/2).toFixed(2)}, ${u})`,height:p-u},i)}),extent:n?(e,t,n,r)=>[-1/0,t,1/0,r]:(e,t,n,a)=>[Math.floor(c-r),t,Math.ceil(d-r),a]}}function mr(e,t){var{offsetY:n,offsetX:r,cross:a=!1}=t,i=f9(t,["offsetY","offsetX","cross"]);let o=mt(e),s=me(e),[,l]=s.getLocalBounds().min,[c,u]=o.min,[d,p]=o.max,f=p-u;return{brushRegion:f5,hotZone:new nO.UL({className:f8,style:Object.assign({width:d-c,height:a?f:2*f,transform:`translate(${c}, ${a?u:l-f})`},i)}),extent:a?(e,t,n,r)=>[e,-1/0,n,1/0]:(e,t,r,a)=>[e,Math.floor(u-n),r,Math.ceil(p-n)]}}var ma=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function mi(e){var{hideX:t=!0,hideY:n=!0}=e,r=ma(e,["hideX","hideY"]);return(e,a,i)=>{let{container:o,view:s,options:l,update:c,setState:u}=e,d=iz(o),p=!1,f=!1,m=s,{scale:g,coordinate:h}=s;return function(e,t){var{filter:n,reset:r,brushRegion:a,extent:i,reverse:o,emitter:s,scale:l,coordinate:c,selection:u,series:d=!1}=t,p=ma(t,["filter","reset","brushRegion","extent","reverse","emitter","scale","coordinate","selection","series"]);let f=ri(p,"mask"),{width:m,height:g}=e.getBBox(),h=function(e=300){let t=null;return n=>{let{timeStamp:r}=n;return null!==t&&r-t{if(e)return;let{selection:r}=t;n(r,{nativeEvent:!1})};return s.on("brush:filter",E),()=>{b.destroy(),s.off("brush:filter",E),e.removeEventListener("click",y)}}(d,Object.assign(Object.assign({brushRegion:(e,t,n,r)=>[e,t,n,r],selection:(e,t,n,r)=>{let{scale:a,coordinate:i}=m;return ix(e,t,n,r,a,i)},filter:(e,r)=>{var a,o,s,d;return a=this,o=void 0,s=void 0,d=function*(){if(f)return;f=!0;let[a,o]=e;u("brushFilter",e=>{let{marks:r}=e,i=r.map(e=>(0,n5.Z)({axis:Object.assign(Object.assign({},t&&{x:{transform:[{type:"hide"}]}}),n&&{y:{transform:[{type:"hide"}]}})},e,{scale:{x:{domain:a,nice:!1},y:{domain:o,nice:!1}}}));return Object.assign(Object.assign({},l),{marks:i,clip:!0})}),i.emit("brush:filter",Object.assign(Object.assign({},r),{data:{selection:[a,o]}}));let s=yield c();m=s.view,f=!1,p=!0},new(s||(s=Promise))(function(e,t){function n(e){try{i(d.next(e))}catch(e){t(e)}}function r(e){try{i(d.throw(e))}catch(e){t(e)}}function i(t){var a;t.done?e(t.value):((a=t.value)instanceof s?a:new s(function(e){e(a)})).then(n,r)}i((d=d.apply(a,o||[])).next())})},reset:e=>{if(f||!p)return;let{scale:t}=s,{x:n,y:r}=t,a=n.getOptions().domain,o=r.getOptions().domain;i.emit("brush:filter",Object.assign(Object.assign({},e),{data:{selection:[a,o]}})),p=!1,m=s,u("brushFilter"),c()},extent:void 0,emitter:i,scale:g,coordinate:h},{maskFill:"#777",maskFillOpacity:"0.3",maskStroke:"#fff",unhighlightedOpacity:.5,reverse:!1}),r))}}var mo=function(e,t,n,r){return new(n||(n=Promise))(function(a,i){function o(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})};function ms(e){return[e[0],e[e.length-1]]}function ml({initDomain:e={},className:t="slider",prefix:n="slider",setValue:r=(e,t)=>e.setValues(t),hasState:a=!1,wait:i=50,leading:o=!0,trailing:s=!1,getInitValues:l=e=>{var t;let n=null===(t=null==e?void 0:e.attributes)||void 0===t?void 0:t.values;if(0!==n[0]||1!==n[1])return n}}){return(c,u,d)=>{let{container:p,view:f,update:m,setState:g}=c,h=p.getElementsByClassName(t);if(!h.length)return()=>{};let b=!1,{scale:y,coordinate:E,layout:T}=f,{paddingLeft:v,paddingTop:S,paddingBottom:A,paddingRight:O}=T,{x:_,y:k}=y,I=rR(E),C=e=>{let t="vertical"===e?"y":"x",n="vertical"===e?"x":"y";return I?[n,t]:[t,n]},N=new Map,x=new Set,w={x:e.x||_.getOptions().domain,y:e.y||k.getOptions().domain};for(let e of h){let{orientation:t}=e.attributes,[c,u]=C(t),p=`${n}${(0,rg.Z)(c)}:filter`,f="x"===c,{ratio:h}=_.getOptions(),{ratio:E}=k.getOptions(),T=e=>{if(e.data){let{selection:t}=e.data,[n=ms(w.x),r=ms(w.y)]=t;return f?[iN(_,n,h),iN(k,r,E)]:[iN(k,r,E),iN(_,n,h)]}let{value:n}=e.detail,r=y[c],a=function(e,t,n){let[r,a]=e,i=n?e=>1-e:e=>e,o=iC(t,i(r),!0),s=iC(t,i(a),!1);return iN(t,[o,s])}(n,r,I&&"horizontal"===t),i=w[u];return[a,i]},R=(0,fy.Z)(t=>mo(this,void 0,void 0,function*(){let{initValue:r=!1}=t;if(b&&!r)return;b=!0;let{nativeEvent:i=!0}=t,[o,s]=T(t);if(w[c]=o,w[u]=s,i){let e=f?o:s,n=f?s:o;d.emit(p,Object.assign(Object.assign({},t),{nativeEvent:i,data:{selection:[ms(e),ms(n)]}}))}g(e,e=>Object.assign(Object.assign({},function(e,t,n,r=!1,a="x",i="y"){let{marks:o}=e,s=o.map(e=>{var o,s;return(0,n5.Z)({axis:{x:{transform:[{type:"hide"}]},y:{transform:[{type:"hide"}]}}},e,{scale:t,[n]:Object.assign(Object.assign({},(null===(o=e[n])||void 0===o?void 0:o[a])&&{[a]:Object.assign({preserve:!0},r&&{ratio:null})}),(null===(s=e[n])||void 0===s?void 0:s[i])&&{[i]:{preserve:!0}}),animate:!1})});return Object.assign(Object.assign({},e),{marks:s,clip:!0,animate:!1})}(e,{[c]:{domain:o,nice:!1}},n,a,c,u)),{paddingLeft:v,paddingTop:S,paddingBottom:A,paddingRight:O})),yield m(),b=!1}),i,{leading:o,trailing:s}),L=t=>{let{nativeEvent:n}=t;if(n)return;let{data:a}=t,{selection:i}=a,[o,s]=i;e.dispatchEvent(new nO.Aw("valuechange",{data:a,nativeEvent:!1}));let l=f?iw(o,_):iw(s,k);r(e,l)};d.on(p,L),e.addEventListener("valuechange",R),N.set(e,R),x.add([p,L]);let D=l(e);D&&e.dispatchEvent(new nO.Aw("valuechange",{detail:{value:D},nativeEvent:!1,initValue:!0}))}return()=>{for(let[e,t]of N)e.removeEventListener("valuechange",t);for(let[e,t]of x)d.off(e,t)}}}let mc="g2-scrollbar";var mu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let md={backgroundColor:"rgba(0,0,0,0.75)",color:"#fff",width:"max-content",padding:"1px 4px",fontSize:"12px",borderRadius:"2.5px",boxShadow:"0 3px 6px -4px rgba(0,0,0,0.12), 0 6px 16px 0 rgba(0,0,0,0.08), 0 9px 28px 8px rgba(0,0,0,0.05)"};function mp(e){return"text"===e.nodeName&&!!e.isOverflowing()}function mf(e){var{offsetX:t=8,offsetY:n=8}=e,r=mu(e,["offsetX","offsetY"]);return e=>{let{container:a}=e,[i,o]=a.getBounds().min,s=ri(r,"tip"),l=new Set,c=e=>{let{target:r}=e;if(!mp(r)){e.stopPropagation();return}let{offsetX:c,offsetY:u}=e,d=c+t-i,p=u+n-o;if(r.tip){r.tip.style.x=d,r.tip.style.y=p;return}let{text:f}=r.style,m=new nO.k9({className:"poptip",style:{innerHTML:`
    ${f}
    `,x:d,y:p}});a.appendChild(m),r.tip=m,l.add(m)},u=e=>{let{target:t}=e;if(!mp(t)){e.stopPropagation();return}t.tip&&(t.tip.remove(),t.tip=null,l.delete(t.tip))};return a.addEventListener("pointerover",c),a.addEventListener("pointerout",u),()=>{a.removeEventListener("pointerover",c),a.removeEventListener("pointerout",u),l.forEach(e=>e.remove())}}}mf.props={reapplyWhenUpdate:!0};var mm=function(e,t){var n=ln(t),r=n.length;if((0,al.Z)(e))return!r;for(var a=0;a{e(t)})}(o):function e(t,n=[t.data.name]){t.id=t.id||t.data.name,t.path=n,t.children&&t.children.forEach(r=>{r.id=`${t.id}/${r.data.name}`,r.path=[...n,r.data.name],e(r,r.path)})}(o),a?o.sum(e=>t.ignoreParentValue&&e.children?0:lq(a)(e)).sort(t.sort):o.count(),(0,mS.Z)().tile(i).size(t.size).round(t.round).paddingInner(t.paddingInner).paddingOuter(t.paddingOuter).paddingTop(t.paddingTop).paddingRight(t.paddingRight).paddingBottom(t.paddingBottom).paddingLeft(t.paddingLeft)(o);let s=o.descendants().map(e=>Object.assign(e,{id:e.id.replace(/^\//,""),x:[e.x0,e.x1],y:[e.y0,e.y1]})),l=s.filter("function"==typeof t.layer?t.layer:e=>e.height===t.layer);return[l,s]}var mO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let m_={breadCrumbFill:"rgba(0, 0, 0, 0.85)",breadCrumbFontSize:12,breadCrumbY:12,activeFill:"rgba(0, 0, 0, 0.5)"};var mk=n(71154),mI=function(e,t,n,r){return new(n||(n=Promise))(function(a,i){function o(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})},mC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let mN={pointR:6,pointStrokeWidth:1,pointStroke:"#888",pointActiveStroke:"#f5f5f5",pathStroke:"#888",pathLineDash:[3,4],labelFontSize:12,labelFill:"#888",labelStroke:"#fff",labelLineWidth:1,labelY:-6,labelX:2},mx="movePoint",mw=e=>{let t=e.target,{markType:n}=t;"line"===n&&(t.attr("_lineWidth",t.attr("lineWidth")||1),t.attr("lineWidth",t.attr("_lineWidth")+3)),"interval"===n&&(t.attr("_opacity",t.attr("opacity")||1),t.attr("opacity",.7*t.attr("_opacity")))},mR=e=>{let t=e.target,{markType:n}=t;"line"===n&&t.attr("lineWidth",t.attr("_lineWidth")),"interval"===n&&t.attr("opacity",t.attr("_opacity"))},mL=(e,t,n)=>t.map(t=>{let r=["x","color"].reduce((r,a)=>{let i=n[a];return i?t[i]===e[i]&&r:r},!0);return r?Object.assign(Object.assign({},t),e):t}),mD=e=>{let t=(0,sY.Z)(e,["__data__","y"]),n=(0,sY.Z)(e,["__data__","y1"]),r=n-t,{__data__:{data:a,encode:i,transform:o},childNodes:s}=e.parentNode,l=mg(o,({type:e})=>"normalizeY"===e),c=(0,sY.Z)(i,["y","field"]),u=a[s.indexOf(e)][c];return(e,t=!1)=>l||t?e/(1-e)/(r/(1-r))*u:e},mP=(e,t)=>{let n=(0,sY.Z)(e,["__data__","seriesItems",t,"0","value"]),r=(0,sY.Z)(e,["__data__","seriesIndex",t]),{__data__:{data:a,encode:i,transform:o}}=e.parentNode,s=mg(o,({type:e})=>"normalizeY"===e),l=(0,sY.Z)(i,["y","field"]),c=a[r][l];return e=>s?1===n?e:e/(1-e)/(n/(1-n))*c:e},mM=(e,t,n)=>{e.forEach((e,r)=>{e.attr("stroke",t[1]===r?n.activeStroke:n.stroke)})},mF=(e,t,n,r)=>{let a=new nO.y$({style:n}),i=new nO.xv({style:r});return t.appendChild(i),e.appendChild(a),[a,i]},mB=(e,t)=>{let n=(0,sY.Z)(e,["options","range","indexOf"]);if(!n)return;let r=e.options.range.indexOf(t);return e.sortedDomain[r]},mj=(e,t,n)=>{let r=i6(e,t),a=i6(e,n),i=a/r,o=e[0]+(t[0]-e[0])*i,s=e[1]+(t[1]-e[1])*i;return[o,s]};var mU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let mH=()=>e=>{let{children:t}=e;if(!Array.isArray(t))return[];let{x:n=0,y:r=0,width:a,height:i,data:o}=e;return t.map(e=>{var{data:t,x:s,y:l,width:c,height:u}=e;return Object.assign(Object.assign({},mU(e,["data","x","y","width","height"])),{data:ax(t,o),x:null!=s?s:n,y:null!=l?l:r,width:null!=c?c:a,height:null!=u?u:i})})};mH.props={};var mG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let m$=()=>e=>{let{children:t}=e;if(!Array.isArray(t))return[];let{direction:n="row",ratio:r=t.map(()=>1),padding:a=0,data:i}=e,[o,s,l,c]="col"===n?["y","height","width","x"]:["x","width","height","y"],u=r.reduce((e,t)=>e+t),d=e[s]-a*(t.length-1),p=r.map(e=>d*(e/u)),f=[],m=e[o]||0;for(let n=0;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let mW=aC(e=>{let{encode:t,data:n,scale:r,shareSize:a=!1}=e,{x:i,y:o}=t,s=(e,t)=>{var i;if(void 0===e||!a)return{};let o=(0,n6.ZP)(n,t=>t[e]),s=(null===(i=null==r?void 0:r[t])||void 0===i?void 0:i.domain)||Array.from(o.keys()),l=s.map(e=>o.has(e)?o.get(e).length:1);return{domain:s,flex:l}};return{scale:{x:Object.assign(Object.assign({paddingOuter:0,paddingInner:.1,guide:void 0===i?null:{position:"top"}},void 0===i&&{paddingInner:0}),s(i,"x")),y:Object.assign(Object.assign({range:[0,1],paddingOuter:0,paddingInner:.1,guide:void 0===o?null:{position:"right"}},void 0===o&&{paddingInner:0}),s(o,"y"))}}}),mY=aN(e=>{let t,n,r;let{data:a,scale:i,legend:o}=e,s=[e];for(;s.length;){let e=s.shift(),{children:a,encode:i={},scale:o={},legend:l={}}=e,{color:c}=i,{color:u}=o,{color:d}=l;void 0!==c&&(t=c),void 0!==u&&(n=u),void 0!==d&&(r=d),Array.isArray(a)&&s.push(...a)}let l="string"==typeof t?t:"",[c,u]=(()=>{var e;let n=null===(e=null==i?void 0:i.color)||void 0===e?void 0:e.domain;if(void 0!==n)return[n];if(void 0===t)return[void 0];let r="function"==typeof t?t:e=>e[t],o=a.map(r);return o.some(e=>"number"==typeof e)?[(0,rz.Z)(o)]:[Array.from(new Set(o)),"ordinal"]})();return Object.assign({encode:{color:{type:"column",value:null!=c?c:[]}},scale:{color:(0,n5.Z)({},n,{domain:c,type:u})}},void 0===o&&{legend:{color:(0,n5.Z)({title:l},r)}})}),mV=aC(()=>({animate:{enterType:"fadeIn"}})),mq=aN(()=>({frame:!1,encode:{shape:"hollow"},style:{lineWidth:0}})),mK=aN(()=>({type:"cell"})),mX=aN(e=>{let{data:t}=e;return{data:{type:"inline",value:t,transform:[{type:"custom",callback:()=>{let{data:t,encode:n}=e,{x:r,y:a}=n,i=r?Array.from(new Set(t.map(e=>e[r]))):[],o=a?Array.from(new Set(t.map(e=>e[a]))):[];return(()=>{if(i.length&&o.length){let e=[];for(let t of i)for(let n of o)e.push({[r]:t,[a]:n});return e}return i.length?i.map(e=>({[r]:e})):o.length?o.map(e=>({[a]:e})):void 0})()}}]}}}),mQ=aN((e,t=mJ,n=m1,r=m2,a={})=>{let{data:i,encode:o,children:s,scale:l,x:c=0,y:u=0,shareData:d=!1,key:p}=e,{value:f}=i,{x:m,y:g}=o,{color:h}=l,{domain:b}=h;return{children:(e,i,o)=>{let{x:l,y:h}=i,{paddingLeft:y,paddingTop:E,marginLeft:T,marginTop:v}=o,{domain:S}=l.getOptions(),{domain:A}=h.getOptions(),O=ry(e),_=e.map(t),k=e.map(({x:e,y:t})=>[l.invert(e),h.invert(t)]),I=k.map(([e,t])=>n=>{let{[m]:r,[g]:a}=n;return(void 0===m||r===e)&&(void 0===g||a===t)}),C=I.map(e=>f.filter(e)),N=d?(0,rA.Z)(C,e=>e.length):void 0,x=k.map(([e,t])=>({columnField:m,columnIndex:S.indexOf(e),columnValue:e,columnValuesLength:S.length,rowField:g,rowIndex:A.indexOf(t),rowValue:t,rowValuesLength:A.length})),w=x.map(e=>Array.isArray(s)?s:[s(e)].flat(1));return O.flatMap(e=>{let[t,i,o,s]=_[e],l=x[e],d=C[e],h=w[e];return h.map(h=>{var S,A,{scale:O,key:_,facet:k=!0,axis:I={},legend:C={}}=h,x=mZ(h,["scale","key","facet","axis","legend"]);let w=(null===(S=null==O?void 0:O.y)||void 0===S?void 0:S.guide)||I.y,R=(null===(A=null==O?void 0:O.x)||void 0===A?void 0:A.guide)||I.x,L=k?d:0===d.length?[]:f,D={x:m3(R,n)(l,L),y:m3(w,r)(l,L)};return Object.assign(Object.assign({key:`${_}-${e}`,data:L,margin:0,x:t+y+c+T,y:i+E+u+v,parentKey:p,width:o,height:s,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!!L.length,dataDomain:N,scale:(0,n5.Z)({x:{tickCount:m?5:void 0},y:{tickCount:g?5:void 0}},O,{color:{domain:b}}),axis:(0,n5.Z)({},I,D),legend:!1},x),a)})})}}});function mJ(e){let{points:t}=e;return aB(t)}function m0(e,t){return t.length?(0,n5.Z)({title:!1,tick:null,label:null},e):(0,n5.Z)({title:!1,tick:null,label:null,grid:null},e)}function m1(e){return(t,n)=>{let{rowIndex:r,rowValuesLength:a,columnIndex:i,columnValuesLength:o}=t;if(r!==a-1)return m0(e,n);let s=n.length?void 0:null;return(0,n5.Z)({title:i===o-1&&void 0,grid:s},e)}}function m2(e){return(t,n)=>{let{rowIndex:r,columnIndex:a}=t;if(0!==a)return m0(e,n);let i=n.length?void 0:null;return(0,n5.Z)({title:0===r&&void 0,grid:i},e)}}function m3(e,t){return"function"==typeof e?e:null===e||!1===e?()=>null:t(e)}let m4=()=>e=>{let t=mz.of(e).call(mK).call(mY).call(mV).call(mW).call(mq).call(mX).call(mQ).value();return[t]};m4.props={};var m5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let m6=aC(e=>({scale:{x:{guide:null,paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}})),m9=aN(e=>{let{data:t,children:n,x:r=0,y:a=0,key:i}=e;return{children:(e,o,s)=>{let{x:l,y:c}=o,{paddingLeft:u,paddingTop:d,marginLeft:p,marginTop:f}=s,{domain:m}=l.getOptions(),{domain:g}=c.getOptions(),h=ry(e),b=e.map(({points:e})=>aB(e)),y=e.map(({x:e,y:t})=>[l.invert(e),c.invert(t)]),E=y.map(([e,t])=>({columnField:e,columnIndex:m.indexOf(e),columnValue:e,columnValuesLength:m.length,rowField:t,rowIndex:g.indexOf(t),rowValue:t,rowValuesLength:g.length})),T=E.map(e=>Array.isArray(n)?n:[n(e)].flat(1));return h.flatMap(e=>{let[n,o,s,l]=b[e],[c,m]=y[e],g=E[e],h=T[e];return h.map(h=>{var b,y;let{scale:E,key:T,encode:v,axis:S,interaction:A}=h,O=m5(h,["scale","key","encode","axis","interaction"]),_=null===(b=null==E?void 0:E.y)||void 0===b?void 0:b.guide,k=null===(y=null==E?void 0:E.x)||void 0===y?void 0:y.guide,I={x:("function"==typeof k?k:null===k?()=>null:(e,t)=>{let{rowIndex:n,rowValuesLength:r}=e;if(n!==r-1)return m0(k,t)})(g,t),y:("function"==typeof _?_:null===_?()=>null:(e,t)=>{let{columnIndex:n}=e;if(0!==n)return m0(_,t)})(g,t)};return Object.assign({data:t,parentKey:i,key:`${T}-${e}`,x:n+u+r+p,y:o+d+a+f,width:s,height:l,margin:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!0,scale:(0,n5.Z)({x:{facet:!1},y:{facet:!1}},E),axis:(0,n5.Z)({x:{tickCount:5},y:{tickCount:5}},S,I),legend:!1,encode:(0,n5.Z)({},v,{x:c,y:m}),interaction:(0,n5.Z)({},A,{legendFilter:!1})},O)})})}}}),m8=aN(e=>{let{encode:t}=e,n=m5(e,["encode"]),{position:r=[],x:a=r,y:i=[...r].reverse()}=t,o=m5(t,["position","x","y"]),s=[];for(let e of[a].flat(1))for(let t of[i].flat(1))s.push({$x:e,$y:t});return Object.assign(Object.assign({},n),{data:s,encode:Object.assign(Object.assign({},o),{x:"$x",y:"$y"}),scale:Object.assign(Object.assign({},1===[a].flat(1).length&&{x:{paddingInner:0}}),1===[i].flat(1).length&&{y:{paddingInner:0}})})});var m7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let ge=aC(e=>({scale:{x:{guide:{type:"axisArc"},paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}})),gt=aC(e=>({coordinate:{type:"polar"}})),gn=e=>{let{encode:t}=e,n=m7(e,["encode"]),{position:r}=t;return Object.assign(Object.assign({},n),{encode:{x:r}})};function gr(e){return e=>null}function ga(e){let{points:t}=e,[n,r,a,i]=t,o=aD(n,i),s=aL(n,i),l=aL(r,a),c=aF(s,l),u=1/Math.sin(c/2),d=o/(1+u),p=d*Math.sqrt(2),[f,m]=a,g=aM(s),h=g+c/2,b=d*u;return[f+b*Math.sin(h)-p/2,m-b*Math.cos(h)-p/2,p,p]}let gi=()=>e=>{let{children:t=[],duration:n=1e3,iterationCount:r=1,direction:a="normal",easing:i="ease-in-out-sine"}=e,o=t.length;if(!Array.isArray(t)||0===o)return[];let{key:s}=t[0],l=t.map(e=>Object.assign(Object.assign({},e),{key:s})).map(e=>(function(e,t,n){let r=[e];for(;r.length;){let e=r.pop();e.animate=(0,n5.Z)({enter:{duration:t},update:{duration:t,easing:n,type:"morphing",fill:"both"},exit:{type:"fadeOut",duration:t}},e.animate||{});let{children:a}=e;Array.isArray(a)&&r.push(...a)}return e})(e,n,i));return function*(){let e,t=0;for(;"infinite"===r||t{var t;return[e,null===(t=lv(r,e))||void 0===t?void 0:t[0]]}).filter(([,e])=>ra(e));return Array.from((0,n6.ZP)(t,e=>a.map(([,t])=>t[e]).join("-")).values())}function gs(e){return Array.isArray(e)?(t,n,r)=>(n,r)=>e.reduce((e,a)=>0!==e?e:(0,oK.Z)(t[n][a],t[r][a]),0):"function"==typeof e?(t,n,r)=>gm(n=>e(t[n])):"series"===e?gu:"value"===e?gd:"sum"===e?gp:"maxIndex"===e?gf:null}function gl(e,t){for(let n of e)n.sort(t)}function gc(e,t){return(null==t?void 0:t.domain)||Array.from(new Set(e))}function gu(e,t,n){return gm(e=>n[e])}function gd(e,t,n){return gm(e=>t[e])}function gp(e,t,n){let r=ry(e),a=Array.from((0,n6.ZP)(r,e=>n[+e]).entries()),i=new Map(a.map(([e,n])=>[e,n.reduce((e,n)=>e+ +t[n])]));return gm(e=>i.get(n[e]))}function gf(e,t,n){let r=ry(e),a=Array.from((0,n6.ZP)(r,e=>n[+e]).entries()),i=new Map(a.map(([e,n])=>[e,(0,a0.Z)(n,e=>t[e])]));return gm(e=>i.get(n[e]))}function gm(e){return(t,n)=>(0,oK.Z)(e(t),e(n))}gi.props={};let gg=(e={})=>{let{groupBy:t="x",orderBy:n=null,reverse:r=!1,y:a="y",y1:i="y1",series:o=!0}=e;return(e,s)=>{var l;let{data:c,encode:u,style:d={}}=s,[p,f]=lv(u,"y"),[m,g]=lv(u,"y1"),[h]=o?lS(u,"series","color"):lv(u,"color"),b=go(t,e,s),y=null!==(l=gs(n))&&void 0!==l?l:()=>null,E=y(c,p,h);E&&gl(b,E);let T=Array(e.length),v=Array(e.length),S=Array(e.length),A=[],O=[];for(let e of b){r&&e.reverse();let t=m?+m[e[0]]:0,n=[],a=[];for(let r of e){let e=S[r]=+p[r]-t;e<0?a.push(r):e>=0&&n.push(r)}let i=n.length>0?n:a,o=a.length>0?a:n,s=n.length-1,l=0;for(;s>0&&0===p[i[s]];)s--;for(;l0?u=T[e]=(v[e]=u)+t:T[e]=v[e]=u}}let _=new Set(A),k=new Set(O),I="y"===a?T:v,C="y"===i?T:v;return[e,(0,n5.Z)({},s,{encode:{y0:ly(p,f),y:lb(I,f),y1:lb(C,g)},style:Object.assign({first:(e,t)=>_.has(t),last:(e,t)=>k.has(t)},d)})]}};gg.props={};var gh=n(52362),gb=n(87568),gy=n(76132),gE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function gT(e){return t=>null===t?e:`${e} of ${t}`}function gv(){let e=gT("mean");return[(e,t)=>(0,fA.Z)(e,e=>+t[e]),e]}function gS(){let e=gT("median");return[(e,t)=>(0,gy.Z)(e,e=>+t[e]),e]}function gA(){let e=gT("max");return[(e,t)=>(0,rA.Z)(e,e=>+t[e]),e]}function gO(){let e=gT("min");return[(e,t)=>(0,oq.Z)(e,e=>+t[e]),e]}function g_(){let e=gT("count");return[(e,t)=>e.length,e]}function gk(){let e=gT("sum");return[(e,t)=>(0,rS.Z)(e,e=>+t[e]),e]}function gI(){let e=gT("first");return[(e,t)=>t[e[0]],e]}function gC(){let e=gT("last");return[(e,t)=>t[e[e.length-1]],e]}let gN=(e={})=>{let{groupBy:t}=e,n=gE(e,["groupBy"]);return(e,r)=>{let{data:a,encode:i}=r,o=t(e,r);if(!o)return[e,r];let s=(e,t)=>{if(e)return e;let{from:n}=t;if(!n)return e;let[,r]=lv(i,n);return r},l=Object.entries(n).map(([e,t])=>{let[n,r]=function(e){if("function"==typeof e)return[e,null];let t={mean:gv,max:gA,count:g_,first:gI,last:gC,sum:gk,min:gO,median:gS}[e];if(!t)throw Error(`Unknown reducer: ${e}.`);return t()}(t),[l,c]=lv(i,e),u=s(c,t),d=o.map(e=>n(e,null!=l?l:a));return[e,Object.assign(Object.assign({},function(e,t){let n=lb(e,t);return Object.assign(Object.assign({},n),{constant:!1})}(d,(null==r?void 0:r(u))||u)),{aggregate:!0})]}),c=Object.keys(i).map(e=>{let[t,n]=lv(i,e),r=o.map(e=>t[e[0]]);return[e,lb(r,n)]}),u=o.map(e=>a[e[0]]),d=ry(o);return[d,(0,n5.Z)({},r,{data:u,encode:Object.fromEntries([...c,...l])})]}};gN.props={};var gx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let gw="thresholds",gR=(e={})=>{let{groupChannels:t=["color"],binChannels:n=["x","y"]}=e,r=gx(e,["groupChannels","binChannels"]),a={};return gN(Object.assign(Object.assign(Object.assign({},Object.fromEntries(Object.entries(r).filter(([e])=>!e.startsWith(gw)))),Object.fromEntries(n.flatMap(e=>{let t=([t])=>+a[e].get(t).split(",")[1];return t.from=e,[[e,([t])=>+a[e].get(t).split(",")[0]],[`${e}1`,t]]}))),{groupBy:(e,i)=>{let{encode:o}=i,s=n.map(e=>{let[t]=lv(o,e);return t}),l=ri(r,gw),c=e.filter(e=>s.every(t=>ra(t[e]))),u=[...t.map(e=>{let[t]=lv(o,e);return t}).filter(ra).map(e=>t=>e[t]),...n.map((e,t)=>{let n=s[t],r=l[e]||function(e){let[t,n]=(0,rz.Z)(e);return Math.min(200,(0,gh.Z)(e,t,n))}(n),i=(0,gb.Z)().thresholds(r).value(e=>+n[e])(c),o=new Map(i.flatMap(e=>{let{x0:t,x1:n}=e,r=`${t},${n}`;return e.map(e=>[e,r])}));return a[e]=o,e=>o.get(e)})];return Array.from((0,n6.ZP)(c,e=>u.map(t=>t(e)).join("-")).values())}}))};gR.props={};let gL=(e={})=>{let{thresholds:t}=e;return gR(Object.assign(Object.assign({},e),{thresholdsX:t,groupChannels:["color"],binChannels:["x"]}))};gL.props={};var gD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let gP=(e={})=>{let{groupBy:t="x",reverse:n=!1,orderBy:r,padding:a}=e;return gD(e,["groupBy","reverse","orderBy","padding"]),(e,i)=>{let{data:o,encode:s,scale:l}=i,{series:c}=l,[u]=lv(s,"y"),[d]=lS(s,"series","color"),p=gc(d,c),f=(0,n5.Z)({},i,{scale:{series:{domain:p,paddingInner:a}}}),m=go(t,e,i),g=gs(r);if(!g)return[e,(0,n5.Z)(f,{encode:{series:lb(d)}})];let h=g(o,u,d);h&&gl(m,h);let b=Array(e.length);for(let e of m){n&&e.reverse();for(let t=0;t{let{padding:t=0,paddingX:n=t,paddingY:r=t,random:a=Math.random}=e;return(e,t)=>{let{encode:i,scale:o}=t,{x:s,y:l}=o,[c]=lv(i,"x"),[u]=lv(i,"y"),d=gM(c,s,n),p=gM(u,l,r),f=e.map(()=>(function(e,t,n){return t*(1-e)+n*e})(a(),...p)),m=e.map(()=>(function(e,t,n){return t*(1-e)+n*e})(a(),...d));return[e,(0,n5.Z)({scale:{x:{padding:.5},y:{padding:.5}}},t,{encode:{dy:lb(f),dx:lb(m)}})]}};gF.props={};let gB=(e={})=>{let{padding:t=0,random:n=Math.random}=e;return(e,r)=>{let{encode:a,scale:i}=r,{x:o}=i,[s]=lv(a,"x"),l=gM(s,o,t),c=e.map(()=>(function(e,t,n){return t*(1-e)+n*e})(n(),...l));return[e,(0,n5.Z)({scale:{x:{padding:.5}}},r,{encode:{dx:lb(c)}})]}};gB.props={};let gj=(e={})=>{let{padding:t=0,random:n=Math.random}=e;return(e,r)=>{let{encode:a,scale:i}=r,{y:o}=i,[s]=lv(a,"y"),l=gM(s,o,t),c=e.map(()=>(function(e,t,n){return t*(1-e)+n*e})(n(),...l));return[e,(0,n5.Z)({scale:{y:{padding:.5}}},r,{encode:{dy:lb(c)}})]}};gj.props={};var gU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let gH=(e={})=>{let{groupBy:t="x"}=e;return(e,n)=>{let{encode:r}=n,{x:a}=r,i=gU(r,["x"]),o=Object.entries(i).filter(([e])=>e.startsWith("y")).map(([e])=>[e,lv(r,e)[0]]),s=o.map(([t])=>[t,Array(e.length)]),l=go(t,e,n),c=Array(l.length);for(let e=0;eo.map(([,t])=>+t[e])),[r,a]=(0,rz.Z)(n);c[e]=(r+a)/2}let u=Math.max(...c);for(let e=0;e[e,lb(t,lv(r,e)[1])]))})]}};gH.props={};let gG=(e={})=>{let{groupBy:t="x",series:n=!0}=e;return(e,r)=>{let{encode:a}=r,[i]=lv(a,"y"),[o,s]=lv(a,"y1"),[l]=n?lS(a,"series","color"):lv(a,"color"),c=go(t,e,r),u=Array(e.length);for(let e of c){let t=e.map(e=>+i[e]);for(let n=0;nt!==n));u[r]=+i[r]>a?a:i[r]}}return[e,(0,n5.Z)({},r,{encode:{y1:lb(u,s)}})]}};gG.props={};let g$=e=>{let{groupBy:t=["x"],reducer:n=(e,t)=>t[e[0]],orderBy:r=null,reverse:a=!1,duration:i}=e;return(e,o)=>{let{encode:s}=o,l=Array.isArray(t)?t:[t],c=l.map(e=>[e,lv(s,e)[0]]);if(0===c.length)return[e,o];let u=[e];for(let[,e]of c){let t=[];for(let n of u){let r=Array.from((0,n6.ZP)(n,t=>e[t]).values());t.push(...r)}u=t}if(r){let[e]=lv(s,r);e&&u.sort((t,r)=>n(t,e)-n(r,e)),a&&u.reverse()}let d=(i||3e3)/u.length,[p]=i?[lT(e,d)]:lS(s,"enterDuration",lT(e,d)),[f]=lS(s,"enterDelay",lT(e,0)),m=Array(e.length);for(let e=0,t=0;e+p[e]);for(let e of n)m[e]=+f[e]+t;t+=r}return[e,(0,n5.Z)({},o,{encode:{enterDuration:lE(p),enterDelay:lE(m)}})]}};g$.props={};var gz=n(93209),gZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let gW=(e={})=>{let{groupBy:t="x",basis:n="max"}=e;return(e,r)=>{let{encode:a,tooltip:i}=r,{x:o}=a,s=gZ(a,["x"]),l=Object.entries(s).filter(([e])=>e.startsWith("y")).map(([e])=>[e,lv(a,e)[0]]),[,c]=l.find(([e])=>"y"===e),u=l.map(([t])=>[t,Array(e.length)]),d=go(t,e,r),p="function"==typeof n?n:({min:(e,t)=>(0,oq.Z)(e,e=>t[+e]),max:(e,t)=>(0,rA.Z)(e,e=>t[+e]),first:(e,t)=>t[e[0]],last:(e,t)=>t[e[e.length-1]],mean:(e,t)=>(0,fA.Z)(e,e=>t[+e]),median:(e,t)=>(0,gy.Z)(e,e=>t[+e]),sum:(e,t)=>(0,rS.Z)(e,e=>t[+e]),deviation:(e,t)=>(0,gz.Z)(e,e=>t[+e])})[n]||rA.Z;for(let e of d){let t=p(e,c);for(let n of e)for(let e=0;e[e,lb(t,lv(a,e)[1])]))},!f&&a.y0&&{tooltip:{items:[{channel:"y0"}]}}))]}};function gY(e,t){return[e[0]]}function gV(e,t){let n=e.length-1;return[e[n]]}function gq(e,t){let n=(0,a0.Z)(e,e=>t[e]);return[e[n]]}function gK(e,t){let n=(0,fS.Z)(e,e=>t[e]);return[e[n]]}gW.props={};let gX=(e={})=>{let{groupBy:t="series",channel:n,selector:r}=e;return(e,a)=>{let{encode:i}=a,o=go(t,e,a),[s]=lv(i,n),l="function"==typeof r?r:({first:gY,last:gV,max:gq,min:gK})[r]||gY;return[o.flatMap(e=>l(e,s)),a]}};gX.props={};var gQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let gJ=(e={})=>{let{selector:t}=e,n=gQ(e,["selector"]);return gX(Object.assign({channel:"x",selector:t},n))};gJ.props={};var g0=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let g1=(e={})=>{let{selector:t}=e,n=g0(e,["selector"]);return gX(Object.assign({channel:"y",selector:t},n))};g1.props={};var g2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let g3=(e={})=>{let{channels:t=["x","y"]}=e,n=g2(e,["channels"]);return gN(Object.assign(Object.assign({},n),{groupBy:(e,n)=>go(t,e,n)}))};g3.props={};let g4=(e={})=>g3(Object.assign(Object.assign({},e),{channels:["x","color","series"]}));g4.props={};let g5=(e={})=>g3(Object.assign(Object.assign({},e),{channels:["y","color","series"]}));g5.props={};let g6=(e={})=>g3(Object.assign(Object.assign({},e),{channels:["color"]}));g6.props={};var g9=n(28085),g8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let g7=(e={})=>{let{reverse:t=!1,slice:n,channel:r,ordinal:a=!0}=e,i=g8(e,["reverse","slice","channel","ordinal"]);return(e,o)=>a?function(e,t,n){var r;let{reverse:a,slice:i,channel:o}=n,s=g8(n,["reverse","slice","channel"]),{encode:l,scale:c={}}=t,u=null===(r=c[o])||void 0===r?void 0:r.domain,[d]=lv(l,o),p=function(e,t,n){let{by:r=e,reducer:a="max"}=t,[i]=lv(n,r);if("function"==typeof a)return e=>a(e,i);if("max"===a)return e=>(0,rA.Z)(e,e=>+i[e]);if("min"===a)return e=>(0,oq.Z)(e,e=>+i[e]);if("sum"===a)return e=>(0,rS.Z)(e,e=>+i[e]);if("median"===a)return e=>(0,gy.Z)(e,e=>+i[e]);if("mean"===a)return e=>(0,fA.Z)(e,e=>+i[e]);if("first"===a)return e=>i[e[0]];if("last"===a)return e=>i[e[e.length-1]];throw Error(`Unknown reducer: ${a}`)}(o,s,l),f=function(e,t,n){if(!Array.isArray(n))return e;let r=new Set(n);return e.filter(e=>r.has(t[e]))}(e,d,u),m=(0,g9.Z)(f,p,e=>d[e]);a&&m.reverse();let g=i?m.slice(..."number"==typeof i?[0,i]:i):m;return[e,(0,n5.Z)(t,{scale:{[o]:{domain:g}}})]}(e,o,Object.assign({reverse:t,slice:n,channel:r},i)):function(e,t,n){let{reverse:r,channel:a}=n,{encode:i}=t,[o]=lv(i,a),s=(0,ii.Z)(e,e=>o[e]);return r&&s.reverse(),[s,t]}(e,o,Object.assign({reverse:t,slice:n,channel:r},i))};g7.props={};let he=(e={})=>g7(Object.assign(Object.assign({},e),{channel:"x"}));he.props={};let ht=(e={})=>g7(Object.assign(Object.assign({},e),{channel:"y"}));ht.props={};let hn=(e={})=>g7(Object.assign(Object.assign({},e),{channel:"color"}));hn.props={};let hr=(e={})=>{let{field:t,channel:n="y",reducer:r="sum"}=e;return(e,a)=>{let{data:i,encode:o}=a,[s]=lv(o,"x"),l=t?"string"==typeof t?i.map(e=>e[t]):i.map(t):lv(o,n)[0],c=function(e,t){if("function"==typeof e)return n=>e(n,t);if("sum"===e)return e=>(0,rS.Z)(e,e=>+t[e]);throw Error(`Unknown reducer: ${e}`)}(r,l),u=(0,n6.Q3)(e,c,e=>s[e]).map(e=>e[1]);return[e,(0,n5.Z)({},a,{scale:{x:{flex:u}}})]}};hr.props={};let ha=e=>(t,n)=>[t,(0,n5.Z)({},n,{modifier:function(e){let{padding:t=0,direction:n="col"}=e;return(e,r,a)=>{let i=e.length;if(0===i)return[];let{innerWidth:o,innerHeight:s}=a,l=Math.ceil(Math.sqrt(r/(s/o))),c=o/l,u=Math.ceil(r/l),d=u*c;for(;d>s;)l+=1,c=o/l,d=(u=Math.ceil(r/l))*c;let p=s-u*c,f=u<=1?0:p/(u-1),[m,g]=u<=1?[(o-i*c)/(i-1),(s-c)/2]:[0,0];return e.map((e,r)=>{let[a,i,o,s]=aB(e),d="col"===n?r%l:Math.floor(r/u),h="col"===n?Math.floor(r/l):r%u,b=d*c,y=(u-h-1)*c+p,E=(c-t)/o,T=(c-t)/s;return`translate(${b-a+m*d+.5*t}, ${y-i-f*h-g+.5*t}) scale(${E}, ${T})`})}}(e),axis:!1})];ha.props={};var hi=n(80091);function ho(e,t,n,r){let a,i,o;let s=e.length;if(r>=s||0===r)return e;let l=n=>1*t[e[n]],c=t=>1*n[e[t]],u=[],d=(s-2)/(r-2),p=0;u.push(p);for(let e=0;ea&&(a=i,o=g);u.push(o),p=o}return u.push(s-1),u.map(t=>e[t])}let hs=(e={})=>{let{strategy:t="median",thresholds:n=2e3,groupBy:r=["series","color"]}=e,a=function(e){if("function"==typeof e)return e;if("lttb"===e)return ho;let t={first:e=>[e[0]],last:e=>[e[e.length-1]],min:(e,t,n)=>[e[(0,fS.Z)(e,e=>n[e])]],max:(e,t,n)=>[e[(0,a0.Z)(e,e=>n[e])]],median:(e,t,n)=>[e[(0,hi.medianIndex)(e,e=>n[e])]]},n=t[e]||t.median;return(e,t,r,a)=>{let i=Math.max(1,Math.floor(e.length/a)),o=function(e,t){let n=e.length,r=[],a=0;for(;an(e,t,r))}}(t);return(e,t)=>{let{encode:i}=t,o=go(r,e,t),[s]=lv(i,"x"),[l]=lv(i,"y");return[o.flatMap(e=>a(e,s,l,n)),t]}};hs.props={};let hl=(e={})=>(t,n)=>{let{encode:r,data:a}=n,i=Object.entries(e).map(([e,t])=>{let[n]=lv(r,e);if(!n)return null;let[a,i=!0]="object"==typeof t?[t.value,t.ordinal]:[t,!0];if("function"==typeof a)return e=>a(n[e]);if(i){let e=Array.isArray(a)?a:[a];return 0===e.length?null:t=>e.includes(n[t])}{let[e,t]=a;return r=>n[r]>=e&&n[r]<=t}}).filter(ra),o=t.filter(e=>i.every(t=>t(e))),s=o.map((e,t)=>t);if(0===i.length){let e=function(e){var t;let n;let{encode:r}=e,a=Object.assign(Object.assign({},e),{encode:Object.assign(Object.assign({},e.encode),{y:Object.assign(Object.assign({},e.encode.y),{value:[]})})}),i=null===(t=null==r?void 0:r.color)||void 0===t?void 0:t.field;if(!r||!i)return a;for(let[e,t]of Object.entries(r))("x"===e||"y"===e)&&t.field===i&&(n=Object.assign(Object.assign({},n),{[e]:Object.assign(Object.assign({},t),{value:[]})}));return n?Object.assign(Object.assign({},e),{encode:Object.assign(Object.assign({},e.encode),n)}):a}(n);return[t,e]}let l=Object.entries(r).map(([e,t])=>[e,Object.assign(Object.assign({},t),{value:s.map(e=>t.value[o[e]]).filter(e=>void 0!==e)})]);return[s,(0,n5.Z)({},n,{encode:Object.fromEntries(l),data:o.map(e=>a[e])})]};hl.props={};var hc=n(42132),hu=n(6586);let hd=e=>{let{value:t,format:n=t.split(".").pop(),delimiter:r=",",autoType:a=!0}=e;return()=>{var e,i,o,s;return e=void 0,i=void 0,o=void 0,s=function*(){let e=yield fetch(t);if("csv"===n){let t=yield e.text();return(0,hc.Z)(r).parse(t,a?hu.Z:n7)}if("json"===n)return yield e.json();throw Error(`Unknown format: ${n}.`)},new(o||(o=Promise))(function(t,n){function r(e){try{l(s.next(e))}catch(e){n(e)}}function a(e){try{l(s.throw(e))}catch(e){n(e)}}function l(e){var n;e.done?t(e.value):((n=e.value)instanceof o?n:new o(function(e){e(n)})).then(r,a)}l((s=s.apply(e,i||[])).next())})}};hd.props={};let hp=e=>{let{value:t}=e;return()=>t};hp.props={};let hf=e=>{let{fields:t=[]}=e,n=t.map(e=>{if(Array.isArray(e)){let[t,n=!0]=e;return[t,n]}return[e,!0]});return e=>[...e].sort((e,t)=>n.reduce((n,[r,a=!0])=>0!==n?n:a?e[r]t[r]?-1:+(e[r]!==t[r]),0))};hf.props={};let hm=e=>{let{callback:t}=e;return e=>Array.isArray(e)?[...e].sort(t):e};function hg(e){return null!=e&&!Number.isNaN(e)}hm.props={};let hh=e=>{let{callback:t=hg}=e;return e=>e.filter(t)};hh.props={};let hb=e=>{let{fields:t}=e;return e=>e.map(e=>(function(e,t=[]){return t.reduce((t,n)=>(n in e&&(t[n]=e[n]),t),{})})(e,t))};hb.props={};let hy=e=>t=>e&&0!==Object.keys(e).length?t.map(t=>Object.entries(t).reduce((t,[n,r])=>(t[e[n]||n]=r,t),{})):t;hy.props={};let hE=e=>{let{fields:t,key:n="key",value:r="value"}=e;return e=>t&&0!==Object.keys(t).length?e.flatMap(e=>t.map(t=>Object.assign(Object.assign({},e),{[n]:t,[r]:e[t]}))):e};hE.props={};let hT=e=>{let{start:t,end:n}=e;return e=>e.slice(t,n)};hT.props={};let hv=e=>{let{callback:t=n7}=e;return e=>t(e)};hv.props={};let hS=e=>{let{callback:t=n7}=e;return e=>Array.isArray(e)?e.map(t):e};function hA(e){return"string"==typeof e?t=>t[e]:e}hS.props={};let hO=e=>{let{join:t,on:n,select:r=[],as:a=r,unknown:i=NaN}=e,[o,s]=n,l=hA(s),c=hA(o),u=(0,n6.jJ)(t,([e])=>e,e=>l(e));return e=>e.map(e=>{let t=u.get(c(e));return Object.assign(Object.assign({},e),r.reduce((e,n,r)=>(e[a[r]]=t?t[n]:i,e),{}))})};hO.props={};var h_=n(53843),hk=n.n(h_);let hI=e=>{let{field:t,groupBy:n,as:r=["y","size"],min:a,max:i,size:o=10,width:s}=e,[l,c]=r;return e=>{let r=Array.from((0,n6.ZP)(e,e=>n.map(t=>e[t]).join("-")).values());return r.map(e=>{let n=hk().create(e.map(e=>e[t]),{min:a,max:i,size:o,width:s}),r=n.map(e=>e.x),u=n.map(e=>e.y);return Object.assign(Object.assign({},e[0]),{[l]:r,[c]:u})})}};hI.props={};let hC=()=>e=>(console.log("G2 data section:",e),e);hC.props={};let hN=Math.PI/180;function hx(e){return e.text}function hw(){return"serif"}function hR(){return"normal"}function hL(e){return e.value}function hD(){return 90*~~(2*Math.random())}function hP(){return 1}function hM(){}function hF(e){let t=e[0]/e[1];return function(e){return[t*(e*=.1)*Math.cos(e),e*Math.sin(e)]}}function hB(e){let t=[],n=-1;for(;++nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let h$={fontSize:[20,60],font:"Impact",padding:2,rotate:function(){return(~~(6*Math.random())-3)*30}};function hz(e){return new Promise((t,n)=>{if(e instanceof HTMLImageElement){t(e);return}if("string"==typeof e){let r=new Image;r.crossOrigin="anonymous",r.src=e,r.onload=()=>t(r),r.onerror=()=>{console.error(`'image ${e} load failed !!!'`),n()};return}n()})}let hZ=(e,t)=>n=>{var r,a,i,o;return r=void 0,a=void 0,i=void 0,o=function*(){let r=Object.assign({},h$,e,{canvas:t.createCanvas}),a=function(){let e=[256,256],t=hx,n=hw,r=hL,a=hR,i=hD,o=hP,s=hF,l=Math.random,c=hM,u=[],d=null,p=1/0,f=hj,m={};return m.start=function(){let[g,h]=e,b=function(e){e.width=e.height=1;let t=Math.sqrt(e.getContext("2d").getImageData(0,0,1,1).data.length>>2);e.width=2048/t,e.height=2048/t;let n=e.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",n.textBaseline="middle",{context:n,ratio:t}}(f()),y=m.board?m.board:hB((e[0]>>5)*e[1]),E=u.length,T=[],v=u.map(function(e,s,l){return e.text=t.call(this,e,s,l),e.font=n.call(this,e,s,l),e.style=hR.call(this,e,s,l),e.weight=a.call(this,e,s,l),e.rotate=i.call(this,e,s,l),e.size=~~r.call(this,e,s,l),e.padding=o.call(this,e,s,l),e}).sort(function(e,t){return t.size-e.size}),S=-1,A=m.board?[{x:0,y:0},{x:g,y:h}]:void 0;function O(){let t=Date.now();for(;Date.now()-t>1,t.y=h*(l()+.5)>>1,function(e,t,n,r){if(t.sprite)return;let a=e.context,i=e.ratio;a.clearRect(0,0,2048/i,2048/i);let o=0,s=0,l=0,c=n.length;for(--r;++r>5<<5,c=~~Math.max(Math.abs(i+o),Math.abs(i-o))}else e=e+31>>5<<5;if(c>l&&(l=c),o+e>=2048&&(o=0,s+=l,l=0),s+c>=2048)break;a.translate((o+(e>>1))/i,(s+(c>>1))/i),t.rotate&&a.rotate(t.rotate*hN),a.fillText(t.text,0,0),t.padding&&(a.lineWidth=2*t.padding,a.strokeText(t.text,0,0)),a.restore(),t.width=e,t.height=c,t.xoff=o,t.yoff=s,t.x1=e>>1,t.y1=c>>1,t.x0=-t.x1,t.y0=-t.y1,t.hasText=!0,o+=e}let u=a.getImageData(0,0,2048/i,2048/i).data,d=[];for(;--r>=0;){if(!(t=n[r]).hasText)continue;let e=t.width,a=e>>5,i=t.y1-t.y0;for(let e=0;e>5),r=u[(s+n)*2048+(o+t)<<2]?1<<31-t%32:0;d[e]|=r,l|=r}l?c=n:(t.y0++,i--,n--,s++)}t.y1=t.y0+c,t.sprite=d.slice(0,(t.y1-t.y0)*a)}}(b,t,v,S),t.hasText&&function(t,n,r){let a=n.x,i=n.y,o=Math.sqrt(e[0]*e[0]+e[1]*e[1]),c=s(e),u=.5>l()?1:-1,d,p=-u,f,m;for(;(d=c(p+=u))&&!(Math.min(Math.abs(f=~~d[0]),Math.abs(m=~~d[1]))>=o);)if(n.x=a+f,n.y=i+m,!(n.x+n.x0<0)&&!(n.y+n.y0<0)&&!(n.x+n.x1>e[0])&&!(n.y+n.y1>e[1])&&(!r||!function(e,t,n){n>>=5;let r=e.sprite,a=e.width>>5,i=e.x-(a<<4),o=127&i,s=32-o,l=e.y1-e.y0,c=(e.y+e.y0)*n+(i>>5),u;for(let e=0;e>>o:0))&t[c+n])return!0;c+=n}return!1}(n,t,e[0]))&&(!r||n.x+n.x1>r[0].x&&n.x+n.x0r[0].y&&n.y+n.y0>5,i=e[0]>>5,o=n.x-(a<<4),s=127&o,l=32-s,c=n.y1-n.y0,u,d=(n.y+n.y0)*i+(o>>5);for(let e=0;e>>s:0);d+=i}return delete n.sprite,!0}return!1}(y,t,A)&&(c.call(null,"word",{cloud:m,word:t}),T.push(t),A?m.hasImage||function(e,t){let n=e[0],r=e[1];t.x+t.x0r.x&&(r.x=t.x+t.x1),t.y+t.y1>r.y&&(r.y=t.y+t.y1)}(A,t):A=[{x:t.x+t.x0,y:t.y+t.y0},{x:t.x+t.x1,y:t.y+t.y1}],t.x-=e[0]>>1,t.y-=e[1]>>1)}m._tags=T,m._bounds=A,S>=E&&(m.stop(),c.call(null,"end",{cloud:m,words:T,bounds:A}))}return d&&clearInterval(d),d=setInterval(O,0),O(),m},m.stop=function(){return d&&(clearInterval(d),d=null),m},m.createMask=t=>{let n=document.createElement("canvas"),[r,a]=e;if(!r||!a)return;let i=r>>5,o=hB((r>>5)*a);n.width=r,n.height=a;let s=n.getContext("2d");s.drawImage(t,0,0,t.width,t.height,0,0,r,a);let l=s.getImageData(0,0,r,a).data;for(let e=0;e>5),a=e*r+t<<2,s=l[a]>=250&&l[a+1]>=250&&l[a+2]>=250,c=s?1<<31-t%32:0;o[n]|=c}m.board=o,m.hasImage=!0},m.timeInterval=function(e){p=null==e?1/0:e},m.words=function(e){u=e},m.size=function(t=[]){e=[+t[0],+t[1]]},m.text=function(e){t=hU(e)},m.font=function(e){n=hU(e)},m.fontWeight=function(e){a=hU(e)},m.rotate=function(e){i=hU(e)},m.canvas=function(e){f=hU(e)},m.spiral=function(e){s=hH[e]||e},m.fontSize=function(e){r=hU(e)},m.padding=function(e){o=hU(e)},m.random=function(e){l=hU(e)},m.on=function(e){c=hU(e)},m}();yield({set(e,t,n){if(void 0===r[e])return this;let i=t?t.call(null,r[e]):r[e];return n?n.call(null,i):"function"==typeof a[e]?a[e](i):a[e]=i,this},setAsync(e,t,n){var i,o,s,l;return i=this,o=void 0,s=void 0,l=function*(){if(void 0===r[e])return this;let i=t?yield t.call(null,r[e]):r[e];return n?n.call(null,i):"function"==typeof a[e]?a[e](i):a[e]=i,this},new(s||(s=Promise))(function(e,t){function n(e){try{a(l.next(e))}catch(e){t(e)}}function r(e){try{a(l.throw(e))}catch(e){t(e)}}function a(t){var a;t.done?e(t.value):((a=t.value)instanceof s?a:new s(function(e){e(a)})).then(n,r)}a((l=l.apply(i,o||[])).next())})}}).set("fontSize",e=>{let t=n.map(e=>e.value);return function(e,t){if("function"==typeof e)return e;if(Array.isArray(e)){let[n,r]=e;if(!t)return()=>(r+n)/2;let[a,i]=t;return i===a?()=>(r+n)/2:({value:e})=>(r-n)/(i-a)*(e-a)+n}return()=>e}(e,[(0,oq.Z)(t),(0,rA.Z)(t)])}).set("font").set("fontStyle").set("fontWeight").set("padding").set("rotate").set("size").set("spiral").set("timeInterval").set("random").set("text").set("on").set("canvas").setAsync("imageMask",hz,a.createMask),a.words([...n]);let i=a.start(),[o,s]=r.size,{_bounds:l=[{x:0,y:0},{x:o,y:s}],_tags:c,hasImage:u}=i,d=c.map(e=>{var{x:t,y:n,font:r}=e;return Object.assign(Object.assign({},hG(e,["x","y","font"])),{x:t+o/2,y:n+s/2,fontFamily:r})}),[{x:p,y:f},{x:m,y:g}]=l,h={text:"",value:0,opacity:0,fontSize:0};return d.push(Object.assign(Object.assign({},h),{x:u?0:p,y:u?0:f}),Object.assign(Object.assign({},h),{x:u?o:m,y:u?s:g})),d},new(i||(i=Promise))(function(e,t){function n(e){try{l(o.next(e))}catch(e){t(e)}}function s(e){try{l(o.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof i?r:new i(function(e){e(r)})).then(n,s)}l((o=o.apply(r,a||[])).next())})};function hW(e){let{min:t,max:n}=e;return[[t[0],t[1]],[n[0],n[1]]]}function hY(e,t){let[n,r]=e,[a,i]=t;return n>=a[0]&&n<=i[0]&&r>=a[1]&&r<=i[1]}function hV(){let e=new Map;return[t=>e.get(t),(t,n)=>e.set(t,n)]}function hq(e){let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}function hK(e,t,n){return .2126*hq(e)+.7152*hq(t)+.0722*hq(n)}function hX(e,t){let{r:n,g:r,b:a}=e,{r:i,g:o,b:s}=t,l=hK(n,r,a),c=hK(i,o,s);return(Math.max(l,c)+.05)/(Math.min(l,c)+.05)}hZ.props={};let hQ=(e,t)=>{let[[n,r],[a,i]]=t,[[o,s],[l,c]]=e,u=0,d=0;return oa&&(u=a-l),si&&(d=i-c),[u,d]};var hJ=n(30348),h0=n(70603),h1=n(60261),h2=n(33487),h3=n(84699),h4=n(58271),h5=n(72051),h6=n(26477),h9=n(75053),h8=n(40552),h7=n(11261),be=n(40916),bt=n(93437),bn=n(32427),br=n(23007),ba=n(38839),bi=n(50435),bo=n(30378),bs=n(17421),bl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function bc(e){let{data:t}=e;if(Array.isArray(t))return Object.assign(Object.assign({},e),{data:{value:t}});let{type:n}=t;return"graticule10"===n?Object.assign(Object.assign({},e),{data:{value:[(0,h0.e)()]}}):"sphere"===n?Object.assign(Object.assign({},e),{sphere:!0,data:{value:[{type:"Sphere"}]}}):e}function bu(e){return"geoPath"===e.type}let bd=()=>e=>{let t;let{children:n,coordinate:r={}}=e;if(!Array.isArray(n))return[];let{type:a="equalEarth"}=r,i=bl(r,["type"]),o=function(e){if("function"==typeof e)return e;let t=`geo${(0,rg.Z)(e)}`,n=J[t];if(!n)throw Error(`Unknown coordinate: ${e}`);return n}(a),s=n.map(bc);return[Object.assign(Object.assign({},e),{type:"view",scale:{x:{type:"identity"},y:{type:"identity"}},axis:!1,coordinate:{type:function(){return[["custom",(e,n,r,a)=>{let l=o();!function(e,t,n,r){let{outline:a=(()=>{let e=t.filter(bu),n=e.find(e=>e.sphere);return n?{type:"Sphere"}:{type:"FeatureCollection",features:e.filter(e=>!e.sphere).flatMap(e=>e.data.value).flatMap(e=>(function(e){if(!e||!e.type)return null;let t={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featureCollection"}[e.type];return t?"geometry"===t?{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:e}]}:"feature"===t?{type:"FeatureCollection",features:[e]}:"featureCollection"===t?e:void 0:null})(e).features)}})()}=r,{size:i="fitExtent"}=r;"fitExtent"===i?function(e,t,n){let{x:r,y:a,width:i,height:o}=n;e.fitExtent([[r,a],[i,o]],t)}(e,a,n):"fitWidth"===i&&function(e,t,n){let{width:r,height:a}=n,[[i,o],[s,l]]=(0,hJ.Z)(e.fitWidth(r,t)).bounds(t),c=Math.ceil(l-o),u=Math.min(Math.ceil(s-i),c),d=e.scale()*(u-1)/u,[p,f]=e.translate();e.scale(d).translate([p,f+(a-c)/2]).precision(.2)}(e,a,n)}(l,s,{x:e,y:n,width:r,height:a},i),function(e,t){var n;for(let[r,a]of Object.entries(t))null===(n=e[r])||void 0===n||n.call(e,a)}(l,i),t=(0,hJ.Z)(l);let c=new rG.b({domain:[e,e+r]}),u=new rG.b({domain:[n,n+a]}),d=e=>{let t=l(e);if(!t)return[null,null];let[n,r]=t;return[c.map(n),u.map(r)]},p=e=>{if(!e)return null;let[t,n]=e,r=[c.invert(t),u.invert(n)];return l.invert(r)};return{transform:e=>d(e),untransform:e=>p(e)}}]]}},children:s.flatMap(e=>bu(e)?function(e){let{style:n,tooltip:r={}}=e;return Object.assign(Object.assign({},e),{type:"path",tooltip:o0(r,{title:"id",items:[{channel:"color"}]}),style:Object.assign(Object.assign({},n),{d:e=>t(e)||[]})})}(e):e)})]};bd.props={};var bp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let bf=()=>e=>{let{type:t,data:n,scale:r,encode:a,style:i,animate:o,key:s,state:l}=e,c=bp(e,["type","data","scale","encode","style","animate","key","state"]);return[Object.assign(Object.assign({type:"geoView"},c),{children:[{type:"geoPath",key:`${s}-0`,data:{value:n},scale:r,encode:a,style:i,animate:o,state:l}]})]};bf.props={};var bm=n(43231),bg=n(58571),bh=n(69299),bb=n(77715),by=n(26464),bE=n(32878),bT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let bv={joint:!0},bS={type:"link",axis:!1,legend:!1,encode:{x:[e=>e.source.x,e=>e.target.x],y:[e=>e.source.y,e=>e.target.y]},style:{stroke:"#999",strokeOpacity:.6}},bA={type:"point",axis:!1,legend:!1,encode:{x:"x",y:"y",size:5,color:"group",shape:"point"},style:{stroke:"#fff"}},bO={text:""},b_=e=>{let{data:t,encode:n={},scale:r,style:a={},layout:i={},nodeLabels:o=[],linkLabels:s=[],animate:l={},tooltip:c={}}=e,{nodeKey:u=e=>e.id,linkKey:d=e=>e.id}=n,p=bT(n,["nodeKey","linkKey"]),f=Object.assign({nodeKey:u,linkKey:d},p),m=ri(f,"node"),g=ri(f,"link"),{links:h,nodes:b}=lX(t,f),{nodesData:y,linksData:E}=function(e,t,n){let{nodes:r,links:a}=e,{joint:i,nodeStrength:o,linkStrength:s}=t,{nodeKey:l=e=>e.id,linkKey:c=e=>e.id}=n,u=(0,bm.Z)(),d=(0,bg.Z)(a).id(lq(c));"function"==typeof o&&u.strength(o),"function"==typeof s&&d.strength(s);let p=(0,bh.Z)(r).force("link",d).force("charge",u);i?p.force("center",(0,bb.Z)()):p.force("x",(0,by.Z)()).force("y",(0,bE.Z)()),p.stop();let f=Math.ceil(Math.log(p.alphaMin())/Math.log(1-p.alphaDecay()));for(let e=0;e({name:"source",value:lq(d)(e.source)}),e=>({name:"target",value:lq(d)(e.target)})]}),v=oJ(c,"node",{items:[e=>({name:"key",value:lq(u)(e)})]},!0);return[(0,n5.Z)({},bS,{data:E,encode:g,labels:s,style:ri(a,"link"),tooltip:T,animate:o2(l,"link")}),(0,n5.Z)({},bA,{data:y,encode:Object.assign({},m),scale:r,style:ri(a,"node"),tooltip:v,labels:[Object.assign(Object.assign({},bO),ri(a,"label")),...o],animate:o2(l,"link")})]};b_.props={};var bk=n(81594),bI=n(95608);let bC=e=>t=>n=>{let{field:r="value",nodeSize:a,separation:i,sortBy:o,as:s=["x","y"]}=t,[l,c]=s,u=(0,sK.ZP)(n,e=>e.children).sum(e=>e[r]).sort(o),d=e();d.size([1,1]),a&&d.nodeSize(a),i&&d.separation(i),d(u);let p=[];u.each(e=>{e[l]=e.x,e[c]=e.y,e.name=e.data.name,p.push(e)});let f=u.links();return f.forEach(e=>{e[l]=[e.source[l],e.target[l]],e[c]=[e.source[c],e.target[c]]}),{nodes:p,edges:f}},bN=e=>bC(bI.Z)(e);bN.props={};let bx=e=>bC(bk.Z)(e);bx.props={};let bw={sortBy:(e,t)=>t.value-e.value},bR={axis:!1,legend:!1,type:"point",encode:{x:"x",y:"y",size:2,shape:"point"}},bL={type:"link",encode:{x:"x",y:"y",shape:"smooth"}},bD={text:"",fontSize:10},bP=e=>{let{data:t,encode:n={},scale:r={},style:a={},layout:i={},nodeLabels:o=[],linkLabels:s=[],animate:l={},tooltip:c={}}=e,u=null==n?void 0:n.value,{nodes:d,edges:p}=bx(Object.assign(Object.assign(Object.assign({},bw),i),{field:u}))(t),f=oJ(c,"node",{title:"name",items:["value"]},!0),m=oJ(c,"link",{title:"",items:[e=>({name:"source",value:e.source.name}),e=>({name:"target",value:e.target.name})]});return[(0,n5.Z)({},bL,{data:p,encode:ri(n,"link"),scale:ri(r,"link"),labels:s,style:Object.assign({stroke:"#999"},ri(a,"link")),tooltip:m,animate:o2(l,"link")}),(0,n5.Z)({},bR,{data:d,scale:ri(r,"node"),encode:ri(n,"node"),labels:[Object.assign(Object.assign({},bD),ri(a,"label")),...o],style:Object.assign({},ri(a,"node")),tooltip:f,animate:o2(l,"node")})]};bP.props={};var bM=n(45571),bF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let bB=(e,t)=>({size:[e,t],padding:0,sort:(e,t)=>t.value-e.value}),bj=(e,t,n)=>({type:"point",axis:!1,legend:!1,scale:{x:{domain:[0,e]},y:{domain:[0,t]},size:{type:"identity"}},encode:{x:"x",y:"y",size:"r",shape:"point"},style:{fill:n.color?void 0:e=>0===e.height?"#ddd":"#fff",stroke:n.color?void 0:e=>0===e.height?"":"#000"}}),bU={text:"",position:"inside",textOverflow:"clip",wordWrap:!0,maxLines:1,wordWrapWidth:e=>2*e.r},bH={title:e=>e.data.name,items:[{field:"value"}]},bG=(e,t,n)=>{let{value:r}=n,a=(0,rm.Z)(e)?(0,mh.Z)().path(t.path)(e):(0,sK.ZP)(e);return r?a.sum(e=>lq(r)(e)).sort(t.sort):a.count(),(0,bM.Z)().size(t.size).padding(t.padding)(a),a.descendants()},b$=(e,t)=>{let{width:n,height:r}=t,{data:a,encode:i={},scale:o={},style:s={},layout:l={},labels:c=[],tooltip:u={}}=e,d=bF(e,["data","encode","scale","style","layout","labels","tooltip"]),p=bj(n,r,i),f=bG(a,(0,n5.Z)({},bB(n,r),l),(0,n5.Z)({},p.encode,i)),m=ri(s,"label");return(0,n5.Z)({},p,Object.assign(Object.assign({data:f,encode:i,scale:o,style:s,labels:[Object.assign(Object.assign({},bU),m),...c]},d),{tooltip:o0(u,bH),axis:!1}))};function bz(e){return e.target.depth}function bZ(e,t){return e.sourceLinks.length?e.depth:t-1}function bW(e){return function(){return e}}function bY(e,t){return bq(e.source,t.source)||e.index-t.index}function bV(e,t){return bq(e.target,t.target)||e.index-t.index}function bq(e,t){return e.y0-t.y0}function bK(e){return e.value}function bX(e){return e.index}function bQ(e){return e.nodes}function bJ(e){return e.links}function b0(e,t){let n=e.get(t);if(!n)throw Error("missing: "+t);return n}function b1({nodes:e}){for(let t of e){let e=t.y0,n=e;for(let n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(let e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}b$.props={};let b2={nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodes:e=>e.nodes,links:e=>e.links,nodeSort:void 0,linkSort:void 0,iterations:6},b3={left:function(e){return e.depth},right:function(e,t){return t-1-e.height},center:function(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?(0,oq.Z)(e.sourceLinks,bz)-1:0},justify:bZ},b4=e=>t=>{let{nodeId:n,nodeSort:r,nodeAlign:a,nodeWidth:i,nodePadding:o,nodeDepth:s,nodes:l,links:c,linkSort:u,iterations:d}=Object.assign({},b2,e),p=(function(){let e,t,n,r=0,a=0,i=1,o=1,s=24,l=8,c,u=bX,d=bZ,p=bQ,f=bJ,m=6;function g(g){let b={nodes:p(g),links:f(g)};return function({nodes:e,links:t}){e.forEach((e,t)=>{e.index=t,e.sourceLinks=[],e.targetLinks=[]});let r=new Map(e.map(e=>[u(e),e]));if(t.forEach((e,t)=>{e.index=t;let{source:n,target:a}=e;"object"!=typeof n&&(n=e.source=b0(r,n)),"object"!=typeof a&&(a=e.target=b0(r,a)),n.sourceLinks.push(e),a.targetLinks.push(e)}),null!=n)for(let{sourceLinks:t,targetLinks:r}of e)t.sort(n),r.sort(n)}(b),function({nodes:e}){for(let t of e)t.value=void 0===t.fixedValue?Math.max((0,rS.Z)(t.sourceLinks,bK),(0,rS.Z)(t.targetLinks,bK)):t.fixedValue}(b),function({nodes:t}){let n=t.length,r=new Set(t),a=new Set,i=0;for(;r.size;){if(r.forEach(e=>{for(let{target:t}of(e.depth=i,e.sourceLinks))a.add(t)}),++i>n)throw Error("circular link");r=a,a=new Set}if(e){let n;let r=Math.max((0,rA.Z)(t,e=>e.depth)+1,0);for(let a=0;a{for(let{source:t}of(e.height=a,e.targetLinks))r.add(t)}),++a>t)throw Error("circular link");n=r,r=new Set}}(b),function(e){let u=function({nodes:e}){let n=Math.max((0,rA.Z)(e,e=>e.depth)+1,0),a=(i-r-s)/(n-1),o=Array(n).fill(0).map(()=>[]);for(let t of e){let e=Math.max(0,Math.min(n-1,Math.floor(d.call(null,t,n))));t.layer=e,t.x0=r+e*a,t.x1=t.x0+s,o[e]?o[e].push(t):o[e]=[t]}if(t)for(let e of o)e.sort(t);return o}(e);c=Math.min(l,(o-a)/((0,rA.Z)(u,e=>e.length)-1)),function(e){let t=(0,oq.Z)(e,e=>(o-a-(e.length-1)*c)/(0,rS.Z)(e,bK));for(let r of e){let e=a;for(let n of r)for(let r of(n.y0=e,n.y1=e+n.value*t,e=n.y1+c,n.sourceLinks))r.width=r.value*t;e=(o-e+c)/(r.length+1);for(let t=0;t=0;--i){let a=e[i];for(let e of a){let t=0,r=0;for(let{target:n,value:a}of e.sourceLinks){let i=a*(n.layer-e.layer);t+=function(e,t){let n=t.y0-(t.targetLinks.length-1)*c/2;for(let{source:r,width:a}of t.targetLinks){if(r===e)break;n+=a+c}for(let{target:r,width:a}of e.sourceLinks){if(r===t)break;n-=a}return n}(e,n)*i,r+=i}if(!(r>0))continue;let a=(t/r-e.y0)*n;e.y0+=a,e.y1+=a,E(e)}void 0===t&&a.sort(bq),a.length&&h(a,r)}})(u,n,r),function(e,n,r){for(let a=1,i=e.length;a0))continue;let a=(t/r-e.y0)*n;e.y0+=a,e.y1+=a,E(e)}void 0===t&&i.sort(bq),i.length&&h(i,r)}}(u,n,r)}}(b),b1(b),b}function h(e,t){let n=e.length>>1,r=e[n];y(e,r.y0-c,n-1,t),b(e,r.y1+c,n+1,t),y(e,o,e.length-1,t),b(e,a,0,t)}function b(e,t,n,r){for(;n1e-6&&(a.y0+=i,a.y1+=i),t=a.y1+c}}function y(e,t,n,r){for(;n>=0;--n){let a=e[n],i=(a.y1-t)*r;i>1e-6&&(a.y0-=i,a.y1-=i),t=a.y0-c}}function E({sourceLinks:e,targetLinks:t}){if(void 0===n){for(let{source:{sourceLinks:e}}of t)e.sort(bV);for(let{target:{targetLinks:t}}of e)t.sort(bY)}}return g.update=function(e){return b1(e),e},g.nodeId=function(e){return arguments.length?(u="function"==typeof e?e:bW(e),g):u},g.nodeAlign=function(e){return arguments.length?(d="function"==typeof e?e:bW(e),g):d},g.nodeDepth=function(t){return arguments.length?(e=t,g):e},g.nodeSort=function(e){return arguments.length?(t=e,g):t},g.nodeWidth=function(e){return arguments.length?(s=+e,g):s},g.nodePadding=function(e){return arguments.length?(l=c=+e,g):l},g.nodes=function(e){return arguments.length?(p="function"==typeof e?e:bW(e),g):p},g.links=function(e){return arguments.length?(f="function"==typeof e?e:bW(e),g):f},g.linkSort=function(e){return arguments.length?(n=e,g):n},g.size=function(e){return arguments.length?(r=a=0,i=+e[0],o=+e[1],g):[i-r,o-a]},g.extent=function(e){return arguments.length?(r=+e[0][0],i=+e[1][0],a=+e[0][1],o=+e[1][1],g):[[r,a],[i,o]]},g.iterations=function(e){return arguments.length?(m=+e,g):m},g})().nodeSort(r).linkSort(u).links(c).nodes(l).nodeWidth(i).nodePadding(o).nodeDepth(s).nodeAlign(function(e){let t=typeof e;return"string"===t?b3[e]||bZ:"function"===t?e:bZ}(a)).iterations(d).extent([[0,0],[1,1]]);"function"==typeof n&&p.nodeId(n);let f=p(t),{nodes:m,links:g}=f,h=m.map(e=>{let{x0:t,x1:n,y0:r,y1:a}=e;return Object.assign(Object.assign({},e),{x:[t,n,n,t],y:[r,r,a,a]})}),b=g.map(e=>{let{source:t,target:n}=e,r=t.x1,a=n.x0,i=e.width/2;return Object.assign(Object.assign({},e),{x:[r,r,a,a],y:[e.y0+i,e.y0-i,e.y1+i,e.y1-i]})});return{nodes:h,links:b}};b4.props={};var b5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let b6={nodeId:e=>e.key,nodeWidth:.02,nodePadding:.02},b9={type:"polygon",axis:!1,legend:!1,encode:{shape:"polygon",x:"x",y:"y"},scale:{x:{type:"identity"},y:{type:"identity"}},style:{stroke:"#000"}},b8={type:"polygon",axis:!1,legend:!1,encode:{shape:"ribbon",x:"x",y:"y"},style:{fillOpacity:.5,stroke:void 0}},b7={textAlign:e=>e.x[0]<.5?"start":"end",position:e=>e.x[0]<.5?"right":"left",fontSize:10},ye=e=>{let{data:t,encode:n={},scale:r,style:a={},layout:i={},nodeLabels:o=[],linkLabels:s=[],animate:l={},tooltip:c={}}=e,{links:u,nodes:d}=lX(t,n),p=ri(n,"node"),f=ri(n,"link"),{key:m=e=>e.key,color:g=m}=p,{links:h,nodes:b}=b4(Object.assign(Object.assign(Object.assign({},b6),{nodeId:lq(m)}),i))({links:u,nodes:d}),y=ri(a,"label"),{text:E=m,spacing:T=5}=y,v=b5(y,["text","spacing"]),S=lq(m),A=oJ(c,"node",{title:S,items:[{field:"value"}]},!0),O=oJ(c,"link",{title:"",items:[e=>({name:"source",value:S(e.source)}),e=>({name:"target",value:S(e.target)})]});return[(0,n5.Z)({},b9,{data:b,encode:Object.assign(Object.assign({},p),{color:g}),scale:r,style:ri(a,"node"),labels:[Object.assign(Object.assign(Object.assign({},b7),{text:E,dx:e=>e.x[0]<.5?T:-T}),v),...o],tooltip:A,animate:o2(l,"node"),axis:!1}),(0,n5.Z)({},b8,{data:h,encode:f,labels:s,style:Object.assign({fill:f.color?void 0:"#aaa",lineWidth:0},ri(a,"link")),tooltip:O,animate:o2(l,"link")})]};function yt(e,t){return t.value-e.value}function yn(e,t){return t.frequency-e.frequency}function yr(e,t){return`${e.id}`.localeCompare(`${t.id}`)}function ya(e,t){return`${e.name}`.localeCompare(`${t.name}`)}ye.props={};let yi={y:0,thickness:.05,weight:!1,marginRatio:.1,id:e=>e.id,source:e=>e.source,target:e=>e.target,sourceWeight:e=>e.value||1,targetWeight:e=>e.value||1,sortBy:null},yo=e=>t=>(function(e){let{y:t,thickness:n,weight:r,marginRatio:a,id:i,source:o,target:s,sourceWeight:l,targetWeight:c,sortBy:u}=Object.assign(Object.assign({},yi),e);return function(e){let d=e.nodes.map(e=>Object.assign({},e)),p=e.edges.map(e=>Object.assign({},e));return function(e,t){t.forEach(e=>{e.source=o(e),e.target=s(e),e.sourceWeight=l(e),e.targetWeight=c(e)});let n=(0,n6.ZP)(t,e=>e.source),r=(0,n6.ZP)(t,e=>e.target);e.forEach(e=>{e.id=i(e);let t=n.has(e.id)?n.get(e.id):[],a=r.has(e.id)?r.get(e.id):[];e.frequency=t.length+a.length,e.value=(0,rS.Z)(t,e=>e.sourceWeight)+(0,rS.Z)(a,e=>e.targetWeight)})}(d,p),function(e,t){let n="function"==typeof u?u:ee[u];n&&e.sort(n)}(d,0),function(e,i){let o=e.length;if(!o)throw rn("Invalid nodes: it's empty!");if(!r){let n=1/o;return e.forEach((e,r)=>{e.x=(r+.5)*n,e.y=t})}let s=a/(2*o),l=e.reduce((e,t)=>e+=t.value,0);e.reduce((e,r)=>{r.weight=r.value/l,r.width=r.weight*(1-a),r.height=n;let i=s+e,o=i+r.width,c=t-n/2,u=c+n;return r.x=[i,o,o,i],r.y=[c,c,u,u],e+r.width+2*s},0)}(d,0),function(e,n){let a=new Map(e.map(e=>[e.id,e]));if(!r)return n.forEach(e=>{let t=o(e),n=s(e),r=a.get(t),i=a.get(n);r&&i&&(e.x=[r.x,i.x],e.y=[r.y,i.y])});n.forEach(e=>{e.x=[0,0,0,0],e.y=[t,t,t,t]});let i=(0,n6.ZP)(n,e=>e.source),l=(0,n6.ZP)(n,e=>e.target);e.forEach(e=>{let{edges:t,width:n,x:r,y:a,value:o,id:s}=e,c=i.get(s)||[],u=l.get(s)||[],d=0;c.map(e=>{let t=e.sourceWeight/o*n;e.x[0]=r[0]+d,e.x[1]=r[0]+d+t,d+=t}),u.forEach(e=>{let t=e.targetWeight/o*n;e.x[3]=r[0]+d,e.x[2]=r[0]+d+t,d+=t})})}(d,p),{nodes:d,edges:p}}})(e)(t);yo.props={};var ys=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let yl={y:0,thickness:.05,marginRatio:.1,id:e=>e.key,source:e=>e.source,target:e=>e.target,sourceWeight:e=>e.value||1,targetWeight:e=>e.value||1,sortBy:null},yc={type:"polygon",axis:!1,legend:!1,encode:{shape:"polygon",x:"x",y:"y"},scale:{x:{type:"identity"},y:{type:"identity"}},style:{opacity:1,fillOpacity:1,lineWidth:1}},yu={type:"polygon",axis:!1,legend:!1,encode:{shape:"ribbon",x:"x",y:"y"},style:{opacity:.5,lineWidth:1}},yd={position:"outside",fontSize:10},yp=(e,t)=>{let{data:n,encode:r={},scale:a,style:i={},layout:o={},nodeLabels:s=[],linkLabels:l=[],animate:c={},tooltip:u={}}=e,{nodes:d,links:p}=lX(n,r),f=ri(r,"node"),m=ri(r,"link"),{key:g=e=>e.key,color:h=g}=f,{linkEncodeColor:b=e=>e.source}=m,{nodeWidthRatio:y=yl.thickness,nodePaddingRatio:E=yl.marginRatio}=o,T=ys(o,["nodeWidthRatio","nodePaddingRatio"]),{nodes:v,edges:S}=yo(Object.assign(Object.assign(Object.assign(Object.assign({},yl),{id:lq(g),thickness:y,marginRatio:E}),T),{weight:!0}))({nodes:d,edges:p}),A=ri(i,"label"),{text:O=g}=A,_=ys(A,["text"]),k=oJ(u,"node",{title:"",items:[e=>({name:e.key,value:e.value})]},!0),I=oJ(u,"link",{title:"",items:[e=>({name:`${e.source} -> ${e.target}`,value:e.value})]}),{height:C,width:N}=t,x=Math.min(C,N);return[(0,n5.Z)({},yu,{data:S,encode:Object.assign(Object.assign({},m),{color:b}),labels:l,style:Object.assign({fill:b?void 0:"#aaa"},ri(i,"link")),tooltip:I,animate:o2(c,"link")}),(0,n5.Z)({},yc,{data:v,encode:Object.assign(Object.assign({},f),{color:h}),scale:a,style:ri(i,"node"),coordinate:{type:"polar",outerRadius:(x-20)/x,startAngle:-(2*Math.PI),endAngle:0},labels:[Object.assign(Object.assign(Object.assign({},yd),{text:O}),_),...s],tooltip:k,animate:o2(c,"node"),axis:!1})]};yp.props={};var yf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let ym=(e,t)=>({tile:"treemapSquarify",ratio:.5*(1+Math.sqrt(5)),size:[e,t],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,sort:(e,t)=>t.value-e.value,layer:0}),yg=(e,t)=>({type:"rect",axis:!1,encode:{x:"x",y:"y",key:"id",color:e=>e.path[1]},scale:{x:{domain:[0,e],range:[0,1]},y:{domain:[0,t],range:[0,1]}},style:{stroke:"#fff"},state:{active:{opacity:.6},inactive:{opacity:1}}}),yh={fontSize:10,text:e=>pF(e.path),position:"inside",fill:"#000",textOverflow:"clip",wordWrap:!0,maxLines:1,wordWrapWidth:e=>e.x1-e.x0},yb={title:e=>{var t,n;return null===(n=null===(t=e.path)||void 0===t?void 0:t.join)||void 0===n?void 0:n.call(t,".")},items:[{field:"value"}]},yy={title:e=>pF(e.path),items:[{field:"value"}]},yE=(e,t)=>{let{width:n,height:r,options:a}=t,{data:i,encode:o={},scale:s,style:l={},layout:c={},labels:u=[],tooltip:d={}}=e,p=yf(e,["data","encode","scale","style","layout","labels","tooltip"]),f=(0,sY.Z)(a,["interaction","treemapDrillDown"]),m=(0,n5.Z)({},ym(n,r),c,{layer:f?e=>1===e.depth:c.layer}),[g,h]=mA(i,m,o),b=ri(l,"label");return(0,n5.Z)({},yg(n,r),Object.assign(Object.assign({data:g,scale:s,style:l,labels:[Object.assign(Object.assign({},yh),b),...u]},p),{encode:o,tooltip:o0(d,yb),axis:!1}),f?{interaction:Object.assign(Object.assign({},p.interaction),{treemapDrillDown:f?Object.assign(Object.assign({},f),{originData:h,layout:m}):void 0}),encode:Object.assign({color:e=>pF(e.path)},o),tooltip:o0(d,yy)}:{})};yE.props={};var yT=n(51758),yv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function yS(e,t){return(0,oq.Z)(e,e=>t[e])}function yA(e,t){return(0,rA.Z)(e,e=>t[e])}function yO(e,t){let n=2.5*y_(e,t)-1.5*yI(e,t);return(0,oq.Z)(e,e=>t[e]>=n?t[e]:NaN)}function y_(e,t){return(0,yT.Z)(e,.25,e=>t[e])}function yk(e,t){return(0,yT.Z)(e,.5,e=>t[e])}function yI(e,t){return(0,yT.Z)(e,.75,e=>t[e])}function yC(e,t){let n=2.5*yI(e,t)-1.5*y_(e,t);return(0,rA.Z)(e,e=>t[e]<=n?t[e]:NaN)}function yN(){return(e,t)=>{let{encode:n}=t,{y:r,x:a}=n,{value:i}=r,{value:o}=a,s=Array.from((0,n6.ZP)(e,e=>o[+e]).values()),l=s.flatMap(e=>{let t=yO(e,i),n=yC(e,i);return e.filter(e=>i[e]n)});return[l,t]}}let yx=e=>{let{data:t,encode:n,style:r={},tooltip:a={},transform:i,animate:o}=e,s=yv(e,["data","encode","style","tooltip","transform","animate"]),{point:l=!0}=r,c=yv(r,["point"]),{y:u}=n,d={y:u,y1:u,y2:u,y3:u,y4:u},p={y1:y_,y2:yk,y3:yI},f=oJ(a,"box",{items:[{channel:"y",name:"min"},{channel:"y1",name:"q1"},{channel:"y2",name:"q2"},{channel:"y3",name:"q3"},{channel:"y4",name:"max"}]},!0),m=oJ(a,"point",{title:{channel:"x"},items:[{name:"outlier",channel:"y"}]});if(!l)return Object.assign({type:"box",data:t,transform:[Object.assign(Object.assign({type:"groupX",y:yS},p),{y4:yA})],encode:Object.assign(Object.assign({},n),d),style:c,tooltip:f},s);let g=ri(c,"box"),h=ri(c,"point");return[Object.assign({type:"box",data:t,transform:[Object.assign(Object.assign({type:"groupX",y:yO},p),{y4:yC})],encode:Object.assign(Object.assign({},n),d),style:g,tooltip:f,animate:o2(o,"box")},s),{type:"point",data:t,transform:[{type:yN}],encode:n,style:Object.assign({},h),tooltip:m,animate:o2(o,"point")}]};yx.props={};let yw=(e,t)=>Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2))/2,yR=(e,t)=>{if(!t)return;let{coordinate:n}=t;if(!(null==n?void 0:n.getCenter))return;let r=n.getCenter();return(n,a,i)=>{let{document:o}=t.canvas,{color:s,index:l}=a,c=o.createElement("g",{}),u=yw(n[0],n[1]),d=2*yw(n[0],r),p=o.createElement("path",{style:Object.assign(Object.assign(Object.assign({d:[["M",...n[0]],["A",u,u,0,1,0,...n[1]],["A",d+2*u,d+2*u,0,0,0,...n[2]],["A",u,u,0,1,0===l?0:1,...n[3]],["A",d,d,0,0,1,...n[0]],["Z"]]},i),(0,r$.Z)(e,["shape","last","first"])),{fill:s||i.color})});return c.appendChild(p),c}};var yL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let yD={coordinate:{type:"radial",innerRadius:.9,outerRadius:1,startAngle:-1.1*Math.PI,endAngle:.1*Math.PI},axis:{x:!1},legend:!1,tooltip:!1,encode:{x:"x",y:"y",color:"color"},scale:{color:{range:["#30BF78","#D0D0D0"]}}},yP={style:{shape:(e,t)=>{let{shape:n,radius:r}=e,a=yL(e,["shape","radius"]),i=ri(a,"pointer"),o=ri(a,"pin"),{shape:s}=i,l=yL(i,["shape"]),{shape:c}=o,u=yL(o,["shape"]),{coordinate:d,theme:p}=t;return(e,t)=>{let n=e.map(e=>d.invert(e)),[i,o,f]=function(e,t){let{transformations:n}=e.getOptions(),[,...r]=n.find(e=>e[0]===t);return r}(d,"polar"),m=d.clone(),{color:g}=t,h=rI({startAngle:i,endAngle:o,innerRadius:f,outerRadius:r});h.push(["cartesian"]),m.update({transformations:h});let b=n.map(e=>m.map(e)),[y,E]=aY(b),[T,v]=d.getCenter(),S=Object.assign(Object.assign({x1:y,y1:E,x2:T,y2:v,stroke:g},l),a),A=Object.assign(Object.assign({cx:T,cy:v,stroke:g},u),a),O=rd(new nO.ZA);return ru(s)||("function"==typeof s?O.append(()=>s(b,t,m,p)):O.append("line").call(aU,S).node()),ru(c)||("function"==typeof c?O.append(()=>c(b,t,m,p)):O.append("circle").call(aU,A).node()),O.node()}},lineWidth:4,pointerLineCap:"round",pinR:10,pinFill:"#fff",radius:.6}},yM={type:"text",style:{x:"50%",y:"60%",textAlign:"center",textBaseline:"middle",fontSize:20,fontWeight:800,fill:"#888"}},yF=e=>{var t;let{data:n={},scale:r={},style:a={},animate:i={},transform:o=[]}=e,s=yL(e,["data","scale","style","animate","transform"]),{targetData:l,totalData:c,target:u,total:d,scale:p}=function(e,t){let{name:n="score",target:r,total:a,percent:i,thresholds:o=[]}=function(e){if((0,at.Z)(e)){let t=Math.max(0,Math.min(e,1));return{percent:t,target:t,total:1}}return e}(e),s=i||r,l=i?1:a,c=Object.assign({y:{domain:[0,l]}},t);return o.length?{targetData:[{x:n,y:s,color:"target"}],totalData:o.map((e,t)=>({x:n,y:t>=1?e-o[t-1]:e,color:t})),target:s,total:l,scale:c}:{targetData:[{x:n,y:s,color:"target"}],totalData:[{x:n,y:s,color:"target"},{x:n,y:l-s,color:"total"}],target:s,total:l,scale:c}}(n,r),f=ri(a,"text"),m=(t=["pointer","pin"],Object.fromEntries(Object.entries(a).filter(([e])=>t.find(t=>e.startsWith(t))))),g=ri(a,"arc"),h=g.shape;return[(0,n5.Z)({},yD,Object.assign({type:"interval",transform:[{type:"stackY"}],data:c,scale:p,style:"round"===h?Object.assign(Object.assign({},g),{shape:yR}):g,animate:"object"==typeof i?ri(i,"arc"):i},s)),(0,n5.Z)({},yD,yP,Object.assign({type:"point",data:l,scale:p,style:m,animate:"object"==typeof i?ri(i,"indicator"):i},s)),(0,n5.Z)({},yM,{style:Object.assign({text:function(e,{target:t,total:n}){let{content:r}=e;return r?r(t,n):t.toString()}(f,{target:u,total:d})},f),animate:"object"==typeof i?ri(i,"text"):i})]};yF.props={};let yB={pin:function(e,t,n){let r=4*n/3,a=Math.max(r,2*n),i=r/2,o=i+t-a/2,s=Math.asin(i/((a-i)*.85)),l=Math.cos(s)*i,c=e-l,u=o+Math.sin(s)*i,d=o+i/Math.sin(s);return` - M ${c} ${u} - A ${i} ${i} 0 1 1 ${c+2*l} ${u} - Q ${e} ${d} ${e} ${t+a/2} - Q ${e} ${d} ${c} ${u} - Z - `},rect:function(e,t,n){let r=.618*n;return` - M ${e-r} ${t-n} - L ${e+r} ${t-n} - L ${e+r} ${t+n} - L ${e-r} ${t+n} - Z - `},circle:function(e,t,n){return` - M ${e} ${t-n} - a ${n} ${n} 0 1 0 0 ${2*n} - a ${n} ${n} 0 1 0 0 ${-(2*n)} - Z - `},diamond:function(e,t,n){return` - M ${e} ${t-n} - L ${e+n} ${t} - L ${e} ${t+n} - L ${e-n} ${t} - Z - `},triangle:function(e,t,n){return` - M ${e} ${t-n} - L ${e+n} ${t+n} - L ${e-n} ${t+n} - Z - `}};var yj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let yU=(e="circle")=>yB[e]||yB.circle,yH=(e,t)=>{if(!t)return;let{coordinate:n}=t,{liquidOptions:r,styleOptions:a}=e,{liquidShape:i,percent:o}=r,{background:s,outline:l={},wave:c={}}=a,u=yj(a,["background","outline","wave"]),{border:d=2,distance:p=0}=l,f=yj(l,["border","distance"]),{length:m=192,count:g=3}=c;return(e,r,a)=>{let{document:l}=t.canvas,{color:c,fillOpacity:h}=a,b=Object.assign(Object.assign({fill:c},a),u),y=l.createElement("g",{}),[E,T]=n.getCenter(),v=n.getSize(),S=Math.min(...v)/2,A=(0,lt.Z)(i)?i:yU(i),O=A(E,T,S,...v);if(Object.keys(s).length){let e=l.createElement("path",{style:Object.assign({d:O,fill:"#fff"},s)});y.appendChild(e)}if(o>0){let e=l.createElement("path",{style:{d:O}});y.appendChild(e),y.style.clipPath=e,function(e,t,n,r,a,i,o,s,l,c,u){let{fill:d,fillOpacity:p,opacity:f}=a;for(let a=0;a0;)c-=2*Math.PI;c=c/Math.PI/2*n;let u=i-e+c-2*e;l.push(["M",u,t]);let d=0;for(let e=0;et.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let y$={axis:{x:!1,y:!1},legend:!1,tooltip:!1,encode:{x:"type",y:"percent"},scale:{y:{domain:[0,1]}},style:{shape:yH},animate:{enter:{type:"fadeIn"}}},yz={type:"text",style:{x:"50%",y:"50%",textAlign:"center",textBaseline:"middle",fontSize:20,fontWeight:800,fill:"#888"},animate:{enter:{type:"fadeIn"}}},yZ=e=>{let{data:t={},style:n={},animate:r}=e,a=yG(e,["data","style","animate"]),i=Math.max(0,(0,at.Z)(t)?t:null==t?void 0:t.percent),o=[{percent:i,type:"liquid"}],s=Object.assign(Object.assign({},ri(n,"text")),ri(n,"content")),l=ri(n,"outline"),c=ri(n,"wave"),u=ri(n,"background");return[(0,n5.Z)({},y$,Object.assign({type:"interval",data:o,style:{liquidOptions:{percent:i,liquidShape:null==n?void 0:n.shape},styleOptions:Object.assign(Object.assign({},n),{outline:l,wave:c,background:u})},animate:r},a)),(0,n5.Z)({},yz,{style:Object.assign({text:`${rN(100*i)} %`},s),animate:r})]};yZ.props={};var yW=n(69916);function yY(e,t){let n=function(e){let t=[];for(let n=0;nt[n].radius+1e-10)return!1;return!0}(t,e)}),a=0,i=0,o,s=[];if(r.length>1){let t=function(e){let t={x:0,y:0};for(let n=0;n-1){let a=e[t.parentIndex[r]],i=Math.atan2(t.x-a.x,t.y-a.y),o=Math.atan2(n.x-a.x,n.y-a.y),s=o-i;s<0&&(s+=2*Math.PI);let u=o-s/2,d=yq(l,{x:a.x+a.radius*Math.sin(u),y:a.y+a.radius*Math.cos(u)});d>2*a.radius&&(d=2*a.radius),(null===c||c.width>d)&&(c={circle:a,width:d,p1:t,p2:n})}null!==c&&(s.push(c),a+=yV(c.circle.radius,c.width),n=t)}}else{let t=e[0];for(o=1;oMath.abs(t.radius-e[o].radius)){n=!0;break}n?a=i=0:(a=t.radius*t.radius*Math.PI,s.push({circle:t,p1:{x:t.x,y:t.y+t.radius},p2:{x:t.x-1e-10,y:t.y+t.radius},width:2*t.radius}))}return i/=2,t&&(t.area=a+i,t.arcArea=a,t.polygonArea=i,t.arcs=s,t.innerPoints=r,t.intersectionPoints=n),a+i}function yV(e,t){return e*e*Math.acos(1-t/e)-(e-t)*Math.sqrt(t*(2*e-t))}function yq(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))}function yK(e,t,n){if(n>=e+t)return 0;if(n<=Math.abs(e-t))return Math.PI*Math.min(e,t)*Math.min(e,t);let r=e-(n*n-t*t+e*e)/(2*n),a=t-(n*n-e*e+t*t)/(2*n);return yV(e,r)+yV(t,a)}function yX(e,t){let n=yq(e,t),r=e.radius,a=t.radius;if(n>=r+a||n<=Math.abs(r-a))return[];let i=(r*r-a*a+n*n)/(2*n),o=Math.sqrt(r*r-i*i),s=e.x+i*(t.x-e.x)/n,l=e.y+i*(t.y-e.y)/n,c=-(t.y-e.y)*(o/n),u=-(t.x-e.x)*(o/n);return[{x:s+c,y:l-u},{x:s-c,y:l+u}]}function yQ(e,t,n){return Math.min(e,t)*Math.min(e,t)*Math.PI<=n+1e-10?Math.abs(e-t):(0,yW.bisect)(function(r){return yK(e,t,r)-n},0,e+t)}function yJ(e,t){let n=function(e,t){let n;let r=t&&t.lossFunction?t.lossFunction:y0,a={},i={};for(let t=0;t=Math.min(a[o].size,a[s].size)&&(r=0),i[o].push({set:s,size:n.size,weight:r}),i[s].push({set:o,size:n.size,weight:r})}let o=[];for(n in i)if(i.hasOwnProperty(n)){let e=0;for(let t=0;t=8){let a=function(e,t){let n,r,a;t=t||{};let i=t.restarts||10,o=[],s={};for(n=0;n=Math.min(t[i].size,t[o].size)?u=1:e.size<=1e-10&&(u=-1),a[i][o]=a[o][i]=u}),{distances:r,constraints:a}}(e,o,s),c=l.distances,u=l.constraints,d=(0,yW.norm2)(c.map(yW.norm2))/c.length;c=c.map(function(e){return e.map(function(e){return e/d})});let p=function(e,t){return function(e,t,n,r){let a=0,i;for(i=0;i0&&m<=d||p<0&&m>=d||(a+=2*g*g,t[2*i]+=4*g*(o-c),t[2*i+1]+=4*g*(s-u),t[2*l]+=4*g*(c-o),t[2*l+1]+=4*g*(u-s))}}return a}(e,t,c,u)};for(n=0;n{let{sets:t="sets",size:n="size",as:r=["key","path"],padding:a=0}=e,[i,o]=r;return e=>{let r;let s=e.map(e=>Object.assign(Object.assign({},e),{sets:e[t],size:e[n],[i]:e.sets.join("&")}));s.sort((e,t)=>e.sets.length-t.sets.length);let l=function(e,t){let n;(t=t||{}).maxIterations=t.maxIterations||500;let r=t.initialLayout||yJ,a=t.lossFunction||y0;e=function(e){let t,n,r,a;e=e.slice();let i=[],o={};for(t=0;te>t?1:-1),t=0;t{let n=e[t];return Object.assign(Object.assign({},e),{[o]:({width:e,height:t})=>{r=r||function(e,t,n,r){let a=[],i=[];for(let t in e)e.hasOwnProperty(t)&&(i.push(t),a.push(e[t]));t-=2*r,n-=2*r;let o=function(e){let t=function(t){let n=Math.max.apply(null,e.map(function(e){return e[t]+e.radius})),r=Math.min.apply(null,e.map(function(e){return e[t]-e.radius}));return{max:n,min:r}};return{xRange:t("x"),yRange:t("y")}}(a),s=o.xRange,l=o.yRange;if(s.max==s.min||l.max==l.min)return console.log("not scaling solution: zero size detected"),e;let c=t/(s.max-s.min),u=n/(l.max-l.min),d=Math.min(u,c),p=(t-(s.max-s.min)*d)/2,f=(n-(l.max-l.min)*d)/2,m={};for(let e=0;er[e]),o=function(e){let t={};yY(e,t);let n=t.arcs;if(0===n.length)return"M 0 0";if(1==n.length){let e=n[0].circle;return function(e,t,n){let r=[],a=e-n;return r.push("M",a,t),r.push("A",n,n,0,1,0,a+2*n,t),r.push("A",n,n,0,1,0,a,t),r.join(" ")}(e.x,e.y,e.radius)}{let e=["\nM",n[0].p2.x,n[0].p2.y];for(let t=0;ta;e.push("\nA",a,a,0,i?1:0,1,r.p1.x,r.p1.y)}return e.join(" ")}}(i);return/[zZ]$/.test(o)||(o+=" Z"),o}})})}};y1.props={};var y2=function(){return(y2=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{this.forceFit()},300),this._renderer=r||new n2.Th,this._plugins=a||[],this._container=function(e){if(void 0===e){let e=document.createElement("div");return e[sL]=!0,e}if("string"==typeof e){let t=document.getElementById(e);return t}return e}(t),this._emitter=new nA.Z,this._context={library:Object.assign(Object.assign({},i),n0),emitter:this._emitter,canvas:n,createCanvas:o},this._create()}render(){if(this._rendering)return this._addToTrailing();this._context.canvas||this._createCanvas(),this._context.canvas.getConfig().supportsCSSTransform=!0,this._bindAutoFit(),this._rendering=!0;let e=new Promise((e,t)=>(function(e,t={},n=()=>{},r=e=>{throw e}){var a;let{width:i=640,height:o=480,depth:s=0}=e,l=function(e){let t=(0,n5.Z)({},e),n=new Map([[t,null]]),r=new Map([[null,-1]]),a=[t];for(;a.length;){let e=a.shift();if(void 0===e.key){let t=n.get(e),a=r.get(e),i=null===t?"0":`${t.key}-${a}`;e.key=i}let{children:t=[]}=e;if(Array.isArray(t))for(let i=0;i(function e(t,n,r){var a;return ss(this,void 0,void 0,function*(){let{library:i}=r,[o]=oa("composition",i),[s]=oa("interaction",i),l=new Set(Object.keys(i).map(e=>{var t;return null===(t=/mark\.(.*)/.exec(e))||void 0===t?void 0:t[1]}).filter(ra)),c=new Set(Object.keys(i).map(e=>{var t;return null===(t=/component\.(.*)/.exec(e))||void 0===t?void 0:t[1]}).filter(ra)),u=e=>{let{type:t}=e;if("function"==typeof t){let{props:e={}}=t,{composite:n=!0}=e;if(n)return"mark"}return"string"!=typeof t?t:l.has(t)||c.has(t)?"mark":t},d=e=>"mark"===u(e),p=e=>"standardView"===u(e),f=e=>{let{type:t}=e;return"string"==typeof t&&!!c.has(t)},m=e=>{if(p(e))return[e];let t=u(e),n=o({type:t,static:f(e)});return n(e)},g=[],h=new Map,b=new Map,y=[t],E=[];for(;y.length;){let e=y.shift();if(p(e)){let t=b.get(e),[n,a]=t?sf(t,e,i):yield su(e,r);h.set(n,e),g.push(n);let o=a.flatMap(m).map(e=>os(e,i));if(y.push(...o),o.every(p)){let e=yield Promise.all(o.map(e=>sd(e,r)));!function(e){let t=e.flatMap(e=>Array.from(e.values())).flatMap(e=>e.channels.map(e=>e.scale));ob(t,"x"),ob(t,"y")}(e);for(let t=0;te.key).join(e=>e.append("g").attr("className",iv).attr("id",e=>e.key).call(sc).each(function(e,t,n){sm(e,rd(n),S,r),T.set(e,n)}),e=>e.call(sc).each(function(e,t,n){sm(e,rd(n),S,r),v.set(e,n)}),e=>e.each(function(e,t,n){let r=n.nameInteraction.values();for(let e of r)e.destroy()}).remove());let A=(t,n,a)=>Array.from(t.entries()).map(([i,o])=>{let s=a||new Map,l=h.get(i),c=function(t,n,r){let{library:a}=r,i=function(e){let[,t]=oa("interaction",e);return e=>{let[n,r]=e;try{return[n,t(n)]}catch(e){return[n,r.type]}}}(a),o=sT(n),s=o.map(i).filter(e=>e[1]&&e[1].props&&e[1].props.reapplyWhenUpdate).map(e=>e[0]);return(n,a,i)=>ss(this,void 0,void 0,function*(){let[o,l]=yield su(n,r);for(let e of(sm(o,t,[],r),s.filter(e=>e!==a)))!function(e,t,n,r,a){var i;let{library:o}=a,[s]=oa("interaction",o),l=t.node(),c=l.nameInteraction,u=sT(n).find(([t])=>t===e),d=c.get(e);if(!d||(null===(i=d.destroy)||void 0===i||i.call(d),!u[1]))return;let p=sp(r,e,u[1],s),f={options:n,view:r,container:t.node(),update:e=>Promise.resolve(e)},m=p(f,[],a.emitter);c.set(e,{destroy:m})}(e,t,n,o,r);for(let n of l)e(n,t,r);return i(),{options:n,view:o}})}(rd(o),l,r);return{view:i,container:o,options:l,setState:(e,t=e=>e)=>s.set(e,t),update:(e,r)=>ss(this,void 0,void 0,function*(){let a=re(Array.from(s.values())),i=a(l);return yield c(i,e,()=>{(0,rm.Z)(r)&&n(t,r,s)})})}}),O=(e=v,t,n)=>{var a;let i=A(e,O,n);for(let e of i){let{options:n,container:o}=e,l=o.nameInteraction,c=sT(n);for(let n of(t&&(c=c.filter(e=>t.includes(e[0]))),c)){let[t,o]=n,c=l.get(t);if(c&&(null===(a=c.destroy)||void 0===a||a.call(c)),o){let n=sp(e.view,t,o,s),a=n(e,i,r.emitter);l.set(t,{destroy:a})}}}},_=A(T,O);for(let e of _){let{options:t}=e,n=new Map;for(let a of(e.container.nameInteraction=n,sT(t))){let[t,i]=a;if(i){let a=sp(e.view,t,i,s),o=a(e,_,r.emitter);n.set(t,{destroy:o})}}}O();let{width:k,height:I}=t,C=[];for(let t of E){let a=new Promise(a=>ss(this,void 0,void 0,function*(){for(let a of t){let t=Object.assign({width:k,height:I},a);yield e(t,n,r)}a()}));C.push(a)}r.views=g,null===(a=r.animations)||void 0===a||a.forEach(e=>null==e?void 0:e.cancel()),r.animations=S,r.emitter.emit(rf.AFTER_PAINT);let N=S.filter(ra).map(sy).map(e=>e.finished);return Promise.all([...N,...C])})})(Object.assign(Object.assign({},l),{width:i,height:o,depth:s}),m,t)).then(()=>{if(s){let[e,t]=c.document.documentElement.getPosition();c.document.documentElement.setPosition(e,t,-s/2)}c.requestAnimationFrame(()=>{u.emit(rf.AFTER_RENDER),null==n||n()})}).catch(e=>{null==r||r(e)}),"string"==typeof(a=c.getConfig().container)?document.getElementById(a):a})(this._computedOptions(),this._context,this._createResolve(e),this._createReject(t))),[t,n,r]=function(){let e,t;let n=new Promise((n,r)=>{t=n,e=r});return[n,t,e]}();return e.then(n).catch(r).then(()=>this._renderTrailing()),t}options(e){if(0==arguments.length)return function(e){let t=function(e){if(null!==e.type)return e;let t=e.children[e.children.length-1];for(let n of sR)t.attr(n,e.attr(n));return t}(e),n=[t],r=new Map;for(r.set(t,sP(t));n.length;){let e=n.pop(),t=r.get(e),{children:a=[]}=e;for(let e of a)if(e.type===sD)t.children=e.value;else{let a=sP(e),{children:i=[]}=t;i.push(a),n.push(e),r.set(e,a),t.children=i}}return r.get(t)}(this);let{type:t}=e;return t&&(this._previousDefinedType=t),function(e,t,n,r,a){let i=function(e,t,n,r,a){let{type:i}=e,{type:o=n||i}=t;if("function"!=typeof o&&new Set(Object.keys(a)).has(o)){for(let n of sR)void 0!==e.attr(n)&&void 0===t[n]&&(t[n]=e.attr(n));return t}if("function"==typeof o||new Set(Object.keys(r)).has(o)){let e={type:"view"},n=Object.assign({},t);for(let t of sR)void 0!==n[t]&&(e[t]=n[t],delete n[t]);return Object.assign(Object.assign({},e),{children:[n]})}return t}(e,t,n,r,a),o=[[null,e,i]];for(;o.length;){let[e,t,n]=o.shift();if(t){if(n){!function(e,t){let{type:n,children:r}=t,a=sw(t,["type","children"]);e.type===n||void 0===n?function e(t,n,r=5,a=0){if(!(a>=r)){for(let i of Object.keys(n)){let o=n[i];(0,n8.Z)(o)&&(0,n8.Z)(t[i])?e(t[i],o,r,a+1):t[i]=o}return t}}(e.value,a):"string"==typeof n&&(e.type=n,e.value=a)}(t,n);let{children:e}=n,{children:r}=t;if(Array.isArray(e)&&Array.isArray(r)){let n=Math.max(e.length,r.length);for(let a=0;a{this.emit(rf.AFTER_CHANGE_SIZE)}),n}changeSize(e,t){if(e===this._width&&t===this._height)return Promise.resolve(this);this.emit(rf.BEFORE_CHANGE_SIZE),this.attr("width",e),this.attr("height",t);let n=this.render();return n.then(()=>{this.emit(rf.AFTER_CHANGE_SIZE)}),n}_create(){let{library:e}=this._context,t=["mark.mark",...Object.keys(e).filter(e=>e.startsWith("mark.")||"component.axisX"===e||"component.axisY"===e||"component.legends"===e)];for(let e of(this._marks={},t)){let t=e.split(".").pop();class n extends s${constructor(){super({},t)}}this._marks[t]=n,this[t]=function(e){let r=this.append(n);return"mark"===t&&(r.type=e),r}}let n=["composition.view",...Object.keys(e).filter(e=>e.startsWith("composition.")&&"composition.mark"!==e)];for(let e of(this._compositions=Object.fromEntries(n.map(e=>{let t=e.split(".").pop(),n=class extends sG{constructor(){super({},t)}};return n=sz([sF(sB(this._marks))],n),[t,n]})),Object.values(this._compositions)))sF(sB(this._compositions))(e);for(let e of n){let t=e.split(".").pop();this[t]=function(){let e=this._compositions[t];return this.type=null,this.append(e)}}}_reset(){let e=["theme","type","width","height","autoFit"];this.type="view",this.value=Object.fromEntries(Object.entries(this.value).filter(([t])=>t.startsWith("margin")||t.startsWith("padding")||t.startsWith("inset")||e.includes(t))),this.children=[]}_renderTrailing(){this._trailing&&(this._trailing=!1,this.render().then(()=>{let e=this._trailingResolve.bind(this);this._trailingResolve=null,e(this)}).catch(e=>{let t=this._trailingReject.bind(this);this._trailingReject=null,t(e)}))}_createResolve(e){return()=>{this._rendering=!1,e(this)}}_createReject(e){return t=>{this._rendering=!1,e(t)}}_computedOptions(){let e=this.options(),{key:t="G2_CHART_KEY"}=e,{width:n,height:r,depth:a}=sM(e,this._container);return this._width=n,this._height=r,this._key=t,Object.assign(Object.assign({key:this._key},e),{width:n,height:r,depth:a})}_createCanvas(){let{width:e,height:t}=sM(this.options(),this._container);this._plugins.push(new n3.S),this._plugins.forEach(e=>this._renderer.registerPlugin(e)),this._context.canvas=new nO.Xz({container:this._container,width:e,height:t,renderer:this._renderer})}_addToTrailing(){var e;null===(e=this._trailingResolve)||void 0===e||e.call(this,this),this._trailing=!0;let t=new Promise((e,t)=>{this._trailingResolve=e,this._trailingReject=t});return t}_bindAutoFit(){let e=this.options(),{autoFit:t}=e;if(this._hasBindAutoFit){t||this._unbindAutoFit();return}t&&(this._hasBindAutoFit=!0,window.addEventListener("resize",this._onResize))}_unbindAutoFit(){this._hasBindAutoFit&&(this._hasBindAutoFit=!1,window.removeEventListener("resize",this._onResize))}},s=y2(y2({},Object.assign(Object.assign(Object.assign(Object.assign({},{"composition.geoView":bd,"composition.geoPath":bf}),{"data.arc":yo,"data.cluster":bN,"mark.forceGraph":b_,"mark.tree":bP,"mark.pack":b$,"mark.sankey":ye,"mark.chord":yp,"mark.treemap":yE}),{"data.venn":y1,"mark.boxplot":yx,"mark.gauge":yF,"mark.wordCloud":dv,"mark.liquid":yZ}),{"data.fetch":hd,"data.inline":hp,"data.sortBy":hf,"data.sort":hm,"data.filter":hh,"data.pick":hb,"data.rename":hy,"data.fold":hE,"data.slice":hT,"data.custom":hv,"data.map":hS,"data.join":hO,"data.kde":hI,"data.log":hC,"data.wordCloud":hZ,"transform.stackY":gg,"transform.binX":gL,"transform.bin":gR,"transform.dodgeX":gP,"transform.jitter":gF,"transform.jitterX":gB,"transform.jitterY":gj,"transform.symmetryY":gH,"transform.diffY":gG,"transform.stackEnter":g$,"transform.normalizeY":gW,"transform.select":gX,"transform.selectX":gJ,"transform.selectY":g1,"transform.groupX":g4,"transform.groupY":g5,"transform.groupColor":g6,"transform.group":g3,"transform.sortX":he,"transform.sortY":ht,"transform.sortColor":hn,"transform.flexX":hr,"transform.pack":ha,"transform.sample":hs,"transform.filter":hl,"coordinate.cartesian":lo,"coordinate.polar":r_,"coordinate.transpose":ls,"coordinate.theta":lc,"coordinate.parallel":lu,"coordinate.fisheye":ld,"coordinate.radial":rI,"coordinate.radar":lp,"encode.constant":lf,"encode.field":lm,"encode.transform":lg,"encode.column":lh,"mark.interval":l0,"mark.rect":l2,"mark.line":cm,"mark.point":cz,"mark.text":c0,"mark.cell":c3,"mark.area":uo,"mark.link":uE,"mark.image":uA,"mark.polygon":uN,"mark.box":uP,"mark.vector":uF,"mark.lineX":uG,"mark.lineY":uZ,"mark.connector":uK,"mark.range":u0,"mark.rangeX":u3,"mark.rangeY":u6,"mark.path":dn,"mark.shape":ds,"mark.density":dd,"mark.heatmap":dy,"mark.wordCloud":dv,"palette.category10":dS,"palette.category20":dA,"scale.linear":dO,"scale.ordinal":dk,"scale.band":dC,"scale.identity":dx,"scale.point":dR,"scale.time":pt,"scale.log":pl,"scale.pow":pf,"scale.sqrt":pg,"scale.threshold":ph,"scale.quantile":pb,"scale.quantize":py,"scale.sequential":pA,"scale.constant":pO,"theme.classic":pC,"theme.classicDark":pw,"theme.academy":pL,"theme.light":pI,"theme.dark":px,"component.axisX":pD,"component.axisY":pP,"component.legendCategory":pj,"component.legendContinuous":av,"component.legends":pU,"component.title":pz,"component.sliderX":pV,"component.sliderY":pq,"component.scrollbarX":pJ,"component.scrollbarY":p0,"animation.scaleInX":p1,"animation.scaleOutX":(e,t)=>{let{coordinate:n}=t;return(t,r,a)=>{let[i]=t,{transform:o="",fillOpacity:s=1,strokeOpacity:l=1,opacity:c=1}=i.style,[u,d]=rR(n)?["left bottom","scale(1, 0.0001)"]:["left top","scale(0.0001, 1)"],p=[{transform:`${o} scale(1, 1)`.trimStart(),transformOrigin:u},{transform:`${o} ${d}`.trimStart(),transformOrigin:u,fillOpacity:s,strokeOpacity:l,opacity:c,offset:.99},{transform:`${o} ${d}`.trimStart(),transformOrigin:u,fillOpacity:0,strokeOpacity:0,opacity:0}],f=i.animate(p,Object.assign(Object.assign({},a),e));return f}},"animation.scaleInY":p2,"animation.scaleOutY":(e,t)=>{let{coordinate:n}=t;return(t,r,a)=>{let[i]=t,{transform:o="",fillOpacity:s=1,strokeOpacity:l=1,opacity:c=1}=i.style,[u,d]=rR(n)?["left top","scale(0.0001, 1)"]:["left bottom","scale(1, 0.0001)"],p=[{transform:`${o} scale(1, 1)`.trimStart(),transformOrigin:u},{transform:`${o} ${d}`.trimStart(),transformOrigin:u,fillOpacity:s,strokeOpacity:l,opacity:c,offset:.99},{transform:`${o} ${d}`.trimStart(),transformOrigin:u,fillOpacity:0,strokeOpacity:0,opacity:0}],f=i.animate(p,Object.assign(Object.assign({},a),e));return f}},"animation.waveIn":p3,"animation.fadeIn":p4,"animation.fadeOut":p5,"animation.zoomIn":e=>(t,n,r)=>{let[a]=t,{transform:i="",fillOpacity:o=1,strokeOpacity:s=1,opacity:l=1}=a.style,c="center center",u=[{transform:`${i} scale(0.0001)`.trimStart(),transformOrigin:c,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${i} scale(0.0001)`.trimStart(),transformOrigin:c,fillOpacity:o,strokeOpacity:s,opacity:l,offset:.01},{transform:`${i} scale(1)`.trimStart(),transformOrigin:c,fillOpacity:o,strokeOpacity:s,opacity:l}],d=a.animate(u,Object.assign(Object.assign({},r),e));return d},"animation.zoomOut":e=>(t,n,r)=>{let[a]=t,{transform:i="",fillOpacity:o=1,strokeOpacity:s=1,opacity:l=1}=a.style,c="center center",u=[{transform:`${i} scale(1)`.trimStart(),transformOrigin:c},{transform:`${i} scale(0.0001)`.trimStart(),transformOrigin:c,fillOpacity:o,strokeOpacity:s,opacity:l,offset:.99},{transform:`${i} scale(0.0001)`.trimStart(),transformOrigin:c,fillOpacity:0,strokeOpacity:0,opacity:0}],d=a.animate(u,Object.assign(Object.assign({},r),e));return d},"animation.pathIn":p6,"animation.morphing":fs,"animation.growInX":fl,"animation.growInY":fc,"interaction.elementHighlight":fd,"interaction.elementHighlightByX":fp,"interaction.elementHighlightByColor":ff,"interaction.elementSelect":fg,"interaction.elementSelectByX":fh,"interaction.elementSelectByColor":fb,"interaction.fisheye":function({wait:e=30,leading:t,trailing:n=!1}){return r=>{let{options:a,update:i,setState:o,container:s}=r,l=iz(s),c=(0,fy.Z)(e=>{let t=iW(l,e);if(!t){o("fisheye"),i();return}o("fisheye",e=>{let n=(0,n5.Z)({},e,{interaction:{tooltip:{preserve:!0}}});for(let e of n.marks)e.animate=!1;let[r,a]=t,i=function(e){let{coordinate:t={}}=e,{transform:n=[]}=t,r=n.find(e=>"fisheye"===e.type);if(r)return r;let a={type:"fisheye"};return n.push(a),t.transform=n,e.coordinate=t,a}(n);return i.focusX=r,i.focusY=a,i.visual=!0,n}),i()},e,{leading:t,trailing:n});return l.addEventListener("pointerenter",c),l.addEventListener("pointermove",c),l.addEventListener("pointerleave",c),()=>{l.removeEventListener("pointerenter",c),l.removeEventListener("pointermove",c),l.removeEventListener("pointerleave",c)}}},"interaction.chartIndex":fv,"interaction.tooltip":fH,"interaction.legendFilter":function(){return(e,t,n)=>{let{container:r}=e,a=t.filter(t=>t!==e),i=a.length>0,o=e=>fq(e).scales.map(e=>e.name),s=[...fY(r),...fV(r)],l=s.flatMap(o),c=i?(0,fy.Z)(fX,50,{trailing:!0}):(0,fy.Z)(fK,50,{trailing:!0}),u=s.map(t=>{let{name:s,domain:u}=fq(t).scales[0],d=o(t),p={legend:t,channel:s,channels:d,allChannels:l};return t.className===f$?function(e,{legends:t,marker:n,label:r,datum:a,filter:i,emitter:o,channel:s,state:l={}}){let c=new Map,u=new Map,d=new Map,{unselected:p={markerStroke:"#aaa",markerFill:"#aaa",labelFill:"#aaa"}}=l,f={unselected:ri(p,"marker")},m={unselected:ri(p,"label")},{setState:g,removeState:h}=iX(f,void 0),{setState:b,removeState:y}=iX(m,void 0),E=Array.from(t(e)),T=E.map(a),v=()=>{for(let e of E){let t=a(e),i=n(e),o=r(e);T.includes(t)?(h(i,"unselected"),y(o,"unselected")):(g(i,"unselected"),b(o,"unselected"))}};for(let t of E){let n=()=>{i4(e,"pointer")},r=()=>{i4(e,e.cursor)},l=e=>fG(this,void 0,void 0,function*(){let n=a(t),r=T.indexOf(n);-1===r?T.push(n):T.splice(r,1),yield i(T),v();let{nativeEvent:l=!0}=e;l&&(T.length===E.length?o.emit("legend:reset",{nativeEvent:l}):o.emit("legend:filter",Object.assign(Object.assign({},e),{nativeEvent:l,data:{channel:s,values:T}})))});t.addEventListener("click",l),t.addEventListener("pointerenter",n),t.addEventListener("pointerout",r),c.set(t,l),u.set(t,n),d.set(t,r)}let S=e=>fG(this,void 0,void 0,function*(){let{nativeEvent:t}=e;if(t)return;let{data:n}=e,{channel:r,values:a}=n;r===s&&(T=a,yield i(T),v())}),A=e=>fG(this,void 0,void 0,function*(){let{nativeEvent:t}=e;t||(T=E.map(a),yield i(T),v())});return o.on("legend:filter",S),o.on("legend:reset",A),()=>{for(let e of E)e.removeEventListener("click",c.get(e)),e.removeEventListener("pointerenter",u.get(e)),e.removeEventListener("pointerout",d.get(e)),o.off("legend:filter",S),o.off("legend:reset",A)}}(r,{legends:fW,marker:fz,label:fZ,datum:e=>{let{__data__:t}=e,{index:n}=t;return u[n]},filter:t=>{let n=Object.assign(Object.assign({},p),{value:t,ordinal:!0});i?c(a,n):c(e,n)},state:t.attributes.state,channel:s,emitter:n}):function(e,{legend:t,filter:n,emitter:r,channel:a}){let i=({detail:{value:e}})=>{n(e),r.emit({nativeEvent:!0,data:{channel:a,values:e}})};return t.addEventListener("valuechange",i),()=>{t.removeEventListener("valuechange",i)}}(0,{legend:t,filter:t=>{let n=Object.assign(Object.assign({},p),{value:t,ordinal:!1});i?c(a,n):c(e,n)},emitter:n,channel:s})});return()=>{u.forEach(e=>e())}}},"interaction.legendHighlight":function(){return(e,t,n)=>{let{container:r,view:a,options:i}=e,o=fY(r),s=iH(r),l=e=>fq(e).scales[0].name,c=e=>{let{scale:{[e]:t}}=a;return t},u=iJ(i,["active","inactive"]),d=i0(s,iK(a)),p=[];for(let e of o){let t=t=>{let{data:n}=e.attributes,{__data__:r}=t,{index:a}=r;return n[a].label},r=l(e),a=fW(e),i=c(r),o=(0,n6.ZP)(s,e=>i.invert(e.__data__[r])),{state:f={}}=e.attributes,{inactive:m={}}=f,{setState:g,removeState:h}=iX(u,d),b={inactive:ri(m,"marker")},y={inactive:ri(m,"label")},{setState:E,removeState:T}=iX(b),{setState:v,removeState:S}=iX(y),A=e=>{for(let t of a){let n=fz(t),r=fZ(t);t===e||null===e?(T(n,"inactive"),S(r,"inactive")):(E(n,"inactive"),v(r,"inactive"))}},O=(e,a)=>{let i=t(a),l=new Set(o.get(i));for(let e of s)l.has(e)?g(e,"active"):g(e,"inactive");A(a);let{nativeEvent:c=!0}=e;c&&n.emit("legend:highlight",Object.assign(Object.assign({},e),{nativeEvent:c,data:{channel:r,value:i}}))},_=new Map;for(let e of a){let t=t=>{O(t,e)};e.addEventListener("pointerover",t),_.set(e,t)}let k=e=>{for(let e of s)h(e,"inactive","active");A(null);let{nativeEvent:t=!0}=e;t&&n.emit("legend:unhighlight",{nativeEvent:t})},I=e=>{let{nativeEvent:n,data:i}=e;if(n)return;let{channel:o,value:s}=i;if(o!==r)return;let l=a.find(e=>t(e)===s);l&&O({nativeEvent:!1},l)},C=e=>{let{nativeEvent:t}=e;t||k({nativeEvent:!1})};e.addEventListener("pointerleave",k),n.on("legend:highlight",I),n.on("legend:unhighlight",C);let N=()=>{for(let[t,r]of(e.removeEventListener(k),n.off("legend:highlight",I),n.off("legend:unhighlight",C),_))t.removeEventListener(r)};p.push(N)}return()=>p.forEach(e=>e())}},"interaction.brushHighlight":f4,"interaction.brushXHighlight":function(e){return f4(Object.assign(Object.assign({},e),{brushRegion:f5,selectedHandles:["handle-e","handle-w"]}))},"interaction.brushYHighlight":function(e){return f4(Object.assign(Object.assign({},e),{brushRegion:f6,selectedHandles:["handle-n","handle-s"]}))},"interaction.brushAxisHighlight":function(e){return(t,n,r)=>{let{container:a,view:i,options:o}=t,s=iz(a),{x:l,y:c}=s.getBBox(),{coordinate:u}=i;return function(e,t){var{axes:n,elements:r,points:a,horizontal:i,datum:o,offsetY:s,offsetX:l,reverse:c=!1,state:u={},emitter:d,coordinate:p}=t,f=f9(t,["axes","elements","points","horizontal","datum","offsetY","offsetX","reverse","state","emitter","coordinate"]);let m=r(e),g=n(e),h=i0(m,o),{setState:b,removeState:y}=iX(u,h),E=new Map,T=ri(f,"mask"),v=e=>Array.from(E.values()).every(([t,n,r,a])=>e.some(([e,i])=>e>=t&&e<=r&&i>=n&&i<=a)),S=g.map(e=>e.attributes.scale),A=e=>e.length>2?[e[0],e[e.length-1]]:e,O=new Map,_=()=>{O.clear();for(let e=0;e{let n=[];for(let e of m){let t=a(e);v(t)?(b(e,"active"),n.push(e)):b(e,"inactive")}O.set(e,C(n,e)),t&&d.emit("brushAxis:highlight",{nativeEvent:!0,data:{selection:(()=>{if(!N)return Array.from(O.values());let e=[];for(let[t,n]of O){let r=S[t],{name:a}=r.getOptions();"x"===a?e[0]=n:e[1]=n}return e})()}})},I=e=>{for(let e of m)y(e,"active","inactive");_(),e&&d.emit("brushAxis:remove",{nativeEvent:!0})},C=(e,t)=>{let n=S[t],{name:r}=n.getOptions(),a=e.map(e=>{let t=e.__data__;return n.invert(t[r])});return A(iN(n,a))},N=g.some(i)&&g.some(e=>!i(e)),x=[];for(let e=0;e{let{nativeEvent:t}=e;t||x.forEach(e=>e.remove(!1))},R=(e,t,n)=>{let[r,a]=e,o=L(r,t,n),s=L(a,t,n)+(t.getStep?t.getStep():0);return i(n)?[o,-1/0,s,1/0]:[-1/0,o,1/0,s]},L=(e,t,n)=>{let{height:r,width:a}=p.getOptions(),o=t.clone();return i(n)?o.update({range:[0,a]}):o.update({range:[r,0]}),o.map(e)},D=e=>{let{nativeEvent:t}=e;if(t)return;let{selection:n}=e.data;for(let e=0;e{x.forEach(e=>e.destroy()),d.off("brushAxis:remove",w),d.off("brushAxis:highlight",D)}}(a,Object.assign({elements:iH,axes:f7,offsetY:c,offsetX:l,points:e=>e.__data__.points,horizontal:e=>{let{startPos:[t,n],endPos:[r,a]}=e.attributes;return t!==r&&n===a},datum:iK(i),state:iJ(o,["active",["inactive",{opacity:.5}]]),coordinate:u,emitter:r},e))}},"interaction.brushFilter":mi,"interaction.brushXFilter":function(e){return mi(Object.assign(Object.assign({hideX:!0},e),{brushRegion:f5}))},"interaction.brushYFilter":function(e){return mi(Object.assign(Object.assign({hideY:!0},e),{brushRegion:f6}))},"interaction.sliderFilter":ml,"interaction.scrollbarFilter":function(e={}){return(t,n,r)=>{let{view:a,container:i}=t,o=i.getElementsByClassName(mc);if(!o.length)return()=>{};let{scale:s}=a,{x:l,y:c}=s,u={x:[...l.getOptions().domain],y:[...c.getOptions().domain]};l.update({domain:l.getOptions().expectedDomain}),c.update({domain:c.getOptions().expectedDomain});let d=ml(Object.assign(Object.assign({},e),{initDomain:u,className:mc,prefix:"scrollbar",hasState:!0,setValue:(e,t)=>e.setValue(t[0]),getInitValues:e=>{let t=e.slider.attributes.values;if(0!==t[0])return t}}));return d(t,n,r)}},"interaction.poptip":mf,"interaction.treemapDrillDown":function(e={}){let{originData:t=[],layout:n}=e,r=mO(e,["originData","layout"]),a=(0,n5.Z)({},m_,r),i=ri(a,"breadCrumb"),o=ri(a,"active");return e=>{let{update:r,setState:a,container:s,options:l}=e,c=rd(s).select(`.${iS}`).node(),u=l.marks[0],{state:d}=u,p=new nO.ZA;c.appendChild(p);let f=(e,l)=>{var u,d,m,g;return u=this,d=void 0,m=void 0,g=function*(){if(p.removeChildren(),l){let t="",n=i.y,r=0,a=[],s=c.getBBox().width,l=e.map((o,l)=>{t=`${t}${o}/`,a.push(o);let c=new nO.xv({name:t.replace(/\/$/,""),style:Object.assign(Object.assign({text:o,x:r,path:[...a],depth:l},i),{y:n})});p.appendChild(c),r+=c.getBBox().width;let u=new nO.xv({style:Object.assign(Object.assign({x:r,text:" / "},i),{y:n})});return p.appendChild(u),(r+=u.getBBox().width)>s&&(n=p.getBBox().height+i.y,r=0,c.attr({x:r,y:n}),r+=c.getBBox().width,u.attr({x:r,y:n}),r+=u.getBBox().width),l===au(e)-1&&u.remove(),c});l.forEach((e,t)=>{if(t===au(l)-1)return;let n=Object.assign({},e.attributes);e.attr("cursor","pointer"),e.addEventListener("mouseenter",()=>{e.attr(o)}),e.addEventListener("mouseleave",()=>{e.attr(n)}),e.addEventListener("click",()=>{f((0,sY.Z)(e,["style","path"]),(0,sY.Z)(e,["style","depth"]))})})}(function(e,t){let n=[...fY(e),...fV(e)];n.forEach(e=>{t(e,e=>e)})})(s,a),a("treemapDrillDown",r=>{let{marks:a}=r,i=e.join("/"),o=a.map(e=>{if("rect"!==e.type)return e;let r=t;if(l){let e=t.filter(e=>{let t=(0,sY.Z)(e,["id"]);return t&&(t.match(`${i}/`)||i.match(t))}).map(e=>({value:0===e.height?(0,sY.Z)(e,["value"]):void 0,name:(0,sY.Z)(e,["id"])})),{paddingLeft:a,paddingBottom:o,paddingRight:s}=n,c=Object.assign(Object.assign({},n),{paddingTop:(n.paddingTop||p.getBBox().height+10)/(l+1),paddingLeft:a/(l+1),paddingBottom:o/(l+1),paddingRight:s/(l+1),path:e=>e.name,layer:e=>e.depth===l+1});r=mA(e,c,{value:"value"})[0]}else r=t.filter(e=>1===e.depth);let a=[];return r.forEach(({path:e})=>{a.push(pF(e))}),(0,n5.Z)({},e,{data:r,scale:{color:{domain:a}}})});return Object.assign(Object.assign({},r),{marks:o})}),yield r(void 0,["legendFilter"])},new(m||(m=Promise))(function(e,t){function n(e){try{a(g.next(e))}catch(e){t(e)}}function r(e){try{a(g.throw(e))}catch(e){t(e)}}function a(t){var a;t.done?e(t.value):((a=t.value)instanceof m?a:new m(function(e){e(a)})).then(n,r)}a((g=g.apply(u,d||[])).next())})},m=e=>{let n=e.target;if("rect"!==(0,sY.Z)(n,["markType"]))return;let r=(0,sY.Z)(n,["__data__","key"]),a=mg(t,e=>e.id===r);(0,sY.Z)(a,"height")&&f((0,sY.Z)(a,"path"),(0,sY.Z)(a,"depth"))};c.addEventListener("click",m);let g=ln(Object.assign(Object.assign({},d.active),d.inactive)),h=()=>{let e=i8(c);e.forEach(e=>{let n=(0,sY.Z)(e,["style","cursor"]),r=mg(t,t=>t.id===(0,sY.Z)(e,["__data__","key"]));if("pointer"!==n&&(null==r?void 0:r.height)){e.style.cursor="pointer";let t=(0,sW.Z)(e.attributes,g);e.addEventListener("mouseenter",()=>{e.attr(d.active)}),e.addEventListener("mouseleave",()=>{e.attr((0,n5.Z)(t,d.inactive))})}})};return h(),c.addEventListener("mousemove",h),()=>{p.remove(),c.removeEventListener("click",m),c.removeEventListener("mousemove",h)}}},"interaction.elementPointMove":function(e={}){let{selection:t=[],precision:n=2}=e,r=mC(e,["selection","precision"]),a=Object.assign(Object.assign({},mN),r||{}),i=ri(a,"path"),o=ri(a,"label"),s=ri(a,"point");return(e,r,a)=>{let l;let{update:c,setState:u,container:d,view:p,options:{marks:f,coordinate:m}}=e,g=iz(d),h=i8(g),b=t,{transform:y=[],type:E}=m,T=!!mg(y,({type:e})=>"transpose"===e),v="polar"===E,S="theta"===E,A=!!mg(h,({markType:e})=>"area"===e);A&&(h=h.filter(({markType:e})=>"area"===e));let O=new nO.ZA({style:{zIndex:2}});g.appendChild(O);let _=()=>{a.emit("element-point:select",{nativeEvent:!0,data:{selection:b}})},k=(e,t)=>{a.emit("element-point:moved",{nativeEvent:!0,data:{changeData:e,data:t}})},I=e=>{let t=e.target;b=[t.parentNode.childNodes.indexOf(t)],_(),N(t)},C=e=>{let{data:{selection:t},nativeEvent:n}=e;if(n)return;b=t;let r=(0,sY.Z)(h,[null==b?void 0:b[0]]);r&&N(r)},N=e=>{let t;let{attributes:r,markType:a,__data__:m}=e,{stroke:g}=r,{points:h,seriesTitle:y,color:E,title:I,seriesX:C,y1:x}=m;if(T&&"interval"!==a)return;let{scale:w,coordinate:R}=(null==l?void 0:l.view)||p,{color:L,y:D,x:P}=w,M=R.getCenter();O.removeChildren();let F=(e,t,n,r)=>mI(this,void 0,void 0,function*(){return u("elementPointMove",a=>{var i;let o=((null===(i=null==l?void 0:l.options)||void 0===i?void 0:i.marks)||f).map(a=>{if(!r.includes(a.type))return a;let{data:i,encode:o}=a,s=Object.keys(o),l=s.reduce((r,a)=>{let i=o[a];return"x"===a&&(r[i]=e),"y"===a&&(r[i]=t),"color"===a&&(r[i]=n),r},{}),c=mL(l,i,o);return k(l,c),(0,n5.Z)({},a,{data:c,animate:!1})});return Object.assign(Object.assign({},a),{marks:o})}),yield c("elementPointMove")});if(["line","area"].includes(a))h.forEach((r,a)=>{let c=P.invert(C[a]);if(!c)return;let u=new nO.Cd({name:mx,style:Object.assign({cx:r[0],cy:r[1],fill:g},s)}),p=mP(e,a);u.addEventListener("mousedown",f=>{let m=R.output([C[a],0]),g=null==y?void 0:y.length;d.attr("cursor","move"),b[1]!==a&&(b[1]=a,_()),mM(O.childNodes,b,s);let[T,S]=mF(O,u,i,o),k=e=>{let i=r[1]+e.clientY-t[1];if(A){if(v){let o=r[0]+e.clientX-t[0],[s,l]=mj(M,m,[o,i]),[,c]=R.output([1,D.output(0)]),[,d]=R.invert([s,c-(h[a+g][1]-l)]),f=(a+1)%g,b=(a-1+g)%g,E=i9([h[b],[s,l],y[f]&&h[f]]);S.attr("text",p(D.invert(d)).toFixed(n)),T.attr("d",E),u.attr("cx",s),u.attr("cy",l)}else{let[,e]=R.output([1,D.output(0)]),[,t]=R.invert([r[0],e-(h[a+g][1]-i)]),o=i9([h[a-1],[r[0],i],y[a+1]&&h[a+1]]);S.attr("text",p(D.invert(t)).toFixed(n)),T.attr("d",o),u.attr("cy",i)}}else{let[,e]=R.invert([r[0],i]),t=i9([h[a-1],[r[0],i],h[a+1]]);S.attr("text",D.invert(e).toFixed(n)),T.attr("d",t),u.attr("cy",i)}};t=[f.clientX,f.clientY],window.addEventListener("mousemove",k);let I=()=>mI(this,void 0,void 0,function*(){if(d.attr("cursor","default"),window.removeEventListener("mousemove",k),d.removeEventListener("mouseup",I),(0,mk.Z)(S.attr("text")))return;let t=Number(S.attr("text")),n=mB(L,E);l=yield F(c,t,n,["line","area"]),S.remove(),T.remove(),N(e)});d.addEventListener("mouseup",I)}),O.appendChild(u)}),mM(O.childNodes,b,s);else if("interval"===a){let r=[(h[0][0]+h[1][0])/2,h[0][1]];T?r=[h[0][0],(h[0][1]+h[1][1])/2]:S&&(r=h[0]);let c=mD(e),u=new nO.Cd({name:mx,style:Object.assign(Object.assign({cx:r[0],cy:r[1],fill:g},s),{stroke:s.activeStroke})});u.addEventListener("mousedown",s=>{d.attr("cursor","move");let p=mB(L,E),[f,m]=mF(O,u,i,o),g=e=>{if(T){let a=r[0]+e.clientX-t[0],[i]=R.output([D.output(0),D.output(0)]),[,o]=R.invert([i+(a-h[2][0]),r[1]]),s=i9([[a,h[0][1]],[a,h[1][1]],h[2],h[3]],!0);m.attr("text",c(D.invert(o)).toFixed(n)),f.attr("d",s),u.attr("cx",a)}else if(S){let a=r[1]+e.clientY-t[1],i=r[0]+e.clientX-t[0],[o,s]=mj(M,[i,a],r),[l,d]=mj(M,[i,a],h[1]),p=R.invert([o,s])[1],g=x-p;if(g<0)return;let b=function(e,t,n=0){let r=[["M",...t[1]]],a=i6(e,t[1]),i=i6(e,t[0]);return 0===a?r.push(["L",...t[3]],["A",i,i,0,n,1,...t[0]],["Z"]):r.push(["A",a,a,0,n,0,...t[2]],["L",...t[3]],["A",i,i,0,n,1,...t[0]],["Z"]),r}(M,[[o,s],[l,d],h[2],h[3]],g>.5?1:0);m.attr("text",c(g,!0).toFixed(n)),f.attr("d",b),u.attr("cx",o),u.attr("cy",s)}else{let a=r[1]+e.clientY-t[1],[,i]=R.output([1,D.output(0)]),[,o]=R.invert([r[0],i-(h[2][1]-a)]),s=i9([[h[0][0],a],[h[1][0],a],h[2],h[3]],!0);m.attr("text",c(D.invert(o)).toFixed(n)),f.attr("d",s),u.attr("cy",a)}};t=[s.clientX,s.clientY],window.addEventListener("mousemove",g);let b=()=>mI(this,void 0,void 0,function*(){if(d.attr("cursor","default"),d.removeEventListener("mouseup",b),window.removeEventListener("mousemove",g),(0,mk.Z)(m.attr("text")))return;let t=Number(m.attr("text"));l=yield F(I,t,p,[a]),m.remove(),f.remove(),N(e)});d.addEventListener("mouseup",b)}),O.appendChild(u)}};h.forEach((e,t)=>{b[0]===t&&N(e),e.addEventListener("click",I),e.addEventListener("mouseenter",mw),e.addEventListener("mouseleave",mR)});let x=e=>{let t=null==e?void 0:e.target;t&&(t.name===mx||h.includes(t))||(b=[],_(),O.removeChildren())};return a.on("element-point:select",C),a.on("element-point:unselect",x),d.addEventListener("mousedown",x),()=>{O.remove(),a.off("element-point:select",C),a.off("element-point:unselect",x),d.removeEventListener("mousedown",x),h.forEach(e=>{e.removeEventListener("click",I),e.removeEventListener("mouseenter",mw),e.removeEventListener("mouseleave",mR)})}}},"composition.spaceLayer":mH,"composition.spaceFlex":m$,"composition.facetRect":m4,"composition.repeatMatrix":()=>e=>{let t=mz.of(e).call(mK).call(mY).call(m9).call(m8).call(mV).call(mq).call(m6).value();return[t]},"composition.facetCircle":()=>e=>{let t=mz.of(e).call(mK).call(gn).call(mY).call(gt).call(mX).call(mQ,ga,gr,gr,{frame:!1}).call(mV).call(mq).call(ge).value();return[t]},"composition.timingKeyframe":gi,"labelTransform.overlapHide":e=>{let{priority:t}=e;return e=>{let n=[];return t&&e.sort(t),e.forEach(e=>{ij(e);let t=e.getLocalBounds(),r=n.some(e=>(function(e,t){let[n,r]=e,[a,i]=t;return n[0]a[0]&&n[1]a[1]})(hW(t),hW(e.getLocalBounds())));r?iB(e):n.push(e)}),e}},"labelTransform.overlapDodgeY":e=>{let{maxIterations:t=10,maxError:n=.1,padding:r=1}=e;return e=>{let a=e.length;if(a<=1)return e;let[i,o]=hV(),[s,l]=hV(),[c,u]=hV(),[d,p]=hV();for(let t of e){let{min:e,max:n}=function(e){let t=e.cloneNode(!0),n=t.getElementById("connector");n&&t.removeChild(n);let{min:r,max:a}=t.getRenderBounds();return t.destroy(),{min:r,max:a}}(t),[r,a]=e,[i,s]=n;o(t,a),l(t,a),u(t,s-a),p(t,[r,i])}for(let i=0;i(0,oK.Z)(s(e),s(t)));let t=0;for(let n=0;ne&&t>n}(d(i),d(a));)o+=1;if(a){let e=s(i),n=c(i),o=s(a),u=o-(e+n);if(ue=>(e.forEach(e=>{ij(e);let t=e.attr("bounds"),n=e.getLocalBounds(),r=function(e,t){let[n,r]=e;return!(hY(n,t)&&hY(r,t))}(hW(n),t);r&&iB(e)}),e),"labelTransform.contrastReverse":e=>{let{threshold:t=4.5,palette:n=["#000","#fff"]}=e;return e=>(e.forEach(e=>{let r=e.attr("dependentElement").parsedStyle.fill,a=e.parsedStyle.fill,i=hX(a,r);ihX(e,"object"==typeof t?t:(0,nO.lu)(t)));return t[n]}(r,n))}),e)},"labelTransform.exceedAdjust":()=>(e,{canvas:t})=>{let{width:n,height:r}=t.getConfig();return e.forEach(e=>{ij(e);let{max:t,min:a}=e.getRenderBounds(),[i,o]=t,[s,l]=a,c=hQ([[s,l],[i,o]],[[0,0],[n,r]]);e.style.connector&&e.style.connectorPoints&&(e.style.connectorPoints[0][0]-=c[0],e.style.connectorPoints[0][1]-=c[1]),e.style.x+=c[0],e.style.y+=c[1]}),e}})),{"interaction.drillDown":function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{breadCrumb:t={},isFixedColor:n=!1}=e,r=(0,n5.Z)({},li,t);return e=>{let{update:t,setState:a,container:i,view:o,options:s}=e,l=i.ownerDocument,c=(0,lr.Ys)(i).select(".".concat(lr.V$)).node(),u=s.marks.find(e=>{let{id:t}=e;return t===s4}),{state:d}=u,p=l.createElement("g");c.appendChild(p);let f=(e,i)=>{var s,u,d,m;return s=this,u=void 0,d=void 0,m=function*(){if(p.removeChildren(),e){let t=l.createElement("text",{style:Object.assign({x:0,text:r.rootText,depth:0},r.style)});p.appendChild(t);let n="",a=null==e?void 0:e.split(" / "),i=r.style.y,o=p.getBBox().width,s=c.getBBox().width,u=a.map((e,t)=>{let a=l.createElement("text",{style:Object.assign(Object.assign({x:o,text:" / "},r.style),{y:i})});p.appendChild(a),o+=a.getBBox().width,n="".concat(n).concat(e," / ");let c=l.createElement("text",{name:n.replace(/\s\/\s$/,""),style:Object.assign(Object.assign({text:e,x:o,depth:t+1},r.style),{y:i})});return p.appendChild(c),(o+=c.getBBox().width)>s&&(i=p.getBBox().height,o=0,a.attr({x:o,y:i}),o+=a.getBBox().width,c.attr({x:o,y:i}),o+=c.getBBox().width),c});[t,...u].forEach((e,t)=>{if(t===u.length)return;let n=Object.assign({},e.attributes);e.attr("cursor","pointer"),e.addEventListener("mouseenter",()=>{e.attr(r.active)}),e.addEventListener("mouseleave",()=>{e.attr(n)}),e.addEventListener("click",()=>{f(e.name,(0,sY.Z)(e,["style","depth"]))})})}a("drillDown",t=>{let{marks:r}=t,a=r.map(t=>{if(t.id!==s4&&"rect"!==t.type)return t;let{data:r}=t,a=Object.fromEntries(["color"].map(e=>[e,{domain:o.scale[e].getOptions().domain}])),s=r.filter(t=>{let r=t.path;if(n||(t[s9]=r.split(" / ")[i]),!e)return!0;let a=new RegExp("^".concat(e,".+"));return a.test(r)});return(0,n5.Z)({},t,n?{data:s,scale:a}:{data:s})});return Object.assign(Object.assign({},t),{marks:a})}),yield t()},new(d||(d=Promise))(function(e,t){function n(e){try{a(m.next(e))}catch(e){t(e)}}function r(e){try{a(m.throw(e))}catch(e){t(e)}}function a(t){var a;t.done?e(t.value):((a=t.value)instanceof d?a:new d(function(e){e(a)})).then(n,r)}a((m=m.apply(s,u||[])).next())})},m=e=>{let t=e.target;if((0,sY.Z)(t,["style",s5])!==s4||"rect"!==(0,sY.Z)(t,["markType"])||!(0,sY.Z)(t,["style",s1]))return;let n=(0,sY.Z)(t,["__data__","key"]),r=(0,sY.Z)(t,["style","depth"]);t.style.cursor="pointer",f(n,r)};c.addEventListener("click",m);let g=ln(Object.assign(Object.assign({},d.active),d.inactive)),h=()=>{let e=la(c);e.forEach(e=>{let t=(0,sY.Z)(e,["style",s1]),n=(0,sY.Z)(e,["style","cursor"]);if("pointer"!==n&&t){e.style.cursor="pointer";let t=(0,sW.Z)(e.attributes,g);e.addEventListener("mouseenter",()=>{e.attr(d.active)}),e.addEventListener("mouseleave",()=>{e.attr((0,n5.Z)(t,d.inactive))})}})};return c.addEventListener("mousemove",h),()=>{p.remove(),c.removeEventListener("click",m),c.removeEventListener("mousemove",h)}}},"mark.sunburst":s7}),class extends o{constructor(e){super(Object.assign(Object.assign({},e),{lib:s}))}}),y4=function(){return(y4=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},y6=["renderer"],y9=["width","height","autoFit","theme","inset","insetLeft","insetRight","insetTop","insetBottom","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","depth","title","clip","children","type","data","direction"],y8="__transform__",y7=function(e,t){return(0,es.isBoolean)(t)?{type:e,available:t}:y4({type:e},t)},Ee={xField:"encode.x",yField:"encode.y",colorField:"encode.color",angleField:"encode.y",keyField:"encode.key",sizeField:"encode.size",shapeField:"encode.shape",seriesField:"encode.series",positionField:"encode.position",textField:"encode.text",valueField:"encode.value",binField:"encode.x",srcField:"encode.src",linkColorField:"encode.linkColor",fontSizeField:"encode.fontSize",radius:"coordinate.outerRadius",innerRadius:"coordinate.innerRadius",startAngle:"coordinate.startAngle",endAngle:"coordinate.endAngle",focusX:"coordinate.focusX",focusY:"coordinate.focusY",distortionX:"coordinate.distortionX",distortionY:"coordinate.distortionY",visual:"coordinate.visual",stack:{target:"transform",value:function(e){return y7("stackY",e)}},normalize:{target:"transform",value:function(e){return y7("normalizeY",e)}},percent:{target:"transform",value:function(e){return y7("normalizeY",e)}},group:{target:"transform",value:function(e){return y7("dodgeX",e)}},sort:{target:"transform",value:function(e){return y7("sortX",e)}},symmetry:{target:"transform",value:function(e){return y7("symmetryY",e)}},diff:{target:"transform",value:function(e){return y7("diffY",e)}},meta:{target:"scale",value:function(e){return e}},label:{target:"labels",value:function(e){return e}},shape:"style.shape",connectNulls:{target:"style",value:function(e){return(0,es.isBoolean)(e)?{connect:e}:e}}},Et=["xField","yField","seriesField","colorField","keyField","positionField","meta","tooltip","animate","stack","normalize","percent","group","sort","symmetry","diff"],En=[{key:"annotations",extend_keys:[]},{key:"line",type:"line",extend_keys:Et},{key:"point",type:"point",extend_keys:Et},{key:"area",type:"area",extend_keys:Et}],Er=[{key:"transform",callback:function(e,t,n){e[t]=e[t]||[];var r,a=n.available,i=y5(n,["available"]);if(void 0===a||a)e[t].push(y4(((r={})[y8]=!0,r),i));else{var o=e[t].indexOf(function(e){return e.type===n.type});-1!==o&&e[t].splice(o,1)}}},{key:"labels",callback:function(e,t,n){var r;if(!n||(0,es.isArray)(n)){e[t]=n||[];return}n.text||(n.text=e.yField),e[t]=e[t]||[],e[t].push(y4(((r={})[y8]=!0,r),n))}}],Ea=[{key:"conversionTag",shape:"ConversionTag"},{key:"axisText",shape:"BidirectionalBarAxisText"}],Ei=(l=function(e,t){return(l=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Eo=function(){return(Eo=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},El=function(e){function t(t){void 0===t&&(t={});var n=t.style,r=Es(t,["style"]);return e.call(this,Eo({style:Eo({fill:"#eee"},n)},r))||this}return Ei(t,e),t}(nO.mg),Ec=(c=function(e,t){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Eu=function(){return(Eu=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},Ep=function(e){function t(t){void 0===t&&(t={});var n=t.style,r=Ed(t,["style"]);return e.call(this,Eu({style:Eu({text:"",fontSize:12,textBaseline:"middle",textAlign:"center",fill:"#000",fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",lineWidth:1},n)},r))||this}return Ec(t,e),t}(nO.xv),Ef=function(e,t,n){if(n||2==arguments.length)for(var r,a=0,i=t.length;a0){var r=t.x,a=t.y,i=t.height,o=t.width,s=t.data,p=t.key,f=(0,es.get)(s,l),g=m/2;if(e){var b=r+o/2,E=a;d.push({points:[[b+g,E-u+y],[b+g,E-h-y],[b,E-y],[b-g,E-h-y],[b-g,E-u+y]],center:[b,E-u/2-y],width:u,value:[c,f],key:p})}else{var b=r,E=a+i/2;d.push({points:[[r-u+y,E-g],[r-h-y,E-g],[b-y,E],[r-h-y,E+g],[r-u+y,E+g]],center:[b-u/2-y,E],width:u,value:[c,f],key:p})}c=f}}),d},t.prototype.render=function(){this.setDirection(),this.drawConversionTag()},t.prototype.setDirection=function(){var e=this.chart.getCoordinate(),t=(0,es.get)(e,"options.transformations"),n="horizontal";t.forEach(function(e){e.includes("transpose")&&(n="vertical")}),this.direction=n},t.prototype.drawConversionTag=function(){var e=this,t=this.getConversionTagLayout(),n=this.attributes,r=n.style,a=n.text,i=a.style,o=a.formatter;t.forEach(function(t){var n=t.points,a=t.center,s=t.value,l=t.key,c=s[0],u=s[1],d=a[0],p=a[1],f=new El({style:EE({points:n,fill:"#eee"},r),id:"polygon-".concat(l)}),m=new Ep({style:EE({x:d,y:p,text:(0,es.isFunction)(o)?o(c,u):(u/c*100).toFixed(2)+"%"},i),id:"text-".concat(l)});e.appendChild(f),e.appendChild(m)})},t.prototype.update=function(){var e=this;this.getConversionTagLayout().forEach(function(t){var n=t.points,r=t.center,a=t.key,i=r[0],o=r[1],s=e.getElementById("polygon-".concat(a)),l=e.getElementById("text-".concat(a));s.setAttribute("points",n),l.setAttribute("x",i),l.setAttribute("y",o)})},t.tag="ConversionTag",t}(Eb),Ev=(p=function(e,t){return(p=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ES=function(){return(ES=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},EO={ConversionTag:ET,BidirectionalBarAxisText:function(e){function t(n,r){return e.call(this,n,r,{type:t.tag})||this}return Ev(t,e),t.prototype.render=function(){this.drawText()},t.prototype.getBidirectionalBarAxisTextLayout=function(){var e="vertical"===this.attributes.layout,t=this.getElementsLayout(),n=e?(0,es.uniqBy)(t,"x"):(0,es.uniqBy)(t,"y"),r=["title"],a=[],i=this.chart.getContext().views,o=(0,es.get)(i,[0,"layout"]),s=o.width,l=o.height;return n.forEach(function(t){var n=t.x,i=t.y,o=t.height,c=t.width,u=t.data,d=t.key,p=(0,es.get)(u,r);e?a.push({x:n+c/2,y:l,text:p,key:d}):a.push({x:s,y:i+o/2,text:p,key:d})}),(0,es.uniqBy)(a,"text").length!==a.length&&(a=Object.values((0,es.groupBy)(a,"text")).map(function(t){var n,r=t.reduce(function(t,n){return t+(e?n.x:n.y)},0);return ES(ES({},t[0]),((n={})[e?"x":"y"]=r/t.length,n))})),a},t.prototype.transformLabelStyle=function(e){var t={},n=/^label[A-Z]/;return Object.keys(e).forEach(function(r){n.test(r)&&(t[r.replace("label","").replace(/^[A-Z]/,function(e){return e.toLowerCase()})]=e[r])}),t},t.prototype.drawText=function(){var e=this,t=this.getBidirectionalBarAxisTextLayout(),n=this.attributes,r=n.layout,a=n.labelFormatter,i=EA(n,["layout","labelFormatter"]);t.forEach(function(t){var n=t.x,o=t.y,s=t.text,l=t.key,c=new Ep({style:ES({x:n,y:o,text:(0,es.isFunction)(a)?a(s):s,wordWrap:!0,wordWrapWidth:"horizontal"===r?64:120,maxLines:2,textOverflow:"ellipsis"},e.transformLabelStyle(i)),id:"text-".concat(l)});e.appendChild(c)})},t.prototype.update=function(){var e=this;this.getBidirectionalBarAxisTextLayout().forEach(function(t){var n=t.x,r=t.y,a=t.key,i=e.getElementById("text-".concat(a));i.setAttribute("x",n),i.setAttribute("y",r)})},t.tag="BidirectionalBarAxisText",t}(Eb)},E_=function(){function e(e,t){this.container=new Map,this.chart=e,this.config=t,this.init()}return e.prototype.init=function(){var e=this;Ea.forEach(function(t){var n,r=t.key,a=t.shape,i=e.config[r];if(i){var o=new EO[a](e.chart,i);e.chart.getContext().canvas.appendChild(o),e.container.set(r,o)}else null===(n=e.container.get(r))||void 0===n||n.clear()})},e.prototype.update=function(){var e=this;this.container.size&&Ea.forEach(function(t){var n=t.key,r=e.container.get(n);null==r||r.update()})},e}(),Ek=(f=function(e,t){return(f=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),EI=function(){return(EI=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&(0,es.set)(t,"children",[{type:"interval"}]);var n=t.scale,r=t.markBackground,a=t.data,i=t.children,o=t.yField,s=(0,es.get)(n,"y.domain",[]);if(r&&s.length&&(0,es.isArray)(a)){var l="domainMax",c=a.map(function(e){var t;return EG(EG({originData:EG({},e)},(0,es.omit)(e,o)),((t={})[l]=s[s.length-1],t))});i.unshift(EG({type:"interval",data:c,yField:l,tooltip:!1,style:{fill:"#eee"},label:!1},r))}return e},EB,EP)(e)}var Ez=(h=function(e,t){return(h=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});n1("shape.interval.bar25D",function(e,t){return function(n){var r=e.fill,a=void 0===r?"#2888FF":r,i=e.stroke,o=e.fillOpacity,s=void 0===o?1:o,l=e.strokeOpacity,c=void 0===l?.2:l,u=e.pitch,d=void 0===u?8:u,p=n[0],f=n[1],m=n[2],g=n[3],h=(f[1]-p[1])/2,b=t.document,y=b.createElement("g",{}),E=b.createElement("polygon",{style:{points:[p,[p[0]-d,p[1]+h],[m[0]-d,p[1]+h],g],fill:a,fillOpacity:s,stroke:i,strokeOpacity:c,inset:30}}),T=b.createElement("polygon",{style:{points:[[p[0]-d,p[1]+h],f,m,[m[0]-d,p[1]+h]],fill:a,fillOpacity:s,stroke:i,strokeOpacity:c}}),v=b.createElement("polygon",{style:{points:[p,[p[0]-d,p[1]+h],f,[p[0]+d,p[1]+h]],fill:a,fillOpacity:s-.2}});return y.appendChild(E),y.appendChild(T),y.appendChild(v),y}});var EZ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="Bar",t}return Ez(t,e),t.getDefaultOptions=function(){return{type:"view",coordinate:{transform:[{type:"transpose"}]},children:[{type:"interval"}],scale:{y:{nice:!0}},axis:{y:{title:!1},x:{title:!1}},interaction:{tooltip:{shared:!0},elementHighlight:{background:!0}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return E$},t}(EN),EW=(b=function(e,t){return(b=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});n1("shape.interval.column25D",function(e,t){return function(n){var r=e.fill,a=void 0===r?"#2888FF":r,i=e.stroke,o=e.fillOpacity,s=void 0===o?1:o,l=e.strokeOpacity,c=void 0===l?.2:l,u=e.pitch,d=void 0===u?8:u,p=(n[1][0]-n[0][0])/2+n[0][0],f=t.document,m=f.createElement("g",{}),g=f.createElement("polygon",{style:{points:[[n[0][0],n[0][1]],[p,n[1][1]+d],[p,n[3][1]+d],[n[3][0],n[3][1]]],fill:a,fillOpacity:s,stroke:i,strokeOpacity:c,inset:30}}),h=f.createElement("polygon",{style:{points:[[p,n[1][1]+d],[n[1][0],n[1][1]],[n[2][0],n[2][1]],[p,n[2][1]+d]],fill:a,fillOpacity:s,stroke:i,strokeOpacity:c}}),b=f.createElement("polygon",{style:{points:[[n[0][0],n[0][1]],[p,n[1][1]-d],[n[1][0],n[1][1]],[p,n[1][1]+d]],fill:a,fillOpacity:s-.2}});return m.appendChild(h),m.appendChild(g),m.appendChild(b),m}});var EY=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="column",t}return EW(t,e),t.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0},elementHighlight:{background:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"interval"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return E$},t}(EN);function EV(e){return(0,es.flow)(function(e){var t=e.options,n=t.children;return t.legend&&(void 0===n?[]:n).forEach(function(e){if(!(0,es.get)(e,"colorField")){var t=(0,es.get)(e,"yField");(0,es.set)(e,"colorField",function(){return t})}}),e},function(e){var t=e.options,n=t.annotations,r=void 0===n?[]:n,a=t.children,i=t.scale,o=!1;return(0,es.get)(i,"y.key")||(void 0===a?[]:a).forEach(function(e,t){if(!(0,es.get)(e,"scale.y.key")){var n="child".concat(t,"Scale");(0,es.set)(e,"scale.y.key",n);var a=e.annotations,i=void 0===a?[]:a;i.length>0&&((0,es.set)(e,"scale.y.independent",!1),i.forEach(function(e){(0,es.set)(e,"scale.y.key",n)})),!o&&r.length>0&&void 0===(0,es.get)(e,"scale.y.independent")&&(o=!0,(0,es.set)(e,"scale.y.independent",!1),r.forEach(function(e){(0,es.set)(e,"scale.y.key",n)}))}}),e},EB,EP)(e)}var Eq=(y=function(e,t){return(y=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),EK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="DualAxes",t}return Eq(t,e),t.getDefaultOptions=function(){return{type:"view",axis:{y:{title:!1,tick:!1},x:{title:!1}},scale:{y:{independent:!0,nice:!0}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return EV},t}(EN);function EX(e){return(0,es.flow)(function(e){var t=e.options,n=t.xField;return t.colorField||(0,es.set)(t,"colorField",n),e},function(e){var t=e.options,n=t.compareField,r=t.transform,a=t.isTransposed,i=t.coordinate;return r||(n?(0,es.set)(t,"transform",[]):(0,es.set)(t,"transform",[{type:"symmetryY"}])),!i&&(void 0===a||a)&&(0,es.set)(t,"coordinate",{transform:[{type:"transpose"}]}),e},function(e){var t=e.options,n=t.compareField,r=t.seriesField,a=t.data,i=t.children,o=t.yField,s=t.isTransposed;if(n||r){var l=Object.values((0,es.groupBy)(a,function(e){return e[n||r]}));i[0].data=l[0],i.push({type:"interval",data:l[1],yField:function(e){return-e[o]}}),delete t.compareField,delete t.data}return r&&((0,es.set)(t,"type","spaceFlex"),(0,es.set)(t,"ratio",[1,1]),(0,es.set)(t,"direction",void 0===s||s?"row":"col"),delete t.seriesField),e},function(e){var t=e.options,n=t.tooltip,r=t.xField,a=t.yField;return n||(0,es.set)(t,"tooltip",{title:!1,items:[function(e){return{name:e[r],value:e[a]}}]}),e},EB,EP)(e)}var EQ=(E=function(e,t){return(E=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}E(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),EJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="column",t}return EQ(t,e),t.getDefaultOptions=function(){return{type:"view",scale:{x:{padding:0}},animate:{enter:{type:"fadeIn"}},axis:!1,shapeField:"funnel",label:{position:"inside",transform:[{type:"contrastReverse"}]},children:[{type:"interval"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return EX},t}(EN);function E0(e){return(0,es.flow)(EB,EP)(e)}var E1=(T=function(e,t){return(T=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}T(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),E2=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="line",t}return E1(t,e),t.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"line"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return E0},t}(EN);function E3(e){switch(typeof e){case"function":return e;case"string":return function(t){return(0,es.get)(t,[e])};default:return function(){return e}}}var E4=function(){return(E4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&(t.x1=e[r],t.x2=t[r],t.y1=e[Tx]),t},[]),o.shift(),a.push({type:"link",xField:["x1","x2"],yField:"y1",zIndex:-1,data:o,style:TR({stroke:"#697474"},i),label:!1,tooltip:!1}),e},EB,EP)(e)}var TP=(w=function(e,t){return(w=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}w(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),TM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="waterfall",t}return TP(t,e),t.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{field:Tw,valueFormatter:"~s",name:"value"},axis:{y:{title:null,labelFormatter:"~s"},x:{title:null}},children:[{type:"interval",interaction:{elementHighlight:{background:!0}}}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return TD},t}(EN);function TF(e){return(0,es.flow)(function(e){var t=e.options,n=t.data,r=t.binNumber,a=t.binWidth,i=t.children,o=t.channel,s=void 0===o?"count":o,l=(0,es.get)(i,"[0].transform[0]",{});return(0,es.isNumber)(a)?((0,es.assign)(l,{thresholds:(0,es.ceil)((0,es.divide)(n.length,a)),y:s}),e):((0,es.isNumber)(r)&&(0,es.assign)(l,{thresholds:r,y:s}),e)},EB,EP)(e)}var TB=(R=function(e,t){return(R=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}R(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Tj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="Histogram",t}return TB(t,e),t.getDefaultOptions=function(){return{type:"view",autoFit:!0,axis:{y:{title:!1},x:{title:!1}},children:[{type:"rect",transform:[{type:"binX",y:"count"}],interaction:{elementHighlight:{background:!0}}}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return TF},t}(EN);function TU(e){return(0,es.flow)(function(e){var t=e.options,n=t.tooltip,r=void 0===n?{}:n,a=t.colorField,i=t.sizeField;return r&&!r.field&&(r.field=a||i),e},function(e){var t=e.options,n=t.mark,r=t.children;return n&&(r[0].type=n),e},EB,EP)(e)}var TH=(L=function(e,t){return(L=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}L(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),TG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="heatmap",t}return TH(t,e),t.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{valueFormatter:"~s"},axis:{y:{title:null,grid:!0},x:{title:null,grid:!0}},children:[{type:"point",interaction:{elementHighlight:{background:!0}}}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return TU},t}(EN);function T$(e){return(0,es.flow)(function(e){var t=e.options.boxType;return e.options.children[0].type=void 0===t?"box":t,e},EB,EP)(e)}var Tz=(D=function(e,t){return(D=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}D(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),TZ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="box",t}return Tz(t,e),t.getDefaultOptions=function(){return{type:"view",children:[{type:"box"}],axis:{y:{title:!1},x:{title:!1}},tooltip:{items:[{name:"min",channel:"y"},{name:"q1",channel:"y1"},{name:"q2",channel:"y2"},{name:"q3",channel:"y3"},{name:"max",channel:"y4"}]}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return T$},t}(EN);function TW(e){return(0,es.flow)(function(e){var t=e.options,n=t.data,r=[{type:"custom",callback:function(e){return{links:e}}}];if((0,es.isArray)(n))n.length>0?(0,es.set)(t,"data",{value:n,transform:r}):delete t.children;else if("fetch"===(0,es.get)(n,"type")&&(0,es.get)(n,"value")){var a=(0,es.get)(n,"transform");(0,es.isArray)(a)?(0,es.set)(n,"transform",a.concat(r)):(0,es.set)(n,"transform",r)}return e},EB,EP)(e)}var TY=(P=function(e,t){return(P=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}P(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),TV=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="sankey",t}return TY(t,e),t.getDefaultOptions=function(){return{type:"view",children:[{type:"sankey"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return TW},t}(EN);function Tq(e){t=e.options.layout,e.options.coordinate.transform="horizontal"!==(void 0===t?"horizontal":t)?void 0:[{type:"transpose"}];var t,n=e.options.layout,r=void 0===n?"horizontal":n;return e.options.children.forEach(function(e){var t;(null===(t=null==e?void 0:e.coordinate)||void 0===t?void 0:t.transform)&&(e.coordinate.transform="horizontal"!==r?void 0:[{type:"transpose"}])}),e}var TK=function(){return(TK=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},vN=(0,el.forwardRef)(function(e,t){var n,r,a,i,o,s,l,c,u,d=e.chartType,p=vC(e,["chartType"]),f=p.containerStyle,m=p.containerAttributes,g=void 0===m?{}:m,h=p.className,b=p.loading,y=p.loadingTemplate,E=p.errorTemplate,T=vC(p,["containerStyle","containerAttributes","className","loading","loadingTemplate","errorTemplate"]),v=(n=vk[void 0===d?"Base":d],r=(0,el.useRef)(),a=(0,el.useRef)(),i=(0,el.useRef)(null),o=T.onReady,s=T.onEvent,l=function(e,t){void 0===e&&(e="image/png");var n,r=null===(n=i.current)||void 0===n?void 0:n.getElementsByTagName("canvas")[0];return null==r?void 0:r.toDataURL(e,t)},c=function(e,t,n){void 0===e&&(e="download"),void 0===t&&(t="image/png");var r=e;-1===e.indexOf(".")&&(r="".concat(e,".").concat(t.split("/")[1]));var a=l(t,n),i=document.createElement("a");return i.href=a,i.download=r,document.body.appendChild(i),i.click(),document.body.removeChild(i),i=null,r},u=function(e,t){void 0===t&&(t=!1);var n=Object.keys(e),r=t;n.forEach(function(n){var a,i=e[n];("tooltip"===n&&(r=!0),(0,es.isFunction)(i)&&(a="".concat(i),/react|\.jsx|children:\[\(|return\s+[A-Za-z0-9].createElement\((?!['"][g|circle|ellipse|image|rect|line|polyline|polygon|text|path|html|mesh]['"])([^\)])*,/i.test(a)))?e[n]=function(){for(var e=[],t=0;t0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function j(e,t){let n=[],r=-1,a=e.passKeys?new Map:x;for(;++r=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let a=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&q(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),q(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),q(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length)){if(er))return;let s=a.events.length,l=s;for(;l--;)if("exit"===a.events[l][0]&&"chunkFlow"===a.events[l][1].type){if(e){n=a.events[l][1].end;break}e=!0}for(h(o),i=s;it;){let t=i[n];a.containerState=t[1],t[0].exit.call(a,e)}i.length=t}function b(){t.write([null]),n=void 0,t=void 0,a.containerState._closeFlow=void 0}}},en={tokenize:function(e,t,n){return(0,Q.f)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var er=n(23402);let ea={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?a(t):(0,J.Ch)(t)?e.check(ei,i,a)(t):(e.consume(t),r)}function a(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return K(e),e}},ei={tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,Q.f)(e,a,"linePrefix")};function a(a){if(null===a||(0,J.Ch)(a))return n(a);let i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}},partial:!0},eo={tokenize:function(e){let t=this,n=e.attempt(er.w,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,(0,Q.f)(e,e.attempt(this.parser.constructs.flow,r,e.attempt(ea,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},es={resolveAll:ed()},el=eu("string"),ec=eu("text");function eu(e){return{tokenize:function(t){let n=this,r=this.parser.constructs[e],a=t.attempt(r,i,o);return i;function i(e){return l(e)?a(e):o(e)}function o(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),s}function s(e){return l(e)?(t.exit("data"),a(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;let t=r[e],a=-1;if(t)for(;++a=3&&(null===o||(0,J.Ch)(o))?(e.exit("thematicBreak"),t(o)):n(o)}(i)}}},eg={name:"list",tokenize:function(e,t,n){let r=this,a=r.events[r.events.length-1],i=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,o=0;return function(t){let a=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===a?!r.containerState.marker||t===r.containerState.marker:(0,J.pY)(t)){if(r.containerState.type||(r.containerState.type=a,e.enter(a,{_container:!0})),"listUnordered"===a)return e.enter("listItemPrefix"),42===t||45===t?e.check(em,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(a){return(0,J.pY)(a)&&++o<10?(e.consume(a),t):(!r.interrupt||o<2)&&(r.containerState.marker?a===r.containerState.marker:41===a||46===a)?(e.exit("listItemValue"),s(a)):n(a)}(t)}return n(t)};function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(er.w,r.interrupt?n:l,e.attempt(eh,u,c))}function l(e){return r.containerState.initialBlankLine=!0,i++,u(e)}function c(t){return(0,J.xz)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(er.w,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,(0,Q.f)(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!(0,J.xz)(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eb,t,a)(n))});function a(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,(0,Q.f)(e,e.attempt(eg,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}},exit:function(e){e.exit(this.containerState.type)}},eh={tokenize:function(e,t,n){let r=this;return(0,Q.f)(e,function(e){let a=r.events[r.events.length-1];return!(0,J.xz)(e)&&a&&"listItemPrefixWhitespace"===a[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},eb={tokenize:function(e,t,n){let r=this;return(0,Q.f)(e,function(e){let a=r.events[r.events.length-1];return a&&"listItemIndent"===a[1].type&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)},partial:!0},ey={name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),a}return n(t)};function a(n){return(0,J.xz)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){let r=this;return function(t){return(0,J.xz)(t)?(0,Q.f)(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):a(t)};function a(r){return e.attempt(ey,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function eE(e,t,n,r,a,i,o,s,l){let c=l||Number.POSITIVE_INFINITY,u=0;return function(t){return 60===t?(e.enter(r),e.enter(a),e.enter(i),e.consume(t),e.exit(i),d):null===t||32===t||41===t||(0,J.Av)(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),m(t))};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||(0,J.Ch)(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function m(a){return!u&&(null===a||41===a||(0,J.z3)(a))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(a)):u999||null===d||91===d||93===d&&!o||94===d&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):93===d?(e.exit(i),e.enter(a),e.consume(d),e.exit(a),e.exit(r),t):(0,J.Ch)(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||(0,J.Ch)(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),o||(o=!(0,J.xz)(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function ev(e,t,n,r,a,i){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(a),e.consume(t),e.exit(a),o=40===t?41:t,s):n(t)};function s(n){return n===o?(e.enter(a),e.consume(n),e.exit(a),e.exit(r),t):(e.enter(i),l(n))}function l(t){return t===o?(e.exit(i),s(o)):null===t?n(t):(0,J.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,Q.f)(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||(0,J.Ch)(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===o||92===t?(e.consume(t),c):c(t)}}function eS(e,t){let n;return function r(a){return(0,J.Ch)(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):(0,J.xz)(a)?(0,Q.f)(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}var eA=n(11098);let eO={tokenize:function(e,t,n){return function(t){return(0,J.z3)(t)?eS(e,r)(t):n(t)};function r(t){return ev(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function a(t){return(0,J.xz)(t)?(0,Q.f)(e,i,"whitespace")(t):i(t)}function i(e){return null===e||(0,J.Ch)(e)?t(e):n(e)}},partial:!0},e_={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),(0,Q.f)(e,a,"linePrefix",5)(t)};function a(t){let a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?function t(n){return null===n?i(n):(0,J.Ch)(n)?e.attempt(ek,t,i)(n):(e.enter("codeFlowValue"),function n(r){return null===r||(0,J.Ch)(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function i(n){return e.exit("codeIndented"),t(n)}}},ek={tokenize:function(e,t,n){let r=this;return a;function a(t){return r.parser.lazy[r.now().line]?n(t):(0,J.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):(0,Q.f)(e,i,"linePrefix",5)(t)}function i(e){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):(0,J.Ch)(e)?a(e):n(e)}},partial:!0},eI={name:"setextUnderline",tokenize:function(e,t,n){let r;let a=this;return function(t){let o,s=a.events.length;for(;s--;)if("lineEnding"!==a.events[s][1].type&&"linePrefix"!==a.events[s][1].type&&"content"!==a.events[s][1].type){o="paragraph"===a.events[s][1].type;break}return!a.parser.lazy[a.now().line]&&(a.interrupt||o)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),(0,J.xz)(n)?(0,Q.f)(e,i,"lineSuffix")(n):i(n))}(t)):n(t)};function i(r){return null===r||(0,J.Ch)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,a,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),a||"definition"!==e[i][1].type||(a=i);let o={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",o,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[a][1].end)):e[n][1]=o,e.push(["exit",o,t]),e}},eC=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],eN=["pre","script","style","textarea"],ex={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(er.w,t,n)}},partial:!0},ew={tokenize:function(e,t,n){let r=this;return function(t){return(0,J.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):n(t)};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},eR={tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a)};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},eL={name:"codeFenced",tokenize:function(e,t,n){let r;let a=this,i={tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),(0,J.xz)(t)?(0,Q.f)(e,l,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(a){return a===r?(i++,e.consume(a),t):i>=s?(e.exit("codeFencedFenceSequence"),(0,J.xz)(a)?(0,Q.f)(e,c,"whitespace")(a):c(a)):n(a)}(t)):n(t)}function c(r){return null===r||(0,J.Ch)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},o=0,s=0;return function(t){return function(t){let i=a.events[a.events.length-1];return o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(a){return a===r?(s++,e.consume(a),t):s<3?n(a):(e.exit("codeFencedFenceSequence"),(0,J.xz)(a)?(0,Q.f)(e,l,"whitespace")(a):l(a))}(t)}(t)};function l(i){return null===i||(0,J.Ch)(i)?(e.exit("codeFencedFence"),a.interrupt?t(i):e.check(eR,u,m)(i)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(a){return null===a||(0,J.Ch)(a)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(a)):(0,J.xz)(a)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,Q.f)(e,c,"whitespace")(a)):96===a&&a===r?n(a):(e.consume(a),t)}(i))}function c(t){return null===t||(0,J.Ch)(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(a){return null===a||(0,J.Ch)(a)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(a)):96===a&&a===r?n(a):(e.consume(a),t)}(t))}function u(t){return e.attempt(i,m,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return o>0&&(0,J.xz)(t)?(0,Q.f)(e,f,"linePrefix",o+1)(t):f(t)}function f(t){return null===t||(0,J.Ch)(t)?e.check(eR,u,m)(t):(e.enter("codeFlowValue"),function t(n){return null===n||(0,J.Ch)(n)?(e.exit("codeFlowValue"),f(n)):(e.consume(n),t)}(t))}function m(n){return e.exit("codeFenced"),t(n)}},concrete:!0},eD=document.createElement("i");function eP(e){let t="&"+e+";";eD.innerHTML=t;let n=eD.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let eM={name:"characterReference",tokenize:function(e,t,n){let r,a;let i=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,a=J.H$,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,a=J.AF,c):(e.enter("characterReferenceValue"),r=7,a=J.pY,c(t))}function c(s){if(59===s&&o){let r=e.exit("characterReferenceValue");return a!==J.H$||eP(i.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return a(s)&&o++1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;let d=Object.assign({},e[n][1].end),p=Object.assign({},e[u][1].start);eW(d,-s),eW(p,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},o={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:p},a={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},o.end)},e[n][1].end=Object.assign({},i.start),e[u][1].start=Object.assign({},o.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=(0,Y.V)(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=(0,Y.V)(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",a,t]]),l=(0,Y.V)(l,(0,ef.C)(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=(0,Y.V)(l,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=(0,Y.V)(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,(0,Y.d)(e,n-1,u-n+3,l),u=n+l.length-c-2;break}}for(u=-1;++ui&&"whitespace"===e[a][1].type&&(a-=2),"atxHeadingSequence"===e[a][1].type&&(i===a-1||a-4>i&&"whitespace"===e[a-2][1].type)&&(a-=i+1===a?2:4),a>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[a][1].end},r={type:"chunkText",start:e[i][1].start,end:e[a][1].end,contentType:"text"},(0,Y.d)(e,i,a-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},42:em,45:[eI,em],60:{name:"htmlFlow",tokenize:function(e,t,n){let r,a,i,o,s;let l=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c};function c(o){return 33===o?(e.consume(o),u):47===o?(e.consume(o),a=!0,f):63===o?(e.consume(o),r=3,l.interrupt?t:R):(0,J.jv)(o)?(e.consume(o),i=String.fromCharCode(o),m):n(o)}function u(a){return 45===a?(e.consume(a),r=2,d):91===a?(e.consume(a),r=5,o=0,p):(0,J.jv)(a)?(e.consume(a),r=4,l.interrupt?t:R):n(a)}function d(r){return 45===r?(e.consume(r),l.interrupt?t:R):n(r)}function p(r){let a="CDATA[";return r===a.charCodeAt(o++)?(e.consume(r),o===a.length)?l.interrupt?t:O:p:n(r)}function f(t){return(0,J.jv)(t)?(e.consume(t),i=String.fromCharCode(t),m):n(t)}function m(o){if(null===o||47===o||62===o||(0,J.z3)(o)){let s=47===o,c=i.toLowerCase();return!s&&!a&&eN.includes(c)?(r=1,l.interrupt?t(o):O(o)):eC.includes(i.toLowerCase())?(r=6,s)?(e.consume(o),g):l.interrupt?t(o):O(o):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(o):a?function t(n){return(0,J.xz)(n)?(e.consume(n),t):S(n)}(o):h(o))}return 45===o||(0,J.H$)(o)?(e.consume(o),i+=String.fromCharCode(o),m):n(o)}function g(r){return 62===r?(e.consume(r),l.interrupt?t:O):n(r)}function h(t){return 47===t?(e.consume(t),S):58===t||95===t||(0,J.jv)(t)?(e.consume(t),b):(0,J.xz)(t)?(e.consume(t),h):S(t)}function b(t){return 45===t||46===t||58===t||95===t||(0,J.H$)(t)?(e.consume(t),b):y(t)}function y(t){return 61===t?(e.consume(t),E):(0,J.xz)(t)?(e.consume(t),y):h(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,T):(0,J.xz)(t)?(e.consume(t),E):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||(0,J.z3)(n)?y(n):(e.consume(n),t)}(t)}function T(t){return t===s?(e.consume(t),s=null,v):null===t||(0,J.Ch)(t)?n(t):(e.consume(t),T)}function v(e){return 47===e||62===e||(0,J.xz)(e)?h(e):n(e)}function S(t){return 62===t?(e.consume(t),A):n(t)}function A(t){return null===t||(0,J.Ch)(t)?O(t):(0,J.xz)(t)?(e.consume(t),A):n(t)}function O(t){return 45===t&&2===r?(e.consume(t),C):60===t&&1===r?(e.consume(t),N):62===t&&4===r?(e.consume(t),L):63===t&&3===r?(e.consume(t),R):93===t&&5===r?(e.consume(t),w):(0,J.Ch)(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(ex,D,_)(t)):null===t||(0,J.Ch)(t)?(e.exit("htmlFlowData"),_(t)):(e.consume(t),O)}function _(t){return e.check(ew,k,D)(t)}function k(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||(0,J.Ch)(t)?_(t):(e.enter("htmlFlowData"),O(t))}function C(t){return 45===t?(e.consume(t),R):O(t)}function N(t){return 47===t?(e.consume(t),i="",x):O(t)}function x(t){if(62===t){let n=i.toLowerCase();return eN.includes(n)?(e.consume(t),L):O(t)}return(0,J.jv)(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),x):O(t)}function w(t){return 93===t?(e.consume(t),R):O(t)}function R(t){return 62===t?(e.consume(t),L):45===t&&2===r?(e.consume(t),R):O(t)}function L(t){return null===t||(0,J.Ch)(t)?(e.exit("htmlFlowData"),D(t)):(e.consume(t),L)}function D(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},61:eI,95:em,96:eL,126:eL},eQ={38:eM,92:eF},eJ={[-5]:eB,[-4]:eB,[-3]:eB,33:e$,38:eM,42:eZ,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a};function a(t){return(0,J.jv)(t)?(e.consume(t),i):64===t?n(t):s(t)}function i(t){return 43===t||45===t||46===t||(0,J.H$)(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||(0,J.H$)(n))&&r++<32?(e.consume(n),t):(r=0,s(n))}(t)):s(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||(0,J.Av)(r)?n(r):(e.consume(r),o)}function s(t){return 64===t?(e.consume(t),l):(0,J.n9)(t)?(e.consume(t),s):n(t)}function l(a){return(0,J.H$)(a)?function a(i){return 46===i?(e.consume(i),r=0,l):62===i?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(i),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(i){if((45===i||(0,J.H$)(i))&&r++<63){let n=45===i?t:a;return e.consume(i),n}return n(i)}(i)}(a):n(a)}}},{name:"htmlText",tokenize:function(e,t,n){let r,a,i;let o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),T):63===t?(e.consume(t),y):(0,J.jv)(t)?(e.consume(t),S):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),a=0,f):(0,J.jv)(t)?(e.consume(t),b):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):(0,J.Ch)(t)?(i=u,x(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?N(e):45===e?d(e):u(e)}function f(t){let r="CDATA[";return t===r.charCodeAt(a++)?(e.consume(t),a===r.length?m:f):n(t)}function m(t){return null===t?n(t):93===t?(e.consume(t),g):(0,J.Ch)(t)?(i=m,x(t)):(e.consume(t),m)}function g(t){return 93===t?(e.consume(t),h):m(t)}function h(t){return 62===t?N(t):93===t?(e.consume(t),h):m(t)}function b(t){return null===t||62===t?N(t):(0,J.Ch)(t)?(i=b,x(t)):(e.consume(t),b)}function y(t){return null===t?n(t):63===t?(e.consume(t),E):(0,J.Ch)(t)?(i=y,x(t)):(e.consume(t),y)}function E(e){return 62===e?N(e):y(e)}function T(t){return(0,J.jv)(t)?(e.consume(t),v):n(t)}function v(t){return 45===t||(0,J.H$)(t)?(e.consume(t),v):function t(n){return(0,J.Ch)(n)?(i=t,x(n)):(0,J.xz)(n)?(e.consume(n),t):N(n)}(t)}function S(t){return 45===t||(0,J.H$)(t)?(e.consume(t),S):47===t||62===t||(0,J.z3)(t)?A(t):n(t)}function A(t){return 47===t?(e.consume(t),N):58===t||95===t||(0,J.jv)(t)?(e.consume(t),O):(0,J.Ch)(t)?(i=A,x(t)):(0,J.xz)(t)?(e.consume(t),A):N(t)}function O(t){return 45===t||46===t||58===t||95===t||(0,J.H$)(t)?(e.consume(t),O):function t(n){return 61===n?(e.consume(n),_):(0,J.Ch)(n)?(i=t,x(n)):(0,J.xz)(n)?(e.consume(n),t):A(n)}(t)}function _(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,k):(0,J.Ch)(t)?(i=_,x(t)):(0,J.xz)(t)?(e.consume(t),_):(e.consume(t),I)}function k(t){return t===r?(e.consume(t),r=void 0,C):null===t?n(t):(0,J.Ch)(t)?(i=k,x(t)):(e.consume(t),k)}function I(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||(0,J.z3)(t)?A(t):(e.consume(t),I)}function C(e){return 47===e||62===e||(0,J.z3)(e)?A(e):n(e)}function N(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function x(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),w}function w(t){return(0,J.xz)(t)?(0,Q.f)(e,R,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):R(t)}function R(t){return e.enter("htmlTextData"),i(t)}}}],91:eY,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return(0,J.Ch)(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},eF],93:ej,95:eZ,96:{name:"codeText",tokenize:function(e,t,n){let r,a,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),i++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(l){return null===l?n(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),o):96===l?(a=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(a.type="codeTextData",s(o))}(l)):(0,J.Ch)(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):(e.enter("codeTextData"),s(l))}function s(t){return null===t||32===t||96===t||(0,J.Ch)(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),s)}},resolve:function(e){let t,n,r=e.length-4,a=3;if(("lineEnding"===e[3][1].type||"space"===e[a][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=a;++t13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let e5=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function e6(e,t,n){if(t)return t;let r=n.charCodeAt(0);if(35===r){let e=n.charCodeAt(1),t=120===e||88===e;return e4(n.slice(t?2:1),t?16:10)}return eP(n)||e}let e9={}.hasOwnProperty;function e8(e){return{line:e.line,column:e.column,offset:e.offset}}function e7(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+O({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+O({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+O({start:t.start,end:t.end})+") is still open")}function te(e){let t=this;t.parser=function(n){var a,i;let o,s,l,c;return"string"!=typeof(a={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=a,a=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(b),autolinkProtocol:c,autolinkEmail:c,atxHeading:r(m),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:r(f),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:r(f,a),codeText:r(function(){return{type:"inlineCode",value:""}},a),codeTextData:c,data:c,codeFlowValue:c,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(g),hardBreakTrailing:r(g),htmlFlow:r(h,a),htmlFlowData:c,htmlText:r(h,a),htmlTextData:c,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:a,link:r(b),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}},listOrdered:r(y,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(y),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:r(m),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];if(!t.depth){let n=this.sliceSerialize(e).length;t.depth=n}},autolink:o(),autolinkEmail:function(e){u.call(this,e);let t=this.stack[this.stack.length-1];t.url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){u.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:u,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t;let n=this.sliceSerialize(e),r=this.data.characterReferenceType;if(r)t=e4(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0;else{let e=eP(n);t=e}let a=this.stack[this.stack.length-1];a.value+=t},characterReference:function(e){let t=this.stack.pop();t.position.end=e8(e.end)},codeFenced:o(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e},codeFencedFenceMeta:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e},codeFlowValue:u,codeIndented:o(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}),codeTextData:u,data:u,definition:o(),definitionDestinationString:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,eA.d)(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e},emphasis:o(),hardBreakEscape:o(d),hardBreakTrailing:o(d),htmlFlow:o(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}),htmlFlowData:u,htmlText:o(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}),htmlTextData:u,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){let t=e.children;n.children=t}else n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(e5,e6),n.identifier=(0,eA.d)(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=e8(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(c.call(this,e),u.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,eA.d)(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e},resourceTitleString:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){let t=this.stack[this.stack.length-1];t.depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};(function e(t,n){let r=-1;for(;++r0){let e=o.tokenStack[o.tokenStack.length-1],t=e[1]||e7;t.call(o,void 0,e[0])}for(r.position={start:e8(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:e8(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u-1){let e=n[0];"string"==typeof e?n[0]=e.slice(a):n.shift()}o>0&&n.push(e[i].slice(0,o))}return n}(o,e)}function p(){let{line:e,column:t,offset:n,_index:a,_bufferIndex:i}=r;return{line:e,column:t,offset:n,_index:a,_bufferIndex:i}}function f(e,t){t.restore()}function m(e,t){return function(n,a,i){let o,u,d,f;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null,a=[...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]];return m(a)(e)};function m(e){return(o=e,u=0,0===e.length)?i:g(e[u])}function g(e){return function(n){return(f=function(){let e=p(),t=c.previous,n=c.currentConstruct,a=c.events.length,i=Array.from(s);return{restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=a,s=i,h()},from:a}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?y(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,b,y)(n)}}function b(t){return e(d,f),a}function y(e){return(f.restore(),++u55295&&i<57344){let t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(o=String.fromCharCode(i,t),a=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function tr(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function ta(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}var ti=n(21623);function to(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let a=e.all(t),i=a[0];i&&"text"===i.type?i.value="["+i.value:a.unshift({type:"text",value:"["});let o=a[a.length-1];return o&&"text"===o.type?o.value+=r:a.push({type:"text",value:r}),a}function ts(e){let t=e.spread;return null==t?e.children.length>1:t}function tl(e,t,n){let r=0,a=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(a-1);for(;9===t||32===t;)a--,t=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}let tc={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a={type:"element",tagName:"pre",properties:{},children:[a=e.applyData(t,a)]},e.patch(t,a),a},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n;let r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),i=tn(a.toLowerCase()),o=e.footnoteOrder.indexOf(a),s=e.footnoteCounts.get(a);void 0===s?(s=0,e.footnoteOrder.push(a),n=e.footnoteOrder.length):n=o+1,s+=1,e.footnoteCounts.set(a,s);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);let c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return to(e,t);let a={src:tn(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(a.title=r.title);let i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){let n={src:tn(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return to(e,t);let a={href:tn(r.url||"")};null!==r.title&&void 0!==r.title&&(a.title=r.title);let i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){let n={href:tn(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),a=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=(0,A.Pk)(t.children[1]),o=(0,A.rb)(t.children[t.children.length-1]);i&&o&&(r.position={start:i,end:o}),a.push(r)}let i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,a=r?r.indexOf(t):1,i=0===a?"th":"td",o=n&&"table"===n.type?n.align:void 0,s=o?o.length:t.children.length,l=-1,c=[];for(;++l0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(tl(t.slice(a),a>0,!1)),i.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:tu,yaml:tu,definition:tu,footnoteDefinition:tu};function tu(){}let td={}.hasOwnProperty,tp={};function tf(e,t){e.position&&(t.position=(0,A.FK)(e))}function tm(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,a=e.data.hProperties;if("string"==typeof t){if("element"===n.type)n.tagName=t;else{let e="children"in n?n.children:[n];n={type:"element",tagName:t,properties:{},children:e}}}"element"===n.type&&a&&Object.assign(n.properties,(0,tt.ZP)(a)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function tg(e,t){let n=t.data||{},r="value"in t&&!(td.call(n,"hProperties")||td.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function th(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r0&&n.push({type:"text",value:"\n"}),n}function tb(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function ty(e,t){let n=function(e,t){let n=t||tp,r=new Map,a=new Map,i=new Map,o={...tc,...n.handlers},s={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let f=i[i.length-1];if(f&&"element"===f.type&&"p"===f.tagName){let e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else i.push(...d);let m={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(a,m),s.push(m)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...(0,tt.ZP)(o),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&((0,c.ok)("children"in i),i.children.push({type:"text",value:"\n"},a)),i}function tE(e,t){return e&&"run"in e?async function(n,r){let a=ty(n,{file:r,...t});await e.run(a,r)}:function(n,r){return ty(n,{file:r,...t||e})}}function tT(e){if(e)throw e}var tv=n(94470);function tS(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let tA={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');tO(e);let r=0,a=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(a=i):(s=-1,a=o));return r===a?a=o:a<0&&(a=e.length),e.slice(r,a)},dirname:function(e){let t;if(tO(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;tO(e);let n=e.length,r=-1,a=0,i=-1,o=0;for(;n--;){let s=e.codePointAt(n);if(47===s){if(t){a=n+1;break}continue}r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==o&&(o=1):i>-1&&(o=-1)}return i<0||r<0||0===o||1===o&&i===r-1&&i===a+1?"":e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n2){if((r=a.lastIndexOf("/"))!==a.length-1){r<0?(a="",i=0):i=(a=a.slice(0,r)).length-1-a.lastIndexOf("/"),o=l,s=0;continue}}else if(a.length>0){a="",i=0,o=l,s=0;continue}}t&&(a=a.length>0?a+"/..":"..",i=2)}else a.length>0?a+="/"+e.slice(o+1,l):a=e.slice(o+1,l),i=l-o-1;o=l,s=0}else 46===n&&s>-1?s++:s=-1}return a}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function tO(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let t_={cwd:function(){return"/"}};function tk(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let tI=["history","path","basename","stem","extname","dirname"];class tC{constructor(e){let t,n;t=e?tk(e)?{path:e}:"string"==typeof e||e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e?{value:e}:e:{},this.cwd="cwd"in t?"":t_.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++rt.length;o&&t.push(r);try{i=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(i&&i.then&&"function"==typeof i.then?i.then(a,r):i instanceof Error?r(i):a(i))};function r(e,...a){n||(n=!0,t(e,...a))}function a(e){r(null,e)}})(s,a)(...o):r(null,...o)})(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new tD,t=-1;for(;++t0){let[r,...i]=t,o=n[a][1];tS(o)&&tS(r)&&(r=tv(!0,o,r)),n[a]=[e,r,...i]}}}}let tP=new tD().freeze();function tM(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function tF(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function tB(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function tj(e){if(!tS(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function tU(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function tH(e){return e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new tC(e)}let tG=[],t$={allowDangerousHtml:!0},tz=/^(https?|ircs?|mailto|xmpp)$/i,tZ=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function tW(e){let t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,i=e.components,o=e.disallowedElements,s=e.rehypePlugins||tG,l=e.remarkPlugins||tG,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...t$}:t$,d=e.skipHtml,p=e.unwrapDisallowed,f=e.urlTransform||tY,m=tP().use(te).use(l).use(tE,u).use(s),g=new tC;for(let n of("string"==typeof r?g.value=r:(0,c.t1)("Unexpected value `"+r+"` for `children` prop, expected `string`"),t&&o&&(0,c.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),tZ))Object.hasOwn(e,n.from)&&(0,c.t1)("Unexpected `"+n.from+"` prop, "+(n.to?"use `"+n.to+"` instead":"remove it")+" (see for more info)");let h=m.parse(g),y=m.runSync(h,g);return a&&(y={type:"element",tagName:"div",properties:{className:a},children:"root"===y.type?y.children:[y]}),(0,ti.Vn)(y,function(e,r,a){if("raw"===e.type&&a&&"number"==typeof r)return d?a.children.splice(r,1):a.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in z)if(Object.hasOwn(z,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=z[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=f(String(n||""),t,e))}}if("element"===e.type){let i=t?!t.includes(e.tagName):!!o&&o.includes(e.tagName);if(!i&&n&&"number"==typeof r&&(i=!n(e,r,a)),i&&a&&"number"==typeof r)return p&&e.children?a.children.splice(r,1,...e.children):a.children.splice(r,1),r}}),function(e,t){var n,r,a;let i;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let o=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=t.jsxDEV,i=function(e,t,r,a){let i=Array.isArray(r.children),s=(0,A.Pk)(e);return n(t,r,a,i,{columnNumber:s?s.column-1:void 0,fileName:o,lineNumber:s?s.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");r=t.jsx,a=t.jsxs,i=function(e,t,n,i){let o=Array.isArray(n.children),s=o?a:r;return i?s(t,n,i):s(t,n)}}let s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:o,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?b.YP:b.dy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},l=M(s,e,void 0);return l&&"string"!=typeof l?l:s.create(e,s.Fragment,{children:l||void 0},void 0)}(y,{Fragment:Z.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Z.jsx,jsxs:Z.jsxs,passKeys:!0,passNode:!0})}function tY(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t<0||a>-1&&t>a||n>-1&&t>n||r>-1&&t>r||tz.test(e.slice(0,t))?e:""}var tV=n(14660),tq=n(49148),tK=["children","components","rehypePlugins"],tX=function(e){var t=e.children,n=e.components,r=e.rehypePlugins,c=(0,s.Z)(e,tK),u=(0,tq.r)();return l.createElement(tW,(0,a.Z)({components:(0,o.Z)({code:u},n),rehypePlugins:[tV.Z].concat((0,i.Z)(r||[]))},c),t)}},84502:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r,a,i=n(45987),o=n(74902),s=n(4942),l=n(67294),c=n(87462);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(function(e){if(0===e.length||1===e.length)return e;var t,n=e.join(".");return p[n]||(p[n]=0===(t=e.length)||1===t?e:2===t?[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])]:3===t?[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])]:t>=4?[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]:void 0),p[n]})(e.filter(function(e){return"token"!==e})).reduce(function(e,t){return d(d({},e),n[t])},t)}(s.className,Object.assign({},s.style,void 0===a?{}:a),r)})}else h=d(d({},s),{},{className:s.className.join(" ")});var v=b(n.children);return l.createElement(f,(0,c.Z)({key:o},h),v)}}({node:e,stylesheet:n,useInlineStyles:r,key:"code-segement".concat(t)})})}function S(e){return e&&void 0!==e.highlightAuto}var A=n(98695),O=(r=n.n(A)(),a={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}},function(e){var t=e.language,n=e.children,s=e.style,c=void 0===s?a:s,u=e.customStyle,d=void 0===u?{}:u,p=e.codeTagProps,m=void 0===p?{className:t?"language-".concat(t):void 0,style:g(g({},c['code[class*="language-"]']),c['code[class*="language-'.concat(t,'"]')])}:p,A=e.useInlineStyles,O=void 0===A||A,_=e.showLineNumbers,k=void 0!==_&&_,I=e.showInlineLineNumbers,C=void 0===I||I,N=e.startingLineNumber,x=void 0===N?1:N,w=e.lineNumberContainerStyle,R=e.lineNumberStyle,L=void 0===R?{}:R,D=e.wrapLines,P=e.wrapLongLines,M=void 0!==P&&P,F=e.lineProps,B=void 0===F?{}:F,j=e.renderer,U=e.PreTag,H=void 0===U?"pre":U,G=e.CodeTag,$=void 0===G?"code":G,z=e.code,Z=void 0===z?(Array.isArray(n)?n[0]:n)||"":z,W=e.astGenerator,Y=(0,i.Z)(e,f);W=W||r;var V=k?l.createElement(b,{containerStyle:w,codeStyle:m.style||{},numberStyle:L,startingLineNumber:x,codeString:Z}):null,q=c.hljs||c['pre[class*="language-"]']||{backgroundColor:"#fff"},K=S(W)?"hljs":"prismjs",X=O?Object.assign({},Y,{style:Object.assign({},q,d)}):Object.assign({},Y,{className:Y.className?"".concat(K," ").concat(Y.className):K,style:Object.assign({},d)});if(M?m.style=g(g({},m.style),{},{whiteSpace:"pre-wrap"}):m.style=g(g({},m.style),{},{whiteSpace:"pre"}),!W)return l.createElement(H,X,V,l.createElement($,m,Z));(void 0===D&&j||M)&&(D=!0),j=j||v;var Q=[{type:"text",value:Z}],J=function(e){var t=e.astGenerator,n=e.language,r=e.code,a=e.defaultCodeValue;if(S(t)){var i=-1!==t.listLanguages().indexOf(n);return"text"===n?{value:a,language:"text"}:i?t.highlight(n,r):t.highlightAuto(r)}try{return n&&"text"!==n?{value:t.highlight(r,n)}:{value:a}}catch(e){return{value:a}}}({astGenerator:W,language:t,code:Z,defaultCodeValue:Q});null===J.language&&(J.value=Q);var ee=J.value.length+x,et=function(e,t,n,r,a,i,s,l,c){var u,d=function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=0;a2&&void 0!==arguments[2]?arguments[2]:[];return t||o.length>0?function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return T({children:e,lineNumber:t,lineNumberStyle:l,largestLineNumber:s,showInlineLineNumbers:a,lineProps:n,className:i,showLineNumbers:r,wrapLongLines:c})}(e,i,o):function(e,t){if(r&&t&&a){var n=E(l,t,s);e.unshift(y(t,n))}return e}(e,i)}for(;m code[class*="language-"]':{background:"#111b27",padding:"0.1em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"#8da1b9"},prolog:{color:"#8da1b9"},doctype:{color:"#8da1b9"},cdata:{color:"#8da1b9"},punctuation:{color:"#e3eaf2"},"delimiter.important":{color:"#66cccc",fontWeight:"inherit"},"selector.parent":{color:"#66cccc"},tag:{color:"#66cccc"},"tag.punctuation":{color:"#66cccc"},"attr-name":{color:"#e6d37a"},boolean:{color:"#e6d37a"},"boolean.important":{color:"#e6d37a"},number:{color:"#e6d37a"},constant:{color:"#e6d37a"},"selector.attribute":{color:"#e6d37a"},"class-name":{color:"#6cb8e6"},key:{color:"#6cb8e6"},parameter:{color:"#6cb8e6"},property:{color:"#6cb8e6"},"property-access":{color:"#6cb8e6"},variable:{color:"#6cb8e6"},"attr-value":{color:"#91d076"},inserted:{color:"#91d076"},color:{color:"#91d076"},"selector.value":{color:"#91d076"},string:{color:"#91d076"},"string.url-link":{color:"#91d076"},builtin:{color:"#f4adf4"},"keyword-array":{color:"#f4adf4"},package:{color:"#f4adf4"},regex:{color:"#f4adf4"},function:{color:"#c699e3"},"selector.class":{color:"#c699e3"},"selector.id":{color:"#c699e3"},"atrule.rule":{color:"#e9ae7e"},combinator:{color:"#e9ae7e"},keyword:{color:"#e9ae7e"},operator:{color:"#e9ae7e"},"pseudo-class":{color:"#e9ae7e"},"pseudo-element":{color:"#e9ae7e"},selector:{color:"#e9ae7e"},unit:{color:"#e9ae7e"},deleted:{color:"#cd6660"},important:{color:"#cd6660",fontWeight:"bold"},"keyword-this":{color:"#6cb8e6",fontWeight:"bold"},this:{color:"#6cb8e6",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},entity:{cursor:"help"},".language-markdown .token.title":{color:"#6cb8e6",fontWeight:"bold"},".language-markdown .token.title .token.punctuation":{color:"#6cb8e6",fontWeight:"bold"},".language-markdown .token.blockquote.punctuation":{color:"#f4adf4"},".language-markdown .token.code":{color:"#66cccc"},".language-markdown .token.hr.punctuation":{color:"#6cb8e6"},".language-markdown .token.url .token.content":{color:"#91d076"},".language-markdown .token.url-link":{color:"#e6d37a"},".language-markdown .token.list.punctuation":{color:"#f4adf4"},".language-markdown .token.table-header":{color:"#e3eaf2"},".language-json .token.operator":{color:"#e3eaf2"},".language-scss .token.variable":{color:"#66cccc"},"token.tab:not(:empty):before":{color:"#8da1b9"},"token.cr:before":{color:"#8da1b9"},"token.lf:before":{color:"#8da1b9"},"token.space:before":{color:"#8da1b9"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{color:"#111b27",background:"#6cb8e6"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{color:"#111b27",background:"#6cb8e6"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{color:"#111b27",background:"#8da1b9"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{color:"#111b27",background:"#8da1b9"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{color:"#111b27",background:"#8da1b9"},".line-highlight.line-highlight":{background:"linear-gradient(to right, #3c526d5f 70%, #3c526d55)"},".line-highlight.line-highlight:before":{backgroundColor:"#8da1b9",color:"#111b27",boxShadow:"0 1px #3c526d"},".line-highlight.line-highlight[data-end]:after":{backgroundColor:"#8da1b9",color:"#111b27",boxShadow:"0 1px #3c526d"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"#8da1b918"},".line-numbers.line-numbers .line-numbers-rows":{borderRight:"1px solid #0b121b",background:"#0b121b7a"},".line-numbers .line-numbers-rows > span:before":{color:"#8da1b9da"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"#e6d37a"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"#e6d37a"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"#e6d37a"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"#f4adf4"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"#f4adf4"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"#f4adf4"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"#6cb8e6"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"#6cb8e6"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"#6cb8e6"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"#c699e3"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"#c699e3"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"#c699e3"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"#cd66601f"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"#cd66601f"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"#91d0761f"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"#91d0761f"},".command-line .command-line-prompt":{borderRight:"1px solid #0b121b"},".command-line .command-line-prompt > span:before":{color:"#8da1b9da"}}},12187:function(e,t){"use strict";t.Z={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}}},89144:function(e,t){"use strict";t.Z={'code[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"]::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},prolog:{color:"hsl(230, 4%, 64%)"},cdata:{color:"hsl(230, 4%, 64%)"},doctype:{color:"hsl(230, 8%, 24%)"},punctuation:{color:"hsl(230, 8%, 24%)"},entity:{color:"hsl(230, 8%, 24%)",cursor:"help"},"attr-name":{color:"hsl(35, 99%, 36%)"},"class-name":{color:"hsl(35, 99%, 36%)"},boolean:{color:"hsl(35, 99%, 36%)"},constant:{color:"hsl(35, 99%, 36%)"},number:{color:"hsl(35, 99%, 36%)"},atrule:{color:"hsl(35, 99%, 36%)"},keyword:{color:"hsl(301, 63%, 40%)"},property:{color:"hsl(5, 74%, 59%)"},tag:{color:"hsl(5, 74%, 59%)"},symbol:{color:"hsl(5, 74%, 59%)"},deleted:{color:"hsl(5, 74%, 59%)"},important:{color:"hsl(5, 74%, 59%)"},selector:{color:"hsl(119, 34%, 47%)"},string:{color:"hsl(119, 34%, 47%)"},char:{color:"hsl(119, 34%, 47%)"},builtin:{color:"hsl(119, 34%, 47%)"},inserted:{color:"hsl(119, 34%, 47%)"},regex:{color:"hsl(119, 34%, 47%)"},"attr-value":{color:"hsl(119, 34%, 47%)"},"attr-value > .token.punctuation":{color:"hsl(119, 34%, 47%)"},variable:{color:"hsl(221, 87%, 60%)"},operator:{color:"hsl(221, 87%, 60%)"},function:{color:"hsl(221, 87%, 60%)"},url:{color:"hsl(198, 99%, 37%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(230, 8%, 24%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(230, 8%, 24%)"},".language-css .token.selector":{color:"hsl(5, 74%, 59%)"},".language-css .token.property":{color:"hsl(230, 8%, 24%)"},".language-css .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.string.url":{color:"hsl(119, 34%, 47%)"},".language-css .token.important":{color:"hsl(301, 63%, 40%)"},".language-css .token.atrule .token.rule":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.operator":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(344, 84%, 43%)"},".language-json .token.operator":{color:"hsl(230, 8%, 24%)"},".language-json .token.null.keyword":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.url":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.operator":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.content":{color:"hsl(221, 87%, 60%)"},".language-markdown .token.url > .token.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.url-reference.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(119, 34%, 47%)"},".language-markdown .token.bold .token.content":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.italic .token.content":{color:"hsl(301, 63%, 40%)"},".language-markdown .token.strike .token.content":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.list.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(5, 74%, 59%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.cr:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.lf:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.space:before":{color:"hsla(230, 8%, 24%, 0.2)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},".line-highlight.line-highlight":{background:"hsla(230, 8%, 24%, 0.05)"},".line-highlight.line-highlight:before":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(230, 8%, 24%, 0.05)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".command-line .command-line-prompt":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(230, 1%, 62%)"},".command-line .command-line-prompt > span:before":{color:"hsl(230, 1%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(301, 63%, 40%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(0, 0, 95%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(0, 0, 95%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(0, 0, 95%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(0, 0, 95%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(0, 0%, 100%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(230, 8%, 24%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(230, 8%, 24%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(230, 8%, 24%)"}}},89435:function(e){"use strict";var t;e.exports=function(e){var n,r="&"+e+";";return(t=t||document.createElement("i")).innerHTML=r,(59!==(n=t.textContent).charCodeAt(n.length-1)||"semi"===e)&&n!==r&&n}},57574:function(e,t,n){"use strict";var r=n(21922),a=n(93580),i=n(46195),o=n(79480),s=n(7961),l=n(89435);e.exports=function(e,t){var n,i,o={};for(i in t||(t={}),p)n=t[i],o[i]=null==n?p[i]:n;return(o.position.indent||o.position.start)&&(o.indent=o.position.indent||[],o.position=o.position.start),function(e,t){var n,i,o,p,E,T,v,S,A,O,_,k,I,C,N,x,w,R,L,D,P,M=t.additional,F=t.nonTerminated,B=t.text,j=t.reference,U=t.warning,H=t.textContext,G=t.referenceContext,$=t.warningContext,z=t.position,Z=t.indent||[],W=e.length,Y=0,V=-1,q=z.column||1,K=z.line||1,X="",Q=[];for("string"==typeof M&&(M=M.charCodeAt(0)),R=J(),O=U?function(e,t){var n=J();n.column+=t,n.offset+=t,U.call($,y[e],n,e)}:d,Y--,W++;++Y=55296&&n<=57343||n>1114111?(O(7,D),S=u(65533)):S in a?(O(6,D),S=a[S]):(k="",((i=S)>=1&&i<=8||11===i||i>=13&&i<=31||i>=127&&i<=159||i>=64976&&i<=65007||(65535&i)==65535||(65535&i)==65534)&&O(6,D),S>65535&&(S-=65536,k+=u(S>>>10|55296),S=56320|1023&S),S=k+u(S))):x!==f&&O(4,D)),S?(ee(),R=J(),Y=P-1,q+=P-N+1,Q.push(S),L=J(),L.offset++,j&&j.call(G,S,{start:R,end:L},e.slice(N-1,P)),R=L):(X+=T=e.slice(N-1,P),q+=T.length,Y=P-1)}else 10===v&&(K++,V++,q=0),v==v?(X+=u(v),q++):ee();return Q.join("");function J(){return{line:K,column:q,offset:Y+(z.offset||0)}}function ee(){X&&(Q.push(X),B&&B.call(H,X,{start:R,end:J()}),X="")}}(e,o)};var c={}.hasOwnProperty,u=String.fromCharCode,d=Function.prototype,p={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},f="named",m="hexadecimal",g="decimal",h={};h[m]=16,h[g]=10;var b={};b[f]=s,b[g]=i,b[m]=o;var y={};y[1]="Named character references must be terminated by a semicolon",y[2]="Numeric character references must be terminated by a semicolon",y[3]="Named character references cannot be empty",y[4]="Numeric character references cannot be empty",y[5]="Named character references must be known",y[6]="Numeric character references cannot be disallowed",y[7]="Numeric character references cannot be outside the permissible Unicode range"},11215:function(e,t,n){"use strict";var r,a,i="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{},o=(a=(r="Prism"in i)?i.Prism:void 0,function(){r?i.Prism=a:delete i.Prism,r=void 0,a=void 0});i.Prism={manual:!0,disableWorkerMessageHandler:!0};var s=n(31742),l=n(57574),c=n(59216),u=n(2717),d=n(12049),p=n(29726),f=n(36155);o();var m={}.hasOwnProperty;function g(){}g.prototype=c;var h=new g;function b(e){if("function"!=typeof e||!e.displayName)throw Error("Expected `function` for `grammar`, got `"+e+"`");void 0===h.languages[e.displayName]&&e(h)}e.exports=h,h.highlight=function(e,t){var n,r=c.highlight;if("string"!=typeof e)throw Error("Expected `string` for `value`, got `"+e+"`");if("Object"===h.util.type(t))n=t,t=null;else{if("string"!=typeof t)throw Error("Expected `string` for `name`, got `"+t+"`");if(m.call(h.languages,t))n=h.languages[t];else throw Error("Unknown language: `"+t+"` is not registered")}return r.call(this,e,n,t)},h.register=b,h.alias=function(e,t){var n,r,a,i,o=h.languages,s=e;for(n in t&&((s={})[e]=t),s)for(a=(r="string"==typeof(r=s[n])?[r]:r).length,i=-1;++i]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}e.exports=t,t.displayName="abap",t.aliases=[]},68313:function(e){"use strict";function t(e){var t;t="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)",e.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+t+"|<"+t+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}}e.exports=t,t.displayName="abnf",t.aliases=[]},21207:function(e){"use strict";function t(e){e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}e.exports=t,t.displayName="actionscript",t.aliases=[]},89693:function(e){"use strict";function t(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}e.exports=t,t.displayName="ada",t.aliases=[]},24001:function(e){"use strict";function t(e){e.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}}e.exports=t,t.displayName="agda",t.aliases=[]},18018:function(e){"use strict";function t(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}e.exports=t,t.displayName="al",t.aliases=[]},36363:function(e){"use strict";function t(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}e.exports=t,t.displayName="antlr4",t.aliases=["g4"]},35281:function(e){"use strict";function t(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}e.exports=t,t.displayName="apacheconf",t.aliases=[]},10433:function(e,t,n){"use strict";var r=n(11114);function a(e){e.register(r),function(e){var t=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,n=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return t.source});function r(e){return RegExp(e.replace(//g,function(){return n}),"i")}var a={keyword:t,punctuation:/[()\[\]{};,:.<>]/};e.languages.apex={comment:e.languages.clike.comment,string:e.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:e.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:r(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:a},{pattern:r(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:a},{pattern:r(/(?=\s*\w+\s*[;=,(){:])/.source),inside:a}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:t,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}e.exports=a,a.displayName="apex",a.aliases=[]},84039:function(e){"use strict";function t(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}e.exports=t,t.displayName="apl",t.aliases=[]},71336:function(e){"use strict";function t(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}e.exports=t,t.displayName="applescript",t.aliases=[]},4481:function(e){"use strict";function t(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}e.exports=t,t.displayName="aql",t.aliases=[]},2159:function(e,t,n){"use strict";var r=n(80096);function a(e){e.register(r),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}e.exports=a,a.displayName="arduino",a.aliases=["ino"]},60274:function(e){"use strict";function t(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}e.exports=t,t.displayName="arff",t.aliases=[]},18738:function(e){"use strict";function t(e){!function(e){var t={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},n=e.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:t,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:t.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:t,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function r(e){e=e.split(" ");for(var t={},r=0,a=e.length;r>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}e.exports=t,t.displayName="asmatmel",t.aliases=[]},78734:function(e,t,n){"use strict";var r=n(61958);function a(e){e.register(r),e.languages.aspnet=e.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}e.exports=a,a.displayName="aspnet",a.aliases=[]},6681:function(e){"use strict";function t(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}e.exports=t,t.displayName="autohotkey",t.aliases=[]},53358:function(e){"use strict";function t(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}e.exports=t,t.displayName="autoit",t.aliases=[]},81700:function(e){"use strict";function t(e){!function(e){function t(e,t,n){return RegExp(e.replace(/<<(\d+)>>/g,function(e,n){return t[+n]}),n||"")}var n=/bool|clip|float|int|string|val/.source,r=[[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|")].join("|");e.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:t(/\b(?:<<0>>)\s+("?)\w+\1/.source,[n],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:t(/\b(?:<<0>>)\b/.source,[r],"i"),alias:"function"},"type-cast":{pattern:t(/\b(?:<<0>>)(?=\s*\()/.source,[n],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},e.languages.avs=e.languages.avisynth}(e)}e.exports=t,t.displayName="avisynth",t.aliases=["avs"]},37219:function(e){"use strict";function t(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}e.exports=t,t.displayName="avroIdl",t.aliases=[]},6979:function(e){"use strict";function t(e){!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,o=0;o?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}e.exports=t,t.displayName="basic",t.aliases=[]},94781:function(e){"use strict";function t(e){var t,n,r,a;t=/%%?[~:\w]+%?|!\S+!/,n={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},r=/"(?:[\\"]"|[^"])*"(?!")/,a=/(?:\b|-)\d+\b/,e.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:r,parameter:n,variable:t,number:a,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:r,parameter:n,variable:t,number:a,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:r,parameter:n,variable:[t,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:a,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:r,parameter:n,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:t,number:a,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}}e.exports=t,t.displayName="batch",t.aliases=[]},62260:function(e){"use strict";function t(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}e.exports=t,t.displayName="bbcode",t.aliases=["shortcode"]},36153:function(e){"use strict";function t(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}e.exports=t,t.displayName="bicep",t.aliases=[]},59258:function(e){"use strict";function t(e){e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}e.exports=t,t.displayName="birb",t.aliases=[]},62890:function(e,t,n){"use strict";var r=n(65806);function a(e){e.register(r),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}e.exports=a,a.displayName="bison",a.aliases=[]},15958:function(e){"use strict";function t(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}e.exports=t,t.displayName="bnf",t.aliases=["rbnf"]},61321:function(e){"use strict";function t(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}e.exports=t,t.displayName="brainfuck",t.aliases=[]},77856:function(e){"use strict";function t(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}e.exports=t,t.displayName="brightscript",t.aliases=[]},90741:function(e){"use strict";function t(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}e.exports=t,t.displayName="bro",t.aliases=[]},83410:function(e){"use strict";function t(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}e.exports=t,t.displayName="bsl",t.aliases=[]},65806:function(e){"use strict";function t(e){e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}e.exports=t,t.displayName="c",t.aliases=[]},33039:function(e){"use strict";function t(e){e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}e.exports=t,t.displayName="cfscript",t.aliases=[]},85082:function(e,t,n){"use strict";var r=n(80096);function a(e){e.register(r),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}e.exports=a,a.displayName="chaiscript",a.aliases=[]},79415:function(e){"use strict";function t(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}e.exports=t,t.displayName="cil",t.aliases=[]},29726:function(e){"use strict";function t(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}e.exports=t,t.displayName="clike",t.aliases=[]},62849:function(e){"use strict";function t(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}e.exports=t,t.displayName="clojure",t.aliases=[]},55773:function(e){"use strict";function t(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}e.exports=t,t.displayName="cmake",t.aliases=[]},32762:function(e){"use strict";function t(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}e.exports=t,t.displayName="cobol",t.aliases=[]},43576:function(e){"use strict";function t(e){var t,n;t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"},e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}e.exports=t,t.displayName="coffeescript",t.aliases=["coffee"]},71794:function(e){"use strict";function t(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}e.exports=t,t.displayName="concurnas",t.aliases=["conc"]},1315:function(e){"use strict";function t(e){!function(e){for(var t=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,n=0;n<2;n++)t=t.replace(//g,function(){return t});t=t.replace(//g,"[]"),e.languages.coq={comment:RegExp(t),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return t})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(t),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}}(e)}e.exports=t,t.displayName="coq",t.aliases=[]},80096:function(e,t,n){"use strict";var r=n(65806);function a(e){var t,n;e.register(r),t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return t.source}),e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}e.exports=a,a.displayName="cpp",a.aliases=[]},99176:function(e,t,n){"use strict";var r=n(56939);function a(e){e.register(r),e.languages.crystal=e.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,e.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),e.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:e.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:e.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}e.exports=a,a.displayName="crystal",a.aliases=[]},61958:function(e){"use strict";function t(e){!function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,function(e,n){return"(?:"+t[+n]+")"})}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n>/g,function(){return"(?:"+e+")"});return e.replace(/<>/g,"[^\\s\\S]")}var a={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function i(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var o=i(a.typeDeclaration),s=RegExp(i(a.type+" "+a.typeDeclaration+" "+a.contextual+" "+a.other)),l=i(a.typeDeclaration+" "+a.contextual+" "+a.other),c=i(a.type+" "+a.typeDeclaration+" "+a.other),u=r(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),d=r(/\((?:[^()]|<>)*\)/.source,2),p=/@?\b[A-Za-z_]\w*\b/.source,f=t(/<<0>>(?:\s*<<1>>)?/.source,[p,u]),m=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[l,f]),g=/\[\s*(?:,\s*)*\]/.source,h=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,g]),b=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[u,d,g]),y=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[b]),E=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[y,m,g]),T={keyword:s,punctuation:/[<>()?,.:[\]]/},v=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,S=/"(?:\\.|[^\\"\r\n])*"/.source,A=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:T},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[p,E]),lookbehind:!0,inside:T},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[p]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[o,f]),lookbehind:!0,inside:T},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:T},{pattern:n(/(\bwhere\s+)<<0>>/.source,[p]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[h]),lookbehind:!0,inside:T},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[E,c,p]),inside:T}],keyword:s,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[p]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[p]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[d]),lookbehind:!0,alias:"class-name",inside:T},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[E,m]),inside:T,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[E]),lookbehind:!0,inside:T,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[p,u]),inside:{function:n(/^<<0>>/.source,[p]),generic:{pattern:RegExp(u),alias:"class-name",inside:T}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[o,f,p,E,s.source,d,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[f,d]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:s,"class-name":{pattern:RegExp(E),greedy:!0,inside:T},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var O=S+"|"+v,_=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[O]),k=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[_]),2),I=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,C=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,k]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[I,C]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[I]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[k]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var N=/:[^}\r\n]+/.source,x=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[_]),2),w=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[x,N]),R=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[O]),2),L=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[R,N]);function D(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,N]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[w]),lookbehind:!0,greedy:!0,inside:D(w,x)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:D(L,R)}],char:{pattern:RegExp(v),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(e)}e.exports=t,t.displayName="csharp",t.aliases=["dotnet","cs"]},90312:function(e,t,n){"use strict";var r=n(61958);function a(e){e.register(r),function(e){var t=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,n=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function r(e,r){for(var a=0;a/g,function(){return"(?:"+e+")"});return e.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+n+")").replace(//g,"(?:"+t+")")}var a=r(/\((?:[^()'"@/]|||)*\)/.source,2),i=r(/\[(?:[^\[\]'"@/]|||)*\]/.source,2),o=r(/\{(?:[^{}'"@/]|||)*\}/.source,2),s=r(/<(?:[^<>'"@/]|||)*>/.source,2),l=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,c=/(?!\d)[^\s>\/=$<%]+/.source+l+/\s*\/?>/.source,u=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+l+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source)+c+"|"+r(/<\1/.source+l+/\s*>/.source+"(?:"+(/[^<]/.source+"|")+/<\/?(?!\1\b)/.source+c+"|)*"+/<\/\1\s*>/.source,2)+")*"+/<\/\1\s*>/.source+"|"+/|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:a})}(e)}e.exports=t,t.displayName="cssExtras",t.aliases=[]},12049:function(e){"use strict";function t(e){var t,n;t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,(n=e.languages.markup)&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}e.exports=t,t.displayName="css",t.aliases=[]},78090:function(e){"use strict";function t(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}e.exports=t,t.displayName="csv",t.aliases=[]},40315:function(e){"use strict";function t(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}e.exports=t,t.displayName="cypher",t.aliases=[]},7902:function(e){"use strict";function t(e){e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}e.exports=t,t.displayName="d",t.aliases=[]},28651:function(e){"use strict";function t(e){var t,n,r;t=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r={pattern:RegExp((n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source)+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}},e.languages.dart=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),e.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.dart}}},string:/[\s\S]+/}},string:void 0}),e.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),e.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}e.exports=t,t.displayName="dart",t.aliases=[]},55579:function(e){"use strict";function t(e){e.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}}e.exports=t,t.displayName="dataweave",t.aliases=[]},93685:function(e){"use strict";function t(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}e.exports=t,t.displayName="dax",t.aliases=[]},13934:function(e){"use strict";function t(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}e.exports=t,t.displayName="dhall",t.aliases=[]},93336:function(e){"use strict";function t(e){var t;e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]},Object.keys(t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"}).forEach(function(n){var r=t[n],a=[];/^\w+$/.test(n)||a.push(/\w+/.exec(n)[0]),"diff"===n&&a.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}e.exports=t,t.displayName="diff",t.aliases=[]},13294:function(e,t,n){"use strict";var r=n(93205);function a(e){var t,n;e.register(r),e.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/},t=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,n=e.languages["markup-templating"],e.hooks.add("before-tokenize",function(e){n.buildPlaceholders(e,"django",t)}),e.hooks.add("after-tokenize",function(e){n.tokenizePlaceholders(e,"django")}),e.languages.jinja2=e.languages.django,e.hooks.add("before-tokenize",function(e){n.buildPlaceholders(e,"jinja2",t)}),e.hooks.add("after-tokenize",function(e){n.tokenizePlaceholders(e,"jinja2")})}e.exports=a,a.displayName="django",a.aliases=["jinja2"]},38223:function(e){"use strict";function t(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}e.exports=t,t.displayName="dnsZoneFile",t.aliases=[]},97266:function(e){"use strict";function t(e){!function(e){var t=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,n=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return t}),r=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,a=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return r}),i={pattern:RegExp(r),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function s(e,t){return RegExp(e=e.replace(//g,function(){return a}).replace(//g,function(){return n}),t)}e.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:s(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[i,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:s(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:i,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},e.languages.dockerfile=e.languages.docker}(e)}e.exports=t,t.displayName="docker",t.aliases=["dockerfile"]},77125:function(e){"use strict";function t(e){!function(e){var t="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",n={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:e.languages.markup}};function r(e,n){return RegExp(e.replace(//g,function(){return t}),n)}e.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:r(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:n},"attr-value":{pattern:r(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:n},"attr-name":{pattern:r(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:n},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:r(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:n},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},e.languages.gv=e.languages.dot}(e)}e.exports=t,t.displayName="dot",t.aliases=["gv"]},36500:function(e){"use strict";function t(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}e.exports=t,t.displayName="ebnf",t.aliases=[]},30296:function(e){"use strict";function t(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}e.exports=t,t.displayName="editorconfig",t.aliases=[]},50115:function(e){"use strict";function t(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}e.exports=t,t.displayName="eiffel",t.aliases=[]},20791:function(e,t,n){"use strict";var r=n(93205);function a(e){e.register(r),e.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:e.languages.javascript}},e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"ejs",/<%(?!%)[\s\S]+?%>/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"ejs")}),e.languages.eta=e.languages.ejs}e.exports=a,a.displayName="ejs",a.aliases=["eta"]},11974:function(e){"use strict";function t(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}e.exports=t,t.displayName="elixir",t.aliases=[]},8645:function(e){"use strict";function t(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}e.exports=t,t.displayName="elm",t.aliases=[]},84790:function(e,t,n){"use strict";var r=n(56939),a=n(93205);function i(e){e.register(r),e.register(a),e.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:e.languages.ruby}},e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"erb",/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"erb")})}e.exports=i,i.displayName="erb",i.aliases=[]},4502:function(e){"use strict";function t(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}e.exports=t,t.displayName="erlang",t.aliases=[]},66055:function(e,t,n){"use strict";var r=n(59803),a=n(93205);function i(e){e.register(r),e.register(a),e.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:e.languages.lua}},e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"etlua",/<%[\s\S]+?%>/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"etlua")})}e.exports=i,i.displayName="etlua",i.aliases=[]},34668:function(e){"use strict";function t(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}e.exports=t,t.displayName="excelFormula",t.aliases=[]},95126:function(e){"use strict";function t(e){var t,n,r,a,i,o;r={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:t={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/}},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:t},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:t}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:(n={number:/\\[^\s']|%\w/}).number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:n},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:n}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:n}},a=function(e){return(e+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},i=function(e){return RegExp("(^|\\s)(?:"+e.map(a).join("|")+")(?=\\s|$)")},Object.keys(o={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]}).forEach(function(e){r[e].pattern=i(o[e])}),r.combinators.pattern=i(["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"]),e.languages.factor=r}e.exports=t,t.displayName="factor",t.aliases=[]},90618:function(e){"use strict";function t(e){e.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}e.exports=t,t.displayName="firestoreSecurityRules",t.aliases=[]},37225:function(e){"use strict";function t(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}e.exports=t,t.displayName="flow",t.aliases=[]},16725:function(e){"use strict";function t(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}e.exports=t,t.displayName="fortran",t.aliases=[]},95559:function(e){"use strict";function t(e){e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}e.exports=t,t.displayName="fsharp",t.aliases=[]},82114:function(e,t,n){"use strict";var r=n(93205);function a(e){e.register(r),function(e){for(var t=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,n=0;n<2;n++)t=t.replace(//g,function(){return t});t=t.replace(//g,/[^\s\S]/.source);var r={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return t})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return t})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};r.string[1].inside.interpolation.inside.rest=r,e.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:r}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:r}}}},e.hooks.add("before-tokenize",function(n){var r=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return t}),"gi");e.languages["markup-templating"].buildPlaceholders(n,"ftl",r)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"ftl")})}(e)}e.exports=a,a.displayName="ftl",a.aliases=[]},6806:function(e){"use strict";function t(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}e.exports=t,t.displayName="gap",t.aliases=[]},12208:function(e){"use strict";function t(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}e.exports=t,t.displayName="gcode",t.aliases=[]},62728:function(e){"use strict";function t(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}e.exports=t,t.displayName="gdscript",t.aliases=[]},81549:function(e){"use strict";function t(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}e.exports=t,t.displayName="gedcom",t.aliases=[]},6024:function(e){"use strict";function t(e){var t;t=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source,e.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+t+")(?:"+t+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(t),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}}e.exports=t,t.displayName="gherkin",t.aliases=[]},13600:function(e){"use strict";function t(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}e.exports=t,t.displayName="git",t.aliases=[]},3322:function(e,t,n){"use strict";var r=n(65806);function a(e){e.register(r),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}e.exports=a,a.displayName="glsl",a.aliases=[]},53877:function(e){"use strict";function t(e){e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}e.exports=t,t.displayName="gml",t.aliases=[]},60794:function(e){"use strict";function t(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}e.exports=t,t.displayName="gn",t.aliases=["gni"]},20222:function(e){"use strict";function t(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}e.exports=t,t.displayName="goModule",t.aliases=[]},51519:function(e){"use strict";function t(e){e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}e.exports=t,t.displayName="go",t.aliases=[]},94055:function(e){"use strict";function t(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(e){if("graphql"===e.language)for(var t=e.tokens.filter(function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type}),n=0;n0)){var s=d(/^\{$/,/^\}$/);if(-1===s)continue;for(var l=n;l=0&&p(c,"variable-input")}}}}function u(e,r){r=r||0;for(var a=0;a]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),e.hooks.add("wrap",function(t){if("groovy"===t.language&&"string"===t.type){var n=t.content.value[0];if("'"!=n){var r=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===n&&(r=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),t.content.value=t.content.value.replace(/</g,"<").replace(/&/g,"&"),t.content=e.highlight(t.content.value,{expression:{pattern:r,lookbehind:!0,inside:e.languages.groovy}}),t.classes.push("/"===n?"regex":"gstring")}}})}e.exports=t,t.displayName="groovy",t.aliases=[]},29536:function(e,t,n){"use strict";var r=n(56939);function a(e){e.register(r),function(e){e.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:e.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:e.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:e.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:e.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:e.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:e.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:e.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var t=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],n={},r=0,a=t.length;r@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")}),e.languages.hbs=e.languages.handlebars}e.exports=a,a.displayName="handlebars",a.aliases=["hbs"]},58090:function(e){"use strict";function t(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}e.exports=t,t.displayName="haskell",t.aliases=["hs"]},95121:function(e){"use strict";function t(e){e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}e.exports=t,t.displayName="haxe",t.aliases=[]},59904:function(e){"use strict";function t(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}e.exports=t,t.displayName="hcl",t.aliases=[]},9436:function(e,t,n){"use strict";var r=n(65806);function a(e){e.register(r),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}e.exports=a,a.displayName="hlsl",a.aliases=[]},60591:function(e){"use strict";function t(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}e.exports=t,t.displayName="hoon",t.aliases=[]},76942:function(e){"use strict";function t(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}e.exports=t,t.displayName="hpkp",t.aliases=[]},60561:function(e){"use strict";function t(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}e.exports=t,t.displayName="hsts",t.aliases=[]},49660:function(e){"use strict";function t(e){!function(e){function t(e){return RegExp("(^(?:"+e+"):[ ]*(?![ ]))[^]+","i")}e.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:e.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:t(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:e.languages.csp},{pattern:t(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:e.languages.hpkp},{pattern:t(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:e.languages.hsts},{pattern:t(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var n,r=e.languages,a={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},i={"application/json":!0,"application/xml":!0};for(var o in a)if(a[o]){n=n||{};var s=i[o]?function(e){var t=e.replace(/^[a-z]+\//,"");return"(?:"+e+"|\\w+/(?:[\\w.-]+\\+)+"+t+"(?![+\\w.-]))"}(o):o;n[o.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+s+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:a[o]}}n&&e.languages.insertBefore("http","header",n)}(e)}e.exports=t,t.displayName="http",t.aliases=[]},30615:function(e){"use strict";function t(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}e.exports=t,t.displayName="ichigojam",t.aliases=[]},93865:function(e){"use strict";function t(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}e.exports=t,t.displayName="icon",t.aliases=[]},51078:function(e){"use strict";function t(e){!function(e){function t(e,n){return n<=0?/[]/.source:e.replace(//g,function(){return t(e,n-1)})}var n=/'[{}:=,](?:[^']|'')*'(?!')/,r={pattern:/''/,greedy:!0,alias:"operator"},a=t(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return n.source}),8),i={pattern:RegExp(a),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};e.languages["icu-message-format"]={argument:{pattern:RegExp(a),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":i,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":i,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+t(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:r,string:{pattern:n,greedy:!0,inside:{escape:r}}},i.inside.message.inside=e.languages["icu-message-format"],e.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=e.languages["icu-message-format"]}(e)}e.exports=t,t.displayName="icuMessageFormat",t.aliases=[]},91178:function(e,t,n){"use strict";var r=n(58090);function a(e){e.register(r),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}e.exports=a,a.displayName="idris",a.aliases=["idr"]},40011:function(e){"use strict";function t(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}e.exports=t,t.displayName="iecst",t.aliases=[]},12017:function(e){"use strict";function t(e){e.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},e.languages.gitignore=e.languages.ignore,e.languages.hgignore=e.languages.ignore,e.languages.npmignore=e.languages.ignore}e.exports=t,t.displayName="ignore",t.aliases=["gitignore","hgignore","npmignore"]},65175:function(e){"use strict";function t(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}e.exports=t,t.displayName="inform7",t.aliases=[]},14970:function(e){"use strict";function t(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}e.exports=t,t.displayName="ini",t.aliases=[]},30764:function(e){"use strict";function t(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}e.exports=t,t.displayName="j",t.aliases=[]},15909:function(e){"use strict";function t(e){var t,n,r;t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r={pattern:RegExp((n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source)+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}},e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}e.exports=t,t.displayName="java",t.aliases=[]},36553:function(e,t,n){"use strict";var r=n(15909),a=n(9858);function i(e){var t,n,i;e.register(r),e.register(a),t=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,n=/#\s*\w+(?:\s*\([^()]*\))?/.source,i=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*)?|/.source.replace(//g,function(){return n}),e.languages.javadoc=e.languages.extend("javadoclike",{}),e.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+i+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:e.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:t,lookbehind:!0,inside:e.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:t,lookbehind:!0,inside:{tag:e.languages.markup.tag,entity:e.languages.markup.entity,code:{pattern:/.+/,inside:e.languages.java,alias:"language-java"}}}}}],tag:e.languages.markup.tag,entity:e.languages.markup.entity}),e.languages.javadoclike.addSupport("java",e.languages.javadoc)}e.exports=i,i.displayName="javadoc",i.aliases=[]},9858:function(e){"use strict";function t(e){var t;Object.defineProperty(t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/},"addSupport",{value:function(t,n){"string"==typeof t&&(t=[t]),t.forEach(function(t){!function(t,n){var r="doc-comment",a=e.languages[t];if(a){var i=a[r];if(!i){var o={};o[r]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},i=(a=e.languages.insertBefore(t,"comment",o))[r]}if(i instanceof RegExp&&(i=a[r]={pattern:i}),Array.isArray(i))for(var s=0,l=i.length;s|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}e.exports=t,t.displayName="javascript",t.aliases=["js"]},11223:function(e){"use strict";function t(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}e.exports=t,t.displayName="javastacktrace",t.aliases=[]},57957:function(e){"use strict";function t(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}e.exports=t,t.displayName="jexl",t.aliases=[]},75807:function(e){"use strict";function t(e){e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}e.exports=t,t.displayName="jolie",t.aliases=[]},77935:function(e){"use strict";function t(e){var t,n,r,a;t=/\\\((?:[^()]|\([^()]*\))*\)/.source,n=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return t})),r={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+t),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},a=e.languages.jq={comment:/#.*/,property:{pattern:RegExp(n.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:r},string:{pattern:n,lookbehind:!0,greedy:!0,inside:r},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}},r.interpolation.inside.content.inside=a}e.exports=t,t.displayName="jq",t.aliases=[]},46155:function(e){"use strict";function t(e){!function(e){function t(e,t){return RegExp(e.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r=p.length)return;var o=n[i];if("string"==typeof o||"string"==typeof o.content){var l=p[c],d="string"==typeof o?o:o.content,f=d.indexOf(l);if(-1!==f){++c;var m=d.substring(0,f),g=function(t){var n={};n["interpolation-punctuation"]=a;var i=e.tokenize(t,n);if(3===i.length){var o=[1,1];o.push.apply(o,s(i[1],e.languages.javascript,"javascript")),i.splice.apply(i,o)}return new e.Token("interpolation",i,r.alias,t)}(u[l]),h=d.substring(f+l.length),b=[];if(m&&b.push(m),b.push(g),h){var y=[h];t(y),b.push.apply(b,y)}"string"==typeof o?(n.splice.apply(n,[i,1].concat(b)),i+=b.length-1):o.content=b}}else{var E=o.content;Array.isArray(E)?t(E):t([E])}}}(d),new e.Token(o,d,"language-"+o,t)}(p,g,m)}}else t(u)}}}(t.tokens)})}(e)}e.exports=t,t.displayName="jsTemplates",t.aliases=[]},25319:function(e,t,n){"use strict";var r=n(9858),a=n(4979);function i(e){var t,n,i;e.register(r),e.register(a),t=e.languages.javascript,i="(@(?:arg|argument|param|property)\\s+(?:"+(n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source)+"\\s+)?)",e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(i+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(i+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}e.exports=i,i.displayName="jsdoc",i.aliases=[]},45950:function(e){"use strict";function t(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}e.exports=t,t.displayName="json",t.aliases=["webmanifest"]},50235:function(e,t,n){"use strict";var r=n(45950);function a(e){var t;e.register(r),t=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/,e.languages.json5=e.languages.extend("json",{property:[{pattern:RegExp(t.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:t,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}e.exports=a,a.displayName="json5",a.aliases=[]},80963:function(e,t,n){"use strict";var r=n(45950);function a(e){e.register(r),e.languages.jsonp=e.languages.extend("json",{punctuation:/[{}[\]();,.]/}),e.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}e.exports=a,a.displayName="jsonp",a.aliases=[]},79358:function(e){"use strict";function t(e){e.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js||.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}e.exports=t,t.displayName="jsstacktrace",t.aliases=[]},96412:function(e){"use strict";function t(e){!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,a=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function i(e,t){return RegExp(e=e.replace(//g,function(){return n}).replace(//g,function(){return r}).replace(//g,function(){return a}),t)}a=i(a).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var o=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(o).join(""):""},s=function(t){for(var n=[],r=0;r0&&n[n.length-1].tagName===o(a.content[0].content[1])&&n.pop():"/>"===a.content[a.content.length-1].content||n.push({tagName:o(a.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===a.type&&"{"===a.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===a.type&&"}"===a.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof a)&&n.length>0&&0===n[n.length-1].openedBraces){var l=o(a);r0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(l=o(t[r-1])+l,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",l,null,l)}a.content&&"string"!=typeof a.content&&s(a.content)}};e.hooks.add("after-tokenize",function(e){("jsx"===e.language||"tsx"===e.language)&&s(e.tokens)})}(e)}e.exports=t,t.displayName="jsx",t.aliases=[]},39259:function(e){"use strict";function t(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}e.exports=t,t.displayName="julia",t.aliases=[]},51466:function(e){"use strict";function t(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}e.exports=t,t.displayName="keepalived",t.aliases=[]},35760:function(e){"use strict";function t(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}e.exports=t,t.displayName="keyman",t.aliases=[]},19715:function(e){"use strict";function t(e){var t;e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"],t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}},e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}e.exports=t,t.displayName="kotlin",t.aliases=["kt","kts"]},27614:function(e){"use strict";function t(e){!function(e){var t=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function n(e,n){return RegExp(e.replace(//g,t),n)}e.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:n(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:n(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:n(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:n(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:n(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:n(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:n(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:n(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},e.languages.kum=e.languages.kumir}(e)}e.exports=t,t.displayName="kumir",t.aliases=["kum"]},82819:function(e){"use strict";function t(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}e.exports=t,t.displayName="kusto",t.aliases=[]},42876:function(e){"use strict";function t(e){var t,n;n={"equation-command":{pattern:t=/\\(?:[^a-z()[\]]|[a-z*]+)/i,alias:"regex"}},e.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:n,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:n,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:t,alias:"selector"},punctuation:/[[\]{}&]/},e.languages.tex=e.languages.latex,e.languages.context=e.languages.latex}e.exports=t,t.displayName="latex",t.aliases=["tex","context"]},2980:function(e,t,n){"use strict";var r=n(93205),a=n(88262);function i(e){var t;e.register(r),e.register(a),e.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:e.languages.php}},t=e.languages.extend("markup",{}),e.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:e.languages.php}}}}}},t.tag),e.hooks.add("before-tokenize",function(n){"latte"===n.language&&(e.languages["markup-templating"].buildPlaceholders(n,"latte",/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g),n.grammar=t)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"latte")})}e.exports=i,i.displayName="latte",i.aliases=[]},41701:function(e){"use strict";function t(e){e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}e.exports=t,t.displayName="less",t.aliases=[]},42491:function(e,t,n){"use strict";var r=n(9997);function a(e){e.register(r),function(e){for(var t=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,n=0;n<5;n++)t=t.replace(//g,function(){return t});t=t.replace(//g,/[^\s\S]/.source);var r=e.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return t}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:e.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};r["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=r,e.languages.ly=r}(e)}e.exports=a,a.displayName="lilypond",a.aliases=[]},34927:function(e,t,n){"use strict";var r=n(93205);function a(e){e.register(r),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,function(e){var t=/^\{%-?\s*(\w+)/.exec(e);if(t){var r=t[1];if("raw"===r&&!n)return n=!0,!0;if("endraw"===r)return n=!1,!0}return!n})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}e.exports=a,a.displayName="liquid",a.aliases=[]},3848:function(e){"use strict";function t(e){!function(e){function t(e){return RegExp(/(\()/.source+"(?:"+e+")"+/(?=[\s\)])/.source)}function n(e){return RegExp(/([\s([])/.source+"(?:"+e+")"+/(?=[\s)])/.source)}var r=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,a="&"+r,i="(\\()",o="(?=\\s)",s=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,l={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+r+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+r),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+r),alias:"property"},splice:{pattern:RegExp(",@?"+r),alias:["symbol","variable"]},keyword:[{pattern:RegExp(i+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+o),lookbehind:!0},{pattern:RegExp(i+"(?:append|by|collect|concat|do|finally|for|in|return)"+o),lookbehind:!0}],declare:{pattern:t(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:t(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:n(/nil|t/.source),lookbehind:!0},number:{pattern:n(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(i+"def(?:const|custom|group|var)\\s+"+r),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(r)}},defun:{pattern:RegExp(i+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+r+/\s+\(/.source+s+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+r),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(i+"lambda\\s+\\(\\s*(?:&?"+r+"(?:\\s+&?"+r+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(i+r),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},c={"lisp-marker":RegExp(a),varform:{pattern:RegExp(/\(/.source+r+/\s+(?=\S)/.source+s+/\)/.source),inside:l},argument:{pattern:RegExp(/(^|[\s(])/.source+r),lookbehind:!0,alias:"variable"},rest:l},u="\\S+(?:\\s+\\S+)*",d={pattern:RegExp(i+s+"(?=\\))"),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+u),inside:c},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+u),inside:c},keys:{pattern:RegExp("&key\\s+"+u+"(?:\\s+&allow-other-keys)?"),inside:c},argument:{pattern:RegExp(r),alias:"variable"},punctuation:/[()]/}};l.lambda.inside.arguments=d,l.defun.inside.arguments=e.util.clone(d),l.defun.inside.arguments.inside.sublist=d,e.languages.lisp=l,e.languages.elisp=l,e.languages.emacs=l,e.languages["emacs-lisp"]=l}(e)}e.exports=t,t.displayName="lisp",t.aliases=[]},41469:function(e){"use strict";function t(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}e.exports=t,t.displayName="livescript",t.aliases=[]},73070:function(e){"use strict";function t(e){e.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}}e.exports=t,t.displayName="llvm",t.aliases=[]},35049:function(e){"use strict";function t(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}e.exports=t,t.displayName="log",t.aliases=[]},8789:function(e){"use strict";function t(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}e.exports=t,t.displayName="lolcode",t.aliases=[]},59803:function(e){"use strict";function t(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}e.exports=t,t.displayName="lua",t.aliases=[]},86328:function(e){"use strict";function t(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}e.exports=t,t.displayName="magma",t.aliases=[]},33055:function(e){"use strict";function t(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}e.exports=t,t.displayName="makefile",t.aliases=[]},90542:function(e){"use strict";function t(e){!function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(//g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+i+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+i+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(t){["url","bold","italic","strike","code-snippet"].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add("after-tokenize",function(e){("markdown"===e.language||"md"===e.language)&&function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(e)}e.exports=t,t.displayName="markdown",t.aliases=["md"]},93205:function(e){"use strict";function t(e){!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,a,i){if(n.language===r){var o=n.tokenStack=[];n.code=n.code.replace(a,function(e){if("function"==typeof i&&!i(e))return e;for(var a,s=o.length;-1!==n.code.indexOf(a=t(r,s));)++s;return o[s]=e,a}),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var a=0,i=Object.keys(n.tokenStack);!function o(s){for(var l=0;l=i.length);l++){var c=s[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=i[a],d=n.tokenStack[u],p="string"==typeof c?c:c.content,f=t(r,u),m=p.indexOf(f);if(m>-1){++a;var g=p.substring(0,m),h=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),b=p.substring(m+f.length),y=[];g&&y.push.apply(y,o([g])),y.push(h),b&&y.push.apply(y,o([b])),"string"==typeof c?s.splice.apply(s,[l,1].concat(y)):c.content=y}}else c.content&&o(c.content)}return s}(n.tokens)}}}})}(e)}e.exports=t,t.displayName="markupTemplating",t.aliases=[]},2717:function(e){"use strict";function t(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var r={};r["language-"+n]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[n]},r.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:r}};a["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}e.exports=t,t.displayName="markup",t.aliases=["html","mathml","svg","xml","ssml","atom","rss"]},27992:function(e){"use strict";function t(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}e.exports=t,t.displayName="matlab",t.aliases=[]},91115:function(e){"use strict";function t(e){var t;t=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i,e.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|")+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source+")[ ]*)(?!"+t.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+t.source+")"+/[a-z_]/.source+"|")+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:t,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}}e.exports=t,t.displayName="maxscript",t.aliases=[]},606:function(e){"use strict";function t(e){e.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},e.languages.mel.code.inside.rest=e.languages.mel}e.exports=t,t.displayName="mel",t.aliases=[]},68582:function(e){"use strict";function t(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}e.exports=t,t.displayName="mermaid",t.aliases=[]},23388:function(e){"use strict";function t(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}e.exports=t,t.displayName="mizar",t.aliases=[]},90596:function(e){"use strict";function t(e){var t,n;n="(?:"+["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"].map(function(e){return e.replace("$","\\$")}).join("|")+")\\b",e.languages.mongodb=e.languages.extend("javascript",{}),e.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp("^(['\"])?"+n+"(?:\\1)?$")}}}),e.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},e.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:ObjectId|Code|BinData|DBRef|Timestamp|NumberLong|NumberDecimal|MaxKey|MinKey|RegExp|ISODate|UUID)\\b"),alias:"keyword"}})}e.exports=t,t.displayName="mongodb",t.aliases=[]},95721:function(e){"use strict";function t(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}e.exports=t,t.displayName="monkey",t.aliases=[]},64262:function(e){"use strict";function t(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}e.exports=t,t.displayName="moonscript",t.aliases=["moon"]},18190:function(e){"use strict";function t(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}e.exports=t,t.displayName="n1ql",t.aliases=[]},70896:function(e){"use strict";function t(e){e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}e.exports=t,t.displayName="n4js",t.aliases=["n4jsd"]},42242:function(e){"use strict";function t(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}e.exports=t,t.displayName="nand2tetrisHdl",t.aliases=[]},37943:function(e){"use strict";function t(e){var t,n;n={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:t=/\{[^\r\n\[\]{}]*\}/,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]},e.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:t,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:n}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:t,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:n},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},e.languages.nani=e.languages.naniscript,e.hooks.add("after-tokenize",function(e){e.tokens.forEach(function(e){if("string"!=typeof e&&"generic-text"===e.type){var t=function e(t){return"string"==typeof t?t:Array.isArray(t)?t.map(e).join(""):e(t.content)}(e);!function(e){for(var t=[],n=0;n=&|$!]/}}e.exports=t,t.displayName="nasm",t.aliases=[]},83873:function(e){"use strict";function t(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}e.exports=t,t.displayName="neon",t.aliases=[]},75932:function(e){"use strict";function t(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}e.exports=t,t.displayName="nevod",t.aliases=[]},60221:function(e){"use strict";function t(e){var t;t=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i,e.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:t}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:t}},punctuation:/[{};]/}}e.exports=t,t.displayName="nginx",t.aliases=[]},44188:function(e){"use strict";function t(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}e.exports=t,t.displayName="nim",t.aliases=[]},74426:function(e){"use strict";function t(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}e.exports=t,t.displayName="nix",t.aliases=[]},88447:function(e){"use strict";function t(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}e.exports=t,t.displayName="nsis",t.aliases=[]},16032:function(e,t,n){"use strict";var r=n(65806);function a(e){e.register(r),e.languages.objectivec=e.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}e.exports=a,a.displayName="objectivec",a.aliases=["objc"]},33607:function(e){"use strict";function t(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}e.exports=t,t.displayName="ocaml",t.aliases=[]},22001:function(e,t,n){"use strict";var r=n(65806);function a(e){var t;e.register(r),e.languages.opencl=e.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),e.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}}),t={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}},e.languages.insertBefore("c","keyword",t),e.languages.cpp&&(t["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},e.languages.insertBefore("cpp","keyword",t))}e.exports=a,a.displayName="opencl",a.aliases=[]},22950:function(e){"use strict";function t(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}e.exports=t,t.displayName="openqasm",t.aliases=["qasm"]},23254:function(e){"use strict";function t(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}e.exports=t,t.displayName="oz",t.aliases=[]},92694:function(e){"use strict";function t(e){var t;e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:RegExp("\\b(?:"+["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"].map(function(e){return e.split("").join(" *")}).join("|")+")\\b"),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}e.exports=t,t.displayName="parigp",t.aliases=[]},43273:function(e){"use strict";function t(e){var t;t=e.languages.parser=e.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/}),t=e.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:t.keyword,variable:t.variable,function:t.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:t.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:t.punctuation}}}),e.languages.insertBefore("inside","punctuation",{expression:t.expression,keyword:t.keyword,variable:t.variable,function:t.function,escape:t.escape,"parser-punctuation":{pattern:t.punctuation,alias:"punctuation"}},t.tag.inside["attr-value"])}e.exports=t,t.displayName="parser",t.aliases=[]},60718:function(e){"use strict";function t(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}e.exports=t,t.displayName="pascal",t.aliases=["objectpascal"]},39303:function(e){"use strict";function t(e){var t,n,r,a;t=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,n=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return t}),r=e.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return n}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return n}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return n})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},a=["comment","keyword","builtin","operator","punctuation"].reduce(function(e,t){return e[t]=r[t],e},{}),r["class-name"].forEach(function(e){e.inside=a})}e.exports=t,t.displayName="pascaligo",t.aliases=[]},77393:function(e){"use strict";function t(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}e.exports=t,t.displayName="pcaxis",t.aliases=["px"]},19023:function(e){"use strict";function t(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}e.exports=t,t.displayName="peoplecode",t.aliases=["pcode"]},74212:function(e){"use strict";function t(e){var t;t=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source,e.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,t].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,t].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,t+/\s*/.source+t].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}}e.exports=t,t.displayName="perl",t.aliases=[]},5137:function(e,t,n){"use strict";var r=n(88262);function a(e){e.register(r),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}e.exports=a,a.displayName="phpExtras",a.aliases=[]},88262:function(e,t,n){"use strict";var r=n(93205);function a(e){var t,n,a,i,o,s,l;e.register(r),t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],a=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/,e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:a,operator:i,punctuation:o},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php}}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:s}}],e.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:a,operator:i,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")})}e.exports=a,a.displayName="php",a.aliases=[]},63632:function(e,t,n){"use strict";var r=n(88262),a=n(9858);function i(e){var t;e.register(r),e.register(a),t=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source,e.languages.phpdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+t+"\\s+)?)\\$\\w+"),lookbehind:!0}}),e.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+t),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),e.languages.javadoclike.addSupport("php",e.languages.phpdoc)}e.exports=i,i.displayName="phpdoc",i.aliases=[]},59149:function(e,t,n){"use strict";var r=n(11114);function a(e){e.register(r),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}e.exports=a,a.displayName="plsql",a.aliases=[]},50256:function(e){"use strict";function t(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}e.exports=t,t.displayName="powerquery",t.aliases=[]},61777:function(e){"use strict";function t(e){var t;(t=e.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/}).string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:t},boolean:t.boolean,variable:t.variable}}e.exports=t,t.displayName="powershell",t.aliases=[]},3623:function(e){"use strict";function t(e){e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}e.exports=t,t.displayName="processing",t.aliases=[]},82707:function(e){"use strict";function t(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}e.exports=t,t.displayName="prolog",t.aliases=[]},59338:function(e){"use strict";function t(e){var t,n;n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"].concat(t=["on","ignoring","group_right","group_left","by","without"],["offset"]),e.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:RegExp("((?:"+t.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:RegExp("\\b(?:"+n.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}}e.exports=t,t.displayName="promql",t.aliases=[]},56267:function(e){"use strict";function t(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}e.exports=t,t.displayName="properties",t.aliases=[]},98809:function(e){"use strict";function t(e){var t;t=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/,e.languages.protobuf=e.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),e.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:t}},builtin:t,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}e.exports=t,t.displayName="protobuf",t.aliases=[]},37548:function(e){"use strict";function t(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}e.exports=t,t.displayName="psl",t.aliases=[]},82161:function(e){"use strict";function t(e){!function(e){e.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:e.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:e.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:e.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:e.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:e.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:e.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:e.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:e.languages.javascript}],punctuation:/[.\-!=|]+/};for(var t=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,n=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],r={},a=0,i=n.length;a",function(){return o.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[o.language,"language-"+o.language],inside:e.languages[o.language]}}})}e.languages.insertBefore("pug","filter",r)}(e)}e.exports=t,t.displayName="pug",t.aliases=[]},80625:function(e){"use strict";function t(e){var t;e.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/},t=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:e.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}],e.languages.puppet.heredoc[0].inside.interpolation=t,e.languages.puppet.string.inside["double-quoted"].inside.interpolation=t}e.exports=t,t.displayName="puppet",t.aliases=[]},88393:function(e){"use strict";function t(e){var t;e.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/},t=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source,["c",{lang:"c++",alias:"cpp"},"fortran"].forEach(function(n){var r=n;if("string"!=typeof n&&(r=n.alias,n=n.lang),e.languages[r]){var a={};a["inline-lang-"+r]={pattern:RegExp(t.replace("",n.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:e.util.clone(e.languages.pure["inline-lang"].inside)},a["inline-lang-"+r].inside.rest=e.util.clone(e.languages[r]),e.languages.insertBefore("pure","inline-lang",a)}}),e.languages.c&&(e.languages.pure["inline-lang"].inside.rest=e.util.clone(e.languages.c))}e.exports=t,t.displayName="pure",t.aliases=[]},78404:function(e){"use strict";function t(e){e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}e.exports=t,t.displayName="purebasic",t.aliases=[]},92923:function(e,t,n){"use strict";var r=n(58090);function a(e){e.register(r),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}e.exports=a,a.displayName="purescript",a.aliases=["purs"]},52992:function(e){"use strict";function t(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}e.exports=t,t.displayName="python",t.aliases=["py"]},55762:function(e){"use strict";function t(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}e.exports=t,t.displayName="q",t.aliases=[]},4137:function(e){"use strict";function t(e){!function(e){for(var t=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,n=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,r=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return t}).replace(//g,function(){return n}),a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,"[^\\s\\S]"),e.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return r}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:e.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return r}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:e.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}e.exports=t,t.displayName="qml",t.aliases=[]},28260:function(e){"use strict";function t(e){e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}e.exports=t,t.displayName="qore",t.aliases=[]},71360:function(e){"use strict";function t(e){!function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,function(e,n){return"(?:"+t[+n]+")"})}function n(e,n,r){return RegExp(t(e,n),r||"")}var r={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"},a=RegExp("\\b(?:"+(r.type+" "+r.other).trim().replace(/ /g,"|")+")\\b"),i=/\b[A-Za-z_]\w*\b/.source,o=t(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[i]),s={keyword:a,punctuation:/[<>()?,.:[\]]/},l=/"(?:\\.|[^\\"])*"/.source;e.languages.qsharp=e.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[l]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[o]),lookbehind:!0,inside:s},{pattern:n(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[o]),lookbehind:!0,inside:s}],keyword:a,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),e.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var c=function(e,t){for(var n=0;n<2;n++)e=e.replace(/<>/g,function(){return"(?:"+e+")"});return e.replace(/<>/g,"[^\\s\\S]")}(t(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[l]),0);e.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:n(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[c]),greedy:!0,inside:{interpolation:{pattern:n(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[c]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:e.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}e.exports=t,t.displayName="qsharp",t.aliases=["qs"]},29308:function(e){"use strict";function t(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}e.exports=t,t.displayName="r",t.aliases=[]},32168:function(e,t,n){"use strict";var r=n(9997);function a(e){e.register(r),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}e.exports=a,a.displayName="racket",a.aliases=["rkt"]},5755:function(e){"use strict";function t(e){e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}e.exports=t,t.displayName="reason",t.aliases=[]},54105:function(e){"use strict";function t(e){var t,n,r,a,i;t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},a=RegExp((r="(?:[^\\\\-]|"+(n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/).source+")")+"-"+r),i={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"},e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:a,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":i}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}e.exports=t,t.displayName="rego",t.aliases=[]},35108:function(e){"use strict";function t(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}e.exports=t,t.displayName="renpy",t.aliases=["rpy"]},46678:function(e){"use strict";function t(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}e.exports=t,t.displayName="rest",t.aliases=[]},47496:function(e){"use strict";function t(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}e.exports=t,t.displayName="rip",t.aliases=[]},30527:function(e){"use strict";function t(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}e.exports=t,t.displayName="roboconf",t.aliases=[]},5261:function(e){"use strict";function t(e){!function(e){var t={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},n={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function r(e,r){var a={};for(var i in a["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"},r)a[i]=r[i];return a.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},a.variable=n,a.comment=t,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return e}),"im"),alias:"section",inside:a}}var a={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},i={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:n}},o={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:n}};e.languages.robotframework={settings:r("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:r("Variables"),"test-cases":r("Test Cases",{"test-name":i,documentation:a,property:o}),keywords:r("Keywords",{"keyword-name":i,documentation:a,property:o}),tasks:r("Tasks",{"task-name":i,documentation:a,property:o}),comment:t},e.languages.robot=e.languages.robotframework}(e)}e.exports=t,t.displayName="robotframework",t.aliases=[]},56939:function(e){"use strict";function t(e){var t,n,r;e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}},delete e.languages.ruby.function,n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source,e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}e.exports=t,t.displayName="ruby",t.aliases=["rb"]},83648:function(e){"use strict";function t(e){!function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,n=0;n<2;n++)t=t.replace(//g,function(){return t});t=t.replace(//g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(e)}e.exports=t,t.displayName="rust",t.aliases=[]},16009:function(e){"use strict";function t(e){var t,n,r,a,i,o,s,l,c,u,d,p,f,m,g,h,b,y;t=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,n=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,r={pattern:RegExp(t+"[bx]"),alias:"number"},i={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},o={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},s=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],d={function:u={pattern:/%?\b\w+(?=\()/,alias:"keyword"},"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":a={pattern:/&[a-z_]\w*/i},arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:n,"numeric-constant":r,punctuation:c=/[$%@.(){}\[\];,\\]/,string:l={pattern:RegExp(t),greedy:!0}},p={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},f={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},m={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},g={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},h=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,b={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return h}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return h}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:s,function:u,"arg-value":d["arg-value"],operator:d.operator,argument:d.arg,number:n,"numeric-constant":r,punctuation:c,string:l}},y={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0},e.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return t}),"im"),alias:"language-sql",inside:e.languages.sql},"global-statements":m,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:n,"numeric-constant":r,punctuation:c,string:l}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return t}),"im"),lookbehind:!0,alias:"language-groovy",inside:e.languages.groovy},keyword:y,"submit-statement":g,"global-statements":m,number:n,"numeric-constant":r,punctuation:c,string:l}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return t}),"im"),lookbehind:!0,alias:"language-lua",inside:e.languages.lua},keyword:y,"submit-statement":g,"global-statements":m,number:n,"numeric-constant":r,punctuation:c,string:l}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:d}},"cas-actions":b,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:d},step:o,keyword:y,function:u,format:p,altformat:f,"global-statements":m,number:n,"numeric-constant":r,punctuation:c,string:l}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return t}),"im"),lookbehind:!0,inside:d},"macro-keyword":i,"macro-variable":a,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":i,"macro-variable":a,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:c}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:s,number:n,"numeric-constant":r}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:d},"cas-actions":b,comment:s,function:u,format:p,altformat:f,"numeric-constant":r,datetime:{pattern:RegExp(t+"(?:dt?|t)"),alias:"number"},string:l,step:o,keyword:y,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:n,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:c}}e.exports=t,t.displayName="sas",t.aliases=[]},41720:function(e){"use strict";function t(e){var t,n;e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule,t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}e.exports=t,t.displayName="sass",t.aliases=[]},6054:function(e,t,n){"use strict";var r=n(15909);function a(e){e.register(r),e.languages.scala=e.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function}e.exports=a,a.displayName="scala",a.aliases=[]},9997:function(e){"use strict";function t(e){e.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(function(e){for(var t in e)e[t]=e[t].replace(/<[\w\s]+>/g,function(t){return"(?:"+e[t].trim()+")"});return e[t]}({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/}}e.exports=t,t.displayName="scheme",t.aliases=[]},24296:function(e){"use strict";function t(e){e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}e.exports=t,t.displayName="scss",t.aliases=[]},49246:function(e,t,n){"use strict";var r=n(6979);function a(e){var t;e.register(r),t=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|"),e.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return t}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:e.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},e.languages["sh-session"]=e.languages.shellsession=e.languages["shell-session"]}e.exports=a,a.displayName="shellSession",a.aliases=[]},18890:function(e){"use strict";function t(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}e.exports=t,t.displayName="smali",t.aliases=[]},11037:function(e){"use strict";function t(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}e.exports=t,t.displayName="smalltalk",t.aliases=[]},64020:function(e,t,n){"use strict";var r=n(93205);function a(e){var t,n;e.register(r),e.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:e.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},e.languages.smarty["embedded-php"].inside.smarty.inside=e.languages.smarty,e.languages.smarty.string[0].inside.interpolation.inside.expression.inside=e.languages.smarty,t=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,n=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return t.source}),"g"),e.hooks.add("before-tokenize",function(t){var r=!1;e.languages["markup-templating"].buildPlaceholders(t,"smarty",n,function(e){return"{/literal}"===e&&(r=!1),!r&&("{literal}"===e&&(r=!0),!0)})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"smarty")})}e.exports=a,a.displayName="smarty",a.aliases=[]},49760:function(e){"use strict";function t(e){var t;t=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i,e.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return t.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:t,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},e.languages.sml["class-name"][0].inside=e.languages.sml,e.languages.smlnj=e.languages.sml}e.exports=t,t.displayName="sml",t.aliases=["smlnj"]},33351:function(e){"use strict";function t(e){e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}e.exports=t,t.displayName="solidity",t.aliases=["sol"]},13570:function(e){"use strict";function t(e){var t;t={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}},e.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:t}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:t}},guid:t,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},e.languages.sln=e.languages["solution-file"]}e.exports=t,t.displayName="solutionFile",t.aliases=[]},38181:function(e,t,n){"use strict";var r=n(93205);function a(e){var t,n;e.register(r),t=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/,e.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:t,greedy:!0},number:n,punctuation:/[\[\].?]/}},string:{pattern:t,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:n,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},e.hooks.add("before-tokenize",function(t){var n=!1;e.languages["markup-templating"].buildPlaceholders(t,"soy",/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,function(e){return"{/literal}"===e&&(n=!1),!n&&("{literal}"===e&&(n=!0),!0)})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"soy")})}e.exports=a,a.displayName="soy",a.aliases=[]},98774:function(e,t,n){"use strict";var r=n(24691);function a(e){e.register(r),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}e.exports=a,a.displayName="sparql",a.aliases=["rq"]},22855:function(e){"use strict";function t(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}e.exports=t,t.displayName="splunkSpl",t.aliases=[]},29611:function(e){"use strict";function t(e){e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}e.exports=t,t.displayName="sqf",t.aliases=[]},11114:function(e){"use strict";function t(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}e.exports=t,t.displayName="sql",t.aliases=[]},67386:function(e){"use strict";function t(e){e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}e.exports=t,t.displayName="squirrel",t.aliases=[]},28067:function(e){"use strict";function t(e){var t;t=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/,e.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+t.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,t],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},e.languages.stan.constraint.inside.expression.inside=e.languages.stan}e.exports=t,t.displayName="stan",t.aliases=[]},49168:function(e){"use strict";function t(e){var t,n,r;(r={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},number:n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/}).interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:r}},r.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:r.interpolation}},rest:r}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}e.exports=t,t.displayName="stylus",t.aliases=[]},23651:function(e){"use strict";function t(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}e.exports=t,t.displayName="swift",t.aliases=[]},21483:function(e){"use strict";function t(e){var t,n;t={pattern:/^[;#].*/m,greedy:!0},n=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source,e.languages.systemd={comment:t,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+n+'|(?=[^"\r\n]))(?:'+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|')+n+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:t,quoted:{pattern:RegExp(/(^|\s)/.source+n),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}}e.exports=t,t.displayName="systemd",t.aliases=[]},32268:function(e,t,n){"use strict";var r=n(2329),a=n(61958);function i(e){e.register(r),e.register(a),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}e.exports=i,i.displayName="t4Cs",i.aliases=[]},2329:function(e){"use strict";function t(e){!function(e){function t(e,t,n){return{pattern:RegExp("<#"+e+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+e+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:t,alias:n}}}}e.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:function(n){var r=e.languages[n],a="language-"+n;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:t("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:t("=",r,a),"class-feature":t("\\+",r,a),standard:t("",r,a)}}}}})}(e)}e.exports=t,t.displayName="t4Templating",t.aliases=[]},82996:function(e,t,n){"use strict";var r=n(2329),a=n(53813);function i(e){e.register(r),e.register(a),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}e.exports=i,i.displayName="t4Vb",i.aliases=[]},17290:function(e,t,n){"use strict";var r=n(65039);function a(e){e.register(r),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}e.exports=a,a.displayName="tap",a.aliases=[]},67989:function(e){"use strict";function t(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}e.exports=t,t.displayName="tcl",t.aliases=[]},31065:function(e){"use strict";function t(e){!function(e){var t=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,n=/\)|\((?![^|()\n]+\))/.source;function r(e,r){return RegExp(e.replace(//g,function(){return"(?:"+t+")"}).replace(//g,function(){return"(?:"+n+")"}),r||"")}var a={css:{pattern:/\{[^{}]+\}/,inside:{rest:e.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},i=e.languages.textile=e.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:r(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:r(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:a},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:r(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:r(/(^[*#]+)+/.source),lookbehind:!0,inside:a},punctuation:/^[*#]+/}},table:{pattern:r(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:r(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:a},punctuation:/\||^\./}},inline:{pattern:r(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:r(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:r(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:r(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:r(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:r(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:r(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:r(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:r(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:a},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:r(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:r(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:r(/(^")+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:r(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:r(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:r(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),o=i.phrase.inside,s={inline:o.inline,link:o.link,image:o.image,footnote:o.footnote,acronym:o.acronym,mark:o.mark};i.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var l=o.inline.inside;l.bold.inside=s,l.italic.inside=s,l.inserted.inside=s,l.deleted.inside=s,l.span.inside=s;var c=o.table.inside;c.inline=s.inline,c.link=s.link,c.image=s.image,c.footnote=s.footnote,c.acronym=s.acronym,c.mark=s.mark}(e)}e.exports=t,t.displayName="textile",t.aliases=[]},85572:function(e){"use strict";function t(e){!function(e){var t=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function n(e){return e.replace(/__/g,function(){return t})}e.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(n(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(n(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}}(e)}e.exports=t,t.displayName="toml",t.aliases=[]},27536:function(e){"use strict";function t(e){var t;e.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/},t=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source,e.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+t+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+t+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(t),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.tremor}}},string:/[\s\S]+/}},e.languages.troy=e.languages.tremor,e.languages.trickle=e.languages.tremor}e.exports=t,t.displayName="tremor",t.aliases=[]},87041:function(e,t,n){"use strict";var r=n(96412),a=n(4979);function i(e){var t,n;e.register(r),e.register(a),t=e.util.clone(e.languages.typescript),e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],(n=e.languages.tsx.tag).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}e.exports=i,i.displayName="tsx",i.aliases=[]},61028:function(e,t,n){"use strict";var r=n(93205);function a(e){e.register(r),e.languages.tt2=e.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),e.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),e.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),e.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete e.languages.tt2.string,e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"tt2",/\[%[\s\S]+?%\]/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"tt2")})}e.exports=a,a.displayName="tt2",a.aliases=[]},24691:function(e){"use strict";function t(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}e.exports=t,t.displayName="turtle",t.aliases=[]},19892:function(e,t,n){"use strict";var r=n(93205);function a(e){e.register(r),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){"twig"===t.language&&e.languages["markup-templating"].buildPlaceholders(t,"twig",/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}e.exports=a,a.displayName="twig",a.aliases=[]},4979:function(e){"use strict";function t(e){var t;e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"],t=e.languages.extend("typescript",{}),delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}e.exports=t,t.displayName="typescript",t.aliases=["ts"]},23159:function(e){"use strict";function t(e){var t;t=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/,e.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:t}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:t,number:/^\d+$/,punctuation:/[,|:]/}},keyword:t,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},e.languages.tsconfig=e.languages.typoscript}e.exports=t,t.displayName="typoscript",t.aliases=["tsconfig"]},34966:function(e){"use strict";function t(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}e.exports=t,t.displayName="unrealscript",t.aliases=["uc","uscript"]},44623:function(e){"use strict";function t(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}e.exports=t,t.displayName="uorazor",t.aliases=[]},38521:function(e){"use strict";function t(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source)+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")"+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}e.exports=t,t.displayName="uri",t.aliases=["url"]},7255:function(e){"use strict";function t(e){var t;t={pattern:/[\s\S]+/,inside:null},e.languages.v=e.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":t}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),t.inside=e.languages.v,e.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),e.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),e.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:e.languages.v.generic.inside}}}})}e.exports=t,t.displayName="v",t.aliases=[]},28173:function(e){"use strict";function t(e){e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}e.exports=t,t.displayName="vala",t.aliases=[]},53813:function(e,t,n){"use strict";var r=n(46241);function a(e){e.register(r),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}e.exports=a,a.displayName="vbnet",a.aliases=[]},46891:function(e){"use strict";function t(e){var t;e.languages.velocity=e.languages.extend("markup",{}),(t={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/}).variable.inside={string:t.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:t.number,boolean:t.boolean,punctuation:t.punctuation},e.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:t}},variable:t.variable}),e.languages.velocity.tag.inside["attr-value"].inside.rest=e.languages.velocity}e.exports=t,t.displayName="velocity",t.aliases=[]},91824:function(e){"use strict";function t(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}e.exports=t,t.displayName="verilog",t.aliases=[]},9447:function(e){"use strict";function t(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}e.exports=t,t.displayName="vhdl",t.aliases=[]},53062:function(e){"use strict";function t(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}e.exports=t,t.displayName="vim",t.aliases=[]},46215:function(e){"use strict";function t(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}e.exports=t,t.displayName="visualBasic",t.aliases=[]},10784:function(e){"use strict";function t(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}e.exports=t,t.displayName="warpscript",t.aliases=[]},17684:function(e){"use strict";function t(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}e.exports=t,t.displayName="wasm",t.aliases=[]},64851:function(e){"use strict";function t(e){!function(e){var t=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,n="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+t+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,r={};for(var a in e.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+t),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:r},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+n),lookbehind:!0,inside:r},{pattern:RegExp("("+/\bcallback\s+/.source+t+/\s*=\s*/.source+")"+n),lookbehind:!0,inside:r},{pattern:RegExp(/(\btypedef\b\s*)/.source+n),lookbehind:!0,inside:r},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+t),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+t),lookbehind:!0},RegExp(t+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+t),lookbehind:!0},{pattern:RegExp(n+"(?="+/\s*(?:\.{3}\s*)?/.source+t+/\s*[(),;=]/.source+")"),inside:r}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/},e.languages["web-idl"])"class-name"!==a&&(r[a]=e.languages["web-idl"][a]);e.languages.webidl=e.languages["web-idl"]}(e)}e.exports=t,t.displayName="webIdl",t.aliases=[]},18191:function(e){"use strict";function t(e){e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}e.exports=t,t.displayName="wiki",t.aliases=[]},75242:function(e){"use strict";function t(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}e.exports=t,t.displayName="wolfram",t.aliases=["mathematica","wl","nb"]},93639:function(e){"use strict";function t(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}e.exports=t,t.displayName="wren",t.aliases=[]},97202:function(e){"use strict";function t(e){e.languages.xeora=e.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),e.languages.insertBefore("inside","punctuation",{variable:e.languages.xeora["function-inline"].inside.variable},e.languages.xeora["function-block"]),e.languages.xeoracube=e.languages.xeora}e.exports=t,t.displayName="xeora",t.aliases=["xeoracube"]},13808:function(e){"use strict";function t(e){!function(e){function t(t,n){e.languages[t]&&e.languages.insertBefore(t,"comment",{"doc-comment":n})}var n=e.languages.markup.tag,r={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:n}};t("csharp",r),t("fsharp",r),t("vbnet",{pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:n}})}(e)}e.exports=t,t.displayName="xmlDoc",t.aliases=[]},21301:function(e){"use strict";function t(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}e.exports=t,t.displayName="xojo",t.aliases=[]},20349:function(e){"use strict";function t(e){!function(e){e.languages.xquery=e.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),e.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,e.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,e.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:e.languages.xquery,alias:"language-xquery"};var t=function(e){return"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(t).join("")},n=function(r){for(var a=[],i=0;i0&&a[a.length-1].tagName===t(o.content[0].content[1])&&a.pop():"/>"===o.content[o.content.length-1].content||a.push({tagName:t(o.content[0].content[1]),openedBraces:0}):!(a.length>0)||"punctuation"!==o.type||"{"!==o.content||r[i+1]&&"punctuation"===r[i+1].type&&"{"===r[i+1].content||r[i-1]&&"plain-text"===r[i-1].type&&"{"===r[i-1].content?a.length>0&&a[a.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?a[a.length-1].openedBraces--:"comment"!==o.type&&(s=!0):a[a.length-1].openedBraces++),(s||"string"==typeof o)&&a.length>0&&0===a[a.length-1].openedBraces){var l=t(o);i0&&("string"==typeof r[i-1]||"plain-text"===r[i-1].type)&&(l=t(r[i-1])+l,r.splice(i-1,1),i--),/^\s+$/.test(l)?r[i]=l:r[i]=new e.Token("plain-text",l,null,l)}o.content&&"string"!=typeof o.content&&n(o.content)}};e.hooks.add("after-tokenize",function(e){"xquery"===e.language&&n(e.tokens)})}(e)}e.exports=t,t.displayName="xquery",t.aliases=[]},65039:function(e){"use strict";function t(e){!function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+n.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(e,t){return t=(t||"").replace(/m/g,"")+"m",RegExp(/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return r}).replace(/<>/g,function(){return e}),t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return r})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return r}).replace(/<>/g,function(){return"(?:"+a+"|"+i+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(i),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(e)}e.exports=t,t.displayName="yaml",t.aliases=["yml"]},96319:function(e){"use strict";function t(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}e.exports=t,t.displayName="yang",t.aliases=[]},31501:function(e){"use strict";function t(e){!function(e){function t(e){return function(){return e}}var n=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,r="\\b(?!"+n.source+")(?!\\d)\\w+\\b",a=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,i="(?!\\s)(?:!?\\s*(?:"+/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,t(a))+"\\s*)*"+/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,t(r))+")+";e.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,t(i)).replace(//g,t(a))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,t(i)).replace(//g,t(a))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:n,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},e.languages.zig["class-name"].forEach(function(t){null===t.inside&&(t.inside=e.languages.zig)})}(e)}e.exports=t,t.displayName="zig",t.aliases=[]},59216:function(e,t,n){/** + `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},G=e=>{let{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}};var $=(0,M.I$)("Collapse",e=>{let t=(0,F.IX)(e,{collapseHeaderPaddingSM:`${(0,D.bf)(e.paddingXS)} ${(0,D.bf)(e.paddingSM)}`,collapseHeaderPaddingLG:`${(0,D.bf)(e.padding)} ${(0,D.bf)(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[B(t),H(t),G(t),U(t),(0,P.Z)(t)]},e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}));let z=r.forwardRef((e,t)=>{let{getPrefixCls:n,direction:i,collapse:s}=r.useContext(O.E_),{prefixCls:l,className:c,rootClassName:u,style:d,bordered:p=!0,ghost:f,size:g,expandIconPosition:h="start",children:b,expandIcon:E}=e,y=(0,w.Z)(e=>{var t;return null!==(t=null!=g?g:e)&&void 0!==t?t:"middle"}),T=n("collapse",l),S=n(),[A,_,k]=$(T),I=r.useMemo(()=>"left"===h?"start":"right"===h?"end":h,[h]),x=null!=E?E:null==s?void 0:s.expandIcon,D=r.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="function"==typeof x?x(e):r.createElement(a.Z,{rotate:e.isActive?90:void 0,"aria-label":e.isActive?"expanded":"collapsed"});return(0,R.Tm)(t,()=>{var e;return{className:o()(null===(e=null==t?void 0:t.props)||void 0===e?void 0:e.className,`${T}-arrow`)}})},[x,T]),L=o()(`${T}-icon-position-${I}`,{[`${T}-borderless`]:!p,[`${T}-rtl`]:"rtl"===i,[`${T}-ghost`]:!!f,[`${T}-${y}`]:"middle"!==y},null==s?void 0:s.className,c,u,_,k),P=Object.assign(Object.assign({},(0,C.Z)(S)),{motionAppear:!1,leavedClassName:`${T}-content-hidden`}),M=r.useMemo(()=>b?(0,m.Z)(b).map((e,t)=>{var n,r;if(null===(n=e.props)||void 0===n?void 0:n.disabled){let n=null!==(r=e.key)&&void 0!==r?r:String(t),{disabled:a,collapsible:i}=e.props,o=Object.assign(Object.assign({},(0,N.Z)(e.props,["disabled"])),{key:n,collapsible:null!=i?i:a?"disabled":void 0});return(0,R.Tm)(e,o)}return e}):null,[b]);return A(r.createElement(v,Object.assign({ref:t,openMotion:P},(0,N.Z)(e,["rootClassName"]),{expandIcon:D,prefixCls:T,className:L,style:Object.assign(Object.assign({},null==s?void 0:s.style),d)}),M))});var j=Object.assign(z,{Panel:x})},85265:function(e,t,n){"use strict";n.d(t,{Z:function(){return q}});var r=n(67294),a=n(93967),i=n.n(a),o=n(1413),s=n(97685),l=n(2788),c=n(8410),u=r.createContext(null),d=r.createContext({}),p=n(4942),f=n(87462),m=n(29372),g=n(15105),h=n(64217),b=n(45987),E=n(42550),y=["prefixCls","className","containerRef"],T=function(e){var t=e.prefixCls,n=e.className,a=e.containerRef,o=(0,b.Z)(e,y),s=r.useContext(d).panel,l=(0,E.x1)(s,a);return r.createElement("div",(0,f.Z)({className:i()("".concat(t,"-content"),n),role:"dialog",ref:l},(0,h.Z)(e,{aria:!0}),{"aria-modal":"true"},o))},S=n(80334);function A(e){return"string"==typeof e&&String(Number(e))===e?((0,S.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var _={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"},k=r.forwardRef(function(e,t){var n,a,l,c=e.prefixCls,d=e.open,b=e.placement,E=e.inline,y=e.push,S=e.forceRender,k=e.autoFocus,I=e.keyboard,v=e.classNames,N=e.rootClassName,C=e.rootStyle,R=e.zIndex,O=e.className,w=e.id,x=e.style,D=e.motion,L=e.width,P=e.height,M=e.children,F=e.mask,B=e.maskClosable,U=e.maskMotion,H=e.maskClassName,G=e.maskStyle,$=e.afterOpenChange,z=e.onClose,j=e.onMouseEnter,Y=e.onMouseOver,V=e.onMouseLeave,W=e.onClick,Z=e.onKeyDown,q=e.onKeyUp,K=e.styles,X=e.drawerRender,Q=r.useRef(),J=r.useRef(),ee=r.useRef();r.useImperativeHandle(t,function(){return Q.current}),r.useEffect(function(){if(d&&k){var e;null===(e=Q.current)||void 0===e||e.focus({preventScroll:!0})}},[d]);var et=r.useState(!1),en=(0,s.Z)(et,2),er=en[0],ea=en[1],ei=r.useContext(u),eo=null!==(n=null!==(a=null===(l="boolean"==typeof y?y?{}:{distance:0}:y||{})||void 0===l?void 0:l.distance)&&void 0!==a?a:null==ei?void 0:ei.pushDistance)&&void 0!==n?n:180,es=r.useMemo(function(){return{pushDistance:eo,push:function(){ea(!0)},pull:function(){ea(!1)}}},[eo]);r.useEffect(function(){var e,t;d?null==ei||null===(e=ei.push)||void 0===e||e.call(ei):null==ei||null===(t=ei.pull)||void 0===t||t.call(ei)},[d]),r.useEffect(function(){return function(){var e;null==ei||null===(e=ei.pull)||void 0===e||e.call(ei)}},[]);var el=F&&r.createElement(m.ZP,(0,f.Z)({key:"mask"},U,{visible:d}),function(e,t){var n=e.className,a=e.style;return r.createElement("div",{className:i()("".concat(c,"-mask"),n,null==v?void 0:v.mask,H),style:(0,o.Z)((0,o.Z)((0,o.Z)({},a),G),null==K?void 0:K.mask),onClick:B&&d?z:void 0,ref:t})}),ec="function"==typeof D?D(b):D,eu={};if(er&&eo)switch(b){case"top":eu.transform="translateY(".concat(eo,"px)");break;case"bottom":eu.transform="translateY(".concat(-eo,"px)");break;case"left":eu.transform="translateX(".concat(eo,"px)");break;default:eu.transform="translateX(".concat(-eo,"px)")}"left"===b||"right"===b?eu.width=A(L):eu.height=A(P);var ed={onMouseEnter:j,onMouseOver:Y,onMouseLeave:V,onClick:W,onKeyDown:Z,onKeyUp:q},ep=r.createElement(m.ZP,(0,f.Z)({key:"panel"},ec,{visible:d,forceRender:S,onVisibleChanged:function(e){null==$||$(e)},removeOnLeave:!1,leavedClassName:"".concat(c,"-content-wrapper-hidden")}),function(t,n){var a=t.className,s=t.style,l=r.createElement(T,(0,f.Z)({id:w,containerRef:n,prefixCls:c,className:i()(O,null==v?void 0:v.content),style:(0,o.Z)((0,o.Z)({},x),null==K?void 0:K.content)},(0,h.Z)(e,{aria:!0}),ed),M);return r.createElement("div",(0,f.Z)({className:i()("".concat(c,"-content-wrapper"),null==v?void 0:v.wrapper,a),style:(0,o.Z)((0,o.Z)((0,o.Z)({},eu),s),null==K?void 0:K.wrapper)},(0,h.Z)(e,{data:!0})),X?X(l):l)}),ef=(0,o.Z)({},C);return R&&(ef.zIndex=R),r.createElement(u.Provider,{value:es},r.createElement("div",{className:i()(c,"".concat(c,"-").concat(b),N,(0,p.Z)((0,p.Z)({},"".concat(c,"-open"),d),"".concat(c,"-inline"),E)),style:ef,tabIndex:-1,ref:Q,onKeyDown:function(e){var t,n,r=e.keyCode,a=e.shiftKey;switch(r){case g.Z.TAB:r===g.Z.TAB&&(a||document.activeElement!==ee.current?a&&document.activeElement===J.current&&(null===(n=ee.current)||void 0===n||n.focus({preventScroll:!0})):null===(t=J.current)||void 0===t||t.focus({preventScroll:!0}));break;case g.Z.ESC:z&&I&&(e.stopPropagation(),z(e))}}},el,r.createElement("div",{tabIndex:0,ref:J,style:_,"aria-hidden":"true","data-sentinel":"start"}),ep,r.createElement("div",{tabIndex:0,ref:ee,style:_,"aria-hidden":"true","data-sentinel":"end"})))}),I=function(e){var t=e.open,n=e.prefixCls,a=e.placement,i=e.autoFocus,u=e.keyboard,p=e.width,f=e.mask,m=void 0===f||f,g=e.maskClosable,h=e.getContainer,b=e.forceRender,E=e.afterOpenChange,y=e.destroyOnClose,T=e.onMouseEnter,S=e.onMouseOver,A=e.onMouseLeave,_=e.onClick,I=e.onKeyDown,v=e.onKeyUp,N=e.panelRef,C=r.useState(!1),R=(0,s.Z)(C,2),O=R[0],w=R[1],x=r.useState(!1),D=(0,s.Z)(x,2),L=D[0],P=D[1];(0,c.Z)(function(){P(!0)},[]);var M=!!L&&void 0!==t&&t,F=r.useRef(),B=r.useRef();(0,c.Z)(function(){M&&(B.current=document.activeElement)},[M]);var U=r.useMemo(function(){return{panel:N}},[N]);if(!b&&!O&&!M&&y)return null;var H=(0,o.Z)((0,o.Z)({},e),{},{open:M,prefixCls:void 0===n?"rc-drawer":n,placement:void 0===a?"right":a,autoFocus:void 0===i||i,keyboard:void 0===u||u,width:void 0===p?378:p,mask:m,maskClosable:void 0===g||g,inline:!1===h,afterOpenChange:function(e){var t,n;w(e),null==E||E(e),e||!B.current||null!==(t=F.current)&&void 0!==t&&t.contains(B.current)||null===(n=B.current)||void 0===n||n.focus({preventScroll:!0})},ref:F},{onMouseEnter:T,onMouseOver:S,onMouseLeave:A,onClick:_,onKeyDown:I,onKeyUp:v});return r.createElement(d.Provider,{value:U},r.createElement(l.Z,{open:M||b||O,autoDestroy:!1,getContainer:h,autoLock:m&&(M||O)},r.createElement(k,H)))},v=n(89942),N=n(87263),C=n(33603),R=n(43945),O=n(53124),w=n(16569),x=n(69760),D=n(48054),L=e=>{var t,n;let{prefixCls:a,title:o,footer:s,extra:l,loading:c,onClose:u,headerStyle:d,bodyStyle:p,footerStyle:f,children:m,classNames:g,styles:h}=e,{drawer:b}=r.useContext(O.E_),E=r.useCallback(e=>r.createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:`${a}-close`},e),[u]),[y,T]=(0,x.Z)((0,x.w)(e),(0,x.w)(b),{closable:!0,closeIconRender:E}),S=r.useMemo(()=>{var e,t;return o||y?r.createElement("div",{style:Object.assign(Object.assign(Object.assign({},null===(e=null==b?void 0:b.styles)||void 0===e?void 0:e.header),d),null==h?void 0:h.header),className:i()(`${a}-header`,{[`${a}-header-close-only`]:y&&!o&&!l},null===(t=null==b?void 0:b.classNames)||void 0===t?void 0:t.header,null==g?void 0:g.header)},r.createElement("div",{className:`${a}-header-title`},T,o&&r.createElement("div",{className:`${a}-title`},o)),l&&r.createElement("div",{className:`${a}-extra`},l)):null},[y,T,l,d,a,o]),A=r.useMemo(()=>{var e,t;if(!s)return null;let n=`${a}-footer`;return r.createElement("div",{className:i()(n,null===(e=null==b?void 0:b.classNames)||void 0===e?void 0:e.footer,null==g?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},null===(t=null==b?void 0:b.styles)||void 0===t?void 0:t.footer),f),null==h?void 0:h.footer)},s)},[s,f,a]);return r.createElement(r.Fragment,null,S,r.createElement("div",{className:i()(`${a}-body`,null==g?void 0:g.body,null===(t=null==b?void 0:b.classNames)||void 0===t?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},null===(n=null==b?void 0:b.styles)||void 0===n?void 0:n.body),p),null==h?void 0:h.body)},c?r.createElement(D.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${a}-body-skeleton`}):m),A)},P=n(25446),M=n(14747),F=n(83559),B=n(83262);let U=e=>{let t="100%";return({left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`})[e]},H=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),G=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},H({opacity:e},{opacity:1})),$=(e,t)=>[G(.7,t),H({transform:U(e)},{transform:"none"})];var z=e=>{let{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:G(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((e,t)=>Object.assign(Object.assign({},e),{[`&-${t}`]:$(t,n)}),{})}}};let j=e=>{let{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:a,colorBgElevated:i,motionDurationSlow:o,motionDurationMid:s,paddingXS:l,padding:c,paddingLG:u,fontSizeLG:d,lineHeightLG:p,lineWidth:f,lineType:m,colorSplit:g,marginXS:h,colorIcon:b,colorIconHover:E,colorBgTextHover:y,colorBgTextActive:T,colorText:S,fontWeightStrong:A,footerPaddingBlock:_,footerPaddingInline:k,calc:I}=e,v=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:S,"&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:a,pointerEvents:"auto"},[v]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${o}`,"&-hidden":{display:"none"}},[`&-left > ${v}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${v}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${v}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${v}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,P.bf)(c)} ${(0,P.bf)(u)}`,fontSize:d,lineHeight:p,borderBottom:`${(0,P.bf)(f)} ${m} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:I(d).add(l).equal(),height:I(d).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:h,color:b,fontWeight:A,fontSize:d,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:E,backgroundColor:y,textDecoration:"none"},"&:active":{backgroundColor:T}},(0,M.Qy)(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:d,lineHeight:p},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${(0,P.bf)(_)} ${(0,P.bf)(k)}`,borderTop:`${(0,P.bf)(f)} ${m} ${g}`},"&-rtl":{direction:"rtl"}}}};var Y=(0,F.I$)("Drawer",e=>{let t=(0,B.IX)(e,{});return[j(t),z(t)]},e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding})),V=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let W={distance:180},Z=e=>{let{rootClassName:t,width:n,height:a,size:o="default",mask:s=!0,push:l=W,open:c,afterOpenChange:u,onClose:d,prefixCls:p,getContainer:f,style:m,className:g,visible:h,afterVisibleChange:b,maskStyle:E,drawerStyle:y,contentWrapperStyle:T}=e,S=V(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:A,getPrefixCls:_,direction:k,drawer:x}=r.useContext(O.E_),D=_("drawer",p),[P,M,F]=Y(D),B=void 0===f&&A?()=>A(document.body):f,U=i()({"no-mask":!s,[`${D}-rtl`]:"rtl"===k},t,M,F),H=r.useMemo(()=>null!=n?n:"large"===o?736:378,[n,o]),G=r.useMemo(()=>null!=a?a:"large"===o?736:378,[a,o]),$={motionName:(0,C.m)(D,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},z=(0,w.H)(),[j,Z]=(0,N.Cn)("Drawer",S.zIndex),{classNames:q={},styles:K={}}=S,{classNames:X={},styles:Q={}}=x||{};return P(r.createElement(v.Z,{form:!0,space:!0},r.createElement(R.Z.Provider,{value:Z},r.createElement(I,Object.assign({prefixCls:D,onClose:d,maskMotion:$,motion:e=>({motionName:(0,C.m)(D,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},S,{classNames:{mask:i()(q.mask,X.mask),content:i()(q.content,X.content),wrapper:i()(q.wrapper,X.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},K.mask),E),Q.mask),content:Object.assign(Object.assign(Object.assign({},K.content),y),Q.content),wrapper:Object.assign(Object.assign(Object.assign({},K.wrapper),T),Q.wrapper)},open:null!=c?c:h,mask:s,push:l,width:H,height:G,style:Object.assign(Object.assign({},null==x?void 0:x.style),m),className:i()(null==x?void 0:x.className,g),rootClassName:U,getContainer:B,afterOpenChange:null!=u?u:b,panelRef:z,zIndex:j}),r.createElement(L,Object.assign({prefixCls:D},S,{onClose:d}))))))};Z._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,style:n,className:a,placement:o="right"}=e,s=V(e,["prefixCls","style","className","placement"]),{getPrefixCls:l}=r.useContext(O.E_),c=l("drawer",t),[u,d,p]=Y(c),f=i()(c,`${c}-pure`,`${c}-${o}`,d,p,a);return u(r.createElement("div",{className:f,style:n},r.createElement(L,Object.assign({prefixCls:c},s))))};var q=Z},57020:function(e,t,n){"use strict";n.d(t,{Z:function(){return eS}});var r=n(67294),a=n(99611),i=n(93967),o=n.n(i),s=n(87462),l=n(1413),c=n(4942),u=n(97685),d=n(71002),p=n(45987),f=n(27678),m=n(21770),g=n(40974),h=n(64019),b=n(15105),E=n(2788),y=n(29372),T=r.createContext(null),S=function(e){var t=e.visible,n=e.maskTransitionName,a=e.getContainer,i=e.prefixCls,s=e.rootClassName,u=e.icons,d=e.countRender,p=e.showSwitch,f=e.showProgress,m=e.current,g=e.transform,h=e.count,S=e.scale,A=e.minScale,_=e.maxScale,k=e.closeIcon,I=e.onSwitchLeft,v=e.onSwitchRight,N=e.onClose,C=e.onZoomIn,R=e.onZoomOut,O=e.onRotateRight,w=e.onRotateLeft,x=e.onFlipX,D=e.onFlipY,L=e.onReset,P=e.toolbarRender,M=e.zIndex,F=e.image,B=(0,r.useContext)(T),U=u.rotateLeft,H=u.rotateRight,G=u.zoomIn,$=u.zoomOut,z=u.close,j=u.left,Y=u.right,V=u.flipX,W=u.flipY,Z="".concat(i,"-operations-operation");r.useEffect(function(){var e=function(e){e.keyCode===b.Z.ESC&&N()};return t&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[t]);var q=[{icon:W,onClick:D,type:"flipY"},{icon:V,onClick:x,type:"flipX"},{icon:U,onClick:w,type:"rotateLeft"},{icon:H,onClick:O,type:"rotateRight"},{icon:$,onClick:R,type:"zoomOut",disabled:S<=A},{icon:G,onClick:C,type:"zoomIn",disabled:S===_}].map(function(e){var t,n=e.icon,a=e.onClick,s=e.type,l=e.disabled;return r.createElement("div",{className:o()(Z,(t={},(0,c.Z)(t,"".concat(i,"-operations-operation-").concat(s),!0),(0,c.Z)(t,"".concat(i,"-operations-operation-disabled"),!!l),t)),onClick:a,key:s},n)}),K=r.createElement("div",{className:"".concat(i,"-operations")},q);return r.createElement(y.ZP,{visible:t,motionName:n},function(e){var t=e.className,n=e.style;return r.createElement(E.Z,{open:!0,getContainer:null!=a?a:document.body},r.createElement("div",{className:o()("".concat(i,"-operations-wrapper"),t,s),style:(0,l.Z)((0,l.Z)({},n),{},{zIndex:M})},null===k?null:r.createElement("button",{className:"".concat(i,"-close"),onClick:N},k||z),p&&r.createElement(r.Fragment,null,r.createElement("div",{className:o()("".concat(i,"-switch-left"),(0,c.Z)({},"".concat(i,"-switch-left-disabled"),0===m)),onClick:I},j),r.createElement("div",{className:o()("".concat(i,"-switch-right"),(0,c.Z)({},"".concat(i,"-switch-right-disabled"),m===h-1)),onClick:v},Y)),r.createElement("div",{className:"".concat(i,"-footer")},f&&r.createElement("div",{className:"".concat(i,"-progress")},d?d(m+1,h):"".concat(m+1," / ").concat(h)),P?P(K,(0,l.Z)((0,l.Z)({icons:{flipYIcon:q[0],flipXIcon:q[1],rotateLeftIcon:q[2],rotateRightIcon:q[3],zoomOutIcon:q[4],zoomInIcon:q[5]},actions:{onFlipY:D,onFlipX:x,onRotateLeft:w,onRotateRight:O,onZoomOut:R,onZoomIn:C,onReset:L,onClose:N},transform:g},B?{current:m,total:h}:{}),{},{image:F})):K)))})},A=n(91881),_=n(75164),k={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1},I=n(80334);function v(e,t,n,r){var a=t+n,i=(n-r)/2;if(n>r){if(t>0)return(0,c.Z)({},e,i);if(t<0&&ar)return(0,c.Z)({},e,t<0?i:-i);return{}}function N(e,t,n,r){var a=(0,f.g1)(),i=a.width,o=a.height,s=null;return e<=i&&t<=o?s={x:0,y:0}:(e>i||t>o)&&(s=(0,l.Z)((0,l.Z)({},v("x",n,e,i)),v("y",r,t,o))),s}function C(e){var t=e.src,n=e.isCustomPlaceholder,a=e.fallback,i=(0,r.useState)(n?"loading":"normal"),o=(0,u.Z)(i,2),s=o[0],l=o[1],c=(0,r.useRef)(!1),d="error"===s;(0,r.useEffect)(function(){var e=!0;return new Promise(function(e){var n=document.createElement("img");n.onerror=function(){return e(!1)},n.onload=function(){return e(!0)},n.src=t}).then(function(t){!t&&e&&l("error")}),function(){e=!1}},[t]),(0,r.useEffect)(function(){n&&!c.current?l("loading"):d&&l("normal")},[t]);var p=function(){l("normal")};return[function(e){c.current=!1,"loading"===s&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(c.current=!0,p())},d&&a?{src:a}:{onLoad:p,src:t},s]}function R(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}var O=["fallback","src","imgRef"],w=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],x=function(e){var t=e.fallback,n=e.src,a=e.imgRef,i=(0,p.Z)(e,O),o=C({src:n,fallback:t}),l=(0,u.Z)(o,2),c=l[0],d=l[1];return r.createElement("img",(0,s.Z)({ref:function(e){a.current=e,c(e)}},i,d))},D=function(e){var t,n,a,i,d,m,E,y,v,C,O,D,L,P,M,F,B,U,H,G,$,z,j,Y,V,W,Z,q,K=e.prefixCls,X=e.src,Q=e.alt,J=e.imageInfo,ee=e.fallback,et=e.movable,en=void 0===et||et,er=e.onClose,ea=e.visible,ei=e.icons,eo=e.rootClassName,es=e.closeIcon,el=e.getContainer,ec=e.current,eu=void 0===ec?0:ec,ed=e.count,ep=void 0===ed?1:ed,ef=e.countRender,em=e.scaleStep,eg=void 0===em?.5:em,eh=e.minScale,eb=void 0===eh?1:eh,eE=e.maxScale,ey=void 0===eE?50:eE,eT=e.transitionName,eS=e.maskTransitionName,eA=void 0===eS?"fade":eS,e_=e.imageRender,ek=e.imgCommonProps,eI=e.toolbarRender,ev=e.onTransform,eN=e.onChange,eC=(0,p.Z)(e,w),eR=(0,r.useRef)(),eO=(0,r.useContext)(T),ew=eO&&ep>1,ex=eO&&ep>=1,eD=(0,r.useState)(!0),eL=(0,u.Z)(eD,2),eP=eL[0],eM=eL[1],eF=(t=(0,r.useRef)(null),n=(0,r.useRef)([]),a=(0,r.useState)(k),d=(i=(0,u.Z)(a,2))[0],m=i[1],E=function(e,r){null===t.current&&(n.current=[],t.current=(0,_.Z)(function(){m(function(e){var a=e;return n.current.forEach(function(e){a=(0,l.Z)((0,l.Z)({},a),e)}),t.current=null,null==ev||ev({transform:a,action:r}),a})})),n.current.push((0,l.Z)((0,l.Z)({},d),e))},{transform:d,resetTransform:function(e){m(k),(0,A.Z)(k,d)||null==ev||ev({transform:k,action:e})},updateTransform:E,dispatchZoomChange:function(e,t,n,r,a){var i=eR.current,o=i.width,s=i.height,l=i.offsetWidth,c=i.offsetHeight,u=i.offsetLeft,p=i.offsetTop,m=e,g=d.scale*e;g>ey?(g=ey,m=ey/d.scale):g0&&(t=1/t),eG(t,"wheel",e.clientX,e.clientY)}}}),ez=e$.isMoving,ej=e$.onMouseDown,eY=e$.onWheel,eV=(H=eB.rotate,G=eB.scale,$=eB.x,z=eB.y,j=(0,r.useState)(!1),V=(Y=(0,u.Z)(j,2))[0],W=Y[1],Z=(0,r.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),q=function(e){Z.current=(0,l.Z)((0,l.Z)({},Z.current),e)},(0,r.useEffect)(function(){var e;return ea&&en&&(e=(0,h.Z)(window,"touchmove",function(e){return e.preventDefault()},{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}},[ea,en]),{isTouching:V,onTouchStart:function(e){if(en){e.stopPropagation(),W(!0);var t=e.touches,n=void 0===t?[]:t;n.length>1?q({point1:{x:n[0].clientX,y:n[0].clientY},point2:{x:n[1].clientX,y:n[1].clientY},eventType:"touchZoom"}):q({point1:{x:n[0].clientX-$,y:n[0].clientY-z},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,r=Z.current,a=r.point1,i=r.point2,o=r.eventType;if(n.length>1&&"touchZoom"===o){var s={x:n[0].clientX,y:n[0].clientY},l={x:n[1].clientX,y:n[1].clientY},c=function(e,t,n,r){var a=R(e,n),i=R(t,r);if(0===a&&0===i)return[e.x,e.y];var o=a/(a+i);return[e.x+o*(t.x-e.x),e.y+o*(t.y-e.y)]}(a,i,s,l),d=(0,u.Z)(c,2),p=d[0],f=d[1];eG(R(s,l)/R(a,i),"touchZoom",p,f,!0),q({point1:s,point2:l,eventType:"touchZoom"})}else"move"===o&&(eH({x:n[0].clientX-a.x,y:n[0].clientY-a.y},"move"),q({eventType:"move"}))},onTouchEnd:function(){if(ea){if(V&&W(!1),q({eventType:"none"}),eb>G)return eH({x:0,y:0,scale:eb},"touchZoom");var e=eR.current.offsetWidth*G,t=eR.current.offsetHeight*G,n=eR.current.getBoundingClientRect(),r=n.left,a=n.top,i=H%180!=0,o=N(i?t:e,i?e:t,r,a);o&&eH((0,l.Z)({},o),"dragRebound")}}}),eW=eV.isTouching,eZ=eV.onTouchStart,eq=eV.onTouchMove,eK=eV.onTouchEnd,eX=eB.rotate,eQ=eB.scale,eJ=o()((0,c.Z)({},"".concat(K,"-moving"),ez));(0,r.useEffect)(function(){eP||eM(!0)},[eP]);var e0=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),eu>0&&(eM(!1),eU("prev"),null==eN||eN(eu-1,eu))},e1=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),eu({position:e||"absolute",inset:0}),eu=e=>{let{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:a,prefixCls:i,colorTextLightSolid:o}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:o,background:new en.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},ea.vS),{padding:`0 ${(0,et.bf)(r)}`,[t]:{marginInlineEnd:a,svg:{verticalAlign:"baseline"}}})}},ed=e=>{let{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:a,margin:i,paddingLG:o,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:d}=e,p=new en.C(n).setAlpha(.1),f=p.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:a,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:a,right:{_skip_check_:!0,value:a},display:"flex",color:d,backgroundColor:p.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:f.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,et.bf)(o)}`,backgroundColor:p.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},ep=e=>{let{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:a,zIndexPopup:i,motionDurationSlow:o}=e,s=new en.C(t).setAlpha(.1),l=s.clone().setAlpha(.2);return{[`${a}-switch-left, ${a}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${o}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${a}-switch-left`]:{insetInlineStart:e.marginSM},[`${a}-switch-right`]:{insetInlineEnd:e.marginSM}}},ef=e=>{let{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:a}=e;return[{[`${a}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},ec()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},ec()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${a}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${a}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[ed(e),ep(e)]}]},em=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},eu(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},ec())}}},eg=e=>{let{previewCls:t}=e;return{[`${t}-root`]:(0,ei._y)(e,"zoom"),"&":(0,eo.J$)(e,!0)}};var eh=(0,es.I$)("Image",e=>{let t=`${e.componentCls}-preview`,n=(0,el.IX)(e,{previewCls:t,modalMaskBg:new en.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[em(n),ef(n),(0,er.QA)((0,el.IX)(n,{componentCls:t})),eg(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new en.C(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new en.C(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new en.C(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon})),eb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let eE={rotateLeft:r.createElement(K.Z,null),rotateRight:r.createElement(X.Z,null),zoomIn:r.createElement(J.Z,null),zoomOut:r.createElement(ee.Z,null),close:r.createElement(W.Z,null),left:r.createElement(Z.Z,null),right:r.createElement(q.Z,null),flipX:r.createElement(Q.Z,null),flipY:r.createElement(Q.Z,{rotate:90})};var ey=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let eT=e=>{var t;let{prefixCls:n,preview:i,className:s,rootClassName:l,style:c}=e,u=ey(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:d,locale:p=V.Z,getPopupContainer:f,image:m}=r.useContext(j.E_),g=d("image",n),h=d(),b=p.Image||V.Z.Image,E=(0,Y.Z)(g),[y,T,S]=eh(g,E),A=o()(l,T,S,E),_=o()(s,T,null==m?void 0:m.className),[k]=(0,$.Cn)("ImagePreview","object"==typeof i?i.zIndex:void 0),I=r.useMemo(()=>{var e;if(!1===i)return i;let t="object"==typeof i?i:{},{getContainer:n,closeIcon:o}=t,s=ey(t,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:r.createElement("div",{className:`${g}-mask-info`},r.createElement(a.Z,null),null==b?void 0:b.preview),icons:eE},s),{getContainer:null!=n?n:f,transitionName:(0,z.m)(h,"zoom",t.transitionName),maskTransitionName:(0,z.m)(h,"fade",t.maskTransitionName),zIndex:k,closeIcon:null!=o?o:null===(e=null==m?void 0:m.preview)||void 0===e?void 0:e.closeIcon})},[i,b,null===(t=null==m?void 0:m.preview)||void 0===t?void 0:t.closeIcon]),v=Object.assign(Object.assign({},null==m?void 0:m.style),c);return y(r.createElement(G,Object.assign({prefixCls:g,preview:I,rootClassName:A,className:_,style:v},u)))};eT.PreviewGroup=e=>{var{previewPrefixCls:t,preview:n}=e,a=eb(e,["previewPrefixCls","preview"]);let{getPrefixCls:i}=r.useContext(j.E_),s=i("image",t),l=`${s}-preview`,c=i(),u=(0,Y.Z)(s),[d,p,f]=eh(s,u),[m]=(0,$.Cn)("ImagePreview","object"==typeof n?n.zIndex:void 0),g=r.useMemo(()=>{var e;if(!1===n)return n;let t="object"==typeof n?n:{},r=o()(p,f,u,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:(0,z.m)(c,"zoom",t.transitionName),maskTransitionName:(0,z.m)(c,"fade",t.maskTransitionName),rootClassName:r,zIndex:m})},[n]);return d(r.createElement(G.PreviewGroup,Object.assign({preview:g,previewPrefixCls:l,icons:eE},a)))};var eS=eT},94470:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,a=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!a&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(a)return a(e,n).value}return e[n]};e.exports=function e(){var t,n,r,a,c,u,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p4&&m.slice(0,4)===o&&s.test(t)&&("-"===t.charAt(4)?g=o+(n=t.slice(5).replace(l,d)).charAt(0).toUpperCase()+n.slice(1):(f=(p=t).slice(4),t=l.test(f)?p:("-"!==(f=f.replace(c,u)).charAt(0)&&(f="-"+f),o+f)),h=a),new h(g,t))};var s=/^data[-\w.:]+$/i,l=/-[a-z]/g,c=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},48055:function(e,t,n){"use strict";var r=n(26230),a=n(13970),i=n(10629),o=n(647),s=n(91305),l=n(22537);e.exports=r([i,a,o,s,l])},91305:function(e,t,n){"use strict";var r=n(61422),a=n(47589),i=r.booleanish,o=r.number,s=r.spaceSeparated;e.exports=a({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:i,ariaAutoComplete:null,ariaBusy:i,ariaChecked:i,ariaColCount:o,ariaColIndex:o,ariaColSpan:o,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:i,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:i,ariaFlowTo:s,ariaGrabbed:i,ariaHasPopup:null,ariaHidden:i,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:o,ariaLive:null,ariaModal:i,ariaMultiLine:i,ariaMultiSelectable:i,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:o,ariaPressed:i,ariaReadOnly:i,ariaRelevant:null,ariaRequired:i,ariaRoleDescription:s,ariaRowCount:o,ariaRowIndex:o,ariaRowSpan:o,ariaSelected:i,ariaSetSize:o,ariaSort:null,ariaValueMax:o,ariaValueMin:o,ariaValueNow:o,ariaValueText:null,role:null}})},22537:function(e,t,n){"use strict";var r=n(61422),a=n(47589),i=n(19348),o=r.boolean,s=r.overloadedBoolean,l=r.booleanish,c=r.number,u=r.spaceSeparated,d=r.commaSeparated;e.exports=a({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:i,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:o,allowPaymentRequest:o,allowUserMedia:o,alt:null,as:null,async:o,autoCapitalize:null,autoComplete:u,autoFocus:o,autoPlay:o,capture:o,charSet:null,checked:o,cite:null,className:u,cols:c,colSpan:null,content:null,contentEditable:l,controls:o,controlsList:u,coords:c|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:o,defer:o,dir:null,dirName:null,disabled:o,download:s,draggable:l,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:o,formTarget:null,headers:u,height:c,hidden:o,high:c,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:o,itemId:null,itemProp:u,itemRef:u,itemScope:o,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:o,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:o,muted:o,name:null,nonce:null,noModule:o,noValidate:o,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:o,optimum:c,pattern:null,ping:u,placeholder:null,playsInline:o,poster:null,preload:null,readOnly:o,referrerPolicy:null,rel:u,required:o,reversed:o,rows:c,rowSpan:c,sandbox:u,scope:null,scoped:o,seamless:o,selected:o,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:l,src:null,srcDoc:null,srcLang:null,srcSet:d,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:o,useMap:null,value:l,width:c,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:o,declare:o,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:o,noHref:o,noShade:o,noWrap:o,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:l,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:o,disableRemotePlayback:o,prefix:null,property:null,results:c,security:null,unselectable:null}})},19348:function(e,t,n){"use strict";var r=n(21098);e.exports=function(e,t){return r(e,t.toLowerCase())}},21098:function(e){"use strict";e.exports=function(e,t){return t in e?e[t]:t}},47589:function(e,t,n){"use strict";var r=n(64977),a=n(16038),i=n(78444);e.exports=function(e){var t,n,o=e.space,s=e.mustUseProperty||[],l=e.attributes||{},c=e.properties,u=e.transform,d={},p={};for(t in c)n=new i(t,u(l,t),c[t],o),-1!==s.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,p[r(t)]=t,p[r(n.attribute)]=t;return new a(d,p,o)}},78444:function(e,t,n){"use strict";var r=n(40313),a=n(61422);e.exports=s,s.prototype=new r,s.prototype.defined=!0;var i=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],o=i.length;function s(e,t,n,s){var l,c,u,d=-1;for(s&&(this.space=s),r.call(this,e,t);++d=97&&t<=122||t>=65&&t<=90}},7961:function(e,t,n){"use strict";var r=n(46260),a=n(46195);e.exports=function(e){return r(e)||a(e)}},46195:function(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},79480:function(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},87155:function(e,t,n){"use strict";n.d(t,{r:function(){return iB}});var r,a,i,o,s,l,c,u,d,p,f,m,g,h,b,E,y,T,S,A,_,k,I,v,N,C,R,O,w,x,D,L,P,M,F,B,U,H,G,$,z,j,Y,V,W=n(74902),Z=n(1413),q=n(87462),K=n(97685),X=n(45987),Q=n(50888),J=n(96486),ee=n(67294),et=function(){return(et=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1&&!e.return)switch(e.type){case eu:e.return=function e(t,n,r){var a;switch(a=n,45^eE(t,0)?(((a<<2^eE(t,0))<<2^eE(t,1))<<2^eE(t,2))<<2^eE(t,3):0){case 5103:return es+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return es+t+t;case 4789:return eo+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return es+t+eo+t+ei+t+t;case 5936:switch(eE(t,n+11)){case 114:return es+t+ei+eh(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return es+t+ei+eh(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return es+t+ei+eh(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return es+t+ei+t+t;case 6165:return es+t+ei+"flex-"+t+t;case 5187:return es+t+eh(t,/(\w+).+(:[^]+)/,es+"box-$1$2"+ei+"flex-$1$2")+t;case 5443:return es+t+ei+"flex-item-"+eh(t,/flex-|-self/g,"")+(eg(t,/flex-|baseline/)?"":ei+"grid-row-"+eh(t,/flex-|-self/g,""))+t;case 4675:return es+t+ei+"flex-line-pack"+eh(t,/align-content|flex-|-self/g,"")+t;case 5548:return es+t+ei+eh(t,"shrink","negative")+t;case 5292:return es+t+ei+eh(t,"basis","preferred-size")+t;case 6060:return es+"box-"+eh(t,"-grow","")+es+t+ei+eh(t,"grow","positive")+t;case 4554:return es+eh(t,/([^-])(transform)/g,"$1"+es+"$2")+t;case 6187:return eh(eh(eh(t,/(zoom-|grab)/,es+"$1"),/(image-set)/,es+"$1"),t,"")+t;case 5495:case 3959:return eh(t,/(image-set\([^]*)/,es+"$1$`$1");case 4968:return eh(eh(t,/(.+:)(flex-)?(.*)/,es+"box-pack:$3"+ei+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+es+t+t;case 4200:if(!eg(t,/flex-|baseline/))return ei+"grid-column-align"+ey(t,n)+t;break;case 2592:case 3360:return ei+eh(t,"template-","")+t;case 4384:case 3616:if(r&&r.some(function(e,t){return n=t,eg(e.props,/grid-\w+-end/)}))return~eb(t+(r=r[n].value),"span",0)?t:ei+eh(t,"-start","")+t+ei+"grid-row-span:"+(~eb(r,"span",0)?eg(r,/\d+/):+eg(r,/\d+/)-+eg(t,/\d+/))+";";return ei+eh(t,"-start","")+t;case 4896:case 4128:return r&&r.some(function(e){return eg(e.props,/grid-\w+-start/)})?t:ei+eh(eh(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return eh(t,/(.+)-inline(.+)/,es+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(eT(t)-1-n>6)switch(eE(t,n+1)){case 109:if(45!==eE(t,n+4))break;case 102:return eh(t,/(.+:)(.+)-([^]+)/,"$1"+es+"$2-$3$1"+eo+(108==eE(t,n+3)?"$3":"$2-$3"))+t;case 115:return~eb(t,"stretch",0)?e(eh(t,"stretch","fill-available"),n,r)+t:t}break;case 5152:case 5920:return eh(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(e,n,r,a,i,o,s){return ei+n+":"+r+s+(a?ei+n+"-span:"+(i?o:+o-+r)+s:"")+t});case 4949:if(121===eE(t,n+6))return eh(t,":",":"+es)+t;break;case 6444:switch(eE(t,45===eE(t,14)?18:11)){case 120:return eh(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+es+(45===eE(t,14)?"inline-":"")+"box$3$1"+es+"$2$3$1"+ei+"$2box$3")+t;case 100:return eh(t,":",":"+ei)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return eh(t,"scroll-","scroll-snap-")+t}return t}(e.value,e.length,n);return;case ed:return eM([eO(e,{value:eh(e.value,"@","@"+es)})],r);case ec:if(e.length)return(n=e.props).map(function(t){switch(eg(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ew(eO(e,{props:[eh(t,/:(read-\w+)/,":"+eo+"$1")]})),ew(eO(e,{props:[t]})),em(e,{props:eA(n,r)});break;case"::placeholder":ew(eO(e,{props:[eh(t,/:(plac\w+)/,":"+es+"input-$1")]})),ew(eO(e,{props:[eh(t,/:(plac\w+)/,":"+eo+"$1")]})),ew(eO(e,{props:[eh(t,/:(plac\w+)/,ei+"input-$1")]})),ew(eO(e,{props:[t]})),em(e,{props:eA(n,r)})}return""}).join("")}}function eU(e,t,n,r,a,i,o,s,l,c,u,d){for(var p=a-1,f=0===a?i:[""],m=f.length,g=0,h=0,b=0;g0?f[E]+" "+y:eh(y,/&\f/g,f[E])).trim())&&(l[b++]=T);return eR(e,t,n,0===a?ec:s,l,c,u,d)}function eH(e,t,n,r,a){return eR(e,t,n,eu,ey(e,0,r),ey(e,r+1,-1),r,a)}var eG=n(94371),e$=n(83454),ez=void 0!==e$&&void 0!==e$.env&&(e$.env.REACT_APP_SC_ATTR||e$.env.SC_ATTR)||"data-styled",ej="active",eY="data-styled-version",eV="6.1.12",eW="/*!sc*/\n",eZ="undefined"!=typeof window&&"HTMLElement"in window,eq=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==e$&&void 0!==e$.env&&void 0!==e$.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==e$.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==e$.env.REACT_APP_SC_DISABLE_SPEEDY&&e$.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==e$&&void 0!==e$.env&&void 0!==e$.env.SC_DISABLE_SPEEDY&&""!==e$.env.SC_DISABLE_SPEEDY&&"false"!==e$.env.SC_DISABLE_SPEEDY&&e$.env.SC_DISABLE_SPEEDY),eK=Object.freeze([]),eX=Object.freeze({}),eQ=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),eJ=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,e0=/(^-|-$)/g;function e1(e){return e.replace(eJ,"-").replace(e0,"")}var e2=/(a)(d)/gi,e3=function(e){return String.fromCharCode(e+(e>25?39:97))};function e4(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=e3(t%52)+n;return(e3(t%52)+n).replace(e2,"$1-$2")}var e5,e6=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},e9=function(e){return e6(5381,e)};function e8(e){return"string"==typeof e}var e7="function"==typeof Symbol&&Symbol.for,te=e7?Symbol.for("react.memo"):60115,tt=e7?Symbol.for("react.forward_ref"):60112,tn={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},tr={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ta={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ti=((e5={})[tt]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},e5[te]=ta,e5);function to(e){return("type"in e&&e.type.$$typeof)===te?ta:"$$typeof"in e?ti[e.$$typeof]:tn}var ts=Object.defineProperty,tl=Object.getOwnPropertyNames,tc=Object.getOwnPropertySymbols,tu=Object.getOwnPropertyDescriptor,td=Object.getPrototypeOf,tp=Object.prototype;function tf(e){return"function"==typeof e}function tm(e){return"object"==typeof e&&"styledComponentId"in e}function tg(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function th(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r0?" Args: ".concat(t.join(", ")):""))}var tT=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,a=r;e>=a;)if((a<<=1)<0)throw ty(16,"".concat(e));this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var i=r;i=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),a=r+n,i=r;i=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e0&&(l+="".concat(e,","))}),r+="".concat(o).concat(s,'{content:"').concat(l,'"}').concat(eW)}}})(a);return r}(r)})}return e.registerId=function(e){return tk(e)},e.prototype.rehydrate=function(){!this.server&&eZ&&tO(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(et(et({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){var e,t,n,r;return this.tag||(this.tag=(n=(t=this.options).useCSSOMInjection,r=t.target,e=t.isServer?new tL(r):n?new tx(r):new tD(r),new tT(e)))},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(tk(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(tk(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(tk(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),tB=/&/g,tU=/^\s*\/\/.*$/gm;function tH(e){var t,n,r,a=void 0===e?eX:e,i=a.options,o=void 0===i?eX:i,s=a.plugins,l=void 0===s?eK:s,c=function(e,r,a){return a.startsWith(n)&&a.endsWith(n)&&a.replaceAll(n,"").length>0?".".concat(t):e},u=l.slice();u.push(function(e){e.type===ec&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(tB,n).replace(r,c))}),o.prefix&&u.push(eB),u.push(eF);var d=function(e,a,i,s){void 0===a&&(a=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,n=a,r=RegExp("\\".concat(n,"\\b"),"g");var l,c,d,p,f,m=e.replace(tU,""),g=(f=function e(t,n,r,a,i,o,s,l,c){for(var u,d=0,p=0,f=s,m=0,g=0,h=0,b=1,E=1,y=1,T=0,S="",A=i,_=o,k=a,I=S;E;)switch(h=T,T=ex()){case 40:if(108!=h&&58==eE(I,f-1)){-1!=eb(I+=eh(eP(T),"&","&\f"),"&\f",ep(d?l[d-1]:0))&&(y=-1);break}case 34:case 39:case 91:I+=eP(T);break;case 9:case 10:case 13:case 32:I+=function(e){for(;eN=eD();)if(eN<33)ex();else break;return eL(e)>2||eL(eN)>3?"":" "}(h);break;case 92:I+=function(e,t){for(var n;--t&&ex()&&!(eN<48)&&!(eN>102)&&(!(eN>57)||!(eN<65))&&(!(eN>70)||!(eN<97)););return n=ev+(t<6&&32==eD()&&32==ex()),ey(eC,e,n)}(ev-1,7);continue;case 47:switch(eD()){case 42:case 47:eS(eR(u=function(e,t){for(;ex();)if(e+eN===57)break;else if(e+eN===84&&47===eD())break;return"/*"+ey(eC,t,ev-1)+"*"+ef(47===e?e:ex())}(ex(),ev),n,r,el,ef(eN),ey(u,2,-2),0,c),c);break;default:I+="/"}break;case 123*b:l[d++]=eT(I)*y;case 125*b:case 59:case 0:switch(T){case 0:case 125:E=0;case 59+p:-1==y&&(I=eh(I,/\f/g,"")),g>0&&eT(I)-f&&eS(g>32?eH(I+";",a,r,f-1,c):eH(eh(I," ","")+";",a,r,f-2,c),c);break;case 59:I+=";";default:if(eS(k=eU(I,n,r,d,p,i,l,S,A=[],_=[],f,o),o),123===T){if(0===p)e(I,n,k,k,A,o,f,l,_);else switch(99===m&&110===eE(I,3)?100:m){case 100:case 108:case 109:case 115:e(t,k,k,a&&eS(eU(t,k,k,0,0,i,l,S,i,A=[],f,_),_),i,_,f,l,a?A:_);break;default:e(I,k,k,k,[""],_,0,l,_)}}}d=p=g=0,b=y=1,S=I="",f=s;break;case 58:f=1+eT(I),g=h;default:if(b<1){if(123==T)--b;else if(125==T&&0==b++&&125==(eN=ev>0?eE(eC,--ev):0,ek--,10===eN&&(ek=1,e_--),eN))continue}switch(I+=ef(T),T*b){case 38:y=p>0?1:(I+="\f",-1);break;case 44:l[d++]=(eT(I)-1)*y,y=1;break;case 64:45===eD()&&(I+=eP(ex())),m=eD(),p=f=eT(S=I+=function(e){for(;!eL(eD());)ex();return ey(eC,e,ev)}(ev)),T++;break;case 45:45===h&&2==eT(I)&&(b=0)}}return o}("",null,null,null,[""],(p=d=i||a?"".concat(i," ").concat(a," { ").concat(m," }"):m,e_=ek=1,eI=eT(eC=p),ev=0,d=[]),0,[0],d),eC="",f);o.namespace&&(g=function e(t,n){return t.map(function(t){return"rule"===t.type&&(t.value="".concat(n," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(n," ")),t.props=t.props.map(function(e){return"".concat(n," ").concat(e)})),Array.isArray(t.children)&&"@keyframes"!==t.type&&(t.children=e(t.children,n)),t})}(g,o.namespace));var h=[];return eM(g,(c=(l=u.concat(function(e){var t;!e.root&&(e=e.return)&&(t=e,h.push(t))})).length,function(e,t,n,r){for(var a="",i=0;i="A"&&r<="Z"?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var tq=function(e){return null==e||!1===e||""===e},tK=function(e){var t=[];for(var n in e){var r=e[n];e.hasOwnProperty(n)&&!tq(r)&&(Array.isArray(r)&&r.isCss||tf(r)?t.push("".concat(tZ(n),":"),r,";"):tb(r)?t.push.apply(t,en(en(["".concat(n," {")],tK(r),!1),["}"],!1)):t.push("".concat(tZ(n),": ").concat(null==r||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||n in eG.Z||n.startsWith("--")?String(r).trim():"".concat(r,"px"),";")))}return t};function tX(e,t,n,r){return tq(e)?[]:tm(e)?[".".concat(e.styledComponentId)]:tf(e)?!tf(e)||e.prototype&&e.prototype.isReactComponent||!t?[e]:tX(e(t),t,n,r):e instanceof tW?n?(e.inject(n,r),[e.getName(r)]):[e]:tb(e)?tK(e):Array.isArray(e)?Array.prototype.concat.apply(eK,e.map(function(e){return tX(e,t,n,r)})):[e.toString()]}function tQ(e){for(var t=0;t>>0);if(!t.hasNameForId(this.componentId,i)){var o=n(a,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,o)}r=tg(r,i),this.staticRulesId=i}}else{for(var s=e6(this.baseHash,n.hash),l="",c=0;c>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(l,".".concat(p),void 0,this.componentId)),r=tg(r,p)}}return r},e}(),t1=ee.createContext(void 0);t1.Consumer;var t2={};function t3(e,t,n){var r,a,i,o,s=tm(e),l=!e8(e),c=t.attrs,u=void 0===c?eK:c,d=t.componentId,p=void 0===d?(r=t.displayName,a=t.parentComponentId,t2[i="string"!=typeof r?"sc":e1(r)]=(t2[i]||0)+1,o="".concat(i,"-").concat(e4(e9(eV+i+t2[i])>>>0)),a?"".concat(a,"-").concat(o):o):d,f=t.displayName,m=void 0===f?e8(e)?"styled.".concat(e):"Styled(".concat(e.displayName||e.name||"Component",")"):f,g=t.displayName&&t.componentId?"".concat(e1(t.displayName),"-").concat(t.componentId):t.componentId||p,h=s&&e.attrs?e.attrs.concat(u).filter(Boolean):u,b=t.shouldForwardProp;if(s&&e.shouldForwardProp){var E=e.shouldForwardProp;if(t.shouldForwardProp){var y=t.shouldForwardProp;b=function(e,t){return E(e,t)&&y(e,t)}}else b=E}var T=new t0(n,g,s?e.componentStyle:void 0);function S(e,t){return function(e,t,n){var r,a,i=e.attrs,o=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,c=e.styledComponentId,u=e.target,d=ee.useContext(t1),p=tY(),f=e.shouldForwardProp||p.shouldForwardProp,m=(void 0===(r=s)&&(r=eX),t.theme!==r.theme&&t.theme||d||r.theme||eX),g=function(e,t,n){for(var r,a=et(et({},t),{className:void 0,theme:n}),i=0;i2&&tF.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}(),function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=n.nc,a=th([r&&'nonce="'.concat(r,'"'),"".concat(ez,'="true"'),"".concat(eY,'="').concat(eV,'"')].filter(Boolean)," ");return"")},this.getStyleTags=function(){if(e.sealed)throw ty(2);return e._emitSheetCSS()},this.getStyleElement=function(){if(e.sealed)throw ty(2);var t,r=e.instance.toString();if(!r)return[];var a=((t={})[ez]="",t[eY]=eV,t.dangerouslySetInnerHTML={__html:r},t),i=n.nc;return i&&(a.nonce=i),[ee.createElement("style",et({},a,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new tF({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw ty(2);return ee.createElement(tV,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw ty(3)}}();var t8=n(4942),t7=n(73935),ne=n.t(t7,2),nt=function(){return(nt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=18&&(Y=nn.createRoot)}catch(e){}function ni(e){var t=nn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"==typeof t&&(t.usingClientEntryPoint=e)}var no="__rc_react_root__",ns=new Map;"undefined"!=typeof document&&ns.set("tooltip",document.createElement("div"));var nl=function(e,t){void 0===t&&(t=!1);var n=null;if(t)n=ns.get("tooltip");else if(n=document.createElement("div"),null==e?void 0:e.key){var r=ns.get(e.key);r?n=r:ns.set(e.key,n)}return!function(e,t){if(Y){var n;ni(!0),n=t[no]||Y(t),ni(!1),n.render(e),t[no]=n;return}na(e,t)}(e,n),n},nc=function(e){if("undefined"==typeof document)return"loading";var t=e.attachShadow({mode:"open"}),n=document.createElement("div"),r=document.createElement("style");r.innerHTML=".loading {\n display: inline-block;\n position: relative;\n width: 80px;\n height: 80px;\n }\n .loading div {\n position: absolute;\n top: 33px;\n width: 13px;\n height: 13px;\n border-radius: 50%;\n background: #ccc;\n animation-timing-function: cubic-bezier(0, 1, 1, 0);\n }\n .loading div:nth-child(1) {\n left: 8px;\n animation: loading1 0.6s infinite;\n }\n .loading div:nth-child(2) {\n left: 8px;\n animation: loading2 0.6s infinite;\n }\n .loading div:nth-child(3) {\n left: 32px;\n animation: loading2 0.6s infinite;\n }\n .loading div:nth-child(4) {\n left: 56px;\n animation: loading3 0.6s infinite;\n }\n @keyframes loading1 {\n 0% {\n transform: scale(0);\n }\n 100% {\n transform: scale(1);\n }\n }\n @keyframes loading3 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0);\n }\n }\n @keyframes loading2 {\n 0% {\n transform: translate(0, 0);\n }\n 100% {\n transform: translate(24px, 0);\n }\n }\n ",n.classList.add("loading"),n.innerHTML="
    ",t.appendChild(r),t.appendChild(n)},nu=function(e){var t=e.loadingTemplate,n=e.theme,r=ee.useRef(null);return ee.useEffect(function(){!t&&r.current&&nc(r.current)},[]),ee.createElement("div",{className:"charts-loading-container",style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:"dark"===(void 0===n?"light":n)?"rgb(20, 20, 20)":"rgb(255, 255, 255)"}},t||ee.createElement("div",{ref:r}))},nd=(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),np=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={hasError:!1},t.renderError=function(e){var n=t.props.errorTemplate;return"function"==typeof n?n(e):n||ee.createElement("h5",null,"组件出错了,请核查后重试: ",e.message)},t}return nd(t,e),t.getDerivedStateFromError=function(e){return{hasError:!0,error:e}},t.getDerivedStateFromProps=function(e,t){return t.children!==e.children?{children:e.children,hasError:!1,error:void 0}:null},t.prototype.render=function(){return this.state.hasError?this.renderError(this.state.error):ee.createElement(ee.Fragment,null,this.props.children)},t}(ee.Component),nf=function(){return(nf=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},ng=n(90494),nh=n(50368),nb=n(23413),nE=n(53032),ny=n(83787),nT=n(8080),nS=n(36849),nA=n(70569),n_=n(76714),nk=n(5199),nI=n(47666);function nv(e,t){for(var n in t)t.hasOwnProperty(n)&&"constructor"!==n&&void 0!==t[n]&&(e[n]=t[n])}var nN=n(7745),nC=n(72349);let nR={field:"value",size:[1,1],round:!1,padding:0,sort:(e,t)=>t.value-e.value,as:["x","y"],ignoreParentValue:!0},nO="childNodeCount",nw="Invalid field: it must be a string!";var nx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let nD="sunburst",nL="markType",nP="path",nM="ancestor-node",nF={id:nD,encode:{x:"x",y:"y",key:nP,color:nM,value:"value"},axis:{x:!1,y:!1},style:{[nL]:nD,stroke:"#fff",lineWidth:.5,fillOpacity:"fillOpacity",[nO]:nO,depth:"depth"},state:{active:{zIndex:2,stroke:"#000"},inactive:{zIndex:1,stroke:"#fff"}},legend:!1,interaction:{drillDown:!0},coordinate:{type:"polar",innerRadius:.2}},nB=e=>{let{encode:t,data:n=[],legend:r}=e,a=nx(e,["encode","data","legend"]),i=Object.assign(Object.assign({},a.coordinate),{innerRadius:Math.max((0,nE.Z)(a,["coordinate","innerRadius"],.2),1e-5)}),o=Object.assign(Object.assign({},nF.encode),t),{value:s}=o,l=function(e){let{data:t,encode:n}=e,{color:r,value:a}=n,i=function(e,t){var n,r,a;let i;n={},r=t,nR&&nv(n,nR),r&&nv(n,r),a&&nv(n,a),t=n;let o=t.as;if(!(0,nk.Z)(o)||2!==o.length)throw TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{i=function(e,t){let{field:n,fields:r}=e;if((0,n_.Z)(n))return n;if((0,nk.Z)(n))return console.warn(nw),n[0];if(console.warn("".concat(nw," will try to get fields instead.")),(0,n_.Z)(r))return r;if((0,nk.Z)(r)&&r.length)return r[0];if(t)return t;throw TypeError(nw)}(t)}catch(e){console.warn(e)}let s=(function(){var e=1,t=1,n=0,r=!1;function a(a){var i,o=a.height+1;return a.x0=a.y0=n,a.x1=e,a.y1=t/o,a.eachBefore((i=t,function(e){e.children&&(0,nS.Z)(e,e.x0,i*(e.depth+1)/o,e.x1,i*(e.depth+2)/o);var t=e.x0,r=e.y0,a=e.x1-n,s=e.y1-n;a(0,nN.Z)(e.children)?t.ignoreParentValue?0:e[i]-(0,nC.Z)(e.children,(e,t)=>e+t[i],0):e[i]).sort(t.sort)),l=o[0],c=o[1];return s.each(e=>{var t,n;e[l]=[e.x0,e.x1,e.x1,e.x0],e[c]=[e.y1,e.y1,e.y0,e.y0],e.name=e.name||(null===(t=e.data)||void 0===t?void 0:t.name)||(null===(n=e.data)||void 0===n?void 0:n.label),e.data.name=e.name,["x0","x1","y0","y1"].forEach(t=>{-1===o.indexOf(t)&&delete e[t]})}),function(e){let t=[];if(e&&e.each){let n,r;e.each(e=>{var a,i;e.parent!==n?(n=e.parent,r=0):r+=1;let o=(0,nI.Z)(((null===(a=e.ancestors)||void 0===a?void 0:a.call(e))||[]).map(e=>t.find(t=>t.name===e.name)||e),t=>{let{depth:n}=t;return n>0&&n{t.push(e)});return t}(s)}(t,{field:a,type:"hierarchy.".concat("partition"),as:["x","y"]}),o=[];return i.forEach(e=>{var t,n,i,s;if(0===e.depth)return null;let l=e.data.name,c=[l],u=Object.assign({},e);for(;u.depth>1;)l="".concat(null===(t=u.parent.data)||void 0===t?void 0:t.name," / ").concat(l),c.unshift(null===(n=u.parent.data)||void 0===n?void 0:n.name),u=u.parent;let d=Object.assign(Object.assign(Object.assign({},(0,nb.Z)(e.data,[a])),{[nP]:l,[nM]:u.data.name}),e);r&&r!==nM&&(d[r]=e.data[r]||(null===(s=null===(i=e.parent)||void 0===i?void 0:i.data)||void 0===s?void 0:s[r])),o.push(d)}),o.map(e=>{let t=e.x.slice(0,2),n=[e.y[2],e.y[0]];return t[0]===t[1]&&(n[0]=n[1]=(e.y[2]+e.y[0])/2),Object.assign(Object.assign({},e),{x:t,y:n,fillOpacity:Math.pow(.85,e.depth)})})}({encode:o,data:n});return console.log(l,"rectData"),[(0,ny.Z)({},nF,Object.assign(Object.assign({type:"rect",data:l,encode:o,tooltip:{title:"path",items:[e=>({name:s,value:e[s]})]}},a),{coordinate:i}))]};nB.props={};var nU=n(38523);let nH=e=>e.querySelectorAll(".element").filter(e=>(0,nE.Z)(e,["style",nL])===nD),nG={rootText:"root",style:{fill:"rgba(0, 0, 0, 0.85)",fontSize:12,y:1},active:{fill:"rgba(0, 0, 0, 0.5)"}};var n$=n(98257),nz=function(){return(nz=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&void 0!==arguments[0]?arguments[0]:{},{breadCrumb:t={},isFixedColor:n=!1}=e,r=(0,ny.Z)({},nG,t);return e=>{let{update:t,setState:a,container:i,view:o,options:s}=e,l=i.ownerDocument,c=(0,nh.Ys)(i).select(".".concat(nh.V$)).node(),u=s.marks.find(e=>{let{id:t}=e;return t===nD}),{state:d}=u,p=l.createElement("g");c.appendChild(p);let f=(e,i)=>{var s,u,d,m;return s=this,u=void 0,d=void 0,m=function*(){if(p.removeChildren(),e){let t=l.createElement("text",{style:Object.assign({x:0,text:r.rootText,depth:0},r.style)});p.appendChild(t);let n="",a=null==e?void 0:e.split(" / "),i=r.style.y,o=p.getBBox().width,s=c.getBBox().width,u=a.map((e,t)=>{let a=l.createElement("text",{style:Object.assign(Object.assign({x:o,text:" / "},r.style),{y:i})});p.appendChild(a),o+=a.getBBox().width,n="".concat(n).concat(e," / ");let c=l.createElement("text",{name:n.replace(/\s\/\s$/,""),style:Object.assign(Object.assign({text:e,x:o,depth:t+1},r.style),{y:i})});return p.appendChild(c),(o+=c.getBBox().width)>s&&(i=p.getBBox().height,o=0,a.attr({x:o,y:i}),o+=a.getBBox().width,c.attr({x:o,y:i}),o+=c.getBBox().width),c});[t,...u].forEach((e,t)=>{if(t===u.length)return;let n=Object.assign({},e.attributes);e.attr("cursor","pointer"),e.addEventListener("mouseenter",()=>{e.attr(r.active)}),e.addEventListener("mouseleave",()=>{e.attr(n)}),e.addEventListener("click",()=>{f(e.name,(0,nE.Z)(e,["style","depth"]))})})}a("drillDown",t=>{let{marks:r}=t,a=r.map(t=>{if(t.id!==nD&&"rect"!==t.type)return t;let{data:r}=t,a=Object.fromEntries(["color"].map(e=>[e,{domain:o.scale[e].getOptions().domain}])),s=r.filter(t=>{let r=t.path;if(n||(t[nM]=r.split(" / ")[i]),!e)return!0;let a=new RegExp("^".concat(e,".+"));return a.test(r)});return(0,ny.Z)({},t,n?{data:s,scale:a}:{data:s})});return Object.assign(Object.assign({},t),{marks:a})}),yield t()},new(d||(d=Promise))(function(e,t){function n(e){try{a(m.next(e))}catch(e){t(e)}}function r(e){try{a(m.throw(e))}catch(e){t(e)}}function a(t){var a;t.done?e(t.value):((a=t.value)instanceof d?a:new d(function(e){e(a)})).then(n,r)}a((m=m.apply(s,u||[])).next())})},m=e=>{let t=e.target;if((0,nE.Z)(t,["style",nL])!==nD||"rect"!==(0,nE.Z)(t,["markType"])||!(0,nE.Z)(t,["style",nO]))return;let n=(0,nE.Z)(t,["__data__","key"]),r=(0,nE.Z)(t,["style","depth"]);t.style.cursor="pointer",f(n,r)};c.addEventListener("click",m);let g=(0,nU.Z)(Object.assign(Object.assign({},d.active),d.inactive)),h=()=>{let e=nH(c);e.forEach(e=>{let t=(0,nE.Z)(e,["style",nO]),n=(0,nE.Z)(e,["style","cursor"]);if("pointer"!==n&&t){e.style.cursor="pointer";let t=(0,nb.Z)(e.attributes,g);e.addEventListener("mouseenter",()=>{e.attr(d.active)}),e.addEventListener("mouseleave",()=>{e.attr((0,ny.Z)(t,d.inactive))})}})};return c.addEventListener("mousemove",h),()=>{p.remove(),c.removeEventListener("click",m),c.removeEventListener("mousemove",h)}}},"mark.sunburst":nB})),nY=function(){return(nY=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},nW=["renderer"],nZ=["width","height","autoFit","theme","inset","insetLeft","insetRight","insetTop","insetBottom","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","depth","title","clip","children","type","data","direction"],nq="__transform__",nK=function(e,t){return(0,J.isBoolean)(t)?{type:e,available:t}:nY({type:e},t)},nX={xField:"encode.x",yField:"encode.y",colorField:"encode.color",angleField:"encode.y",keyField:"encode.key",sizeField:"encode.size",shapeField:"encode.shape",seriesField:"encode.series",positionField:"encode.position",textField:"encode.text",valueField:"encode.value",binField:"encode.x",srcField:"encode.src",linkColorField:"encode.linkColor",fontSizeField:"encode.fontSize",radius:"coordinate.outerRadius",innerRadius:"coordinate.innerRadius",startAngle:"coordinate.startAngle",endAngle:"coordinate.endAngle",focusX:"coordinate.focusX",focusY:"coordinate.focusY",distortionX:"coordinate.distortionX",distortionY:"coordinate.distortionY",visual:"coordinate.visual",stack:{target:"transform",value:function(e){return nK("stackY",e)}},normalize:{target:"transform",value:function(e){return nK("normalizeY",e)}},percent:{target:"transform",value:function(e){return nK("normalizeY",e)}},group:{target:"transform",value:function(e){return nK("dodgeX",e)}},sort:{target:"transform",value:function(e){return nK("sortX",e)}},symmetry:{target:"transform",value:function(e){return nK("symmetryY",e)}},diff:{target:"transform",value:function(e){return nK("diffY",e)}},meta:{target:"scale",value:function(e){return e}},label:{target:"labels",value:function(e){return e}},shape:"style.shape",connectNulls:{target:"style",value:function(e){return(0,J.isBoolean)(e)?{connect:e}:e}}},nQ=["xField","yField","seriesField","colorField","keyField","positionField","meta","tooltip","animate","stack","normalize","percent","group","sort","symmetry","diff"],nJ=[{key:"annotations",extend_keys:[]},{key:"line",type:"line",extend_keys:nQ},{key:"point",type:"point",extend_keys:nQ},{key:"area",type:"area",extend_keys:nQ}],n0=[{key:"transform",callback:function(e,t,n){e[t]=e[t]||[];var r,a=n.available,i=nV(n,["available"]);if(void 0===a||a)e[t].push(nY(((r={})[nq]=!0,r),i));else{var o=e[t].indexOf(function(e){return e.type===n.type});-1!==o&&e[t].splice(o,1)}}},{key:"labels",callback:function(e,t,n){var r;if(!n||(0,J.isArray)(n)){e[t]=n||[];return}n.text||(n.text=e.yField),e[t]=e[t]||[],e[t].push(nY(((r={})[nq]=!0,r),n))}}],n1=[{key:"conversionTag",shape:"ConversionTag"},{key:"axisText",shape:"BidirectionalBarAxisText"}],n2=n(1242),n3=(a=function(e,t){return(a=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),n4=function(){return(n4=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},n6=function(e){function t(t){void 0===t&&(t={});var n=t.style,r=n5(t,["style"]);return e.call(this,n4({style:n4({fill:"#eee"},n)},r))||this}return n3(t,e),t}(n2.mg),n9=(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),n8=function(){return(n8=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},re=function(e){function t(t){void 0===t&&(t={});var n=t.style,r=n7(t,["style"]);return e.call(this,n8({style:n8({text:"",fontSize:12,textBaseline:"middle",textAlign:"center",fill:"#000",fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",lineWidth:1},n)},r))||this}return n9(t,e),t}(n2.xv),rt=function(e,t,n){if(n||2==arguments.length)for(var r,a=0,i=t.length;a0){var r=t.x,a=t.y,i=t.height,o=t.width,s=t.data,p=t.key,f=(0,J.get)(s,l),g=m/2;if(e){var b=r+o/2,y=a;d.push({points:[[b+g,y-u+E],[b+g,y-h-E],[b,y-E],[b-g,y-h-E],[b-g,y-u+E]],center:[b,y-u/2-E],width:u,value:[c,f],key:p})}else{var b=r,y=a+i/2;d.push({points:[[r-u+E,y-g],[r-h-E,y-g],[b-E,y],[r-h-E,y+g],[r-u+E,y+g]],center:[b-u/2-E,y],width:u,value:[c,f],key:p})}c=f}}),d},t.prototype.render=function(){this.setDirection(),this.drawConversionTag()},t.prototype.setDirection=function(){var e=this.chart.getCoordinate(),t=(0,J.get)(e,"options.transformations"),n="horizontal";t.forEach(function(e){e.includes("transpose")&&(n="vertical")}),this.direction=n},t.prototype.drawConversionTag=function(){var e=this,t=this.getConversionTagLayout(),n=this.attributes,r=n.style,a=n.text,i=a.style,o=a.formatter;t.forEach(function(t){var n=t.points,a=t.center,s=t.value,l=t.key,c=s[0],u=s[1],d=a[0],p=a[1],f=new n6({style:rs({points:n,fill:"#eee"},r),id:"polygon-".concat(l)}),m=new re({style:rs({x:d,y:p,text:(0,J.isFunction)(o)?o(c,u):(u/c*100).toFixed(2)+"%"},i),id:"text-".concat(l)});e.appendChild(f),e.appendChild(m)})},t.prototype.update=function(){var e=this;this.getConversionTagLayout().forEach(function(t){var n=t.points,r=t.center,a=t.key,i=r[0],o=r[1],s=e.getElementById("polygon-".concat(a)),l=e.getElementById("text-".concat(a));s.setAttribute("points",n),l.setAttribute("x",i),l.setAttribute("y",o)})},t.tag="ConversionTag",t}(ri),rc=(l=function(e,t){return(l=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ru=function(){return(ru=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},rp={ConversionTag:rl,BidirectionalBarAxisText:function(e){function t(n,r){return e.call(this,n,r,{type:t.tag})||this}return rc(t,e),t.prototype.render=function(){this.drawText()},t.prototype.getBidirectionalBarAxisTextLayout=function(){var e="vertical"===this.attributes.layout,t=this.getElementsLayout(),n=e?(0,J.uniqBy)(t,"x"):(0,J.uniqBy)(t,"y"),r=["title"],a=[],i=this.chart.getContext().views,o=(0,J.get)(i,[0,"layout"]),s=o.width,l=o.height;return n.forEach(function(t){var n=t.x,i=t.y,o=t.height,c=t.width,u=t.data,d=t.key,p=(0,J.get)(u,r);e?a.push({x:n+c/2,y:l,text:p,key:d}):a.push({x:s,y:i+o/2,text:p,key:d})}),(0,J.uniqBy)(a,"text").length!==a.length&&(a=Object.values((0,J.groupBy)(a,"text")).map(function(t){var n,r=t.reduce(function(t,n){return t+(e?n.x:n.y)},0);return ru(ru({},t[0]),((n={})[e?"x":"y"]=r/t.length,n))})),a},t.prototype.transformLabelStyle=function(e){var t={},n=/^label[A-Z]/;return Object.keys(e).forEach(function(r){n.test(r)&&(t[r.replace("label","").replace(/^[A-Z]/,function(e){return e.toLowerCase()})]=e[r])}),t},t.prototype.drawText=function(){var e=this,t=this.getBidirectionalBarAxisTextLayout(),n=this.attributes,r=n.layout,a=n.labelFormatter,i=rd(n,["layout","labelFormatter"]);t.forEach(function(t){var n=t.x,o=t.y,s=t.text,l=t.key,c=new re({style:ru({x:n,y:o,text:(0,J.isFunction)(a)?a(s):s,wordWrap:!0,wordWrapWidth:"horizontal"===r?64:120,maxLines:2,textOverflow:"ellipsis"},e.transformLabelStyle(i)),id:"text-".concat(l)});e.appendChild(c)})},t.prototype.update=function(){var e=this;this.getBidirectionalBarAxisTextLayout().forEach(function(t){var n=t.x,r=t.y,a=t.key,i=e.getElementById("text-".concat(a));i.setAttribute("x",n),i.setAttribute("y",r)})},t.tag="BidirectionalBarAxisText",t}(ri)},rf=function(){function e(e,t){this.container=new Map,this.chart=e,this.config=t,this.init()}return e.prototype.init=function(){var e=this;n1.forEach(function(t){var n,r=t.key,a=t.shape,i=e.config[r];if(i){var o=new rp[a](e.chart,i);e.chart.getContext().canvas.appendChild(o),e.container.set(r,o)}else null===(n=e.container.get(r))||void 0===n||n.clear()})},e.prototype.update=function(){var e=this;this.container.size&&n1.forEach(function(t){var n=t.key,r=e.container.get(n);null==r||r.update()})},e}(),rm=(c=function(e,t){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),rg=function(){return(rg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&(0,J.set)(t,"children",[{type:"interval"}]);var n=t.scale,r=t.markBackground,a=t.data,i=t.children,o=t.yField,s=(0,J.get)(n,"y.domain",[]);if(r&&s.length&&(0,J.isArray)(a)){var l="domainMax",c=a.map(function(e){var t;return rO(rO({originData:rO({},e)},(0,J.omit)(e,o)),((t={})[l]=s[s.length-1],t))});i.unshift(rO({type:"interval",data:c,yField:l,tooltip:!1,style:{fill:"#eee"},label:!1},r))}return e},rv,r_)(e)}var rx=(p=function(e,t){return(p=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});(0,nh.z2)("shape.interval.bar25D",function(e,t){return function(n){var r=e.fill,a=void 0===r?"#2888FF":r,i=e.stroke,o=e.fillOpacity,s=void 0===o?1:o,l=e.strokeOpacity,c=void 0===l?.2:l,u=e.pitch,d=void 0===u?8:u,p=n[0],f=n[1],m=n[2],g=n[3],h=(f[1]-p[1])/2,b=t.document,E=b.createElement("g",{}),y=b.createElement("polygon",{style:{points:[p,[p[0]-d,p[1]+h],[m[0]-d,p[1]+h],g],fill:a,fillOpacity:s,stroke:i,strokeOpacity:c,inset:30}}),T=b.createElement("polygon",{style:{points:[[p[0]-d,p[1]+h],f,m,[m[0]-d,p[1]+h]],fill:a,fillOpacity:s,stroke:i,strokeOpacity:c}}),S=b.createElement("polygon",{style:{points:[p,[p[0]-d,p[1]+h],f,[p[0]+d,p[1]+h]],fill:a,fillOpacity:s-.2}});return E.appendChild(y),E.appendChild(T),E.appendChild(S),E}});var rD=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="Bar",t}return rx(t,e),t.getDefaultOptions=function(){return{type:"view",coordinate:{transform:[{type:"transpose"}]},children:[{type:"interval"}],scale:{y:{nice:!0}},axis:{y:{title:!1},x:{title:!1}},interaction:{tooltip:{shared:!0},elementHighlight:{background:!0}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return rw},t}(rb),rL=(f=function(e,t){return(f=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});(0,nh.z2)("shape.interval.column25D",function(e,t){return function(n){var r=e.fill,a=void 0===r?"#2888FF":r,i=e.stroke,o=e.fillOpacity,s=void 0===o?1:o,l=e.strokeOpacity,c=void 0===l?.2:l,u=e.pitch,d=void 0===u?8:u,p=(n[1][0]-n[0][0])/2+n[0][0],f=t.document,m=f.createElement("g",{}),g=f.createElement("polygon",{style:{points:[[n[0][0],n[0][1]],[p,n[1][1]+d],[p,n[3][1]+d],[n[3][0],n[3][1]]],fill:a,fillOpacity:s,stroke:i,strokeOpacity:c,inset:30}}),h=f.createElement("polygon",{style:{points:[[p,n[1][1]+d],[n[1][0],n[1][1]],[n[2][0],n[2][1]],[p,n[2][1]+d]],fill:a,fillOpacity:s,stroke:i,strokeOpacity:c}}),b=f.createElement("polygon",{style:{points:[[n[0][0],n[0][1]],[p,n[1][1]-d],[n[1][0],n[1][1]],[p,n[1][1]+d]],fill:a,fillOpacity:s-.2}});return m.appendChild(h),m.appendChild(g),m.appendChild(b),m}});var rP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="column",t}return rL(t,e),t.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0},elementHighlight:{background:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"interval"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return rw},t}(rb);function rM(e){return(0,J.flow)(function(e){var t=e.options,n=t.children;return t.legend&&(void 0===n?[]:n).forEach(function(e){if(!(0,J.get)(e,"colorField")){var t=(0,J.get)(e,"yField");(0,J.set)(e,"colorField",function(){return t})}}),e},function(e){var t=e.options,n=t.annotations,r=void 0===n?[]:n,a=t.children,i=t.scale,o=!1;return(0,J.get)(i,"y.key")||(void 0===a?[]:a).forEach(function(e,t){if(!(0,J.get)(e,"scale.y.key")){var n="child".concat(t,"Scale");(0,J.set)(e,"scale.y.key",n);var a=e.annotations,i=void 0===a?[]:a;i.length>0&&((0,J.set)(e,"scale.y.independent",!1),i.forEach(function(e){(0,J.set)(e,"scale.y.key",n)})),!o&&r.length>0&&void 0===(0,J.get)(e,"scale.y.independent")&&(o=!0,(0,J.set)(e,"scale.y.independent",!1),r.forEach(function(e){(0,J.set)(e,"scale.y.key",n)}))}}),e},rv,r_)(e)}var rF=(m=function(e,t){return(m=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}m(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),rB=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="DualAxes",t}return rF(t,e),t.getDefaultOptions=function(){return{type:"view",axis:{y:{title:!1,tick:!1},x:{title:!1}},scale:{y:{independent:!0,nice:!0}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return rM},t}(rb);function rU(e){return(0,J.flow)(function(e){var t=e.options,n=t.xField;return t.colorField||(0,J.set)(t,"colorField",n),e},function(e){var t=e.options,n=t.compareField,r=t.transform,a=t.isTransposed,i=t.coordinate;return r||(n?(0,J.set)(t,"transform",[]):(0,J.set)(t,"transform",[{type:"symmetryY"}])),!i&&(void 0===a||a)&&(0,J.set)(t,"coordinate",{transform:[{type:"transpose"}]}),e},function(e){var t=e.options,n=t.compareField,r=t.seriesField,a=t.data,i=t.children,o=t.yField,s=t.isTransposed;if(n||r){var l=Object.values((0,J.groupBy)(a,function(e){return e[n||r]}));i[0].data=l[0],i.push({type:"interval",data:l[1],yField:function(e){return-e[o]}}),delete t.compareField,delete t.data}return r&&((0,J.set)(t,"type","spaceFlex"),(0,J.set)(t,"ratio",[1,1]),(0,J.set)(t,"direction",void 0===s||s?"row":"col"),delete t.seriesField),e},function(e){var t=e.options,n=t.tooltip,r=t.xField,a=t.yField;return n||(0,J.set)(t,"tooltip",{title:!1,items:[function(e){return{name:e[r],value:e[a]}}]}),e},rv,r_)(e)}var rH=(g=function(e,t){return(g=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),rG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="column",t}return rH(t,e),t.getDefaultOptions=function(){return{type:"view",scale:{x:{padding:0}},animate:{enter:{type:"fadeIn"}},axis:!1,shapeField:"funnel",label:{position:"inside",transform:[{type:"contrastReverse"}]},children:[{type:"interval"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return rU},t}(rb);function r$(e){return(0,J.flow)(rv,r_)(e)}var rz=(h=function(e,t){return(h=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),rj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="line",t}return rz(t,e),t.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"line"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return r$},t}(rb);function rY(e){switch(typeof e){case"function":return e;case"string":return function(t){return(0,J.get)(t,[e])};default:return function(){return e}}}var rV=function(){return(rV=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&(t.x1=e[r],t.x2=t[r],t.y1=e[aE]),t},[]),o.shift(),a.push({type:"link",xField:["x1","x2"],yField:"y1",zIndex:-1,data:o,style:aT({stroke:"#697474"},i),label:!1,tooltip:!1}),e},rv,r_)(e)}var a_=(N=function(e,t){return(N=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}N(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ak=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="waterfall",t}return a_(t,e),t.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{field:ay,valueFormatter:"~s",name:"value"},axis:{y:{title:null,labelFormatter:"~s"},x:{title:null}},children:[{type:"interval",interaction:{elementHighlight:{background:!0}}}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return aA},t}(rb);function aI(e){return(0,J.flow)(function(e){var t=e.options,n=t.data,r=t.binNumber,a=t.binWidth,i=t.children,o=t.channel,s=void 0===o?"count":o,l=(0,J.get)(i,"[0].transform[0]",{});return(0,J.isNumber)(a)?((0,J.assign)(l,{thresholds:(0,J.ceil)((0,J.divide)(n.length,a)),y:s}),e):((0,J.isNumber)(r)&&(0,J.assign)(l,{thresholds:r,y:s}),e)},rv,r_)(e)}var av=(C=function(e,t){return(C=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}C(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),aN=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="Histogram",t}return av(t,e),t.getDefaultOptions=function(){return{type:"view",autoFit:!0,axis:{y:{title:!1},x:{title:!1}},children:[{type:"rect",transform:[{type:"binX",y:"count"}],interaction:{elementHighlight:{background:!0}}}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return aI},t}(rb);function aC(e){return(0,J.flow)(function(e){var t=e.options,n=t.tooltip,r=void 0===n?{}:n,a=t.colorField,i=t.sizeField;return r&&!r.field&&(r.field=a||i),e},function(e){var t=e.options,n=t.mark,r=t.children;return n&&(r[0].type=n),e},rv,r_)(e)}var aR=(R=function(e,t){return(R=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}R(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),aO=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="heatmap",t}return aR(t,e),t.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{valueFormatter:"~s"},axis:{y:{title:null,grid:!0},x:{title:null,grid:!0}},children:[{type:"point",interaction:{elementHighlight:{background:!0}}}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return aC},t}(rb);function aw(e){return(0,J.flow)(function(e){var t=e.options.boxType;return e.options.children[0].type=void 0===t?"box":t,e},rv,r_)(e)}var ax=(O=function(e,t){return(O=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}O(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),aD=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="box",t}return ax(t,e),t.getDefaultOptions=function(){return{type:"view",children:[{type:"box"}],axis:{y:{title:!1},x:{title:!1}},tooltip:{items:[{name:"min",channel:"y"},{name:"q1",channel:"y1"},{name:"q2",channel:"y2"},{name:"q3",channel:"y3"},{name:"max",channel:"y4"}]}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return aw},t}(rb);function aL(e){return(0,J.flow)(function(e){var t=e.options,n=t.data,r=[{type:"custom",callback:function(e){return{links:e}}}];if((0,J.isArray)(n))n.length>0?(0,J.set)(t,"data",{value:n,transform:r}):delete t.children;else if("fetch"===(0,J.get)(n,"type")&&(0,J.get)(n,"value")){var a=(0,J.get)(n,"transform");(0,J.isArray)(a)?(0,J.set)(n,"transform",a.concat(r)):(0,J.set)(n,"transform",r)}return e},rv,r_)(e)}var aP=(w=function(e,t){return(w=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}w(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),aM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="sankey",t}return aP(t,e),t.getDefaultOptions=function(){return{type:"view",children:[{type:"sankey"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return aL},t}(rb);function aF(e){t=e.options.layout,e.options.coordinate.transform="horizontal"!==(void 0===t?"horizontal":t)?void 0:[{type:"transpose"}];var t,n=e.options.layout,r=void 0===n?"horizontal":n;return e.options.children.forEach(function(e){var t;(null===(t=null==e?void 0:e.coordinate)||void 0===t?void 0:t.transform)&&(e.coordinate.transform="horizontal"!==r?void 0:[{type:"transpose"}])}),e}var aB=function(){return(aB=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},iy=(0,ee.forwardRef)(function(e,t){var n,r,a,i,o,s,l,c,u,d=e.chartType,p=iE(e,["chartType"]),f=p.containerStyle,m=p.containerAttributes,g=void 0===m?{}:m,h=p.className,b=p.loading,E=p.loadingTemplate,y=p.errorTemplate,T=iE(p,["containerStyle","containerAttributes","className","loading","loadingTemplate","errorTemplate"]),S=(n=ih[void 0===d?"Base":d],r=(0,ee.useRef)(),a=(0,ee.useRef)(),i=(0,ee.useRef)(null),o=T.onReady,s=T.onEvent,l=function(e,t){void 0===e&&(e="image/png");var n,r=null===(n=i.current)||void 0===n?void 0:n.getElementsByTagName("canvas")[0];return null==r?void 0:r.toDataURL(e,t)},c=function(e,t,n){void 0===e&&(e="download"),void 0===t&&(t="image/png");var r=e;-1===e.indexOf(".")&&(r="".concat(e,".").concat(t.split("/")[1]));var a=l(t,n),i=document.createElement("a");return i.href=a,i.download=r,document.body.appendChild(i),i.click(),document.body.removeChild(i),i=null,r},u=function(e,t){void 0===t&&(t=!1);var n=Object.keys(e),r=t;n.forEach(function(n){var a,i=e[n];("tooltip"===n&&(r=!0),(0,J.isFunction)(i)&&(a="".concat(i),/react|\.jsx|children:\[\(|return\s+[A-Za-z0-9].createElement\((?!['"][g|circle|ellipse|image|rect|line|polyline|polygon|text|path|html|mesh]['"])([^\)])*,/i.test(a)))?e[n]=function(){for(var e=[],t=0;t0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function U(e,t){let n=[],r=-1,a=e.passKeys?new Map:O;for(;++r=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let a=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&q(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),q(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),q(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length)){if(er))return;let s=a.events.length,l=s;for(;l--;)if("exit"===a.events[l][0]&&"chunkFlow"===a.events[l][1].type){if(e){n=a.events[l][1].end;break}e=!0}for(h(o),i=s;it;){let t=i[n];a.containerState=t[1],t[0].exit.call(a,e)}i.length=t}function b(){t.write([null]),n=void 0,t=void 0,a.containerState._closeFlow=void 0}}},en={tokenize:function(e,t,n){return(0,Q.f)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var er=n(23402);let ea={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?a(t):(0,J.Ch)(t)?e.check(ei,i,a)(t):(e.consume(t),r)}function a(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return K(e),e}},ei={tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,Q.f)(e,a,"linePrefix")};function a(a){if(null===a||(0,J.Ch)(a))return n(a);let i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}},partial:!0},eo={tokenize:function(e){let t=this,n=e.attempt(er.w,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,(0,Q.f)(e,e.attempt(this.parser.constructs.flow,r,e.attempt(ea,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},es={resolveAll:ed()},el=eu("string"),ec=eu("text");function eu(e){return{tokenize:function(t){let n=this,r=this.parser.constructs[e],a=t.attempt(r,i,o);return i;function i(e){return l(e)?a(e):o(e)}function o(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),s}function s(e){return l(e)?(t.exit("data"),a(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;let t=r[e],a=-1;if(t)for(;++a=3&&(null===o||(0,J.Ch)(o))?(e.exit("thematicBreak"),t(o)):n(o)}(i)}}},eg={name:"list",tokenize:function(e,t,n){let r=this,a=r.events[r.events.length-1],i=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,o=0;return function(t){let a=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===a?!r.containerState.marker||t===r.containerState.marker:(0,J.pY)(t)){if(r.containerState.type||(r.containerState.type=a,e.enter(a,{_container:!0})),"listUnordered"===a)return e.enter("listItemPrefix"),42===t||45===t?e.check(em,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(a){return(0,J.pY)(a)&&++o<10?(e.consume(a),t):(!r.interrupt||o<2)&&(r.containerState.marker?a===r.containerState.marker:41===a||46===a)?(e.exit("listItemValue"),s(a)):n(a)}(t)}return n(t)};function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(er.w,r.interrupt?n:l,e.attempt(eh,u,c))}function l(e){return r.containerState.initialBlankLine=!0,i++,u(e)}function c(t){return(0,J.xz)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(er.w,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,(0,Q.f)(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!(0,J.xz)(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eb,t,a)(n))});function a(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,(0,Q.f)(e,e.attempt(eg,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}},exit:function(e){e.exit(this.containerState.type)}},eh={tokenize:function(e,t,n){let r=this;return(0,Q.f)(e,function(e){let a=r.events[r.events.length-1];return!(0,J.xz)(e)&&a&&"listItemPrefixWhitespace"===a[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},eb={tokenize:function(e,t,n){let r=this;return(0,Q.f)(e,function(e){let a=r.events[r.events.length-1];return a&&"listItemIndent"===a[1].type&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)},partial:!0},eE={name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),a}return n(t)};function a(n){return(0,J.xz)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){let r=this;return function(t){return(0,J.xz)(t)?(0,Q.f)(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):a(t)};function a(r){return e.attempt(eE,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function ey(e,t,n,r,a,i,o,s,l){let c=l||Number.POSITIVE_INFINITY,u=0;return function(t){return 60===t?(e.enter(r),e.enter(a),e.enter(i),e.consume(t),e.exit(i),d):null===t||32===t||41===t||(0,J.Av)(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),m(t))};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||(0,J.Ch)(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function m(a){return!u&&(null===a||41===a||(0,J.z3)(a))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(a)):u999||null===d||91===d||93===d&&!o||94===d&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):93===d?(e.exit(i),e.enter(a),e.consume(d),e.exit(a),e.exit(r),t):(0,J.Ch)(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||(0,J.Ch)(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),o||(o=!(0,J.xz)(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function eS(e,t,n,r,a,i){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(a),e.consume(t),e.exit(a),o=40===t?41:t,s):n(t)};function s(n){return n===o?(e.enter(a),e.consume(n),e.exit(a),e.exit(r),t):(e.enter(i),l(n))}function l(t){return t===o?(e.exit(i),s(o)):null===t?n(t):(0,J.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,Q.f)(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||(0,J.Ch)(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===o||92===t?(e.consume(t),c):c(t)}}function eA(e,t){let n;return function r(a){return(0,J.Ch)(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):(0,J.xz)(a)?(0,Q.f)(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}var e_=n(11098);let ek={tokenize:function(e,t,n){return function(t){return(0,J.z3)(t)?eA(e,r)(t):n(t)};function r(t){return eS(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function a(t){return(0,J.xz)(t)?(0,Q.f)(e,i,"whitespace")(t):i(t)}function i(e){return null===e||(0,J.Ch)(e)?t(e):n(e)}},partial:!0},eI={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),(0,Q.f)(e,a,"linePrefix",5)(t)};function a(t){let a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?function t(n){return null===n?i(n):(0,J.Ch)(n)?e.attempt(ev,t,i)(n):(e.enter("codeFlowValue"),function n(r){return null===r||(0,J.Ch)(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function i(n){return e.exit("codeIndented"),t(n)}}},ev={tokenize:function(e,t,n){let r=this;return a;function a(t){return r.parser.lazy[r.now().line]?n(t):(0,J.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):(0,Q.f)(e,i,"linePrefix",5)(t)}function i(e){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):(0,J.Ch)(e)?a(e):n(e)}},partial:!0},eN={name:"setextUnderline",tokenize:function(e,t,n){let r;let a=this;return function(t){let o,s=a.events.length;for(;s--;)if("lineEnding"!==a.events[s][1].type&&"linePrefix"!==a.events[s][1].type&&"content"!==a.events[s][1].type){o="paragraph"===a.events[s][1].type;break}return!a.parser.lazy[a.now().line]&&(a.interrupt||o)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),(0,J.xz)(n)?(0,Q.f)(e,i,"lineSuffix")(n):i(n))}(t)):n(t)};function i(r){return null===r||(0,J.Ch)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,a,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),a||"definition"!==e[i][1].type||(a=i);let o={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",o,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[a][1].end)):e[n][1]=o,e.push(["exit",o,t]),e}},eC=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],eR=["pre","script","style","textarea"],eO={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(er.w,t,n)}},partial:!0},ew={tokenize:function(e,t,n){let r=this;return function(t){return(0,J.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):n(t)};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},ex={tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a)};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},eD={name:"codeFenced",tokenize:function(e,t,n){let r;let a=this,i={tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),(0,J.xz)(t)?(0,Q.f)(e,l,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(a){return a===r?(i++,e.consume(a),t):i>=s?(e.exit("codeFencedFenceSequence"),(0,J.xz)(a)?(0,Q.f)(e,c,"whitespace")(a):c(a)):n(a)}(t)):n(t)}function c(r){return null===r||(0,J.Ch)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},o=0,s=0;return function(t){return function(t){let i=a.events[a.events.length-1];return o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(a){return a===r?(s++,e.consume(a),t):s<3?n(a):(e.exit("codeFencedFenceSequence"),(0,J.xz)(a)?(0,Q.f)(e,l,"whitespace")(a):l(a))}(t)}(t)};function l(i){return null===i||(0,J.Ch)(i)?(e.exit("codeFencedFence"),a.interrupt?t(i):e.check(ex,u,m)(i)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(a){return null===a||(0,J.Ch)(a)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(a)):(0,J.xz)(a)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,Q.f)(e,c,"whitespace")(a)):96===a&&a===r?n(a):(e.consume(a),t)}(i))}function c(t){return null===t||(0,J.Ch)(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(a){return null===a||(0,J.Ch)(a)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(a)):96===a&&a===r?n(a):(e.consume(a),t)}(t))}function u(t){return e.attempt(i,m,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return o>0&&(0,J.xz)(t)?(0,Q.f)(e,f,"linePrefix",o+1)(t):f(t)}function f(t){return null===t||(0,J.Ch)(t)?e.check(ex,u,m)(t):(e.enter("codeFlowValue"),function t(n){return null===n||(0,J.Ch)(n)?(e.exit("codeFlowValue"),f(n)):(e.consume(n),t)}(t))}function m(n){return e.exit("codeFenced"),t(n)}},concrete:!0},eL=document.createElement("i");function eP(e){let t="&"+e+";";eL.innerHTML=t;let n=eL.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let eM={name:"characterReference",tokenize:function(e,t,n){let r,a;let i=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,a=J.H$,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,a=J.AF,c):(e.enter("characterReferenceValue"),r=7,a=J.pY,c(t))}function c(s){if(59===s&&o){let r=e.exit("characterReferenceValue");return a!==J.H$||eP(i.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return a(s)&&o++1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;let d=Object.assign({},e[n][1].end),p=Object.assign({},e[u][1].start);eV(d,-s),eV(p,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},o={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:p},a={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},o.end)},e[n][1].end=Object.assign({},i.start),e[u][1].start=Object.assign({},o.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=(0,W.V)(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=(0,W.V)(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",a,t]]),l=(0,W.V)(l,(0,ef.C)(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=(0,W.V)(l,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=(0,W.V)(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,(0,W.d)(e,n-1,u-n+3,l),u=n+l.length-c-2;break}}for(u=-1;++ui&&"whitespace"===e[a][1].type&&(a-=2),"atxHeadingSequence"===e[a][1].type&&(i===a-1||a-4>i&&"whitespace"===e[a-2][1].type)&&(a-=i+1===a?2:4),a>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[a][1].end},r={type:"chunkText",start:e[i][1].start,end:e[a][1].end,contentType:"text"},(0,W.d)(e,i,a-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},42:em,45:[eN,em],60:{name:"htmlFlow",tokenize:function(e,t,n){let r,a,i,o,s;let l=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c};function c(o){return 33===o?(e.consume(o),u):47===o?(e.consume(o),a=!0,f):63===o?(e.consume(o),r=3,l.interrupt?t:x):(0,J.jv)(o)?(e.consume(o),i=String.fromCharCode(o),m):n(o)}function u(a){return 45===a?(e.consume(a),r=2,d):91===a?(e.consume(a),r=5,o=0,p):(0,J.jv)(a)?(e.consume(a),r=4,l.interrupt?t:x):n(a)}function d(r){return 45===r?(e.consume(r),l.interrupt?t:x):n(r)}function p(r){let a="CDATA[";return r===a.charCodeAt(o++)?(e.consume(r),o===a.length)?l.interrupt?t:k:p:n(r)}function f(t){return(0,J.jv)(t)?(e.consume(t),i=String.fromCharCode(t),m):n(t)}function m(o){if(null===o||47===o||62===o||(0,J.z3)(o)){let s=47===o,c=i.toLowerCase();return!s&&!a&&eR.includes(c)?(r=1,l.interrupt?t(o):k(o)):eC.includes(i.toLowerCase())?(r=6,s)?(e.consume(o),g):l.interrupt?t(o):k(o):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(o):a?function t(n){return(0,J.xz)(n)?(e.consume(n),t):A(n)}(o):h(o))}return 45===o||(0,J.H$)(o)?(e.consume(o),i+=String.fromCharCode(o),m):n(o)}function g(r){return 62===r?(e.consume(r),l.interrupt?t:k):n(r)}function h(t){return 47===t?(e.consume(t),A):58===t||95===t||(0,J.jv)(t)?(e.consume(t),b):(0,J.xz)(t)?(e.consume(t),h):A(t)}function b(t){return 45===t||46===t||58===t||95===t||(0,J.H$)(t)?(e.consume(t),b):E(t)}function E(t){return 61===t?(e.consume(t),y):(0,J.xz)(t)?(e.consume(t),E):h(t)}function y(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,T):(0,J.xz)(t)?(e.consume(t),y):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||(0,J.z3)(n)?E(n):(e.consume(n),t)}(t)}function T(t){return t===s?(e.consume(t),s=null,S):null===t||(0,J.Ch)(t)?n(t):(e.consume(t),T)}function S(e){return 47===e||62===e||(0,J.xz)(e)?h(e):n(e)}function A(t){return 62===t?(e.consume(t),_):n(t)}function _(t){return null===t||(0,J.Ch)(t)?k(t):(0,J.xz)(t)?(e.consume(t),_):n(t)}function k(t){return 45===t&&2===r?(e.consume(t),C):60===t&&1===r?(e.consume(t),R):62===t&&4===r?(e.consume(t),D):63===t&&3===r?(e.consume(t),x):93===t&&5===r?(e.consume(t),w):(0,J.Ch)(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(eO,L,I)(t)):null===t||(0,J.Ch)(t)?(e.exit("htmlFlowData"),I(t)):(e.consume(t),k)}function I(t){return e.check(ew,v,L)(t)}function v(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return null===t||(0,J.Ch)(t)?I(t):(e.enter("htmlFlowData"),k(t))}function C(t){return 45===t?(e.consume(t),x):k(t)}function R(t){return 47===t?(e.consume(t),i="",O):k(t)}function O(t){if(62===t){let n=i.toLowerCase();return eR.includes(n)?(e.consume(t),D):k(t)}return(0,J.jv)(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),O):k(t)}function w(t){return 93===t?(e.consume(t),x):k(t)}function x(t){return 62===t?(e.consume(t),D):45===t&&2===r?(e.consume(t),x):k(t)}function D(t){return null===t||(0,J.Ch)(t)?(e.exit("htmlFlowData"),L(t)):(e.consume(t),D)}function L(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},61:eN,95:em,96:eD,126:eD},eQ={38:eM,92:eF},eJ={[-5]:eB,[-4]:eB,[-3]:eB,33:ez,38:eM,42:eY,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a};function a(t){return(0,J.jv)(t)?(e.consume(t),i):64===t?n(t):s(t)}function i(t){return 43===t||45===t||46===t||(0,J.H$)(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||(0,J.H$)(n))&&r++<32?(e.consume(n),t):(r=0,s(n))}(t)):s(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||(0,J.Av)(r)?n(r):(e.consume(r),o)}function s(t){return 64===t?(e.consume(t),l):(0,J.n9)(t)?(e.consume(t),s):n(t)}function l(a){return(0,J.H$)(a)?function a(i){return 46===i?(e.consume(i),r=0,l):62===i?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(i),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(i){if((45===i||(0,J.H$)(i))&&r++<63){let n=45===i?t:a;return e.consume(i),n}return n(i)}(i)}(a):n(a)}}},{name:"htmlText",tokenize:function(e,t,n){let r,a,i;let o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),T):63===t?(e.consume(t),E):(0,J.jv)(t)?(e.consume(t),A):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),a=0,f):(0,J.jv)(t)?(e.consume(t),b):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):(0,J.Ch)(t)?(i=u,O(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?R(e):45===e?d(e):u(e)}function f(t){let r="CDATA[";return t===r.charCodeAt(a++)?(e.consume(t),a===r.length?m:f):n(t)}function m(t){return null===t?n(t):93===t?(e.consume(t),g):(0,J.Ch)(t)?(i=m,O(t)):(e.consume(t),m)}function g(t){return 93===t?(e.consume(t),h):m(t)}function h(t){return 62===t?R(t):93===t?(e.consume(t),h):m(t)}function b(t){return null===t||62===t?R(t):(0,J.Ch)(t)?(i=b,O(t)):(e.consume(t),b)}function E(t){return null===t?n(t):63===t?(e.consume(t),y):(0,J.Ch)(t)?(i=E,O(t)):(e.consume(t),E)}function y(e){return 62===e?R(e):E(e)}function T(t){return(0,J.jv)(t)?(e.consume(t),S):n(t)}function S(t){return 45===t||(0,J.H$)(t)?(e.consume(t),S):function t(n){return(0,J.Ch)(n)?(i=t,O(n)):(0,J.xz)(n)?(e.consume(n),t):R(n)}(t)}function A(t){return 45===t||(0,J.H$)(t)?(e.consume(t),A):47===t||62===t||(0,J.z3)(t)?_(t):n(t)}function _(t){return 47===t?(e.consume(t),R):58===t||95===t||(0,J.jv)(t)?(e.consume(t),k):(0,J.Ch)(t)?(i=_,O(t)):(0,J.xz)(t)?(e.consume(t),_):R(t)}function k(t){return 45===t||46===t||58===t||95===t||(0,J.H$)(t)?(e.consume(t),k):function t(n){return 61===n?(e.consume(n),I):(0,J.Ch)(n)?(i=t,O(n)):(0,J.xz)(n)?(e.consume(n),t):_(n)}(t)}function I(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,v):(0,J.Ch)(t)?(i=I,O(t)):(0,J.xz)(t)?(e.consume(t),I):(e.consume(t),N)}function v(t){return t===r?(e.consume(t),r=void 0,C):null===t?n(t):(0,J.Ch)(t)?(i=v,O(t)):(e.consume(t),v)}function N(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||(0,J.z3)(t)?_(t):(e.consume(t),N)}function C(e){return 47===e||62===e||(0,J.z3)(e)?_(e):n(e)}function R(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function O(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),w}function w(t){return(0,J.xz)(t)?(0,Q.f)(e,x,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):x(t)}function x(t){return e.enter("htmlTextData"),i(t)}}}],91:eW,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return(0,J.Ch)(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},eF],93:eU,95:eY,96:{name:"codeText",tokenize:function(e,t,n){let r,a,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),i++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(l){return null===l?n(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),o):96===l?(a=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(a.type="codeTextData",s(o))}(l)):(0,J.Ch)(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):(e.enter("codeTextData"),s(l))}function s(t){return null===t||32===t||96===t||(0,J.Ch)(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),s)}},resolve:function(e){let t,n,r=e.length-4,a=3;if(("lineEnding"===e[3][1].type||"space"===e[a][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=a;++t13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let e5=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function e6(e,t,n){if(t)return t;let r=n.charCodeAt(0);if(35===r){let e=n.charCodeAt(1),t=120===e||88===e;return e4(n.slice(t?2:1),t?16:10)}return eP(n)||e}let e9={}.hasOwnProperty;function e8(e){return{line:e.line,column:e.column,offset:e.offset}}function e7(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+k({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+k({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+k({start:t.start,end:t.end})+") is still open")}function te(e){let t=this;t.parser=function(n){var a,i;let o,s,l,c;return"string"!=typeof(a={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=a,a=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(b),autolinkProtocol:c,autolinkEmail:c,atxHeading:r(m),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:r(f),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:r(f,a),codeText:r(function(){return{type:"inlineCode",value:""}},a),codeTextData:c,data:c,codeFlowValue:c,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(g),hardBreakTrailing:r(g),htmlFlow:r(h,a),htmlFlowData:c,htmlText:r(h,a),htmlTextData:c,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:a,link:r(b),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}},listOrdered:r(E,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(E),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:r(m),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];if(!t.depth){let n=this.sliceSerialize(e).length;t.depth=n}},autolink:o(),autolinkEmail:function(e){u.call(this,e);let t=this.stack[this.stack.length-1];t.url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){u.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:u,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t;let n=this.sliceSerialize(e),r=this.data.characterReferenceType;if(r)t=e4(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0;else{let e=eP(n);t=e}let a=this.stack[this.stack.length-1];a.value+=t},characterReference:function(e){let t=this.stack.pop();t.position.end=e8(e.end)},codeFenced:o(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e},codeFencedFenceMeta:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e},codeFlowValue:u,codeIndented:o(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}),codeTextData:u,data:u,definition:o(),definitionDestinationString:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,e_.d)(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e},emphasis:o(),hardBreakEscape:o(d),hardBreakTrailing:o(d),htmlFlow:o(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}),htmlFlowData:u,htmlText:o(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}),htmlTextData:u,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){let t=e.children;n.children=t}else n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(e5,e6),n.identifier=(0,e_.d)(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=e8(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(c.call(this,e),u.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,e_.d)(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e},resourceTitleString:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){let t=this.stack[this.stack.length-1];t.depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};(function e(t,n){let r=-1;for(;++r0){let e=o.tokenStack[o.tokenStack.length-1],t=e[1]||e7;t.call(o,void 0,e[0])}for(r.position={start:e8(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:e8(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u-1){let e=n[0];"string"==typeof e?n[0]=e.slice(a):n.shift()}o>0&&n.push(e[i].slice(0,o))}return n}(o,e)}function p(){let{line:e,column:t,offset:n,_index:a,_bufferIndex:i}=r;return{line:e,column:t,offset:n,_index:a,_bufferIndex:i}}function f(e,t){t.restore()}function m(e,t){return function(n,a,i){let o,u,d,f;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null,a=[...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]];return m(a)(e)};function m(e){return(o=e,u=0,0===e.length)?i:g(e[u])}function g(e){return function(n){return(f=function(){let e=p(),t=c.previous,n=c.currentConstruct,a=c.events.length,i=Array.from(s);return{restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=a,s=i,h()},from:a}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?E(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,b,E)(n)}}function b(t){return e(d,f),a}function E(e){return(f.restore(),++u55295&&i<57344){let t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(o=String.fromCharCode(i,t),a=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function tr(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function ta(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}var ti=n(21623);function to(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let a=e.all(t),i=a[0];i&&"text"===i.type?i.value="["+i.value:a.unshift({type:"text",value:"["});let o=a[a.length-1];return o&&"text"===o.type?o.value+=r:a.push({type:"text",value:r}),a}function ts(e){let t=e.spread;return null==t?e.children.length>1:t}function tl(e,t,n){let r=0,a=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(a-1);for(;9===t||32===t;)a--,t=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}let tc={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a={type:"element",tagName:"pre",properties:{},children:[a=e.applyData(t,a)]},e.patch(t,a),a},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n;let r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),i=tn(a.toLowerCase()),o=e.footnoteOrder.indexOf(a),s=e.footnoteCounts.get(a);void 0===s?(s=0,e.footnoteOrder.push(a),n=e.footnoteOrder.length):n=o+1,s+=1,e.footnoteCounts.set(a,s);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);let c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return to(e,t);let a={src:tn(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(a.title=r.title);let i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){let n={src:tn(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return to(e,t);let a={href:tn(r.url||"")};null!==r.title&&void 0!==r.title&&(a.title=r.title);let i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){let n={href:tn(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),a=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=(0,_.Pk)(t.children[1]),o=(0,_.rb)(t.children[t.children.length-1]);i&&o&&(r.position={start:i,end:o}),a.push(r)}let i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,a=r?r.indexOf(t):1,i=0===a?"th":"td",o=n&&"table"===n.type?n.align:void 0,s=o?o.length:t.children.length,l=-1,c=[];for(;++l0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(tl(t.slice(a),a>0,!1)),i.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:tu,yaml:tu,definition:tu,footnoteDefinition:tu};function tu(){}let td={}.hasOwnProperty,tp={};function tf(e,t){e.position&&(t.position=(0,_.FK)(e))}function tm(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,a=e.data.hProperties;if("string"==typeof t){if("element"===n.type)n.tagName=t;else{let e="children"in n?n.children:[n];n={type:"element",tagName:t,properties:{},children:e}}}"element"===n.type&&a&&Object.assign(n.properties,(0,tt.ZP)(a)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function tg(e,t){let n=t.data||{},r="value"in t&&!(td.call(n,"hProperties")||td.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function th(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r0&&n.push({type:"text",value:"\n"}),n}function tb(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function tE(e,t){let n=function(e,t){let n=t||tp,r=new Map,a=new Map,i=new Map,o={...tc,...n.handlers},s={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let f=i[i.length-1];if(f&&"element"===f.type&&"p"===f.tagName){let e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else i.push(...d);let m={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(a,m),s.push(m)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...(0,tt.ZP)(o),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&((0,c.ok)("children"in i),i.children.push({type:"text",value:"\n"},a)),i}function ty(e,t){return e&&"run"in e?async function(n,r){let a=tE(n,{file:r,...t});await e.run(a,r)}:function(n,r){return tE(n,{file:r,...t||e})}}function tT(e){if(e)throw e}var tS=n(94470);function tA(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let t_={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');tk(e);let r=0,a=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(a=i):(s=-1,a=o));return r===a?a=o:a<0&&(a=e.length),e.slice(r,a)},dirname:function(e){let t;if(tk(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;tk(e);let n=e.length,r=-1,a=0,i=-1,o=0;for(;n--;){let s=e.codePointAt(n);if(47===s){if(t){a=n+1;break}continue}r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==o&&(o=1):i>-1&&(o=-1)}return i<0||r<0||0===o||1===o&&i===r-1&&i===a+1?"":e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n2){if((r=a.lastIndexOf("/"))!==a.length-1){r<0?(a="",i=0):i=(a=a.slice(0,r)).length-1-a.lastIndexOf("/"),o=l,s=0;continue}}else if(a.length>0){a="",i=0,o=l,s=0;continue}}t&&(a=a.length>0?a+"/..":"..",i=2)}else a.length>0?a+="/"+e.slice(o+1,l):a=e.slice(o+1,l),i=l-o-1;o=l,s=0}else 46===n&&s>-1?s++:s=-1}return a}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function tk(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let tI={cwd:function(){return"/"}};function tv(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let tN=["history","path","basename","stem","extname","dirname"];class tC{constructor(e){let t,n;t=e?tv(e)?{path:e}:"string"==typeof e||e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e?{value:e}:e:{},this.cwd="cwd"in t?"":tI.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++rt.length;o&&t.push(r);try{i=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(i&&i.then&&"function"==typeof i.then?i.then(a,r):i instanceof Error?r(i):a(i))};function r(e,...a){n||(n=!0,t(e,...a))}function a(e){r(null,e)}})(s,a)(...o):r(null,...o)})(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new tL,t=-1;for(;++t0){let[r,...i]=t,o=n[a][1];tA(o)&&tA(r)&&(r=tS(!0,o,r)),n[a]=[e,r,...i]}}}}let tP=new tL().freeze();function tM(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function tF(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function tB(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function tU(e){if(!tA(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function tH(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function tG(e){return e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new tC(e)}let t$=[],tz={allowDangerousHtml:!0},tj=/^(https?|ircs?|mailto|xmpp)$/i,tY=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function tV(e){let t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,i=e.components,o=e.disallowedElements,s=e.rehypePlugins||t$,l=e.remarkPlugins||t$,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...tz}:tz,d=e.skipHtml,p=e.unwrapDisallowed,f=e.urlTransform||tW,m=tP().use(te).use(l).use(ty,u).use(s),g=new tC;for(let n of("string"==typeof r?g.value=r:(0,c.t1)("Unexpected value `"+r+"` for `children` prop, expected `string`"),t&&o&&(0,c.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),tY))Object.hasOwn(e,n.from)&&(0,c.t1)("Unexpected `"+n.from+"` prop, "+(n.to?"use `"+n.to+"` instead":"remove it")+" (see for more info)");let h=m.parse(g),E=m.runSync(h,g);return a&&(E={type:"element",tagName:"div",properties:{className:a},children:"root"===E.type?E.children:[E]}),(0,ti.Vn)(E,function(e,r,a){if("raw"===e.type&&a&&"number"==typeof r)return d?a.children.splice(r,1):a.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in j)if(Object.hasOwn(j,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=j[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=f(String(n||""),t,e))}}if("element"===e.type){let i=t?!t.includes(e.tagName):!!o&&o.includes(e.tagName);if(!i&&n&&"number"==typeof r&&(i=!n(e,r,a)),i&&a&&"number"==typeof r)return p&&e.children?a.children.splice(r,1,...e.children):a.children.splice(r,1),r}}),function(e,t){var n,r,a;let i;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let o=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=t.jsxDEV,i=function(e,t,r,a){let i=Array.isArray(r.children),s=(0,_.Pk)(e);return n(t,r,a,i,{columnNumber:s?s.column-1:void 0,fileName:o,lineNumber:s?s.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");r=t.jsx,a=t.jsxs,i=function(e,t,n,i){let o=Array.isArray(n.children),s=o?a:r;return i?s(t,n,i):s(t,n)}}let s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:o,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?b.YP:b.dy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},l=M(s,e,void 0);return l&&"string"!=typeof l?l:s.create(e,s.Fragment,{children:l||void 0},void 0)}(E,{Fragment:Y.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Y.jsx,jsxs:Y.jsxs,passKeys:!0,passNode:!0})}function tW(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t<0||a>-1&&t>a||n>-1&&t>n||r>-1&&t>r||tj.test(e.slice(0,t))?e:""}var tZ=n(14660),tq=n(87155),tK=["children","components","rehypePlugins"],tX=function(e){var t=e.children,n=e.components,r=e.rehypePlugins,c=(0,s.Z)(e,tK),u=(0,tq.r)();return l.createElement(tV,(0,a.Z)({components:(0,o.Z)({code:u},n),rehypePlugins:[tZ.Z].concat((0,i.Z)(r||[]))},c),t)}},84502:function(e,t,n){"use strict";n.d(t,{Z:function(){return I}});var r,a,i=n(45987),o=n(74902),s=n(4942),l=n(67294),c=n(87462);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(function(e){if(0===e.length||1===e.length)return e;var t,n=e.join(".");return p[n]||(p[n]=0===(t=e.length)||1===t?e:2===t?[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])]:3===t?[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])]:t>=4?[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]:void 0),p[n]})(e.filter(function(e){return"token"!==e})).reduce(function(e,t){return d(d({},e),n[t])},t)}(s.className,Object.assign({},s.style,void 0===a?{}:a),r)})}else h=d(d({},s),{},{className:s.className.join(" ")});var S=b(n.children);return l.createElement(f,(0,c.Z)({key:o},h),S)}}({node:e,stylesheet:n,useInlineStyles:r,key:"code-segement".concat(t)})})}function A(e){return e&&void 0!==e.highlightAuto}var _=n(98695),k=(r=n.n(_)(),a={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}},function(e){var t=e.language,n=e.children,s=e.style,c=void 0===s?a:s,u=e.customStyle,d=void 0===u?{}:u,p=e.codeTagProps,m=void 0===p?{className:t?"language-".concat(t):void 0,style:g(g({},c['code[class*="language-"]']),c['code[class*="language-'.concat(t,'"]')])}:p,_=e.useInlineStyles,k=void 0===_||_,I=e.showLineNumbers,v=void 0!==I&&I,N=e.showInlineLineNumbers,C=void 0===N||N,R=e.startingLineNumber,O=void 0===R?1:R,w=e.lineNumberContainerStyle,x=e.lineNumberStyle,D=void 0===x?{}:x,L=e.wrapLines,P=e.wrapLongLines,M=void 0!==P&&P,F=e.lineProps,B=void 0===F?{}:F,U=e.renderer,H=e.PreTag,G=void 0===H?"pre":H,$=e.CodeTag,z=void 0===$?"code":$,j=e.code,Y=void 0===j?(Array.isArray(n)?n[0]:n)||"":j,V=e.astGenerator,W=(0,i.Z)(e,f);V=V||r;var Z=v?l.createElement(b,{containerStyle:w,codeStyle:m.style||{},numberStyle:D,startingLineNumber:O,codeString:Y}):null,q=c.hljs||c['pre[class*="language-"]']||{backgroundColor:"#fff"},K=A(V)?"hljs":"prismjs",X=k?Object.assign({},W,{style:Object.assign({},q,d)}):Object.assign({},W,{className:W.className?"".concat(K," ").concat(W.className):K,style:Object.assign({},d)});if(M?m.style=g(g({},m.style),{},{whiteSpace:"pre-wrap"}):m.style=g(g({},m.style),{},{whiteSpace:"pre"}),!V)return l.createElement(G,X,Z,l.createElement(z,m,Y));(void 0===L&&U||M)&&(L=!0),U=U||S;var Q=[{type:"text",value:Y}],J=function(e){var t=e.astGenerator,n=e.language,r=e.code,a=e.defaultCodeValue;if(A(t)){var i=-1!==t.listLanguages().indexOf(n);return"text"===n?{value:a,language:"text"}:i?t.highlight(n,r):t.highlightAuto(r)}try{return n&&"text"!==n?{value:t.highlight(r,n)}:{value:a}}catch(e){return{value:a}}}({astGenerator:V,language:t,code:Y,defaultCodeValue:Q});null===J.language&&(J.value=Q);var ee=J.value.length+O,et=function(e,t,n,r,a,i,s,l,c){var u,d=function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=0;a2&&void 0!==arguments[2]?arguments[2]:[];return t||o.length>0?function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return T({children:e,lineNumber:t,lineNumberStyle:l,largestLineNumber:s,showInlineLineNumbers:a,lineProps:n,className:i,showLineNumbers:r,wrapLongLines:c})}(e,i,o):function(e,t){if(r&&t&&a){var n=y(l,t,s);e.unshift(E(t,n))}return e}(e,i)}for(;m code[class*="language-"]':{background:"#111b27",padding:"0.1em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"#8da1b9"},prolog:{color:"#8da1b9"},doctype:{color:"#8da1b9"},cdata:{color:"#8da1b9"},punctuation:{color:"#e3eaf2"},"delimiter.important":{color:"#66cccc",fontWeight:"inherit"},"selector.parent":{color:"#66cccc"},tag:{color:"#66cccc"},"tag.punctuation":{color:"#66cccc"},"attr-name":{color:"#e6d37a"},boolean:{color:"#e6d37a"},"boolean.important":{color:"#e6d37a"},number:{color:"#e6d37a"},constant:{color:"#e6d37a"},"selector.attribute":{color:"#e6d37a"},"class-name":{color:"#6cb8e6"},key:{color:"#6cb8e6"},parameter:{color:"#6cb8e6"},property:{color:"#6cb8e6"},"property-access":{color:"#6cb8e6"},variable:{color:"#6cb8e6"},"attr-value":{color:"#91d076"},inserted:{color:"#91d076"},color:{color:"#91d076"},"selector.value":{color:"#91d076"},string:{color:"#91d076"},"string.url-link":{color:"#91d076"},builtin:{color:"#f4adf4"},"keyword-array":{color:"#f4adf4"},package:{color:"#f4adf4"},regex:{color:"#f4adf4"},function:{color:"#c699e3"},"selector.class":{color:"#c699e3"},"selector.id":{color:"#c699e3"},"atrule.rule":{color:"#e9ae7e"},combinator:{color:"#e9ae7e"},keyword:{color:"#e9ae7e"},operator:{color:"#e9ae7e"},"pseudo-class":{color:"#e9ae7e"},"pseudo-element":{color:"#e9ae7e"},selector:{color:"#e9ae7e"},unit:{color:"#e9ae7e"},deleted:{color:"#cd6660"},important:{color:"#cd6660",fontWeight:"bold"},"keyword-this":{color:"#6cb8e6",fontWeight:"bold"},this:{color:"#6cb8e6",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},entity:{cursor:"help"},".language-markdown .token.title":{color:"#6cb8e6",fontWeight:"bold"},".language-markdown .token.title .token.punctuation":{color:"#6cb8e6",fontWeight:"bold"},".language-markdown .token.blockquote.punctuation":{color:"#f4adf4"},".language-markdown .token.code":{color:"#66cccc"},".language-markdown .token.hr.punctuation":{color:"#6cb8e6"},".language-markdown .token.url .token.content":{color:"#91d076"},".language-markdown .token.url-link":{color:"#e6d37a"},".language-markdown .token.list.punctuation":{color:"#f4adf4"},".language-markdown .token.table-header":{color:"#e3eaf2"},".language-json .token.operator":{color:"#e3eaf2"},".language-scss .token.variable":{color:"#66cccc"},"token.tab:not(:empty):before":{color:"#8da1b9"},"token.cr:before":{color:"#8da1b9"},"token.lf:before":{color:"#8da1b9"},"token.space:before":{color:"#8da1b9"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{color:"#111b27",background:"#6cb8e6"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{color:"#111b27",background:"#6cb8e6"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{color:"#111b27",background:"#8da1b9"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{color:"#111b27",background:"#8da1b9"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{color:"#111b27",background:"#8da1b9"},".line-highlight.line-highlight":{background:"linear-gradient(to right, #3c526d5f 70%, #3c526d55)"},".line-highlight.line-highlight:before":{backgroundColor:"#8da1b9",color:"#111b27",boxShadow:"0 1px #3c526d"},".line-highlight.line-highlight[data-end]:after":{backgroundColor:"#8da1b9",color:"#111b27",boxShadow:"0 1px #3c526d"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"#8da1b918"},".line-numbers.line-numbers .line-numbers-rows":{borderRight:"1px solid #0b121b",background:"#0b121b7a"},".line-numbers .line-numbers-rows > span:before":{color:"#8da1b9da"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"#e6d37a"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"#e6d37a"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"#e6d37a"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"#f4adf4"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"#f4adf4"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"#f4adf4"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"#6cb8e6"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"#6cb8e6"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"#6cb8e6"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"#c699e3"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"#c699e3"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"#c699e3"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"#cd66601f"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"#cd66601f"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"#91d0761f"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"#91d0761f"},".command-line .command-line-prompt":{borderRight:"1px solid #0b121b"},".command-line .command-line-prompt > span:before":{color:"#8da1b9da"}}},12187:function(e,t){"use strict";t.Z={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}}},89144:function(e,t){"use strict";t.Z={'code[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"]::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},prolog:{color:"hsl(230, 4%, 64%)"},cdata:{color:"hsl(230, 4%, 64%)"},doctype:{color:"hsl(230, 8%, 24%)"},punctuation:{color:"hsl(230, 8%, 24%)"},entity:{color:"hsl(230, 8%, 24%)",cursor:"help"},"attr-name":{color:"hsl(35, 99%, 36%)"},"class-name":{color:"hsl(35, 99%, 36%)"},boolean:{color:"hsl(35, 99%, 36%)"},constant:{color:"hsl(35, 99%, 36%)"},number:{color:"hsl(35, 99%, 36%)"},atrule:{color:"hsl(35, 99%, 36%)"},keyword:{color:"hsl(301, 63%, 40%)"},property:{color:"hsl(5, 74%, 59%)"},tag:{color:"hsl(5, 74%, 59%)"},symbol:{color:"hsl(5, 74%, 59%)"},deleted:{color:"hsl(5, 74%, 59%)"},important:{color:"hsl(5, 74%, 59%)"},selector:{color:"hsl(119, 34%, 47%)"},string:{color:"hsl(119, 34%, 47%)"},char:{color:"hsl(119, 34%, 47%)"},builtin:{color:"hsl(119, 34%, 47%)"},inserted:{color:"hsl(119, 34%, 47%)"},regex:{color:"hsl(119, 34%, 47%)"},"attr-value":{color:"hsl(119, 34%, 47%)"},"attr-value > .token.punctuation":{color:"hsl(119, 34%, 47%)"},variable:{color:"hsl(221, 87%, 60%)"},operator:{color:"hsl(221, 87%, 60%)"},function:{color:"hsl(221, 87%, 60%)"},url:{color:"hsl(198, 99%, 37%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(230, 8%, 24%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(230, 8%, 24%)"},".language-css .token.selector":{color:"hsl(5, 74%, 59%)"},".language-css .token.property":{color:"hsl(230, 8%, 24%)"},".language-css .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.string.url":{color:"hsl(119, 34%, 47%)"},".language-css .token.important":{color:"hsl(301, 63%, 40%)"},".language-css .token.atrule .token.rule":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.operator":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(344, 84%, 43%)"},".language-json .token.operator":{color:"hsl(230, 8%, 24%)"},".language-json .token.null.keyword":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.url":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.operator":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.content":{color:"hsl(221, 87%, 60%)"},".language-markdown .token.url > .token.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.url-reference.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(119, 34%, 47%)"},".language-markdown .token.bold .token.content":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.italic .token.content":{color:"hsl(301, 63%, 40%)"},".language-markdown .token.strike .token.content":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.list.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(5, 74%, 59%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.cr:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.lf:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.space:before":{color:"hsla(230, 8%, 24%, 0.2)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},".line-highlight.line-highlight":{background:"hsla(230, 8%, 24%, 0.05)"},".line-highlight.line-highlight:before":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(230, 8%, 24%, 0.05)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".command-line .command-line-prompt":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(230, 1%, 62%)"},".command-line .command-line-prompt > span:before":{color:"hsl(230, 1%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(301, 63%, 40%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(0, 0, 95%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(0, 0, 95%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(0, 0, 95%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(0, 0, 95%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(0, 0%, 100%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(230, 8%, 24%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(230, 8%, 24%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(230, 8%, 24%)"}}},89435:function(e){"use strict";var t;e.exports=function(e){var n,r="&"+e+";";return(t=t||document.createElement("i")).innerHTML=r,(59!==(n=t.textContent).charCodeAt(n.length-1)||"semi"===e)&&n!==r&&n}},57574:function(e,t,n){"use strict";var r=n(21922),a=n(93580),i=n(46195),o=n(79480),s=n(7961),l=n(89435);e.exports=function(e,t){var n,i,o={};for(i in t||(t={}),p)n=t[i],o[i]=null==n?p[i]:n;return(o.position.indent||o.position.start)&&(o.indent=o.position.indent||[],o.position=o.position.start),function(e,t){var n,i,o,p,y,T,S,A,_,k,I,v,N,C,R,O,w,x,D,L,P,M=t.additional,F=t.nonTerminated,B=t.text,U=t.reference,H=t.warning,G=t.textContext,$=t.referenceContext,z=t.warningContext,j=t.position,Y=t.indent||[],V=e.length,W=0,Z=-1,q=j.column||1,K=j.line||1,X="",Q=[];for("string"==typeof M&&(M=M.charCodeAt(0)),x=J(),k=H?function(e,t){var n=J();n.column+=t,n.offset+=t,H.call(z,E[e],n,e)}:d,W--,V++;++W=55296&&n<=57343||n>1114111?(k(7,L),A=u(65533)):A in a?(k(6,L),A=a[A]):(v="",((i=A)>=1&&i<=8||11===i||i>=13&&i<=31||i>=127&&i<=159||i>=64976&&i<=65007||(65535&i)==65535||(65535&i)==65534)&&k(6,L),A>65535&&(A-=65536,v+=u(A>>>10|55296),A=56320|1023&A),A=v+u(A))):O!==f&&k(4,L)),A?(ee(),x=J(),W=P-1,q+=P-R+1,Q.push(A),D=J(),D.offset++,U&&U.call($,A,{start:x,end:D},e.slice(R-1,P)),x=D):(X+=T=e.slice(R-1,P),q+=T.length,W=P-1)}else 10===S&&(K++,Z++,q=0),S==S?(X+=u(S),q++):ee();return Q.join("");function J(){return{line:K,column:q,offset:W+(j.offset||0)}}function ee(){X&&(Q.push(X),B&&B.call(G,X,{start:x,end:J()}),X="")}}(e,o)};var c={}.hasOwnProperty,u=String.fromCharCode,d=Function.prototype,p={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},f="named",m="hexadecimal",g="decimal",h={};h[m]=16,h[g]=10;var b={};b[f]=s,b[g]=i,b[m]=o;var E={};E[1]="Named character references must be terminated by a semicolon",E[2]="Numeric character references must be terminated by a semicolon",E[3]="Named character references cannot be empty",E[4]="Numeric character references cannot be empty",E[5]="Named character references must be known",E[6]="Numeric character references cannot be disallowed",E[7]="Numeric character references cannot be outside the permissible Unicode range"},11215:function(e,t,n){"use strict";var r,a,i="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{},o=(a=(r="Prism"in i)?i.Prism:void 0,function(){r?i.Prism=a:delete i.Prism,r=void 0,a=void 0});i.Prism={manual:!0,disableWorkerMessageHandler:!0};var s=n(31742),l=n(57574),c=n(59216),u=n(2717),d=n(12049),p=n(29726),f=n(36155);o();var m={}.hasOwnProperty;function g(){}g.prototype=c;var h=new g;function b(e){if("function"!=typeof e||!e.displayName)throw Error("Expected `function` for `grammar`, got `"+e+"`");void 0===h.languages[e.displayName]&&e(h)}e.exports=h,h.highlight=function(e,t){var n,r=c.highlight;if("string"!=typeof e)throw Error("Expected `string` for `value`, got `"+e+"`");if("Object"===h.util.type(t))n=t,t=null;else{if("string"!=typeof t)throw Error("Expected `string` for `name`, got `"+t+"`");if(m.call(h.languages,t))n=h.languages[t];else throw Error("Unknown language: `"+t+"` is not registered")}return r.call(this,e,n,t)},h.register=b,h.alias=function(e,t){var n,r,a,i,o=h.languages,s=e;for(n in t&&((s={})[e]=t),s)for(a=(r="string"==typeof(r=s[n])?[r]:r).length,i=-1;++i]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}e.exports=t,t.displayName="abap",t.aliases=[]},68313:function(e){"use strict";function t(e){var t;t="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)",e.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+t+"|<"+t+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}}e.exports=t,t.displayName="abnf",t.aliases=[]},21207:function(e){"use strict";function t(e){e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}e.exports=t,t.displayName="actionscript",t.aliases=[]},89693:function(e){"use strict";function t(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}e.exports=t,t.displayName="ada",t.aliases=[]},24001:function(e){"use strict";function t(e){e.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}}e.exports=t,t.displayName="agda",t.aliases=[]},18018:function(e){"use strict";function t(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}e.exports=t,t.displayName="al",t.aliases=[]},36363:function(e){"use strict";function t(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}e.exports=t,t.displayName="antlr4",t.aliases=["g4"]},35281:function(e){"use strict";function t(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}e.exports=t,t.displayName="apacheconf",t.aliases=[]},10433:function(e,t,n){"use strict";var r=n(11114);function a(e){e.register(r),function(e){var t=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,n=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return t.source});function r(e){return RegExp(e.replace(//g,function(){return n}),"i")}var a={keyword:t,punctuation:/[()\[\]{};,:.<>]/};e.languages.apex={comment:e.languages.clike.comment,string:e.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:e.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:r(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:a},{pattern:r(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:a},{pattern:r(/(?=\s*\w+\s*[;=,(){:])/.source),inside:a}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:t,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}e.exports=a,a.displayName="apex",a.aliases=[]},84039:function(e){"use strict";function t(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}e.exports=t,t.displayName="apl",t.aliases=[]},71336:function(e){"use strict";function t(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}e.exports=t,t.displayName="applescript",t.aliases=[]},4481:function(e){"use strict";function t(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}e.exports=t,t.displayName="aql",t.aliases=[]},2159:function(e,t,n){"use strict";var r=n(80096);function a(e){e.register(r),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}e.exports=a,a.displayName="arduino",a.aliases=["ino"]},60274:function(e){"use strict";function t(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}e.exports=t,t.displayName="arff",t.aliases=[]},18738:function(e){"use strict";function t(e){!function(e){var t={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},n=e.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:t,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:t.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:t,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function r(e){e=e.split(" ");for(var t={},r=0,a=e.length;r>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}e.exports=t,t.displayName="asmatmel",t.aliases=[]},78734:function(e,t,n){"use strict";var r=n(61958);function a(e){e.register(r),e.languages.aspnet=e.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}e.exports=a,a.displayName="aspnet",a.aliases=[]},6681:function(e){"use strict";function t(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}e.exports=t,t.displayName="autohotkey",t.aliases=[]},53358:function(e){"use strict";function t(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}e.exports=t,t.displayName="autoit",t.aliases=[]},81700:function(e){"use strict";function t(e){!function(e){function t(e,t,n){return RegExp(e.replace(/<<(\d+)>>/g,function(e,n){return t[+n]}),n||"")}var n=/bool|clip|float|int|string|val/.source,r=[[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|")].join("|");e.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:t(/\b(?:<<0>>)\s+("?)\w+\1/.source,[n],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:t(/\b(?:<<0>>)\b/.source,[r],"i"),alias:"function"},"type-cast":{pattern:t(/\b(?:<<0>>)(?=\s*\()/.source,[n],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},e.languages.avs=e.languages.avisynth}(e)}e.exports=t,t.displayName="avisynth",t.aliases=["avs"]},37219:function(e){"use strict";function t(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}e.exports=t,t.displayName="avroIdl",t.aliases=[]},6979:function(e){"use strict";function t(e){!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,o=0;o?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}e.exports=t,t.displayName="basic",t.aliases=[]},94781:function(e){"use strict";function t(e){var t,n,r,a;t=/%%?[~:\w]+%?|!\S+!/,n={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},r=/"(?:[\\"]"|[^"])*"(?!")/,a=/(?:\b|-)\d+\b/,e.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:r,parameter:n,variable:t,number:a,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:r,parameter:n,variable:t,number:a,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:r,parameter:n,variable:[t,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:a,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:r,parameter:n,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:t,number:a,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}}e.exports=t,t.displayName="batch",t.aliases=[]},62260:function(e){"use strict";function t(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}e.exports=t,t.displayName="bbcode",t.aliases=["shortcode"]},36153:function(e){"use strict";function t(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}e.exports=t,t.displayName="bicep",t.aliases=[]},59258:function(e){"use strict";function t(e){e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}e.exports=t,t.displayName="birb",t.aliases=[]},62890:function(e,t,n){"use strict";var r=n(65806);function a(e){e.register(r),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}e.exports=a,a.displayName="bison",a.aliases=[]},15958:function(e){"use strict";function t(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}e.exports=t,t.displayName="bnf",t.aliases=["rbnf"]},61321:function(e){"use strict";function t(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}e.exports=t,t.displayName="brainfuck",t.aliases=[]},77856:function(e){"use strict";function t(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}e.exports=t,t.displayName="brightscript",t.aliases=[]},90741:function(e){"use strict";function t(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}e.exports=t,t.displayName="bro",t.aliases=[]},83410:function(e){"use strict";function t(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}e.exports=t,t.displayName="bsl",t.aliases=[]},65806:function(e){"use strict";function t(e){e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}e.exports=t,t.displayName="c",t.aliases=[]},33039:function(e){"use strict";function t(e){e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}e.exports=t,t.displayName="cfscript",t.aliases=[]},85082:function(e,t,n){"use strict";var r=n(80096);function a(e){e.register(r),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}e.exports=a,a.displayName="chaiscript",a.aliases=[]},79415:function(e){"use strict";function t(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}e.exports=t,t.displayName="cil",t.aliases=[]},29726:function(e){"use strict";function t(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}e.exports=t,t.displayName="clike",t.aliases=[]},62849:function(e){"use strict";function t(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}e.exports=t,t.displayName="clojure",t.aliases=[]},55773:function(e){"use strict";function t(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}e.exports=t,t.displayName="cmake",t.aliases=[]},32762:function(e){"use strict";function t(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}e.exports=t,t.displayName="cobol",t.aliases=[]},43576:function(e){"use strict";function t(e){var t,n;t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"},e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}e.exports=t,t.displayName="coffeescript",t.aliases=["coffee"]},71794:function(e){"use strict";function t(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}e.exports=t,t.displayName="concurnas",t.aliases=["conc"]},1315:function(e){"use strict";function t(e){!function(e){for(var t=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,n=0;n<2;n++)t=t.replace(//g,function(){return t});t=t.replace(//g,"[]"),e.languages.coq={comment:RegExp(t),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return t})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(t),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}}(e)}e.exports=t,t.displayName="coq",t.aliases=[]},80096:function(e,t,n){"use strict";var r=n(65806);function a(e){var t,n;e.register(r),t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return t.source}),e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}e.exports=a,a.displayName="cpp",a.aliases=[]},99176:function(e,t,n){"use strict";var r=n(56939);function a(e){e.register(r),e.languages.crystal=e.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,e.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),e.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:e.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:e.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}e.exports=a,a.displayName="crystal",a.aliases=[]},61958:function(e){"use strict";function t(e){!function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,function(e,n){return"(?:"+t[+n]+")"})}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n>/g,function(){return"(?:"+e+")"});return e.replace(/<>/g,"[^\\s\\S]")}var a={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function i(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var o=i(a.typeDeclaration),s=RegExp(i(a.type+" "+a.typeDeclaration+" "+a.contextual+" "+a.other)),l=i(a.typeDeclaration+" "+a.contextual+" "+a.other),c=i(a.type+" "+a.typeDeclaration+" "+a.other),u=r(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),d=r(/\((?:[^()]|<>)*\)/.source,2),p=/@?\b[A-Za-z_]\w*\b/.source,f=t(/<<0>>(?:\s*<<1>>)?/.source,[p,u]),m=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[l,f]),g=/\[\s*(?:,\s*)*\]/.source,h=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,g]),b=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[u,d,g]),E=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[b]),y=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,m,g]),T={keyword:s,punctuation:/[<>()?,.:[\]]/},S=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,A=/"(?:\\.|[^\\"\r\n])*"/.source,_=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[_]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:T},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[p,y]),lookbehind:!0,inside:T},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[p]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[o,f]),lookbehind:!0,inside:T},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:T},{pattern:n(/(\bwhere\s+)<<0>>/.source,[p]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[h]),lookbehind:!0,inside:T},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[y,c,p]),inside:T}],keyword:s,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[p]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[p]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[d]),lookbehind:!0,alias:"class-name",inside:T},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[y,m]),inside:T,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[y]),lookbehind:!0,inside:T,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[p,u]),inside:{function:n(/^<<0>>/.source,[p]),generic:{pattern:RegExp(u),alias:"class-name",inside:T}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[o,f,p,y,s.source,d,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[f,d]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:s,"class-name":{pattern:RegExp(y),greedy:!0,inside:T},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var k=A+"|"+S,I=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[k]),v=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[I]),2),N=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,C=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,v]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[N,C]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[N]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[v]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var R=/:[^}\r\n]+/.source,O=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[I]),2),w=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[O,R]),x=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[k]),2),D=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[x,R]);function L(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,R]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[w]),lookbehind:!0,greedy:!0,inside:L(w,O)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[D]),lookbehind:!0,greedy:!0,inside:L(D,x)}],char:{pattern:RegExp(S),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(e)}e.exports=t,t.displayName="csharp",t.aliases=["dotnet","cs"]},90312:function(e,t,n){"use strict";var r=n(61958);function a(e){e.register(r),function(e){var t=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,n=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function r(e,r){for(var a=0;a/g,function(){return"(?:"+e+")"});return e.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+n+")").replace(//g,"(?:"+t+")")}var a=r(/\((?:[^()'"@/]|||)*\)/.source,2),i=r(/\[(?:[^\[\]'"@/]|||)*\]/.source,2),o=r(/\{(?:[^{}'"@/]|||)*\}/.source,2),s=r(/<(?:[^<>'"@/]|||)*>/.source,2),l=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,c=/(?!\d)[^\s>\/=$<%]+/.source+l+/\s*\/?>/.source,u=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+l+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source)+c+"|"+r(/<\1/.source+l+/\s*>/.source+"(?:"+(/[^<]/.source+"|")+/<\/?(?!\1\b)/.source+c+"|)*"+/<\/\1\s*>/.source,2)+")*"+/<\/\1\s*>/.source+"|"+/|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:a})}(e)}e.exports=t,t.displayName="cssExtras",t.aliases=[]},12049:function(e){"use strict";function t(e){var t,n;t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,(n=e.languages.markup)&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}e.exports=t,t.displayName="css",t.aliases=[]},78090:function(e){"use strict";function t(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}e.exports=t,t.displayName="csv",t.aliases=[]},40315:function(e){"use strict";function t(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}e.exports=t,t.displayName="cypher",t.aliases=[]},7902:function(e){"use strict";function t(e){e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}e.exports=t,t.displayName="d",t.aliases=[]},28651:function(e){"use strict";function t(e){var t,n,r;t=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r={pattern:RegExp((n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source)+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}},e.languages.dart=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),e.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.dart}}},string:/[\s\S]+/}},string:void 0}),e.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),e.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}e.exports=t,t.displayName="dart",t.aliases=[]},55579:function(e){"use strict";function t(e){e.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}}e.exports=t,t.displayName="dataweave",t.aliases=[]},93685:function(e){"use strict";function t(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}e.exports=t,t.displayName="dax",t.aliases=[]},13934:function(e){"use strict";function t(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}e.exports=t,t.displayName="dhall",t.aliases=[]},93336:function(e){"use strict";function t(e){var t;e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]},Object.keys(t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"}).forEach(function(n){var r=t[n],a=[];/^\w+$/.test(n)||a.push(/\w+/.exec(n)[0]),"diff"===n&&a.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}e.exports=t,t.displayName="diff",t.aliases=[]},13294:function(e,t,n){"use strict";var r=n(93205);function a(e){var t,n;e.register(r),e.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/},t=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,n=e.languages["markup-templating"],e.hooks.add("before-tokenize",function(e){n.buildPlaceholders(e,"django",t)}),e.hooks.add("after-tokenize",function(e){n.tokenizePlaceholders(e,"django")}),e.languages.jinja2=e.languages.django,e.hooks.add("before-tokenize",function(e){n.buildPlaceholders(e,"jinja2",t)}),e.hooks.add("after-tokenize",function(e){n.tokenizePlaceholders(e,"jinja2")})}e.exports=a,a.displayName="django",a.aliases=["jinja2"]},38223:function(e){"use strict";function t(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}e.exports=t,t.displayName="dnsZoneFile",t.aliases=[]},97266:function(e){"use strict";function t(e){!function(e){var t=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,n=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return t}),r=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,a=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return r}),i={pattern:RegExp(r),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function s(e,t){return RegExp(e=e.replace(//g,function(){return a}).replace(//g,function(){return n}),t)}e.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:s(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[i,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:s(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:i,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},e.languages.dockerfile=e.languages.docker}(e)}e.exports=t,t.displayName="docker",t.aliases=["dockerfile"]},77125:function(e){"use strict";function t(e){!function(e){var t="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",n={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:e.languages.markup}};function r(e,n){return RegExp(e.replace(//g,function(){return t}),n)}e.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:r(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:n},"attr-value":{pattern:r(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:n},"attr-name":{pattern:r(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:n},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:r(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:n},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},e.languages.gv=e.languages.dot}(e)}e.exports=t,t.displayName="dot",t.aliases=["gv"]},36500:function(e){"use strict";function t(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}e.exports=t,t.displayName="ebnf",t.aliases=[]},30296:function(e){"use strict";function t(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}e.exports=t,t.displayName="editorconfig",t.aliases=[]},50115:function(e){"use strict";function t(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}e.exports=t,t.displayName="eiffel",t.aliases=[]},20791:function(e,t,n){"use strict";var r=n(93205);function a(e){e.register(r),e.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:e.languages.javascript}},e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"ejs",/<%(?!%)[\s\S]+?%>/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"ejs")}),e.languages.eta=e.languages.ejs}e.exports=a,a.displayName="ejs",a.aliases=["eta"]},11974:function(e){"use strict";function t(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}e.exports=t,t.displayName="elixir",t.aliases=[]},8645:function(e){"use strict";function t(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}e.exports=t,t.displayName="elm",t.aliases=[]},84790:function(e,t,n){"use strict";var r=n(56939),a=n(93205);function i(e){e.register(r),e.register(a),e.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:e.languages.ruby}},e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"erb",/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"erb")})}e.exports=i,i.displayName="erb",i.aliases=[]},4502:function(e){"use strict";function t(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}e.exports=t,t.displayName="erlang",t.aliases=[]},66055:function(e,t,n){"use strict";var r=n(59803),a=n(93205);function i(e){e.register(r),e.register(a),e.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:e.languages.lua}},e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"etlua",/<%[\s\S]+?%>/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"etlua")})}e.exports=i,i.displayName="etlua",i.aliases=[]},34668:function(e){"use strict";function t(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}e.exports=t,t.displayName="excelFormula",t.aliases=[]},95126:function(e){"use strict";function t(e){var t,n,r,a,i,o;r={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:t={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/}},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:t},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:t}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:(n={number:/\\[^\s']|%\w/}).number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:n},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:n}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:n}},a=function(e){return(e+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},i=function(e){return RegExp("(^|\\s)(?:"+e.map(a).join("|")+")(?=\\s|$)")},Object.keys(o={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]}).forEach(function(e){r[e].pattern=i(o[e])}),r.combinators.pattern=i(["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"]),e.languages.factor=r}e.exports=t,t.displayName="factor",t.aliases=[]},90618:function(e){"use strict";function t(e){e.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}e.exports=t,t.displayName="firestoreSecurityRules",t.aliases=[]},37225:function(e){"use strict";function t(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}e.exports=t,t.displayName="flow",t.aliases=[]},16725:function(e){"use strict";function t(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}e.exports=t,t.displayName="fortran",t.aliases=[]},95559:function(e){"use strict";function t(e){e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}e.exports=t,t.displayName="fsharp",t.aliases=[]},82114:function(e,t,n){"use strict";var r=n(93205);function a(e){e.register(r),function(e){for(var t=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,n=0;n<2;n++)t=t.replace(//g,function(){return t});t=t.replace(//g,/[^\s\S]/.source);var r={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return t})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return t})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};r.string[1].inside.interpolation.inside.rest=r,e.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:r}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:r}}}},e.hooks.add("before-tokenize",function(n){var r=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return t}),"gi");e.languages["markup-templating"].buildPlaceholders(n,"ftl",r)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"ftl")})}(e)}e.exports=a,a.displayName="ftl",a.aliases=[]},6806:function(e){"use strict";function t(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}e.exports=t,t.displayName="gap",t.aliases=[]},12208:function(e){"use strict";function t(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}e.exports=t,t.displayName="gcode",t.aliases=[]},62728:function(e){"use strict";function t(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}e.exports=t,t.displayName="gdscript",t.aliases=[]},81549:function(e){"use strict";function t(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}e.exports=t,t.displayName="gedcom",t.aliases=[]},6024:function(e){"use strict";function t(e){var t;t=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source,e.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+t+")(?:"+t+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(t),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}}e.exports=t,t.displayName="gherkin",t.aliases=[]},13600:function(e){"use strict";function t(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}e.exports=t,t.displayName="git",t.aliases=[]},3322:function(e,t,n){"use strict";var r=n(65806);function a(e){e.register(r),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}e.exports=a,a.displayName="glsl",a.aliases=[]},53877:function(e){"use strict";function t(e){e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}e.exports=t,t.displayName="gml",t.aliases=[]},60794:function(e){"use strict";function t(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}e.exports=t,t.displayName="gn",t.aliases=["gni"]},20222:function(e){"use strict";function t(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}e.exports=t,t.displayName="goModule",t.aliases=[]},51519:function(e){"use strict";function t(e){e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}e.exports=t,t.displayName="go",t.aliases=[]},94055:function(e){"use strict";function t(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(e){if("graphql"===e.language)for(var t=e.tokens.filter(function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type}),n=0;n0)){var s=d(/^\{$/,/^\}$/);if(-1===s)continue;for(var l=n;l=0&&p(c,"variable-input")}}}}function u(e,r){r=r||0;for(var a=0;a]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),e.hooks.add("wrap",function(t){if("groovy"===t.language&&"string"===t.type){var n=t.content.value[0];if("'"!=n){var r=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===n&&(r=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),t.content.value=t.content.value.replace(/</g,"<").replace(/&/g,"&"),t.content=e.highlight(t.content.value,{expression:{pattern:r,lookbehind:!0,inside:e.languages.groovy}}),t.classes.push("/"===n?"regex":"gstring")}}})}e.exports=t,t.displayName="groovy",t.aliases=[]},29536:function(e,t,n){"use strict";var r=n(56939);function a(e){e.register(r),function(e){e.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:e.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:e.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:e.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:e.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:e.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:e.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:e.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var t=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],n={},r=0,a=t.length;r@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")}),e.languages.hbs=e.languages.handlebars}e.exports=a,a.displayName="handlebars",a.aliases=["hbs"]},58090:function(e){"use strict";function t(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}e.exports=t,t.displayName="haskell",t.aliases=["hs"]},95121:function(e){"use strict";function t(e){e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}e.exports=t,t.displayName="haxe",t.aliases=[]},59904:function(e){"use strict";function t(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}e.exports=t,t.displayName="hcl",t.aliases=[]},9436:function(e,t,n){"use strict";var r=n(65806);function a(e){e.register(r),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}e.exports=a,a.displayName="hlsl",a.aliases=[]},60591:function(e){"use strict";function t(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}e.exports=t,t.displayName="hoon",t.aliases=[]},76942:function(e){"use strict";function t(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}e.exports=t,t.displayName="hpkp",t.aliases=[]},60561:function(e){"use strict";function t(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}e.exports=t,t.displayName="hsts",t.aliases=[]},49660:function(e){"use strict";function t(e){!function(e){function t(e){return RegExp("(^(?:"+e+"):[ ]*(?![ ]))[^]+","i")}e.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:e.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:t(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:e.languages.csp},{pattern:t(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:e.languages.hpkp},{pattern:t(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:e.languages.hsts},{pattern:t(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var n,r=e.languages,a={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},i={"application/json":!0,"application/xml":!0};for(var o in a)if(a[o]){n=n||{};var s=i[o]?function(e){var t=e.replace(/^[a-z]+\//,"");return"(?:"+e+"|\\w+/(?:[\\w.-]+\\+)+"+t+"(?![+\\w.-]))"}(o):o;n[o.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+s+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:a[o]}}n&&e.languages.insertBefore("http","header",n)}(e)}e.exports=t,t.displayName="http",t.aliases=[]},30615:function(e){"use strict";function t(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}e.exports=t,t.displayName="ichigojam",t.aliases=[]},93865:function(e){"use strict";function t(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}e.exports=t,t.displayName="icon",t.aliases=[]},51078:function(e){"use strict";function t(e){!function(e){function t(e,n){return n<=0?/[]/.source:e.replace(//g,function(){return t(e,n-1)})}var n=/'[{}:=,](?:[^']|'')*'(?!')/,r={pattern:/''/,greedy:!0,alias:"operator"},a=t(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return n.source}),8),i={pattern:RegExp(a),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};e.languages["icu-message-format"]={argument:{pattern:RegExp(a),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":i,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":i,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+t(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:r,string:{pattern:n,greedy:!0,inside:{escape:r}}},i.inside.message.inside=e.languages["icu-message-format"],e.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=e.languages["icu-message-format"]}(e)}e.exports=t,t.displayName="icuMessageFormat",t.aliases=[]},91178:function(e,t,n){"use strict";var r=n(58090);function a(e){e.register(r),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}e.exports=a,a.displayName="idris",a.aliases=["idr"]},40011:function(e){"use strict";function t(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}e.exports=t,t.displayName="iecst",t.aliases=[]},12017:function(e){"use strict";function t(e){e.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},e.languages.gitignore=e.languages.ignore,e.languages.hgignore=e.languages.ignore,e.languages.npmignore=e.languages.ignore}e.exports=t,t.displayName="ignore",t.aliases=["gitignore","hgignore","npmignore"]},65175:function(e){"use strict";function t(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}e.exports=t,t.displayName="inform7",t.aliases=[]},14970:function(e){"use strict";function t(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}e.exports=t,t.displayName="ini",t.aliases=[]},30764:function(e){"use strict";function t(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}e.exports=t,t.displayName="j",t.aliases=[]},15909:function(e){"use strict";function t(e){var t,n,r;t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r={pattern:RegExp((n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source)+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}},e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}e.exports=t,t.displayName="java",t.aliases=[]},36553:function(e,t,n){"use strict";var r=n(15909),a=n(9858);function i(e){var t,n,i;e.register(r),e.register(a),t=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,n=/#\s*\w+(?:\s*\([^()]*\))?/.source,i=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*)?|/.source.replace(//g,function(){return n}),e.languages.javadoc=e.languages.extend("javadoclike",{}),e.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+i+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:e.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:t,lookbehind:!0,inside:e.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:t,lookbehind:!0,inside:{tag:e.languages.markup.tag,entity:e.languages.markup.entity,code:{pattern:/.+/,inside:e.languages.java,alias:"language-java"}}}}}],tag:e.languages.markup.tag,entity:e.languages.markup.entity}),e.languages.javadoclike.addSupport("java",e.languages.javadoc)}e.exports=i,i.displayName="javadoc",i.aliases=[]},9858:function(e){"use strict";function t(e){var t;Object.defineProperty(t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/},"addSupport",{value:function(t,n){"string"==typeof t&&(t=[t]),t.forEach(function(t){!function(t,n){var r="doc-comment",a=e.languages[t];if(a){var i=a[r];if(!i){var o={};o[r]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},i=(a=e.languages.insertBefore(t,"comment",o))[r]}if(i instanceof RegExp&&(i=a[r]={pattern:i}),Array.isArray(i))for(var s=0,l=i.length;s|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}e.exports=t,t.displayName="javascript",t.aliases=["js"]},11223:function(e){"use strict";function t(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}e.exports=t,t.displayName="javastacktrace",t.aliases=[]},57957:function(e){"use strict";function t(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}e.exports=t,t.displayName="jexl",t.aliases=[]},66604:function(e){"use strict";function t(e){e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}e.exports=t,t.displayName="jolie",t.aliases=[]},77935:function(e){"use strict";function t(e){var t,n,r,a;t=/\\\((?:[^()]|\([^()]*\))*\)/.source,n=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return t})),r={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+t),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},a=e.languages.jq={comment:/#.*/,property:{pattern:RegExp(n.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:r},string:{pattern:n,lookbehind:!0,greedy:!0,inside:r},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}},r.interpolation.inside.content.inside=a}e.exports=t,t.displayName="jq",t.aliases=[]},46155:function(e){"use strict";function t(e){!function(e){function t(e,t){return RegExp(e.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r=p.length)return;var o=n[i];if("string"==typeof o||"string"==typeof o.content){var l=p[c],d="string"==typeof o?o:o.content,f=d.indexOf(l);if(-1!==f){++c;var m=d.substring(0,f),g=function(t){var n={};n["interpolation-punctuation"]=a;var i=e.tokenize(t,n);if(3===i.length){var o=[1,1];o.push.apply(o,s(i[1],e.languages.javascript,"javascript")),i.splice.apply(i,o)}return new e.Token("interpolation",i,r.alias,t)}(u[l]),h=d.substring(f+l.length),b=[];if(m&&b.push(m),b.push(g),h){var E=[h];t(E),b.push.apply(b,E)}"string"==typeof o?(n.splice.apply(n,[i,1].concat(b)),i+=b.length-1):o.content=b}}else{var y=o.content;Array.isArray(y)?t(y):t([y])}}}(d),new e.Token(o,d,"language-"+o,t)}(p,g,m)}}else t(u)}}}(t.tokens)})}(e)}e.exports=t,t.displayName="jsTemplates",t.aliases=[]},25319:function(e,t,n){"use strict";var r=n(9858),a=n(4979);function i(e){var t,n,i;e.register(r),e.register(a),t=e.languages.javascript,i="(@(?:arg|argument|param|property)\\s+(?:"+(n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source)+"\\s+)?)",e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(i+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(i+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}e.exports=i,i.displayName="jsdoc",i.aliases=[]},45950:function(e){"use strict";function t(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}e.exports=t,t.displayName="json",t.aliases=["webmanifest"]},50235:function(e,t,n){"use strict";var r=n(45950);function a(e){var t;e.register(r),t=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/,e.languages.json5=e.languages.extend("json",{property:[{pattern:RegExp(t.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:t,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}e.exports=a,a.displayName="json5",a.aliases=[]},80963:function(e,t,n){"use strict";var r=n(45950);function a(e){e.register(r),e.languages.jsonp=e.languages.extend("json",{punctuation:/[{}[\]();,.]/}),e.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}e.exports=a,a.displayName="jsonp",a.aliases=[]},79358:function(e){"use strict";function t(e){e.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js||.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}e.exports=t,t.displayName="jsstacktrace",t.aliases=[]},96412:function(e){"use strict";function t(e){!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,a=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function i(e,t){return RegExp(e=e.replace(//g,function(){return n}).replace(//g,function(){return r}).replace(//g,function(){return a}),t)}a=i(a).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var o=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(o).join(""):""},s=function(t){for(var n=[],r=0;r0&&n[n.length-1].tagName===o(a.content[0].content[1])&&n.pop():"/>"===a.content[a.content.length-1].content||n.push({tagName:o(a.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===a.type&&"{"===a.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===a.type&&"}"===a.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof a)&&n.length>0&&0===n[n.length-1].openedBraces){var l=o(a);r0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(l=o(t[r-1])+l,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",l,null,l)}a.content&&"string"!=typeof a.content&&s(a.content)}};e.hooks.add("after-tokenize",function(e){("jsx"===e.language||"tsx"===e.language)&&s(e.tokens)})}(e)}e.exports=t,t.displayName="jsx",t.aliases=[]},39259:function(e){"use strict";function t(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}e.exports=t,t.displayName="julia",t.aliases=[]},51466:function(e){"use strict";function t(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}e.exports=t,t.displayName="keepalived",t.aliases=[]},35760:function(e){"use strict";function t(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}e.exports=t,t.displayName="keyman",t.aliases=[]},19715:function(e){"use strict";function t(e){var t;e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"],t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}},e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}e.exports=t,t.displayName="kotlin",t.aliases=["kt","kts"]},27614:function(e){"use strict";function t(e){!function(e){var t=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function n(e,n){return RegExp(e.replace(//g,t),n)}e.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:n(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:n(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:n(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:n(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:n(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:n(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:n(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:n(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},e.languages.kum=e.languages.kumir}(e)}e.exports=t,t.displayName="kumir",t.aliases=["kum"]},82819:function(e){"use strict";function t(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}e.exports=t,t.displayName="kusto",t.aliases=[]},42876:function(e){"use strict";function t(e){var t,n;n={"equation-command":{pattern:t=/\\(?:[^a-z()[\]]|[a-z*]+)/i,alias:"regex"}},e.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:n,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:n,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:t,alias:"selector"},punctuation:/[[\]{}&]/},e.languages.tex=e.languages.latex,e.languages.context=e.languages.latex}e.exports=t,t.displayName="latex",t.aliases=["tex","context"]},2980:function(e,t,n){"use strict";var r=n(93205),a=n(88262);function i(e){var t;e.register(r),e.register(a),e.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:e.languages.php}},t=e.languages.extend("markup",{}),e.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:e.languages.php}}}}}},t.tag),e.hooks.add("before-tokenize",function(n){"latte"===n.language&&(e.languages["markup-templating"].buildPlaceholders(n,"latte",/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g),n.grammar=t)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"latte")})}e.exports=i,i.displayName="latte",i.aliases=[]},41701:function(e){"use strict";function t(e){e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}e.exports=t,t.displayName="less",t.aliases=[]},42491:function(e,t,n){"use strict";var r=n(9997);function a(e){e.register(r),function(e){for(var t=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,n=0;n<5;n++)t=t.replace(//g,function(){return t});t=t.replace(//g,/[^\s\S]/.source);var r=e.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return t}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:e.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};r["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=r,e.languages.ly=r}(e)}e.exports=a,a.displayName="lilypond",a.aliases=[]},34927:function(e,t,n){"use strict";var r=n(93205);function a(e){e.register(r),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,function(e){var t=/^\{%-?\s*(\w+)/.exec(e);if(t){var r=t[1];if("raw"===r&&!n)return n=!0,!0;if("endraw"===r)return n=!1,!0}return!n})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}e.exports=a,a.displayName="liquid",a.aliases=[]},3848:function(e){"use strict";function t(e){!function(e){function t(e){return RegExp(/(\()/.source+"(?:"+e+")"+/(?=[\s\)])/.source)}function n(e){return RegExp(/([\s([])/.source+"(?:"+e+")"+/(?=[\s)])/.source)}var r=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,a="&"+r,i="(\\()",o="(?=\\s)",s=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,l={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+r+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+r),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+r),alias:"property"},splice:{pattern:RegExp(",@?"+r),alias:["symbol","variable"]},keyword:[{pattern:RegExp(i+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+o),lookbehind:!0},{pattern:RegExp(i+"(?:append|by|collect|concat|do|finally|for|in|return)"+o),lookbehind:!0}],declare:{pattern:t(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:t(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:n(/nil|t/.source),lookbehind:!0},number:{pattern:n(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(i+"def(?:const|custom|group|var)\\s+"+r),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(r)}},defun:{pattern:RegExp(i+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+r+/\s+\(/.source+s+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+r),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(i+"lambda\\s+\\(\\s*(?:&?"+r+"(?:\\s+&?"+r+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(i+r),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},c={"lisp-marker":RegExp(a),varform:{pattern:RegExp(/\(/.source+r+/\s+(?=\S)/.source+s+/\)/.source),inside:l},argument:{pattern:RegExp(/(^|[\s(])/.source+r),lookbehind:!0,alias:"variable"},rest:l},u="\\S+(?:\\s+\\S+)*",d={pattern:RegExp(i+s+"(?=\\))"),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+u),inside:c},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+u),inside:c},keys:{pattern:RegExp("&key\\s+"+u+"(?:\\s+&allow-other-keys)?"),inside:c},argument:{pattern:RegExp(r),alias:"variable"},punctuation:/[()]/}};l.lambda.inside.arguments=d,l.defun.inside.arguments=e.util.clone(d),l.defun.inside.arguments.inside.sublist=d,e.languages.lisp=l,e.languages.elisp=l,e.languages.emacs=l,e.languages["emacs-lisp"]=l}(e)}e.exports=t,t.displayName="lisp",t.aliases=[]},41469:function(e){"use strict";function t(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}e.exports=t,t.displayName="livescript",t.aliases=[]},73070:function(e){"use strict";function t(e){e.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}}e.exports=t,t.displayName="llvm",t.aliases=[]},35049:function(e){"use strict";function t(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}e.exports=t,t.displayName="log",t.aliases=[]},8789:function(e){"use strict";function t(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}e.exports=t,t.displayName="lolcode",t.aliases=[]},59803:function(e){"use strict";function t(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}e.exports=t,t.displayName="lua",t.aliases=[]},86328:function(e){"use strict";function t(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}e.exports=t,t.displayName="magma",t.aliases=[]},33055:function(e){"use strict";function t(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}e.exports=t,t.displayName="makefile",t.aliases=[]},90542:function(e){"use strict";function t(e){!function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(//g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+i+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+i+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(t){["url","bold","italic","strike","code-snippet"].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add("after-tokenize",function(e){("markdown"===e.language||"md"===e.language)&&function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(e)}e.exports=t,t.displayName="markdown",t.aliases=["md"]},93205:function(e){"use strict";function t(e){!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,a,i){if(n.language===r){var o=n.tokenStack=[];n.code=n.code.replace(a,function(e){if("function"==typeof i&&!i(e))return e;for(var a,s=o.length;-1!==n.code.indexOf(a=t(r,s));)++s;return o[s]=e,a}),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var a=0,i=Object.keys(n.tokenStack);!function o(s){for(var l=0;l=i.length);l++){var c=s[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=i[a],d=n.tokenStack[u],p="string"==typeof c?c:c.content,f=t(r,u),m=p.indexOf(f);if(m>-1){++a;var g=p.substring(0,m),h=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),b=p.substring(m+f.length),E=[];g&&E.push.apply(E,o([g])),E.push(h),b&&E.push.apply(E,o([b])),"string"==typeof c?s.splice.apply(s,[l,1].concat(E)):c.content=E}}else c.content&&o(c.content)}return s}(n.tokens)}}}})}(e)}e.exports=t,t.displayName="markupTemplating",t.aliases=[]},2717:function(e){"use strict";function t(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var r={};r["language-"+n]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[n]},r.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:r}};a["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}e.exports=t,t.displayName="markup",t.aliases=["html","mathml","svg","xml","ssml","atom","rss"]},27992:function(e){"use strict";function t(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}e.exports=t,t.displayName="matlab",t.aliases=[]},91115:function(e){"use strict";function t(e){var t;t=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i,e.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|")+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source+")[ ]*)(?!"+t.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+t.source+")"+/[a-z_]/.source+"|")+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:t,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}}e.exports=t,t.displayName="maxscript",t.aliases=[]},606:function(e){"use strict";function t(e){e.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},e.languages.mel.code.inside.rest=e.languages.mel}e.exports=t,t.displayName="mel",t.aliases=[]},68582:function(e){"use strict";function t(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}e.exports=t,t.displayName="mermaid",t.aliases=[]},23388:function(e){"use strict";function t(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}e.exports=t,t.displayName="mizar",t.aliases=[]},90596:function(e){"use strict";function t(e){var t,n;n="(?:"+["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"].map(function(e){return e.replace("$","\\$")}).join("|")+")\\b",e.languages.mongodb=e.languages.extend("javascript",{}),e.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp("^(['\"])?"+n+"(?:\\1)?$")}}}),e.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},e.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:ObjectId|Code|BinData|DBRef|Timestamp|NumberLong|NumberDecimal|MaxKey|MinKey|RegExp|ISODate|UUID)\\b"),alias:"keyword"}})}e.exports=t,t.displayName="mongodb",t.aliases=[]},95721:function(e){"use strict";function t(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}e.exports=t,t.displayName="monkey",t.aliases=[]},64262:function(e){"use strict";function t(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}e.exports=t,t.displayName="moonscript",t.aliases=["moon"]},18190:function(e){"use strict";function t(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}e.exports=t,t.displayName="n1ql",t.aliases=[]},70896:function(e){"use strict";function t(e){e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}e.exports=t,t.displayName="n4js",t.aliases=["n4jsd"]},42242:function(e){"use strict";function t(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}e.exports=t,t.displayName="nand2tetrisHdl",t.aliases=[]},37943:function(e){"use strict";function t(e){var t,n;n={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:t=/\{[^\r\n\[\]{}]*\}/,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]},e.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:t,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:n}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:t,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:n},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},e.languages.nani=e.languages.naniscript,e.hooks.add("after-tokenize",function(e){e.tokens.forEach(function(e){if("string"!=typeof e&&"generic-text"===e.type){var t=function e(t){return"string"==typeof t?t:Array.isArray(t)?t.map(e).join(""):e(t.content)}(e);!function(e){for(var t=[],n=0;n=&|$!]/}}e.exports=t,t.displayName="nasm",t.aliases=[]},83873:function(e){"use strict";function t(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}e.exports=t,t.displayName="neon",t.aliases=[]},75932:function(e){"use strict";function t(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}e.exports=t,t.displayName="nevod",t.aliases=[]},60221:function(e){"use strict";function t(e){var t;t=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i,e.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:t}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:t}},punctuation:/[{};]/}}e.exports=t,t.displayName="nginx",t.aliases=[]},44188:function(e){"use strict";function t(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}e.exports=t,t.displayName="nim",t.aliases=[]},74426:function(e){"use strict";function t(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}e.exports=t,t.displayName="nix",t.aliases=[]},88447:function(e){"use strict";function t(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}e.exports=t,t.displayName="nsis",t.aliases=[]},16032:function(e,t,n){"use strict";var r=n(65806);function a(e){e.register(r),e.languages.objectivec=e.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}e.exports=a,a.displayName="objectivec",a.aliases=["objc"]},33607:function(e){"use strict";function t(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}e.exports=t,t.displayName="ocaml",t.aliases=[]},22001:function(e,t,n){"use strict";var r=n(65806);function a(e){var t;e.register(r),e.languages.opencl=e.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),e.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}}),t={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}},e.languages.insertBefore("c","keyword",t),e.languages.cpp&&(t["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},e.languages.insertBefore("cpp","keyword",t))}e.exports=a,a.displayName="opencl",a.aliases=[]},22950:function(e){"use strict";function t(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}e.exports=t,t.displayName="openqasm",t.aliases=["qasm"]},23254:function(e){"use strict";function t(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}e.exports=t,t.displayName="oz",t.aliases=[]},92694:function(e){"use strict";function t(e){var t;e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:RegExp("\\b(?:"+["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"].map(function(e){return e.split("").join(" *")}).join("|")+")\\b"),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}e.exports=t,t.displayName="parigp",t.aliases=[]},43273:function(e){"use strict";function t(e){var t;t=e.languages.parser=e.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/}),t=e.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:t.keyword,variable:t.variable,function:t.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:t.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:t.punctuation}}}),e.languages.insertBefore("inside","punctuation",{expression:t.expression,keyword:t.keyword,variable:t.variable,function:t.function,escape:t.escape,"parser-punctuation":{pattern:t.punctuation,alias:"punctuation"}},t.tag.inside["attr-value"])}e.exports=t,t.displayName="parser",t.aliases=[]},60718:function(e){"use strict";function t(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}e.exports=t,t.displayName="pascal",t.aliases=["objectpascal"]},39303:function(e){"use strict";function t(e){var t,n,r,a;t=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,n=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return t}),r=e.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return n}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return n}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return n})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},a=["comment","keyword","builtin","operator","punctuation"].reduce(function(e,t){return e[t]=r[t],e},{}),r["class-name"].forEach(function(e){e.inside=a})}e.exports=t,t.displayName="pascaligo",t.aliases=[]},77393:function(e){"use strict";function t(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}e.exports=t,t.displayName="pcaxis",t.aliases=["px"]},19023:function(e){"use strict";function t(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}e.exports=t,t.displayName="peoplecode",t.aliases=["pcode"]},74212:function(e){"use strict";function t(e){var t;t=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source,e.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,t].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,t].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,t+/\s*/.source+t].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}}e.exports=t,t.displayName="perl",t.aliases=[]},5137:function(e,t,n){"use strict";var r=n(88262);function a(e){e.register(r),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}e.exports=a,a.displayName="phpExtras",a.aliases=[]},88262:function(e,t,n){"use strict";var r=n(93205);function a(e){var t,n,a,i,o,s,l;e.register(r),t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],a=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/,e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:a,operator:i,punctuation:o},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php}}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:s}}],e.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:a,operator:i,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")})}e.exports=a,a.displayName="php",a.aliases=[]},63632:function(e,t,n){"use strict";var r=n(88262),a=n(9858);function i(e){var t;e.register(r),e.register(a),t=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source,e.languages.phpdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+t+"\\s+)?)\\$\\w+"),lookbehind:!0}}),e.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+t),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),e.languages.javadoclike.addSupport("php",e.languages.phpdoc)}e.exports=i,i.displayName="phpdoc",i.aliases=[]},59149:function(e,t,n){"use strict";var r=n(11114);function a(e){e.register(r),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}e.exports=a,a.displayName="plsql",a.aliases=[]},50256:function(e){"use strict";function t(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}e.exports=t,t.displayName="powerquery",t.aliases=[]},61777:function(e){"use strict";function t(e){var t;(t=e.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/}).string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:t},boolean:t.boolean,variable:t.variable}}e.exports=t,t.displayName="powershell",t.aliases=[]},3623:function(e){"use strict";function t(e){e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}e.exports=t,t.displayName="processing",t.aliases=[]},82707:function(e){"use strict";function t(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}e.exports=t,t.displayName="prolog",t.aliases=[]},59338:function(e){"use strict";function t(e){var t,n;n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"].concat(t=["on","ignoring","group_right","group_left","by","without"],["offset"]),e.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:RegExp("((?:"+t.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:RegExp("\\b(?:"+n.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}}e.exports=t,t.displayName="promql",t.aliases=[]},56267:function(e){"use strict";function t(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}e.exports=t,t.displayName="properties",t.aliases=[]},98809:function(e){"use strict";function t(e){var t;t=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/,e.languages.protobuf=e.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),e.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:t}},builtin:t,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}e.exports=t,t.displayName="protobuf",t.aliases=[]},37548:function(e){"use strict";function t(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}e.exports=t,t.displayName="psl",t.aliases=[]},82161:function(e){"use strict";function t(e){!function(e){e.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:e.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:e.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:e.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:e.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:e.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:e.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:e.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:e.languages.javascript}],punctuation:/[.\-!=|]+/};for(var t=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,n=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],r={},a=0,i=n.length;a",function(){return o.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[o.language,"language-"+o.language],inside:e.languages[o.language]}}})}e.languages.insertBefore("pug","filter",r)}(e)}e.exports=t,t.displayName="pug",t.aliases=[]},80625:function(e){"use strict";function t(e){var t;e.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/},t=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:e.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}],e.languages.puppet.heredoc[0].inside.interpolation=t,e.languages.puppet.string.inside["double-quoted"].inside.interpolation=t}e.exports=t,t.displayName="puppet",t.aliases=[]},88393:function(e){"use strict";function t(e){var t;e.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/},t=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source,["c",{lang:"c++",alias:"cpp"},"fortran"].forEach(function(n){var r=n;if("string"!=typeof n&&(r=n.alias,n=n.lang),e.languages[r]){var a={};a["inline-lang-"+r]={pattern:RegExp(t.replace("",n.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:e.util.clone(e.languages.pure["inline-lang"].inside)},a["inline-lang-"+r].inside.rest=e.util.clone(e.languages[r]),e.languages.insertBefore("pure","inline-lang",a)}}),e.languages.c&&(e.languages.pure["inline-lang"].inside.rest=e.util.clone(e.languages.c))}e.exports=t,t.displayName="pure",t.aliases=[]},78404:function(e){"use strict";function t(e){e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}e.exports=t,t.displayName="purebasic",t.aliases=[]},92923:function(e,t,n){"use strict";var r=n(58090);function a(e){e.register(r),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}e.exports=a,a.displayName="purescript",a.aliases=["purs"]},52992:function(e){"use strict";function t(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}e.exports=t,t.displayName="python",t.aliases=["py"]},55762:function(e){"use strict";function t(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}e.exports=t,t.displayName="q",t.aliases=[]},4137:function(e){"use strict";function t(e){!function(e){for(var t=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,n=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,r=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return t}).replace(//g,function(){return n}),a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,"[^\\s\\S]"),e.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return r}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:e.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return r}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:e.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}e.exports=t,t.displayName="qml",t.aliases=[]},28260:function(e){"use strict";function t(e){e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}e.exports=t,t.displayName="qore",t.aliases=[]},71360:function(e){"use strict";function t(e){!function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,function(e,n){return"(?:"+t[+n]+")"})}function n(e,n,r){return RegExp(t(e,n),r||"")}var r={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"},a=RegExp("\\b(?:"+(r.type+" "+r.other).trim().replace(/ /g,"|")+")\\b"),i=/\b[A-Za-z_]\w*\b/.source,o=t(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[i]),s={keyword:a,punctuation:/[<>()?,.:[\]]/},l=/"(?:\\.|[^\\"])*"/.source;e.languages.qsharp=e.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[l]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[o]),lookbehind:!0,inside:s},{pattern:n(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[o]),lookbehind:!0,inside:s}],keyword:a,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),e.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var c=function(e,t){for(var n=0;n<2;n++)e=e.replace(/<>/g,function(){return"(?:"+e+")"});return e.replace(/<>/g,"[^\\s\\S]")}(t(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[l]),0);e.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:n(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[c]),greedy:!0,inside:{interpolation:{pattern:n(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[c]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:e.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}e.exports=t,t.displayName="qsharp",t.aliases=["qs"]},29308:function(e){"use strict";function t(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}e.exports=t,t.displayName="r",t.aliases=[]},32168:function(e,t,n){"use strict";var r=n(9997);function a(e){e.register(r),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}e.exports=a,a.displayName="racket",a.aliases=["rkt"]},5755:function(e){"use strict";function t(e){e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}e.exports=t,t.displayName="reason",t.aliases=[]},54105:function(e){"use strict";function t(e){var t,n,r,a,i;t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},a=RegExp((r="(?:[^\\\\-]|"+(n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/).source+")")+"-"+r),i={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"},e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:a,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":i}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}e.exports=t,t.displayName="rego",t.aliases=[]},35108:function(e){"use strict";function t(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}e.exports=t,t.displayName="renpy",t.aliases=["rpy"]},46678:function(e){"use strict";function t(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}e.exports=t,t.displayName="rest",t.aliases=[]},47496:function(e){"use strict";function t(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}e.exports=t,t.displayName="rip",t.aliases=[]},30527:function(e){"use strict";function t(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}e.exports=t,t.displayName="roboconf",t.aliases=[]},5261:function(e){"use strict";function t(e){!function(e){var t={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},n={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function r(e,r){var a={};for(var i in a["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"},r)a[i]=r[i];return a.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},a.variable=n,a.comment=t,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return e}),"im"),alias:"section",inside:a}}var a={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},i={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:n}},o={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:n}};e.languages.robotframework={settings:r("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:r("Variables"),"test-cases":r("Test Cases",{"test-name":i,documentation:a,property:o}),keywords:r("Keywords",{"keyword-name":i,documentation:a,property:o}),tasks:r("Tasks",{"task-name":i,documentation:a,property:o}),comment:t},e.languages.robot=e.languages.robotframework}(e)}e.exports=t,t.displayName="robotframework",t.aliases=[]},56939:function(e){"use strict";function t(e){var t,n,r;e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}},delete e.languages.ruby.function,n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source,e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}e.exports=t,t.displayName="ruby",t.aliases=["rb"]},83648:function(e){"use strict";function t(e){!function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,n=0;n<2;n++)t=t.replace(//g,function(){return t});t=t.replace(//g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(e)}e.exports=t,t.displayName="rust",t.aliases=[]},16009:function(e){"use strict";function t(e){var t,n,r,a,i,o,s,l,c,u,d,p,f,m,g,h,b,E;t=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,n=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,r={pattern:RegExp(t+"[bx]"),alias:"number"},i={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},o={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},s=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],d={function:u={pattern:/%?\b\w+(?=\()/,alias:"keyword"},"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":a={pattern:/&[a-z_]\w*/i},arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:n,"numeric-constant":r,punctuation:c=/[$%@.(){}\[\];,\\]/,string:l={pattern:RegExp(t),greedy:!0}},p={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},f={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},m={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},g={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},h=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,b={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return h}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return h}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:s,function:u,"arg-value":d["arg-value"],operator:d.operator,argument:d.arg,number:n,"numeric-constant":r,punctuation:c,string:l}},E={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0},e.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return t}),"im"),alias:"language-sql",inside:e.languages.sql},"global-statements":m,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:n,"numeric-constant":r,punctuation:c,string:l}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return t}),"im"),lookbehind:!0,alias:"language-groovy",inside:e.languages.groovy},keyword:E,"submit-statement":g,"global-statements":m,number:n,"numeric-constant":r,punctuation:c,string:l}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return t}),"im"),lookbehind:!0,alias:"language-lua",inside:e.languages.lua},keyword:E,"submit-statement":g,"global-statements":m,number:n,"numeric-constant":r,punctuation:c,string:l}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:d}},"cas-actions":b,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:d},step:o,keyword:E,function:u,format:p,altformat:f,"global-statements":m,number:n,"numeric-constant":r,punctuation:c,string:l}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return t}),"im"),lookbehind:!0,inside:d},"macro-keyword":i,"macro-variable":a,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":i,"macro-variable":a,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:c}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:s,number:n,"numeric-constant":r}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:d},"cas-actions":b,comment:s,function:u,format:p,altformat:f,"numeric-constant":r,datetime:{pattern:RegExp(t+"(?:dt?|t)"),alias:"number"},string:l,step:o,keyword:E,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:n,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:c}}e.exports=t,t.displayName="sas",t.aliases=[]},41720:function(e){"use strict";function t(e){var t,n;e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule,t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}e.exports=t,t.displayName="sass",t.aliases=[]},6054:function(e,t,n){"use strict";var r=n(15909);function a(e){e.register(r),e.languages.scala=e.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function}e.exports=a,a.displayName="scala",a.aliases=[]},9997:function(e){"use strict";function t(e){e.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(function(e){for(var t in e)e[t]=e[t].replace(/<[\w\s]+>/g,function(t){return"(?:"+e[t].trim()+")"});return e[t]}({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/}}e.exports=t,t.displayName="scheme",t.aliases=[]},24296:function(e){"use strict";function t(e){e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}e.exports=t,t.displayName="scss",t.aliases=[]},49246:function(e,t,n){"use strict";var r=n(6979);function a(e){var t;e.register(r),t=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|"),e.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return t}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:e.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},e.languages["sh-session"]=e.languages.shellsession=e.languages["shell-session"]}e.exports=a,a.displayName="shellSession",a.aliases=[]},18890:function(e){"use strict";function t(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}e.exports=t,t.displayName="smali",t.aliases=[]},11037:function(e){"use strict";function t(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}e.exports=t,t.displayName="smalltalk",t.aliases=[]},64020:function(e,t,n){"use strict";var r=n(93205);function a(e){var t,n;e.register(r),e.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:e.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},e.languages.smarty["embedded-php"].inside.smarty.inside=e.languages.smarty,e.languages.smarty.string[0].inside.interpolation.inside.expression.inside=e.languages.smarty,t=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,n=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return t.source}),"g"),e.hooks.add("before-tokenize",function(t){var r=!1;e.languages["markup-templating"].buildPlaceholders(t,"smarty",n,function(e){return"{/literal}"===e&&(r=!1),!r&&("{literal}"===e&&(r=!0),!0)})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"smarty")})}e.exports=a,a.displayName="smarty",a.aliases=[]},49760:function(e){"use strict";function t(e){var t;t=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i,e.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return t.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:t,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},e.languages.sml["class-name"][0].inside=e.languages.sml,e.languages.smlnj=e.languages.sml}e.exports=t,t.displayName="sml",t.aliases=["smlnj"]},33351:function(e){"use strict";function t(e){e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}e.exports=t,t.displayName="solidity",t.aliases=["sol"]},13570:function(e){"use strict";function t(e){var t;t={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}},e.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:t}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:t}},guid:t,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},e.languages.sln=e.languages["solution-file"]}e.exports=t,t.displayName="solutionFile",t.aliases=[]},38181:function(e,t,n){"use strict";var r=n(93205);function a(e){var t,n;e.register(r),t=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/,e.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:t,greedy:!0},number:n,punctuation:/[\[\].?]/}},string:{pattern:t,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:n,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},e.hooks.add("before-tokenize",function(t){var n=!1;e.languages["markup-templating"].buildPlaceholders(t,"soy",/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,function(e){return"{/literal}"===e&&(n=!1),!n&&("{literal}"===e&&(n=!0),!0)})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"soy")})}e.exports=a,a.displayName="soy",a.aliases=[]},98774:function(e,t,n){"use strict";var r=n(24691);function a(e){e.register(r),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}e.exports=a,a.displayName="sparql",a.aliases=["rq"]},22855:function(e){"use strict";function t(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}e.exports=t,t.displayName="splunkSpl",t.aliases=[]},29611:function(e){"use strict";function t(e){e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}e.exports=t,t.displayName="sqf",t.aliases=[]},11114:function(e){"use strict";function t(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}e.exports=t,t.displayName="sql",t.aliases=[]},67386:function(e){"use strict";function t(e){e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}e.exports=t,t.displayName="squirrel",t.aliases=[]},28067:function(e){"use strict";function t(e){var t;t=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/,e.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+t.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,t],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},e.languages.stan.constraint.inside.expression.inside=e.languages.stan}e.exports=t,t.displayName="stan",t.aliases=[]},49168:function(e){"use strict";function t(e){var t,n,r;(r={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},number:n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/}).interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:r}},r.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:r.interpolation}},rest:r}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}e.exports=t,t.displayName="stylus",t.aliases=[]},23651:function(e){"use strict";function t(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}e.exports=t,t.displayName="swift",t.aliases=[]},21483:function(e){"use strict";function t(e){var t,n;t={pattern:/^[;#].*/m,greedy:!0},n=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source,e.languages.systemd={comment:t,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+n+'|(?=[^"\r\n]))(?:'+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|')+n+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:t,quoted:{pattern:RegExp(/(^|\s)/.source+n),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}}e.exports=t,t.displayName="systemd",t.aliases=[]},32268:function(e,t,n){"use strict";var r=n(2329),a=n(61958);function i(e){e.register(r),e.register(a),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}e.exports=i,i.displayName="t4Cs",i.aliases=[]},2329:function(e){"use strict";function t(e){!function(e){function t(e,t,n){return{pattern:RegExp("<#"+e+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+e+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:t,alias:n}}}}e.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:function(n){var r=e.languages[n],a="language-"+n;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:t("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:t("=",r,a),"class-feature":t("\\+",r,a),standard:t("",r,a)}}}}})}(e)}e.exports=t,t.displayName="t4Templating",t.aliases=[]},82996:function(e,t,n){"use strict";var r=n(2329),a=n(53813);function i(e){e.register(r),e.register(a),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}e.exports=i,i.displayName="t4Vb",i.aliases=[]},17290:function(e,t,n){"use strict";var r=n(65039);function a(e){e.register(r),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}e.exports=a,a.displayName="tap",a.aliases=[]},67989:function(e){"use strict";function t(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}e.exports=t,t.displayName="tcl",t.aliases=[]},31065:function(e){"use strict";function t(e){!function(e){var t=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,n=/\)|\((?![^|()\n]+\))/.source;function r(e,r){return RegExp(e.replace(//g,function(){return"(?:"+t+")"}).replace(//g,function(){return"(?:"+n+")"}),r||"")}var a={css:{pattern:/\{[^{}]+\}/,inside:{rest:e.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},i=e.languages.textile=e.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:r(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:r(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:a},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:r(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:r(/(^[*#]+)+/.source),lookbehind:!0,inside:a},punctuation:/^[*#]+/}},table:{pattern:r(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:r(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:a},punctuation:/\||^\./}},inline:{pattern:r(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:r(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:r(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:r(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:r(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:r(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:r(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:r(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:r(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:a},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:r(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:r(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:r(/(^")+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:r(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:r(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:r(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),o=i.phrase.inside,s={inline:o.inline,link:o.link,image:o.image,footnote:o.footnote,acronym:o.acronym,mark:o.mark};i.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var l=o.inline.inside;l.bold.inside=s,l.italic.inside=s,l.inserted.inside=s,l.deleted.inside=s,l.span.inside=s;var c=o.table.inside;c.inline=s.inline,c.link=s.link,c.image=s.image,c.footnote=s.footnote,c.acronym=s.acronym,c.mark=s.mark}(e)}e.exports=t,t.displayName="textile",t.aliases=[]},85572:function(e){"use strict";function t(e){!function(e){var t=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function n(e){return e.replace(/__/g,function(){return t})}e.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(n(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(n(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}}(e)}e.exports=t,t.displayName="toml",t.aliases=[]},27536:function(e){"use strict";function t(e){var t;e.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/},t=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source,e.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+t+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+t+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(t),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.tremor}}},string:/[\s\S]+/}},e.languages.troy=e.languages.tremor,e.languages.trickle=e.languages.tremor}e.exports=t,t.displayName="tremor",t.aliases=[]},87041:function(e,t,n){"use strict";var r=n(96412),a=n(4979);function i(e){var t,n;e.register(r),e.register(a),t=e.util.clone(e.languages.typescript),e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],(n=e.languages.tsx.tag).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}e.exports=i,i.displayName="tsx",i.aliases=[]},61028:function(e,t,n){"use strict";var r=n(93205);function a(e){e.register(r),e.languages.tt2=e.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),e.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),e.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),e.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete e.languages.tt2.string,e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"tt2",/\[%[\s\S]+?%\]/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"tt2")})}e.exports=a,a.displayName="tt2",a.aliases=[]},24691:function(e){"use strict";function t(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}e.exports=t,t.displayName="turtle",t.aliases=[]},19892:function(e,t,n){"use strict";var r=n(93205);function a(e){e.register(r),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){"twig"===t.language&&e.languages["markup-templating"].buildPlaceholders(t,"twig",/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}e.exports=a,a.displayName="twig",a.aliases=[]},4979:function(e){"use strict";function t(e){var t;e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"],t=e.languages.extend("typescript",{}),delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}e.exports=t,t.displayName="typescript",t.aliases=["ts"]},23159:function(e){"use strict";function t(e){var t;t=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/,e.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:t}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:t,number:/^\d+$/,punctuation:/[,|:]/}},keyword:t,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},e.languages.tsconfig=e.languages.typoscript}e.exports=t,t.displayName="typoscript",t.aliases=["tsconfig"]},34966:function(e){"use strict";function t(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}e.exports=t,t.displayName="unrealscript",t.aliases=["uc","uscript"]},44623:function(e){"use strict";function t(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}e.exports=t,t.displayName="uorazor",t.aliases=[]},38521:function(e){"use strict";function t(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source)+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")"+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}e.exports=t,t.displayName="uri",t.aliases=["url"]},7255:function(e){"use strict";function t(e){var t;t={pattern:/[\s\S]+/,inside:null},e.languages.v=e.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":t}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),t.inside=e.languages.v,e.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),e.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),e.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:e.languages.v.generic.inside}}}})}e.exports=t,t.displayName="v",t.aliases=[]},28173:function(e){"use strict";function t(e){e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}e.exports=t,t.displayName="vala",t.aliases=[]},53813:function(e,t,n){"use strict";var r=n(46241);function a(e){e.register(r),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}e.exports=a,a.displayName="vbnet",a.aliases=[]},46891:function(e){"use strict";function t(e){var t;e.languages.velocity=e.languages.extend("markup",{}),(t={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/}).variable.inside={string:t.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:t.number,boolean:t.boolean,punctuation:t.punctuation},e.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:t}},variable:t.variable}),e.languages.velocity.tag.inside["attr-value"].inside.rest=e.languages.velocity}e.exports=t,t.displayName="velocity",t.aliases=[]},91824:function(e){"use strict";function t(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}e.exports=t,t.displayName="verilog",t.aliases=[]},9447:function(e){"use strict";function t(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}e.exports=t,t.displayName="vhdl",t.aliases=[]},53062:function(e){"use strict";function t(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}e.exports=t,t.displayName="vim",t.aliases=[]},46215:function(e){"use strict";function t(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}e.exports=t,t.displayName="visualBasic",t.aliases=[]},10784:function(e){"use strict";function t(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}e.exports=t,t.displayName="warpscript",t.aliases=[]},17684:function(e){"use strict";function t(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}e.exports=t,t.displayName="wasm",t.aliases=[]},64851:function(e){"use strict";function t(e){!function(e){var t=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,n="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+t+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,r={};for(var a in e.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+t),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:r},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+n),lookbehind:!0,inside:r},{pattern:RegExp("("+/\bcallback\s+/.source+t+/\s*=\s*/.source+")"+n),lookbehind:!0,inside:r},{pattern:RegExp(/(\btypedef\b\s*)/.source+n),lookbehind:!0,inside:r},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+t),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+t),lookbehind:!0},RegExp(t+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+t),lookbehind:!0},{pattern:RegExp(n+"(?="+/\s*(?:\.{3}\s*)?/.source+t+/\s*[(),;=]/.source+")"),inside:r}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/},e.languages["web-idl"])"class-name"!==a&&(r[a]=e.languages["web-idl"][a]);e.languages.webidl=e.languages["web-idl"]}(e)}e.exports=t,t.displayName="webIdl",t.aliases=[]},18191:function(e){"use strict";function t(e){e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}e.exports=t,t.displayName="wiki",t.aliases=[]},75242:function(e){"use strict";function t(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}e.exports=t,t.displayName="wolfram",t.aliases=["mathematica","wl","nb"]},93639:function(e){"use strict";function t(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}e.exports=t,t.displayName="wren",t.aliases=[]},97202:function(e){"use strict";function t(e){e.languages.xeora=e.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),e.languages.insertBefore("inside","punctuation",{variable:e.languages.xeora["function-inline"].inside.variable},e.languages.xeora["function-block"]),e.languages.xeoracube=e.languages.xeora}e.exports=t,t.displayName="xeora",t.aliases=["xeoracube"]},13808:function(e){"use strict";function t(e){!function(e){function t(t,n){e.languages[t]&&e.languages.insertBefore(t,"comment",{"doc-comment":n})}var n=e.languages.markup.tag,r={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:n}};t("csharp",r),t("fsharp",r),t("vbnet",{pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:n}})}(e)}e.exports=t,t.displayName="xmlDoc",t.aliases=[]},21301:function(e){"use strict";function t(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}e.exports=t,t.displayName="xojo",t.aliases=[]},20349:function(e){"use strict";function t(e){!function(e){e.languages.xquery=e.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),e.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,e.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,e.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:e.languages.xquery,alias:"language-xquery"};var t=function(e){return"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(t).join("")},n=function(r){for(var a=[],i=0;i0&&a[a.length-1].tagName===t(o.content[0].content[1])&&a.pop():"/>"===o.content[o.content.length-1].content||a.push({tagName:t(o.content[0].content[1]),openedBraces:0}):!(a.length>0)||"punctuation"!==o.type||"{"!==o.content||r[i+1]&&"punctuation"===r[i+1].type&&"{"===r[i+1].content||r[i-1]&&"plain-text"===r[i-1].type&&"{"===r[i-1].content?a.length>0&&a[a.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?a[a.length-1].openedBraces--:"comment"!==o.type&&(s=!0):a[a.length-1].openedBraces++),(s||"string"==typeof o)&&a.length>0&&0===a[a.length-1].openedBraces){var l=t(o);i0&&("string"==typeof r[i-1]||"plain-text"===r[i-1].type)&&(l=t(r[i-1])+l,r.splice(i-1,1),i--),/^\s+$/.test(l)?r[i]=l:r[i]=new e.Token("plain-text",l,null,l)}o.content&&"string"!=typeof o.content&&n(o.content)}};e.hooks.add("after-tokenize",function(e){"xquery"===e.language&&n(e.tokens)})}(e)}e.exports=t,t.displayName="xquery",t.aliases=[]},65039:function(e){"use strict";function t(e){!function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+n.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(e,t){return t=(t||"").replace(/m/g,"")+"m",RegExp(/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return r}).replace(/<>/g,function(){return e}),t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return r})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return r}).replace(/<>/g,function(){return"(?:"+a+"|"+i+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(i),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(e)}e.exports=t,t.displayName="yaml",t.aliases=["yml"]},96319:function(e){"use strict";function t(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}e.exports=t,t.displayName="yang",t.aliases=[]},31501:function(e){"use strict";function t(e){!function(e){function t(e){return function(){return e}}var n=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,r="\\b(?!"+n.source+")(?!\\d)\\w+\\b",a=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,i="(?!\\s)(?:!?\\s*(?:"+/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,t(a))+"\\s*)*"+/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,t(r))+")+";e.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,t(i)).replace(//g,t(a))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,t(i)).replace(//g,t(a))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:n,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},e.languages.zig["class-name"].forEach(function(t){null===t.inside&&(t.inside=e.languages.zig)})}(e)}e.exports=t,t.displayName="zig",t.aliases=[]},59216:function(e,t,n){/** * Prism: Lightweight, robust, elegant syntax highlighting * * @license MIT * @author Lea Verou * @namespace * @public - */var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},a={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=u.reach));S+=v.value.length,v=v.next){var A,O=v.value;if(n.length>t.length)return;if(!(O instanceof i)){var _=1;if(b){if(!(A=o(T,S,t,h))||A.index>=t.length)break;var k=A.index,I=A.index+A[0].length,C=S;for(C+=v.value.length;k>=C;)C+=(v=v.next).value.length;if(C-=v.value.length,S=C,v.value instanceof i)continue;for(var N=v;N!==n.tail&&(Cu.reach&&(u.reach=L);var D=v.prev;w&&(D=l(n,D,w),S+=w.length),function(e,t,n){for(var r=t.next,a=0;a1){var M={cause:d+","+f,reach:L};e(t,n,r,v.prev,S,M),u&&M.reach>u.reach&&(u.reach=M.reach)}}}}}}(e,c,t,c.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(c)},hooks:{all:{},add:function(e,t){var n=a.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=a.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var i=a[1].length;a.index+=i,a[0]=a[0].slice(i)}return a}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}if(e.Prism=a,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(i.classes,o):i.classes.push(o)),a.hooks.run("wrap",i);var s="";for(var l in i.attributes)s+=" "+l+'="'+(i.attributes[l]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+""},!e.document)return e.addEventListener&&(a.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,o=n.immediateClose;e.postMessage(a.highlight(i,a.languages[r],r)),o&&e.close()},!1)),a;var c=a.util.currentScript();function u(){a.manual||a.highlightAll()}if(c&&(a.filename=c.src,c.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var d=document.readyState;"loading"===d||"interactive"===d&&c&&c.defer?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16)}return a}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r)},96774:function(e){e.exports=function(e,t,n,r){var a=n?n.call(r,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l{let n=(t,n)=>(e.set(n,t),t),a=i=>{if(e.has(i))return e.get(i);let[o,s]=t[i];switch(o){case 0:case -1:return n(s,i);case 1:{let e=n([],i);for(let t of s)e.push(a(t));return e}case 2:{let e=n({},i);for(let[t,n]of s)e[a(t)]=a(n);return e}case 3:return n(new Date(s),i);case 4:{let{source:e,flags:t}=s;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of s)e.set(a(t),a(n));return e}case 6:{let e=n(new Set,i);for(let t of s)e.add(a(t));return e}case 7:{let{name:e,message:t}=s;return n(new r[e](t),i)}case 8:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i)}return n(new r[o](s),i)};return a},i=e=>a(new Map,e)(0),{toString:o}={},{keys:s}=Object,l=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=o.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},c=([e,t])=>0===e&&("function"===t||"symbol"===t),u=(e,t,n,r)=>{let a=(e,t)=>{let a=r.push(e)-1;return n.set(t,a),a},i=r=>{if(n.has(r))return n.get(r);let[o,u]=l(r);switch(o){case 0:{let t=r;switch(u){case"bigint":o=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+u);t=null;break;case"undefined":return a([-1],r)}return a([o,t],r)}case 1:{if(u)return a([u,[...r]],r);let e=[],t=a([o,e],r);for(let t of r)e.push(i(t));return t}case 2:{if(u)switch(u){case"BigInt":return a([u,r.toString()],r);case"Boolean":case"Number":case"String":return a([u,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());let n=[],d=a([o,n],r);for(let t of s(r))(e||!c(l(r[t])))&&n.push([i(t),i(r[t])]);return d}case 3:return a([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return a([o,{source:e,flags:t}],r)}case 5:{let t=[],n=a([o,t],r);for(let[n,a]of r)(e||!(c(l(n))||c(l(a))))&&t.push([i(n),i(a)]);return n}case 6:{let t=[],n=a([o,t],r);for(let n of r)(e||!c(l(n)))&&t.push(i(n));return n}}let{message:d}=r;return a([o,{name:u,message:d}],r)};return i},d=(e,{json:t,lossy:n}={})=>{let r=[];return u(!(t||n),!!t,new Map,r)(e),r};var p="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?i(d(e,t)):structuredClone(e):(e,t)=>i(d(e,t))},25668:function(e,t,n){"use strict";function r(e){let t=[],n=String(e||""),r=n.indexOf(","),a=0,i=!1;for(;!i;){-1===r&&(r=n.length,i=!0);let e=n.slice(a,r).trim();(e||!i)&&t.push(e),a=r+1,r=n.indexOf(",",a)}return t}function a(e,t){let n=t||{},r=""===e[e.length-1]?[...e,""]:e;return r.join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}n.d(t,{P:function(){return a},Q:function(){return r}})},24345:function(e,t,n){"use strict";function r(){}function a(){}n.d(t,{ok:function(){return r},t1:function(){return a}})},27962:function(e,t,n){"use strict";n.d(t,{B:function(){return a}});let r={};function a(e,t){let n=t||r,a="boolean"!=typeof n.includeImageAlt||n.includeImageAlt,o="boolean"!=typeof n.includeHtml||n.includeHtml;return i(e,a,o)}function i(e,t,n){if(e&&"object"==typeof e){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return o(e.children,t,n)}return Array.isArray(e)?o(e,t,n):""}function o(e,t,n){let r=[],a=-1;for(;++a-1&&e.test(String.fromCharCode(t))}}},21905:function(e,t,n){"use strict";function r(e,t,n,r){let a;let i=e.length,o=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)(a=Array.from(r)).unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o0?(r(e,e.length,0,t),e):t}n.d(t,{V:function(){return a},d:function(){return r}})},62987:function(e,t,n){"use strict";n.d(t,{r:function(){return a}});var r=n(15459);function a(e){return null===e||(0,r.z3)(e)||(0,r.B8)(e)?1:(0,r.Xh)(e)?2:void 0}},4663:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(21905);let a={}.hasOwnProperty;function i(e){let t={},n=-1;for(;++n"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),u=l({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function d(e,t){return t in e?e[t]:t}function p(e,t){return d(e,t.toLowerCase())}let f=l({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:p,properties:{xmlns:null,xmlnsXLink:null}});var m=n(47312);let g=l({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:m.booleanish,ariaAutoComplete:null,ariaBusy:m.booleanish,ariaChecked:m.booleanish,ariaColCount:m.number,ariaColIndex:m.number,ariaColSpan:m.number,ariaControls:m.spaceSeparated,ariaCurrent:null,ariaDescribedBy:m.spaceSeparated,ariaDetails:null,ariaDisabled:m.booleanish,ariaDropEffect:m.spaceSeparated,ariaErrorMessage:null,ariaExpanded:m.booleanish,ariaFlowTo:m.spaceSeparated,ariaGrabbed:m.booleanish,ariaHasPopup:null,ariaHidden:m.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:m.spaceSeparated,ariaLevel:m.number,ariaLive:null,ariaModal:m.booleanish,ariaMultiLine:m.booleanish,ariaMultiSelectable:m.booleanish,ariaOrientation:null,ariaOwns:m.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:m.number,ariaPressed:m.booleanish,ariaReadOnly:m.booleanish,ariaRelevant:null,ariaRequired:m.booleanish,ariaRoleDescription:m.spaceSeparated,ariaRowCount:m.number,ariaRowIndex:m.number,ariaRowSpan:m.number,ariaSelected:m.booleanish,ariaSetSize:m.number,ariaSort:null,ariaValueMax:m.number,ariaValueMin:m.number,ariaValueNow:m.number,ariaValueText:null,role:null}}),h=l({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:p,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:m.commaSeparated,acceptCharset:m.spaceSeparated,accessKey:m.spaceSeparated,action:null,allow:null,allowFullScreen:m.boolean,allowPaymentRequest:m.boolean,allowUserMedia:m.boolean,alt:null,as:null,async:m.boolean,autoCapitalize:null,autoComplete:m.spaceSeparated,autoFocus:m.boolean,autoPlay:m.boolean,blocking:m.spaceSeparated,capture:null,charSet:null,checked:m.boolean,cite:null,className:m.spaceSeparated,cols:m.number,colSpan:null,content:null,contentEditable:m.booleanish,controls:m.boolean,controlsList:m.spaceSeparated,coords:m.number|m.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:m.boolean,defer:m.boolean,dir:null,dirName:null,disabled:m.boolean,download:m.overloadedBoolean,draggable:m.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:m.boolean,formTarget:null,headers:m.spaceSeparated,height:m.number,hidden:m.boolean,high:m.number,href:null,hrefLang:null,htmlFor:m.spaceSeparated,httpEquiv:m.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:m.boolean,inputMode:null,integrity:null,is:null,isMap:m.boolean,itemId:null,itemProp:m.spaceSeparated,itemRef:m.spaceSeparated,itemScope:m.boolean,itemType:m.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:m.boolean,low:m.number,manifest:null,max:null,maxLength:m.number,media:null,method:null,min:null,minLength:m.number,multiple:m.boolean,muted:m.boolean,name:null,nonce:null,noModule:m.boolean,noValidate:m.boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:m.boolean,optimum:m.number,pattern:null,ping:m.spaceSeparated,placeholder:null,playsInline:m.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:m.boolean,referrerPolicy:null,rel:m.spaceSeparated,required:m.boolean,reversed:m.boolean,rows:m.number,rowSpan:m.number,sandbox:m.spaceSeparated,scope:null,scoped:m.boolean,seamless:m.boolean,selected:m.boolean,shadowRootClonable:m.boolean,shadowRootDelegatesFocus:m.boolean,shadowRootMode:null,shape:null,size:m.number,sizes:null,slot:null,span:m.number,spellCheck:m.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:m.number,step:null,style:null,tabIndex:m.number,target:null,title:null,translate:null,type:null,typeMustMatch:m.boolean,useMap:null,value:m.booleanish,width:m.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:m.spaceSeparated,axis:null,background:null,bgColor:null,border:m.number,borderColor:null,bottomMargin:m.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:m.boolean,declare:m.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:m.number,leftMargin:m.number,link:null,longDesc:null,lowSrc:null,marginHeight:m.number,marginWidth:m.number,noResize:m.boolean,noHref:m.boolean,noShade:m.boolean,noWrap:m.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:m.number,rules:null,scheme:null,scrolling:m.booleanish,standby:null,summary:null,text:null,topMargin:m.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:m.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:m.boolean,disableRemotePlayback:m.boolean,prefix:null,property:null,results:m.number,security:null,unselectable:null}}),b=l({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:d,properties:{about:m.commaOrSpaceSeparated,accentHeight:m.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:m.number,amplitude:m.number,arabicForm:null,ascent:m.number,attributeName:null,attributeType:null,azimuth:m.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:m.number,by:null,calcMode:null,capHeight:m.number,className:m.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:m.number,diffuseConstant:m.number,direction:null,display:null,dur:null,divisor:m.number,dominantBaseline:null,download:m.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:m.number,enableBackground:null,end:null,event:null,exponent:m.number,externalResourcesRequired:null,fill:null,fillOpacity:m.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:m.commaSeparated,g2:m.commaSeparated,glyphName:m.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:m.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:m.number,horizOriginX:m.number,horizOriginY:m.number,id:null,ideographic:m.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:m.number,k:m.number,k1:m.number,k2:m.number,k3:m.number,k4:m.number,kernelMatrix:m.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:m.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:m.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:m.number,overlineThickness:m.number,paintOrder:null,panose1:null,path:null,pathLength:m.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:m.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:m.number,pointsAtY:m.number,pointsAtZ:m.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:m.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:m.commaOrSpaceSeparated,rev:m.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:m.commaOrSpaceSeparated,requiredFeatures:m.commaOrSpaceSeparated,requiredFonts:m.commaOrSpaceSeparated,requiredFormats:m.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:m.number,specularExponent:m.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:m.number,strikethroughThickness:m.number,string:null,stroke:null,strokeDashArray:m.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:m.number,strokeOpacity:m.number,strokeWidth:null,style:null,surfaceScale:m.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:m.commaOrSpaceSeparated,tabIndex:m.number,tableValues:null,target:null,targetX:m.number,targetY:m.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:m.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:m.number,underlineThickness:m.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:m.number,values:null,vAlphabetic:m.number,vMathematical:m.number,vectorEffect:null,vHanging:m.number,vIdeographic:m.number,version:null,vertAdvY:m.number,vertOriginX:m.number,vertOriginY:m.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:m.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),y=a([u,c,f,g,h],"html"),E=a([u,c,f,g,b],"svg")},26103:function(e,t,n){"use strict";n.d(t,{s:function(){return c}});var r=n(28051),a=n(75729),i=n(49255);let o=/^data[-\w.:]+$/i,s=/-[a-z]/g,l=/[A-Z]/g;function c(e,t){let n=(0,r.F)(t),c=t,p=i.k;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&o.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(s,d);c="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!s.test(e)){let n=e.replace(l,u);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}p=a.I}return new p(c,t)}function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},28051:function(e,t,n){"use strict";function r(e){return e.toLowerCase()}n.d(t,{F:function(){return r}})},75729:function(e,t,n){"use strict";n.d(t,{I:function(){return o}});var r=n(49255),a=n(47312);let i=Object.keys(a);class o extends r.k{constructor(e,t,n,r){var o,s;let l=-1;if(super(e,t),r&&(this.space=r),"number"==typeof n)for(;++l1?n[e.line-2]:0)+e.column-1;if(r-1&&e<=t.length){let r=0;for(;;){let a=n[r];if(void 0===a){let e=j(t,n[r-1]);a=-1===e?t.length+1:e+1,n[r]=a}if(a>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}}}(t),a=r.toPoint(0),i=r.toPoint(t.length);(0,k.ok)(a,"expected `start`"),(0,k.ok)(i,"expected `end`"),n.position={start:a,end:i}}return n}case"#documentType":return Z(e,t,n={type:"doctype"}),n;case"#text":return n={type:"text",value:t.value},Z(e,t,n),n;default:return function(e,t){let n=e.schema;e.schema=t.namespaceURI===U.svg?I.YP:I.dy;let r=-1,a={};for(;++r=55296&&e<=57343}function ei(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function eo(e){return e>=64976&&e<=65007||en.has(e)}(a=g=g||(g={})).controlCharacterInInputStream="control-character-in-input-stream",a.noncharacterInInputStream="noncharacter-in-input-stream",a.surrogateInInputStream="surrogate-in-input-stream",a.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",a.endTagWithAttributes="end-tag-with-attributes",a.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",a.unexpectedSolidusInTag="unexpected-solidus-in-tag",a.unexpectedNullCharacter="unexpected-null-character",a.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",a.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",a.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",a.missingEndTagName="missing-end-tag-name",a.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",a.unknownNamedCharacterReference="unknown-named-character-reference",a.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",a.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",a.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",a.eofBeforeTagName="eof-before-tag-name",a.eofInTag="eof-in-tag",a.missingAttributeValue="missing-attribute-value",a.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",a.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",a.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",a.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",a.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",a.missingDoctypePublicIdentifier="missing-doctype-public-identifier",a.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",a.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",a.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",a.cdataInHtmlContent="cdata-in-html-content",a.incorrectlyOpenedComment="incorrectly-opened-comment",a.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",a.eofInDoctype="eof-in-doctype",a.nestedComment="nested-comment",a.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",a.eofInComment="eof-in-comment",a.incorrectlyClosedComment="incorrectly-closed-comment",a.eofInCdata="eof-in-cdata",a.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",a.nullCharacterReference="null-character-reference",a.surrogateCharacterReference="surrogate-character-reference",a.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",a.controlCharacterReference="control-character-reference",a.noncharacterCharacterReference="noncharacter-character-reference",a.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",a.missingDoctypeName="missing-doctype-name",a.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",a.duplicateAttribute="duplicate-attribute",a.nonConformingDoctype="non-conforming-doctype",a.missingDoctype="missing-doctype",a.misplacedDoctype="misplaced-doctype",a.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",a.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",a.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",a.openElementsLeftAfterEof="open-elements-left-after-eof",a.abandonedHeadElementChild="abandoned-head-element-child",a.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",a.nestedNoscriptInHead="nested-noscript-in-head",a.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class es{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e){let{line:t,col:n,offset:r}=this;return{code:e,startLine:t,endLine:t,startCol:n,endCol:n,startOffset:r,endOffset:r}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(t>=56320&&t<=57343)return this.pos++,this._addGap(),(e-55296)*1024+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,m.EOF;return this._err(g.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,m.EOF;let n=this.html.charCodeAt(t);return n===m.CARRIAGE_RETURN?m.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,m.EOF;let e=this.html.charCodeAt(this.pos);if(e===m.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,m.LINE_FEED;if(e===m.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,ea(e)&&(e=this._processSurrogate(e));let t=null===this.handler.onParseError||e>31&&e<127||e===m.LINE_FEED||e===m.CARRIAGE_RETURN||e>159&&e<64976;return t||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){ei(e)?this._err(g.controlCharacterInInputStream):eo(e)&&this._err(g.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}(i=h=h||(h={}))[i.CHARACTER=0]="CHARACTER",i[i.NULL_CHARACTER=1]="NULL_CHARACTER",i[i.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",i[i.START_TAG=3]="START_TAG",i[i.END_TAG=4]="END_TAG",i[i.COMMENT=5]="COMMENT",i[i.DOCTYPE=6]="DOCTYPE",i[i.EOF=7]="EOF",i[i.HIBERNATION=8]="HIBERNATION";var ec=n(60411);(o=b=b||(b={})).HTML="http://www.w3.org/1999/xhtml",o.MATHML="http://www.w3.org/1998/Math/MathML",o.SVG="http://www.w3.org/2000/svg",o.XLINK="http://www.w3.org/1999/xlink",o.XML="http://www.w3.org/XML/1998/namespace",o.XMLNS="http://www.w3.org/2000/xmlns/",(s=y=y||(y={})).TYPE="type",s.ACTION="action",s.ENCODING="encoding",s.PROMPT="prompt",s.NAME="name",s.COLOR="color",s.FACE="face",s.SIZE="size",(l=E=E||(E={})).NO_QUIRKS="no-quirks",l.QUIRKS="quirks",l.LIMITED_QUIRKS="limited-quirks",(c=T=T||(T={})).A="a",c.ADDRESS="address",c.ANNOTATION_XML="annotation-xml",c.APPLET="applet",c.AREA="area",c.ARTICLE="article",c.ASIDE="aside",c.B="b",c.BASE="base",c.BASEFONT="basefont",c.BGSOUND="bgsound",c.BIG="big",c.BLOCKQUOTE="blockquote",c.BODY="body",c.BR="br",c.BUTTON="button",c.CAPTION="caption",c.CENTER="center",c.CODE="code",c.COL="col",c.COLGROUP="colgroup",c.DD="dd",c.DESC="desc",c.DETAILS="details",c.DIALOG="dialog",c.DIR="dir",c.DIV="div",c.DL="dl",c.DT="dt",c.EM="em",c.EMBED="embed",c.FIELDSET="fieldset",c.FIGCAPTION="figcaption",c.FIGURE="figure",c.FONT="font",c.FOOTER="footer",c.FOREIGN_OBJECT="foreignObject",c.FORM="form",c.FRAME="frame",c.FRAMESET="frameset",c.H1="h1",c.H2="h2",c.H3="h3",c.H4="h4",c.H5="h5",c.H6="h6",c.HEAD="head",c.HEADER="header",c.HGROUP="hgroup",c.HR="hr",c.HTML="html",c.I="i",c.IMG="img",c.IMAGE="image",c.INPUT="input",c.IFRAME="iframe",c.KEYGEN="keygen",c.LABEL="label",c.LI="li",c.LINK="link",c.LISTING="listing",c.MAIN="main",c.MALIGNMARK="malignmark",c.MARQUEE="marquee",c.MATH="math",c.MENU="menu",c.META="meta",c.MGLYPH="mglyph",c.MI="mi",c.MO="mo",c.MN="mn",c.MS="ms",c.MTEXT="mtext",c.NAV="nav",c.NOBR="nobr",c.NOFRAMES="noframes",c.NOEMBED="noembed",c.NOSCRIPT="noscript",c.OBJECT="object",c.OL="ol",c.OPTGROUP="optgroup",c.OPTION="option",c.P="p",c.PARAM="param",c.PLAINTEXT="plaintext",c.PRE="pre",c.RB="rb",c.RP="rp",c.RT="rt",c.RTC="rtc",c.RUBY="ruby",c.S="s",c.SCRIPT="script",c.SECTION="section",c.SELECT="select",c.SOURCE="source",c.SMALL="small",c.SPAN="span",c.STRIKE="strike",c.STRONG="strong",c.STYLE="style",c.SUB="sub",c.SUMMARY="summary",c.SUP="sup",c.TABLE="table",c.TBODY="tbody",c.TEMPLATE="template",c.TEXTAREA="textarea",c.TFOOT="tfoot",c.TD="td",c.TH="th",c.THEAD="thead",c.TITLE="title",c.TR="tr",c.TRACK="track",c.TT="tt",c.U="u",c.UL="ul",c.SVG="svg",c.VAR="var",c.WBR="wbr",c.XMP="xmp",(u=v=v||(v={}))[u.UNKNOWN=0]="UNKNOWN",u[u.A=1]="A",u[u.ADDRESS=2]="ADDRESS",u[u.ANNOTATION_XML=3]="ANNOTATION_XML",u[u.APPLET=4]="APPLET",u[u.AREA=5]="AREA",u[u.ARTICLE=6]="ARTICLE",u[u.ASIDE=7]="ASIDE",u[u.B=8]="B",u[u.BASE=9]="BASE",u[u.BASEFONT=10]="BASEFONT",u[u.BGSOUND=11]="BGSOUND",u[u.BIG=12]="BIG",u[u.BLOCKQUOTE=13]="BLOCKQUOTE",u[u.BODY=14]="BODY",u[u.BR=15]="BR",u[u.BUTTON=16]="BUTTON",u[u.CAPTION=17]="CAPTION",u[u.CENTER=18]="CENTER",u[u.CODE=19]="CODE",u[u.COL=20]="COL",u[u.COLGROUP=21]="COLGROUP",u[u.DD=22]="DD",u[u.DESC=23]="DESC",u[u.DETAILS=24]="DETAILS",u[u.DIALOG=25]="DIALOG",u[u.DIR=26]="DIR",u[u.DIV=27]="DIV",u[u.DL=28]="DL",u[u.DT=29]="DT",u[u.EM=30]="EM",u[u.EMBED=31]="EMBED",u[u.FIELDSET=32]="FIELDSET",u[u.FIGCAPTION=33]="FIGCAPTION",u[u.FIGURE=34]="FIGURE",u[u.FONT=35]="FONT",u[u.FOOTER=36]="FOOTER",u[u.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",u[u.FORM=38]="FORM",u[u.FRAME=39]="FRAME",u[u.FRAMESET=40]="FRAMESET",u[u.H1=41]="H1",u[u.H2=42]="H2",u[u.H3=43]="H3",u[u.H4=44]="H4",u[u.H5=45]="H5",u[u.H6=46]="H6",u[u.HEAD=47]="HEAD",u[u.HEADER=48]="HEADER",u[u.HGROUP=49]="HGROUP",u[u.HR=50]="HR",u[u.HTML=51]="HTML",u[u.I=52]="I",u[u.IMG=53]="IMG",u[u.IMAGE=54]="IMAGE",u[u.INPUT=55]="INPUT",u[u.IFRAME=56]="IFRAME",u[u.KEYGEN=57]="KEYGEN",u[u.LABEL=58]="LABEL",u[u.LI=59]="LI",u[u.LINK=60]="LINK",u[u.LISTING=61]="LISTING",u[u.MAIN=62]="MAIN",u[u.MALIGNMARK=63]="MALIGNMARK",u[u.MARQUEE=64]="MARQUEE",u[u.MATH=65]="MATH",u[u.MENU=66]="MENU",u[u.META=67]="META",u[u.MGLYPH=68]="MGLYPH",u[u.MI=69]="MI",u[u.MO=70]="MO",u[u.MN=71]="MN",u[u.MS=72]="MS",u[u.MTEXT=73]="MTEXT",u[u.NAV=74]="NAV",u[u.NOBR=75]="NOBR",u[u.NOFRAMES=76]="NOFRAMES",u[u.NOEMBED=77]="NOEMBED",u[u.NOSCRIPT=78]="NOSCRIPT",u[u.OBJECT=79]="OBJECT",u[u.OL=80]="OL",u[u.OPTGROUP=81]="OPTGROUP",u[u.OPTION=82]="OPTION",u[u.P=83]="P",u[u.PARAM=84]="PARAM",u[u.PLAINTEXT=85]="PLAINTEXT",u[u.PRE=86]="PRE",u[u.RB=87]="RB",u[u.RP=88]="RP",u[u.RT=89]="RT",u[u.RTC=90]="RTC",u[u.RUBY=91]="RUBY",u[u.S=92]="S",u[u.SCRIPT=93]="SCRIPT",u[u.SECTION=94]="SECTION",u[u.SELECT=95]="SELECT",u[u.SOURCE=96]="SOURCE",u[u.SMALL=97]="SMALL",u[u.SPAN=98]="SPAN",u[u.STRIKE=99]="STRIKE",u[u.STRONG=100]="STRONG",u[u.STYLE=101]="STYLE",u[u.SUB=102]="SUB",u[u.SUMMARY=103]="SUMMARY",u[u.SUP=104]="SUP",u[u.TABLE=105]="TABLE",u[u.TBODY=106]="TBODY",u[u.TEMPLATE=107]="TEMPLATE",u[u.TEXTAREA=108]="TEXTAREA",u[u.TFOOT=109]="TFOOT",u[u.TD=110]="TD",u[u.TH=111]="TH",u[u.THEAD=112]="THEAD",u[u.TITLE=113]="TITLE",u[u.TR=114]="TR",u[u.TRACK=115]="TRACK",u[u.TT=116]="TT",u[u.U=117]="U",u[u.UL=118]="UL",u[u.SVG=119]="SVG",u[u.VAR=120]="VAR",u[u.WBR=121]="WBR",u[u.XMP=122]="XMP";let eu=new Map([[T.A,v.A],[T.ADDRESS,v.ADDRESS],[T.ANNOTATION_XML,v.ANNOTATION_XML],[T.APPLET,v.APPLET],[T.AREA,v.AREA],[T.ARTICLE,v.ARTICLE],[T.ASIDE,v.ASIDE],[T.B,v.B],[T.BASE,v.BASE],[T.BASEFONT,v.BASEFONT],[T.BGSOUND,v.BGSOUND],[T.BIG,v.BIG],[T.BLOCKQUOTE,v.BLOCKQUOTE],[T.BODY,v.BODY],[T.BR,v.BR],[T.BUTTON,v.BUTTON],[T.CAPTION,v.CAPTION],[T.CENTER,v.CENTER],[T.CODE,v.CODE],[T.COL,v.COL],[T.COLGROUP,v.COLGROUP],[T.DD,v.DD],[T.DESC,v.DESC],[T.DETAILS,v.DETAILS],[T.DIALOG,v.DIALOG],[T.DIR,v.DIR],[T.DIV,v.DIV],[T.DL,v.DL],[T.DT,v.DT],[T.EM,v.EM],[T.EMBED,v.EMBED],[T.FIELDSET,v.FIELDSET],[T.FIGCAPTION,v.FIGCAPTION],[T.FIGURE,v.FIGURE],[T.FONT,v.FONT],[T.FOOTER,v.FOOTER],[T.FOREIGN_OBJECT,v.FOREIGN_OBJECT],[T.FORM,v.FORM],[T.FRAME,v.FRAME],[T.FRAMESET,v.FRAMESET],[T.H1,v.H1],[T.H2,v.H2],[T.H3,v.H3],[T.H4,v.H4],[T.H5,v.H5],[T.H6,v.H6],[T.HEAD,v.HEAD],[T.HEADER,v.HEADER],[T.HGROUP,v.HGROUP],[T.HR,v.HR],[T.HTML,v.HTML],[T.I,v.I],[T.IMG,v.IMG],[T.IMAGE,v.IMAGE],[T.INPUT,v.INPUT],[T.IFRAME,v.IFRAME],[T.KEYGEN,v.KEYGEN],[T.LABEL,v.LABEL],[T.LI,v.LI],[T.LINK,v.LINK],[T.LISTING,v.LISTING],[T.MAIN,v.MAIN],[T.MALIGNMARK,v.MALIGNMARK],[T.MARQUEE,v.MARQUEE],[T.MATH,v.MATH],[T.MENU,v.MENU],[T.META,v.META],[T.MGLYPH,v.MGLYPH],[T.MI,v.MI],[T.MO,v.MO],[T.MN,v.MN],[T.MS,v.MS],[T.MTEXT,v.MTEXT],[T.NAV,v.NAV],[T.NOBR,v.NOBR],[T.NOFRAMES,v.NOFRAMES],[T.NOEMBED,v.NOEMBED],[T.NOSCRIPT,v.NOSCRIPT],[T.OBJECT,v.OBJECT],[T.OL,v.OL],[T.OPTGROUP,v.OPTGROUP],[T.OPTION,v.OPTION],[T.P,v.P],[T.PARAM,v.PARAM],[T.PLAINTEXT,v.PLAINTEXT],[T.PRE,v.PRE],[T.RB,v.RB],[T.RP,v.RP],[T.RT,v.RT],[T.RTC,v.RTC],[T.RUBY,v.RUBY],[T.S,v.S],[T.SCRIPT,v.SCRIPT],[T.SECTION,v.SECTION],[T.SELECT,v.SELECT],[T.SOURCE,v.SOURCE],[T.SMALL,v.SMALL],[T.SPAN,v.SPAN],[T.STRIKE,v.STRIKE],[T.STRONG,v.STRONG],[T.STYLE,v.STYLE],[T.SUB,v.SUB],[T.SUMMARY,v.SUMMARY],[T.SUP,v.SUP],[T.TABLE,v.TABLE],[T.TBODY,v.TBODY],[T.TEMPLATE,v.TEMPLATE],[T.TEXTAREA,v.TEXTAREA],[T.TFOOT,v.TFOOT],[T.TD,v.TD],[T.TH,v.TH],[T.THEAD,v.THEAD],[T.TITLE,v.TITLE],[T.TR,v.TR],[T.TRACK,v.TRACK],[T.TT,v.TT],[T.U,v.U],[T.UL,v.UL],[T.SVG,v.SVG],[T.VAR,v.VAR],[T.WBR,v.WBR],[T.XMP,v.XMP]]);function ed(e){var t;return null!==(t=eu.get(e))&&void 0!==t?t:v.UNKNOWN}let ep=v,ef={[b.HTML]:new Set([ep.ADDRESS,ep.APPLET,ep.AREA,ep.ARTICLE,ep.ASIDE,ep.BASE,ep.BASEFONT,ep.BGSOUND,ep.BLOCKQUOTE,ep.BODY,ep.BR,ep.BUTTON,ep.CAPTION,ep.CENTER,ep.COL,ep.COLGROUP,ep.DD,ep.DETAILS,ep.DIR,ep.DIV,ep.DL,ep.DT,ep.EMBED,ep.FIELDSET,ep.FIGCAPTION,ep.FIGURE,ep.FOOTER,ep.FORM,ep.FRAME,ep.FRAMESET,ep.H1,ep.H2,ep.H3,ep.H4,ep.H5,ep.H6,ep.HEAD,ep.HEADER,ep.HGROUP,ep.HR,ep.HTML,ep.IFRAME,ep.IMG,ep.INPUT,ep.LI,ep.LINK,ep.LISTING,ep.MAIN,ep.MARQUEE,ep.MENU,ep.META,ep.NAV,ep.NOEMBED,ep.NOFRAMES,ep.NOSCRIPT,ep.OBJECT,ep.OL,ep.P,ep.PARAM,ep.PLAINTEXT,ep.PRE,ep.SCRIPT,ep.SECTION,ep.SELECT,ep.SOURCE,ep.STYLE,ep.SUMMARY,ep.TABLE,ep.TBODY,ep.TD,ep.TEMPLATE,ep.TEXTAREA,ep.TFOOT,ep.TH,ep.THEAD,ep.TITLE,ep.TR,ep.TRACK,ep.UL,ep.WBR,ep.XMP]),[b.MATHML]:new Set([ep.MI,ep.MO,ep.MN,ep.MS,ep.MTEXT,ep.ANNOTATION_XML]),[b.SVG]:new Set([ep.TITLE,ep.FOREIGN_OBJECT,ep.DESC]),[b.XLINK]:new Set,[b.XML]:new Set,[b.XMLNS]:new Set};function em(e){return e===ep.H1||e===ep.H2||e===ep.H3||e===ep.H4||e===ep.H5||e===ep.H6}T.STYLE,T.SCRIPT,T.XMP,T.IFRAME,T.NOEMBED,T.NOFRAMES,T.PLAINTEXT;let eg=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);(d=S||(S={}))[d.DATA=0]="DATA",d[d.RCDATA=1]="RCDATA",d[d.RAWTEXT=2]="RAWTEXT",d[d.SCRIPT_DATA=3]="SCRIPT_DATA",d[d.PLAINTEXT=4]="PLAINTEXT",d[d.TAG_OPEN=5]="TAG_OPEN",d[d.END_TAG_OPEN=6]="END_TAG_OPEN",d[d.TAG_NAME=7]="TAG_NAME",d[d.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",d[d.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",d[d.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",d[d.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",d[d.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",d[d.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",d[d.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",d[d.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",d[d.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",d[d.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",d[d.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",d[d.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",d[d.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",d[d.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",d[d.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",d[d.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",d[d.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",d[d.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",d[d.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",d[d.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",d[d.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",d[d.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",d[d.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",d[d.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",d[d.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",d[d.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",d[d.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",d[d.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",d[d.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",d[d.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",d[d.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",d[d.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",d[d.BOGUS_COMMENT=40]="BOGUS_COMMENT",d[d.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",d[d.COMMENT_START=42]="COMMENT_START",d[d.COMMENT_START_DASH=43]="COMMENT_START_DASH",d[d.COMMENT=44]="COMMENT",d[d.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",d[d.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",d[d.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",d[d.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",d[d.COMMENT_END_DASH=49]="COMMENT_END_DASH",d[d.COMMENT_END=50]="COMMENT_END",d[d.COMMENT_END_BANG=51]="COMMENT_END_BANG",d[d.DOCTYPE=52]="DOCTYPE",d[d.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",d[d.DOCTYPE_NAME=54]="DOCTYPE_NAME",d[d.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",d[d.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",d[d.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",d[d.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",d[d.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",d[d.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",d[d.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",d[d.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",d[d.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",d[d.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",d[d.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",d[d.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",d[d.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",d[d.CDATA_SECTION=68]="CDATA_SECTION",d[d.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",d[d.CDATA_SECTION_END=70]="CDATA_SECTION_END",d[d.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",d[d.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",d[d.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",d[d.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",d[d.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",d[d.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",d[d.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",d[d.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END";let eh={DATA:S.DATA,RCDATA:S.RCDATA,RAWTEXT:S.RAWTEXT,SCRIPT_DATA:S.SCRIPT_DATA,PLAINTEXT:S.PLAINTEXT,CDATA_SECTION:S.CDATA_SECTION};function eb(e){return e>=m.DIGIT_0&&e<=m.DIGIT_9}function ey(e){return e>=m.LATIN_CAPITAL_A&&e<=m.LATIN_CAPITAL_Z}function eE(e){return e>=m.LATIN_SMALL_A&&e<=m.LATIN_SMALL_Z||ey(e)}function eT(e){return eE(e)||eb(e)}function ev(e){return e>=m.LATIN_CAPITAL_A&&e<=m.LATIN_CAPITAL_F}function eS(e){return e>=m.LATIN_SMALL_A&&e<=m.LATIN_SMALL_F}function eA(e){return e===m.SPACE||e===m.LINE_FEED||e===m.TABULATION||e===m.FORM_FEED}function eO(e){return eA(e)||e===m.SOLIDUS||e===m.GREATER_THAN_SIGN}class e_{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=S.DATA,this.returnState=S.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new es(t),this.currentLocation=this.getCurrentLocation(-1)}_err(e){var t,n;null===(n=(t=this.handler).onParseError)||void 0===n||n.call(t,this.preprocessor.getError(e))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(e){this.consumedAfterSnapshot-=e,this.preprocessor.retreat(e)}_reconsumeInState(e,t){this.state=e,this._callState(t)}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t0&&this._err(g.endTagWithAttributes),e.selfClosing&&this._err(g.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case h.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case h.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case h.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:h.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type!==e)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=t;return}}this._createCharacterToken(e,t)}_emitCodePoint(e){let t=eA(e)?h.WHITESPACE_CHARACTER:e===m.NULL?h.NULL_CHARACTER:h.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(h.CHARACTER,e)}_matchNamedCharacterReference(e){let t=null,n=0,r=!1;for(let i=0,o=ec.HP[0];i>=0&&!((i=(0,ec.Go)(ec.HP,o,i+1,e))<0);e=this._consume()){n+=1,o=ec.HP[i];let s=o&ec.ge.VALUE_LENGTH;if(s){var a;let o=(s>>14)-1;if(e!==m.SEMICOLON&&this._isCharacterReferenceInAttribute()&&((a=this.preprocessor.peek(1))===m.EQUALS_SIGN||eT(a))?(t=[m.AMPERSAND],i+=o):(t=0===o?[ec.HP[i]&~ec.ge.VALUE_LENGTH]:1===o?[ec.HP[++i]]:[ec.HP[++i],ec.HP[++i]],n=0,r=e!==m.SEMICOLON),0===o){this._consume();break}}}return this._unconsume(n),r&&!this.preprocessor.endOfChunkHit&&this._err(g.missingSemicolonAfterCharacterReference),this._unconsume(1),t}_isCharacterReferenceInAttribute(){return this.returnState===S.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===S.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===S.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case S.DATA:this._stateData(e);break;case S.RCDATA:this._stateRcdata(e);break;case S.RAWTEXT:this._stateRawtext(e);break;case S.SCRIPT_DATA:this._stateScriptData(e);break;case S.PLAINTEXT:this._statePlaintext(e);break;case S.TAG_OPEN:this._stateTagOpen(e);break;case S.END_TAG_OPEN:this._stateEndTagOpen(e);break;case S.TAG_NAME:this._stateTagName(e);break;case S.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case S.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case S.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case S.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case S.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case S.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case S.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case S.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case S.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case S.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case S.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case S.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case S.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case S.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case S.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case S.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case S.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case S.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case S.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case S.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case S.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case S.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case S.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case S.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case S.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case S.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case S.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case S.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case S.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case S.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case S.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case S.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case S.BOGUS_COMMENT:this._stateBogusComment(e);break;case S.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case S.COMMENT_START:this._stateCommentStart(e);break;case S.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case S.COMMENT:this._stateComment(e);break;case S.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case S.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case S.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case S.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case S.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case S.COMMENT_END:this._stateCommentEnd(e);break;case S.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case S.DOCTYPE:this._stateDoctype(e);break;case S.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case S.DOCTYPE_NAME:this._stateDoctypeName(e);break;case S.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case S.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case S.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case S.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case S.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case S.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case S.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case S.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case S.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case S.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case S.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case S.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case S.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case S.CDATA_SECTION:this._stateCdataSection(e);break;case S.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case S.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case S.CHARACTER_REFERENCE:this._stateCharacterReference(e);break;case S.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(e);break;case S.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;case S.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(e);break;case S.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(e);break;case S.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(e);break;case S.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e);break;case S.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(e);break;default:throw Error("Unknown state")}}_stateData(e){switch(e){case m.LESS_THAN_SIGN:this.state=S.TAG_OPEN;break;case m.AMPERSAND:this.returnState=S.DATA,this.state=S.CHARACTER_REFERENCE;break;case m.NULL:this._err(g.unexpectedNullCharacter),this._emitCodePoint(e);break;case m.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case m.AMPERSAND:this.returnState=S.RCDATA,this.state=S.CHARACTER_REFERENCE;break;case m.LESS_THAN_SIGN:this.state=S.RCDATA_LESS_THAN_SIGN;break;case m.NULL:this._err(g.unexpectedNullCharacter),this._emitChars("�");break;case m.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case m.LESS_THAN_SIGN:this.state=S.RAWTEXT_LESS_THAN_SIGN;break;case m.NULL:this._err(g.unexpectedNullCharacter),this._emitChars("�");break;case m.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case m.LESS_THAN_SIGN:this.state=S.SCRIPT_DATA_LESS_THAN_SIGN;break;case m.NULL:this._err(g.unexpectedNullCharacter),this._emitChars("�");break;case m.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case m.NULL:this._err(g.unexpectedNullCharacter),this._emitChars("�");break;case m.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(eE(e))this._createStartTagToken(),this.state=S.TAG_NAME,this._stateTagName(e);else switch(e){case m.EXCLAMATION_MARK:this.state=S.MARKUP_DECLARATION_OPEN;break;case m.SOLIDUS:this.state=S.END_TAG_OPEN;break;case m.QUESTION_MARK:this._err(g.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=S.BOGUS_COMMENT,this._stateBogusComment(e);break;case m.EOF:this._err(g.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(g.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=S.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(eE(e))this._createEndTagToken(),this.state=S.TAG_NAME,this._stateTagName(e);else switch(e){case m.GREATER_THAN_SIGN:this._err(g.missingEndTagName),this.state=S.DATA;break;case m.EOF:this._err(g.eofBeforeTagName),this._emitChars("");break;case m.NULL:this._err(g.unexpectedNullCharacter),this.state=S.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case m.EOF:this._err(g.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=S.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===m.SOLIDUS?this.state=S.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:eE(e)?(this._emitChars("<"),this.state=S.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=S.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){eE(e)?(this.state=S.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("");break;case m.NULL:this._err(g.unexpectedNullCharacter),this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case m.EOF:this._err(g.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===m.SOLIDUS?(this.state=S.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(er.SCRIPT,!1)&&eO(this.preprocessor.peek(er.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e1114111)this._err(g.characterReferenceOutsideUnicodeRange),this.charRefCode=m.REPLACEMENT_CHARACTER;else if(ea(this.charRefCode))this._err(g.surrogateCharacterReference),this.charRefCode=m.REPLACEMENT_CHARACTER;else if(eo(this.charRefCode))this._err(g.noncharacterCharacterReference);else if(ei(this.charRefCode)||this.charRefCode===m.CARRIAGE_RETURN){this._err(g.controlCharacterReference);let e=eg.get(this.charRefCode);void 0!==e&&(this.charRefCode=e)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,e)}}let ek=new Set([v.DD,v.DT,v.LI,v.OPTGROUP,v.OPTION,v.P,v.RB,v.RP,v.RT,v.RTC]),eI=new Set([...ek,v.CAPTION,v.COLGROUP,v.TBODY,v.TD,v.TFOOT,v.TH,v.THEAD,v.TR]),eC=new Map([[v.APPLET,b.HTML],[v.CAPTION,b.HTML],[v.HTML,b.HTML],[v.MARQUEE,b.HTML],[v.OBJECT,b.HTML],[v.TABLE,b.HTML],[v.TD,b.HTML],[v.TEMPLATE,b.HTML],[v.TH,b.HTML],[v.ANNOTATION_XML,b.MATHML],[v.MI,b.MATHML],[v.MN,b.MATHML],[v.MO,b.MATHML],[v.MS,b.MATHML],[v.MTEXT,b.MATHML],[v.DESC,b.SVG],[v.FOREIGN_OBJECT,b.SVG],[v.TITLE,b.SVG]]),eN=[v.H1,v.H2,v.H3,v.H4,v.H5,v.H6],ex=[v.TR,v.TEMPLATE,v.HTML],ew=[v.TBODY,v.TFOOT,v.THEAD,v.TEMPLATE,v.HTML],eR=[v.TABLE,v.TEMPLATE,v.HTML],eL=[v.TD,v.TH];class eD{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=v.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===v.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===b.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){let r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==b.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop=0;n--)if(e.includes(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return -1}clearBackTo(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(eR,b.HTML)}clearBackToTableBodyContext(){this.clearBackTo(ew,b.HTML)}clearBackToTableRowContext(){this.clearBackTo(ex,b.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===v.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===v.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===b.HTML)break;if(eC.get(n)===r)return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e],n=this.treeAdapter.getNamespaceURI(this.items[e]);if(em(t)&&n===b.HTML)break;if(eC.get(t)===n)return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===b.HTML)break;if((n===v.UL||n===v.OL)&&r===b.HTML||eC.get(n)===r)return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===b.HTML)break;if(n===v.BUTTON&&r===b.HTML||eC.get(n)===r)return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===b.HTML){if(n===e)break;if(n===v.TABLE||n===v.TEMPLATE||n===v.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e],n=this.treeAdapter.getNamespaceURI(this.items[e]);if(n===b.HTML){if(t===v.TBODY||t===v.THEAD||t===v.TFOOT)break;if(t===v.TABLE||t===v.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===b.HTML){if(n===e)break;if(n!==v.OPTION&&n!==v.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;ek.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;eI.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&eI.has(this.currentTagId);)this.pop()}}(p=A=A||(A={}))[p.Marker=0]="Marker",p[p.Element=1]="Element";let eP={type:A.Marker};class eM{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let n=[],r=t.length,a=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);for(let e=0;e[e.name,e.value])),a=0;for(let e=0;er.get(e.name)===e.value)&&(a+=1)>=3&&this.entries.splice(t.idx,1)}}insertMarker(){this.entries.unshift(eP)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:A.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:A.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(eP);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===A.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===A.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===A.Element&&t.element===e)}}function eF(e){return{nodeName:"#text",value:e,parentNode:null}}let eB={createDocument:()=>({nodeName:"#document",mode:E.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){let a=e.childNodes.find(e=>"#documentType"===e.nodeName);a?(a.name=t,a.publicId=n,a.systemId=r):eB.appendChild(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null})},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let n=e.childNodes[e.childNodes.length-1];if(eB.isTextNode(n)){n.value+=t;return}}eB.appendChild(e,eF(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];r&&eB.isTextNode(r)?r.value+=t:eB.insertBefore(e,eF(t),n)},adoptAttributes(e,t){let n=new Set(e.attrs.map(e=>e.name));for(let r=0;re.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},ej="html",eU=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],eH=[...eU,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],eG=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),e$=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],ez=[...e$,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function eZ(e,t){return t.some(t=>e.startsWith(t))}let eW={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},eY=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),eV=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:b.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:b.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:b.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:b.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:b.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:b.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:b.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:b.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:b.XML}],["xml:space",{prefix:"xml",name:"space",namespace:b.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:b.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:b.XMLNS}]]),eq=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),eK=new Set([v.B,v.BIG,v.BLOCKQUOTE,v.BODY,v.BR,v.CENTER,v.CODE,v.DD,v.DIV,v.DL,v.DT,v.EM,v.EMBED,v.H1,v.H2,v.H3,v.H4,v.H5,v.H6,v.HEAD,v.HR,v.I,v.IMG,v.LI,v.LISTING,v.MENU,v.META,v.NOBR,v.OL,v.P,v.PRE,v.RUBY,v.S,v.SMALL,v.SPAN,v.STRONG,v.STRIKE,v.SUB,v.SUP,v.TABLE,v.TT,v.U,v.UL,v.VAR]);function eX(e){for(let t=0;t0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):{current:e,currentTagId:t}=this.openElements,this._setContextModes(e,t)}}_setContextModes(e,t){let n=e===this.document||this.treeAdapter.getNamespaceURI(e)===b.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,b.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=O.TEXT}switchToPlaintextParsing(){this.insertionMode=O.TEXT,this.originalInsertionMode=O.IN_BODY,this.tokenizer.state=eh.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===T.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===b.HTML)switch(this.fragmentContextID){case v.TITLE:case v.TEXTAREA:this.tokenizer.state=eh.RCDATA;break;case v.STYLE:case v.XMP:case v.IFRAME:case v.NOEMBED:case v.NOFRAMES:case v.NOSCRIPT:this.tokenizer.state=eh.RAWTEXT;break;case v.SCRIPT:this.tokenizer.state=eh.SCRIPT_DATA;break;case v.PLAINTEXT:this.tokenizer.state=eh.PLAINTEXT}}_setDocumentType(e){let t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){let t=this.treeAdapter.getChildNodes(this.document),n=t.find(e=>this.treeAdapter.isDocumentTypeNode(e));n&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){let n=this.treeAdapter.createElement(e,b.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,b.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(T.HTML,b.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,v.HTML)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let r=this.treeAdapter.getChildNodes(t),a=n?r.lastIndexOf(n):r.length,i=r[a-1],o=this.treeAdapter.getNodeSourceCodeLocation(i);if(o){let{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let n=t.location,r=this.treeAdapter.getTagName(e),a=t.type===h.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,a)}}shouldProcessStartTagTokenInForeignContent(e){let t,n;return!!this.currentNotInHTML&&(0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):{current:t,currentTagId:n}=this.openElements,(e.tagID!==v.SVG||this.treeAdapter.getTagName(t)!==T.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==b.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===v.MGLYPH||e.tagID===v.MALIGNMARK)&&!this._isIntegrationPoint(n,t,b.HTML)))}_processToken(e){switch(e.type){case h.CHARACTER:this.onCharacter(e);break;case h.NULL_CHARACTER:this.onNullCharacter(e);break;case h.COMMENT:this.onComment(e);break;case h.DOCTYPE:this.onDoctype(e);break;case h.START_TAG:this._processStartTag(e);break;case h.END_TAG:this.onEndTag(e);break;case h.EOF:this.onEof(e);break;case h.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){let r=this.treeAdapter.getNamespaceURI(t),a=this.treeAdapter.getAttrList(t);return(!n||n===b.HTML)&&function(e,t,n){if(t===b.MATHML&&e===v.ANNOTATION_XML){for(let e=0;ee.type===A.Marker||this.openElements.contains(e.element)),n=t<0?e-1:t-1;for(let e=n;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=O.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(v.P),this.openElements.popUntilTagNamePopped(v.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case v.TR:this.insertionMode=O.IN_ROW;return;case v.TBODY:case v.THEAD:case v.TFOOT:this.insertionMode=O.IN_TABLE_BODY;return;case v.CAPTION:this.insertionMode=O.IN_CAPTION;return;case v.COLGROUP:this.insertionMode=O.IN_COLUMN_GROUP;return;case v.TABLE:this.insertionMode=O.IN_TABLE;return;case v.BODY:this.insertionMode=O.IN_BODY;return;case v.FRAMESET:this.insertionMode=O.IN_FRAMESET;return;case v.SELECT:this._resetInsertionModeForSelect(e);return;case v.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case v.HTML:this.insertionMode=this.headElement?O.AFTER_HEAD:O.BEFORE_HEAD;return;case v.TD:case v.TH:if(e>0){this.insertionMode=O.IN_CELL;return}break;case v.HEAD:if(e>0){this.insertionMode=O.IN_HEAD;return}}this.insertionMode=O.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===v.TEMPLATE)break;if(e===v.TABLE){this.insertionMode=O.IN_SELECT_IN_TABLE;return}}this.insertionMode=O.IN_SELECT}_isElementCausesFosterParenting(e){return e1.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case v.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===b.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case v.TABLE:{let n=this.treeAdapter.getParentNode(t);if(n)return{parent:n,beforeElement:t};return{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){let n=this.treeAdapter.getNamespaceURI(e);return ef[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){this._insertCharacters(e),this.framesetOk=!1;return}switch(this.insertionMode){case O.INITIAL:e9(this,e);break;case O.BEFORE_HTML:e8(this,e);break;case O.BEFORE_HEAD:e7(this,e);break;case O.IN_HEAD:tn(this,e);break;case O.IN_HEAD_NO_SCRIPT:tr(this,e);break;case O.AFTER_HEAD:ta(this,e);break;case O.IN_BODY:case O.IN_CAPTION:case O.IN_CELL:case O.IN_TEMPLATE:ts(this,e);break;case O.TEXT:case O.IN_SELECT:case O.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case O.IN_TABLE:case O.IN_TABLE_BODY:case O.IN_ROW:th(this,e);break;case O.IN_TABLE_TEXT:tv(this,e);break;case O.IN_COLUMN_GROUP:t_(this,e);break;case O.AFTER_BODY:tD(this,e);break;case O.AFTER_AFTER_BODY:tP(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){e.chars="�",this._insertCharacters(e);return}switch(this.insertionMode){case O.INITIAL:e9(this,e);break;case O.BEFORE_HTML:e8(this,e);break;case O.BEFORE_HEAD:e7(this,e);break;case O.IN_HEAD:tn(this,e);break;case O.IN_HEAD_NO_SCRIPT:tr(this,e);break;case O.AFTER_HEAD:ta(this,e);break;case O.TEXT:this._insertCharacters(e);break;case O.IN_TABLE:case O.IN_TABLE_BODY:case O.IN_ROW:th(this,e);break;case O.IN_COLUMN_GROUP:t_(this,e);break;case O.AFTER_BODY:tD(this,e);break;case O.AFTER_AFTER_BODY:tP(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){e5(this,e);return}switch(this.insertionMode){case O.INITIAL:case O.BEFORE_HTML:case O.BEFORE_HEAD:case O.IN_HEAD:case O.IN_HEAD_NO_SCRIPT:case O.AFTER_HEAD:case O.IN_BODY:case O.IN_TABLE:case O.IN_CAPTION:case O.IN_COLUMN_GROUP:case O.IN_TABLE_BODY:case O.IN_ROW:case O.IN_CELL:case O.IN_SELECT:case O.IN_SELECT_IN_TABLE:case O.IN_TEMPLATE:case O.IN_FRAMESET:case O.AFTER_FRAMESET:e5(this,e);break;case O.IN_TABLE_TEXT:tS(this,e);break;case O.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case O.AFTER_AFTER_BODY:case O.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case O.INITIAL:!function(e,t){e._setDocumentType(t);let n=t.forceQuirks?E.QUIRKS:function(e){if(e.name!==ej)return E.QUIRKS;let{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return E.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),eG.has(n))return E.QUIRKS;let e=null===t?eH:eU;if(eZ(n,e))return E.QUIRKS;if(eZ(n,e=null===t?e$:ez))return E.LIMITED_QUIRKS}return E.NO_QUIRKS}(t);t.name===ej&&null===t.publicId&&(null===t.systemId||"about:legacy-compat"===t.systemId)||e._err(t,g.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=O.BEFORE_HTML}(this,e);break;case O.BEFORE_HEAD:case O.IN_HEAD:case O.IN_HEAD_NO_SCRIPT:case O.AFTER_HEAD:this._err(e,g.misplacedDoctype);break;case O.IN_TABLE_TEXT:tS(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,g.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){let t=e.tagID,n=t===v.FONT&&e.attrs.some(({name:e})=>e===y.COLOR||e===y.SIZE||e===y.FACE);return n||eK.has(t)}(t))tM(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===b.MATHML?eX(t):r===b.SVG&&(function(e){let t=eq.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=ed(e.tagName))}(t),eQ(t)),eJ(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case O.INITIAL:e9(this,e);break;case O.BEFORE_HTML:e.tagID===v.HTML?(this._insertElement(e,b.HTML),this.insertionMode=O.BEFORE_HEAD):e8(this,e);break;case O.BEFORE_HEAD:!function(e,t){switch(t.tagID){case v.HTML:tp(e,t);break;case v.HEAD:e._insertElement(t,b.HTML),e.headElement=e.openElements.current,e.insertionMode=O.IN_HEAD;break;default:e7(e,t)}}(this,e);break;case O.IN_HEAD:te(this,e);break;case O.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case v.HTML:tp(e,t);break;case v.BASEFONT:case v.BGSOUND:case v.HEAD:case v.LINK:case v.META:case v.NOFRAMES:case v.STYLE:te(e,t);break;case v.NOSCRIPT:e._err(t,g.nestedNoscriptInHead);break;default:tr(e,t)}}(this,e);break;case O.AFTER_HEAD:!function(e,t){switch(t.tagID){case v.HTML:tp(e,t);break;case v.BODY:e._insertElement(t,b.HTML),e.framesetOk=!1,e.insertionMode=O.IN_BODY;break;case v.FRAMESET:e._insertElement(t,b.HTML),e.insertionMode=O.IN_FRAMESET;break;case v.BASE:case v.BASEFONT:case v.BGSOUND:case v.LINK:case v.META:case v.NOFRAMES:case v.SCRIPT:case v.STYLE:case v.TEMPLATE:case v.TITLE:e._err(t,g.abandonedHeadElementChild),e.openElements.push(e.headElement,v.HEAD),te(e,t),e.openElements.remove(e.headElement);break;case v.HEAD:e._err(t,g.misplacedStartTagForHeadElement);break;default:ta(e,t)}}(this,e);break;case O.IN_BODY:tp(this,e);break;case O.IN_TABLE:tb(this,e);break;case O.IN_TABLE_TEXT:tS(this,e);break;case O.IN_CAPTION:!function(e,t){let n=t.tagID;tA.has(n)?e.openElements.hasInTableScope(v.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(v.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=O.IN_TABLE,tb(e,t)):tp(e,t)}(this,e);break;case O.IN_COLUMN_GROUP:tO(this,e);break;case O.IN_TABLE_BODY:tk(this,e);break;case O.IN_ROW:tC(this,e);break;case O.IN_CELL:!function(e,t){let n=t.tagID;tA.has(n)?(e.openElements.hasInTableScope(v.TD)||e.openElements.hasInTableScope(v.TH))&&(e._closeTableCell(),tC(e,t)):tp(e,t)}(this,e);break;case O.IN_SELECT:tx(this,e);break;case O.IN_SELECT_IN_TABLE:!function(e,t){let n=t.tagID;n===v.CAPTION||n===v.TABLE||n===v.TBODY||n===v.TFOOT||n===v.THEAD||n===v.TR||n===v.TD||n===v.TH?(e.openElements.popUntilTagNamePopped(v.SELECT),e._resetInsertionMode(),e._processStartTag(t)):tx(e,t)}(this,e);break;case O.IN_TEMPLATE:!function(e,t){switch(t.tagID){case v.BASE:case v.BASEFONT:case v.BGSOUND:case v.LINK:case v.META:case v.NOFRAMES:case v.SCRIPT:case v.STYLE:case v.TEMPLATE:case v.TITLE:te(e,t);break;case v.CAPTION:case v.COLGROUP:case v.TBODY:case v.TFOOT:case v.THEAD:e.tmplInsertionModeStack[0]=O.IN_TABLE,e.insertionMode=O.IN_TABLE,tb(e,t);break;case v.COL:e.tmplInsertionModeStack[0]=O.IN_COLUMN_GROUP,e.insertionMode=O.IN_COLUMN_GROUP,tO(e,t);break;case v.TR:e.tmplInsertionModeStack[0]=O.IN_TABLE_BODY,e.insertionMode=O.IN_TABLE_BODY,tk(e,t);break;case v.TD:case v.TH:e.tmplInsertionModeStack[0]=O.IN_ROW,e.insertionMode=O.IN_ROW,tC(e,t);break;default:e.tmplInsertionModeStack[0]=O.IN_BODY,e.insertionMode=O.IN_BODY,tp(e,t)}}(this,e);break;case O.AFTER_BODY:e.tagID===v.HTML?tp(this,e):tD(this,e);break;case O.IN_FRAMESET:!function(e,t){switch(t.tagID){case v.HTML:tp(e,t);break;case v.FRAMESET:e._insertElement(t,b.HTML);break;case v.FRAME:e._appendElement(t,b.HTML),t.ackSelfClosing=!0;break;case v.NOFRAMES:te(e,t)}}(this,e);break;case O.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case v.HTML:tp(e,t);break;case v.NOFRAMES:te(e,t)}}(this,e);break;case O.AFTER_AFTER_BODY:e.tagID===v.HTML?tp(this,e):tP(this,e);break;case O.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case v.HTML:tp(e,t);break;case v.NOFRAMES:te(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===v.P||t.tagID===v.BR){tM(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===b.HTML){e._endTagOutsideForeignContent(t);break}let a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){var t;switch(this.insertionMode){case O.INITIAL:e9(this,e);break;case O.BEFORE_HTML:!function(e,t){let n=t.tagID;(n===v.HTML||n===v.HEAD||n===v.BODY||n===v.BR)&&e8(e,t)}(this,e);break;case O.BEFORE_HEAD:!function(e,t){let n=t.tagID;n===v.HEAD||n===v.BODY||n===v.HTML||n===v.BR?e7(e,t):e._err(t,g.endTagWithoutMatchingOpenElement)}(this,e);break;case O.IN_HEAD:!function(e,t){switch(t.tagID){case v.HEAD:e.openElements.pop(),e.insertionMode=O.AFTER_HEAD;break;case v.BODY:case v.BR:case v.HTML:tn(e,t);break;case v.TEMPLATE:tt(e,t);break;default:e._err(t,g.endTagWithoutMatchingOpenElement)}}(this,e);break;case O.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case v.NOSCRIPT:e.openElements.pop(),e.insertionMode=O.IN_HEAD;break;case v.BR:tr(e,t);break;default:e._err(t,g.endTagWithoutMatchingOpenElement)}}(this,e);break;case O.AFTER_HEAD:!function(e,t){switch(t.tagID){case v.BODY:case v.HTML:case v.BR:ta(e,t);break;case v.TEMPLATE:tt(e,t);break;default:e._err(t,g.endTagWithoutMatchingOpenElement)}}(this,e);break;case O.IN_BODY:tm(this,e);break;case O.TEXT:e.tagID===v.SCRIPT&&(null===(t=this.scriptHandler)||void 0===t||t.call(this,this.openElements.current)),this.openElements.pop(),this.insertionMode=this.originalInsertionMode;break;case O.IN_TABLE:ty(this,e);break;case O.IN_TABLE_TEXT:tS(this,e);break;case O.IN_CAPTION:!function(e,t){let n=t.tagID;switch(n){case v.CAPTION:case v.TABLE:e.openElements.hasInTableScope(v.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(v.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=O.IN_TABLE,n===v.TABLE&&ty(e,t));break;case v.BODY:case v.COL:case v.COLGROUP:case v.HTML:case v.TBODY:case v.TD:case v.TFOOT:case v.TH:case v.THEAD:case v.TR:break;default:tm(e,t)}}(this,e);break;case O.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case v.COLGROUP:e.openElements.currentTagId===v.COLGROUP&&(e.openElements.pop(),e.insertionMode=O.IN_TABLE);break;case v.TEMPLATE:tt(e,t);break;case v.COL:break;default:t_(e,t)}}(this,e);break;case O.IN_TABLE_BODY:tI(this,e);break;case O.IN_ROW:tN(this,e);break;case O.IN_CELL:!function(e,t){let n=t.tagID;switch(n){case v.TD:case v.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=O.IN_ROW);break;case v.TABLE:case v.TBODY:case v.TFOOT:case v.THEAD:case v.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),tN(e,t));break;case v.BODY:case v.CAPTION:case v.COL:case v.COLGROUP:case v.HTML:break;default:tm(e,t)}}(this,e);break;case O.IN_SELECT:tw(this,e);break;case O.IN_SELECT_IN_TABLE:!function(e,t){let n=t.tagID;n===v.CAPTION||n===v.TABLE||n===v.TBODY||n===v.TFOOT||n===v.THEAD||n===v.TR||n===v.TD||n===v.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(v.SELECT),e._resetInsertionMode(),e.onEndTag(t)):tw(e,t)}(this,e);break;case O.IN_TEMPLATE:e.tagID===v.TEMPLATE&&tt(this,e);break;case O.AFTER_BODY:tL(this,e);break;case O.IN_FRAMESET:e.tagID!==v.FRAMESET||this.openElements.isRootHtmlElementCurrent()||(this.openElements.pop(),this.fragmentContext||this.openElements.currentTagId===v.FRAMESET||(this.insertionMode=O.AFTER_FRAMESET));break;case O.AFTER_FRAMESET:e.tagID===v.HTML&&(this.insertionMode=O.AFTER_AFTER_FRAMESET);break;case O.AFTER_AFTER_BODY:tP(this,e)}}onEof(e){switch(this.insertionMode){case O.INITIAL:e9(this,e);break;case O.BEFORE_HTML:e8(this,e);break;case O.BEFORE_HEAD:e7(this,e);break;case O.IN_HEAD:tn(this,e);break;case O.IN_HEAD_NO_SCRIPT:tr(this,e);break;case O.AFTER_HEAD:ta(this,e);break;case O.IN_BODY:case O.IN_TABLE:case O.IN_CAPTION:case O.IN_COLUMN_GROUP:case O.IN_TABLE_BODY:case O.IN_ROW:case O.IN_CELL:case O.IN_SELECT:case O.IN_SELECT_IN_TABLE:tg(this,e);break;case O.TEXT:this._err(e,g.eofInElementThatCanContainOnlyText),this.openElements.pop(),this.insertionMode=this.originalInsertionMode,this.onEof(e);break;case O.IN_TABLE_TEXT:tS(this,e);break;case O.IN_TEMPLATE:tR(this,e);break;case O.AFTER_BODY:case O.IN_FRAMESET:case O.AFTER_FRAMESET:case O.AFTER_AFTER_BODY:case O.AFTER_AFTER_FRAMESET:e6(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===m.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case O.IN_HEAD:case O.IN_HEAD_NO_SCRIPT:case O.AFTER_HEAD:case O.TEXT:case O.IN_COLUMN_GROUP:case O.IN_SELECT:case O.IN_SELECT_IN_TABLE:case O.IN_FRAMESET:case O.AFTER_FRAMESET:this._insertCharacters(e);break;case O.IN_BODY:case O.IN_CAPTION:case O.IN_CELL:case O.IN_TEMPLATE:case O.AFTER_BODY:case O.AFTER_AFTER_BODY:case O.AFTER_AFTER_FRAMESET:to(this,e);break;case O.IN_TABLE:case O.IN_TABLE_BODY:case O.IN_ROW:th(this,e);break;case O.IN_TABLE_TEXT:tT(this,e)}}}function e4(e,t){for(let n=0;n<8;n++){let n=function(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):tf(e,t),n}(e,t);if(!n)break;let r=function(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){let a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;let a=function(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let i=0,o=a;o!==n;i++,o=a){a=e.openElements.getCommonAncestor(o);let n=e.activeFormattingElements.getElementEntry(o),s=n&&i>=3,l=!n||s;l?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(o)):(o=function(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}(e,r,n.element),i=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(a),i&&function(e,t,n){let r=e.treeAdapter.getTagName(t),a=ed(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{let r=e.treeAdapter.getNamespaceURI(t);a===v.TEMPLATE&&r===b.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}(e,i,a),function(e,t,n){let r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,a.tagID)}(e,r,n)}}function e5(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function e6(e,t){if(e.stopped=!0,t.location){let n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){let n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function e9(e,t){e._err(t,g.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,E.QUIRKS),e.insertionMode=O.BEFORE_HTML,e._processToken(t)}function e8(e,t){e._insertFakeRootElement(),e.insertionMode=O.BEFORE_HEAD,e._processToken(t)}function e7(e,t){e._insertFakeElement(T.HEAD,v.HEAD),e.headElement=e.openElements.current,e.insertionMode=O.IN_HEAD,e._processToken(t)}function te(e,t){switch(t.tagID){case v.HTML:tp(e,t);break;case v.BASE:case v.BASEFONT:case v.BGSOUND:case v.LINK:case v.META:e._appendElement(t,b.HTML),t.ackSelfClosing=!0;break;case v.TITLE:e._switchToTextParsing(t,eh.RCDATA);break;case v.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,eh.RAWTEXT):(e._insertElement(t,b.HTML),e.insertionMode=O.IN_HEAD_NO_SCRIPT);break;case v.NOFRAMES:case v.STYLE:e._switchToTextParsing(t,eh.RAWTEXT);break;case v.SCRIPT:e._switchToTextParsing(t,eh.SCRIPT_DATA);break;case v.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=O.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(O.IN_TEMPLATE);break;case v.HEAD:e._err(t,g.misplacedStartTagForHeadElement);break;default:tn(e,t)}}function tt(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==v.TEMPLATE&&e._err(t,g.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(v.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,g.endTagWithoutMatchingOpenElement)}function tn(e,t){e.openElements.pop(),e.insertionMode=O.AFTER_HEAD,e._processToken(t)}function tr(e,t){let n=t.type===h.EOF?g.openElementsLeftAfterEof:g.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=O.IN_HEAD,e._processToken(t)}function ta(e,t){e._insertFakeElement(T.BODY,v.BODY),e.insertionMode=O.IN_BODY,ti(e,t)}function ti(e,t){switch(t.type){case h.CHARACTER:ts(e,t);break;case h.WHITESPACE_CHARACTER:to(e,t);break;case h.COMMENT:e5(e,t);break;case h.START_TAG:tp(e,t);break;case h.END_TAG:tm(e,t);break;case h.EOF:tg(e,t)}}function to(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function ts(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function tl(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,b.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function tc(e){let t=el(e,y.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function tu(e,t){e._switchToTextParsing(t,eh.RAWTEXT)}function td(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML)}function tp(e,t){switch(t.tagID){case v.I:case v.S:case v.B:case v.U:case v.EM:case v.TT:case v.BIG:case v.CODE:case v.FONT:case v.SMALL:case v.STRIKE:case v.STRONG:e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case v.A:!function(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(T.A);n&&(e4(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case v.H1:case v.H2:case v.H3:case v.H4:case v.H5:case v.H6:e.openElements.hasInButtonScope(v.P)&&e._closePElement(),em(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,b.HTML);break;case v.P:case v.DL:case v.OL:case v.UL:case v.DIV:case v.DIR:case v.NAV:case v.MAIN:case v.MENU:case v.ASIDE:case v.CENTER:case v.FIGURE:case v.FOOTER:case v.HEADER:case v.HGROUP:case v.DIALOG:case v.DETAILS:case v.ADDRESS:case v.ARTICLE:case v.SECTION:case v.SUMMARY:case v.FIELDSET:case v.BLOCKQUOTE:case v.FIGCAPTION:e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._insertElement(t,b.HTML);break;case v.LI:case v.DD:case v.DT:!function(e,t){e.framesetOk=!1;let n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let r=e.openElements.tagIDs[t];if(n===v.LI&&r===v.LI||(n===v.DD||n===v.DT)&&(r===v.DD||r===v.DT)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r);break}if(r!==v.ADDRESS&&r!==v.DIV&&r!==v.P&&e._isSpecialElement(e.openElements.items[t],r))break}e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._insertElement(t,b.HTML)}(e,t);break;case v.BR:case v.IMG:case v.WBR:case v.AREA:case v.EMBED:case v.KEYGEN:tl(e,t);break;case v.HR:e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._appendElement(t,b.HTML),e.framesetOk=!1,t.ackSelfClosing=!0;break;case v.RB:case v.RTC:e.openElements.hasInScope(v.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,b.HTML);break;case v.RT:case v.RP:e.openElements.hasInScope(v.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(v.RTC),e._insertElement(t,b.HTML);break;case v.PRE:case v.LISTING:e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._insertElement(t,b.HTML),e.skipNextNewLine=!0,e.framesetOk=!1;break;case v.XMP:e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,eh.RAWTEXT);break;case v.SVG:e._reconstructActiveFormattingElements(),eQ(t),eJ(t),t.selfClosing?e._appendElement(t,b.SVG):e._insertElement(t,b.SVG),t.ackSelfClosing=!0;break;case v.HTML:0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs);break;case v.BASE:case v.LINK:case v.META:case v.STYLE:case v.TITLE:case v.SCRIPT:case v.BGSOUND:case v.BASEFONT:case v.TEMPLATE:te(e,t);break;case v.BODY:!function(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case v.FORM:!function(e,t){let n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._insertElement(t,b.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case v.NOBR:e._reconstructActiveFormattingElements(),e.openElements.hasInScope(v.NOBR)&&(e4(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,b.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case v.MATH:e._reconstructActiveFormattingElements(),eX(t),eJ(t),t.selfClosing?e._appendElement(t,b.MATHML):e._insertElement(t,b.MATHML),t.ackSelfClosing=!0;break;case v.TABLE:e.treeAdapter.getDocumentMode(e.document)!==E.QUIRKS&&e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._insertElement(t,b.HTML),e.framesetOk=!1,e.insertionMode=O.IN_TABLE;break;case v.INPUT:e._reconstructActiveFormattingElements(),e._appendElement(t,b.HTML),tc(t)||(e.framesetOk=!1),t.ackSelfClosing=!0;break;case v.PARAM:case v.TRACK:case v.SOURCE:e._appendElement(t,b.HTML),t.ackSelfClosing=!0;break;case v.IMAGE:t.tagName=T.IMG,t.tagID=v.IMG,tl(e,t);break;case v.BUTTON:e.openElements.hasInScope(v.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(v.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML),e.framesetOk=!1;break;case v.APPLET:case v.OBJECT:case v.MARQUEE:e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1;break;case v.IFRAME:e.framesetOk=!1,e._switchToTextParsing(t,eh.RAWTEXT);break;case v.SELECT:e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===O.IN_TABLE||e.insertionMode===O.IN_CAPTION||e.insertionMode===O.IN_TABLE_BODY||e.insertionMode===O.IN_ROW||e.insertionMode===O.IN_CELL?O.IN_SELECT_IN_TABLE:O.IN_SELECT;break;case v.OPTION:case v.OPTGROUP:e.openElements.currentTagId===v.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML);break;case v.NOEMBED:tu(e,t);break;case v.FRAMESET:!function(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,b.HTML),e.insertionMode=O.IN_FRAMESET)}(e,t);break;case v.TEXTAREA:e._insertElement(t,b.HTML),e.skipNextNewLine=!0,e.tokenizer.state=eh.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=O.TEXT;break;case v.NOSCRIPT:e.options.scriptingEnabled?tu(e,t):td(e,t);break;case v.PLAINTEXT:e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._insertElement(t,b.HTML),e.tokenizer.state=eh.PLAINTEXT;break;case v.COL:case v.TH:case v.TD:case v.TR:case v.HEAD:case v.FRAME:case v.TBODY:case v.TFOOT:case v.THEAD:case v.CAPTION:case v.COLGROUP:break;default:td(e,t)}}function tf(e,t){let n=t.tagName,r=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let a=e.openElements.items[t],i=e.openElements.tagIDs[t];if(r===i&&(r!==v.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(a,i))break}}function tm(e,t){switch(t.tagID){case v.A:case v.B:case v.I:case v.S:case v.U:case v.EM:case v.TT:case v.BIG:case v.CODE:case v.FONT:case v.NOBR:case v.SMALL:case v.STRIKE:case v.STRONG:e4(e,t);break;case v.P:e.openElements.hasInButtonScope(v.P)||e._insertFakeElement(T.P,v.P),e._closePElement();break;case v.DL:case v.UL:case v.OL:case v.DIR:case v.DIV:case v.NAV:case v.PRE:case v.MAIN:case v.MENU:case v.ASIDE:case v.BUTTON:case v.CENTER:case v.FIGURE:case v.FOOTER:case v.HEADER:case v.HGROUP:case v.DIALOG:case v.ADDRESS:case v.ARTICLE:case v.DETAILS:case v.SECTION:case v.SUMMARY:case v.LISTING:case v.FIELDSET:case v.BLOCKQUOTE:case v.FIGCAPTION:!function(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case v.LI:e.openElements.hasInListItemScope(v.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(v.LI),e.openElements.popUntilTagNamePopped(v.LI));break;case v.DD:case v.DT:!function(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case v.H1:case v.H2:case v.H3:case v.H4:case v.H5:case v.H6:e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped());break;case v.BR:e._reconstructActiveFormattingElements(),e._insertFakeElement(T.BR,v.BR),e.openElements.pop(),e.framesetOk=!1;break;case v.BODY:!function(e,t){if(e.openElements.hasInScope(v.BODY)&&(e.insertionMode=O.AFTER_BODY,e.options.sourceCodeLocationInfo)){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case v.HTML:e.openElements.hasInScope(v.BODY)&&(e.insertionMode=O.AFTER_BODY,tL(e,t));break;case v.FORM:!function(e){let t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(v.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(v.FORM):n&&e.openElements.remove(n))}(e);break;case v.APPLET:case v.OBJECT:case v.MARQUEE:!function(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case v.TEMPLATE:tt(e,t);break;default:tf(e,t)}}function tg(e,t){e.tmplInsertionModeStack.length>0?tR(e,t):e6(e,t)}function th(e,t){if(e1.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=O.IN_TABLE_TEXT,t.type){case h.CHARACTER:tv(e,t);break;case h.WHITESPACE_CHARACTER:tT(e,t)}else tE(e,t)}function tb(e,t){switch(t.tagID){case v.TD:case v.TH:case v.TR:e.openElements.clearBackToTableContext(),e._insertFakeElement(T.TBODY,v.TBODY),e.insertionMode=O.IN_TABLE_BODY,tk(e,t);break;case v.STYLE:case v.SCRIPT:case v.TEMPLATE:te(e,t);break;case v.COL:e.openElements.clearBackToTableContext(),e._insertFakeElement(T.COLGROUP,v.COLGROUP),e.insertionMode=O.IN_COLUMN_GROUP,tO(e,t);break;case v.FORM:e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,b.HTML),e.formElement=e.openElements.current,e.openElements.pop());break;case v.TABLE:e.openElements.hasInTableScope(v.TABLE)&&(e.openElements.popUntilTagNamePopped(v.TABLE),e._resetInsertionMode(),e._processStartTag(t));break;case v.TBODY:case v.TFOOT:case v.THEAD:e.openElements.clearBackToTableContext(),e._insertElement(t,b.HTML),e.insertionMode=O.IN_TABLE_BODY;break;case v.INPUT:tc(t)?e._appendElement(t,b.HTML):tE(e,t),t.ackSelfClosing=!0;break;case v.CAPTION:e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,b.HTML),e.insertionMode=O.IN_CAPTION;break;case v.COLGROUP:e.openElements.clearBackToTableContext(),e._insertElement(t,b.HTML),e.insertionMode=O.IN_COLUMN_GROUP;break;default:tE(e,t)}}function ty(e,t){switch(t.tagID){case v.TABLE:e.openElements.hasInTableScope(v.TABLE)&&(e.openElements.popUntilTagNamePopped(v.TABLE),e._resetInsertionMode());break;case v.TEMPLATE:tt(e,t);break;case v.BODY:case v.CAPTION:case v.COL:case v.COLGROUP:case v.HTML:case v.TBODY:case v.TD:case v.TFOOT:case v.TH:case v.THEAD:case v.TR:break;default:tE(e,t)}}function tE(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,ti(e,t),e.fosterParentingEnabled=n}function tT(e,t){e.pendingCharacterTokens.push(t)}function tv(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function tS(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===v.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===v.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===v.OPTGROUP&&e.openElements.pop();break;case v.OPTION:e.openElements.currentTagId===v.OPTION&&e.openElements.pop();break;case v.SELECT:e.openElements.hasInSelectScope(v.SELECT)&&(e.openElements.popUntilTagNamePopped(v.SELECT),e._resetInsertionMode());break;case v.TEMPLATE:tt(e,t)}}function tR(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(v.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):e6(e,t)}function tL(e,t){var n;if(t.tagID===v.HTML){if(e.fragmentContext||(e.insertionMode=O.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===v.HTML){e._setEndLocation(e.openElements.items[0],t);let r=e.openElements.items[1];!r||(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)||e._setEndLocation(r,t)}}else tD(e,t)}function tD(e,t){e.insertionMode=O.IN_BODY,ti(e,t)}function tP(e,t){e.insertionMode=O.IN_BODY,ti(e,t)}function tM(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==b.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}n(43470),T.AREA,T.BASE,T.BASEFONT,T.BGSOUND,T.BR,T.COL,T.EMBED,T.FRAME,T.HR,T.IMG,T.INPUT,T.KEYGEN,T.LINK,T.META,T.PARAM,T.SOURCE,T.TRACK,T.WBR;var tF=n(3980),tB=n(21623);let tj=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),tU={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function tH(e,t){let n=function(e){let t="root"===e.type?e.children[0]:e;return!!(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),r=q("type",{handlers:{root:t$,element:tz,text:tZ,comment:tY,doctype:tW,raw:tV},unknown:tq}),a={parser:n?new e3(tU):e3.getFragmentParser(void 0,tU),handle(e){r(e,a)},stitches:!1,options:t||{}};r(e,a),tK(a,(0,tF.Pk)());let i=n?a.parser.document:a.parser.getFragment(),o=function(e,t){let n=t||{};return $({file:n.file||void 0,location:!1,schema:"svg"===n.space?I.YP:I.dy,verbose:n.verbose||!1},e)}(i,{file:a.options.file});return(a.stitches&&(0,tB.Vn)(o,"comment",function(e,t,n){if(e.value.stitch&&n&&void 0!==t){let r=n.children;return r[t]=e.value.stitch,t}}),"root"===o.type&&1===o.children.length&&o.children[0].type===e.type)?o.children[0]:o}function tG(e,t){let n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);let n={type:h.CHARACTER,chars:e.value,location:tQ(e)};tK(t,(0,tF.Pk)(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function tW(e,t){let n={type:h.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:tQ(e)};tK(t,(0,tF.Pk)(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function tY(e,t){let n=e.value,r={type:h.COMMENT,data:n,location:tQ(e)};tK(t,(0,tF.Pk)(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function tV(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,tX(t,(0,tF.Pk)(e)),t.parser.tokenizer.write(e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;let e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function tq(e,t){if(t.options.passThrough&&t.options.passThrough.includes(e.type))!function(e,t){t.stitches=!0;let n="children"in e?(0,_.ZP)({...e,children:[]}):(0,_.ZP)(e);if("children"in e&&"children"in n){let r=tH({type:"root",children:e.children},t.options);n.children=r.children}tY({type:"comment",value:{stitch:n}},t)}(e,t);else{let t="";throw tj.has(e.type)&&(t=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),Error("Cannot compile `"+e.type+"` node"+t)}}function tK(e,t){tX(e,t);let n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=eh.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function tX(e,t){if(t&&void 0!==t.offset){let n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function tQ(e){let t=(0,tF.Pk)(e)||{line:void 0,column:void 0,offset:void 0},n=(0,tF.rb)(e)||{line:void 0,column:void 0,offset:void 0},r={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset};return r}function tJ(e){return function(t,n){let r=tH(t,{...e,file:n});return r}}},55186:function(e,t,n){"use strict";function r(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,a=n.indexOf(t);for(;-1!==a;)r++,a=n.indexOf(t,a+t.length);return r}n.d(t,{Z:function(){return eX}});var a=n(24345),i=n(15459),o=n(88718),s=n(96093);let l="phrasing",c=["autolink","link","image","label"];function u(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function d(e){this.config.enter.autolinkProtocol.call(this,e)}function p(e){this.config.exit.autolinkProtocol.call(this,e)}function f(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];(0,a.ok)("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function m(e){this.config.exit.autolinkEmail.call(this,e)}function g(e){this.exit(e)}function h(e){!function(e,t,n){let r=(0,s.O)((n||{}).ignore||[]),a=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(s!==n&&d.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(i)?d.push(...i):i&&d.push(i),s=n+p[0].length,u=!0),!r.global)break;p=r.exec(e.value)}return u?(s?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],a=n.indexOf(")"),i=r(e,"("),o=r(e,")");for(;-1!==a&&i>o;)e+=n.slice(0,a+1),a=(n=n.slice(a+1)).indexOf(")"),o++;return[e,n]}(n+a);if(!s[0])return!1;let l={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function y(e,t,n,r){return!(!E(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function E(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,i.B8)(n)||(0,i.Xh)(n))&&(!t||47!==n)}var T=n(11098);function v(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function S(){this.buffer()}function A(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,a.ok)("footnoteDefinition"===n.type),n.label=t,n.identifier=(0,T.d)(this.sliceSerialize(e)).toLowerCase()}function O(e){this.exit(e)}function _(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function k(){this.buffer()}function I(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,a.ok)("footnoteReference"===n.type),n.label=t,n.identifier=(0,T.d)(this.sliceSerialize(e)).toLowerCase()}function C(e){this.exit(e)}function N(e,t,n,r){let a=n.createTracker(r),i=a.move("[^"),o=n.enter("footnoteReference"),s=n.enter("reference");return i+=a.move(n.safe(n.associationId(e),{...a.current(),before:i,after:"]"})),s(),o(),i+=a.move("]")}function x(e,t,n,r){let a=n.createTracker(r),i=a.move("[^"),o=n.enter("footnoteDefinition"),s=n.enter("label");return i+=a.move(n.safe(n.associationId(e),{...a.current(),before:i,after:"]"})),s(),i+=a.move("]:"+(e.children&&e.children.length>0?" ":"")),a.shift(4),i+=a.move(n.indentLines(n.containerFlow(e,a.current()),w)),o(),i}function w(e,t,n){return 0===t?e:(n?"":" ")+e}N.peek=function(){return"["};let R=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function L(e){this.enter({type:"delete",children:[]},e)}function D(e){this.exit(e)}function P(e,t,n,r){let a=n.createTracker(r),i=n.enter("strikethrough"),o=a.move("~~");return o+=n.containerPhrasing(e,{...a.current(),before:o,after:"~"})+a.move("~~"),i(),o}function M(e){return e.length}function F(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function B(e,t,n){return">"+(n?"":" ")+e}function j(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r",...l.current()}))+l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()}))+l.move(a),s()),c+=l.move(")"),o(),c}function V(e,t,n,r){let a=e.referenceType,i=n.enter("imageReference"),o=n.enter("label"),s=n.createTracker(r),l=s.move("!["),c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();let u=n.stack;n.stack=[],o=n.enter("reference");let d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=u,i(),"full"!==a&&c&&c===d?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function q(e,t,n){let r=e.value||"",a="`",i=-1;for(;RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i\u007F]/.test(e.url))}function X(e,t,n,r){let a,i;let o=G(n),s='"'===o?"Quote":"Apostrophe",l=n.createTracker(r);if(K(e,n)){let t=n.stack;n.stack=[],a=n.enter("autolink");let r=l.move("<");return r+=l.move(n.containerPhrasing(e,{before:r,after:">",...l.current()}))+l.move(">"),a(),n.stack=t,r}a=n.enter("link"),i=n.enter("label");let c=l.move("[");return c+=l.move(n.containerPhrasing(e,{before:c,after:"](",...l.current()}))+l.move("]("),i(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(i=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()}))+l.move(">")):(i=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),i(),e.title&&(i=n.enter(`title${s}`),c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()}))+l.move(o),i()),c+=l.move(")"),a(),c}function Q(e,t,n,r){let a=e.referenceType,i=n.enter("linkReference"),o=n.enter("label"),s=n.createTracker(r),l=s.move("["),c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();let u=n.stack;n.stack=[],o=n.enter("reference");let d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=u,i(),"full"!==a&&c&&c===d?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function J(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ee(e){let t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}W.peek=function(){return"<"},Y.peek=function(){return"!"},V.peek=function(){return"!"},q.peek=function(){return"`"},X.peek=function(e,t,n){return K(e,n)?"<":"["},Q.peek=function(){return"["};let et=(0,s.O)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function en(e,t,n,r){let a=function(e){let t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),o=n.createTracker(r),s=o.move(a+a);return s+=o.move(n.containerPhrasing(e,{before:s,after:a,...o.current()}))+o.move(a+a),i(),s}en.peek=function(e,t,n){return n.options.strong||"*"};let er={blockquote:function(e,t,n,r){let a=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);let o=n.indentLines(n.containerFlow(e,i.current()),B);return a(),o},break:U,code:function(e,t,n,r){let a=function(e){let t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",o="`"===a?"GraveAccent":"Tilde";if(!1===n.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value)){let e=n.enter("codeIndented"),t=n.indentLines(i,H);return e(),t}let s=n.createTracker(r),l=a.repeat(Math.max(function(e,t){let n=String(e),r=n.indexOf(t),a=r,i=0,o=0;if("string"!=typeof t)throw TypeError("Expected substring");for(;-1!==r;)r===a?++i>o&&(o=i):i=1,a=r+t.length,r=n.indexOf(t,a);return o}(i,a)+1,3)),c=n.enter("codeFenced"),u=s.move(l);if(e.lang){let t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${o}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),i&&(u+=s.move(i+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){let a=G(n),i='"'===a?"Quote":"Apostrophe",o=n.enter("definition"),s=n.enter("label"),l=n.createTracker(r),c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()}))+l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()}))+l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()}))+l.move(a),s()),o(),c},emphasis:$,hardBreak:U,heading:function(e,t,n,r){let a;let i=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(r);if(a=!1,(0,z.Vn)(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return a=!0,o.BK}),(!e.depth||e.depth<3)&&(0,Z.B)(e)&&(n.options.setext||a)){let t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...s.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===i?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}let l="#".repeat(i),c=n.enter("headingAtx"),u=n.enter("phrasing");s.move(l+" ");let d=n.containerPhrasing(e,{before:"# ",after:"\n",...s.current()});return/^[\t ]/.test(d)&&(d="&#x"+d.charCodeAt(0).toString(16).toUpperCase()+";"+d.slice(1)),d=d?l+" "+d:l,n.options.closeAtx&&(d+=" "+l),u(),c(),d},html:W,image:Y,imageReference:V,inlineCode:q,link:X,linkReference:Q,list:function(e,t,n,r){let a=n.enter("list"),i=n.bulletCurrent,o=e.ordered?function(e){let t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):J(n),s=e.ordered?"."===o?")":".":function(e){let t=J(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n),l=!!t&&!!n.bulletLastUsed&&o===n.bulletLastUsed;if(!e.ordered){let t=e.children?e.children[0]:void 0;if("*"!==o&&"-"!==o||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),ee(n)===o&&t){let t=-1;for(;++t-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let o=i.length+1;("tab"===a||"mixed"===a&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));let s=n.createTracker(r);s.move(i+" ".repeat(o-i.length)),s.shift(o);let l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){return t?(n?"":" ".repeat(o))+e:(n?i:i+" ".repeat(o-i.length))+e});return l(),c},paragraph:function(e,t,n,r){let a=n.enter("paragraph"),i=n.enter("phrasing"),o=n.containerPhrasing(e,r);return i(),a(),o},root:function(e,t,n,r){let a=e.children.some(function(e){return et(e)}),i=a?n.containerPhrasing:n.containerFlow;return i.call(n,e,r)},strong:en,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){let r=(ee(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function ea(e){let t=e._align;(0,a.ok)(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function ei(e){this.exit(e),this.data.inTable=void 0}function eo(e){this.enter({type:"tableRow",children:[]},e)}function es(e){this.exit(e)}function el(e){this.enter({type:"tableCell",children:[]},e)}function ec(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,eu));let n=this.stack[this.stack.length-1];(0,a.ok)("inlineCode"===n.type),n.value=t,this.exit(e)}function eu(e,t){return"|"===t?t:e}function ed(e){let t=this.stack[this.stack.length-2];(0,a.ok)("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function ep(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];(0,a.ok)("paragraph"===e.type);let n=e.children[0];if(n&&"text"===n.type){let r;let a=t.children,i=-1;for(;++i0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}eA[43]=eS,eA[45]=eS,eA[46]=eS,eA[95]=eS,eA[72]=[eS,ev],eA[104]=[eS,ev],eA[87]=[eS,eT],eA[119]=[eS,eT];var ex=n(23402),ew=n(42761);let eR={tokenize:function(e,t,n){let r=this;return(0,ew.f)(e,function(e){let a=r.events[r.events.length-1];return a&&"gfmFootnoteDefinitionIndent"===a[1].type&&4===a[2].sliceSerialize(a[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function eL(e,t,n){let r;let a=this,i=a.events.length,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);for(;i--;){let e=a.events[i][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!r||!r._balanced)return n(i);let s=(0,T.d)(a.sliceSerialize({start:r.end,end:a.now()}));return 94===s.codePointAt(0)&&o.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)):n(i)}}function eD(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;let i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function eP(e,t,n){let r;let a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),l};function l(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(l){if(s>999||93===l&&!r||null===l||91===l||(0,i.z3)(l))return n(l);if(93===l){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return o.includes((0,T.d)(a.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(l)}return(0,i.z3)(l)||(r=!0),s++,e.consume(l),92===l?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function eM(e,t,n){let r,a;let o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]),l=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),c};function c(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(l>999||93===t&&!a||null===t||91===t||(0,i.z3)(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=(0,T.d)(o.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return(0,i.z3)(t)||(a=!0),l++,e.consume(t),92===t?d:u}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}function p(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s.includes(r)||s.push(r),(0,ew.f)(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function eF(e,t,n){return e.check(ex.w,t,e.attempt(eR,t,n))}function eB(e){e.exit("gfmFootnoteDefinition")}var ej=n(21905),eU=n(62987),eH=n(63233);class eG{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let a=0;if(0!==n||0!==r.length){for(;a0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function e$(e,t,n){let r;let a=this,o=0,s=0;return function(e){let t=a.events.length-1;for(;t>-1;){let e=a.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?a.events[t][1].type:null,i="tableHead"===r||"tableRow"===r?E:l;return i===E&&a.parser.lazy[a.now().line]?n(e):i(e)};function l(t){return e.enter("tableHead"),e.enter("tableRow"),124===t||(r=!0,s+=1),c(t)}function c(t){return null===t?n(t):(0,i.Ch)(t)?s>1?(s=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p):n(t):(0,i.xz)(t)?(0,ew.f)(e,c,"whitespace")(t):(s+=1,r&&(r=!1,o+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,c):(e.enter("data"),u(t))}function u(t){return null===t||124===t||(0,i.z3)(t)?(e.exit("data"),c(t)):(e.consume(t),92===t?d:u)}function d(t){return 92===t||124===t?(e.consume(t),u):u(t)}function p(t){return(a.interrupt=!1,a.parser.lazy[a.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,(0,i.xz)(t))?(0,ew.f)(e,f,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t)}function f(t){return 45===t||58===t?g(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),m):n(t)}function m(t){return(0,i.xz)(t)?(0,ew.f)(e,g,"whitespace")(t):g(t)}function g(t){return 58===t?(s+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),h):45===t?(s+=1,h(t)):null===t||(0,i.Ch)(t)?y(t):n(t)}function h(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(n))}(t)):n(t)}function b(t){return(0,i.xz)(t)?(0,ew.f)(e,y,"whitespace")(t):y(t)}function y(a){return 124===a?f(a):null===a||(0,i.Ch)(a)?r&&o===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(a)):n(a):n(a)}function E(t){return e.enter("tableRow"),T(t)}function T(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),T):null===n||(0,i.Ch)(n)?(e.exit("tableRow"),t(n)):(0,i.xz)(n)?(0,ew.f)(e,T,"whitespace")(n):(e.enter("data"),v(n))}function v(t){return null===t||124===t||(0,i.z3)(t)?(e.exit("data"),T(t)):(e.consume(t),92===t?S:v)}function S(t){return 92===t||124===t?(e.consume(t),v):v(t)}}function ez(e,t){let n,r,a,i=-1,o=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0,p=new eG;for(;++in[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==a&&(i.end=Object.assign({},eY(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function eW(e,t,n,r,a){let i=[],o=eY(t.events,n);a&&(a.end=Object.assign({},o),i.push(["exit",a,t])),r.end=Object.assign({},o),i.push(["exit",r,t]),e.add(n+1,0,i)}function eY(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let eV={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),a):n(t)};function a(t){return(0,i.z3)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(t)}function s(r){return(0,i.Ch)(r)?t(r):(0,i.xz)(r)?e.check({tokenize:eq},t,n)(r):n(r)}}};function eq(e,t,n){return(0,ew.f)(e,function(e){return null===e?n(e):t(e)},"whitespace")}let eK={};function eX(e){let t=e||eK,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push((0,em.W)([{text:eA},{document:{91:{name:"gfmFootnoteDefinition",tokenize:eM,continuation:{tokenize:eF},exit:eB}},text:{91:{name:"gfmFootnoteCall",tokenize:eP},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:eL,resolveTo:eD}}},function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let a=this.previous,i=this.events,o=0;return function(s){return 126===a&&"characterEscape"!==i[i.length-1][1].type?r(s):(e.enter("strikethroughSequenceTemporary"),function i(s){let l=(0,eU.r)(a);if(126===s)return o>1?r(s):(e.consume(s),o++,i);if(o<2&&!t)return r(s);let c=e.exit("strikethroughSequenceTemporary"),u=(0,eU.r)(s);return c._open=!u||2===u&&!!l,c._close=!l||2===l&&!!u,n(s)}(s))}},resolveAll:function(e,t){let n=-1;for(;++nl&&(l=e[c].length);++ds[d])&&(s[d]=e)}n.push(i)}i[c]=n,o[c]=a}let d=-1;if("object"==typeof n&&"length"in n)for(;++ds[d]&&(s[d]=i),f[d]=i),p[d]=o}i.splice(1,0,p),o.splice(1,0,f),c=-1;let m=[];for(;++c0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function o(e){let t=a(e),n=r(e);if(t&&n)return{start:t,end:n}}},88718:function(e,t,n){"use strict";n.d(t,{BK:function(){return i},S4:function(){return o}});var r=n(96093);let a=[],i=!1;function o(e,t,n,o){let s;"function"==typeof t&&"function"!=typeof n?(o=n,n=t):s=t;let l=(0,r.O)(s),c=o?-1:1;(function e(r,s,u){let d=r&&"object"==typeof r?r:{};if("string"==typeof d.type){let e="string"==typeof d.tagName?d.tagName:"string"==typeof d.name?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+r.type+(e?"<"+e+">":"")+")"})}return p;function p(){var d;let p,f,m,g=a;if((!t||l(r,s,u[u.length-1]||void 0))&&(g=Array.isArray(d=n(r,u))?d:"number"==typeof d?[!0,d]:null==d?a:[d])[0]===i)return g;if("children"in r&&r.children&&r.children&&"skip"!==g[0])for(f=(o?r.children.length:-1)+c,m=u.concat(r);f>-1&&f","Iacute":"\xcd","Icirc":"\xce","Igrave":"\xcc","Iuml":"\xcf","LT":"<","Ntilde":"\xd1","Oacute":"\xd3","Ocirc":"\xd4","Ograve":"\xd2","Oslash":"\xd8","Otilde":"\xd5","Ouml":"\xd6","QUOT":"\\"","REG":"\xae","THORN":"\xde","Uacute":"\xda","Ucirc":"\xdb","Ugrave":"\xd9","Uuml":"\xdc","Yacute":"\xdd","aacute":"\xe1","acirc":"\xe2","acute":"\xb4","aelig":"\xe6","agrave":"\xe0","amp":"&","aring":"\xe5","atilde":"\xe3","auml":"\xe4","brvbar":"\xa6","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","eacute":"\xe9","ecirc":"\xea","egrave":"\xe8","eth":"\xf0","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","iacute":"\xed","icirc":"\xee","iexcl":"\xa1","igrave":"\xec","iquest":"\xbf","iuml":"\xef","laquo":"\xab","lt":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","ntilde":"\xf1","oacute":"\xf3","ocirc":"\xf4","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","oslash":"\xf8","otilde":"\xf5","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","raquo":"\xbb","reg":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","thorn":"\xfe","times":"\xd7","uacute":"\xfa","ucirc":"\xfb","ugrave":"\xf9","uml":"\xa8","uuml":"\xfc","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')}}]); \ No newline at end of file + */var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},a={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=u.reach));A+=S.value.length,S=S.next){var _,k=S.value;if(n.length>t.length)return;if(!(k instanceof i)){var I=1;if(b){if(!(_=o(T,A,t,h))||_.index>=t.length)break;var v=_.index,N=_.index+_[0].length,C=A;for(C+=S.value.length;v>=C;)C+=(S=S.next).value.length;if(C-=S.value.length,A=C,S.value instanceof i)continue;for(var R=S;R!==n.tail&&(Cu.reach&&(u.reach=D);var L=S.prev;w&&(L=l(n,L,w),A+=w.length),function(e,t,n){for(var r=t.next,a=0;a1){var M={cause:d+","+f,reach:D};e(t,n,r,S.prev,A,M),u&&M.reach>u.reach&&(u.reach=M.reach)}}}}}}(e,c,t,c.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(c)},hooks:{all:{},add:function(e,t){var n=a.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=a.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var i=a[1].length;a.index+=i,a[0]=a[0].slice(i)}return a}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}if(e.Prism=a,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(i.classes,o):i.classes.push(o)),a.hooks.run("wrap",i);var s="";for(var l in i.attributes)s+=" "+l+'="'+(i.attributes[l]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+""},!e.document)return e.addEventListener&&(a.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,o=n.immediateClose;e.postMessage(a.highlight(i,a.languages[r],r)),o&&e.close()},!1)),a;var c=a.util.currentScript();function u(){a.manual||a.highlightAll()}if(c&&(a.filename=c.src,c.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var d=document.readyState;"loading"===d||"interactive"===d&&c&&c.defer?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16)}return a}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r)},96774:function(e){e.exports=function(e,t,n,r){var a=n?n.call(r,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l{let n=(t,n)=>(e.set(n,t),t),a=i=>{if(e.has(i))return e.get(i);let[o,s]=t[i];switch(o){case 0:case -1:return n(s,i);case 1:{let e=n([],i);for(let t of s)e.push(a(t));return e}case 2:{let e=n({},i);for(let[t,n]of s)e[a(t)]=a(n);return e}case 3:return n(new Date(s),i);case 4:{let{source:e,flags:t}=s;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of s)e.set(a(t),a(n));return e}case 6:{let e=n(new Set,i);for(let t of s)e.add(a(t));return e}case 7:{let{name:e,message:t}=s;return n(new r[e](t),i)}case 8:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i)}return n(new r[o](s),i)};return a},i=e=>a(new Map,e)(0),{toString:o}={},{keys:s}=Object,l=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=o.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},c=([e,t])=>0===e&&("function"===t||"symbol"===t),u=(e,t,n,r)=>{let a=(e,t)=>{let a=r.push(e)-1;return n.set(t,a),a},i=r=>{if(n.has(r))return n.get(r);let[o,u]=l(r);switch(o){case 0:{let t=r;switch(u){case"bigint":o=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+u);t=null;break;case"undefined":return a([-1],r)}return a([o,t],r)}case 1:{if(u)return a([u,[...r]],r);let e=[],t=a([o,e],r);for(let t of r)e.push(i(t));return t}case 2:{if(u)switch(u){case"BigInt":return a([u,r.toString()],r);case"Boolean":case"Number":case"String":return a([u,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());let n=[],d=a([o,n],r);for(let t of s(r))(e||!c(l(r[t])))&&n.push([i(t),i(r[t])]);return d}case 3:return a([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return a([o,{source:e,flags:t}],r)}case 5:{let t=[],n=a([o,t],r);for(let[n,a]of r)(e||!(c(l(n))||c(l(a))))&&t.push([i(n),i(a)]);return n}case 6:{let t=[],n=a([o,t],r);for(let n of r)(e||!c(l(n)))&&t.push(i(n));return n}}let{message:d}=r;return a([o,{name:u,message:d}],r)};return i},d=(e,{json:t,lossy:n}={})=>{let r=[];return u(!(t||n),!!t,new Map,r)(e),r};var p="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?i(d(e,t)):structuredClone(e):(e,t)=>i(d(e,t))},25668:function(e,t,n){"use strict";function r(e){let t=[],n=String(e||""),r=n.indexOf(","),a=0,i=!1;for(;!i;){-1===r&&(r=n.length,i=!0);let e=n.slice(a,r).trim();(e||!i)&&t.push(e),a=r+1,r=n.indexOf(",",a)}return t}function a(e,t){let n=t||{},r=""===e[e.length-1]?[...e,""]:e;return r.join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}n.d(t,{P:function(){return a},Q:function(){return r}})},24345:function(e,t,n){"use strict";function r(){}function a(){}n.d(t,{ok:function(){return r},t1:function(){return a}})},27962:function(e,t,n){"use strict";n.d(t,{B:function(){return a}});let r={};function a(e,t){let n=t||r,a="boolean"!=typeof n.includeImageAlt||n.includeImageAlt,o="boolean"!=typeof n.includeHtml||n.includeHtml;return i(e,a,o)}function i(e,t,n){if(e&&"object"==typeof e){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return o(e.children,t,n)}return Array.isArray(e)?o(e,t,n):""}function o(e,t,n){let r=[],a=-1;for(;++a-1&&e.test(String.fromCharCode(t))}}},21905:function(e,t,n){"use strict";function r(e,t,n,r){let a;let i=e.length,o=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)(a=Array.from(r)).unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o0?(r(e,e.length,0,t),e):t}n.d(t,{V:function(){return a},d:function(){return r}})},62987:function(e,t,n){"use strict";n.d(t,{r:function(){return a}});var r=n(15459);function a(e){return null===e||(0,r.z3)(e)||(0,r.B8)(e)?1:(0,r.Xh)(e)?2:void 0}},4663:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(21905);let a={}.hasOwnProperty;function i(e){let t={},n=-1;for(;++n"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),u=l({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function d(e,t){return t in e?e[t]:t}function p(e,t){return d(e,t.toLowerCase())}let f=l({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:p,properties:{xmlns:null,xmlnsXLink:null}});var m=n(47312);let g=l({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:m.booleanish,ariaAutoComplete:null,ariaBusy:m.booleanish,ariaChecked:m.booleanish,ariaColCount:m.number,ariaColIndex:m.number,ariaColSpan:m.number,ariaControls:m.spaceSeparated,ariaCurrent:null,ariaDescribedBy:m.spaceSeparated,ariaDetails:null,ariaDisabled:m.booleanish,ariaDropEffect:m.spaceSeparated,ariaErrorMessage:null,ariaExpanded:m.booleanish,ariaFlowTo:m.spaceSeparated,ariaGrabbed:m.booleanish,ariaHasPopup:null,ariaHidden:m.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:m.spaceSeparated,ariaLevel:m.number,ariaLive:null,ariaModal:m.booleanish,ariaMultiLine:m.booleanish,ariaMultiSelectable:m.booleanish,ariaOrientation:null,ariaOwns:m.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:m.number,ariaPressed:m.booleanish,ariaReadOnly:m.booleanish,ariaRelevant:null,ariaRequired:m.booleanish,ariaRoleDescription:m.spaceSeparated,ariaRowCount:m.number,ariaRowIndex:m.number,ariaRowSpan:m.number,ariaSelected:m.booleanish,ariaSetSize:m.number,ariaSort:null,ariaValueMax:m.number,ariaValueMin:m.number,ariaValueNow:m.number,ariaValueText:null,role:null}}),h=l({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:p,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:m.commaSeparated,acceptCharset:m.spaceSeparated,accessKey:m.spaceSeparated,action:null,allow:null,allowFullScreen:m.boolean,allowPaymentRequest:m.boolean,allowUserMedia:m.boolean,alt:null,as:null,async:m.boolean,autoCapitalize:null,autoComplete:m.spaceSeparated,autoFocus:m.boolean,autoPlay:m.boolean,blocking:m.spaceSeparated,capture:null,charSet:null,checked:m.boolean,cite:null,className:m.spaceSeparated,cols:m.number,colSpan:null,content:null,contentEditable:m.booleanish,controls:m.boolean,controlsList:m.spaceSeparated,coords:m.number|m.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:m.boolean,defer:m.boolean,dir:null,dirName:null,disabled:m.boolean,download:m.overloadedBoolean,draggable:m.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:m.boolean,formTarget:null,headers:m.spaceSeparated,height:m.number,hidden:m.boolean,high:m.number,href:null,hrefLang:null,htmlFor:m.spaceSeparated,httpEquiv:m.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:m.boolean,inputMode:null,integrity:null,is:null,isMap:m.boolean,itemId:null,itemProp:m.spaceSeparated,itemRef:m.spaceSeparated,itemScope:m.boolean,itemType:m.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:m.boolean,low:m.number,manifest:null,max:null,maxLength:m.number,media:null,method:null,min:null,minLength:m.number,multiple:m.boolean,muted:m.boolean,name:null,nonce:null,noModule:m.boolean,noValidate:m.boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:m.boolean,optimum:m.number,pattern:null,ping:m.spaceSeparated,placeholder:null,playsInline:m.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:m.boolean,referrerPolicy:null,rel:m.spaceSeparated,required:m.boolean,reversed:m.boolean,rows:m.number,rowSpan:m.number,sandbox:m.spaceSeparated,scope:null,scoped:m.boolean,seamless:m.boolean,selected:m.boolean,shadowRootClonable:m.boolean,shadowRootDelegatesFocus:m.boolean,shadowRootMode:null,shape:null,size:m.number,sizes:null,slot:null,span:m.number,spellCheck:m.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:m.number,step:null,style:null,tabIndex:m.number,target:null,title:null,translate:null,type:null,typeMustMatch:m.boolean,useMap:null,value:m.booleanish,width:m.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:m.spaceSeparated,axis:null,background:null,bgColor:null,border:m.number,borderColor:null,bottomMargin:m.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:m.boolean,declare:m.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:m.number,leftMargin:m.number,link:null,longDesc:null,lowSrc:null,marginHeight:m.number,marginWidth:m.number,noResize:m.boolean,noHref:m.boolean,noShade:m.boolean,noWrap:m.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:m.number,rules:null,scheme:null,scrolling:m.booleanish,standby:null,summary:null,text:null,topMargin:m.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:m.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:m.boolean,disableRemotePlayback:m.boolean,prefix:null,property:null,results:m.number,security:null,unselectable:null}}),b=l({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:d,properties:{about:m.commaOrSpaceSeparated,accentHeight:m.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:m.number,amplitude:m.number,arabicForm:null,ascent:m.number,attributeName:null,attributeType:null,azimuth:m.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:m.number,by:null,calcMode:null,capHeight:m.number,className:m.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:m.number,diffuseConstant:m.number,direction:null,display:null,dur:null,divisor:m.number,dominantBaseline:null,download:m.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:m.number,enableBackground:null,end:null,event:null,exponent:m.number,externalResourcesRequired:null,fill:null,fillOpacity:m.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:m.commaSeparated,g2:m.commaSeparated,glyphName:m.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:m.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:m.number,horizOriginX:m.number,horizOriginY:m.number,id:null,ideographic:m.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:m.number,k:m.number,k1:m.number,k2:m.number,k3:m.number,k4:m.number,kernelMatrix:m.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:m.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:m.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:m.number,overlineThickness:m.number,paintOrder:null,panose1:null,path:null,pathLength:m.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:m.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:m.number,pointsAtY:m.number,pointsAtZ:m.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:m.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:m.commaOrSpaceSeparated,rev:m.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:m.commaOrSpaceSeparated,requiredFeatures:m.commaOrSpaceSeparated,requiredFonts:m.commaOrSpaceSeparated,requiredFormats:m.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:m.number,specularExponent:m.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:m.number,strikethroughThickness:m.number,string:null,stroke:null,strokeDashArray:m.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:m.number,strokeOpacity:m.number,strokeWidth:null,style:null,surfaceScale:m.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:m.commaOrSpaceSeparated,tabIndex:m.number,tableValues:null,target:null,targetX:m.number,targetY:m.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:m.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:m.number,underlineThickness:m.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:m.number,values:null,vAlphabetic:m.number,vMathematical:m.number,vectorEffect:null,vHanging:m.number,vIdeographic:m.number,version:null,vertAdvY:m.number,vertOriginX:m.number,vertOriginY:m.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:m.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),E=a([u,c,f,g,h],"html"),y=a([u,c,f,g,b],"svg")},26103:function(e,t,n){"use strict";n.d(t,{s:function(){return c}});var r=n(28051),a=n(75729),i=n(49255);let o=/^data[-\w.:]+$/i,s=/-[a-z]/g,l=/[A-Z]/g;function c(e,t){let n=(0,r.F)(t),c=t,p=i.k;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&o.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(s,d);c="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!s.test(e)){let n=e.replace(l,u);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}p=a.I}return new p(c,t)}function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},28051:function(e,t,n){"use strict";function r(e){return e.toLowerCase()}n.d(t,{F:function(){return r}})},75729:function(e,t,n){"use strict";n.d(t,{I:function(){return o}});var r=n(49255),a=n(47312);let i=Object.keys(a);class o extends r.k{constructor(e,t,n,r){var o,s;let l=-1;if(super(e,t),r&&(this.space=r),"number"==typeof n)for(;++l1?n[e.line-2]:0)+e.column-1;if(r-1&&e<=t.length){let r=0;for(;;){let a=n[r];if(void 0===a){let e=U(t,n[r-1]);a=-1===e?t.length+1:e+1,n[r]=a}if(a>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}}}(t),a=r.toPoint(0),i=r.toPoint(t.length);(0,v.ok)(a,"expected `start`"),(0,v.ok)(i,"expected `end`"),n.position={start:a,end:i}}return n}case"#documentType":return Y(e,t,n={type:"doctype"}),n;case"#text":return n={type:"text",value:t.value},Y(e,t,n),n;default:return function(e,t){let n=e.schema;e.schema=t.namespaceURI===H.svg?N.YP:N.dy;let r=-1,a={};for(;++r=55296&&e<=57343}function ei(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function eo(e){return e>=64976&&e<=65007||en.has(e)}(a=g=g||(g={})).controlCharacterInInputStream="control-character-in-input-stream",a.noncharacterInInputStream="noncharacter-in-input-stream",a.surrogateInInputStream="surrogate-in-input-stream",a.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",a.endTagWithAttributes="end-tag-with-attributes",a.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",a.unexpectedSolidusInTag="unexpected-solidus-in-tag",a.unexpectedNullCharacter="unexpected-null-character",a.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",a.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",a.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",a.missingEndTagName="missing-end-tag-name",a.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",a.unknownNamedCharacterReference="unknown-named-character-reference",a.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",a.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",a.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",a.eofBeforeTagName="eof-before-tag-name",a.eofInTag="eof-in-tag",a.missingAttributeValue="missing-attribute-value",a.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",a.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",a.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",a.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",a.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",a.missingDoctypePublicIdentifier="missing-doctype-public-identifier",a.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",a.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",a.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",a.cdataInHtmlContent="cdata-in-html-content",a.incorrectlyOpenedComment="incorrectly-opened-comment",a.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",a.eofInDoctype="eof-in-doctype",a.nestedComment="nested-comment",a.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",a.eofInComment="eof-in-comment",a.incorrectlyClosedComment="incorrectly-closed-comment",a.eofInCdata="eof-in-cdata",a.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",a.nullCharacterReference="null-character-reference",a.surrogateCharacterReference="surrogate-character-reference",a.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",a.controlCharacterReference="control-character-reference",a.noncharacterCharacterReference="noncharacter-character-reference",a.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",a.missingDoctypeName="missing-doctype-name",a.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",a.duplicateAttribute="duplicate-attribute",a.nonConformingDoctype="non-conforming-doctype",a.missingDoctype="missing-doctype",a.misplacedDoctype="misplaced-doctype",a.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",a.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",a.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",a.openElementsLeftAfterEof="open-elements-left-after-eof",a.abandonedHeadElementChild="abandoned-head-element-child",a.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",a.nestedNoscriptInHead="nested-noscript-in-head",a.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class es{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e){let{line:t,col:n,offset:r}=this;return{code:e,startLine:t,endLine:t,startCol:n,endCol:n,startOffset:r,endOffset:r}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(t>=56320&&t<=57343)return this.pos++,this._addGap(),(e-55296)*1024+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,m.EOF;return this._err(g.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,m.EOF;let n=this.html.charCodeAt(t);return n===m.CARRIAGE_RETURN?m.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,m.EOF;let e=this.html.charCodeAt(this.pos);if(e===m.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,m.LINE_FEED;if(e===m.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,ea(e)&&(e=this._processSurrogate(e));let t=null===this.handler.onParseError||e>31&&e<127||e===m.LINE_FEED||e===m.CARRIAGE_RETURN||e>159&&e<64976;return t||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){ei(e)?this._err(g.controlCharacterInInputStream):eo(e)&&this._err(g.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}(i=h=h||(h={}))[i.CHARACTER=0]="CHARACTER",i[i.NULL_CHARACTER=1]="NULL_CHARACTER",i[i.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",i[i.START_TAG=3]="START_TAG",i[i.END_TAG=4]="END_TAG",i[i.COMMENT=5]="COMMENT",i[i.DOCTYPE=6]="DOCTYPE",i[i.EOF=7]="EOF",i[i.HIBERNATION=8]="HIBERNATION";var ec=n(60411);(o=b=b||(b={})).HTML="http://www.w3.org/1999/xhtml",o.MATHML="http://www.w3.org/1998/Math/MathML",o.SVG="http://www.w3.org/2000/svg",o.XLINK="http://www.w3.org/1999/xlink",o.XML="http://www.w3.org/XML/1998/namespace",o.XMLNS="http://www.w3.org/2000/xmlns/",(s=E=E||(E={})).TYPE="type",s.ACTION="action",s.ENCODING="encoding",s.PROMPT="prompt",s.NAME="name",s.COLOR="color",s.FACE="face",s.SIZE="size",(l=y=y||(y={})).NO_QUIRKS="no-quirks",l.QUIRKS="quirks",l.LIMITED_QUIRKS="limited-quirks",(c=T=T||(T={})).A="a",c.ADDRESS="address",c.ANNOTATION_XML="annotation-xml",c.APPLET="applet",c.AREA="area",c.ARTICLE="article",c.ASIDE="aside",c.B="b",c.BASE="base",c.BASEFONT="basefont",c.BGSOUND="bgsound",c.BIG="big",c.BLOCKQUOTE="blockquote",c.BODY="body",c.BR="br",c.BUTTON="button",c.CAPTION="caption",c.CENTER="center",c.CODE="code",c.COL="col",c.COLGROUP="colgroup",c.DD="dd",c.DESC="desc",c.DETAILS="details",c.DIALOG="dialog",c.DIR="dir",c.DIV="div",c.DL="dl",c.DT="dt",c.EM="em",c.EMBED="embed",c.FIELDSET="fieldset",c.FIGCAPTION="figcaption",c.FIGURE="figure",c.FONT="font",c.FOOTER="footer",c.FOREIGN_OBJECT="foreignObject",c.FORM="form",c.FRAME="frame",c.FRAMESET="frameset",c.H1="h1",c.H2="h2",c.H3="h3",c.H4="h4",c.H5="h5",c.H6="h6",c.HEAD="head",c.HEADER="header",c.HGROUP="hgroup",c.HR="hr",c.HTML="html",c.I="i",c.IMG="img",c.IMAGE="image",c.INPUT="input",c.IFRAME="iframe",c.KEYGEN="keygen",c.LABEL="label",c.LI="li",c.LINK="link",c.LISTING="listing",c.MAIN="main",c.MALIGNMARK="malignmark",c.MARQUEE="marquee",c.MATH="math",c.MENU="menu",c.META="meta",c.MGLYPH="mglyph",c.MI="mi",c.MO="mo",c.MN="mn",c.MS="ms",c.MTEXT="mtext",c.NAV="nav",c.NOBR="nobr",c.NOFRAMES="noframes",c.NOEMBED="noembed",c.NOSCRIPT="noscript",c.OBJECT="object",c.OL="ol",c.OPTGROUP="optgroup",c.OPTION="option",c.P="p",c.PARAM="param",c.PLAINTEXT="plaintext",c.PRE="pre",c.RB="rb",c.RP="rp",c.RT="rt",c.RTC="rtc",c.RUBY="ruby",c.S="s",c.SCRIPT="script",c.SECTION="section",c.SELECT="select",c.SOURCE="source",c.SMALL="small",c.SPAN="span",c.STRIKE="strike",c.STRONG="strong",c.STYLE="style",c.SUB="sub",c.SUMMARY="summary",c.SUP="sup",c.TABLE="table",c.TBODY="tbody",c.TEMPLATE="template",c.TEXTAREA="textarea",c.TFOOT="tfoot",c.TD="td",c.TH="th",c.THEAD="thead",c.TITLE="title",c.TR="tr",c.TRACK="track",c.TT="tt",c.U="u",c.UL="ul",c.SVG="svg",c.VAR="var",c.WBR="wbr",c.XMP="xmp",(u=S=S||(S={}))[u.UNKNOWN=0]="UNKNOWN",u[u.A=1]="A",u[u.ADDRESS=2]="ADDRESS",u[u.ANNOTATION_XML=3]="ANNOTATION_XML",u[u.APPLET=4]="APPLET",u[u.AREA=5]="AREA",u[u.ARTICLE=6]="ARTICLE",u[u.ASIDE=7]="ASIDE",u[u.B=8]="B",u[u.BASE=9]="BASE",u[u.BASEFONT=10]="BASEFONT",u[u.BGSOUND=11]="BGSOUND",u[u.BIG=12]="BIG",u[u.BLOCKQUOTE=13]="BLOCKQUOTE",u[u.BODY=14]="BODY",u[u.BR=15]="BR",u[u.BUTTON=16]="BUTTON",u[u.CAPTION=17]="CAPTION",u[u.CENTER=18]="CENTER",u[u.CODE=19]="CODE",u[u.COL=20]="COL",u[u.COLGROUP=21]="COLGROUP",u[u.DD=22]="DD",u[u.DESC=23]="DESC",u[u.DETAILS=24]="DETAILS",u[u.DIALOG=25]="DIALOG",u[u.DIR=26]="DIR",u[u.DIV=27]="DIV",u[u.DL=28]="DL",u[u.DT=29]="DT",u[u.EM=30]="EM",u[u.EMBED=31]="EMBED",u[u.FIELDSET=32]="FIELDSET",u[u.FIGCAPTION=33]="FIGCAPTION",u[u.FIGURE=34]="FIGURE",u[u.FONT=35]="FONT",u[u.FOOTER=36]="FOOTER",u[u.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",u[u.FORM=38]="FORM",u[u.FRAME=39]="FRAME",u[u.FRAMESET=40]="FRAMESET",u[u.H1=41]="H1",u[u.H2=42]="H2",u[u.H3=43]="H3",u[u.H4=44]="H4",u[u.H5=45]="H5",u[u.H6=46]="H6",u[u.HEAD=47]="HEAD",u[u.HEADER=48]="HEADER",u[u.HGROUP=49]="HGROUP",u[u.HR=50]="HR",u[u.HTML=51]="HTML",u[u.I=52]="I",u[u.IMG=53]="IMG",u[u.IMAGE=54]="IMAGE",u[u.INPUT=55]="INPUT",u[u.IFRAME=56]="IFRAME",u[u.KEYGEN=57]="KEYGEN",u[u.LABEL=58]="LABEL",u[u.LI=59]="LI",u[u.LINK=60]="LINK",u[u.LISTING=61]="LISTING",u[u.MAIN=62]="MAIN",u[u.MALIGNMARK=63]="MALIGNMARK",u[u.MARQUEE=64]="MARQUEE",u[u.MATH=65]="MATH",u[u.MENU=66]="MENU",u[u.META=67]="META",u[u.MGLYPH=68]="MGLYPH",u[u.MI=69]="MI",u[u.MO=70]="MO",u[u.MN=71]="MN",u[u.MS=72]="MS",u[u.MTEXT=73]="MTEXT",u[u.NAV=74]="NAV",u[u.NOBR=75]="NOBR",u[u.NOFRAMES=76]="NOFRAMES",u[u.NOEMBED=77]="NOEMBED",u[u.NOSCRIPT=78]="NOSCRIPT",u[u.OBJECT=79]="OBJECT",u[u.OL=80]="OL",u[u.OPTGROUP=81]="OPTGROUP",u[u.OPTION=82]="OPTION",u[u.P=83]="P",u[u.PARAM=84]="PARAM",u[u.PLAINTEXT=85]="PLAINTEXT",u[u.PRE=86]="PRE",u[u.RB=87]="RB",u[u.RP=88]="RP",u[u.RT=89]="RT",u[u.RTC=90]="RTC",u[u.RUBY=91]="RUBY",u[u.S=92]="S",u[u.SCRIPT=93]="SCRIPT",u[u.SECTION=94]="SECTION",u[u.SELECT=95]="SELECT",u[u.SOURCE=96]="SOURCE",u[u.SMALL=97]="SMALL",u[u.SPAN=98]="SPAN",u[u.STRIKE=99]="STRIKE",u[u.STRONG=100]="STRONG",u[u.STYLE=101]="STYLE",u[u.SUB=102]="SUB",u[u.SUMMARY=103]="SUMMARY",u[u.SUP=104]="SUP",u[u.TABLE=105]="TABLE",u[u.TBODY=106]="TBODY",u[u.TEMPLATE=107]="TEMPLATE",u[u.TEXTAREA=108]="TEXTAREA",u[u.TFOOT=109]="TFOOT",u[u.TD=110]="TD",u[u.TH=111]="TH",u[u.THEAD=112]="THEAD",u[u.TITLE=113]="TITLE",u[u.TR=114]="TR",u[u.TRACK=115]="TRACK",u[u.TT=116]="TT",u[u.U=117]="U",u[u.UL=118]="UL",u[u.SVG=119]="SVG",u[u.VAR=120]="VAR",u[u.WBR=121]="WBR",u[u.XMP=122]="XMP";let eu=new Map([[T.A,S.A],[T.ADDRESS,S.ADDRESS],[T.ANNOTATION_XML,S.ANNOTATION_XML],[T.APPLET,S.APPLET],[T.AREA,S.AREA],[T.ARTICLE,S.ARTICLE],[T.ASIDE,S.ASIDE],[T.B,S.B],[T.BASE,S.BASE],[T.BASEFONT,S.BASEFONT],[T.BGSOUND,S.BGSOUND],[T.BIG,S.BIG],[T.BLOCKQUOTE,S.BLOCKQUOTE],[T.BODY,S.BODY],[T.BR,S.BR],[T.BUTTON,S.BUTTON],[T.CAPTION,S.CAPTION],[T.CENTER,S.CENTER],[T.CODE,S.CODE],[T.COL,S.COL],[T.COLGROUP,S.COLGROUP],[T.DD,S.DD],[T.DESC,S.DESC],[T.DETAILS,S.DETAILS],[T.DIALOG,S.DIALOG],[T.DIR,S.DIR],[T.DIV,S.DIV],[T.DL,S.DL],[T.DT,S.DT],[T.EM,S.EM],[T.EMBED,S.EMBED],[T.FIELDSET,S.FIELDSET],[T.FIGCAPTION,S.FIGCAPTION],[T.FIGURE,S.FIGURE],[T.FONT,S.FONT],[T.FOOTER,S.FOOTER],[T.FOREIGN_OBJECT,S.FOREIGN_OBJECT],[T.FORM,S.FORM],[T.FRAME,S.FRAME],[T.FRAMESET,S.FRAMESET],[T.H1,S.H1],[T.H2,S.H2],[T.H3,S.H3],[T.H4,S.H4],[T.H5,S.H5],[T.H6,S.H6],[T.HEAD,S.HEAD],[T.HEADER,S.HEADER],[T.HGROUP,S.HGROUP],[T.HR,S.HR],[T.HTML,S.HTML],[T.I,S.I],[T.IMG,S.IMG],[T.IMAGE,S.IMAGE],[T.INPUT,S.INPUT],[T.IFRAME,S.IFRAME],[T.KEYGEN,S.KEYGEN],[T.LABEL,S.LABEL],[T.LI,S.LI],[T.LINK,S.LINK],[T.LISTING,S.LISTING],[T.MAIN,S.MAIN],[T.MALIGNMARK,S.MALIGNMARK],[T.MARQUEE,S.MARQUEE],[T.MATH,S.MATH],[T.MENU,S.MENU],[T.META,S.META],[T.MGLYPH,S.MGLYPH],[T.MI,S.MI],[T.MO,S.MO],[T.MN,S.MN],[T.MS,S.MS],[T.MTEXT,S.MTEXT],[T.NAV,S.NAV],[T.NOBR,S.NOBR],[T.NOFRAMES,S.NOFRAMES],[T.NOEMBED,S.NOEMBED],[T.NOSCRIPT,S.NOSCRIPT],[T.OBJECT,S.OBJECT],[T.OL,S.OL],[T.OPTGROUP,S.OPTGROUP],[T.OPTION,S.OPTION],[T.P,S.P],[T.PARAM,S.PARAM],[T.PLAINTEXT,S.PLAINTEXT],[T.PRE,S.PRE],[T.RB,S.RB],[T.RP,S.RP],[T.RT,S.RT],[T.RTC,S.RTC],[T.RUBY,S.RUBY],[T.S,S.S],[T.SCRIPT,S.SCRIPT],[T.SECTION,S.SECTION],[T.SELECT,S.SELECT],[T.SOURCE,S.SOURCE],[T.SMALL,S.SMALL],[T.SPAN,S.SPAN],[T.STRIKE,S.STRIKE],[T.STRONG,S.STRONG],[T.STYLE,S.STYLE],[T.SUB,S.SUB],[T.SUMMARY,S.SUMMARY],[T.SUP,S.SUP],[T.TABLE,S.TABLE],[T.TBODY,S.TBODY],[T.TEMPLATE,S.TEMPLATE],[T.TEXTAREA,S.TEXTAREA],[T.TFOOT,S.TFOOT],[T.TD,S.TD],[T.TH,S.TH],[T.THEAD,S.THEAD],[T.TITLE,S.TITLE],[T.TR,S.TR],[T.TRACK,S.TRACK],[T.TT,S.TT],[T.U,S.U],[T.UL,S.UL],[T.SVG,S.SVG],[T.VAR,S.VAR],[T.WBR,S.WBR],[T.XMP,S.XMP]]);function ed(e){var t;return null!==(t=eu.get(e))&&void 0!==t?t:S.UNKNOWN}let ep=S,ef={[b.HTML]:new Set([ep.ADDRESS,ep.APPLET,ep.AREA,ep.ARTICLE,ep.ASIDE,ep.BASE,ep.BASEFONT,ep.BGSOUND,ep.BLOCKQUOTE,ep.BODY,ep.BR,ep.BUTTON,ep.CAPTION,ep.CENTER,ep.COL,ep.COLGROUP,ep.DD,ep.DETAILS,ep.DIR,ep.DIV,ep.DL,ep.DT,ep.EMBED,ep.FIELDSET,ep.FIGCAPTION,ep.FIGURE,ep.FOOTER,ep.FORM,ep.FRAME,ep.FRAMESET,ep.H1,ep.H2,ep.H3,ep.H4,ep.H5,ep.H6,ep.HEAD,ep.HEADER,ep.HGROUP,ep.HR,ep.HTML,ep.IFRAME,ep.IMG,ep.INPUT,ep.LI,ep.LINK,ep.LISTING,ep.MAIN,ep.MARQUEE,ep.MENU,ep.META,ep.NAV,ep.NOEMBED,ep.NOFRAMES,ep.NOSCRIPT,ep.OBJECT,ep.OL,ep.P,ep.PARAM,ep.PLAINTEXT,ep.PRE,ep.SCRIPT,ep.SECTION,ep.SELECT,ep.SOURCE,ep.STYLE,ep.SUMMARY,ep.TABLE,ep.TBODY,ep.TD,ep.TEMPLATE,ep.TEXTAREA,ep.TFOOT,ep.TH,ep.THEAD,ep.TITLE,ep.TR,ep.TRACK,ep.UL,ep.WBR,ep.XMP]),[b.MATHML]:new Set([ep.MI,ep.MO,ep.MN,ep.MS,ep.MTEXT,ep.ANNOTATION_XML]),[b.SVG]:new Set([ep.TITLE,ep.FOREIGN_OBJECT,ep.DESC]),[b.XLINK]:new Set,[b.XML]:new Set,[b.XMLNS]:new Set};function em(e){return e===ep.H1||e===ep.H2||e===ep.H3||e===ep.H4||e===ep.H5||e===ep.H6}T.STYLE,T.SCRIPT,T.XMP,T.IFRAME,T.NOEMBED,T.NOFRAMES,T.PLAINTEXT;let eg=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);(d=A||(A={}))[d.DATA=0]="DATA",d[d.RCDATA=1]="RCDATA",d[d.RAWTEXT=2]="RAWTEXT",d[d.SCRIPT_DATA=3]="SCRIPT_DATA",d[d.PLAINTEXT=4]="PLAINTEXT",d[d.TAG_OPEN=5]="TAG_OPEN",d[d.END_TAG_OPEN=6]="END_TAG_OPEN",d[d.TAG_NAME=7]="TAG_NAME",d[d.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",d[d.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",d[d.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",d[d.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",d[d.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",d[d.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",d[d.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",d[d.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",d[d.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",d[d.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",d[d.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",d[d.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",d[d.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",d[d.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",d[d.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",d[d.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",d[d.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",d[d.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",d[d.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",d[d.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",d[d.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",d[d.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",d[d.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",d[d.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",d[d.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",d[d.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",d[d.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",d[d.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",d[d.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",d[d.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",d[d.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",d[d.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",d[d.BOGUS_COMMENT=40]="BOGUS_COMMENT",d[d.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",d[d.COMMENT_START=42]="COMMENT_START",d[d.COMMENT_START_DASH=43]="COMMENT_START_DASH",d[d.COMMENT=44]="COMMENT",d[d.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",d[d.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",d[d.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",d[d.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",d[d.COMMENT_END_DASH=49]="COMMENT_END_DASH",d[d.COMMENT_END=50]="COMMENT_END",d[d.COMMENT_END_BANG=51]="COMMENT_END_BANG",d[d.DOCTYPE=52]="DOCTYPE",d[d.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",d[d.DOCTYPE_NAME=54]="DOCTYPE_NAME",d[d.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",d[d.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",d[d.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",d[d.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",d[d.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",d[d.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",d[d.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",d[d.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",d[d.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",d[d.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",d[d.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",d[d.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",d[d.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",d[d.CDATA_SECTION=68]="CDATA_SECTION",d[d.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",d[d.CDATA_SECTION_END=70]="CDATA_SECTION_END",d[d.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",d[d.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",d[d.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",d[d.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",d[d.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",d[d.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",d[d.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",d[d.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END";let eh={DATA:A.DATA,RCDATA:A.RCDATA,RAWTEXT:A.RAWTEXT,SCRIPT_DATA:A.SCRIPT_DATA,PLAINTEXT:A.PLAINTEXT,CDATA_SECTION:A.CDATA_SECTION};function eb(e){return e>=m.DIGIT_0&&e<=m.DIGIT_9}function eE(e){return e>=m.LATIN_CAPITAL_A&&e<=m.LATIN_CAPITAL_Z}function ey(e){return e>=m.LATIN_SMALL_A&&e<=m.LATIN_SMALL_Z||eE(e)}function eT(e){return ey(e)||eb(e)}function eS(e){return e>=m.LATIN_CAPITAL_A&&e<=m.LATIN_CAPITAL_F}function eA(e){return e>=m.LATIN_SMALL_A&&e<=m.LATIN_SMALL_F}function e_(e){return e===m.SPACE||e===m.LINE_FEED||e===m.TABULATION||e===m.FORM_FEED}function ek(e){return e_(e)||e===m.SOLIDUS||e===m.GREATER_THAN_SIGN}class eI{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=A.DATA,this.returnState=A.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new es(t),this.currentLocation=this.getCurrentLocation(-1)}_err(e){var t,n;null===(n=(t=this.handler).onParseError)||void 0===n||n.call(t,this.preprocessor.getError(e))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(e){this.consumedAfterSnapshot-=e,this.preprocessor.retreat(e)}_reconsumeInState(e,t){this.state=e,this._callState(t)}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t0&&this._err(g.endTagWithAttributes),e.selfClosing&&this._err(g.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case h.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case h.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case h.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:h.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type!==e)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=t;return}}this._createCharacterToken(e,t)}_emitCodePoint(e){let t=e_(e)?h.WHITESPACE_CHARACTER:e===m.NULL?h.NULL_CHARACTER:h.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(h.CHARACTER,e)}_matchNamedCharacterReference(e){let t=null,n=0,r=!1;for(let i=0,o=ec.HP[0];i>=0&&!((i=(0,ec.Go)(ec.HP,o,i+1,e))<0);e=this._consume()){n+=1,o=ec.HP[i];let s=o&ec.ge.VALUE_LENGTH;if(s){var a;let o=(s>>14)-1;if(e!==m.SEMICOLON&&this._isCharacterReferenceInAttribute()&&((a=this.preprocessor.peek(1))===m.EQUALS_SIGN||eT(a))?(t=[m.AMPERSAND],i+=o):(t=0===o?[ec.HP[i]&~ec.ge.VALUE_LENGTH]:1===o?[ec.HP[++i]]:[ec.HP[++i],ec.HP[++i]],n=0,r=e!==m.SEMICOLON),0===o){this._consume();break}}}return this._unconsume(n),r&&!this.preprocessor.endOfChunkHit&&this._err(g.missingSemicolonAfterCharacterReference),this._unconsume(1),t}_isCharacterReferenceInAttribute(){return this.returnState===A.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===A.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===A.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case A.DATA:this._stateData(e);break;case A.RCDATA:this._stateRcdata(e);break;case A.RAWTEXT:this._stateRawtext(e);break;case A.SCRIPT_DATA:this._stateScriptData(e);break;case A.PLAINTEXT:this._statePlaintext(e);break;case A.TAG_OPEN:this._stateTagOpen(e);break;case A.END_TAG_OPEN:this._stateEndTagOpen(e);break;case A.TAG_NAME:this._stateTagName(e);break;case A.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case A.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case A.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case A.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case A.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case A.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case A.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case A.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case A.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case A.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case A.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case A.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case A.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case A.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case A.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case A.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case A.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case A.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case A.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case A.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case A.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case A.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case A.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case A.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case A.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case A.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case A.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case A.BOGUS_COMMENT:this._stateBogusComment(e);break;case A.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case A.COMMENT_START:this._stateCommentStart(e);break;case A.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case A.COMMENT:this._stateComment(e);break;case A.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case A.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case A.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case A.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case A.COMMENT_END:this._stateCommentEnd(e);break;case A.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case A.DOCTYPE:this._stateDoctype(e);break;case A.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case A.DOCTYPE_NAME:this._stateDoctypeName(e);break;case A.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case A.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case A.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case A.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case A.CDATA_SECTION:this._stateCdataSection(e);break;case A.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case A.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case A.CHARACTER_REFERENCE:this._stateCharacterReference(e);break;case A.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(e);break;case A.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;case A.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(e);break;case A.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(e);break;case A.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(e);break;case A.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e);break;case A.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(e);break;default:throw Error("Unknown state")}}_stateData(e){switch(e){case m.LESS_THAN_SIGN:this.state=A.TAG_OPEN;break;case m.AMPERSAND:this.returnState=A.DATA,this.state=A.CHARACTER_REFERENCE;break;case m.NULL:this._err(g.unexpectedNullCharacter),this._emitCodePoint(e);break;case m.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case m.AMPERSAND:this.returnState=A.RCDATA,this.state=A.CHARACTER_REFERENCE;break;case m.LESS_THAN_SIGN:this.state=A.RCDATA_LESS_THAN_SIGN;break;case m.NULL:this._err(g.unexpectedNullCharacter),this._emitChars("�");break;case m.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case m.LESS_THAN_SIGN:this.state=A.RAWTEXT_LESS_THAN_SIGN;break;case m.NULL:this._err(g.unexpectedNullCharacter),this._emitChars("�");break;case m.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case m.LESS_THAN_SIGN:this.state=A.SCRIPT_DATA_LESS_THAN_SIGN;break;case m.NULL:this._err(g.unexpectedNullCharacter),this._emitChars("�");break;case m.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case m.NULL:this._err(g.unexpectedNullCharacter),this._emitChars("�");break;case m.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(ey(e))this._createStartTagToken(),this.state=A.TAG_NAME,this._stateTagName(e);else switch(e){case m.EXCLAMATION_MARK:this.state=A.MARKUP_DECLARATION_OPEN;break;case m.SOLIDUS:this.state=A.END_TAG_OPEN;break;case m.QUESTION_MARK:this._err(g.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=A.BOGUS_COMMENT,this._stateBogusComment(e);break;case m.EOF:this._err(g.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(g.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=A.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(ey(e))this._createEndTagToken(),this.state=A.TAG_NAME,this._stateTagName(e);else switch(e){case m.GREATER_THAN_SIGN:this._err(g.missingEndTagName),this.state=A.DATA;break;case m.EOF:this._err(g.eofBeforeTagName),this._emitChars("");break;case m.NULL:this._err(g.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case m.EOF:this._err(g.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=A.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===m.SOLIDUS?this.state=A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ey(e)?(this._emitChars("<"),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){ey(e)?(this.state=A.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("");break;case m.NULL:this._err(g.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case m.EOF:this._err(g.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===m.SOLIDUS?(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(er.SCRIPT,!1)&&ek(this.preprocessor.peek(er.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e1114111)this._err(g.characterReferenceOutsideUnicodeRange),this.charRefCode=m.REPLACEMENT_CHARACTER;else if(ea(this.charRefCode))this._err(g.surrogateCharacterReference),this.charRefCode=m.REPLACEMENT_CHARACTER;else if(eo(this.charRefCode))this._err(g.noncharacterCharacterReference);else if(ei(this.charRefCode)||this.charRefCode===m.CARRIAGE_RETURN){this._err(g.controlCharacterReference);let e=eg.get(this.charRefCode);void 0!==e&&(this.charRefCode=e)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,e)}}let ev=new Set([S.DD,S.DT,S.LI,S.OPTGROUP,S.OPTION,S.P,S.RB,S.RP,S.RT,S.RTC]),eN=new Set([...ev,S.CAPTION,S.COLGROUP,S.TBODY,S.TD,S.TFOOT,S.TH,S.THEAD,S.TR]),eC=new Map([[S.APPLET,b.HTML],[S.CAPTION,b.HTML],[S.HTML,b.HTML],[S.MARQUEE,b.HTML],[S.OBJECT,b.HTML],[S.TABLE,b.HTML],[S.TD,b.HTML],[S.TEMPLATE,b.HTML],[S.TH,b.HTML],[S.ANNOTATION_XML,b.MATHML],[S.MI,b.MATHML],[S.MN,b.MATHML],[S.MO,b.MATHML],[S.MS,b.MATHML],[S.MTEXT,b.MATHML],[S.DESC,b.SVG],[S.FOREIGN_OBJECT,b.SVG],[S.TITLE,b.SVG]]),eR=[S.H1,S.H2,S.H3,S.H4,S.H5,S.H6],eO=[S.TR,S.TEMPLATE,S.HTML],ew=[S.TBODY,S.TFOOT,S.THEAD,S.TEMPLATE,S.HTML],ex=[S.TABLE,S.TEMPLATE,S.HTML],eD=[S.TD,S.TH];class eL{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=S.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===S.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===b.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){let r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==b.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop=0;n--)if(e.includes(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return -1}clearBackTo(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(ex,b.HTML)}clearBackToTableBodyContext(){this.clearBackTo(ew,b.HTML)}clearBackToTableRowContext(){this.clearBackTo(eO,b.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===S.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===S.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===b.HTML)break;if(eC.get(n)===r)return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e],n=this.treeAdapter.getNamespaceURI(this.items[e]);if(em(t)&&n===b.HTML)break;if(eC.get(t)===n)return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===b.HTML)break;if((n===S.UL||n===S.OL)&&r===b.HTML||eC.get(n)===r)return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===b.HTML)break;if(n===S.BUTTON&&r===b.HTML||eC.get(n)===r)return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===b.HTML){if(n===e)break;if(n===S.TABLE||n===S.TEMPLATE||n===S.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e],n=this.treeAdapter.getNamespaceURI(this.items[e]);if(n===b.HTML){if(t===S.TBODY||t===S.THEAD||t===S.TFOOT)break;if(t===S.TABLE||t===S.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===b.HTML){if(n===e)break;if(n!==S.OPTION&&n!==S.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;ev.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;eN.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&eN.has(this.currentTagId);)this.pop()}}(p=_=_||(_={}))[p.Marker=0]="Marker",p[p.Element=1]="Element";let eP={type:_.Marker};class eM{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let n=[],r=t.length,a=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);for(let e=0;e[e.name,e.value])),a=0;for(let e=0;er.get(e.name)===e.value)&&(a+=1)>=3&&this.entries.splice(t.idx,1)}}insertMarker(){this.entries.unshift(eP)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:_.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:_.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(eP);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===_.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===_.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===_.Element&&t.element===e)}}function eF(e){return{nodeName:"#text",value:e,parentNode:null}}let eB={createDocument:()=>({nodeName:"#document",mode:y.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){let a=e.childNodes.find(e=>"#documentType"===e.nodeName);a?(a.name=t,a.publicId=n,a.systemId=r):eB.appendChild(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null})},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let n=e.childNodes[e.childNodes.length-1];if(eB.isTextNode(n)){n.value+=t;return}}eB.appendChild(e,eF(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];r&&eB.isTextNode(r)?r.value+=t:eB.insertBefore(e,eF(t),n)},adoptAttributes(e,t){let n=new Set(e.attrs.map(e=>e.name));for(let r=0;re.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},eU="html",eH=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],eG=[...eH,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],e$=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),ez=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],ej=[...ez,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function eY(e,t){return t.some(t=>e.startsWith(t))}let eV={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},eW=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),eZ=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:b.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:b.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:b.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:b.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:b.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:b.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:b.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:b.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:b.XML}],["xml:space",{prefix:"xml",name:"space",namespace:b.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:b.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:b.XMLNS}]]),eq=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),eK=new Set([S.B,S.BIG,S.BLOCKQUOTE,S.BODY,S.BR,S.CENTER,S.CODE,S.DD,S.DIV,S.DL,S.DT,S.EM,S.EMBED,S.H1,S.H2,S.H3,S.H4,S.H5,S.H6,S.HEAD,S.HR,S.I,S.IMG,S.LI,S.LISTING,S.MENU,S.META,S.NOBR,S.OL,S.P,S.PRE,S.RUBY,S.S,S.SMALL,S.SPAN,S.STRONG,S.STRIKE,S.SUB,S.SUP,S.TABLE,S.TT,S.U,S.UL,S.VAR]);function eX(e){for(let t=0;t0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):{current:e,currentTagId:t}=this.openElements,this._setContextModes(e,t)}}_setContextModes(e,t){let n=e===this.document||this.treeAdapter.getNamespaceURI(e)===b.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,b.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=k.TEXT}switchToPlaintextParsing(){this.insertionMode=k.TEXT,this.originalInsertionMode=k.IN_BODY,this.tokenizer.state=eh.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===T.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===b.HTML)switch(this.fragmentContextID){case S.TITLE:case S.TEXTAREA:this.tokenizer.state=eh.RCDATA;break;case S.STYLE:case S.XMP:case S.IFRAME:case S.NOEMBED:case S.NOFRAMES:case S.NOSCRIPT:this.tokenizer.state=eh.RAWTEXT;break;case S.SCRIPT:this.tokenizer.state=eh.SCRIPT_DATA;break;case S.PLAINTEXT:this.tokenizer.state=eh.PLAINTEXT}}_setDocumentType(e){let t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){let t=this.treeAdapter.getChildNodes(this.document),n=t.find(e=>this.treeAdapter.isDocumentTypeNode(e));n&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){let n=this.treeAdapter.createElement(e,b.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,b.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(T.HTML,b.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,S.HTML)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let r=this.treeAdapter.getChildNodes(t),a=n?r.lastIndexOf(n):r.length,i=r[a-1],o=this.treeAdapter.getNodeSourceCodeLocation(i);if(o){let{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let n=t.location,r=this.treeAdapter.getTagName(e),a=t.type===h.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,a)}}shouldProcessStartTagTokenInForeignContent(e){let t,n;return!!this.currentNotInHTML&&(0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):{current:t,currentTagId:n}=this.openElements,(e.tagID!==S.SVG||this.treeAdapter.getTagName(t)!==T.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==b.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===S.MGLYPH||e.tagID===S.MALIGNMARK)&&!this._isIntegrationPoint(n,t,b.HTML)))}_processToken(e){switch(e.type){case h.CHARACTER:this.onCharacter(e);break;case h.NULL_CHARACTER:this.onNullCharacter(e);break;case h.COMMENT:this.onComment(e);break;case h.DOCTYPE:this.onDoctype(e);break;case h.START_TAG:this._processStartTag(e);break;case h.END_TAG:this.onEndTag(e);break;case h.EOF:this.onEof(e);break;case h.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){let r=this.treeAdapter.getNamespaceURI(t),a=this.treeAdapter.getAttrList(t);return(!n||n===b.HTML)&&function(e,t,n){if(t===b.MATHML&&e===S.ANNOTATION_XML){for(let e=0;ee.type===_.Marker||this.openElements.contains(e.element)),n=t<0?e-1:t-1;for(let e=n;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=k.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(S.P),this.openElements.popUntilTagNamePopped(S.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case S.TR:this.insertionMode=k.IN_ROW;return;case S.TBODY:case S.THEAD:case S.TFOOT:this.insertionMode=k.IN_TABLE_BODY;return;case S.CAPTION:this.insertionMode=k.IN_CAPTION;return;case S.COLGROUP:this.insertionMode=k.IN_COLUMN_GROUP;return;case S.TABLE:this.insertionMode=k.IN_TABLE;return;case S.BODY:this.insertionMode=k.IN_BODY;return;case S.FRAMESET:this.insertionMode=k.IN_FRAMESET;return;case S.SELECT:this._resetInsertionModeForSelect(e);return;case S.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case S.HTML:this.insertionMode=this.headElement?k.AFTER_HEAD:k.BEFORE_HEAD;return;case S.TD:case S.TH:if(e>0){this.insertionMode=k.IN_CELL;return}break;case S.HEAD:if(e>0){this.insertionMode=k.IN_HEAD;return}}this.insertionMode=k.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===S.TEMPLATE)break;if(e===S.TABLE){this.insertionMode=k.IN_SELECT_IN_TABLE;return}}this.insertionMode=k.IN_SELECT}_isElementCausesFosterParenting(e){return e1.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case S.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===b.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case S.TABLE:{let n=this.treeAdapter.getParentNode(t);if(n)return{parent:n,beforeElement:t};return{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){let n=this.treeAdapter.getNamespaceURI(e);return ef[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){this._insertCharacters(e),this.framesetOk=!1;return}switch(this.insertionMode){case k.INITIAL:e9(this,e);break;case k.BEFORE_HTML:e8(this,e);break;case k.BEFORE_HEAD:e7(this,e);break;case k.IN_HEAD:tn(this,e);break;case k.IN_HEAD_NO_SCRIPT:tr(this,e);break;case k.AFTER_HEAD:ta(this,e);break;case k.IN_BODY:case k.IN_CAPTION:case k.IN_CELL:case k.IN_TEMPLATE:ts(this,e);break;case k.TEXT:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:th(this,e);break;case k.IN_TABLE_TEXT:tS(this,e);break;case k.IN_COLUMN_GROUP:tI(this,e);break;case k.AFTER_BODY:tL(this,e);break;case k.AFTER_AFTER_BODY:tP(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){e.chars="�",this._insertCharacters(e);return}switch(this.insertionMode){case k.INITIAL:e9(this,e);break;case k.BEFORE_HTML:e8(this,e);break;case k.BEFORE_HEAD:e7(this,e);break;case k.IN_HEAD:tn(this,e);break;case k.IN_HEAD_NO_SCRIPT:tr(this,e);break;case k.AFTER_HEAD:ta(this,e);break;case k.TEXT:this._insertCharacters(e);break;case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:th(this,e);break;case k.IN_COLUMN_GROUP:tI(this,e);break;case k.AFTER_BODY:tL(this,e);break;case k.AFTER_AFTER_BODY:tP(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){e5(this,e);return}switch(this.insertionMode){case k.INITIAL:case k.BEFORE_HTML:case k.BEFORE_HEAD:case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:case k.IN_BODY:case k.IN_TABLE:case k.IN_CAPTION:case k.IN_COLUMN_GROUP:case k.IN_TABLE_BODY:case k.IN_ROW:case k.IN_CELL:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:case k.IN_TEMPLATE:case k.IN_FRAMESET:case k.AFTER_FRAMESET:e5(this,e);break;case k.IN_TABLE_TEXT:tA(this,e);break;case k.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case k.INITIAL:!function(e,t){e._setDocumentType(t);let n=t.forceQuirks?y.QUIRKS:function(e){if(e.name!==eU)return y.QUIRKS;let{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return y.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),e$.has(n))return y.QUIRKS;let e=null===t?eG:eH;if(eY(n,e))return y.QUIRKS;if(eY(n,e=null===t?ez:ej))return y.LIMITED_QUIRKS}return y.NO_QUIRKS}(t);t.name===eU&&null===t.publicId&&(null===t.systemId||"about:legacy-compat"===t.systemId)||e._err(t,g.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=k.BEFORE_HTML}(this,e);break;case k.BEFORE_HEAD:case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:this._err(e,g.misplacedDoctype);break;case k.IN_TABLE_TEXT:tA(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,g.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){let t=e.tagID,n=t===S.FONT&&e.attrs.some(({name:e})=>e===E.COLOR||e===E.SIZE||e===E.FACE);return n||eK.has(t)}(t))tM(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===b.MATHML?eX(t):r===b.SVG&&(function(e){let t=eq.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=ed(e.tagName))}(t),eQ(t)),eJ(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case k.INITIAL:e9(this,e);break;case k.BEFORE_HTML:e.tagID===S.HTML?(this._insertElement(e,b.HTML),this.insertionMode=k.BEFORE_HEAD):e8(this,e);break;case k.BEFORE_HEAD:!function(e,t){switch(t.tagID){case S.HTML:tp(e,t);break;case S.HEAD:e._insertElement(t,b.HTML),e.headElement=e.openElements.current,e.insertionMode=k.IN_HEAD;break;default:e7(e,t)}}(this,e);break;case k.IN_HEAD:te(this,e);break;case k.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case S.HTML:tp(e,t);break;case S.BASEFONT:case S.BGSOUND:case S.HEAD:case S.LINK:case S.META:case S.NOFRAMES:case S.STYLE:te(e,t);break;case S.NOSCRIPT:e._err(t,g.nestedNoscriptInHead);break;default:tr(e,t)}}(this,e);break;case k.AFTER_HEAD:!function(e,t){switch(t.tagID){case S.HTML:tp(e,t);break;case S.BODY:e._insertElement(t,b.HTML),e.framesetOk=!1,e.insertionMode=k.IN_BODY;break;case S.FRAMESET:e._insertElement(t,b.HTML),e.insertionMode=k.IN_FRAMESET;break;case S.BASE:case S.BASEFONT:case S.BGSOUND:case S.LINK:case S.META:case S.NOFRAMES:case S.SCRIPT:case S.STYLE:case S.TEMPLATE:case S.TITLE:e._err(t,g.abandonedHeadElementChild),e.openElements.push(e.headElement,S.HEAD),te(e,t),e.openElements.remove(e.headElement);break;case S.HEAD:e._err(t,g.misplacedStartTagForHeadElement);break;default:ta(e,t)}}(this,e);break;case k.IN_BODY:tp(this,e);break;case k.IN_TABLE:tb(this,e);break;case k.IN_TABLE_TEXT:tA(this,e);break;case k.IN_CAPTION:!function(e,t){let n=t.tagID;t_.has(n)?e.openElements.hasInTableScope(S.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(S.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=k.IN_TABLE,tb(e,t)):tp(e,t)}(this,e);break;case k.IN_COLUMN_GROUP:tk(this,e);break;case k.IN_TABLE_BODY:tv(this,e);break;case k.IN_ROW:tC(this,e);break;case k.IN_CELL:!function(e,t){let n=t.tagID;t_.has(n)?(e.openElements.hasInTableScope(S.TD)||e.openElements.hasInTableScope(S.TH))&&(e._closeTableCell(),tC(e,t)):tp(e,t)}(this,e);break;case k.IN_SELECT:tO(this,e);break;case k.IN_SELECT_IN_TABLE:!function(e,t){let n=t.tagID;n===S.CAPTION||n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR||n===S.TD||n===S.TH?(e.openElements.popUntilTagNamePopped(S.SELECT),e._resetInsertionMode(),e._processStartTag(t)):tO(e,t)}(this,e);break;case k.IN_TEMPLATE:!function(e,t){switch(t.tagID){case S.BASE:case S.BASEFONT:case S.BGSOUND:case S.LINK:case S.META:case S.NOFRAMES:case S.SCRIPT:case S.STYLE:case S.TEMPLATE:case S.TITLE:te(e,t);break;case S.CAPTION:case S.COLGROUP:case S.TBODY:case S.TFOOT:case S.THEAD:e.tmplInsertionModeStack[0]=k.IN_TABLE,e.insertionMode=k.IN_TABLE,tb(e,t);break;case S.COL:e.tmplInsertionModeStack[0]=k.IN_COLUMN_GROUP,e.insertionMode=k.IN_COLUMN_GROUP,tk(e,t);break;case S.TR:e.tmplInsertionModeStack[0]=k.IN_TABLE_BODY,e.insertionMode=k.IN_TABLE_BODY,tv(e,t);break;case S.TD:case S.TH:e.tmplInsertionModeStack[0]=k.IN_ROW,e.insertionMode=k.IN_ROW,tC(e,t);break;default:e.tmplInsertionModeStack[0]=k.IN_BODY,e.insertionMode=k.IN_BODY,tp(e,t)}}(this,e);break;case k.AFTER_BODY:e.tagID===S.HTML?tp(this,e):tL(this,e);break;case k.IN_FRAMESET:!function(e,t){switch(t.tagID){case S.HTML:tp(e,t);break;case S.FRAMESET:e._insertElement(t,b.HTML);break;case S.FRAME:e._appendElement(t,b.HTML),t.ackSelfClosing=!0;break;case S.NOFRAMES:te(e,t)}}(this,e);break;case k.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case S.HTML:tp(e,t);break;case S.NOFRAMES:te(e,t)}}(this,e);break;case k.AFTER_AFTER_BODY:e.tagID===S.HTML?tp(this,e):tP(this,e);break;case k.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case S.HTML:tp(e,t);break;case S.NOFRAMES:te(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===S.P||t.tagID===S.BR){tM(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===b.HTML){e._endTagOutsideForeignContent(t);break}let a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){var t;switch(this.insertionMode){case k.INITIAL:e9(this,e);break;case k.BEFORE_HTML:!function(e,t){let n=t.tagID;(n===S.HTML||n===S.HEAD||n===S.BODY||n===S.BR)&&e8(e,t)}(this,e);break;case k.BEFORE_HEAD:!function(e,t){let n=t.tagID;n===S.HEAD||n===S.BODY||n===S.HTML||n===S.BR?e7(e,t):e._err(t,g.endTagWithoutMatchingOpenElement)}(this,e);break;case k.IN_HEAD:!function(e,t){switch(t.tagID){case S.HEAD:e.openElements.pop(),e.insertionMode=k.AFTER_HEAD;break;case S.BODY:case S.BR:case S.HTML:tn(e,t);break;case S.TEMPLATE:tt(e,t);break;default:e._err(t,g.endTagWithoutMatchingOpenElement)}}(this,e);break;case k.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case S.NOSCRIPT:e.openElements.pop(),e.insertionMode=k.IN_HEAD;break;case S.BR:tr(e,t);break;default:e._err(t,g.endTagWithoutMatchingOpenElement)}}(this,e);break;case k.AFTER_HEAD:!function(e,t){switch(t.tagID){case S.BODY:case S.HTML:case S.BR:ta(e,t);break;case S.TEMPLATE:tt(e,t);break;default:e._err(t,g.endTagWithoutMatchingOpenElement)}}(this,e);break;case k.IN_BODY:tm(this,e);break;case k.TEXT:e.tagID===S.SCRIPT&&(null===(t=this.scriptHandler)||void 0===t||t.call(this,this.openElements.current)),this.openElements.pop(),this.insertionMode=this.originalInsertionMode;break;case k.IN_TABLE:tE(this,e);break;case k.IN_TABLE_TEXT:tA(this,e);break;case k.IN_CAPTION:!function(e,t){let n=t.tagID;switch(n){case S.CAPTION:case S.TABLE:e.openElements.hasInTableScope(S.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(S.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=k.IN_TABLE,n===S.TABLE&&tE(e,t));break;case S.BODY:case S.COL:case S.COLGROUP:case S.HTML:case S.TBODY:case S.TD:case S.TFOOT:case S.TH:case S.THEAD:case S.TR:break;default:tm(e,t)}}(this,e);break;case k.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case S.COLGROUP:e.openElements.currentTagId===S.COLGROUP&&(e.openElements.pop(),e.insertionMode=k.IN_TABLE);break;case S.TEMPLATE:tt(e,t);break;case S.COL:break;default:tI(e,t)}}(this,e);break;case k.IN_TABLE_BODY:tN(this,e);break;case k.IN_ROW:tR(this,e);break;case k.IN_CELL:!function(e,t){let n=t.tagID;switch(n){case S.TD:case S.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=k.IN_ROW);break;case S.TABLE:case S.TBODY:case S.TFOOT:case S.THEAD:case S.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),tR(e,t));break;case S.BODY:case S.CAPTION:case S.COL:case S.COLGROUP:case S.HTML:break;default:tm(e,t)}}(this,e);break;case k.IN_SELECT:tw(this,e);break;case k.IN_SELECT_IN_TABLE:!function(e,t){let n=t.tagID;n===S.CAPTION||n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR||n===S.TD||n===S.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(S.SELECT),e._resetInsertionMode(),e.onEndTag(t)):tw(e,t)}(this,e);break;case k.IN_TEMPLATE:e.tagID===S.TEMPLATE&&tt(this,e);break;case k.AFTER_BODY:tD(this,e);break;case k.IN_FRAMESET:e.tagID!==S.FRAMESET||this.openElements.isRootHtmlElementCurrent()||(this.openElements.pop(),this.fragmentContext||this.openElements.currentTagId===S.FRAMESET||(this.insertionMode=k.AFTER_FRAMESET));break;case k.AFTER_FRAMESET:e.tagID===S.HTML&&(this.insertionMode=k.AFTER_AFTER_FRAMESET);break;case k.AFTER_AFTER_BODY:tP(this,e)}}onEof(e){switch(this.insertionMode){case k.INITIAL:e9(this,e);break;case k.BEFORE_HTML:e8(this,e);break;case k.BEFORE_HEAD:e7(this,e);break;case k.IN_HEAD:tn(this,e);break;case k.IN_HEAD_NO_SCRIPT:tr(this,e);break;case k.AFTER_HEAD:ta(this,e);break;case k.IN_BODY:case k.IN_TABLE:case k.IN_CAPTION:case k.IN_COLUMN_GROUP:case k.IN_TABLE_BODY:case k.IN_ROW:case k.IN_CELL:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:tg(this,e);break;case k.TEXT:this._err(e,g.eofInElementThatCanContainOnlyText),this.openElements.pop(),this.insertionMode=this.originalInsertionMode,this.onEof(e);break;case k.IN_TABLE_TEXT:tA(this,e);break;case k.IN_TEMPLATE:tx(this,e);break;case k.AFTER_BODY:case k.IN_FRAMESET:case k.AFTER_FRAMESET:case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:e6(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===m.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:case k.TEXT:case k.IN_COLUMN_GROUP:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:case k.IN_FRAMESET:case k.AFTER_FRAMESET:this._insertCharacters(e);break;case k.IN_BODY:case k.IN_CAPTION:case k.IN_CELL:case k.IN_TEMPLATE:case k.AFTER_BODY:case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:to(this,e);break;case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:th(this,e);break;case k.IN_TABLE_TEXT:tT(this,e)}}}function e4(e,t){for(let n=0;n<8;n++){let n=function(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):tf(e,t),n}(e,t);if(!n)break;let r=function(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){let a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;let a=function(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let i=0,o=a;o!==n;i++,o=a){a=e.openElements.getCommonAncestor(o);let n=e.activeFormattingElements.getElementEntry(o),s=n&&i>=3,l=!n||s;l?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(o)):(o=function(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}(e,r,n.element),i=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(a),i&&function(e,t,n){let r=e.treeAdapter.getTagName(t),a=ed(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{let r=e.treeAdapter.getNamespaceURI(t);a===S.TEMPLATE&&r===b.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}(e,i,a),function(e,t,n){let r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,a.tagID)}(e,r,n)}}function e5(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function e6(e,t){if(e.stopped=!0,t.location){let n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){let n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function e9(e,t){e._err(t,g.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,y.QUIRKS),e.insertionMode=k.BEFORE_HTML,e._processToken(t)}function e8(e,t){e._insertFakeRootElement(),e.insertionMode=k.BEFORE_HEAD,e._processToken(t)}function e7(e,t){e._insertFakeElement(T.HEAD,S.HEAD),e.headElement=e.openElements.current,e.insertionMode=k.IN_HEAD,e._processToken(t)}function te(e,t){switch(t.tagID){case S.HTML:tp(e,t);break;case S.BASE:case S.BASEFONT:case S.BGSOUND:case S.LINK:case S.META:e._appendElement(t,b.HTML),t.ackSelfClosing=!0;break;case S.TITLE:e._switchToTextParsing(t,eh.RCDATA);break;case S.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,eh.RAWTEXT):(e._insertElement(t,b.HTML),e.insertionMode=k.IN_HEAD_NO_SCRIPT);break;case S.NOFRAMES:case S.STYLE:e._switchToTextParsing(t,eh.RAWTEXT);break;case S.SCRIPT:e._switchToTextParsing(t,eh.SCRIPT_DATA);break;case S.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=k.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(k.IN_TEMPLATE);break;case S.HEAD:e._err(t,g.misplacedStartTagForHeadElement);break;default:tn(e,t)}}function tt(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==S.TEMPLATE&&e._err(t,g.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,g.endTagWithoutMatchingOpenElement)}function tn(e,t){e.openElements.pop(),e.insertionMode=k.AFTER_HEAD,e._processToken(t)}function tr(e,t){let n=t.type===h.EOF?g.openElementsLeftAfterEof:g.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=k.IN_HEAD,e._processToken(t)}function ta(e,t){e._insertFakeElement(T.BODY,S.BODY),e.insertionMode=k.IN_BODY,ti(e,t)}function ti(e,t){switch(t.type){case h.CHARACTER:ts(e,t);break;case h.WHITESPACE_CHARACTER:to(e,t);break;case h.COMMENT:e5(e,t);break;case h.START_TAG:tp(e,t);break;case h.END_TAG:tm(e,t);break;case h.EOF:tg(e,t)}}function to(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function ts(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function tl(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,b.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function tc(e){let t=el(e,E.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function tu(e,t){e._switchToTextParsing(t,eh.RAWTEXT)}function td(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML)}function tp(e,t){switch(t.tagID){case S.I:case S.S:case S.B:case S.U:case S.EM:case S.TT:case S.BIG:case S.CODE:case S.FONT:case S.SMALL:case S.STRIKE:case S.STRONG:e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case S.A:!function(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(T.A);n&&(e4(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case S.H1:case S.H2:case S.H3:case S.H4:case S.H5:case S.H6:e.openElements.hasInButtonScope(S.P)&&e._closePElement(),em(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,b.HTML);break;case S.P:case S.DL:case S.OL:case S.UL:case S.DIV:case S.DIR:case S.NAV:case S.MAIN:case S.MENU:case S.ASIDE:case S.CENTER:case S.FIGURE:case S.FOOTER:case S.HEADER:case S.HGROUP:case S.DIALOG:case S.DETAILS:case S.ADDRESS:case S.ARTICLE:case S.SECTION:case S.SUMMARY:case S.FIELDSET:case S.BLOCKQUOTE:case S.FIGCAPTION:e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,b.HTML);break;case S.LI:case S.DD:case S.DT:!function(e,t){e.framesetOk=!1;let n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let r=e.openElements.tagIDs[t];if(n===S.LI&&r===S.LI||(n===S.DD||n===S.DT)&&(r===S.DD||r===S.DT)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r);break}if(r!==S.ADDRESS&&r!==S.DIV&&r!==S.P&&e._isSpecialElement(e.openElements.items[t],r))break}e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,b.HTML)}(e,t);break;case S.BR:case S.IMG:case S.WBR:case S.AREA:case S.EMBED:case S.KEYGEN:tl(e,t);break;case S.HR:e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._appendElement(t,b.HTML),e.framesetOk=!1,t.ackSelfClosing=!0;break;case S.RB:case S.RTC:e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,b.HTML);break;case S.RT:case S.RP:e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(S.RTC),e._insertElement(t,b.HTML);break;case S.PRE:case S.LISTING:e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,b.HTML),e.skipNextNewLine=!0,e.framesetOk=!1;break;case S.XMP:e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,eh.RAWTEXT);break;case S.SVG:e._reconstructActiveFormattingElements(),eQ(t),eJ(t),t.selfClosing?e._appendElement(t,b.SVG):e._insertElement(t,b.SVG),t.ackSelfClosing=!0;break;case S.HTML:0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs);break;case S.BASE:case S.LINK:case S.META:case S.STYLE:case S.TITLE:case S.SCRIPT:case S.BGSOUND:case S.BASEFONT:case S.TEMPLATE:te(e,t);break;case S.BODY:!function(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case S.FORM:!function(e,t){let n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,b.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case S.NOBR:e._reconstructActiveFormattingElements(),e.openElements.hasInScope(S.NOBR)&&(e4(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,b.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case S.MATH:e._reconstructActiveFormattingElements(),eX(t),eJ(t),t.selfClosing?e._appendElement(t,b.MATHML):e._insertElement(t,b.MATHML),t.ackSelfClosing=!0;break;case S.TABLE:e.treeAdapter.getDocumentMode(e.document)!==y.QUIRKS&&e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,b.HTML),e.framesetOk=!1,e.insertionMode=k.IN_TABLE;break;case S.INPUT:e._reconstructActiveFormattingElements(),e._appendElement(t,b.HTML),tc(t)||(e.framesetOk=!1),t.ackSelfClosing=!0;break;case S.PARAM:case S.TRACK:case S.SOURCE:e._appendElement(t,b.HTML),t.ackSelfClosing=!0;break;case S.IMAGE:t.tagName=T.IMG,t.tagID=S.IMG,tl(e,t);break;case S.BUTTON:e.openElements.hasInScope(S.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(S.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML),e.framesetOk=!1;break;case S.APPLET:case S.OBJECT:case S.MARQUEE:e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1;break;case S.IFRAME:e.framesetOk=!1,e._switchToTextParsing(t,eh.RAWTEXT);break;case S.SELECT:e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===k.IN_TABLE||e.insertionMode===k.IN_CAPTION||e.insertionMode===k.IN_TABLE_BODY||e.insertionMode===k.IN_ROW||e.insertionMode===k.IN_CELL?k.IN_SELECT_IN_TABLE:k.IN_SELECT;break;case S.OPTION:case S.OPTGROUP:e.openElements.currentTagId===S.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML);break;case S.NOEMBED:tu(e,t);break;case S.FRAMESET:!function(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,b.HTML),e.insertionMode=k.IN_FRAMESET)}(e,t);break;case S.TEXTAREA:e._insertElement(t,b.HTML),e.skipNextNewLine=!0,e.tokenizer.state=eh.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=k.TEXT;break;case S.NOSCRIPT:e.options.scriptingEnabled?tu(e,t):td(e,t);break;case S.PLAINTEXT:e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,b.HTML),e.tokenizer.state=eh.PLAINTEXT;break;case S.COL:case S.TH:case S.TD:case S.TR:case S.HEAD:case S.FRAME:case S.TBODY:case S.TFOOT:case S.THEAD:case S.CAPTION:case S.COLGROUP:break;default:td(e,t)}}function tf(e,t){let n=t.tagName,r=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let a=e.openElements.items[t],i=e.openElements.tagIDs[t];if(r===i&&(r!==S.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(a,i))break}}function tm(e,t){switch(t.tagID){case S.A:case S.B:case S.I:case S.S:case S.U:case S.EM:case S.TT:case S.BIG:case S.CODE:case S.FONT:case S.NOBR:case S.SMALL:case S.STRIKE:case S.STRONG:e4(e,t);break;case S.P:e.openElements.hasInButtonScope(S.P)||e._insertFakeElement(T.P,S.P),e._closePElement();break;case S.DL:case S.UL:case S.OL:case S.DIR:case S.DIV:case S.NAV:case S.PRE:case S.MAIN:case S.MENU:case S.ASIDE:case S.BUTTON:case S.CENTER:case S.FIGURE:case S.FOOTER:case S.HEADER:case S.HGROUP:case S.DIALOG:case S.ADDRESS:case S.ARTICLE:case S.DETAILS:case S.SECTION:case S.SUMMARY:case S.LISTING:case S.FIELDSET:case S.BLOCKQUOTE:case S.FIGCAPTION:!function(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case S.LI:e.openElements.hasInListItemScope(S.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(S.LI),e.openElements.popUntilTagNamePopped(S.LI));break;case S.DD:case S.DT:!function(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case S.H1:case S.H2:case S.H3:case S.H4:case S.H5:case S.H6:e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped());break;case S.BR:e._reconstructActiveFormattingElements(),e._insertFakeElement(T.BR,S.BR),e.openElements.pop(),e.framesetOk=!1;break;case S.BODY:!function(e,t){if(e.openElements.hasInScope(S.BODY)&&(e.insertionMode=k.AFTER_BODY,e.options.sourceCodeLocationInfo)){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case S.HTML:e.openElements.hasInScope(S.BODY)&&(e.insertionMode=k.AFTER_BODY,tD(e,t));break;case S.FORM:!function(e){let t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(S.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(S.FORM):n&&e.openElements.remove(n))}(e);break;case S.APPLET:case S.OBJECT:case S.MARQUEE:!function(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case S.TEMPLATE:tt(e,t);break;default:tf(e,t)}}function tg(e,t){e.tmplInsertionModeStack.length>0?tx(e,t):e6(e,t)}function th(e,t){if(e1.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=k.IN_TABLE_TEXT,t.type){case h.CHARACTER:tS(e,t);break;case h.WHITESPACE_CHARACTER:tT(e,t)}else ty(e,t)}function tb(e,t){switch(t.tagID){case S.TD:case S.TH:case S.TR:e.openElements.clearBackToTableContext(),e._insertFakeElement(T.TBODY,S.TBODY),e.insertionMode=k.IN_TABLE_BODY,tv(e,t);break;case S.STYLE:case S.SCRIPT:case S.TEMPLATE:te(e,t);break;case S.COL:e.openElements.clearBackToTableContext(),e._insertFakeElement(T.COLGROUP,S.COLGROUP),e.insertionMode=k.IN_COLUMN_GROUP,tk(e,t);break;case S.FORM:e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,b.HTML),e.formElement=e.openElements.current,e.openElements.pop());break;case S.TABLE:e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode(),e._processStartTag(t));break;case S.TBODY:case S.TFOOT:case S.THEAD:e.openElements.clearBackToTableContext(),e._insertElement(t,b.HTML),e.insertionMode=k.IN_TABLE_BODY;break;case S.INPUT:tc(t)?e._appendElement(t,b.HTML):ty(e,t),t.ackSelfClosing=!0;break;case S.CAPTION:e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,b.HTML),e.insertionMode=k.IN_CAPTION;break;case S.COLGROUP:e.openElements.clearBackToTableContext(),e._insertElement(t,b.HTML),e.insertionMode=k.IN_COLUMN_GROUP;break;default:ty(e,t)}}function tE(e,t){switch(t.tagID){case S.TABLE:e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode());break;case S.TEMPLATE:tt(e,t);break;case S.BODY:case S.CAPTION:case S.COL:case S.COLGROUP:case S.HTML:case S.TBODY:case S.TD:case S.TFOOT:case S.TH:case S.THEAD:case S.TR:break;default:ty(e,t)}}function ty(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,ti(e,t),e.fosterParentingEnabled=n}function tT(e,t){e.pendingCharacterTokens.push(t)}function tS(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function tA(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===S.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===S.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===S.OPTGROUP&&e.openElements.pop();break;case S.OPTION:e.openElements.currentTagId===S.OPTION&&e.openElements.pop();break;case S.SELECT:e.openElements.hasInSelectScope(S.SELECT)&&(e.openElements.popUntilTagNamePopped(S.SELECT),e._resetInsertionMode());break;case S.TEMPLATE:tt(e,t)}}function tx(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):e6(e,t)}function tD(e,t){var n;if(t.tagID===S.HTML){if(e.fragmentContext||(e.insertionMode=k.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===S.HTML){e._setEndLocation(e.openElements.items[0],t);let r=e.openElements.items[1];!r||(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)||e._setEndLocation(r,t)}}else tL(e,t)}function tL(e,t){e.insertionMode=k.IN_BODY,ti(e,t)}function tP(e,t){e.insertionMode=k.IN_BODY,ti(e,t)}function tM(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==b.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}n(43470),T.AREA,T.BASE,T.BASEFONT,T.BGSOUND,T.BR,T.COL,T.EMBED,T.FRAME,T.HR,T.IMG,T.INPUT,T.KEYGEN,T.LINK,T.META,T.PARAM,T.SOURCE,T.TRACK,T.WBR;var tF=n(3980),tB=n(21623);let tU=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),tH={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function tG(e,t){let n=function(e){let t="root"===e.type?e.children[0]:e;return!!(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),r=q("type",{handlers:{root:tz,element:tj,text:tY,comment:tW,doctype:tV,raw:tZ},unknown:tq}),a={parser:n?new e3(tH):e3.getFragmentParser(void 0,tH),handle(e){r(e,a)},stitches:!1,options:t||{}};r(e,a),tK(a,(0,tF.Pk)());let i=n?a.parser.document:a.parser.getFragment(),o=function(e,t){let n=t||{};return z({file:n.file||void 0,location:!1,schema:"svg"===n.space?N.YP:N.dy,verbose:n.verbose||!1},e)}(i,{file:a.options.file});return(a.stitches&&(0,tB.Vn)(o,"comment",function(e,t,n){if(e.value.stitch&&n&&void 0!==t){let r=n.children;return r[t]=e.value.stitch,t}}),"root"===o.type&&1===o.children.length&&o.children[0].type===e.type)?o.children[0]:o}function t$(e,t){let n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);let n={type:h.CHARACTER,chars:e.value,location:tQ(e)};tK(t,(0,tF.Pk)(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function tV(e,t){let n={type:h.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:tQ(e)};tK(t,(0,tF.Pk)(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function tW(e,t){let n=e.value,r={type:h.COMMENT,data:n,location:tQ(e)};tK(t,(0,tF.Pk)(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function tZ(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,tX(t,(0,tF.Pk)(e)),t.parser.tokenizer.write(e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;let e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function tq(e,t){if(t.options.passThrough&&t.options.passThrough.includes(e.type))!function(e,t){t.stitches=!0;let n="children"in e?(0,I.ZP)({...e,children:[]}):(0,I.ZP)(e);if("children"in e&&"children"in n){let r=tG({type:"root",children:e.children},t.options);n.children=r.children}tW({type:"comment",value:{stitch:n}},t)}(e,t);else{let t="";throw tU.has(e.type)&&(t=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),Error("Cannot compile `"+e.type+"` node"+t)}}function tK(e,t){tX(e,t);let n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=eh.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function tX(e,t){if(t&&void 0!==t.offset){let n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function tQ(e){let t=(0,tF.Pk)(e)||{line:void 0,column:void 0,offset:void 0},n=(0,tF.rb)(e)||{line:void 0,column:void 0,offset:void 0},r={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset};return r}function tJ(e){return function(t,n){let r=tG(t,{...e,file:n});return r}}},55186:function(e,t,n){"use strict";function r(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,a=n.indexOf(t);for(;-1!==a;)r++,a=n.indexOf(t,a+t.length);return r}n.d(t,{Z:function(){return eX}});var a=n(24345),i=n(15459),o=n(88718),s=n(96093);let l="phrasing",c=["autolink","link","image","label"];function u(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function d(e){this.config.enter.autolinkProtocol.call(this,e)}function p(e){this.config.exit.autolinkProtocol.call(this,e)}function f(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];(0,a.ok)("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function m(e){this.config.exit.autolinkEmail.call(this,e)}function g(e){this.exit(e)}function h(e){!function(e,t,n){let r=(0,s.O)((n||{}).ignore||[]),a=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(s!==n&&d.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(i)?d.push(...i):i&&d.push(i),s=n+p[0].length,u=!0),!r.global)break;p=r.exec(e.value)}return u?(s?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],a=n.indexOf(")"),i=r(e,"("),o=r(e,")");for(;-1!==a&&i>o;)e+=n.slice(0,a+1),a=(n=n.slice(a+1)).indexOf(")"),o++;return[e,n]}(n+a);if(!s[0])return!1;let l={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function E(e,t,n,r){return!(!y(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function y(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,i.B8)(n)||(0,i.Xh)(n))&&(!t||47!==n)}var T=n(11098);function S(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function A(){this.buffer()}function _(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,a.ok)("footnoteDefinition"===n.type),n.label=t,n.identifier=(0,T.d)(this.sliceSerialize(e)).toLowerCase()}function k(e){this.exit(e)}function I(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function v(){this.buffer()}function N(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,a.ok)("footnoteReference"===n.type),n.label=t,n.identifier=(0,T.d)(this.sliceSerialize(e)).toLowerCase()}function C(e){this.exit(e)}function R(e,t,n,r){let a=n.createTracker(r),i=a.move("[^"),o=n.enter("footnoteReference"),s=n.enter("reference");return i+=a.move(n.safe(n.associationId(e),{...a.current(),before:i,after:"]"})),s(),o(),i+=a.move("]")}function O(e,t,n,r){let a=n.createTracker(r),i=a.move("[^"),o=n.enter("footnoteDefinition"),s=n.enter("label");return i+=a.move(n.safe(n.associationId(e),{...a.current(),before:i,after:"]"})),s(),i+=a.move("]:"+(e.children&&e.children.length>0?" ":"")),a.shift(4),i+=a.move(n.indentLines(n.containerFlow(e,a.current()),w)),o(),i}function w(e,t,n){return 0===t?e:(n?"":" ")+e}R.peek=function(){return"["};let x=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function D(e){this.enter({type:"delete",children:[]},e)}function L(e){this.exit(e)}function P(e,t,n,r){let a=n.createTracker(r),i=n.enter("strikethrough"),o=a.move("~~");return o+=n.containerPhrasing(e,{...a.current(),before:o,after:"~"})+a.move("~~"),i(),o}function M(e){return e.length}function F(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function B(e,t,n){return">"+(n?"":" ")+e}function U(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r",...l.current()}))+l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()}))+l.move(a),s()),c+=l.move(")"),o(),c}function Z(e,t,n,r){let a=e.referenceType,i=n.enter("imageReference"),o=n.enter("label"),s=n.createTracker(r),l=s.move("!["),c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();let u=n.stack;n.stack=[],o=n.enter("reference");let d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=u,i(),"full"!==a&&c&&c===d?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function q(e,t,n){let r=e.value||"",a="`",i=-1;for(;RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i\u007F]/.test(e.url))}function X(e,t,n,r){let a,i;let o=$(n),s='"'===o?"Quote":"Apostrophe",l=n.createTracker(r);if(K(e,n)){let t=n.stack;n.stack=[],a=n.enter("autolink");let r=l.move("<");return r+=l.move(n.containerPhrasing(e,{before:r,after:">",...l.current()}))+l.move(">"),a(),n.stack=t,r}a=n.enter("link"),i=n.enter("label");let c=l.move("[");return c+=l.move(n.containerPhrasing(e,{before:c,after:"](",...l.current()}))+l.move("]("),i(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(i=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()}))+l.move(">")):(i=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),i(),e.title&&(i=n.enter(`title${s}`),c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()}))+l.move(o),i()),c+=l.move(")"),a(),c}function Q(e,t,n,r){let a=e.referenceType,i=n.enter("linkReference"),o=n.enter("label"),s=n.createTracker(r),l=s.move("["),c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();let u=n.stack;n.stack=[],o=n.enter("reference");let d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=u,i(),"full"!==a&&c&&c===d?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function J(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ee(e){let t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}V.peek=function(){return"<"},W.peek=function(){return"!"},Z.peek=function(){return"!"},q.peek=function(){return"`"},X.peek=function(e,t,n){return K(e,n)?"<":"["},Q.peek=function(){return"["};let et=(0,s.O)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function en(e,t,n,r){let a=function(e){let t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),o=n.createTracker(r),s=o.move(a+a);return s+=o.move(n.containerPhrasing(e,{before:s,after:a,...o.current()}))+o.move(a+a),i(),s}en.peek=function(e,t,n){return n.options.strong||"*"};let er={blockquote:function(e,t,n,r){let a=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);let o=n.indentLines(n.containerFlow(e,i.current()),B);return a(),o},break:H,code:function(e,t,n,r){let a=function(e){let t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",o="`"===a?"GraveAccent":"Tilde";if(!1===n.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value)){let e=n.enter("codeIndented"),t=n.indentLines(i,G);return e(),t}let s=n.createTracker(r),l=a.repeat(Math.max(function(e,t){let n=String(e),r=n.indexOf(t),a=r,i=0,o=0;if("string"!=typeof t)throw TypeError("Expected substring");for(;-1!==r;)r===a?++i>o&&(o=i):i=1,a=r+t.length,r=n.indexOf(t,a);return o}(i,a)+1,3)),c=n.enter("codeFenced"),u=s.move(l);if(e.lang){let t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${o}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),i&&(u+=s.move(i+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){let a=$(n),i='"'===a?"Quote":"Apostrophe",o=n.enter("definition"),s=n.enter("label"),l=n.createTracker(r),c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()}))+l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()}))+l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()}))+l.move(a),s()),o(),c},emphasis:z,hardBreak:H,heading:function(e,t,n,r){let a;let i=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(r);if(a=!1,(0,j.Vn)(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return a=!0,o.BK}),(!e.depth||e.depth<3)&&(0,Y.B)(e)&&(n.options.setext||a)){let t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...s.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===i?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}let l="#".repeat(i),c=n.enter("headingAtx"),u=n.enter("phrasing");s.move(l+" ");let d=n.containerPhrasing(e,{before:"# ",after:"\n",...s.current()});return/^[\t ]/.test(d)&&(d="&#x"+d.charCodeAt(0).toString(16).toUpperCase()+";"+d.slice(1)),d=d?l+" "+d:l,n.options.closeAtx&&(d+=" "+l),u(),c(),d},html:V,image:W,imageReference:Z,inlineCode:q,link:X,linkReference:Q,list:function(e,t,n,r){let a=n.enter("list"),i=n.bulletCurrent,o=e.ordered?function(e){let t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):J(n),s=e.ordered?"."===o?")":".":function(e){let t=J(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n),l=!!t&&!!n.bulletLastUsed&&o===n.bulletLastUsed;if(!e.ordered){let t=e.children?e.children[0]:void 0;if("*"!==o&&"-"!==o||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),ee(n)===o&&t){let t=-1;for(;++t-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let o=i.length+1;("tab"===a||"mixed"===a&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));let s=n.createTracker(r);s.move(i+" ".repeat(o-i.length)),s.shift(o);let l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){return t?(n?"":" ".repeat(o))+e:(n?i:i+" ".repeat(o-i.length))+e});return l(),c},paragraph:function(e,t,n,r){let a=n.enter("paragraph"),i=n.enter("phrasing"),o=n.containerPhrasing(e,r);return i(),a(),o},root:function(e,t,n,r){let a=e.children.some(function(e){return et(e)}),i=a?n.containerPhrasing:n.containerFlow;return i.call(n,e,r)},strong:en,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){let r=(ee(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function ea(e){let t=e._align;(0,a.ok)(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function ei(e){this.exit(e),this.data.inTable=void 0}function eo(e){this.enter({type:"tableRow",children:[]},e)}function es(e){this.exit(e)}function el(e){this.enter({type:"tableCell",children:[]},e)}function ec(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,eu));let n=this.stack[this.stack.length-1];(0,a.ok)("inlineCode"===n.type),n.value=t,this.exit(e)}function eu(e,t){return"|"===t?t:e}function ed(e){let t=this.stack[this.stack.length-2];(0,a.ok)("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function ep(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];(0,a.ok)("paragraph"===e.type);let n=e.children[0];if(n&&"text"===n.type){let r;let a=t.children,i=-1;for(;++i0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}e_[43]=eA,e_[45]=eA,e_[46]=eA,e_[95]=eA,e_[72]=[eA,eS],e_[104]=[eA,eS],e_[87]=[eA,eT],e_[119]=[eA,eT];var eO=n(23402),ew=n(42761);let ex={tokenize:function(e,t,n){let r=this;return(0,ew.f)(e,function(e){let a=r.events[r.events.length-1];return a&&"gfmFootnoteDefinitionIndent"===a[1].type&&4===a[2].sliceSerialize(a[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function eD(e,t,n){let r;let a=this,i=a.events.length,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);for(;i--;){let e=a.events[i][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!r||!r._balanced)return n(i);let s=(0,T.d)(a.sliceSerialize({start:r.end,end:a.now()}));return 94===s.codePointAt(0)&&o.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)):n(i)}}function eL(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;let i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function eP(e,t,n){let r;let a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),l};function l(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(l){if(s>999||93===l&&!r||null===l||91===l||(0,i.z3)(l))return n(l);if(93===l){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return o.includes((0,T.d)(a.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(l)}return(0,i.z3)(l)||(r=!0),s++,e.consume(l),92===l?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function eM(e,t,n){let r,a;let o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]),l=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),c};function c(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(l>999||93===t&&!a||null===t||91===t||(0,i.z3)(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=(0,T.d)(o.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return(0,i.z3)(t)||(a=!0),l++,e.consume(t),92===t?d:u}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}function p(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s.includes(r)||s.push(r),(0,ew.f)(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function eF(e,t,n){return e.check(eO.w,t,e.attempt(ex,t,n))}function eB(e){e.exit("gfmFootnoteDefinition")}var eU=n(21905),eH=n(62987),eG=n(63233);class e${constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let a=0;if(0!==n||0!==r.length){for(;a0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function ez(e,t,n){let r;let a=this,o=0,s=0;return function(e){let t=a.events.length-1;for(;t>-1;){let e=a.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?a.events[t][1].type:null,i="tableHead"===r||"tableRow"===r?y:l;return i===y&&a.parser.lazy[a.now().line]?n(e):i(e)};function l(t){return e.enter("tableHead"),e.enter("tableRow"),124===t||(r=!0,s+=1),c(t)}function c(t){return null===t?n(t):(0,i.Ch)(t)?s>1?(s=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p):n(t):(0,i.xz)(t)?(0,ew.f)(e,c,"whitespace")(t):(s+=1,r&&(r=!1,o+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,c):(e.enter("data"),u(t))}function u(t){return null===t||124===t||(0,i.z3)(t)?(e.exit("data"),c(t)):(e.consume(t),92===t?d:u)}function d(t){return 92===t||124===t?(e.consume(t),u):u(t)}function p(t){return(a.interrupt=!1,a.parser.lazy[a.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,(0,i.xz)(t))?(0,ew.f)(e,f,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t)}function f(t){return 45===t||58===t?g(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),m):n(t)}function m(t){return(0,i.xz)(t)?(0,ew.f)(e,g,"whitespace")(t):g(t)}function g(t){return 58===t?(s+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),h):45===t?(s+=1,h(t)):null===t||(0,i.Ch)(t)?E(t):n(t)}function h(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(n))}(t)):n(t)}function b(t){return(0,i.xz)(t)?(0,ew.f)(e,E,"whitespace")(t):E(t)}function E(a){return 124===a?f(a):null===a||(0,i.Ch)(a)?r&&o===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(a)):n(a):n(a)}function y(t){return e.enter("tableRow"),T(t)}function T(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),T):null===n||(0,i.Ch)(n)?(e.exit("tableRow"),t(n)):(0,i.xz)(n)?(0,ew.f)(e,T,"whitespace")(n):(e.enter("data"),S(n))}function S(t){return null===t||124===t||(0,i.z3)(t)?(e.exit("data"),T(t)):(e.consume(t),92===t?A:S)}function A(t){return 92===t||124===t?(e.consume(t),S):S(t)}}function ej(e,t){let n,r,a,i=-1,o=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0,p=new e$;for(;++in[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==a&&(i.end=Object.assign({},eW(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function eV(e,t,n,r,a){let i=[],o=eW(t.events,n);a&&(a.end=Object.assign({},o),i.push(["exit",a,t])),r.end=Object.assign({},o),i.push(["exit",r,t]),e.add(n+1,0,i)}function eW(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let eZ={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),a):n(t)};function a(t){return(0,i.z3)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(t)}function s(r){return(0,i.Ch)(r)?t(r):(0,i.xz)(r)?e.check({tokenize:eq},t,n)(r):n(r)}}};function eq(e,t,n){return(0,ew.f)(e,function(e){return null===e?n(e):t(e)},"whitespace")}let eK={};function eX(e){let t=e||eK,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push((0,em.W)([{text:e_},{document:{91:{name:"gfmFootnoteDefinition",tokenize:eM,continuation:{tokenize:eF},exit:eB}},text:{91:{name:"gfmFootnoteCall",tokenize:eP},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:eD,resolveTo:eL}}},function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let a=this.previous,i=this.events,o=0;return function(s){return 126===a&&"characterEscape"!==i[i.length-1][1].type?r(s):(e.enter("strikethroughSequenceTemporary"),function i(s){let l=(0,eH.r)(a);if(126===s)return o>1?r(s):(e.consume(s),o++,i);if(o<2&&!t)return r(s);let c=e.exit("strikethroughSequenceTemporary"),u=(0,eH.r)(s);return c._open=!u||2===u&&!!l,c._close=!l||2===l&&!!u,n(s)}(s))}},resolveAll:function(e,t){let n=-1;for(;++nl&&(l=e[c].length);++ds[d])&&(s[d]=e)}n.push(i)}i[c]=n,o[c]=a}let d=-1;if("object"==typeof n&&"length"in n)for(;++ds[d]&&(s[d]=i),f[d]=i),p[d]=o}i.splice(1,0,p),o.splice(1,0,f),c=-1;let m=[];for(;++c0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function o(e){let t=a(e),n=r(e);if(t&&n)return{start:t,end:n}}},88718:function(e,t,n){"use strict";n.d(t,{BK:function(){return i},S4:function(){return o}});var r=n(96093);let a=[],i=!1;function o(e,t,n,o){let s;"function"==typeof t&&"function"!=typeof n?(o=n,n=t):s=t;let l=(0,r.O)(s),c=o?-1:1;(function e(r,s,u){let d=r&&"object"==typeof r?r:{};if("string"==typeof d.type){let e="string"==typeof d.tagName?d.tagName:"string"==typeof d.name?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+r.type+(e?"<"+e+">":"")+")"})}return p;function p(){var d;let p,f,m,g=a;if((!t||l(r,s,u[u.length-1]||void 0))&&(g=Array.isArray(d=n(r,u))?d:"number"==typeof d?[!0,d]:null==d?a:[d])[0]===i)return g;if("children"in r&&r.children&&r.children&&"skip"!==g[0])for(f=(o?r.children.length:-1)+c,m=u.concat(r);f>-1&&f","Iacute":"\xcd","Icirc":"\xce","Igrave":"\xcc","Iuml":"\xcf","LT":"<","Ntilde":"\xd1","Oacute":"\xd3","Ocirc":"\xd4","Ograve":"\xd2","Oslash":"\xd8","Otilde":"\xd5","Ouml":"\xd6","QUOT":"\\"","REG":"\xae","THORN":"\xde","Uacute":"\xda","Ucirc":"\xdb","Ugrave":"\xd9","Uuml":"\xdc","Yacute":"\xdd","aacute":"\xe1","acirc":"\xe2","acute":"\xb4","aelig":"\xe6","agrave":"\xe0","amp":"&","aring":"\xe5","atilde":"\xe3","auml":"\xe4","brvbar":"\xa6","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","eacute":"\xe9","ecirc":"\xea","egrave":"\xe8","eth":"\xf0","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","iacute":"\xed","icirc":"\xee","iexcl":"\xa1","igrave":"\xec","iquest":"\xbf","iuml":"\xef","laquo":"\xab","lt":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","ntilde":"\xf1","oacute":"\xf3","ocirc":"\xf4","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","oslash":"\xf8","otilde":"\xf5","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","raquo":"\xbb","reg":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","thorn":"\xfe","times":"\xd7","uacute":"\xfa","ucirc":"\xfb","ugrave":"\xf9","uml":"\xa8","uuml":"\xfc","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')}}]); \ No newline at end of file diff --git a/dbgpt/app/static/web/_next/static/chunks/4744-994a5f89ad175438.js b/dbgpt/app/static/web/_next/static/chunks/4744-a431699d60da1732.js similarity index 74% rename from dbgpt/app/static/web/_next/static/chunks/4744-994a5f89ad175438.js rename to dbgpt/app/static/web/_next/static/chunks/4744-a431699d60da1732.js index 0ff3ff76e..d04da88c4 100644 --- a/dbgpt/app/static/web/_next/static/chunks/4744-994a5f89ad175438.js +++ b/dbgpt/app/static/web/_next/static/chunks/4744-a431699d60da1732.js @@ -1,4 +1,4 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4744],{72137:function(t,e,r){"use strict";r.d(e,{k:function(){return u}});var n=r(90494);function i(t,e,r,n){for(;t.length;){let i=t.shift(),o=r(i);if(o)return!0;e.add(i.id),n(i.id).forEach(r=>{e.has(r.id)||(e.add(r.id),t.push(r))})}return!1}function o(t,e,r,n){let i=r(t);if(i)return!0;for(let i of(e.add(t.id),n(t.id)))if(!e.has(i.id)&&o(i,e,r,n))return!0;return!1}let s=()=>!0;class a{graph;nodeFilter;edgeFilter;cacheEnabled;inEdgesMap=new Map;outEdgesMap=new Map;bothEdgesMap=new Map;allNodesMap=new Map;allEdgesMap=new Map;constructor(t){this.graph=t.graph;let e=t.nodeFilter||s,r=t.edgeFilter||s;this.nodeFilter=e,this.edgeFilter=t=>{let{source:n,target:i}=this.graph.getEdgeDetail(t.id);return!!(e(n)&&e(i))&&r(t,n,i)},"auto"===t.cache?(this.cacheEnabled=!0,this.startAutoCache()):"manual"===t.cache?this.cacheEnabled=!0:this.cacheEnabled=!1}clearCache=()=>{this.inEdgesMap.clear(),this.outEdgesMap.clear(),this.bothEdgesMap.clear(),this.allNodesMap.clear(),this.allEdgesMap.clear()};refreshCache=()=>{this.clearCache(),this.updateCache(this.graph.getAllNodes().map(t=>t.id))};updateCache=t=>{let e=new Set;t.forEach(t=>{let r=this.bothEdgesMap.get(t);if(r&&r.forEach(t=>e.add(t.id)),this.hasNode(t)){let r=this.graph.getRelatedEdges(t,"in").filter(this.edgeFilter),n=this.graph.getRelatedEdges(t,"out").filter(this.edgeFilter),i=Array.from(new Set([...r,...n]));i.forEach(t=>e.add(t.id)),this.inEdgesMap.set(t,r),this.outEdgesMap.set(t,n),this.bothEdgesMap.set(t,i),this.allNodesMap.set(t,this.graph.getNode(t))}else this.inEdgesMap.delete(t),this.outEdgesMap.delete(t),this.bothEdgesMap.delete(t),this.allNodesMap.delete(t)}),e.forEach(t=>{this.hasEdge(t)?this.allEdgesMap.set(t,this.graph.getEdge(t)):this.allEdgesMap.delete(t)})};startAutoCache(){this.refreshCache(),this.graph.on("changed",this.handleGraphChanged)}stopAutoCache(){this.graph.off("changed",this.handleGraphChanged)}handleGraphChanged=t=>{let e=new Set;t.changes.forEach(r=>{switch(r.type){case"NodeAdded":case"NodeRemoved":e.add(r.value.id);break;case"NodeDataUpdated":e.add(r.id);break;case"EdgeAdded":case"EdgeRemoved":e.add(r.value.source),e.add(r.value.target);break;case"EdgeUpdated":("source"===r.propertyName||"target"===r.propertyName)&&(e.add(r.oldValue),e.add(r.newValue));break;case"EdgeDataUpdated":if(t.graph.hasEdge(r.id)){let n=t.graph.getEdge(r.id);e.add(n.source),e.add(n.target)}}}),this.updateCache(e)};checkNodeExistence(t){this.getNode(t)}hasNode(t){if(!this.graph.hasNode(t))return!1;let e=this.graph.getNode(t);return this.nodeFilter(e)}areNeighbors(t,e){return this.checkNodeExistence(t),this.getNeighbors(e).some(e=>e.id===t)}getNode(t){let e=this.graph.getNode(t);if(!this.nodeFilter(e))throw Error("Node not found for id: "+t);return e}getRelatedEdges(t,e){if(this.checkNodeExistence(t),this.cacheEnabled)return"in"===e?this.inEdgesMap.get(t):"out"===e?this.outEdgesMap.get(t):this.bothEdgesMap.get(t);let r=this.graph.getRelatedEdges(t,e);return r.filter(this.edgeFilter)}getDegree(t,e){return this.getRelatedEdges(t,e).length}getSuccessors(t){let e=this.getRelatedEdges(t,"out"),r=e.map(t=>this.getNode(t.target));return Array.from(new Set(r))}getPredecessors(t){let e=this.getRelatedEdges(t,"in"),r=e.map(t=>this.getNode(t.source));return Array.from(new Set(r))}getNeighbors(t){let e=this.getPredecessors(t),r=this.getSuccessors(t);return Array.from(new Set([...e,...r]))}hasEdge(t){if(!this.graph.hasEdge(t))return!1;let e=this.graph.getEdge(t);return this.edgeFilter(e)}getEdge(t){let e=this.graph.getEdge(t);if(!this.edgeFilter(e))throw Error("Edge not found for id: "+t);return e}getEdgeDetail(t){let e=this.getEdge(t);return{edge:e,source:this.getNode(e.source),target:this.getNode(e.target)}}hasTreeStructure(t){return this.graph.hasTreeStructure(t)}getRoots(t){return this.graph.getRoots(t).filter(this.nodeFilter)}getChildren(t,e){return this.checkNodeExistence(t),this.graph.getChildren(t,e).filter(this.nodeFilter)}getParent(t,e){this.checkNodeExistence(t);let r=this.graph.getParent(t,e);return r&&this.nodeFilter(r)?r:null}getAllNodes(){return this.cacheEnabled?Array.from(this.allNodesMap.values()):this.graph.getAllNodes().filter(this.nodeFilter)}getAllEdges(){return this.cacheEnabled?Array.from(this.allEdgesMap.values()):this.graph.getAllEdges().filter(this.edgeFilter)}bfs(t,e,r="out"){let n={in:this.getPredecessors.bind(this),out:this.getSuccessors.bind(this),both:this.getNeighbors.bind(this)}[r];i([this.getNode(t)],new Set,e,n)}dfs(t,e,r="out"){let n={in:this.getPredecessors.bind(this),out:this.getSuccessors.bind(this),both:this.getNeighbors.bind(this)}[r];o(this.getNode(t),new Set,e,n)}}class u extends n.Z{nodeMap=new Map;edgeMap=new Map;inEdgesMap=new Map;outEdgesMap=new Map;bothEdgesMap=new Map;treeIndices=new Map;changes=[];batchCount=0;onChanged=()=>{};constructor(t){if(super(),!t)return;t.nodes&&this.addNodes(t.nodes),t.edges&&this.addEdges(t.edges),t.tree&&this.addTree(t.tree),t.onChanged&&(this.onChanged=t.onChanged)}batch=t=>{this.batchCount+=1,t(),this.batchCount-=1,this.batchCount||this.commit()};commit(){let t=this.changes;this.changes=[];let e={graph:this,changes:t};this.emit("changed",e),this.onChanged(e)}reduceChanges(t){let e=[];return t.forEach(t=>{switch(t.type){case"NodeRemoved":{let r=!1;e=e.filter(e=>{if("NodeAdded"===e.type){let n=e.value.id===t.value.id;return n&&(r=!0),!n}return"NodeDataUpdated"===e.type?e.id!==t.value.id:"TreeStructureChanged"!==e.type||e.nodeId!==t.value.id}),r||e.push(t);break}case"EdgeRemoved":{let r=!1;e=e.filter(e=>{if("EdgeAdded"===e.type){let n=e.value.id===t.value.id;return n&&(r=!0),!n}return"EdgeDataUpdated"!==e.type&&"EdgeUpdated"!==e.type||e.id!==t.value.id}),r||e.push(t);break}case"NodeDataUpdated":case"EdgeDataUpdated":case"EdgeUpdated":{let r=e.findIndex(e=>e.type===t.type&&e.id===t.id&&(void 0===t.propertyName||e.propertyName===t.propertyName)),n=e[r];n?void 0!==t.propertyName?n.newValue=t.newValue:(e.splice(r,1),e.push(t)):e.push(t);break}case"TreeStructureDetached":(e=e.filter(e=>"TreeStructureAttached"===e.type?e.treeKey!==t.treeKey:"TreeStructureChanged"!==e.type||e.treeKey!==t.treeKey)).push(t);break;case"TreeStructureChanged":{let r=e.find(e=>"TreeStructureChanged"===e.type&&e.treeKey===t.treeKey&&e.nodeId===t.nodeId);r?r.newParentId=t.newParentId:e.push(t);break}default:e.push(t)}}),e}checkNodeExistence(t){this.getNode(t)}hasNode(t){return this.nodeMap.has(t)}areNeighbors(t,e){return this.getNeighbors(e).some(e=>e.id===t)}getNode(t){let e=this.nodeMap.get(t);if(!e)throw Error("Node not found for id: "+t);return e}getRelatedEdges(t,e){if(this.checkNodeExistence(t),"in"===e){let e=this.inEdgesMap.get(t);return Array.from(e)}if("out"===e){let e=this.outEdgesMap.get(t);return Array.from(e)}{let e=this.bothEdgesMap.get(t);return Array.from(e)}}getDegree(t,e){return this.getRelatedEdges(t,e).length}getSuccessors(t){let e=this.getRelatedEdges(t,"out"),r=e.map(t=>this.getNode(t.target));return Array.from(new Set(r))}getPredecessors(t){let e=this.getRelatedEdges(t,"in"),r=e.map(t=>this.getNode(t.source));return Array.from(new Set(r))}getNeighbors(t){let e=this.getPredecessors(t),r=this.getSuccessors(t);return Array.from(new Set([...e,...r]))}doAddNode(t){if(this.hasNode(t.id))throw Error("Node already exists: "+t.id);this.nodeMap.set(t.id,t),this.inEdgesMap.set(t.id,new Set),this.outEdgesMap.set(t.id,new Set),this.bothEdgesMap.set(t.id,new Set),this.treeIndices.forEach(e=>{e.childrenMap.set(t.id,new Set)}),this.changes.push({type:"NodeAdded",value:t})}addNodes(t){this.batch(()=>{for(let e of t)this.doAddNode(e)})}addNode(t){this.addNodes([t])}doRemoveNode(t){let e=this.getNode(t),r=this.bothEdgesMap.get(t);r?.forEach(t=>this.doRemoveEdge(t.id)),this.nodeMap.delete(t),this.treeIndices.forEach(r=>{r.childrenMap.get(t)?.forEach(t=>{r.parentMap.delete(t.id)});let n=r.parentMap.get(t);n&&r.childrenMap.get(n.id)?.delete(e),r.parentMap.delete(t),r.childrenMap.delete(t)}),this.bothEdgesMap.delete(t),this.inEdgesMap.delete(t),this.outEdgesMap.delete(t),this.changes.push({type:"NodeRemoved",value:e})}removeNodes(t){this.batch(()=>{t.forEach(t=>this.doRemoveNode(t))})}removeNode(t){this.removeNodes([t])}updateNodeDataProperty(t,e,r){let n=this.getNode(t);this.batch(()=>{let i=n.data[e];n.data[e]=r,this.changes.push({type:"NodeDataUpdated",id:t,propertyName:e,oldValue:i,newValue:r})})}mergeNodeData(t,e){this.batch(()=>{Object.entries(e).forEach(([e,r])=>{this.updateNodeDataProperty(t,e,r)})})}updateNodeData(...t){let e;let r=t[0],n=this.getNode(r);if("string"==typeof t[1]){this.updateNodeDataProperty(r,t[1],t[2]);return}if("function"==typeof t[1]){let r=t[1];e=r(n.data)}else"object"==typeof t[1]&&(e=t[1]);this.batch(()=>{let t=n.data,i=e;n.data=e,this.changes.push({type:"NodeDataUpdated",id:r,oldValue:t,newValue:i})})}checkEdgeExistence(t){if(!this.hasEdge(t))throw Error("Edge not found for id: "+t)}hasEdge(t){return this.edgeMap.has(t)}getEdge(t){return this.checkEdgeExistence(t),this.edgeMap.get(t)}getEdgeDetail(t){let e=this.getEdge(t);return{edge:e,source:this.getNode(e.source),target:this.getNode(e.target)}}doAddEdge(t){if(this.hasEdge(t.id))throw Error("Edge already exists: "+t.id);this.checkNodeExistence(t.source),this.checkNodeExistence(t.target),this.edgeMap.set(t.id,t);let e=this.inEdgesMap.get(t.target),r=this.outEdgesMap.get(t.source),n=this.bothEdgesMap.get(t.source),i=this.bothEdgesMap.get(t.target);e.add(t),r.add(t),n.add(t),i.add(t),this.changes.push({type:"EdgeAdded",value:t})}addEdges(t){this.batch(()=>{for(let e of t)this.doAddEdge(e)})}addEdge(t){this.addEdges([t])}doRemoveEdge(t){let e=this.getEdge(t),r=this.outEdgesMap.get(e.source),n=this.inEdgesMap.get(e.target),i=this.bothEdgesMap.get(e.source),o=this.bothEdgesMap.get(e.target);r.delete(e),n.delete(e),i.delete(e),o.delete(e),this.edgeMap.delete(t),this.changes.push({type:"EdgeRemoved",value:e})}removeEdges(t){this.batch(()=>{t.forEach(t=>this.doRemoveEdge(t))})}removeEdge(t){this.removeEdges([t])}updateEdgeSource(t,e){let r=this.getEdge(t);this.checkNodeExistence(e);let n=r.source;this.outEdgesMap.get(n).delete(r),this.bothEdgesMap.get(n).delete(r),this.outEdgesMap.get(e).add(r),this.bothEdgesMap.get(e).add(r),r.source=e,this.batch(()=>{this.changes.push({type:"EdgeUpdated",id:t,propertyName:"source",oldValue:n,newValue:e})})}updateEdgeTarget(t,e){let r=this.getEdge(t);this.checkNodeExistence(e);let n=r.target;this.inEdgesMap.get(n).delete(r),this.bothEdgesMap.get(n).delete(r),this.inEdgesMap.get(e).add(r),this.bothEdgesMap.get(e).add(r),r.target=e,this.batch(()=>{this.changes.push({type:"EdgeUpdated",id:t,propertyName:"target",oldValue:n,newValue:e})})}updateEdgeDataProperty(t,e,r){let n=this.getEdge(t);this.batch(()=>{let i=n.data[e];n.data[e]=r,this.changes.push({type:"EdgeDataUpdated",id:t,propertyName:e,oldValue:i,newValue:r})})}updateEdgeData(...t){let e;let r=t[0],n=this.getEdge(r);if("string"==typeof t[1]){this.updateEdgeDataProperty(r,t[1],t[2]);return}if("function"==typeof t[1]){let r=t[1];e=r(n.data)}else"object"==typeof t[1]&&(e=t[1]);this.batch(()=>{let t=n.data,i=e;n.data=e,this.changes.push({type:"EdgeDataUpdated",id:r,oldValue:t,newValue:i})})}mergeEdgeData(t,e){this.batch(()=>{Object.entries(e).forEach(([e,r])=>{this.updateEdgeDataProperty(t,e,r)})})}checkTreeExistence(t){if(!this.hasTreeStructure(t))throw Error("Tree structure not found for treeKey: "+t)}hasTreeStructure(t){return this.treeIndices.has(t)}attachTreeStructure(t){this.treeIndices.has(t)||(this.treeIndices.set(t,{parentMap:new Map,childrenMap:new Map}),this.batch(()=>{this.changes.push({type:"TreeStructureAttached",treeKey:t})}))}detachTreeStructure(t){this.checkTreeExistence(t),this.treeIndices.delete(t),this.batch(()=>{this.changes.push({type:"TreeStructureDetached",treeKey:t})})}addTree(t,e){this.batch(()=>{this.attachTreeStructure(e);let r=[],n=Array.isArray(t)?t:[t];for(;n.length;){let t=n.shift();r.push(t),t.children&&n.push(...t.children)}this.addNodes(r),r.forEach(t=>{t.children?.forEach(r=>{this.setParent(r.id,t.id,e)})})})}getRoots(t){return this.checkTreeExistence(t),this.getAllNodes().filter(e=>!this.getParent(e.id,t))}getChildren(t,e){this.checkNodeExistence(t),this.checkTreeExistence(e);let r=this.treeIndices.get(e),n=r.childrenMap.get(t);return Array.from(n||[])}getParent(t,e){this.checkNodeExistence(t),this.checkTreeExistence(e);let r=this.treeIndices.get(e);return r.parentMap.get(t)||null}getAncestors(t,e){let r;let n=[],i=this.getNode(t);for(;r=this.getParent(i.id,e);)n.push(r),i=r;return n}setParent(t,e,r){this.checkTreeExistence(r);let n=this.treeIndices.get(r),i=this.getNode(t),o=n.parentMap.get(t);if(o?.id===e)return;if(void 0===e){o&&n.childrenMap.get(o.id)?.delete(i),n.parentMap.delete(t);return}let s=this.getNode(e);n.parentMap.set(t,s),o&&n.childrenMap.get(o.id)?.delete(i);let a=n.childrenMap.get(s.id);a||(a=new Set,n.childrenMap.set(s.id,a)),a.add(i),this.batch(()=>{this.changes.push({type:"TreeStructureChanged",treeKey:r,nodeId:t,oldParentId:o?.id,newParentId:s.id})})}dfsTree(t,e,r){return o(this.getNode(t),new Set,e,t=>this.getChildren(t,r))}bfsTree(t,e,r){return i([this.getNode(t)],new Set,e,t=>this.getChildren(t,r))}getAllNodes(){return Array.from(this.nodeMap.values())}getAllEdges(){return Array.from(this.edgeMap.values())}bfs(t,e,r="out"){let n={in:this.getPredecessors.bind(this),out:this.getSuccessors.bind(this),both:this.getNeighbors.bind(this)}[r];return i([this.getNode(t)],new Set,e,n)}dfs(t,e,r="out"){let n={in:this.getPredecessors.bind(this),out:this.getSuccessors.bind(this),both:this.getNeighbors.bind(this)}[r];return o(this.getNode(t),new Set,e,n)}clone(){let t=this.getAllNodes().map(t=>({...t,data:{...t.data}})),e=this.getAllEdges().map(t=>({...t,data:{...t.data}})),r=new u({nodes:t,edges:e});return this.treeIndices.forEach(({parentMap:t,childrenMap:e},n)=>{let i=new Map;t.forEach((t,e)=>{i.set(e,r.getNode(t.id))});let o=new Map;e.forEach((t,e)=>{o.set(e,new Set(Array.from(t).map(t=>r.getNode(t.id))))}),r.treeIndices.set(n,{parentMap:i,childrenMap:o})}),r}toJSON(){return JSON.stringify({nodes:this.getAllNodes(),edges:this.getAllEdges()})}createView(t){return new a({graph:this,...t})}}},28104:function(t,e,r){"use strict";r.d(e,{b:function(){return eS}});var n=r(97582),i=r(72137),o=r(61035);let s=(t,e)=>{if("next"!==t&&"prev"!==t)return e},a=t=>{t.prev.next=t.next,t.next.prev=t.prev,delete t.next,delete t.prev};class u{constructor(){let t={};t.prev=t,t.next=t.prev,this.shortcut=t}dequeue(){let t=this.shortcut,e=t.prev;if(e&&e!==t)return a(e),e}enqueue(t){let e=this.shortcut;t.prev&&t.next&&a(t),t.next=e.next,e.next.prev=t,e.next=t,t.prev=e}toString(){let t=[],e=this.shortcut,r=e.prev;for(;r!==e;)t.push(JSON.stringify(r,s)),r=null==r?void 0:r.prev;return`[${t.join(", ")}]`}}class d extends u{}let l=()=>1,h=(t,e)=>{var r;if(t.getAllNodes().length<=1)return[];let n=g(t,e||l),i=c(n.graph,n.buckets,n.zeroIdx);return null===(r=i.map(e=>t.getRelatedEdges(e.v,"out").filter(({target:t})=>t===e.w)))||void 0===r?void 0:r.flat()},c=(t,e,r)=>{let n,i=[],o=e[e.length-1],s=e[0];for(;t.getAllNodes().length;){for(;n=s.dequeue();)f(t,e,r,n);for(;n=o.dequeue();)f(t,e,r,n);if(t.getAllNodes().length){for(let o=e.length-2;o>0;--o)if(n=e[o].dequeue()){i=i.concat(f(t,e,r,n,!0));break}}}return i},f=(t,e,r,n,i)=>{var o,s;let a=[];return t.hasNode(n.v)&&(null===(o=t.getRelatedEdges(n.v,"in"))||void 0===o||o.forEach(n=>{let o=n.data.weight,s=t.getNode(n.source);i&&a.push({v:n.source,w:n.target,in:0,out:0}),void 0===s.data.out&&(s.data.out=0),s.data.out-=o,p(e,r,Object.assign({v:s.id},s.data))}),null===(s=t.getRelatedEdges(n.v,"out"))||void 0===s||s.forEach(n=>{let i=n.data.weight,o=n.target,s=t.getNode(o);void 0===s.data.in&&(s.data.in=0),s.data.in-=i,p(e,r,Object.assign({v:s.id},s.data))}),t.removeNode(n.v)),i?a:void 0},g=(t,e)=>{let r=new i.k,n=0,o=0;t.getAllNodes().forEach(t=>{r.addNode({id:t.id,data:{v:t.id,in:0,out:0}})}),t.getAllEdges().forEach(t=>{let i=r.getRelatedEdges(t.source,"out").find(e=>e.target===t.target),s=(null==e?void 0:e(t))||1;i?r.updateEdgeData(null==i?void 0:i.id,Object.assign(Object.assign({},i.data),{weight:i.data.weight+s})):r.addEdge({id:t.id,source:t.source,target:t.target,data:{weight:s}}),o=Math.max(o,r.getNode(t.source).data.out+=s),n=Math.max(n,r.getNode(t.target).data.in+=s)});let s=[],a=o+n+3;for(let t=0;t{p(s,u,Object.assign({v:t.id},r.getNode(t.id).data))}),{buckets:s,zeroIdx:u,graph:r}},p=(t,e,r)=>{r.out?r.in?t[r.out-r.in+e].enqueue(r):t[t.length-1].enqueue(r):t[0].enqueue(r)},m=(t,e)=>{let r="greedy"===e?h(t,t=>t.data.weight||1):v(t);null==r||r.forEach(e=>{let r=e.data;t.removeEdge(e.id),r.forwardName=e.data.name,r.reversed=!0,t.addEdge({id:e.id,source:e.target,target:e.source,data:Object.assign({},r)})})},v=t=>{let e=[],r={},n={},i=o=>{n[o]||(n[o]=!0,r[o]=!0,t.getRelatedEdges(o,"out").forEach(t=>{r[t.target]?e.push(t):i(t.target)}),delete r[o])};return t.getAllNodes().forEach(t=>i(t.id)),e},y=t=>{t.getAllEdges().forEach(e=>{let r=e.data;if(r.reversed){t.removeEdge(e.id);let n=r.forwardName;delete r.reversed,delete r.forwardName,t.addEdge({id:e.id,source:e.target,target:e.source,data:Object.assign(Object.assign({},r),{forwardName:n})})}})},w=(t,e)=>Number(t)-Number(e),x=(t,e,r,n)=>{let i;do i=`${n}${Math.random()}`;while(t.hasNode(i));return r.dummy=e,t.addNode({id:i,data:r}),i},b=t=>{let e=new i.k;return t.getAllNodes().forEach(t=>{e.addNode(Object.assign({},t))}),t.getAllEdges().forEach(t=>{let r=e.getRelatedEdges(t.source,"out").find(e=>e.target===t.target);r?e.updateEdgeData(null==r?void 0:r.id,Object.assign(Object.assign({},r.data),{weight:r.data.weight+t.data.weight||0,minlen:Math.max(r.data.minlen,t.data.minlen||1)})):e.addEdge({id:t.id,source:t.source,target:t.target,data:{weight:t.data.weight||0,minlen:t.data.minlen||1}})}),e},E=t=>{let e=new i.k;return t.getAllNodes().forEach(r=>{t.getChildren(r.id).length||e.addNode(Object.assign({},r))}),t.getAllEdges().forEach(t=>{e.addEdge(t)}),e},N=(t,e)=>null==t?void 0:t.reduce((t,r,n)=>(t[r]=e[n],t),{}),M=(t,e)=>{let r,n;let i=Number(t.x),o=Number(t.y),s=Number(e.x)-i,a=Number(e.y)-o,u=Number(t.width)/2,d=Number(t.height)/2;return s||a?(Math.abs(a)*u>Math.abs(s)*d?(a<0&&(d=-d),r=d*s/a,n=d):(s<0&&(u=-u),r=u,n=u*a/s),{x:i+r,y:o+n}):{x:0,y:0}},_=t=>{let e=[],r=j(t)+1;for(let t=0;t{let r=t.data.rank;void 0!==r&&e[r]&&e[r].push(t.id)});for(let n=0;nw(t.getNode(e).data.order,t.getNode(r).data.order));return e},k=t=>{let e=t.getAllNodes().filter(t=>void 0!==t.data.rank).map(t=>t.data.rank),r=Math.min(...e);t.getAllNodes().forEach(t=>{t.data.hasOwnProperty("rank")&&r!==1/0&&(t.data.rank-=r)})},A=(t,e=0)=>{let r=t.getAllNodes(),n=r.filter(t=>void 0!==t.data.rank).map(t=>t.data.rank),i=Math.min(...n),o=[];r.forEach(t=>{let e=(t.data.rank||0)-i;o[e]||(o[e]=[]),o[e].push(t.id)});let s=0;for(let r=0;r{let r=t.getNode(e);r&&(r.data.rank=r.data.rank||0,r.data.rank+=s)}))}},S=(t,e,r,n)=>{let i={width:0,height:0};return(0,o.Z)(r)&&(0,o.Z)(n)&&(i.rank=r,i.order=n),x(t,"border",i,e)},j=t=>{let e;return t.getAllNodes().forEach(t=>{let r=t.data.rank;void 0!==r&&(void 0===e||r>e)&&(e=r)}),e||(e=0),e},O=(t,e)=>{let r={lhs:[],rhs:[]};return null==t||t.forEach(t=>{e(t)?r.lhs.push(t):r.rhs.push(t)}),r},R=(t,e)=>t.reduce((t,r)=>{let n=e(t),i=e(r);return n>i?r:t}),z=(t,e,r,n,i,o)=>{!n.includes(e.id)&&(n.push(e.id),r||o.push(e.id),i(e.id).forEach(e=>z(t,e,r,n,i,o)),r&&o.push(e.id))},I=(t,e,r,n)=>{let i=Array.isArray(e)?e:[e],o=e=>n?t.getSuccessors(e):t.getNeighbors(e),s=[],a=[];return i.forEach(e=>{if(t.hasNode(e.id))z(t,e,"post"===r,a,o,s);else throw Error(`Graph does not have node: ${e}`)}),s},C=t=>{let e=r=>{let n=t.getChildren(r),i=t.getNode(r);if((null==n?void 0:n.length)&&n.forEach(t=>e(t.id)),i.data.hasOwnProperty("minRank")){i.data.borderLeft=[],i.data.borderRight=[];for(let e=i.data.minRank,n=i.data.maxRank+1;ee(t.id))},D=(t,e,r,n,i,o)=>{let s=i.data[e][o-1],a=x(t,"border",{rank:o,borderType:e,width:0,height:0},r);i.data[e][o]=a,t.setParent(a,n),s&&t.addEdge({id:`e${Math.random()}`,source:s,target:a,data:{weight:1}})},P=(t,e)=>{let r=e.toLowerCase();("lr"===r||"rl"===r)&&L(t)},T=(t,e)=>{let r=e.toLowerCase();("bt"===r||"rl"===r)&&q(t),("lr"===r||"rl"===r)&&(G(t),L(t))},L=t=>{t.getAllNodes().forEach(t=>{F(t)}),t.getAllEdges().forEach(t=>{F(t)})},F=t=>{let e=t.data.width;t.data.width=t.data.height,t.data.height=e},q=t=>{t.getAllNodes().forEach(t=>{Z(t.data)}),t.getAllEdges().forEach(t=>{var e;null===(e=t.data.points)||void 0===e||e.forEach(t=>Z(t)),t.data.hasOwnProperty("y")&&Z(t.data)})},Z=t=>{(null==t?void 0:t.y)&&(t.y=-t.y)},G=t=>{t.getAllNodes().forEach(t=>{V(t.data)}),t.getAllEdges().forEach(t=>{var e;null===(e=t.data.points)||void 0===e||e.forEach(t=>V(t)),t.data.hasOwnProperty("x")&&V(t.data)})},V=t=>{let e=t.x;t.x=t.y,t.y=e},U=t=>{let e=x(t,"root",{},"_root"),r=B(t),n=Math.max(...Object.values(r));Math.abs(n)===1/0&&(n=1);let i=n-1,o=2*i+1;t.getAllEdges().forEach(t=>{t.data.minlen*=o});let s=W(t)+1;return t.getRoots().forEach(n=>{$(t,e,o,s,i,r,n.id)}),{nestingRoot:e,nodeRankFactor:o}},$=(t,e,r,n,i,o,s)=>{let a=t.getChildren(s);if(!(null==a?void 0:a.length)){s!==e&&t.addEdge({id:`e${Math.random()}`,source:e,target:s,data:{weight:0,minlen:r}});return}let u=S(t,"_bt"),d=S(t,"_bb"),l=t.getNode(s);t.setParent(u,s),l.data.borderTop=u,t.setParent(d,s),l.data.borderBottom=d,null==a||a.forEach(a=>{$(t,e,r,n,i,o,a.id);let l=a.data.borderTop?a.data.borderTop:a.id,h=a.data.borderBottom?a.data.borderBottom:a.id,c=a.data.borderTop?n:2*n,f=l!==h?1:i-o[s]+1;t.addEdge({id:`e${Math.random()}`,source:u,target:l,data:{minlen:f,weight:c,nestingEdge:!0}}),t.addEdge({id:`e${Math.random()}`,source:h,target:d,data:{minlen:f,weight:c,nestingEdge:!0}})}),t.getParent(s)||t.addEdge({id:`e${Math.random()}`,source:e,target:u,data:{weight:0,minlen:i+o[s]}})},B=t=>{let e={},r=(n,i)=>{let o=t.getChildren(n);null==o||o.forEach(t=>r(t.id,i+1)),e[n]=i};return t.getRoots().forEach(t=>r(t.id,1)),e},W=t=>{let e=0;return t.getAllEdges().forEach(t=>{e+=t.data.weight}),e},Y=(t,e)=>{e&&t.removeNode(e),t.getAllEdges().forEach(e=>{e.data.nestingEdge&&t.removeEdge(e.id)})},H="edge-label",J=(t,e)=>{t.getAllEdges().forEach(r=>K(t,r,e))},K=(t,e,r)=>{let n,i,o,s=e.source,a=t.getNode(s).data.rank,u=e.target,d=t.getNode(u).data.rank,l=e.data.labelRank;if(d!==a+1){for(t.removeEdge(e.id),o=0,++a;a{e.forEach(e=>{let r,n=t.getNode(e),{data:i}=n,o=i.originalEdge;o&&t.addEdge(o);let s=e;for(;n.data.dummy;)r=t.getSuccessors(s)[0],t.removeNode(s),o.data.points.push({x:n.data.x,y:n.data.y}),n.data.dummy===H&&(o.data.x=n.data.x,o.data.y=n.data.y,o.data.width=n.data.width,o.data.height=n.data.height),s=r.id,n=t.getNode(s)})};var X=r(59145),tt=function(t){if("object"!=typeof t||null===t)return t;if((0,X.Z)(t)){e=[];for(var e,r=0,n=t.length;r{let n;let i={};null==r||r.forEach(r=>{let o,s,a=t.getParent(r);for(;a;){if((o=t.getParent(a.id))?(s=i[o.id],i[o.id]=a.id):(s=n,n=a.id),s&&s!==a.id){e.hasNode(s)||e.addNode({id:s,data:{}}),e.hasNode(a.id)||e.addNode({id:a.id,data:{}}),e.hasEdge(`e${s}-${a.id}`)||e.addEdge({id:`e${s}-${a.id}`,source:s,target:a.id,data:{}});return}a=o}})},tr=(t,e,r)=>{let n=tn(t),o=new i.k({tree:[{id:n,children:[],data:{}}]});return t.getAllNodes().forEach(i=>{let s=t.getParent(i.id);(i.data.rank===e||i.data.minRank<=e&&e<=i.data.maxRank)&&(o.hasNode(i.id)||o.addNode(Object.assign({},i)),(null==s?void 0:s.id)&&!o.hasNode(null==s?void 0:s.id)&&o.addNode(Object.assign({},s)),o.setParent(i.id,(null==s?void 0:s.id)||n),t.getRelatedEdges(i.id,r).forEach(e=>{let r=e.source===i.id?e.target:e.source;o.hasNode(r)||o.addNode(Object.assign({},t.getNode(r)));let n=o.getRelatedEdges(r,"out").find(({target:t})=>t===i.id),s=void 0!==n?n.data.weight:0;n?o.updateEdgeData(n.id,Object.assign(Object.assign({},n.data),{weight:e.data.weight+s})):o.addEdge({id:e.id,source:r,target:i.id,data:{weight:e.data.weight+s}})}),i.data.hasOwnProperty("minRank")&&o.updateNodeData(i.id,Object.assign(Object.assign({},i.data),{borderLeft:i.data.borderLeft[e],borderRight:i.data.borderRight[e]})))}),o},tn=t=>{let e;for(;t.hasNode(e=`_root${Math.random()}`););return e},ti=(t,e,r)=>{let n=N(r,r.map((t,e)=>e)),i=e.map(e=>{let r=t.getRelatedEdges(e,"out").map(t=>({pos:n[t.target]||0,weight:t.data.weight}));return null==r?void 0:r.sort((t,e)=>t.pos-e.pos)}),o=i.flat().filter(t=>void 0!==t),s=1;for(;s{if(t){let e=t.pos+s;u[e]+=t.weight;let r=0;for(;e>0;)e%2&&(r+=u[e+1]),e=e-1>>1,u[e]+=t.weight;d+=t.weight*r}}),d},to=(t,e)=>{let r=0;for(let n=1;n<(null==e?void 0:e.length);n+=1)r+=ti(t,e[n-1],e[n]);return r},ts=t=>{let e={},r=t.getAllNodes(),n=r.map(t=>{var e;return null!==(e=t.data.rank)&&void 0!==e?e:-1/0}),i=Math.max(...n),o=[];for(let t=0;tt.getNode(e.id).data.rank-t.getNode(r.id).data.rank),a=s.filter(e=>void 0!==t.getNode(e.id).data.fixorder),u=a.sort((e,r)=>t.getNode(e.id).data.fixorder-t.getNode(r.id).data.fixorder);return null==u||u.forEach(r=>{isNaN(t.getNode(r.id).data.rank)||o[t.getNode(r.id).data.rank].push(r.id),e[r.id]=!0}),null==s||s.forEach(r=>t.dfsTree(r.id,t=>{if(e.hasOwnProperty(t.id))return!0;e[t.id]=!0,isNaN(t.data.rank)||o[t.data.rank].push(t.id)})),o},ta=(t,e)=>e.map(e=>{let r=t.getRelatedEdges(e,"in");if(!(null==r?void 0:r.length))return{v:e};let n={sum:0,weight:0};return null==r||r.forEach(e=>{let r=t.getNode(e.source);n.sum+=e.data.weight*r.data.order,n.weight+=e.data.weight}),{v:e,barycenter:n.sum/n.weight,weight:n.weight}}),tu=t=>{var e,r;let n=[],i=t=>e=>{!e.merged&&(void 0===e.barycenter||void 0===t.barycenter||e.barycenter>=t.barycenter)&&td(t,e)},o=e=>r=>{r.in.push(e),0==--r.indegree&&t.push(r)};for(;null==t?void 0:t.length;){let s=t.pop();n.push(s),null===(e=s.in.reverse())||void 0===e||e.forEach(t=>i(s)(t)),null===(r=s.out)||void 0===r||r.forEach(t=>o(s)(t))}let s=n.filter(t=>!t.merged),a=["vs","i","barycenter","weight"];return s.map(t=>{let e={};return null==a||a.forEach(r=>{void 0!==t[r]&&(e[r]=t[r])}),e})},td=(t,e)=>{var r;let n=0,i=0;t.weight&&(n+=t.barycenter*t.weight,i+=t.weight),e.weight&&(n+=e.barycenter*e.weight,i+=e.weight),t.vs=null===(r=e.vs)||void 0===r?void 0:r.concat(t.vs),t.barycenter=n/i,t.weight=i,t.i=Math.min(e.i,t.i),e.merged=!0};var tl=(t,e)=>{var r,n,i;let o={};null==t||t.forEach((t,e)=>{o[t.v]={i:e,indegree:0,in:[],out:[],vs:[t.v]};let r=o[t.v];void 0!==t.barycenter&&(r.barycenter=t.barycenter,r.weight=t.weight)}),null===(r=e.getAllEdges())||void 0===r||r.forEach(t=>{let e=o[t.source],r=o[t.target];void 0!==e&&void 0!==r&&(r.indegree++,e.out.push(o[t.target]))});let s=null===(i=(n=Object.values(o)).filter)||void 0===i?void 0:i.call(n,t=>!t.indegree);return tu(s)};let th=(t,e,r,n)=>{let i=O(t,t=>{let e=t.hasOwnProperty("fixorder")&&!isNaN(t.fixorder);return n?!e&&t.hasOwnProperty("barycenter"):e||t.hasOwnProperty("barycenter")}),o=i.lhs,s=i.rhs.sort((t,e)=>-t.i- -e.i),a=[],u=0,d=0,l=0;null==o||o.sort(tf(!!e,!!r)),l=tc(a,s,l),null==o||o.forEach(t=>{var e;l+=null===(e=t.vs)||void 0===e?void 0:e.length,a.push(t.vs),u+=t.barycenter*t.weight,d+=t.weight,l=tc(a,s,l)});let h={vs:a.flat()};return d&&(h.barycenter=u/d,h.weight=d),h},tc=(t,e,r)=>{let n,i=r;for(;e.length&&(n=e[e.length-1]).i<=i;)e.pop(),null==t||t.push(n.vs),i++;return i},tf=(t,e)=>(r,n)=>{if(void 0!==r.fixorder&&void 0!==n.fixorder)return r.fixorder-n.fixorder;if(r.barycentern.barycenter)return 1;if(e&&void 0!==r.order&&void 0!==n.order){if(r.ordern.order)return 1}return t?n.i-r.i:r.i-n.i},tg=(t,e,r,n,i,o)=>{var s,a,u,d;let l=t.getChildren(e).map(t=>t.id),h=t.getNode(e),c=h?h.data.borderLeft:void 0,f=h?h.data.borderRight:void 0,g={};c&&(l=null==l?void 0:l.filter(t=>t!==c&&t!==f));let p=ta(t,l||[]);null==p||p.forEach(e=>{var i;if(null===(i=t.getChildren(e.v))||void 0===i?void 0:i.length){let i=tg(t,e.v,r,n,o);g[e.v]=i,i.hasOwnProperty("barycenter")&&tm(e,i)}});let m=tl(p,r);tp(m,g),null===(s=m.filter(t=>t.vs.length>0))||void 0===s||s.forEach(e=>{let r=t.getNode(e.vs[0]);r&&(e.fixorder=r.data.fixorder,e.order=r.data.order)});let v=th(m,n,i,o);if(c&&(v.vs=[c,v.vs,f].flat(),null===(a=t.getPredecessors(c))||void 0===a?void 0:a.length)){let e=t.getNode((null===(u=t.getPredecessors(c))||void 0===u?void 0:u[0].id)||""),r=t.getNode((null===(d=t.getPredecessors(f))||void 0===d?void 0:d[0].id)||"");v.hasOwnProperty("barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+e.data.order+r.data.order)/(v.weight+2),v.weight+=2}return v},tp=(t,e)=>{null==t||t.forEach(t=>{var r;let n=null===(r=t.vs)||void 0===r?void 0:r.map(t=>e[t]?e[t].vs:t);t.vs=n.flat()})},tm=(t,e)=>{void 0!==t.barycenter?(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight):(t.barycenter=e.barycenter,t.weight=e.weight)},tv=(t,e)=>{let r;let n=j(t),i=[],o=[];for(let t=1;t-1;t--)o.push(t);let s=ty(t,i,"in"),a=ty(t,o,"out"),u=ts(t);tx(t,u);let d=Number.POSITIVE_INFINITY;for(let n=0,i=0;i<4;++n,++i){tw(n%2?s:a,n%4>=2,!1,e),u=_(t);let o=to(t,u);o=2,!0,e),u=_(t);let o=to(t,u);oe.map(e=>tr(t,e,r)),tw=(t,e,r,n)=>{let o=new i.k;null==t||t.forEach(t=>{var i;let s=t.getRoots()[0].id,a=tg(t,s,o,e,r,n);for(let e=0;e<(null===(i=a.vs)||void 0===i?void 0:i.length);e++){let r=t.getNode(a.vs[e]);r&&(r.data.order=e)}te(t,o,a.vs)})},tx=(t,e)=>{null==e||e.forEach(e=>{null==e||e.forEach((e,r)=>{t.getNode(e).data.order=r})})},tb=(t,e)=>{let r=t.getAllNodes().filter(e=>{var r;return!(null===(r=t.getChildren(e.id))||void 0===r?void 0:r.length)}),n=r.map(t=>t.data.rank),i=Math.max(...n),o=[];for(let t=0;t{let r=t.getNode(e);r&&!r.data.dummy&&(isNaN(r.data.rank)||(r.data.fixorder=o[r.data.rank].length,o[r.data.rank].push(e)))})},tE=t=>{let e={},r=0,n=i=>{let o=r;t.getChildren(i).forEach(t=>n(t.id)),e[i]={low:o,lim:r++}};return t.getRoots().forEach(t=>n(t.id)),e},tN=(t,e,r,n)=>{var i,o;let s,a;let u=[],d=[],l=Math.min(e[r].low,e[n].low),h=Math.max(e[r].lim,e[n].lim);s=r;do u.push(s=null===(i=t.getParent(s))||void 0===i?void 0:i.id);while(s&&(e[s].low>l||h>e[s].lim));for(a=s,s=n;s&&s!==a;)d.push(s),s=null===(o=t.getParent(s))||void 0===o?void 0:o.id;return{lca:a,path:u.concat(d.reverse())}},tM=(t,e)=>{let r=tE(t);e.forEach(e=>{var n,i;let o=e,s=t.getNode(o),a=s.data.originalEdge;if(!a)return;let u=tN(t,r,a.source,a.target),d=u.path,l=u.lca,h=0,c=d[0],f=!0;for(;o!==a.target;){if(s=t.getNode(o),f){for(;c!==l&&(null===(n=t.getNode(c))||void 0===n?void 0:n.data.maxRank){let r={};return(null==e?void 0:e.length)&&e.reduce((e,n)=>{let i=0,o=0,s=e.length,a=null==n?void 0:n[(null==n?void 0:n.length)-1];return null==n||n.forEach((e,u)=>{var d;let l=tA(t,e),h=l?t.getNode(l.id).data.order:s;(l||e===a)&&(null===(d=n.slice(o,u+1))||void 0===d||d.forEach(e=>{var n;null===(n=t.getPredecessors(e))||void 0===n||n.forEach(n=>{var o;let s=t.getNode(n.id),a=s.data.order;(a{let r={};function n(e,n){let i=JSON.stringify(e.slice(1));n.get(i)||(!function(e,n,i,o,s){var a,u;let d;for(let l=n;l{let n=t.getNode(e.id);n.data.dummy&&(n.data.orders)&&tS(r,e.id,d)}))}(...e),n.set(i,!0))}return(null==e?void 0:e.length)&&e.reduce((e,r)=>{let i,o=-1,s=0,a=new Map;return null==r||r.forEach((u,d)=>{var l;if((null===(l=t.getNode(u))||void 0===l?void 0:l.data.dummy)==="border"){let e=t.getPredecessors(u)||[];e.length&&(n([r,s,d,o,i=t.getNode(e[0].id).data.order],a),s=d,o=i)}n([r,s,r.length,i,e.length],a)}),r}),r},tA=(t,e)=>{var r,n;if(null===(r=t.getNode(e))||void 0===r?void 0:r.data.dummy)return null===(n=t.getPredecessors(e))||void 0===n?void 0:n.find(e=>t.getNode(e.id).data.dummy)},tS=(t,e,r)=>{let n=e,i=r;if(n>i){let t=n;n=i,i=t}let o=t[n];o||(t[n]=o={}),o[i]=!0},tj=(t,e,r)=>{let n=e,i=r;return n>i&&(n=i,i=e),!!t[n]},tO=(t,e,r,n)=>{let i={},o={},s={};return null==e||e.forEach(t=>{null==t||t.forEach((t,e)=>{i[t]=t,o[t]=t,s[t]=e})}),null==e||e.forEach(t=>{let e=-1;null==t||t.forEach(t=>{let a=n(t).map(t=>t.id);if(a.length){a=a.sort((t,e)=>s[t]-s[e]);let n=(a.length-1)/2;for(let u=Math.floor(n),d=Math.ceil(n);u<=d;++u){let n=a[u];o[t]===t&&e{var a;let u={},d=tz(t,e,r,i,o,s),l=s?"borderLeft":"borderRight",h=(t,e)=>{let r=d.getAllNodes(),n=r.pop(),i={};for(;n;)i[n.id]?t(n.id):(i[n.id]=!0,r.push(n),r=r.concat(e(n.id))),n=r.pop()};return h(t=>{u[t]=(d.getRelatedEdges(t,"in")||[]).reduce((t,e)=>Math.max(t,(u[e.source]||0)+e.data.weight),0)},d.getPredecessors.bind(d)),h(e=>{let r=(d.getRelatedEdges(e,"out")||[]).reduce((t,e)=>Math.min(t,(u[e.target]||0)-e.data.weight),Number.POSITIVE_INFINITY),n=t.getNode(e);r!==Number.POSITIVE_INFINITY&&n.data.borderType!==l&&(u[e]=Math.max(u[e],r))},d.getSuccessors.bind(d)),null===(a=Object.values(n))||void 0===a||a.forEach(t=>{u[t]=u[r[t]]}),u},tz=(t,e,r,n,o,s)=>{let a=new i.k,u=tD(n,o,s);return null==e||e.forEach(e=>{let n;null==e||e.forEach(e=>{let i=r[e];if(a.hasNode(i)||a.addNode({id:i,data:{}}),n){let o=r[n],s=a.getRelatedEdges(o,"out").find(t=>t.target===i);s?a.updateEdgeData(s.id,Object.assign(Object.assign({},s.data),{weight:Math.max(u(t,e,n),s.data.weight||0)})):a.addEdge({id:`e${Math.random()}`,source:o,target:i,data:{weight:Math.max(u(t,e,n),0)}})}n=e})}),a},tI=(t,e)=>R(Object.values(e),e=>{var r;let n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return null===(r=Object.keys(e))||void 0===r||r.forEach(r=>{let o=e[r],s=tP(t,r)/2;n=Math.max(o+s,n),i=Math.min(o-s,i)}),n-i}),tC=(t,e)=>{let r={};return Object.keys(t.ul).forEach(n=>{if(e)r[n]=t[e.toLowerCase()][n];else{let e=Object.values(t).map(t=>t[n]);r[n]=(e[0]+e[1])/2}}),r},tD=(t,e,r)=>(n,i,o)=>{let s;let a=n.getNode(i),u=n.getNode(o),d=0;if(s=0+a.data.width/2,a.data.hasOwnProperty("labelpos"))switch((a.data.labelpos||"").toLowerCase()){case"l":d=-a.data.width/2;break;case"r":d=a.data.width/2}if(d&&(s+=r?d:-d),d=0,s+=(a.data.dummy?e:t)/2+(u.data.dummy?e:t)/2+u.data.width/2,u.data.labelpos)switch((u.data.labelpos||"").toLowerCase()){case"l":d=u.data.width/2;break;case"r":d=-u.data.width/2}return d&&(s+=r?d:-d),d=0,s},tP=(t,e)=>t.getNode(e).data.width||0,tT=(t,e)=>{let{ranksep:r=0}=e||{},n=_(t),i=0;null==n||n.forEach(e=>{let n=e.map(e=>t.getNode(e).data.height),o=Math.max(...n,0);null==e||e.forEach(e=>{t.getNode(e).data.y=i+o/2}),i+=o+r})},tL=(t,e)=>{let{align:r,nodesep:n=0,edgesep:i=0}=e||{},o=_(t),s=Object.assign(t_(t,o),tk(t,o)),a={},u=[];["u","d"].forEach(e=>{u="u"===e?o:Object.values(o).reverse(),["l","r"].forEach(r=>{"r"===r&&(u=u.map(t=>Object.values(t).reverse()));let o=("u"===e?t.getPredecessors:t.getSuccessors).bind(t),d=tO(t,u,s,o),l=tR(t,u,d.root,d.align,n,i,"r"===r);"r"===r&&Object.keys(l).forEach(t=>l[t]=-l[t]),a[e+r]=l})});let d=tI(t,a);return d&&function(t,e){let r=Object.values(e),n=Math.min(...r),i=Math.max(...r);["u","d"].forEach(r=>{["l","r"].forEach(o=>{let s;let a=r+o,u=t[a];if(u===e)return;let d=Object.values(u);(s="l"===o?n-Math.min(...d):i-Math.max(...d))&&(t[a]={},Object.keys(u).forEach(e=>{t[a][e]=u[e]+s}))})})}(a,d),tC(a,r)},tF=(t,e)=>{var r;let n=E(t);tT(n,e);let i=tL(n,e);null===(r=Object.keys(i))||void 0===r||r.forEach(t=>{n.getNode(t).data.x=i[t]})},tq=t=>{let e={},r=n=>{var i;let o;let s=t.getNode(n);return s?e[n]?s.data.rank:(e[n]=!0,null===(i=t.getRelatedEdges(n,"out"))||void 0===i||i.forEach(t=>{let e=r(t.target),n=t.data.minlen,i=e-n;i&&(void 0===o||i0===t.getRelatedEdges(e.id,"in").length).forEach(t=>r(t.id))},tZ=t=>{let e;let r={},n=i=>{var o;let s;let a=t.getNode(i);return a?r[i]?a.data.rank:(r[i]=!0,null===(o=t.getRelatedEdges(i,"out"))||void 0===o||o.forEach(t=>{let e=n(t.target),r=t.data.minlen,i=e-r;i&&(void 0===s||i0===t.getRelatedEdges(e.id,"in").length).forEach(t=>{t&&n(t.id)}),void 0===e&&(e=0);let i={},o=(e,r)=>{var n;let s=t.getNode(e),a=isNaN(s.data.layer)?r:s.data.layer;(void 0===s.data.rank||s.data.rank{o(t.target,a+t.data.minlen)}))};t.getAllNodes().forEach(t=>{let r=t.data;r&&(isNaN(r.layer)?r.rank-=e:o(t.id,r.layer))})},tG=(t,e)=>t.getNode(e.target).data.rank-t.getNode(e.source).data.rank-e.data.minlen,tV=t=>{let e,r;let n=new i.k({tree:[]}),o=t.getAllNodes()[0],s=t.getAllNodes().length;for(n.addNode(o);tU(n,t){let r=n=>{e.getRelatedEdges(n,"both").forEach(i=>{let o=i.source,s=n===o?i.target:o;t.hasNode(s)||tG(e,i)||(t.addNode({id:s,data:{}}),t.addEdge({id:i.id,source:n,target:s,data:{}}),r(s))})};return t.getAllNodes().forEach(t=>r(t.id)),t.getAllNodes().length},t$=t=>{let e,r;let n=new i.k({tree:[]}),o=t.getAllNodes()[0],s=t.getAllNodes().length;for(n.addNode(o);tB(n,t){let r=n=>{var i;null===(i=e.getRelatedEdges(n,"both"))||void 0===i||i.forEach(i=>{let o=i.source,s=n===o?i.target:o;t.hasNode(s)||void 0===e.getNode(s).data.layer&&tG(e,i)||(t.addNode({id:s,data:{}}),t.addEdge({id:i.id,source:n,target:s,data:{}}),r(s))})};return t.getAllNodes().forEach(t=>r(t.id)),t.getAllNodes().length},tW=(t,e)=>R(e.getAllEdges(),r=>t.hasNode(r.source)!==t.hasNode(r.target)?tG(e,r):1/0),tY=(t,e,r)=>{t.getAllNodes().forEach(t=>{let n=e.getNode(t.id);n.data.rank||(n.data.rank=0),n.data.rank+=r})},tH=t=>{let e,r;let n=b(t);tq(n);let i=tV(n);for(tX(i),tJ(i,n);e=t1(i);)r=t2(i,n,e),t3(i,n,e,r)},tJ=(t,e)=>{let r=I(t,t.getAllNodes(),"post",!1);(r=r.slice(0,(null==r?void 0:r.length)-1)).forEach(r=>{tK(t,e,r)})},tK=(t,e,r)=>{let n=t.getNode(r),i=n.data.parent,o=t.getRelatedEdges(r,"both").find(t=>t.target===i||t.source===i);o.data.cutvalue=tQ(t,e,r)},tQ=(t,e,r)=>{let n=t.getNode(r),i=n.data.parent,o=!0,s=e.getRelatedEdges(r,"out").find(t=>t.target===i),a=0;return s||(o=!1,s=e.getRelatedEdges(i,"out").find(t=>t.target===r)),a=s.data.weight,e.getRelatedEdges(r,"both").forEach(e=>{let n=e.source===r,s=n?e.target:e.source;if(s!==i){let i=n===o,u=e.data.weight;if(a+=i?u:-u,t6(t,r,s)){let e=t.getRelatedEdges(r,"both").find(t=>t.source===s||t.target===s).data.cutvalue;a+=i?-e:e}}}),a},tX=(t,e=t.getAllNodes()[0].id)=>{t0(t,{},1,e)},t0=(t,e,r,n,i)=>{var o;let s=r,a=t.getNode(n);return e[n]=!0,null===(o=t.getNeighbors(n))||void 0===o||o.forEach(r=>{e[r.id]||(s=t0(t,e,s,r.id,n))}),a.data.low=r,a.data.lim=s++,i?a.data.parent=i:delete a.data.parent,s},t1=t=>t.getAllEdges().find(t=>t.data.cutvalue<0),t2=(t,e,r)=>{let n=r.source,i=r.target;e.getRelatedEdges(n,"out").find(t=>t.target===i)||(n=r.target,i=r.source);let o=t.getNode(n),s=t.getNode(i),a=o,u=!1;o.data.lim>s.data.lim&&(a=s,u=!0);let d=e.getAllEdges().filter(e=>u===t4(t.getNode(e.source),a)&&u!==t4(t.getNode(e.target),a));return R(d,t=>tG(e,t))},t3=(t,e,r,n)=>{let i=t.getRelatedEdges(r.source,"both").find(t=>t.source===r.target||t.target===r.target);i&&t.removeEdge(i.id),t.addEdge({id:`e${Math.random()}`,source:n.source,target:n.target,data:{}}),tX(t),tJ(t,e),t8(t,e)},t8=(t,e)=>{let r=t.getAllNodes().find(t=>!t.data.parent),n=I(t,r,"pre",!1);(n=n.slice(1)).forEach(r=>{let n=t.getNode(r).data.parent,i=e.getRelatedEdges(r,"out").find(t=>t.target===n),o=!1;!i&&e.hasNode(n)&&(i=e.getRelatedEdges(n,"out").find(t=>t.target===r),o=!0),e.getNode(r).data.rank=(e.hasNode(n)&&e.getNode(n).data.rank||0)+(o?null==i?void 0:i.data.minlen:-(null==i?void 0:i.data.minlen))})},t6=(t,e,r)=>t.getRelatedEdges(e,"both").find(t=>t.source===r||t.target===r),t4=(t,e)=>e.data.low<=t.data.lim&&t.data.lim<=e.data.lim,t7=(t,e)=>{switch(e){case"network-simplex":et(t);break;case"tight-tree":default:t9(t);break;case"longest-path":t5(t)}},t5=tq,t9=t=>{tZ(t),t$(t)},et=t=>{tH(t)},ee=(t,e)=>{let r;let{edgeLabelSpace:n,keepNodeOrder:i,prevGraph:o,rankdir:s,ranksep:a}=e;!i&&o&&en(t,o);let u=el(t);n&&(e.ranksep=eh(u,{rankdir:s,ranksep:a}));try{r=er(u,e)}catch(t){if("Not possible to find intersection inside of the rectangle"===t.message){console.error("The following error may be caused by improper layer setting, please make sure your manual layer setting does not violate the graph's structure:\n",t);return}throw t}return ei(t,u),r},er=(t,e)=>{let{acyclicer:r,ranker:n,rankdir:i="tb",nodeOrder:o,keepNodeOrder:s,align:a,nodesep:u=50,edgesep:d=20,ranksep:l=50}=e;ex(t),m(t,r);let{nestingRoot:h,nodeRankFactor:c}=U(t);t7(E(t),n),ec(t),A(t,c),Y(t,h),k(t),ef(t),eg(t);let f=[];J(t,f),tM(t,f),C(t),s&&tb(t,o),tv(t,s),eb(t),P(t,i),tF(t,{align:a,nodesep:u,edgesep:d,ranksep:l}),eE(t),ew(t),Q(t,f),ev(t),T(t,i);let{width:g,height:p}=ep(t);return em(t),ey(t),y(t),{width:g,height:p}},en=(t,e)=>{t.getAllNodes().forEach(r=>{let n=t.getNode(r.id);if(e.hasNode(r.id)){let t=e.getNode(r.id);n.data.fixorder=t.data._order,delete t.data._order}else delete n.data.fixorder})},ei=(t,e)=>{t.getAllNodes().forEach(r=>{var n;let i=t.getNode(r.id);if(i){let t=e.getNode(r.id);i.data.x=t.data.x,i.data.y=t.data.y,i.data._order=t.data.order,i.data._rank=t.data.rank,(null===(n=e.getChildren(r.id))||void 0===n?void 0:n.length)&&(i.data.width=t.data.width,i.data.height=t.data.height)}}),t.getAllEdges().forEach(r=>{let n=t.getEdge(r.id),i=e.getEdge(r.id);n.data.points=i?i.data.points:[],i&&i.data.hasOwnProperty("x")&&(n.data.x=i.data.x,n.data.y=i.data.y)})},eo=["width","height","layer","fixorder"],es={width:0,height:0},ea=["minlen","weight","width","height","labeloffset"],eu={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},ed=["labelpos"],el=t=>{let e=new i.k({tree:[]});return t.getAllNodes().forEach(r=>{let n=eM(t.getNode(r.id).data),i=Object.assign(Object.assign({},es),n),o=eN(i,eo);e.hasNode(r.id)||e.addNode({id:r.id,data:Object.assign({},o)});let s=t.hasTreeStructure("combo")?t.getParent(r.id,"combo"):t.getParent(r.id);null!=s&&(e.hasNode(s.id)||e.addNode(Object.assign({},s)),e.setParent(r.id,s.id))}),t.getAllEdges().forEach(r=>{let n=eM(t.getEdge(r.id).data),i={};null==ed||ed.forEach(t=>{void 0!==n[t]&&(i[t]=n[t])}),e.addEdge({id:r.id,source:r.source,target:r.target,data:Object.assign({},eu,eN(n,ea),i)})}),e},eh=(t,e)=>{let{ranksep:r=0,rankdir:n}=e;return t.getAllNodes().forEach(t=>{isNaN(t.data.layer)||t.data.layer||(t.data.layer=0)}),t.getAllEdges().forEach(t=>{var e;t.data.minlen*=2,(null===(e=t.data.labelpos)||void 0===e?void 0:e.toLowerCase())!=="c"&&("TB"===n||"BT"===n?t.data.width+=t.data.labeloffset:t.data.height+=t.data.labeloffset)}),r/2},ec=t=>{t.getAllEdges().forEach(e=>{if(e.data.width&&e.data.height){let r=t.getNode(e.source),n=t.getNode(e.target),i={e,rank:(n.data.rank-r.data.rank)/2+r.data.rank};x(t,"edge-proxy",i,"_ep")}})},ef=t=>{let e=0;return t.getAllNodes().forEach(r=>{var n,i;r.data.borderTop&&(r.data.minRank=null===(n=t.getNode(r.data.borderTop))||void 0===n?void 0:n.data.rank,r.data.maxRank=null===(i=t.getNode(r.data.borderBottom))||void 0===i?void 0:i.data.rank,e=Math.max(e,r.data.maxRank||-1/0))}),e},eg=t=>{t.getAllNodes().forEach(e=>{"edge-proxy"===e.data.dummy&&(t.getEdge(e.data.e.id).data.labelRank=e.data.rank,t.removeNode(e.id))})},ep=(t,e)=>{let r,n;let i=0,o=0,{marginx:s=0,marginy:a=0}=e||{},u=t=>{if(!t.data)return;let e=t.data.x,s=t.data.y,a=t.data.width,u=t.data.height;isNaN(e)||isNaN(a)||(void 0===r&&(r=e-a/2),r=Math.min(r,e-a/2),i=Math.max(i,e+a/2)),isNaN(s)||isNaN(u)||(void 0===n&&(n=s-u/2),n=Math.min(n,s-u/2),o=Math.max(o,s+u/2))};return t.getAllNodes().forEach(t=>{u(t)}),t.getAllEdges().forEach(t=>{(null==t?void 0:t.data.hasOwnProperty("x"))&&u(t)}),r-=s,n-=a,t.getAllNodes().forEach(t=>{t.data.x-=r,t.data.y-=n}),t.getAllEdges().forEach(t=>{var e;null===(e=t.data.points)||void 0===e||e.forEach(t=>{t.x-=r,t.y-=n}),t.data.hasOwnProperty("x")&&(t.data.x-=r),t.data.hasOwnProperty("y")&&(t.data.y-=n)}),{width:i-r+s,height:o-n+a}},em=t=>{t.getAllEdges().forEach(e=>{let r,n;let i=t.getNode(e.source),o=t.getNode(e.target);e.data.points?(r=e.data.points[0],n=e.data.points[e.data.points.length-1]):(e.data.points=[],r={x:o.data.x,y:o.data.y},n={x:i.data.x,y:i.data.y}),e.data.points.unshift(M(i.data,r)),e.data.points.push(M(o.data,n))})},ev=t=>{t.getAllEdges().forEach(t=>{if(t.data.hasOwnProperty("x"))switch(("l"===t.data.labelpos||"r"===t.data.labelpos)&&(t.data.width-=t.data.labeloffset),t.data.labelpos){case"l":t.data.x-=t.data.width/2+t.data.labeloffset;break;case"r":t.data.x+=t.data.width/2+t.data.labeloffset}})},ey=t=>{t.getAllEdges().forEach(t=>{var e;t.data.reversed&&(null===(e=t.data.points)||void 0===e||e.reverse())})},ew=t=>{t.getAllNodes().forEach(e=>{var r,n,i;if(null===(r=t.getChildren(e.id))||void 0===r?void 0:r.length){let r=t.getNode(e.id),o=t.getNode(r.data.borderTop),s=t.getNode(r.data.borderBottom),a=t.getNode(r.data.borderLeft[(null===(n=r.data.borderLeft)||void 0===n?void 0:n.length)-1]),u=t.getNode(r.data.borderRight[(null===(i=r.data.borderRight)||void 0===i?void 0:i.length)-1]);r.data.width=Math.abs((null==u?void 0:u.data.x)-(null==a?void 0:a.data.x))||10,r.data.height=Math.abs((null==s?void 0:s.data.y)-(null==o?void 0:o.data.y))||10,r.data.x=((null==a?void 0:a.data.x)||0)+r.data.width/2,r.data.y=((null==o?void 0:o.data.y)||0)+r.data.height/2}}),t.getAllNodes().forEach(e=>{"border"===e.data.dummy&&t.removeNode(e.id)})},ex=t=>{t.getAllEdges().forEach(e=>{if(e.source===e.target){let r=t.getNode(e.source);r.data.selfEdges||(r.data.selfEdges=[]),r.data.selfEdges.push(e),t.removeEdge(e.id)}})},eb=t=>{let e=_(t);null==e||e.forEach(e=>{let r=0;null==e||e.forEach((e,n)=>{var i;let o=t.getNode(e);o.data.order=n+r,null===(i=o.data.selfEdges)||void 0===i||i.forEach(e=>{x(t,"selfedge",{width:e.data.width,height:e.data.height,rank:o.data.rank,order:n+ ++r,e:e},"_se")}),delete o.data.selfEdges})})},eE=t=>{t.getAllNodes().forEach(e=>{let r=t.getNode(e.id);if("selfedge"===r.data.dummy){let n=t.getNode(r.data.e.source),i=n.data.x+n.data.width/2,o=n.data.y,s=r.data.x-i,a=n.data.height/2;t.hasEdge(r.data.e.id)?t.updateEdgeData(r.data.e.id,r.data.e.data):t.addEdge({id:r.data.e.id,source:r.data.e.source,target:r.data.e.target,data:r.data.e.data}),t.removeNode(e.id),r.data.e.data.points=[{x:i+2*s/3,y:o-a},{x:i+5*s/6,y:o-a},{y:o,x:i+s},{x:i+5*s/6,y:o+a},{x:i+2*s/3,y:o+a}],r.data.e.data.x=r.data.x,r.data.e.data.y=r.data.y}})},eN=(t,e)=>{let r={};return null==e||e.forEach(e=>{void 0!==t[e]&&(r[e]=+t[e])}),r},eM=(t={})=>{let e={};return Object.keys(t).forEach(r=>{e[r.toLowerCase()]=t[r]}),e};var e_=r(78732),ek=r(98130);let eA={rankdir:"TB",nodesep:50,ranksep:50,edgeLabelSpace:!0,ranker:"tight-tree",controlPoints:!1,radial:!1,focusNode:null};class eS{constructor(t={}){this.options=t,this.id="antv-dagre",this.options=Object.assign(Object.assign({},eA),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,function*(){return this.genericDagreLayout(!1,t,e)})}assign(t,e){return(0,n.mG)(this,void 0,void 0,function*(){yield this.genericDagreLayout(!0,t,e)})}genericDagreLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,function*(){let n;let s=Object.assign(Object.assign({},this.options),r),{nodeSize:a,align:u,rankdir:d="TB",ranksep:l,nodesep:h,ranksepFunc:c,nodesepFunc:f,edgeLabelSpace:g,ranker:p,nodeOrder:m,begin:v,controlPoints:y,radial:w,sortByCombo:x,preset:b}=s,E=new i.k({tree:[]}),N=(0,e_.jE)(l||50,c),M=(0,e_.jE)(h||50,f),_=M,k=N;("LR"===d||"RL"===d)&&(_=N,k=M);let A=(0,e_.gl)(a,void 0),S=e.getAllNodes(),j=e.getAllEdges();S.forEach(t=>{let e=A(t),r=k(t),n=_(t),i=e+2*n,s=e+2*r,a=t.data.layer;(0,o.Z)(a)?E.addNode({id:t.id,data:{width:i,height:s,layer:a}}):E.addNode({id:t.id,data:{width:i,height:s}})}),x&&(E.attachTreeStructure("combo"),S.forEach(t=>{let{parentId:e}=t.data;void 0!==e&&E.hasNode(e)&&E.setParent(t.id,e,"combo")})),j.forEach(t=>{E.addEdge({id:t.id,source:t.source,target:t.target,data:{weight:t.data.weight||1}})}),(null==b?void 0:b.length)&&(n=new i.k({nodes:b})),ee(E,{prevGraph:n,edgeLabelSpace:g,keepNodeOrder:!!m,nodeOrder:m||[],acyclicer:"greedy",ranker:p,rankdir:d,nodesep:h,align:u});let O=[0,0];if(v){let t=1/0,e=1/0;E.getAllNodes().forEach(r=>{t>r.data.x&&(t=r.data.x),e>r.data.y&&(e=r.data.y)}),E.getAllEdges().forEach(r=>{var n;null===(n=r.data.points)||void 0===n||n.forEach(r=>{t>r.x&&(t=r.x),e>r.y&&(e=r.y)})}),O[0]=v[0]-t,O[1]=v[1]-e}let R="LR"===d||"RL"===d;if(w);else{let t=new Set,e="BT"===d||"RL"===d;E.getAllNodes().forEach(e=>{e.data.x=e.data.x+O[0],e.data.y=e.data.y+O[1],t.add(R?e.data.x:e.data.y)});let r=Array.from(t).sort(e?(t,e)=>e-t:(t,e)=>t-e),n=R?(t,e)=>t.x!==e.x:(t,e)=>t.y!==e.y,i=R?(t,e,r)=>{let n=Math.max(e.y,r.y),i=Math.min(e.y,r.y);return t.filter(t=>t.y<=n&&t.y>=i)}:(t,e,r)=>{let n=Math.max(e.x,r.x),i=Math.min(e.x,r.x);return t.filter(t=>t.x<=n&&t.x>=i)};E.getAllEdges().forEach((t,e)=>{var o;g&&y&&"loop"!==t.data.type&&(t.data.controlPoints=ej(null===(o=t.data.points)||void 0===o?void 0:o.map(({x:t,y:e})=>({x:t+O[0],y:e+O[1]})),E.getNode(t.source),E.getNode(t.target),r,R,n,i))})}let z=[];z=E.getAllNodes().map(t=>(0,ek.u)(t));let I=E.getAllEdges();t&&(z.forEach(t=>{e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y})}),I.forEach(t=>{e.mergeEdgeData(t.id,{controlPoints:t.data.controlPoints})}));let C={nodes:z,edges:I};return C})}}let ej=(t,e,r,n,i,o,s)=>{let a=(null==t?void 0:t.slice(1,t.length-1))||[];if(e&&r){let{x:t,y:u}=e.data,{x:d,y:l}=r.data;if(i&&(t=e.data.y,u=e.data.x,d=r.data.y,l=r.data.x),l!==u&&t!==d){let h=n.indexOf(u),c=n[h+1];if(c){let t=a[0],e=i?{x:(u+c)/2,y:(null==t?void 0:t.y)||d}:{x:(null==t?void 0:t.x)||d,y:(u+c)/2};(!t||o(t,e))&&a.unshift(e)}let f=n.indexOf(l),g=Math.abs(f-h);if(1===g)(a=s(a,e.data,r.data)).length||a.push(i?{x:(u+l)/2,y:t}:{x:t,y:(u+l)/2});else if(g>1){let e=n[f-1];if(e){let r=a[a.length-1],n=i?{x:(l+e)/2,y:(null==r?void 0:r.y)||d}:{x:(null==r?void 0:r.x)||t,y:(l+e)/2};(!r||o(r,n))&&a.push(n)}}}}return a}},63795:function(t,e,r){"use strict";r.d(e,{S:function(){return u}});var n=r(97582),i=r(78732),o=r(98130),s=r(20464);let a={radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1};class u{constructor(t={}){this.options=t,this.id="circular",this.options=Object.assign(Object.assign({},a),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,function*(){return this.genericCircularLayout(!1,t,e)})}assign(t,e){return(0,n.mG)(this,void 0,void 0,function*(){yield this.genericCircularLayout(!0,t,e)})}genericCircularLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,function*(){let n=Object.assign(Object.assign({},this.options),r),{width:a,height:u,center:h,divisions:c,startAngle:f=0,endAngle:g=2*Math.PI,angleRatio:p,ordering:m,clockwise:v,nodeSpacing:y,nodeSize:w}=n,x=e.getAllNodes(),b=e.getAllEdges(),[E,N,M]=l(a,u,h),_=null==x?void 0:x.length;if(!_||1===_)return(0,s.P)(e,t,M);let{radius:k,startRadius:A,endRadius:S}=n;if(y){let t=(0,i.jE)(10,y),e=(0,i.tO)(10,w),r=-1/0;x.forEach(t=>{let n=e(t);r{0===i?n+=r||10:n+=(t(e)||0)+(r||10)}),k=n/(2*Math.PI)}else k||A||S?!A&&S?A=S:A&&!S&&(S=A):k=Math.min(N,E)/2;let j=(g-f)/_*p,O=[];O="topology"===m?d(e,x):"topology-directed"===m?d(e,x,!0):"degree"===m?function(t,e){let r=[];return e.forEach((t,e)=>{r.push((0,o.u)(t))}),r.sort((e,r)=>t.getDegree(e.id,"both")-t.getDegree(r.id,"both")),r}(e,x):x.map(t=>(0,o.u)(t));let R=Math.ceil(_/c);for(let t=0;t<_;++t){let e=k;e||null===A||null===S||(e=A+t*(S-A)/(_-1)),e||(e=10+100*t/(_-1));let r=f+t%R*j+2*Math.PI/c*Math.floor(t/R);v||(r=g-t%R*j-2*Math.PI/c*Math.floor(t/R)),O[t].data.x=M[0]+Math.cos(r)*e,O[t].data.y=M[1]+Math.sin(r)*e}t&&O.forEach(t=>{e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y})});let z={nodes:O,edges:b};return z})}}let d=(t,e,r=!1)=>{let n=[(0,o.u)(e[0])],i={},s=e.length;i[e[0].id]=!0;let a=0;return e.forEach((u,d)=>{if(0!==d){if((d===s-1||t.getDegree(u.id,"both")!==t.getDegree(e[d+1].id,"both")||t.areNeighbors(n[a].id,u.id))&&!i[u.id])n.push((0,o.u)(u)),i[u.id]=!0,a++;else{let d=r?t.getSuccessors(n[a].id):t.getNeighbors(n[a].id),l=!1;for(let e=0;e{let n=t,i=e,o=r;return n||"undefined"==typeof window||(n=window.innerWidth),i||"undefined"==typeof window||(i=window.innerHeight),o||(o=[n/2,i/2]),[n,i,o]}},39233:function(t,e,r){"use strict";r.d(e,{u:function(){return m}});var n=r(97582),i=r(72137),o=r(61035),s=r(38027),a=r(97653),u=r(5192),d=r(12368),l=r(64912),h=r(80628),c=r(85087),f=r(20464);let g={gForce:!0,force2:!0,d3force:!0,fruchterman:!0,forceAtlas2:!0,force:!0,"graphin-force":!0},p={center:[0,0],comboPadding:10,treeKey:"combo"};class m{constructor(t={}){this.options=t,this.id="comboCombined",this.options=Object.assign(Object.assign({},p),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,function*(){return this.genericComboCombinedLayout(!1,t,e)})}assign(t,e){return(0,n.mG)(this,void 0,void 0,function*(){yield this.genericComboCombinedLayout(!0,t,e)})}genericComboCombinedLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,function*(){let n;let o=this.initVals(Object.assign(Object.assign({},this.options),r)),{center:s,treeKey:a,outerLayout:c}=o,p=e.getAllNodes().filter(t=>!t.data._isCombo),m=e.getAllNodes().filter(t=>t.data._isCombo),v=e.getAllEdges(),y=null==p?void 0:p.length;if(!y||1===y)return(0,f.P)(e,t,s);let w=[],x=new Map;p.forEach(t=>{x.set(t.id,t)});let b=new Map;m.forEach(t=>{b.set(t.id,t)});let E=new Map,N=this.getInnerGraphs(e,a,x,b,v,o,E);yield Promise.all(N);let M=new Map,_=[],k=new Map,A=!0;e.getRoots(a).forEach(t=>{let r=E.get(t.id),n=b.get(t.id)||x.get(t.id),i={id:t.id,data:Object.assign(Object.assign({},t.data),{x:r.data.x||n.data.x,y:r.data.y||n.data.y,fx:r.data.fx||n.data.fx,fy:r.data.fy||n.data.fy,mass:r.data.mass||n.data.mass,size:r.data.size})};_.push(i),M.set(t.id,!0),isNaN(i.data.x)||0===i.data.x||isNaN(i.data.y)||0===i.data.y?(i.data.x=100*Math.random(),i.data.y=100*Math.random()):A=!1,(0,h._)(e,[t],e=>{e.id!==t.id&&k.set(e.id,t.id)},"TB",a)});let S=[];if(v.forEach(t=>{let e=k.get(t.source)||t.source,r=k.get(t.target)||t.target;e!==r&&M.has(e)&&M.has(r)&&S.push({id:t.id,source:e,target:r,data:{}})}),null==_?void 0:_.length){if(1===_.length)_[0].data.x=s[0],_[0].data.y=s[1];else{let t=new i.k({nodes:_,edges:S}),e=c||new d.y;if(A&&g[e.id]){let e=_.length<100?new l.A:new u.W;yield e.assign(t)}n=yield e.execute(t,Object.assign({center:s,kg:5,preventOverlap:!0,animate:!1},"force"===e.id?{gravity:1,factor:4,linkDistance:(t,e,r)=>{let n=Math.max(...e.data.size)||32,i=Math.max(...r.data.size)||32;return n/2+i/2+200}}:{}))}E.forEach(t=>{var e;let r=n.nodes.find(e=>e.id===t.id);if(r){let{x:e,y:n}=r.data;t.data.visited=!0,t.data.x=e,t.data.y=n,w.push({id:t.id,data:{x:e,y:n}})}let{x:i,y:o}=t.data;null===(e=t.data.nodes)||void 0===e||e.forEach(t=>{w.push({id:t.id,data:{x:t.data.x+i,y:t.data.y+o}})})}),E.forEach(({data:t})=>{let{x:e,y:r,visited:n,nodes:i}=t;null==i||i.forEach(t=>{if(!n){let n=w.find(e=>e.id===t.id);n.data.x+=e||0,n.data.y+=r||0}})})}return t&&w.forEach(t=>{e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y})}),{nodes:w,edges:v}})}initVals(t){let e,r,n;let i=Object.assign({},t),{nodeSize:u,spacing:d,comboPadding:l}=t;if(r=(0,o.Z)(d)?()=>d:(0,s.Z)(d)?d:()=>0,i.spacing=r,u){if((0,s.Z)(u))e=t=>{let e=u(t),n=r(t);if((0,c.k)(t.size)){let e=t.size[0]>t.size[1]?t.size[0]:t.size[1];return(e+n)/2}return((e||32)+n)/2};else if((0,c.k)(u)){let t=u[0]>u[1]?u[0]:u[1],n=t/2;e=t=>n+r(t)/2}else{let t=u/2;e=e=>t+r(e)/2}}else e=t=>{let e=r(t);if(t.size){if((0,c.k)(t.size)){let r=t.size[0]>t.size[1]?t.size[0]:t.size[1];return(r+e)/2}if((0,a.Z)(t.size)){let r=t.size.width>t.size.height?t.size.width:t.size.height;return(r+e)/2}return(t.size+e)/2}return 32+e/2};return i.nodeSize=e,n=(0,o.Z)(l)?()=>l:(0,c.k)(l)?()=>Math.max.apply(null,l):(0,s.Z)(l)?l:()=>0,i.comboPadding=n,i}getInnerGraphs(t,e,r,s,a,d,l){let{nodeSize:f,comboPadding:g,spacing:p,innerLayout:m}=d,v=m||new u.W({}),y={center:[0,0],preventOverlap:!0,nodeSpacing:p},w=[],x=t=>{let e=(null==g?void 0:g(t))||10;return(0,c.k)(e)&&(e=Math.max(...e)),{size:e?[2*e,2*e]:[30,30],padding:e}};return t.getRoots(e).forEach(u=>{l.set(u.id,{id:u.id,data:{nodes:[],size:x(u).size}});let d=Promise.resolve();(0,h._)(t,[u],u=>{var c;if(!u.data._isCombo)return;let{size:g,padding:p}=x(u);if(null===(c=t.getChildren(u.id,e))||void 0===c?void 0:c.length){let c=l.get(u.id);l.set(u.id,{id:u.id,data:Object.assign({nodes:[]},null==c?void 0:c.data)});let g=new Map,m=t.getChildren(u.id,e).map(t=>{if(t.data._isCombo)return l.has(t.id)||l.set(t.id,{id:t.id,data:Object.assign({},t.data)}),g.set(t.id,!0),l.get(t.id);let e=r.get(t.id)||s.get(t.id);return g.set(t.id,!0),{id:t.id,data:Object.assign(Object.assign({},e.data),t.data)}}),w={nodes:m,edges:a.filter(t=>g.has(t.source)&&g.has(t.target))},x=1/0;m.forEach(t=>{var e;let{size:r}=t.data;r||(r=(null===(e=l.get(t.id))||void 0===e?void 0:e.data.size)||(null==f?void 0:f(t))||[30,30]),(0,o.Z)(r)&&(r=[r,r]);let[n,i]=r;x>n&&(x=n),x>i&&(x=i),t.data.size=r}),d=d.then(()=>(0,n.mG)(this,void 0,void 0,function*(){let t=new i.k(w),e=yield v.assign(t,y),{minX:r,minY:n,maxX:o,maxY:s}=(0,h.H0)(m),a={x:(o+r)/2,y:(s+n)/2};w.nodes.forEach(t=>{t.data.x-=a.x,t.data.y-=a.y});let d=[Math.max(o-r,x)+2*p,Math.max(s-n,x)+2*p];return l.get(u.id).data.size=d,l.get(u.id).data.nodes=m,e}))}else l.set(u.id,{id:u.id,data:Object.assign(Object.assign({},u.data),{size:g})});return!0},"BT",e),w.push(d)}),w}}},5192:function(t,e,r){"use strict";r.d(e,{W:function(){return c}});var n=r(97582),i=r(38027),o=r(61035),s=r(97653),a=r(52940),u=r(85087),d=r(98130),l=r(20464);let h={nodeSize:30,nodeSpacing:10,preventOverlap:!1,sweep:void 0,equidistant:!1,startAngle:1.5*Math.PI,clockwise:!0,maxLevelDiff:void 0,sortBy:"degree"};class c{constructor(t={}){this.options=t,this.id="concentric",this.options=Object.assign(Object.assign({},h),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,function*(){return this.genericConcentricLayout(!1,t,e)})}assign(t,e){return(0,n.mG)(this,void 0,void 0,function*(){yield this.genericConcentricLayout(!0,t,e)})}genericConcentricLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,function*(){let n;let h=Object.assign(Object.assign({},this.options),r),{center:c,width:f,height:g,sortBy:p,maxLevelDiff:m,sweep:v,clockwise:y,equidistant:w,preventOverlap:x,startAngle:b=1.5*Math.PI,nodeSize:E,nodeSpacing:N}=h,M=e.getAllNodes(),_=e.getAllEdges(),k=f||"undefined"==typeof window?f:window.innerWidth,A=g||"undefined"==typeof window?g:window.innerHeight,S=c||[k/2,A/2];if(!(null==M?void 0:M.length)||1===M.length)return(0,l.P)(e,t,S);let j=[],O=0;(0,u.k)(E)?n=Math.max(E[0],E[1]):(0,i.Z)(E)?(n=-1/0,M.forEach(t=>{let e=E(t);e>n&&(n=e)})):n=E,(0,u.k)(N)?O=Math.max(N[0],N[1]):(0,o.Z)(N)&&(O=N),M.forEach(t=>{let e=(0,d.u)(t);j.push(e);let r=n,{data:a}=e;(0,u.k)(a.size)?r=Math.max(a.size[0],a.size[1]):(0,o.Z)(a.size)?r=a.size:(0,s.Z)(a.size)&&(r=Math.max(a.size.width,a.size.height)),n=Math.max(n,r),(0,i.Z)(N)&&(O=Math.max(N(t),O))});let R={};j.forEach((t,e)=>{R[t.id]=e});let z=p;(0,a.Z)(z)&&void 0!==j[0].data[z]||(z="degree"),"degree"===z?j.sort((t,r)=>e.getDegree(r.id,"both")-e.getDegree(t.id,"both")):j.sort((t,e)=>e.data[z]-t.data[z]);let I=j[0],C=(m||("degree"===z?e.getDegree(I.id,"both"):I.data[z]))/4,D=[{nodes:[]}],P=D[0];j.forEach(t=>{if(P.nodes.length>0){let r="degree"===z?Math.abs(e.getDegree(P.nodes[0].id,"both")-e.getDegree(t.id,"both")):Math.abs(P.nodes[0].data[z]-t.data[z]);C&&r>=C&&(P={nodes:[]},D.push(P))}P.nodes.push(t)});let T=n+O;if(!x){let t=D.length>0&&D[0].nodes.length>1,e=Math.min(k,A)/2-T,r=e/(D.length+(t?1:0));T=Math.min(T,r)}let L=0;if(D.forEach(t=>{let e=void 0===v?2*Math.PI-2*Math.PI/t.nodes.length:v;if(t.dTheta=e/Math.max(1,t.nodes.length-1),t.nodes.length>1&&x){let e=Math.cos(t.dTheta)-1,r=Math.sin(t.dTheta)-0,n=Math.sqrt(T*T/(e*e+r*r));L=Math.max(n,L)}t.r=L,L+=T}),w){let t=0,e=0;for(let r=0;r{0===n&&(e=r.r||0),r.r=e,e+=t})}return D.forEach(t=>{let e=t.dTheta||0,r=t.r||0;t.nodes.forEach((t,n)=>{let i=b+(y?1:-1)*e*n;t.data.x=S[0]+r*Math.cos(i),t.data.y=S[1]+r*Math.sin(i)})}),t&&j.forEach(t=>e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y})),{nodes:j,edges:_}})}}},63330:function(t,e,r){"use strict";r.d(e,{j:function(){return _}});var n=r(97582),i=r(59145),o=r(19782),s=function(t){if(!("object"==typeof t&&null!==t)||!(0,o.Z)(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},a=function(t){for(var e=[],r=1;ru.index){var p=d-a.x-a.vx,m=l-a.y-a.vy,y=p*p+m*m;yd+g||ol+g||st.r&&(t.r=t[e].r)}function u(){if(e){var n,i,o=e.length;for(n=0,r=Array(o);nt.id},manyBody:{},center:{x:0,y:0}},this.context={options:{},assign:!1,nodes:[],edges:[]},a(this.options,t),this.options.forceSimulation&&(this.simulation=this.options.forceSimulation)}execute(t,e){return(0,n.mG)(this,void 0,void 0,function*(){return this.genericLayout(!1,t,e)})}assign(t,e){return(0,n.mG)(this,void 0,void 0,function*(){yield this.genericLayout(!0,t,e)})}stop(){this.simulation.stop()}tick(t){return this.simulation.tick(t),this.getResult()}restart(){this.simulation.restart()}setFixedPosition(t,e){let r=this.context.nodes.find(e=>e.id===t);r&&e.forEach((t,e)=>{if("number"==typeof t||null===t){let n=["fx","fy","fz"][e];r[n]=t}})}getOptions(t){var e,r;let n=a({},this.options,t);return n.collide&&(null===(e=n.collide)||void 0===e?void 0:e.radius)===void 0&&(n.collide=n.collide||{},n.collide.radius=null!==(r=n.nodeSize)&&void 0!==r?r:10),void 0===n.iterations&&(n.link&&void 0===n.link.iterations&&(n.iterations=n.link.iterations),n.collide&&void 0===n.collide.iterations&&(n.iterations=n.collide.iterations)),this.context.options=n,n}genericLayout(t,e,r){var i;return(0,n.mG)(this,void 0,void 0,function*(){let n=this.getOptions(r),o=e.getAllNodes().map(({id:t,data:e})=>Object.assign({id:t,data:e},h(e,this.config.inputNodeAttrs))),s=e.getAllEdges().map(t=>Object.assign({},t));Object.assign(this.context,{assign:t,nodes:o,edges:s,graph:e});let a=new Promise(t=>{this.resolver=t}),u=this.setSimulation(n);return u.nodes(o),null===(i=u.force("link"))||void 0===i||i.links(s),a})}getResult(){let{assign:t,nodes:e,edges:r,graph:n}=this.context,i=e.map(t=>({id:t.id,data:Object.assign(Object.assign({},t.data),h(t,this.config.outputNodeAttrs))})),o=r.map(({id:t,source:e,target:r,data:n})=>({id:t,source:"object"==typeof e?e.id:e,target:"object"==typeof r?r.id:r,data:n}));return t&&i.forEach(t=>n.mergeNodeData(t.id,t.data)),{nodes:i,edges:o}}initSimulation(){return(0,M.Z)()}setSimulation(t){let e=this.simulation||this.options.forceSimulation||this.initSimulation();return this.simulation||(this.simulation=e.on("tick",()=>{var e;return null===(e=t.onTick)||void 0===e?void 0:e.call(t,this.getResult())}).on("end",()=>{var t;return null===(t=this.resolver)||void 0===t?void 0:t.call(this,this.getResult())})),k(e,this.config.simulationAttrs.map(e=>[e,t[e]])),Object.entries(this.forceMap).forEach(([r,n])=>{if(t[r]){let i=e.force(r);i||(i=n(),e.force(r,i)),k(i,Object.entries(t[r]))}else e.force(r,null)}),e}}let k=(t,e)=>e.reduce((e,[r,n])=>e[r]&&void 0!==n?e[r].call(t,n):e,t)},51712:function(t,e,r){"use strict";r.d(e,{V:function(){return u}});var n=r(97582),i=r(61035),o=r(38027),s=r(70681),a=r.n(s);class u{constructor(t){this.id="dagre",this.options={},Object.assign(this.options,u.defaultOptions,t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,function*(){return this.genericDagreLayout(!1,t,Object.assign(Object.assign({},this.options),e))})}assign(t,e){return(0,n.mG)(this,void 0,void 0,function*(){yield this.genericDagreLayout(!0,t,Object.assign(Object.assign({},this.options),e))})}genericDagreLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,function*(){let{nodeSize:u}=r,d=new s.graphlib.Graph;d.setGraph(r),d.setDefaultEdgeLabel(()=>({}));let l=e.getAllNodes(),h=e.getAllEdges();[...l,...h].some(({id:t})=>(0,i.Z)(t))&&console.error("Dagre layout only support string id, it will convert number to string."),e.getAllNodes().forEach(t=>{let{id:e}=t,r=Object.assign({},t.data);if(void 0!==u){let[e,n]=function(t){if(!t)return[0,0,0];if((0,i.Z)(t))return[t,t,t];if(0===t.length)return[0,0,0];let[e,r=e,n=e]=t;return[e,r,n]}((0,o.Z)(u)?u(t):u);Object.assign(r,{width:e,height:n})}d.setNode(e.toString(),r)}),e.getAllEdges().forEach(({id:t,source:e,target:r})=>{d.setEdge(e.toString(),r.toString(),{id:t})}),a().layout(d);let c={nodes:[],edges:[]};return d.nodes().forEach(r=>{let n=d.node(r);c.nodes.push({id:r,data:n}),t&&e.mergeNodeData(r,n)}),d.edges().forEach(r=>{let i=d.edge(r),{id:o}=i,s=(0,n._T)(i,["id"]),{v:a,w:u}=r;c.edges.push({id:o,source:a,target:u,data:s}),t&&e.mergeEdgeData(o,s)}),c})}}u.defaultOptions={}},12368:function(t,e,r){"use strict";r.d(e,{y:function(){return p}});var n=r(97582),i=r(72137),o=r(61035),s=r(97653),a=r(38027),u=r(78732),d=r(85087),l=r(47148),h=r(33953);function c(t){let e=0,r=0,n=0,i=0,o=0,s=t.length;if(s){for(let a=0;a{var a;if((null===(a=t.data)||void 0===a?void 0:a.id)===o.id)return;let u=[r,n,i][s-1],d=o.x-t.x||.1,l=o.y-t.y||.1,h=o.z-t.z||.1,c=[d,l,h],f=u-e,g=0;for(let t=0;tthis.lastOptions.minMovement||e<1)&&ethis.lastGraph.mergeNodeData(t.id,{x:t.data.x,y:t.data.y,z:3===this.options.dimensions?t.data.z:void 0})),e}genericForceLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,function*(){let n=Object.assign(Object.assign({},this.options),r),s=e.getAllNodes(),a=e.getAllEdges(),u=this.formatOptions(n,e),{dimensions:d,width:l,height:h,nodeSize:c,getMass:f,nodeStrength:g,edgeStrength:p,linkDistance:m}=u,v=s.map((t,e)=>Object.assign(Object.assign({},t),{data:Object.assign(Object.assign({},t.data),{x:(0,o.Z)(t.data.x)?t.data.x:Math.random()*l,y:(0,o.Z)(t.data.y)?t.data.y:Math.random()*h,z:(0,o.Z)(t.data.z)?t.data.z:Math.random()*Math.sqrt(l*h),size:c(t)||30,mass:f(t),nodeStrength:g(t)})})),y=a.map(t=>Object.assign(Object.assign({},t),{data:Object.assign(Object.assign({},t.data),{edgeStrength:p(t),linkDistance:m(t,e.getNode(t.source),e.getNode(t.target))})}));if(!(null==s?void 0:s.length))return this.lastResult={nodes:[],edges:a},{nodes:[],edges:a};let w={};s.forEach((t,e)=>{w[t.id]={x:0,y:0,z:0}});let b=new i.k({nodes:v,edges:y});this.formatCentripetal(u,b);let{maxIteration:E,minMovement:N,onTick:M}=u;if(this.lastLayoutNodes=v,this.lastLayoutEdges=y,this.lastAssign=t,this.lastGraph=e,this.lastCalcGraph=b,this.lastOptions=u,this.lastVelMap=w,"undefined"==typeof window)return;let _=0;return new Promise(r=>{this.timeInterval=window.setInterval(()=>{s&&this.running||r({nodes:x(e,v),edges:a}),this.runOneStep(b,e,_,w,u),this.updatePosition(e,b,w,u),t&&v.forEach(t=>e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y,z:3===d?t.data.z:void 0})),null==M||M({nodes:x(e,v),edges:a}),(++_>=E||this.judgingDistance{let r=1;(0,o.Z)(null==t?void 0:t.data.mass)&&(r=null==t?void 0:t.data.mass);let n=e.getDegree(t.id,"both");return!n||n<5?r:5*n*r});let f=(0,u.jE)(0,t.nodeSpacing);r=c?(0,a.Z)(c)?t=>c(t)+f(t):(0,d.k)(c)?t=>Math.max(c[0],c[1])+f(t):t=>c+f(t):t=>{let{size:e}=(null==t?void 0:t.data)||{};return e?(0,d.k)(e)?Math.max(e[0],e[1])+f(t):(0,s.Z)(e)?Math.max(e.width,e.height)+f(t):e+f(t):10+f(t)},n.nodeSize=r;let g=t.linkDistance?(0,u.jE)(1,t.linkDistance):t=>1+n.nodeSize(e.getNode(t.source))+n.nodeSize(e.getNode(t.target));return n.linkDistance=g,n.nodeStrength=(0,u.jE)(1,t.nodeStrength),n.edgeStrength=(0,u.jE)(1,t.edgeStrength),n}formatCentripetal(t,e){let r,n;let{dimensions:i,centripetalOptions:o,center:s,clusterNodeStrength:a,leafCluster:u,clustering:d,nodeClusterBy:l}=t,h=e.getAllNodes(),c=o||{leaf:2,single:2,others:1,center:t=>({x:s[0],y:s[1],z:3===i?s[2]:void 0})};if("function"!=typeof a&&(t.clusterNodeStrength=t=>a),u&&l&&(r=m(e,l),n=Array.from(new Set(null==h?void 0:h.map(t=>t.data[l])))||[],t.centripetalOptions=Object.assign(c,{single:100,leaf:e=>{let{siblingLeaves:i,sameTypeLeaves:o}=r[e.id]||{};return(null==o?void 0:o.length)===(null==i?void 0:i.length)||(null==n?void 0:n.length)===1?1:t.clusterNodeStrength(e)},others:1,center:t=>{let n;let i=e.getDegree(t.id,"both");if(!i)return{x:100,y:100,z:0};if(1===i){let{sameTypeLeaves:e=[]}=r[t.id]||{};1===e.length?n=void 0:e.length>1&&(n=w(e))}else n=void 0;return{x:null==n?void 0:n.x,y:null==n?void 0:n.y,z:null==n?void 0:n.z}}})),d&&l){r||(r=m(e,l)),n||(n=Array.from(new Set(h.map(t=>t.data[l])))),n=n.filter(t=>void 0!==t);let i={};n.forEach(t=>{let r=h.filter(e=>e.data[l]===t).map(t=>e.getNode(t.id));i[t]=w(r)}),t.centripetalOptions=Object.assign(c,{single:e=>t.clusterNodeStrength(e),leaf:e=>t.clusterNodeStrength(e),others:e=>t.clusterNodeStrength(e),center:t=>{let e=i[t.data[l]];return{x:null==e?void 0:e.x,y:null==e?void 0:e.y,z:null==e?void 0:e.z}}})}let{leaf:f,single:g,others:p}=t.centripetalOptions||{};f&&"function"!=typeof f&&(t.centripetalOptions.leaf=()=>f),g&&"function"!=typeof g&&(t.centripetalOptions.single=()=>g),p&&"function"!=typeof p&&(t.centripetalOptions.others=()=>p)}runOneStep(t,e,r,n,i){let o={},s=t.getAllNodes(),a=t.getAllEdges();if(!(null==s?void 0:s.length))return;let{monitor:u}=i;if(this.calRepulsive(t,o,i),a&&this.calAttractive(t,o,i),this.calGravity(t,e,o,i),this.updateVelocity(t,o,n,i),u){let t=this.calTotalEnergy(o,s);u({energy:t,nodes:e.getAllNodes(),edges:e.getAllEdges(),iterations:r})}}calTotalEnergy(t,e){if(!(null==e?void 0:e.length))return 0;let r=0;return e.forEach((e,n)=>{let i=t[e.id].x,o=t[e.id].y,s=3===this.options.dimensions?t[e.id].z:0,{mass:a=1}=e.data;r+=a*(i*i+o*o+s*s)*.5}),r}calRepulsive(t,e,r){let{dimensions:n,factor:i,coulombDisScale:o}=r;!function(t,e,r,n,i=2){let o=e/r,s=t.getAllNodes(),a=s.map((t,e)=>{let{nodeStrength:r,x:n,y:i,z:s,size:a}=t.data;return{x:n,y:i,z:s,size:a,index:e,id:t.id,vx:0,vy:0,vz:0,weight:o*r}}),u=(2===i?(0,l.Z)(a,t=>t.x,t=>t.y):(0,h.Z)(a,t=>t.x,t=>t.y,t=>t.z)).visitAfter(c),d=new Map;a.forEach(t=>{d.set(t.id,t),function(t,e,r){e.visit((e,n,i,o,s)=>f(e,n,i,o,s,t,r))}(t,u,i)}),a.map((t,e)=>{let{id:r,data:i}=s[e],{mass:o=1}=i;n[r]={x:t.vx/o,y:t.vy/o,z:t.vz/o}})}(t,i,o*o,e,n)}calAttractive(t,e,r){let{dimensions:n,nodeSize:i}=r;t.getAllEdges().forEach((r,o)=>{let{source:s,target:a}=r,u=t.getNode(s),d=t.getNode(a);if(!u||!d)return;let l=d.data.x-u.data.x,h=d.data.y-u.data.y,c=3===n?d.data.z-u.data.z:0;l||h||(l=.01*Math.random(),h=.01*Math.random(),3!==n||c||(c=.01*Math.random()));let f=Math.sqrt(l*l+h*h+c*c);if(f{let{id:s,data:g}=n,{mass:p,x:m,y:v,z:y}=g,w=e.getNode(s),x=0,b=0,E=0,N=c,M=t.getDegree(s,"in"),_=t.getDegree(s,"out"),k=t.getDegree(s,"both"),A=null==i?void 0:i(w,k);if(A){let[t,e,r]=A;x=m-t,b=v-e,N=r}else x=m-h[0],b=v-h[1],E=y-h[2];if(N&&(r[s].x-=N*x/p,r[s].y-=N*b/p,r[s].z-=N*E/p),f){let{leaf:t,single:e,others:n,center:i}=f,{x:h,y:c,z:g,centerStrength:x}=(null==i?void 0:i(w,a,u,d,l))||{x:0,y:0,z:0,centerStrength:0};if(!(0,o.Z)(h)||!(0,o.Z)(c))return;let b=(m-h)/p,E=(v-c)/p,N=(y-g)/p;if(x&&(r[s].x-=x*b,r[s].y-=x*E,r[s].z-=x*N),0===k){let t=e(w);if(!t)return;r[s].x-=t*b,r[s].y-=t*E,r[s].z-=t*N;return}if(0===M||0===_){let e=t(w,a,u);if(!e)return;r[s].x-=e*b,r[s].y-=e*E,r[s].z-=e*N;return}let A=n(w);if(!A)return;r[s].x-=A*b,r[s].y-=A*E,r[s].z-=A*N}})}updateVelocity(t,e,r,n){let{damping:i,maxSpeed:o,interval:s,dimensions:a}=n,u=t.getAllNodes();(null==u?void 0:u.length)&&u.forEach(t=>{let{id:n}=t,u=(r[n].x+e[n].x*s)*i||.01,d=(r[n].y+e[n].y*s)*i||.01,l=3===a?(r[n].z+e[n].z*s)*i||.01:0,h=Math.sqrt(u*u+d*d+l*l);if(h>o){let t=o/h;u*=t,d*=t,l*=t}r[n]={x:u,y:d,z:l}})}updatePosition(t,e,r,n){let{distanceThresholdMode:i,interval:s,dimensions:a}=n,u=e.getAllNodes();if(!(null==u?void 0:u.length)){this.judgingDistance=0;return}let d=0;"max"===i?this.judgingDistance=-1/0:"min"===i&&(this.judgingDistance=1/0),u.forEach(n=>{let{id:u}=n,l=t.getNode(u);if((0,o.Z)(l.data.fx)&&(0,o.Z)(l.data.fy)){e.mergeNodeData(u,{x:l.data.fx,y:l.data.fy,z:3===a?l.data.fz:void 0});return}let h=r[u].x*s,c=r[u].y*s,f=3===a?r[u].z*s:0;e.mergeNodeData(u,{x:n.data.x+h,y:n.data.y+c,z:n.data.z+f});let g=Math.sqrt(h*h+c*c+f*f);switch(i){case"max":this.judgingDistanceg&&(this.judgingDistance=g);break;default:d+=g}}),i&&"mean"!==i||(this.judgingDistance=d/u.length)}}let m=(t,e)=>{let r=t.getAllNodes();if(!(null==r?void 0:r.length))return{};let n={};return r.forEach((r,i)=>{let o=t.getDegree(r.id,"both");1===o&&(n[r.id]=v(t,"leaf",r,e))}),n},v=(t,e,r,n)=>{let i=t.getDegree(r.id,"in"),o=t.getDegree(r.id,"out"),s=r,a=[];0===i?(s=t.getSuccessors(r.id)[0],a=t.getNeighbors(s.id)):0===o&&(s=t.getPredecessors(r.id)[0],a=t.getNeighbors(s.id)),a=a.filter(e=>0===t.getDegree(e.id,"in")||0===t.getDegree(e.id,"out"));let u=y(t,e,n,r,a);return{coreNode:s,siblingLeaves:a,sameTypeLeaves:u}},y=(t,e,r,n,i)=>{let o=n.data[r]||"",s=(null==i?void 0:i.filter(t=>t.data[r]===o))||[];return"leaf"===e&&(s=s.filter(e=>0===t.getDegree(e.id,"in")||0===t.getDegree(e.id,"out"))),s},w=t=>{let e={x:0,y:0};t.forEach(t=>{let{x:r,y:n}=t.data;e.x+=r||0,e.y+=n||0});let r=t.length||1;return{x:e.x/r,y:e.y/r}},x=(t,e)=>e.map(e=>{let{id:r,data:n}=e,i=t.getNode(r);return Object.assign(Object.assign({},i),{data:Object.assign(Object.assign({},i.data),{x:n.x,y:n.y,z:n.z})})})},67753:function(t,e,r){"use strict";r.d(e,{E:function(){return p}});var n=r(97582),i=r(72137),o=r(61035),s=r(97653),a=r(38027),u=r(98130),d=r(85087),l=r(20464);class h{constructor(t){this.id=t.id||0,this.rx=t.rx,this.ry=t.ry,this.fx=0,this.fy=0,this.mass=t.mass,this.degree=t.degree,this.g=t.g||0}distanceTo(t){let e=this.rx-t.rx,r=this.ry-t.ry;return Math.hypot(e,r)}setPos(t,e){this.rx=t,this.ry=e}resetForce(){this.fx=0,this.fy=0}addForce(t){let e=t.rx-this.rx,r=t.ry-this.ry,n=Math.hypot(e,r);n=n<1e-4?1e-4:n;let i=this.g*(this.degree+1)*(t.degree+1)/n;this.fx+=i*e/n,this.fy+=i*r/n}in(t){return t.contains(this.rx,this.ry)}add(t){let e=this.mass+t.mass,r=(this.rx*this.mass+t.rx*t.mass)/e,n=(this.ry*this.mass+t.ry*t.mass)/e,i=this.degree+t.degree;return new h({rx:r,ry:n,mass:e,degree:i})}}class c{constructor(t){this.xmid=t.xmid,this.ymid=t.ymid,this.length=t.length,this.massCenter=t.massCenter||[0,0],this.mass=t.mass||1}getLength(){return this.length}contains(t,e){let r=this.length/2;return t<=this.xmid+r&&t>=this.xmid-r&&e<=this.ymid+r&&e>=this.ymid-r}NW(){let t=this.xmid-this.length/4,e=this.ymid+this.length/4,r=this.length/2,n=new c({xmid:t,ymid:e,length:r});return n}NE(){let t=this.xmid+this.length/4,e=this.ymid+this.length/4,r=this.length/2,n=new c({xmid:t,ymid:e,length:r});return n}SW(){let t=this.xmid-this.length/4,e=this.ymid-this.length/4,r=this.length/2,n=new c({xmid:t,ymid:e,length:r});return n}SE(){let t=this.xmid+this.length/4,e=this.ymid-this.length/4,r=this.length/2,n=new c({xmid:t,ymid:e,length:r});return n}}class f{constructor(t){this.body=null,this.quad=null,this.NW=null,this.NE=null,this.SW=null,this.SE=null,this.theta=.5,null!=t&&(this.quad=t)}insert(t){if(null==this.body){this.body=t;return}this._isExternal()?(this.quad&&(this.NW=new f(this.quad.NW()),this.NE=new f(this.quad.NE()),this.SW=new f(this.quad.SW()),this.SE=new f(this.quad.SE())),this._putBody(this.body),this._putBody(t),this.body=this.body.add(t)):(this.body=this.body.add(t),this._putBody(t))}_putBody(t){this.quad&&(t.in(this.quad.NW())&&this.NW?this.NW.insert(t):t.in(this.quad.NE())&&this.NE?this.NE.insert(t):t.in(this.quad.SW())&&this.SW?this.SW.insert(t):t.in(this.quad.SE())&&this.SE&&this.SE.insert(t))}_isExternal(){return null==this.NW&&null==this.NE&&null==this.SW&&null==this.SE}updateForce(t){if(null!=this.body&&t!==this.body){if(this._isExternal())t.addForce(this.body);else{let e=this.quad?this.quad.getLength():0,r=this.body.distanceTo(t);e/r(0,u.u)(t,[a,d])),m=n.filter(t=>{let{source:e,target:r}=t;return e!==r}),v=new i.k({nodes:p,edges:m}),y=this.getSizes(v,e,f);if(this.run(v,e,c,y,t,s),h){for(let t=0;t250&&(r.barnesHut=!0),void 0===a&&e>100&&(r.prune=!0),0!==u||a?0===u&&a&&(r.maxIteration=100,e<=200&&e>100?r.maxIteration=500:e>200&&(r.maxIteration=950)):(r.maxIteration=250,e<=200&&e>100?r.maxIteration=1e3:e>200&&(r.maxIteration=1200)),!d&&(r.kr=50,e>100&&e<=500?r.kr=20:e>500&&(r.kr=1)),!l&&(r.kg=20,e>100&&e<=500?r.kg=10:e>500&&(r.kg=1)),r}run(t,e,r,n,i,o){let{kr:s,barnesHut:a,onTick:u}=o,d=t.getAllNodes(),l=0,c=r,f={},g={},p={};for(let e=0;e0;)l=this.oneStep(t,{iter:c,preventOverlapIters:50,krPrime:100,sg:l,forces:f,preForces:g,bodies:p,sizes:n},o),c--,null==u||u({nodes:d,edges:e.getAllEdges()});return t}oneStep(t,e,r){let{iter:n,preventOverlapIters:i,krPrime:o,sg:s,preForces:a,bodies:u,sizes:d}=e,{forces:l}=e,{preventOverlap:h,barnesHut:c}=r,f=t.getAllNodes();for(let t=0;ti||!h)?this.getOptRepGraForces(t,l,u,r):this.getRepGraForces(t,n,i,l,o,d,r),this.updatePos(t,l,a,s,r)}getAttrForces(t,e,r,n,i,o){let{preventOverlap:s,dissuadeHubs:a,mode:u,prune:d}=o,l=t.getAllEdges();for(let o=0;o0&&(w=y,x=y),i[h][0]+=w*v[0],i[c][0]-=x*v[0],i[h][1]+=w*v[1],i[c][1]-=x*v[1]}return i}getOptRepGraForces(t,e,r,n){let{kg:i,center:o,prune:s}=n,a=t.getAllNodes(),u=a.length,d=9e10,l=-9e10,h=9e10,g=-9e10;for(let e=0;e=t.getDegree(n))&&(r[n].setPos(i.x,i.y),i.x>=l&&(l=i.x),i.x<=d&&(d=i.x),i.y>=g&&(g=i.y),i.y<=h&&(h=i.y))}let p=Math.max(l-d,g-h),m={xmid:(l+d)/2,ymid:(g+h)/2,length:p,massCenter:o,mass:u},v=new c(m),y=new f(v);for(let e=0;e=t.getDegree(n))&&r[n].in(v)&&y.insert(r[n])}for(let n=0;n0&&(v=u*(p+1)*(l+1)/m),n[g.id][0]-=v*f[0],n[s.id][0]+=v*f[0],n[g.id][1]-=v*f[1],n[s.id][1]+=v*f[1]}let m=[g.data.x-l[0],g.data.y-l[1]],v=Math.hypot(m[0],m[1]);m[0]=m[0]/v,m[1]=m[1]/v;let y=d*(p+1);n[g.id][0]-=y*m[0],n[g.id][1]-=y*m[1]}return n}updatePos(t,e,r,n,i){let{ks:s,tao:a,prune:u,ksmax:d}=i,l=t.getAllNodes(),h=l.length,c=[],f=[],g=0,p=0,m=n;for(let n=0;n1.5*v?1.5*v:m);for(let r=0;rg?g:h;let p=h*e[n][0],v=h*e[n][1];t.mergeNodeData(n,{x:i.x+p,y:i.y+v})}return m}}},89469:function(t,e,r){"use strict";r.d(e,{O:function(){return u}});var n=r(97582),i=r(72137),o=r(61035),s=r(98130);let a={maxIteration:1e3,gravity:10,speed:5,clustering:!1,clusterGravity:10,width:300,height:300,nodeClusterBy:"cluster"};class u{constructor(t={}){this.options=t,this.id="fruchterman",this.timeInterval=0,this.running=!1,this.options=Object.assign(Object.assign({},a),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,function*(){return this.genericFruchtermanLayout(!1,t,e)})}assign(t,e){return(0,n.mG)(this,void 0,void 0,function*(){yield this.genericFruchtermanLayout(!0,t,e)})}stop(){this.timeInterval&&"undefined"!=typeof window&&window.clearInterval(this.timeInterval),this.running=!1}tick(t=this.options.maxIteration||1){if(this.lastResult)return this.lastResult;for(let e=0;ethis.lastGraph.mergeNodeData(t.id,{x:t.data.x,y:t.data.y,z:3===this.options.dimensions?t.data.z:void 0})),e}genericFruchtermanLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,function*(){if(this.running)return;let n=this.formatOptions(r),{dimensions:o,width:a,height:u,center:d,clustering:l,nodeClusterBy:h,maxIteration:c,onTick:f}=n,g=e.getAllNodes(),p=e.getAllEdges();if(!(null==g?void 0:g.length)){let t={nodes:[],edges:p};return this.lastResult=t,t}if(1===g.length){t&&e.mergeNodeData(g[0].id,{x:d[0],y:d[1],z:3===o?d[2]:void 0});let r={nodes:[Object.assign(Object.assign({},g[0]),{data:Object.assign(Object.assign({},g[0].data),{x:d[0],y:d[1],z:3===o?d[2]:void 0})})],edges:p};return this.lastResult=r,r}let m=g.map(t=>(0,s.u)(t,[a,u])),v=new i.k({nodes:m,edges:p}),y={};if(l&&m.forEach(t=>{let e=t.data[h];y[e]||(y[e]={name:e,cx:0,cy:0,count:0})}),this.lastLayoutNodes=m,this.lastLayoutEdges=p,this.lastAssign=t,this.lastGraph=v,this.lastOptions=n,this.lastClusterMap=y,"undefined"==typeof window)return;let w=0;return new Promise(r=>{this.timeInterval=window.setInterval(()=>{if(!this.running){r({nodes:m,edges:p});return}this.runOneStep(v,y,n),t&&m.forEach(({id:t,data:r})=>e.mergeNodeData(t,{x:r.x,y:r.y,z:3===o?r.z:void 0})),null==f||f({nodes:m,edges:p}),++w>=c&&(window.clearInterval(this.timeInterval),r({nodes:m,edges:p}))},0),this.running=!0})})}formatOptions(t={}){let e=Object.assign(Object.assign({},this.options),t),{clustering:r,nodeClusterBy:n}=e,{center:i,width:o,height:s}=e;return e.width=o||"undefined"==typeof window?o:window.innerWidth,e.height=s||"undefined"==typeof window?s:window.innerHeight,e.center=i||[e.width/2,e.height/2],e.clustering=r&&!!n,e}runOneStep(t,e,r){let{dimensions:n,height:i,width:s,gravity:a,center:u,speed:d,clustering:l,nodeClusterBy:h,clusterGravity:c}=r,f=i*s,g=Math.sqrt(f)/10,p=t.getAllNodes(),m=f/(p.length+1),v=Math.sqrt(m),y={};if(this.applyCalculate(t,y,v,m),l){for(let t in e)e[t].cx=0,e[t].cy=0,e[t].count=0;for(let t in p.forEach(t=>{let{data:r}=t,n=e[r[h]];(0,o.Z)(r.x)&&(n.cx+=r.x),(0,o.Z)(r.y)&&(n.cy+=r.y),n.count++}),e)e[t].cx/=e[t].count,e[t].cy/=e[t].count;let t=c||a;p.forEach((r,n)=>{let{id:i,data:s}=r;if(!(0,o.Z)(s.x)||!(0,o.Z)(s.y))return;let a=e[s[h]],u=Math.sqrt((s.x-a.cx)*(s.x-a.cx)+(s.y-a.cy)*(s.y-a.cy)),d=v*t;y[i].x-=d*(s.x-a.cx)/u,y[i].y-=d*(s.y-a.cy)/u})}p.forEach((t,e)=>{let{id:r,data:i}=t;if(!(0,o.Z)(i.x)||!(0,o.Z)(i.y))return;let s=.01*v*a;y[r].x-=s*(i.x-u[0]),y[r].y-=s*(i.y-u[1]),3===n&&(y[r].z-=s*(i.z-u[2]))}),p.forEach((e,r)=>{let{id:i,data:s}=e;if((0,o.Z)(s.fx)&&(0,o.Z)(s.fy)){s.x=s.fx,s.y=s.fy,3===n&&(s.z=s.fz);return}if(!(0,o.Z)(s.x)||!(0,o.Z)(s.y))return;let a=Math.sqrt(y[i].x*y[i].x+y[i].y*y[i].y+(3===n?y[i].z*y[i].z:0));if(a>0){let e=Math.min(g*(d/800),a);t.mergeNodeData(i,{x:s.x+y[i].x/a*e,y:s.y+y[i].y/a*e,z:3===n?s.z+y[i].z/a*e:void 0})}})}applyCalculate(t,e,r,n){this.calRepulsive(t,e,n),this.calAttractive(t,e,r)}calRepulsive(t,e,r){let n=t.getAllNodes();n.forEach(({data:t,id:i},s)=>{e[i]={x:0,y:0,z:0},n.forEach(({data:n,id:a},u)=>{if(s<=u||!(0,o.Z)(t.x)||!(0,o.Z)(n.x)||!(0,o.Z)(t.y)||!(0,o.Z)(n.y))return;let d=t.x-n.x,l=t.y-n.y,h=3===this.options.dimensions?t.z-n.z:0,c=d*d+l*l+h*h;0===c&&(c=1,d=.01,l=.01,h=.01);let f=r/c,g=d*f,p=l*f,m=h*f;e[i].x+=g,e[i].y+=p,e[a].x-=g,e[a].y-=p,3===this.options.dimensions&&(e[i].z+=m,e[a].z-=m)})})}calAttractive(t,e,r){let n=t.getAllEdges();n.forEach(n=>{let{source:i,target:s}=n;if(!i||!s||i===s)return;let{data:a}=t.getNode(i),{data:u}=t.getNode(s);if(!(0,o.Z)(u.x)||!(0,o.Z)(a.x)||!(0,o.Z)(u.y)||!(0,o.Z)(a.y))return;let d=u.x-a.x,l=u.y-a.y,h=3===this.options.dimensions?u.z-a.z:0,c=Math.sqrt(d*d+l*l+h*h)/r,f=d*c,g=l*c,p=h*c;e[i].x+=f,e[i].y+=g,e[s].x-=f,e[s].y-=g,3===this.options.dimensions&&(e[i].z+=p,e[s].z-=p)})}}},41733:function(t,e,r){"use strict";r.d(e,{M:function(){return h}});var n=r(97582),i=r(52940),o=r(61035),s=r(98130),a=r(78732),u=r(85087),d=r(20464);let l={begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position:void 0,sortBy:"degree",nodeSize:30,width:300,height:300};class h{constructor(t={}){this.options=t,this.id="grid",this.options=Object.assign(Object.assign({},l),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,function*(){return this.genericGridLayout(!1,t,e)})}assign(t,e){return(0,n.mG)(this,void 0,void 0,function*(){yield this.genericGridLayout(!0,t,e)})}genericGridLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,function*(){let n=Object.assign(Object.assign({},this.options),r),{begin:l=[0,0],condense:h,preventOverlapPadding:m,preventOverlap:y,rows:w,cols:x,nodeSpacing:b,nodeSize:E,width:N,height:M,position:_}=n,{sortBy:k}=n,A=e.getAllNodes(),S=e.getAllEdges(),j=null==A?void 0:A.length;if(!j||1===j)return(0,d.P)(e,t,l);let O=A.map(t=>(0,s.u)(t));"id"===k||(0,i.Z)(k)&&void 0!==O[0].data[k]||(k="degree"),"degree"===k?O.sort((t,r)=>e.getDegree(r.id,"both")-e.getDegree(t.id,"both")):"id"===k?O.sort((t,e)=>(0,o.Z)(e.id)&&(0,o.Z)(t.id)?e.id-t.id:`${t.id}`.localeCompare(`${e.id}`)):O.sort((t,e)=>e.data[k]-t.data[k]);let R=N||"undefined"==typeof window?N:window.innerWidth,z=M||"undefined"==typeof window?M:window.innerHeight,I={rows:w,cols:x};if(null!=w&&null!=x)I.rows=w,I.cols=x;else if(null!=w&&null==x)I.rows=w,I.cols=Math.ceil(j/I.rows);else if(null==w&&null!=x)I.cols=x,I.rows=Math.ceil(j/I.cols);else{let t=Math.sqrt(j*z/R);I.rows=Math.round(t),I.cols=Math.round(R/z*t)}if(I.rows=Math.max(I.rows,1),I.cols=Math.max(I.cols,1),I.cols*I.rows>j){let t=c(I),e=f(I);(t-1)*e>=j?c(I,t-1):(e-1)*t>=j&&f(I,e-1)}else for(;I.cols*I.rows=j?f(I,e+1):c(I,t+1)}let C=h?0:R/I.cols,D=h?0:z/I.rows;if(y||b){let t=(0,a.jE)(10,b),r=(0,a.tO)(30,E,!1);O.forEach(n=>{let i,o;n.data.x&&n.data.y||(n.data.x=0,n.data.y=0);let s=e.getNode(n.id),a=r(s)||30;(0,u.k)(a)?(i=a[0],o=a[1]):(i=a,o=a);let d=void 0!==t?t(n):m,l=i+d,h=o+d;C=Math.max(C,l),D=Math.max(D,h)})}let P={},T={row:0,col:0},L={};for(let t=0;t{e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y})}),{nodes:O,edges:S}})}}let c=(t,e)=>{let r;let n=t.rows||5,i=t.cols||5;return null==e?r=Math.min(n,i):Math.min(n,i)===t.rows?t.rows=e:t.cols=e,r},f=(t,e)=>{let r;let n=t.rows||5,i=t.cols||5;return null==e?r=Math.max(n,i):Math.max(n,i)===t.rows?t.rows=e:t.cols=e,r},g=(t,e)=>t[`c-${e.row}-${e.col}`]||!1,p=(t,e)=>t[`c-${e.row}-${e.col}`]=!0,m=(t,e)=>{let r=t.cols||5;e.col++,e.col>=r&&(e.col=0,e.row++)},v=(t,e,r,n,i,o,s,a)=>{let u,d;let l=i[t.id];if(l)u=l.col*r+r/2+e[0],d=l.row*n+n/2+e[1];else{for(;g(a,s);)m(o,s);u=s.col*r+r/2+e[0],d=s.row*n+n/2+e[1],p(a,s),m(o,s)}t.data.x=u,t.data.y=d}},64912:function(t,e,r){"use strict";r.d(e,{A:function(){return d}});var n=r(97582),i=r(93396),o=r(80628),s=r(98130),a=r(20464);let u={center:[0,0],linkDistance:50};class d{constructor(t={}){this.options=t,this.id="mds",this.options=Object.assign(Object.assign({},u),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,function*(){return this.genericMDSLayout(!1,t,e)})}assign(t,e){return(0,n.mG)(this,void 0,void 0,function*(){yield this.genericMDSLayout(!0,t,e)})}genericMDSLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,function*(){let n=Object.assign(Object.assign({},this.options),r),{center:i=[0,0],linkDistance:u=50}=n,d=e.getAllNodes(),c=e.getAllEdges();if(!(null==d?void 0:d.length)||1===d.length)return(0,a.P)(e,t,i);let f=(0,o.zJ)({nodes:d,edges:c},!1),g=(0,o.qs)(f);l(g);let p=(0,o.nu)(g,u),m=h(p),v=[];return m.forEach((t,e)=>{let r=(0,s.u)(d[e]);r.data.x=t[0]+i[0],r.data.y=t[1]+i[1],v.push(r)}),t&&v.forEach(t=>e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y})),{nodes:v,edges:c}})}}let l=t=>{let e=-999999;t.forEach(t=>{t.forEach(t=>{t!==1/0&&e{r.forEach((r,i)=>{r===1/0&&(t[n][i]=e)})})},h=t=>{let e=i.y3.mul(i.y3.pow(t,2),-.5),r=e.mean("row"),n=e.mean("column"),o=e.mean();e.add(o).subRowVector(r).subColumnVector(n);let s=new i.Sc(e),a=i.y3.sqrt(s.diagonalMatrix).diagonal();return s.leftSingularVectors.toJSON().map(t=>i.y3.mul([t],[a]).toJSON()[0].splice(0,2))}},29257:function(t,e,r){"use strict";r.d(e,{D:function(){return m}});var n=r(97582),i=r(52940),o=r(80628),s=r(78732),a=r(98130),u=r(20464),d=r(93396);let l=(t,e,r)=>{try{let r=d.y3.mul(d.y3.pow(e,2),-.5),n=r.mean("row"),i=r.mean("column"),o=r.mean();r.add(o).subRowVector(n).subColumnVector(i);let s=new d.Sc(r),a=d.y3.sqrt(s.diagonalMatrix).diagonal();return s.leftSingularVectors.toJSON().map(e=>d.y3.mul([e],[a]).toJSON()[0].splice(0,t))}catch(n){let t=[];for(let n=0;n{let r=Object.assign(Object.assign({},h),e),{positions:n,iterations:i,width:o,k:s,speed:a=100,strictRadial:u,focusIdx:d,radii:l=[],nodeSizeFunc:c}=r,p=t.getAllNodes(),m=[],v=o/10;for(let t=0;t{m[e]={x:0,y:0}}),f(p,n,m,s,l,c),g(n,m,a,u,d,v,o,l);return n},f=(t,e,r,n,i,o)=>{e.forEach((s,a)=>{r[a]={x:0,y:0},e.forEach((e,u)=>{if(a===u||i[a]!==i[u])return;let d=s.x-e.x,l=s.y-e.y,h=Math.sqrt(d*d+l*l);if(0===h){h=1;let t=a>u?1:-1;d=.01*t,l=.01*t}if(h{let u=o||s/10;return n&&e.forEach((e,r)=>{let n=t[r].x-t[i].x,o=t[r].y-t[i].y,s=Math.sqrt(n*n+o*o),a=o/s,u=-n/s,d=Math.sqrt(e.x*e.x+e.y*e.y),l=Math.acos((a*e.x+u*e.y)/d);l>Math.PI/2&&(l-=Math.PI/2,a*=-1,u*=-1);let h=Math.cos(l)*d;e.x=a*h,e.y=u*h}),t.forEach((o,s)=>{if(s===i)return;let d=Math.sqrt(e[s].x*e[s].x+e[s].y*e[s].y);if(d>0&&s!==i){let l=Math.min(u*(r/800),d);if(o.x+=e[s].x/d*l,o.y+=e[s].y/d*l,n){let e=o.x-t[i].x,r=o.y-t[i].y,n=Math.sqrt(e*e+r*r);e=e/n*a[s],r=r/n*a[s],o.x=t[i].x+e,o.y=t[i].y+r}}}),t},p={maxIteration:1e3,focusNode:null,unitRadius:null,linkDistance:50,preventOverlap:!1,strictRadial:!0,maxPreventOverlapIteration:200,sortStrength:10};class m{constructor(t={}){this.options=t,this.id="radial",this.options=Object.assign(Object.assign({},p),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,function*(){return this.genericRadialLayout(!1,t,e)})}assign(t,e){return(0,n.mG)(this,void 0,void 0,function*(){yield this.genericRadialLayout(!0,t,e)})}genericRadialLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,function*(){let n;let d=Object.assign(Object.assign({},this.options),r),{width:h,height:f,center:g,focusNode:p,unitRadius:m,nodeSize:E,nodeSpacing:N,strictRadial:M,preventOverlap:_,maxPreventOverlapIteration:k,sortBy:A,linkDistance:S=50,sortStrength:j=10,maxIteration:O=1e3}=d,R=e.getAllNodes(),z=e.getAllEdges(),I=h||"undefined"==typeof window?h:window.innerWidth,C=f||"undefined"==typeof window?f:window.innerHeight,D=g||[I/2,C/2];if(!(null==R?void 0:R.length)||1===R.length)return(0,u.P)(e,t,D);let P=R[0];if((0,i.Z)(p)){for(let t=0;tD[0]?D[0]:I-D[0],V=C-D[1]>D[1]?D[1]:C-D[1];0===G&&(G=I/2),0===V&&(V=C/2);let U=Math.min(G,V),$=[],B=m||U/Math.max(...Z);Z.forEach((t,e)=>{$[e]=t*B});let W=v(R,F,S,$,B,A,j),Y=y(W),H=l(S,W,S),J=H.map(([t,e])=>({x:(isNaN(t)?Math.random()*S:t)-H[T][0],y:(isNaN(e)?Math.random()*S:e)-H[T][1]}));if(this.run(O,J,Y,W,$,T),_){n=(0,s.gl)(E,N);let t={nodes:R,nodeSizeFunc:n,positions:J,radii:$,height:C,width:I,strictRadial:!!M,focusIdx:T,iterations:k||200,k:J.length/4.5};J=c(e,t)}let K=[];return J.forEach((t,e)=>{let r=(0,a.u)(R[e]);r.data.x=t.x+D[0],r.data.y=t.y+D[1],K.push(r)}),t&&K.forEach(t=>e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y})),{nodes:K,edges:z}})}run(t,e,r,n,i,o){for(let s=0;s<=t;s++){let a=s/t;this.oneIteration(a,e,i,n,r,o)}}oneIteration(t,e,r,n,i,s){let a=1-t;e.forEach((u,d)=>{let l=(0,o.$y)(u,{x:0,y:0}),h=0===l?0:1/l;if(d===s)return;let c=0,f=0,g=0;e.forEach((t,e)=>{if(d===e)return;let r=(0,o.$y)(u,t),s=0===r?0:1/r,a=n[e][d];g+=i[d][e],c+=i[d][e]*(t.x+a*(u.x-t.x)*s),f+=i[d][e]*(t.y+a*(u.y-t.y)*s)});let p=0===r[d]?0:1/r[d];g*=a,g+=t*p*p,c*=a,c+=t*p*u.x*h,u.x=c/g,f*=a,f+=t*p*u.y*h,u.y=f/g})}}let v=(t,e,r,n,o,s,a)=>{if(!t)return[];let u=[];if(e){let d={};e.forEach((e,l)=>{let h=[];e.forEach((e,u)=>{var c,f;if(l===u)h.push(0);else if(n[l]===n[u]){if("data"===s)h.push(e*(Math.abs(l-u)*a)/(n[l]/o));else if(s){let r,g;if(d[t[l].id])r=d[t[l].id];else{let e=("id"===s?t[l].id:null===(c=t[l].data)||void 0===c?void 0:c[s])||0;r=(0,i.Z)(e)?e.charCodeAt(0):e,d[t[l].id]=r}if(d[t[u].id])g=d[t[u].id];else{let e=("id"===s?t[u].id:null===(f=t[u].data)||void 0===f?void 0:f[s])||0;g=(0,i.Z)(e)?e.charCodeAt(0):e,d[t[u].id]=g}h.push(e*(Math.abs(r-g)*a)/(n[l]/o))}else h.push(e*r/(n[l]/o))}else{let t=(r+o)/2;h.push(e*t)}}),u.push(h)})}return u},y=t=>{let e=t.length,r=t[0].length,n=[];for(let i=0;i{let r=-1;return t.forEach((t,n)=>{t.id===e&&(r=n)}),Math.max(r,0)},x=(t,e,r)=>{let n=t.length;for(let i=0;i{let r=0;for(let n=0;nr?t[e][n]:r);return r}},26629:function(t,e,r){"use strict";r.d(e,{_:function(){return o}});var n=r(97582);let i={center:[0,0],width:300,height:300};class o{constructor(t={}){this.options=t,this.id="random",this.options=Object.assign(Object.assign({},i),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,function*(){return this.genericRandomLayout(!1,t,e)})}assign(t,e){return(0,n.mG)(this,void 0,void 0,function*(){yield this.genericRandomLayout(!0,t,e)})}genericRandomLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,function*(){let n=Object.assign(Object.assign({},this.options),r),{center:i,width:o,height:s}=n,a=e.getAllNodes(),u=o||"undefined"==typeof window?o:window.innerWidth,d=s||"undefined"==typeof window?s:window.innerHeight,l=i||[u/2,d/2],h=[];a&&a.forEach(t=>{h.push({id:t.id,data:{x:(Math.random()-.5)*.9*u+l[0],y:(Math.random()-.5)*.9*d+l[1]}})}),t&&h.forEach(t=>e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y}));let c={nodes:h,edges:e.getAllEdges()};return c})}}},10779:function(t,e,r){"use strict";function n(t){return!!t.tick&&!!t.stop}r.d(e,{h:function(){return n}})},85087:function(t,e,r){"use strict";r.d(e,{k:function(){return n}});let n=Array.isArray},20464:function(t,e,r){"use strict";r.d(e,{P:function(){return n}});let n=(t,e,r)=>{let n=t.getAllNodes(),i=t.getAllEdges();if(!(null==n?void 0:n.length))return{nodes:[],edges:i};if(1===n.length){e&&t.mergeNodeData(n[0].id,{x:r[0],y:r[1]});let o={nodes:[Object.assign(Object.assign({},n[0]),{data:Object.assign(Object.assign({},n[0].data),{x:r[0],y:r[1]})})],edges:i};return o}}},78732:function(t,e,r){"use strict";r.d(e,{gl:function(){return u},jE:function(){return s},tO:function(){return a}});var n=r(38027),i=r(61035),o=r(97653);function s(t,e){return(0,n.Z)(e)?e:(0,i.Z)(e)?()=>e:()=>t}function a(t,e,r=!0){return e||0===e?(0,n.Z)(e)?e:(0,i.Z)(e)?()=>e:Array.isArray(e)?()=>{if(r){let r=Math.max(...e);return isNaN(r)?t:r}return e}:(0,o.Z)(e)?()=>{if(r){let r=Math.max(e.width,e.height);return isNaN(r)?t:r}return[e.width,e.height]}:()=>t:e=>{let{size:r}=e.data||{};return r?Array.isArray(r)?r[0]>r[1]?r[0]:r[1]:(0,o.Z)(r)?r.width>r.height?r.width:r.height:r:t}}let u=(t,e)=>{let r;return r=(0,i.Z)(e)?()=>e:(0,n.Z)(e)?e:()=>0,t?Array.isArray(t)?e=>{let n=t[0]>t[1]?t[0]:t[1];return n+r(e)}:(0,n.Z)(t)?t:e=>t+r(e):t=>{var e,n;if(null===(e=t.data)||void 0===e?void 0:e.bboxSize)return Math.max(t.data.bboxSize[0],t.data.bboxSize[1])+r(t);if(null===(n=t.data)||void 0===n?void 0:n.size){if(Array.isArray(t.data.size))return Math.max(t.data.size[0],t.data.size[1])+r(t);let e=t.data.size;if((0,o.Z)(e)){let n=e.width>e.height?e.width:e.height;return n+r(t)}return e+r(t)}return 10+r(t)}}},80628:function(t,e,r){"use strict";r.d(e,{$y:function(){return d},H0:function(){return u},_:function(){return l},nu:function(){return a},qs:function(){return o},zJ:function(){return s}});var n=r(61035),i=r(85087);let o=t=>{let e=[],r=t.length;for(let n=0;ne[n][t]+e[t][i]&&(e[n][i]=e[n][t]+e[t][i]);return e},s=(t,e)=>{let{nodes:r,edges:n}=t,i=[],o={};if(!r)throw Error("invalid nodes data!");return r&&r.forEach((t,e)=>{o[t.id]=e,i.push([])}),null==n||n.forEach(t=>{let{source:r,target:n}=t,s=o[r],a=o[n];void 0===s||void 0===a||(i[s][a]=1,e||(i[a][s]=1))}),i},a=(t,e)=>{let r=[];return t.forEach(t=>{let n=[];t.forEach(t=>{n.push(t*e)}),r.push(n)}),r},u=t=>{let e=1/0,r=1/0,o=-1/0,s=-1/0;return t.forEach(t=>{let a=t.data.size;(0,i.k)(a)?1===a.length&&(a=[a[0],a[0]]):(0,n.Z)(a)?a=[a,a]:(void 0===a||isNaN(a))&&(a=[30,30]);let u=[a[0]/2,a[1]/2],d=t.data.x-u[0],l=t.data.x+u[0],h=t.data.y-u[1],c=t.data.y+u[1];e>d&&(e=d),r>h&&(r=h),oMath.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y)),l=(t,e,r,n="TB",i,o={})=>{if(!(null==e?void 0:e.length))return;let{stopBranchFn:s,stopAllFn:a}=o;for(let u=0;u{if(null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array){let e=[];return t.forEach(t=>{e.push(t)}),e.map(t=>i(t))}if("object"==typeof t){let e={};return Object.keys(t).forEach(r=>{e[r]=i(t[r])}),e}return t},o=(t,e)=>{let r=i(t);return r.data=r.data||{},e&&((0,n.Z)(r.data.x)||(r.data.x=Math.random()*e[0]),(0,n.Z)(r.data.y)||(r.data.y=Math.random()*e[1])),r}},59145:function(t,e,r){"use strict";var n=r(19782);e.Z=function(t){return Array.isArray?Array.isArray(t):(0,n.Z)(t,"Array")}},38027:function(t,e){"use strict";e.Z=function(t){return"function"==typeof t}},61035:function(t,e,r){"use strict";var n=r(19782);e.Z=function(t){return(0,n.Z)(t,"Number")}},97653:function(t,e){"use strict";e.Z=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e}},52940:function(t,e,r){"use strict";var n=r(19782);e.Z=function(t){return(0,n.Z)(t,"String")}},19782:function(t,e){"use strict";var r={}.toString;e.Z=function(t,e){return r.call(t)==="[object "+e+"]"}},70681:function(t,e,r){t.exports={graphlib:r(70574),layout:r(98123),debug:r(27570),util:{time:r(11138).time,notime:r(11138).notime},version:r(88177)}},92188:function(t,e,r){"use strict";var n=r(38436),i=r(74079);t.exports={run:function(t){var e,r,o,s="greedy"===t.graph().acyclicer?i(t,function(e){return t.edge(e).weight}):(e=[],r={},o={},n.forEach(t.nodes(),function i(s){n.has(o,s)||(o[s]=!0,r[s]=!0,n.forEach(t.outEdges(s),function(t){n.has(r,t.w)?e.push(t):i(t.w)}),delete r[s])}),e);n.forEach(s,function(e){var r=t.edge(e);t.removeEdge(e),r.forwardName=e.name,r.reversed=!0,t.setEdge(e.w,e.v,r,n.uniqueId("rev"))})},undo:function(t){n.forEach(t.edges(),function(e){var r=t.edge(e);if(r.reversed){t.removeEdge(e);var n=r.forwardName;delete r.reversed,delete r.forwardName,t.setEdge(e.w,e.v,r,n)}})}}},61133:function(t,e,r){var n=r(38436),i=r(11138);function o(t,e,r,n,o,s){var a=o[e][s-1],u=i.addDummyNode(t,"border",{width:0,height:0,rank:s,borderType:e},r);o[e][s]=u,t.setParent(u,n),a&&t.setEdge(a,u,{weight:1})}t.exports=function(t){n.forEach(t.children(),function e(r){var i=t.children(r),s=t.node(r);if(i.length&&n.forEach(i,e),n.has(s,"minRank")){s.borderLeft=[],s.borderRight=[];for(var a=s.minRank,u=s.maxRank+1;a=t.nodeCount())return[];var r,d,l,h,c,f,g=(r=e||s,d=new i,l=0,h=0,n.forEach(t.nodes(),function(t){d.setNode(t,{v:t,in:0,out:0})}),n.forEach(t.edges(),function(t){var e=d.edge(t.v,t.w)||0,n=r(t),i=e+n;d.setEdge(t.v,t.w,i),h=Math.max(h,d.node(t.v).out+=n),l=Math.max(l,d.node(t.w).in+=n)}),c=n.range(h+l+3).map(function(){return new o}),f=l+1,n.forEach(d.nodes(),function(t){u(c,f,d.node(t))}),{graph:d,buckets:c,zeroIdx:f}),p=function(t,e,r){for(var n,i=[],o=e[e.length-1],s=e[0];t.nodeCount();){for(;n=s.dequeue();)a(t,e,r,n);for(;n=o.dequeue();)a(t,e,r,n);if(t.nodeCount()){for(var u=e.length-2;u>0;--u)if(n=e[u].dequeue()){i=i.concat(a(t,e,r,n,!0));break}}}return i}(g.graph,g.buckets,g.zeroIdx);return n.flatten(n.map(p,function(e){return t.outEdges(e.v,e.w)}),!0)};var s=n.constant(1);function a(t,e,r,i,o){var s=o?[]:void 0;return n.forEach(t.inEdges(i.v),function(n){var i=t.edge(n),a=t.node(n.v);o&&s.push({v:n.v,w:n.w}),a.out-=i,u(e,r,a)}),n.forEach(t.outEdges(i.v),function(n){var i=t.edge(n),o=n.w,s=t.node(o);s.in-=i,u(e,r,s)}),t.removeNode(i.v),s}function u(t,e,r){r.out?r.in?t[r.out-r.in+e].enqueue(r):t[t.length-1].enqueue(r):t[0].enqueue(r)}},98123:function(t,e,r){"use strict";var n=r(38436),i=r(92188),o=r(45995),s=r(78093),a=r(11138).normalizeRanks,u=r(24219),d=r(11138).removeEmptyRanks,l=r(72981),h=r(61133),c=r(53258),f=r(53408),g=r(17873),p=r(11138),m=r(70574).Graph;t.exports=function(t,e){var r=e&&e.debugTiming?p.time:p.notime;r("layout",function(){var e=r(" buildLayoutGraph",function(){var e,r;return e=new m({multigraph:!0,compound:!0}),r=k(t.graph()),e.setGraph(n.merge({},y,_(r,v),n.pick(r,w))),n.forEach(t.nodes(),function(r){var i=k(t.node(r));e.setNode(r,n.defaults(_(i,x),b)),e.setParent(r,t.parent(r))}),n.forEach(t.edges(),function(r){var i=k(t.edge(r));e.setEdge(r,n.merge({},N,_(i,E),n.pick(i,M)))}),e});r(" runLayout",function(){r(" makeSpaceForEdgeLabels",function(){var t;t=e.graph(),t.ranksep/=2,n.forEach(e.edges(),function(r){var n=e.edge(r);n.minlen*=2,"c"!==n.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?n.width+=n.labeloffset:n.height+=n.labeloffset)})}),r(" removeSelfEdges",function(){n.forEach(e.edges(),function(t){if(t.v===t.w){var r=e.node(t.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}),r(" acyclic",function(){i.run(e)}),r(" nestingGraph.run",function(){l.run(e)}),r(" rank",function(){s(p.asNonCompoundGraph(e))}),r(" injectEdgeLabelProxies",function(){n.forEach(e.edges(),function(t){var r=e.edge(t);if(r.width&&r.height){var n=e.node(t.v),i={rank:(e.node(t.w).rank-n.rank)/2+n.rank,e:t};p.addDummyNode(e,"edge-proxy",i,"_ep")}})}),r(" removeEmptyRanks",function(){d(e)}),r(" nestingGraph.cleanup",function(){l.cleanup(e)}),r(" normalizeRanks",function(){a(e)}),r(" assignRankMinMax",function(){var t;t=0,n.forEach(e.nodes(),function(r){var i=e.node(r);i.borderTop&&(i.minRank=e.node(i.borderTop).rank,i.maxRank=e.node(i.borderBottom).rank,t=n.max(t,i.maxRank))}),e.graph().maxRank=t}),r(" removeEdgeLabelProxies",function(){n.forEach(e.nodes(),function(t){var r=e.node(t);"edge-proxy"===r.dummy&&(e.edge(r.e).labelRank=r.rank,e.removeNode(t))})}),r(" normalize.run",function(){o.run(e)}),r(" parentDummyChains",function(){u(e)}),r(" addBorderSegments",function(){h(e)}),r(" order",function(){f(e)}),r(" insertSelfEdges",function(){var t;t=p.buildLayerMatrix(e),n.forEach(t,function(t){var r=0;n.forEach(t,function(t,i){var o=e.node(t);o.order=i+r,n.forEach(o.selfEdges,function(t){p.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:o.rank,order:i+ ++r,e:t.e,label:t.label},"_se")}),delete o.selfEdges})})}),r(" adjustCoordinateSystem",function(){c.adjust(e)}),r(" position",function(){g(e)}),r(" positionSelfEdges",function(){n.forEach(e.nodes(),function(t){var r=e.node(t);if("selfedge"===r.dummy){var n=e.node(r.e.v),i=n.x+n.width/2,o=n.y,s=r.x-i,a=n.height/2;e.setEdge(r.e,r.label),e.removeNode(t),r.label.points=[{x:i+2*s/3,y:o-a},{x:i+5*s/6,y:o-a},{x:i+s,y:o},{x:i+5*s/6,y:o+a},{x:i+2*s/3,y:o+a}],r.label.x=r.x,r.label.y=r.y}})}),r(" removeBorderNodes",function(){n.forEach(e.nodes(),function(t){if(e.children(t).length){var r=e.node(t),i=e.node(r.borderTop),o=e.node(r.borderBottom),s=e.node(n.last(r.borderLeft)),a=e.node(n.last(r.borderRight));r.width=Math.abs(a.x-s.x),r.height=Math.abs(o.y-i.y),r.x=s.x+r.width/2,r.y=i.y+r.height/2}}),n.forEach(e.nodes(),function(t){"border"===e.node(t).dummy&&e.removeNode(t)})}),r(" normalize.undo",function(){o.undo(e)}),r(" fixupEdgeLabelCoords",function(){n.forEach(e.edges(),function(t){var r=e.edge(t);if(n.has(r,"x"))switch(("l"===r.labelpos||"r"===r.labelpos)&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset}})}),r(" undoCoordinateSystem",function(){c.undo(e)}),r(" translateGraph",function(){(function(t){var e=Number.POSITIVE_INFINITY,r=0,i=Number.POSITIVE_INFINITY,o=0,s=t.graph(),a=s.marginx||0,u=s.marginy||0;function d(t){var n=t.x,s=t.y,a=t.width,u=t.height;e=Math.min(e,n-a/2),r=Math.max(r,n+a/2),i=Math.min(i,s-u/2),o=Math.max(o,s+u/2)}n.forEach(t.nodes(),function(e){d(t.node(e))}),n.forEach(t.edges(),function(e){var r=t.edge(e);n.has(r,"x")&&d(r)}),e-=a,i-=u,n.forEach(t.nodes(),function(r){var n=t.node(r);n.x-=e,n.y-=i}),n.forEach(t.edges(),function(r){var o=t.edge(r);n.forEach(o.points,function(t){t.x-=e,t.y-=i}),n.has(o,"x")&&(o.x-=e),n.has(o,"y")&&(o.y-=i)}),s.width=r-e+a,s.height=o-i+u})(e)}),r(" assignNodeIntersects",function(){n.forEach(e.edges(),function(t){var r,n,i=e.edge(t),o=e.node(t.v),s=e.node(t.w);i.points?(r=i.points[0],n=i.points[i.points.length-1]):(i.points=[],r=s,n=o),i.points.unshift(p.intersectRect(o,r)),i.points.push(p.intersectRect(s,n))})}),r(" reversePoints",function(){n.forEach(e.edges(),function(t){var r=e.edge(t);r.reversed&&r.points.reverse()})}),r(" acyclic.undo",function(){i.undo(e)})}),r(" updateInputGraph",function(){n.forEach(t.nodes(),function(r){var n=t.node(r),i=e.node(r);n&&(n.x=i.x,n.y=i.y,e.children(r).length&&(n.width=i.width,n.height=i.height))}),n.forEach(t.edges(),function(r){var i=t.edge(r),o=e.edge(r);i.points=o.points,n.has(o,"x")&&(i.x=o.x,i.y=o.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height})})};var v=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},w=["acyclicer","ranker","rankdir","align"],x=["width","height"],b={width:0,height:0},E=["minlen","weight","width","height","labeloffset"],N={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},M=["labelpos"];function _(t,e){return n.mapValues(n.pick(t,e),Number)}function k(t){var e={};return n.forEach(t,function(t,r){e[r.toLowerCase()]=t}),e}},38436:function(t,e,r){var n;try{n={cloneDeep:r(50361),constant:r(75703),defaults:r(91747),each:r(66073),filter:r(63105),find:r(13311),flatten:r(85564),forEach:r(84486),forIn:r(62620),has:r(18721),isUndefined:r(52353),last:r(10928),map:r(35161),mapValues:r(66604),max:r(6162),merge:r(82492),min:r(53632),minBy:r(22762),now:r(7771),pick:r(78718),range:r(96026),reduce:r(54061),sortBy:r(89734),uniqueId:r(73955),values:r(52628),zipObject:r(7287)}}catch(t){}n||(n=window._),t.exports=n},72981:function(t,e,r){var n=r(38436),i=r(11138);t.exports={run:function(t){var e,r=i.addDummyNode(t,"root",{},"_root"),o=(e={},n.forEach(t.children(),function(r){!function r(i,o){var s=t.children(i);s&&s.length&&n.forEach(s,function(t){r(t,o+1)}),e[i]=o}(r,1)}),e),s=n.max(n.values(o))-1,a=2*s+1;t.graph().nestingRoot=r,n.forEach(t.edges(),function(e){t.edge(e).minlen*=a});var u=n.reduce(t.edges(),function(e,r){return e+t.edge(r).weight},0)+1;n.forEach(t.children(),function(e){(function t(e,r,o,s,a,u,d){var l=e.children(d);if(!l.length){d!==r&&e.setEdge(r,d,{weight:0,minlen:o});return}var h=i.addBorderNode(e,"_bt"),c=i.addBorderNode(e,"_bb"),f=e.node(d);e.setParent(h,d),f.borderTop=h,e.setParent(c,d),f.borderBottom=c,n.forEach(l,function(n){t(e,r,o,s,a,u,n);var i=e.node(n),l=i.borderTop?i.borderTop:n,f=i.borderBottom?i.borderBottom:n,g=i.borderTop?s:2*s,p=l!==f?1:a-u[d]+1;e.setEdge(h,l,{weight:g,minlen:p,nestingEdge:!0}),e.setEdge(f,c,{weight:g,minlen:p,nestingEdge:!0})}),e.parent(d)||e.setEdge(r,h,{weight:0,minlen:a+u[d]})})(t,r,a,u,s,o,e)}),t.graph().nodeRankFactor=a},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,n.forEach(t.edges(),function(e){t.edge(e).nestingEdge&&t.removeEdge(e)})}}},45995:function(t,e,r){"use strict";var n=r(38436),i=r(11138);t.exports={run:function(t){t.graph().dummyChains=[],n.forEach(t.edges(),function(e){(function(t,e){var r,n,o,s=e.v,a=t.node(s).rank,u=e.w,d=t.node(u).rank,l=e.name,h=t.edge(e),c=h.labelRank;if(d!==a+1){for(t.removeEdge(e),o=0,++a;a0;)e%2&&(r+=u[e+1]),e=e-1>>1,u[e]+=t.weight;d+=t.weight*r})),d}(t,e[i-1],e[i]);return r}},53408:function(t,e,r){"use strict";var n=r(38436),i=r(2588),o=r(56630),s=r(61026),a=r(23128),u=r(55093),d=r(70574).Graph,l=r(11138);function h(t,e,r){return n.map(e,function(e){return a(t,e,r)})}function c(t,e){n.forEach(e,function(e){n.forEach(e,function(e,r){t.node(e).order=r})})}t.exports=function(t){var e=l.maxRank(t),r=h(t,n.range(1,e+1),"inEdges"),a=h(t,n.range(e-1,-1,-1),"outEdges"),f=i(t);c(t,f);for(var g,p=Number.POSITIVE_INFINITY,m=0,v=0;v<4;++m,++v){(function(t,e){var r=new d;n.forEach(t,function(t){var i=t.graph().root,o=s(t,i,r,e);n.forEach(o.vs,function(e,r){t.node(e).order=r}),u(t,r,o.vs)})})(m%2?r:a,m%4>=2),f=l.buildLayerMatrix(t);var y=o(t,f);y=t.barycenter)&&function(t,e){var r=0,n=0;t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=r/n,t.weight=n,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}(r)),n.forEach(r.out,function(e){return function(r){r.in.push(e),0==--r.indegree&&t.push(r)}}(r))}return n.map(n.filter(e,function(t){return!t.merged}),function(t){return n.pick(t,["vs","i","barycenter","weight"])})}(n.filter(r,function(t){return!t.indegree}))}},61026:function(t,e,r){var n=r(38436),i=r(35439),o=r(83678),s=r(87304);t.exports=function t(e,r,a,u){var d=e.children(r),l=e.node(r),h=l?l.borderLeft:void 0,c=l?l.borderRight:void 0,f={};h&&(d=n.filter(d,function(t){return t!==h&&t!==c}));var g=i(e,d);n.forEach(g,function(r){if(e.children(r.v).length){var i=t(e,r.v,a,u);f[r.v]=i,n.has(i,"barycenter")&&(n.isUndefined(r.barycenter)?(r.barycenter=i.barycenter,r.weight=i.weight):(r.barycenter=(r.barycenter*r.weight+i.barycenter*i.weight)/(r.weight+i.weight),r.weight+=i.weight))}});var p=o(g,a);n.forEach(p,function(t){t.vs=n.flatten(t.vs.map(function(t){return f[t]?f[t].vs:t}),!0)});var m=s(p,u);if(h&&(m.vs=n.flatten([h,m.vs,c],!0),e.predecessors(h).length)){var v=e.node(e.predecessors(h)[0]),y=e.node(e.predecessors(c)[0]);n.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+v.order+y.order)/(m.weight+2),m.weight+=2}return m}},87304:function(t,e,r){var n=r(38436),i=r(11138);function o(t,e,r){for(var i;e.length&&(i=n.last(e)).i<=r;)e.pop(),t.push(i.vs),r++;return r}t.exports=function(t,e){var r,s=i.partition(t,function(t){return n.has(t,"barycenter")}),a=s.lhs,u=n.sortBy(s.rhs,function(t){return-t.i}),d=[],l=0,h=0,c=0;a.sort((r=!!e,function(t,e){return t.barycentere.barycenter?1:r?e.i-t.i:t.i-e.i})),c=o(d,u,c),n.forEach(a,function(t){c+=t.vs.length,d.push(t.vs),l+=t.barycenter*t.weight,h+=t.weight,c=o(d,u,c)});var f={vs:n.flatten(d,!0)};return h&&(f.barycenter=l/h,f.weight=h),f}},24219:function(t,e,r){var n=r(38436);t.exports=function(t){var e,r,i=(e={},r=0,n.forEach(t.children(),function i(o){var s=r;n.forEach(t.children(o),i),e[o]={low:s,lim:r++}}),e);n.forEach(t.graph().dummyChains,function(e){for(var r=t.node(e),n=r.edgeObj,o=function(t,e,r,n){var i,o,s=[],a=[],u=Math.min(e[r].low,e[n].low),d=Math.max(e[r].lim,e[n].lim);i=r;do s.push(i=t.parent(i));while(i&&(e[i].low>u||d>e[i].lim));for(o=i,i=n;(i=t.parent(i))!==o;)a.push(i);return{path:s.concat(a.reverse()),lca:o}}(t,i,n.v,n.w),s=o.path,a=o.lca,u=0,d=s[0],l=!0;e!==n.w;){if(r=t.node(e),l){for(;(d=s[u])!==a&&t.node(d).maxRanka)&&u(r,e,d)})})}return n.reduce(e,function(e,r){var o,s=-1,a=0;return n.forEach(r,function(n,u){if("border"===t.node(n).dummy){var d=t.predecessors(n);d.length&&(i(r,a,u,s,o=t.node(d[0]).order),a=u,s=o)}i(r,a,r.length,o,e.length)}),r}),r}function u(t,e,r){if(e>r){var n=e;e=r,r=n}var i=t[e];i||(t[e]=i={}),i[r]=!0}function d(t,e,r){if(e>r){var i=e;e=r,r=i}return n.has(t[e],r)}function l(t,e,r,i){var o={},s={},a={};return n.forEach(e,function(t){n.forEach(t,function(t,e){o[t]=t,s[t]=t,a[t]=e})}),n.forEach(e,function(t){var e=-1;n.forEach(t,function(t){var u=i(t);if(u.length)for(var l=((u=n.sortBy(u,function(t){return a[t]})).length-1)/2,h=Math.floor(l),c=Math.ceil(l);h<=c;++h){var f=u[h];s[t]===t&&eu.lim&&(d=u,l=!0);var h=n.filter(e.edges(),function(e){return l===v(t,t.node(e.v),d)&&l!==v(t,t.node(e.w),d)});return n.minBy(h,function(t){return o(e,t)})}function m(t,e,r,i){var o,s,u=r.v,d=r.w;t.removeEdge(u,d),t.setEdge(i.v,i.w,{}),f(t),h(t,e),o=n.find(t.nodes(),function(t){return!e.node(t).parent}),s=(s=a(t,o)).slice(1),n.forEach(s,function(r){var n=t.node(r).parent,i=e.edge(r,n),o=!1;i||(i=e.edge(n,r),o=!0),e.node(r).rank=e.node(n).rank+(o?i.minlen:-i.minlen)})}function v(t,e,r){return r.low<=e.lim&&e.lim<=r.lim}t.exports=l,l.initLowLimValues=f,l.initCutValues=h,l.calcCutValue=c,l.leaveEdge=g,l.enterEdge=p,l.exchangeEdges=m},76681:function(t,e,r){"use strict";var n=r(38436);t.exports={longestPath:function(t){var e={};n.forEach(t.sources(),function r(i){var o=t.node(i);if(n.has(e,i))return o.rank;e[i]=!0;var s=n.min(n.map(t.outEdges(i),function(e){return r(e.w)-t.edge(e).minlen}));return(s===Number.POSITIVE_INFINITY||null==s)&&(s=0),o.rank=s})},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},11138:function(t,e,r){"use strict";var n=r(38436),i=r(70574).Graph;function o(t,e,r,i){var o;do o=n.uniqueId(i);while(t.hasNode(o));return r.dummy=e,t.setNode(o,r),o}function s(t){return n.max(n.map(t.nodes(),function(e){var r=t.node(e).rank;if(!n.isUndefined(r))return r}))}t.exports={addDummyNode:o,simplify:function(t){var e=new i().setGraph(t.graph());return n.forEach(t.nodes(),function(r){e.setNode(r,t.node(r))}),n.forEach(t.edges(),function(r){var n=e.edge(r.v,r.w)||{weight:0,minlen:1},i=t.edge(r);e.setEdge(r.v,r.w,{weight:n.weight+i.weight,minlen:Math.max(n.minlen,i.minlen)})}),e},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return n.forEach(t.nodes(),function(r){t.children(r).length||e.setNode(r,t.node(r))}),n.forEach(t.edges(),function(r){e.setEdge(r,t.edge(r))}),e},successorWeights:function(t){var e=n.map(t.nodes(),function(e){var r={};return n.forEach(t.outEdges(e),function(e){r[e.w]=(r[e.w]||0)+t.edge(e).weight}),r});return n.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=n.map(t.nodes(),function(e){var r={};return n.forEach(t.inEdges(e),function(e){r[e.v]=(r[e.v]||0)+t.edge(e).weight}),r});return n.zipObject(t.nodes(),e)},intersectRect:function(t,e){var r,n,i=t.x,o=t.y,s=e.x-i,a=e.y-o,u=t.width/2,d=t.height/2;if(!s&&!a)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(a)*u>Math.abs(s)*d?(a<0&&(d=-d),r=d*s/a,n=d):(s<0&&(u=-u),r=u,n=u*a/s),{x:i+r,y:o+n}},buildLayerMatrix:function(t){var e=n.map(n.range(s(t)+1),function(){return[]});return n.forEach(t.nodes(),function(r){var i=t.node(r),o=i.rank;n.isUndefined(o)||(e[o][i.order]=r)}),e},normalizeRanks:function(t){var e=n.min(n.map(t.nodes(),function(e){return t.node(e).rank}));n.forEach(t.nodes(),function(r){var i=t.node(r);n.has(i,"rank")&&(i.rank-=e)})},removeEmptyRanks:function(t){var e=n.min(n.map(t.nodes(),function(e){return t.node(e).rank})),r=[];n.forEach(t.nodes(),function(n){var i=t.node(n).rank-e;r[i]||(r[i]=[]),r[i].push(n)});var i=0,o=t.graph().nodeRankFactor;n.forEach(r,function(e,r){n.isUndefined(e)&&r%o!=0?--i:i&&n.forEach(e,function(e){t.node(e).rank+=i})})},addBorderNode:function(t,e,r,n){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=n),o(t,"border",i,e)},maxRank:s,partition:function(t,e){var r={lhs:[],rhs:[]};return n.forEach(t,function(t){e(t)?r.lhs.push(t):r.rhs.push(t)}),r},time:function(t,e){var r=n.now();try{return e()}finally{console.log(t+" time: "+(n.now()-r)+"ms")}},notime:function(t,e){return e()}}},88177:function(t){t.exports="0.8.5"},28282:function(t,e,r){var n=r(82354);t.exports={Graph:n.Graph,json:r(28974),alg:r(12440),version:n.version}},2842:function(t,e,r){var n=r(89126);t.exports=function(t){var e,r={},i=[];return n.each(t.nodes(),function(o){e=[],function i(o){n.has(r,o)||(r[o]=!0,e.push(o),n.each(t.successors(o),i),n.each(t.predecessors(o),i))}(o),e.length&&i.push(e)}),i}},53984:function(t,e,r){var n=r(89126);t.exports=function(t,e,r){n.isArray(e)||(e=[e]);var i=(t.isDirected()?t.successors:t.neighbors).bind(t),o=[],s={};return n.each(e,function(e){if(!t.hasNode(e))throw Error("Graph does not have node: "+e);(function t(e,r,i,o,s,a){!n.has(o,r)&&(o[r]=!0,i||a.push(r),n.each(s(r),function(r){t(e,r,i,o,s,a)}),i&&a.push(r))})(t,e,"post"===r,s,i,o)}),o}},84847:function(t,e,r){var n=r(63763),i=r(89126);t.exports=function(t,e,r){return i.transform(t.nodes(),function(i,o){i[o]=n(t,o,e,r)},{})}},63763:function(t,e,r){var n=r(89126),i=r(75639);t.exports=function(t,e,r,n){return function(t,e,r,n){var o,s,a={},u=new i,d=function(t){var e=t.v!==o?t.v:t.w,n=a[e],i=r(t),d=s.distance+i;if(i<0)throw Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);d0&&(s=a[o=u.removeMin()]).distance!==Number.POSITIVE_INFINITY;)n(o).forEach(d);return a}(t,String(e),r||o,n||function(e){return t.outEdges(e)})};var o=n.constant(1)},9096:function(t,e,r){var n=r(89126),i=r(5023);t.exports=function(t){return n.filter(i(t),function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})}},38924:function(t,e,r){var n=r(89126);t.exports=function(t,e,r){var n,o,s,a;return n=e||i,o=r||function(e){return t.outEdges(e)},s={},(a=t.nodes()).forEach(function(t){s[t]={},s[t][t]={distance:0},a.forEach(function(e){t!==e&&(s[t][e]={distance:Number.POSITIVE_INFINITY})}),o(t).forEach(function(e){var r=e.v===t?e.w:e.v,i=n(e);s[t][r]={distance:i,predecessor:t}})}),a.forEach(function(t){var e=s[t];a.forEach(function(r){var n=s[r];a.forEach(function(r){var i=n[t],o=e[r],s=n[r],a=i.distance+o.distance;a0;){if(r=u.removeMin(),n.has(a,r))s.setEdge(r,a[r]);else if(l)throw Error("Input graph is not connected: "+t);else l=!0;t.nodeEdges(r).forEach(d)}return s}},5023:function(t,e,r){var n=r(89126);t.exports=function(t){var e=0,r=[],i={},o=[];return t.nodes().forEach(function(s){n.has(i,s)||function s(a){var u=i[a]={onStack:!0,lowlink:e,index:e++};if(r.push(a),t.successors(a).forEach(function(t){n.has(i,t)?i[t].onStack&&(u.lowlink=Math.min(u.lowlink,i[t].index)):(s(t),u.lowlink=Math.min(u.lowlink,i[t].lowlink))}),u.lowlink===u.index){var d,l=[];do i[d=r.pop()].onStack=!1,l.push(d);while(a!==d);o.push(l)}}(s)}),o}},2166:function(t,e,r){var n=r(89126);function i(t){var e={},r={},i=[];if(n.each(t.sinks(),function s(a){if(n.has(r,a))throw new o;n.has(e,a)||(r[a]=!0,e[a]=!0,n.each(t.predecessors(a),s),delete r[a],i.push(a))}),n.size(e)!==t.nodeCount())throw new o;return i}function o(){}t.exports=i,i.CycleException=o,o.prototype=Error()},75639:function(t,e,r){var n=r(89126);function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map(function(t){return t.key})},i.prototype.has=function(t){return n.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var r=this._keyIndices;if(t=String(t),!n.has(r,t)){var i=this._arr,o=i.length;return r[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var r=this._keyIndices[t];if(e>this._arr[r].priority)throw Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[r].priority+" New: "+e);this._arr[r].priority=e,this._decrease(r)},i.prototype._heapify=function(t){var e=this._arr,r=2*t,n=r+1,i=t;r>1].prioritys){var a=o;o=s,s=a}return o+"\x01"+s+"\x01"+(n.isUndefined(i)?"\x00":i)}function u(t,e){return a(t,e.v,e.w,e.name)}t.exports=i,i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(t){return this._label=t,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(t){return n.isFunction(t)||(t=n.constant(t)),this._defaultNodeLabelFn=t,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return n.keys(this._nodes)},i.prototype.sources=function(){var t=this;return n.filter(this.nodes(),function(e){return n.isEmpty(t._in[e])})},i.prototype.sinks=function(){var t=this;return n.filter(this.nodes(),function(e){return n.isEmpty(t._out[e])})},i.prototype.setNodes=function(t,e){var r=arguments,i=this;return n.each(t,function(t){r.length>1?i.setNode(t,e):i.setNode(t)}),this},i.prototype.setNode=function(t,e){return n.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\x00",this._children[t]={},this._children["\x00"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},i.prototype.node=function(t){return this._nodes[t]},i.prototype.hasNode=function(t){return n.has(this._nodes,t)},i.prototype.removeNode=function(t){var e=this;if(n.has(this._nodes,t)){var r=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],n.each(this.children(t),function(t){e.setParent(t)}),delete this._children[t]),n.each(n.keys(this._in[t]),r),delete this._in[t],delete this._preds[t],n.each(n.keys(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},i.prototype.setParent=function(t,e){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(n.isUndefined(e))e="\x00";else{e+="";for(var r=e;!n.isUndefined(r);r=this.parent(r))if(r===t)throw Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},i.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},i.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\x00"!==e)return e}},i.prototype.children=function(t){if(n.isUndefined(t)&&(t="\x00"),this._isCompound){var e=this._children[t];if(e)return n.keys(e)}else if("\x00"===t)return this.nodes();else if(this.hasNode(t))return[]},i.prototype.predecessors=function(t){var e=this._preds[t];if(e)return n.keys(e)},i.prototype.successors=function(t){var e=this._sucs[t];if(e)return n.keys(e)},i.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return n.union(e,this.successors(t))},i.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},i.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;n.each(this._nodes,function(r,n){t(n)&&e.setNode(n,r)}),n.each(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,r.edge(t))});var i={};return this._isCompound&&n.each(e.nodes(),function(t){e.setParent(t,function t(n){var o=r.parent(n);return void 0===o||e.hasNode(o)?(i[n]=o,o):o in i?i[o]:t(o)}(t))}),e},i.prototype.setDefaultEdgeLabel=function(t){return n.isFunction(t)||(t=n.constant(t)),this._defaultEdgeLabelFn=t,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return n.values(this._edgeObjs)},i.prototype.setPath=function(t,e){var r=this,i=arguments;return n.reduce(t,function(t,n){return i.length>1?r.setEdge(t,n,e):r.setEdge(t,n),n}),this},i.prototype.setEdge=function(){var t,e,r,i,s=!1,u=arguments[0];"object"==typeof u&&null!==u&&"v"in u?(t=u.v,e=u.w,r=u.name,2==arguments.length&&(i=arguments[1],s=!0)):(t=u,e=arguments[1],r=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),t=""+t,e=""+e,n.isUndefined(r)||(r=""+r);var d=a(this._isDirected,t,e,r);if(n.has(this._edgeLabels,d))return s&&(this._edgeLabels[d]=i),this;if(!n.isUndefined(r)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[d]=s?i:this._defaultEdgeLabelFn(t,e,r);var l=function(t,e,r,n){var i=""+e,o=""+r;if(!t&&i>o){var s=i;i=o,o=s}var a={v:i,w:o};return n&&(a.name=n),a}(this._isDirected,t,e,r);return t=l.v,e=l.w,Object.freeze(l),this._edgeObjs[d]=l,o(this._preds[e],t),o(this._sucs[t],e),this._in[e][d]=l,this._out[t][d]=l,this._edgeCount++,this},i.prototype.edge=function(t,e,r){var n=1==arguments.length?u(this._isDirected,arguments[0]):a(this._isDirected,t,e,r);return this._edgeLabels[n]},i.prototype.hasEdge=function(t,e,r){var i=1==arguments.length?u(this._isDirected,arguments[0]):a(this._isDirected,t,e,r);return n.has(this._edgeLabels,i)},i.prototype.removeEdge=function(t,e,r){var n=1==arguments.length?u(this._isDirected,arguments[0]):a(this._isDirected,t,e,r),i=this._edgeObjs[n];return i&&(t=i.v,e=i.w,delete this._edgeLabels[n],delete this._edgeObjs[n],s(this._preds[e],t),s(this._sucs[t],e),delete this._in[e][n],delete this._out[t][n],this._edgeCount--),this},i.prototype.inEdges=function(t,e){var r=this._in[t];if(r){var i=n.values(r);return e?n.filter(i,function(t){return t.v===e}):i}},i.prototype.outEdges=function(t,e){var r=this._out[t];if(r){var i=n.values(r);return e?n.filter(i,function(t){return t.w===e}):i}},i.prototype.nodeEdges=function(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))}},82354:function(t,e,r){t.exports={Graph:r(30771),version:r(49631)}},28974:function(t,e,r){var n=r(89126),i=r(30771);t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:n.map(t.nodes(),function(e){var r=t.node(e),i=t.parent(e),o={v:e};return n.isUndefined(r)||(o.value=r),n.isUndefined(i)||(o.parent=i),o}),edges:n.map(t.edges(),function(e){var r=t.edge(e),i={v:e.v,w:e.w};return n.isUndefined(e.name)||(i.name=e.name),n.isUndefined(r)||(i.value=r),i})};return n.isUndefined(t.graph())||(e.value=n.clone(t.graph())),e},read:function(t){var e=new i(t.options).setGraph(t.value);return n.each(t.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),n.each(t.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}}},89126:function(t,e,r){var n;try{n={clone:r(66678),constant:r(75703),each:r(66073),filter:r(63105),has:r(18721),isArray:r(1469),isEmpty:r(41609),isFunction:r(23560),isUndefined:r(52353),keys:r(3674),map:r(35161),reduce:r(54061),size:r(84238),transform:r(68718),union:r(93386),values:r(52628)}}catch(t){}n||(n=window._),t.exports=n},49631:function(t){t.exports="2.1.8"},44091:function(t,e,r){"use strict";r.r(e),r.d(e,{isAnyArray:function(){return i}});let n=Object.prototype.toString;function i(t){let e=n.call(t);return e.endsWith("Array]")&&!e.includes("Big")}},1989:function(t,e,r){var n=r(51789),i=r(80401),o=r(57667),s=r(21327),a=r(81866);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e-1}},1196:function(t){t.exports=function(t,e,r){for(var n=-1,i=null==t?0:t.length;++n0&&o(l)?r>1?t(l,r-1,o,s,a):n(a,l):s||(a[a.length]=l)}return a}},28483:function(t,e,r){var n=r(25063)();t.exports=n},47816:function(t,e,r){var n=r(28483),i=r(3674);t.exports=function(t,e){return t&&n(t,e,i)}},97786:function(t,e,r){var n=r(71811),i=r(40327);t.exports=function(t,e){e=n(e,t);for(var r=0,o=e.length;null!=t&&re}},78565:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t,r){return null!=t&&e.call(t,r)}},13:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},90939:function(t,e,r){var n=r(2492),i=r(37005);t.exports=function t(e,r,o,s,a){return e===r||(null!=e&&null!=r&&(i(e)||i(r))?n(e,r,o,s,t,a):e!=e&&r!=r)}},2492:function(t,e,r){var n=r(46384),i=r(67114),o=r(18351),s=r(16096),a=r(64160),u=r(1469),d=r(44144),l=r(36719),h="[object Arguments]",c="[object Array]",f="[object Object]",g=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,p,m,v){var y=u(t),w=u(e),x=y?c:a(t),b=w?c:a(e);x=x==h?f:x,b=b==h?f:b;var E=x==f,N=b==f,M=x==b;if(M&&d(t)){if(!d(e))return!1;y=!0,E=!1}if(M&&!E)return v||(v=new n),y||l(t)?i(t,e,r,p,m,v):o(t,e,x,r,p,m,v);if(!(1&r)){var _=E&&g.call(t,"__wrapped__"),k=N&&g.call(e,"__wrapped__");if(_||k){var A=_?t.value():t,S=k?e.value():e;return v||(v=new n),m(A,S,r,p,v)}}return!!M&&(v||(v=new n),s(t,e,r,p,m,v))}},25588:function(t,e,r){var n=r(64160),i=r(37005);t.exports=function(t){return i(t)&&"[object Map]"==n(t)}},2958:function(t,e,r){var n=r(46384),i=r(90939);t.exports=function(t,e,r,o){var s=r.length,a=s,u=!o;if(null==t)return!a;for(t=Object(t);s--;){var d=r[s];if(u&&d[2]?d[1]!==t[d[0]]:!(d[0]in t))return!1}for(;++s=200){var p=e?null:a(t);if(p)return u(p);c=!1,l=s,g=new n}else g=e?[]:f;t:for(;++de||s&&a&&d&&!u&&!l||i&&a&&d||!r&&d||!o)return 1;if(!i&&!s&&!l&&t=u)return d;return d*("desc"==r[i]?-1:1)}}return t.index-e.index}},278:function(t){t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(s=t.length>3&&"function"==typeof s?(o--,s):void 0,a&&i(r[0],r[1],a)&&(s=o<3?void 0:s,o=1),e=Object(e);++n-1?a[u?e[d]:d]:void 0}}},47445:function(t,e,r){var n=r(40098),i=r(16612),o=r(18601);t.exports=function(t){return function(e,r,s){return s&&"number"!=typeof s&&i(e,r,s)&&(r=s=void 0),e=o(e),void 0===r?(r=e,e=0):r=o(r),s=void 0===s?el))return!1;var c=u.get(t),f=u.get(e);if(c&&f)return c==e&&f==t;var g=-1,p=!0,m=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++g-1}},54705:function(t,e,r){var n=r(18470);t.exports=function(t,e){var r=this.__data__,i=n(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}},24785:function(t,e,r){var n=r(1989),i=r(38407),o=r(57071);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},11285:function(t,e,r){var n=r(45050);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},96e3:function(t,e,r){var n=r(45050);t.exports=function(t){return n(this,t).get(t)}},49916:function(t,e,r){var n=r(45050);t.exports=function(t){return n(this,t).has(t)}},95265:function(t,e,r){var n=r(45050);t.exports=function(t,e){var r=n(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}},68776:function(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}},42634:function(t){t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},24523:function(t,e,r){var n=r(15644);t.exports=function(t){var e=n(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}},94536:function(t,e,r){var n=r(10852)(Object,"create");t.exports=n},33498:function(t){t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},45357:function(t,e,r){var n=r(96874),i=Math.max;t.exports=function(t,e,r){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,a=i(o.length-e,0),u=Array(a);++s0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},37465:function(t,e,r){var n=r(38407);t.exports=function(){this.__data__=new n,this.size=0}},63779:function(t){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},67599:function(t){t.exports=function(t){return this.__data__.get(t)}},44758:function(t){t.exports=function(t){return this.__data__.has(t)}},34309:function(t,e,r){var n=r(38407),i=r(57071),o=r(83369);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!i||s.length<199)return s.push([t,e]),this.size=++r.size,this;r=this.__data__=new o(s)}return r.set(t,e),this.size=r.size,this}},88016:function(t,e,r){var n=r(48983),i=r(62689),o=r(21903);t.exports=function(t){return i(t)?o(t):n(t)}},55514:function(t,e,r){var n=r(24523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=n(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,function(t,r,n,i){e.push(n?i.replace(o,"$1"):r||t)}),e});t.exports=s},40327:function(t,e,r){var n=r(33448),i=1/0;t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}},21903:function(t){var e="\ud800-\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\ud83c[\udffb-\udfff]",i="[^"+e+"]",o="(?:\ud83c[\udde6-\uddff]){2}",s="[\ud800-\udbff][\udc00-\udfff]",a="(?:"+r+"|"+n+")?",u="[\\ufe0e\\ufe0f]?",d="(?:\\u200d(?:"+[i,o,s].join("|")+")"+u+a+")*",l=RegExp(n+"(?="+n+")|(?:"+[i+r+"?",r,o,s,"["+e+"]"].join("|")+")"+(u+a+d),"g");t.exports=function(t){for(var e=l.lastIndex=0;l.test(t);)++e;return e}},66678:function(t,e,r){var n=r(85990);t.exports=function(t){return n(t,4)}},50361:function(t,e,r){var n=r(85990);t.exports=function(t){return n(t,5)}},75703:function(t){t.exports=function(t){return function(){return t}}},91747:function(t,e,r){var n=r(5976),i=r(77813),o=r(16612),s=r(81704),a=Object.prototype,u=a.hasOwnProperty,d=n(function(t,e){t=Object(t);var r=-1,n=e.length,d=n>2?e[2]:void 0;for(d&&o(e[0],e[1],d)&&(n=1);++r1&&s(t,e[0],e[1])?e=[]:r>2&&s(e[0],e[1],e[2])&&(e=[e[0]]),i(t,n(e,1),[])});t.exports=a},70479:function(t){t.exports=function(){return[]}},59881:function(t,e,r){var n=r(98363),i=r(81704);t.exports=function(t){return n(t,i(t))}},68718:function(t,e,r){var n=r(77412),i=r(3118),o=r(47816),s=r(67206),a=r(85924),u=r(1469),d=r(44144),l=r(23560),h=r(13218),c=r(36719);t.exports=function(t,e,r){var f=u(t),g=f||d(t)||c(t);if(e=s(e,4),null==r){var p=t&&t.constructor;r=g?f?new p:[]:h(t)&&l(p)?i(a(t)):{}}return(g?n:o)(t,function(t,n,i){return e(r,t,n,i)}),r}},93386:function(t,e,r){var n=r(21078),i=r(5976),o=r(45652),s=r(29246),a=i(function(t){return o(n(t,1,s,!0))});t.exports=a},73955:function(t,e,r){var n=r(79833),i=0;t.exports=function(t){var e=++i;return n(t)+e}},7287:function(t,e,r){var n=r(34865),i=r(1757);t.exports=function(t,e){return i(t||[],e||[],n)}},75823:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return i}});var n=r(44091);function i(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((0,n.isAnyArray)(t)){if(0===t.length)throw TypeError("input must not be empty")}else throw TypeError("input must be an array");if(void 0!==r.output){if(!(0,n.isAnyArray)(r.output))throw TypeError("output option must be an array if specified");e=r.output}else e=Array(t.length);var i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,n.isAnyArray)(t))throw TypeError("input must be an array");if(0===t.length)throw TypeError("input must not be empty");var r=e.fromIndex,i=void 0===r?0:r,o=e.toIndex,s=void 0===o?t.length:o;if(i<0||i>=t.length||!Number.isInteger(i))throw Error("fromIndex must be a positive integer smaller than length");if(s<=i||s>t.length||!Number.isInteger(s))throw Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var a=t[i],u=i+1;u1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,n.isAnyArray)(t))throw TypeError("input must be an array");if(0===t.length)throw TypeError("input must not be empty");var r=e.fromIndex,i=void 0===r?0:r,o=e.toIndex,s=void 0===o?t.length:o;if(i<0||i>=t.length||!Number.isInteger(i))throw Error("fromIndex must be a positive integer smaller than length");if(s<=i||s>t.length||!Number.isInteger(s))throw Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var a=t[i],u=i+1;ua&&(a=t[u]);return a}(t);if(i===o)throw RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var s=r.min,a=void 0===s?r.autoMinMax?i:0:s,u=r.max,d=void 0===u?r.autoMinMax?o:1:u;if(a>=d)throw RangeError("min option must be smaller than max option");for(var l=(d-a)/(o-i),h=0;h{e.has(r.id)||(e.add(r.id),t.push(r))})}return!1}function o(t,e,r,n){let i=r(t);if(i)return!0;for(let i of(e.add(t.id),n(t.id)))if(!e.has(i.id)&&o(i,e,r,n))return!0;return!1}let s=()=>!0;class a{graph;nodeFilter;edgeFilter;cacheEnabled;inEdgesMap=new Map;outEdgesMap=new Map;bothEdgesMap=new Map;allNodesMap=new Map;allEdgesMap=new Map;constructor(t){this.graph=t.graph;let e=t.nodeFilter||s,r=t.edgeFilter||s;this.nodeFilter=e,this.edgeFilter=t=>{let{source:n,target:i}=this.graph.getEdgeDetail(t.id);return!!(e(n)&&e(i))&&r(t,n,i)},"auto"===t.cache?(this.cacheEnabled=!0,this.startAutoCache()):"manual"===t.cache?this.cacheEnabled=!0:this.cacheEnabled=!1}clearCache=()=>{this.inEdgesMap.clear(),this.outEdgesMap.clear(),this.bothEdgesMap.clear(),this.allNodesMap.clear(),this.allEdgesMap.clear()};refreshCache=()=>{this.clearCache(),this.updateCache(this.graph.getAllNodes().map(t=>t.id))};updateCache=t=>{let e=new Set;t.forEach(t=>{let r=this.bothEdgesMap.get(t);if(r&&r.forEach(t=>e.add(t.id)),this.hasNode(t)){let r=this.graph.getRelatedEdges(t,"in").filter(this.edgeFilter),n=this.graph.getRelatedEdges(t,"out").filter(this.edgeFilter),i=Array.from(new Set([...r,...n]));i.forEach(t=>e.add(t.id)),this.inEdgesMap.set(t,r),this.outEdgesMap.set(t,n),this.bothEdgesMap.set(t,i),this.allNodesMap.set(t,this.graph.getNode(t))}else this.inEdgesMap.delete(t),this.outEdgesMap.delete(t),this.bothEdgesMap.delete(t),this.allNodesMap.delete(t)}),e.forEach(t=>{this.hasEdge(t)?this.allEdgesMap.set(t,this.graph.getEdge(t)):this.allEdgesMap.delete(t)})};startAutoCache(){this.refreshCache(),this.graph.on("changed",this.handleGraphChanged)}stopAutoCache(){this.graph.off("changed",this.handleGraphChanged)}handleGraphChanged=t=>{let e=new Set;t.changes.forEach(r=>{switch(r.type){case"NodeAdded":case"NodeRemoved":e.add(r.value.id);break;case"NodeDataUpdated":e.add(r.id);break;case"EdgeAdded":case"EdgeRemoved":e.add(r.value.source),e.add(r.value.target);break;case"EdgeUpdated":("source"===r.propertyName||"target"===r.propertyName)&&(e.add(r.oldValue),e.add(r.newValue));break;case"EdgeDataUpdated":if(t.graph.hasEdge(r.id)){let n=t.graph.getEdge(r.id);e.add(n.source),e.add(n.target)}}}),this.updateCache(e)};checkNodeExistence(t){this.getNode(t)}hasNode(t){if(!this.graph.hasNode(t))return!1;let e=this.graph.getNode(t);return this.nodeFilter(e)}areNeighbors(t,e){return this.checkNodeExistence(t),this.getNeighbors(e).some(e=>e.id===t)}getNode(t){let e=this.graph.getNode(t);if(!this.nodeFilter(e))throw Error("Node not found for id: "+t);return e}getRelatedEdges(t,e){if(this.checkNodeExistence(t),this.cacheEnabled)return"in"===e?this.inEdgesMap.get(t):"out"===e?this.outEdgesMap.get(t):this.bothEdgesMap.get(t);let r=this.graph.getRelatedEdges(t,e);return r.filter(this.edgeFilter)}getDegree(t,e){return this.getRelatedEdges(t,e).length}getSuccessors(t){let e=this.getRelatedEdges(t,"out"),r=e.map(t=>this.getNode(t.target));return Array.from(new Set(r))}getPredecessors(t){let e=this.getRelatedEdges(t,"in"),r=e.map(t=>this.getNode(t.source));return Array.from(new Set(r))}getNeighbors(t){let e=this.getPredecessors(t),r=this.getSuccessors(t);return Array.from(new Set([...e,...r]))}hasEdge(t){if(!this.graph.hasEdge(t))return!1;let e=this.graph.getEdge(t);return this.edgeFilter(e)}getEdge(t){let e=this.graph.getEdge(t);if(!this.edgeFilter(e))throw Error("Edge not found for id: "+t);return e}getEdgeDetail(t){let e=this.getEdge(t);return{edge:e,source:this.getNode(e.source),target:this.getNode(e.target)}}hasTreeStructure(t){return this.graph.hasTreeStructure(t)}getRoots(t){return this.graph.getRoots(t).filter(this.nodeFilter)}getChildren(t,e){return this.checkNodeExistence(t),this.graph.getChildren(t,e).filter(this.nodeFilter)}getParent(t,e){this.checkNodeExistence(t);let r=this.graph.getParent(t,e);return r&&this.nodeFilter(r)?r:null}getAllNodes(){return this.cacheEnabled?Array.from(this.allNodesMap.values()):this.graph.getAllNodes().filter(this.nodeFilter)}getAllEdges(){return this.cacheEnabled?Array.from(this.allEdgesMap.values()):this.graph.getAllEdges().filter(this.edgeFilter)}bfs(t,e,r="out"){let n={in:this.getPredecessors.bind(this),out:this.getSuccessors.bind(this),both:this.getNeighbors.bind(this)}[r];i([this.getNode(t)],new Set,e,n)}dfs(t,e,r="out"){let n={in:this.getPredecessors.bind(this),out:this.getSuccessors.bind(this),both:this.getNeighbors.bind(this)}[r];o(this.getNode(t),new Set,e,n)}}class u extends n.Z{nodeMap=new Map;edgeMap=new Map;inEdgesMap=new Map;outEdgesMap=new Map;bothEdgesMap=new Map;treeIndices=new Map;changes=[];batchCount=0;onChanged=()=>{};constructor(t){if(super(),!t)return;t.nodes&&this.addNodes(t.nodes),t.edges&&this.addEdges(t.edges),t.tree&&this.addTree(t.tree),t.onChanged&&(this.onChanged=t.onChanged)}batch=t=>{this.batchCount+=1,t(),this.batchCount-=1,this.batchCount||this.commit()};commit(){let t=this.changes;this.changes=[];let e={graph:this,changes:t};this.emit("changed",e),this.onChanged(e)}reduceChanges(t){let e=[];return t.forEach(t=>{switch(t.type){case"NodeRemoved":{let r=!1;e=e.filter(e=>{if("NodeAdded"===e.type){let n=e.value.id===t.value.id;return n&&(r=!0),!n}return"NodeDataUpdated"===e.type?e.id!==t.value.id:"TreeStructureChanged"!==e.type||e.nodeId!==t.value.id}),r||e.push(t);break}case"EdgeRemoved":{let r=!1;e=e.filter(e=>{if("EdgeAdded"===e.type){let n=e.value.id===t.value.id;return n&&(r=!0),!n}return"EdgeDataUpdated"!==e.type&&"EdgeUpdated"!==e.type||e.id!==t.value.id}),r||e.push(t);break}case"NodeDataUpdated":case"EdgeDataUpdated":case"EdgeUpdated":{let r=e.findIndex(e=>e.type===t.type&&e.id===t.id&&(void 0===t.propertyName||e.propertyName===t.propertyName)),n=e[r];n?void 0!==t.propertyName?n.newValue=t.newValue:(e.splice(r,1),e.push(t)):e.push(t);break}case"TreeStructureDetached":(e=e.filter(e=>"TreeStructureAttached"===e.type?e.treeKey!==t.treeKey:"TreeStructureChanged"!==e.type||e.treeKey!==t.treeKey)).push(t);break;case"TreeStructureChanged":{let r=e.find(e=>"TreeStructureChanged"===e.type&&e.treeKey===t.treeKey&&e.nodeId===t.nodeId);r?r.newParentId=t.newParentId:e.push(t);break}default:e.push(t)}}),e}checkNodeExistence(t){this.getNode(t)}hasNode(t){return this.nodeMap.has(t)}areNeighbors(t,e){return this.getNeighbors(e).some(e=>e.id===t)}getNode(t){let e=this.nodeMap.get(t);if(!e)throw Error("Node not found for id: "+t);return e}getRelatedEdges(t,e){if(this.checkNodeExistence(t),"in"===e){let e=this.inEdgesMap.get(t);return Array.from(e)}if("out"===e){let e=this.outEdgesMap.get(t);return Array.from(e)}{let e=this.bothEdgesMap.get(t);return Array.from(e)}}getDegree(t,e){return this.getRelatedEdges(t,e).length}getSuccessors(t){let e=this.getRelatedEdges(t,"out"),r=e.map(t=>this.getNode(t.target));return Array.from(new Set(r))}getPredecessors(t){let e=this.getRelatedEdges(t,"in"),r=e.map(t=>this.getNode(t.source));return Array.from(new Set(r))}getNeighbors(t){let e=this.getPredecessors(t),r=this.getSuccessors(t);return Array.from(new Set([...e,...r]))}doAddNode(t){if(this.hasNode(t.id))throw Error("Node already exists: "+t.id);this.nodeMap.set(t.id,t),this.inEdgesMap.set(t.id,new Set),this.outEdgesMap.set(t.id,new Set),this.bothEdgesMap.set(t.id,new Set),this.treeIndices.forEach(e=>{e.childrenMap.set(t.id,new Set)}),this.changes.push({type:"NodeAdded",value:t})}addNodes(t){this.batch(()=>{for(let e of t)this.doAddNode(e)})}addNode(t){this.addNodes([t])}doRemoveNode(t){let e=this.getNode(t),r=this.bothEdgesMap.get(t);r?.forEach(t=>this.doRemoveEdge(t.id)),this.nodeMap.delete(t),this.treeIndices.forEach(r=>{r.childrenMap.get(t)?.forEach(t=>{r.parentMap.delete(t.id)});let n=r.parentMap.get(t);n&&r.childrenMap.get(n.id)?.delete(e),r.parentMap.delete(t),r.childrenMap.delete(t)}),this.bothEdgesMap.delete(t),this.inEdgesMap.delete(t),this.outEdgesMap.delete(t),this.changes.push({type:"NodeRemoved",value:e})}removeNodes(t){this.batch(()=>{t.forEach(t=>this.doRemoveNode(t))})}removeNode(t){this.removeNodes([t])}updateNodeDataProperty(t,e,r){let n=this.getNode(t);this.batch(()=>{let i=n.data[e];n.data[e]=r,this.changes.push({type:"NodeDataUpdated",id:t,propertyName:e,oldValue:i,newValue:r})})}mergeNodeData(t,e){this.batch(()=>{Object.entries(e).forEach(([e,r])=>{this.updateNodeDataProperty(t,e,r)})})}updateNodeData(...t){let e;let r=t[0],n=this.getNode(r);if("string"==typeof t[1]){this.updateNodeDataProperty(r,t[1],t[2]);return}if("function"==typeof t[1]){let r=t[1];e=r(n.data)}else"object"==typeof t[1]&&(e=t[1]);this.batch(()=>{let t=n.data,i=e;n.data=e,this.changes.push({type:"NodeDataUpdated",id:r,oldValue:t,newValue:i})})}checkEdgeExistence(t){if(!this.hasEdge(t))throw Error("Edge not found for id: "+t)}hasEdge(t){return this.edgeMap.has(t)}getEdge(t){return this.checkEdgeExistence(t),this.edgeMap.get(t)}getEdgeDetail(t){let e=this.getEdge(t);return{edge:e,source:this.getNode(e.source),target:this.getNode(e.target)}}doAddEdge(t){if(this.hasEdge(t.id))throw Error("Edge already exists: "+t.id);this.checkNodeExistence(t.source),this.checkNodeExistence(t.target),this.edgeMap.set(t.id,t);let e=this.inEdgesMap.get(t.target),r=this.outEdgesMap.get(t.source),n=this.bothEdgesMap.get(t.source),i=this.bothEdgesMap.get(t.target);e.add(t),r.add(t),n.add(t),i.add(t),this.changes.push({type:"EdgeAdded",value:t})}addEdges(t){this.batch(()=>{for(let e of t)this.doAddEdge(e)})}addEdge(t){this.addEdges([t])}doRemoveEdge(t){let e=this.getEdge(t),r=this.outEdgesMap.get(e.source),n=this.inEdgesMap.get(e.target),i=this.bothEdgesMap.get(e.source),o=this.bothEdgesMap.get(e.target);r.delete(e),n.delete(e),i.delete(e),o.delete(e),this.edgeMap.delete(t),this.changes.push({type:"EdgeRemoved",value:e})}removeEdges(t){this.batch(()=>{t.forEach(t=>this.doRemoveEdge(t))})}removeEdge(t){this.removeEdges([t])}updateEdgeSource(t,e){let r=this.getEdge(t);this.checkNodeExistence(e);let n=r.source;this.outEdgesMap.get(n).delete(r),this.bothEdgesMap.get(n).delete(r),this.outEdgesMap.get(e).add(r),this.bothEdgesMap.get(e).add(r),r.source=e,this.batch(()=>{this.changes.push({type:"EdgeUpdated",id:t,propertyName:"source",oldValue:n,newValue:e})})}updateEdgeTarget(t,e){let r=this.getEdge(t);this.checkNodeExistence(e);let n=r.target;this.inEdgesMap.get(n).delete(r),this.bothEdgesMap.get(n).delete(r),this.inEdgesMap.get(e).add(r),this.bothEdgesMap.get(e).add(r),r.target=e,this.batch(()=>{this.changes.push({type:"EdgeUpdated",id:t,propertyName:"target",oldValue:n,newValue:e})})}updateEdgeDataProperty(t,e,r){let n=this.getEdge(t);this.batch(()=>{let i=n.data[e];n.data[e]=r,this.changes.push({type:"EdgeDataUpdated",id:t,propertyName:e,oldValue:i,newValue:r})})}updateEdgeData(...t){let e;let r=t[0],n=this.getEdge(r);if("string"==typeof t[1]){this.updateEdgeDataProperty(r,t[1],t[2]);return}if("function"==typeof t[1]){let r=t[1];e=r(n.data)}else"object"==typeof t[1]&&(e=t[1]);this.batch(()=>{let t=n.data,i=e;n.data=e,this.changes.push({type:"EdgeDataUpdated",id:r,oldValue:t,newValue:i})})}mergeEdgeData(t,e){this.batch(()=>{Object.entries(e).forEach(([e,r])=>{this.updateEdgeDataProperty(t,e,r)})})}checkTreeExistence(t){if(!this.hasTreeStructure(t))throw Error("Tree structure not found for treeKey: "+t)}hasTreeStructure(t){return this.treeIndices.has(t)}attachTreeStructure(t){this.treeIndices.has(t)||(this.treeIndices.set(t,{parentMap:new Map,childrenMap:new Map}),this.batch(()=>{this.changes.push({type:"TreeStructureAttached",treeKey:t})}))}detachTreeStructure(t){this.checkTreeExistence(t),this.treeIndices.delete(t),this.batch(()=>{this.changes.push({type:"TreeStructureDetached",treeKey:t})})}addTree(t,e){this.batch(()=>{this.attachTreeStructure(e);let r=[],n=Array.isArray(t)?t:[t];for(;n.length;){let t=n.shift();r.push(t),t.children&&n.push(...t.children)}this.addNodes(r),r.forEach(t=>{t.children?.forEach(r=>{this.setParent(r.id,t.id,e)})})})}getRoots(t){return this.checkTreeExistence(t),this.getAllNodes().filter(e=>!this.getParent(e.id,t))}getChildren(t,e){this.checkNodeExistence(t),this.checkTreeExistence(e);let r=this.treeIndices.get(e),n=r.childrenMap.get(t);return Array.from(n||[])}getParent(t,e){this.checkNodeExistence(t),this.checkTreeExistence(e);let r=this.treeIndices.get(e);return r.parentMap.get(t)||null}getAncestors(t,e){let r;let n=[],i=this.getNode(t);for(;r=this.getParent(i.id,e);)n.push(r),i=r;return n}setParent(t,e,r){this.checkTreeExistence(r);let n=this.treeIndices.get(r),i=this.getNode(t),o=n.parentMap.get(t);if(o?.id===e)return;if(void 0===e){o&&n.childrenMap.get(o.id)?.delete(i),n.parentMap.delete(t);return}let s=this.getNode(e);n.parentMap.set(t,s),o&&n.childrenMap.get(o.id)?.delete(i);let a=n.childrenMap.get(s.id);a||(a=new Set,n.childrenMap.set(s.id,a)),a.add(i),this.batch(()=>{this.changes.push({type:"TreeStructureChanged",treeKey:r,nodeId:t,oldParentId:o?.id,newParentId:s.id})})}dfsTree(t,e,r){return o(this.getNode(t),new Set,e,t=>this.getChildren(t,r))}bfsTree(t,e,r){return i([this.getNode(t)],new Set,e,t=>this.getChildren(t,r))}getAllNodes(){return Array.from(this.nodeMap.values())}getAllEdges(){return Array.from(this.edgeMap.values())}bfs(t,e,r="out"){let n={in:this.getPredecessors.bind(this),out:this.getSuccessors.bind(this),both:this.getNeighbors.bind(this)}[r];return i([this.getNode(t)],new Set,e,n)}dfs(t,e,r="out"){let n={in:this.getPredecessors.bind(this),out:this.getSuccessors.bind(this),both:this.getNeighbors.bind(this)}[r];return o(this.getNode(t),new Set,e,n)}clone(){let t=this.getAllNodes().map(t=>({...t,data:{...t.data}})),e=this.getAllEdges().map(t=>({...t,data:{...t.data}})),r=new u({nodes:t,edges:e});return this.treeIndices.forEach(({parentMap:t,childrenMap:e},n)=>{let i=new Map;t.forEach((t,e)=>{i.set(e,r.getNode(t.id))});let o=new Map;e.forEach((t,e)=>{o.set(e,new Set(Array.from(t).map(t=>r.getNode(t.id))))}),r.treeIndices.set(n,{parentMap:i,childrenMap:o})}),r}toJSON(){return JSON.stringify({nodes:this.getAllNodes(),edges:this.getAllEdges()})}createView(t){return new a({graph:this,...t})}}},28104:function(t,e,r){"use strict";r.d(e,{b:function(){return eS}});var n=r(97582),i=r(72137),o=r(61035);let s=(t,e)=>{if("next"!==t&&"prev"!==t)return e},a=t=>{t.prev.next=t.next,t.next.prev=t.prev,delete t.next,delete t.prev};class u{constructor(){let t={};t.prev=t,t.next=t.prev,this.shortcut=t}dequeue(){let t=this.shortcut,e=t.prev;if(e&&e!==t)return a(e),e}enqueue(t){let e=this.shortcut;t.prev&&t.next&&a(t),t.next=e.next,e.next.prev=t,e.next=t,t.prev=e}toString(){let t=[],e=this.shortcut,r=e.prev;for(;r!==e;)t.push(JSON.stringify(r,s)),r=null==r?void 0:r.prev;return`[${t.join(", ")}]`}}class d extends u{}let l=()=>1,h=(t,e)=>{var r;if(t.getAllNodes().length<=1)return[];let n=g(t,e||l),i=c(n.graph,n.buckets,n.zeroIdx);return null===(r=i.map(e=>t.getRelatedEdges(e.v,"out").filter(({target:t})=>t===e.w)))||void 0===r?void 0:r.flat()},c=(t,e,r)=>{let n,i=[],o=e[e.length-1],s=e[0];for(;t.getAllNodes().length;){for(;n=s.dequeue();)f(t,e,r,n);for(;n=o.dequeue();)f(t,e,r,n);if(t.getAllNodes().length){for(let o=e.length-2;o>0;--o)if(n=e[o].dequeue()){i=i.concat(f(t,e,r,n,!0));break}}}return i},f=(t,e,r,n,i)=>{var o,s;let a=[];return t.hasNode(n.v)&&(null===(o=t.getRelatedEdges(n.v,"in"))||void 0===o||o.forEach(n=>{let o=n.data.weight,s=t.getNode(n.source);i&&a.push({v:n.source,w:n.target,in:0,out:0}),void 0===s.data.out&&(s.data.out=0),s.data.out-=o,p(e,r,Object.assign({v:s.id},s.data))}),null===(s=t.getRelatedEdges(n.v,"out"))||void 0===s||s.forEach(n=>{let i=n.data.weight,o=n.target,s=t.getNode(o);void 0===s.data.in&&(s.data.in=0),s.data.in-=i,p(e,r,Object.assign({v:s.id},s.data))}),t.removeNode(n.v)),i?a:void 0},g=(t,e)=>{let r=new i.k,n=0,o=0;t.getAllNodes().forEach(t=>{r.addNode({id:t.id,data:{v:t.id,in:0,out:0}})}),t.getAllEdges().forEach(t=>{let i=r.getRelatedEdges(t.source,"out").find(e=>e.target===t.target),s=(null==e?void 0:e(t))||1;i?r.updateEdgeData(null==i?void 0:i.id,Object.assign(Object.assign({},i.data),{weight:i.data.weight+s})):r.addEdge({id:t.id,source:t.source,target:t.target,data:{weight:s}}),o=Math.max(o,r.getNode(t.source).data.out+=s),n=Math.max(n,r.getNode(t.target).data.in+=s)});let s=[],a=o+n+3;for(let t=0;t{p(s,u,Object.assign({v:t.id},r.getNode(t.id).data))}),{buckets:s,zeroIdx:u,graph:r}},p=(t,e,r)=>{r.out?r.in?t[r.out-r.in+e].enqueue(r):t[t.length-1].enqueue(r):t[0].enqueue(r)},m=(t,e)=>{let r="greedy"===e?h(t,t=>t.data.weight||1):v(t);null==r||r.forEach(e=>{let r=e.data;t.removeEdge(e.id),r.forwardName=e.data.name,r.reversed=!0,t.addEdge({id:e.id,source:e.target,target:e.source,data:Object.assign({},r)})})},v=t=>{let e=[],r={},n={},i=o=>{n[o]||(n[o]=!0,r[o]=!0,t.getRelatedEdges(o,"out").forEach(t=>{r[t.target]?e.push(t):i(t.target)}),delete r[o])};return t.getAllNodes().forEach(t=>i(t.id)),e},y=t=>{t.getAllEdges().forEach(e=>{let r=e.data;if(r.reversed){t.removeEdge(e.id);let n=r.forwardName;delete r.reversed,delete r.forwardName,t.addEdge({id:e.id,source:e.target,target:e.source,data:Object.assign(Object.assign({},r),{forwardName:n})})}})},w=(t,e)=>Number(t)-Number(e),x=(t,e,r,n)=>{let i;do i=`${n}${Math.random()}`;while(t.hasNode(i));return r.dummy=e,t.addNode({id:i,data:r}),i},b=t=>{let e=new i.k;return t.getAllNodes().forEach(t=>{e.addNode(Object.assign({},t))}),t.getAllEdges().forEach(t=>{let r=e.getRelatedEdges(t.source,"out").find(e=>e.target===t.target);r?e.updateEdgeData(null==r?void 0:r.id,Object.assign(Object.assign({},r.data),{weight:r.data.weight+t.data.weight||0,minlen:Math.max(r.data.minlen,t.data.minlen||1)})):e.addEdge({id:t.id,source:t.source,target:t.target,data:{weight:t.data.weight||0,minlen:t.data.minlen||1}})}),e},E=t=>{let e=new i.k;return t.getAllNodes().forEach(r=>{t.getChildren(r.id).length||e.addNode(Object.assign({},r))}),t.getAllEdges().forEach(t=>{e.addEdge(t)}),e},N=(t,e)=>null==t?void 0:t.reduce((t,r,n)=>(t[r]=e[n],t),{}),M=(t,e)=>{let r,n;let i=Number(t.x),o=Number(t.y),s=Number(e.x)-i,a=Number(e.y)-o,u=Number(t.width)/2,d=Number(t.height)/2;return s||a?(Math.abs(a)*u>Math.abs(s)*d?(a<0&&(d=-d),r=d*s/a,n=d):(s<0&&(u=-u),r=u,n=u*a/s),{x:i+r,y:o+n}):{x:0,y:0}},_=t=>{let e=[],r=j(t)+1;for(let t=0;t{let r=t.data.rank;void 0!==r&&e[r]&&e[r].push(t.id)});for(let n=0;nw(t.getNode(e).data.order,t.getNode(r).data.order));return e},k=t=>{let e=t.getAllNodes().filter(t=>void 0!==t.data.rank).map(t=>t.data.rank),r=Math.min(...e);t.getAllNodes().forEach(t=>{t.data.hasOwnProperty("rank")&&r!==1/0&&(t.data.rank-=r)})},A=(t,e=0)=>{let r=t.getAllNodes(),n=r.filter(t=>void 0!==t.data.rank).map(t=>t.data.rank),i=Math.min(...n),o=[];r.forEach(t=>{let e=(t.data.rank||0)-i;o[e]||(o[e]=[]),o[e].push(t.id)});let s=0;for(let r=0;r{let r=t.getNode(e);r&&(r.data.rank=r.data.rank||0,r.data.rank+=s)}))}},S=(t,e,r,n)=>{let i={width:0,height:0};return(0,o.Z)(r)&&(0,o.Z)(n)&&(i.rank=r,i.order=n),x(t,"border",i,e)},j=t=>{let e;return t.getAllNodes().forEach(t=>{let r=t.data.rank;void 0!==r&&(void 0===e||r>e)&&(e=r)}),e||(e=0),e},O=(t,e)=>{let r={lhs:[],rhs:[]};return null==t||t.forEach(t=>{e(t)?r.lhs.push(t):r.rhs.push(t)}),r},R=(t,e)=>t.reduce((t,r)=>{let n=e(t),i=e(r);return n>i?r:t}),z=(t,e,r,n,i,o)=>{!n.includes(e.id)&&(n.push(e.id),r||o.push(e.id),i(e.id).forEach(e=>z(t,e,r,n,i,o)),r&&o.push(e.id))},I=(t,e,r,n)=>{let i=Array.isArray(e)?e:[e],o=e=>n?t.getSuccessors(e):t.getNeighbors(e),s=[],a=[];return i.forEach(e=>{if(t.hasNode(e.id))z(t,e,"post"===r,a,o,s);else throw Error(`Graph does not have node: ${e}`)}),s},C=t=>{let e=r=>{let n=t.getChildren(r),i=t.getNode(r);if((null==n?void 0:n.length)&&n.forEach(t=>e(t.id)),i.data.hasOwnProperty("minRank")){i.data.borderLeft=[],i.data.borderRight=[];for(let e=i.data.minRank,n=i.data.maxRank+1;ee(t.id))},D=(t,e,r,n,i,o)=>{let s=i.data[e][o-1],a=x(t,"border",{rank:o,borderType:e,width:0,height:0},r);i.data[e][o]=a,t.setParent(a,n),s&&t.addEdge({id:`e${Math.random()}`,source:s,target:a,data:{weight:1}})},P=(t,e)=>{let r=e.toLowerCase();("lr"===r||"rl"===r)&&L(t)},T=(t,e)=>{let r=e.toLowerCase();("bt"===r||"rl"===r)&&q(t),("lr"===r||"rl"===r)&&(G(t),L(t))},L=t=>{t.getAllNodes().forEach(t=>{F(t)}),t.getAllEdges().forEach(t=>{F(t)})},F=t=>{let e=t.data.width;t.data.width=t.data.height,t.data.height=e},q=t=>{t.getAllNodes().forEach(t=>{Z(t.data)}),t.getAllEdges().forEach(t=>{var e;null===(e=t.data.points)||void 0===e||e.forEach(t=>Z(t)),t.data.hasOwnProperty("y")&&Z(t.data)})},Z=t=>{(null==t?void 0:t.y)&&(t.y=-t.y)},G=t=>{t.getAllNodes().forEach(t=>{V(t.data)}),t.getAllEdges().forEach(t=>{var e;null===(e=t.data.points)||void 0===e||e.forEach(t=>V(t)),t.data.hasOwnProperty("x")&&V(t.data)})},V=t=>{let e=t.x;t.x=t.y,t.y=e},U=t=>{let e=x(t,"root",{},"_root"),r=B(t),n=Math.max(...Object.values(r));Math.abs(n)===1/0&&(n=1);let i=n-1,o=2*i+1;t.getAllEdges().forEach(t=>{t.data.minlen*=o});let s=W(t)+1;return t.getRoots().forEach(n=>{$(t,e,o,s,i,r,n.id)}),{nestingRoot:e,nodeRankFactor:o}},$=(t,e,r,n,i,o,s)=>{let a=t.getChildren(s);if(!(null==a?void 0:a.length)){s!==e&&t.addEdge({id:`e${Math.random()}`,source:e,target:s,data:{weight:0,minlen:r}});return}let u=S(t,"_bt"),d=S(t,"_bb"),l=t.getNode(s);t.setParent(u,s),l.data.borderTop=u,t.setParent(d,s),l.data.borderBottom=d,null==a||a.forEach(a=>{$(t,e,r,n,i,o,a.id);let l=a.data.borderTop?a.data.borderTop:a.id,h=a.data.borderBottom?a.data.borderBottom:a.id,c=a.data.borderTop?n:2*n,f=l!==h?1:i-o[s]+1;t.addEdge({id:`e${Math.random()}`,source:u,target:l,data:{minlen:f,weight:c,nestingEdge:!0}}),t.addEdge({id:`e${Math.random()}`,source:h,target:d,data:{minlen:f,weight:c,nestingEdge:!0}})}),t.getParent(s)||t.addEdge({id:`e${Math.random()}`,source:e,target:u,data:{weight:0,minlen:i+o[s]}})},B=t=>{let e={},r=(n,i)=>{let o=t.getChildren(n);null==o||o.forEach(t=>r(t.id,i+1)),e[n]=i};return t.getRoots().forEach(t=>r(t.id,1)),e},W=t=>{let e=0;return t.getAllEdges().forEach(t=>{e+=t.data.weight}),e},Y=(t,e)=>{e&&t.removeNode(e),t.getAllEdges().forEach(e=>{e.data.nestingEdge&&t.removeEdge(e.id)})},H="edge-label",J=(t,e)=>{t.getAllEdges().forEach(r=>K(t,r,e))},K=(t,e,r)=>{let n,i,o,s=e.source,a=t.getNode(s).data.rank,u=e.target,d=t.getNode(u).data.rank,l=e.data.labelRank;if(d!==a+1){for(t.removeEdge(e.id),o=0,++a;a{e.forEach(e=>{let r,n=t.getNode(e),{data:i}=n,o=i.originalEdge;o&&t.addEdge(o);let s=e;for(;n.data.dummy;)r=t.getSuccessors(s)[0],t.removeNode(s),o.data.points.push({x:n.data.x,y:n.data.y}),n.data.dummy===H&&(o.data.x=n.data.x,o.data.y=n.data.y,o.data.width=n.data.width,o.data.height=n.data.height),s=r.id,n=t.getNode(s)})};var X=r(59145),tt=function(t){if("object"!=typeof t||null===t)return t;if((0,X.Z)(t)){e=[];for(var e,r=0,n=t.length;r{let n;let i={};null==r||r.forEach(r=>{let o,s,a=t.getParent(r);for(;a;){if((o=t.getParent(a.id))?(s=i[o.id],i[o.id]=a.id):(s=n,n=a.id),s&&s!==a.id){e.hasNode(s)||e.addNode({id:s,data:{}}),e.hasNode(a.id)||e.addNode({id:a.id,data:{}}),e.hasEdge(`e${s}-${a.id}`)||e.addEdge({id:`e${s}-${a.id}`,source:s,target:a.id,data:{}});return}a=o}})},tr=(t,e,r)=>{let n=tn(t),o=new i.k({tree:[{id:n,children:[],data:{}}]});return t.getAllNodes().forEach(i=>{let s=t.getParent(i.id);(i.data.rank===e||i.data.minRank<=e&&e<=i.data.maxRank)&&(o.hasNode(i.id)||o.addNode(Object.assign({},i)),(null==s?void 0:s.id)&&!o.hasNode(null==s?void 0:s.id)&&o.addNode(Object.assign({},s)),o.setParent(i.id,(null==s?void 0:s.id)||n),t.getRelatedEdges(i.id,r).forEach(e=>{let r=e.source===i.id?e.target:e.source;o.hasNode(r)||o.addNode(Object.assign({},t.getNode(r)));let n=o.getRelatedEdges(r,"out").find(({target:t})=>t===i.id),s=void 0!==n?n.data.weight:0;n?o.updateEdgeData(n.id,Object.assign(Object.assign({},n.data),{weight:e.data.weight+s})):o.addEdge({id:e.id,source:r,target:i.id,data:{weight:e.data.weight+s}})}),i.data.hasOwnProperty("minRank")&&o.updateNodeData(i.id,Object.assign(Object.assign({},i.data),{borderLeft:i.data.borderLeft[e],borderRight:i.data.borderRight[e]})))}),o},tn=t=>{let e;for(;t.hasNode(e=`_root${Math.random()}`););return e},ti=(t,e,r)=>{let n=N(r,r.map((t,e)=>e)),i=e.map(e=>{let r=t.getRelatedEdges(e,"out").map(t=>({pos:n[t.target]||0,weight:t.data.weight}));return null==r?void 0:r.sort((t,e)=>t.pos-e.pos)}),o=i.flat().filter(t=>void 0!==t),s=1;for(;s{if(t){let e=t.pos+s;u[e]+=t.weight;let r=0;for(;e>0;)e%2&&(r+=u[e+1]),e=e-1>>1,u[e]+=t.weight;d+=t.weight*r}}),d},to=(t,e)=>{let r=0;for(let n=1;n<(null==e?void 0:e.length);n+=1)r+=ti(t,e[n-1],e[n]);return r},ts=t=>{let e={},r=t.getAllNodes(),n=r.map(t=>{var e;return null!==(e=t.data.rank)&&void 0!==e?e:-1/0}),i=Math.max(...n),o=[];for(let t=0;tt.getNode(e.id).data.rank-t.getNode(r.id).data.rank),a=s.filter(e=>void 0!==t.getNode(e.id).data.fixorder),u=a.sort((e,r)=>t.getNode(e.id).data.fixorder-t.getNode(r.id).data.fixorder);return null==u||u.forEach(r=>{isNaN(t.getNode(r.id).data.rank)||o[t.getNode(r.id).data.rank].push(r.id),e[r.id]=!0}),null==s||s.forEach(r=>t.dfsTree(r.id,t=>{if(e.hasOwnProperty(t.id))return!0;e[t.id]=!0,isNaN(t.data.rank)||o[t.data.rank].push(t.id)})),o},ta=(t,e)=>e.map(e=>{let r=t.getRelatedEdges(e,"in");if(!(null==r?void 0:r.length))return{v:e};let n={sum:0,weight:0};return null==r||r.forEach(e=>{let r=t.getNode(e.source);n.sum+=e.data.weight*r.data.order,n.weight+=e.data.weight}),{v:e,barycenter:n.sum/n.weight,weight:n.weight}}),tu=t=>{var e,r;let n=[],i=t=>e=>{!e.merged&&(void 0===e.barycenter||void 0===t.barycenter||e.barycenter>=t.barycenter)&&td(t,e)},o=e=>r=>{r.in.push(e),0==--r.indegree&&t.push(r)};for(;null==t?void 0:t.length;){let s=t.pop();n.push(s),null===(e=s.in.reverse())||void 0===e||e.forEach(t=>i(s)(t)),null===(r=s.out)||void 0===r||r.forEach(t=>o(s)(t))}let s=n.filter(t=>!t.merged),a=["vs","i","barycenter","weight"];return s.map(t=>{let e={};return null==a||a.forEach(r=>{void 0!==t[r]&&(e[r]=t[r])}),e})},td=(t,e)=>{var r;let n=0,i=0;t.weight&&(n+=t.barycenter*t.weight,i+=t.weight),e.weight&&(n+=e.barycenter*e.weight,i+=e.weight),t.vs=null===(r=e.vs)||void 0===r?void 0:r.concat(t.vs),t.barycenter=n/i,t.weight=i,t.i=Math.min(e.i,t.i),e.merged=!0};var tl=(t,e)=>{var r,n,i;let o={};null==t||t.forEach((t,e)=>{o[t.v]={i:e,indegree:0,in:[],out:[],vs:[t.v]};let r=o[t.v];void 0!==t.barycenter&&(r.barycenter=t.barycenter,r.weight=t.weight)}),null===(r=e.getAllEdges())||void 0===r||r.forEach(t=>{let e=o[t.source],r=o[t.target];void 0!==e&&void 0!==r&&(r.indegree++,e.out.push(o[t.target]))});let s=null===(i=(n=Object.values(o)).filter)||void 0===i?void 0:i.call(n,t=>!t.indegree);return tu(s)};let th=(t,e,r,n)=>{let i=O(t,t=>{let e=t.hasOwnProperty("fixorder")&&!isNaN(t.fixorder);return n?!e&&t.hasOwnProperty("barycenter"):e||t.hasOwnProperty("barycenter")}),o=i.lhs,s=i.rhs.sort((t,e)=>-t.i- -e.i),a=[],u=0,d=0,l=0;null==o||o.sort(tf(!!e,!!r)),l=tc(a,s,l),null==o||o.forEach(t=>{var e;l+=null===(e=t.vs)||void 0===e?void 0:e.length,a.push(t.vs),u+=t.barycenter*t.weight,d+=t.weight,l=tc(a,s,l)});let h={vs:a.flat()};return d&&(h.barycenter=u/d,h.weight=d),h},tc=(t,e,r)=>{let n,i=r;for(;e.length&&(n=e[e.length-1]).i<=i;)e.pop(),null==t||t.push(n.vs),i++;return i},tf=(t,e)=>(r,n)=>{if(void 0!==r.fixorder&&void 0!==n.fixorder)return r.fixorder-n.fixorder;if(r.barycentern.barycenter)return 1;if(e&&void 0!==r.order&&void 0!==n.order){if(r.ordern.order)return 1}return t?n.i-r.i:r.i-n.i},tg=(t,e,r,n,i,o)=>{var s,a,u,d;let l=t.getChildren(e).map(t=>t.id),h=t.getNode(e),c=h?h.data.borderLeft:void 0,f=h?h.data.borderRight:void 0,g={};c&&(l=null==l?void 0:l.filter(t=>t!==c&&t!==f));let p=ta(t,l||[]);null==p||p.forEach(e=>{var i;if(null===(i=t.getChildren(e.v))||void 0===i?void 0:i.length){let i=tg(t,e.v,r,n,o);g[e.v]=i,i.hasOwnProperty("barycenter")&&tm(e,i)}});let m=tl(p,r);tp(m,g),null===(s=m.filter(t=>t.vs.length>0))||void 0===s||s.forEach(e=>{let r=t.getNode(e.vs[0]);r&&(e.fixorder=r.data.fixorder,e.order=r.data.order)});let v=th(m,n,i,o);if(c&&(v.vs=[c,v.vs,f].flat(),null===(a=t.getPredecessors(c))||void 0===a?void 0:a.length)){let e=t.getNode((null===(u=t.getPredecessors(c))||void 0===u?void 0:u[0].id)||""),r=t.getNode((null===(d=t.getPredecessors(f))||void 0===d?void 0:d[0].id)||"");v.hasOwnProperty("barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+e.data.order+r.data.order)/(v.weight+2),v.weight+=2}return v},tp=(t,e)=>{null==t||t.forEach(t=>{var r;let n=null===(r=t.vs)||void 0===r?void 0:r.map(t=>e[t]?e[t].vs:t);t.vs=n.flat()})},tm=(t,e)=>{void 0!==t.barycenter?(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight):(t.barycenter=e.barycenter,t.weight=e.weight)},tv=(t,e)=>{let r;let n=j(t),i=[],o=[];for(let t=1;t-1;t--)o.push(t);let s=ty(t,i,"in"),a=ty(t,o,"out"),u=ts(t);tx(t,u);let d=Number.POSITIVE_INFINITY;for(let n=0,i=0;i<4;++n,++i){tw(n%2?s:a,n%4>=2,!1,e),u=_(t);let o=to(t,u);o=2,!0,e),u=_(t);let o=to(t,u);oe.map(e=>tr(t,e,r)),tw=(t,e,r,n)=>{let o=new i.k;null==t||t.forEach(t=>{var i;let s=t.getRoots()[0].id,a=tg(t,s,o,e,r,n);for(let e=0;e<(null===(i=a.vs)||void 0===i?void 0:i.length);e++){let r=t.getNode(a.vs[e]);r&&(r.data.order=e)}te(t,o,a.vs)})},tx=(t,e)=>{null==e||e.forEach(e=>{null==e||e.forEach((e,r)=>{t.getNode(e).data.order=r})})},tb=(t,e)=>{let r=t.getAllNodes().filter(e=>{var r;return!(null===(r=t.getChildren(e.id))||void 0===r?void 0:r.length)}),n=r.map(t=>t.data.rank),i=Math.max(...n),o=[];for(let t=0;t{let r=t.getNode(e);r&&!r.data.dummy&&(isNaN(r.data.rank)||(r.data.fixorder=o[r.data.rank].length,o[r.data.rank].push(e)))})},tE=t=>{let e={},r=0,n=i=>{let o=r;t.getChildren(i).forEach(t=>n(t.id)),e[i]={low:o,lim:r++}};return t.getRoots().forEach(t=>n(t.id)),e},tN=(t,e,r,n)=>{var i,o;let s,a;let u=[],d=[],l=Math.min(e[r].low,e[n].low),h=Math.max(e[r].lim,e[n].lim);s=r;do u.push(s=null===(i=t.getParent(s))||void 0===i?void 0:i.id);while(s&&(e[s].low>l||h>e[s].lim));for(a=s,s=n;s&&s!==a;)d.push(s),s=null===(o=t.getParent(s))||void 0===o?void 0:o.id;return{lca:a,path:u.concat(d.reverse())}},tM=(t,e)=>{let r=tE(t);e.forEach(e=>{var n,i;let o=e,s=t.getNode(o),a=s.data.originalEdge;if(!a)return;let u=tN(t,r,a.source,a.target),d=u.path,l=u.lca,h=0,c=d[0],f=!0;for(;o!==a.target;){if(s=t.getNode(o),f){for(;c!==l&&(null===(n=t.getNode(c))||void 0===n?void 0:n.data.maxRank){let r={};return(null==e?void 0:e.length)&&e.reduce((e,n)=>{let i=0,o=0,s=e.length,a=null==n?void 0:n[(null==n?void 0:n.length)-1];return null==n||n.forEach((e,u)=>{var d;let l=tA(t,e),h=l?t.getNode(l.id).data.order:s;(l||e===a)&&(null===(d=n.slice(o,u+1))||void 0===d||d.forEach(e=>{var n;null===(n=t.getPredecessors(e))||void 0===n||n.forEach(n=>{var o;let s=t.getNode(n.id),a=s.data.order;(a{let r={};function n(e,n){let i=JSON.stringify(e.slice(1));n.get(i)||(!function(e,n,i,o,s){var a,u;let d;for(let l=n;l{let n=t.getNode(e.id);n.data.dummy&&(n.data.orders)&&tS(r,e.id,d)}))}(...e),n.set(i,!0))}return(null==e?void 0:e.length)&&e.reduce((e,r)=>{let i,o=-1,s=0,a=new Map;return null==r||r.forEach((u,d)=>{var l;if((null===(l=t.getNode(u))||void 0===l?void 0:l.data.dummy)==="border"){let e=t.getPredecessors(u)||[];e.length&&(n([r,s,d,o,i=t.getNode(e[0].id).data.order],a),s=d,o=i)}n([r,s,r.length,i,e.length],a)}),r}),r},tA=(t,e)=>{var r,n;if(null===(r=t.getNode(e))||void 0===r?void 0:r.data.dummy)return null===(n=t.getPredecessors(e))||void 0===n?void 0:n.find(e=>t.getNode(e.id).data.dummy)},tS=(t,e,r)=>{let n=e,i=r;if(n>i){let t=n;n=i,i=t}let o=t[n];o||(t[n]=o={}),o[i]=!0},tj=(t,e,r)=>{let n=e,i=r;return n>i&&(n=i,i=e),!!t[n]},tO=(t,e,r,n)=>{let i={},o={},s={};return null==e||e.forEach(t=>{null==t||t.forEach((t,e)=>{i[t]=t,o[t]=t,s[t]=e})}),null==e||e.forEach(t=>{let e=-1;null==t||t.forEach(t=>{let a=n(t).map(t=>t.id);if(a.length){a=a.sort((t,e)=>s[t]-s[e]);let n=(a.length-1)/2;for(let u=Math.floor(n),d=Math.ceil(n);u<=d;++u){let n=a[u];o[t]===t&&e{var a;let u={},d=tz(t,e,r,i,o,s),l=s?"borderLeft":"borderRight",h=(t,e)=>{let r=d.getAllNodes(),n=r.pop(),i={};for(;n;)i[n.id]?t(n.id):(i[n.id]=!0,r.push(n),r=r.concat(e(n.id))),n=r.pop()};return h(t=>{u[t]=(d.getRelatedEdges(t,"in")||[]).reduce((t,e)=>Math.max(t,(u[e.source]||0)+e.data.weight),0)},d.getPredecessors.bind(d)),h(e=>{let r=(d.getRelatedEdges(e,"out")||[]).reduce((t,e)=>Math.min(t,(u[e.target]||0)-e.data.weight),Number.POSITIVE_INFINITY),n=t.getNode(e);r!==Number.POSITIVE_INFINITY&&n.data.borderType!==l&&(u[e]=Math.max(u[e],r))},d.getSuccessors.bind(d)),null===(a=Object.values(n))||void 0===a||a.forEach(t=>{u[t]=u[r[t]]}),u},tz=(t,e,r,n,o,s)=>{let a=new i.k,u=tD(n,o,s);return null==e||e.forEach(e=>{let n;null==e||e.forEach(e=>{let i=r[e];if(a.hasNode(i)||a.addNode({id:i,data:{}}),n){let o=r[n],s=a.getRelatedEdges(o,"out").find(t=>t.target===i);s?a.updateEdgeData(s.id,Object.assign(Object.assign({},s.data),{weight:Math.max(u(t,e,n),s.data.weight||0)})):a.addEdge({id:`e${Math.random()}`,source:o,target:i,data:{weight:Math.max(u(t,e,n),0)}})}n=e})}),a},tI=(t,e)=>R(Object.values(e),e=>{var r;let n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return null===(r=Object.keys(e))||void 0===r||r.forEach(r=>{let o=e[r],s=tP(t,r)/2;n=Math.max(o+s,n),i=Math.min(o-s,i)}),n-i}),tC=(t,e)=>{let r={};return Object.keys(t.ul).forEach(n=>{if(e)r[n]=t[e.toLowerCase()][n];else{let e=Object.values(t).map(t=>t[n]);r[n]=(e[0]+e[1])/2}}),r},tD=(t,e,r)=>(n,i,o)=>{let s;let a=n.getNode(i),u=n.getNode(o),d=0;if(s=0+a.data.width/2,a.data.hasOwnProperty("labelpos"))switch((a.data.labelpos||"").toLowerCase()){case"l":d=-a.data.width/2;break;case"r":d=a.data.width/2}if(d&&(s+=r?d:-d),d=0,s+=(a.data.dummy?e:t)/2+(u.data.dummy?e:t)/2+u.data.width/2,u.data.labelpos)switch((u.data.labelpos||"").toLowerCase()){case"l":d=u.data.width/2;break;case"r":d=-u.data.width/2}return d&&(s+=r?d:-d),d=0,s},tP=(t,e)=>t.getNode(e).data.width||0,tT=(t,e)=>{let{ranksep:r=0}=e||{},n=_(t),i=0;null==n||n.forEach(e=>{let n=e.map(e=>t.getNode(e).data.height),o=Math.max(...n,0);null==e||e.forEach(e=>{t.getNode(e).data.y=i+o/2}),i+=o+r})},tL=(t,e)=>{let{align:r,nodesep:n=0,edgesep:i=0}=e||{},o=_(t),s=Object.assign(t_(t,o),tk(t,o)),a={},u=[];["u","d"].forEach(e=>{u="u"===e?o:Object.values(o).reverse(),["l","r"].forEach(r=>{"r"===r&&(u=u.map(t=>Object.values(t).reverse()));let o=("u"===e?t.getPredecessors:t.getSuccessors).bind(t),d=tO(t,u,s,o),l=tR(t,u,d.root,d.align,n,i,"r"===r);"r"===r&&Object.keys(l).forEach(t=>l[t]=-l[t]),a[e+r]=l})});let d=tI(t,a);return d&&function(t,e){let r=Object.values(e),n=Math.min(...r),i=Math.max(...r);["u","d"].forEach(r=>{["l","r"].forEach(o=>{let s;let a=r+o,u=t[a];if(u===e)return;let d=Object.values(u);(s="l"===o?n-Math.min(...d):i-Math.max(...d))&&(t[a]={},Object.keys(u).forEach(e=>{t[a][e]=u[e]+s}))})})}(a,d),tC(a,r)},tF=(t,e)=>{var r;let n=E(t);tT(n,e);let i=tL(n,e);null===(r=Object.keys(i))||void 0===r||r.forEach(t=>{n.getNode(t).data.x=i[t]})},tq=t=>{let e={},r=n=>{var i;let o;let s=t.getNode(n);return s?e[n]?s.data.rank:(e[n]=!0,null===(i=t.getRelatedEdges(n,"out"))||void 0===i||i.forEach(t=>{let e=r(t.target),n=t.data.minlen,i=e-n;i&&(void 0===o||i0===t.getRelatedEdges(e.id,"in").length).forEach(t=>r(t.id))},tZ=t=>{let e;let r={},n=i=>{var o;let s;let a=t.getNode(i);return a?r[i]?a.data.rank:(r[i]=!0,null===(o=t.getRelatedEdges(i,"out"))||void 0===o||o.forEach(t=>{let e=n(t.target),r=t.data.minlen,i=e-r;i&&(void 0===s||i0===t.getRelatedEdges(e.id,"in").length).forEach(t=>{t&&n(t.id)}),void 0===e&&(e=0);let i={},o=(e,r)=>{var n;let s=t.getNode(e),a=isNaN(s.data.layer)?r:s.data.layer;(void 0===s.data.rank||s.data.rank{o(t.target,a+t.data.minlen)}))};t.getAllNodes().forEach(t=>{let r=t.data;r&&(isNaN(r.layer)?r.rank-=e:o(t.id,r.layer))})},tG=(t,e)=>t.getNode(e.target).data.rank-t.getNode(e.source).data.rank-e.data.minlen,tV=t=>{let e,r;let n=new i.k({tree:[]}),o=t.getAllNodes()[0],s=t.getAllNodes().length;for(n.addNode(o);tU(n,t){let r=n=>{e.getRelatedEdges(n,"both").forEach(i=>{let o=i.source,s=n===o?i.target:o;t.hasNode(s)||tG(e,i)||(t.addNode({id:s,data:{}}),t.addEdge({id:i.id,source:n,target:s,data:{}}),r(s))})};return t.getAllNodes().forEach(t=>r(t.id)),t.getAllNodes().length},t$=t=>{let e,r;let n=new i.k({tree:[]}),o=t.getAllNodes()[0],s=t.getAllNodes().length;for(n.addNode(o);tB(n,t){let r=n=>{var i;null===(i=e.getRelatedEdges(n,"both"))||void 0===i||i.forEach(i=>{let o=i.source,s=n===o?i.target:o;t.hasNode(s)||void 0===e.getNode(s).data.layer&&tG(e,i)||(t.addNode({id:s,data:{}}),t.addEdge({id:i.id,source:n,target:s,data:{}}),r(s))})};return t.getAllNodes().forEach(t=>r(t.id)),t.getAllNodes().length},tW=(t,e)=>R(e.getAllEdges(),r=>t.hasNode(r.source)!==t.hasNode(r.target)?tG(e,r):1/0),tY=(t,e,r)=>{t.getAllNodes().forEach(t=>{let n=e.getNode(t.id);n.data.rank||(n.data.rank=0),n.data.rank+=r})},tH=t=>{let e,r;let n=b(t);tq(n);let i=tV(n);for(tX(i),tJ(i,n);e=t1(i);)r=t2(i,n,e),t3(i,n,e,r)},tJ=(t,e)=>{let r=I(t,t.getAllNodes(),"post",!1);(r=r.slice(0,(null==r?void 0:r.length)-1)).forEach(r=>{tK(t,e,r)})},tK=(t,e,r)=>{let n=t.getNode(r),i=n.data.parent,o=t.getRelatedEdges(r,"both").find(t=>t.target===i||t.source===i);o.data.cutvalue=tQ(t,e,r)},tQ=(t,e,r)=>{let n=t.getNode(r),i=n.data.parent,o=!0,s=e.getRelatedEdges(r,"out").find(t=>t.target===i),a=0;return s||(o=!1,s=e.getRelatedEdges(i,"out").find(t=>t.target===r)),a=s.data.weight,e.getRelatedEdges(r,"both").forEach(e=>{let n=e.source===r,s=n?e.target:e.source;if(s!==i){let i=n===o,u=e.data.weight;if(a+=i?u:-u,t6(t,r,s)){let e=t.getRelatedEdges(r,"both").find(t=>t.source===s||t.target===s).data.cutvalue;a+=i?-e:e}}}),a},tX=(t,e=t.getAllNodes()[0].id)=>{t0(t,{},1,e)},t0=(t,e,r,n,i)=>{var o;let s=r,a=t.getNode(n);return e[n]=!0,null===(o=t.getNeighbors(n))||void 0===o||o.forEach(r=>{e[r.id]||(s=t0(t,e,s,r.id,n))}),a.data.low=r,a.data.lim=s++,i?a.data.parent=i:delete a.data.parent,s},t1=t=>t.getAllEdges().find(t=>t.data.cutvalue<0),t2=(t,e,r)=>{let n=r.source,i=r.target;e.getRelatedEdges(n,"out").find(t=>t.target===i)||(n=r.target,i=r.source);let o=t.getNode(n),s=t.getNode(i),a=o,u=!1;o.data.lim>s.data.lim&&(a=s,u=!0);let d=e.getAllEdges().filter(e=>u===t4(t.getNode(e.source),a)&&u!==t4(t.getNode(e.target),a));return R(d,t=>tG(e,t))},t3=(t,e,r,n)=>{let i=t.getRelatedEdges(r.source,"both").find(t=>t.source===r.target||t.target===r.target);i&&t.removeEdge(i.id),t.addEdge({id:`e${Math.random()}`,source:n.source,target:n.target,data:{}}),tX(t),tJ(t,e),t8(t,e)},t8=(t,e)=>{let r=t.getAllNodes().find(t=>!t.data.parent),n=I(t,r,"pre",!1);(n=n.slice(1)).forEach(r=>{let n=t.getNode(r).data.parent,i=e.getRelatedEdges(r,"out").find(t=>t.target===n),o=!1;!i&&e.hasNode(n)&&(i=e.getRelatedEdges(n,"out").find(t=>t.target===r),o=!0),e.getNode(r).data.rank=(e.hasNode(n)&&e.getNode(n).data.rank||0)+(o?null==i?void 0:i.data.minlen:-(null==i?void 0:i.data.minlen))})},t6=(t,e,r)=>t.getRelatedEdges(e,"both").find(t=>t.source===r||t.target===r),t4=(t,e)=>e.data.low<=t.data.lim&&t.data.lim<=e.data.lim,t7=(t,e)=>{switch(e){case"network-simplex":et(t);break;case"tight-tree":default:t9(t);break;case"longest-path":t5(t)}},t5=tq,t9=t=>{tZ(t),t$(t)},et=t=>{tH(t)},ee=(t,e)=>{let r;let{edgeLabelSpace:n,keepNodeOrder:i,prevGraph:o,rankdir:s,ranksep:a}=e;!i&&o&&en(t,o);let u=el(t);n&&(e.ranksep=eh(u,{rankdir:s,ranksep:a}));try{r=er(u,e)}catch(t){if("Not possible to find intersection inside of the rectangle"===t.message){console.error("The following error may be caused by improper layer setting, please make sure your manual layer setting does not violate the graph's structure:\n",t);return}throw t}return ei(t,u),r},er=(t,e)=>{let{acyclicer:r,ranker:n,rankdir:i="tb",nodeOrder:o,keepNodeOrder:s,align:a,nodesep:u=50,edgesep:d=20,ranksep:l=50}=e;ex(t),m(t,r);let{nestingRoot:h,nodeRankFactor:c}=U(t);t7(E(t),n),ec(t),A(t,c),Y(t,h),k(t),ef(t),eg(t);let f=[];J(t,f),tM(t,f),C(t),s&&tb(t,o),tv(t,s),eb(t),P(t,i),tF(t,{align:a,nodesep:u,edgesep:d,ranksep:l}),eE(t),ew(t),Q(t,f),ev(t),T(t,i);let{width:g,height:p}=ep(t);return em(t),ey(t),y(t),{width:g,height:p}},en=(t,e)=>{t.getAllNodes().forEach(r=>{let n=t.getNode(r.id);if(e.hasNode(r.id)){let t=e.getNode(r.id);n.data.fixorder=t.data._order,delete t.data._order}else delete n.data.fixorder})},ei=(t,e)=>{t.getAllNodes().forEach(r=>{var n;let i=t.getNode(r.id);if(i){let t=e.getNode(r.id);i.data.x=t.data.x,i.data.y=t.data.y,i.data._order=t.data.order,i.data._rank=t.data.rank,(null===(n=e.getChildren(r.id))||void 0===n?void 0:n.length)&&(i.data.width=t.data.width,i.data.height=t.data.height)}}),t.getAllEdges().forEach(r=>{let n=t.getEdge(r.id),i=e.getEdge(r.id);n.data.points=i?i.data.points:[],i&&i.data.hasOwnProperty("x")&&(n.data.x=i.data.x,n.data.y=i.data.y)})},eo=["width","height","layer","fixorder"],es={width:0,height:0},ea=["minlen","weight","width","height","labeloffset"],eu={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},ed=["labelpos"],el=t=>{let e=new i.k({tree:[]});return t.getAllNodes().forEach(r=>{let n=eM(t.getNode(r.id).data),i=Object.assign(Object.assign({},es),n),o=eN(i,eo);e.hasNode(r.id)||e.addNode({id:r.id,data:Object.assign({},o)});let s=t.hasTreeStructure("combo")?t.getParent(r.id,"combo"):t.getParent(r.id);null!=s&&(e.hasNode(s.id)||e.addNode(Object.assign({},s)),e.setParent(r.id,s.id))}),t.getAllEdges().forEach(r=>{let n=eM(t.getEdge(r.id).data),i={};null==ed||ed.forEach(t=>{void 0!==n[t]&&(i[t]=n[t])}),e.addEdge({id:r.id,source:r.source,target:r.target,data:Object.assign({},eu,eN(n,ea),i)})}),e},eh=(t,e)=>{let{ranksep:r=0,rankdir:n}=e;return t.getAllNodes().forEach(t=>{isNaN(t.data.layer)||t.data.layer||(t.data.layer=0)}),t.getAllEdges().forEach(t=>{var e;t.data.minlen*=2,(null===(e=t.data.labelpos)||void 0===e?void 0:e.toLowerCase())!=="c"&&("TB"===n||"BT"===n?t.data.width+=t.data.labeloffset:t.data.height+=t.data.labeloffset)}),r/2},ec=t=>{t.getAllEdges().forEach(e=>{if(e.data.width&&e.data.height){let r=t.getNode(e.source),n=t.getNode(e.target),i={e,rank:(n.data.rank-r.data.rank)/2+r.data.rank};x(t,"edge-proxy",i,"_ep")}})},ef=t=>{let e=0;return t.getAllNodes().forEach(r=>{var n,i;r.data.borderTop&&(r.data.minRank=null===(n=t.getNode(r.data.borderTop))||void 0===n?void 0:n.data.rank,r.data.maxRank=null===(i=t.getNode(r.data.borderBottom))||void 0===i?void 0:i.data.rank,e=Math.max(e,r.data.maxRank||-1/0))}),e},eg=t=>{t.getAllNodes().forEach(e=>{"edge-proxy"===e.data.dummy&&(t.getEdge(e.data.e.id).data.labelRank=e.data.rank,t.removeNode(e.id))})},ep=(t,e)=>{let r,n;let i=0,o=0,{marginx:s=0,marginy:a=0}=e||{},u=t=>{if(!t.data)return;let e=t.data.x,s=t.data.y,a=t.data.width,u=t.data.height;isNaN(e)||isNaN(a)||(void 0===r&&(r=e-a/2),r=Math.min(r,e-a/2),i=Math.max(i,e+a/2)),isNaN(s)||isNaN(u)||(void 0===n&&(n=s-u/2),n=Math.min(n,s-u/2),o=Math.max(o,s+u/2))};return t.getAllNodes().forEach(t=>{u(t)}),t.getAllEdges().forEach(t=>{(null==t?void 0:t.data.hasOwnProperty("x"))&&u(t)}),r-=s,n-=a,t.getAllNodes().forEach(t=>{t.data.x-=r,t.data.y-=n}),t.getAllEdges().forEach(t=>{var e;null===(e=t.data.points)||void 0===e||e.forEach(t=>{t.x-=r,t.y-=n}),t.data.hasOwnProperty("x")&&(t.data.x-=r),t.data.hasOwnProperty("y")&&(t.data.y-=n)}),{width:i-r+s,height:o-n+a}},em=t=>{t.getAllEdges().forEach(e=>{let r,n;let i=t.getNode(e.source),o=t.getNode(e.target);e.data.points?(r=e.data.points[0],n=e.data.points[e.data.points.length-1]):(e.data.points=[],r={x:o.data.x,y:o.data.y},n={x:i.data.x,y:i.data.y}),e.data.points.unshift(M(i.data,r)),e.data.points.push(M(o.data,n))})},ev=t=>{t.getAllEdges().forEach(t=>{if(t.data.hasOwnProperty("x"))switch(("l"===t.data.labelpos||"r"===t.data.labelpos)&&(t.data.width-=t.data.labeloffset),t.data.labelpos){case"l":t.data.x-=t.data.width/2+t.data.labeloffset;break;case"r":t.data.x+=t.data.width/2+t.data.labeloffset}})},ey=t=>{t.getAllEdges().forEach(t=>{var e;t.data.reversed&&(null===(e=t.data.points)||void 0===e||e.reverse())})},ew=t=>{t.getAllNodes().forEach(e=>{var r,n,i;if(null===(r=t.getChildren(e.id))||void 0===r?void 0:r.length){let r=t.getNode(e.id),o=t.getNode(r.data.borderTop),s=t.getNode(r.data.borderBottom),a=t.getNode(r.data.borderLeft[(null===(n=r.data.borderLeft)||void 0===n?void 0:n.length)-1]),u=t.getNode(r.data.borderRight[(null===(i=r.data.borderRight)||void 0===i?void 0:i.length)-1]);r.data.width=Math.abs((null==u?void 0:u.data.x)-(null==a?void 0:a.data.x))||10,r.data.height=Math.abs((null==s?void 0:s.data.y)-(null==o?void 0:o.data.y))||10,r.data.x=((null==a?void 0:a.data.x)||0)+r.data.width/2,r.data.y=((null==o?void 0:o.data.y)||0)+r.data.height/2}}),t.getAllNodes().forEach(e=>{"border"===e.data.dummy&&t.removeNode(e.id)})},ex=t=>{t.getAllEdges().forEach(e=>{if(e.source===e.target){let r=t.getNode(e.source);r.data.selfEdges||(r.data.selfEdges=[]),r.data.selfEdges.push(e),t.removeEdge(e.id)}})},eb=t=>{let e=_(t);null==e||e.forEach(e=>{let r=0;null==e||e.forEach((e,n)=>{var i;let o=t.getNode(e);o.data.order=n+r,null===(i=o.data.selfEdges)||void 0===i||i.forEach(e=>{x(t,"selfedge",{width:e.data.width,height:e.data.height,rank:o.data.rank,order:n+ ++r,e:e},"_se")}),delete o.data.selfEdges})})},eE=t=>{t.getAllNodes().forEach(e=>{let r=t.getNode(e.id);if("selfedge"===r.data.dummy){let n=t.getNode(r.data.e.source),i=n.data.x+n.data.width/2,o=n.data.y,s=r.data.x-i,a=n.data.height/2;t.hasEdge(r.data.e.id)?t.updateEdgeData(r.data.e.id,r.data.e.data):t.addEdge({id:r.data.e.id,source:r.data.e.source,target:r.data.e.target,data:r.data.e.data}),t.removeNode(e.id),r.data.e.data.points=[{x:i+2*s/3,y:o-a},{x:i+5*s/6,y:o-a},{y:o,x:i+s},{x:i+5*s/6,y:o+a},{x:i+2*s/3,y:o+a}],r.data.e.data.x=r.data.x,r.data.e.data.y=r.data.y}})},eN=(t,e)=>{let r={};return null==e||e.forEach(e=>{void 0!==t[e]&&(r[e]=+t[e])}),r},eM=(t={})=>{let e={};return Object.keys(t).forEach(r=>{e[r.toLowerCase()]=t[r]}),e};var e_=r(78732),ek=r(98130);let eA={rankdir:"TB",nodesep:50,ranksep:50,edgeLabelSpace:!0,ranker:"tight-tree",controlPoints:!1,radial:!1,focusNode:null};class eS{constructor(t={}){this.options=t,this.id="antv-dagre",this.options=Object.assign(Object.assign({},eA),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,function*(){return this.genericDagreLayout(!1,t,e)})}assign(t,e){return(0,n.mG)(this,void 0,void 0,function*(){yield this.genericDagreLayout(!0,t,e)})}genericDagreLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,function*(){let n;let s=Object.assign(Object.assign({},this.options),r),{nodeSize:a,align:u,rankdir:d="TB",ranksep:l,nodesep:h,ranksepFunc:c,nodesepFunc:f,edgeLabelSpace:g,ranker:p,nodeOrder:m,begin:v,controlPoints:y,radial:w,sortByCombo:x,preset:b}=s,E=new i.k({tree:[]}),N=(0,e_.jE)(l||50,c),M=(0,e_.jE)(h||50,f),_=M,k=N;("LR"===d||"RL"===d)&&(_=N,k=M);let A=(0,e_.gl)(a,void 0),S=e.getAllNodes(),j=e.getAllEdges();S.forEach(t=>{let e=A(t),r=k(t),n=_(t),i=e+2*n,s=e+2*r,a=t.data.layer;(0,o.Z)(a)?E.addNode({id:t.id,data:{width:i,height:s,layer:a}}):E.addNode({id:t.id,data:{width:i,height:s}})}),x&&(E.attachTreeStructure("combo"),S.forEach(t=>{let{parentId:e}=t.data;void 0!==e&&E.hasNode(e)&&E.setParent(t.id,e,"combo")})),j.forEach(t=>{E.addEdge({id:t.id,source:t.source,target:t.target,data:{weight:t.data.weight||1}})}),(null==b?void 0:b.length)&&(n=new i.k({nodes:b})),ee(E,{prevGraph:n,edgeLabelSpace:g,keepNodeOrder:!!m,nodeOrder:m||[],acyclicer:"greedy",ranker:p,rankdir:d,nodesep:h,align:u});let O=[0,0];if(v){let t=1/0,e=1/0;E.getAllNodes().forEach(r=>{t>r.data.x&&(t=r.data.x),e>r.data.y&&(e=r.data.y)}),E.getAllEdges().forEach(r=>{var n;null===(n=r.data.points)||void 0===n||n.forEach(r=>{t>r.x&&(t=r.x),e>r.y&&(e=r.y)})}),O[0]=v[0]-t,O[1]=v[1]-e}let R="LR"===d||"RL"===d;if(w);else{let t=new Set,e="BT"===d||"RL"===d;E.getAllNodes().forEach(e=>{e.data.x=e.data.x+O[0],e.data.y=e.data.y+O[1],t.add(R?e.data.x:e.data.y)});let r=Array.from(t).sort(e?(t,e)=>e-t:(t,e)=>t-e),n=R?(t,e)=>t.x!==e.x:(t,e)=>t.y!==e.y,i=R?(t,e,r)=>{let n=Math.max(e.y,r.y),i=Math.min(e.y,r.y);return t.filter(t=>t.y<=n&&t.y>=i)}:(t,e,r)=>{let n=Math.max(e.x,r.x),i=Math.min(e.x,r.x);return t.filter(t=>t.x<=n&&t.x>=i)};E.getAllEdges().forEach((t,e)=>{var o;g&&y&&"loop"!==t.data.type&&(t.data.controlPoints=ej(null===(o=t.data.points)||void 0===o?void 0:o.map(({x:t,y:e})=>({x:t+O[0],y:e+O[1]})),E.getNode(t.source),E.getNode(t.target),r,R,n,i))})}let z=[];z=E.getAllNodes().map(t=>(0,ek.u)(t));let I=E.getAllEdges();t&&(z.forEach(t=>{e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y})}),I.forEach(t=>{e.mergeEdgeData(t.id,{controlPoints:t.data.controlPoints})}));let C={nodes:z,edges:I};return C})}}let ej=(t,e,r,n,i,o,s)=>{let a=(null==t?void 0:t.slice(1,t.length-1))||[];if(e&&r){let{x:t,y:u}=e.data,{x:d,y:l}=r.data;if(i&&(t=e.data.y,u=e.data.x,d=r.data.y,l=r.data.x),l!==u&&t!==d){let h=n.indexOf(u),c=n[h+1];if(c){let t=a[0],e=i?{x:(u+c)/2,y:(null==t?void 0:t.y)||d}:{x:(null==t?void 0:t.x)||d,y:(u+c)/2};(!t||o(t,e))&&a.unshift(e)}let f=n.indexOf(l),g=Math.abs(f-h);if(1===g)(a=s(a,e.data,r.data)).length||a.push(i?{x:(u+l)/2,y:t}:{x:t,y:(u+l)/2});else if(g>1){let e=n[f-1];if(e){let r=a[a.length-1],n=i?{x:(l+e)/2,y:(null==r?void 0:r.y)||d}:{x:(null==r?void 0:r.x)||t,y:(l+e)/2};(!r||o(r,n))&&a.push(n)}}}}return a}},63795:function(t,e,r){"use strict";r.d(e,{S:function(){return u}});var n=r(97582),i=r(78732),o=r(98130),s=r(20464);let a={radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1};class u{constructor(t={}){this.options=t,this.id="circular",this.options=Object.assign(Object.assign({},a),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,function*(){return this.genericCircularLayout(!1,t,e)})}assign(t,e){return(0,n.mG)(this,void 0,void 0,function*(){yield this.genericCircularLayout(!0,t,e)})}genericCircularLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,function*(){let n=Object.assign(Object.assign({},this.options),r),{width:a,height:u,center:h,divisions:c,startAngle:f=0,endAngle:g=2*Math.PI,angleRatio:p,ordering:m,clockwise:v,nodeSpacing:y,nodeSize:w}=n,x=e.getAllNodes(),b=e.getAllEdges(),[E,N,M]=l(a,u,h),_=null==x?void 0:x.length;if(!_||1===_)return(0,s.P)(e,t,M);let{radius:k,startRadius:A,endRadius:S}=n;if(y){let t=(0,i.jE)(10,y),e=(0,i.tO)(10,w),r=-1/0;x.forEach(t=>{let n=e(t);r{0===i?n+=r||10:n+=(t(e)||0)+(r||10)}),k=n/(2*Math.PI)}else k||A||S?!A&&S?A=S:A&&!S&&(S=A):k=Math.min(N,E)/2;let j=(g-f)/_*p,O=[];O="topology"===m?d(e,x):"topology-directed"===m?d(e,x,!0):"degree"===m?function(t,e){let r=[];return e.forEach((t,e)=>{r.push((0,o.u)(t))}),r.sort((e,r)=>t.getDegree(e.id,"both")-t.getDegree(r.id,"both")),r}(e,x):x.map(t=>(0,o.u)(t));let R=Math.ceil(_/c);for(let t=0;t<_;++t){let e=k;e||null===A||null===S||(e=A+t*(S-A)/(_-1)),e||(e=10+100*t/(_-1));let r=f+t%R*j+2*Math.PI/c*Math.floor(t/R);v||(r=g-t%R*j-2*Math.PI/c*Math.floor(t/R)),O[t].data.x=M[0]+Math.cos(r)*e,O[t].data.y=M[1]+Math.sin(r)*e}t&&O.forEach(t=>{e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y})});let z={nodes:O,edges:b};return z})}}let d=(t,e,r=!1)=>{let n=[(0,o.u)(e[0])],i={},s=e.length;i[e[0].id]=!0;let a=0;return e.forEach((u,d)=>{if(0!==d){if((d===s-1||t.getDegree(u.id,"both")!==t.getDegree(e[d+1].id,"both")||t.areNeighbors(n[a].id,u.id))&&!i[u.id])n.push((0,o.u)(u)),i[u.id]=!0,a++;else{let d=r?t.getSuccessors(n[a].id):t.getNeighbors(n[a].id),l=!1;for(let e=0;e{let n=t,i=e,o=r;return n||"undefined"==typeof window||(n=window.innerWidth),i||"undefined"==typeof window||(i=window.innerHeight),o||(o=[n/2,i/2]),[n,i,o]}},39233:function(t,e,r){"use strict";r.d(e,{u:function(){return m}});var n=r(97582),i=r(72137),o=r(61035),s=r(38027),a=r(97653),u=r(5192),d=r(12368),l=r(64912),h=r(80628),c=r(85087),f=r(20464);let g={gForce:!0,force2:!0,d3force:!0,fruchterman:!0,forceAtlas2:!0,force:!0,"graphin-force":!0},p={center:[0,0],comboPadding:10,treeKey:"combo"};class m{constructor(t={}){this.options=t,this.id="comboCombined",this.options=Object.assign(Object.assign({},p),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,function*(){return this.genericComboCombinedLayout(!1,t,e)})}assign(t,e){return(0,n.mG)(this,void 0,void 0,function*(){yield this.genericComboCombinedLayout(!0,t,e)})}genericComboCombinedLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,function*(){let n;let o=this.initVals(Object.assign(Object.assign({},this.options),r)),{center:s,treeKey:a,outerLayout:c}=o,p=e.getAllNodes().filter(t=>!t.data._isCombo),m=e.getAllNodes().filter(t=>t.data._isCombo),v=e.getAllEdges(),y=null==p?void 0:p.length;if(!y||1===y)return(0,f.P)(e,t,s);let w=[],x=new Map;p.forEach(t=>{x.set(t.id,t)});let b=new Map;m.forEach(t=>{b.set(t.id,t)});let E=new Map,N=this.getInnerGraphs(e,a,x,b,v,o,E);yield Promise.all(N);let M=new Map,_=[],k=new Map,A=!0;e.getRoots(a).forEach(t=>{let r=E.get(t.id),n=b.get(t.id)||x.get(t.id),i={id:t.id,data:Object.assign(Object.assign({},t.data),{x:r.data.x||n.data.x,y:r.data.y||n.data.y,fx:r.data.fx||n.data.fx,fy:r.data.fy||n.data.fy,mass:r.data.mass||n.data.mass,size:r.data.size})};_.push(i),M.set(t.id,!0),isNaN(i.data.x)||0===i.data.x||isNaN(i.data.y)||0===i.data.y?(i.data.x=100*Math.random(),i.data.y=100*Math.random()):A=!1,(0,h._)(e,[t],e=>{e.id!==t.id&&k.set(e.id,t.id)},"TB",a)});let S=[];if(v.forEach(t=>{let e=k.get(t.source)||t.source,r=k.get(t.target)||t.target;e!==r&&M.has(e)&&M.has(r)&&S.push({id:t.id,source:e,target:r,data:{}})}),null==_?void 0:_.length){if(1===_.length)_[0].data.x=s[0],_[0].data.y=s[1];else{let t=new i.k({nodes:_,edges:S}),e=c||new d.y;if(A&&g[e.id]){let e=_.length<100?new l.A:new u.W;yield e.assign(t)}n=yield e.execute(t,Object.assign({center:s,kg:5,preventOverlap:!0,animate:!1},"force"===e.id?{gravity:1,factor:4,linkDistance:(t,e,r)=>{let n=Math.max(...e.data.size)||32,i=Math.max(...r.data.size)||32;return n/2+i/2+200}}:{}))}E.forEach(t=>{var e;let r=n.nodes.find(e=>e.id===t.id);if(r){let{x:e,y:n}=r.data;t.data.visited=!0,t.data.x=e,t.data.y=n,w.push({id:t.id,data:{x:e,y:n}})}let{x:i,y:o}=t.data;null===(e=t.data.nodes)||void 0===e||e.forEach(t=>{w.push({id:t.id,data:{x:t.data.x+i,y:t.data.y+o}})})}),E.forEach(({data:t})=>{let{x:e,y:r,visited:n,nodes:i}=t;null==i||i.forEach(t=>{if(!n){let n=w.find(e=>e.id===t.id);n.data.x+=e||0,n.data.y+=r||0}})})}return t&&w.forEach(t=>{e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y})}),{nodes:w,edges:v}})}initVals(t){let e,r,n;let i=Object.assign({},t),{nodeSize:u,spacing:d,comboPadding:l}=t;if(r=(0,o.Z)(d)?()=>d:(0,s.Z)(d)?d:()=>0,i.spacing=r,u){if((0,s.Z)(u))e=t=>{let e=u(t),n=r(t);if((0,c.k)(t.size)){let e=t.size[0]>t.size[1]?t.size[0]:t.size[1];return(e+n)/2}return((e||32)+n)/2};else if((0,c.k)(u)){let t=u[0]>u[1]?u[0]:u[1],n=t/2;e=t=>n+r(t)/2}else{let t=u/2;e=e=>t+r(e)/2}}else e=t=>{let e=r(t);if(t.size){if((0,c.k)(t.size)){let r=t.size[0]>t.size[1]?t.size[0]:t.size[1];return(r+e)/2}if((0,a.Z)(t.size)){let r=t.size.width>t.size.height?t.size.width:t.size.height;return(r+e)/2}return(t.size+e)/2}return 32+e/2};return i.nodeSize=e,n=(0,o.Z)(l)?()=>l:(0,c.k)(l)?()=>Math.max.apply(null,l):(0,s.Z)(l)?l:()=>0,i.comboPadding=n,i}getInnerGraphs(t,e,r,s,a,d,l){let{nodeSize:f,comboPadding:g,spacing:p,innerLayout:m}=d,v=m||new u.W({}),y={center:[0,0],preventOverlap:!0,nodeSpacing:p},w=[],x=t=>{let e=(null==g?void 0:g(t))||10;return(0,c.k)(e)&&(e=Math.max(...e)),{size:e?[2*e,2*e]:[30,30],padding:e}};return t.getRoots(e).forEach(u=>{l.set(u.id,{id:u.id,data:{nodes:[],size:x(u).size}});let d=Promise.resolve();(0,h._)(t,[u],u=>{var c;if(!u.data._isCombo)return;let{size:g,padding:p}=x(u);if(null===(c=t.getChildren(u.id,e))||void 0===c?void 0:c.length){let c=l.get(u.id);l.set(u.id,{id:u.id,data:Object.assign({nodes:[]},null==c?void 0:c.data)});let g=new Map,m=t.getChildren(u.id,e).map(t=>{if(t.data._isCombo)return l.has(t.id)||l.set(t.id,{id:t.id,data:Object.assign({},t.data)}),g.set(t.id,!0),l.get(t.id);let e=r.get(t.id)||s.get(t.id);return g.set(t.id,!0),{id:t.id,data:Object.assign(Object.assign({},e.data),t.data)}}),w={nodes:m,edges:a.filter(t=>g.has(t.source)&&g.has(t.target))},x=1/0;m.forEach(t=>{var e;let{size:r}=t.data;r||(r=(null===(e=l.get(t.id))||void 0===e?void 0:e.data.size)||(null==f?void 0:f(t))||[30,30]),(0,o.Z)(r)&&(r=[r,r]);let[n,i]=r;x>n&&(x=n),x>i&&(x=i),t.data.size=r}),d=d.then(()=>(0,n.mG)(this,void 0,void 0,function*(){let t=new i.k(w),e=yield v.assign(t,y),{minX:r,minY:n,maxX:o,maxY:s}=(0,h.H0)(m),a={x:(o+r)/2,y:(s+n)/2};w.nodes.forEach(t=>{t.data.x-=a.x,t.data.y-=a.y});let d=[Math.max(o-r,x)+2*p,Math.max(s-n,x)+2*p];return l.get(u.id).data.size=d,l.get(u.id).data.nodes=m,e}))}else l.set(u.id,{id:u.id,data:Object.assign(Object.assign({},u.data),{size:g})});return!0},"BT",e),w.push(d)}),w}}},5192:function(t,e,r){"use strict";r.d(e,{W:function(){return c}});var n=r(97582),i=r(38027),o=r(61035),s=r(97653),a=r(52940),u=r(85087),d=r(98130),l=r(20464);let h={nodeSize:30,nodeSpacing:10,preventOverlap:!1,sweep:void 0,equidistant:!1,startAngle:1.5*Math.PI,clockwise:!0,maxLevelDiff:void 0,sortBy:"degree"};class c{constructor(t={}){this.options=t,this.id="concentric",this.options=Object.assign(Object.assign({},h),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,function*(){return this.genericConcentricLayout(!1,t,e)})}assign(t,e){return(0,n.mG)(this,void 0,void 0,function*(){yield this.genericConcentricLayout(!0,t,e)})}genericConcentricLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,function*(){let n;let h=Object.assign(Object.assign({},this.options),r),{center:c,width:f,height:g,sortBy:p,maxLevelDiff:m,sweep:v,clockwise:y,equidistant:w,preventOverlap:x,startAngle:b=1.5*Math.PI,nodeSize:E,nodeSpacing:N}=h,M=e.getAllNodes(),_=e.getAllEdges(),k=f||"undefined"==typeof window?f:window.innerWidth,A=g||"undefined"==typeof window?g:window.innerHeight,S=c||[k/2,A/2];if(!(null==M?void 0:M.length)||1===M.length)return(0,l.P)(e,t,S);let j=[],O=0;(0,u.k)(E)?n=Math.max(E[0],E[1]):(0,i.Z)(E)?(n=-1/0,M.forEach(t=>{let e=E(t);e>n&&(n=e)})):n=E,(0,u.k)(N)?O=Math.max(N[0],N[1]):(0,o.Z)(N)&&(O=N),M.forEach(t=>{let e=(0,d.u)(t);j.push(e);let r=n,{data:a}=e;(0,u.k)(a.size)?r=Math.max(a.size[0],a.size[1]):(0,o.Z)(a.size)?r=a.size:(0,s.Z)(a.size)&&(r=Math.max(a.size.width,a.size.height)),n=Math.max(n,r),(0,i.Z)(N)&&(O=Math.max(N(t),O))});let R={};j.forEach((t,e)=>{R[t.id]=e});let z=p;(0,a.Z)(z)&&void 0!==j[0].data[z]||(z="degree"),"degree"===z?j.sort((t,r)=>e.getDegree(r.id,"both")-e.getDegree(t.id,"both")):j.sort((t,e)=>e.data[z]-t.data[z]);let I=j[0],C=(m||("degree"===z?e.getDegree(I.id,"both"):I.data[z]))/4,D=[{nodes:[]}],P=D[0];j.forEach(t=>{if(P.nodes.length>0){let r="degree"===z?Math.abs(e.getDegree(P.nodes[0].id,"both")-e.getDegree(t.id,"both")):Math.abs(P.nodes[0].data[z]-t.data[z]);C&&r>=C&&(P={nodes:[]},D.push(P))}P.nodes.push(t)});let T=n+O;if(!x){let t=D.length>0&&D[0].nodes.length>1,e=Math.min(k,A)/2-T,r=e/(D.length+(t?1:0));T=Math.min(T,r)}let L=0;if(D.forEach(t=>{let e=void 0===v?2*Math.PI-2*Math.PI/t.nodes.length:v;if(t.dTheta=e/Math.max(1,t.nodes.length-1),t.nodes.length>1&&x){let e=Math.cos(t.dTheta)-1,r=Math.sin(t.dTheta)-0,n=Math.sqrt(T*T/(e*e+r*r));L=Math.max(n,L)}t.r=L,L+=T}),w){let t=0,e=0;for(let r=0;r{0===n&&(e=r.r||0),r.r=e,e+=t})}return D.forEach(t=>{let e=t.dTheta||0,r=t.r||0;t.nodes.forEach((t,n)=>{let i=b+(y?1:-1)*e*n;t.data.x=S[0]+r*Math.cos(i),t.data.y=S[1]+r*Math.sin(i)})}),t&&j.forEach(t=>e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y})),{nodes:j,edges:_}})}}},63330:function(t,e,r){"use strict";r.d(e,{j:function(){return _}});var n=r(97582),i=r(59145),o=r(19782),s=function(t){if(!("object"==typeof t&&null!==t)||!(0,o.Z)(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},a=function(t){for(var e=[],r=1;ru.index){var p=d-a.x-a.vx,m=l-a.y-a.vy,y=p*p+m*m;yd+g||ol+g||st.r&&(t.r=t[e].r)}function u(){if(e){var n,i,o=e.length;for(n=0,r=Array(o);nt.id},manyBody:{},center:{x:0,y:0}},this.context={options:{},assign:!1,nodes:[],edges:[]},a(this.options,t),this.options.forceSimulation&&(this.simulation=this.options.forceSimulation)}execute(t,e){return(0,n.mG)(this,void 0,void 0,function*(){return this.genericLayout(!1,t,e)})}assign(t,e){return(0,n.mG)(this,void 0,void 0,function*(){yield this.genericLayout(!0,t,e)})}stop(){this.simulation.stop()}tick(t){return this.simulation.tick(t),this.getResult()}restart(){this.simulation.restart()}setFixedPosition(t,e){let r=this.context.nodes.find(e=>e.id===t);r&&e.forEach((t,e)=>{if("number"==typeof t||null===t){let n=["fx","fy","fz"][e];r[n]=t}})}getOptions(t){var e,r;let n=a({},this.options,t);return n.collide&&(null===(e=n.collide)||void 0===e?void 0:e.radius)===void 0&&(n.collide=n.collide||{},n.collide.radius=null!==(r=n.nodeSize)&&void 0!==r?r:10),void 0===n.iterations&&(n.link&&void 0===n.link.iterations&&(n.iterations=n.link.iterations),n.collide&&void 0===n.collide.iterations&&(n.iterations=n.collide.iterations)),this.context.options=n,n}genericLayout(t,e,r){var i;return(0,n.mG)(this,void 0,void 0,function*(){let n=this.getOptions(r),o=e.getAllNodes().map(({id:t,data:e})=>Object.assign({id:t,data:e},h(e,this.config.inputNodeAttrs))),s=e.getAllEdges().map(t=>Object.assign({},t));Object.assign(this.context,{assign:t,nodes:o,edges:s,graph:e});let a=new Promise(t=>{this.resolver=t}),u=this.setSimulation(n);return u.nodes(o),null===(i=u.force("link"))||void 0===i||i.links(s),a})}getResult(){let{assign:t,nodes:e,edges:r,graph:n}=this.context,i=e.map(t=>({id:t.id,data:Object.assign(Object.assign({},t.data),h(t,this.config.outputNodeAttrs))})),o=r.map(({id:t,source:e,target:r,data:n})=>({id:t,source:"object"==typeof e?e.id:e,target:"object"==typeof r?r.id:r,data:n}));return t&&i.forEach(t=>n.mergeNodeData(t.id,t.data)),{nodes:i,edges:o}}initSimulation(){return(0,M.Z)()}setSimulation(t){let e=this.simulation||this.options.forceSimulation||this.initSimulation();return this.simulation||(this.simulation=e.on("tick",()=>{var e;return null===(e=t.onTick)||void 0===e?void 0:e.call(t,this.getResult())}).on("end",()=>{var t;return null===(t=this.resolver)||void 0===t?void 0:t.call(this,this.getResult())})),k(e,this.config.simulationAttrs.map(e=>[e,t[e]])),Object.entries(this.forceMap).forEach(([r,n])=>{if(t[r]){let i=e.force(r);i||(i=n(),e.force(r,i)),k(i,Object.entries(t[r]))}else e.force(r,null)}),e}}let k=(t,e)=>e.reduce((e,[r,n])=>e[r]&&void 0!==n?e[r].call(t,n):e,t)},51712:function(t,e,r){"use strict";r.d(e,{V:function(){return u}});var n=r(97582),i=r(61035),o=r(38027),s=r(70681),a=r.n(s);class u{constructor(t){this.id="dagre",this.options={},Object.assign(this.options,u.defaultOptions,t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,function*(){return this.genericDagreLayout(!1,t,Object.assign(Object.assign({},this.options),e))})}assign(t,e){return(0,n.mG)(this,void 0,void 0,function*(){yield this.genericDagreLayout(!0,t,Object.assign(Object.assign({},this.options),e))})}genericDagreLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,function*(){let{nodeSize:u}=r,d=new s.graphlib.Graph;d.setGraph(r),d.setDefaultEdgeLabel(()=>({}));let l=e.getAllNodes(),h=e.getAllEdges();[...l,...h].some(({id:t})=>(0,i.Z)(t))&&console.error("Dagre layout only support string id, it will convert number to string."),e.getAllNodes().forEach(t=>{let{id:e}=t,r=Object.assign({},t.data);if(void 0!==u){let[e,n]=function(t){if(!t)return[0,0,0];if((0,i.Z)(t))return[t,t,t];if(0===t.length)return[0,0,0];let[e,r=e,n=e]=t;return[e,r,n]}((0,o.Z)(u)?u(t):u);Object.assign(r,{width:e,height:n})}d.setNode(e.toString(),r)}),e.getAllEdges().forEach(({id:t,source:e,target:r})=>{d.setEdge(e.toString(),r.toString(),{id:t})}),a().layout(d);let c={nodes:[],edges:[]};return d.nodes().forEach(r=>{let n=d.node(r);c.nodes.push({id:r,data:n}),t&&e.mergeNodeData(r,n)}),d.edges().forEach(r=>{let i=d.edge(r),{id:o}=i,s=(0,n._T)(i,["id"]),{v:a,w:u}=r;c.edges.push({id:o,source:a,target:u,data:s}),t&&e.mergeEdgeData(o,s)}),c})}}u.defaultOptions={}},12368:function(t,e,r){"use strict";r.d(e,{y:function(){return p}});var n=r(97582),i=r(72137),o=r(61035),s=r(97653),a=r(38027),u=r(78732),d=r(85087),l=r(47148),h=r(33953);function c(t){let e=0,r=0,n=0,i=0,o=0,s=t.length;if(s){for(let a=0;a{var a;if((null===(a=t.data)||void 0===a?void 0:a.id)===o.id)return;let u=[r,n,i][s-1],d=o.x-t.x||.1,l=o.y-t.y||.1,h=o.z-t.z||.1,c=[d,l,h],f=u-e,g=0;for(let t=0;tthis.lastOptions.minMovement||e<1)&&ethis.lastGraph.mergeNodeData(t.id,{x:t.data.x,y:t.data.y,z:3===this.options.dimensions?t.data.z:void 0})),e}genericForceLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,function*(){let n=Object.assign(Object.assign({},this.options),r),s=e.getAllNodes(),a=e.getAllEdges(),u=this.formatOptions(n,e),{dimensions:d,width:l,height:h,nodeSize:c,getMass:f,nodeStrength:g,edgeStrength:p,linkDistance:m}=u,v=s.map((t,e)=>Object.assign(Object.assign({},t),{data:Object.assign(Object.assign({},t.data),{x:(0,o.Z)(t.data.x)?t.data.x:Math.random()*l,y:(0,o.Z)(t.data.y)?t.data.y:Math.random()*h,z:(0,o.Z)(t.data.z)?t.data.z:Math.random()*Math.sqrt(l*h),size:c(t)||30,mass:f(t),nodeStrength:g(t)})})),y=a.map(t=>Object.assign(Object.assign({},t),{data:Object.assign(Object.assign({},t.data),{edgeStrength:p(t),linkDistance:m(t,e.getNode(t.source),e.getNode(t.target))})}));if(!(null==s?void 0:s.length))return this.lastResult={nodes:[],edges:a},{nodes:[],edges:a};let w={};s.forEach((t,e)=>{w[t.id]={x:0,y:0,z:0}});let b=new i.k({nodes:v,edges:y});this.formatCentripetal(u,b);let{maxIteration:E,minMovement:N,onTick:M}=u;if(this.lastLayoutNodes=v,this.lastLayoutEdges=y,this.lastAssign=t,this.lastGraph=e,this.lastCalcGraph=b,this.lastOptions=u,this.lastVelMap=w,"undefined"==typeof window)return;let _=0;return new Promise(r=>{this.timeInterval=window.setInterval(()=>{s&&this.running||r({nodes:x(e,v),edges:a}),this.runOneStep(b,e,_,w,u),this.updatePosition(e,b,w,u),t&&v.forEach(t=>e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y,z:3===d?t.data.z:void 0})),null==M||M({nodes:x(e,v),edges:a}),(++_>=E||this.judgingDistance{let r=1;(0,o.Z)(null==t?void 0:t.data.mass)&&(r=null==t?void 0:t.data.mass);let n=e.getDegree(t.id,"both");return!n||n<5?r:5*n*r});let f=(0,u.jE)(0,t.nodeSpacing);r=c?(0,a.Z)(c)?t=>c(t)+f(t):(0,d.k)(c)?t=>Math.max(c[0],c[1])+f(t):t=>c+f(t):t=>{let{size:e}=(null==t?void 0:t.data)||{};return e?(0,d.k)(e)?Math.max(e[0],e[1])+f(t):(0,s.Z)(e)?Math.max(e.width,e.height)+f(t):e+f(t):10+f(t)},n.nodeSize=r;let g=t.linkDistance?(0,u.jE)(1,t.linkDistance):t=>1+n.nodeSize(e.getNode(t.source))+n.nodeSize(e.getNode(t.target));return n.linkDistance=g,n.nodeStrength=(0,u.jE)(1,t.nodeStrength),n.edgeStrength=(0,u.jE)(1,t.edgeStrength),n}formatCentripetal(t,e){let r,n;let{dimensions:i,centripetalOptions:o,center:s,clusterNodeStrength:a,leafCluster:u,clustering:d,nodeClusterBy:l}=t,h=e.getAllNodes(),c=o||{leaf:2,single:2,others:1,center:t=>({x:s[0],y:s[1],z:3===i?s[2]:void 0})};if("function"!=typeof a&&(t.clusterNodeStrength=t=>a),u&&l&&(r=m(e,l),n=Array.from(new Set(null==h?void 0:h.map(t=>t.data[l])))||[],t.centripetalOptions=Object.assign(c,{single:100,leaf:e=>{let{siblingLeaves:i,sameTypeLeaves:o}=r[e.id]||{};return(null==o?void 0:o.length)===(null==i?void 0:i.length)||(null==n?void 0:n.length)===1?1:t.clusterNodeStrength(e)},others:1,center:t=>{let n;let i=e.getDegree(t.id,"both");if(!i)return{x:100,y:100,z:0};if(1===i){let{sameTypeLeaves:e=[]}=r[t.id]||{};1===e.length?n=void 0:e.length>1&&(n=w(e))}else n=void 0;return{x:null==n?void 0:n.x,y:null==n?void 0:n.y,z:null==n?void 0:n.z}}})),d&&l){r||(r=m(e,l)),n||(n=Array.from(new Set(h.map(t=>t.data[l])))),n=n.filter(t=>void 0!==t);let i={};n.forEach(t=>{let r=h.filter(e=>e.data[l]===t).map(t=>e.getNode(t.id));i[t]=w(r)}),t.centripetalOptions=Object.assign(c,{single:e=>t.clusterNodeStrength(e),leaf:e=>t.clusterNodeStrength(e),others:e=>t.clusterNodeStrength(e),center:t=>{let e=i[t.data[l]];return{x:null==e?void 0:e.x,y:null==e?void 0:e.y,z:null==e?void 0:e.z}}})}let{leaf:f,single:g,others:p}=t.centripetalOptions||{};f&&"function"!=typeof f&&(t.centripetalOptions.leaf=()=>f),g&&"function"!=typeof g&&(t.centripetalOptions.single=()=>g),p&&"function"!=typeof p&&(t.centripetalOptions.others=()=>p)}runOneStep(t,e,r,n,i){let o={},s=t.getAllNodes(),a=t.getAllEdges();if(!(null==s?void 0:s.length))return;let{monitor:u}=i;if(this.calRepulsive(t,o,i),a&&this.calAttractive(t,o,i),this.calGravity(t,e,o,i),this.updateVelocity(t,o,n,i),u){let t=this.calTotalEnergy(o,s);u({energy:t,nodes:e.getAllNodes(),edges:e.getAllEdges(),iterations:r})}}calTotalEnergy(t,e){if(!(null==e?void 0:e.length))return 0;let r=0;return e.forEach((e,n)=>{let i=t[e.id].x,o=t[e.id].y,s=3===this.options.dimensions?t[e.id].z:0,{mass:a=1}=e.data;r+=a*(i*i+o*o+s*s)*.5}),r}calRepulsive(t,e,r){let{dimensions:n,factor:i,coulombDisScale:o}=r;!function(t,e,r,n,i=2){let o=e/r,s=t.getAllNodes(),a=s.map((t,e)=>{let{nodeStrength:r,x:n,y:i,z:s,size:a}=t.data;return{x:n,y:i,z:s,size:a,index:e,id:t.id,vx:0,vy:0,vz:0,weight:o*r}}),u=(2===i?(0,l.Z)(a,t=>t.x,t=>t.y):(0,h.Z)(a,t=>t.x,t=>t.y,t=>t.z)).visitAfter(c),d=new Map;a.forEach(t=>{d.set(t.id,t),function(t,e,r){e.visit((e,n,i,o,s)=>f(e,n,i,o,s,t,r))}(t,u,i)}),a.map((t,e)=>{let{id:r,data:i}=s[e],{mass:o=1}=i;n[r]={x:t.vx/o,y:t.vy/o,z:t.vz/o}})}(t,i,o*o,e,n)}calAttractive(t,e,r){let{dimensions:n,nodeSize:i}=r;t.getAllEdges().forEach((r,o)=>{let{source:s,target:a}=r,u=t.getNode(s),d=t.getNode(a);if(!u||!d)return;let l=d.data.x-u.data.x,h=d.data.y-u.data.y,c=3===n?d.data.z-u.data.z:0;l||h||(l=.01*Math.random(),h=.01*Math.random(),3!==n||c||(c=.01*Math.random()));let f=Math.sqrt(l*l+h*h+c*c);if(f{let{id:s,data:g}=n,{mass:p,x:m,y:v,z:y}=g,w=e.getNode(s),x=0,b=0,E=0,N=c,M=t.getDegree(s,"in"),_=t.getDegree(s,"out"),k=t.getDegree(s,"both"),A=null==i?void 0:i(w,k);if(A){let[t,e,r]=A;x=m-t,b=v-e,N=r}else x=m-h[0],b=v-h[1],E=y-h[2];if(N&&(r[s].x-=N*x/p,r[s].y-=N*b/p,r[s].z-=N*E/p),f){let{leaf:t,single:e,others:n,center:i}=f,{x:h,y:c,z:g,centerStrength:x}=(null==i?void 0:i(w,a,u,d,l))||{x:0,y:0,z:0,centerStrength:0};if(!(0,o.Z)(h)||!(0,o.Z)(c))return;let b=(m-h)/p,E=(v-c)/p,N=(y-g)/p;if(x&&(r[s].x-=x*b,r[s].y-=x*E,r[s].z-=x*N),0===k){let t=e(w);if(!t)return;r[s].x-=t*b,r[s].y-=t*E,r[s].z-=t*N;return}if(0===M||0===_){let e=t(w,a,u);if(!e)return;r[s].x-=e*b,r[s].y-=e*E,r[s].z-=e*N;return}let A=n(w);if(!A)return;r[s].x-=A*b,r[s].y-=A*E,r[s].z-=A*N}})}updateVelocity(t,e,r,n){let{damping:i,maxSpeed:o,interval:s,dimensions:a}=n,u=t.getAllNodes();(null==u?void 0:u.length)&&u.forEach(t=>{let{id:n}=t,u=(r[n].x+e[n].x*s)*i||.01,d=(r[n].y+e[n].y*s)*i||.01,l=3===a?(r[n].z+e[n].z*s)*i||.01:0,h=Math.sqrt(u*u+d*d+l*l);if(h>o){let t=o/h;u*=t,d*=t,l*=t}r[n]={x:u,y:d,z:l}})}updatePosition(t,e,r,n){let{distanceThresholdMode:i,interval:s,dimensions:a}=n,u=e.getAllNodes();if(!(null==u?void 0:u.length)){this.judgingDistance=0;return}let d=0;"max"===i?this.judgingDistance=-1/0:"min"===i&&(this.judgingDistance=1/0),u.forEach(n=>{let{id:u}=n,l=t.getNode(u);if((0,o.Z)(l.data.fx)&&(0,o.Z)(l.data.fy)){e.mergeNodeData(u,{x:l.data.fx,y:l.data.fy,z:3===a?l.data.fz:void 0});return}let h=r[u].x*s,c=r[u].y*s,f=3===a?r[u].z*s:0;e.mergeNodeData(u,{x:n.data.x+h,y:n.data.y+c,z:n.data.z+f});let g=Math.sqrt(h*h+c*c+f*f);switch(i){case"max":this.judgingDistanceg&&(this.judgingDistance=g);break;default:d+=g}}),i&&"mean"!==i||(this.judgingDistance=d/u.length)}}let m=(t,e)=>{let r=t.getAllNodes();if(!(null==r?void 0:r.length))return{};let n={};return r.forEach((r,i)=>{let o=t.getDegree(r.id,"both");1===o&&(n[r.id]=v(t,"leaf",r,e))}),n},v=(t,e,r,n)=>{let i=t.getDegree(r.id,"in"),o=t.getDegree(r.id,"out"),s=r,a=[];0===i?(s=t.getSuccessors(r.id)[0],a=t.getNeighbors(s.id)):0===o&&(s=t.getPredecessors(r.id)[0],a=t.getNeighbors(s.id)),a=a.filter(e=>0===t.getDegree(e.id,"in")||0===t.getDegree(e.id,"out"));let u=y(t,e,n,r,a);return{coreNode:s,siblingLeaves:a,sameTypeLeaves:u}},y=(t,e,r,n,i)=>{let o=n.data[r]||"",s=(null==i?void 0:i.filter(t=>t.data[r]===o))||[];return"leaf"===e&&(s=s.filter(e=>0===t.getDegree(e.id,"in")||0===t.getDegree(e.id,"out"))),s},w=t=>{let e={x:0,y:0};t.forEach(t=>{let{x:r,y:n}=t.data;e.x+=r||0,e.y+=n||0});let r=t.length||1;return{x:e.x/r,y:e.y/r}},x=(t,e)=>e.map(e=>{let{id:r,data:n}=e,i=t.getNode(r);return Object.assign(Object.assign({},i),{data:Object.assign(Object.assign({},i.data),{x:n.x,y:n.y,z:n.z})})})},67753:function(t,e,r){"use strict";r.d(e,{E:function(){return p}});var n=r(97582),i=r(72137),o=r(61035),s=r(97653),a=r(38027),u=r(98130),d=r(85087),l=r(20464);class h{constructor(t){this.id=t.id||0,this.rx=t.rx,this.ry=t.ry,this.fx=0,this.fy=0,this.mass=t.mass,this.degree=t.degree,this.g=t.g||0}distanceTo(t){let e=this.rx-t.rx,r=this.ry-t.ry;return Math.hypot(e,r)}setPos(t,e){this.rx=t,this.ry=e}resetForce(){this.fx=0,this.fy=0}addForce(t){let e=t.rx-this.rx,r=t.ry-this.ry,n=Math.hypot(e,r);n=n<1e-4?1e-4:n;let i=this.g*(this.degree+1)*(t.degree+1)/n;this.fx+=i*e/n,this.fy+=i*r/n}in(t){return t.contains(this.rx,this.ry)}add(t){let e=this.mass+t.mass,r=(this.rx*this.mass+t.rx*t.mass)/e,n=(this.ry*this.mass+t.ry*t.mass)/e,i=this.degree+t.degree;return new h({rx:r,ry:n,mass:e,degree:i})}}class c{constructor(t){this.xmid=t.xmid,this.ymid=t.ymid,this.length=t.length,this.massCenter=t.massCenter||[0,0],this.mass=t.mass||1}getLength(){return this.length}contains(t,e){let r=this.length/2;return t<=this.xmid+r&&t>=this.xmid-r&&e<=this.ymid+r&&e>=this.ymid-r}NW(){let t=this.xmid-this.length/4,e=this.ymid+this.length/4,r=this.length/2,n=new c({xmid:t,ymid:e,length:r});return n}NE(){let t=this.xmid+this.length/4,e=this.ymid+this.length/4,r=this.length/2,n=new c({xmid:t,ymid:e,length:r});return n}SW(){let t=this.xmid-this.length/4,e=this.ymid-this.length/4,r=this.length/2,n=new c({xmid:t,ymid:e,length:r});return n}SE(){let t=this.xmid+this.length/4,e=this.ymid-this.length/4,r=this.length/2,n=new c({xmid:t,ymid:e,length:r});return n}}class f{constructor(t){this.body=null,this.quad=null,this.NW=null,this.NE=null,this.SW=null,this.SE=null,this.theta=.5,null!=t&&(this.quad=t)}insert(t){if(null==this.body){this.body=t;return}this._isExternal()?(this.quad&&(this.NW=new f(this.quad.NW()),this.NE=new f(this.quad.NE()),this.SW=new f(this.quad.SW()),this.SE=new f(this.quad.SE())),this._putBody(this.body),this._putBody(t),this.body=this.body.add(t)):(this.body=this.body.add(t),this._putBody(t))}_putBody(t){this.quad&&(t.in(this.quad.NW())&&this.NW?this.NW.insert(t):t.in(this.quad.NE())&&this.NE?this.NE.insert(t):t.in(this.quad.SW())&&this.SW?this.SW.insert(t):t.in(this.quad.SE())&&this.SE&&this.SE.insert(t))}_isExternal(){return null==this.NW&&null==this.NE&&null==this.SW&&null==this.SE}updateForce(t){if(null!=this.body&&t!==this.body){if(this._isExternal())t.addForce(this.body);else{let e=this.quad?this.quad.getLength():0,r=this.body.distanceTo(t);e/r(0,u.u)(t,[a,d])),m=n.filter(t=>{let{source:e,target:r}=t;return e!==r}),v=new i.k({nodes:p,edges:m}),y=this.getSizes(v,e,f);if(this.run(v,e,c,y,t,s),h){for(let t=0;t250&&(r.barnesHut=!0),void 0===a&&e>100&&(r.prune=!0),0!==u||a?0===u&&a&&(r.maxIteration=100,e<=200&&e>100?r.maxIteration=500:e>200&&(r.maxIteration=950)):(r.maxIteration=250,e<=200&&e>100?r.maxIteration=1e3:e>200&&(r.maxIteration=1200)),!d&&(r.kr=50,e>100&&e<=500?r.kr=20:e>500&&(r.kr=1)),!l&&(r.kg=20,e>100&&e<=500?r.kg=10:e>500&&(r.kg=1)),r}run(t,e,r,n,i,o){let{kr:s,barnesHut:a,onTick:u}=o,d=t.getAllNodes(),l=0,c=r,f={},g={},p={};for(let e=0;e0;)l=this.oneStep(t,{iter:c,preventOverlapIters:50,krPrime:100,sg:l,forces:f,preForces:g,bodies:p,sizes:n},o),c--,null==u||u({nodes:d,edges:e.getAllEdges()});return t}oneStep(t,e,r){let{iter:n,preventOverlapIters:i,krPrime:o,sg:s,preForces:a,bodies:u,sizes:d}=e,{forces:l}=e,{preventOverlap:h,barnesHut:c}=r,f=t.getAllNodes();for(let t=0;ti||!h)?this.getOptRepGraForces(t,l,u,r):this.getRepGraForces(t,n,i,l,o,d,r),this.updatePos(t,l,a,s,r)}getAttrForces(t,e,r,n,i,o){let{preventOverlap:s,dissuadeHubs:a,mode:u,prune:d}=o,l=t.getAllEdges();for(let o=0;o0&&(w=y,x=y),i[h][0]+=w*v[0],i[c][0]-=x*v[0],i[h][1]+=w*v[1],i[c][1]-=x*v[1]}return i}getOptRepGraForces(t,e,r,n){let{kg:i,center:o,prune:s}=n,a=t.getAllNodes(),u=a.length,d=9e10,l=-9e10,h=9e10,g=-9e10;for(let e=0;e=t.getDegree(n))&&(r[n].setPos(i.x,i.y),i.x>=l&&(l=i.x),i.x<=d&&(d=i.x),i.y>=g&&(g=i.y),i.y<=h&&(h=i.y))}let p=Math.max(l-d,g-h),m={xmid:(l+d)/2,ymid:(g+h)/2,length:p,massCenter:o,mass:u},v=new c(m),y=new f(v);for(let e=0;e=t.getDegree(n))&&r[n].in(v)&&y.insert(r[n])}for(let n=0;n0&&(v=u*(p+1)*(l+1)/m),n[g.id][0]-=v*f[0],n[s.id][0]+=v*f[0],n[g.id][1]-=v*f[1],n[s.id][1]+=v*f[1]}let m=[g.data.x-l[0],g.data.y-l[1]],v=Math.hypot(m[0],m[1]);m[0]=m[0]/v,m[1]=m[1]/v;let y=d*(p+1);n[g.id][0]-=y*m[0],n[g.id][1]-=y*m[1]}return n}updatePos(t,e,r,n,i){let{ks:s,tao:a,prune:u,ksmax:d}=i,l=t.getAllNodes(),h=l.length,c=[],f=[],g=0,p=0,m=n;for(let n=0;n1.5*v?1.5*v:m);for(let r=0;rg?g:h;let p=h*e[n][0],v=h*e[n][1];t.mergeNodeData(n,{x:i.x+p,y:i.y+v})}return m}}},89469:function(t,e,r){"use strict";r.d(e,{O:function(){return u}});var n=r(97582),i=r(72137),o=r(61035),s=r(98130);let a={maxIteration:1e3,gravity:10,speed:5,clustering:!1,clusterGravity:10,width:300,height:300,nodeClusterBy:"cluster"};class u{constructor(t={}){this.options=t,this.id="fruchterman",this.timeInterval=0,this.running=!1,this.options=Object.assign(Object.assign({},a),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,function*(){return this.genericFruchtermanLayout(!1,t,e)})}assign(t,e){return(0,n.mG)(this,void 0,void 0,function*(){yield this.genericFruchtermanLayout(!0,t,e)})}stop(){this.timeInterval&&"undefined"!=typeof window&&window.clearInterval(this.timeInterval),this.running=!1}tick(t=this.options.maxIteration||1){if(this.lastResult)return this.lastResult;for(let e=0;ethis.lastGraph.mergeNodeData(t.id,{x:t.data.x,y:t.data.y,z:3===this.options.dimensions?t.data.z:void 0})),e}genericFruchtermanLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,function*(){if(this.running)return;let n=this.formatOptions(r),{dimensions:o,width:a,height:u,center:d,clustering:l,nodeClusterBy:h,maxIteration:c,onTick:f}=n,g=e.getAllNodes(),p=e.getAllEdges();if(!(null==g?void 0:g.length)){let t={nodes:[],edges:p};return this.lastResult=t,t}if(1===g.length){t&&e.mergeNodeData(g[0].id,{x:d[0],y:d[1],z:3===o?d[2]:void 0});let r={nodes:[Object.assign(Object.assign({},g[0]),{data:Object.assign(Object.assign({},g[0].data),{x:d[0],y:d[1],z:3===o?d[2]:void 0})})],edges:p};return this.lastResult=r,r}let m=g.map(t=>(0,s.u)(t,[a,u])),v=new i.k({nodes:m,edges:p}),y={};if(l&&m.forEach(t=>{let e=t.data[h];y[e]||(y[e]={name:e,cx:0,cy:0,count:0})}),this.lastLayoutNodes=m,this.lastLayoutEdges=p,this.lastAssign=t,this.lastGraph=v,this.lastOptions=n,this.lastClusterMap=y,"undefined"==typeof window)return;let w=0;return new Promise(r=>{this.timeInterval=window.setInterval(()=>{if(!this.running){r({nodes:m,edges:p});return}this.runOneStep(v,y,n),t&&m.forEach(({id:t,data:r})=>e.mergeNodeData(t,{x:r.x,y:r.y,z:3===o?r.z:void 0})),null==f||f({nodes:m,edges:p}),++w>=c&&(window.clearInterval(this.timeInterval),r({nodes:m,edges:p}))},0),this.running=!0})})}formatOptions(t={}){let e=Object.assign(Object.assign({},this.options),t),{clustering:r,nodeClusterBy:n}=e,{center:i,width:o,height:s}=e;return e.width=o||"undefined"==typeof window?o:window.innerWidth,e.height=s||"undefined"==typeof window?s:window.innerHeight,e.center=i||[e.width/2,e.height/2],e.clustering=r&&!!n,e}runOneStep(t,e,r){let{dimensions:n,height:i,width:s,gravity:a,center:u,speed:d,clustering:l,nodeClusterBy:h,clusterGravity:c}=r,f=i*s,g=Math.sqrt(f)/10,p=t.getAllNodes(),m=f/(p.length+1),v=Math.sqrt(m),y={};if(this.applyCalculate(t,y,v,m),l){for(let t in e)e[t].cx=0,e[t].cy=0,e[t].count=0;for(let t in p.forEach(t=>{let{data:r}=t,n=e[r[h]];(0,o.Z)(r.x)&&(n.cx+=r.x),(0,o.Z)(r.y)&&(n.cy+=r.y),n.count++}),e)e[t].cx/=e[t].count,e[t].cy/=e[t].count;let t=c||a;p.forEach((r,n)=>{let{id:i,data:s}=r;if(!(0,o.Z)(s.x)||!(0,o.Z)(s.y))return;let a=e[s[h]],u=Math.sqrt((s.x-a.cx)*(s.x-a.cx)+(s.y-a.cy)*(s.y-a.cy)),d=v*t;y[i].x-=d*(s.x-a.cx)/u,y[i].y-=d*(s.y-a.cy)/u})}p.forEach((t,e)=>{let{id:r,data:i}=t;if(!(0,o.Z)(i.x)||!(0,o.Z)(i.y))return;let s=.01*v*a;y[r].x-=s*(i.x-u[0]),y[r].y-=s*(i.y-u[1]),3===n&&(y[r].z-=s*(i.z-u[2]))}),p.forEach((e,r)=>{let{id:i,data:s}=e;if((0,o.Z)(s.fx)&&(0,o.Z)(s.fy)){s.x=s.fx,s.y=s.fy,3===n&&(s.z=s.fz);return}if(!(0,o.Z)(s.x)||!(0,o.Z)(s.y))return;let a=Math.sqrt(y[i].x*y[i].x+y[i].y*y[i].y+(3===n?y[i].z*y[i].z:0));if(a>0){let e=Math.min(g*(d/800),a);t.mergeNodeData(i,{x:s.x+y[i].x/a*e,y:s.y+y[i].y/a*e,z:3===n?s.z+y[i].z/a*e:void 0})}})}applyCalculate(t,e,r,n){this.calRepulsive(t,e,n),this.calAttractive(t,e,r)}calRepulsive(t,e,r){let n=t.getAllNodes();n.forEach(({data:t,id:i},s)=>{e[i]={x:0,y:0,z:0},n.forEach(({data:n,id:a},u)=>{if(s<=u||!(0,o.Z)(t.x)||!(0,o.Z)(n.x)||!(0,o.Z)(t.y)||!(0,o.Z)(n.y))return;let d=t.x-n.x,l=t.y-n.y,h=3===this.options.dimensions?t.z-n.z:0,c=d*d+l*l+h*h;0===c&&(c=1,d=.01,l=.01,h=.01);let f=r/c,g=d*f,p=l*f,m=h*f;e[i].x+=g,e[i].y+=p,e[a].x-=g,e[a].y-=p,3===this.options.dimensions&&(e[i].z+=m,e[a].z-=m)})})}calAttractive(t,e,r){let n=t.getAllEdges();n.forEach(n=>{let{source:i,target:s}=n;if(!i||!s||i===s)return;let{data:a}=t.getNode(i),{data:u}=t.getNode(s);if(!(0,o.Z)(u.x)||!(0,o.Z)(a.x)||!(0,o.Z)(u.y)||!(0,o.Z)(a.y))return;let d=u.x-a.x,l=u.y-a.y,h=3===this.options.dimensions?u.z-a.z:0,c=Math.sqrt(d*d+l*l+h*h)/r,f=d*c,g=l*c,p=h*c;e[i].x+=f,e[i].y+=g,e[s].x-=f,e[s].y-=g,3===this.options.dimensions&&(e[i].z+=p,e[s].z-=p)})}}},41733:function(t,e,r){"use strict";r.d(e,{M:function(){return h}});var n=r(97582),i=r(52940),o=r(61035),s=r(98130),a=r(78732),u=r(85087),d=r(20464);let l={begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position:void 0,sortBy:"degree",nodeSize:30,width:300,height:300};class h{constructor(t={}){this.options=t,this.id="grid",this.options=Object.assign(Object.assign({},l),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,function*(){return this.genericGridLayout(!1,t,e)})}assign(t,e){return(0,n.mG)(this,void 0,void 0,function*(){yield this.genericGridLayout(!0,t,e)})}genericGridLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,function*(){let n=Object.assign(Object.assign({},this.options),r),{begin:l=[0,0],condense:h,preventOverlapPadding:m,preventOverlap:y,rows:w,cols:x,nodeSpacing:b,nodeSize:E,width:N,height:M,position:_}=n,{sortBy:k}=n,A=e.getAllNodes(),S=e.getAllEdges(),j=null==A?void 0:A.length;if(!j||1===j)return(0,d.P)(e,t,l);let O=A.map(t=>(0,s.u)(t));"id"===k||(0,i.Z)(k)&&void 0!==O[0].data[k]||(k="degree"),"degree"===k?O.sort((t,r)=>e.getDegree(r.id,"both")-e.getDegree(t.id,"both")):"id"===k?O.sort((t,e)=>(0,o.Z)(e.id)&&(0,o.Z)(t.id)?e.id-t.id:`${t.id}`.localeCompare(`${e.id}`)):O.sort((t,e)=>e.data[k]-t.data[k]);let R=N||"undefined"==typeof window?N:window.innerWidth,z=M||"undefined"==typeof window?M:window.innerHeight,I={rows:w,cols:x};if(null!=w&&null!=x)I.rows=w,I.cols=x;else if(null!=w&&null==x)I.rows=w,I.cols=Math.ceil(j/I.rows);else if(null==w&&null!=x)I.cols=x,I.rows=Math.ceil(j/I.cols);else{let t=Math.sqrt(j*z/R);I.rows=Math.round(t),I.cols=Math.round(R/z*t)}if(I.rows=Math.max(I.rows,1),I.cols=Math.max(I.cols,1),I.cols*I.rows>j){let t=c(I),e=f(I);(t-1)*e>=j?c(I,t-1):(e-1)*t>=j&&f(I,e-1)}else for(;I.cols*I.rows=j?f(I,e+1):c(I,t+1)}let C=h?0:R/I.cols,D=h?0:z/I.rows;if(y||b){let t=(0,a.jE)(10,b),r=(0,a.tO)(30,E,!1);O.forEach(n=>{let i,o;n.data.x&&n.data.y||(n.data.x=0,n.data.y=0);let s=e.getNode(n.id),a=r(s)||30;(0,u.k)(a)?(i=a[0],o=a[1]):(i=a,o=a);let d=void 0!==t?t(n):m,l=i+d,h=o+d;C=Math.max(C,l),D=Math.max(D,h)})}let P={},T={row:0,col:0},L={};for(let t=0;t{e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y})}),{nodes:O,edges:S}})}}let c=(t,e)=>{let r;let n=t.rows||5,i=t.cols||5;return null==e?r=Math.min(n,i):Math.min(n,i)===t.rows?t.rows=e:t.cols=e,r},f=(t,e)=>{let r;let n=t.rows||5,i=t.cols||5;return null==e?r=Math.max(n,i):Math.max(n,i)===t.rows?t.rows=e:t.cols=e,r},g=(t,e)=>t[`c-${e.row}-${e.col}`]||!1,p=(t,e)=>t[`c-${e.row}-${e.col}`]=!0,m=(t,e)=>{let r=t.cols||5;e.col++,e.col>=r&&(e.col=0,e.row++)},v=(t,e,r,n,i,o,s,a)=>{let u,d;let l=i[t.id];if(l)u=l.col*r+r/2+e[0],d=l.row*n+n/2+e[1];else{for(;g(a,s);)m(o,s);u=s.col*r+r/2+e[0],d=s.row*n+n/2+e[1],p(a,s),m(o,s)}t.data.x=u,t.data.y=d}},64912:function(t,e,r){"use strict";r.d(e,{A:function(){return d}});var n=r(97582),i=r(93396),o=r(80628),s=r(98130),a=r(20464);let u={center:[0,0],linkDistance:50};class d{constructor(t={}){this.options=t,this.id="mds",this.options=Object.assign(Object.assign({},u),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,function*(){return this.genericMDSLayout(!1,t,e)})}assign(t,e){return(0,n.mG)(this,void 0,void 0,function*(){yield this.genericMDSLayout(!0,t,e)})}genericMDSLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,function*(){let n=Object.assign(Object.assign({},this.options),r),{center:i=[0,0],linkDistance:u=50}=n,d=e.getAllNodes(),c=e.getAllEdges();if(!(null==d?void 0:d.length)||1===d.length)return(0,a.P)(e,t,i);let f=(0,o.zJ)({nodes:d,edges:c},!1),g=(0,o.qs)(f);l(g);let p=(0,o.nu)(g,u),m=h(p),v=[];return m.forEach((t,e)=>{let r=(0,s.u)(d[e]);r.data.x=t[0]+i[0],r.data.y=t[1]+i[1],v.push(r)}),t&&v.forEach(t=>e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y})),{nodes:v,edges:c}})}}let l=t=>{let e=-999999;t.forEach(t=>{t.forEach(t=>{t!==1/0&&e{r.forEach((r,i)=>{r===1/0&&(t[n][i]=e)})})},h=t=>{let e=i.y3.mul(i.y3.pow(t,2),-.5),r=e.mean("row"),n=e.mean("column"),o=e.mean();e.add(o).subRowVector(r).subColumnVector(n);let s=new i.Sc(e),a=i.y3.sqrt(s.diagonalMatrix).diagonal();return s.leftSingularVectors.toJSON().map(t=>i.y3.mul([t],[a]).toJSON()[0].splice(0,2))}},29257:function(t,e,r){"use strict";r.d(e,{D:function(){return m}});var n=r(97582),i=r(52940),o=r(80628),s=r(78732),a=r(98130),u=r(20464),d=r(93396);let l=(t,e,r)=>{try{let r=d.y3.mul(d.y3.pow(e,2),-.5),n=r.mean("row"),i=r.mean("column"),o=r.mean();r.add(o).subRowVector(n).subColumnVector(i);let s=new d.Sc(r),a=d.y3.sqrt(s.diagonalMatrix).diagonal();return s.leftSingularVectors.toJSON().map(e=>d.y3.mul([e],[a]).toJSON()[0].splice(0,t))}catch(n){let t=[];for(let n=0;n{let r=Object.assign(Object.assign({},h),e),{positions:n,iterations:i,width:o,k:s,speed:a=100,strictRadial:u,focusIdx:d,radii:l=[],nodeSizeFunc:c}=r,p=t.getAllNodes(),m=[],v=o/10;for(let t=0;t{m[e]={x:0,y:0}}),f(p,n,m,s,l,c),g(n,m,a,u,d,v,o,l);return n},f=(t,e,r,n,i,o)=>{e.forEach((s,a)=>{r[a]={x:0,y:0},e.forEach((e,u)=>{if(a===u||i[a]!==i[u])return;let d=s.x-e.x,l=s.y-e.y,h=Math.sqrt(d*d+l*l);if(0===h){h=1;let t=a>u?1:-1;d=.01*t,l=.01*t}if(h{let u=o||s/10;return n&&e.forEach((e,r)=>{let n=t[r].x-t[i].x,o=t[r].y-t[i].y,s=Math.sqrt(n*n+o*o),a=o/s,u=-n/s,d=Math.sqrt(e.x*e.x+e.y*e.y),l=Math.acos((a*e.x+u*e.y)/d);l>Math.PI/2&&(l-=Math.PI/2,a*=-1,u*=-1);let h=Math.cos(l)*d;e.x=a*h,e.y=u*h}),t.forEach((o,s)=>{if(s===i)return;let d=Math.sqrt(e[s].x*e[s].x+e[s].y*e[s].y);if(d>0&&s!==i){let l=Math.min(u*(r/800),d);if(o.x+=e[s].x/d*l,o.y+=e[s].y/d*l,n){let e=o.x-t[i].x,r=o.y-t[i].y,n=Math.sqrt(e*e+r*r);e=e/n*a[s],r=r/n*a[s],o.x=t[i].x+e,o.y=t[i].y+r}}}),t},p={maxIteration:1e3,focusNode:null,unitRadius:null,linkDistance:50,preventOverlap:!1,strictRadial:!0,maxPreventOverlapIteration:200,sortStrength:10};class m{constructor(t={}){this.options=t,this.id="radial",this.options=Object.assign(Object.assign({},p),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,function*(){return this.genericRadialLayout(!1,t,e)})}assign(t,e){return(0,n.mG)(this,void 0,void 0,function*(){yield this.genericRadialLayout(!0,t,e)})}genericRadialLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,function*(){let n;let d=Object.assign(Object.assign({},this.options),r),{width:h,height:f,center:g,focusNode:p,unitRadius:m,nodeSize:E,nodeSpacing:N,strictRadial:M,preventOverlap:_,maxPreventOverlapIteration:k,sortBy:A,linkDistance:S=50,sortStrength:j=10,maxIteration:O=1e3}=d,R=e.getAllNodes(),z=e.getAllEdges(),I=h||"undefined"==typeof window?h:window.innerWidth,C=f||"undefined"==typeof window?f:window.innerHeight,D=g||[I/2,C/2];if(!(null==R?void 0:R.length)||1===R.length)return(0,u.P)(e,t,D);let P=R[0];if((0,i.Z)(p)){for(let t=0;tD[0]?D[0]:I-D[0],V=C-D[1]>D[1]?D[1]:C-D[1];0===G&&(G=I/2),0===V&&(V=C/2);let U=Math.min(G,V),$=[],B=m||U/Math.max(...Z);Z.forEach((t,e)=>{$[e]=t*B});let W=v(R,F,S,$,B,A,j),Y=y(W),H=l(S,W,S),J=H.map(([t,e])=>({x:(isNaN(t)?Math.random()*S:t)-H[T][0],y:(isNaN(e)?Math.random()*S:e)-H[T][1]}));if(this.run(O,J,Y,W,$,T),_){n=(0,s.gl)(E,N);let t={nodes:R,nodeSizeFunc:n,positions:J,radii:$,height:C,width:I,strictRadial:!!M,focusIdx:T,iterations:k||200,k:J.length/4.5};J=c(e,t)}let K=[];return J.forEach((t,e)=>{let r=(0,a.u)(R[e]);r.data.x=t.x+D[0],r.data.y=t.y+D[1],K.push(r)}),t&&K.forEach(t=>e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y})),{nodes:K,edges:z}})}run(t,e,r,n,i,o){for(let s=0;s<=t;s++){let a=s/t;this.oneIteration(a,e,i,n,r,o)}}oneIteration(t,e,r,n,i,s){let a=1-t;e.forEach((u,d)=>{let l=(0,o.$y)(u,{x:0,y:0}),h=0===l?0:1/l;if(d===s)return;let c=0,f=0,g=0;e.forEach((t,e)=>{if(d===e)return;let r=(0,o.$y)(u,t),s=0===r?0:1/r,a=n[e][d];g+=i[d][e],c+=i[d][e]*(t.x+a*(u.x-t.x)*s),f+=i[d][e]*(t.y+a*(u.y-t.y)*s)});let p=0===r[d]?0:1/r[d];g*=a,g+=t*p*p,c*=a,c+=t*p*u.x*h,u.x=c/g,f*=a,f+=t*p*u.y*h,u.y=f/g})}}let v=(t,e,r,n,o,s,a)=>{if(!t)return[];let u=[];if(e){let d={};e.forEach((e,l)=>{let h=[];e.forEach((e,u)=>{var c,f;if(l===u)h.push(0);else if(n[l]===n[u]){if("data"===s)h.push(e*(Math.abs(l-u)*a)/(n[l]/o));else if(s){let r,g;if(d[t[l].id])r=d[t[l].id];else{let e=("id"===s?t[l].id:null===(c=t[l].data)||void 0===c?void 0:c[s])||0;r=(0,i.Z)(e)?e.charCodeAt(0):e,d[t[l].id]=r}if(d[t[u].id])g=d[t[u].id];else{let e=("id"===s?t[u].id:null===(f=t[u].data)||void 0===f?void 0:f[s])||0;g=(0,i.Z)(e)?e.charCodeAt(0):e,d[t[u].id]=g}h.push(e*(Math.abs(r-g)*a)/(n[l]/o))}else h.push(e*r/(n[l]/o))}else{let t=(r+o)/2;h.push(e*t)}}),u.push(h)})}return u},y=t=>{let e=t.length,r=t[0].length,n=[];for(let i=0;i{let r=-1;return t.forEach((t,n)=>{t.id===e&&(r=n)}),Math.max(r,0)},x=(t,e,r)=>{let n=t.length;for(let i=0;i{let r=0;for(let n=0;nr?t[e][n]:r);return r}},26629:function(t,e,r){"use strict";r.d(e,{_:function(){return o}});var n=r(97582);let i={center:[0,0],width:300,height:300};class o{constructor(t={}){this.options=t,this.id="random",this.options=Object.assign(Object.assign({},i),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,function*(){return this.genericRandomLayout(!1,t,e)})}assign(t,e){return(0,n.mG)(this,void 0,void 0,function*(){yield this.genericRandomLayout(!0,t,e)})}genericRandomLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,function*(){let n=Object.assign(Object.assign({},this.options),r),{center:i,width:o,height:s}=n,a=e.getAllNodes(),u=o||"undefined"==typeof window?o:window.innerWidth,d=s||"undefined"==typeof window?s:window.innerHeight,l=i||[u/2,d/2],h=[];a&&a.forEach(t=>{h.push({id:t.id,data:{x:(Math.random()-.5)*.9*u+l[0],y:(Math.random()-.5)*.9*d+l[1]}})}),t&&h.forEach(t=>e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y}));let c={nodes:h,edges:e.getAllEdges()};return c})}}},10779:function(t,e,r){"use strict";function n(t){return!!t.tick&&!!t.stop}r.d(e,{h:function(){return n}})},85087:function(t,e,r){"use strict";r.d(e,{k:function(){return n}});let n=Array.isArray},20464:function(t,e,r){"use strict";r.d(e,{P:function(){return n}});let n=(t,e,r)=>{let n=t.getAllNodes(),i=t.getAllEdges();if(!(null==n?void 0:n.length))return{nodes:[],edges:i};if(1===n.length){e&&t.mergeNodeData(n[0].id,{x:r[0],y:r[1]});let o={nodes:[Object.assign(Object.assign({},n[0]),{data:Object.assign(Object.assign({},n[0].data),{x:r[0],y:r[1]})})],edges:i};return o}}},78732:function(t,e,r){"use strict";r.d(e,{gl:function(){return u},jE:function(){return s},tO:function(){return a}});var n=r(38027),i=r(61035),o=r(97653);function s(t,e){return(0,n.Z)(e)?e:(0,i.Z)(e)?()=>e:()=>t}function a(t,e,r=!0){return e||0===e?(0,n.Z)(e)?e:(0,i.Z)(e)?()=>e:Array.isArray(e)?()=>{if(r){let r=Math.max(...e);return isNaN(r)?t:r}return e}:(0,o.Z)(e)?()=>{if(r){let r=Math.max(e.width,e.height);return isNaN(r)?t:r}return[e.width,e.height]}:()=>t:e=>{let{size:r}=e.data||{};return r?Array.isArray(r)?r[0]>r[1]?r[0]:r[1]:(0,o.Z)(r)?r.width>r.height?r.width:r.height:r:t}}let u=(t,e)=>{let r;return r=(0,i.Z)(e)?()=>e:(0,n.Z)(e)?e:()=>0,t?Array.isArray(t)?e=>{let n=t[0]>t[1]?t[0]:t[1];return n+r(e)}:(0,n.Z)(t)?t:e=>t+r(e):t=>{var e,n;if(null===(e=t.data)||void 0===e?void 0:e.bboxSize)return Math.max(t.data.bboxSize[0],t.data.bboxSize[1])+r(t);if(null===(n=t.data)||void 0===n?void 0:n.size){if(Array.isArray(t.data.size))return Math.max(t.data.size[0],t.data.size[1])+r(t);let e=t.data.size;if((0,o.Z)(e)){let n=e.width>e.height?e.width:e.height;return n+r(t)}return e+r(t)}return 10+r(t)}}},80628:function(t,e,r){"use strict";r.d(e,{$y:function(){return d},H0:function(){return u},_:function(){return l},nu:function(){return a},qs:function(){return o},zJ:function(){return s}});var n=r(61035),i=r(85087);let o=t=>{let e=[],r=t.length;for(let n=0;ne[n][t]+e[t][i]&&(e[n][i]=e[n][t]+e[t][i]);return e},s=(t,e)=>{let{nodes:r,edges:n}=t,i=[],o={};if(!r)throw Error("invalid nodes data!");return r&&r.forEach((t,e)=>{o[t.id]=e,i.push([])}),null==n||n.forEach(t=>{let{source:r,target:n}=t,s=o[r],a=o[n];void 0===s||void 0===a||(i[s][a]=1,e||(i[a][s]=1))}),i},a=(t,e)=>{let r=[];return t.forEach(t=>{let n=[];t.forEach(t=>{n.push(t*e)}),r.push(n)}),r},u=t=>{let e=1/0,r=1/0,o=-1/0,s=-1/0;return t.forEach(t=>{let a=t.data.size;(0,i.k)(a)?1===a.length&&(a=[a[0],a[0]]):(0,n.Z)(a)?a=[a,a]:(void 0===a||isNaN(a))&&(a=[30,30]);let u=[a[0]/2,a[1]/2],d=t.data.x-u[0],l=t.data.x+u[0],h=t.data.y-u[1],c=t.data.y+u[1];e>d&&(e=d),r>h&&(r=h),oMath.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y)),l=(t,e,r,n="TB",i,o={})=>{if(!(null==e?void 0:e.length))return;let{stopBranchFn:s,stopAllFn:a}=o;for(let u=0;u{if(null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array){let e=[];return t.forEach(t=>{e.push(t)}),e.map(t=>i(t))}if("object"==typeof t){let e={};return Object.keys(t).forEach(r=>{e[r]=i(t[r])}),e}return t},o=(t,e)=>{let r=i(t);return r.data=r.data||{},e&&((0,n.Z)(r.data.x)||(r.data.x=Math.random()*e[0]),(0,n.Z)(r.data.y)||(r.data.y=Math.random()*e[1])),r}},59145:function(t,e,r){"use strict";var n=r(19782);e.Z=function(t){return Array.isArray?Array.isArray(t):(0,n.Z)(t,"Array")}},38027:function(t,e){"use strict";e.Z=function(t){return"function"==typeof t}},61035:function(t,e,r){"use strict";var n=r(19782);e.Z=function(t){return(0,n.Z)(t,"Number")}},97653:function(t,e){"use strict";e.Z=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e}},52940:function(t,e,r){"use strict";var n=r(19782);e.Z=function(t){return(0,n.Z)(t,"String")}},19782:function(t,e){"use strict";var r={}.toString;e.Z=function(t,e){return r.call(t)==="[object "+e+"]"}},70681:function(t,e,r){t.exports={graphlib:r(70574),layout:r(98123),debug:r(27570),util:{time:r(11138).time,notime:r(11138).notime},version:r(88177)}},92188:function(t,e,r){"use strict";var n=r(38436),i=r(74079);t.exports={run:function(t){var e,r,o,s="greedy"===t.graph().acyclicer?i(t,function(e){return t.edge(e).weight}):(e=[],r={},o={},n.forEach(t.nodes(),function i(s){n.has(o,s)||(o[s]=!0,r[s]=!0,n.forEach(t.outEdges(s),function(t){n.has(r,t.w)?e.push(t):i(t.w)}),delete r[s])}),e);n.forEach(s,function(e){var r=t.edge(e);t.removeEdge(e),r.forwardName=e.name,r.reversed=!0,t.setEdge(e.w,e.v,r,n.uniqueId("rev"))})},undo:function(t){n.forEach(t.edges(),function(e){var r=t.edge(e);if(r.reversed){t.removeEdge(e);var n=r.forwardName;delete r.reversed,delete r.forwardName,t.setEdge(e.w,e.v,r,n)}})}}},61133:function(t,e,r){var n=r(38436),i=r(11138);function o(t,e,r,n,o,s){var a=o[e][s-1],u=i.addDummyNode(t,"border",{width:0,height:0,rank:s,borderType:e},r);o[e][s]=u,t.setParent(u,n),a&&t.setEdge(a,u,{weight:1})}t.exports=function(t){n.forEach(t.children(),function e(r){var i=t.children(r),s=t.node(r);if(i.length&&n.forEach(i,e),n.has(s,"minRank")){s.borderLeft=[],s.borderRight=[];for(var a=s.minRank,u=s.maxRank+1;a=t.nodeCount())return[];var r,d,l,h,c,f,g=(r=e||s,d=new i,l=0,h=0,n.forEach(t.nodes(),function(t){d.setNode(t,{v:t,in:0,out:0})}),n.forEach(t.edges(),function(t){var e=d.edge(t.v,t.w)||0,n=r(t),i=e+n;d.setEdge(t.v,t.w,i),h=Math.max(h,d.node(t.v).out+=n),l=Math.max(l,d.node(t.w).in+=n)}),c=n.range(h+l+3).map(function(){return new o}),f=l+1,n.forEach(d.nodes(),function(t){u(c,f,d.node(t))}),{graph:d,buckets:c,zeroIdx:f}),p=function(t,e,r){for(var n,i=[],o=e[e.length-1],s=e[0];t.nodeCount();){for(;n=s.dequeue();)a(t,e,r,n);for(;n=o.dequeue();)a(t,e,r,n);if(t.nodeCount()){for(var u=e.length-2;u>0;--u)if(n=e[u].dequeue()){i=i.concat(a(t,e,r,n,!0));break}}}return i}(g.graph,g.buckets,g.zeroIdx);return n.flatten(n.map(p,function(e){return t.outEdges(e.v,e.w)}),!0)};var s=n.constant(1);function a(t,e,r,i,o){var s=o?[]:void 0;return n.forEach(t.inEdges(i.v),function(n){var i=t.edge(n),a=t.node(n.v);o&&s.push({v:n.v,w:n.w}),a.out-=i,u(e,r,a)}),n.forEach(t.outEdges(i.v),function(n){var i=t.edge(n),o=n.w,s=t.node(o);s.in-=i,u(e,r,s)}),t.removeNode(i.v),s}function u(t,e,r){r.out?r.in?t[r.out-r.in+e].enqueue(r):t[t.length-1].enqueue(r):t[0].enqueue(r)}},98123:function(t,e,r){"use strict";var n=r(38436),i=r(92188),o=r(45995),s=r(78093),a=r(11138).normalizeRanks,u=r(24219),d=r(11138).removeEmptyRanks,l=r(72981),h=r(61133),c=r(53258),f=r(53408),g=r(17873),p=r(11138),m=r(70574).Graph;t.exports=function(t,e){var r=e&&e.debugTiming?p.time:p.notime;r("layout",function(){var e=r(" buildLayoutGraph",function(){var e,r;return e=new m({multigraph:!0,compound:!0}),r=k(t.graph()),e.setGraph(n.merge({},y,_(r,v),n.pick(r,w))),n.forEach(t.nodes(),function(r){var i=k(t.node(r));e.setNode(r,n.defaults(_(i,x),b)),e.setParent(r,t.parent(r))}),n.forEach(t.edges(),function(r){var i=k(t.edge(r));e.setEdge(r,n.merge({},N,_(i,E),n.pick(i,M)))}),e});r(" runLayout",function(){r(" makeSpaceForEdgeLabels",function(){var t;t=e.graph(),t.ranksep/=2,n.forEach(e.edges(),function(r){var n=e.edge(r);n.minlen*=2,"c"!==n.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?n.width+=n.labeloffset:n.height+=n.labeloffset)})}),r(" removeSelfEdges",function(){n.forEach(e.edges(),function(t){if(t.v===t.w){var r=e.node(t.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}),r(" acyclic",function(){i.run(e)}),r(" nestingGraph.run",function(){l.run(e)}),r(" rank",function(){s(p.asNonCompoundGraph(e))}),r(" injectEdgeLabelProxies",function(){n.forEach(e.edges(),function(t){var r=e.edge(t);if(r.width&&r.height){var n=e.node(t.v),i={rank:(e.node(t.w).rank-n.rank)/2+n.rank,e:t};p.addDummyNode(e,"edge-proxy",i,"_ep")}})}),r(" removeEmptyRanks",function(){d(e)}),r(" nestingGraph.cleanup",function(){l.cleanup(e)}),r(" normalizeRanks",function(){a(e)}),r(" assignRankMinMax",function(){var t;t=0,n.forEach(e.nodes(),function(r){var i=e.node(r);i.borderTop&&(i.minRank=e.node(i.borderTop).rank,i.maxRank=e.node(i.borderBottom).rank,t=n.max(t,i.maxRank))}),e.graph().maxRank=t}),r(" removeEdgeLabelProxies",function(){n.forEach(e.nodes(),function(t){var r=e.node(t);"edge-proxy"===r.dummy&&(e.edge(r.e).labelRank=r.rank,e.removeNode(t))})}),r(" normalize.run",function(){o.run(e)}),r(" parentDummyChains",function(){u(e)}),r(" addBorderSegments",function(){h(e)}),r(" order",function(){f(e)}),r(" insertSelfEdges",function(){var t;t=p.buildLayerMatrix(e),n.forEach(t,function(t){var r=0;n.forEach(t,function(t,i){var o=e.node(t);o.order=i+r,n.forEach(o.selfEdges,function(t){p.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:o.rank,order:i+ ++r,e:t.e,label:t.label},"_se")}),delete o.selfEdges})})}),r(" adjustCoordinateSystem",function(){c.adjust(e)}),r(" position",function(){g(e)}),r(" positionSelfEdges",function(){n.forEach(e.nodes(),function(t){var r=e.node(t);if("selfedge"===r.dummy){var n=e.node(r.e.v),i=n.x+n.width/2,o=n.y,s=r.x-i,a=n.height/2;e.setEdge(r.e,r.label),e.removeNode(t),r.label.points=[{x:i+2*s/3,y:o-a},{x:i+5*s/6,y:o-a},{x:i+s,y:o},{x:i+5*s/6,y:o+a},{x:i+2*s/3,y:o+a}],r.label.x=r.x,r.label.y=r.y}})}),r(" removeBorderNodes",function(){n.forEach(e.nodes(),function(t){if(e.children(t).length){var r=e.node(t),i=e.node(r.borderTop),o=e.node(r.borderBottom),s=e.node(n.last(r.borderLeft)),a=e.node(n.last(r.borderRight));r.width=Math.abs(a.x-s.x),r.height=Math.abs(o.y-i.y),r.x=s.x+r.width/2,r.y=i.y+r.height/2}}),n.forEach(e.nodes(),function(t){"border"===e.node(t).dummy&&e.removeNode(t)})}),r(" normalize.undo",function(){o.undo(e)}),r(" fixupEdgeLabelCoords",function(){n.forEach(e.edges(),function(t){var r=e.edge(t);if(n.has(r,"x"))switch(("l"===r.labelpos||"r"===r.labelpos)&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset}})}),r(" undoCoordinateSystem",function(){c.undo(e)}),r(" translateGraph",function(){(function(t){var e=Number.POSITIVE_INFINITY,r=0,i=Number.POSITIVE_INFINITY,o=0,s=t.graph(),a=s.marginx||0,u=s.marginy||0;function d(t){var n=t.x,s=t.y,a=t.width,u=t.height;e=Math.min(e,n-a/2),r=Math.max(r,n+a/2),i=Math.min(i,s-u/2),o=Math.max(o,s+u/2)}n.forEach(t.nodes(),function(e){d(t.node(e))}),n.forEach(t.edges(),function(e){var r=t.edge(e);n.has(r,"x")&&d(r)}),e-=a,i-=u,n.forEach(t.nodes(),function(r){var n=t.node(r);n.x-=e,n.y-=i}),n.forEach(t.edges(),function(r){var o=t.edge(r);n.forEach(o.points,function(t){t.x-=e,t.y-=i}),n.has(o,"x")&&(o.x-=e),n.has(o,"y")&&(o.y-=i)}),s.width=r-e+a,s.height=o-i+u})(e)}),r(" assignNodeIntersects",function(){n.forEach(e.edges(),function(t){var r,n,i=e.edge(t),o=e.node(t.v),s=e.node(t.w);i.points?(r=i.points[0],n=i.points[i.points.length-1]):(i.points=[],r=s,n=o),i.points.unshift(p.intersectRect(o,r)),i.points.push(p.intersectRect(s,n))})}),r(" reversePoints",function(){n.forEach(e.edges(),function(t){var r=e.edge(t);r.reversed&&r.points.reverse()})}),r(" acyclic.undo",function(){i.undo(e)})}),r(" updateInputGraph",function(){n.forEach(t.nodes(),function(r){var n=t.node(r),i=e.node(r);n&&(n.x=i.x,n.y=i.y,e.children(r).length&&(n.width=i.width,n.height=i.height))}),n.forEach(t.edges(),function(r){var i=t.edge(r),o=e.edge(r);i.points=o.points,n.has(o,"x")&&(i.x=o.x,i.y=o.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height})})};var v=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},w=["acyclicer","ranker","rankdir","align"],x=["width","height"],b={width:0,height:0},E=["minlen","weight","width","height","labeloffset"],N={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},M=["labelpos"];function _(t,e){return n.mapValues(n.pick(t,e),Number)}function k(t){var e={};return n.forEach(t,function(t,r){e[r.toLowerCase()]=t}),e}},38436:function(t,e,r){var n;try{n={cloneDeep:r(50361),constant:r(75703),defaults:r(91747),each:r(66073),filter:r(63105),find:r(13311),flatten:r(85564),forEach:r(84486),forIn:r(62620),has:r(18721),isUndefined:r(52353),last:r(10928),map:r(35161),mapValues:r(8521),max:r(6162),merge:r(82492),min:r(53632),minBy:r(22762),now:r(7771),pick:r(78718),range:r(96026),reduce:r(54061),sortBy:r(89734),uniqueId:r(73955),values:r(52628),zipObject:r(7287)}}catch(t){}n||(n=window._),t.exports=n},72981:function(t,e,r){var n=r(38436),i=r(11138);t.exports={run:function(t){var e,r=i.addDummyNode(t,"root",{},"_root"),o=(e={},n.forEach(t.children(),function(r){!function r(i,o){var s=t.children(i);s&&s.length&&n.forEach(s,function(t){r(t,o+1)}),e[i]=o}(r,1)}),e),s=n.max(n.values(o))-1,a=2*s+1;t.graph().nestingRoot=r,n.forEach(t.edges(),function(e){t.edge(e).minlen*=a});var u=n.reduce(t.edges(),function(e,r){return e+t.edge(r).weight},0)+1;n.forEach(t.children(),function(e){(function t(e,r,o,s,a,u,d){var l=e.children(d);if(!l.length){d!==r&&e.setEdge(r,d,{weight:0,minlen:o});return}var h=i.addBorderNode(e,"_bt"),c=i.addBorderNode(e,"_bb"),f=e.node(d);e.setParent(h,d),f.borderTop=h,e.setParent(c,d),f.borderBottom=c,n.forEach(l,function(n){t(e,r,o,s,a,u,n);var i=e.node(n),l=i.borderTop?i.borderTop:n,f=i.borderBottom?i.borderBottom:n,g=i.borderTop?s:2*s,p=l!==f?1:a-u[d]+1;e.setEdge(h,l,{weight:g,minlen:p,nestingEdge:!0}),e.setEdge(f,c,{weight:g,minlen:p,nestingEdge:!0})}),e.parent(d)||e.setEdge(r,h,{weight:0,minlen:a+u[d]})})(t,r,a,u,s,o,e)}),t.graph().nodeRankFactor=a},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,n.forEach(t.edges(),function(e){t.edge(e).nestingEdge&&t.removeEdge(e)})}}},45995:function(t,e,r){"use strict";var n=r(38436),i=r(11138);t.exports={run:function(t){t.graph().dummyChains=[],n.forEach(t.edges(),function(e){(function(t,e){var r,n,o,s=e.v,a=t.node(s).rank,u=e.w,d=t.node(u).rank,l=e.name,h=t.edge(e),c=h.labelRank;if(d!==a+1){for(t.removeEdge(e),o=0,++a;a0;)e%2&&(r+=u[e+1]),e=e-1>>1,u[e]+=t.weight;d+=t.weight*r})),d}(t,e[i-1],e[i]);return r}},53408:function(t,e,r){"use strict";var n=r(38436),i=r(2588),o=r(56630),s=r(61026),a=r(23128),u=r(55093),d=r(70574).Graph,l=r(11138);function h(t,e,r){return n.map(e,function(e){return a(t,e,r)})}function c(t,e){n.forEach(e,function(e){n.forEach(e,function(e,r){t.node(e).order=r})})}t.exports=function(t){var e=l.maxRank(t),r=h(t,n.range(1,e+1),"inEdges"),a=h(t,n.range(e-1,-1,-1),"outEdges"),f=i(t);c(t,f);for(var g,p=Number.POSITIVE_INFINITY,m=0,v=0;v<4;++m,++v){(function(t,e){var r=new d;n.forEach(t,function(t){var i=t.graph().root,o=s(t,i,r,e);n.forEach(o.vs,function(e,r){t.node(e).order=r}),u(t,r,o.vs)})})(m%2?r:a,m%4>=2),f=l.buildLayerMatrix(t);var y=o(t,f);y=t.barycenter)&&function(t,e){var r=0,n=0;t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=r/n,t.weight=n,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}(r)),n.forEach(r.out,function(e){return function(r){r.in.push(e),0==--r.indegree&&t.push(r)}}(r))}return n.map(n.filter(e,function(t){return!t.merged}),function(t){return n.pick(t,["vs","i","barycenter","weight"])})}(n.filter(r,function(t){return!t.indegree}))}},61026:function(t,e,r){var n=r(38436),i=r(35439),o=r(83678),s=r(87304);t.exports=function t(e,r,a,u){var d=e.children(r),l=e.node(r),h=l?l.borderLeft:void 0,c=l?l.borderRight:void 0,f={};h&&(d=n.filter(d,function(t){return t!==h&&t!==c}));var g=i(e,d);n.forEach(g,function(r){if(e.children(r.v).length){var i=t(e,r.v,a,u);f[r.v]=i,n.has(i,"barycenter")&&(n.isUndefined(r.barycenter)?(r.barycenter=i.barycenter,r.weight=i.weight):(r.barycenter=(r.barycenter*r.weight+i.barycenter*i.weight)/(r.weight+i.weight),r.weight+=i.weight))}});var p=o(g,a);n.forEach(p,function(t){t.vs=n.flatten(t.vs.map(function(t){return f[t]?f[t].vs:t}),!0)});var m=s(p,u);if(h&&(m.vs=n.flatten([h,m.vs,c],!0),e.predecessors(h).length)){var v=e.node(e.predecessors(h)[0]),y=e.node(e.predecessors(c)[0]);n.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+v.order+y.order)/(m.weight+2),m.weight+=2}return m}},87304:function(t,e,r){var n=r(38436),i=r(11138);function o(t,e,r){for(var i;e.length&&(i=n.last(e)).i<=r;)e.pop(),t.push(i.vs),r++;return r}t.exports=function(t,e){var r,s=i.partition(t,function(t){return n.has(t,"barycenter")}),a=s.lhs,u=n.sortBy(s.rhs,function(t){return-t.i}),d=[],l=0,h=0,c=0;a.sort((r=!!e,function(t,e){return t.barycentere.barycenter?1:r?e.i-t.i:t.i-e.i})),c=o(d,u,c),n.forEach(a,function(t){c+=t.vs.length,d.push(t.vs),l+=t.barycenter*t.weight,h+=t.weight,c=o(d,u,c)});var f={vs:n.flatten(d,!0)};return h&&(f.barycenter=l/h,f.weight=h),f}},24219:function(t,e,r){var n=r(38436);t.exports=function(t){var e,r,i=(e={},r=0,n.forEach(t.children(),function i(o){var s=r;n.forEach(t.children(o),i),e[o]={low:s,lim:r++}}),e);n.forEach(t.graph().dummyChains,function(e){for(var r=t.node(e),n=r.edgeObj,o=function(t,e,r,n){var i,o,s=[],a=[],u=Math.min(e[r].low,e[n].low),d=Math.max(e[r].lim,e[n].lim);i=r;do s.push(i=t.parent(i));while(i&&(e[i].low>u||d>e[i].lim));for(o=i,i=n;(i=t.parent(i))!==o;)a.push(i);return{path:s.concat(a.reverse()),lca:o}}(t,i,n.v,n.w),s=o.path,a=o.lca,u=0,d=s[0],l=!0;e!==n.w;){if(r=t.node(e),l){for(;(d=s[u])!==a&&t.node(d).maxRanka)&&u(r,e,d)})})}return n.reduce(e,function(e,r){var o,s=-1,a=0;return n.forEach(r,function(n,u){if("border"===t.node(n).dummy){var d=t.predecessors(n);d.length&&(i(r,a,u,s,o=t.node(d[0]).order),a=u,s=o)}i(r,a,r.length,o,e.length)}),r}),r}function u(t,e,r){if(e>r){var n=e;e=r,r=n}var i=t[e];i||(t[e]=i={}),i[r]=!0}function d(t,e,r){if(e>r){var i=e;e=r,r=i}return n.has(t[e],r)}function l(t,e,r,i){var o={},s={},a={};return n.forEach(e,function(t){n.forEach(t,function(t,e){o[t]=t,s[t]=t,a[t]=e})}),n.forEach(e,function(t){var e=-1;n.forEach(t,function(t){var u=i(t);if(u.length)for(var l=((u=n.sortBy(u,function(t){return a[t]})).length-1)/2,h=Math.floor(l),c=Math.ceil(l);h<=c;++h){var f=u[h];s[t]===t&&eu.lim&&(d=u,l=!0);var h=n.filter(e.edges(),function(e){return l===v(t,t.node(e.v),d)&&l!==v(t,t.node(e.w),d)});return n.minBy(h,function(t){return o(e,t)})}function m(t,e,r,i){var o,s,u=r.v,d=r.w;t.removeEdge(u,d),t.setEdge(i.v,i.w,{}),f(t),h(t,e),o=n.find(t.nodes(),function(t){return!e.node(t).parent}),s=(s=a(t,o)).slice(1),n.forEach(s,function(r){var n=t.node(r).parent,i=e.edge(r,n),o=!1;i||(i=e.edge(n,r),o=!0),e.node(r).rank=e.node(n).rank+(o?i.minlen:-i.minlen)})}function v(t,e,r){return r.low<=e.lim&&e.lim<=r.lim}t.exports=l,l.initLowLimValues=f,l.initCutValues=h,l.calcCutValue=c,l.leaveEdge=g,l.enterEdge=p,l.exchangeEdges=m},76681:function(t,e,r){"use strict";var n=r(38436);t.exports={longestPath:function(t){var e={};n.forEach(t.sources(),function r(i){var o=t.node(i);if(n.has(e,i))return o.rank;e[i]=!0;var s=n.min(n.map(t.outEdges(i),function(e){return r(e.w)-t.edge(e).minlen}));return(s===Number.POSITIVE_INFINITY||null==s)&&(s=0),o.rank=s})},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},11138:function(t,e,r){"use strict";var n=r(38436),i=r(70574).Graph;function o(t,e,r,i){var o;do o=n.uniqueId(i);while(t.hasNode(o));return r.dummy=e,t.setNode(o,r),o}function s(t){return n.max(n.map(t.nodes(),function(e){var r=t.node(e).rank;if(!n.isUndefined(r))return r}))}t.exports={addDummyNode:o,simplify:function(t){var e=new i().setGraph(t.graph());return n.forEach(t.nodes(),function(r){e.setNode(r,t.node(r))}),n.forEach(t.edges(),function(r){var n=e.edge(r.v,r.w)||{weight:0,minlen:1},i=t.edge(r);e.setEdge(r.v,r.w,{weight:n.weight+i.weight,minlen:Math.max(n.minlen,i.minlen)})}),e},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return n.forEach(t.nodes(),function(r){t.children(r).length||e.setNode(r,t.node(r))}),n.forEach(t.edges(),function(r){e.setEdge(r,t.edge(r))}),e},successorWeights:function(t){var e=n.map(t.nodes(),function(e){var r={};return n.forEach(t.outEdges(e),function(e){r[e.w]=(r[e.w]||0)+t.edge(e).weight}),r});return n.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=n.map(t.nodes(),function(e){var r={};return n.forEach(t.inEdges(e),function(e){r[e.v]=(r[e.v]||0)+t.edge(e).weight}),r});return n.zipObject(t.nodes(),e)},intersectRect:function(t,e){var r,n,i=t.x,o=t.y,s=e.x-i,a=e.y-o,u=t.width/2,d=t.height/2;if(!s&&!a)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(a)*u>Math.abs(s)*d?(a<0&&(d=-d),r=d*s/a,n=d):(s<0&&(u=-u),r=u,n=u*a/s),{x:i+r,y:o+n}},buildLayerMatrix:function(t){var e=n.map(n.range(s(t)+1),function(){return[]});return n.forEach(t.nodes(),function(r){var i=t.node(r),o=i.rank;n.isUndefined(o)||(e[o][i.order]=r)}),e},normalizeRanks:function(t){var e=n.min(n.map(t.nodes(),function(e){return t.node(e).rank}));n.forEach(t.nodes(),function(r){var i=t.node(r);n.has(i,"rank")&&(i.rank-=e)})},removeEmptyRanks:function(t){var e=n.min(n.map(t.nodes(),function(e){return t.node(e).rank})),r=[];n.forEach(t.nodes(),function(n){var i=t.node(n).rank-e;r[i]||(r[i]=[]),r[i].push(n)});var i=0,o=t.graph().nodeRankFactor;n.forEach(r,function(e,r){n.isUndefined(e)&&r%o!=0?--i:i&&n.forEach(e,function(e){t.node(e).rank+=i})})},addBorderNode:function(t,e,r,n){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=n),o(t,"border",i,e)},maxRank:s,partition:function(t,e){var r={lhs:[],rhs:[]};return n.forEach(t,function(t){e(t)?r.lhs.push(t):r.rhs.push(t)}),r},time:function(t,e){var r=n.now();try{return e()}finally{console.log(t+" time: "+(n.now()-r)+"ms")}},notime:function(t,e){return e()}}},88177:function(t){t.exports="0.8.5"},28282:function(t,e,r){var n=r(82354);t.exports={Graph:n.Graph,json:r(28974),alg:r(12440),version:n.version}},2842:function(t,e,r){var n=r(89126);t.exports=function(t){var e,r={},i=[];return n.each(t.nodes(),function(o){e=[],function i(o){n.has(r,o)||(r[o]=!0,e.push(o),n.each(t.successors(o),i),n.each(t.predecessors(o),i))}(o),e.length&&i.push(e)}),i}},53984:function(t,e,r){var n=r(89126);t.exports=function(t,e,r){n.isArray(e)||(e=[e]);var i=(t.isDirected()?t.successors:t.neighbors).bind(t),o=[],s={};return n.each(e,function(e){if(!t.hasNode(e))throw Error("Graph does not have node: "+e);(function t(e,r,i,o,s,a){!n.has(o,r)&&(o[r]=!0,i||a.push(r),n.each(s(r),function(r){t(e,r,i,o,s,a)}),i&&a.push(r))})(t,e,"post"===r,s,i,o)}),o}},84847:function(t,e,r){var n=r(63763),i=r(89126);t.exports=function(t,e,r){return i.transform(t.nodes(),function(i,o){i[o]=n(t,o,e,r)},{})}},63763:function(t,e,r){var n=r(89126),i=r(75639);t.exports=function(t,e,r,n){return function(t,e,r,n){var o,s,a={},u=new i,d=function(t){var e=t.v!==o?t.v:t.w,n=a[e],i=r(t),d=s.distance+i;if(i<0)throw Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);d0&&(s=a[o=u.removeMin()]).distance!==Number.POSITIVE_INFINITY;)n(o).forEach(d);return a}(t,String(e),r||o,n||function(e){return t.outEdges(e)})};var o=n.constant(1)},9096:function(t,e,r){var n=r(89126),i=r(5023);t.exports=function(t){return n.filter(i(t),function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})}},38924:function(t,e,r){var n=r(89126);t.exports=function(t,e,r){var n,o,s,a;return n=e||i,o=r||function(e){return t.outEdges(e)},s={},(a=t.nodes()).forEach(function(t){s[t]={},s[t][t]={distance:0},a.forEach(function(e){t!==e&&(s[t][e]={distance:Number.POSITIVE_INFINITY})}),o(t).forEach(function(e){var r=e.v===t?e.w:e.v,i=n(e);s[t][r]={distance:i,predecessor:t}})}),a.forEach(function(t){var e=s[t];a.forEach(function(r){var n=s[r];a.forEach(function(r){var i=n[t],o=e[r],s=n[r],a=i.distance+o.distance;a0;){if(r=u.removeMin(),n.has(a,r))s.setEdge(r,a[r]);else if(l)throw Error("Input graph is not connected: "+t);else l=!0;t.nodeEdges(r).forEach(d)}return s}},5023:function(t,e,r){var n=r(89126);t.exports=function(t){var e=0,r=[],i={},o=[];return t.nodes().forEach(function(s){n.has(i,s)||function s(a){var u=i[a]={onStack:!0,lowlink:e,index:e++};if(r.push(a),t.successors(a).forEach(function(t){n.has(i,t)?i[t].onStack&&(u.lowlink=Math.min(u.lowlink,i[t].index)):(s(t),u.lowlink=Math.min(u.lowlink,i[t].lowlink))}),u.lowlink===u.index){var d,l=[];do i[d=r.pop()].onStack=!1,l.push(d);while(a!==d);o.push(l)}}(s)}),o}},2166:function(t,e,r){var n=r(89126);function i(t){var e={},r={},i=[];if(n.each(t.sinks(),function s(a){if(n.has(r,a))throw new o;n.has(e,a)||(r[a]=!0,e[a]=!0,n.each(t.predecessors(a),s),delete r[a],i.push(a))}),n.size(e)!==t.nodeCount())throw new o;return i}function o(){}t.exports=i,i.CycleException=o,o.prototype=Error()},75639:function(t,e,r){var n=r(89126);function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map(function(t){return t.key})},i.prototype.has=function(t){return n.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var r=this._keyIndices;if(t=String(t),!n.has(r,t)){var i=this._arr,o=i.length;return r[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var r=this._keyIndices[t];if(e>this._arr[r].priority)throw Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[r].priority+" New: "+e);this._arr[r].priority=e,this._decrease(r)},i.prototype._heapify=function(t){var e=this._arr,r=2*t,n=r+1,i=t;r>1].prioritys){var a=o;o=s,s=a}return o+"\x01"+s+"\x01"+(n.isUndefined(i)?"\x00":i)}function u(t,e){return a(t,e.v,e.w,e.name)}t.exports=i,i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(t){return this._label=t,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(t){return n.isFunction(t)||(t=n.constant(t)),this._defaultNodeLabelFn=t,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return n.keys(this._nodes)},i.prototype.sources=function(){var t=this;return n.filter(this.nodes(),function(e){return n.isEmpty(t._in[e])})},i.prototype.sinks=function(){var t=this;return n.filter(this.nodes(),function(e){return n.isEmpty(t._out[e])})},i.prototype.setNodes=function(t,e){var r=arguments,i=this;return n.each(t,function(t){r.length>1?i.setNode(t,e):i.setNode(t)}),this},i.prototype.setNode=function(t,e){return n.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\x00",this._children[t]={},this._children["\x00"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},i.prototype.node=function(t){return this._nodes[t]},i.prototype.hasNode=function(t){return n.has(this._nodes,t)},i.prototype.removeNode=function(t){var e=this;if(n.has(this._nodes,t)){var r=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],n.each(this.children(t),function(t){e.setParent(t)}),delete this._children[t]),n.each(n.keys(this._in[t]),r),delete this._in[t],delete this._preds[t],n.each(n.keys(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},i.prototype.setParent=function(t,e){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(n.isUndefined(e))e="\x00";else{e+="";for(var r=e;!n.isUndefined(r);r=this.parent(r))if(r===t)throw Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},i.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},i.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\x00"!==e)return e}},i.prototype.children=function(t){if(n.isUndefined(t)&&(t="\x00"),this._isCompound){var e=this._children[t];if(e)return n.keys(e)}else if("\x00"===t)return this.nodes();else if(this.hasNode(t))return[]},i.prototype.predecessors=function(t){var e=this._preds[t];if(e)return n.keys(e)},i.prototype.successors=function(t){var e=this._sucs[t];if(e)return n.keys(e)},i.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return n.union(e,this.successors(t))},i.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},i.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;n.each(this._nodes,function(r,n){t(n)&&e.setNode(n,r)}),n.each(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,r.edge(t))});var i={};return this._isCompound&&n.each(e.nodes(),function(t){e.setParent(t,function t(n){var o=r.parent(n);return void 0===o||e.hasNode(o)?(i[n]=o,o):o in i?i[o]:t(o)}(t))}),e},i.prototype.setDefaultEdgeLabel=function(t){return n.isFunction(t)||(t=n.constant(t)),this._defaultEdgeLabelFn=t,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return n.values(this._edgeObjs)},i.prototype.setPath=function(t,e){var r=this,i=arguments;return n.reduce(t,function(t,n){return i.length>1?r.setEdge(t,n,e):r.setEdge(t,n),n}),this},i.prototype.setEdge=function(){var t,e,r,i,s=!1,u=arguments[0];"object"==typeof u&&null!==u&&"v"in u?(t=u.v,e=u.w,r=u.name,2==arguments.length&&(i=arguments[1],s=!0)):(t=u,e=arguments[1],r=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),t=""+t,e=""+e,n.isUndefined(r)||(r=""+r);var d=a(this._isDirected,t,e,r);if(n.has(this._edgeLabels,d))return s&&(this._edgeLabels[d]=i),this;if(!n.isUndefined(r)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[d]=s?i:this._defaultEdgeLabelFn(t,e,r);var l=function(t,e,r,n){var i=""+e,o=""+r;if(!t&&i>o){var s=i;i=o,o=s}var a={v:i,w:o};return n&&(a.name=n),a}(this._isDirected,t,e,r);return t=l.v,e=l.w,Object.freeze(l),this._edgeObjs[d]=l,o(this._preds[e],t),o(this._sucs[t],e),this._in[e][d]=l,this._out[t][d]=l,this._edgeCount++,this},i.prototype.edge=function(t,e,r){var n=1==arguments.length?u(this._isDirected,arguments[0]):a(this._isDirected,t,e,r);return this._edgeLabels[n]},i.prototype.hasEdge=function(t,e,r){var i=1==arguments.length?u(this._isDirected,arguments[0]):a(this._isDirected,t,e,r);return n.has(this._edgeLabels,i)},i.prototype.removeEdge=function(t,e,r){var n=1==arguments.length?u(this._isDirected,arguments[0]):a(this._isDirected,t,e,r),i=this._edgeObjs[n];return i&&(t=i.v,e=i.w,delete this._edgeLabels[n],delete this._edgeObjs[n],s(this._preds[e],t),s(this._sucs[t],e),delete this._in[e][n],delete this._out[t][n],this._edgeCount--),this},i.prototype.inEdges=function(t,e){var r=this._in[t];if(r){var i=n.values(r);return e?n.filter(i,function(t){return t.v===e}):i}},i.prototype.outEdges=function(t,e){var r=this._out[t];if(r){var i=n.values(r);return e?n.filter(i,function(t){return t.w===e}):i}},i.prototype.nodeEdges=function(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))}},82354:function(t,e,r){t.exports={Graph:r(30771),version:r(49631)}},28974:function(t,e,r){var n=r(89126),i=r(30771);t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:n.map(t.nodes(),function(e){var r=t.node(e),i=t.parent(e),o={v:e};return n.isUndefined(r)||(o.value=r),n.isUndefined(i)||(o.parent=i),o}),edges:n.map(t.edges(),function(e){var r=t.edge(e),i={v:e.v,w:e.w};return n.isUndefined(e.name)||(i.name=e.name),n.isUndefined(r)||(i.value=r),i})};return n.isUndefined(t.graph())||(e.value=n.clone(t.graph())),e},read:function(t){var e=new i(t.options).setGraph(t.value);return n.each(t.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),n.each(t.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}}},89126:function(t,e,r){var n;try{n={clone:r(66678),constant:r(75703),each:r(66073),filter:r(63105),has:r(18721),isArray:r(1469),isEmpty:r(41609),isFunction:r(23560),isUndefined:r(52353),keys:r(3674),map:r(35161),reduce:r(54061),size:r(84238),transform:r(68718),union:r(93386),values:r(52628)}}catch(t){}n||(n=window._),t.exports=n},49631:function(t){t.exports="2.1.8"},44091:function(t,e,r){"use strict";r.r(e),r.d(e,{isAnyArray:function(){return i}});let n=Object.prototype.toString;function i(t){let e=n.call(t);return e.endsWith("Array]")&&!e.includes("Big")}},1989:function(t,e,r){var n=r(51789),i=r(80401),o=r(57667),s=r(21327),a=r(81866);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e-1}},1196:function(t){t.exports=function(t,e,r){for(var n=-1,i=null==t?0:t.length;++n0&&o(l)?r>1?t(l,r-1,o,s,a):n(a,l):s||(a[a.length]=l)}return a}},28483:function(t,e,r){var n=r(25063)();t.exports=n},47816:function(t,e,r){var n=r(28483),i=r(3674);t.exports=function(t,e){return t&&n(t,e,i)}},97786:function(t,e,r){var n=r(71811),i=r(40327);t.exports=function(t,e){e=n(e,t);for(var r=0,o=e.length;null!=t&&re}},78565:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t,r){return null!=t&&e.call(t,r)}},13:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},90939:function(t,e,r){var n=r(2492),i=r(37005);t.exports=function t(e,r,o,s,a){return e===r||(null!=e&&null!=r&&(i(e)||i(r))?n(e,r,o,s,t,a):e!=e&&r!=r)}},2492:function(t,e,r){var n=r(46384),i=r(67114),o=r(18351),s=r(16096),a=r(64160),u=r(1469),d=r(44144),l=r(36719),h="[object Arguments]",c="[object Array]",f="[object Object]",g=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,p,m,v){var y=u(t),w=u(e),x=y?c:a(t),b=w?c:a(e);x=x==h?f:x,b=b==h?f:b;var E=x==f,N=b==f,M=x==b;if(M&&d(t)){if(!d(e))return!1;y=!0,E=!1}if(M&&!E)return v||(v=new n),y||l(t)?i(t,e,r,p,m,v):o(t,e,x,r,p,m,v);if(!(1&r)){var _=E&&g.call(t,"__wrapped__"),k=N&&g.call(e,"__wrapped__");if(_||k){var A=_?t.value():t,S=k?e.value():e;return v||(v=new n),m(A,S,r,p,v)}}return!!M&&(v||(v=new n),s(t,e,r,p,m,v))}},25588:function(t,e,r){var n=r(64160),i=r(37005);t.exports=function(t){return i(t)&&"[object Map]"==n(t)}},2958:function(t,e,r){var n=r(46384),i=r(90939);t.exports=function(t,e,r,o){var s=r.length,a=s,u=!o;if(null==t)return!a;for(t=Object(t);s--;){var d=r[s];if(u&&d[2]?d[1]!==t[d[0]]:!(d[0]in t))return!1}for(;++s=200){var p=e?null:a(t);if(p)return u(p);c=!1,l=s,g=new n}else g=e?[]:f;t:for(;++de||s&&a&&d&&!u&&!l||i&&a&&d||!r&&d||!o)return 1;if(!i&&!s&&!l&&t=u)return d;return d*("desc"==r[i]?-1:1)}}return t.index-e.index}},278:function(t){t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(s=t.length>3&&"function"==typeof s?(o--,s):void 0,a&&i(r[0],r[1],a)&&(s=o<3?void 0:s,o=1),e=Object(e);++n-1?a[u?e[d]:d]:void 0}}},47445:function(t,e,r){var n=r(40098),i=r(16612),o=r(18601);t.exports=function(t){return function(e,r,s){return s&&"number"!=typeof s&&i(e,r,s)&&(r=s=void 0),e=o(e),void 0===r?(r=e,e=0):r=o(r),s=void 0===s?el))return!1;var c=u.get(t),f=u.get(e);if(c&&f)return c==e&&f==t;var g=-1,p=!0,m=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++g-1}},54705:function(t,e,r){var n=r(18470);t.exports=function(t,e){var r=this.__data__,i=n(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}},24785:function(t,e,r){var n=r(1989),i=r(38407),o=r(57071);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},11285:function(t,e,r){var n=r(45050);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},96e3:function(t,e,r){var n=r(45050);t.exports=function(t){return n(this,t).get(t)}},49916:function(t,e,r){var n=r(45050);t.exports=function(t){return n(this,t).has(t)}},95265:function(t,e,r){var n=r(45050);t.exports=function(t,e){var r=n(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}},68776:function(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}},42634:function(t){t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},24523:function(t,e,r){var n=r(15644);t.exports=function(t){var e=n(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}},94536:function(t,e,r){var n=r(10852)(Object,"create");t.exports=n},33498:function(t){t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},45357:function(t,e,r){var n=r(96874),i=Math.max;t.exports=function(t,e,r){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,a=i(o.length-e,0),u=Array(a);++s0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},37465:function(t,e,r){var n=r(38407);t.exports=function(){this.__data__=new n,this.size=0}},63779:function(t){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},67599:function(t){t.exports=function(t){return this.__data__.get(t)}},44758:function(t){t.exports=function(t){return this.__data__.has(t)}},34309:function(t,e,r){var n=r(38407),i=r(57071),o=r(83369);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!i||s.length<199)return s.push([t,e]),this.size=++r.size,this;r=this.__data__=new o(s)}return r.set(t,e),this.size=r.size,this}},88016:function(t,e,r){var n=r(48983),i=r(62689),o=r(21903);t.exports=function(t){return i(t)?o(t):n(t)}},55514:function(t,e,r){var n=r(24523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=n(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,function(t,r,n,i){e.push(n?i.replace(o,"$1"):r||t)}),e});t.exports=s},40327:function(t,e,r){var n=r(33448),i=1/0;t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}},21903:function(t){var e="\ud800-\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\ud83c[\udffb-\udfff]",i="[^"+e+"]",o="(?:\ud83c[\udde6-\uddff]){2}",s="[\ud800-\udbff][\udc00-\udfff]",a="(?:"+r+"|"+n+")?",u="[\\ufe0e\\ufe0f]?",d="(?:\\u200d(?:"+[i,o,s].join("|")+")"+u+a+")*",l=RegExp(n+"(?="+n+")|(?:"+[i+r+"?",r,o,s,"["+e+"]"].join("|")+")"+(u+a+d),"g");t.exports=function(t){for(var e=l.lastIndex=0;l.test(t);)++e;return e}},66678:function(t,e,r){var n=r(85990);t.exports=function(t){return n(t,4)}},50361:function(t,e,r){var n=r(85990);t.exports=function(t){return n(t,5)}},75703:function(t){t.exports=function(t){return function(){return t}}},91747:function(t,e,r){var n=r(5976),i=r(77813),o=r(16612),s=r(81704),a=Object.prototype,u=a.hasOwnProperty,d=n(function(t,e){t=Object(t);var r=-1,n=e.length,d=n>2?e[2]:void 0;for(d&&o(e[0],e[1],d)&&(n=1);++r1&&s(t,e[0],e[1])?e=[]:r>2&&s(e[0],e[1],e[2])&&(e=[e[0]]),i(t,n(e,1),[])});t.exports=a},70479:function(t){t.exports=function(){return[]}},59881:function(t,e,r){var n=r(98363),i=r(81704);t.exports=function(t){return n(t,i(t))}},68718:function(t,e,r){var n=r(77412),i=r(3118),o=r(47816),s=r(67206),a=r(85924),u=r(1469),d=r(44144),l=r(23560),h=r(13218),c=r(36719);t.exports=function(t,e,r){var f=u(t),g=f||d(t)||c(t);if(e=s(e,4),null==r){var p=t&&t.constructor;r=g?f?new p:[]:h(t)&&l(p)?i(a(t)):{}}return(g?n:o)(t,function(t,n,i){return e(r,t,n,i)}),r}},93386:function(t,e,r){var n=r(21078),i=r(5976),o=r(45652),s=r(29246),a=i(function(t){return o(n(t,1,s,!0))});t.exports=a},73955:function(t,e,r){var n=r(79833),i=0;t.exports=function(t){var e=++i;return n(t)+e}},7287:function(t,e,r){var n=r(34865),i=r(1757);t.exports=function(t,e){return i(t||[],e||[],n)}},75823:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return i}});var n=r(44091);function i(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((0,n.isAnyArray)(t)){if(0===t.length)throw TypeError("input must not be empty")}else throw TypeError("input must be an array");if(void 0!==r.output){if(!(0,n.isAnyArray)(r.output))throw TypeError("output option must be an array if specified");e=r.output}else e=Array(t.length);var i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,n.isAnyArray)(t))throw TypeError("input must be an array");if(0===t.length)throw TypeError("input must not be empty");var r=e.fromIndex,i=void 0===r?0:r,o=e.toIndex,s=void 0===o?t.length:o;if(i<0||i>=t.length||!Number.isInteger(i))throw Error("fromIndex must be a positive integer smaller than length");if(s<=i||s>t.length||!Number.isInteger(s))throw Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var a=t[i],u=i+1;u1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,n.isAnyArray)(t))throw TypeError("input must be an array");if(0===t.length)throw TypeError("input must not be empty");var r=e.fromIndex,i=void 0===r?0:r,o=e.toIndex,s=void 0===o?t.length:o;if(i<0||i>=t.length||!Number.isInteger(i))throw Error("fromIndex must be a positive integer smaller than length");if(s<=i||s>t.length||!Number.isInteger(s))throw Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var a=t[i],u=i+1;ua&&(a=t[u]);return a}(t);if(i===o)throw RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var s=r.min,a=void 0===s?r.autoMinMax?i:0:s,u=r.max,d=void 0===u?r.autoMinMax?o:1:u;if(a>=d)throw RangeError("min option must be smaller than max option");for(var l=(d-a)/(o-i),h=0;ht.get(e,r)){i=!0;break e}}for(let e=0;e=0&&f?` ${u(c,n-1)}`:u(c,n)).padEnd(n)))}h.push(`${r.join(" ")}`)}return l!==a&&(h[h.length-1]+=` ... ${a-r} more columns`),d!==o&&h.push(`... ${o-e} more rows`),h.join(` ${s}`)}(t,r,n,i,a)} diff --git a/dbgpt/app/static/web/_next/static/chunks/4d857c35-ccd51e7f0bd69497.js b/dbgpt/app/static/web/_next/static/chunks/4d857c35-6c3c1ca79b606788.js similarity index 100% rename from dbgpt/app/static/web/_next/static/chunks/4d857c35-ccd51e7f0bd69497.js rename to dbgpt/app/static/web/_next/static/chunks/4d857c35-6c3c1ca79b606788.js diff --git a/dbgpt/app/static/web/_next/static/chunks/5110-8a865913c5fa1501.js b/dbgpt/app/static/web/_next/static/chunks/5110-8a865913c5fa1501.js deleted file mode 100644 index 3623c7284..000000000 --- a/dbgpt/app/static/web/_next/static/chunks/5110-8a865913c5fa1501.js +++ /dev/null @@ -1,73 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5110],{29158:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var r=n(87462),i=n(67294),a={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"},o=n(13401),l=i.forwardRef(function(t,e){return i.createElement(o.Z,(0,r.Z)({},t,{ref:e,icon:a}))})},64352:function(t,e,n){"use strict";n.d(e,{w:function(){return ev}});var r=n(97582),i={line_chart:{id:"line_chart",name:"Line Chart",alias:["Lines"],family:["LineCharts"],def:"A line chart uses lines with segments to show changes in data in a ordinal dimension.",purpose:["Comparison","Trend","Anomaly"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position","Direction"],recRate:"Recommended"},step_line_chart:{id:"step_line_chart",name:"Step Line Chart",alias:["Step Lines"],family:["LineCharts"],def:"A step line chart is a line chart in which points of each line are connected by horizontal and vertical line segments, looking like steps of a staircase.",purpose:["Comparison","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position","Direction"],recRate:"Recommended"},area_chart:{id:"area_chart",name:"Area Chart",alias:[],family:["AreaCharts"],def:"An area chart uses series of line segments with overlapped areas to show the change in data in a ordinal dimension.",purpose:["Comparison","Trend","Anomaly"],coord:["Cartesian2D"],category:["Statistic"],shape:["Area"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Position"],recRate:"Recommended"},stacked_area_chart:{id:"stacked_area_chart",name:"Stacked Area Chart",alias:[],family:["AreaCharts"],def:"A stacked area chart uses layered line segments with different styles of padding regions to display how multiple sets of data change in the same ordinal dimension, and the endpoint heights of the segments on the same dimension tick are accumulated by value.",purpose:["Composition","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Area"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Length"],recRate:"Recommended"},percent_stacked_area_chart:{id:"percent_stacked_area_chart",name:"Percent Stacked Area Chart",alias:["Percent Stacked Area","% Stacked Area","100% Stacked Area"],family:["AreaCharts"],def:"A percent stacked area chart is an extented stacked area chart in which the height of the endpoints of the line segment on the same dimension tick is the accumulated proportion of the ratio, which is 100% of the total.",purpose:["Comparison","Composition","Proportion","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Area"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Length"],recRate:"Recommended"},column_chart:{id:"column_chart",name:"Column Chart",alias:["Columns"],family:["ColumnCharts"],def:"A column chart uses series of columns to display the value of the dimension. The horizontal axis shows the classification dimension and the vertical axis shows the corresponding value.",purpose:["Comparison","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position","Color"],recRate:"Recommended"},grouped_column_chart:{id:"grouped_column_chart",name:"Grouped Column Chart",alias:["Grouped Column"],family:["ColumnCharts"],def:"A grouped column chart uses columns of different colors to form a group to display the values of dimensions. The horizontal axis indicates the grouping of categories, the color indicates the categories, and the vertical axis shows the corresponding value.",purpose:["Comparison","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Position"],recRate:"Recommended"},stacked_column_chart:{id:"stacked_column_chart",name:"Stacked Column Chart",alias:["Stacked Column"],family:["ColumnCharts"],def:"A stacked column chart uses stacked bars of different colors to display the values for each dimension. The horizontal axis indicates the first classification dimension, the color indicates the second classification dimension, and the vertical axis shows the corresponding value.",purpose:["Comparison","Composition","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length","Position"],recRate:"Recommended"},percent_stacked_column_chart:{id:"percent_stacked_column_chart",name:"Percent Stacked Column Chart",alias:["Percent Stacked Column","% Stacked Column","100% Stacked Column"],family:["ColumnCharts"],def:"A percent stacked column chart uses stacked bars of different colors to display the values for each dimension. The horizontal axis indicates the first classification dimension, the color indicates the second classification dimension, and the vertical axis shows the percentage of the corresponding classification.",purpose:["Comparison","Composition","Distribution","Proportion"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length"],recRate:"Recommended"},range_column_chart:{id:"range_column_chart",name:"Range Column Chart",alias:[],family:["ColumnCharts"],def:"A column chart that does not have to start from zero axis.",purpose:["Comparison"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Interval","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Length"],recRate:"Recommended"},waterfall_chart:{id:"waterfall_chart",name:"Waterfall Chart",alias:["Flying Bricks Chart","Mario Chart","Bridge Chart","Cascade Chart"],family:["ColumnCharts"],def:"A waterfall chart is used to portray how an initial value is affected by a series of intermediate positive or negative values",purpose:["Comparison","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Ordinal","Time","Nominal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length","Position"],recRate:"Recommended"},histogram:{id:"histogram",name:"Histogram",alias:[],family:["ColumnCharts"],def:"A histogram is an accurate representation of the distribution of numerical data.",purpose:["Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position"],recRate:"Recommended"},bar_chart:{id:"bar_chart",name:"Bar Chart",alias:["Bars"],family:["BarCharts"],def:"A bar chart uses series of bars to display the value of the dimension. The vertical axis shows the classification dimension and the horizontal axis shows the corresponding value.",purpose:["Comparison","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position","Color"],recRate:"Recommended"},stacked_bar_chart:{id:"stacked_bar_chart",name:"Stacked Bar Chart",alias:["Stacked Bar"],family:["BarCharts"],def:"A stacked bar chart uses stacked bars of different colors to display the values for each dimension. The vertical axis indicates the first classification dimension, the color indicates the second classification dimension, and the horizontal axis shows the corresponding value.",purpose:["Comparison","Composition","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length","Position"],recRate:"Recommended"},percent_stacked_bar_chart:{id:"percent_stacked_bar_chart",name:"Percent Stacked Bar Chart",alias:["Percent Stacked Bar","% Stacked Bar","100% Stacked Bar"],family:["BarCharts"],def:"A percent stacked column chart uses stacked bars of different colors to display the values for each dimension. The vertical axis indicates the first classification dimension, the color indicates the second classification dimension, and the horizontal axis shows the percentage of the corresponding classification.",purpose:["Comparison","Composition","Distribution","Proportion"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length"],recRate:"Recommended"},grouped_bar_chart:{id:"grouped_bar_chart",name:"Grouped Bar Chart",alias:["Grouped Bar"],family:["BarCharts"],def:"A grouped bar chart uses bars of different colors to form a group to display the values of the dimensions. The vertical axis indicates the grouping of categories, the color indicates the categories, and the horizontal axis shows the corresponding value.",purpose:["Comparison","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Position"],recRate:"Recommended"},range_bar_chart:{id:"range_bar_chart",name:"Range Bar Chart",alias:[],family:["BarCharts"],def:"A bar chart that does not have to start from zero axis.",purpose:["Comparison"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]}],channel:["Length"],recRate:"Recommended"},radial_bar_chart:{id:"radial_bar_chart",name:"Radial Bar Chart",alias:["Radial Column Chart"],family:["BarCharts"],def:"A bar chart that is plotted in the polar coordinate system. The axis along radius shows the classification dimension and the angle shows the corresponding value.",purpose:["Comparison","Distribution","Rank"],coord:["Polar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Angle","Color"],recRate:"Recommended"},bullet_chart:{id:"bullet_chart",name:"Bullet Chart",alias:[],family:["BarCharts"],def:"A bullet graph is a variation of a bar graph developed by Stephen Few. Seemingly inspired by the traditional thermometer charts and progress bars found in many dashboards, the bullet graph serves as a replacement for dashboard gauges and meters.",purpose:["Proportion"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:3,maxQty:3,fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]}],channel:["Position","Color"],recRate:"Recommended"},pie_chart:{id:"pie_chart",name:"Pie Chart",alias:["Circle Chart","Pie"],family:["PieCharts"],def:"A pie chart is a chart that the classification and proportion of data are represented by the color and arc length (angle, area) of the sector.",purpose:["Comparison","Composition","Proportion"],coord:["Polar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Angle","Area","Color"],recRate:"Use with Caution"},donut_chart:{id:"donut_chart",name:"Donut Chart",alias:["Donut","Doughnut","Doughnut Chart","Ring Chart"],family:["PieCharts"],def:"A donut chart is a variation on a Pie chart except it has a round hole in the center which makes it look like a donut.",purpose:["Comparison","Composition","Proportion"],coord:["Polar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["ArcLength"],recRate:"Recommended"},nested_pie_chart:{id:"nested_pie_chart",name:"Nested Pie Chart",alias:["Nested Circle Chart","Nested Pie","Nested Donut Chart"],family:["PieCharts"],def:"A nested pie chart is a chart that contains several donut charts, where all the donut charts share the same center in position.",purpose:["Comparison","Composition","Proportion"],coord:["Polar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:"*",fieldConditions:["Interval"]}],channel:["Angle","Area","Color","Position"],recRate:"Use with Caution"},rose_chart:{id:"rose_chart",name:"Rose Chart",alias:["Nightingale Chart","Polar Area Chart","Coxcomb Chart"],family:["PieCharts"],def:"Nightingale Rose Chart is a peculiar combination of the Radar Chart and Stacked Column Chart types of data visualization.",purpose:["Comparison","Composition","Proportion"],coord:["Polar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Angle","Color","Length"],recRate:"Use with Caution"},scatter_plot:{id:"scatter_plot",name:"Scatter Plot",alias:["Scatter Chart","Scatterplot"],family:["ScatterCharts"],def:"A scatter plot is a type of plot or mathematical diagram using Cartesian coordinates to display values for typically two variables for series of data.",purpose:["Comparison","Distribution","Anomaly"],coord:["Cartesian2D"],category:["Statistic"],shape:["Scatter"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Interval"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Position"],recRate:"Recommended"},bubble_chart:{id:"bubble_chart",name:"Bubble Chart",alias:["Bubble Chart"],family:["ScatterCharts"],def:"A bubble chart is a type of chart that displays four dimensions of data with x, y positions, circle size and circle color.",purpose:["Comparison","Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Scatter"],dataPres:[{minQty:3,maxQty:3,fieldConditions:["Interval"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Position","Size"],recRate:"Recommended"},non_ribbon_chord_diagram:{id:"non_ribbon_chord_diagram",name:"Non-Ribbon Chord Diagram",alias:[],family:["GeneralGraph"],def:"A stripped-down version of a Chord Diagram, with only the connection lines showing. This provides more emphasis on the connections within the data.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},arc_diagram:{id:"arc_diagram",name:"Arc Diagram",alias:[],family:["GeneralGraph"],def:"A graph where the edges are represented as arcs.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},chord_diagram:{id:"chord_diagram",name:"Chord Diagram",alias:[],family:["GeneralGraph"],def:"A graphical method of displaying the inter-relationships between data in a matrix. The data are arranged radially around a circle with the relationships between the data points typically drawn as arcs connecting the data.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},treemap:{id:"treemap",name:"Treemap",alias:[],family:["TreeGraph"],def:"A visual representation of a data tree with nodes. Each node is displayed as a rectangle, sized and colored according to values that you assign.",purpose:["Composition","Comparison","Hierarchy"],coord:["Cartesian2D"],category:["Statistic"],shape:["Square"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Area"],recRate:"Recommended"},sankey_diagram:{id:"sankey_diagram",name:"Sankey Diagram",alias:[],family:["GeneralGraph"],def:"A graph shows the flows with weights between objects.",purpose:["Flow","Trend","Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},funnel_chart:{id:"funnel_chart",name:"Funnel Chart",alias:[],family:["FunnelCharts"],def:"A funnel chart is often used to represent stages in a sales process and show the amount of potential revenue for each stage.",purpose:["Trend"],coord:["SymmetricCartesian"],category:["Statistic"],shape:["Symmetric"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length"],recRate:"Recommended"},mirror_funnel_chart:{id:"mirror_funnel_chart",name:"Mirror Funnel Chart",alias:["Contrast Funnel Chart"],family:["FunnelCharts"],def:"A mirror funnel chart is a funnel chart divided into two series by a central axis.",purpose:["Comparison","Trend"],coord:["SymmetricCartesian"],category:["Statistic"],shape:["Symmetric"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Length","Direction"],recRate:"Recommended"},box_plot:{id:"box_plot",name:"Box Plot",alias:["Box and Whisker Plot","boxplot"],family:["BarCharts"],def:"A box plot is often used to graphically depict groups of numerical data through their quartiles. Box plots may also have lines extending from the boxes indicating variability outside the upper and lower quartiles. Outliers may be plotted as individual points.",purpose:["Distribution","Anomaly"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position"],recRate:"Recommended"},heatmap:{id:"heatmap",name:"Heatmap",alias:[],family:["HeatmapCharts"],def:"A heatmap is a graphical representation of data where the individual values contained in a matrix are represented as colors.",purpose:["Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Square"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Position"],recRate:"Recommended"},density_heatmap:{id:"density_heatmap",name:"Density Heatmap",alias:["Heatmap"],family:["HeatmapCharts"],def:"A density heatmap is a heatmap for representing the density of dots.",purpose:["Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Area"],dataPres:[{minQty:3,maxQty:3,fieldConditions:["Interval"]}],channel:["Color","Position","Area"],recRate:"Recommended"},radar_chart:{id:"radar_chart",name:"Radar Chart",alias:["Web Chart","Spider Chart","Star Chart","Cobweb Chart","Irregular Polygon","Kiviat diagram"],family:["RadarCharts"],def:"A radar chart maps series of data volume of multiple dimensions onto the axes. Starting at the same center point, usually ending at the edge of the circle, connecting the same set of points using lines.",purpose:["Comparison"],coord:["Radar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:2,fieldConditions:["Nominal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Position"],recRate:"Recommended"},wordcloud:{id:"wordcloud",name:"Word Cloud",alias:["Wordle","Tag Cloud","Text Cloud"],family:["Others"],def:"A word cloud is a collection, or cluster, of words depicted in different sizes, colors, and shapes, which takes a piece of text as input. Typically, the font size in the word cloud is encoded as the word frequency in the input text.",purpose:["Proportion"],coord:["Cartesian2D"],category:["Diagram"],shape:["Scatter"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal"]},{minQty:0,maxQty:1,fieldConditions:["Interval"]}],channel:["Size","Position","Color"],recRate:"Recommended"},candlestick_chart:{id:"candlestick_chart",name:"Candlestick Chart",alias:["Japanese Candlestick Chart)"],family:["BarCharts"],def:"A candlestick chart is a specific version of box plot, which is a style of financial chart used to describe price movements of a security, derivative, or currency.",purpose:["Trend","Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position"],recRate:"Recommended"},compact_box_tree:{id:"compact_box_tree",name:"CompactBox Tree",alias:[],family:["TreeGraph"],def:"A type of tree graph layout which arranges the nodes with same depth on the same level.",purpose:["Relation","Hierarchy"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},dendrogram:{id:"dendrogram",name:"Dendrogram",alias:[],family:["TreeGraph"],def:"A type of tree graph layout which arranges the leaves on the same level.",purpose:["Relation","Hierarchy"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},indented_tree:{id:"indented_tree",name:"Indented Tree Layout",alias:[],family:["TreeGraph"],def:"A type of tree graph layout where the hierarchy of tree is represented by the horizontal indentation, and each element will occupy one row/column. It is commonly used to represent the file directory structure.",purpose:["Relation","Hierarchy"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},radial_tree:{id:"radial_tree",name:"Radial Tree Layout",alias:[],family:["TreeGraph"],def:"A type of tree graph layout which places the root at the center, and the branches around the root radially.",purpose:["Relation","Hierarchy"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},flow_diagram:{id:"flow_diagram",name:"Flow Diagram",alias:["Dagre Graph Layout","Dagre","Flow Chart"],family:["GeneralGraph"],def:"Directed flow graph.",purpose:["Relation","Flow"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},fruchterman_layout_graph:{id:"fruchterman_layout_graph",name:"Fruchterman Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of force directed graph layout.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},force_directed_layout_graph:{id:"force_directed_layout_graph",name:"Force Directed Graph Layout",alias:[],family:["GeneralGraph"],def:"The classical force directed graph layout.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},fa2_layout_graph:{id:"fa2_layout_graph",name:"Force Atlas 2 Graph Layout",alias:["FA2 Layout"],family:["GeneralGraph"],def:"A type of force directed graph layout algorithm. It focuses more on the degree of the node when calculating the force than the classical force-directed algorithm .",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},mds_layout_graph:{id:"mds_layout_graph",name:"Multi-Dimensional Scaling Layout",alias:["MDS Layout"],family:["GeneralGraph"],def:"A type of dimension reduction algorithm that could be used for calculating graph layout. MDS (Multidimensional scaling) is used for project high dimensional data onto low dimensional space.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},circular_layout_graph:{id:"circular_layout_graph",name:"Circular Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of graph layout which arranges all the nodes on a circle.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},spiral_layout_graph:{id:"spiral_layout_graph",name:"Spiral Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of graph layout which arranges all the nodes along a spiral line.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},radial_layout_graph:{id:"radial_layout_graph",name:"Radial Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of graph layout which places a focus node on the center and the others on the concentrics centered at the focus node according to the shortest path length to the it.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},concentric_layout_graph:{id:"concentric_layout_graph",name:"Concentric Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of graph layout which arranges the nodes on concentrics.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},grid_layout_graph:{id:"grid_layout_graph",name:"Grid Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of graph layout arranges the nodes on grids.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"}};function a(t,e){return e.every(function(e){return t.includes(e)})}var o=["bar_chart","grouped_bar_chart","stacked_bar_chart","percent_stacked_bar_chart","column_chart","grouped_column_chart","stacked_column_chart","percent_stacked_column_chart"],l=["bar_chart","grouped_bar_chart","stacked_bar_chart","percent_stacked_bar_chart","column_chart","grouped_column_chart","stacked_column_chart","percent_stacked_column_chart"];function s(t,e){return e.some(function(e){return t.includes(e)})}function c(t,e){return t.distincte.distinct?-1:0}var u=["pie_chart","donut_chart"],f=["bar_chart","grouped_bar_chart","stacked_bar_chart","percent_stacked_bar_chart","column_chart","grouped_column_chart","stacked_column_chart","percent_stacked_column_chart"];function d(t){var e=t.chartType,n=t.dataProps,r=t.preferences;return!!(n&&e&&r&&r.canvasLayout)}var h=["line_chart","area_chart","stacked_area_chart","percent_stacked_area_chart"],p=["bar_chart","column_chart","grouped_bar_chart","grouped_column_chart","stacked_bar_chart","stacked_column_chart"];function g(t){return t.filter(function(t){return a(t.levelOfMeasurements,["Nominal"])})}var m=["pie_chart","donut_chart","radar_chart","rose_chart"],y=n(96486);function v(t){return"number"==typeof t}function b(t){return"string"==typeof t||"boolean"==typeof t}function x(t){return t instanceof Date}function O(t){var e=t.encode,n=t.data,i=t.scale,a=(0,y.mapValues)(e,function(t,e){var r,a,o;return{field:t,type:void 0!==(r=null==i?void 0:i[e].type)?function(t){switch(t){case"linear":case"log":case"pow":case"sqrt":case"quantile":case"threshold":case"quantize":case"sequential":return"quantitative";case"time":return"temporal";case"ordinal":case"point":case"band":return"categorical";default:throw Error("Unkonwn scale type: ".concat(t,"."))}}(r):function(t){if(t.some(v))return"quantitative";if(t.some(b))return"categorical";if(t.some(x))return"temporal";throw Error("Unknown type: ".concat(typeof t[0]))}((a=n,"function"==typeof(o=t)?a.map(o):"string"==typeof o&&a.some(function(t){return void 0!==t[o]})?a.map(function(t){return t[o]}):a.map(function(){return o})))}});return(0,r.pi)((0,r.pi)({},t),{encode:a})}var w=["line_chart"];(0,r.ev)((0,r.ev)([],(0,r.CR)(["data-check","data-field-qty","no-redundant-field","purpose-check"]),!1),(0,r.CR)(["series-qty-limit","bar-series-qty","line-field-time-ordinal","landscape-or-portrait","diff-pie-sector","nominal-enum-combinatorial","limit-series"]),!1);var _={"data-check":{id:"data-check",type:"HARD",docs:{lintText:"Data must satisfy the data prerequisites."},trigger:function(){return!0},validator:function(t){var e=0,n=t.dataProps,r=t.chartType,i=t.chartWIKI;if(n&&r&&i[r]){e=1;var a=i[r].dataPres||[];a.forEach(function(t){!function(t,e){var n=e.map(function(t){return t.levelOfMeasurements});if(n){var r=0;if(n.forEach(function(e){e&&s(e,t.fieldConditions)&&(r+=1)}),r>=t.minQty&&("*"===t.maxQty||r<=t.maxQty))return!0}return!1}(t,n)&&(e=0)}),n.map(function(t){return t.levelOfMeasurements}).forEach(function(t){var n=!1;a.forEach(function(e){t&&s(t,e.fieldConditions)&&(n=!0)}),n||(e=0)})}return e}},"data-field-qty":{id:"data-field-qty",type:"HARD",docs:{lintText:"Data must have at least the min qty of the prerequisite."},trigger:function(){return!0},validator:function(t){var e=0,n=t.dataProps,r=t.chartType,i=t.chartWIKI;if(n&&r&&i[r]){e=1;var a=(i[r].dataPres||[]).map(function(t){return t.minQty}).reduce(function(t,e){return t+e});n.length&&n.length>=a&&(e=1)}return e}},"no-redundant-field":{id:"no-redundant-field",type:"HARD",docs:{lintText:"No redundant field."},trigger:function(){return!0},validator:function(t){var e=0,n=t.dataProps,r=t.chartType,i=t.chartWIKI;if(n&&r&&i[r]){var a=(i[r].dataPres||[]).map(function(t){return"*"===t.maxQty?99:t.maxQty}).reduce(function(t,e){return t+e});n.length&&n.length<=a&&(e=1)}return e}},"purpose-check":{id:"purpose-check",type:"HARD",docs:{lintText:"Choose chart types that satisfy the purpose, if purpose is defined."},trigger:function(){return!0},validator:function(t){var e=0,n=t.chartType,r=t.purpose,i=t.chartWIKI;return r?(n&&i[n]&&r&&(i[n].purpose||"").includes(r)&&(e=1),e):e=1}},"bar-series-qty":{id:"bar-series-qty",type:"SOFT",docs:{lintText:"Bar chart should has proper number of bars or bar groups."},trigger:function(t){var e=t.chartType;return o.includes(e)},validator:function(t){var e=1,n=t.dataProps,r=t.chartType;if(n&&r){var i=n.find(function(t){return a(t.levelOfMeasurements,["Nominal"])}),o=i&&i.count?i.count:0;o>20&&(e=20/o)}return e<.1?.1:e}},"diff-pie-sector":{id:"diff-pie-sector",type:"SOFT",docs:{lintText:"The difference between sectors of a pie chart should be large enough."},trigger:function(t){var e=t.chartType;return u.includes(e)},validator:function(t){var e=1,n=t.dataProps;if(n){var r=n.find(function(t){return a(t.levelOfMeasurements,["Interval"])});if(r&&r.sum&&r.rawData){var i=1/r.sum,o=r.rawData.map(function(t){return t*i}).reduce(function(t,e){return t*e}),l=r.rawData.length,s=Math.pow(1/l,l);e=2*(Math.abs(s-Math.abs(o))/s)}}return e<.1?.1:e}},"landscape-or-portrait":{id:"landscape-or-portrait",type:"SOFT",docs:{lintText:"Recommend column charts for landscape layout and bar charts for portrait layout."},trigger:function(t){return f.includes(t.chartType)&&d(t)},validator:function(t){var e=1,n=t.chartType,r=t.preferences;return d(t)&&("portrait"===r.canvasLayout&&["bar_chart","grouped_bar_chart","stacked_bar_chart","percent_stacked_bar_chart"].includes(n)?e=5:"landscape"===r.canvasLayout&&["column_chart","grouped_column_chart","stacked_column_chart","percent_stacked_column_chart"].includes(n)&&(e=5)),e}},"limit-series":{id:"limit-series",type:"SOFT",docs:{lintText:"Avoid too many values in one series."},trigger:function(t){return t.dataProps.filter(function(t){return s(t.levelOfMeasurements,["Nominal","Ordinal"])}).length>=2},validator:function(t){var e=1,n=t.dataProps,r=t.chartType;if(n){var i=n.filter(function(t){return s(t.levelOfMeasurements,["Nominal","Ordinal"])});if(i.length>=2){var a=i.sort(c)[1];a.distinct&&(e=a.distinct>10?.1:1/a.distinct,a.distinct>6&&"heatmap"===r?e=5:"heatmap"===r&&(e=1))}}return e}},"line-field-time-ordinal":{id:"line-field-time-ordinal",type:"SOFT",docs:{lintText:"Data containing time or ordinal fields are suitable for line or area charts."},trigger:function(t){var e=t.chartType;return h.includes(e)},validator:function(t){var e=1,n=t.dataProps;return n&&n.find(function(t){return s(t.levelOfMeasurements,["Ordinal","Time"])})&&(e=5),e}},"nominal-enum-combinatorial":{id:"nominal-enum-combinatorial",type:"SOFT",docs:{lintText:"Single (Basic) and Multi (Stacked, Grouped,...) charts should be optimized recommended by nominal enums combinatorial numbers."},trigger:function(t){var e=t.chartType,n=t.dataProps;return p.includes(e)&&g(n).length>=2},validator:function(t){var e=1,n=t.dataProps,r=t.chartType;if(n){var i=g(n);if(i.length>=2){var a=i.sort(c),o=a[0],l=a[1];o.distinct===o.count&&["bar_chart","column_chart"].includes(r)&&(e=5),o.count&&o.distinct&&l.distinct&&o.count>o.distinct&&["grouped_bar_chart","grouped_column_chart","stacked_bar_chart","stacked_column_chart"].includes(r)&&(e=5)}}return e}},"series-qty-limit":{id:"series-qty-limit",type:"SOFT",docs:{lintText:"Some charts should has at most N values for the series."},trigger:function(t){var e=t.chartType;return m.includes(e)},validator:function(t){var e=1,n=t.dataProps,r=t.chartType,i=t.limit;if((!Number.isInteger(i)||i<=0)&&(i=6,("pie_chart"===r||"donut_chart"===r||"rose_chart"===r)&&(i=6),"radar_chart"===r&&(i=8)),n){var o=n.find(function(t){return a(t.levelOfMeasurements,["Nominal"])}),l=o&&o.count?o.count:0;l>=2&&l<=i&&(e=5+2/l)}return e}},"x-axis-line-fading":{id:"x-axis-line-fading",type:"DESIGN",docs:{lintText:"Adjust axis to make it prettier"},trigger:function(t){var e=t.chartType;return w.includes(e)},optimizer:function(t,e){var n,r=O(e).encode;if(r&&(null===(n=r.y)||void 0===n?void 0:n.type)==="quantitative"){var i=t.find(function(t){var e;return t.name===(null===(e=r.y)||void 0===e?void 0:e.field)});if(i){var a=i.maximum-i.minimum;if(i.minimum&&i.maximum&&a<2*i.maximum/3){var o=Math.floor(i.minimum-a/5);return{axis:{x:{tick:!1}},scale:{y:{domainMin:o>0?o:0}},clip:!0}}}}return{}}},"bar-without-axis-min":{id:"bar-without-axis-min",type:"DESIGN",docs:{lintText:"It is not recommended to set the minimum value of axis for the bar or column chart.",fixText:"Remove the minimum value config of axis."},trigger:function(t){var e=t.chartType;return l.includes(e)},optimizer:function(t,e){var n,r,i=e.scale;if(!i)return{};var a=null===(n=i.x)||void 0===n?void 0:n.domainMin,o=null===(r=i.y)||void 0===r?void 0:r.domainMin;if(a||o){var l=JSON.parse(JSON.stringify(i));return a&&(l.x.domainMin=0),o&&(l.y.domainMin=0),{scale:l}}return{}}}},k=Object.keys(_),C=function(t){var e={};return t.forEach(function(t){Object.keys(_).includes(t)&&(e[t]=_[t])}),e},j=function(t){if(!t)return C(k);var e=C(k);if(t.exclude&&t.exclude.forEach(function(t){Object.keys(e).includes(t)&&delete e[t]}),t.include){var n=t.include;Object.keys(e).forEach(function(t){n.includes(t)||delete e[t]})}var i=(0,r.pi)((0,r.pi)({},e),t.custom),a=t.options;return a&&Object.keys(a).forEach(function(t){if(Object.keys(i).includes(t)){var e=a[t];i[t]=(0,r.pi)((0,r.pi)({},i[t]),{option:e})}}),i},M=function(t){if("object"!=typeof t||null===t)return t;if(Array.isArray(t)){e=[];for(var e,n=0,r=t.length;ne.distinct)return -1}return 0};function Z(t){var e,n,r,i=null!==(n=null!==(e=t.find(function(t){return s(t.levelOfMeasurements,["Nominal"])}))&&void 0!==e?e:t.find(function(t){return s(t.levelOfMeasurements,["Time","Ordinal"])}))&&void 0!==n?n:t.find(function(t){return s(t.levelOfMeasurements,["Interval"])}),a=null!==(r=t.filter(function(t){return t!==i}).find(function(t){return s(t.levelOfMeasurements,["Interval"])}))&&void 0!==r?r:t.filter(function(t){return t!==i}).find(function(t){return s(t.levelOfMeasurements,["Nominal","Time","Ordinal"])});return[i,a]}function I(t){var e,n=null!==(e=t.find(function(t){return s(t.levelOfMeasurements,["Time","Ordinal","Nominal"])}))&&void 0!==e?e:t.find(function(t){return a(t.levelOfMeasurements,["Interval"])}),r=t.filter(function(t){return t!==n}).find(function(t){return a(t.levelOfMeasurements,["Interval"])}),i=t.filter(function(t){return t!==n&&t!==r}).find(function(t){return s(t.levelOfMeasurements,["Nominal","Ordinal","Time"])});return[n,r,i]}function D(t){var e=t.find(function(t){return s(t.levelOfMeasurements,["Time","Ordinal"])}),n=t.find(function(t){return a(t.levelOfMeasurements,["Nominal"])});return[e,t.find(function(t){return a(t.levelOfMeasurements,["Interval"])}),n]}function N(t){var e=t.filter(function(t){return a(t.levelOfMeasurements,["Nominal"])}).sort(B),n=e[0],r=e[1];return[t.find(function(t){return a(t.levelOfMeasurements,["Interval"])}),n,r]}function z(t){var e,n,i,o,l,s,c=t.filter(function(t){return a(t.levelOfMeasurements,["Nominal"])}).sort(B);return(0,T.Js)(null===(i=c[1])||void 0===i?void 0:i.rawData,null===(o=c[0])||void 0===o?void 0:o.rawData)?(s=(e=(0,r.CR)(c,2))[0],l=e[1]):(l=(n=(0,r.CR)(c,2))[0],s=n[1]),[l,t.find(function(t){return a(t.levelOfMeasurements,["Interval"])}),s]}var F=function(t){var e=t.data,n=t.xField;return(0,y.uniq)(e.map(function(t){return t[n]})).length<=1},$=function(t,e,n){var r=n.field4Split,i=n.field4X;if((null==r?void 0:r.name)&&(null==i?void 0:i.name)){var a=t[r.name];return F({data:e.filter(function(t){return r.name&&t[r.name]===a}),xField:i.name})?5:void 0}return(null==i?void 0:i.name)&&F({data:e,xField:i.name})?5:void 0},W=n(66465);function H(t){var e,n,i,o,l,c,u,f,d,h,p,g,m,y,v,b,x,O,w,_,k,C,j,M,S,A,E,P,T,L,F,H,G,q,Y,V,U,Q,X,K,J,tt,te,tn,tr,ti=t.chartType,ta=t.data,to=t.dataProps,tl=t.chartKnowledge;if(!R.includes(ti)&&tl)return tl.toSpec?tl.toSpec(ta,to):null;switch(ti){case"pie_chart":return n=(e=(0,r.CR)(Z(to),2))[0],(i=e[1])&&n?{type:"interval",data:ta,encode:{color:n.name,y:i.name},transform:[{type:"stackY"}],coordinate:{type:"theta"}}:null;case"donut_chart":return l=(o=(0,r.CR)(Z(to),2))[0],(c=o[1])&&l?{type:"interval",data:ta,encode:{color:l.name,y:c.name},transform:[{type:"stackY"}],coordinate:{type:"theta",innerRadius:.6}}:null;case"line_chart":return function(t,e){var n=(0,r.CR)(I(e),3),i=n[0],a=n[1],o=n[2];if(!i||!a)return null;var l={type:"line",data:t,encode:{x:i.name,y:a.name,size:function(e){return $(e,t,{field4X:i})}},legend:{size:!1}};return o&&(l.encode.color=o.name),l}(ta,to);case"step_line_chart":return function(t,e){var n=(0,r.CR)(I(e),3),i=n[0],a=n[1],o=n[2];if(!i||!a)return null;var l={type:"line",data:t,encode:{x:i.name,y:a.name,shape:"hvh",size:function(e){return $(e,t,{field4X:i})}},legend:{size:!1}};return o&&(l.encode.color=o.name),l}(ta,to);case"area_chart":return u=to.find(function(t){return s(t.levelOfMeasurements,["Time","Ordinal"])}),f=to.find(function(t){return a(t.levelOfMeasurements,["Interval"])}),u&&f?{type:"area",data:ta,encode:{x:u.name,y:f.name,size:function(t){return $(t,ta,{field4X:u})}},legend:{size:!1}}:null;case"stacked_area_chart":return h=(d=(0,r.CR)(D(to),3))[0],p=d[1],g=d[2],h&&p&&g?{type:"area",data:ta,encode:{x:h.name,y:p.name,color:g.name,size:function(t){return $(t,ta,{field4Split:g,field4X:h})}},legend:{size:!1},transform:[{type:"stackY"}]}:null;case"percent_stacked_area_chart":return y=(m=(0,r.CR)(D(to),3))[0],v=m[1],b=m[2],y&&v&&b?{type:"area",data:ta,encode:{x:y.name,y:v.name,color:b.name},transform:[{type:"stackY"},{type:"normalizeY"}]}:null;case"bar_chart":return function(t,e){var n=(0,r.CR)(N(e),3),i=n[0],a=n[1],o=n[2];if(!i||!a)return null;var l={type:"interval",data:t,encode:{x:a.name,y:i.name},coordinate:{transform:[{type:"transpose"}]}};return o&&(l.encode.color=o.name,l.transform=[{type:"stackY"}]),l}(ta,to);case"grouped_bar_chart":return O=(x=(0,r.CR)(N(to),3))[0],w=x[1],_=x[2],O&&w&&_?{type:"interval",data:ta,encode:{x:w.name,y:O.name,color:_.name},transform:[{type:"dodgeX"}],coordinate:{transform:[{type:"transpose"}]}}:null;case"stacked_bar_chart":return C=(k=(0,r.CR)(N(to),3))[0],j=k[1],M=k[2],C&&j&&M?{type:"interval",data:ta,encode:{x:j.name,y:C.name,color:M.name},transform:[{type:"stackY"}],coordinate:{transform:[{type:"transpose"}]}}:null;case"percent_stacked_bar_chart":return A=(S=(0,r.CR)(N(to),3))[0],E=S[1],P=S[2],A&&E&&P?{type:"interval",data:ta,encode:{x:E.name,y:A.name,color:P.name},transform:[{type:"stackY"},{type:"normalizeY"}],coordinate:{transform:[{type:"transpose"}]}}:null;case"column_chart":return function(t,e){var n=e.filter(function(t){return a(t.levelOfMeasurements,["Nominal"])}).sort(B),r=n[0],i=n[1],o=e.find(function(t){return a(t.levelOfMeasurements,["Interval"])});if(!r||!o)return null;var l={type:"interval",data:t,encode:{x:r.name,y:o.name}};return i&&(l.encode.color=i.name,l.transform=[{type:"stackY"}]),l}(ta,to);case"grouped_column_chart":return L=(T=(0,r.CR)(z(to),3))[0],F=T[1],H=T[2],L&&F&&H?{type:"interval",data:ta,encode:{x:L.name,y:F.name,color:H.name},transform:[{type:"dodgeX"}]}:null;case"stacked_column_chart":return q=(G=(0,r.CR)(z(to),3))[0],Y=G[1],V=G[2],q&&Y&&V?{type:"interval",data:ta,encode:{x:q.name,y:Y.name,color:V.name},transform:[{type:"stackY"}]}:null;case"percent_stacked_column_chart":return Q=(U=(0,r.CR)(z(to),3))[0],X=U[1],K=U[2],Q&&X&&K?{type:"interval",data:ta,encode:{x:Q.name,y:X.name,color:K.name},transform:[{type:"stackY"},{type:"normalizeY"}]}:null;case"scatter_plot":return function(t,e){var n=e.filter(function(t){return a(t.levelOfMeasurements,["Interval"])}).sort(B),r=n[0],i=n[1],o=e.find(function(t){return a(t.levelOfMeasurements,["Nominal"])});if(!r||!i)return null;var l={type:"point",data:t,encode:{x:r.name,y:i.name}};return o&&(l.encode.color=o.name),l}(ta,to);case"bubble_chart":return function(t,e){for(var n=e.filter(function(t){return a(t.levelOfMeasurements,["Interval"])}),i={x:n[0],y:n[1],corr:0,size:n[2]},o=function(t){for(var e=function(e){var a=(0,W.Vs)(n[t].rawData,n[e].rawData);Math.abs(a)>i.corr&&(i.x=n[t],i.y=n[e],i.corr=a,i.size=n[(0,r.ev)([],(0,r.CR)(Array(n.length).keys()),!1).find(function(n){return n!==t&&n!==e})||0])},a=t+1;ae.score?-1:0},X=function(t){var e=t.chartWIKI,n=t.dataProps,r=t.ruleBase,i=t.options;return Object.keys(e).map(function(t){return function(t,e,n,r,i){var a=i?i.purpose:"",o=i?i.preferences:void 0,l=[],s={dataProps:n,chartType:t,purpose:a,preferences:o},c=U(t,e,r,"HARD",s,l);if(0===c)return{chartType:t,score:0,log:l};var u=U(t,e,r,"SOFT",s,l);return{chartType:t,score:c*u,log:l}}(t,e,n,r,i)}).filter(function(t){return t.score>0}).sort(Q)};function K(t,e,n,r){return Object.values(n).filter(function(r){var i;return"DESIGN"===r.type&&r.trigger({dataProps:e,chartType:t})&&!(null===(i=n[r.id].option)||void 0===i?void 0:i.off)}).reduce(function(t,n){return P(t,n.optimizer(e,r))},{})}var J=n(28670),tt=n.n(J);let te=t=>!!tt().valid(t);function tn(t){let{value:e}=t;return te(e)?tt()(e).hex():""}let tr={lab:{l:[0,100],a:[-86.185,98.254],b:[-107.863,94.482]},lch:{l:[0,100],c:[0,100],h:[0,360]},rgb:{r:[0,255],g:[0,255],b:[0,255]},rgba:{r:[0,255],g:[0,255],b:[0,255],a:[0,1]},hsl:{h:[0,360],s:[0,1],l:[0,1]},hsv:{h:[0,360],s:[0,1],v:[0,1]},hsi:{h:[0,360],s:[0,1],i:[0,1]},cmyk:{c:[0,1],m:[0,1],y:[0,1],k:[0,1]}},ti={model:"rgb",value:{r:255,g:255,b:255}},ta=["normal","darken","multiply","colorBurn","linearBurn","lighten","screen","colorDodge","linearDodge","overlay","softLight","hardLight","vividLight","linearLight","pinLight","difference","exclusion"];[...ta];let to=t=>!!tt().valid(t),tl=t=>{let{value:e}=t;return to(e)?tt()(e):tt()("#000")},ts=(t,e=t.model)=>{let n=tl(t);return n?n[e]():[0,0,0]},tc=(t,e=4===t.length?"rgba":"rgb")=>{let n={};if(1===t.length){let[r]=t;for(let t=0;tt*e/255,tp=(t,e)=>t+e-t*e/255,tg=(t,e)=>t<128?th(2*t,e):tp(2*t-255,e),tm={normal:t=>t,darken:(t,e)=>Math.min(t,e),multiply:th,colorBurn:(t,e)=>0===t?0:Math.max(0,255*(1-(255-e)/t)),lighten:(t,e)=>Math.max(t,e),screen:tp,colorDodge:(t,e)=>255===t?255:Math.min(255,255*(e/(255-t))),overlay:(t,e)=>tg(e,t),softLight:(t,e)=>{if(t<128)return e-(1-2*t/255)*e*(1-e/255);let n=e<64?((16*(e/255)-12)*(e/255)+4)*(e/255):Math.sqrt(e/255);return e+255*(2*t/255-1)*(n-e/255)},hardLight:tg,difference:(t,e)=>Math.abs(t-e),exclusion:(t,e)=>t+e-2*t*e/255,linearBurn:(t,e)=>Math.max(t+e-255,0),linearDodge:(t,e)=>Math.min(255,t+e),linearLight:(t,e)=>Math.max(e+2*t-255,0),vividLight:(t,e)=>t<128?255*(1-(1-e/255)/(2*t/255)):255*(e/2/(255-t)),pinLight:(t,e)=>t<128?Math.min(e,2*t):Math.max(e,2*t-255)},ty=t=>.3*t[0]+.58*t[1]+.11*t[2],tv=t=>{let e=ty(t),n=Math.min(...t),r=Math.max(...t),i=[...t];return n<0&&(i=i.map(t=>e+(t-e)*e/(e-n))),r>255&&(i=i.map(t=>e+(t-e)*(255-e)/(r-e))),i},tb=(t,e)=>{let n=e-ty(t);return tv(t.map(t=>t+n))},tx=t=>Math.max(...t)-Math.min(...t),tO=(t,e)=>{let n=t.map((t,e)=>({value:t,index:e}));n.sort((t,e)=>t.value-e.value);let r=n[0].index,i=n[1].index,a=n[2].index,o=[...t];return o[a]>o[r]?(o[i]=(o[i]-o[r])*e/(o[a]-o[r]),o[a]=e):(o[i]=0,o[a]=0),o[r]=0,o},tw={hue:(t,e)=>tb(tO(t,tx(e)),ty(e)),saturation:(t,e)=>tb(tO(e,tx(t)),ty(e)),color:(t,e)=>tb(t,ty(e)),luminosity:(t,e)=>tb(e,ty(t))},t_=(t,e,n="normal")=>{let r;let[i,a,o,l]=ts(t,"rgba"),[s,c,u,f]=ts(e,"rgba"),d=[i,a,o],h=[s,c,u];if(ta.includes(n)){let t=tm[n];r=d.map((e,n)=>Math.floor(t(e,h[n])))}else r=tw[n](d,h);let p=l+f*(1-l),g=Math.round((l*(1-f)*i+l*f*r[0]+(1-l)*f*s)/p),m=Math.round((l*(1-f)*a+l*f*r[1]+(1-l)*f*c)/p),y=Math.round((l*(1-f)*o+l*f*r[2]+(1-l)*f*u)/p);return 1===p?{model:"rgb",value:{r:g,g:m,b:y}}:{model:"rgba",value:{r:g,g:m,b:y,a:p}}},tk=(t,e)=>{let n=(t+e)%360;return n<0?n+=360:n>=360&&(n-=360),n},tC=(t=1,e=0)=>{let n=Math.min(t,e),r=Math.max(t,e);return n+Math.random()*(r-n)},tj=(t=1,e=0)=>{let n=Math.ceil(Math.min(t,e)),r=Math.floor(Math.max(t,e));return Math.floor(n+Math.random()*(r-n+1))},tM=t=>{if(t&&"object"==typeof t){let e=Array.isArray(t);if(e){let e=t.map(t=>tM(t));return e}let n={},r=Object.keys(t);return r.forEach(e=>{n[e]=tM(t[e])}),n}return t};function tS(t){return t*(Math.PI/180)}var tA=n(56917),tE=n.n(tA);let tP=(t,e="normal")=>{if("normal"===e)return{...t};let n=tn(t),r=tE()[e](n);return td(r)},tR=t=>{let e=tu(t),[,,,n=1]=ts(t,"rgba");return tf(e,n)},tT=(t,e="normal")=>"grayscale"===e?tR(t):tP(t,e),tL=(t,e,n=[tj(5,10),tj(90,95)])=>{let[r,i,a]=ts(t,"lab"),o=r<=15?r:n[0],l=r>=85?r:n[1],s=(l-o)/(e-1),c=Math.ceil((r-o)/s);return s=0===c?s:(r-o)/c,Array(e).fill(0).map((t,e)=>tc([s*e+o,i,a],"lab"))},tB=t=>{let{count:e,color:n,tendency:r}=t,i=tL(n,e),a={name:"monochromatic",semantic:null,type:"discrete-scale",colors:"tint"===r?i:i.reverse()};return a},tZ={model:"rgb",value:{r:0,g:0,b:0}},tI={model:"rgb",value:{r:255,g:255,b:255}},tD=(t,e,n="lab")=>tt().distance(tl(t),tl(e),n),tN=(t,e)=>{let n=Math.atan2(t,e)*(180/Math.PI);return n>=0?n:n+360},tz=(t,e)=>{let n,r;let[i,a,o]=ts(t,"lab"),[l,s,c]=ts(e,"lab"),u=Math.sqrt(a**2+o**2),f=Math.sqrt(s**2+c**2),d=(u+f)/2,h=.5*(1-Math.sqrt(d**7/(d**7+6103515625))),p=(1+h)*a,g=(1+h)*s,m=Math.sqrt(p**2+o**2),y=Math.sqrt(g**2+c**2),v=tN(o,p),b=tN(c,g),x=y-m;n=180>=Math.abs(b-v)?b-v:b-v<-180?b-v+360:b-v-360;let O=2*Math.sqrt(m*y)*Math.sin(tS(n)/2);r=180>=Math.abs(v-b)?(v+b)/2:Math.abs(v-b)>180&&v+b<360?(v+b+360)/2:(v+b-360)/2;let w=(i+l)/2,_=(m+y)/2,k=1-.17*Math.cos(tS(r-30))+.24*Math.cos(tS(2*r))+.32*Math.cos(tS(3*r+6))-.2*Math.cos(tS(4*r-63)),C=1+.015*(w-50)**2/Math.sqrt(20+(w-50)**2),j=1+.045*_,M=1+.015*_*k,S=-2*Math.sqrt(_**7/(_**7+6103515625))*Math.sin(tS(60*Math.exp(-(((r-275)/25)**2)))),A=Math.sqrt(((l-i)/(1*C))**2+(x/(1*j))**2+(O/(1*M))**2+S*(x/(1*j))*(O/(1*M)));return A},tF=t=>{let e=t/255;return e<=.03928?e/12.92:((e+.055)/1.055)**2.4},t$=t=>{let[e,n,r]=ts(t);return .2126*tF(e)+.7152*tF(n)+.0722*tF(r)},tW=(t,e)=>{let n=t$(t),r=t$(e);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)},tH=(t,e,n={measure:"euclidean"})=>{let{measure:r="euclidean",backgroundColor:i=ti}=n,a=t_(t,i),o=t_(e,i);switch(r){case"CIEDE2000":return tz(a,o);case"euclidean":return tD(a,o,n.colorModel);case"contrastRatio":return tW(a,o);default:return tD(a,o)}},tG=[.8,1.2],tq={rouletteWheel:t=>{let e=t.reduce((t,e)=>t+e),n=0,r=tC(e),i=0;for(let e=0;e{let e=-1,n=0;for(let r=0;r<3;r+=1){let i=tj(t.length-1);t[i]>n&&(e=r,n=t[i])}return e}},tY=(t,e="tournament")=>tq[e](t),tV=(t,e)=>{let n=tM(t),r=tM(e);for(let i=1;i{let i=tM(t),a=e[tj(e.length-1)],o=tj(t[0].length-1),l=i[a][o]*tC(...tG),s=[15,240];"grayscale"!==n&&(s=tr[r][r.split("")[o]]);let[c,u]=s;return lu&&(l=u),i[a][o]=l,i},tQ=(t,e,n,r,i,a)=>{let o;o="grayscale"===n?t.map(([t])=>tf(t)):t.map(t=>tT(tc(t,r),n));let l=1/0;for(let t=0;t{if(Math.round(tQ(t,e,n,i,a,o))>r)return t;let l=Array(t.length).fill(0).map((t,e)=>e).filter((t,n)=>!e[n]),s=Array(50).fill(0).map(()=>tU(t,l,n,i)),c=s.map(t=>tQ(t,e,n,i,a,o)),u=Math.max(...c),f=s[c.findIndex(t=>t===u)],d=1;for(;d<100&&Math.round(u)tC()?tV(e,r):[e,r];a=a.map(t=>.1>tC()?tU(t,l,n,i):t),t.push(...a)}c=(s=t).map(t=>tQ(t,e,n,i,a,o));let r=Math.max(...c);u=r,f=s[c.findIndex(t=>t===r)],d+=1}return f},tK={euclidean:30,CIEDE2000:20,contrastRatio:4.5},tJ={euclidean:291.48,CIEDE2000:100,contrastRatio:21},t0=(t,e={})=>{let{locked:n=[],simulationType:r="normal",threshold:i,colorModel:a="hsv",colorDifferenceMeasure:o="euclidean",backgroundColor:l=ti}=e,s=i;if(s||(s=tK[o]),"grayscale"===r){let e=tJ[o];s=Math.min(s,e/t.colors.length)}let c=tM(t);if("matrix"!==c.type&&"continuous-scale"!==c.type){if("grayscale"===r){let t=c.colors.map(t=>[tu(t)]),e=tX(t,n,r,s,a,o,l);c.colors.forEach((t,n)=>Object.assign(t,function(t,e){let n;let[,r,i]=ts(e,"lab"),[,,,a=1]=ts(e,"rgba"),o=100*t,l=Math.round(o),s=tu(tc([l,r,i],"lab")),c=25;for(;Math.round(o)!==Math.round(s/255*100)&&c>0;)o>s/255*100?l+=1:l-=1,c-=1,s=tu(tc([l,r,i],"lab"));if(Math.round(o)ts(t,a)),e=tX(t,n,r,s,a,o,l);c.colors.forEach((t,n)=>{Object.assign(t,tc(e[n],a))})}}return c},t1=[.3,.9],t2=[.5,1],t5=(t,e,n,r=[])=>{let[i]=ts(t,"hsv"),a=Array(n).fill(!1),o=-1===r.findIndex(e=>e&&e.model===t.model&&e.value===t.value),l=Array(n).fill(0).map((n,l)=>{let s=r[l];return s?(a[l]=!0,s):o?(o=!1,a[l]=!0,t):tc([tk(i,e*l),tC(...t1),tC(...t2)],"hsv")});return{newColors:l,locked:a}};function t3(){let t=tj(255),e=tj(255),n=tj(255);return tc([t,e,n],"rgb")}let t4=t=>{let{count:e,colors:n}=t,r=[],i={name:"random",semantic:null,type:"categorical",colors:Array(e).fill(0).map((t,e)=>{let i=n[e];return i?(r[e]=!0,i):t3()})};return t0(i,{locked:r})},t6=["monochromatic"],t8=(t,e)=>{let{count:n=8,tendency:r="tint"}=e,{colors:i=[],color:a}=e;return a||(a=i.find(t=>!!t&&!!t.model&&!!t.value)||t3()),t6.includes(t)&&(i=[]),{color:a,colors:i,count:n,tendency:r}},t7={monochromatic:tB,analogous:t=>{let{count:e,color:n,tendency:r}=t,[i,a,o]=ts(n,"hsv"),l=Math.floor(e/2),s=60/(e-1);i>=60&&i<=240&&(s=-s);let c=(a-.1)/3/(e-l-1),u=(o-.4)/3/l,f=Array(e).fill(0).map((t,e)=>{let n=tk(i,s*(e-l)),r=e<=l?Math.min(a+c*(l-e),1):a+3*c*(l-e),f=e<=l?o-3*u*(l-e):Math.min(o-u*(l-e),1);return tc([n,r,f],"hsv")}),d={name:"analogous",semantic:null,type:"discrete-scale",colors:"tint"===r?f:f.reverse()};return d},achromatic:t=>{let{tendency:e}=t,n={...t,color:"tint"===e?tZ:tI},r=tB(n);return{...r,name:"achromatic"}},complementary:t=>{let e;let{count:n,color:r}=t,[i,a,o]=ts(r,"hsv"),l=tc([tk(i,180),a,o],"hsv"),s=tj(80,90),c=tj(15,25),u=Math.floor(n/2),f=tL(r,u,[c,s]),d=tL(l,u,[c,s]).reverse();if(n%2==1){let t=tc([(tk(i,180)+i)/2,tC(.05,.1),tC(.9,.95)],"hsv");e=[...f,t,...d]}else e=[...f,...d];let h={name:"complementary",semantic:null,type:"discrete-scale",colors:e};return h},"split-complementary":t=>{let{count:e,color:n,colors:r}=t,{newColors:i,locked:a}=t5(n,180,e,r);return t0({name:"tetradic",semantic:null,type:"categorical",colors:i},{locked:a})},triadic:t=>{let{count:e,color:n,colors:r}=t,{newColors:i,locked:a}=t5(n,120,e,r);return t0({name:"tetradic",semantic:null,type:"categorical",colors:i},{locked:a})},tetradic:t=>{let{count:e,color:n,colors:r}=t,{newColors:i,locked:a}=t5(n,90,e,r);return t0({name:"tetradic",semantic:null,type:"categorical",colors:i},{locked:a})},polychromatic:t=>{let{count:e,color:n,colors:r}=t,i=360/e,{newColors:a,locked:o}=t5(n,i,e,r);return t0({name:"tetradic",semantic:null,type:"categorical",colors:a},{locked:o})},customized:t4},t9=(t="monochromatic",e={})=>{let n=t8(t,e);try{return t7[t](n)}catch(t){return t4(n)}};function et(t,e,n){var r,i=O(e),a=n.primaryColor,o=i.encode;if(a&&o){var l=td(a);if(o.color){var s=o.color,c=s.type,u=s.field;return{scale:{color:{range:t9("quantitative"===c?G[Math.floor(Math.random()*G.length)]:q[Math.floor(Math.random()*q.length)],{color:l,count:null===(r=t.find(function(t){return t.name===u}))||void 0===r?void 0:r.count}).colors.map(function(t){return tn(t)})}}}}return"line"===e.type?{style:{stroke:tn(l)}}:{style:{fill:tn(l)}}}return{}}function ee(t,e,n,r,i){var a,o=O(e).encode;if(n&&o){var l=td(n);if(o.color){var s=o.color,c=s.type,u=s.field,f=r;return f||(f="quantitative"===c?"monochromatic":"polychromatic"),{scale:{color:{range:t9(f,{color:l,count:null===(a=t.find(function(t){return t.name===u}))||void 0===a?void 0:a.count}).colors.map(function(t){return tn(i?tT(t,i):t)})}}}}return"line"===e.type?{style:{stroke:tn(l)}}:{style:{fill:tn(l)}}}return{}}n(16243);var en=n(8625);function er(t,e,n){try{i=e?new en.Z(t,{columns:e}):new en.Z(t)}catch(t){return console.error("failed to transform the input data into DataFrame: ",t),[]}var i,a=i.info();return n?a.map(function(t){var e=n.find(function(e){return e.name===t.name});return(0,r.pi)((0,r.pi)({},t),e)}):a}var ei=function(t){var e=t.data,n=t.fields;return n?e.map(function(t){return Object.keys(t).forEach(function(e){n.includes(e)||delete t[e]}),t}):e};function ea(t){var e=t.adviseParams,n=t.ckb,r=t.ruleBase,i=e.data,a=e.dataProps,o=e.smartColor,l=e.options,s=e.colorOptions,c=e.fields,u=l||{},f=u.refine,d=void 0!==f&&f,h=u.requireSpec,p=void 0===h||h,g=u.theme,m=s||{},y=m.themeColor,v=void 0===y?Y:y,b=m.colorSchemeType,x=m.simulationType,O=M(i),w=er(O,c,a),_=ei({data:O,fields:c}),k=X({dataProps:w,ruleBase:r,chartWIKI:n});return{advices:k.map(function(t){var e=t.score,i=t.chartType,a=H({chartType:i,data:_,dataProps:w,chartKnowledge:n[i]});if(a&&d){var l=K(i,w,r,a);P(a,l)}if(a){if(g&&!o){var l=et(w,a,g);P(a,l)}else if(o){var l=ee(w,a,v,b,x);P(a,l)}}return{type:i,spec:a,score:e}}).filter(function(t){return!p||t.spec}),log:k}}var eo=function(t){var e,n=t.coordinate;if((null==n?void 0:n.type)==="theta")return(null==n?void 0:n.innerRadius)?"donut_chart":"pie_chart";var r=t.transform,i=null===(e=null==n?void 0:n.transform)||void 0===e?void 0:e.some(function(t){return"transpose"===t.type}),a=null==r?void 0:r.some(function(t){return"normalizeY"===t.type}),o=null==r?void 0:r.some(function(t){return"stackY"===t.type}),l=null==r?void 0:r.some(function(t){return"dodgeX"===t.type});return i?l?"grouped_bar_chart":a?"stacked_bar_chart":o?"percent_stacked_bar_chart":"bar_chart":l?"grouped_column_chart":a?"stacked_column_chart":o?"percent_stacked_column_chart":"column_chart"},el=function(t){var e=t.transform,n=null==e?void 0:e.some(function(t){return"stackY"===t.type}),r=null==e?void 0:e.some(function(t){return"normalizeY"===t.type});return n?r?"percent_stacked_area_chart":"stacked_area_chart":"area_chart"},es=function(t){var e=t.encode;return e.shape&&"hvh"===e.shape?"step_line_chart":"line_chart"},ec=function(t){var e;switch(t.type){case"area":e=el(t);break;case"interval":e=eo(t);break;case"line":e=es(t);break;case"point":e=t.encode.size?"bubble_chart":"scatter_plot";break;case"rect":e="histogram";break;case"cell":e="heatmap";break;default:e=""}return e};function eu(t,e,n,i,a,o,l){Object.values(t).filter(function(t){var i,a,l=t.option||{},s=l.weight,c=l.extra;return i=t.type,("DESIGN"===e?"DESIGN"===i:"DESIGN"!==i)&&!(null===(a=t.option)||void 0===a?void 0:a.off)&&t.trigger((0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},n),{weight:s}),c),{chartWIKI:o}))}).forEach(function(t){var s,c=t.type,u=t.id,f=t.docs;if("DESIGN"===e){var d=t.optimizer(n.dataProps,l);s=0===Object.keys(d).length?1:0,a.push({type:c,id:u,score:s,fix:d,docs:f})}else{var h=t.option||{},p=h.weight,g=h.extra;s=t.validator((0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},n),{weight:p}),g),{chartWIKI:o})),a.push({type:c,id:u,score:s,docs:f})}i.push({phase:"LINT",ruleId:u,score:s,base:s,weight:1,ruleType:c})})}function ef(t,e,n){var r=t.spec,i=t.options,a=t.dataProps,o=null==i?void 0:i.purpose,l=null==i?void 0:i.preferences,s=ec(r),c=[],u=[];if(!r||!s)return{lints:c,log:u};if(!a||!a.length)try{a=new en.Z(r.data).info()}catch(t){return console.error("error: ",t),{lints:c,log:u}}var f={dataProps:a,chartType:s,purpose:o,preferences:l};return eu(e,"notDESIGN",f,u,c,n),eu(e,"DESIGN",f,u,c,n,r),{lints:c=c.filter(function(t){return t.score<1}),log:u}}var ed=n(89991),eh=function(){function t(t,e){var n,r,i,a=this;this.plugins=[],this.name=t,this.afterPluginsExecute=null!==(n=null==e?void 0:e.afterPluginsExecute)&&void 0!==n?n:this.defaultAfterPluginsExecute,this.pluginManager=new ed.AsyncParallelHook(["data","results"]),this.syncPluginManager=new ed.SyncHook(["data","results"]),this.context=null==e?void 0:e.context,this.hasAsyncPlugin=!!(null===(r=null==e?void 0:e.plugins)||void 0===r?void 0:r.find(function(t){return a.isPluginAsync(t)})),null===(i=null==e?void 0:e.plugins)||void 0===i||i.forEach(function(t){a.registerPlugin(t)})}return t.prototype.defaultAfterPluginsExecute=function(t){return(0,y.last)(Object.values(t))},t.prototype.isPluginAsync=function(t){return"AsyncFunction"===t.execute.constructor.name},t.prototype.registerPlugin=function(t){var e,n=this;null===(e=t.onLoad)||void 0===e||e.call(t,this.context),this.plugins.push(t),this.isPluginAsync(t)&&(this.hasAsyncPlugin=!0),this.hasAsyncPlugin?this.pluginManager.tapPromise(t.name,function(e,i){return void 0===i&&(i={}),(0,r.mG)(n,void 0,void 0,function(){var n,a,o;return(0,r.Jh)(this,function(r){switch(r.label){case 0:return null===(a=t.onBeforeExecute)||void 0===a||a.call(t,e,this.context),[4,t.execute(e,this.context)];case 1:return n=r.sent(),null===(o=t.onAfterExecute)||void 0===o||o.call(t,n,this.context),i[t.name]=n,[2]}})})}):this.syncPluginManager.tap(t.name,function(e,r){void 0===r&&(r={}),null===(i=t.onBeforeExecute)||void 0===i||i.call(t,e,n.context);var i,a,o=t.execute(e,n.context);return null===(a=t.onAfterExecute)||void 0===a||a.call(t,o,n.context),r[t.name]=o,o})},t.prototype.unloadPlugin=function(t){var e,n=this.plugins.find(function(e){return e.name===t});n&&(null===(e=n.onUnload)||void 0===e||e.call(n,this.context),this.plugins=this.plugins.filter(function(e){return e.name!==t}))},t.prototype.execute=function(t){var e,n=this;if(this.hasAsyncPlugin){var i={};return this.pluginManager.promise(t,i).then(function(){return(0,r.mG)(n,void 0,void 0,function(){var t;return(0,r.Jh)(this,function(e){return[2,null===(t=this.afterPluginsExecute)||void 0===t?void 0:t.call(this,i)]})})})}var a={};return this.syncPluginManager.call(t,a),null===(e=this.afterPluginsExecute)||void 0===e?void 0:e.call(this,a)},t}(),ep=function(){function t(t){var e=t.components,n=this;this.components=e,this.componentsManager=new ed.AsyncSeriesWaterfallHook(["initialParams"]),e.forEach(function(t){t&&n.componentsManager.tapPromise(t.name,function(e){return(0,r.mG)(n,void 0,void 0,function(){var n,i;return(0,r.Jh)(this,function(a){switch(a.label){case 0:return n=e,[4,t.execute(n||{})];case 1:return i=a.sent(),[2,(0,r.pi)((0,r.pi)({},n),i)]}})})})})}return t.prototype.execute=function(t){return(0,r.mG)(this,void 0,void 0,function(){return(0,r.Jh)(this,function(e){switch(e.label){case 0:return[4,this.componentsManager.promise(t)];case 1:return[2,e.sent()]}})})},t}(),eg={name:"defaultDataProcessor",stage:["dataAnalyze"],execute:function(t,e){var n=t.data,r=t.customDataProps,i=((null==e?void 0:e.options)||{}).fields,a=(0,y.cloneDeep)(n),o=er(a,i,r);return{data:ei({data:a,fields:i}),dataProps:o}}},em={name:"defaultChartTypeRecommend",stage:["chartTypeRecommend"],execute:function(t,e){var n=t.dataProps,r=e||{},i=r.advisor,a=r.options;return{chartTypeRecommendations:X({dataProps:n,chartWIKI:i.ckb,ruleBase:i.ruleBase,options:a})}}},ey={name:"defaultSpecGenerator",stage:["specGenerate"],execute:function(t,e){var n=t.chartTypeRecommendations,r=t.dataProps,i=t.data,a=e||{},o=a.options,l=a.advisor,s=o||{},c=s.refine,u=void 0!==c&&c,f=s.theme,d=s.colorOptions,h=s.smartColor,p=d||{},g=p.themeColor,m=void 0===g?Y:g,y=p.colorSchemeType,v=p.simulationType;return{advices:null==n?void 0:n.map(function(t){var e=t.chartType,n=H({chartType:e,data:i,dataProps:r,chartKnowledge:l.ckb[e]});if(n&&u){var a=K(e,r,l.ruleBase,n);P(n,a)}if(n){if(f&&!h){var a=et(r,n,f);P(n,a)}else if(h){var a=ee(r,n,m,y,v);P(n,a)}}return{type:t.chartType,spec:n,score:t.score}}).filter(function(t){return t.spec})}}},ev=function(){function t(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this.ckb=(n=t.ckbCfg,a=JSON.parse(JSON.stringify(i)),n?(o=n.exclude,l=n.include,s=n.custom,o&&o.forEach(function(t){Object.keys(a).includes(t)&&delete a[t]}),l&&Object.keys(a).forEach(function(t){l.includes(t)||delete a[t]}),(0,r.pi)((0,r.pi)({},a),s)):a),this.ruleBase=j(t.ruleCfg),this.context={advisor:this},this.initDefaultComponents();var n,a,o,l,s,c=[this.dataAnalyzer,this.chartTypeRecommender,this.chartEncoder,this.specGenerator],u=e.plugins,f=e.components;this.plugins=u,this.pipeline=new ep({components:null!=f?f:c})}return t.prototype.initDefaultComponents=function(){this.dataAnalyzer=new eh("data",{plugins:[eg],context:this.context}),this.chartTypeRecommender=new eh("chartType",{plugins:[em],context:this.context}),this.specGenerator=new eh("specGenerate",{plugins:[ey],context:this.context})},t.prototype.advise=function(t){return ea({adviseParams:t,ckb:this.ckb,ruleBase:this.ruleBase}).advices},t.prototype.adviseAsync=function(t){return(0,r.mG)(this,void 0,void 0,function(){return(0,r.Jh)(this,function(e){switch(e.label){case 0:return this.context=(0,r.pi)((0,r.pi)({},this.context),{data:t.data,options:t.options}),[4,this.pipeline.execute(t)];case 1:return[2,e.sent().advices]}})})},t.prototype.adviseWithLog=function(t){return ea({adviseParams:t,ckb:this.ckb,ruleBase:this.ruleBase})},t.prototype.lint=function(t){return ef(t,this.ruleBase,this.ckb).lints},t.prototype.lintWithLog=function(t){return ef(t,this.ruleBase,this.ckb)},t.prototype.registerPlugins=function(t){var e={dataAnalyze:this.dataAnalyzer,chartTypeRecommend:this.chartTypeRecommender,encode:this.chartEncoder,specGenerate:this.specGenerator};t.forEach(function(t){"string"==typeof t.stage&&e[t.stage].registerPlugin(t)})},t}()},8625:function(t,e,n){"use strict";n.d(e,{Z:function(){return O}});var r=n(97582),i=n(66465),a=n(61839),o=n(7813),l=function(t){var e,n,i=(void 0===(e=t)&&(e=!0),["".concat(o.oP),"".concat(o.oP).concat(o.cF).concat(e?"":"?","W").concat(o.ps,"(").concat(o.cF).concat(e?"":"?").concat(o.NO,")?"),"".concat(o.vc).concat(o.cF).concat(e?"":"?").concat(o.x4).concat(o.cF).concat(e?"":"?").concat(o.oP),"".concat(o.oP).concat(o.cF).concat(e?"":"?").concat(o.vc).concat(o.cF).concat(e?"":"?").concat(o.x4),"".concat(o.oP).concat(o.cF).concat(e?"":"?").concat(o.vc),"".concat(o.oP).concat(o.cF).concat(e?"":"?").concat(o.IY)]),a=(void 0===(n=t)&&(n=!0),["".concat(o.kr,":").concat(n?"":"?").concat(o.EB,":").concat(n?"":"?").concat(o.sh,"([.,]").concat(o.KP,")?").concat(o.ew,"?"),"".concat(o.kr,":").concat(n?"":"?").concat(o.EB,"?").concat(o.ew)]),l=(0,r.ev)((0,r.ev)([],(0,r.CR)(i),!1),(0,r.CR)(a),!1);return i.forEach(function(t){a.forEach(function(e){l.push("".concat(t,"[T\\s]").concat(e))})}),l.map(function(t){return new RegExp("^".concat(t,"$"))})};function s(t,e){if((0,a.HD)(t)){for(var n=l(e),r=0;r0&&(m.generateColumns([0],null==n?void 0:n.columns),m.colData=[m.data],m.data=m.data.map(function(t){return[t]})),(0,a.kJ)(b)){var x=(0,c.w6)(b.length);m.generateDataAndColDataFromArray(!1,e,x,null==n?void 0:n.fillValue,null==n?void 0:n.columnTypes),m.generateColumns(x,null==n?void 0:n.columns)}if((0,a.Kn)(b)){for(var O=[],y=0;y=0&&b>=0||O.length>0,"The rowLoc is not found in the indexes."),v>=0&&b>=0&&(E=this.data.slice(v,b),P=this.indexes.slice(v,b)),O.length>0)for(var s=0;s=0&&_>=0){for(var s=0;s0){for(var R=[],T=E.slice(),s=0;s=0&&y>=0||v.length>0,"The colLoc is illegal"),(0,a.U)(n)&&(0,c.w6)(this.columns.length).includes(n)&&(b=n,O=n+1),(0,a.kJ)(n))for(var s=0;s=0&&y>=0||v.length>0,"The rowLoc is not found in the indexes.");var S=[],A=[];if(m>=0&&y>=0)S=this.data.slice(m,y),A=this.indexes.slice(m,y);else if(v.length>0)for(var s=0;s=0&&O>=0||w.length>0,"The colLoc is not found in the columns index."),b>=0&&O>=0){for(var s=0;s0){for(var E=[],P=S.slice(),s=0;s1){var _={},k=y;b.forEach(function(e){"date"===e?(_.date=t(k.filter(function(t){return s(t)}),n),k=k.filter(function(t){return!s(t)})):"integer"===e?(_.integer=t(k.filter(function(t){return(0,a.Cf)(t)&&!s(t)}),n),k=k.filter(function(t){return!(0,a.Cf)(t)})):"float"===e?(_.float=t(k.filter(function(t){return(0,a.vn)(t)&&!s(t)}),n),k=k.filter(function(t){return!(0,a.vn)(t)})):"string"===e&&(_.string=t(k.filter(function(t){return"string"===f(t,n)})),k=k.filter(function(t){return"string"!==f(t,n)}))}),w.meta=_}2===w.distinct&&"date"!==w.recommendation&&(g.length>=100?w.recommendation="boolean":(0,a.jn)(O,!0)&&(w.recommendation="boolean")),"string"===p&&Object.assign(w,(o=(r=y.map(function(t){return"".concat(t)})).map(function(t){return t.length}),{maxLength:(0,i.Fp)(o),minLength:(0,i.VV)(o),meanLength:(0,i.J6)(o),containsChar:r.some(function(t){return/[A-z]/.test(t)}),containsDigit:r.some(function(t){return/[0-9]/.test(t)}),containsSpace:r.some(function(t){return/\s/.test(t)})})),("integer"===p||"float"===p)&&Object.assign(w,(l=y.map(function(t){return 1*t}),{minimum:(0,i.VV)(l),maximum:(0,i.Fp)(l),mean:(0,i.J6)(l),percentile5:(0,i.VR)(l,5),percentile25:(0,i.VR)(l,25),percentile50:(0,i.VR)(l,50),percentile75:(0,i.VR)(l,75),percentile95:(0,i.VR)(l,95),sum:(0,i.Sm)(l),variance:(0,i.CA)(l),standardDeviation:(0,i.IN)(l),zeros:l.filter(function(t){return 0===t}).length})),"date"===p&&Object.assign(w,(d="integer"===w.type,h=y.map(function(t){if(d){var e="".concat(t);if(8===e.length)return new Date("".concat(e.substring(0,4),"/").concat(e.substring(4,2),"/").concat(e.substring(6,2))).getTime()}return new Date(t).getTime()}),{minimum:y[(0,i._D)(h)],maximum:y[(0,i.F_)(h)]}));var C=[];return"boolean"!==w.recommendation&&("string"!==w.recommendation||u(w))||C.push("Nominal"),u(w)&&C.push("Ordinal"),("integer"===w.recommendation||"float"===w.recommendation)&&C.push("Interval"),"integer"===w.recommendation&&C.push("Discrete"),"float"===w.recommendation&&C.push("Continuous"),"date"===w.recommendation&&C.push("Time"),w.levelOfMeasurements=C,w}(this.colData[n],this.extra.strictDatePattern)),{name:String(o)}))}return e},e.prototype.toString=function(){for(var t=this,e=Array(this.columns.length+1).fill(0),n=0;ne[0]&&(e[0]=r)}for(var n=0;ne[n+1]&&(e[n+1]=r)}for(var n=0;ne[n+1]&&(e[n+1]=r)}return"".concat(g(e[0])).concat(this.columns.map(function(n,r){return"".concat(n).concat(r!==t.columns.length?g(e[r+1]-y(n)+2):"")}).join(""),"\n").concat(this.indexes.map(function(n,r){var i;return"".concat(n).concat(g(e[0]-y(n))).concat(null===(i=t.data[r])||void 0===i?void 0:i.map(function(n,r){return"".concat(m(n)).concat(r!==t.columns.length?g(e[r+1]-y(n)):"")}).join("")).concat(r!==t.indexes.length?"\n":"")}).join(""))},e}(b)},66465:function(t,e,n){"use strict";n.d(e,{Fp:function(){return u},F_:function(){return f},J6:function(){return h},VV:function(){return s},_D:function(){return c},Vs:function(){return y},VR:function(){return p},IN:function(){return m},Sm:function(){return d},Gn:function(){return v},CA:function(){return g}});var r=n(97582),i=n(84813),a=new WeakMap;function o(t,e,n){return a.get(t)||a.set(t,new Map),a.get(t).set(e,n),n}function l(t,e){var n=a.get(t);if(n)return n.get(e)}function s(t){var e=l(t,"min");return void 0!==e?e:o(t,"min",Math.min.apply(Math,(0,r.ev)([],(0,r.CR)(t),!1)))}function c(t){var e=l(t,"minIndex");return void 0!==e?e:o(t,"minIndex",function(t){for(var e=t[0],n=0,r=0;re&&(n=r,e=t[r]);return n}(t))}function d(t){var e=l(t,"sum");return void 0!==e?e:o(t,"sum",t.reduce(function(t,e){return e+t},0))}function h(t){return d(t)/t.length}function p(t,e,n){return void 0===n&&(n=!1),(0,i.hu)(e>0&&e<100,"The percent cannot be between (0, 100)."),(n?t:t.sort(function(t,e){return t>e?1:-1}))[Math.ceil(t.length*e/100)-1]}function g(t){var e=h(t),n=l(t,"variance");return void 0!==n?n:o(t,"variance",t.reduce(function(t,n){return t+Math.pow(n-e,2)},0)/t.length)}function m(t){return Math.sqrt(g(t))}function y(t,e){return(0,i.hu)(t.length===e.length,"The x and y must has same length."),(h(t.map(function(t,n){return t*e[n]}))-h(t)*h(e))/(m(t)*m(e))}function v(t){var e={};return t.forEach(function(t){var n="".concat(t);e[n]?e[n]+=1:e[n]=1}),e}},84813:function(t,e,n){"use strict";n.d(e,{Js:function(){return s},Tw:function(){return a},hu:function(){return l},w6:function(){return o}});var r=n(97582),i=n(61839);function a(t){return Array.from(new Set(t))}function o(t){return(0,r.ev)([],(0,r.CR)(Array(t).keys()),!1)}function l(t,e){if(!t)throw Error(e)}function s(t,e){if(!(0,i.kJ)(t)||0===t.length||!(0,i.kJ)(e)||0===e.length||t.length!==e.length)return!1;for(var n={},r=0;r(18|19|20)\\d{2})",o="(?0?[1-9]|1[012])",l="(?0?[1-9]|[12]\\d|3[01])",s="(?[0-4]\\d|5[0-2])",c="(?[1-7])",u="(0?\\d|[012345]\\d)",f="(?".concat(u,")"),d="(?".concat(u,")"),h="(?".concat(u,")"),p="(?\\d{1,4})",g="(?(([0-2]\\d|3[0-5])\\d)|36[0-6])",m="(?Z|[+-]".concat("(0?\\d|1\\d|2[0-4])","(:").concat(u,")?)")},61839:function(t,e,n){"use strict";n.d(e,{Cf:function(){return c},HD:function(){return a},J_:function(){return f},Kn:function(){return h},M1:function(){return g},U:function(){return s},hj:function(){return o},i1:function(){return l},jn:function(){return d},kJ:function(){return p},kK:function(){return i},vn:function(){return u}});var r=n(7813);function i(t){return null==t||""===t||Number.isNaN(t)||"null"===t}function a(t){return"string"==typeof t}function o(t){return"number"==typeof t}function l(t){if(a(t)){var e=!1,n=t;/^[+-]/.test(n)&&(n=n.slice(1));for(var r=0;re?0:1;return"M".concat(m,",").concat(y,",A").concat(s,",").concat(c,",0,").concat(o>180?1:0,",").concat(_,",").concat(b,",").concat(x)}function I(t){var e=(0,r.CR)(t,2),n=(0,r.CR)(e[0],2),i=n[0],a=n[1],o=(0,r.CR)(e[1],2);return{x1:i,y1:a,x2:o[0],y2:o[1]}}function D(t){var e=t.type,n=t.gridCenter;return"linear"===e?n:n||t.center}function N(t,e,n,r,i){return void 0===r&&(r=!0),void 0===i&&(i=!1),!!r&&t===e||!!i&&t===n||t>e&&t0,b=i-c,x=a-u,O=h*x-p*b;if(O<0===v)return!1;var w=g*x-m*b;return w<0!==v&&O>y!==v&&w>y!==v}(e,t)})}(l,f))return!0}}catch(t){i={error:t}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}return!1}(h.firstChild,p.firstChild,(0,Y.j)(n)):0)?(l.add(s),l.add(p)):s=p}}catch(t){i={error:t}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}return Array.from(l)}function J(t,e){return(void 0===e&&(e={}),(0,q.Z)(t))?0:"number"==typeof t?t:Math.floor((0,$.Ux)(t,e))}var tt=n(39639),te={parity:function(t,e){var n=e.seq,r=void 0===n?2:n;return t.filter(function(t,e){return!(e%r)||((0,z.Cp)(t),!1)})}},tn=new Map([["hide",function(t,e,n,i){var a,o,l=t.length,s=e.keepHeader,c=e.keepTail;if(!(l<=1)&&(2!==l||!s||!c)){var u=te.parity,f=function(t){return t.forEach(i.show),t},d=2,h=t.slice(),p=t.slice(),g=Math.min.apply(Math,(0,r.ev)([1],(0,r.CR)(t.map(function(t){return t.getBBox().width})),!1));if("linear"===n.type&&(L(n)||B(n))){var m=(0,tt._v)(t[0]).left,y=Math.abs((0,tt._v)(t[l-1]).right-m)||1;d=Math.max(Math.floor(l*g/y),d)}for(s&&(a=h.splice(0,1)[0]),c&&(o=h.splice(-1,1)[0],h.reverse()),f(h);dg+p;x-=p){var O=b(x);if("object"==typeof O)return O.value}}}],["wrap",function(t,e,n,i){var a,o,l=e.wordWrapWidth,s=void 0===l?50:l,c=e.maxLines,u=void 0===c?3:c,f=e.recoverWhenFailed,d=e.margin,h=void 0===d?[0,0,0,0]:d,p=t.map(function(t){return t.attr("maxLines")||1}),g=Math.min.apply(Math,(0,r.ev)([],(0,r.CR)(p),!1)),m=(a=n.type,o=n.labelDirection,"linear"===a&&L(n)?"negative"===o?"bottom":"top":"middle"),y=function(e){return t.forEach(function(t,n){var r=Array.isArray(e)?e[n]:e;i.wrap(t,s,r,m)})};if(!(g>u)){for(var v=g;v<=u;v++)if(y(v),K(t,n,h).length<1)return;(void 0===f||f)&&y(p)}}]]);function tr(t){for(var e=t;e<0;)e+=360;return Math.round(e%360)}function ti(t,e){var n=(0,r.CR)(t,2),i=n[0],a=n[1],o=(0,r.CR)(e,2),l=o[0],s=o[1],c=(0,r.CR)([i*l+a*s,i*s-a*l],2),u=c[0];return Math.atan2(c[1],u)}function ta(t,e,n){var r=n.type,i=n.labelAlign,a=R(t,n),o=tr(e),l=tr(d(ti([1,0],a))),s="center",c="middle";return"linear"===r?[90,270].includes(l)&&0===o?(s="center",c=1===a[1]?"top":"bottom"):!(l%180)&&[90,270].includes(o)?s="center":0===l?N(o,0,90,!1,!0)?s="start":(N(o,0,90)||N(o,270,360))&&(s="start"):90===l?N(o,0,90,!1,!0)?s="start":(N(o,90,180)||N(o,270,360))&&(s="end"):270===l?N(o,0,90,!1,!0)?s="end":(N(o,90,180)||N(o,270,360))&&(s="start"):180===l&&(90===o?s="start":(N(o,0,90)||N(o,270,360))&&(s="end")):"parallel"===i?c=N(l,0,180,!0)?"top":"bottom":"horizontal"===i?N(l,90,270,!1)?s="end":(N(l,270,360,!1)||N(l,0,90))&&(s="start"):"perpendicular"===i&&(s=N(l,90,270)?"end":"start"),{textAlign:s,textBaseline:c}}function to(t,e,n){var i=n.showTick,a=n.tickLength,o=n.tickDirection,l=n.labelDirection,s=n.labelSpacing,c=e.indexOf(t),f=(0,p.S)(s,[t,c,e]),d=(0,r.CR)([R(t.value,n),function(){for(var t=[],e=0;e1))||null==a||a(e,r,t,n)})}function tc(t,e,n,i,a){var o,u=n.indexOf(e),f=(0,l.Ys)(t).append((o=a.labelFormatter,(0,c.Z)(o)?function(){return(0,k.S)((0,p.S)(o,[e,u,n,R(e.value,a)]))}:function(){return(0,k.S)(e.label||"")})).attr("className",s.Ec.labelItem.name).node(),g=(0,r.CR)((0,h.Hm)(M(i,[e,u,n])),2),m=g[0],y=g[1],v=y.transform,b=(0,r._T)(y,["transform"]);W(f,v);var x=function(t,e,n){var r,i,a=n.labelAlign;if(null===(i=e.style.transform)||void 0===i?void 0:i.includes("rotate"))return e.getLocalEulerAngles();var o=0,l=R(t.value,n),s=E(t.value,n);return"horizontal"===a?0:(N(r=(d(o="perpendicular"===a?ti([1,0],l):ti([s[0]<0?-1:1,0],s))+360)%180,-90,90)||(r+=180),r)}(e,f,a);return f.getLocalEulerAngles()||f.setLocalEulerAngles(x),tl(f,(0,r.pi)((0,r.pi)({},ta(e.value,x,a)),m)),t.attr(b),f}function tu(t,e){return P(t,e.tickDirection,e)}function tf(t,e,n,a,o,u){var f,d,g,m,y,v,b,x,O,w,_,k,C,j,S,A,E,P,R,L,B,Z=(f=(0,l.Ys)(this),d=a.tickFormatter,g=tu(t.value,a),m="line",(0,c.Z)(d)&&(m=function(){return(0,p.S)(d,[t,e,n,g])}),f.append(m).attr("className",s.Ec.tickItem.name));y=tu(t.value,a),v=a.tickLength,O=(0,r.CR)((b=(0,p.S)(v,[t,e,n]),[[0,0],[(x=(0,r.CR)(y,2))[0]*b,x[1]*b]]),2),_=(w=(0,r.CR)(O[0],2))[0],k=w[1],S=(j={x1:_,x2:(C=(0,r.CR)(O[1],2))[0],y1:k,y2:C[1]}).x1,A=j.x2,E=j.y1,P=j.y2,L=(R=(0,r.CR)((0,h.Hm)(M(o,[t,e,n,y])),2))[0],B=R[1],"line"===Z.node().nodeName&&Z.styles((0,r.pi)({x1:S,x2:A,y1:E,y2:P},L)),this.attr(B),Z.styles(L);var I=(0,r.CR)(T(t.value,a),2),D=I[0],N=I[1];return(0,i.eR)(this,{transform:"translate(".concat(D,", ").concat(N,")")},u)}var td=n(1366);function th(t,e,n,a,o){var c=(0,h.zs)(a,"title"),f=(0,r.CR)((0,h.Hm)(c),2),d=f[0],p=f[1],g=p.transform,m=p.transformOrigin,y=(0,r._T)(p,["transform","transformOrigin"]);e.styles(y);var v=g||function(t,e,n){var r=2*t.getGeometryBounds().halfExtents[1];if("vertical"===e){if("left"===n)return"rotate(-90) translate(0, ".concat(r/2,")");if("right"===n)return"rotate(-90) translate(0, -".concat(r/2,")")}return""}(t.node(),d.direction,d.position);t.styles((0,r.pi)((0,r.pi)({},d),{transformOrigin:m})),W(t.node(),v);var b=function(t,e,n){var i=n.titlePosition,a=void 0===i?"lb":i,o=n.titleSpacing,l=(0,td.li)(a),s=t.node().getLocalBounds(),c=(0,r.CR)(s.min,2),f=c[0],d=c[1],h=(0,r.CR)(s.halfExtents,2),p=h[0],g=h[1],m=(0,r.CR)(e.node().getLocalBounds().halfExtents,2),y=m[0],v=m[1],b=(0,r.CR)([f+p,d+g],2),x=b[0],O=b[1],w=(0,r.CR)((0,Y.j)(o),4),_=w[0],k=w[1],C=w[2],j=w[3];if(["start","end"].includes(a)&&"linear"===n.type){var M=n.startPos,S=n.endPos,A=(0,r.CR)("start"===a?[M,S]:[S,M],2),E=A[0],P=A[1],R=(0,u.Fv)([-P[0]+E[0],-P[1]+E[1]]),T=(0,r.CR)((0,u.bA)(R,_),2),L=T[0],B=T[1];return{x:E[0]+L,y:E[1]+B}}return l.includes("t")&&(O-=g+v+_),l.includes("r")&&(x+=p+y+k),l.includes("l")&&(x-=p+y+j),l.includes("b")&&(O+=g+v+C),{x:x,y:O}}((0,l.Ys)(n._offscreen||n.querySelector(s.Ec.mainGroup.class)),e,a),x=b.x,O=b.y;return(0,i.eR)(e.node(),{transform:"translate(".concat(x,", ").concat(O,")")},o)}function tp(t,e,n,a){var c=t.showLine,u=t.showTick,f=t.showLabel,d=e.maybeAppendByClassName(s.Ec.lineGroup,"g"),p=(0,o.z)(c,d,function(e){var n,o,l,c,u,f,d,p,g,m,y;return n=e,o=t,l=a,m=o.type,y=(0,h.zs)(o,"line"),"linear"===m?g=function(t,e,n,a){var o,l,c,u,f,d,h,p,g,m,y,v,b,x,O,w,_,k,C=e.showTrunc,j=e.startPos,M=e.endPos,S=e.truncRange,A=e.lineExtension,E=(0,r.CR)([j,M],2),P=(0,r.CR)(E[0],2),R=P[0],T=P[1],L=(0,r.CR)(E[1],2),B=L[0],Z=L[1],D=(0,r.CR)(A?(void 0===(o=A)&&(o=[0,0]),l=(0,r.CR)([j,M,o],3),u=(c=(0,r.CR)(l[0],2))[0],f=c[1],h=(d=(0,r.CR)(l[1],2))[0],p=d[1],m=(g=(0,r.CR)(l[2],2))[0],y=g[1],O=Math.sqrt(Math.pow(b=(v=(0,r.CR)([h-u,p-f],2))[0],2)+Math.pow(x=v[1],2)),[(_=(w=(0,r.CR)([-m/O,y/O],2))[0])*b,_*x,(k=w[1])*b,k*x]):[,,,,].fill(0),4),N=D[0],z=D[1],F=D[2],$=D[3],W=function(e){return t.selectAll(s.Ec.line.class).data(e,function(t,e){return e}).join(function(t){return t.append("line").attr("className",function(t){return"".concat(s.Ec.line.name," ").concat(t.className)}).styles(n).transition(function(t){return(0,i.eR)(this,I(t.line),!1)})},function(t){return t.styles(n).transition(function(t){var e=t.line;return(0,i.eR)(this,I(e),a.update)})},function(t){return t.remove()}).transitions()};if(!C||!S)return W([{line:[[R+N,T+z],[B+F,Z+$]],className:s.Ec.line.name}]);var H=(0,r.CR)(S,2),G=H[0],q=H[1],Y=B-R,V=Z-T,U=(0,r.CR)([R+Y*G,T+V*G],2),Q=U[0],X=U[1],K=(0,r.CR)([R+Y*q,T+V*q],2),J=K[0],tt=K[1],te=W([{line:[[R+N,T+z],[Q,X]],className:s.Ec.lineFirst.name},{line:[[J,tt],[B+F,Z+$]],className:s.Ec.lineSecond.name}]);return e.truncRange,e.truncShape,e.lineExtension,te}(n,o,j(y,"arrow"),l):(c=j(y,"arrow"),u=o.startAngle,f=o.endAngle,d=o.center,p=o.radius,g=n.selectAll(s.Ec.line.class).data([{d:Z.apply(void 0,(0,r.ev)((0,r.ev)([u,f],(0,r.CR)(d),!1),[p],!1))}],function(t,e){return e}).join(function(t){return t.append("path").attr("className",s.Ec.line.name).styles(o).styles({d:function(t){return t.d}})},function(t){return t.transition(function(){var t,e,n,i,a,o=this,s=function(t,e,n,i){if(!i)return t.attr("__keyframe_data__",n),null;var a=i.duration,o=function t(e,n){var i,a,o,l,s,c;return"number"==typeof e&&"number"==typeof n?function(t){return e*(1-t)+n*t}:Array.isArray(e)&&Array.isArray(n)?(i=n?n.length:0,a=e?Math.min(i,e.length):0,function(r){var o=Array(a),l=Array(i),s=0;for(s=0;sx[0])||!(ei&&(i=p),g>o&&(o=g)}return new a.b(e,n,i-e,o-n)}var l=function(t,e,n){var i=t.width,l=t.height,s=n.flexDirection,c=void 0===s?"row":s,u=(n.flexWrap,n.justifyContent),f=void 0===u?"flex-start":u,d=(n.alignContent,n.alignItems),h=void 0===d?"flex-start":d,p="row"===c,g="row"===c||"column"===c,m=p?g?[1,0]:[-1,0]:g?[0,1]:[0,-1],y=(0,r.CR)([0,0],2),v=y[0],b=y[1],x=e.map(function(t){var e,n=t.width,i=t.height,o=(0,r.CR)([v,b],2),l=o[0],s=o[1];return v=(e=(0,r.CR)([v+n*m[0],b+i*m[1]],2))[0],b=e[1],new a.b(l,s,n,i)}),O=o(x),w={"flex-start":0,"flex-end":p?i-O.width:l-O.height,center:p?(i-O.width)/2:(l-O.height)/2},_=x.map(function(t){var e=t.x,n=t.y,r=a.b.fromRect(t);return r.x=p?e+w[f]:e,r.y=p?n:n+w[f],r});o(_);var k=function(t){var e=(0,r.CR)(p?["height",l]:["width",i],2),n=e[0],a=e[1];switch(h){case"flex-start":default:return 0;case"flex-end":return a-t[n];case"center":return a/2-t[n]/2}};return _.map(function(t){var e=t.x,n=t.y,r=a.b.fromRect(t);return r.x=p?e:e+k(r),r.y=p?n+k(r):n,r}).map(function(e){var n,r,i=a.b.fromRect(e);return i.x+=null!==(n=t.x)&&void 0!==n?n:0,i.y+=null!==(r=t.y)&&void 0!==r?r:0,i})},s=function(t,e,n){return[]},c=function(t,e,n){if(0===e.length)return[];var r={flex:l,grid:s},i=n.display in r?r[n.display]:null;return(null==i?void 0:i.call(null,t,e,n))||[]},u=n(62191),f=function(t){function e(e){var n=t.call(this,e)||this;n.layoutEvents=[i.Dk.BOUNDS_CHANGED,i.Dk.INSERTED,i.Dk.REMOVED],n.$margin=(0,u.j)(0),n.$padding=(0,u.j)(0);var r=e.style||{},a=r.margin,o=r.padding;return n.margin=void 0===a?0:a,n.padding=void 0===o?0:o,n.isMutationObserved=!0,n.bindEvents(),n}return(0,r.ZT)(e,t),Object.defineProperty(e.prototype,"margin",{get:function(){return this.$margin},set:function(t){this.$margin=(0,u.j)(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this.$padding},set:function(t){this.$padding=(0,u.j)(t)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var t=this.attributes,e=t.x,n=void 0===e?0:e,i=t.y,o=void 0===i?0:i,l=t.width,s=t.height,c=(0,r.CR)(this.$margin,4),u=c[0],f=c[1],d=c[2],h=c[3];return new a.b(n-h,o-u,l+h+f,s+u+d)},e.prototype.appendChild=function(e,n){return e.isMutationObserved=!0,t.prototype.appendChild.call(this,e,n),e},e.prototype.getAvailableSpace=function(){var t=this.attributes,e=t.width,n=t.height,i=(0,r.CR)(this.$padding,4),o=i[0],l=i[1],s=i[2],c=i[3],u=(0,r.CR)(this.$margin,4),f=u[0],d=u[3];return new a.b(c+d,o+f,e-c-l,n-o-s)},e.prototype.layout=function(){if(this.attributes.display&&this.isConnected&&!this.children.some(function(t){return!t.isConnected}))try{var t=this.attributes,e=t.x,n=t.y;this.style.transform="translate(".concat(e,", ").concat(n,")");var r=c(this.getAvailableSpace(),this.children.map(function(t){return t.getBBox()}),this.attributes);this.children.forEach(function(t,e){var n=r[e],i=n.x,a=n.y;t.style.transform="translate(".concat(i,", ").concat(a,")")})}catch(t){}},e.prototype.bindEvents=function(){var t=this;this.layoutEvents.forEach(function(e){t.addEventListener(e,function(e){e.target.isMutationObserved=!0,t.layout()})})},e.prototype.attributeChangedCallback=function(t,e,n){"margin"===t?this.margin=n:"padding"===t&&(this.padding=n),this.layout()},e}(i.ZA)},45130:function(t,e,n){"use strict";n.d(e,{W:function(){return Z}});var r=n(97582),i=n(5951),a=n(33016),o=n(54015),l=n(43629),s=n(1366),c=n(1242),u=n(13279),f=n(17829),d=n(79274),h=n(86650),p=n(8126),g=n(81957),m=n(68040),y=n(45631),v=n(62059),b=n(19712),x=n(56546),O=(0,d.A)({prevBtnGroup:"prev-btn-group",prevBtn:"prev-btn",nextBtnGroup:"next-btn-group",nextBtn:"next-btn",pageInfoGroup:"page-info-group",pageInfo:"page-info",playWindow:"play-window",contentGroup:"content-group",controller:"controller",clipPath:"clip-path"},"navigator"),w=function(t){function e(e){var n=t.call(this,e,{x:0,y:0,animate:{easing:"linear",duration:200,fill:"both"},buttonCursor:"pointer",buttonFill:"black",buttonD:(0,x.LI)(0,0,6),buttonSize:12,controllerPadding:5,controllerSpacing:5,formatter:function(t,e){return"".concat(t,"/").concat(e)},defaultPage:0,loop:!1,orientation:"horizontal",pageNumFill:"black",pageNumFontSize:12,pageNumTextAlign:"start",pageNumTextBaseline:"middle"})||this;return n.playState="idle",n.contentGroup=n.appendChild(new c.ZA({class:O.contentGroup.name})),n.playWindow=n.contentGroup.appendChild(new c.ZA({class:O.playWindow.name})),n.innerCurrPage=n.defaultPage,n}return(0,r.ZT)(e,t),Object.defineProperty(e.prototype,"defaultPage",{get:function(){var t=this.attributes.defaultPage;return(0,g.Z)(t,0,Math.max(this.pageViews.length-1,0))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageViews",{get:function(){return this.playWindow.children},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"controllerShape",{get:function(){return this.totalPages>1?{width:55,height:0}:{width:0,height:0}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageShape",{get:function(){var t,e,n=this.pageViews,i=(0,r.CR)(((null===(e=(t=n.map(function(t){var e=t.getBBox();return[e.width,e.height]}))[0])||void 0===e?void 0:e.map(function(e,n){return t.map(function(t){return t[n]})}))||[]).map(function(t){return Math.max.apply(Math,(0,r.ev)([],(0,r.CR)(t),!1))}),2),a=i[0],o=i[1],l=this.attributes,s=l.pageWidth,c=l.pageHeight;return{pageWidth:void 0===s?a:s,pageHeight:void 0===c?o:c}},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.playWindow},Object.defineProperty(e.prototype,"totalPages",{get:function(){return this.pageViews.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currPage",{get:function(){return this.innerCurrPage},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var e=t.prototype.getBBox.call(this),n=e.x,r=e.y,i=this.controllerShape,a=this.pageShape,o=a.pageWidth,s=a.pageHeight;return new l.b(n,r,o+i.width,s)},e.prototype.goTo=function(t){var e=this,n=this.attributes.animate,i=this.currPage,a=this.playState,o=this.playWindow,l=this.pageViews;if("idle"!==a||t<0||l.length<=0||t>=l.length)return null;l[i].setLocalPosition(0,0),this.prepareFollowingPage(t);var s=(0,r.CR)(this.getFollowingPageDiff(t),2),c=s[0],u=s[1];this.playState="running";var f=(0,y.jt)(o,[{transform:"translate(0, 0)"},{transform:"translate(".concat(-c,", ").concat(-u,")")}],n);return(0,y.Yq)(f,function(){e.innerCurrPage=t,e.playState="idle",e.setVisiblePages([t]),e.updatePageInfo()}),f},e.prototype.prev=function(){var t=this.attributes.loop,e=this.pageViews.length,n=this.currPage;if(!t&&n<=0)return null;var r=t?(n-1+e)%e:(0,g.Z)(n-1,0,e);return this.goTo(r)},e.prototype.next=function(){var t=this.attributes.loop,e=this.pageViews.length,n=this.currPage;if(!t&&n>=e-1)return null;var r=t?(n+1)%e:(0,g.Z)(n+1,0,e);return this.goTo(r)},e.prototype.renderClipPath=function(t){var e=this.pageShape,n=e.pageWidth,r=e.pageHeight;if(!n||!r){this.contentGroup.style.clipPath=void 0;return}this.clipPath=t.maybeAppendByClassName(O.clipPath,"rect").styles({width:n,height:r}),this.contentGroup.attr("clipPath",this.clipPath.node())},e.prototype.setVisiblePages=function(t){this.playWindow.children.forEach(function(e,n){t.includes(n)?(0,v.$Z)(e):(0,v.Cp)(e)})},e.prototype.adjustControllerLayout=function(){var t=this.prevBtnGroup,e=this.nextBtnGroup,n=this.pageInfoGroup,i=this.attributes,a=i.orientation,o=i.controllerPadding,l=n.getBBox(),s=l.width;l.height;var c=(0,r.CR)("horizontal"===a?[-180,0]:[-90,90],2),u=c[0],f=c[1];t.setLocalEulerAngles(u),e.setLocalEulerAngles(f);var d=t.getBBox(),h=d.width,p=d.height,g=e.getBBox(),m=g.width,y=g.height,v=Math.max(h,s,m),b="horizontal"===a?{offset:[[0,0],[h/2+o,0],[h+s+2*o,0]],textAlign:"start"}:{offset:[[v/2,-p-o],[v/2,0],[v/2,y+o]],textAlign:"center"},x=(0,r.CR)(b.offset,3),O=(0,r.CR)(x[0],2),w=O[0],_=O[1],k=(0,r.CR)(x[1],2),C=k[0],j=k[1],M=(0,r.CR)(x[2],2),S=M[0],A=M[1],E=b.textAlign,P=n.querySelector("text");P&&(P.style.textAlign=E),t.setLocalPosition(w,_),n.setLocalPosition(C,j),e.setLocalPosition(S,A)},e.prototype.updatePageInfo=function(){var t,e=this.currPage,n=this.pageViews,r=this.attributes.formatter;n.length<2||(null===(t=this.pageInfoGroup.querySelector(O.pageInfo.class))||void 0===t||t.attr("text",r(e+1,n.length)),this.adjustControllerLayout())},e.prototype.getFollowingPageDiff=function(t){var e=this.currPage;if(e===t)return[0,0];var n=this.attributes.orientation,r=this.pageShape,i=r.pageWidth,a=r.pageHeight,o=t=2,c=t.maybeAppendByClassName(O.controller,"g");if((0,v.WD)(c.node(),s),s){var u=(0,a.zs)(this.attributes,"button"),f=(0,a.zs)(this.attributes,"pageNum"),d=(0,r.CR)((0,a.Hm)(u),2),h=d[0],p=d[1],g=h.size,m=(0,r._T)(h,["size"]),y=!c.select(O.prevBtnGroup.class).node(),x=c.maybeAppendByClassName(O.prevBtnGroup,"g").styles(p);this.prevBtnGroup=x.node();var w=x.maybeAppendByClassName(O.prevBtn,"path"),_=c.maybeAppendByClassName(O.nextBtnGroup,"g").styles(p);this.nextBtnGroup=_.node(),[w,_.maybeAppendByClassName(O.nextBtn,"path")].forEach(function(t){t.styles((0,r.pi)((0,r.pi)({},m),{transformOrigin:"center"})),(0,b.b)(t.node(),g,!0)});var k=c.maybeAppendByClassName(O.pageInfoGroup,"g");this.pageInfoGroup=k.node(),k.maybeAppendByClassName(O.pageInfo,"text").styles(f),this.updatePageInfo(),c.node().setLocalPosition(o+n,l/2),y&&(this.prevBtnGroup.addEventListener("click",function(){e.prev()}),this.nextBtnGroup.addEventListener("click",function(){e.next()}))}},e.prototype.render=function(t,e){var n=t.x,r=t.y,i=void 0===r?0:r;this.attr("transform","translate(".concat(void 0===n?0:n,", ").concat(i,")"));var a=(0,o.Ys)(e);this.renderClipPath(a),this.renderController(a),this.setVisiblePages([this.defaultPage]),this.goTo(this.defaultPage)},e.prototype.bindEvents=function(){var t=this,e=(0,m.Z)(function(){return t.render(t.attributes,t)},50);this.playWindow.addEventListener(c.Dk.INSERTED,e),this.playWindow.addEventListener(c.Dk.REMOVED,e)},e}(i.w),_=n(52644),k=n(86224),C=n(62191),j=n(47772),M=n(39639),S=n(75494),A=n(83186),E=(0,d.A)({layout:"flex",markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label",valueGroup:"value-group",value:"value",backgroundGroup:"background-group",background:"background"},"legend-category-item"),P=function(t){function e(e){return t.call(this,e,{span:[1,1],marker:function(){return new c.Cd({style:{r:6}})},markerSize:10,labelFill:"#646464",valueFill:"#646464",labelFontSize:12,valueFontSize:12,labelTextBaseline:"middle",valueTextBaseline:"middle"})||this}return(0,r.ZT)(e,t),Object.defineProperty(e.prototype,"showValue",{get:function(){var t=this.attributes.valueText;return!!t&&("string"==typeof t||"number"==typeof t?""!==t:"function"==typeof t||""!==t.attr("text"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"actualSpace",{get:function(){var t=this.labelGroup,e=this.valueGroup,n=this.attributes.markerSize,r=t.node().getBBox(),i=r.width,a=r.height,o=e.node().getBBox();return{markerWidth:n,labelWidth:i,valueWidth:o.width,height:Math.max(n,a,o.height)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"span",{get:function(){var t=this.attributes.span;if(!t)return[1,1];var e=(0,r.CR)((0,C.j)(t),2),n=e[0],i=e[1],a=this.showValue?i:0,o=n+a;return[n/o,a/o]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){var t,e=this.attributes,n=e.markerSize,i=e.width,a=this.actualSpace,o=a.markerWidth,l=a.height,s=this.actualSpace,c=s.labelWidth,u=s.valueWidth,f=(0,r.CR)(this.spacing,2),d=f[0],h=f[1];if(i){var p=i-n-d-h,g=(0,r.CR)(this.span,2),m=g[0],y=g[1];c=(t=(0,r.CR)([m*p,y*p],2))[0],u=t[1]}return{width:o+c+u+d+h,height:l,markerWidth:o,labelWidth:c,valueWidth:u}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"spacing",{get:function(){var t=this.attributes.spacing;if(!t)return[0,0];var e=(0,r.CR)((0,C.j)(t),2),n=e[0],i=e[1];return this.showValue?[n,i]:[n,0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){var t=this.shape,e=t.markerWidth,n=t.labelWidth,i=t.valueWidth,a=t.width,o=t.height,l=(0,r.CR)(this.spacing,2),s=l[0];return{height:o,width:a,markerWidth:e,labelWidth:n,valueWidth:i,position:[e/2,e+s,e+n+s+l[1]]}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleSize",{get:function(){var t,e=(t=this.markerGroup.node().querySelector(E.marker.class))?t.style:{},n=this.attributes,r=n.markerSize,i=n.markerStrokeWidth,a=void 0===i?e.strokeWidth:i,o=n.markerLineWidth,l=void 0===o?e.lineWidth:o,s=n.markerStroke,c=void 0===s?e.stroke:s,u=+(a||l||(c?1:0))*Math.sqrt(2),f=this.markerGroup.node().getBBox();return(1-u/Math.max(f.width,f.height))*r},enumerable:!1,configurable:!0}),e.prototype.renderMarker=function(t){var e=this,n=this.attributes.marker,i=(0,a.zs)(this.attributes,"marker");this.markerGroup=t.maybeAppendByClassName(E.markerGroup,"g").style("zIndex",0),(0,j.z)(!!n,this.markerGroup,function(){var t,a=e.markerGroup.node(),l=null===(t=a.childNodes)||void 0===t?void 0:t[0],s="string"==typeof n?new k.J({style:{symbol:n},className:E.marker.name}):n();l?s.nodeName===l.nodeName?l instanceof k.J?l.update((0,r.pi)((0,r.pi)({},i),{symbol:n})):((0,M.DM)(l,s),(0,o.Ys)(l).styles(i)):(l.remove(),(0,o.Ys)(s).attr("className",E.marker.name).styles(i),a.appendChild(s)):(s instanceof k.J||(0,o.Ys)(s).attr("className",E.marker.name).styles(i),a.appendChild(s)),e.markerGroup.node().scale(1/e.markerGroup.node().getScale()[0]);var c=(0,b.b)(e.markerGroup.node(),e.scaleSize,!0);e.markerGroup.node().style._transform="scale(".concat(c,")")})},e.prototype.renderLabel=function(t){var e=(0,a.zs)(this.attributes,"label"),n=e.text,i=(0,r._T)(e,["text"]);this.labelGroup=t.maybeAppendByClassName(E.labelGroup,"g").style("zIndex",0),this.labelGroup.maybeAppendByClassName(E.label,function(){return(0,S.S)(n)}).styles(i)},e.prototype.renderValue=function(t){var e=this,n=(0,a.zs)(this.attributes,"value"),i=n.text,o=(0,r._T)(n,["text"]);this.valueGroup=t.maybeAppendByClassName(E.valueGroup,"g").style("zIndex",0),(0,j.z)(this.showValue,this.valueGroup,function(){e.valueGroup.maybeAppendByClassName(E.value,function(){return(0,S.S)(i)}).styles(o)})},e.prototype.renderBackground=function(t){var e=this.shape,n=e.width,i=e.height,o=(0,a.zs)(this.attributes,"background");this.background=t.maybeAppendByClassName(E.backgroundGroup,"g").style("zIndex",-1),this.background.maybeAppendByClassName(E.background,"rect").styles((0,r.pi)({width:n,height:i},o))},e.prototype.adjustLayout=function(){var t=this.layout,e=t.labelWidth,n=t.valueWidth,i=t.height,a=(0,r.CR)(t.position,3),o=a[0],l=a[1],s=a[2],c=i/2;this.markerGroup.styles({transform:"translate(".concat(o,", ").concat(c,")").concat(this.markerGroup.node().style._transform)}),this.labelGroup.styles({transform:"translate(".concat(l,", ").concat(c,")")}),(0,A.O)(this.labelGroup.select(E.label.class).node(),Math.ceil(e)),this.showValue&&(this.valueGroup.styles({transform:"translate(".concat(s,", ").concat(c,")")}),(0,A.O)(this.valueGroup.select(E.value.class).node(),Math.ceil(n)))},e.prototype.render=function(t,e){var n=(0,o.Ys)(e),r=t.x,i=t.y,a=void 0===i?0:i;n.styles({transform:"translate(".concat(void 0===r?0:r,", ").concat(a,")")}),this.renderMarker(n),this.renderLabel(n),this.renderValue(n),this.renderBackground(n),this.adjustLayout()},e}(i.w),R=(0,d.A)({page:"item-page",navigator:"navigator",item:"item"},"items"),T=function(t,e,n){return(void 0===n&&(n=!0),t)?e(t):n},L=function(t){function e(e){var n=t.call(this,e,{data:[],gridRow:1/0,gridCol:void 0,padding:0,width:1e3,height:100,rowPadding:0,colPadding:0,layout:"flex",orientation:"horizontal",click:u.Z,mouseenter:u.Z,mouseleave:u.Z})||this;return n.navigatorShape=[0,0],n}return(0,r.ZT)(e,t),Object.defineProperty(e.prototype,"pageViews",{get:function(){return this.navigator.getContainer()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){var t=this.attributes,e=t.gridRow,n=t.gridCol,r=t.data;if(!e&&!n)throw Error("gridRow and gridCol can not be set null at the same time");return e&&n?[e,n]:e?[e,r.length]:[r.length,n]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderData",{get:function(){var t=this.attributes,e=t.data,n=t.layout,i=(0,a.zs)(this.attributes,"item");return e.map(function(t,a){var o=t.id,l=void 0===o?a:o,s=t.label,c=t.value;return{id:"".concat(l),index:a,style:(0,r.pi)({layout:n,labelText:s,valueText:c},Object.fromEntries(Object.entries(i).map(function(n){var i=(0,r.CR)(n,2),o=i[0],l=i[1];return[o,(0,h.S)(l,[t,a,e])]})))}})},enumerable:!1,configurable:!0}),e.prototype.getGridLayout=function(){var t=this,e=this.attributes,n=e.orientation,i=e.width,a=e.rowPadding,o=e.colPadding,l=(0,r.CR)(this.navigatorShape,1)[0],s=(0,r.CR)(this.grid,2),c=s[0],u=s[1],f=u*c,d=0;return this.pageViews.children.map(function(e,s){var h,p,g=Math.floor(s/f),m=s%f,y=t.ifHorizontal(u,c),v=[Math.floor(m/y),m%y];"vertical"===n&&v.reverse();var b=(0,r.CR)(v,2),x=b[0],O=b[1],w=(i-l-(u-1)*o)/u,_=e.getBBox().height,k=(0,r.CR)([0,0],2),C=k[0],j=k[1];return"horizontal"===n?(C=(h=(0,r.CR)([d,x*(_+a)],2))[0],j=h[1],d=O===u-1?0:d+w+o):(C=(p=(0,r.CR)([O*(w+o),d],2))[0],j=p[1],d=x===c-1?0:d+_+a),{page:g,index:s,row:x,col:O,pageIndex:m,width:w,height:_,x:C,y:j}})},e.prototype.getFlexLayout=function(){var t=this.attributes,e=t.width,n=t.height,i=t.rowPadding,a=t.colPadding,o=(0,r.CR)(this.navigatorShape,1)[0],l=(0,r.CR)(this.grid,2),s=l[0],c=l[1],u=(0,r.CR)([e-o,n],2),f=u[0],d=u[1],h=(0,r.CR)([0,0,0,0,0,0,0,0],8),p=h[0],g=h[1],m=h[2],y=h[3],v=h[4],b=h[5],x=h[6],O=h[7];return this.pageViews.children.map(function(t,e){var n,o,l,u,h=t.getBBox(),w=h.width,_=h.height,k=0===x?0:a,C=x+k+w;return C<=f&&T(v,function(t){return t0?(this.navigatorShape=[55,0],t.call(this)):e},enumerable:!1,configurable:!0}),e.prototype.ifHorizontal=function(t,e){var n=this.attributes.orientation;return(0,_._h)(n,t,e)},e.prototype.flattenPage=function(t){t.querySelectorAll(R.item.class).forEach(function(e){t.appendChild(e)}),t.querySelectorAll(R.page.class).forEach(function(e){t.removeChild(e).destroy()})},e.prototype.renderItems=function(t){var e=this.attributes,n=e.click,r=e.mouseenter,i=e.mouseleave;this.flattenPage(t);var a=this.dispatchCustomEvent.bind(this);(0,o.Ys)(t).selectAll(R.item.class).data(this.renderData,function(t){return t.id}).join(function(t){return t.append(function(t){var e=t.style;return new P({style:e})}).attr("className",R.item.name).on("click",function(){null==n||n(this),a("itemClick",{item:this})}).on("pointerenter",function(){null==r||r(this),a("itemMouseenter",{item:this})}).on("pointerleave",function(){null==i||i(this),a("itemMouseleave",{item:this})})},function(t){return t.each(function(t){var e=t.style;this.update(e)})},function(t){return t.remove()})},e.prototype.relayoutNavigator=function(){var t,e=this.attributes,n=e.layout,i=e.width,a=(null===(t=this.pageViews.children[0])||void 0===t?void 0:t.getBBox().height)||0,o=(0,r.CR)(this.navigatorShape,2),l=o[0],s=o[1];this.navigator.update("grid"===n?{pageWidth:i-l,pageHeight:a-s}:{})},e.prototype.adjustLayout=function(){var t,e,n=this,i=Object.entries((t=this.itemsLayout,e="page",t.reduce(function(t,n){return(t[n[e]]=t[n[e]]||[]).push(n),t},{}))).map(function(t){var e=(0,r.CR)(t,2);return{page:e[0],layouts:e[1]}}),a=(0,r.ev)([],(0,r.CR)(this.navigator.getContainer().children),!1);i.forEach(function(t){var e=t.layouts,r=n.pageViews.appendChild(new c.ZA({className:R.page.name}));e.forEach(function(t){var e=t.x,n=t.y,i=t.index,o=t.width,l=t.height,s=a[i];r.appendChild(s),(0,f.Z)(s,"__layout__",t),s.update({x:e,y:n,width:o,height:l})})}),this.relayoutNavigator()},e.prototype.renderNavigator=function(t){var e=this.attributes.orientation,n=(0,a.zs)(this.attributes,"nav"),r=(0,p.n)({orientation:e},n),i=this;return t.selectAll(R.navigator.class).data(["nav"]).join(function(t){return t.append(function(){return new w({style:r})}).attr("className",R.navigator.name).each(function(){i.navigator=this})},function(t){return t.each(function(){this.update(r)})},function(t){return t.remove()}),this.navigator},e.prototype.getBBox=function(){return this.navigator.getBBox()},e.prototype.render=function(t,e){var n=this.attributes.data;if(n&&0!==n.length){var r=this.renderNavigator((0,o.Ys)(e));this.renderItems(r.getContainer()),this.adjustLayout()}},e.prototype.dispatchCustomEvent=function(t,e){var n=new c.Aw(t,{detail:e});this.dispatchEvent(n)},e}(i.w),B=n(47334),Z=function(t){function e(e){return t.call(this,e,B.bD)||this}return(0,r.ZT)(e,t),e.prototype.renderTitle=function(t,e,n){var i=this.attributes,o=i.showTitle,l=i.titleText,c=(0,a.zs)(this.attributes,"title"),u=(0,r.CR)((0,a.Hm)(c),2),f=u[0],d=u[1];this.titleGroup=t.maybeAppendByClassName(B.Ec.titleGroup,"g").styles(d);var h=(0,r.pi)((0,r.pi)({width:e,height:n},f),{text:o?l:""});this.title=this.titleGroup.maybeAppendByClassName(B.Ec.title,function(){return new s.Dx({style:h})}).update(h)},e.prototype.renderItems=function(t,e){var n=e.x,i=e.y,l=e.width,s=e.height,c=(0,a.zs)(this.attributes,"title",!0),u=(0,r.CR)((0,a.Hm)(c),2),f=u[0],d=u[1],h=(0,r.pi)((0,r.pi)({},f),{width:l,height:s,x:0,y:0});this.itemsGroup=t.maybeAppendByClassName(B.Ec.itemsGroup,"g").styles((0,r.pi)((0,r.pi)({},d),{transform:"translate(".concat(n,", ").concat(i,")")}));var p=this;this.itemsGroup.selectAll(B.Ec.items.class).data(["items"]).join(function(t){return t.append(function(){return new L({style:h})}).attr("className",B.Ec.items.name).each(function(){p.items=(0,o.Ys)(this)})},function(t){return t.update(h)},function(t){return t.remove()})},e.prototype.adjustLayout=function(){if(this.attributes.showTitle){var t=this.title.node().getAvailableSpace(),e=t.x,n=t.y;this.itemsGroup.node().style.transform="translate(".concat(e,", ").concat(n,")")}},Object.defineProperty(e.prototype,"availableSpace",{get:function(){var t=this.attributes,e=t.showTitle,n=t.width,r=t.height;return e?this.title.node().getAvailableSpace():new l.b(0,0,n,r)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var e,n,r=null===(e=this.title)||void 0===e?void 0:e.node(),i=null===(n=this.items)||void 0===n?void 0:n.node();return r&&i?(0,s.jY)(r,i):t.prototype.getBBox.call(this)},e.prototype.render=function(t,e){var n=this.attributes,r=n.width,i=n.height,a=n.x,l=n.y,s=void 0===l?0:l,c=(0,o.Ys)(e);e.style.transform="translate(".concat(void 0===a?0:a,", ").concat(s,")"),this.renderTitle(c,r,i),this.renderItems(c,this.availableSpace),this.adjustLayout()},e}(i.w)},47334:function(t,e,n){"use strict";n.d(e,{B0:function(){return c},D_:function(){return u},Ec:function(){return f},bD:function(){return s}});var r=n(8126),i=n(33016),a=n(79274),o=n(52774),l={showTitle:!0,padding:0,orientation:"horizontal",backgroundFill:"transparent",titleText:"",titleSpacing:4,titlePosition:"top-left",titleFill:"#2C3542",titleFontWeight:"bold",titleFontFamily:"sans-serif",titleFontSize:12},s=(0,r.n)({},l,{}),c=(0,r.n)({},l,(0,i.dq)(o.x,"handle"),{color:["#d0e3fa","#acc7f6","#8daaf2","#6d8eea","#4d73cd","#325bb1","#5a3e75","#8c3c79","#e23455","#e7655b"],indicatorBackgroundFill:"#262626",indicatorLabelFill:"white",indicatorLabelFontSize:12,indicatorVisibility:"hidden",labelAlign:"value",labelDirection:"positive",labelSpacing:5,showHandle:!0,showIndicator:!0,showLabel:!0,slidable:!0,titleText:"",type:"continuous"}),u=.01,f=(0,a.A)({title:"title",titleGroup:"title-group",items:"items",itemsGroup:"items-group",contentGroup:"content-group",ribbonGroup:"ribbon-group",ribbon:"ribbon",handlesGroup:"handles-group",handle:"handle",startHandle:"start-handle",endHandle:"end-handle",labelGroup:"label-group",label:"label",indicator:"indicator"},"legend")},37948:function(t,e,n){"use strict";n.d(e,{V:function(){return I}});var r=n(97582),i=n(1242),a=n(36380),o=n(81957),l=n(71154),s=n(5951),c=n(43629),u=n(54015),f=n(47772),d=n(33016),h=n(8126),p=n(62059),g=n(48951),m=n(26406),y=n(47537),v=n(61021),b=n(79274),x=n(62191),O=n(75494),w=n(39639),_={backgroundFill:"#262626",backgroundLineCap:"round",backgroundLineWidth:1,backgroundStroke:"#333",backgroundZIndex:-1,formatter:function(t){return t.toString()},labelFill:"#fff",labelFontSize:12,labelTextBaseline:"middle",padding:[2,4],position:"right",radius:0,zIndex:999},k=(0,b.A)({background:"background",labelGroup:"label-group",label:"label"},"indicator"),C=function(t){function e(e){var n=t.call(this,e,_)||this;return n.point=[0,0],n.group=n.appendChild(new i.ZA({})),n.isMutationObserved=!0,n}return(0,r.ZT)(e,t),e.prototype.renderBackground=function(){if(this.label){var t=this.attributes,e=t.position,n=t.padding,i=(0,r.CR)((0,x.j)(n),4),a=i[0],o=i[1],l=i[2],s=i[3],f=this.label.node().getLocalBounds(),h=f.min,p=f.max,g=new c.b(h[0]-s,h[1]-a,p[0]+o-h[0]+s,p[1]+l-h[1]+a),m=this.getPath(e,g),y=(0,d.zs)(this.attributes,"background");this.background=(0,u.Ys)(this.group).maybeAppendByClassName(k.background,"path").styles((0,r.pi)((0,r.pi)({},y),{d:m})),this.group.appendChild(this.label.node())}},e.prototype.renderLabel=function(){var t=this.attributes,e=t.formatter,n=t.labelText,i=(0,d.zs)(this.attributes,"label"),a=(0,r.CR)((0,d.Hm)(i),2),o=a[0],l=a[1],s=(o.text,(0,r._T)(o,["text"]));this.label=(0,u.Ys)(this.group).maybeAppendByClassName(k.labelGroup,"g").styles(l),n&&this.label.maybeAppendByClassName(k.label,function(){return(0,O.S)(e(n))}).style("text",e(n).toString()).selectAll("text").styles(s)},e.prototype.adjustLayout=function(){var t=(0,r.CR)(this.point,2),e=t[0],n=t[1],i=this.attributes,a=i.x,o=i.y;this.group.attr("transform","translate(".concat(a-e,", ").concat(o-n,")"))},e.prototype.getPath=function(t,e){var n=this.attributes.radius,i=e.x,a=e.y,o=e.width,l=e.height,s=[["M",i+n,a],["L",i+o-n,a],["A",n,n,0,0,1,i+o,a+n],["L",i+o,a+l-n],["A",n,n,0,0,1,i+o-n,a+l],["L",i+n,a+l],["A",n,n,0,0,1,i,a+l-n],["L",i,a+n],["A",n,n,0,0,1,i+n,a],["Z"]],c={top:4,right:6,bottom:0,left:2}[t],u=this.createCorner([s[c].slice(-2),s[c+1].slice(-2)]);return s.splice.apply(s,(0,r.ev)([c+1,1],(0,r.CR)(u),!1)),s[0][0]="M",s},e.prototype.createCorner=function(t,e){void 0===e&&(e=10);var n=w.wE.apply(void 0,(0,r.ev)([],(0,r.CR)(t),!1)),i=(0,r.CR)(t,2),a=(0,r.CR)(i[0],2),o=a[0],l=a[1],s=(0,r.CR)(i[1],2),c=s[0],u=s[1],f=(0,r.CR)(n?[c-o,[o,c]]:[u-l,[l,u]],2),d=f[0],h=(0,r.CR)(f[1],2),p=h[0],g=h[1],m=d/2,y=e*(d/Math.abs(d)),v=y/2,b=y*Math.sqrt(3)/2*.8,x=(0,r.CR)([p,p+m-v,p+m,p+m+v,g],5),O=x[0],_=x[1],k=x[2],C=x[3],j=x[4];return n?(this.point=[k,l-b],[["L",O,l],["L",_,l],["L",k,l-b],["L",C,l],["L",j,l]]):(this.point=[o+b,k],[["L",o,O],["L",o,_],["L",o+b,k],["L",o,C],["L",o,j]])},e.prototype.applyVisibility=function(){"hidden"===this.attributes.visibility?(0,p.Cp)(this):(0,p.$Z)(this)},e.prototype.bindEvents=function(){this.label.on(i.Dk.BOUNDS_CHANGED,this.renderBackground)},e.prototype.render=function(){this.renderLabel(),this.renderBackground(),this.adjustLayout(),this.applyVisibility()},e}(s.w),j=n(77687),M=n(1366),S=n(47334),A=n(52774),E=n(45607),P=n(52644);function R(t,e){var n=(0,r.CR)(function(t,e){for(var n=1;n=r&&e<=i)return[r,i]}return[e,e]}(t,e),2),i=n[0],a=n[1];return{tick:e>(i+a)/2?a:i,range:[i,a]}}var T=(0,b.A)({trackGroup:"background-group",track:"background",selectionGroup:"ribbon-group",selection:"ribbon",clipPath:"clip-path"},"ribbon");function L(t){var e=t.orientation,n=t.size,r=t.length;return(0,P._h)(e,[r,n],[n,r])}function B(t){var e=t.type,n=(0,r.CR)(L(t),2),i=n[0],a=n[1];return"size"===e?[["M",0,a],["L",0+i,0],["L",0+i,a],["Z"]]:[["M",0,a],["L",0,0],["L",0+i,0],["L",0+i,a],["Z"]]}var Z=function(t){function e(e){return t.call(this,e,{type:"color",orientation:"horizontal",size:30,range:[0,1],length:200,block:!1,partition:[],color:["#fff","#000"],trackFill:"#e5e5e5"})||this}return(0,r.ZT)(e,t),e.prototype.render=function(t,e){var n,a,o,l,s,c,f,h,p,g,m,y,v,b,x;(function(t,e){var n=(0,d.zs)(e,"track");t.maybeAppendByClassName(T.track,"path").styles((0,r.pi)({d:B(e)},n))})((0,u.Ys)(e).maybeAppendByClassName(T.trackGroup,"g"),t),n=(0,u.Ys)(e).maybeAppendByClassName(T.selectionGroup,"g"),a=(0,d.zs)(t,"selection"),g=(c=t).orientation,m=c.color,y=c.block,v=c.partition,b=(p=(0,E.Z)(m)?Array(20).fill(0).map(function(t,e,n){return m(e/(n.length-1))}):m).length,x=p.map(function(t){return(0,i.lu)(t).toString()}),o=b?1===b?x[0]:y?(f=Array.from(x),Array(h=v.length).fill(0).reduce(function(t,e,n){var r=f[n%f.length];return t+" ".concat(v[n],":").concat(r).concat(ng?Math.max(d-s,0):Math.max((d-s-g)/y,0));var x=Math.max(m,u),O=h-x,w=(0,r.CR)(this.ifHorizontal([O,v],[v,O]),2),_=w[0],k=w[1],C=["top","left"].includes(b)?s:0,j=(0,r.CR)(this.ifHorizontal([x/2,C],[C,x/2]),2),M=j[0],S=j[1];return new c.b(M,S,_,k)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonShape",{get:function(){var t=this.ribbonBBox,e=t.width,n=t.height;return this.ifHorizontal({size:n,length:e},{size:e,length:n})},enumerable:!1,configurable:!0}),e.prototype.renderRibbon=function(t){var e=this.attributes,n=e.data,r=e.type,i=e.orientation,a=e.color,o=e.block,l=(0,d.zs)(this.attributes,"ribbon"),s=this.range,c=s.min,u=s.max,f=this.ribbonBBox,p=f.x,g=f.y,m=this.ribbonShape,y=m.length,v=m.size,b=(0,h.n)({transform:"translate(".concat(p,", ").concat(g,")"),length:y,size:v,type:r,orientation:i,color:a,block:o,partition:n.map(function(t){return(t.value-c)/(u-c)}),range:this.ribbonRange},l);this.ribbon=t.maybeAppendByClassName(S.Ec.ribbon,function(){return new Z({style:b})}).update(b)},e.prototype.getHandleClassName=function(t){return"".concat(S.Ec.prefix("".concat(t,"-handle")))},e.prototype.renderHandles=function(){var t=this.attributes,e=t.showHandle,n=t.orientation,i=(0,d.zs)(this.attributes,"handle"),a=(0,r.CR)(this.selection,2),o=a[0],l=a[1],s=(0,r.pi)((0,r.pi)({},i),{orientation:n}),c=i.shape,u="basic"===(void 0===c?"slider":c)?A.H:j.H,f=this;this.handlesGroup.selectAll(S.Ec.handle.class).data(e?[{value:o,type:"start"},{value:l,type:"end"}]:[],function(t){return t.type}).join(function(t){return t.append(function(){return new u({style:s})}).attr("className",function(t){var e=t.type;return"".concat(S.Ec.handle," ").concat(f.getHandleClassName(e))}).each(function(t){var e=t.type,n=t.value;this.update({labelText:n}),f["".concat(e,"Handle")]=this,this.addEventListener("pointerdown",f.onDragStart(e))})},function(t){return t.update(s).each(function(t){var e=t.value;this.update({labelText:e})})},function(t){return t.each(function(t){var e=t.type;f["".concat(e,"Handle")]=void 0}).remove()})},e.prototype.adjustHandles=function(){var t=(0,r.CR)(this.selection,2),e=t[0],n=t[1];this.setHandlePosition("start",e),this.setHandlePosition("end",n)},Object.defineProperty(e.prototype,"handleBBox",{get:function(){if(this.cacheHandleBBox)return this.cacheHandleBBox;if(!this.attributes.showHandle)return new c.b(0,0,0,0);var t=this.startHandle.getBBox(),e=t.width,n=t.height,i=this.endHandle.getBBox(),a=i.width,o=i.height,l=(0,r.CR)([Math.max(e,a),Math.max(n,o)],2),s=l[0],u=l[1];return this.cacheHandleBBox=new c.b(0,0,s,u),this.cacheHandleBBox},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"handleShape",{get:function(){var t=this.handleBBox,e=t.width,n=t.height,i=(0,r.CR)(this.ifHorizontal([n,e],[e,n]),2),a=i[0],o=i[1];return{width:e,height:n,size:a,length:o}},enumerable:!1,configurable:!0}),e.prototype.setHandlePosition=function(t,e){var n=this.attributes.handleFormatter,i=this.ribbonBBox,a=i.x,o=i.y,l=this.ribbonShape.size,s=this.getOffset(e),c=(0,r.CR)(this.ifHorizontal([a+s,o+l*this.handleOffsetRatio],[a+l*this.handleOffsetRatio,o+s]),2),u=c[0],f=c[1],d=this.handlesGroup.select(".".concat(this.getHandleClassName(t))).node();null==d||d.update({transform:"translate(".concat(u,", ").concat(f,")"),formatter:n})},e.prototype.renderIndicator=function(t){var e=(0,d.zs)(this.attributes,"indicator");this.indicator=t.maybeAppendByClassName(S.Ec.indicator,function(){return new C({})}).update(e)},Object.defineProperty(e.prototype,"labelData",{get:function(){var t=this;return this.attributes.data.reduce(function(e,n,i,a){var o,l,s=null!==(o=null==n?void 0:n.id)&&void 0!==o?o:i.toString();if(e.push((0,r.pi)((0,r.pi)({},n),{id:s,index:i,type:"value",label:null!==(l=null==n?void 0:n.label)&&void 0!==l?l:n.value.toString(),value:t.ribbonScale.map(n.value)})),iy&&(m=(a=(0,r.CR)([y,m],2))[0],y=a[1]),v>s-l)?[l,s]:ms?p===s&&h===m?[m,s]:[s-v,s]:[m,y]}function l(t,e,n){return void 0===t&&(t="horizontal"),"horizontal"===t?e:n}i.J.registerSymbol("hiddenHandle",function(t,e,n){var r=1.4*n;return[["M",t-n,e-r],["L",t+n,e-r],["L",t+n,e+r],["L",t-n,e+r],["Z"]]}),i.J.registerSymbol("verticalHandle",function(t,e,n){var r=1.4*n,i=n/2,a=n/6,o=t+.4*r;return[["M",t,e],["L",o,e+i],["L",t+r,e+i],["L",t+r,e-i],["L",o,e-i],["Z"],["M",o,e+a],["L",t+r-2,e+a],["M",o,e-a],["L",t+r-2,e-a]]}),i.J.registerSymbol("horizontalHandle",function(t,e,n){var r=1.4*n,i=n/2,a=n/6,o=e+.4*r;return[["M",t,e],["L",t-i,o],["L",t-i,e+r],["L",t+i,e+r],["L",t+i,o],["Z"],["M",t-a,o],["L",t-a,e+r-2],["M",t+a,o],["L",t+a,e+r-2]]})},86224:function(t,e,n){"use strict";n.d(e,{J:function(){return f}});var r=n(97582),i=n(45607),a=n(5951),o=n(47772),l=n(54015),s=n(56546),c=n(4637),u=n(76714),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.render=function(t,n){var a,s=t.x,f=void 0===s?0:s,d=t.y,h=void 0===d?0:d,p=this.getSubShapeStyle(t),g=p.symbol,m=p.size,y=void 0===m?16:m,v=(0,r._T)(p,["symbol","size"]),b=["base64","url","image"].includes(a=function(t){var e="default";if((0,c.Z)(t)&&t instanceof Image)e="image";else if((0,i.Z)(t))e="symbol";else if((0,u.Z)(t)){var n=RegExp("data:(image|text)");e=t.match(n)?"base64":/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(t)?"url":"symbol"}return e}(g))?"image":g&&"symbol"===a?"path":null;(0,o.z)(!!b,(0,l.Ys)(n),function(t){t.maybeAppendByClassName("marker",b).attr("className","marker ".concat(b,"-marker")).call(function(t){if("image"===b){var n=2*y;t.styles({img:g,width:n,height:n,x:f-y,y:h-y})}else{var n=y/2,a=(0,i.Z)(g)?g:e.getSymbol(g);t.styles((0,r.pi)({d:null==a?void 0:a(f,h,n)},v))}})})},e.MARKER_SYMBOL_MAP=new Map,e.registerSymbol=function(t,n){e.MARKER_SYMBOL_MAP.set(t,n)},e.getSymbol=function(t){return e.MARKER_SYMBOL_MAP.get(t)},e.getSymbols=function(){return Array.from(e.MARKER_SYMBOL_MAP.keys())},e}(a.w);f.registerSymbol("cross",s.kC),f.registerSymbol("hyphen",s.Zb),f.registerSymbol("line",s.jv),f.registerSymbol("plus",s.PD),f.registerSymbol("tick",s.Ky),f.registerSymbol("circle",s.Xw),f.registerSymbol("point",s.xm),f.registerSymbol("bowtie",s.XF),f.registerSymbol("hexagon",s.bL),f.registerSymbol("square",s.h6),f.registerSymbol("diamond",s.tf),f.registerSymbol("triangle",s.cP),f.registerSymbol("triangle-down",s.MG),f.registerSymbol("line",s.jv),f.registerSymbol("dot",s.AK),f.registerSymbol("dash",s.P2),f.registerSymbol("smooth",s.ip),f.registerSymbol("hv",s.hv),f.registerSymbol("vh",s.vh),f.registerSymbol("hvh",s.t7),f.registerSymbol("vhv",s.sN)},56546:function(t,e,n){"use strict";n.d(e,{AK:function(){return m},Ky:function(){return h},LI:function(){return _},MG:function(){return s},P2:function(){return y},PD:function(){return p},XF:function(){return u},Xw:function(){return r},Zb:function(){return g},bL:function(){return c},cP:function(){return l},h6:function(){return a},hv:function(){return b},ip:function(){return v},jv:function(){return f},kC:function(){return d},sN:function(){return w},t7:function(){return O},tf:function(){return o},vh:function(){return x},xm:function(){return i}});var r=function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]]},i=r,a=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},o=function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},l=function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},s=function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]},c=function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},u=function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},f=function(t,e,n){return[["M",t,e+n],["L",t,e-n]]},d=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},h=function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},p=function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},g=function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},m=function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},y=m,v=function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},b=function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]},x=function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]},O=function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]};function w(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}var _=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e],["L",t-n,e+n],["Z"]]}},53020:function(t,e,n){"use strict";n.d(e,{L:function(){return d}});var r=n(97582),i=n(1242),a=n(81957),o=n(5951),l=n(26406),s=n(62191),c=n(33016),u=n(54015),f=n(6394),d=function(t){function e(e){var n=t.call(this,e,{x:0,y:0,isRound:!0,orientation:"vertical",padding:[2,2,2,2],scrollable:!0,slidable:!0,thumbCursor:"default",trackSize:10,value:0})||this;return n.range=[0,1],n.onValueChange=function(t){var e=n.attributes.value;if(t!==e){var r={detail:{oldValue:t,value:e}};n.dispatchEvent(new i.Aw("scroll",r)),n.dispatchEvent(new i.Aw("valuechange",r))}},n.onTrackClick=function(t){if(n.attributes.slidable){var e=(0,r.CR)(n.getLocalPosition(),2),i=e[0],a=e[1],o=(0,r.CR)(n.padding,4),s=o[0],c=o[3],u=n.getOrientVal([i+c,a+s]),f=(n.getOrientVal((0,l.s)(t))-u)/n.trackLength;n.setValue(f,!0)}},n.onThumbMouseenter=function(t){n.dispatchEvent(new i.Aw("thumbMouseenter",{detail:t.detail}))},n.onTrackMouseenter=function(t){n.dispatchEvent(new i.Aw("trackMouseenter",{detail:t.detail}))},n.onThumbMouseleave=function(t){n.dispatchEvent(new i.Aw("thumbMouseleave",{detail:t.detail}))},n.onTrackMouseleave=function(t){n.dispatchEvent(new i.Aw("trackMouseleave",{detail:t.detail}))},n}return(0,r.ZT)(e,t),Object.defineProperty(e.prototype,"padding",{get:function(){var t=this.attributes.padding;return(0,s.j)(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){var t=this.attributes.value,e=(0,r.CR)(this.range,2),n=e[0],i=e[1];return(0,a.Z)(t,n,i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackLength",{get:function(){var t=this.attributes,e=t.viewportLength,n=t.trackLength;return void 0===n?e:n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableSpace",{get:function(){var t=this.attributes.trackSize,e=this.trackLength,n=(0,r.CR)(this.padding,4),i=n[0],a=n[1],o=n[2],l=n[3],s=(0,r.CR)(this.getOrientVal([[e,t],[t,e]]),2);return{x:l,y:i,width:+s[0]-(l+a),height:+s[1]-(i+o)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackRadius",{get:function(){var t=this.attributes,e=t.isRound,n=t.trackSize;return e?n/2:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"thumbRadius",{get:function(){var t=this.attributes,e=t.isRound,n=t.thumbRadius;if(!e)return 0;var r=this.availableSpace,i=r.width,a=r.height;return n||this.getOrientVal([a,i])/2},enumerable:!1,configurable:!0}),e.prototype.getValues=function(t){void 0===t&&(t=this.value);var e=this.attributes,n=e.viewportLength/e.contentLength,i=(0,r.CR)(this.range,2),a=i[0],o=t*(i[1]-a-n);return[o,o+n]},e.prototype.getValue=function(){return this.value},e.prototype.renderSlider=function(t){var e=this.attributes,n=e.x,i=e.y,a=e.orientation,o=e.trackSize,l=e.padding,s=e.slidable,d=(0,c.zs)(this.attributes,"track"),h=(0,c.zs)(this.attributes,"thumb"),p=(0,r.pi)((0,r.pi)({x:n,y:i,brushable:!1,orientation:a,padding:l,selectionRadius:this.thumbRadius,showHandle:!1,slidable:s,trackLength:this.trackLength,trackRadius:this.trackRadius,trackSize:o,values:this.getValues()},(0,c.dq)(d,"track")),(0,c.dq)(h,"selection"));this.slider=(0,u.Ys)(t).maybeAppendByClassName("scrollbar",function(){return new f.i({style:p})}).update(p).node()},e.prototype.render=function(t,e){this.renderSlider(e)},e.prototype.setValue=function(t,e){void 0===e&&(e=!1);var n=this.attributes.value,i=(0,r.CR)(this.range,2),o=i[0],l=i[1];this.slider.setValues(this.getValues((0,a.Z)(t,o,l)),e),this.onValueChange(n)},e.prototype.bindEvents=function(){var t=this;this.slider.addEventListener("trackClick",function(e){e.stopPropagation(),t.onTrackClick(e.detail)}),this.onHover()},e.prototype.getOrientVal=function(t){return"horizontal"===this.attributes.orientation?t[0]:t[1]},e.prototype.onHover=function(){this.slider.addEventListener("selectionMouseenter",this.onThumbMouseenter),this.slider.addEventListener("trackMouseenter",this.onTrackMouseenter),this.slider.addEventListener("selectionMouseleave",this.onThumbMouseleave),this.slider.addEventListener("trackMouseleave",this.onTrackMouseleave)},e.tag="scrollbar",e}(o.w)},42100:function(t,e,n){"use strict";n.d(e,{Ec:function(){return l},Qi:function(){return i},b0:function(){return a},fI:function(){return o}});var r=n(79274),i={fill:"#fff",lineWidth:1,radius:2,size:10,stroke:"#bfbfbf",strokeOpacity:1,zIndex:0},a={fill:"#000",fillOpacity:.45,fontSize:12,textAlign:"center",textBaseline:"middle",zIndex:1},o={x:0,y:0,orientation:"horizontal",showLabel:!0,type:"start"},l=(0,r.A)({foreground:"foreground",handle:"handle",selection:"selection",sparkline:"sparkline",sparklineGroup:"sparkline-group",track:"track",brushArea:"brush-area"},"slider")},77687:function(t,e,n){"use strict";n.d(e,{H:function(){return d}});var r=n(97582),i=n(5951),a=n(79274),o=n(54015),l=n(33016),s=n(47772),c=n(42100),u=(0,a.A)({labelGroup:"label-group",label:"label",iconGroup:"icon-group",icon:"icon",iconRect:"icon-rect",iconLine:"icon-line"},"handle"),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.render=function(t,e){var n=t.x,i=t.y,a=t.size,l=void 0===a?10:a,s=t.radius,c=t.orientation,f=(0,r._T)(t,["x","y","size","radius","orientation"]),d=2.4*l,h=(0,o.Ys)(e).maybeAppendByClassName(u.iconRect,"rect").styles((0,r.pi)((0,r.pi)({},f),{width:l,height:d,radius:void 0===s?l/4:s,x:n-l/2,y:i-d/2,transformOrigin:"center"})),p=n+1/3*l-l/2,g=n+2/3*l-l/2,m=i+1/4*d-d/2,y=i+3/4*d-d/2;h.maybeAppendByClassName("".concat(u.iconLine,"-1"),"line").styles((0,r.pi)({x1:p,x2:p,y1:m,y2:y},f)),h.maybeAppendByClassName("".concat(u.iconLine,"-2"),"line").styles((0,r.pi)({x1:g,x2:g,y1:m,y2:y},f)),"vertical"===c&&(h.node().style.transform="rotate(90)")},e}(i.w),d=function(t){function e(e){return t.call(this,e,c.fI)||this}return(0,r.ZT)(e,t),e.prototype.renderLabel=function(t){var e=this,n=this.attributes,i=n.x,a=n.y,f=n.showLabel,d=(0,l.zs)(this.attributes,"label"),h=d.x,p=void 0===h?0:h,g=d.y,m=void 0===g?0:g,y=d.transform,v=d.transformOrigin,b=(0,r._T)(d,["x","y","transform","transformOrigin"]),x=(0,r.CR)((0,l.Hm)(b,[]),2),O=x[0],w=x[1],_=(0,o.Ys)(t).maybeAppendByClassName(u.labelGroup,"g").styles(w),k=(0,r.pi)((0,r.pi)({},c.b0),O),C=k.text,j=(0,r._T)(k,["text"]);(0,s.z)(!!f,_,function(t){e.label=t.maybeAppendByClassName(u.label,"text").styles((0,r.pi)((0,r.pi)({},j),{x:i+p,y:a+m,transform:y,transformOrigin:v,text:"".concat(C)})),e.label.on("mousedown",function(t){t.stopPropagation()}),e.label.on("touchstart",function(t){t.stopPropagation()})})},e.prototype.renderIcon=function(t){var e=this.attributes,n=e.x,i=e.y,a=e.orientation,s=e.type,d=(0,r.pi)((0,r.pi)({x:n,y:i,orientation:a},c.Qi),(0,l.zs)(this.attributes,"icon")),h=this.attributes.iconShape,p=void 0===h?function(){return new f({style:d})}:h;(0,o.Ys)(t).maybeAppendByClassName(u.iconGroup,"g").selectAll(u.icon.class).data([p]).join(function(t){return t.append("string"==typeof p?p:function(){return p(s)}).attr("className",u.icon.name)},function(t){return t.update(d)},function(t){return t.remove()})},e.prototype.render=function(t,e){this.renderIcon(e),this.renderLabel(e)},e}(i.w)},6394:function(t,e,n){"use strict";n.d(e,{i:function(){return N}});var r=n(97582),i=n(1242),a=n(81957),o=n(45631),l=n(5951),s=n(8523),c=n(33016),u=n(26406),f=n(62191),d=n(54015),h=n(47772),p=n(48951),g=n(36380),m=n(88944),y=n(83207),v=n(25897),b=n(5199),x=n(45607),O=n(83787),w=n(8126),_=function(t){function e(e){var n=this,a=e.style,o=(0,r._T)(e,["style"]);return(n=t.call(this,(0,O.Z)({},{type:"column"},(0,r.pi)({style:a},o)))||this).columnsGroup=new i.ZA({name:"columns"}),n.appendChild(n.columnsGroup),n.render(),n}return(0,r.ZT)(e,t),e.prototype.render=function(){var t=this.attributes,e=t.columns,n=t.x,r=t.y;this.columnsGroup.style.transform="translate(".concat(n,", ").concat(r,")"),(0,d.Ys)(this.columnsGroup).selectAll(".column").data(e.flat()).join(function(t){return t.append("rect").attr("className","column").each(function(t){this.attr(t)})},function(t){return t.each(function(t){this.attr(t)})},function(t){return t.remove()})},e.prototype.update=function(t){this.attr((0,w.n)({},this.attributes,t)),this.render()},e.prototype.clear=function(){this.removeChildren()},e}(i.s$),k=function(t){function e(e){var n=this,a=e.style,o=(0,r._T)(e,["style"]);return(n=t.call(this,(0,O.Z)({},{type:"lines"},(0,r.pi)({style:a},o)))||this).linesGroup=n.appendChild(new i.ZA),n.areasGroup=n.appendChild(new i.ZA),n.render(),n}return(0,r.ZT)(e,t),e.prototype.render=function(){var t=this.attributes,e=t.lines,n=t.areas,r=t.x,i=t.y;this.style.transform="translate(".concat(r,", ").concat(i,")"),e&&this.renderLines(e),n&&this.renderAreas(n)},e.prototype.clear=function(){this.linesGroup.removeChildren(),this.areasGroup.removeChildren()},e.prototype.update=function(t){this.attr((0,w.n)({},this.attributes,t)),this.render()},e.prototype.renderLines=function(t){(0,d.Ys)(this.linesGroup).selectAll(".line").data(t).join(function(t){return t.append("path").attr("className","line").each(function(t){this.attr(t)})},function(t){return t.each(function(t){this.attr(t)})},function(t){return t.remove()})},e.prototype.renderAreas=function(t){(0,d.Ys)(this.linesGroup).selectAll(".area").data(t).join(function(t){return t.append("path").attr("className","area").each(function(t){this.attr(t)})},function(t){return t.each(function(t){this.style(t)})},function(t){return t.remove()})},e}(i.s$),C=n(30335),j=n(80264);function M(t,e){void 0===e&&(e=!1);var n=e?t.length-1:0,i=t.map(function(t,e){return(0,r.ev)([e===n?"M":"L"],(0,r.CR)(t),!1)});return e?i.reverse():i}function S(t,e){if(void 0===e&&(e=!1),t.length<=2)return M(t);for(var n=[],i=t.length,a=0;a=0?(s[c]+=a[c],a[c]=s[c]):(s[c]+=o[c],o[c]=s[c]);return e}var Z=function(t){function e(e){return t.call(this,e,{type:"line",x:0,y:0,width:200,height:20,isStack:!1,color:["#83daad","#edbf45","#d2cef9","#e290b3","#6f63f4"],smooth:!0,lineLineWidth:1,areaOpacity:0,isGroup:!1,columnLineWidth:1,columnStroke:"#fff",scale:1,spacing:0})||this}return(0,r.ZT)(e,t),Object.defineProperty(e.prototype,"rawData",{get:function(){var t=this.attributes.data;if(!t||(null==t?void 0:t.length)===0)return[[]];var e=(0,y.Z)(t);return(0,v.Z)(e[0])?[e]:e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.attributes.isStack?B(this.rawData):this.rawData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scales",{get:function(){return this.createScales(this.data)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseline",{get:function(){var t=this.scales.y,e=(0,r.CR)(t.getOptions().domain||[0,0],2),n=e[0],i=e[1];return i<0?t.map(i):t.map(n<0?0:n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerShape",{get:function(){var t=this.attributes;return{width:t.width,height:t.height}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linesStyle",{get:function(){var t=this,e=this.attributes,n=e.type,i=e.isStack,o=e.smooth;if("line"!==n)throw Error("linesStyle can only be used in line type");var l=(0,c.zs)(this.attributes,"area"),s=(0,c.zs)(this.attributes,"line"),u=this.containerShape.width,f=this.data;if(0===f[0].length)return{lines:[],areas:[]};var d=this.scales,h=(y=(g={type:"line",x:d.x,y:d.y}).x,v=g.y,x=(b=(0,r.CR)(v.getOptions().range||[0,0],2))[0],(O=b[1])>x&&(O=(m=(0,r.CR)([x,O],2))[0],x=m[1]),f.map(function(t){return t.map(function(t,e){return[y.map(e),(0,a.Z)(v.map(t),O,x)]})})),p=[];if(l){var g,m,y,v,b,x,O,w=this.baseline;p=i?o?function(t,e,n){for(var i=[],a=t.length-1;a>=0;a-=1){var o=t[a],l=S(o),s=void 0;if(0===a)s=A(l,e,n);else{var c=S(t[a-1],!0),u=o[0];c[0][0]="L",s=(0,r.ev)((0,r.ev)((0,r.ev)([],(0,r.CR)(l),!1),(0,r.CR)(c),!1),[(0,r.ev)(["M"],(0,r.CR)(u),!1),["Z"]],!1)}i.push(s)}return i}(h,u,w):function(t,e,n){for(var i=[],a=t.length-1;a>=0;a-=1){var o=M(t[a]),l=void 0;if(0===a)l=A(o,e,n);else{var s=M(t[a-1],!0);s[0][0]="L",l=(0,r.ev)((0,r.ev)((0,r.ev)([],(0,r.CR)(o),!1),(0,r.CR)(s),!1),[["Z"]],!1)}i.push(l)}return i}(h,u,w):h.map(function(t){return A(o?S(t):M(t),u,w)})}return{lines:h.map(function(e,n){return(0,r.pi)({stroke:t.getColor(n),d:o?S(e):M(e)},s)}),areas:p.map(function(e,n){return(0,r.pi)({d:e,fill:t.getColor(n)},l)})}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnsStyle",{get:function(){var t=this,e=(0,c.zs)(this.attributes,"column"),n=this.attributes,i=n.isStack,a=n.type,o=n.scale;if("column"!==a)throw Error("columnsStyle can only be used in column type");var l=this.containerShape.height,s=this.rawData;if(!s)return{columns:[]};i&&(s=B(s));var u=this.createScales(s),f=u.x,d=u.y,h=(0,r.CR)(L(s),2),p=h[0],m=h[1],y=new g.b({domain:[0,m-(p>0?0:p)],range:[0,l*o]}),v=f.getBandWidth(),b=this.rawData;return{columns:s.map(function(n,a){return n.map(function(n,o){var l=v/s.length;return(0,r.pi)((0,r.pi)({fill:t.getColor(a)},e),i?{x:f.map(o),y:d.map(n),width:v,height:y.map(b[a][o])}:{x:f.map(o)+l*a,y:n>=0?d.map(n):d.map(0),width:l,height:y.map(Math.abs(n))})})})}},enumerable:!1,configurable:!0}),e.prototype.render=function(t,e){(0,d.OV)(e,".container","rect").attr("className","container").node();var n=t.type,i=t.x,a=t.y,o="spark".concat(n),l=(0,r.pi)({x:i,y:a},"line"===n?this.linesStyle:this.columnsStyle);(0,d.Ys)(e).selectAll(".spark").data([n]).join(function(t){return t.append(function(t){return"line"===t?new k({className:o,style:l}):new _({className:o,style:l})}).attr("className","spark ".concat(o))},function(t){return t.update(l)},function(t){return t.remove()})},e.prototype.getColor=function(t){var e=this.attributes.color;return(0,b.Z)(e)?e[t%e.length]:(0,x.Z)(e)?e.call(null,t):e},e.prototype.createScales=function(t){var e,n,i=this.attributes,a=i.type,o=i.scale,l=i.range,s=void 0===l?[]:l,c=i.spacing,u=this.containerShape,f=u.width,d=u.height,h=(0,r.CR)(L(t),2),p=h[0],y=h[1],v=new g.b({domain:[null!==(e=s[0])&&void 0!==e?e:p,null!==(n=s[1])&&void 0!==n?n:y],range:[d,d*(1-o)]});return"line"===a?{type:a,x:new g.b({domain:[0,t[0].length-1],range:[0,f]}),y:v}:{type:a,x:new m.t({domain:t[0].map(function(t,e){return e}),range:[0,f],paddingInner:c,paddingOuter:c/2,align:.5}),y:v}},e.tag="sparkline",e}(l.w),I=n(42100),D=n(77687),N=function(t){function e(e){var n=t.call(this,e,(0,r.pi)((0,r.pi)((0,r.pi)({x:0,y:0,animate:{duration:100,fill:"both"},brushable:!0,formatter:function(t){return t.toString()},handleSpacing:2,orientation:"horizontal",padding:0,autoFitLabel:!0,scrollable:!0,selectionFill:"#5B8FF9",selectionFillOpacity:.45,selectionZIndex:2,showHandle:!0,showLabel:!0,slidable:!0,trackFill:"#416180",trackLength:200,trackOpacity:.05,trackSize:20,trackZIndex:-1,values:[0,1],type:"range",selectionType:"select",handleIconOffset:0},(0,c.dq)(I.fI,"handle")),(0,c.dq)(I.Qi,"handleIcon")),(0,c.dq)(I.b0,"handleLabel")))||this;return n.range=[0,1],n.onDragStart=function(t){return function(e){e.stopPropagation(),n.target=t,n.prevPos=n.getOrientVal((0,u.s)(e));var r=n.availableSpace,i=r.x,a=r.y,o=n.getBBox(),l=o.x,s=o.y;n.selectionStartPos=n.getRatio(n.prevPos-n.getOrientVal([i,a])-n.getOrientVal([+l,+s])),n.selectionWidth=0,document.addEventListener("pointermove",n.onDragging),document.addEventListener("pointerup",n.onDragEnd)}},n.onDragging=function(t){var e=n.attributes,r=e.slidable,i=e.brushable,a=e.type;t.stopPropagation();var o=n.getOrientVal((0,u.s)(t)),l=o-n.prevPos;if(l){var s=n.getRatio(l);switch(n.target){case"start":r&&n.setValuesOffset(s);break;case"end":r&&n.setValuesOffset(0,s);break;case"selection":r&&n.setValuesOffset(s,s);break;case"track":if(!i)return;n.selectionWidth+=s,"range"===a?n.innerSetValues([n.selectionStartPos,n.selectionStartPos+n.selectionWidth].sort(),!0):n.innerSetValues([0,n.selectionStartPos+n.selectionWidth],!0)}n.prevPos=o}},n.onDragEnd=function(){document.removeEventListener("pointermove",n.onDragging),document.removeEventListener("pointermove",n.onDragging),document.removeEventListener("pointerup",n.onDragEnd),n.target="",n.updateHandlesPosition(!1)},n.onValueChange=function(t){var e=n.attributes,r=e.onChange,a=e.type,o="range"===a?t:t[1],l="range"===a?n.getValues():n.getValues()[1],s=new i.Aw("valuechange",{detail:{oldValue:o,value:l}});n.dispatchEvent(s),null==r||r(l)},n.selectionStartPos=0,n.selectionWidth=0,n.prevPos=0,n.target="",n}return(0,r.ZT)(e,t),Object.defineProperty(e.prototype,"values",{get:function(){return this.attributes.values},set:function(t){this.attributes.values=this.clampValues(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sparklineStyle",{get:function(){if("horizontal"!==this.attributes.orientation)return null;var t=(0,c.zs)(this.attributes,"sparkline");return(0,r.pi)((0,r.pi)({zIndex:0},this.availableSpace),t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){var t=this.attributes,e=t.trackLength,n=t.trackSize,i=(0,r.CR)(this.getOrientVal([[e,n],[n,e]]),2);return{width:i[0],height:i[1]}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableSpace",{get:function(){var t=this.attributes,e=(t.x,t.y,t.padding),n=(0,r.CR)((0,f.j)(e),4),i=n[0],a=n[1],o=n[2],l=n[3],s=this.shape;return{x:l,y:i,width:s.width-(l+a),height:s.height-(i+o)}},enumerable:!1,configurable:!0}),e.prototype.getValues=function(){return this.values},e.prototype.setValues=function(t,e){void 0===t&&(t=[0,0]),void 0===e&&(e=!1),this.attributes.values=t;var n=!1!==e&&this.attributes.animate;this.updateSelectionArea(n),this.updateHandlesPosition(n)},e.prototype.updateSelectionArea=function(t){var e=this.calcSelectionArea();this.foregroundGroup.selectAll(I.Ec.selection.class).each(function(n,r){(0,o.eR)(this,e[r],t)})},e.prototype.updateHandlesPosition=function(t){this.attributes.showHandle&&(this.startHandle&&(0,o.eR)(this.startHandle,this.getHandleStyle("start"),t),this.endHandle&&(0,o.eR)(this.endHandle,this.getHandleStyle("end"),t))},e.prototype.innerSetValues=function(t,e){void 0===t&&(t=[0,0]),void 0===e&&(e=!1);var n=this.values,r=this.clampValues(t);this.attributes.values=r,this.setValues(r),e&&this.onValueChange(n)},e.prototype.renderTrack=function(t){var e=this.attributes,n=e.x,i=e.y,a=(0,c.zs)(this.attributes,"track");this.trackShape=(0,d.Ys)(t).maybeAppendByClassName(I.Ec.track,"rect").styles((0,r.pi)((0,r.pi)({x:n,y:i},this.shape),a))},e.prototype.renderBrushArea=function(t){var e=this.attributes,n=e.x,i=e.y,a=e.brushable;this.brushArea=(0,d.Ys)(t).maybeAppendByClassName(I.Ec.brushArea,"rect").styles((0,r.pi)({x:n,y:i,fill:"transparent",cursor:a?"crosshair":"default"},this.shape))},e.prototype.renderSparkline=function(t){var e=this,n=this.attributes,i=n.x,a=n.y,o=n.orientation,l=(0,d.Ys)(t).maybeAppendByClassName(I.Ec.sparklineGroup,"g");(0,h.z)("horizontal"===o,l,function(t){var n=(0,r.pi)((0,r.pi)({},e.sparklineStyle),{x:i,y:a});t.maybeAppendByClassName(I.Ec.sparkline,function(){return new Z({style:n})}).update(n)})},e.prototype.renderHandles=function(){var t,e=this,n=this.attributes,r=n.showHandle,i=n.type,a=this;null===(t=this.foregroundGroup)||void 0===t||t.selectAll(I.Ec.handle.class).data((r?"range"===i?["start","end"]:["end"]:[]).map(function(t){return{type:t}}),function(t){return t.type}).join(function(t){return t.append(function(t){var n=t.type;return new D.H({style:e.getHandleStyle(n)})}).each(function(t){var e=t.type;this.attr("class","".concat(I.Ec.handle.name," ").concat(e,"-handle")),a["".concat(e,"Handle")]=this,this.addEventListener("pointerdown",a.onDragStart(e))})},function(t){return t.each(function(t){var e=t.type;this.update(a.getHandleStyle(e))})},function(t){return t.each(function(t){var e=t.type;a["".concat(e,"Handle")]=void 0}).remove()})},e.prototype.renderSelection=function(t){var e=this.attributes,n=e.x,i=e.y,a=e.type,o=e.selectionType;this.foregroundGroup=(0,d.Ys)(t).maybeAppendByClassName(I.Ec.foreground,"g");var l=(0,c.zs)(this.attributes,"selection"),s=function(t){return t.style("visibility",function(t){return t.show?"visible":"hidden"}).style("cursor",function(t){return"select"===o?"grab":"invert"===o?"crosshair":"default"}).styles((0,r.pi)((0,r.pi)({},l),{transform:"translate(".concat(n,", ").concat(i,")")}))},u=this;this.foregroundGroup.selectAll(I.Ec.selection.class).data("value"===a?[]:this.calcSelectionArea().map(function(t,e){return{style:(0,r.pi)({},t),index:e,show:"select"===o?1===e:1!==e}}),function(t){return t.index}).join(function(t){return t.append("rect").attr("className",I.Ec.selection.name).call(s).each(function(t,e){var n=this;1===e?(u.selectionShape=(0,d.Ys)(this),this.on("pointerdown",function(t){n.attr("cursor","grabbing"),u.onDragStart("selection")(t)}),u.dispatchCustomEvent(this,"pointerenter","selectionMouseenter"),u.dispatchCustomEvent(this,"pointerleave","selectionMouseleave"),u.dispatchCustomEvent(this,"click","selectionClick"),this.addEventListener("pointerdown",function(){n.attr("cursor","grabbing")}),this.addEventListener("pointerup",function(){n.attr("cursor","pointer")}),this.addEventListener("pointerover",function(){n.attr("cursor","pointer")})):this.on("pointerdown",u.onDragStart("track"))})},function(t){return t.call(s)},function(t){return t.remove()}),this.updateSelectionArea(!1),this.renderHandles()},e.prototype.render=function(t,e){this.renderTrack(e),this.renderSparkline(e),this.renderBrushArea(e),this.renderSelection(e)},e.prototype.clampValues=function(t,e){void 0===e&&(e=4);var n,i=(0,r.CR)(this.range,2),o=i[0],l=i[1],s=(0,r.CR)(this.getValues().map(function(t){return(0,p.Zd)(t,e)}),2),c=s[0],u=s[1],f=Array.isArray(t)?t:[c,null!=t?t:u],d=(0,r.CR)((f||[c,u]).map(function(t){return(0,p.Zd)(t,e)}),2),h=d[0],g=d[1];if("value"===this.attributes.type)return[0,(0,a.Z)(g,o,l)];h>g&&(h=(n=(0,r.CR)([g,h],2))[0],g=n[1]);var m=g-h;return m>l-o?[o,l]:hl?u===l&&c===h?[h,l]:[l-m,l]:[h,g]},e.prototype.calcSelectionArea=function(t){var e=(0,r.CR)(this.clampValues(t),2),n=e[0],i=e[1],a=this.availableSpace,o=a.x,l=a.y,s=a.width,c=a.height;return this.getOrientVal([[{y:l,height:c,x:o,width:n*s},{y:l,height:c,x:n*s+o,width:(i-n)*s},{y:l,height:c,x:i*s,width:(1-i)*s}],[{x:o,width:s,y:l,height:n*c},{x:o,width:s,y:n*c+l,height:(i-n)*c},{x:o,width:s,y:i*c,height:(1-i)*c}]])},e.prototype.calcHandlePosition=function(t){var e=this.attributes.handleIconOffset,n=this.availableSpace,i=n.x,a=n.y,o=n.width,l=n.height,s=(0,r.CR)(this.clampValues(),2),c=s[0],u=s[1],f=("start"===t?c:u)*this.getOrientVal([o,l])+("start"===t?-e:e);return{x:i+this.getOrientVal([f,o/2]),y:a+this.getOrientVal([l/2,f])}},e.prototype.inferTextStyle=function(t){return"horizontal"===this.attributes.orientation?{}:"start"===t?{transformOrigin:"left center",transform:"rotate(90)",textAlign:"start"}:"end"===t?{transformOrigin:"right center",transform:"rotate(90)",textAlign:"end"}:{}},e.prototype.calcHandleText=function(t){var e,n=this.attributes,i=n.type,a=n.orientation,o=n.formatter,l=n.autoFitLabel,u=(0,c.zs)(this.attributes,"handle"),f=(0,c.zs)(u,"label"),d=u.spacing,h=this.getHandleSize(),p=this.clampValues(),g=o("start"===t?p[0]:p[1]),m=new s.x({style:(0,r.pi)((0,r.pi)((0,r.pi)({},f),this.inferTextStyle(t)),{text:g})}),y=m.getBBox(),v=y.width,b=y.height;if(m.destroy(),!l){if("value"===i)return{text:g,x:0,y:-b-d};var x=d+h+("horizontal"===a?v/2:0);return(e={text:g})["horizontal"===a?"x":"y"]="start"===t?-x:x,e}var O=0,w=0,_=this.availableSpace,k=_.width,C=_.height,j=this.calcSelectionArea()[1],M=j.x,S=j.y,A=j.width,E=j.height,P=d+h;if("horizontal"===a){var R=P+v/2;O="start"===t?M-P-v>0?-R:R:k-M-A-P>v?R:-R}else{var T=b+P;w="start"===t?S-h>b?-T:P:C-(S+E)-h>b?T:-P}return{x:O,y:w,text:g}},e.prototype.getHandleLabelStyle=function(t){var e=(0,c.zs)(this.attributes,"handleLabel");return(0,r.pi)((0,r.pi)((0,r.pi)({},e),this.calcHandleText(t)),this.inferTextStyle(t))},e.prototype.getHandleIconStyle=function(){var t=this.attributes.handleIconShape,e=(0,c.zs)(this.attributes,"handleIcon"),n=this.getOrientVal(["ew-resize","ns-resize"]),i=this.getHandleSize();return(0,r.pi)({cursor:n,shape:t,size:i},e)},e.prototype.getHandleStyle=function(t){var e=this.attributes,n=e.x,i=e.y,a=e.showLabel,o=e.showLabelOnInteraction,l=e.orientation,s=this.calcHandlePosition(t),u=s.x,f=s.y,d=this.calcHandleText(t),h=a;return!a&&o&&(h=!!this.target),(0,r.pi)((0,r.pi)((0,r.pi)({},(0,c.dq)(this.getHandleIconStyle(),"icon")),(0,c.dq)((0,r.pi)((0,r.pi)({},this.getHandleLabelStyle(t)),d),"label")),{transform:"translate(".concat(u+n,", ").concat(f+i,")"),orientation:l,showLabel:h,type:t,zIndex:3})},e.prototype.getHandleSize=function(){var t=this.attributes,e=t.handleIconSize,n=t.width,r=t.height;return e||Math.floor((this.getOrientVal([+r,+n])+4)/2.4)},e.prototype.getOrientVal=function(t){var e=(0,r.CR)(t,2),n=e[0],i=e[1];return"horizontal"===this.attributes.orientation?n:i},e.prototype.setValuesOffset=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=!1);var i=this.attributes.type,a=(0,r.CR)(this.getValues(),2),o=[a[0]+("range"===i?t:0),a[1]+e].sort();n?this.setValues(o):this.innerSetValues(o,!0)},e.prototype.getRatio=function(t){var e=this.availableSpace,n=e.width,r=e.height;return t/this.getOrientVal([n,r])},e.prototype.dispatchCustomEvent=function(t,e,n){var r=this;t.on(e,function(t){t.stopPropagation(),r.dispatchEvent(new i.Aw(n,{detail:t}))})},e.prototype.bindEvents=function(){this.addEventListener("wheel",this.onScroll);var t=this.brushArea;this.dispatchCustomEvent(t,"click","trackClick"),this.dispatchCustomEvent(t,"pointerenter","trackMouseenter"),this.dispatchCustomEvent(t,"pointerleave","trackMouseleave"),t.on("pointerdown",this.onDragStart("track"))},e.prototype.onScroll=function(t){if(this.attributes.scrollable){var e=t.deltaX,n=t.deltaY||e,r=this.getRatio(n);this.setValuesOffset(r,r,!0)}},e.tag="slider",e}(l.w)},1366:function(t,e,n){"use strict";n.d(e,{Dx:function(){return g},jY:function(){return h},li:function(){return d}});var r=n(97582),i=n(5951),a=n(79274),o=n(62191),l=n(43629),s=n(33016),c=n(47772),u=n(54015),f=(0,a.A)({text:"text"},"title");function d(t){return/\S+-\S+/g.test(t)?t.split("-").map(function(t){return t[0]}):t.length>2?[t[0]]:t.split("")}function h(t,e){var n=t.attributes,i=n.position,a=n.spacing,s=n.inset,c=n.text,u=t.getBBox(),f=e.getBBox(),h=d(i),p=(0,r.CR)((0,o.j)(c?a:0),4),g=p[0],m=p[1],y=p[2],v=p[3],b=(0,r.CR)((0,o.j)(s),4),x=b[0],O=b[1],w=b[2],_=b[3],k=(0,r.CR)([v+m,g+y],2),C=k[0],j=k[1],M=(0,r.CR)([_+O,x+w],2),S=M[0],A=M[1];if("l"===h[0])return new l.b(u.x,u.y,f.width+u.width+C+S,Math.max(f.height+A,u.height));if("t"===h[0])return new l.b(u.x,u.y,Math.max(f.width+S,u.width),f.height+u.height+j+A);var E=(0,r.CR)([e.attributes.width||f.width,e.attributes.height||f.height],2),P=E[0],R=E[1];return new l.b(f.x,f.y,P+u.width+C+S,R+u.height+j+A)}function p(t,e){var n=Object.entries(e).reduce(function(e,n){var i=(0,r.CR)(n,2),a=i[0],o=i[1];return t.node().attr(a)||(e[a]=o),e},{});t.styles(n)}var g=function(t){function e(e){return t.call(this,e,{text:"",width:0,height:0,fill:"#4a505a",fontWeight:"bold",fontSize:12,fontFamily:"sans-serif",inset:0,spacing:0,position:"top-left"})||this}return(0,r.ZT)(e,t),e.prototype.getAvailableSpace=function(){var t=this.attributes,e=t.width,n=t.height,i=t.position,a=t.spacing,s=t.inset,c=this.querySelector(f.text.class);if(!c)return new l.b(0,0,+e,+n);var u=c.getBBox(),h=u.width,p=u.height,g=(0,r.CR)((0,o.j)(a),4),m=g[0],y=g[1],v=g[2],b=g[3],x=(0,r.CR)([0,0,+e,+n],4),O=x[0],w=x[1],_=x[2],k=x[3],C=d(i);if(C.includes("i"))return new l.b(O,w,_,k);C.forEach(function(t,i){var a,o;"t"===t&&(w=(a=(0,r.CR)(0===i?[p+v,+n-p-v]:[0,+n],2))[0],k=a[1]),"r"===t&&(_=(0,r.CR)([+e-h-b],1)[0]),"b"===t&&(k=(0,r.CR)([+n-p-m],1)[0]),"l"===t&&(O=(o=(0,r.CR)(0===i?[h+y,+e-h-y]:[0,+e],2))[0],_=o[1])});var j=(0,r.CR)((0,o.j)(s),4),M=j[0],S=j[1],A=j[2],E=j[3],P=(0,r.CR)([E+S,M+A],2),R=P[0],T=P[1];return new l.b(O+E,w+M,_-R,k-T)},e.prototype.getBBox=function(){return this.title?this.title.getBBox():new l.b(0,0,0,0)},e.prototype.render=function(t,e){var n,i,a,o,l,h,g,m,y,v,b,x,O,w,_,k,C=this;t.width,t.height,t.position,t.spacing;var j=(0,r._T)(t,["width","height","position","spacing"]),M=(0,r.CR)((0,s.Hm)(j),1)[0],S=(l=t.width,h=t.height,g=t.position,y=(m=(0,r.CR)([+l/2,+h/2],2))[0],v=m[1],x=(b=(0,r.CR)([+y,+v,"center","middle"],4))[0],O=b[1],w=b[2],_=b[3],(k=d(g)).includes("l")&&(x=(n=(0,r.CR)([0,"start"],2))[0],w=n[1]),k.includes("r")&&(x=(i=(0,r.CR)([+l,"end"],2))[0],w=i[1]),k.includes("t")&&(O=(a=(0,r.CR)([0,"top"],2))[0],_=a[1]),k.includes("b")&&(O=(o=(0,r.CR)([+h,"bottom"],2))[0],_=o[1]),{x:x,y:O,textAlign:w,textBaseline:_}),A=S.x,E=S.y,P=S.textAlign,R=S.textBaseline;(0,c.z)(!!j.text,(0,u.Ys)(e),function(t){C.title=t.maybeAppendByClassName(f.text,"text").styles(M).call(p,{x:A,y:E,textAlign:P,textBaseline:R}).node()})},e}(i.w)},61385:function(t,e,n){"use strict";n.d(e,{u:function(){return f}});var r=n(97582),i=n(88204),a=n(68856),o=n(5951),l=n(33016),s=n(43629);function c(t){return void 0===t&&(t=""),{CONTAINER:"".concat(t,"tooltip"),TITLE:"".concat(t,"tooltip-title"),LIST:"".concat(t,"tooltip-list"),LIST_ITEM:"".concat(t,"tooltip-list-item"),NAME:"".concat(t,"tooltip-list-item-name"),MARKER:"".concat(t,"tooltip-list-item-marker"),NAME_LABEL:"".concat(t,"tooltip-list-item-name-label"),VALUE:"".concat(t,"tooltip-list-item-value"),CROSSHAIR_X:"".concat(t,"tooltip-crosshair-x"),CROSSHAIR_Y:"".concat(t,"tooltip-crosshair-y")}}var u={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"},f=function(t){function e(e){var n,i,a,o,l,s=this,f=null===(l=null===(o=e.style)||void 0===o?void 0:o.template)||void 0===l?void 0:l.prefixCls,d=c(f);return(s=t.call(this,e,{data:[],x:0,y:0,visibility:"visible",title:"",position:"bottom-right",offset:[5,5],enterable:!1,container:{x:0,y:0},bounding:null,template:{prefixCls:"",container:'
    '),title:'
    '),item:'
  • \n \n \n {name}\n \n {value}\n
  • ')},style:(void 0===(n=f)&&(n=""),a=c(n),(i={})[".".concat(a.CONTAINER)]={position:"absolute",visibility:"visible","z-index":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)","background-color":"rgba(255, 255, 255, 0.96)","box-shadow":"0 6px 12px 0 rgba(0, 0, 0, 0.12)","border-radius":"4px",color:"rgba(0, 0, 0, 0.65)","font-size":"12px","line-height":"20px",padding:"12px","min-width":"120px","max-width":"360px","font-family":"Roboto-Regular"},i[".".concat(a.TITLE)]={color:"rgba(0, 0, 0, 0.45)"},i[".".concat(a.LIST)]={margin:"0px","list-style-type":"none",padding:"0px"},i[".".concat(a.LIST_ITEM)]={"list-style-type":"none",display:"flex","line-height":"2em","align-items":"center","justify-content":"space-between","white-space":"nowrap"},i[".".concat(a.MARKER)]={width:"8px",height:"8px","border-radius":"50%",display:"inline-block","margin-right":"4px"},i[".".concat(a.NAME)]={display:"flex","align-items":"center","max-width":"216px"},i[".".concat(a.NAME_LABEL)]=(0,r.pi)({flex:1},u),i[".".concat(a.VALUE)]=(0,r.pi)({display:"inline-block",float:"right",flex:1,"text-align":"right","min-width":"28px","margin-left":"30px",color:"rgba(0, 0, 0, 0.85)"},u),i[".".concat(a.CROSSHAIR_X)]={position:"absolute",width:"1px","background-color":"rgba(0, 0, 0, 0.25)"},i[".".concat(a.CROSSHAIR_Y)]={position:"absolute",height:"1px","background-color":"rgba(0, 0, 0, 0.25)"},i)})||this).timestamp=-1,s.prevCustomContentKey=s.attributes.contentKey,s.initShape(),s.render(s.attributes,s),s}return(0,r.ZT)(e,t),Object.defineProperty(e.prototype,"HTMLTooltipElement",{get:function(){return this.element},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.element},Object.defineProperty(e.prototype,"elementSize",{get:function(){return{width:this.element.offsetWidth,height:this.element.offsetHeight}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HTMLTooltipItemsElements",{get:function(){var t=this.attributes,e=t.data,n=t.template;return e.map(function(t,e){var o=t.name,l=t.color,s=t.index,c=(0,r._T)(t,["name","color","index"]),u=(0,r.pi)({name:void 0===o?"":o,color:void 0===l?"black":l,index:null!=s?s:e},c);return(0,i.L)((0,a.Z)(n.item,u))})},enumerable:!1,configurable:!0}),e.prototype.render=function(t,e){this.renderHTMLTooltipElement(),this.updatePosition()},e.prototype.destroy=function(){var e;null===(e=this.element)||void 0===e||e.remove(),t.prototype.destroy.call(this)},e.prototype.show=function(t,e){var n=this;if(void 0!==t&&void 0!==e){var r="hidden"===this.element.style.visibility,i=function(){n.attributes.x=null!=t?t:n.attributes.x,n.attributes.y=null!=e?e:n.attributes.y,n.updatePosition()};r?this.closeTransition(i):i()}this.element.style.visibility="visible"},e.prototype.hide=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.attributes.enterable&&this.isCursorEntered(t,e)||(this.element.style.visibility="hidden")},e.prototype.initShape=function(){var t=this.attributes.template;this.element=(0,i.L)(t.container),this.id&&this.element.setAttribute("id",this.id)},e.prototype.renderCustomContent=function(){if(void 0===this.prevCustomContentKey||this.prevCustomContentKey!==this.attributes.contentKey){this.prevCustomContentKey=this.attributes.contentKey;var t=this.attributes.content;t&&("string"==typeof t?this.element.innerHTML=t:this.element.replaceChildren(t))}},e.prototype.renderHTMLTooltipElement=function(){var t,e,n=this.attributes,i=n.template,a=n.title,o=n.enterable,s=n.style,u=n.content,f=c(i.prefixCls),d=this.element;if(this.element.style.pointerEvents=o?"auto":"none",u)this.renderCustomContent();else{a?(d.innerHTML=i.title,d.getElementsByClassName(f.TITLE)[0].innerHTML=a):null===(e=null===(t=d.getElementsByClassName(f.TITLE))||void 0===t?void 0:t[0])||void 0===e||e.remove();var h=this.HTMLTooltipItemsElements,p=document.createElement("ul");p.className=f.LIST,p.replaceChildren.apply(p,(0,r.ev)([],(0,r.CR)(h),!1));var g=this.element.querySelector(".".concat(f.LIST));g?g.replaceWith(p):d.appendChild(p)}(0,l.MC)(d,s)},e.prototype.getRelativeOffsetFromCursor=function(t){var e=this.attributes,n=e.position,i=e.offset,a=(t||n).split("-"),o={left:[-1,0],right:[1,0],top:[0,-1],bottom:[0,1]},l=this.elementSize,s=l.width,c=l.height,u=[-s/2,-c/2];return a.forEach(function(t){var e=(0,r.CR)(u,2),n=e[0],a=e[1],l=(0,r.CR)(o[t],2),f=l[0],d=l[1];u=[n+(s/2+i[0])*f,a+(c/2+i[1])*d]}),u},e.prototype.setOffsetPosition=function(t){var e=(0,r.CR)(t,2),n=e[0],i=e[1],a=this.attributes,o=a.x,l=a.y,s=a.container,c=s.x,u=s.y;this.element.style.left="".concat(+(void 0===o?0:o)+c+n,"px"),this.element.style.top="".concat(+(void 0===l?0:l)+u+i,"px")},e.prototype.updatePosition=function(){var t=this.attributes.showDelay,e=Date.now();this.timestamp>0&&e-this.timestamp<(void 0===t?60:t)||(this.timestamp=e,this.setOffsetPosition(this.autoPosition(this.getRelativeOffsetFromCursor())))},e.prototype.autoPosition=function(t){var e=(0,r.CR)(t,2),n=e[0],i=e[1],a=this.attributes,o=a.x,l=a.y,s=a.bounding,c=a.position;if(!s)return[n,i];var u=this.element,f=u.offsetWidth,d=u.offsetHeight,h=(0,r.CR)([+o+n,+l+i],2),p=h[0],g=h[1],m={left:"right",right:"left",top:"bottom",bottom:"top"},y=s.x,v=s.y,b={left:py+s.width,top:gv+s.height},x=[];c.split("-").forEach(function(t){b[t]?x.push(m[t]):x.push(t)});var O=x.join("-");return this.getRelativeOffsetFromCursor(O)},e.prototype.isCursorEntered=function(t,e){if(this.element){var n=this.element.getBoundingClientRect(),r=n.x,i=n.y,a=n.width,o=n.height;return new s.b(r,i,a,o).isPointIn(t,e)}return!1},e.prototype.closeTransition=function(t){var e=this,n=this.element.style.transition;this.element.style.transition="none",t(),setTimeout(function(){e.element.style.transition=n},10)},e.tag="tooltip",e}(o.w)},43629:function(t,e,n){"use strict";n.d(e,{b:function(){return r}});var r=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.x=0,this.y=0,this.width=0,this.height=0,this.x=t,this.y=e,this.width=n,this.height=r}return Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t.prototype.toJSON=function(){return{x:this.x,y:this.y,width:this.width,height:this.height,top:this.top,right:this.right,bottom:this.bottom,left:this.left}},t.prototype.isPointIn=function(t,e){return t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom},t}()},86650:function(t,e,n){"use strict";n.d(e,{S:function(){return a}});var r=n(97582),i=n(45607);function a(t,e){return(0,i.Z)(t)?t.apply(void 0,(0,r.ev)([],(0,r.CR)(e),!1)):t}},79274:function(t,e,n){"use strict";n.d(e,{A:function(){return i}});var r=n(97582),i=function(t,e){var n=function(t){return"".concat(e,"-").concat(t)},i=Object.fromEntries(Object.entries(t).map(function(t){var e=(0,r.CR)(t,2),i=e[0],a=n(e[1]);return[i,{name:a,class:".".concat(a),id:"#".concat(a),toString:function(){return a}}]}));return Object.assign(i,{prefix:n}),i}},8126:function(t,e,n){"use strict";n.d(e,{n:function(){return l}});var r=n(97582),i=n(83845),a=n(5199),o=function(t,e,n,l){void 0===n&&(n=0),void 0===l&&(l=5),Object.entries(e).forEach(function(s){var c=(0,r.CR)(s,2),u=c[0],f=c[1];Object.prototype.hasOwnProperty.call(e,u)&&(f?(0,i.Z)(f)?((0,i.Z)(t[u])||(t[u]={}),n="A"&&n<="Z"};function s(t,e,n){void 0===n&&(n=!1);var o={};return Object.entries(t).forEach(function(t){var s=(0,r.CR)(t,2),c=s[0],u=s[1];if("className"===c||"class"===c);else if(l(c,"show")&&l(a(c,"show"),e)!==n)c==="".concat("show").concat(i(e))?o[c]=u:o[c.replace(new RegExp(i(e)),"")]=u;else if(!l(c,"show")&&l(c,e)!==n){var f=a(c,e);"filter"===f&&"function"==typeof u||(o[f]=u)}}),o}function c(t,e){return Object.entries(t).reduce(function(t,n){var a=(0,r.CR)(n,2),o=a[0],l=a[1];return o.startsWith("show")?t["show".concat(e).concat(o.slice(4))]=l:t["".concat(e).concat(i(o))]=l,t},{})}function u(t,e){void 0===e&&(e=["x","y","class","className"]);var n=["transform","transformOrigin","anchor","visibility","pointerEvents","zIndex","cursor","clipPath","clipPathTargets","offsetPath","offsetPathTargets","offsetDistance","draggable","droppable"],i={},a={};return Object.entries(t).forEach(function(t){var o=(0,r.CR)(t,2),l=o[0],s=o[1];e.includes(l)||(-1!==n.indexOf(l)?a[l]=s:i[l]=s)}),[i,a]}},30650:function(t,e,n){"use strict";n.d(e,{Rm:function(){return c},U4:function(){return s},Ux:function(){return o},qT:function(){return l}});var r,i,a=n(1242),o=(0,n(92426).Z)(function(t,e){var n=e.fontSize,o=e.fontFamily,l=e.fontWeight,s=e.fontStyle,c=e.fontVariant;return i?i(t,n):(r||(r=a.GZ.offscreenCanvasCreator.getOrCreateContext(void 0)),r.font=[s,c,l,"".concat(n,"px"),o].join(" "),r.measureText(t).width)},function(t,e){return[t,Object.values(e||l(t)).join()].join("")},4096),l=function(t){var e=t.style.fontFamily||"sans-serif",n=t.style.fontWeight||"normal",r=t.style.fontStyle||"normal",i=t.style.fontVariant,a=t.style.fontSize;return{fontSize:a="object"==typeof a?a.value:a,fontFamily:e,fontWeight:n,fontStyle:r,fontVariant:i}};function s(t){return"text"===t.nodeName?t:"g"===t.nodeName&&1===t.children.length&&"text"===t.children[0].nodeName?t.children[0]:null}function c(t,e){var n=s(t);n&&n.attr(e)}},62059:function(t,e,n){"use strict";function r(t){a(t,!0)}function i(t){a(t,!1)}function a(t,e){var n=e?"visible":"hidden";!function t(e,n){n(e),e.children&&e.children.forEach(function(e){e&&t(e,n)})}(t,function(t){t.attr("visibility",n)})}n.d(e,{Cp:function(){return i},$Z:function(){return r},WD:function(){return a}})},17816:function(t,e){!function(t){"use strict";function e(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&r>=t.length?void 0:t)&&t[r++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function n(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{for(;(void 0===e||0n=>t(e(n)),t)}function k(t,e){return e-t?n=>(n-t)/(e-t):t=>.5}T=new p(3),p!=Float32Array&&(T[0]=0,T[1]=0,T[2]=0),T=new p(4),p!=Float32Array&&(T[0]=0,T[1]=0,T[2]=0,T[3]=0);let C=Math.sqrt(50),j=Math.sqrt(10),M=Math.sqrt(2);function S(t,e,n){return t=Math.floor(Math.log(e=(e-t)/Math.max(0,n))/Math.LN10),n=e/10**t,0<=t?(n>=C?10:n>=j?5:n>=M?2:1)*10**t:-(10**-t)/(n>=C?10:n>=j?5:n>=M?2:1)}let A=(t,e,n=5)=>{let r=0,i=(t=[t,e]).length-1,a=t[r],o=t[i],l;return o{n.prototype.rescale=function(){this.initRange(),this.nice();var[t]=this.chooseTransforms();this.composeOutput(t,this.chooseClamp(t))},n.prototype.initRange=function(){var e=this.options.interpolator;this.options.range=t(e)},n.prototype.composeOutput=function(t,n){var{domain:r,interpolator:i,round:a}=this.getOptions(),r=e(r.map(t)),a=a?t=>l(t=i(t),"Number")?Math.round(t):t:i;this.output=_(a,r,n,t)},n.prototype.invert=void 0}}var R,T={exports:{}},L={exports:{}},B=Array.prototype.concat,Z=Array.prototype.slice,I=L.exports=function(t){for(var e=[],n=0,r=t.length;nn=>t*(1-n)+e*n,U=(t,e)=>{if("number"==typeof t&&"number"==typeof e)return V(t,e);if("string"!=typeof t||"string"!=typeof e)return()=>t;{let n=Y(t),r=Y(e);return null===n||null===r?n?()=>t:()=>e:t=>{var e=[,,,,];for(let o=0;o<4;o+=1){var i=n[o],a=r[o];e[o]=i*(1-t)+a*t}var[o,l,s,c]=e;return`rgba(${Math.round(o)}, ${Math.round(l)}, ${Math.round(s)}, ${c})`}}},Q=(t,e)=>{let n=V(t,e);return t=>Math.round(n(t))};function X({map:t,initKey:e},n){return e=e(n),t.has(e)?t.get(e):n}function K(t){return"object"==typeof t?t.valueOf():t}class J extends Map{constructor(t){if(super(),this.map=new Map,this.initKey=K,null!==t)for(var[e,n]of t)this.set(e,n)}get(t){return super.get(X({map:this.map,initKey:this.initKey},t))}has(t){return super.has(X({map:this.map,initKey:this.initKey},t))}set(t,e){var n,r;return super.set(([{map:t,initKey:n},r]=[{map:this.map,initKey:this.initKey},t],n=n(r),t.has(n)?t.get(n):(t.set(n,r),r)),e)}delete(t){var e,n;return super.delete(([{map:t,initKey:e},n]=[{map:this.map,initKey:this.initKey},t],e=e(n),t.has(e)&&(n=t.get(e),t.delete(e)),n))}}class tt{constructor(t){this.options=f({},this.getDefaultOptions()),this.update(t)}getOptions(){return this.options}update(t={}){this.options=f({},this.options,t),this.rescale(t)}rescale(t){}}let te=Symbol("defaultUnknown");function tn(t,e,n){for(let r=0;r""+t:"object"==typeof t?t=>JSON.stringify(t):t=>t}class ta extends tt{getDefaultOptions(){return{domain:[],range:[],unknown:te}}constructor(t){super(t)}map(t){return 0===this.domainIndexMap.size&&tn(this.domainIndexMap,this.getDomain(),this.domainKey),tr({value:this.domainKey(t),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(t){return 0===this.rangeIndexMap.size&&tn(this.rangeIndexMap,this.getRange(),this.rangeKey),tr({value:this.rangeKey(t),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(t){var[e]=this.options.domain,[n]=this.options.range;this.domainKey=ti(e),this.rangeKey=ti(n),this.rangeIndexMap?(t&&!t.range||this.rangeIndexMap.clear(),(!t||t.domain||t.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)):(this.rangeIndexMap=new Map,this.domainIndexMap=new Map)}clone(){return new ta(this.options)}getRange(){return this.options.range}getDomain(){var t,e;return this.sortedDomain||({domain:t,compare:e}=this.options,this.sortedDomain=e?[...t].sort(e):t),this.sortedDomain}}class to extends ta{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:te,flex:[]}}constructor(t){super(t)}clone(){return new to(this.options)}getStep(t){return void 0===this.valueStep?1:"number"==typeof this.valueStep?this.valueStep:void 0===t?Array.from(this.valueStep.values())[0]:this.valueStep.get(t)}getBandWidth(t){return void 0===this.valueBandWidth?1:"number"==typeof this.valueBandWidth?this.valueBandWidth:void 0===t?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(t)}getRange(){return this.adjustedRange}getPaddingInner(){var{padding:t,paddingInner:e}=this.options;return 0t/e)}(c),p=f/h.reduce((t,e)=>t+e);var c=new J(e.map((t,e)=>(e=h[e]*p,[t,o?Math.floor(e):e]))),g=new J(e.map((t,e)=>(e=h[e]*p+d,[t,o?Math.floor(e):e]))),f=Array.from(g.values()).reduce((t,e)=>t+e),t=t+(u-(f-f/s*i))*l;let m=o?Math.round(t):t;var y=Array(s);for(let t=0;ts+e*o),{valueStep:o,valueBandWidth:l,adjustedRange:t}}({align:t,range:n,round:r,flex:i,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:e});this.valueStep=r,this.valueBandWidth=n,this.adjustedRange=t}}let tl=(t,e,n)=>{let r,i,a=t,o=e;if(a===o&&0{let r;var[t,i]=t,[e,a]=e;return _(t{let r=Math.min(t.length,e.length)-1,i=Array(r),a=Array(r);var o=t[0]>t[r],l=o?[...t].reverse():t,s=o?[...e].reverse():e;for(let t=0;t{var n=function(t,e,n,r,i){let a=1,o=r||t.length;for(var l=t=>t;ae?o=s:a=s+1}return a}(t,e,0,r)-1,o=i[n];return _(a[n],o)(e)}},tu=(t,e,n,r)=>(2Math.min(Math.max(r,t),i)}return d}composeOutput(t,e){var{domain:n,range:r,round:i,interpolate:a}=this.options,n=tu(n.map(t),r,a,i);this.output=_(n,e,t)}composeInput(t,e,n){var{domain:r,range:i}=this.options,i=tu(i,r.map(t),V);this.input=_(e,n,i)}}class td extends tf{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:U,tickMethod:tl,tickCount:5}}chooseTransforms(){return[d,d]}clone(){return new td(this.options)}}class th extends to{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:te,paddingInner:1,paddingOuter:0}}constructor(t){super(t)}getPaddingInner(){return 1}clone(){return new th(this.options)}update(t){super.update(t)}getPaddingOuter(){return this.options.padding}}function tp(t,e){for(var n=[],r=0,i=t.length;r{var[t,e]=t;return _(V(0,1),k(t,e))})],ty);let tv=a=class extends td{getDefaultOptions(){return{domain:[0,.5,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:d,tickMethod:tl,tickCount:5}}constructor(t){super(t)}clone(){return new a(this.options)}};function tb(t,e,r,i,a){var o=new td({range:[e,e+i]}),l=new td({range:[r,r+a]});return{transform:function(t){var t=n(t,2),e=t[0],t=t[1];return[o.map(e),l.map(t)]},untransform:function(t){var t=n(t,2),e=t[0],t=t[1];return[o.invert(e),l.invert(t)]}}}function tx(t,e,r,i,a){return(0,n(t,1)[0])(e,r,i,a)}function tO(t,e,r,i,a){return n(t,1)[0]}function tw(t,e,r,i,a){var o=(t=n(t,4))[0],l=t[1],s=t[2],t=t[3],c=new td({range:[s,t]}),u=new td({range:[o,l]}),f=1<(s=a/i)?1:s,d=1{let[e,n,r]=t,i=_(V(0,.5),k(e,n)),a=_(V(.5,1),k(n,r));return t=>(e>r?tl?o:l,c=o>l?1:o/l,u=o>l?l/o:1;t.save(),t.scale(c,u),t.arc(r,a,s,0,2*Math.PI)}}function c(t,e){var n,r=e.x1,i=e.y1,o=e.x2,l=e.y2,s=e.markerStart,c=e.markerEnd,u=e.markerStartOffset,f=e.markerEndOffset,d=0,h=0,p=0,g=0,m=0;s&&(0,a.RV)(s)&&u&&(d=Math.cos(m=Math.atan2(l-i,o-r))*(u||0),h=Math.sin(m)*(u||0)),c&&(0,a.RV)(c)&&f&&(p=Math.cos(m=Math.atan2(i-l,r-o))*(f||0),g=Math.sin(m)*(f||0)),t.moveTo(r+d,i+h),t.lineTo(o+p,l+g)}function u(t,e){var n,i=e.markerStart,o=e.markerEnd,l=e.markerStartOffset,s=e.markerEndOffset,c=e.d,u=c.absolutePath,f=c.segments,d=0,h=0,p=0,g=0,m=0;if(i&&(0,a.RV)(i)&&l){var y=(0,r.CR)(i.parentNode.getStartTangent(),2),v=y[0],b=y[1];n=v[0]-b[0],d=Math.cos(m=Math.atan2(v[1]-b[1],n))*(l||0),h=Math.sin(m)*(l||0)}if(o&&(0,a.RV)(o)&&s){var x=(0,r.CR)(o.parentNode.getEndTangent(),2),v=x[0],b=x[1];n=v[0]-b[0],p=Math.cos(m=Math.atan2(v[1]-b[1],n))*(s||0),g=Math.sin(m)*(s||0)}for(var O=0;OP?E:P,I=E>P?1:E/P,D=E>P?P/E:1;t.translate(S,A),t.rotate(L),t.scale(I,D),t.arc(0,0,Z,R,T,!!(1-B)),t.scale(1/I,1/D),t.rotate(-L),t.translate(-S,-A)}j&&t.lineTo(w[6]+p,w[7]+g);break;case"Z":t.closePath()}}}function f(t,e){var n,r=e.markerStart,i=e.markerEnd,o=e.markerStartOffset,l=e.markerEndOffset,s=e.points.points,c=s.length,u=s[0][0],f=s[0][1],d=s[c-1][0],h=s[c-1][1],p=0,g=0,m=0,y=0,v=0;r&&(0,a.RV)(r)&&o&&(n=s[1][0]-s[0][0],p=Math.cos(v=Math.atan2(s[1][1]-s[0][1],n))*(o||0),g=Math.sin(v)*(o||0)),i&&(0,a.RV)(i)&&l&&(n=s[c-1][0]-s[0][0],m=Math.cos(v=Math.atan2(s[c-1][1]-s[0][1],n))*(l||0),y=Math.sin(v)*(l||0)),t.moveTo(u+(p||m),f+(g||y));for(var b=1;b0?1:-1,d=u>0?1:-1,h=f+d===0,p=(0,r.CR)(s.map(function(t){return(0,o.Z)(t,0,Math.min(Math.abs(c)/2,Math.abs(u)/2))}),4),g=p[0],m=p[1],y=p[2],v=p[3];t.moveTo(f*g+i,l),t.lineTo(c-f*m+i,l),0!==m&&t.arc(c-f*m+i,d*m+l,m,-d*Math.PI/2,f>0?0:Math.PI,h),t.lineTo(c+i,u-d*y+l),0!==y&&t.arc(c-f*y+i,u-d*y+l,y,f>0?0:Math.PI,d>0?Math.PI/2:1.5*Math.PI,h),t.lineTo(f*v+i,u+l),0!==v&&t.arc(f*v+i,u-d*v+l,v,d>0?Math.PI/2:-Math.PI/2,f>0?Math.PI:0,h),t.lineTo(i,d*g+l),0!==g&&t.arc(f*g+i,d*g+l,g,f>0?Math.PI:0,d>0?1.5*Math.PI:Math.PI/2,h)}else t.rect(i,l,c,u)}var p=function(t){function e(){var e=t.apply(this,(0,r.ev)([],(0,r.CR)(arguments),!1))||this;return e.name="canvas-path-generator",e}return(0,r.ZT)(e,t),e.prototype.init=function(){var t,e=((t={})[a.bn.CIRCLE]=l,t[a.bn.ELLIPSE]=s,t[a.bn.RECT]=h,t[a.bn.LINE]=c,t[a.bn.POLYLINE]=d,t[a.bn.POLYGON]=f,t[a.bn.PATH]=u,t[a.bn.TEXT]=void 0,t[a.bn.GROUP]=void 0,t[a.bn.IMAGE]=void 0,t[a.bn.HTML]=void 0,t[a.bn.MESH]=void 0,t);this.context.pathGeneratorFactory=e},e.prototype.destroy=function(){delete this.context.pathGeneratorFactory},e}(a.F6),g=n(80647),m=n(77160),y=n(85975),v=n(11702),b=n(74873),x=m.Ue(),O=m.Ue(),w=m.Ue(),_=y.create(),k=function(){function t(){var t=this;this.isHit=function(e,n,r,i){var a=t.context.pointInPathPickerFactory[e.nodeName];if(a){var o=y.invert(_,r),l=m.fF(O,m.t8(w,n[0],n[1],0),o);if(a(e,new g.E9(l[0],l[1]),i,t.isPointInPath,t.context,t.runtime))return!0}return!1},this.isPointInPath=function(e,n){var r=t.runtime.offscreenCanvasCreator.getOrCreateContext(t.context.config.offscreenCanvas),i=t.context.pathGeneratorFactory[e.nodeName];return i&&(r.beginPath(),i(r,e.parsedStyle),r.closePath()),r.isPointInPath(n.x,n.y)}}return t.prototype.apply=function(e,n){var i,a=this,o=e.renderingService,l=e.renderingContext;this.context=e,this.runtime=n;var s=null===(i=l.root)||void 0===i?void 0:i.ownerDocument;o.hooks.pick.tapPromise(t.tag,function(t){return(0,r.mG)(a,void 0,void 0,function(){return(0,r.Jh)(this,function(e){return[2,this.pick(s,t)]})})}),o.hooks.pickSync.tap(t.tag,function(t){return a.pick(s,t)})},t.prototype.pick=function(t,e){var n,i,a=e.topmost,o=e.position,l=o.x,s=o.y,c=m.t8(x,l,s,0),u=t.elementsFromBBox(c[0],c[1],c[0],c[1]),f=[];try{for(var d=(0,r.XA)(u),h=d.next();!h.done;h=d.next()){var p=h.value,y=p.getWorldTransform();if(this.isHit(p,c,y,!1)){var v=(0,g.Oi)(p);if(v){var b=v.parsedStyle.clipPath;if(this.isHit(b,c,b.getWorldTransform(),!0)){if(a)return e.picked=[p],e;f.push(p)}}else{if(a)return e.picked=[p],e;f.push(p)}}}}catch(t){n={error:t}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}return e.picked=f,e},t.tag="CanvasPicker",t}();function C(t,e,n){var i=t.parsedStyle,a=i.cx,o=i.cy,l=i.r,s=i.fill,c=i.stroke,u=i.lineWidth,f=i.increasedLineWidthForHitTesting,d=i.pointerEvents,h=((void 0===u?1:u)+(void 0===f?0:f))/2,p=(0,v.TE)(void 0===a?0:a,void 0===o?0:o,e.x,e.y),m=(0,r.CR)((0,g.L1)(void 0===d?"auto":d,s,c),2),y=m[0],b=m[1];return y&&b||n?p<=l+h:y?p<=l:!!b&&p>=l-h&&p<=l+h}function j(t,e,n){var i,a,o,l,s,c,u=t.parsedStyle,f=u.cx,d=void 0===f?0:f,h=u.cy,p=void 0===h?0:h,m=u.rx,y=u.ry,v=u.fill,b=u.stroke,x=u.lineWidth,O=u.increasedLineWidthForHitTesting,w=u.pointerEvents,_=e.x,k=e.y,C=(0,r.CR)((0,g.L1)(void 0===w?"auto":w,v,b),2),j=C[0],M=C[1],S=((void 0===x?1:x)+(void 0===O?0:O))/2,A=(_-d)*(_-d),E=(k-p)*(k-p);return j&&M||n?1>=A/((i=m+S)*i)+E/((a=y+S)*a):j?1>=A/(m*m)+E/(y*y):!!M&&A/((o=m-S)*o)+E/((l=y-S)*l)>=1&&1>=A/((s=m+S)*s)+E/((c=y+S)*c)}function M(t,e,n,r,i,a){return i>=t&&i<=t+n&&a>=e&&a<=e+r}function S(t,e,n,r,i,a,o,l){var s=(Math.atan2(l-e,o-t)+2*Math.PI)%(2*Math.PI),c={x:t+n*Math.cos(s),y:e+n*Math.sin(s)};return(0,v.TE)(c.x,c.y,o,l)<=a/2}function A(t,e,n,r,i,a,o){var l=Math.min(t,n),s=Math.max(t,n),c=Math.min(e,r),u=Math.max(e,r),f=i/2;return a>=l-f&&a<=s+f&&o>=c-f&&o<=u+f&&(0,v._x)(t,e,n,r,a,o)<=i/2}function E(t,e,n,r,i){var a=t.length;if(a<2)return!1;for(var o=0;oMath.abs(t)?0:t<0?-1:1}function R(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var a=0;a0!=P(s[1]-n)>0&&0>P(e-(n-l[1])*(l[0]-s[0])/(l[1]-s[1])-l[0])&&(r=!r)}return r}function T(t,e,n){for(var r=!1,i=0;ic&&g/p>u,e&&(e.resetTransform?e.resetTransform():e.setTransform(1,0,0,1,0,0),i.clearFullScreen&&i.clearRect(e,0,0,r*n,o*n,a.background))});var g=function(t,e){t.isVisible()&&!t.isCulled()&&i.renderDisplayObject(t,e,i.context,i.restoreStack,n),(t.sortable.sorted||t.childNodes).forEach(function(t){g(t,e)})};l.hooks.endFrame.tap(t.tag,function(){if(0===s.root.childNodes.length){i.clearFullScreenLastFrame=!0;return}i.clearFullScreenLastFrame=!1;var t=f.getContext(),e=f.getDPR();if(y.fromScaling(i.dprMatrix,[e,e,1]),y.multiply(i.vpMatrix,i.dprMatrix,o.getOrthoMatrix()),i.clearFullScreen)g(s.root,t);else{var l=i.safeMergeAABB.apply(i,(0,r.ev)([i.mergeDirtyAABBs(i.renderQueue)],(0,r.CR)(i.removedRBushNodeAABBs.map(function(t){var e=t.minX,n=t.minY,r=t.maxX,i=t.maxY,a=new F.mN;return a.setMinMax([e,n,0],[r,i,0]),a})),!1));if(i.removedRBushNodeAABBs=[],F.mN.isEmpty(l)){i.renderQueue=[];return}var c=i.convertAABB2Rect(l),u=c.x,h=c.y,p=c.width,v=c.height,b=m.fF(i.vec3a,[u,h,0],i.vpMatrix),x=m.fF(i.vec3b,[u+p,h,0],i.vpMatrix),O=m.fF(i.vec3c,[u,h+v,0],i.vpMatrix),w=m.fF(i.vec3d,[u+p,h+v,0],i.vpMatrix),_=Math.min(b[0],x[0],w[0],O[0]),k=Math.min(b[1],x[1],w[1],O[1]),C=Math.max(b[0],x[0],w[0],O[0]),j=Math.max(b[1],x[1],w[1],O[1]),M=Math.floor(_),S=Math.floor(k),A=Math.ceil(C-_),E=Math.ceil(j-k);t.save(),i.clearRect(t,M,S,A,E,a.background),t.beginPath(),t.rect(M,S,A,E),t.clip(),t.setTransform(i.vpMatrix[0],i.vpMatrix[1],i.vpMatrix[4],i.vpMatrix[5],i.vpMatrix[12],i.vpMatrix[13]),a.renderer.getConfig().enableDirtyRectangleRenderingDebug&&d.dispatchEvent(new F.Aw(F.$6.DIRTY_RECTANGLE,{dirtyRect:{x:M,y:S,width:A,height:E}})),i.searchDirtyObjects(l).sort(function(t,e){return t.sortable.renderOrder-e.sortable.renderOrder}).forEach(function(e){e&&e.isVisible()&&!e.isCulled()&&i.renderDisplayObject(e,t,i.context,i.restoreStack,n)}),t.restore(),i.renderQueue.forEach(function(t){i.saveDirtyAABB(t)}),i.renderQueue=[]}i.restoreStack.forEach(function(){t.restore()}),i.restoreStack=[]}),l.hooks.render.tap(t.tag,function(t){i.clearFullScreen||i.renderQueue.push(t)})},t.prototype.clearRect=function(t,e,n,r,i,a){t.clearRect(e,n,r,i),a&&(t.fillStyle=a,t.fillRect(e,n,r,i))},t.prototype.renderDisplayObject=function(t,e,n,r,i){var a=t.nodeName,o=r[r.length-1];o&&!(t.compareDocumentPosition(o)&F.NB.DOCUMENT_POSITION_CONTAINS)&&(e.restore(),r.pop());var l=this.context.styleRendererFactory[a],s=this.pathGeneratorFactory[a],c=t.parsedStyle.clipPath;if(c){this.applyWorldTransform(e,c);var u=this.pathGeneratorFactory[c.nodeName];u&&(e.save(),r.push(t),e.beginPath(),u(e,c.parsedStyle),e.closePath(),e.clip())}l&&(this.applyWorldTransform(e,t),e.save(),this.applyAttributesToContext(e,t)),s&&(e.beginPath(),s(e,t.parsedStyle),t.nodeName!==F.bn.LINE&&t.nodeName!==F.bn.PATH&&t.nodeName!==F.bn.POLYLINE&&e.closePath()),l&&(l.render(e,t.parsedStyle,t,n,this,i),e.restore()),t.renderable.dirty=!1},t.prototype.convertAABB2Rect=function(t){var e=t.getMin(),n=t.getMax(),r=Math.floor(e[0]),i=Math.floor(e[1]);return{x:r,y:i,width:Math.ceil(n[0])-r,height:Math.ceil(n[1])-i}},t.prototype.mergeDirtyAABBs=function(t){var e=new F.mN;return t.forEach(function(t){var n=t.getRenderBounds();e.add(n);var r=t.renderable.dirtyRenderBounds;r&&e.add(r)}),e},t.prototype.searchDirtyObjects=function(t){var e=(0,r.CR)(t.getMin(),2),n=e[0],i=e[1],a=(0,r.CR)(t.getMax(),2),o=a[0],l=a[1];return this.rBush.search({minX:n,minY:i,maxX:o,maxY:l}).map(function(t){return t.displayObject})},t.prototype.saveDirtyAABB=function(t){var e=t.renderable;e.dirtyRenderBounds||(e.dirtyRenderBounds=new F.mN);var n=t.getRenderBounds();n&&e.dirtyRenderBounds.update(n.center,n.halfExtents)},t.prototype.applyAttributesToContext=function(t,e){var n=e.parsedStyle,r=n.stroke,i=n.fill,a=n.opacity,o=n.lineDash,l=n.lineDashOffset;o&&t.setLineDash(o),(0,$.Z)(l)||(t.lineDashOffset=l),(0,$.Z)(a)||(t.globalAlpha*=a),(0,$.Z)(r)||Array.isArray(r)||r.isNone||(t.strokeStyle=e.attributes.stroke),(0,$.Z)(i)||Array.isArray(i)||i.isNone||(t.fillStyle=e.attributes.fill)},t.prototype.applyWorldTransform=function(t,e,n){n?(y.copy(this.tmpMat4,e.getLocalTransform()),y.multiply(this.tmpMat4,n,this.tmpMat4),y.multiply(this.tmpMat4,this.vpMatrix,this.tmpMat4)):(y.copy(this.tmpMat4,e.getWorldTransform()),y.multiply(this.tmpMat4,this.vpMatrix,this.tmpMat4)),t.setTransform(this.tmpMat4[0],this.tmpMat4[1],this.tmpMat4[4],this.tmpMat4[5],this.tmpMat4[12],this.tmpMat4[13])},t.prototype.safeMergeAABB=function(){for(var t=[],e=0;e0,k=(null==o?void 0:o.alpha)===0,C=!!(x&&x.length),j=!(0,$.Z)(v)&&b>0,M=n.nodeName,S="inner"===y,A=_&&j&&(M===F.bn.PATH||M===F.bn.LINE||M===F.bn.POLYLINE||k||S);w&&(t.globalAlpha=c*(void 0===u?1:u),A||q(n,t,j),U(t,n,o,l,r,i,a,this.imagePool),A||this.clearShadowAndFilter(t,C,j)),_&&(t.globalAlpha=c*(void 0===d?1:d),t.lineWidth=p,(0,$.Z)(O)||(t.miterLimit=O),(0,$.Z)(g)||(t.lineCap=g),(0,$.Z)(m)||(t.lineJoin=m),A&&(S&&(t.globalCompositeOperation="source-atop"),q(n,t,!0),S&&(Q(t,n,f,r,i,a,this.imagePool),t.globalCompositeOperation="source-over",this.clearShadowAndFilter(t,C,!0))),Q(t,n,f,r,i,a,this.imagePool))},t.prototype.clearShadowAndFilter=function(t,e,n){if(n&&(t.shadowColor="transparent",t.shadowBlur=0),e){var r=t.filter;!(0,$.Z)(r)&&r.indexOf("drop-shadow")>-1&&(t.filter=r.replace(/drop-shadow\([^)]*\)/,"").trim()||"none")}},t}();function q(t,e,n){var r=t.parsedStyle,i=r.filter,a=r.shadowColor,o=r.shadowBlur,l=r.shadowOffsetX,s=r.shadowOffsetY;i&&i.length&&(e.filter=t.style.filter),n&&(e.shadowColor=a.toString(),e.shadowBlur=o||0,e.shadowOffsetX=l||0,e.shadowOffsetY=s||0)}function Y(t,e,n,r,i,a,o){if("rect"===t.image.nodeName){var l,s,c=t.image.parsedStyle,u=c.width,f=c.height;s=r.contextService.getDPR();var d=r.config.offscreenCanvas;(l=a.offscreenCanvasCreator.getOrCreateCanvas(d)).width=u*s,l.height=f*s;var h=a.offscreenCanvasCreator.getOrCreateContext(d),p=[];t.image.forEach(function(t){i.renderDisplayObject(t,h,r,p,a)}),p.forEach(function(){h.restore()})}return o.getOrCreatePatternSync(t,n,l,s,e.getGeometryBounds().min,function(){e.renderable.dirty=!0,r.renderingService.dirtify()})}function V(t,e,n,i){var a;if(t.type===F.GL.LinearGradient||t.type===F.GL.RadialGradient){var o=e.getGeometryBounds(),l=o&&2*o.halfExtents[0]||1,s=o&&2*o.halfExtents[1]||1,c=o&&o.min||[0,0];a=i.getOrCreateGradient((0,r.pi)((0,r.pi)({type:t.type},t.value),{min:c,width:l,height:s}),n)}return a}function U(t,e,n,r,i,a,o,l,s){void 0===s&&(s=!1),Array.isArray(n)?n.forEach(function(n){t.fillStyle=V(n,e,t,l),s||(r?t.fill(r):t.fill())}):((0,F.R)(n)&&(t.fillStyle=Y(n,e,t,i,a,o,l)),s||(r?t.fill(r):t.fill()))}function Q(t,e,n,r,i,a,o,l){void 0===l&&(l=!1),Array.isArray(n)?n.forEach(function(n){t.strokeStyle=V(n,e,t,o),l||t.stroke()}):((0,F.R)(n)&&(t.strokeStyle=Y(n,e,t,r,i,a,o)),l||t.stroke())}var X=function(){function t(t){this.imagePool=t}return t.prototype.render=function(t,e,n){var r,i=e.x,a=e.y,o=e.width,l=e.height,s=e.src,c=e.shadowColor,u=e.shadowBlur,f=o,d=l;if((0,W.Z)(s)?r=this.imagePool.getImageSync(s):(f||(f=s.width),d||(d=s.height),r=s),r){q(n,t,!(0,$.Z)(c)&&u>0);try{t.drawImage(r,void 0===i?0:i,void 0===a?0:a,f,d)}catch(t){}}},t}(),K=function(){function t(t){this.imagePool=t}return t.prototype.render=function(t,e,n,r,i,a){n.getBounds();var o=e.lineWidth,l=void 0===o?1:o,s=e.textAlign,c=void 0===s?"start":s,u=e.textBaseline,f=void 0===u?"alphabetic":u,d=e.lineJoin,h=e.miterLimit,p=void 0===h?10:h,g=e.letterSpacing,m=void 0===g?0:g,y=e.stroke,v=e.fill,b=e.fillRule,x=e.fillOpacity,O=void 0===x?1:x,w=e.strokeOpacity,_=void 0===w?1:w,k=e.opacity,C=void 0===k?1:k,j=e.metrics,M=e.x,S=e.y,A=e.dx,E=e.dy,P=e.shadowColor,R=e.shadowBlur,T=j.font,L=j.lines,B=j.height,Z=j.lineHeight,I=j.lineMetrics;t.font=T,t.lineWidth=l,t.textAlign="middle"===c?"center":c;var D=f;a.enableCSSParsing||"alphabetic"!==D||(D="bottom"),t.lineJoin=void 0===d?"miter":d,(0,$.Z)(p)||(t.miterLimit=p);var N=void 0===S?0:S;"middle"===f?N+=-B/2-Z/2:"bottom"===f||"alphabetic"===f||"ideographic"===f?N+=-B:("top"===f||"hanging"===f)&&(N+=-Z);var z=(void 0===M?0:M)+(A||0);N+=E||0,1===L.length&&("bottom"===D?(D="middle",N-=.5*B):"top"===D&&(D="middle",N+=.5*B)),t.textBaseline=D,q(n,t,!(0,$.Z)(P)&&R>0);for(var F=0;F=1?Math.ceil(n):1,this.dpr=n,this.$canvas&&(this.$canvas.width=this.dpr*t,this.$canvas.height=this.dpr*e,(0,i.$p)(this.$canvas,t,e)),this.renderingContext.renderReasons.add(i.Rr.CAMERA_CHANGED)},t.prototype.applyCursorStyle=function(t){this.$container&&this.$container.style&&(this.$container.style.cursor=t)},t.prototype.toDataURL=function(t){return void 0===t&&(t={}),(0,r.mG)(this,void 0,void 0,function(){var e,n;return(0,r.Jh)(this,function(r){return e=t.type,n=t.encoderOptions,[2,this.context.canvas.toDataURL(e,n)]})})},t}(),td=function(t){function e(){var e=t.apply(this,(0,r.ev)([],(0,r.CR)(arguments),!1))||this;return e.name="canvas-context-register",e}return(0,r.ZT)(e,t),e.prototype.init=function(){this.context.ContextService=tf},e.prototype.destroy=function(){delete this.context.ContextService},e}(i.F6),th=function(t){function e(e){var n=t.call(this,e)||this;return n.registerPlugin(new td),n.registerPlugin(new tu),n.registerPlugin(new p),n.registerPlugin(new J),n.registerPlugin(new tn),n.registerPlugin(new z),n.registerPlugin(new to),n}return(0,r.ZT)(e,t),e}(i.I8)},41263:function(t){"use strict";var e=Object.prototype.hasOwnProperty,n="~";function r(){}function i(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function a(t,e,r,a,o){if("function"!=typeof r)throw TypeError("The listener must be a function");var l=new i(r,a||t,o),s=n?n+e:e;return t._events[s]?t._events[s].fn?t._events[s]=[t._events[s],l]:t._events[s].push(l):(t._events[s]=l,t._eventsCount++),t}function o(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function l(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1)),l.prototype.eventNames=function(){var t,r,i=[];if(0===this._eventsCount)return i;for(r in t=this._events)e.call(t,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},l.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,o=Array(a);i0?g[O]+" "+w:l(w,/&\f/g,g[O])).trim())&&(f[x++]=_);return b(t,e,n,0===a?E:c,f,d,h)}function Z(t,e,n,r){return b(t,e,n,P,u(t,0,r),u(t,r+1,-1),r)}var I=function(t,e,n){for(var r=0,i=0;r=i,i=w(),38===r&&12===i&&(e[n]=1),!_(i);)O();return u(v,t,m)},D=function(t,e){var n=-1,r=44;do switch(_(r)){case 0:38===r&&12===w()&&(e[n]=1),t[n]+=I(m-1,e,n);break;case 2:t[n]+=C(r);break;case 4:if(44===r){t[++n]=58===w()?"&\f":"",e[n]=t[n].length;break}default:t[n]+=a(r)}while(r=O());return t},N=function(t,e){var n;return n=D(k(t),e),v="",n},z=new WeakMap,F=function(t){if("rule"===t.type&&t.parent&&!(t.length<1)){for(var e=t.value,n=t.parent,r=t.column===n.column&&t.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==t.props.length||58===e.charCodeAt(0)||z.get(n))&&!r){z.set(t,!0);for(var i=[],a=N(e,i),o=n.props,l=0,s=0;l-1&&!t.return)switch(t.type){case P:t.return=function t(e,n){switch(45^c(e,0)?(((n<<2^c(e,0))<<2^c(e,1))<<2^c(e,2))<<2^c(e,3):0){case 5103:return S+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return S+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return S+e+M+e+j+e+e;case 6828:case 4268:return S+e+j+e+e;case 6165:return S+e+j+"flex-"+e+e;case 5187:return S+e+l(e,/(\w+).+(:[^]+)/,S+"box-$1$2"+j+"flex-$1$2")+e;case 5443:return S+e+j+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return S+e+j+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return S+e+j+l(e,"shrink","negative")+e;case 5292:return S+e+j+l(e,"basis","preferred-size")+e;case 6060:return S+"box-"+l(e,"-grow","")+S+e+j+l(e,"grow","positive")+e;case 4554:return S+l(e,/([^-])(transform)/g,"$1"+S+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,S+"$1"),/(image-set)/,S+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,S+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,S+"box-pack:$3"+j+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+S+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,S+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(f(e)-1-n>6)switch(c(e,n+1)){case 109:if(45!==c(e,n+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+S+"$2-$3$1"+M+(108==c(e,n+3)?"$3":"$2-$3"))+e;case 115:return~s(e,"stretch")?t(l(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(115!==c(e,n+1))break;case 6444:switch(c(e,f(e)-3-(~s(e,"!important")&&10))){case 107:return l(e,":",":"+S)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+S+(45===c(e,14)?"inline-":"")+"box$3$1"+S+"$2$3$1"+j+"$2box$3")+e}break;case 5936:switch(c(e,n+11)){case 114:return S+e+j+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return S+e+j+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return S+e+j+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return S+e+j+e+e}return e}(t.value,t.length);break;case R:return T([x(t,{value:l(t.value,"@","@"+S)})],r);case E:if(t.length)return t.props.map(function(e){var n;switch(n=e,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return T([x(t,{props:[l(e,/:(read-\w+)/,":"+M+"$1")]})],r);case"::placeholder":return T([x(t,{props:[l(e,/:(plac\w+)/,":"+S+"input-$1")]}),x(t,{props:[l(e,/:(plac\w+)/,":"+M+"$1")]}),x(t,{props:[l(e,/:(plac\w+)/,j+"input-$1")]})],r)}return""}).join("")}}],H=function(t){var e,n,i,o,g,x=t.key;if("css"===x){var j=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(j,function(t){-1!==t.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(t),t.setAttribute("data-s",""))})}var M=t.stylisPlugins||W,S={},E=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+x+' "]'),function(t){for(var e=t.getAttribute("data-emotion").split(" "),n=1;n2||_(y)>3?"":" "}(L);break;case 92:G+=function(t,e){for(var n;--e&&O()&&!(y<48)&&!(y>102)&&(!(y>57)||!(y<65))&&(!(y>70)||!(y<97)););return n=m+(e<6&&32==w()&&32==O()),u(v,t,n)}(m-1,7);continue;case 47:switch(w()){case 42:case 47:d(b(M=function(t,e){for(;O();)if(t+y===57)break;else if(t+y===84&&47===w())break;return"/*"+u(v,e,m-1)+"*"+a(47===t?t:O())}(O(),m),n,r,A,a(y),u(M,2,-2),0),j);break;default:G+="/"}break;case 123*I:k[S++]=f(G)*N;case 125*I:case 59:case 0:switch(z){case 0:case 125:D=0;case 59+E:-1==N&&(G=l(G,/\f/g,"")),T>0&&f(G)-P&&d(T>32?Z(G+";",i,r,P-1):Z(l(G," ","")+";",i,r,P-2),j);break;case 59:G+=";";default:if(d(H=B(G,n,r,S,E,o,k,F,$=[],W=[],P),g),123===z){if(0===E)t(G,n,H,H,$,g,P,k,W);else switch(99===R&&110===c(G,3)?100:R){case 100:case 108:case 109:case 115:t(e,H,H,i&&d(B(e,H,H,0,0,o,k,F,o,$=[],P),W),o,W,P,k,i?$:W);break;default:t(G,H,H,H,[""],W,0,k,W)}}}S=E=T=0,I=N=1,F=G="",P=x;break;case 58:P=1+f(G),T=L;default:if(I<1){if(123==z)--I;else if(125==z&&0==I++&&125==(y=m>0?c(v,--m):0,p--,10===y&&(p=1,h--),y))continue}switch(G+=a(z),z*I){case 38:N=E>0?1:(G+="\f",-1);break;case 44:k[S++]=(f(G)-1)*N,N=1;break;case 64:45===w()&&(G+=C(O())),R=w(),E=P=f(F=G+=function(t){for(;!_(w());)O();return u(v,t,m)}(m)),z++;break;case 45:45===L&&2==f(G)&&(I=0)}}return g}("",null,null,null,[""],e=k(e=t),0,[0],e),v="",n),P)},I={key:x,sheet:new r({key:x,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:S,registered:{},insert:function(t,e,n,r){g=n,R(t?t+"{"+e.styles+"}":e.styles),r&&(I.inserted[e.name]=!0)}};return I.sheet.hydrate(E),I}},45042:function(t,e,n){"use strict";function r(t){var e=Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}n.d(e,{Z:function(){return r}})},6498:function(t,e,n){"use strict";n.d(e,{C:function(){return l},T:function(){return c},i:function(){return a},w:function(){return s}});var r=n(67294),i=n(8417);n(26346),n(27278);var a=!0,o=r.createContext("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null),l=o.Provider,s=function(t){return(0,r.forwardRef)(function(e,n){return t(e,(0,r.useContext)(o),n)})};a||(s=function(t){return function(e){var n=(0,r.useContext)(o);return null===n?(n=(0,i.Z)({key:"css"}),r.createElement(o.Provider,{value:n},t(e,n))):t(e,n)}});var c=r.createContext({})},70917:function(t,e,n){"use strict";n.d(e,{F4:function(){return u},iv:function(){return c},xB:function(){return s}});var r=n(6498),i=n(67294),a=n(70444),o=n(27278),l=n(26346);n(8417),n(8679);var s=(0,r.w)(function(t,e){var n=t.styles,s=(0,l.O)([n],void 0,i.useContext(r.T));if(!r.i){for(var c,u=s.name,f=s.styles,d=s.next;void 0!==d;)u+=" "+d.name,f+=d.styles,d=d.next;var h=!0===e.compat,p=e.insert("",{name:u,styles:f},e.sheet,h);return h?null:i.createElement("style",((c={})["data-emotion"]=e.key+"-global "+u,c.dangerouslySetInnerHTML={__html:p},c.nonce=e.sheet.nonce,c))}var g=i.useRef();return(0,o.j)(function(){var t=e.key+"-global",n=new e.sheet.constructor({key:t,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+t+" "+s.name+'"]');return e.sheet.tags.length&&(n.before=e.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",t),n.hydrate([i])),g.current=[n,r],function(){n.flush()}},[e]),(0,o.j)(function(){var t=g.current,n=t[0];if(t[1]){t[1]=!1;return}if(void 0!==s.next&&(0,a.My)(e,s.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}e.insert("",s,n,!1)},[e,s.name]),null});function c(){for(var t=arguments.length,e=Array(t),n=0;n=4;++r,i-=4)e=(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))*1540483477+((e>>>16)*59797<<16),e^=e>>>24,n=(65535&e)*1540483477+((e>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(i){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n^=255&t.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(o)+c,styles:o,next:r}}},94371:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},27278:function(t,e,n){"use strict";n.d(e,{L:function(){return o},j:function(){return l}});var r,i=n(67294),a=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,o=a||function(t){return t()},l=a||i.useLayoutEffect},70444:function(t,e,n){"use strict";function r(t,e,n){var r="";return n.split(" ").forEach(function(n){void 0!==t[n]?e.push(t[n]+";"):r+=n+" "}),r}n.d(e,{My:function(){return a},fp:function(){return r},hC:function(){return i}});var i=function(t,e,n){var r=t.key+"-"+e.name;!1===n&&void 0===t.registered[r]&&(t.registered[r]=e.styles)},a=function(t,e,n){i(t,e,n);var r=t.key+"-"+e.name;if(void 0===t.inserted[e.name]){var a=e;do t.insert(e===a?"."+r:"",a,t.sheet,!0),a=a.next;while(void 0!==a)}}},10238:function(t,e,n){"use strict";n.d(e,{$:function(){return a}});var r=n(87462),i=n(28442);function a(t,e,n){return void 0===t||(0,i.X)(t)?e:(0,r.Z)({},e,{ownerState:(0,r.Z)({},e.ownerState,n)})}},30437:function(t,e,n){"use strict";function r(t,e=[]){if(void 0===t)return{};let n={};return Object.keys(t).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof t[n]&&!e.includes(n)).forEach(e=>{n[e]=t[e]}),n}n.d(e,{_:function(){return r}})},28442:function(t,e,n){"use strict";function r(t){return"string"==typeof t}n.d(e,{X:function(){return r}})},24407:function(t,e,n){"use strict";n.d(e,{L:function(){return l}});var r=n(87462),i=n(90512),a=n(30437);function o(t){if(void 0===t)return{};let e={};return Object.keys(t).filter(e=>!(e.match(/^on[A-Z]/)&&"function"==typeof t[e])).forEach(n=>{e[n]=t[n]}),e}function l(t){let{getSlotProps:e,additionalProps:n,externalSlotProps:l,externalForwardedProps:s,className:c}=t;if(!e){let t=(0,i.Z)(null==s?void 0:s.className,null==l?void 0:l.className,c,null==n?void 0:n.className),e=(0,r.Z)({},null==n?void 0:n.style,null==s?void 0:s.style,null==l?void 0:l.style),a=(0,r.Z)({},n,s,l);return t.length>0&&(a.className=t),Object.keys(e).length>0&&(a.style=e),{props:a,internalRef:void 0}}let u=(0,a._)((0,r.Z)({},s,l)),f=o(l),d=o(s),h=e(u),p=(0,i.Z)(null==h?void 0:h.className,null==n?void 0:n.className,c,null==s?void 0:s.className,null==l?void 0:l.className),g=(0,r.Z)({},null==h?void 0:h.style,null==n?void 0:n.style,null==s?void 0:s.style,null==l?void 0:l.style),m=(0,r.Z)({},h,n,d,f);return p.length>0&&(m.className=p),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:h.ref}}},71276:function(t,e,n){"use strict";function r(t,e,n){return"function"==typeof t?t(e,n):t}n.d(e,{x:function(){return r}})},41118:function(t,e,n){"use strict";n.d(e,{Z:function(){return w}});var r=n(63366),i=n(87462),a=n(67294),o=n(90512),l=n(58510),s=n(62908),c=n(16485),u=n(20407),f=n(74312),d=n(2226),h=n(26821);function p(t){return(0,h.d6)("MuiCard",t)}(0,h.sI)("MuiCard",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","horizontal","vertical"]);var g=n(58859),m=n(30220),y=n(85893);let v=["className","color","component","invertedColors","size","variant","children","orientation","slots","slotProps"],b=t=>{let{size:e,variant:n,color:r,orientation:i}=t,a={root:["root",i,n&&`variant${(0,s.Z)(n)}`,r&&`color${(0,s.Z)(r)}`,e&&`size${(0,s.Z)(e)}`]};return(0,l.Z)(a,p,{})},x=(0,f.Z)("div",{name:"JoyCard",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t,ownerState:e})=>{var n,r;let{p:a,padding:o,borderRadius:l}=(0,g.V)({theme:t,ownerState:e},["p","padding","borderRadius"]);return[(0,i.Z)({"--Icon-color":"neutral"!==e.color||"solid"===e.variant?"currentColor":t.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"===e.size&&{"--Card-radius":t.vars.radius.sm,"--Card-padding":"0.625rem",gap:"0.5rem"},"md"===e.size&&{"--Card-radius":t.vars.radius.md,"--Card-padding":"1rem",gap:"0.75rem 1rem"},"lg"===e.size&&{"--Card-radius":t.vars.radius.lg,"--Card-padding":"1.5rem",gap:"1rem 1.5rem"},{padding:"var(--Card-padding)",borderRadius:"var(--Card-radius)",backgroundColor:t.vars.palette.background.surface,position:"relative",display:"flex",flexDirection:"horizontal"===e.orientation?"row":"column"},t.typography[`body-${e.size}`],null==(n=t.variants[e.variant])?void 0:n[e.color]),"context"!==e.color&&e.invertedColors&&(null==(r=t.colorInversion[e.variant])?void 0:r[e.color]),void 0!==a&&{"--Card-padding":a},void 0!==o&&{"--Card-padding":o},void 0!==l&&{"--Card-radius":l}]}),O=a.forwardRef(function(t,e){let n=(0,u.Z)({props:t,name:"JoyCard"}),{className:l,color:s="neutral",component:f="div",invertedColors:h=!1,size:p="md",variant:g="outlined",children:O,orientation:w="vertical",slots:_={},slotProps:k={}}=n,C=(0,r.Z)(n,v),{getColor:j}=(0,d.VT)(g),M=j(t.color,s),S=(0,i.Z)({},n,{color:M,component:f,orientation:w,size:p,variant:g}),A=b(S),E=(0,i.Z)({},C,{component:f,slots:_,slotProps:k}),[P,R]=(0,m.Z)("root",{ref:e,className:(0,o.Z)(A.root,l),elementType:x,externalForwardedProps:E,ownerState:S}),T=(0,y.jsx)(P,(0,i.Z)({},R,{children:a.Children.map(O,(t,e)=>{if(!a.isValidElement(t))return t;let n={};if((0,c.Z)(t,["Divider"])){n.inset="inset"in t.props?t.props.inset:"context";let e="vertical"===w?"horizontal":"vertical";n.orientation="orientation"in t.props?t.props.orientation:e}return(0,c.Z)(t,["CardOverflow"])&&("horizontal"===w&&(n["data-parent"]="Card-horizontal"),"vertical"===w&&(n["data-parent"]="Card-vertical")),0===e&&(n["data-first-child"]=""),e===a.Children.count(O)-1&&(n["data-last-child"]=""),a.cloneElement(t,n)})}));return h?(0,y.jsx)(d.do,{variant:g,children:T}):T});var w=O},30208:function(t,e,n){"use strict";n.d(e,{Z:function(){return b}});var r=n(87462),i=n(63366),a=n(67294),o=n(90512),l=n(58510),s=n(20407),c=n(74312),u=n(26821);function f(t){return(0,u.d6)("MuiCardContent",t)}(0,u.sI)("MuiCardContent",["root"]);let d=(0,u.sI)("MuiCardOverflow",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var h=n(30220),p=n(85893);let g=["className","component","children","orientation","slots","slotProps"],m=()=>(0,l.Z)({root:["root"]},f,{}),y=(0,c.Z)("div",{name:"JoyCardContent",slot:"Root",overridesResolver:(t,e)=>e.root})(({ownerState:t})=>({display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column",flex:9999,zIndex:1,columnGap:"var(--Card-padding)",rowGap:"max(2px, calc(0.1875 * var(--Card-padding)))",padding:"var(--unstable_padding)",[`.${d.root} > &`]:{"--unstable_padding":"calc(var(--Card-padding) * 0.75) 0px"}})),v=a.forwardRef(function(t,e){let n=(0,s.Z)({props:t,name:"JoyCardContent"}),{className:a,component:l="div",children:c,orientation:u="vertical",slots:f={},slotProps:d={}}=n,v=(0,i.Z)(n,g),b=(0,r.Z)({},v,{component:l,slots:f,slotProps:d}),x=(0,r.Z)({},n,{component:l,orientation:u}),O=m(),[w,_]=(0,h.Z)("root",{ref:e,className:(0,o.Z)(O.root,a),elementType:y,externalForwardedProps:b,ownerState:x});return(0,p.jsx)(w,(0,r.Z)({},_,{children:c}))});var b=v},61685:function(t,e,n){"use strict";n.d(e,{Z:function(){return w}});var r=n(63366),i=n(87462),a=n(67294),o=n(90512),l=n(62908),s=n(58510),c=n(20407),u=n(2226),f=n(74312),d=n(26821);function h(t){return(0,d.d6)("MuiTable",t)}(0,d.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=n(40911),g=n(30220),m=n(85893);let y=["className","component","children","borderAxis","hoverRow","noWrap","size","variant","color","stripe","stickyHeader","stickyFooter","slots","slotProps"],v=t=>{let{size:e,variant:n,color:r,borderAxis:i,stickyHeader:a,stickyFooter:o,noWrap:c,hoverRow:u}=t,f={root:["root",a&&"stickyHeader",o&&"stickyFooter",c&&"noWrap",u&&"hoverRow",i&&`borderAxis${(0,l.Z)(i)}`,n&&`variant${(0,l.Z)(n)}`,r&&`color${(0,l.Z)(r)}`,e&&`size${(0,l.Z)(e)}`]};return(0,s.Z)(f,h,{})},b={getColumnExceptFirst:()=>"& tr > *:not(:first-of-type), & tr > th + td, & tr > td + th",getCell:()=>"& th, & td",getHeadCell:()=>"& th",getHeaderCell:()=>"& thead th",getHeaderCellOfRow:t=>`& thead tr:nth-of-type(${t}) 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:t=>"number"==typeof t&&t<0?`& tbody tr:nth-last-of-type(${Math.abs(t)}) td, & tbody tr:nth-last-of-type(${Math.abs(t)}) th[scope="row"]`:`& tbody tr:nth-of-type(${t}) td, & tbody tr:nth-of-type(${t}) th[scope="row"]`,getBodyRow:t=>void 0===t?"& tbody tr":`& tbody tr:nth-of-type(${t})`,getFooterCell:()=>"& tfoot th, & tfoot td",getFooterFirstRowCell:()=>"& tfoot tr:not(:last-of-type) th, & tfoot tr:not(:last-of-type) td"},x=(0,f.Z)("table",{name:"JoyTable",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t,ownerState:e})=>{var n,r,a,o,l,s,c;let u=null==(n=t.variants[e.variant])?void 0:n[e.color];return[(0,i.Z)({"--Table-headerUnderlineThickness":"2px","--TableCell-borderColor":null!=(r=null==u?void 0:u.borderColor)?r:t.vars.palette.divider,"--TableCell-headBackground":`var(--Sheet-background, ${t.vars.palette.background.surface})`},"sm"===e.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 32px)","--TableCell-paddingX":"0.25rem","--TableCell-paddingY":"0.25rem"},"md"===e.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 40px)","--TableCell-paddingX":"0.5rem","--TableCell-paddingY":"0.375rem"},"lg"===e.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))"},t.typography[`body-${({sm:"xs",md:"sm",lg:"md"})[e.size]}`],null==(a=t.variants[e.variant])?void 0:a[e.color],{"& caption":{color:t.vars.palette.text.tertiary,padding:"calc(2 * var(--TableCell-paddingY)) var(--TableCell-paddingX)"},[b.getDataCell()]:(0,i.Z)({padding:"var(--TableCell-paddingY) var(--TableCell-paddingX)",height:"var(--unstable_TableCell-height)",borderColor:"var(--TableCell-borderColor)",backgroundColor:"var(--TableCell-dataBackground)"},e.noWrap&&{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}),[b.getHeadCell()]:{textAlign:"left",padding:"var(--TableCell-paddingY) var(--TableCell-paddingX)",backgroundColor:"var(--TableCell-headBackground)",height:"var(--unstable_TableCell-height)",fontWeight:t.vars.fontWeight.lg,borderColor:"var(--TableCell-borderColor)",color:t.vars.palette.text.secondary,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},[b.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, ${t.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==(o=e.borderAxis)?void 0:o.startsWith("x"))||(null==(l=e.borderAxis)?void 0:l.startsWith("both")))&&{[b.getHeaderCell()]:{borderBottomWidth:1,borderBottomStyle:"solid"},[b.getBottomHeaderCell()]:{borderBottomWidth:"var(--Table-headerUnderlineThickness)",borderBottomStyle:"solid"},[b.getBodyCellExceptLastRow()]:{borderBottomWidth:1,borderBottomStyle:"solid"},[b.getFooterCell()]:{borderTopWidth:1,borderTopStyle:"solid"}},((null==(s=e.borderAxis)?void 0:s.startsWith("y"))||(null==(c=e.borderAxis)?void 0:c.startsWith("both")))&&{[`${b.getColumnExceptFirst()}, ${b.getHeaderNestedFirstColumn()}`]:{borderLeftWidth:1,borderLeftStyle:"solid"}},("x"===e.borderAxis||"both"===e.borderAxis)&&{[b.getHeaderCellOfRow(1)]:{borderTopWidth:1,borderTopStyle:"solid"},[b.getBodyCellOfRow(-1)]:{borderBottomWidth:1,borderBottomStyle:"solid"},[b.getFooterCell()]:{borderBottomWidth:1,borderBottomStyle:"solid"}},("y"===e.borderAxis||"both"===e.borderAxis)&&{"& tr > *:first-of-type":{borderLeftWidth:1,borderLeftStyle:"solid"},"& tr > *:last-of-type:not(:first-of-type)":{borderRightWidth:1,borderRightStyle:"solid"}},e.stripe&&{[b.getBodyRow(e.stripe)]:{background:`var(--TableRow-stripeBackground, ${t.vars.palette.background.level2})`,color:t.vars.palette.text.primary}},e.hoverRow&&{[b.getBodyRow()]:{"&:hover":{background:`var(--TableRow-hoverBackground, ${t.vars.palette.background.level3})`}}},e.stickyHeader&&{[b.getHeaderCell()]:{position:"sticky",top:0,zIndex:t.vars.zIndex.table},[b.getHeaderCellOfRow(2)]:{top:"var(--unstable_TableCell-height)"}},e.stickyFooter&&{[b.getFooterCell()]:{position:"sticky",bottom:0,zIndex:t.vars.zIndex.table,color:t.vars.palette.text.secondary,fontWeight:t.vars.fontWeight.lg},[b.getFooterFirstRowCell()]:{bottom:"var(--unstable_TableCell-height)"}}]}),O=a.forwardRef(function(t,e){let n=(0,c.Z)({props:t,name:"JoyTable"}),{className:a,component:l,children:s,borderAxis:f="xBetween",hoverRow:d=!1,noWrap:h=!1,size:b="md",variant:O="plain",color:w="neutral",stripe:_,stickyHeader:k=!1,stickyFooter:C=!1,slots:j={},slotProps:M={}}=n,S=(0,r.Z)(n,y),{getColor:A}=(0,u.VT)(O),E=A(t.color,w),P=(0,i.Z)({},n,{borderAxis:f,hoverRow:d,noWrap:h,component:l,size:b,color:E,variant:O,stripe:_,stickyHeader:k,stickyFooter:C}),R=v(P),T=(0,i.Z)({},S,{component:l,slots:j,slotProps:M}),[L,B]=(0,g.Z)("root",{ref:e,className:(0,o.Z)(R.root,a),elementType:x,externalForwardedProps:T,ownerState:P});return(0,m.jsx)(p.eu.Provider,{value:!0,children:(0,m.jsx)(L,(0,i.Z)({},B,{children:s}))})});var w=O},40911:function(t,e,n){"use strict";n.d(e,{eu:function(){return x},ZP:function(){return M}});var r=n(63366),i=n(87462),a=n(67294),o=n(62908),l=n(16485),s=n(39707),c=n(58510),u=n(74312),f=n(20407),d=n(2226),h=n(30220),p=n(26821);function g(t){return(0,p.d6)("MuiTypography",t)}(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=n(85893);let y=["color","textColor"],v=["component","gutterBottom","noWrap","level","levelMapping","children","endDecorator","startDecorator","variant","slots","slotProps"],b=a.createContext(!1),x=a.createContext(!1),O=t=>{let{gutterBottom:e,noWrap:n,level:r,color:i,variant:a}=t,l={root:["root",r,e&&"gutterBottom",n&&"noWrap",i&&`color${(0,o.Z)(i)}`,a&&`variant${(0,o.Z)(a)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,c.Z)(l,g,{})},w=(0,u.Z)("span",{name:"JoyTypography",slot:"StartDecorator",overridesResolver:(t,e)=>e.startDecorator})({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),_=(0,u.Z)("span",{name:"JoyTypography",slot:"endDecorator",overridesResolver:(t,e)=>e.endDecorator})({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),k=(0,u.Z)("span",{name:"JoyTypography",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t,ownerState:e})=>{var n,r,a,o,l;let s="inherit"!==e.level?null==(n=t.typography[e.level])?void 0:n.lineHeight:"1";return(0,i.Z)({"--Icon-fontSize":`calc(1em * ${s})`},e.color&&{"--Icon-color":"currentColor"},{margin:"var(--Typography-margin, 0px)"},e.nesting?{display:"inline"}:(0,i.Z)({display:"block"},e.unstable_hasSkeleton&&{position:"relative"}),(e.startDecorator||e.endDecorator)&&(0,i.Z)({display:"flex",alignItems:"center"},e.nesting&&(0,i.Z)({display:"inline-flex"},e.startDecorator&&{verticalAlign:"bottom"})),e.level&&"inherit"!==e.level&&t.typography[e.level],{fontSize:`var(--Typography-fontSize, ${e.level&&"inherit"!==e.level&&null!=(r=null==(a=t.typography[e.level])?void 0:a.fontSize)?r:"inherit"})`},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.color&&"context"!==e.color&&{color:`rgba(${null==(o=t.vars.palette[e.color])?void 0:o.mainChannel} / 1)`},e.variant&&(0,i.Z)({borderRadius:t.vars.radius.xs,paddingBlock:"min(0.1em, 4px)",paddingInline:"0.25em"},!e.nesting&&{marginInline:"-0.25em"},null==(l=t.variants[e.variant])?void 0:l[e.color]))}),C={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"},j=a.forwardRef(function(t,e){let n=(0,f.Z)({props:t,name:"JoyTypography"}),{color:o,textColor:c}=n,u=(0,r.Z)(n,y),p=a.useContext(b),g=a.useContext(x),j=(0,s.Z)((0,i.Z)({},u,{color:c})),{component:M,gutterBottom:S=!1,noWrap:A=!1,level:E="body-md",levelMapping:P=C,children:R,endDecorator:T,startDecorator:L,variant:B,slots:Z={},slotProps:I={}}=j,D=(0,r.Z)(j,v),{getColor:N}=(0,d.VT)(B),z=N(t.color,B?null!=o?o:"neutral":o),F=p||g?t.level||"inherit":E,$=(0,l.Z)(R,["Skeleton"]),W=M||(p?"span":P[F]||C[F]||"span"),H=(0,i.Z)({},j,{level:F,component:W,color:z,gutterBottom:S,noWrap:A,nesting:p,variant:B,unstable_hasSkeleton:$}),G=O(H),q=(0,i.Z)({},D,{component:W,slots:Z,slotProps:I}),[Y,V]=(0,h.Z)("root",{ref:e,className:G.root,elementType:k,externalForwardedProps:q,ownerState:H}),[U,Q]=(0,h.Z)("startDecorator",{className:G.startDecorator,elementType:w,externalForwardedProps:q,ownerState:H}),[X,K]=(0,h.Z)("endDecorator",{className:G.endDecorator,elementType:_,externalForwardedProps:q,ownerState:H});return(0,m.jsx)(b.Provider,{value:!0,children:(0,m.jsxs)(Y,(0,i.Z)({},V,{children:[L&&(0,m.jsx)(U,(0,i.Z)({},Q,{children:L})),$?a.cloneElement(R,{variant:R.props.variant||"inline"}):R,T&&(0,m.jsx)(X,(0,i.Z)({},K,{children:T}))]}))})});j.muiName="Typography";var M=j},26821:function(t,e,n){"use strict";n.d(e,{d6:function(){return a},sI:function(){return o}});var r=n(8027),i=n(1977);let a=(t,e)=>(0,r.ZP)(t,e,"Mui"),o=(t,e)=>(0,i.Z)(t,e,"Mui")},2226:function(t,e,n){"use strict";n.d(e,{do:function(){return f},ZP:function(){return d},VT:function(){return u}});var r=n(67294),i=n(79718),a=n(67299),o=n(2548),l=n(85893);let s=()=>{let t=(0,i.Z)(a.Z);return t[o.Z]||t},c=r.createContext(void 0),u=t=>{let e=r.useContext(c);return{getColor:(n,r)=>e&&t&&e.includes(t)?n||"context":n||r}};function f({children:t,variant:e}){var n;let r=s();return(0,l.jsx)(c.Provider,{value:e?(null!=(n=r.colorInversionConfig)?n:a.Z.colorInversionConfig)[e]:void 0,children:t})}var d=c},67299:function(t,e,n){"use strict";n.d(e,{Z:function(){return B}});var r=n(87462),i=n(63366),a=n(68027);function o(t=""){return(e,...n)=>`var(--${t?`${t}-`:""}${e}${function e(...n){if(!n.length)return"";let r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${t?`${t}-`:""}${r}${e(...n.slice(1))})`}(...n)})`}var l=n(78758);let s=t=>{let e=function t(e){let n;if(e.type)return e;if("#"===e.charAt(0))return t(function(t){t=t.slice(1);let e=RegExp(`.{1,${t.length>=6?2:1}}`,"g"),n=t.match(e);return n&&1===n[0].length&&(n=n.map(t=>t+t)),n?`rgb${4===n.length?"a":""}(${n.map((t,e)=>e<3?parseInt(t,16):Math.round(parseInt(t,16)/255*1e3)/1e3).join(", ")})`:""}(e));let r=e.indexOf("("),i=e.substring(0,r);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(i))throw Error((0,l.Z)(9,e));let a=e.substring(r+1,e.length-1);if("color"===i){if(n=(a=a.split(" ")).shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw Error((0,l.Z)(10,n))}else a=a.split(",");return{type:i,values:a=a.map(t=>parseFloat(t)),colorSpace:n}}(t);return e.values.slice(0,3).map((t,n)=>-1!==e.type.indexOf("hsl")&&0!==n?`${t}%`:t).join(" ")};var c=n(41512),u=n(98373),f=n(83997);let d=(t,e,n,r=[])=>{let i=t;e.forEach((t,a)=>{a===e.length-1?Array.isArray(i)?i[Number(t)]=n:i&&"object"==typeof i&&(i[t]=n):i&&"object"==typeof i&&(i[t]||(i[t]=r.includes(t)?[]:{}),i=i[t])})},h=(t,e,n)=>{!function t(r,i=[],a=[]){Object.entries(r).forEach(([r,o])=>{n&&(!n||n([...i,r]))||null==o||("object"==typeof o&&Object.keys(o).length>0?t(o,[...i,r],Array.isArray(o)?[...a,r]:a):e([...i,r],o,a))})}(t)},p=(t,e)=>{if("number"==typeof e){if(["lineHeight","fontWeight","opacity","zIndex"].some(e=>t.includes(e)))return e;let n=t[t.length-1];return n.toLowerCase().indexOf("opacity")>=0?e:`${e}px`}return e};function g(t,e){let{prefix:n,shouldSkipGeneratingVar:r}=e||{},i={},a={},o={};return h(t,(t,e,l)=>{if(("string"==typeof e||"number"==typeof e)&&(!r||!r(t,e))){let r=`--${n?`${n}-`:""}${t.join("-")}`;Object.assign(i,{[r]:p(t,e)}),d(a,t,`var(${r})`,l),d(o,t,`var(${r}, ${e})`,l)}},t=>"vars"===t[0]),{css:i,vars:a,varsWithDefaults:o}}let m=["colorSchemes","components","defaultColorScheme"];var y=function(t,e){let{colorSchemes:n={},defaultColorScheme:o="light"}=t,l=(0,i.Z)(t,m),{vars:s,css:c,varsWithDefaults:u}=g(l,e),d=u,h={},{[o]:p}=n,y=(0,i.Z)(n,[o].map(f.Z));if(Object.entries(y||{}).forEach(([t,n])=>{let{vars:r,css:i,varsWithDefaults:o}=g(n,e);d=(0,a.Z)(d,o),h[t]={css:i,vars:r}}),p){let{css:t,vars:n,varsWithDefaults:r}=g(p,e);d=(0,a.Z)(d,r),h[o]={css:t,vars:n}}return{vars:d,generateCssVars:t=>{var n,i;if(!t){let n=(0,r.Z)({},c);return{css:n,vars:s,selector:(null==e||null==(i=e.getSelector)?void 0:i.call(e,t,n))||":root"}}let a=(0,r.Z)({},h[t].css);return{css:a,vars:h[t].vars,selector:(null==e||null==(n=e.getSelector)?void 0:n.call(e,t,a))||":root"}}}},v=n(86523),b=n(44920);let x=(0,r.Z)({},b.Z,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}});var O={grey:{50:"#F5F7FA",100:"#EAEEF6",200:"#DDE7EE",300:"#CDD7E1",400:"#9FA6AD",500:"#636B74",600:"#555E68",700:"#32383E",800:"#23272B",900:"#121416"},blue:{50:"#EDF5FD",100:"#E3EFFB",200:"#C7DFF7",300:"#97C3F0",400:"#4393E4",500:"#0B6BCB",600:"#185EA5",700:"#12467B",800:"#0A2744",900:"#051423"},yellow:{50:"#FEFAF6",100:"#FDF0E1",200:"#FCE1C2",300:"#F3C896",400:"#EA9A3E",500:"#9A5B13",600:"#72430D",700:"#492B08",800:"#2E1B05",900:"#1D1002"},red:{50:"#FEF6F6",100:"#FCE4E4",200:"#F7C5C5",300:"#F09898",400:"#E47474",500:"#C41C1C",600:"#A51818",700:"#7D1212",800:"#430A0A",900:"#240505"},green:{50:"#F6FEF6",100:"#E3FBE3",200:"#C7F7C7",300:"#A1E8A1",400:"#51BC51",500:"#1F7A1F",600:"#136C13",700:"#0A470A",800:"#042F04",900:"#021D02"}};function w(t){var e;return!!t[0].match(/^(typography|variants|breakpoints|colorInversion|colorInversionConfig)$/)||!!t[0].match(/sxConfig$/)||"palette"===t[0]&&!!(null!=(e=t[1])&&e.match(/^(mode)$/))||"focus"===t[0]&&"thickness"!==t[1]}var _=n(26821);let k=t=>t&&"object"==typeof t&&Object.keys(t).some(t=>{var e;return null==(e=t.match)?void 0:e.call(t,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)}),C=(t,e,n)=>{e.includes("Color")&&(t.color=n),e.includes("Bg")&&(t.backgroundColor=n),e.includes("Border")&&(t.borderColor=n)},j=(t,e,n)=>{let r={};return Object.entries(e||{}).forEach(([e,i])=>{if(e.match(RegExp(`${t}(color|bg|border)`,"i"))&&i){let t=n?n(e):i;e.includes("Disabled")&&(r.pointerEvents="none",r.cursor="default",r["--Icon-color"]="currentColor"),e.match(/(Hover|Active|Disabled)/)||(r["--variant-borderWidth"]||(r["--variant-borderWidth"]="0px"),e.includes("Border")&&(r["--variant-borderWidth"]="1px",r.border="var(--variant-borderWidth) solid")),C(r,e,t)}}),r},M=t=>e=>`--${t?`${t}-`:""}${e.replace(/^--/,"")}`,S=(t,e)=>{let n={};if(e){let{getCssVar:i,palette:a}=e;Object.entries(a).forEach(e=>{let[o,l]=e;k(l)&&"object"==typeof l&&(n=(0,r.Z)({},n,{[o]:j(t,l,t=>i(`palette-${o}-${t}`,a[o][t]))}))})}return n.context=j(t,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),n},A=(t,e)=>{let n=o(t.cssVarPrefix),r=M(t.cssVarPrefix),i={},a=e?e=>{var r;let i=e.split("-"),a=i[1],o=i[2];return n(e,null==(r=t.palette)||null==(r=r[a])?void 0:r[o])}:n;return Object.entries(t.palette).forEach(e=>{let[n,o]=e;k(o)&&(i[n]={"--Badge-ringColor":a(`palette-${n}-softBg`),[t.getColorSchemeSelector("dark")]:{[r("--palette-focusVisible")]:a(`palette-${n}-300`),[r("--palette-background-body")]:`rgba(${a(`palette-${n}-mainChannel`)} / 0.1)`,[r("--palette-background-surface")]:`rgba(${a(`palette-${n}-mainChannel`)} / 0.08)`,[r("--palette-background-level1")]:`rgba(${a(`palette-${n}-mainChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${a(`palette-${n}-mainChannel`)} / 0.4)`,[r("--palette-background-level3")]:`rgba(${a(`palette-${n}-mainChannel`)} / 0.6)`,[r("--palette-text-primary")]:a(`palette-${n}-100`),[r("--palette-text-secondary")]:`rgba(${a(`palette-${n}-lightChannel`)} / 0.72)`,[r("--palette-text-tertiary")]:`rgba(${a(`palette-${n}-lightChannel`)} / 0.6)`,[r("--palette-text-icon")]:`rgba(${a(`palette-${n}-lightChannel`)} / 0.6)`,[r("--palette-divider")]:`rgba(${a(`palette-${n}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${a(`palette-${n}-lightChannel`)} / 1)`,"--variant-plainHoverColor":a(`palette-${n}-50`),"--variant-plainHoverBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${a(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${a(`palette-${n}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":a(`palette-${n}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${a(`palette-${n}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":a(`palette-${n}-600`),"--variant-outlinedHoverBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${a(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${a(`palette-${n}-mainChannel`)} / 0.2)`,"--variant-softColor":a(`palette-${n}-200`),"--variant-softBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${a(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":a(`palette-${n}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":a(`palette-${n}-600`),"--variant-solidActiveBg":a(`palette-${n}-600`),"--variant-solidDisabledColor":`rgba(${a(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.12)`},[t.getColorSchemeSelector("light")]:{[r("--palette-focusVisible")]:a(`palette-${n}-500`),[r("--palette-background-body")]:`rgba(${a(`palette-${n}-mainChannel`)} / 0.1)`,[r("--palette-background-surface")]:`rgba(${a(`palette-${n}-mainChannel`)} / 0.08)`,[r("--palette-background-level1")]:`rgba(${a(`palette-${n}-mainChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${a(`palette-${n}-mainChannel`)} / 0.32)`,[r("--palette-background-level3")]:`rgba(${a(`palette-${n}-mainChannel`)} / 0.48)`,[r("--palette-text-primary")]:a(`palette-${n}-700`),[r("--palette-text-secondary")]:`rgba(${a(`palette-${n}-darkChannel`)} / 0.8)`,[r("--palette-text-tertiary")]:`rgba(${a(`palette-${n}-darkChannel`)} / 0.68)`,[r("--palette-text-icon")]:a(`palette-${n}-500`),[r("--palette-divider")]:`rgba(${a(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${a(`palette-${n}-darkChannel`)} / 0.8)`,"--variant-plainHoverColor":`rgba(${a(`palette-${n}-darkChannel`)} / 1)`,"--variant-plainHoverBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${a(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${a(`palette-${n}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${a(`palette-${n}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":a(`palette-${n}-600`),"--variant-outlinedHoverBorder":a(`palette-${n}-300`),"--variant-outlinedHoverBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${a(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${a(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-softColor":a(`palette-${n}-600`),"--variant-softBg":`rgba(${a(`palette-${n}-lightChannel`)} / 0.8)`,"--variant-softHoverColor":a(`palette-${n}-700`),"--variant-softHoverBg":a(`palette-${n}-200`),"--variant-softActiveBg":a(`palette-${n}-300`),"--variant-softDisabledColor":`rgba(${a(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.08)`,"--variant-solidColor":a("palette-common-white"),"--variant-solidBg":a(`palette-${n}-${"neutral"===n?"700":"500"}`),"--variant-solidHoverColor":a("palette-common-white"),"--variant-solidHoverBg":a(`palette-${n}-600`),"--variant-solidActiveBg":a(`palette-${n}-600`),"--variant-solidDisabledColor":`rgba(${a(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${a(`palette-${n}-mainChannel`)} / 0.08)`}})}),i},E=(t,e)=>{let n=o(t.cssVarPrefix),r=M(t.cssVarPrefix),i={},a=e?e=>{let r=e.split("-"),i=r[1],a=r[2];return n(e,t.palette[i][a])}:n;return Object.entries(t.palette).forEach(t=>{let[e,n]=t;k(n)&&(i[e]={colorScheme:"dark","--Badge-ringColor":a(`palette-${e}-solidBg`),[r("--palette-focusVisible")]:a(`palette-${e}-200`),[r("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[r("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[r("--palette-background-popup")]:a(`palette-${e}-700`),[r("--palette-background-level1")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.36)`,[r("--palette-background-level3")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.6)`,[r("--palette-text-primary")]:a("palette-common-white"),[r("--palette-text-secondary")]:a(`palette-${e}-200`),[r("--palette-text-tertiary")]:a(`palette-${e}-300`),[r("--palette-text-icon")]:a(`palette-${e}-200`),[r("--palette-divider")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-plainColor":a(`palette-${e}-50`),"--variant-plainHoverColor":"#fff","--variant-plainHoverBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-outlinedColor":a(`palette-${e}-50`),"--variant-outlinedBorder":`rgba(${a(`palette-${e}-lightChannel`)} / 0.5)`,"--variant-outlinedHoverColor":"#fff","--variant-outlinedHoverBorder":a(`palette-${e}-300`),"--variant-outlinedHoverBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":"rgba(255 255 255 / 0.2)","--variant-softColor":a("palette-common-white"),"--variant-softHoverColor":a("palette-common-white"),"--variant-softBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.24)`,"--variant-softHoverBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.36)`,"--variant-softActiveBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.16)`,"--variant-softDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.1)`,"--variant-solidColor":a(`palette-${e}-${"neutral"===e?"600":"500"}`),"--variant-solidBg":a("palette-common-white"),"--variant-solidHoverBg":a("palette-common-white"),"--variant-solidActiveBg":a(`palette-${e}-100`),"--variant-solidDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.1)`})}),i},P=["cssVarPrefix","breakpoints","spacing","components","variants","colorInversion","shouldSkipGeneratingVar"],R=["colorSchemes"],T=(t="joy")=>o(t),L=function(t){var e,n,o,l,f,d,h,p,g,m;let b=t||{},{cssVarPrefix:k="joy",breakpoints:C,spacing:j,components:M,variants:L,colorInversion:B,shouldSkipGeneratingVar:Z=w}=b,I=(0,i.Z)(b,P),D=T(k),N={primary:O.blue,neutral:O.grey,danger:O.red,success:O.green,warning:O.yellow,common:{white:"#FCFCFD",black:"#09090B"}},z=t=>{var e;let n=t.split("-"),r=n[1],i=n[2];return D(t,null==(e=N[r])?void 0:e[i])},F=t=>({plainColor:z(`palette-${t}-500`),plainHoverBg:z(`palette-${t}-50`),plainActiveBg:z(`palette-${t}-100`),plainDisabledColor:z("palette-neutral-400"),outlinedColor:z(`palette-${t}-500`),outlinedBorder:z(`palette-${t}-300`),outlinedHoverBg:z(`palette-${t}-100`),outlinedActiveBg:z(`palette-${t}-200`),outlinedDisabledColor:z("palette-neutral-400"),outlinedDisabledBorder:z("palette-neutral-200"),softColor:z(`palette-${t}-700`),softBg:z(`palette-${t}-100`),softHoverBg:z(`palette-${t}-200`),softActiveColor:z(`palette-${t}-800`),softActiveBg:z(`palette-${t}-300`),softDisabledColor:z("palette-neutral-400"),softDisabledBg:z(`palette-${t}-50`),solidColor:z("palette-common-white"),solidBg:z(`palette-${t}-500`),solidHoverBg:z(`palette-${t}-600`),solidActiveBg:z(`palette-${t}-700`),solidDisabledColor:z("palette-neutral-400"),solidDisabledBg:z(`palette-${t}-100`)}),$=t=>({plainColor:z(`palette-${t}-300`),plainHoverBg:z(`palette-${t}-800`),plainActiveBg:z(`palette-${t}-700`),plainDisabledColor:z("palette-neutral-500"),outlinedColor:z(`palette-${t}-200`),outlinedBorder:z(`palette-${t}-700`),outlinedHoverBg:z(`palette-${t}-800`),outlinedActiveBg:z(`palette-${t}-700`),outlinedDisabledColor:z("palette-neutral-500"),outlinedDisabledBorder:z("palette-neutral-800"),softColor:z(`palette-${t}-200`),softBg:z(`palette-${t}-800`),softHoverBg:z(`palette-${t}-700`),softActiveColor:z(`palette-${t}-100`),softActiveBg:z(`palette-${t}-600`),softDisabledColor:z("palette-neutral-500"),softDisabledBg:z(`palette-${t}-900`),solidColor:z("palette-common-white"),solidBg:z(`palette-${t}-500`),solidHoverBg:z(`palette-${t}-600`),solidActiveBg:z(`palette-${t}-700`),solidDisabledColor:z("palette-neutral-500"),solidDisabledBg:z(`palette-${t}-800`)}),W={palette:{mode:"light",primary:(0,r.Z)({},N.primary,F("primary")),neutral:(0,r.Z)({},N.neutral,F("neutral"),{plainColor:z("palette-neutral-700"),outlinedColor:z("palette-neutral-700")}),danger:(0,r.Z)({},N.danger,F("danger")),success:(0,r.Z)({},N.success,F("success")),warning:(0,r.Z)({},N.warning,F("warning")),common:{white:"#FBFCFD",black:"#0E0E10"},text:{primary:z("palette-neutral-800"),secondary:z("palette-neutral-700"),tertiary:z("palette-neutral-600"),icon:z("palette-neutral-500")},background:{body:z("palette-neutral-50"),surface:z("palette-common-white"),popup:z("palette-common-white"),level1:z("palette-neutral-100"),level2:z("palette-neutral-200"),level3:z("palette-neutral-300"),tooltip:z("palette-neutral-500"),backdrop:`rgba(${D("palette-neutral-darkChannel",s(N.neutral[900]))} / 0.25)`},divider:`rgba(${D("palette-neutral-mainChannel",s(N.neutral[500]))} / 0.3)`,focusVisible:z("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"21 21 21",shadowOpacity:"0.08"},H={palette:{mode:"dark",primary:(0,r.Z)({},N.primary,$("primary")),neutral:(0,r.Z)({},N.neutral,$("neutral")),danger:(0,r.Z)({},N.danger,$("danger")),success:(0,r.Z)({},N.success,$("success")),warning:(0,r.Z)({},N.warning,$("warning")),common:{white:"#FBFCFD",black:"#0E0E10"},text:{primary:z("palette-neutral-100"),secondary:z("palette-neutral-300"),tertiary:z("palette-neutral-400"),icon:z("palette-neutral-400")},background:{body:z("palette-common-black"),surface:z("palette-neutral-900"),popup:z("palette-common-black"),level1:z("palette-neutral-800"),level2:z("palette-neutral-700"),level3:z("palette-neutral-600"),tooltip:z("palette-neutral-600"),backdrop:`rgba(${D("palette-neutral-darkChannel",s(N.neutral[50]))} / 0.25)`},divider:`rgba(${D("palette-neutral-mainChannel",s(N.neutral[500]))} / 0.16)`,focusVisible:z("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0",shadowOpacity:"0.6"},G='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',q=(0,r.Z)({body:`"Inter", ${D(`fontFamily-fallback, ${G}`)}`,display:`"Inter", ${D(`fontFamily-fallback, ${G}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:G},I.fontFamily),Y=(0,r.Z)({sm:300,md:500,lg:600,xl:700},I.fontWeight),V=(0,r.Z)({xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem"},I.fontSize),U=(0,r.Z)({xs:"1.33334",sm:"1.42858",md:"1.5",lg:"1.55556",xl:"1.66667"},I.lineHeight),Q=null!=(e=null==(n=I.colorSchemes)||null==(n=n.light)?void 0:n.shadowRing)?e:W.shadowRing,X=null!=(o=null==(l=I.colorSchemes)||null==(l=l.light)?void 0:l.shadowChannel)?o:W.shadowChannel,K=null!=(f=null==(d=I.colorSchemes)||null==(d=d.light)?void 0:d.shadowOpacity)?f:W.shadowOpacity,J={colorSchemes:{light:W,dark:H},fontSize:V,fontFamily:q,fontWeight:Y,focus:{thickness:"2px",selector:`&.${(0,_.d6)("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${D("focus-thickness",null!=(h=null==(p=I.focus)?void 0:p.thickness)?h:"2px")})`,outline:`${D("focus-thickness",null!=(g=null==(m=I.focus)?void 0:m.thickness)?g:"2px")} solid ${D("palette-focusVisible",N.primary[500])}`}},lineHeight:U,radius:{xs:"2px",sm:"6px",md:"8px",lg:"12px",xl:"16px"},shadow:{xs:`${D("shadowRing",Q)}, 0px 1px 2px 0px rgba(${D("shadowChannel",X)} / ${D("shadowOpacity",K)})`,sm:`${D("shadowRing",Q)}, 0px 1px 2px 0px rgba(${D("shadowChannel",X)} / ${D("shadowOpacity",K)}), 0px 2px 4px 0px rgba(${D("shadowChannel",X)} / ${D("shadowOpacity",K)})`,md:`${D("shadowRing",Q)}, 0px 2px 8px -2px rgba(${D("shadowChannel",X)} / ${D("shadowOpacity",K)}), 0px 6px 12px -2px rgba(${D("shadowChannel",X)} / ${D("shadowOpacity",K)})`,lg:`${D("shadowRing",Q)}, 0px 2px 8px -2px rgba(${D("shadowChannel",X)} / ${D("shadowOpacity",K)}), 0px 12px 16px -4px rgba(${D("shadowChannel",X)} / ${D("shadowOpacity",K)})`,xl:`${D("shadowRing",Q)}, 0px 2px 8px -2px rgba(${D("shadowChannel",X)} / ${D("shadowOpacity",K)}), 0px 20px 24px -4px rgba(${D("shadowChannel",X)} / ${D("shadowOpacity",K)})`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,tooltip:1500},typography:{h1:{fontFamily:D(`fontFamily-display, ${q.display}`),fontWeight:D(`fontWeight-xl, ${Y.xl}`),fontSize:D(`fontSize-xl4, ${V.xl4}`),lineHeight:D(`lineHeight-xs, ${U.xs}`),letterSpacing:"-0.025em",color:D(`palette-text-primary, ${W.palette.text.primary}`)},h2:{fontFamily:D(`fontFamily-display, ${q.display}`),fontWeight:D(`fontWeight-xl, ${Y.xl}`),fontSize:D(`fontSize-xl3, ${V.xl3}`),lineHeight:D(`lineHeight-xs, ${U.xs}`),letterSpacing:"-0.025em",color:D(`palette-text-primary, ${W.palette.text.primary}`)},h3:{fontFamily:D(`fontFamily-display, ${q.display}`),fontWeight:D(`fontWeight-lg, ${Y.lg}`),fontSize:D(`fontSize-xl2, ${V.xl2}`),lineHeight:D(`lineHeight-xs, ${U.xs}`),letterSpacing:"-0.025em",color:D(`palette-text-primary, ${W.palette.text.primary}`)},h4:{fontFamily:D(`fontFamily-display, ${q.display}`),fontWeight:D(`fontWeight-lg, ${Y.lg}`),fontSize:D(`fontSize-xl, ${V.xl}`),lineHeight:D(`lineHeight-md, ${U.md}`),letterSpacing:"-0.025em",color:D(`palette-text-primary, ${W.palette.text.primary}`)},"title-lg":{fontFamily:D(`fontFamily-body, ${q.body}`),fontWeight:D(`fontWeight-lg, ${Y.lg}`),fontSize:D(`fontSize-lg, ${V.lg}`),lineHeight:D(`lineHeight-xs, ${U.xs}`),color:D(`palette-text-primary, ${W.palette.text.primary}`)},"title-md":{fontFamily:D(`fontFamily-body, ${q.body}`),fontWeight:D(`fontWeight-md, ${Y.md}`),fontSize:D(`fontSize-md, ${V.md}`),lineHeight:D(`lineHeight-md, ${U.md}`),color:D(`palette-text-primary, ${W.palette.text.primary}`)},"title-sm":{fontFamily:D(`fontFamily-body, ${q.body}`),fontWeight:D(`fontWeight-md, ${Y.md}`),fontSize:D(`fontSize-sm, ${V.sm}`),lineHeight:D(`lineHeight-sm, ${U.sm}`),color:D(`palette-text-primary, ${W.palette.text.primary}`)},"body-lg":{fontFamily:D(`fontFamily-body, ${q.body}`),fontSize:D(`fontSize-lg, ${V.lg}`),lineHeight:D(`lineHeight-md, ${U.md}`),color:D(`palette-text-secondary, ${W.palette.text.secondary}`)},"body-md":{fontFamily:D(`fontFamily-body, ${q.body}`),fontSize:D(`fontSize-md, ${V.md}`),lineHeight:D(`lineHeight-md, ${U.md}`),color:D(`palette-text-secondary, ${W.palette.text.secondary}`)},"body-sm":{fontFamily:D(`fontFamily-body, ${q.body}`),fontSize:D(`fontSize-sm, ${V.sm}`),lineHeight:D(`lineHeight-md, ${U.md}`),color:D(`palette-text-tertiary, ${W.palette.text.tertiary}`)},"body-xs":{fontFamily:D(`fontFamily-body, ${q.body}`),fontWeight:D(`fontWeight-md, ${Y.md}`),fontSize:D(`fontSize-xs, ${V.xs}`),lineHeight:D(`lineHeight-md, ${U.md}`),color:D(`palette-text-tertiary, ${W.palette.text.tertiary}`)}}},tt=I?(0,a.Z)(J,I):J,{colorSchemes:te}=tt,tn=(0,i.Z)(tt,R),tr=(0,r.Z)({colorSchemes:te},tn,{breakpoints:(0,c.Z)(null!=C?C:{}),components:(0,a.Z)({MuiSvgIcon:{defaultProps:{fontSize:"xl2"},styleOverrides:{root:({ownerState:t,theme:e})=>{var n;let i=t.instanceFontSize;return(0,r.Z)({margin:"var(--Icon-margin)"},t.fontSize&&"inherit"!==t.fontSize&&{fontSize:`var(--Icon-fontSize, ${e.vars.fontSize[t.fontSize]})`},!t.htmlColor&&(0,r.Z)({color:`var(--Icon-color, ${tr.vars.palette.text.icon})`},t.color&&"inherit"!==t.color&&"context"!==t.color&&e.vars.palette[t.color]&&{color:`rgba(${null==(n=e.vars.palette[t.color])?void 0:n.mainChannel} / 1)`},"context"===t.color&&{color:e.vars.palette.text.secondary}),i&&"inherit"!==i&&{"--Icon-fontSize":e.vars.fontSize[i]})}}}},M),cssVarPrefix:k,getCssVar:D,spacing:(0,u.Z)(j),colorInversionConfig:{soft:["plain","outlined","soft","solid"],solid:["plain","outlined","soft","solid"]}});Object.entries(tr.colorSchemes).forEach(([t,e])=>{!function(t,e){Object.keys(e).forEach(n=>{let r={main:"500",light:"200",dark:"700"};"dark"===t&&(r.main=400),!e[n].mainChannel&&e[n][r.main]&&(e[n].mainChannel=s(e[n][r.main])),!e[n].lightChannel&&e[n][r.light]&&(e[n].lightChannel=s(e[n][r.light])),!e[n].darkChannel&&e[n][r.dark]&&(e[n].darkChannel=s(e[n][r.dark]))})}(t,e.palette)});let{vars:ti,generateCssVars:ta}=y((0,r.Z)({colorSchemes:te},tn),{prefix:k,shouldSkipGeneratingVar:Z});tr.vars=ti,tr.generateCssVars=ta,tr.unstable_sxConfig=(0,r.Z)({},x,null==t?void 0:t.unstable_sxConfig),tr.unstable_sx=function(t){return(0,v.Z)({sx:t,theme:this})},tr.getColorSchemeSelector=t=>"light"===t?"&":`&[data-joy-color-scheme="${t}"], [data-joy-color-scheme="${t}"] &`;let to={getCssVar:D,palette:tr.colorSchemes.light.palette};return tr.variants=(0,a.Z)({plain:S("plain",to),plainHover:S("plainHover",to),plainActive:S("plainActive",to),plainDisabled:S("plainDisabled",to),outlined:S("outlined",to),outlinedHover:S("outlinedHover",to),outlinedActive:S("outlinedActive",to),outlinedDisabled:S("outlinedDisabled",to),soft:S("soft",to),softHover:S("softHover",to),softActive:S("softActive",to),softDisabled:S("softDisabled",to),solid:S("solid",to),solidHover:S("solidHover",to),solidActive:S("solidActive",to),solidDisabled:S("solidDisabled",to)},L),tr.palette=(0,r.Z)({},tr.colorSchemes.light.palette,{colorScheme:"light"}),tr.shouldSkipGeneratingVar=Z,tr.colorInversion="function"==typeof B?B:(0,a.Z)({soft:A(tr,!0),solid:E(tr,!0)},B||{},{clone:!1}),tr}();var B=L},2548:function(t,e){"use strict";e.Z="$$joy"},58859:function(t,e,n){"use strict";n.d(e,{V:function(){return i}});var r=n(87462);let i=({theme:t,ownerState:e},n)=>{let i={};return e.sx&&(function e(n){if("function"==typeof n){let r=n(t);e(r)}else Array.isArray(n)?n.forEach(t=>{"boolean"!=typeof t&&e(t)}):"object"==typeof n&&(i=(0,r.Z)({},i,n))}(e.sx),n.forEach(e=>{let n=i[e];if("string"==typeof n||"number"==typeof n){if("borderRadius"===e){if("number"==typeof n)i[e]=`${n}px`;else{var r;i[e]=(null==(r=t.vars)?void 0:r.radius[n])||n}}else -1!==["p","padding","m","margin"].indexOf(e)&&"number"==typeof n?i[e]=t.spacing(n):i[e]=n}else"function"==typeof n?i[e]=n(t):i[e]=void 0})),i}},74312:function(t,e,n){"use strict";var r=n(86154),i=n(67299),a=n(2548);let o=(0,r.ZP)({defaultTheme:i.Z,themeId:a.Z});e.Z=o},20407:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var r=n(87462),i=n(44065),a=n(67299),o=n(2548);function l({props:t,name:e}){return(0,i.Z)({props:t,name:e,defaultTheme:(0,r.Z)({},a.Z,{components:{}}),themeId:o.Z})}},30220:function(t,e,n){"use strict";n.d(e,{Z:function(){return p}});var r=n(87462),i=n(63366),a=n(22760),o=n(71276),l=n(24407),s=n(10238),c=n(2226);let u=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],f=["component","slots","slotProps"],d=["component"],h=["disableColorInversion"];function p(t,e){let{className:n,elementType:p,ownerState:g,externalForwardedProps:m,getSlotOwnerState:y,internalForwardedProps:v}=e,b=(0,i.Z)(e,u),{component:x,slots:O={[t]:void 0},slotProps:w={[t]:void 0}}=m,_=(0,i.Z)(m,f),k=O[t]||p,C=(0,o.x)(w[t],g),j=(0,l.L)((0,r.Z)({className:n},b,{externalForwardedProps:"root"===t?_:void 0,externalSlotProps:C})),{props:{component:M},internalRef:S}=j,A=(0,i.Z)(j.props,d),E=(0,a.Z)(S,null==C?void 0:C.ref,e.ref),P=y?y(A):{},{disableColorInversion:R=!1}=P,T=(0,i.Z)(P,h),L=(0,r.Z)({},g,T),{getColor:B}=(0,c.VT)(L.variant);if("root"===t){var Z;L.color=null!=(Z=A.color)?Z:g.color}else R||(L.color=B(A.color,L.color));let I="root"===t?M||x:M,D=(0,s.$)(k,(0,r.Z)({},"root"===t&&!x&&!O[t]&&v,"root"!==t&&!O[t]&&v,A,I&&{as:I},{ref:E}),L);return Object.keys(T).forEach(t=>{delete D[t]}),[k,D]}},23534:function(t,e,n){"use strict";let r;n.r(e),n.d(e,{GlobalStyles:function(){return w},StyledEngineProvider:function(){return O},ThemeContext:function(){return c.T},css:function(){return v.iv},default:function(){return _},internal_processStyles:function(){return k},keyframes:function(){return v.F4}});var i=n(87462),a=n(67294),o=n(45042),l=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,o.Z)(function(t){return l.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&91>t.charCodeAt(2)}),c=n(6498),u=n(70444),f=n(26346),d=n(27278),h=function(t){return"theme"!==t},p=function(t){return"string"==typeof t&&t.charCodeAt(0)>96?s:h},g=function(t,e,n){var r;if(e){var i=e.shouldForwardProp;r=t.__emotion_forwardProp&&i?function(e){return t.__emotion_forwardProp(e)&&i(e)}:i}return"function"!=typeof r&&n&&(r=t.__emotion_forwardProp),r},m=function(t){var e=t.cache,n=t.serialized,r=t.isStringTag;return(0,u.hC)(e,n,r),(0,d.L)(function(){return(0,u.My)(e,n,r)}),null},y=(function t(e,n){var r,o,l=e.__emotion_real===e,s=l&&e.__emotion_base||e;void 0!==n&&(r=n.label,o=n.target);var d=g(e,n,l),h=d||p(s),y=!h("as");return function(){var v=arguments,b=l&&void 0!==e.__emotion_styles?e.__emotion_styles.slice(0):[];if(void 0!==r&&b.push("label:"+r+";"),null==v[0]||void 0===v[0].raw)b.push.apply(b,v);else{b.push(v[0][0]);for(var x=v.length,O=1;Oe(null==t||0===Object.keys(t).length?n:t):e;return(0,x.jsx)(v.xB,{styles:r})}function _(t,e){let n=y(t,e);return n}"object"==typeof document&&(r=(0,b.Z)({key:"css",prepend:!0}));let k=(t,e)=>{Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}},95408:function(t,e,n){"use strict";n.d(e,{L7:function(){return l},VO:function(){return r},W8:function(){return o},k9:function(){return a}});let r={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${r[t]}px)`};function a(t,e,n){let a=t.theme||{};if(Array.isArray(e)){let t=a.breakpoints||i;return e.reduce((r,i,a)=>(r[t.up(t.keys[a])]=n(e[a]),r),{})}if("object"==typeof e){let t=a.breakpoints||i;return Object.keys(e).reduce((i,a)=>{if(-1!==Object.keys(t.values||r).indexOf(a)){let r=t.up(a);i[r]=n(e[a],a)}else i[a]=e[a];return i},{})}let o=n(e);return o}function o(t={}){var e;let n=null==(e=t.keys)?void 0:e.reduce((e,n)=>{let r=t.up(n);return e[r]={},e},{});return n||{}}function l(t,e){return t.reduce((t,e)=>{let n=t[e],r=!n||0===Object.keys(n).length;return r&&delete t[e],t},e)}},86154:function(t,e,n){"use strict";n.d(e,{ZP:function(){return y}});var r=n(87462),i=n(63366),a=n(23534),o=n(68027),l=n(88647),s=n(86523);let c=["ownerState"],u=["variants"],f=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function d(t){return"ownerState"!==t&&"theme"!==t&&"sx"!==t&&"as"!==t}let h=(0,l.Z)(),p=t=>t?t.charAt(0).toLowerCase()+t.slice(1):t;function g({defaultTheme:t,theme:e,themeId:n}){return 0===Object.keys(e).length?t:e[n]||e}function m(t,e){let{ownerState:n}=e,a=(0,i.Z)(e,c),o="function"==typeof t?t((0,r.Z)({ownerState:n},a)):t;if(Array.isArray(o))return o.flatMap(t=>m(t,(0,r.Z)({ownerState:n},a)));if(o&&"object"==typeof o&&Array.isArray(o.variants)){let{variants:t=[]}=o,e=(0,i.Z)(o,u),l=e;return t.forEach(t=>{let e=!0;"function"==typeof t.props?e=t.props((0,r.Z)({ownerState:n},a,n)):Object.keys(t.props).forEach(r=>{(null==n?void 0:n[r])!==t.props[r]&&a[r]!==t.props[r]&&(e=!1)}),e&&(Array.isArray(l)||(l=[l]),l.push("function"==typeof t.style?t.style((0,r.Z)({ownerState:n},a,n)):t.style))}),l}return o}function y(t={}){let{themeId:e,defaultTheme:n=h,rootShouldForwardProp:l=d,slotShouldForwardProp:c=d}=t,u=t=>(0,s.Z)((0,r.Z)({},t,{theme:g((0,r.Z)({},t,{defaultTheme:n,themeId:e}))}));return u.__mui_systemSx=!0,(t,s={})=>{var h;let y;(0,a.internal_processStyles)(t,t=>t.filter(t=>!(null!=t&&t.__mui_systemSx)));let{name:v,slot:b,skipVariantsResolver:x,skipSx:O,overridesResolver:w=(h=p(b))?(t,e)=>e[h]:null}=s,_=(0,i.Z)(s,f),k=void 0!==x?x:b&&"Root"!==b&&"root"!==b||!1,C=O||!1,j=d;"Root"===b||"root"===b?j=l:b?j=c:"string"==typeof t&&t.charCodeAt(0)>96&&(j=void 0);let M=(0,a.default)(t,(0,r.Z)({shouldForwardProp:j,label:y},_)),S=t=>"function"==typeof t&&t.__emotion_real!==t||(0,o.P)(t)?i=>m(t,(0,r.Z)({},i,{theme:g({theme:i.theme,defaultTheme:n,themeId:e})})):t,A=(i,...a)=>{let o=S(i),l=a?a.map(S):[];v&&w&&l.push(t=>{let i=g((0,r.Z)({},t,{defaultTheme:n,themeId:e}));if(!i.components||!i.components[v]||!i.components[v].styleOverrides)return null;let a=i.components[v].styleOverrides,o={};return Object.entries(a).forEach(([e,n])=>{o[e]=m(n,(0,r.Z)({},t,{theme:i}))}),w(t,o)}),v&&!k&&l.push(t=>{var i;let a=g((0,r.Z)({},t,{defaultTheme:n,themeId:e})),o=null==a||null==(i=a.components)||null==(i=i[v])?void 0:i.variants;return m({variants:o},(0,r.Z)({},t,{theme:a}))}),C||l.push(u);let s=l.length-a.length;if(Array.isArray(i)&&s>0){let t=Array(s).fill("");(o=[...i,...t]).raw=[...i.raw,...t]}let c=M(o,...l);return t.muiName&&(c.muiName=t.muiName),c};return M.withConfig&&(A.withConfig=M.withConfig),A}}},57064:function(t,e,n){"use strict";function r(t,e){if(this.vars&&"function"==typeof this.getColorSchemeSelector){let n=this.getColorSchemeSelector(t).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:e}}return this.palette.mode===t?e:{}}n.d(e,{Z:function(){return r}})},41512:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var r=n(63366),i=n(87462);let a=["values","unit","step"],o=t=>{let e=Object.keys(t).map(e=>({key:e,val:t[e]}))||[];return e.sort((t,e)=>t.val-e.val),e.reduce((t,e)=>(0,i.Z)({},t,{[e.key]:e.val}),{})};function l(t){let{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:l=5}=t,s=(0,r.Z)(t,a),c=o(e),u=Object.keys(c);function f(t){let r="number"==typeof e[t]?e[t]:t;return`@media (min-width:${r}${n})`}function d(t){let r="number"==typeof e[t]?e[t]:t;return`@media (max-width:${r-l/100}${n})`}function h(t,r){let i=u.indexOf(r);return`@media (min-width:${"number"==typeof e[t]?e[t]:t}${n}) and (max-width:${(-1!==i&&"number"==typeof e[u[i]]?e[u[i]]:r)-l/100}${n})`}return(0,i.Z)({keys:u,values:c,up:f,down:d,between:h,only:function(t){return u.indexOf(t)+1{let n=0===t.length?[1]:t;return n.map(t=>{let n=e(t);return"number"==typeof n?`${n}px`:n}).join(" ")};return n.mui=!0,n}},88647:function(t,e,n){"use strict";n.d(e,{Z:function(){return h}});var r=n(87462),i=n(63366),a=n(68027),o=n(41512),l={borderRadius:4},s=n(98373),c=n(86523),u=n(44920),f=n(57064);let d=["breakpoints","palette","spacing","shape"];var h=function(t={},...e){let{breakpoints:n={},palette:h={},spacing:p,shape:g={}}=t,m=(0,i.Z)(t,d),y=(0,o.Z)(n),v=(0,s.Z)(p),b=(0,a.Z)({breakpoints:y,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},h),spacing:v,shape:(0,r.Z)({},l,g)},m);return b.applyStyles=f.Z,(b=e.reduce((t,e)=>(0,a.Z)(t,e),b)).unstable_sxConfig=(0,r.Z)({},u.Z,null==m?void 0:m.unstable_sxConfig),b.unstable_sx=function(t){return(0,c.Z)({sx:t,theme:this})},b}},47730:function(t,e,n){"use strict";var r=n(68027);e.Z=function(t,e){return e?(0,r.Z)(t,e,{clone:!1}):t}},98700:function(t,e,n){"use strict";n.d(e,{hB:function(){return p},eI:function(){return h},NA:function(){return g},e6:function(){return y},o3:function(){return v}});var r=n(95408),i=n(54844),a=n(47730);let o={m:"margin",p:"padding"},l={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},s={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(t){let e={};return n=>(void 0===e[n]&&(e[n]=t(n)),e[n])}(t=>{if(t.length>2){if(!s[t])return[t];t=s[t]}let[e,n]=t.split(""),r=o[e],i=l[n]||"";return Array.isArray(i)?i.map(t=>r+t):[r+i]}),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],d=[...u,...f];function h(t,e,n,r){var a;let o=null!=(a=(0,i.DW)(t,e,!1))?a:n;return"number"==typeof o?t=>"string"==typeof t?t:o*t:Array.isArray(o)?t=>"string"==typeof t?t:o[t]:"function"==typeof o?o:()=>void 0}function p(t){return h(t,"spacing",8,"spacing")}function g(t,e){if("string"==typeof e||null==e)return e;let n=Math.abs(e),r=t(n);return e>=0?r:"number"==typeof r?-r:`-${r}`}function m(t,e){let n=p(t.theme);return Object.keys(t).map(i=>(function(t,e,n,i){if(-1===e.indexOf(n))return null;let a=c(n),o=t[n];return(0,r.k9)(t,o,t=>a.reduce((e,n)=>(e[n]=g(i,t),e),{}))})(t,e,i,n)).reduce(a.Z,{})}function y(t){return m(t,u)}function v(t){return m(t,f)}function b(t){return m(t,d)}y.propTypes={},y.filterProps=u,v.propTypes={},v.filterProps=f,b.propTypes={},b.filterProps=d},54844:function(t,e,n){"use strict";n.d(e,{DW:function(){return a},Jq:function(){return o}});var r=n(62908),i=n(95408);function a(t,e,n=!0){if(!e||"string"!=typeof e)return null;if(t&&t.vars&&n){let n=`vars.${e}`.split(".").reduce((t,e)=>t&&t[e]?t[e]:null,t);if(null!=n)return n}return e.split(".").reduce((t,e)=>t&&null!=t[e]?t[e]:null,t)}function o(t,e,n,r=n){let i;return i="function"==typeof t?t(n):Array.isArray(t)?t[n]||r:a(t,n)||r,e&&(i=e(i,r,t)),i}e.ZP=function(t){let{prop:e,cssProperty:n=t.prop,themeKey:l,transform:s}=t,c=t=>{if(null==t[e])return null;let c=t[e],u=t.theme,f=a(u,l)||{};return(0,i.k9)(t,c,t=>{let i=o(f,s,t);return(t===i&&"string"==typeof t&&(i=o(f,s,`${e}${"default"===t?"":(0,r.Z)(t)}`,t)),!1===n)?i:{[n]:i}})};return c.propTypes={},c.filterProps=[e],c}},44920:function(t,e,n){"use strict";n.d(e,{Z:function(){return V}});var r=n(98700),i=n(54844),a=n(47730),o=function(...t){let e=t.reduce((t,e)=>(e.filterProps.forEach(n=>{t[n]=e}),t),{}),n=t=>Object.keys(t).reduce((n,r)=>e[r]?(0,a.Z)(n,e[r](t)):n,{});return n.propTypes={},n.filterProps=t.reduce((t,e)=>t.concat(e.filterProps),[]),n},l=n(95408);function s(t){return"number"!=typeof t?t:`${t}px solid`}function c(t,e){return(0,i.ZP)({prop:t,themeKey:"borders",transform:e})}let u=c("border",s),f=c("borderTop",s),d=c("borderRight",s),h=c("borderBottom",s),p=c("borderLeft",s),g=c("borderColor"),m=c("borderTopColor"),y=c("borderRightColor"),v=c("borderBottomColor"),b=c("borderLeftColor"),x=c("outline",s),O=c("outlineColor"),w=t=>{if(void 0!==t.borderRadius&&null!==t.borderRadius){let e=(0,r.eI)(t.theme,"shape.borderRadius",4,"borderRadius");return(0,l.k9)(t,t.borderRadius,t=>({borderRadius:(0,r.NA)(e,t)}))}return null};w.propTypes={},w.filterProps=["borderRadius"],o(u,f,d,h,p,g,m,y,v,b,w,x,O);let _=t=>{if(void 0!==t.gap&&null!==t.gap){let e=(0,r.eI)(t.theme,"spacing",8,"gap");return(0,l.k9)(t,t.gap,t=>({gap:(0,r.NA)(e,t)}))}return null};_.propTypes={},_.filterProps=["gap"];let k=t=>{if(void 0!==t.columnGap&&null!==t.columnGap){let e=(0,r.eI)(t.theme,"spacing",8,"columnGap");return(0,l.k9)(t,t.columnGap,t=>({columnGap:(0,r.NA)(e,t)}))}return null};k.propTypes={},k.filterProps=["columnGap"];let C=t=>{if(void 0!==t.rowGap&&null!==t.rowGap){let e=(0,r.eI)(t.theme,"spacing",8,"rowGap");return(0,l.k9)(t,t.rowGap,t=>({rowGap:(0,r.NA)(e,t)}))}return null};C.propTypes={},C.filterProps=["rowGap"];let j=(0,i.ZP)({prop:"gridColumn"}),M=(0,i.ZP)({prop:"gridRow"}),S=(0,i.ZP)({prop:"gridAutoFlow"}),A=(0,i.ZP)({prop:"gridAutoColumns"}),E=(0,i.ZP)({prop:"gridAutoRows"}),P=(0,i.ZP)({prop:"gridTemplateColumns"}),R=(0,i.ZP)({prop:"gridTemplateRows"}),T=(0,i.ZP)({prop:"gridTemplateAreas"}),L=(0,i.ZP)({prop:"gridArea"});function B(t,e){return"grey"===e?e:t}o(_,k,C,j,M,S,A,E,P,R,T,L);let Z=(0,i.ZP)({prop:"color",themeKey:"palette",transform:B}),I=(0,i.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:B}),D=(0,i.ZP)({prop:"backgroundColor",themeKey:"palette",transform:B});function N(t){return t<=1&&0!==t?`${100*t}%`:t}o(Z,I,D);let z=(0,i.ZP)({prop:"width",transform:N}),F=t=>void 0!==t.maxWidth&&null!==t.maxWidth?(0,l.k9)(t,t.maxWidth,e=>{var n,r;let i=(null==(n=t.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[e])||l.VO[e];return i?(null==(r=t.theme)||null==(r=r.breakpoints)?void 0:r.unit)!=="px"?{maxWidth:`${i}${t.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:N(e)}}):null;F.filterProps=["maxWidth"];let $=(0,i.ZP)({prop:"minWidth",transform:N}),W=(0,i.ZP)({prop:"height",transform:N}),H=(0,i.ZP)({prop:"maxHeight",transform:N}),G=(0,i.ZP)({prop:"minHeight",transform:N});(0,i.ZP)({prop:"size",cssProperty:"width",transform:N}),(0,i.ZP)({prop:"size",cssProperty:"height",transform:N});let q=(0,i.ZP)({prop:"boxSizing"});o(z,F,$,W,H,G,q);let Y={border:{themeKey:"borders",transform:s},borderTop:{themeKey:"borders",transform:s},borderRight:{themeKey:"borders",transform:s},borderBottom:{themeKey:"borders",transform:s},borderLeft:{themeKey:"borders",transform:s},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:s},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:w},color:{themeKey:"palette",transform:B},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:B},backgroundColor:{themeKey:"palette",transform:B},p:{style:r.o3},pt:{style:r.o3},pr:{style:r.o3},pb:{style:r.o3},pl:{style:r.o3},px:{style:r.o3},py:{style:r.o3},padding:{style:r.o3},paddingTop:{style:r.o3},paddingRight:{style:r.o3},paddingBottom:{style:r.o3},paddingLeft:{style:r.o3},paddingX:{style:r.o3},paddingY:{style:r.o3},paddingInline:{style:r.o3},paddingInlineStart:{style:r.o3},paddingInlineEnd:{style:r.o3},paddingBlock:{style:r.o3},paddingBlockStart:{style:r.o3},paddingBlockEnd:{style:r.o3},m:{style:r.e6},mt:{style:r.e6},mr:{style:r.e6},mb:{style:r.e6},ml:{style:r.e6},mx:{style:r.e6},my:{style:r.e6},margin:{style:r.e6},marginTop:{style:r.e6},marginRight:{style:r.e6},marginBottom:{style:r.e6},marginLeft:{style:r.e6},marginX:{style:r.e6},marginY:{style:r.e6},marginInline:{style:r.e6},marginInlineStart:{style:r.e6},marginInlineEnd:{style:r.e6},marginBlock:{style:r.e6},marginBlockStart:{style:r.e6},marginBlockEnd:{style:r.e6},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:_},rowGap:{style:C},columnGap:{style:k},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:N},maxWidth:{style:F},minWidth:{transform:N},height:{transform:N},maxHeight:{transform:N},minHeight:{transform:N},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};var V=Y},39707:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=n(87462),i=n(63366),a=n(68027),o=n(44920);let l=["sx"],s=t=>{var e,n;let r={systemProps:{},otherProps:{}},i=null!=(e=null==t||null==(n=t.theme)?void 0:n.unstable_sxConfig)?e:o.Z;return Object.keys(t).forEach(e=>{i[e]?r.systemProps[e]=t[e]:r.otherProps[e]=t[e]}),r};function c(t){let e;let{sx:n}=t,o=(0,i.Z)(t,l),{systemProps:c,otherProps:u}=s(o);return e=Array.isArray(n)?[c,...n]:"function"==typeof n?(...t)=>{let e=n(...t);return(0,a.P)(e)?(0,r.Z)({},c,e):c}:(0,r.Z)({},c,n),(0,r.Z)({},u,{sx:e})}},86523:function(t,e,n){"use strict";n.d(e,{n:function(){return s}});var r=n(62908),i=n(47730),a=n(54844),o=n(95408),l=n(44920);function s(){function t(t,e,n,i){let l={[t]:e,theme:n},s=i[t];if(!s)return{[t]:e};let{cssProperty:c=t,themeKey:u,transform:f,style:d}=s;if(null==e)return null;if("typography"===u&&"inherit"===e)return{[t]:e};let h=(0,a.DW)(n,u)||{};return d?d(l):(0,o.k9)(l,e,e=>{let n=(0,a.Jq)(h,f,e);return(e===n&&"string"==typeof e&&(n=(0,a.Jq)(h,f,`${t}${"default"===e?"":(0,r.Z)(e)}`,e)),!1===c)?n:{[c]:n}})}return function e(n){var r;let{sx:a,theme:s={}}=n||{};if(!a)return null;let c=null!=(r=s.unstable_sxConfig)?r:l.Z;function u(n){let r=n;if("function"==typeof n)r=n(s);else if("object"!=typeof n)return n;if(!r)return null;let a=(0,o.W8)(s.breakpoints),l=Object.keys(a),u=a;return Object.keys(r).forEach(n=>{var a;let l="function"==typeof(a=r[n])?a(s):a;if(null!=l){if("object"==typeof l){if(c[n])u=(0,i.Z)(u,t(n,l,s,c));else{let t=(0,o.k9)({theme:s},l,t=>({[n]:t}));(function(...t){let e=t.reduce((t,e)=>t.concat(Object.keys(e)),[]),n=new Set(e);return t.every(t=>n.size===Object.keys(t).length)})(t,l)?u[n]=e({sx:l,theme:s}):u=(0,i.Z)(u,t)}}else u=(0,i.Z)(u,t(n,l,s,c))}}),(0,o.L7)(l,u)}return Array.isArray(a)?a.map(u):u(a)}}let c=s();c.filterProps=["sx"],e.Z=c},79718:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(88647),i=n(67294),a=n(6498),o=function(t=null){let e=i.useContext(a.T);return e&&0!==Object.keys(e).length?e:t};let l=(0,r.Z)();var s=function(t=l){return o(t)}},44065:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(87462),i=n(79718);function a({props:t,name:e,defaultTheme:n,themeId:a}){let o=(0,i.Z)(n);a&&(o=o[a]||o);let l=function(t){let{theme:e,name:n,props:i}=t;return e&&e.components&&e.components[n]&&e.components[n].defaultProps?function t(e,n){let i=(0,r.Z)({},n);return Object.keys(e).forEach(a=>{if(a.toString().match(/^(components|slots)$/))i[a]=(0,r.Z)({},e[a],i[a]);else if(a.toString().match(/^(componentsProps|slotProps)$/)){let o=e[a]||{},l=n[a];i[a]={},l&&Object.keys(l)?o&&Object.keys(o)?(i[a]=(0,r.Z)({},l),Object.keys(o).forEach(e=>{i[a][e]=t(o[e],l[e])})):i[a]=l:i[a]=o}else void 0===i[a]&&(i[a]=e[a])}),i}(e.components[n].defaultProps,i):i}({theme:o,name:e,props:t});return l}},31983:function(t,e){"use strict";let n;let r=t=>t,i=(n=r,{configure(t){n=t},generate:t=>n(t),reset(){n=r}});e.Z=i},62908:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(78758);function i(t){if("string"!=typeof t)throw Error((0,r.Z)(7));return t.charAt(0).toUpperCase()+t.slice(1)}},58510:function(t,e,n){"use strict";function r(t,e,n){let r={};return Object.keys(t).forEach(i=>{r[i]=t[i].reduce((t,r)=>{if(r){let i=e(r);""!==i&&t.push(i),n&&n[r]&&t.push(n[r])}return t},[]).join(" ")}),r}n.d(e,{Z:function(){return r}})},68027:function(t,e,n){"use strict";n.d(e,{P:function(){return i},Z:function(){return function t(e,n,a={clone:!0}){let o=a.clone?(0,r.Z)({},e):e;return i(e)&&i(n)&&Object.keys(n).forEach(r=>{i(n[r])&&Object.prototype.hasOwnProperty.call(e,r)&&i(e[r])?o[r]=t(e[r],n[r],a):a.clone?o[r]=i(n[r])?function t(e){if(!i(e))return e;let n={};return Object.keys(e).forEach(r=>{n[r]=t(e[r])}),n}(n[r]):n[r]:o[r]=n[r]}),o}}});var r=n(87462);function i(t){if("object"!=typeof t||null===t)return!1;let e=Object.getPrototypeOf(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}},78758:function(t,e,n){"use strict";function r(t){let e="https://mui.com/production-error/?code="+t;for(let t=1;t{i[e]=(0,r.ZP)(t,e,n)}),i}},16485:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(67294);function i(t,e){var n,i;return r.isValidElement(t)&&-1!==e.indexOf(null!=(n=t.type.muiName)?n:null==(i=t.type)||null==(i=i._payload)||null==(i=i.value)?void 0:i.muiName)}},25091:function(t,e,n){"use strict";function r(t,e){"function"==typeof t?t(e):t&&(t.current=e)}n.d(e,{Z:function(){return r}})},22760:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(67294),i=n(25091);function a(...t){return r.useMemo(()=>t.every(t=>null==t)?null:e=>{t.forEach(t=>{(0,i.Z)(t,e)})},t)}},15746:function(t,e,n){"use strict";var r=n(21584);e.Z=r.Z},71230:function(t,e,n){"use strict";var r=n(92820);e.Z=r.Z},87760:function(t,e){"use strict";var n={protan:{x:.7465,y:.2535,m:1.273463,yi:-.073894},deutan:{x:1.4,y:-.4,m:.968437,yi:.003331},tritan:{x:.1748,y:0,m:.062921,yi:.292119},custom:{x:.735,y:.265,m:-1.059259,yi:1.026914}},r=function(t){var e={},n=t.R/255,r=t.G/255,i=t.B/255;return n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,e.X=.41242371206635076*n+.3575793401363035*r+.1804662232369621*i,e.Y=.21265606784927693*n+.715157818248362*r+.0721864539171564*i,e.Z=.019331987577444885*n+.11919267420354762*r+.9504491124870351*i,e},i=function(t){var e=t.X+t.Y+t.Z;return 0===e?{x:0,y:0,Y:t.Y}:{x:t.X/e,y:t.Y/e,Y:t.Y}};e.a=function(t,e,a){var o,l,s,c,u,f,d,h,p,g,m,y,v,b,x,O,w,_,k,C;return"achroma"===e?(o={R:o=.212656*t.R+.715158*t.G+.072186*t.B,G:o,B:o},a&&(s=(l=1.75)+1,o.R=(l*o.R+t.R)/s,o.G=(l*o.G+t.G)/s,o.B=(l*o.B+t.B)/s),o):(c=n[e],f=((u=i(r(t))).y-c.y)/(u.x-c.x),d=u.y-u.x*f,h=(c.yi-d)/(f-c.m),p=f*h+d,(o={}).X=h*u.Y/p,o.Y=u.Y,o.Z=(1-(h+p))*u.Y/p,_=.312713*u.Y/.329016,k=.358271*u.Y/.329016,y=3.240712470389558*(g=_-o.X)+-0+-.49857440415943116*(m=k-o.Z),v=-.969259258688888*g+0+.041556132211625726*m,b=.05563600315398933*g+-0+1.0570636917433989*m,o.R=3.240712470389558*o.X+-1.5372626602963142*o.Y+-.49857440415943116*o.Z,o.G=-.969259258688888*o.X+1.875996969313966*o.Y+.041556132211625726*o.Z,o.B=.05563600315398933*o.X+-.2039948802843549*o.Y+1.0570636917433989*o.Z,x=((o.R<0?0:1)-o.R)/y,O=((o.G<0?0:1)-o.G)/v,(w=(w=((o.B<0?0:1)-o.B)/b)>1||w<0?0:w)>(C=(x=x>1||x<0?0:x)>(O=O>1||O<0?0:O)?x:O)&&(C=w),o.R+=C*y,o.G+=C*v,o.B+=C*b,o.R=255*(o.R<=0?0:o.R>=1?1:Math.pow(o.R,.45454545454545453)),o.G=255*(o.G<=0?0:o.G>=1?1:Math.pow(o.G,.45454545454545453)),o.B=255*(o.B<=0?0:o.B>=1?1:Math.pow(o.B,.45454545454545453)),a&&(s=(l=1.75)+1,o.R=(l*o.R+t.R)/s,o.G=(l*o.G+t.G)/s,o.B=(l*o.B+t.B)/s),o)}},56917:function(t,e,n){"use strict";var r=n(74314),i=n(87760).a,a={protanomaly:{type:"protan",anomalize:!0},protanopia:{type:"protan"},deuteranomaly:{type:"deutan",anomalize:!0},deuteranopia:{type:"deutan"},tritanomaly:{type:"tritan",anomalize:!0},tritanopia:{type:"tritan"},achromatomaly:{type:"achroma",anomalize:!0},achromatopsia:{type:"achroma"}},o=function(t){return Math.round(255*t)},l=function(t){return function(e,n){var l=r(e);if(!l)return n?{R:0,G:0,B:0}:"#000000";var s=new i({R:o(l.red()||0),G:o(l.green()||0),B:o(l.blue()||0)},a[t].type,a[t].anomalize);return(s.R=s.R||0,s.G=s.G||0,s.B=s.B||0,n)?(delete s.X,delete s.Y,delete s.Z,s):new r.RGB(s.R%256/255,s.G%256/255,s.B%256/255,1).hex()}};for(var s in a)e[s]=l(s)},91077:function(t,e,n){"use strict";function r(t,e){return te?1:t>=e?0:NaN}n.d(e,{Z:function(){return r}})},87568:function(t,e,n){"use strict";n.d(e,{Z:function(){return g}});var r=Array.prototype,i=r.slice;r.map;var a=n(44355);function o(t){return function(){return t}}var l=n(23865),s=n(10874),c=Math.sqrt(50),u=Math.sqrt(10),f=Math.sqrt(2);function d(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=c?10:a>=u?5:a>=f?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=c?10:a>=u?5:a>=f?2:1)}var h=n(89917);function p(t){return Math.ceil(Math.log((0,h.Z)(t))/Math.LN2)+1}function g(){var t=s.Z,e=l.Z,n=p;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,s=r.length,c=Array(s);for(i=0;i0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}(f,h,n)),(p=function(t,e,n){var r,i,a,o,l=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e0){let n=Math.round(t/o),r=Math.round(e/o);for(n*oe&&--r,a=Array(i=r-n+1);++le&&--r,a=Array(i=r-n+1);++l=h){if(t>=h&&e===l.Z){let t=d(f,h,n);isFinite(t)&&(t>0?h=(Math.floor(h/t)+1)*t:t<0&&(h=-((Math.ceil(-(h*t))+1)/t)))}else p.pop()}}for(var g=p.length;p[0]<=f;)p.shift(),--g;for(;p[g-1]>h;)p.pop(),--g;var m,y=Array(g+1);for(i=0;i<=g;++i)(m=y[i]=[]).x0=i>0?p[i-1]:f,m.x1=i>>1;0>n(t[a],e)?r=a+1:i=a}return r}return 1===t.length&&(e=(e,n)=>t(e)-n,n=(e,n)=>(0,r.Z)(t(e),n)),{left:i,center:function(t,n,r,a){null==r&&(r=0),null==a&&(a=t.length);let o=i(t,n,r,a-1);return o>r&&e(t[o-1],n)>-e(t[o],n)?o-1:o},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[a],e)>0?i=a:r=a+1}return r}}}},89917:function(t,e,n){"use strict";function r(t,e){let n=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&++n;else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(i=+i)>=i&&++n}return n}n.d(e,{Z:function(){return r}})},93209:function(t,e,n){"use strict";function r(t,e){let n=function(t,e){let n,r=0,i=0,a=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(n=e-i,i+=n/++r,a+=n*(e-i));else{let o=-1;for(let l of t)null!=(l=e(l,++o,t))&&(l=+l)>=l&&(n=l-i,i+=n/++r,a+=n*(l-i))}if(r>1)return a/(r-1)}(t,e);return n?Math.sqrt(n):n}n.d(e,{Z:function(){return r}})},23865:function(t,e,n){"use strict";function r(t,e){let n,r;if(void 0===e)for(let e of t)null!=e&&(void 0===n?e>=e&&(n=r=e):(n>e&&(n=e),r=a&&(n=r=a):(n>a&&(n=a),r0){for(a=t[--e];e>0&&(a=(n=a)+(r=t[--e]),!(i=r-(a-n))););e>0&&(i<0&&t[e-1]<0||i>0&&t[e-1]>0)&&(n=a+(r=2*i),r==n-a&&(a=n))}return a}}},44022:function(t,e,n){"use strict";n.d(e,{ZP:function(){return l},Xx:function(){return s},jJ:function(){return c},Q3:function(){return u}});class r extends Map{constructor(t,e=a){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(let[e,n]of t)this.set(e,n)}get(t){return super.get(i(this,t))}has(t){return super.has(i(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){let r=e(n);return t.has(r)&&(n=t.get(n),t.delete(r)),n}(this,t))}}function i({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):n}function a(t){return null!==t&&"object"==typeof t?t.valueOf():t}var o=n(10874);function l(t,...e){return f(t,o.Z,o.Z,e)}function s(t,...e){return f(t,Array.from,o.Z,e)}function c(t,e,...n){return f(t,o.Z,e,n)}function u(t,e,...n){return f(t,Array.from,e,n)}function f(t,e,n,i){return function t(a,o){if(o>=i.length)return n(a);let l=new r,s=i[o++],c=-1;for(let t of a){let e=s(t,++c,a),n=l.get(e);n?n.push(t):l.set(e,[t])}for(let[e,n]of l)l.set(e,t(n,o));return e(l)}(t,0)}},28085:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(91077),i=n(44022),a=n(80732);function o(t,e,n){return(1===e.length?(0,a.Z)((0,i.jJ)(t,e,n),([t,e],[n,i])=>(0,r.Z)(e,i)||(0,r.Z)(t,n)):(0,a.Z)((0,i.ZP)(t,n),([t,n],[i,a])=>e(n,a)||(0,r.Z)(t,i))).map(([t])=>t)}},10874:function(t,e,n){"use strict";function r(t){return t}n.d(e,{Z:function(){return r}})},80091:function(){},98823:function(t,e,n){"use strict";function r(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n=i)&&(n=i)}return n}n.d(e,{Z:function(){return r}})},11616:function(t,e,n){"use strict";function r(t,e){let n;let r=-1,i=-1;if(void 0===e)for(let e of t)++i,null!=e&&(n=e)&&(n=e,r=i);else for(let a of t)null!=(a=e(a,++i,t))&&(n=a)&&(n=a,r=i);return r}n.d(e,{Z:function(){return r}})},71894:function(t,e,n){"use strict";function r(t,e){let n=0,r=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(++n,r+=e);else{let i=-1;for(let a of t)null!=(a=e(a,++i,t))&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}n.d(e,{Z:function(){return r}})},76132:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(51758);function i(t,e){return(0,r.Z)(t,.5,e)}},83502:function(t,e,n){"use strict";function r(t){return Array.from(function*(t){for(let e of t)yield*e}(t))}n.d(e,{Z:function(){return r}})},47622:function(t,e,n){"use strict";function r(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}n.d(e,{Z:function(){return r}})},18320:function(t,e,n){"use strict";function r(t,e){let n;let r=-1,i=-1;if(void 0===e)for(let e of t)++i,null!=e&&(n>e||void 0===n&&e>=e)&&(n=e,r=i);else for(let a of t)null!=(a=e(a,++i,t))&&(n>a||void 0===n&&a>=a)&&(n=a,r=i);return r}n.d(e,{Z:function(){return r}})},62921:function(t,e,n){"use strict";function r(t){return null===t?NaN:+t}function*i(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}n.d(e,{K:function(){return i},Z:function(){return r}})},51758:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(98823),i=n(47622),a=n(91077);function o(t,e,n){let r=t[e];t[e]=t[n],t[n]=r}var l=n(62921);function s(t,e,n){if(s=(t=Float64Array.from((0,l.K)(t,n))).length){if((e=+e)<=0||s<2)return(0,i.Z)(t);if(e>=1)return(0,r.Z)(t);var s,c=(s-1)*e,u=Math.floor(c),f=(0,r.Z)((function t(e,n,r=0,i=e.length-1,l=a.Z){for(;i>r;){if(i-r>600){let a=i-r+1,o=n-r+1,s=Math.log(a),c=.5*Math.exp(2*s/3),u=.5*Math.sqrt(s*c*(a-c)/a)*(o-a/2<0?-1:1),f=Math.max(r,Math.floor(n-o*c/a+u)),d=Math.min(i,Math.floor(n+(a-o)*c/a+u));t(e,n,f,d,l)}let a=e[n],s=r,c=i;for(o(e,r,n),l(e[i],a)>0&&o(e,r,i);sl(e[s],a);)++s;for(;l(e[c],a)>0;)--c}0===l(e[r],a)?o(e,r,c):o(e,++c,i),c<=n&&(r=c+1),n<=c&&(i=c-1)}return e})(t,u).subarray(0,u+1));return f+((0,i.Z)(t.subarray(u+1))-f)*(c-u)}}},80732:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(91077);function i(t,...e){if("function"!=typeof t[Symbol.iterator])throw TypeError("values is not iterable");t=Array.from(t);let[n=r.Z]=e;if(1===n.length||e.length>1){var a;let i=Uint32Array.from(t,(t,e)=>e);return e.length>1?(e=e.map(e=>t.map(e)),i.sort((t,n)=>{for(let i of e){let e=(0,r.Z)(i[t],i[n]);if(e)return e}})):(n=t.map(n),i.sort((t,e)=>(0,r.Z)(n[t],n[e]))),a=t,Array.from(i,t=>a[t])}return t.sort(n)}},90155:function(t,e,n){"use strict";function r(t,e){let n=0;if(void 0===e)for(let e of t)(e=+e)&&(n+=e);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}n.d(e,{Z:function(){return r}})},52362:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(89917),i=n(93209);function a(t,e,n){return Math.ceil((n-e)/(3.5*(0,i.Z)(t)*Math.pow((0,r.Z)(t),-1/3)))}},6586:function(t,e,n){"use strict";function r(t){for(var e in t){var n,r,a=t[e].trim();if(a){if("true"===a)a=!0;else if("false"===a)a=!1;else if("NaN"===a)a=NaN;else if(isNaN(n=+a)){if(!(r=a.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;i&&r[4]&&!r[7]&&(a=a.replace(/-/g,"/").replace(/T/," ")),a=new Date(a)}else a=n}else a=null;t[e]=a}return t}n.d(e,{Z:function(){return r}});let i=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours()},42132:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r={},i={};function a(t){return Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'}).join(",")+"}")}function o(t){var e=Object.create(null),n=[];return t.forEach(function(t){for(var r in t)r in e||n.push(e[r]=r)}),n}function l(t,e){var n=t+"",r=n.length;return r=l?u=!0:10===(a=t.charCodeAt(s++))?f=!0:13===a&&(f=!0,10===t.charCodeAt(s)&&++s),t.slice(o+1,e-1).replace(/""/g,'"')}for(;s9999?"+"+l(s,6):l(s,4))+"-"+l(n.getUTCMonth()+1,2)+"-"+l(n.getUTCDate(),2)+(o?"T"+l(r,2)+":"+l(i,2)+":"+l(a,2)+"."+l(o,3)+"Z":a?"T"+l(r,2)+":"+l(i,2)+":"+l(a,2)+"Z":i||r?"T"+l(r,2)+":"+l(i,2)+"Z":"")):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,r,i=s(t,function(t,i){var o;if(n)return n(t,i-1);r=t,n=e?(o=a(t),function(n,r){return e(o(n),r,t)}):a(t)});return i.columns=r||[],i},parseRows:s,format:function(e,n){return null==n&&(n=o(e)),[n.map(f).join(t)].concat(c(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=o(t)),c(t,e).join("\n")},formatRows:function(t){return t.map(u).join("\n")},formatRow:u,formatValue:f}}},17694:function(t,e,n){"use strict";function r(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}n.d(e,{WU:function(){return o}});var i,a,o,l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(t){var e;if(!(e=l.exec(t)))throw Error("invalid format: "+t);return new c({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function c(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function u(t,e){var n=r(t,e);if(!n)return t+"";var i=n[0],a=n[1];return a<0?"0."+Array(-a).join("0")+i:i.length>a+1?i.slice(0,a+1)+"."+i.slice(a+1):i+Array(a-i.length+2).join("0")}s.prototype=c.prototype,c.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var f={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>u(100*t,e),r:u,s:function(t,e){var n=r(t,e);if(!n)return t+"";var a=n[0],o=n[1],l=o-(i=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=a.length;return l===s?a:l>s?a+Array(l-s+1).join("0"):l>0?a.slice(0,l)+"."+a.slice(l):"0."+Array(1-l).join("0")+r(t,Math.max(0,e+l-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function d(t){return t}var h=Array.prototype.map,p=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];o=(a=function(t){var e,n,a,o=void 0===t.grouping||void 0===t.thousands?d:(e=h.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,l=e[0],s=0;i>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),a.push(t.substring(i-=l,i+l)),!((s+=l+1)>r));)l=e[o=(o+1)%e.length];return a.reverse().join(n)}),l=void 0===t.currency?"":t.currency[0]+"",c=void 0===t.currency?"":t.currency[1]+"",u=void 0===t.decimal?".":t.decimal+"",g=void 0===t.numerals?d:(a=h.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return a[+t]})}),m=void 0===t.percent?"%":t.percent+"",y=void 0===t.minus?"−":t.minus+"",v=void 0===t.nan?"NaN":t.nan+"";function b(t){var e=(t=s(t)).fill,n=t.align,r=t.sign,a=t.symbol,d=t.zero,h=t.width,b=t.comma,x=t.precision,O=t.trim,w=t.type;"n"===w?(b=!0,w="g"):f[w]||(void 0===x&&(x=12),O=!0,w="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var _="$"===a?l:"#"===a&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",k="$"===a?c:/[%p]/.test(w)?m:"",C=f[w],j=/[defgprs%]/.test(w);function M(t){var a,l,s,c=_,f=k;if("c"===w)f=C(t)+f,t="";else{var m=(t=+t)<0||1/t<0;if(t=isNaN(t)?v:C(Math.abs(t),x),O&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),m&&0==+t&&"+"!==r&&(m=!1),c=(m?"("===r?r:y:"-"===r||"("===r?"":r)+c,f=("s"===w?p[8+i/3]:"")+f+(m&&"("===r?")":""),j){for(a=-1,l=t.length;++a(s=t.charCodeAt(a))||s>57){f=(46===s?u+t.slice(a+1):t.slice(a))+f,t=t.slice(0,a);break}}}b&&!d&&(t=o(t,1/0));var M=c.length+t.length+f.length,S=M>1)+c+t+f+S.slice(M);break;default:t=S+c+t+f}return g(t)}return x=void 0===x?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),M.toString=function(){return t+""},M}return{format:b,formatPrefix:function(t,e){var n,i=b(((t=s(t)).type="f",t)),a=3*Math.max(-8,Math.min(8,Math.floor(((n=r(Math.abs(n=e)))?n[1]:NaN)/3))),o=Math.pow(10,-a),l=p[8+a/3];return function(t){return i(o*t)+l}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a.formatPrefix},38627:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(11344);function i(){var t,e=[];return{point:function(e,n,r){t.push([e,n,r])},lineStart:function(){e.push(t=[])},lineEnd:r.Z,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}},85142:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var r=n(55350),i=n(38627),a=n(58684),o=n(83502);function l(t,e,n,l){function s(r,i){return t<=r&&r<=n&&e<=i&&i<=l}function c(r,i,a,o){var s=0,c=0;if(null==r||(s=u(r,a))!==(c=u(i,a))||0>d(r,i)^a>0)do o.point(0===s||3===s?t:n,s>1?l:e);while((s=(s+a+4)%4)!==c);else o.point(i[0],i[1])}function u(i,a){return(0,r.Wn)(i[0]-t)0?0:3:(0,r.Wn)(i[0]-n)0?2:1:(0,r.Wn)(i[1]-e)0?1:0:a>0?3:2}function f(t,e){return d(t.x,e.x)}function d(t,e){var n=u(t,1),r=u(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(r){var u,d,h,p,g,m,y,v,b,x,O,w=r,_=(0,i.Z)(),k={point:C,lineStart:function(){k.point=j,d&&d.push(h=[]),x=!0,b=!1,y=v=NaN},lineEnd:function(){u&&(j(p,g),m&&b&&_.rejoin(),u.push(_.result())),k.point=C,b&&w.lineEnd()},polygonStart:function(){w=_,u=[],d=[],O=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,r=d.length;nl&&(f-i)*(l-a)>(h-a)*(t-i)&&++e:h<=l&&(f-i)*(l-a)<(h-a)*(t-i)&&--e;return e}(),n=O&&e,i=(u=(0,o.Z)(u)).length;(n||i)&&(r.polygonStart(),n&&(r.lineStart(),c(null,null,1,r),r.lineEnd()),i&&(0,a.Z)(u,f,e,c,r),r.polygonEnd()),w=r,u=d=h=null}};function C(t,e){s(t,e)&&w.point(t,e)}function j(r,i){var a=s(r,i);if(d&&h.push([r,i]),x)p=r,g=i,m=a,x=!1,a&&(w.lineStart(),w.point(r,i));else if(a&&b)w.point(r,i);else{var o=[y=Math.max(-1e9,Math.min(1e9,y)),v=Math.max(-1e9,Math.min(1e9,v))],c=[r=Math.max(-1e9,Math.min(1e9,r)),i=Math.max(-1e9,Math.min(1e9,i))];!function(t,e,n,r,i,a){var o,l=t[0],s=t[1],c=e[0],u=e[1],f=0,d=1,h=c-l,p=u-s;if(o=n-l,h||!(o>0)){if(o/=h,h<0){if(o0){if(o>d)return;o>f&&(f=o)}if(o=i-l,h||!(o<0)){if(o/=h,h<0){if(o>d)return;o>f&&(f=o)}else if(h>0){if(o0)){if(o/=p,p<0){if(o0){if(o>d)return;o>f&&(f=o)}if(o=a-s,p||!(o<0)){if(o/=p,p<0){if(o>d)return;o>f&&(f=o)}else if(p>0){if(o0&&(t[0]=l+f*h,t[1]=s+f*p),d<1&&(e[0]=l+d*h,e[1]=s+d*p),!0}}}}}(o,c,t,e,n,l)?a&&(w.lineStart(),w.point(r,i),O=!1):(b||(w.lineStart(),w.point(o[0],o[1])),w.point(c[0],c[1]),a||w.lineEnd(),O=!1)}y=r,v=i,b=a}return k}}},58684:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(55228),i=n(55350);function a(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function o(t,e,n,o,s){var c,u,f=[],d=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n,o=t[0],l=t[e];if((0,r.Z)(o,l)){if(!o[2]&&!l[2]){for(s.lineStart(),c=0;c=0;--c)s.point((p=h[c])[0],p[1]);else o(m.x,m.p.x,-1,s);m=m.p}h=(m=m.o).z,y=!y}while(!m.v);s.lineEnd()}}}function l(t){if(e=t.length){for(var e,n,r=0,i=t[0];++ri.Ho}).map(d)).concat(r((0,i.mD)(c/y)*y,s,y).filter(function(t){return(0,i.Wn)(t%b)>i.Ho}).map(h))}return O.lines=function(){return w().map(function(t){return{type:"LineString",coordinates:t}})},O.outline=function(){return{type:"Polygon",coordinates:[p(l).concat(g(u).slice(1),p(n).reverse().slice(1),g(f).reverse().slice(1))]}},O.extent=function(t){return arguments.length?O.extentMajor(t).extentMinor(t):O.extentMinor()},O.extentMajor=function(t){return arguments.length?(l=+t[0][0],n=+t[1][0],f=+t[0][1],u=+t[1][1],l>n&&(t=l,l=n,n=t),f>u&&(t=f,f=u,u=t),O.precision(x)):[[l,f],[n,u]]},O.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],c=+n[0][1],s=+n[1][1],e>t&&(n=e,e=t,t=n),c>s&&(n=c,c=s,s=n),O.precision(x)):[[e,c],[t,s]]},O.step=function(t){return arguments.length?O.stepMajor(t).stepMinor(t):O.stepMinor()},O.stepMajor=function(t){return arguments.length?(v=+t[0],b=+t[1],O):[v,b]},O.stepMinor=function(t){return arguments.length?(m=+t[0],y=+t[1],O):[m,y]},O.precision=function(r){return arguments.length?(x=+r,d=a(c,s,90),h=o(e,t,x),p=a(f,u,90),g=o(l,n,x),O):x},O.extentMajor([[-180,-90+i.Ho],[180,90-i.Ho]]).extentMinor([[-180,-80-i.Ho],[180,80+i.Ho]])})()()}},67423:function(t,e){"use strict";e.Z=t=>t},55350:function(t,e,n){"use strict";n.d(e,{BZ:function(){return s},Ho:function(){return r},Kh:function(){return _},O$:function(){return b},OR:function(){return w},Qq:function(){return m},RW:function(){return c},Wn:function(){return f},Xx:function(){return x},ZR:function(){return k},_b:function(){return O},aW:function(){return i},cM:function(){return y},fv:function(){return h},mC:function(){return p},mD:function(){return g},ou:function(){return o},pi:function(){return a},pu:function(){return l},sQ:function(){return v},uR:function(){return u},z4:function(){return d}});var r=1e-6,i=1e-12,a=Math.PI,o=a/2,l=a/4,s=2*a,c=180/a,u=a/180,f=Math.abs,d=Math.atan,h=Math.atan2,p=Math.cos,g=Math.ceil,m=Math.exp,y=Math.log,v=Math.pow,b=Math.sin,x=Math.sign||function(t){return t>0?1:t<0?-1:0},O=Math.sqrt,w=Math.tan;function _(t){return t>1?0:t<-1?a:Math.acos(t)}function k(t){return t>1?o:t<-1?-o:Math.asin(t)}},11344:function(t,e,n){"use strict";function r(){}n.d(e,{Z:function(){return r}})},3310:function(t,e,n){"use strict";var r=n(11344),i=1/0,a=1/0,o=-1/0,l=o,s={point:function(t,e){to&&(o=t),el&&(l=e)},lineStart:r.Z,lineEnd:r.Z,polygonStart:r.Z,polygonEnd:r.Z,result:function(){var t=[[i,a],[o,l]];return o=l=-(a=i=1/0),t}};e.Z=s},30348:function(t,e,n){"use strict";n.d(e,{Z:function(){return te}});var r,i,a,o,l=n(67423),s=n(23311),c=n(75801),u=n(55350),f=n(11344),d=new c.dU,h=new c.dU,p={point:f.Z,lineStart:f.Z,lineEnd:f.Z,polygonStart:function(){p.lineStart=g,p.lineEnd=v},polygonEnd:function(){p.lineStart=p.lineEnd=p.point=f.Z,d.add((0,u.Wn)(h)),h=new c.dU},result:function(){var t=d/2;return d=new c.dU,t}};function g(){p.point=m}function m(t,e){p.point=y,r=a=t,i=o=e}function y(t,e){h.add(o*t-a*e),a=t,o=e}function v(){y(r,i)}var b,x,O,w,_=n(3310),k=0,C=0,j=0,M=0,S=0,A=0,E=0,P=0,R=0,T={point:L,lineStart:B,lineEnd:D,polygonStart:function(){T.lineStart=N,T.lineEnd=z},polygonEnd:function(){T.point=L,T.lineStart=B,T.lineEnd=D},result:function(){var t=R?[E/R,P/R]:A?[M/A,S/A]:j?[k/j,C/j]:[NaN,NaN];return k=C=j=M=S=A=E=P=R=0,t}};function L(t,e){k+=t,C+=e,++j}function B(){T.point=Z}function Z(t,e){T.point=I,L(O=t,w=e)}function I(t,e){var n=t-O,r=e-w,i=(0,u._b)(n*n+r*r);M+=i*(O+t)/2,S+=i*(w+e)/2,A+=i,L(O=t,w=e)}function D(){T.point=L}function N(){T.point=F}function z(){$(b,x)}function F(t,e){T.point=$,L(b=O=t,x=w=e)}function $(t,e){var n=t-O,r=e-w,i=(0,u._b)(n*n+r*r);M+=i*(O+t)/2,S+=i*(w+e)/2,A+=i,E+=(i=w*t-O*e)*(O+t),P+=i*(w+e),R+=3*i,L(O=t,w=e)}function W(t){this._context=t}W.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,u.BZ)}},result:f.Z};var H,G,q,Y,V,U=new c.dU,Q={point:f.Z,lineStart:function(){Q.point=X},lineEnd:function(){H&&K(G,q),Q.point=f.Z},polygonStart:function(){H=!0},polygonEnd:function(){H=null},result:function(){var t=+U;return U=new c.dU,t}};function X(t,e){Q.point=K,G=Y=t,q=V=e}function K(t,e){Y-=t,V-=e,U.add((0,u._b)(Y*Y+V*V)),Y=t,V=e}function J(){this._string=[]}function tt(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function te(t,e){var n,r,i=4.5;function a(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),(0,s.Z)(t,n(r))),r.result()}return a.area=function(t){return(0,s.Z)(t,n(p)),p.result()},a.measure=function(t){return(0,s.Z)(t,n(Q)),Q.result()},a.bounds=function(t){return(0,s.Z)(t,n(_.Z)),_.Z.result()},a.centroid=function(t){return(0,s.Z)(t,n(T)),T.result()},a.projection=function(e){return arguments.length?(n=null==e?(t=null,l.Z):(t=e).stream,a):t},a.context=function(t){return arguments.length?(r=null==t?(e=null,new J):new W(e=t),"function"!=typeof i&&r.pointRadius(i),a):e},a.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),a):i},a.projection(t).context(e)}J.prototype={_radius:4.5,_circle:tt(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=tt(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(!this._string.length)return null;var t=this._string.join("");return this._string=[],t}}},55228:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(55350);function i(t,e){return(0,r.Wn)(t[0]-e[0])=.12&&i<.234&&r>=-.425&&r<-.214?f:i>=.166&&i<.234&&r>=-.214&&r<-.115?d:u).invert(t)},p.stream=function(n){var r,i;return t&&e===n?t:(i=(r=[u.stream(e=n),f.stream(n),d.stream(n)]).length,t={point:function(t,e){for(var n=-1;++n0?e<-r.ou+r.Ho&&(e=-r.ou+r.Ho):e>r.ou-r.Ho&&(e=r.ou-r.Ho);var n=l/(0,r.sQ)(o(e),i);return[n*(0,r.O$)(i*t),l-n*(0,r.mC)(i*t)]}return s.invert=function(t,e){var n=l-e,a=(0,r.Xx)(i)*(0,r._b)(t*t+n*n),o=(0,r.fv)(t,(0,r.Wn)(n))*(0,r.Xx)(n);return n*i<0&&(o-=r.pi*(0,r.Xx)(t)*(0,r.Xx)(n)),[o/i,2*(0,r.z4)((0,r.sQ)(l/a,1/i))-r.ou]},s}function s(){return(0,i.o)(l).scale(109.5).parallels([30,30])}},26477:function(t,e,n){"use strict";n.d(e,{v:function(){return a},Z:function(){return o}});var r=n(55350),i=n(53388);function a(t,e){var n=(0,r.O$)(t),i=(n+(0,r.O$)(e))/2;if((0,r.Wn)(i)=0?1:-1,R=P*E,T=R>a.pi,L=w*S;if(d.add((0,a.fv)(L*P*(0,a.O$)(R),_*A+L*(0,a.mC)(R))),c+=T?E+P*a.BZ:E,T^x>=n^j>=n){var B=u(s(b),s(C));h(B);var Z=u(l,B);h(Z);var I=(T^E>=0?-1:1)*(0,a.ZR)(Z[2]);(r>I||r===I&&(B[0]||B[1]))&&(f+=T^E>=0?1:-1)}}return(c<-a.Ho||c0){for(w||(c.polygonStart(),w=!0),c.lineStart(),t=0;t1&&2&i&&a.push(a.pop().concat(a.shift())),d.push(a.filter(y))}}return _}}function y(t){return t.length>1}function v(t,e){return((t=t.x)[0]<0?t[1]-a.ou-a.Ho:a.ou-t[1])-((e=e.x)[0]<0?e[1]-a.ou-a.Ho:a.ou-e[1])}var b=m(function(){return!0},function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,l){var s,c,u,f,d,h,p=o>0?a.pi:-a.pi,g=(0,a.Wn)(o-n);(0,a.Wn)(g-a.pi)0?a.ou:-a.ou),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(p,r),t.point(o,r),e=0):i!==p&&g>=a.pi&&((0,a.Wn)(n-i)a.Ho?(0,a.z4)(((0,a.O$)(c)*(d=(0,a.mC)(l))*(0,a.O$)(u)-(0,a.O$)(l)*(f=(0,a.mC)(c))*(0,a.O$)(s))/(f*d*h)):(c+l)/2,t.point(i,r),t.lineEnd(),t.lineStart(),t.point(p,r),e=0),t.point(n=o,r=l),i=p},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}},function(t,e,n,r){var i;if(null==t)i=n*a.ou,r.point(-a.pi,i),r.point(0,i),r.point(a.pi,i),r.point(a.pi,0),r.point(a.pi,-i),r.point(0,-i),r.point(-a.pi,-i),r.point(-a.pi,0),r.point(-a.pi,i);else if((0,a.Wn)(t[0]-e[0])>a.Ho){var o=t[0]-e[2]?-n:n)+a.BZ-a.Ho)%a.BZ}var O=n(55228),w=n(85142),_=n(44079),k=n(67423),C=n(51613),j=n(20071),M=n(83776),S=(0,a.mC)(30*a.uR);function A(t,e){return+e?function(t,e){function n(r,i,o,l,s,c,u,f,d,h,p,g,m,y){var v=u-r,b=f-i,x=v*v+b*b;if(x>4*e&&m--){var O=l+h,w=s+p,_=c+g,k=(0,a._b)(O*O+w*w+_*_),C=(0,a.ZR)(_/=k),j=(0,a.Wn)((0,a.Wn)(_)-1)e||(0,a.Wn)((v*P+b*R)/x-.5)>.3||l*h+s*p+c*g0,i=(0,a.Wn)(e)>a.Ho;function o(t,n){return(0,a.mC)(t)*(0,a.mC)(n)>e}function h(t,n,r){var i=s(t),o=s(n),h=[1,0,0],p=u(i,o),g=c(p,p),m=p[0],y=g-m*m;if(!y)return!r&&t;var v=e*g/y,b=-e*m/y,x=u(h,p),O=d(h,v);f(O,d(p,b));var w=c(O,x),_=c(x,x),k=w*w-_*(c(O,O)-1);if(!(k<0)){var C=(0,a._b)(k),j=d(x,(-w-C)/_);if(f(j,O),j=l(j),!r)return j;var M,S=t[0],A=n[0],E=t[1],P=n[1];A0^j[1]<((0,a.Wn)(j[0]-S)a.pi^(S<=j[0]&&j[0]<=A)){var B=d(x,(-w+C)/_);return f(B,O),[j,l(B)]}}}function p(e,n){var i=r?t:a.pi-t,o=0;return e<-i?o|=1:e>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return m(o,function(t){var e,n,l,s,c;return{lineStart:function(){s=l=!1,c=1},point:function(u,f){var d,g,m=[u,f],y=o(u,f),v=r?y?0:p(u,f):y?p(u+(u<0?a.pi:-a.pi),f):0;!e&&(s=l=y)&&t.lineStart(),y!==l&&(!(g=h(e,m))||(0,O.Z)(e,g)||(0,O.Z)(m,g))&&(m[2]=1),y!==l?(c=0,y?(t.lineStart(),g=h(m,e),t.point(g[0],g[1])):(g=h(e,m),t.point(g[0],g[1],2),t.lineEnd()),e=g):i&&e&&r^y&&!(v&n)&&(d=h(m,e,!0))&&(c=0,r?(t.lineStart(),t.point(d[0][0],d[0][1]),t.point(d[1][0],d[1][1]),t.lineEnd()):(t.point(d[1][0],d[1][1]),t.lineEnd(),t.lineStart(),t.point(d[0][0],d[0][1],3))),!y||e&&(0,O.Z)(e,m)||t.point(m[0],m[1]),e=m,l=y,n=v},lineEnd:function(){l&&t.lineEnd(),e=null},clean:function(){return c|(s&&l)<<1}}},function(e,r,i,o){!function(t,e,n,r,i,o){if(n){var s=(0,a.mC)(e),c=(0,a.O$)(e),u=r*n;null==i?(i=e+r*a.BZ,o=e-u/2):(i=x(s,i),o=x(s,o),(r>0?io)&&(i+=r*a.BZ));for(var f,d=i;r>0?d>o:d2?t[2]%360*a.uR:0,U()):[Z*a.RW,I*a.RW,D*a.RW]},Y.angle=function(t){return arguments.length?(N=t%360*a.uR,U()):N*a.RW},Y.reflectX=function(t){return arguments.length?(z=t?-1:1,U()):z<0},Y.reflectY=function(t){return arguments.length?(F=t?-1:1,U()):F<0},Y.precision=function(t){return arguments.length?(h=A(p,q=t*t),Q()):(0,a._b)(q)},Y.fitExtent=function(t,e){return(0,M.qg)(Y,t,e)},Y.fitSize=function(t,e){return(0,M.mF)(Y,t,e)},Y.fitWidth=function(t,e){return(0,M.V6)(Y,t,e)},Y.fitHeight=function(t,e){return(0,M.rf)(Y,t,e)},function(){return e=t.apply(this,arguments),Y.invert=e.invert&&V,U()}}},23007:function(t,e,n){"use strict";n.d(e,{ZP:function(){return l},hk:function(){return o},iW:function(){return s}});var r=n(55350),i=n(51613),a=n(32427);function o(t,e){return[t,(0,r.cM)((0,r.OR)((r.ou+e)/2))]}function l(){return s(o).scale(961/r.BZ)}function s(t){var e,n,l,s=(0,a.Z)(t),c=s.center,u=s.scale,f=s.translate,d=s.clipExtent,h=null;function p(){var a=r.pi*u(),c=s((0,i.Z)(s.rotate()).invert([0,0]));return d(null==h?[[c[0]-a,c[1]-a],[c[0]+a,c[1]+a]]:t===o?[[Math.max(c[0]-a,h),e],[Math.min(c[0]+a,n),l]]:[[h,Math.max(c[1]-a,e)],[n,Math.min(c[1]+a,l)]])}return s.scale=function(t){return arguments.length?(u(t),p()):u()},s.translate=function(t){return arguments.length?(f(t),p()):f()},s.center=function(t){return arguments.length?(c(t),p()):c()},s.clipExtent=function(t){return arguments.length?(null==t?h=e=n=l=null:(h=+t[0][0],e=+t[0][1],n=+t[1][0],l=+t[1][1]),p()):null==h?null:[[h,e],[n,l]]},p()}o.invert=function(t,e){return[t,2*(0,r.z4)((0,r.Qq)(e))-r.ou]}},38839:function(t,e,n){"use strict";n.d(e,{K:function(){return a},Z:function(){return o}});var r=n(32427),i=n(55350);function a(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(-.013791+r*(.003971*n-.001529*r))),e*(1.007226+n*(.015085+r*(-.044475+.028874*n-.005916*r)))]}function o(){return(0,r.Z)(a).scale(175.295)}a.invert=function(t,e){var n,r=e,a=25;do{var o=r*r,l=o*o;r-=n=(r*(1.007226+o*(.015085+l*(-.044475+.028874*o-.005916*l)))-e)/(1.007226+o*(.045255+l*(-.311325+.259866*o-.005916*11*l)))}while((0,i.Wn)(n)>i.Ho&&--a>0);return[t/(.8707+(o=r*r)*(-.131979+o*(-.013791+o*o*o*(.003971-.001529*o)))),r]}},50435:function(t,e,n){"use strict";n.d(e,{I:function(){return o},Z:function(){return l}});var r=n(55350),i=n(93824),a=n(32427);function o(t,e){return[(0,r.mC)(e)*(0,r.O$)(t),(0,r.O$)(e)]}function l(){return(0,a.Z)(o).scale(249.5).clipAngle(90+r.Ho)}o.invert=(0,i.O)(r.ZR)},30378:function(t,e,n){"use strict";n.d(e,{T:function(){return o},Z:function(){return l}});var r=n(55350),i=n(93824),a=n(32427);function o(t,e){var n=(0,r.mC)(e),i=1+(0,r.mC)(t)*n;return[n*(0,r.O$)(t)/i,(0,r.O$)(e)/i]}function l(){return(0,a.Z)(o).scale(250).clipAngle(142)}o.invert=(0,i.O)(function(t){return 2*(0,r.z4)(t)})},17421:function(t,e,n){"use strict";n.d(e,{F:function(){return a},Z:function(){return o}});var r=n(55350),i=n(23007);function a(t,e){return[(0,r.cM)((0,r.OR)((r.ou+e)/2)),-t]}function o(){var t=(0,i.iW)(a),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}a.invert=function(t,e){return[-e,2*(0,r.z4)((0,r.Qq)(t))-r.ou]}},51613:function(t,e,n){"use strict";n.d(e,{I:function(){return o},Z:function(){return u}});var r=n(44079),i=n(55350);function a(t,e){return[(0,i.Wn)(t)>i.pi?t+Math.round(-t/i.BZ)*i.BZ:t,e]}function o(t,e,n){return(t%=i.BZ)?e||n?(0,r.Z)(s(t),c(e,n)):s(t):e||n?c(e,n):a}function l(t){return function(e,n){return[(e+=t)>i.pi?e-i.BZ:e<-i.pi?e+i.BZ:e,n]}}function s(t){var e=l(t);return e.invert=l(-t),e}function c(t,e){var n=(0,i.mC)(t),r=(0,i.O$)(t),a=(0,i.mC)(e),o=(0,i.O$)(e);function l(t,e){var l=(0,i.mC)(e),s=(0,i.mC)(t)*l,c=(0,i.O$)(t)*l,u=(0,i.O$)(e),f=u*n+s*r;return[(0,i.fv)(c*a-f*o,s*n-u*r),(0,i.ZR)(f*a+c*o)]}return l.invert=function(t,e){var l=(0,i.mC)(e),s=(0,i.mC)(t)*l,c=(0,i.O$)(t)*l,u=(0,i.O$)(e),f=u*a-c*o;return[(0,i.fv)(c*a+u*o,s*n+f*r),(0,i.ZR)(f*n-s*r)]},l}function u(t){function e(e){return e=t(e[0]*i.uR,e[1]*i.uR),e[0]*=i.RW,e[1]*=i.RW,e}return t=o(t[0]*i.uR,t[1]*i.uR,t.length>2?t[2]*i.uR:0),e.invert=function(e){return e=t.invert(e[0]*i.uR,e[1]*i.uR),e[0]*=i.RW,e[1]*=i.RW,e},e}a.invert=a},23311:function(t,e,n){"use strict";function r(t,e){t&&a.hasOwnProperty(t.type)&&a[t.type](t,e)}n.d(e,{Z:function(){return s}});var i={Feature:function(t,e){r(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,i=-1,a=n.length;++i=0;)e+=n[r].value;else e=1;t.value=e}function i(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=o)):void 0===e&&(e=a);for(var n,r,i,l,u,f=new c(t),d=[f];n=d.pop();)if((i=e(n.data))&&(u=(i=Array.from(i)).length))for(n.children=i,l=u-1;l>=0;--l)d.push(r=i[l]=new c(i[l])),r.parent=n,r.depth=n.depth+1;return f.eachBefore(s)}function a(t){return t.children}function o(t){return Array.isArray(t)?t[1]:null}function l(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function s(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function c(t){this.data=t,this.depth=this.height=0,this.parent=null}n.d(e,{NB:function(){return c},le:function(){return s},ZP:function(){return i}}),c.prototype=i.prototype={constructor:c,count:function(){return this.eachAfter(r)},each:function(t,e){let n=-1;for(let r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,i,a=this,o=[a],l=[],s=-1;a=o.pop();)if(l.push(a),n=a.children)for(r=0,i=n.length;r=0;--r)a.push(n[r]);return this},find:function(t,e){let n=-1;for(let r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return i(this).eachBefore(l)},[Symbol.iterator]:function*(){var t,e,n,r,i=this,a=[i];do for(t=a.reverse(),a=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n0&&n*n>r*r+i*i}function a(t,e){for(var n=0;n(o*=o)?(r=(c+o-i)/(2*c),a=Math.sqrt(Math.max(0,o/c-r*r)),n.x=t.x-r*l-a*s,n.y=t.y-r*s+a*l):(r=(c+i-o)/(2*c),a=Math.sqrt(Math.max(0,i/c-r*r)),n.x=e.x+r*l-a*s,n.y=e.y+r*s+a*l)):(n.x=e.x+n.r,n.y=e.y)}function c(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function u(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function f(t){this._=t,this.next=null,this.previous=null}n.d(e,{Z:function(){return g}});var d=n(76263),h=n(40588);function p(t){return Math.sqrt(t.value)}function g(){var t=null,e=1,n=1,r=h.G;function i(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(m(t)).eachAfter(y(r,.5)).eachBefore(v(1)):i.eachBefore(m(p)).eachAfter(y(h.G,1)).eachAfter(y(r,i.r/Math.min(e,n))).eachBefore(v(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=(0,d.j)(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:(0,h.Z)(+t),i):r},i}function m(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function y(t,e){return function(n){if(d=n.children){var d,h,p,g=d.length,m=t(n)*e||0;if(m)for(h=0;h1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(h>2))return e.r+n.r;s(n,e,d=t[2]),e=new f(e),n=new f(n),d=new f(d),e.next=d.previous=n,n.next=e.previous=d,d.next=n.previous=e;e:for(m=3;m0)throw Error("cycle");return s}return n.id=function(e){return arguments.length?(t=(0,r.C)(e),n):t},n.parentId=function(t){return arguments.length?(e=(0,r.C)(t),n):e},n}},81594:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(70569);function i(t,e){return t.parent===e.parent?1:2}function a(t){var e=t.children;return e?e[0]:t.t}function o(t){var e=t.children;return e?e[e.length-1]:t.t}function l(t,e){this._=t,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=e}function s(){var t=i,e=1,n=1,r=null;function s(i){var a=function(t){for(var e,n,r,i,a,o=new l(t,0),s=[o];e=s.pop();)if(r=e._.children)for(e.children=Array(a=r.length),i=a-1;i>=0;--i)s.push(n=e.children[i]=new l(r[i],i)),n.parent=e;return(o.parent=new l(null,0)).children=[o],o}(i);if(a.eachAfter(c),a.parent.m=-a.z,a.eachBefore(u),r)i.eachBefore(f);else{var o=i,s=i,d=i;i.eachBefore(function(t){t.xs.x&&(s=t),t.depth>d.depth&&(d=t)});var h=o===s?1:t(o,s)/2,p=h-o.x,g=e/(s.x+h+p),m=n/(d.depth||1);i.eachBefore(function(t){t.x=(t.x+p)*g,t.y=t.depth*m})}return i}function c(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,a=i.length;--a>=0;)e=i[a],e.z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var l=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-l):e.z=l}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,l,s,c=e,u=e,f=n,d=c.parent.children[0],h=c.m,p=u.m,g=f.m,m=d.m;f=o(f),c=a(c),f&&c;)d=a(d),(u=o(u)).a=e,(s=f.z+g-c.z-h+t(f._,c._))>0&&(function(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}((i=f,l=r,i.a.parent===e.parent?i.a:l),e,s),h+=s,p+=s),g+=f.m,h+=c.m,m+=d.m,p+=u.m;f&&!o(u)&&(u.t=f,u.m+=g-p),c&&!a(d)&&(d.t=c,d.m+=h-m,r=e)}return r}(e,i,e.parent.A||r[0])}function u(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function f(t){t.x*=e,t.y=t.depth*n}return s.separation=function(e){return arguments.length?(t=e,s):t},s.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],s):r?null:[e,n]},s.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],s):r?[e,n]:null},s}l.prototype=Object.create(r.NB.prototype)},70239:function(t,e,n){"use strict";function r(t,e,n,r,i){var a,o,l=t.children,s=l.length,c=Array(s+1);for(c[0]=o=a=0;a=n-1){var u=l[e];u.x0=i,u.y0=a,u.x1=o,u.y1=s;return}for(var f=c[e],d=r/2+f,h=e+1,p=n-1;h>>1;c[g]s-a){var v=r?(i*y+o*m)/r:o;t(e,h,m,i,a,v,s),t(h,n,y,v,a,o,s)}else{var b=r?(a*y+s*m)/r:s;t(e,h,m,i,a,o,b),t(h,n,y,i,b,o,s)}}(0,s,t.value,e,n,r,i)}n.d(e,{Z:function(){return r}})},36849:function(t,e,n){"use strict";function r(t,e,n,r,i){for(var a,o=t.children,l=-1,s=o.length,c=t.value&&(r-e)/t.value;++l1?e:1)},n}(a.Sk)},8080:function(t,e,n){"use strict";function r(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}n.d(e,{Z:function(){return r}})},71831:function(t,e,n){"use strict";function r(t,e,n,r,i){for(var a,o=t.children,l=-1,s=o.length,c=t.value&&(i-n)/t.value;++lp&&(p=c),(g=Math.max(p/(v=d*d*y),v/h))>m){d-=c;break}m=g}b.push(s={value:d,dice:u1?e:1)},n}(a)},11108:function(t,e){"use strict";let n=Math.PI,r=2*n,i=r-1e-6;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new a}a.prototype=o.prototype={constructor:a,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,e,r,i,a){t=+t,e=+e,r=+r,i=+i,a=+a;var o=this._x1,l=this._y1,s=r-t,c=i-e,u=o-t,f=l-e,d=u*u+f*f;if(a<0)throw Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(d>1e-6){if(Math.abs(f*s-c*u)>1e-6&&a){var h=r-o,p=i-l,g=s*s+c*c,m=Math.sqrt(g),y=Math.sqrt(d),v=a*Math.tan((n-Math.acos((g+d-(h*h+p*p))/(2*m*y)))/2),b=v/y,x=v/m;Math.abs(b-1)>1e-6&&(this._+="L"+(t+b*u)+","+(e+b*f)),this._+="A"+a+","+a+",0,0,"+ +(f*h>u*p)+","+(this._x1=t+x*s)+","+(this._y1=e+x*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)}},arc:function(t,e,a,o,l,s){t=+t,e=+e,a=+a,s=!!s;var c=a*Math.cos(o),u=a*Math.sin(o),f=t+c,d=e+u,h=1^s,p=s?o-l:l-o;if(a<0)throw Error("negative radius: "+a);null===this._x1?this._+="M"+f+","+d:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-d)>1e-6)&&(this._+="L"+f+","+d),a&&(p<0&&(p=p%r+r),p>i?this._+="A"+a+","+a+",0,1,"+h+","+(t-c)+","+(e-u)+"A"+a+","+a+",0,1,"+h+","+(this._x1=f)+","+(this._y1=d):p>1e-6&&(this._+="A"+a+","+a+",0,"+ +(p>=n)+","+h+","+(this._x1=t+a*Math.cos(l))+","+(this._y1=e+a*Math.sin(l))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},e.Z=o},63488:function(t,e,n){"use strict";function r(t){for(var e=t.length/6|0,n=Array(e),r=0;r()=>t;function y(t,e){return function(n){return t+n*e}}function v(t,e){var n=e-t;return n?y(t,n):m(isNaN(t)?e:t)}function b(t){return function(e){var n,r,i=e.length,a=Array(i),o=Array(i),l=Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,l=rx(t[t.length-1]),w=[,,,].concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(r),_=O(w),k=[,,,].concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(r),C=O(k),j=[,,,].concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(r),M=O(j),S=[,,,].concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(r),A=O(S),E=[,,,].concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(r),P=O(E),R=[,,,].concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(r),T=O(R),L=[,,,].concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(r),B=O(L),Z=[,,,].concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(r),I=O(Z),D=[,,,].concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(r),N=O(D),z=[,,,].concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(r),F=O(z),$=[,,,].concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(r),W=O($),H=[,,,].concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(r),G=O(H),q=[,,,].concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(r),Y=O(q),V=[,,,].concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(r),U=O(V),Q=[,,,].concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(r),X=O(Q),K=[,,,].concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(r),J=O(K),tt=[,,,].concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(r),te=O(tt),tn=[,,,].concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(r),tr=O(tn),ti=[,,,].concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(r),ta=O(ti),to=[,,,].concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(r),tl=O(to),ts=[,,,].concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(r),tc=O(ts),tu=[,,,].concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(r),tf=O(tu),td=[,,,].concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(r),th=O(td),tp=[,,,].concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(r),tg=O(tp),tm=[,,,].concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(r),ty=O(tm),tv=[,,,].concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(r),tb=O(tv),tx=[,,,].concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(r),tO=O(tx);function tw(t){return"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-(t=Math.max(0,Math.min(1,t)))*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"}var t_=n(44087);let tk=Math.PI/180,tC=180/Math.PI;var tj=-1.78277*.29227-.1347134789;function tM(t,e,n,r){return 1==arguments.length?function(t){if(t instanceof tS)return new tS(t.h,t.s,t.l,t.opacity);t instanceof p.Ss||(t=(0,p.SU)(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(tj*r+-1.7884503806*e-3.5172982438*n)/(tj+-1.7884503806-3.5172982438),a=r-i,o=-((1.97294*(n-i)- -.29227*a)/.90649),l=Math.sqrt(o*o+a*a)/(1.97294*i*(1-i)),s=l?Math.atan2(o,a)*tC-120:NaN;return new tS(s<0?s+360:s,l,i,t.opacity)}(t):new tS(t,e,n,null==r?1:r)}function tS(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function tA(t){return function e(n){function r(e,r){var i=t((e=tM(e)).h,(r=tM(r)).h),a=v(e.s,r.s),o=v(e.l,r.l),l=v(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=a(t),e.l=o(Math.pow(t,n)),e.opacity=l(t),e+""}}return n=+n,r.gamma=e,r}(1)}(0,t_.Z)(tS,tM,(0,t_.l)(p.Il,{brighter:function(t){return t=null==t?p.J5:Math.pow(p.J5,t),new tS(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?p.xV:Math.pow(p.xV,t),new tS(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*tk,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new p.Ss(255*(e+n*(-.14861*r+1.78277*i)),255*(e+n*(-.29227*r+-.90649*i)),255*(e+n*(1.97294*r)),this.opacity)}})),tA(function(t,e){var n=e-t;return n?y(t,n>180||n<-180?n-360*Math.round(n/360):n):m(isNaN(t)?e:t)});var tE=tA(v),tP=tE(tM(300,.5,0),tM(-240,.5,1)),tR=tE(tM(-100,.75,.35),tM(80,1.5,.8)),tT=tE(tM(260,.75,.35),tM(80,1.5,.8)),tL=tM();function tB(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return tL.h=360*t-100,tL.s=1.5-1.5*e,tL.l=.8-.9*e,tL+""}var tZ=(0,p.B8)(),tI=Math.PI/3,tD=2*Math.PI/3;function tN(t){var e;return t=(.5-t)*Math.PI,tZ.r=255*(e=Math.sin(t))*e,tZ.g=255*(e=Math.sin(t+tI))*e,tZ.b=255*(e=Math.sin(t+tD))*e,tZ+""}function tz(t){return"rgb("+Math.max(0,Math.min(255,Math.round(34.61+(t=Math.max(0,Math.min(1,t)))*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"}function tF(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var t$=tF(r("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),tW=tF(r("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),tH=tF(r("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),tG=tF(r("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"))},10233:function(t,e,n){"use strict";n.d(e,{Z:function(){return d}});var r=n(11108),i=n(93072),a=n(44915);function o(t){return t.innerRadius}function l(t){return t.outerRadius}function s(t){return t.startAngle}function c(t){return t.endAngle}function u(t){return t&&t.padAngle}function f(t,e,n,r,i,o,l){var s=t-n,c=e-r,u=(l?o:-o)/(0,a._b)(s*s+c*c),f=u*c,d=-u*s,h=t+f,p=e+d,g=n+f,m=r+d,y=(h+g)/2,v=(p+m)/2,b=g-h,x=m-p,O=b*b+x*x,w=i-o,_=h*m-g*p,k=(x<0?-1:1)*(0,a._b)((0,a.Fp)(0,w*w*O-_*_)),C=(_*x-b*k)/O,j=(-_*b-x*k)/O,M=(_*x+b*k)/O,S=(-_*b+x*k)/O,A=C-y,E=j-v,P=M-y,R=S-v;return A*A+E*E>P*P+R*R&&(C=M,j=S),{cx:C,cy:j,x01:-f,y01:-d,x11:C*(i/w-1),y11:j*(i/w-1)}}function d(){var t=o,e=l,n=(0,i.Z)(0),d=null,h=s,p=c,g=u,m=null;function y(){var i,o,l=+t.apply(this,arguments),s=+e.apply(this,arguments),c=h.apply(this,arguments)-a.ou,u=p.apply(this,arguments)-a.ou,y=(0,a.Wn)(u-c),v=u>c;if(m||(m=i=(0,r.Z)()),sa.Ho){if(y>a.BZ-a.Ho)m.moveTo(s*(0,a.mC)(c),s*(0,a.O$)(c)),m.arc(0,0,s,c,u,!v),l>a.Ho&&(m.moveTo(l*(0,a.mC)(u),l*(0,a.O$)(u)),m.arc(0,0,l,u,c,v));else{var b,x,O=c,w=u,_=c,k=u,C=y,j=y,M=g.apply(this,arguments)/2,S=M>a.Ho&&(d?+d.apply(this,arguments):(0,a._b)(l*l+s*s)),A=(0,a.VV)((0,a.Wn)(s-l)/2,+n.apply(this,arguments)),E=A,P=A;if(S>a.Ho){var R=(0,a.ZR)(S/l*(0,a.O$)(M)),T=(0,a.ZR)(S/s*(0,a.O$)(M));(C-=2*R)>a.Ho?(R*=v?1:-1,_+=R,k-=R):(C=0,_=k=(c+u)/2),(j-=2*T)>a.Ho?(T*=v?1:-1,O+=T,w-=T):(j=0,O=w=(c+u)/2)}var L=s*(0,a.mC)(O),B=s*(0,a.O$)(O),Z=l*(0,a.mC)(k),I=l*(0,a.O$)(k);if(A>a.Ho){var D,N=s*(0,a.mC)(w),z=s*(0,a.O$)(w),F=l*(0,a.mC)(_),$=l*(0,a.O$)(_);if(ya.Ho?P>a.Ho?(b=f(F,$,L,B,s,P,v),x=f(N,z,Z,I,s,P,v),m.moveTo(b.cx+b.x01,b.cy+b.y01),Pa.Ho&&C>a.Ho?E>a.Ho?(b=f(Z,I,N,z,l,-E,v),x=f(L,B,F,$,l,-E,v),m.lineTo(b.cx+b.x01,b.cy+b.y01),E=l;--s)h.point(v[s],b[s]);h.lineEnd(),h.areaEnd()}}y&&(v[o]=+t(p,o,a),b[o]=+e(p,o,a),h.point(c?+c(p,o,a):v[o],n?+n(p,o,a):b[o]))}if(g)return h=null,g+""||null}function g(){return(0,l.Z)().defined(u).curve(d).context(f)}return t="function"==typeof t?t:void 0===t?s.x:(0,a.Z)(+t),e="function"==typeof e?e:void 0===e?(0,a.Z)(0):(0,a.Z)(+e),n="function"==typeof n?n:void 0===n?s.y:(0,a.Z)(+n),p.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,a.Z)(+e),c=null,p):t},p.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,a.Z)(+e),p):t},p.x1=function(t){return arguments.length?(c=null==t?null:"function"==typeof t?t:(0,a.Z)(+t),p):c},p.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,a.Z)(+t),n=null,p):e},p.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,a.Z)(+t),p):e},p.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:(0,a.Z)(+t),p):n},p.lineX0=p.lineY0=function(){return g().x(t).y(e)},p.lineY1=function(){return g().x(t).y(n)},p.lineX1=function(){return g().x(c).y(e)},p.defined=function(t){return arguments.length?(u="function"==typeof t?t:(0,a.Z)(!!t),p):u},p.curve=function(t){return arguments.length?(d=t,null!=f&&(h=d(f)),p):d},p.context=function(t){return arguments.length?(null==t?f=h=null:h=d(f=t),p):f},p}},53253:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(45317),i=n(37633),a=n(73671);function o(){var t=(0,i.Z)().curve(r.j),e=t.curve,n=t.lineX0,o=t.lineX1,l=t.lineY0,s=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return(0,a.X)(n())},delete t.lineX0,t.lineEndAngle=function(){return(0,a.X)(o())},delete t.lineX1,t.lineInnerRadius=function(){return(0,a.X)(l())},delete t.lineY0,t.lineOuterRadius=function(){return(0,a.X)(s())},delete t.lineY1,t.curve=function(t){return arguments.length?e((0,r.Z)(t)):e()._curve},t}},5742:function(t,e,n){"use strict";function r(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}n.d(e,{Z:function(){return r}}),Array.prototype.slice},93072:function(t,e,n){"use strict";function r(t){return function(){return t}}n.d(e,{Z:function(){return r}})},43683:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var r=n(33046);function i(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function a(t,e){this._context=t,this._k=(1-e)/6}function o(t,e){this._context=t,this._k=(1-e)/6}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:i(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:i(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new a(t,e)}return n.tension=function(e){return t(+e)},n}(0),o.prototype={areaStart:r.Z,areaEnd:r.Z,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:i(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new o(t,e)}return n.tension=function(e){return t(+e)},n}(0);var l=n(44915);function s(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>l.Ho){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>l.Ho){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*u+t._x1*t._l23_2a-e*t._l12_2a)/f,o=(o*u+t._y1*t._l23_2a-n*t._l12_2a)/f}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function c(t,e){this._context=t,this._alpha=e}function u(t,e){this._context=t,this._alpha=e}c.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:s(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return e?new c(t,e):new a(t,0)}return n.alpha=function(e){return t(+e)},n}(.5),u.prototype={areaStart:r.Z,areaEnd:r.Z,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:s(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var f=function t(e){function n(t){return e?new u(t,e):new o(t,0)}return n.alpha=function(e){return t(+e)},n}(.5)},18143:function(t,e,n){"use strict";function r(t){this._context=t}function i(t){return new r(t)}n.d(e,{Z:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}}},57481:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(33046);function i(t){this._context=t}function a(t){return new i(t)}i.prototype={areaStart:r.Z,areaEnd:r.Z,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}}},65165:function(t,e,n){"use strict";function r(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0);return((a<0?-1:1)+(o<0?-1:1))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs((a*i+o*r)/(r+i)))||0}function i(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function a(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,l=(a-r)/3;t._context.bezierCurveTo(r+l,i+l*e,a-l,o-l*n,a,o)}function o(t){this._context=t}function l(t){this._context=new s(t)}function s(t){this._context=t}function c(t){return new o(t)}function u(t){return new l(t)}n.d(e,{Z:function(){return c},s:function(){return u}}),o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:a(this,this._t0,i(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,a(this,i(this,n=r(this,t,e)),n);break;default:a(this,this._t0,n=r(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(l.prototype=Object.create(o.prototype)).point=function(t,e){o.prototype.point.call(this,e,t)},s.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}}},45317:function(t,e,n){"use strict";n.d(e,{Z:function(){return a},j:function(){return r}});var r=a(n(18143).Z);function i(t){this._curve=t}function a(t){function e(e){return new i(t(e))}return e._curve=t,e}i.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),-(e*Math.cos(t)))}}},77059:function(t,e,n){"use strict";function r(t,e){this._context=t,this._t=e}function i(t){return new r(t,.5)}function a(t){return new r(t,0)}function o(t){return new r(t,1)}n.d(e,{RN:function(){return a},ZP:function(){return i},cD:function(){return o}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}}},25049:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(11108),i=n(5742),a=n(93072),o=n(18143),l=n(78260);function s(t,e){var n=(0,a.Z)(!0),s=null,c=o.Z,u=null;function f(a){var o,l,f,d=(a=(0,i.Z)(a)).length,h=!1;for(null==s&&(u=c(f=(0,r.Z)())),o=0;o<=d;++o)!(o1?0:t<-1?f:Math.acos(t)}function g(t){return t>=1?d:t<=-1?-d:Math.asin(t)}},33046:function(t,e,n){"use strict";function r(){}n.d(e,{Z:function(){return r}})},78260:function(t,e,n){"use strict";function r(t){return t[0]}function i(t){return t[1]}n.d(e,{x:function(){return r},y:function(){return i}})},19432:function(t,e,n){"use strict";n.d(e,{WU:function(){return g}});var r=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i=/\[([^]*?)\]/gm;function a(t,e){for(var n=[],r=0,i=t.length;r-1?r:null}};function l(t){for(var e=[],n=1;n3?0:(t-t%10!=10?1:0)*t%10]}}),d=function(t,e){for(void 0===e&&(e=2),t=String(t);t.lengtht.getHours()?e.amPm[0]:e.amPm[1]},A:function(t,e){return 12>t.getHours()?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+d(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+d(Math.floor(Math.abs(e)/60),2)+":"+d(Math.abs(e)%60,2)}};o("monthNamesShort"),o("monthNames");var p={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"},g=function(t,e,n){if(void 0===e&&(e=p.default),void 0===n&&(n={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw Error("Invalid Date pass to format");e=p[e]||e;var a=[];e=e.replace(i,function(t,e){return a.push(e),"@@@"});var o=l(l({},f),n);return(e=e.replace(r,function(e){return h[e](t,o)})).replace(/@@@/g,function(){return a.shift()})}},69916:function(t,e){!function(t){"use strict";function e(t){for(var e=Array(t),n=0;nc+l*o*u||f>=g)p=o;else{if(Math.abs(h)<=-s*u)return o;h*(p-d)>=0&&(p=d),d=o,g=f}return 0}o=o||1,l=l||1e-6,s=s||.1;for(var m=0;m<10;++m){if(a(i.x,1,r.x,o,e),f=i.fx=t(i.x,i.fxprime),h=n(i.fxprime,e),f>c+l*o*u||m&&f>=d)return g(p,o,d);if(Math.abs(h)<=-s*u)break;if(h>=0)return g(o,p,f);d=f,p=o,o*=2}return o}t.bisect=function(t,e,n,r){var i=(r=r||{}).maxIterations||100,a=r.tolerance||1e-10,o=t(e),l=t(n),s=n-e;if(o*l>0)throw"Initial bisect points must have opposite signs";if(0===o)return e;if(0===l)return n;for(var c=0;c=0&&(e=u),Math.abs(s)=g[p-1].fx){var S=!1;if(O.fx>M.fx?(a(w,1+d,x,-d,M),w.fx=t(w),w.fx=1)break;for(m=1;m=r(f.fxprime))break}return l.history&&l.history.push({x:f.x.slice(),fx:f.fx,fxprime:f.fxprime.slice(),alpha:p}),f},t.gradientDescent=function(t,e,n){for(var i=(n=n||{}).maxIterations||100*e.length,o=n.learnRate||.001,l={x:e.slice(),fx:0,fxprime:e.slice()},s=0;s=r(l.fxprime)));++s);return l},t.gradientDescentLineSearch=function(t,e,n){n=n||{};var a,l={x:e.slice(),fx:0,fxprime:e.slice()},s={x:e.slice(),fx:0,fxprime:e.slice()},c=n.maxIterations||100*e.length,u=n.learnRate||1,f=e.slice(),d=n.c1||.001,h=n.c2||.1,p=[];if(n.history){var g=t;t=function(t,e){return p.push(t.slice()),g(t,e)}}l.fx=t(l.x,l.fxprime);for(var m=0;mr(l.fxprime)));++m);return l},t.zeros=e,t.zerosM=function(t,n){return e(t).map(function(){return e(n)})},t.norm2=r,t.weightedSum=a,t.scale=i}(e)},8679:function(t,e,n){"use strict";var r=n(21296),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(t){return r.isMemo(t)?o:l[t.$$typeof]||i}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=o;var c=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&t(e,i,r)}var o=u(n);f&&(o=o.concat(f(n)));for(var l=s(e),g=s(n),m=0;m2&&void 0!==arguments[2]?arguments[2]:5,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!(a>=r)){for(let o of Object.keys(n)){let l=n[o];(0,i.Z)(l)&&(0,i.Z)(e[o])?t(e[o],l,r,a+1):e[o]=l}return e}}},qC:function(){return o},ri:function(){return f},vU:function(){return c},yR:function(){return a}});var r=n(21281),i=n(16470);function a(t){return t}function o(t){return t.reduce((t,e)=>function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;an=>{var r,i,a,o;return r=this,i=void 0,a=void 0,o=function*(){let r=yield t(n);return e(r)},new(a||(a=Promise))(function(t,e){function n(t){try{s(o.next(t))}catch(t){e(t)}}function l(t){try{s(o.throw(t))}catch(t){e(t)}}function s(e){var r;e.done?t(e.value):((r=e.value)instanceof a?r:new a(function(t){t(r)})).then(n,l)}s((o=o.apply(r,i||[])).next())})},a)}function s(t){return t.replace(/( |^)[a-z]/g,t=>t.toUpperCase())}function c(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";throw Error(t)}function u(t,e){let{attributes:n}=e,r=new Set(["id","className"]);for(let[e,i]of Object.entries(n))r.has(e)||t.attr(e,i)}function f(t){return null!=t&&!Number.isNaN(t)}function d(t){let e=new Map;return n=>{if(e.has(n))return e.get(n);let r=t(n);return e.set(n,r),r}}function h(t,e){let{transform:n}=t.style;t.style.transform="".concat("none"===n||void 0===n?"":n," ").concat(e).trimStart()}function p(t,e){return g(t,e)||{}}function g(t,e){let n=Object.entries(t||{}).filter(t=>{let[n]=t;return n.startsWith(e)}).map(t=>{let[n,i]=t;return[(0,r.Z)(n.replace(e,"").trim()),i]}).filter(t=>{let[e]=t;return!!e});return 0===n.length?null:Object.fromEntries(n)}function m(t,e){return Object.fromEntries(Object.entries(t).filter(t=>{let[n]=t;return e.find(t=>n.startsWith(t))}))}function y(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r{let[e]=t;return n.every(t=>!e.startsWith(t))}))}function v(t,e){if(void 0===t)return null;if("number"==typeof t)return t;let n=+t.replace("%","");return Number.isNaN(n)?null:n/100*e}function b(t){return"object"==typeof t&&!(t instanceof Date)&&null!==t&&!Array.isArray(t)}function x(t){return null===t||!1===t}},80866:function(t,e,n){"use strict";n.d(e,{F:function(){return o},Y:function(){return l}});var r=n(1242),i=n(44022),a=n(39513);function o(t){return new l([t],null,t,t.ownerDocument)}class l{selectAll(t){let e="string"==typeof t?this._parent.querySelectorAll(t):t;return new l(e,null,this._elements[0],this._document)}selectFacetAll(t){let e="string"==typeof t?this._parent.querySelectorAll(t):t;return new l(this._elements,null,this._parent,this._document,void 0,void 0,e)}select(t){let e="string"==typeof t?this._parent.querySelectorAll(t)[0]||null:t;return new l([e],null,e,this._document)}append(t){let e="function"==typeof t?t:()=>this.createElement(t),n=[];if(null!==this._data){for(let t=0;t1&&void 0!==arguments[1]?arguments[1]:t=>t,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>null,r=[],a=[],o=new Set(this._elements),s=[],c=new Set,u=new Map(this._elements.map((t,n)=>[e(t.__data__,n),t])),f=new Map(this._facetElements.map((t,n)=>[e(t.__data__,n),t])),d=(0,i.ZP)(this._elements,t=>n(t.__data__));for(let i=0;i0&&void 0!==arguments[0]?arguments[0]:t=>t,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t=>t,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t=>t.remove(),r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t=>t,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t=>t.remove(),a=t(this._enter),o=e(this._update),l=n(this._exit),s=r(this._merge),c=i(this._split);return o.merge(a).merge(l).merge(s).merge(c)}remove(){for(let t=0;tt.finished)).then(()=>{let e=this._elements[t];e.remove()})}else{let e=this._elements[t];e.remove()}}return new l([],null,this._parent,this._document,void 0,this._transitions)}each(t){for(let e=0;ee:e;return this.each(function(r,i,a){void 0!==e&&(a[t]=n(r,i,a))})}style(t,e){let n="function"!=typeof e?()=>e:e;return this.each(function(r,i,a){void 0!==e&&(a.style[t]=n(r,i,a))})}transition(t){let e="function"!=typeof t?()=>t:t,{_transitions:n}=this;return this.each(function(t,r,i){n[r]=e(t,r,i)})}on(t,e){return this.each(function(n,r,i){i.addEventListener(t,e)}),this}call(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r[["cartesian"]];d.props={};let h=function(){var t,e;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=Object.assign(Object.assign({},{startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,outerRadius:1}),n);return Object.assign(Object.assign({},r),(t=r.startAngle,e=r.endAngle,t%=2*Math.PI,e%=2*Math.PI,t<0&&(t=2*Math.PI+t),e<0&&(e=2*Math.PI+e),t>=e&&(e+=2*Math.PI),{startAngle:t,endAngle:e}))},p=t=>{let{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=h(t);return[["translate",0,.5],["reflect.y"],["translate",0,-.5],["polar",e,n,r,i]]};p.props={};let g=()=>[["transpose"],["translate",.5,.5],["reflect.x"],["translate",-.5,-.5]];g.props={transform:!0};let m=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(Object.assign({},{startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,outerRadius:1}),t)},y=t=>{let{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=m(t);return[...g(),...p({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};y.props={};let v=()=>[["parallel",0,1,0,1]];v.props={};let b=t=>{let{focusX:e=0,focusY:n=0,distortionX:r=2,distortionY:i=2,visual:a=!1}=t;return[["fisheye",e,n,r,i,a]]};b.props={transform:!0};let x=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(Object.assign({},{startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,outerRadius:1}),t)},O=t=>{let{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=x(t);return[["transpose"],["translate",.5,.5],["reflect"],["translate",-.5,-.5],...p({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};O.props={};let w=t=>{let{startAngle:e=-Math.PI/2,endAngle:n=3*Math.PI/2,innerRadius:r=0,outerRadius:i=1}=t;return[...v(),...p({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};w.props={};let _=t=>{let{value:e}=t;return t=>t.map(()=>e)};_.props={};let k=t=>{let{value:e}=t;return t=>t.map(t=>t[e])};k.props={};let C=t=>{let{value:e}=t;return t=>t.map(e)};C.props={};let j=t=>{let{value:e}=t;return()=>e};j.props={};var M=n(85159),S=function(t){return Array.isArray?Array.isArray(t):(0,M.Z)(t,"Array")},A=n(16470),E=function(t){for(var e=[],n=1;n1?e-1:0),r=1;r(t,e)=>{let{encode:n}=e,{y1:r}=n;return void 0!==r?[t,e]:[t,E({},e,{encode:{y1:R(L(t,0))}})]};D.props={};let N=()=>(t,e)=>{let{encode:n}=e,{x:r}=n;return void 0!==r?[t,e]:[t,E({},e,{encode:{x:R(L(t,0))},scale:{x:{guide:null}}})]};N.props={};var z=n(10233);function F(t){let{transformations:e}=t.getOptions(),n=e.map(t=>{let[e]=t;return e}).filter(t=>"transpose"===t);return n.length%2!=0}function $(t){let{transformations:e}=t.getOptions();return e.some(t=>{let[e]=t;return"polar"===e})}function W(t){let{transformations:e}=t.getOptions();return e.some(t=>{let[e]=t;return"reflect"===e})&&e.some(t=>{let[e]=t;return e.startsWith("transpose")})}function H(t){let{transformations:e}=t.getOptions();return e.some(t=>{let[e]=t;return"helix"===e})}function G(t){let{transformations:e}=t.getOptions();return e.some(t=>{let[e]=t;return"parallel"===e})}function q(t){let{transformations:e}=t.getOptions();return e.some(t=>{let[e]=t;return"fisheye"===e})}function Y(t){return H(t)||$(t)}function V(t){let{transformations:e}=t.getOptions(),[,,,n,r]=e.find(t=>"polar"===t[0]);return[+n,+r]}function U(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],{transformations:n}=t.getOptions(),[,r,i]=n.find(t=>"polar"===t[0]);return e?[180*+r/Math.PI,180*+i/Math.PI]:[r,i]}var Q=n(80866);function X(t,e){let[n,r]=t,[i,a]=e;return[n-i,r-a]}function K(t,e){let[n,r]=t,[i,a]=e;return[n+i,r+a]}function J(t,e){let[n,r]=t,[i,a]=e;return Math.sqrt(Math.pow(n-i,2)+Math.pow(r-a,2))}function tt(t){let[e,n]=t;return Math.atan2(n,e)}function te(t){let[e,n]=t;return tt([e,n])+Math.PI/2}function tn(t,e){let n=tt(t),r=tt(e);return n1&&void 0!==arguments[1]?arguments[1]:10;return"number"!=typeof t?t:1e-15>Math.abs(t)?t:parseFloat(t.toFixed(e))}function tl(t,...e){return e.reduce((t,e)=>n=>t(e(n)),t)}function ts(t,e){return e-t?n=>(n-t)/(e-t):t=>.5}function tc(t,e,n,r,i){let a=n||0,o=r||t.length,l=i||(t=>t);for(;ae?o=n:a=n+1}return a}let tu=Math.sqrt(50),tf=Math.sqrt(10),td=Math.sqrt(2);function th(t,e,n){let r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/10**i;return i>=0?(a>=tu?10:a>=tf?5:a>=td?2:1)*10**i:-(10**-i)/(a>=tu?10:a>=tf?5:a>=td?2:1)}function tp(t,e,n){let r=Math.abs(e-t)/Math.max(0,n),i=10**Math.floor(Math.log(r)/Math.LN10),a=r/i;return a>=tu?i*=10:a>=tf?i*=5:a>=td&&(i*=2),e{let r;let i=[t,e],a=0,o=i.length-1,l=i[a],s=i[o];return s0?r=th(l=Math.floor(l/r)*r,s=Math.ceil(s/r)*r,n):r<0&&(r=th(l=Math.ceil(l*r)/r,s=Math.floor(s*r)/r,n)),r>0?(i[a]=Math.floor(l/r)*r,i[o]=Math.ceil(s/r)*r):r<0&&(i[a]=Math.ceil(l*r)/r,i[o]=Math.floor(s*r)/r),i},tm=864e5,ty=7*tm,tv=30*tm,tb=365*tm;function tx(t,e,n,r){let i=(t,e)=>{let i=t=>r(t)%e==0,a=e;for(;a&&!i(t);)n(t,-1),a-=1;return t},a=(t,n)=>{n&&i(t,n),e(t)},o=(t,e)=>{let r=new Date(+t-1);return a(r,e),n(r,e),a(r),r};return{ceil:o,floor:(t,e)=>{let n=new Date(+t);return a(n,e),n},range:(t,e,r,i)=>{let l=[],s=Math.floor(r),c=i?o(t,r):o(t);for(;+c<+e;n(c,s),a(c))l.push(new Date(+c));return l},duration:t}}let tO=tx(1,t=>t,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),tw=tx(1e3,t=>{t.setMilliseconds(0)},(t,e=1)=>{t.setTime(+t+1e3*e)},t=>t.getSeconds()),t_=tx(6e4,t=>{t.setSeconds(0,0)},(t,e=1)=>{t.setTime(+t+6e4*e)},t=>t.getMinutes()),tk=tx(36e5,t=>{t.setMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+36e5*e)},t=>t.getHours()),tC=tx(tm,t=>{t.setHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+tm*e)},t=>t.getDate()-1),tj=tx(tv,t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e=1)=>{let n=t.getMonth();t.setMonth(n+e)},t=>t.getMonth()),tM=tx(ty,t=>{t.setDate(t.getDate()-t.getDay()%7),t.setHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+ty*e)},t=>{let e=tj.floor(t),n=new Date(+t);return Math.floor((+n-+e)/ty)}),tS=tx(tb,t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e=1)=>{let n=t.getFullYear();t.setFullYear(n+e)},t=>t.getFullYear()),tA={millisecond:tO,second:tw,minute:t_,hour:tk,day:tC,week:tM,month:tj,year:tS},tE=tx(1,t=>t,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),tP=tx(1e3,t=>{t.setUTCMilliseconds(0)},(t,e=1)=>{t.setTime(+t+1e3*e)},t=>t.getUTCSeconds()),tR=tx(6e4,t=>{t.setUTCSeconds(0,0)},(t,e=1)=>{t.setTime(+t+6e4*e)},t=>t.getUTCMinutes()),tT=tx(36e5,t=>{t.setUTCMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+36e5*e)},t=>t.getUTCHours()),tL=tx(tm,t=>{t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+tm*e)},t=>t.getUTCDate()-1),tB=tx(tv,t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{let n=t.getUTCMonth();t.setUTCMonth(n+e)},t=>t.getUTCMonth()),tZ=tx(ty,t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7)%7),t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+ty*e)},t=>{let e=tB.floor(t),n=new Date(+t);return Math.floor((+n-+e)/ty)}),tI=tx(tb,t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{let n=t.getUTCFullYear();t.setUTCFullYear(n+e)},t=>t.getUTCFullYear()),tD={millisecond:tE,second:tP,minute:tR,hour:tT,day:tL,week:tZ,month:tB,year:tI};function tN(t,e,n,r,i){let a;let o=+t,l=+e,{tickIntervals:s,year:c,millisecond:u}=function(t){let{year:e,month:n,week:r,day:i,hour:a,minute:o,second:l,millisecond:s}=t?tD:tA;return{tickIntervals:[[l,1],[l,5],[l,15],[l,30],[o,1],[o,5],[o,15],[o,30],[a,1],[a,3],[a,6],[a,12],[i,1],[i,2],[r,1],[n,1],[n,3],[e,1]],year:e,millisecond:s}}(i),f=([t,e])=>t.duration*e,d=r?(l-o)/r:n||5,h=r||(l-o)/d,p=s.length,g=tc(s,h,0,p,f);if(g===p){let t=tp(o/c.duration,l/c.duration,d);a=[c,t]}else if(g){let t=h/f(s[g-1]){let a=t>e,o=a?e:t,l=a?t:e,[s,c]=tN(o,l,n,r,i),u=[s.floor(o,c),s.ceil(l,c)];return a?u.reverse():u};var tF={}.toString,t$=function(t,e){return tF.call(t)==="[object "+e+"]"},tW=function(t){return t$(t,"Function")},tH=function(t){return Array.isArray?Array.isArray(t):t$(t,"Array")},tG=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e},tq=function(t,e){if(t){if(tH(t))for(var n=0,r=t.length;ne=>-t(-e),t7=(t,e)=>{let n=Math.log(t),r=t===Math.E?Math.log:10===t?Math.log10:2===t?Math.log2:t=>Math.log(t)/n;return e?t8(r):r},t9=(t,e)=>{let n=t===Math.E?Math.exp:e=>t**e;return e?t8(n):n},et=t=>e=>{let n=t(e);return tQ(n)?Math.round(n):n};function ee(t,e){return n=>{n.prototype.rescale=function(){this.initRange(),this.nice();let[t]=this.chooseTransforms();this.composeOutput(t,this.chooseClamp(t))},n.prototype.initRange=function(){let{interpolator:e}=this.options;this.options.range=t(e)},n.prototype.composeOutput=function(t,n){let{domain:r,interpolator:i,round:a}=this.getOptions(),o=e(r.map(t)),l=a?et(i):i;this.output=tl(l,o,n,t)},n.prototype.invert=void 0}}var en=n(19818),er=n.n(en);function ei(t,e,n){let r=n;return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function ea(t){let e=er().get(t);if(!e)return null;let{model:n,value:r}=e;return"rgb"===n?r:"hsl"===n?function(t){let e=t[0]/360,n=t[1]/100,r=t[2]/100,i=t[3];if(0===n)return[255*r,255*r,255*r,i];let a=r<.5?r*(1+n):r+n-r*n,o=2*r-a,l=ei(o,a,e+1/3),s=ei(o,a,e),c=ei(o,a,e-1/3);return[255*l,255*s,255*c,i]}(r):null}let eo=(t,e)=>n=>t*(1-n)+e*n,el=(t,e)=>{let n=ea(t),r=ea(e);return null===n||null===r?n?()=>t:()=>e:t=>{let e=[,,,,];for(let i=0;i<4;i+=1){let a=n[i],o=r[i];e[i]=a*(1-t)+o*t}let[i,a,o,l]=e;return`rgba(${Math.round(i)}, ${Math.round(a)}, ${Math.round(o)}, ${l})`}},es=(t,e)=>"number"==typeof t&&"number"==typeof e?eo(t,e):"string"==typeof t&&"string"==typeof e?el(t,e):()=>t,ec=(t,e)=>{let n=eo(t,e);return t=>Math.round(n(t))};function eu({map:t,initKey:e},n){let r=e(n);return t.has(r)?t.get(r):n}function ef(t){return"object"==typeof t?t.valueOf():t}class ed extends Map{constructor(t){if(super(),this.map=new Map,this.initKey=ef,null!==t)for(let[e,n]of t)this.set(e,n)}get(t){return super.get(eu({map:this.map,initKey:this.initKey},t))}has(t){return super.has(eu({map:this.map,initKey:this.initKey},t))}set(t,e){return super.set(function({map:t,initKey:e},n){let r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}({map:this.map,initKey:this.initKey},t),e)}delete(t){return super.delete(function({map:t,initKey:e},n){let r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}({map:this.map,initKey:this.initKey},t))}}class eh{constructor(t){this.options=tJ({},this.getDefaultOptions()),this.update(t)}getOptions(){return this.options}update(t={}){this.options=tJ({},this.options,t),this.rescale(t)}rescale(t){}}let ep=Symbol("defaultUnknown");function eg(t,e,n){for(let r=0;r`${t}`:"object"==typeof t?t=>JSON.stringify(t):t=>t}class ev extends eh{getDefaultOptions(){return{domain:[],range:[],unknown:ep}}constructor(t){super(t)}map(t){return 0===this.domainIndexMap.size&&eg(this.domainIndexMap,this.getDomain(),this.domainKey),em({value:this.domainKey(t),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(t){return 0===this.rangeIndexMap.size&&eg(this.rangeIndexMap,this.getRange(),this.rangeKey),em({value:this.rangeKey(t),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(t){let[e]=this.options.domain,[n]=this.options.range;if(this.domainKey=ey(e),this.rangeKey=ey(n),!this.rangeIndexMap){this.rangeIndexMap=new Map,this.domainIndexMap=new Map;return}(!t||t.range)&&this.rangeIndexMap.clear(),(!t||t.domain||t.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)}clone(){return new ev(this.options)}getRange(){return this.options.range}getDomain(){if(this.sortedDomain)return this.sortedDomain;let{domain:t,compare:e}=this.options;return this.sortedDomain=e?[...t].sort(e):t,this.sortedDomain}}class eb extends ev{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:ep,flex:[]}}constructor(t){super(t)}clone(){return new eb(this.options)}getStep(t){return void 0===this.valueStep?1:"number"==typeof this.valueStep?this.valueStep:void 0===t?Array.from(this.valueStep.values())[0]:this.valueStep.get(t)}getBandWidth(t){return void 0===this.valueBandWidth?1:"number"==typeof this.valueBandWidth?this.valueBandWidth:void 0===t?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(t)}getRange(){return this.adjustedRange}getPaddingInner(){let{padding:t,paddingInner:e}=this.options;return t>0?t:e}getPaddingOuter(){let{padding:t,paddingOuter:e}=this.options;return t>0?t:e}rescale(){super.rescale();let{align:t,domain:e,range:n,round:r,flex:i}=this.options,{adjustedRange:a,valueBandWidth:o,valueStep:l}=function(t){var e;let n,r;let{domain:i}=t,a=i.length;if(0===a)return{valueBandWidth:void 0,valueStep:void 0,adjustedRange:[]};let o=!!(null===(e=t.flex)||void 0===e?void 0:e.length);if(o)return function(t){let{domain:e,range:n,paddingOuter:r,paddingInner:i,flex:a,round:o,align:l}=t,s=e.length,c=function(t,e){let n=t.length,r=e-n;return r>0?[...t,...Array(r).fill(1)]:r<0?t.slice(0,e):t}(a,s),[u,f]=n,d=f-u,h=2/s*r+1-1/s*i,p=d/h,g=p*i/s,m=p-s*g,y=function(t){let e=Math.min(...t);return t.map(t=>t/e)}(c),v=y.reduce((t,e)=>t+e),b=m/v,x=new ed(e.map((t,e)=>{let n=y[e]*b;return[t,o?Math.floor(n):n]})),O=new ed(e.map((t,e)=>{let n=y[e]*b,r=n+g;return[t,o?Math.floor(r):r]})),w=Array.from(O.values()).reduce((t,e)=>t+e),_=d-(w-w/s*i),k=u+_*l,C=o?Math.round(k):k,j=Array(s);for(let t=0;td+e*n);return{valueStep:n,valueBandWidth:r,adjustedRange:m}}({align:t,range:n,round:r,flex:i,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:e});this.valueStep=l,this.valueBandWidth=o,this.adjustedRange=a}}let ex=(t,e,n)=>{let r,i;let a=t,o=e;if(a===o&&n>0)return[a];let l=th(a,o,n);if(0===l||!Number.isFinite(l))return[];if(l>0){a=Math.ceil(a/l),i=Array(r=Math.ceil((o=Math.floor(o/l))-a+1));for(let t=0;tMath.abs(t)?t:parseFloat(t.toFixed(15))}let e_=[1,5,2,2.5,4,3],ek=100*Number.EPSILON,eC=(t,e,n=5,r=!0,i=e_,a=[.25,.2,.5,.05])=>{let o=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||"number"!=typeof t||"number"!=typeof e||!o)return[];if(e-t<1e-15||1===o)return[t];let l={score:-2,lmin:0,lmax:0,lstep:0},s=1;for(;s<1/0;){for(let n=0;n=o?2-(c-1)/(o-1):1;if(a[0]*f+a[1]+a[2]*n+a[3]r?1-((n-r)/2)**2/(.1*r)**2:1}(t,e,c*(d-1));if(a[0]*f+a[1]*h+a[2]*n+a[3]=0&&(s=1),1-l/(o-1)-n+s}(u,i,s,h,p,c),y=1-.5*((e-p)**2+(t-h)**2)/(.1*(e-t))**2,v=function(t,e,n,r,i,a){let o=(t-1)/(a-i),l=(e-1)/(Math.max(a,r)-Math.min(n,i));return 2-Math.max(o/l,l/o)}(d,o,t,e,h,p),b=a[0]*m+a[1]*y+a[2]*v+1*a[3];b>l.score&&(!r||h<=t&&p>=e)&&(l.lmin=h,l.lmax=p,l.lstep=c,l.score=b)}}p+=1}d+=1}}s+=1}let u=ew(l.lmax),f=ew(l.lmin),d=ew(l.lstep),h=Math.floor(Math.round(1e12*((u-f)/d))/1e12)+1,p=Array(h);p[0]=ew(f);for(let t=1;t{let r,i;let[a,o]=t,[l,s]=e;return a{let r=Math.min(t.length,e.length)-1,i=Array(r),a=Array(r),o=t[0]>t[r],l=o?[...t].reverse():t,s=o?[...e].reverse():e;for(let t=0;t{let n=tc(t,e,1,r)-1,o=i[n],l=a[n];return tl(l,o)(e)}},eA=(t,e,n,r)=>{let i=Math.min(t.length,e.length),a=r?ec:n;return(i>2?eS:eM)(t,e,a)};class eE extends eh{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:eo,tickCount:5}}map(t){return t6(t)?this.output(t):this.options.unknown}invert(t){return t6(t)?this.input(t):this.options.unknown}nice(){if(!this.options.nice)return;let[t,e,n,...r]=this.getTickMethodOptions();this.options.domain=this.chooseNice()(t,e,n,...r)}getTicks(){let{tickMethod:t}=this.options,[e,n,r,...i]=this.getTickMethodOptions();return t(e,n,r,...i)}getTickMethodOptions(){let{domain:t,tickCount:e}=this.options,n=t[0],r=t[t.length-1];return[n,r,e]}chooseNice(){return tg}rescale(){this.nice();let[t,e]=this.chooseTransforms();this.composeOutput(t,this.chooseClamp(t)),this.composeInput(t,e,this.chooseClamp(e))}chooseClamp(t){let{clamp:e,range:n}=this.options,r=this.options.domain.map(t),i=Math.min(r.length,n.length);return e?function(t,e){let n=ee?t:e;return t=>Math.min(Math.max(n,t),r)}(r[0],r[i-1]):t5}composeOutput(t,e){let{domain:n,range:r,round:i,interpolate:a}=this.options,o=eA(n.map(t),r,a,i);this.output=tl(o,e,t)}composeInput(t,e,n){let{domain:r,range:i}=this.options,a=eA(i,r.map(t),eo);this.input=tl(e,n,a)}}class eP extends eE{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:es,tickMethod:ex,tickCount:5}}chooseTransforms(){return[t5,t5]}clone(){return new eP(this.options)}}class eR extends eb{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:ep,paddingInner:1,paddingOuter:0}}constructor(t){super(t)}getPaddingInner(){return 1}clone(){return new eR(this.options)}update(t){super.update(t)}getPaddingOuter(){return this.options.padding}}let eT=t=>e=>e<0?-((-e)**t):e**t,eL=t=>e=>e<0?-((-e)**(1/t)):e**(1/t),eB=t=>t<0?-Math.sqrt(-t):Math.sqrt(t);class eZ extends eE{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,exponent:2,interpolate:es,tickMethod:ex,tickCount:5}}constructor(t){super(t)}chooseTransforms(){let{exponent:t}=this.options;if(1===t)return[t5,t5];let e=.5===t?eB:eT(t),n=eL(t);return[e,n]}clone(){return new eZ(this.options)}}class eI extends eZ{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:es,tickMethod:ex,tickCount:5,exponent:.5}}constructor(t){super(t)}update(t){super.update(t)}clone(){return new eI(this.options)}}class eD extends eh{getDefaultOptions(){return{domain:[.5],range:[0,1]}}constructor(t){super(t)}map(t){if(!t6(t))return this.options.unknown;let e=tc(this.thresholds,t,0,this.n);return this.options.range[e]}invert(t){let{range:e}=this.options,n=e.indexOf(t),r=this.thresholds;return[r[n-1],r[n]]}clone(){return new eD(this.options)}rescale(){let{domain:t,range:e}=this.options;this.n=Math.min(t.length,e.length-1),this.thresholds=t}}let eN=(t,e,n,r=10)=>{let i=t<0,a=t9(r,i),o=t7(r,i),l=e=1;e-=1){let n=t*e;if(n>c)break;n>=s&&d.push(n)}}else for(;u<=f;u+=1){let t=a(u);for(let e=1;ec)break;n>=s&&d.push(n)}}2*d.length{let i=t<0,a=t7(r,i),o=t9(r,i),l=t>e,s=[o(Math.floor(a(l?e:t))),o(Math.ceil(a(l?t:e)))];return l?s.reverse():s};class eF extends eE{getDefaultOptions(){return{domain:[1,10],range:[0,1],base:10,interpolate:es,tickMethod:eN,tickCount:5}}chooseNice(){return ez}getTickMethodOptions(){let{domain:t,tickCount:e,base:n}=this.options,r=t[0],i=t[t.length-1];return[r,i,e,n]}chooseTransforms(){let{base:t,domain:e}=this.options,n=e[0]<0;return[t7(t,n),t9(t,n)]}clone(){return new eF(this.options)}}class e$ extends eD{getDefaultOptions(){return{domain:[0,1],range:[.5],nice:!1,tickCount:5,tickMethod:eC}}constructor(t){super(t)}nice(){let{nice:t}=this.options;if(t){let[t,e,n]=this.getTickMethodOptions();this.options.domain=tg(t,e,n)}}getTicks(){let{tickMethod:t}=this.options,[e,n,r]=this.getTickMethodOptions();return t(e,n,r)}getTickMethodOptions(){let{domain:t,tickCount:e}=this.options,n=t[0],r=t[t.length-1];return[n,r,e]}rescale(){this.nice();let{range:t,domain:e}=this.options,[n,r]=e;this.n=t.length-1,this.thresholds=Array(this.n);for(let t=0;tt-e);let r=[];for(let n=1;n{let a=t>e,o=a?e:t,l=a?t:e,[s,c]=tN(o,l,n,r,i),u=s.range(o,new Date(+l+1),c,!0);return a?u.reverse():u};function eq(t){let e=t.getTimezoneOffset(),n=new Date(t);return n.setMinutes(n.getMinutes()+e,n.getSeconds(),n.getMilliseconds()),n}class eY extends eE{getDefaultOptions(){return{domain:[new Date(2e3,0,1),new Date(2e3,0,2)],range:[0,1],nice:!1,tickCount:5,tickInterval:void 0,unknown:void 0,clamp:!1,tickMethod:eG,interpolate:eo,mask:void 0,utc:!1}}chooseTransforms(){return[t=>+t,t=>new Date(t)]}chooseNice(){return tz}getTickMethodOptions(){let{domain:t,tickCount:e,tickInterval:n,utc:r}=this.options,i=t[0],a=t[t.length-1];return[i,a,e,n,r]}getFormatter(){let{mask:t,utc:e}=this.options,n=e?tD:tA,r=e?eq:t5;return e=>(0,eH.WU)(r(e),t||function(t,e){let{second:n,minute:r,hour:i,day:a,week:o,month:l,year:s}=e;return n.floor(t)=0;l--)(i=t[l])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([ee(function(t){return[t(0),t(1)]},t=>{let[e,n]=t,r=tl(eo(0,1),ts(e,n));return r})],eV);let eU=l=class extends eP{getDefaultOptions(){return{domain:[0,.5,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:t5,tickMethod:ex,tickCount:5}}constructor(t){super(t)}clone(){return new l(this.options)}};eU=l=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([ee(function(t){return[t(0),t(.5),t(1)]},t=>{let[e,n,r]=t,i=tl(eo(0,.5),ts(e,n)),a=tl(eo(.5,1),ts(n,r));return t=>e>r?t{let[i,a]=r;return n[i]=e(a,i,t),n},{})}function eJ(t){return t.map((t,e)=>e)}function e0(t){return t[t.length-1]}function e1(t,e){let n=[[],[]];return t.forEach(t=>{n[e(t)?0:1].push(t)}),n}function e2(t,e){for(let[n,r]of Object.entries(e))t.style(n,r)}function e5(t,e,n,r,i){let a=tt(X(r,e))+Math.PI,o=tt(X(r,n))+Math.PI;return t.arc(r[0],r[1],i,a,o,o-a<0),t}function e3(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"y",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"between",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o="y"===r||!0===r?n:e,l=eJ(o),[s,c]=(0,eX.Z)(l,t=>o[t]),u=new eP({domain:[s,c],range:[0,100]}),f=t=>eQ(o[t])&&!Number.isNaN(o[t])?u.map(o[t]):0,d={between:e=>"".concat(t[e]," ").concat(f(e),"%"),start:e=>0===e?"".concat(t[e]," ").concat(f(e),"%"):"".concat(t[e-1]," ").concat(f(e),"%, ").concat(t[e]," ").concat(f(e),"%"),end:e=>e===t.length-1?"".concat(t[e]," ").concat(f(e),"%"):"".concat(t[e]," ").concat(f(e),"%, ").concat(t[e+1]," ").concat(f(e),"%")},h=l.sort((t,e)=>f(t)-f(e)).map(d[i]||d.between).join(",");return"linear-gradient(".concat("y"===r||!0===r?a?180:90:a?90:0,"deg, ").concat(h,")")}function e4(t){let[e,n,r,i]=t;return[i,e,n,r]}function e6(t,e,n){let[r,i,,a]=F(t)?e4(e):e,[o,l]=n,s=t.getCenter(),c=te(X(r,s)),u=te(X(i,s)),f=u===c&&o!==l?u+2*Math.PI:u;return{startAngle:c,endAngle:f-c>=0?f:2*Math.PI+f,innerRadius:J(a,s),outerRadius:J(r,s)}}function e8(t){let{colorAttribute:e,opacityAttribute:n=e}=t;return"".concat(n,"Opacity")}function e7(t,e){if(!$(t))return"";let n=t.getCenter(),{transform:r}=e;return"translate(".concat(n[0],", ").concat(n[1],") ").concat(r||"")}function e9(t){if(1===t.length)return t[0];let[[e,n,r=0],[i,a,o=0]]=t;return[(e+i)/2,(n+a)/2,(r+o)/2]}var nt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function ne(t,e,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},{inset:a=0,radius:o=0,insetLeft:l=a,insetTop:s=a,insetRight:c=a,insetBottom:u=a,radiusBottomLeft:f=o,radiusBottomRight:d=o,radiusTopLeft:h=o,radiusTopRight:p=o,minWidth:g=-1/0,maxWidth:m=1/0,minHeight:y=-1/0}=i,v=nt(i,["inset","radius","insetLeft","insetTop","insetRight","insetBottom","radiusBottomLeft","radiusBottomRight","radiusTopLeft","radiusTopRight","minWidth","maxWidth","minHeight"]);if(!$(r)&&!H(r)){let n=!!F(r),[i,,a]=n?e4(e):e,[o,b]=i,[x,O]=X(a,i),w=Math.abs(x),_=Math.abs(O),k=(x>0?o:o+x)+l,C=(O>0?b:b+O)+s,j=w-(l+c),M=_-(s+u),S=n?ta(j,y,1/0):ta(j,g,m),A=n?ta(M,g,m):ta(M,y,1/0),E=n?k:k-(S-j)/2,P=n?C-(A-M)/2:C-(A-M);return(0,Q.F)(t.createElement("rect",{})).style("x",E).style("y",P).style("width",S).style("height",A).style("radius",[h,p,d,f]).call(e2,v).node()}let{y:b,y1:x}=n,O=r.getCenter(),w=e6(r,e,[b,x]),_=(0,z.Z)().cornerRadius(o).padAngle(a*Math.PI/180);return(0,Q.F)(t.createElement("path",{})).style("d",_(w)).style("transform","translate(".concat(O[0],", ").concat(O[1],")")).style("radius",o).style("inset",a).call(e2,v).node()}let nn=(t,e)=>{let{colorAttribute:n,opacityAttribute:r="fill",first:i=!0,last:a=!0}=t,o=nt(t,["colorAttribute","opacityAttribute","first","last"]),{coordinate:l,document:s}=e;return(e,r,c)=>{let{color:u,radius:f=0}=c,d=nt(c,["color","radius"]),h=d.lineWidth||1,{stroke:p,radius:g=f,radiusTopLeft:m=g,radiusTopRight:y=g,radiusBottomRight:v=g,radiusBottomLeft:b=g,innerRadius:x=0,innerRadiusTopLeft:O=x,innerRadiusTopRight:w=x,innerRadiusBottomRight:_=x,innerRadiusBottomLeft:k=x,lineWidth:C="stroke"===n||p?h:0,inset:j=0,insetLeft:M=j,insetRight:S=j,insetBottom:A=j,insetTop:E=j,minWidth:P,maxWidth:R,minHeight:T}=o,L=nt(o,["stroke","radius","radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft","innerRadius","innerRadiusTopLeft","innerRadiusTopRight","innerRadiusBottomRight","innerRadiusBottomLeft","lineWidth","inset","insetLeft","insetRight","insetBottom","insetTop","minWidth","maxWidth","minHeight"]),{color:B=u,opacity:Z}=r,I=[i?m:O,i?y:w,a?v:_,a?b:k],D=["radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft"];F(l)&&D.push(D.shift());let N=Object.assign(Object.assign({radius:g},Object.fromEntries(D.map((t,e)=>[t,I[e]]))),{inset:j,insetLeft:M,insetRight:S,insetBottom:A,insetTop:E,minWidth:P,maxWidth:R,minHeight:T});return(0,Q.F)(ne(s,e,r,l,N)).call(e2,d).style("fill","transparent").style(n,B).style(e8(t),Z).style("lineWidth",C).style("stroke",void 0===p?B:p).call(e2,L).node()}};nn.props={defaultEnterAnimation:"scaleInY",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let nr=(t,e)=>nn(Object.assign({colorAttribute:"fill"},t),e);nr.props=Object.assign(Object.assign({},nn.props),{defaultMarker:"square"});let ni=(t,e)=>nn(Object.assign({colorAttribute:"stroke"},t),e);ni.props=Object.assign(Object.assign({},nn.props),{defaultMarker:"hollowSquare"});var na=n(25049),no=n(57481),nl=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function ns(t,e,n){let[r,i,a,o]=t;if(F(n)){let t=[e?e[0][0]:i[0],i[1]],n=[e?e[3][0]:a[0],a[1]];return[r,t,n,o]}let l=[i[0],e?e[0][1]:i[1]],s=[a[0],e?e[3][1]:a[1]];return[r,l,s,o]}let nc=(t,e)=>{let{adjustPoints:n=ns}=t,r=nl(t,["adjustPoints"]),{coordinate:i,document:a}=e;return(t,e,o,l)=>{let{index:s}=e,{color:c}=o,u=nl(o,["color"]),f=l[s+1],d=n(t,f,i),h=!!F(i),[p,g,m,y]=h?e4(d):d,{color:v=c,opacity:b}=e,x=(0,na.Z)().curve(no.Z)([p,g,m,y]);return(0,Q.F)(a.createElement("path",{})).call(e2,u).style("d",x).style("fill",v).style("fillOpacity",b).call(e2,r).node()}};function nu(t,e,n){let[r,i,a,o]=t;if(F(n)){let t=[e?e[0][0]:(i[0]+a[0])/2,i[1]],n=[e?e[3][0]:(i[0]+a[0])/2,a[1]];return[r,t,n,o]}let l=[i[0],e?e[0][1]:(i[1]+a[1])/2],s=[a[0],e?e[3][1]:(i[1]+a[1])/2];return[r,l,s,o]}nc.props={defaultMarker:"square"};let nf=(t,e)=>nc(Object.assign({adjustPoints:nu},t),e);nf.props={defaultMarker:"square"};var nd=n(39513);function nh(t){return Math.abs(t)>10?String(t):t.toString().padStart(2,"0")}let np=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{channel:e="x"}=t;return(t,n)=>{let{encode:r}=n,{tooltip:i}=n;if((0,nd.Qp)(i))return[t,n];let{title:a}=i;if(void 0!==a)return[t,n];let o=Object.keys(r).filter(t=>t.startsWith(e)).filter(t=>!r[t].inferred).map(t=>B(r,t)).filter(t=>{let[e]=t;return e}).map(t=>t[0]);if(0===o.length)return[t,n];let l=[];for(let e of t)l[e]={value:o.map(t=>t[e]instanceof Date?function(t){let e=t.getFullYear(),n=nh(t.getMonth()+1),r=nh(t.getDate()),i="".concat(e,"-").concat(n,"-").concat(r),a=t.getHours(),o=t.getMinutes(),l=t.getSeconds();return a||o||l?"".concat(i," ").concat(nh(a),":").concat(nh(o),":").concat(nh(l)):i}(t[e]):t[e]).join(", ")};return[t,E({},n,{tooltip:{title:l}})]}};np.props={};let ng=t=>{let{channel:e}=t;return(t,n)=>{let{encode:r,tooltip:i}=n;if((0,nd.Qp)(i))return[t,n];let{items:a=[]}=i;if(!a||a.length>0)return[t,n];let o=Array.isArray(e)?e:[e],l=o.flatMap(t=>Object.keys(r).filter(e=>e.startsWith(t)).map(t=>{let{field:e,value:n,inferred:i=!1,aggregate:a}=r[t];return i?null:a&&n?{channel:t}:e?{field:e}:n?{channel:t}:null}).filter(t=>null!==t));return[t,E({},n,{tooltip:{items:l}})]}};ng.props={};var nm=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let ny=()=>(t,e)=>{let{encode:n}=e,{key:r}=n,i=nm(n,["key"]);if(void 0!==r)return[t,e];let a=Object.values(i).map(t=>{let{value:e}=t;return e}),o=t.map(t=>a.filter(Array.isArray).map(e=>e[t]).join("-"));return[t,E({},e,{encode:{key:P(o)}})]};function nv(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{shapes:e}=t;return[{name:"color"},{name:"opacity"},{name:"shape",range:e},{name:"enterType"},{name:"enterDelay",scaleKey:"enter"},{name:"enterDuration",scaleKey:"enter"},{name:"enterEasing"},{name:"key",scale:"identity"},{name:"groupKey",scale:"identity"},{name:"label",scale:"identity"}]}function nb(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[...nv(t),{name:"title",scale:"identity"}]}function nx(){return[{type:np,channel:"color"},{type:ng,channel:["x","y"]}]}function nO(){return[{type:np,channel:"x"},{type:ng,channel:["y"]}]}function nw(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return nv(t)}function n_(){return[{type:ny}]}function nk(t,e){return t.getBandWidth(t.invert(e))}function nC(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{x:r,y:i,series:a}=e,{x:o,y:l,series:s}=t,{style:{bandOffset:c=s?0:.5,bandOffsetX:u=c,bandOffsetY:f=c}={}}=n,d=!!(null==o?void 0:o.getBandWidth),h=!!(null==l?void 0:l.getBandWidth),p=!!(null==s?void 0:s.getBandWidth);return d||h?(t,e)=>{let n=d?nk(o,r[e]):0,c=h?nk(l,i[e]):0,g=p&&a?(nk(s,a[e])/2+ +a[e])*n:0,[m,y]=t;return[m+u*n+g,y+f*c]}:t=>t}function nj(t){return parseFloat(t)/100}function nM(t,e,n,r){let{x:i,y:a}=n,{innerWidth:o,innerHeight:l}=r.getOptions(),s=Array.from(t,t=>{let e=i[t],n=a[t],r="string"==typeof e?nj(e)*o:+e,s="string"==typeof n?nj(n)*l:+n;return[[r,s]]});return[t,s]}function nS(t){return"function"==typeof t?t:e=>e[t]}function nA(t,e){return Array.from(t,nS(e))}function nE(t,e){let{source:n=t=>t.source,target:r=t=>t.target,value:i=t=>t.value}=e,{links:a,nodes:o}=t,l=nA(a,n),s=nA(a,r),c=nA(a,i);return{links:a.map((t,e)=>({target:s[e],source:l[e],value:c[e]})),nodes:o||Array.from(new Set([...l,...s]),t=>({key:t}))}}function nP(t,e){return t.getBandWidth(t.invert(e))}ny.props={};let nR={rect:nr,hollow:ni,funnel:nc,pyramid:nf},nT=()=>(t,e,n,r)=>{let{x:i,y:a,y1:o,series:l,size:s}=n,c=e.x,u=e.series,[f]=r.getSize(),d=s?s.map(t=>+t/f):null,h=s?(t,e,n)=>{let r=t+e/2,i=d[n];return[r-i/2,r+i/2]}:(t,e,n)=>[t,t+e],p=Array.from(t,t=>{let e=nP(c,i[t]),n=u?nP(u,null==l?void 0:l[t]):1,s=(+(null==l?void 0:l[t])||0)*e,f=+i[t]+s,[d,p]=h(f,e*n,t),g=+a[t],m=+o[t];return[[d,g],[p,g],[p,m],[d,m]].map(t=>r.map(t))});return[t,p]};nT.props={defaultShape:"rect",defaultLabelShape:"label",composite:!1,shape:nR,channels:[...nb({shapes:Object.keys(nR)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"},{name:"size"}],preInference:[...n_(),{type:D},{type:N}],postInference:[...nO()],interaction:{shareTooltip:!0}};let nL={rect:nr,hollow:ni},nB=()=>(t,e,n,r)=>{let{x:i,x1:a,y:o,y1:l}=n,s=Array.from(t,t=>{let e=[+i[t],+o[t]],n=[+a[t],+o[t]],s=[+a[t],+l[t]],c=[+i[t],+l[t]];return[e,n,s,c].map(t=>r.map(t))});return[t,s]};nB.props={defaultShape:"rect",defaultLabelShape:"label",composite:!1,shape:nL,channels:[...nb({shapes:Object.keys(nL)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...n_(),{type:D}],postInference:[...nO()],interaction:{shareTooltip:!0}};var nZ=n(44022),nI=n(18143),nD=n(73671),nN=n(1242);function nz(t){let e="function"==typeof t?t:t.render;return class extends nN.b_{connectedCallback(){this.draw()}attributeChangedCallback(){this.draw()}draw(){e(this)}}}var nF=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let n$=nz(t=>{let{d1:e,d2:n,style1:r,style2:i}=t.attributes,a=t.ownerDocument;(0,Q.F)(t).maybeAppend("line",()=>a.createElement("path",{})).style("d",e).call(e2,r),(0,Q.F)(t).maybeAppend("line1",()=>a.createElement("path",{})).style("d",n).call(e2,i)}),nW=(t,e)=>{let{curve:n,gradient:r=!1,gradientColor:i="between",defined:a=t=>!Number.isNaN(t)&&null!=t,connect:o=!1}=t,l=nF(t,["curve","gradient","gradientColor","defined","connect"]),{coordinate:s,document:c}=e;return(t,e,u)=>{let f;let{color:d,lineWidth:h}=u,p=nF(u,["color","lineWidth"]),{color:g=d,size:m=h,seriesColor:y,seriesX:v,seriesY:b}=e,x=e7(s,e),O=F(s),w=r&&y?e3(y,v,b,r,i,O):g,_=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p),w&&{stroke:w}),m&&{lineWidth:m}),x&&{transform:x}),l);if($(s)){let t=s.getCenter();f=e=>(0,nD.Z)().angle((n,r)=>te(X(e[r],t))).radius((n,r)=>J(e[r],t)).defined(t=>{let[e,n]=t;return a(e)&&a(n)}).curve(n)(e)}else f=(0,na.Z)().x(t=>t[0]).y(t=>t[1]).defined(t=>{let[e,n]=t;return a(e)&&a(n)}).curve(n);let[k,C]=function(t,e){let n=[],r=[],i=!1,a=null;for(let o of t)e(o[0])&&e(o[1])?(n.push(o),i&&(i=!1,r.push([a,o])),a=o):i=!0;return[n,r]}(t,a),j=(0,nd.hB)(_,"connect"),M=!!C.length;return M&&(!o||Object.keys(j).length)?M&&!o?(0,Q.F)(c.createElement("path",{})).style("d",f(t)).call(e2,_).node():(0,Q.F)(new n$).style("style1",Object.assign(Object.assign({},_),j)).style("style2",_).style("d1",C.map(f).join(",")).style("d2",f(t)).node():(0,Q.F)(c.createElement("path",{})).style("d",f(k)||[]).call(e2,_).node()}};nW.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let nH=(t,e)=>{let{coordinate:n}=e;return function(){for(var r=arguments.length,i=Array(r),a=0;ae.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let nV=(t,e)=>{let n=nY(t,[]),{coordinate:r}=e;return function(){for(var t=arguments.length,i=Array(t),a=0;anW(Object.assign({curve:nU.cD},t),e);nQ.props=Object.assign(Object.assign({},nW.props),{defaultMarker:"hv"});let nX=(t,e)=>nW(Object.assign({curve:nU.RN},t),e);nX.props=Object.assign(Object.assign({},nW.props),{defaultMarker:"vh"});let nK=(t,e)=>nW(Object.assign({curve:nU.ZP},t),e);nK.props=Object.assign(Object.assign({},nW.props),{defaultMarker:"hvh"});var nJ=n(11108),n0=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let n1=(t,e)=>{let{document:n}=e;return(e,r,i)=>{let{seriesSize:a,color:o}=r,{color:l}=i,s=n0(i,["color"]),c=(0,nJ.Z)();for(let t=0;t(t,e)=>{let{style:n={},encode:r}=e,{series:i}=r,{gradient:a}=n;return!a||i?[t,e]:[t,E({},e,{encode:{series:T(L(t,void 0))}})]};n2.props={};let n5=()=>(t,e)=>{let{encode:n}=e,{series:r,color:i}=n;if(void 0!==r||void 0===i)return[t,e];let[a,o]=B(n,"color");return[t,E({},e,{encode:{series:P(a,o)}})]};n5.props={};let n3={line:nH,smooth:nV,hv:nQ,vh:nX,hvh:nK,trail:n1},n4=(t,e,n,r)=>{var i,a;let{series:o,x:l,y:s}=n,{x:c,y:u}=e;if(void 0===l||void 0===s)throw Error("Missing encode for x or y channel.");let f=o?Array.from((0,nZ.ZP)(t,t=>o[t]).values()):[t],d=f.map(t=>t[0]).filter(t=>void 0!==t),h=((null===(i=null==c?void 0:c.getBandWidth)||void 0===i?void 0:i.call(c))||0)/2,p=((null===(a=null==u?void 0:u.getBandWidth)||void 0===a?void 0:a.call(u))||0)/2,g=Array.from(f,t=>t.map(t=>r.map([+l[t]+h,+s[t]+p])));return[d,g,f]},n6=(t,e,n,r)=>{let i=Object.entries(n).filter(t=>{let[e]=t;return e.startsWith("position")}).map(t=>{let[,e]=t;return e});if(0===i.length)throw Error("Missing encode for position channel.");let a=Array.from(t,t=>{let e=i.map(e=>+e[t]),n=r.map(e),a=[];for(let t=0;t(t,e,n,r)=>{let i=G(r)?n6:n4;return i(t,e,n,r)};n8.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:n3,channels:[...nb({shapes:Object.keys(n3)}),{name:"x"},{name:"y"},{name:"position",independent:!0},{name:"size"},{name:"series",scale:"band"}],preInference:[...n_(),{type:n2},{type:n5}],postInference:[...nO(),{type:np,channel:"color"},{type:ng,channel:["position"]}],interaction:{shareTooltip:!0,seriesTooltip:!0,crosshairs:!0}};var n7=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let n9=(t,e,n)=>[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]];n9.style=["fill"];let rt=n9.bind(void 0);rt.style=["stroke","lineWidth"];let re=(t,e,n)=>[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]];re.style=["fill"];let rn=re.bind(void 0);rn.style=["fill"];let rr=re.bind(void 0);rr.style=["stroke","lineWidth"];let ri=(t,e,n)=>{let r=.618*n;return[["M",t-r,e],["L",t,e-n],["L",t+r,e],["L",t,e+n],["Z"]]};ri.style=["fill"];let ra=ri.bind(void 0);ra.style=["stroke","lineWidth"];let ro=(t,e,n)=>{let r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]};ro.style=["fill"];let rl=ro.bind(void 0);rl.style=["stroke","lineWidth"];let rs=(t,e,n)=>{let r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]};rs.style=["fill"];let rc=rs.bind(void 0);rc.style=["stroke","lineWidth"];let ru=(t,e,n)=>{let r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]};ru.style=["fill"];let rf=ru.bind(void 0);rf.style=["stroke","lineWidth"];let rd=(t,e,n)=>{let r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]};rd.style=["fill"];let rh=rd.bind(void 0);rh.style=["stroke","lineWidth"];let rp=(t,e,n)=>[["M",t,e+n],["L",t,e-n]];rp.style=["stroke","lineWidth"];let rg=(t,e,n)=>[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]];rg.style=["stroke","lineWidth"];let rm=(t,e,n)=>[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]];rm.style=["stroke","lineWidth"];let ry=(t,e,n)=>[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]];ry.style=["stroke","lineWidth"];let rv=(t,e,n)=>[["M",t-n,e],["L",t+n,e]];rv.style=["stroke","lineWidth"];let rb=(t,e,n)=>[["M",t-n,e],["L",t+n,e]];rb.style=["stroke","lineWidth"];let rx=rb.bind(void 0);rx.style=["stroke","lineWidth"];let rO=(t,e,n)=>[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]];rO.style=["stroke","lineWidth"];let rw=(t,e,n)=>[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]];rw.style=["stroke","lineWidth"];let r_=(t,e,n)=>[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]];r_.style=["stroke","lineWidth"];let rk=(t,e,n)=>[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]];rk.style=["stroke","lineWidth"];let rC=(t,e,n)=>[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]];rC.style=["stroke","lineWidth"];let rj=new Map([["bowtie",rd],["cross",rg],["dash",rx],["diamond",ri],["dot",rb],["hexagon",ru],["hollowBowtie",rh],["hollowDiamond",ra],["hollowHexagon",rf],["hollowPoint",rt],["hollowSquare",rr],["hollowTriangle",rl],["hollowTriangleDown",rc],["hv",rw],["hvh",rk],["hyphen",rv],["line",rp],["plus",ry],["point",n9],["rect",rn],["smooth",rO],["square",re],["tick",rm],["triangleDown",rs],["triangle",ro],["vh",r_],["vhv",rC]]);var rM=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function rS(t,e,n,r){if(1===e.length)return;let{size:i}=n;if("fixed"===t)return i;if("normal"===t||q(r)){let[[t,n],[r,i]]=e,a=Math.abs((r-t)/2),o=Math.abs((i-n)/2);return Math.max(0,(a+o)/2)}return i}let rA=(t,e)=>{let{colorAttribute:n,symbol:r,mode:i="auto"}=t,a=rM(t,["colorAttribute","symbol","mode"]),o=rj.get(r)||rj.get("point"),{coordinate:l,document:s}=e;return(e,r,c)=>{let{lineWidth:u,color:f}=c,d=a.stroke?u||1:u,{color:h=f,transform:p,opacity:g}=r,[m,y]=e9(e),v=rS(i,e,r,l),b=v||a.r||c.r;return(0,Q.F)(s.createElement("path",{})).call(e2,c).style("fill","transparent").style("d",o(m,y,b)).style("lineWidth",d).style("transform",p).style("transformOrigin","".concat(m-b," ").concat(y-b)).style("stroke",h).style(e8(t),g).style(n,h).call(e2,a).node()}};rA.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let rE=(t,e)=>rA(Object.assign({colorAttribute:"stroke",symbol:"point"},t),e);rE.props=Object.assign({defaultMarker:"hollowPoint"},rA.props);let rP=(t,e)=>rA(Object.assign({colorAttribute:"stroke",symbol:"diamond"},t),e);rP.props=Object.assign({defaultMarker:"hollowDiamond"},rA.props);let rR=(t,e)=>rA(Object.assign({colorAttribute:"stroke",symbol:"hexagon"},t),e);rR.props=Object.assign({defaultMarker:"hollowHexagon"},rA.props);let rT=(t,e)=>rA(Object.assign({colorAttribute:"stroke",symbol:"square"},t),e);rT.props=Object.assign({defaultMarker:"hollowSquare"},rA.props);let rL=(t,e)=>rA(Object.assign({colorAttribute:"stroke",symbol:"triangle-down"},t),e);rL.props=Object.assign({defaultMarker:"hollowTriangleDown"},rA.props);let rB=(t,e)=>rA(Object.assign({colorAttribute:"stroke",symbol:"triangle"},t),e);rB.props=Object.assign({defaultMarker:"hollowTriangle"},rA.props);let rZ=(t,e)=>rA(Object.assign({colorAttribute:"stroke",symbol:"bowtie"},t),e);rZ.props=Object.assign({defaultMarker:"hollowBowtie"},rA.props);var rI=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let rD=(t,e)=>{let{colorAttribute:n,mode:r="auto"}=t,i=rI(t,["colorAttribute","mode"]),{coordinate:a,document:o}=e;return(e,l,s)=>{let{lineWidth:c,color:u}=s,f=i.stroke?c||1:c,{color:d=u,transform:h,opacity:p}=l,[g,m]=e9(e),y=rS(r,e,l,a),v=y||i.r||s.r;return(0,Q.F)(o.createElement("circle",{})).call(e2,s).style("fill","transparent").style("cx",g).style("cy",m).style("r",v).style("lineWidth",f).style("transform",h).style("transformOrigin","".concat(g," ").concat(m)).style("stroke",d).style(e8(t),p).style(n,d).call(e2,i).node()}},rN=(t,e)=>rD(Object.assign({colorAttribute:"fill"},t),e);rN.props={defaultMarker:"circle",defaultEnterAnimation:"fadeIn",defaultExitAnimation:"fadeOut"};let rz=(t,e)=>rD(Object.assign({colorAttribute:"stroke"},t),e);rz.props=Object.assign({defaultMarker:"hollowPoint"},rN.props);let rF=(t,e)=>rA(Object.assign({colorAttribute:"fill",symbol:"point"},t),e);rF.props=Object.assign({defaultMarker:"point"},rA.props);let r$=(t,e)=>rA(Object.assign({colorAttribute:"stroke",symbol:"plus"},t),e);r$.props=Object.assign({defaultMarker:"plus"},rA.props);let rW=(t,e)=>rA(Object.assign({colorAttribute:"fill",symbol:"diamond"},t),e);rW.props=Object.assign({defaultMarker:"diamond"},rA.props);let rH=(t,e)=>rA(Object.assign({colorAttribute:"fill",symbol:"square"},t),e);rH.props=Object.assign({defaultMarker:"square"},rA.props);let rG=(t,e)=>rA(Object.assign({colorAttribute:"fill",symbol:"triangle"},t),e);rG.props=Object.assign({defaultMarker:"triangle"},rA.props);let rq=(t,e)=>rA(Object.assign({colorAttribute:"fill",symbol:"hexagon"},t),e);rq.props=Object.assign({defaultMarker:"hexagon"},rA.props);let rY=(t,e)=>rA(Object.assign({colorAttribute:"stroke",symbol:"cross"},t),e);rY.props=Object.assign({defaultMarker:"cross"},rA.props);let rV=(t,e)=>rA(Object.assign({colorAttribute:"fill",symbol:"bowtie"},t),e);rV.props=Object.assign({defaultMarker:"bowtie"},rA.props);let rU=(t,e)=>rA(Object.assign({colorAttribute:"stroke",symbol:"hyphen"},t),e);rU.props=Object.assign({defaultMarker:"hyphen"},rA.props);let rQ=(t,e)=>rA(Object.assign({colorAttribute:"stroke",symbol:"line"},t),e);rQ.props=Object.assign({defaultMarker:"line"},rA.props);let rX=(t,e)=>rA(Object.assign({colorAttribute:"stroke",symbol:"tick"},t),e);rX.props=Object.assign({defaultMarker:"tick"},rA.props);let rK=(t,e)=>rA(Object.assign({colorAttribute:"fill",symbol:"triangle-down"},t),e);rK.props=Object.assign({defaultMarker:"triangleDown"},rA.props);let rJ=()=>(t,e)=>{let{encode:n}=e,{y:r}=n;return void 0!==r?[t,e]:[t,E({},e,{encode:{y:R(L(t,0))},scale:{y:{guide:null}}})]};rJ.props={};let r0=()=>(t,e)=>{let{encode:n}=e,{size:r}=n;return void 0!==r?[t,e]:[t,E({},e,{encode:{size:T(L(t,3))}})]};r0.props={};let r1={hollow:rE,hollowDiamond:rP,hollowHexagon:rR,hollowSquare:rT,hollowTriangleDown:rL,hollowTriangle:rB,hollowBowtie:rZ,hollowCircle:rz,point:rF,plus:r$,diamond:rW,square:rH,triangle:rG,hexagon:rq,cross:rY,bowtie:rV,hyphen:rU,line:rQ,tick:rX,triangleDown:rK,circle:rN},r2=t=>(e,n,r,i)=>{let{x:a,y:o,x1:l,y1:s,size:c,dx:u,dy:f}=r,[d,h]=i.getSize(),p=nC(n,r,t),g=t=>{let e=+((null==u?void 0:u[t])||0),n=+((null==f?void 0:f[t])||0),r=l?(+a[t]+ +l[t])/2:+a[t],i=s?(+o[t]+ +s[t])/2:+o[t];return[r+e,i+n]},m=c?Array.from(e,t=>{let[e,n]=g(t),r=+c[t],a=r/d,o=r/h;return[i.map(p([e-a,n-o],t)),i.map(p([e+a,n+o],t))]}):Array.from(e,t=>[i.map(p(g(t),t))]);return[e,m]};r2.props={defaultShape:"hollow",defaultLabelShape:"label",composite:!1,shape:r1,channels:[...nb({shapes:Object.keys(r1)}),{name:"x",required:!0},{name:"y",required:!0},{name:"series",scale:"band"},{name:"size",quantitative:"sqrt"},{name:"dx",scale:"identity"},{name:"dy",scale:"identity"}],preInference:[...n_(),{type:N},{type:rJ}],postInference:[{type:r0},...nx()]};var r5=n(86224),r3=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let r4=(t,e,n)=>{let r=J(t,e),i=J(e,n),a=J(n,t);return(Math.pow(r,2)+Math.pow(i,2)-Math.pow(a,2))/(2*r*i)},r6=nz(t=>{let e;let n=t.attributes,{className:r,class:i,transform:a,rotate:o,labelTransform:l,labelTransformOrigin:s,x:c,y:u,x0:f=c,y0:d=u,text:h,background:p,connector:g,startMarker:m,endMarker:y,coordCenter:v,innerHTML:b}=n,x=r3(n,["className","class","transform","rotate","labelTransform","labelTransformOrigin","x","y","x0","y0","text","background","connector","startMarker","endMarker","coordCenter","innerHTML"]);if(t.style.transform="translate(".concat(c,", ").concat(u,")"),[c,u,f,d].some(t=>!eQ(t))){t.children.forEach(t=>t.remove());return}let O=(0,nd.hB)(x,"background"),{padding:w}=O,_=r3(O,["padding"]),k=(0,nd.hB)(x,"connector"),{points:C=[]}=k,j=r3(k,["points"]),M=[[+f,+d],[+c,+u]];e=b?(0,Q.F)(t).maybeAppend("html","html",r).style("zIndex",0).style("innerHTML",b).call(e2,Object.assign({transform:l,transformOrigin:s},x)).node():(0,Q.F)(t).maybeAppend("text","text").style("zIndex",0).style("text",h).call(e2,Object.assign({textBaseline:"middle",transform:l,transformOrigin:s},x)).node();let S=(0,Q.F)(t).maybeAppend("background","rect").style("zIndex",-1).call(e2,function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],[n=0,r=0,i=n,a=r]=e,o=t.parentNode,l=o.getEulerAngles();o.setEulerAngles(0);let{min:s,halfExtents:c}=t.getLocalBounds(),[u,f]=s,[d,h]=c;return o.setEulerAngles(l),{x:u-a,y:f-n,width:2*d+a+r,height:2*h+n+i}}(e,w)).call(e2,p?_:{}).node(),A=function(t,e,n,r){let[[i,a],[o,l]]=e,[s,c]=function(t){let{min:[e,n],max:[r,i]}=t.getLocalBounds(),a=0,o=0;return e>0&&(a=e),r<0&&(a=r),n>0&&(o=n),i<0&&(o=i),[a,o]}(t);if(i===o&&a===l)return(0,na.Z)()([[0,0],[s,c]]);let u=[[i-o,a-l]].concat(n.length?n:[[0,0]]),f=[r[0]-o,r[1]-l],[d,h]=u;if(r4(f,d,h)>0){let e=(()=>{let{min:e,max:n}=t.getLocalBounds(),r=d[0]+(d[1]-f[1])*(d[1]-0)/(d[0]-f[0]);return n[0]{let{coordinate:n}=e;return(e,r,i)=>{let{color:a,text:o="",fontSize:l,rotate:s=0,transform:c=""}=r,u={text:String(o),stroke:a,fill:a,fontSize:l},[[f,d]]=e;return(0,Q.F)(new r6).style("x",f).style("y",d).call(e2,i).style("transform","".concat(c,"rotate(").concat(+s,")")).style("coordCenter",n.getCenter()).call(e2,u).call(e2,t).node()}};r8.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var r7=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let r9=nz(t=>{let e=t.attributes,{class:n,x:r,y:i,transform:a}=e,o=r7(e,["class","x","y","transform"]),l=(0,nd.hB)(o,"marker"),{size:s=24}=l,c=()=>(function(t){let e=t/Math.sqrt(2),n=t*Math.sqrt(2),[r,i]=[-e,e-n],[a,o]=[0,0],[l,s]=[e,e-n];return[["M",r,i],["A",t,t,0,1,1,l,s],["L",a,o],["Z"]]})(s/2),u=(0,Q.F)(t).maybeAppend("marker",()=>new r5.J({})).call(t=>t.node().update(Object.assign({symbol:c},l))).node(),[f,d]=function(t){let{min:e,max:n}=t.getLocalBounds();return[(e[0]+n[0])*.5,(e[1]+n[1])*.5]}(u);(0,Q.F)(t).maybeAppend("text","text").style("x",f).style("y",d).call(e2,o)}),it=(t,e)=>{let n=r7(t,[]);return(t,e,r)=>{let{color:i}=r,a=r7(r,["color"]),{color:o=i,text:l=""}=e,s={text:String(l),stroke:o,fill:o},[[c,u]]=t;return(0,Q.F)(new r9).call(e2,a).style("transform","translate(".concat(c,",").concat(u,")")).call(e2,s).call(e2,n).node()}};it.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let ie=(t,e)=>{let{coordinate:n}=e;return(e,r,i)=>{let{color:a,text:o="",fontSize:l,rotate:s=0,transform:c=""}=r,u={text:String(o),stroke:a,fill:a,fontSize:l,textAlign:"center",textBaseline:"middle"},[[f,d]]=e,h=(0,Q.F)(new nN.xv).style("x",f).style("y",d).call(e2,i).style("transformOrigin","center center").style("transform","".concat(c,"rotate(").concat(s,"deg)")).style("coordCenter",n.getCenter()).call(e2,u).call(e2,t).node();return h}};ie.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let ir=()=>(t,e)=>{let{data:n}=e;if(!Array.isArray(n)||n.some(I))return[t,e];let r=Array.isArray(n[0])?n:[n],i=r.map(t=>t[0]),a=r.map(t=>t[1]);return[t,E({},e,{encode:{x:P(i),y:P(a)}})]};ir.props={};var ii=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let ia=()=>(t,e)=>{let{data:n,style:r={}}=e,i=ii(e,["data","style"]),{x:a,y:o}=r,l=ii(r,["x","y"]);if(void 0==a||void 0==o)return[t,e];let s=a||0,c=o||0;return[[0],E({},i,{data:[0],cartesian:!0,encode:{x:P([s]),y:P([c])},scale:{x:{type:"identity",independent:!0,guide:null},y:{type:"identity",independent:!0,guide:null}},style:l})]};ia.props={};let io={text:r8,badge:it,tag:ie},il=t=>{let{cartesian:e=!1}=t;return e?nM:(e,n,r,i)=>{let{x:a,y:o}=r,l=nC(n,r,t),s=Array.from(e,t=>{let e=[+a[t],+o[t]];return[i.map(l(e,t))]});return[e,s]}};il.props={defaultShape:"text",defaultLabelShape:"label",composite:!1,shape:io,channels:[...nb({shapes:Object.keys(io)}),{name:"x",required:!0},{name:"y",required:!0},{name:"text",scale:"identity"},{name:"fontSize",scale:"identity"},{name:"rotate",scale:"identity"}],preInference:[...n_(),{type:ir},{type:ia}],postInference:[...nx()]};let is=()=>(t,e)=>[t,E({scale:{x:{padding:0},y:{padding:0}}},e)];is.props={};let ic={cell:nr,hollow:ni},iu=()=>(t,e,n,r)=>{let{x:i,y:a}=n,o=e.x,l=e.y,s=Array.from(t,t=>{let e=o.getBandWidth(o.invert(+i[t])),n=l.getBandWidth(l.invert(+a[t])),s=+i[t],c=+a[t];return[[s,c],[s+e,c],[s+e,c+n],[s,c+n]].map(t=>r.map(t))});return[t,s]};iu.props={defaultShape:"cell",defaultLabelShape:"label",shape:ic,composite:!1,channels:[...nb({shapes:Object.keys(ic)}),{name:"x",required:!0,scale:"band"},{name:"y",required:!0,scale:"band"}],preInference:[...n_(),{type:N},{type:rJ},{type:is}],postInference:[...nx()]};var id=n(37633),ih=n(53253),ip=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let ig=nz(t=>{let{areaPath:e,connectPath:n,areaStyle:r,connectStyle:i}=t.attributes,a=t.ownerDocument;(0,Q.F)(t).maybeAppend("connect-path",()=>a.createElement("path",{})).style("d",n).call(e2,i),(0,Q.F)(t).maybeAppend("area-path",()=>a.createElement("path",{})).style("d",e).call(e2,r)}),im=(t,e)=>{let{curve:n,gradient:r=!1,defined:i=t=>!Number.isNaN(t)&&null!=t,connect:a=!1}=t,o=ip(t,["curve","gradient","defined","connect"]),{coordinate:l,document:s}=e;return(t,e,c)=>{let{color:u}=c,{color:f=u,seriesColor:d,seriesX:h,seriesY:p}=e,g=F(l),m=e7(l,e),y=r&&d?e3(d,h,p,r,void 0,g):f,v=Object.assign(Object.assign(Object.assign(Object.assign({},c),{stroke:y,fill:y}),m&&{transform:m}),o),[b,x]=function(t,e){let n=[],r=[],i=[],a=!1,o=null,l=t.length/2;for(let s=0;s!e(t)))a=!0;else{if(n.push(c),r.push(u),a&&o){a=!1;let[t,e]=o;i.push([t,c,e,u])}o=[c,u]}}return[n.concat(r),i]}(t,i),O=(0,nd.hB)(v,"connect"),w=!!x.length,_=t=>(0,Q.F)(s.createElement("path",{})).style("d",t||"").call(e2,v).node();if($(l)){let e=t=>{let e=l.getCenter(),r=t.slice(0,t.length/2),a=t.slice(t.length/2);return(0,ih.Z)().angle((t,n)=>te(X(r[n],e))).outerRadius((t,n)=>J(r[n],e)).innerRadius((t,n)=>J(a[n],e)).defined((t,e)=>[...r[e],...a[e]].every(i)).curve(n)(a)};return w&&(!a||Object.keys(O).length)?w&&!a?_(e(t)):(0,Q.F)(new ig).style("areaStyle",v).style("connectStyle",Object.assign(Object.assign({},O),o)).style("areaPath",e(t)).style("connectPath",x.map(e).join("")).node():_(e(b))}{let e=t=>{let e=t.slice(0,t.length/2),r=t.slice(t.length/2);return g?(0,id.Z)().y((t,n)=>e[n][1]).x1((t,n)=>e[n][0]).x0((t,e)=>r[e][0]).defined((t,n)=>[...e[n],...r[n]].every(i)).curve(n)(e):(0,id.Z)().x((t,n)=>e[n][0]).y1((t,n)=>e[n][1]).y0((t,e)=>r[e][1]).defined((t,n)=>[...e[n],...r[n]].every(i)).curve(n)(e)};return w&&(!a||Object.keys(O).length)?w&&!a?_(e(t)):(0,Q.F)(new ig).style("areaStyle",v).style("connectStyle",Object.assign(Object.assign({},O),o)).style("areaPath",e(t)).style("connectPath",x.map(e).join("")).node():_(e(b))}}};im.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let iy=(t,e)=>{let{coordinate:n}=e;return function(){for(var r=arguments.length,i=Array(r),a=0;ae.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let ib=(t,e)=>{let n=iv(t,[]),{coordinate:r}=e;return function(){for(var t=arguments.length,i=Array(t),a=0;afunction(){for(var n=arguments.length,r=Array(n),i=0;ifunction(){for(var n=arguments.length,r=Array(n),i=0;ifunction(){for(var n=arguments.length,r=Array(n),i=0;i(t,e,n,r)=>{var i,a;let{x:o,y:l,y1:s,series:c}=n,{x:u,y:f}=e,d=c?Array.from((0,nZ.ZP)(t,t=>c[t]).values()):[t],h=d.map(t=>t[0]).filter(t=>void 0!==t),p=((null===(i=null==u?void 0:u.getBandWidth)||void 0===i?void 0:i.call(u))||0)/2,g=((null===(a=null==f?void 0:f.getBandWidth)||void 0===a?void 0:a.call(f))||0)/2,m=Array.from(d,t=>{let e=t.length,n=Array(2*e);for(let i=0;i(t,e)=>{let{encode:n}=e,{y1:r}=n;if(r)return[t,e];let[i]=B(n,"y");return[t,E({},e,{encode:{y1:P([...i])}})]};iC.props={};let ij=()=>(t,e)=>{let{encode:n}=e,{x1:r}=n;if(r)return[t,e];let[i]=B(n,"x");return[t,E({},e,{encode:{x1:P([...i])}})]};ij.props={};var iM=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let iS=(t,e)=>{let{arrow:n=!0,arrowSize:r="40%"}=t,i=iM(t,["arrow","arrowSize"]),{document:a}=e;return(t,e,o)=>{let{defaultColor:l}=o,s=iM(o,["defaultColor"]),{color:c=l,transform:u}=e,[f,d]=t,h=(0,nJ.Z)();if(h.moveTo(...f),h.lineTo(...d),n){let[t,e]=function(t,e,n){let{arrowSize:r}=n,i="string"==typeof r?+parseFloat(r)/100*J(t,e):r,a=Math.PI/6,o=Math.atan2(e[1]-t[1],e[0]-t[0]),l=Math.PI/2-o-a,s=[e[0]-i*Math.sin(l),e[1]-i*Math.cos(l)],c=o-a,u=[e[0]-i*Math.cos(c),e[1]-i*Math.sin(c)];return[s,u]}(f,d,{arrowSize:r});h.moveTo(...t),h.lineTo(...d),h.lineTo(...e)}return(0,Q.F)(a.createElement("path",{})).call(e2,s).style("d",h.toString()).style("stroke",c).style("transform",u).call(e2,i).node()}};iS.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let iA=(t,e)=>{let{arrow:n=!1}=t;return function(){for(var r=arguments.length,i=Array(r),a=0;ae.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let iP=(t,e)=>{let n=iE(t,[]),{coordinate:r,document:i}=e;return(t,e,a)=>{let{color:o}=a,l=iE(a,["color"]),{color:s=o,transform:c}=e,[u,f]=t,d=(0,nJ.Z)();if(d.moveTo(u[0],u[1]),$(r)){let t=r.getCenter();d.quadraticCurveTo(t[0],t[1],f[0],f[1])}else{let t=ti(u,f),e=J(u,f)/2;e5(d,u,f,t,e)}return(0,Q.F)(i.createElement("path",{})).call(e2,l).style("d",d.toString()).style("stroke",s).style("transform",c).call(e2,n).node()}};iP.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var iR=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let iT=(t,e)=>{let n=iR(t,[]),{document:r}=e;return(t,e,i)=>{let{color:a}=i,o=iR(i,["color"]),{color:l=a,transform:s}=e,[c,u]=t,f=(0,nJ.Z)();return f.moveTo(c[0],c[1]),f.bezierCurveTo(c[0]/2+u[0]/2,c[1],c[0]/2+u[0]/2,u[1],u[0],u[1]),(0,Q.F)(r.createElement("path",{})).call(e2,o).style("d",f.toString()).style("stroke",l).style("transform",s).call(e2,n).node()}};iT.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var iL=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let iB=(t,e)=>{let{cornerRatio:n=1/3}=t,r=iL(t,["cornerRatio"]),{coordinate:i,document:a}=e;return(t,e,o)=>{let{defaultColor:l}=o,s=iL(o,["defaultColor"]),{color:c=l,transform:u}=e,[f,d]=t,h=function(t,e,n,r){let i=(0,nJ.Z)();if($(n)){let a=n.getCenter(),o=J(t,a),l=J(e,a),s=(l-o)*r+o;return i.moveTo(t[0],t[1]),e5(i,t,e,a,s),i.lineTo(e[0],e[1]),i}return F(n)?(i.moveTo(t[0],t[1]),i.lineTo(t[0]+(e[0]-t[0])*r,t[1]),i.lineTo(t[0]+(e[0]-t[0])*r,e[1]),i.lineTo(e[0],e[1]),i):(i.moveTo(t[0],t[1]),i.lineTo(t[0],t[1]+(e[1]-t[1])*r),i.lineTo(e[0],t[1]+(e[1]-t[1])*r),i.lineTo(e[0],e[1]),i)}(f,d,i,n);return(0,Q.F)(a.createElement("path",{})).call(e2,s).style("d",h.toString()).style("stroke",c).style("transform",u).call(e2,r).node()}};iB.props={defaultMarker:"vhv",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let iZ={link:iA,arc:iP,smooth:iT,vhv:iB},iI=t=>(e,n,r,i)=>{let{x:a,y:o,x1:l=a,y1:s=o}=r,c=nC(n,r,t),u=e.map(t=>[i.map(c([+a[t],+o[t]],t)),i.map(c([+l[t],+s[t]],t))]);return[e,u]};iI.props={defaultShape:"link",defaultLabelShape:"label",composite:!1,shape:iZ,channels:[...nb({shapes:Object.keys(iZ)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...n_(),{type:iC},{type:ij}],postInference:[...nx()]};var iD=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let iN=(t,e)=>{let{coordinate:n,document:r}=e;return(e,i,a)=>{let{color:o}=a,l=iD(a,["color"]),{color:s=o,src:c="",size:u=32,transform:f=""}=i,{width:d=u,height:h=u}=t,[[p,g]]=e,[m,y]=n.getSize();d="string"==typeof d?nj(d)*m:d,h="string"==typeof h?nj(h)*y:h;let v=p-Number(d)/2,b=g-Number(h)/2;return(0,Q.F)(r.createElement("image",{})).call(e2,l).style("x",v).style("y",b).style("src",c).style("stroke",s).style("transform",f).call(e2,t).style("width",d).style("height",h).node()}};iN.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let iz={image:iN},iF=t=>{let{cartesian:e}=t;return e?nM:(e,n,r,i)=>{let{x:a,y:o}=r,l=nC(n,r,t),s=Array.from(e,t=>{let e=[+a[t],+o[t]];return[i.map(l(e,t))]});return[e,s]}};iF.props={defaultShape:"image",defaultLabelShape:"label",composite:!1,shape:iz,channels:[...nb({shapes:Object.keys(iz)}),{name:"x",required:!0},{name:"y",required:!0},{name:"src",scale:"identity"},{name:"size"}],preInference:[...n_(),{type:ir},{type:ia}],postInference:[...nx()]};var i$=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let iW=(t,e)=>{let{coordinate:n,document:r}=e;return(e,i,a)=>{let{color:o}=a,l=i$(a,["color"]),{color:s=o,transform:c}=i,u=function(t,e){let n=(0,nJ.Z)();if($(e)){let r=e.getCenter(),i=[...t,t[0]],a=i.map(t=>J(t,r));return i.forEach((e,i)=>{if(0===i){n.moveTo(e[0],e[1]);return}let o=a[i],l=t[i-1],s=a[i-1];void 0!==s&&1e-10>Math.abs(o-s)?e5(n,l,e,r,o):n.lineTo(e[0],e[1])}),n.closePath(),n}return t.forEach((t,e)=>0===e?n.moveTo(t[0],t[1]):n.lineTo(t[0],t[1])),n.closePath(),n}(e,n);return(0,Q.F)(r.createElement("path",{})).call(e2,l).style("d",u.toString()).style("stroke",s).style("fill",s).style("transform",c).call(e2,t).node()}};iW.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var iH=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let iG=(t,e)=>{let n=iH(t,[]),{coordinate:r,document:i}=e;return(t,e,a)=>{let{color:o}=a,l=iH(a,["color"]),{color:s=o,transform:c}=e,u=function(t,e){let[n,r,i,a]=t,o=(0,nJ.Z)();if($(e)){let t=e.getCenter(),l=J(t,n);return o.moveTo(n[0],n[1]),o.quadraticCurveTo(t[0],t[1],i[0],i[1]),e5(o,i,a,t,l),o.quadraticCurveTo(t[0],t[1],r[0],r[1]),e5(o,r,n,t,l),o.closePath(),o}return o.moveTo(n[0],n[1]),o.bezierCurveTo(n[0]/2+i[0]/2,n[1],n[0]/2+i[0]/2,i[1],i[0],i[1]),o.lineTo(a[0],a[1]),o.bezierCurveTo(a[0]/2+r[0]/2,a[1],a[0]/2+r[0]/2,r[1],r[0],r[1]),o.lineTo(n[0],n[1]),o.closePath(),o}(t,r);return(0,Q.F)(i.createElement("path",{})).call(e2,l).style("d",u.toString()).style("fill",s||o).style("stroke",s||o).style("transform",c).call(e2,n).node()}};iG.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let iq={polygon:iW,ribbon:iG},iY=()=>(t,e,n,r)=>{let i=Object.entries(n).filter(t=>{let[e]=t;return e.startsWith("x")}).map(t=>{let[,e]=t;return e}),a=Object.entries(n).filter(t=>{let[e]=t;return e.startsWith("y")}).map(t=>{let[,e]=t;return e}),o=t.map(t=>{let e=[];for(let n=0;ne.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let iU=(t,e)=>{let{coordinate:n,document:r}=e;return(e,i,a)=>{let{color:o,transform:l}=i,{color:s,fill:c=s,stroke:u=s}=a,f=iV(a,["color","fill","stroke"]),d=function(t,e){let n=(0,nJ.Z)();if($(e)){let r=e.getCenter(),[i,a]=r,o=tt(X(t[0],r)),l=tt(X(t[1],r)),s=J(r,t[2]),c=J(r,t[3]),u=J(r,t[8]),f=J(r,t[10]),d=J(r,t[11]);n.moveTo(...t[0]),n.arc(i,a,s,o,l),n.arc(i,a,s,l,o,!0),n.moveTo(...t[2]),n.lineTo(...t[3]),n.moveTo(...t[4]),n.arc(i,a,c,o,l),n.lineTo(...t[6]),n.arc(i,a,f,l,o,!0),n.closePath(),n.moveTo(...t[8]),n.arc(i,a,u,o,l),n.arc(i,a,u,l,o,!0),n.moveTo(...t[10]),n.lineTo(...t[11]),n.moveTo(...t[12]),n.arc(i,a,d,o,l),n.arc(i,a,d,l,o,!0)}else n.moveTo(...t[0]),n.lineTo(...t[1]),n.moveTo(...t[2]),n.lineTo(...t[3]),n.moveTo(...t[4]),n.lineTo(...t[5]),n.lineTo(...t[6]),n.lineTo(...t[7]),n.closePath(),n.moveTo(...t[8]),n.lineTo(...t[9]),n.moveTo(...t[10]),n.lineTo(...t[11]),n.moveTo(...t[12]),n.lineTo(...t[13]);return n}(e,n);return(0,Q.F)(r.createElement("path",{})).call(e2,f).style("d",d.toString()).style("stroke",u).style("fill",o||c).style("transform",l).call(e2,t).node()}};iU.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var iQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let iX=(t,e)=>{let{coordinate:n,document:r}=e;return(e,i,a)=>{let{color:o,transform:l}=i,{color:s,fill:c=s,stroke:u=s}=a,f=iQ(a,["color","fill","stroke"]),d=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,r=(0,nJ.Z)();if(!$(e))return r.moveTo(...t[2]),r.lineTo(...t[3]),r.lineTo(t[3][0]-n,t[3][1]),r.lineTo(t[10][0]-n,t[10][1]),r.lineTo(t[10][0]+n,t[10][1]),r.lineTo(t[3][0]+n,t[3][1]),r.lineTo(...t[3]),r.closePath(),r.moveTo(...t[10]),r.lineTo(...t[11]),r.moveTo(t[3][0]+n/2,t[8][1]),r.arc(t[3][0],t[8][1],n/2,0,2*Math.PI),r.closePath(),r;let i=e.getCenter(),[a,o]=i,l=J(i,t[3]),s=J(i,t[8]),c=J(i,t[10]),u=tt(X(t[2],i)),f=Math.asin(n/s),d=u-f,h=u+f;r.moveTo(...t[2]),r.lineTo(...t[3]),r.moveTo(Math.cos(d)*l+a,Math.sin(d)*l+o),r.arc(a,o,l,d,h),r.lineTo(Math.cos(h)*c+a,Math.sin(h)*c+o),r.arc(a,o,c,h,d,!0),r.lineTo(Math.cos(d)*l+a,Math.sin(d)*l+o),r.closePath(),r.moveTo(...t[10]),r.lineTo(...t[11]);let p=(d+h)/2;return r.moveTo(Math.cos(p)*(s+n/2)+a,Math.sin(p)*(s+n/2)+o),r.arc(Math.cos(p)*s+a,Math.sin(p)*s+o,n/2,p,2*Math.PI+p),r.closePath(),r}(e,n,4);return(0,Q.F)(r.createElement("path",{})).call(e2,f).style("d",d.toString()).style("stroke",u).style("fill",o||c).style("transform",l).call(e2,t).node()}};iX.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let iK={box:iU,violin:iX},iJ=()=>(t,e,n,r)=>{let{x:i,y:a,y1:o,y2:l,y3:s,y4:c,series:u}=n,f=e.x,d=e.series,h=Array.from(t,t=>{let e=f.getBandWidth(f.invert(+i[t])),n=d?d.getBandWidth(d.invert(+(null==u?void 0:u[t]))):1,h=e*n,p=(+(null==u?void 0:u[t])||0)*e,g=+i[t]+p+h/2,[m,y,v,b,x]=[+a[t],+o[t],+l[t],+s[t],+c[t]];return[[g-h/2,x],[g+h/2,x],[g,x],[g,b],[g-h/2,b],[g+h/2,b],[g+h/2,y],[g-h/2,y],[g-h/2,v],[g+h/2,v],[g,y],[g,m],[g-h/2,m],[g+h/2,m]].map(t=>r.map(t))});return[t,h]};iJ.props={defaultShape:"box",defaultLabelShape:"label",composite:!1,shape:iK,channels:[...nb({shapes:Object.keys(iK)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"}],preInference:[...n_(),{type:N}],postInference:[...nO()],interaction:{shareTooltip:!0}};let i0={vector:iS},i1=()=>(t,e,n,r)=>{let{x:i,y:a,size:o,rotate:l}=n,[s,c]=r.getSize(),u=t.map(t=>{let e=+l[t]/180*Math.PI,n=+o[t],u=n/s*Math.cos(e),f=-(n/c)*Math.sin(e);return[r.map([+i[t]-u/2,+a[t]-f/2]),r.map([+i[t]+u/2,+a[t]+f/2])]});return[t,u]};i1.props={defaultShape:"vector",defaultLabelShape:"label",composite:!1,shape:i0,channels:[...nb({shapes:Object.keys(i0)}),{name:"x",required:!0},{name:"y",required:!0},{name:"rotate",required:!0,scale:"identity"},{name:"size",required:!0}],preInference:[...n_()],postInference:[...nx()]};var i2=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let i5=(t,e)=>{let{arrow:n,arrowSize:r=4}=t,i=i2(t,["arrow","arrowSize"]),{coordinate:a,document:o}=e;return(t,e,l)=>{let{color:s,lineWidth:c}=l,u=i2(l,["color","lineWidth"]),{color:f=s,size:d=c}=e,h=n?function(t,e,n){let r=t.createElement("path",{style:Object.assign({d:"M ".concat(e,",").concat(e," L -").concat(e,",0 L ").concat(e,",-").concat(e," L 0,0 Z"),transformOrigin:"center"},n)});return r}(o,r,Object.assign({fill:i.stroke||f,stroke:i.stroke||f},(0,nd.hB)(i,"arrow"))):null,p=function(t,e){if(!$(e))return(0,na.Z)().x(t=>t[0]).y(t=>t[1])(t);let n=e.getCenter();return(0,z.Z)()({startAngle:0,endAngle:2*Math.PI,outerRadius:J(t[0],n),innerRadius:J(t[1],n)})}(t,a),g=function(t,e){if(!$(t))return e;let[n,r]=t.getCenter();return"translate(".concat(n,", ").concat(r,") ").concat(e||"")}(a,e.transform);return(0,Q.F)(o.createElement("path",{})).call(e2,u).style("d",p).style("stroke",f).style("lineWidth",d).style("transform",g).style("markerEnd",h).call(e2,i).node()}};i5.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let i3=()=>(t,e)=>{let{data:n}=e;return!Array.isArray(n)||n.some(I)?[t,e]:[t,E({},e,{encode:{x:P(n)}})]};i3.props={};let i4={line:i5},i6=t=>(e,n,r,i)=>{let{x:a}=r,o=nC(n,r,E({style:{bandOffset:0}},t)),l=Array.from(e,t=>{let e=[a[t],1],n=[a[t],0];return[e,n].map(e=>i.map(o(e,t)))});return[e,l]};i6.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:i4,channels:[...nw({shapes:Object.keys(i4)}),{name:"x",required:!0}],preInference:[...n_(),{type:i3}],postInference:[]};let i8=()=>(t,e)=>{let{data:n}=e;return!Array.isArray(n)||n.some(I)?[t,e]:[t,E({},e,{encode:{y:P(n)}})]};i8.props={};let i7={line:i5},i9=t=>(e,n,r,i)=>{let{y:a}=r,o=nC(n,r,E({style:{bandOffset:0}},t)),l=Array.from(e,t=>{let e=[0,a[t]],n=[1,a[t]];return[e,n].map(e=>i.map(o(e,t)))});return[e,l]};i9.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:i7,channels:[...nw({shapes:Object.keys(i7)}),{name:"y",required:!0}],preInference:[...n_(),{type:i8}],postInference:[]};var at=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function ae(t,e,n){return[["M",t,e],["L",t+2*n,e-n],["L",t+2*n,e+n],["Z"]]}let an=(t,e)=>{let{offset:n=0,offset1:r=n,offset2:i=n,connectLength1:a,endMarker:o=!0}=t,l=at(t,["offset","offset1","offset2","connectLength1","endMarker"]),{coordinate:s}=e;return(t,e,n)=>{let{color:c,connectLength1:u}=n,f=at(n,["color","connectLength1"]),{color:d,transform:h}=e,p=function(t,e,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,[[a,o],[l,s]]=e;if(F(t)){let t=a+n,e=t+i;return[[t,o],[e,o],[e,s],[l+r,s]]}let c=o-n,u=c-i;return[[a,c],[a,u],[l,u],[l,s-r]]}(s,t,r,i,null!=a?a:u),g=(0,nd.hB)(Object.assign(Object.assign({},l),n),"endMarker");return(0,Q.F)(new nN.y$).call(e2,f).style("d",(0,na.Z)().x(t=>t[0]).y(t=>t[1])(p)).style("stroke",d||c).style("transform",h).style("markerEnd",o?new r5.J({className:"marker",style:Object.assign(Object.assign({},g),{symbol:ae})}):null).call(e2,l).node()}};an.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let ar={connector:an},ai=function(){for(var t=arguments.length,e=Array(t),n=0;n[0,1];let{[t]:i,["".concat(t,"1")]:a}=n;return t=>{var e;let n=(null===(e=r.getBandWidth)||void 0===e?void 0:e.call(r,r.invert(+a[t])))||0;return[i[t],a[t]+n]}}function ao(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{extendX:e=!1,extendY:n=!1}=t;return(t,r,i,a)=>{let o=aa("x",e,i,r.x),l=aa("y",n,i,r.y),s=Array.from(t,t=>{let[e,n]=o(t),[r,i]=l(t);return[[e,r],[n,r],[n,i],[e,i]].map(t=>a.map(t))});return[t,s]}}ai.props={defaultShape:"connector",defaultLabelShape:"label",composite:!1,shape:ar,channels:[...nw({shapes:Object.keys(ar)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...n_()],postInference:[]};let al={range:nr},as=()=>ao();as.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:al,channels:[...nw({shapes:Object.keys(al)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...n_()],postInference:[]};let ac=()=>(t,e)=>{let{data:n}=e;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(I))){let r=(t,e)=>Array.isArray(t[0])?t.map(t=>t[e]):[t[e]];return[t,E({},e,{encode:{x:P(r(n,0)),x1:P(r(n,1))}})]}return[t,e]};ac.props={};let au={range:nr},af=()=>ao({extendY:!0});af.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:au,channels:[...nw({shapes:Object.keys(au)}),{name:"x",required:!0}],preInference:[...n_(),{type:ac}],postInference:[]};let ad=()=>(t,e)=>{let{data:n}=e;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(I))){let r=(t,e)=>Array.isArray(t[0])?t.map(t=>t[e]):[t[e]];return[t,E({},e,{encode:{y:P(r(n,0)),y1:P(r(n,1))}})]}return[t,e]};ad.props={};let ah={range:nr},ap=()=>ao({extendX:!0});ap.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:ah,channels:[...nw({shapes:Object.keys(ah)}),{name:"y",required:!0}],preInference:[...n_(),{type:ad}],postInference:[]};var ag=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let am=(t,e)=>{let{arrow:n,colorAttribute:r}=t,i=ag(t,["arrow","colorAttribute"]),{coordinate:a,document:o}=e;return(t,e,n)=>{let{color:l,stroke:s}=n,c=ag(n,["color","stroke"]),{d:u,color:f=l}=e,[d,h]=a.getSize();return(0,Q.F)(o.createElement("path",{})).call(e2,c).style("d","function"==typeof u?u({width:d,height:h}):u).style(r,f).call(e2,i).node()}};am.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let ay=(t,e)=>am(Object.assign({colorAttribute:"fill"},t),e);ay.props={defaultMarker:"hvh",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let av=(t,e)=>am(Object.assign({fill:"none",colorAttribute:"stroke"},t),e);av.props={defaultMarker:"hvh",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let ab={path:ay,hollow:av},ax=t=>(t,e,n,r)=>[t,t.map(()=>[[0,0]])];ax.props={defaultShape:"path",defaultLabelShape:"label",shape:ab,composite:!1,channels:[...nb({shapes:Object.keys(ab)}),{name:"d",scale:"identity"}],preInference:[...n_()],postInference:[]};var aO=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let aw=(t,e)=>{let{render:n}=t,r=aO(t,["render"]);return t=>{let[[i,a]]=t;return n(Object.assign(Object.assign({},r),{x:i,y:a}),e)}};aw.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let a_=()=>(t,e)=>{let{style:n={}}=e;return[t,E({},e,{style:Object.assign(Object.assign({},n),Object.fromEntries(Object.entries(n).filter(t=>{let[,e]=t;return"function"==typeof e}).map(t=>{let[e,n]=t;return[e,()=>n]})))})]};a_.props={};let ak=t=>{let{cartesian:e}=t;return e?nM:(e,n,r,i)=>{let{x:a,y:o}=r,l=nC(n,r,t),s=Array.from(e,t=>{let e=[+a[t],+o[t]];return[i.map(l(e,t))]});return[e,s]}};ak.props={defaultShape:"shape",defaultLabelShape:"label",composite:!1,shape:{shape:aw},channels:[{name:"x",required:!0},{name:"y",required:!0}],preInference:[...n_(),{type:ir},{type:ia},{type:a_}]};var aC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let aj=(t,e)=>{let{document:n}=e;return(e,r,i)=>{let{transform:a}=r,{color:o}=i,l=aC(i,["color"]),{color:s=o}=r,[c,...u]=e,f=(0,nJ.Z)();return f.moveTo(...c),u.forEach(t=>{let[e,n]=t;f.lineTo(e,n)}),f.closePath(),(0,Q.F)(n.createElement("path",{})).call(e2,l).style("d",f.toString()).style("stroke",s||o).style("fill",s||o).style("fillOpacity",.4).style("transform",a).call(e2,t).node()}};aj.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let aM={density:aj},aS=()=>(t,e,n,r)=>{let{x:i,series:a}=n,o=Object.entries(n).filter(t=>{let[e]=t;return e.startsWith("y")}).map(t=>{let[,e]=t;return e}),l=Object.entries(n).filter(t=>{let[e]=t;return e.startsWith("size")}).map(t=>{let[,e]=t;return e});if(void 0===i||void 0===o||void 0===l)throw Error("Missing encode for x or y or size channel.");let s=e.x,c=e.series,u=Array.from(t,e=>{let n=s.getBandWidth(s.invert(+i[e])),u=c?c.getBandWidth(c.invert(+(null==a?void 0:a[e]))):1,f=(+(null==a?void 0:a[e])||0)*n,d=+i[e]+f+n*u/2,h=[...o.map((n,r)=>[d+ +l[r][e]/t.length,+o[r][e]]),...o.map((n,r)=>[d-+l[r][e]/t.length,+o[r][e]]).reverse()];return h.map(t=>r.map(t))});return[t,u]};aS.props={defaultShape:"density",defaultLabelShape:"label",composite:!1,shape:aM,channels:[...nb({shapes:Object.keys(aM)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"size",required:!0},{name:"series",scale:"band"},{name:"size",required:!0,scale:"identity"}],preInference:[...n_(),{type:D},{type:N}],postInference:[...nO()],interaction:{shareTooltip:!0}};var aA=n(47622),aE=n(98823),aP=n(82631);function aR(t,e,n){let r=t?t():document.createElement("canvas");return r.width=e,r.height=n,r}(0,aP.Z)(3);let aT=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){for(var t=arguments.length,e=Array(t),n=0;n2&&void 0!==arguments[2]?arguments[2]:16,r=(0,aP.Z)(n);return function(){for(var n=arguments.length,i=Array(n),a=0;a{let r=aR(n,2*t,2*t),i=r.getContext("2d");if(1===e)i.beginPath(),i.arc(t,t,t,0,2*Math.PI,!1),i.fillStyle="rgba(0,0,0,1)",i.fill();else{let n=i.createRadialGradient(t,t,t*e,t,t,t);n.addColorStop(0,"rgba(0,0,0,1)"),n.addColorStop(1,"rgba(0,0,0,0)"),i.fillStyle=n,i.fillRect(0,0,2*t,2*t)}return r},t=>"".concat(t));var aL=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let aB=(t,e)=>{let{gradient:n,opacity:r,maxOpacity:i,minOpacity:a,blur:o,useGradientOpacity:l}=t,s=aL(t,["gradient","opacity","maxOpacity","minOpacity","blur","useGradientOpacity"]),{coordinate:c,createCanvas:u,document:f}=e;return(t,e,d)=>{var h,p;let{transform:g}=e,[m,y]=c.getSize(),v=t.map(t=>({x:t[0],y:t[1],value:t[2],radius:t[3]})),b=(0,aA.Z)(t,t=>t[2]),x=(0,aE.Z)(t,t=>t[2]),O=m&&y?function(t,e,n,r,i,a,o){let l=Object.assign({blur:.85,minOpacity:0,opacity:.6,maxOpacity:1,gradient:[[.25,"rgb(0,0,255)"],[.55,"rgb(0,255,0)"],[.85,"yellow"],[1,"rgb(255,0,0)"]]},a);l.minOpacity*=255,l.opacity*=255,l.maxOpacity*=255;let s=aR(o,t,e),c=s.getContext("2d"),u=function(t,e){let n=aR(e,256,1),r=n.getContext("2d"),i=r.createLinearGradient(0,0,256,1);return("string"==typeof t?t.split(" ").map(t=>{let[e,n]=t.split(":");return[+e,n]}):t).forEach(t=>{let[e,n]=t;i.addColorStop(e,n)}),r.fillStyle=i,r.fillRect(0,0,256,1),r.getImageData(0,0,256,1).data}(l.gradient,o);c.clearRect(0,0,t,e),function(t,e,n,r,i,a){let{blur:o}=i,l=r.length;for(;l--;){let{x:i,y:s,value:c,radius:u}=r[l],f=Math.min(c,n),d=i-u,h=s-u,p=aT(u,1-o,a),g=(f-e)/(n-e);t.globalAlpha=Math.max(g,.001),t.drawImage(p,d,h)}}(c,n,r,i,l,o);let f=function(t,e,n,r,i){let{minOpacity:a,opacity:o,maxOpacity:l,useGradientOpacity:s}=i,c=t.getImageData(0,0,e,n),u=c.data,f=u.length;for(let t=3;tvoid 0===t,Object.keys(h).reduce((t,e)=>{let n=h[e];return p(n,e)||(t[e]=n),t},{})),u):{canvas:null};return(0,Q.F)(f.createElement("image",{})).call(e2,d).style("x",0).style("y",0).style("width",m).style("height",y).style("src",O.canvas).style("transform",g).call(e2,s).node()}};aB.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let aZ={heatmap:aB},aI=t=>(t,e,n,r)=>{let{x:i,y:a,size:o,color:l}=n,s=Array.from(t,t=>{let e=o?+o[t]:40;return[...r.map([+i[t],+a[t]]),l[t],e]});return[[0],[s]]};aI.props={defaultShape:"heatmap",defaultLabelShape:"label",composite:!1,shape:aZ,channels:[...nb({shapes:Object.keys(aZ)}),{name:"x",required:!0},{name:"y",required:!0},{name:"color",scale:"identity",required:!0},{name:"size"}],preInference:[...n_(),{type:N},{type:rJ}],postInference:[...nx()]};var aD=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let aN=()=>({axis:!1,type:"text",encode:{x:"x",y:"y",text:"text",rotate:"rotate",fontSize:"size",shape:"tag"},scale:{x:{range:[0,1]},y:{range:[0,1]}},style:{fontFamily:t=>t.fontFamily}}),az=(t,e)=>{var n,r,i,a;return n=void 0,r=void 0,i=void 0,a=function*(){let{width:n,height:r}=e,{data:i,encode:a={},scale:o,style:l={},layout:s={}}=t,c=aD(t,["data","encode","scale","style","layout"]),u=function(t,e){let{text:n="text",value:r="value"}=e;return t.map(t=>Object.assign(Object.assign({},t),{text:t[n],value:t[r]}))}(i,a);return E({},aN(),Object.assign(Object.assign({data:{value:u,transform:[Object.assign({type:"wordCloud",size:[n,r]},s)]},encode:a,scale:o,style:l},c),{axis:!1}))},new(i||(i=Promise))(function(t,e){function o(t){try{s(a.next(t))}catch(t){e(t)}}function l(t){try{s(a.throw(t))}catch(t){e(t)}}function s(e){var n;e.done?t(e.value):((n=e.value)instanceof i?n:new i(function(t){t(n)})).then(o,l)}s((a=a.apply(n,r||[])).next())})};az.props={};let aF=()=>["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"];aF.props={};let a$=()=>["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"];a$.props={};let aW=t=>new eP(t);aW.props={};let aH=t=>new ev(t);aH.props={};let aG=t=>new eb(t);aG.props={};let aq=t=>new ej(t);aq.props={};let aY=t=>new eR(t);aY.props={};let aV=t=>new eY(t);aV.props={};let aU=t=>new eF(t);aU.props={};let aQ=t=>new eZ(t);aQ.props={};let aX=t=>new eI(t);aX.props={};let aK=t=>new eD(t);aK.props={};let aJ=t=>new eW(t);aJ.props={};let a0=t=>new e$(t);a0.props={};let a1=t=>new eV(t);a1.props={};let a2=t=>new eO(t);function a5(t){let{colorDefault:e,colorBlack:n,colorWhite:r,colorStroke:i,colorBackground:a,padding1:o,padding2:l,padding3:s,alpha90:c,alpha65:u,alpha45:f,alpha25:d,alpha10:h,category10:p,category20:g,sizeDefault:m=1,padding:y="auto",margin:v=16}=t;return{padding:y,margin:v,size:m,color:e,category10:p,category20:g,enter:{duration:300,fill:"both",delay:0},update:{duration:300,fill:"both",delay:0},exit:{duration:300,fill:"both",delay:0},view:{viewFill:a,plotFill:"transparent",mainFill:"transparent",contentFill:"transparent"},line:{line:{fill:"",strokeOpacity:1,lineWidth:1,lineCap:"round"}},point:{point:{r:3,fillOpacity:.95,lineWidth:0},hollow:{r:3,strokeOpacity:.95,lineWidth:1},plus:{r:3,strokeOpacity:.95,lineWidth:3},diamond:{r:3,strokeOpacity:.95,lineWidth:1}},interval:{rect:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},area:{area:{fillOpacity:.85,lineWidth:0}},polygon:{polygon:{fillOpacity:.95}},cell:{cell:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},rect:{rect:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},link:{link:{fill:"",strokeOpacity:1}},vector:{vector:{fillOpacity:1}},box:{box:{fillOpacity:.95,stroke:n,lineWidth:1}},text:{text:{fill:"#1D2129",fontSize:12,lineWidth:0,connectorStroke:i,connectorStrokeOpacity:.45,connectorLineWidth:1,backgroundFill:i,backgroundFillOpacity:.15,backgroundPadding:[2,4],startMarkerSymbol:"circle",startMarkerSize:4,endMarkerSymbol:"circle",endMarkerSize:4},badge:{fill:"#1D2129",fillOpacity:.65,lineWidth:0,fontSize:10,textAlign:"center",textBaseline:"middle",markerFill:i,markerFillOpacity:.25,markerStrokeOpacity:0}},lineX:{line:{stroke:i,strokeOpacity:.45,lineWidth:1}},lineY:{line:{stroke:i,strokeOpacity:.45,lineWidth:1}},rangeX:{range:{fill:i,fillOpacity:.15,lineWidth:0}},rangeY:{range:{fill:i,fillOpacity:.15,lineWidth:0}},connector:{connector:{stroke:i,strokeOpacity:.45,lineWidth:1,connectLength1:12,endMarker:!0,endMarkerSize:6,endMarkerFill:i,endMarkerFillOpacity:.95}},axis:{arrow:!1,gridLineDash:[3,4],gridLineWidth:.5,gridStroke:n,gridStrokeOpacity:h,labelAlign:"horizontal",labelFill:n,labelOpacity:f,labelFontSize:12,labelFontWeight:"normal",labelSpacing:o,line:!1,lineLineWidth:.5,lineStroke:n,lineStrokeOpacity:f,tickLength:4,tickLineWidth:1,tickStroke:n,tickOpacity:f,titleFill:n,titleOpacity:c,titleFontSize:12,titleFontWeight:"normal",titleSpacing:12,titleTransformOrigin:"center",lineArrowOffset:6,lineArrowSize:6},axisTop:{gridDirection:"positive",labelDirection:"negative",tickDirection:"negative",titlePosition:"top",titleSpacing:12,labelSpacing:4,titleTextBaseline:"middle"},axisBottom:{gridDirection:"negative",labelDirection:"positive",tickDirection:"positive",titlePosition:"bottom",titleSpacing:12,labelSpacing:4,titleTextBaseline:"bottom",titleTransform:"translate(0, 8)"},axisLeft:{gridDirection:"positive",labelDirection:"negative",labelSpacing:4,tickDirection:"negative",titlePosition:"left",titleSpacing:12,titleTextBaseline:"middle",titleDirection:"vertical",titleTransform:"rotate(-90) translate(0, -8)",titleTransformOrigin:"center"},axisRight:{gridDirection:"negative",labelDirection:"positive",labelSpacing:4,tickDirection:"positive",titlePosition:"right",titleSpacing:12,titleTextBaseline:"top",titleDirection:"vertical",titleTransformOrigin:"center"},axisLinear:{girdClosed:!0,gridConnect:"arc",gridDirection:"negative",gridType:"surround",titlePosition:"top",titleSpacing:0},axisArc:{title:!1,titlePosition:"inner",line:!1,tick:!0,labelSpacing:4},axisRadar:{girdClosed:!0,gridStrokeOpacity:.3,gridType:"surround",label:!1,tick:!1,titlePosition:"start"},legendCategory:{backgroundFill:"transparent",itemBackgroundFill:"transparent",itemLabelFill:n,itemLabelFillOpacity:c,itemLabelFontSize:12,itemLabelFontWeight:"normal",itemMarkerFillOpacity:1,itemMarkerSize:8,itemSpacing:[o,o],itemValueFill:n,itemValueFillOpacity:.65,itemValueFontSize:12,itemValueFontWeight:"normal",navButtonFill:n,navButtonFillOpacity:.65,navPageNumFill:n,navPageNumFillOpacity:.45,navPageNumFontSize:12,padding:8,title:!1,titleFill:n,titleFillOpacity:.65,titleFontSize:12,titleFontWeight:"normal",titleSpacing:4,tickStroke:n,tickStrokeOpacity:.25,rowPadding:o,colPadding:l,maxRows:3,maxCols:3},legendContinuous:{handleHeight:12,handleLabelFill:n,handleLabelFillOpacity:f,handleLabelFontSize:12,handleLabelFontWeight:"normal",handleMarkerFill:n,handleMarkerFillOpacity:.6,handleMarkerLineWidth:1,handleMarkerStroke:n,handleMarkerStrokeOpacity:.25,handleWidth:10,labelFill:n,labelFillOpacity:f,labelFontSize:12,labelFontWeight:"normal",labelSpacing:3,tick:!0,tickLength:12,ribbonSize:12,ribbonFill:"#aaa",handle:!0,handleLabel:!1,handleShape:"slider",handleIconSize:12/1.8,indicator:!1,titleFontSize:12,titleSpacing:4,titleFontWeight:"normal",titleFillOpacity:c,tickStroke:n,tickStrokeOpacity:f},label:{fill:n,fillOpacity:.65,fontSize:12,fontWeight:"normal",stroke:void 0,offset:12,connectorStroke:n,connectorStrokeOpacity:.45,connectorLineWidth:1,connectorLength:12,connectorLength2:8,connectorDistance:4},innerLabel:{fill:r,fontSize:12,fillOpacity:.85,fontWeight:"normal",stroke:void 0,offset:0},htmlLabel:{fontSize:12,opacity:.65,color:n,fontWeight:"normal"},slider:{trackSize:16,trackFill:i,trackFillOpacity:1,selectionFill:e,selectionFillOpacity:.15,handleIconSize:10,handleIconFill:"#f7f7f7",handleIconFillOpacity:1,handleIconStroke:n,handleIconStrokeOpacity:.25,handleIconLineWidth:1,handleIconRadius:2,handleLabelFill:n,handleLabelFillOpacity:.45,handleLabelFontSize:12,handleLabelFontWeight:"normal"},scrollbar:{padding:[0,0,0,0],trackSize:6,isRound:!0,slidable:!0,scrollable:!0,trackFill:"#e5e5e5",trackFillOpacity:0,thumbFill:"#000",thumbFillOpacity:.15,thumbHighlightedFillOpacity:.2},title:{spacing:8,titleFill:n,titleFillOpacity:c,titleFontSize:16,titleFontWeight:"bold",titleTextBaseline:"top",subtitleFill:n,subtitleFillOpacity:u,subtitleFontSize:12,subtitleFontWeight:"normal",subtitleTextBaseline:"top"}}}a2.props={};let a3=a5({colorBlack:"#1D2129",colorWhite:"#ffffff",colorStroke:"#416180",colorDefault:"#1783FF",colorBackground:"transparent",category10:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F"],category20:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#AABA01","#BC7CFC","#237CBC","#2DE379","#CE8032","#FF7AF4","#545FD3","#AFE410","#D8C608","#FFA1E0"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.1}),a4=t=>E({},a3,t);a4.props={};let a6=t=>E({},a4(),{category10:"category10",category20:"category20"},t);a6.props={};let a8=a5({colorBlack:"#fff",colorWhite:"#000",colorStroke:"#416180",colorDefault:"#1783FF",colorBackground:"transparent",category10:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F"],category20:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#AABA01","#BC7CFC","#237CBC","#2DE379","#CE8032","#FF7AF4","#545FD3","#AFE410","#D8C608","#FFA1E0"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.25}),a7=t=>E({},a8,{tooltip:{crosshairsStroke:"#fff",crosshairsLineWidth:1,crosshairsStrokeOpacity:.25,css:{".g2-tooltip":{background:"#1f1f1f",opacity:.95},".g2-tooltip-title":{color:"#A6A6A6"},".g2-tooltip-list-item-name-label":{color:"#A6A6A6"},".g2-tooltip-list-item-value":{color:"#A6A6A6"}}}},t),a9=t=>Object.assign({},a7(),{category10:"category10",category20:"category20"},t);a9.props={};let ot=a5({colorBlack:"#000",colorWhite:"#fff",colorStroke:"#888",colorDefault:"#4e79a7",colorBackground:"transparent",category10:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"],category20:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.1}),oe=t=>E({},ot,{text:{text:{fontSize:10}},axis:{gridLineDash:[0,0],gridLineWidth:1,gridStroke:"#ddd",gridStrokeOpacity:1,labelOpacity:1,labelStrokeOpacity:1,labelFontSize:10,line:!0,lineLineWidth:1,lineStroke:"#888",lineStrokeOpacity:1,tickLength:5,tickStrokeOpacity:1,titleOpacity:1,titleStrokeOpacity:1,titleFillOpacity:1,titleFontSize:11,titleFontWeight:"bold"},axisLeft:{gridFilter:(t,e)=>0!==e},axisRight:{gridFilter:(t,e)=>0!==e},legendCategory:{itemLabelFillOpacity:1,itemLabelFontSize:10,itemValueFillOpacity:1,itemValueFontSize:10,titleFillOpacity:1,titleFontSize:11,titleFontWeight:"bold"},legendContinuous:{handleLabelFontSize:10,labelFillOpacity:.45,labelFontSize:10},label:{fontSize:10},innerLabel:{fontSize:10},htmlLabel:{fontSize:10},slider:{handleLabelFontSize:10,trackFillOpacity:.05}},t);oe.props={};var on=n(47537),or=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e},oi=function(t,e){if(t){if(S(t))for(var n=0,r=t.length;ne.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function od(t,e,n){return t.querySelector(e)?(0,Q.F)(t).select(e):(0,Q.F)(t).append(n)}function oh(t){return Array.isArray(t)?t.join(", "):"".concat(t||"")}function op(t,e){let{flexDirection:n,justifyContent:r,alignItems:i}={display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},a={top:["row","flex-start","center"],bottom:["row","flex-start","center"],left:["column","flex-start","center"],right:["column","flex-start","center"],center:["column","center","center"]};return t in a&&([n,r,i]=a[t]),Object.assign({display:"flex",flexDirection:n,justifyContent:r,alignItems:i},e)}class og extends ou.A{get child(){var t;return null===(t=this.children)||void 0===t?void 0:t[0]}update(t){var e;this.attr(t);let{subOptions:n}=t;null===(e=this.child)||void 0===e||e.update(n)}}class om extends og{update(t){var e;let{subOptions:n}=t;this.attr(t),null===(e=this.child)||void 0===e||e.update(n)}}function oy(t,e){var n;return null===(n=t.filter(t=>t.getOptions().name===e))||void 0===n?void 0:n[0]}function ov(t,e,n){let{bbox:r}=t,{position:i="top",size:a,length:o}=e,l=["top","bottom","center"].includes(i),[s,c]=l?[r.height,r.width]:[r.width,r.height],{defaultSize:u,defaultLength:f}=n.props,d=a||u||s,h=o||f||c,[p,g]=l?[h,d]:[d,h];return{orientation:l?"horizontal":"vertical",width:p,height:g,size:d,length:h}}function ob(t){let e=["arrow","crosshairs","grid","handle","handleLabel","indicator","label","line","tick","tip","title","trunc"],{style:n}=t,r=of(t,["style"]),i={};return Object.entries(r).forEach(t=>{let[n,r]=t;e.includes(n)?i["show".concat(os(n))]=r:i[n]=r}),Object.assign(Object.assign({},i),n)}var ox=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function oO(t,e){let{eulerAngles:n,origin:r}=e;r&&t.setOrigin(r),n&&t.rotate(n[0],n[1],n[2])}function ow(t){let{innerWidth:e,innerHeight:n,depth:r}=t.getOptions();return[e,n,r]}function o_(t,e,n,r,i,a,o,l){var s;(void 0!==n||void 0!==a)&&t.update(Object.assign(Object.assign({},n&&{tickCount:n}),a&&{tickMethod:a}));let c=function(t,e,n){if(t.getTicks)return t.getTicks();if(!n)return e;let[r,i]=(0,eX.Z)(e,t=>+t),{tickCount:a}=t.getOptions();return n(r,i,a)}(t,e,a),u=i?c.filter(i):c,f=t=>t instanceof Date?String(t):"object"==typeof t&&t?t:String(t),d=r||(null===(s=t.getFormatter)||void 0===s?void 0:s.call(t))||f,h=function(t,e){if($(e))return t=>t;let n=e.getOptions(),{innerWidth:r,innerHeight:i,insetTop:a,insetBottom:o,insetLeft:l,insetRight:s}=n,[c,u,f]="left"===t||"right"===t?[a,o,i]:[l,s,r],d=new eP({domain:[0,1],range:[c/f,1-u/f]});return t=>d.map(t)}(o,l),p=function(t,e){let{width:n,height:r}=e.getOptions();return i=>{if(!q(e))return i;let a=e.map("bottom"===t?[i,1]:[0,i]);if("bottom"===t){let t=a[0],e=new eP({domain:[0,n],range:[0,1]});return e.map(t)}if("left"===t){let t=a[1],e=new eP({domain:[0,r],range:[0,1]});return e.map(t)}return i}}(o,l),g=t=>["top","bottom","center","outer"].includes(t),m=t=>["left","right"].includes(t);return $(l)||F(l)?u.map((e,n,r)=>{var i,a;let s=(null===(i=t.getBandWidth)||void 0===i?void 0:i.call(t,e))/2||0,c=h(t.map(e)+s),u=W(l)&&"center"===o||F(l)&&(null===(a=t.getTicks)||void 0===a?void 0:a.call(t))&&g(o)||F(l)&&m(o);return{value:u?1-c:c,label:f(d(to(e),n,r)),id:String(n)}}):u.map((e,n,r)=>{var i;let a=(null===(i=t.getBandWidth)||void 0===i?void 0:i.call(t,e))/2||0,l=p(h(t.map(e)+a)),s=m(o);return{value:s?1-l:l,label:f(d(to(e),n,r)),id:String(n)}})}let ok=t=>e=>{let{labelFormatter:n,labelFilter:r=()=>!0}=e;return i=>{var a;let{scales:[o]}=i,l=(null===(a=o.getTicks)||void 0===a?void 0:a.call(o))||o.getOptions().domain,s="string"==typeof n?(0,oc.WU)(n):n,c=Object.assign(Object.assign({},e),{labelFormatter:s,labelFilter:(t,e,n)=>r(l[e],e,l),scale:o});return t(c)(i)}},oC=ok(t=>{let{direction:e="left",important:n={},labelFormatter:r,order:i,orientation:a,actualPosition:o,position:l,size:s,style:c={},title:u,tickCount:f,tickFilter:d,tickMethod:h,transform:p,indexBBox:g}=t,m=ox(t,["direction","important","labelFormatter","order","orientation","actualPosition","position","size","style","title","tickCount","tickFilter","tickMethod","transform","indexBBox"]);return i=>{var y;let{scales:v,value:b,coordinate:x,theme:O}=i,{bbox:w}=b,[_]=v,{domain:k,xScale:C}=_.getOptions(),j=function(t,e,n,r,i,a){let o=function(t,e,n,r,i,a){let o=n.axis,l=["top","right","bottom","left"].includes(i)?n["axis".concat((0,nd.Ez)(i))]:n.axisLinear,s=t.getOptions().name,c=n["axis".concat(os(s))]||{};return Object.assign({},o,l,c)}(t,0,n,0,i,0);return"center"===i?Object.assign(Object.assign(Object.assign(Object.assign({},o),{labelDirection:"right"===r?"negative":"positive"}),"center"===r?{labelTransform:"translate(50%,0)"}:null),{tickDirection:"right"===r?"negative":"positive",labelSpacing:"center"===r?0:4,titleSpacing:"vertical"===a||a===-Math.PI/2?10:0,tick:"center"!==r&&void 0}):o}(_,0,O,e,l,a),M=Object.assign(Object.assign(Object.assign({},j),c),m),S=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"xy",[r,i,a]=ow(e);return"xy"===n?t.includes("bottom")||t.includes("top")?i:r:"xz"===n?t.includes("bottom")||t.includes("top")?a:r:t.includes("bottom")||t.includes("top")?i:a}(o||l,x,t.plane),A=function(t,e,n,r,i){let{x:a,y:o,width:l,height:s}=n;if("bottom"===t)return{startPos:[a,o],endPos:[a+l,o]};if("left"===t)return{startPos:[a+l,o+s],endPos:[a+l,o]};if("right"===t)return{startPos:[a,o+s],endPos:[a,o]};if("top"===t)return{startPos:[a,o+s],endPos:[a+l,o+s]};if("center"===t){if("vertical"===e)return{startPos:[a,o],endPos:[a,o+s]};if("horizontal"===e)return{startPos:[a,o],endPos:[a+l,o]};if("number"==typeof e){let[t,n]=r.getCenter(),[c,u]=V(r),[f,d]=U(r),h=Math.min(l,s)/2,{insetLeft:p,insetTop:g}=r.getOptions(),m=c*h,y=u*h,[v,b]=[t+a-p,n+o-g],[x,O]=[Math.cos(e),Math.sin(e)],w=$(r)&&i?(()=>{let{domain:t}=i.getOptions();return t.length})():3;return{startPos:[v+y*x,b+y*O],endPos:[v+m*x,b+m*O],gridClosed:1e-6>Math.abs(d-f-360),gridCenter:[v,b],gridControlAngles:Array(w).fill(0).map((t,e,n)=>(d-f)/w*e)}}}return{}}(l,a,w,x,C),E=function(t){let{depth:e}=t.getOptions();return e?{tickIsBillboard:!0,lineIsBillboard:!0,labelIsBillboard:!0,titleIsBillboard:!0,gridIsBillboard:!0}:{}}(x),P=o_(_,k,f,r,d,h,l,x),R=g?P.map((t,e)=>{let n=g.get(e);return n&&n[0]===t.label?Object.assign(Object.assign({},t),{bbox:n[1]}):t}):P,T=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},M),{type:"linear",data:R,crossSize:s,titleText:oh(u),labelOverlap:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;if(t.length>0)return t;let{labelAutoRotate:n,labelAutoHide:r,labelAutoEllipsis:i,labelAutoWrap:a}=e,o=[],l=(t,e)=>{e&&o.push(Object.assign(Object.assign({},t),e))};return l({type:"rotate",optionalAngles:[0,15,30,45,60,90]},n),l({type:"ellipsis",minLength:20},i),l({type:"hide"},r),l({type:"wrap",wordWrapWidth:100,maxLines:3,recoveryWhenFail:!0},a),o}(p,M),grid:(y=M.grid,!($(x)&&F(x)||G(x))&&(void 0===y?!!_.getTicks:y)),gridLength:S,line:!0,indexBBox:g}),M.line?null:{lineOpacity:0}),A),E),n),L=T.labelOverlap.find(t=>"hide"===t.type);return L&&(T.crossSize=!1),new on.R({className:"axis",style:ob(T)})}}),oj=ok(t=>{let{order:e,size:n,position:r,orientation:i,labelFormatter:a,tickFilter:o,tickCount:l,tickMethod:s,important:c={},style:u={},indexBBox:f,title:d,grid:h=!1}=t,p=ox(t,["order","size","position","orientation","labelFormatter","tickFilter","tickCount","tickMethod","important","style","indexBBox","title","grid"]);return t=>{let{scales:[e],value:n,coordinate:i,theme:u}=t,{bbox:g}=n,{domain:m}=e.getOptions(),y=o_(e,m,l,a,o,s,r,i),v=f?y.map((t,e)=>{let n=f.get(e);return n&&n[0]===t.label?Object.assign(Object.assign({},t),{bbox:n[1]}):t}):y,[b,x]=V(i),O=function(t,e,n,r,i){let{x:a,y:o,width:l,height:s}=e,c=[a+l/2,o+s/2],u=Math.min(l,s)/2,[f,d]=U(i),[h,p]=ow(i),g=Math.min(h,p)/2,m={center:c,radius:u,startAngle:f,endAngle:d,gridLength:(r-n)*g};if("inner"===t){let{insetLeft:t,insetTop:e}=i.getOptions();return Object.assign(Object.assign({},m),{center:[c[0]-t,c[1]-e],labelAlign:"perpendicular",labelDirection:"positive",tickDirection:"positive",gridDirection:"negative"})}return Object.assign(Object.assign({},m),{labelAlign:"parallel",labelDirection:"negative",tickDirection:"negative",gridDirection:"positive"})}(r,g,b,x,i),{axis:w,axisArc:_={}}=u,k=ob(E({},w,_,O,Object.assign(Object.assign({type:"arc",data:v,titleText:oh(d),grid:h},p),c)));return new on.R({style:oo(k,["transform"])})}});oC.props={defaultPosition:"center",defaultSize:45,defaultOrder:0,defaultCrossPadding:[12,12],defaultPadding:[12,12]},oj.props={defaultPosition:"outer",defaultOrientation:"vertical",defaultSize:45,defaultOrder:0,defaultCrossPadding:[12,12],defaultPadding:[12,12]};let oM=t=>function(){for(var e=arguments.length,n=Array(e),r=0;rfunction(){for(var e=arguments.length,n=Array(e),r=0;re.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let oT=t=>{let{labelFormatter:e,layout:n,order:r,orientation:i,position:a,size:o,title:l,cols:s,itemMarker:c}=t,u=oR(t,["labelFormatter","layout","order","orientation","position","size","title","cols","itemMarker"]),{gridRow:f}=u;return e=>{let{value:r,theme:i}=e,{bbox:o}=r,{width:c,height:d}=function(t,e,n){let{position:r}=e;if("center"===r){let{bbox:e}=t,{width:n,height:r}=e;return{width:n,height:r}}let{width:i,height:a}=ov(t,e,n);return{width:i,height:a}}(r,t,oT),h=op(a,n),p=Object.assign(Object.assign(Object.assign(Object.assign({orientation:["right","left","center"].includes(a)?"vertical":"horizontal",width:c,height:d,layout:void 0!==s?"grid":"flex"},void 0!==s&&{gridCol:s}),void 0!==f&&{gridRow:f}),{titleText:oh(l)}),function(t,e){let{labelFormatter:n=t=>"".concat(t)}=t,{scales:r,theme:i}=e,a=i.legendCategory.itemMarkerSize,o=function(t,e){let n=oy(t,"size");return n instanceof ej?2*n.map(NaN):e}(r,a),l={itemMarker:function(t,e){let{scales:n,library:r,markState:i}=e,[a,o]=function(t,e){let n=oy(t,"shape"),r=oy(t,"color"),i=n?n.clone():null,a=[];for(let[t,n]of e){let e=t.type,o=(null==r?void 0:r.getOptions().domain.length)>0?null==r?void 0:r.getOptions().domain:n.data,l=o.map((e,r)=>{var a;return i?i.map(e||"point"):(null===(a=null==t?void 0:t.style)||void 0===a?void 0:a.shape)||n.defaultShape||"point"});"string"==typeof e&&a.push([e,l])}if(0===a.length)return["point",["point"]];if(1===a.length||!n)return a[0];let{range:o}=n.getOptions();return a.map(t=>{let[e,n]=t,r=0;for(let t=0;te[0]-t[0])[0][1]}(n,i),{itemMarker:l,itemMarkerSize:s}=t,c=(t,e)=>{var n,i,o;let l=(null===(o=null===(i=null===(n=r["mark.".concat(a)])||void 0===n?void 0:n.props)||void 0===i?void 0:i.shape[t])||void 0===o?void 0:o.props.defaultMarker)||oP(t.split(".")),c="function"==typeof s?s(e):s;return()=>(function(t,e){var{d:n,fill:r,lineWidth:i,path:a,stroke:o,color:l}=e,s=n7(e,["d","fill","lineWidth","path","stroke","color"]);let c=rj.get(t)||rj.get("point");return function(){for(var t=arguments.length,e=Array(t),n=0;n"".concat(o[t]),f=oy(n,"shape");return f&&!l?(t,e)=>c(u(e),t):"function"==typeof l?(t,e)=>{let n=l(t.id,e);return"string"==typeof n?c(n,t):n}:(t,e)=>c(l||u(e),t)}(Object.assign(Object.assign({},t),{itemMarkerSize:o}),e),itemMarkerSize:o,itemMarkerOpacity:function(t){let e=oy(t,"opacity");if(e){let{range:t}=e.getOptions();return(e,n)=>t[n]}}(r)},s="string"==typeof n?(0,oc.WU)(n):n,c=oy(r,"color"),u=r.find(t=>t.getOptions().domain.length>0).getOptions().domain,f=c?t=>c.map(t):()=>e.theme.color;return Object.assign(Object.assign({},l),{data:u.map(t=>({id:t,label:s(t),color:f(t)}))})}(t,e)),{legendCategory:g={}}=i,m=ob(Object.assign({},g,p,u)),y=new om({style:Object.assign(Object.assign({x:o.x,y:o.y,width:o.width,height:o.height},h),{subOptions:m})});return y.appendChild(new oA.W({className:"legend-category",style:m})),y}};oT.props={defaultPosition:"top",defaultOrder:1,defaultSize:40,defaultCrossPadding:[12,12],defaultPadding:[12,12]};var oL=n(37948),oB=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function oZ(t){let{domain:e}=t.getOptions(),[n,r]=[e[0],e0(e)];return[n,r]}let oI=t=>{let{labelFormatter:e,layout:n,order:r,orientation:i,position:a,size:o,title:l,style:s,crossPadding:c,padding:u}=t,f=oB(t,["labelFormatter","layout","order","orientation","position","size","title","style","crossPadding","padding"]);return r=>{let{scales:i,value:o,theme:c,scale:u}=r,{bbox:d}=o,{x:h,y:p,width:g,height:m}=d,y=op(a,n),{legendContinuous:v={}}=c,b=ob(Object.assign({},v,Object.assign(Object.assign({titleText:oh(l),labelAlign:"value",labelFormatter:"string"==typeof e?t=>(0,oc.WU)(e)(t.label):e},function(t,e,n,r,i,a){let o=oy(t,"color"),l=function(t,e,n){var r,i,a;let{size:o}=e,l=ov(t,e,n);return r=l,i=o,a=l.orientation,(r.size=i,"horizontal"===a||0===a)?r.height=i:r.width=i,r}(n,r,i);if(o instanceof eD){let{range:t}=o.getOptions(),[e,n]=oZ(o);return o instanceof e$||o instanceof eW?function(t,e,n,r,i){let a=e.thresholds;return Object.assign(Object.assign({},t),{color:i,data:[n,...a,r].map(t=>({value:t/r,label:String(t)}))})}(l,o,e,n,t):function(t,e,n){let r=e.thresholds,i=[-1/0,...r,1/0].map((t,e)=>({value:e,label:t}));return Object.assign(Object.assign({},t),{data:i,color:n,labelFilter:(t,e)=>e>0&&evoid 0!==t).find(t=>!(t instanceof eO)));return Object.assign(Object.assign({},t),{domain:[f,d],data:s.getTicks().map(t=>({value:t})),color:Array(Math.floor(o)).fill(0).map((t,e)=>{let n=(u-c)/(o-1)*e+c,i=s.map(n)||l,a=r?r.map(n):1;return i.replace(/rgb[a]*\(([\d]{1,3}) *, *([\d]{1,3}) *, *([\d]{1,3})[\S\s]*\)/,(t,e,n,r)=>"rgba(".concat(e,", ").concat(n,", ").concat(r,", ").concat(a,")"))})})}(l,o,s,c,e,a)}(i,u,o,t,oI,c)),s),f)),x=new og({style:Object.assign(Object.assign({x:h,y:p,width:g,height:m},y),{subOptions:b})});return x.appendChild(new oL.V({className:"legend-continuous",style:b})),x}};oI.props={defaultPosition:"top",defaultOrientation:"vertical",defaultOrder:1,defaultSize:60,defaultLength:200,defaultLegendSize:60,defaultPadding:[20,10],defaultCrossPadding:[12,12]};let oD=t=>()=>new nN.ZA;oD.props={};var oN=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function oz(t,e,n,r){switch(r){case"center":return{x:t+n/2,y:e,textAlign:"middle"};case"right":return{x:t+n,y:e,textAlign:"right"};default:return{x:t,y:e,textAlign:"left"}}}let oF=(r={render(t,e){let{width:n,title:r,subtitle:i,spacing:a=2,align:o="left",x:l,y:s}=t,c=oN(t,["width","title","subtitle","spacing","align","x","y"]);e.style.transform="translate(".concat(l,", ").concat(s,")");let u=(0,nd.hB)(c,"title"),f=(0,nd.hB)(c,"subtitle"),d=od(e,".title","text").attr("className","title").call(e2,Object.assign(Object.assign(Object.assign({},oz(0,0,n,o)),{fontSize:14,textBaseline:"top",text:r}),u)).node(),h=d.getLocalBounds();od(e,".sub-title","text").attr("className","sub-title").call(t=>{if(!i)return t.node().remove();t.node().attr(Object.assign(Object.assign(Object.assign({},oz(0,h.max[1]+a,n,o)),{fontSize:12,textBaseline:"top",text:i}),f))})}},class extends nN.b_{connectedCallback(){var t,e;null===(e=(t=this.descriptor).render)||void 0===e||e.call(t,this.attributes,this)}update(){var t,e;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.attr(E({},this.attributes,n)),null===(e=(t=this.descriptor).render)||void 0===e||e.call(t,this.attributes,this)}constructor(t){super(t),this.descriptor=r}}),o$=t=>e=>{let{value:n,theme:r}=e,{x:i,y:a,width:o,height:l}=n.bbox;return new oF({style:E({},r.title,Object.assign({x:i,y:a,width:o,height:l},t))})};o$.props={defaultPosition:"top",defaultOrder:2,defaultSize:36,defaultCrossPadding:[20,20],defaultPadding:[12,12]};var oW=n(6394),oH=n(44355),oG=n(80732);function oq(t){return!!t.getBandWidth}function oY(t,e,n){if(!oq(t))return t.invert(e);let{adjustedRange:r}=t,{domain:i}=t.getOptions(),a=t.getStep(),o=n?r:r.map(t=>t+a),l=(0,oH.Nw)(o,e),s=Math.min(i.length-1,Math.max(0,l+(n?-1:0)));return i[s]}function oV(t,e,n){if(!e)return t.getOptions().domain;if(!oq(t)){let r=(0,oG.Z)(e);if(!n)return r;let[i]=r,{range:a}=t.getOptions(),[o,l]=a,s=t.invert(t.map(i)+(o>l?-1:1)*n);return[i,s]}let{domain:r}=t.getOptions(),i=e[0],a=r.indexOf(i);if(n){let t=a+Math.round(r.length*n);return r.slice(a,t)}let o=e[e.length-1],l=r.indexOf(o);return r.slice(a,l+1)}function oU(t,e,n,r,i,a){let{x:o,y:l}=i,s=(t,e)=>{let[n,r]=a.invert(t);return[oY(o,n,e),oY(l,r,e)]},c=s([t,e],!0),u=s([n,r],!1),f=oV(o,[c[0],u[0]]),d=oV(l,[c[1],u[1]]);return[f,d]}function oQ(t,e){let[n,r]=t;return[e.map(n),e.map(r)+(e.getStep?e.getStep():0)]}var oX=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let oK=t=>{let{orientation:e,labelFormatter:n,size:r,style:i={},position:a}=t,o=oX(t,["orientation","labelFormatter","size","style","position"]);return r=>{var l;let{scales:[s],value:c,theme:u,coordinate:f}=r,{bbox:d}=c,{width:h,height:p}=d,{slider:g={}}=u,m=(null===(l=s.getFormatter)||void 0===l?void 0:l.call(s))||(t=>t+""),y="string"==typeof n?(0,oc.WU)(n):n,v="horizontal"===e,b=F(f)&&v,{trackSize:x=g.trackSize}=i,[O,w]=function(t,e,n){let{x:r,y:i,width:a,height:o}=t;return"left"===e?[r+a-n,i]:"right"===e||"bottom"===e?[r,i]:"top"===e?[r,i+o-n]:void 0}(d,a,x);return new oW.i({className:"slider",style:Object.assign({},g,Object.assign(Object.assign({x:O,y:w,trackLength:v?h:p,orientation:e,formatter:t=>{let e=oY(s,b?1-t:t,!0);return(y||m)(e)},sparklineData:function(t,e){let{markState:n}=e;return S(t.sparklineData)?t.sparklineData:function(t,e){let[n]=Array.from(t.entries()).filter(t=>{let[e]=t;return"line"===e.type||"area"===e.type}).map(t=>{let[n]=t,{encode:r,slider:i}=n;if((null==i?void 0:i.x)&&0===Object.keys(i.x).length)return Object.fromEntries(e.map(t=>{let e=r[t];return[t,e?e.value:void 0]}))});if(!(null==n?void 0:n.series))return null==n?void 0:n.y;let r=n.series.reduce((t,e,r)=>(t[e]=t[e]||[],t[e].push(n.y[r]),t),{});return Object.values(r)}(n,["y","series"])}(t,r)},i),o))})}};oK.props={defaultPosition:"bottom",defaultSize:24,defaultOrder:1,defaultCrossPadding:[12,12],defaultPadding:[12,12]};let oJ=t=>oK(Object.assign(Object.assign({},t),{orientation:"horizontal"}));oJ.props=Object.assign(Object.assign({},oK.props),{defaultPosition:"bottom"});let o0=t=>oK(Object.assign(Object.assign({},t),{orientation:"vertical"}));o0.props=Object.assign(Object.assign({},oK.props),{defaultPosition:"left"});var o1=n(53020),o2=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let o5=t=>{let{orientation:e,labelFormatter:n,style:r}=t,i=o2(t,["orientation","labelFormatter","style"]);return t=>{let{scales:[n],value:a,theme:o}=t,{bbox:l}=a,{x:s,y:c,width:u,height:f}=l,{scrollbar:d={}}=o,{ratio:h,range:p}=n.getOptions(),g="horizontal"===e?u:f,[m,y]=p;return new o1.L({className:"g2-scrollbar",style:Object.assign({},d,Object.assign(Object.assign(Object.assign(Object.assign({},r),{x:s,y:c,trackLength:g,value:y>m?0:1}),i),{orientation:e,contentLength:g/h,viewportLength:g}))})}};o5.props={defaultPosition:"bottom",defaultSize:24,defaultOrder:1,defaultCrossPadding:[12,12],defaultPadding:[12,12]};let o3=t=>o5(Object.assign(Object.assign({},t),{orientation:"horizontal"}));o3.props=Object.assign(Object.assign({},o5.props),{defaultPosition:"bottom"});let o4=t=>o5(Object.assign(Object.assign({},t),{orientation:"vertical"}));o4.props=Object.assign(Object.assign({},o5.props),{defaultPosition:"left"});let o6=(t,e)=>{let{coordinate:n}=e;return(e,r,i)=>{let[a]=e,{transform:o="",fillOpacity:l=1,strokeOpacity:s=1,opacity:c=1}=a.style,[u,f]=F(n)?["left bottom","scale(1, ".concat(1e-4,")")]:["left top","scale(".concat(1e-4,", 1)")],d=[{transform:"".concat(o," ").concat(f).trimStart(),transformOrigin:u,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:"".concat(o," ").concat(f).trimStart(),transformOrigin:u,fillOpacity:l,strokeOpacity:s,opacity:c,offset:.01},{transform:"".concat(o," scale(1, 1)").trimStart(),transformOrigin:u,fillOpacity:l,strokeOpacity:s,opacity:c}],h=a.animate(d,Object.assign(Object.assign({},i),t));return h}},o8=(t,e)=>{let{coordinate:n}=e;return nN.ux.registerProperty({name:"scaleInYRadius",inherits:!1,initialValue:"",interpolable:!0,syntax:nN.h0.NUMBER}),(e,r,i)=>{let[a]=e;return $(n)?(e=>{let{__data__:r,style:a}=e,{radius:o=0,inset:l=0,fillOpacity:s=1,strokeOpacity:c=1,opacity:u=1}=a,{points:f,y:d,y1:h}=r,p=e6(n,f,[d,h]),{innerRadius:g,outerRadius:m}=p,y=(0,z.Z)().cornerRadius(o).padAngle(l*Math.PI/180),v=new nN.y$({}),b=t=>{v.attr({d:y(t)});let e=(0,nN.YR)(v);return e},x=e.animate([{scaleInYRadius:g+1e-4,fillOpacity:0,strokeOpacity:0,opacity:0},{scaleInYRadius:g+1e-4,fillOpacity:s,strokeOpacity:c,opacity:u,offset:.01},{scaleInYRadius:m,fillOpacity:s,strokeOpacity:c,opacity:u}],Object.assign(Object.assign({},i),t));return x.onframe=function(){e.style.d=b(Object.assign(Object.assign({},p),{outerRadius:Number(e.style.scaleInYRadius)}))},x.onfinish=function(){e.style.d=b(Object.assign(Object.assign({},p),{outerRadius:m}))},x})(a):(e=>{let{style:r}=e,{transform:a="",fillOpacity:o=1,strokeOpacity:l=1,opacity:s=1}=r,[c,u]=F(n)?["left top","scale(".concat(1e-4,", 1)")]:["left bottom","scale(1, ".concat(1e-4,")")],f=[{transform:"".concat(a," ").concat(u).trimStart(),transformOrigin:c,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:"".concat(a," ").concat(u).trimStart(),transformOrigin:c,fillOpacity:o,strokeOpacity:l,opacity:s,offset:.01},{transform:"".concat(a," scale(1, 1)").trimStart(),transformOrigin:c,fillOpacity:o,strokeOpacity:l,opacity:s}],d=e.animate(f,Object.assign(Object.assign({},i),t));return d})(a)}},o7=(t,e)=>{nN.ux.registerProperty({name:"waveInArcAngle",inherits:!1,initialValue:"",interpolable:!0,syntax:nN.h0.NUMBER});let{coordinate:n}=e;return(r,i,a)=>{let[o]=r;if(!$(n))return o6(t,e)(r,i,a);let{__data__:l,style:s}=o,{radius:c=0,inset:u=0,fillOpacity:f=1,strokeOpacity:d=1,opacity:h=1}=s,{points:p,y:g,y1:m}=l,y=(0,z.Z)().cornerRadius(c).padAngle(u*Math.PI/180),v=e6(n,p,[g,m]),{startAngle:b,endAngle:x}=v,O=o.animate([{waveInArcAngle:b+1e-4,fillOpacity:0,strokeOpacity:0,opacity:0},{waveInArcAngle:b+1e-4,fillOpacity:f,strokeOpacity:d,opacity:h,offset:.01},{waveInArcAngle:x,fillOpacity:f,strokeOpacity:d,opacity:h}],Object.assign(Object.assign({},a),t));return O.onframe=function(){o.style.d=y(Object.assign(Object.assign({},v),{endAngle:Number(o.style.waveInArcAngle)}))},O.onfinish=function(){o.style.d=y(Object.assign(Object.assign({},v),{endAngle:x}))},O}};o7.props={};let o9=t=>(e,n,r)=>{let[i]=e,{fillOpacity:a=1,strokeOpacity:o=1,opacity:l=1}=i.style,s=[{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:a,strokeOpacity:o,opacity:l}];return i.animate(s,Object.assign(Object.assign({},r),t))};o9.props={};let lt=t=>(e,n,r)=>{let[i]=e,{fillOpacity:a=1,strokeOpacity:o=1,opacity:l=1}=i.style,s=[{fillOpacity:a,strokeOpacity:o,opacity:l},{fillOpacity:0,strokeOpacity:0,opacity:0}];return i.animate(s,Object.assign(Object.assign({},r),t))};lt.props={};let le=t=>(e,n,r)=>{var i;let[a]=e,o=(null===(i=a.getTotalLength)||void 0===i?void 0:i.call(a))||0,l=[{lineDash:[0,o]},{lineDash:[o,0]}];return a.animate(l,Object.assign(Object.assign({},r),t))};le.props={};let ln={opacity:1,strokeOpacity:1,fillOpacity:1,lineWidth:0,x:0,y:0,cx:0,cy:0,r:0,rx:0,ry:0,width:0,height:0},lr={[nN.bn.CIRCLE]:["cx","cy","r"],[nN.bn.ELLIPSE]:["cx","cy","rx","ry"],[nN.bn.RECT]:["x","y","width","height"],[nN.bn.IMAGE]:["x","y","width","height"],[nN.bn.LINE]:["x1","y1","x2","y2"],[nN.bn.POLYLINE]:["points"],[nN.bn.POLYGON]:["points"]};function li(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r={};for(let i of e){let e=t.style[i];e?r[i]=e:n&&(r[i]=ln[i])}return r}let la=["fill","stroke","fillOpacity","strokeOpacity","opacity","lineWidth"];function lo(t){let{min:e,max:n}=t.getLocalBounds(),[r,i]=e,[a,o]=n;return[r,i,a-r,o-i]}function ll(t,e){let[n,r,i,a]=lo(t),o=Math.ceil(Math.sqrt(e/(a/i))),l=Math.ceil(e/o),s=[],c=a/l,u=0,f=e;for(;f>0;){let t=Math.min(f,o),e=i/t;for(let i=0;i{let t=c.style.d;(0,nd.DM)(c,n),c.style.d=t,c.style.transform="none"},c.style.transform="none",t}return null}let ld=t=>(e,n,r)=>{let i=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pack";return"function"==typeof t?t:ll}(t.split),a=Object.assign(Object.assign({},r),t),{length:o}=e,{length:l}=n;if(1===o&&1===l||o>1&&l>1){let[t]=e,[r]=n;return lf(t,t,r,a)}if(1===o&&l>1){let[t]=e;return function(t,e,n,r){t.style.visibility="hidden";let i=r(t,e.length);return e.map((e,r)=>{let a=new nN.y$({style:Object.assign({d:i[r]},li(t,la))});return lf(e,a,e,n)})}(t,n,a,i)}if(o>1&&1===l){let[t]=n;return function(t,e,n,r){let i=r(e,t.length),{fillOpacity:a=1,strokeOpacity:o=1,opacity:l=1}=e.style,s=e.animate([{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:0,strokeOpacity:0,opacity:0,offset:.99},{fillOpacity:a,strokeOpacity:o,opacity:l}],n),c=t.map((t,r)=>{let a=new nN.y$({style:{d:i[r],fill:e.style.fill}});return lf(t,t,a,n)});return[...c,s]}(e,t,a,i)}return null};ld.props={};let lh=(t,e)=>(n,r,i)=>{let[a]=n,{min:[o,l],halfExtents:s}=a.getLocalBounds(),c=2*s[0],u=2*s[1],f=new nN.y$({style:{d:"M".concat(o,",").concat(l,"L").concat(o+c,",").concat(l,"L").concat(o+c,",").concat(l+u,"L").concat(o,",").concat(l+u,"Z")}});a.appendChild(f),a.style.clipPath=f;let d=o6(t,e)([f],r,i);return d};lh.props={};let lp=(t,e)=>(n,r,i)=>{let[a]=n,{min:[o,l],halfExtents:s}=a.getLocalBounds(),c=2*s[0],u=2*s[1],f=new nN.y$({style:{d:"M".concat(o,",").concat(l,"L").concat(o+c,",").concat(l,"L").concat(o+c,",").concat(l+u,"L").concat(o,",").concat(l+u,"Z")}});a.appendChild(f),a.style.clipPath=f;let d=o8(t,e)([f],r,i);return d};lp.props={};var lg=function(t,e){if(!oE(t))return t;for(var n=[],r=0;rlv(t,e,n,r))}function lb(t){lv(t,"visibility","hidden",!0)}function lx(t){lv(t,"visibility","visible",!0)}var lO=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function lw(t){return(0,Q.F)(t).selectAll(".".concat(lm.Tt)).nodes().filter(t=>!t.__removed__)}function l_(t,e){return lk(t,e).flatMap(t=>{let{container:e}=t;return lw(e)})}function lk(t,e){return e.filter(e=>e!==t&&e.options.parentKey===t.options.key)}function lC(t){return(0,Q.F)(t).select(".".concat(lm.V$)).node()}function lj(t){if("g"===t.tagName)return t.getRenderBounds();let e=t.getGeometryBounds(),n=new nN.mN;return n.setFromTransformedAABB(e,t.getWorldTransform()),n}function lM(t,e){let{offsetX:n,offsetY:r}=e,i=lj(t),{min:[a,o],max:[l,s]}=i;return nl||rs?null:[n-a,r-o]}function lS(t,e){let{offsetX:n,offsetY:r}=e,[i,a,o,l]=function(t){let e=t.getRenderBounds(),{min:[n,r],max:[i,a]}=e;return[n,r,i,a]}(t);return[Math.min(o,Math.max(i,n))-i,Math.min(l,Math.max(a,r))-a]}function lA(t){return t=>t.__data__.color}function lE(t){return t=>t.__data__.x}function lP(t){let e=Array.isArray(t)?t:[t],n=new Map(e.flatMap(t=>{let e=Array.from(t.markState.keys());return e.map(e=>[lT(t.key,e.key),e.data])}));return t=>{let{index:e,markKey:r,viewKey:i}=t.__data__,a=n.get(lT(i,r));return a[e]}}function lR(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t,e)=>t,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(t,e,n)=>t.setAttribute(e,n),r="__states__",i="__ordinal__",a=a=>{let{[r]:o=[],[i]:l={}}=a,s=o.reduce((e,n)=>Object.assign(Object.assign({},e),t[n]),l);if(0!==Object.keys(s).length){for(let[t,r]of Object.entries(s)){let i=function(t,e){var n;return null!==(n=t.style[e])&&void 0!==n?n:ly[e]}(a,t),o=e(r,a);n(a,t,o),t in l||(l[t]=i)}a[i]=l}},o=t=>{t[r]||(t[r]=[])};return{setState:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i1?e-1:0),i=1;i(o(t),-1!==t[r].indexOf(e))}}function lT(t,e){return"".concat(t,",").concat(e)}function lL(t,e){let n=Array.isArray(t)?t:[t],r=n.flatMap(t=>t.marks.map(e=>[lT(t.key,e.key),e.state])),i={};for(let t of e){let[e,n]=Array.isArray(t)?t:[t,{}];i[e]=r.reduce((t,r)=>{var i;let[a,o={}]=r,l=void 0===(i=o[e])||"object"==typeof i&&0===Object.keys(i).length?n:o[e];for(let[e,n]of Object.entries(l)){let r=t[e],i=(t,e,i,o)=>{let l=lT(o.__data__.viewKey,o.__data__.markKey);return a!==l?null==r?void 0:r(t,e,i,o):"function"!=typeof n?n:n(t,e,i,o)};t[e]=i}return t},{})}return i}function lB(t,e){let n=new Map(t.map((t,e)=>[t,e])),r=e?t.map(e):t;return(t,i)=>{if("function"!=typeof t)return t;let a=n.get(i),o=e?e(i):i;return t(o,a,r,i)}}function lZ(t){var{link:e=!1,valueof:n=(t,e)=>t,coordinate:r}=t,i=lO(t,["link","valueof","coordinate"]);if(!e)return[()=>{},()=>{}];let a=t=>t.__data__.points,o=(t,e)=>{let[,n,r]=t,[i,,,a]=e;return[n,i,a,r]};return[t=>{var e;if(t.length<=1)return;let r=(0,oG.Z)(t,(t,e)=>{let{x:n}=t.__data__,{x:r}=e.__data__;return n-r});for(let t=1;tn(t,s)),{fill:g=s.getAttribute("fill")}=p,m=lO(p,["fill"]),y=new nN.y$({className:"element-link",style:Object.assign({d:l.toString(),fill:g,zIndex:-2},m)});null===(e=s.link)||void 0===e||e.remove(),s.parentNode.appendChild(y),s.link=y}},t=>{var e;null===(e=t.link)||void 0===e||e.remove(),t.link=null}]}function lI(t,e,n){let r=e=>{let{transform:n}=t.style;return n?"".concat(n," ").concat(e):e};if($(n)){let{points:i}=t.__data__,[a,o]=F(n)?e4(i):i,l=n.getCenter(),s=X(a,l),c=X(o,l),u=tt(s),f=tn(s,c),d=u+f/2,h=e*Math.cos(d),p=e*Math.sin(d);return r("translate(".concat(h,", ").concat(p,")"))}return r(F(n)?"translate(".concat(e,", 0)"):"translate(0, ".concat(-e,")"))}function lD(t){var{document:e,background:n,scale:r,coordinate:i,valueof:a}=t,o=lO(t,["document","background","scale","coordinate","valueof"]);let l="element-background";if(!n)return[()=>{},()=>{}];let s=(t,e,n)=>{let r=t.invert(e),i=e+t.getBandWidth(r)/2,a=t.getStep(r)/2,o=a*n;return[i-a+o,i+a-o]},c=(t,e)=>{let{x:n}=r;if(!oq(n))return[0,1];let{__data__:i}=t,{x:a}=i,[o,l]=s(n,a,e);return[o,l]},u=(t,e)=>{let{y:n}=r;if(!oq(n))return[0,1];let{__data__:i}=t,{y:a}=i,[o,l]=s(n,a,e);return[o,l]},f=(t,n)=>{let{padding:r}=n,[a,o]=c(t,r),[l,s]=u(t,r),f=[[a,l],[o,l],[o,s],[a,s]].map(t=>i.map(t)),{__data__:d}=t,{y:h,y1:p}=d;return ne(e,f,{y:h,y1:p},i,n)},d=(t,e)=>{let{transform:n="scale(1.2, 1.2)",transformOrigin:r="center center",stroke:i=""}=e,a=lO(e,["transform","transformOrigin","stroke"]),o=Object.assign({transform:n,transformOrigin:r,stroke:i},a),l=t.cloneNode(!0);for(let[t,e]of Object.entries(o))l.style[t]=e;return l},h=()=>{let{x:t,y:e}=r;return[t,e].some(oq)};return[t=>{t.background&&t.background.remove();let e=eK(o,e=>a(e,t)),{fill:n="#CCD6EC",fillOpacity:r=.3,zIndex:i=-2,padding:s=.001,lineWidth:c=0}=e,u=lO(e,["fill","fillOpacity","zIndex","padding","lineWidth"]),p=Object.assign(Object.assign({},u),{fill:n,fillOpacity:r,zIndex:i,padding:s,lineWidth:c}),g=h()?f:d,m=g(t,p);m.className=l,t.parentNode.parentNode.appendChild(m),t.background=m},t=>{var e;null===(e=t.background)||void 0===e||e.remove(),t.background=null},t=>t.className===l]}function lN(t,e){let n=t.getRootNode().defaultView,r=n.getContextService().getDomElement();(null==r?void 0:r.style)&&(t.cursor=r.style.cursor,r.style.cursor=e)}function lz(t,e,n){return t.find(t=>Object.entries(e).every(e=>{let[r,i]=e;return n(t)[r]===i}))}function lF(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))}function l$(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=lg(t,t=>!!t).map((t,e)=>[0===e?"M":"L",...t]);return e&&n.push(["Z"]),n}function lW(t){return t.querySelectorAll(".element")}function lH(t,e){if(e(t))return t;let n=t.parent;for(;n&&!e(n);)n=n.parent;return n}var lG=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function lq(t){var{delay:e,createGroup:n,background:r=!1,link:i=!1}=t,a=lG(t,["delay","createGroup","background","link"]);return(t,o,l)=>{let{container:s,view:c,options:u}=t,{scale:f,coordinate:d}=c,h=lC(s);return function(t,e){var n;let r,{elements:i,datum:a,groupKey:o=t=>t,link:l=!1,background:s=!1,delay:c=60,scale:u,coordinate:f,emitter:d,state:h={}}=e,p=i(t),g=new Set(p),m=(0,nZ.ZP)(p,o),y=lB(p,a),[v,b]=lZ(Object.assign({elements:p,valueof:y,link:l,coordinate:f},(0,nd.hB)(h.active,"link"))),[x,O,w]=lD(Object.assign({document:t.ownerDocument,scale:u,coordinate:f,background:s,valueof:y},(0,nd.hB)(h.active,"background"))),_=E(h,{active:Object.assign({},(null===(n=h.active)||void 0===n?void 0:n.offset)&&{transform:function(){for(var t=arguments.length,e=Array(t),n=0;n{let{target:e,nativeEvent:n=!0}=t;if(!g.has(e))return;r&&clearTimeout(r);let i=o(e),l=m.get(i),s=new Set(l);for(let t of p)s.has(t)?j(t,"active")||k(t,"active"):(k(t,"inactive"),b(t)),t!==e&&O(t);x(e),v(l),n&&d.emit("element:highlight",{nativeEvent:n,data:{data:a(e),group:l.map(a)}})},S=()=>{r&&clearTimeout(r),r=setTimeout(()=>{A(),r=null},c)},A=function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];for(let t of p)C(t,"active","inactive"),O(t),b(t);t&&d.emit("element:unhighlight",{nativeEvent:t})},P=t=>{let{target:e}=t;(!s||w(e))&&(s||g.has(e))&&(c>0?S():A())},R=()=>{A()};t.addEventListener("pointerover",M),t.addEventListener("pointerout",P),t.addEventListener("pointerleave",R);let T=t=>{let{nativeEvent:e}=t;e||A(!1)},L=t=>{let{nativeEvent:e}=t;if(e)return;let{data:n}=t.data,r=lz(p,n,a);r&&M({target:r,nativeEvent:!1})};return d.on("element:highlight",L),d.on("element:unhighlight",T),()=>{for(let e of(t.removeEventListener("pointerover",M),t.removeEventListener("pointerout",P),t.removeEventListener("pointerleave",R),d.off("element:highlight",L),d.off("element:unhighlight",T),p))O(e),b(e)}}(h,Object.assign({elements:lw,datum:lP(c),groupKey:n?n(c):void 0,coordinate:d,scale:f,state:lL(u,[["active",r?{}:{lineWidth:"1",stroke:"#000"}],"inactive"]),background:r,link:i,delay:e,emitter:l},a))}}function lY(t){return lq(Object.assign(Object.assign({},t),{createGroup:lE}))}function lV(t){return lq(Object.assign(Object.assign({},t),{createGroup:lA}))}lq.props={reapplyWhenUpdate:!0},lY.props={reapplyWhenUpdate:!0},lV.props={reapplyWhenUpdate:!0};var lU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function lQ(t){var{createGroup:e,background:n=!1,link:r=!1}=t,i=lU(t,["createGroup","background","link"]);return(t,a,o)=>{let{container:l,view:s,options:c}=t,{coordinate:u,scale:f}=s,d=lC(l);return function(t,e){var n;let{elements:r,datum:i,groupKey:a=t=>t,link:o=!1,single:l=!1,coordinate:s,background:c=!1,scale:u,emitter:f,state:d={}}=e,h=r(t),p=new Set(h),g=(0,nZ.ZP)(h,a),m=lB(h,i),[y,v]=lZ(Object.assign({link:o,elements:h,valueof:m,coordinate:s},(0,nd.hB)(d.selected,"link"))),[b,x]=lD(Object.assign({document:t.ownerDocument,background:c,coordinate:s,scale:u,valueof:m},(0,nd.hB)(d.selected,"background"))),O=E(d,{selected:Object.assign({},(null===(n=d.selected)||void 0===n?void 0:n.offset)&&{transform:function(){for(var t=arguments.length,e=Array(t),n=0;n0)||void 0===arguments[0]||arguments[0];for(let t of h)_(t,"selected","unselected"),v(t),x(t);t&&f.emit("element:unselect",{nativeEvent:!0})},j=function(t,e){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(k(e,"selected"))C();else{let r=a(e),o=g.get(r),l=new Set(o);for(let t of h)l.has(t)?w(t,"selected"):(w(t,"unselected"),v(t)),t!==e&&x(t);if(y(o),b(e),!n)return;f.emit("element:select",Object.assign(Object.assign({},t),{nativeEvent:n,data:{data:[i(e),...o.map(i)]}}))}},M=function(t,e){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=a(e),l=g.get(r),s=new Set(l);if(k(e,"selected")){let t=h.some(t=>!s.has(t)&&k(t,"selected"));if(!t)return C();for(let t of l)w(t,"unselected"),v(t),x(t)}else{let t=l.some(t=>k(t,"selected"));for(let t of h)s.has(t)?w(t,"selected"):k(t,"selected")||w(t,"unselected");!t&&o&&y(l),b(e)}n&&f.emit("element:select",Object.assign(Object.assign({},t),{nativeEvent:n,data:{data:h.filter(t=>k(t,"selected")).map(i)}}))},S=t=>{let{target:e,nativeEvent:n=!0}=t;return p.has(e)?l?j(t,e,n):M(t,e,n):C()};t.addEventListener("click",S);let A=t=>{let{nativeEvent:e,data:n}=t;if(e)return;let r=l?n.data.slice(0,1):n.data;for(let t of r){let e=lz(h,t,i);S({target:e,nativeEvent:!1})}},P=()=>{C(!1)};return f.on("element:select",A),f.on("element:unselect",P),()=>{for(let t of h)v(t);t.removeEventListener("click",S),f.off("element:select",A),f.off("element:unselect",P)}}(d,Object.assign({elements:lw,datum:lP(s),groupKey:e?e(s):void 0,coordinate:u,scale:f,state:lL(c,[["selected",n?{}:{lineWidth:"1",stroke:"#000"}],"unselected"]),background:n,link:r,emitter:o},i))}}function lX(t){return lQ(Object.assign(Object.assign({},t),{createGroup:lE}))}function lK(t){return lQ(Object.assign(Object.assign({},t),{createGroup:lA}))}lQ.props={reapplyWhenUpdate:!0},lX.props={reapplyWhenUpdate:!0},lK.props={reapplyWhenUpdate:!0};var lJ=function(t,e,n){var r,i,a,o,l=0;n||(n={});var s=function(){l=!1===n.leading?0:Date.now(),r=null,o=t.apply(i,a),r||(i=a=null)},c=function(){var c=Date.now();l||!1!==n.leading||(l=c);var u=e-(c-l);return i=this,a=arguments,u<=0||u>e?(r&&(clearTimeout(r),r=null),l=c,o=t.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(s,u)),o};return c.cancel=function(){clearTimeout(r),l=0,r=i=a=null},c},l0=n(29173),l1=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function l2(t){var{wait:e=20,leading:n,trailing:r=!1,labelFormatter:i=t=>"".concat(t)}=t,a=l1(t,["wait","leading","trailing","labelFormatter"]);return t=>{let o;let{view:l,container:s,update:c,setState:u}=t,{markState:f,scale:d,coordinate:h}=l,p=function(t,e,n){let[r]=Array.from(t.entries()).filter(t=>{let[n]=t;return n.type===e}).map(t=>{let[e]=t,{encode:r}=e;return Object.fromEntries(n.map(t=>{let e=r[t];return[t,e?e.value:void 0]}))});return r}(f,"line",["x","y","series"]);if(!p)return;let{y:g,x:m,series:y=[]}=p,v=g.map((t,e)=>e),b=(0,oG.Z)(v.map(t=>m[t])),x=lC(s),O=s.getElementsByClassName(lm.Tt),w=s.getElementsByClassName(lm.fw),_=(0,nZ.ZP)(w,t=>t.__data__.key.split("-")[0]),k=new nN.x1({style:Object.assign({x1:0,y1:0,x2:0,y2:x.getAttribute("height"),stroke:"black",lineWidth:1},(0,nd.hB)(a,"rule"))}),C=new nN.xv({style:Object.assign({x:0,y:x.getAttribute("height"),text:"",fontSize:10},(0,nd.hB)(a,"label"))});k.append(C),x.appendChild(k);let j=(t,e,n)=>{let[r]=t.invert(n),i=e.invert(r);return b[(0,oH.ZR)(b,i)]},M=(t,e)=>{k.setAttribute("x1",t[0]),k.setAttribute("x2",t[0]),C.setAttribute("text",i(e))},S=t=>{let{scale:e,coordinate:n}=o,{x:r,y:i}=e,a=j(n,r,t);for(let e of(M(t,a),O)){let{seriesIndex:t,key:r}=e.__data__,o=t[(0,l0.Z)(t=>m[+t]).center(t,a)],l=[0,i.map(1)],s=[0,i.map(g[o]/g[t[0]])],[,c]=n.map(l),[,u]=n.map(s),f=c-u;e.setAttribute("transform","translate(0, ".concat(f,")"));let d=_.get(r)||[];for(let t of d)t.setAttribute("dy",f)}},A=lJ(t=>{let e=lM(x,t);e&&S(e)},e,{leading:n,trailing:r});return(t=>{var e,n,r,i;return e=this,n=void 0,r=void 0,i=function*(){let{x:e}=d,n=j(h,e,t);M(t,n),u("chartIndex",t=>{let e=E({},t),r=e.marks.find(t=>"line"===t.type),i=(0,aE.Z)((0,nZ.jJ)(v,t=>(0,aE.Z)(t,t=>+g[t])/(0,aA.Z)(t,t=>+g[t]),t=>y[t]).values());E(r,{scale:{y:{domain:[1/i,i]}}});let a=function(t){let{transform:e=[]}=t,n=e.find(t=>"normalizeY"===t.type);if(n)return n;let r={type:"normalizeY"};return e.push(r),t.transform=e,r}(r);for(let t of(a.groupBy="color",a.basis=(t,e)=>{let r=t[(0,l0.Z)(t=>m[+t]).center(t,n)];return e[r]},e.marks))t.animate=!1;return e});let r=yield c("chartIndex");o=r.view},new(r||(r=Promise))(function(t,a){function o(t){try{s(i.next(t))}catch(t){a(t)}}function l(t){try{s(i.throw(t))}catch(t){a(t)}}function s(e){var n;e.done?t(e.value):((n=e.value)instanceof r?n:new r(function(t){t(n)})).then(o,l)}s((i=i.apply(e,n||[])).next())})})([0,0]),x.addEventListener("pointerenter",A),x.addEventListener("pointermove",A),x.addEventListener("pointerleave",A),()=>{k.remove(),x.removeEventListener("pointerenter",A),x.removeEventListener("pointermove",A),x.removeEventListener("pointerleave",A)}}}l2.props={reapplyWhenUpdate:!0};var l5=n(18320),l3=n(71894),l4=n(21281),l6=n(61385);let l8={BEFORE_RENDER:"beforerender",AFTER_RENDER:"afterrender",BEFORE_PAINT:"beforepaint",AFTER_PAINT:"afterpaint",BEFORE_CHANGE_DATA:"beforechangedata",AFTER_CHANGE_DATA:"afterchangedata",BEFORE_CLEAR:"beforeclear",AFTER_CLEAR:"afterclear",BEFORE_DESTROY:"beforedestroy",AFTER_DESTROY:"afterdestroy",BEFORE_CHANGE_SIZE:"beforechangesize",AFTER_CHANGE_SIZE:"afterchangesize",POINTER_TAP:"pointertap",POINTER_DOWN:"pointerdown",POINTER_UP:"pointerup",POINTER_OVER:"pointerover",POINTER_OUT:"pointerout",POINTER_MOVE:"pointermove",POINTER_ENTER:"pointerenter",POINTER_LEAVE:"pointerleave",POINTER_UPOUTSIDE:"pointerupoutside",DRAG_START:"dragstart",DRAG:"drag",DRAG_END:"dragend",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"DROP",CLICK:"click",DBLCLICK:"dblclick"};function l7(t,e){let{__data__:n}=t,{markKey:r,index:i,seriesIndex:a}=n,{markState:o}=e,l=Array.from(o.keys()).find(t=>t.key===r);if(l)return a?a.map(t=>l.data[t]):l.data[i]}function l9(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t=>!0;return i=>{if(!r(i))return;n.emit("plot:".concat(t),i);let{target:a}=i;if(!a)return;let{className:o}=a;if("plot"===o)return;let l=lH(a,t=>"element"===t.className),s=lH(a,t=>"component"===t.className),c=lH(a,t=>"label"===t.className),u=l||s||c;if(!u)return;let{className:f,markType:d}=u,h=Object.assign(Object.assign({},i),{nativeEvent:!0});"element"===f?(h.data={data:l7(u,e)},n.emit("element:".concat(t),h),n.emit("".concat(d,":").concat(t),h)):"label"===f?(h.data={data:u.attributes.datum},n.emit("label:".concat(t),h),n.emit("".concat(o,":").concat(t),h)):(n.emit("component:".concat(t),h),n.emit("".concat(o,":").concat(t),h))}}function st(){return(t,e,n)=>{let{container:r,view:i}=t,a=l9(l8.CLICK,i,n,t=>1===t.detail),o=l9(l8.DBLCLICK,i,n,t=>2===t.detail),l=l9(l8.POINTER_TAP,i,n),s=l9(l8.POINTER_DOWN,i,n),c=l9(l8.POINTER_UP,i,n),u=l9(l8.POINTER_OVER,i,n),f=l9(l8.POINTER_OUT,i,n),d=l9(l8.POINTER_MOVE,i,n),h=l9(l8.POINTER_ENTER,i,n),p=l9(l8.POINTER_LEAVE,i,n),g=l9(l8.POINTER_UPOUTSIDE,i,n),m=l9(l8.DRAG_START,i,n),y=l9(l8.DRAG,i,n),v=l9(l8.DRAG_END,i,n),b=l9(l8.DRAG_ENTER,i,n),x=l9(l8.DRAG_LEAVE,i,n),O=l9(l8.DRAG_OVER,i,n),w=l9(l8.DROP,i,n);return r.addEventListener("click",a),r.addEventListener("click",o),r.addEventListener("pointertap",l),r.addEventListener("pointerdown",s),r.addEventListener("pointerup",c),r.addEventListener("pointerover",u),r.addEventListener("pointerout",f),r.addEventListener("pointermove",d),r.addEventListener("pointerenter",h),r.addEventListener("pointerleave",p),r.addEventListener("pointerupoutside",g),r.addEventListener("dragstart",m),r.addEventListener("drag",y),r.addEventListener("dragend",v),r.addEventListener("dragenter",b),r.addEventListener("dragleave",x),r.addEventListener("dragover",O),r.addEventListener("drop",w),()=>{r.removeEventListener("click",a),r.removeEventListener("click",o),r.removeEventListener("pointertap",l),r.removeEventListener("pointerdown",s),r.removeEventListener("pointerup",c),r.removeEventListener("pointerover",u),r.removeEventListener("pointerout",f),r.removeEventListener("pointermove",d),r.removeEventListener("pointerenter",h),r.removeEventListener("pointerleave",p),r.removeEventListener("pointerupoutside",g),r.removeEventListener("dragstart",m),r.removeEventListener("drag",y),r.removeEventListener("dragend",v),r.removeEventListener("dragenter",b),r.removeEventListener("dragleave",x),r.removeEventListener("dragover",O),r.removeEventListener("drop",w)}}}st.props={reapplyWhenUpdate:!0};var se=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function sn(t,e){if(e)return"string"==typeof e?document.querySelector(e):e;let n=t.ownerDocument.defaultView.getContextService().getDomElement();return n.parentElement}function sr(t){let{root:e,data:n,x:r,y:i,render:a,event:o,single:l,position:s="right-bottom",enterable:c=!1,css:u,mount:f,bounding:d}=t,h=sn(e,f),p=sn(e),g=l?p:e,m=d||function(t){let e=t.getRenderBounds(),{min:[n,r],max:[i,a]}=e;return{x:n,y:r,width:i-n,height:a-r}}(e),y=function(t,e){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return{x:n.x-r.x,y:n.y-r.y}}(p,h),{tooltipElement:v=function(t,e,n,r,i,a,o){let l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},s=new l6.u({className:"tooltip",style:{x:e,y:n,container:o,data:[],bounding:a,position:r,enterable:i,title:"",offset:[10,10],template:{prefixCls:"g2-"},style:E({".g2-tooltip":{},".g2-tooltip-title":{overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"}},l)}});return t.appendChild(s.HTMLTooltipElement),s}(h,r,i,s,c,m,y,u)}=g,{items:b,title:x=""}=n;v.update(Object.assign({x:r,y:i,data:b,title:x,position:s,enterable:c},void 0!==a&&{content:a(o,{items:b,title:x})})),g.tooltipElement=v}function si(t){let{root:e,single:n,emitter:r,nativeEvent:i=!0,event:a=null}=t;i&&r.emit("tooltip:hide",{nativeEvent:i});let o=sn(e),l=n?o:e,{tooltipElement:s}=l;s&&s.hide(null==a?void 0:a.clientX,null==a?void 0:a.clientY)}function sa(t){let{root:e,single:n}=t,r=sn(e),i=n?r:e;if(!i)return;let{tooltipElement:a}=i;a&&(a.destroy(),i.tooltipElement=void 0)}function so(t){let{value:e}=t;return Object.assign(Object.assign({},t),{value:void 0===e?"undefined":e})}function sl(t){let e=t.getAttribute("fill"),n=t.getAttribute("stroke"),{__data__:r}=t,{color:i=e&&"transparent"!==e?e:n}=r;return i}function ss(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t=>t,n=new Map(t.map(t=>[e(t),t]));return Array.from(n.values())}function sc(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.map(t=>t.__data__),i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=t=>t instanceof Date?+t:t,o=ss(r.map(t=>t.title),a).filter(nd.ri),l=r.flatMap((r,a)=>{let o=t[a],{items:l=[],title:s}=r,c=l.filter(nd.ri),u=void 0!==n?n:l.length<=1;return c.map(t=>{var{color:n=sl(o)||i.color,name:a}=t,l=se(t,["color","name"]);let c=function(t,e){let{color:n,series:r,facet:i=!1}=t,{color:a,series:o}=e;if(r&&r.invert&&!(r instanceof eb)&&!(r instanceof eO)){let t=r.clone();return t.invert(o)}if(o&&r instanceof eb&&r.invert(o)!==a&&!i)return r.invert(o);if(n&&n.invert&&!(n instanceof eb)&&!(n instanceof eO)){let t=n.invert(a);return Array.isArray(t)?null:t}return null}(e,r);return Object.assign(Object.assign({},l),{color:n,name:(u?c||a:a||c)||s})})}).map(so);return Object.assign(Object.assign({},o.length>0&&{title:o.join(",")}),{items:ss(l,t=>"(".concat(a(t.name),", ").concat(a(t.value),", ").concat(a(t.color),")"))})}function su(t){t.ruleY&&(t.ruleY.remove(),t.ruleY=void 0)}function sf(t){t.ruleX&&(t.ruleX.remove(),t.ruleX=void 0)}function sd(t){t.markers&&(t.markers.forEach(t=>t.remove()),t.markers=[])}function sh(t,e){return Array.from(t.values()).some(t=>{var n;return null===(n=t.interaction)||void 0===n?void 0:n[e]})}function sp(t,e){return void 0===t?e:t}function sg(t){let{title:e,items:n}=t;return 0===n.length&&void 0===e}function sm(t,e){var{elements:n,sort:r,filter:i,scale:a,coordinate:o,crosshairs:l,crosshairsX:s,crosshairsY:c,render:u,groupName:f,emitter:d,wait:h=50,leading:p=!0,trailing:g=!1,startX:m=0,startY:y=0,body:v=!0,single:b=!0,position:x,enterable:O,mount:w,bounding:_,theme:k,disableNative:C=!1,marker:j=!0,preserve:M=!1,style:S={},css:A={}}=e,P=se(e,["elements","sort","filter","scale","coordinate","crosshairs","crosshairsX","crosshairsY","render","groupName","emitter","wait","leading","trailing","startX","startY","body","single","position","enterable","mount","bounding","theme","disableNative","marker","preserve","style","css"]);let R=n(t),T=F(o),L=$(o),B=E(S,P),{innerWidth:Z,innerHeight:I,width:D,height:N,insetLeft:z,insetTop:W}=o.getOptions(),H=[],G=[];for(let t of R){let{__data__:e}=t,{seriesX:n,title:r,items:i}=e;n?H.push(t):(r||i)&&G.push(t)}let q=!!a.x.getBandWidth,Y=q&&G.length>0;H.sort((t,e)=>{let n=T?0:1,r=t=>t.getBounds().min[n];return T?r(e)-r(t):r(t)-r(e)});let V=t=>{let e=T?1:0,{min:n,max:r}=t.getLocalBounds();return(0,oG.Z)([n[e],r[e]])};G.sort((t,e)=>{let[n,r]=V(t),[i,a]=V(e),o=(n+r)/2,l=(i+a)/2;return T?l-o:o-l});let U=new Map(H.map(t=>{let{__data__:e}=t,{seriesX:n}=e,r=n.map((t,e)=>e),i=(0,oG.Z)(r,t=>n[+t]);return[t,[i,n]]})),{x:Q}=a,K=(null==Q?void 0:Q.getBandWidth)?Q.getBandWidth()/2:0,te=t=>{let[e]=o.invert(t);return e-K},tn=(t,e,n)=>{let r=te(t),i=n.filter(nd.ri),[a,o]=(0,oG.Z)([i[0],i[i.length-1]]);if(!Y&&(ro)&&a!==o)return null;let l=(0,l0.Z)(t=>n[+t]).center,s=l(e,r);return e[s]},tr=(t,e)=>{let n=T?1:0,r=t[n],i=e.filter(t=>{let[e,n]=V(t);return r>=e&&r<=n});if(!Y||i.length>0)return i;let a=(0,l0.Z)(t=>{let[e,n]=V(t);return(e+n)/2}).center,o=a(e,r);return[e[o]].filter(nd.ri)},ti=(t,e)=>{let{__data__:n}=t;return Object.fromEntries(Object.entries(n).filter(t=>{let[e]=t;return e.startsWith("series")&&"series"!==e}).map(t=>{let[n,r]=t,i=r[e];return[(0,l4.Z)(n.replace("series","")),i]}))},ta=lJ(e=>{let n=lM(t,e);if(!n)return;let h=lj(t),p=h.min[0],g=h.min[1],C=[n[0]-m,n[1]-y];if(!C)return;let M=tr(C,G),S=[],E=[];for(let t of H){let[e,n]=U.get(t),r=tn(C,e,n);if(null!==r){S.push(t);let e=ti(t,r),{x:n,y:i}=e,a=o.map([(n||0)+K,i||0]);E.push([Object.assign(Object.assign({},e),{element:t}),a])}}let P=Array.from(new Set(E.map(t=>t[0].x))),R=P[(0,l5.Z)(P,t=>Math.abs(t-te(C)))],F=E.filter(t=>t[0].x===R),$=[...F.map(t=>t[0]),...M.map(t=>t.__data__)],q=[...S,...M],Y=sc(q,a,f,$,k);if(r&&Y.items.sort((t,e)=>r(t)-r(e)),i&&(Y.items=Y.items.filter(i)),0===q.length||sg(Y)){to(e);return}if(v&&sr({root:t,data:Y,x:n[0]+p,y:n[1]+g,render:u,event:e,single:b,position:x,enterable:O,mount:w,bounding:_,css:A}),l||s||c){let e=(0,nd.hB)(B,"crosshairs"),r=Object.assign(Object.assign({},e),(0,nd.hB)(B,"crosshairsX")),i=Object.assign(Object.assign({},e),(0,nd.hB)(B,"crosshairsY")),a=F.map(t=>t[1]);s&&function(t,e,n,r){var{plotWidth:i,plotHeight:a,mainWidth:o,mainHeight:l,startX:s,startY:c,transposed:u,polar:f,insetLeft:d,insetTop:h}=r,p=se(r,["plotWidth","plotHeight","mainWidth","mainHeight","startX","startY","transposed","polar","insetLeft","insetTop"]);let g=Object.assign({lineWidth:1,stroke:"#1b1e23",strokeOpacity:.5},p),m=((t,e)=>{if(1===e.length)return e[0];let n=e.map(e=>J(e,t)),r=(0,l5.Z)(n,t=>t);return e[r]})(n,e);if(f){let[e,n,r]=(()=>{let t=s+d+o/2,e=c+h+l/2,n=J([t,e],m);return[t,e,n]})(),i=t.ruleX||((e,n,r)=>{let i=new nN.Cd({style:Object.assign({cx:e,cy:n,r},g)});return t.appendChild(i),i})(e,n,r);i.style.cx=e,i.style.cy=n,i.style.r=r,t.ruleX=i}else{let[e,n,r,o]=u?[s+m[0],s+m[0],c,c+a]:[s,s+i,m[1]+c,m[1]+c],l=t.ruleX||((e,n,r,i)=>{let a=new nN.x1({style:Object.assign({x1:e,x2:n,y1:r,y2:i},g)});return t.appendChild(a),a})(e,n,r,o);l.style.x1=e,l.style.x2=n,l.style.y1=r,l.style.y2=o,t.ruleX=l}}(t,a,n,Object.assign(Object.assign({},r),{plotWidth:Z,plotHeight:I,mainWidth:D,mainHeight:N,insetLeft:z,insetTop:W,startX:m,startY:y,transposed:T,polar:L})),c&&function(t,e,n){var{plotWidth:r,plotHeight:i,mainWidth:a,mainHeight:o,startX:l,startY:s,transposed:c,polar:u,insetLeft:f,insetTop:d}=n,h=se(n,["plotWidth","plotHeight","mainWidth","mainHeight","startX","startY","transposed","polar","insetLeft","insetTop"]);let p=Object.assign({lineWidth:1,stroke:"#1b1e23",strokeOpacity:.5},h),g=e.map(t=>t[1]),m=e.map(t=>t[0]),y=(0,l3.Z)(g),v=(0,l3.Z)(m),[b,x,O,w]=(()=>{if(u){let t=Math.min(a,o)/2,e=l+f+a/2,n=s+d+o/2,r=tt(X([v,y],[e,n])),i=e+t*Math.cos(r),c=n+t*Math.sin(r);return[e,i,n,c]}return c?[l,l+r,y+s,y+s]:[v+l,v+l,s,s+i]})();if(m.length>0){let e=t.ruleY||(()=>{let e=new nN.x1({style:Object.assign({x1:b,x2:x,y1:O,y2:w},p)});return t.appendChild(e),e})();e.style.x1=b,e.style.x2=x,e.style.y1=O,e.style.y2=w,t.ruleY=e}}(t,a,Object.assign(Object.assign({},i),{plotWidth:Z,plotHeight:I,mainWidth:D,mainHeight:N,insetLeft:z,insetTop:W,startX:m,startY:y,transposed:T,polar:L}))}if(j){let e=(0,nd.hB)(B,"marker");!function(t,e){let{data:n,style:r,theme:i}=e;t.markers&&t.markers.forEach(t=>t.remove());let a=n.filter(t=>{let[{x:e,y:n}]=t;return(0,nd.ri)(e)&&(0,nd.ri)(n)}).map(t=>{let[{color:e,element:n},a]=t,o=e||n.style.fill||n.style.stroke||i.color,l=new nN.Cd({style:Object.assign({cx:a[0],cy:a[1],fill:o,r:4,stroke:"#fff",lineWidth:2},r)});return l});for(let e of a)t.appendChild(e);t.markers=a}(t,{data:F,style:e,theme:k})}d.emit("tooltip:show",Object.assign(Object.assign({},e),{nativeEvent:!0,data:{data:{x:oY(a.x,te(C),!0)}}}))},h,{leading:p,trailing:g}),to=e=>{si({root:t,single:b,emitter:d,event:e}),l&&(su(t),sf(t)),j&&sd(t)},tl=()=>{sa({root:t,single:b}),l&&(su(t),sf(t)),j&&sd(t)},ts=e=>{let{nativeEvent:n,data:r}=e;if(n)return;let{x:i}=r.data,{x:l}=a,s=l.map(i),[c,u]=o.map([s,.5]),{min:[f,d]}=t.getRenderBounds();ta({offsetX:c+f,offsetY:u+d})},tc=()=>{si({root:t,single:b,emitter:d,nativeEvent:!1})},tu=()=>{th(),tl()},tf=()=>{td()},td=()=>{C||(t.addEventListener("pointerenter",ta),t.addEventListener("pointermove",ta),t.addEventListener("pointerleave",to))},th=()=>{C||(t.removeEventListener("pointerenter",ta),t.removeEventListener("pointermove",ta),t.removeEventListener("pointerleave",to))};return td(),d.on("tooltip:show",ts),d.on("tooltip:hide",tc),d.on("tooltip:disable",tu),d.on("tooltip:enable",tf),()=>{th(),d.off("tooltip:show",ts),d.off("tooltip:hide",tc),d.off("tooltip:disable",tu),d.off("tooltip:enable",tf),M?si({root:t,single:b,emitter:d,nativeEvent:!1}):tl()}}function sy(t){let{shared:e,crosshairs:n,crosshairsX:r,crosshairsY:i,series:a,name:o,item:l=()=>({}),facet:s=!1}=t,c=se(t,["shared","crosshairs","crosshairsX","crosshairsY","series","name","item","facet"]);return(t,o,u)=>{let{container:f,view:d}=t,{scale:h,markState:p,coordinate:g,theme:m}=d,y=sh(p,"seriesTooltip"),v=sh(p,"crosshairs"),b=lC(f),x=sp(a,y),O=sp(n,v);if(x&&Array.from(p.values()).some(t=>{var e;return(null===(e=t.interaction)||void 0===e?void 0:e.seriesTooltip)&&t.tooltip})&&!s)return sm(b,Object.assign(Object.assign({},c),{theme:m,elements:lw,scale:h,coordinate:g,crosshairs:O,crosshairsX:sp(sp(r,n),!1),crosshairsY:sp(i,O),item:l,emitter:u}));if(x&&s){let e=o.filter(e=>e!==t&&e.options.parentKey===t.options.key),a=l_(t,o),s=e[0].view.scale,f=b.getBounds(),d=f.min[0],h=f.min[1];return Object.assign(s,{facet:!0}),sm(b.parentNode.parentNode,Object.assign(Object.assign({},c),{theme:m,elements:()=>a,scale:s,coordinate:g,crosshairs:sp(n,v),crosshairsX:sp(sp(r,n),!1),crosshairsY:sp(i,O),item:l,startX:d,startY:h,emitter:u}))}return function(t,e){let{elements:n,coordinate:r,scale:i,render:a,groupName:o,sort:l,filter:s,emitter:c,wait:u=50,leading:f=!0,trailing:d=!1,groupKey:h=t=>t,single:p=!0,position:g,enterable:m,datum:y,view:v,mount:b,bounding:x,theme:O,shared:w=!1,body:_=!0,disableNative:k=!1,preserve:C=!1,css:j={}}=e,M=n(t),S=(0,nZ.ZP)(M,h),A=M.every(t=>"interval"===t.markType)&&!$(r),E=t=>t.__data__.x,P=i.x;A&&M.sort((t,e)=>E(t)-E(e));let R=A?e=>{let n=lM(t,e);if(!n)return;let i=(null==P?void 0:P.getBandWidth)?P.getBandWidth()/2:0,[a]=r.invert(n),o=(0,l0.Z)(E).center,l=o(M,a-i);return M[l]}:t=>{let{target:e}=t;return lH(e,t=>!!t.classList&&t.classList.includes("element"))},T=lJ(e=>{let n=R(e);if(!n){si({root:t,single:p,emitter:c,event:e});return}let r=h(n),u=S.get(r);if(!u)return;let f=1!==u.length||w?sc(u,i,o,void 0,O):function(t){let{__data__:e}=t,{title:n,items:r=[]}=e,i=r.filter(nd.ri).map(e=>{var{color:n=sl(t)}=e;return Object.assign(Object.assign({},se(e,["color"])),{color:n})}).map(so);return Object.assign(Object.assign({},n&&{title:n}),{items:i})}(u[0]);if(l&&f.items.sort((t,e)=>l(t)-l(e)),s&&(f.items=f.items.filter(s)),sg(f)){si({root:t,single:p,emitter:c,event:e});return}let{offsetX:d,offsetY:y}=e;_&&sr({root:t,data:f,x:d,y:y,render:a,event:e,single:p,position:g,enterable:m,mount:b,bounding:x,css:j}),c.emit("tooltip:show",Object.assign(Object.assign({},e),{nativeEvent:!0,data:{data:l7(n,v)}}))},u,{leading:f,trailing:d}),L=e=>{si({root:t,single:p,emitter:c,event:e})},B=()=>{k||(t.addEventListener("pointermove",T),t.addEventListener("pointerleave",L))},Z=()=>{k||(t.removeEventListener("pointermove",T),t.removeEventListener("pointerleave",L))},I=t=>{let{nativeEvent:e,data:n}=t;if(e)return;let r=lz(M,n.data,y);if(!r)return;let i=r.getBBox(),{x:a,y:o,width:l,height:s}=i;T({target:r,offsetX:a+l/2,offsetY:o+s/2})},D=function(){let{nativeEvent:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e||si({root:t,single:p,emitter:c,nativeEvent:!1})};return c.on("tooltip:show",I),c.on("tooltip:hide",D),c.on("tooltip:enable",()=>{B()}),c.on("tooltip:disable",()=>{Z(),sa({root:t,single:p})}),B(),()=>{Z(),c.off("tooltip:show",I),c.off("tooltip:hide",D),C?si({root:t,single:p,emitter:c,nativeEvent:!1}):sa({root:t,single:p})}}(b,Object.assign(Object.assign({},c),{datum:lP(d),elements:lw,scale:h,coordinate:g,groupKey:e?lE(d):void 0,item:l,emitter:u,view:d,theme:m,shared:e}))}}sy.props={reapplyWhenUpdate:!0};var sv=function(t,e,n,r){return new(n||(n=Promise))(function(i,a){function o(t){try{s(r.next(t))}catch(t){a(t)}}function l(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(o,l)}s((r=r.apply(t,e||[])).next())})};let sb="legend-category";function sx(t){return t.getElementsByClassName("legend-category-item-marker")[0]}function sO(t){return t.getElementsByClassName("legend-category-item-label")[0]}function sw(t){return t.getElementsByClassName("items-item")}function s_(t){return t.getElementsByClassName(sb)}function sk(t){return t.getElementsByClassName("legend-continuous")}function sC(t){let e=t.parentNode;for(;e&&!e.__data__;)e=e.parentNode;return e.__data__}function sj(t,e){let{legend:n,channel:r,value:i,ordinal:a,channels:o,allChannels:l,facet:s=!1}=e;return sv(this,void 0,void 0,function*(){let{view:e,update:c,setState:u}=t;u(n,t=>{let{marks:n}=t,c=n.map(t=>{if("legends"===t.type)return t;let{transform:n=[]}=t,c=n.findIndex(t=>{let{type:e}=t;return e.startsWith("group")||e.startsWith("bin")}),u=[...n];u.splice(c+1,0,{type:"filter",[r]:{value:i,ordinal:a}});let f=Object.fromEntries(o.map(t=>[t,{domain:e.scale[t].getOptions().domain}]));return E({},t,Object.assign(Object.assign({transform:u,scale:f},!a&&{animate:!1}),{legend:!s&&Object.fromEntries(l.map(t=>[t,{preserve:!0}]))}))});return Object.assign(Object.assign({},t),{marks:c})}),yield c()})}function sM(t,e){for(let n of t)sj(n,Object.assign(Object.assign({},e),{facet:!0}))}var sS=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function sA(t,e){for(let[n,r]of Object.entries(e))t.style(n,r)}let sE=nz(t=>{let e=t.attributes,{x:n,y:r,width:i,height:a,class:o,renders:l={},handleSize:s=10,document:c}=e,u=sS(e,["x","y","width","height","class","renders","handleSize","document"]);if(!c||void 0===i||void 0===a||void 0===n||void 0===r)return;let f=s/2,d=(t,e,n)=>{t.handle||(t.handle=n.createElement("rect"),t.append(t.handle));let{handle:r}=t;return r.attr(e),r},h=(0,nd.hB)((0,nd.C7)(u,"handleNW","handleNE"),"handleN"),{render:p=d}=h,g=sS(h,["render"]),m=(0,nd.hB)(u,"handleE"),{render:y=d}=m,v=sS(m,["render"]),b=(0,nd.hB)((0,nd.C7)(u,"handleSE","handleSW"),"handleS"),{render:x=d}=b,O=sS(b,["render"]),w=(0,nd.hB)(u,"handleW"),{render:_=d}=w,k=sS(w,["render"]),C=(0,nd.hB)(u,"handleNW"),{render:j=d}=C,M=sS(C,["render"]),S=(0,nd.hB)(u,"handleNE"),{render:A=d}=S,E=sS(S,["render"]),P=(0,nd.hB)(u,"handleSE"),{render:R=d}=P,T=sS(P,["render"]),L=(0,nd.hB)(u,"handleSW"),{render:B=d}=L,Z=sS(L,["render"]),I=(t,e)=>{let{id:n}=t,r=e(t,t.attributes,c);r.id=n,r.style.draggable=!0},D=t=>()=>{let e=nz(e=>I(e,t));return new e({})},N=(0,Q.F)(t).attr("className",o).style("transform","translate(".concat(n,", ").concat(r,")")).style("draggable",!0);N.maybeAppend("selection","rect").style("draggable",!0).style("fill","transparent").call(sA,Object.assign(Object.assign({width:i,height:a},(0,nd.C7)(u,"handle")),{transform:void 0})),N.maybeAppend("handle-n",D(p)).style("x",f).style("y",-f).style("width",i-s).style("height",s).style("fill","transparent").call(sA,g),N.maybeAppend("handle-e",D(y)).style("x",i-f).style("y",f).style("width",s).style("height",a-s).style("fill","transparent").call(sA,v),N.maybeAppend("handle-s",D(x)).style("x",f).style("y",a-f).style("width",i-s).style("height",s).style("fill","transparent").call(sA,O),N.maybeAppend("handle-w",D(_)).style("x",-f).style("y",f).style("width",s).style("height",a-s).style("fill","transparent").call(sA,k),N.maybeAppend("handle-nw",D(j)).style("x",-f).style("y",-f).style("width",s).style("height",s).style("fill","transparent").call(sA,M),N.maybeAppend("handle-ne",D(A)).style("x",i-f).style("y",-f).style("width",s).style("height",s).style("fill","transparent").call(sA,E),N.maybeAppend("handle-se",D(R)).style("x",i-f).style("y",a-f).style("width",s).style("height",s).style("fill","transparent").call(sA,T),N.maybeAppend("handle-sw",D(B)).style("x",-f).style("y",a-f).style("width",s).style("height",s).style("fill","transparent").call(sA,Z)});function sP(t,e){var{brushed:n=()=>{},brushended:r=()=>{},brushcreated:i=()=>{},brushstarted:a=()=>{},brushupdated:o=()=>{},extent:l=function(t){let{width:e,height:n}=t.getBBox();return[0,0,e,n]}(t),brushRegion:s=(t,e,n,r,i)=>[t,e,n,r],reverse:c=!1,fill:u="#777",fillOpacity:f="0.3",stroke:d="#fff",selectedHandles:h=["handle-n","handle-e","handle-s","handle-w","handle-nw","handle-ne","handle-se","handle-sw"]}=e,p=sS(e,["brushed","brushended","brushcreated","brushstarted","brushupdated","extent","brushRegion","reverse","fill","fillOpacity","stroke","selectedHandles"]);let g=null,m=null,y=null,v=null,b=null,x=!1,[O,w,_,k]=l;lN(t,"crosshair"),t.style.draggable=!0;let C=(t,e,n)=>{if(a(n),v&&v.remove(),b&&b.remove(),g=[t,e],c)return j();M()},j=()=>{b=new nN.y$({style:Object.assign(Object.assign({},p),{fill:u,fillOpacity:f,stroke:d,pointerEvents:"none"})}),v=new sE({style:{x:0,y:0,width:0,height:0,draggable:!0,document:t.ownerDocument},className:"mask"}),t.appendChild(b),t.appendChild(v)},M=()=>{v=new sE({style:Object.assign(Object.assign({document:t.ownerDocument,x:0,y:0},p),{fill:u,fillOpacity:f,stroke:d,draggable:!0}),className:"mask"}),t.appendChild(v)},S=function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];v&&v.remove(),b&&b.remove(),g=null,m=null,y=null,x=!1,v=null,b=null,r(t)},A=function(t,e){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],[i,a,o,u]=function(t,e,n,r,i){let[a,o,l,s]=i;return[Math.max(a,Math.min(t,n)),Math.max(o,Math.min(e,r)),Math.min(l,Math.max(t,n)),Math.min(s,Math.max(e,r))]}(t[0],t[1],e[0],e[1],l),[f,d,h,p]=s(i,a,o,u,l);return c?P(f,d,h,p):E(f,d,h,p),n(f,d,h,p,r),[f,d,h,p]},E=(t,e,n,r)=>{v.style.x=t,v.style.y=e,v.style.width=n-t,v.style.height=r-e},P=(t,e,n,r)=>{b.style.d="\n M".concat(O,",").concat(w,"L").concat(_,",").concat(w,"L").concat(_,",").concat(k,"L").concat(O,",").concat(k,"Z\n M").concat(t,",").concat(e,"L").concat(t,",").concat(r,"L").concat(n,",").concat(r,"L").concat(n,",").concat(e,"Z\n "),v.style.x=t,v.style.y=e,v.style.width=n-t,v.style.height=r-e},R=t=>{let e=(t,e,n,r,i)=>t+ei?i-n:t,n=t[0]-y[0],r=t[1]-y[1],i=e(n,g[0],m[0],O,_),a=e(r,g[1],m[1],w,k),o=[g[0]+i,g[1]+a],l=[m[0]+i,m[1]+a];A(o,l)},T={"handle-n":{vector:[0,1,0,0],cursor:"ns-resize"},"handle-e":{vector:[0,0,1,0],cursor:"ew-resize"},"handle-s":{vector:[0,0,0,1],cursor:"ns-resize"},"handle-w":{vector:[1,0,0,0],cursor:"ew-resize"},"handle-nw":{vector:[1,1,0,0],cursor:"nwse-resize"},"handle-ne":{vector:[0,1,1,0],cursor:"nesw-resize"},"handle-se":{vector:[0,0,1,1],cursor:"nwse-resize"},"handle-sw":{vector:[1,0,0,1],cursor:"nesw-resize"}},L=t=>Z(t)||B(t),B=t=>{let{id:e}=t;return -1!==h.indexOf(e)&&new Set(Object.keys(T)).has(e)},Z=t=>t===v.getElementById("selection"),I=e=>{let{target:n}=e,[r,i]=lS(t,e);if(!v||!L(n)){C(r,i,e),x=!0;return}L(n)&&(y=[r,i])},D=e=>{let{target:n}=e,r=lS(t,e);if(!g)return;if(!y)return A(g,r);if(Z(n))return R(r);let[i,a]=[r[0]-y[0],r[1]-y[1]],{id:o}=n;if(T[o]){let[t,e,n,r]=T[o].vector;return A([g[0]+i*t,g[1]+a*e],[m[0]+i*n,m[1]+a*r])}},N=e=>{if(y){y=null;let{x:t,y:n,width:r,height:i}=v.style;g=[t,n],m=[t+r,n+i],o(t,n,t+r,n+i,e);return}m=lS(t,e);let[n,r,a,l]=A(g,m);x=!1,i(n,r,a,l,e)},z=t=>{let{target:e}=t;v&&!L(e)&&S()},F=e=>{let{target:n}=e;v&&L(n)&&!x?Z(n)?lN(t,"move"):B(n)&&lN(t,T[n.id].cursor):lN(t,"crosshair")},$=()=>{lN(t,"default")};return t.addEventListener("dragstart",I),t.addEventListener("drag",D),t.addEventListener("dragend",N),t.addEventListener("click",z),t.addEventListener("pointermove",F),t.addEventListener("pointerleave",$),{mask:v,move(t,e,n,r){let i=!(arguments.length>4)||void 0===arguments[4]||arguments[4];v||C(t,e,{}),g=[t,e],m=[n,r],A([t,e],[n,r],i)},remove(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];v&&S(t)},destroy(){v&&S(!1),lN(t,"default"),t.removeEventListener("dragstart",I),t.removeEventListener("drag",D),t.removeEventListener("dragend",N),t.removeEventListener("click",z),t.removeEventListener("pointermove",F),t.removeEventListener("pointerleave",$)}}}function sR(t,e,n){return e.filter(e=>{if(e===t)return!1;let{interaction:r={}}=e.options;return Object.values(r).find(t=>t.brushKey===n)})}function sT(t,e){var{elements:n,selectedHandles:r,siblings:i=t=>[],datum:a,brushRegion:o,extent:l,reverse:s,scale:c,coordinate:u,series:f=!1,key:d=t=>t,bboxOf:h=t=>{let{x:e,y:n,width:r,height:i}=t.style;return{x:e,y:n,width:r,height:i}},state:p={},emitter:g}=e,m=sS(e,["elements","selectedHandles","siblings","datum","brushRegion","extent","reverse","scale","coordinate","series","key","bboxOf","state","emitter"]);let y=n(t),v=i(t),b=v.flatMap(n),x=lB(y,a),O=(0,nd.hB)(m,"mask"),{setState:w,removeState:_}=lR(p,x),k=new Map,{width:C,height:j,x:M=0,y:S=0}=h(t),A=()=>{for(let t of[...y,...b])_(t,"active","inactive")},E=(t,e,n,r)=>{var i;for(let t of v)null===(i=t.brush)||void 0===i||i.remove();let a=new Set;for(let i of y){let{min:o,max:l}=i.getLocalBounds(),[s,c]=o,[u,f]=l;!function(t,e){let[n,r,i,a]=t,[o,l,s,c]=e;return!(o>i||sa||c{for(let t of y)_(t,"inactive");for(let t of k.values())t.remove();k.clear()},R=(e,n,r,i)=>{let a=t=>{let e=t.cloneNode();return e.__data__=t.__data__,t.parentNode.appendChild(e),k.set(t,e),e},o=new nN.UL({style:{x:e+M,y:n+S,width:r-e,height:i-n}});for(let e of(t.appendChild(o),y)){let t=k.get(e)||a(e);t.style.clipPath=o,w(e,"inactive"),w(t,"active")}},T=sP(t,Object.assign(Object.assign({},O),{extent:l||[0,0,C,j],brushRegion:o,reverse:s,selectedHandles:r,brushended:t=>{let e=f?P:A;t&&g.emit("brush:remove",{nativeEvent:!0}),e()},brushed:(t,e,n,r,i)=>{let a=oU(t,e,n,r,c,u);i&&g.emit("brush:highlight",{nativeEvent:!0,data:{selection:a}});let o=f?R:E;o(t,e,n,r)},brushcreated:(t,e,n,r,i)=>{let a=oU(t,e,n,r,c,u);g.emit("brush:end",Object.assign(Object.assign({},i),{nativeEvent:!0,data:{selection:a}}))},brushupdated:(t,e,n,r,i)=>{let a=oU(t,e,n,r,c,u);g.emit("brush:end",Object.assign(Object.assign({},i),{nativeEvent:!0,data:{selection:a}}))},brushstarted:t=>{g.emit("brush:start",t)}})),L=t=>{let{nativeEvent:e,data:n}=t;if(e)return;let{selection:r}=n,[i,a,o,l]=function(t,e,n){let{x:r,y:i}=e,[a,o]=t,l=oQ(a,r),s=oQ(o,i),c=[l[0],s[0]],u=[l[1],s[1]],[f,d]=n.map(c),[h,p]=n.map(u);return[f,d,h,p]}(r,c,u);T.move(i,a,o,l,!1)};g.on("brush:highlight",L);let B=function(){let{nativeEvent:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t||T.remove(!1)};g.on("brush:remove",B);let Z=T.destroy.bind(T);return T.destroy=()=>{g.off("brush:highlight",L),g.off("brush:remove",B),Z()},T}function sL(t){var{facet:e,brushKey:n}=t,r=sS(t,["facet","brushKey"]);return(t,i,a)=>{let{container:o,view:l,options:s}=t,c=lC(o),u={maskFill:"#777",maskFillOpacity:"0.3",maskStroke:"#fff",reverse:!1},f=["active",["inactive",{opacity:.5}]],{scale:d,coordinate:h}=l;if(e){let e=c.getBounds(),n=e.min[0],o=e.min[1],l=e.max[0],s=e.max[1];return sT(c.parentNode.parentNode,Object.assign(Object.assign({elements:()=>l_(t,i),datum:lP(lk(t,i).map(t=>t.view)),brushRegion:(t,e,n,r)=>[t,e,n,r],extent:[n,o,l,s],state:lL(lk(t,i).map(t=>t.options),f),emitter:a,scale:d,coordinate:h,selectedHandles:void 0},u),r))}let p=sT(c,Object.assign(Object.assign({elements:lw,key:t=>t.__data__.key,siblings:()=>sR(t,i,n).map(t=>lC(t.container)),datum:lP([l,...sR(t,i,n).map(t=>t.view)]),brushRegion:(t,e,n,r)=>[t,e,n,r],extent:void 0,state:lL([s,...sR(t,i,n).map(t=>t.options)],f),emitter:a,scale:d,coordinate:h,selectedHandles:void 0},u),r));return c.brush=p,()=>p.destroy()}}function sB(t,e,n,r,i){let[,a,,o]=i;return[t,a,n,o]}function sZ(t,e,n,r,i){let[a,,o]=i;return[a,e,o,r]}var sI=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let sD="axis-hot-area";function sN(t){return t.getElementsByClassName("axis")}function sz(t){return t.getElementsByClassName("axis-line")[0]}function sF(t){return t.getElementsByClassName("axis-main-group")[0].getLocalBounds()}function s$(t,e){var{cross:n,offsetX:r,offsetY:i}=e,a=sI(e,["cross","offsetX","offsetY"]);let o=sF(t),l=sz(t),[s]=l.getLocalBounds().min,[c,u]=o.min,[f,d]=o.max,h=(f-c)*2;return{brushRegion:sZ,hotZone:new nN.UL({className:sD,style:Object.assign({width:n?h/2:h,transform:"translate(".concat((n?c:s-h/2).toFixed(2),", ").concat(u,")"),height:d-u},a)}),extent:n?(t,e,n,r)=>[-1/0,e,1/0,r]:(t,e,n,i)=>[Math.floor(c-r),e,Math.ceil(f-r),i]}}function sW(t,e){var{offsetY:n,offsetX:r,cross:i=!1}=e,a=sI(e,["offsetY","offsetX","cross"]);let o=sF(t),l=sz(t),[,s]=l.getLocalBounds().min,[c,u]=o.min,[f,d]=o.max,h=d-u;return{brushRegion:sB,hotZone:new nN.UL({className:sD,style:Object.assign({width:f-c,height:i?h:2*h,transform:"translate(".concat(c,", ").concat(i?u:s-h,")")},a)}),extent:i?(t,e,n,r)=>[t,-1/0,n,1/0]:(t,e,r,i)=>[t,Math.floor(u-n),r,Math.ceil(d-n)]}}var sH=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function sG(t){var{hideX:e=!0,hideY:n=!0}=t,r=sH(t,["hideX","hideY"]);return(t,i,a)=>{let{container:o,view:l,options:s,update:c,setState:u}=t,f=lC(o),d=!1,h=!1,p=l,{scale:g,coordinate:m}=l;return function(t,e){var{filter:n,reset:r,brushRegion:i,extent:a,reverse:o,emitter:l,scale:s,coordinate:c,selection:u,series:f=!1}=e,d=sH(e,["filter","reset","brushRegion","extent","reverse","emitter","scale","coordinate","selection","series"]);let h=(0,nd.hB)(d,"mask"),{width:p,height:g}=t.getBBox(),m=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,e=null;return n=>{let{timeStamp:r}=n;return null!==e&&r-e{let{nativeEvent:e,data:r}=t;if(e)return;let{selection:i}=r;n(i,{nativeEvent:!1})};return l.on("brush:filter",b),()=>{y.destroy(),l.off("brush:filter",b),t.removeEventListener("click",v)}}(f,Object.assign(Object.assign({brushRegion:(t,e,n,r)=>[t,e,n,r],selection:(t,e,n,r)=>{let{scale:i,coordinate:a}=p;return oU(t,e,n,r,i,a)},filter:(t,r)=>{var i,o,l,f;return i=this,o=void 0,l=void 0,f=function*(){if(h)return;h=!0;let[i,o]=t;u("brushFilter",t=>{let{marks:r}=t,a=r.map(t=>E({axis:Object.assign(Object.assign({},e&&{x:{transform:[{type:"hide"}]}}),n&&{y:{transform:[{type:"hide"}]}})},t,{scale:{x:{domain:i,nice:!1},y:{domain:o,nice:!1}}}));return Object.assign(Object.assign({},s),{marks:a,clip:!0})}),a.emit("brush:filter",Object.assign(Object.assign({},r),{data:{selection:[i,o]}}));let l=yield c();p=l.view,h=!1,d=!0},new(l||(l=Promise))(function(t,e){function n(t){try{a(f.next(t))}catch(t){e(t)}}function r(t){try{a(f.throw(t))}catch(t){e(t)}}function a(e){var i;e.done?t(e.value):((i=e.value)instanceof l?i:new l(function(t){t(i)})).then(n,r)}a((f=f.apply(i,o||[])).next())})},reset:t=>{if(h||!d)return;let{scale:e}=l,{x:n,y:r}=e,i=n.getOptions().domain,o=r.getOptions().domain;a.emit("brush:filter",Object.assign(Object.assign({},t),{data:{selection:[i,o]}})),d=!1,p=l,u("brushFilter"),c()},extent:void 0,emitter:a,scale:g,coordinate:m},{maskFill:"#777",maskFillOpacity:"0.3",maskStroke:"#fff",unhighlightedOpacity:.5,reverse:!1}),r))}}var sq=function(t,e,n,r){return new(n||(n=Promise))(function(i,a){function o(t){try{s(r.next(t))}catch(t){a(t)}}function l(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(o,l)}s((r=r.apply(t,e||[])).next())})};function sY(t){return[t[0],t[t.length-1]]}function sV(t){let{initDomain:e={},className:n="slider",prefix:r="slider",setValue:i=(t,e)=>t.setValues(e),hasState:a=!1,wait:o=50,leading:l=!0,trailing:s=!1,getInitValues:c=t=>{var e;let n=null===(e=null==t?void 0:t.attributes)||void 0===e?void 0:e.values;if(0!==n[0]||1!==n[1])return n}}=t;return(t,u,f)=>{let{container:d,view:h,update:p,setState:g}=t,m=d.getElementsByClassName(n);if(!m.length)return()=>{};let y=!1,{scale:v,coordinate:b,layout:x}=h,{paddingLeft:O,paddingTop:w,paddingBottom:_,paddingRight:k}=x,{x:C,y:j}=v,M=F(b),S=t=>{let e="vertical"===t?"y":"x",n="vertical"===t?"x":"y";return M?[n,e]:[e,n]},A=new Map,P=new Set,R={x:e.x||C.getOptions().domain,y:e.y||j.getOptions().domain};for(let t of m){let{orientation:e}=t.attributes,[n,u]=S(e),d="".concat(r).concat(os(n),":filter"),h="x"===n,{ratio:m}=C.getOptions(),{ratio:b}=j.getOptions(),x=t=>{if(t.data){let{selection:e}=t.data,[n=sY(R.x),r=sY(R.y)]=e;return h?[oV(C,n,m),oV(j,r,b)]:[oV(j,r,b),oV(C,n,m)]}let{value:r}=t.detail,i=v[n],a=function(t,e,n){let[r,i]=t,a=n?t=>1-t:t=>t,o=oY(e,a(r),!0),l=oY(e,a(i),!1);return oV(e,[o,l])}(r,i,M&&"horizontal"===e),o=R[u];return[a,o]},T=lJ(e=>sq(this,void 0,void 0,function*(){let{initValue:i=!1}=e;if(y&&!i)return;y=!0;let{nativeEvent:o=!0}=e,[l,s]=x(e);if(R[n]=l,R[u]=s,o){let t=h?l:s,n=h?s:l;f.emit(d,Object.assign(Object.assign({},e),{nativeEvent:o,data:{selection:[sY(t),sY(n)]}}))}g(t,t=>Object.assign(Object.assign({},function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"x",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"y",{marks:o}=t,l=o.map(t=>{var o,l;return E({axis:{x:{transform:[{type:"hide"}]},y:{transform:[{type:"hide"}]}}},t,{scale:e,[n]:Object.assign(Object.assign({},(null===(o=t[n])||void 0===o?void 0:o[i])&&{[i]:Object.assign({preserve:!0},r&&{ratio:null})}),(null===(l=t[n])||void 0===l?void 0:l[a])&&{[a]:{preserve:!0}}),animate:!1})});return Object.assign(Object.assign({},t),{marks:l,clip:!0,animate:!1})}(t,{[n]:{domain:l,nice:!1}},r,a,n,u)),{paddingLeft:O,paddingTop:w,paddingBottom:_,paddingRight:k})),yield p(),y=!1}),o,{leading:l,trailing:s}),L=e=>{let{nativeEvent:n}=e;if(n)return;let{data:r}=e,{selection:a}=r,[o,l]=a;t.dispatchEvent(new nN.Aw("valuechange",{data:r,nativeEvent:!1}));let s=h?oQ(o,C):oQ(l,j);i(t,s)};f.on(d,L),t.addEventListener("valuechange",T),A.set(t,T),P.add([d,L]);let B=c(t);B&&t.dispatchEvent(new nN.Aw("valuechange",{detail:{value:B},nativeEvent:!1,initValue:!0}))}return p(),()=>{for(let[t,e]of A)t.removeEventListener("valuechange",e);for(let[t,e]of P)f.off(t,e)}}}let sU="g2-scrollbar";function sQ(t){return t.replace(/-(\w)/g,function(t,e){return e.toUpperCase()})}var sX=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let sK={backgroundColor:"rgba(0,0,0,0.75)",color:"#fff",width:"max-content",padding:"1px 4px",fontSize:"12px",borderRadius:"2.5px",boxShadow:"0 3px 6px -4px rgba(0,0,0,0.12), 0 6px 16px 0 rgba(0,0,0,0.08), 0 9px 28px 8px rgba(0,0,0,0.05)"};function sJ(t){return"text"===t.nodeName&&!!t.isOverflowing()}function s0(t){var{offsetX:e=8,offsetY:n=8}=t,r=sX(t,["offsetX","offsetY"]);return t=>{let{container:i}=t,[a,o]=i.getBounds().min,l=(0,nd.hB)(r,"tip"),s=new Set,c=t=>{var r;let{target:c}=t;if(!sJ(c)){t.stopPropagation();return}let{offsetX:u,offsetY:f}=t,d=u+e-a,h=f+n-o;if(c.tip){c.tip.style.x=d,c.tip.style.y=h;return}let{text:p}=c.style,g=new nN.k9({className:"poptip",style:{innerHTML:(r=Object.assign(Object.assign({},sK),l),"<".concat("div",' style="').concat(Object.entries(r).map(t=>{let[e,n]=t;return"".concat(e.replace(/([A-Z])/g,"-$1").toLowerCase(),":").concat(n)}).join(";"),'">').concat(p,"")),x:d,y:h}});i.appendChild(g),c.tip=g,s.add(g)},u=t=>{let{target:e}=t;if(!sJ(e)){t.stopPropagation();return}e.tip&&(e.tip.remove(),e.tip=null,s.delete(e.tip))};return i.addEventListener("pointerover",c),i.addEventListener("pointerout",u),()=>{i.removeEventListener("pointerover",c),i.removeEventListener("pointerout",u),s.forEach(t=>t.remove())}}}s0.props={reapplyWhenUpdate:!0};var s1=n(1935);function s2(t){return(0,s1.Z)(t)?0:oE(t)?t.length:Object.keys(t).length}var s5=function(t){return(0,M.Z)(t,"String")},s3=function(t,e,n){for(var r=0,i=s5(e)?e.split("."):e;t&&r{t(e)})}(o):function t(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[e.data.name];e.id=e.id||e.data.name,e.path=n,e.children&&e.children.forEach(r=>{r.id="".concat(e.id,"/").concat(r.data.name),r.path=[...n,r.data.name],t(r,r.path)})}(o),i?o.sum(t=>e.ignoreParentValue&&t.children?0:nS(i)(t)).sort(e.sort):o.count(),(0,cc.Z)().tile(a).size(e.size).round(e.round).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft)(o);let l=o.descendants().map(t=>Object.assign(t,{id:t.id.replace(/^\//,""),x:[t.x0,t.x1],y:[t.y0,t.y1]})),s=l.filter("function"==typeof e.layer?e.layer:t=>t.height===e.layer);return[s,l]}var cf=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let cd={breadCrumbFill:"rgba(0, 0, 0, 0.85)",breadCrumbFontSize:12,breadCrumbY:12,activeFill:"rgba(0, 0, 0, 0.5)"};var ch=function(t){return void 0===t},cp=function(t,e,n,r){return new(n||(n=Promise))(function(i,a){function o(t){try{s(r.next(t))}catch(t){a(t)}}function l(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(o,l)}s((r=r.apply(t,e||[])).next())})},cg=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let cm={pointR:6,pointStrokeWidth:1,pointStroke:"#888",pointActiveStroke:"#f5f5f5",pathStroke:"#888",pathLineDash:[3,4],labelFontSize:12,labelFill:"#888",labelStroke:"#fff",labelLineWidth:1,labelY:-6,labelX:2},cy="movePoint",cv=t=>{let e=t.target,{markType:n}=e;"line"===n&&(e.attr("_lineWidth",e.attr("lineWidth")||1),e.attr("lineWidth",e.attr("_lineWidth")+3)),"interval"===n&&(e.attr("_opacity",e.attr("opacity")||1),e.attr("opacity",.7*e.attr("_opacity")))},cb=t=>{let e=t.target,{markType:n}=e;"line"===n&&e.attr("lineWidth",e.attr("_lineWidth")),"interval"===n&&e.attr("opacity",e.attr("_opacity"))},cx=(t,e,n)=>e.map(e=>{let r=["x","color"].reduce((r,i)=>{let a=n[i];return a?e[a]===t[a]&&r:r},!0);return r?Object.assign(Object.assign({},e),t):e}),cO=t=>{let e=s3(t,["__data__","y"]),n=s3(t,["__data__","y1"]),r=n-e,{__data__:{data:i,encode:a,transform:o},childNodes:l}=t.parentNode,s=s7(o,t=>{let{type:e}=t;return"normalizeY"===e}),c=s3(a,["y","field"]),u=i[l.indexOf(t)][c];return function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return s||e?t/(1-t)/(r/(1-r))*u:t}},cw=(t,e)=>{let n=s3(t,["__data__","seriesItems",e,"0","value"]),r=s3(t,["__data__","seriesIndex",e]),{__data__:{data:i,encode:a,transform:o}}=t.parentNode,l=s7(o,t=>{let{type:e}=t;return"normalizeY"===e}),s=s3(a,["y","field"]),c=i[r][s];return t=>l?1===n?t:t/(1-t)/(n/(1-n))*c:t},c_=(t,e,n)=>{t.forEach((t,r)=>{t.attr("stroke",e[1]===r?n.activeStroke:n.stroke)})},ck=(t,e,n,r)=>{let i=new nN.y$({style:n}),a=new nN.xv({style:r});return e.appendChild(a),t.appendChild(i),[i,a]},cC=(t,e)=>{let n=s3(t,["options","range","indexOf"]);if(!n)return;let r=t.options.range.indexOf(e);return t.sortedDomain[r]},cj=(t,e,n)=>{let r=lF(t,e),i=lF(t,n),a=i/r,o=t[0]+(e[0]-t[0])*a,l=t[1]+(e[1]-t[1])*a;return[o,l]};var cM=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function cS(t){return function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;ie.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let cR=()=>t=>{let{children:e}=t;if(!Array.isArray(e))return[];let{x:n=0,y:r=0,width:i,height:a,data:o}=t;return e.map(t=>{var{data:e,x:l,y:s,width:c,height:u}=t;return Object.assign(Object.assign({},cP(t,["data","x","y","width","height"])),{data:cE(e,o),x:null!=l?l:n,y:null!=s?s:r,width:null!=c?c:i,height:null!=u?u:a})})};cR.props={};var cT=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let cL=()=>t=>{let{children:e}=t;if(!Array.isArray(e))return[];let{direction:n="row",ratio:r=e.map(()=>1),padding:i=0,data:a}=t,[o,l,s,c]="col"===n?["y","height","width","x"]:["x","width","height","y"],u=r.reduce((t,e)=>t+e),f=t[l]-i*(e.length-1),d=r.map(t=>f*(t/u)),h=[],p=t[o]||0;for(let n=0;n1?e-1:0),r=1;re.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let cI=cS(t=>{let{encode:e,data:n,scale:r,shareSize:i=!1}=t,{x:a,y:o}=e,l=(t,e)=>{var a;if(void 0===t||!i)return{};let o=(0,nZ.ZP)(n,e=>e[t]),l=(null===(a=null==r?void 0:r[e])||void 0===a?void 0:a.domain)||Array.from(o.keys()),s=l.map(t=>o.has(t)?o.get(t).length:1);return{domain:l,flex:s}};return{scale:{x:Object.assign(Object.assign({paddingOuter:0,paddingInner:.1,guide:void 0===a?null:{position:"top"}},void 0===a&&{paddingInner:0}),l(a,"x")),y:Object.assign(Object.assign({range:[0,1],paddingOuter:0,paddingInner:.1,guide:void 0===o?null:{position:"right"}},void 0===o&&{paddingInner:0}),l(o,"y"))}}}),cD=cS(t=>{let e,n,r;let{data:i,scale:a}=t,o=[t];for(;o.length;){let t=o.shift(),{children:i,encode:a={},scale:l={},legend:s={}}=t,{color:c}=a,{color:u}=l,{color:f}=s;void 0!==c&&(e=c),void 0!==u&&(n=u),void 0!==f&&(r=f),Array.isArray(i)&&o.push(...i)}let l="string"==typeof e?e:"",[s,c]=(()=>{var t;let n=null===(t=null==a?void 0:a.color)||void 0===t?void 0:t.domain;if(void 0!==n)return[n];if(void 0===e)return[void 0];let r="function"==typeof e?e:t=>t[e],o=i.map(r);return o.some(t=>"number"==typeof t)?[(0,eX.Z)(o)]:[Array.from(new Set(o)),"ordinal"]})();return{encode:{color:e},scale:{color:E({},n,{domain:s,type:c})},legend:{color:E({title:l},r)}}}),cN=cS(()=>({animate:{enterType:"fadeIn"}})),cz=cA(()=>({frame:!1,encode:{shape:"hollow"},style:{lineWidth:0}})),cF=cA(()=>({type:"cell"})),c$=cA(t=>{let{data:e}=t;return{data:{type:"inline",value:e,transform:[{type:"custom",callback:()=>{let{data:e,encode:n}=t,{x:r,y:i}=n,a=r?Array.from(new Set(e.map(t=>t[r]))):[],o=i?Array.from(new Set(e.map(t=>t[i]))):[];return(()=>{if(a.length&&o.length){let t=[];for(let e of a)for(let n of o)t.push({[r]:e,[i]:n});return t}return a.length?a.map(t=>({[r]:t})):o.length?o.map(t=>({[i]:t})):void 0})()}}]}}}),cW=cA(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cH,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:cq,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:cY,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},{data:a,encode:o,children:l,scale:s,x:c=0,y:u=0,shareData:f=!1,key:d}=t,{value:h}=a,{x:p,y:g}=o,{color:m}=s,{domain:y}=m;return{children:(t,a,o)=>{let{x:s,y:m}=a,{paddingLeft:v,paddingTop:b,marginLeft:x,marginTop:O}=o,{domain:w}=s.getOptions(),{domain:_}=m.getOptions(),k=eJ(t),C=t.map(e),j=t.map(t=>{let{x:e,y:n}=t;return[s.invert(e),m.invert(n)]}),M=j.map(t=>{let[e,n]=t;return t=>{let{[p]:r,[g]:i}=t;return(void 0===p||r===e)&&(void 0===g||i===n)}}),S=M.map(t=>h.filter(t)),A=f?(0,aE.Z)(S,t=>t.length):void 0,P=j.map(t=>{let[e,n]=t;return{columnField:p,columnIndex:w.indexOf(e),columnValue:e,columnValuesLength:w.length,rowField:g,rowIndex:_.indexOf(n),rowValue:n,rowValuesLength:_.length}}),R=P.map(t=>Array.isArray(l)?l:[l(t)].flat(1));return k.flatMap(t=>{let[e,a,o,l]=C[t],s=P[t],f=S[t],m=R[t];return m.map(m=>{var w,_,{scale:k,key:C,facet:j=!0,axis:M={},legend:S={}}=m,P=cZ(m,["scale","key","facet","axis","legend"]);let R=(null===(w=null==k?void 0:k.y)||void 0===w?void 0:w.guide)||M.y,T=(null===(_=null==k?void 0:k.x)||void 0===_?void 0:_.guide)||M.x,L=j?f:0===f.length?[]:h,B={x:cV(T,n)(s,L),y:cV(R,r)(s,L)};return Object.assign(Object.assign({key:"".concat(C,"-").concat(t),data:L,margin:0,x:e+v+c+x,y:a+b+u+O,parentKey:d,width:o,height:l,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!!L.length,dataDomain:A,scale:E({x:{tickCount:p?5:void 0},y:{tickCount:g?5:void 0}},k,{color:{domain:y}}),axis:E({},M,B),legend:!1},P),i)})})}}});function cH(t){let{points:e}=t;return tr(e)}function cG(t,e){return e.length?E({title:!1,tick:null,label:null},t):E({title:!1,tick:null,label:null,grid:null},t)}function cq(t){return(e,n)=>{let{rowIndex:r,rowValuesLength:i,columnIndex:a,columnValuesLength:o}=e;if(r!==i-1)return cG(t,n);let l=n.length?void 0:null;return E({title:a===o-1&&void 0,grid:l},t)}}function cY(t){return(e,n)=>{let{rowIndex:r,columnIndex:i}=e;if(0!==i)return cG(t,n);let a=n.length?void 0:null;return E({title:0===r&&void 0,grid:a},t)}}function cV(t,e){return"function"==typeof t?t:null===t||!1===t?()=>null:e(t)}let cU=()=>t=>{let e=cB.of(t).call(cF).call(cD).call(cN).call(cI).call(cz).call(c$).call(cW).value();return[e]};cU.props={};var cQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let cX=cS(t=>({scale:{x:{guide:null,paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}})),cK=cA(t=>{let{data:e,children:n,x:r=0,y:i=0,key:a}=t;return{children:(t,o,l)=>{let{x:s,y:c}=o,{paddingLeft:u,paddingTop:f,marginLeft:d,marginTop:h}=l,{domain:p}=s.getOptions(),{domain:g}=c.getOptions(),m=eJ(t),y=t.map(t=>{let{points:e}=t;return tr(e)}),v=t.map(t=>{let{x:e,y:n}=t;return[s.invert(e),c.invert(n)]}),b=v.map(t=>{let[e,n]=t;return{columnField:e,columnIndex:p.indexOf(e),columnValue:e,columnValuesLength:p.length,rowField:n,rowIndex:g.indexOf(n),rowValue:n,rowValuesLength:g.length}}),x=b.map(t=>Array.isArray(n)?n:[n(t)].flat(1));return m.flatMap(t=>{let[n,o,l,s]=y[t],[c,p]=v[t],g=b[t],m=x[t];return m.map(m=>{var y,v;let{scale:b,key:x,encode:O,axis:w,interaction:_}=m,k=cQ(m,["scale","key","encode","axis","interaction"]),C=null===(y=null==b?void 0:b.y)||void 0===y?void 0:y.guide,j=null===(v=null==b?void 0:b.x)||void 0===v?void 0:v.guide,M={x:("function"==typeof j?j:null===j?()=>null:(t,e)=>{let{rowIndex:n,rowValuesLength:r}=t;if(n!==r-1)return cG(j,e)})(g,e),y:("function"==typeof C?C:null===C?()=>null:(t,e)=>{let{columnIndex:n}=t;if(0!==n)return cG(C,e)})(g,e)};return Object.assign({data:e,parentKey:a,key:"".concat(x,"-").concat(t),x:n+u+r+d,y:o+f+i+h,width:l,height:s,margin:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!0,scale:E({x:{facet:!1},y:{facet:!1}},b),axis:E({x:{tickCount:5},y:{tickCount:5}},w,M),legend:!1,encode:E({},O,{x:c,y:p}),interaction:E({},_,{legendFilter:!1})},k)})})}}}),cJ=cA(t=>{let{encode:e}=t,n=cQ(t,["encode"]),{position:r=[],x:i=r,y:a=[...r].reverse()}=e,o=cQ(e,["position","x","y"]),l=[];for(let t of[i].flat(1))for(let e of[a].flat(1))l.push({$x:t,$y:e});return Object.assign(Object.assign({},n),{data:l,encode:Object.assign(Object.assign({},o),{x:"$x",y:"$y"}),scale:Object.assign(Object.assign({},1===[i].flat(1).length&&{x:{paddingInner:0}}),1===[a].flat(1).length&&{y:{paddingInner:0}})})});var c0=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let c1=cS(t=>({scale:{x:{guide:{type:"axisArc"},paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}})),c2=cS(t=>({coordinate:{type:"polar"}})),c5=t=>{let{encode:e}=t,n=c0(t,["encode"]),{position:r}=e;return Object.assign(Object.assign({},n),{encode:{x:r}})};function c3(t){return t=>null}function c4(t){let{points:e}=t,[n,r,i,a]=e,o=J(n,a),l=X(n,a),s=X(r,i),c=tn(l,s),u=1/Math.sin(c/2),f=o/(1+u),d=f*Math.sqrt(2),[h,p]=i,g=te(l),m=g+c/2,y=f*u,v=h+y*Math.sin(m),b=p-y*Math.cos(m);return[v-d/2,b-d/2,d,d]}let c6=()=>t=>{let{children:e=[],duration:n=1e3,iterationCount:r=1,direction:i="normal",easing:a="ease-in-out-sine"}=t,o=e.length;if(!Array.isArray(e)||0===o)return[];let{key:l}=e[0],s=e.map(t=>Object.assign(Object.assign({},t),{key:l})).map(t=>(function(t,e,n){let r=[t];for(;r.length;){let t=r.pop();t.animate=E({enter:{duration:e},update:{duration:e,easing:n,type:"morphing",fill:"both"},exit:{type:"fadeOut",duration:e}},t.animate||{});let{children:i}=t;Array.isArray(i)&&r.push(...i)}return t})(t,n,a));return function*(){let t,e=0;for(;"infinite"===r||e{var e;return[t,null===(e=B(r,t))||void 0===e?void 0:e[0]]}).filter(t=>{let[,e]=t;return(0,nd.ri)(e)});return Array.from((0,nZ.ZP)(e,t=>i.map(e=>{let[,n]=e;return n[t]}).join("-")).values())}function ut(t){return Array.isArray(t)?(e,n,r)=>(n,r)=>t.reduce((t,i)=>0!==t?t:(0,c8.Z)(e[n][i],e[r][i]),0):"function"==typeof t?(e,n,r)=>ul(n=>t(e[n])):"series"===t?ur:"value"===t?ui:"sum"===t?ua:"maxIndex"===t?uo:()=>null}function ue(t,e){for(let n of t)n.sort(e)}function un(t,e){return(null==e?void 0:e.domain)||Array.from(new Set(t))}function ur(t,e,n){return ul(t=>n[t])}function ui(t,e,n){return ul(t=>e[t])}function ua(t,e,n){let r=eJ(t),i=Array.from((0,nZ.ZP)(r,t=>n[+t]).entries()),a=new Map(i.map(t=>{let[n,r]=t;return[n,r.reduce((t,n)=>t+ +e[n])]}));return ul(t=>a.get(n[t]))}function uo(t,e,n){let r=eJ(t),i=Array.from((0,nZ.ZP)(r,t=>n[+t]).entries()),a=new Map(i.map(t=>{let[n,r]=t;return[n,(0,c7.Z)(r,t=>e[t])]}));return ul(t=>a.get(n[t]))}function ul(t){return(e,n)=>(0,c8.Z)(t(e),t(n))}let us=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{groupBy:e="x",orderBy:n=null,reverse:r=!1,y:i="y",y1:a="y1",series:o=!0}=t;return(t,l)=>{let{data:s,encode:c,style:u={}}=l,[f,d]=B(c,"y"),[h,p]=B(c,"y1"),[g]=o?Z(c,"series","color"):B(c,"color"),m=c9(e,t,l),y=ut(n),v=y(s,f,g);v&&ue(m,v);let b=Array(t.length),x=Array(t.length),O=Array(t.length),w=[],_=[];for(let t of m){r&&t.reverse();let e=h?+h[t[0]]:0,n=[],i=[];for(let r of t){let t=O[r]=+f[r]-e;t<0?i.push(r):t>=0&&n.push(r)}let a=n.length>0?n:i,o=i.length>0?i:n,l=n.length-1,s=0;for(;l>0&&0===f[a[l]];)l--;for(;s0?u=b[t]=(x[t]=u)+e:b[t]=x[t]=u}}let k=new Set(w),C=new Set(_),j="y"===i?b:x,M="y"===a?b:x;return[t,E({},l,{encode:{y0:R(f,d),y:P(j,d),y1:P(M,p)},style:Object.assign({first:(t,e)=>k.has(e),last:(t,e)=>C.has(e)},u)})]}};us.props={};var uc=n(52362),uu=n(87568),uf=n(76132),ud=n(90155),uh=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function up(t){return e=>null===e?t:"".concat(t," of ").concat(e)}function ug(){let t=up("mean");return[(t,e)=>(0,l3.Z)(t,t=>+e[t]),t]}function um(){let t=up("median");return[(t,e)=>(0,uf.Z)(t,t=>+e[t]),t]}function uy(){let t=up("max");return[(t,e)=>(0,aE.Z)(t,t=>+e[t]),t]}function uv(){let t=up("min");return[(t,e)=>(0,aA.Z)(t,t=>+e[t]),t]}function ub(){let t=up("count");return[(t,e)=>t.length,t]}function ux(){let t=up("sum");return[(t,e)=>(0,ud.Z)(t,t=>+e[t]),t]}function uO(){let t=up("first");return[(t,e)=>e[t[0]],t]}function uw(){let t=up("last");return[(t,e)=>e[t[t.length-1]],t]}let u_=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{groupBy:e}=t,n=uh(t,["groupBy"]);return(t,r)=>{let{data:i,encode:a}=r,o=e(t,r);if(!o)return[t,r];let l=(t,e)=>{if(t)return t;let{from:n}=e;if(!n)return t;let[,r]=B(a,n);return r},s=Object.entries(n).map(t=>{let[e,n]=t,[r,s]=function(t){if("function"==typeof t)return[t,null];let e={mean:ug,max:uy,count:ub,first:uO,last:uw,sum:ux,min:uv,median:um}[t];if(!e)throw Error("Unknown reducer: ".concat(t,"."));return e()}(n),[c,u]=B(a,e),f=l(u,n),d=o.map(t=>r(t,null!=c?c:i));return[e,Object.assign(Object.assign({},function(t,e){let n=P(t,e);return Object.assign(Object.assign({},n),{constant:!1})}(d,(null==s?void 0:s(f))||f)),{aggregate:!0})]}),c=Object.keys(a).map(t=>{let[e,n]=B(a,t),r=o.map(t=>e[t[0]]);return[t,P(r,n)]}),u=o.map(t=>i[t[0]]),f=eJ(o);return[f,E({},r,{data:u,encode:Object.fromEntries([...c,...s])})]}};u_.props={};var uk=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let uC="thresholds",uj=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{groupChannels:e=["color"],binChannels:n=["x","y"]}=t,r=uk(t,["groupChannels","binChannels"]),i={};return u_(Object.assign(Object.assign(Object.assign({},Object.fromEntries(Object.entries(r).filter(t=>{let[e]=t;return!e.startsWith(uC)}))),Object.fromEntries(n.flatMap(t=>{let e=e=>{let[n]=e;return+i[t].get(n).split(",")[1]};return e.from=t,[[t,e=>{let[n]=e;return+i[t].get(n).split(",")[0]}],["".concat(t,"1"),e]]}))),{groupBy:(t,a)=>{let{encode:o}=a,l=n.map(t=>{let[e]=B(o,t);return e}),s=(0,nd.hB)(r,uC),c=t.filter(t=>l.every(e=>(0,nd.ri)(e[t]))),u=[...e.map(t=>{let[e]=B(o,t);return e}).filter(nd.ri).map(t=>e=>t[e]),...n.map((t,e)=>{let n=l[e],r=s[t]||function(t){let[e,n]=(0,eX.Z)(t);return Math.min(200,(0,uc.Z)(t,e,n))}(n),a=(0,uu.Z)().thresholds(r).value(t=>+n[t])(c),o=new Map(a.flatMap(t=>{let{x0:e,x1:n}=t,r="".concat(e,",").concat(n);return t.map(t=>[t,r])}));return i[t]=o,t=>o.get(t)})];return Array.from((0,nZ.ZP)(c,t=>u.map(e=>e(t)).join("-")).values())}}))};uj.props={};let uM=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{thresholds:e}=t;return uj(Object.assign(Object.assign({},t),{thresholdsX:e,groupChannels:["color"],binChannels:["x"]}))};uM.props={};var uS=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let uA=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{groupBy:e="x",reverse:n=!1,orderBy:r,padding:i}=t;return uS(t,["groupBy","reverse","orderBy","padding"]),(t,a)=>{let{data:o,encode:l,scale:s}=a,{series:c}=s,[u]=B(l,"y"),[f]=Z(l,"series","color"),d=un(f,c),h=c9(e,t,a),p=ut(r),g=p(o,u,f);g&&ue(h,g);let m=Array(t.length);for(let t of h){n&&t.reverse();for(let e=0;e0&&void 0!==arguments[0]?arguments[0]:{},{padding:e=0,paddingX:n=e,paddingY:r=e,random:i=Math.random}=t;return(t,e)=>{let{encode:a,scale:o}=e,{x:l,y:s}=o,[c]=B(a,"x"),[u]=B(a,"y"),f=uE(c,l,n),d=uE(u,s,r),h=t.map(()=>(function(t,e,n){return e*(1-t)+n*t})(i(),...d)),p=t.map(()=>(function(t,e,n){return e*(1-t)+n*t})(i(),...f));return[t,E({scale:{x:{padding:.5},y:{padding:.5}}},e,{encode:{dy:P(h),dx:P(p)}})]}};uP.props={};let uR=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{padding:e=0,random:n=Math.random}=t;return(t,r)=>{let{encode:i,scale:a}=r,{x:o}=a,[l]=B(i,"x"),s=uE(l,o,e),c=t.map(()=>(function(t,e,n){return e*(1-t)+n*t})(n(),...s));return[t,E({scale:{x:{padding:.5}}},r,{encode:{dx:P(c)}})]}};uR.props={};let uT=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{padding:e=0,random:n=Math.random}=t;return(t,r)=>{let{encode:i,scale:a}=r,{y:o}=a,[l]=B(i,"y"),s=uE(l,o,e),c=t.map(()=>(function(t,e,n){return e*(1-t)+n*t})(n(),...s));return[t,E({scale:{y:{padding:.5}}},r,{encode:{dy:P(c)}})]}};uT.props={};var uL=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let uB=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{groupBy:e="x"}=t;return(t,n)=>{let{encode:r}=n,{x:i}=r,a=uL(r,["x"]),o=Object.entries(a).filter(t=>{let[e]=t;return e.startsWith("y")}).map(t=>{let[e]=t;return[e,B(r,e)[0]]}),l=o.map(e=>{let[n]=e;return[n,Array(t.length)]}),s=c9(e,t,n),c=Array(s.length);for(let t=0;to.map(e=>{let[,n]=e;return+n[t]})),[r,i]=(0,eX.Z)(n);c[t]=(r+i)/2}let u=Math.max(...c);for(let t=0;t{let[e,n]=t;return[e,P(n,B(r,e)[1])]}))})]}};uB.props={};let uZ=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{groupBy:e="x",series:n=!0}=t;return(t,r)=>{let{encode:i}=r,[a]=B(i,"y"),[o,l]=B(i,"y1"),[s]=n?Z(i,"series","color"):B(i,"color"),c=c9(e,t,r),u=Array(t.length);for(let t of c){let e=t.map(t=>+a[t]);for(let n=0;ne!==n));u[r]=a[r]>i?i:a[r]}}return[t,E({},r,{encode:{y1:P(u,l)}})]}};uZ.props={};let uI=t=>{let{groupBy:e=["x"],reducer:n=(t,e)=>e[t[0]],orderBy:r=null,reverse:i=!1,duration:a}=t;return(t,o)=>{let{encode:l}=o,s=Array.isArray(e)?e:[e],c=s.map(t=>[t,B(l,t)[0]]);if(0===c.length)return[t,o];let u=[t];for(let[,t]of c){let e=[];for(let n of u){let r=Array.from((0,nZ.ZP)(n,e=>t[e]).values());e.push(...r)}u=e}if(r){let[t]=B(l,r);t&&u.sort((e,r)=>n(e,t)-n(r,t)),i&&u.reverse()}let f=(a||3e3)/u.length,[d]=a?[L(t,f)]:Z(l,"enterDuration",L(t,f)),[h]=Z(l,"enterDelay",L(t,0)),p=Array(t.length);for(let t=0,e=0;t+d[t]);for(let t of n)p[t]=+h[t]+e;e+=r}return[t,E({},o,{encode:{enterDuration:T(d),enterDelay:T(p)}})]}};uI.props={};var uD=n(93209),uN=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let uz=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{groupBy:e="x",basis:n="max"}=t;return(t,r)=>{let{encode:i,tooltip:a}=r,{x:o}=i,l=uN(i,["x"]),s=Object.entries(l).filter(t=>{let[e]=t;return e.startsWith("y")}).map(t=>{let[e]=t;return[e,B(i,e)[0]]}),[,c]=s.find(t=>{let[e]=t;return"y"===e}),u=s.map(e=>{let[n]=e;return[n,Array(t.length)]}),f=c9(e,t,r),d="function"==typeof n?n:({min:(t,e)=>(0,aA.Z)(t,t=>e[+t]),max:(t,e)=>(0,aE.Z)(t,t=>e[+t]),first:(t,e)=>e[t[0]],last:(t,e)=>e[t[t.length-1]],mean:(t,e)=>(0,l3.Z)(t,t=>e[+t]),median:(t,e)=>(0,uf.Z)(t,t=>e[+t]),sum:(t,e)=>(0,ud.Z)(t,t=>e[+t]),deviation:(t,e)=>(0,uD.Z)(t,t=>e[+t])})[n]||aE.Z;for(let t of f){let e=d(t,c);for(let n of t)for(let t=0;t{let[e,n]=t;return[e,P(n,B(i,e)[1])]}))},!h&&i.y0&&{tooltip:{items:[{channel:"y0"}]}}))]}};function uF(t,e){return[t[0]]}function u$(t,e){let n=t.length-1;return[t[n]]}function uW(t,e){let n=(0,c7.Z)(t,t=>e[t]);return[t[n]]}function uH(t,e){let n=(0,l5.Z)(t,t=>e[t]);return[t[n]]}uz.props={};let uG=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{groupBy:e="series",channel:n,selector:r}=t;return(t,i)=>{let{encode:a}=i,o=c9(e,t,i),[l]=B(a,n),s="function"==typeof r?r:({first:uF,last:u$,max:uW,min:uH})[r]||uF;return[o.flatMap(t=>s(t,l)),i]}};uG.props={};var uq=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let uY=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{selector:e}=t,n=uq(t,["selector"]);return uG(Object.assign({channel:"x",selector:e},n))};uY.props={};var uV=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let uU=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{selector:e}=t,n=uV(t,["selector"]);return uG(Object.assign({channel:"y",selector:e},n))};uU.props={};var uQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let uX=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{channels:e=["x","y"]}=t,n=uQ(t,["channels"]);return u_(Object.assign(Object.assign({},n),{groupBy:(t,n)=>c9(e,t,n)}))};uX.props={};let uK=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return uX(Object.assign(Object.assign({},t),{channels:["x","color","series"]}))};uK.props={};let uJ=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return uX(Object.assign(Object.assign({},t),{channels:["y","color","series"]}))};uJ.props={};let u0=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return uX(Object.assign(Object.assign({},t),{channels:["color"]}))};u0.props={};var u1=n(28085),u2=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let u5=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{reverse:e=!1,slice:n,channel:r,ordinal:i=!0}=t,a=u2(t,["reverse","slice","channel","ordinal"]);return(t,o)=>i?function(t,e,n){var r;let{reverse:i,slice:a,channel:o}=n,l=u2(n,["reverse","slice","channel"]),{encode:s,scale:c={}}=e,u=null===(r=c[o])||void 0===r?void 0:r.domain,[f]=B(s,o),d=function(t,e,n){let{by:r=t,reducer:i="max"}=e,[a]=B(n,r);if("function"==typeof i)return t=>i(t,a);if("max"===i)return t=>(0,aE.Z)(t,t=>+a[t]);if("min"===i)return t=>(0,aA.Z)(t,t=>+a[t]);if("sum"===i)return t=>(0,ud.Z)(t,t=>+a[t]);if("median"===i)return t=>(0,uf.Z)(t,t=>+a[t]);if("mean"===i)return t=>(0,l3.Z)(t,t=>+a[t]);if("first"===i)return t=>a[t[0]];if("last"===i)return t=>a[t[t.length-1]];throw Error("Unknown reducer: ".concat(i))}(o,l,s),h=function(t,e,n){if(!Array.isArray(n))return t;let r=new Set(n);return t.filter(t=>r.has(e[t]))}(t,f,u),p=(0,u1.Z)(h,d,t=>f[t]);i&&p.reverse();let g=a?p.slice(..."number"==typeof a?[0,a]:a):p;return[t,E(e,{scale:{[o]:{domain:g}}})]}(t,o,Object.assign({reverse:e,slice:n,channel:r},a)):function(t,e,n){let{reverse:r,channel:i}=n,{encode:a}=e,[o]=B(a,i),l=(0,oG.Z)(t,t=>o[t]);return r&&l.reverse(),[l,e]}(t,o,Object.assign({reverse:e,slice:n,channel:r},a))};u5.props={};let u3=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u5(Object.assign(Object.assign({},t),{channel:"x"}))};u3.props={};let u4=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u5(Object.assign(Object.assign({},t),{channel:"y"}))};u4.props={};let u6=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u5(Object.assign(Object.assign({},t),{channel:"color"}))};u6.props={};let u8=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{field:e,channel:n="y",reducer:r="sum"}=t;return(t,i)=>{let{data:a,encode:o}=i,[l]=B(o,"x"),s=e?"string"==typeof e?a.map(t=>t[e]):a.map(e):B(o,n)[0],c=function(t,e){if("function"==typeof t)return n=>t(n,e);if("sum"===t)return t=>(0,ud.Z)(t,t=>+e[t]);throw Error("Unknown reducer: ".concat(t))}(r,s),u=(0,nZ.Q3)(t,c,t=>l[t]).map(t=>t[1]);return[t,E({},i,{scale:{x:{flex:u}}})]}};u8.props={};let u7=t=>(e,n)=>[e,E({},n,{modifier:function(t){let{padding:e=0,direction:n="col"}=t;return(t,r,i)=>{let a=t.length;if(0===a)return[];let{innerWidth:o,innerHeight:l}=i,s=Math.ceil(Math.sqrt(r/(l/o))),c=o/s,u=Math.ceil(r/s),f=u*c;for(;f>l;)s+=1,c=o/s,f=(u=Math.ceil(r/s))*c;let d=l-u*c,h=u<=1?0:d/(u-1),[p,g]=u<=1?[(o-a*c)/(a-1),(l-c)/2]:[0,0];return t.map((t,r)=>{let[i,a,o,l]=tr(t),f="col"===n?r%s:Math.floor(r/u),m="col"===n?Math.floor(r/s):r%u,y=f*c,v=(u-m-1)*c+d,b=(c-e)/o,x=(c-e)/l;return"translate(".concat(y-i+p*f+.5*e,", ").concat(v-a-h*m-g+.5*e,") scale(").concat(b,", ").concat(x,")")})}}(t),axis:!1})];u7.props={};var u9=n(80091);function ft(t,e,n,r){let i,a,o;let l=t.length;if(r>=l||0===r)return t;let s=n=>1*e[t[n]],c=e=>1*n[t[e]],u=[],f=(l-2)/(r-2),d=0;u.push(d);for(let t=0;ti&&(i=a,o=g);u.push(o),d=o}return u.push(l-1),u.map(e=>t[e])}let fe=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{strategy:e="median",thresholds:n=2e3,groupBy:r=["series","color"]}=t,i=function(t){if("function"==typeof t)return t;if("lttb"===t)return ft;let e={first:t=>[t[0]],last:t=>[t[t.length-1]],min:(t,e,n)=>[t[(0,l5.Z)(t,t=>n[t])]],max:(t,e,n)=>[t[(0,c7.Z)(t,t=>n[t])]],median:(t,e,n)=>[t[(0,u9.medianIndex)(t,t=>n[t])]]},n=e[t]||e.median;return(t,e,r,i)=>{let a=Math.max(1,Math.floor(t.length/i)),o=function(t,e){let n=t.length,r=[],i=0;for(;in(t,e,r))}}(e);return(t,e)=>{let{encode:a}=e,o=c9(r,t,e),[l]=B(a,"x"),[s]=B(a,"y");return[o.flatMap(t=>i(t,l,s,n)),e]}};fe.props={};let fn=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e,n)=>{let{encode:r,data:i}=n,a=Object.entries(t).map(t=>{let[e,n]=t,[i]=B(r,e);if(!i)return null;let[a,o=!0]="object"==typeof n?[n.value,n.ordinal]:[n,!0];if("function"==typeof a)return t=>a(i[t]);if(o){let t=Array.isArray(a)?a:[a];return 0===t.length?null:e=>t.includes(i[e])}{let[t,e]=a;return n=>i[n]>=t&&i[n]<=e}}).filter(nd.ri);if(0===a.length)return[e,n];let o=e.filter(t=>a.every(e=>e(t))),l=o.map((t,e)=>e),s=Object.entries(r).map(t=>{let[e,n]=t;return[e,Object.assign(Object.assign({},n),{value:l.map(t=>n.value[o[t]]).filter(t=>void 0!==t)})]});return[l,E({},n,{encode:Object.fromEntries(s),data:o.map(t=>i[t])})]}};fn.props={};var fr=n(42132),fi=n(6586);let fa=t=>{let{value:e,format:n=e.split(".").pop(),delimiter:r=",",autoType:i=!0}=t;return()=>{var t,a,o,l;return t=void 0,a=void 0,o=void 0,l=function*(){let t=yield fetch(e);if("csv"===n){let e=yield t.text();return(0,fr.Z)(r).parse(e,i?fi.Z:nd.yR)}if("json"===n)return yield t.json();throw Error("Unknown format: ".concat(n,"."))},new(o||(o=Promise))(function(e,n){function r(t){try{s(l.next(t))}catch(t){n(t)}}function i(t){try{s(l.throw(t))}catch(t){n(t)}}function s(t){var n;t.done?e(t.value):((n=t.value)instanceof o?n:new o(function(t){t(n)})).then(r,i)}s((l=l.apply(t,a||[])).next())})}};fa.props={};let fo=t=>{let{value:e}=t;return()=>e};fo.props={};let fl=t=>{let{fields:e=[]}=t,n=e.map(t=>{if(Array.isArray(t)){let[e,n=!0]=t;return[e,n]}return[t,!0]});return t=>[...t].sort((t,e)=>n.reduce((n,r)=>{let[i,a=!0]=r;return 0!==n?n:a?t[i]e[i]?-1:+(t[i]!==e[i])},0))};fl.props={};let fs=t=>{let{callback:e}=t;return t=>Array.isArray(t)?[...t].sort(e):t};function fc(t){return null!=t&&!Number.isNaN(t)}fs.props={};let fu=t=>{let{callback:e=fc}=t;return t=>t.filter(e)};fu.props={};let ff=t=>{let{fields:e}=t;return t=>t.map(t=>(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.reduce((e,n)=>(n in t&&(e[n]=t[n]),e),{})})(t,e))};ff.props={};let fd=t=>e=>t&&0!==Object.keys(t).length?e.map(e=>Object.entries(e).reduce((e,n)=>{let[r,i]=n;return e[t[r]||r]=i,e},{})):e;fd.props={};let fh=t=>{let{fields:e,key:n="key",value:r="value"}=t;return t=>e&&0!==Object.keys(e).length?t.flatMap(t=>e.map(e=>Object.assign(Object.assign({},t),{[n]:e,[r]:t[e]}))):t};fh.props={};let fp=t=>{let{start:e,end:n}=t;return t=>t.slice(e,n)};fp.props={};let fg=t=>{let{callback:e=nd.yR}=t;return t=>e(t)};fg.props={};let fm=t=>{let{callback:e=nd.yR}=t;return t=>Array.isArray(t)?t.map(e):t};function fy(t){return"string"==typeof t?e=>e[t]:t}fm.props={};let fv=t=>{let{join:e,on:n,select:r=[],as:i=r,unknown:a=NaN}=t,[o,l]=n,s=fy(l),c=fy(o),u=(0,nZ.jJ)(e,t=>{let[e]=t;return e},t=>s(t));return t=>t.map(t=>{let e=u.get(c(t));return Object.assign(Object.assign({},t),r.reduce((t,n,r)=>(t[i[r]]=e?e[n]:a,t),{}))})};fv.props={};var fb=n(53843),fx=n.n(fb);let fO=t=>{let{field:e,groupBy:n,as:r=["y","size"],min:i,max:a,size:o=10,width:l}=t,[s,c]=r;return t=>{let r=Array.from((0,nZ.ZP)(t,t=>n.map(e=>t[e]).join("-")).values());return r.map(t=>{let n=fx().create(t.map(t=>t[e]),{min:i,max:a,size:o,width:l}),r=n.map(t=>t.x),u=n.map(t=>t.y);return Object.assign(Object.assign({},t[0]),{[s]:r,[c]:u})})}};fO.props={};let fw=()=>t=>(console.log("G2 data section:",t),t);fw.props={};let f_=Math.PI/180;function fk(t){return t.text}function fC(){return"serif"}function fj(){return"normal"}function fM(t){return t.value}function fS(){return 90*~~(2*Math.random())}function fA(){return 1}function fE(){}function fP(t){let e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function fR(t){let e=[],n=-1;for(;++ne.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let fZ={fontSize:[20,60],font:"Impact",padding:2,rotate:function(){return(~~(6*Math.random())-3)*30}};function fI(t){return new Promise((e,n)=>{if(t instanceof HTMLImageElement){e(t);return}if("string"==typeof t){let r=new Image;r.crossOrigin="anonymous",r.src=t,r.onload=()=>e(r),r.onerror=()=>{console.error("'image ".concat(t," load failed !!!'")),n()};return}n()})}let fD=t=>e=>{var n,r,i,a;return n=void 0,r=void 0,i=void 0,a=function*(){let n=Object.assign({},fZ,t),r=function(){let t=[256,256],e=fk,n=fC,r=fM,i=fj,a=fS,o=fA,l=fP,s=Math.random,c=fE,u=[],f=null,d=1/0,h={};return h.start=function(){let[p,g]=t,m=function(t){t.width=t.height=1;let e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=2048/e,t.height=2048/e;let n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",n.textBaseline="middle",{context:n,ratio:e}}(document.createElement("canvas")),y=h.board?h.board:fR((t[0]>>5)*t[1]),v=u.length,b=[],x=u.map(function(t,l,s){return t.text=e.call(this,t,l,s),t.font=n.call(this,t,l,s),t.style=fj.call(this,t,l,s),t.weight=i.call(this,t,l,s),t.rotate=a.call(this,t,l,s),t.size=~~r.call(this,t,l,s),t.padding=o.call(this,t,l,s),t}).sort(function(t,e){return e.size-t.size}),O=-1,w=h.board?[{x:0,y:0},{x:p,y:g}]:void 0;function _(){let e=Date.now();for(;Date.now()-e>1,e.y=g*(s()+.5)>>1,function(t,e,n,r){if(e.sprite)return;let i=t.context,a=t.ratio;i.clearRect(0,0,2048/a,2048/a);let o=0,l=0,s=0,c=n.length;for(--r;++r>5<<5,c=~~Math.max(Math.abs(a+o),Math.abs(a-o))}else t=t+31>>5<<5;if(c>s&&(s=c),o+t>=2048&&(o=0,l+=s,s=0),l+c>=2048)break;i.translate((o+(t>>1))/a,(l+(c>>1))/a),e.rotate&&i.rotate(e.rotate*f_),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=t,e.height=c,e.xoff=o,e.yoff=l,e.x1=t>>1,e.y1=c>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,o+=t}let u=i.getImageData(0,0,2048/a,2048/a).data,f=[];for(;--r>=0;){if(!(e=n[r]).hasText)continue;let t=e.width,i=t>>5,a=e.y1-e.y0;for(let t=0;t>5),r=u[(l+n)*2048+(o+e)<<2]?1<<31-e%32:0;f[t]|=r,s|=r}s?c=n:(e.y0++,a--,n--,l++)}e.y1=e.y0+c,e.sprite=f.slice(0,(e.y1-e.y0)*i)}}(m,e,x,O),e.hasText&&function(e,n,r){let i=n.x,a=n.y,o=Math.sqrt(t[0]*t[0]+t[1]*t[1]),c=l(t),u=.5>s()?1:-1,f,d=-u,h,p;for(;(f=c(d+=u))&&!(Math.min(Math.abs(h=~~f[0]),Math.abs(p=~~f[1]))>=o);)if(n.x=i+h,n.y=a+p,!(n.x+n.x0<0)&&!(n.y+n.y0<0)&&!(n.x+n.x1>t[0])&&!(n.y+n.y1>t[1])&&(!r||!function(t,e,n){n>>=5;let r=t.sprite,i=t.width>>5,a=t.x-(i<<4),o=127&a,l=32-o,s=t.y1-t.y0,c=(t.y+t.y0)*n+(a>>5),u;for(let t=0;t>>o:0))&e[c+n])return!0;c+=n}return!1}(n,e,t[0]))&&(!r||n.x+n.x1>r[0].x&&n.x+n.x0r[0].y&&n.y+n.y0>5,a=t[0]>>5,o=n.x-(i<<4),l=127&o,s=32-l,c=n.y1-n.y0,u,f=(n.y+n.y0)*a+(o>>5);for(let t=0;t>>l:0);f+=a}return delete n.sprite,!0}return!1}(y,e,w)&&(c.call(null,"word",{cloud:h,word:e}),b.push(e),w?h.hasImage||function(t,e){let n=t[0],r=t[1];e.x+e.x0r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}(w,e):w=[{x:e.x+e.x0,y:e.y+e.y0},{x:e.x+e.x1,y:e.y+e.y1}],e.x-=t[0]>>1,e.y-=t[1]>>1)}h._tags=b,h._bounds=w,O>=v&&(h.stop(),c.call(null,"end",{cloud:h,words:b,bounds:w}))}return f&&clearInterval(f),f=setInterval(_,0),_(),h},h.stop=function(){return f&&(clearInterval(f),f=null),h},h.createMask=e=>{let n=document.createElement("canvas"),[r,i]=t;if(!r||!i)return;let a=r>>5,o=fR((r>>5)*i);n.width=r,n.height=i;let l=n.getContext("2d");l.drawImage(e,0,0,e.width,e.height,0,0,r,i);let s=l.getImageData(0,0,r,i).data;for(let t=0;t>5),i=t*r+e<<2,l=s[i]>=250&&s[i+1]>=250&&s[i+2]>=250,c=l?1<<31-e%32:0;o[n]|=c}h.board=o,h.hasImage=!0},h.timeInterval=function(t){d=null==t?1/0:t},h.words=function(t){u=t},h.size=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t=[+e[0],+e[1]]},h.text=function(t){e=fT(t)},h.font=function(t){n=fT(t)},h.fontWeight=function(t){i=fT(t)},h.rotate=function(t){a=fT(t)},h.spiral=function(t){l=fL[t]||t},h.fontSize=function(t){r=fT(t)},h.padding=function(t){o=fT(t)},h.random=function(t){s=fT(t)},h.on=function(t){c=fT(t)},h}();yield({set(t,e,i){if(void 0===n[t])return this;let a=e?e.call(null,n[t]):n[t];return i?i.call(null,a):"function"==typeof r[t]?r[t](a):r[t]=a,this},setAsync(t,e,i){var a,o,l,s;return a=this,o=void 0,l=void 0,s=function*(){if(void 0===n[t])return this;let a=e?yield e.call(null,n[t]):n[t];return i?i.call(null,a):"function"==typeof r[t]?r[t](a):r[t]=a,this},new(l||(l=Promise))(function(t,e){function n(t){try{i(s.next(t))}catch(t){e(t)}}function r(t){try{i(s.throw(t))}catch(t){e(t)}}function i(e){var i;e.done?t(e.value):((i=e.value)instanceof l?i:new l(function(t){t(i)})).then(n,r)}i((s=s.apply(a,o||[])).next())})}}).set("fontSize",t=>{let n=e.map(t=>t.value);return function(t,e){if("function"==typeof t)return t;if(Array.isArray(t)){let[n,r]=t;if(!e)return()=>(r+n)/2;let[i,a]=e;return a===i?()=>(r+n)/2:t=>{let{value:e}=t;return(r-n)/(a-i)*(e-i)+n}}return()=>t}(t,[(0,aA.Z)(n),(0,aE.Z)(n)])}).set("font").set("fontStyle").set("fontWeight").set("padding").set("rotate").set("size").set("spiral").set("timeInterval").set("random").set("text").set("on").setAsync("imageMask",fI,r.createMask),r.words([...e]);let i=r.start(),[a,o]=n.size,{_bounds:l=[{x:0,y:0},{x:a,y:o}],_tags:s,hasImage:c}=i,u=s.map(t=>{var{x:e,y:n,font:r}=t;return Object.assign(Object.assign({},fB(t,["x","y","font"])),{x:e+a/2,y:n+o/2,fontFamily:r})}),[{x:f,y:d},{x:h,y:p}]=l,g={text:"",value:0,opacity:0,fontSize:0};return u.push(Object.assign(Object.assign({},g),{x:c?0:f,y:c?0:d}),Object.assign(Object.assign({},g),{x:c?a:h,y:c?o:p})),u},new(i||(i=Promise))(function(t,e){function o(t){try{s(a.next(t))}catch(t){e(t)}}function l(t){try{s(a.throw(t))}catch(t){e(t)}}function s(e){var n;e.done?t(e.value):((n=e.value)instanceof i?n:new i(function(t){t(n)})).then(o,l)}s((a=a.apply(n,r||[])).next())})};function fN(t){let{min:e,max:n}=t;return[[e[0],e[1]],[n[0],n[1]]]}function fz(t,e){let[n,r]=t,[i,a]=e;return n>=i[0]&&n<=a[0]&&r>=i[1]&&r<=a[1]}function fF(){let t=new Map;return[e=>t.get(e),(e,n)=>t.set(e,n)]}function f$(t){let e=t/255;return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}function fW(t,e,n){return .2126*f$(t)+.7152*f$(e)+.0722*f$(n)}function fH(t,e){let{r:n,g:r,b:i}=t,{r:a,g:o,b:l}=e,s=fW(n,r,i),c=fW(a,o,l);return(Math.max(s,c)+.05)/(Math.min(s,c)+.05)}fD.props={};let fG=(t,e)=>{let[[n,r],[i,a]]=e,[[o,l],[s,c]]=t,u=0,f=0;return oi&&(u=i-s),la&&(f=a-c),[u,f]};var fq=n(30348),fY=n(70603);function fV(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if((0,nd.Qp)(t)||Array.isArray(t)&&r)return t;let i=(0,nd.hB)(t,e);return E(n,i)}function fU(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,nd.Qp)(t)||Array.isArray(t)||!fQ(t)?t:E(e,t)}function fQ(t){if(0===Object.keys(t).length)return!0;let{title:e,items:n}=t;return void 0!==e||void 0!==n}function fX(t,e){return"object"==typeof t?(0,nd.hB)(t,e):t}var fK=n(60261),fJ=n(33487),f0=n(84699),f1=n(58271),f2=n(72051),f5=n(26477),f3=n(75053),f4=n(40552),f6=n(11261),f8=n(40916),f7=n(93437),f9=n(32427),dt=n(23007),de=n(38839),dn=n(50435),dr=n(30378),di=n(17421),da=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function dl(t){let{data:e}=t;if(Array.isArray(e))return Object.assign(Object.assign({},t),{data:{value:e}});let{type:n}=e;return"graticule10"===n?Object.assign(Object.assign({},t),{data:{value:[(0,fY.e)()]}}):"sphere"===n?Object.assign(Object.assign({},t),{sphere:!0,data:{value:[{type:"Sphere"}]}}):t}function ds(t){return"geoPath"===t.type}let dc=()=>t=>{let e;let{children:n,coordinate:r={}}=t;if(!Array.isArray(n))return[];let{type:i="equalEarth"}=r,a=da(r,["type"]),o=function(t){if("function"==typeof t)return t;let e="geo".concat(os(t)),n=s[e];if(!n)throw Error("Unknown coordinate: ".concat(t));return n}(i),l=n.map(dl);return[Object.assign(Object.assign({},t),{type:"view",scale:{x:{type:"identity"},y:{type:"identity"}},axis:!1,coordinate:{type:function(){return[["custom",(t,n,r,i)=>{let s=o();!function(t,e,n,r){let{outline:i=(()=>{let t=e.filter(ds),n=t.find(t=>t.sphere);return n?{type:"Sphere"}:{type:"FeatureCollection",features:t.filter(t=>!t.sphere).flatMap(t=>t.data.value).flatMap(t=>(function(t){if(!t||!t.type)return null;let e={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featureCollection"}[t.type];return e?"geometry"===e?{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:t}]}:"feature"===e?{type:"FeatureCollection",features:[t]}:"featureCollection"===e?t:void 0:null})(t).features)}})()}=r,{size:a="fitExtent"}=r;"fitExtent"===a?function(t,e,n){let{x:r,y:i,width:a,height:o}=n;t.fitExtent([[r,i],[a,o]],e)}(t,i,n):"fitWidth"===a&&function(t,e,n){let{width:r,height:i}=n,[[a,o],[l,s]]=(0,fq.Z)(t.fitWidth(r,e)).bounds(e),c=Math.ceil(s-o),u=Math.min(Math.ceil(l-a),c),f=t.scale()*(u-1)/u,[d,h]=t.translate();t.scale(f).translate([d,h+(i-c)/2]).precision(.2)}(t,i,n)}(s,l,{x:t,y:n,width:r,height:i},a),function(t,e){var n;for(let[r,i]of Object.entries(e))null===(n=t[r])||void 0===n||n.call(t,i)}(s,a),e=(0,fq.Z)(s);let c=new eP({domain:[t,t+r]}),u=new eP({domain:[n,n+i]}),f=t=>{let e=s(t);if(!e)return[null,null];let[n,r]=e;return[c.map(n),u.map(r)]},d=t=>{if(!t)return null;let[e,n]=t,r=[c.invert(e),u.invert(n)];return s.invert(r)};return{transform:t=>f(t),untransform:t=>d(t)}}]]}},children:l.flatMap(t=>ds(t)?function(t){let{style:n,tooltip:r={}}=t;return Object.assign(Object.assign({},t),{type:"path",tooltip:fU(r,{title:"id",items:[{channel:"color"}]}),style:Object.assign(Object.assign({},n),{d:t=>e(t)||[]})})}(t):t)})]};dc.props={};var du=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let df=()=>t=>{let{type:e,data:n,scale:r,encode:i,style:a,animate:o,key:l,state:s}=t,c=du(t,["type","data","scale","encode","style","animate","key","state"]);return[Object.assign(Object.assign({type:"geoView"},c),{children:[{type:"geoPath",key:"".concat(l,"-0"),data:{value:n},scale:r,encode:i,style:a,animate:o,state:s}]})]};df.props={};var dd=n(43231),dh=n(58571),dp=n(69299),dg=n(77715),dm=n(26464),dy=n(32878),dv=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let db={joint:!0},dx={type:"link",axis:!1,legend:!1,encode:{x:[t=>t.source.x,t=>t.target.x],y:[t=>t.source.y,t=>t.target.y]},style:{stroke:"#999",strokeOpacity:.6}},dO={type:"point",axis:!1,legend:!1,encode:{x:"x",y:"y",size:5,color:"group",shape:"point"},style:{stroke:"#fff"}},dw={text:""},d_=t=>{let{data:e,encode:n={},scale:r,style:i={},layout:a={},nodeLabels:o=[],linkLabels:l=[],animate:s={},tooltip:c={}}=t,{nodeKey:u=t=>t.id,linkKey:f=t=>t.id}=n,d=dv(n,["nodeKey","linkKey"]),h=Object.assign({nodeKey:u,linkKey:f},d),p=(0,nd.hB)(h,"node"),g=(0,nd.hB)(h,"link"),{links:m,nodes:y}=nE(e,h),{nodesData:v,linksData:b}=function(t,e,n){let{nodes:r,links:i}=t,{joint:a,nodeStrength:o,linkStrength:l}=e,{nodeKey:s=t=>t.id,linkKey:c=t=>t.id}=n,u=(0,dd.Z)(),f=(0,dh.Z)(i).id(nS(c));"function"==typeof o&&u.strength(o),"function"==typeof l&&f.strength(l);let d=(0,dp.Z)(r).force("link",f).force("charge",u);a?d.force("center",(0,dg.Z)()):d.force("x",(0,dm.Z)()).force("y",(0,dy.Z)()),d.stop();let h=Math.ceil(Math.log(d.alphaMin())/Math.log(1-d.alphaDecay()));for(let t=0;t({name:"source",value:nS(f)(t.source)}),t=>({name:"target",value:nS(f)(t.target)})]}),O=fV(c,"node",{items:[t=>({name:"key",value:nS(u)(t)})]},!0);return[E({},dx,{data:b,encode:g,labels:l,style:(0,nd.hB)(i,"link"),tooltip:x,animate:fX(s,"link")}),E({},dO,{data:v,encode:Object.assign({},p),scale:r,style:(0,nd.hB)(i,"node"),tooltip:O,labels:[Object.assign(Object.assign({},dw),(0,nd.hB)(i,"label")),...o],animate:fX(s,"link")})]};d_.props={};var dk=n(81594),dC=n(95608);let dj=t=>e=>n=>{let{field:r="value",nodeSize:i,separation:a,sortBy:o,as:l=["x","y"]}=e,[s,c]=l,u=(0,cn.ZP)(n,t=>t.children).sum(t=>t[r]).sort(o),f=t();f.size([1,1]),i&&f.nodeSize(i),a&&f.separation(a),f(u);let d=[];u.each(t=>{t[s]=t.x,t[c]=t.y,t.name=t.data.name,d.push(t)});let h=u.links();return h.forEach(t=>{t[s]=[t.source[s],t.target[s]],t[c]=[t.source[c],t.target[c]]}),{nodes:d,edges:h}},dM=t=>dj(dC.Z)(t);dM.props={};let dS=t=>dj(dk.Z)(t);dS.props={};let dA={sortBy:(t,e)=>e.value-t.value},dE={axis:!1,legend:!1,type:"point",encode:{x:"x",y:"y",size:2,shape:"point"}},dP={type:"link",encode:{x:"x",y:"y",shape:"smooth"}},dR={text:"",fontSize:10},dT=t=>{let{data:e,encode:n={},scale:r={},style:i={},layout:a={},nodeLabels:o=[],linkLabels:l=[],animate:s={},tooltip:c={}}=t,u=null==n?void 0:n.value,{nodes:f,edges:d}=dS(Object.assign(Object.assign(Object.assign({},dA),a),{field:u}))(e),h=fV(c,"node",{title:"name",items:["value"]},!0),p=fV(c,"link",{title:"",items:[t=>({name:"source",value:t.source.name}),t=>({name:"target",value:t.target.name})]});return[E({},dP,{data:d,encode:(0,nd.hB)(n,"link"),scale:(0,nd.hB)(r,"link"),labels:l,style:Object.assign({stroke:"#999"},(0,nd.hB)(i,"link")),tooltip:p,animate:fX(s,"link")}),E({},dE,{data:f,scale:(0,nd.hB)(r,"node"),encode:(0,nd.hB)(n,"node"),labels:[Object.assign(Object.assign({},dR),(0,nd.hB)(i,"label")),...o],style:Object.assign({},(0,nd.hB)(i,"node")),tooltip:h,animate:fX(s,"node")})]};dT.props={};var dL=n(45571),dB=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let dZ=(t,e)=>({size:[t,e],padding:0,sort:(t,e)=>e.value-t.value}),dI=(t,e,n)=>({type:"point",axis:!1,legend:!1,scale:{x:{domain:[0,t]},y:{domain:[0,e]},size:{type:"identity"}},encode:{x:"x",y:"y",size:"r",shape:"point"},style:{fill:n.color?void 0:t=>0===t.height?"#ddd":"#fff",stroke:n.color?void 0:t=>0===t.height?"":"#000"}}),dD={text:"",position:"inside",textOverflow:"clip",wordWrap:!0,maxLines:1,wordWrapWidth:t=>2*t.r},dN={title:t=>t.data.name,items:[{field:"value"}]},dz=(t,e,n)=>{let{value:r}=n,i=S(t)?(0,ce.Z)().path(e.path)(t):(0,cn.ZP)(t);return r?i.sum(t=>nS(r)(t)).sort(e.sort):i.count(),(0,dL.Z)().size(e.size).padding(e.padding)(i),i.descendants()},dF=(t,e)=>{let{width:n,height:r}=e,{data:i,encode:a={},scale:o={},style:l={},layout:s={},labels:c=[],tooltip:u={}}=t,f=dB(t,["data","encode","scale","style","layout","labels","tooltip"]),d=dI(n,r,a),h=dz(i,E({},dZ(n,r),s),E({},d.encode,a)),p=(0,nd.hB)(l,"label");return E({},d,Object.assign(Object.assign({data:h,encode:a,scale:o,style:l,labels:[Object.assign(Object.assign({},dD),p),...c]},f),{tooltip:fU(u,dN),axis:!1}))};function d$(t){return t.target.depth}function dW(t,e){return t.sourceLinks.length?t.depth:e-1}function dH(t){return function(){return t}}function dG(t,e){return dY(t.source,e.source)||t.index-e.index}function dq(t,e){return dY(t.target,e.target)||t.index-e.index}function dY(t,e){return t.y0-e.y0}function dV(t){return t.value}function dU(t){return t.index}function dQ(t){return t.nodes}function dX(t){return t.links}function dK(t,e){let n=t.get(e);if(!n)throw Error("missing: "+e);return n}function dJ(t){let{nodes:e}=t;for(let t of e){let e=t.y0,n=e;for(let n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(let e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}dF.props={};let d0={nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodes:t=>t.nodes,links:t=>t.links,nodeSort:void 0,linkSort:void 0,iterations:6},d1={left:function(t){return t.depth},right:function(t,e){return e-1-t.height},center:function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?(0,aA.Z)(t.sourceLinks,d$)-1:0},justify:dW},d2=t=>e=>{let{nodeId:n,nodeSort:r,nodeAlign:i,nodeWidth:a,nodePadding:o,nodeDepth:l,nodes:s,links:c,linkSort:u,iterations:f}=Object.assign({},d0,t),d=(function(){let t,e,n,r=0,i=0,a=1,o=1,l=24,s=8,c,u=dU,f=dW,d=dQ,h=dX,p=6;function g(g){let y={nodes:d(g),links:h(g)};return function(t){let{nodes:e,links:r}=t;e.forEach((t,e)=>{t.index=e,t.sourceLinks=[],t.targetLinks=[]});let i=new Map(e.map(t=>[u(t),t]));if(r.forEach((t,e)=>{t.index=e;let{source:n,target:r}=t;"object"!=typeof n&&(n=t.source=dK(i,n)),"object"!=typeof r&&(r=t.target=dK(i,r)),n.sourceLinks.push(t),r.targetLinks.push(t)}),null!=n)for(let{sourceLinks:t,targetLinks:r}of e)t.sort(n),r.sort(n)}(y),function(t){let{nodes:e}=t;for(let t of e)t.value=void 0===t.fixedValue?Math.max((0,ud.Z)(t.sourceLinks,dV),(0,ud.Z)(t.targetLinks,dV)):t.fixedValue}(y),function(e){let{nodes:n}=e,r=n.length,i=new Set(n),a=new Set,o=0;for(;i.size;){if(i.forEach(t=>{for(let{target:e}of(t.depth=o,t.sourceLinks))a.add(e)}),++o>r)throw Error("circular link");i=a,a=new Set}if(t){let e;let r=Math.max((0,aE.Z)(n,t=>t.depth)+1,0);for(let i=0;i{for(let{source:e}of(t.height=a,t.targetLinks))i.add(e)}),++a>n)throw Error("circular link");r=i,i=new Set}}(y),function(t){let u=function(t){let{nodes:n}=t,i=Math.max((0,aE.Z)(n,t=>t.depth)+1,0),o=(a-r-l)/(i-1),s=Array(i).fill(0).map(()=>[]);for(let t of n){let e=Math.max(0,Math.min(i-1,Math.floor(f.call(null,t,i))));t.layer=e,t.x0=r+e*o,t.x1=t.x0+l,s[e]?s[e].push(t):s[e]=[t]}if(e)for(let t of s)t.sort(e);return s}(t);c=Math.min(s,(o-i)/((0,aE.Z)(u,t=>t.length)-1)),function(t){let e=(0,aA.Z)(t,t=>(o-i-(t.length-1)*c)/(0,ud.Z)(t,dV));for(let r of t){let t=i;for(let n of r)for(let r of(n.y0=t,n.y1=t+n.value*e,t=n.y1+c,n.sourceLinks))r.width=r.value*e;t=(o-t+c)/(r.length+1);for(let e=0;e=0;--a){let i=t[a];for(let t of i){let e=0,r=0;for(let{target:n,value:i}of t.sourceLinks){let a=i*(n.layer-t.layer);e+=function(t,e){let n=e.y0-(e.targetLinks.length-1)*c/2;for(let{source:r,width:i}of e.targetLinks){if(r===t)break;n+=i+c}for(let{target:r,width:i}of t.sourceLinks){if(r===e)break;n-=i}return n}(t,n)*a,r+=a}if(!(r>0))continue;let i=(e/r-t.y0)*n;t.y0+=i,t.y1+=i,b(t)}void 0===e&&i.sort(dY),i.length&&m(i,r)}})(u,n,r),function(t,n,r){for(let i=1,a=t.length;i0))continue;let i=(e/r-t.y0)*n;t.y0+=i,t.y1+=i,b(t)}void 0===e&&a.sort(dY),a.length&&m(a,r)}}(u,n,r)}}(y),dJ(y),y}function m(t,e){let n=t.length>>1,r=t[n];v(t,r.y0-c,n-1,e),y(t,r.y1+c,n+1,e),v(t,o,t.length-1,e),y(t,i,0,e)}function y(t,e,n,r){for(;n1e-6&&(i.y0+=a,i.y1+=a),e=i.y1+c}}function v(t,e,n,r){for(;n>=0;--n){let i=t[n],a=(i.y1-e)*r;a>1e-6&&(i.y0-=a,i.y1-=a),e=i.y0-c}}function b(t){let{sourceLinks:e,targetLinks:r}=t;if(void 0===n){for(let{source:{sourceLinks:t}}of r)t.sort(dq);for(let{target:{targetLinks:t}}of e)t.sort(dG)}}return g.update=function(t){return dJ(t),t},g.nodeId=function(t){return arguments.length?(u="function"==typeof t?t:dH(t),g):u},g.nodeAlign=function(t){return arguments.length?(f="function"==typeof t?t:dH(t),g):f},g.nodeDepth=function(e){return arguments.length?(t=e,g):t},g.nodeSort=function(t){return arguments.length?(e=t,g):e},g.nodeWidth=function(t){return arguments.length?(l=+t,g):l},g.nodePadding=function(t){return arguments.length?(s=c=+t,g):s},g.nodes=function(t){return arguments.length?(d="function"==typeof t?t:dH(t),g):d},g.links=function(t){return arguments.length?(h="function"==typeof t?t:dH(t),g):h},g.linkSort=function(t){return arguments.length?(n=t,g):n},g.size=function(t){return arguments.length?(r=i=0,a=+t[0],o=+t[1],g):[a-r,o-i]},g.extent=function(t){return arguments.length?(r=+t[0][0],a=+t[1][0],i=+t[0][1],o=+t[1][1],g):[[r,i],[a,o]]},g.iterations=function(t){return arguments.length?(p=+t,g):p},g})().nodeSort(r).linkSort(u).links(c).nodes(s).nodeWidth(a).nodePadding(o).nodeDepth(l).nodeAlign(function(t){let e=typeof t;return"string"===e?d1[t]||dW:"function"===e?t:dW}(i)).iterations(f).extent([[0,0],[1,1]]);"function"==typeof n&&d.nodeId(n);let h=d(e),{nodes:p,links:g}=h,m=p.map(t=>{let{x0:e,x1:n,y0:r,y1:i}=t;return Object.assign(Object.assign({},t),{x:[e,n,n,e],y:[r,r,i,i]})}),y=g.map(t=>{let{source:e,target:n}=t,r=e.x1,i=n.x0,a=t.width/2;return Object.assign(Object.assign({},t),{x:[r,r,i,i],y:[t.y0+a,t.y0-a,t.y1+a,t.y1-a]})});return{nodes:m,links:y}};d2.props={};var d5=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let d3={nodeId:t=>t.key,nodeWidth:.02,nodePadding:.02},d4={type:"polygon",axis:!1,legend:!1,encode:{shape:"polygon",x:"x",y:"y"},scale:{x:{type:"identity"},y:{type:"identity"}},style:{stroke:"#000"}},d6={type:"polygon",axis:!1,legend:!1,encode:{shape:"ribbon",x:"x",y:"y"},style:{fillOpacity:.5,stroke:void 0}},d8={textAlign:t=>t.x[0]<.5?"start":"end",position:t=>t.x[0]<.5?"right":"left",fontSize:10},d7=t=>{let{data:e,encode:n={},scale:r,style:i={},layout:a={},nodeLabels:o=[],linkLabels:l=[],animate:s={},tooltip:c={}}=t,{links:u,nodes:f}=nE(e,n),d=(0,nd.hB)(n,"node"),h=(0,nd.hB)(n,"link"),{key:p=t=>t.key,color:g=p}=d,{links:m,nodes:y}=d2(Object.assign(Object.assign(Object.assign({},d3),{nodeId:nS(p)}),a))({links:u,nodes:f}),v=(0,nd.hB)(i,"label"),{text:b=p,spacing:x=5}=v,O=d5(v,["text","spacing"]),w=nS(p),_=fV(c,"node",{title:w,items:[{field:"value"}]},!0),k=fV(c,"link",{title:"",items:[t=>({name:"source",value:w(t.source)}),t=>({name:"target",value:w(t.target)})]});return[E({},d4,{data:y,encode:Object.assign(Object.assign({},d),{color:g}),scale:r,style:(0,nd.hB)(i,"node"),labels:[Object.assign(Object.assign(Object.assign({},d8),{text:b,dx:t=>t.x[0]<.5?x:-x}),O),...o],tooltip:_,animate:fX(s,"node"),axis:!1}),E({},d6,{data:m,encode:h,labels:l,style:Object.assign({fill:h.color?void 0:"#aaa",lineWidth:0},(0,nd.hB)(i,"link")),tooltip:k,animate:fX(s,"link")})]};function d9(t,e){return e.value-t.value}function ht(t,e){return e.frequency-t.frequency}function he(t,e){return"".concat(t.id).localeCompare("".concat(e.id))}function hn(t,e){return"".concat(t.name).localeCompare("".concat(e.name))}d7.props={};let hr={y:0,thickness:.05,weight:!1,marginRatio:.1,id:t=>t.id,source:t=>t.source,target:t=>t.target,sourceWeight:t=>t.value||1,targetWeight:t=>t.value||1,sortBy:null},hi=t=>e=>(function(t){let{y:e,thickness:n,weight:r,marginRatio:i,id:a,source:o,target:l,sourceWeight:s,targetWeight:u,sortBy:f}=Object.assign(Object.assign({},hr),t);return function(t){let d=t.nodes.map(t=>Object.assign({},t)),h=t.edges.map(t=>Object.assign({},t));return function(t,e){e.forEach(t=>{t.source=o(t),t.target=l(t),t.sourceWeight=s(t),t.targetWeight=u(t)});let n=(0,nZ.ZP)(e,t=>t.source),r=(0,nZ.ZP)(e,t=>t.target);t.forEach(t=>{t.id=a(t);let e=n.has(t.id)?n.get(t.id):[],i=r.has(t.id)?r.get(t.id):[];t.frequency=e.length+i.length,t.value=(0,ud.Z)(e,t=>t.sourceWeight)+(0,ud.Z)(i,t=>t.targetWeight)})}(d,h),function(t,e){let n="function"==typeof f?f:c[f];n&&t.sort(n)}(d,0),function(t,a){let o=t.length;if(!o)throw(0,nd.vU)("Invalid nodes: it's empty!");if(!r){let n=1/o;return t.forEach((t,r)=>{t.x=(r+.5)*n,t.y=e})}let l=i/(2*o),s=t.reduce((t,e)=>t+=e.value,0);t.reduce((t,r)=>{r.weight=r.value/s,r.width=r.weight*(1-i),r.height=n;let a=l+t,o=a+r.width,c=e-n/2,u=c+n;return r.x=[a,o,o,a],r.y=[c,c,u,u],t+r.width+2*l},0)}(d,0),function(t,n){let i=new Map(t.map(t=>[t.id,t]));if(!r)return n.forEach(t=>{let e=o(t),n=l(t),r=i.get(e),a=i.get(n);r&&a&&(t.x=[r.x,a.x],t.y=[r.y,a.y])});n.forEach(t=>{t.x=[0,0,0,0],t.y=[e,e,e,e]});let a=(0,nZ.ZP)(n,t=>t.source),s=(0,nZ.ZP)(n,t=>t.target);t.forEach(t=>{let{edges:e,width:n,x:r,y:i,value:o,id:l}=t,c=a.get(l)||[],u=s.get(l)||[],f=0;c.map(t=>{let e=t.sourceWeight/o*n;t.x[0]=r[0]+f,t.x[1]=r[0]+f+e,f+=e}),u.forEach(t=>{let e=t.targetWeight/o*n;t.x[3]=r[0]+f,t.x[2]=r[0]+f+e,f+=e})})}(d,h),{nodes:d,edges:h}}})(t)(e);hi.props={};var ha=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let ho={y:0,thickness:.05,marginRatio:.1,id:t=>t.key,source:t=>t.source,target:t=>t.target,sourceWeight:t=>t.value||1,targetWeight:t=>t.value||1,sortBy:null},hl={type:"polygon",axis:!1,legend:!1,encode:{shape:"polygon",x:"x",y:"y"},scale:{x:{type:"identity"},y:{type:"identity"}},style:{opacity:1,fillOpacity:1,lineWidth:1}},hs={type:"polygon",axis:!1,legend:!1,encode:{shape:"ribbon",x:"x",y:"y"},style:{opacity:.5,lineWidth:1}},hc={position:"outside",fontSize:10},hu=(t,e)=>{let{data:n,encode:r={},scale:i,style:a={},layout:o={},nodeLabels:l=[],linkLabels:s=[],animate:c={},tooltip:u={}}=t,{nodes:f,links:d}=nE(n,r),h=(0,nd.hB)(r,"node"),p=(0,nd.hB)(r,"link"),{key:g=t=>t.key,color:m=g}=h,{linkEncodeColor:y=t=>t.source}=p,{nodeWidthRatio:v=ho.thickness,nodePaddingRatio:b=ho.marginRatio}=o,x=ha(o,["nodeWidthRatio","nodePaddingRatio"]),{nodes:O,edges:w}=hi(Object.assign(Object.assign(Object.assign(Object.assign({},ho),{id:nS(g),thickness:v,marginRatio:b}),x),{weight:!0}))({nodes:f,edges:d}),_=(0,nd.hB)(a,"label"),{text:k=g}=_,C=ha(_,["text"]),j=fV(u,"node",{title:"",items:[t=>({name:t.key,value:t.value})]},!0),M=fV(u,"link",{title:"",items:[t=>({name:"".concat(t.source," -> ").concat(t.target),value:t.value})]}),{height:S,width:A}=e,P=Math.min(S,A);return[E({},hs,{data:w,encode:Object.assign(Object.assign({},p),{color:y}),labels:s,style:Object.assign({fill:y?void 0:"#aaa"},(0,nd.hB)(a,"link")),tooltip:M,animate:fX(c,"link")}),E({},hl,{data:O,encode:Object.assign(Object.assign({},h),{color:m}),scale:i,style:(0,nd.hB)(a,"node"),coordinate:{type:"polar",outerRadius:(P-20)/P,startAngle:-(2*Math.PI),endAngle:0},labels:[Object.assign(Object.assign(Object.assign({},hc),{text:k}),C),...l],tooltip:j,animate:fX(c,"node"),axis:!1})]};hu.props={};var hf=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let hd=(t,e)=>({tile:"treemapSquarify",ratio:.5*(1+Math.sqrt(5)),size:[t,e],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,sort:(t,e)=>e.value-t.value,layer:0}),hh=(t,e)=>({type:"rect",axis:!1,encode:{x:"x",y:"y",key:"id",color:t=>t.path[1]},scale:{x:{domain:[0,t],range:[0,1]},y:{domain:[0,e],range:[0,1]}},style:{stroke:"#fff"},state:{active:{opacity:.6},inactive:{opacity:1}}}),hp={fontSize:10,text:t=>oP(t.path),position:"inside",fill:"#000",textOverflow:"clip",wordWrap:!0,maxLines:1,wordWrapWidth:t=>t.x1-t.x0},hg={title:t=>{var e,n;return null===(n=null===(e=t.path)||void 0===e?void 0:e.join)||void 0===n?void 0:n.call(e,".")},items:[{field:"value"}]},hm={title:t=>oP(t.path),items:[{field:"value"}]},hy=(t,e)=>{let{width:n,height:r,options:i}=e,{data:a,encode:o={},scale:l,style:s={},layout:c={},labels:u=[],tooltip:f={}}=t,d=hf(t,["data","encode","scale","style","layout","labels","tooltip"]),h=s3(i,["interaction","treemapDrillDown"]),p=E({},hd(n,r),c,{layer:h?t=>1===t.depth:c.layer}),[g,m]=cu(a,p,o),y=(0,nd.hB)(s,"label");return E({},hh(n,r),Object.assign(Object.assign({data:g,scale:l,style:s,labels:[Object.assign(Object.assign({},hp),y),...u]},d),{encode:o,tooltip:fU(f,hg),axis:!1}),h?{interaction:Object.assign(Object.assign({},d.interaction),{treemapDrillDown:h?Object.assign(Object.assign({},h),{originData:m,layout:p}):void 0}),encode:Object.assign({color:t=>oP(t.path)},o),tooltip:fU(f,hm)}:{})};hy.props={};var hv=n(51758),hb=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function hx(t,e){return(0,aA.Z)(t,t=>e[t])}function hO(t,e){return(0,aE.Z)(t,t=>e[t])}function hw(t,e){let n=2.5*h_(t,e)-1.5*hC(t,e);return(0,aA.Z)(t,t=>e[t]>=n?e[t]:NaN)}function h_(t,e){return(0,hv.Z)(t,.25,t=>e[t])}function hk(t,e){return(0,hv.Z)(t,.5,t=>e[t])}function hC(t,e){return(0,hv.Z)(t,.75,t=>e[t])}function hj(t,e){let n=2.5*hC(t,e)-1.5*h_(t,e);return(0,aE.Z)(t,t=>e[t]<=n?e[t]:NaN)}function hM(){return(t,e)=>{let{encode:n}=e,{y:r,x:i}=n,{value:a}=r,{value:o}=i,l=Array.from((0,nZ.ZP)(t,t=>o[+t]).values()),s=l.flatMap(t=>{let e=hw(t,a),n=hj(t,a);return t.filter(t=>a[t]n)});return[s,e]}}let hS=t=>{let{data:e,encode:n,style:r={},tooltip:i={},transform:a,animate:o}=t,l=hb(t,["data","encode","style","tooltip","transform","animate"]),{point:s=!0}=r,c=hb(r,["point"]),{y:u}=n,f={y:u,y1:u,y2:u,y3:u,y4:u},d={y1:h_,y2:hk,y3:hC},h=fV(i,"box",{items:[{channel:"y",name:"min"},{channel:"y1",name:"q1"},{channel:"y2",name:"q2"},{channel:"y3",name:"q3"},{channel:"y4",name:"max"}]},!0),p=fV(i,"point",{title:{channel:"x"},items:[{name:"outlier",channel:"y"}]});if(!s)return Object.assign({type:"box",data:e,transform:[Object.assign(Object.assign({type:"groupX",y:hx},d),{y4:hO})],encode:Object.assign(Object.assign({},n),f),style:c,tooltip:h},l);let g=(0,nd.hB)(c,"box"),m=(0,nd.hB)(c,"point");return[Object.assign({type:"box",data:e,transform:[Object.assign(Object.assign({type:"groupX",y:hw},d),{y4:hj})],encode:Object.assign(Object.assign({},n),f),style:g,tooltip:h,animate:fX(o,"box")},l),{type:"point",data:e,transform:[{type:hM}],encode:n,style:Object.assign({},m),tooltip:p,animate:fX(o,"point")}]};hS.props={};let hA=(t,e)=>Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))/2,hE=(t,e)=>{if(!e)return;let{coordinate:n}=e;if(!(null==n?void 0:n.getCenter))return;let r=n.getCenter();return(n,i,a)=>{let{document:o}=e.canvas,{color:l,index:s}=i,c=o.createElement("g",{}),u=hA(n[0],n[1]),f=2*hA(n[0],r),d=o.createElement("path",{style:Object.assign(Object.assign(Object.assign({d:[["M",...n[0]],["A",u,u,0,1,0,...n[1]],["A",f+2*u,f+2*u,0,0,0,...n[2]],["A",u,u,0,1,0===s?0:1,...n[3]],["A",f,f,0,0,1,...n[0]],["Z"]]},a),oo(t,["shape","last","first"])),{fill:l||a.color})});return c.appendChild(d),c}};var hP=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let hR={coordinate:{type:"radial",innerRadius:.9,outerRadius:1,startAngle:-1.1*Math.PI,endAngle:.1*Math.PI},axis:{x:!1},legend:!1,tooltip:!1,encode:{x:"x",y:"y",color:"color"},scale:{color:{range:["#30BF78","#D0D0D0"]}}},hT={style:{shape:(t,e)=>{let{shape:n,radius:r}=t,i=hP(t,["shape","radius"]),a=(0,nd.hB)(i,"pointer"),o=(0,nd.hB)(i,"pin"),{shape:l}=a,s=hP(a,["shape"]),{shape:c}=o,u=hP(o,["shape"]),{coordinate:f,theme:d}=e;return(t,e)=>{let n=t.map(t=>f.invert(t)),[a,o,h]=function(t,e){let{transformations:n}=t.getOptions(),[,...r]=n.find(t=>t[0]===e);return r}(f,"polar"),p=f.clone(),{color:g}=e,m=O({startAngle:a,endAngle:o,innerRadius:h,outerRadius:r});m.push(["cartesian"]),p.update({transformations:m});let y=n.map(t=>p.map(t)),[v,b]=e9(y),[x,w]=f.getCenter(),_=Object.assign(Object.assign({x1:v,y1:b,x2:x,y2:w,stroke:g},s),i),k=Object.assign(Object.assign({cx:x,cy:w,stroke:g},u),i),C=(0,Q.F)(new nN.ZA);return(0,nd.Qp)(l)||("function"==typeof l?C.append(()=>l(y,e,p,d)):C.append("line").call(e2,_).node()),(0,nd.Qp)(c)||("function"==typeof c?C.append(()=>c(y,e,p,d)):C.append("circle").call(e2,k).node()),C.node()}},lineWidth:4,pointerLineCap:"round",pinR:10,pinFill:"#fff",radius:.6}},hL={type:"text",style:{x:"50%",y:"60%",textAlign:"center",textBaseline:"middle",fontSize:20,fontWeight:800,fill:"#888"}},hB=t=>{let{data:e={},scale:n={},style:r={},animate:i={},transform:a=[]}=t,o=hP(t,["data","scale","style","animate","transform"]),{targetData:l,totalData:s,target:c,total:u,scale:f}=function(t,e){let{name:n="score",target:r,total:i,percent:a,thresholds:o=[]}=function(t){if(eQ(t)){let e=Math.max(0,Math.min(t,1));return{percent:e,target:e,total:1}}return t}(t),l=a||r,s=a?1:i,c=Object.assign({y:{domain:[0,s]}},e);return o.length?{targetData:[{x:n,y:l,color:"target"}],totalData:o.map((t,e)=>({x:n,y:e>=1?t-o[e-1]:t,color:e})),target:l,total:s,scale:c}:{targetData:[{x:n,y:l,color:"target"}],totalData:[{x:n,y:l,color:"target"},{x:n,y:s-l,color:"total"}],target:l,total:s,scale:c}}(e,n),d=(0,nd.hB)(r,"text"),h=(0,nd.b5)(r,["pointer","pin"]),p=(0,nd.hB)(r,"arc"),g=p.shape;return[E({},hR,Object.assign({type:"interval",transform:[{type:"stackY"}],data:s,scale:f,style:"round"===g?Object.assign(Object.assign({},p),{shape:hE}):p,animate:"object"==typeof i?(0,nd.hB)(i,"arc"):i},o)),E({},hR,hT,Object.assign({type:"point",data:l,scale:f,style:h,animate:"object"==typeof i?(0,nd.hB)(i,"indicator"):i},o)),E({},hL,{style:Object.assign({text:function(t,e){let{target:n,total:r}=e,{content:i}=t;return i?i(n,r):n.toString()}(d,{target:c,total:u})},d),animate:"object"==typeof i?(0,nd.hB)(i,"text"):i})]};hB.props={};let hZ={pin:function(t,e,n){let r=4*n/3,i=Math.max(r,2*n),a=r/2,o=a+e-i/2,l=Math.asin(a/((i-a)*.85)),s=Math.sin(l)*a,c=Math.cos(l)*a,u=t-c,f=o+s,d=o+a/Math.sin(l);return"\n M ".concat(u," ").concat(f,"\n A ").concat(a," ").concat(a," 0 1 1 ").concat(u+2*c," ").concat(f,"\n Q ").concat(t," ").concat(d," ").concat(t," ").concat(e+i/2,"\n Q ").concat(t," ").concat(d," ").concat(u," ").concat(f,"\n Z \n ")},rect:function(t,e,n){let r=.618*n;return"\n M ".concat(t-r," ").concat(e-n,"\n L ").concat(t+r," ").concat(e-n,"\n L ").concat(t+r," ").concat(e+n,"\n L ").concat(t-r," ").concat(e+n,"\n Z\n ")},circle:function(t,e,n){return"\n M ".concat(t," ").concat(e-n," \n a ").concat(n," ").concat(n," 0 1 0 0 ").concat(2*n,"\n a ").concat(n," ").concat(n," 0 1 0 0 ").concat(-(2*n),"\n Z\n ")},diamond:function(t,e,n){return"\n M ".concat(t," ").concat(e-n,"\n L ").concat(t+n," ").concat(e,"\n L ").concat(t," ").concat(e+n,"\n L ").concat(t-n," ").concat(e,"\n Z\n ")},triangle:function(t,e,n){return"\n M ".concat(t," ").concat(e-n,"\n L ").concat(t+n," ").concat(e+n,"\n L ").concat(t-n," ").concat(e+n,"\n Z\n ")}};var hI=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let hD=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"circle";return hZ[t]||hZ.circle},hN=(t,e)=>{if(!e)return;let{coordinate:n}=e,{liquidOptions:r,styleOptions:i}=t,{liquidShape:a,percent:o}=r,{background:l,outline:s={},wave:c={}}=i,u=hI(i,["background","outline","wave"]),{border:f=2,distance:d=0}=s,h=hI(s,["border","distance"]),{length:p=192,count:g=3}=c;return(t,r,i)=>{let{document:s}=e.canvas,{color:c,fillOpacity:m}=i,y=Object.assign(Object.assign({fill:c},i),u),v=s.createElement("g",{}),[b,x]=n.getCenter(),O=n.getSize(),w=Math.min(...O)/2,_=s4(a)?a:hD(a),k=_(b,x,w,...O);if(Object.keys(l).length){let t=s.createElement("path",{style:Object.assign({d:k,fill:"#fff"},l)});v.appendChild(t)}if(o>0){let t=s.createElement("path",{style:{d:k}});v.appendChild(t),v.style.clipPath=t,function(t,e,n,r,i,a,o,l,s,c,u){let{fill:f,fillOpacity:d,opacity:h}=i;for(let i=0;i0;)c-=2*Math.PI;c=c/Math.PI/2*n;let u=a-t+c-2*t;s.push(["M",u,e]);let f=0;for(let t=0;te.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let hF={axis:{x:!1,y:!1},legend:!1,tooltip:!1,encode:{x:"type",y:"percent"},scale:{y:{domain:[0,1]}},style:{shape:hN},animate:{enter:{type:"fadeIn"}}},h$={type:"text",style:{x:"50%",y:"50%",textAlign:"center",textBaseline:"middle",fontSize:20,fontWeight:800,fill:"#888"},animate:{enter:{type:"fadeIn"}}},hW=t=>{let{data:e={},style:n={},animate:r}=t,i=hz(t,["data","style","animate"]),a=Math.max(0,eQ(e)?e:null==e?void 0:e.percent),o=[{percent:a,type:"liquid"}],l=Object.assign(Object.assign({},(0,nd.hB)(n,"text")),(0,nd.hB)(n,"content")),s=(0,nd.hB)(n,"outline"),c=(0,nd.hB)(n,"wave"),u=(0,nd.hB)(n,"background");return[E({},hF,Object.assign({type:"interval",data:o,style:{liquidOptions:{percent:a,liquidShape:null==n?void 0:n.shape},styleOptions:Object.assign(Object.assign({},n),{outline:s,wave:c,background:u})},animate:r},i)),E({},h$,{style:Object.assign({text:"".concat(to(100*a)," %")},l),animate:r})]};hW.props={};var hH=n(69916);function hG(t,e){let n=function(t){let e=[];for(let n=0;ne[n].radius+1e-10)return!1;return!0}(e,t)}),i=0,a=0,o,l=[];if(r.length>1){let e=function(t){let e={x:0,y:0};for(let n=0;n-1){let i=t[e.parentIndex[r]],a=Math.atan2(e.x-i.x,e.y-i.y),o=Math.atan2(n.x-i.x,n.y-i.y),l=o-a;l<0&&(l+=2*Math.PI);let u=o-l/2,f=hY(s,{x:i.x+i.radius*Math.sin(u),y:i.y+i.radius*Math.cos(u)});f>2*i.radius&&(f=2*i.radius),(null===c||c.width>f)&&(c={circle:i,width:f,p1:e,p2:n})}null!==c&&(l.push(c),i+=hq(c.circle.radius,c.width),n=e)}}else{let e=t[0];for(o=1;oMath.abs(e.radius-t[o].radius)){n=!0;break}n?i=a=0:(i=e.radius*e.radius*Math.PI,l.push({circle:e,p1:{x:e.x,y:e.y+e.radius},p2:{x:e.x-1e-10,y:e.y+e.radius},width:2*e.radius}))}return a/=2,e&&(e.area=i+a,e.arcArea=i,e.polygonArea=a,e.arcs=l,e.innerPoints=r,e.intersectionPoints=n),i+a}function hq(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function hY(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function hV(t,e,n){if(n>=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);let r=t-(n*n-e*e+t*t)/(2*n),i=e-(n*n-t*t+e*e)/(2*n);return hq(t,r)+hq(e,i)}function hU(t,e){let n=hY(t,e),r=t.radius,i=e.radius;if(n>=r+i||n<=Math.abs(r-i))return[];let a=(r*r-i*i+n*n)/(2*n),o=Math.sqrt(r*r-a*a),l=t.x+a*(e.x-t.x)/n,s=t.y+a*(e.y-t.y)/n,c=-(e.y-t.y)*(o/n),u=-(e.x-t.x)*(o/n);return[{x:l+c,y:s-u},{x:l-c,y:s+u}]}function hQ(t,e,n){return Math.min(t,e)*Math.min(t,e)*Math.PI<=n+1e-10?Math.abs(t-e):(0,hH.bisect)(function(r){return hV(t,e,r)-n},0,t+e)}function hX(t,e){let n=function(t,e){let n;let r=e&&e.lossFunction?e.lossFunction:hK,i={},a={};for(let e=0;e=Math.min(i[o].size,i[l].size)&&(r=0),a[o].push({set:l,size:n.size,weight:r}),a[l].push({set:o,size:n.size,weight:r})}let o=[];for(n in a)if(a.hasOwnProperty(n)){let t=0;for(let e=0;e=8){let i=function(t,e){let n,r,i;e=e||{};let a=e.restarts||10,o=[],l={};for(n=0;n=Math.min(e[a].size,e[o].size)?u=1:t.size<=1e-10&&(u=-1),i[a][o]=i[o][a]=u}),{distances:r,constraints:i}}(t,o,l),c=s.distances,u=s.constraints,f=(0,hH.norm2)(c.map(hH.norm2))/c.length;c=c.map(function(t){return t.map(function(t){return t/f})});let d=function(t,e){return function(t,e,n,r){let i=0,a;for(a=0;a0&&p<=f||d<0&&p>=f||(i+=2*g*g,e[2*a]+=4*g*(o-c),e[2*a+1]+=4*g*(l-u),e[2*s]+=4*g*(c-o),e[2*s+1]+=4*g*(u-l))}}return i}(t,e,c,u)};for(n=0;n{let{sets:e="sets",size:n="size",as:r=["key","path"],padding:i=0}=t,[a,o]=r;return t=>{let r;let l=t.map(t=>Object.assign(Object.assign({},t),{sets:t[e],size:t[n],[a]:t.sets.join("&")}));l.sort((t,e)=>t.sets.length-e.sets.length);let s=function(t,e){let n;(e=e||{}).maxIterations=e.maxIterations||500;let r=e.initialLayout||hX,i=e.lossFunction||hK;t=function(t){let e,n,r,i;t=t.slice();let a=[],o={};for(e=0;et>e?1:-1),e=0;e{let n=t[e];return Object.assign(Object.assign({},t),{[o]:t=>{let{width:e,height:a}=t;r=r||function(t,e,n,r){let i=[],a=[];for(let e in t)t.hasOwnProperty(e)&&(a.push(e),i.push(t[e]));e-=2*r,n-=2*r;let o=function(t){let e=function(e){let n=Math.max.apply(null,t.map(function(t){return t[e]+t.radius})),r=Math.min.apply(null,t.map(function(t){return t[e]-t.radius}));return{max:n,min:r}};return{xRange:e("x"),yRange:e("y")}}(i),l=o.xRange,s=o.yRange;if(l.max==l.min||s.max==s.min)return console.log("not scaling solution: zero size detected"),t;let c=e/(l.max-l.min),u=n/(s.max-s.min),f=Math.min(u,c),d=(e-(l.max-l.min)*f)/2,h=(n-(s.max-s.min)*f)/2,p={};for(let t=0;tr[t]),l=function(t){let e={};hG(t,e);let n=e.arcs;if(0===n.length)return"M 0 0";if(1==n.length){let t=n[0].circle;return function(t,e,n){let r=[],i=t-n;return r.push("M",i,e),r.push("A",n,n,0,1,0,i+2*n,e),r.push("A",n,n,0,1,0,i,e),r.join(" ")}(t.x,t.y,t.radius)}{let t=["\nM",n[0].p2.x,n[0].p2.y];for(let e=0;ei;t.push("\nA",i,i,0,a?1:0,1,r.p1.x,r.p1.y)}return t.join(" ")}}(o);return/[zZ]$/.test(l)||(l+=" Z"),l}})})}};hJ.props={};var h0=n(31989),h1=n(98875),h2=function(t,e,n){var r;return function(){var i=this,a=arguments,o=n&&!r;clearTimeout(r),r=setTimeout(function(){r=null,n||t.apply(i,a)},e),o&&t.apply(i,a)}},h5=n(90494),h3=n(17313),h4=function(t,e){if(t===e)return!0;if(!t||!e||s5(t)||s5(e))return!1;if(oE(t)||oE(e)){if(t.length!==e.length)return!1;for(var n=!0,r=0;re.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let h9=t=>{let{important:e={}}=t,n=h7(t,["important"]);return r=>{let{theme:i,coordinate:a,scales:o}=r;return oC(Object.assign(Object.assign(Object.assign({},n),function(t){let e=t%(2*Math.PI);return e===Math.PI/2?{titleTransform:"translate(0, 50%)"}:e>-Math.PI/2&&eMath.PI/2&&e<3*Math.PI/2?{titleTransform:"translate(-50%, 0)"}:{}}(t.orientation)),{important:Object.assign(Object.assign({},function(t,e,n,r){let{radar:i}=t,[a]=r,o=a.getOptions().name,[l,s]=U(n),{axisRadar:c={}}=e;return Object.assign(Object.assign({},c),{grid:"position"===o,gridConnect:"line",gridControlAngles:Array(i.count).fill(0).map((t,e)=>{let n=(s-l)/i.count;return n*e})})}(t,i,a,o)),e)}))(r)}};h9.props=Object.assign(Object.assign({},oC.props),{defaultPosition:"center"});let pt=t=>function(){for(var e=arguments.length,n=Array(e),r=0;re=>{let{scales:n}=e,r=oy(n,"size");return oI(Object.assign({},{type:"size",data:r.getTicks().map((t,e)=>({value:t,label:String(t)}))},t))(e)};pe.props=Object.assign(Object.assign({},oI.props),{defaultPosition:"top",defaultOrientation:"horizontal"});let pn=t=>pe(Object.assign({},{block:!0},t));pn.props=Object.assign(Object.assign({},oI.props),{defaultPosition:"top",defaultOrientation:"horizontal"});var pr=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let pi=function(){let{static:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e=>{let{width:n,height:r,depth:i,paddingLeft:a,paddingRight:o,paddingTop:l,paddingBottom:s,padding:c,inset:u,insetLeft:f,insetTop:d,insetRight:h,insetBottom:p,margin:g,marginLeft:m,marginBottom:y,marginTop:v,marginRight:b,data:x,coordinate:O,theme:w,component:_,interaction:k,x:C,y:j,z:M,key:S,frame:A,labelTransform:E,parentKey:P,clip:R,viewStyle:T,title:L}=e,B=pr(e,["width","height","depth","paddingLeft","paddingRight","paddingTop","paddingBottom","padding","inset","insetLeft","insetTop","insetRight","insetBottom","margin","marginLeft","marginBottom","marginTop","marginRight","data","coordinate","theme","component","interaction","x","y","z","key","frame","labelTransform","parentKey","clip","viewStyle","title"]);return[Object.assign(Object.assign({type:"standardView",x:C,y:j,z:M,key:S,width:n,height:r,depth:i,padding:c,paddingLeft:a,paddingRight:o,paddingTop:l,inset:u,insetLeft:f,insetTop:d,insetRight:h,insetBottom:p,paddingBottom:s,theme:w,coordinate:O,component:_,interaction:k,frame:A,labelTransform:E,margin:g,marginLeft:m,marginBottom:y,marginTop:v,marginRight:b,parentKey:P,clip:R,style:T},!t&&{title:L}),{marks:[Object.assign(Object.assign(Object.assign({},B),{key:"".concat(S,"-0"),data:x}),t&&{title:L})]})]}};pi.props={};var pa=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let po=()=>t=>{let{children:e}=t,n=pa(t,["children"]);if(!Array.isArray(e))return[];let{data:r,scale:i={},axis:a={},legend:o={},encode:l={},transform:s=[]}=n,c=pa(n,["data","scale","axis","legend","encode","transform"]),u=e.map(t=>{var{data:e,scale:n={},axis:c={},legend:u={},encode:f={},transform:d=[]}=t,h=pa(t,["data","scale","axis","legend","encode","transform"]);return Object.assign({data:cE(e,r),scale:E({},i,n),encode:E({},l,f),transform:[...s,...d],axis:!!c&&!!a&&E({},a,c),legend:!!u&&!!o&&E({},o,u)},h)});return[Object.assign(Object.assign({},c),{marks:u,type:"standardView"})]};function pl(t,e,n,r){let i=e.length/2,a=e.slice(0,i),o=e.slice(i),l=(0,c7.Z)(a,(t,e)=>Math.abs(t[1]-o[e][1]));l=Math.max(Math.min(l,i-2),1);let s=t=>[a[t][0],(a[t][1]+o[t][1])/2],c=s(l),u=s(l-1),f=s(l+1),d=tt(X(f,u))/Math.PI*180;return{x:c[0],y:c[1],transform:"rotate(".concat(d,")"),textAlign:"center",textBaseline:"middle"}}function ps(t,e,n,r){let{bounds:i}=n,[[a,o],[l,s]]=i,c=l-a,u=s-o;return(t=>{let{x:e,y:r}=t,i=(0,nd.Lq)(n.x,c),l=(0,nd.Lq)(n.y,u);return Object.assign(Object.assign({},t),{x:(i||e)+a,y:(l||r)+o})})("left"===t?{x:0,y:u/2,textAlign:"start",textBaseline:"middle"}:"right"===t?{x:c,y:u/2,textAlign:"end",textBaseline:"middle"}:"top"===t?{x:c/2,y:0,textAlign:"center",textBaseline:"top"}:"bottom"===t?{x:c/2,y:u,textAlign:"center",textBaseline:"bottom"}:"top-left"===t?{x:0,y:0,textAlign:"start",textBaseline:"top"}:"top-right"===t?{x:c,y:0,textAlign:"end",textBaseline:"top"}:"bottom-left"===t?{x:0,y:u,textAlign:"start",textBaseline:"bottom"}:"bottom-right"===t?{x:c,y:u,textAlign:"end",textBaseline:"bottom"}:{x:c/2,y:u/2,textAlign:"center",textBaseline:"middle"})}function pc(t,e,n,r){let{y:i,y1:a,autoRotate:o,rotateToAlignArc:l}=n,s=r.getCenter(),c=e6(r,e,[i,a]),{innerRadius:u,outerRadius:f,startAngle:d,endAngle:h}=c,p="inside"===t?(d+h)/2:h,g=pf(p,o,l),m=(()=>{let[n,r]=e,[i,a]="inside"===t?pu(s,p,u+(f-u)*.5):ti(n,r);return{x:i,y:a}})();return Object.assign(Object.assign({},m),{textAlign:"inside"===t?"center":"start",textBaseline:"middle",rotate:g})}function pu(t,e,n){return[t[0]+Math.sin(e)*n,t[1]-Math.cos(e)*n]}function pf(t,e,n){if(!e)return 0;let r=n?0:0>Math.sin(t)?90:-90;return t/Math.PI*180+r}function pd(t,e,n,r){let{y:i,y1:a,autoRotate:o,rotateToAlignArc:l,radius:s=.5,offset:c=0}=n,u=e6(r,e,[i,a]),{startAngle:f,endAngle:d}=u,h=r.getCenter(),p=(f+d)/2,g=pf(p,o,l),{innerRadius:m,outerRadius:y}=u,[v,b]=pu(h,p,m+(y-m)*s+c);return Object.assign({x:v,y:b},{textAlign:"center",textBaseline:"middle",rotate:g})}function ph(t){return void 0===t?null:t}function pp(t,e,n,r){let{bounds:i}=n,[a]=i;return{x:ph(a[0]),y:ph(a[1])}}function pg(t,e,n,r){let{bounds:i}=n;if(1===i.length)return pp(t,e,n,r);let a=W(r)?pc:Y(r)?pd:ps;return a(t,e,n,r)}function pm(t,e,n){let r=e6(n,t,[e.y,e.y1]),{innerRadius:i,outerRadius:a}=r;return i+(a-i)}function py(t,e,n){let r=e6(n,t,[e.y,e.y1]),{startAngle:i,endAngle:a}=r;return(i+a)/2}function pv(t,e,n,r){let{autoRotate:i,rotateToAlignArc:a,offset:o=0,connector:l=!0,connectorLength:s=o,connectorLength2:c=0,connectorDistance:u=0}=n,f=r.getCenter(),d=py(e,n,r),h=Math.sin(d)>0?1:-1,p=pf(d,i,a),g={textAlign:h>0||W(r)?"start":"end",textBaseline:"middle",rotate:p},m=pm(e,n,r),y=m+(l?s:o),[[v,b],[x,O],[w,_]]=function(t,e,n,r,i){let[a,o]=pu(t,e,n),[l,s]=pu(t,e,r),c=Math.sin(e)>0?1:-1;return[[a,o],[l,s],[l+c*i,s]]}(f,d,m,y,l?c:0),k=l?+u*h:0,C=w+k;return Object.assign(Object.assign({x0:v,y0:b,x:w+k,y:_},g),{connector:l,connectorPoints:[[x-C,O-_],[w-C,_-_]]})}function pb(t,e,n,r){let{bounds:i}=n;if(1===i.length)return pp(t,e,n,r);let a=W(r)?pc:Y(r)?pv:ps;return a(t,e,n,r)}po.props={};var px=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function pO(t,e,n,r){if(!Y(r))return{};let{connectorLength:i,connectorLength2:a,connectorDistance:o}=n,l=px(pv("outside",e,n,r),[]),s=r.getCenter(),c=pm(e,n,r),u=py(e,n,r),f=Math.sin(u)>0?1:-1,d=s[0]+(c+i+a+ +o)*f,{x:h}=l,p=d-h;return l.x+=p,l.connectorPoints[0][0]-=p,l}var pw=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function p_(t,e,n,r){if(!Y(r))return{};let{connectorLength:i,connectorLength2:a,connectorDistance:o}=n,l=pw(pv("outside",e,n,r),[]),{x0:s,y0:c}=l,u=r.getCenter(),f=function(t){if(Y(t)){let[e,n]=t.getSize(),r=t.getOptions().transformations.find(t=>"polar"===t[0]);if(r)return Math.max(e,n)/2*r[4]}return 0}(r),d=te([s-u[0],c-u[1]]),h=Math.sin(d)>0?1:-1,[p,g]=pu(u,d,f+i);return l.x=p+(a+o)*h,l.y=g,l}var pk=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let pC=(t,e)=>{let{coordinate:n,theme:r}=e,{render:i}=t;return(e,a)=>{let{text:o,x:l,y:s,transform:c="",transformOrigin:f,className:d=""}=a,h=pk(a,["text","x","y","transform","transformOrigin","className"]),p=function(t,e,n,r,i){let{position:a}=e,{render:o}=i,l=void 0!==a?a:Y(n)?"inside":F(n)?"right":"top",s=o?"htmlLabel":"inside"===l?"innerLabel":"label",c=r[s],f=Object.assign({},c,e),d=u[sQ(l)];if(!d)throw Error("Unknown position: ".concat(l));return Object.assign(Object.assign({},c),d(l,t,f,n,i))}(e,a,n,r,t),{rotate:g=0,transform:m=""}=p,y=pk(p,["rotate","transform"]);return(0,Q.F)(new r6).call(e2,y).style("text","".concat(o)).style("className","".concat(d," g2-label")).style("innerHTML",i?i(o,a.datum,a.index):void 0).style("labelTransform","".concat(m," rotate(").concat(+g,") ").concat(c).trim()).style("labelTransformOrigin",f).style("coordCenter",n.getCenter()).call(e2,h).node()}};pC.props={defaultMarker:"point"};var pj=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function pM(t,e){let n=Object.assign(Object.assign({},{"component.axisRadar":h9,"component.axisLinear":oC,"component.axisArc":oj,"component.legendContinuousBlock":pt,"component.legendContinuousBlockSize":pn,"component.legendContinuousSize":pe,"interaction.event":st,"composition.mark":pi,"composition.view":po,"shape.label.label":pC}),e),r=e=>{if("string"!=typeof e)return e;let r="".concat(t,".").concat(e);return n[r]||(0,nd.vU)("Unknown Component: ".concat(r))};return[(t,e)=>{let{type:n}=t,i=pj(t,["type"]);n||(0,nd.vU)("Plot type is required!");let a=r(n);return null==a?void 0:a(i,e)},r]}function pS(t){let{canvas:e,group:n}=t;return(null==e?void 0:e.document)||(null==n?void 0:n.ownerDocument)||(0,nd.vU)("Cannot find library document")}var pA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function pE(t,e){let{coordinate:n={}}=t,r=pA(t,["coordinate"]),{type:i,transform:a=[]}=n,o=pA(n,["type","transform"]);if(!i)return Object.assign(Object.assign({},r),{coordinates:a});let[,l]=pM("coordinate",e),{transform:s=!1}=l(i).props||{};if(s)throw Error("Unknown coordinate: ".concat(i,"."));return Object.assign(Object.assign({},r),{coordinates:[Object.assign({type:i},o),...a]})}function pP(t,e){return t.filter(t=>t.type===e)}function pR(t){return pP(t,"polar").length>0}function pT(t){return pP(t,"transpose").length%2==1}function pL(t){return pP(t,"theta").length>0}function pB(t){return pP(t,"radial").length>0}var pZ=n(63488);function pI(t,e){let n=Object.keys(t);for(let r of Object.values(e)){let{name:e}=r.getOptions();if(e in t){let i=n.filter(t=>t.startsWith(e)).map(t=>+(t.replace(e,"")||0)),a=(0,aE.Z)(i)+1,o="".concat(e).concat(a);t[o]=r,r.getOptions().key=o}else t[e]=r}return t}function pD(t,e){let n,r;let[i]=pM("scale",e),{relations:a}=t,[o]=a&&Array.isArray(a)?[t=>{var e;n=t.map.bind(t),r=null===(e=t.invert)||void 0===e?void 0:e.bind(t);let i=a.filter(t=>{let[e]=t;return"function"==typeof e}),o=a.filter(t=>{let[e]=t;return"function"!=typeof e}),l=new Map(o);if(t.map=t=>{for(let[e,n]of i)if(e(t))return n;return l.has(t)?l.get(t):n(t)},!r)return t;let s=new Map(o.map(t=>{let[e,n]=t;return[n,e]})),c=new Map(i.map(t=>{let[e,n]=t;return[n,e]}));return t.invert=t=>c.has(t)?t:s.has(t)?s.get(t):r(t),t},t=>(null!==n&&(t.map=n),null!==r&&(t.invert=r),t)]:[nd.yR,nd.yR],l=i(t);return o(l)}function pN(t,e){let n=t.filter(t=>{let{name:n,facet:r=!0}=t;return r&&n===e}),r=n.flatMap(t=>t.domain),i=n.every(pz)?(0,eX.Z)(r):n.every(pF)?Array.from(new Set(r)):null;if(null!==i)for(let t of n)t.domain=i}function pz(t){let{type:e}=t;return"string"==typeof e&&["linear","log","pow","time"].includes(e)}function pF(t){let{type:e}=t;return"string"==typeof e&&["band","point","ordinal"].includes(e)}function p$(t,e,n,r,i){var a;let[o]=pM("palette",i),{category10:l,category20:s}=r,c=(a=t.flat(),Array.from(new Set(a))).length<=l.length?l:s,{palette:u=c,offset:f}=e;if(Array.isArray(u))return u;try{return o({type:u})}catch(e){let t=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t=>t;if(!t)return null;let r=os(t),i=pZ["scheme".concat(r)],a=pZ["interpolate".concat(r)];if(!i&&!a)return null;if(i){if(!i.some(Array.isArray))return i;let t=i[e.length];if(t)return t}return e.map((t,r)=>a(n(r/e.length)))}(u,n,f);if(t)return t;throw Error("Unknown Component: ".concat(u," "))}}function pW(t,e){return e||(t.startsWith("x")||t.startsWith("y")||t.startsWith("position")||t.startsWith("size")?"point":"ordinal")}function pH(t,e,n){return n||("color"!==t?"linear":e?"linear":"sequential")}function pG(t,e){if(0===t.length)return t;let{domainMin:n,domainMax:r}=e,[i,a]=t;return[null!=n?n:i,null!=r?r:a]}function pq(t){return pV(t,t=>{let e=typeof t;return"string"===e||"boolean"===e})}function pY(t){return pV(t,t=>t instanceof Date)}function pV(t,e){for(let n of t)if(n.some(e))return!0;return!1}let pU={linear:"linear",identity:"identity",log:"log",pow:"pow",sqrt:"sqrt",sequential:"sequential"},pQ={threshold:"threshold",quantize:"quantize",quantile:"quantile"},pX={ordinal:"ordinal",band:"band",point:"point"},pK={constant:"constant"};var pJ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function p0(t,e,n,r,i){let[a]=pM("component",r),{scaleInstances:o,scale:l,bbox:s}=t,c=pJ(t,["scaleInstances","scale","bbox"]),u=a(c);return u({coordinate:e,library:r,markState:i,scales:o,theme:n,value:{bbox:s,library:r},scale:l})}function p1(t,e){let n=["left","right","bottom","top"],r=(0,nZ.Xx)(t,t=>{let{type:e,position:r,group:i}=t;return n.includes(r)?void 0===i?e.startsWith("legend")?"legend-".concat(r):Symbol("independent"):"independent"===i?Symbol("independent"):i:Symbol("independent")});return r.flatMap(t=>{let[,n]=t;if(1===n.length)return n[0];if(void 0!==e){let t=n.filter(t=>void 0!==t.length).map(t=>t.length),r=(0,ud.Z)(t);if(r>e)return n.forEach(t=>t.group=Symbol("independent")),n;let i=n.length-t.length,a=(e-r)/i;n.forEach(t=>{void 0===t.length&&(t.length=a)})}let r=(0,aE.Z)(n,t=>t.size),i=(0,aE.Z)(n,t=>t.order),a=(0,aE.Z)(n,t=>t.crossPadding),o=n[0].position;return{type:"group",size:r,order:i,position:o,children:n,crossPadding:a}})}function p2(t){let e=pP(t,"polar");if(e.length){let t=e[e.length-1],{startAngle:n,endAngle:r}=h(t);return[n,r]}let n=pP(t,"radial");if(n.length){let t=n[n.length-1],{startAngle:e,endAngle:r}=x(t);return[e,r]}return[-Math.PI/2,Math.PI/2*3]}function p5(t,e,n,r,i,a){let{type:o}=t;if(["left","right","bottom","top"].includes(r)&&"string"==typeof o)return(o.startsWith("axis")?p7:o.startsWith("group")?p3:o.startsWith("legendContinuous")?p9:"legendCategory"===o?gt:o.startsWith("slider")?p8:"title"===o?p6:o.startsWith("scrollbar")?p4:()=>{})(t,e,n,r,i,a)}function p3(t,e,n,r,i,a){let{children:o}=t,l=(0,aE.Z)(o,t=>t.crossPadding);o.forEach(t=>t.crossPadding=l),o.forEach(t=>p5(t,e,n,r,i,a));let s=(0,aE.Z)(o,t=>t.size);t.size=s,o.forEach(t=>t.size=s)}function p4(t,e,n,r,i,a){let{trackSize:o=6}=E({},i.scrollbar,t);t.size=o}function p6(t,e,n,r,i,a){let o=E({},i.title,t),{title:l,subtitle:s,spacing:c=0}=o,u=pJ(o,["title","subtitle","spacing"]);if(l){let e=(0,nd.hB)(u,"title"),n=go(l,e);t.size=n.height}if(s){let e=(0,nd.hB)(u,"subtitle"),n=go(s,e);t.size+=c+n.height}}function p8(t,e,n,r,i,a){let{trackSize:o,handleIconSize:l}=(()=>{let{slider:e}=i;return E({},e,t)})(),s=Math.max(o,2.4*l);t.size=s}function p7(t,e,n,r,i,a){var o;t.transform=t.transform||[{type:"hide"}];let l="left"===r||"right"===r,s=gi(t,r,i),{tickLength:c=0,labelSpacing:u=0,titleSpacing:f=0,labelAutoRotate:d}=s,h=pJ(s,["tickLength","labelSpacing","titleSpacing","labelAutoRotate"]),p=ge(t,a),g=gn(h,p),m=c+u;if(g&&g.length){let r=(0,aE.Z)(g,t=>t.width),i=(0,aE.Z)(g,t=>t.height);if(l)t.size=r+m;else{let{tickFilter:a,labelTransform:l}=t;(function(t,e,n,r,i){let a=(0,ud.Z)(e,t=>t.width);if(a>n)return!0;let o=t.clone();o.update({range:[0,n]});let l=ga(t,i),s=l.map(t=>o.map(t)+function(t,e){if(!t.getBandWidth)return 0;let n=t.getBandWidth(e)/2;return n}(o,t)),c=l.map((t,e)=>e),u=-r[0],f=n+r[1],d=(t,e)=>{let{width:n}=e;return[t-n/2,t+n/2]};for(let t=0;tf)return!0;let a=s[t+1];if(a){let[n]=d(a,e[t+1]);if(i>n)return!0}}return!1})(p,g,e,n,a)&&!l&&!1!==d&&null!==d?(t.labelTransform="rotate(90)",t.size=r+m):(t.labelTransform=null!==(o=t.labelTransform)&&void 0!==o?o:"rotate(0)",t.size=i+m)}}else t.size=c;let y=gr(h);y&&(l?t.size+=f+y.width:t.size+=f+y.height)}function p9(t,e,n,r,i,a){let o=(()=>{let{legendContinuous:e}=i;return E({},e,t)})(),{labelSpacing:l=0,titleSpacing:s=0}=o,c=pJ(o,["labelSpacing","titleSpacing"]),u="left"===r||"right"===r,f=(0,nd.hB)(c,"ribbon"),{size:d}=f,h=(0,nd.hB)(c,"handleIcon"),{size:p}=h,g=Math.max(d,2.4*p);t.size=g;let m=ge(t,a),y=gn(c,m);if(y){let e=u?"width":"height",n=(0,aE.Z)(y,t=>t[e]);t.size+=n+l}let v=gr(c);v&&(u?t.size=Math.max(t.size,v.width):t.size+=s+v.height)}function gt(t,e,n,r,i,a){let o=(()=>{let{legendCategory:e}=i,{title:n}=t,[r,a]=Array.isArray(n)?[n,void 0]:[void 0,n];return E({title:r},e,Object.assign(Object.assign({},t),{title:a}))})(),{itemSpacing:l,itemMarkerSize:s,titleSpacing:c,rowPadding:u,colPadding:f,maxCols:d=1/0,maxRows:h=1/0}=o,p=pJ(o,["itemSpacing","itemMarkerSize","titleSpacing","rowPadding","colPadding","maxCols","maxRows"]),{cols:g,length:m}=t,y=t=>Math.min(t,h),v=t=>Math.min(t,d),b="left"===r||"right"===r,x=void 0===m?e+(b?0:n[0]+n[1]):m,O=gr(p),w=ge(t,a),_=gn(p,w,"itemLabel"),k=Math.max(_[0].height,s)+u,C=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return s+t+l[0]+e};b?(()=>{let e=-1/0,n=0,r=1,i=0,a=-1/0,o=-1/0,l=O?O.height:0,s=x-l;for(let{width:t}of _){let l=C(t,f);e=Math.max(e,l),n+k>s?(r++,a=Math.max(a,i),o=Math.max(o,n),i=1,n=k):(n+=k,i++)}r<=1&&(a=i,o=n),t.size=e*v(r),t.length=o+l,E(t,{cols:v(r),gridRow:a})})():"number"==typeof g?(()=>{let e=Math.ceil(_.length/g),n=(0,aE.Z)(_,t=>C(t.width))*g;t.size=k*y(e)-u,t.length=Math.min(n,x)})():(()=>{let e=1,n=0,r=-1/0;for(let{width:t}of _){let i=C(t,f);n+i>x?(r=Math.max(r,n),n=i,e++):n+=i}1===e&&(r=n),t.size=k*y(e)-u,t.length=r})(),O&&(b?t.size=Math.max(t.size,O.width):t.size+=c+O.height)}function ge(t,e){let[n]=pM("scale",e),{scales:r,tickCount:i,tickMethod:a}=t,o=r.find(t=>"constant"!==t.type&&"identity"!==t.type);return void 0!==i&&(o.tickCount=i),void 0!==a&&(o.tickMethod=a),n(o)}function gn(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"label",{labelFormatter:r,tickFilter:i,label:a=!0}=t,o=pJ(t,["labelFormatter","tickFilter","label"]);if(!a)return null;let l=function(t,e,n){let r=ga(t,n),i=r.map(t=>"number"==typeof t?to(t):t),a=e?"string"==typeof e?(0,oc.WU)(e):e:t.getFormatter?t.getFormatter():t=>"".concat(t);return i.map(a)}(e,r,i),s=(0,nd.hB)(o,n),c=l.map((t,e)=>Object.fromEntries(Object.entries(s).map(n=>{let[r,i]=n;return[r,"function"==typeof i?i(t,e):i]}))),u=l.map((t,e)=>{let n=c[e];return go(t,n)}),f=c.some(t=>t.transform);if(!f){let e=l.map((t,e)=>e);t.indexBBox=new Map(e.map(t=>[t,[l[t],u[t]]]))}return u}function gr(t){let{title:e}=t,n=pJ(t,["title"]);if(!1===e||null==e)return null;let r=(0,nd.hB)(n,"title"),{direction:i,transform:a}=r,o=Array.isArray(e)?e.join(","):e;if("string"!=typeof o)return null;let l=go(o,Object.assign(Object.assign({},r),{transform:a||("vertical"===i?"rotate(-90)":"")}));return l}function gi(t,e,n){let{title:r}=t,[i,a]=Array.isArray(r)?[r,void 0]:[void 0,r],{axis:o,["axis".concat((0,nd.Ez)(e))]:l}=n;return E({title:i},o,l,Object.assign(Object.assign({},t),{title:a}))}function ga(t,e){let n=t.getTicks?t.getTicks():t.getOptions().domain;return e?n.filter(e):n}function go(t,e){let n=t instanceof nN.s$?t:new nN.xv({style:{text:"".concat(t)}}),{filter:r}=e,i=pJ(e,["filter"]);n.attr(Object.assign(Object.assign({},i),{visibility:"none"}));let a=n.getBBox();return a}function gl(t,e,n,r,i,a,o){let l=(0,nZ.ZP)(t,t=>t.position),{padding:s=a.padding,paddingLeft:c=s,paddingRight:u=s,paddingBottom:f=s,paddingTop:d=s}=i,h={paddingBottom:f,paddingLeft:c,paddingTop:d,paddingRight:u};for(let t of r){let r="padding".concat((0,nd.Ez)(sQ(t))),i=l.get(t)||[],s=h[r],c=t=>{void 0===t.size&&(t.size=t.defaultSize)},u=t=>{"group"===t.type?(t.children.forEach(c),t.size=(0,aE.Z)(t.children,t=>t.size)):t.size=t.defaultSize},f=r=>{r.size||("auto"!==s?u(r):(p5(r,e,n,t,a,o),c(r)))},d=t=>{t.type.startsWith("axis")&&void 0===t.labelAutoHide&&(t.labelAutoHide=!0)},p="bottom"===t||"top"===t,g=(0,aA.Z)(i,t=>t.order),m=i.filter(t=>t.type.startsWith("axis")&&t.order==g);if(m.length&&(m[0].crossPadding=0),"number"==typeof s)i.forEach(c),i.forEach(d);else if(0===i.length)h[r]=0;else{let t=p?e+n[0]+n[1]:e,a=p1(i,t);a.forEach(f);let o=a.reduce((t,e)=>{let{size:n,crossPadding:r=12}=e;return t+n+r},0);h[r]=o}}return h}function gs(t){let{width:e,height:n,paddingLeft:r,paddingRight:i,paddingTop:a,paddingBottom:o,marginLeft:l,marginTop:s,marginBottom:c,marginRight:u,innerHeight:f,innerWidth:d,insetBottom:h,insetLeft:p,insetRight:g,insetTop:m}=t,y=r+l,v=a+s,b=i+u,x=o+c,O=e-l-u,w=[y+p,v+m,d-p-g,f-m-h,"center",null,null],_={top:[y,0,d,v,"vertical",!0,c8.Z,l,O],right:[e-b,v,b,f,"horizontal",!1,c8.Z],bottom:[y,n-x,d,x,"vertical",!1,c8.Z,l,O],left:[0,v,y,f,"horizontal",!0,c8.Z],"top-left":[y,0,d,v,"vertical",!0,c8.Z],"top-right":[y,0,d,v,"vertical",!0,c8.Z],"bottom-left":[y,n-x,d,x,"vertical",!1,c8.Z],"bottom-right":[y,n-x,d,x,"vertical",!1,c8.Z],center:w,inner:w,outer:w};return _}var gc=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function gu(t,e,n){let{encode:r={},scale:i={},transform:a=[]}=e,o=gc(e,["encode","scale","transform"]);return[t,Object.assign(Object.assign({},o),{encode:r,scale:i,transform:a})]}function gf(t,e,n){var r,i,a,o;return r=this,i=void 0,a=void 0,o=function*(){let{library:t}=n,{data:r}=e,[i]=pM("data",t),a=function(t){if(eQ(t))return{type:"inline",value:t};if(!t)return{type:"inline",value:null};if(Array.isArray(t))return{type:"inline",value:t};let{type:e="inline"}=t,n=gc(t,["type"]);return Object.assign(Object.assign({},n),{type:e})}(r),{transform:o=[]}=a,l=gc(a,["transform"]),s=[l,...o],c=s.map(i),u=yield(0,nd.ne)(c)(r),f=!r||Array.isArray(r)||Array.isArray(u)?u:{value:u};return[Array.isArray(u)?eJ(u):[],Object.assign(Object.assign({},e),{data:f})]},new(a||(a=Promise))(function(t,e){function n(t){try{s(o.next(t))}catch(t){e(t)}}function l(t){try{s(o.throw(t))}catch(t){e(t)}}function s(e){var r;e.done?t(e.value):((r=e.value)instanceof a?r:new a(function(t){t(r)})).then(n,l)}s((o=o.apply(r,i||[])).next())})}function gd(t,e,n){let{encode:r}=e;if(!r)return[t,e];let i={};for(let[t,e]of Object.entries(r))if(Array.isArray(e))for(let n=0;n{if(function(t){if("object"!=typeof t||t instanceof Date||null===t)return!1;let{type:e}=t;return(0,nd.ri)(e)}(t))return t;let e="function"==typeof t?"transform":"string"==typeof t&&Array.isArray(i)&&i.some(e=>void 0!==e[t])?"field":"constant";return{type:e,value:t}});return[t,Object.assign(Object.assign({},e),{encode:a})]}function gp(t,e,n){let{encode:r}=e;if(!r)return[t,e];let i=eK(r,(t,e)=>{var n;let{type:r}=t;return"constant"!==r||(n=e).startsWith("x")||n.startsWith("y")||n.startsWith("position")||"enterDelay"===n||"enterDuration"===n||"updateDelay"===n||"updateDuration"===n||"exitDelay"===n||"exitDuration"===n?t:Object.assign(Object.assign({},t),{constant:!0})});return[t,Object.assign(Object.assign({},e),{encode:i})]}function gg(t,e,n){let{encode:r,data:i}=e;if(!r)return[t,e];let{library:a}=n,o=function(t){let[e]=pM("encode",t);return(t,n)=>void 0===n||void 0===t?null:Object.assign(Object.assign({},n),{type:"column",value:e(n)(t),field:function(t){let{type:e,value:n}=t;return"field"===e&&"string"==typeof n?n:null}(n)})}(a),l=eK(r,t=>o(i,t));return[t,Object.assign(Object.assign({},e),{encode:l})]}function gm(t,e,n){let{tooltip:r={}}=e;return(0,nd.Qp)(r)?[t,e]:Array.isArray(r)?[t,Object.assign(Object.assign({},e),{tooltip:{items:r}})]:(0,nd.mx)(r)&&fQ(r)?[t,Object.assign(Object.assign({},e),{tooltip:r})]:[t,Object.assign(Object.assign({},e),{tooltip:{items:[r]}})]}function gy(t,e,n){let{data:r,encode:i,tooltip:a={}}=e;if((0,nd.Qp)(a))return[t,e];let o=e=>{if(!e)return e;if("string"==typeof e)return t.map(t=>({name:e,value:r[t][e]}));if((0,nd.mx)(e)){let{field:n,channel:a,color:o,name:l=n,valueFormatter:s=t=>t}=e,c="string"==typeof s?(0,oc.WU)(s):s,u=a&&i[a],f=u&&i[a].field,d=l||f||a,h=[];for(let e of t){let t=n?r[e][n]:u?i[a].value[e]:null;h[e]={name:d,color:o,value:c(t)}}return h}if("function"==typeof e){let n=[];for(let a of t){let t=e(r[a],a,r,i);(0,nd.mx)(t)?n[a]=t:n[a]={value:t}}return n}return e},{title:l,items:s=[]}=a,c=gc(a,["title","items"]),u=Object.assign({title:o(l),items:Array.isArray(s)?s.map(o):[]},c);return[t,Object.assign(Object.assign({},e),{tooltip:u})]}function gv(t,e,n){let{encode:r}=e,i=gc(e,["encode"]);if(!r)return[t,e];let a=Object.entries(r),o=a.filter(t=>{let[,e]=t,{value:n}=e;return Array.isArray(n[0])}).flatMap(e=>{let[n,r]=e,i=[[n,Array(t.length).fill(void 0)]],{value:a}=r,o=gc(r,["value"]);for(let e=0;e{let[e,n]=t;return[e,Object.assign({type:"column",value:n},o)]})}),l=Object.fromEntries([...a,...o]);return[t,Object.assign(Object.assign({},i),{encode:l})]}function gb(t,e,n){let{axis:r={},legend:i={},slider:a={},scrollbar:o={}}=e,l=(t,e)=>{if("boolean"==typeof t)return t?{}:null;let n=t[e];return void 0===n||n?n:null},s="object"==typeof r?Array.from(new Set(["x","y","z",...Object.keys(r)])):["x","y","z"];return E(e,{scale:Object.assign(Object.assign({},Object.fromEntries(s.map(t=>{let e=l(o,t);return[t,Object.assign({guide:l(r,t),slider:l(a,t),scrollbar:e},e&&{ratio:void 0===e.ratio?.5:e.ratio})]}))),{color:{guide:l(i,"color")},size:{guide:l(i,"size")},shape:{guide:l(i,"shape")},opacity:{guide:l(i,"opacity")}})}),[t,e]}function gx(t,e,n){let{animate:r}=e;return r||void 0===r||E(e,{animate:{enter:{type:null},exit:{type:null},update:{type:null}}}),[t,e]}var gO=function(t,e,n,r){return new(n||(n=Promise))(function(i,a){function o(t){try{s(r.next(t))}catch(t){a(t)}}function l(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(o,l)}s((r=r.apply(t,e||[])).next())})},gw=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},g_=function(t,e,n,r){return new(n||(n=Promise))(function(i,a){function o(t){try{s(r.next(t))}catch(t){a(t)}}function l(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(o,l)}s((r=r.apply(t,e||[])).next())})},gk=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function gC(t){t.style("transform",t=>"translate(".concat(t.layout.x,", ").concat(t.layout.y,")"))}function gj(t,e){return g_(this,void 0,void 0,function*(){let n=yield function(t,e){return g_(this,void 0,void 0,function*(){let[n,r]=pM("mark",e),i=new Set(Object.keys(e).map(t=>{var e;return null===(e=/component\.(.*)/.exec(t))||void 0===e?void 0:e[1]}).filter(nd.ri)),{marks:a}=t,o=[],l=[],s=[...a],{width:c,height:u}=function(t){let{height:e,width:n,padding:r=0,paddingLeft:i=r,paddingRight:a=r,paddingTop:o=r,paddingBottom:l=r,margin:s=16,marginLeft:c=s,marginRight:u=s,marginTop:f=s,marginBottom:d=s,inset:h=0,insetLeft:p=h,insetRight:g=h,insetTop:m=h,insetBottom:y=h}=t,v=t=>"auto"===t?20:t,b=n-v(i)-v(a)-c-u-p-g,x=e-v(o)-v(l)-f-d-m-y;return{width:b,height:x}}(t),f={options:t,width:c,height:u};for(;s.length;){let[t]=s.splice(0,1),a=yield gI(t,e),{type:c=(0,nd.vU)("G2Mark type is required."),key:u}=a;if(i.has(c))l.push(a);else{let{props:t={}}=r(c),{composite:e=!0}=t;if(e){let{data:t}=a,e=Object.assign(Object.assign({},a),{data:t?Array.isArray(t)?t:t.value:t}),r=yield n(e,f),i=Array.isArray(r)?r:[r];s.unshift(...i.map((t,e)=>Object.assign(Object.assign({},t),{key:"".concat(u,"-").concat(e)})))}else o.push(a)}}return Object.assign(Object.assign({},t),{marks:o,components:l})})}(t,e),r=function(t){let{coordinate:e={},interaction:n={},style:r={},marks:i}=t,a=gk(t,["coordinate","interaction","style","marks"]),o=i.map(t=>t.coordinate||{}),l=i.map(t=>t.interaction||{}),s=i.map(t=>t.viewStyle||{}),c=[...o,e].reduceRight((t,e)=>E(t,e),{}),u=[n,...l].reduce((t,e)=>E(t,e),{}),f=[...s,r].reduce((t,e)=>E(t,e),{});return Object.assign(Object.assign({},a),{marks:i,coordinate:c,interaction:u,style:f})}(n);t.interaction=r.interaction,t.coordinate=r.coordinate,t.marks=[...r.marks,...r.components];let i=pE(r,e),a=yield gM(i,e);return gA(a,i,e)})}function gM(t,e){return g_(this,void 0,void 0,function*(){let[n]=pM("theme",e),[,r]=pM("mark",e),{theme:i,marks:a,coordinates:o=[]}=t,l=n(gB(i)),s=new Map;for(let t of a){let{type:n}=t,{props:i={}}=r(n),a=yield function(t,e,n){return gO(this,void 0,void 0,function*(){let[r,i]=yield function(t,e,n){return gO(this,void 0,void 0,function*(){let{library:r}=n,[i]=pM("transform",r),{preInference:a=[],postInference:o=[]}=e,{transform:l=[]}=t,s=[gu,gf,gd,gh,gp,gg,gv,gx,gb,gm,...a.map(i),...l.map(i),...o.map(i),gy],c=[],u=t;for(let t of s)[c,u]=yield t(c,u,n);return[c,u]})}(t,e,{library:n}),{encode:a,scale:o,data:l,tooltip:s}=i;if(!1===Array.isArray(l))return null;let{channels:c}=e,u=(0,nZ.Q3)(Object.entries(a).filter(t=>{let[,e]=t;return(0,nd.ri)(e)}),t=>t.map(t=>{let[e,n]=t;return Object.assign({name:e},n)}),t=>{var e;let[n]=t,r=null===(e=/([^\d]+)\d*$/.exec(n))||void 0===e?void 0:e[1],i=c.find(t=>t.name===r);return(null==i?void 0:i.independent)?n:r}),f=c.filter(t=>{let{name:e,required:n}=t;if(u.find(t=>{let[n]=t;return n===e}))return!0;if(n)throw Error("Missing encoding for channel: ".concat(e,"."));return!1}).flatMap(t=>{let{name:e,scale:n,scaleKey:r,range:i,quantitative:a,ordinal:l}=t,s=u.filter(t=>{let[n]=t;return n.startsWith(e)});return s.map((t,e)=>{let[s,c]=t,u=c.some(t=>t.visual),f=c.some(t=>t.constant),d=o[s]||{},{independent:h=!1,key:p=r||s,type:g=f?"constant":u?"identity":n}=d,m=gw(d,["independent","key","type"]),y="constant"===g;return{name:s,values:c,scaleKey:h||y?Symbol("independent"):p,scale:Object.assign(Object.assign({type:g,range:y?void 0:i},m),{quantitative:a,ordinal:l})}})});return[i,Object.assign(Object.assign({},e),{index:r,channels:f,tooltip:s})]})}(t,i,e);if(a){let[t,e]=a;s.set(t,e)}}let c=(0,nZ.ZP)(Array.from(s.values()).flatMap(t=>t.channels),t=>{let{scaleKey:e}=t;return e});for(let t of c.values()){let n=t.reduce((t,e)=>{let{scale:n}=e;return E(t,n)},{}),{scaleKey:r}=t[0],{values:i}=t[0],a=Array.from(new Set(i.map(t=>t.field).filter(nd.ri))),s=E({guide:{title:0===a.length?void 0:a},field:a[0]},n),{name:c}=t[0],u=t.flatMap(t=>{let{values:e}=t;return e.map(t=>t.value)}),f=Object.assign(Object.assign({},function(t,e,n,r,i,a){let{guide:o={}}=n,l=function(t,e,n){let{type:r,domain:i,range:a,quantitative:o,ordinal:l}=n;return void 0!==r?r:pV(e,nd.mx)?"identity":"string"==typeof a?"linear":(i||a||[]).length>2?pW(t,l):void 0!==i?pq([i])?pW(t,l):pY(e)?"time":pH(t,a,o):pq(e)?pW(t,l):pY(e)?"time":pH(t,a,o)}(t,e,n);if("string"!=typeof l)return n;let s=function(t,e,n,r){let{domain:i}=r;if(void 0!==i)return i;switch(t){case"linear":case"time":case"log":case"pow":case"sqrt":case"quantize":case"threshold":return pG(function(t,e){let{zero:n=!1}=e,r=1/0,i=-1/0;for(let e of t)for(let t of e)(0,nd.ri)(t)&&(r=Math.min(r,+t),i=Math.max(i,+t));return r===1/0?[]:n?[Math.min(0,r),i]:[r,i]}(n,r),r);case"band":case"ordinal":case"point":return Array.from(new Set(n.flat()));case"quantile":return n.flat().sort();case"sequential":return pG(function(t){let e=1/0,n=-1/0;for(let r of t)for(let t of r)(0,nd.ri)(t)&&(e=Math.min(e,+t),n=Math.max(n,+t));return e===1/0?[]:[e<0?-n:e,n]}(n),r);default:return[]}}(l,0,e,n),c=function(t,e,n){let{ratio:r}=n;return null==r?e:pz({type:t})?function(t,e,n){let r=t.map(Number),i=new eP({domain:r,range:[r[0],r[0]+(r[r.length-1]-r[0])*e]});return"time"===n?t.map(t=>new Date(i.map(t))):t.map(t=>i.map(t))}(e,r,t):pF({type:t})?function(t,e){let n=Math.round(t.length*e);return t.slice(0,n)}(e,r):e}(l,s,n);return Object.assign(Object.assign(Object.assign({},n),function(t,e,n,r,i){switch(t){case"linear":case"time":case"log":case"pow":case"sqrt":return function(t,e){let{interpolate:n=es,nice:r=!1,tickCount:i=5}=e;return Object.assign(Object.assign({},e),{interpolate:n,nice:r,tickCount:i})}(0,r);case"band":case"point":return function(t,e,n,r){if(void 0!==r.padding||void 0!==r.paddingInner||void 0!==r.paddingOuter)return Object.assign(Object.assign({},r),{unknown:NaN});let i="enterDelay"===e||"enterDuration"===e||"size"===e?0:"band"===t?pL(n)?0:.1:"point"===t?.5:0,{paddingInner:a=i,paddingOuter:o=i}=r;return Object.assign(Object.assign({},r),{paddingInner:a,paddingOuter:o,padding:i,unknown:NaN})}(t,e,i,r);case"sequential":return function(t){let{palette:e="ylGnBu",offset:n}=t,r=os(e),i=pZ["interpolate".concat(r)];if(!i)throw Error("Unknown palette: ".concat(r));return{interpolator:n?t=>i(n(t)):i}}(r);default:return r}}(l,t,0,n,r)),{domain:c,range:function(t,e,n,r,i,a,o){let{range:l}=r;if("string"==typeof l)return l.split("-");if(void 0!==l)return l;let{rangeMin:s,rangeMax:c}=r;switch(t){case"linear":case"time":case"log":case"pow":case"sqrt":{let t=p$(n,r,i,a,o),[l,u]="enterDelay"===e?[0,1e3]:"enterDuration"==e?[300,1e3]:e.startsWith("y")||e.startsWith("position")?[1,0]:"color"===e?[t[0],e0(t)]:"opacity"===e?[0,1]:"size"===e?[1,10]:[0,1];return[null!=s?s:l,null!=c?c:u]}case"band":case"point":{let t="size"===e?5:0,n="size"===e?10:1;return[null!=s?s:t,null!=c?c:n]}case"ordinal":return p$(n,r,i,a,o);case"sequential":return;case"constant":return[n[0][0]];default:return[]}}(l,t,e,n,c,i,a),expectedDomain:s,guide:o,name:t,type:l})}(c,u,s,o,l,e)),{key:r});t.forEach(t=>t.scale=f)}return s})}function gS(t,e,n,r){let i=t.theme,a="string"==typeof e&&i[e]||{},o=r(E(a,Object.assign({type:e},n)));return o}function gA(t,e,n){let[r]=pM("mark",n),[i]=pM("theme",n),[a]=pM("labelTransform",n),{key:o,frame:l=!1,theme:s,clip:c,style:u={},labelTransform:f=[]}=e,d=i(gB(s)),h=Array.from(t.values()),p=function(t,e){var n;let{components:r=[]}=e,i=["scale","encode","axis","legend","data","transform"],a=Array.from(new Set(t.flatMap(t=>t.channels.map(t=>t.scale)))),o=new Map(a.map(t=>[t.name,t]));for(let t of r){let e=function(t){let{channels:e=[],type:n,scale:r={}}=t,i=["shape","color","opacity","size"];return 0!==e.length?e:"axisX"===n?["x"]:"axisY"===n?["y"]:"legends"===n?Object.keys(r).filter(t=>i.includes(t)):[]}(t);for(let r of e){let e=o.get(r),l=(null===(n=t.scale)||void 0===n?void 0:n[r])||{},{independent:s=!1}=l;if(e&&!s){let{guide:n}=e,r="boolean"==typeof n?{}:n;e.guide=E({},r,t),Object.assign(e,l)}else{let e=Object.assign(Object.assign({},l),{expectedDomain:l.domain,name:r,guide:oo(t,i)});a.push(e)}}}return a}(h,e),g=(function(t,e,n){let{coordinates:r=[],title:i}=e,[,a]=pM("component",n),o=t.filter(t=>{let{guide:e}=t;return null!==e}),l=[],s=function(t,e,n){let[,r]=pM("component",n),{coordinates:i}=t;function a(t,e,n,a){let o=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return"x"===t?pT(n)?"".concat(e,"Y"):"".concat(e,"X"):"y"===t?pT(n)?"".concat(e,"X"):"".concat(e,"Y"):null}(e,t,i);if(!a||!o)return;let{props:l}=r(o),{defaultPosition:s,defaultSize:c,defaultOrder:u,defaultCrossPadding:[f]}=l;return Object.assign(Object.assign({position:s,defaultSize:c,order:u,type:o,crossPadding:f},a),{scales:[n]})}return e.filter(t=>t.slider||t.scrollbar).flatMap(t=>{let{slider:e,scrollbar:n,name:r}=t;return[a("slider",r,t,e),a("scrollbar",r,t,n)]}).filter(t=>!!t)}(e,t,n);if(l.push(...s),i){let{props:t}=a("title"),{defaultPosition:e,defaultOrientation:n,defaultOrder:r,defaultSize:o,defaultCrossPadding:s}=t,c="string"==typeof i?{title:i}:i;l.push(Object.assign({type:"title",position:e,orientation:n,order:r,crossPadding:s[0],defaultSize:o},c))}let c=function(t,e){let n=t.filter(t=>(function(t){if(!t||!t.type)return!1;if("function"==typeof t.type)return!0;let{type:e,domain:n,range:r,interpolator:i}=t,a=n&&n.length>0,o=r&&r.length>0;return!!(["linear","sqrt","log","time","pow","threshold","quantize","quantile","ordinal","band","point"].includes(e)&&a&&o||["sequential"].includes(e)&&a&&(o||i)||["constant","identity"].includes(e)&&o)})(t));return[...function(t,e){let n=["shape","size","color","opacity"],r=(t,e)=>"constant"===t&&"size"===e,i=t.filter(t=>{let{type:e,name:i}=t;return"string"==typeof e&&n.includes(i)&&!r(e,i)}),a=i.filter(t=>{let{type:e}=t;return"constant"===e}),o=i.filter(t=>{let{type:e}=t;return"constant"!==e}),l=(0,nZ.Xx)(o,t=>t.field?t.field:Symbol("independent")).map(t=>{let[e,n]=t;return[e,[...n,...a]]}).filter(t=>{let[,e]=t;return e.some(t=>"constant"!==t.type)}),s=new Map(l);if(0===s.size)return[];let c=t=>t.sort((t,e)=>{let[n]=t,[r]=e;return n.localeCompare(r)}),u=Array.from(s).map(t=>{let[,e]=t,n=(function(t){if(1===t.length)return[t];let e=[];for(let n=1;n<=t.length;n++)e.push(...function t(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;if(1===n)return e.map(t=>[t]);let r=[];for(let i=0;i{r.push([e[i],...t])})}return r}(t,n));return e})(e).sort((t,e)=>e.length-t.length),r=n.map(t=>({combination:t,option:t.map(t=>[t.name,function(t){let{type:e}=t;return"string"!=typeof e?null:e in pU?"continuous":e in pX?"discrete":e in pQ?"distribution":e in pK?"constant":null}(t)])}));for(let{option:t,combination:e}of r)if(!t.every(t=>"constant"===t[1])&&t.every(t=>"discrete"===t[1]||"constant"===t[1]))return["legendCategory",e];for(let[t,e]of h6)for(let{option:n,combination:i}of r)if(e.some(t=>h4(c(t),c(n))))return[t,i];return null}).filter(nd.ri);return u}(n,0),...n.map(t=>{let{name:n}=t;if(pP(e,"helix").length>0||pL(e)||pT(e)&&(pR(e)||pB(e)))return null;if(n.startsWith("x"))return pR(e)?["axisArc",[t]]:pB(e)?["axisLinear",[t]]:[pT(e)?"axisY":"axisX",[t]];if(n.startsWith("y"))return pR(e)?["axisLinear",[t]]:pB(e)?["axisArc",[t]]:[pT(e)?"axisX":"axisY",[t]];if(n.startsWith("z"))return["axisZ",[t]];if(n.startsWith("position")){if(pP(e,"radar").length>0)return["axisRadar",[t]];if(!pR(e))return["axisY",[t]]}return null}).filter(nd.ri)]}(o,r);return c.forEach(t=>{let[e,n]=t,{props:i}=a(e),{defaultPosition:s,defaultPlane:c="xy",defaultOrientation:u,defaultSize:f,defaultOrder:d,defaultLength:h,defaultPadding:p=[0,0],defaultCrossPadding:g=[0,0]}=i,m=E({},...n),{guide:y,field:v}=m,b=Array.isArray(y)?y:[y];for(let t of b){let[i,a]=function(t,e,n,r,i,a,o){let[l]=p2(o),s=[r.position||e,null!=l?l:n];return"string"==typeof t&&t.startsWith("axis")?function(t,e,n,r,i){let{name:a}=n[0];if("axisRadar"===t){let t=r.filter(t=>t.name.startsWith("position")),e=function(t){let e=/position(\d*)/g.exec(t);return e?+e[1]:null}(a);if(a===t.slice(-1)[0].name||null===e)return[null,null];let[n,o]=p2(i),l=(o-n)/(t.length-1)*e+n;return["center",l]}if("axisY"===t&&pP(i,"parallel").length>0)return pT(i)?["center","horizontal"]:["center","vertical"];if("axisLinear"===t){let[t]=p2(i);return["center",t]}return"axisArc"===t?"inner"===e[0]?["inner",null]:["outer",null]:pR(i)||pB(i)?["center",null]:"axisX"===t&&pP(i,"reflect").length>0||"axisX"===t&&pP(i,"reflectY").length>0?["top",null]:e}(t,s,i,a,o):"string"==typeof t&&t.startsWith("legend")&&pR(o)&&"center"===r.position?["center","vertical"]:s}(e,s,u,t,n,o,r);if(!i&&!a)continue;let m="left"===i||"right"===i,y=m?p[1]:p[0],b=m?g[1]:g[0],{size:x,order:O=d,length:w=h,padding:_=y,crossPadding:k=b}=t;l.push(Object.assign(Object.assign({title:v},t),{defaultSize:f,length:w,position:i,plane:c,orientation:a,padding:_,order:O,crossPadding:k,size:x,type:e,scales:n}))}}),l})(function(t,e,n){var r;for(let[e]of n.entries())if("cell"===e.type)return t.filter(t=>"shape"!==t.name);if(1!==e.length||t.some(t=>"shape"===t.name))return t;let{defaultShape:i}=e[0];if(!["point","line","rect","hollow"].includes(i))return t;let a=(null===(r=t.find(t=>"color"===t.name))||void 0===r?void 0:r.field)||null;return[...t,{field:a,name:"shape",type:"constant",domain:[],range:[{point:"point",line:"hyphen",rect:"square",hollow:"hollow"}[i]]}]}(Array.from(p),h,t),e,n).map(t=>{let e=E(t,t.style);return delete e.style,e}),m=function(t,e,n,r){var i,a;let{width:o,height:l,depth:s,x:c=0,y:u=0,z:f=0,inset:d=null!==(i=n.inset)&&void 0!==i?i:0,insetLeft:h=d,insetTop:p=d,insetBottom:g=d,insetRight:m=d,margin:y=null!==(a=n.margin)&&void 0!==a?a:0,marginLeft:v=y,marginBottom:b=y,marginTop:x=y,marginRight:O=y,padding:w=n.padding,paddingBottom:_=w,paddingLeft:k=w,paddingRight:C=w,paddingTop:j=w}=function(t,e,n,r){let{coordinates:i}=e;if(!pR(i)&&!pB(i))return e;let a=t.filter(t=>"string"==typeof t.type&&t.type.startsWith("axis"));if(0===a.length)return e;let o=a.map(t=>{let e="axisArc"===t.type?"arc":"linear";return gi(t,e,n)}),l=(0,aE.Z)(o,t=>{var e;return null!==(e=t.labelSpacing)&&void 0!==e?e:0}),s=a.flatMap((t,e)=>{let n=o[e],i=ge(t,r),a=gn(n,i);return a}).filter(nd.ri),c=(0,aE.Z)(s,t=>t.height)+l,u=a.flatMap((t,e)=>{let n=o[e];return gr(n)}).filter(t=>null!==t),f=0===u.length?0:(0,aE.Z)(u,t=>t.height),{inset:d=c,insetLeft:h=d,insetBottom:p=d,insetTop:g=d+f,insetRight:m=d}=e;return Object.assign(Object.assign({},e),{insetLeft:h,insetBottom:p,insetTop:g,insetRight:m})}(t,e,n,r),M=1/4,S=(t,n,r,i,a)=>{let{marks:o}=e;if(0===o.length||t-i-a-t*M>0)return[i,a];let l=t*(1-M);return["auto"===n?l*i/(i+a):i,"auto"===r?l*a/(i+a):a]},A=t=>"auto"===t?20:null!=t?t:20,E=A(j),P=A(_),R=gl(t,l-E-P,[E+x,P+b],["left","right"],e,n,r),{paddingLeft:T,paddingRight:L}=R,B=o-v-O,[Z,I]=S(B,k,C,T,L),D=B-Z-I,N=gl(t,D,[Z+v,I+O],["bottom","top"],e,n,r),{paddingTop:z,paddingBottom:F}=N,$=l-b-x,[W,H]=S($,_,j,F,z),G=$-W-H;return{width:o,height:l,depth:s,insetLeft:h,insetTop:p,insetBottom:g,insetRight:m,innerWidth:D,innerHeight:G,paddingLeft:Z,paddingRight:I,paddingTop:H,paddingBottom:W,marginLeft:v,marginBottom:b,marginTop:x,marginRight:O,x:c,y:u,z:f}}(g,e,d,n),y=function(t,e,n){let[r]=pM("coordinate",n),{innerHeight:i,innerWidth:a,insetLeft:o,insetTop:l,insetRight:s,insetBottom:c}=t,{coordinates:u=[]}=e,f=u.find(t=>"cartesian"===t.type||"cartesian3D"===t.type)?u:[...u,{type:"cartesian"}],d="cartesian3D"===f[0].type,h=Object.assign(Object.assign({},t),{x:o,y:l,width:a-o-s,height:i-c-l,transformations:f.flatMap(r)}),p=d?new h8.Coordinate3D(h):new h8.Coordinate(h);return p}(m,e,n),v=l?E({mainLineWidth:1,mainStroke:"#000"},u):u;!function(t,e,n){let r=(0,nZ.ZP)(t,t=>"".concat(t.plane||"xy","-").concat(t.position)),{paddingLeft:i,paddingRight:a,paddingTop:o,paddingBottom:l,marginLeft:s,marginTop:c,marginBottom:u,marginRight:f,innerHeight:d,innerWidth:h,insetBottom:p,insetLeft:g,insetRight:m,insetTop:y,height:v,width:b,depth:x}=n,O={xy:gs({width:b,height:v,paddingLeft:i,paddingRight:a,paddingTop:o,paddingBottom:l,marginLeft:s,marginTop:c,marginBottom:u,marginRight:f,innerHeight:d,innerWidth:h,insetBottom:p,insetLeft:g,insetRight:m,insetTop:y}),yz:gs({width:x,height:v,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:0,marginTop:0,marginBottom:0,marginRight:0,innerWidth:x,innerHeight:v,insetBottom:0,insetLeft:0,insetRight:0,insetTop:0}),xz:gs({width:b,height:x,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:0,marginTop:0,marginBottom:0,marginRight:0,innerWidth:b,innerHeight:x,insetBottom:0,insetLeft:0,insetRight:0,insetTop:0})};for(let[t,n]of r.entries()){let[r,i]=t.split("-"),a=O[r][i],[o,l]=e1(n,t=>"string"==typeof t.type&&!!("center"===i||t.type.startsWith("axis")&&["inner","outer"].includes(i)));o.length&&function(t,e,n,r){let[i,a]=e1(t,t=>!!("string"==typeof t.type&&t.type.startsWith("axis")));(function(t,e,n,r){if("center"===r){if(G(e)&&$(e))(function(t,e,n,r){let[i,a,o,l]=n;for(let e of t)e.bbox={x:i,y:a,width:o,height:l},e.radar={index:t.indexOf(e),count:t.length}})(t,0,n,0);else{var i;$(e)?function(t,e,n){let[r,i,a,o]=n;for(let e of t)e.bbox={x:r,y:i,width:a,height:o}}(t,0,n):G(e)&&("horizontal"===(i=t[0].orientation)?function(t,e,n){let[r,i,a]=n,o=Array(t.length).fill(0),l=e.map(o),s=l.filter((t,e)=>e%2==1).map(t=>t+i);for(let e=0;ee%2==0).map(t=>t+r);for(let e=0;enull==c?void 0:c(t.order,e.order));let x=t=>"title"===t||"group"===t||t.startsWith("legend"),O=(t,e,n)=>void 0===n?e:x(t)?n:e,w=(t,e,n)=>void 0===n?e:x(t)?n:e;for(let e=0,n=s?h+y:h;e"group"===t.type);for(let t of _){let{bbox:e,children:n}=t,r=e[v],i=r/n.length,a=n.reduce((t,e)=>{var n;let r=null===(n=e.layout)||void 0===n?void 0:n.justifyContent;return r||t},"flex-start"),o=n.map((t,e)=>{let{length:r=i,padding:a=0}=t;return r+(e===n.length-1?0:a)}),l=(0,ud.Z)(o),s=r-l,c="flex-start"===a?0:"center"===a?s/2:s;for(let t=0,r=e[p]+c;t{let{type:e}=t;return"axisX"===e}),n=t.find(t=>{let{type:e}=t;return"axisY"===e}),r=t.find(t=>{let{type:e}=t;return"axisZ"===e});e&&n&&r&&(e.plane="xy",n.plane="xy",r.plane="yz",r.origin=[e.bbox.x,e.bbox.y,0],r.eulerAngles=[0,-90,0],r.bbox.x=e.bbox.x,r.bbox.y=e.bbox.y,t.push(Object.assign(Object.assign({},e),{plane:"xz",showLabel:!1,showTitle:!1,origin:[e.bbox.x,e.bbox.y,0],eulerAngles:[-90,0,0]})),t.push(Object.assign(Object.assign({},n),{plane:"yz",showLabel:!1,showTitle:!1,origin:[n.bbox.x+n.bbox.width,n.bbox.y,0],eulerAngles:[0,-90,0]})),t.push(Object.assign(Object.assign({},r),{plane:"xz",actualPosition:"left",showLabel:!1,showTitle:!1,eulerAngles:[90,-90,0]})))}(g);let b={};for(let t of g){let{scales:e=[]}=t,r=[];for(let t of e){let{name:e}=t,i=pD(t,n);r.push(i),"y"===e&&i.update(Object.assign(Object.assign({},i.getOptions()),{xScale:b.x})),pI(b,{[e]:i})}t.scaleInstances=r}let x=[];for(let[e,i]of t.entries()){let{children:t,dataDomain:a,modifier:l,key:s}=e,{index:c,channels:u,tooltip:f}=i,d=Object.fromEntries(u.map(t=>{let{name:e,scale:n}=t;return[e,n]})),h=eK(d,t=>pD(t,n));pI(b,h);let p=function(t,e){let n={};for(let r of t){let{values:t,name:i}=r,a=e[i];for(let e of t){let{name:t,value:r}=e;n[t]=r.map(t=>a.map(t))}}return n}(u,h),g=r(e),[v,O,w]=function(t){let[e,n,r]=t;if(r)return[e,n,r];let i=[],a=[];for(let t=0;t{let[e,n]=t;return(0,nd.ri)(e)&&(0,nd.ri)(n)})&&(i.push(r),a.push(o))}return[i,a]}(g(c,h,p,y)),_=a||v.length,k=l?l(O,_,m):[],C=t=>{var e,n;return null===(n=null===(e=f.title)||void 0===e?void 0:e[t])||void 0===n?void 0:n.value},j=t=>f.items.map(e=>e[t]),M=v.map((t,e)=>{let n=Object.assign({points:O[e],transform:k[e],index:t,markKey:s,viewKey:o},f&&{title:C(t),items:j(t)});for(let[r,i]of Object.entries(p))n[r]=i[t],w&&(n["series".concat(os(r))]=w[e].map(t=>i[t]));return w&&(n.seriesIndex=w[e]),w&&f&&(n.seriesItems=w[e].map(t=>j(t)),n.seriesTitle=w[e].map(t=>C(t))),n});i.data=M,i.index=v;let S=null==t?void 0:t(M,h,m);x.push(...S||[])}let O={layout:m,theme:d,coordinate:y,markState:t,key:o,clip:c,scale:b,style:v,components:g,labelTransform:(0,nd.qC)(f.map(a))};return[O,x]}function gE(t,e,n,r,i){return g_(this,void 0,void 0,function*(){let{components:a,theme:o,layout:l,markState:s,coordinate:c,key:u,style:f,clip:d,scale:h}=t,{x:p,y:g,width:m,height:y}=l,v=gk(l,["x","y","width","height"]),b=["view","plot","main","content"],x=b.map((t,e)=>e),O=b.map(t=>(0,nd.c7)(Object.assign({},o.view,f),t)),w=["a","margin","padding","inset"].map(t=>(0,nd.hB)(v,t)),_=t=>t.style("x",t=>S[t].x).style("y",t=>S[t].y).style("width",t=>S[t].width).style("height",t=>S[t].height).each(function(t,e,n){!function(t,e){for(let[n,r]of Object.entries(e))t.style(n,r)}((0,Q.F)(n),O[t])}),k=0,C=0,j=m,M=y,S=x.map(t=>{let e=w[t],{left:n=0,top:r=0,bottom:i=0,right:a=0}=e;return{x:k+=n,y:C+=r,width:j-=n+a,height:M-=r+i}});e.selectAll(gF(lm.tu)).data(x.filter(t=>(0,nd.ri)(O[t])),t=>b[t]).join(t=>t.append("rect").attr("className",lm.tu).style("zIndex",-2).call(_),t=>t.call(_),t=>t.remove());let A=function(t){let e=-1/0,n=1/0;for(let[r,i]of t){let{animate:t={}}=r,{data:a}=i,{enter:o={},update:l={},exit:s={}}=t,{type:c,duration:u=300,delay:f=0}=l,{type:d,duration:h=300,delay:p=0}=o,{type:g,duration:m=300,delay:y=0}=s;for(let t of a){let{updateType:r=c,updateDuration:i=u,updateDelay:a=f,enterType:o=d,enterDuration:l=h,enterDelay:s=p,exitDuration:v=m,exitDelay:b=y,exitType:x=g}=t;(void 0===r||r)&&(e=Math.max(e,i+a),n=Math.min(n,a)),(void 0===x||x)&&(e=Math.max(e,v+b),n=Math.min(n,b)),(void 0===o||o)&&(e=Math.max(e,l+s),n=Math.min(n,s))}}return e===-1/0?null:[n,e-n]}(s),P=!!A&&{duration:A[1]};for(let[,t]of(0,nZ.Xx)(a,t=>"".concat(t.type,"-").concat(t.position)))t.forEach((t,e)=>t.index=e);let R=e.selectAll(gF(lm.nQ)).data(a,t=>"".concat(t.type,"-").concat(t.position,"-").concat(t.index)).join(t=>t.append("g").style("zIndex",t=>{let{zIndex:e}=t;return e||-1}).attr("className",lm.nQ).append(t=>p0(E({animate:P,scale:h},t),c,o,r,s)),t=>t.transition(function(t,e,n){let{preserve:i=!1}=t;if(i)return;let a=p0(E({animate:P,scale:h},t),c,o,r,s),{attributes:l}=a,[u]=n.childNodes;return u.update(l,!1)})).transitions();n.push(...R.flat().filter(nd.ri));let T=e.selectAll(gF(lm.V$)).data([l],()=>u).join(t=>t.append("rect").style("zIndex",0).style("fill","transparent").attr("className",lm.V$).call(gD).call(gz,Array.from(s.keys())).call(g$,d),t=>t.call(gz,Array.from(s.keys())).call(t=>A?function(t,e){let[n,r]=e;t.transition(function(t,e,i){let{transform:a,width:o,height:l}=i.style,{paddingLeft:s,paddingTop:c,innerWidth:u,innerHeight:f,marginLeft:d,marginTop:h}=t,p=[{transform:a,width:o,height:l},{transform:"translate(".concat(s+d,", ").concat(c+h,")"),width:u,height:f}];return i.animate(p,{delay:n,duration:r,fill:"both"})})}(t,A):gD(t)).call(g$,d)).transitions();for(let[a,o]of(n.push(...T.flat()),s.entries())){let{data:l}=o,{key:s,class:c,type:u}=a,f=e.select("#".concat(s)),d=function(t,e,n,r,i){let[a]=pM("shape",r),{data:o,encode:l}=t,{defaultShape:s,data:c,shape:u}=e,f=eK(l,t=>t.value),d=c.map(t=>t.points),{theme:h,coordinate:p}=n,{type:g,style:m={}}=t,y=Object.assign(Object.assign({},i),{document:pS(i),coordinate:p,theme:h});return e=>{let{shape:n=s}=m,{shape:r=n,points:i,seriesIndex:l,index:c}=e,p=gk(e,["shape","points","seriesIndex","index"]),v=Object.assign(Object.assign({},p),{index:c}),b=l?l.map(t=>o[t]):o[c],x=l||c,O=eK(m,t=>gP(t,b,x,o,{channel:f})),w=u[r]?u[r](O,y):a(Object.assign(Object.assign({},O),{type:gN(t,r)}),y),_=gR(h,g,r,s);return w(i,v,_,d)}}(a,o,t,r,i),h=gT("enter",a,o,t,r),p=gT("update",a,o,t,r),g=gT("exit",a,o,t,r),m=function(t,e,n,r){let i=t.node().parentElement;return i.findAll(t=>void 0!==t.style.facet&&t.style.facet===n&&t!==e.node()).flatMap(t=>t.getElementsByClassName(r))}(e,f,c,"element"),y=f.selectAll(gF(lm.Tt)).selectFacetAll(m).data(l,t=>t.key,t=>t.groupKey).join(t=>t.append(d).attr("className",lm.Tt).attr("markType",u).transition(function(t,e,n){return h(t,[n])}),t=>t.call(t=>{let e=t.parent(),n=(0,nd.Ye)(t=>{let[e,n]=t.getBounds().min;return[e,n]});t.transition(function(t,r,i){!function(t,e,n){if(!t.__facet__)return;let r=t.parentNode.parentNode,i=e.parentNode,[a,o]=n(r),[l,s]=n(i),c="translate(".concat(a-l,", ").concat(o-s,")");(0,nd.gn)(t,c),e.append(t)}(i,e,n);let a=d(t,r),o=p(t,[i],[a]);return null!==o||(i.nodeName===a.nodeName&&"g"!==a.nodeName?(0,nd.DM)(i,a):(i.parentNode.replaceChild(a,i),a.className=lm.Tt,a.markType=u,a.__data__=i.__data__)),o}).attr("markType",u).attr("className",lm.Tt)}),t=>t.each(function(t,e,n){n.__removed__=!0}).transition(function(t,e,n){return g(t,[n])}).remove(),t=>t.append(d).attr("className",lm.Tt).attr("markType",u).transition(function(t,e,n){let{__fromElements__:r}=n,i=p(t,r,[n]),a=new Q.Y(r,null,n.parentNode);return a.transition(i).remove(),i}),t=>t.transition(function(t,e,n){let r=new Q.Y([],n.__toData__,n.parentNode),i=r.append(d).attr("className",lm.Tt).attr("markType",u).nodes();return p(t,[n],i)}).remove()).transitions();n.push(...y.flat())}!function(t,e,n,r,i){let[a]=pM("labelTransform",r),{markState:o,labelTransform:l}=t,s=e.select(gF(lm.z3)).node(),c=new Map,u=new Map,f=Array.from(o.entries()).flatMap(n=>{let[a,o]=n,{labels:l=[],key:s}=a,f=function(t,e,n,r,i){let[a]=pM("shape",r),{data:o,encode:l}=t,{data:s,defaultLabelShape:c}=e,u=s.map(t=>t.points),f=eK(l,t=>t.value),{theme:d,coordinate:h}=n,p=Object.assign(Object.assign({},i),{document:pS(i),theme:d,coordinate:h});return t=>{let{index:e,points:n}=t,r=o[e],{formatter:i=t=>"".concat(t),transform:l,style:s,render:h}=t,g=gk(t,["formatter","transform","style","render"]),m=eK(Object.assign(Object.assign({},g),s),t=>gP(t,r,e,o,{channel:f})),{shape:y=c,text:v}=m,b=gk(m,["shape","text"]),x="string"==typeof i?(0,oc.WU)(i):i,O=Object.assign(Object.assign({},b),{text:x(v,r,e,o),datum:r}),w=Object.assign({type:"label.".concat(y),render:h},b),_=a(w,p),k=gR(d,"label",y,"label");return _(n,O,k,u)}}(a,o,t,r,i),d=e.select("#".concat(s)).selectAll(gF(lm.Tt)).nodes().filter(t=>!t.__removed__);return l.flatMap((t,e)=>{let{transform:n=[]}=t,r=gk(t,["transform"]);return d.flatMap(n=>{let i=function(t,e,n){let{seriesIndex:r,seriesKey:i,points:a,key:o,index:l}=n.__data__,s=function(t){let e=t.cloneNode(),n=t.getAnimations();e.style.visibility="hidden",n.forEach(t=>{let n=t.effect.getKeyframes();e.attr(n[n.length-1])}),t.parentNode.appendChild(e);let r=e.getLocalBounds();e.destroy();let{min:i,max:a}=r;return[i,a]}(n);if(!r)return[Object.assign(Object.assign({},t),{key:"".concat(o,"-").concat(e),bounds:s,index:l,points:a,dependentElement:n})];let c=function(t){let{selector:e}=t;if(!e)return null;if("function"==typeof e)return e;if("first"===e)return t=>[t[0]];if("last"===e)return t=>[t[t.length-1]];throw Error("Unknown selector: ".concat(e))}(t),u=r.map((r,o)=>Object.assign(Object.assign({},t),{key:"".concat(i[o],"-").concat(e),bounds:[a[o]],index:r,points:a,dependentElement:n}));return c?c(u):u}(r,e,n);return i.forEach(e=>{c.set(e,f),u.set(e,t)}),i})})}),d=(0,Q.F)(s).selectAll(gF(lm.fw)).data(f,t=>t.key).join(t=>t.append(t=>c.get(t)(t)).attr("className",lm.fw),t=>t.each(function(t,e,n){let r=c.get(t),i=r(t);(0,nd.DM)(n,i)}),t=>t.remove()).nodes(),h=(0,nZ.ZP)(d,t=>u.get(t.__data__)),{coordinate:p}=t,g={canvas:i.canvas,coordinate:p};for(let[t,e]of h){let{transform:n=[]}=t,r=(0,nd.qC)(n.map(a));r(e,g)}l&&l(d,g)}(t,e,0,r,i)})}function gP(t,e,n,r,i){return"function"==typeof t?t(e,n,r,i):"string"!=typeof t?t:(0,nd.mx)(e)&&void 0!==e[t]?e[t]:t}function gR(t,e,n,r){if("string"!=typeof e)return;let{color:i}=t,a=t[e]||{},o=a[n]||a[r];return Object.assign({color:i},o)}function gT(t,e,n,r,i){var a,o;let[,l]=pM("shape",i),[s]=pM("animation",i),{defaultShape:c,shape:u}=n,{theme:f,coordinate:d}=r,h=os(t),{["default".concat(h,"Animation")]:p}=(null===(a=u[c])||void 0===a?void 0:a.props)||l(gN(e,c)).props,{[t]:g={}}=f,m=(null===(o=e.animate)||void 0===o?void 0:o[t])||{},y={coordinate:d};return(e,n,r)=>{let{["".concat(t,"Type")]:i,["".concat(t,"Delay")]:a,["".concat(t,"Duration")]:o,["".concat(t,"Easing")]:l}=e,c=Object.assign({type:i||p},m);if(!c.type)return null;let u=s(c,y),f=u(n,r,E(g,{delay:a,duration:o,easing:l}));return Array.isArray(f)?f:[f]}}function gL(t){return t.finished.then(()=>{t.cancel()}),t}function gB(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("string"==typeof t)return{type:t};let{type:e="light"}=t,n=gk(t,["type"]);return Object.assign(Object.assign({},n),{type:e})}function gZ(t){let{interaction:e={}}=t;return Object.entries(E({event:!0,tooltip:!0,sliderFilter:!0,legendFilter:!0,scrollbarFilter:!0},e)).reverse()}function gI(t,e){return g_(this,void 0,void 0,function*(){let{data:n}=t,r=gk(t,["data"]);if(void 0==n)return t;let[,{data:i}]=yield gf([],{data:n},{library:e});return Object.assign({data:i},r)})}function gD(t){t.style("transform",t=>"translate(".concat(t.paddingLeft+t.marginLeft,", ").concat(t.paddingTop+t.marginTop,")")).style("width",t=>t.innerWidth).style("height",t=>t.innerHeight)}function gN(t,e){let{type:n}=t;return"string"==typeof e?"".concat(n,".").concat(e):e}function gz(t,e){let n=t=>void 0!==t.class?"".concat(t.class):"",r=t.nodes();if(0===r.length)return;t.selectAll(gF(lm.Sx)).data(e,t=>t.key).join(t=>t.append("g").attr("className",lm.Sx).attr("id",t=>t.key).style("facet",n).style("fill","transparent").style("zIndex",t=>{var e;return null!==(e=t.zIndex)&&void 0!==e?e:0}),t=>t.style("facet",n).style("fill","transparent").style("zIndex",t=>{var e;return null!==(e=t.zIndex)&&void 0!==e?e:0}),t=>t.remove());let i=t.select(gF(lm.z3)).node();i||t.append("g").attr("className",lm.z3).style("zIndex",0)}function gF(){for(var t=arguments.length,e=Array(t),n=0;n".".concat(t)).join("")}function g$(t,e){t.node()&&t.style("clipPath",t=>{if(!e)return null;let{paddingTop:n,paddingLeft:r,marginLeft:i,marginTop:a,innerWidth:o,innerHeight:l}=t;return new nN.UL({style:{x:r+i,y:n+a,width:o,height:l}})})}function gW(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{canvas:r,emitter:i}=e;r&&(function(t){let e=t.getRoot().querySelectorAll(".".concat(lm.S));null==e||e.forEach(t=>{let{nameInteraction:e=new Map}=t;(null==e?void 0:e.size)>0&&Array.from(null==e?void 0:e.values()).forEach(t=>{null==t||t.destroy()})})}(r),n?r.destroy():r.destroyChildren()),i.off()}let gH=t=>t?parseInt(t):0;function gG(t,e){let n=[t];for(;n.length;){let t=n.shift();e&&e(t);let r=t.children||[];for(let t of r)n.push(t)}}class gq{map(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t=>t,e=t(this.value);return this.value=e,this}attr(t,e){return 1==arguments.length?this.value[t]:this.map(n=>(n[t]=e,n))}append(t){let e=new t({});return e.children=[],this.push(e),e}push(t){return t.parentNode=this,t.index=this.children.length,this.children.push(t),this}remove(){let t=this.parentNode;if(t){let{children:e}=t,n=e.findIndex(t=>t===this);e.splice(n,1)}return this}getNodeByKey(t){let e=null;return gG(this,n=>{t===n.attr("key")&&(e=n)}),e}getNodesByType(t){let e=[];return gG(this,n=>{t===n.type&&e.push(n)}),e}getNodeByType(t){let e=null;return gG(this,n=>{e||t!==n.type||(e=n)}),e}call(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;re.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let gV=["width","height","depth","padding","paddingLeft","paddingRight","paddingBottom","paddingTop","inset","insetLeft","insetRight","insetTop","insetBottom","margin","marginLeft","marginRight","marginTop","marginBottom","autoFit","theme","title"],gU="__remove__",gQ="__callback__";function gX(t){return Object.assign(Object.assign({},t.value),{type:t.type})}function gK(t,e){let{width:n,height:r,autoFit:i,depth:a=0}=t,o=640,l=480;if(i){let{width:t,height:n}=function(t){let e=getComputedStyle(t),n=t.clientWidth||gH(e.width),r=t.clientHeight||gH(e.height),i=gH(e.paddingLeft)+gH(e.paddingRight),a=gH(e.paddingTop)+gH(e.paddingBottom);return{width:n-i,height:r-a}}(e);o=t||o,l=n||l}return o=n||o,l=r||l,{width:Math.max(eQ(o)?o:1,1),height:Math.max(eQ(l)?l:1,1),depth:a}}function gJ(t){return e=>{for(let[n,r]of Object.entries(t)){let{type:t}=r;"value"===t?function(t,e,n){let{key:r=e}=n;t.prototype[e]=function(t){return 0==arguments.length?this.attr(r):this.attr(r,t)}}(e,n,r):"array"===t?function(t,e,n){let{key:r=e}=n;t.prototype[e]=function(t){if(0==arguments.length)return this.attr(r);if(Array.isArray(t))return this.attr(r,t);let e=[...this.attr(r)||[],t];return this.attr(r,e)}}(e,n,r):"object"===t?function(t,e,n){let{key:r=e}=n;t.prototype[e]=function(t,e){if(0==arguments.length)return this.attr(r);if(1==arguments.length&&"string"!=typeof t)return this.attr(r,t);let n=this.attr(r)||{};return n[t]=1==arguments.length||e,this.attr(r,n)}}(e,n,r):"node"===t?function(t,e,n){let{ctor:r}=n;t.prototype[e]=function(t){let n=this.append(r);return"mark"===e&&(n.type=t),n}}(e,n,r):"container"===t?function(t,e,n){let{ctor:r}=n;t.prototype[e]=function(){return this.type=null,this.append(r)}}(e,n,r):"mix"===t&&function(t,e,n){t.prototype[e]=function(t){if(0==arguments.length)return this.attr(e);if(Array.isArray(t))return this.attr(e,{items:t});if((0,nd.mx)(t)&&(void 0!==t.title||void 0!==t.items)||null===t||!1===t)return this.attr(e,t);let n=this.attr(e)||{},{items:r=[]}=n;return r.push(t),n.items=r,this.attr(e,n)}}(e,n,0)}return e}}function g0(t){return Object.fromEntries(Object.entries(t).map(t=>{let[e,n]=t;return[e,{type:"node",ctor:n}]}))}let g1={encode:{type:"object"},scale:{type:"object"},data:{type:"value"},transform:{type:"array"},style:{type:"object"},animate:{type:"object"},coordinate:{type:"object"},interaction:{type:"object"},label:{type:"array",key:"labels"},axis:{type:"object"},legend:{type:"object"},slider:{type:"object"},scrollbar:{type:"object"},state:{type:"object"},layout:{type:"object"},theme:{type:"object"},title:{type:"value"}},g2=Object.assign(Object.assign({},g1),{tooltip:{type:"mix"},viewStyle:{type:"object"}}),g5=Object.assign(Object.assign({},g1),{labelTransform:{type:"array"}}),g3=class extends gq{changeData(t){var e;let n=this.getRoot();if(n)return this.attr("data",t),(null===(e=this.children)||void 0===e?void 0:e.length)&&this.children.forEach(e=>{e.attr("data",t)}),null==n?void 0:n.render()}getView(){let t=this.getRoot(),{views:e}=t.getContext();if(null==e?void 0:e.length)return e.find(t=>t.key===this._key)}getScale(){var t;return null===(t=this.getView())||void 0===t?void 0:t.scale}getScaleByChannel(t){let e=this.getScale();if(e)return e[t]}getCoordinate(){var t;return null===(t=this.getView())||void 0===t?void 0:t.coordinate}getTheme(){var t;return null===(t=this.getView())||void 0===t?void 0:t.theme}getGroup(){let t=this._key;if(!t)return;let e=this.getRoot(),n=e.getContext().canvas.getRoot();return n.getElementById(t)}show(){let t=this.getGroup();t&&(t.isVisible()||lx(t))}hide(){let t=this.getGroup();t&&t.isVisible()&&lb(t)}};g3=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([gJ(g5)],g3);let g4=class extends gq{changeData(t){let e=this.getRoot();if(e)return this.attr("data",t),null==e?void 0:e.render()}getMark(){var t;let e=null===(t=this.getRoot())||void 0===t?void 0:t.getView();if(!e)return;let{markState:n}=e,r=Array.from(n.keys()).find(t=>t.key===this.attr("key"));return n.get(r)}getScale(){var t;let e=null===(t=this.getRoot())||void 0===t?void 0:t.getView();if(e)return null==e?void 0:e.scale}getScaleByChannel(t){var e,n;let r=null===(e=this.getRoot())||void 0===e?void 0:e.getView();if(r)return null===(n=null==r?void 0:r.scale)||void 0===n?void 0:n[t]}getGroup(){let t=this.attr("key");if(!t)return;let e=this.getRoot(),n=e.getContext().canvas.getRoot();return n.getElementById(t)}};g4=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([gJ(g2)],g4);let g6={};var g8=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},g7=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};n(50368);let g9=Object.assign({},Object.assign(Object.assign(Object.assign(Object.assign({},{"composition.geoView":dc,"composition.geoPath":df}),{"data.arc":hi,"data.cluster":dM,"mark.forceGraph":d_,"mark.tree":dT,"mark.pack":dF,"mark.sankey":d7,"mark.chord":hu,"mark.treemap":hy}),{"data.venn":hJ,"mark.boxplot":hS,"mark.gauge":hB,"mark.wordCloud":az,"mark.liquid":hW}),{"data.fetch":fa,"data.inline":fo,"data.sortBy":fl,"data.sort":fs,"data.filter":fu,"data.pick":ff,"data.rename":fd,"data.fold":fh,"data.slice":fp,"data.custom":fg,"data.map":fm,"data.join":fv,"data.kde":fO,"data.log":fw,"data.wordCloud":fD,"transform.stackY":us,"transform.binX":uM,"transform.bin":uj,"transform.dodgeX":uA,"transform.jitter":uP,"transform.jitterX":uR,"transform.jitterY":uT,"transform.symmetryY":uB,"transform.diffY":uZ,"transform.stackEnter":uI,"transform.normalizeY":uz,"transform.select":uG,"transform.selectX":uY,"transform.selectY":uU,"transform.groupX":uK,"transform.groupY":uJ,"transform.groupColor":u0,"transform.group":uX,"transform.sortX":u3,"transform.sortY":u4,"transform.sortColor":u6,"transform.flexX":u8,"transform.pack":u7,"transform.sample":fe,"transform.filter":fn,"coordinate.cartesian":d,"coordinate.polar":p,"coordinate.transpose":g,"coordinate.theta":y,"coordinate.parallel":v,"coordinate.fisheye":b,"coordinate.radial":O,"coordinate.radar":w,"encode.constant":_,"encode.field":k,"encode.transform":C,"encode.column":j,"mark.interval":nT,"mark.rect":nB,"mark.line":n8,"mark.point":r2,"mark.text":il,"mark.cell":iu,"mark.area":ik,"mark.link":iI,"mark.image":iF,"mark.polygon":iY,"mark.box":iJ,"mark.vector":i1,"mark.lineX":i6,"mark.lineY":i9,"mark.connector":ai,"mark.range":as,"mark.rangeX":af,"mark.rangeY":ap,"mark.path":ax,"mark.shape":ak,"mark.density":aS,"mark.heatmap":aI,"mark.wordCloud":az,"palette.category10":aF,"palette.category20":a$,"scale.linear":aW,"scale.ordinal":aH,"scale.band":aG,"scale.identity":aq,"scale.point":aY,"scale.time":aV,"scale.log":aU,"scale.pow":aQ,"scale.sqrt":aX,"scale.threshold":aK,"scale.quantile":aJ,"scale.quantize":a0,"scale.sequential":a1,"scale.constant":a2,"theme.classic":a6,"theme.classicDark":a9,"theme.academy":oe,"theme.light":a4,"theme.dark":a7,"component.axisX":oM,"component.axisY":oS,"component.legendCategory":oT,"component.legendContinuous":oI,"component.legends":oD,"component.title":o$,"component.sliderX":oJ,"component.sliderY":o0,"component.scrollbarX":o3,"component.scrollbarY":o4,"animation.scaleInX":o6,"animation.scaleOutX":(t,e)=>{let{coordinate:n}=e;return(e,r,i)=>{let[a]=e,{transform:o="",fillOpacity:l=1,strokeOpacity:s=1,opacity:c=1}=a.style,[u,f]=F(n)?["left bottom","scale(1, ".concat(1e-4,")")]:["left top","scale(".concat(1e-4,", 1)")],d=[{transform:"".concat(o," scale(1, 1)").trimStart(),transformOrigin:u},{transform:"".concat(o," ").concat(f).trimStart(),transformOrigin:u,fillOpacity:l,strokeOpacity:s,opacity:c,offset:.99},{transform:"".concat(o," ").concat(f).trimStart(),transformOrigin:u,fillOpacity:0,strokeOpacity:0,opacity:0}],h=a.animate(d,Object.assign(Object.assign({},i),t));return h}},"animation.scaleInY":o8,"animation.scaleOutY":(t,e)=>{let{coordinate:n}=e;return(e,r,i)=>{let[a]=e,{transform:o="",fillOpacity:l=1,strokeOpacity:s=1,opacity:c=1}=a.style,[u,f]=F(n)?["left top","scale(".concat(1e-4,", 1)")]:["left bottom","scale(1, ".concat(1e-4,")")],d=[{transform:"".concat(o," scale(1, 1)").trimStart(),transformOrigin:u},{transform:"".concat(o," ").concat(f).trimStart(),transformOrigin:u,fillOpacity:l,strokeOpacity:s,opacity:c,offset:.99},{transform:"".concat(o," ").concat(f).trimStart(),transformOrigin:u,fillOpacity:0,strokeOpacity:0,opacity:0}],h=a.animate(d,Object.assign(Object.assign({},i),t));return h}},"animation.waveIn":o7,"animation.fadeIn":o9,"animation.fadeOut":lt,"animation.zoomIn":t=>(e,n,r)=>{let[i]=e,{transform:a="",fillOpacity:o=1,strokeOpacity:l=1,opacity:s=1}=i.style,c="center center",u=[{transform:"".concat(a," scale(").concat(1e-4,")").trimStart(),transformOrigin:c,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:"".concat(a," scale(").concat(1e-4,")").trimStart(),transformOrigin:c,fillOpacity:o,strokeOpacity:l,opacity:s,offset:.01},{transform:"".concat(a," scale(1)").trimStart(),transformOrigin:c,fillOpacity:o,strokeOpacity:l,opacity:s}],f=i.animate(u,Object.assign(Object.assign({},r),t));return f},"animation.zoomOut":t=>(e,n,r)=>{let[i]=e,{transform:a="",fillOpacity:o=1,strokeOpacity:l=1,opacity:s=1}=i.style,c="center center",u=[{transform:"".concat(a," scale(1)").trimStart(),transformOrigin:c},{transform:"".concat(a," scale(").concat(1e-4,")").trimStart(),transformOrigin:c,fillOpacity:o,strokeOpacity:l,opacity:s,offset:.99},{transform:"".concat(a," scale(").concat(1e-4,")").trimStart(),transformOrigin:c,fillOpacity:0,strokeOpacity:0,opacity:0}],f=i.animate(u,Object.assign(Object.assign({},r),t));return f},"animation.pathIn":le,"animation.morphing":ld,"animation.growInX":lh,"animation.growInY":lp,"interaction.elementHighlight":lq,"interaction.elementHighlightByX":lY,"interaction.elementHighlightByColor":lV,"interaction.elementSelect":lQ,"interaction.elementSelectByX":lX,"interaction.elementSelectByColor":lK,"interaction.fisheye":function(t){let{wait:e=30,leading:n,trailing:r=!1}=t;return t=>{let{options:i,update:a,setState:o,container:l}=t,s=lC(l),c=lJ(t=>{let e=lM(s,t);if(!e){o("fisheye"),a();return}o("fisheye",t=>{let n=E({},t,{interaction:{tooltip:{preserve:!0}}});for(let t of n.marks)t.animate=!1;let[r,i]=e,a=function(t){let{coordinate:e={}}=t,{transform:n=[]}=e,r=n.find(t=>"fisheye"===t.type);if(r)return r;let i={type:"fisheye"};return n.push(i),e.transform=n,t.coordinate=e,i}(n);return a.focusX=r,a.focusY=i,a.visual=!0,n}),a()},e,{leading:n,trailing:r});return s.addEventListener("pointerenter",c),s.addEventListener("pointermove",c),s.addEventListener("pointerleave",c),()=>{s.removeEventListener("pointerenter",c),s.removeEventListener("pointermove",c),s.removeEventListener("pointerleave",c)}}},"interaction.chartIndex":l2,"interaction.tooltip":sy,"interaction.legendFilter":function(){return(t,e,n)=>{let{container:r}=t,i=e.filter(e=>e!==t),a=i.length>0,o=t=>sC(t).scales.map(t=>t.name),l=[...s_(r),...sk(r)],s=l.flatMap(o),c=a?lJ(sM,50,{trailing:!0}):lJ(sj,50,{trailing:!0}),u=l.map(e=>{let{name:l,domain:u}=sC(e).scales[0],f=o(e),d={legend:e,channel:l,channels:f,allChannels:s};return e.className===sb?function(t,e){let{legends:n,marker:r,label:i,datum:a,filter:o,emitter:l,channel:s,state:c={}}=e,u=new Map,f=new Map,d=new Map,{unselected:h={markerStroke:"#aaa",markerFill:"#aaa",labelFill:"#aaa"}}=c,p={unselected:(0,nd.hB)(h,"marker")},g={unselected:(0,nd.hB)(h,"label")},{setState:m,removeState:y}=lR(p,void 0),{setState:v,removeState:b}=lR(g,void 0),x=Array.from(n(t)),O=x.map(a),w=()=>{for(let t of x){let e=a(t),n=r(t),o=i(t);O.includes(e)?(y(n,"unselected"),b(o,"unselected")):(m(n,"unselected"),v(o,"unselected"))}};for(let e of x){let n=()=>{lN(t,"pointer")},r=()=>{lN(t,t.cursor)},i=t=>sv(this,void 0,void 0,function*(){let n=a(e),r=O.indexOf(n);-1===r?O.push(n):O.splice(r,1),0===O.length&&O.push(...x.map(a)),yield o(O),w();let{nativeEvent:i=!0}=t;i&&(O.length===x.length?l.emit("legend:reset",{nativeEvent:i}):l.emit("legend:filter",Object.assign(Object.assign({},t),{nativeEvent:i,data:{channel:s,values:O}})))});e.addEventListener("click",i),e.addEventListener("pointerenter",n),e.addEventListener("pointerout",r),u.set(e,i),f.set(e,n),d.set(e,r)}let _=t=>sv(this,void 0,void 0,function*(){let{nativeEvent:e}=t;if(e)return;let{data:n}=t,{channel:r,values:i}=n;r===s&&(O=i,yield o(O),w())}),k=t=>sv(this,void 0,void 0,function*(){let{nativeEvent:e}=t;e||(O=x.map(a),yield o(O),w())});return l.on("legend:filter",_),l.on("legend:reset",k),()=>{for(let t of x)t.removeEventListener("click",u.get(t)),t.removeEventListener("pointerenter",f.get(t)),t.removeEventListener("pointerout",d.get(t)),l.off("legend:filter",_),l.off("legend:reset",k)}}(r,{legends:sw,marker:sx,label:sO,datum:t=>{let{__data__:e}=t,{index:n}=e;return u[n]},filter:e=>{let n=Object.assign(Object.assign({},d),{value:e,ordinal:!0});a?c(i,n):c(t,n)},state:e.attributes.state,channel:l,emitter:n}):function(t,e){let{legend:n,filter:r,emitter:i,channel:a}=e,o=t=>{let{detail:{value:e}}=t;r(e),i.emit({nativeEvent:!0,data:{channel:a,values:e}})};return n.addEventListener("valuechange",o),()=>{n.removeEventListener("valuechange",o)}}(0,{legend:e,filter:e=>{let n=Object.assign(Object.assign({},d),{value:e,ordinal:!1});a?c(i,n):c(t,n)},emitter:n,channel:l})});return()=>{u.forEach(t=>t())}}},"interaction.legendHighlight":function(){return(t,e,n)=>{let{container:r,view:i,options:a}=t,o=s_(r),l=lw(r),s=t=>sC(t).scales[0].name,c=t=>{let{scale:{[t]:e}}=i;return e},u=lL(a,["active","inactive"]),f=lB(l,lP(i)),d=[];for(let t of o){let e=e=>{let{data:n}=t.attributes,{__data__:r}=e,{index:i}=r;return n[i].label},r=s(t),i=sw(t),a=c(r),o=(0,nZ.ZP)(l,t=>a.invert(t.__data__[r])),{state:h={}}=t.attributes,{inactive:p={}}=h,{setState:g,removeState:m}=lR(u,f),y={inactive:(0,nd.hB)(p,"marker")},v={inactive:(0,nd.hB)(p,"label")},{setState:b,removeState:x}=lR(y),{setState:O,removeState:w}=lR(v),_=t=>{for(let e of i){let n=sx(e),r=sO(e);e===t||null===t?(x(n,"inactive"),w(r,"inactive")):(b(n,"inactive"),O(r,"inactive"))}},k=(t,i)=>{let a=e(i),s=new Set(o.get(a));for(let t of l)s.has(t)?g(t,"active"):g(t,"inactive");_(i);let{nativeEvent:c=!0}=t;c&&n.emit("legend:highlight",Object.assign(Object.assign({},t),{nativeEvent:c,data:{channel:r,value:a}}))},C=new Map;for(let t of i){let e=e=>{k(e,t)};t.addEventListener("pointerover",e),C.set(t,e)}let j=t=>{for(let t of l)m(t,"inactive","active");_(null);let{nativeEvent:e=!0}=t;e&&n.emit("legend:unhighlight",{nativeEvent:e})},M=t=>{let{nativeEvent:n,data:a}=t;if(n)return;let{channel:o,value:l}=a;if(o!==r)return;let s=i.find(t=>e(t)===l);s&&k({nativeEvent:!1},s)},S=t=>{let{nativeEvent:e}=t;e||j({nativeEvent:!1})};t.addEventListener("pointerleave",j),n.on("legend:highlight",M),n.on("legend:unhighlight",S);let A=()=>{for(let[e,r]of(t.removeEventListener(j),n.off("legend:highlight",M),n.off("legend:unhighlight",S),C))e.removeEventListener(r)};d.push(A)}return()=>d.forEach(t=>t())}},"interaction.brushHighlight":sL,"interaction.brushXHighlight":function(t){return sL(Object.assign(Object.assign({},t),{brushRegion:sB,selectedHandles:["handle-e","handle-w"]}))},"interaction.brushYHighlight":function(t){return sL(Object.assign(Object.assign({},t),{brushRegion:sZ,selectedHandles:["handle-n","handle-s"]}))},"interaction.brushAxisHighlight":function(t){return(e,n,r)=>{let{container:i,view:a,options:o}=e,l=lC(i),{x:s,y:c}=l.getBBox(),{coordinate:u}=a;return function(t,e){var{axes:n,elements:r,points:i,horizontal:a,datum:o,offsetY:l,offsetX:s,reverse:c=!1,state:u={},emitter:f,coordinate:d}=e,h=sI(e,["axes","elements","points","horizontal","datum","offsetY","offsetX","reverse","state","emitter","coordinate"]);let p=r(t),g=n(t),m=lB(p,o),{setState:y,removeState:v}=lR(u,m),b=new Map,x=(0,nd.hB)(h,"mask"),O=t=>Array.from(b.values()).every(e=>{let[n,r,i,a]=e;return t.some(t=>{let[e,o]=t;return e>=n&&e<=i&&o>=r&&o<=a})}),w=g.map(t=>t.attributes.scale),_=t=>t.length>2?[t[0],t[t.length-1]]:t,k=new Map,C=()=>{k.clear();for(let t=0;t{let n=[];for(let t of p){let e=i(t);O(e)?(y(t,"active"),n.push(t)):y(t,"inactive")}k.set(t,S(n,t)),e&&f.emit("brushAxis:highlight",{nativeEvent:!0,data:{selection:(()=>{if(!A)return Array.from(k.values());let t=[];for(let[e,n]of k){let r=w[e],{name:i}=r.getOptions();"x"===i?t[0]=n:t[1]=n}return t})()}})},M=t=>{for(let t of p)v(t,"active","inactive");C(),t&&f.emit("brushAxis:remove",{nativeEvent:!0})},S=(t,e)=>{let n=w[e],{name:r}=n.getOptions(),i=t.map(t=>{let e=t.__data__;return n.invert(e[r])});return _(oV(n,i))},A=g.some(a)&&g.some(t=>!a(t)),E=[];for(let t=0;t0&&void 0!==arguments[0]?arguments[0]:{},{nativeEvent:e}=t;e||E.forEach(t=>t.remove(!1))},R=(t,e,n)=>{let[r,i]=t,o=T(r,e,n),l=T(i,e,n)+(e.getStep?e.getStep():0);return a(n)?[o,-1/0,l,1/0]:[-1/0,o,1/0,l]},T=(t,e,n)=>{let{height:r,width:i}=d.getOptions(),o=e.clone();return a(n)?o.update({range:[0,i]}):o.update({range:[r,0]}),o.map(t)},L=t=>{let{nativeEvent:e}=t;if(e)return;let{selection:n}=t.data;for(let t=0;t{E.forEach(t=>t.destroy()),f.off("brushAxis:remove",P),f.off("brushAxis:highlight",L)}}(i,Object.assign({elements:lw,axes:sN,offsetY:c,offsetX:s,points:t=>t.__data__.points,horizontal:t=>{let{startPos:[e,n],endPos:[r,i]}=t.attributes;return e!==r&&n===i},datum:lP(a),state:lL(o,["active",["inactive",{opacity:.5}]]),coordinate:u,emitter:r},t))}},"interaction.brushFilter":sG,"interaction.brushXFilter":function(t){return sG(Object.assign(Object.assign({hideX:!0},t),{brushRegion:sB}))},"interaction.brushYFilter":function(t){return sG(Object.assign(Object.assign({hideY:!0},t),{brushRegion:sZ}))},"interaction.sliderFilter":sV,"interaction.scrollbarFilter":function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e,n,r)=>{let{view:i,container:a}=e,o=a.getElementsByClassName(sU);if(!o.length)return()=>{};let{scale:l}=i,{x:s,y:c}=l,u={x:[...s.getOptions().domain],y:[...c.getOptions().domain]};s.update({domain:s.getOptions().expectedDomain}),c.update({domain:c.getOptions().expectedDomain});let f=sV(Object.assign(Object.assign({},t),{initDomain:u,className:sU,prefix:"scrollbar",hasState:!0,setValue:(t,e)=>t.setValue(e[0]),getInitValues:t=>{let e=t.slider.attributes.values;if(0!==e[0])return e}}));return f(e,n,r)}},"interaction.poptip":s0,"interaction.treemapDrillDown":function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{originData:e=[],layout:n}=t,r=cf(t,["originData","layout"]),i=E({},cd,r),a=(0,nd.hB)(i,"breadCrumb"),o=(0,nd.hB)(i,"active");return t=>{let{update:r,setState:i,container:l,options:s}=t,c=(0,Q.F)(l).select(".".concat(lm.V$)).node(),u=s.marks[0],{state:f}=u,d=new nN.ZA;c.appendChild(d);let h=(t,s)=>{var u,f,p,g;return u=this,f=void 0,p=void 0,g=function*(){if(d.removeChildren(),s){let e="",n=a.y,r=0,i=[],l=c.getBBox().width,s=t.map((o,s)=>{e="".concat(e).concat(o,"/"),i.push(o);let c=new nN.xv({name:e.replace(/\/$/,""),style:Object.assign(Object.assign({text:o,x:r,path:[...i],depth:s},a),{y:n})});d.appendChild(c),r+=c.getBBox().width;let u=new nN.xv({style:Object.assign(Object.assign({x:r,text:" / "},a),{y:n})});return d.appendChild(u),(r+=u.getBBox().width)>l&&(n=d.getBBox().height+a.y,r=0,c.attr({x:r,y:n}),r+=c.getBBox().width,u.attr({x:r,y:n}),r+=u.getBBox().width),s===s2(t)-1&&u.remove(),c});s.forEach((t,e)=>{if(e===s2(s)-1)return;let n=Object.assign({},t.attributes);t.attr("cursor","pointer"),t.addEventListener("mouseenter",()=>{t.attr(o)}),t.addEventListener("mouseleave",()=>{t.attr(n)}),t.addEventListener("click",()=>{h(s3(t,["style","path"]),s3(t,["style","depth"]))})})}(function(t,e){let n=[...s_(t),...sk(t)];n.forEach(t=>{e(t,t=>t)})})(l,i),i("treemapDrillDown",r=>{let{marks:i}=r,a=t.join("/"),o=i.map(t=>{if("rect"!==t.type)return t;let r=e;if(s){let t=e.filter(t=>{let e=s3(t,["id"]);return e&&(e.match("".concat(a,"/"))||a.match(e))}).map(t=>({value:0===t.height?s3(t,["value"]):void 0,name:s3(t,["id"])})),{paddingLeft:i,paddingBottom:o,paddingRight:l}=n,c=Object.assign(Object.assign({},n),{paddingTop:(n.paddingTop||d.getBBox().height+10)/(s+1),paddingLeft:i/(s+1),paddingBottom:o/(s+1),paddingRight:l/(s+1),path:t=>t.name,layer:t=>t.depth===s+1});r=cu(t,c,{value:"value"})[0]}else r=e.filter(t=>1===t.depth);let i=[];return r.forEach(t=>{let{path:e}=t;i.push(oP(e))}),E({},t,{data:r,scale:{color:{domain:i}}})});return Object.assign(Object.assign({},r),{marks:o})}),yield r(void 0,["legendFilter"])},new(p||(p=Promise))(function(t,e){function n(t){try{i(g.next(t))}catch(t){e(t)}}function r(t){try{i(g.throw(t))}catch(t){e(t)}}function i(e){var i;e.done?t(e.value):((i=e.value)instanceof p?i:new p(function(t){t(i)})).then(n,r)}i((g=g.apply(u,f||[])).next())})},p=t=>{let n=t.target;if("rect"!==s3(n,["markType"]))return;let r=s3(n,["__data__","key"]),i=s7(e,t=>t.id===r);s3(i,"height")&&h(s3(i,"path"),s3(i,"depth"))};c.addEventListener("click",p);let g=s6(Object.assign(Object.assign({},f.active),f.inactive)),m=()=>{let t=lW(c);t.forEach(t=>{let n=s3(t,["style","cursor"]),r=s7(e,e=>e.id===s3(t,["__data__","key"]));if("pointer"!==n&&(null==r?void 0:r.height)){t.style.cursor="pointer";let e=ct(t.attributes,g);t.addEventListener("mouseenter",()=>{t.attr(f.active)}),t.addEventListener("mouseleave",()=>{t.attr(E(e,f.inactive))})}})};return m(),c.addEventListener("mousemove",m),()=>{d.remove(),c.removeEventListener("click",p),c.removeEventListener("mousemove",m)}}},"interaction.elementPointMove":function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{selection:e=[],precision:n=2}=t,r=cg(t,["selection","precision"]),i=Object.assign(Object.assign({},cm),r||{}),a=(0,nd.hB)(i,"path"),o=(0,nd.hB)(i,"label"),l=(0,nd.hB)(i,"point");return(t,r,i)=>{let s;let{update:c,setState:u,container:f,view:d,options:{marks:h,coordinate:p}}=t,g=lC(f),m=lW(g),y=e,{transform:v=[],type:b}=p,x=!!s7(v,t=>{let{type:e}=t;return"transpose"===e}),O="polar"===b,w="theta"===b,_=!!s7(m,t=>{let{markType:e}=t;return"area"===e});_&&(m=m.filter(t=>{let{markType:e}=t;return"area"===e}));let k=new nN.ZA({style:{zIndex:2}});g.appendChild(k);let C=()=>{i.emit("element-point:select",{nativeEvent:!0,data:{selection:y}})},j=(t,e)=>{i.emit("element-point:moved",{nativeEvent:!0,data:{changeData:t,data:e}})},M=t=>{let e=t.target;y=[e.parentNode.childNodes.indexOf(e)],C(),A(e)},S=t=>{let{data:{selection:e},nativeEvent:n}=t;if(n)return;y=e;let r=s3(m,[null==y?void 0:y[0]]);r&&A(r)},A=t=>{let e;let{attributes:r,markType:i,__data__:p}=t,{stroke:g}=r,{points:m,seriesTitle:v,color:b,title:M,seriesX:S,y1:P}=p;if(x&&"interval"!==i)return;let{scale:R,coordinate:T}=(null==s?void 0:s.view)||d,{color:L,y:B,x:Z}=R,I=T.getCenter();k.removeChildren();let D=(t,e,n,r)=>cp(this,void 0,void 0,function*(){return u("elementPointMove",i=>{var a;let o=((null===(a=null==s?void 0:s.options)||void 0===a?void 0:a.marks)||h).map(i=>{if(!r.includes(i.type))return i;let{data:a,encode:o}=i,l=Object.keys(o),s=l.reduce((r,i)=>{let a=o[i];return"x"===i&&(r[a]=t),"y"===i&&(r[a]=e),"color"===i&&(r[a]=n),r},{}),c=cx(s,a,o);return j(s,c),E({},i,{data:c,animate:!1})});return Object.assign(Object.assign({},i),{marks:o})}),yield c("elementPointMove")});if(["line","area"].includes(i))m.forEach((r,i)=>{let c=Z.invert(S[i]);if(!c)return;let u=new nN.Cd({name:cy,style:Object.assign({cx:r[0],cy:r[1],fill:g},l)}),d=cw(t,i);u.addEventListener("mousedown",h=>{let p=T.output([S[i],0]),g=null==v?void 0:v.length;f.attr("cursor","move"),y[1]!==i&&(y[1]=i,C()),c_(k.childNodes,y,l);let[x,w]=ck(k,u,a,o),j=t=>{let a=r[1]+t.clientY-e[1];if(_){if(O){let o=r[0]+t.clientX-e[0],[l,s]=cj(I,p,[o,a]),[,c]=T.output([1,B.output(0)]),[,f]=T.invert([l,c-(m[i+g][1]-s)]),h=(i+1)%g,y=(i-1+g)%g,b=l$([m[y],[l,s],v[h]&&m[h]]);w.attr("text",d(B.invert(f)).toFixed(n)),x.attr("d",b),u.attr("cx",l),u.attr("cy",s)}else{let[,t]=T.output([1,B.output(0)]),[,e]=T.invert([r[0],t-(m[i+g][1]-a)]),o=l$([m[i-1],[r[0],a],v[i+1]&&m[i+1]]);w.attr("text",d(B.invert(e)).toFixed(n)),x.attr("d",o),u.attr("cy",a)}}else{let[,t]=T.invert([r[0],a]),e=l$([m[i-1],[r[0],a],m[i+1]]);w.attr("text",B.invert(t).toFixed(n)),x.attr("d",e),u.attr("cy",a)}};e=[h.clientX,h.clientY],window.addEventListener("mousemove",j);let M=()=>cp(this,void 0,void 0,function*(){if(f.attr("cursor","default"),window.removeEventListener("mousemove",j),f.removeEventListener("mouseup",M),ch(w.attr("text")))return;let e=Number(w.attr("text")),n=cC(L,b);s=yield D(c,e,n,["line","area"]),w.remove(),x.remove(),A(t)});f.addEventListener("mouseup",M)}),k.appendChild(u)}),c_(k.childNodes,y,l);else if("interval"===i){let r=[(m[0][0]+m[1][0])/2,m[0][1]];x?r=[m[0][0],(m[0][1]+m[1][1])/2]:w&&(r=m[0]);let c=cO(t),u=new nN.Cd({name:cy,style:Object.assign(Object.assign({cx:r[0],cy:r[1],fill:g},l),{stroke:l.activeStroke})});u.addEventListener("mousedown",l=>{f.attr("cursor","move");let d=cC(L,b),[h,p]=ck(k,u,a,o),g=t=>{if(x){let i=r[0]+t.clientX-e[0],[a]=T.output([B.output(0),B.output(0)]),[,o]=T.invert([a+(i-m[2][0]),r[1]]),l=l$([[i,m[0][1]],[i,m[1][1]],m[2],m[3]],!0);p.attr("text",c(B.invert(o)).toFixed(n)),h.attr("d",l),u.attr("cx",i)}else if(w){let i=r[1]+t.clientY-e[1],a=r[0]+t.clientX-e[0],[o,l]=cj(I,[a,i],r),[s,f]=cj(I,[a,i],m[1]),d=T.invert([o,l])[1],g=P-d;if(g<0)return;let y=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=[["M",...e[1]]],i=lF(t,e[1]),a=lF(t,e[0]);return 0===i?r.push(["L",...e[3]],["A",a,a,0,n,1,...e[0]],["Z"]):r.push(["A",i,i,0,n,0,...e[2]],["L",...e[3]],["A",a,a,0,n,1,...e[0]],["Z"]),r}(I,[[o,l],[s,f],m[2],m[3]],g>.5?1:0);p.attr("text",c(g,!0).toFixed(n)),h.attr("d",y),u.attr("cx",o),u.attr("cy",l)}else{let i=r[1]+t.clientY-e[1],[,a]=T.output([1,B.output(0)]),[,o]=T.invert([r[0],a-(m[2][1]-i)]),l=l$([[m[0][0],i],[m[1][0],i],m[2],m[3]],!0);p.attr("text",c(B.invert(o)).toFixed(n)),h.attr("d",l),u.attr("cy",i)}};e=[l.clientX,l.clientY],window.addEventListener("mousemove",g);let y=()=>cp(this,void 0,void 0,function*(){if(f.attr("cursor","default"),f.removeEventListener("mouseup",y),window.removeEventListener("mousemove",g),ch(p.attr("text")))return;let e=Number(p.attr("text"));s=yield D(M,e,d,[i]),p.remove(),h.remove(),A(t)});f.addEventListener("mouseup",y)}),k.appendChild(u)}};m.forEach((t,e)=>{y[0]===e&&A(t),t.addEventListener("click",M),t.addEventListener("mouseenter",cv),t.addEventListener("mouseleave",cb)});let P=t=>{let e=null==t?void 0:t.target;e&&(e.name===cy||m.includes(e))||(y=[],C(),k.removeChildren())};return i.on("element-point:select",S),i.on("element-point:unselect",P),f.addEventListener("mousedown",P),()=>{k.remove(),i.off("element-point:select",S),i.off("element-point:unselect",P),f.removeEventListener("mousedown",P),m.forEach(t=>{t.removeEventListener("click",M),t.removeEventListener("mouseenter",cv),t.removeEventListener("mouseleave",cb)})}}},"composition.spaceLayer":cR,"composition.spaceFlex":cL,"composition.facetRect":cU,"composition.repeatMatrix":()=>t=>{let e=cB.of(t).call(cF).call(cD).call(cK).call(cJ).call(cN).call(cz).call(cX).value();return[e]},"composition.facetCircle":()=>t=>{let e=cB.of(t).call(cF).call(c5).call(cD).call(c2).call(c$).call(cW,c4,c3,c3,{frame:!1}).call(cN).call(cz).call(c1).value();return[e]},"composition.timingKeyframe":c6,"labelTransform.overlapHide":t=>{let{priority:e}=t;return t=>{let n=[];return e&&t.sort(e),t.forEach(t=>{lx(t);let e=t.getLocalBounds(),r=n.some(t=>(function(t,e){let[n,r]=t,[i,a]=e;return n[0]i[0]&&n[1]i[1]})(fN(e),fN(t.getLocalBounds())));r?lb(t):n.push(t)}),t}},"labelTransform.overlapDodgeY":t=>{let{maxIterations:e=10,maxError:n=.1,padding:r=1}=t;return t=>{let i=t.length;if(i<=1)return t;let[a,o]=fF(),[l,s]=fF(),[c,u]=fF(),[f,d]=fF();for(let e of t){let{min:t,max:n}=function(t){let e=t.cloneNode(!0),n=e.getElementById("connector");n&&e.removeChild(n);let{min:r,max:i}=e.getRenderBounds();return e.destroy(),{min:r,max:i}}(e),[r,i]=t,[a,l]=n;o(e,i),s(e,i),u(e,l-i),d(e,[r,a])}for(let a=0;a(0,c8.Z)(l(t),l(e)));let e=0;for(let n=0;nn&&r>i}(f(a),f(i));)o+=1;if(i){let t=l(a),n=c(a),o=l(i),u=o-(t+n);if(ut=>(t.forEach(t=>{lx(t);let e=t.attr("bounds"),n=t.getLocalBounds(),r=function(t,e){let[n,r]=t;return!(fz(n,e)&&fz(r,e))}(fN(n),e);r&&lb(t)}),t),"labelTransform.contrastReverse":t=>{let{threshold:e=4.5,palette:n=["#000","#fff"]}=t;return t=>(t.forEach(t=>{let r=t.attr("dependentElement").parsedStyle.fill,i=t.parsedStyle.fill,a=fH(i,r);afH(t,"object"==typeof e?e:(0,nN.lu)(e)));return e[n]}(r,n))}),t)},"labelTransform.exceedAdjust":()=>(t,e)=>{let{canvas:n}=e,{width:r,height:i}=n.getConfig();return t.forEach(t=>{lx(t);let{max:e,min:n}=t.getRenderBounds(),[a,o]=e,[l,s]=n,c=fG([[l,s],[a,o]],[[0,0],[r,i]]);t.style.x+=c[0],t.style.y+=c[1]}),t}})),mt=(i=class extends g3{render(){if(this._rendering)return this._addToTrailing();this._context.canvas||this._createCanvas(),this._context.canvas.getConfig().supportsCSSTransform=!0,this._bindAutoFit(),this._rendering=!0;let t=new Promise((t,e)=>(function(t){var e;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t=>{throw t},{width:a=640,height:o=480,depth:l=0}=t,s=function(t){let e=E({},t),n=new Map([[e,null]]),r=new Map([[null,-1]]),i=[e];for(;i.length;){let t=i.shift();if(void 0===t.key){let e=n.get(t),i=r.get(t),a=null===e?"".concat(0):"".concat(e.key,"-").concat(i);t.key=a}let{children:e=[]}=t;if(Array.isArray(e))for(let a=0;a(function t(e,n,r,i){var a;return g_(this,void 0,void 0,function*(){let[o]=pM("composition",r),[l]=pM("interaction",r),s=new Set(Object.keys(r).map(t=>{var e;return null===(e=/mark\.(.*)/.exec(t))||void 0===e?void 0:e[1]}).filter(nd.ri)),c=new Set(Object.keys(r).map(t=>{var e;return null===(e=/component\.(.*)/.exec(t))||void 0===e?void 0:e[1]}).filter(nd.ri)),u=t=>{let{type:e}=t;if("function"==typeof e){let{props:t={}}=e,{composite:n=!0}=t;if(n)return"mark"}return"string"!=typeof e?e:s.has(e)||c.has(e)?"mark":e},f=t=>"mark"===u(t),d=t=>"standardView"===u(t),h=t=>{let{type:e}=t;return"string"==typeof e&&!!c.has(e)},p=t=>{if(d(t))return[t];let e=u(t),n=o({type:e,static:h(t)});return n(t)},g=[],m=new Map,y=new Map,v=[e],b=[];for(;v.length;){let t=v.shift();if(d(t)){let e=y.get(t),[n,i]=e?gA(e,t,r):yield gj(t,r);m.set(n,t),g.push(n);let a=i.flatMap(p).map(t=>pE(t,r));if(v.push(...a),a.every(d)){let t=yield Promise.all(a.map(t=>gM(t,r)));!function(t){let e=t.flatMap(t=>Array.from(t.values())).flatMap(t=>t.channels.map(t=>t.scale));pN(e,"x"),pN(e,"y")}(t);for(let e=0;et.key).join(t=>t.append("g").attr("className",lm.S).attr("id",t=>t.key).call(gC).each(function(t,e,n){gE(t,(0,Q.F)(n),w,r,i),x.set(t,n)}),t=>t.call(gC).each(function(t,e,n){gE(t,(0,Q.F)(n),w,r,i),O.set(t,n)}),t=>t.each(function(t,e,n){let r=n.nameInteraction.values();for(let t of r)t.destroy()}).remove());let _=(e,n,a)=>Array.from(e.entries()).map(o=>{let[l,s]=o,c=a||new Map,u=m.get(l),f=function(e,n,r,i){let a=function(t){let[,e]=pM("interaction",t);return t=>{let[n,r]=t;try{return[n,e(n)]}catch(t){return[n,r.type]}}}(r),o=gZ(n),l=o.map(a).filter(t=>t[1]&&t[1].props&&t[1].props.reapplyWhenUpdate).map(t=>t[0]);return(n,a,o)=>g_(this,void 0,void 0,function*(){let[s,c]=yield gj(n,r);for(let t of(gE(s,e,[],r,i),l.filter(t=>t!==a)))!function(t,e,n,r,i,a){var o;let[l]=pM("interaction",i),s=e.node(),c=s.nameInteraction,u=gZ(n).find(e=>{let[n]=e;return n===t}),f=c.get(t);if(!f||(null===(o=f.destroy)||void 0===o||o.call(f),!u[1]))return;let d=gS(r,t,u[1],l),h={options:n,view:r,container:e.node(),update:t=>Promise.resolve(t)},p=d(h,[],a.emitter);c.set(t,{destroy:p})}(t,e,n,s,r,i);for(let n of c)t(n,e,r,i);return o(),{options:n,view:s}})}((0,Q.F)(s),u,r,i);return{view:l,container:s,options:u,setState:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t=>t;return c.set(t,e)},update:(t,r)=>g_(this,void 0,void 0,function*(){let i=(0,nd.qC)(Array.from(c.values())),a=i(u);return yield f(a,t,()=>{S(r)&&n(e,r,c)})})}}),k=function(){var t;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,a=_(e,k,r);for(let e of a){let{options:r,container:o}=e,s=o.nameInteraction,c=gZ(r);for(let r of(n&&(c=c.filter(t=>n.includes(t[0]))),c)){let[n,o]=r,c=s.get(n);if(c&&(null===(t=c.destroy)||void 0===t||t.call(c)),o){let t=gS(e.view,n,o,l),r=t(e,a,i.emitter);s.set(n,{destroy:r})}}}},C=_(x,k);for(let t of C){let{options:e}=t,n=new Map;for(let r of(t.container.nameInteraction=n,gZ(e))){let[e,a]=r;if(a){let r=gS(t.view,e,a,l),o=r(t,C,i.emitter);n.set(e,{destroy:o})}}}k();let{width:j,height:M}=e,A=[];for(let e of b){let a=new Promise(a=>g_(this,void 0,void 0,function*(){for(let a of e){let e=Object.assign({width:j,height:M},a);yield t(e,n,r,i)}a()}));A.push(a)}i.views=g,null===(a=i.animations)||void 0===a||a.forEach(t=>null==t?void 0:t.cancel()),i.animations=w,i.emitter.emit(l8.AFTER_PAINT);let E=w.filter(nd.ri).map(gL).map(t=>t.finished);return Promise.all([...E,...A])})})(Object.assign(Object.assign({},s),{width:a,height:o,depth:l}),p,f,n)).then(()=>{if(l){let[t,e]=c.document.documentElement.getPosition();c.document.documentElement.setPosition(t,e,-l/2)}c.requestAnimationFrame(()=>{u.emit(l8.AFTER_RENDER),null==r||r()})}).catch(t=>{null==i||i(t)}),"string"==typeof(e=c.getConfig().container)?document.getElementById(e):e})(this._computedOptions(),this._context,this._createResolve(t),this._createReject(e))),[e,n,r]=function(){let t,e;let n=new Promise((n,r)=>{e=n,t=r});return[n,e,t]}();return t.then(n).catch(r).then(()=>this._renderTrailing()),e}options(t){if(0==arguments.length)return function(t){let e=function(t){if(null!==t.type)return t;let e=t.children[t.children.length-1];for(let n of gV)e.attr(n,t.attr(n));return e}(t),n=[e],r=new Map;for(r.set(e,gX(e));n.length;){let t=n.pop(),e=r.get(t),{children:i=[]}=t;for(let t of i)if(t.type===gQ)e.children=t.value;else{let i=gX(t),{children:a=[]}=e;a.push(i),n.push(t),r.set(t,i),e.children=a}}return r.get(e)}(this);let{type:e}=t;return e&&(this._previousDefinedType=e),function(t,e,n,r,i){let a=function(t,e,n,r,i){let{type:a}=t,{type:o=n||a}=e;if("function"!=typeof o&&new Set(Object.keys(i)).has(o)){for(let n of gV)void 0!==t.attr(n)&&void 0===e[n]&&(e[n]=t.attr(n));return e}if("function"==typeof o||new Set(Object.keys(r)).has(o)){let t={type:"view"},n=Object.assign({},e);for(let e of gV)void 0!==n[e]&&(t[e]=n[e],delete n[e]);return Object.assign(Object.assign({},t),{children:[n]})}return e}(t,e,n,r,i),o=[[null,t,a]];for(;o.length;){let[t,e,n]=o.shift();if(e){if(n){!function(t,e){let{type:n,children:r}=e,i=gY(e,["type","children"]);t.type===n||void 0===n?(0,nd.nx)(t.value,i):"string"==typeof n&&(t.type=n,t.value=i)}(e,n);let{children:t}=n,{children:r}=e;if(Array.isArray(t)&&Array.isArray(r)){let n=Math.max(t.length,r.length);for(let i=0;i1?e-1:0),r=1;r{this.emit(l8.AFTER_CHANGE_SIZE)}),n}changeSize(t,e){if(t===this._width&&e===this._height)return Promise.resolve(this);this.emit(l8.BEFORE_CHANGE_SIZE),this.attr("width",t),this.attr("height",e);let n=this.render();return n.then(()=>{this.emit(l8.AFTER_CHANGE_SIZE)}),n}_create(){let{library:t}=this._context,e=["mark.mark",...Object.keys(t).filter(t=>t.startsWith("mark.")||"component.axisX"===t||"component.axisY"===t||"component.legends"===t)];for(let t of(this._marks={},e)){let e=t.split(".").pop();class n extends g4{constructor(){super({},e)}}this._marks[e]=n,this[e]=function(t){let r=this.append(n);return"mark"===e&&(r.type=t),r}}let n=["composition.view",...Object.keys(t).filter(t=>t.startsWith("composition.")&&"composition.mark"!==t)];for(let t of(this._compositions=Object.fromEntries(n.map(t=>{let e=t.split(".").pop(),n=class extends g3{constructor(){super({},e)}};return n=g8([gJ(g0(this._marks))],n),[e,n]})),Object.values(this._compositions)))gJ(g0(this._compositions))(t);for(let t of n){let e=t.split(".").pop();this[e]=function(){let t=this._compositions[e];return this.type=null,this.append(t)}}}_reset(){let t=["theme","type","width","height","autoFit"];this.type="view",this.value=Object.fromEntries(Object.entries(this.value).filter(e=>{let[n]=e;return n.startsWith("margin")||n.startsWith("padding")||n.startsWith("inset")||t.includes(n)})),this.children=[]}_renderTrailing(){this._trailing&&(this._trailing=!1,this.render().then(()=>{let t=this._trailingResolve.bind(this);this._trailingResolve=null,t(this)}).catch(t=>{let e=this._trailingReject.bind(this);this._trailingReject=null,e(t)}))}_createResolve(t){return()=>{this._rendering=!1,t(this)}}_createReject(t){return e=>{this._rendering=!1,t(e)}}_computedOptions(){let t=this.options(),{key:e="G2_CHART_KEY"}=t,{width:n,height:r,depth:i}=gK(t,this._container);return this._width=n,this._height=r,this._key=e,Object.assign(Object.assign({key:this._key},t),{width:n,height:r,depth:i})}_createCanvas(){let{width:t,height:e}=gK(this.options(),this._container);this._plugins.push(new h1.S),this._plugins.forEach(t=>this._renderer.registerPlugin(t)),this._context.canvas=new nN.Xz({container:this._container,width:t,height:e,renderer:this._renderer})}_addToTrailing(){var t;null===(t=this._trailingResolve)||void 0===t||t.call(this,this),this._trailing=!0;let e=new Promise((t,e)=>{this._trailingResolve=t,this._trailingReject=e});return e}_bindAutoFit(){let t=this.options(),{autoFit:e}=t;if(this._hasBindAutoFit){e||this._unbindAutoFit();return}e&&(this._hasBindAutoFit=!0,window.addEventListener("resize",this._onResize))}_unbindAutoFit(){this._hasBindAutoFit&&(this._hasBindAutoFit=!1,window.removeEventListener("resize",this._onResize))}constructor(t){let{container:e,canvas:n,renderer:r,plugins:i,lib:a}=t,o=g7(t,["container","canvas","renderer","plugins","lib"]);super(o,"view"),this._hasBindAutoFit=!1,this._rendering=!1,this._trailing=!1,this._trailingResolve=null,this._trailingReject=null,this._previousDefinedType=null,this._onResize=h2(()=>{this.forceFit()},300),this._renderer=r||new h0.Th,this._plugins=i||[],this._container=function(t){if(void 0===t){let t=document.createElement("div");return t[gU]=!0,t}if("string"==typeof t){let e=document.getElementById(t);return e}return t}(e),this._emitter=new h5.Z,this._context={library:Object.assign(Object.assign({},a),g6),emitter:this._emitter,canvas:n},this._create()}},class extends i{constructor(t){super(Object.assign(Object.assign({},t),{lib:g9}))}}),me=(0,f.forwardRef)((t,e)=>{let{options:n,style:r,onInit:i,renderer:a}=t,o=(0,f.useRef)(null),l=(0,f.useRef)(),[s,c]=(0,f.useState)(!1);return(0,f.useEffect)(()=>{if(!l.current&&o.current)return l.current=new mt({container:o.current,renderer:a}),c(!0),()=>{l.current&&(l.current.destroy(),l.current=void 0)}},[a]),(0,f.useEffect)(()=>{s&&(null==i||i())},[s,i]),(0,f.useEffect)(()=>{l.current&&n&&(l.current.options(n),l.current.render())},[n]),(0,f.useImperativeHandle)(e,()=>l.current,[s]),f.createElement("div",{ref:o,style:r})})},74314:function(t,e,n){t.exports=n(52172).use(n(81794)).use(n(18870)).use(n(654)).use(n(95305)).use(n(44775)).use(n(52861)).use(n(77273)).use(n(98195)).use(n(12986)).use(n(95632)).use(n(34157)).use(n(52411)).use(n(88508)).use(n(74115)).use(n(75201)).use(n(64209)).use(n(14593)).use(n(93467)).use(n(991)).use(n(48532)).use(n(82810))},44775:function(t){t.exports=function(t){t.installColorSpace("CMYK",["cyan","magenta","yellow","black","alpha"],{rgb:function(){return new t.RGB(1-this._cyan*(1-this._black)-this._black,1-this._magenta*(1-this._black)-this._black,1-this._yellow*(1-this._black)-this._black,this._alpha)},fromRgb:function(){var e=this._red,n=this._green,r=this._blue,i=1-e,a=1-n,o=1-r,l=1;return e||n||r?(l=Math.min(i,Math.min(a,o)),i=(i-l)/(1-l),a=(a-l)/(1-l),o=(o-l)/(1-l)):l=1,new t.CMYK(i,a,o,l,this._alpha)}})}},95305:function(t,e,n){t.exports=function(t){t.use(n(654)),t.installColorSpace("HSL",["hue","saturation","lightness","alpha"],{hsv:function(){var e,n=2*this._lightness,r=this._saturation*(n<=1?n:2-n);return e=n+r<1e-9?0:2*r/(n+r),new t.HSV(this._hue,e,(n+r)/2,this._alpha)},rgb:function(){return this.hsv().rgb()},fromRgb:function(){return this.hsv().hsl()}})}},654:function(t){t.exports=function(t){t.installColorSpace("HSV",["hue","saturation","value","alpha"],{rgb:function(){var e,n,r,i=this._hue,a=this._saturation,o=this._value,l=Math.min(5,Math.floor(6*i)),s=6*i-l,c=o*(1-a),u=o*(1-s*a),f=o*(1-(1-s)*a);switch(l){case 0:e=o,n=f,r=c;break;case 1:e=u,n=o,r=c;break;case 2:e=c,n=o,r=f;break;case 3:e=c,n=u,r=o;break;case 4:e=f,n=c,r=o;break;case 5:e=o,n=c,r=u}return new t.RGB(e,n,r,this._alpha)},hsl:function(){var e=(2-this._saturation)*this._value,n=this._saturation*this._value,r=e<=1?e:2-e;return new t.HSL(this._hue,r<1e-9?0:n/r,e/2,this._alpha)},fromRgb:function(){var e,n=this._red,r=this._green,i=this._blue,a=Math.max(n,r,i),o=a-Math.min(n,r,i),l=0===a?0:o/a;if(0===o)e=0;else switch(a){case n:e=(r-i)/o/6+(r.008856?e:(t-16/116)/7.87},n=(this._l+16)/116,r=this._a/500+n,i=n-this._b/200;return new t.XYZ(95.047*e(r),100*e(n),108.883*e(i),this._alpha)}})}},81794:function(t){t.exports=function(t){t.installColorSpace("XYZ",["x","y","z","alpha"],{fromRgb:function(){var e=function(t){return t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92},n=e(this._red),r=e(this._green),i=e(this._blue);return new t.XYZ(.4124564*n+.3575761*r+.1804375*i,.2126729*n+.7151522*r+.072175*i,.0193339*n+.119192*r+.9503041*i,this._alpha)},rgb:function(){var e=this._x,n=this._y,r=this._z,i=function(t){return t>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t};return new t.RGB(i(3.2404542*e+-1.5371385*n+-.4985314*r),i(-.969266*e+1.8760108*n+.041556*r),i(.0556434*e+-.2040259*n+1.0572252*r),this._alpha)},lab:function(){var e=function(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29},n=e(this._x/95.047),r=e(this._y/100),i=e(this._z/108.883);return new t.LAB(116*r-16,500*(n-r),200*(r-i),this._alpha)}})}},52172:function(t){var e=[],n=function(t){return void 0===t},r=/\s*(\.\d+|\d+(?:\.\d+)?)(%)?\s*/,i=/\s*(\.\d+|100|\d?\d(?:\.\d+)?)%\s*/,a=RegExp("^(rgb|hsl|hsv)a?\\("+r.source+","+r.source+","+r.source+"(?:,"+/\s*(\.\d+|\d+(?:\.\d+)?)\s*/.source+")?\\)$","i");function o(t){if(Array.isArray(t)){if("string"==typeof t[0]&&"function"==typeof o[t[0]])return new o[t[0]](t.slice(1,t.length));if(4===t.length)return new o.RGB(t[0]/255,t[1]/255,t[2]/255,t[3]/255)}else if("string"==typeof t){var e=t.toLowerCase();o.namedColors[e]&&(t="#"+o.namedColors[e]),"transparent"===e&&(t="rgba(0,0,0,0)");var r=t.match(a);if(r){var l=r[1].toUpperCase(),s=n(r[8])?r[8]:parseFloat(r[8]),c="H"===l[0],u=r[3]?100:c?360:255,f=r[5]||c?100:255,d=r[7]||c?100:255;if(n(o[l]))throw Error("color."+l+" is not installed.");return new o[l](parseFloat(r[2])/u,parseFloat(r[4])/f,parseFloat(r[6])/d,s)}t.length<6&&(t=t.replace(/^#?([0-9a-f])([0-9a-f])([0-9a-f])$/i,"$1$1$2$2$3$3"));var h=t.match(/^#?([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])$/i);if(h)return new o.RGB(parseInt(h[1],16)/255,parseInt(h[2],16)/255,parseInt(h[3],16)/255);if(o.CMYK){var p=t.match(RegExp("^cmyk\\("+i.source+","+i.source+","+i.source+","+i.source+"\\)$","i"));if(p)return new o.CMYK(parseFloat(p[1])/100,parseFloat(p[2])/100,parseFloat(p[3])/100,parseFloat(p[4])/100)}}else if("object"==typeof t&&t.isColor)return t;return!1}o.namedColors={},o.installColorSpace=function(t,r,i){o[t]=function(e){var n=Array.isArray(e)?e:arguments;r.forEach(function(e,i){var a=n[i];if("alpha"===e)this._alpha=isNaN(a)||a>1?1:a<0?0:a;else{if(isNaN(a))throw Error("["+t+"]: Invalid color: ("+r.join(",")+")");"hue"===e?this._hue=a<0?a-Math.floor(a):a%1:this["_"+e]=a<0?0:a>1?1:a}},this)},o[t].propertyNames=r;var a=o[t].prototype;for(var l in["valueOf","hex","hexa","css","cssa"].forEach(function(e){a[e]=a[e]||("RGB"===t?a.hex:function(){return this.rgb()[e]()})}),a.isColor=!0,a.equals=function(e,i){n(i)&&(i=1e-10),e=e[t.toLowerCase()]();for(var a=0;ai)return!1;return!0},a.toJSON=function(){return[t].concat(r.map(function(t){return this["_"+t]},this))},i)if(i.hasOwnProperty(l)){var s=l.match(/^from(.*)$/);s?o[s[1].toUpperCase()].prototype[t.toLowerCase()]=i[l]:a[l]=i[l]}function c(t,e){var n={};for(var r in n[e.toLowerCase()]=function(){return this.rgb()[e.toLowerCase()]()},o[e].propertyNames.forEach(function(t){var r="black"===t?"k":t.charAt(0);n[t]=n[r]=function(n,r){return this[e.toLowerCase()]()[t](n,r)}}),n)n.hasOwnProperty(r)&&void 0===o[t].prototype[r]&&(o[t].prototype[r]=n[r])}return a[t.toLowerCase()]=function(){return this},a.toString=function(){return"["+t+" "+r.map(function(t){return this["_"+t]},this).join(", ")+"]"},r.forEach(function(t){var e="black"===t?"k":t.charAt(0);a[t]=a[e]=function(e,n){return void 0===e?this["_"+t]:new this.constructor(n?r.map(function(n){return this["_"+n]+(t===n?e:0)},this):r.map(function(n){return t===n?e:this["_"+n]},this))}}),e.forEach(function(e){c(t,e),c(e,t)}),e.push(t),o},o.pluginList=[],o.use=function(t){return -1===o.pluginList.indexOf(t)&&(this.pluginList.push(t),t(o)),o},o.installMethod=function(t,n){return e.forEach(function(e){o[e].prototype[t]=n}),this},o.installColorSpace("RGB",["red","green","blue","alpha"],{hex:function(){var t=(65536*Math.round(255*this._red)+256*Math.round(255*this._green)+Math.round(255*this._blue)).toString(16);return"#"+"00000".substr(0,6-t.length)+t},hexa:function(){var t=Math.round(255*this._alpha).toString(16);return"#"+"00".substr(0,2-t.length)+t+this.hex().substr(1,6)},css:function(){return"rgb("+Math.round(255*this._red)+","+Math.round(255*this._green)+","+Math.round(255*this._blue)+")"},cssa:function(){return"rgba("+Math.round(255*this._red)+","+Math.round(255*this._green)+","+Math.round(255*this._blue)+","+this._alpha+")"}}),t.exports=o},77273:function(t){t.exports=function(t){t.installMethod("clearer",function(t){return this.alpha(isNaN(t)?-.1:-t,!0)})}},98195:function(t,e,n){t.exports=function(t){t.use(n(75201)),t.installMethod("contrast",function(t){var e=this.luminance(),n=t.luminance();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)})}},12986:function(t,e,n){t.exports=function(t){t.use(n(95305)),t.installMethod("darken",function(t){return this.lightness(isNaN(t)?-.1:-t,!0)})}},95632:function(t,e,n){t.exports=function(t){t.use(n(95305)),t.installMethod("desaturate",function(t){return this.saturation(isNaN(t)?-.1:-t,!0)})}},34157:function(t){t.exports=function(t){function e(){var e=this.rgb(),n=.3*e._red+.59*e._green+.11*e._blue;return new t.RGB(n,n,n,e._alpha)}t.installMethod("greyscale",e).installMethod("grayscale",e)}},52411:function(t){t.exports=function(t){t.installMethod("isDark",function(){var t=this.rgb();return(76245*t._red+149685*t._green+29070*t._blue)/1e3<128})}},88508:function(t,e,n){t.exports=function(t){t.use(n(52411)),t.installMethod("isLight",function(){return!this.isDark()})}},74115:function(t,e,n){t.exports=function(t){t.use(n(95305)),t.installMethod("lighten",function(t){return this.lightness(isNaN(t)?.1:t,!0)})}},75201:function(t){t.exports=function(t){function e(t){return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}t.installMethod("luminance",function(){var t=this.rgb();return .2126*e(t._red)+.7152*e(t._green)+.0722*e(t._blue)})}},64209:function(t){t.exports=function(t){t.installMethod("mix",function(e,n){e=t(e).rgb();var r=2*(n=1-(isNaN(n)?.5:n))-1,i=this._alpha-e._alpha,a=((r*i==-1?r:(r+i)/(1+r*i))+1)/2,o=1-a,l=this.rgb();return new t.RGB(l._red*a+e._red*o,l._green*a+e._green*o,l._blue*a+e._blue*o,l._alpha*n+e._alpha*(1-n))})}},52861:function(t){t.exports=function(t){t.namedColors={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"}}},14593:function(t){t.exports=function(t){t.installMethod("negate",function(){var e=this.rgb();return new t.RGB(1-e._red,1-e._green,1-e._blue,this._alpha)})}},93467:function(t){t.exports=function(t){t.installMethod("opaquer",function(t){return this.alpha(isNaN(t)?.1:t,!0)})}},991:function(t,e,n){t.exports=function(t){t.use(n(95305)),t.installMethod("rotate",function(t){return this.hue((t||0)/360,!0)})}},48532:function(t,e,n){t.exports=function(t){t.use(n(95305)),t.installMethod("saturate",function(t){return this.saturation(isNaN(t)?.1:t,!0)})}},82810:function(t){t.exports=function(t){t.installMethod("toAlpha",function(t){var e=this.rgb(),n=t(t).rgb(),r=new t.RGB(0,0,0,e._alpha),i=["_red","_green","_blue"];return i.forEach(function(t){e[t]<1e-10?r[t]=e[t]:e[t]>n[t]?r[t]=(e[t]-n[t])/(1-n[t]):e[t]>n[t]?r[t]=(n[t]-e[t])/n[t]:r[t]=0}),r._red>r._green?r._red>r._blue?e._alpha=r._red:e._alpha=r._blue:r._green>r._blue?e._alpha=r._green:e._alpha=r._blue,e._alpha<1e-10||(i.forEach(function(t){e[t]=(e[t]-n[t])/e._alpha+n[t]}),e._alpha*=r._alpha),e})}},73807:function(t){"use strict";var e=t.exports;t.exports.isNumber=function(t){return"number"==typeof t},t.exports.findMin=function(t){if(0===t.length)return 1/0;for(var e=t[0],n=1;n=f.length)){var n=Math.max(e-r,0),i=Math.min(e+r,f.length-1),o=n-(e-r),l=e+r-i,c=p/(p-(h[-r-1+o]||0)-(h[-r-1+l]||0));o>0&&(m+=c*(o-1)*g);var d=Math.max(0,e-r+1);a.inside(0,f.length-1,d)&&(f[d].y+=1*c*g),a.inside(0,f.length-1,e+1)&&(f[e+1].y-=2*c*g),a.inside(0,f.length-1,i+1)&&(f[i+1].y+=1*c*g)}});var y=m,v=0,b=0;return f.forEach(function(t){v+=t.y,y+=v,t.y=y,b+=y}),b>0&&f.forEach(function(t){t.y/=b}),f},t.exports.getExpectedValueFromPdf=function(t){if(t&&0!==t.length){var e=0;return t.forEach(function(t){e+=t.x*t.y}),e}},t.exports.getXWithLeftTailArea=function(t,e){if(t&&0!==t.length){for(var n=0,r=0,i=0;i=e));i++);return t[r].x}},t.exports.getPerplexity=function(t){if(t&&0!==t.length){var e=0;return t.forEach(function(t){var n=Math.log(t.y);isFinite(n)&&(e+=t.y*n)}),Math.pow(2,e=-e/r)}}},16243:function(t){if(!e)var e={map:function(t,e){var n={};return e?t.map(function(t,r){return n.index=r,e.call(n,t)}):t.slice()},naturalOrder:function(t,e){return te?1:0},sum:function(t,e){var n={};return t.reduce(e?function(t,r,i){return n.index=i,t+e.call(n,r)}:function(t,e){return t+e},0)},max:function(t,n){return Math.max.apply(null,n?e.map(t,n):t)}};var n=function(){function t(t,e,n){return(t<<10)+(e<<5)+n}function n(t){var e=[],n=!1;function r(){e.sort(t),n=!0}return{push:function(t){e.push(t),n=!1},peek:function(t){return n||r(),void 0===t&&(t=e.length-1),e[t]},pop:function(){return n||r(),e.pop()},size:function(){return e.length},map:function(t){return e.map(t)},debug:function(){return n||r(),e}}}function r(t,e,n,r,i,a,o){this.r1=t,this.r2=e,this.g1=n,this.g2=r,this.b1=i,this.b2=a,this.histo=o}function i(){this.vboxes=new n(function(t,n){return e.naturalOrder(t.vbox.count()*t.vbox.volume(),n.vbox.count()*n.vbox.volume())})}return r.prototype={volume:function(t){return(!this._volume||t)&&(this._volume=(this.r2-this.r1+1)*(this.g2-this.g1+1)*(this.b2-this.b1+1)),this._volume},count:function(e){var n=this.histo;if(!this._count_set||e){var r,i,a,o=0;for(r=this.r1;r<=this.r2;r++)for(i=this.g1;i<=this.g2;i++)for(a=this.b1;a<=this.b2;a++)o+=n[t(r,i,a)]||0;this._count=o,this._count_set=!0}return this._count},copy:function(){return new r(this.r1,this.r2,this.g1,this.g2,this.b1,this.b2,this.histo)},avg:function(e){var n=this.histo;if(!this._avg||e){var r,i,a,o,l=0,s=0,c=0,u=0;for(i=this.r1;i<=this.r2;i++)for(a=this.g1;a<=this.g2;a++)for(o=this.b1;o<=this.b2;o++)l+=r=n[t(i,a,o)]||0,s+=r*(i+.5)*8,c+=r*(a+.5)*8,u+=r*(o+.5)*8;l?this._avg=[~~(s/l),~~(c/l),~~(u/l)]:this._avg=[~~(8*(this.r1+this.r2+1)/2),~~(8*(this.g1+this.g2+1)/2),~~(8*(this.b1+this.b2+1)/2)]}return this._avg},contains:function(t){var e=t[0]>>3;return gval=t[1]>>3,bval=t[2]>>3,e>=this.r1&&e<=this.r2&&gval>=this.g1&&gval<=this.g2&&bval>=this.b1&&bval<=this.b2}},i.prototype={push:function(t){this.vboxes.push({vbox:t,color:t.avg()})},palette:function(){return this.vboxes.map(function(t){return t.color})},size:function(){return this.vboxes.size()},map:function(t){for(var e=this.vboxes,n=0;n251&&i[1]>251&&i[2]>251&&(t[r].color=[255,255,255])}},{quantize:function(a,o){if(!a.length||o<2||o>256)return!1;var l,s,c,u,f,d,h,p,g,m,y,v=(s=Array(32768),a.forEach(function(e){s[l=t(e[0]>>3,e[1]>>3,e[2]>>3)]=(s[l]||0)+1}),s),b=0;v.forEach(function(){b++});var x=(d=1e6,h=0,p=1e6,g=0,m=1e6,y=0,a.forEach(function(t){c=t[0]>>3,u=t[1]>>3,f=t[2]>>3,ch&&(h=c),ug&&(g=u),fy&&(y=f)}),new r(d,h,p,g,m,y,v)),O=new n(function(t,n){return e.naturalOrder(t.count(),n.count())});function w(n,r){for(var i,a=1,o=0;o<1e3;){if(!(i=n.pop()).count()){n.push(i),o++;continue}var l=function(n,r){if(r.count()){var i=r.r2-r.r1+1,a=r.g2-r.g1+1,o=r.b2-r.b1+1,l=e.max([i,a,o]);if(1==r.count())return[r.copy()];var s,c,u,f,d=0,h=[],p=[];if(l==i)for(s=r.r1;s<=r.r2;s++){for(f=0,c=r.g1;c<=r.g2;c++)for(u=r.b1;u<=r.b2;u++)f+=n[t(s,c,u)]||0;d+=f,h[s]=d}else if(l==a)for(s=r.g1;s<=r.g2;s++){for(f=0,c=r.r1;c<=r.r2;c++)for(u=r.b1;u<=r.b2;u++)f+=n[t(c,s,u)]||0;d+=f,h[s]=d}else for(s=r.b1;s<=r.b2;s++){for(f=0,c=r.r1;c<=r.r2;c++)for(u=r.g1;u<=r.g2;u++)f+=n[t(c,u,s)]||0;d+=f,h[s]=d}return h.forEach(function(t,e){p[e]=d-t}),function(t){var e,n,i,a,o,l=t+"1",c=t+"2",u=0;for(s=r[l];s<=r[c];s++)if(h[s]>d/2){for(i=r.copy(),a=r.copy(),o=(e=s-r[l])<=(n=r[c]-s)?Math.min(r[c]-1,~~(s+n/2)):Math.max(r[l],~~(s-1-e/2));!h[o];)o++;for(u=p[o];!u&&h[o-1];)u=p[--o];return i[c]=o,a[l]=i[c]+1,[i,a]}}(l==i?"r":l==a?"g":"b")}}(v,i),s=l[0],c=l[1];if(!s||(n.push(s),c&&(n.push(c),a++),a>=r||o++>1e3))return}}O.push(x),w(O,.75*o);for(var _=new n(function(t,n){return e.naturalOrder(t.count()*t.volume(),n.count()*n.volume())});O.size();)_.push(O.pop());w(_,o-_.size());for(var k=new i;_.size();)k.push(_.pop());return k}}}();t.exports=n.quantize},87247:function(t,e,n){"use strict";let r=n(56534),i=n(12275),a=new class extends i{content({onError:t,onResult:e,onDone:n}){return`var _results = new Array(${this.options.taps.length}); -var _checkDone = function() { -for(var i = 0; i < _results.length; i++) { -var item = _results[i]; -if(item === undefined) return false; -if(item.result !== undefined) { -`+e("item.result")+"return true;\n}\nif(item.error) {\n"+t("item.error")+"return true;\n}\n}\nreturn false;\n}\n"+this.callTapsParallel({onError:(t,e,n,r)=>`if(${t} < _results.length && ((_results.length = ${t+1}), (_results[${t}] = { error: ${e} }), _checkDone())) { -`+r(!0)+"} else {\n"+n()+"}\n",onResult:(t,e,n,r)=>`if(${t} < _results.length && (${e} !== undefined && (_results.length = ${t+1}), (_results[${t}] = { result: ${e} }), _checkDone())) { -`+r(!0)+"} else {\n"+n()+"}\n",onTap:(t,e,n,r)=>{let i="";return t>0&&(i+=`if(${t} >= _results.length) { -`+n()+"} else {\n"),i+=e(),t>0&&(i+="}\n"),i},onDone:n})}},o=function(t){return a.setup(this,t),a.create(t)};function l(t=[],e){let n=new r(t,e);return n.constructor=l,n.compile=o,n._call=void 0,n.call=void 0,n}l.prototype=null,t.exports=l},26714:function(t,e,n){"use strict";let r=n(56534),i=n(12275),a=new class extends i{content({onError:t,onDone:e}){return this.callTapsParallel({onError:(e,n,r,i)=>t(n)+i(!0),onDone:e})}},o=function(t){return a.setup(this,t),a.create(t)};function l(t=[],e){let n=new r(t,e);return n.constructor=l,n.compile=o,n._call=void 0,n.call=void 0,n}l.prototype=null,t.exports=l},21293:function(t,e,n){"use strict";let r=n(56534),i=n(12275),a=new class extends i{content({onError:t,onResult:e,resultReturns:n,onDone:r}){return this.callTapsSeries({onError:(e,n,r,i)=>t(n)+i(!0),onResult:(t,n,r)=>`if(${n} !== undefined) { -${e(n)} -} else { -${r()}} -`,resultReturns:n,onDone:r})}},o=function(t){return a.setup(this,t),a.create(t)};function l(t=[],e){let n=new r(t,e);return n.constructor=l,n.compile=o,n._call=void 0,n.call=void 0,n}l.prototype=null,t.exports=l},21617:function(t,e,n){"use strict";let r=n(56534),i=n(12275),a=new class extends i{content({onError:t,onDone:e}){return this.callTapsSeries({onError:(e,n,r,i)=>t(n)+i(!0),onDone:e})}},o=function(t){return a.setup(this,t),a.create(t)};function l(t=[],e){let n=new r(t,e);return n.constructor=l,n.compile=o,n._call=void 0,n.call=void 0,n}l.prototype=null,t.exports=l},40996:function(t,e,n){"use strict";let r=n(56534),i=n(12275),a=new class extends i{content({onError:t,onDone:e}){return this.callTapsLooping({onError:(e,n,r,i)=>t(n)+i(!0),onDone:e})}},o=function(t){return a.setup(this,t),a.create(t)};function l(t=[],e){let n=new r(t,e);return n.constructor=l,n.compile=o,n._call=void 0,n.call=void 0,n}l.prototype=null,t.exports=l},17178:function(t,e,n){"use strict";let r=n(56534),i=n(12275),a=new class extends i{content({onError:t,onResult:e,onDone:n}){return this.callTapsSeries({onError:(e,n,r,i)=>t(n)+i(!0),onResult:(t,e,n)=>`if(${e} !== undefined) { -${this._args[0]} = ${e}; -} -`+n(),onDone:()=>e(this._args[0])})}},o=function(t){return a.setup(this,t),a.create(t)};function l(t=[],e){if(t.length<1)throw Error("Waterfall hooks must have at least one argument");let n=new r(t,e);return n.constructor=l,n.compile=o,n._call=void 0,n.call=void 0,n}l.prototype=null,t.exports=l},56534:function(t,e,n){"use strict";let r=n(50517),i=r.deprecate(()=>{},"Hook.context is deprecated and will be removed"),a=function(...t){return this.call=this._createCall("sync"),this.call(...t)},o=function(...t){return this.callAsync=this._createCall("async"),this.callAsync(...t)},l=function(...t){return this.promise=this._createCall("promise"),this.promise(...t)};class s{constructor(t=[],e){this._args=t,this.name=e,this.taps=[],this.interceptors=[],this._call=a,this.call=a,this._callAsync=o,this.callAsync=o,this._promise=l,this.promise=l,this._x=void 0,this.compile=this.compile,this.tap=this.tap,this.tapAsync=this.tapAsync,this.tapPromise=this.tapPromise}compile(t){throw Error("Abstract: should be overridden")}_createCall(t){return this.compile({taps:this.taps,interceptors:this.interceptors,args:this._args,type:t})}_tap(t,e,n){if("string"==typeof e)e={name:e.trim()};else if("object"!=typeof e||null===e)throw Error("Invalid tap options");if("string"!=typeof e.name||""===e.name)throw Error("Missing name for tap");void 0!==e.context&&i(),e=Object.assign({type:t,fn:n},e),e=this._runRegisterInterceptors(e),this._insert(e)}tap(t,e){this._tap("sync",t,e)}tapAsync(t,e){this._tap("async",t,e)}tapPromise(t,e){this._tap("promise",t,e)}_runRegisterInterceptors(t){for(let e of this.interceptors)if(e.register){let n=e.register(t);void 0!==n&&(t=n)}return t}withOptions(t){let e=e=>Object.assign({},t,"string"==typeof e?{name:e}:e);return{name:this.name,tap:(t,n)=>this.tap(e(t),n),tapAsync:(t,n)=>this.tapAsync(e(t),n),tapPromise:(t,n)=>this.tapPromise(e(t),n),intercept:t=>this.intercept(t),isUsed:()=>this.isUsed(),withOptions:t=>this.withOptions(e(t))}}isUsed(){return this.taps.length>0||this.interceptors.length>0}intercept(t){if(this._resetCompilation(),this.interceptors.push(Object.assign({},t)),t.register)for(let e=0;e0;){r--;let t=this.taps[r];this.taps[r+1]=t;let i=t.stage||0;if(e){if(e.has(t.name)){e.delete(t.name);continue}if(e.size>0)continue}if(!(i>n)){r++;break}}this.taps[r]=t}}Object.setPrototypeOf(s.prototype,null),t.exports=s},12275:function(t){"use strict";t.exports=class{constructor(t){this.config=t,this.options=void 0,this._args=void 0}create(t){let e;switch(this.init(t),this.options.type){case"sync":e=Function(this.args(),'"use strict";\n'+this.header()+this.contentWithInterceptors({onError:t=>`throw ${t}; -`,onResult:t=>`return ${t}; -`,resultReturns:!0,onDone:()=>"",rethrowIfPossible:!0}));break;case"async":e=Function(this.args({after:"_callback"}),'"use strict";\n'+this.header()+this.contentWithInterceptors({onError:t=>`_callback(${t}); -`,onResult:t=>`_callback(null, ${t}); -`,onDone:()=>"_callback();\n"}));break;case"promise":let n=!1,r=this.contentWithInterceptors({onError:t=>(n=!0,`_error(${t}); -`),onResult:t=>`_resolve(${t}); -`,onDone:()=>"_resolve();\n"}),i="";i+='"use strict";\n'+this.header()+"return new Promise((function(_resolve, _reject) {\n",n&&(i+="var _sync = true;\nfunction _error(_err) {\nif(_sync)\n_resolve(Promise.resolve().then((function() { throw _err; })));\nelse\n_reject(_err);\n};\n"),i+=r,n&&(i+="_sync = false;\n"),i+="}));\n",e=Function(this.args(),i)}return this.deinit(),e}setup(t,e){t._x=e.taps.map(t=>t.fn)}init(t){this.options=t,this._args=t.args.slice()}deinit(){this.options=void 0,this._args=void 0}contentWithInterceptors(t){if(!(this.options.interceptors.length>0))return this.content(t);{let e=t.onError,n=t.onResult,r=t.onDone,i="";for(let t=0;t{let n="";for(let e=0;e{let e="";for(let n=0;n{let t="";for(let e=0;e0&&(t+="var _taps = this.taps;\nvar _interceptors = this.interceptors;\n"),t}needContext(){for(let t of this.options.taps)if(t.context)return!0;return!1}callTap(t,{onError:e,onResult:n,onDone:r,rethrowIfPossible:i}){let a="",o=!1;for(let e=0;e"sync"!==t.type),l=n||i,s="",c=r,u=0;for(let n=this.options.taps.length-1;n>=0;n--){let i=n,f=c!==r&&("sync"!==this.options.taps[i].type||u++>20);f&&(u=0,s+=`function _next${i}() { -`+c()+`} -`,c=()=>`${l?"return ":""}_next${i}(); -`);let d=c,h=t=>t?"":r(),p=this.callTap(i,{onError:e=>t(i,e,d,h),onResult:e&&(t=>e(i,t,d,h)),onDone:!e&&d,rethrowIfPossible:a&&(o<0||ip}return s+c()}callTapsLooping({onError:t,onDone:e,rethrowIfPossible:n}){if(0===this.options.taps.length)return e();let r=this.options.taps.every(t=>"sync"===t.type),i="";r||(i+="var _looper = (function() {\nvar _loopAsync = false;\n"),i+="var _loop;\ndo {\n_loop = false;\n";for(let t=0;t{let a="";return a+=`if(${e} !== undefined) { -_loop = true; -`,r||(a+="if(_loopAsync) _looper();\n"),a+=i(!0)+`} else { -`+n()+`} -`},onDone:e&&(()=>"if(!_loop) {\n"+e()+"}\n"),rethrowIfPossible:n&&r})+"} while(_loop);\n",r||(i+="_loopAsync = true;\n});\n_looper();\n"),i}callTapsParallel({onError:t,onResult:e,onDone:n,rethrowIfPossible:r,onTap:i=(t,e)=>e()}){if(this.options.taps.length<=1)return this.callTapsSeries({onError:t,onResult:e,onDone:n,rethrowIfPossible:r});let a="";a+=`do { -var _counter = ${this.options.taps.length}; -`,n&&(a+="var _done = (function() {\n"+n()+"});\n");for(let o=0;on?"if(--_counter === 0) _done();\n":"--_counter;",s=t=>t||!n?"_counter = 0;\n":"_counter = 0;\n_done();\n";a+="if(_counter <= 0) break;\n"+i(o,()=>this.callTap(o,{onError:e=>"if(_counter > 0) {\n"+t(o,e,l,s)+"}\n",onResult:e&&(t=>"if(_counter > 0) {\n"+e(o,t,l,s)+"}\n"),onDone:!e&&(()=>l()),rethrowIfPossible:r}),l,s)}return a+"} while(false);\n"}args({before:t,after:e}={}){let n=this._args;return(t&&(n=[t].concat(n)),e&&(n=n.concat(e)),0===n.length)?"":n.join(", ")}getTapFn(t){return`_x[${t}]`}getTap(t){return`_taps[${t}]`}getInterceptor(t){return`_interceptors[${t}]`}}},12459:function(t,e,n){"use strict";let r=n(50517),i=(t,e)=>e;class a{constructor(t,e){this._map=new Map,this.name=e,this._factory=t,this._interceptors=[]}get(t){return this._map.get(t)}for(t){let e=this.get(t);if(void 0!==e)return e;let n=this._factory(t),r=this._interceptors;for(let e=0;ee.withOptions(t)),this.name)}}t.exports=r},13922:function(t,e,n){"use strict";let r=n(56534),i=n(12275),a=new class extends i{content({onError:t,onResult:e,resultReturns:n,onDone:r,rethrowIfPossible:i}){return this.callTapsSeries({onError:(e,n)=>t(n),onResult:(t,n,r)=>`if(${n} !== undefined) { -${e(n)}; -} else { -${r()}} -`,resultReturns:n,onDone:r,rethrowIfPossible:i})}},o=()=>{throw Error("tapAsync is not supported on a SyncBailHook")},l=()=>{throw Error("tapPromise is not supported on a SyncBailHook")},s=function(t){return a.setup(this,t),a.create(t)};function c(t=[],e){let n=new r(t,e);return n.constructor=c,n.tapAsync=o,n.tapPromise=l,n.compile=s,n}c.prototype=null,t.exports=c},90537:function(t,e,n){"use strict";let r=n(56534),i=n(12275),a=new class extends i{content({onError:t,onDone:e,rethrowIfPossible:n}){return this.callTapsSeries({onError:(e,n)=>t(n),onDone:e,rethrowIfPossible:n})}},o=()=>{throw Error("tapAsync is not supported on a SyncHook")},l=()=>{throw Error("tapPromise is not supported on a SyncHook")},s=function(t){return a.setup(this,t),a.create(t)};function c(t=[],e){let n=new r(t,e);return n.constructor=c,n.tapAsync=o,n.tapPromise=l,n.compile=s,n}c.prototype=null,t.exports=c},43074:function(t,e,n){"use strict";let r=n(56534),i=n(12275),a=new class extends i{content({onError:t,onDone:e,rethrowIfPossible:n}){return this.callTapsLooping({onError:(e,n)=>t(n),onDone:e,rethrowIfPossible:n})}},o=()=>{throw Error("tapAsync is not supported on a SyncLoopHook")},l=()=>{throw Error("tapPromise is not supported on a SyncLoopHook")},s=function(t){return a.setup(this,t),a.create(t)};function c(t=[],e){let n=new r(t,e);return n.constructor=c,n.tapAsync=o,n.tapPromise=l,n.compile=s,n}c.prototype=null,t.exports=c},62076:function(t,e,n){"use strict";let r=n(56534),i=n(12275),a=new class extends i{content({onError:t,onResult:e,resultReturns:n,rethrowIfPossible:r}){return this.callTapsSeries({onError:(e,n)=>t(n),onResult:(t,e,n)=>`if(${e} !== undefined) { -${this._args[0]} = ${e}; -} -`+n(),onDone:()=>e(this._args[0]),doneReturns:n,rethrowIfPossible:r})}},o=()=>{throw Error("tapAsync is not supported on a SyncWaterfallHook")},l=()=>{throw Error("tapPromise is not supported on a SyncWaterfallHook")},s=function(t){return a.setup(this,t),a.create(t)};function c(t=[],e){if(t.length<1)throw Error("Waterfall hooks must have at least one argument");let n=new r(t,e);return n.constructor=c,n.tapAsync=o,n.tapPromise=l,n.compile=s,n}c.prototype=null,t.exports=c},89991:function(t,e,n){"use strict";e.SyncHook=n(90537),n(13922),n(62076),n(43074),e.AsyncParallelHook=n(26714),n(87247),n(21617),n(21293),n(40996),e.AsyncSeriesWaterfallHook=n(17178),n(12459),n(70942)},50517:function(t,e){"use strict";e.deprecate=(t,e)=>{let n=!0;return function(){return n&&(console.warn("DeprecationWarning: "+e),n=!1),t.apply(this,arguments)}}},28670:function(t){t.exports=function(){"use strict";for(var t=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=1),tn?n:t},e={},n=0,r=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];n255)&&(e._clipped=!0),e[n]=t(e[n],0,255)):3===n&&(e[n]=t(e[n],0,1));return e},limit:t,type:a,unpack:function(t,e){return(void 0===e&&(e=null),t.length>=3)?Array.prototype.slice.call(t):"object"==a(t[0])&&e?e.split("").filter(function(e){return void 0!==t[0][e]}).map(function(e){return t[0][e]}):t[0]},last:function(t){if(t.length<2)return null;var e=t.length-1;return"string"==a(t[e])?t[e].toLowerCase():null},PI:o,TWOPI:2*o,PITHIRD:o/3,DEG2RAD:o/180,RAD2DEG:180/o},s={format:{},autodetect:[]},c=l.last,u=l.clip_rgb,f=l.type,d=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if("object"===f(t[0])&&t[0].constructor&&t[0].constructor===this.constructor)return t[0];var n=c(t),r=!1;if(!n){r=!0,s.sorted||(s.autodetect=s.autodetect.sort(function(t,e){return e.p-t.p}),s.sorted=!0);for(var i=0,a=s.autodetect;i4?t[4]:1;return 1===a?[0,0,0,o]:[n>=1?0:255*(1-n)*(1-a),r>=1?0:255*(1-r)*(1-a),i>=1?0:255*(1-i)*(1-a),o]},s.autodetect.push({p:2,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if("array"===v(t=y(t,"cmyk"))&&4===t.length)return"cmyk"}});var x=l.unpack,O=l.last,w=function(t){return Math.round(100*t)/100},_=l.unpack,k=function(){for(var t,e,n=[],r=arguments.length;r--;)n[r]=arguments[r];var i=(n=_(n,"rgba"))[0],a=n[1],o=n[2],l=Math.min(i/=255,a/=255,o/=255),s=Math.max(i,a,o),c=(s+l)/2;return(s===l?(t=0,e=Number.NaN):t=c<.5?(s-l)/(s+l):(s-l)/(2-s-l),i==s?e=(a-o)/(s-l):a==s?e=2+(o-i)/(s-l):o==s&&(e=4+(i-a)/(s-l)),(e*=60)<0&&(e+=360),n.length>3&&void 0!==n[3])?[e,t,c,n[3]]:[e,t,c]},C=l.unpack,j=l.last,M=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=x(t,"hsla"),r=O(t)||"lsa";return n[0]=w(n[0]||0),n[1]=w(100*n[1])+"%",n[2]=w(100*n[2])+"%","hsla"===r||n.length>3&&n[3]<1?(n[3]=n.length>3?n[3]:1,r="hsla"):n.length=3,r+"("+n.join(",")+")"},S=Math.round,A=l.unpack,E=Math.round,P=function(){for(var t,e,n,r,i=[],a=arguments.length;a--;)i[a]=arguments[a];var o=(i=A(i,"hsl"))[0],l=i[1],s=i[2];if(0===l)e=n=r=255*s;else{var c=[0,0,0],u=[0,0,0],f=s<.5?s*(1+l):s+l-s*l,d=2*s-f,h=o/360;c[0]=h+1/3,c[1]=h,c[2]=h-1/3;for(var p=0;p<3;p++)c[p]<0&&(c[p]+=1),c[p]>1&&(c[p]-=1),6*c[p]<1?u[p]=d+(f-d)*6*c[p]:2*c[p]<1?u[p]=f:3*c[p]<2?u[p]=d+(f-d)*(2/3-c[p])*6:u[p]=d;e=(t=[E(255*u[0]),E(255*u[1]),E(255*u[2])])[0],n=t[1],r=t[2]}return i.length>3?[e,n,r,i[3]]:[e,n,r,1]},R=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,T=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,L=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,B=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Z=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,I=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,D=Math.round,N=function(t){if(t=t.toLowerCase().trim(),s.format.named)try{return s.format.named(t)}catch(t){}if(e=t.match(R)){for(var e,n=e.slice(1,4),r=0;r<3;r++)n[r]=+n[r];return n[3]=1,n}if(e=t.match(T)){for(var i=e.slice(1,5),a=0;a<4;a++)i[a]=+i[a];return i}if(e=t.match(L)){for(var o=e.slice(1,4),l=0;l<3;l++)o[l]=D(2.55*o[l]);return o[3]=1,o}if(e=t.match(B)){for(var c=e.slice(1,5),u=0;u<3;u++)c[u]=D(2.55*c[u]);return c[3]=+c[3],c}if(e=t.match(Z)){var f=e.slice(1,4);f[1]*=.01,f[2]*=.01;var d=P(f);return d[3]=1,d}if(e=t.match(I)){var h=e.slice(1,4);h[1]*=.01,h[2]*=.01;var p=P(h);return p[3]=+e[4],p}};N.test=function(t){return R.test(t)||T.test(t)||L.test(t)||B.test(t)||Z.test(t)||I.test(t)};var z=l.type,F=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=C(t,"rgba"),r=j(t)||"rgb";return"hsl"==r.substr(0,3)?M(k(n),r):(n[0]=S(n[0]),n[1]=S(n[1]),n[2]=S(n[2]),("rgba"===r||n.length>3&&n[3]<1)&&(n[3]=n.length>3?n[3]:1,r="rgba"),r+"("+n.slice(0,"rgb"===r?3:4).join(",")+")")};d.prototype.css=function(t){return F(this._rgb,t)},h.css=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["css"])))},s.format.css=N,s.autodetect.push({p:5,test:function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];if(!e.length&&"string"===z(t)&&N.test(t))return"css"}});var $=l.unpack;s.format.gl=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=$(t,"rgba");return n[0]*=255,n[1]*=255,n[2]*=255,n},h.gl=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["gl"])))},d.prototype.gl=function(){var t=this._rgb;return[t[0]/255,t[1]/255,t[2]/255,t[3]]};var W=l.unpack,H=l.unpack,G=Math.floor,q=l.unpack,Y=l.type,V=function(){for(var t,e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=W(e,"rgb"),i=r[0],a=r[1],o=r[2],l=Math.min(i,a,o),s=Math.max(i,a,o),c=s-l;return 0===c?t=Number.NaN:(i===s&&(t=(a-o)/c),a===s&&(t=2+(o-i)/c),o===s&&(t=4+(i-a)/c),(t*=60)<0&&(t+=360)),[t,100*c/255,l/(255-c)*100]};d.prototype.hcg=function(){return V(this._rgb)},h.hcg=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["hcg"])))},s.format.hcg=function(){for(var t,e,n,r,i,a,o,l,s,c=[],u=arguments.length;u--;)c[u]=arguments[u];var f=(c=H(c,"hcg"))[0],d=c[1],h=c[2];h*=255;var p=255*d;if(0===d)o=l=s=h;else{360===f&&(f=0),f>360&&(f-=360),f<0&&(f+=360);var g=G(f/=60),m=f-g,y=h*(1-d),v=y+p*(1-m),b=y+p*m,x=y+p;switch(g){case 0:o=(t=[x,b,y])[0],l=t[1],s=t[2];break;case 1:o=(e=[v,x,y])[0],l=e[1],s=e[2];break;case 2:o=(n=[y,x,b])[0],l=n[1],s=n[2];break;case 3:o=(r=[y,v,x])[0],l=r[1],s=r[2];break;case 4:o=(i=[b,y,x])[0],l=i[1],s=i[2];break;case 5:o=(a=[x,y,v])[0],l=a[1],s=a[2]}}return[o,l,s,c.length>3?c[3]:1]},s.autodetect.push({p:1,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if("array"===Y(t=q(t,"hcg"))&&3===t.length)return"hcg"}});var U=l.unpack,Q=l.last,X=Math.round,K=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=U(t,"rgba"),r=n[0],i=n[1],a=n[2],o=n[3],l=Q(t)||"auto";void 0===o&&(o=1),"auto"===l&&(l=o<1?"rgba":"rgb");var s="000000"+((r=X(r))<<16|(i=X(i))<<8|(a=X(a))).toString(16);s=s.substr(s.length-6);var c="0"+X(255*o).toString(16);switch(c=c.substr(c.length-2),l.toLowerCase()){case"rgba":return"#"+s+c;case"argb":return"#"+c+s;default:return"#"+s}},J=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,tt=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,te=function(t){if(t.match(J)){(4===t.length||7===t.length)&&(t=t.substr(1)),3===t.length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]);var e=parseInt(t,16);return[e>>16,e>>8&255,255&e,1]}if(t.match(tt)){(5===t.length||9===t.length)&&(t=t.substr(1)),4===t.length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);var n=parseInt(t,16),r=Math.round((255&n)/255*100)/100;return[n>>24&255,n>>16&255,n>>8&255,r]}throw Error("unknown hex color: "+t)},tn=l.type;d.prototype.hex=function(t){return K(this._rgb,t)},h.hex=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["hex"])))},s.format.hex=te,s.autodetect.push({p:4,test:function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];if(!e.length&&"string"===tn(t)&&[3,4,5,6,7,8,9].indexOf(t.length)>=0)return"hex"}});var tr=l.unpack,ti=l.TWOPI,ta=Math.min,to=Math.sqrt,tl=Math.acos,ts=l.unpack,tc=l.limit,tu=l.TWOPI,tf=l.PITHIRD,td=Math.cos,th=l.unpack,tp=l.type,tg=function(){for(var t,e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=tr(e,"rgb"),i=r[0],a=r[1],o=r[2],l=ta(i/=255,a/=255,o/=255),s=(i+a+o)/3,c=s>0?1-l/s:0;return 0===c?t=NaN:(t=tl(t=(i-a+(i-o))/2/to((i-a)*(i-a)+(i-o)*(a-o))),o>a&&(t=ti-t),t/=ti),[360*t,c,s]};d.prototype.hsi=function(){return tg(this._rgb)},h.hsi=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["hsi"])))},s.format.hsi=function(){for(var t,e,n,r=[],i=arguments.length;i--;)r[i]=arguments[i];var a=(r=ts(r,"hsi"))[0],o=r[1],l=r[2];return isNaN(a)&&(a=0),isNaN(o)&&(o=0),a>360&&(a-=360),a<0&&(a+=360),(a/=360)<1/3?e=1-((n=(1-o)/3)+(t=(1+o*td(tu*a)/td(tf-tu*a))/3)):a<2/3?(a-=1/3,n=1-((t=(1-o)/3)+(e=(1+o*td(tu*a)/td(tf-tu*a))/3))):(a-=2/3,t=1-((e=(1-o)/3)+(n=(1+o*td(tu*a)/td(tf-tu*a))/3))),[255*(t=tc(l*t*3)),255*(e=tc(l*e*3)),255*(n=tc(l*n*3)),r.length>3?r[3]:1]},s.autodetect.push({p:2,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if("array"===tp(t=th(t,"hsi"))&&3===t.length)return"hsi"}});var tm=l.unpack,ty=l.type;d.prototype.hsl=function(){return k(this._rgb)},h.hsl=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["hsl"])))},s.format.hsl=P,s.autodetect.push({p:2,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if("array"===ty(t=tm(t,"hsl"))&&3===t.length)return"hsl"}});var tv=l.unpack,tb=Math.min,tx=Math.max,tO=l.unpack,tw=Math.floor,t_=l.unpack,tk=l.type,tC=function(){for(var t,e,n=[],r=arguments.length;r--;)n[r]=arguments[r];var i=(n=tv(n,"rgb"))[0],a=n[1],o=n[2],l=tb(i,a,o),s=tx(i,a,o),c=s-l;return 0===s?(t=Number.NaN,e=0):(e=c/s,i===s&&(t=(a-o)/c),a===s&&(t=2+(o-i)/c),o===s&&(t=4+(i-a)/c),(t*=60)<0&&(t+=360)),[t,e,s/255]};d.prototype.hsv=function(){return tC(this._rgb)},h.hsv=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["hsv"])))},s.format.hsv=function(){for(var t,e,n,r,i,a,o,l,s,c=[],u=arguments.length;u--;)c[u]=arguments[u];var f=(c=tO(c,"hsv"))[0],d=c[1],h=c[2];if(h*=255,0===d)o=l=s=h;else{360===f&&(f=0),f>360&&(f-=360),f<0&&(f+=360);var p=tw(f/=60),g=f-p,m=h*(1-d),y=h*(1-d*g),v=h*(1-d*(1-g));switch(p){case 0:o=(t=[h,v,m])[0],l=t[1],s=t[2];break;case 1:o=(e=[y,h,m])[0],l=e[1],s=e[2];break;case 2:o=(n=[m,h,v])[0],l=n[1],s=n[2];break;case 3:o=(r=[m,y,h])[0],l=r[1],s=r[2];break;case 4:o=(i=[v,m,h])[0],l=i[1],s=i[2];break;case 5:o=(a=[h,m,y])[0],l=a[1],s=a[2]}}return[o,l,s,c.length>3?c[3]:1]},s.autodetect.push({p:2,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if("array"===tk(t=t_(t,"hsv"))&&3===t.length)return"hsv"}});var tj={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},tM=l.unpack,tS=Math.pow,tA=function(t){return(t/=255)<=.04045?t/12.92:tS((t+.055)/1.055,2.4)},tE=function(t){return t>tj.t3?tS(t,1/3):t/tj.t2+tj.t0},tP=function(){for(var t,e,n,r=[],i=arguments.length;i--;)r[i]=arguments[i];var a=tM(r,"rgb"),o=(t=a[0],e=a[1],n=a[2],[tE((.4124564*(t=tA(t))+.3575761*(e=tA(e))+.1804375*(n=tA(n)))/tj.Xn),tE((.2126729*t+.7151522*e+.072175*n)/tj.Yn),tE((.0193339*t+.119192*e+.9503041*n)/tj.Zn)]),l=o[0],s=o[1],c=o[2],u=116*s-16;return[u<0?0:u,500*(l-s),200*(s-c)]},tR=l.unpack,tT=Math.pow,tL=function(t){return 255*(t<=.00304?12.92*t:1.055*tT(t,1/2.4)-.055)},tB=function(t){return t>tj.t1?t*t*t:tj.t2*(t-tj.t0)},tZ=function(){for(var t,e,n,r=[],i=arguments.length;i--;)r[i]=arguments[i];var a=(r=tR(r,"lab"))[0],o=r[1],l=r[2];return e=(a+16)/116,t=isNaN(o)?e:e+o/500,n=isNaN(l)?e:e-l/200,e=tj.Yn*tB(e),t=tj.Xn*tB(t),n=tj.Zn*tB(n),[tL(3.2404542*t-1.5371385*e-.4985314*n),tL(-.969266*t+1.8760108*e+.041556*n),tL(.0556434*t-.2040259*e+1.0572252*n),r.length>3?r[3]:1]},tI=l.unpack,tD=l.type;d.prototype.lab=function(){return tP(this._rgb)},h.lab=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["lab"])))},s.format.lab=tZ,s.autodetect.push({p:2,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if("array"===tD(t=tI(t,"lab"))&&3===t.length)return"lab"}});var tN=l.unpack,tz=l.RAD2DEG,tF=Math.sqrt,t$=Math.atan2,tW=Math.round,tH=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=tN(t,"lab"),r=n[0],i=n[1],a=n[2],o=tF(i*i+a*a),l=(t$(a,i)*tz+360)%360;return 0===tW(1e4*o)&&(l=Number.NaN),[r,o,l]},tG=l.unpack,tq=l.unpack,tY=l.DEG2RAD,tV=Math.sin,tU=Math.cos,tQ=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=tq(t,"lch"),r=n[0],i=n[1],a=n[2];return isNaN(a)&&(a=0),[r,tU(a*=tY)*i,tV(a)*i]},tX=l.unpack,tK=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=tQ((t=tX(t,"lch"))[0],t[1],t[2]),r=tZ(n[0],n[1],n[2]);return[r[0],r[1],r[2],t.length>3?t[3]:1]},tJ=l.unpack,t0=l.unpack,t1=l.type,t2=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=tG(t,"rgb"),r=tP(n[0],n[1],n[2]);return tH(r[0],r[1],r[2])};d.prototype.lch=function(){return t2(this._rgb)},d.prototype.hcl=function(){return t2(this._rgb).reverse()},h.lch=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["lch"])))},h.hcl=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["hcl"])))},s.format.lch=tK,s.format.hcl=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=tJ(t,"hcl").reverse();return tK.apply(void 0,n)},["lch","hcl"].forEach(function(t){return s.autodetect.push({p:2,test:function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if("array"===t1(e=t0(e,t))&&3===e.length)return t}})});var t5={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},t3=l.type;d.prototype.name=function(){for(var t=K(this._rgb,"rgb"),e=0,n=Object.keys(t5);e0;)e[n]=arguments[n+1];if(!e.length&&"string"===t3(t)&&t5[t.toLowerCase()])return"named"}});var t4=l.unpack,t6=l.type,t8=l.type,t7=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=t4(t,"rgb");return(n[0]<<16)+(n[1]<<8)+n[2]};d.prototype.num=function(){return t7(this._rgb)},h.num=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["num"])))},s.format.num=function(t){if("number"==t6(t)&&t>=0&&t<=16777215)return[t>>16,t>>8&255,255&t,1];throw Error("unknown num color: "+t)},s.autodetect.push({p:5,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(1===t.length&&"number"===t8(t[0])&&t[0]>=0&&t[0]<=16777215)return"num"}});var t9=l.unpack,et=l.type,ee=Math.round;d.prototype.rgb=function(t){return(void 0===t&&(t=!0),!1===t)?this._rgb.slice(0,3):this._rgb.slice(0,3).map(ee)},d.prototype.rgba=function(t){return void 0===t&&(t=!0),this._rgb.slice(0,4).map(function(e,n){return n<3?!1===t?e:ee(e):e})},h.rgb=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["rgb"])))},s.format.rgb=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=t9(t,"rgba");return void 0===n[3]&&(n[3]=1),n},s.autodetect.push({p:3,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if("array"===et(t=t9(t,"rgba"))&&(3===t.length||4===t.length&&"number"==et(t[3])&&t[3]>=0&&t[3]<=1))return"rgb"}});var en=Math.log,er=function(t){var e,n,r,i=t/100;return i<66?(e=255,n=i<6?0:-155.25485562709179-.44596950469579133*(n=i-2)+104.49216199393888*en(n),r=i<20?0:-254.76935184120902+.8274096064007395*(r=i-10)+115.67994401066147*en(r)):(e=351.97690566805693+.114206453784165*(e=i-55)-40.25366309332127*en(e),n=325.4494125711974+.07943456536662342*(n=i-50)-28.0852963507957*en(n),r=255),[e,n,r,1]},ei=l.unpack,ea=Math.round,eo=function(){for(var t,e=[],n=arguments.length;n--;)e[n]=arguments[n];for(var r=ei(e,"rgb"),i=r[0],a=r[2],o=1e3,l=4e4;l-o>.4;){var s=er(t=(l+o)*.5);s[2]/s[0]>=a/i?l=t:o=t}return ea(t)};d.prototype.temp=d.prototype.kelvin=d.prototype.temperature=function(){return eo(this._rgb)},h.temp=h.kelvin=h.temperature=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["temp"])))},s.format.temp=s.format.kelvin=s.format.temperature=er;var el=l.unpack,es=Math.cbrt,ec=Math.pow,eu=Math.sign,ef=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=el(t,"rgb"),r=n[0],i=n[1],a=n[2],o=[ed(r/255),ed(i/255),ed(a/255)],l=o[0],s=o[1],c=o[2],u=es(.4122214708*l+.5363325363*s+.0514459929*c),f=es(.2119034982*l+.6806995451*s+.1073969566*c),d=es(.0883024619*l+.2817188376*s+.6299787005*c);return[.2104542553*u+.793617785*f-.0040720468*d,1.9779984951*u-2.428592205*f+.4505937099*d,.0259040371*u+.7827717662*f-.808675766*d]};function ed(t){var e=Math.abs(t);return e<.04045?t/12.92:(eu(t)||1)*ec((e+.055)/1.055,2.4)}var eh=l.unpack,ep=Math.pow,eg=Math.sign,em=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=(t=eh(t,"lab"))[0],r=t[1],i=t[2],a=ep(n+.3963377774*r+.2158037573*i,3),o=ep(n-.1055613458*r-.0638541728*i,3),l=ep(n-.0894841775*r-1.291485548*i,3);return[255*ey(4.0767416621*a-3.3077115913*o+.2309699292*l),255*ey(-1.2684380046*a+2.6097574011*o-.3413193965*l),255*ey(-.0041960863*a-.7034186147*o+1.707614701*l),t.length>3?t[3]:1]};function ey(t){var e=Math.abs(t);return e>.0031308?(eg(t)||1)*(1.055*ep(e,1/2.4)-.055):12.92*t}var ev=l.unpack,eb=l.type;d.prototype.oklab=function(){return ef(this._rgb)},h.oklab=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["oklab"])))},s.format.oklab=em,s.autodetect.push({p:3,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if("array"===eb(t=ev(t,"oklab"))&&3===t.length)return"oklab"}});var ex=l.unpack,eO=l.unpack,ew=l.unpack,e_=l.type,ek=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=ex(t,"rgb"),r=ef(n[0],n[1],n[2]);return tH(r[0],r[1],r[2])};d.prototype.oklch=function(){return ek(this._rgb)},h.oklch=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(d,[null].concat(t,["oklch"])))},s.format.oklch=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=tQ((t=eO(t,"lch"))[0],t[1],t[2]),r=em(n[0],n[1],n[2]);return[r[0],r[1],r[2],t.length>3?t[3]:1]},s.autodetect.push({p:3,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if("array"===e_(t=ew(t,"oklch"))&&3===t.length)return"oklch"}});var eC=l.type;d.prototype.alpha=function(t,e){return(void 0===e&&(e=!1),void 0!==t&&"number"===eC(t))?e?(this._rgb[3]=t,this):new d([this._rgb[0],this._rgb[1],this._rgb[2],t],"rgb"):this._rgb[3]},d.prototype.clipped=function(){return this._rgb._clipped||!1},d.prototype.darken=function(t){void 0===t&&(t=1);var e=this.lab();return e[0]-=tj.Kn*t,new d(e,"lab").alpha(this.alpha(),!0)},d.prototype.brighten=function(t){return void 0===t&&(t=1),this.darken(-t)},d.prototype.darker=d.prototype.darken,d.prototype.brighter=d.prototype.brighten,d.prototype.get=function(t){var e=t.split("."),n=e[0],r=e[1],i=this[n]();if(!r)return i;var a=n.indexOf(r)-("ok"===n.substr(0,2)?2:0);if(a>-1)return i[a];throw Error("unknown channel "+r+" in mode "+n)};var ej=l.type,eM=Math.pow;d.prototype.luminance=function(t){if(void 0!==t&&"number"===ej(t)){if(0===t)return new d([0,0,0,this._rgb[3]],"rgb");if(1===t)return new d([255,255,255,this._rgb[3]],"rgb");var e=this.luminance(),n=20,r=function(e,i){var a=e.interpolate(i,.5,"rgb"),o=a.luminance();return!(1e-7>Math.abs(t-o))&&n--?o>t?r(e,a):r(a,i):a},i=(e>t?r(new d([0,0,0]),this):r(this,new d([255,255,255]))).rgb();return new d(i.concat([this._rgb[3]]))}return eS.apply(void 0,this._rgb.slice(0,3))};var eS=function(t,e,n){return .2126*(t=eA(t))+.7152*(e=eA(e))+.0722*(n=eA(n))},eA=function(t){return(t/=255)<=.03928?t/12.92:eM((t+.055)/1.055,2.4)},eE={},eP=l.type,eR=function(t,e,n){void 0===n&&(n=.5);for(var r=[],i=arguments.length-3;i-- >0;)r[i]=arguments[i+3];var a=r[0]||"lrgb";if(eE[a]||r.length||(a=Object.keys(eE)[0]),!eE[a])throw Error("interpolation mode "+a+" is not defined");return"object"!==eP(t)&&(t=new d(t)),"object"!==eP(e)&&(e=new d(e)),eE[a](t,e,n).alpha(t.alpha()+n*(e.alpha()-t.alpha()))};d.prototype.mix=d.prototype.interpolate=function(t,e){void 0===e&&(e=.5);for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return eR.apply(void 0,[this,t,e].concat(n))},d.prototype.premultiply=function(t){void 0===t&&(t=!1);var e=this._rgb,n=e[3];return t?(this._rgb=[e[0]*n,e[1]*n,e[2]*n,n],this):new d([e[0]*n,e[1]*n,e[2]*n,n],"rgb")},d.prototype.saturate=function(t){void 0===t&&(t=1);var e=this.lch();return e[1]+=tj.Kn*t,e[1]<0&&(e[1]=0),new d(e,"lch").alpha(this.alpha(),!0)},d.prototype.desaturate=function(t){return void 0===t&&(t=1),this.saturate(-t)};var eT=l.type;d.prototype.set=function(t,e,n){void 0===n&&(n=!1);var r=t.split("."),i=r[0],a=r[1],o=this[i]();if(!a)return o;var l=i.indexOf(a)-("ok"===i.substr(0,2)?2:0);if(l>-1){if("string"==eT(e))switch(e.charAt(0)){case"+":case"-":o[l]+=+e;break;case"*":o[l]*=+e.substr(1);break;case"/":o[l]/=+e.substr(1);break;default:o[l]=+e}else if("number"===eT(e))o[l]=e;else throw Error("unsupported value for Color.set");var s=new d(o,i);return n?(this._rgb=s._rgb,this):s}throw Error("unknown channel "+a+" in mode "+i)},eE.rgb=function(t,e,n){var r=t._rgb,i=e._rgb;return new d(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"rgb")};var eL=Math.sqrt,eB=Math.pow;eE.lrgb=function(t,e,n){var r=t._rgb,i=r[0],a=r[1],o=r[2],l=e._rgb,s=l[0],c=l[1],u=l[2];return new d(eL(eB(i,2)*(1-n)+eB(s,2)*n),eL(eB(a,2)*(1-n)+eB(c,2)*n),eL(eB(o,2)*(1-n)+eB(u,2)*n),"rgb")},eE.lab=function(t,e,n){var r=t.lab(),i=e.lab();return new d(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"lab")};var eZ=function(t,e,n,r){var i,a,o,l,s,c,u,f,h,p,g,m,y,v;return"hsl"===r?(o=t.hsl(),l=e.hsl()):"hsv"===r?(o=t.hsv(),l=e.hsv()):"hcg"===r?(o=t.hcg(),l=e.hcg()):"hsi"===r?(o=t.hsi(),l=e.hsi()):"lch"===r||"hcl"===r?(r="hcl",o=t.hcl(),l=e.hcl()):"oklch"===r&&(o=t.oklch().reverse(),l=e.oklch().reverse()),("h"===r.substr(0,1)||"oklch"===r)&&(s=(i=o)[0],u=i[1],h=i[2],c=(a=l)[0],f=a[1],p=a[2]),isNaN(s)||isNaN(c)?isNaN(s)?isNaN(c)?m=Number.NaN:(m=c,(1==h||0==h)&&"hsv"!=r&&(g=f)):(m=s,(1==p||0==p)&&"hsv"!=r&&(g=u)):(v=c>s&&c-s>180?c-(s+360):c180?c+360-s:c-s,m=s+n*v),void 0===g&&(g=u+n*(f-u)),y=h+n*(p-h),"oklch"===r?new d([y,g,m],r):new d([m,g,y],r)},eI=function(t,e,n){return eZ(t,e,n,"lch")};eE.lch=eI,eE.hcl=eI,eE.num=function(t,e,n){var r=t.num(),i=e.num();return new d(r+n*(i-r),"num")},eE.hcg=function(t,e,n){return eZ(t,e,n,"hcg")},eE.hsi=function(t,e,n){return eZ(t,e,n,"hsi")},eE.hsl=function(t,e,n){return eZ(t,e,n,"hsl")},eE.hsv=function(t,e,n){return eZ(t,e,n,"hsv")},eE.oklab=function(t,e,n){var r=t.oklab(),i=e.oklab();return new d(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"oklab")},eE.oklch=function(t,e,n){return eZ(t,e,n,"oklch")};var eD=l.clip_rgb,eN=Math.pow,ez=Math.sqrt,eF=Math.PI,e$=Math.cos,eW=Math.sin,eH=Math.atan2,eG=function(t,e){for(var n=t.length,r=[0,0,0,0],i=0;i.9999999&&(r[3]=1),new d(eD(r))},eq=l.type,eY=Math.pow,eV=function(t){var e="rgb",n=h("#ccc"),r=0,i=[0,1],a=[],o=[0,0],l=!1,s=[],c=!1,u=0,f=1,d=!1,p={},g=!0,m=1,y=function(t){if("string"===eq(t=t||["#fff","#000"])&&h.brewer&&h.brewer[t.toLowerCase()]&&(t=h.brewer[t.toLowerCase()]),"array"===eq(t)){1===t.length&&(t=[t[0],t[0]]),t=t.slice(0);for(var e=0;e=l[n];)n++;return n-1}return 0},b=function(t){return t},x=function(t){return t},O=function(t,r){if(null==r&&(r=!1),isNaN(t)||null===t)return n;if(r)c=t;else if(l&&l.length>2){var i,c;c=v(t)/(l.length-2)}else c=f!==u?(t-u)/(f-u):1;c=x(c),r||(c=b(c)),1!==m&&(c=eY(c,m));var d=Math.floor(1e4*(c=Math.min(1,Math.max(0,c=o[0]+c*(1-o[0]-o[1])))));if(g&&p[d])i=p[d];else{if("array"===eq(s))for(var y=0;y=O&&y===a.length-1){i=s[y];break}if(c>O&&c2){var c=t.map(function(e,n){return n/(t.length-1)}),d=t.map(function(t){return(t-u)/(f-u)});d.every(function(t,e){return c[e]===t})||(x=function(t){if(t<=0||t>=1)return t;for(var e=0;t>=d[e+1];)e++;var n=(t-d[e])/(d[e+1]-d[e]);return c[e]+n*(c[e+1]-c[e])})}}return i=[u,f],_},_.mode=function(t){return arguments.length?(e=t,w(),_):e},_.range=function(t,e){return y(t),_},_.out=function(t){return c=t,_},_.spread=function(t){return arguments.length?(r=t,_):r},_.correctLightness=function(t){return null==t&&(t=!0),d=t,w(),b=d?function(t){for(var e=O(0,!0).lab()[0],n=O(1,!0).lab()[0],r=e>n,i=O(t,!0).lab()[0],a=e+(n-e)*t,o=i-a,l=0,s=1,c=20;Math.abs(o)>.01&&c-- >0;)r&&(o*=-1),o<0?(l=t,t+=(s-t)*.5):(s=t,t+=(l-t)*.5),o=(i=O(t,!0).lab()[0])-a;return t}:function(t){return t},_},_.padding=function(t){return null!=t?("number"===eq(t)&&(t=[t,t]),o=t,_):o},_.colors=function(e,n){arguments.length<2&&(n="hex");var r=[];if(0==arguments.length)r=s.slice(0);else if(1===e)r=[_(.5)];else if(e>1){var a=i[0],o=i[1]-a;r=(function(t,e,n){for(var r=[],i=ta;i?o++:o--)r.push(o);return r})(0,e,!1).map(function(t){return _(a+t/(e-1)*o)})}else{t=[];var c=[];if(l&&l.length>2)for(var u=1,f=l.length,d=1<=f;d?uf;d?u++:u--)c.push((l[u-1]+l[u])*.5);else c=i;r=c.map(function(t){return _(t)})}return h[n]&&(r=r.map(function(t){return t[n]()})),r},_.cache=function(t){return null!=t?(g=t,_):g},_.gamma=function(t){return null!=t?(m=t,_):m},_.nodata=function(t){return null!=t?(n=h(t),_):n},_},eU=function(t){for(var e=[1,1],n=1;n=5)c=t.map(function(t){return t.lab()}),u=eU(f=t.length-1),i=function(t){var e=1-t,n=[0,1,2].map(function(n){return c.reduce(function(r,i,a){return r+u[a]*Math.pow(e,f-a)*Math.pow(t,a)*i[n]},0)});return new d(n,"lab")};else throw RangeError("No point in running bezier with only one color.");return i},eX=function(t,e,n){if(!eX[n])throw Error("unknown blend mode "+n);return eX[n](t,e)},eK=function(t){return function(e,n){var r=h(n).rgb(),i=h(e).rgb();return h.rgb(t(r,i))}},eJ=function(t){return function(e,n){var r=[];return r[0]=t(e[0],n[0]),r[1]=t(e[1],n[1]),r[2]=t(e[2],n[2]),r}};eX.normal=eK(eJ(function(t){return t})),eX.multiply=eK(eJ(function(t,e){return t*e/255})),eX.screen=eK(eJ(function(t,e){return 255*(1-(1-t/255)*(1-e/255))})),eX.overlay=eK(eJ(function(t,e){return e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255))})),eX.darken=eK(eJ(function(t,e){return t>e?e:t})),eX.lighten=eK(eJ(function(t,e){return t>e?t:e})),eX.dodge=eK(eJ(function(t,e){return 255===t?255:(t=255*(e/255)/(1-t/255))>255?255:t})),eX.burn=eK(eJ(function(t,e){return 255*(1-(1-e/255)/(t/255))}));for(var e0=l.type,e1=l.clip_rgb,e2=l.TWOPI,e5=Math.pow,e3=Math.sin,e4=Math.cos,e6=Math.floor,e8=Math.random,e7=Math.log,e9=Math.pow,nt=Math.floor,ne=Math.abs,nn=function(t,e){void 0===e&&(e=null);var n={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===a(t)&&(t=Object.values(t)),t.forEach(function(t){e&&"object"===a(t)&&(t=t[e]),null==t||isNaN(t)||(n.values.push(t),n.sum+=t,tn.max&&(n.max=t),n.count+=1)}),n.domain=[n.min,n.max],n.limits=function(t,e){return nr(n,t,e)},n},nr=function(t,e,n){void 0===e&&(e="equal"),void 0===n&&(n=7),"array"==a(t)&&(t=nn(t));var r=t.min,i=t.max,o=t.values.sort(function(t,e){return t-e});if(1===n)return[r,i];var l=[];if("c"===e.substr(0,1)&&(l.push(r),l.push(i)),"e"===e.substr(0,1)){l.push(r);for(var s=1;s 0");var c=Math.LOG10E*e7(r),u=Math.LOG10E*e7(i);l.push(r);for(var f=1;f200&&(x=!1)}for(var Z={},I=0;I=360;)g-=360;o[p]=g}else o[p]=o[p]/l[p];return h/=r,new d(o,e).alpha(h>.99999?1:h,!0)},h.bezier=function(t){var e=eQ(t);return e.scale=function(){return eV(e)},e},h.blend=eX,h.cubehelix=function(t,e,n,r,i){void 0===t&&(t=300),void 0===e&&(e=-1.5),void 0===n&&(n=1),void 0===r&&(r=1),void 0===i&&(i=[0,1]);var a,o=0;"array"===e0(i)?a=i[1]-i[0]:(a=0,i=[i,i]);var l=function(l){var s=e2*((t+120)/360+e*l),c=e5(i[0]+a*l,r),u=(0!==o?n[0]+l*o:n)*c*(1-c)/2,f=e4(s),d=e3(s);return h(e1([255*(c+u*(-.14861*f+1.78277*d)),255*(c+u*(-.29227*f-.90649*d)),255*(c+u*(1.97294*f)),1]))};return l.start=function(e){return null==e?t:(t=e,l)},l.rotations=function(t){return null==t?e:(e=t,l)},l.gamma=function(t){return null==t?r:(r=t,l)},l.hue=function(t){return null==t?n:("array"===e0(n=t)?0==(o=n[1]-n[0])&&(n=n[1]):o=0,l)},l.lightness=function(t){return null==t?i:("array"===e0(t)?(i=t,a=t[1]-t[0]):(i=[t,t],a=0),l)},l.scale=function(){return h.scale(l)},l.hue(n),l},h.mix=h.interpolate=eR,h.random=function(){for(var t="#",e=0;e<6;e++)t+="0123456789abcdef".charAt(e6(16*e8()));return new d(t,"hex")},h.scale=eV,h.analyze=ni.analyze,h.contrast=function(t,e){t=new d(t),e=new d(e);var n=t.luminance(),r=e.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},h.deltaE=function(t,e,n,r,i){void 0===n&&(n=1),void 0===r&&(r=1),void 0===i&&(i=1);var a=function(t){return 360*t/(2*np)},o=function(t){return 2*np*t/360};t=new d(t),e=new d(e);var l=Array.from(t.lab()),s=l[0],c=l[1],u=l[2],f=Array.from(e.lab()),h=f[0],p=f[1],g=f[2],m=(s+h)/2,y=(na(no(c,2)+no(u,2))+na(no(p,2)+no(g,2)))/2,v=.5*(1-na(no(y,7)/(no(y,7)+no(25,7)))),b=c*(1+v),x=p*(1+v),O=na(no(b,2)+no(u,2)),w=na(no(x,2)+no(g,2)),_=(O+w)/2,k=a(nc(u,b)),C=a(nc(g,x)),j=k>=0?k:k+360,M=C>=0?C:C+360,S=nu(j-M)>180?(j+M+360)/2:(j+M)/2,A=1-.17*nf(o(S-30))+.24*nf(o(2*S))+.32*nf(o(3*S+6))-.2*nf(o(4*S-63)),E=M-j;E=180>=nu(E)?E:M<=j?E+360:E-360,E=2*na(O*w)*nd(o(E)/2);var P=w-O,R=1+.015*no(m-50,2)/na(20+no(m-50,2)),T=1+.045*_,L=1+.015*_*A,B=30*nh(-no((S-275)/25,2)),Z=-(2*na(no(_,7)/(no(_,7)+no(25,7))))*nd(2*o(B));return ns(0,nl(100,na(no((h-s)/(n*R),2)+no(P/(r*T),2)+no(E/(i*L),2)+Z*(P/(r*T))*(E/(i*L)))))},h.distance=function(t,e,n){void 0===n&&(n="lab"),t=new d(t),e=new d(e);var r=t.get(n),i=e.get(n),a=0;for(var o in r){var l=(r[o]||0)-(i[o]||0);a+=l*l}return Math.sqrt(a)},h.limits=ni.limits,h.valid=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];try{return new(Function.prototype.bind.apply(d,[null].concat(t))),!0}catch(t){return!1}},h.scales={cool:function(){return eV([h.hsl(180,1,.9),h.hsl(250,.7,.4)])},hot:function(){return eV(["#000","#f00","#ff0","#fff"]).mode("rgb")}},h.colors=t5,h.brewer=ng,h}()},90230:function(t,e,n){"use strict";var r=n(41263);e.Z=r},15342:function(t,e,n){"use strict";var r=n(93859);e.Z=r},99204:function(t,e,n){"use strict";var r=n(69399);e.Z=r},14457:function(t,e,n){"use strict";var r=n(13346);e.Z=r},51961:function(t,e,n){"use strict";var r=n(47143);e.Z=r},23943:function(t,e,n){"use strict";var r=n(11089);e.Z=r},63968:function(t,e,n){"use strict";var r=n(66290);e.Z=r},90512:function(t,e,n){"use strict";e.Z=function(){for(var t,e,n=0,r="",i=arguments.length;ni&&(r=n,o(1),++e),n[t]=a}function o(t){e=0,n=Object.create(null),t||(r=Object.create(null))}return o(),{clear:o,has:function(t){return void 0!==n[t]||void 0!==r[t]},get:function(t){var e=n[t];return void 0!==e?e:void 0!==(e=r[t])?(a(t,e),e):void 0},set:function(t,e){void 0!==n[t]?n[t]=e:a(t,e)}}}n.d(e,{Z:function(){return r}})}}]); \ No newline at end of file diff --git a/dbgpt/app/static/web/_next/static/chunks/554c6155-2e8f5cbee49e006b.js b/dbgpt/app/static/web/_next/static/chunks/554c6155-1a171fdb837a225b.js similarity index 100% rename from dbgpt/app/static/web/_next/static/chunks/554c6155-2e8f5cbee49e006b.js rename to dbgpt/app/static/web/_next/static/chunks/554c6155-1a171fdb837a225b.js diff --git a/dbgpt/app/static/web/_next/static/chunks/5558-15ffdbf008e12532.js b/dbgpt/app/static/web/_next/static/chunks/5558-15ffdbf008e12532.js deleted file mode 100644 index f3d472c56..000000000 --- a/dbgpt/app/static/web/_next/static/chunks/5558-15ffdbf008e12532.js +++ /dev/null @@ -1,5 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5558],{71965:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var i=n(87462),r=n(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M793 242H366v-74c0-6.7-7.7-10.4-12.9-6.3l-142 112a8 8 0 000 12.6l142 112c5.2 4.1 12.9.4 12.9-6.3v-74h415v470H175c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h618c35.3 0 64-28.7 64-64V306c0-35.3-28.7-64-64-64z"}}]},name:"rollback",theme:"outlined"},o=n(13401),s=r.forwardRef(function(t,e){return r.createElement(o.Z,(0,i.Z)({},t,{ref:e,icon:a}))})},81746:function(t){"undefined"!=typeof self&&self,t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=5)}([function(t,e){t.exports={assign:Object.assign,getHeight:function(t,e,n,i){return void 0===i&&(i="height"),"center"===n?(t[i]+e[i])/2:t.height}}},function(t,e,n){var i=n(3),r=function(){function t(t,e){void 0===e&&(e={}),this.options=e,this.rootNode=i(t,e)}return t.prototype.execute=function(){throw Error("please override this method")},t}();t.exports=r},function(t,e,n){var i=n(4),r=["LR","RL","TB","BT","H","V"],a=["LR","RL","H"],o=r[0];t.exports=function(t,e,n){var s=e.direction||o;if(e.isHorizontal=a.indexOf(s)>-1,s&&-1===r.indexOf(s))throw TypeError("Invalid direction: "+s);if(s===r[0])n(t,e);else if(s===r[1])n(t,e),t.right2left();else if(s===r[2])n(t,e);else if(s===r[3])n(t,e),t.bottom2top();else if(s===r[4]||s===r[5]){var l=i(t,e),h=l.left,c=l.right;n(h,e),n(c,e),e.isHorizontal?h.right2left():h.bottom2top(),c.translate(h.x-c.x,h.y-c.y),t.x=h.x,t.y=c.y;var u=t.getBoundingBox();e.isHorizontal?u.top<0&&t.translate(0,-u.top):u.left<0&&t.translate(-u.left,0)}var d=e.fixedRoot;return void 0===d&&(d=!0),d&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),t}},function(t,e,n){var i=n(0),r={getId:function(t){return t.id||t.name},getPreH:function(t){return t.preH||0},getPreV:function(t){return t.preV||0},getHGap:function(t){return t.hgap||18},getVGap:function(t){return t.vgap||18},getChildren:function(t){return t.children},getHeight:function(t){return t.height||36},getWidth:function(t){var e=t.label||" ";return t.width||18*e.split("").length}};function a(t,e){if(this.vgap=this.hgap=0,t instanceof a)return t;this.data=t;var n=e.getHGap(t),i=e.getVGap(t);return this.preH=e.getPreH(t),this.preV=e.getPreV(t),this.width=e.getWidth(t),this.height=e.getHeight(t),this.width+=this.preH,this.height+=this.preV,this.id=e.getId(t),this.x=this.y=0,this.depth=0,this.children||(this.children=[]),this.addGap(n,i),this}i.assign(a.prototype,{isRoot:function(){return 0===this.depth},isLeaf:function(){return 0===this.children.length},addGap:function(t,e){this.hgap+=t,this.vgap+=e,this.width+=2*t,this.height+=2*e},eachNode:function(t){for(var e,n=[this];e=n.shift();)t(e),n=e.children.concat(n)},DFTraverse:function(t){this.eachNode(t)},BFTraverse:function(t){for(var e,n=[this];e=n.shift();)t(e),n=n.concat(e.children)},getBoundingBox:function(){var t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(function(e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.width=Math.max(t.width,e.x+e.width),t.height=Math.max(t.height,e.y+e.height)}),t},translate:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.eachNode(function(n){n.x+=t,n.y+=e,n.x+=n.preH,n.y+=n.preV})},right2left:function(){var t=this.getBoundingBox();this.eachNode(function(e){e.x=e.x-(e.x-t.left)*2-e.width}),this.translate(t.width,0)},bottom2top:function(){var t=this.getBoundingBox();this.eachNode(function(e){e.y=e.y-(e.y-t.top)*2-e.height}),this.translate(0,t.height)}}),t.exports=function(t,e,n){void 0===e&&(e={}),e=i.assign({},r,e);var o,s=new a(t,e),l=[s];if(!n&&!t.collapsed){for(;o=l.shift();)if(!o.data.collapsed){var h=e.getChildren(o.data),c=h?h.length:0;if(o.children=Array(c),h&&c)for(var u=0;u=n.low;)n=n.nxt;return{low:t,index:e,nxt:n}}!function t(e,n,i){void 0===i&&(i=0),n?(e.x=i,i+=e.width):(e.y=i,i+=e.height),e.children.forEach(function(e){t(e,n,i)})}(t,r);var l=n.fromNode(t,r);return function t(e){if(0===e.cs){a(e);return}t(e.c[0]);for(var n=s(o(e.c[0].el),0,null),i=1;in.low&&(n=n.nxt);var l,h,c,u=r+i.prelim+i.w-(s+a.prelim);u>0&&(s+=u,l=n.index,t.c[e].mod+=u,t.c[e].msel+=u,t.c[e].mser+=u,function(t,e,n,i){if(n!==e-1){var r=e-n;t.c[n+1].shift+=i/r,t.c[e].shift-=i/r,t.c[e].change-=i-i/r}}(t,e,l,u));var d=o(i),p=o(a);d<=p&&null!==(i=0===(h=i).cs?h.tr:h.c[h.cs-1])&&(r+=i.mod),d>=p&&null!==(a=0===(c=a).cs?c.tl:c.c[0])&&(s+=a.mod)}!i&&a?function(t,e,n,i){var r=t.c[0].el;r.tl=n;var a=i-n.mod-t.c[0].msel;r.mod+=a,r.prelim-=a,t.c[0].el=t.c[e].el,t.c[0].msel=t.c[e].msel}(t,e,a,s):i&&!a&&function(t,e,n,i){var r=t.c[e].er;r.tr=n;var a=i-n.mod-t.c[e].mser;r.mod+=a,r.prelim-=a,t.c[e].er=t.c[e-1].er,t.c[e].mser=t.c[e-1].mser}(t,e,i,r)})(e,i,n),n=s(r,i,n)}e.prelim=(e.c[0].prelim+e.c[0].mod+e.c[e.cs-1].mod+e.c[e.cs-1].prelim+e.c[e.cs-1].w)/2-e.w/2,a(e)}(l),function t(e,n){n+=e.mod,e.x=e.prelim+n,function(t){for(var e=0,n=0,i=0;io&&(o=e.depth);var n=e.children,i=n.length,a=new r(e.height,[]);return n.forEach(function(e,n){var r=t(e);a.children.push(r),0===n&&(a.leftChild=r),n===i-1&&(a.rightChild=r)}),a.originNode=e,a.isLeaf=e.isLeaf(),a}(t);return function t(e){if(e.isLeaf||0===e.children.length)e.drawingDepth=o;else{var n=e.children.map(function(e){return t(e)}),i=Math.min.apply(null,n);e.drawingDepth=i-1}return e.drawingDepth}(s),function t(i){i.x=i.drawingDepth*e.rankSep,i.isLeaf?(i.y=0,n&&(i.y=n.y+n.height+e.nodeSep,i.originNode.parent!==n.originNode.parent&&(i.y+=e.subTreeSep)),n=i):(i.children.forEach(function(e){t(e)}),i.y=(i.leftChild.y+i.rightChild.y)/2)}(s),function t(e,n,i){i?(n.x=e.x,n.y=e.y):(n.x=e.y,n.y=e.x),e.children.forEach(function(e,r){t(e,n.children[r],i)})}(s,t,e.isHorizontal),t}},function(t,e,n){function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var r=n(1),a=n(11),o=n(4),s=n(0),l=["LR","RL","H"],h=l[0],c=function(t){function e(){return t.apply(this,arguments)||this}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t),e.prototype.execute=function(){var t=this.options,e=this.rootNode;t.isHorizontal=!0;var n=t.indent,i=void 0===n?20:n,r=t.dropCap,s=void 0===r||r,c=t.direction,u=void 0===c?h:c,d=t.align;if(u&&-1===l.indexOf(u))throw TypeError("Invalid direction: "+u);if(u===l[0])a(e,i,s,d);else if(u===l[1])a(e,i,s,d),e.right2left();else if(u===l[2]){var p=o(e,t),f=p.left,g=p.right;a(f,i,s,d),f.right2left(),a(g,i,s,d);var y=f.getBoundingBox();g.translate(y.width,0),e.x=g.x-e.width/2}return e},e}(r),u={};t.exports=function(t,e){return e=s.assign({},u,e),new c(t,e).execute()}},function(t,e,n){var i=n(0);t.exports=function(t,e,n,r){var a=null;t.eachNode(function(t){(function(t,e,n,r,a){var o="function"==typeof n?n(t):n*t.depth;if(!r)try{if(t.id===t.parent.children[0].id){t.x+=o,t.y=e?e.y:0;return}}catch(t){}if(t.x+=o,e){if(t.y=e.y+i.getHeight(e,t,a),e.parent&&t.parent.id!==e.parent.id){var s=e.parent,l=s.y+i.getHeight(s,t,a);t.y=l>t.y?l:t.y}}else t.y=0})(t,a,e,n,r),a=t})}},function(t,e,n){function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var r=n(1),a=n(13),o=n(2),s=n(0),l=function(t){function e(){return t.apply(this,arguments)||this}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t),e.prototype.execute=function(){return o(this.rootNode,this.options,a)},e}(r),h={};t.exports=function(t,e){return e=s.assign({},h,e),new l(t,e).execute()}},function(t,e,n){var i=n(0),r={getSubTreeSep:function(){return 0}};t.exports=function(t,e){void 0===e&&(e={}),e=i.assign({},r,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse(function(t){t.x=t.parent.x+t.parent.width}),t.parent=null,function t(e,n){var i=0;return e.children.length?e.children.forEach(function(e){i+=t(e,n)}):i=e.height,e._subTreeSep=n.getSubTreeSep(e.data),e.totalHeight=Math.max(e.height,i)+2*e._subTreeSep,e.totalHeight}(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode(function(t){var e=t.children,n=e.length;if(n){var i=e[0];if(i.startY=t.startY+t._subTreeSep,1===n)i.y=t.y+t.height/2-i.height/2;else{i.y=i.startY+i.totalHeight/2-i.height/2;for(var r=1;re.height)e.y=r.y+o/2-e.height/2;else if(1!==n.length||e.height>s){var l=e.y+(e.height-o)/2-r.y;n.forEach(function(t){t.translate(0,l)})}else e.y=(r.y+r.height/2+a.y+a.height/2)/2-e.height/2}}(t)}}])},15255:function(t,e,n){"use strict";var i=n(5199),r=n(4637);e.Z=function(t,e){if(t){if((0,i.Z)(t))for(var n=0,a=t.length;ne?(i&&(clearTimeout(i),i=null),s=h,o=t.apply(r,a),i||(r=a=null)):i||!1===n.trailing||(i=setTimeout(l,c)),o};return h.cancel=function(){clearTimeout(i),s=0,i=r=a=null},h}},92123:function(t,e,n){"use strict";var i=n(95147);e.Z=function(t){return(0,i.Z)(t)?"":t.toString()}},83914:function(t,e,n){"use strict";var i=n(92123);e.Z=function(t){var e=(0,i.Z)(t);return e.charAt(0).toUpperCase()+e.substring(1)}},80817:function(t){function e(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}t.exports=function(t){let n=function(t){let n=[];for(let i=0;i=2&&0>=e(n[n.length-2],n[n.length-1],t[i]);)n.pop();n.push(t[i])}return n.pop(),n}(t),i=function(t){let n=t.reverse(),i=[];for(let t=0;t=2&&0>=e(i[i.length-2],i[i.length-1],n[t]);)i.pop();i.push(n[t])}return i.pop(),i}(t),r=i.concat(n);return r.push(t[0]),r}},63652:function(t){t.exports={toXy:function(t,e){return void 0===e?t.slice():t.map(function(t){let n=Function("pt","return [pt"+e[0]+",pt"+e[1]+"];");return n(t)})},fromXy:function(t,e){return void 0===e?t.slice():t.map(function(t){let n=Function("pt","const o = {}; o"+e[0]+"= pt[0]; o"+e[1]+"= pt[1]; return o;");return n(t)})}}},58867:function(t){function e(t,e){this._cells=[],this._cellSize=e,this._reverseCellSize=1/e;for(let e=0;e=0;a--)t[a][0]i&&(i=t[a][0]),t[a][1]>r&&(r=t[a][1]);return[i-e,r-n]}(i),d=[.6*u[0],.6*u[1]],p=o(i),f=i.filter(function(t){return 0>p.indexOf(t)}),g=Math.ceil(1/(i.length/(u[0]*u[1]))),y=function t(e,n,i,r,a){let o=!1;for(let t=0;tr&&s>a&&!h([t[0],e[c]],n)&&!h([t[1],e[c]],n)&&(r=o,a=s,i=e[c]);return i}(f,r.rangePoints(m),e),y++;while(null===p&&(i[0]>u||i[1]>d));u>=i[0]&&d>=i[1]&&a.add(g),null!==p&&(e.splice(t+1,0,p),r.removePoint(p),o=!0)}return o?t(e,n,i,r,a):e}(p,Math.pow(e||20,2),d,r(f,g),new Set);return n?a.fromXy(y,n):y}},77444:function(t){function e(t,e,n,i,r,a){let o=(a-e)*(n-t)-(i-e)*(r-t);return o>0||!(o<0)}t.exports=function(t,n){let i=t[0][0],r=t[0][1],a=t[1][0],o=t[1][1],s=n[0][0],l=n[0][1],h=n[1][0],c=n[1][1];return e(i,r,s,l,h,c)!==e(a,o,s,l,h,c)&&e(i,r,a,o,s,l)!==e(i,r,a,o,h,c)}},83007:function(t,e,n){"use strict";let i;n.d(e,{kJ:function(){return l8},jD:function(){return tt}});var r,a,o,s,l,h,c,u,d,p,f,g,y,m,v,b,x,E,w,C,S,R,A,O,M,T,k,P,L,D,N={};n.r(N),n.d(N,{circle:function(){return nw},diamond:function(){return nS},rect:function(){return nA},simple:function(){return nM},triangle:function(){return nC},triangleRect:function(){return nO},vee:function(){return nR}});var I=n(1242),B=n(83914),_=n(95147),F=n(30335),Z=n(4637);let j={duration:500},z={duration:1e3,easing:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",iterations:1,fill:"both"};(r=v||(v={})).NodeAdded="NodeAdded",r.NodeUpdated="NodeUpdated",r.NodeRemoved="NodeRemoved",r.EdgeAdded="EdgeAdded",r.EdgeUpdated="EdgeUpdated",r.EdgeRemoved="EdgeRemoved",r.ComboAdded="ComboAdded",r.ComboUpdated="ComboUpdated",r.ComboRemoved="ComboRemoved",(a=b||(b={})).DRAW="draw",a.COLLAPSE="collapse",a.EXPAND="expand",a.TRANSFORM="transform",(o=x||(x={})).CLICK="canvas:click",o.DBLCLICK="canvas:dblclick",o.POINTER_OVER="canvas:canvas:pointerover",o.POINTER_LEAVE="canvas:pointerleave",o.POINTER_ENTER="canvas:pointerenter",o.POINTER_MOVE="canvas:pointermove",o.POINTER_OUT="canvas:pointerout",o.POINTER_DOWN="canvas:pointerdown",o.POINTER_UP="canvas:pointerup",o.CONTEXT_MENU="canvas:contextmenu",o.DRAG_START="canvas:dragstart",o.DRAG="canvas:drag",o.DRAG_END="canvas:dragend",o.DRAG_ENTER="canvas:dragenter",o.DRAG_OVER="canvas:dragover",o.DRAG_LEAVE="canvas:dragleave",o.DROP="canvas:drop",o.WHEEL="canvas:wheel",(s=E||(E={})).CLICK="combo:click",s.DBLCLICK="combo:dblclick",s.POINTER_OVER="combo:pointerover",s.POINTER_LEAVE="combo:pointerleave",s.POINTER_ENTER="combo:pointerenter",s.POINTER_MOVE="combo:pointermove",s.POINTER_OUT="combo:pointerout",s.POINTER_DOWN="combo:pointerdown",s.POINTER_UP="combo:pointerup",s.CONTEXT_MENU="combo:contextmenu",s.DRAG_START="combo:dragstart",s.DRAG="combo:drag",s.DRAG_END="combo:dragend",s.DRAG_ENTER="combo:dragenter",s.DRAG_OVER="combo:dragover",s.DRAG_LEAVE="combo:dragleave",s.DROP="combo:drop",(l=w||(w={})).CLICK="click",l.DBLCLICK="dblclick",l.POINTER_OVER="pointerover",l.POINTER_LEAVE="pointerleave",l.POINTER_ENTER="pointerenter",l.POINTER_MOVE="pointermove",l.POINTER_OUT="pointerout",l.POINTER_DOWN="pointerdown",l.POINTER_UP="pointerup",l.CONTEXT_MENU="contextmenu",l.DRAG_START="dragstart",l.DRAG="drag",l.DRAG_END="dragend",l.DRAG_ENTER="dragenter",l.DRAG_OVER="dragover",l.DRAG_LEAVE="dragleave",l.DROP="drop",l.KEY_DOWN="keydown",l.KEY_UP="keyup",l.WHEEL="wheel",(h=C||(C={})).KEY_DOWN="keydown",h.KEY_UP="keyup",(c=S||(S={})).CLICK="edge:click",c.DBLCLICK="edge:dblclick",c.POINTER_OVER="edge:pointerover",c.POINTER_LEAVE="edge:pointerleave",c.POINTER_ENTER="edge:pointerenter",c.POINTER_MOVE="edge:pointermove",c.POINTER_OUT="edge:pointerout",c.POINTER_DOWN="edge:pointerdown",c.POINTER_UP="edge:pointerup",c.CONTEXT_MENU="edge:contextmenu",c.DRAG_ENTER="edge:dragenter",c.DRAG_OVER="edge:dragover",c.DRAG_LEAVE="edge:dragleave",c.DROP="edge:drop",(u=R||(R={})).BEFORE_CANVAS_INIT="beforecanvasinit",u.AFTER_CANVAS_INIT="aftercanvasinit",u.BEFORE_SIZE_CHANGE="beforesizechange",u.AFTER_SIZE_CHANGE="aftersizechange",u.BEFORE_ELEMENT_CREATE="beforeelementcreate",u.AFTER_ELEMENT_CREATE="afterelementcreate",u.BEFORE_ELEMENT_UPDATE="beforeelementupdate",u.AFTER_ELEMENT_UPDATE="afterelementupdate",u.BEFORE_ELEMENT_DESTROY="beforeelementdestroy",u.AFTER_ELEMENT_DESTROY="afterelementdestroy",u.BEFORE_ELEMENT_TRANSLATE="beforeelementtranslate",u.AFTER_ELEMENT_TRANSLATE="afterelementtranslate",u.BEFORE_DRAW="beforedraw",u.AFTER_DRAW="afterdraw",u.BEFORE_RENDER="beforerender",u.AFTER_RENDER="afterrender",u.BEFORE_ANIMATE="beforeanimate",u.AFTER_ANIMATE="afteranimate",u.BEFORE_LAYOUT="beforelayout",u.AFTER_LAYOUT="afterlayout",u.BEFORE_STAGE_LAYOUT="beforestagelayout",u.AFTER_STAGE_LAYOUT="afterstagelayout",u.BEFORE_TRANSFORM="beforetransform",u.AFTER_TRANSFORM="aftertransform",u.BATCH_START="batchstart",u.BATCH_END="batchend",u.BEFORE_DESTROY="beforedestroy",u.AFTER_DESTROY="afterdestroy",u.BEFORE_RENDERER_CHANGE="beforerendererchange",u.AFTER_RENDERER_CHANGE="afterrendererchange",(d=A||(A={})).UNDO="undo",d.REDO="redo",d.CANCEL="cancel",d.ADD="add",d.CLEAR="clear",d.CHANGE="change",(p=O||(O={})).CLICK="node:click",p.DBLCLICK="node:dblclick",p.POINTER_OVER="node:pointerover",p.POINTER_LEAVE="node:pointerleave",p.POINTER_ENTER="node:pointerenter",p.POINTER_MOVE="node:pointermove",p.POINTER_OUT="node:pointerout",p.POINTER_DOWN="node:pointerdown",p.POINTER_UP="node:pointerup",p.CONTEXT_MENU="node:contextmenu",p.DRAG_START="node:dragstart",p.DRAG="node:drag",p.DRAG_END="node:dragend",p.DRAG_ENTER="node:dragenter",p.DRAG_OVER="node:dragover",p.DRAG_LEAVE="node:dragleave",p.DROP="node:drop";let G="combo",H="tree";(f=M||(M={})).NODE="node",f.EDGE="edge",f.COMBO="combo",f.THEME="theme",f.PALETTE="palette",f.LAYOUT="layout",f.BEHAVIOR="behavior",f.PLUGIN="plugin",f.ANIMATION="animation",f.TRANSFORM="transform",f.SHAPE="shape";let W={animation:{},behavior:{},combo:{},edge:{},layout:{},node:{},palette:{},theme:{},plugin:{},transform:{},shape:{}};function V(t,e){var n;let i=null===(n=W[t])||void 0===n?void 0:n[e];if(i)return i}function U(t){return"[".concat("G6"," v").concat("5.0.17","] ").concat(t)}let Y={mute:!1,debug:t=>{Y.mute||console.debug(U(t))},info:t=>{Y.mute||console.info(U(t))},warn:t=>{Y.mute||console.warn(U(t))},error:t=>{Y.mute||console.error(U(t))}};function K(t){let{theme:e}=t;if(!e)return{};let n=V(M.THEME,e);return n||(Y.warn("The theme of ".concat(e," is not registered.")),{})}function $(t,e){if(Array.isArray(t)&&0===t.length)return null;let n=Array.isArray(t)?t[0]:t,i=Array.isArray(t)?t.slice(1):e||[];return new Proxy(n,{get:(t,e)=>"function"!=typeof t[e]||["onframe","onfinish"].includes(e)?"finished"===e?Promise.all([n.finished,...i.map(t=>t.finished)]):Reflect.get(t,e):function(){for(var n=arguments.length,r=Array(n),a=0;a{var n;return null===(n=t[e])||void 0===n?void 0:n.call(t,...r)})},set:(t,e,n)=>(["onframe","onfinish"].includes(e)||i.forEach(t=>{t[e]=n}),Reflect.set(t,e,n))})}function X(t){let e=t.reduce((t,e)=>(Object.entries(e).forEach(e=>{let[n,i]=e;void 0===t[n]?t[n]=[i]:t[n].push(i)}),t),{});Object.entries(e).forEach(n=>{let[i,r]=n;(r.length!==t.length||r.some(t=>(0,_.Z)(t))||r.every(t=>!["sourceNode","targetNode","childrenNode"].includes(i)&&(0,F.Z)(t,r[0])))&&delete e[i]});let n=Object.entries(e).reduce((t,e)=>{let[n,i]=e;return i.forEach((e,i)=>{t[i]?t[i][n]=e:t[i]={[n]:e}}),t},[]);return 0!==t.length&&0===n.length&&n.push(...[{_:0},{_:0}]),n}function q(t){switch(t){case"opacity":return 1;case"x":case"y":case"z":case"zIndex":return 0;case"visibility":return"visible";case"collapsed":return!1;case"states":return[];default:return}}function Q(t,e){let{animation:n}=t;if(!1===n||!1===e)return!1;let i={...j};return(0,Z.Z)(n)&&Object.assign(i,n),(0,Z.Z)(e)&&Object.assign(i,e),i}var J=n(83787);function tt(t){if(void 0!==t.id)return t.id;if(void 0!==t.source&&void 0!==t.target)return"".concat(t.source,"-").concat(t.target);throw Error(U("The datum does not have available id."))}function te(t,e){let n={nodes:(t.nodes||[]).map(tt),edges:(t.edges||[]).map(tt),combos:(t.combos||[]).map(tt)};return e?Object.values(n).flat():n}function tn(t,e,n,i){let r=i?i.replace(/translate(3d)?\([^)]*\)/g,""):"";return 0===n?"translate(".concat(t,", ").concat(e,")").concat(r):"translate3d(".concat(t,", ").concat(e,", ").concat(n,")").concat(r)}let ti=function(t,e,n,i){let r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=tt(i),o="".concat(n,"s"),s=t.add[o].get(a)||t.update[o].get(a)||t.remove[o].get(a)||i;Object.entries(t).forEach(t=>{let[n,l]=t;e===n?l[o].set(a,r?(0,J.Z)(s,i):s):l[o].delete(a)})},tr=(t,e,n)=>{let i;if(!n.length)return null;let[r,a]=e,o=e=>{if(!e)return{shape:t,fromStyle:r,toStyle:a};{var n;let i=t.getShape(e);if(!i)return null;let o="get".concat((0,B.Z)(e),"Style"),s=(null==t?void 0:null===(n=t[o])||void 0===n?void 0:n.bind(t))||(t=>t),l=(null==s?void 0:s(r))||{},h=(null==s?void 0:s(a))||{};return{shape:i,fromStyle:l,toStyle:h}}},s=n.map(t=>{let{fields:e,shape:n,states:r,...a}=t,s=o(n);if(!s)return null;let{shape:l,fromStyle:h,toStyle:c}=s,u=[{},{}];if(e.forEach(t=>{var e,n;Object.assign(u[0],{[t]:null!==(e=h[t])&&void 0!==e?e:q(t)}),Object.assign(u[1],{[t]:null!==(n=c[t])&&void 0!==n?n:q(t)})}),u.some(t=>Object.keys(t).some(t=>["x","y","z"].includes(t)))){let{x:t=0,y:e=0,z:n=0,transform:i=""}=l.attributes||{};u.forEach(r=>{r.transform=tn(r.x||t,r.y||e,r.z||n,i)})}let d=l.animate(X(u),a);return void 0===n&&(i=d),d}).filter(Boolean),l=i||(null==s?void 0:s[0]);return l?$(l,s.filter(t=>t!=t)):null},ta=[{fields:["x","y"]}],to=[{fields:["sourceNode","targetNode"]}],ts=[{fields:["childrenNode","x","y"]}];function tl(t,e,n){let i=new Map(t.map(t=>[n(t),t])),r=new Map(e.map(t=>[n(t),t])),a=new Set(i.keys()),o=new Set(r.keys()),s=[],l=[],h=[],c=[];return o.forEach(t=>{a.has(t)?(0,F.Z)(i.get(t),r.get(t))?c.push(r.get(t)):l.push(r.get(t)):s.push(r.get(t))}),a.forEach(t=>{o.has(t)||h.push(i.get(t))}),{enter:s,exit:h,keep:c,update:l}}class th{setExtensions(t){let e=function(t,e,n){let i={},r=t=>(t in i||(i[t]=0),"".concat(e,"-").concat(t,"-").concat(i[t]++));return n.map(e=>"string"==typeof e?{type:e,key:r(e)}:"function"==typeof e?e.call(t):e.key?e:{...e,key:r(e.type)})}(this.context.graph,this.category,t),{enter:n,update:i,exit:r,keep:a}=tl(this.extensions,e,t=>t.key);this.createExtensions(n),this.updateExtensions([...i,...a]),this.destroyExtensions(r),this.extensions=e}createExtension(t){let{category:e}=this,{key:n,type:i}=t,r=V(e,i);if(!r)return Y.warn("The extension ".concat(i," of ").concat(e," is not registered."));let a=new r(this.context,t);this.extensionMap[n]=a}createExtensions(t){t.forEach(t=>this.createExtension(t))}updateExtension(t){let{key:e}=t,n=this.extensionMap[e];n&&n.update(t)}updateExtensions(t){t.forEach(t=>this.updateExtension(t))}destroyExtension(t){let e=this.extensionMap[t];e&&(e.destroy(),delete this.extensionMap[t])}destroyExtensions(t){t.forEach(t=>{let{key:e}=t;return this.destroyExtension(e)})}destroy(){Object.values(this.extensionMap).forEach(t=>t.destroy()),this.context={},this.extensions=[],this.extensionMap={}}constructor(t){this.extensions=[],this.extensionMap={},this.context=t}}class tc{update(t){this.options=Object.assign(this.options,t)}destroy(){this.context={},this.options={},this.destroyed=!0}constructor(t,e){this.events=[],this.destroyed=!1,this.context=t,this.options=e}}class tu extends tc{}var td=n(45607),tp=n(83207);function tf(t){return t instanceof Float32Array||!!Array.isArray(t)&&(2===t.length||3===t.length)&&t.every(t=>"number"==typeof t)}function tg(t,e,n){return t>=e&&t<=n}function ty(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(Array.isArray(t)){let[e=0,n=e,i=e,r=n]=t;return[e,n,i,r]}return[t,t,t,t]}function tm(t){return t.max[0]-t.min[0]}function tv(t){return t.max[1]-t.min[1]}function tb(t){return[tm(t),tv(t)]}function tx(t,e){let n=tf(t)?function(t){let[e,n,i=0]=t,r=new I.mN;return r.setMinMax([e,n,i],[e,n,i]),r}(t):t.getShape("key").getBounds();return e?tE(n,e):n}function tE(t,e){let[n,i,r,a]=ty(e),[o,s,l]=t.min,[h,c,u]=t.max,d=new I.mN;return d.setMinMax([o-a,s-n,l],[h+i,c+r,u]),d}function tw(t){if(0===t.length)return new I.mN;if(1===t.length)return t[0];let e=new I.mN;e.setMinMax(t[0].min,t[0].max);for(let n=1;n2&&void 0!==arguments[2]&&arguments[2],{min:[i,r],max:[a,o]}=e,s=(t[1]===r||t[1]===o)&&(n||tg(t[0],i,a)),l=(t[0]===i||t[0]===a)&&(n||tg(t[1],r,o));return s||l}function tR(t,e){let[n,i]=e,[r,a]=t.min,[o,s]=t.max,l=n-r,h=o-n,c=i-a,u=s-i,d=Math.min(l,h,c,u);return d===l?"left":d===h?"right":d===c?"top":d===u?"bottom":"left"}function tA(t,e){let n=(0,tp.Z)(e);if(tC(e,t)){let i=tR(t,e);switch(i){case"left":n[0]=t.min[0];break;case"right":n[0]=t.max[0];break;case"top":n[1]=t.min[1];break;case"bottom":n[1]=t.max[1]}}else{let[i,r]=e,[a,o]=t.min,[s,l]=t.max;n[0]=tg(i,a,s)?i:it+e[n])}function tT(t,e){return t.map((t,n)=>t-e[n])}function tk(t,e){return"number"==typeof e?t.map(t=>t*e):t.map((t,n)=>t*e[n])}function tP(t,e){return"number"==typeof e?t.map(t=>t/e):t.map((t,n)=>t/e[n])}function tL(t,e){return t.map(t=>t*e)}function tD(t,e){return Math.sqrt(t.reduce((t,n,i)=>t+(n-e[i]||0)**2,0))}function tN(t,e){return t.reduce((t,n,i)=>t+Math.abs(n-e[i]),0)}function tI(t){let e=t.reduce((t,e)=>t+e**2,0);return t.map(t=>t/Math.sqrt(e))}function tB(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t[0]*e[1]-t[1]*e[0],r=Math.acos(tk(t,e).reduce((t,e)=>t+e,0)/(tD(t,tO)*tD(e,tO)));return n&&i<0&&(r=2*Math.PI-r),r}function t_(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return e?[-t[1],t[0]]:[t[1],-t[0]]}function tF(t){return[t[0],t[1]]}function tZ(t){return 2===t.length?[t[0],t[1],0]:t}function tj(t,e){let[n,i]=t,[r,a]=e,o=tT(n,i),s=tT(r,a);return(function(t,e){let n=tZ(t),i=tZ(e);return[n[1]*i[2]-n[2]*i[1],n[2]*i[0]-n[0]*i[2],n[0]*i[1]-n[1]*i[0]]})(o,s).every(t=>0===t)}function tz(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(tj(t,e))return;let[i,r]=t,[a,o]=e,s=((i[0]-a[0])*(a[1]-o[1])-(i[1]-a[1])*(a[0]-o[0]))/((i[0]-r[0])*(a[1]-o[1])-(i[1]-r[1])*(a[0]-o[0])),l=o[0]-a[0]?(i[0]-a[0]+s*(r[0]-i[0]))/(o[0]-a[0]):(i[1]-a[1]+s*(r[1]-i[1]))/(o[1]-a[1]);if(n||tg(s,0,1)&&tg(l,0,1))return[i[0]+s*(r[0]-i[0]),i[1]+s*(r[1]-i[1])]}function tG(t){if(Array.isArray(t))return tg(t[0],0,1)&&tg(t[1],0,1)?t:[.5,.5];let e=t.split("-"),n=e.includes("left")?0:e.includes("right")?1:.5,i=e.includes("top")?0:e.includes("bottom")?1:.5;return[n,i]}function tH(t){let{x:e=0,y:n=0,z:i=0}=t.style||{};return[+e,+n,+i]}function tW(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"center",n=tG(e);return function(t,e){let[n,i]=e,{min:r,max:a}=t;return[r[0]+n*(a[0]-r[0]),r[1]+i*(a[1]-r[1])]}(t,n)}function tV(t){var e;return[t.x,t.y,null!==(e=t.z)&&void 0!==e?e:0]}function tU(t){var e;return{x:t[0],y:t[1],z:null!==(e=t[2])&&void 0!==e?e:0}}function tY(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.map(t=>parseFloat(t.toFixed(e)))}function tK(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=i?tT(t,e):tT(e,t),a=tI(r),o=[a[0]*n,a[1]*n];return tM(tF(t),o)}function t$(t,e,n){let i=!(arguments.length>3)||void 0===arguments[3]||arguments[3];for(let r=0;r1?c=1:c<0&&(c=0);let u=n+c*l,d=i+c*h;return[u,d]}function tQ(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=function(t){let e=t.reduce((t,e)=>tM(t,e),[0,0]);return tP(e,t.length)}(t);return t.sort((t,i)=>{let[r,a]=t,[o,s]=i,l=Math.atan2(a-n[1],r-n[0]),h=Math.atan2(s-n[1],o-n[0]);return e?h-l:l-h})}function tJ(t,e){return[t,[t[0],e[1]],e,[e[0],t[1]]]}var t0=n(76714);let t1=t=>t.map(t=>(0,t0.Z)(t)?t.toLocaleLowerCase():t);class t2{bind(t,e){0!==t.length&&this.map.set(t,e)}unbind(t,e){this.map.forEach((n,i)=>{(0,F.Z)(i,t)&&(!e||e===n)&&this.map.delete(i)})}unbindAll(){this.map.clear()}match(t){let e=t1(Array.from(this.recordKey)).sort(),n=t1(t).sort();return(0,F.Z)(e,n)}bindEvents(){let{emitter:t}=this;t.on(w.KEY_DOWN,this.onKeyDown),t.on(w.KEY_UP,this.onKeyUp),t.on(w.WHEEL,this.onWheel),t.on(w.DRAG,this.onDrag),window.addEventListener("focus",this.onFocus)}trigger(t){this.map.forEach((e,n)=>{this.match(n)&&e(t)})}triggerExtendKey(t,e){this.map.forEach((n,i)=>{i.includes(t)&&(0,F.Z)(Array.from(this.recordKey),i.filter(e=>e!==t))&&n(e)})}destroy(){this.unbindAll(),this.emitter.off(w.KEY_DOWN,this.onKeyDown),this.emitter.off(w.KEY_UP,this.onKeyUp),this.emitter.off(w.WHEEL,this.onWheel),this.emitter.off(w.DRAG,this.onDrag),window.removeEventListener("blur",this.onFocus)}constructor(t){this.map=new Map,this.recordKey=new Set,this.onKeyDown=t=>{(null==t?void 0:t.key)&&(this.recordKey.add(t.key),this.trigger(t))},this.onKeyUp=t=>{(null==t?void 0:t.key)&&this.recordKey.delete(t.key)},this.onWheel=t=>{this.triggerExtendKey(w.WHEEL,t)},this.onDrag=t=>{this.triggerExtendKey(w.DRAG,t)},this.onFocus=()=>{this.recordKey.clear()},this.emitter=t,this.bindEvents()}}class t3 extends tu{onPointerDown(t){if(!this.validate(t)||!this.isKeydown()||this.startPoint)return;let{canvas:e,graph:n}=this.context,i={...this.options.style};this.options.style.lineWidth&&(i.lineWidth=+this.options.style.lineWidth/n.getZoom()),this.rectShape=new I.UL({id:"g6-brush-select",style:i}),e.appendChild(this.rectShape),this.startPoint=[t.canvas.x,t.canvas.y]}onPointerMove(t){var e;if(!this.startPoint)return;let{immediately:n,mode:i}=this.options;this.endPoint=t6(t),null===(e=this.rectShape)||void 0===e||e.attr({x:Math.min(this.endPoint[0],this.startPoint[0]),y:Math.min(this.endPoint[1],this.startPoint[1]),width:Math.abs(this.endPoint[0]-this.startPoint[0]),height:Math.abs(this.endPoint[1]-this.startPoint[1])}),n&&"default"===i&&this.updateElementsStates(tJ(this.startPoint,this.endPoint))}onPointerUp(t){if(this.startPoint){if(!this.endPoint){this.clearBrush();return}this.endPoint=t6(t),this.updateElementsStates(tJ(this.startPoint,this.endPoint)),this.clearBrush()}}clearStates(){this.endPoint||this.clearElementsStates()}clearElementsStates(){let{graph:t}=this.context,e=Object.values(t.getData()).reduce((t,e)=>Object.assign({},t,e.reduce((t,e)=>(t[tt(e)]=[],t),{})),{});t.setElementState(e,this.options.animation)}updateElementsStates(t){let{graph:e}=this.context,{enableElements:n,state:i,mode:r,onSelect:a}=this.options,o=this.selector(e,t,n),s={};switch(r){case"union":o.forEach(t=>{s[t]=[...e.getElementState(t),i]});break;case"diff":o.forEach(t=>{let n=e.getElementState(t);s[t]=n.includes(i)?n.filter(t=>t!==i):[...n,i]});break;case"intersect":o.forEach(t=>{let n=e.getElementState(t);s[t]=n.includes(i)?[i]:[]});break;default:o.forEach(t=>{s[t]=[i]})}(0,td.Z)(a)&&(s=a(s)),e.setElementState(s,this.options.animation)}selector(t,e,n){if(!n||0===n.length)return[];let i=[],r=t.getData();if(n.forEach(n=>{r["".concat(n,"s")].forEach(n=>{let r=tt(n);"hidden"!==t.getElementVisibility(r)&&function(t,e,n,i){let r=t[0],a=t[1],o=!1;void 0===n&&(n=0),void 0===i&&(i=e.length);let s=i-n;for(let t=0,i=s-1;ta!=c>a&&r<(h-s)*(a-l)/(c-l)+s;u&&(o=!o)}return o}(t.getElementPosition(r),e)&&i.push(r)})}),n.includes("edge")){let t=r.edges;null==t||t.forEach(t=>{let{source:e,target:n}=t;i.includes(e)&&i.includes(n)&&i.push(tt(t))})}return i}clearBrush(){var t;null===(t=this.rectShape)||void 0===t||t.remove(),this.rectShape=void 0,this.startPoint=void 0,this.endPoint=void 0}isKeydown(){let{trigger:t}=this.options,e=Array.isArray(t)?t:[t];return this.shortcut.match(e.filter(t=>"drag"!==t))}validate(t){if(this.destroyed)return!1;let{enable:e}=this.options;return(0,td.Z)(e)?e(t):!!e}bindEvents(){let{graph:t}=this.context;t.on(w.POINTER_DOWN,this.onPointerDown),t.on(w.POINTER_MOVE,this.onPointerMove),t.on(w.POINTER_UP,this.onPointerUp),t.on(x.CLICK,this.clearStates)}unbindEvents(){let{graph:t}=this.context;t.off(w.POINTER_DOWN,this.onPointerDown),t.off(w.POINTER_MOVE,this.onPointerMove),t.off(w.POINTER_UP,this.onPointerUp),t.off(x.CLICK,this.clearStates)}update(t){this.unbindEvents(),this.options=(0,J.Z)(this.options,t),this.bindEvents()}destroy(){this.unbindEvents(),super.destroy()}constructor(t,e){super(t,(0,J.Z)({},t3.defaultOptions,e)),this.shortcut=new t2(t.graph),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.clearStates=this.clearStates.bind(this),this.bindEvents()}}t3.defaultOptions={animation:!1,enable:!0,enableElements:["node","combo","edge"],immediately:!1,mode:"default",state:"selected",trigger:["shift"],style:{width:0,height:0,lineWidth:1,fill:"#1677FF",stroke:"#1677FF",fillOpacity:.1,zIndex:2,pointerEvents:"none"}};let t6=t=>[t.canvas.x,t.canvas.y],t4=["node","edge","combo"];function t8(t,e,n,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;"TB"===i&&e(t,r);let a=n(t);if(a)for(let t of a)t8(t,e,n,i,r+1);"BT"===i&&e(t,r)}function t9(t,e,n,i){if("combo"===e||"node"===e)return t5(t,n,i);let r=t.getEdgeData(n);if(!r)return[];let a=t5(t,r.source,i-1),o=t5(t,r.target,i-1);return Array.from(new Set([...a,...o,n]))}function t5(t,e,n){let i=new Set,r=new Set,a=new Set;return!function(t,e,n){let i=[[t,0]];for(;i.length;){let[t,r]=i.shift();e(t,r);let a=n(t);if(a)for(let t of a)i.push([t,r+1])}}(e,(e,i)=>{i>n||(a.add(e),t.getRelatedEdgesData(e).forEach(t=>{let e=tt(t);!r.has(e)&&it.getRelatedEdgesData(e).map(t=>t.source===e?t.target:t.source).filter(t=>!i.has(t)&&(i.add(t),!0))),Array.from(a)}function t7(t){return t.states||[]}class et extends tu{bindEvents(){let{graph:t}=this.context;this.unbindEvents(),t4.forEach(e=>{t.on("".concat(e,":").concat(w.CLICK),this.onClickSelect)}),t.on(x.CLICK,this.onClickCanvas)}get isMultipleSelect(){let{multiple:t,trigger:e}=this.options;return t&&this.shortcut.match(e)}getNeighborIds(t){let{target:e,targetType:n}=t,{graph:i}=this.context,{degree:r}=this.options;return t9(i,n,e.id,"function"==typeof r?r(t):r).filter(t=>t!==e.id)}async updateState(t){let{state:e,unselectedState:n,neighborState:i,animation:r}=this.options;if(!e&&!i&&!n)return;let{target:a}=t,{graph:o}=this.context,s=o.getElementData(a.id),l=t7(s).includes(e)?"unselect":"select",h={},c=this.isMultipleSelect,u=[a.id],d=this.getNeighborIds(t);if(c){if(Object.assign(h,this.getDataStates()),"select"===l){let t=(t,e)=>{t.forEach(t=>{let i=new Set(o.getElementState(t));i.add(e),i.delete(n),h[t]=Array.from(i)})};t(u,e),t(d,i),n&&Object.keys(h).forEach(t=>{let r=h[t];r.includes(e)||r.includes(i)||r.includes(n)||h[t].push(n)})}else{let t=h[a.id];h[a.id]=t.filter(t=>t!==e&&t!==i),t.includes(n)||h[a.id].push(n),d.forEach(t=>{h[t]=h[t].filter(t=>t!==i),h[t].includes(e)||h[t].push(n)})}}else if("select"===l){Object.assign(h,this.getClearStates(!!n));let t=(t,e)=>{t.forEach(t=>{h[t]||(h[t]=o.getElementState(t)),h[t].push(e)})};t(u,e),t(d,i),n&&Object.keys(h).forEach(t=>{u.includes(t)||d.includes(t)||h[t].push(n)})}else Object.assign(h,this.getClearStates());await o.setElementState(h,r)}getDataStates(){let{graph:t}=this.context,{nodes:e,edges:n,combos:i}=t.getData(),r={};return[...e,...n,...i].forEach(t=>{r[tt(t)]=t7(t)}),r}getClearStates(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],{graph:e}=this.context,{state:n,unselectedState:i,neighborState:r}=this.options,a=new Set([n,i,r]),{nodes:o,edges:s,combos:l}=e.getData(),h={};return[...o,...s,...l].forEach(e=>{let n=t7(e),i=n.filter(t=>!a.has(t));t?h[tt(e)]=i:i.length!==n.length&&(h[tt(e)]=i)}),h}async clearState(){let{graph:t}=this.context;await t.setElementState(this.getClearStates(),this.options.animation)}validate(t){if(this.destroyed)return!1;let{enable:e}=this.options;return(0,td.Z)(e)?e(t):!!e}unbindEvents(){let{graph:t}=this.context;t4.forEach(e=>{t.off("".concat(e,":").concat(w.CLICK),this.onClickSelect)}),t.off(x.CLICK,this.onClickCanvas)}destroy(){this.unbindEvents(),super.destroy()}constructor(t,e){super(t,Object.assign({},et.defaultOptions,e)),this.onClickSelect=async t=>{var e,n;this.validate(t)&&(await this.updateState(t),null===(n=(e=this.options).onClick)||void 0===n||n.call(e,t))},this.onClickCanvas=async t=>{var e,n;this.validate(t)&&(await this.clearState(),null===(n=(e=this.options).onClick)||void 0===n||n.call(e,t))},this.shortcut=new t2(t.graph),this.bindEvents()}}function ee(t){var e;return!!(null===(e=t.style)||void 0===e?void 0:e.collapsed)}et.defaultOptions={animation:!0,enable:!0,multiple:!1,trigger:["shift"],state:"selected",neighborState:"selected",unselectedState:void 0,degree:0};var en=n(53032),ei=n(17829),er=n(73576);function ea(t,e){if(!t.startsWith(e))return!1;let n=t[e.length];return n>="A"&&n<="Z"}function eo(t,e){let n=Object.entries(t).reduce((t,n)=>{let[i,r]=n;return"className"===i||"class"===i||ea(i,e)&&Object.assign(t,{[function(t,e){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!ea(t,e))return t;let i=t.slice(e.length);return n?(0,er.Z)(i):i}(i,e)]:r}),t},{});if("opacity"in t){let i="".concat(e).concat((0,B.Z)("opacity")),r=t.opacity;if(i in t){let e=t[i];Object.assign(n,{opacity:r*e})}else Object.assign(n,{opacity:r})}return n}function es(t,e){let n=e.length;return Object.keys(t).reduce((i,r)=>{if(r.startsWith(e)){let e=r.slice(n);i[e]=t[r]}return i},{})}function el(t,e){let n="string"==typeof e?[e]:e,i={};return Object.keys(t).forEach(e=>{n.find(t=>e.startsWith(t))||(i[e]=t[e])}),i}function eh(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if("number"==typeof t)return[t,t,t];let[e,n=e,i=e]=t;return[e,n,i]}function ec(t,e){let{datum:n,graph:i}=e;return"function"==typeof t?t.call(i,n):Object.fromEntries(Object.entries(t).map(t=>{let[e,r]=t;return"function"==typeof r?[e,r.call(i,n)]:[e,r]}))}function eu(t,e){let n=(null==t?void 0:t.style)||{},i=(null==e?void 0:e.style)||{};return Object.assign({},t,e,{style:Object.assign({},n,i)})}let ed="cachedStyle",ep=t=>"__".concat(t,"__");function ef(t,e){let n=Array.isArray(e)?e:[e];(0,en.Z)(t,ed)||(0,ei.Z)(t,ed,{}),n.forEach(e=>{(0,ei.Z)((0,en.Z)(t,ed),ep(e),t.attributes[e])})}function eg(t,e){return(0,en.Z)(t,[ed,ep(e)])}function ey(t,e){return ep(e) in((0,en.Z)(t,ed)||{})}function em(t,e,n){(0,ei.Z)(t,[ed,ep(e)],n)}function ev(t){return function(e,n,i){let r=i.value;return i.value=function(e){for(var i=arguments.length,a=Array(i>1?i-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:2;if("object"!=typeof t||"object"!=typeof e)return t===e;let i=Object.keys(t),r=Object.keys(e);if(i.length!==r.length)return!1;for(let r of i){let i=t[r],a=e[r];if(n>1&&"object"==typeof i&&"object"==typeof a){if(!eb(i,a,n-1))return!1}else if(i!==a)return!1}return!0};var ex=n(5199),eE=Object.prototype.hasOwnProperty,ew=function(t,e){if(!e||!(0,ex.Z)(t))return{};for(var n,i={},r=(0,td.Z)(e)?e:function(t){return t[e]},a=0;at.id,color:t,invert:!1}:t}function eS(t){let e="string"==typeof t?V("palette",t):t;if("function"!=typeof e)return e}function eR(t,e){let n=2*t;return"string"==typeof e?n=t*Number(e.replace("%",""))/100:"number"==typeof e&&(n=e),isNaN(n)&&(n=2*t),n}function eA(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=(t.max[0]-t.min[0])*(i?n:1);return eR(r,e)}let eO=new WeakMap;function eM(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;if(void 0===e)return;let r=function(a){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,s=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return a.childNodes.forEach(e=>r(e,t))};if(i&&!i(a))return s();if(n||a!==t){eO.has(a)||eO.set(a,a.style.visibility);let t="hidden"===o||"hidden"===(eO.has(a)?eO.get(a):a.style.visibility)?"hidden":"visible";a.style.visibility=t,s(t)}else t.style.visibility=e,eO.delete(t),s(e)};r(t)}var eT=n(82844),ek={}.toString,eP=Object.prototype,eL=function(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||eP;return t===n},eD=Object.prototype.hasOwnProperty,eN=function(t){if((0,_.Z)(t))return!0;if((0,eT.Z)(t))return!t.length;var e=ek.call(t).replace(/^\[object /,"").replace(/]$/,"");if("Map"===e||"Set"===e)return!t.size;if(eL(t))return!Object.keys(t).length;for(var n in t)if(eD.call(t,n))return!1;return!0};class eI extends I.b_{get parsedAttributes(){return this.attributes}upsert(t,e,n,i,r){var a,o,s,l,h,c,u,d;let p=this.shapeMap[t];if(!1===n){p&&(null==r||null===(s=r.beforeDestroy)||void 0===s||s.call(r,p),i.removeChild(p),delete this.shapeMap[t],null==r||null===(l=r.afterDestroy)||void 0===l||l.call(r,p));return}let f="string"==typeof e?V(M.SHAPE,e):e;if(!f)throw Error(U("Shape ".concat(e," not found")));if(!p||p.destroyed||!(p instanceof f)){p&&(null==r||null===(u=r.beforeDestroy)||void 0===u||u.call(r,p),null==p||p.destroy(),null==r||null===(d=r.afterDestroy)||void 0===d||d.call(r,p)),null==r||null===(h=r.beforeCreate)||void 0===h||h.call(r);let e=new f({className:t,style:n});return i.appendChild(e),this.shapeMap[t]=e,null==r||null===(c=r.afterCreate)||void 0===c||c.call(r,e),e}return null==r||null===(a=r.beforeUpdate)||void 0===a||a.call(r,p),n8(p,n),null==r||null===(o=r.afterUpdate)||void 0===o||o.call(r,p),p}transformPosition(t){let{x:e=0,y:n=0,z:i=0,transform:r}=t;(0!==e||0!==n||0!==i)&&(this.style.transform=tn(+e,+n,+i,r))}update(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign({},this.attributes,t);this.attr(e),this.render(e,this),this.transformPosition(e),this.setVisibility()}bindEvents(){}getGraphicStyle(t){return function(t){let{x:e,y:n,z:i,class:r,className:a,transform:o,transformOrigin:s,context:l,zIndex:h,visibility:c,...u}=t;return u}(t)}get compositeShapes(){return[["badges","badge-"],["ports","port-"]]}animate(t,e){if(0===t.length)return null;let n=[];if(void 0!==t[0].x||void 0!==t[0].y||void 0!==t[0].z){let{x:e=0,y:n=0,z:i=0}=this.attributes;t.forEach(t=>{let{x:r=e,y:a=n,z:o=i}=t;Object.assign(t,{transform:tn(+r,+a,+o)})})}let i=super.animate(t,e);if(i&&(eB(this,i),n.push(i)),Array.isArray(t)&&t.length>0){let i=["transform","transformOrigin","x","y","z","zIndex"];if(Object.keys(t[0]).some(t=>!i.includes(t))){Object.entries(this.shapeMap).forEach(i=>{let[r,a]=i,o="get".concat((0,B.Z)(r),"Style"),s=this[o];if((0,td.Z)(s)){let i=t.map(t=>s.call(this,{...this.attributes,...t})),r=a.animate(X(i),e);r&&(eB(a,r),n.push(r))}});let i=(i,r)=>{if(!eN(i)){let a="get".concat((0,B.Z)(r),"Style"),o=this[a];if((0,td.Z)(o)){let r=t.map(t=>o.call(this,{...this.attributes,...t}));Object.entries(r[0]).map(t=>{let[a]=t,o=r.map(t=>t[a]),s=i[a];if(s){let t=s.animate(X(o),e);t&&(eB(s,t),n.push(t))}})}}};this.compositeShapes.forEach(t=>{let[e,n]=t,r=es(this.shapeMap,n);i(r,e)})}}return $(n)}getShape(t){return this.shapeMap[t]}setVisibility(){let{visibility:t}=this.attributes;eM(this,t,!0)}destroy(){this.shapeMap={},this.animateMap={},super.destroy()}constructor(t){super(t),this.shapeMap={},this.animateMap={},this.transformPosition(this.attributes),this.render(this.attributes,this),this.setVisibility(),this.bindEvents()}}function eB(t,e){null==e||e.finished.then(()=>{let n=t.activeAnimations.findIndex(t=>t===e);n>-1&&t.activeAnimations.splice(n,1)})}class e_ extends eI{isTextStyle(t){return ea(t,"label")}isBackgroundStyle(t){return ea(t,"background")}getTextStyle(t){let{padding:e,...n}=this.getGraphicStyle(t);return el(n,"background")}getBackgroundStyle(t){if(!1===t.background)return!1;let e=this.getGraphicStyle(t),{wordWrap:n,wordWrapWidth:i,padding:r}=e,a=eo(e,"background"),{min:[o,s],center:[l,h],halfExtents:[c,u]}=this.shapeMap.text.getGeometryBounds(),[d,p,f,g]=ty(r),y=2*c+g+p,{width:m,height:v}=a;m&&v?Object.assign(a,{x:l-Number(m)/2,y:h-Number(v)/2}):Object.assign(a,{x:o-g,y:s-d,width:n?Math.min(y,i+g+p):y,height:2*u+d+f});let{radius:b}=a;if("string"==typeof b&&b.endsWith("%")){let t=Number(b.replace("%",""))/100;a.radius=Math.min(+a.width,+a.height)*t}return a}render(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.parsedAttributes,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this.upsert("text",I.xv,this.getTextStyle(t),e),this.upsert("background",I.UL,this.getBackgroundStyle(t),e)}getGeometryBounds(){let t=this.getShape("background")||this.getShape("text");return t.getGeometryBounds()}constructor(t){super(eu({style:e_.defaultStyleProps},t))}}e_.defaultStyleProps={padding:0,fontSize:12,fontFamily:"system-ui, sans-serif",wordWrap:!0,maxLines:1,wordWrapWidth:128,textOverflow:"...",textBaseline:"middle",backgroundOpacity:.75,backgroundZIndex:-1,backgroundLineWidth:0};class eF extends eI{getBadgeStyle(t){return this.getGraphicStyle(t)}render(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.parsedAttributes,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this.upsert("label",e_,this.getBadgeStyle(t),e)}getGeometryBounds(){let t=this.getShape("label"),e=t.getShape("background")||t.getShape("text");return e.getGeometryBounds()}constructor(t){super(eu({style:eF.defaultStyleProps},t))}}eF.defaultStyleProps={padding:[2,4,2,4],fontSize:10,wordWrap:!1,backgroundRadius:"50%",backgroundOpacity:1};let eZ={M:["x","y"],m:["dx","dy"],H:["x"],h:["dx"],V:["y"],v:["dy"],L:["x","y"],l:["dx","dy"],Z:[],z:[],C:["x1","y1","x2","y2","x","y"],c:["dx1","dy1","dx2","dy2","dx","dy"],S:["x2","y2","x","y"],s:["dx2","dy2","dx","dy"],Q:["x1","y1","x","y"],q:["dx1","dy1","dx","dy"],T:["x","y"],t:["dx","dy"],A:["rx","ry","rotation","large-arc","sweep","x","y"],a:["rx","ry","rotation","large-arc","sweep","dx","dy"]},ej=t=>{if(t.length<2)return[["M",0,0],["L",0,0]];let e=t[0],n=t[1],i=t[t.length-1],r=t[t.length-2];t.unshift(r,i),t.push(e,n);let a=[["M",i[0],i[1]]];for(let e=1;e0;){let t=e.shift();t in eZ?i=t:e.unshift(t),r={type:i},eZ[i].forEach(n=>{t=e.shift(),r[n]=t}),"M"===i?i="L":"m"===i&&(i="l");let[a,...o]=Object.values(r);n.push([a,...o.map(Number)])}return n}(t):t;return n.forEach(t=>{let n=t[0];if("Z"===n){e.push(e[0]);return}if("A"!==n)for(let n=1;n{let n=p[(e+1)%p.length];return(0,F.Z)(t,n)?null:[t,n]}).filter(Boolean),g=(s=[c,u],l=1/0,h=[[0,0],[0,0]],f.forEach(t=>{let e=function(t,e){let n=tq(t,e);return tD(t,n)}(s,t);e0?d.textBaseline="right"===e?"bottom":"top":d.textBaseline="right"===e?"top":"bottom")}return d}(h,a,n,i,o,t.d,r),{wordWrapWidth:eA(h,e)},s)}getKeyStyle(t){return this.getGraphicStyle(t)}render(t,e){this.upsert("key",I.y$,this.getKeyStyle(t),e),this.upsert("label",e_,this.getLabelStyle(t),e)}constructor(t){super(eu({style:ez.defaultStyleProps},t))}}ez.defaultStyleProps={label:!0,labelPlacement:"bottom",labelCloseToPath:!0,labelAutoRotate:!0,labelOffsetX:0,labelOffsetY:0};class eG extends I.Ee{handleRadius(){let{radius:t,clipPath:e,width:n=0,height:i=0}=this.attributes;if(t&&n&&i){let[r,a]=this.getBounds().min,o={x:r,y:a,radius:t,width:n,height:i};if(e)Object.assign(this.parsedStyle.clipPath.style,o);else{let t=new I.UL({style:o});this.style.clipPath=t}}else e&&(this.style.clipPath=null)}constructor(t){super(t),this.onMounted=()=>{this.handleRadius()},this.onAttrModified=()=>{this.handleRadius()},eW=this,this.isMutationObserved=!0,this.addEventListener(I.Dk.MOUNTED,this.onMounted),this.addEventListener(I.Dk.ATTR_MODIFIED,this.onAttrModified)}}let eH=new WeakMap,eW=null,eV=t=>{if(eW&&(function(t){let e=[],n=t.parentNode;for(;n;)e.push(n),n=n.parentNode;return e})(eW).includes(t)){let e=eH.get(t);e?e.includes(eW)||e.push(eW):eH.set(t,[eW])}},eU=t=>{let e=eH.get(t);e&&e.forEach(t=>t.handleRadius())};class eY extends eI{isImage(){let{src:t}=this.attributes;return!!t}getIconStyle(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.attributes,{width:e=0,height:n=0}=t,i=this.getGraphicStyle(t);return this.isImage()?{x:-e/2,y:-n/2,...i}:{textBaseline:"middle",textAlign:"center",...i}}render(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.attributes,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this.upsert("icon",this.isImage()?eG:I.xv,this.getIconStyle(t),e)}constructor(t){super(t)}}class eK extends eI{get context(){return this.attributes.context}get parsedAttributes(){return this.attributes}onframe(){}animate(t,e){let n=super.animate(t,e);return n&&(n.onframe=()=>this.onframe(),n.finished.then(()=>this.onframe())),n}}var e$=function(t,e,n,i){var r,a=arguments.length,o=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(o=(a<3?r(o):a>3?r(e,n,o):r(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};class eX extends eK{getSize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.attributes,{size:e}=t;return eh(e)}getKeyStyle(t){let e=this.getGraphicStyle(t);return Object.assign(el(e,["label","halo","icon","badge","port"]))}getLabelStyle(t){if(!1===t.label||!t.labelText)return!1;let{placement:e,maxWidth:n,offsetX:i,offsetY:r,...a}=eo(this.getGraphicStyle(t),"label"),o=this.getShape("key").getLocalBounds();return Object.assign(n4(o,e,i,r),{wordWrapWidth:eA(o,n)},a)}getHaloStyle(t){if(!1===t.halo)return!1;let{fill:e,...n}=this.getKeyStyle(t),i=eo(this.getGraphicStyle(t),"halo");return{...n,stroke:e,...i}}getIconStyle(t){if(!1===t.icon||!t.iconText&&!t.iconSrc)return!1;let e=eo(this.getGraphicStyle(t),"icon");return Object.assign(function(t,e){let n=eh(t),i={};return e.text&&!e.fontSize&&(i={fontSize:.5*Math.min(...n)}),!e.src||e.width&&e.height||(i={width:.5*n[0],height:.5*n[1]}),i}(t.size,e),e)}getBadgesStyle(t){var e;let n=es(this.shapeMap,"badge-"),i={};if(Object.keys(n).forEach(t=>{i[t]=!1}),!1===t.badge||!(null===(e=t.badges)||void 0===e?void 0:e.length))return i;let{badges:r=[],badgePalette:a,opacity:o=1,...s}=t,l=eS(a),h=eo(this.getGraphicStyle(s),"badge");return r.forEach((t,e)=>{i[e]={backgroundFill:l?l[e%(null==l?void 0:l.length)]:void 0,opacity:o,...h,...this.getBadgeStyle(t)}}),i}getBadgeStyle(t){let e=this.getShape("key"),{placement:n="top",offsetX:i,offsetY:r,...a}=t,o=n4(e.getLocalBounds(),n,i,r,!0);return{...o,...a}}getPortsStyle(t){var e;let n=this.getPorts(),i={};if(Object.keys(n).forEach(t=>{i[t]=!1}),!1===t.port||!(null===(e=t.ports)||void 0===e?void 0:e.length))return i;let r=eo(this.getGraphicStyle(t),"port"),{ports:a=[]}=t;return a.forEach((e,n)=>{let a=e.key||n,o={...r,...e};if(nJ(o))i[a]=!1;else{let[n,r]=this.getPortXY(t,e);i[a]={transform:"translate(".concat(n,", ").concat(r,")"),...o}}}),i}getPortXY(t,e){let{placement:n="left"}=e,i=this.getShape("key");return nq(function(t,e){if(!t)return e.getLocalBounds();let n=t.canvas.getLayer(),i=e.cloneNode();eM(i,"hidden"),n.appendChild(i);let r=i.getLocalBounds();return n.removeChild(i),r}(this.context,i),n)}getPorts(){return es(this.shapeMap,"port-")}getCenter(){return this.getShape("key").getBounds().center}getIntersectPoint(t){let e=this.getShape("key").getBounds();return function(t,e){let n=tW(e,"center"),i=[tW(e,"left-top"),tW(e,"right-top"),tW(e,"right-bottom"),tW(e,"left-bottom")];return t$(t,n,i,!1).point}(t,e)}drawHaloShape(t,e){let n=this.getShape("key");this.upsert("halo",n.constructor,this.getHaloStyle(t),e)}drawIconShape(t,e){this.upsert("icon",eY,this.getIconStyle(t),e),eV(this)}drawBadgeShapes(t,e){let n=this.getBadgesStyle(t);Object.keys(n).forEach(t=>{this.upsert("badge-".concat(t),eF,n[t],e)})}drawPortShapes(t,e){let n=this.getPortsStyle(t);Object.keys(n).forEach(t=>{this.upsert("port-".concat(t),I.Cd,n[t],e)})}drawLabelShape(t,e){this.upsert("label",e_,this.getLabelStyle(t),e)}_drawKeyShape(t,e){return this.drawKeyShape(t,e)}render(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.parsedAttributes,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this._drawKeyShape(t,e),this.getShape("key")&&(this.drawHaloShape(t,e),this.drawIconShape(t,e),this.drawBadgeShapes(t,e),this.drawLabelShape(t,e),this.drawPortShapes(t,e))}update(t){super.update(t),t&&("x"in t||"y"in t||"z"in t)&&eU(this)}onframe(){this.drawBadgeShapes(this.parsedAttributes,this),this.drawLabelShape(this.parsedAttributes,this)}constructor(t){super(eu({style:eX.defaultStyleProps},t)),this.type="node"}}eX.defaultStyleProps={x:0,y:0,size:32,droppable:!0,draggable:!0,port:!0,ports:[],portZIndex:2,portLinkToCenter:!1,badge:!0,badges:[],badgeZIndex:3,halo:!1,haloDroppable:!1,haloLineDash:0,haloLineWidth:12,haloStrokeOpacity:.25,haloPointerEvents:"none",haloZIndex:-1,icon:!0,iconZIndex:1,label:!0,labelIsBillboard:!0,labelMaxWidth:"200%",labelPlacement:"bottom",labelWordWrap:!1,labelZIndex:0},e$([ev((t,e)=>t.getHaloStyle(e))],eX.prototype,"drawHaloShape",null),e$([ev((t,e)=>t.getIconStyle(e))],eX.prototype,"drawIconShape",null),e$([ev((t,e)=>t.getBadgesStyle(e))],eX.prototype,"drawBadgeShapes",null),e$([ev((t,e)=>t.getPortsStyle(e))],eX.prototype,"drawPortShapes",null),e$([ev((t,e)=>t.getLabelStyle(e))],eX.prototype,"drawLabelShape",null),e$([ev((t,e)=>t.getKeyStyle(e))],eX.prototype,"_drawKeyShape",null);class eq extends eX{drawKeyShape(t,e){return this.upsert("key",I.Cd,this.getKeyStyle(t),e)}getKeyStyle(t){let e=super.getKeyStyle(t);return{...e,r:Math.min(...this.getSize(t))/2}}getIconStyle(t){let e=super.getIconStyle(t),{r:n}=this.getShape("key").attributes,i=2*n*.8;return!!e&&{width:i,height:i,...e}}getIntersectPoint(t){let e=this.getShape("key").getBounds();return tX(t,e)}constructor(t){super(eu({style:eq.defaultStyleProps},t))}}eq.defaultStyleProps={size:32};class eQ extends eX{get parsedAttributes(){return this.attributes}drawKeyShape(t,e){return this.upsert("key",I.mg,this.getKeyStyle(t),e)}getKeyStyle(t){let e=super.getKeyStyle(t);return{...e,points:this.getPoints(t)}}getIntersectPoint(t){var e,n;let{points:i}=this.getShape("key").attributes,r=[+((null===(e=this.attributes)||void 0===e?void 0:e.x)||0),+((null===(n=this.attributes)||void 0===n?void 0:n.y)||0)];return t$(t,r,i).point}constructor(t){super(t)}}var eJ=n(25897);class e0 extends eq{parseOuterR(){let{size:t}=this.parsedAttributes;return Math.min(...eh(t))/2}parseInnerR(){let{innerR:t}=this.parsedAttributes;return(0,t0.Z)(t)?parseInt(t)/100*this.parseOuterR():t}drawDonutShape(t,e){var n;let{donuts:i}=t;if(!(null==i?void 0:i.length))return;let r=i.map(t=>(0,eJ.Z)(t)?{value:t}:t),a=eo(this.getGraphicStyle(t),"donut"),o=eS(t.donutPalette);if(!o)return;let s=r.reduce((t,e)=>t+(null!==(n=e.value)&&void 0!==n?n:0),0),l=this.parseOuterR(),h=this.parseInnerR(),c=0;r.forEach((t,n)=>{let{value:i=0,color:u=o[n%o.length],...d}=t,p=(0===s?1/r.length:i/s)*360;this.upsert("round".concat(n),I.y$,{...a,d:e6(l,h,c,c+p),fill:u,...d},e),c+=p})}render(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;super.render(t,e),this.drawDonutShape(t,e)}constructor(t){super(eu({style:e0.defaultStyleProps},t))}}e0.defaultStyleProps={innerR:"50%",donuts:[],donutPalette:"tableau"};let e1=(t,e,n,i)=>[t+Math.sin(i)*n,e-Math.cos(i)*n],e2=(t,e,n,i)=>i<=0||n<=i?[["M",t-n,e],["A",n,n,0,1,1,t+n,e],["A",n,n,0,1,1,t-n,e],["Z"]]:[["M",t-n,e],["A",n,n,0,1,1,t+n,e],["A",n,n,0,1,1,t-n,e],["Z"],["M",t+i,e],["A",i,i,0,1,0,t-i,e],["A",i,i,0,1,0,t+i,e],["Z"]],e3=(t,e,n,i,r,a)=>{let[o,s]=[r/360*2*Math.PI,a/360*2*Math.PI],l=[e1(t,e,i,o),e1(t,e,n,o),e1(t,e,n,s),e1(t,e,i,s)],h=s-o>Math.PI?1:0;return[["M",l[0][0],l[0][1]],["L",l[1][0],l[1][1]],["A",n,n,0,h,1,l[2][0],l[2][1]],["L",l[3][0],l[3][1]],["A",i,i,0,h,0,l[0][0],l[0][1]],["Z"]]},e6=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,[r,a]=[0,0];return Math.abs(n-i)%360<1e-6?e2(r,a,t,e):e3(r,a,t,e,n,i)};class e4 extends eX{drawKeyShape(t,e){return this.upsert("key",I.Pj,this.getKeyStyle(t),e)}getKeyStyle(t){let e=super.getKeyStyle(t),[n,i]=this.getSize(t);return{...e,rx:n/2,ry:i/2}}getIconStyle(t){let e=super.getIconStyle(t),{rx:n,ry:i}=this.getShape("key").attributes,r=2*Math.min(+n,+i)*.8;return!!e&&{width:r,height:r,...e}}getIntersectPoint(t){let e=this.getShape("key").getBounds();return tX(t,e)}constructor(t){super(eu({style:e4.defaultStyleProps},t))}}e4.defaultStyleProps={size:[45,35]};var e8=n(23413),e9=n(71154);class e5 extends eX{get eventService(){return this.context.canvas.context.eventService}get events(){return[w.CLICK,w.POINTER_DOWN,w.POINTER_MOVE,w.POINTER_UP,w.POINTER_OVER,w.POINTER_LEAVE]}getDomElement(){return this.getShape("key").getDomElement()}getKeyStyle(t){let e=(0,e8.Z)(t,["innerHTML","pointerEvents","cursor"]),[n,i]=this.getSize(t);return{...e,width:n,height:i}}drawKeyShape(t,e){let n=this.getKeyStyle(t),{width:i=0,height:r=0}=n,a=this.upsert("key-container",I.UL,{width:i,height:r,opacity:0},e);return this.upsert("key",I.k9,n,a)}connectedCallback(){let t=this.getDomElement();this.events.forEach(e=>{t.addEventListener(e,this.forwardEvents)})}attributeChangedCallback(t,e,n){"zIndex"===t&&e!==n&&(this.getDomElement().style.zIndex=n)}destroy(){let t=this.getDomElement();this.events.forEach(e=>{t.removeEventListener(e,this.forwardEvents)}),super.destroy()}normalizeToPointerEvent(t,e){let n=[];if(e.isTouchEvent(t))for(let e=0;e{let e=this.context.canvas,n=e.context.renderingContext.root.ownerDocument.defaultView,i=this.normalizeToPointerEvent(t,n);i.forEach(i=>{let r=this.bootstrapEvent(this.rootPointerEvent,i,n,t);e.context.eventService.mapEvent(r)})}}}e5.defaultStyleProps={size:[160,80],halo:!1,icon:!1,label:!1,pointerEvents:"auto"};class e7 extends eX{getKeyStyle(t){let[e,n]=this.getSize(t),{fillOpacity:i,opacity:r=i,...a}=super.getKeyStyle(t);return{opacity:r,...a,width:e,height:n,x:-e/2,y:-n/2}}getHaloStyle(t){if(!1===t.halo)return!1;let{fill:e,stroke:n,...i}=this.getShape("key").attributes,r=eo(this.getGraphicStyle(t),"halo"),a=Number(r.lineWidth),[o,s]=tM(this.getSize(t),[a,a]);return{...r,width:o,height:s,fill:"transparent",x:-o/2,y:-s/2}}getIconStyle(t){let e=super.getIconStyle(t),[n,i]=this.getSize(t);return!!e&&{width:.8*n,height:.8*i,...e}}drawKeyShape(t,e){let n=this.upsert("key",eG,this.getKeyStyle(t),e);return eV(this),n}drawHaloShape(t,e){this.upsert("halo",I.UL,this.getHaloStyle(t),e)}update(t){super.update(t),t&&("x"in t||"y"in t||"z"in t)&&eU(this)}constructor(t){super(eu({style:e7.defaultStyleProps},t))}}e7.defaultStyleProps={size:32};class nt extends eQ{getPoints(t){let{direction:e}=t,[n,i]=this.getSize(t);return function(t,e,n){let i=e/2,r=t/2,a={up:[[-r,i],[r,i],[0,-i]],left:[[-r,0],[r,i],[r,-i]],right:[[-r,i],[-r,-i],[r,0]],down:[[-r,-i],[r,-i],[0,i]]};return a[n]||a.up}(n,i,e)}getPortXY(t,e){let{direction:n}=t,{placement:i="top"}=e,r=this.getShape("key").getLocalBounds(),[a,o]=this.getSize(t),s=function(t,e,n){let i=e/2,r=t/2,a={};return"down"===n?(a.bottom=a.default=[0,i],a.right=[r,-i],a.left=[-r,-i]):"left"===n?(a.top=[r,-i],a.bottom=[r,i],a.left=a.default=[-r,0]):"right"===n?(a.top=[-r,-i],a.bottom=[-r,i],a.right=a.default=[r,0]):(a.left=[-r,i],a.top=a.default=[0,-i],a.right=[r,i]),a}(a,o,n);return nq(r,i,s,!1)}getIconStyle(t){let{icon:e,iconText:n,iconSrc:i,direction:r}=t;if(!1===e||eN(n||i))return!1;let a=eo(this.getGraphicStyle(t),"icon"),o=this.getShape("key").getLocalBounds(),[s,l]=function(t,e){let{center:n}=t,[i,r]=tb(t),a="up"===e||"down"===e?n[0]:"right"===e?n[0]-i/6:n[0]+i/6,o="left"===e||"right"===e?n[1]:"down"===e?n[1]-r/6:n[1]+r/6;return[a,o]}(o,r),h=2*function(t,e){let[n,i]=tb(t);return[n,i]="up"===e||"down"===e?[n,i]:[i,n],(i**2-(Math.sqrt((n/2)**2+i**2)-n/2)**2)/(2*i)}(o,r)*.8;return{x:s,y:l,width:h,height:h,...a}}constructor(t){super(eu({style:nt.defaultStyleProps},t))}}nt.defaultStyleProps={size:40,direction:"up"};class ne extends eX{getKeySize(t){let{collapsed:e,childrenNode:n=[]}=t;return 0===n.length?this.getEmptyKeySize(t):e?this.getCollapsedKeySize(t):this.getExpandedKeySize(t)}getEmptyKeySize(t){let{padding:e,collapsedSize:n}=t,[i,r,a,o]=ty(e);return tM(eh(n),[o+r,i+a,0])}getCollapsedKeySize(t){return eh(t.collapsedSize)}getExpandedKeySize(t){let e=this.getContentBBox(t);return[tm(e),tv(e),0]}getContentBBox(t){let{context:e,childrenNode:n=[],padding:i}=t,r=n.map(t=>e.element.getElement(t)).filter(Boolean);if(0===r.length){let e=new I.mN,{x:n=0,y:i=0,size:r}=t,[a,o]=eh(r);return e.setMinMax([n-a/2,i-o/2,0],[n+a/2,i+o/2,0]),e}let a=tw(r.map(t=>t.getBounds()));return i?tE(a,i):a}drawCollapsedMarkerShape(t,e){this.upsert("collapsed-marker",eY,this.getCollapsedMarkerStyle(t),e),eV(this)}getCollapsedMarkerStyle(t){if(!t.collapsed||!t.collapsedMarker)return!1;let{type:e,...n}=eo(this.getGraphicStyle(t),"collapsedMarker"),i=this.getShape("key"),[r,a]=tW(i.getLocalBounds(),"center"),o={...n,x:r,y:a};if(e){let n=this.getCollapsedMarkerText(e,t);Object.assign(o,{text:n})}return o}getCollapsedMarkerText(t,e){let{context:n,childrenData:i=[]}=e,{model:r}=n;return"descendant-count"===t?r.getDescendantsData(this.id).length.toString():"child-count"===t?i.length.toString():"node-count"===t?r.getDescendantsData(this.id).filter(t=>"node"===r.getElementType(tt(t))).length.toString():(0,td.Z)(t)?t(i):""}getComboZIndex(t){let e=this.context.model.getAncestorsData(this.id,G)||[];return e.length}getComboPosition(t){let{x:e=0,y:n=0,collapsed:i,context:r,childrenData:a=[]}=t;if(0===a.length)return[+e,+n,0];if(i){let{model:t}=r,i=t.getDescendantsData(this.id).filter(e=>!t.isCombo(tt(e)));if(i.length>0){let t=i.reduce((t,e)=>tM(t,tH(e)),[0,0,0]);return tP(t,i.length)}return[+e,+n,0]}return this.getContentBBox(t).center}getComboStyle(t){let{zIndex:e=this.getComboZIndex(t)}=t,[n,i]=this.getComboPosition(t);return{x:n,y:i,transform:"translate(".concat(n,", ").concat(i,")"),zIndex:e}}updateComboPosition(t){let e=this.getComboStyle(t);Object.assign(this.style,e);let{x:n,y:i}=e;this.context.model.syncComboDatum({id:this.id,style:{x:n,y:i}}),eU(this)}render(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;super.render(t,e),this.drawCollapsedMarkerShape(t,e)}update(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.update(t),this.updateComboPosition(this.parsedAttributes)}onframe(){super.onframe(),this.attributes.collapsed||this.updateComboPosition(this.parsedAttributes),this.drawKeyShape(this.parsedAttributes,this)}animate(t,e){let n=super.animate(this.attributes.collapsed?t:t.map(t=>{let{x:e,y:n,z:i,transform:r,...a}=t;return a}),e);return n?new Proxy(n,{set:(t,e,n)=>("currentTime"===e&&Promise.resolve().then(()=>this.onframe()),Reflect.set(t,e,n))}):n}constructor(t){super(eu({style:ne.defaultStyleProps},t)),this.type="combo",this.updateComboPosition(this.parsedAttributes)}}ne.defaultStyleProps={childrenNode:[],droppable:!0,draggable:!0,collapsed:!1,collapsedSize:32,collapsedMarker:!0,collapsedMarkerZIndex:1,collapsedMarkerFontSize:12,collapsedMarkerTextAlign:"center",collapsedMarkerTextBaseline:"middle",collapsedMarkerType:"child-count"},function(t,e,n,i){var r,a=arguments.length,o=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(o=(a<3?r(o):a>3?r(e,n,o):r(e,n))||o);a>3&&o&&Object.defineProperty(e,n,o)}([ev((t,e)=>t.getCollapsedMarkerStyle(e))],ne.prototype,"drawCollapsedMarkerShape",null);var nn=n(47666);let ni={padding:10};function nr(t,e,n,i,r,a){let{padding:o}=Object.assign(ni,a),s=tx(n,o),l=tx(i,o),h=[t,...r,e],c=null,u=[];for(let t=0,e=h.length;ta?"N":"S":i===a?n>r?"W":"E":null}function nl(t,e){return"N"===e||"S"===e?tv(t):tm(t)}function nh(t,e,n){let i=nd(t,e,n);return{points:[i],direction:ns(i,e)}}function nc(t,e,n,i){let r=[[e[0],t[1]],[t[0],e[1]]],a=r.filter(t=>!tC(t,n)&&!tS(t,n,!0)),o=a.filter(e=>ns(e,t)!==i);if(o.length>0){let n=o.find(e=>ns(t,e)===i)||o[0];return{points:[n],direction:ns(n,e)}}{var s;let o=(void 0===(s=a)&&(s=[]),(0,nn.Z)(r,function(t){var e;return e=s,!((0,eT.Z)(e)&&e.indexOf(t)>-1)}))[0],l=tK(e,o,nl(n,i)/2),h=nd(l,t,n);return{points:[h,l],direction:ns(l,e)}}}function nu(t,e,n,i,r){let a;let o=tw([n,i]),s=tD(e,o.center)>tD(t,o.center),[l,h]=s?[e,t]:[t,e],c=tv(o)+tm(o);if(r){let t=[l[0]+c*Math.cos(no[r]),l[1]+c*Math.sin(no[r])];a=tK(tA(o,t),t,.01)}else a=tK(tA(o,l),l,-.01);let u=nd(a,h,o),d=[tY(a,2),tY(u,2)];if((0,F.Z)(tY(a),tY(u))){let t=tB(tT(a,l),[1,0,0])+Math.PI/2;u=[h[0]+c*Math.cos(t),h[1]+c*Math.sin(t),0],u=tY(tK(tA(o,u),h,-.01),2);let e=nd(a,u,o);d=[a,e,u]}return{points:s?d.reverse():d,direction:s?ns(a,e):ns(u,e)}}function nd(t,e,n){let i=[t[0],e[1]];return tC(i,n)&&(i=[e[0],t[1]]),i}function np(t,e,n,i,r){let a="number"==typeof e?e:.5;"start"===e&&(a=0),"end"===e&&(a=.99);let o=tV(t.getPoint(a)),s=tV(t.getPoint(a+.01)),l="start"===e?"left":"end"===e?"right":"center";if(o[1]===s[1]||!n){let[e,n]=nf(t,a,i,r);return{transform:"translate(".concat(e,", ").concat(n,")"),textAlign:l}}let h=Math.atan2(s[1]-o[1],s[0]-o[0]),c=s[0]1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t[0],r=t[t.length-1],a=t.slice(1,t.length-1),o=[["M",i[0],i[1]]];return a.forEach((t,n)=>{let s=a[n-1]||i,l=a[n+1]||r;if(!tj([s,t],[t,l])&&e){let[n,i]=function(t,e,n,i){let r=tN(t,e),a=tN(n,e),o=Math.min(i,Math.min(r,a)/2),s=[e[0]-o/r*(e[0]-t[0]),e[1]-o/r*(e[1]-t[1])],l=[e[0]-o/a*(e[0]-n[0]),e[1]-o/a*(e[1]-n[1])];return[s,l]}(s,t,l,e);o.push(["L",n[0],n[1]],["Q",t[0],t[1],i[0],i[1]],["L",i[0],i[1]])}else o.push(["L",t[0],t[1]])}),o.push(["L",r[0],r[1]]),n&&o.push(["Z"]),o}let nv=t=>{let e=Math.PI/2,n=tv(t)/2,i=tm(t)/2,r=Math.atan2(n,i)/2,a=Math.atan2(i,n)/2;return{top:[-e-a,-e+a],"top-right":[-e+a,-r],"right-top":[-e+a,-r],right:[-r,r],"bottom-right":[r,e-a],"right-bottom":[r,e-a],bottom:[e-a,e+a],"bottom-left":[e+a,Math.PI-r],"left-bottom":[e+a,Math.PI-r],left:[Math.PI-r,Math.PI+r],"top-left":[Math.PI+r,-e-a],"left-top":[Math.PI+r,-e-a]}};function nb(t,e,n,i,r){let a=tx(t),o=t.getCenter(),s=i&&n0(i),l=r&&n0(r);if(!s||!l){let i=nv(a),r=i[e][0],h=i[e][1],[c,u]=tb(a),d=Math.max(c,u),p=tM(o,[d*Math.cos(r),d*Math.sin(r),0]),f=tM(o,[d*Math.cos(h),d*Math.sin(h),0]);s=n6(t,p),l=n6(t,f),n||([s,l]=[l,s])}return[s,l]}function nx(t,e){let n=new Set,i=new Set,r=new Set;return t.forEach(a=>{let o=e(a);o.forEach(e=>{n.add(e),t.includes(e.source)&&t.includes(e.target)?i.add(e):r.add(e)})}),{edges:Array.from(n),internal:Array.from(i),external:Array.from(r)}}function nE(t,e){let n=[],i=t;for(;i;){n.push(i);let t=e(tt(i));if(t)i=t;else break}if(n.some(t=>{var e;return null===(e=t.style)||void 0===e?void 0:e.collapsed})){let t=n.reverse().findIndex(ee);return n[t]||n.at(-1)}return t}let nw=(t,e)=>{let n=Math.max(t,e)/2;return[["M",-t/2,0],["A",n,n,0,1,0,2*n-t/2,0],["A",n,n,0,1,0,-t/2,0],["Z"]]},nC=(t,e)=>[["M",-t/2,0],["L",t/2,-e/2],["L",t/2,e/2],["Z"]],nS=(t,e)=>[["M",-t/2,0],["L",0,-e/2],["L",t/2,0],["L",0,e/2],["Z"]],nR=(t,e)=>[["M",-t/2,0],["L",t/2,-e/2],["L",4*t/5-t/2,0],["L",t/2,e/2],["Z"]],nA=(t,e)=>[["M",-t/2,-e/2],["L",t/2,-e/2],["L",t/2,e/2],["L",-t/2,e/2],["Z"]],nO=(t,e)=>{let n=t/2,i=t/7,r=t-i;return[["M",-n,0],["L",0,-e/2],["L",0,e/2],["Z"],["M",r-n,-e/2],["L",r+i-n,-e/2],["L",r+i-n,e/2],["L",r-n,e/2],["Z"]]},nM=(t,e)=>[["M",t/2,-e/2],["L",-t/2,0],["L",t/2,0],["L",-t/2,0],["L",t/2,e/2]];var nT=function(t,e,n,i){var r,a=arguments.length,o=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(o=(a<3?r(o):a>3?r(e,n,o):r(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};class nk extends eK{get sourceNode(){let{context:t,sourceNode:e}=this.parsedAttributes;return t.element.getElement(e)}get targetNode(){let{context:t,targetNode:e}=this.parsedAttributes;return t.element.getElement(e)}getKeyStyle(t){let{loop:e,...n}=this.getGraphicStyle(t),{sourceNode:i,targetNode:r}=this,a=e&&i&&r&&i===r?this.getLoopPath(t):this.getKeyPath(t);return{d:a,...el(n,["halo","label","startArrow","endArrow"])}}getLoopPath(t){let{sourcePort:e,targetPort:n}=t,i=this.sourceNode,r=tx(i),a=Math.max(tm(r),tv(r)),{placement:o,clockwise:s,dist:l=a}=eo(this.getGraphicStyle(t),"loop");return function(t,e,n,i,r,a){let o=t.getPorts()[r||a],s=t.getPorts()[a||r],[l,h]=nb(t,e,n,o,s),c=function(t,e,n,i){let r=t.getCenter();if((0,F.Z)(e,n)){let t=tT(e,r),a=[i*Math.sign(t[0])||i/2,i*Math.sign(t[1])||-i/2,0];return[tM(e,a),tM(n,tk(a,[1,-1,1]))]}return[tK(r,e,tD(r,e)+i),tK(r,n,tD(r,n)+i)]}(t,l,h,i);return o&&(l=n3(o,c[0])),s&&(h=n3(s,c[c.length-1])),ny(l,h,c)}(i,o,s,l,e,n)}getEndpoints(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],{sourcePort:i,targetPort:r}=t,{sourceNode:a,targetNode:o}=this,[s,l]=function(t,e,n,i){let r=n1(t,e,n,i),a=n1(e,t,i,n);return[r,a]}(a,o,i,r);if(!e){let t=s?n0(s):a.getCenter(),e=l?n0(l):o.getCenter();return[t,e]}let h="function"==typeof n?n():n,c=n2(s||a,h[0]||l||o),u=n2(l||o,h[h.length-1]||s||a);return[c,u]}getHaloStyle(t){if(!1===t.halo)return!1;let e=this.getKeyStyle(t),n=eo(this.getGraphicStyle(t),"halo");return{...e,...n}}getLabelStyle(t){if(!1===t.label||!t.labelText)return!1;let e=eo(this.getGraphicStyle(t),"label"),{placement:n,offsetX:i,offsetY:r,autoRotate:a,maxWidth:o,...s}=e,l=np(this.shapeMap.key,n,a,i,r),h=this.shapeMap.key.getLocalBounds(),c=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=tD(t[0],t[1])*n;return eR(i,e)}([h.min,h.max],o);return Object.assign({wordWrapWidth:c},l,s)}getBadgeStyle(t){if(!1===t.badge||!t.badgeText)return!1;let{offsetX:e,offsetY:n,placement:i,...r}=eo(t,"badge");return Object.assign(r,function(t,e,n,i,r){var a,o;let s=(null===(a=t.badge)||void 0===a?void 0:a.getGeometryBounds().halfExtents[0])*2||0,l=(null===(o=t.label)||void 0===o?void 0:o.getGeometryBounds().halfExtents[0])*2||0;return np(t.key,n,!0,(l?(l/2+s/2)*("suffix"===e?1:-1):0)+i,r)}(this.shapeMap,i,t.labelPlacement,e,n))}drawArrow(t,e){let n="start"===e,i=t["start"===e?"startArrow":"endArrow"],r=this.shapeMap.key;if(i){let e=this.getArrowStyle(t,n),[i,a,o]=n?["markerStart","markerStartOffset","startArrowOffset"]:["markerEnd","markerEndOffset","endArrowOffset"],s=r.parsedStyle[i];if(s)s.attr(e);else{let t=e.src?I.Ee:I.y$,n=new t({style:e});r.style[i]=n}r.style[a]=t[o]||e.width/2+ +e.lineWidth}else{var a;let t=n?"markerStart":"markerEnd";null===(a=r.style[t])||void 0===a||a.destroy(),r.style[t]=null}}getArrowStyle(t,e){var n;let i=this.getShape("key").attributes,{size:r,type:a,...o}=eo(this.getGraphicStyle(t),e?"startArrow":"endArrow"),[s,l]=eh((n=i.lineWidth,r||(n<4?10:4===n?12:2.5*n))),h=(0,td.Z)(a)?a:N[a]||nC,c=h(s,l);return Object.assign((0,e8.Z)(i,["stroke","strokeOpacity","fillOpacity"]),{width:s,height:l},{...c&&{d:c,fill:"simple"===a?"":i.stroke}},o)}drawLabelShape(t,e){this.upsert("label",e_,this.getLabelStyle(t),e)}drawHaloShape(t,e){this.upsert("halo",I.y$,this.getHaloStyle(t),e)}drawBadgeShape(t,e){this.upsert("badge",eF,this.getBadgeStyle(t),e)}drawSourceArrow(t){this.drawArrow(t,"start")}drawTargetArrow(t){this.drawArrow(t,"end")}drawKeyShape(t,e){let n=this.upsert("key",I.y$,this.getKeyStyle(t),e);return n}render(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.parsedAttributes,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this.drawKeyShape(t,e),this.getShape("key")&&(this.drawSourceArrow(t),this.drawTargetArrow(t),this.drawLabelShape(t,e),this.drawHaloShape(t,e),this.drawBadgeShape(t,e))}onframe(){this.drawKeyShape(this.parsedAttributes,this),this.drawSourceArrow(this.parsedAttributes),this.drawTargetArrow(this.parsedAttributes),this.drawHaloShape(this.parsedAttributes,this),this.drawLabelShape(this.parsedAttributes,this),this.drawBadgeShape(this.parsedAttributes,this)}animate(t,e){let n=super.animate(t,e);return n?new Proxy(n,{set:(t,e,n)=>("currentTime"===e&&Promise.resolve().then(()=>this.onframe()),Reflect.set(t,e,n))}):n}constructor(t){super(eu({style:nk.defaultStyleProps},t)),this.type="edge"}}nk.defaultStyleProps={badge:!0,badgeOffsetX:0,badgeOffsetY:0,badgePlacement:"suffix",isBillboard:!0,label:!0,labelAutoRotate:!0,labelIsBillboard:!0,labelMaxWidth:"80%",labelOffsetX:4,labelOffsetY:0,labelPlacement:"center",labelTextBaseline:"middle",labelWordWrap:!1,halo:!1,haloDroppable:!1,haloLineDash:0,haloLineWidth:12,haloPointerEvents:"none",haloStrokeOpacity:.25,haloZIndex:-1,loop:!0,startArrow:!1,startArrowLineDash:0,startArrowLineJoin:"round",startArrowLineWidth:1,startArrowTransformOrigin:"center",startArrowType:"vee",endArrow:!1,endArrowLineDash:0,endArrowLineJoin:"round",endArrowLineWidth:1,endArrowTransformOrigin:"center",endArrowType:"vee",loopPlacement:"top",loopClockwise:!0},nT([ev((t,e)=>t.getLabelStyle(e))],nk.prototype,"drawLabelShape",null),nT([ev((t,e)=>t.getHaloStyle(e))],nk.prototype,"drawHaloShape",null),nT([ev((t,e)=>t.getBadgeStyle(e))],nk.prototype,"drawBadgeShape",null),nT([ev((t,e)=>t.getArrowStyle(e,"start"))],nk.prototype,"drawSourceArrow",null),nT([ev((t,e)=>t.getArrowStyle(e,"end"))],nk.prototype,"drawTargetArrow",null),nT([ev((t,e)=>t.getKeyStyle(e))],nk.prototype,"drawKeyShape",null);class nP extends nk{getKeyPath(t){let[e,n]=this.getEndpoints(t),{controlPoints:i,curvePosition:r,curveOffset:a}=t,o=this.getControlPoints(e,n,(0,eJ.Z)(r)?[r,1-r]:r,(0,eJ.Z)(a)?[a,-a]:a,i);return ny(e,n,o)}getControlPoints(t,e,n,i,r){return(null==r?void 0:r.length)===2?r:[ng(t,e,n[0],i[0]),ng(t,e,n[1],i[1])]}constructor(t){super(eu({style:nP.defaultStyleProps},t))}}nP.defaultStyleProps={curvePosition:.5,curveOffset:20};class nL extends nP{getControlPoints(t,e,n,i){let r=e[0]-t[0];return[[t[0]+r*n[0]+i[0],t[1]],[e[0]-r*n[1]+i[1],e[1]]]}constructor(t){super(eu({style:nL.defaultStyleProps},t))}}nL.defaultStyleProps={curvePosition:[.5,.5],curveOffset:[0,0]};class nD extends nP{getControlPoints(t,e,n,i){let r=e[1]-t[1];return[[t[0],t[1]+r*n[0]+i[0]],[e[0],e[1]-r*n[1]+i[1]]]}constructor(t){super(eu({style:nD.defaultStyleProps},t))}}nD.defaultStyleProps={curvePosition:[.5,.5],curveOffset:[0,0]};class nN extends nk{getKeyPath(t){let[e,n]=this.getEndpoints(t);return[["M",e[0],e[1]],["L",n[0],n[1]]]}constructor(t){super(eu({style:nN.defaultStyleProps},t))}}nN.defaultStyleProps={};let nI={enableObstacleAvoidance:!1,offset:10,maxAllowedDirectionChange:Math.PI/2,maximumLoops:3e3,gridSize:5,startDirections:["top","right","bottom","left"],endDirections:["top","right","bottom","left"],directionMap:{right:{stepX:1,stepY:0},left:{stepX:-1,stepY:0},bottom:{stepX:0,stepY:1},top:{stepX:0,stepY:-1}},penalties:{0:0,90:0},distFunc:tN},nB=t=>"".concat(Math.round(t[0]),"|||").concat(Math.round(t[1]));function n_(t,e){let n=t=>Math.round(t/e);return(0,eJ.Z)(t)?n(t):t.map(n)}function nF(t,e){let n=e[0]-t[0],i=e[1]-t[1];return n||i?Math.atan2(i,n):0}function nZ(t,e,n,i){let r=nF(t,e),a=n[nB(t)],o=nF(a||i,t);return function(t,e){let n=Math.abs(t-e);return n>Math.PI?2*Math.PI-n:n}(o,r)}let nj=(t,e)=>{let{offset:n,gridSize:i}=e,r={};return t.forEach(t=>{if(!t||t.destroyed||!t.isVisible())return;let e=tE(t.getRenderBounds(),n);for(let t=n_(e.min[0],i);t<=n_(e.max[0],i);t+=1)for(let n=n_(e.min[1],i);n<=n_(e.max[1],i);n+=1)r["".concat(t,"|||").concat(n)]=!0}),r};function nz(t,e,n){return Math.min(...e.map(e=>n(t,e)))}let nG=(t,e,n,i)=>{if(!e)return[t];let{directionMap:r,offset:a}=i,o=tE(e.getRenderBounds(),a),s=Object.keys(r).reduce((e,i)=>{if(n.includes(i)){let n=r[i],[a,s]=tb(o),l=[t[0]+n.stepX*a,t[1]+n.stepY*s],h=function(t){let{min:[e,n],max:[i,r]}=t,a=[e,r],o=[i,r],s=[i,n],l=[e,n];return[[a,o],[o,s],[s,l],[l,a]]}(o);for(let n=0;nn_(t,i.gridSize))},nH=(t,e,n,i,r,a,o)=>{let s=[],l=[a[0]===i[0]?i[0]:t[0]*o,a[1]===i[1]?i[1]:t[1]*o];s.unshift(l);let h=t,c=e[nB(h)];for(;c;){let t=c,i=h,r=nZ(t,i,e,n);r&&(l=[t[0]===i[0]?l[0]:t[0]*o,t[1]===i[1]?l[1]:t[1]*o],s.unshift(l)),c=e[nB(t)],h=t}let u=r.map(t=>[t[0]*o,t[1]*o]),d=function(t,e,n){let i=t[0],r=n(t[0],e);for(let a=0;a1;){let e=Math.floor((n+i)/2);if(this.arr[e].value>t.value)i=e;else if(this.arr[e].value=0;e--)this.map[this.arr[e].id]?t=this.arr[e].id:this.arr.splice(e,1);return t}_findFirstId(){for(;this.arr.length;){let t=this.arr.shift();if(this.map[t.id])return t.id}}minId(t){return t?this._clearAndGetMinId():this._findFirstId()}constructor(){this.arr=[],this.map={},this.arr=[],this.map={}}}class nV extends nk{getControlPoints(t){let{router:e}=t,{sourceNode:n,targetNode:i}=this,[r,a]=this.getEndpoints(t,!1),o=[];if(e){if("shortest-path"===e.type){let s=this.context.element.getNodes();(o=function(t,e,n,i){let r;let a=tF(t.getCenter()),o=tF(e.getCenter()),s=Object.assign(nI,i),{gridSize:l}=s,h=s.enableObstacleAvoidance?n:[t,e],c=nj(h,s),u=n_(a,l),d=n_(o,l),p=nG(a,t,s.startDirections,s),f=nG(o,e,s.endDirections,s);p.forEach(t=>delete c[nB(t)]),f.forEach(t=>delete c[nB(t)]);let g={},y={},m={},v={},b={},x=new nW;for(let t=0;tnB(t)),w=s.maximumLoops,C=1/0;for(let[t,e]of Object.entries(g))b[t]<=C&&(C=b[t],r=e);for(;Object.keys(g).length>0&&w>0;){let t=x.minId(!1);if(t)r=g[t];else break;let e=nB(r);if(E.includes(e))return nH(r,m,u,o,p,d,l);for(let t of(delete g[e],x.remove(e),y[e]=!0,Object.values(s.directionMap))){let n=tM(r,[t.stepX,t.stepY]),i=nB(n);if(y[i])continue;let a=nZ(r,n,m,u);if(a>s.maxAllowedDirectionChange||c[i])continue;g[i]||(g[i]=n);let o=s.penalties[a],h=s.distFunc(r,n)+(isNaN(o)?l:o),d=v[e]+h,p=v[i];p&&d>=p||(m[i]=r,v[i]=d,b[i]=d+nz(n,f,s.distFunc),x.add({id:i,value:b[i]}))}w-=1}return[]}(n,i,s,e)).length||(o=nr(r,a,n,i,t.controlPoints,{padding:e.offset}))}else"orth"===e.type&&(o=nr(r,a,n,i,t.controlPoints,e))}else o=t.controlPoints;return o}getPoints(t){let e=this.getControlPoints(t),[n,i]=this.getEndpoints(t,!0,e);return[n,...e,i]}getKeyPath(t){let e=this.getPoints(t);return nm(e,t.radius)}getLoopPath(t){let{sourcePort:e,targetPort:n,radius:i}=t,r=this.sourceNode,a=tx(r),o=Math.max(tm(a),tv(a))/4,{placement:s,clockwise:l,dist:h=o}=eo(this.getGraphicStyle(t),"loop");return function(t,e,n,i,r,a,o){let s=nQ(t),l=s[a||o],h=s[o||a],[c,u]=nb(t,n,i,l,h),d=function(t,e,n,i){let r=[],a=tx(t);if((0,F.Z)(e,n)){let t=tR(a,e);switch(t){case"left":r.push([e[0]-i,e[1]]),r.push([e[0]-i,e[1]+i]),r.push([e[0],e[1]+i]);break;case"right":r.push([e[0]+i,e[1]]),r.push([e[0]+i,e[1]+i]),r.push([e[0],e[1]+i]);break;case"top":r.push([e[0],e[1]-i]),r.push([e[0]+i,e[1]-i]),r.push([e[0]+i,e[1]]);break;case"bottom":r.push([e[0],e[1]+i]),r.push([e[0]+i,e[1]+i]),r.push([e[0]+i,e[1]])}}else{let t=tR(a,e),o=tR(a,n);if(t===o){let a,o;switch(t){case"left":a=Math.min(e[0],n[0])-i,r.push([a,e[1]]),r.push([a,n[1]]);break;case"right":a=Math.max(e[0],n[0])+i,r.push([a,e[1]]),r.push([a,n[1]]);break;case"top":o=Math.min(e[1],n[1])-i,r.push([e[0],o]),r.push([n[0],o]);break;case"bottom":o=Math.max(e[1],n[1])+i,r.push([e[0],o]),r.push([n[0],o])}}else{let s=(t,e)=>({left:[e[0]-i,e[1]],right:[e[0]+i,e[1]],top:[e[0],e[1]-i],bottom:[e[0],e[1]+i]})[t],l=s(t,e),h=s(o,n),c=nd(l,h,a);r.push(l,c,h)}}return r}(t,c,u,r);return l&&(c=n3(l,d[0])),h&&(u=n3(h,d[d.length-1])),nm([c,...d,u],e)}(r,i,s,l,h,e,n)}constructor(t){super(eu({style:nV.defaultStyleProps},t))}}nV.defaultStyleProps={radius:0,controlPoints:[],router:!1};class nU extends nk{getKeyPath(t){let{curvePosition:e,curveOffset:n}=t,[i,r]=this.getEndpoints(t),a=t.controlPoint||ng(i,r,e,n);return[["M",i[0],i[1]],["Q",a[0],a[1],r[0],r[1]]]}constructor(t){super(eu({style:nU.defaultStyleProps},t))}}function nY(t){return t instanceof eX&&"node"===t.type}function nK(t){return t instanceof nk}function n$(t){return t instanceof ne}nU.defaultStyleProps={curvePosition:.5,curveOffset:30};let nX={top:[.5,0],right:[1,.5],bottom:[.5,1],left:[0,.5],default:[.5,.5]};function nq(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nX,i=!(arguments.length>3)||void 0===arguments[3]||arguments[3],r=[.5,.5],a=(0,t0.Z)(e)?(0,en.Z)(n,e.toLocaleLowerCase(),r):e;if(!i&&(0,t0.Z)(e))return a;let[o,s]=a||r;return[t.min[0]+tm(t)*o,t.min[1]+tv(t)*s]}function nQ(t){if(!t)return{};let e=t.getPorts(),n=t.attributes.ports||[];return n.forEach((n,i)=>{let{key:r,placement:a}=n;if(nJ(n)){var o;e[o=r||i]||(e[o]=tW(t.getShape("key").getBounds(),a))}}),e}function nJ(t){let{r:e}=t;return!e||0===Number(e)}function n0(t){return tf(t)?t:t.getPosition()}function n1(t,e,n,i){let r,a;let o=nQ(t);if(n)return o[n];let s=Object.values(o);if(0===s.length)return;let l=s.map(t=>n0(t)),h=function(t,e){let n=nQ(t);if(e)return[n0(n[e])];let i=Object.values(n);return i.length>0?i.map(t=>n0(t)):[t.getCenter()]}(e,i),[c]=(r=1/0,a=[l[0],h[0]],l.forEach(t=>{h.forEach(e=>{let n=tD(t,e);nn0(t)===c)}function n2(t,e){return n$(t)||nY(t)?n6(t,e):n3(t,e)}function n3(t,e){if(!t||!e)return[0,0,0];if(tf(t))return t;if(t.attributes.linkToCenter)return t.getPosition();let n=tf(e)?e:nY(e)?e.getCenter():e.getPosition();return tX(n,t.getBounds())}function n6(t,e){if(!t||!e)return[0,0,0];let n=tf(e)?e:nY(e)?e.getCenter():e.getPosition();return t.getIntersectPoint(n)||t.getCenter()}function n4(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bottom",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=e.split("-"),[o,s]=tW(t,e),l=a.includes("left")?"right":a.includes("right")?"left":"center",h=a.includes("top")?"bottom":a.includes("bottom")?"top":"middle";return r&&(h="top"===h?"bottom":"bottom"===h?"top":h),{transform:"translate(".concat(o+n,", ").concat(s+i,")"),textBaseline:h,textAlign:l}}function n8(t,e){"update"in t?t.update(e):t.attr(e)}function n9(t){return(0,en.Z)(t,"__to_be_destroyed__",!1)}class n5 extends tu{update(t){this.unbindEvents(),super.update(t),this.bindEvents()}bindEvents(){let{graph:t}=this.context,{trigger:e}=this.options;t.on("node:".concat(e),this.onCollapseExpand),t.on("combo:".concat(e),this.onCollapseExpand)}unbindEvents(){let{graph:t}=this.context,{trigger:e}=this.options;t.off("node:".concat(e),this.onCollapseExpand),t.off("combo:".concat(e),this.onCollapseExpand)}validate(t){if(this.destroyed)return!1;let{enable:e}=this.options;return(0,td.Z)(e)?e(t):!!e}destroy(){this.unbindEvents(),super.destroy()}constructor(t,e){super(t,Object.assign({},n5.defaultOptions,e)),this.onCollapseExpand=async t=>{if(!this.validate(t))return;let{target:e}=t;if(!(nY(e)||nK(e)||n$(e)))return;let n=e.id,{model:i,graph:r}=this.context,a=i.getElementDataById(n);if(!a)return!1;let{onCollapse:o,onExpand:s,animation:l}=this.options;ee(a)?(await r.expandElement(n,l),null==s||s(n)):(await r.collapseElement(n,l),null==o||o(n))},this.bindEvents()}}n5.defaultOptions={enable:!0,animation:!0,trigger:w.DBLCLICK};var n7={};let it="g6-create-edge-assist-node-id";class ie extends tu{update(t){super.update(t),this.bindEvents()}bindEvents(){let{graph:t}=this.context,{trigger:e}=this.options;this.unbindEvents(),"click"===e?(t.on(O.CLICK,this.handleCreateEdge),t.on(E.CLICK,this.handleCreateEdge),t.on(x.CLICK,this.cancelEdge),t.on(S.CLICK,this.cancelEdge)):(t.on(O.DRAG_START,this.handleCreateEdge),t.on(E.DRAG_START,this.handleCreateEdge),t.on(w.POINTER_UP,this.drop)),t.on(w.POINTER_MOVE,this.updateAssistEdge)}getSelectedNodeIDs(t){return Array.from(new Set(this.context.graph.getElementDataByState("node",this.options.state).map(t=>t.id).concat(t)))}validate(t){if(this.destroyed)return!1;let{enable:e}=this.options;return(0,td.Z)(e)?e(t):!!e}unbindEvents(){let{graph:t}=this.context;t.off(O.CLICK,this.handleCreateEdge),t.off(E.CLICK,this.handleCreateEdge),t.off(x.CLICK,this.cancelEdge),t.off(S.CLICK,this.cancelEdge),t.off(O.DRAG_START,this.handleCreateEdge),t.off(E.DRAG_START,this.handleCreateEdge),t.off(w.POINTER_UP,this.drop),t.off(w.POINTER_MOVE,this.updateAssistEdge)}destroy(){this.unbindEvents(),super.destroy()}constructor(t,e){super(t,Object.assign({},ie.defaultOptions,e)),this.drop=async t=>{let{targetType:e}=t;["combo","node"].includes(e)&&this.source?await this.handleCreateEdge(t):await this.cancelEdge()},this.handleCreateEdge=async t=>{var e;if(!this.validate(t))return;let{graph:n,canvas:i,batch:r,element:a}=this.context,{style:o}=this.options;if(this.source){this.createEdge(t),await this.cancelEdge();return}r.startBatch(),i.setCursor("crosshair"),this.source=this.getSelectedNodeIDs([t.target.id])[0],n.addNodeData([{id:it,style:{visibility:"hidden",ports:[{key:"port-1",placement:[.5,.5]}]}}]),n.addEdgeData([{id:"g6-create-edge-assist-edge-id",source:this.source,target:it,style:{pointerEvents:"none",...o}}]),await (null===(e=a.draw({animation:!1}))||void 0===e?void 0:e.finished)},this.updateAssistEdge=async t=>{var e;if(!this.source)return;let{model:n,element:i}=this.context;n.translateNodeTo(it,[t.canvas.x,t.canvas.y]),await (null===(e=i.draw({animation:!1,silence:!0}))||void 0===e?void 0:e.finished)},this.createEdge=t=>{var e,n,i;let{graph:r}=this.context,{style:a,onFinish:o,onCreate:s}=this.options,l=null===(e=t.target)||void 0===e?void 0:e.id;if(void 0===l||void 0===this.source)return;let h=null===(n=this.getSelectedNodeIDs([t.target.id]))||void 0===n?void 0:n[0],c="".concat(this.source,"-").concat(h,"-").concat((n7[i=i||"g"]?n7[i]+=1:n7[i]=1,i+n7[i])),u=s({id:c,source:this.source,target:h,style:a});r.addEdgeData([u]),o(u)},this.cancelEdge=async()=>{var t;if(!this.source)return;let{graph:e,element:n,batch:i}=this.context;e.removeNodeData([it]),this.source=void 0,await (null===(t=n.draw({animation:!1}))||void 0===t?void 0:t.finished),i.endBatch()},this.bindEvents()}}ie.defaultOptions={animation:!0,enable:!0,style:{},trigger:"drag",onCreate:t=>t,onFinish:()=>{}};var ii=n(68040);class ir extends tu{update(t){this.unbindEvents(),super.update(t),this.bindEvents()}bindEvents(){let{trigger:t}=this.options;if((0,Z.Z)(t)){let{up:e=[],down:n=[],left:i=[],right:r=[]}=t;this.shortcut.bind(e,t=>this.onTranslate([0,1],t)),this.shortcut.bind(n,t=>this.onTranslate([0,-1],t)),this.shortcut.bind(i,t=>this.onTranslate([1,0],t)),this.shortcut.bind(r,t=>this.onTranslate([-1,0],t))}else{let{graph:t}=this.context;t.on(w.DRAG_START,this.onDragStart),t.on(w.DRAG,this.onDrag),t.on(w.DRAG_END,this.onDragEnd)}}async onTranslate(t,e){if(!this.validate(e))return;let{sensitivity:n}=this.options;await this.translate(tk(t,-1*n),this.options.animation),this.invokeOnFinish()}async translate(t,e){let[n,i]=t,{direction:r}=this.options;"x"===r?i=0:"y"===r&&(n=0),await this.context.graph.translateBy([n,i],e)}validate(t){if(this.destroyed)return!1;let{enable:e}=this.options;return"function"==typeof e?e(t):!!e}unbindEvents(){this.shortcut.unbindAll();let{graph:t}=this.context;t.off(w.DRAG_START,this.onDragStart),t.off(w.DRAG,this.onDrag),t.off(w.DRAG_END,this.onDragEnd)}destroy(){this.shortcut.destroy(),this.unbindEvents(),this.context.canvas.setCursor(this.defaultCursor),super.destroy()}constructor(t,e){super(t,Object.assign({},ir.defaultOptions,e)),this.isDragging=!1,this.onDragStart=t=>{this.validate(t)&&(this.isDragging=!0,this.context.canvas.setCursor("grabbing"))},this.onDrag=t=>{if(!this.isDragging)return;let{x:e,y:n}=t.movement;(e|n)!=0&&this.translate([e,n],!1)},this.onDragEnd=()=>{var t,e;this.isDragging=!1,this.context.canvas.setCursor(this.defaultCursor),null===(e=(t=this.options).onFinish)||void 0===e||e.call(t)},this.invokeOnFinish=(0,ii.Z)(()=>{var t,e;null===(e=(t=this.options).onFinish)||void 0===e||e.call(t)},300),this.shortcut=new t2(t.graph),this.bindEvents(),this.defaultCursor=this.context.canvas.getConfig().cursor||"default"}}ir.defaultOptions={enable:t=>!("targetType"in t)||"canvas"===t.targetType,sensitivity:10,direction:"both"};class ia extends tu{get animation(){return!!this.options.shadow&&this.options.animation}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}bindEvents(){let{graph:t}=this.context;this.enableElements.forEach(e=>{t.on("".concat(e,":").concat(w.DRAG_START),this.onDragStart),t.on("".concat(e,":").concat(w.DRAG),this.onDrag),t.on("".concat(e,":").concat(w.DRAG_END),this.onDragEnd),t.on("".concat(e,":").concat(w.POINTER_ENTER),this.setCursor),t.on("".concat(e,":").concat(w.POINTER_LEAVE),this.setCursor)}),["link"].includes(this.options.dropEffect)&&(t.on(E.DROP,this.onDrop),t.on(x.DROP,this.onDrop))}getSelectedNodeIDs(t){return Array.from(new Set(this.context.graph.getElementDataByState("node",this.options.state).map(t=>t.id).concat(t)))}getDelta(t){let e=this.context.graph.getZoom();return tP([t.dx,t.dy],e)}onDragStart(t){var e;if(this.enable=this.validate(t),!this.enable)return;let{batch:n,canvas:i}=this.context;i.setCursor((null===(e=this.options.cursor)||void 0===e?void 0:e.grabbing)||"grabbing"),this.isDragging=!0,n.startBatch(),this.target=this.getSelectedNodeIDs([t.target.id]),this.hideEdge(),this.context.graph.frontElement(this.target),this.options.shadow&&this.createShadow(this.target)}onDrag(t){if(!this.enable)return;let e=this.getDelta(t);this.options.shadow?this.moveShadow(e):this.moveElement(this.target,e)}onDragEnd(){var t,e,n;if(this.enable=!1,this.options.shadow){if(!this.shadow)return;this.shadow.style.visibility="hidden";let{x:t=0,y:e=0}=this.shadow.attributes,[n,i]=tT([+t,+e],this.shadowOrigin);this.moveElement(this.target,[n,i])}this.showEdges(),null===(e=(t=this.options).onFinish)||void 0===e||e.call(t,this.target);let{batch:i,canvas:r}=this.context;i.endBatch(),r.setCursor((null===(n=this.options.cursor)||void 0===n?void 0:n.grab)||"grab"),this.isDragging=!1,this.target=[]}validate(t){if(this.destroyed)return!1;let{enable:e}=this.options;return(0,td.Z)(e)?e(t):!!e}async moveElement(t,e){let{graph:n,model:i}=this.context,{dropEffect:r}=this.options;"move"===r&&t.forEach(t=>i.refreshComboData(t)),n.translateElementBy(Object.fromEntries(t.map(t=>[t,e])),!1)}moveShadow(t){if(!this.shadow)return;let{x:e=0,y:n=0}=this.shadow.attributes,[i,r]=t;this.shadow.attr({x:+e+i,y:+n+r})}createShadow(t){let e=eo(this.options,"shadow"),n=tw(t.map(t=>this.context.element.getElement(t).getBounds())),[i,r]=n.min;this.shadowOrigin=[i,r];let[a,o]=tb(n),s={width:a,height:o,x:i,y:r};this.shadow?this.shadow.attr({...e,...s,visibility:"visible"}):(this.shadow=new I.UL({style:{$layer:"transient",...e,...s,pointerEvents:"none"}}),this.context.canvas.appendChild(this.shadow))}showEdges(){this.options.shadow||0===this.hiddenEdges.length||(this.context.graph.showElement(this.hiddenEdges),this.hiddenEdges=[])}hideEdge(){let{hideEdge:t,shadow:e}=this.options;if("none"===t||e)return;let{graph:n}=this.context;"all"===t?this.hiddenEdges=n.getEdgeData().map(tt):this.hiddenEdges=Array.from(new Set(this.target.map(e=>n.getRelatedEdgesData(e,t).map(tt)).flat())),n.hideElement(this.hiddenEdges)}unbindEvents(){let{graph:t}=this.context;this.enableElements.forEach(e=>{t.off("".concat(e,":").concat(w.DRAG_START),this.onDragStart),t.off("".concat(e,":").concat(w.DRAG),this.onDrag),t.off("".concat(e,":").concat(w.DRAG_END),this.onDragEnd),t.off("".concat(e,":").concat(w.POINTER_ENTER),this.setCursor),t.off("".concat(e,":").concat(w.POINTER_LEAVE),this.setCursor)}),t.off("combo:".concat(w.DROP),this.onDrop),t.off("canvas:".concat(w.DROP),this.onDrop)}destroy(){var t;this.unbindEvents(),null===(t=this.shadow)||void 0===t||t.destroy(),super.destroy()}constructor(t,e){super(t,Object.assign({},ia.defaultOptions,e)),this.enable=!1,this.enableElements=["node","combo"],this.target=[],this.shadowOrigin=[0,0],this.hiddenEdges=[],this.isDragging=!1,this.onDrop=async t=>{var e;if("link"!==this.options.dropEffect)return;let{model:n,element:i}=this.context,r=t.target.id;this.target.forEach(t=>{let e=n.getParentData(t,G);e&&tt(e)===r&&n.refreshComboData(r),n.setParent(t,r,G)}),await (null===(e=null==i?void 0:i.draw({animation:!0}))||void 0===e?void 0:e.finished)},this.setCursor=t=>{if(this.isDragging)return;let{type:e}=t,{canvas:n}=this.context,{cursor:i}=this.options;e===w.POINTER_ENTER?n.setCursor((null==i?void 0:i.grab)||"grab"):n.setCursor((null==i?void 0:i.default)||"default")},this.onDragStart=this.onDragStart.bind(this),this.onDrag=this.onDrag.bind(this),this.onDragEnd=this.onDragEnd.bind(this),this.onDrop=this.onDrop.bind(this),this.bindEvents()}}ia.defaultOptions={animation:!0,enable:t=>["node","combo"].includes(t.targetType),dropEffect:"move",state:"selected",hideEdge:"none",shadow:!1,shadowZIndex:100,shadowFill:"#F3F9FF",shadowFillOpacity:.5,shadowStroke:"#1890FF",shadowStrokeOpacity:.9,shadowLineDash:[5,5],cursor:{default:"default",grab:"grab",grabbing:"grabbing"}};var io=n(72137);class is{constructor(t,e){this.context=t,this.options=e||{}}}function il(t){let{nodes:e,edges:n}=t,i={nodes:[],edges:[],combos:[]};return e.forEach(t=>{let e=t.data._isCombo?i.combos:i.nodes,{x:n,y:r,z:a=0}=t.data;null==e||e.push({id:t.id,style:{x:n,y:r,z:a}})}),n.forEach(t=>{let{id:e,source:n,target:r,data:{points:a=[],controlPoints:o=a.slice(1,a.length-1)}}=t;i.edges.push({id:e,source:n,target:r,style:{...(null==o?void 0:o.length)?{controlPoints:o.map(tV)}:{}}})}),i}function ih(t,e){for(var n=arguments.length,i=Array(n>2?n-2:0),r=2;r"scale"in t.data,this.fixElementSize=async t=>{if(!this.isZoomEvent(t)||!this.validate(t))return;let{graph:e,element:n}=this.context,{state:i}=this.options,r=i?[...e.getElementDataByState("node",i),...e.getElementDataByState("edge",i),...e.getElementDataByState("combo",i)]:Object.values(e.getData()).flat();if(!r.length)return;let a=t.data.scale||e.getZoom();r.forEach(t=>{let i=tt(t),r=null==n?void 0:n.getElement(i),o=e.getElementType(i),s=this.options[o];if(!s){this.elementCache.set(i,r),"edge"===o&&(r.style.transformOrigin="center"),r.setLocalScale(1/a);return}let l=function(t){let e=[],n=t=>{(null==t?void 0:t.children.length)&&t.children.forEach(t=>{e.push(t),n(t)})};return n(t),e}(r),h=Array.isArray(s)?s:[s];h.forEach(t=>{let{shape:e,fields:n}=t,i=e(l);n.forEach(t=>{ey(i,t)||ef(i,t);let e=eg(i,t);(0,eJ.Z)(e)&&(i.style[t]=e/a)})})})},this.resetTransform=async()=>{this.elementCache&&(this.elementCache.forEach(t=>t.setLocalScale(1)),this.elementCache.clear())},this.bindEvents()}}iu.defaultOptions={enable:t=>t.data.scale<1,state:"selected",edge:[{shape:t=>t.find(t=>"key"===t.className),fields:["lineWidth"]},{shape:t=>t.find(t=>{var e;return(null===(e=t.parentElement)||void 0===e?void 0:e.className)==="label"&&"text"===t.className}),fields:["fontSize","lineHeight"]}]};class id extends tu{bindEvents(){let{graph:t}=this.context;this.unbindEvents(),t4.forEach(e=>{t.on("".concat(e,":").concat(w.CLICK),this.focus)})}validate(t){if(this.destroyed)return!1;let{enable:e}=this.options;return(0,td.Z)(e)?e(t):!!e}unbindEvents(){let{graph:t}=this.context;t4.forEach(e=>{t.off("".concat(e,":").concat(w.CLICK),this.focus)})}destroy(){this.unbindEvents(),super.destroy()}constructor(t,e){super(t,Object.assign({},id.defaultOptions,e)),this.focus=async t=>{if(!this.validate(t))return;let{graph:e}=this.context;await e.focusElement(t.target.id,this.options.animation)},this.bindEvents()}}id.defaultOptions={animation:{easing:"ease-in",duration:500},enable:!0};class ip extends tu{bindEvents(){let{graph:t}=this.context;this.unbindEvents(),t4.forEach(e=>{t.on("".concat(e,":").concat(w.POINTER_OVER),this.hoverElement),t.on("".concat(e,":").concat(w.POINTER_OUT),this.hoverElement)});let e=this.context.canvas.document;e.addEventListener("".concat(w.DRAG_START),this.toggleFrozen),e.addEventListener("".concat(w.DRAG_END),this.toggleFrozen)}validate(t){if(this.destroyed||this.isFrozen||this.context.graph.isCollapsingExpanding)return!1;let{enable:e}=this.options;return(0,td.Z)(e)?e(t):!!e}unbindEvents(){let{graph:t}=this.context;t4.forEach(e=>{t.off("".concat(e,":").concat(w.POINTER_OVER),this.hoverElement),t.off("".concat(e,":").concat(w.POINTER_OUT),this.hoverElement)});let e=this.context.canvas.document;e.removeEventListener("".concat(w.DRAG_START),this.toggleFrozen),e.removeEventListener("".concat(w.DRAG_END),this.toggleFrozen)}destroy(){this.unbindEvents(),super.destroy()}constructor(t,e){super(t,Object.assign({},ip.defaultOptions,e)),this.isFrozen=!1,this.toggleFrozen=t=>{this.isFrozen="dragstart"===t.type},this.hoverElement=t=>{if(!this.validate(t))return;let e=t.type===w.POINTER_OVER;this.updateElementsState(t,e);let{onHover:n,onHoverEnd:i}=this.options;e?null==n||n(t):null==i||i(t)},this.updateElementsState=(t,e)=>{if(!this.options.state&&!this.options.inactiveState)return;let{graph:n}=this.context,{state:i,degree:r,animation:a,inactiveState:o}=this.options,{targetType:s,target:l}=t,h=r?t9(n,s,l.id,r):[l.id],c={};if(i&&Object.assign(c,this.getElementsState(h,i,e)),o){let t=te(n.getData(),!0).filter(t=>!h.includes(t));Object.assign(c,this.getElementsState(t,o,e))}n.setElementState(c,a)},this.getElementsState=(t,e,n)=>{let{graph:i}=this.context,r={};return t.forEach(t=>{let a=i.getElementState(t),o=n?[...a,e]:a.filter(t=>t!==e);r[t]=o}),r},this.bindEvents()}}ip.defaultOptions={animation:!1,enable:!0,degree:0,state:"active",inactiveState:void 0};class ig extends tu{bindEvents(){let{graph:t}=this.context;t.on(R.BEFORE_TRANSFORM,this.hideShapes),t.on(R.AFTER_TRANSFORM,this.showShapes)}unbindEvents(){let{graph:t}=this.context;t.off(R.BEFORE_TRANSFORM,this.hideShapes),t.off(R.AFTER_TRANSFORM,this.showShapes)}validate(t){if(this.destroyed)return!1;let{enable:e}=this.options;return(0,td.Z)(e)?e(t):!!e}destroy(){this.unbindEvents(),super.destroy()}constructor(t,e){super(t,Object.assign({},ig.defaultOptions,e)),this.isVisible=!0,this.setElementsVisibility=(t,e,n)=>{t.forEach(t=>{eM(t,e,!1,t=>!t.className||!(null==n?void 0:n.includes(t.className)))})},this.hideShapes=t=>{if(!this.validate(t)||!this.isVisible)return;let{element:e}=this.context,{shapes:n={}}=this.options;this.setElementsVisibility(e.getNodes(),"hidden",n.node),this.setElementsVisibility(e.getEdges(),"hidden",n.edge),this.setElementsVisibility(e.getCombos(),"hidden",n.combo),this.isVisible=!1},this.showShapes=(0,ii.Z)(t=>{if(!this.validate(t)||this.isVisible)return;let{element:e}=this.context;this.setElementsVisibility(e.getNodes(),"visible"),this.setElementsVisibility(e.getEdges(),"visible"),this.setElementsVisibility(e.getCombos(),"visible"),this.isVisible=!0},this.options.debounce),this.bindEvents()}}ig.defaultOptions={enable:!0,debounce:200,shapes:{node:["key"]}};class iy extends tu{update(t){super.update(t),this.bindEvents()}bindEvents(){var t,e;let{trigger:n}=this.options;if(this.shortcut.unbindAll(),(0,Z.Z)(n)){null===(t=this.graphDom)||void 0===t||t.removeEventListener(w.WHEEL,this.onWheel);let{up:e=[],down:i=[],left:r=[],right:a=[]}=n;this.shortcut.bind(e,t=>this.scroll([0,-10],t)),this.shortcut.bind(i,t=>this.scroll([0,10],t)),this.shortcut.bind(r,t=>this.scroll([-10,0],t)),this.shortcut.bind(a,t=>this.scroll([10,0],t))}else null===(e=this.graphDom)||void 0===e||e.addEventListener(w.WHEEL,this.onWheel,{passive:!1})}get graphDom(){return this.context.graph.getCanvas().getContextService().getDomElement()}formatDisplacement(t){let[e,n]=t,{direction:i,sensitivity:r}=this.options;return e*=r,n*=r,"x"===i?n=0:"y"===i&&(e=0),[e,n]}async scroll(t,e){if(!this.validate(e))return;let{onFinish:n}=this.options,i=this.context.graph,r=this.formatDisplacement(t);await i.translateBy(r,!1),null==n||n()}validate(t){if(this.destroyed)return!1;let{enable:e}=this.options;return(0,td.Z)(e)?e(t):!!e}destroy(){var t;this.shortcut.destroy(),null===(t=this.graphDom)||void 0===t||t.removeEventListener(w.WHEEL,this.onWheel),super.destroy()}constructor(t,e){super(t,Object.assign({},iy.defaultOptions,e)),this.onWheel=async t=>{this.options.preventDefault&&t.preventDefault();let e=t.deltaX,n=t.deltaY;await this.scroll([-e,-n],t)},this.shortcut=new t2(t.graph),this.bindEvents()}}iy.defaultOptions={enable:!0,sensitivity:1,preventDefault:!0};var im=n(81957);class iv extends tu{update(t){super.update(t),this.bindEvents()}bindEvents(){let{trigger:t}=this.options;if(this.shortcut.unbindAll(),Array.isArray(t)){var e;null===(e=this.context.canvas.getContainer())||void 0===e||e.addEventListener(w.WHEEL,this.preventDefault),this.shortcut.bind([...t,w.WHEEL],t=>{let{deltaX:e,deltaY:n}=t;this.zoom(-(null!=n?n:e),t,!1)})}if("object"==typeof t){let{zoomIn:e=[],zoomOut:n=[],reset:i=[]}=t;this.shortcut.bind(e,t=>this.zoom(10,t,this.options.animation)),this.shortcut.bind(n,t=>this.zoom(-10,t,this.options.animation)),this.shortcut.bind(i,this.onReset)}}validate(t){if(this.destroyed)return!1;let{enable:e}=this.options;return(0,td.Z)(e)?e(t):!!e}destroy(){var t;this.shortcut.destroy(),null===(t=this.context.canvas.getContainer())||void 0===t||t.removeEventListener(w.WHEEL,this.preventDefault),super.destroy()}constructor(t,e){super(t,Object.assign({},iv.defaultOptions,e)),this.zoom=async(t,e,n)=>{let i;if(!this.validate(e))return;let{graph:r}=this.context;"viewport"in e&&(i=tV(e.viewport));let{sensitivity:a,onFinish:o}=this.options,s=1+(0,im.Z)(t,-50,50)*a/100,l=r.getZoom();await r.zoomTo(l*s,n,i),null==o||o()},this.onReset=async()=>{await this.context.graph.zoomTo(1,this.options.animation)},this.preventDefault=t=>{this.options.preventDefault&&t.preventDefault()},this.shortcut=new t2(t.graph),this.bindEvents()}}iv.defaultOptions={animation:{duration:200},enable:!0,sensitivity:1,trigger:[],preventDefault:!0};var ib=n(81746),ix=n(28104),iE=n(63795),iw=n(39233),iC=n(5192),iS=n(63330),iR=n(51712),iA=n(67753),iO=n(12368),iM=n(89469),iT=n(41733),ik=n(64912),iP=n(29257),iL=n(26629),iD=n(69959);let iN=t=>t?parseInt(t):0;function iI(t){let e=640,n=480,[i,r]=function(t){let e=getComputedStyle(t),n=t.clientWidth||iN(e.width),i=t.clientHeight||iN(e.height),r=iN(e.paddingLeft)+iN(e.paddingRight),a=iN(e.paddingTop)+iN(e.paddingBottom);return[n-r,i-a]}(t);return e=i||e,n=r||n,[Math.max((0,eJ.Z)(e)?e:1,1),Math.max((0,eJ.Z)(n)?n:1,1)]}function iB(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=document.createElement("div");return n.setAttribute("class","g6-".concat(t)),n.style.position="absolute",n.style.display="block",e&&(n.style.inset="0px",n.style.height="100%",n.style.width="100%",n.style.overflow="hidden",n.style.pointerEvents="none"),n}function i_(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"div",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:document.body,a=document.getElementById(t);a&&a.remove();let o=document.createElement(e);return o.innerHTML=i,o.id=t,Object.assign(o.style,n),r.appendChild(o),o}class iF extends tc{}class iZ extends iF{async update(t){super.update(t),Object.assign(this.$element.style,(0,iD.Z)(this.options,["key","type"]))}destroy(){super.destroy(),this.$element.remove()}constructor(t,e){super(t,Object.assign({},iZ.defaultOptions,e)),this.$element=iB("background");let n=this.context.canvas.getContainer();n.prepend(this.$element),this.update(e)}}function ij(t,e,n,i,r,a){let o=n-t,s=i-e,l=r-t,h=a-e,c=l*o+h*s,u=0;u=c<=0?0:(c=(l=o-l)*o+(h=s-h)*s)<=0?0:c*c/(o*o+s*s);let d=l*l+h*h-u;return d<0?0:d}function iz(t,e,n,i){return(t-n)*(t-n)+(e-i)*(e-i)}function iG(t){let e=Math.min(t.x1,t.x2),n=Math.max(t.x1,t.x2),i=Math.min(t.y1,t.y2),r=Math.max(t.y1,t.y2);return{x:e,y:i,x2:n,y2:r,width:n-e,height:r-i}}iZ.defaultOptions={transition:"background 0.5s",backgroundSize:"cover"};class iH{constructor(t,e,n,i){this.x1=t,this.y1=e,this.x2=n,this.y2=i}equals(t){return this.x1===t.x1&&this.y1===t.y1&&this.x2===t.x2&&this.y2===t.y2}draw(t){t.moveTo(this.x1,this.y1),t.lineTo(this.x2,this.y2)}toString(){return`Line(from=(${this.x1},${this.y1}),to=(${this.x2},${this.y2}))`}static from(t){return new iH(t.x1,t.y1,t.x2,t.y2)}cuts(t,e){if(this.y1===this.y2||ethis.y1&&e>=this.y2||t>this.x1&&t>=this.x2)return!1;if(tthis.x2+n)return!1}else if(tthis.x1+n)return!1;if(this.y1this.y2+n)return!1}else if(ethis.y1+n)return!1;return!0}}(g=T||(T={}))[g.POINT=1]="POINT",g[g.PARALLEL=2]="PARALLEL",g[g.COINCIDENT=3]="COINCIDENT",g[g.NONE=4]="NONE";class iW{constructor(t,e=0,n=0){this.state=t,this.x=e,this.y=n}}function iV(t,e){let n=(e.x2-e.x1)*(t.y1-e.y1)-(e.y2-e.y1)*(t.x1-e.x1),i=(t.x2-t.x1)*(t.y1-e.y1)-(t.y2-t.y1)*(t.x1-e.x1),r=(e.y2-e.y1)*(t.x2-t.x1)-(e.x2-e.x1)*(t.y2-t.y1);if(r){let e=n/r,a=i/r;return 0<=e&&e<=1&&0<=a&&a<=1?new iW(T.POINT,t.x1+e*(t.x2-t.x1),t.y1+e*(t.y2-t.y1)):new iW(T.NONE)}return new iW(0===n||0===i?T.COINCIDENT:T.PARALLEL)}function iU(t,e){let n=(e.x2-e.x1)*(t.y1-e.y1)-(e.y2-e.y1)*(t.x1-e.x1),i=(t.x2-t.x1)*(t.y1-e.y1)-(t.y2-t.y1)*(t.x1-e.x1),r=(e.y2-e.y1)*(t.x2-t.x1)-(e.x2-e.x1)*(t.y2-t.y1);if(r){let t=n/r,e=i/r;if(0<=t&&t<=1&&0<=e&&e<=1)return t}return Number.POSITIVE_INFINITY}function iY(t,e,n){let i=new Set;return t.width<=0?(i.add(k.LEFT),i.add(k.RIGHT)):et.x+t.width&&i.add(k.RIGHT),t.height<=0?(i.add(k.TOP),i.add(k.BOTTOM)):nt.y+t.height&&i.add(k.BOTTOM),i}function iK(t,e){let n=e.x1,i=e.y1,r=e.x2,a=e.y2,o=Array.from(iY(t,r,a));if(0===o.length)return!0;let s=iY(t,n,i);for(;0!==s.size;){for(let t of o)if(s.has(t))return!1;if(s.has(k.RIGHT)||s.has(k.LEFT)){let e=t.x;s.has(k.RIGHT)&&(e+=t.width),i+=(e-n)*(a-i)/(r-n),n=e}else{let e=t.y;s.has(k.BOTTOM)&&(e+=t.height),n+=(e-i)*(r-n)/(a-i),i=e}s=iY(t,n,i)}return!0}(y=k||(k={}))[y.LEFT=0]="LEFT",y[y.TOP=1]="TOP",y[y.RIGHT=2]="RIGHT",y[y.BOTTOM=3]="BOTTOM";class i${constructor(t,e,n,i){this.x=t,this.y=e,this.width=n,this.height=i}get x2(){return this.x+this.width}get y2(){return this.y+this.height}get cx(){return this.x+this.width/2}get cy(){return this.y+this.height/2}get radius(){return Math.max(this.width,this.height)/2}static from(t){return new i$(t.x,t.y,t.width,t.height)}equals(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height}clone(){return new i$(this.x,this.y,this.width,this.height)}add(t){let e=Math.min(this.x,t.x),n=Math.min(this.y,t.y),i=Math.max(this.x2,t.x+t.width),r=Math.max(this.y2,t.y+t.height);this.x=e,this.y=n,this.width=i-e,this.height=r-n}addPoint(t){let e=Math.min(this.x,t.x),n=Math.min(this.y,t.y),i=Math.max(this.x2,t.x),r=Math.max(this.y2,t.y);this.x=e,this.y=n,this.width=i-e,this.height=r-n}toString(){return`Rectangle[x=${this.x}, y=${this.y}, w=${this.width}, h=${this.height}]`}draw(t){t.rect(this.x,this.y,this.width,this.height)}containsPt(t,e){return t>=this.x&&t<=this.x2&&e>=this.y&&e<=this.y2}get area(){return this.width*this.height}intersects(t){return!(this.area<=0)&&!(t.width<=0)&&!(t.height<=0)&&t.x+t.width>this.x&&t.y+t.height>this.y&&t.x=this.width?this.width-1:t}boundY(t){return t=this.height?this.height-1:t}scaleX(t){return this.boundX(Math.floor((t-this.pixelX)/this.pixelGroup))}scaleY(t){return this.boundY(Math.floor((t-this.pixelY)/this.pixelGroup))}scale(t){let e=this.scaleX(t.x),n=this.scaleY(t.y),i=this.boundX(Math.ceil((t.x+t.width-this.pixelX)/this.pixelGroup)),r=this.boundY(Math.ceil((t.y+t.height-this.pixelY)/this.pixelGroup)),a=i-e,o=r-n;return new i$(e,n,a,o)}invertScaleX(t){return Math.round(t*this.pixelGroup+this.pixelX)}invertScaleY(t){return Math.round(t*this.pixelGroup+this.pixelY)}addPadding(t,e){let n=Math.ceil(e/this.pixelGroup),i=this.boundX(t.x-n),r=this.boundY(t.y-n),a=this.boundX(t.x2+n),o=this.boundY(t.y2+n),s=a-i,l=o-r;return new i$(i,r,s,l)}get(t,e){return t<0||e<0||t>=this.width||e>=this.height?Number.NaN:this.area[t+e*this.width]}inc(t,e,n){t<0||e<0||t>=this.width||e>=this.height||(this.area[t+e*this.width]+=n)}set(t,e,n){t<0||e<0||t>=this.width||e>=this.height||(this.area[t+e*this.width]=n)}incArea(t,e){if(t.width<=0||t.height<=0||0===e)return;let n=this.width,i=t.width,r=Math.max(0,t.i),a=Math.max(0,t.j),o=Math.min(t.i+t.width,n),s=Math.min(t.j+t.height,this.height);if(!(s<=0)&&!(o<=0)&&!(r>=n)&&!(s>=this.height))for(let l=a;lMath.min(t,e),Number.POSITIVE_INFINITY),i=this.area.reduce((t,e)=>Math.max(t,e),Number.NEGATIVE_INFINITY),r=t=>(t-n)/(i-n);t.scale(this.pixelGroup,this.pixelGroup);for(let e=0;ee?"black":"white",t.fillRect(n,i,1,1)}t.restore()}}}function iQ(t,e){let n=t=>({x:t.x-e,y:t.y-e,width:t.width+2*e,height:t.height+2*e});return Array.isArray(t)?t.map(n):n(t)}function iJ(t,e,n){return i0(Object.assign(iG(t),{distSquare:(e,n)=>ij(t.x1,t.y1,t.x2,t.y2,e,n)}),e,n)}function i0(t,e,n){let i=iQ(t,n),r=e.scale(i),a=e.createSub(r,i);return function(t,e,n,i){let r=n*n;for(let a=0;at.distSquare(e,n)),a}function i1(t,e){return e.some(e=>e.containsPt(t.x,t.y))}function i2(t,e){return e.some(e=>{var n,i,r,a;return n=e.x1,i=e.y1,1e-6>iz(n,i,t.x,t.y)||(r=e.x2,a=e.y2,1e-6>iz(r,a,t.x,t.y))})}function i3(t,e){let n=Number.POSITIVE_INFINITY,i=null;for(let r of t){if(!iK(r,e))continue;let t=function(t,e){let n=Number.POSITIVE_INFINITY,i=0;function r(t,r,a,o){let s=iU(e,new iH(t,r,a,o));(s=Math.abs(s-.5))>=0&&s<=1&&(i++,s1)?n:(r(t.x,t.y2,t.x2,t.y2),i>1)?n:(r(t.x2,t.y,t.x2,t.y2),0===i)?-1:n}(r,e);t>=0&&ts.y?{x:t.x-e,y:t.y-e}:{x:t.x2+e,y:t.y-e}:a.yo.x?{x:t.x-e,y:t.y-e}:{x:t.x-e,y:t.y2+e}:r.xs.y?{x:t.x2+e,y:t.y2+e}:{x:t.x-e,y:t.y2+e}:a.yo.x?{x:t.x2+e,y:t.y2+e}:{x:t.x2+e,y:t.y-e}:r.x=e?this.closed?this.get(t-e):this.points[e-1]:this.points[t]}get length(){return this.points.length}toString(t=1/0){let e=this.points;if(0===e.length)return"";let n="function"==typeof t?t:function(t){if(!Number.isFinite(t))return t=>t;if(0===t)return Math.round;let e=Math.pow(10,t);return t=>Math.round(t*e)/e}(t),i="M";for(let t of e)i+=`${n(t.x)},${n(t.y)} L`;return i=i.slice(0,-1),this.closed&&(i+=" Z"),i}draw(t){let e=this.points;if(0!==e.length){for(let n of(t.beginPath(),t.moveTo(e[0].x,e[0].y),e))t.lineTo(n.x,n.y);this.closed&&t.closePath()}}sample(t){return(function(t=8){return e=>{let n=t,i=e.length;if(n>1)for(i=Math.floor(e.length/n);i<3&&n>1;)n-=1,i=Math.floor(e.length/n);let r=[];for(let t=0,a=0;a{if(t<0||e.length<3)return e;let n=[],i=0,r=t*t;for(;ii)return!1}return!0}(e,i,t,r);)t++;n.push(e.get(i)),i=t}return new i4(n)}})(t)(this)}bSplines(t){return(function(t=6){function e(t,e,n){let i=0,r=0;for(let a=-2;a<=1;a++){let o=t.get(e+a),s=function(t,e){switch(t){case -2:return(((-e+3)*e-3)*e+1)/6;case -1:return((3*e-6)*e*e+4)/6;case 0:return(((-3*e+3)*e+3)*e+1)/6;case 1:return e*e*e/6;default:throw Error("unknown error")}}(a,n);i+=s*o.x,r+=s*o.y}return{x:i,y:r}}return n=>{if(n.length<3)return n;let i=[],r=n.closed,a=n.length+3-1+(r?0:2);i.push(e(n,2-(r?0:2),0));for(let o=2-(r?0:2);oe.containsPt(t.cx,t.cy)&&this.withinArea(t.cx,t.cy))}withinArea(t,e){if(0===this.length)return!1;let n=0,i=this.points[0],r=new iH(i.x,i.y,i.x,i.y);for(let i=1;ii7(e.raw,t));return!(e<0)&&(this.members.splice(e,1),this.dirty.add(P.MEMBERS),!0)}removeNonMember(t){let e=this.nonMembers.findIndex(e=>i7(e.raw,t));return!(e<0)&&(this.nonMembers.splice(e,1),this.dirty.add(P.NON_MEMBERS),!0)}removeEdge(t){let e=this.edges.findIndex(e=>e.obj.equals(t));return!(e<0)&&(this.edges.splice(e,1),this.dirty.add(P.NON_MEMBERS),!0)}pushNonMember(...t){if(0!==t.length)for(let e of(this.dirty.add(P.NON_MEMBERS),t))this.nonMembers.push({raw:e,obj:i5(e)?iX.from(e):i$.from(e),area:null})}pushEdge(...t){if(0!==t.length)for(let e of(this.dirty.add(P.EDGES),t))this.edges.push({raw:e,obj:iH.from(e),area:null})}update(){let t=this.dirty.has(P.MEMBERS),e=this.dirty.has(P.NON_MEMBERS),n=this.dirty.has(P.EDGES);this.dirty.clear();let i=this.members.map(t=>t.obj);if(this.o.virtualEdges&&(t||e)){let t=this.nonMembers.map(t=>t.obj),e=function(t,e,n,i){if(0===t.length)return[];let r=function(t){if(t.length<2)return t;let e=0,n=0;return t.forEach(t=>{e+=t.cx,n+=t.cy}),e/=t.length,n/=t.length,t.map(t=>{let i=e-t.cx,r=n-t.cy;return[t,i*i+r*r]}).sort((t,e)=>t[1]-e[1]).map(t=>t[0])}(t);return r.map((t,a)=>{let o=r.slice(0,a);return function(t,e,n,i,r){let a;let o={x:e.cx,y:e.cy},s=(a=Number.POSITIVE_INFINITY,n.reduce((e,n)=>{let i=iz(o.x,o.y,n.cx,n.cy);if(i>a)return e;let r=new iH(o.x,o.y,n.cx,n.cy),s=t.reduce((t,e)=>iK(e,r)&&function(t,e){function n(t,n,i,r){let a=iU(e,new iH(t,n,i,r));return(a=Math.abs(a-.5))>=0&&a<=1?1:0}let i=n(t.x,t.y,t.x2,t.y);return!!((i+=n(t.x,t.y,t.x,t.y2))>1||(i+=n(t.x,t.y2,t.x2,t.y2))>1)||(i+=n(t.x2,t.y,t.x2,t.y2))>0}(e,r)?t+1:t,0);return i*(s+1)*(s+1)0;){let t=a.pop(),n=i3(e,t),s=n?function(t,e){let n=0,i=iV(t,new iH(e.x,e.y,e.x2,e.y));n+=i.state===T.POINT?1:0;let r=iV(t,new iH(e.x,e.y,e.x,e.y2));n+=r.state===T.POINT?1:0;let a=iV(t,new iH(e.x,e.y2,e.x2,e.y2));n+=a.state===T.POINT?1:0;let o=iV(t,new iH(e.x2,e.y,e.x2,e.y2));return{top:i,left:r,bottom:a,right:o,count:n+=o.state===T.POINT?1:0}}(t,n):null;if(!n||!s||2!==s.count){o||r.push(t);continue}let l=i,h=i6(n,l,s,!0),c=i2(h,a)||i2(h,r),u=i1(h,e);for(;!c&&u&&l>=1;)l/=1.5,c=i2(h=i6(n,l,s,!0),a)||i2(h,r),u=i1(h,e);if(!h||c||u||(a.push(new iH(t.x1,t.y1,h.x,h.y)),a.push(new iH(h.x,h.y,t.x2,t.y2)),o=!0),o)continue;let d=i2(h=i6(n,l=i,s,!1),a)||i2(h,r);for(u=i1(h,e);!d&&u&&l>=1;)l/=1.5,d=i2(h=i6(n,l,s,!1),a)||i2(h,r),u=i1(h,e);h&&!d&&(a.push(new iH(t.x1,t.y1,h.x,h.y)),a.push(new iH(h.x,h.y,t.x2,t.y2)),o=!0),o||r.push(t)}for(;a.length>0;)r.push(a.pop());return r}(l,t,i,r);return function(t,e){let n=[];for(;t.length>0;){let i=t.pop();if(0===t.length){n.push(i);break}let r=t.pop(),a=new iH(i.x1,i.y1,r.x2,r.y2),o=i3(e,a);o?(n.push(i),t.push(r)):t.push(a)}return n}(h,t)}(e,t,o,n,i)}).flat()}(i,t,this.o.maxRoutingIterations,this.o.morphBuffer),r=new Map(this.virtualEdges.map(t=>[t.obj.toString(),t.area]));this.virtualEdges=e.map(t=>{var e;return{raw:t,obj:t,area:null!==(e=r.get(t.toString()))&&void 0!==e?e:null}}),n=!0}let r=!1;if(t||n){let t=this.virtualEdges.concat(this.edges).map(t=>t.obj),e=function(t,e){if(0===t.length)return new i$(0,0,0,0);let n=i$.from(t[0]);for(let e of t)n.add(e);for(let t of e)n.add(iG(t));return n}(i,t),n=Math.max(this.o.edgeR1,this.o.nodeR1)+this.o.morphBuffer,a=i$.from(iQ(e,n));a.equals(this.activeRegion)||(r=!0,this.activeRegion=a)}if(r){let t=Math.ceil(this.activeRegion.width/this.o.pixelGroup),e=Math.ceil(this.activeRegion.height/this.o.pixelGroup);this.activeRegion.x!==this.potentialArea.pixelX||this.activeRegion.y!==this.potentialArea.pixelY?(this.potentialArea=iq.fromPixelRegion(this.activeRegion,this.o.pixelGroup),this.members.forEach(t=>t.area=null),this.nonMembers.forEach(t=>t.area=null),this.edges.forEach(t=>t.area=null),this.virtualEdges.forEach(t=>t.area=null)):(t!==this.potentialArea.width||e!==this.potentialArea.height)&&(this.potentialArea=iq.fromPixelRegion(this.activeRegion,this.o.pixelGroup))}let a=new Map,o=t=>{if(t.area){let e=`${t.obj.width}x${t.obj.height}x${t.obj instanceof i$?"R":"C"}`;a.set(e,t.area)}},s=t=>{if(t.area)return;let e=`${t.obj.width}x${t.obj.height}x${t.obj instanceof i$?"R":"C"}`;if(a.has(e)){let n=a.get(e);t.area=this.potentialArea.copy(n,{x:t.obj.x-this.o.nodeR1,y:t.obj.y-this.o.nodeR1});return}let n=t.obj instanceof i$?function(t,e,n){let i=e.scale(t),r=e.addPadding(i,n),a=e.createSub(r,{x:t.x-n,y:t.y-n}),o=i.x-r.x,s=i.y-r.y,l=r.x2-i.x2,h=r.y2-i.y2,c=r.width-o-l,u=r.height-s-h,d=n*n;a.fillArea({x:o,y:s,width:c+1,height:u+1},d);let p=[0],f=Math.max(s,o,l,h);{let r=e.invertScaleX(i.x+i.width/2);for(let a=1;a{this.activeRegion.intersects(t.obj)?s(t):t.area=null}),this.edges.forEach(t=>{t.area||(t.area=iJ(t.obj,this.potentialArea,this.o.edgeR1))}),this.virtualEdges.forEach(t=>{t.area||(t.area=iJ(t.obj,this.potentialArea,this.o.edgeR1))})}drawMembers(t){for(let e of this.members)e.obj.draw(t)}drawNonMembers(t){for(let e of this.nonMembers)e.obj.draw(t)}drawEdges(t){for(let e of this.edges)e.obj.draw(t)}drawPotentialArea(t,e=!0){this.potentialArea.draw(t,e)}compute(){if(0===this.members.length)return new i4([]);this.dirty.size>0&&this.update();let{o:t,potentialArea:e}=this,n=this.members.map(t=>t.area),i=this.virtualEdges.concat(this.edges).map(t=>t.area),r=this.nonMembers.filter(t=>null!=t.area).map(t=>t.area),a=this.members.map(t=>t.obj);return function(t,e,n,i,r,a={}){let o=Object.assign({},i9,a),s=o.threshold,l=o.memberInfluenceFactor,h=o.edgeInfluenceFactor,c=o.nonMemberInfluenceFactor,u=(o.nodeR0-o.nodeR1)*(o.nodeR0-o.nodeR1),d=(o.edgeR0-o.edgeR1)*(o.edgeR0-o.edgeR1);for(let a=0;ae?r+a:r}function a(t,e){let n=0;return(n=r(t,e,0,1),n=r(t+1,e,n,2),n=r(t,e+1,n,4),Number.isNaN(n=r(t+1,e+1,n,8)))?-1:n}let o=1;for(let n=0;n0)c*=.8;else break}return new i4([])}(e,n,i,r,t=>t.containsElements(a),t)}}class re extends iF{bindEvents(){this.context.graph.on(R.AFTER_RENDER,this.drawBubbleSets),this.context.graph.on(R.AFTER_ELEMENT_UPDATE,this.updateBubbleSetsPath)}init(){this.bubbleSets=new rt(this.options),this.members=new Map,this.avoidMembers=new Map}parseOptions(){let{type:t,key:e,members:n,avoidMembers:i,...r}=this.options,a=Object.keys(r).reduce((t,e)=>(e in i9?t.bubbleSetOptions[e]=r[e]:t.style[e]=r[e],t),{style:{},bubbleSetOptions:{}});return{type:t,key:e,members:n,avoidMembers:i,...a}}addMember(t){let e=Array.isArray(t)?t:[t];e.some(t=>this.options.avoidMembers.includes(t))&&(this.options.avoidMembers=this.options.avoidMembers.filter(t=>!e.includes(t))),this.options.members=[...new Set([...this.options.members,...e])],this.drawBubbleSets()}removeMember(t){let e=Array.isArray(t)?t:[t];this.options.members=this.options.members.filter(t=>!e.includes(t)),this.drawBubbleSets()}updateMember(t){this.options.members=(0,td.Z)(t)?t(this.options.members):t,this.drawBubbleSets()}getMember(){return this.options.members}addAvoidMember(t){let e=Array.isArray(t)?t:[t];e.some(t=>this.options.members.includes(t))&&(this.options.members=this.options.members.filter(t=>!e.includes(t))),this.options.avoidMembers=[...new Set([...this.options.avoidMembers,...e])],this.drawBubbleSets()}removeAvoidMember(t){let e=Array.isArray(t)?t:[t];this.options.avoidMembers.some(t=>e.includes(t))&&(this.options.avoidMembers=this.options.avoidMembers.filter(t=>!e.includes(t)),this.drawBubbleSets())}updateAvoidMember(t){this.options.avoidMembers=Array.isArray(t)?t:[t],this.drawBubbleSets()}getAvoidMember(){return this.options.avoidMembers}destroy(){this.context.graph.off(R.AFTER_RENDER,this.drawBubbleSets),this.context.graph.off(R.AFTER_ELEMENT_UPDATE,this.updateBubbleSetsPath),this.shape.destroy(),super.destroy()}constructor(t,e){super(t,(0,J.Z)({},re.defaultOptions,e)),this.members=new Map,this.avoidMembers=new Map,this.bubbleSetOptions={},this.drawBubbleSets=()=>{let{style:t,bubbleSetOptions:e}=this.parseOptions();(0,F.Z)(this.bubbleSetOptions,e)||this.init(),this.bubbleSetOptions={...e};let n={...t,d:this.getPath()};this.shape?this.shape.update(n):(this.shape=new ez({style:n}),this.context.canvas.appendChild(this.shape))},this.updateBubbleSetsPath=t=>{if(!this.shape)return;let e=tt(t.data);[...this.options.members,...this.options.avoidMembers].includes(e)&&this.shape.update({...this.parseOptions().style,d:this.getPath(e)})},this.getPath=t=>{let{graph:e}=this.context,n=this.options.members,i=[...this.members.keys()],r=this.options.avoidMembers,a=[...this.avoidMembers.keys()];if(!t&&(0,F.Z)(n,i)&&(0,F.Z)(r,a))return this.path;let{enter:o=[],exit:s=[]}=tl(i,n,t=>t),{enter:l=[],exit:h=[]}=tl(a,r,t=>t);t&&(s.push(t),o.push(t));let c=(t,n,i)=>{t.forEach(t=>{let r=i?this.members:this.avoidMembers;if(n){let n;"edge"===e.getElementType(t)?([n]=ri(e,t),this.bubbleSets.pushEdge(n)):([n]=rn(e,t),this.bubbleSets[i?"pushMember":"pushNonMember"](n)),r.set(t,n)}else{let n=r.get(t);n&&("edge"===e.getElementType(t)?this.bubbleSets.removeEdge(n):this.bubbleSets[i?"removeMember":"removeNonMember"](n),r.delete(t))}})};c(s,!1,!0),c(o,!0,!0),c(h,!1,!1),c(l,!0,!1);let u=this.bubbleSets.compute(),d=u.sample(8).simplify(0).bSplines().simplify(0);return this.path=ej(d.points.map(tV)),this.path},this.bindEvents(),this.bubbleSets=new rt(this.options)}}re.defaultOptions={members:[],avoidMembers:[],fill:"lightblue",fillOpacity:.2,stroke:"blue",strokeOpacity:.2,...i9};let rn=(t,e)=>{let n=Array.isArray(e)?e:[e];return n.map(e=>{let n=t.getElementRenderBounds(e);return new i$(n.min[0],n.min[1],tm(n),tv(n))})},ri=(t,e)=>{let n=Array.isArray(e)?e:[e];return n.map(e=>{let n=t.getEdgeData(e),i=t.getElementPosition(n.source),r=t.getElementPosition(n.target);return iH.from({x1:i[0],y1:i[1],x2:r[0],y2:r[1]})})};class rr extends iF{initElement(){this.$element=iB("contextmenu",!1);let{className:t}=this.options;t&&this.$element.classList.add(t);let e=this.context.canvas.getContainer();e.appendChild(this.$element),i_("g6-contextmenu-css","style",{},"\n .g6-contextmenu {\n font-size: 12px;\n background-color: rgba(255, 255, 255, 0.96);\n border-radius: 4px;\n overflow: hidden;\n box-shadow: rgba(0, 0, 0, 0.12) 0px 6px 12px 0px;\n transition: visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1) 0s, left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s;\n }\n\n .g6-contextmenu-ul {\n max-width: 256px;\n min-width: 96px;\n list-style: none;\n padding: 0;\n margin: 0;\n }\n\n .g6-contextmenu-li {\n padding: 8px 12px;\n cursor: pointer;\n user-select: none;\n }\n\n .g6-contextmenu-li:hover {\n background-color: #f5f5f5;\n cursor: pointer;\n }\n",document.head)}async show(t){let{enable:e,offset:n}=this.options;if("function"==typeof e&&!e(t)||!e){this.hide();return}let i=await this.getDOMContent(t);i instanceof HTMLElement?(this.$element.innerHTML="",this.$element.appendChild(i)):this.$element.innerHTML=i;let r=this.context.graph.getCanvas().getContainer().getBoundingClientRect();this.$element.style.left="".concat(t.client.x-r.left+n[0],"px"),this.$element.style.top="".concat(t.client.y-r.top+n[1],"px"),this.$element.style.display="block",this.targetElement=t.target}hide(){this.$element.style.display="none",this.targetElement=null}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}destroy(){this.unbindEvents(),super.destroy(),this.$element.remove()}async getDOMContent(t){let{getContent:e,getItems:n}=this.options;if(n){var i;return i=await n(t),'\n
      \n '.concat(i.map(t=>'
    • ').concat(t.name,"
    • ")).join(""),"\n
    \n ")}return await e(t)}bindEvents(){let{graph:t}=this.context,{trigger:e}=this.options;t.on("canvas:".concat(e),this.onTriggerEvent),t.on("node:".concat(e),this.onTriggerEvent),t.on("edge:".concat(e),this.onTriggerEvent),t.on("combo:".concat(e),this.onTriggerEvent),document.addEventListener("click",this.onMenuItemClick)}unbindEvents(){let{graph:t}=this.context,{trigger:e}=this.options;t.off("canvas:".concat(e),this.onTriggerEvent),t.off("node:".concat(e),this.onTriggerEvent),t.off("edge:".concat(e),this.onTriggerEvent),t.off("combo:".concat(e),this.onTriggerEvent),document.removeEventListener("click",this.onMenuItemClick)}constructor(t,e){super(t,Object.assign({},rr.defaultOptions,e)),this.targetElement=null,this.onTriggerEvent=t=>{var e;null===(e=t.preventDefault)||void 0===e||e.call(t),this.show(t)},this.onMenuItemClick=t=>{let{onClick:e,trigger:n}=this.options;if(t.target instanceof HTMLElement&&t.target.className.includes("g6-contextmenu-li")){let n=t.target.getAttribute("value");null==e||e(n,t.target,this.targetElement),this.hide()}"click"!==n&&this.hide()},this.initElement(),this.update(e)}}rr.defaultOptions={trigger:"contextmenu",offset:[4,4],loadingContent:'
    Loading...
    ',getContent:()=>"It is a empty context menu.",enable:()=>!0};let ra={fill:"#fff",fillOpacity:1,lineWidth:1,stroke:"#000",strokeOpacity:.8};class ro extends iF{get canvas(){return this.context.canvas.getLayer("transient")}get isLensOn(){return this.lens&&!this.lens.destroyed}getElementStyle(t,e){let n="node"===t?this.options.nodeStyle:this.options.edgeStyle;return"function"==typeof n?n(e):n}get graphDom(){return this.context.graph.getCanvas().getContextService().getDomElement()}bindEvents(){let{graph:t}=this.context,{trigger:e,scaleRByWheel:n}=this.options,i=t.getCanvas().getLayer();if(["click","drag"].includes(e)&&i.addEventListener(w.CLICK,this.onEdgeFilter),"pointermove"===e?i.addEventListener(w.POINTER_MOVE,this.onEdgeFilter):"drag"===e&&(i.addEventListener(w.DRAG_START,this.onDragStart),i.addEventListener(w.DRAG,this.onDrag),i.addEventListener(w.DRAG_END,this.onDragEnd)),n){var r;null===(r=this.graphDom)||void 0===r||r.addEventListener(w.WHEEL,this.scaleRByWheel,{passive:!1})}}unbindEvents(){let{graph:t}=this.context,{trigger:e,scaleRByWheel:n}=this.options,i=t.getCanvas().getLayer();if(["click","drag"].includes(e)&&i.removeEventListener(w.CLICK,this.onEdgeFilter),"pointermove"===e?i.removeEventListener(w.POINTER_MOVE,this.onEdgeFilter):"drag"===e&&(i.removeEventListener(w.DRAG_START,this.onDragStart),i.removeEventListener(w.DRAG,this.onDrag),i.removeEventListener(w.DRAG_END,this.onDragEnd)),n){var r;null===(r=this.graphDom)||void 0===r||r.removeEventListener(w.WHEEL,this.scaleRByWheel)}}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}destroy(){this.unbindEvents(),this.isLensOn&&this.lens.destroy(),this.shapes.forEach((t,e)=>{t.destroy(),this.shapes.delete(e)}),super.destroy()}constructor(t,e){super(t,Object.assign({},ro.defaultOptions,e)),this.shapes=new Map,this.r=this.options.r,this.onEdgeFilter=t=>{if("drag"===this.options.trigger&&this.isLensOn)return;let e=tV(t.canvas);this.renderLens(e),this.renderFocusElements()},this.renderLens=t=>{let[e,n]=t,i={size:2*this.r,x:e,y:n};if(this.isLensOn)this.lens.update(i);else{let t=Object.assign({},ra,this.options.style,i);this.lens=new eq({style:t})}this.canvas.appendChild(this.lens)},this.getFilterData=()=>{let{filter:t}=this.options,{model:e}=this.context,n=e.getData();if(!t)return n;let{nodes:i,edges:r,combos:a}=n;return{nodes:i.filter(e=>t(tt(e),"node")),edges:r.filter(e=>t(tt(e),"edge")),combos:a.filter(e=>t(tt(e),"combo"))}},this.getFocusElements=t=>{let{nodes:e,edges:n}=this.getFilterData(),i=e.filter(e=>tD(tH(e),t)tt(t)),a=n.filter(t=>{let{source:e,target:n}=t,i=r.includes(e),a=r.includes(n);switch(this.options.nodeType){case"both":return i&&a;case"either":return i!==a;case"source":return i&&!a;case"target":return!i&&a;default:return!1}});return{nodes:i,edges:a}},this.renderFocusElements=()=>{let{element:t,graph:e}=this.context;if(!this.isLensOn)return;let n=this.lens.getCenter(),{nodes:i,edges:r}=this.getFocusElements(n),a=new Set,{nodeStyle:o,edgeStyle:s}=this.options,l=n=>{let i=tt(n);a.add(i);let r=t.getElement(i);if(!r)return;let o=this.shapes.get(i)||r.cloneNode();o.setPosition(r.getPosition()),o.id=r.id,this.shapes.has(i)?Object.entries(r.attributes).forEach(t=>{let[e,n]=t;o.style[e]!==n&&(o.style[e]=n)}):(this.canvas.appendChild(o),this.shapes.set(i,o));let s=e.getElementType(i),l=this.getElementStyle(s,n);o.update(l)};i.forEach(l),r.forEach(l),this.shapes.forEach((t,e)=>{a.has(e)||(t.destroy(),this.shapes.delete(e))})},this.scaleRByWheel=t=>{var e;this.options.preventDefault&&t.preventDefault();let{clientX:n,clientY:i,deltaX:r,deltaY:a}=t,{graph:o,canvas:s}=this.context,l=o.getCanvasByClient([n,i]),h=null===(e=this.lens)||void 0===e?void 0:e.getCenter();if(!this.isLensOn||tD(l,h)>this.r)return;let{maxR:c,minR:u}=this.options,d=Math.min(...s.getSize())/2;this.r=Math.max(u||0,Math.min(c||d,this.r*(r+a>0?1/.95:.95))),this.renderLens(h),this.renderFocusElements()},this.isLensDragging=!1,this.onDragStart=t=>{var e;let n=tV(t.canvas),i=null===(e=this.lens)||void 0===e?void 0:e.getCenter();!this.isLensOn||tD(n,i)>this.r||(this.isLensDragging=!0)},this.onDrag=t=>{if(!this.isLensDragging)return;let e=tV(t.canvas);this.renderLens(e),this.renderFocusElements()},this.onDragEnd=()=>{this.isLensDragging=!1},this.bindEvents()}}ro.defaultOptions={trigger:"pointermove",r:60,nodeType:"both",filter:()=>!0,style:{lineWidth:2},nodeStyle:{label:!1},edgeStyle:{label:!0},scaleRByWheel:!0,preventDefault:!0};class rs extends iF{bindEvents(){this.unbindEvents(),this.shortcut.unbindAll();let{request:t=[],exit:e=[]}=this.options.trigger;this.shortcut.bind(t,this.request),this.shortcut.bind(e,this.exit),["webkitfullscreenchange","mozfullscreenchange","fullscreenchange","MSFullscreenChange"].forEach(t=>{document.addEventListener(t,this.onFullscreenChange,!1)})}unbindEvents(){this.shortcut.unbindAll(),["webkitfullscreenchange","mozfullscreenchange","fullscreenchange","MSFullscreenChange"].forEach(t=>{document.removeEventListener(t,this.onFullscreenChange,!1)})}setGraphSize(){let t,e,n=!(arguments.length>0)||void 0===arguments[0]||arguments[0];n?(t=window.screen.width,e=window.screen.height,this.graphSize=this.context.graph.getSize()):[t,e]=this.graphSize,this.context.graph.setSize(t,e),this.context.graph.render()}request(){!document.fullscreenElement&&(document.fullscreenEnabled||Reflect.get(document,"webkitFullscreenEnabled")||Reflect.get(document,"mozFullscreenEnabled")||Reflect.get(document,"msFullscreenEnabled"))&&this.$el.requestFullscreen().catch(t=>{Y.warn("Error attempting to enable full-screen: ".concat(t.message," (").concat(t.name,")"))})}exit(){document.fullscreenElement&&document.exitFullscreen()}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}destroy(){this.exit(),this.style.remove(),super.destroy()}constructor(t,e){super(t,Object.assign({},rs.defaultOptions,e)),this.$el=this.context.canvas.getContainer(),this.graphSize=[0,0],this.onFullscreenChange=()=>{var t,e,n,i;let r=!!document.fullscreenElement;this.options.autoFit&&this.setGraphSize(r),r?null===(e=(t=this.options).onEnter)||void 0===e||e.call(t):null===(i=(n=this.options).onExit)||void 0===i||i.call(n)},this.shortcut=new t2(t.graph),this.bindEvents(),this.style=document.createElement("style"),document.head.appendChild(this.style),this.style.innerHTML="\n :not(:root):fullscreen::backdrop {\n background: transparent;\n }\n "}}rs.defaultOptions={trigger:{},autoFit:!0};class rl extends iF{update(t){super.update(t),this.updateStyle()}bindEvents(){let{graph:t}=this.context;t.on(R.AFTER_TRANSFORM,this.onTransform)}updateStyle(){let{size:t,stroke:e,lineWidth:n,border:i,borderLineWidth:r,borderStroke:a,borderStyle:o}=this.options;Object.assign(this.$element.style,{border:i?"".concat(r,"px ").concat(o," ").concat(a):"none",backgroundImage:"linear-gradient(".concat(e," ").concat(n,"px, transparent ").concat(n,"px), linear-gradient(90deg, ").concat(e," ").concat(n,"px, transparent ").concat(n,"px)"),backgroundSize:"".concat(t,"px ").concat(t,"px")})}updateOffset(t){var e,n;this.offset=(e=tM(this.offset,t),n=this.options.size,e.map(t=>t%n)),this.$element.style.backgroundPosition="".concat(this.offset[0],"px ").concat(this.offset[1],"px")}destroy(){this.context.graph.off(R.AFTER_TRANSFORM,this.onTransform),this.$element.remove(),super.destroy()}constructor(t,e){super(t,Object.assign({},rl.defaultOptions,e)),this.$element=iB("grid-line"),this.offset=[0,0],this.onTransform=t=>{if(!this.options.follow)return;let{data:{translate:e}}=t;e&&this.updateOffset(e)};let n=this.context.canvas.getContainer();!function(t,e){let n=t.firstChild;n?t.insertBefore(e,n):t.appendChild(e)}(n,this.$element),this.updateStyle(),this.bindEvents()}}rl.defaultOptions={border:!0,borderLineWidth:1,borderStroke:"#eee",borderStyle:"solid",lineWidth:1,size:20,stroke:"#eee"};var rh=n(90494);function rc(t){let e={Added:new Map,Updated:new Map,Removed:new Map};return t.forEach(t=>{let{type:n,value:i}=t,r=tt(i);if("NodeAdded"===n||"EdgeAdded"===n||"ComboAdded"===n)e.Added.set(r,t);else if("NodeUpdated"===n||"EdgeUpdated"===n||"ComboUpdated"===n){if(e.Added.has(r))e.Added.set(r,{type:n.replace("Updated","Added"),value:i});else if(e.Updated.has(r)){let{original:t}=e.Updated.get(r);e.Updated.set(r,{type:n,value:i,original:t})}else e.Removed.has(r)||e.Updated.set(r,t)}else("NodeRemoved"===n||"EdgeRemoved"===n||"ComboRemoved"===n)&&(e.Added.has(r)?e.Added.delete(r):(e.Updated.has(r)&&e.Updated.delete(r),e.Removed.set(r,t)))}),[...Array.from(e.Added.values()),...Array.from(e.Updated.values()),...Array.from(e.Removed.values())]}function ru(t){let{NodeAdded:e=[],NodeUpdated:n=[],NodeRemoved:i=[],EdgeAdded:r=[],EdgeUpdated:a=[],EdgeRemoved:o=[],ComboAdded:s=[],ComboUpdated:l=[],ComboRemoved:h=[]}=ew(t,t=>t.type);return{add:{nodes:e,edges:r,combos:s},update:{nodes:n,edges:a,combos:l},remove:{nodes:i,edges:o,combos:h}}}class rd extends iF{canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}undo(){let t=this.undoStack.pop();if(t){var e,n,i,r;this.executeCommand(t);let a=null===(n=(e=this.options).beforeAddCommand)||void 0===n?void 0:n.call(e,t,!1);if(!1===a)return;this.redoStack.push(t),null===(r=(i=this.options).afterAddCommand)||void 0===r||r.call(i,t,!1),this.notify(A.UNDO,t)}return this}redo(){let t=this.redoStack.pop();return t&&(this.executeCommand(t,!1),this.undoStackPush(t),this.notify(A.REDO,t)),this}undoAndCancel(){let t=this.undoStack.pop();return t&&(this.executeCommand(t,!1),this.redoStack=[],this.notify(A.CANCEL,t)),this}undoStackPush(t){var e,n,i,r;let{stackSize:a}=this.options;0!==a&&this.undoStack.length>=a&&this.undoStack.shift();let o=null===(n=(e=this.options).beforeAddCommand)||void 0===n?void 0:n.call(e,t,!0);!1!==o&&(this.undoStack.push(t),null===(r=(i=this.options).afterAddCommand)||void 0===r||r.call(i,t,!0))}clear(){this.undoStack=[],this.redoStack=[],this.batchChanges=null,this.batchAnimation=!1,this.notify(A.CLEAR,null)}notify(t,e){this.emitter.emit(t,{cmd:e}),this.emitter.emit(A.CHANGE,{cmd:e})}on(t,e){this.emitter.on(t,e)}destroy(){let{graph:t}=this.context;t.off(R.AFTER_DRAW,this.addCommand),t.off(R.BATCH_START,this.initBatchCommand),t.off(R.BATCH_END,this.addCommand),this.emitter.off(),super.destroy(),this.undoStack=[],this.redoStack=[]}constructor(t,e){var n;super(t,Object.assign({},rd.defaultOptions,e)),n=this,this.batchChanges=null,this.batchAnimation=!1,this.undoStack=[],this.redoStack=[],this.freezed=!1,this.executeCommand=function(t){var e,i,r;let a=!(arguments.length>1)||void 0===arguments[1]||arguments[1];n.freezed=!0,null===(i=(e=n.options).executeCommand)||void 0===i||i.call(e,t);let o=a?t.original:t.current;n.context.graph.addData(o.add),n.context.graph.updateData(o.update),n.context.graph.removeData(te(o.remove,!1)),null===(r=n.context.element)||void 0===r||r.draw({silence:!0,animation:t.animation}),n.freezed=!1},this.addCommand=t=>{if(!this.freezed){if(t.type===R.AFTER_DRAW){var e;let{dataChanges:n=[],animation:i=!0}=t.data;if(null===(e=this.context.batch)||void 0===e?void 0:e.isBatching){if(!this.batchChanges)return;this.batchChanges.push(n),this.batchAnimation&&(this.batchAnimation=i);return}this.batchChanges=[n],this.batchAnimation=i}this.undoStackPush(function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,i={animation:e,current:{add:{},update:{},remove:{}},original:{add:{},update:{},remove:{}}},{add:r,update:a,remove:o}=ru(rc(t));return["nodes","edges","combos"].forEach(t=>{a[t]&&a[t].forEach(e=>{var r,a;let o={...e.value},s={...e.original};if(n){let t=n.graph.getElementType(tt(e.original)),i="edge"===t?"stroke":"fill",r=n.element.getElementComputedStyle(t,e.original);s={...e.original,style:{[i]:r[i],...e.original.style}}}(function t(e,n){for(let i in e)(0,Z.Z)(e[i])&&!Array.isArray(e[i])&&null!==e[i]?(n[i]||(n[i]={}),t(e[i],n[i])):void 0===n[i]&&(n[i]=q(i))})(o,s),(r=i.current.update)[t]||(r[t]=[]),i.current.update[t].push(o),(a=i.original.update)[t]||(a[t]=[]),i.original.update[t].push(s)}),r[t]&&r[t].forEach(e=>{var n,r;let a={...e.value};(n=i.current.add)[t]||(n[t]=[]),i.current.add[t].push(a),(r=i.original.remove)[t]||(r[t]=[]),i.original.remove[t].push(a)}),o[t]&&o[t].forEach(e=>{var n,r;let a={...e.value};(n=i.current.remove)[t]||(n[t]=[]),i.current.remove[t].push(a),(r=i.original.add)[t]||(r[t]=[]),i.original.add[t].push(a)})}),i}(this.batchChanges.flat(),this.batchAnimation,this.context)),this.notify(A.ADD,this.undoStack[this.undoStack.length-1])}},this.initBatchCommand=t=>{let{initiate:e}=t.data;if(this.batchAnimation=!1,e)this.batchChanges=[];else{let t=this.undoStack.pop();t||(this.batchChanges=null)}},this.emitter=new rh.Z;let{graph:i}=this.context;i.on(R.AFTER_DRAW,this.addCommand),i.on(R.BATCH_START,this.initBatchCommand),i.on(R.BATCH_END,this.addCommand)}}rd.defaultOptions={stackSize:0};var rp=n(1344),rf=n.n(rp);let rg=(t,e,n)=>{if("sharp"===n)return[["M",t[0]-e,t[1]-e],["L",t[0]+e,t[1]-e],["L",t[0]+e,t[1]+e],["L",t[0]-e,t[1]+e],["Z"]];let i=[e,e,0,0,0];return[["M",t[0],t[1]-e],["A",...i,t[0],t[1]+e],["A",...i,t[0],t[1]-e]]},ry=(t,e,n)=>{let i=[e,e,0,0,0],r="sharp"===n?tM(t[0],tL(tI(tT(t[0],t[1])),e)):t[0],a="sharp"===n?tM(t[1],tL(tI(tT(t[1],t[0])),e)):t[1],o=tL(tI(t_(tT(r,a),!1)),e),s=tL(o,-1),l=tM(r,o),h=tM(a,o),c=tM(a,s),u=tM(r,s);return"sharp"===n?[["M",l[0],l[1]],["L",h[0],h[1]],["L",c[0],c[1]],["L",u[0],u[1]],["Z"]]:[["M",l[0],l[1]],["L",h[0],h[1]],["A",...i,c[0],c[1]],["L",u[0],u[1]],["A",...i,l[0],l[1]]]},rm=(t,e)=>{let n=tQ(t).map((n,i)=>{let r=(i-2+t.length)%t.length,a=(i-1+t.length)%t.length,o=(i+1)%t.length,s=t[r],l=t[a],h=t[o],c=tT(s,l),u=tT(l,n),d=tT(n,h),p=(t,e)=>tB(t,e,!0)tL(tI(t_(t,!1)),e),m=y(u);return[{p:tF(f?tM(l,y(c)):tM(l,m)),concave:f&&l},{p:tF(g?tM(n,y(d)):tM(n,m)),concave:g&&n}]}),i=[e,e,0,0,0],r=n.findIndex((t,e)=>!n[(e-1+n.length)%n.length][0].concave&&!n[(e-1+n.length)%n.length][1].concave&&!t[0].concave&&!t[0].concave&&!t[1].concave),a=n.slice(r).concat(n.slice(0,r)),o=[];return a.flatMap((t,e)=>{let r=[],s=a[n.length-1];return 0===e&&r.push(["M",...s[1].p]),t[0].concave?o.push(t[0].p,t[1].p):r.push(["A",...i,...t[0].p]),t[1].concave?o.unshift(t[1].p):r.push(["L",...t[1].p]),3===o.length&&(r.pop(),r.push(["C",...o.flat()]),o=[]),r})},rv=(t,e)=>{let n=tQ(t).map((e,n)=>{let i=t[(n+1)%t.length];return{p:e,v:tI(tT(i,e))}});return n.forEach((i,r)=>{let a=r>0?r-1:t.length-1,o=n[a].v,s=tI(tM(o,tL(i.v,tB(o,i.v,!0)t.p))},rb=(t,e)=>{let n=t.map((n,i)=>{let r=t[0===i?t.length-1:i-1],a=tZ(tL(tI(t_(tT(r,n),!1)),e));return[tM(r,a),tM(n,a)]}),i=n.flat(),r=i.map((t,e)=>{if(e%2==0)return null;let n=[i[(e-1)%i.length],i[e%i.length]],r=[i[(e+1)%i.length],i[(e+2)%i.length]];return tz(n,r,!0)}).filter(Boolean);return r.map((t,e)=>[0===e?"M":"L",t[0],t[1]]).concat([["Z"]])};class rx extends iF{bindEvents(){this.context.graph.on(R.AFTER_RENDER,this.drawHull),this.context.graph.on(R.AFTER_ELEMENT_UPDATE,this.updateHullPath)}getHullStyle(t){let{members:e,padding:n,corner:i,...r}=this.options;return{...r,d:this.getHullPath(t)}}getPadding(){let{graph:t}=this.context,e=this.hullMemberIds.reduce((e,n)=>{let{halfExtents:i}=t.getElementRenderBounds(n),r=Math.max(i[0],i[1]);return Math.max(e,r)},0);return e+this.options.padding}addMember(t){let e=Array.isArray(t)?t:[t];this.options.members=[...new Set([...this.options.members,...e])],this.shape.update({d:this.getHullPath()})}removeMember(t){let e=Array.isArray(t)?t:[t];this.options.members=this.options.members.filter(t=>!e.includes(t)),e.some(t=>this.hullMemberIds.includes(t))&&this.shape.update({d:this.getHullPath()})}updateMember(t){this.options.members=(0,td.Z)(t)?t(this.options.members):t,this.shape.update(this.getHullStyle(!0))}getMember(){return this.options.members}destroy(){this.context.graph.off(R.AFTER_DRAW,this.drawHull),this.shape.destroy(),this.hullMemberIds=[],super.destroy()}constructor(t,e){var n;super(t,Object.assign({},rx.defaultOptions,e)),n=this,this.hullMemberIds=[],this.drawHull=()=>{if(this.shape){let t=!(0,F.Z)(this.optionsCache,this.options);this.shape.update(this.getHullStyle(t))}else this.shape=new ez({style:this.getHullStyle()}),this.context.canvas.appendChild(this.shape);this.optionsCache={...this.options}},this.updateHullPath=t=>{this.shape&&this.options.members.includes(tt(t.data))&&this.shape.update({d:this.getHullPath(!0)})},this.getHullPath=function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],{graph:e}=n.context,i=n.getMember();if(0===i.length)return"";let r=i.map(t=>e.getNodeData(t)),a=rf()(r.map(tH),n.options.concavity).slice(1).reverse(),o=a.flatMap(t=>r.filter(e=>(0,F.Z)(tH(e),t)).map(tt));return(0,F.Z)(o,n.hullMemberIds)&&!t||(n.hullMemberIds=o,n.path=function(t,e,n){if(1===t.length)return rg(t[0],e,n);if(2===t.length)return ry(t,e,n);switch(n){case"smooth":return rv(t,e);case"sharp":return rb(t,e);default:return rm(t,e)}}(a,n.getPadding(),n.options.corner)),n.path},this.bindEvents()}}rx.defaultOptions={members:[],padding:10,corner:"rounded",concavity:1/0,fill:"lightblue",fillOpacity:.2,labelOpacity:1,stroke:"blue",strokeOpacity:.2};var rE=n(97582),rw=function(){function t(t,e,n,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),this.x=0,this.y=0,this.width=0,this.height=0,this.x=t,this.y=e,this.width=n,this.height=i}return Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t.prototype.toJSON=function(){return{x:this.x,y:this.y,width:this.width,height:this.height,top:this.top,right:this.right,bottom:this.bottom,left:this.left}},t.prototype.isPointIn=function(t,e){return t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom},t}();function rC(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,a=0;ai&&(i=d),p>r&&(r=p)}return new rw(e,n,i-e,r-n)}var rS=function(t,e,n){var i=t.width,r=t.height,a=n.flexDirection,o=void 0===a?"row":a,s=(n.flexWrap,n.justifyContent),l=void 0===s?"flex-start":s,h=(n.alignContent,n.alignItems),c=void 0===h?"flex-start":h,u="row"===o,d="row"===o||"column"===o,p=u?d?[1,0]:[-1,0]:d?[0,1]:[0,-1],f=(0,rE.CR)([0,0],2),g=f[0],y=f[1],m=e.map(function(t){var e,n=t.width,i=t.height,r=(0,rE.CR)([g,y],2),a=r[0],o=r[1];return g=(e=(0,rE.CR)([g+n*p[0],y+i*p[1]],2))[0],y=e[1],new rw(a,o,n,i)}),v=rC(m),b={"flex-start":0,"flex-end":u?i-v.width:r-v.height,center:u?(i-v.width)/2:(r-v.height)/2},x=m.map(function(t){var e=t.x,n=t.y,i=rw.fromRect(t);return i.x=u?e+b[l]:e,i.y=u?n:n+b[l],i});rC(x);var E=function(t){var e=(0,rE.CR)(u?["height",r]:["width",i],2),n=e[0],a=e[1];switch(c){case"flex-start":default:return 0;case"flex-end":return a-t[n];case"center":return a/2-t[n]/2}};return x.map(function(t){var e=t.x,n=t.y,i=rw.fromRect(t);return i.x=u?e:e+E(i),i.y=u?n+E(i):n,i}).map(function(e){var n,i,r=rw.fromRect(e);return r.x+=null!==(n=t.x)&&void 0!==n?n:0,r.y+=null!==(i=t.y)&&void 0!==i?i:0,r})},rR=function(t,e,n){return[]},rA=function(t,e,n){if(0===e.length)return[];var i={flex:rS,grid:rR},r=n.display in i?i[n.display]:null;return(null==r?void 0:r.call(null,t,e,n))||[]};function rO(t){if((0,eJ.Z)(t))return[t,t,t,t];if((0,ex.Z)(t)){var e=t.length;if(1===e)return[t[0],t[0],t[0],t[0]];if(2===e)return[t[0],t[1],t[0],t[1]];if(3===e)return[t[0],t[1],t[2],t[1]];if(4===e)return t}return[0,0,0,0]}var rM=function(t){function e(e){var n=t.call(this,e)||this;n.layoutEvents=[I.Dk.BOUNDS_CHANGED,I.Dk.INSERTED,I.Dk.REMOVED],n.$margin=rO(0),n.$padding=rO(0);var i=e.style||{},r=i.margin,a=i.padding;return n.margin=void 0===r?0:r,n.padding=void 0===a?0:a,n.isMutationObserved=!0,n.bindEvents(),n}return(0,rE.ZT)(e,t),Object.defineProperty(e.prototype,"margin",{get:function(){return this.$margin},set:function(t){this.$margin=rO(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this.$padding},set:function(t){this.$padding=rO(t)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var t=this.attributes,e=t.x,n=void 0===e?0:e,i=t.y,r=void 0===i?0:i,a=t.width,o=t.height,s=(0,rE.CR)(this.$margin,4),l=s[0],h=s[1],c=s[2],u=s[3];return new rw(n-u,r-l,a+u+h,o+l+c)},e.prototype.appendChild=function(e,n){return e.isMutationObserved=!0,t.prototype.appendChild.call(this,e,n),e},e.prototype.getAvailableSpace=function(){var t=this.attributes,e=t.width,n=t.height,i=(0,rE.CR)(this.$padding,4),r=i[0],a=i[1],o=i[2],s=i[3],l=(0,rE.CR)(this.$margin,4),h=l[0],c=l[3];return new rw(s+c,r+h,e-s-a,n-r-o)},e.prototype.layout=function(){if(this.attributes.display&&this.isConnected&&!this.children.some(function(t){return!t.isConnected}))try{var t=this.attributes,e=t.x,n=t.y;this.style.transform="translate(".concat(e,", ").concat(n,")");var i=rA(this.getAvailableSpace(),this.children.map(function(t){return t.getBBox()}),this.attributes);this.children.forEach(function(t,e){var n=i[e],r=n.x,a=n.y;t.style.transform="translate(".concat(r,", ").concat(a,")")})}catch(t){}},e.prototype.bindEvents=function(){var t=this;this.layoutEvents.forEach(function(e){t.addEventListener(e,function(e){e.target.isMutationObserved=!0,t.layout()})})},e.prototype.attributeChangedCallback=function(t,e,n){"margin"===t?this.margin=n:"padding"===t&&(this.padding=n),this.layout()},e}(I.ZA);function rT(t){rP(t,!0)}function rk(t){rP(t,!1)}function rP(t,e){var n=e?"visible":"hidden";!function t(e,n){n(e),e.children&&e.children.forEach(function(e){e&&t(e,n)})}(t,function(t){t.attr("visibility",n)})}var rL=n(83845),rD=function(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=5),Object.entries(e).forEach(function(r){var a=(0,rE.CR)(r,2),o=a[0],s=a[1];Object.prototype.hasOwnProperty.call(e,o)&&(s?(0,rL.Z)(s)?((0,rL.Z)(t[o])||(t[o]={}),n="A"&&n<="Z"};function rG(t,e,n){void 0===n&&(n=!1);var i={};return Object.entries(t).forEach(function(t){var r=(0,rE.CR)(t,2),a=r[0],o=r[1];if("className"===a||"class"===a);else if(rz(a,"show")&&rz(rj(a,"show"),e)!==n)a==="".concat("show").concat(rZ(e))?i[a]=o:i[a.replace(new RegExp(rZ(e)),"")]=o;else if(!rz(a,"show")&&rz(a,e)!==n){var s=rj(a,e);"filter"===s&&"function"==typeof o||(i[s]=o)}}),i}function rH(t,e){return Object.entries(t).reduce(function(t,n){var i=(0,rE.CR)(n,2),r=i[0],a=i[1];return r.startsWith("show")?t["show".concat(e).concat(r.slice(4))]=a:t["".concat(e).concat(rZ(r))]=a,t},{})}function rW(t,e){void 0===e&&(e=["x","y","class","className"]);var n=["transform","transformOrigin","anchor","visibility","pointerEvents","zIndex","cursor","clipPath","clipPathTargets","offsetPath","offsetPathTargets","offsetDistance","draggable","droppable"],i={},r={};return Object.entries(t).forEach(function(t){var a=(0,rE.CR)(t,2),o=a[0],s=a[1];e.includes(o)||(-1!==n.indexOf(o)?r[o]=s:i[o]=s)}),[i,r]}var rV=function(t){function e(e){void 0===e&&(e={});var n=e.style,i=(0,rE._T)(e,["style"]);return t.call(this,(0,rE.pi)({style:(0,rE.pi)({text:"",fill:"black",fontFamily:"sans-serif",fontSize:16,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",lineWidth:1,textAlign:"start",textBaseline:"middle"},n)},i))||this}return(0,rE.ZT)(e,t),Object.defineProperty(e.prototype,"offscreenGroup",{get:function(){return this._offscreen||(this._offscreen=rB(this)),this._offscreen},enumerable:!1,configurable:!0}),e.prototype.disconnectedCallback=function(){var t;null===(t=this._offscreen)||void 0===t||t.destroy()},e}(I.xv),rU=function(){var t,e,n;function i(e,n,i,r,a,o,s){void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=null),void 0===r&&(r=null),void 0===a&&(a=[null,null,null,null,null]),void 0===o&&(o=[]),void 0===s&&(s=[]),t.add(this),this._elements=Array.from(e),this._data=n,this._parent=i,this._document=r,this._enter=a[0],this._update=a[1],this._exit=a[2],this._merge=a[3],this._split=a[4],this._transitions=o,this._facetElements=s}return i.prototype.selectAll=function(t){var n="string"==typeof t?this._parent.querySelectorAll(t):t;return new e(n,null,this._elements[0],this._document)},i.prototype.selectFacetAll=function(t){var n="string"==typeof t?this._parent.querySelectorAll(t):t;return new e(this._elements,null,this._parent,this._document,void 0,void 0,n)},i.prototype.select=function(t){var n="string"==typeof t?this._parent.querySelectorAll(t)[0]||null:t;return new e([n],null,n,this._document)},i.prototype.append=function(t){var n=this,i="function"==typeof t?t:function(){return n.createElement(t)},r=[];if(null!==this._data){for(var a=0;a2?[t[0]]:t.split("")}function rQ(t,e){var n=Object.entries(e).reduce(function(e,n){var i=(0,rE.CR)(n,2),r=i[0],a=i[1];return t.node().attr(r)||(e[r]=a),e},{});t.styles(n)}var rJ=function(t){function e(e){return t.call(this,e,{text:"",width:0,height:0,fill:"#4a505a",fontWeight:"bold",fontSize:12,fontFamily:"sans-serif",inset:0,spacing:0,position:"top-left"})||this}return(0,rE.ZT)(e,t),e.prototype.getAvailableSpace=function(){var t=this.attributes,e=t.width,n=t.height,i=t.position,r=t.spacing,a=t.inset,o=this.querySelector(rX.text.class);if(!o)return new rw(0,0,+e,+n);var s=o.getBBox(),l=s.width,h=s.height,c=(0,rE.CR)(rO(r),4),u=c[0],d=c[1],p=c[2],f=c[3],g=(0,rE.CR)([0,0,+e,+n],4),y=g[0],m=g[1],v=g[2],b=g[3],x=rq(i);if(x.includes("i"))return new rw(y,m,v,b);x.forEach(function(t,i){var r,a;"t"===t&&(m=(r=(0,rE.CR)(0===i?[h+p,+n-h-p]:[0,+n],2))[0],b=r[1]),"r"===t&&(v=(0,rE.CR)([+e-l-f],1)[0]),"b"===t&&(b=(0,rE.CR)([+n-h-u],1)[0]),"l"===t&&(y=(a=(0,rE.CR)(0===i?[l+d,+e-l-d]:[0,+e],2))[0],v=a[1])});var E=(0,rE.CR)(rO(a),4),w=E[0],C=E[1],S=E[2],R=E[3],A=(0,rE.CR)([R+C,w+S],2),O=A[0],M=A[1];return new rw(y+R,m+w,v-O,b-M)},e.prototype.getBBox=function(){return this.title?this.title.getBBox():new rw(0,0,0,0)},e.prototype.render=function(t,e){var n,i,r,a,o,s,l,h,c,u,d,p,f,g,y,m,v=this;t.width,t.height,t.position,t.spacing;var b=(0,rE._T)(t,["width","height","position","spacing"]),x=(0,rE.CR)(rW(b),1)[0],E=(o=t.width,s=t.height,l=t.position,c=(h=(0,rE.CR)([+o/2,+s/2],2))[0],u=h[1],p=(d=(0,rE.CR)([+c,+u,"center","middle"],4))[0],f=d[1],g=d[2],y=d[3],(m=rq(l)).includes("l")&&(p=(n=(0,rE.CR)([0,"start"],2))[0],g=n[1]),m.includes("r")&&(p=(i=(0,rE.CR)([+o,"end"],2))[0],g=i[1]),m.includes("t")&&(f=(r=(0,rE.CR)([0,"top"],2))[0],y=r[1]),m.includes("b")&&(f=(a=(0,rE.CR)([+s,"bottom"],2))[0],y=a[1]),{x:p,y:f,textAlign:g,textBaseline:y}),w=E.x,C=E.y,S=E.textAlign,R=E.textBaseline;r$(!!b.text,rY(e),function(t){v.title=t.maybeAppendByClassName(rX.text,"text").styles(x).call(rQ,{x:w,y:C,textAlign:S,textBaseline:R}).node()})},e}(rF),r0=n(13279);function r1(t,e){return(0,td.Z)(t)?t.apply(void 0,(0,rE.ev)([],(0,rE.CR)(e),!1)):t}function r2(t){if(!t)return{enter:!1,update:!1,exit:!1};var e=["enter","update","exit"],n=Object.fromEntries(Object.entries(t).filter(function(t){var n=(0,rE.CR)(t,1)[0];return!e.includes(n)}));return Object.fromEntries(e.map(function(e){return"boolean"!=typeof t&&"enter"in t&&"update"in t&&"exit"in t?!1===t[e]?[e,!1]:[e,(0,rE.pi)((0,rE.pi)({},t[e]),n)]:[e,n]}))}function r3(t,e){t?t.finished.then(e):e()}function r6(t,e){"update"in t?t.update(e):t.attr(e)}function r4(t,e,n){return 0===e.length?null:n?t.animate(e,n):(r6(t,{style:e.slice(-1)[0]}),null)}function r8(t,e,n){var i={},r={};return(Object.entries(e).forEach(function(e){var n=(0,rE.CR)(e,2),a=n[0],o=n[1];if(!(0,_.Z)(o)){var s=t.style[a]||t.parsedStyle[a]||0;s!==o&&(i[a]=s,r[a]=o)}}),n)?r4(t,[i,r],(0,rE.pi)({fill:"both"},n)):(r6(t,r),null)}function r9(t,e,n){void 0===n&&(n=!1);var i=t.getBBox(),r=e/Math.max(i.width,i.height);return n&&(t.style.transform="scale(".concat(r,")")),r}var r5=function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]]},r7=function(t,e,n){return[["M",t,e+n],["L",t,e-n]]},at=function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},ae=rK({prevBtnGroup:"prev-btn-group",prevBtn:"prev-btn",nextBtnGroup:"next-btn-group",nextBtn:"next-btn",pageInfoGroup:"page-info-group",pageInfo:"page-info",playWindow:"play-window",contentGroup:"content-group",controller:"controller",clipPath:"clip-path"},"navigator"),an=function(t){function e(e){var n=t.call(this,e,{x:0,y:0,animate:{easing:"linear",duration:200,fill:"both"},buttonCursor:"pointer",buttonFill:"black",buttonD:[["M",-6,-6],["L",6,0],["L",-6,6],["Z"]],buttonSize:12,controllerPadding:5,controllerSpacing:5,formatter:function(t,e){return"".concat(t,"/").concat(e)},defaultPage:0,loop:!1,orientation:"horizontal",pageNumFill:"black",pageNumFontSize:12,pageNumTextAlign:"start",pageNumTextBaseline:"middle"})||this;return n.playState="idle",n.contentGroup=n.appendChild(new I.ZA({class:ae.contentGroup.name})),n.playWindow=n.contentGroup.appendChild(new I.ZA({class:ae.playWindow.name})),n.innerCurrPage=n.defaultPage,n}return(0,rE.ZT)(e,t),Object.defineProperty(e.prototype,"defaultPage",{get:function(){var t=this.attributes.defaultPage;return(0,im.Z)(t,0,Math.max(this.pageViews.length-1,0))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageViews",{get:function(){return this.playWindow.children},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"controllerShape",{get:function(){return this.totalPages>1?{width:55,height:0}:{width:0,height:0}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageShape",{get:function(){var t,e,n=this.pageViews,i=(0,rE.CR)(((null===(e=(t=n.map(function(t){var e=t.getBBox();return[e.width,e.height]}))[0])||void 0===e?void 0:e.map(function(e,n){return t.map(function(t){return t[n]})}))||[]).map(function(t){return Math.max.apply(Math,(0,rE.ev)([],(0,rE.CR)(t),!1))}),2),r=i[0],a=i[1],o=this.attributes,s=o.pageWidth,l=o.pageHeight;return{pageWidth:void 0===s?r:s,pageHeight:void 0===l?a:l}},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.playWindow},Object.defineProperty(e.prototype,"totalPages",{get:function(){return this.pageViews.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currPage",{get:function(){return this.innerCurrPage},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var e=t.prototype.getBBox.call(this),n=e.x,i=e.y,r=this.controllerShape,a=this.pageShape,o=a.pageWidth,s=a.pageHeight;return new rw(n,i,o+r.width,s)},e.prototype.goTo=function(t){var e=this,n=this.attributes.animate,i=this.currPage,r=this.playState,a=this.playWindow,o=this.pageViews;if("idle"!==r||t<0||o.length<=0||t>=o.length)return null;o[i].setLocalPosition(0,0),this.prepareFollowingPage(t);var s=(0,rE.CR)(this.getFollowingPageDiff(t),2),l=s[0],h=s[1];this.playState="running";var c=r4(a,[{transform:"translate(0, 0)"},{transform:"translate(".concat(-l,", ").concat(-h,")")}],n);return r3(c,function(){e.innerCurrPage=t,e.playState="idle",e.setVisiblePages([t]),e.updatePageInfo()}),c},e.prototype.prev=function(){var t=this.attributes.loop,e=this.pageViews.length,n=this.currPage;if(!t&&n<=0)return null;var i=t?(n-1+e)%e:(0,im.Z)(n-1,0,e);return this.goTo(i)},e.prototype.next=function(){var t=this.attributes.loop,e=this.pageViews.length,n=this.currPage;if(!t&&n>=e-1)return null;var i=t?(n+1)%e:(0,im.Z)(n+1,0,e);return this.goTo(i)},e.prototype.renderClipPath=function(t){var e=this.pageShape,n=e.pageWidth,i=e.pageHeight;if(!n||!i){this.contentGroup.style.clipPath=void 0;return}this.clipPath=t.maybeAppendByClassName(ae.clipPath,"rect").styles({width:n,height:i}),this.contentGroup.attr("clipPath",this.clipPath.node())},e.prototype.setVisiblePages=function(t){this.playWindow.children.forEach(function(e,n){t.includes(n)?rT(e):rk(e)})},e.prototype.adjustControllerLayout=function(){var t=this.prevBtnGroup,e=this.nextBtnGroup,n=this.pageInfoGroup,i=this.attributes,r=i.orientation,a=i.controllerPadding,o=n.getBBox(),s=o.width;o.height;var l=(0,rE.CR)("horizontal"===r?[-180,0]:[-90,90],2),h=l[0],c=l[1];t.setLocalEulerAngles(h),e.setLocalEulerAngles(c);var u=t.getBBox(),d=u.width,p=u.height,f=e.getBBox(),g=f.width,y=f.height,m=Math.max(d,s,g),v="horizontal"===r?{offset:[[0,0],[d/2+a,0],[d+s+2*a,0]],textAlign:"start"}:{offset:[[m/2,-p-a],[m/2,0],[m/2,y+a]],textAlign:"center"},b=(0,rE.CR)(v.offset,3),x=(0,rE.CR)(b[0],2),E=x[0],w=x[1],C=(0,rE.CR)(b[1],2),S=C[0],R=C[1],A=(0,rE.CR)(b[2],2),O=A[0],M=A[1],T=v.textAlign,k=n.querySelector("text");k&&(k.style.textAlign=T),t.setLocalPosition(E,w),n.setLocalPosition(S,R),e.setLocalPosition(O,M)},e.prototype.updatePageInfo=function(){var t,e=this.currPage,n=this.pageViews,i=this.attributes.formatter;n.length<2||(null===(t=this.pageInfoGroup.querySelector(ae.pageInfo.class))||void 0===t||t.attr("text",i(e+1,n.length)),this.adjustControllerLayout())},e.prototype.getFollowingPageDiff=function(t){var e=this.currPage;if(e===t)return[0,0];var n=this.attributes.orientation,i=this.pageShape,r=i.pageWidth,a=i.pageHeight,o=t=2,s=t.maybeAppendByClassName(ae.controller,"g");if(rP(s.node(),o),o){var l=rG(this.attributes,"button"),h=rG(this.attributes,"pageNum"),c=(0,rE.CR)(rW(l),2),u=c[0],d=c[1],p=u.size,f=(0,rE._T)(u,["size"]),g=!s.select(ae.prevBtnGroup.class).node(),y=s.maybeAppendByClassName(ae.prevBtnGroup,"g").styles(d);this.prevBtnGroup=y.node();var m=y.maybeAppendByClassName(ae.prevBtn,"path"),v=s.maybeAppendByClassName(ae.nextBtnGroup,"g").styles(d);this.nextBtnGroup=v.node(),[m,v.maybeAppendByClassName(ae.nextBtn,"path")].forEach(function(t){t.styles((0,rE.pi)((0,rE.pi)({},f),{transformOrigin:"center"})),r9(t.node(),p,!0)});var b=s.maybeAppendByClassName(ae.pageInfoGroup,"g");this.pageInfoGroup=b.node(),b.maybeAppendByClassName(ae.pageInfo,"text").styles(h),this.updatePageInfo(),s.node().setLocalPosition(r+n,a/2),g&&(this.prevBtnGroup.addEventListener("click",function(){e.prev()}),this.nextBtnGroup.addEventListener("click",function(){e.next()}))}},e.prototype.render=function(t,e){var n=t.x,i=t.y,r=void 0===i?0:i;this.attr("transform","translate(".concat(void 0===n?0:n,", ").concat(r,")"));var a=rY(e);this.renderClipPath(a),this.renderController(a),this.setVisiblePages([this.defaultPage]),this.goTo(this.defaultPage)},e.prototype.bindEvents=function(){var t=this,e=(0,ii.Z)(function(){return t.render(t.attributes,t)},50);this.playWindow.addEventListener(I.Dk.INSERTED,e),this.playWindow.addEventListener(I.Dk.REMOVED,e)},e}(rF),ai=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,rE.ZT)(e,t),e.prototype.render=function(t,n){var i,r=t.x,a=void 0===r?0:r,o=t.y,s=void 0===o?0:o,l=this.getSubShapeStyle(t),h=l.symbol,c=l.size,u=void 0===c?16:c,d=(0,rE._T)(l,["symbol","size"]),p=["base64","url","image"].includes(i=function(t){var e="default";if((0,Z.Z)(t)&&t instanceof Image)e="image";else if((0,td.Z)(t))e="symbol";else if((0,t0.Z)(t)){var n=RegExp("data:(image|text)");e=t.match(n)?"base64":/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(t)?"url":"symbol"}return e}(h))?"image":h&&"symbol"===i?"path":null;r$(!!p,rY(n),function(t){t.maybeAppendByClassName("marker",p).attr("className","marker ".concat(p,"-marker")).call(function(t){if("image"===p){var n=2*u;t.styles({img:h,width:n,height:n,x:a-u,y:s-u})}else{var n=u/2,i=(0,td.Z)(h)?h:e.getSymbol(h);t.styles((0,rE.pi)({d:null==i?void 0:i(a,s,n)},d))}})})},e.MARKER_SYMBOL_MAP=new Map,e.registerSymbol=function(t,n){e.MARKER_SYMBOL_MAP.set(t,n)},e.getSymbol=function(t){return e.MARKER_SYMBOL_MAP.get(t)},e.getSymbols=function(){return Array.from(e.MARKER_SYMBOL_MAP.keys())},e}(rF);function ar(t,e,n){return void 0===t&&(t="horizontal"),"horizontal"===t?e:n}function aa(t){var e=t.getLocalBounds(),n=e.min,i=e.max,r=(0,rE.CR)([n,i],2),a=(0,rE.CR)(r[0],2),o=a[0],s=a[1],l=(0,rE.CR)(r[1],2),h=l[0],c=l[1];return{x:o,y:s,width:h-o,height:c-s,left:o,bottom:c,top:s,right:h}}function ao(t,e){var n=(0,rE.CR)(t,2),i=n[0],r=n[1],a=(0,rE.CR)(e,2),o=a[0],s=a[1];return i!==o&&r===s}function as(t){return"function"==typeof t?t():(0,t0.Z)(t)||(0,eJ.Z)(t)?new rV({style:{text:String(t)}}):t}ai.registerSymbol("cross",function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]}),ai.registerSymbol("hyphen",function(t,e,n){return[["M",t-n,e],["L",t+n,e]]}),ai.registerSymbol("line",r7),ai.registerSymbol("plus",function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]}),ai.registerSymbol("tick",function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]}),ai.registerSymbol("circle",r5),ai.registerSymbol("point",r5),ai.registerSymbol("bowtie",function(t,e,n){var i=n-1.5;return[["M",t-n,e-i],["L",t+n,e+i],["L",t+n,e-i],["L",t-n,e+i],["Z"]]}),ai.registerSymbol("hexagon",function(t,e,n){var i=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+i,e-n/2],["L",t+i,e+n/2],["L",t,e+n],["L",t-i,e+n/2],["L",t-i,e-n/2],["Z"]]}),ai.registerSymbol("square",function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]}),ai.registerSymbol("diamond",function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]}),ai.registerSymbol("triangle",function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+i],["L",t,e-i],["L",t+n,e+i],["Z"]]}),ai.registerSymbol("triangle-down",function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-i],["L",t+n,e-i],["L",t,e+i],["Z"]]}),ai.registerSymbol("line",r7),ai.registerSymbol("dot",at),ai.registerSymbol("dash",at),ai.registerSymbol("smooth",function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]}),ai.registerSymbol("hv",function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]}),ai.registerSymbol("vh",function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]}),ai.registerSymbol("hvh",function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]}),ai.registerSymbol("vhv",function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}),ai.registerSymbol("hiddenHandle",function(t,e,n){var i=1.4*n;return[["M",t-n,e-i],["L",t+n,e-i],["L",t+n,e+i],["L",t-n,e+i],["Z"]]}),ai.registerSymbol("verticalHandle",function(t,e,n){var i=1.4*n,r=n/2,a=n/6,o=t+.4*i;return[["M",t,e],["L",o,e+r],["L",t+i,e+r],["L",t+i,e-r],["L",o,e-r],["Z"],["M",o,e+a],["L",t+i-2,e+a],["M",o,e-a],["L",t+i-2,e-a]]}),ai.registerSymbol("horizontalHandle",function(t,e,n){var i=1.4*n,r=n/2,a=n/6,o=e+.4*i;return[["M",t,e],["L",t-r,o],["L",t-r,e+i],["L",t+r,e+i],["L",t+r,o],["Z"],["M",t-a,o],["L",t-a,e+i-2],["M",t+a,o],["L",t+a,e+i-2]]});var al=(0,n(92426).Z)(function(t,e){var n=e.fontSize,i=e.fontFamily,r=e.fontWeight,a=e.fontStyle,o=e.fontVariant;return D?D(t,n):(L||(L=I.GZ.offscreenCanvasCreator.getOrCreateContext(void 0)),L.font=[a,o,r,"".concat(n,"px"),i].join(" "),L.measureText(t).width)},function(t,e){return[t,Object.values(e||ah(t)).join()].join("")},4096),ah=function(t){var e=t.style.fontFamily||"sans-serif",n=t.style.fontWeight||"normal",i=t.style.fontStyle||"normal",r=t.style.fontVariant,a=t.style.fontSize;return{fontSize:a="object"==typeof a?a.value:a,fontFamily:e,fontWeight:n,fontStyle:i,fontVariant:r}};function ac(t){return"text"===t.nodeName?t:"g"===t.nodeName&&1===t.children.length&&"text"===t.children[0].nodeName?t.children[0]:null}function au(t,e){var n=ac(t);n&&n.attr(e)}function ad(t,e,n){void 0===n&&(n="..."),au(t,{wordWrap:!0,wordWrapWidth:e,maxLines:1,textOverflow:n})}var ap=rK({layout:"flex",markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label",valueGroup:"value-group",value:"value",backgroundGroup:"background-group",background:"background"},"legend-category-item"),af=function(t){function e(e){return t.call(this,e,{span:[1,1],marker:function(){return new I.Cd({style:{r:6}})},markerSize:10,labelFill:"#646464",valueFill:"#646464",labelFontSize:12,valueFontSize:12,labelTextBaseline:"middle",valueTextBaseline:"middle"})||this}return(0,rE.ZT)(e,t),Object.defineProperty(e.prototype,"showValue",{get:function(){var t=this.attributes.valueText;return!!t&&("string"==typeof t||"number"==typeof t?""!==t:"function"==typeof t||""!==t.attr("text"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"actualSpace",{get:function(){var t=this.labelGroup,e=this.valueGroup,n=this.attributes.markerSize,i=t.node().getBBox(),r=i.width,a=i.height,o=e.node().getBBox();return{markerWidth:n,labelWidth:r,valueWidth:o.width,height:Math.max(n,a,o.height)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"span",{get:function(){var t=this.attributes.span;if(!t)return[1,1];var e=(0,rE.CR)(rO(t),2),n=e[0],i=e[1],r=this.showValue?i:0,a=n+r;return[n/a,r/a]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){var t,e=this.attributes,n=e.markerSize,i=e.width,r=this.actualSpace,a=r.markerWidth,o=r.height,s=this.actualSpace,l=s.labelWidth,h=s.valueWidth,c=(0,rE.CR)(this.spacing,2),u=c[0],d=c[1];if(i){var p=i-n-u-d,f=(0,rE.CR)(this.span,2),g=f[0],y=f[1];l=(t=(0,rE.CR)([g*p,y*p],2))[0],h=t[1]}return{width:a+l+h+u+d,height:o,markerWidth:a,labelWidth:l,valueWidth:h}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"spacing",{get:function(){var t=this.attributes.spacing;if(!t)return[0,0];var e=(0,rE.CR)(rO(t),2),n=e[0],i=e[1];return this.showValue?[n,i]:[n,0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){var t=this.shape,e=t.markerWidth,n=t.labelWidth,i=t.valueWidth,r=t.width,a=t.height,o=(0,rE.CR)(this.spacing,2),s=o[0];return{height:a,width:r,markerWidth:e,labelWidth:n,valueWidth:i,position:[e/2,e+s,e+n+s+o[1]]}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleSize",{get:function(){var t,e=(t=this.markerGroup.node().querySelector(ap.marker.class))?t.style:{},n=this.attributes,i=n.markerSize,r=n.markerStrokeWidth,a=void 0===r?e.strokeWidth:r,o=n.markerLineWidth,s=void 0===o?e.lineWidth:o,l=n.markerStroke,h=void 0===l?e.stroke:l,c=+(a||s||(h?1:0))*Math.sqrt(2),u=this.markerGroup.node().getBBox();return(1-c/Math.max(u.width,u.height))*i},enumerable:!1,configurable:!0}),e.prototype.renderMarker=function(t){var e=this,n=this.attributes.marker,i=rG(this.attributes,"marker");this.markerGroup=t.maybeAppendByClassName(ap.markerGroup,"g").style("zIndex",0),r$(!!n,this.markerGroup,function(){var t,r=e.markerGroup.node(),a=null===(t=r.childNodes)||void 0===t?void 0:t[0],o="string"==typeof n?new ai({style:{symbol:n},className:ap.marker.name}):n();a?o.nodeName===a.nodeName?a instanceof ai?a.update((0,rE.pi)((0,rE.pi)({},i),{symbol:n})):(function(t,e){var n,i,r=e.attributes;try{for(var a=(0,rE.XA)(Object.entries(r)),o=a.next();!o.done;o=a.next()){var s=(0,rE.CR)(o.value,2),l=s[0],h=s[1];"id"!==l&&"className"!==l&&t.attr(l,h)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}}(a,o),rY(a).styles(i)):(a.remove(),rY(o).attr("className",ap.marker.name).styles(i),r.appendChild(o)):(o instanceof ai||rY(o).attr("className",ap.marker.name).styles(i),r.appendChild(o)),e.markerGroup.node().scale(1/e.markerGroup.node().getScale()[0]);var s=r9(e.markerGroup.node(),e.scaleSize,!0);e.markerGroup.node().style._transform="scale(".concat(s,")")})},e.prototype.renderLabel=function(t){var e=rG(this.attributes,"label"),n=e.text,i=(0,rE._T)(e,["text"]);this.labelGroup=t.maybeAppendByClassName(ap.labelGroup,"g").style("zIndex",0),this.labelGroup.maybeAppendByClassName(ap.label,function(){return as(n)}).styles(i)},e.prototype.renderValue=function(t){var e=this,n=rG(this.attributes,"value"),i=n.text,r=(0,rE._T)(n,["text"]);this.valueGroup=t.maybeAppendByClassName(ap.valueGroup,"g").style("zIndex",0),r$(this.showValue,this.valueGroup,function(){e.valueGroup.maybeAppendByClassName(ap.value,function(){return as(i)}).styles(r)})},e.prototype.renderBackground=function(t){var e=this.shape,n=e.width,i=e.height,r=rG(this.attributes,"background");this.background=t.maybeAppendByClassName(ap.backgroundGroup,"g").style("zIndex",-1),this.background.maybeAppendByClassName(ap.background,"rect").styles((0,rE.pi)({width:n,height:i},r))},e.prototype.adjustLayout=function(){var t=this.layout,e=t.labelWidth,n=t.valueWidth,i=t.height,r=(0,rE.CR)(t.position,3),a=r[0],o=r[1],s=r[2],l=i/2;this.markerGroup.styles({transform:"translate(".concat(a,", ").concat(l,")").concat(this.markerGroup.node().style._transform)}),this.labelGroup.styles({transform:"translate(".concat(o,", ").concat(l,")")}),ad(this.labelGroup.select(ap.label.class).node(),Math.ceil(e)),this.showValue&&(this.valueGroup.styles({transform:"translate(".concat(s,", ").concat(l,")")}),ad(this.valueGroup.select(ap.value.class).node(),Math.ceil(n)))},e.prototype.render=function(t,e){var n=rY(e),i=t.x,r=t.y,a=void 0===r?0:r;n.styles({transform:"translate(".concat(void 0===i?0:i,", ").concat(a,")")}),this.renderMarker(n),this.renderLabel(n),this.renderValue(n),this.renderBackground(n),this.adjustLayout()},e}(rF),ag=rK({page:"item-page",navigator:"navigator",item:"item"},"items"),ay=function(t,e,n){return(void 0===n&&(n=!0),t)?e(t):n},am=function(t){function e(e){var n=t.call(this,e,{data:[],gridRow:1/0,gridCol:void 0,padding:0,width:1e3,height:100,rowPadding:0,colPadding:0,layout:"flex",orientation:"horizontal",click:r0.Z,mouseenter:r0.Z,mouseleave:r0.Z})||this;return n.navigatorShape=[0,0],n}return(0,rE.ZT)(e,t),Object.defineProperty(e.prototype,"pageViews",{get:function(){return this.navigator.getContainer()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){var t=this.attributes,e=t.gridRow,n=t.gridCol,i=t.data;if(!e&&!n)throw Error("gridRow and gridCol can not be set null at the same time");return e&&n?[e,n]:e?[e,i.length]:[i.length,n]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderData",{get:function(){var t=this.attributes,e=t.data,n=t.layout,i=rG(this.attributes,"item");return e.map(function(t,r){var a=t.id,o=void 0===a?r:a,s=t.label,l=t.value;return{id:"".concat(o),index:r,style:(0,rE.pi)({layout:n,labelText:s,valueText:l},Object.fromEntries(Object.entries(i).map(function(n){var i=(0,rE.CR)(n,2);return[i[0],r1(i[1],[t,r,e])]})))}})},enumerable:!1,configurable:!0}),e.prototype.getGridLayout=function(){var t=this,e=this.attributes,n=e.orientation,i=e.width,r=e.rowPadding,a=e.colPadding,o=(0,rE.CR)(this.navigatorShape,1)[0],s=(0,rE.CR)(this.grid,2),l=s[0],h=s[1],c=h*l,u=0;return this.pageViews.children.map(function(e,s){var d,p,f=Math.floor(s/c),g=s%c,y=t.ifHorizontal(h,l),m=[Math.floor(g/y),g%y];"vertical"===n&&m.reverse();var v=(0,rE.CR)(m,2),b=v[0],x=v[1],E=(i-o-(h-1)*a)/h,w=e.getBBox().height,C=(0,rE.CR)([0,0],2),S=C[0],R=C[1];return"horizontal"===n?(S=(d=(0,rE.CR)([u,b*(w+r)],2))[0],R=d[1],u=x===h-1?0:u+E+a):(S=(p=(0,rE.CR)([x*(E+a),u],2))[0],R=p[1],u=b===l-1?0:u+w+r),{page:f,index:s,row:b,col:x,pageIndex:g,width:E,height:w,x:S,y:R}})},e.prototype.getFlexLayout=function(){var t=this.attributes,e=t.width,n=t.height,i=t.rowPadding,r=t.colPadding,a=(0,rE.CR)(this.navigatorShape,1)[0],o=(0,rE.CR)(this.grid,2),s=o[0],l=o[1],h=(0,rE.CR)([e-a,n],2),c=h[0],u=h[1],d=(0,rE.CR)([0,0,0,0,0,0,0,0],8),p=d[0],f=d[1],g=d[2],y=d[3],m=d[4],v=d[5],b=d[6],x=d[7];return this.pageViews.children.map(function(t,e){var n,a,o,h,d=t.getBBox(),E=d.width,w=d.height,C=0===b?0:r,S=b+C+E;return S<=c&&ay(m,function(t){return t0?(this.navigatorShape=[55,0],t.call(this)):e},enumerable:!1,configurable:!0}),e.prototype.ifHorizontal=function(t,e){return ar(this.attributes.orientation,t,e)},e.prototype.flattenPage=function(t){t.querySelectorAll(ag.item.class).forEach(function(e){t.appendChild(e)}),t.querySelectorAll(ag.page.class).forEach(function(e){t.removeChild(e).destroy()})},e.prototype.renderItems=function(t){var e=this.attributes,n=e.click,i=e.mouseenter,r=e.mouseleave;this.flattenPage(t);var a=this.dispatchCustomEvent.bind(this);rY(t).selectAll(ag.item.class).data(this.renderData,function(t){return t.id}).join(function(t){return t.append(function(t){var e=t.style;return new af({style:e})}).attr("className",ag.item.name).on("click",function(){null==n||n(this),a("itemClick",{item:this})}).on("pointerenter",function(){null==i||i(this),a("itemMouseenter",{item:this})}).on("pointerleave",function(){null==r||r(this),a("itemMouseleave",{item:this})})},function(t){return t.each(function(t){var e=t.style;this.update(e)})},function(t){return t.remove()})},e.prototype.relayoutNavigator=function(){var t,e=this.attributes,n=e.layout,i=e.width,r=(null===(t=this.pageViews.children[0])||void 0===t?void 0:t.getBBox().height)||0,a=(0,rE.CR)(this.navigatorShape,2),o=a[0],s=a[1];this.navigator.update("grid"===n?{pageWidth:i-o,pageHeight:r-s}:{})},e.prototype.adjustLayout=function(){var t,e,n=this,i=Object.entries((t=this.itemsLayout,e="page",t.reduce(function(t,n){return(t[n[e]]=t[n[e]]||[]).push(n),t},{}))).map(function(t){var e=(0,rE.CR)(t,2);return{page:e[0],layouts:e[1]}}),r=(0,rE.ev)([],(0,rE.CR)(this.navigator.getContainer().children),!1);i.forEach(function(t){var e=t.layouts,i=n.pageViews.appendChild(new I.ZA({className:ag.page.name}));e.forEach(function(t){var e=t.x,n=t.y,a=t.index,o=t.width,s=t.height,l=r[a];i.appendChild(l),(0,ei.Z)(l,"__layout__",t),l.update({x:e,y:n,width:o,height:s})})}),this.relayoutNavigator()},e.prototype.renderNavigator=function(t){var e=rN({orientation:this.attributes.orientation},rG(this.attributes,"nav")),n=this;return t.selectAll(ag.navigator.class).data(["nav"]).join(function(t){return t.append(function(){return new an({style:e})}).attr("className",ag.navigator.name).each(function(){n.navigator=this})},function(t){return t.each(function(){this.update(e)})},function(t){return t.remove()}),this.navigator},e.prototype.getBBox=function(){return this.navigator.getBBox()},e.prototype.render=function(t,e){var n=this.attributes.data;if(n&&0!==n.length){var i=this.renderNavigator(rY(e));this.renderItems(i.getContainer()),this.adjustLayout()}},e.prototype.dispatchCustomEvent=function(t,e){var n=new I.Aw(t,{detail:e});this.dispatchEvent(n)},e}(rF),av=rK({markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label"},"handle"),ab={showLabel:!0,formatter:function(t){return t.toString()},markerSize:25,markerStroke:"#c5c5c5",markerFill:"#fff",markerLineWidth:1,labelFontSize:12,labelFill:"#c5c5c5",labelText:"",orientation:"vertical",spacing:0};!function(t){function e(e){return t.call(this,e,ab)||this}(0,rE.ZT)(e,t),e.prototype.render=function(t,e){var n=rY(e).maybeAppendByClassName(av.markerGroup,"g");this.renderMarker(n);var i=rY(e).maybeAppendByClassName(av.labelGroup,"g");this.renderLabel(i)},e.prototype.renderMarker=function(t){var e=this,n=this.attributes,i=n.orientation,r=n.markerSymbol,a=void 0===r?ar(i,"horizontalHandle","verticalHandle"):r;r$(!!a,t,function(t){var n=rG(e.attributes,"marker"),i=(0,rE.pi)({symbol:a},n);e.marker=t.maybeAppendByClassName(av.marker,function(){return new ai({style:i})}).update(i)})},e.prototype.renderLabel=function(t){var e=this,n=this.attributes,i=n.showLabel,r=n.orientation,a=n.spacing,o=void 0===a?0:a,s=n.formatter;r$(i,t,function(t){var n,i=rG(e.attributes,"label"),a=i.text,l=(0,rE._T)(i,["text"]),h=(null===(n=t.select(av.marker.class))||void 0===n?void 0:n.node().getBBox())||{},c=h.width,u=h.height,d=(0,rE.CR)(ar(r,[0,(void 0===u?0:u)+o,"center","top"],[(void 0===c?0:c)+o,0,"start","middle"]),4),p=d[0],f=d[1],g=d[2],y=d[3];t.maybeAppendByClassName(av.label,"text").styles((0,rE.pi)((0,rE.pi)({},l),{x:p,y:f,text:s(a).toString(),textAlign:g,textBaseline:y}))})}}(rF);var ax={showTitle:!0,padding:0,orientation:"horizontal",backgroundFill:"transparent",titleText:"",titleSpacing:4,titlePosition:"top-left",titleFill:"#2C3542",titleFontWeight:"bold",titleFontFamily:"sans-serif",titleFontSize:12},aE=rN({},ax,{});rN({},ax,rH(ab,"handle"),{color:["#d0e3fa","#acc7f6","#8daaf2","#6d8eea","#4d73cd","#325bb1","#5a3e75","#8c3c79","#e23455","#e7655b"],indicatorBackgroundFill:"#262626",indicatorLabelFill:"white",indicatorLabelFontSize:12,indicatorVisibility:"hidden",labelAlign:"value",labelDirection:"positive",labelSpacing:5,showHandle:!0,showIndicator:!0,showLabel:!0,slidable:!0,titleText:"",type:"continuous"});var aw=rK({title:"title",titleGroup:"title-group",items:"items",itemsGroup:"items-group",contentGroup:"content-group",ribbonGroup:"ribbon-group",ribbon:"ribbon",handlesGroup:"handles-group",handle:"handle",startHandle:"start-handle",endHandle:"end-handle",labelGroup:"label-group",label:"label",indicator:"indicator"},"legend"),aC=function(t){function e(e){return t.call(this,e,aE)||this}return(0,rE.ZT)(e,t),e.prototype.renderTitle=function(t,e,n){var i=this.attributes,r=i.showTitle,a=i.titleText,o=rG(this.attributes,"title"),s=(0,rE.CR)(rW(o),2),l=s[0],h=s[1];this.titleGroup=t.maybeAppendByClassName(aw.titleGroup,"g").styles(h);var c=(0,rE.pi)((0,rE.pi)({width:e,height:n},l),{text:r?a:""});this.title=this.titleGroup.maybeAppendByClassName(aw.title,function(){return new rJ({style:c})}).update(c)},e.prototype.renderItems=function(t,e){var n=e.x,i=e.y,r=e.width,a=e.height,o=rG(this.attributes,"title",!0),s=(0,rE.CR)(rW(o),2),l=s[0],h=s[1],c=(0,rE.pi)((0,rE.pi)({},l),{width:r,height:a,x:0,y:0});this.itemsGroup=t.maybeAppendByClassName(aw.itemsGroup,"g").styles((0,rE.pi)((0,rE.pi)({},h),{transform:"translate(".concat(n,", ").concat(i,")")}));var u=this;this.itemsGroup.selectAll(aw.items.class).data(["items"]).join(function(t){return t.append(function(){return new am({style:c})}).attr("className",aw.items.name).each(function(){u.items=rY(this)})},function(t){return t.update(c)},function(t){return t.remove()})},e.prototype.adjustLayout=function(){if(this.attributes.showTitle){var t=this.title.node().getAvailableSpace(),e=t.x,n=t.y;this.itemsGroup.node().style.transform="translate(".concat(e,", ").concat(n,")")}},Object.defineProperty(e.prototype,"availableSpace",{get:function(){var t=this.attributes,e=t.showTitle,n=t.width,i=t.height;return e?this.title.node().getAvailableSpace():new rw(0,0,n,i)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var e,n,i=null===(e=this.title)||void 0===e?void 0:e.node(),r=null===(n=this.items)||void 0===n?void 0:n.node();return i&&r?function(t,e){var n=t.attributes,i=n.position,r=n.spacing,a=n.inset,o=n.text,s=t.getBBox(),l=e.getBBox(),h=rq(i),c=(0,rE.CR)(rO(o?r:0),4),u=c[0],d=c[1],p=c[2],f=c[3],g=(0,rE.CR)(rO(a),4),y=g[0],m=g[1],v=g[2],b=g[3],x=(0,rE.CR)([f+d,u+p],2),E=x[0],w=x[1],C=(0,rE.CR)([b+m,y+v],2),S=C[0],R=C[1];if("l"===h[0])return new rw(s.x,s.y,l.width+s.width+E+S,Math.max(l.height+R,s.height));if("t"===h[0])return new rw(s.x,s.y,Math.max(l.width+S,s.width),l.height+s.height+w+R);var A=(0,rE.CR)([e.attributes.width||l.width,e.attributes.height||l.height],2),O=A[0],M=A[1];return new rw(l.x,l.y,O+s.width+E+S,M+s.height+w+R)}(i,r):t.prototype.getBBox.call(this)},e.prototype.render=function(t,e){var n=this.attributes,i=n.width,r=n.height,a=n.x,o=n.y,s=void 0===o?0:o,l=rY(e);e.style.transform="translate(".concat(void 0===a?0:a,", ").concat(s,")"),this.renderTitle(l,i,r),this.renderItems(l,this.availableSpace),this.adjustLayout()},e}(rF);class aS extends iF{update(t){super.update(t),this.clear(),this.createElement()}clear(){var t;null===(t=this.element)||void 0===t||t.destroy(),this.element=null,this.draw=!1}updateElement(){if(!this.element)return;let t=this.element.getChildByIndex(0);t.update({itemMarkerOpacity:t=>{let{id:e}=t;return!this.selectedItems.length||this.selectedItems.includes(e)?1:.5},itemLabelOpacity:t=>{let{id:e}=t;return!this.selectedItems.length||this.selectedItems.includes(e)?1:.5}})}destroy(){this.clear(),this.context.graph.off(R.AFTER_DRAW,this.createElement),super.destroy()}constructor(t,e){super(t,Object.assign({},aS.defaultOptions,e)),this.typePrefix="__data__",this.element=null,this.draw=!1,this.fieldMap={node:new Map,edge:new Map,combo:new Map},this.selectedItems=[],this.bindEvents=()=>{let{graph:t}=this.context;t.on(R.AFTER_DRAW,this.createElement)},this.changeState=(t,e)=>{let{graph:n}=this.context,{typePrefix:i}=this,r=(0,en.Z)(t,[i,"id"]),a=(0,en.Z)(t,[i,"style","labelText"]),[o]=r.split("__"),s=this.fieldMap[o].get(a)||[];n.setElementState(Object.fromEntries(null==s?void 0:s.map(t=>[t,e])))},this.click=t=>{if("hover"===this.options.trigger)return;let e=(0,en.Z)(t,[this.typePrefix,"id"]);this.selectedItems.includes(e)?(this.selectedItems=this.selectedItems.filter(t=>t!==e),this.changeState(t,[])):(this.selectedItems.push(e),this.changeState(t,"selected"))},this.mouseleave=t=>{"click"!==this.options.trigger&&(this.selectedItems=[],this.changeState(t,[]))},this.mouseenter=t=>{if("click"===this.options.trigger)return;let e=(0,en.Z)(t,[this.typePrefix,"id"]);this.selectedItems.includes(e)?this.selectedItems=this.selectedItems.filter(t=>t!==e):(this.selectedItems.push(e),this.changeState(t,"active"))},this.setFieldMap=(t,e,n)=>{if(!t)return;let i=this.fieldMap[n];if(i){if(i.has(t)){let n=i.get(t);n&&(n.push(e),i.set(t,n))}else i.set(t,[e])}},this.getEvents=()=>({mouseenter:this.mouseenter,mouseleave:this.mouseleave,click:this.click}),this.getMarkerData=(t,e)=>{if(!t)return[];let{model:n,element:i,graph:r}=this.context,{nodes:a,edges:o,combos:s}=n.getData(),l={},h=e=>(0,td.Z)(t)?t(e):t,c={node:"circle",edge:"line",combo:"rect"},u={circle:"circle",ellipse:"circle",image:"bowtie",rect:"square",star:"cross",triangle:"triangle",diamond:"diamond",cubic:"dot",line:"hyphen",polyline:"hyphen",quadratic:"hv","cubic-horizontal":"hyphen","cubic-vertical":"line"},d=(t,e)=>{let n=null==i?void 0:i.getElementComputedStyle(t,e);return n},p=(t,e)=>{t.forEach(t=>{let{id:n}=t,r=(0,en.Z)(t,["data",h(t)]),a=(null==i?void 0:i.getElementType(e,t))||"circle",o=d(e,t),s=("edge"===e?null==o?void 0:o.stroke:null==o?void 0:o.fill)||"#1783ff";n&&r&&r.replace(/\s+/g,"")&&(this.setFieldMap(r,n,e),l[r]||(l[r]={id:"".concat(e,"__").concat(n),label:r,marker:u[a]||c[e],elementType:e,lineWidth:1,stroke:s,fill:s}))})};switch(e){case"node":p(a,"node");break;case"edge":p(o,"edge");break;case"combo":p(s,"combo");break;default:return[]}return Object.values(l)},this.layout=t=>{let{flexDirection:e,alignItems:n,justifyContent:i}={flexDirection:"row",alignItems:"flex-end",justifyContent:"center"},r={top:["row","flex-start","center"],bottom:["row","flex-end","center"],left:["column","flex-start","center"],right:["column","flex-end","center"]};return t in r&&([e,n,i]=r[t]),{display:"flex",flexDirection:e,justifyContent:i,alignItems:n}},this.createElement=()=>{if(this.draw){this.updateElement();return}let{canvas:t}=this.context,[e,n]=t.getSize(),{width:i=e,height:r=n,nodeField:a,edgeField:o,comboField:s,trigger:l,position:h,...c}=this.options,u=this.getMarkerData(a,"node"),d=this.getMarkerData(o,"edge"),p=this.getMarkerData(s,"combo"),f=[...u,...p,...d],g=this.layout(h),y=new rM({style:{width:i,height:r,...g}}),m=Object.assign({width:i,height:r,data:f,itemMarkerLineWidth:t=>{let{lineWidth:e}=t;return e},itemMarker:t=>{let{marker:e}=t;return e},itemMarkerStroke:t=>{let{stroke:e}=t;return e},itemMarkerFill:t=>{let{fill:e}=t;return e},gridCol:u.length},c,this.getEvents()),v=new aC({className:"legend",style:m});y.appendChild(v),t.appendChild(y),this.element=y,this.draw=!0},this.bindEvents()}}aS.defaultOptions={position:"bottom",trigger:"hover",orientation:"horizontal",layout:"flex",itemSpacing:4,rowPadding:10,colPadding:10,itemMarkerSize:16,itemLabelFontSize:16};var aR=n(4559);function aA(t,e){var n=e.cx,i=void 0===n?0:n,r=e.cy,a=void 0===r?0:r,o=e.r;t.arc(i,a,o,0,2*Math.PI,!1)}function aO(t,e){var n=e.cx,i=void 0===n?0:n,r=e.cy,a=void 0===r?0:r,o=e.rx,s=e.ry;if(t.ellipse)t.ellipse(i,a,o,s,0,0,2*Math.PI,!1);else{var l=o>s?o:s,h=o>s?1:o/s,c=o>s?s/o:1;t.save(),t.scale(h,c),t.arc(i,a,l,0,2*Math.PI)}}function aM(t,e){var n,i=e.x1,r=e.y1,a=e.x2,o=e.y2,s=e.markerStart,l=e.markerEnd,h=e.markerStartOffset,c=e.markerEndOffset,u=0,d=0,p=0,f=0,g=0;s&&(0,aR.RV)(s)&&h&&(u=Math.cos(g=Math.atan2(o-r,a-i))*(h||0),d=Math.sin(g)*(h||0)),l&&(0,aR.RV)(l)&&c&&(p=Math.cos(g=Math.atan2(r-o,i-a))*(c||0),f=Math.sin(g)*(c||0)),t.moveTo(i+u,r+d),t.lineTo(a+p,o+f)}function aT(t,e){var n,i=e.markerStart,r=e.markerEnd,a=e.markerStartOffset,o=e.markerEndOffset,s=e.d,l=s.absolutePath,h=s.segments,c=0,u=0,d=0,p=0,f=0;if(i&&(0,aR.RV)(i)&&a){var g=(0,rE.CR)(i.parentNode.getStartTangent(),2),y=g[0],m=g[1];n=y[0]-m[0],c=Math.cos(f=Math.atan2(y[1]-m[1],n))*(a||0),u=Math.sin(f)*(a||0)}if(r&&(0,aR.RV)(r)&&o){var v=(0,rE.CR)(r.parentNode.getEndTangent(),2),y=v[0],m=v[1];n=y[0]-m[0],d=Math.cos(f=Math.atan2(y[1]-m[1],n))*(o||0),p=Math.sin(f)*(o||0)}for(var b=0;bT?M:T,I=M>T?1:M/T,B=M>T?T/M:1;t.translate(A,O),t.rotate(L),t.scale(I,B),t.arc(0,0,N,k,P,!!(1-D)),t.scale(1/I,1/B),t.rotate(-L),t.translate(-A,-O)}S&&t.lineTo(x[6]+d,x[7]+p);break;case"Z":t.closePath()}}}function ak(t,e){var n,i=e.markerStart,r=e.markerEnd,a=e.markerStartOffset,o=e.markerEndOffset,s=e.points.points,l=s.length,h=s[0][0],c=s[0][1],u=s[l-1][0],d=s[l-1][1],p=0,f=0,g=0,y=0,m=0;i&&(0,aR.RV)(i)&&a&&(n=s[1][0]-s[0][0],p=Math.cos(m=Math.atan2(s[1][1]-s[0][1],n))*(a||0),f=Math.sin(m)*(a||0)),r&&(0,aR.RV)(r)&&o&&(n=s[l-1][0]-s[0][0],g=Math.cos(m=Math.atan2(s[l-1][1]-s[0][1],n))*(o||0),y=Math.sin(m)*(o||0)),t.moveTo(h+(p||g),c+(f||y));for(var v=1;v0?1:-1,c=l>0?1:-1,u=h+c===0,d=(0,rE.CR)(o.map(function(t){return(0,im.Z)(t,0,Math.min(Math.abs(s)/2,Math.abs(l)/2))}),4),p=d[0],f=d[1],g=d[2],y=d[3];t.moveTo(h*p+i,a),t.lineTo(s-h*f+i,a),0!==f&&t.arc(s-h*f+i,c*f+a,f,-c*Math.PI/2,h>0?0:Math.PI,u),t.lineTo(s+i,l-c*g+a),0!==g&&t.arc(s-h*g+i,l-c*g+a,g,h>0?0:Math.PI,c>0?Math.PI/2:1.5*Math.PI,u),t.lineTo(h*y+i,l+a),0!==y&&t.arc(h*y+i,l-c*y+a,y,c>0?Math.PI/2:-Math.PI/2,h>0?Math.PI:0,u),t.lineTo(i,c*p+a),0!==p&&t.arc(h*p+i,c*p+a,p,h>0?Math.PI:0,c>0?1.5*Math.PI:Math.PI/2,u)}else t.rect(i,a,s,l)}var aD=function(t){function e(){var e=t.apply(this,(0,rE.ev)([],(0,rE.CR)(arguments),!1))||this;return e.name="canvas-path-generator",e}return(0,rE.ZT)(e,t),e.prototype.init=function(){var t,e=((t={})[aR.bn.CIRCLE]=aA,t[aR.bn.ELLIPSE]=aO,t[aR.bn.RECT]=aL,t[aR.bn.LINE]=aM,t[aR.bn.POLYLINE]=aP,t[aR.bn.POLYGON]=ak,t[aR.bn.PATH]=aT,t[aR.bn.TEXT]=void 0,t[aR.bn.GROUP]=void 0,t[aR.bn.IMAGE]=void 0,t[aR.bn.HTML]=void 0,t[aR.bn.MESH]=void 0,t);this.context.pathGeneratorFactory=e},e.prototype.destroy=function(){delete this.context.pathGeneratorFactory},e}(aR.F6),aN=n(77160),aI=n(85975),aB=n(11702),a_=n(74873),aF=aN.Ue(),aZ=aN.Ue(),aj=aN.Ue(),az=aI.create(),aG=function(){function t(){var t=this;this.isHit=function(e,n,i,r){var a=t.context.pointInPathPickerFactory[e.nodeName];if(a){var o=aI.invert(az,i),s=aN.fF(aZ,aN.t8(aj,n[0],n[1],0),o);if(a(e,new aR.E9(s[0],s[1]),r,t.isPointInPath,t.context,t.runtime))return!0}return!1},this.isPointInPath=function(e,n){var i=t.runtime.offscreenCanvasCreator.getOrCreateContext(t.context.config.offscreenCanvas),r=t.context.pathGeneratorFactory[e.nodeName];return r&&(i.beginPath(),r(i,e.parsedStyle),i.closePath()),i.isPointInPath(n.x,n.y)}}return t.prototype.apply=function(e,n){var i,r=this,a=e.renderingService,o=e.renderingContext;this.context=e,this.runtime=n;var s=null===(i=o.root)||void 0===i?void 0:i.ownerDocument;a.hooks.pick.tapPromise(t.tag,function(t){return(0,rE.mG)(r,void 0,void 0,function(){return(0,rE.Jh)(this,function(e){return[2,this.pick(s,t)]})})}),a.hooks.pickSync.tap(t.tag,function(t){return r.pick(s,t)})},t.prototype.pick=function(t,e){var n,i,r=e.topmost,a=e.position,o=a.x,s=a.y,l=aN.t8(aF,o,s,0),h=t.elementsFromBBox(l[0],l[1],l[0],l[1]),c=[];try{for(var u=(0,rE.XA)(h),d=u.next();!d.done;d=u.next()){var p=d.value,f=p.getWorldTransform();if(this.isHit(p,l,f,!1)){var g=(0,aR.Oi)(p);if(g){var y=g.parsedStyle.clipPath;if(this.isHit(y,l,y.getWorldTransform(),!0)){if(r)return e.picked=[p],e;c.push(p)}}else{if(r)return e.picked=[p],e;c.push(p)}}}}catch(t){n={error:t}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return e.picked=c,e},t.tag="CanvasPicker",t}();function aH(t,e,n){var i=t.parsedStyle,r=i.cx,a=i.cy,o=i.r,s=i.fill,l=i.stroke,h=i.lineWidth,c=i.increasedLineWidthForHitTesting,u=i.pointerEvents,d=((void 0===h?1:h)+(void 0===c?0:c))/2,p=(0,aB.TE)(void 0===r?0:r,void 0===a?0:a,e.x,e.y),f=(0,rE.CR)((0,aR.L1)(void 0===u?"auto":u,s,l),2),g=f[0],y=f[1];return g&&y||n?p<=o+d:g?p<=o:!!y&&p>=o-d&&p<=o+d}function aW(t,e,n){var i,r,a,o,s,l,h=t.parsedStyle,c=h.cx,u=void 0===c?0:c,d=h.cy,p=void 0===d?0:d,f=h.rx,g=h.ry,y=h.fill,m=h.stroke,v=h.lineWidth,b=h.increasedLineWidthForHitTesting,x=h.pointerEvents,E=e.x,w=e.y,C=(0,rE.CR)((0,aR.L1)(void 0===x?"auto":x,y,m),2),S=C[0],R=C[1],A=((void 0===v?1:v)+(void 0===b?0:b))/2,O=(E-u)*(E-u),M=(w-p)*(w-p);return S&&R||n?1>=O/((i=f+A)*i)+M/((r=g+A)*r):S?1>=O/(f*f)+M/(g*g):!!R&&O/((a=f-A)*a)+M/((o=g-A)*o)>=1&&1>=O/((s=f+A)*s)+M/((l=g+A)*l)}function aV(t,e,n,i,r,a){return r>=t&&r<=t+n&&a>=e&&a<=e+i}function aU(t,e,n,i,r,a,o,s){var l=(Math.atan2(s-e,o-t)+2*Math.PI)%(2*Math.PI),h={x:t+n*Math.cos(l),y:e+n*Math.sin(l)};return(0,aB.TE)(h.x,h.y,o,s)<=a/2}function aY(t,e,n,i,r,a,o){var s=Math.min(t,n),l=Math.max(t,n),h=Math.min(e,i),c=Math.max(e,i),u=r/2;return a>=s-u&&a<=l+u&&o>=h-u&&o<=c+u&&(0,aB._x)(t,e,n,i,a,o)<=r/2}function aK(t,e,n,i,r){var a=t.length;if(a<2)return!1;for(var o=0;oMath.abs(t)?0:t<0?-1:1}function aX(t,e,n){var i=!1,r=t.length;if(r<=2)return!1;for(var a=0;a0!=a$(l[1]-n)>0&&0>a$(e-(n-s[1])*(s[0]-l[0])/(s[1]-l[1])-s[0])&&(i=!i)}return i}function aq(t,e,n){for(var i=!1,r=0;rh&&g/f>d,e&&(e.resetTransform?e.resetTransform():e.setTransform(1,0,0,1,0,0),i.clearFullScreen&&i.clearRect(e,0,0,a*n,s*n,r.background))});var f=function(t,e){t.isVisible()&&!t.isCulled()&&i.renderDisplayObject(t,e,i.context,i.restoreStack,n),(t.sortable.sorted||t.childNodes).forEach(function(t){f(t,e)})};o.hooks.endFrame.tap(t.tag,function(){if(0===s.root.childNodes.length){i.clearFullScreenLastFrame=!0;return}i.clearFullScreenLastFrame=!1;var t=c.getContext(),e=c.getDPR();if(aI.fromScaling(i.dprMatrix,[e,e,1]),aI.multiply(i.vpMatrix,i.dprMatrix,a.getOrthoMatrix()),i.clearFullScreen)f(s.root,t);else{var o=i.safeMergeAABB.apply(i,(0,rE.ev)([i.mergeDirtyAABBs(i.renderQueue)],(0,rE.CR)(i.removedRBushNodeAABBs.map(function(t){var e=t.minX,n=t.minY,i=t.maxX,r=t.maxY,a=new aR.mN;return a.setMinMax([e,n,0],[i,r,0]),a})),!1));if(i.removedRBushNodeAABBs=[],aR.mN.isEmpty(o)){i.renderQueue=[];return}var l=i.convertAABB2Rect(o),h=l.x,d=l.y,p=l.width,g=l.height,y=aN.fF(i.vec3a,[h,d,0],i.vpMatrix),m=aN.fF(i.vec3b,[h+p,d,0],i.vpMatrix),v=aN.fF(i.vec3c,[h,d+g,0],i.vpMatrix),b=aN.fF(i.vec3d,[h+p,d+g,0],i.vpMatrix),x=Math.min(y[0],m[0],b[0],v[0]),E=Math.min(y[1],m[1],b[1],v[1]),w=Math.max(y[0],m[0],b[0],v[0]),C=Math.max(y[1],m[1],b[1],v[1]),S=Math.floor(x),R=Math.floor(E),A=Math.ceil(w-x),O=Math.ceil(C-E);t.save(),i.clearRect(t,S,R,A,O,r.background),t.beginPath(),t.rect(S,R,A,O),t.clip(),t.setTransform(i.vpMatrix[0],i.vpMatrix[1],i.vpMatrix[4],i.vpMatrix[5],i.vpMatrix[12],i.vpMatrix[13]),r.renderer.getConfig().enableDirtyRectangleRenderingDebug&&u.dispatchEvent(new aR.Aw(aR.$6.DIRTY_RECTANGLE,{dirtyRect:{x:S,y:R,width:A,height:O}})),i.searchDirtyObjects(o).sort(function(t,e){return t.sortable.renderOrder-e.sortable.renderOrder}).forEach(function(e){e&&e.isVisible()&&!e.isCulled()&&i.renderDisplayObject(e,t,i.context,i.restoreStack,n)}),t.restore(),i.renderQueue.forEach(function(t){i.saveDirtyAABB(t)}),i.renderQueue=[]}i.restoreStack.forEach(function(){t.restore()}),i.restoreStack=[]}),o.hooks.render.tap(t.tag,function(t){i.clearFullScreen||i.renderQueue.push(t)})},t.prototype.clearRect=function(t,e,n,i,r,a){t.clearRect(e,n,i,r),a&&(t.fillStyle=a,t.fillRect(e,n,i,r))},t.prototype.renderDisplayObject=function(t,e,n,i,r){var a=t.nodeName,o=i[i.length-1];o&&!(t.compareDocumentPosition(o)&aR.NB.DOCUMENT_POSITION_CONTAINS)&&(e.restore(),i.pop());var s=this.context.styleRendererFactory[a],l=this.pathGeneratorFactory[a],h=t.parsedStyle.clipPath;if(h){this.applyWorldTransform(e,h);var c=this.pathGeneratorFactory[h.nodeName];c&&(e.save(),i.push(t),e.beginPath(),c(e,h.parsedStyle),e.closePath(),e.clip())}s&&(this.applyWorldTransform(e,t),e.save(),this.applyAttributesToContext(e,t)),l&&(e.beginPath(),l(e,t.parsedStyle),t.nodeName!==aR.bn.LINE&&t.nodeName!==aR.bn.PATH&&t.nodeName!==aR.bn.POLYLINE&&e.closePath()),s&&(s.render(e,t.parsedStyle,t,n,this,r),e.restore()),t.renderable.dirty=!1},t.prototype.convertAABB2Rect=function(t){var e=t.getMin(),n=t.getMax(),i=Math.floor(e[0]),r=Math.floor(e[1]);return{x:i,y:r,width:Math.ceil(n[0])-i,height:Math.ceil(n[1])-r}},t.prototype.mergeDirtyAABBs=function(t){var e=new aR.mN;return t.forEach(function(t){var n=t.getRenderBounds();e.add(n);var i=t.renderable.dirtyRenderBounds;i&&e.add(i)}),e},t.prototype.searchDirtyObjects=function(t){var e=(0,rE.CR)(t.getMin(),2),n=e[0],i=e[1],r=(0,rE.CR)(t.getMax(),2),a=r[0],o=r[1];return this.rBush.search({minX:n,minY:i,maxX:a,maxY:o}).map(function(t){return t.displayObject})},t.prototype.saveDirtyAABB=function(t){var e=t.renderable;e.dirtyRenderBounds||(e.dirtyRenderBounds=new aR.mN);var n=t.getRenderBounds();n&&e.dirtyRenderBounds.update(n.center,n.halfExtents)},t.prototype.applyAttributesToContext=function(t,e){var n=e.parsedStyle,i=n.stroke,r=n.fill,a=n.opacity,o=n.lineDash,s=n.lineDashOffset;o&&t.setLineDash(o),(0,_.Z)(s)||(t.lineDashOffset=s),(0,_.Z)(a)||(t.globalAlpha*=a),(0,_.Z)(i)||Array.isArray(i)||i.isNone||(t.strokeStyle=e.attributes.stroke),(0,_.Z)(r)||Array.isArray(r)||r.isNone||(t.fillStyle=e.attributes.fill)},t.prototype.applyWorldTransform=function(t,e,n){n?(aI.copy(this.tmpMat4,e.getLocalTransform()),aI.multiply(this.tmpMat4,n,this.tmpMat4),aI.multiply(this.tmpMat4,this.vpMatrix,this.tmpMat4)):(aI.copy(this.tmpMat4,e.getWorldTransform()),aI.multiply(this.tmpMat4,this.vpMatrix,this.tmpMat4)),t.setTransform(this.tmpMat4[0],this.tmpMat4[1],this.tmpMat4[4],this.tmpMat4[5],this.tmpMat4[12],this.tmpMat4[13])},t.prototype.safeMergeAABB=function(){for(var t=[],e=0;e0,S=(null==o?void 0:o.alpha)===0,R=!!(x&&x.length),A=!(0,_.Z)(v)&&b>0,O=n.nodeName,M="inner"===m,T=C&&A&&(O===aR.bn.PATH||O===aR.bn.LINE||O===aR.bn.POLYLINE||S||M);w&&(t.globalAlpha=h*(void 0===c?1:c),T||a9(n,t,A),ot(t,n,o,s,i,r,a,this.imagePool),T||this.clearShadowAndFilter(t,R,A)),C&&(t.globalAlpha=h*(void 0===d?1:d),t.lineWidth=f,(0,_.Z)(E)||(t.miterLimit=E),(0,_.Z)(g)||(t.lineCap=g),(0,_.Z)(y)||(t.lineJoin=y),T&&(M&&(t.globalCompositeOperation="source-atop"),a9(n,t,!0),M&&(oe(t,n,u,i,r,a,this.imagePool),t.globalCompositeOperation="source-over",this.clearShadowAndFilter(t,R,!0))),oe(t,n,u,i,r,a,this.imagePool))},t.prototype.clearShadowAndFilter=function(t,e,n){if(n&&(t.shadowColor="transparent",t.shadowBlur=0),e){var i=t.filter;!(0,_.Z)(i)&&i.indexOf("drop-shadow")>-1&&(t.filter=i.replace(/drop-shadow\([^)]*\)/,"").trim()||"none")}},t}();function a9(t,e,n){var i=t.parsedStyle,r=i.filter,a=i.shadowColor,o=i.shadowBlur,s=i.shadowOffsetX,l=i.shadowOffsetY;r&&r.length&&(e.filter=t.style.filter),n&&(e.shadowColor=a.toString(),e.shadowBlur=o||0,e.shadowOffsetX=s||0,e.shadowOffsetY=l||0)}function a5(t,e,n,i,r,a,o){if("rect"===t.image.nodeName){var s,l,h=t.image.parsedStyle,c=h.width,u=h.height;l=i.contextService.getDPR();var d=i.config.offscreenCanvas;(s=a.offscreenCanvasCreator.getOrCreateCanvas(d)).width=c*l,s.height=u*l;var p=a.offscreenCanvasCreator.getOrCreateContext(d),f=[];t.image.forEach(function(t){r.renderDisplayObject(t,p,i,f,a)}),f.forEach(function(){p.restore()})}return o.getOrCreatePatternSync(t,n,s,l,e.getGeometryBounds().min,function(){e.renderable.dirty=!0,i.renderingService.dirtify()})}function a7(t,e,n,i){var r;if(t.type===aR.GL.LinearGradient||t.type===aR.GL.RadialGradient){var a=e.getGeometryBounds(),o=a&&2*a.halfExtents[0]||1,s=a&&2*a.halfExtents[1]||1,l=a&&a.min||[0,0];r=i.getOrCreateGradient((0,rE.pi)((0,rE.pi)({type:t.type},t.value),{min:l,width:o,height:s}),n)}return r}function ot(t,e,n,i,r,a,o,s,l){void 0===l&&(l=!1),Array.isArray(n)?n.forEach(function(n){t.fillStyle=a7(n,e,t,s),l||(i?t.fill(i):t.fill())}):((0,aR.R)(n)&&(t.fillStyle=a5(n,e,t,r,a,o,s)),l||(i?t.fill(i):t.fill()))}function oe(t,e,n,i,r,a,o,s){void 0===s&&(s=!1),Array.isArray(n)?n.forEach(function(n){t.strokeStyle=a7(n,e,t,o),s||t.stroke()}):((0,aR.R)(n)&&(t.strokeStyle=a5(n,e,t,i,r,a,o)),s||t.stroke())}var on=function(){function t(t){this.imagePool=t}return t.prototype.render=function(t,e,n){var i,r=e.x,a=e.y,o=e.width,s=e.height,l=e.src,h=e.shadowColor,c=e.shadowBlur,u=o,d=s;if((0,t0.Z)(l)?i=this.imagePool.getImageSync(l):(u||(u=l.width),d||(d=l.height),i=l),i){a9(n,t,!(0,_.Z)(h)&&c>0);try{t.drawImage(i,void 0===r?0:r,void 0===a?0:a,u,d)}catch(t){}}},t}(),oi=function(){function t(t){this.imagePool=t}return t.prototype.render=function(t,e,n,i,r,a){n.getBounds();var o=e.lineWidth,s=void 0===o?1:o,l=e.textAlign,h=void 0===l?"start":l,c=e.textBaseline,u=void 0===c?"alphabetic":c,d=e.lineJoin,p=e.miterLimit,f=void 0===p?10:p,g=e.letterSpacing,y=void 0===g?0:g,m=e.stroke,v=e.fill,b=e.fillRule,x=e.fillOpacity,E=void 0===x?1:x,w=e.strokeOpacity,C=void 0===w?1:w,S=e.opacity,R=void 0===S?1:S,A=e.metrics,O=e.x,M=e.y,T=e.dx,k=e.dy,P=e.shadowColor,L=e.shadowBlur,D=A.font,N=A.lines,I=A.height,B=A.lineHeight,F=A.lineMetrics;t.font=D,t.lineWidth=s,t.textAlign="middle"===h?"center":h;var Z=u;a.enableCSSParsing||"alphabetic"!==Z||(Z="bottom"),t.lineJoin=void 0===d?"miter":d,(0,_.Z)(f)||(t.miterLimit=f);var j=void 0===M?0:M;"middle"===u?j+=-I/2-B/2:"bottom"===u||"alphabetic"===u||"ideographic"===u?j+=-I:("top"===u||"hanging"===u)&&(j+=-B);var z=(void 0===O?0:O)+(T||0);j+=k||0,1===N.length&&("bottom"===Z?(Z="middle",j-=.5*I):"top"===Z&&(Z="middle",j+=.5*I)),t.textBaseline=Z,a9(n,t,!(0,_.Z)(P)&&L>0);for(var G=0;G=1?Math.ceil(n):1,this.dpr=n,this.$canvas&&(this.$canvas.width=this.dpr*t,this.$canvas.height=this.dpr*e,(0,aR.$p)(this.$canvas,t,e)),this.renderingContext.renderReasons.add(aR.Rr.CAMERA_CHANGED)},t.prototype.applyCursorStyle=function(t){this.$container&&this.$container.style&&(this.$container.style.cursor=t)},t.prototype.toDataURL=function(t){return void 0===t&&(t={}),(0,rE.mG)(this,void 0,void 0,function(){var e,n;return(0,rE.Jh)(this,function(i){return e=t.type,n=t.encoderOptions,[2,this.context.canvas.toDataURL(e,n)]})})},t}(),op=function(t){function e(){var e=t.apply(this,(0,rE.ev)([],(0,rE.CR)(arguments),!1))||this;return e.name="canvas-context-register",e}return(0,rE.ZT)(e,t),e.prototype.init=function(){this.context.ContextService=od},e.prototype.destroy=function(){delete this.context.ContextService},e}(aR.F6),of=function(t){function e(e){var n=t.call(this,e)||this;return n.registerPlugin(new op),n.registerPlugin(new ou),n.registerPlugin(new aD),n.registerPlugin(new or),n.registerPlugin(new oo),n.registerPlugin(new a6),n.registerPlugin(new ol),n}return(0,rE.ZT)(e,t),e}(aR.I8),og=n(99711);class oy extends iF{bindEvents(){let{graph:t}=this.context;t.on(R.AFTER_DRAW,this.onDraw),t.on(R.AFTER_RENDER,this.onRender),t.on(R.AFTER_TRANSFORM,this.onTransform)}unbindEvents(){let{graph:t}=this.context;t.off(R.AFTER_DRAW,this.onDraw),t.off(R.AFTER_RENDER,this.onRender),t.off(R.AFTER_TRANSFORM,this.onTransform)}renderMinimap(){let t=this.getElements(),e=this.initCanvas();this.setShapes(e,t)}getElements(){let{filter:t}=this.options,{model:e}=this.context,n=e.getData();if(!t)return n;let{nodes:i,edges:r,combos:a}=n;return{nodes:i.filter(e=>t(tt(e),"node")),edges:r.filter(e=>t(tt(e),"edge")),combos:a.filter(e=>t(tt(e),"combo"))}}setShapes(t,e){let{nodes:n,edges:i,combos:r}=e,{shape:a}=this.options,{element:o}=this.context;if("key"===a){let e=new Set,a=n=>{let i=tt(n);e.add(i);let r=o.getElement(i);if(!r)return;let a=r.getShape("key"),s=this.shapes.get(i)||a.cloneNode();s.setPosition(a.getPosition()),r.style.zIndex&&(s.style.zIndex=r.style.zIndex),s.id=r.id,this.shapes.has(i)?Object.entries(a.attributes).forEach(t=>{let[e,n]=t;s.style[e]!==n&&(s.style[e]=n)}):(t.appendChild(s),this.shapes.set(i,s))};i.forEach(a),r.forEach(a),n.forEach(a),this.shapes.forEach((n,i)=>{e.has(i)||(t.removeChild(n),this.shapes.delete(i))});return}let s=(t,e)=>{let n=o.getElement(t),i=n.getPosition();return e.setPosition(i),e};t.removeChildren(),i.forEach(e=>t.appendChild(a(tt(e),"edge"))),r.forEach(e=>{t.appendChild(s(tt(e),a(tt(e),"combo")))}),n.forEach(e=>{t.appendChild(s(tt(e),a(tt(e),"node")))})}calculatePosition(){let{position:t,size:[e,n]}=this.options,{canvas:i}=this.context,[r,a]=i.getSize(),[o,s]=tG(t);return[o*(r-e),s*(a-n)]}createContainer(){let{container:t,className:e,size:[n,i],containerStyle:r}=this.options;if(t)return"string"==typeof t?document.querySelector(t):t;let a=document.createElement("div");a.classList.add("g6-minimap"),e&&a.classList.add(e);let[o,s]=this.calculatePosition();return Object.assign(a.style,{position:"absolute",left:o+"px",top:s+"px",width:n+"px",height:i+"px",...r}),this.context.canvas.getContainer().appendChild(a)}initCanvas(){let{renderer:t,size:[e,n]}=this.options;if(this.canvas)this.canvas.resize(e,n),t&&this.canvas.setRenderer(t);else{let i=document.createElement("div"),r=this.createContainer();this.container=r,r.appendChild(i),this.canvas=new I.Xz({width:e,height:n,container:i,renderer:t||new of})}return this.setCamera(),this.canvas}createLandmark(t,e,n){let i="".concat(t.join(","),"-").concat(e.join(","),"-").concat(n);if(this.landmarkMap.has(i))return this.landmarkMap.get(i);let r=this.canvas.getCamera(),a=r.createLandmark(i,{position:t,focalPoint:e,zoom:n});return this.landmarkMap.set(i,a),a}setCamera(){var t;let{canvas:e}=this.context,n=null===(t=this.canvas)||void 0===t?void 0:t.getCamera();if(!n)return;let{size:[i,r],padding:a}=this.options,[o,s,l,h]=ty(a),{min:c,max:u,center:d}=e.getBounds("elements"),p=u[0]-c[0],f=u[1]-c[1],g=Math.min((i-h-s)/p,(r-o-l)/f),y=this.createLandmark(d,d,g);n.gotoLandmark(y,0)}get maskBBox(){let{canvas:t}=this.context,e=t.getSize(),n=t.getCanvasByViewport([0,0]),i=t.getCanvasByViewport(e),r=this.canvas.canvas2Viewport(tU(n)),a=this.canvas.canvas2Viewport(tU(i)),o=a.x-r.x,s=a.y-r.y;return[r.x,r.y,o,s]}calculateMaskBBox(){let{size:[t,e]}=this.options,[n,i,r,a]=this.maskBBox;return n<0&&(r=om(r+n,t),n=0),i<0&&(a=om(a+i,e),i=0),n+r>t&&(r=ov(t-n,0)),i+a>e&&(a=ov(e-i,0)),[om(n,t),om(i,e),ov(r,0),ov(a,0)]}renderMask(){let{maskStyle:t}=this.options;this.mask||(this.mask=document.createElement("div"),this.mask.addEventListener("pointerdown",this.onMaskDragStart)),this.container.appendChild(this.mask),Object.assign(this.mask.style,{...t,cursor:"move",position:"absolute",pointerEvents:"auto"}),this.updateMask()}updateMask(){if(!this.mask)return;let[t,e,n,i]=this.calculateMaskBBox();Object.assign(this.mask.style,{top:e+"px",left:t+"px",width:n+"px",height:i+"px"})}destroy(){var t;this.unbindEvents(),this.canvas.destroy(),null===(t=this.mask)||void 0===t||t.remove(),super.destroy()}constructor(t,e){super(t,Object.assign({},oy.defaultOptions,e)),this.onDraw=t=>{var e;null!=t&&null!==(e=t.data)&&void 0!==e&&e.render||this.onRender()},this.onRender=(0,og.Z)(()=>{this.renderMinimap(),this.renderMask()},32,{leading:!0}),this.shapes=new Map,this.landmarkMap=new Map,this.mask=null,this.isMaskDragging=!1,this.onMaskDragStart=t=>{this.mask&&(this.isMaskDragging=!0,this.mask.setPointerCapture(t.pointerId),this.mask.addEventListener("pointermove",this.onMaskDrag),this.mask.addEventListener("pointerup",this.onMaskDragEnd),this.mask.addEventListener("pointercancel",this.onMaskDragEnd))},this.onMaskDrag=t=>{if(!this.mask||!this.isMaskDragging)return;let{size:[e,n]}=this.options,{movementX:i,movementY:r}=t,{left:a,top:o,width:s,height:l}=this.mask.style,[,,h,c]=this.maskBBox,u=parseInt(a)+i,d=parseInt(o)+r,p=parseInt(s),f=parseInt(l);u<0&&(u=0),d<0&&(d=0),u+p>e&&(u=ov(e-p,0)),d+f>n&&(d=ov(n-f,0)),p0?(u=ov(u-i,0),p=om(p+i,e)):i<0&&(p=om(p-i,e))),f0?(d=ov(d-r,0),f=om(f+r,n)):r<0&&(f=om(f-r,n))),Object.assign(this.mask.style,{left:u+"px",top:d+"px",width:p+"px",height:f+"px"});let g=parseInt(a)-u,y=parseInt(o)-d;if(0===g&&0===y)return;let m=this.context.canvas.getCamera().getZoom(),v=this.canvas.getCamera().getZoom(),b=m/v;this.context.graph.translateBy([g*b,y*b],!1)},this.onMaskDragEnd=t=>{this.mask&&(this.isMaskDragging=!1,this.mask.releasePointerCapture(t.pointerId),this.mask.removeEventListener("pointermove",this.onMaskDrag),this.mask.removeEventListener("pointerup",this.onMaskDragEnd),this.mask.removeEventListener("pointercancel",this.onMaskDragEnd))},this.onTransform=(0,og.Z)(()=>{this.isMaskDragging||(this.updateMask(),this.setCamera())},32,{leading:!0}),this.bindEvents()}}oy.defaultOptions={size:[240,160],shape:"key",padding:10,position:"right-bottom",maskStyle:{border:"1px solid #ddd",background:"rgba(0, 0, 0, 0.1)"},containerStyle:{border:"1px solid #ddd",background:"#fff"}};let om=(t,e)=>Math.min(t,e),ov=(t,e)=>Math.max(t,e),ob={x1:0,y1:0,x2:0,y2:0,visibility:"hidden"};class ox extends iF{getNodes(){var t;let{filter:e}=this.options,n=(null===(t=this.context.element)||void 0===t?void 0:t.getNodes())||[],i=n.filter(t=>{var e;return"hidden"!==(0,en.Z)(t,["style","visibility"])&&(null===(e=this.context.viewport)||void 0===e?void 0:e.isInViewport(t.getRenderBounds()))});return e?i.filter(t=>e(t)):i}hideSnapline(){this.horizontalLine.style.visibility="hidden",this.verticalLine.style.visibility="hidden"}getLineWidth(t){let{lineWidth:e}=this.options["".concat(t,"LineStyle")];return+(e||ob.lineWidth||1)/this.context.graph.getZoom()}updateSnapline(t){let{verticalX:e,verticalMinY:n,verticalMaxY:i,horizontalY:r,horizontalMinX:a,horizontalMaxX:o}=t,[s,l]=this.context.canvas.getSize(),{offset:h}=this.options;null!==r?Object.assign(this.horizontalLine.style,{x1:h===1/0?0:a-h,y1:r,x2:h===1/0?s:o+h,y2:r,visibility:"visible",lineWidth:this.getLineWidth("horizontal")}):this.horizontalLine.style.visibility="hidden",null!==e?Object.assign(this.verticalLine.style,{x1:e,y1:h===1/0?0:n-h,x2:e,y2:h===1/0?l:i+h,visibility:"visible",lineWidth:this.getLineWidth("vertical")}):this.verticalLine.style.visibility="hidden"}getDelta(t){let e=this.context.graph.getZoom();return tP([t.dx,t.dy],e)}async bindEvents(){let{graph:t}=this.context;t.on(O.DRAG_START,this.onDragStart),t.on(O.DRAG,this.onDrag),t.on(O.DRAG_END,this.onDragEnd)}unbindEvents(){let{graph:t}=this.context;t.off(O.DRAG_START,this.onDragStart),t.off(O.DRAG,this.onDrag),t.off(O.DRAG_END,this.onDragEnd)}destroyElements(){var t,e;null===(t=this.horizontalLine)||void 0===t||t.destroy(),null===(e=this.verticalLine)||void 0===e||e.destroy()}destroy(){this.destroyElements(),this.unbindEvents(),super.destroy()}constructor(t,e){super(t,Object.assign({},ox.defaultOptions,e)),this.initSnapline=()=>{let t=this.context.canvas.getLayer("transient");this.horizontalLine||(this.horizontalLine=t.appendChild(new I.x1({style:{...ob,...this.options.horizontalLineStyle}}))),this.verticalLine||(this.verticalLine=t.appendChild(new I.x1({style:{...ob,...this.options.verticalLineStyle}})))},this.isHorizontalSticking=!1,this.isVerticalSticking=!1,this.enableStick=!0,this.autoSnapToLine=async(t,e,n)=>{let{verticalX:i,horizontalY:r}=n,{tolerance:a}=this.options,{min:[o,s],max:[l,h],center:[c,u]}=e,d=0,p=0;null!==i&&(oE(l,i){let{target:e}=t;if(this.isHorizontalSticking||this.isVerticalSticking){let[n,i]=this.getDelta(t);if(this.isHorizontalSticking&&this.isVerticalSticking&&.5>=Math.abs(n)&&.5>=Math.abs(i))return this.context.graph.translateElementBy({[e.id]:[-n,-i]},!1),!1;if(this.isHorizontalSticking&&.5>=Math.abs(i))return this.context.graph.translateElementBy({[e.id]:[0,-i]},!1),!1;if(this.isVerticalSticking&&.5>=Math.abs(n))return this.context.graph.translateElementBy({[e.id]:[-n,0]},!1),!1;this.isHorizontalSticking=!1,this.isVerticalSticking=!1,this.enableStick=!1,setTimeout(()=>{this.enableStick=!0},200)}return this.enableStick},this.calcSnaplineMetadata=(t,e)=>{let{tolerance:n,shape:i}=this.options,{min:[r,a],max:[o,s],center:[l,h]}=e,c=null,u=null,d=null,p=null,f=null,g=null;return this.getNodes().some(e=>{if((0,F.Z)(t.id,e.id))return!1;let y=ow(e,i).getRenderBounds(),{min:[m,v],max:[b,x],center:[E,w]}=y;return null===c&&(oE(E,l){this.initSnapline()},this.onDrag=async t=>{let{target:e}=t;if(this.options.autoSnap){let e=this.enableSnap(t);if(!e)return}let n=ow(e,this.options.shape).getRenderBounds(),i=this.calcSnaplineMetadata(e,n);this.hideSnapline(),(null!==i.verticalX||null!==i.horizontalY)&&this.updateSnapline(i),this.options.autoSnap&&await this.autoSnapToLine(e.id,n,i)},this.onDragEnd=()=>{this.hideSnapline()},this.bindEvents()}}ox.defaultOptions={tolerance:5,offset:20,autoSnap:!0,shape:"key",verticalLineStyle:{stroke:"#1783FF"},horizontalLineStyle:{stroke:"#1783FF"},filter:()=>!0};let oE=(t,e)=>Math.abs(t-e),ow=(t,e)=>"function"==typeof e?e(t):t.getShape(e);function oC(t,e){var n={YYYY:t.getFullYear(),MM:t.getMonth()+1,DD:t.getDate(),HH:t.getHours(),mm:t.getMinutes(),ss:t.getSeconds()},i=e;return Object.keys(n).forEach(function(t){var e=n[t];i=i.replace(t,"YYYY"===t?"".concat(e):"".concat(e).padStart(2,"0"))}),i}var oS={data:[],animate:{enter:!1,update:{duration:100,easing:"ease-in-out-sine",fill:"both"},exit:{duration:100,fill:"both"}},showArrow:!0,showGrid:!0,showLabel:!0,showLine:!0,showTick:!0,showTitle:!0,showTrunc:!1,dataThreshold:100,lineLineWidth:1,lineStroke:"black",crossPadding:10,titleFill:"black",titleFontSize:12,titlePosition:"lb",titleSpacing:0,titleTextAlign:"center",titleTextBaseline:"middle",lineArrow:function(){return new I.y$({style:{d:[["M",10,10],["L",-10,0],["L",10,-10],["L",0,0],["L",10,10],["Z"]],fill:"black",transformOrigin:"center"}})},labelAlign:"parallel",labelDirection:"positive",labelFontSize:12,labelSpacing:0,gridConnect:"line",gridControlAngles:[],gridDirection:"positive",gridLength:0,gridType:"segment",lineArrowOffset:15,lineArrowSize:10,tickDirection:"positive",tickLength:5,tickLineWidth:1,tickStroke:"black",labelOverlap:[]};(0,J.Z)({},oS,{style:{type:"arc"}}),(0,J.Z)({},oS,{style:{}});var oR=rK({mainGroup:"main-group",gridGroup:"grid-group",grid:"grid",lineGroup:"line-group",line:"line",tickGroup:"tick-group",tick:"tick",tickItem:"tick-item",labelGroup:"label-group",label:"label",labelItem:"label-item",titleGroup:"title-group",title:"title",lineFirst:"line-first",lineSecond:"line-second"},"axis");function oA(t,e){return[t[0]*e,t[1]*e]}function oO(t,e){return[t[0]+e[0],t[1]+e[1]]}function oM(t,e){return[t[0]-e[0],t[1]-e[1]]}function oT(t,e){return[Math.min(t[0],e[0]),Math.min(t[1],e[1])]}function ok(t,e){return[Math.max(t[0],e[0]),Math.max(t[1],e[1])]}function oP(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))}function oL(t){if(0===t[0]&&0===t[1])return[0,0];var e=Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2));return[t[0]/e,t[1]/e]}function oD(t){return t*Math.PI/180}function oN(t){return Number((180*t/Math.PI).toPrecision(5))}function oI(t,e){return t.style.opacity||(t.style.opacity=1),r8(t,{opacity:0},e)}var oB=["$el","cx","cy","d","dx","dy","fill","fillOpacity","filter","fontFamily","fontSize","fontStyle","fontVariant","fontWeight","height","img","increasedLineWidthForHitTesting","innerHTML","isBillboard","billboardRotation","isSizeAttenuation","isClosed","isOverflowing","leading","letterSpacing","lineDash","lineHeight","lineWidth","markerEnd","markerEndOffset","markerMid","markerStart","markerStartOffset","maxLines","metrics","miterLimit","offsetX","offsetY","opacity","path","points","r","radius","rx","ry","shadowColor","src","stroke","strokeOpacity","text","textAlign","textBaseline","textDecorationColor","textDecorationLine","textDecorationStyle","textOverflow","textPath","textPathSide","textPathStartOffset","transform","transformOrigin","visibility","width","wordWrap","wordWrapWidth","x","x1","x2","y","y1","y2","z1","z2","zIndex"];function o_(t){var e={};for(var n in t)oB.includes(n)&&(e[n]=t[n]);return e}var oF=rK({lineGroup:"line-group",line:"line",regionGroup:"region-group",region:"region"},"grid");function oZ(t){return t.reduce(function(t,e,n){return t.push((0,rE.ev)([0===n?"M":"L"],(0,rE.CR)(e),!1)),t},[])}function oj(t,e,n){return"surround"===e.type?function(t,e,n){var i=e.connect,r=e.center;if("line"===(void 0===i?"line":i))return oZ(t);if(!r)return[];var a=oP(t[0],r),o=n?0:1;return t.reduce(function(t,e,n){return 0===n?t.push((0,rE.ev)(["M"],(0,rE.CR)(e),!1)):t.push((0,rE.ev)(["A",a,a,0,0,o],(0,rE.CR)(e),!1)),t},[])}(t,e,n):oZ(t)}var oz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,rE.ZT)(e,t),e.prototype.render=function(t,e){t.type,t.center,t.areaFill,t.closed;var n,i,r,a,o,s=(0,rE._T)(t,["type","center","areaFill","closed"]),l=(i=void 0===(n=t.data)?[]:n,t.closed?i.map(function(t){var e=t.points,n=(0,rE.CR)(e,1)[0];return(0,rE.pi)((0,rE.pi)({},t),{points:(0,rE.ev)((0,rE.ev)([],(0,rE.CR)(e),!1),[n],!1)})}):i),h=rY(e).maybeAppendByClassName(oF.lineGroup,"g"),c=rY(e).maybeAppendByClassName(oF.regionGroup,"g"),u=(r=t.animate,a=t.isBillboard,o=l.map(function(e,n){return{id:e.id||"grid-line-".concat(n),d:oj(e.points,t)}}),h.selectAll(oF.line.class).data(o,function(t){return t.id}).join(function(t){return t.append("path").each(function(t,e){var n=r1(o_((0,rE.pi)({d:t.d},s)),[t,e,o]);this.attr((0,rE.pi)({class:oF.line.name,stroke:"#D9D9D9",lineWidth:1,lineDash:[4,4],isBillboard:a},n))})},function(t){return t.transition(function(t,e){return r8(this,r1(o_((0,rE.pi)({d:t.d},s)),[t,e,o]),r.update)})},function(t){return t.transition(function(){var t=this,e=oI(this,r.exit);return r3(e,function(){return t.remove()}),e})}).transitions()),d=function(t,e,n){var i=n.animate,r=n.connect,a=n.areaFill;if(e.length<2||!a||!r)return[];for(var o=Array.isArray(a)?a:[a,"transparent"],s=[],l=0;le?0:1;return"M".concat(f,",").concat(g,",A").concat(s,",").concat(l,",0,").concat(a>180?1:0,",").concat(E,",").concat(m,",").concat(v)}function oJ(t){var e=(0,rE.CR)(t,2),n=(0,rE.CR)(e[0],2),i=n[0],r=n[1],a=(0,rE.CR)(e[1],2);return{x1:i,y1:r,x2:a[0],y2:a[1]}}function o0(t){var e=t.type,n=t.gridCenter;return"linear"===e?n:n||t.center}function o1(t,e,n,i,r){return void 0===i&&(i=!0),void 0===r&&(r=!1),!!i&&t===e||!!r&&t===n||t>e&&t0,v=i-l,b=r-h,x=d*b-p*v;if(x<0===m)return!1;var E=f*b-g*v;return E<0!==m&&x>y!==m&&E>y!==m}(e,t)})}(o,c))return!0}}catch(t){i={error:t}}finally{try{h&&!h.done&&(r=l.return)&&r.call(l)}finally{if(i)throw i.error}}return!1}(u.firstChild,d.firstChild,rO(n)):0)?(o.add(s),o.add(d)):s=d}}catch(t){i={error:t}}finally{try{c&&!c.done&&(r=h.return)&&r.call(h)}finally{if(i)throw i.error}}return Array.from(o)}function o7(t,e){return(void 0===e&&(e={}),(0,_.Z)(t))?0:"number"==typeof t?t:Math.floor(al(t,e))}var st={parity:function(t,e){var n=e.seq,i=void 0===n?2:n;return t.filter(function(t,e){return!(e%i)||(rk(t),!1)})}},se=new Map([["hide",function(t,e,n,i){var r,a,o=t.length,s=e.keepHeader,l=e.keepTail;if(!(o<=1)&&(2!==o||!s||!l)){var h=st.parity,c=function(t){return t.forEach(i.show),t},u=2,d=t.slice(),p=t.slice(),f=Math.min.apply(Math,(0,rE.ev)([1],(0,rE.CR)(t.map(function(t){return t.getBBox().width})),!1));if("linear"===n.type&&(oX(n)||oq(n))){var g=aa(t[0]).left,y=Math.abs(aa(t[o-1]).right-g)||1;u=Math.max(Math.floor(o*f/y),u)}for(s&&(r=d.splice(0,1)[0]),l&&(a=d.splice(-1,1)[0],d.reverse()),c(d);uf+p;b-=p){var x=v(b);if("object"==typeof x)return x.value}}}],["wrap",function(t,e,n,i){var r,a,o=e.wordWrapWidth,s=void 0===o?50:o,l=e.maxLines,h=void 0===l?3:l,c=e.recoverWhenFailed,u=e.margin,d=void 0===u?[0,0,0,0]:u,p=t.map(function(t){return t.attr("maxLines")||1}),f=Math.min.apply(Math,(0,rE.ev)([],(0,rE.CR)(p),!1)),g=(r=n.type,a=n.labelDirection,"linear"===r&&oX(n)?"negative"===a?"bottom":"top":"middle"),y=function(e){return t.forEach(function(t,n){var r=Array.isArray(e)?e[n]:e;i.wrap(t,s,r,g)})};if(!(f>h)){for(var m=f;m<=h;m++)if(y(m),o5(t,n,d).length<1)return;(void 0===c||c)&&y(p)}}]]);function sn(t){for(var e=t;e<0;)e+=360;return Math.round(e%360)}function si(t,e){var n=(0,rE.CR)(t,2),i=n[0],r=n[1],a=(0,rE.CR)(e,2),o=a[0],s=a[1],l=(0,rE.CR)([i*o+r*s,i*s-r*o],2),h=l[0];return Math.atan2(l[1],h)}function sr(t,e,n){var i=n.type,r=n.labelAlign,a=oK(t,n),o=sn(e),s=sn(oN(si([1,0],a))),l="center",h="middle";return"linear"===i?[90,270].includes(s)&&0===o?(l="center",h=1===a[1]?"top":"bottom"):!(s%180)&&[90,270].includes(o)?l="center":0===s?o1(o,0,90,!1,!0)?l="start":(o1(o,0,90)||o1(o,270,360))&&(l="start"):90===s?o1(o,0,90,!1,!0)?l="start":(o1(o,90,180)||o1(o,270,360))&&(l="end"):270===s?o1(o,0,90,!1,!0)?l="end":(o1(o,90,180)||o1(o,270,360))&&(l="start"):180===s&&(90===o?l="start":(o1(o,0,90)||o1(o,270,360))&&(l="end")):"parallel"===r?h=o1(s,0,180,!0)?"top":"bottom":"horizontal"===r?o1(s,90,270,!1)?l="end":(o1(s,270,360,!1)||o1(s,0,90))&&(l="start"):"perpendicular"===r&&(l=o1(s,90,270)?"end":"start"),{textAlign:l,textBaseline:h}}function sa(t,e,n){var i=n.showTick,r=n.tickLength,a=n.tickDirection,o=n.labelDirection,s=n.labelSpacing,l=e.indexOf(t),h=r1(s,[t,l,e]),c=(0,rE.CR)([oK(t.value,n),function(){for(var t=[],e=0;e1))||null==a||a(e,i,t,n)})}function sl(t,e,n,i,r){var a,o=n.indexOf(e),s=rY(t).append((a=r.labelFormatter,(0,td.Z)(a)?function(){return as(r1(a,[e,o,n,oK(e.value,r)]))}:function(){return as(e.label||"")})).attr("className",oR.labelItem.name).node(),l=(0,rE.CR)(rW(oH(i,[e,o,n])),2),h=l[0],c=l[1],u=c.transform,d=(0,rE._T)(c,["transform"]);o2(s,u);var p=function(t,e,n){var i,r,a=n.labelAlign;if(null===(r=e.style.transform)||void 0===r?void 0:r.includes("rotate"))return e.getLocalEulerAngles();var o=0,s=oK(t.value,n),l=oU(t.value,n);return"horizontal"===a?0:(o1(i=(oN(o="perpendicular"===a?si([1,0],s):si([l[0]<0?-1:1,0],l))+360)%180,-90,90)||(i+=180),i)}(e,s,r);return s.getLocalEulerAngles()||s.setLocalEulerAngles(p),so(s,(0,rE.pi)((0,rE.pi)({},sr(e.value,p,r)),h)),t.attr(d),s}function sh(t,e){return oY(t,e.tickDirection,e)}function sc(t,e,n,i,r,a){var o,s,l,h,c,u,d,p,f,g,y,m,v,b,x,E,w,C,S,R,A,O=(o=rY(this),s=i.tickFormatter,l=sh(t.value,i),h="line",(0,td.Z)(s)&&(h=function(){return r1(s,[t,e,n,l])}),o.append(h).attr("className",oR.tickItem.name));c=sh(t.value,i),u=i.tickLength,f=(0,rE.CR)((d=r1(u,[t,e,n]),[[0,0],[(p=(0,rE.CR)(c,2))[0]*d,p[1]*d]]),2),y=(g=(0,rE.CR)(f[0],2))[0],m=g[1],x=(b={x1:y,x2:(v=(0,rE.CR)(f[1],2))[0],y1:m,y2:v[1]}).x1,E=b.x2,w=b.y1,C=b.y2,R=(S=(0,rE.CR)(rW(oH(r,[t,e,n,c])),2))[0],A=S[1],"line"===O.node().nodeName&&O.styles((0,rE.pi)({x1:x,x2:E,y1:w,y2:C},R)),this.attr(A),O.styles(R);var M=(0,rE.CR)(o$(t.value,i),2),T=M[0],k=M[1];return r8(this,{transform:"translate(".concat(T,", ").concat(k,")")},a)}function su(t,e,n,i,r){var a=rG(i,"title"),o=(0,rE.CR)(rW(a),2),s=o[0],l=o[1],h=l.transform,c=l.transformOrigin,u=(0,rE._T)(l,["transform","transformOrigin"]);e.styles(u);var d=h||function(t,e,n){var i=2*t.getGeometryBounds().halfExtents[1];if("vertical"===e){if("left"===n)return"rotate(-90) translate(0, ".concat(i/2,")");if("right"===n)return"rotate(-90) translate(0, -".concat(i/2,")")}return""}(t.node(),s.direction,s.position);t.styles((0,rE.pi)((0,rE.pi)({},s),{transformOrigin:c})),o2(t.node(),d);var p=function(t,e,n){var i=n.titlePosition,r=void 0===i?"lb":i,a=n.titleSpacing,o=rq(r),s=t.node().getLocalBounds(),l=(0,rE.CR)(s.min,2),h=l[0],c=l[1],u=(0,rE.CR)(s.halfExtents,2),d=u[0],p=u[1],f=(0,rE.CR)(e.node().getLocalBounds().halfExtents,2),g=f[0],y=f[1],m=(0,rE.CR)([h+d,c+p],2),v=m[0],b=m[1],x=(0,rE.CR)(rO(a),4),E=x[0],w=x[1],C=x[2],S=x[3];if(["start","end"].includes(r)&&"linear"===n.type){var R=n.startPos,A=n.endPos,O=(0,rE.CR)("start"===r?[R,A]:[A,R],2),M=O[0],T=O[1],k=oL([-T[0]+M[0],-T[1]+M[1]]),P=(0,rE.CR)(oA(k,E),2),L=P[0],D=P[1];return{x:M[0]+L,y:M[1]+D}}return o.includes("t")&&(b-=p+y+E),o.includes("r")&&(v+=d+g+w),o.includes("l")&&(v-=d+g+S),o.includes("b")&&(b+=p+y+C),{x:v,y:b}}(rY(n._offscreen||n.querySelector(oR.mainGroup.class)),e,i),f=p.x,g=p.y;return r8(e.node(),{transform:"translate(".concat(f,", ").concat(g,")")},r)}function sd(t,e,n,i){var r=t.showLine,a=t.showTick,o=t.showLabel,s=r$(r,e.maybeAppendByClassName(oR.lineGroup,"g"),function(e){var n,r,a,o,s,l,h,c,u,d,p;return n=e,r=t,a=i,d=r.type,p=rG(r,"line"),"linear"===d?u=function(t,e,n,i){var r,a,o,s,l,h,c,u,d,p,f,g,y,m,v,b,x,E,w=e.showTrunc,C=e.startPos,S=e.endPos,R=e.truncRange,A=e.lineExtension,O=(0,rE.CR)([C,S],2),M=(0,rE.CR)(O[0],2),T=M[0],k=M[1],P=(0,rE.CR)(O[1],2),L=P[0],D=P[1],N=(0,rE.CR)(A?(void 0===(r=A)&&(r=[0,0]),a=(0,rE.CR)([C,S,r],3),s=(o=(0,rE.CR)(a[0],2))[0],l=o[1],c=(h=(0,rE.CR)(a[1],2))[0],u=h[1],p=(d=(0,rE.CR)(a[2],2))[0],f=d[1],v=Math.sqrt(Math.pow(y=(g=(0,rE.CR)([c-s,u-l],2))[0],2)+Math.pow(m=g[1],2)),[(x=(b=(0,rE.CR)([-p/v,f/v],2))[0])*y,x*m,(E=b[1])*y,E*m]):[,,,,].fill(0),4),I=N[0],B=N[1],_=N[2],F=N[3],Z=function(e){return t.selectAll(oR.line.class).data(e,function(t,e){return e}).join(function(t){return t.append("line").attr("className",function(t){return"".concat(oR.line.name," ").concat(t.className)}).styles(n).transition(function(t){return r8(this,oJ(t.line),!1)})},function(t){return t.styles(n).transition(function(t){return r8(this,oJ(t.line),i.update)})},function(t){return t.remove()}).transitions()};if(!w||!R)return Z([{line:[[T+I,k+B],[L+_,D+F]],className:oR.line.name}]);var j=(0,rE.CR)(R,2),z=j[0],G=j[1],H=L-T,W=D-k,V=(0,rE.CR)([T+H*z,k+W*z],2),U=V[0],Y=V[1],K=(0,rE.CR)([T+H*G,k+W*G],2),$=K[0],X=K[1],q=Z([{line:[[T+I,k+B],[U,Y]],className:oR.lineFirst.name},{line:[[$,X],[L+_,D+F]],className:oR.lineSecond.name}]);return e.truncRange,e.truncShape,e.lineExtension,q}(n,r,oG(p,"arrow"),a):(o=oG(p,"arrow"),s=r.startAngle,l=r.endAngle,h=r.center,c=r.radius,u=n.selectAll(oR.line.class).data([{d:oQ.apply(void 0,(0,rE.ev)((0,rE.ev)([s,l],(0,rE.CR)(h),!1),[c],!1))}],function(t,e){return e}).join(function(t){return t.append("path").attr("className",oR.line.name).styles(r).styles({d:function(t){return t.d}})},function(t){return t.transition(function(){var t,e,n,i,r,o=this,u=function(t,e,n,i){if(!i)return t.attr("__keyframe_data__",n),null;var r=i.duration,a=function t(e,n){var i,r,a,o,s,l;return"number"==typeof e&&"number"==typeof n?function(t){return e*(1-t)+n*t}:Array.isArray(e)&&Array.isArray(n)?(i=n?n.length:0,r=e?Math.min(i,e.length):0,function(a){var o=Array(r),s=Array(i),l=0;for(l=0;lc[0])||!(e=0?(s[l]+=r[l],r[l]=s[l]):(s[l]+=a[l],a[l]=s[l]);return e}var sT=function(t){function e(e){return t.call(this,e,{type:"line",x:0,y:0,width:200,height:20,isStack:!1,color:["#83daad","#edbf45","#d2cef9","#e290b3","#6f63f4"],smooth:!0,lineLineWidth:1,areaOpacity:0,isGroup:!1,columnLineWidth:1,columnStroke:"#fff",scale:1,spacing:0})||this}return(0,rE.ZT)(e,t),Object.defineProperty(e.prototype,"rawData",{get:function(){var t=this.attributes.data;if(!t||(null==t?void 0:t.length)===0)return[[]];var e=(0,tp.Z)(t);return(0,eJ.Z)(e[0])?[e]:e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.attributes.isStack?sM(this.rawData):this.rawData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scales",{get:function(){return this.createScales(this.data)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseline",{get:function(){var t=this.scales.y,e=(0,rE.CR)(t.getOptions().domain||[0,0],2),n=e[0],i=e[1];return i<0?t.map(i):t.map(n<0?0:n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerShape",{get:function(){var t=this.attributes;return{width:t.width,height:t.height}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linesStyle",{get:function(){var t=this,e=this.attributes,n=e.type,i=e.isStack,r=e.smooth;if("line"!==n)throw Error("linesStyle can only be used in line type");var a=rG(this.attributes,"area"),o=rG(this.attributes,"line"),s=this.containerShape.width,l=this.data;if(0===l[0].length)return{lines:[],areas:[]};var h=this.scales,c=(f=(d={type:"line",x:h.x,y:h.y}).x,g=d.y,m=(y=(0,rE.CR)(g.getOptions().range||[0,0],2))[0],(v=y[1])>m&&(v=(p=(0,rE.CR)([m,v],2))[0],m=p[1]),l.map(function(t){return t.map(function(t,e){return[f.map(e),(0,im.Z)(g.map(t),v,m)]})})),u=[];if(a){var d,p,f,g,y,m,v,b=this.baseline;u=i?r?function(t,e,n){for(var i=[],r=t.length-1;r>=0;r-=1){var a=t[r],o=sE(a),s=void 0;if(0===r)s=sw(o,e,n);else{var l=sE(t[r-1],!0),h=a[0];l[0][0]="L",s=(0,rE.ev)((0,rE.ev)((0,rE.ev)([],(0,rE.CR)(o),!1),(0,rE.CR)(l),!1),[(0,rE.ev)(["M"],(0,rE.CR)(h),!1),["Z"]],!1)}i.push(s)}return i}(c,s,b):function(t,e,n){for(var i=[],r=t.length-1;r>=0;r-=1){var a=sx(t[r]),o=void 0;if(0===r)o=sw(a,e,n);else{var s=sx(t[r-1],!0);s[0][0]="L",o=(0,rE.ev)((0,rE.ev)((0,rE.ev)([],(0,rE.CR)(a),!1),(0,rE.CR)(s),!1),[["Z"]],!1)}i.push(o)}return i}(c,s,b):c.map(function(t){return sw(r?sE(t):sx(t),s,b)})}return{lines:c.map(function(e,n){return(0,rE.pi)({stroke:t.getColor(n),d:r?sE(e):sx(e)},o)}),areas:u.map(function(e,n){return(0,rE.pi)({d:e,fill:t.getColor(n)},a)})}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnsStyle",{get:function(){var t=this,e=rG(this.attributes,"column"),n=this.attributes,i=n.isStack,r=n.type,a=n.scale;if("column"!==r)throw Error("columnsStyle can only be used in column type");var o=this.containerShape.height,s=this.rawData;if(!s)return{columns:[]};i&&(s=sM(s));var l=this.createScales(s),h=l.x,c=l.y,u=(0,rE.CR)(sO(s),2),d=u[0],p=u[1],f=new sy.b({domain:[0,p-(d>0?0:d)],range:[0,o*a]}),g=h.getBandWidth(),y=this.rawData;return{columns:s.map(function(n,r){return n.map(function(n,a){var o=g/s.length;return(0,rE.pi)((0,rE.pi)({fill:t.getColor(r)},e),i?{x:h.map(a),y:c.map(n),width:g,height:f.map(y[r][a])}:{x:h.map(a)+o*r,y:n>=0?c.map(n):c.map(0),width:o,height:f.map(Math.abs(n))})})})}},enumerable:!1,configurable:!0}),e.prototype.render=function(t,e){(n=".container",e.querySelector(n)?rY(e).select(n):rY(e).append("rect")).attr("className","container").node();var n,i=t.type,r=t.x,a=t.y,o="spark".concat(i),s=(0,rE.pi)({x:r,y:a},"line"===i?this.linesStyle:this.columnsStyle);rY(e).selectAll(".spark").data([i]).join(function(t){return t.append(function(t){return"line"===t?new sb({className:o,style:s}):new sv({className:o,style:s})}).attr("className","spark ".concat(o))},function(t){return t.update(s)},function(t){return t.remove()})},e.prototype.getColor=function(t){var e=this.attributes.color;return(0,ex.Z)(e)?e[t%e.length]:(0,td.Z)(e)?e.call(null,t):e},e.prototype.createScales=function(t){var e,n,i=this.attributes,r=i.type,a=i.scale,o=i.range,s=void 0===o?[]:o,l=i.spacing,h=this.containerShape,c=h.width,u=h.height,d=(0,rE.CR)(sO(t),2),p=d[0],f=d[1],g=new sy.b({domain:[null!==(e=s[0])&&void 0!==e?e:p,null!==(n=s[1])&&void 0!==n?n:f],range:[u,u*(1-a)]});return"line"===r?{type:r,x:new sy.b({domain:[0,t[0].length-1],range:[0,c]}),y:g}:{type:r,x:new sm.t({domain:t[0].map(function(t,e){return e}),range:[0,c],paddingInner:l,paddingOuter:l/2,align:.5}),y:g}},e.tag="sparkline",e}(rF),sk={fill:"#fff",lineWidth:1,radius:2,size:10,stroke:"#bfbfbf",strokeOpacity:1,zIndex:0},sP={fill:"#000",fillOpacity:.45,fontSize:12,textAlign:"center",textBaseline:"middle",zIndex:1},sL={x:0,y:0,orientation:"horizontal",showLabel:!0,type:"start"},sD=rK({foreground:"foreground",handle:"handle",selection:"selection",sparkline:"sparkline",sparklineGroup:"sparkline-group",track:"track",brushArea:"brush-area"},"slider"),sN=rK({labelGroup:"label-group",label:"label",iconGroup:"icon-group",icon:"icon",iconRect:"icon-rect",iconLine:"icon-line"},"handle"),sI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,rE.ZT)(e,t),e.prototype.render=function(t,e){var n=t.x,i=t.y,r=t.size,a=void 0===r?10:r,o=t.radius,s=t.orientation,l=(0,rE._T)(t,["x","y","size","radius","orientation"]),h=2.4*a,c=rY(e).maybeAppendByClassName(sN.iconRect,"rect").styles((0,rE.pi)((0,rE.pi)({},l),{width:a,height:h,radius:void 0===o?a/4:o,x:n-a/2,y:i-h/2,transformOrigin:"center"})),u=n+1/3*a-a/2,d=n+2/3*a-a/2,p=i+1/4*h-h/2,f=i+3/4*h-h/2;c.maybeAppendByClassName("".concat(sN.iconLine,"-1"),"line").styles((0,rE.pi)({x1:u,x2:u,y1:p,y2:f},l)),c.maybeAppendByClassName("".concat(sN.iconLine,"-2"),"line").styles((0,rE.pi)({x1:d,x2:d,y1:p,y2:f},l)),"vertical"===s&&(c.node().style.transform="rotate(90)")},e}(rF),sB=function(t){function e(e){return t.call(this,e,sL)||this}return(0,rE.ZT)(e,t),e.prototype.renderLabel=function(t){var e=this,n=this.attributes,i=n.x,r=n.y,a=n.showLabel,o=rG(this.attributes,"label"),s=o.x,l=void 0===s?0:s,h=o.y,c=void 0===h?0:h,u=o.transform,d=o.transformOrigin,p=(0,rE._T)(o,["x","y","transform","transformOrigin"]),f=(0,rE.CR)(rW(p,[]),2),g=f[0],y=f[1],m=rY(t).maybeAppendByClassName(sN.labelGroup,"g").styles(y),v=(0,rE.pi)((0,rE.pi)({},sP),g),b=v.text,x=(0,rE._T)(v,["text"]);r$(!!a,m,function(t){e.label=t.maybeAppendByClassName(sN.label,"text").styles((0,rE.pi)((0,rE.pi)({},x),{x:i+l,y:r+c,transform:u,transformOrigin:d,text:"".concat(b)})),e.label.on("mousedown",function(t){t.stopPropagation()}),e.label.on("touchstart",function(t){t.stopPropagation()})})},e.prototype.renderIcon=function(t){var e=this.attributes,n=e.x,i=e.y,r=e.orientation,a=e.type,o=(0,rE.pi)((0,rE.pi)({x:n,y:i,orientation:r},sk),rG(this.attributes,"icon")),s=this.attributes.iconShape,l=void 0===s?function(){return new sI({style:o})}:s;rY(t).maybeAppendByClassName(sN.iconGroup,"g").selectAll(sN.icon.class).data([l]).join(function(t){return t.append("string"==typeof l?l:function(){return l(a)}).attr("className",sN.icon.name)},function(t){return t.update(o)},function(t){return t.remove()})},e.prototype.render=function(t,e){this.renderIcon(e),this.renderLabel(e)},e}(rF),s_=function(t){function e(e){var n=t.call(this,e,(0,rE.pi)((0,rE.pi)((0,rE.pi)({x:0,y:0,animate:{duration:100,fill:"both"},brushable:!0,formatter:function(t){return t.toString()},handleSpacing:2,orientation:"horizontal",padding:0,autoFitLabel:!0,scrollable:!0,selectionFill:"#5B8FF9",selectionFillOpacity:.45,selectionZIndex:2,showHandle:!0,showLabel:!0,slidable:!0,trackFill:"#416180",trackLength:200,trackOpacity:.05,trackSize:20,trackZIndex:-1,values:[0,1],type:"range",selectionType:"select",handleIconOffset:0},rH(sL,"handle")),rH(sk,"handleIcon")),rH(sP,"handleLabel")))||this;return n.range=[0,1],n.onDragStart=function(t){return function(e){e.stopPropagation(),n.target=t,n.prevPos=n.getOrientVal(sf(e));var i=n.availableSpace,r=i.x,a=i.y,o=n.getBBox(),s=o.x,l=o.y;n.selectionStartPos=n.getRatio(n.prevPos-n.getOrientVal([r,a])-n.getOrientVal([+s,+l])),n.selectionWidth=0,document.addEventListener("pointermove",n.onDragging),document.addEventListener("pointerup",n.onDragEnd)}},n.onDragging=function(t){var e=n.attributes,i=e.slidable,r=e.brushable,a=e.type;t.stopPropagation();var o=n.getOrientVal(sf(t)),s=o-n.prevPos;if(s){var l=n.getRatio(s);switch(n.target){case"start":i&&n.setValuesOffset(l);break;case"end":i&&n.setValuesOffset(0,l);break;case"selection":i&&n.setValuesOffset(l,l);break;case"track":if(!r)return;n.selectionWidth+=l,"range"===a?n.innerSetValues([n.selectionStartPos,n.selectionStartPos+n.selectionWidth].sort(),!0):n.innerSetValues([0,n.selectionStartPos+n.selectionWidth],!0)}n.prevPos=o}},n.onDragEnd=function(){document.removeEventListener("pointermove",n.onDragging),document.removeEventListener("pointermove",n.onDragging),document.removeEventListener("pointerup",n.onDragEnd),n.target="",n.updateHandlesPosition(!1)},n.onValueChange=function(t){var e=n.attributes,i=e.onChange,r=e.type,a="range"===r?t:t[1],o="range"===r?n.getValues():n.getValues()[1],s=new I.Aw("valuechange",{detail:{oldValue:a,value:o}});n.dispatchEvent(s),null==i||i(o)},n.selectionStartPos=0,n.selectionWidth=0,n.prevPos=0,n.target="",n}return(0,rE.ZT)(e,t),Object.defineProperty(e.prototype,"values",{get:function(){return this.attributes.values},set:function(t){this.attributes.values=this.clampValues(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sparklineStyle",{get:function(){if("horizontal"!==this.attributes.orientation)return null;var t=rG(this.attributes,"sparkline");return(0,rE.pi)((0,rE.pi)({zIndex:0},this.availableSpace),t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){var t=this.attributes,e=t.trackLength,n=t.trackSize,i=(0,rE.CR)(this.getOrientVal([[e,n],[n,e]]),2);return{width:i[0],height:i[1]}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableSpace",{get:function(){var t=this.attributes,e=(t.x,t.y,t.padding),n=(0,rE.CR)(rO(e),4),i=n[0],r=n[1],a=n[2],o=n[3],s=this.shape;return{x:o,y:i,width:s.width-(o+r),height:s.height-(i+a)}},enumerable:!1,configurable:!0}),e.prototype.getValues=function(){return this.values},e.prototype.setValues=function(t,e){void 0===t&&(t=[0,0]),void 0===e&&(e=!1),this.attributes.values=t;var n=!1!==e&&this.attributes.animate;this.updateSelectionArea(n),this.updateHandlesPosition(n)},e.prototype.updateSelectionArea=function(t){var e=this.calcSelectionArea();this.foregroundGroup.selectAll(sD.selection.class).each(function(n,i){r8(this,e[i],t)})},e.prototype.updateHandlesPosition=function(t){this.attributes.showHandle&&(this.startHandle&&r8(this.startHandle,this.getHandleStyle("start"),t),this.endHandle&&r8(this.endHandle,this.getHandleStyle("end"),t))},e.prototype.innerSetValues=function(t,e){void 0===t&&(t=[0,0]),void 0===e&&(e=!1);var n=this.values,i=this.clampValues(t);this.attributes.values=i,this.setValues(i),e&&this.onValueChange(n)},e.prototype.renderTrack=function(t){var e=this.attributes,n=e.x,i=e.y,r=rG(this.attributes,"track");this.trackShape=rY(t).maybeAppendByClassName(sD.track,"rect").styles((0,rE.pi)((0,rE.pi)({x:n,y:i},this.shape),r))},e.prototype.renderBrushArea=function(t){var e=this.attributes,n=e.x,i=e.y,r=e.brushable;this.brushArea=rY(t).maybeAppendByClassName(sD.brushArea,"rect").styles((0,rE.pi)({x:n,y:i,fill:"transparent",cursor:r?"crosshair":"default"},this.shape))},e.prototype.renderSparkline=function(t){var e=this,n=this.attributes,i=n.x,r=n.y;r$("horizontal"===n.orientation,rY(t).maybeAppendByClassName(sD.sparklineGroup,"g"),function(t){var n=(0,rE.pi)((0,rE.pi)({},e.sparklineStyle),{x:i,y:r});t.maybeAppendByClassName(sD.sparkline,function(){return new sT({style:n})}).update(n)})},e.prototype.renderHandles=function(){var t,e=this,n=this.attributes,i=n.showHandle,r=n.type,a=this;null===(t=this.foregroundGroup)||void 0===t||t.selectAll(sD.handle.class).data((i?"range"===r?["start","end"]:["end"]:[]).map(function(t){return{type:t}}),function(t){return t.type}).join(function(t){return t.append(function(t){var n=t.type;return new sB({style:e.getHandleStyle(n)})}).each(function(t){var e=t.type;this.attr("class","".concat(sD.handle.name," ").concat(e,"-handle")),a["".concat(e,"Handle")]=this,this.addEventListener("pointerdown",a.onDragStart(e))})},function(t){return t.each(function(t){var e=t.type;this.update(a.getHandleStyle(e))})},function(t){return t.each(function(t){var e=t.type;a["".concat(e,"Handle")]=void 0}).remove()})},e.prototype.renderSelection=function(t){var e=this.attributes,n=e.x,i=e.y,r=e.type,a=e.selectionType;this.foregroundGroup=rY(t).maybeAppendByClassName(sD.foreground,"g");var o=rG(this.attributes,"selection"),s=function(t){return t.style("visibility",function(t){return t.show?"visible":"hidden"}).style("cursor",function(t){return"select"===a?"grab":"invert"===a?"crosshair":"default"}).styles((0,rE.pi)((0,rE.pi)({},o),{transform:"translate(".concat(n,", ").concat(i,")")}))},l=this;this.foregroundGroup.selectAll(sD.selection.class).data("value"===r?[]:this.calcSelectionArea().map(function(t,e){return{style:(0,rE.pi)({},t),index:e,show:"select"===a?1===e:1!==e}}),function(t){return t.index}).join(function(t){return t.append("rect").attr("className",sD.selection.name).call(s).each(function(t,e){var n=this;1===e?(l.selectionShape=rY(this),this.on("pointerdown",function(t){n.attr("cursor","grabbing"),l.onDragStart("selection")(t)}),l.dispatchCustomEvent(this,"pointerenter","selectionMouseenter"),l.dispatchCustomEvent(this,"pointerleave","selectionMouseleave"),l.dispatchCustomEvent(this,"click","selectionClick"),this.addEventListener("pointerdown",function(){n.attr("cursor","grabbing")}),this.addEventListener("pointerup",function(){n.attr("cursor","pointer")}),this.addEventListener("pointerover",function(){n.attr("cursor","pointer")})):this.on("pointerdown",l.onDragStart("track"))})},function(t){return t.call(s)},function(t){return t.remove()}),this.updateSelectionArea(!1),this.renderHandles()},e.prototype.render=function(t,e){this.renderTrack(e),this.renderSparkline(e),this.renderBrushArea(e),this.renderSelection(e)},e.prototype.clampValues=function(t,e){void 0===e&&(e=4);var n,i=(0,rE.CR)(this.range,2),r=i[0],a=i[1],o=(0,rE.CR)(this.getValues().map(function(t){return sg(t,e)}),2),s=o[0],l=o[1],h=Array.isArray(t)?t:[s,null!=t?t:l],c=(0,rE.CR)((h||[s,l]).map(function(t){return sg(t,e)}),2),u=c[0],d=c[1];if("value"===this.attributes.type)return[0,(0,im.Z)(d,r,a)];u>d&&(u=(n=(0,rE.CR)([d,u],2))[0],d=n[1]);var p=d-u;return p>a-r?[r,a]:ua?l===a&&s===u?[u,a]:[a-p,a]:[u,d]},e.prototype.calcSelectionArea=function(t){var e=(0,rE.CR)(this.clampValues(t),2),n=e[0],i=e[1],r=this.availableSpace,a=r.x,o=r.y,s=r.width,l=r.height;return this.getOrientVal([[{y:o,height:l,x:a,width:n*s},{y:o,height:l,x:n*s+a,width:(i-n)*s},{y:o,height:l,x:i*s,width:(1-i)*s}],[{x:a,width:s,y:o,height:n*l},{x:a,width:s,y:n*l+o,height:(i-n)*l},{x:a,width:s,y:i*l,height:(1-i)*l}]])},e.prototype.calcHandlePosition=function(t){var e=this.attributes.handleIconOffset,n=this.availableSpace,i=n.x,r=n.y,a=n.width,o=n.height,s=(0,rE.CR)(this.clampValues(),2),l=s[0],h=s[1],c=("start"===t?l:h)*this.getOrientVal([a,o])+("start"===t?-e:e);return{x:i+this.getOrientVal([c,a/2]),y:r+this.getOrientVal([o/2,c])}},e.prototype.inferTextStyle=function(t){return"horizontal"===this.attributes.orientation?{}:"start"===t?{transformOrigin:"left center",transform:"rotate(90)",textAlign:"start"}:"end"===t?{transformOrigin:"right center",transform:"rotate(90)",textAlign:"end"}:{}},e.prototype.calcHandleText=function(t){var e,n=this.attributes,i=n.type,r=n.orientation,a=n.formatter,o=n.autoFitLabel,s=rG(this.attributes,"handle"),l=rG(s,"label"),h=s.spacing,c=this.getHandleSize(),u=this.clampValues(),d=a("start"===t?u[0]:u[1]),p=new rV({style:(0,rE.pi)((0,rE.pi)((0,rE.pi)({},l),this.inferTextStyle(t)),{text:d})}),f=p.getBBox(),g=f.width,y=f.height;if(p.destroy(),!o){if("value"===i)return{text:d,x:0,y:-y-h};var m=h+c+("horizontal"===r?g/2:0);return(e={text:d})["horizontal"===r?"x":"y"]="start"===t?-m:m,e}var v=0,b=0,x=this.availableSpace,E=x.width,w=x.height,C=this.calcSelectionArea()[1],S=C.x,R=C.y,A=C.width,O=C.height,M=h+c;if("horizontal"===r){var T=M+g/2;v="start"===t?S-M-g>0?-T:T:E-S-A-M>g?T:-T}else{var k=y+M;b="start"===t?R-c>y?-k:M:w-(R+O)-c>y?k:-M}return{x:v,y:b,text:d}},e.prototype.getHandleLabelStyle=function(t){var e=rG(this.attributes,"handleLabel");return(0,rE.pi)((0,rE.pi)((0,rE.pi)({},e),this.calcHandleText(t)),this.inferTextStyle(t))},e.prototype.getHandleIconStyle=function(){var t=this.attributes.handleIconShape,e=rG(this.attributes,"handleIcon"),n=this.getOrientVal(["ew-resize","ns-resize"]),i=this.getHandleSize();return(0,rE.pi)({cursor:n,shape:t,size:i},e)},e.prototype.getHandleStyle=function(t){var e=this.attributes,n=e.x,i=e.y,r=e.showLabel,a=e.showLabelOnInteraction,o=e.orientation,s=this.calcHandlePosition(t),l=s.x,h=s.y,c=this.calcHandleText(t),u=r;return!r&&a&&(u=!!this.target),(0,rE.pi)((0,rE.pi)((0,rE.pi)({},rH(this.getHandleIconStyle(),"icon")),rH((0,rE.pi)((0,rE.pi)({},this.getHandleLabelStyle(t)),c),"label")),{transform:"translate(".concat(l+n,", ").concat(h+i,")"),orientation:o,showLabel:u,type:t,zIndex:3})},e.prototype.getHandleSize=function(){var t=this.attributes,e=t.handleIconSize,n=t.width,i=t.height;return e||Math.floor((this.getOrientVal([+i,+n])+4)/2.4)},e.prototype.getOrientVal=function(t){var e=(0,rE.CR)(t,2),n=e[0],i=e[1];return"horizontal"===this.attributes.orientation?n:i},e.prototype.setValuesOffset=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=!1);var i=this.attributes.type,r=(0,rE.CR)(this.getValues(),2),a=[r[0]+("range"===i?t:0),r[1]+e].sort();n?this.setValues(a):this.innerSetValues(a,!0)},e.prototype.getRatio=function(t){var e=this.availableSpace,n=e.width,i=e.height;return t/this.getOrientVal([n,i])},e.prototype.dispatchCustomEvent=function(t,e,n){var i=this;t.on(e,function(t){t.stopPropagation(),i.dispatchEvent(new I.Aw(n,{detail:t}))})},e.prototype.bindEvents=function(){this.addEventListener("wheel",this.onScroll);var t=this.brushArea;this.dispatchCustomEvent(t,"click","trackClick"),this.dispatchCustomEvent(t,"pointerenter","trackMouseenter"),this.dispatchCustomEvent(t,"pointerleave","trackMouseleave"),t.on("pointerdown",this.onDragStart("track"))},e.prototype.onScroll=function(t){if(this.attributes.scrollable){var e=t.deltaX,n=t.deltaY||e,i=this.getRatio(n);this.setValuesOffset(i,i,!0)}},e.tag="slider",e}(rF),sF={backgroundFill:"#262626",backgroundLineCap:"round",backgroundLineWidth:1,backgroundStroke:"#333",backgroundZIndex:-1,formatter:function(t){return t.toString()},labelFill:"#fff",labelFontSize:12,labelTextBaseline:"middle",padding:[2,4],position:"right",radius:0,zIndex:999},sZ=rK({background:"background",labelGroup:"label-group",label:"label"},"indicator"),sj=function(t){function e(e){var n=t.call(this,e,sF)||this;return n.point=[0,0],n.group=n.appendChild(new I.ZA({})),n.isMutationObserved=!0,n}return(0,rE.ZT)(e,t),e.prototype.renderBackground=function(){if(this.label){var t=this.attributes,e=t.position,n=t.padding,i=(0,rE.CR)(rO(n),4),r=i[0],a=i[1],o=i[2],s=i[3],l=this.label.node().getLocalBounds(),h=l.min,c=l.max,u=new rw(h[0]-s,h[1]-r,c[0]+a-h[0]+s,c[1]+o-h[1]+r),d=this.getPath(e,u),p=rG(this.attributes,"background");this.background=rY(this.group).maybeAppendByClassName(sZ.background,"path").styles((0,rE.pi)((0,rE.pi)({},p),{d:d})),this.group.appendChild(this.label.node())}},e.prototype.renderLabel=function(){var t=this.attributes,e=t.formatter,n=t.labelText,i=rG(this.attributes,"label"),r=(0,rE.CR)(rW(i),2),a=r[0],o=r[1],s=(a.text,(0,rE._T)(a,["text"]));this.label=rY(this.group).maybeAppendByClassName(sZ.labelGroup,"g").styles(o),n&&this.label.maybeAppendByClassName(sZ.label,function(){return as(e(n))}).style("text",e(n).toString()).selectAll("text").styles(s)},e.prototype.adjustLayout=function(){var t=(0,rE.CR)(this.point,2),e=t[0],n=t[1],i=this.attributes,r=i.x,a=i.y;this.group.attr("transform","translate(".concat(r-e,", ").concat(a-n,")"))},e.prototype.getPath=function(t,e){var n=this.attributes.radius,i=e.x,r=e.y,a=e.width,o=e.height,s=[["M",i+n,r],["L",i+a-n,r],["A",n,n,0,0,1,i+a,r+n],["L",i+a,r+o-n],["A",n,n,0,0,1,i+a-n,r+o],["L",i+n,r+o],["A",n,n,0,0,1,i,r+o-n],["L",i,r+n],["A",n,n,0,0,1,i+n,r],["Z"]],l={top:4,right:6,bottom:0,left:2}[t],h=this.createCorner([s[l].slice(-2),s[l+1].slice(-2)]);return s.splice.apply(s,(0,rE.ev)([l+1,1],(0,rE.CR)(h),!1)),s[0][0]="M",s},e.prototype.createCorner=function(t,e){void 0===e&&(e=10);var n=ao.apply(void 0,(0,rE.ev)([],(0,rE.CR)(t),!1)),i=(0,rE.CR)(t,2),r=(0,rE.CR)(i[0],2),a=r[0],o=r[1],s=(0,rE.CR)(i[1],2),l=s[0],h=s[1],c=(0,rE.CR)(n?[l-a,[a,l]]:[h-o,[o,h]],2),u=c[0],d=(0,rE.CR)(c[1],2),p=d[0],f=d[1],g=u/2,y=e*(u/Math.abs(u)),m=y/2,v=y*Math.sqrt(3)/2*.8,b=(0,rE.CR)([p,p+g-m,p+g,p+g+m,f],5),x=b[0],E=b[1],w=b[2],C=b[3],S=b[4];return n?(this.point=[w,o-v],[["L",x,o],["L",E,o],["L",w,o-v],["L",C,o],["L",S,o]]):(this.point=[a+v,w],[["L",a,x],["L",a,E],["L",a+v,w],["L",a,C],["L",a,S]])},e.prototype.applyVisibility=function(){"hidden"===this.attributes.visibility?rk(this):rT(this)},e.prototype.bindEvents=function(){this.label.on(I.Dk.BOUNDS_CHANGED,this.renderBackground)},e.prototype.render=function(){this.renderLabel(),this.renderBackground(),this.adjustLayout(),this.applyVisibility()},e}(rF),sz=function(t){function e(n){var i=t.call(this,rN({},e.defaultOptions,n))||this;return i.hoverColor="#f5f5f5",i.selectedColor="#e6f7ff",i.background=i.appendChild(new I.UL({})),i.label=i.background.appendChild(new I.ZA({})),i}return(0,rE.ZT)(e,t),Object.defineProperty(e.prototype,"padding",{get:function(){return rO(this.style.padding)},enumerable:!1,configurable:!0}),e.prototype.renderLabel=function(){var t=this.style,e=t.label,n=t.value,i=rG(this.attributes,"label");rY(this.label).maybeAppend(".label",function(){return as(e)}).attr("className","label").styles(i),this.label.attr("__data__",n)},e.prototype.renderBackground=function(){var t=this.label.getBBox(),e=(0,rE.CR)(this.padding,4),n=e[0],i=e[1],r=e[2],a=e[3],o=t.width,s=t.height,l=s+n+r,h=rG(this.attributes,"background"),c=this.style,u=c.width,d=c.height,p=c.selected;this.background.attr((0,rE.pi)((0,rE.pi)({},h),{width:Math.max(o+a+i,void 0===u?0:u),height:Math.max(l,void 0===d?0:d),fill:p?this.selectedColor:"#fff"})),this.label.attr({transform:"translate(".concat(a,", ").concat((l-s)/2,")")})},e.prototype.render=function(){this.renderLabel(),this.renderBackground()},e.prototype.bindEvents=function(){var t=this;this.addEventListener("pointerenter",function(){t.style.selected||t.background.attr("fill",t.hoverColor)}),this.addEventListener("pointerleave",function(){t.style.selected||t.background.attr("fill",t.style.backgroundFill)});var e=this;this.addEventListener("click",function(){var n=t.style,i=n.label,r=n.value,a=n.onClick;null==a||a(r,{label:i,value:r},e)})},e.defaultOptions={style:{value:"",label:"",cursor:"pointer"}},e}(rF),sG=function(t){function e(n){var i,r,a=t.call(this,rN({},e.defaultOptions,n))||this;a.currentValue=null===(i=e.defaultOptions.style)||void 0===i?void 0:i.defaultValue,a.isPointerInSelect=!1,a.select=a.appendChild(new I.UL({className:"select",style:{cursor:"pointer",width:0,height:0}})),a.dropdown=a.appendChild(new I.UL({className:"dropdown"}));var o=a.style.defaultValue;return o&&(null===(r=a.style.options)||void 0===r?void 0:r.some(function(t){return t.value===o}))&&(a.currentValue=o),a}return(0,rE.ZT)(e,t),e.prototype.setValue=function(t){this.currentValue=t,this.render()},e.prototype.getValue=function(){return this.currentValue},Object.defineProperty(e.prototype,"dropdownPadding",{get:function(){return rO(this.style.dropdownPadding)},enumerable:!1,configurable:!0}),e.prototype.renderSelect=function(){var t,e=this,n=this.style,i=n.x,r=n.y,a=n.width,o=n.height,s=n.bordered,l=n.showDropdownIcon,h=rG(this.attributes,"select"),c=rG(this.attributes,"placeholder");this.select.attr((0,rE.pi)((0,rE.pi)({x:i,y:r,width:a,height:o},h),{fill:"#fff",strokeWidth:s?1:0}));var u=this.dropdownPadding;l&&rY(this.select).maybeAppend(".dropdown-icon","path").style("d","M-5,-3.5 L0,3.5 L5,-3.5").style("transform","translate(".concat(i+a-10-u[1]-u[3],", ").concat(r+o/2,")")).style("lineWidth",1).style("stroke",this.select.style.stroke);var d=null===(t=this.style.options)||void 0===t?void 0:t.find(function(t){return t.value===e.currentValue}),p=(0,rE.pi)({x:i+u[3]},c);rY(this.select).selectAll(".placeholder").data(d?[]:[1]).join(function(t){return t.append("text").attr("className","placeholder").styles(p).style("y",function(){return r+(o-this.getBBox().height)/2})},function(t){return t.styles(p)},function(t){return t.remove()});var f=rG(this.attributes,"optionLabel"),g=(0,rE.pi)({x:i+u[3]},f);rY(this.select).selectAll(".value").data(d?[d]:[]).join(function(t){return t.append(function(t){return as(t.label)}).attr("className","value").styles(g).style("y",function(){return r+(o-this.getBBox().height)/2})},function(t){return t.styles(g)},function(t){return t.remove()})},e.prototype.renderDropdown=function(){var t,e,n=this,i=this.style,r=i.x,a=i.y,o=i.width,s=i.height,l=i.options,h=i.onSelect,c=i.open,u=rG(this.attributes,"dropdown"),d=rG(this.attributes,"option"),p=this.dropdownPadding;rY(this.dropdown).maybeAppend(".dropdown-container","g").attr("className","dropdown-container").selectAll(".dropdown-item").data(l,function(t){return t.value}).join(function(t){return t.append(function(t){return new sz({className:"dropdown-item",style:(0,rE.pi)((0,rE.pi)((0,rE.pi)({},t),d),{width:o-p[1]-p[3],selected:t.value===n.currentValue,onClick:function(t,e,i){n.setValue(t),null==h||h(t,e,i),n.dispatchEvent(new I.Aw("change",{detail:{value:t,option:e,item:i}})),rk(n.dropdown)}})})}).each(function(t,e){var n,i=(null===(n=this.parentNode)||void 0===n?void 0:n.children).reduce(function(t,n,i){return ie.time?1:0})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"space",{get:function(){var t,e=this.attributes,n=e.x,i=e.y,r=e.width,a=e.height,o=e.type,s=e.controllerHeight,l=(0,im.Z)(+a-s,0,+a),h=new rw(n,i+ +a-s,+r,s),c=0;"chart"===o?(c=35,t=new rw(n,i+l-c,+r,c)):t=new rw;var u="time"===o?10:l;return{axisBBox:t,controllerBBox:h,timelineBBox:new rw(n,i+("time"===o?l:l-u),+r,u-c)}},enumerable:!1,configurable:!0}),e.prototype.setBySliderValues=function(t){var e,n,i=this.data,r=(0,rE.CR)(Array.isArray(t)?t:[0,t],2),a=r[0],o=r[1],s=i.length,l=i[Math.floor(a*s)],h=i[Math.ceil(o*s)-(Array.isArray(t)?0:1)];this.states.values=[null!==(e=null==l?void 0:l.time)&&void 0!==e?e:i[0].time,null!==(n=null==h?void 0:h.time)&&void 0!==n?n:1/0]},e.prototype.setByTimebarValues=function(t){var e,n,i,r=this.data,a=(0,rE.CR)(Array.isArray(t)?t:[void 0,t],2),o=a[0],s=a[1],l=r.find(function(t){return t.time===o}),h=r.find(function(t){return t.time===s});this.states.values=[null!==(e=null==l?void 0:l.time)&&void 0!==e?e:null===(n=r[0])||void 0===n?void 0:n.time,null!==(i=null==h?void 0:h.time)&&void 0!==i?i:1/0]},e.prototype.setByIndex=function(t){var e,n,i,r,a=this.data,o=(0,rE.CR)(t,2),s=o[0],l=o[1];this.states.values=[null!==(n=null===(e=a[s])||void 0===e?void 0:e.time)&&void 0!==n?n:a[0].time,null!==(r=null===(i=this.data[l])||void 0===i?void 0:i.time)&&void 0!==r?r:1/0]},Object.defineProperty(e.prototype,"sliderValues",{get:function(){var t,e=this.states,n=e.values,i=e.selectionType,r=(0,rE.CR)(Array.isArray(n)?n:[void 0,n],2),a=r[0],o=r[1],s=this.data,l=s.length,h="value"===i;return[(t=s.findIndex(function(t){return t.time===a}),h?0:t>-1?t/l:0),function(){if(o===1/0)return 1;var t=s.findIndex(function(t){return t.time===o});return t>-1?t/l:h?.5:1}()]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"values",{get:function(){var t=this.states,e=t.values,n=t.selectionType,i=(0,rE.CR)(Array.isArray(e)?e:[this.data[0].time,e],2),r=i[0],a=i[1];return"value"===n?a:[r,a]},enumerable:!1,configurable:!0}),e.prototype.getDatumByRatio=function(t){var e=this.data,n=Math.floor(t*(e.length-1));return e[n]},Object.defineProperty(e.prototype,"chartHandleIconShape",{get:function(){var t=this.states.selectionType,e=this.space.timelineBBox.height;return"range"===t?function(t){return new lt({style:{type:t,height:e,iconSize:e/6}})}:function(){return new I.x1({style:{x1:0,y1:-e/2,x2:0,y2:e/2,lineWidth:2,stroke:"#c8c8c8"}})}},enumerable:!1,configurable:!0}),e.prototype.getChartStyle=function(t){var e=this,n=t.x,i=t.y,r=t.width,a=t.height,o=this.states,s=o.selectionType,l=o.chartType,h=this.data,c=this.attributes,u=c.type,d=c.labelFormatter,p=rG(this.attributes,"chart"),f=(p.type,(0,rE._T)(p,["type"])),g="range"===s;if("time"===u)return(0,rE.pi)({handleIconShape:function(){return new s7({})},selectionFill:"#2e7ff8",selectionFillOpacity:1,showLabelOnInteraction:!0,handleLabelDy:g?-15:0,autoFitLabel:g,handleSpacing:g?-15:0,trackFill:"#edeeef",trackLength:r,trackOpacity:.5,trackRadius:a/2,trackSize:a/2,type:s,values:this.sliderValues,formatter:function(t){if(d)return d(t);var n=e.getDatumByRatio(t).time;return"number"==typeof n?le(n):oC(n,"YYYY-MM-DD HH:mm:ss")},transform:"translate(".concat(n,", ").concat(i,")"),zIndex:1},f);var y=h.map(function(t){return t.value});return(0,rE.pi)({handleIconOffset:"range"===s?5:0,handleIconShape:this.chartHandleIconShape,selectionFill:"#fff",selectionFillOpacity:.5,selectionType:"invert",sparklineSpacing:.1,sparklineColumnLineWidth:0,sparklineColor:"#d4e5fd",sparklineAreaOpacity:1,sparklineAreaLineWidth:0,sparklineData:y,sparklineType:l,sparklineScale:.8,trackLength:r,trackSize:a,type:s,values:this.sliderValues,transform:"translate(".concat(n,", ").concat(i,")"),zIndex:1},f)},e.prototype.renderChart=function(t){void 0===t&&(t=this.space.timelineBBox),this.timeline.update(this.getChartStyle(t))},e.prototype.updateSelection=function(){this.timeline.setValues(this.sliderValues,!0),this.handleSliderChange(this.sliderValues)},e.prototype.getAxisStyle=function(t){var e=this.data,n=this.attributes,i=n.interval,r=n.labelFormatter,a=rG(this.attributes,"axis"),o=t.x,s=t.y,l=t.width,h=(0,rE.ev)((0,rE.ev)([],(0,rE.CR)(e),!1),[{time:0}],!1).map(function(t,e,n){var i=t.time;return{label:"".concat(i),value:e/(n.length-1),time:i}});return(0,rE.pi)({startPos:[o,s],endPos:[o+l,s],data:h,labelFilter:function(t,e){return en.getHours())return"AM\n".concat(oC(n,"YYYY-MM-DD"));return"PM";case"day":if([1,10,20].includes(n.getDate()))return oC(n,"DD\nYYYY-MM");return oC(n,"DD");case"week":if(7>=n.getDate())return oC(n,"DD\nYYYY-MM");return oC(n,"DD");case"month":if([0,6].includes(n.getMonth()))return oC(n,"MM月\nYYYY");return oC(n,"MM月");case"season":if([0].includes(n.getMonth()))return oC(n,"MM月\nYYYY");return oC(n,"MM月");case"year":return oC(n,"YYYY");default:return oC(n,"YYYY-MM-DD HH:mm")}}(e,i)}},a)},e.prototype.renderAxis=function(t){void 0===t&&(t=this.space.axisBBox),"chart"===this.attributes.type&&this.axis.update(this.getAxisStyle(t))},e.prototype.renderController=function(t){void 0===t&&(t=this.space.controllerBBox);var e=this.attributes.type,n=this.states,i=n.state,r=n.speed,a=n.selectionType,o=n.chartType,s=rG(this.attributes,"controller"),l=this,h=(0,rE.pi)((0,rE.pi)((0,rE.pi)({},t),{iconSize:20,speed:r,state:i,selectionType:a,chartType:o,onChange:function(t,e){var n=e.value;switch(t){case"reset":l.internalReset();break;case"speed":l.handleSpeedChange(n);break;case"backward":l.internalBackward();break;case"playPause":"play"===n?l.internalPlay():l.internalPause();break;case"forward":l.internalForward();break;case"selectionType":l.handleSelectionTypeChange(n);break;case"chartType":l.handleChartTypeChange(n)}}}),s);"time"===e&&(h.functions=[["reset","speed"],["backward","playPause","forward"],["selectionType"]]),this.controller.update(h)},e.prototype.dispatchOnChange=function(t){var e=this.data,n=this.attributes.onChange,i=this.states,r=i.values,a=i.selectionType,o=(0,rE.CR)(r,2),s=o[0],l=o[1],h=l===1/0?e.at(-1).time:l,c="range"===a?[s,h]:h;(!t||(Array.isArray(t)?!Array.isArray(c)||t[0]!==c[0]||t[1]!==c[1]&&t[1]!==1/0&&c[1]!==1/0:Array.isArray(c)||t!==c))&&null!=n&&n("range"===a?[s,h]:h)},e.prototype.internalReset=function(t){var e,n,i=this.states.selectionType;this.internalPause(),this.setBySliderValues("range"===i?[0,1]:[0,0]),this.renderController(),this.updateSelection(),t||(null===(n=null===(e=this.attributes)||void 0===e?void 0:e.onReset)||void 0===n||n.call(e),this.dispatchOnChange())},e.prototype.reset=function(){this.internalReset()},e.prototype.moveSelection=function(t,e){var n,i,r,a,o,s,l=this.data,h=l.length,c=this.states,u=c.values,d=c.selectionType,p=c.playMode,f=(0,rE.CR)(u,2),g=f[0],y=f[1],m=l.findIndex(function(t){return t.time===g}),v=l.findIndex(function(t){return t.time===y});-1===v&&(v=h);var b="backward"===t?-1:1;"range"===d?"acc"===p?(s=[m,v+b],-1===b&&m===v&&(s=[m,h])):s=[m+b,v+b]:s=[m,v+b];var x=(n=s,r=(i=(0,rE.CR)(n.sort(function(t,e){return t-e}),2))[0],a=i[1],o=function(t){return(0,im.Z)(t,0,h)},a>h?"value"===d?[0,0]:"acc"===p?[o(r),o(r)]:[0,o(a-r)]:r<0?"acc"===p?[0,o(a)]:[o(r+h-a),h]:[o(r),o(a)]);return this.setByIndex(x),this.updateSelection(),x},e.prototype.internalBackward=function(t){var e,n,i=this.moveSelection("backward",t);return t||(null===(n=null===(e=this.attributes)||void 0===e?void 0:e.onBackward)||void 0===n||n.call(e),this.dispatchOnChange()),i},e.prototype.backward=function(){this.internalBackward()},e.prototype.internalPlay=function(t){var e,n,i=this,r=this.data,a=this.attributes.loop,o=this.states.speed,s=void 0===o?1:o;this.playInterval=window.setInterval(function(){i.internalForward()[1]!==r.length||a||(i.internalPause(),i.renderController())},1e3/s),this.states.state="play",t||null===(n=null===(e=this.attributes)||void 0===e?void 0:e.onPlay)||void 0===n||n.call(e)},e.prototype.play=function(){this.internalPlay()},e.prototype.internalPause=function(t){var e,n;clearInterval(this.playInterval),this.states.state="pause",t||null===(n=null===(e=this.attributes)||void 0===e?void 0:e.onPause)||void 0===n||n.call(e)},e.prototype.pause=function(){this.internalPause()},e.prototype.internalForward=function(t){var e,n,i=this.moveSelection("forward",t);return t||(null===(n=null===(e=this.attributes)||void 0===e?void 0:e.onForward)||void 0===n||n.call(e),this.dispatchOnChange()),i},e.prototype.forward=function(){this.internalForward()},e.prototype.handleSpeedChange=function(t){var e,n;this.states.speed=t,"play"===this.states.state&&(this.internalPause(!0),this.internalPlay(!0)),null===(n=null===(e=this.attributes)||void 0===e?void 0:e.onSpeedChange)||void 0===n||n.call(e,t)},e.prototype.handleSelectionTypeChange=function(t){var e,n;this.states.selectionType=t,this.renderChart(),null===(n=null===(e=this.attributes)||void 0===e?void 0:e.onSelectionTypeChange)||void 0===n||n.call(e,t)},e.prototype.handleChartTypeChange=function(t){var e,n;this.states.chartType=t,this.renderChart(),null===(n=null===(e=this.attributes)||void 0===e?void 0:e.onChartTypeChange)||void 0===n||n.call(e,t)},e.prototype.render=function(){var t=this.space,e=t.axisBBox,n=t.controllerBBox,i=t.timelineBBox;this.renderController(n),this.renderAxis(e),this.renderChart(i),"play"===this.states.state&&this.internalPlay()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.internalPause(!0)},e.defaultOptions={style:{x:0,y:0,axisLabelFill:"#6e6e6e",axisLabelTextAlign:"left",axisLabelTextBaseline:"top",axisLabelTransform:"translate(5, -12)",axisLineLineWidth:1,axisLineStroke:"#cacdd1",axisTickLength:15,axisTickLineWidth:1,axisTickStroke:"#cacdd1",chartShowLabel:!1,chartType:"line",controllerAlign:"center",controllerHeight:40,data:[],interval:"day",loop:!1,playMode:"acc",selectionType:"range",type:"time"}},e}(rF),li=n(95456);let lr=["timestamp","time","date","datetime"];class la extends iF{get padding(){return ty(this.options.padding)}play(){var t;null===(t=this.timebar)||void 0===t||t.play()}pause(){var t;null===(t=this.timebar)||void 0===t||t.pause()}forward(){var t;null===(t=this.timebar)||void 0===t||t.forward()}backward(){var t;null===(t=this.timebar)||void 0===t||t.backward()}reset(){var t;null===(t=this.timebar)||void 0===t||t.reset()}update(t){super.update(t),this.backup(),Object.keys(t).forEach(t=>{"position"===t?this.upsertWrapper():this.upsertTimebar()})}backup(){this.originalData=lo(this.context.graph.getData())}upsertTimebar(){let{canvas:t}=this.context,{onChange:e,timebarType:n,data:i,x:r,y:a,width:o,height:s,mode:l,...h}=this.options,c=t.getSize(),[u]=this.padding;this.upsertCanvas().ready.then(()=>{let t={x:c[0]/2-o/2,y:u,onChange:t=>{let n=((0,ex.Z)(t)?t:[t,t]).map(t=>(0,li.Z)(t,"Date")?t.getTime():t);"modify"===this.options.mode?this.filterElements(n):this.hiddenElements(n),null==e||e(n)},...h,data:i.map(t=>(0,eJ.Z)(t)?{time:t,value:0}:t),width:o,height:s,type:n};if(this.timebar)this.timebar.update(t);else{var r;this.timebar=new ln({style:t}),null===(r=this.canvas)||void 0===r||r.appendChild(this.timebar)}})}upsertWrapper(){var t;if(!this.wrapper){let t=document.createElement("div");t.style.position="absolute",this.wrapper=t}let{x:e,y:n,className:i,position:r}=this.options;return i&&(this.wrapper.className=i),(0,eJ.Z)(e)||(0,eJ.Z)(n)?Object.assign(this.wrapper.style,{left:"".concat(null!=e?e:0,"px"),top:"".concat(null!=n?n:0,"px")}):Object.assign(this.wrapper.style,{["top"===r?"bottom":"top"]:"unset",["top"===r?"top":"bottom"]:"0px"}),null===(t=this.context.canvas.getContainer())||void 0===t||t.appendChild(this.wrapper),this.wrapper}upsertCanvas(){var t,e;let n=this.upsertWrapper();if(this.canvas)return this.canvas;let{height:i}=this.options,[r]=this.context.canvas.getSize(),[a,,o]=this.padding;return this.canvas=new I.Xz({container:n,width:r,height:i+a+o,renderer:(null===(e=(t=this.context.options).renderer)||void 0===e?void 0:e.call(t,"main"))||new of,supportsMutipleCanvasesInOneContainer:!0}),this.canvas}async filterElements(t){var e;if(!this.originalData)return;let{elementTypes:n,getTime:i}=this.options,{graph:r,element:a}=this.context,o=lo(this.originalData);n.forEach(e=>{let n="".concat(e,"s");o[n]=(this.originalData[n]||[]).filter(e=>{let n=i(e);return!!ls(n,t)})});let s=[...o.nodes,...o.combos].map(t=>tt(t));o.edges=o.edges.filter(t=>{let e=t.source,n=t.target;return s.includes(e)&&s.includes(n)}),r.setData(o),await (null===(e=a.draw({animation:!1,silence:!0}))||void 0===e?void 0:e.finished)}hiddenElements(t){let{graph:e}=this.context,{elementTypes:n,getTime:i}=this.options,r=[],a=[];n.forEach(e=>{var n;let o=(null===(n=this.originalData)||void 0===n?void 0:n["".concat(e,"s")])||[];o.forEach(e=>{let n=tt(e),o=i(e);ls(o,t)?a.push(n):r.push(n)})}),e.hideElement(r,!1),e.showElement(a,!1)}destroy(){var t,e,n;let{graph:i}=this.context;this.originalData&&i.setData({...this.originalData}),null===(t=this.timebar)||void 0===t||t.destroy(),null===(e=this.canvas)||void 0===e||e.destroy(),null===(n=this.wrapper)||void 0===n||n.remove(),this.originalData=void 0,this.wrapper=void 0,this.timebar=void 0,this.canvas=void 0,super.destroy()}constructor(t,e){super(t,Object.assign({},la.defaultOptions,e)),this.backup(),this.upsertTimebar()}}la.defaultOptions={position:"bottom",enable:!0,timebarType:"time",className:"g6-timebar",width:450,height:60,zIndex:3,elementTypes:["node"],padding:10,mode:"modify",getTime:t=>ll(t,lr,void 0),loop:!1};let lo=t=>{let{nodes:e=[],edges:n=[],combos:i=[]}=t;return{nodes:[...e],edges:[...n],combos:[...i]}},ls=(t,e)=>{if((0,eJ.Z)(e))return t===e;let[n,i]=e;return t>=n&&t<=i},ll=(t,e,n)=>{for(let n=0;n{e[t]="8px"}),e.flexDirection=t.startsWith("top")||t.startsWith("bottom")?"row":"column",e}(n)),this.$element.innerHTML=await this.getDOMContent()}destroy(){this.$element.removeEventListener("click",this.onToolbarItemClick),this.$element.remove(),super.destroy()}async getDOMContent(){let t=await this.options.getItems();return t.map(t=>'\n
    \n \n
    ')).join("")}constructor(t,e){super(t,Object.assign({},lh.defaultOptions,e)),this.$element=iB("toolbar",!1),this.onToolbarItemClick=t=>{let{onClick:e}=this.options;if(t.target instanceof Element&&t.target.className.includes("g6-toolbar-item")){let n=t.target.getAttribute("value");null==e||e(n,t.target)}};let n=this.context.canvas.getContainer();this.$element.style.display="flex",n.appendChild(this.$element),i_("g6-toolbar-css","style",{},"\n .g6-toolbar {\n position: absolute;\n z-index: 100;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n border-radius: 4px;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);\n opacity: 0.65;\n }\n .g6-toolbar .g6-toolbar-item {\n display: inline-block;\n width: 16px;\n height: 16px;\n padding: 4px;\n cursor: pointer;\n box-sizing: content-box;\n }\n\n .g6-toolbar .g6-toolbar-item:hover {\n background-color: #f0f0f0;\n }\n\n .g6-toolbar .g6-toolbar-item svg {\n display: inline-block;\n width: 100%;\n height: 100%;\n pointer-events: none;\n }\n",document.head),i_("g6-toolbar-svgicon","div",{display:"none"},'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'),this.$element.addEventListener("click",this.onToolbarItemClick),this.update(e)}}lh.defaultOptions={position:"top-left"};var lc=n(88204),lu=n(68856),ld=function(t,e){if(null==e){t.innerHTML="";return}t.replaceChildren?Array.isArray(e)?t.replaceChildren.apply(t,(0,rE.ev)([],(0,rE.CR)(e),!1)):t.replaceChildren(e):(t.innerHTML="",Array.isArray(e)?e.forEach(function(e){return t.appendChild(e)}):t.appendChild(e))};function lp(t){return void 0===t&&(t=""),{CONTAINER:"".concat(t,"tooltip"),TITLE:"".concat(t,"tooltip-title"),LIST:"".concat(t,"tooltip-list"),LIST_ITEM:"".concat(t,"tooltip-list-item"),NAME:"".concat(t,"tooltip-list-item-name"),MARKER:"".concat(t,"tooltip-list-item-marker"),NAME_LABEL:"".concat(t,"tooltip-list-item-name-label"),VALUE:"".concat(t,"tooltip-list-item-value"),CROSSHAIR_X:"".concat(t,"tooltip-crosshair-x"),CROSSHAIR_Y:"".concat(t,"tooltip-crosshair-y")}}var lf={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"},lg=function(t){function e(e){var n,i,r,a,o,s=this,l=null===(o=null===(a=e.style)||void 0===a?void 0:a.template)||void 0===o?void 0:o.prefixCls,h=lp(l);return(s=t.call(this,e,{data:[],x:0,y:0,visibility:"visible",title:"",position:"bottom-right",offset:[5,5],enterable:!1,container:{x:0,y:0},bounding:null,template:{prefixCls:"",container:'
    '),title:'
    '),item:'
  • \n \n \n {name}\n \n {value}\n
  • ')},style:(void 0===(n=l)&&(n=""),r=lp(n),(i={})[".".concat(r.CONTAINER)]={position:"absolute",visibility:"visible","z-index":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)","background-color":"rgba(255, 255, 255, 0.96)","box-shadow":"0 6px 12px 0 rgba(0, 0, 0, 0.12)","border-radius":"4px",color:"rgba(0, 0, 0, 0.65)","font-size":"12px","line-height":"20px",padding:"12px","min-width":"120px","max-width":"360px","font-family":"Roboto-Regular"},i[".".concat(r.TITLE)]={color:"rgba(0, 0, 0, 0.45)"},i[".".concat(r.LIST)]={margin:"0px","list-style-type":"none",padding:"0px"},i[".".concat(r.LIST_ITEM)]={"list-style-type":"none",display:"flex","line-height":"2em","align-items":"center","justify-content":"space-between","white-space":"nowrap"},i[".".concat(r.MARKER)]={width:"8px",height:"8px","border-radius":"50%",display:"inline-block","margin-right":"4px"},i[".".concat(r.NAME)]={display:"flex","align-items":"center","max-width":"216px"},i[".".concat(r.NAME_LABEL)]=(0,rE.pi)({flex:1},lf),i[".".concat(r.VALUE)]=(0,rE.pi)({display:"inline-block",float:"right",flex:1,"text-align":"right","min-width":"28px","margin-left":"30px",color:"rgba(0, 0, 0, 0.85)"},lf),i[".".concat(r.CROSSHAIR_X)]={position:"absolute",width:"1px","background-color":"rgba(0, 0, 0, 0.25)"},i[".".concat(r.CROSSHAIR_Y)]={position:"absolute",height:"1px","background-color":"rgba(0, 0, 0, 0.25)"},i)})||this).timestamp=-1,s.prevCustomContentKey=s.attributes.contentKey,s.initShape(),s.render(s.attributes,s),s}return(0,rE.ZT)(e,t),Object.defineProperty(e.prototype,"HTMLTooltipElement",{get:function(){return this.element},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.element},Object.defineProperty(e.prototype,"elementSize",{get:function(){return{width:this.element.offsetWidth,height:this.element.offsetHeight}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HTMLTooltipItemsElements",{get:function(){var t=this.attributes,e=t.data,n=t.template;return e.map(function(t,e){var i=t.name,r=t.color,a=t.index,o=(0,rE._T)(t,["name","color","index"]),s=(0,rE.pi)({name:void 0===i?"":i,color:void 0===r?"black":r,index:null!=a?a:e},o);return(0,lc.L)((0,lu.Z)(n.item,s))})},enumerable:!1,configurable:!0}),e.prototype.render=function(t,e){this.renderHTMLTooltipElement(),this.updatePosition()},e.prototype.destroy=function(){var e;null===(e=this.element)||void 0===e||e.remove(),t.prototype.destroy.call(this)},e.prototype.show=function(t,e){var n=this;if(void 0!==t&&void 0!==e){var i="hidden"===this.element.style.visibility,r=function(){n.attributes.x=null!=t?t:n.attributes.x,n.attributes.y=null!=e?e:n.attributes.y,n.updatePosition()};i?this.closeTransition(r):r()}this.element.style.visibility="visible"},e.prototype.hide=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.attributes.enterable&&this.isCursorEntered(t,e)||(this.element.style.visibility="hidden")},e.prototype.initShape=function(){var t=this.attributes.template;this.element=(0,lc.L)(t.container),this.id&&this.element.setAttribute("id",this.id)},e.prototype.renderCustomContent=function(){if(void 0===this.prevCustomContentKey||this.prevCustomContentKey!==this.attributes.contentKey){this.prevCustomContentKey=this.attributes.contentKey;var t=this.attributes.content;t&&("string"==typeof t?this.element.innerHTML=t:ld(this.element,t))}},e.prototype.renderHTMLTooltipElement=function(){var t,e,n=this.attributes,i=n.template,r=n.title,a=n.enterable,o=n.style,s=n.content,l=lp(i.prefixCls),h=this.element;if(this.element.style.pointerEvents=a?"auto":"none",s)this.renderCustomContent();else{r?(h.innerHTML=i.title,h.getElementsByClassName(l.TITLE)[0].innerHTML=r):null===(e=null===(t=h.getElementsByClassName(l.TITLE))||void 0===t?void 0:t[0])||void 0===e||e.remove();var c=this.HTMLTooltipItemsElements,u=document.createElement("ul");u.className=l.LIST,ld(u,c);var d=this.element.querySelector(".".concat(l.LIST));d?d.replaceWith(u):h.appendChild(u)}!function(t,e){Object.entries(e).forEach(function(e){var n=(0,rE.CR)(e,2),i=n[0],r=n[1];(0,rE.ev)([t],(0,rE.CR)(t.querySelectorAll(i)),!1).filter(function(t){return t.matches(i)}).forEach(function(t){t&&(t.style.cssText+=Object.entries(r).reduce(function(t,e){return"".concat(t).concat(e.join(":"),";")},""))})})}(h,o)},e.prototype.getRelativeOffsetFromCursor=function(t){var e=this.attributes,n=e.position,i=e.offset,r=(t||n).split("-"),a={left:[-1,0],right:[1,0],top:[0,-1],bottom:[0,1]},o=this.elementSize,s=o.width,l=o.height,h=[-s/2,-l/2];return r.forEach(function(t){var e=(0,rE.CR)(h,2),n=e[0],r=e[1],o=(0,rE.CR)(a[t],2),c=o[0],u=o[1];h=[n+(s/2+i[0])*c,r+(l/2+i[1])*u]}),h},e.prototype.setOffsetPosition=function(t){var e=(0,rE.CR)(t,2),n=e[0],i=e[1],r=this.attributes,a=r.x,o=r.y,s=r.container,l=s.x,h=s.y;this.element.style.left="".concat(+(void 0===a?0:a)+l+n,"px"),this.element.style.top="".concat(+(void 0===o?0:o)+h+i,"px")},e.prototype.updatePosition=function(){var t=this.attributes.showDelay,e=Date.now();this.timestamp>0&&e-this.timestamp<(void 0===t?60:t)||(this.timestamp=e,this.setOffsetPosition(this.autoPosition(this.getRelativeOffsetFromCursor())))},e.prototype.autoPosition=function(t){var e=(0,rE.CR)(t,2),n=e[0],i=e[1],r=this.attributes,a=r.x,o=r.y,s=r.bounding,l=r.position;if(!s)return[n,i];var h=this.element,c=h.offsetWidth,u=h.offsetHeight,d=(0,rE.CR)([+a+n,+o+i],2),p=d[0],f=d[1],g={left:"right",right:"left",top:"bottom",bottom:"top"},y=s.x,m=s.y,v={left:py+s.width,top:fm+s.height},b=[];l.split("-").forEach(function(t){v[t]?b.push(g[t]):b.push(t)});var x=b.join("-");return this.getRelativeOffsetFromCursor(x)},e.prototype.isCursorEntered=function(t,e){if(this.element){var n=this.element.getBoundingClientRect(),i=n.x,r=n.y,a=n.width,o=n.height;return new rw(i,r,a,o).isPointIn(t,e)}return!1},e.prototype.closeTransition=function(t){var e=this,n=this.element.style.transition;this.element.style.transition="none",t(),setTimeout(function(){e.element.style.transition=n},10)},e.tag="tooltip",e}(rF);class ly extends iF{getEvents(){return"click"===this.options.trigger?{"node:click":this.onClick,"edge:click":this.onClick,"combo:click":this.onClick,"canvas:click":this.onPointerLeave,contextmenu:this.onPointerLeave,drag:this.onPointerLeave}:{"node:pointerenter":this.onPointerEnter,"node:pointermove":this.onPointerMove,"canvas:pointermove":this.onCanvasMove,"edge:pointerenter":this.onPointerEnter,"edge:pointermove":this.onPointerMove,"combo:pointerenter":this.onPointerEnter,"combo:pointermove":this.onPointerMove,contextmenu:this.onPointerLeave,"node:drag":this.onPointerLeave}}update(t){if(this.unbindEvents(),super.update(t),this.tooltipElement){var e;null===(e=this.container)||void 0===e||e.removeChild(this.tooltipElement.HTMLTooltipElement)}this.tooltipElement=this.initTooltip(),this.bindEvents()}render(){let{canvas:t}=this.context,e=t.getContainer();e&&(this.container=e,this.tooltipElement=this.initTooltip())}unbindEvents(){let{graph:t}=this.context,e=this.getEvents();Object.keys(e).forEach(n=>{t.off(n,e[n])})}bindEvents(){let{graph:t}=this.context,e=this.getEvents();Object.keys(e).forEach(n=>{t.on(n,e[n])})}destroy(){if(this.unbindEvents(),this.tooltipElement){var t;null===(t=this.container)||void 0===t||t.removeChild(this.tooltipElement.HTMLTooltipElement)}super.destroy()}constructor(t,e){super(t,Object.assign({},ly.defaultOptions,e)),this.currentTarget=null,this.tooltipElement=null,this.container=null,this.isEnable=t=>{let{enable:e}=this.options;return"function"==typeof e?e(t):e},this.onClick=t=>{let{target:{id:e}}=t;this.currentTarget===e?(this.currentTarget=null,this.hide(t)):(this.currentTarget=e,this.show(t))},this.onPointerMove=t=>{let{target:e}=t;this.currentTarget&&e.id!==this.currentTarget&&this.show(t)},this.onPointerLeave=t=>{this.hide(t),this.currentTarget=null},this.onCanvasMove=t=>{this.hide(t),this.currentTarget=null},this.onPointerEnter=t=>{this.show(t)},this.showById=t=>{this.show({target:{id:t}})},this.getElementData=(t,e)=>{let{model:n}=this.context;switch(e){case"node":return n.getNodeData([t]);case"edge":return n.getEdgeData([t]);case"combo":return n.getComboData([t]);default:return[]}},this.show=t=>{let e,n;let{client:i,target:{id:r}}=t;if(n9(t.target)||!this.tooltipElement||!this.isEnable(t))return;let a=this.context.graph.getElementType(r),{getContent:o,title:s}=this.options;this.currentTarget=r;let l=this.getElementData(r,a);if(i)e=i.x,n=i.y;else{let t=(0,en.Z)(l,"0.style",{x:0,y:0});e=t.x,n=t.y}let h={};if(o)h.content=o(t,l);else{let t=this.context.graph.getElementRenderStyle(r),e="node"===a?t.fill:t.stroke;h={title:s||a,data:l.map(t=>({name:"ID",value:t.id||"".concat(t.source," -> ").concat(t.target),color:e}))}}this.tooltipElement.update({x:e,y:n,style:{".tooltip":{visibility:"visible"}},...h})},this.hide=t=>{if(!t){var e;null===(e=this.tooltipElement)||void 0===e||e.hide();return}if(!this.tooltipElement||!this.isEnable(t))return;let{client:{x:n,y:i}}=t;this.tooltipElement.hide(n,i)},this.initTooltip=()=>{var t;let{canvas:e}=this.context,{center:n}=e.getBounds(),i=e.getContainer(),{top:r,left:a}=i.getBoundingClientRect(),{style:o,position:s,enterable:l,container:h={x:-a,y:-r},title:c,offset:u}=this.options,[d,p]=n,[f,g]=e.getSize(),y=new lg({className:"tooltip",style:{x:d,y:p,container:h,title:c,bounding:{x:0,y:0,width:f,height:g},position:s,enterable:l,offset:u,style:o}});return null===(t=this.container)||void 0===t||t.appendChild(y.HTMLTooltipElement),y},this.render(),this.bindEvents()}}function lm(t,e){i||(i=document.createElement("canvas")),i.width=t,i.height=e;let n=i.getContext("2d");return n.clearRect(0,0,t,e),i}async function lv(t,e,n,i){let r=lm(t,e),a=r.getContext("2d"),{rotate:o,opacity:s,textFill:l,textFontSize:h,textFontFamily:c,textFontVariant:u,textFontWeight:d,textAlign:p,textBaseline:f}=i;return a.textAlign=p,a.textBaseline=f,a.translate(t/2,e/2),a.font="".concat(h,"px ").concat(c," ").concat(u," ").concat(d),o&&a.rotate(o),s&&(a.globalAlpha=s),l&&(a.fillStyle=l,a.fillText("".concat(n),0,0)),r.toDataURL()}async function lb(t,e,n,i){let r=lm(t,e),a=r.getContext("2d"),{rotate:o,opacity:s}=i;o&&a.rotate(o),s&&(a.globalAlpha=s);let l=new Image;return l.crossOrigin="anonymous",l.src=n,new Promise(n=>{l.onload=function(){let i=t>l.width?(t-l.width)/2:0,o=e>l.height?(e-l.height)/2:0;a.drawImage(l,0,0,l.width,l.height,i,o,t-2*i,e-2*o),n(r.toDataURL())}})}ly.defaultOptions={trigger:"hover",position:"top-right",enterable:!1,enable:!0,offset:[10,10],style:{".tooltip":{visibility:"hidden"}}};class lx extends iF{async update(t){super.update(t);let{width:e,height:n,text:i,imageURL:r,...a}=this.options;Object.keys(a).forEach(e=>{e.startsWith("background")&&(this.$element.style[e]=t[e])});let o=r?await lb(e,n,r,a):await lv(e,n,i,a);this.$element.style.backgroundImage="url(".concat(o,")")}destroy(){super.destroy(),this.$element.remove()}constructor(t,e){super(t,Object.assign({},lx.defaultOptions,e)),this.$element=iB("watermark");let n=this.context.canvas.getContainer();n.appendChild(this.$element),this.update(e)}}lx.defaultOptions={width:200,height:100,opacity:.2,rotate:Math.PI/12,text:"",textFill:"#000",textFontSize:16,textAlign:"center",textBaseline:"middle",backgroundRepeat:"repeat"};let lE=["#7E92B5","#F4664A","#FFBE3A"],lw={type:"group",color:["#1783FF","#00C9C9","#F08F56","#D580FF","#7863FF","#DB9D0D","#60C42D","#FF80CA","#2491B3","#17C76F"]},lC={type:"group",color:["#99ADD1","#1783FF","#00C9C9","#F08F56","#D580FF","#7863FF","#DB9D0D","#60C42D","#FF80CA","#2491B3","#17C76F"]};function lS(t){let{bgColor:e,textColor:n,nodeColor:i,nodeColorDisabled:r,nodeStroke:a,nodeHaloStrokeOpacityActive:o=.15,nodeHaloStrokeOpacitySelected:s=.25,nodeOpacityDisabled:l=.06,nodeIconOpacityInactive:h=.85,nodeOpacityInactive:c=.25,nodeBadgePalette:u=lE,nodePaletteOptions:d=lw,edgeColor:p,edgeColorDisabled:f,edgePaletteOptions:g=lC,comboColor:y,comboColorDisabled:m,comboStroke:v,comboStrokeDisabled:b,edgeColorInactive:x}=t;return{background:e,node:{palette:d,style:{donutOpacity:1,badgeBackgroundOpacity:1,badgeFill:"#fff",badgeFontSize:8,badgePadding:[0,4],badgePalette:u,fill:i,fillOpacity:1,halo:!1,iconFill:"#fff",iconOpacity:1,labelBackground:!1,labelBackgroundFill:e,labelBackgroundLineWidth:0,labelBackgroundOpacity:.75,labelFill:n,labelFillOpacity:.85,labelLineHeight:16,labelPadding:[0,2],labelFontSize:12,labelFontWeight:400,labelOpacity:1,labelOffsetY:2,lineWidth:0,portFill:i,portLineWidth:1,portStroke:a,portStrokeOpacity:.65,size:32,stroke:a,strokeOpacity:1,zIndex:2},state:{selected:{halo:!0,haloLineWidth:24,haloStrokeOpacity:s,labelFontSize:12,labelFontWeight:"bold",lineWidth:4,stroke:a},active:{halo:!0,haloLineWidth:12,haloStrokeOpacity:o},highlight:{labelFontWeight:"bold",lineWidth:4,stroke:a,strokeOpacity:.85},inactive:{badgeBackgroundOpacity:c,donutOpacity:c,fillOpacity:c,iconOpacity:h,labelFill:n,labelFillOpacity:c,strokeOpacity:c},disabled:{badgeBackgroundOpacity:.25,donutOpacity:l,fill:r,fillOpacity:l,iconFill:r,iconOpacity:.25,labelFill:n,labelFillOpacity:.25,strokeOpacity:l}},animation:{enter:"fade",exit:"fade",show:"fade",hide:"fade",expand:"node-expand",collapse:"node-collapse",update:[{fields:["x","y","fill","stroke"]}],translate:[{fields:["x","y"]}]}},edge:{palette:g,style:{badgeBackgroundFill:p,badgeFill:"#fff",badgeFontSize:8,badgeOffsetX:10,fillOpacity:1,halo:!1,haloLineWidth:12,haloStrokeOpacity:1,increasedLineWidthForHitTesting:2,labelBackground:!1,labelBackgroundFill:e,labelBackgroundLineWidth:0,labelBackgroundOpacity:.75,labelBackgroundPadding:[4,4,4,4],labelFill:n,labelFontSize:12,labelFontWeight:400,labelOpacity:1,labelPlacement:"center",labelTextBaseline:"middle",lineWidth:1,stroke:p,strokeOpacity:1,zIndex:1},state:{selected:{halo:!0,haloStrokeOpacity:.25,labelFontSize:14,labelFontWeight:"bold",lineWidth:3},active:{halo:!0,haloStrokeOpacity:.15},highlight:{labelFontWeight:"bold",lineWidth:3},inactive:{stroke:x,fillOpacity:.08,labelOpacity:.25,strokeOpacity:.08,badgeBackgroundOpacity:.25},disabled:{stroke:f,fillOpacity:.45,strokeOpacity:.45,labelOpacity:.25,badgeBackgroundOpacity:.45}},animation:{enter:"fade",exit:"fade",expand:"path-in",collapse:"path-out",show:"fade",hide:"fade",update:[{fields:["sourceNode","targetNode"]},{fields:["stroke"],shape:"key"}],translate:[{fields:["sourceNode","targetNode"]}]}},combo:{style:{collapsedMarkerFill:e,collapsedMarkerFontSize:12,collapsedMarkerFillOpacity:1,collapsedSize:32,collapsedFillOpacity:1,fill:y,halo:!1,haloLineWidth:12,haloStroke:v,haloStrokeOpacity:.25,labelBackground:!1,labelBackgroundFill:e,labelBackgroundLineWidth:0,labelBackgroundOpacity:.75,labelBackgroundPadding:[2,4,2,4],labelFill:n,labelFontSize:12,labelFontWeight:400,labelOpacity:1,lineDash:0,lineWidth:1,fillOpacity:.04,strokeOpacity:1,padding:10,stroke:v},state:{selected:{halo:!0,labelFontSize:14,labelFontWeight:700,lineWidth:4},active:{halo:!0},highlight:{labelFontWeight:700,lineWidth:4},inactive:{fillOpacity:.65,labelOpacity:.25,strokeOpacity:.65},disabled:{fill:m,fillOpacity:.25,labelOpacity:.25,stroke:b,strokeOpacity:.25}},animation:{enter:"fade",exit:"fade",show:"fade",hide:"fade",expand:"combo-expand",collapse:"combo-collapse",update:[{fields:["x","y"]},{fields:["fill","stroke","lineWidth"],shape:"key"}],translate:[{fields:["x","y"]}]}}}}let lR=lS({bgColor:"#000000",comboColor:"#fdfdfd",comboColorDisabled:"#d0e4ff",comboStroke:"#99add1",comboStrokeDisabled:"#969696",edgeColor:"#637088",edgeColorDisabled:"#637088",edgeColorInactive:"#D0E4FF",edgePaletteOptions:{type:"group",color:["#637088","#0F55A6","#008383","#9C5D38","#8B53A6","#4E40A6","#8F6608","#3E801D","#A65383","#175E75","#0F8248"]},nodeColor:"#1783ff",nodeColorDisabled:"#D0E4FF",nodeHaloStrokeOpacityActive:.25,nodeHaloStrokeOpacitySelected:.45,nodeIconOpacityInactive:.45,nodeOpacityDisabled:.25,nodeOpacityInactive:.45,nodeStroke:"#d0e4ff",textColor:"#ffffff"}),lA=lS({bgColor:"#ffffff",comboColor:"#99ADD1",comboColorDisabled:"#f0f0f0",comboStroke:"#99add1",comboStrokeDisabled:"#d9d9d9",edgeColor:"#99add1",edgeColorDisabled:"#d9d9d9",edgeColorInactive:"#1B324F",nodeColor:"#1783ff",nodeColorDisabled:"#1B324F",nodeHaloStrokeOpacityActive:.15,nodeHaloStrokeOpacitySelected:.25,nodeIconOpacityInactive:.85,nodeOpacityDisabled:.06,nodeOpacityInactive:.25,nodeStroke:"#000000",textColor:"#000000"});class lO extends tc{beforeDraw(t,e){return t}}function lM(t,e,n,i,r){let a=tt(i),o="".concat(n,"s"),s=r?i:t.add[o].get(a)||t.update[o].get(a)||t.remove[o].get(a)||i;Object.entries(t).forEach(t=>{let[n,i]=t;e===n?i[o].set(a,s):i[o].delete(a)})}let lT=(t,e,n,i)=>{let r="".concat(n,"s"),a=tt(i);t.add[r].has(a)||t.update[r].has(a)||t[e][r].set(tt(i),i)};class lk{constructor(t){this.type=t}}class lP extends lk{constructor(t,e){super(t),this.data=e}}class lL extends lk{constructor(t,e,n,i){super(t),this.animationType=e,this.animation=n,this.data=i}}class lD extends lk{constructor(t,e,n){super(t),this.elementType=e,this.data=n}}class lN extends lk{constructor(t,e){super(t),this.data=e}}function lI(t,e){t.emit(e.type,e)}class lB{getTasks(){let t=[...this.tasks];return this.tasks=[],t}add(t,e){this.tasks.push([t,e])}animate(t,e,n){var i,r,a;null==e||null===(i=e.before)||void 0===i||i.call(e);let o=this.getTasks().map(e=>{var i,r,a;let[o,s]=e,{element:l,elementType:h,stage:c}=o,u=function(t,e,n,i){var r,a;let{animation:o}=t,s=null==t?void 0:null===(r=t[e])||void 0===r?void 0:r.animation;if(!1===s)return[];let l=null==s?void 0:s[n];if(!1===l||!1===o||!1===i)return[];let h=null===(a=K(t)[e])||void 0===a?void 0:a.animation,c=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(function(t){if("string"==typeof t){let e=V(M.ANIMATION,t);return e||(Y.warn("The animation of ".concat(t," is not registered.")),[])}return t})(t).map(t=>({...z,...(0,Z.Z)(o)&&o,...t,...(0,Z.Z)(i)&&i}))};if(l)return c(l);if(!h)return[];let u=h[n];return!1===u?[]:c(u)}(this.context.options,h,c,t);null==s||null===(i=s.before)||void 0===i||i.call(s);let d=tr(l,this.inferStyle(o,n),u);return d?(null==s||null===(a=s.beforeAnimate)||void 0===a||a.call(s,d),d.finished.then(()=>{var t,e;null==s||null===(t=s.afterAnimate)||void 0===t||t.call(s,d),null==s||null===(e=s.after)||void 0===e||e.call(s),this.animations.delete(d)})):null==s||null===(r=s.after)||void 0===r||r.call(s),d}).filter(Boolean);o.forEach(t=>this.animations.add(t));let s=$(o);return s?(null==e||null===(a=e.beforeAnimate)||void 0===a||a.call(e,s),s.finished.then(()=>{var t,n;null==e||null===(t=e.afterAnimate)||void 0===t||t.call(e,s),null==e||null===(n=e.after)||void 0===n||n.call(e),this.release()})):null==e||null===(r=e.after)||void 0===r||r.call(e),s}inferStyle(t,e){var n;let{element:i,elementType:r,stage:a,originalStyle:o,modifiedStyle:s}=t,l={...o},h={...s},c=()=>null!==(n=eg(i,"opacity"))&&void 0!==n?n:q("opacity");if("enter"===a)Object.assign(l,{opacity:0});else if("exit"===a)Object.assign(h,{opacity:0});else if("show"===a)Object.assign(l,{opacity:0}),Object.assign(h,{opacity:c()});else if("hide"===a)Object.assign(l,{opacity:c()}),Object.assign(h,{opacity:0});else if("collapse"===a){let{collapse:t}=e||{},{target:n,descendants:a,position:o}=t;if("node"===r){if(a.includes(i.id)){let[t,e,n]=o;Object.assign(h,{x:t,y:e,z:n})}}else if("combo"===r){if(i.id===n||a.includes(i.id)){let[t,e]=o;Object.assign(h,{x:t,y:e,childrenNode:l.childrenNode})}}else"edge"===r&&Object.assign(h,{sourceNode:l.sourceNode,targetNode:l.targetNode})}else if("expand"===a){let{expand:t}=e||{},{target:n,descendants:a,position:o}=t;if("node"===r){if(i.id===n||a.includes(i.id)){let[t,e,n]=o;Object.assign(l,{x:t,y:e,z:n})}}else if("combo"===r){if(i.id===n||a.includes(i.id)){let[t,e,n]=o;Object.assign(l,{x:t,y:e,z:n,childrenNode:h.childrenNode})}}else"edge"===r&&Object.assign(l,{sourceNode:h.sourceNode,targetNode:h.targetNode})}return[l,h]}stop(){this.animations.forEach(t=>t.cancel())}clear(){this.tasks=[]}release(){var t,e;let{canvas:n}=this.context,i=null===(t=n.document)||void 0===t?void 0:null===(e=t.timeline)||void 0===e?void 0:e.animationsWithPromises;i&&(n.document.timeline.animationsWithPromises=i.filter(t=>"finished"!==t.playState))}destroy(){this.stop(),this.animations.clear(),this.tasks=[]}constructor(t){this.tasks=[],this.animations=new Set,this.context=t}}class l_{emit(t){let{graph:e}=this.context;e.emit(t.type,t)}startBatch(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];this.batchCount++,1===this.batchCount&&this.emit(new lP(R.BATCH_START,{initiate:t}))}endBatch(){this.batchCount--,0===this.batchCount&&this.emit(new lP(R.BATCH_END))}get isBatching(){return this.batchCount>0}destroy(){this.context=null}constructor(t){this.batchCount=0,this.context=t}}class lF extends th{setBehaviors(t){this.setExtensions(t)}forwardEvents(){let t=this.context.canvas.getContainer();t&&[C.KEY_DOWN,C.KEY_UP].forEach(e=>{t.addEventListener(e,this.forwardContainerEvents)});let e=this.context.canvas.document;e&&[w.CLICK,w.DBLCLICK,w.POINTER_OVER,w.POINTER_LEAVE,w.POINTER_ENTER,w.POINTER_MOVE,w.POINTER_OUT,w.POINTER_DOWN,w.POINTER_UP,w.CONTEXT_MENU,w.DRAG_START,w.DRAG,w.DRAG_END,w.DRAG_ENTER,w.DRAG_OVER,w.DRAG_LEAVE,w.DROP,w.WHEEL].forEach(t=>{e.addEventListener(t,this.forwardCanvasEvents)})}destroy(){let t=this.context.canvas.getContainer();t&&[C.KEY_DOWN,C.KEY_UP].forEach(e=>{t.removeEventListener(e,this.forwardContainerEvents)}),this.context.canvas.document.removeAllEventListeners(),super.destroy()}constructor(t){super(t),this.currentTarget=null,this.currentTargetType=null,this.category="behavior",this.forwardCanvasEvents=t=>{let{target:e}=t,n=function(t){if(!t)return null;if(t instanceof I.BB)return{type:"canvas",element:t};let e=t;for(;e;){if(nY(e))return{type:"node",element:e};if(nK(e))return{type:"edge",element:e};if(n$(e))return{type:"combo",element:e};e=e.parentElement}return null}(e);if(!n)return;let{graph:i,canvas:r}=this.context,{type:a,element:o}=n;if("destroyed"in o&&(n9(o)||o.destroyed))return;let{type:s,detail:l,button:h}=t,c={...t,target:o,targetType:a,originalTarget:e};s===w.POINTER_MOVE&&(this.currentTarget!==o&&(this.currentTarget&&i.emit("".concat(this.currentTargetType,":").concat(w.POINTER_LEAVE),{...c,type:w.POINTER_LEAVE,target:this.currentTarget}),o&&(Object.assign(c,{type:w.POINTER_ENTER}),i.emit("".concat(a,":").concat(w.POINTER_ENTER),c))),this.currentTarget=o,this.currentTargetType=a),s===w.CLICK&&2===h||(i.emit("".concat(a,":").concat(s),c),i.emit(s,c)),s===w.CLICK&&2===l&&(Object.assign(c,{type:w.DBLCLICK}),i.emit("".concat(a,":").concat(w.DBLCLICK),c),i.emit(w.DBLCLICK,c)),s===w.POINTER_DOWN&&2===h&&(Object.assign(c,{type:w.CONTEXT_MENU,preventDefault:()=>{var t;null===(t=r.getContainer())||void 0===t||t.addEventListener(w.CONTEXT_MENU,t=>t.preventDefault(),{once:!0})}}),i.emit("".concat(a,":").concat(w.CONTEXT_MENU),c),i.emit(w.CONTEXT_MENU,c))},this.forwardContainerEvents=t=>{this.context.graph.emit(t.type,t)},this.forwardEvents(),this.setBehaviors(this.context.options.behaviors||[])}}var lZ=n(98875);let lj=["background","main","label","transient"];class lz{getConfig(){return this.config}getLayer(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.extends.layers[t]}getLayers(){return this.extends.layers}getRenderer(t){return this.extends.renderers[t]}getCamera(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.getLayer(t).getCamera()}getRoot(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.getLayer(t).getRoot()}getContextService(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.getLayer(t).getContextService()}setCursor(t){this.config.cursor=t,this.getLayer().setCursor(t)}get document(){return this.getLayer().document}get context(){return this.getLayer().context}get ready(){return Promise.all(Object.entries(this.getLayers()).map(t=>{let[,e]=t;return e.ready}))}resize(t,e){Object.assign(this.extends.config,{width:t,height:e}),Object.values(this.getLayers()).forEach(n=>{let i=n.getCamera(),r=i.getPosition(),a=i.getFocalPoint();n.resize(t,e),i.setPosition(r),i.setFocalPoint(a)})}getBounds(t){return tw(Object.values(this.getLayers()).map(e=>{let n=t?e.getRoot().childNodes.find(e=>e.classList.includes(t)):e.getRoot();return n}).filter(t=>(null==t?void 0:t.childNodes.length)>0).map(t=>t.getBounds()))}getContainer(){let t=this.extends.config.container;return"string"==typeof t?document.getElementById(t):t}getSize(){return[this.extends.config.width||0,this.extends.config.height||0]}appendChild(t,e){var n;let i=(null===(n=t.style)||void 0===n?void 0:n.$layer)||"main";return this.getLayer(i).appendChild(t,e)}setRenderer(t){if(t===this.extends.renderer)return;let e=lG(t);this.extends.renderers=e,Object.entries(e).forEach(t=>{let[e,n]=t;return this.getLayer(e).setRenderer(n)}),lH(this.getLayers())}getCanvasByViewport(t){return tV(this.getLayer().viewport2Canvas(tU(t)))}getViewportByCanvas(t){return tV(this.getLayer().canvas2Viewport(tU(t)))}getViewportByClient(t){return tV(this.getLayer().client2Viewport(tU(t)))}getClientByViewport(t){return tV(this.getLayer().viewport2Client(tU(t)))}getClientByCanvas(t){return this.getClientByViewport(this.getViewportByCanvas(t))}getCanvasByClient(t){let e=this.getLayer(),n=e.client2Viewport(tU(t));return tV(e.viewport2Canvas(n))}async toDataURL(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=window.devicePixelRatio||1,{mode:n="viewport",...i}=t,[r,a,o,s]=[0,0,0,0];if("viewport"===n)[o,s]=this.getSize();else if("overall"===n){let t=this.getBounds(),e=tb(t);[r,a]=t.min,[o,s]=e}let l=(0,lc.L)('
    '),h=new I.Xz({width:o,height:s,renderer:new of,devicePixelRatio:e,container:l,background:this.extends.config.background});await h.ready,h.appendChild(this.getLayer("background").getRoot().cloneNode(!0)),h.appendChild(this.getRoot().cloneNode(!0));let c=this.getLayer("label").getRoot().cloneNode(!0),u=h.viewport2Canvas({x:0,y:0}),d=this.getCanvasByViewport([0,0]);c.translate([d[0]-u.x,d[1]-u.y]),c.scale(1/this.getCamera().getZoom()),h.appendChild(c),h.appendChild(this.getLayer("transient").getRoot().cloneNode(!0));let p=this.getCamera(),f=h.getCamera();if("viewport"===n)f.setZoom(p.getZoom()),f.setPosition(p.getPosition()),f.setFocalPoint(p.getFocalPoint());else if("overall"===n){let[t,e,n]=f.getPosition(),[i,o,s]=f.getFocalPoint();f.setPosition([t+r,e+a,n]),f.setFocalPoint([i+r,o+a,s])}let g=h.getContextService();return new Promise(t=>{h.addEventListener(I.$6.RERENDER,async()=>{await new Promise(t=>setTimeout(t,300));let e=await g.toDataURL(i);t(e)})})}destroy(){Object.values(this.getLayers()).forEach(t=>{let e=t.getCamera();e.cancelLandmarkAnimation(),t.destroy()})}constructor(t){this.config=t;let{renderer:e,background:n,cursor:i,...r}=t,a=lG(e),o=Object.fromEntries(lj.map(t=>{let e=new I.Xz({...r,supportsMutipleCanvasesInOneContainer:!0,renderer:a[t],background:"background"===t?n:void 0});return[t,e]}));lH(o),this.extends={config:t,renderer:e,renderers:a,layers:o}}}function lG(t){return Object.fromEntries(lj.map(e=>{let n=(null==t?void 0:t(e))||new of;return"main"===e?n.registerPlugin(new lZ.S({isDocumentDraggable:!0,isDocumentDroppable:!0,dragstartDistanceThreshold:10,dragstartTimeThreshold:100})):n.unregisterPlugin(n.getPlugin("dom-interaction")),[e,n]}))}function lH(t){Object.entries(t).forEach(t=>{let[e,n]=t,i=n.getContextService().getDomElement();i.style.position="absolute",i.style.outline="none",i.tabIndex=1,"main"!==e&&(i.style.pointerEvents="none")})}function lW(t,e){let{data:n,style:i,...r}=t,{data:a,style:o,...s}=e,l={...r,...s};return(n||a)&&Object.assign(l,{data:{...n,...a}}),(i||o)&&Object.assign(l,{style:{...i,...o}}),l}function lV(t){let{data:e,style:n,...i}=t;return e&&(i.data={...e}),n&&(i.style={...n}),i}function lU(t){let{id:e=tt(t),style:n,data:i,...r}=t,a={...t,style:{...n},data:{...i}};return"source"in t&&"target"in t?{id:e,data:a,...r}:{id:e,data:a}}function lY(t){return t.data}class lK{pushChange(t){if(this.isTraceless)return;let{type:e}=t;if(e===v.NodeUpdated||e===v.EdgeUpdated||e===v.ComboUpdated){let{value:n,original:i}=t;this.changes.push({value:lV(n),original:lV(i),type:e})}else this.changes.push({value:lV(t.value),type:e})}getChanges(){return this.changes}clearChanges(){this.changes=[]}batch(t){this.batchCount++,this.model.batch(t),this.batchCount--}silence(t){this.isTraceless=!0,t(),this.isTraceless=!1}isCombo(t){return this.comboIds.has(t)||this.latestRemovedComboIds.has(t)}getData(){return{nodes:this.getNodeData(),edges:this.getEdgeData(),combos:this.getComboData()}}getNodeData(t){return this.model.getAllNodes().reduce((e,n)=>{let i=lY(n);return this.isCombo(tt(i))||(void 0===t?e.push(i):t.includes(tt(i))&&e.push(i)),e},[])}getEdgeDatum(t){return lY(this.model.getEdge(t))}getEdgeData(t){return this.model.getAllEdges().reduce((e,n)=>{let i=lY(n);return void 0===t?e.push(i):t.includes(tt(i))&&e.push(i),e},[])}getComboData(t){return this.model.getAllNodes().reduce((e,n)=>{let i=lY(n);return this.isCombo(tt(i))&&(void 0===t?e.push(i):t.includes(tt(i))&&e.push(i)),e},[])}getAncestorsData(t,e){let{model:n}=this;return n.hasNode(t)&&n.hasTreeStructure(e)?n.getAncestors(t,e).map(lY):[]}getDescendantsData(t){let e=this.getElementDataById(t),n=[];return t8(e,t=>{t!==e&&n.push(t)},t=>this.getChildrenData(tt(t)),"TB"),n}getParentData(t,e){let{model:n}=this;if(!e){Y.warn("The hierarchy structure key is not specified");return}if(!n.hasNode(t)||!n.hasTreeStructure(e))return;let i=n.getParent(t,e);return i?lY(i):void 0}getChildrenData(t){let e="node"===this.getElementType(t)?H:G,{model:n}=this;return n.hasNode(t)&&n.hasTreeStructure(e)?n.getChildren(t,e).map(lY):[]}getElementsDataByType(t){return"node"===t?this.getNodeData():"edge"===t?this.getEdgeData():"combo"===t?this.getComboData():[]}getElementDataById(t){let e=this.getElementType(t);return"edge"===e?this.getEdgeDatum(t):this.getNodeLikeDatum(t)}getNodeLikeDatum(t){let e=this.model.getNode(t);return lY(e)}getNodeLikeData(t){return this.model.getAllNodes().reduce((e,n)=>{let i=lY(n);return t?t.includes(tt(i))&&e.push(i):e.push(i),e},[])}getElementDataByState(t,e){let n=this.getElementsDataByType(t);return n.filter(t=>{var n;return null===(n=t.states)||void 0===n?void 0:n.includes(e)})}getElementState(t){var e;return(null===(e=this.getElementDataById(t))||void 0===e?void 0:e.states)||[]}hasNode(t){return this.model.hasNode(t)&&!this.isCombo(t)}hasEdge(t){return this.model.hasEdge(t)}hasCombo(t){return this.model.hasNode(t)&&this.isCombo(t)}getRelatedEdgesData(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";return this.model.getRelatedEdges(t,e).map(lY)}getNeighborNodesData(t){return this.model.getNeighbors(t).map(lY)}setData(t){let{nodes:e=[],edges:n=[],combos:i=[]}=t,{nodes:r,edges:a,combos:o}=this.getData(),s=tl(r,e,t=>tt(t)),l=tl(a,n,t=>tt(t)),h=tl(o,i,t=>tt(t));this.batch(()=>{this.addData({nodes:s.enter,edges:l.enter,combos:h.enter}),this.updateData({nodes:s.update,edges:l.update,combos:h.update}),this.removeData({nodes:s.exit.map(tt),edges:l.exit.map(tt),combos:h.exit.map(tt)})})}addData(t){let{nodes:e,edges:n,combos:i}=t;this.batch(()=>{this.addComboData(i),this.addNodeData(e),this.addEdgeData(n)})}addNodeData(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.length&&(this.model.addNodes(t.map(t=>(this.pushChange({value:t,type:v.NodeAdded}),lU(t)))),this.updateNodeLikeHierarchy(t))}addEdgeData(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.length&&this.model.addEdges(t.map(t=>(this.pushChange({value:t,type:v.EdgeAdded}),lU(t))))}addComboData(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!t.length)return;let{model:e}=this;e.hasTreeStructure(G)||e.attachTreeStructure(G),e.addNodes(t.map(t=>(this.comboIds.add(tt(t)),this.pushChange({value:t,type:v.ComboAdded}),lU(t)))),this.updateNodeLikeHierarchy(t)}addChildrenData(t,e){let n=this.getNodeLikeDatum(t),i=e.map(tt);this.addNodeData(e),this.updateNodeData([{id:t,children:[...n.children||[],...i]}]),this.addEdgeData(i.map(e=>({source:t,target:e})))}updateNodeLikeHierarchy(t){if(!this.enableUpdateNodeLikeHierarchy)return;let{model:e}=this;t.forEach(t=>{let n=tt(t);e.attachTreeStructure(G),this.setParent(n,t.combo,G);let i=t.children;if(void 0!==i){e.attachTreeStructure(H);let t=i.filter(t=>e.hasNode(t));t.forEach(t=>this.setParent(t,n,H)),t.length!==i.length&&this.updateNodeData([{id:n,children:t}])}})}preventUpdateNodeLikeHierarchy(t){this.enableUpdateNodeLikeHierarchy=!1,t(),this.enableUpdateNodeLikeHierarchy=!0}updateData(t){let{nodes:e,edges:n,combos:i}=t;this.batch(()=>{this.updateNodeData(e),this.updateComboData(i),this.updateEdgeData(n)})}updateNodeData(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!t.length)return;let{model:e}=this;this.batch(()=>{let n=[];t.forEach(t=>{let i=tt(t),r=lY(e.getNode(i));if((0,F.Z)(r,t))return;let a=lW(r,t);this.pushChange({value:a,original:r,type:v.NodeUpdated}),e.mergeNodeData(i,a),n.push(a)}),this.updateNodeLikeHierarchy(n)})}refreshData(){let{nodes:t,edges:e,combos:n}=this.getData();t.forEach(t=>{this.pushChange({value:t,original:t,type:v.NodeUpdated})}),e.forEach(t=>{this.pushChange({value:t,original:t,type:v.EdgeUpdated})}),n.forEach(t=>{this.pushChange({value:t,original:t,type:v.ComboUpdated})})}syncNodeDatum(t){let{model:e}=this,n=tt(t),i=lY(e.getNode(n)),r=lW(i,t);e.mergeNodeData(n,r)}updateEdgeData(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!t.length)return;let{model:e}=this;this.batch(()=>{t.forEach(t=>{let n=tt(t),i=lY(e.getEdge(n));if((0,F.Z)(i,t))return;t.source&&i.source!==t.source&&e.updateEdgeSource(n,t.source),t.target&&i.target!==t.target&&e.updateEdgeTarget(n,t.target);let r=lW(i,t);this.pushChange({value:r,original:i,type:v.EdgeUpdated}),e.mergeEdgeData(n,r)})})}updateComboData(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!t.length)return;let{model:e}=this;e.batch(()=>{let n=[];t.forEach(t=>{let i=tt(t),r=lY(e.getNode(i));if((0,F.Z)(r,t))return;let a=lW(r,t);this.pushChange({value:a,original:r,type:v.ComboUpdated}),e.mergeNodeData(i,a),n.push(a)}),this.updateNodeLikeHierarchy(n)})}setParent(t,e,n){let i=!(arguments.length>3)||void 0===arguments[3]||arguments[3];if(t===e)return;let r=this.getNodeLikeDatum(t).combo;if(r!==e&&n===G){let n={id:t,combo:e};this.isCombo(t)?this.syncComboDatum(n):this.syncNodeDatum(n)}this.model.setParent(t,e,n),i&&n===G&&(function(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var i=0,r=t.length;i{void 0!==t&&this.refreshComboData(t)})}refreshComboData(t){let e=this.getComboData([t])[0],n=this.getAncestorsData(t,G);e&&this.pushChange({value:e,original:e,type:v.ComboUpdated}),n.forEach(t=>{this.pushChange({value:t,original:t,type:v.ComboUpdated})})}syncComboDatum(t){let{model:e}=this,n=tt(t);if(!e.hasNode(n))return;let i=lY(e.getNode(n)),r=lW(i,t);e.mergeNodeData(n,r)}getElementPosition(t){let e=this.getElementDataById(t);return tH(e)}translateNodeLikeBy(t,e){this.isCombo(t)?this.translateComboBy(t,e):this.translateNodeBy(t,e)}translateNodeLikeTo(t,e){this.isCombo(t)?this.translateComboTo(t,e):this.translateNodeTo(t,e)}translateNodeBy(t,e){let n=this.getElementPosition(t),i=tM(n,[...e,0].slice(0,3));this.translateNodeTo(t,i)}translateNodeTo(t,e){let[n=0,i=0,r=0]=e;this.preventUpdateNodeLikeHierarchy(()=>{this.updateNodeData([{id:t,style:{x:n,y:i,z:r}}])})}translateComboBy(t,e){let[n=0,i=0,r=0]=e;if([n,i,r].some(isNaN)||[n,i,r].every(t=>0===t))return;let a=this.getComboData([t])[0];a&&t8(a,t=>{let e=tt(t),[a,o,s]=tH(t),l=lW(t,{style:{x:a+n,y:o+i,z:s+r}});this.pushChange({value:l,original:t,type:this.isCombo(e)?v.ComboUpdated:v.NodeUpdated}),this.model.mergeNodeData(e,l)},t=>this.getChildrenData(tt(t)),"BT")}translateComboTo(t,e){var n;if(e.some(isNaN))return;let[i=0,r=0,a=0]=e,o=null===(n=this.getComboData([t]))||void 0===n?void 0:n[0];if(!o)return;let[s,l,h]=tH(o),c=i-s,u=r-l,d=a-h;t8(o,t=>{let e=tt(t),[n,i,r]=tH(t),a=lW(t,{style:{x:n+c,y:i+u,z:r+d}});this.pushChange({value:a,original:t,type:this.isCombo(e)?v.ComboUpdated:v.NodeUpdated}),this.model.mergeNodeData(e,a)},t=>this.getChildrenData(tt(t)),"BT")}removeData(t){let{nodes:e,edges:n,combos:i}=t;this.batch(()=>{this.removeEdgeData(n),this.removeNodeData(e),this.removeComboData(i),this.latestRemovedComboIds=new Set(i)})}removeNodeData(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.length&&this.batch(()=>{t.forEach(t=>{this.removeEdgeData(this.getRelatedEdgesData(t).map(tt)),this.pushChange({value:this.getNodeData([t])[0],type:v.NodeRemoved}),this.removeNodeLikeHierarchy(t)}),this.model.removeNodes(t)})}removeEdgeData(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.length&&(t.forEach(t=>this.pushChange({value:this.getEdgeData([t])[0],type:v.EdgeRemoved})),this.model.removeEdges(t))}removeComboData(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.length&&this.batch(()=>{t.forEach(t=>{this.pushChange({value:this.getComboData([t])[0],type:v.ComboRemoved}),this.removeNodeLikeHierarchy(t),this.comboIds.delete(t)}),this.model.removeNodes(t)})}removeNodeLikeHierarchy(t){if(this.model.hasTreeStructure(G)){let e=this.getNodeLikeDatum(t).combo;this.setParent(t,void 0,G,!1),this.model.getChildren(t,G).forEach(t=>{let n=lY(t),i=tt(n);this.setParent(tt(n),e,G,!1);let r=lW(n,{id:tt(n),combo:e});this.pushChange({value:r,original:n,type:this.isCombo(i)?v.ComboUpdated:v.NodeUpdated}),this.model.mergeNodeData(tt(n),r)}),(0,e9.Z)(e)||this.refreshComboData(e)}}getElementType(t){if(this.model.hasNode(t))return this.isCombo(t)?"combo":"node";if(this.model.hasEdge(t))return"edge";throw Error(U("Unknown element type of id: ".concat(t)))}destroy(){let{model:t}=this,e=t.getAllNodes(),n=t.getAllEdges();t.removeEdges(n.map(t=>t.id)),t.removeNodes(e.map(t=>t.id)),this.context={}}constructor(){this.latestRemovedComboIds=new Set,this.comboIds=new Set,this.changes=[],this.batchCount=0,this.isTraceless=!1,this.enableUpdateNodeLikeHierarchy=!0,this.model=new io.k}}class l${init(){if(!this.container){let{canvas:t}=this.context;this.container=t.appendChild(new I.ZA({className:"elements"}))}}emit(t,e){e.silence||lI(this.context.graph,t)}forEachElementData(t){t4.forEach(e=>{let n=this.context.model.getElementsDataByType(e);t(e,n)})}getElementType(t,e){var n;let{options:i,graph:r}=this.context,a=(null===(n=i[t])||void 0===n?void 0:n.type)||e.type;return a?"string"==typeof a?a:a.call(r,e):"edge"===t?"line":"circle"}getTheme(t){return K(this.context.options)[t]||{}}getThemeStyle(t){return this.getTheme(t).style||{}}getThemeStateStyle(t,e){let{state:n={}}=this.getTheme(t);return Object.assign({},...e.map(t=>n[t]||{}))}computePaletteStyle(){let{options:t}=this.context;this.paletteStyle={},this.forEachElementData((e,n)=>{var i,r;let a=Object.assign({},eC(null===(i=this.getTheme(e))||void 0===i?void 0:i.palette),eC(null===(r=t[e])||void 0===r?void 0:r.palette));(null==a?void 0:a.field)&&Object.assign(this.paletteStyle,function(t,e){if(!e)return{};let{type:n,color:i,field:r,invert:a}=e,o=t=>{let e="string"==typeof i?V("palette",i):i;if("function"==typeof e){let n={};return t.forEach(t=>{let[i,r]=t;n[i]=e(a?1-r:r)}),n}if(Array.isArray(e)){let n=a?[...e].reverse():e,i={};return t.forEach(t=>{let[r,a]=t;i[r]=n[a%e.length]}),i}return{}},s=(t,e)=>{var n;return"string"==typeof t?null===(n=e.data)||void 0===n?void 0:n[t]:null==t?void 0:t(e)};if("group"===n){let e=ew(t,t=>{if(!r)return"default";let e=s(r,t);return e?String(e):"default"}),n=Object.keys(e),i=o(n.map((t,e)=>[t,e])),a={};return Object.entries(e).forEach(t=>{let[e,n]=t;n.forEach(t=>{a[tt(t)]=i[e]})}),a}if("value"===n){let[e,n]=t.reduce((t,e)=>{let[n,i]=t,a=s(r,e);if("number"!=typeof a)throw Error(U("Palette field ".concat(r," is not a number")));return[Math.min(n,a),Math.max(i,a)]},[1/0,-1/0]),i=n-e;return o(t.map(t=>[t.id,(s(r,t)-e)/i]))}}(n,a))})}getPaletteStyle(t,e){let n=this.paletteStyle[e];return n?"edge"===t?{stroke:n}:{fill:n}:{}}computeElementDefaultStyle(t,e){var n;let{options:i}=this.context,r=(null===(n=i[t])||void 0===n?void 0:n.style)||{};this.defaultStyle[tt(e.datum)]=ec(r,e)}computeElementsDefaultStyle(t){let{graph:e}=this.context;this.forEachElementData((n,i)=>{let r=i.length;for(let a=0;athis.getElementStateStyle(t,e,n)))}computeElementsStatesStyle(t){let{graph:e}=this.context;this.forEachElementData((n,i)=>{let r=i.length;for(let a=0;a{let{id:e}=t;return this.elementMap[e]})}getEdges(){return this.context.model.getEdgeData().map(t=>this.elementMap[tt(t)])}getCombos(){return this.context.model.getComboData().map(t=>{let{id:e}=t;return this.elementMap[e]})}getElementComputedStyle(t,e){let n=tt(e),i=this.getThemeStyle(t),r=this.getPaletteStyle(t,n),a=e.style||{},o=this.getDefaultStyle(n),s=this.getThemeStateStyle(t,this.getElementState(n)),l=this.getStateStyle(n),h=Object.assign({},i,r,a,o,s,l);if("combo"===t){let t=this.context.model.getChildrenData(n),e=!!h.collapsed,i=e?[]:t.map(tt).filter(t=>this.getElement(t));Object.assign(h,{childrenNode:i,childrenData:t})}return h}draw(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{animation:!0};this.init();let e=this.computeChangesAndDrawData(t);if(!e)return null;let{dataChanges:n,drawData:i}=e;this.markDestroyElement(i),this.computeStyle(t.stage);let{add:r,update:a,remove:o}=i;this.destroyElements(o,t),this.createElements(r,t),this.updateElements(a,t);let{animation:s,silence:l}=t,{type:h="draw"}=t,c="render"===h;return this.context.animation.animate(s,l?{}:{before:()=>this.emit(new lP(R.BEFORE_DRAW,{dataChanges:n,animation:s,render:c}),t),beforeAnimate:e=>this.emit(new lL(R.BEFORE_ANIMATE,b.DRAW,e,i),t),afterAnimate:e=>this.emit(new lL(R.AFTER_ANIMATE,b.DRAW,e,i),t),after:()=>this.emit(new lP(R.AFTER_DRAW,{dataChanges:n,animation:s,render:c}),t)})}computeChangesAndDrawData(t){let{model:e}=this.context,n=e.getChanges(),i=rc(n);if(0===i.length)return null;let{NodeAdded:r=[],NodeUpdated:a=[],NodeRemoved:o=[],EdgeAdded:s=[],EdgeUpdated:l=[],EdgeRemoved:h=[],ComboAdded:c=[],ComboUpdated:u=[],ComboRemoved:d=[]}=ew(i,t=>t.type),p=t=>new Map(t.map(t=>{let e=t.value;return[tt(e),e]})),f={add:{nodes:p(r),edges:p(s),combos:p(c)},update:{nodes:p(a),edges:p(l),combos:p(u)},remove:{nodes:p(o),edges:p(h),combos:p(d)}},g=this.transformData(f,t);return e.clearChanges(),{dataChanges:n,drawData:g}}transformData(t,e){let n=this.context.transform.getTransformInstance();return Object.values(n).reduce((t,n)=>n.beforeDraw(t,e),t)}createElement(t,e,n){var i;let r=tt(e),a=this.getElement(r);if(a)return;let o=this.getElementType(t,e),s=this.getElementComputedStyle(t,e),l=V(t,o);if(!l)return Y.warn("The element ".concat(o," of ").concat(t," is not registered."));this.emit(new lD(R.BEFORE_ELEMENT_CREATE,t,e),n);let h=this.container.appendChild(new l({id:r,style:{context:this.context,...s}}));this.shapeTypeMap[r]=o,this.elementMap[r]=h;let{stage:c="enter"}=n;null===(i=this.context.animation)||void 0===i||i.add({element:h,elementType:t,stage:c,originalStyle:{...h.attributes},modifiedStyle:{...h.attributes,...s}},{after:()=>{var i;this.emit(new lD(R.AFTER_ELEMENT_CREATE,t,e),n),null===(i=h.onCreate)||void 0===i||i.call(h)}})}createElements(t,e){let{nodes:n,edges:i,combos:r}=t;[["node",n],["combo",r],["edge",i]].forEach(t=>{let[n,i]=t;i.forEach(t=>this.createElement(n,t,e))})}updateElement(t,e,n){var i;let r=tt(e),a=this.getElement(r);if(!a)return()=>null;this.emit(new lD(R.BEFORE_ELEMENT_UPDATE,t,e),n);let o=this.getElementType(t,e),s=this.getElementComputedStyle(t,e);this.shapeTypeMap[r]!==o&&(a.destroy(),delete this.shapeTypeMap[r],delete this.elementMap[r],this.createElement(t,e,{animation:!1,silence:!0}));let{stage:l="update"}=n,h="visibility"!==l?l:"hidden"===s.visibility?"hide":"show";"hide"===h&&delete s.visibility,null===(i=this.context.animation)||void 0===i||i.add({element:a,elementType:t,stage:h,originalStyle:{...a.attributes},modifiedStyle:{...a.attributes,...s}},{before:()=>{let t=this.elementMap[r];"collapse"!==l&&n8(t,s),"visibility"===l&&(ey(t,"opacity")||ef(t,"opacity"),this.visibilityCache.set(t,"show"===h?"visible":"hidden"),"show"===h&&eM(t,"visible"))},after:()=>{var i;let a=this.elementMap[r];"collapse"===l&&n8(a,s),"hide"===h&&eM(a,this.visibilityCache.get(a)),this.emit(new lD(R.AFTER_ELEMENT_UPDATE,t,e),n),null===(i=a.onUpdate)||void 0===i||i.call(a)}})}updateElements(t,e){let{nodes:n,edges:i,combos:r}=t;[["node",n],["combo",r],["edge",i]].forEach(t=>{let[n,i]=t;i.forEach(t=>this.updateElement(n,t,e))})}markDestroyElement(t){Object.values(t.remove).forEach(t=>{t.forEach(t=>{let e=tt(t),n=this.getElement(e);n&&(0,ei.Z)(n,"__to_be_destroyed__",!0)})})}destroyElement(t,e,n){var i;let{stage:r="exit"}=n,a=tt(e),o=this.elementMap[a];if(!o)return()=>null;this.emit(new lD(R.BEFORE_ELEMENT_DESTROY,t,e),n),null===(i=this.context.animation)||void 0===i||i.add({element:o,elementType:t,stage:r,originalStyle:{...o.attributes},modifiedStyle:{...o.attributes}},{after:()=>{var i;this.clearElement(a),o.destroy(),null===(i=o.onDestroy)||void 0===i||i.call(o),this.emit(new lD(R.AFTER_ELEMENT_DESTROY,t,e),n)}})}destroyElements(t,e){let{nodes:n,edges:i,combos:r}=t;[["combo",r],["edge",i],["node",n]].forEach(t=>{let[n,i]=t;i.forEach(t=>this.destroyElement(n,t,e))})}clearElement(t){delete this.paletteStyle[t],delete this.defaultStyle[t],delete this.stateStyle[t],delete this.elementMap[t],delete this.shapeTypeMap[t]}async collapseNode(t,e){var n;let{model:i,layout:r}=this.context,a=this.computeChangesAndDrawData({stage:"collapse",animation:e});this.markDestroyElement(a.drawData);let o=await r.simulate();i.updateData(o);let{drawData:s}=this.computeChangesAndDrawData({stage:"collapse",animation:e}),{add:l,remove:h,update:c}=s;this.markDestroyElement(s);let u={animation:e,stage:"collapse",data:s};this.destroyElements(h,u),this.createElements(l,u),this.updateElements(c,u),await (null===(n=this.context.animation.animate(e,{beforeAnimate:t=>this.emit(new lL(R.BEFORE_ANIMATE,b.COLLAPSE,t,s),u),afterAnimate:t=>this.emit(new lL(R.AFTER_ANIMATE,b.COLLAPSE,t,s),u)},{collapse:{target:t,descendants:Array.from(h.nodes).map(t=>{let[,e]=t;return tt(e)}),position:tH(c.nodes.get(t))}}))||void 0===n?void 0:n.finished)}async expandNode(t,e){var n;let{model:i,layout:r}=this.context;if(!i.getAncestorsData(t,G).every(t=>ee(t)))return;let a=tH(i.getNodeData([t])[0]),{drawData:{add:o}}=this.computeChangesAndDrawData({stage:"collapse",animation:e});this.createElements(o,{animation:!1,stage:"expand"}),this.context.animation.clear();let s=await r.simulate();i.updateData(s),this.computeStyle("expand");let{drawData:l}=this.computeChangesAndDrawData({stage:"collapse",animation:e}),{update:h}=l,c={animation:e,stage:"expand",data:l};o.edges.forEach(t=>{let e=tt(t);h.edges.has(e)||h.edges.set(e,t)}),this.updateElements(h,c),await (null===(n=this.context.animation.animate(e,{beforeAnimate:t=>this.emit(new lL(R.BEFORE_ANIMATE,b.EXPAND,t,l),c),afterAnimate:t=>this.emit(new lL(R.AFTER_ANIMATE,b.EXPAND,t,l),c)},{expand:{target:t,descendants:Array.from(o.nodes).map(t=>{let[,e]=t;return tt(e)}),position:a}}))||void 0===n?void 0:n.finished)}async collapseCombo(t,e){var n;let{model:i,element:r}=this.context;if(i.getAncestorsData(t,G).some(t=>ee(t)))return;let a=r.getElement(t),o=a.getComboPosition({...a.attributes,collapsed:!0}),{dataChanges:s,drawData:l}=this.computeChangesAndDrawData({stage:"collapse",animation:e});this.markDestroyElement(l);let{update:h,remove:c}=l,u={animation:e,stage:"collapse",data:l};this.destroyElements(c,u),this.updateElements(h,u);let d=t=>Array.from(t).map(t=>{let[,e]=t;return tt(e)});await (null===(n=this.context.animation.animate(e,{before:()=>this.emit(new lP(R.BEFORE_DRAW,{dataChanges:s,animation:e}),u),beforeAnimate:t=>this.emit(new lL(R.BEFORE_ANIMATE,b.COLLAPSE,t,l),u),afterAnimate:t=>this.emit(new lL(R.AFTER_ANIMATE,b.COLLAPSE,t,l),u),after:()=>this.emit(new lP(R.AFTER_DRAW,{dataChanges:s,animation:e}),u)},{collapse:{target:t,descendants:[...d(c.nodes),...d(c.combos)],position:o}}))||void 0===n?void 0:n.finished)}async expandCombo(t,e){var n;let{model:i}=this.context,r=tH(i.getComboData([t])[0]);this.computeStyle("expand");let{dataChanges:a,drawData:o}=this.computeChangesAndDrawData({stage:"expand",animation:e}),{add:s,update:l}=o,h={animation:e,stage:"expand",data:o};this.createElements(s,h),this.updateElements(l,h);let c=t=>Array.from(t).map(t=>{let[,e]=t;return tt(e)});await (null===(n=this.context.animation.animate(e,{before:()=>this.emit(new lP(R.BEFORE_DRAW,{dataChanges:a,animation:e}),h),beforeAnimate:t=>this.emit(new lL(R.BEFORE_ANIMATE,b.EXPAND,t,o),h),afterAnimate:t=>this.emit(new lL(R.AFTER_ANIMATE,b.EXPAND,t,o),h),after:()=>this.emit(new lP(R.AFTER_DRAW,{dataChanges:a,animation:e}),h)},{expand:{target:t,descendants:[...c(s.nodes),...c(s.combos)],position:r}}))||void 0===n?void 0:n.finished)}getFrontZIndex(t){let{model:e}=this.context,n=e.getElementType(t),i=e.getElementDataById(t),r=e.getData();if(Object.assign(r,{["".concat(n,"s")]:r["".concat(n,"s")].filter(e=>tt(e)!==t)}),"combo"===n&&!ee(i)){let n=e.getAncestorsData(t,G).map(tt);r.nodes=r.nodes.filter(t=>!n.includes(tt(t))),r.combos=r.combos.filter(t=>!n.includes(tt(t))),r.edges=r.edges.filter(t=>{let{source:e,target:i}=t;return n.includes(e)&&n.includes(i)})}return Math.max(0,...Object.values(r).flat().map(t=>{let e=tt(t);return this.getElementZIndex(e)}))+1}destroy(){this.container.destroy(),this.elementMap={},this.shapeTypeMap={},this.defaultStyle={},this.stateStyle={},this.paletteStyle={},this.context={}}constructor(t){this.elementMap={},this.shapeTypeMap={},this.paletteStyle={},this.defaultStyle={},this.stateStyle={},this.visibilityCache=new WeakMap,this.context=t}}var lX=n(38027),lq=n(54375);class lQ extends rh.Z{constructor(t,e,n){super(),this.graph=t,this.layout=e,this.options=n,this.spawnWorker()}spawnWorker(){this.proxy=lq.Ud(new Worker(n.tu(new URL(n.p+n.u(1939),n.b)),{type:void 0})),this.running&&(this.running=!1,this.execute())}execute(){var t;return(0,rE.mG)(this,void 0,void 0,function*(){if(this.running)return this;this.running=!0;let e=this.layout.options,{onTick:n}=e,i=(0,rE._T)(e,["onTick"]),r={};Object.keys(i).forEach(t=>{(0,lX.Z)(i[t])||(r[t]=i[t])});let a={layout:{id:this.layout.id,options:r,iterations:null===(t=this.options)||void 0===t?void 0:t.iterations},nodes:this.graph.getAllNodes(),edges:this.graph.getAllEdges()},o=new Float32Array([0]),[s]=yield this.proxy.calculateLayout(a,[o]);return s})}stop(){return this.running=!1,this.proxy.stopLayout(),this}kill(){this.proxy[lq.Yy]()}isRunning(){return this.running}}var lJ=n(10779);class l0{get presetOptions(){return{animation:!!Q(this.context.options,!0)}}get options(){let{options:t}=this.context;return t.layout}getLayoutInstance(){return this.instances}async layout(){if(!this.options)return;let t=Array.isArray(this.options)?this.options:[this.options],{graph:e}=this.context;for(let n of(lI(e,new lP(R.BEFORE_LAYOUT)),t)){let i=t.indexOf(n),r=this.getLayoutData(n),a={...this.presetOptions,...n};lI(e,new lP(R.BEFORE_STAGE_LAYOUT,{options:a,index:i}));let o=await this.stepLayout(r,a,i);lI(e,new lP(R.AFTER_STAGE_LAYOUT,{options:a,index:i})),n.animation||this.updateElementPosition(o,!1)}lI(e,new lP(R.AFTER_LAYOUT))}async simulate(){if(!this.options)return{};let t=Array.isArray(this.options)?this.options:[this.options],e={};for(let n of t){let i=t.indexOf(n),r=this.getLayoutData(n),a=await this.stepLayout(r,{...this.presetOptions,...n,animation:!1},i);e=a}return e}async stepLayout(t,e,n){return!function(t){let{type:e}=t;return["compact-box","mindmap","dendrogram","indented"].includes(e)}(e)?await this.graphLayout(t,e,n):await this.treeLayout(t,e,n)}async graphLayout(t,e,n){let{animation:i,enableWorker:r,iterations:a=300}=e,o=this.initGraphLayout(e);if(!o)return{};if(this.instances[n]=o,this.instance=o,r)return this.supervisor=new lQ(o.graphData2LayoutModel(t),o.instance,{iterations:a}),il(await this.supervisor.execute());if((0,lJ.h)(o))return i?await o.execute(t,{onTick:t=>{this.updateElementPosition(t,!1)}}):(o.execute(t),o.stop(),o.tick(a));let s=await o.execute(t);return i&&this.updateElementPosition(s,i),s}async treeLayout(t,e,n){let{type:i,animation:r}=e,a=V("layout",i);if(!a)return{};let{nodes:o=[],edges:s=[]}=t,l=new io.k({nodes:o.map(t=>({id:tt(t),data:t.data||{}})),edges:s.map(t=>({id:tt(t),source:t.source,target:t.target,data:t.data||{}}))});!function(t){if(t.hasTreeStructure(H))return;t.attachTreeStructure(H);let e=t.getAllEdges();for(let n of e){let{source:e,target:i}=n;t.setParent(i,e,H)}}(l);let h={nodes:[],edges:[]},c={nodes:[],edges:[]},u=l.getRoots(H);u.forEach(t=>{t8(t,t=>{t.children=l.getSuccessors(t.id)},t=>l.getSuccessors(t.id),"TB");let n=a(t,e),{x:i,y:r,z:o=0}=n;t8(n,t=>{let{id:e,x:n,y:a,z:s=0}=t;h.nodes.push({id:e,style:{x:i,y:r,z:o}}),c.nodes.push({id:e,style:{x:n,y:a,z:s}})},t=>t.children,"TB")});let d=this.inferTreeLayoutOffset(c);return l1(c,d),r&&(l1(h,d),this.updateElementPosition(h,!1),this.updateElementPosition(c,r)),c}inferTreeLayoutOffset(t){var e;let[n,i]=[1/0,-1/0],[r,a]=[1/0,-1/0];null===(e=t.nodes)||void 0===e||e.forEach(t=>{let{x:e=0,y:o=0}=t.style||{};n=Math.min(n,e),i=Math.max(i,e),r=Math.min(r,o),a=Math.max(a,o)});let{canvas:o}=this.context,s=o.getSize(),[l,h]=o.getCanvasByViewport([0,0]),[c,u]=o.getCanvasByViewport(s);return n>=l&&i<=c&&r>=h&&a<=u?[0,0]:[(l+c)/2-(n+i)/2,(h+u)/2-(r+a)/2]}stopLayout(){this.instance&&(0,lJ.h)(this.instance)&&(this.instance.stop(),this.instance=void 0),this.supervisor&&(this.supervisor.stop(),this.supervisor=void 0),this.animationResult&&(this.animationResult.finish(),this.animationResult=void 0)}getLayoutData(t){let{nodeFilter:e=()=>!0}=t,{nodes:n,edges:i,combos:r}=this.context.model.getData(),a=t=>this.context.element.getElement(t),o=n.filter(t=>{let n=tt(t),i=a(n);return!(!i||n9(i))&&e(t)}),s=new Map(o.map(t=>[tt(t),t])),l=i.filter(t=>{let{source:e,target:n}=t;return!!(s.has(e)&&s.has(n))});return{nodes:o,edges:l,combos:r}}initGraphLayout(t){var e,n;let{element:i,viewport:r}=this.context,{type:a,enableWorker:o,animation:s,iterations:l,...h}=t,[c,u]=r.getCanvasSize(),d=[c/2,u/2],p=null!==(e=null==t?void 0:t.nodeSize)&&void 0!==e?e:t=>{let e=null==i?void 0:i.getElement(t.id),{size:n}=(null==e?void 0:e.attributes)||{};return Math.max(...eh(n))},f=V("layout",a);if(!f)return Y.warn("The layout of ".concat(a," is not registered."));let g=Object.getPrototypeOf(f.prototype)===is.prototype?f:(n=this.context,class extends is{async execute(t,e){return il(await this.instance.execute(this.graphData2LayoutModel(t),this.transformOptions((0,J.Z)({},this.options,e))))}transformOptions(t){let{onTick:e}=t;return e&&(t.onTick=t=>e(il(t))),t}graphData2LayoutModel(t){let{nodes:e=[],edges:i=[],combos:r=[]}=t,a=e.map(t=>{let e=tt(t),{data:n,style:i,combo:r}=t,a={id:e,data:{...n,...r?{parentId:r}:{}},style:{...i}};return(null==i?void 0:i.x)&&Object.assign(a.data,{x:i.x}),(null==i?void 0:i.y)&&Object.assign(a.data,{y:i.y}),(null==i?void 0:i.z)&&Object.assign(a.data,{z:i.z}),a}),o=new Map(a.map(t=>[t.id,t])),s=i.filter(t=>{let{source:e,target:n}=t;return o.has(e)&&o.has(n)}).map(t=>{let{source:e,target:n,data:i,style:r}=t;return{id:tt(t),source:e,target:n,data:{...i},style:{...r}}}),l=r.map(t=>({id:tt(t),data:{_isCombo:!0,...t.data},style:{...t.style}})),h=new io.k({nodes:[...a,...l],edges:s});return n.model.model.hasTreeStructure(G)&&(h.attachTreeStructure(G),a.forEach(t=>{let e=n.model.model.getParent(t.id,G);e&&h.hasNode(e.id)&&h.setParent(t.id,e.id,G)})),h}constructor(t,e){if(super(t,e),this.instance=new f({}),this.id=this.instance.id,"stop"in this.instance&&"tick"in this.instance){let t=this.instance;this.stop=t.stop.bind(t),this.tick=e=>{let n=t.tick(e);return il(n)}}}}),y=new g(this.context),m={nodeSize:p,width:c,height:u,center:d};switch(y.id){case"d3-force":case"d3-force-3d":Object.assign(m,{center:{x:c/2,y:u/2,z:0}})}return(0,J.Z)(y.options,m,h),y}updateElementPosition(t,e){let{model:n,element:i}=this.context;return i?(n.updateData(t),i.draw({animation:e,silence:!0})):null}destroy(){var t;this.stopLayout(),this.context={},null===(t=this.supervisor)||void 0===t||t.kill(),this.supervisor=void 0,this.instance=void 0,this.instances=[],this.animationResult=void 0}constructor(t){this.instances=[],this.context=t}}let l1=(t,e)=>{var n;let[i,r]=e;null===(n=t.nodes)||void 0===n||n.forEach(t=>{if(t.style){let{x:e=0,y:n=0}=t.style;t.style.x=e+i,t.style.y=n+r}else t.style={x:i,y:r}})};class l2 extends th{setPlugins(t){this.setExtensions(t)}getPluginInstance(t){let e=this.extensionMap[t];if(e)return e;Y.warn("Cannot find the plugin ".concat(t,", will try to find it by type."));let n=this.extensions.find(e=>e.type===t);if(n)return this.extensionMap[n.key]}constructor(t){super(t),this.category="plugin",this.setPlugins(this.context.options.plugins||[])}}let l3=["update-related-edges","collapse-expand-node","collapse-expand-combo","get-edge-actual-ends","arrange-draw-order"];class l6 extends th{getTransforms(){}setTransforms(t){this.setExtensions([...l3.slice(0,l3.length-1),...t,l3[l3.length-1]])}getTransformInstance(t){return t?this.extensionMap[t]:this.extensionMap}constructor(t){super(t),this.category="transform",this.setTransforms(this.context.options.transforms||[])}}class l4{get padding(){return ty(this.context.options.padding)}get paddingOffset(){let[t,e,n,i]=this.padding,[r,a,o]=[(i-e)/2,(t-n)/2,0];return[r,a,o]}get camera(){let{canvas:t}=this.context;return new Proxy(t.getCamera(),{get:(e,n)=>{let i=Object.entries(t.getLayers()).filter(t=>{let[e]=t;return!["main"].includes(e)}),r=i.map(t=>{let[,e]=t;return e.getCamera()}),a=e[n];if("function"==typeof a)return function(){for(var t=arguments.length,i=Array(t),o=0;o{t[n].apply(t,i)}),s}}})}createLandmark(t){return this.camera.createLandmark("landmark-".concat(this.landmarkCounter++),t)}getAnimation(t){let e=Q(this.context.options,t);return!!e&&(0,e8.Z)({...e},["easing","duration"])}getCanvasSize(){let{canvas:t}=this.context,{width:e=0,height:n=0}=t.getConfig();return[e,n]}getCanvasCenter(){let{canvas:t}=this.context,{width:e=0,height:n=0}=t.getConfig();return[e/2,n/2,0]}getViewportCenter(){let[t,e]=this.camera.getPosition();return[t,e,0]}getGraphCenter(){return this.context.graph.getViewportByCanvas(this.getCanvasCenter())}getZoom(){return this.camera.getZoom()}getRotation(){return this.camera.getRoll()}getTranslateOptions(t){let{camera:e}=this,{mode:n,translate:i=[]}=t,r=this.getZoom(),a=e.getPosition(),o=e.getFocalPoint(),[s,l]=this.getCanvasCenter(),[h=0,c=0,u=0]=i,d=tP([-h,-c,-u],r);return"relative"===n?{position:tM(a,d),focalPoint:tM(o,d)}:{position:tM([s,l,a[2]],d),focalPoint:tM([s,l,o[2]],d)}}getRotateOptions(t){let{mode:e,rotate:n=0}=t,i="relative"===e?this.camera.getRoll()+n:n;return{roll:i}}getZoomOptions(t){let{zoomRange:e}=this.context.options,n=this.camera.getZoom(),{mode:i,scale:r=1}=t;return(0,im.Z)("relative"===i?n*r:r,...e)}async transform(t,e){let{graph:n}=this.context,{translate:i,rotate:r,scale:a,origin:o}=t;this.cancelAnimation();let s=this.getAnimation(e);if(lI(n,new lN(R.BEFORE_TRANSFORM,t)),!r&&a&&!i&&o&&!s){this.camera.setZoomByViewportPoint(this.getZoomOptions(t),o),lI(n,new lN(R.AFTER_TRANSFORM,t));return}let l={};if(i&&Object.assign(l,this.getTranslateOptions(t)),(0,eJ.Z)(r)&&Object.assign(l,this.getRotateOptions(t)),(0,eJ.Z)(a)&&Object.assign(l,{zoom:this.getZoomOptions(t)}),s)return lI(n,new lL(R.BEFORE_ANIMATE,b.TRANSFORM,null,t)),new Promise(e=>{this.transformResolver=e,this.camera.gotoLandmark(this.createLandmark(l),{...s,onfinish:()=>{lI(n,new lL(R.AFTER_ANIMATE,b.TRANSFORM,null,t)),lI(n,new lN(R.AFTER_TRANSFORM,t)),this.transformResolver=void 0,e()}})});this.camera.gotoLandmark(this.createLandmark(l),{duration:0}),lI(n,new lN(R.AFTER_TRANSFORM,t))}async fitView(t,e){let[n,i,r,a]=this.padding,{when:o="always",direction:s="both"}=t||{},[l,h]=this.context.canvas.getSize(),c=l-a-i,u=h-n-r,d=this.context.canvas.getBounds(),p=this.getBBoxInViewport(d),[f,g]=tb(p);if("overflow"===o&&!("x"===s&&f>=c||"y"===s&&g>=u||"both"===s&&f>=c&&g>=u))return await this.fitCenter(e);let y=c/f,m=u/g,v="x"===s?y:"y"===s?m:Math.min(y,m),b=this.getAnimation(e);await this.transform({mode:"relative",scale:v,translate:tM(tT(this.getCanvasCenter(),this.getBBoxInViewport(d).center),tP(this.paddingOffset,v))},b)}async fitCenter(t){let e=this.context.canvas.getBounds();await this.focus(e,t)}async focusElements(t,e){let{element:n}=this.context;if(!n)return;let i=tw(t.map(t=>n.getElement(t).getRenderBounds()));await this.focus(i,e)}async focus(t,e){let n=this.context.graph.getViewportByCanvas(t.center),i=this.getCanvasCenter(),r=tT(i,n);await this.transform({mode:"relative",translate:tM(r,this.paddingOffset)},e)}getBBoxInViewport(t){let{min:e,max:n}=t,{graph:i}=this.context,[r,a]=i.getViewportByCanvas(e),[o,s]=i.getViewportByCanvas(n),l=new I.mN;return l.setMinMax([r,a,0],[o,s,0]),l}isInViewport(t){let{graph:e}=this.context,n=this.getCanvasSize(),[i,r]=e.getCanvasByViewport([0,0]),[a,o]=e.getCanvasByViewport(n),s=new I.mN;return s.setMinMax([i,r,0],[a,o,0]),tf(t)?tC(t,s):s.intersects(t)}cancelAnimation(){var t,e;(null===(t=this.camera.landmarks)||void 0===t?void 0:t.length)&&this.camera.cancelLandmarkAnimation(),null===(e=this.transformResolver)||void 0===e||e.call(this)}constructor(t){this.landmarkCounter=0,this.context=t;let[e,n]=this.paddingOffset,{zoom:i,rotation:r,x:a=e,y:o=n}=t.options;this.transform({mode:"absolute",scale:i,translate:[a,o],rotate:r},!1)}}class l8 extends rh.Z{getOptions(){return this.options}setOptions(t){var e,n,i;let{behaviors:r,combo:a,data:o,edge:s,height:l,layout:h,node:c,plugins:u,theme:d,transforms:p,width:f,cursor:g,renderer:y}=t;if(y){let t=this.context.canvas;t&&(this.emit(R.BEFORE_RENDERER_CHANGE,{renderer:this.options.renderer}),t.setRenderer(y),this.emit(R.AFTER_RENDERER_CHANGE,{renderer:y}))}Object.assign(this.options,t),g&&(null===(e=this.context.canvas)||void 0===e||e.setCursor(g)),r&&this.setBehaviors(r),a&&this.setCombo(a),o&&this.setData(o),s&&this.setEdge(s),h&&this.setLayout(h),c&&this.setNode(c),d&&this.setTheme(d),u&&this.setPlugins(u),p&&this.setTransforms(p),((0,eJ.Z)(f)||(0,eJ.Z)(l))&&this.setSize(null!==(n=null!=f?f:this.options.width)&&void 0!==n?n:0,null!==(i=null!=l?l:this.options.height)&&void 0!==i?i:0)}getSize(){return this.context.canvas?this.context.canvas.getSize():[this.options.width||0,this.options.height||0]}setSize(t,e){var n;Object.assign(this.options,{width:t,height:e}),null===(n=this.context.canvas)||void 0===n||n.resize(t,e)}setZoomRange(t){this.options.zoomRange=t}getZoomRange(){return this.options.zoomRange}setNode(t){this.options.node=t,this.context.model.refreshData()}setEdge(t){this.options.edge=t,this.context.model.refreshData()}setCombo(t){this.options.combo=t,this.context.model.refreshData()}getTheme(){return this.options.theme}setTheme(t){this.options.theme=(0,td.Z)(t)?t(this.getTheme()):t}setLayout(t){this.options.layout=(0,td.Z)(t)?t(this.getLayout()):t}getLayout(){return this.options.layout}setBehaviors(t){var e;this.options.behaviors=(0,td.Z)(t)?t(this.getBehaviors()):t,null===(e=this.context.behavior)||void 0===e||e.setBehaviors(this.options.behaviors)}updateBehavior(t){this.setBehaviors(e=>e.map(e=>"object"==typeof e&&e.key===t.key?{...e,...t}:e))}getBehaviors(){return this.options.behaviors||[]}setPlugins(t){var e;this.options.plugins=(0,td.Z)(t)?t(this.getPlugins()):t,null===(e=this.context.plugin)||void 0===e||e.setPlugins(this.options.plugins)}updatePlugin(t){this.setPlugins(e=>e.map(e=>"object"==typeof e&&e.key===t.key?{...e,...t}:e))}getPlugins(){return this.options.plugins||[]}getPluginInstance(t){return this.context.plugin.getPluginInstance(t)}setTransforms(t){var e;this.options.transforms=(0,td.Z)(t)?t(this.getTransforms()):t,null===(e=this.context.transform)||void 0===e||e.setTransforms(this.options.transforms)}updateTransform(t){this.setTransforms(e=>e.map(e=>"object"==typeof e&&e.key===t.key?{...e,...t}:e)),this.context.model.refreshData()}getTransforms(){return this.options.transforms||[]}getData(){return this.context.model.getData()}getElementData(t){return Array.isArray(t)?t.map(t=>this.context.model.getElementDataById(t)):this.context.model.getElementDataById(t)}getNodeData(t){var e;return void 0===t?this.context.model.getNodeData():Array.isArray(t)?this.context.model.getNodeData(t):null===(e=this.context.model.getNodeData([t]))||void 0===e?void 0:e[0]}getEdgeData(t){var e;return void 0===t?this.context.model.getEdgeData():Array.isArray(t)?this.context.model.getEdgeData(t):null===(e=this.context.model.getEdgeData([t]))||void 0===e?void 0:e[0]}getComboData(t){var e;return void 0===t?this.context.model.getComboData():Array.isArray(t)?this.context.model.getComboData(t):null===(e=this.context.model.getComboData([t]))||void 0===e?void 0:e[0]}setData(t){this.context.model.setData((0,td.Z)(t)?t(this.getData()):t)}addData(t){this.context.model.addData((0,td.Z)(t)?t(this.getData()):t)}addNodeData(t){this.context.model.addNodeData((0,td.Z)(t)?t(this.getNodeData()):t)}addEdgeData(t){this.context.model.addEdgeData((0,td.Z)(t)?t(this.getEdgeData()):t)}addComboData(t){this.context.model.addComboData((0,td.Z)(t)?t(this.getComboData()):t)}addChildrenData(t,e){this.context.model.addChildrenData(t,e)}updateData(t){this.context.model.updateData((0,td.Z)(t)?t(this.getData()):t)}updateNodeData(t){this.context.model.updateNodeData((0,td.Z)(t)?t(this.getNodeData()):t)}updateEdgeData(t){this.context.model.updateEdgeData((0,td.Z)(t)?t(this.getEdgeData()):t)}updateComboData(t){this.context.model.updateComboData((0,td.Z)(t)?t(this.getComboData()):t)}removeData(t){this.context.model.removeData((0,td.Z)(t)?t(this.getData()):t)}removeNodeData(t){this.context.model.removeNodeData((0,td.Z)(t)?t(this.getNodeData()):t)}removeEdgeData(t){this.context.model.removeEdgeData((0,td.Z)(t)?t(this.getEdgeData()):t)}removeComboData(t){this.context.model.removeComboData((0,td.Z)(t)?t(this.getComboData()):t)}getElementType(t){return this.context.model.getElementType(t)}getRelatedEdgesData(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";return this.context.model.getRelatedEdgesData(t,e)}getNeighborNodesData(t){return this.context.model.getNeighborNodesData(t)}getAncestorsData(t,e){return this.context.model.getAncestorsData(t,e)}getParentData(t,e){return this.context.model.getParentData(t,e)}getChildrenData(t){return this.context.model.getChildrenData(t)}getElementDataByState(t,e){return this.context.model.getElementDataByState(t,e)}async initCanvas(){if(this.context.canvas)return await this.context.canvas.ready;let{container:t="container",width:e,height:n,renderer:i,cursor:r,background:a}=this.options;if(t instanceof lz)this.context.canvas=t,r&&t.setCursor(r),await t.ready;else{let o=(0,t0.Z)(t)?document.getElementById(t):t,s=iI(o);this.emit(R.BEFORE_CANVAS_INIT,{container:o,width:e,height:n});let l=new lz({container:o,width:e||s[0],height:n||s[1],background:a,renderer:i,cursor:r});this.context.canvas=l,await l.ready,this.emit(R.AFTER_CANVAS_INIT,{canvas:l})}}initRuntime(){this.context.options=this.options,this.context.batch||(this.context.batch=new l_(this.context)),this.context.plugin||(this.context.plugin=new l2(this.context)),this.context.viewport||(this.context.viewport=new l4(this.context)),this.context.transform||(this.context.transform=new l6(this.context)),this.context.element||(this.context.element=new l$(this.context)),this.context.animation||(this.context.animation=new lB(this.context)),this.context.layout||(this.context.layout=new l0(this.context)),this.context.behavior||(this.context.behavior=new lF(this.context))}async prepare(){if(await Promise.resolve(),this.destroyed)throw Error(U("The graph instance has been destroyed"));await this.initCanvas(),this.initRuntime()}async render(){await this.prepare(),lI(this,new lP(R.BEFORE_RENDER));let t=this.context.element.draw({type:"render"});await Promise.all([null==t?void 0:t.finished,this.context.layout.layout()]),await this.autoFit(),lI(this,new lP(R.AFTER_RENDER))}async draw(){var t;await this.prepare(),await (null===(t=this.context.element.draw())||void 0===t?void 0:t.finished)}async layout(){await this.context.layout.layout()}stopLayout(){this.context.layout.stopLayout()}async clear(){this.context.model.setData({}),await this.draw()}destroy(){lI(this,new lP(R.BEFORE_DESTROY));let{layout:t,animation:e,element:n,model:i,canvas:r,behavior:a,plugin:o}=this.context;null==o||o.destroy(),null==a||a.destroy(),null==t||t.destroy(),null==e||e.destroy(),null==n||n.destroy(),i.destroy(),null==r||r.destroy(),this.options={},this.context={},this.off(),window.removeEventListener("resize",this.onResize),this.destroyed=!0,lI(this,new lP(R.AFTER_DESTROY))}getCanvas(){return this.context.canvas}resize(t,e){let n=t&&e?[t,e]:iI(this.context.canvas.getContainer());(0,F.Z)(n,this.getSize())||(lI(this,new lP(R.BEFORE_SIZE_CHANGE,{size:n})),this.context.canvas.resize(...n),lI(this,new lP(R.AFTER_SIZE_CHANGE,{size:n})))}async fitView(t,e){var n;await (null===(n=this.context.viewport)||void 0===n?void 0:n.fitView(t,e))}async fitCenter(t){var e;await (null===(e=this.context.viewport)||void 0===e?void 0:e.fitCenter(t))}async autoFit(){let{autoFit:t}=this.context.options;if(t){if((0,t0.Z)(t))"view"===t?await this.fitView():"center"===t&&await this.fitCenter();else{let{type:e,animation:n}=t;"view"===e?await this.fitView(t.options,n):"center"===e&&await this.fitCenter(n)}}}async focusElement(t,e){var n;await (null===(n=this.context.viewport)||void 0===n?void 0:n.focusElements(Array.isArray(t)?t:[t],e))}async zoomBy(t,e,n){await this.context.viewport.transform({mode:"relative",scale:t,origin:n},e)}async zoomTo(t,e,n){this.context.viewport.transform({mode:"absolute",scale:t,origin:n},e)}getZoom(){return this.context.viewport.getZoom()}async rotateBy(t,e,n){await this.context.viewport.transform({mode:"relative",rotate:t,origin:n},e)}async rotateTo(t,e,n){await this.context.viewport.transform({mode:"absolute",rotate:t,origin:n},e)}getRotation(){return this.context.viewport.getRotation()}async translateBy(t,e){await this.context.viewport.transform({mode:"relative",translate:t},e)}async translateTo(t,e){await this.context.viewport.transform({mode:"absolute",translate:t},e)}getPosition(){return tT([0,0],this.getCanvasByViewport([0,0]))}async translateElementBy(t,e){var n;let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],[r,a]=(0,Z.Z)(t)?[t,null==e||e]:[{[t]:e},i];Object.entries(r).forEach(t=>{let[e,n]=t;return this.context.model.translateNodeLikeBy(e,n)}),await (null===(n=this.context.element.draw({animation:a,stage:"translate"}))||void 0===n?void 0:n.finished)}async translateElementTo(t,e){var n;let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],[r,a]=(0,Z.Z)(t)?[t,null==e||e]:[{[t]:e},i];Object.entries(r).forEach(t=>{let[e,n]=t;return this.context.model.translateNodeLikeTo(e,n)}),await (null===(n=this.context.element.draw({animation:a,stage:"translate"}))||void 0===n?void 0:n.finished)}getElementPosition(t){return this.context.model.getElementPosition(t)}getElementRenderStyle(t){return(0,iD.Z)(this.context.element.getElement(t).attributes,["context"])}async setElementVisibility(t,e){var n;let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],[r,a]=(0,Z.Z)(t)?[t,null==e||e]:[{[t]:e},i],o={nodes:[],edges:[],combos:[]};Object.entries(r).forEach(t=>{let[e,n]=t,i=this.getElementType(e);o["".concat(i,"s")].push({id:e,style:{visibility:n}})});let{model:s,element:l}=this.context;s.preventUpdateNodeLikeHierarchy(()=>{s.updateData(o)}),await (null===(n=l.draw({animation:a,stage:"visibility"}))||void 0===n?void 0:n.finished)}async showElement(t,e){let n=Array.isArray(t)?t:[t];await this.setElementVisibility(Object.fromEntries(n.map(t=>[t,"visible"])),e)}async hideElement(t,e){let n=Array.isArray(t)?t:[t];await this.setElementVisibility(Object.fromEntries(n.map(t=>[t,"hidden"])),e)}getElementVisibility(t){var e,n;let i=this.context.element.getElement(t);return null!==(n=null==i?void 0:null===(e=i.style)||void 0===e?void 0:e.visibility)&&void 0!==n?n:"visible"}async setElementZIndex(t,e){var n;let i={nodes:[],edges:[],combos:[]},r=(0,Z.Z)(t)?t:{[t]:e};Object.entries(r).forEach(t=>{let[e,n]=t,r=this.getElementType(e);i["".concat(r,"s")].push({id:e,style:{zIndex:n}})});let{model:a,element:o}=this.context;a.preventUpdateNodeLikeHierarchy(()=>a.updateData(i)),await (null===(n=o.draw({animation:!1,stage:"zIndex"}))||void 0===n?void 0:n.finished)}async frontElement(t){let e=Array.isArray(t)?t:[t],{model:n,element:i}=this.context,r={};e.map(t=>{let e=i.getFrontZIndex(t),a=n.getElementType(t);if("combo"===a){let a=n.getAncestorsData(t,G).at(-1)||this.getComboData(t),o=[a,...n.getDescendantsData(tt(a))],s=e-i.getElementZIndex(t);o.forEach(t=>{r[tt(t)]=this.getElementZIndex(tt(t))+s})}else r[t]=e}),await this.setElementZIndex(r)}getElementZIndex(t){var e,n,i;let{model:r,element:a}=this.context;return null!==(i=null===(e=r.getElementDataById(t))||void 0===e?void 0:null===(n=e.style)||void 0===n?void 0:n.zIndex)&&void 0!==i?i:a.getElementZIndex(t)}async setElementState(t,e){var n;let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],[r,a]=(0,Z.Z)(t)?[t,null==e||e]:[{[t]:e},i],o=t=>t?Array.isArray(t)?t:[t]:[],s={nodes:[],edges:[],combos:[]};Object.entries(r).forEach(t=>{let[e,n]=t,i=this.getElementType(e);s["".concat(i,"s")].push({id:e,states:o(n)})}),this.updateData(s),await (null===(n=this.context.element.draw({animation:a}))||void 0===n?void 0:n.finished)}getElementState(t){return this.context.model.getElementState(t)}getElementRenderBounds(t){return this.context.element.getElement(t).getRenderBounds()}async collapseElement(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],{model:n,element:i}=this.context;if(ee(n.getNodeLikeData([t])[0])||this.isCollapsingExpanding)return;let r=n.getElementType(t);await this.frontElement(t),this.isCollapsingExpanding=!0,this.setElementCollapsibility(t,!0),"node"===r?await i.collapseNode(t,e):"combo"===r&&await i.collapseCombo(t,e),this.isCollapsingExpanding=!1}async expandElement(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],{model:n,element:i}=this.context;if(!ee(n.getNodeLikeData([t])[0])||this.isCollapsingExpanding)return;let r=n.getElementType(t);this.isCollapsingExpanding=!0,this.setElementCollapsibility(t,!1),"node"===r?await i.expandNode(t,e):"combo"===r&&await i.expandCombo(t,e),this.isCollapsingExpanding=!1}setElementCollapsibility(t,e){let n=this.getElementType(t);"node"===n?this.updateNodeData([{id:t,style:{collapsed:e}}]):"combo"===n&&this.updateComboData([{id:t,style:{collapsed:e}}])}async toDataURL(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.context.canvas.toDataURL(t)}getCanvasByViewport(t){return this.context.canvas.getCanvasByViewport(t)}getViewportByCanvas(t){return this.context.canvas.getViewportByCanvas(t)}getClientByCanvas(t){return this.context.canvas.getClientByCanvas(t)}getCanvasByClient(t){return this.context.canvas.getCanvasByClient(t)}getViewportCenter(){return this.context.viewport.getViewportCenter()}getCanvasCenter(){return this.context.viewport.getCanvasCenter()}on(t,e,n){return super.on(t,e,n)}once(t,e){return super.once(t,e)}off(t,e){return super.off(t,e)}constructor(t){super(),this.destroyed=!1,this.context={model:new lK},this.isCollapsingExpanding=!1,this.onResize=(0,ii.Z)(()=>{this.resize()},300),this.options=Object.assign({},l8.defaultOptions,t),this.setOptions(this.options),this.context.graph=this,this.options.autoResize&&window.addEventListener("resize",this.onResize)}}l8.defaultOptions={autoResize:!1,theme:"light",rotation:0,zoom:1,zoomRange:[.01,10]};let l9=(t,e)=>{let{source:n,target:i}=e,r=t.getElementDataById(n),a=t.getElementDataById(i),o=nE(r,e=>t.getParentData(e,G)),s=nE(a,e=>t.getParentData(e,G)),l=tt(o),h=tt(s),c={sourceNode:l,targetNode:h};return e.style?Object.assign(e.style,c):e.style=c,e};var l5=n(90134);let l7=["top","top-right","right","right-bottom","bottom","bottom-left","left","left-top"];class ht extends lO{beforeDraw(t){let e=this.getAffectedParallelEdges(t);return 0===e.size||("bundle"===this.options.mode?this.applyBundlingStyle(t,e,this.options.distance):this.applyMergingStyle(t,e)),t}constructor(t,e){super(t,Object.assign({},ht.defaultOptions,e)),this.cacheMergeStyle=new Map,this.getAffectedParallelEdges=t=>{let{add:{edges:e},update:{nodes:n,edges:i,combos:r},remove:{edges:a}}=t,{model:o}=this.context,s=new Map,l=(t,e)=>{let n=o.getRelatedEdgesData(e);n.forEach(t=>!s.has(tt(t))&&s.set(tt(t),t))};n.forEach(l),r.forEach(l);let h=t=>{let e=o.getEdgeData().map(t=>l9(o,t)),n=hn(t,e,!0);n.forEach(t=>!s.has(tt(t))&&s.set(tt(t),t))};if(a.size&&a.forEach(h),e.size&&e.forEach(h),i.size){let t=ru(rc(o.getChanges())).update.edges;i.forEach(e=>{var n;h(e);let i=null===(n=t.find(t=>tt(t.value)===tt(e)))||void 0===n?void 0:n.original;i&&!hi(e,i)&&h(i)})}eN(this.options.edges)||s.forEach((t,e)=>!this.options.edges.includes(e)&&s.delete(e));let c=o.getEdgeData().map(tt);return new Map([...s].sort((t,e)=>c.indexOf(t[0])-c.indexOf(e[0])))},this.applyBundlingStyle=(t,e,n)=>{let{edgeMap:i,reverses:r}=he(e);i.forEach(e=>{e.forEach((e,i,a)=>{var o;let s=Object.assign(e,{type:"quadratic",style:(()=>{let t=a.length,o={};if(e.source===e.target){let t=l7.length;o.loopPlacement=l7[i%t],o.loopDist=Math.floor(i/t)*n+50}else if(1===t)o.curveOffset=0;else{let a=(i%2==0?1:-1)*(r["".concat(e.source,"|").concat(e.target,"|").concat(i)]?-1:1);o.curveOffset=t%2==1?a*Math.ceil(i/2)*n*2:a*(Math.floor(i/2)*n*2+n)}return Object.assign({},e.style,o)})()}),l=null===(o=this.context.element)||void 0===o?void 0:o.getElement(tt(e));l?ti(t,"update","edge",s,!0):ti(t,"add","edge",s,!0)})})},this.resetEdgeStyle=t=>{let e=t.style||{},n=this.cacheMergeStyle.get(tt(t))||{};return Object.keys(n).forEach(i=>{(0,F.Z)(e[i],n[i])&&(t[i]?e[i]=t[i]:delete e[i])}),Object.assign(t,{style:e})},this.applyMergingStyle=(t,e)=>{let{edgeMap:n,reverses:i}=he(e);n.forEach(e=>{if(1===e.length){var n;let i=e[0],r=null===(n=this.context.element)||void 0===n?void 0:n.getElement(tt(i));ti(t,r?"update":"add","edge",this.resetEdgeStyle(i),!0);return}let r=e.map((t,e)=>{let{source:n,target:r,style:a={}}=t,{startArrow:o,endArrow:s}=a,l={},[h,c]=i["".concat(n,"|").concat(r,"|").concat(e)]?["endArrow","startArrow"]:["startArrow","endArrow"];return(0,l5.Z)(o)&&(l[h]=o),(0,l5.Z)(s)&&(l[c]=s),l}).reduce((t,e)=>({...t,...e}),{});e.forEach((e,n,i)=>{if(0===n){var a;let n=Object.assign({},(0,td.Z)(this.options.style)?this.options.style(i):this.options.style,{childrenData:i});this.cacheMergeStyle.set(tt(e),n);let o={...e,type:"line",style:{...r,...n}},s=null===(a=this.context.element)||void 0===a?void 0:a.getElement(tt(e));ti(t,s?"update":"add","edge",o,!0)}else ti(t,"remove","edge",e)})})}}}ht.defaultOptions={mode:"bundle",edges:void 0,distance:15};let he=t=>{let e=new Map,n=new Set,i={};for(let[r,a]of t){if(n.has(r))continue;let{source:o,target:s}=a,l="".concat(o,"-").concat(s);for(let[h,c]of(e.has(l)||e.set(l,[]),e.get(l).push(a),n.add(r),t))!n.has(h)&&hi(a,c)&&(e.get(l).push(c),n.add(h),o===c.target&&s===c.source&&(i["".concat(c.source,"|").concat(c.target,"|").concat(e.get(l).length-1)]=!0))}return{edgeMap:e,reverses:i}},hn=(t,e,n)=>e.filter(e=>(n||tt(e)!==tt(t))&&hi(e,t)),hi=(t,e)=>{let{sourceNode:n,targetNode:i}=t.style||{},{sourceNode:r,targetNode:a}=e.style||{};return n===r&&i===a||n===a&&i===r},hr={animation:{"combo-collapse":ts,"combo-expand":ts,"node-collapse":ta,"node-expand":ta,"path-in":to,"path-out":to,fade:[{fields:["opacity"]}],translate:[{fields:["x","y"]}]},behavior:{"brush-select":t3,"click-select":et,"collapse-expand":n5,"create-edge":ie,"drag-canvas":ir,"drag-element-force":class extends ia{get forceLayoutInstance(){return this.context.layout.getLayoutInstance().find(t=>["d3-force","d3-force-3d"].includes(null==t?void 0:t.id))}validate(t){return!!this.context.layout&&(this.forceLayoutInstance?super.validate(t):(Y.warn("DragElementForce only works with d3-force or d3-force-3d layout"),!1))}async moveElement(t,e){let n=this.forceLayoutInstance;this.context.graph.getNodeData(t).forEach((i,r)=>{let{x:a=0,y:o=0}=i.style||{};n&&ih(n,"setFixedPosition",t[r],[...tM([+a,+o],e)])})}onDragStart(t){if(this.enable=this.validate(t),!this.enable)return;this.target=this.getSelectedNodeIDs([t.target.id]),this.hideEdge(),this.context.graph.frontElement(this.target);let e=this.forceLayoutInstance;e&&ic(e,"simulation").alphaTarget(.3).restart(),this.context.graph.getNodeData(this.target).forEach(t=>{let{x:n=0,y:i=0}=t.style||{};e&&ih(e,"setFixedPosition",tt(t),[+n,+i])})}onDrag(t){if(!this.enable)return;let e=this.getDelta(t);this.moveElement(this.target,e)}onDragEnd(){let t=this.forceLayoutInstance;t&&ic(t,"simulation").alphaTarget(0),this.context.graph.getNodeData(this.target).forEach(e=>{t&&ih(t,"setFixedPosition",tt(e),[null,null,null])})}},"drag-element":ia,"fix-element-size":iu,"focus-element":id,"hover-activate":ip,"lasso-select":class extends t3{onPointerDown(t){if(!super.validate(t)||!super.isKeydown()||this.points)return;let{canvas:e}=this.context;this.pathShape=new I.y$({id:"g6-lasso-select",style:this.options.style}),e.appendChild(this.pathShape),this.points=[t6(t)]}onPointerMove(t){var e;if(!this.points)return;let{immediately:n,mode:i}=this.options;this.points.push(t6(t)),null===(e=this.pathShape)||void 0===e||e.setAttribute("d",function(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=[];return t.forEach((t,e)=>{n.push([0===e?"M":"L",...t])}),e&&n.push(["Z"]),n}(this.points)),n&&"default"===i&&this.points.length>2&&super.updateElementsStates(this.points)}onPointerUp(){if(this.points){if(this.points.length<2){this.clearLasso();return}super.updateElementsStates(this.points),this.clearLasso()}}clearLasso(){var t;null===(t=this.pathShape)||void 0===t||t.remove(),this.pathShape=void 0,this.points=void 0}},"optimize-viewport-transform":ig,"scroll-canvas":iy,"zoom-canvas":iv},combo:{circle:class extends ne{drawKeyShape(t,e){return this.upsert("key",I.Cd,this.getKeyStyle(t),e)}getKeyStyle(t){let{collapsed:e}=t,n=super.getKeyStyle(t),[i]=this.getKeySize(t);return{...n,...e&&eo(n,"collapsed"),r:i/2}}getCollapsedKeySize(t){let[e,n]=eh(t.collapsedSize),i=Math.max(e,n)/2;return[2*i,2*i,0]}getExpandedKeySize(t){let e=this.getContentBBox(t),[n,i]=tb(e),r=Math.sqrt(n**2+i**2)/2;return[2*r,2*r,0]}getIntersectPoint(t){let e=this.getShape("key").getBounds();return tX(t,e)}constructor(t){super(t)}},rect:class extends ne{drawKeyShape(t,e){return this.upsert("key",I.UL,this.getKeyStyle(t),e)}getKeyStyle(t){let e=super.getKeyStyle(t),[n,i]=this.getKeySize(t);return{...e,...t.collapsed&&eo(e,"collapsed"),width:n,height:i,x:-n/2,y:-i/2}}constructor(t){super(t)}}},edge:{cubic:nP,line:nN,polyline:nV,quadratic:nU,"cubic-horizontal":nL,"cubic-vertical":nD},layout:{"antv-dagre":ix.b,"combo-combined":iw.u,"compact-box":ib.compactBox,"force-atlas2":iA.E,circular:iE.S,concentric:iC.W,"d3-force":iS.j,dagre:iR.V,dendrogram:ib.dendrogram,force:iO.y,fruchterman:iM.O,grid:iT.M,indented:ib.indented,mds:ik.A,mindmap:ib.mindmap,radial:iP.D,random:iL._},node:{circle:eq,diamond:class extends eQ{getPoints(t){let[e,n]=this.getSize(t);return[[0,-n/2],[e/2,0],[0,n/2],[-e/2,0]]}constructor(t){super(t)}},ellipse:e4,hexagon:class extends eQ{getOuterR(t){return t.outerR||Math.min(...this.getSize(t))/2}getPoints(t){var e;return[[0,e=this.getOuterR(t)],[e*Math.sqrt(3)/2,e/2],[e*Math.sqrt(3)/2,-e/2],[0,-e],[-e*Math.sqrt(3)/2,-e/2],[-e*Math.sqrt(3)/2,e/2]]}getIconStyle(t){let e=super.getIconStyle(t),n=.8*this.getOuterR(t);return!!e&&{width:n,height:n,...e}}constructor(t){super(t)}},html:e5,image:e7,rect:class extends eX{getKeyStyle(t){let[e,n]=this.getSize(t);return{...super.getKeyStyle(t),width:e,height:n,x:-e/2,y:-n/2}}getIconStyle(t){let e=super.getIconStyle(t),{width:n,height:i}=this.getShape("key").attributes;return!!e&&{width:.8*n,height:.8*i,...e}}drawKeyShape(t,e){return this.upsert("key",I.UL,this.getKeyStyle(t),e)}constructor(t){super(t)}},star:class extends eQ{getInnerR(t){return t.innerR||3*this.getOuterR(t)/8}getOuterR(t){return Math.min(...this.getSize(t))/2}getPoints(t){var e,n;return[[0,-(e=this.getOuterR(t))],[(n=this.getInnerR(t))*Math.cos(3*Math.PI/10),-n*Math.sin(3*Math.PI/10)],[e*Math.cos(Math.PI/10),-e*Math.sin(Math.PI/10)],[n*Math.cos(Math.PI/10),n*Math.sin(Math.PI/10)],[e*Math.cos(3*Math.PI/10),e*Math.sin(3*Math.PI/10)],[0,n],[-e*Math.cos(3*Math.PI/10),e*Math.sin(3*Math.PI/10)],[-n*Math.cos(Math.PI/10),n*Math.sin(Math.PI/10)],[-e*Math.cos(Math.PI/10),-e*Math.sin(Math.PI/10)],[-n*Math.cos(3*Math.PI/10),-n*Math.sin(3*Math.PI/10)]]}getIconStyle(t){let e=super.getIconStyle(t),n=2*this.getInnerR(t)*.8;return!!e&&{width:n,height:n,...e}}getPortXY(t,e){let{placement:n="top"}=e,i=this.getShape("key").getLocalBounds(),r=function(t,e){let n={};return n.top=[0,-t],n.left=[-t*Math.cos(Math.PI/10),-t*Math.sin(Math.PI/10)],n["left-bottom"]=[-t*Math.cos(3*Math.PI/10),t*Math.sin(3*Math.PI/10)],n.bottom=[0,e],n["right-bottom"]=[t*Math.cos(3*Math.PI/10),t*Math.sin(3*Math.PI/10)],n.right=n.default=[t*Math.cos(Math.PI/10),-t*Math.sin(Math.PI/10)],n}(this.getOuterR(t),this.getInnerR(t));return nq(i,n,r,!1)}constructor(t){super(t)}},donut:e0,triangle:nt},palette:{spectral:["rgb(158, 1, 66)","rgb(213, 62, 79)","rgb(244, 109, 67)","rgb(253, 174, 97)","rgb(254, 224, 139)","rgb(255, 255, 191)","rgb(230, 245, 152)","rgb(171, 221, 164)","rgb(102, 194, 165)","rgb(50, 136, 189)","rgb(94, 79, 162)"],tableau:["rgb(78, 121, 167)","rgb(242, 142, 44)","rgb(225, 87, 89)","rgb(118, 183, 178)","rgb(89, 161, 79)","rgb(237, 201, 73)","rgb(175, 122, 161)","rgb(255, 157, 167)","rgb(156, 117, 95)","rgb(186, 176, 171)"],oranges:["rgb(255, 245, 235)","rgb(254, 230, 206)","rgb(253, 208, 162)","rgb(253, 174, 107)","rgb(253, 141, 60)","rgb(241, 105, 19)","rgb(217, 72, 1)","rgb(166, 54, 3)","rgb(127, 39, 4)"],greens:["rgb(247, 252, 245)","rgb(229, 245, 224)","rgb(199, 233, 192)","rgb(161, 217, 155)","rgb(116, 196, 118)","rgb(65, 171, 93)","rgb(35, 139, 69)","rgb(0, 109, 44)","rgb(0, 68, 27)"],blues:["rgb(247, 251, 255)","rgb(222, 235, 247)","rgb(198, 219, 239)","rgb(158, 202, 225)","rgb(107, 174, 214)","rgb(66, 146, 198)","rgb(33, 113, 181)","rgb(8, 81, 156)","rgb(8, 48, 107)"]},theme:{dark:lR,light:lA},plugin:{"bubble-sets":re,"edge-filter-lens":ro,"grid-line":rl,background:iZ,contextmenu:rr,fullscreen:rs,history:rd,hull:rx,legend:aS,minimap:oy,snapline:ox,timebar:la,toolbar:lh,tooltip:ly,watermark:lx},transform:{"update-related-edges":class extends lO{beforeDraw(t,e){let{stage:n}=e;if("visibility"===n)return t;let{model:i}=this.context,{update:{nodes:r,edges:a,combos:o}}=t,s=(t,e)=>{let n=i.getRelatedEdgesData(e);n.forEach(t=>!a.has(tt(t))&&a.set(tt(t),t))};return r.forEach(s),o.forEach(s),t}},"arrange-draw-order":class extends lO{beforeDraw(t){let{model:e}=this.context,n=t.add.combos,i=t=>{let n=[];return t.forEach((t,i)=>{let r=e.getAncestorsData(i,"combo"),a=r.map(t=>tt(t)).reverse();n.push([i,t,a.length])}),new Map(n.sort((t,e)=>{let[,,n]=t,[,,i]=e;return i-n}).map(t=>{let[e,n]=t;return[e,n]}))};return t.add.combos=i(n),t.update.combos=i(t.update.combos),t}},"collapse-expand-combo":class extends lO{beforeDraw(t,e){if("visibility"===e.stage)return t;let{model:n}=this.context,{add:i,update:r}=t,a=[...t.update.combos.entries(),...t.add.combos.entries()];for(;a.length;){let[e,o]=a.pop();if(ee(o)){let o=n.getDescendantsData(e),s=o.map(tt),{internal:l,external:h}=nx(s,t=>n.getRelatedEdgesData(t));o.forEach(e=>{let i=tt(e),r=a.findIndex(t=>{let[e]=t;return e===i});-1!==r&&a.splice(r,1);let o=n.getElementType(i);lM(t,"remove",o,e)}),l.forEach(e=>lM(t,"remove","edge",e)),h.forEach(t=>{var e;let n=tt(t),a=null===(e=this.context.element)||void 0===e?void 0:e.getElement(n);a?r.edges.set(n,t):i.edges.set(n,t)})}else{let i=n.getChildrenData(e),r=i.map(tt),{edges:o}=nx(r,t=>n.getRelatedEdgesData(t));[...i,...o].forEach(e=>{var i;let r=tt(e),o=n.getElementType(r),s=null===(i=this.context.element)||void 0===i?void 0:i.getElement(r);s?lM(t,"update",o,e):lM(t,"add",o,e),"combo"===o&&a.push([r,e])})}}return t}},"collapse-expand-node":class extends lO{getElement(t){return this.context.element.getElement(t)}handleExpand(t,e){if(lT(e,"add","node",t),ee(t))return;let n=tt(t);lT(e,"add","node",t);let i=this.context.model.getRelatedEdgesData(n,"out");i.forEach(t=>{lM(e,"add","edge",t)});let r=this.context.model.getChildrenData(n);r.forEach(t=>{this.handleExpand(t,e)})}beforeDraw(t){let{graph:e,model:n}=this.context,{add:{nodes:i,edges:r},update:{nodes:a}}=t,o=new Map,s=new Map;i.forEach((t,e)=>{ee(t)&&o.set(e,t)}),r.forEach(t=>{if("node"!==e.getElementType(t.source))return;let n=e.getNodeData(t.source);ee(n)&&o.set(t.source,n)}),a.forEach((t,e)=>{let n=this.getElement(e);if(!n)return;let i=n.attributes.collapsed;ee(t)?i||o.set(e,t):i&&s.set(e,t)});let l=new Set;return o.forEach((e,i)=>{let r=n.getDescendantsData(i);r.forEach(e=>{let i=tt(e);if(l.has(i))return;lM(t,"remove","node",e);let r=n.getRelatedEdgesData(i);r.forEach(e=>{lM(t,"remove","edge",e)}),l.add(i)})}),s.forEach((e,i)=>{let r=n.getAncestorsData(i,H);if(r.some(ee)){lM(t,"remove","node",e);return}this.handleExpand(e,t)}),t}},"process-parallel-edges":ht,"get-edge-actual-ends":class extends lO{beforeDraw(t){let{add:e,update:n}=t,{model:i}=this.context;return[...e.edges.entries(),...n.edges.entries()].forEach(t=>{let[,e]=t;l9(i,e)}),t}}},shape:{circle:I.Cd,ellipse:I.Pj,group:I.ZA,html:I.k9,image:eG,line:I.x1,path:I.y$,polygon:I.mg,polyline:I.aH,rect:I.UL,text:I.xv,label:e_,badge:eF}};I.GZ.enableCSSParsing=!1,Object.entries(hr).forEach(t=>{let[e,n]=t;Object.entries(n).forEach(t=>{let[n,i]=t;!function(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=W[t][e];!i&&r?r!==n&&Y.warn("The extension ".concat(e," of ").concat(t," has been registered before.")):Object.assign(W[t],{[e]:n})}(e,n,i)})})},99397:function(t,e,n){"use strict";n.d(e,{P3:function(){return u}});var i=n(67294),r=i.createContext({graph:null,isReady:!1}),a=n(83007),o=function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0)&&!(i=a.next()).done;)o.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o},l=function(){return(l=Object.assign||function(t){for(var e,n=1,i=arguments.length;ne.indexOf(i)&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(t);re.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n},c=(0,i.forwardRef)(function(t,e){var n,c,u,d,p,f,g,y,m,v,b=t.style,x=t.children,E=(c=(n=h(t,["style","children"])).onInit,u=n.onReady,d=n.onDestroy,p=n.options,g=(f=s((0,i.useState)(!1),2))[0],y=f[1],m=(0,i.useRef)(null),v=(0,i.useRef)(null),(0,i.useEffect)(function(){if(!m.current&&v.current){var t=new a.kJ(o({container:v.current},p));return m.current=t,y(!0),null==c||c(m.current),function(){var t=m.current;t&&(t.destroy(),null==d||d(),m.current=null)}}},[]),(0,i.useEffect)(function(){var t=v.current,e=m.current;p&&t&&e&&!e.destroyed&&(e.setOptions(p),e.render().then(function(){return null==u?void 0:u(e)}))},[p]),{graph:m.current,containerRef:v,isReady:g}),w=E.graph,C=E.containerRef,S=E.isReady;(0,i.useImperativeHandle)(e,function(){return w},[w]);var R=l({height:"inherit",position:"relative"},b);return x?i.createElement(r.Provider,{value:{graph:w,isReady:S}},i.createElement("div",{ref:C,style:R},S&&x)):i.createElement("div",{ref:C,style:R})}),u=(0,i.memo)(c)},54375:function(t,e,n){"use strict";n.d(e,{Ud:function(){return u},Yy:function(){return a}});/** - * @license - * Copyright 2019 Google LLC - * SPDX-License-Identifier: Apache-2.0 - */let i=Symbol("Comlink.proxy"),r=Symbol("Comlink.endpoint"),a=Symbol("Comlink.releaseProxy"),o=Symbol("Comlink.finalizer"),s=Symbol("Comlink.thrown"),l=t=>"object"==typeof t&&null!==t||"function"==typeof t,h=new Map([["proxy",{canHandle:t=>l(t)&&t[i],serialize(t){let{port1:e,port2:n}=new MessageChannel;return function t(e,n=globalThis,r=["*"]){n.addEventListener("message",function a(l){let h;if(!l||!l.data)return;if(!function(t,e){for(let n of t)if(e===n||"*"===n||n instanceof RegExp&&n.test(e))return!0;return!1}(r,l.origin)){console.warn(`Invalid origin '${l.origin}' for comlink proxy`);return}let{id:u,type:d,path:p}=Object.assign({path:[]},l.data),f=(l.data.argumentList||[]).map(b);try{var g;let n=p.slice(0,-1).reduce((t,e)=>t[e],e),r=p.reduce((t,e)=>t[e],e);switch(d){case"GET":h=r;break;case"SET":n[p.slice(-1)[0]]=b(l.data.value),h=!0;break;case"APPLY":h=r.apply(n,f);break;case"CONSTRUCT":{let t=new r(...f);h=Object.assign(t,{[i]:!0})}break;case"ENDPOINT":{let{port1:n,port2:i}=new MessageChannel;t(e,i),g=[n],m.set(n,g),h=n}break;case"RELEASE":h=void 0;break;default:return}}catch(t){h={value:t,[s]:0}}Promise.resolve(h).catch(t=>({value:t,[s]:0})).then(t=>{let[i,r]=v(t);n.postMessage(Object.assign(Object.assign({},i),{id:u}),r),"RELEASE"===d&&(n.removeEventListener("message",a),c(n),o in e&&"function"==typeof e[o]&&e[o]())}).catch(t=>{let[e,i]=v({value:TypeError("Unserializable return value"),[s]:0});n.postMessage(Object.assign(Object.assign({},e),{id:u}),i)})}),n.start&&n.start()}(t,e),[n,[n]]},deserialize:t=>(t.start(),u(t))}],["throw",{canHandle:t=>l(t)&&s in t,serialize:({value:t})=>[t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[]],deserialize(t){if(t.isError)throw Object.assign(Error(t.value.message),t.value);throw t.value}}]]);function c(t){"MessagePort"===t.constructor.name&&t.close()}function u(t,e){return function t(e,n=[],i=function(){}){let o=!1,s=new Proxy(i,{get(i,r){if(d(o),r===a)return()=>{g&&g.unregister(s),p(e),o=!0};if("then"===r){if(0===n.length)return{then:()=>s};let t=x(e,{type:"GET",path:n.map(t=>t.toString())}).then(b);return t.then.bind(t)}return t(e,[...n,r])},set(t,i,r){d(o);let[a,s]=v(r);return x(e,{type:"SET",path:[...n,i].map(t=>t.toString()),value:a},s).then(b)},apply(i,a,s){d(o);let l=n[n.length-1];if(l===r)return x(e,{type:"ENDPOINT"}).then(b);if("bind"===l)return t(e,n.slice(0,-1));let[h,c]=y(s);return x(e,{type:"APPLY",path:n.map(t=>t.toString()),argumentList:h},c).then(b)},construct(t,i){d(o);let[r,a]=y(i);return x(e,{type:"CONSTRUCT",path:n.map(t=>t.toString()),argumentList:r},a).then(b)}});return!function(t,e){let n=(f.get(e)||0)+1;f.set(e,n),g&&g.register(t,e,t)}(s,e),s}(t,[],e)}function d(t){if(t)throw Error("Proxy has been released and is not useable")}function p(t){return x(t,{type:"RELEASE"}).then(()=>{c(t)})}let f=new WeakMap,g="FinalizationRegistry"in globalThis&&new FinalizationRegistry(t=>{let e=(f.get(t)||0)-1;f.set(t,e),0===e&&p(t)});function y(t){var e;let n=t.map(v);return[n.map(t=>t[0]),(e=n.map(t=>t[1]),Array.prototype.concat.apply([],e))]}let m=new WeakMap;function v(t){for(let[e,n]of h)if(n.canHandle(t)){let[i,r]=n.serialize(t);return[{type:"HANDLER",name:e,value:i},r]}return[{type:"RAW",value:t},m.get(t)||[]]}function b(t){switch(t.type){case"HANDLER":return h.get(t.name).deserialize(t.value);case"RAW":return t.value}}function x(t,e,n){return new Promise(i=>{let r=[,,,,].fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");t.addEventListener("message",function e(n){n.data&&n.data.id&&n.data.id===r&&(t.removeEventListener("message",e),i(n.data))}),t.start&&t.start(),t.postMessage(Object.assign({id:r},e),n)})}}}]); \ No newline at end of file diff --git a/dbgpt/app/static/web/_next/static/chunks/5558-30a2ace72fed40b1.js b/dbgpt/app/static/web/_next/static/chunks/5558-30a2ace72fed40b1.js new file mode 100644 index 000000000..1fe7f1c52 --- /dev/null +++ b/dbgpt/app/static/web/_next/static/chunks/5558-30a2ace72fed40b1.js @@ -0,0 +1,5 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5558],{71965:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var i=n(87462),r=n(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M793 242H366v-74c0-6.7-7.7-10.4-12.9-6.3l-142 112a8 8 0 000 12.6l142 112c5.2 4.1 12.9.4 12.9-6.3v-74h415v470H175c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h618c35.3 0 64-28.7 64-64V306c0-35.3-28.7-64-64-64z"}}]},name:"rollback",theme:"outlined"},o=n(13401),s=r.forwardRef(function(t,e){return r.createElement(o.Z,(0,i.Z)({},t,{ref:e,icon:a}))})},81746:function(t){"undefined"!=typeof self&&self,t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=5)}([function(t,e){t.exports={assign:Object.assign,getHeight:function(t,e,n,i){return void 0===i&&(i="height"),"center"===n?(t[i]+e[i])/2:t.height}}},function(t,e,n){var i=n(3),r=function(){function t(t,e){void 0===e&&(e={}),this.options=e,this.rootNode=i(t,e)}return t.prototype.execute=function(){throw Error("please override this method")},t}();t.exports=r},function(t,e,n){var i=n(4),r=["LR","RL","TB","BT","H","V"],a=["LR","RL","H"],o=r[0];t.exports=function(t,e,n){var s=e.direction||o;if(e.isHorizontal=a.indexOf(s)>-1,s&&-1===r.indexOf(s))throw TypeError("Invalid direction: "+s);if(s===r[0])n(t,e);else if(s===r[1])n(t,e),t.right2left();else if(s===r[2])n(t,e);else if(s===r[3])n(t,e),t.bottom2top();else if(s===r[4]||s===r[5]){var l=i(t,e),h=l.left,c=l.right;n(h,e),n(c,e),e.isHorizontal?h.right2left():h.bottom2top(),c.translate(h.x-c.x,h.y-c.y),t.x=h.x,t.y=c.y;var u=t.getBoundingBox();e.isHorizontal?u.top<0&&t.translate(0,-u.top):u.left<0&&t.translate(-u.left,0)}var d=e.fixedRoot;return void 0===d&&(d=!0),d&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),t}},function(t,e,n){var i=n(0),r={getId:function(t){return t.id||t.name},getPreH:function(t){return t.preH||0},getPreV:function(t){return t.preV||0},getHGap:function(t){return t.hgap||18},getVGap:function(t){return t.vgap||18},getChildren:function(t){return t.children},getHeight:function(t){return t.height||36},getWidth:function(t){var e=t.label||" ";return t.width||18*e.split("").length}};function a(t,e){if(this.vgap=this.hgap=0,t instanceof a)return t;this.data=t;var n=e.getHGap(t),i=e.getVGap(t);return this.preH=e.getPreH(t),this.preV=e.getPreV(t),this.width=e.getWidth(t),this.height=e.getHeight(t),this.width+=this.preH,this.height+=this.preV,this.id=e.getId(t),this.x=this.y=0,this.depth=0,this.children||(this.children=[]),this.addGap(n,i),this}i.assign(a.prototype,{isRoot:function(){return 0===this.depth},isLeaf:function(){return 0===this.children.length},addGap:function(t,e){this.hgap+=t,this.vgap+=e,this.width+=2*t,this.height+=2*e},eachNode:function(t){for(var e,n=[this];e=n.shift();)t(e),n=e.children.concat(n)},DFTraverse:function(t){this.eachNode(t)},BFTraverse:function(t){for(var e,n=[this];e=n.shift();)t(e),n=n.concat(e.children)},getBoundingBox:function(){var t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(function(e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.width=Math.max(t.width,e.x+e.width),t.height=Math.max(t.height,e.y+e.height)}),t},translate:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.eachNode(function(n){n.x+=t,n.y+=e,n.x+=n.preH,n.y+=n.preV})},right2left:function(){var t=this.getBoundingBox();this.eachNode(function(e){e.x=e.x-(e.x-t.left)*2-e.width}),this.translate(t.width,0)},bottom2top:function(){var t=this.getBoundingBox();this.eachNode(function(e){e.y=e.y-(e.y-t.top)*2-e.height}),this.translate(0,t.height)}}),t.exports=function(t,e,n){void 0===e&&(e={}),e=i.assign({},r,e);var o,s=new a(t,e),l=[s];if(!n&&!t.collapsed){for(;o=l.shift();)if(!o.data.collapsed){var h=e.getChildren(o.data),c=h?h.length:0;if(o.children=Array(c),h&&c)for(var u=0;u=n.low;)n=n.nxt;return{low:t,index:e,nxt:n}}!function t(e,n,i){void 0===i&&(i=0),n?(e.x=i,i+=e.width):(e.y=i,i+=e.height),e.children.forEach(function(e){t(e,n,i)})}(t,r);var l=n.fromNode(t,r);return function t(e){if(0===e.cs){a(e);return}t(e.c[0]);for(var n=s(o(e.c[0].el),0,null),i=1;in.low&&(n=n.nxt);var l,h,c,u=r+i.prelim+i.w-(s+a.prelim);u>0&&(s+=u,l=n.index,t.c[e].mod+=u,t.c[e].msel+=u,t.c[e].mser+=u,function(t,e,n,i){if(n!==e-1){var r=e-n;t.c[n+1].shift+=i/r,t.c[e].shift-=i/r,t.c[e].change-=i-i/r}}(t,e,l,u));var d=o(i),p=o(a);d<=p&&null!==(i=0===(h=i).cs?h.tr:h.c[h.cs-1])&&(r+=i.mod),d>=p&&null!==(a=0===(c=a).cs?c.tl:c.c[0])&&(s+=a.mod)}!i&&a?function(t,e,n,i){var r=t.c[0].el;r.tl=n;var a=i-n.mod-t.c[0].msel;r.mod+=a,r.prelim-=a,t.c[0].el=t.c[e].el,t.c[0].msel=t.c[e].msel}(t,e,a,s):i&&!a&&function(t,e,n,i){var r=t.c[e].er;r.tr=n;var a=i-n.mod-t.c[e].mser;r.mod+=a,r.prelim-=a,t.c[e].er=t.c[e-1].er,t.c[e].mser=t.c[e-1].mser}(t,e,i,r)})(e,i,n),n=s(r,i,n)}e.prelim=(e.c[0].prelim+e.c[0].mod+e.c[e.cs-1].mod+e.c[e.cs-1].prelim+e.c[e.cs-1].w)/2-e.w/2,a(e)}(l),function t(e,n){n+=e.mod,e.x=e.prelim+n,function(t){for(var e=0,n=0,i=0;io&&(o=e.depth);var n=e.children,i=n.length,a=new r(e.height,[]);return n.forEach(function(e,n){var r=t(e);a.children.push(r),0===n&&(a.leftChild=r),n===i-1&&(a.rightChild=r)}),a.originNode=e,a.isLeaf=e.isLeaf(),a}(t);return function t(e){if(e.isLeaf||0===e.children.length)e.drawingDepth=o;else{var n=e.children.map(function(e){return t(e)}),i=Math.min.apply(null,n);e.drawingDepth=i-1}return e.drawingDepth}(s),function t(i){i.x=i.drawingDepth*e.rankSep,i.isLeaf?(i.y=0,n&&(i.y=n.y+n.height+e.nodeSep,i.originNode.parent!==n.originNode.parent&&(i.y+=e.subTreeSep)),n=i):(i.children.forEach(function(e){t(e)}),i.y=(i.leftChild.y+i.rightChild.y)/2)}(s),function t(e,n,i){i?(n.x=e.x,n.y=e.y):(n.x=e.y,n.y=e.x),e.children.forEach(function(e,r){t(e,n.children[r],i)})}(s,t,e.isHorizontal),t}},function(t,e,n){function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var r=n(1),a=n(11),o=n(4),s=n(0),l=["LR","RL","H"],h=l[0],c=function(t){function e(){return t.apply(this,arguments)||this}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t),e.prototype.execute=function(){var t=this.options,e=this.rootNode;t.isHorizontal=!0;var n=t.indent,i=void 0===n?20:n,r=t.dropCap,s=void 0===r||r,c=t.direction,u=void 0===c?h:c,d=t.align;if(u&&-1===l.indexOf(u))throw TypeError("Invalid direction: "+u);if(u===l[0])a(e,i,s,d);else if(u===l[1])a(e,i,s,d),e.right2left();else if(u===l[2]){var p=o(e,t),f=p.left,g=p.right;a(f,i,s,d),f.right2left(),a(g,i,s,d);var y=f.getBoundingBox();g.translate(y.width,0),e.x=g.x-e.width/2}return e},e}(r),u={};t.exports=function(t,e){return e=s.assign({},u,e),new c(t,e).execute()}},function(t,e,n){var i=n(0);t.exports=function(t,e,n,r){var a=null;t.eachNode(function(t){(function(t,e,n,r,a){var o="function"==typeof n?n(t):n*t.depth;if(!r)try{if(t.id===t.parent.children[0].id){t.x+=o,t.y=e?e.y:0;return}}catch(t){}if(t.x+=o,e){if(t.y=e.y+i.getHeight(e,t,a),e.parent&&t.parent.id!==e.parent.id){var s=e.parent,l=s.y+i.getHeight(s,t,a);t.y=l>t.y?l:t.y}}else t.y=0})(t,a,e,n,r),a=t})}},function(t,e,n){function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var r=n(1),a=n(13),o=n(2),s=n(0),l=function(t){function e(){return t.apply(this,arguments)||this}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t),e.prototype.execute=function(){return o(this.rootNode,this.options,a)},e}(r),h={};t.exports=function(t,e){return e=s.assign({},h,e),new l(t,e).execute()}},function(t,e,n){var i=n(0),r={getSubTreeSep:function(){return 0}};t.exports=function(t,e){void 0===e&&(e={}),e=i.assign({},r,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse(function(t){t.x=t.parent.x+t.parent.width}),t.parent=null,function t(e,n){var i=0;return e.children.length?e.children.forEach(function(e){i+=t(e,n)}):i=e.height,e._subTreeSep=n.getSubTreeSep(e.data),e.totalHeight=Math.max(e.height,i)+2*e._subTreeSep,e.totalHeight}(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode(function(t){var e=t.children,n=e.length;if(n){var i=e[0];if(i.startY=t.startY+t._subTreeSep,1===n)i.y=t.y+t.height/2-i.height/2;else{i.y=i.startY+i.totalHeight/2-i.height/2;for(var r=1;re.height)e.y=r.y+o/2-e.height/2;else if(1!==n.length||e.height>s){var l=e.y+(e.height-o)/2-r.y;n.forEach(function(t){t.translate(0,l)})}else e.y=(r.y+r.height/2+a.y+a.height/2)/2-e.height/2}}(t)}}])},80817:function(t){function e(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}t.exports=function(t){let n=function(t){let n=[];for(let i=0;i=2&&0>=e(n[n.length-2],n[n.length-1],t[i]);)n.pop();n.push(t[i])}return n.pop(),n}(t),i=function(t){let n=t.reverse(),i=[];for(let t=0;t=2&&0>=e(i[i.length-2],i[i.length-1],n[t]);)i.pop();i.push(n[t])}return i.pop(),i}(t),r=i.concat(n);return r.push(t[0]),r}},63652:function(t){t.exports={toXy:function(t,e){return void 0===e?t.slice():t.map(function(t){let n=Function("pt","return [pt"+e[0]+",pt"+e[1]+"];");return n(t)})},fromXy:function(t,e){return void 0===e?t.slice():t.map(function(t){let n=Function("pt","const o = {}; o"+e[0]+"= pt[0]; o"+e[1]+"= pt[1]; return o;");return n(t)})}}},58867:function(t){function e(t,e){this._cells=[],this._cellSize=e,this._reverseCellSize=1/e;for(let e=0;e=0;a--)t[a][0]i&&(i=t[a][0]),t[a][1]>r&&(r=t[a][1]);return[i-e,r-n]}(i),d=[.6*u[0],.6*u[1]],p=o(i),f=i.filter(function(t){return 0>p.indexOf(t)}),g=Math.ceil(1/(i.length/(u[0]*u[1]))),y=function t(e,n,i,r,a){let o=!1;for(let t=0;tr&&s>a&&!h([t[0],e[c]],n)&&!h([t[1],e[c]],n)&&(r=o,a=s,i=e[c]);return i}(f,r.rangePoints(m),e),y++;while(null===p&&(i[0]>u||i[1]>d));u>=i[0]&&d>=i[1]&&a.add(g),null!==p&&(e.splice(t+1,0,p),r.removePoint(p),o=!0)}return o?t(e,n,i,r,a):e}(p,Math.pow(e||20,2),d,r(f,g),new Set);return n?a.fromXy(y,n):y}},77444:function(t){function e(t,e,n,i,r,a){let o=(a-e)*(n-t)-(i-e)*(r-t);return o>0||!(o<0)}t.exports=function(t,n){let i=t[0][0],r=t[0][1],a=t[1][0],o=t[1][1],s=n[0][0],l=n[0][1],h=n[1][0],c=n[1][1];return e(i,r,s,l,h,c)!==e(a,o,s,l,h,c)&&e(i,r,a,o,s,l)!==e(i,r,a,o,h,c)}},83007:function(t,e,n){"use strict";let i;n.d(e,{kJ:function(){return l8},jD:function(){return tt}});var r,a,o,s,l,h,c,u,d,p,f,g,y,m,v,b,x,E,w,C,S,R,A,O,M,T,k,P,L,D,N={};n.r(N),n.d(N,{circle:function(){return nw},diamond:function(){return nS},rect:function(){return nA},simple:function(){return nM},triangle:function(){return nC},triangleRect:function(){return nO},vee:function(){return nR}});var I=n(1242),B=n(83914),_=n(95147),F=n(30335),j=n(4637);let Z={duration:500},z={duration:1e3,easing:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",iterations:1,fill:"both"};(r=v||(v={})).NodeAdded="NodeAdded",r.NodeUpdated="NodeUpdated",r.NodeRemoved="NodeRemoved",r.EdgeAdded="EdgeAdded",r.EdgeUpdated="EdgeUpdated",r.EdgeRemoved="EdgeRemoved",r.ComboAdded="ComboAdded",r.ComboUpdated="ComboUpdated",r.ComboRemoved="ComboRemoved",(a=b||(b={})).DRAW="draw",a.COLLAPSE="collapse",a.EXPAND="expand",a.TRANSFORM="transform",(o=x||(x={})).CLICK="canvas:click",o.DBLCLICK="canvas:dblclick",o.POINTER_OVER="canvas:canvas:pointerover",o.POINTER_LEAVE="canvas:pointerleave",o.POINTER_ENTER="canvas:pointerenter",o.POINTER_MOVE="canvas:pointermove",o.POINTER_OUT="canvas:pointerout",o.POINTER_DOWN="canvas:pointerdown",o.POINTER_UP="canvas:pointerup",o.CONTEXT_MENU="canvas:contextmenu",o.DRAG_START="canvas:dragstart",o.DRAG="canvas:drag",o.DRAG_END="canvas:dragend",o.DRAG_ENTER="canvas:dragenter",o.DRAG_OVER="canvas:dragover",o.DRAG_LEAVE="canvas:dragleave",o.DROP="canvas:drop",o.WHEEL="canvas:wheel",(s=E||(E={})).CLICK="combo:click",s.DBLCLICK="combo:dblclick",s.POINTER_OVER="combo:pointerover",s.POINTER_LEAVE="combo:pointerleave",s.POINTER_ENTER="combo:pointerenter",s.POINTER_MOVE="combo:pointermove",s.POINTER_OUT="combo:pointerout",s.POINTER_DOWN="combo:pointerdown",s.POINTER_UP="combo:pointerup",s.CONTEXT_MENU="combo:contextmenu",s.DRAG_START="combo:dragstart",s.DRAG="combo:drag",s.DRAG_END="combo:dragend",s.DRAG_ENTER="combo:dragenter",s.DRAG_OVER="combo:dragover",s.DRAG_LEAVE="combo:dragleave",s.DROP="combo:drop",(l=w||(w={})).CLICK="click",l.DBLCLICK="dblclick",l.POINTER_OVER="pointerover",l.POINTER_LEAVE="pointerleave",l.POINTER_ENTER="pointerenter",l.POINTER_MOVE="pointermove",l.POINTER_OUT="pointerout",l.POINTER_DOWN="pointerdown",l.POINTER_UP="pointerup",l.CONTEXT_MENU="contextmenu",l.DRAG_START="dragstart",l.DRAG="drag",l.DRAG_END="dragend",l.DRAG_ENTER="dragenter",l.DRAG_OVER="dragover",l.DRAG_LEAVE="dragleave",l.DROP="drop",l.KEY_DOWN="keydown",l.KEY_UP="keyup",l.WHEEL="wheel",(h=C||(C={})).KEY_DOWN="keydown",h.KEY_UP="keyup",(c=S||(S={})).CLICK="edge:click",c.DBLCLICK="edge:dblclick",c.POINTER_OVER="edge:pointerover",c.POINTER_LEAVE="edge:pointerleave",c.POINTER_ENTER="edge:pointerenter",c.POINTER_MOVE="edge:pointermove",c.POINTER_OUT="edge:pointerout",c.POINTER_DOWN="edge:pointerdown",c.POINTER_UP="edge:pointerup",c.CONTEXT_MENU="edge:contextmenu",c.DRAG_ENTER="edge:dragenter",c.DRAG_OVER="edge:dragover",c.DRAG_LEAVE="edge:dragleave",c.DROP="edge:drop",(u=R||(R={})).BEFORE_CANVAS_INIT="beforecanvasinit",u.AFTER_CANVAS_INIT="aftercanvasinit",u.BEFORE_SIZE_CHANGE="beforesizechange",u.AFTER_SIZE_CHANGE="aftersizechange",u.BEFORE_ELEMENT_CREATE="beforeelementcreate",u.AFTER_ELEMENT_CREATE="afterelementcreate",u.BEFORE_ELEMENT_UPDATE="beforeelementupdate",u.AFTER_ELEMENT_UPDATE="afterelementupdate",u.BEFORE_ELEMENT_DESTROY="beforeelementdestroy",u.AFTER_ELEMENT_DESTROY="afterelementdestroy",u.BEFORE_ELEMENT_TRANSLATE="beforeelementtranslate",u.AFTER_ELEMENT_TRANSLATE="afterelementtranslate",u.BEFORE_DRAW="beforedraw",u.AFTER_DRAW="afterdraw",u.BEFORE_RENDER="beforerender",u.AFTER_RENDER="afterrender",u.BEFORE_ANIMATE="beforeanimate",u.AFTER_ANIMATE="afteranimate",u.BEFORE_LAYOUT="beforelayout",u.AFTER_LAYOUT="afterlayout",u.BEFORE_STAGE_LAYOUT="beforestagelayout",u.AFTER_STAGE_LAYOUT="afterstagelayout",u.BEFORE_TRANSFORM="beforetransform",u.AFTER_TRANSFORM="aftertransform",u.BATCH_START="batchstart",u.BATCH_END="batchend",u.BEFORE_DESTROY="beforedestroy",u.AFTER_DESTROY="afterdestroy",u.BEFORE_RENDERER_CHANGE="beforerendererchange",u.AFTER_RENDERER_CHANGE="afterrendererchange",(d=A||(A={})).UNDO="undo",d.REDO="redo",d.CANCEL="cancel",d.ADD="add",d.CLEAR="clear",d.CHANGE="change",(p=O||(O={})).CLICK="node:click",p.DBLCLICK="node:dblclick",p.POINTER_OVER="node:pointerover",p.POINTER_LEAVE="node:pointerleave",p.POINTER_ENTER="node:pointerenter",p.POINTER_MOVE="node:pointermove",p.POINTER_OUT="node:pointerout",p.POINTER_DOWN="node:pointerdown",p.POINTER_UP="node:pointerup",p.CONTEXT_MENU="node:contextmenu",p.DRAG_START="node:dragstart",p.DRAG="node:drag",p.DRAG_END="node:dragend",p.DRAG_ENTER="node:dragenter",p.DRAG_OVER="node:dragover",p.DRAG_LEAVE="node:dragleave",p.DROP="node:drop";let G="combo",H="tree";(f=M||(M={})).NODE="node",f.EDGE="edge",f.COMBO="combo",f.THEME="theme",f.PALETTE="palette",f.LAYOUT="layout",f.BEHAVIOR="behavior",f.PLUGIN="plugin",f.ANIMATION="animation",f.TRANSFORM="transform",f.SHAPE="shape";let W={animation:{},behavior:{},combo:{},edge:{},layout:{},node:{},palette:{},theme:{},plugin:{},transform:{},shape:{}};function V(t,e){var n;let i=null===(n=W[t])||void 0===n?void 0:n[e];if(i)return i}function U(t){return"[".concat("G6"," v").concat("5.0.17","] ").concat(t)}let Y={mute:!1,debug:t=>{Y.mute||console.debug(U(t))},info:t=>{Y.mute||console.info(U(t))},warn:t=>{Y.mute||console.warn(U(t))},error:t=>{Y.mute||console.error(U(t))}};function K(t){let{theme:e}=t;if(!e)return{};let n=V(M.THEME,e);return n||(Y.warn("The theme of ".concat(e," is not registered.")),{})}function $(t,e){if(Array.isArray(t)&&0===t.length)return null;let n=Array.isArray(t)?t[0]:t,i=Array.isArray(t)?t.slice(1):e||[];return new Proxy(n,{get:(t,e)=>"function"!=typeof t[e]||["onframe","onfinish"].includes(e)?"finished"===e?Promise.all([n.finished,...i.map(t=>t.finished)]):Reflect.get(t,e):function(){for(var n=arguments.length,r=Array(n),a=0;a{var n;return null===(n=t[e])||void 0===n?void 0:n.call(t,...r)})},set:(t,e,n)=>(["onframe","onfinish"].includes(e)||i.forEach(t=>{t[e]=n}),Reflect.set(t,e,n))})}function X(t){let e=t.reduce((t,e)=>(Object.entries(e).forEach(e=>{let[n,i]=e;void 0===t[n]?t[n]=[i]:t[n].push(i)}),t),{});Object.entries(e).forEach(n=>{let[i,r]=n;(r.length!==t.length||r.some(t=>(0,_.Z)(t))||r.every(t=>!["sourceNode","targetNode","childrenNode"].includes(i)&&(0,F.Z)(t,r[0])))&&delete e[i]});let n=Object.entries(e).reduce((t,e)=>{let[n,i]=e;return i.forEach((e,i)=>{t[i]?t[i][n]=e:t[i]={[n]:e}}),t},[]);return 0!==t.length&&0===n.length&&n.push(...[{_:0},{_:0}]),n}function q(t){switch(t){case"opacity":return 1;case"x":case"y":case"z":case"zIndex":return 0;case"visibility":return"visible";case"collapsed":return!1;case"states":return[];default:return}}function Q(t,e){let{animation:n}=t;if(!1===n||!1===e)return!1;let i={...Z};return(0,j.Z)(n)&&Object.assign(i,n),(0,j.Z)(e)&&Object.assign(i,e),i}var J=n(83787);function tt(t){if(void 0!==t.id)return t.id;if(void 0!==t.source&&void 0!==t.target)return"".concat(t.source,"-").concat(t.target);throw Error(U("The datum does not have available id."))}function te(t,e){let n={nodes:(t.nodes||[]).map(tt),edges:(t.edges||[]).map(tt),combos:(t.combos||[]).map(tt)};return e?Object.values(n).flat():n}function tn(t,e,n,i){let r=i?i.replace(/translate(3d)?\([^)]*\)/g,""):"";return 0===n?"translate(".concat(t,", ").concat(e,")").concat(r):"translate3d(".concat(t,", ").concat(e,", ").concat(n,")").concat(r)}let ti=function(t,e,n,i){let r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=tt(i),o="".concat(n,"s"),s=t.add[o].get(a)||t.update[o].get(a)||t.remove[o].get(a)||i;Object.entries(t).forEach(t=>{let[n,l]=t;e===n?l[o].set(a,r?(0,J.Z)(s,i):s):l[o].delete(a)})},tr=(t,e,n)=>{let i;if(!n.length)return null;let[r,a]=e,o=e=>{if(!e)return{shape:t,fromStyle:r,toStyle:a};{var n;let i=t.getShape(e);if(!i)return null;let o="get".concat((0,B.Z)(e),"Style"),s=(null==t?void 0:null===(n=t[o])||void 0===n?void 0:n.bind(t))||(t=>t),l=(null==s?void 0:s(r))||{},h=(null==s?void 0:s(a))||{};return{shape:i,fromStyle:l,toStyle:h}}},s=n.map(t=>{let{fields:e,shape:n,states:r,...a}=t,s=o(n);if(!s)return null;let{shape:l,fromStyle:h,toStyle:c}=s,u=[{},{}];if(e.forEach(t=>{var e,n;Object.assign(u[0],{[t]:null!==(e=h[t])&&void 0!==e?e:q(t)}),Object.assign(u[1],{[t]:null!==(n=c[t])&&void 0!==n?n:q(t)})}),u.some(t=>Object.keys(t).some(t=>["x","y","z"].includes(t)))){let{x:t=0,y:e=0,z:n=0,transform:i=""}=l.attributes||{};u.forEach(r=>{r.transform=tn(r.x||t,r.y||e,r.z||n,i)})}let d=l.animate(X(u),a);return void 0===n&&(i=d),d}).filter(Boolean),l=i||(null==s?void 0:s[0]);return l?$(l,s.filter(t=>t!=t)):null},ta=[{fields:["x","y"]}],to=[{fields:["sourceNode","targetNode"]}],ts=[{fields:["childrenNode","x","y"]}];function tl(t,e,n){let i=new Map(t.map(t=>[n(t),t])),r=new Map(e.map(t=>[n(t),t])),a=new Set(i.keys()),o=new Set(r.keys()),s=[],l=[],h=[],c=[];return o.forEach(t=>{a.has(t)?(0,F.Z)(i.get(t),r.get(t))?c.push(r.get(t)):l.push(r.get(t)):s.push(r.get(t))}),a.forEach(t=>{o.has(t)||h.push(i.get(t))}),{enter:s,exit:h,keep:c,update:l}}class th{setExtensions(t){let e=function(t,e,n){let i={},r=t=>(t in i||(i[t]=0),"".concat(e,"-").concat(t,"-").concat(i[t]++));return n.map(e=>"string"==typeof e?{type:e,key:r(e)}:"function"==typeof e?e.call(t):e.key?e:{...e,key:r(e.type)})}(this.context.graph,this.category,t),{enter:n,update:i,exit:r,keep:a}=tl(this.extensions,e,t=>t.key);this.createExtensions(n),this.updateExtensions([...i,...a]),this.destroyExtensions(r),this.extensions=e}createExtension(t){let{category:e}=this,{key:n,type:i}=t,r=V(e,i);if(!r)return Y.warn("The extension ".concat(i," of ").concat(e," is not registered."));let a=new r(this.context,t);this.extensionMap[n]=a}createExtensions(t){t.forEach(t=>this.createExtension(t))}updateExtension(t){let{key:e}=t,n=this.extensionMap[e];n&&n.update(t)}updateExtensions(t){t.forEach(t=>this.updateExtension(t))}destroyExtension(t){let e=this.extensionMap[t];e&&(e.destroy(),delete this.extensionMap[t])}destroyExtensions(t){t.forEach(t=>{let{key:e}=t;return this.destroyExtension(e)})}destroy(){Object.values(this.extensionMap).forEach(t=>t.destroy()),this.context={},this.extensions=[],this.extensionMap={}}constructor(t){this.extensions=[],this.extensionMap={},this.context=t}}class tc{update(t){this.options=Object.assign(this.options,t)}destroy(){this.context={},this.options={},this.destroyed=!0}constructor(t,e){this.events=[],this.destroyed=!1,this.context=t,this.options=e}}class tu extends tc{}var td=n(45607),tp=n(83207);function tf(t){return t instanceof Float32Array||!!Array.isArray(t)&&(2===t.length||3===t.length)&&t.every(t=>"number"==typeof t)}function tg(t,e,n){return t>=e&&t<=n}function ty(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(Array.isArray(t)){let[e=0,n=e,i=e,r=n]=t;return[e,n,i,r]}return[t,t,t,t]}function tm(t){return t.max[0]-t.min[0]}function tv(t){return t.max[1]-t.min[1]}function tb(t){return[tm(t),tv(t)]}function tx(t,e){let n=tf(t)?function(t){let[e,n,i=0]=t,r=new I.mN;return r.setMinMax([e,n,i],[e,n,i]),r}(t):t.getShape("key").getBounds();return e?tE(n,e):n}function tE(t,e){let[n,i,r,a]=ty(e),[o,s,l]=t.min,[h,c,u]=t.max,d=new I.mN;return d.setMinMax([o-a,s-n,l],[h+i,c+r,u]),d}function tw(t){if(0===t.length)return new I.mN;if(1===t.length)return t[0];let e=new I.mN;e.setMinMax(t[0].min,t[0].max);for(let n=1;n2&&void 0!==arguments[2]&&arguments[2],{min:[i,r],max:[a,o]}=e,s=(t[1]===r||t[1]===o)&&(n||tg(t[0],i,a)),l=(t[0]===i||t[0]===a)&&(n||tg(t[1],r,o));return s||l}function tR(t,e){let[n,i]=e,[r,a]=t.min,[o,s]=t.max,l=n-r,h=o-n,c=i-a,u=s-i,d=Math.min(l,h,c,u);return d===l?"left":d===h?"right":d===c?"top":d===u?"bottom":"left"}function tA(t,e){let n=(0,tp.Z)(e);if(tC(e,t)){let i=tR(t,e);switch(i){case"left":n[0]=t.min[0];break;case"right":n[0]=t.max[0];break;case"top":n[1]=t.min[1];break;case"bottom":n[1]=t.max[1]}}else{let[i,r]=e,[a,o]=t.min,[s,l]=t.max;n[0]=tg(i,a,s)?i:it+e[n])}function tT(t,e){return t.map((t,n)=>t-e[n])}function tk(t,e){return"number"==typeof e?t.map(t=>t*e):t.map((t,n)=>t*e[n])}function tP(t,e){return"number"==typeof e?t.map(t=>t/e):t.map((t,n)=>t/e[n])}function tL(t,e){return t.map(t=>t*e)}function tD(t,e){return Math.sqrt(t.reduce((t,n,i)=>t+(n-e[i]||0)**2,0))}function tN(t,e){return t.reduce((t,n,i)=>t+Math.abs(n-e[i]),0)}function tI(t){let e=t.reduce((t,e)=>t+e**2,0);return t.map(t=>t/Math.sqrt(e))}function tB(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t[0]*e[1]-t[1]*e[0],r=Math.acos(tk(t,e).reduce((t,e)=>t+e,0)/(tD(t,tO)*tD(e,tO)));return n&&i<0&&(r=2*Math.PI-r),r}function t_(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return e?[-t[1],t[0]]:[t[1],-t[0]]}function tF(t){return[t[0],t[1]]}function tj(t){return 2===t.length?[t[0],t[1],0]:t}function tZ(t,e){let[n,i]=t,[r,a]=e,o=tT(n,i),s=tT(r,a);return(function(t,e){let n=tj(t),i=tj(e);return[n[1]*i[2]-n[2]*i[1],n[2]*i[0]-n[0]*i[2],n[0]*i[1]-n[1]*i[0]]})(o,s).every(t=>0===t)}function tz(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(tZ(t,e))return;let[i,r]=t,[a,o]=e,s=((i[0]-a[0])*(a[1]-o[1])-(i[1]-a[1])*(a[0]-o[0]))/((i[0]-r[0])*(a[1]-o[1])-(i[1]-r[1])*(a[0]-o[0])),l=o[0]-a[0]?(i[0]-a[0]+s*(r[0]-i[0]))/(o[0]-a[0]):(i[1]-a[1]+s*(r[1]-i[1]))/(o[1]-a[1]);if(n||tg(s,0,1)&&tg(l,0,1))return[i[0]+s*(r[0]-i[0]),i[1]+s*(r[1]-i[1])]}function tG(t){if(Array.isArray(t))return tg(t[0],0,1)&&tg(t[1],0,1)?t:[.5,.5];let e=t.split("-"),n=e.includes("left")?0:e.includes("right")?1:.5,i=e.includes("top")?0:e.includes("bottom")?1:.5;return[n,i]}function tH(t){let{x:e=0,y:n=0,z:i=0}=t.style||{};return[+e,+n,+i]}function tW(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"center",n=tG(e);return function(t,e){let[n,i]=e,{min:r,max:a}=t;return[r[0]+n*(a[0]-r[0]),r[1]+i*(a[1]-r[1])]}(t,n)}function tV(t){var e;return[t.x,t.y,null!==(e=t.z)&&void 0!==e?e:0]}function tU(t){var e;return{x:t[0],y:t[1],z:null!==(e=t[2])&&void 0!==e?e:0}}function tY(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.map(t=>parseFloat(t.toFixed(e)))}function tK(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=i?tT(t,e):tT(e,t),a=tI(r),o=[a[0]*n,a[1]*n];return tM(tF(t),o)}function t$(t,e,n){let i=!(arguments.length>3)||void 0===arguments[3]||arguments[3];for(let r=0;r1?c=1:c<0&&(c=0);let u=n+c*l,d=i+c*h;return[u,d]}function tQ(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=function(t){let e=t.reduce((t,e)=>tM(t,e),[0,0]);return tP(e,t.length)}(t);return t.sort((t,i)=>{let[r,a]=t,[o,s]=i,l=Math.atan2(a-n[1],r-n[0]),h=Math.atan2(s-n[1],o-n[0]);return e?h-l:l-h})}function tJ(t,e){return[t,[t[0],e[1]],e,[e[0],t[1]]]}var t0=n(76714);let t1=t=>t.map(t=>(0,t0.Z)(t)?t.toLocaleLowerCase():t);class t2{bind(t,e){0!==t.length&&this.map.set(t,e)}unbind(t,e){this.map.forEach((n,i)=>{(0,F.Z)(i,t)&&(!e||e===n)&&this.map.delete(i)})}unbindAll(){this.map.clear()}match(t){let e=t1(Array.from(this.recordKey)).sort(),n=t1(t).sort();return(0,F.Z)(e,n)}bindEvents(){let{emitter:t}=this;t.on(w.KEY_DOWN,this.onKeyDown),t.on(w.KEY_UP,this.onKeyUp),t.on(w.WHEEL,this.onWheel),t.on(w.DRAG,this.onDrag),window.addEventListener("focus",this.onFocus)}trigger(t){this.map.forEach((e,n)=>{this.match(n)&&e(t)})}triggerExtendKey(t,e){this.map.forEach((n,i)=>{i.includes(t)&&(0,F.Z)(Array.from(this.recordKey),i.filter(e=>e!==t))&&n(e)})}destroy(){this.unbindAll(),this.emitter.off(w.KEY_DOWN,this.onKeyDown),this.emitter.off(w.KEY_UP,this.onKeyUp),this.emitter.off(w.WHEEL,this.onWheel),this.emitter.off(w.DRAG,this.onDrag),window.removeEventListener("blur",this.onFocus)}constructor(t){this.map=new Map,this.recordKey=new Set,this.onKeyDown=t=>{(null==t?void 0:t.key)&&(this.recordKey.add(t.key),this.trigger(t))},this.onKeyUp=t=>{(null==t?void 0:t.key)&&this.recordKey.delete(t.key)},this.onWheel=t=>{this.triggerExtendKey(w.WHEEL,t)},this.onDrag=t=>{this.triggerExtendKey(w.DRAG,t)},this.onFocus=()=>{this.recordKey.clear()},this.emitter=t,this.bindEvents()}}class t3 extends tu{onPointerDown(t){if(!this.validate(t)||!this.isKeydown()||this.startPoint)return;let{canvas:e,graph:n}=this.context,i={...this.options.style};this.options.style.lineWidth&&(i.lineWidth=+this.options.style.lineWidth/n.getZoom()),this.rectShape=new I.UL({id:"g6-brush-select",style:i}),e.appendChild(this.rectShape),this.startPoint=[t.canvas.x,t.canvas.y]}onPointerMove(t){var e;if(!this.startPoint)return;let{immediately:n,mode:i}=this.options;this.endPoint=t6(t),null===(e=this.rectShape)||void 0===e||e.attr({x:Math.min(this.endPoint[0],this.startPoint[0]),y:Math.min(this.endPoint[1],this.startPoint[1]),width:Math.abs(this.endPoint[0]-this.startPoint[0]),height:Math.abs(this.endPoint[1]-this.startPoint[1])}),n&&"default"===i&&this.updateElementsStates(tJ(this.startPoint,this.endPoint))}onPointerUp(t){if(this.startPoint){if(!this.endPoint){this.clearBrush();return}this.endPoint=t6(t),this.updateElementsStates(tJ(this.startPoint,this.endPoint)),this.clearBrush()}}clearStates(){this.endPoint||this.clearElementsStates()}clearElementsStates(){let{graph:t}=this.context,e=Object.values(t.getData()).reduce((t,e)=>Object.assign({},t,e.reduce((t,e)=>(t[tt(e)]=[],t),{})),{});t.setElementState(e,this.options.animation)}updateElementsStates(t){let{graph:e}=this.context,{enableElements:n,state:i,mode:r,onSelect:a}=this.options,o=this.selector(e,t,n),s={};switch(r){case"union":o.forEach(t=>{s[t]=[...e.getElementState(t),i]});break;case"diff":o.forEach(t=>{let n=e.getElementState(t);s[t]=n.includes(i)?n.filter(t=>t!==i):[...n,i]});break;case"intersect":o.forEach(t=>{let n=e.getElementState(t);s[t]=n.includes(i)?[i]:[]});break;default:o.forEach(t=>{s[t]=[i]})}(0,td.Z)(a)&&(s=a(s)),e.setElementState(s,this.options.animation)}selector(t,e,n){if(!n||0===n.length)return[];let i=[],r=t.getData();if(n.forEach(n=>{r["".concat(n,"s")].forEach(n=>{let r=tt(n);"hidden"!==t.getElementVisibility(r)&&function(t,e,n,i){let r=t[0],a=t[1],o=!1;void 0===n&&(n=0),void 0===i&&(i=e.length);let s=i-n;for(let t=0,i=s-1;ta!=c>a&&r<(h-s)*(a-l)/(c-l)+s;u&&(o=!o)}return o}(t.getElementPosition(r),e)&&i.push(r)})}),n.includes("edge")){let t=r.edges;null==t||t.forEach(t=>{let{source:e,target:n}=t;i.includes(e)&&i.includes(n)&&i.push(tt(t))})}return i}clearBrush(){var t;null===(t=this.rectShape)||void 0===t||t.remove(),this.rectShape=void 0,this.startPoint=void 0,this.endPoint=void 0}isKeydown(){let{trigger:t}=this.options,e=Array.isArray(t)?t:[t];return this.shortcut.match(e.filter(t=>"drag"!==t))}validate(t){if(this.destroyed)return!1;let{enable:e}=this.options;return(0,td.Z)(e)?e(t):!!e}bindEvents(){let{graph:t}=this.context;t.on(w.POINTER_DOWN,this.onPointerDown),t.on(w.POINTER_MOVE,this.onPointerMove),t.on(w.POINTER_UP,this.onPointerUp),t.on(x.CLICK,this.clearStates)}unbindEvents(){let{graph:t}=this.context;t.off(w.POINTER_DOWN,this.onPointerDown),t.off(w.POINTER_MOVE,this.onPointerMove),t.off(w.POINTER_UP,this.onPointerUp),t.off(x.CLICK,this.clearStates)}update(t){this.unbindEvents(),this.options=(0,J.Z)(this.options,t),this.bindEvents()}destroy(){this.unbindEvents(),super.destroy()}constructor(t,e){super(t,(0,J.Z)({},t3.defaultOptions,e)),this.shortcut=new t2(t.graph),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.clearStates=this.clearStates.bind(this),this.bindEvents()}}t3.defaultOptions={animation:!1,enable:!0,enableElements:["node","combo","edge"],immediately:!1,mode:"default",state:"selected",trigger:["shift"],style:{width:0,height:0,lineWidth:1,fill:"#1677FF",stroke:"#1677FF",fillOpacity:.1,zIndex:2,pointerEvents:"none"}};let t6=t=>[t.canvas.x,t.canvas.y],t4=["node","edge","combo"];function t8(t,e,n,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;"TB"===i&&e(t,r);let a=n(t);if(a)for(let t of a)t8(t,e,n,i,r+1);"BT"===i&&e(t,r)}function t9(t,e,n,i){if("combo"===e||"node"===e)return t5(t,n,i);let r=t.getEdgeData(n);if(!r)return[];let a=t5(t,r.source,i-1),o=t5(t,r.target,i-1);return Array.from(new Set([...a,...o,n]))}function t5(t,e,n){let i=new Set,r=new Set,a=new Set;return!function(t,e,n){let i=[[t,0]];for(;i.length;){let[t,r]=i.shift();e(t,r);let a=n(t);if(a)for(let t of a)i.push([t,r+1])}}(e,(e,i)=>{i>n||(a.add(e),t.getRelatedEdgesData(e).forEach(t=>{let e=tt(t);!r.has(e)&&it.getRelatedEdgesData(e).map(t=>t.source===e?t.target:t.source).filter(t=>!i.has(t)&&(i.add(t),!0))),Array.from(a)}function t7(t){return t.states||[]}class et extends tu{bindEvents(){let{graph:t}=this.context;this.unbindEvents(),t4.forEach(e=>{t.on("".concat(e,":").concat(w.CLICK),this.onClickSelect)}),t.on(x.CLICK,this.onClickCanvas)}get isMultipleSelect(){let{multiple:t,trigger:e}=this.options;return t&&this.shortcut.match(e)}getNeighborIds(t){let{target:e,targetType:n}=t,{graph:i}=this.context,{degree:r}=this.options;return t9(i,n,e.id,"function"==typeof r?r(t):r).filter(t=>t!==e.id)}async updateState(t){let{state:e,unselectedState:n,neighborState:i,animation:r}=this.options;if(!e&&!i&&!n)return;let{target:a}=t,{graph:o}=this.context,s=o.getElementData(a.id),l=t7(s).includes(e)?"unselect":"select",h={},c=this.isMultipleSelect,u=[a.id],d=this.getNeighborIds(t);if(c){if(Object.assign(h,this.getDataStates()),"select"===l){let t=(t,e)=>{t.forEach(t=>{let i=new Set(o.getElementState(t));i.add(e),i.delete(n),h[t]=Array.from(i)})};t(u,e),t(d,i),n&&Object.keys(h).forEach(t=>{let r=h[t];r.includes(e)||r.includes(i)||r.includes(n)||h[t].push(n)})}else{let t=h[a.id];h[a.id]=t.filter(t=>t!==e&&t!==i),t.includes(n)||h[a.id].push(n),d.forEach(t=>{h[t]=h[t].filter(t=>t!==i),h[t].includes(e)||h[t].push(n)})}}else if("select"===l){Object.assign(h,this.getClearStates(!!n));let t=(t,e)=>{t.forEach(t=>{h[t]||(h[t]=o.getElementState(t)),h[t].push(e)})};t(u,e),t(d,i),n&&Object.keys(h).forEach(t=>{u.includes(t)||d.includes(t)||h[t].push(n)})}else Object.assign(h,this.getClearStates());await o.setElementState(h,r)}getDataStates(){let{graph:t}=this.context,{nodes:e,edges:n,combos:i}=t.getData(),r={};return[...e,...n,...i].forEach(t=>{r[tt(t)]=t7(t)}),r}getClearStates(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],{graph:e}=this.context,{state:n,unselectedState:i,neighborState:r}=this.options,a=new Set([n,i,r]),{nodes:o,edges:s,combos:l}=e.getData(),h={};return[...o,...s,...l].forEach(e=>{let n=t7(e),i=n.filter(t=>!a.has(t));t?h[tt(e)]=i:i.length!==n.length&&(h[tt(e)]=i)}),h}async clearState(){let{graph:t}=this.context;await t.setElementState(this.getClearStates(),this.options.animation)}validate(t){if(this.destroyed)return!1;let{enable:e}=this.options;return(0,td.Z)(e)?e(t):!!e}unbindEvents(){let{graph:t}=this.context;t4.forEach(e=>{t.off("".concat(e,":").concat(w.CLICK),this.onClickSelect)}),t.off(x.CLICK,this.onClickCanvas)}destroy(){this.unbindEvents(),super.destroy()}constructor(t,e){super(t,Object.assign({},et.defaultOptions,e)),this.onClickSelect=async t=>{var e,n;this.validate(t)&&(await this.updateState(t),null===(n=(e=this.options).onClick)||void 0===n||n.call(e,t))},this.onClickCanvas=async t=>{var e,n;this.validate(t)&&(await this.clearState(),null===(n=(e=this.options).onClick)||void 0===n||n.call(e,t))},this.shortcut=new t2(t.graph),this.bindEvents()}}function ee(t){var e;return!!(null===(e=t.style)||void 0===e?void 0:e.collapsed)}et.defaultOptions={animation:!0,enable:!0,multiple:!1,trigger:["shift"],state:"selected",neighborState:"selected",unselectedState:void 0,degree:0};var en=n(53032),ei=n(17829),er=n(73576);function ea(t,e){if(!t.startsWith(e))return!1;let n=t[e.length];return n>="A"&&n<="Z"}function eo(t,e){let n=Object.entries(t).reduce((t,n)=>{let[i,r]=n;return"className"===i||"class"===i||ea(i,e)&&Object.assign(t,{[function(t,e){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!ea(t,e))return t;let i=t.slice(e.length);return n?(0,er.Z)(i):i}(i,e)]:r}),t},{});if("opacity"in t){let i="".concat(e).concat((0,B.Z)("opacity")),r=t.opacity;if(i in t){let e=t[i];Object.assign(n,{opacity:r*e})}else Object.assign(n,{opacity:r})}return n}function es(t,e){let n=e.length;return Object.keys(t).reduce((i,r)=>{if(r.startsWith(e)){let e=r.slice(n);i[e]=t[r]}return i},{})}function el(t,e){let n="string"==typeof e?[e]:e,i={};return Object.keys(t).forEach(e=>{n.find(t=>e.startsWith(t))||(i[e]=t[e])}),i}function eh(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if("number"==typeof t)return[t,t,t];let[e,n=e,i=e]=t;return[e,n,i]}function ec(t,e){let{datum:n,graph:i}=e;return"function"==typeof t?t.call(i,n):Object.fromEntries(Object.entries(t).map(t=>{let[e,r]=t;return"function"==typeof r?[e,r.call(i,n)]:[e,r]}))}function eu(t,e){let n=(null==t?void 0:t.style)||{},i=(null==e?void 0:e.style)||{};return Object.assign({},t,e,{style:Object.assign({},n,i)})}let ed="cachedStyle",ep=t=>"__".concat(t,"__");function ef(t,e){let n=Array.isArray(e)?e:[e];(0,en.Z)(t,ed)||(0,ei.Z)(t,ed,{}),n.forEach(e=>{(0,ei.Z)((0,en.Z)(t,ed),ep(e),t.attributes[e])})}function eg(t,e){return(0,en.Z)(t,[ed,ep(e)])}function ey(t,e){return ep(e) in((0,en.Z)(t,ed)||{})}function em(t,e,n){(0,ei.Z)(t,[ed,ep(e)],n)}function ev(t){return function(e,n,i){let r=i.value;return i.value=function(e){for(var i=arguments.length,a=Array(i>1?i-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:2;if("object"!=typeof t||"object"!=typeof e)return t===e;let i=Object.keys(t),r=Object.keys(e);if(i.length!==r.length)return!1;for(let r of i){let i=t[r],a=e[r];if(n>1&&"object"==typeof i&&"object"==typeof a){if(!eb(i,a,n-1))return!1}else if(i!==a)return!1}return!0};var ex=n(5199),eE=Object.prototype.hasOwnProperty,ew=function(t,e){if(!e||!(0,ex.Z)(t))return{};for(var n,i={},r=(0,td.Z)(e)?e:function(t){return t[e]},a=0;at.id,color:t,invert:!1}:t}function eS(t){let e="string"==typeof t?V("palette",t):t;if("function"!=typeof e)return e}function eR(t,e){let n=2*t;return"string"==typeof e?n=t*Number(e.replace("%",""))/100:"number"==typeof e&&(n=e),isNaN(n)&&(n=2*t),n}function eA(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=(t.max[0]-t.min[0])*(i?n:1);return eR(r,e)}let eO=new WeakMap;function eM(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;if(void 0===e)return;let r=function(a){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,s=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return a.childNodes.forEach(e=>r(e,t))};if(i&&!i(a))return s();if(n||a!==t){eO.has(a)||eO.set(a,a.style.visibility);let t="hidden"===o||"hidden"===(eO.has(a)?eO.get(a):a.style.visibility)?"hidden":"visible";a.style.visibility=t,s(t)}else t.style.visibility=e,eO.delete(t),s(e)};r(t)}var eT=n(82844),ek={}.toString,eP=Object.prototype,eL=function(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||eP;return t===n},eD=Object.prototype.hasOwnProperty,eN=function(t){if((0,_.Z)(t))return!0;if((0,eT.Z)(t))return!t.length;var e=ek.call(t).replace(/^\[object /,"").replace(/]$/,"");if("Map"===e||"Set"===e)return!t.size;if(eL(t))return!Object.keys(t).length;for(var n in t)if(eD.call(t,n))return!1;return!0};class eI extends I.b_{get parsedAttributes(){return this.attributes}upsert(t,e,n,i,r){var a,o,s,l,h,c,u,d;let p=this.shapeMap[t];if(!1===n){p&&(null==r||null===(s=r.beforeDestroy)||void 0===s||s.call(r,p),i.removeChild(p),delete this.shapeMap[t],null==r||null===(l=r.afterDestroy)||void 0===l||l.call(r,p));return}let f="string"==typeof e?V(M.SHAPE,e):e;if(!f)throw Error(U("Shape ".concat(e," not found")));if(!p||p.destroyed||!(p instanceof f)){p&&(null==r||null===(u=r.beforeDestroy)||void 0===u||u.call(r,p),null==p||p.destroy(),null==r||null===(d=r.afterDestroy)||void 0===d||d.call(r,p)),null==r||null===(h=r.beforeCreate)||void 0===h||h.call(r);let e=new f({className:t,style:n});return i.appendChild(e),this.shapeMap[t]=e,null==r||null===(c=r.afterCreate)||void 0===c||c.call(r,e),e}return null==r||null===(a=r.beforeUpdate)||void 0===a||a.call(r,p),n8(p,n),null==r||null===(o=r.afterUpdate)||void 0===o||o.call(r,p),p}transformPosition(t){let{x:e=0,y:n=0,z:i=0,transform:r}=t;(0!==e||0!==n||0!==i)&&(this.style.transform=tn(+e,+n,+i,r))}update(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign({},this.attributes,t);this.attr(e),this.render(e,this),this.transformPosition(e),this.setVisibility()}bindEvents(){}getGraphicStyle(t){return function(t){let{x:e,y:n,z:i,class:r,className:a,transform:o,transformOrigin:s,context:l,zIndex:h,visibility:c,...u}=t;return u}(t)}get compositeShapes(){return[["badges","badge-"],["ports","port-"]]}animate(t,e){if(0===t.length)return null;let n=[];if(void 0!==t[0].x||void 0!==t[0].y||void 0!==t[0].z){let{x:e=0,y:n=0,z:i=0}=this.attributes;t.forEach(t=>{let{x:r=e,y:a=n,z:o=i}=t;Object.assign(t,{transform:tn(+r,+a,+o)})})}let i=super.animate(t,e);if(i&&(eB(this,i),n.push(i)),Array.isArray(t)&&t.length>0){let i=["transform","transformOrigin","x","y","z","zIndex"];if(Object.keys(t[0]).some(t=>!i.includes(t))){Object.entries(this.shapeMap).forEach(i=>{let[r,a]=i,o="get".concat((0,B.Z)(r),"Style"),s=this[o];if((0,td.Z)(s)){let i=t.map(t=>s.call(this,{...this.attributes,...t})),r=a.animate(X(i),e);r&&(eB(a,r),n.push(r))}});let i=(i,r)=>{if(!eN(i)){let a="get".concat((0,B.Z)(r),"Style"),o=this[a];if((0,td.Z)(o)){let r=t.map(t=>o.call(this,{...this.attributes,...t}));Object.entries(r[0]).map(t=>{let[a]=t,o=r.map(t=>t[a]),s=i[a];if(s){let t=s.animate(X(o),e);t&&(eB(s,t),n.push(t))}})}}};this.compositeShapes.forEach(t=>{let[e,n]=t,r=es(this.shapeMap,n);i(r,e)})}}return $(n)}getShape(t){return this.shapeMap[t]}setVisibility(){let{visibility:t}=this.attributes;eM(this,t,!0)}destroy(){this.shapeMap={},this.animateMap={},super.destroy()}constructor(t){super(t),this.shapeMap={},this.animateMap={},this.transformPosition(this.attributes),this.render(this.attributes,this),this.setVisibility(),this.bindEvents()}}function eB(t,e){null==e||e.finished.then(()=>{let n=t.activeAnimations.findIndex(t=>t===e);n>-1&&t.activeAnimations.splice(n,1)})}class e_ extends eI{isTextStyle(t){return ea(t,"label")}isBackgroundStyle(t){return ea(t,"background")}getTextStyle(t){let{padding:e,...n}=this.getGraphicStyle(t);return el(n,"background")}getBackgroundStyle(t){if(!1===t.background)return!1;let e=this.getGraphicStyle(t),{wordWrap:n,wordWrapWidth:i,padding:r}=e,a=eo(e,"background"),{min:[o,s],center:[l,h],halfExtents:[c,u]}=this.shapeMap.text.getGeometryBounds(),[d,p,f,g]=ty(r),y=2*c+g+p,{width:m,height:v}=a;m&&v?Object.assign(a,{x:l-Number(m)/2,y:h-Number(v)/2}):Object.assign(a,{x:o-g,y:s-d,width:n?Math.min(y,i+g+p):y,height:2*u+d+f});let{radius:b}=a;if("string"==typeof b&&b.endsWith("%")){let t=Number(b.replace("%",""))/100;a.radius=Math.min(+a.width,+a.height)*t}return a}render(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.parsedAttributes,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this.upsert("text",I.xv,this.getTextStyle(t),e),this.upsert("background",I.UL,this.getBackgroundStyle(t),e)}getGeometryBounds(){let t=this.getShape("background")||this.getShape("text");return t.getGeometryBounds()}constructor(t){super(eu({style:e_.defaultStyleProps},t))}}e_.defaultStyleProps={padding:0,fontSize:12,fontFamily:"system-ui, sans-serif",wordWrap:!0,maxLines:1,wordWrapWidth:128,textOverflow:"...",textBaseline:"middle",backgroundOpacity:.75,backgroundZIndex:-1,backgroundLineWidth:0};class eF extends eI{getBadgeStyle(t){return this.getGraphicStyle(t)}render(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.parsedAttributes,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this.upsert("label",e_,this.getBadgeStyle(t),e)}getGeometryBounds(){let t=this.getShape("label"),e=t.getShape("background")||t.getShape("text");return e.getGeometryBounds()}constructor(t){super(eu({style:eF.defaultStyleProps},t))}}eF.defaultStyleProps={padding:[2,4,2,4],fontSize:10,wordWrap:!1,backgroundRadius:"50%",backgroundOpacity:1};let ej={M:["x","y"],m:["dx","dy"],H:["x"],h:["dx"],V:["y"],v:["dy"],L:["x","y"],l:["dx","dy"],Z:[],z:[],C:["x1","y1","x2","y2","x","y"],c:["dx1","dy1","dx2","dy2","dx","dy"],S:["x2","y2","x","y"],s:["dx2","dy2","dx","dy"],Q:["x1","y1","x","y"],q:["dx1","dy1","dx","dy"],T:["x","y"],t:["dx","dy"],A:["rx","ry","rotation","large-arc","sweep","x","y"],a:["rx","ry","rotation","large-arc","sweep","dx","dy"]},eZ=t=>{if(t.length<2)return[["M",0,0],["L",0,0]];let e=t[0],n=t[1],i=t[t.length-1],r=t[t.length-2];t.unshift(r,i),t.push(e,n);let a=[["M",i[0],i[1]]];for(let e=1;e0;){let t=e.shift();t in ej?i=t:e.unshift(t),r={type:i},ej[i].forEach(n=>{t=e.shift(),r[n]=t}),"M"===i?i="L":"m"===i&&(i="l");let[a,...o]=Object.values(r);n.push([a,...o.map(Number)])}return n}(t):t;return n.forEach(t=>{let n=t[0];if("Z"===n){e.push(e[0]);return}if("A"!==n)for(let n=1;n{let n=p[(e+1)%p.length];return(0,F.Z)(t,n)?null:[t,n]}).filter(Boolean),g=(s=[c,u],l=1/0,h=[[0,0],[0,0]],f.forEach(t=>{let e=function(t,e){let n=tq(t,e);return tD(t,n)}(s,t);e0?d.textBaseline="right"===e?"bottom":"top":d.textBaseline="right"===e?"top":"bottom")}return d}(h,a,n,i,o,t.d,r),{wordWrapWidth:eA(h,e)},s)}getKeyStyle(t){return this.getGraphicStyle(t)}render(t,e){this.upsert("key",I.y$,this.getKeyStyle(t),e),this.upsert("label",e_,this.getLabelStyle(t),e)}constructor(t){super(eu({style:ez.defaultStyleProps},t))}}ez.defaultStyleProps={label:!0,labelPlacement:"bottom",labelCloseToPath:!0,labelAutoRotate:!0,labelOffsetX:0,labelOffsetY:0};class eG extends I.Ee{handleRadius(){let{radius:t,clipPath:e,width:n=0,height:i=0}=this.attributes;if(t&&n&&i){let[r,a]=this.getBounds().min,o={x:r,y:a,radius:t,width:n,height:i};if(e)Object.assign(this.parsedStyle.clipPath.style,o);else{let t=new I.UL({style:o});this.style.clipPath=t}}else e&&(this.style.clipPath=null)}constructor(t){super(t),this.onMounted=()=>{this.handleRadius()},this.onAttrModified=()=>{this.handleRadius()},eW=this,this.isMutationObserved=!0,this.addEventListener(I.Dk.MOUNTED,this.onMounted),this.addEventListener(I.Dk.ATTR_MODIFIED,this.onAttrModified)}}let eH=new WeakMap,eW=null,eV=t=>{if(eW&&(function(t){let e=[],n=t.parentNode;for(;n;)e.push(n),n=n.parentNode;return e})(eW).includes(t)){let e=eH.get(t);e?e.includes(eW)||e.push(eW):eH.set(t,[eW])}},eU=t=>{let e=eH.get(t);e&&e.forEach(t=>t.handleRadius())};class eY extends eI{isImage(){let{src:t}=this.attributes;return!!t}getIconStyle(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.attributes,{width:e=0,height:n=0}=t,i=this.getGraphicStyle(t);return this.isImage()?{x:-e/2,y:-n/2,...i}:{textBaseline:"middle",textAlign:"center",...i}}render(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.attributes,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this.upsert("icon",this.isImage()?eG:I.xv,this.getIconStyle(t),e)}constructor(t){super(t)}}class eK extends eI{get context(){return this.attributes.context}get parsedAttributes(){return this.attributes}onframe(){}animate(t,e){let n=super.animate(t,e);return n&&(n.onframe=()=>this.onframe(),n.finished.then(()=>this.onframe())),n}}var e$=function(t,e,n,i){var r,a=arguments.length,o=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(o=(a<3?r(o):a>3?r(e,n,o):r(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};class eX extends eK{getSize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.attributes,{size:e}=t;return eh(e)}getKeyStyle(t){let e=this.getGraphicStyle(t);return Object.assign(el(e,["label","halo","icon","badge","port"]))}getLabelStyle(t){if(!1===t.label||!t.labelText)return!1;let{placement:e,maxWidth:n,offsetX:i,offsetY:r,...a}=eo(this.getGraphicStyle(t),"label"),o=this.getShape("key").getLocalBounds();return Object.assign(n4(o,e,i,r),{wordWrapWidth:eA(o,n)},a)}getHaloStyle(t){if(!1===t.halo)return!1;let{fill:e,...n}=this.getKeyStyle(t),i=eo(this.getGraphicStyle(t),"halo");return{...n,stroke:e,...i}}getIconStyle(t){if(!1===t.icon||!t.iconText&&!t.iconSrc)return!1;let e=eo(this.getGraphicStyle(t),"icon");return Object.assign(function(t,e){let n=eh(t),i={};return e.text&&!e.fontSize&&(i={fontSize:.5*Math.min(...n)}),!e.src||e.width&&e.height||(i={width:.5*n[0],height:.5*n[1]}),i}(t.size,e),e)}getBadgesStyle(t){var e;let n=es(this.shapeMap,"badge-"),i={};if(Object.keys(n).forEach(t=>{i[t]=!1}),!1===t.badge||!(null===(e=t.badges)||void 0===e?void 0:e.length))return i;let{badges:r=[],badgePalette:a,opacity:o=1,...s}=t,l=eS(a),h=eo(this.getGraphicStyle(s),"badge");return r.forEach((t,e)=>{i[e]={backgroundFill:l?l[e%(null==l?void 0:l.length)]:void 0,opacity:o,...h,...this.getBadgeStyle(t)}}),i}getBadgeStyle(t){let e=this.getShape("key"),{placement:n="top",offsetX:i,offsetY:r,...a}=t,o=n4(e.getLocalBounds(),n,i,r,!0);return{...o,...a}}getPortsStyle(t){var e;let n=this.getPorts(),i={};if(Object.keys(n).forEach(t=>{i[t]=!1}),!1===t.port||!(null===(e=t.ports)||void 0===e?void 0:e.length))return i;let r=eo(this.getGraphicStyle(t),"port"),{ports:a=[]}=t;return a.forEach((e,n)=>{let a=e.key||n,o={...r,...e};if(nJ(o))i[a]=!1;else{let[n,r]=this.getPortXY(t,e);i[a]={transform:"translate(".concat(n,", ").concat(r,")"),...o}}}),i}getPortXY(t,e){let{placement:n="left"}=e,i=this.getShape("key");return nq(function(t,e){if(!t)return e.getLocalBounds();let n=t.canvas.getLayer(),i=e.cloneNode();eM(i,"hidden"),n.appendChild(i);let r=i.getLocalBounds();return n.removeChild(i),r}(this.context,i),n)}getPorts(){return es(this.shapeMap,"port-")}getCenter(){return this.getShape("key").getBounds().center}getIntersectPoint(t){let e=this.getShape("key").getBounds();return function(t,e){let n=tW(e,"center"),i=[tW(e,"left-top"),tW(e,"right-top"),tW(e,"right-bottom"),tW(e,"left-bottom")];return t$(t,n,i,!1).point}(t,e)}drawHaloShape(t,e){let n=this.getShape("key");this.upsert("halo",n.constructor,this.getHaloStyle(t),e)}drawIconShape(t,e){this.upsert("icon",eY,this.getIconStyle(t),e),eV(this)}drawBadgeShapes(t,e){let n=this.getBadgesStyle(t);Object.keys(n).forEach(t=>{this.upsert("badge-".concat(t),eF,n[t],e)})}drawPortShapes(t,e){let n=this.getPortsStyle(t);Object.keys(n).forEach(t=>{this.upsert("port-".concat(t),I.Cd,n[t],e)})}drawLabelShape(t,e){this.upsert("label",e_,this.getLabelStyle(t),e)}_drawKeyShape(t,e){return this.drawKeyShape(t,e)}render(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.parsedAttributes,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this._drawKeyShape(t,e),this.getShape("key")&&(this.drawHaloShape(t,e),this.drawIconShape(t,e),this.drawBadgeShapes(t,e),this.drawLabelShape(t,e),this.drawPortShapes(t,e))}update(t){super.update(t),t&&("x"in t||"y"in t||"z"in t)&&eU(this)}onframe(){this.drawBadgeShapes(this.parsedAttributes,this),this.drawLabelShape(this.parsedAttributes,this)}constructor(t){super(eu({style:eX.defaultStyleProps},t)),this.type="node"}}eX.defaultStyleProps={x:0,y:0,size:32,droppable:!0,draggable:!0,port:!0,ports:[],portZIndex:2,portLinkToCenter:!1,badge:!0,badges:[],badgeZIndex:3,halo:!1,haloDroppable:!1,haloLineDash:0,haloLineWidth:12,haloStrokeOpacity:.25,haloPointerEvents:"none",haloZIndex:-1,icon:!0,iconZIndex:1,label:!0,labelIsBillboard:!0,labelMaxWidth:"200%",labelPlacement:"bottom",labelWordWrap:!1,labelZIndex:0},e$([ev((t,e)=>t.getHaloStyle(e))],eX.prototype,"drawHaloShape",null),e$([ev((t,e)=>t.getIconStyle(e))],eX.prototype,"drawIconShape",null),e$([ev((t,e)=>t.getBadgesStyle(e))],eX.prototype,"drawBadgeShapes",null),e$([ev((t,e)=>t.getPortsStyle(e))],eX.prototype,"drawPortShapes",null),e$([ev((t,e)=>t.getLabelStyle(e))],eX.prototype,"drawLabelShape",null),e$([ev((t,e)=>t.getKeyStyle(e))],eX.prototype,"_drawKeyShape",null);class eq extends eX{drawKeyShape(t,e){return this.upsert("key",I.Cd,this.getKeyStyle(t),e)}getKeyStyle(t){let e=super.getKeyStyle(t);return{...e,r:Math.min(...this.getSize(t))/2}}getIconStyle(t){let e=super.getIconStyle(t),{r:n}=this.getShape("key").attributes,i=2*n*.8;return!!e&&{width:i,height:i,...e}}getIntersectPoint(t){let e=this.getShape("key").getBounds();return tX(t,e)}constructor(t){super(eu({style:eq.defaultStyleProps},t))}}eq.defaultStyleProps={size:32};class eQ extends eX{get parsedAttributes(){return this.attributes}drawKeyShape(t,e){return this.upsert("key",I.mg,this.getKeyStyle(t),e)}getKeyStyle(t){let e=super.getKeyStyle(t);return{...e,points:this.getPoints(t)}}getIntersectPoint(t){var e,n;let{points:i}=this.getShape("key").attributes,r=[+((null===(e=this.attributes)||void 0===e?void 0:e.x)||0),+((null===(n=this.attributes)||void 0===n?void 0:n.y)||0)];return t$(t,r,i).point}constructor(t){super(t)}}var eJ=n(25897);class e0 extends eq{parseOuterR(){let{size:t}=this.parsedAttributes;return Math.min(...eh(t))/2}parseInnerR(){let{innerR:t}=this.parsedAttributes;return(0,t0.Z)(t)?parseInt(t)/100*this.parseOuterR():t}drawDonutShape(t,e){var n;let{donuts:i}=t;if(!(null==i?void 0:i.length))return;let r=i.map(t=>(0,eJ.Z)(t)?{value:t}:t),a=eo(this.getGraphicStyle(t),"donut"),o=eS(t.donutPalette);if(!o)return;let s=r.reduce((t,e)=>t+(null!==(n=e.value)&&void 0!==n?n:0),0),l=this.parseOuterR(),h=this.parseInnerR(),c=0;r.forEach((t,n)=>{let{value:i=0,color:u=o[n%o.length],...d}=t,p=(0===s?1/r.length:i/s)*360;this.upsert("round".concat(n),I.y$,{...a,d:e6(l,h,c,c+p),fill:u,...d},e),c+=p})}render(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;super.render(t,e),this.drawDonutShape(t,e)}constructor(t){super(eu({style:e0.defaultStyleProps},t))}}e0.defaultStyleProps={innerR:"50%",donuts:[],donutPalette:"tableau"};let e1=(t,e,n,i)=>[t+Math.sin(i)*n,e-Math.cos(i)*n],e2=(t,e,n,i)=>i<=0||n<=i?[["M",t-n,e],["A",n,n,0,1,1,t+n,e],["A",n,n,0,1,1,t-n,e],["Z"]]:[["M",t-n,e],["A",n,n,0,1,1,t+n,e],["A",n,n,0,1,1,t-n,e],["Z"],["M",t+i,e],["A",i,i,0,1,0,t-i,e],["A",i,i,0,1,0,t+i,e],["Z"]],e3=(t,e,n,i,r,a)=>{let[o,s]=[r/360*2*Math.PI,a/360*2*Math.PI],l=[e1(t,e,i,o),e1(t,e,n,o),e1(t,e,n,s),e1(t,e,i,s)],h=s-o>Math.PI?1:0;return[["M",l[0][0],l[0][1]],["L",l[1][0],l[1][1]],["A",n,n,0,h,1,l[2][0],l[2][1]],["L",l[3][0],l[3][1]],["A",i,i,0,h,0,l[0][0],l[0][1]],["Z"]]},e6=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,[r,a]=[0,0];return Math.abs(n-i)%360<1e-6?e2(r,a,t,e):e3(r,a,t,e,n,i)};class e4 extends eX{drawKeyShape(t,e){return this.upsert("key",I.Pj,this.getKeyStyle(t),e)}getKeyStyle(t){let e=super.getKeyStyle(t),[n,i]=this.getSize(t);return{...e,rx:n/2,ry:i/2}}getIconStyle(t){let e=super.getIconStyle(t),{rx:n,ry:i}=this.getShape("key").attributes,r=2*Math.min(+n,+i)*.8;return!!e&&{width:r,height:r,...e}}getIntersectPoint(t){let e=this.getShape("key").getBounds();return tX(t,e)}constructor(t){super(eu({style:e4.defaultStyleProps},t))}}e4.defaultStyleProps={size:[45,35]};var e8=n(23413),e9=n(71154);class e5 extends eX{get eventService(){return this.context.canvas.context.eventService}get events(){return[w.CLICK,w.POINTER_DOWN,w.POINTER_MOVE,w.POINTER_UP,w.POINTER_OVER,w.POINTER_LEAVE]}getDomElement(){return this.getShape("key").getDomElement()}getKeyStyle(t){let e=(0,e8.Z)(t,["innerHTML","pointerEvents","cursor"]),[n,i]=this.getSize(t);return{...e,width:n,height:i}}drawKeyShape(t,e){let n=this.getKeyStyle(t),{width:i=0,height:r=0}=n,a=this.upsert("key-container",I.UL,{width:i,height:r,opacity:0},e);return this.upsert("key",I.k9,n,a)}connectedCallback(){let t=this.getDomElement();this.events.forEach(e=>{t.addEventListener(e,this.forwardEvents)})}attributeChangedCallback(t,e,n){"zIndex"===t&&e!==n&&(this.getDomElement().style.zIndex=n)}destroy(){let t=this.getDomElement();this.events.forEach(e=>{t.removeEventListener(e,this.forwardEvents)}),super.destroy()}normalizeToPointerEvent(t,e){let n=[];if(e.isTouchEvent(t))for(let e=0;e{let e=this.context.canvas,n=e.context.renderingContext.root.ownerDocument.defaultView,i=this.normalizeToPointerEvent(t,n);i.forEach(i=>{let r=this.bootstrapEvent(this.rootPointerEvent,i,n,t);e.context.eventService.mapEvent(r)})}}}e5.defaultStyleProps={size:[160,80],halo:!1,icon:!1,label:!1,pointerEvents:"auto"};class e7 extends eX{getKeyStyle(t){let[e,n]=this.getSize(t),{fillOpacity:i,opacity:r=i,...a}=super.getKeyStyle(t);return{opacity:r,...a,width:e,height:n,x:-e/2,y:-n/2}}getHaloStyle(t){if(!1===t.halo)return!1;let{fill:e,stroke:n,...i}=this.getShape("key").attributes,r=eo(this.getGraphicStyle(t),"halo"),a=Number(r.lineWidth),[o,s]=tM(this.getSize(t),[a,a]);return{...r,width:o,height:s,fill:"transparent",x:-o/2,y:-s/2}}getIconStyle(t){let e=super.getIconStyle(t),[n,i]=this.getSize(t);return!!e&&{width:.8*n,height:.8*i,...e}}drawKeyShape(t,e){let n=this.upsert("key",eG,this.getKeyStyle(t),e);return eV(this),n}drawHaloShape(t,e){this.upsert("halo",I.UL,this.getHaloStyle(t),e)}update(t){super.update(t),t&&("x"in t||"y"in t||"z"in t)&&eU(this)}constructor(t){super(eu({style:e7.defaultStyleProps},t))}}e7.defaultStyleProps={size:32};class nt extends eQ{getPoints(t){let{direction:e}=t,[n,i]=this.getSize(t);return function(t,e,n){let i=e/2,r=t/2,a={up:[[-r,i],[r,i],[0,-i]],left:[[-r,0],[r,i],[r,-i]],right:[[-r,i],[-r,-i],[r,0]],down:[[-r,-i],[r,-i],[0,i]]};return a[n]||a.up}(n,i,e)}getPortXY(t,e){let{direction:n}=t,{placement:i="top"}=e,r=this.getShape("key").getLocalBounds(),[a,o]=this.getSize(t),s=function(t,e,n){let i=e/2,r=t/2,a={};return"down"===n?(a.bottom=a.default=[0,i],a.right=[r,-i],a.left=[-r,-i]):"left"===n?(a.top=[r,-i],a.bottom=[r,i],a.left=a.default=[-r,0]):"right"===n?(a.top=[-r,-i],a.bottom=[-r,i],a.right=a.default=[r,0]):(a.left=[-r,i],a.top=a.default=[0,-i],a.right=[r,i]),a}(a,o,n);return nq(r,i,s,!1)}getIconStyle(t){let{icon:e,iconText:n,iconSrc:i,direction:r}=t;if(!1===e||eN(n||i))return!1;let a=eo(this.getGraphicStyle(t),"icon"),o=this.getShape("key").getLocalBounds(),[s,l]=function(t,e){let{center:n}=t,[i,r]=tb(t),a="up"===e||"down"===e?n[0]:"right"===e?n[0]-i/6:n[0]+i/6,o="left"===e||"right"===e?n[1]:"down"===e?n[1]-r/6:n[1]+r/6;return[a,o]}(o,r),h=2*function(t,e){let[n,i]=tb(t);return[n,i]="up"===e||"down"===e?[n,i]:[i,n],(i**2-(Math.sqrt((n/2)**2+i**2)-n/2)**2)/(2*i)}(o,r)*.8;return{x:s,y:l,width:h,height:h,...a}}constructor(t){super(eu({style:nt.defaultStyleProps},t))}}nt.defaultStyleProps={size:40,direction:"up"};class ne extends eX{getKeySize(t){let{collapsed:e,childrenNode:n=[]}=t;return 0===n.length?this.getEmptyKeySize(t):e?this.getCollapsedKeySize(t):this.getExpandedKeySize(t)}getEmptyKeySize(t){let{padding:e,collapsedSize:n}=t,[i,r,a,o]=ty(e);return tM(eh(n),[o+r,i+a,0])}getCollapsedKeySize(t){return eh(t.collapsedSize)}getExpandedKeySize(t){let e=this.getContentBBox(t);return[tm(e),tv(e),0]}getContentBBox(t){let{context:e,childrenNode:n=[],padding:i}=t,r=n.map(t=>e.element.getElement(t)).filter(Boolean);if(0===r.length){let e=new I.mN,{x:n=0,y:i=0,size:r}=t,[a,o]=eh(r);return e.setMinMax([n-a/2,i-o/2,0],[n+a/2,i+o/2,0]),e}let a=tw(r.map(t=>t.getBounds()));return i?tE(a,i):a}drawCollapsedMarkerShape(t,e){this.upsert("collapsed-marker",eY,this.getCollapsedMarkerStyle(t),e),eV(this)}getCollapsedMarkerStyle(t){if(!t.collapsed||!t.collapsedMarker)return!1;let{type:e,...n}=eo(this.getGraphicStyle(t),"collapsedMarker"),i=this.getShape("key"),[r,a]=tW(i.getLocalBounds(),"center"),o={...n,x:r,y:a};if(e){let n=this.getCollapsedMarkerText(e,t);Object.assign(o,{text:n})}return o}getCollapsedMarkerText(t,e){let{context:n,childrenData:i=[]}=e,{model:r}=n;return"descendant-count"===t?r.getDescendantsData(this.id).length.toString():"child-count"===t?i.length.toString():"node-count"===t?r.getDescendantsData(this.id).filter(t=>"node"===r.getElementType(tt(t))).length.toString():(0,td.Z)(t)?t(i):""}getComboZIndex(t){let e=this.context.model.getAncestorsData(this.id,G)||[];return e.length}getComboPosition(t){let{x:e=0,y:n=0,collapsed:i,context:r,childrenData:a=[]}=t;if(0===a.length)return[+e,+n,0];if(i){let{model:t}=r,i=t.getDescendantsData(this.id).filter(e=>!t.isCombo(tt(e)));if(i.length>0){let t=i.reduce((t,e)=>tM(t,tH(e)),[0,0,0]);return tP(t,i.length)}return[+e,+n,0]}return this.getContentBBox(t).center}getComboStyle(t){let{zIndex:e=this.getComboZIndex(t)}=t,[n,i]=this.getComboPosition(t);return{x:n,y:i,transform:"translate(".concat(n,", ").concat(i,")"),zIndex:e}}updateComboPosition(t){let e=this.getComboStyle(t);Object.assign(this.style,e);let{x:n,y:i}=e;this.context.model.syncComboDatum({id:this.id,style:{x:n,y:i}}),eU(this)}render(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;super.render(t,e),this.drawCollapsedMarkerShape(t,e)}update(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.update(t),this.updateComboPosition(this.parsedAttributes)}onframe(){super.onframe(),this.attributes.collapsed||this.updateComboPosition(this.parsedAttributes),this.drawKeyShape(this.parsedAttributes,this)}animate(t,e){let n=super.animate(this.attributes.collapsed?t:t.map(t=>{let{x:e,y:n,z:i,transform:r,...a}=t;return a}),e);return n?new Proxy(n,{set:(t,e,n)=>("currentTime"===e&&Promise.resolve().then(()=>this.onframe()),Reflect.set(t,e,n))}):n}constructor(t){super(eu({style:ne.defaultStyleProps},t)),this.type="combo",this.updateComboPosition(this.parsedAttributes)}}ne.defaultStyleProps={childrenNode:[],droppable:!0,draggable:!0,collapsed:!1,collapsedSize:32,collapsedMarker:!0,collapsedMarkerZIndex:1,collapsedMarkerFontSize:12,collapsedMarkerTextAlign:"center",collapsedMarkerTextBaseline:"middle",collapsedMarkerType:"child-count"},function(t,e,n,i){var r,a=arguments.length,o=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(o=(a<3?r(o):a>3?r(e,n,o):r(e,n))||o);a>3&&o&&Object.defineProperty(e,n,o)}([ev((t,e)=>t.getCollapsedMarkerStyle(e))],ne.prototype,"drawCollapsedMarkerShape",null);var nn=n(47666);let ni={padding:10};function nr(t,e,n,i,r,a){let{padding:o}=Object.assign(ni,a),s=tx(n,o),l=tx(i,o),h=[t,...r,e],c=null,u=[];for(let t=0,e=h.length;ta?"N":"S":i===a?n>r?"W":"E":null}function nl(t,e){return"N"===e||"S"===e?tv(t):tm(t)}function nh(t,e,n){let i=nd(t,e,n);return{points:[i],direction:ns(i,e)}}function nc(t,e,n,i){let r=[[e[0],t[1]],[t[0],e[1]]],a=r.filter(t=>!tC(t,n)&&!tS(t,n,!0)),o=a.filter(e=>ns(e,t)!==i);if(o.length>0){let n=o.find(e=>ns(t,e)===i)||o[0];return{points:[n],direction:ns(n,e)}}{var s;let o=(void 0===(s=a)&&(s=[]),(0,nn.Z)(r,function(t){var e;return e=s,!((0,eT.Z)(e)&&e.indexOf(t)>-1)}))[0],l=tK(e,o,nl(n,i)/2),h=nd(l,t,n);return{points:[h,l],direction:ns(l,e)}}}function nu(t,e,n,i,r){let a;let o=tw([n,i]),s=tD(e,o.center)>tD(t,o.center),[l,h]=s?[e,t]:[t,e],c=tv(o)+tm(o);if(r){let t=[l[0]+c*Math.cos(no[r]),l[1]+c*Math.sin(no[r])];a=tK(tA(o,t),t,.01)}else a=tK(tA(o,l),l,-.01);let u=nd(a,h,o),d=[tY(a,2),tY(u,2)];if((0,F.Z)(tY(a),tY(u))){let t=tB(tT(a,l),[1,0,0])+Math.PI/2;u=[h[0]+c*Math.cos(t),h[1]+c*Math.sin(t),0],u=tY(tK(tA(o,u),h,-.01),2);let e=nd(a,u,o);d=[a,e,u]}return{points:s?d.reverse():d,direction:s?ns(a,e):ns(u,e)}}function nd(t,e,n){let i=[t[0],e[1]];return tC(i,n)&&(i=[e[0],t[1]]),i}function np(t,e,n,i,r){let a="number"==typeof e?e:.5;"start"===e&&(a=0),"end"===e&&(a=.99);let o=tV(t.getPoint(a)),s=tV(t.getPoint(a+.01)),l="start"===e?"left":"end"===e?"right":"center";if(o[1]===s[1]||!n){let[e,n]=nf(t,a,i,r);return{transform:"translate(".concat(e,", ").concat(n,")"),textAlign:l}}let h=Math.atan2(s[1]-o[1],s[0]-o[0]),c=s[0]1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t[0],r=t[t.length-1],a=t.slice(1,t.length-1),o=[["M",i[0],i[1]]];return a.forEach((t,n)=>{let s=a[n-1]||i,l=a[n+1]||r;if(!tZ([s,t],[t,l])&&e){let[n,i]=function(t,e,n,i){let r=tN(t,e),a=tN(n,e),o=Math.min(i,Math.min(r,a)/2),s=[e[0]-o/r*(e[0]-t[0]),e[1]-o/r*(e[1]-t[1])],l=[e[0]-o/a*(e[0]-n[0]),e[1]-o/a*(e[1]-n[1])];return[s,l]}(s,t,l,e);o.push(["L",n[0],n[1]],["Q",t[0],t[1],i[0],i[1]],["L",i[0],i[1]])}else o.push(["L",t[0],t[1]])}),o.push(["L",r[0],r[1]]),n&&o.push(["Z"]),o}let nv=t=>{let e=Math.PI/2,n=tv(t)/2,i=tm(t)/2,r=Math.atan2(n,i)/2,a=Math.atan2(i,n)/2;return{top:[-e-a,-e+a],"top-right":[-e+a,-r],"right-top":[-e+a,-r],right:[-r,r],"bottom-right":[r,e-a],"right-bottom":[r,e-a],bottom:[e-a,e+a],"bottom-left":[e+a,Math.PI-r],"left-bottom":[e+a,Math.PI-r],left:[Math.PI-r,Math.PI+r],"top-left":[Math.PI+r,-e-a],"left-top":[Math.PI+r,-e-a]}};function nb(t,e,n,i,r){let a=tx(t),o=t.getCenter(),s=i&&n0(i),l=r&&n0(r);if(!s||!l){let i=nv(a),r=i[e][0],h=i[e][1],[c,u]=tb(a),d=Math.max(c,u),p=tM(o,[d*Math.cos(r),d*Math.sin(r),0]),f=tM(o,[d*Math.cos(h),d*Math.sin(h),0]);s=n6(t,p),l=n6(t,f),n||([s,l]=[l,s])}return[s,l]}function nx(t,e){let n=new Set,i=new Set,r=new Set;return t.forEach(a=>{let o=e(a);o.forEach(e=>{n.add(e),t.includes(e.source)&&t.includes(e.target)?i.add(e):r.add(e)})}),{edges:Array.from(n),internal:Array.from(i),external:Array.from(r)}}function nE(t,e){let n=[],i=t;for(;i;){n.push(i);let t=e(tt(i));if(t)i=t;else break}if(n.some(t=>{var e;return null===(e=t.style)||void 0===e?void 0:e.collapsed})){let t=n.reverse().findIndex(ee);return n[t]||n.at(-1)}return t}let nw=(t,e)=>{let n=Math.max(t,e)/2;return[["M",-t/2,0],["A",n,n,0,1,0,2*n-t/2,0],["A",n,n,0,1,0,-t/2,0],["Z"]]},nC=(t,e)=>[["M",-t/2,0],["L",t/2,-e/2],["L",t/2,e/2],["Z"]],nS=(t,e)=>[["M",-t/2,0],["L",0,-e/2],["L",t/2,0],["L",0,e/2],["Z"]],nR=(t,e)=>[["M",-t/2,0],["L",t/2,-e/2],["L",4*t/5-t/2,0],["L",t/2,e/2],["Z"]],nA=(t,e)=>[["M",-t/2,-e/2],["L",t/2,-e/2],["L",t/2,e/2],["L",-t/2,e/2],["Z"]],nO=(t,e)=>{let n=t/2,i=t/7,r=t-i;return[["M",-n,0],["L",0,-e/2],["L",0,e/2],["Z"],["M",r-n,-e/2],["L",r+i-n,-e/2],["L",r+i-n,e/2],["L",r-n,e/2],["Z"]]},nM=(t,e)=>[["M",t/2,-e/2],["L",-t/2,0],["L",t/2,0],["L",-t/2,0],["L",t/2,e/2]];var nT=function(t,e,n,i){var r,a=arguments.length,o=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(o=(a<3?r(o):a>3?r(e,n,o):r(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};class nk extends eK{get sourceNode(){let{context:t,sourceNode:e}=this.parsedAttributes;return t.element.getElement(e)}get targetNode(){let{context:t,targetNode:e}=this.parsedAttributes;return t.element.getElement(e)}getKeyStyle(t){let{loop:e,...n}=this.getGraphicStyle(t),{sourceNode:i,targetNode:r}=this,a=e&&i&&r&&i===r?this.getLoopPath(t):this.getKeyPath(t);return{d:a,...el(n,["halo","label","startArrow","endArrow"])}}getLoopPath(t){let{sourcePort:e,targetPort:n}=t,i=this.sourceNode,r=tx(i),a=Math.max(tm(r),tv(r)),{placement:o,clockwise:s,dist:l=a}=eo(this.getGraphicStyle(t),"loop");return function(t,e,n,i,r,a){let o=t.getPorts()[r||a],s=t.getPorts()[a||r],[l,h]=nb(t,e,n,o,s),c=function(t,e,n,i){let r=t.getCenter();if((0,F.Z)(e,n)){let t=tT(e,r),a=[i*Math.sign(t[0])||i/2,i*Math.sign(t[1])||-i/2,0];return[tM(e,a),tM(n,tk(a,[1,-1,1]))]}return[tK(r,e,tD(r,e)+i),tK(r,n,tD(r,n)+i)]}(t,l,h,i);return o&&(l=n3(o,c[0])),s&&(h=n3(s,c[c.length-1])),ny(l,h,c)}(i,o,s,l,e,n)}getEndpoints(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],{sourcePort:i,targetPort:r}=t,{sourceNode:a,targetNode:o}=this,[s,l]=function(t,e,n,i){let r=n1(t,e,n,i),a=n1(e,t,i,n);return[r,a]}(a,o,i,r);if(!e){let t=s?n0(s):a.getCenter(),e=l?n0(l):o.getCenter();return[t,e]}let h="function"==typeof n?n():n,c=n2(s||a,h[0]||l||o),u=n2(l||o,h[h.length-1]||s||a);return[c,u]}getHaloStyle(t){if(!1===t.halo)return!1;let e=this.getKeyStyle(t),n=eo(this.getGraphicStyle(t),"halo");return{...e,...n}}getLabelStyle(t){if(!1===t.label||!t.labelText)return!1;let e=eo(this.getGraphicStyle(t),"label"),{placement:n,offsetX:i,offsetY:r,autoRotate:a,maxWidth:o,...s}=e,l=np(this.shapeMap.key,n,a,i,r),h=this.shapeMap.key.getLocalBounds(),c=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=tD(t[0],t[1])*n;return eR(i,e)}([h.min,h.max],o);return Object.assign({wordWrapWidth:c},l,s)}getBadgeStyle(t){if(!1===t.badge||!t.badgeText)return!1;let{offsetX:e,offsetY:n,placement:i,...r}=eo(t,"badge");return Object.assign(r,function(t,e,n,i,r){var a,o;let s=(null===(a=t.badge)||void 0===a?void 0:a.getGeometryBounds().halfExtents[0])*2||0,l=(null===(o=t.label)||void 0===o?void 0:o.getGeometryBounds().halfExtents[0])*2||0;return np(t.key,n,!0,(l?(l/2+s/2)*("suffix"===e?1:-1):0)+i,r)}(this.shapeMap,i,t.labelPlacement,e,n))}drawArrow(t,e){let n="start"===e,i=t["start"===e?"startArrow":"endArrow"],r=this.shapeMap.key;if(i){let e=this.getArrowStyle(t,n),[i,a,o]=n?["markerStart","markerStartOffset","startArrowOffset"]:["markerEnd","markerEndOffset","endArrowOffset"],s=r.parsedStyle[i];if(s)s.attr(e);else{let t=e.src?I.Ee:I.y$,n=new t({style:e});r.style[i]=n}r.style[a]=t[o]||e.width/2+ +e.lineWidth}else{var a;let t=n?"markerStart":"markerEnd";null===(a=r.style[t])||void 0===a||a.destroy(),r.style[t]=null}}getArrowStyle(t,e){var n;let i=this.getShape("key").attributes,{size:r,type:a,...o}=eo(this.getGraphicStyle(t),e?"startArrow":"endArrow"),[s,l]=eh((n=i.lineWidth,r||(n<4?10:4===n?12:2.5*n))),h=(0,td.Z)(a)?a:N[a]||nC,c=h(s,l);return Object.assign((0,e8.Z)(i,["stroke","strokeOpacity","fillOpacity"]),{width:s,height:l},{...c&&{d:c,fill:"simple"===a?"":i.stroke}},o)}drawLabelShape(t,e){this.upsert("label",e_,this.getLabelStyle(t),e)}drawHaloShape(t,e){this.upsert("halo",I.y$,this.getHaloStyle(t),e)}drawBadgeShape(t,e){this.upsert("badge",eF,this.getBadgeStyle(t),e)}drawSourceArrow(t){this.drawArrow(t,"start")}drawTargetArrow(t){this.drawArrow(t,"end")}drawKeyShape(t,e){let n=this.upsert("key",I.y$,this.getKeyStyle(t),e);return n}render(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.parsedAttributes,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this.drawKeyShape(t,e),this.getShape("key")&&(this.drawSourceArrow(t),this.drawTargetArrow(t),this.drawLabelShape(t,e),this.drawHaloShape(t,e),this.drawBadgeShape(t,e))}onframe(){this.drawKeyShape(this.parsedAttributes,this),this.drawSourceArrow(this.parsedAttributes),this.drawTargetArrow(this.parsedAttributes),this.drawHaloShape(this.parsedAttributes,this),this.drawLabelShape(this.parsedAttributes,this),this.drawBadgeShape(this.parsedAttributes,this)}animate(t,e){let n=super.animate(t,e);return n?new Proxy(n,{set:(t,e,n)=>("currentTime"===e&&Promise.resolve().then(()=>this.onframe()),Reflect.set(t,e,n))}):n}constructor(t){super(eu({style:nk.defaultStyleProps},t)),this.type="edge"}}nk.defaultStyleProps={badge:!0,badgeOffsetX:0,badgeOffsetY:0,badgePlacement:"suffix",isBillboard:!0,label:!0,labelAutoRotate:!0,labelIsBillboard:!0,labelMaxWidth:"80%",labelOffsetX:4,labelOffsetY:0,labelPlacement:"center",labelTextBaseline:"middle",labelWordWrap:!1,halo:!1,haloDroppable:!1,haloLineDash:0,haloLineWidth:12,haloPointerEvents:"none",haloStrokeOpacity:.25,haloZIndex:-1,loop:!0,startArrow:!1,startArrowLineDash:0,startArrowLineJoin:"round",startArrowLineWidth:1,startArrowTransformOrigin:"center",startArrowType:"vee",endArrow:!1,endArrowLineDash:0,endArrowLineJoin:"round",endArrowLineWidth:1,endArrowTransformOrigin:"center",endArrowType:"vee",loopPlacement:"top",loopClockwise:!0},nT([ev((t,e)=>t.getLabelStyle(e))],nk.prototype,"drawLabelShape",null),nT([ev((t,e)=>t.getHaloStyle(e))],nk.prototype,"drawHaloShape",null),nT([ev((t,e)=>t.getBadgeStyle(e))],nk.prototype,"drawBadgeShape",null),nT([ev((t,e)=>t.getArrowStyle(e,"start"))],nk.prototype,"drawSourceArrow",null),nT([ev((t,e)=>t.getArrowStyle(e,"end"))],nk.prototype,"drawTargetArrow",null),nT([ev((t,e)=>t.getKeyStyle(e))],nk.prototype,"drawKeyShape",null);class nP extends nk{getKeyPath(t){let[e,n]=this.getEndpoints(t),{controlPoints:i,curvePosition:r,curveOffset:a}=t,o=this.getControlPoints(e,n,(0,eJ.Z)(r)?[r,1-r]:r,(0,eJ.Z)(a)?[a,-a]:a,i);return ny(e,n,o)}getControlPoints(t,e,n,i,r){return(null==r?void 0:r.length)===2?r:[ng(t,e,n[0],i[0]),ng(t,e,n[1],i[1])]}constructor(t){super(eu({style:nP.defaultStyleProps},t))}}nP.defaultStyleProps={curvePosition:.5,curveOffset:20};class nL extends nP{getControlPoints(t,e,n,i){let r=e[0]-t[0];return[[t[0]+r*n[0]+i[0],t[1]],[e[0]-r*n[1]+i[1],e[1]]]}constructor(t){super(eu({style:nL.defaultStyleProps},t))}}nL.defaultStyleProps={curvePosition:[.5,.5],curveOffset:[0,0]};class nD extends nP{getControlPoints(t,e,n,i){let r=e[1]-t[1];return[[t[0],t[1]+r*n[0]+i[0]],[e[0],e[1]-r*n[1]+i[1]]]}constructor(t){super(eu({style:nD.defaultStyleProps},t))}}nD.defaultStyleProps={curvePosition:[.5,.5],curveOffset:[0,0]};class nN extends nk{getKeyPath(t){let[e,n]=this.getEndpoints(t);return[["M",e[0],e[1]],["L",n[0],n[1]]]}constructor(t){super(eu({style:nN.defaultStyleProps},t))}}nN.defaultStyleProps={};let nI={enableObstacleAvoidance:!1,offset:10,maxAllowedDirectionChange:Math.PI/2,maximumLoops:3e3,gridSize:5,startDirections:["top","right","bottom","left"],endDirections:["top","right","bottom","left"],directionMap:{right:{stepX:1,stepY:0},left:{stepX:-1,stepY:0},bottom:{stepX:0,stepY:1},top:{stepX:0,stepY:-1}},penalties:{0:0,90:0},distFunc:tN},nB=t=>"".concat(Math.round(t[0]),"|||").concat(Math.round(t[1]));function n_(t,e){let n=t=>Math.round(t/e);return(0,eJ.Z)(t)?n(t):t.map(n)}function nF(t,e){let n=e[0]-t[0],i=e[1]-t[1];return n||i?Math.atan2(i,n):0}function nj(t,e,n,i){let r=nF(t,e),a=n[nB(t)],o=nF(a||i,t);return function(t,e){let n=Math.abs(t-e);return n>Math.PI?2*Math.PI-n:n}(o,r)}let nZ=(t,e)=>{let{offset:n,gridSize:i}=e,r={};return t.forEach(t=>{if(!t||t.destroyed||!t.isVisible())return;let e=tE(t.getRenderBounds(),n);for(let t=n_(e.min[0],i);t<=n_(e.max[0],i);t+=1)for(let n=n_(e.min[1],i);n<=n_(e.max[1],i);n+=1)r["".concat(t,"|||").concat(n)]=!0}),r};function nz(t,e,n){return Math.min(...e.map(e=>n(t,e)))}let nG=(t,e,n,i)=>{if(!e)return[t];let{directionMap:r,offset:a}=i,o=tE(e.getRenderBounds(),a),s=Object.keys(r).reduce((e,i)=>{if(n.includes(i)){let n=r[i],[a,s]=tb(o),l=[t[0]+n.stepX*a,t[1]+n.stepY*s],h=function(t){let{min:[e,n],max:[i,r]}=t,a=[e,r],o=[i,r],s=[i,n],l=[e,n];return[[a,o],[o,s],[s,l],[l,a]]}(o);for(let n=0;nn_(t,i.gridSize))},nH=(t,e,n,i,r,a,o)=>{let s=[],l=[a[0]===i[0]?i[0]:t[0]*o,a[1]===i[1]?i[1]:t[1]*o];s.unshift(l);let h=t,c=e[nB(h)];for(;c;){let t=c,i=h,r=nj(t,i,e,n);r&&(l=[t[0]===i[0]?l[0]:t[0]*o,t[1]===i[1]?l[1]:t[1]*o],s.unshift(l)),c=e[nB(t)],h=t}let u=r.map(t=>[t[0]*o,t[1]*o]),d=function(t,e,n){let i=t[0],r=n(t[0],e);for(let a=0;a1;){let e=Math.floor((n+i)/2);if(this.arr[e].value>t.value)i=e;else if(this.arr[e].value=0;e--)this.map[this.arr[e].id]?t=this.arr[e].id:this.arr.splice(e,1);return t}_findFirstId(){for(;this.arr.length;){let t=this.arr.shift();if(this.map[t.id])return t.id}}minId(t){return t?this._clearAndGetMinId():this._findFirstId()}constructor(){this.arr=[],this.map={},this.arr=[],this.map={}}}class nV extends nk{getControlPoints(t){let{router:e}=t,{sourceNode:n,targetNode:i}=this,[r,a]=this.getEndpoints(t,!1),o=[];if(e){if("shortest-path"===e.type){let s=this.context.element.getNodes();(o=function(t,e,n,i){let r;let a=tF(t.getCenter()),o=tF(e.getCenter()),s=Object.assign(nI,i),{gridSize:l}=s,h=s.enableObstacleAvoidance?n:[t,e],c=nZ(h,s),u=n_(a,l),d=n_(o,l),p=nG(a,t,s.startDirections,s),f=nG(o,e,s.endDirections,s);p.forEach(t=>delete c[nB(t)]),f.forEach(t=>delete c[nB(t)]);let g={},y={},m={},v={},b={},x=new nW;for(let t=0;tnB(t)),w=s.maximumLoops,C=1/0;for(let[t,e]of Object.entries(g))b[t]<=C&&(C=b[t],r=e);for(;Object.keys(g).length>0&&w>0;){let t=x.minId(!1);if(t)r=g[t];else break;let e=nB(r);if(E.includes(e))return nH(r,m,u,o,p,d,l);for(let t of(delete g[e],x.remove(e),y[e]=!0,Object.values(s.directionMap))){let n=tM(r,[t.stepX,t.stepY]),i=nB(n);if(y[i])continue;let a=nj(r,n,m,u);if(a>s.maxAllowedDirectionChange||c[i])continue;g[i]||(g[i]=n);let o=s.penalties[a],h=s.distFunc(r,n)+(isNaN(o)?l:o),d=v[e]+h,p=v[i];p&&d>=p||(m[i]=r,v[i]=d,b[i]=d+nz(n,f,s.distFunc),x.add({id:i,value:b[i]}))}w-=1}return[]}(n,i,s,e)).length||(o=nr(r,a,n,i,t.controlPoints,{padding:e.offset}))}else"orth"===e.type&&(o=nr(r,a,n,i,t.controlPoints,e))}else o=t.controlPoints;return o}getPoints(t){let e=this.getControlPoints(t),[n,i]=this.getEndpoints(t,!0,e);return[n,...e,i]}getKeyPath(t){let e=this.getPoints(t);return nm(e,t.radius)}getLoopPath(t){let{sourcePort:e,targetPort:n,radius:i}=t,r=this.sourceNode,a=tx(r),o=Math.max(tm(a),tv(a))/4,{placement:s,clockwise:l,dist:h=o}=eo(this.getGraphicStyle(t),"loop");return function(t,e,n,i,r,a,o){let s=nQ(t),l=s[a||o],h=s[o||a],[c,u]=nb(t,n,i,l,h),d=function(t,e,n,i){let r=[],a=tx(t);if((0,F.Z)(e,n)){let t=tR(a,e);switch(t){case"left":r.push([e[0]-i,e[1]]),r.push([e[0]-i,e[1]+i]),r.push([e[0],e[1]+i]);break;case"right":r.push([e[0]+i,e[1]]),r.push([e[0]+i,e[1]+i]),r.push([e[0],e[1]+i]);break;case"top":r.push([e[0],e[1]-i]),r.push([e[0]+i,e[1]-i]),r.push([e[0]+i,e[1]]);break;case"bottom":r.push([e[0],e[1]+i]),r.push([e[0]+i,e[1]+i]),r.push([e[0]+i,e[1]])}}else{let t=tR(a,e),o=tR(a,n);if(t===o){let a,o;switch(t){case"left":a=Math.min(e[0],n[0])-i,r.push([a,e[1]]),r.push([a,n[1]]);break;case"right":a=Math.max(e[0],n[0])+i,r.push([a,e[1]]),r.push([a,n[1]]);break;case"top":o=Math.min(e[1],n[1])-i,r.push([e[0],o]),r.push([n[0],o]);break;case"bottom":o=Math.max(e[1],n[1])+i,r.push([e[0],o]),r.push([n[0],o])}}else{let s=(t,e)=>({left:[e[0]-i,e[1]],right:[e[0]+i,e[1]],top:[e[0],e[1]-i],bottom:[e[0],e[1]+i]})[t],l=s(t,e),h=s(o,n),c=nd(l,h,a);r.push(l,c,h)}}return r}(t,c,u,r);return l&&(c=n3(l,d[0])),h&&(u=n3(h,d[d.length-1])),nm([c,...d,u],e)}(r,i,s,l,h,e,n)}constructor(t){super(eu({style:nV.defaultStyleProps},t))}}nV.defaultStyleProps={radius:0,controlPoints:[],router:!1};class nU extends nk{getKeyPath(t){let{curvePosition:e,curveOffset:n}=t,[i,r]=this.getEndpoints(t),a=t.controlPoint||ng(i,r,e,n);return[["M",i[0],i[1]],["Q",a[0],a[1],r[0],r[1]]]}constructor(t){super(eu({style:nU.defaultStyleProps},t))}}function nY(t){return t instanceof eX&&"node"===t.type}function nK(t){return t instanceof nk}function n$(t){return t instanceof ne}nU.defaultStyleProps={curvePosition:.5,curveOffset:30};let nX={top:[.5,0],right:[1,.5],bottom:[.5,1],left:[0,.5],default:[.5,.5]};function nq(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nX,i=!(arguments.length>3)||void 0===arguments[3]||arguments[3],r=[.5,.5],a=(0,t0.Z)(e)?(0,en.Z)(n,e.toLocaleLowerCase(),r):e;if(!i&&(0,t0.Z)(e))return a;let[o,s]=a||r;return[t.min[0]+tm(t)*o,t.min[1]+tv(t)*s]}function nQ(t){if(!t)return{};let e=t.getPorts(),n=t.attributes.ports||[];return n.forEach((n,i)=>{let{key:r,placement:a}=n;if(nJ(n)){var o;e[o=r||i]||(e[o]=tW(t.getShape("key").getBounds(),a))}}),e}function nJ(t){let{r:e}=t;return!e||0===Number(e)}function n0(t){return tf(t)?t:t.getPosition()}function n1(t,e,n,i){let r,a;let o=nQ(t);if(n)return o[n];let s=Object.values(o);if(0===s.length)return;let l=s.map(t=>n0(t)),h=function(t,e){let n=nQ(t);if(e)return[n0(n[e])];let i=Object.values(n);return i.length>0?i.map(t=>n0(t)):[t.getCenter()]}(e,i),[c]=(r=1/0,a=[l[0],h[0]],l.forEach(t=>{h.forEach(e=>{let n=tD(t,e);nn0(t)===c)}function n2(t,e){return n$(t)||nY(t)?n6(t,e):n3(t,e)}function n3(t,e){if(!t||!e)return[0,0,0];if(tf(t))return t;if(t.attributes.linkToCenter)return t.getPosition();let n=tf(e)?e:nY(e)?e.getCenter():e.getPosition();return tX(n,t.getBounds())}function n6(t,e){if(!t||!e)return[0,0,0];let n=tf(e)?e:nY(e)?e.getCenter():e.getPosition();return t.getIntersectPoint(n)||t.getCenter()}function n4(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bottom",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=e.split("-"),[o,s]=tW(t,e),l=a.includes("left")?"right":a.includes("right")?"left":"center",h=a.includes("top")?"bottom":a.includes("bottom")?"top":"middle";return r&&(h="top"===h?"bottom":"bottom"===h?"top":h),{transform:"translate(".concat(o+n,", ").concat(s+i,")"),textBaseline:h,textAlign:l}}function n8(t,e){"update"in t?t.update(e):t.attr(e)}function n9(t){return(0,en.Z)(t,"__to_be_destroyed__",!1)}class n5 extends tu{update(t){this.unbindEvents(),super.update(t),this.bindEvents()}bindEvents(){let{graph:t}=this.context,{trigger:e}=this.options;t.on("node:".concat(e),this.onCollapseExpand),t.on("combo:".concat(e),this.onCollapseExpand)}unbindEvents(){let{graph:t}=this.context,{trigger:e}=this.options;t.off("node:".concat(e),this.onCollapseExpand),t.off("combo:".concat(e),this.onCollapseExpand)}validate(t){if(this.destroyed)return!1;let{enable:e}=this.options;return(0,td.Z)(e)?e(t):!!e}destroy(){this.unbindEvents(),super.destroy()}constructor(t,e){super(t,Object.assign({},n5.defaultOptions,e)),this.onCollapseExpand=async t=>{if(!this.validate(t))return;let{target:e}=t;if(!(nY(e)||nK(e)||n$(e)))return;let n=e.id,{model:i,graph:r}=this.context,a=i.getElementDataById(n);if(!a)return!1;let{onCollapse:o,onExpand:s,animation:l}=this.options;ee(a)?(await r.expandElement(n,l),null==s||s(n)):(await r.collapseElement(n,l),null==o||o(n))},this.bindEvents()}}n5.defaultOptions={enable:!0,animation:!0,trigger:w.DBLCLICK};var n7={};let it="g6-create-edge-assist-node-id";class ie extends tu{update(t){super.update(t),this.bindEvents()}bindEvents(){let{graph:t}=this.context,{trigger:e}=this.options;this.unbindEvents(),"click"===e?(t.on(O.CLICK,this.handleCreateEdge),t.on(E.CLICK,this.handleCreateEdge),t.on(x.CLICK,this.cancelEdge),t.on(S.CLICK,this.cancelEdge)):(t.on(O.DRAG_START,this.handleCreateEdge),t.on(E.DRAG_START,this.handleCreateEdge),t.on(w.POINTER_UP,this.drop)),t.on(w.POINTER_MOVE,this.updateAssistEdge)}getSelectedNodeIDs(t){return Array.from(new Set(this.context.graph.getElementDataByState("node",this.options.state).map(t=>t.id).concat(t)))}validate(t){if(this.destroyed)return!1;let{enable:e}=this.options;return(0,td.Z)(e)?e(t):!!e}unbindEvents(){let{graph:t}=this.context;t.off(O.CLICK,this.handleCreateEdge),t.off(E.CLICK,this.handleCreateEdge),t.off(x.CLICK,this.cancelEdge),t.off(S.CLICK,this.cancelEdge),t.off(O.DRAG_START,this.handleCreateEdge),t.off(E.DRAG_START,this.handleCreateEdge),t.off(w.POINTER_UP,this.drop),t.off(w.POINTER_MOVE,this.updateAssistEdge)}destroy(){this.unbindEvents(),super.destroy()}constructor(t,e){super(t,Object.assign({},ie.defaultOptions,e)),this.drop=async t=>{let{targetType:e}=t;["combo","node"].includes(e)&&this.source?await this.handleCreateEdge(t):await this.cancelEdge()},this.handleCreateEdge=async t=>{var e;if(!this.validate(t))return;let{graph:n,canvas:i,batch:r,element:a}=this.context,{style:o}=this.options;if(this.source){this.createEdge(t),await this.cancelEdge();return}r.startBatch(),i.setCursor("crosshair"),this.source=this.getSelectedNodeIDs([t.target.id])[0],n.addNodeData([{id:it,style:{visibility:"hidden",ports:[{key:"port-1",placement:[.5,.5]}]}}]),n.addEdgeData([{id:"g6-create-edge-assist-edge-id",source:this.source,target:it,style:{pointerEvents:"none",...o}}]),await (null===(e=a.draw({animation:!1}))||void 0===e?void 0:e.finished)},this.updateAssistEdge=async t=>{var e;if(!this.source)return;let{model:n,element:i}=this.context;n.translateNodeTo(it,[t.canvas.x,t.canvas.y]),await (null===(e=i.draw({animation:!1,silence:!0}))||void 0===e?void 0:e.finished)},this.createEdge=t=>{var e,n,i;let{graph:r}=this.context,{style:a,onFinish:o,onCreate:s}=this.options,l=null===(e=t.target)||void 0===e?void 0:e.id;if(void 0===l||void 0===this.source)return;let h=null===(n=this.getSelectedNodeIDs([t.target.id]))||void 0===n?void 0:n[0],c="".concat(this.source,"-").concat(h,"-").concat((n7[i=i||"g"]?n7[i]+=1:n7[i]=1,i+n7[i])),u=s({id:c,source:this.source,target:h,style:a});r.addEdgeData([u]),o(u)},this.cancelEdge=async()=>{var t;if(!this.source)return;let{graph:e,element:n,batch:i}=this.context;e.removeNodeData([it]),this.source=void 0,await (null===(t=n.draw({animation:!1}))||void 0===t?void 0:t.finished),i.endBatch()},this.bindEvents()}}ie.defaultOptions={animation:!0,enable:!0,style:{},trigger:"drag",onCreate:t=>t,onFinish:()=>{}};var ii=n(68040);class ir extends tu{update(t){this.unbindEvents(),super.update(t),this.bindEvents()}bindEvents(){let{trigger:t}=this.options;if((0,j.Z)(t)){let{up:e=[],down:n=[],left:i=[],right:r=[]}=t;this.shortcut.bind(e,t=>this.onTranslate([0,1],t)),this.shortcut.bind(n,t=>this.onTranslate([0,-1],t)),this.shortcut.bind(i,t=>this.onTranslate([1,0],t)),this.shortcut.bind(r,t=>this.onTranslate([-1,0],t))}else{let{graph:t}=this.context;t.on(w.DRAG_START,this.onDragStart),t.on(w.DRAG,this.onDrag),t.on(w.DRAG_END,this.onDragEnd)}}async onTranslate(t,e){if(!this.validate(e))return;let{sensitivity:n}=this.options;await this.translate(tk(t,-1*n),this.options.animation),this.invokeOnFinish()}async translate(t,e){let[n,i]=t,{direction:r}=this.options;"x"===r?i=0:"y"===r&&(n=0),await this.context.graph.translateBy([n,i],e)}validate(t){if(this.destroyed)return!1;let{enable:e}=this.options;return"function"==typeof e?e(t):!!e}unbindEvents(){this.shortcut.unbindAll();let{graph:t}=this.context;t.off(w.DRAG_START,this.onDragStart),t.off(w.DRAG,this.onDrag),t.off(w.DRAG_END,this.onDragEnd)}destroy(){this.shortcut.destroy(),this.unbindEvents(),this.context.canvas.setCursor(this.defaultCursor),super.destroy()}constructor(t,e){super(t,Object.assign({},ir.defaultOptions,e)),this.isDragging=!1,this.onDragStart=t=>{this.validate(t)&&(this.isDragging=!0,this.context.canvas.setCursor("grabbing"))},this.onDrag=t=>{if(!this.isDragging)return;let{x:e,y:n}=t.movement;(e|n)!=0&&this.translate([e,n],!1)},this.onDragEnd=()=>{var t,e;this.isDragging=!1,this.context.canvas.setCursor(this.defaultCursor),null===(e=(t=this.options).onFinish)||void 0===e||e.call(t)},this.invokeOnFinish=(0,ii.Z)(()=>{var t,e;null===(e=(t=this.options).onFinish)||void 0===e||e.call(t)},300),this.shortcut=new t2(t.graph),this.bindEvents(),this.defaultCursor=this.context.canvas.getConfig().cursor||"default"}}ir.defaultOptions={enable:t=>!("targetType"in t)||"canvas"===t.targetType,sensitivity:10,direction:"both"};class ia extends tu{get animation(){return!!this.options.shadow&&this.options.animation}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}bindEvents(){let{graph:t}=this.context;this.enableElements.forEach(e=>{t.on("".concat(e,":").concat(w.DRAG_START),this.onDragStart),t.on("".concat(e,":").concat(w.DRAG),this.onDrag),t.on("".concat(e,":").concat(w.DRAG_END),this.onDragEnd),t.on("".concat(e,":").concat(w.POINTER_ENTER),this.setCursor),t.on("".concat(e,":").concat(w.POINTER_LEAVE),this.setCursor)}),["link"].includes(this.options.dropEffect)&&(t.on(E.DROP,this.onDrop),t.on(x.DROP,this.onDrop))}getSelectedNodeIDs(t){return Array.from(new Set(this.context.graph.getElementDataByState("node",this.options.state).map(t=>t.id).concat(t)))}getDelta(t){let e=this.context.graph.getZoom();return tP([t.dx,t.dy],e)}onDragStart(t){var e;if(this.enable=this.validate(t),!this.enable)return;let{batch:n,canvas:i}=this.context;i.setCursor((null===(e=this.options.cursor)||void 0===e?void 0:e.grabbing)||"grabbing"),this.isDragging=!0,n.startBatch(),this.target=this.getSelectedNodeIDs([t.target.id]),this.hideEdge(),this.context.graph.frontElement(this.target),this.options.shadow&&this.createShadow(this.target)}onDrag(t){if(!this.enable)return;let e=this.getDelta(t);this.options.shadow?this.moveShadow(e):this.moveElement(this.target,e)}onDragEnd(){var t,e,n;if(this.enable=!1,this.options.shadow){if(!this.shadow)return;this.shadow.style.visibility="hidden";let{x:t=0,y:e=0}=this.shadow.attributes,[n,i]=tT([+t,+e],this.shadowOrigin);this.moveElement(this.target,[n,i])}this.showEdges(),null===(e=(t=this.options).onFinish)||void 0===e||e.call(t,this.target);let{batch:i,canvas:r}=this.context;i.endBatch(),r.setCursor((null===(n=this.options.cursor)||void 0===n?void 0:n.grab)||"grab"),this.isDragging=!1,this.target=[]}validate(t){if(this.destroyed)return!1;let{enable:e}=this.options;return(0,td.Z)(e)?e(t):!!e}async moveElement(t,e){let{graph:n,model:i}=this.context,{dropEffect:r}=this.options;"move"===r&&t.forEach(t=>i.refreshComboData(t)),n.translateElementBy(Object.fromEntries(t.map(t=>[t,e])),!1)}moveShadow(t){if(!this.shadow)return;let{x:e=0,y:n=0}=this.shadow.attributes,[i,r]=t;this.shadow.attr({x:+e+i,y:+n+r})}createShadow(t){let e=eo(this.options,"shadow"),n=tw(t.map(t=>this.context.element.getElement(t).getBounds())),[i,r]=n.min;this.shadowOrigin=[i,r];let[a,o]=tb(n),s={width:a,height:o,x:i,y:r};this.shadow?this.shadow.attr({...e,...s,visibility:"visible"}):(this.shadow=new I.UL({style:{$layer:"transient",...e,...s,pointerEvents:"none"}}),this.context.canvas.appendChild(this.shadow))}showEdges(){this.options.shadow||0===this.hiddenEdges.length||(this.context.graph.showElement(this.hiddenEdges),this.hiddenEdges=[])}hideEdge(){let{hideEdge:t,shadow:e}=this.options;if("none"===t||e)return;let{graph:n}=this.context;"all"===t?this.hiddenEdges=n.getEdgeData().map(tt):this.hiddenEdges=Array.from(new Set(this.target.map(e=>n.getRelatedEdgesData(e,t).map(tt)).flat())),n.hideElement(this.hiddenEdges)}unbindEvents(){let{graph:t}=this.context;this.enableElements.forEach(e=>{t.off("".concat(e,":").concat(w.DRAG_START),this.onDragStart),t.off("".concat(e,":").concat(w.DRAG),this.onDrag),t.off("".concat(e,":").concat(w.DRAG_END),this.onDragEnd),t.off("".concat(e,":").concat(w.POINTER_ENTER),this.setCursor),t.off("".concat(e,":").concat(w.POINTER_LEAVE),this.setCursor)}),t.off("combo:".concat(w.DROP),this.onDrop),t.off("canvas:".concat(w.DROP),this.onDrop)}destroy(){var t;this.unbindEvents(),null===(t=this.shadow)||void 0===t||t.destroy(),super.destroy()}constructor(t,e){super(t,Object.assign({},ia.defaultOptions,e)),this.enable=!1,this.enableElements=["node","combo"],this.target=[],this.shadowOrigin=[0,0],this.hiddenEdges=[],this.isDragging=!1,this.onDrop=async t=>{var e;if("link"!==this.options.dropEffect)return;let{model:n,element:i}=this.context,r=t.target.id;this.target.forEach(t=>{let e=n.getParentData(t,G);e&&tt(e)===r&&n.refreshComboData(r),n.setParent(t,r,G)}),await (null===(e=null==i?void 0:i.draw({animation:!0}))||void 0===e?void 0:e.finished)},this.setCursor=t=>{if(this.isDragging)return;let{type:e}=t,{canvas:n}=this.context,{cursor:i}=this.options;e===w.POINTER_ENTER?n.setCursor((null==i?void 0:i.grab)||"grab"):n.setCursor((null==i?void 0:i.default)||"default")},this.onDragStart=this.onDragStart.bind(this),this.onDrag=this.onDrag.bind(this),this.onDragEnd=this.onDragEnd.bind(this),this.onDrop=this.onDrop.bind(this),this.bindEvents()}}ia.defaultOptions={animation:!0,enable:t=>["node","combo"].includes(t.targetType),dropEffect:"move",state:"selected",hideEdge:"none",shadow:!1,shadowZIndex:100,shadowFill:"#F3F9FF",shadowFillOpacity:.5,shadowStroke:"#1890FF",shadowStrokeOpacity:.9,shadowLineDash:[5,5],cursor:{default:"default",grab:"grab",grabbing:"grabbing"}};var io=n(72137);class is{constructor(t,e){this.context=t,this.options=e||{}}}function il(t){let{nodes:e,edges:n}=t,i={nodes:[],edges:[],combos:[]};return e.forEach(t=>{let e=t.data._isCombo?i.combos:i.nodes,{x:n,y:r,z:a=0}=t.data;null==e||e.push({id:t.id,style:{x:n,y:r,z:a}})}),n.forEach(t=>{let{id:e,source:n,target:r,data:{points:a=[],controlPoints:o=a.slice(1,a.length-1)}}=t;i.edges.push({id:e,source:n,target:r,style:{...(null==o?void 0:o.length)?{controlPoints:o.map(tV)}:{}}})}),i}function ih(t,e){for(var n=arguments.length,i=Array(n>2?n-2:0),r=2;r"scale"in t.data,this.fixElementSize=async t=>{if(!this.isZoomEvent(t)||!this.validate(t))return;let{graph:e,element:n}=this.context,{state:i}=this.options,r=i?[...e.getElementDataByState("node",i),...e.getElementDataByState("edge",i),...e.getElementDataByState("combo",i)]:Object.values(e.getData()).flat();if(!r.length)return;let a=t.data.scale||e.getZoom();r.forEach(t=>{let i=tt(t),r=null==n?void 0:n.getElement(i),o=e.getElementType(i),s=this.options[o];if(!s){this.elementCache.set(i,r),"edge"===o&&(r.style.transformOrigin="center"),r.setLocalScale(1/a);return}let l=function(t){let e=[],n=t=>{(null==t?void 0:t.children.length)&&t.children.forEach(t=>{e.push(t),n(t)})};return n(t),e}(r),h=Array.isArray(s)?s:[s];h.forEach(t=>{let{shape:e,fields:n}=t,i=e(l);n.forEach(t=>{ey(i,t)||ef(i,t);let e=eg(i,t);(0,eJ.Z)(e)&&(i.style[t]=e/a)})})})},this.resetTransform=async()=>{this.elementCache&&(this.elementCache.forEach(t=>t.setLocalScale(1)),this.elementCache.clear())},this.bindEvents()}}iu.defaultOptions={enable:t=>t.data.scale<1,state:"selected",edge:[{shape:t=>t.find(t=>"key"===t.className),fields:["lineWidth"]},{shape:t=>t.find(t=>{var e;return(null===(e=t.parentElement)||void 0===e?void 0:e.className)==="label"&&"text"===t.className}),fields:["fontSize","lineHeight"]}]};class id extends tu{bindEvents(){let{graph:t}=this.context;this.unbindEvents(),t4.forEach(e=>{t.on("".concat(e,":").concat(w.CLICK),this.focus)})}validate(t){if(this.destroyed)return!1;let{enable:e}=this.options;return(0,td.Z)(e)?e(t):!!e}unbindEvents(){let{graph:t}=this.context;t4.forEach(e=>{t.off("".concat(e,":").concat(w.CLICK),this.focus)})}destroy(){this.unbindEvents(),super.destroy()}constructor(t,e){super(t,Object.assign({},id.defaultOptions,e)),this.focus=async t=>{if(!this.validate(t))return;let{graph:e}=this.context;await e.focusElement(t.target.id,this.options.animation)},this.bindEvents()}}id.defaultOptions={animation:{easing:"ease-in",duration:500},enable:!0};class ip extends tu{bindEvents(){let{graph:t}=this.context;this.unbindEvents(),t4.forEach(e=>{t.on("".concat(e,":").concat(w.POINTER_OVER),this.hoverElement),t.on("".concat(e,":").concat(w.POINTER_OUT),this.hoverElement)});let e=this.context.canvas.document;e.addEventListener("".concat(w.DRAG_START),this.toggleFrozen),e.addEventListener("".concat(w.DRAG_END),this.toggleFrozen)}validate(t){if(this.destroyed||this.isFrozen||this.context.graph.isCollapsingExpanding)return!1;let{enable:e}=this.options;return(0,td.Z)(e)?e(t):!!e}unbindEvents(){let{graph:t}=this.context;t4.forEach(e=>{t.off("".concat(e,":").concat(w.POINTER_OVER),this.hoverElement),t.off("".concat(e,":").concat(w.POINTER_OUT),this.hoverElement)});let e=this.context.canvas.document;e.removeEventListener("".concat(w.DRAG_START),this.toggleFrozen),e.removeEventListener("".concat(w.DRAG_END),this.toggleFrozen)}destroy(){this.unbindEvents(),super.destroy()}constructor(t,e){super(t,Object.assign({},ip.defaultOptions,e)),this.isFrozen=!1,this.toggleFrozen=t=>{this.isFrozen="dragstart"===t.type},this.hoverElement=t=>{if(!this.validate(t))return;let e=t.type===w.POINTER_OVER;this.updateElementsState(t,e);let{onHover:n,onHoverEnd:i}=this.options;e?null==n||n(t):null==i||i(t)},this.updateElementsState=(t,e)=>{if(!this.options.state&&!this.options.inactiveState)return;let{graph:n}=this.context,{state:i,degree:r,animation:a,inactiveState:o}=this.options,{targetType:s,target:l}=t,h=r?t9(n,s,l.id,r):[l.id],c={};if(i&&Object.assign(c,this.getElementsState(h,i,e)),o){let t=te(n.getData(),!0).filter(t=>!h.includes(t));Object.assign(c,this.getElementsState(t,o,e))}n.setElementState(c,a)},this.getElementsState=(t,e,n)=>{let{graph:i}=this.context,r={};return t.forEach(t=>{let a=i.getElementState(t),o=n?[...a,e]:a.filter(t=>t!==e);r[t]=o}),r},this.bindEvents()}}ip.defaultOptions={animation:!1,enable:!0,degree:0,state:"active",inactiveState:void 0};class ig extends tu{bindEvents(){let{graph:t}=this.context;t.on(R.BEFORE_TRANSFORM,this.hideShapes),t.on(R.AFTER_TRANSFORM,this.showShapes)}unbindEvents(){let{graph:t}=this.context;t.off(R.BEFORE_TRANSFORM,this.hideShapes),t.off(R.AFTER_TRANSFORM,this.showShapes)}validate(t){if(this.destroyed)return!1;let{enable:e}=this.options;return(0,td.Z)(e)?e(t):!!e}destroy(){this.unbindEvents(),super.destroy()}constructor(t,e){super(t,Object.assign({},ig.defaultOptions,e)),this.isVisible=!0,this.setElementsVisibility=(t,e,n)=>{t.forEach(t=>{eM(t,e,!1,t=>!t.className||!(null==n?void 0:n.includes(t.className)))})},this.hideShapes=t=>{if(!this.validate(t)||!this.isVisible)return;let{element:e}=this.context,{shapes:n={}}=this.options;this.setElementsVisibility(e.getNodes(),"hidden",n.node),this.setElementsVisibility(e.getEdges(),"hidden",n.edge),this.setElementsVisibility(e.getCombos(),"hidden",n.combo),this.isVisible=!1},this.showShapes=(0,ii.Z)(t=>{if(!this.validate(t)||this.isVisible)return;let{element:e}=this.context;this.setElementsVisibility(e.getNodes(),"visible"),this.setElementsVisibility(e.getEdges(),"visible"),this.setElementsVisibility(e.getCombos(),"visible"),this.isVisible=!0},this.options.debounce),this.bindEvents()}}ig.defaultOptions={enable:!0,debounce:200,shapes:{node:["key"]}};class iy extends tu{update(t){super.update(t),this.bindEvents()}bindEvents(){var t,e;let{trigger:n}=this.options;if(this.shortcut.unbindAll(),(0,j.Z)(n)){null===(t=this.graphDom)||void 0===t||t.removeEventListener(w.WHEEL,this.onWheel);let{up:e=[],down:i=[],left:r=[],right:a=[]}=n;this.shortcut.bind(e,t=>this.scroll([0,-10],t)),this.shortcut.bind(i,t=>this.scroll([0,10],t)),this.shortcut.bind(r,t=>this.scroll([-10,0],t)),this.shortcut.bind(a,t=>this.scroll([10,0],t))}else null===(e=this.graphDom)||void 0===e||e.addEventListener(w.WHEEL,this.onWheel,{passive:!1})}get graphDom(){return this.context.graph.getCanvas().getContextService().getDomElement()}formatDisplacement(t){let[e,n]=t,{direction:i,sensitivity:r}=this.options;return e*=r,n*=r,"x"===i?n=0:"y"===i&&(e=0),[e,n]}async scroll(t,e){if(!this.validate(e))return;let{onFinish:n}=this.options,i=this.context.graph,r=this.formatDisplacement(t);await i.translateBy(r,!1),null==n||n()}validate(t){if(this.destroyed)return!1;let{enable:e}=this.options;return(0,td.Z)(e)?e(t):!!e}destroy(){var t;this.shortcut.destroy(),null===(t=this.graphDom)||void 0===t||t.removeEventListener(w.WHEEL,this.onWheel),super.destroy()}constructor(t,e){super(t,Object.assign({},iy.defaultOptions,e)),this.onWheel=async t=>{this.options.preventDefault&&t.preventDefault();let e=t.deltaX,n=t.deltaY;await this.scroll([-e,-n],t)},this.shortcut=new t2(t.graph),this.bindEvents()}}iy.defaultOptions={enable:!0,sensitivity:1,preventDefault:!0};var im=n(81957);class iv extends tu{update(t){super.update(t),this.bindEvents()}bindEvents(){let{trigger:t}=this.options;if(this.shortcut.unbindAll(),Array.isArray(t)){var e;null===(e=this.context.canvas.getContainer())||void 0===e||e.addEventListener(w.WHEEL,this.preventDefault),this.shortcut.bind([...t,w.WHEEL],t=>{let{deltaX:e,deltaY:n}=t;this.zoom(-(null!=n?n:e),t,!1)})}if("object"==typeof t){let{zoomIn:e=[],zoomOut:n=[],reset:i=[]}=t;this.shortcut.bind(e,t=>this.zoom(10,t,this.options.animation)),this.shortcut.bind(n,t=>this.zoom(-10,t,this.options.animation)),this.shortcut.bind(i,this.onReset)}}validate(t){if(this.destroyed)return!1;let{enable:e}=this.options;return(0,td.Z)(e)?e(t):!!e}destroy(){var t;this.shortcut.destroy(),null===(t=this.context.canvas.getContainer())||void 0===t||t.removeEventListener(w.WHEEL,this.preventDefault),super.destroy()}constructor(t,e){super(t,Object.assign({},iv.defaultOptions,e)),this.zoom=async(t,e,n)=>{let i;if(!this.validate(e))return;let{graph:r}=this.context;"viewport"in e&&(i=tV(e.viewport));let{sensitivity:a,onFinish:o}=this.options,s=1+(0,im.Z)(t,-50,50)*a/100,l=r.getZoom();await r.zoomTo(l*s,n,i),null==o||o()},this.onReset=async()=>{await this.context.graph.zoomTo(1,this.options.animation)},this.preventDefault=t=>{this.options.preventDefault&&t.preventDefault()},this.shortcut=new t2(t.graph),this.bindEvents()}}iv.defaultOptions={animation:{duration:200},enable:!0,sensitivity:1,trigger:[],preventDefault:!0};var ib=n(81746),ix=n(28104),iE=n(63795),iw=n(39233),iC=n(5192),iS=n(63330),iR=n(51712),iA=n(67753),iO=n(12368),iM=n(89469),iT=n(41733),ik=n(64912),iP=n(29257),iL=n(26629),iD=n(69959);let iN=t=>t?parseInt(t):0;function iI(t){let e=640,n=480,[i,r]=function(t){let e=getComputedStyle(t),n=t.clientWidth||iN(e.width),i=t.clientHeight||iN(e.height),r=iN(e.paddingLeft)+iN(e.paddingRight),a=iN(e.paddingTop)+iN(e.paddingBottom);return[n-r,i-a]}(t);return e=i||e,n=r||n,[Math.max((0,eJ.Z)(e)?e:1,1),Math.max((0,eJ.Z)(n)?n:1,1)]}function iB(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=document.createElement("div");return n.setAttribute("class","g6-".concat(t)),n.style.position="absolute",n.style.display="block",e&&(n.style.inset="0px",n.style.height="100%",n.style.width="100%",n.style.overflow="hidden",n.style.pointerEvents="none"),n}function i_(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"div",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:document.body,a=document.getElementById(t);a&&a.remove();let o=document.createElement(e);return o.innerHTML=i,o.id=t,Object.assign(o.style,n),r.appendChild(o),o}class iF extends tc{}class ij extends iF{async update(t){super.update(t),Object.assign(this.$element.style,(0,iD.Z)(this.options,["key","type"]))}destroy(){super.destroy(),this.$element.remove()}constructor(t,e){super(t,Object.assign({},ij.defaultOptions,e)),this.$element=iB("background");let n=this.context.canvas.getContainer();n.prepend(this.$element),this.update(e)}}function iZ(t,e,n,i,r,a){let o=n-t,s=i-e,l=r-t,h=a-e,c=l*o+h*s,u=0;u=c<=0?0:(c=(l=o-l)*o+(h=s-h)*s)<=0?0:c*c/(o*o+s*s);let d=l*l+h*h-u;return d<0?0:d}function iz(t,e,n,i){return(t-n)*(t-n)+(e-i)*(e-i)}function iG(t){let e=Math.min(t.x1,t.x2),n=Math.max(t.x1,t.x2),i=Math.min(t.y1,t.y2),r=Math.max(t.y1,t.y2);return{x:e,y:i,x2:n,y2:r,width:n-e,height:r-i}}ij.defaultOptions={transition:"background 0.5s",backgroundSize:"cover"};class iH{constructor(t,e,n,i){this.x1=t,this.y1=e,this.x2=n,this.y2=i}equals(t){return this.x1===t.x1&&this.y1===t.y1&&this.x2===t.x2&&this.y2===t.y2}draw(t){t.moveTo(this.x1,this.y1),t.lineTo(this.x2,this.y2)}toString(){return`Line(from=(${this.x1},${this.y1}),to=(${this.x2},${this.y2}))`}static from(t){return new iH(t.x1,t.y1,t.x2,t.y2)}cuts(t,e){if(this.y1===this.y2||ethis.y1&&e>=this.y2||t>this.x1&&t>=this.x2)return!1;if(tthis.x2+n)return!1}else if(tthis.x1+n)return!1;if(this.y1this.y2+n)return!1}else if(ethis.y1+n)return!1;return!0}}(g=T||(T={}))[g.POINT=1]="POINT",g[g.PARALLEL=2]="PARALLEL",g[g.COINCIDENT=3]="COINCIDENT",g[g.NONE=4]="NONE";class iW{constructor(t,e=0,n=0){this.state=t,this.x=e,this.y=n}}function iV(t,e){let n=(e.x2-e.x1)*(t.y1-e.y1)-(e.y2-e.y1)*(t.x1-e.x1),i=(t.x2-t.x1)*(t.y1-e.y1)-(t.y2-t.y1)*(t.x1-e.x1),r=(e.y2-e.y1)*(t.x2-t.x1)-(e.x2-e.x1)*(t.y2-t.y1);if(r){let e=n/r,a=i/r;return 0<=e&&e<=1&&0<=a&&a<=1?new iW(T.POINT,t.x1+e*(t.x2-t.x1),t.y1+e*(t.y2-t.y1)):new iW(T.NONE)}return new iW(0===n||0===i?T.COINCIDENT:T.PARALLEL)}function iU(t,e){let n=(e.x2-e.x1)*(t.y1-e.y1)-(e.y2-e.y1)*(t.x1-e.x1),i=(t.x2-t.x1)*(t.y1-e.y1)-(t.y2-t.y1)*(t.x1-e.x1),r=(e.y2-e.y1)*(t.x2-t.x1)-(e.x2-e.x1)*(t.y2-t.y1);if(r){let t=n/r,e=i/r;if(0<=t&&t<=1&&0<=e&&e<=1)return t}return Number.POSITIVE_INFINITY}function iY(t,e,n){let i=new Set;return t.width<=0?(i.add(k.LEFT),i.add(k.RIGHT)):et.x+t.width&&i.add(k.RIGHT),t.height<=0?(i.add(k.TOP),i.add(k.BOTTOM)):nt.y+t.height&&i.add(k.BOTTOM),i}function iK(t,e){let n=e.x1,i=e.y1,r=e.x2,a=e.y2,o=Array.from(iY(t,r,a));if(0===o.length)return!0;let s=iY(t,n,i);for(;0!==s.size;){for(let t of o)if(s.has(t))return!1;if(s.has(k.RIGHT)||s.has(k.LEFT)){let e=t.x;s.has(k.RIGHT)&&(e+=t.width),i+=(e-n)*(a-i)/(r-n),n=e}else{let e=t.y;s.has(k.BOTTOM)&&(e+=t.height),n+=(e-i)*(r-n)/(a-i),i=e}s=iY(t,n,i)}return!0}(y=k||(k={}))[y.LEFT=0]="LEFT",y[y.TOP=1]="TOP",y[y.RIGHT=2]="RIGHT",y[y.BOTTOM=3]="BOTTOM";class i${constructor(t,e,n,i){this.x=t,this.y=e,this.width=n,this.height=i}get x2(){return this.x+this.width}get y2(){return this.y+this.height}get cx(){return this.x+this.width/2}get cy(){return this.y+this.height/2}get radius(){return Math.max(this.width,this.height)/2}static from(t){return new i$(t.x,t.y,t.width,t.height)}equals(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height}clone(){return new i$(this.x,this.y,this.width,this.height)}add(t){let e=Math.min(this.x,t.x),n=Math.min(this.y,t.y),i=Math.max(this.x2,t.x+t.width),r=Math.max(this.y2,t.y+t.height);this.x=e,this.y=n,this.width=i-e,this.height=r-n}addPoint(t){let e=Math.min(this.x,t.x),n=Math.min(this.y,t.y),i=Math.max(this.x2,t.x),r=Math.max(this.y2,t.y);this.x=e,this.y=n,this.width=i-e,this.height=r-n}toString(){return`Rectangle[x=${this.x}, y=${this.y}, w=${this.width}, h=${this.height}]`}draw(t){t.rect(this.x,this.y,this.width,this.height)}containsPt(t,e){return t>=this.x&&t<=this.x2&&e>=this.y&&e<=this.y2}get area(){return this.width*this.height}intersects(t){return!(this.area<=0)&&!(t.width<=0)&&!(t.height<=0)&&t.x+t.width>this.x&&t.y+t.height>this.y&&t.x=this.width?this.width-1:t}boundY(t){return t=this.height?this.height-1:t}scaleX(t){return this.boundX(Math.floor((t-this.pixelX)/this.pixelGroup))}scaleY(t){return this.boundY(Math.floor((t-this.pixelY)/this.pixelGroup))}scale(t){let e=this.scaleX(t.x),n=this.scaleY(t.y),i=this.boundX(Math.ceil((t.x+t.width-this.pixelX)/this.pixelGroup)),r=this.boundY(Math.ceil((t.y+t.height-this.pixelY)/this.pixelGroup)),a=i-e,o=r-n;return new i$(e,n,a,o)}invertScaleX(t){return Math.round(t*this.pixelGroup+this.pixelX)}invertScaleY(t){return Math.round(t*this.pixelGroup+this.pixelY)}addPadding(t,e){let n=Math.ceil(e/this.pixelGroup),i=this.boundX(t.x-n),r=this.boundY(t.y-n),a=this.boundX(t.x2+n),o=this.boundY(t.y2+n),s=a-i,l=o-r;return new i$(i,r,s,l)}get(t,e){return t<0||e<0||t>=this.width||e>=this.height?Number.NaN:this.area[t+e*this.width]}inc(t,e,n){t<0||e<0||t>=this.width||e>=this.height||(this.area[t+e*this.width]+=n)}set(t,e,n){t<0||e<0||t>=this.width||e>=this.height||(this.area[t+e*this.width]=n)}incArea(t,e){if(t.width<=0||t.height<=0||0===e)return;let n=this.width,i=t.width,r=Math.max(0,t.i),a=Math.max(0,t.j),o=Math.min(t.i+t.width,n),s=Math.min(t.j+t.height,this.height);if(!(s<=0)&&!(o<=0)&&!(r>=n)&&!(s>=this.height))for(let l=a;lMath.min(t,e),Number.POSITIVE_INFINITY),i=this.area.reduce((t,e)=>Math.max(t,e),Number.NEGATIVE_INFINITY),r=t=>(t-n)/(i-n);t.scale(this.pixelGroup,this.pixelGroup);for(let e=0;ee?"black":"white",t.fillRect(n,i,1,1)}t.restore()}}}function iQ(t,e){let n=t=>({x:t.x-e,y:t.y-e,width:t.width+2*e,height:t.height+2*e});return Array.isArray(t)?t.map(n):n(t)}function iJ(t,e,n){return i0(Object.assign(iG(t),{distSquare:(e,n)=>iZ(t.x1,t.y1,t.x2,t.y2,e,n)}),e,n)}function i0(t,e,n){let i=iQ(t,n),r=e.scale(i),a=e.createSub(r,i);return function(t,e,n,i){let r=n*n;for(let a=0;at.distSquare(e,n)),a}function i1(t,e){return e.some(e=>e.containsPt(t.x,t.y))}function i2(t,e){return e.some(e=>{var n,i,r,a;return n=e.x1,i=e.y1,1e-6>iz(n,i,t.x,t.y)||(r=e.x2,a=e.y2,1e-6>iz(r,a,t.x,t.y))})}function i3(t,e){let n=Number.POSITIVE_INFINITY,i=null;for(let r of t){if(!iK(r,e))continue;let t=function(t,e){let n=Number.POSITIVE_INFINITY,i=0;function r(t,r,a,o){let s=iU(e,new iH(t,r,a,o));(s=Math.abs(s-.5))>=0&&s<=1&&(i++,s1)?n:(r(t.x,t.y2,t.x2,t.y2),i>1)?n:(r(t.x2,t.y,t.x2,t.y2),0===i)?-1:n}(r,e);t>=0&&ts.y?{x:t.x-e,y:t.y-e}:{x:t.x2+e,y:t.y-e}:a.yo.x?{x:t.x-e,y:t.y-e}:{x:t.x-e,y:t.y2+e}:r.xs.y?{x:t.x2+e,y:t.y2+e}:{x:t.x-e,y:t.y2+e}:a.yo.x?{x:t.x2+e,y:t.y2+e}:{x:t.x2+e,y:t.y-e}:r.x=e?this.closed?this.get(t-e):this.points[e-1]:this.points[t]}get length(){return this.points.length}toString(t=1/0){let e=this.points;if(0===e.length)return"";let n="function"==typeof t?t:function(t){if(!Number.isFinite(t))return t=>t;if(0===t)return Math.round;let e=Math.pow(10,t);return t=>Math.round(t*e)/e}(t),i="M";for(let t of e)i+=`${n(t.x)},${n(t.y)} L`;return i=i.slice(0,-1),this.closed&&(i+=" Z"),i}draw(t){let e=this.points;if(0!==e.length){for(let n of(t.beginPath(),t.moveTo(e[0].x,e[0].y),e))t.lineTo(n.x,n.y);this.closed&&t.closePath()}}sample(t){return(function(t=8){return e=>{let n=t,i=e.length;if(n>1)for(i=Math.floor(e.length/n);i<3&&n>1;)n-=1,i=Math.floor(e.length/n);let r=[];for(let t=0,a=0;a{if(t<0||e.length<3)return e;let n=[],i=0,r=t*t;for(;ii)return!1}return!0}(e,i,t,r);)t++;n.push(e.get(i)),i=t}return new i4(n)}})(t)(this)}bSplines(t){return(function(t=6){function e(t,e,n){let i=0,r=0;for(let a=-2;a<=1;a++){let o=t.get(e+a),s=function(t,e){switch(t){case -2:return(((-e+3)*e-3)*e+1)/6;case -1:return((3*e-6)*e*e+4)/6;case 0:return(((-3*e+3)*e+3)*e+1)/6;case 1:return e*e*e/6;default:throw Error("unknown error")}}(a,n);i+=s*o.x,r+=s*o.y}return{x:i,y:r}}return n=>{if(n.length<3)return n;let i=[],r=n.closed,a=n.length+3-1+(r?0:2);i.push(e(n,2-(r?0:2),0));for(let o=2-(r?0:2);oe.containsPt(t.cx,t.cy)&&this.withinArea(t.cx,t.cy))}withinArea(t,e){if(0===this.length)return!1;let n=0,i=this.points[0],r=new iH(i.x,i.y,i.x,i.y);for(let i=1;ii7(e.raw,t));return!(e<0)&&(this.members.splice(e,1),this.dirty.add(P.MEMBERS),!0)}removeNonMember(t){let e=this.nonMembers.findIndex(e=>i7(e.raw,t));return!(e<0)&&(this.nonMembers.splice(e,1),this.dirty.add(P.NON_MEMBERS),!0)}removeEdge(t){let e=this.edges.findIndex(e=>e.obj.equals(t));return!(e<0)&&(this.edges.splice(e,1),this.dirty.add(P.NON_MEMBERS),!0)}pushNonMember(...t){if(0!==t.length)for(let e of(this.dirty.add(P.NON_MEMBERS),t))this.nonMembers.push({raw:e,obj:i5(e)?iX.from(e):i$.from(e),area:null})}pushEdge(...t){if(0!==t.length)for(let e of(this.dirty.add(P.EDGES),t))this.edges.push({raw:e,obj:iH.from(e),area:null})}update(){let t=this.dirty.has(P.MEMBERS),e=this.dirty.has(P.NON_MEMBERS),n=this.dirty.has(P.EDGES);this.dirty.clear();let i=this.members.map(t=>t.obj);if(this.o.virtualEdges&&(t||e)){let t=this.nonMembers.map(t=>t.obj),e=function(t,e,n,i){if(0===t.length)return[];let r=function(t){if(t.length<2)return t;let e=0,n=0;return t.forEach(t=>{e+=t.cx,n+=t.cy}),e/=t.length,n/=t.length,t.map(t=>{let i=e-t.cx,r=n-t.cy;return[t,i*i+r*r]}).sort((t,e)=>t[1]-e[1]).map(t=>t[0])}(t);return r.map((t,a)=>{let o=r.slice(0,a);return function(t,e,n,i,r){let a;let o={x:e.cx,y:e.cy},s=(a=Number.POSITIVE_INFINITY,n.reduce((e,n)=>{let i=iz(o.x,o.y,n.cx,n.cy);if(i>a)return e;let r=new iH(o.x,o.y,n.cx,n.cy),s=t.reduce((t,e)=>iK(e,r)&&function(t,e){function n(t,n,i,r){let a=iU(e,new iH(t,n,i,r));return(a=Math.abs(a-.5))>=0&&a<=1?1:0}let i=n(t.x,t.y,t.x2,t.y);return!!((i+=n(t.x,t.y,t.x,t.y2))>1||(i+=n(t.x,t.y2,t.x2,t.y2))>1)||(i+=n(t.x2,t.y,t.x2,t.y2))>0}(e,r)?t+1:t,0);return i*(s+1)*(s+1)0;){let t=a.pop(),n=i3(e,t),s=n?function(t,e){let n=0,i=iV(t,new iH(e.x,e.y,e.x2,e.y));n+=i.state===T.POINT?1:0;let r=iV(t,new iH(e.x,e.y,e.x,e.y2));n+=r.state===T.POINT?1:0;let a=iV(t,new iH(e.x,e.y2,e.x2,e.y2));n+=a.state===T.POINT?1:0;let o=iV(t,new iH(e.x2,e.y,e.x2,e.y2));return{top:i,left:r,bottom:a,right:o,count:n+=o.state===T.POINT?1:0}}(t,n):null;if(!n||!s||2!==s.count){o||r.push(t);continue}let l=i,h=i6(n,l,s,!0),c=i2(h,a)||i2(h,r),u=i1(h,e);for(;!c&&u&&l>=1;)l/=1.5,c=i2(h=i6(n,l,s,!0),a)||i2(h,r),u=i1(h,e);if(!h||c||u||(a.push(new iH(t.x1,t.y1,h.x,h.y)),a.push(new iH(h.x,h.y,t.x2,t.y2)),o=!0),o)continue;let d=i2(h=i6(n,l=i,s,!1),a)||i2(h,r);for(u=i1(h,e);!d&&u&&l>=1;)l/=1.5,d=i2(h=i6(n,l,s,!1),a)||i2(h,r),u=i1(h,e);h&&!d&&(a.push(new iH(t.x1,t.y1,h.x,h.y)),a.push(new iH(h.x,h.y,t.x2,t.y2)),o=!0),o||r.push(t)}for(;a.length>0;)r.push(a.pop());return r}(l,t,i,r);return function(t,e){let n=[];for(;t.length>0;){let i=t.pop();if(0===t.length){n.push(i);break}let r=t.pop(),a=new iH(i.x1,i.y1,r.x2,r.y2),o=i3(e,a);o?(n.push(i),t.push(r)):t.push(a)}return n}(h,t)}(e,t,o,n,i)}).flat()}(i,t,this.o.maxRoutingIterations,this.o.morphBuffer),r=new Map(this.virtualEdges.map(t=>[t.obj.toString(),t.area]));this.virtualEdges=e.map(t=>{var e;return{raw:t,obj:t,area:null!==(e=r.get(t.toString()))&&void 0!==e?e:null}}),n=!0}let r=!1;if(t||n){let t=this.virtualEdges.concat(this.edges).map(t=>t.obj),e=function(t,e){if(0===t.length)return new i$(0,0,0,0);let n=i$.from(t[0]);for(let e of t)n.add(e);for(let t of e)n.add(iG(t));return n}(i,t),n=Math.max(this.o.edgeR1,this.o.nodeR1)+this.o.morphBuffer,a=i$.from(iQ(e,n));a.equals(this.activeRegion)||(r=!0,this.activeRegion=a)}if(r){let t=Math.ceil(this.activeRegion.width/this.o.pixelGroup),e=Math.ceil(this.activeRegion.height/this.o.pixelGroup);this.activeRegion.x!==this.potentialArea.pixelX||this.activeRegion.y!==this.potentialArea.pixelY?(this.potentialArea=iq.fromPixelRegion(this.activeRegion,this.o.pixelGroup),this.members.forEach(t=>t.area=null),this.nonMembers.forEach(t=>t.area=null),this.edges.forEach(t=>t.area=null),this.virtualEdges.forEach(t=>t.area=null)):(t!==this.potentialArea.width||e!==this.potentialArea.height)&&(this.potentialArea=iq.fromPixelRegion(this.activeRegion,this.o.pixelGroup))}let a=new Map,o=t=>{if(t.area){let e=`${t.obj.width}x${t.obj.height}x${t.obj instanceof i$?"R":"C"}`;a.set(e,t.area)}},s=t=>{if(t.area)return;let e=`${t.obj.width}x${t.obj.height}x${t.obj instanceof i$?"R":"C"}`;if(a.has(e)){let n=a.get(e);t.area=this.potentialArea.copy(n,{x:t.obj.x-this.o.nodeR1,y:t.obj.y-this.o.nodeR1});return}let n=t.obj instanceof i$?function(t,e,n){let i=e.scale(t),r=e.addPadding(i,n),a=e.createSub(r,{x:t.x-n,y:t.y-n}),o=i.x-r.x,s=i.y-r.y,l=r.x2-i.x2,h=r.y2-i.y2,c=r.width-o-l,u=r.height-s-h,d=n*n;a.fillArea({x:o,y:s,width:c+1,height:u+1},d);let p=[0],f=Math.max(s,o,l,h);{let r=e.invertScaleX(i.x+i.width/2);for(let a=1;a{this.activeRegion.intersects(t.obj)?s(t):t.area=null}),this.edges.forEach(t=>{t.area||(t.area=iJ(t.obj,this.potentialArea,this.o.edgeR1))}),this.virtualEdges.forEach(t=>{t.area||(t.area=iJ(t.obj,this.potentialArea,this.o.edgeR1))})}drawMembers(t){for(let e of this.members)e.obj.draw(t)}drawNonMembers(t){for(let e of this.nonMembers)e.obj.draw(t)}drawEdges(t){for(let e of this.edges)e.obj.draw(t)}drawPotentialArea(t,e=!0){this.potentialArea.draw(t,e)}compute(){if(0===this.members.length)return new i4([]);this.dirty.size>0&&this.update();let{o:t,potentialArea:e}=this,n=this.members.map(t=>t.area),i=this.virtualEdges.concat(this.edges).map(t=>t.area),r=this.nonMembers.filter(t=>null!=t.area).map(t=>t.area),a=this.members.map(t=>t.obj);return function(t,e,n,i,r,a={}){let o=Object.assign({},i9,a),s=o.threshold,l=o.memberInfluenceFactor,h=o.edgeInfluenceFactor,c=o.nonMemberInfluenceFactor,u=(o.nodeR0-o.nodeR1)*(o.nodeR0-o.nodeR1),d=(o.edgeR0-o.edgeR1)*(o.edgeR0-o.edgeR1);for(let a=0;ae?r+a:r}function a(t,e){let n=0;return(n=r(t,e,0,1),n=r(t+1,e,n,2),n=r(t,e+1,n,4),Number.isNaN(n=r(t+1,e+1,n,8)))?-1:n}let o=1;for(let n=0;n0)c*=.8;else break}return new i4([])}(e,n,i,r,t=>t.containsElements(a),t)}}class re extends iF{bindEvents(){this.context.graph.on(R.AFTER_RENDER,this.drawBubbleSets),this.context.graph.on(R.AFTER_ELEMENT_UPDATE,this.updateBubbleSetsPath)}init(){this.bubbleSets=new rt(this.options),this.members=new Map,this.avoidMembers=new Map}parseOptions(){let{type:t,key:e,members:n,avoidMembers:i,...r}=this.options,a=Object.keys(r).reduce((t,e)=>(e in i9?t.bubbleSetOptions[e]=r[e]:t.style[e]=r[e],t),{style:{},bubbleSetOptions:{}});return{type:t,key:e,members:n,avoidMembers:i,...a}}addMember(t){let e=Array.isArray(t)?t:[t];e.some(t=>this.options.avoidMembers.includes(t))&&(this.options.avoidMembers=this.options.avoidMembers.filter(t=>!e.includes(t))),this.options.members=[...new Set([...this.options.members,...e])],this.drawBubbleSets()}removeMember(t){let e=Array.isArray(t)?t:[t];this.options.members=this.options.members.filter(t=>!e.includes(t)),this.drawBubbleSets()}updateMember(t){this.options.members=(0,td.Z)(t)?t(this.options.members):t,this.drawBubbleSets()}getMember(){return this.options.members}addAvoidMember(t){let e=Array.isArray(t)?t:[t];e.some(t=>this.options.members.includes(t))&&(this.options.members=this.options.members.filter(t=>!e.includes(t))),this.options.avoidMembers=[...new Set([...this.options.avoidMembers,...e])],this.drawBubbleSets()}removeAvoidMember(t){let e=Array.isArray(t)?t:[t];this.options.avoidMembers.some(t=>e.includes(t))&&(this.options.avoidMembers=this.options.avoidMembers.filter(t=>!e.includes(t)),this.drawBubbleSets())}updateAvoidMember(t){this.options.avoidMembers=Array.isArray(t)?t:[t],this.drawBubbleSets()}getAvoidMember(){return this.options.avoidMembers}destroy(){this.context.graph.off(R.AFTER_RENDER,this.drawBubbleSets),this.context.graph.off(R.AFTER_ELEMENT_UPDATE,this.updateBubbleSetsPath),this.shape.destroy(),super.destroy()}constructor(t,e){super(t,(0,J.Z)({},re.defaultOptions,e)),this.members=new Map,this.avoidMembers=new Map,this.bubbleSetOptions={},this.drawBubbleSets=()=>{let{style:t,bubbleSetOptions:e}=this.parseOptions();(0,F.Z)(this.bubbleSetOptions,e)||this.init(),this.bubbleSetOptions={...e};let n={...t,d:this.getPath()};this.shape?this.shape.update(n):(this.shape=new ez({style:n}),this.context.canvas.appendChild(this.shape))},this.updateBubbleSetsPath=t=>{if(!this.shape)return;let e=tt(t.data);[...this.options.members,...this.options.avoidMembers].includes(e)&&this.shape.update({...this.parseOptions().style,d:this.getPath(e)})},this.getPath=t=>{let{graph:e}=this.context,n=this.options.members,i=[...this.members.keys()],r=this.options.avoidMembers,a=[...this.avoidMembers.keys()];if(!t&&(0,F.Z)(n,i)&&(0,F.Z)(r,a))return this.path;let{enter:o=[],exit:s=[]}=tl(i,n,t=>t),{enter:l=[],exit:h=[]}=tl(a,r,t=>t);t&&(s.push(t),o.push(t));let c=(t,n,i)=>{t.forEach(t=>{let r=i?this.members:this.avoidMembers;if(n){let n;"edge"===e.getElementType(t)?([n]=ri(e,t),this.bubbleSets.pushEdge(n)):([n]=rn(e,t),this.bubbleSets[i?"pushMember":"pushNonMember"](n)),r.set(t,n)}else{let n=r.get(t);n&&("edge"===e.getElementType(t)?this.bubbleSets.removeEdge(n):this.bubbleSets[i?"removeMember":"removeNonMember"](n),r.delete(t))}})};c(s,!1,!0),c(o,!0,!0),c(h,!1,!1),c(l,!0,!1);let u=this.bubbleSets.compute(),d=u.sample(8).simplify(0).bSplines().simplify(0);return this.path=eZ(d.points.map(tV)),this.path},this.bindEvents(),this.bubbleSets=new rt(this.options)}}re.defaultOptions={members:[],avoidMembers:[],fill:"lightblue",fillOpacity:.2,stroke:"blue",strokeOpacity:.2,...i9};let rn=(t,e)=>{let n=Array.isArray(e)?e:[e];return n.map(e=>{let n=t.getElementRenderBounds(e);return new i$(n.min[0],n.min[1],tm(n),tv(n))})},ri=(t,e)=>{let n=Array.isArray(e)?e:[e];return n.map(e=>{let n=t.getEdgeData(e),i=t.getElementPosition(n.source),r=t.getElementPosition(n.target);return iH.from({x1:i[0],y1:i[1],x2:r[0],y2:r[1]})})};class rr extends iF{initElement(){this.$element=iB("contextmenu",!1);let{className:t}=this.options;t&&this.$element.classList.add(t);let e=this.context.canvas.getContainer();e.appendChild(this.$element),i_("g6-contextmenu-css","style",{},"\n .g6-contextmenu {\n font-size: 12px;\n background-color: rgba(255, 255, 255, 0.96);\n border-radius: 4px;\n overflow: hidden;\n box-shadow: rgba(0, 0, 0, 0.12) 0px 6px 12px 0px;\n transition: visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1) 0s, left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s;\n }\n\n .g6-contextmenu-ul {\n max-width: 256px;\n min-width: 96px;\n list-style: none;\n padding: 0;\n margin: 0;\n }\n\n .g6-contextmenu-li {\n padding: 8px 12px;\n cursor: pointer;\n user-select: none;\n }\n\n .g6-contextmenu-li:hover {\n background-color: #f5f5f5;\n cursor: pointer;\n }\n",document.head)}async show(t){let{enable:e,offset:n}=this.options;if("function"==typeof e&&!e(t)||!e){this.hide();return}let i=await this.getDOMContent(t);i instanceof HTMLElement?(this.$element.innerHTML="",this.$element.appendChild(i)):this.$element.innerHTML=i;let r=this.context.graph.getCanvas().getContainer().getBoundingClientRect();this.$element.style.left="".concat(t.client.x-r.left+n[0],"px"),this.$element.style.top="".concat(t.client.y-r.top+n[1],"px"),this.$element.style.display="block",this.targetElement=t.target}hide(){this.$element.style.display="none",this.targetElement=null}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}destroy(){this.unbindEvents(),super.destroy(),this.$element.remove()}async getDOMContent(t){let{getContent:e,getItems:n}=this.options;if(n){var i;return i=await n(t),'\n
      \n '.concat(i.map(t=>'
    • ').concat(t.name,"
    • ")).join(""),"\n
    \n ")}return await e(t)}bindEvents(){let{graph:t}=this.context,{trigger:e}=this.options;t.on("canvas:".concat(e),this.onTriggerEvent),t.on("node:".concat(e),this.onTriggerEvent),t.on("edge:".concat(e),this.onTriggerEvent),t.on("combo:".concat(e),this.onTriggerEvent),document.addEventListener("click",this.onMenuItemClick)}unbindEvents(){let{graph:t}=this.context,{trigger:e}=this.options;t.off("canvas:".concat(e),this.onTriggerEvent),t.off("node:".concat(e),this.onTriggerEvent),t.off("edge:".concat(e),this.onTriggerEvent),t.off("combo:".concat(e),this.onTriggerEvent),document.removeEventListener("click",this.onMenuItemClick)}constructor(t,e){super(t,Object.assign({},rr.defaultOptions,e)),this.targetElement=null,this.onTriggerEvent=t=>{var e;null===(e=t.preventDefault)||void 0===e||e.call(t),this.show(t)},this.onMenuItemClick=t=>{let{onClick:e,trigger:n}=this.options;if(t.target instanceof HTMLElement&&t.target.className.includes("g6-contextmenu-li")){let n=t.target.getAttribute("value");null==e||e(n,t.target,this.targetElement),this.hide()}"click"!==n&&this.hide()},this.initElement(),this.update(e)}}rr.defaultOptions={trigger:"contextmenu",offset:[4,4],loadingContent:'
    Loading...
    ',getContent:()=>"It is a empty context menu.",enable:()=>!0};let ra={fill:"#fff",fillOpacity:1,lineWidth:1,stroke:"#000",strokeOpacity:.8};class ro extends iF{get canvas(){return this.context.canvas.getLayer("transient")}get isLensOn(){return this.lens&&!this.lens.destroyed}getElementStyle(t,e){let n="node"===t?this.options.nodeStyle:this.options.edgeStyle;return"function"==typeof n?n(e):n}get graphDom(){return this.context.graph.getCanvas().getContextService().getDomElement()}bindEvents(){let{graph:t}=this.context,{trigger:e,scaleRByWheel:n}=this.options,i=t.getCanvas().getLayer();if(["click","drag"].includes(e)&&i.addEventListener(w.CLICK,this.onEdgeFilter),"pointermove"===e?i.addEventListener(w.POINTER_MOVE,this.onEdgeFilter):"drag"===e&&(i.addEventListener(w.DRAG_START,this.onDragStart),i.addEventListener(w.DRAG,this.onDrag),i.addEventListener(w.DRAG_END,this.onDragEnd)),n){var r;null===(r=this.graphDom)||void 0===r||r.addEventListener(w.WHEEL,this.scaleRByWheel,{passive:!1})}}unbindEvents(){let{graph:t}=this.context,{trigger:e,scaleRByWheel:n}=this.options,i=t.getCanvas().getLayer();if(["click","drag"].includes(e)&&i.removeEventListener(w.CLICK,this.onEdgeFilter),"pointermove"===e?i.removeEventListener(w.POINTER_MOVE,this.onEdgeFilter):"drag"===e&&(i.removeEventListener(w.DRAG_START,this.onDragStart),i.removeEventListener(w.DRAG,this.onDrag),i.removeEventListener(w.DRAG_END,this.onDragEnd)),n){var r;null===(r=this.graphDom)||void 0===r||r.removeEventListener(w.WHEEL,this.scaleRByWheel)}}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}destroy(){this.unbindEvents(),this.isLensOn&&this.lens.destroy(),this.shapes.forEach((t,e)=>{t.destroy(),this.shapes.delete(e)}),super.destroy()}constructor(t,e){super(t,Object.assign({},ro.defaultOptions,e)),this.shapes=new Map,this.r=this.options.r,this.onEdgeFilter=t=>{if("drag"===this.options.trigger&&this.isLensOn)return;let e=tV(t.canvas);this.renderLens(e),this.renderFocusElements()},this.renderLens=t=>{let[e,n]=t,i={size:2*this.r,x:e,y:n};if(this.isLensOn)this.lens.update(i);else{let t=Object.assign({},ra,this.options.style,i);this.lens=new eq({style:t})}this.canvas.appendChild(this.lens)},this.getFilterData=()=>{let{filter:t}=this.options,{model:e}=this.context,n=e.getData();if(!t)return n;let{nodes:i,edges:r,combos:a}=n;return{nodes:i.filter(e=>t(tt(e),"node")),edges:r.filter(e=>t(tt(e),"edge")),combos:a.filter(e=>t(tt(e),"combo"))}},this.getFocusElements=t=>{let{nodes:e,edges:n}=this.getFilterData(),i=e.filter(e=>tD(tH(e),t)tt(t)),a=n.filter(t=>{let{source:e,target:n}=t,i=r.includes(e),a=r.includes(n);switch(this.options.nodeType){case"both":return i&&a;case"either":return i!==a;case"source":return i&&!a;case"target":return!i&&a;default:return!1}});return{nodes:i,edges:a}},this.renderFocusElements=()=>{let{element:t,graph:e}=this.context;if(!this.isLensOn)return;let n=this.lens.getCenter(),{nodes:i,edges:r}=this.getFocusElements(n),a=new Set,{nodeStyle:o,edgeStyle:s}=this.options,l=n=>{let i=tt(n);a.add(i);let r=t.getElement(i);if(!r)return;let o=this.shapes.get(i)||r.cloneNode();o.setPosition(r.getPosition()),o.id=r.id,this.shapes.has(i)?Object.entries(r.attributes).forEach(t=>{let[e,n]=t;o.style[e]!==n&&(o.style[e]=n)}):(this.canvas.appendChild(o),this.shapes.set(i,o));let s=e.getElementType(i),l=this.getElementStyle(s,n);o.update(l)};i.forEach(l),r.forEach(l),this.shapes.forEach((t,e)=>{a.has(e)||(t.destroy(),this.shapes.delete(e))})},this.scaleRByWheel=t=>{var e;this.options.preventDefault&&t.preventDefault();let{clientX:n,clientY:i,deltaX:r,deltaY:a}=t,{graph:o,canvas:s}=this.context,l=o.getCanvasByClient([n,i]),h=null===(e=this.lens)||void 0===e?void 0:e.getCenter();if(!this.isLensOn||tD(l,h)>this.r)return;let{maxR:c,minR:u}=this.options,d=Math.min(...s.getSize())/2;this.r=Math.max(u||0,Math.min(c||d,this.r*(r+a>0?1/.95:.95))),this.renderLens(h),this.renderFocusElements()},this.isLensDragging=!1,this.onDragStart=t=>{var e;let n=tV(t.canvas),i=null===(e=this.lens)||void 0===e?void 0:e.getCenter();!this.isLensOn||tD(n,i)>this.r||(this.isLensDragging=!0)},this.onDrag=t=>{if(!this.isLensDragging)return;let e=tV(t.canvas);this.renderLens(e),this.renderFocusElements()},this.onDragEnd=()=>{this.isLensDragging=!1},this.bindEvents()}}ro.defaultOptions={trigger:"pointermove",r:60,nodeType:"both",filter:()=>!0,style:{lineWidth:2},nodeStyle:{label:!1},edgeStyle:{label:!0},scaleRByWheel:!0,preventDefault:!0};class rs extends iF{bindEvents(){this.unbindEvents(),this.shortcut.unbindAll();let{request:t=[],exit:e=[]}=this.options.trigger;this.shortcut.bind(t,this.request),this.shortcut.bind(e,this.exit),["webkitfullscreenchange","mozfullscreenchange","fullscreenchange","MSFullscreenChange"].forEach(t=>{document.addEventListener(t,this.onFullscreenChange,!1)})}unbindEvents(){this.shortcut.unbindAll(),["webkitfullscreenchange","mozfullscreenchange","fullscreenchange","MSFullscreenChange"].forEach(t=>{document.removeEventListener(t,this.onFullscreenChange,!1)})}setGraphSize(){let t,e,n=!(arguments.length>0)||void 0===arguments[0]||arguments[0];n?(t=window.screen.width,e=window.screen.height,this.graphSize=this.context.graph.getSize()):[t,e]=this.graphSize,this.context.graph.setSize(t,e),this.context.graph.render()}request(){!document.fullscreenElement&&(document.fullscreenEnabled||Reflect.get(document,"webkitFullscreenEnabled")||Reflect.get(document,"mozFullscreenEnabled")||Reflect.get(document,"msFullscreenEnabled"))&&this.$el.requestFullscreen().catch(t=>{Y.warn("Error attempting to enable full-screen: ".concat(t.message," (").concat(t.name,")"))})}exit(){document.fullscreenElement&&document.exitFullscreen()}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}destroy(){this.exit(),this.style.remove(),super.destroy()}constructor(t,e){super(t,Object.assign({},rs.defaultOptions,e)),this.$el=this.context.canvas.getContainer(),this.graphSize=[0,0],this.onFullscreenChange=()=>{var t,e,n,i;let r=!!document.fullscreenElement;this.options.autoFit&&this.setGraphSize(r),r?null===(e=(t=this.options).onEnter)||void 0===e||e.call(t):null===(i=(n=this.options).onExit)||void 0===i||i.call(n)},this.shortcut=new t2(t.graph),this.bindEvents(),this.style=document.createElement("style"),document.head.appendChild(this.style),this.style.innerHTML="\n :not(:root):fullscreen::backdrop {\n background: transparent;\n }\n "}}rs.defaultOptions={trigger:{},autoFit:!0};class rl extends iF{update(t){super.update(t),this.updateStyle()}bindEvents(){let{graph:t}=this.context;t.on(R.AFTER_TRANSFORM,this.onTransform)}updateStyle(){let{size:t,stroke:e,lineWidth:n,border:i,borderLineWidth:r,borderStroke:a,borderStyle:o}=this.options;Object.assign(this.$element.style,{border:i?"".concat(r,"px ").concat(o," ").concat(a):"none",backgroundImage:"linear-gradient(".concat(e," ").concat(n,"px, transparent ").concat(n,"px), linear-gradient(90deg, ").concat(e," ").concat(n,"px, transparent ").concat(n,"px)"),backgroundSize:"".concat(t,"px ").concat(t,"px")})}updateOffset(t){var e,n;this.offset=(e=tM(this.offset,t),n=this.options.size,e.map(t=>t%n)),this.$element.style.backgroundPosition="".concat(this.offset[0],"px ").concat(this.offset[1],"px")}destroy(){this.context.graph.off(R.AFTER_TRANSFORM,this.onTransform),this.$element.remove(),super.destroy()}constructor(t,e){super(t,Object.assign({},rl.defaultOptions,e)),this.$element=iB("grid-line"),this.offset=[0,0],this.onTransform=t=>{if(!this.options.follow)return;let{data:{translate:e}}=t;e&&this.updateOffset(e)};let n=this.context.canvas.getContainer();!function(t,e){let n=t.firstChild;n?t.insertBefore(e,n):t.appendChild(e)}(n,this.$element),this.updateStyle(),this.bindEvents()}}rl.defaultOptions={border:!0,borderLineWidth:1,borderStroke:"#eee",borderStyle:"solid",lineWidth:1,size:20,stroke:"#eee"};var rh=n(90494);function rc(t){let e={Added:new Map,Updated:new Map,Removed:new Map};return t.forEach(t=>{let{type:n,value:i}=t,r=tt(i);if("NodeAdded"===n||"EdgeAdded"===n||"ComboAdded"===n)e.Added.set(r,t);else if("NodeUpdated"===n||"EdgeUpdated"===n||"ComboUpdated"===n){if(e.Added.has(r))e.Added.set(r,{type:n.replace("Updated","Added"),value:i});else if(e.Updated.has(r)){let{original:t}=e.Updated.get(r);e.Updated.set(r,{type:n,value:i,original:t})}else e.Removed.has(r)||e.Updated.set(r,t)}else("NodeRemoved"===n||"EdgeRemoved"===n||"ComboRemoved"===n)&&(e.Added.has(r)?e.Added.delete(r):(e.Updated.has(r)&&e.Updated.delete(r),e.Removed.set(r,t)))}),[...Array.from(e.Added.values()),...Array.from(e.Updated.values()),...Array.from(e.Removed.values())]}function ru(t){let{NodeAdded:e=[],NodeUpdated:n=[],NodeRemoved:i=[],EdgeAdded:r=[],EdgeUpdated:a=[],EdgeRemoved:o=[],ComboAdded:s=[],ComboUpdated:l=[],ComboRemoved:h=[]}=ew(t,t=>t.type);return{add:{nodes:e,edges:r,combos:s},update:{nodes:n,edges:a,combos:l},remove:{nodes:i,edges:o,combos:h}}}class rd extends iF{canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}undo(){let t=this.undoStack.pop();if(t){var e,n,i,r;this.executeCommand(t);let a=null===(n=(e=this.options).beforeAddCommand)||void 0===n?void 0:n.call(e,t,!1);if(!1===a)return;this.redoStack.push(t),null===(r=(i=this.options).afterAddCommand)||void 0===r||r.call(i,t,!1),this.notify(A.UNDO,t)}return this}redo(){let t=this.redoStack.pop();return t&&(this.executeCommand(t,!1),this.undoStackPush(t),this.notify(A.REDO,t)),this}undoAndCancel(){let t=this.undoStack.pop();return t&&(this.executeCommand(t,!1),this.redoStack=[],this.notify(A.CANCEL,t)),this}undoStackPush(t){var e,n,i,r;let{stackSize:a}=this.options;0!==a&&this.undoStack.length>=a&&this.undoStack.shift();let o=null===(n=(e=this.options).beforeAddCommand)||void 0===n?void 0:n.call(e,t,!0);!1!==o&&(this.undoStack.push(t),null===(r=(i=this.options).afterAddCommand)||void 0===r||r.call(i,t,!0))}clear(){this.undoStack=[],this.redoStack=[],this.batchChanges=null,this.batchAnimation=!1,this.notify(A.CLEAR,null)}notify(t,e){this.emitter.emit(t,{cmd:e}),this.emitter.emit(A.CHANGE,{cmd:e})}on(t,e){this.emitter.on(t,e)}destroy(){let{graph:t}=this.context;t.off(R.AFTER_DRAW,this.addCommand),t.off(R.BATCH_START,this.initBatchCommand),t.off(R.BATCH_END,this.addCommand),this.emitter.off(),super.destroy(),this.undoStack=[],this.redoStack=[]}constructor(t,e){var n;super(t,Object.assign({},rd.defaultOptions,e)),n=this,this.batchChanges=null,this.batchAnimation=!1,this.undoStack=[],this.redoStack=[],this.freezed=!1,this.executeCommand=function(t){var e,i,r;let a=!(arguments.length>1)||void 0===arguments[1]||arguments[1];n.freezed=!0,null===(i=(e=n.options).executeCommand)||void 0===i||i.call(e,t);let o=a?t.original:t.current;n.context.graph.addData(o.add),n.context.graph.updateData(o.update),n.context.graph.removeData(te(o.remove,!1)),null===(r=n.context.element)||void 0===r||r.draw({silence:!0,animation:t.animation}),n.freezed=!1},this.addCommand=t=>{if(!this.freezed){if(t.type===R.AFTER_DRAW){var e;let{dataChanges:n=[],animation:i=!0}=t.data;if(null===(e=this.context.batch)||void 0===e?void 0:e.isBatching){if(!this.batchChanges)return;this.batchChanges.push(n),this.batchAnimation&&(this.batchAnimation=i);return}this.batchChanges=[n],this.batchAnimation=i}this.undoStackPush(function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,i={animation:e,current:{add:{},update:{},remove:{}},original:{add:{},update:{},remove:{}}},{add:r,update:a,remove:o}=ru(rc(t));return["nodes","edges","combos"].forEach(t=>{a[t]&&a[t].forEach(e=>{var r,a;let o={...e.value},s={...e.original};if(n){let t=n.graph.getElementType(tt(e.original)),i="edge"===t?"stroke":"fill",r=n.element.getElementComputedStyle(t,e.original);s={...e.original,style:{[i]:r[i],...e.original.style}}}(function t(e,n){for(let i in e)(0,j.Z)(e[i])&&!Array.isArray(e[i])&&null!==e[i]?(n[i]||(n[i]={}),t(e[i],n[i])):void 0===n[i]&&(n[i]=q(i))})(o,s),(r=i.current.update)[t]||(r[t]=[]),i.current.update[t].push(o),(a=i.original.update)[t]||(a[t]=[]),i.original.update[t].push(s)}),r[t]&&r[t].forEach(e=>{var n,r;let a={...e.value};(n=i.current.add)[t]||(n[t]=[]),i.current.add[t].push(a),(r=i.original.remove)[t]||(r[t]=[]),i.original.remove[t].push(a)}),o[t]&&o[t].forEach(e=>{var n,r;let a={...e.value};(n=i.current.remove)[t]||(n[t]=[]),i.current.remove[t].push(a),(r=i.original.add)[t]||(r[t]=[]),i.original.add[t].push(a)})}),i}(this.batchChanges.flat(),this.batchAnimation,this.context)),this.notify(A.ADD,this.undoStack[this.undoStack.length-1])}},this.initBatchCommand=t=>{let{initiate:e}=t.data;if(this.batchAnimation=!1,e)this.batchChanges=[];else{let t=this.undoStack.pop();t||(this.batchChanges=null)}},this.emitter=new rh.Z;let{graph:i}=this.context;i.on(R.AFTER_DRAW,this.addCommand),i.on(R.BATCH_START,this.initBatchCommand),i.on(R.BATCH_END,this.addCommand)}}rd.defaultOptions={stackSize:0};var rp=n(1344),rf=n.n(rp);let rg=(t,e,n)=>{if("sharp"===n)return[["M",t[0]-e,t[1]-e],["L",t[0]+e,t[1]-e],["L",t[0]+e,t[1]+e],["L",t[0]-e,t[1]+e],["Z"]];let i=[e,e,0,0,0];return[["M",t[0],t[1]-e],["A",...i,t[0],t[1]+e],["A",...i,t[0],t[1]-e]]},ry=(t,e,n)=>{let i=[e,e,0,0,0],r="sharp"===n?tM(t[0],tL(tI(tT(t[0],t[1])),e)):t[0],a="sharp"===n?tM(t[1],tL(tI(tT(t[1],t[0])),e)):t[1],o=tL(tI(t_(tT(r,a),!1)),e),s=tL(o,-1),l=tM(r,o),h=tM(a,o),c=tM(a,s),u=tM(r,s);return"sharp"===n?[["M",l[0],l[1]],["L",h[0],h[1]],["L",c[0],c[1]],["L",u[0],u[1]],["Z"]]:[["M",l[0],l[1]],["L",h[0],h[1]],["A",...i,c[0],c[1]],["L",u[0],u[1]],["A",...i,l[0],l[1]]]},rm=(t,e)=>{let n=tQ(t).map((n,i)=>{let r=(i-2+t.length)%t.length,a=(i-1+t.length)%t.length,o=(i+1)%t.length,s=t[r],l=t[a],h=t[o],c=tT(s,l),u=tT(l,n),d=tT(n,h),p=(t,e)=>tB(t,e,!0)tL(tI(t_(t,!1)),e),m=y(u);return[{p:tF(f?tM(l,y(c)):tM(l,m)),concave:f&&l},{p:tF(g?tM(n,y(d)):tM(n,m)),concave:g&&n}]}),i=[e,e,0,0,0],r=n.findIndex((t,e)=>!n[(e-1+n.length)%n.length][0].concave&&!n[(e-1+n.length)%n.length][1].concave&&!t[0].concave&&!t[0].concave&&!t[1].concave),a=n.slice(r).concat(n.slice(0,r)),o=[];return a.flatMap((t,e)=>{let r=[],s=a[n.length-1];return 0===e&&r.push(["M",...s[1].p]),t[0].concave?o.push(t[0].p,t[1].p):r.push(["A",...i,...t[0].p]),t[1].concave?o.unshift(t[1].p):r.push(["L",...t[1].p]),3===o.length&&(r.pop(),r.push(["C",...o.flat()]),o=[]),r})},rv=(t,e)=>{let n=tQ(t).map((e,n)=>{let i=t[(n+1)%t.length];return{p:e,v:tI(tT(i,e))}});return n.forEach((i,r)=>{let a=r>0?r-1:t.length-1,o=n[a].v,s=tI(tM(o,tL(i.v,tB(o,i.v,!0)t.p))},rb=(t,e)=>{let n=t.map((n,i)=>{let r=t[0===i?t.length-1:i-1],a=tj(tL(tI(t_(tT(r,n),!1)),e));return[tM(r,a),tM(n,a)]}),i=n.flat(),r=i.map((t,e)=>{if(e%2==0)return null;let n=[i[(e-1)%i.length],i[e%i.length]],r=[i[(e+1)%i.length],i[(e+2)%i.length]];return tz(n,r,!0)}).filter(Boolean);return r.map((t,e)=>[0===e?"M":"L",t[0],t[1]]).concat([["Z"]])};class rx extends iF{bindEvents(){this.context.graph.on(R.AFTER_RENDER,this.drawHull),this.context.graph.on(R.AFTER_ELEMENT_UPDATE,this.updateHullPath)}getHullStyle(t){let{members:e,padding:n,corner:i,...r}=this.options;return{...r,d:this.getHullPath(t)}}getPadding(){let{graph:t}=this.context,e=this.hullMemberIds.reduce((e,n)=>{let{halfExtents:i}=t.getElementRenderBounds(n),r=Math.max(i[0],i[1]);return Math.max(e,r)},0);return e+this.options.padding}addMember(t){let e=Array.isArray(t)?t:[t];this.options.members=[...new Set([...this.options.members,...e])],this.shape.update({d:this.getHullPath()})}removeMember(t){let e=Array.isArray(t)?t:[t];this.options.members=this.options.members.filter(t=>!e.includes(t)),e.some(t=>this.hullMemberIds.includes(t))&&this.shape.update({d:this.getHullPath()})}updateMember(t){this.options.members=(0,td.Z)(t)?t(this.options.members):t,this.shape.update(this.getHullStyle(!0))}getMember(){return this.options.members}destroy(){this.context.graph.off(R.AFTER_DRAW,this.drawHull),this.shape.destroy(),this.hullMemberIds=[],super.destroy()}constructor(t,e){var n;super(t,Object.assign({},rx.defaultOptions,e)),n=this,this.hullMemberIds=[],this.drawHull=()=>{if(this.shape){let t=!(0,F.Z)(this.optionsCache,this.options);this.shape.update(this.getHullStyle(t))}else this.shape=new ez({style:this.getHullStyle()}),this.context.canvas.appendChild(this.shape);this.optionsCache={...this.options}},this.updateHullPath=t=>{this.shape&&this.options.members.includes(tt(t.data))&&this.shape.update({d:this.getHullPath(!0)})},this.getHullPath=function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],{graph:e}=n.context,i=n.getMember();if(0===i.length)return"";let r=i.map(t=>e.getNodeData(t)),a=rf()(r.map(tH),n.options.concavity).slice(1).reverse(),o=a.flatMap(t=>r.filter(e=>(0,F.Z)(tH(e),t)).map(tt));return(0,F.Z)(o,n.hullMemberIds)&&!t||(n.hullMemberIds=o,n.path=function(t,e,n){if(1===t.length)return rg(t[0],e,n);if(2===t.length)return ry(t,e,n);switch(n){case"smooth":return rv(t,e);case"sharp":return rb(t,e);default:return rm(t,e)}}(a,n.getPadding(),n.options.corner)),n.path},this.bindEvents()}}rx.defaultOptions={members:[],padding:10,corner:"rounded",concavity:1/0,fill:"lightblue",fillOpacity:.2,labelOpacity:1,stroke:"blue",strokeOpacity:.2};var rE=n(97582),rw=function(){function t(t,e,n,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),this.x=0,this.y=0,this.width=0,this.height=0,this.x=t,this.y=e,this.width=n,this.height=i}return Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t.prototype.toJSON=function(){return{x:this.x,y:this.y,width:this.width,height:this.height,top:this.top,right:this.right,bottom:this.bottom,left:this.left}},t.prototype.isPointIn=function(t,e){return t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom},t}();function rC(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,a=0;ai&&(i=d),p>r&&(r=p)}return new rw(e,n,i-e,r-n)}var rS=function(t,e,n){var i=t.width,r=t.height,a=n.flexDirection,o=void 0===a?"row":a,s=(n.flexWrap,n.justifyContent),l=void 0===s?"flex-start":s,h=(n.alignContent,n.alignItems),c=void 0===h?"flex-start":h,u="row"===o,d="row"===o||"column"===o,p=u?d?[1,0]:[-1,0]:d?[0,1]:[0,-1],f=(0,rE.CR)([0,0],2),g=f[0],y=f[1],m=e.map(function(t){var e,n=t.width,i=t.height,r=(0,rE.CR)([g,y],2),a=r[0],o=r[1];return g=(e=(0,rE.CR)([g+n*p[0],y+i*p[1]],2))[0],y=e[1],new rw(a,o,n,i)}),v=rC(m),b={"flex-start":0,"flex-end":u?i-v.width:r-v.height,center:u?(i-v.width)/2:(r-v.height)/2},x=m.map(function(t){var e=t.x,n=t.y,i=rw.fromRect(t);return i.x=u?e+b[l]:e,i.y=u?n:n+b[l],i});rC(x);var E=function(t){var e=(0,rE.CR)(u?["height",r]:["width",i],2),n=e[0],a=e[1];switch(c){case"flex-start":default:return 0;case"flex-end":return a-t[n];case"center":return a/2-t[n]/2}};return x.map(function(t){var e=t.x,n=t.y,i=rw.fromRect(t);return i.x=u?e:e+E(i),i.y=u?n+E(i):n,i}).map(function(e){var n,i,r=rw.fromRect(e);return r.x+=null!==(n=t.x)&&void 0!==n?n:0,r.y+=null!==(i=t.y)&&void 0!==i?i:0,r})},rR=function(t,e,n){return[]},rA=function(t,e,n){if(0===e.length)return[];var i={flex:rS,grid:rR},r=n.display in i?i[n.display]:null;return(null==r?void 0:r.call(null,t,e,n))||[]};function rO(t){if((0,eJ.Z)(t))return[t,t,t,t];if((0,ex.Z)(t)){var e=t.length;if(1===e)return[t[0],t[0],t[0],t[0]];if(2===e)return[t[0],t[1],t[0],t[1]];if(3===e)return[t[0],t[1],t[2],t[1]];if(4===e)return t}return[0,0,0,0]}var rM=function(t){function e(e){var n=t.call(this,e)||this;n.layoutEvents=[I.Dk.BOUNDS_CHANGED,I.Dk.INSERTED,I.Dk.REMOVED],n.$margin=rO(0),n.$padding=rO(0);var i=e.style||{},r=i.margin,a=i.padding;return n.margin=void 0===r?0:r,n.padding=void 0===a?0:a,n.isMutationObserved=!0,n.bindEvents(),n}return(0,rE.ZT)(e,t),Object.defineProperty(e.prototype,"margin",{get:function(){return this.$margin},set:function(t){this.$margin=rO(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this.$padding},set:function(t){this.$padding=rO(t)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var t=this.attributes,e=t.x,n=void 0===e?0:e,i=t.y,r=void 0===i?0:i,a=t.width,o=t.height,s=(0,rE.CR)(this.$margin,4),l=s[0],h=s[1],c=s[2],u=s[3];return new rw(n-u,r-l,a+u+h,o+l+c)},e.prototype.appendChild=function(e,n){return e.isMutationObserved=!0,t.prototype.appendChild.call(this,e,n),e},e.prototype.getAvailableSpace=function(){var t=this.attributes,e=t.width,n=t.height,i=(0,rE.CR)(this.$padding,4),r=i[0],a=i[1],o=i[2],s=i[3],l=(0,rE.CR)(this.$margin,4),h=l[0],c=l[3];return new rw(s+c,r+h,e-s-a,n-r-o)},e.prototype.layout=function(){if(this.attributes.display&&this.isConnected&&!this.children.some(function(t){return!t.isConnected}))try{var t=this.attributes,e=t.x,n=t.y;this.style.transform="translate(".concat(e,", ").concat(n,")");var i=rA(this.getAvailableSpace(),this.children.map(function(t){return t.getBBox()}),this.attributes);this.children.forEach(function(t,e){var n=i[e],r=n.x,a=n.y;t.style.transform="translate(".concat(r,", ").concat(a,")")})}catch(t){}},e.prototype.bindEvents=function(){var t=this;this.layoutEvents.forEach(function(e){t.addEventListener(e,function(e){e.target.isMutationObserved=!0,t.layout()})})},e.prototype.attributeChangedCallback=function(t,e,n){"margin"===t?this.margin=n:"padding"===t&&(this.padding=n),this.layout()},e}(I.ZA);function rT(t){rP(t,!0)}function rk(t){rP(t,!1)}function rP(t,e){var n=e?"visible":"hidden";!function t(e,n){n(e),e.children&&e.children.forEach(function(e){e&&t(e,n)})}(t,function(t){t.attr("visibility",n)})}var rL=n(83845),rD=function(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=5),Object.entries(e).forEach(function(r){var a=(0,rE.CR)(r,2),o=a[0],s=a[1];Object.prototype.hasOwnProperty.call(e,o)&&(s?(0,rL.Z)(s)?((0,rL.Z)(t[o])||(t[o]={}),n="A"&&n<="Z"};function rG(t,e,n){void 0===n&&(n=!1);var i={};return Object.entries(t).forEach(function(t){var r=(0,rE.CR)(t,2),a=r[0],o=r[1];if("className"===a||"class"===a);else if(rz(a,"show")&&rz(rZ(a,"show"),e)!==n)a==="".concat("show").concat(rj(e))?i[a]=o:i[a.replace(new RegExp(rj(e)),"")]=o;else if(!rz(a,"show")&&rz(a,e)!==n){var s=rZ(a,e);"filter"===s&&"function"==typeof o||(i[s]=o)}}),i}function rH(t,e){return Object.entries(t).reduce(function(t,n){var i=(0,rE.CR)(n,2),r=i[0],a=i[1];return r.startsWith("show")?t["show".concat(e).concat(r.slice(4))]=a:t["".concat(e).concat(rj(r))]=a,t},{})}function rW(t,e){void 0===e&&(e=["x","y","class","className"]);var n=["transform","transformOrigin","anchor","visibility","pointerEvents","zIndex","cursor","clipPath","clipPathTargets","offsetPath","offsetPathTargets","offsetDistance","draggable","droppable"],i={},r={};return Object.entries(t).forEach(function(t){var a=(0,rE.CR)(t,2),o=a[0],s=a[1];e.includes(o)||(-1!==n.indexOf(o)?r[o]=s:i[o]=s)}),[i,r]}var rV=function(t){function e(e){void 0===e&&(e={});var n=e.style,i=(0,rE._T)(e,["style"]);return t.call(this,(0,rE.pi)({style:(0,rE.pi)({text:"",fill:"black",fontFamily:"sans-serif",fontSize:16,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",lineWidth:1,textAlign:"start",textBaseline:"middle"},n)},i))||this}return(0,rE.ZT)(e,t),Object.defineProperty(e.prototype,"offscreenGroup",{get:function(){return this._offscreen||(this._offscreen=rB(this)),this._offscreen},enumerable:!1,configurable:!0}),e.prototype.disconnectedCallback=function(){var t;null===(t=this._offscreen)||void 0===t||t.destroy()},e}(I.xv),rU=function(){var t,e,n;function i(e,n,i,r,a,o,s){void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=null),void 0===r&&(r=null),void 0===a&&(a=[null,null,null,null,null]),void 0===o&&(o=[]),void 0===s&&(s=[]),t.add(this),this._elements=Array.from(e),this._data=n,this._parent=i,this._document=r,this._enter=a[0],this._update=a[1],this._exit=a[2],this._merge=a[3],this._split=a[4],this._transitions=o,this._facetElements=s}return i.prototype.selectAll=function(t){var n="string"==typeof t?this._parent.querySelectorAll(t):t;return new e(n,null,this._elements[0],this._document)},i.prototype.selectFacetAll=function(t){var n="string"==typeof t?this._parent.querySelectorAll(t):t;return new e(this._elements,null,this._parent,this._document,void 0,void 0,n)},i.prototype.select=function(t){var n="string"==typeof t?this._parent.querySelectorAll(t)[0]||null:t;return new e([n],null,n,this._document)},i.prototype.append=function(t){var n=this,i="function"==typeof t?t:function(){return n.createElement(t)},r=[];if(null!==this._data){for(var a=0;a2?[t[0]]:t.split("")}function rQ(t,e){var n=Object.entries(e).reduce(function(e,n){var i=(0,rE.CR)(n,2),r=i[0],a=i[1];return t.node().attr(r)||(e[r]=a),e},{});t.styles(n)}var rJ=function(t){function e(e){return t.call(this,e,{text:"",width:0,height:0,fill:"#4a505a",fontWeight:"bold",fontSize:12,fontFamily:"sans-serif",inset:0,spacing:0,position:"top-left"})||this}return(0,rE.ZT)(e,t),e.prototype.getAvailableSpace=function(){var t=this.attributes,e=t.width,n=t.height,i=t.position,r=t.spacing,a=t.inset,o=this.querySelector(rX.text.class);if(!o)return new rw(0,0,+e,+n);var s=o.getBBox(),l=s.width,h=s.height,c=(0,rE.CR)(rO(r),4),u=c[0],d=c[1],p=c[2],f=c[3],g=(0,rE.CR)([0,0,+e,+n],4),y=g[0],m=g[1],v=g[2],b=g[3],x=rq(i);if(x.includes("i"))return new rw(y,m,v,b);x.forEach(function(t,i){var r,a;"t"===t&&(m=(r=(0,rE.CR)(0===i?[h+p,+n-h-p]:[0,+n],2))[0],b=r[1]),"r"===t&&(v=(0,rE.CR)([+e-l-f],1)[0]),"b"===t&&(b=(0,rE.CR)([+n-h-u],1)[0]),"l"===t&&(y=(a=(0,rE.CR)(0===i?[l+d,+e-l-d]:[0,+e],2))[0],v=a[1])});var E=(0,rE.CR)(rO(a),4),w=E[0],C=E[1],S=E[2],R=E[3],A=(0,rE.CR)([R+C,w+S],2),O=A[0],M=A[1];return new rw(y+R,m+w,v-O,b-M)},e.prototype.getBBox=function(){return this.title?this.title.getBBox():new rw(0,0,0,0)},e.prototype.render=function(t,e){var n,i,r,a,o,s,l,h,c,u,d,p,f,g,y,m,v=this;t.width,t.height,t.position,t.spacing;var b=(0,rE._T)(t,["width","height","position","spacing"]),x=(0,rE.CR)(rW(b),1)[0],E=(o=t.width,s=t.height,l=t.position,c=(h=(0,rE.CR)([+o/2,+s/2],2))[0],u=h[1],p=(d=(0,rE.CR)([+c,+u,"center","middle"],4))[0],f=d[1],g=d[2],y=d[3],(m=rq(l)).includes("l")&&(p=(n=(0,rE.CR)([0,"start"],2))[0],g=n[1]),m.includes("r")&&(p=(i=(0,rE.CR)([+o,"end"],2))[0],g=i[1]),m.includes("t")&&(f=(r=(0,rE.CR)([0,"top"],2))[0],y=r[1]),m.includes("b")&&(f=(a=(0,rE.CR)([+s,"bottom"],2))[0],y=a[1]),{x:p,y:f,textAlign:g,textBaseline:y}),w=E.x,C=E.y,S=E.textAlign,R=E.textBaseline;r$(!!b.text,rY(e),function(t){v.title=t.maybeAppendByClassName(rX.text,"text").styles(x).call(rQ,{x:w,y:C,textAlign:S,textBaseline:R}).node()})},e}(rF),r0=n(13279);function r1(t,e){return(0,td.Z)(t)?t.apply(void 0,(0,rE.ev)([],(0,rE.CR)(e),!1)):t}function r2(t){if(!t)return{enter:!1,update:!1,exit:!1};var e=["enter","update","exit"],n=Object.fromEntries(Object.entries(t).filter(function(t){var n=(0,rE.CR)(t,1)[0];return!e.includes(n)}));return Object.fromEntries(e.map(function(e){return"boolean"!=typeof t&&"enter"in t&&"update"in t&&"exit"in t?!1===t[e]?[e,!1]:[e,(0,rE.pi)((0,rE.pi)({},t[e]),n)]:[e,n]}))}function r3(t,e){t?t.finished.then(e):e()}function r6(t,e){"update"in t?t.update(e):t.attr(e)}function r4(t,e,n){return 0===e.length?null:n?t.animate(e,n):(r6(t,{style:e.slice(-1)[0]}),null)}function r8(t,e,n){var i={},r={};return(Object.entries(e).forEach(function(e){var n=(0,rE.CR)(e,2),a=n[0],o=n[1];if(!(0,_.Z)(o)){var s=t.style[a]||t.parsedStyle[a]||0;s!==o&&(i[a]=s,r[a]=o)}}),n)?r4(t,[i,r],(0,rE.pi)({fill:"both"},n)):(r6(t,r),null)}function r9(t,e,n){void 0===n&&(n=!1);var i=t.getBBox(),r=e/Math.max(i.width,i.height);return n&&(t.style.transform="scale(".concat(r,")")),r}var r5=function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]]},r7=function(t,e,n){return[["M",t,e+n],["L",t,e-n]]},at=function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},ae=rK({prevBtnGroup:"prev-btn-group",prevBtn:"prev-btn",nextBtnGroup:"next-btn-group",nextBtn:"next-btn",pageInfoGroup:"page-info-group",pageInfo:"page-info",playWindow:"play-window",contentGroup:"content-group",controller:"controller",clipPath:"clip-path"},"navigator"),an=function(t){function e(e){var n=t.call(this,e,{x:0,y:0,animate:{easing:"linear",duration:200,fill:"both"},buttonCursor:"pointer",buttonFill:"black",buttonD:[["M",-6,-6],["L",6,0],["L",-6,6],["Z"]],buttonSize:12,controllerPadding:5,controllerSpacing:5,formatter:function(t,e){return"".concat(t,"/").concat(e)},defaultPage:0,loop:!1,orientation:"horizontal",pageNumFill:"black",pageNumFontSize:12,pageNumTextAlign:"start",pageNumTextBaseline:"middle"})||this;return n.playState="idle",n.contentGroup=n.appendChild(new I.ZA({class:ae.contentGroup.name})),n.playWindow=n.contentGroup.appendChild(new I.ZA({class:ae.playWindow.name})),n.innerCurrPage=n.defaultPage,n}return(0,rE.ZT)(e,t),Object.defineProperty(e.prototype,"defaultPage",{get:function(){var t=this.attributes.defaultPage;return(0,im.Z)(t,0,Math.max(this.pageViews.length-1,0))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageViews",{get:function(){return this.playWindow.children},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"controllerShape",{get:function(){return this.totalPages>1?{width:55,height:0}:{width:0,height:0}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageShape",{get:function(){var t,e,n=this.pageViews,i=(0,rE.CR)(((null===(e=(t=n.map(function(t){var e=t.getBBox();return[e.width,e.height]}))[0])||void 0===e?void 0:e.map(function(e,n){return t.map(function(t){return t[n]})}))||[]).map(function(t){return Math.max.apply(Math,(0,rE.ev)([],(0,rE.CR)(t),!1))}),2),r=i[0],a=i[1],o=this.attributes,s=o.pageWidth,l=o.pageHeight;return{pageWidth:void 0===s?r:s,pageHeight:void 0===l?a:l}},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.playWindow},Object.defineProperty(e.prototype,"totalPages",{get:function(){return this.pageViews.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currPage",{get:function(){return this.innerCurrPage},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var e=t.prototype.getBBox.call(this),n=e.x,i=e.y,r=this.controllerShape,a=this.pageShape,o=a.pageWidth,s=a.pageHeight;return new rw(n,i,o+r.width,s)},e.prototype.goTo=function(t){var e=this,n=this.attributes.animate,i=this.currPage,r=this.playState,a=this.playWindow,o=this.pageViews;if("idle"!==r||t<0||o.length<=0||t>=o.length)return null;o[i].setLocalPosition(0,0),this.prepareFollowingPage(t);var s=(0,rE.CR)(this.getFollowingPageDiff(t),2),l=s[0],h=s[1];this.playState="running";var c=r4(a,[{transform:"translate(0, 0)"},{transform:"translate(".concat(-l,", ").concat(-h,")")}],n);return r3(c,function(){e.innerCurrPage=t,e.playState="idle",e.setVisiblePages([t]),e.updatePageInfo()}),c},e.prototype.prev=function(){var t=this.attributes.loop,e=this.pageViews.length,n=this.currPage;if(!t&&n<=0)return null;var i=t?(n-1+e)%e:(0,im.Z)(n-1,0,e);return this.goTo(i)},e.prototype.next=function(){var t=this.attributes.loop,e=this.pageViews.length,n=this.currPage;if(!t&&n>=e-1)return null;var i=t?(n+1)%e:(0,im.Z)(n+1,0,e);return this.goTo(i)},e.prototype.renderClipPath=function(t){var e=this.pageShape,n=e.pageWidth,i=e.pageHeight;if(!n||!i){this.contentGroup.style.clipPath=void 0;return}this.clipPath=t.maybeAppendByClassName(ae.clipPath,"rect").styles({width:n,height:i}),this.contentGroup.attr("clipPath",this.clipPath.node())},e.prototype.setVisiblePages=function(t){this.playWindow.children.forEach(function(e,n){t.includes(n)?rT(e):rk(e)})},e.prototype.adjustControllerLayout=function(){var t=this.prevBtnGroup,e=this.nextBtnGroup,n=this.pageInfoGroup,i=this.attributes,r=i.orientation,a=i.controllerPadding,o=n.getBBox(),s=o.width;o.height;var l=(0,rE.CR)("horizontal"===r?[-180,0]:[-90,90],2),h=l[0],c=l[1];t.setLocalEulerAngles(h),e.setLocalEulerAngles(c);var u=t.getBBox(),d=u.width,p=u.height,f=e.getBBox(),g=f.width,y=f.height,m=Math.max(d,s,g),v="horizontal"===r?{offset:[[0,0],[d/2+a,0],[d+s+2*a,0]],textAlign:"start"}:{offset:[[m/2,-p-a],[m/2,0],[m/2,y+a]],textAlign:"center"},b=(0,rE.CR)(v.offset,3),x=(0,rE.CR)(b[0],2),E=x[0],w=x[1],C=(0,rE.CR)(b[1],2),S=C[0],R=C[1],A=(0,rE.CR)(b[2],2),O=A[0],M=A[1],T=v.textAlign,k=n.querySelector("text");k&&(k.style.textAlign=T),t.setLocalPosition(E,w),n.setLocalPosition(S,R),e.setLocalPosition(O,M)},e.prototype.updatePageInfo=function(){var t,e=this.currPage,n=this.pageViews,i=this.attributes.formatter;n.length<2||(null===(t=this.pageInfoGroup.querySelector(ae.pageInfo.class))||void 0===t||t.attr("text",i(e+1,n.length)),this.adjustControllerLayout())},e.prototype.getFollowingPageDiff=function(t){var e=this.currPage;if(e===t)return[0,0];var n=this.attributes.orientation,i=this.pageShape,r=i.pageWidth,a=i.pageHeight,o=t=2,s=t.maybeAppendByClassName(ae.controller,"g");if(rP(s.node(),o),o){var l=rG(this.attributes,"button"),h=rG(this.attributes,"pageNum"),c=(0,rE.CR)(rW(l),2),u=c[0],d=c[1],p=u.size,f=(0,rE._T)(u,["size"]),g=!s.select(ae.prevBtnGroup.class).node(),y=s.maybeAppendByClassName(ae.prevBtnGroup,"g").styles(d);this.prevBtnGroup=y.node();var m=y.maybeAppendByClassName(ae.prevBtn,"path"),v=s.maybeAppendByClassName(ae.nextBtnGroup,"g").styles(d);this.nextBtnGroup=v.node(),[m,v.maybeAppendByClassName(ae.nextBtn,"path")].forEach(function(t){t.styles((0,rE.pi)((0,rE.pi)({},f),{transformOrigin:"center"})),r9(t.node(),p,!0)});var b=s.maybeAppendByClassName(ae.pageInfoGroup,"g");this.pageInfoGroup=b.node(),b.maybeAppendByClassName(ae.pageInfo,"text").styles(h),this.updatePageInfo(),s.node().setLocalPosition(r+n,a/2),g&&(this.prevBtnGroup.addEventListener("click",function(){e.prev()}),this.nextBtnGroup.addEventListener("click",function(){e.next()}))}},e.prototype.render=function(t,e){var n=t.x,i=t.y,r=void 0===i?0:i;this.attr("transform","translate(".concat(void 0===n?0:n,", ").concat(r,")"));var a=rY(e);this.renderClipPath(a),this.renderController(a),this.setVisiblePages([this.defaultPage]),this.goTo(this.defaultPage)},e.prototype.bindEvents=function(){var t=this,e=(0,ii.Z)(function(){return t.render(t.attributes,t)},50);this.playWindow.addEventListener(I.Dk.INSERTED,e),this.playWindow.addEventListener(I.Dk.REMOVED,e)},e}(rF),ai=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,rE.ZT)(e,t),e.prototype.render=function(t,n){var i,r=t.x,a=void 0===r?0:r,o=t.y,s=void 0===o?0:o,l=this.getSubShapeStyle(t),h=l.symbol,c=l.size,u=void 0===c?16:c,d=(0,rE._T)(l,["symbol","size"]),p=["base64","url","image"].includes(i=function(t){var e="default";if((0,j.Z)(t)&&t instanceof Image)e="image";else if((0,td.Z)(t))e="symbol";else if((0,t0.Z)(t)){var n=RegExp("data:(image|text)");e=t.match(n)?"base64":/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(t)?"url":"symbol"}return e}(h))?"image":h&&"symbol"===i?"path":null;r$(!!p,rY(n),function(t){t.maybeAppendByClassName("marker",p).attr("className","marker ".concat(p,"-marker")).call(function(t){if("image"===p){var n=2*u;t.styles({img:h,width:n,height:n,x:a-u,y:s-u})}else{var n=u/2,i=(0,td.Z)(h)?h:e.getSymbol(h);t.styles((0,rE.pi)({d:null==i?void 0:i(a,s,n)},d))}})})},e.MARKER_SYMBOL_MAP=new Map,e.registerSymbol=function(t,n){e.MARKER_SYMBOL_MAP.set(t,n)},e.getSymbol=function(t){return e.MARKER_SYMBOL_MAP.get(t)},e.getSymbols=function(){return Array.from(e.MARKER_SYMBOL_MAP.keys())},e}(rF);function ar(t,e,n){return void 0===t&&(t="horizontal"),"horizontal"===t?e:n}function aa(t){var e=t.getLocalBounds(),n=e.min,i=e.max,r=(0,rE.CR)([n,i],2),a=(0,rE.CR)(r[0],2),o=a[0],s=a[1],l=(0,rE.CR)(r[1],2),h=l[0],c=l[1];return{x:o,y:s,width:h-o,height:c-s,left:o,bottom:c,top:s,right:h}}function ao(t,e){var n=(0,rE.CR)(t,2),i=n[0],r=n[1],a=(0,rE.CR)(e,2),o=a[0],s=a[1];return i!==o&&r===s}function as(t){return"function"==typeof t?t():(0,t0.Z)(t)||(0,eJ.Z)(t)?new rV({style:{text:String(t)}}):t}ai.registerSymbol("cross",function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]}),ai.registerSymbol("hyphen",function(t,e,n){return[["M",t-n,e],["L",t+n,e]]}),ai.registerSymbol("line",r7),ai.registerSymbol("plus",function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]}),ai.registerSymbol("tick",function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]}),ai.registerSymbol("circle",r5),ai.registerSymbol("point",r5),ai.registerSymbol("bowtie",function(t,e,n){var i=n-1.5;return[["M",t-n,e-i],["L",t+n,e+i],["L",t+n,e-i],["L",t-n,e+i],["Z"]]}),ai.registerSymbol("hexagon",function(t,e,n){var i=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+i,e-n/2],["L",t+i,e+n/2],["L",t,e+n],["L",t-i,e+n/2],["L",t-i,e-n/2],["Z"]]}),ai.registerSymbol("square",function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]}),ai.registerSymbol("diamond",function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]}),ai.registerSymbol("triangle",function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+i],["L",t,e-i],["L",t+n,e+i],["Z"]]}),ai.registerSymbol("triangle-down",function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-i],["L",t+n,e-i],["L",t,e+i],["Z"]]}),ai.registerSymbol("line",r7),ai.registerSymbol("dot",at),ai.registerSymbol("dash",at),ai.registerSymbol("smooth",function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]}),ai.registerSymbol("hv",function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]}),ai.registerSymbol("vh",function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]}),ai.registerSymbol("hvh",function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]}),ai.registerSymbol("vhv",function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}),ai.registerSymbol("hiddenHandle",function(t,e,n){var i=1.4*n;return[["M",t-n,e-i],["L",t+n,e-i],["L",t+n,e+i],["L",t-n,e+i],["Z"]]}),ai.registerSymbol("verticalHandle",function(t,e,n){var i=1.4*n,r=n/2,a=n/6,o=t+.4*i;return[["M",t,e],["L",o,e+r],["L",t+i,e+r],["L",t+i,e-r],["L",o,e-r],["Z"],["M",o,e+a],["L",t+i-2,e+a],["M",o,e-a],["L",t+i-2,e-a]]}),ai.registerSymbol("horizontalHandle",function(t,e,n){var i=1.4*n,r=n/2,a=n/6,o=e+.4*i;return[["M",t,e],["L",t-r,o],["L",t-r,e+i],["L",t+r,e+i],["L",t+r,o],["Z"],["M",t-a,o],["L",t-a,e+i-2],["M",t+a,o],["L",t+a,e+i-2]]});var al=(0,n(92426).Z)(function(t,e){var n=e.fontSize,i=e.fontFamily,r=e.fontWeight,a=e.fontStyle,o=e.fontVariant;return D?D(t,n):(L||(L=I.GZ.offscreenCanvasCreator.getOrCreateContext(void 0)),L.font=[a,o,r,"".concat(n,"px"),i].join(" "),L.measureText(t).width)},function(t,e){return[t,Object.values(e||ah(t)).join()].join("")},4096),ah=function(t){var e=t.style.fontFamily||"sans-serif",n=t.style.fontWeight||"normal",i=t.style.fontStyle||"normal",r=t.style.fontVariant,a=t.style.fontSize;return{fontSize:a="object"==typeof a?a.value:a,fontFamily:e,fontWeight:n,fontStyle:i,fontVariant:r}};function ac(t){return"text"===t.nodeName?t:"g"===t.nodeName&&1===t.children.length&&"text"===t.children[0].nodeName?t.children[0]:null}function au(t,e){var n=ac(t);n&&n.attr(e)}function ad(t,e,n){void 0===n&&(n="..."),au(t,{wordWrap:!0,wordWrapWidth:e,maxLines:1,textOverflow:n})}var ap=rK({layout:"flex",markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label",valueGroup:"value-group",value:"value",backgroundGroup:"background-group",background:"background"},"legend-category-item"),af=function(t){function e(e){return t.call(this,e,{span:[1,1],marker:function(){return new I.Cd({style:{r:6}})},markerSize:10,labelFill:"#646464",valueFill:"#646464",labelFontSize:12,valueFontSize:12,labelTextBaseline:"middle",valueTextBaseline:"middle"})||this}return(0,rE.ZT)(e,t),Object.defineProperty(e.prototype,"showValue",{get:function(){var t=this.attributes.valueText;return!!t&&("string"==typeof t||"number"==typeof t?""!==t:"function"==typeof t||""!==t.attr("text"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"actualSpace",{get:function(){var t=this.labelGroup,e=this.valueGroup,n=this.attributes.markerSize,i=t.node().getBBox(),r=i.width,a=i.height,o=e.node().getBBox();return{markerWidth:n,labelWidth:r,valueWidth:o.width,height:Math.max(n,a,o.height)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"span",{get:function(){var t=this.attributes.span;if(!t)return[1,1];var e=(0,rE.CR)(rO(t),2),n=e[0],i=e[1],r=this.showValue?i:0,a=n+r;return[n/a,r/a]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){var t,e=this.attributes,n=e.markerSize,i=e.width,r=this.actualSpace,a=r.markerWidth,o=r.height,s=this.actualSpace,l=s.labelWidth,h=s.valueWidth,c=(0,rE.CR)(this.spacing,2),u=c[0],d=c[1];if(i){var p=i-n-u-d,f=(0,rE.CR)(this.span,2),g=f[0],y=f[1];l=(t=(0,rE.CR)([g*p,y*p],2))[0],h=t[1]}return{width:a+l+h+u+d,height:o,markerWidth:a,labelWidth:l,valueWidth:h}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"spacing",{get:function(){var t=this.attributes.spacing;if(!t)return[0,0];var e=(0,rE.CR)(rO(t),2),n=e[0],i=e[1];return this.showValue?[n,i]:[n,0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){var t=this.shape,e=t.markerWidth,n=t.labelWidth,i=t.valueWidth,r=t.width,a=t.height,o=(0,rE.CR)(this.spacing,2),s=o[0];return{height:a,width:r,markerWidth:e,labelWidth:n,valueWidth:i,position:[e/2,e+s,e+n+s+o[1]]}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleSize",{get:function(){var t,e=(t=this.markerGroup.node().querySelector(ap.marker.class))?t.style:{},n=this.attributes,i=n.markerSize,r=n.markerStrokeWidth,a=void 0===r?e.strokeWidth:r,o=n.markerLineWidth,s=void 0===o?e.lineWidth:o,l=n.markerStroke,h=void 0===l?e.stroke:l,c=+(a||s||(h?1:0))*Math.sqrt(2),u=this.markerGroup.node().getBBox();return(1-c/Math.max(u.width,u.height))*i},enumerable:!1,configurable:!0}),e.prototype.renderMarker=function(t){var e=this,n=this.attributes.marker,i=rG(this.attributes,"marker");this.markerGroup=t.maybeAppendByClassName(ap.markerGroup,"g").style("zIndex",0),r$(!!n,this.markerGroup,function(){var t,r=e.markerGroup.node(),a=null===(t=r.childNodes)||void 0===t?void 0:t[0],o="string"==typeof n?new ai({style:{symbol:n},className:ap.marker.name}):n();a?o.nodeName===a.nodeName?a instanceof ai?a.update((0,rE.pi)((0,rE.pi)({},i),{symbol:n})):(function(t,e){var n,i,r=e.attributes;try{for(var a=(0,rE.XA)(Object.entries(r)),o=a.next();!o.done;o=a.next()){var s=(0,rE.CR)(o.value,2),l=s[0],h=s[1];"id"!==l&&"className"!==l&&t.attr(l,h)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}}(a,o),rY(a).styles(i)):(a.remove(),rY(o).attr("className",ap.marker.name).styles(i),r.appendChild(o)):(o instanceof ai||rY(o).attr("className",ap.marker.name).styles(i),r.appendChild(o)),e.markerGroup.node().scale(1/e.markerGroup.node().getScale()[0]);var s=r9(e.markerGroup.node(),e.scaleSize,!0);e.markerGroup.node().style._transform="scale(".concat(s,")")})},e.prototype.renderLabel=function(t){var e=rG(this.attributes,"label"),n=e.text,i=(0,rE._T)(e,["text"]);this.labelGroup=t.maybeAppendByClassName(ap.labelGroup,"g").style("zIndex",0),this.labelGroup.maybeAppendByClassName(ap.label,function(){return as(n)}).styles(i)},e.prototype.renderValue=function(t){var e=this,n=rG(this.attributes,"value"),i=n.text,r=(0,rE._T)(n,["text"]);this.valueGroup=t.maybeAppendByClassName(ap.valueGroup,"g").style("zIndex",0),r$(this.showValue,this.valueGroup,function(){e.valueGroup.maybeAppendByClassName(ap.value,function(){return as(i)}).styles(r)})},e.prototype.renderBackground=function(t){var e=this.shape,n=e.width,i=e.height,r=rG(this.attributes,"background");this.background=t.maybeAppendByClassName(ap.backgroundGroup,"g").style("zIndex",-1),this.background.maybeAppendByClassName(ap.background,"rect").styles((0,rE.pi)({width:n,height:i},r))},e.prototype.adjustLayout=function(){var t=this.layout,e=t.labelWidth,n=t.valueWidth,i=t.height,r=(0,rE.CR)(t.position,3),a=r[0],o=r[1],s=r[2],l=i/2;this.markerGroup.styles({transform:"translate(".concat(a,", ").concat(l,")").concat(this.markerGroup.node().style._transform)}),this.labelGroup.styles({transform:"translate(".concat(o,", ").concat(l,")")}),ad(this.labelGroup.select(ap.label.class).node(),Math.ceil(e)),this.showValue&&(this.valueGroup.styles({transform:"translate(".concat(s,", ").concat(l,")")}),ad(this.valueGroup.select(ap.value.class).node(),Math.ceil(n)))},e.prototype.render=function(t,e){var n=rY(e),i=t.x,r=t.y,a=void 0===r?0:r;n.styles({transform:"translate(".concat(void 0===i?0:i,", ").concat(a,")")}),this.renderMarker(n),this.renderLabel(n),this.renderValue(n),this.renderBackground(n),this.adjustLayout()},e}(rF),ag=rK({page:"item-page",navigator:"navigator",item:"item"},"items"),ay=function(t,e,n){return(void 0===n&&(n=!0),t)?e(t):n},am=function(t){function e(e){var n=t.call(this,e,{data:[],gridRow:1/0,gridCol:void 0,padding:0,width:1e3,height:100,rowPadding:0,colPadding:0,layout:"flex",orientation:"horizontal",click:r0.Z,mouseenter:r0.Z,mouseleave:r0.Z})||this;return n.navigatorShape=[0,0],n}return(0,rE.ZT)(e,t),Object.defineProperty(e.prototype,"pageViews",{get:function(){return this.navigator.getContainer()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){var t=this.attributes,e=t.gridRow,n=t.gridCol,i=t.data;if(!e&&!n)throw Error("gridRow and gridCol can not be set null at the same time");return e&&n?[e,n]:e?[e,i.length]:[i.length,n]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderData",{get:function(){var t=this.attributes,e=t.data,n=t.layout,i=rG(this.attributes,"item");return e.map(function(t,r){var a=t.id,o=void 0===a?r:a,s=t.label,l=t.value;return{id:"".concat(o),index:r,style:(0,rE.pi)({layout:n,labelText:s,valueText:l},Object.fromEntries(Object.entries(i).map(function(n){var i=(0,rE.CR)(n,2);return[i[0],r1(i[1],[t,r,e])]})))}})},enumerable:!1,configurable:!0}),e.prototype.getGridLayout=function(){var t=this,e=this.attributes,n=e.orientation,i=e.width,r=e.rowPadding,a=e.colPadding,o=(0,rE.CR)(this.navigatorShape,1)[0],s=(0,rE.CR)(this.grid,2),l=s[0],h=s[1],c=h*l,u=0;return this.pageViews.children.map(function(e,s){var d,p,f=Math.floor(s/c),g=s%c,y=t.ifHorizontal(h,l),m=[Math.floor(g/y),g%y];"vertical"===n&&m.reverse();var v=(0,rE.CR)(m,2),b=v[0],x=v[1],E=(i-o-(h-1)*a)/h,w=e.getBBox().height,C=(0,rE.CR)([0,0],2),S=C[0],R=C[1];return"horizontal"===n?(S=(d=(0,rE.CR)([u,b*(w+r)],2))[0],R=d[1],u=x===h-1?0:u+E+a):(S=(p=(0,rE.CR)([x*(E+a),u],2))[0],R=p[1],u=b===l-1?0:u+w+r),{page:f,index:s,row:b,col:x,pageIndex:g,width:E,height:w,x:S,y:R}})},e.prototype.getFlexLayout=function(){var t=this.attributes,e=t.width,n=t.height,i=t.rowPadding,r=t.colPadding,a=(0,rE.CR)(this.navigatorShape,1)[0],o=(0,rE.CR)(this.grid,2),s=o[0],l=o[1],h=(0,rE.CR)([e-a,n],2),c=h[0],u=h[1],d=(0,rE.CR)([0,0,0,0,0,0,0,0],8),p=d[0],f=d[1],g=d[2],y=d[3],m=d[4],v=d[5],b=d[6],x=d[7];return this.pageViews.children.map(function(t,e){var n,a,o,h,d=t.getBBox(),E=d.width,w=d.height,C=0===b?0:r,S=b+C+E;return S<=c&&ay(m,function(t){return t0?(this.navigatorShape=[55,0],t.call(this)):e},enumerable:!1,configurable:!0}),e.prototype.ifHorizontal=function(t,e){return ar(this.attributes.orientation,t,e)},e.prototype.flattenPage=function(t){t.querySelectorAll(ag.item.class).forEach(function(e){t.appendChild(e)}),t.querySelectorAll(ag.page.class).forEach(function(e){t.removeChild(e).destroy()})},e.prototype.renderItems=function(t){var e=this.attributes,n=e.click,i=e.mouseenter,r=e.mouseleave;this.flattenPage(t);var a=this.dispatchCustomEvent.bind(this);rY(t).selectAll(ag.item.class).data(this.renderData,function(t){return t.id}).join(function(t){return t.append(function(t){var e=t.style;return new af({style:e})}).attr("className",ag.item.name).on("click",function(){null==n||n(this),a("itemClick",{item:this})}).on("pointerenter",function(){null==i||i(this),a("itemMouseenter",{item:this})}).on("pointerleave",function(){null==r||r(this),a("itemMouseleave",{item:this})})},function(t){return t.each(function(t){var e=t.style;this.update(e)})},function(t){return t.remove()})},e.prototype.relayoutNavigator=function(){var t,e=this.attributes,n=e.layout,i=e.width,r=(null===(t=this.pageViews.children[0])||void 0===t?void 0:t.getBBox().height)||0,a=(0,rE.CR)(this.navigatorShape,2),o=a[0],s=a[1];this.navigator.update("grid"===n?{pageWidth:i-o,pageHeight:r-s}:{})},e.prototype.adjustLayout=function(){var t,e,n=this,i=Object.entries((t=this.itemsLayout,e="page",t.reduce(function(t,n){return(t[n[e]]=t[n[e]]||[]).push(n),t},{}))).map(function(t){var e=(0,rE.CR)(t,2);return{page:e[0],layouts:e[1]}}),r=(0,rE.ev)([],(0,rE.CR)(this.navigator.getContainer().children),!1);i.forEach(function(t){var e=t.layouts,i=n.pageViews.appendChild(new I.ZA({className:ag.page.name}));e.forEach(function(t){var e=t.x,n=t.y,a=t.index,o=t.width,s=t.height,l=r[a];i.appendChild(l),(0,ei.Z)(l,"__layout__",t),l.update({x:e,y:n,width:o,height:s})})}),this.relayoutNavigator()},e.prototype.renderNavigator=function(t){var e=rN({orientation:this.attributes.orientation},rG(this.attributes,"nav")),n=this;return t.selectAll(ag.navigator.class).data(["nav"]).join(function(t){return t.append(function(){return new an({style:e})}).attr("className",ag.navigator.name).each(function(){n.navigator=this})},function(t){return t.each(function(){this.update(e)})},function(t){return t.remove()}),this.navigator},e.prototype.getBBox=function(){return this.navigator.getBBox()},e.prototype.render=function(t,e){var n=this.attributes.data;if(n&&0!==n.length){var i=this.renderNavigator(rY(e));this.renderItems(i.getContainer()),this.adjustLayout()}},e.prototype.dispatchCustomEvent=function(t,e){var n=new I.Aw(t,{detail:e});this.dispatchEvent(n)},e}(rF),av=rK({markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label"},"handle"),ab={showLabel:!0,formatter:function(t){return t.toString()},markerSize:25,markerStroke:"#c5c5c5",markerFill:"#fff",markerLineWidth:1,labelFontSize:12,labelFill:"#c5c5c5",labelText:"",orientation:"vertical",spacing:0};!function(t){function e(e){return t.call(this,e,ab)||this}(0,rE.ZT)(e,t),e.prototype.render=function(t,e){var n=rY(e).maybeAppendByClassName(av.markerGroup,"g");this.renderMarker(n);var i=rY(e).maybeAppendByClassName(av.labelGroup,"g");this.renderLabel(i)},e.prototype.renderMarker=function(t){var e=this,n=this.attributes,i=n.orientation,r=n.markerSymbol,a=void 0===r?ar(i,"horizontalHandle","verticalHandle"):r;r$(!!a,t,function(t){var n=rG(e.attributes,"marker"),i=(0,rE.pi)({symbol:a},n);e.marker=t.maybeAppendByClassName(av.marker,function(){return new ai({style:i})}).update(i)})},e.prototype.renderLabel=function(t){var e=this,n=this.attributes,i=n.showLabel,r=n.orientation,a=n.spacing,o=void 0===a?0:a,s=n.formatter;r$(i,t,function(t){var n,i=rG(e.attributes,"label"),a=i.text,l=(0,rE._T)(i,["text"]),h=(null===(n=t.select(av.marker.class))||void 0===n?void 0:n.node().getBBox())||{},c=h.width,u=h.height,d=(0,rE.CR)(ar(r,[0,(void 0===u?0:u)+o,"center","top"],[(void 0===c?0:c)+o,0,"start","middle"]),4),p=d[0],f=d[1],g=d[2],y=d[3];t.maybeAppendByClassName(av.label,"text").styles((0,rE.pi)((0,rE.pi)({},l),{x:p,y:f,text:s(a).toString(),textAlign:g,textBaseline:y}))})}}(rF);var ax={showTitle:!0,padding:0,orientation:"horizontal",backgroundFill:"transparent",titleText:"",titleSpacing:4,titlePosition:"top-left",titleFill:"#2C3542",titleFontWeight:"bold",titleFontFamily:"sans-serif",titleFontSize:12},aE=rN({},ax,{});rN({},ax,rH(ab,"handle"),{color:["#d0e3fa","#acc7f6","#8daaf2","#6d8eea","#4d73cd","#325bb1","#5a3e75","#8c3c79","#e23455","#e7655b"],indicatorBackgroundFill:"#262626",indicatorLabelFill:"white",indicatorLabelFontSize:12,indicatorVisibility:"hidden",labelAlign:"value",labelDirection:"positive",labelSpacing:5,showHandle:!0,showIndicator:!0,showLabel:!0,slidable:!0,titleText:"",type:"continuous"});var aw=rK({title:"title",titleGroup:"title-group",items:"items",itemsGroup:"items-group",contentGroup:"content-group",ribbonGroup:"ribbon-group",ribbon:"ribbon",handlesGroup:"handles-group",handle:"handle",startHandle:"start-handle",endHandle:"end-handle",labelGroup:"label-group",label:"label",indicator:"indicator"},"legend"),aC=function(t){function e(e){return t.call(this,e,aE)||this}return(0,rE.ZT)(e,t),e.prototype.renderTitle=function(t,e,n){var i=this.attributes,r=i.showTitle,a=i.titleText,o=rG(this.attributes,"title"),s=(0,rE.CR)(rW(o),2),l=s[0],h=s[1];this.titleGroup=t.maybeAppendByClassName(aw.titleGroup,"g").styles(h);var c=(0,rE.pi)((0,rE.pi)({width:e,height:n},l),{text:r?a:""});this.title=this.titleGroup.maybeAppendByClassName(aw.title,function(){return new rJ({style:c})}).update(c)},e.prototype.renderItems=function(t,e){var n=e.x,i=e.y,r=e.width,a=e.height,o=rG(this.attributes,"title",!0),s=(0,rE.CR)(rW(o),2),l=s[0],h=s[1],c=(0,rE.pi)((0,rE.pi)({},l),{width:r,height:a,x:0,y:0});this.itemsGroup=t.maybeAppendByClassName(aw.itemsGroup,"g").styles((0,rE.pi)((0,rE.pi)({},h),{transform:"translate(".concat(n,", ").concat(i,")")}));var u=this;this.itemsGroup.selectAll(aw.items.class).data(["items"]).join(function(t){return t.append(function(){return new am({style:c})}).attr("className",aw.items.name).each(function(){u.items=rY(this)})},function(t){return t.update(c)},function(t){return t.remove()})},e.prototype.adjustLayout=function(){if(this.attributes.showTitle){var t=this.title.node().getAvailableSpace(),e=t.x,n=t.y;this.itemsGroup.node().style.transform="translate(".concat(e,", ").concat(n,")")}},Object.defineProperty(e.prototype,"availableSpace",{get:function(){var t=this.attributes,e=t.showTitle,n=t.width,i=t.height;return e?this.title.node().getAvailableSpace():new rw(0,0,n,i)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var e,n,i=null===(e=this.title)||void 0===e?void 0:e.node(),r=null===(n=this.items)||void 0===n?void 0:n.node();return i&&r?function(t,e){var n=t.attributes,i=n.position,r=n.spacing,a=n.inset,o=n.text,s=t.getBBox(),l=e.getBBox(),h=rq(i),c=(0,rE.CR)(rO(o?r:0),4),u=c[0],d=c[1],p=c[2],f=c[3],g=(0,rE.CR)(rO(a),4),y=g[0],m=g[1],v=g[2],b=g[3],x=(0,rE.CR)([f+d,u+p],2),E=x[0],w=x[1],C=(0,rE.CR)([b+m,y+v],2),S=C[0],R=C[1];if("l"===h[0])return new rw(s.x,s.y,l.width+s.width+E+S,Math.max(l.height+R,s.height));if("t"===h[0])return new rw(s.x,s.y,Math.max(l.width+S,s.width),l.height+s.height+w+R);var A=(0,rE.CR)([e.attributes.width||l.width,e.attributes.height||l.height],2),O=A[0],M=A[1];return new rw(l.x,l.y,O+s.width+E+S,M+s.height+w+R)}(i,r):t.prototype.getBBox.call(this)},e.prototype.render=function(t,e){var n=this.attributes,i=n.width,r=n.height,a=n.x,o=n.y,s=void 0===o?0:o,l=rY(e);e.style.transform="translate(".concat(void 0===a?0:a,", ").concat(s,")"),this.renderTitle(l,i,r),this.renderItems(l,this.availableSpace),this.adjustLayout()},e}(rF);class aS extends iF{update(t){super.update(t),this.clear(),this.createElement()}clear(){var t;null===(t=this.element)||void 0===t||t.destroy(),this.element=null,this.draw=!1}updateElement(){if(!this.element)return;let t=this.element.getChildByIndex(0);t.update({itemMarkerOpacity:t=>{let{id:e}=t;return!this.selectedItems.length||this.selectedItems.includes(e)?1:.5},itemLabelOpacity:t=>{let{id:e}=t;return!this.selectedItems.length||this.selectedItems.includes(e)?1:.5}})}destroy(){this.clear(),this.context.graph.off(R.AFTER_DRAW,this.createElement),super.destroy()}constructor(t,e){super(t,Object.assign({},aS.defaultOptions,e)),this.typePrefix="__data__",this.element=null,this.draw=!1,this.fieldMap={node:new Map,edge:new Map,combo:new Map},this.selectedItems=[],this.bindEvents=()=>{let{graph:t}=this.context;t.on(R.AFTER_DRAW,this.createElement)},this.changeState=(t,e)=>{let{graph:n}=this.context,{typePrefix:i}=this,r=(0,en.Z)(t,[i,"id"]),a=(0,en.Z)(t,[i,"style","labelText"]),[o]=r.split("__"),s=this.fieldMap[o].get(a)||[];n.setElementState(Object.fromEntries(null==s?void 0:s.map(t=>[t,e])))},this.click=t=>{if("hover"===this.options.trigger)return;let e=(0,en.Z)(t,[this.typePrefix,"id"]);this.selectedItems.includes(e)?(this.selectedItems=this.selectedItems.filter(t=>t!==e),this.changeState(t,[])):(this.selectedItems.push(e),this.changeState(t,"selected"))},this.mouseleave=t=>{"click"!==this.options.trigger&&(this.selectedItems=[],this.changeState(t,[]))},this.mouseenter=t=>{if("click"===this.options.trigger)return;let e=(0,en.Z)(t,[this.typePrefix,"id"]);this.selectedItems.includes(e)?this.selectedItems=this.selectedItems.filter(t=>t!==e):(this.selectedItems.push(e),this.changeState(t,"active"))},this.setFieldMap=(t,e,n)=>{if(!t)return;let i=this.fieldMap[n];if(i){if(i.has(t)){let n=i.get(t);n&&(n.push(e),i.set(t,n))}else i.set(t,[e])}},this.getEvents=()=>({mouseenter:this.mouseenter,mouseleave:this.mouseleave,click:this.click}),this.getMarkerData=(t,e)=>{if(!t)return[];let{model:n,element:i,graph:r}=this.context,{nodes:a,edges:o,combos:s}=n.getData(),l={},h=e=>(0,td.Z)(t)?t(e):t,c={node:"circle",edge:"line",combo:"rect"},u={circle:"circle",ellipse:"circle",image:"bowtie",rect:"square",star:"cross",triangle:"triangle",diamond:"diamond",cubic:"dot",line:"hyphen",polyline:"hyphen",quadratic:"hv","cubic-horizontal":"hyphen","cubic-vertical":"line"},d=(t,e)=>{let n=null==i?void 0:i.getElementComputedStyle(t,e);return n},p=(t,e)=>{t.forEach(t=>{let{id:n}=t,r=(0,en.Z)(t,["data",h(t)]),a=(null==i?void 0:i.getElementType(e,t))||"circle",o=d(e,t),s=("edge"===e?null==o?void 0:o.stroke:null==o?void 0:o.fill)||"#1783ff";n&&r&&r.replace(/\s+/g,"")&&(this.setFieldMap(r,n,e),l[r]||(l[r]={id:"".concat(e,"__").concat(n),label:r,marker:u[a]||c[e],elementType:e,lineWidth:1,stroke:s,fill:s}))})};switch(e){case"node":p(a,"node");break;case"edge":p(o,"edge");break;case"combo":p(s,"combo");break;default:return[]}return Object.values(l)},this.layout=t=>{let{flexDirection:e,alignItems:n,justifyContent:i}={flexDirection:"row",alignItems:"flex-end",justifyContent:"center"},r={top:["row","flex-start","center"],bottom:["row","flex-end","center"],left:["column","flex-start","center"],right:["column","flex-end","center"]};return t in r&&([e,n,i]=r[t]),{display:"flex",flexDirection:e,justifyContent:i,alignItems:n}},this.createElement=()=>{if(this.draw){this.updateElement();return}let{canvas:t}=this.context,[e,n]=t.getSize(),{width:i=e,height:r=n,nodeField:a,edgeField:o,comboField:s,trigger:l,position:h,...c}=this.options,u=this.getMarkerData(a,"node"),d=this.getMarkerData(o,"edge"),p=this.getMarkerData(s,"combo"),f=[...u,...p,...d],g=this.layout(h),y=new rM({style:{width:i,height:r,...g}}),m=Object.assign({width:i,height:r,data:f,itemMarkerLineWidth:t=>{let{lineWidth:e}=t;return e},itemMarker:t=>{let{marker:e}=t;return e},itemMarkerStroke:t=>{let{stroke:e}=t;return e},itemMarkerFill:t=>{let{fill:e}=t;return e},gridCol:u.length},c,this.getEvents()),v=new aC({className:"legend",style:m});y.appendChild(v),t.appendChild(y),this.element=y,this.draw=!0},this.bindEvents()}}aS.defaultOptions={position:"bottom",trigger:"hover",orientation:"horizontal",layout:"flex",itemSpacing:4,rowPadding:10,colPadding:10,itemMarkerSize:16,itemLabelFontSize:16};var aR=n(4559);function aA(t,e){var n=e.cx,i=void 0===n?0:n,r=e.cy,a=void 0===r?0:r,o=e.r;t.arc(i,a,o,0,2*Math.PI,!1)}function aO(t,e){var n=e.cx,i=void 0===n?0:n,r=e.cy,a=void 0===r?0:r,o=e.rx,s=e.ry;if(t.ellipse)t.ellipse(i,a,o,s,0,0,2*Math.PI,!1);else{var l=o>s?o:s,h=o>s?1:o/s,c=o>s?s/o:1;t.save(),t.scale(h,c),t.arc(i,a,l,0,2*Math.PI)}}function aM(t,e){var n,i=e.x1,r=e.y1,a=e.x2,o=e.y2,s=e.markerStart,l=e.markerEnd,h=e.markerStartOffset,c=e.markerEndOffset,u=0,d=0,p=0,f=0,g=0;s&&(0,aR.RV)(s)&&h&&(u=Math.cos(g=Math.atan2(o-r,a-i))*(h||0),d=Math.sin(g)*(h||0)),l&&(0,aR.RV)(l)&&c&&(p=Math.cos(g=Math.atan2(r-o,i-a))*(c||0),f=Math.sin(g)*(c||0)),t.moveTo(i+u,r+d),t.lineTo(a+p,o+f)}function aT(t,e){var n,i=e.markerStart,r=e.markerEnd,a=e.markerStartOffset,o=e.markerEndOffset,s=e.d,l=s.absolutePath,h=s.segments,c=0,u=0,d=0,p=0,f=0;if(i&&(0,aR.RV)(i)&&a){var g=(0,rE.CR)(i.parentNode.getStartTangent(),2),y=g[0],m=g[1];n=y[0]-m[0],c=Math.cos(f=Math.atan2(y[1]-m[1],n))*(a||0),u=Math.sin(f)*(a||0)}if(r&&(0,aR.RV)(r)&&o){var v=(0,rE.CR)(r.parentNode.getEndTangent(),2),y=v[0],m=v[1];n=y[0]-m[0],d=Math.cos(f=Math.atan2(y[1]-m[1],n))*(o||0),p=Math.sin(f)*(o||0)}for(var b=0;bT?M:T,I=M>T?1:M/T,B=M>T?T/M:1;t.translate(A,O),t.rotate(L),t.scale(I,B),t.arc(0,0,N,k,P,!!(1-D)),t.scale(1/I,1/B),t.rotate(-L),t.translate(-A,-O)}S&&t.lineTo(x[6]+d,x[7]+p);break;case"Z":t.closePath()}}}function ak(t,e){var n,i=e.markerStart,r=e.markerEnd,a=e.markerStartOffset,o=e.markerEndOffset,s=e.points.points,l=s.length,h=s[0][0],c=s[0][1],u=s[l-1][0],d=s[l-1][1],p=0,f=0,g=0,y=0,m=0;i&&(0,aR.RV)(i)&&a&&(n=s[1][0]-s[0][0],p=Math.cos(m=Math.atan2(s[1][1]-s[0][1],n))*(a||0),f=Math.sin(m)*(a||0)),r&&(0,aR.RV)(r)&&o&&(n=s[l-1][0]-s[0][0],g=Math.cos(m=Math.atan2(s[l-1][1]-s[0][1],n))*(o||0),y=Math.sin(m)*(o||0)),t.moveTo(h+(p||g),c+(f||y));for(var v=1;v0?1:-1,c=l>0?1:-1,u=h+c===0,d=(0,rE.CR)(o.map(function(t){return(0,im.Z)(t,0,Math.min(Math.abs(s)/2,Math.abs(l)/2))}),4),p=d[0],f=d[1],g=d[2],y=d[3];t.moveTo(h*p+i,a),t.lineTo(s-h*f+i,a),0!==f&&t.arc(s-h*f+i,c*f+a,f,-c*Math.PI/2,h>0?0:Math.PI,u),t.lineTo(s+i,l-c*g+a),0!==g&&t.arc(s-h*g+i,l-c*g+a,g,h>0?0:Math.PI,c>0?Math.PI/2:1.5*Math.PI,u),t.lineTo(h*y+i,l+a),0!==y&&t.arc(h*y+i,l-c*y+a,y,c>0?Math.PI/2:-Math.PI/2,h>0?Math.PI:0,u),t.lineTo(i,c*p+a),0!==p&&t.arc(h*p+i,c*p+a,p,h>0?Math.PI:0,c>0?1.5*Math.PI:Math.PI/2,u)}else t.rect(i,a,s,l)}var aD=function(t){function e(){var e=t.apply(this,(0,rE.ev)([],(0,rE.CR)(arguments),!1))||this;return e.name="canvas-path-generator",e}return(0,rE.ZT)(e,t),e.prototype.init=function(){var t,e=((t={})[aR.bn.CIRCLE]=aA,t[aR.bn.ELLIPSE]=aO,t[aR.bn.RECT]=aL,t[aR.bn.LINE]=aM,t[aR.bn.POLYLINE]=aP,t[aR.bn.POLYGON]=ak,t[aR.bn.PATH]=aT,t[aR.bn.TEXT]=void 0,t[aR.bn.GROUP]=void 0,t[aR.bn.IMAGE]=void 0,t[aR.bn.HTML]=void 0,t[aR.bn.MESH]=void 0,t);this.context.pathGeneratorFactory=e},e.prototype.destroy=function(){delete this.context.pathGeneratorFactory},e}(aR.F6),aN=n(77160),aI=n(85975),aB=n(11702),a_=n(74873),aF=aN.Ue(),aj=aN.Ue(),aZ=aN.Ue(),az=aI.create(),aG=function(){function t(){var t=this;this.isHit=function(e,n,i,r){var a=t.context.pointInPathPickerFactory[e.nodeName];if(a){var o=aI.invert(az,i),s=aN.fF(aj,aN.t8(aZ,n[0],n[1],0),o);if(a(e,new aR.E9(s[0],s[1]),r,t.isPointInPath,t.context,t.runtime))return!0}return!1},this.isPointInPath=function(e,n){var i=t.runtime.offscreenCanvasCreator.getOrCreateContext(t.context.config.offscreenCanvas),r=t.context.pathGeneratorFactory[e.nodeName];return r&&(i.beginPath(),r(i,e.parsedStyle),i.closePath()),i.isPointInPath(n.x,n.y)}}return t.prototype.apply=function(e,n){var i,r=this,a=e.renderingService,o=e.renderingContext;this.context=e,this.runtime=n;var s=null===(i=o.root)||void 0===i?void 0:i.ownerDocument;a.hooks.pick.tapPromise(t.tag,function(t){return(0,rE.mG)(r,void 0,void 0,function(){return(0,rE.Jh)(this,function(e){return[2,this.pick(s,t)]})})}),a.hooks.pickSync.tap(t.tag,function(t){return r.pick(s,t)})},t.prototype.pick=function(t,e){var n,i,r=e.topmost,a=e.position,o=a.x,s=a.y,l=aN.t8(aF,o,s,0),h=t.elementsFromBBox(l[0],l[1],l[0],l[1]),c=[];try{for(var u=(0,rE.XA)(h),d=u.next();!d.done;d=u.next()){var p=d.value,f=p.getWorldTransform();if(this.isHit(p,l,f,!1)){var g=(0,aR.Oi)(p);if(g){var y=g.parsedStyle.clipPath;if(this.isHit(y,l,y.getWorldTransform(),!0)){if(r)return e.picked=[p],e;c.push(p)}}else{if(r)return e.picked=[p],e;c.push(p)}}}}catch(t){n={error:t}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return e.picked=c,e},t.tag="CanvasPicker",t}();function aH(t,e,n){var i=t.parsedStyle,r=i.cx,a=i.cy,o=i.r,s=i.fill,l=i.stroke,h=i.lineWidth,c=i.increasedLineWidthForHitTesting,u=i.pointerEvents,d=((void 0===h?1:h)+(void 0===c?0:c))/2,p=(0,aB.TE)(void 0===r?0:r,void 0===a?0:a,e.x,e.y),f=(0,rE.CR)((0,aR.L1)(void 0===u?"auto":u,s,l),2),g=f[0],y=f[1];return g&&y||n?p<=o+d:g?p<=o:!!y&&p>=o-d&&p<=o+d}function aW(t,e,n){var i,r,a,o,s,l,h=t.parsedStyle,c=h.cx,u=void 0===c?0:c,d=h.cy,p=void 0===d?0:d,f=h.rx,g=h.ry,y=h.fill,m=h.stroke,v=h.lineWidth,b=h.increasedLineWidthForHitTesting,x=h.pointerEvents,E=e.x,w=e.y,C=(0,rE.CR)((0,aR.L1)(void 0===x?"auto":x,y,m),2),S=C[0],R=C[1],A=((void 0===v?1:v)+(void 0===b?0:b))/2,O=(E-u)*(E-u),M=(w-p)*(w-p);return S&&R||n?1>=O/((i=f+A)*i)+M/((r=g+A)*r):S?1>=O/(f*f)+M/(g*g):!!R&&O/((a=f-A)*a)+M/((o=g-A)*o)>=1&&1>=O/((s=f+A)*s)+M/((l=g+A)*l)}function aV(t,e,n,i,r,a){return r>=t&&r<=t+n&&a>=e&&a<=e+i}function aU(t,e,n,i,r,a,o,s){var l=(Math.atan2(s-e,o-t)+2*Math.PI)%(2*Math.PI),h={x:t+n*Math.cos(l),y:e+n*Math.sin(l)};return(0,aB.TE)(h.x,h.y,o,s)<=a/2}function aY(t,e,n,i,r,a,o){var s=Math.min(t,n),l=Math.max(t,n),h=Math.min(e,i),c=Math.max(e,i),u=r/2;return a>=s-u&&a<=l+u&&o>=h-u&&o<=c+u&&(0,aB._x)(t,e,n,i,a,o)<=r/2}function aK(t,e,n,i,r){var a=t.length;if(a<2)return!1;for(var o=0;oMath.abs(t)?0:t<0?-1:1}function aX(t,e,n){var i=!1,r=t.length;if(r<=2)return!1;for(var a=0;a0!=a$(l[1]-n)>0&&0>a$(e-(n-s[1])*(s[0]-l[0])/(s[1]-l[1])-s[0])&&(i=!i)}return i}function aq(t,e,n){for(var i=!1,r=0;rh&&g/f>d,e&&(e.resetTransform?e.resetTransform():e.setTransform(1,0,0,1,0,0),i.clearFullScreen&&i.clearRect(e,0,0,a*n,s*n,r.background))});var f=function(t,e){t.isVisible()&&!t.isCulled()&&i.renderDisplayObject(t,e,i.context,i.restoreStack,n),(t.sortable.sorted||t.childNodes).forEach(function(t){f(t,e)})};o.hooks.endFrame.tap(t.tag,function(){if(0===s.root.childNodes.length){i.clearFullScreenLastFrame=!0;return}i.clearFullScreenLastFrame=!1;var t=c.getContext(),e=c.getDPR();if(aI.fromScaling(i.dprMatrix,[e,e,1]),aI.multiply(i.vpMatrix,i.dprMatrix,a.getOrthoMatrix()),i.clearFullScreen)f(s.root,t);else{var o=i.safeMergeAABB.apply(i,(0,rE.ev)([i.mergeDirtyAABBs(i.renderQueue)],(0,rE.CR)(i.removedRBushNodeAABBs.map(function(t){var e=t.minX,n=t.minY,i=t.maxX,r=t.maxY,a=new aR.mN;return a.setMinMax([e,n,0],[i,r,0]),a})),!1));if(i.removedRBushNodeAABBs=[],aR.mN.isEmpty(o)){i.renderQueue=[];return}var l=i.convertAABB2Rect(o),h=l.x,d=l.y,p=l.width,g=l.height,y=aN.fF(i.vec3a,[h,d,0],i.vpMatrix),m=aN.fF(i.vec3b,[h+p,d,0],i.vpMatrix),v=aN.fF(i.vec3c,[h,d+g,0],i.vpMatrix),b=aN.fF(i.vec3d,[h+p,d+g,0],i.vpMatrix),x=Math.min(y[0],m[0],b[0],v[0]),E=Math.min(y[1],m[1],b[1],v[1]),w=Math.max(y[0],m[0],b[0],v[0]),C=Math.max(y[1],m[1],b[1],v[1]),S=Math.floor(x),R=Math.floor(E),A=Math.ceil(w-x),O=Math.ceil(C-E);t.save(),i.clearRect(t,S,R,A,O,r.background),t.beginPath(),t.rect(S,R,A,O),t.clip(),t.setTransform(i.vpMatrix[0],i.vpMatrix[1],i.vpMatrix[4],i.vpMatrix[5],i.vpMatrix[12],i.vpMatrix[13]),r.renderer.getConfig().enableDirtyRectangleRenderingDebug&&u.dispatchEvent(new aR.Aw(aR.$6.DIRTY_RECTANGLE,{dirtyRect:{x:S,y:R,width:A,height:O}})),i.searchDirtyObjects(o).sort(function(t,e){return t.sortable.renderOrder-e.sortable.renderOrder}).forEach(function(e){e&&e.isVisible()&&!e.isCulled()&&i.renderDisplayObject(e,t,i.context,i.restoreStack,n)}),t.restore(),i.renderQueue.forEach(function(t){i.saveDirtyAABB(t)}),i.renderQueue=[]}i.restoreStack.forEach(function(){t.restore()}),i.restoreStack=[]}),o.hooks.render.tap(t.tag,function(t){i.clearFullScreen||i.renderQueue.push(t)})},t.prototype.clearRect=function(t,e,n,i,r,a){t.clearRect(e,n,i,r),a&&(t.fillStyle=a,t.fillRect(e,n,i,r))},t.prototype.renderDisplayObject=function(t,e,n,i,r){var a=t.nodeName,o=i[i.length-1];o&&!(t.compareDocumentPosition(o)&aR.NB.DOCUMENT_POSITION_CONTAINS)&&(e.restore(),i.pop());var s=this.context.styleRendererFactory[a],l=this.pathGeneratorFactory[a],h=t.parsedStyle.clipPath;if(h){this.applyWorldTransform(e,h);var c=this.pathGeneratorFactory[h.nodeName];c&&(e.save(),i.push(t),e.beginPath(),c(e,h.parsedStyle),e.closePath(),e.clip())}s&&(this.applyWorldTransform(e,t),e.save(),this.applyAttributesToContext(e,t)),l&&(e.beginPath(),l(e,t.parsedStyle),t.nodeName!==aR.bn.LINE&&t.nodeName!==aR.bn.PATH&&t.nodeName!==aR.bn.POLYLINE&&e.closePath()),s&&(s.render(e,t.parsedStyle,t,n,this,r),e.restore()),t.renderable.dirty=!1},t.prototype.convertAABB2Rect=function(t){var e=t.getMin(),n=t.getMax(),i=Math.floor(e[0]),r=Math.floor(e[1]);return{x:i,y:r,width:Math.ceil(n[0])-i,height:Math.ceil(n[1])-r}},t.prototype.mergeDirtyAABBs=function(t){var e=new aR.mN;return t.forEach(function(t){var n=t.getRenderBounds();e.add(n);var i=t.renderable.dirtyRenderBounds;i&&e.add(i)}),e},t.prototype.searchDirtyObjects=function(t){var e=(0,rE.CR)(t.getMin(),2),n=e[0],i=e[1],r=(0,rE.CR)(t.getMax(),2),a=r[0],o=r[1];return this.rBush.search({minX:n,minY:i,maxX:a,maxY:o}).map(function(t){return t.displayObject})},t.prototype.saveDirtyAABB=function(t){var e=t.renderable;e.dirtyRenderBounds||(e.dirtyRenderBounds=new aR.mN);var n=t.getRenderBounds();n&&e.dirtyRenderBounds.update(n.center,n.halfExtents)},t.prototype.applyAttributesToContext=function(t,e){var n=e.parsedStyle,i=n.stroke,r=n.fill,a=n.opacity,o=n.lineDash,s=n.lineDashOffset;o&&t.setLineDash(o),(0,_.Z)(s)||(t.lineDashOffset=s),(0,_.Z)(a)||(t.globalAlpha*=a),(0,_.Z)(i)||Array.isArray(i)||i.isNone||(t.strokeStyle=e.attributes.stroke),(0,_.Z)(r)||Array.isArray(r)||r.isNone||(t.fillStyle=e.attributes.fill)},t.prototype.applyWorldTransform=function(t,e,n){n?(aI.copy(this.tmpMat4,e.getLocalTransform()),aI.multiply(this.tmpMat4,n,this.tmpMat4),aI.multiply(this.tmpMat4,this.vpMatrix,this.tmpMat4)):(aI.copy(this.tmpMat4,e.getWorldTransform()),aI.multiply(this.tmpMat4,this.vpMatrix,this.tmpMat4)),t.setTransform(this.tmpMat4[0],this.tmpMat4[1],this.tmpMat4[4],this.tmpMat4[5],this.tmpMat4[12],this.tmpMat4[13])},t.prototype.safeMergeAABB=function(){for(var t=[],e=0;e0,S=(null==o?void 0:o.alpha)===0,R=!!(x&&x.length),A=!(0,_.Z)(v)&&b>0,O=n.nodeName,M="inner"===m,T=C&&A&&(O===aR.bn.PATH||O===aR.bn.LINE||O===aR.bn.POLYLINE||S||M);w&&(t.globalAlpha=h*(void 0===c?1:c),T||a9(n,t,A),ot(t,n,o,s,i,r,a,this.imagePool),T||this.clearShadowAndFilter(t,R,A)),C&&(t.globalAlpha=h*(void 0===d?1:d),t.lineWidth=f,(0,_.Z)(E)||(t.miterLimit=E),(0,_.Z)(g)||(t.lineCap=g),(0,_.Z)(y)||(t.lineJoin=y),T&&(M&&(t.globalCompositeOperation="source-atop"),a9(n,t,!0),M&&(oe(t,n,u,i,r,a,this.imagePool),t.globalCompositeOperation="source-over",this.clearShadowAndFilter(t,R,!0))),oe(t,n,u,i,r,a,this.imagePool))},t.prototype.clearShadowAndFilter=function(t,e,n){if(n&&(t.shadowColor="transparent",t.shadowBlur=0),e){var i=t.filter;!(0,_.Z)(i)&&i.indexOf("drop-shadow")>-1&&(t.filter=i.replace(/drop-shadow\([^)]*\)/,"").trim()||"none")}},t}();function a9(t,e,n){var i=t.parsedStyle,r=i.filter,a=i.shadowColor,o=i.shadowBlur,s=i.shadowOffsetX,l=i.shadowOffsetY;r&&r.length&&(e.filter=t.style.filter),n&&(e.shadowColor=a.toString(),e.shadowBlur=o||0,e.shadowOffsetX=s||0,e.shadowOffsetY=l||0)}function a5(t,e,n,i,r,a,o){if("rect"===t.image.nodeName){var s,l,h=t.image.parsedStyle,c=h.width,u=h.height;l=i.contextService.getDPR();var d=i.config.offscreenCanvas;(s=a.offscreenCanvasCreator.getOrCreateCanvas(d)).width=c*l,s.height=u*l;var p=a.offscreenCanvasCreator.getOrCreateContext(d),f=[];t.image.forEach(function(t){r.renderDisplayObject(t,p,i,f,a)}),f.forEach(function(){p.restore()})}return o.getOrCreatePatternSync(t,n,s,l,e.getGeometryBounds().min,function(){e.renderable.dirty=!0,i.renderingService.dirtify()})}function a7(t,e,n,i){var r;if(t.type===aR.GL.LinearGradient||t.type===aR.GL.RadialGradient){var a=e.getGeometryBounds(),o=a&&2*a.halfExtents[0]||1,s=a&&2*a.halfExtents[1]||1,l=a&&a.min||[0,0];r=i.getOrCreateGradient((0,rE.pi)((0,rE.pi)({type:t.type},t.value),{min:l,width:o,height:s}),n)}return r}function ot(t,e,n,i,r,a,o,s,l){void 0===l&&(l=!1),Array.isArray(n)?n.forEach(function(n){t.fillStyle=a7(n,e,t,s),l||(i?t.fill(i):t.fill())}):((0,aR.R)(n)&&(t.fillStyle=a5(n,e,t,r,a,o,s)),l||(i?t.fill(i):t.fill()))}function oe(t,e,n,i,r,a,o,s){void 0===s&&(s=!1),Array.isArray(n)?n.forEach(function(n){t.strokeStyle=a7(n,e,t,o),s||t.stroke()}):((0,aR.R)(n)&&(t.strokeStyle=a5(n,e,t,i,r,a,o)),s||t.stroke())}var on=function(){function t(t){this.imagePool=t}return t.prototype.render=function(t,e,n){var i,r=e.x,a=e.y,o=e.width,s=e.height,l=e.src,h=e.shadowColor,c=e.shadowBlur,u=o,d=s;if((0,t0.Z)(l)?i=this.imagePool.getImageSync(l):(u||(u=l.width),d||(d=l.height),i=l),i){a9(n,t,!(0,_.Z)(h)&&c>0);try{t.drawImage(i,void 0===r?0:r,void 0===a?0:a,u,d)}catch(t){}}},t}(),oi=function(){function t(t){this.imagePool=t}return t.prototype.render=function(t,e,n,i,r,a){n.getBounds();var o=e.lineWidth,s=void 0===o?1:o,l=e.textAlign,h=void 0===l?"start":l,c=e.textBaseline,u=void 0===c?"alphabetic":c,d=e.lineJoin,p=e.miterLimit,f=void 0===p?10:p,g=e.letterSpacing,y=void 0===g?0:g,m=e.stroke,v=e.fill,b=e.fillRule,x=e.fillOpacity,E=void 0===x?1:x,w=e.strokeOpacity,C=void 0===w?1:w,S=e.opacity,R=void 0===S?1:S,A=e.metrics,O=e.x,M=e.y,T=e.dx,k=e.dy,P=e.shadowColor,L=e.shadowBlur,D=A.font,N=A.lines,I=A.height,B=A.lineHeight,F=A.lineMetrics;t.font=D,t.lineWidth=s,t.textAlign="middle"===h?"center":h;var j=u;a.enableCSSParsing||"alphabetic"!==j||(j="bottom"),t.lineJoin=void 0===d?"miter":d,(0,_.Z)(f)||(t.miterLimit=f);var Z=void 0===M?0:M;"middle"===u?Z+=-I/2-B/2:"bottom"===u||"alphabetic"===u||"ideographic"===u?Z+=-I:("top"===u||"hanging"===u)&&(Z+=-B);var z=(void 0===O?0:O)+(T||0);Z+=k||0,1===N.length&&("bottom"===j?(j="middle",Z-=.5*I):"top"===j&&(j="middle",Z+=.5*I)),t.textBaseline=j,a9(n,t,!(0,_.Z)(P)&&L>0);for(var G=0;G=1?Math.ceil(n):1,this.dpr=n,this.$canvas&&(this.$canvas.width=this.dpr*t,this.$canvas.height=this.dpr*e,(0,aR.$p)(this.$canvas,t,e)),this.renderingContext.renderReasons.add(aR.Rr.CAMERA_CHANGED)},t.prototype.applyCursorStyle=function(t){this.$container&&this.$container.style&&(this.$container.style.cursor=t)},t.prototype.toDataURL=function(t){return void 0===t&&(t={}),(0,rE.mG)(this,void 0,void 0,function(){var e,n;return(0,rE.Jh)(this,function(i){return e=t.type,n=t.encoderOptions,[2,this.context.canvas.toDataURL(e,n)]})})},t}(),op=function(t){function e(){var e=t.apply(this,(0,rE.ev)([],(0,rE.CR)(arguments),!1))||this;return e.name="canvas-context-register",e}return(0,rE.ZT)(e,t),e.prototype.init=function(){this.context.ContextService=od},e.prototype.destroy=function(){delete this.context.ContextService},e}(aR.F6),of=function(t){function e(e){var n=t.call(this,e)||this;return n.registerPlugin(new op),n.registerPlugin(new ou),n.registerPlugin(new aD),n.registerPlugin(new or),n.registerPlugin(new oo),n.registerPlugin(new a6),n.registerPlugin(new ol),n}return(0,rE.ZT)(e,t),e}(aR.I8),og=n(99711);class oy extends iF{bindEvents(){let{graph:t}=this.context;t.on(R.AFTER_DRAW,this.onDraw),t.on(R.AFTER_RENDER,this.onRender),t.on(R.AFTER_TRANSFORM,this.onTransform)}unbindEvents(){let{graph:t}=this.context;t.off(R.AFTER_DRAW,this.onDraw),t.off(R.AFTER_RENDER,this.onRender),t.off(R.AFTER_TRANSFORM,this.onTransform)}renderMinimap(){let t=this.getElements(),e=this.initCanvas();this.setShapes(e,t)}getElements(){let{filter:t}=this.options,{model:e}=this.context,n=e.getData();if(!t)return n;let{nodes:i,edges:r,combos:a}=n;return{nodes:i.filter(e=>t(tt(e),"node")),edges:r.filter(e=>t(tt(e),"edge")),combos:a.filter(e=>t(tt(e),"combo"))}}setShapes(t,e){let{nodes:n,edges:i,combos:r}=e,{shape:a}=this.options,{element:o}=this.context;if("key"===a){let e=new Set,a=n=>{let i=tt(n);e.add(i);let r=o.getElement(i);if(!r)return;let a=r.getShape("key"),s=this.shapes.get(i)||a.cloneNode();s.setPosition(a.getPosition()),r.style.zIndex&&(s.style.zIndex=r.style.zIndex),s.id=r.id,this.shapes.has(i)?Object.entries(a.attributes).forEach(t=>{let[e,n]=t;s.style[e]!==n&&(s.style[e]=n)}):(t.appendChild(s),this.shapes.set(i,s))};i.forEach(a),r.forEach(a),n.forEach(a),this.shapes.forEach((n,i)=>{e.has(i)||(t.removeChild(n),this.shapes.delete(i))});return}let s=(t,e)=>{let n=o.getElement(t),i=n.getPosition();return e.setPosition(i),e};t.removeChildren(),i.forEach(e=>t.appendChild(a(tt(e),"edge"))),r.forEach(e=>{t.appendChild(s(tt(e),a(tt(e),"combo")))}),n.forEach(e=>{t.appendChild(s(tt(e),a(tt(e),"node")))})}calculatePosition(){let{position:t,size:[e,n]}=this.options,{canvas:i}=this.context,[r,a]=i.getSize(),[o,s]=tG(t);return[o*(r-e),s*(a-n)]}createContainer(){let{container:t,className:e,size:[n,i],containerStyle:r}=this.options;if(t)return"string"==typeof t?document.querySelector(t):t;let a=document.createElement("div");a.classList.add("g6-minimap"),e&&a.classList.add(e);let[o,s]=this.calculatePosition();return Object.assign(a.style,{position:"absolute",left:o+"px",top:s+"px",width:n+"px",height:i+"px",...r}),this.context.canvas.getContainer().appendChild(a)}initCanvas(){let{renderer:t,size:[e,n]}=this.options;if(this.canvas)this.canvas.resize(e,n),t&&this.canvas.setRenderer(t);else{let i=document.createElement("div"),r=this.createContainer();this.container=r,r.appendChild(i),this.canvas=new I.Xz({width:e,height:n,container:i,renderer:t||new of})}return this.setCamera(),this.canvas}createLandmark(t,e,n){let i="".concat(t.join(","),"-").concat(e.join(","),"-").concat(n);if(this.landmarkMap.has(i))return this.landmarkMap.get(i);let r=this.canvas.getCamera(),a=r.createLandmark(i,{position:t,focalPoint:e,zoom:n});return this.landmarkMap.set(i,a),a}setCamera(){var t;let{canvas:e}=this.context,n=null===(t=this.canvas)||void 0===t?void 0:t.getCamera();if(!n)return;let{size:[i,r],padding:a}=this.options,[o,s,l,h]=ty(a),{min:c,max:u,center:d}=e.getBounds("elements"),p=u[0]-c[0],f=u[1]-c[1],g=Math.min((i-h-s)/p,(r-o-l)/f),y=this.createLandmark(d,d,g);n.gotoLandmark(y,0)}get maskBBox(){let{canvas:t}=this.context,e=t.getSize(),n=t.getCanvasByViewport([0,0]),i=t.getCanvasByViewport(e),r=this.canvas.canvas2Viewport(tU(n)),a=this.canvas.canvas2Viewport(tU(i)),o=a.x-r.x,s=a.y-r.y;return[r.x,r.y,o,s]}calculateMaskBBox(){let{size:[t,e]}=this.options,[n,i,r,a]=this.maskBBox;return n<0&&(r=om(r+n,t),n=0),i<0&&(a=om(a+i,e),i=0),n+r>t&&(r=ov(t-n,0)),i+a>e&&(a=ov(e-i,0)),[om(n,t),om(i,e),ov(r,0),ov(a,0)]}renderMask(){let{maskStyle:t}=this.options;this.mask||(this.mask=document.createElement("div"),this.mask.addEventListener("pointerdown",this.onMaskDragStart)),this.container.appendChild(this.mask),Object.assign(this.mask.style,{...t,cursor:"move",position:"absolute",pointerEvents:"auto"}),this.updateMask()}updateMask(){if(!this.mask)return;let[t,e,n,i]=this.calculateMaskBBox();Object.assign(this.mask.style,{top:e+"px",left:t+"px",width:n+"px",height:i+"px"})}destroy(){var t;this.unbindEvents(),this.canvas.destroy(),null===(t=this.mask)||void 0===t||t.remove(),super.destroy()}constructor(t,e){super(t,Object.assign({},oy.defaultOptions,e)),this.onDraw=t=>{var e;null!=t&&null!==(e=t.data)&&void 0!==e&&e.render||this.onRender()},this.onRender=(0,og.Z)(()=>{this.renderMinimap(),this.renderMask()},32,{leading:!0}),this.shapes=new Map,this.landmarkMap=new Map,this.mask=null,this.isMaskDragging=!1,this.onMaskDragStart=t=>{this.mask&&(this.isMaskDragging=!0,this.mask.setPointerCapture(t.pointerId),this.mask.addEventListener("pointermove",this.onMaskDrag),this.mask.addEventListener("pointerup",this.onMaskDragEnd),this.mask.addEventListener("pointercancel",this.onMaskDragEnd))},this.onMaskDrag=t=>{if(!this.mask||!this.isMaskDragging)return;let{size:[e,n]}=this.options,{movementX:i,movementY:r}=t,{left:a,top:o,width:s,height:l}=this.mask.style,[,,h,c]=this.maskBBox,u=parseInt(a)+i,d=parseInt(o)+r,p=parseInt(s),f=parseInt(l);u<0&&(u=0),d<0&&(d=0),u+p>e&&(u=ov(e-p,0)),d+f>n&&(d=ov(n-f,0)),p0?(u=ov(u-i,0),p=om(p+i,e)):i<0&&(p=om(p-i,e))),f0?(d=ov(d-r,0),f=om(f+r,n)):r<0&&(f=om(f-r,n))),Object.assign(this.mask.style,{left:u+"px",top:d+"px",width:p+"px",height:f+"px"});let g=parseInt(a)-u,y=parseInt(o)-d;if(0===g&&0===y)return;let m=this.context.canvas.getCamera().getZoom(),v=this.canvas.getCamera().getZoom(),b=m/v;this.context.graph.translateBy([g*b,y*b],!1)},this.onMaskDragEnd=t=>{this.mask&&(this.isMaskDragging=!1,this.mask.releasePointerCapture(t.pointerId),this.mask.removeEventListener("pointermove",this.onMaskDrag),this.mask.removeEventListener("pointerup",this.onMaskDragEnd),this.mask.removeEventListener("pointercancel",this.onMaskDragEnd))},this.onTransform=(0,og.Z)(()=>{this.isMaskDragging||(this.updateMask(),this.setCamera())},32,{leading:!0}),this.bindEvents()}}oy.defaultOptions={size:[240,160],shape:"key",padding:10,position:"right-bottom",maskStyle:{border:"1px solid #ddd",background:"rgba(0, 0, 0, 0.1)"},containerStyle:{border:"1px solid #ddd",background:"#fff"}};let om=(t,e)=>Math.min(t,e),ov=(t,e)=>Math.max(t,e),ob={x1:0,y1:0,x2:0,y2:0,visibility:"hidden"};class ox extends iF{getNodes(){var t;let{filter:e}=this.options,n=(null===(t=this.context.element)||void 0===t?void 0:t.getNodes())||[],i=n.filter(t=>{var e;return"hidden"!==(0,en.Z)(t,["style","visibility"])&&(null===(e=this.context.viewport)||void 0===e?void 0:e.isInViewport(t.getRenderBounds()))});return e?i.filter(t=>e(t)):i}hideSnapline(){this.horizontalLine.style.visibility="hidden",this.verticalLine.style.visibility="hidden"}getLineWidth(t){let{lineWidth:e}=this.options["".concat(t,"LineStyle")];return+(e||ob.lineWidth||1)/this.context.graph.getZoom()}updateSnapline(t){let{verticalX:e,verticalMinY:n,verticalMaxY:i,horizontalY:r,horizontalMinX:a,horizontalMaxX:o}=t,[s,l]=this.context.canvas.getSize(),{offset:h}=this.options;null!==r?Object.assign(this.horizontalLine.style,{x1:h===1/0?0:a-h,y1:r,x2:h===1/0?s:o+h,y2:r,visibility:"visible",lineWidth:this.getLineWidth("horizontal")}):this.horizontalLine.style.visibility="hidden",null!==e?Object.assign(this.verticalLine.style,{x1:e,y1:h===1/0?0:n-h,x2:e,y2:h===1/0?l:i+h,visibility:"visible",lineWidth:this.getLineWidth("vertical")}):this.verticalLine.style.visibility="hidden"}getDelta(t){let e=this.context.graph.getZoom();return tP([t.dx,t.dy],e)}async bindEvents(){let{graph:t}=this.context;t.on(O.DRAG_START,this.onDragStart),t.on(O.DRAG,this.onDrag),t.on(O.DRAG_END,this.onDragEnd)}unbindEvents(){let{graph:t}=this.context;t.off(O.DRAG_START,this.onDragStart),t.off(O.DRAG,this.onDrag),t.off(O.DRAG_END,this.onDragEnd)}destroyElements(){var t,e;null===(t=this.horizontalLine)||void 0===t||t.destroy(),null===(e=this.verticalLine)||void 0===e||e.destroy()}destroy(){this.destroyElements(),this.unbindEvents(),super.destroy()}constructor(t,e){super(t,Object.assign({},ox.defaultOptions,e)),this.initSnapline=()=>{let t=this.context.canvas.getLayer("transient");this.horizontalLine||(this.horizontalLine=t.appendChild(new I.x1({style:{...ob,...this.options.horizontalLineStyle}}))),this.verticalLine||(this.verticalLine=t.appendChild(new I.x1({style:{...ob,...this.options.verticalLineStyle}})))},this.isHorizontalSticking=!1,this.isVerticalSticking=!1,this.enableStick=!0,this.autoSnapToLine=async(t,e,n)=>{let{verticalX:i,horizontalY:r}=n,{tolerance:a}=this.options,{min:[o,s],max:[l,h],center:[c,u]}=e,d=0,p=0;null!==i&&(oE(l,i){let{target:e}=t;if(this.isHorizontalSticking||this.isVerticalSticking){let[n,i]=this.getDelta(t);if(this.isHorizontalSticking&&this.isVerticalSticking&&.5>=Math.abs(n)&&.5>=Math.abs(i))return this.context.graph.translateElementBy({[e.id]:[-n,-i]},!1),!1;if(this.isHorizontalSticking&&.5>=Math.abs(i))return this.context.graph.translateElementBy({[e.id]:[0,-i]},!1),!1;if(this.isVerticalSticking&&.5>=Math.abs(n))return this.context.graph.translateElementBy({[e.id]:[-n,0]},!1),!1;this.isHorizontalSticking=!1,this.isVerticalSticking=!1,this.enableStick=!1,setTimeout(()=>{this.enableStick=!0},200)}return this.enableStick},this.calcSnaplineMetadata=(t,e)=>{let{tolerance:n,shape:i}=this.options,{min:[r,a],max:[o,s],center:[l,h]}=e,c=null,u=null,d=null,p=null,f=null,g=null;return this.getNodes().some(e=>{if((0,F.Z)(t.id,e.id))return!1;let y=ow(e,i).getRenderBounds(),{min:[m,v],max:[b,x],center:[E,w]}=y;return null===c&&(oE(E,l){this.initSnapline()},this.onDrag=async t=>{let{target:e}=t;if(this.options.autoSnap){let e=this.enableSnap(t);if(!e)return}let n=ow(e,this.options.shape).getRenderBounds(),i=this.calcSnaplineMetadata(e,n);this.hideSnapline(),(null!==i.verticalX||null!==i.horizontalY)&&this.updateSnapline(i),this.options.autoSnap&&await this.autoSnapToLine(e.id,n,i)},this.onDragEnd=()=>{this.hideSnapline()},this.bindEvents()}}ox.defaultOptions={tolerance:5,offset:20,autoSnap:!0,shape:"key",verticalLineStyle:{stroke:"#1783FF"},horizontalLineStyle:{stroke:"#1783FF"},filter:()=>!0};let oE=(t,e)=>Math.abs(t-e),ow=(t,e)=>"function"==typeof e?e(t):t.getShape(e);function oC(t,e){var n={YYYY:t.getFullYear(),MM:t.getMonth()+1,DD:t.getDate(),HH:t.getHours(),mm:t.getMinutes(),ss:t.getSeconds()},i=e;return Object.keys(n).forEach(function(t){var e=n[t];i=i.replace(t,"YYYY"===t?"".concat(e):"".concat(e).padStart(2,"0"))}),i}var oS={data:[],animate:{enter:!1,update:{duration:100,easing:"ease-in-out-sine",fill:"both"},exit:{duration:100,fill:"both"}},showArrow:!0,showGrid:!0,showLabel:!0,showLine:!0,showTick:!0,showTitle:!0,showTrunc:!1,dataThreshold:100,lineLineWidth:1,lineStroke:"black",crossPadding:10,titleFill:"black",titleFontSize:12,titlePosition:"lb",titleSpacing:0,titleTextAlign:"center",titleTextBaseline:"middle",lineArrow:function(){return new I.y$({style:{d:[["M",10,10],["L",-10,0],["L",10,-10],["L",0,0],["L",10,10],["Z"]],fill:"black",transformOrigin:"center"}})},labelAlign:"parallel",labelDirection:"positive",labelFontSize:12,labelSpacing:0,gridConnect:"line",gridControlAngles:[],gridDirection:"positive",gridLength:0,gridType:"segment",lineArrowOffset:15,lineArrowSize:10,tickDirection:"positive",tickLength:5,tickLineWidth:1,tickStroke:"black",labelOverlap:[]};(0,J.Z)({},oS,{style:{type:"arc"}}),(0,J.Z)({},oS,{style:{}});var oR=rK({mainGroup:"main-group",gridGroup:"grid-group",grid:"grid",lineGroup:"line-group",line:"line",tickGroup:"tick-group",tick:"tick",tickItem:"tick-item",labelGroup:"label-group",label:"label",labelItem:"label-item",titleGroup:"title-group",title:"title",lineFirst:"line-first",lineSecond:"line-second"},"axis");function oA(t,e){return[t[0]*e,t[1]*e]}function oO(t,e){return[t[0]+e[0],t[1]+e[1]]}function oM(t,e){return[t[0]-e[0],t[1]-e[1]]}function oT(t,e){return[Math.min(t[0],e[0]),Math.min(t[1],e[1])]}function ok(t,e){return[Math.max(t[0],e[0]),Math.max(t[1],e[1])]}function oP(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))}function oL(t){if(0===t[0]&&0===t[1])return[0,0];var e=Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2));return[t[0]/e,t[1]/e]}function oD(t){return t*Math.PI/180}function oN(t){return Number((180*t/Math.PI).toPrecision(5))}function oI(t,e){return t.style.opacity||(t.style.opacity=1),r8(t,{opacity:0},e)}var oB=["$el","cx","cy","d","dx","dy","fill","fillOpacity","filter","fontFamily","fontSize","fontStyle","fontVariant","fontWeight","height","img","increasedLineWidthForHitTesting","innerHTML","isBillboard","billboardRotation","isSizeAttenuation","isClosed","isOverflowing","leading","letterSpacing","lineDash","lineHeight","lineWidth","markerEnd","markerEndOffset","markerMid","markerStart","markerStartOffset","maxLines","metrics","miterLimit","offsetX","offsetY","opacity","path","points","r","radius","rx","ry","shadowColor","src","stroke","strokeOpacity","text","textAlign","textBaseline","textDecorationColor","textDecorationLine","textDecorationStyle","textOverflow","textPath","textPathSide","textPathStartOffset","transform","transformOrigin","visibility","width","wordWrap","wordWrapWidth","x","x1","x2","y","y1","y2","z1","z2","zIndex"];function o_(t){var e={};for(var n in t)oB.includes(n)&&(e[n]=t[n]);return e}var oF=rK({lineGroup:"line-group",line:"line",regionGroup:"region-group",region:"region"},"grid");function oj(t){return t.reduce(function(t,e,n){return t.push((0,rE.ev)([0===n?"M":"L"],(0,rE.CR)(e),!1)),t},[])}function oZ(t,e,n){return"surround"===e.type?function(t,e,n){var i=e.connect,r=e.center;if("line"===(void 0===i?"line":i))return oj(t);if(!r)return[];var a=oP(t[0],r),o=n?0:1;return t.reduce(function(t,e,n){return 0===n?t.push((0,rE.ev)(["M"],(0,rE.CR)(e),!1)):t.push((0,rE.ev)(["A",a,a,0,0,o],(0,rE.CR)(e),!1)),t},[])}(t,e,n):oj(t)}var oz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,rE.ZT)(e,t),e.prototype.render=function(t,e){t.type,t.center,t.areaFill,t.closed;var n,i,r,a,o,s=(0,rE._T)(t,["type","center","areaFill","closed"]),l=(i=void 0===(n=t.data)?[]:n,t.closed?i.map(function(t){var e=t.points,n=(0,rE.CR)(e,1)[0];return(0,rE.pi)((0,rE.pi)({},t),{points:(0,rE.ev)((0,rE.ev)([],(0,rE.CR)(e),!1),[n],!1)})}):i),h=rY(e).maybeAppendByClassName(oF.lineGroup,"g"),c=rY(e).maybeAppendByClassName(oF.regionGroup,"g"),u=(r=t.animate,a=t.isBillboard,o=l.map(function(e,n){return{id:e.id||"grid-line-".concat(n),d:oZ(e.points,t)}}),h.selectAll(oF.line.class).data(o,function(t){return t.id}).join(function(t){return t.append("path").each(function(t,e){var n=r1(o_((0,rE.pi)({d:t.d},s)),[t,e,o]);this.attr((0,rE.pi)({class:oF.line.name,stroke:"#D9D9D9",lineWidth:1,lineDash:[4,4],isBillboard:a},n))})},function(t){return t.transition(function(t,e){return r8(this,r1(o_((0,rE.pi)({d:t.d},s)),[t,e,o]),r.update)})},function(t){return t.transition(function(){var t=this,e=oI(this,r.exit);return r3(e,function(){return t.remove()}),e})}).transitions()),d=function(t,e,n){var i=n.animate,r=n.connect,a=n.areaFill;if(e.length<2||!a||!r)return[];for(var o=Array.isArray(a)?a:[a,"transparent"],s=[],l=0;le?0:1;return"M".concat(f,",").concat(g,",A").concat(s,",").concat(l,",0,").concat(a>180?1:0,",").concat(E,",").concat(m,",").concat(v)}function oJ(t){var e=(0,rE.CR)(t,2),n=(0,rE.CR)(e[0],2),i=n[0],r=n[1],a=(0,rE.CR)(e[1],2);return{x1:i,y1:r,x2:a[0],y2:a[1]}}function o0(t){var e=t.type,n=t.gridCenter;return"linear"===e?n:n||t.center}function o1(t,e,n,i,r){return void 0===i&&(i=!0),void 0===r&&(r=!1),!!i&&t===e||!!r&&t===n||t>e&&t0,v=i-l,b=r-h,x=d*b-p*v;if(x<0===m)return!1;var E=f*b-g*v;return E<0!==m&&x>y!==m&&E>y!==m}(e,t)})}(o,c))return!0}}catch(t){i={error:t}}finally{try{h&&!h.done&&(r=l.return)&&r.call(l)}finally{if(i)throw i.error}}return!1}(u.firstChild,d.firstChild,rO(n)):0)?(o.add(s),o.add(d)):s=d}}catch(t){i={error:t}}finally{try{c&&!c.done&&(r=h.return)&&r.call(h)}finally{if(i)throw i.error}}return Array.from(o)}function o7(t,e){return(void 0===e&&(e={}),(0,_.Z)(t))?0:"number"==typeof t?t:Math.floor(al(t,e))}var st={parity:function(t,e){var n=e.seq,i=void 0===n?2:n;return t.filter(function(t,e){return!(e%i)||(rk(t),!1)})}},se=new Map([["hide",function(t,e,n,i){var r,a,o=t.length,s=e.keepHeader,l=e.keepTail;if(!(o<=1)&&(2!==o||!s||!l)){var h=st.parity,c=function(t){return t.forEach(i.show),t},u=2,d=t.slice(),p=t.slice(),f=Math.min.apply(Math,(0,rE.ev)([1],(0,rE.CR)(t.map(function(t){return t.getBBox().width})),!1));if("linear"===n.type&&(oX(n)||oq(n))){var g=aa(t[0]).left,y=Math.abs(aa(t[o-1]).right-g)||1;u=Math.max(Math.floor(o*f/y),u)}for(s&&(r=d.splice(0,1)[0]),l&&(a=d.splice(-1,1)[0],d.reverse()),c(d);uf+p;b-=p){var x=v(b);if("object"==typeof x)return x.value}}}],["wrap",function(t,e,n,i){var r,a,o=e.wordWrapWidth,s=void 0===o?50:o,l=e.maxLines,h=void 0===l?3:l,c=e.recoverWhenFailed,u=e.margin,d=void 0===u?[0,0,0,0]:u,p=t.map(function(t){return t.attr("maxLines")||1}),f=Math.min.apply(Math,(0,rE.ev)([],(0,rE.CR)(p),!1)),g=(r=n.type,a=n.labelDirection,"linear"===r&&oX(n)?"negative"===a?"bottom":"top":"middle"),y=function(e){return t.forEach(function(t,n){var r=Array.isArray(e)?e[n]:e;i.wrap(t,s,r,g)})};if(!(f>h)){for(var m=f;m<=h;m++)if(y(m),o5(t,n,d).length<1)return;(void 0===c||c)&&y(p)}}]]);function sn(t){for(var e=t;e<0;)e+=360;return Math.round(e%360)}function si(t,e){var n=(0,rE.CR)(t,2),i=n[0],r=n[1],a=(0,rE.CR)(e,2),o=a[0],s=a[1],l=(0,rE.CR)([i*o+r*s,i*s-r*o],2),h=l[0];return Math.atan2(l[1],h)}function sr(t,e,n){var i=n.type,r=n.labelAlign,a=oK(t,n),o=sn(e),s=sn(oN(si([1,0],a))),l="center",h="middle";return"linear"===i?[90,270].includes(s)&&0===o?(l="center",h=1===a[1]?"top":"bottom"):!(s%180)&&[90,270].includes(o)?l="center":0===s?o1(o,0,90,!1,!0)?l="start":(o1(o,0,90)||o1(o,270,360))&&(l="start"):90===s?o1(o,0,90,!1,!0)?l="start":(o1(o,90,180)||o1(o,270,360))&&(l="end"):270===s?o1(o,0,90,!1,!0)?l="end":(o1(o,90,180)||o1(o,270,360))&&(l="start"):180===s&&(90===o?l="start":(o1(o,0,90)||o1(o,270,360))&&(l="end")):"parallel"===r?h=o1(s,0,180,!0)?"top":"bottom":"horizontal"===r?o1(s,90,270,!1)?l="end":(o1(s,270,360,!1)||o1(s,0,90))&&(l="start"):"perpendicular"===r&&(l=o1(s,90,270)?"end":"start"),{textAlign:l,textBaseline:h}}function sa(t,e,n){var i=n.showTick,r=n.tickLength,a=n.tickDirection,o=n.labelDirection,s=n.labelSpacing,l=e.indexOf(t),h=r1(s,[t,l,e]),c=(0,rE.CR)([oK(t.value,n),function(){for(var t=[],e=0;e1))||null==a||a(e,i,t,n)})}function sl(t,e,n,i,r){var a,o=n.indexOf(e),s=rY(t).append((a=r.labelFormatter,(0,td.Z)(a)?function(){return as(r1(a,[e,o,n,oK(e.value,r)]))}:function(){return as(e.label||"")})).attr("className",oR.labelItem.name).node(),l=(0,rE.CR)(rW(oH(i,[e,o,n])),2),h=l[0],c=l[1],u=c.transform,d=(0,rE._T)(c,["transform"]);o2(s,u);var p=function(t,e,n){var i,r,a=n.labelAlign;if(null===(r=e.style.transform)||void 0===r?void 0:r.includes("rotate"))return e.getLocalEulerAngles();var o=0,s=oK(t.value,n),l=oU(t.value,n);return"horizontal"===a?0:(o1(i=(oN(o="perpendicular"===a?si([1,0],s):si([l[0]<0?-1:1,0],l))+360)%180,-90,90)||(i+=180),i)}(e,s,r);return s.getLocalEulerAngles()||s.setLocalEulerAngles(p),so(s,(0,rE.pi)((0,rE.pi)({},sr(e.value,p,r)),h)),t.attr(d),s}function sh(t,e){return oY(t,e.tickDirection,e)}function sc(t,e,n,i,r,a){var o,s,l,h,c,u,d,p,f,g,y,m,v,b,x,E,w,C,S,R,A,O=(o=rY(this),s=i.tickFormatter,l=sh(t.value,i),h="line",(0,td.Z)(s)&&(h=function(){return r1(s,[t,e,n,l])}),o.append(h).attr("className",oR.tickItem.name));c=sh(t.value,i),u=i.tickLength,f=(0,rE.CR)((d=r1(u,[t,e,n]),[[0,0],[(p=(0,rE.CR)(c,2))[0]*d,p[1]*d]]),2),y=(g=(0,rE.CR)(f[0],2))[0],m=g[1],x=(b={x1:y,x2:(v=(0,rE.CR)(f[1],2))[0],y1:m,y2:v[1]}).x1,E=b.x2,w=b.y1,C=b.y2,R=(S=(0,rE.CR)(rW(oH(r,[t,e,n,c])),2))[0],A=S[1],"line"===O.node().nodeName&&O.styles((0,rE.pi)({x1:x,x2:E,y1:w,y2:C},R)),this.attr(A),O.styles(R);var M=(0,rE.CR)(o$(t.value,i),2),T=M[0],k=M[1];return r8(this,{transform:"translate(".concat(T,", ").concat(k,")")},a)}function su(t,e,n,i,r){var a=rG(i,"title"),o=(0,rE.CR)(rW(a),2),s=o[0],l=o[1],h=l.transform,c=l.transformOrigin,u=(0,rE._T)(l,["transform","transformOrigin"]);e.styles(u);var d=h||function(t,e,n){var i=2*t.getGeometryBounds().halfExtents[1];if("vertical"===e){if("left"===n)return"rotate(-90) translate(0, ".concat(i/2,")");if("right"===n)return"rotate(-90) translate(0, -".concat(i/2,")")}return""}(t.node(),s.direction,s.position);t.styles((0,rE.pi)((0,rE.pi)({},s),{transformOrigin:c})),o2(t.node(),d);var p=function(t,e,n){var i=n.titlePosition,r=void 0===i?"lb":i,a=n.titleSpacing,o=rq(r),s=t.node().getLocalBounds(),l=(0,rE.CR)(s.min,2),h=l[0],c=l[1],u=(0,rE.CR)(s.halfExtents,2),d=u[0],p=u[1],f=(0,rE.CR)(e.node().getLocalBounds().halfExtents,2),g=f[0],y=f[1],m=(0,rE.CR)([h+d,c+p],2),v=m[0],b=m[1],x=(0,rE.CR)(rO(a),4),E=x[0],w=x[1],C=x[2],S=x[3];if(["start","end"].includes(r)&&"linear"===n.type){var R=n.startPos,A=n.endPos,O=(0,rE.CR)("start"===r?[R,A]:[A,R],2),M=O[0],T=O[1],k=oL([-T[0]+M[0],-T[1]+M[1]]),P=(0,rE.CR)(oA(k,E),2),L=P[0],D=P[1];return{x:M[0]+L,y:M[1]+D}}return o.includes("t")&&(b-=p+y+E),o.includes("r")&&(v+=d+g+w),o.includes("l")&&(v-=d+g+S),o.includes("b")&&(b+=p+y+C),{x:v,y:b}}(rY(n._offscreen||n.querySelector(oR.mainGroup.class)),e,i),f=p.x,g=p.y;return r8(e.node(),{transform:"translate(".concat(f,", ").concat(g,")")},r)}function sd(t,e,n,i){var r=t.showLine,a=t.showTick,o=t.showLabel,s=r$(r,e.maybeAppendByClassName(oR.lineGroup,"g"),function(e){var n,r,a,o,s,l,h,c,u,d,p;return n=e,r=t,a=i,d=r.type,p=rG(r,"line"),"linear"===d?u=function(t,e,n,i){var r,a,o,s,l,h,c,u,d,p,f,g,y,m,v,b,x,E,w=e.showTrunc,C=e.startPos,S=e.endPos,R=e.truncRange,A=e.lineExtension,O=(0,rE.CR)([C,S],2),M=(0,rE.CR)(O[0],2),T=M[0],k=M[1],P=(0,rE.CR)(O[1],2),L=P[0],D=P[1],N=(0,rE.CR)(A?(void 0===(r=A)&&(r=[0,0]),a=(0,rE.CR)([C,S,r],3),s=(o=(0,rE.CR)(a[0],2))[0],l=o[1],c=(h=(0,rE.CR)(a[1],2))[0],u=h[1],p=(d=(0,rE.CR)(a[2],2))[0],f=d[1],v=Math.sqrt(Math.pow(y=(g=(0,rE.CR)([c-s,u-l],2))[0],2)+Math.pow(m=g[1],2)),[(x=(b=(0,rE.CR)([-p/v,f/v],2))[0])*y,x*m,(E=b[1])*y,E*m]):[,,,,].fill(0),4),I=N[0],B=N[1],_=N[2],F=N[3],j=function(e){return t.selectAll(oR.line.class).data(e,function(t,e){return e}).join(function(t){return t.append("line").attr("className",function(t){return"".concat(oR.line.name," ").concat(t.className)}).styles(n).transition(function(t){return r8(this,oJ(t.line),!1)})},function(t){return t.styles(n).transition(function(t){return r8(this,oJ(t.line),i.update)})},function(t){return t.remove()}).transitions()};if(!w||!R)return j([{line:[[T+I,k+B],[L+_,D+F]],className:oR.line.name}]);var Z=(0,rE.CR)(R,2),z=Z[0],G=Z[1],H=L-T,W=D-k,V=(0,rE.CR)([T+H*z,k+W*z],2),U=V[0],Y=V[1],K=(0,rE.CR)([T+H*G,k+W*G],2),$=K[0],X=K[1],q=j([{line:[[T+I,k+B],[U,Y]],className:oR.lineFirst.name},{line:[[$,X],[L+_,D+F]],className:oR.lineSecond.name}]);return e.truncRange,e.truncShape,e.lineExtension,q}(n,r,oG(p,"arrow"),a):(o=oG(p,"arrow"),s=r.startAngle,l=r.endAngle,h=r.center,c=r.radius,u=n.selectAll(oR.line.class).data([{d:oQ.apply(void 0,(0,rE.ev)((0,rE.ev)([s,l],(0,rE.CR)(h),!1),[c],!1))}],function(t,e){return e}).join(function(t){return t.append("path").attr("className",oR.line.name).styles(r).styles({d:function(t){return t.d}})},function(t){return t.transition(function(){var t,e,n,i,r,o=this,u=function(t,e,n,i){if(!i)return t.attr("__keyframe_data__",n),null;var r=i.duration,a=function t(e,n){var i,r,a,o,s,l;return"number"==typeof e&&"number"==typeof n?function(t){return e*(1-t)+n*t}:Array.isArray(e)&&Array.isArray(n)?(i=n?n.length:0,r=e?Math.min(i,e.length):0,function(a){var o=Array(r),s=Array(i),l=0;for(l=0;lc[0])||!(e=0?(s[l]+=r[l],r[l]=s[l]):(s[l]+=a[l],a[l]=s[l]);return e}var sT=function(t){function e(e){return t.call(this,e,{type:"line",x:0,y:0,width:200,height:20,isStack:!1,color:["#83daad","#edbf45","#d2cef9","#e290b3","#6f63f4"],smooth:!0,lineLineWidth:1,areaOpacity:0,isGroup:!1,columnLineWidth:1,columnStroke:"#fff",scale:1,spacing:0})||this}return(0,rE.ZT)(e,t),Object.defineProperty(e.prototype,"rawData",{get:function(){var t=this.attributes.data;if(!t||(null==t?void 0:t.length)===0)return[[]];var e=(0,tp.Z)(t);return(0,eJ.Z)(e[0])?[e]:e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.attributes.isStack?sM(this.rawData):this.rawData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scales",{get:function(){return this.createScales(this.data)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseline",{get:function(){var t=this.scales.y,e=(0,rE.CR)(t.getOptions().domain||[0,0],2),n=e[0],i=e[1];return i<0?t.map(i):t.map(n<0?0:n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerShape",{get:function(){var t=this.attributes;return{width:t.width,height:t.height}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linesStyle",{get:function(){var t=this,e=this.attributes,n=e.type,i=e.isStack,r=e.smooth;if("line"!==n)throw Error("linesStyle can only be used in line type");var a=rG(this.attributes,"area"),o=rG(this.attributes,"line"),s=this.containerShape.width,l=this.data;if(0===l[0].length)return{lines:[],areas:[]};var h=this.scales,c=(f=(d={type:"line",x:h.x,y:h.y}).x,g=d.y,m=(y=(0,rE.CR)(g.getOptions().range||[0,0],2))[0],(v=y[1])>m&&(v=(p=(0,rE.CR)([m,v],2))[0],m=p[1]),l.map(function(t){return t.map(function(t,e){return[f.map(e),(0,im.Z)(g.map(t),v,m)]})})),u=[];if(a){var d,p,f,g,y,m,v,b=this.baseline;u=i?r?function(t,e,n){for(var i=[],r=t.length-1;r>=0;r-=1){var a=t[r],o=sE(a),s=void 0;if(0===r)s=sw(o,e,n);else{var l=sE(t[r-1],!0),h=a[0];l[0][0]="L",s=(0,rE.ev)((0,rE.ev)((0,rE.ev)([],(0,rE.CR)(o),!1),(0,rE.CR)(l),!1),[(0,rE.ev)(["M"],(0,rE.CR)(h),!1),["Z"]],!1)}i.push(s)}return i}(c,s,b):function(t,e,n){for(var i=[],r=t.length-1;r>=0;r-=1){var a=sx(t[r]),o=void 0;if(0===r)o=sw(a,e,n);else{var s=sx(t[r-1],!0);s[0][0]="L",o=(0,rE.ev)((0,rE.ev)((0,rE.ev)([],(0,rE.CR)(a),!1),(0,rE.CR)(s),!1),[["Z"]],!1)}i.push(o)}return i}(c,s,b):c.map(function(t){return sw(r?sE(t):sx(t),s,b)})}return{lines:c.map(function(e,n){return(0,rE.pi)({stroke:t.getColor(n),d:r?sE(e):sx(e)},o)}),areas:u.map(function(e,n){return(0,rE.pi)({d:e,fill:t.getColor(n)},a)})}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnsStyle",{get:function(){var t=this,e=rG(this.attributes,"column"),n=this.attributes,i=n.isStack,r=n.type,a=n.scale;if("column"!==r)throw Error("columnsStyle can only be used in column type");var o=this.containerShape.height,s=this.rawData;if(!s)return{columns:[]};i&&(s=sM(s));var l=this.createScales(s),h=l.x,c=l.y,u=(0,rE.CR)(sO(s),2),d=u[0],p=u[1],f=new sy.b({domain:[0,p-(d>0?0:d)],range:[0,o*a]}),g=h.getBandWidth(),y=this.rawData;return{columns:s.map(function(n,r){return n.map(function(n,a){var o=g/s.length;return(0,rE.pi)((0,rE.pi)({fill:t.getColor(r)},e),i?{x:h.map(a),y:c.map(n),width:g,height:f.map(y[r][a])}:{x:h.map(a)+o*r,y:n>=0?c.map(n):c.map(0),width:o,height:f.map(Math.abs(n))})})})}},enumerable:!1,configurable:!0}),e.prototype.render=function(t,e){(n=".container",e.querySelector(n)?rY(e).select(n):rY(e).append("rect")).attr("className","container").node();var n,i=t.type,r=t.x,a=t.y,o="spark".concat(i),s=(0,rE.pi)({x:r,y:a},"line"===i?this.linesStyle:this.columnsStyle);rY(e).selectAll(".spark").data([i]).join(function(t){return t.append(function(t){return"line"===t?new sb({className:o,style:s}):new sv({className:o,style:s})}).attr("className","spark ".concat(o))},function(t){return t.update(s)},function(t){return t.remove()})},e.prototype.getColor=function(t){var e=this.attributes.color;return(0,ex.Z)(e)?e[t%e.length]:(0,td.Z)(e)?e.call(null,t):e},e.prototype.createScales=function(t){var e,n,i=this.attributes,r=i.type,a=i.scale,o=i.range,s=void 0===o?[]:o,l=i.spacing,h=this.containerShape,c=h.width,u=h.height,d=(0,rE.CR)(sO(t),2),p=d[0],f=d[1],g=new sy.b({domain:[null!==(e=s[0])&&void 0!==e?e:p,null!==(n=s[1])&&void 0!==n?n:f],range:[u,u*(1-a)]});return"line"===r?{type:r,x:new sy.b({domain:[0,t[0].length-1],range:[0,c]}),y:g}:{type:r,x:new sm.t({domain:t[0].map(function(t,e){return e}),range:[0,c],paddingInner:l,paddingOuter:l/2,align:.5}),y:g}},e.tag="sparkline",e}(rF),sk={fill:"#fff",lineWidth:1,radius:2,size:10,stroke:"#bfbfbf",strokeOpacity:1,zIndex:0},sP={fill:"#000",fillOpacity:.45,fontSize:12,textAlign:"center",textBaseline:"middle",zIndex:1},sL={x:0,y:0,orientation:"horizontal",showLabel:!0,type:"start"},sD=rK({foreground:"foreground",handle:"handle",selection:"selection",sparkline:"sparkline",sparklineGroup:"sparkline-group",track:"track",brushArea:"brush-area"},"slider"),sN=rK({labelGroup:"label-group",label:"label",iconGroup:"icon-group",icon:"icon",iconRect:"icon-rect",iconLine:"icon-line"},"handle"),sI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,rE.ZT)(e,t),e.prototype.render=function(t,e){var n=t.x,i=t.y,r=t.size,a=void 0===r?10:r,o=t.radius,s=t.orientation,l=(0,rE._T)(t,["x","y","size","radius","orientation"]),h=2.4*a,c=rY(e).maybeAppendByClassName(sN.iconRect,"rect").styles((0,rE.pi)((0,rE.pi)({},l),{width:a,height:h,radius:void 0===o?a/4:o,x:n-a/2,y:i-h/2,transformOrigin:"center"})),u=n+1/3*a-a/2,d=n+2/3*a-a/2,p=i+1/4*h-h/2,f=i+3/4*h-h/2;c.maybeAppendByClassName("".concat(sN.iconLine,"-1"),"line").styles((0,rE.pi)({x1:u,x2:u,y1:p,y2:f},l)),c.maybeAppendByClassName("".concat(sN.iconLine,"-2"),"line").styles((0,rE.pi)({x1:d,x2:d,y1:p,y2:f},l)),"vertical"===s&&(c.node().style.transform="rotate(90)")},e}(rF),sB=function(t){function e(e){return t.call(this,e,sL)||this}return(0,rE.ZT)(e,t),e.prototype.renderLabel=function(t){var e=this,n=this.attributes,i=n.x,r=n.y,a=n.showLabel,o=rG(this.attributes,"label"),s=o.x,l=void 0===s?0:s,h=o.y,c=void 0===h?0:h,u=o.transform,d=o.transformOrigin,p=(0,rE._T)(o,["x","y","transform","transformOrigin"]),f=(0,rE.CR)(rW(p,[]),2),g=f[0],y=f[1],m=rY(t).maybeAppendByClassName(sN.labelGroup,"g").styles(y),v=(0,rE.pi)((0,rE.pi)({},sP),g),b=v.text,x=(0,rE._T)(v,["text"]);r$(!!a,m,function(t){e.label=t.maybeAppendByClassName(sN.label,"text").styles((0,rE.pi)((0,rE.pi)({},x),{x:i+l,y:r+c,transform:u,transformOrigin:d,text:"".concat(b)})),e.label.on("mousedown",function(t){t.stopPropagation()}),e.label.on("touchstart",function(t){t.stopPropagation()})})},e.prototype.renderIcon=function(t){var e=this.attributes,n=e.x,i=e.y,r=e.orientation,a=e.type,o=(0,rE.pi)((0,rE.pi)({x:n,y:i,orientation:r},sk),rG(this.attributes,"icon")),s=this.attributes.iconShape,l=void 0===s?function(){return new sI({style:o})}:s;rY(t).maybeAppendByClassName(sN.iconGroup,"g").selectAll(sN.icon.class).data([l]).join(function(t){return t.append("string"==typeof l?l:function(){return l(a)}).attr("className",sN.icon.name)},function(t){return t.update(o)},function(t){return t.remove()})},e.prototype.render=function(t,e){this.renderIcon(e),this.renderLabel(e)},e}(rF),s_=function(t){function e(e){var n=t.call(this,e,(0,rE.pi)((0,rE.pi)((0,rE.pi)({x:0,y:0,animate:{duration:100,fill:"both"},brushable:!0,formatter:function(t){return t.toString()},handleSpacing:2,orientation:"horizontal",padding:0,autoFitLabel:!0,scrollable:!0,selectionFill:"#5B8FF9",selectionFillOpacity:.45,selectionZIndex:2,showHandle:!0,showLabel:!0,slidable:!0,trackFill:"#416180",trackLength:200,trackOpacity:.05,trackSize:20,trackZIndex:-1,values:[0,1],type:"range",selectionType:"select",handleIconOffset:0},rH(sL,"handle")),rH(sk,"handleIcon")),rH(sP,"handleLabel")))||this;return n.range=[0,1],n.onDragStart=function(t){return function(e){e.stopPropagation(),n.target=t,n.prevPos=n.getOrientVal(sf(e));var i=n.availableSpace,r=i.x,a=i.y,o=n.getBBox(),s=o.x,l=o.y;n.selectionStartPos=n.getRatio(n.prevPos-n.getOrientVal([r,a])-n.getOrientVal([+s,+l])),n.selectionWidth=0,document.addEventListener("pointermove",n.onDragging),document.addEventListener("pointerup",n.onDragEnd)}},n.onDragging=function(t){var e=n.attributes,i=e.slidable,r=e.brushable,a=e.type;t.stopPropagation();var o=n.getOrientVal(sf(t)),s=o-n.prevPos;if(s){var l=n.getRatio(s);switch(n.target){case"start":i&&n.setValuesOffset(l);break;case"end":i&&n.setValuesOffset(0,l);break;case"selection":i&&n.setValuesOffset(l,l);break;case"track":if(!r)return;n.selectionWidth+=l,"range"===a?n.innerSetValues([n.selectionStartPos,n.selectionStartPos+n.selectionWidth].sort(),!0):n.innerSetValues([0,n.selectionStartPos+n.selectionWidth],!0)}n.prevPos=o}},n.onDragEnd=function(){document.removeEventListener("pointermove",n.onDragging),document.removeEventListener("pointermove",n.onDragging),document.removeEventListener("pointerup",n.onDragEnd),n.target="",n.updateHandlesPosition(!1)},n.onValueChange=function(t){var e=n.attributes,i=e.onChange,r=e.type,a="range"===r?t:t[1],o="range"===r?n.getValues():n.getValues()[1],s=new I.Aw("valuechange",{detail:{oldValue:a,value:o}});n.dispatchEvent(s),null==i||i(o)},n.selectionStartPos=0,n.selectionWidth=0,n.prevPos=0,n.target="",n}return(0,rE.ZT)(e,t),Object.defineProperty(e.prototype,"values",{get:function(){return this.attributes.values},set:function(t){this.attributes.values=this.clampValues(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sparklineStyle",{get:function(){if("horizontal"!==this.attributes.orientation)return null;var t=rG(this.attributes,"sparkline");return(0,rE.pi)((0,rE.pi)({zIndex:0},this.availableSpace),t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){var t=this.attributes,e=t.trackLength,n=t.trackSize,i=(0,rE.CR)(this.getOrientVal([[e,n],[n,e]]),2);return{width:i[0],height:i[1]}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableSpace",{get:function(){var t=this.attributes,e=(t.x,t.y,t.padding),n=(0,rE.CR)(rO(e),4),i=n[0],r=n[1],a=n[2],o=n[3],s=this.shape;return{x:o,y:i,width:s.width-(o+r),height:s.height-(i+a)}},enumerable:!1,configurable:!0}),e.prototype.getValues=function(){return this.values},e.prototype.setValues=function(t,e){void 0===t&&(t=[0,0]),void 0===e&&(e=!1),this.attributes.values=t;var n=!1!==e&&this.attributes.animate;this.updateSelectionArea(n),this.updateHandlesPosition(n)},e.prototype.updateSelectionArea=function(t){var e=this.calcSelectionArea();this.foregroundGroup.selectAll(sD.selection.class).each(function(n,i){r8(this,e[i],t)})},e.prototype.updateHandlesPosition=function(t){this.attributes.showHandle&&(this.startHandle&&r8(this.startHandle,this.getHandleStyle("start"),t),this.endHandle&&r8(this.endHandle,this.getHandleStyle("end"),t))},e.prototype.innerSetValues=function(t,e){void 0===t&&(t=[0,0]),void 0===e&&(e=!1);var n=this.values,i=this.clampValues(t);this.attributes.values=i,this.setValues(i),e&&this.onValueChange(n)},e.prototype.renderTrack=function(t){var e=this.attributes,n=e.x,i=e.y,r=rG(this.attributes,"track");this.trackShape=rY(t).maybeAppendByClassName(sD.track,"rect").styles((0,rE.pi)((0,rE.pi)({x:n,y:i},this.shape),r))},e.prototype.renderBrushArea=function(t){var e=this.attributes,n=e.x,i=e.y,r=e.brushable;this.brushArea=rY(t).maybeAppendByClassName(sD.brushArea,"rect").styles((0,rE.pi)({x:n,y:i,fill:"transparent",cursor:r?"crosshair":"default"},this.shape))},e.prototype.renderSparkline=function(t){var e=this,n=this.attributes,i=n.x,r=n.y;r$("horizontal"===n.orientation,rY(t).maybeAppendByClassName(sD.sparklineGroup,"g"),function(t){var n=(0,rE.pi)((0,rE.pi)({},e.sparklineStyle),{x:i,y:r});t.maybeAppendByClassName(sD.sparkline,function(){return new sT({style:n})}).update(n)})},e.prototype.renderHandles=function(){var t,e=this,n=this.attributes,i=n.showHandle,r=n.type,a=this;null===(t=this.foregroundGroup)||void 0===t||t.selectAll(sD.handle.class).data((i?"range"===r?["start","end"]:["end"]:[]).map(function(t){return{type:t}}),function(t){return t.type}).join(function(t){return t.append(function(t){var n=t.type;return new sB({style:e.getHandleStyle(n)})}).each(function(t){var e=t.type;this.attr("class","".concat(sD.handle.name," ").concat(e,"-handle")),a["".concat(e,"Handle")]=this,this.addEventListener("pointerdown",a.onDragStart(e))})},function(t){return t.each(function(t){var e=t.type;this.update(a.getHandleStyle(e))})},function(t){return t.each(function(t){var e=t.type;a["".concat(e,"Handle")]=void 0}).remove()})},e.prototype.renderSelection=function(t){var e=this.attributes,n=e.x,i=e.y,r=e.type,a=e.selectionType;this.foregroundGroup=rY(t).maybeAppendByClassName(sD.foreground,"g");var o=rG(this.attributes,"selection"),s=function(t){return t.style("visibility",function(t){return t.show?"visible":"hidden"}).style("cursor",function(t){return"select"===a?"grab":"invert"===a?"crosshair":"default"}).styles((0,rE.pi)((0,rE.pi)({},o),{transform:"translate(".concat(n,", ").concat(i,")")}))},l=this;this.foregroundGroup.selectAll(sD.selection.class).data("value"===r?[]:this.calcSelectionArea().map(function(t,e){return{style:(0,rE.pi)({},t),index:e,show:"select"===a?1===e:1!==e}}),function(t){return t.index}).join(function(t){return t.append("rect").attr("className",sD.selection.name).call(s).each(function(t,e){var n=this;1===e?(l.selectionShape=rY(this),this.on("pointerdown",function(t){n.attr("cursor","grabbing"),l.onDragStart("selection")(t)}),l.dispatchCustomEvent(this,"pointerenter","selectionMouseenter"),l.dispatchCustomEvent(this,"pointerleave","selectionMouseleave"),l.dispatchCustomEvent(this,"click","selectionClick"),this.addEventListener("pointerdown",function(){n.attr("cursor","grabbing")}),this.addEventListener("pointerup",function(){n.attr("cursor","pointer")}),this.addEventListener("pointerover",function(){n.attr("cursor","pointer")})):this.on("pointerdown",l.onDragStart("track"))})},function(t){return t.call(s)},function(t){return t.remove()}),this.updateSelectionArea(!1),this.renderHandles()},e.prototype.render=function(t,e){this.renderTrack(e),this.renderSparkline(e),this.renderBrushArea(e),this.renderSelection(e)},e.prototype.clampValues=function(t,e){void 0===e&&(e=4);var n,i=(0,rE.CR)(this.range,2),r=i[0],a=i[1],o=(0,rE.CR)(this.getValues().map(function(t){return sg(t,e)}),2),s=o[0],l=o[1],h=Array.isArray(t)?t:[s,null!=t?t:l],c=(0,rE.CR)((h||[s,l]).map(function(t){return sg(t,e)}),2),u=c[0],d=c[1];if("value"===this.attributes.type)return[0,(0,im.Z)(d,r,a)];u>d&&(u=(n=(0,rE.CR)([d,u],2))[0],d=n[1]);var p=d-u;return p>a-r?[r,a]:ua?l===a&&s===u?[u,a]:[a-p,a]:[u,d]},e.prototype.calcSelectionArea=function(t){var e=(0,rE.CR)(this.clampValues(t),2),n=e[0],i=e[1],r=this.availableSpace,a=r.x,o=r.y,s=r.width,l=r.height;return this.getOrientVal([[{y:o,height:l,x:a,width:n*s},{y:o,height:l,x:n*s+a,width:(i-n)*s},{y:o,height:l,x:i*s,width:(1-i)*s}],[{x:a,width:s,y:o,height:n*l},{x:a,width:s,y:n*l+o,height:(i-n)*l},{x:a,width:s,y:i*l,height:(1-i)*l}]])},e.prototype.calcHandlePosition=function(t){var e=this.attributes.handleIconOffset,n=this.availableSpace,i=n.x,r=n.y,a=n.width,o=n.height,s=(0,rE.CR)(this.clampValues(),2),l=s[0],h=s[1],c=("start"===t?l:h)*this.getOrientVal([a,o])+("start"===t?-e:e);return{x:i+this.getOrientVal([c,a/2]),y:r+this.getOrientVal([o/2,c])}},e.prototype.inferTextStyle=function(t){return"horizontal"===this.attributes.orientation?{}:"start"===t?{transformOrigin:"left center",transform:"rotate(90)",textAlign:"start"}:"end"===t?{transformOrigin:"right center",transform:"rotate(90)",textAlign:"end"}:{}},e.prototype.calcHandleText=function(t){var e,n=this.attributes,i=n.type,r=n.orientation,a=n.formatter,o=n.autoFitLabel,s=rG(this.attributes,"handle"),l=rG(s,"label"),h=s.spacing,c=this.getHandleSize(),u=this.clampValues(),d=a("start"===t?u[0]:u[1]),p=new rV({style:(0,rE.pi)((0,rE.pi)((0,rE.pi)({},l),this.inferTextStyle(t)),{text:d})}),f=p.getBBox(),g=f.width,y=f.height;if(p.destroy(),!o){if("value"===i)return{text:d,x:0,y:-y-h};var m=h+c+("horizontal"===r?g/2:0);return(e={text:d})["horizontal"===r?"x":"y"]="start"===t?-m:m,e}var v=0,b=0,x=this.availableSpace,E=x.width,w=x.height,C=this.calcSelectionArea()[1],S=C.x,R=C.y,A=C.width,O=C.height,M=h+c;if("horizontal"===r){var T=M+g/2;v="start"===t?S-M-g>0?-T:T:E-S-A-M>g?T:-T}else{var k=y+M;b="start"===t?R-c>y?-k:M:w-(R+O)-c>y?k:-M}return{x:v,y:b,text:d}},e.prototype.getHandleLabelStyle=function(t){var e=rG(this.attributes,"handleLabel");return(0,rE.pi)((0,rE.pi)((0,rE.pi)({},e),this.calcHandleText(t)),this.inferTextStyle(t))},e.prototype.getHandleIconStyle=function(){var t=this.attributes.handleIconShape,e=rG(this.attributes,"handleIcon"),n=this.getOrientVal(["ew-resize","ns-resize"]),i=this.getHandleSize();return(0,rE.pi)({cursor:n,shape:t,size:i},e)},e.prototype.getHandleStyle=function(t){var e=this.attributes,n=e.x,i=e.y,r=e.showLabel,a=e.showLabelOnInteraction,o=e.orientation,s=this.calcHandlePosition(t),l=s.x,h=s.y,c=this.calcHandleText(t),u=r;return!r&&a&&(u=!!this.target),(0,rE.pi)((0,rE.pi)((0,rE.pi)({},rH(this.getHandleIconStyle(),"icon")),rH((0,rE.pi)((0,rE.pi)({},this.getHandleLabelStyle(t)),c),"label")),{transform:"translate(".concat(l+n,", ").concat(h+i,")"),orientation:o,showLabel:u,type:t,zIndex:3})},e.prototype.getHandleSize=function(){var t=this.attributes,e=t.handleIconSize,n=t.width,i=t.height;return e||Math.floor((this.getOrientVal([+i,+n])+4)/2.4)},e.prototype.getOrientVal=function(t){var e=(0,rE.CR)(t,2),n=e[0],i=e[1];return"horizontal"===this.attributes.orientation?n:i},e.prototype.setValuesOffset=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=!1);var i=this.attributes.type,r=(0,rE.CR)(this.getValues(),2),a=[r[0]+("range"===i?t:0),r[1]+e].sort();n?this.setValues(a):this.innerSetValues(a,!0)},e.prototype.getRatio=function(t){var e=this.availableSpace,n=e.width,i=e.height;return t/this.getOrientVal([n,i])},e.prototype.dispatchCustomEvent=function(t,e,n){var i=this;t.on(e,function(t){t.stopPropagation(),i.dispatchEvent(new I.Aw(n,{detail:t}))})},e.prototype.bindEvents=function(){this.addEventListener("wheel",this.onScroll);var t=this.brushArea;this.dispatchCustomEvent(t,"click","trackClick"),this.dispatchCustomEvent(t,"pointerenter","trackMouseenter"),this.dispatchCustomEvent(t,"pointerleave","trackMouseleave"),t.on("pointerdown",this.onDragStart("track"))},e.prototype.onScroll=function(t){if(this.attributes.scrollable){var e=t.deltaX,n=t.deltaY||e,i=this.getRatio(n);this.setValuesOffset(i,i,!0)}},e.tag="slider",e}(rF),sF={backgroundFill:"#262626",backgroundLineCap:"round",backgroundLineWidth:1,backgroundStroke:"#333",backgroundZIndex:-1,formatter:function(t){return t.toString()},labelFill:"#fff",labelFontSize:12,labelTextBaseline:"middle",padding:[2,4],position:"right",radius:0,zIndex:999},sj=rK({background:"background",labelGroup:"label-group",label:"label"},"indicator"),sZ=function(t){function e(e){var n=t.call(this,e,sF)||this;return n.point=[0,0],n.group=n.appendChild(new I.ZA({})),n.isMutationObserved=!0,n}return(0,rE.ZT)(e,t),e.prototype.renderBackground=function(){if(this.label){var t=this.attributes,e=t.position,n=t.padding,i=(0,rE.CR)(rO(n),4),r=i[0],a=i[1],o=i[2],s=i[3],l=this.label.node().getLocalBounds(),h=l.min,c=l.max,u=new rw(h[0]-s,h[1]-r,c[0]+a-h[0]+s,c[1]+o-h[1]+r),d=this.getPath(e,u),p=rG(this.attributes,"background");this.background=rY(this.group).maybeAppendByClassName(sj.background,"path").styles((0,rE.pi)((0,rE.pi)({},p),{d:d})),this.group.appendChild(this.label.node())}},e.prototype.renderLabel=function(){var t=this.attributes,e=t.formatter,n=t.labelText,i=rG(this.attributes,"label"),r=(0,rE.CR)(rW(i),2),a=r[0],o=r[1],s=(a.text,(0,rE._T)(a,["text"]));this.label=rY(this.group).maybeAppendByClassName(sj.labelGroup,"g").styles(o),n&&this.label.maybeAppendByClassName(sj.label,function(){return as(e(n))}).style("text",e(n).toString()).selectAll("text").styles(s)},e.prototype.adjustLayout=function(){var t=(0,rE.CR)(this.point,2),e=t[0],n=t[1],i=this.attributes,r=i.x,a=i.y;this.group.attr("transform","translate(".concat(r-e,", ").concat(a-n,")"))},e.prototype.getPath=function(t,e){var n=this.attributes.radius,i=e.x,r=e.y,a=e.width,o=e.height,s=[["M",i+n,r],["L",i+a-n,r],["A",n,n,0,0,1,i+a,r+n],["L",i+a,r+o-n],["A",n,n,0,0,1,i+a-n,r+o],["L",i+n,r+o],["A",n,n,0,0,1,i,r+o-n],["L",i,r+n],["A",n,n,0,0,1,i+n,r],["Z"]],l={top:4,right:6,bottom:0,left:2}[t],h=this.createCorner([s[l].slice(-2),s[l+1].slice(-2)]);return s.splice.apply(s,(0,rE.ev)([l+1,1],(0,rE.CR)(h),!1)),s[0][0]="M",s},e.prototype.createCorner=function(t,e){void 0===e&&(e=10);var n=ao.apply(void 0,(0,rE.ev)([],(0,rE.CR)(t),!1)),i=(0,rE.CR)(t,2),r=(0,rE.CR)(i[0],2),a=r[0],o=r[1],s=(0,rE.CR)(i[1],2),l=s[0],h=s[1],c=(0,rE.CR)(n?[l-a,[a,l]]:[h-o,[o,h]],2),u=c[0],d=(0,rE.CR)(c[1],2),p=d[0],f=d[1],g=u/2,y=e*(u/Math.abs(u)),m=y/2,v=y*Math.sqrt(3)/2*.8,b=(0,rE.CR)([p,p+g-m,p+g,p+g+m,f],5),x=b[0],E=b[1],w=b[2],C=b[3],S=b[4];return n?(this.point=[w,o-v],[["L",x,o],["L",E,o],["L",w,o-v],["L",C,o],["L",S,o]]):(this.point=[a+v,w],[["L",a,x],["L",a,E],["L",a+v,w],["L",a,C],["L",a,S]])},e.prototype.applyVisibility=function(){"hidden"===this.attributes.visibility?rk(this):rT(this)},e.prototype.bindEvents=function(){this.label.on(I.Dk.BOUNDS_CHANGED,this.renderBackground)},e.prototype.render=function(){this.renderLabel(),this.renderBackground(),this.adjustLayout(),this.applyVisibility()},e}(rF),sz=function(t){function e(n){var i=t.call(this,rN({},e.defaultOptions,n))||this;return i.hoverColor="#f5f5f5",i.selectedColor="#e6f7ff",i.background=i.appendChild(new I.UL({})),i.label=i.background.appendChild(new I.ZA({})),i}return(0,rE.ZT)(e,t),Object.defineProperty(e.prototype,"padding",{get:function(){return rO(this.style.padding)},enumerable:!1,configurable:!0}),e.prototype.renderLabel=function(){var t=this.style,e=t.label,n=t.value,i=rG(this.attributes,"label");rY(this.label).maybeAppend(".label",function(){return as(e)}).attr("className","label").styles(i),this.label.attr("__data__",n)},e.prototype.renderBackground=function(){var t=this.label.getBBox(),e=(0,rE.CR)(this.padding,4),n=e[0],i=e[1],r=e[2],a=e[3],o=t.width,s=t.height,l=s+n+r,h=rG(this.attributes,"background"),c=this.style,u=c.width,d=c.height,p=c.selected;this.background.attr((0,rE.pi)((0,rE.pi)({},h),{width:Math.max(o+a+i,void 0===u?0:u),height:Math.max(l,void 0===d?0:d),fill:p?this.selectedColor:"#fff"})),this.label.attr({transform:"translate(".concat(a,", ").concat((l-s)/2,")")})},e.prototype.render=function(){this.renderLabel(),this.renderBackground()},e.prototype.bindEvents=function(){var t=this;this.addEventListener("pointerenter",function(){t.style.selected||t.background.attr("fill",t.hoverColor)}),this.addEventListener("pointerleave",function(){t.style.selected||t.background.attr("fill",t.style.backgroundFill)});var e=this;this.addEventListener("click",function(){var n=t.style,i=n.label,r=n.value,a=n.onClick;null==a||a(r,{label:i,value:r},e)})},e.defaultOptions={style:{value:"",label:"",cursor:"pointer"}},e}(rF),sG=function(t){function e(n){var i,r,a=t.call(this,rN({},e.defaultOptions,n))||this;a.currentValue=null===(i=e.defaultOptions.style)||void 0===i?void 0:i.defaultValue,a.isPointerInSelect=!1,a.select=a.appendChild(new I.UL({className:"select",style:{cursor:"pointer",width:0,height:0}})),a.dropdown=a.appendChild(new I.UL({className:"dropdown"}));var o=a.style.defaultValue;return o&&(null===(r=a.style.options)||void 0===r?void 0:r.some(function(t){return t.value===o}))&&(a.currentValue=o),a}return(0,rE.ZT)(e,t),e.prototype.setValue=function(t){this.currentValue=t,this.render()},e.prototype.getValue=function(){return this.currentValue},Object.defineProperty(e.prototype,"dropdownPadding",{get:function(){return rO(this.style.dropdownPadding)},enumerable:!1,configurable:!0}),e.prototype.renderSelect=function(){var t,e=this,n=this.style,i=n.x,r=n.y,a=n.width,o=n.height,s=n.bordered,l=n.showDropdownIcon,h=rG(this.attributes,"select"),c=rG(this.attributes,"placeholder");this.select.attr((0,rE.pi)((0,rE.pi)({x:i,y:r,width:a,height:o},h),{fill:"#fff",strokeWidth:s?1:0}));var u=this.dropdownPadding;l&&rY(this.select).maybeAppend(".dropdown-icon","path").style("d","M-5,-3.5 L0,3.5 L5,-3.5").style("transform","translate(".concat(i+a-10-u[1]-u[3],", ").concat(r+o/2,")")).style("lineWidth",1).style("stroke",this.select.style.stroke);var d=null===(t=this.style.options)||void 0===t?void 0:t.find(function(t){return t.value===e.currentValue}),p=(0,rE.pi)({x:i+u[3]},c);rY(this.select).selectAll(".placeholder").data(d?[]:[1]).join(function(t){return t.append("text").attr("className","placeholder").styles(p).style("y",function(){return r+(o-this.getBBox().height)/2})},function(t){return t.styles(p)},function(t){return t.remove()});var f=rG(this.attributes,"optionLabel"),g=(0,rE.pi)({x:i+u[3]},f);rY(this.select).selectAll(".value").data(d?[d]:[]).join(function(t){return t.append(function(t){return as(t.label)}).attr("className","value").styles(g).style("y",function(){return r+(o-this.getBBox().height)/2})},function(t){return t.styles(g)},function(t){return t.remove()})},e.prototype.renderDropdown=function(){var t,e,n=this,i=this.style,r=i.x,a=i.y,o=i.width,s=i.height,l=i.options,h=i.onSelect,c=i.open,u=rG(this.attributes,"dropdown"),d=rG(this.attributes,"option"),p=this.dropdownPadding;rY(this.dropdown).maybeAppend(".dropdown-container","g").attr("className","dropdown-container").selectAll(".dropdown-item").data(l,function(t){return t.value}).join(function(t){return t.append(function(t){return new sz({className:"dropdown-item",style:(0,rE.pi)((0,rE.pi)((0,rE.pi)({},t),d),{width:o-p[1]-p[3],selected:t.value===n.currentValue,onClick:function(t,e,i){n.setValue(t),null==h||h(t,e,i),n.dispatchEvent(new I.Aw("change",{detail:{value:t,option:e,item:i}})),rk(n.dropdown)}})})}).each(function(t,e){var n,i=(null===(n=this.parentNode)||void 0===n?void 0:n.children).reduce(function(t,n,i){return ie.time?1:0})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"space",{get:function(){var t,e=this.attributes,n=e.x,i=e.y,r=e.width,a=e.height,o=e.type,s=e.controllerHeight,l=(0,im.Z)(+a-s,0,+a),h=new rw(n,i+ +a-s,+r,s),c=0;"chart"===o?(c=35,t=new rw(n,i+l-c,+r,c)):t=new rw;var u="time"===o?10:l;return{axisBBox:t,controllerBBox:h,timelineBBox:new rw(n,i+("time"===o?l:l-u),+r,u-c)}},enumerable:!1,configurable:!0}),e.prototype.setBySliderValues=function(t){var e,n,i=this.data,r=(0,rE.CR)(Array.isArray(t)?t:[0,t],2),a=r[0],o=r[1],s=i.length,l=i[Math.floor(a*s)],h=i[Math.ceil(o*s)-(Array.isArray(t)?0:1)];this.states.values=[null!==(e=null==l?void 0:l.time)&&void 0!==e?e:i[0].time,null!==(n=null==h?void 0:h.time)&&void 0!==n?n:1/0]},e.prototype.setByTimebarValues=function(t){var e,n,i,r=this.data,a=(0,rE.CR)(Array.isArray(t)?t:[void 0,t],2),o=a[0],s=a[1],l=r.find(function(t){return t.time===o}),h=r.find(function(t){return t.time===s});this.states.values=[null!==(e=null==l?void 0:l.time)&&void 0!==e?e:null===(n=r[0])||void 0===n?void 0:n.time,null!==(i=null==h?void 0:h.time)&&void 0!==i?i:1/0]},e.prototype.setByIndex=function(t){var e,n,i,r,a=this.data,o=(0,rE.CR)(t,2),s=o[0],l=o[1];this.states.values=[null!==(n=null===(e=a[s])||void 0===e?void 0:e.time)&&void 0!==n?n:a[0].time,null!==(r=null===(i=this.data[l])||void 0===i?void 0:i.time)&&void 0!==r?r:1/0]},Object.defineProperty(e.prototype,"sliderValues",{get:function(){var t,e=this.states,n=e.values,i=e.selectionType,r=(0,rE.CR)(Array.isArray(n)?n:[void 0,n],2),a=r[0],o=r[1],s=this.data,l=s.length,h="value"===i;return[(t=s.findIndex(function(t){return t.time===a}),h?0:t>-1?t/l:0),function(){if(o===1/0)return 1;var t=s.findIndex(function(t){return t.time===o});return t>-1?t/l:h?.5:1}()]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"values",{get:function(){var t=this.states,e=t.values,n=t.selectionType,i=(0,rE.CR)(Array.isArray(e)?e:[this.data[0].time,e],2),r=i[0],a=i[1];return"value"===n?a:[r,a]},enumerable:!1,configurable:!0}),e.prototype.getDatumByRatio=function(t){var e=this.data,n=Math.floor(t*(e.length-1));return e[n]},Object.defineProperty(e.prototype,"chartHandleIconShape",{get:function(){var t=this.states.selectionType,e=this.space.timelineBBox.height;return"range"===t?function(t){return new lt({style:{type:t,height:e,iconSize:e/6}})}:function(){return new I.x1({style:{x1:0,y1:-e/2,x2:0,y2:e/2,lineWidth:2,stroke:"#c8c8c8"}})}},enumerable:!1,configurable:!0}),e.prototype.getChartStyle=function(t){var e=this,n=t.x,i=t.y,r=t.width,a=t.height,o=this.states,s=o.selectionType,l=o.chartType,h=this.data,c=this.attributes,u=c.type,d=c.labelFormatter,p=rG(this.attributes,"chart"),f=(p.type,(0,rE._T)(p,["type"])),g="range"===s;if("time"===u)return(0,rE.pi)({handleIconShape:function(){return new s7({})},selectionFill:"#2e7ff8",selectionFillOpacity:1,showLabelOnInteraction:!0,handleLabelDy:g?-15:0,autoFitLabel:g,handleSpacing:g?-15:0,trackFill:"#edeeef",trackLength:r,trackOpacity:.5,trackRadius:a/2,trackSize:a/2,type:s,values:this.sliderValues,formatter:function(t){if(d)return d(t);var n=e.getDatumByRatio(t).time;return"number"==typeof n?le(n):oC(n,"YYYY-MM-DD HH:mm:ss")},transform:"translate(".concat(n,", ").concat(i,")"),zIndex:1},f);var y=h.map(function(t){return t.value});return(0,rE.pi)({handleIconOffset:"range"===s?5:0,handleIconShape:this.chartHandleIconShape,selectionFill:"#fff",selectionFillOpacity:.5,selectionType:"invert",sparklineSpacing:.1,sparklineColumnLineWidth:0,sparklineColor:"#d4e5fd",sparklineAreaOpacity:1,sparklineAreaLineWidth:0,sparklineData:y,sparklineType:l,sparklineScale:.8,trackLength:r,trackSize:a,type:s,values:this.sliderValues,transform:"translate(".concat(n,", ").concat(i,")"),zIndex:1},f)},e.prototype.renderChart=function(t){void 0===t&&(t=this.space.timelineBBox),this.timeline.update(this.getChartStyle(t))},e.prototype.updateSelection=function(){this.timeline.setValues(this.sliderValues,!0),this.handleSliderChange(this.sliderValues)},e.prototype.getAxisStyle=function(t){var e=this.data,n=this.attributes,i=n.interval,r=n.labelFormatter,a=rG(this.attributes,"axis"),o=t.x,s=t.y,l=t.width,h=(0,rE.ev)((0,rE.ev)([],(0,rE.CR)(e),!1),[{time:0}],!1).map(function(t,e,n){var i=t.time;return{label:"".concat(i),value:e/(n.length-1),time:i}});return(0,rE.pi)({startPos:[o,s],endPos:[o+l,s],data:h,labelFilter:function(t,e){return en.getHours())return"AM\n".concat(oC(n,"YYYY-MM-DD"));return"PM";case"day":if([1,10,20].includes(n.getDate()))return oC(n,"DD\nYYYY-MM");return oC(n,"DD");case"week":if(7>=n.getDate())return oC(n,"DD\nYYYY-MM");return oC(n,"DD");case"month":if([0,6].includes(n.getMonth()))return oC(n,"MM月\nYYYY");return oC(n,"MM月");case"season":if([0].includes(n.getMonth()))return oC(n,"MM月\nYYYY");return oC(n,"MM月");case"year":return oC(n,"YYYY");default:return oC(n,"YYYY-MM-DD HH:mm")}}(e,i)}},a)},e.prototype.renderAxis=function(t){void 0===t&&(t=this.space.axisBBox),"chart"===this.attributes.type&&this.axis.update(this.getAxisStyle(t))},e.prototype.renderController=function(t){void 0===t&&(t=this.space.controllerBBox);var e=this.attributes.type,n=this.states,i=n.state,r=n.speed,a=n.selectionType,o=n.chartType,s=rG(this.attributes,"controller"),l=this,h=(0,rE.pi)((0,rE.pi)((0,rE.pi)({},t),{iconSize:20,speed:r,state:i,selectionType:a,chartType:o,onChange:function(t,e){var n=e.value;switch(t){case"reset":l.internalReset();break;case"speed":l.handleSpeedChange(n);break;case"backward":l.internalBackward();break;case"playPause":"play"===n?l.internalPlay():l.internalPause();break;case"forward":l.internalForward();break;case"selectionType":l.handleSelectionTypeChange(n);break;case"chartType":l.handleChartTypeChange(n)}}}),s);"time"===e&&(h.functions=[["reset","speed"],["backward","playPause","forward"],["selectionType"]]),this.controller.update(h)},e.prototype.dispatchOnChange=function(t){var e=this.data,n=this.attributes.onChange,i=this.states,r=i.values,a=i.selectionType,o=(0,rE.CR)(r,2),s=o[0],l=o[1],h=l===1/0?e.at(-1).time:l,c="range"===a?[s,h]:h;(!t||(Array.isArray(t)?!Array.isArray(c)||t[0]!==c[0]||t[1]!==c[1]&&t[1]!==1/0&&c[1]!==1/0:Array.isArray(c)||t!==c))&&null!=n&&n("range"===a?[s,h]:h)},e.prototype.internalReset=function(t){var e,n,i=this.states.selectionType;this.internalPause(),this.setBySliderValues("range"===i?[0,1]:[0,0]),this.renderController(),this.updateSelection(),t||(null===(n=null===(e=this.attributes)||void 0===e?void 0:e.onReset)||void 0===n||n.call(e),this.dispatchOnChange())},e.prototype.reset=function(){this.internalReset()},e.prototype.moveSelection=function(t,e){var n,i,r,a,o,s,l=this.data,h=l.length,c=this.states,u=c.values,d=c.selectionType,p=c.playMode,f=(0,rE.CR)(u,2),g=f[0],y=f[1],m=l.findIndex(function(t){return t.time===g}),v=l.findIndex(function(t){return t.time===y});-1===v&&(v=h);var b="backward"===t?-1:1;"range"===d?"acc"===p?(s=[m,v+b],-1===b&&m===v&&(s=[m,h])):s=[m+b,v+b]:s=[m,v+b];var x=(n=s,r=(i=(0,rE.CR)(n.sort(function(t,e){return t-e}),2))[0],a=i[1],o=function(t){return(0,im.Z)(t,0,h)},a>h?"value"===d?[0,0]:"acc"===p?[o(r),o(r)]:[0,o(a-r)]:r<0?"acc"===p?[0,o(a)]:[o(r+h-a),h]:[o(r),o(a)]);return this.setByIndex(x),this.updateSelection(),x},e.prototype.internalBackward=function(t){var e,n,i=this.moveSelection("backward",t);return t||(null===(n=null===(e=this.attributes)||void 0===e?void 0:e.onBackward)||void 0===n||n.call(e),this.dispatchOnChange()),i},e.prototype.backward=function(){this.internalBackward()},e.prototype.internalPlay=function(t){var e,n,i=this,r=this.data,a=this.attributes.loop,o=this.states.speed,s=void 0===o?1:o;this.playInterval=window.setInterval(function(){i.internalForward()[1]!==r.length||a||(i.internalPause(),i.renderController())},1e3/s),this.states.state="play",t||null===(n=null===(e=this.attributes)||void 0===e?void 0:e.onPlay)||void 0===n||n.call(e)},e.prototype.play=function(){this.internalPlay()},e.prototype.internalPause=function(t){var e,n;clearInterval(this.playInterval),this.states.state="pause",t||null===(n=null===(e=this.attributes)||void 0===e?void 0:e.onPause)||void 0===n||n.call(e)},e.prototype.pause=function(){this.internalPause()},e.prototype.internalForward=function(t){var e,n,i=this.moveSelection("forward",t);return t||(null===(n=null===(e=this.attributes)||void 0===e?void 0:e.onForward)||void 0===n||n.call(e),this.dispatchOnChange()),i},e.prototype.forward=function(){this.internalForward()},e.prototype.handleSpeedChange=function(t){var e,n;this.states.speed=t,"play"===this.states.state&&(this.internalPause(!0),this.internalPlay(!0)),null===(n=null===(e=this.attributes)||void 0===e?void 0:e.onSpeedChange)||void 0===n||n.call(e,t)},e.prototype.handleSelectionTypeChange=function(t){var e,n;this.states.selectionType=t,this.renderChart(),null===(n=null===(e=this.attributes)||void 0===e?void 0:e.onSelectionTypeChange)||void 0===n||n.call(e,t)},e.prototype.handleChartTypeChange=function(t){var e,n;this.states.chartType=t,this.renderChart(),null===(n=null===(e=this.attributes)||void 0===e?void 0:e.onChartTypeChange)||void 0===n||n.call(e,t)},e.prototype.render=function(){var t=this.space,e=t.axisBBox,n=t.controllerBBox,i=t.timelineBBox;this.renderController(n),this.renderAxis(e),this.renderChart(i),"play"===this.states.state&&this.internalPlay()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.internalPause(!0)},e.defaultOptions={style:{x:0,y:0,axisLabelFill:"#6e6e6e",axisLabelTextAlign:"left",axisLabelTextBaseline:"top",axisLabelTransform:"translate(5, -12)",axisLineLineWidth:1,axisLineStroke:"#cacdd1",axisTickLength:15,axisTickLineWidth:1,axisTickStroke:"#cacdd1",chartShowLabel:!1,chartType:"line",controllerAlign:"center",controllerHeight:40,data:[],interval:"day",loop:!1,playMode:"acc",selectionType:"range",type:"time"}},e}(rF),li=n(95456);let lr=["timestamp","time","date","datetime"];class la extends iF{get padding(){return ty(this.options.padding)}play(){var t;null===(t=this.timebar)||void 0===t||t.play()}pause(){var t;null===(t=this.timebar)||void 0===t||t.pause()}forward(){var t;null===(t=this.timebar)||void 0===t||t.forward()}backward(){var t;null===(t=this.timebar)||void 0===t||t.backward()}reset(){var t;null===(t=this.timebar)||void 0===t||t.reset()}update(t){super.update(t),this.backup(),Object.keys(t).forEach(t=>{"position"===t?this.upsertWrapper():this.upsertTimebar()})}backup(){this.originalData=lo(this.context.graph.getData())}upsertTimebar(){let{canvas:t}=this.context,{onChange:e,timebarType:n,data:i,x:r,y:a,width:o,height:s,mode:l,...h}=this.options,c=t.getSize(),[u]=this.padding;this.upsertCanvas().ready.then(()=>{let t={x:c[0]/2-o/2,y:u,onChange:t=>{let n=((0,ex.Z)(t)?t:[t,t]).map(t=>(0,li.Z)(t,"Date")?t.getTime():t);"modify"===this.options.mode?this.filterElements(n):this.hiddenElements(n),null==e||e(n)},...h,data:i.map(t=>(0,eJ.Z)(t)?{time:t,value:0}:t),width:o,height:s,type:n};if(this.timebar)this.timebar.update(t);else{var r;this.timebar=new ln({style:t}),null===(r=this.canvas)||void 0===r||r.appendChild(this.timebar)}})}upsertWrapper(){var t;if(!this.wrapper){let t=document.createElement("div");t.style.position="absolute",this.wrapper=t}let{x:e,y:n,className:i,position:r}=this.options;return i&&(this.wrapper.className=i),(0,eJ.Z)(e)||(0,eJ.Z)(n)?Object.assign(this.wrapper.style,{left:"".concat(null!=e?e:0,"px"),top:"".concat(null!=n?n:0,"px")}):Object.assign(this.wrapper.style,{["top"===r?"bottom":"top"]:"unset",["top"===r?"top":"bottom"]:"0px"}),null===(t=this.context.canvas.getContainer())||void 0===t||t.appendChild(this.wrapper),this.wrapper}upsertCanvas(){var t,e;let n=this.upsertWrapper();if(this.canvas)return this.canvas;let{height:i}=this.options,[r]=this.context.canvas.getSize(),[a,,o]=this.padding;return this.canvas=new I.Xz({container:n,width:r,height:i+a+o,renderer:(null===(e=(t=this.context.options).renderer)||void 0===e?void 0:e.call(t,"main"))||new of,supportsMutipleCanvasesInOneContainer:!0}),this.canvas}async filterElements(t){var e;if(!this.originalData)return;let{elementTypes:n,getTime:i}=this.options,{graph:r,element:a}=this.context,o=lo(this.originalData);n.forEach(e=>{let n="".concat(e,"s");o[n]=(this.originalData[n]||[]).filter(e=>{let n=i(e);return!!ls(n,t)})});let s=[...o.nodes,...o.combos].map(t=>tt(t));o.edges=o.edges.filter(t=>{let e=t.source,n=t.target;return s.includes(e)&&s.includes(n)}),r.setData(o),await (null===(e=a.draw({animation:!1,silence:!0}))||void 0===e?void 0:e.finished)}hiddenElements(t){let{graph:e}=this.context,{elementTypes:n,getTime:i}=this.options,r=[],a=[];n.forEach(e=>{var n;let o=(null===(n=this.originalData)||void 0===n?void 0:n["".concat(e,"s")])||[];o.forEach(e=>{let n=tt(e),o=i(e);ls(o,t)?a.push(n):r.push(n)})}),e.hideElement(r,!1),e.showElement(a,!1)}destroy(){var t,e,n;let{graph:i}=this.context;this.originalData&&i.setData({...this.originalData}),null===(t=this.timebar)||void 0===t||t.destroy(),null===(e=this.canvas)||void 0===e||e.destroy(),null===(n=this.wrapper)||void 0===n||n.remove(),this.originalData=void 0,this.wrapper=void 0,this.timebar=void 0,this.canvas=void 0,super.destroy()}constructor(t,e){super(t,Object.assign({},la.defaultOptions,e)),this.backup(),this.upsertTimebar()}}la.defaultOptions={position:"bottom",enable:!0,timebarType:"time",className:"g6-timebar",width:450,height:60,zIndex:3,elementTypes:["node"],padding:10,mode:"modify",getTime:t=>ll(t,lr,void 0),loop:!1};let lo=t=>{let{nodes:e=[],edges:n=[],combos:i=[]}=t;return{nodes:[...e],edges:[...n],combos:[...i]}},ls=(t,e)=>{if((0,eJ.Z)(e))return t===e;let[n,i]=e;return t>=n&&t<=i},ll=(t,e,n)=>{for(let n=0;n{e[t]="8px"}),e.flexDirection=t.startsWith("top")||t.startsWith("bottom")?"row":"column",e}(n)),this.$element.innerHTML=await this.getDOMContent()}destroy(){this.$element.removeEventListener("click",this.onToolbarItemClick),this.$element.remove(),super.destroy()}async getDOMContent(){let t=await this.options.getItems();return t.map(t=>'\n
    \n \n
    ')).join("")}constructor(t,e){super(t,Object.assign({},lh.defaultOptions,e)),this.$element=iB("toolbar",!1),this.onToolbarItemClick=t=>{let{onClick:e}=this.options;if(t.target instanceof Element&&t.target.className.includes("g6-toolbar-item")){let n=t.target.getAttribute("value");null==e||e(n,t.target)}};let n=this.context.canvas.getContainer();this.$element.style.display="flex",n.appendChild(this.$element),i_("g6-toolbar-css","style",{},"\n .g6-toolbar {\n position: absolute;\n z-index: 100;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n border-radius: 4px;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);\n opacity: 0.65;\n }\n .g6-toolbar .g6-toolbar-item {\n display: inline-block;\n width: 16px;\n height: 16px;\n padding: 4px;\n cursor: pointer;\n box-sizing: content-box;\n }\n\n .g6-toolbar .g6-toolbar-item:hover {\n background-color: #f0f0f0;\n }\n\n .g6-toolbar .g6-toolbar-item svg {\n display: inline-block;\n width: 100%;\n height: 100%;\n pointer-events: none;\n }\n",document.head),i_("g6-toolbar-svgicon","div",{display:"none"},'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'),this.$element.addEventListener("click",this.onToolbarItemClick),this.update(e)}}lh.defaultOptions={position:"top-left"};var lc=n(88204),lu=n(68856),ld=function(t,e){if(null==e){t.innerHTML="";return}t.replaceChildren?Array.isArray(e)?t.replaceChildren.apply(t,(0,rE.ev)([],(0,rE.CR)(e),!1)):t.replaceChildren(e):(t.innerHTML="",Array.isArray(e)?e.forEach(function(e){return t.appendChild(e)}):t.appendChild(e))};function lp(t){return void 0===t&&(t=""),{CONTAINER:"".concat(t,"tooltip"),TITLE:"".concat(t,"tooltip-title"),LIST:"".concat(t,"tooltip-list"),LIST_ITEM:"".concat(t,"tooltip-list-item"),NAME:"".concat(t,"tooltip-list-item-name"),MARKER:"".concat(t,"tooltip-list-item-marker"),NAME_LABEL:"".concat(t,"tooltip-list-item-name-label"),VALUE:"".concat(t,"tooltip-list-item-value"),CROSSHAIR_X:"".concat(t,"tooltip-crosshair-x"),CROSSHAIR_Y:"".concat(t,"tooltip-crosshair-y")}}var lf={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"},lg=function(t){function e(e){var n,i,r,a,o,s=this,l=null===(o=null===(a=e.style)||void 0===a?void 0:a.template)||void 0===o?void 0:o.prefixCls,h=lp(l);return(s=t.call(this,e,{data:[],x:0,y:0,visibility:"visible",title:"",position:"bottom-right",offset:[5,5],enterable:!1,container:{x:0,y:0},bounding:null,template:{prefixCls:"",container:'
    '),title:'
    '),item:'
  • \n \n \n {name}\n \n {value}\n
  • ')},style:(void 0===(n=l)&&(n=""),r=lp(n),(i={})[".".concat(r.CONTAINER)]={position:"absolute",visibility:"visible","z-index":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)","background-color":"rgba(255, 255, 255, 0.96)","box-shadow":"0 6px 12px 0 rgba(0, 0, 0, 0.12)","border-radius":"4px",color:"rgba(0, 0, 0, 0.65)","font-size":"12px","line-height":"20px",padding:"12px","min-width":"120px","max-width":"360px","font-family":"Roboto-Regular"},i[".".concat(r.TITLE)]={color:"rgba(0, 0, 0, 0.45)"},i[".".concat(r.LIST)]={margin:"0px","list-style-type":"none",padding:"0px"},i[".".concat(r.LIST_ITEM)]={"list-style-type":"none",display:"flex","line-height":"2em","align-items":"center","justify-content":"space-between","white-space":"nowrap"},i[".".concat(r.MARKER)]={width:"8px",height:"8px","border-radius":"50%",display:"inline-block","margin-right":"4px"},i[".".concat(r.NAME)]={display:"flex","align-items":"center","max-width":"216px"},i[".".concat(r.NAME_LABEL)]=(0,rE.pi)({flex:1},lf),i[".".concat(r.VALUE)]=(0,rE.pi)({display:"inline-block",float:"right",flex:1,"text-align":"right","min-width":"28px","margin-left":"30px",color:"rgba(0, 0, 0, 0.85)"},lf),i[".".concat(r.CROSSHAIR_X)]={position:"absolute",width:"1px","background-color":"rgba(0, 0, 0, 0.25)"},i[".".concat(r.CROSSHAIR_Y)]={position:"absolute",height:"1px","background-color":"rgba(0, 0, 0, 0.25)"},i)})||this).timestamp=-1,s.prevCustomContentKey=s.attributes.contentKey,s.initShape(),s.render(s.attributes,s),s}return(0,rE.ZT)(e,t),Object.defineProperty(e.prototype,"HTMLTooltipElement",{get:function(){return this.element},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.element},Object.defineProperty(e.prototype,"elementSize",{get:function(){return{width:this.element.offsetWidth,height:this.element.offsetHeight}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HTMLTooltipItemsElements",{get:function(){var t=this.attributes,e=t.data,n=t.template;return e.map(function(t,e){var i=t.name,r=t.color,a=t.index,o=(0,rE._T)(t,["name","color","index"]),s=(0,rE.pi)({name:void 0===i?"":i,color:void 0===r?"black":r,index:null!=a?a:e},o);return(0,lc.L)((0,lu.Z)(n.item,s))})},enumerable:!1,configurable:!0}),e.prototype.render=function(t,e){this.renderHTMLTooltipElement(),this.updatePosition()},e.prototype.destroy=function(){var e;null===(e=this.element)||void 0===e||e.remove(),t.prototype.destroy.call(this)},e.prototype.show=function(t,e){var n=this;if(void 0!==t&&void 0!==e){var i="hidden"===this.element.style.visibility,r=function(){n.attributes.x=null!=t?t:n.attributes.x,n.attributes.y=null!=e?e:n.attributes.y,n.updatePosition()};i?this.closeTransition(r):r()}this.element.style.visibility="visible"},e.prototype.hide=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.attributes.enterable&&this.isCursorEntered(t,e)||(this.element.style.visibility="hidden")},e.prototype.initShape=function(){var t=this.attributes.template;this.element=(0,lc.L)(t.container),this.id&&this.element.setAttribute("id",this.id)},e.prototype.renderCustomContent=function(){if(void 0===this.prevCustomContentKey||this.prevCustomContentKey!==this.attributes.contentKey){this.prevCustomContentKey=this.attributes.contentKey;var t=this.attributes.content;t&&("string"==typeof t?this.element.innerHTML=t:ld(this.element,t))}},e.prototype.renderHTMLTooltipElement=function(){var t,e,n=this.attributes,i=n.template,r=n.title,a=n.enterable,o=n.style,s=n.content,l=lp(i.prefixCls),h=this.element;if(this.element.style.pointerEvents=a?"auto":"none",s)this.renderCustomContent();else{r?(h.innerHTML=i.title,h.getElementsByClassName(l.TITLE)[0].innerHTML=r):null===(e=null===(t=h.getElementsByClassName(l.TITLE))||void 0===t?void 0:t[0])||void 0===e||e.remove();var c=this.HTMLTooltipItemsElements,u=document.createElement("ul");u.className=l.LIST,ld(u,c);var d=this.element.querySelector(".".concat(l.LIST));d?d.replaceWith(u):h.appendChild(u)}!function(t,e){Object.entries(e).forEach(function(e){var n=(0,rE.CR)(e,2),i=n[0],r=n[1];(0,rE.ev)([t],(0,rE.CR)(t.querySelectorAll(i)),!1).filter(function(t){return t.matches(i)}).forEach(function(t){t&&(t.style.cssText+=Object.entries(r).reduce(function(t,e){return"".concat(t).concat(e.join(":"),";")},""))})})}(h,o)},e.prototype.getRelativeOffsetFromCursor=function(t){var e=this.attributes,n=e.position,i=e.offset,r=(t||n).split("-"),a={left:[-1,0],right:[1,0],top:[0,-1],bottom:[0,1]},o=this.elementSize,s=o.width,l=o.height,h=[-s/2,-l/2];return r.forEach(function(t){var e=(0,rE.CR)(h,2),n=e[0],r=e[1],o=(0,rE.CR)(a[t],2),c=o[0],u=o[1];h=[n+(s/2+i[0])*c,r+(l/2+i[1])*u]}),h},e.prototype.setOffsetPosition=function(t){var e=(0,rE.CR)(t,2),n=e[0],i=e[1],r=this.attributes,a=r.x,o=r.y,s=r.container,l=s.x,h=s.y;this.element.style.left="".concat(+(void 0===a?0:a)+l+n,"px"),this.element.style.top="".concat(+(void 0===o?0:o)+h+i,"px")},e.prototype.updatePosition=function(){var t=this.attributes.showDelay,e=Date.now();this.timestamp>0&&e-this.timestamp<(void 0===t?60:t)||(this.timestamp=e,this.setOffsetPosition(this.autoPosition(this.getRelativeOffsetFromCursor())))},e.prototype.autoPosition=function(t){var e=(0,rE.CR)(t,2),n=e[0],i=e[1],r=this.attributes,a=r.x,o=r.y,s=r.bounding,l=r.position;if(!s)return[n,i];var h=this.element,c=h.offsetWidth,u=h.offsetHeight,d=(0,rE.CR)([+a+n,+o+i],2),p=d[0],f=d[1],g={left:"right",right:"left",top:"bottom",bottom:"top"},y=s.x,m=s.y,v={left:py+s.width,top:fm+s.height},b=[];l.split("-").forEach(function(t){v[t]?b.push(g[t]):b.push(t)});var x=b.join("-");return this.getRelativeOffsetFromCursor(x)},e.prototype.isCursorEntered=function(t,e){if(this.element){var n=this.element.getBoundingClientRect(),i=n.x,r=n.y,a=n.width,o=n.height;return new rw(i,r,a,o).isPointIn(t,e)}return!1},e.prototype.closeTransition=function(t){var e=this,n=this.element.style.transition;this.element.style.transition="none",t(),setTimeout(function(){e.element.style.transition=n},10)},e.tag="tooltip",e}(rF);class ly extends iF{getEvents(){return"click"===this.options.trigger?{"node:click":this.onClick,"edge:click":this.onClick,"combo:click":this.onClick,"canvas:click":this.onPointerLeave,contextmenu:this.onPointerLeave,drag:this.onPointerLeave}:{"node:pointerenter":this.onPointerEnter,"node:pointermove":this.onPointerMove,"canvas:pointermove":this.onCanvasMove,"edge:pointerenter":this.onPointerEnter,"edge:pointermove":this.onPointerMove,"combo:pointerenter":this.onPointerEnter,"combo:pointermove":this.onPointerMove,contextmenu:this.onPointerLeave,"node:drag":this.onPointerLeave}}update(t){if(this.unbindEvents(),super.update(t),this.tooltipElement){var e;null===(e=this.container)||void 0===e||e.removeChild(this.tooltipElement.HTMLTooltipElement)}this.tooltipElement=this.initTooltip(),this.bindEvents()}render(){let{canvas:t}=this.context,e=t.getContainer();e&&(this.container=e,this.tooltipElement=this.initTooltip())}unbindEvents(){let{graph:t}=this.context,e=this.getEvents();Object.keys(e).forEach(n=>{t.off(n,e[n])})}bindEvents(){let{graph:t}=this.context,e=this.getEvents();Object.keys(e).forEach(n=>{t.on(n,e[n])})}destroy(){if(this.unbindEvents(),this.tooltipElement){var t;null===(t=this.container)||void 0===t||t.removeChild(this.tooltipElement.HTMLTooltipElement)}super.destroy()}constructor(t,e){super(t,Object.assign({},ly.defaultOptions,e)),this.currentTarget=null,this.tooltipElement=null,this.container=null,this.isEnable=t=>{let{enable:e}=this.options;return"function"==typeof e?e(t):e},this.onClick=t=>{let{target:{id:e}}=t;this.currentTarget===e?(this.currentTarget=null,this.hide(t)):(this.currentTarget=e,this.show(t))},this.onPointerMove=t=>{let{target:e}=t;this.currentTarget&&e.id!==this.currentTarget&&this.show(t)},this.onPointerLeave=t=>{this.hide(t),this.currentTarget=null},this.onCanvasMove=t=>{this.hide(t),this.currentTarget=null},this.onPointerEnter=t=>{this.show(t)},this.showById=t=>{this.show({target:{id:t}})},this.getElementData=(t,e)=>{let{model:n}=this.context;switch(e){case"node":return n.getNodeData([t]);case"edge":return n.getEdgeData([t]);case"combo":return n.getComboData([t]);default:return[]}},this.show=t=>{let e,n;let{client:i,target:{id:r}}=t;if(n9(t.target)||!this.tooltipElement||!this.isEnable(t))return;let a=this.context.graph.getElementType(r),{getContent:o,title:s}=this.options;this.currentTarget=r;let l=this.getElementData(r,a);if(i)e=i.x,n=i.y;else{let t=(0,en.Z)(l,"0.style",{x:0,y:0});e=t.x,n=t.y}let h={};if(o)h.content=o(t,l);else{let t=this.context.graph.getElementRenderStyle(r),e="node"===a?t.fill:t.stroke;h={title:s||a,data:l.map(t=>({name:"ID",value:t.id||"".concat(t.source," -> ").concat(t.target),color:e}))}}this.tooltipElement.update({x:e,y:n,style:{".tooltip":{visibility:"visible"}},...h})},this.hide=t=>{if(!t){var e;null===(e=this.tooltipElement)||void 0===e||e.hide();return}if(!this.tooltipElement||!this.isEnable(t))return;let{client:{x:n,y:i}}=t;this.tooltipElement.hide(n,i)},this.initTooltip=()=>{var t;let{canvas:e}=this.context,{center:n}=e.getBounds(),i=e.getContainer(),{top:r,left:a}=i.getBoundingClientRect(),{style:o,position:s,enterable:l,container:h={x:-a,y:-r},title:c,offset:u}=this.options,[d,p]=n,[f,g]=e.getSize(),y=new lg({className:"tooltip",style:{x:d,y:p,container:h,title:c,bounding:{x:0,y:0,width:f,height:g},position:s,enterable:l,offset:u,style:o}});return null===(t=this.container)||void 0===t||t.appendChild(y.HTMLTooltipElement),y},this.render(),this.bindEvents()}}function lm(t,e){i||(i=document.createElement("canvas")),i.width=t,i.height=e;let n=i.getContext("2d");return n.clearRect(0,0,t,e),i}async function lv(t,e,n,i){let r=lm(t,e),a=r.getContext("2d"),{rotate:o,opacity:s,textFill:l,textFontSize:h,textFontFamily:c,textFontVariant:u,textFontWeight:d,textAlign:p,textBaseline:f}=i;return a.textAlign=p,a.textBaseline=f,a.translate(t/2,e/2),a.font="".concat(h,"px ").concat(c," ").concat(u," ").concat(d),o&&a.rotate(o),s&&(a.globalAlpha=s),l&&(a.fillStyle=l,a.fillText("".concat(n),0,0)),r.toDataURL()}async function lb(t,e,n,i){let r=lm(t,e),a=r.getContext("2d"),{rotate:o,opacity:s}=i;o&&a.rotate(o),s&&(a.globalAlpha=s);let l=new Image;return l.crossOrigin="anonymous",l.src=n,new Promise(n=>{l.onload=function(){let i=t>l.width?(t-l.width)/2:0,o=e>l.height?(e-l.height)/2:0;a.drawImage(l,0,0,l.width,l.height,i,o,t-2*i,e-2*o),n(r.toDataURL())}})}ly.defaultOptions={trigger:"hover",position:"top-right",enterable:!1,enable:!0,offset:[10,10],style:{".tooltip":{visibility:"hidden"}}};class lx extends iF{async update(t){super.update(t);let{width:e,height:n,text:i,imageURL:r,...a}=this.options;Object.keys(a).forEach(e=>{e.startsWith("background")&&(this.$element.style[e]=t[e])});let o=r?await lb(e,n,r,a):await lv(e,n,i,a);this.$element.style.backgroundImage="url(".concat(o,")")}destroy(){super.destroy(),this.$element.remove()}constructor(t,e){super(t,Object.assign({},lx.defaultOptions,e)),this.$element=iB("watermark");let n=this.context.canvas.getContainer();n.appendChild(this.$element),this.update(e)}}lx.defaultOptions={width:200,height:100,opacity:.2,rotate:Math.PI/12,text:"",textFill:"#000",textFontSize:16,textAlign:"center",textBaseline:"middle",backgroundRepeat:"repeat"};let lE=["#7E92B5","#F4664A","#FFBE3A"],lw={type:"group",color:["#1783FF","#00C9C9","#F08F56","#D580FF","#7863FF","#DB9D0D","#60C42D","#FF80CA","#2491B3","#17C76F"]},lC={type:"group",color:["#99ADD1","#1783FF","#00C9C9","#F08F56","#D580FF","#7863FF","#DB9D0D","#60C42D","#FF80CA","#2491B3","#17C76F"]};function lS(t){let{bgColor:e,textColor:n,nodeColor:i,nodeColorDisabled:r,nodeStroke:a,nodeHaloStrokeOpacityActive:o=.15,nodeHaloStrokeOpacitySelected:s=.25,nodeOpacityDisabled:l=.06,nodeIconOpacityInactive:h=.85,nodeOpacityInactive:c=.25,nodeBadgePalette:u=lE,nodePaletteOptions:d=lw,edgeColor:p,edgeColorDisabled:f,edgePaletteOptions:g=lC,comboColor:y,comboColorDisabled:m,comboStroke:v,comboStrokeDisabled:b,edgeColorInactive:x}=t;return{background:e,node:{palette:d,style:{donutOpacity:1,badgeBackgroundOpacity:1,badgeFill:"#fff",badgeFontSize:8,badgePadding:[0,4],badgePalette:u,fill:i,fillOpacity:1,halo:!1,iconFill:"#fff",iconOpacity:1,labelBackground:!1,labelBackgroundFill:e,labelBackgroundLineWidth:0,labelBackgroundOpacity:.75,labelFill:n,labelFillOpacity:.85,labelLineHeight:16,labelPadding:[0,2],labelFontSize:12,labelFontWeight:400,labelOpacity:1,labelOffsetY:2,lineWidth:0,portFill:i,portLineWidth:1,portStroke:a,portStrokeOpacity:.65,size:32,stroke:a,strokeOpacity:1,zIndex:2},state:{selected:{halo:!0,haloLineWidth:24,haloStrokeOpacity:s,labelFontSize:12,labelFontWeight:"bold",lineWidth:4,stroke:a},active:{halo:!0,haloLineWidth:12,haloStrokeOpacity:o},highlight:{labelFontWeight:"bold",lineWidth:4,stroke:a,strokeOpacity:.85},inactive:{badgeBackgroundOpacity:c,donutOpacity:c,fillOpacity:c,iconOpacity:h,labelFill:n,labelFillOpacity:c,strokeOpacity:c},disabled:{badgeBackgroundOpacity:.25,donutOpacity:l,fill:r,fillOpacity:l,iconFill:r,iconOpacity:.25,labelFill:n,labelFillOpacity:.25,strokeOpacity:l}},animation:{enter:"fade",exit:"fade",show:"fade",hide:"fade",expand:"node-expand",collapse:"node-collapse",update:[{fields:["x","y","fill","stroke"]}],translate:[{fields:["x","y"]}]}},edge:{palette:g,style:{badgeBackgroundFill:p,badgeFill:"#fff",badgeFontSize:8,badgeOffsetX:10,fillOpacity:1,halo:!1,haloLineWidth:12,haloStrokeOpacity:1,increasedLineWidthForHitTesting:2,labelBackground:!1,labelBackgroundFill:e,labelBackgroundLineWidth:0,labelBackgroundOpacity:.75,labelBackgroundPadding:[4,4,4,4],labelFill:n,labelFontSize:12,labelFontWeight:400,labelOpacity:1,labelPlacement:"center",labelTextBaseline:"middle",lineWidth:1,stroke:p,strokeOpacity:1,zIndex:1},state:{selected:{halo:!0,haloStrokeOpacity:.25,labelFontSize:14,labelFontWeight:"bold",lineWidth:3},active:{halo:!0,haloStrokeOpacity:.15},highlight:{labelFontWeight:"bold",lineWidth:3},inactive:{stroke:x,fillOpacity:.08,labelOpacity:.25,strokeOpacity:.08,badgeBackgroundOpacity:.25},disabled:{stroke:f,fillOpacity:.45,strokeOpacity:.45,labelOpacity:.25,badgeBackgroundOpacity:.45}},animation:{enter:"fade",exit:"fade",expand:"path-in",collapse:"path-out",show:"fade",hide:"fade",update:[{fields:["sourceNode","targetNode"]},{fields:["stroke"],shape:"key"}],translate:[{fields:["sourceNode","targetNode"]}]}},combo:{style:{collapsedMarkerFill:e,collapsedMarkerFontSize:12,collapsedMarkerFillOpacity:1,collapsedSize:32,collapsedFillOpacity:1,fill:y,halo:!1,haloLineWidth:12,haloStroke:v,haloStrokeOpacity:.25,labelBackground:!1,labelBackgroundFill:e,labelBackgroundLineWidth:0,labelBackgroundOpacity:.75,labelBackgroundPadding:[2,4,2,4],labelFill:n,labelFontSize:12,labelFontWeight:400,labelOpacity:1,lineDash:0,lineWidth:1,fillOpacity:.04,strokeOpacity:1,padding:10,stroke:v},state:{selected:{halo:!0,labelFontSize:14,labelFontWeight:700,lineWidth:4},active:{halo:!0},highlight:{labelFontWeight:700,lineWidth:4},inactive:{fillOpacity:.65,labelOpacity:.25,strokeOpacity:.65},disabled:{fill:m,fillOpacity:.25,labelOpacity:.25,stroke:b,strokeOpacity:.25}},animation:{enter:"fade",exit:"fade",show:"fade",hide:"fade",expand:"combo-expand",collapse:"combo-collapse",update:[{fields:["x","y"]},{fields:["fill","stroke","lineWidth"],shape:"key"}],translate:[{fields:["x","y"]}]}}}}let lR=lS({bgColor:"#000000",comboColor:"#fdfdfd",comboColorDisabled:"#d0e4ff",comboStroke:"#99add1",comboStrokeDisabled:"#969696",edgeColor:"#637088",edgeColorDisabled:"#637088",edgeColorInactive:"#D0E4FF",edgePaletteOptions:{type:"group",color:["#637088","#0F55A6","#008383","#9C5D38","#8B53A6","#4E40A6","#8F6608","#3E801D","#A65383","#175E75","#0F8248"]},nodeColor:"#1783ff",nodeColorDisabled:"#D0E4FF",nodeHaloStrokeOpacityActive:.25,nodeHaloStrokeOpacitySelected:.45,nodeIconOpacityInactive:.45,nodeOpacityDisabled:.25,nodeOpacityInactive:.45,nodeStroke:"#d0e4ff",textColor:"#ffffff"}),lA=lS({bgColor:"#ffffff",comboColor:"#99ADD1",comboColorDisabled:"#f0f0f0",comboStroke:"#99add1",comboStrokeDisabled:"#d9d9d9",edgeColor:"#99add1",edgeColorDisabled:"#d9d9d9",edgeColorInactive:"#1B324F",nodeColor:"#1783ff",nodeColorDisabled:"#1B324F",nodeHaloStrokeOpacityActive:.15,nodeHaloStrokeOpacitySelected:.25,nodeIconOpacityInactive:.85,nodeOpacityDisabled:.06,nodeOpacityInactive:.25,nodeStroke:"#000000",textColor:"#000000"});class lO extends tc{beforeDraw(t,e){return t}}function lM(t,e,n,i,r){let a=tt(i),o="".concat(n,"s"),s=r?i:t.add[o].get(a)||t.update[o].get(a)||t.remove[o].get(a)||i;Object.entries(t).forEach(t=>{let[n,i]=t;e===n?i[o].set(a,s):i[o].delete(a)})}let lT=(t,e,n,i)=>{let r="".concat(n,"s"),a=tt(i);t.add[r].has(a)||t.update[r].has(a)||t[e][r].set(tt(i),i)};class lk{constructor(t){this.type=t}}class lP extends lk{constructor(t,e){super(t),this.data=e}}class lL extends lk{constructor(t,e,n,i){super(t),this.animationType=e,this.animation=n,this.data=i}}class lD extends lk{constructor(t,e,n){super(t),this.elementType=e,this.data=n}}class lN extends lk{constructor(t,e){super(t),this.data=e}}function lI(t,e){t.emit(e.type,e)}class lB{getTasks(){let t=[...this.tasks];return this.tasks=[],t}add(t,e){this.tasks.push([t,e])}animate(t,e,n){var i,r,a;null==e||null===(i=e.before)||void 0===i||i.call(e);let o=this.getTasks().map(e=>{var i,r,a;let[o,s]=e,{element:l,elementType:h,stage:c}=o,u=function(t,e,n,i){var r,a;let{animation:o}=t,s=null==t?void 0:null===(r=t[e])||void 0===r?void 0:r.animation;if(!1===s)return[];let l=null==s?void 0:s[n];if(!1===l||!1===o||!1===i)return[];let h=null===(a=K(t)[e])||void 0===a?void 0:a.animation,c=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(function(t){if("string"==typeof t){let e=V(M.ANIMATION,t);return e||(Y.warn("The animation of ".concat(t," is not registered.")),[])}return t})(t).map(t=>({...z,...(0,j.Z)(o)&&o,...t,...(0,j.Z)(i)&&i}))};if(l)return c(l);if(!h)return[];let u=h[n];return!1===u?[]:c(u)}(this.context.options,h,c,t);null==s||null===(i=s.before)||void 0===i||i.call(s);let d=tr(l,this.inferStyle(o,n),u);return d?(null==s||null===(a=s.beforeAnimate)||void 0===a||a.call(s,d),d.finished.then(()=>{var t,e;null==s||null===(t=s.afterAnimate)||void 0===t||t.call(s,d),null==s||null===(e=s.after)||void 0===e||e.call(s),this.animations.delete(d)})):null==s||null===(r=s.after)||void 0===r||r.call(s),d}).filter(Boolean);o.forEach(t=>this.animations.add(t));let s=$(o);return s?(null==e||null===(a=e.beforeAnimate)||void 0===a||a.call(e,s),s.finished.then(()=>{var t,n;null==e||null===(t=e.afterAnimate)||void 0===t||t.call(e,s),null==e||null===(n=e.after)||void 0===n||n.call(e),this.release()})):null==e||null===(r=e.after)||void 0===r||r.call(e),s}inferStyle(t,e){var n;let{element:i,elementType:r,stage:a,originalStyle:o,modifiedStyle:s}=t,l={...o},h={...s},c=()=>null!==(n=eg(i,"opacity"))&&void 0!==n?n:q("opacity");if("enter"===a)Object.assign(l,{opacity:0});else if("exit"===a)Object.assign(h,{opacity:0});else if("show"===a)Object.assign(l,{opacity:0}),Object.assign(h,{opacity:c()});else if("hide"===a)Object.assign(l,{opacity:c()}),Object.assign(h,{opacity:0});else if("collapse"===a){let{collapse:t}=e||{},{target:n,descendants:a,position:o}=t;if("node"===r){if(a.includes(i.id)){let[t,e,n]=o;Object.assign(h,{x:t,y:e,z:n})}}else if("combo"===r){if(i.id===n||a.includes(i.id)){let[t,e]=o;Object.assign(h,{x:t,y:e,childrenNode:l.childrenNode})}}else"edge"===r&&Object.assign(h,{sourceNode:l.sourceNode,targetNode:l.targetNode})}else if("expand"===a){let{expand:t}=e||{},{target:n,descendants:a,position:o}=t;if("node"===r){if(i.id===n||a.includes(i.id)){let[t,e,n]=o;Object.assign(l,{x:t,y:e,z:n})}}else if("combo"===r){if(i.id===n||a.includes(i.id)){let[t,e,n]=o;Object.assign(l,{x:t,y:e,z:n,childrenNode:h.childrenNode})}}else"edge"===r&&Object.assign(l,{sourceNode:h.sourceNode,targetNode:h.targetNode})}return[l,h]}stop(){this.animations.forEach(t=>t.cancel())}clear(){this.tasks=[]}release(){var t,e;let{canvas:n}=this.context,i=null===(t=n.document)||void 0===t?void 0:null===(e=t.timeline)||void 0===e?void 0:e.animationsWithPromises;i&&(n.document.timeline.animationsWithPromises=i.filter(t=>"finished"!==t.playState))}destroy(){this.stop(),this.animations.clear(),this.tasks=[]}constructor(t){this.tasks=[],this.animations=new Set,this.context=t}}class l_{emit(t){let{graph:e}=this.context;e.emit(t.type,t)}startBatch(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];this.batchCount++,1===this.batchCount&&this.emit(new lP(R.BATCH_START,{initiate:t}))}endBatch(){this.batchCount--,0===this.batchCount&&this.emit(new lP(R.BATCH_END))}get isBatching(){return this.batchCount>0}destroy(){this.context=null}constructor(t){this.batchCount=0,this.context=t}}class lF extends th{setBehaviors(t){this.setExtensions(t)}forwardEvents(){let t=this.context.canvas.getContainer();t&&[C.KEY_DOWN,C.KEY_UP].forEach(e=>{t.addEventListener(e,this.forwardContainerEvents)});let e=this.context.canvas.document;e&&[w.CLICK,w.DBLCLICK,w.POINTER_OVER,w.POINTER_LEAVE,w.POINTER_ENTER,w.POINTER_MOVE,w.POINTER_OUT,w.POINTER_DOWN,w.POINTER_UP,w.CONTEXT_MENU,w.DRAG_START,w.DRAG,w.DRAG_END,w.DRAG_ENTER,w.DRAG_OVER,w.DRAG_LEAVE,w.DROP,w.WHEEL].forEach(t=>{e.addEventListener(t,this.forwardCanvasEvents)})}destroy(){let t=this.context.canvas.getContainer();t&&[C.KEY_DOWN,C.KEY_UP].forEach(e=>{t.removeEventListener(e,this.forwardContainerEvents)}),this.context.canvas.document.removeAllEventListeners(),super.destroy()}constructor(t){super(t),this.currentTarget=null,this.currentTargetType=null,this.category="behavior",this.forwardCanvasEvents=t=>{let{target:e}=t,n=function(t){if(!t)return null;if(t instanceof I.BB)return{type:"canvas",element:t};let e=t;for(;e;){if(nY(e))return{type:"node",element:e};if(nK(e))return{type:"edge",element:e};if(n$(e))return{type:"combo",element:e};e=e.parentElement}return null}(e);if(!n)return;let{graph:i,canvas:r}=this.context,{type:a,element:o}=n;if("destroyed"in o&&(n9(o)||o.destroyed))return;let{type:s,detail:l,button:h}=t,c={...t,target:o,targetType:a,originalTarget:e};s===w.POINTER_MOVE&&(this.currentTarget!==o&&(this.currentTarget&&i.emit("".concat(this.currentTargetType,":").concat(w.POINTER_LEAVE),{...c,type:w.POINTER_LEAVE,target:this.currentTarget}),o&&(Object.assign(c,{type:w.POINTER_ENTER}),i.emit("".concat(a,":").concat(w.POINTER_ENTER),c))),this.currentTarget=o,this.currentTargetType=a),s===w.CLICK&&2===h||(i.emit("".concat(a,":").concat(s),c),i.emit(s,c)),s===w.CLICK&&2===l&&(Object.assign(c,{type:w.DBLCLICK}),i.emit("".concat(a,":").concat(w.DBLCLICK),c),i.emit(w.DBLCLICK,c)),s===w.POINTER_DOWN&&2===h&&(Object.assign(c,{type:w.CONTEXT_MENU,preventDefault:()=>{var t;null===(t=r.getContainer())||void 0===t||t.addEventListener(w.CONTEXT_MENU,t=>t.preventDefault(),{once:!0})}}),i.emit("".concat(a,":").concat(w.CONTEXT_MENU),c),i.emit(w.CONTEXT_MENU,c))},this.forwardContainerEvents=t=>{this.context.graph.emit(t.type,t)},this.forwardEvents(),this.setBehaviors(this.context.options.behaviors||[])}}var lj=n(98875);let lZ=["background","main","label","transient"];class lz{getConfig(){return this.config}getLayer(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.extends.layers[t]}getLayers(){return this.extends.layers}getRenderer(t){return this.extends.renderers[t]}getCamera(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.getLayer(t).getCamera()}getRoot(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.getLayer(t).getRoot()}getContextService(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.getLayer(t).getContextService()}setCursor(t){this.config.cursor=t,this.getLayer().setCursor(t)}get document(){return this.getLayer().document}get context(){return this.getLayer().context}get ready(){return Promise.all(Object.entries(this.getLayers()).map(t=>{let[,e]=t;return e.ready}))}resize(t,e){Object.assign(this.extends.config,{width:t,height:e}),Object.values(this.getLayers()).forEach(n=>{let i=n.getCamera(),r=i.getPosition(),a=i.getFocalPoint();n.resize(t,e),i.setPosition(r),i.setFocalPoint(a)})}getBounds(t){return tw(Object.values(this.getLayers()).map(e=>{let n=t?e.getRoot().childNodes.find(e=>e.classList.includes(t)):e.getRoot();return n}).filter(t=>(null==t?void 0:t.childNodes.length)>0).map(t=>t.getBounds()))}getContainer(){let t=this.extends.config.container;return"string"==typeof t?document.getElementById(t):t}getSize(){return[this.extends.config.width||0,this.extends.config.height||0]}appendChild(t,e){var n;let i=(null===(n=t.style)||void 0===n?void 0:n.$layer)||"main";return this.getLayer(i).appendChild(t,e)}setRenderer(t){if(t===this.extends.renderer)return;let e=lG(t);this.extends.renderers=e,Object.entries(e).forEach(t=>{let[e,n]=t;return this.getLayer(e).setRenderer(n)}),lH(this.getLayers())}getCanvasByViewport(t){return tV(this.getLayer().viewport2Canvas(tU(t)))}getViewportByCanvas(t){return tV(this.getLayer().canvas2Viewport(tU(t)))}getViewportByClient(t){return tV(this.getLayer().client2Viewport(tU(t)))}getClientByViewport(t){return tV(this.getLayer().viewport2Client(tU(t)))}getClientByCanvas(t){return this.getClientByViewport(this.getViewportByCanvas(t))}getCanvasByClient(t){let e=this.getLayer(),n=e.client2Viewport(tU(t));return tV(e.viewport2Canvas(n))}async toDataURL(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=window.devicePixelRatio||1,{mode:n="viewport",...i}=t,[r,a,o,s]=[0,0,0,0];if("viewport"===n)[o,s]=this.getSize();else if("overall"===n){let t=this.getBounds(),e=tb(t);[r,a]=t.min,[o,s]=e}let l=(0,lc.L)('
    '),h=new I.Xz({width:o,height:s,renderer:new of,devicePixelRatio:e,container:l,background:this.extends.config.background});await h.ready,h.appendChild(this.getLayer("background").getRoot().cloneNode(!0)),h.appendChild(this.getRoot().cloneNode(!0));let c=this.getLayer("label").getRoot().cloneNode(!0),u=h.viewport2Canvas({x:0,y:0}),d=this.getCanvasByViewport([0,0]);c.translate([d[0]-u.x,d[1]-u.y]),c.scale(1/this.getCamera().getZoom()),h.appendChild(c),h.appendChild(this.getLayer("transient").getRoot().cloneNode(!0));let p=this.getCamera(),f=h.getCamera();if("viewport"===n)f.setZoom(p.getZoom()),f.setPosition(p.getPosition()),f.setFocalPoint(p.getFocalPoint());else if("overall"===n){let[t,e,n]=f.getPosition(),[i,o,s]=f.getFocalPoint();f.setPosition([t+r,e+a,n]),f.setFocalPoint([i+r,o+a,s])}let g=h.getContextService();return new Promise(t=>{h.addEventListener(I.$6.RERENDER,async()=>{await new Promise(t=>setTimeout(t,300));let e=await g.toDataURL(i);t(e)})})}destroy(){Object.values(this.getLayers()).forEach(t=>{let e=t.getCamera();e.cancelLandmarkAnimation(),t.destroy()})}constructor(t){this.config=t;let{renderer:e,background:n,cursor:i,...r}=t,a=lG(e),o=Object.fromEntries(lZ.map(t=>{let e=new I.Xz({...r,supportsMutipleCanvasesInOneContainer:!0,renderer:a[t],background:"background"===t?n:void 0});return[t,e]}));lH(o),this.extends={config:t,renderer:e,renderers:a,layers:o}}}function lG(t){return Object.fromEntries(lZ.map(e=>{let n=(null==t?void 0:t(e))||new of;return"main"===e?n.registerPlugin(new lj.S({isDocumentDraggable:!0,isDocumentDroppable:!0,dragstartDistanceThreshold:10,dragstartTimeThreshold:100})):n.unregisterPlugin(n.getPlugin("dom-interaction")),[e,n]}))}function lH(t){Object.entries(t).forEach(t=>{let[e,n]=t,i=n.getContextService().getDomElement();i.style.position="absolute",i.style.outline="none",i.tabIndex=1,"main"!==e&&(i.style.pointerEvents="none")})}function lW(t,e){let{data:n,style:i,...r}=t,{data:a,style:o,...s}=e,l={...r,...s};return(n||a)&&Object.assign(l,{data:{...n,...a}}),(i||o)&&Object.assign(l,{style:{...i,...o}}),l}function lV(t){let{data:e,style:n,...i}=t;return e&&(i.data={...e}),n&&(i.style={...n}),i}function lU(t){let{id:e=tt(t),style:n,data:i,...r}=t,a={...t,style:{...n},data:{...i}};return"source"in t&&"target"in t?{id:e,data:a,...r}:{id:e,data:a}}function lY(t){return t.data}class lK{pushChange(t){if(this.isTraceless)return;let{type:e}=t;if(e===v.NodeUpdated||e===v.EdgeUpdated||e===v.ComboUpdated){let{value:n,original:i}=t;this.changes.push({value:lV(n),original:lV(i),type:e})}else this.changes.push({value:lV(t.value),type:e})}getChanges(){return this.changes}clearChanges(){this.changes=[]}batch(t){this.batchCount++,this.model.batch(t),this.batchCount--}silence(t){this.isTraceless=!0,t(),this.isTraceless=!1}isCombo(t){return this.comboIds.has(t)||this.latestRemovedComboIds.has(t)}getData(){return{nodes:this.getNodeData(),edges:this.getEdgeData(),combos:this.getComboData()}}getNodeData(t){return this.model.getAllNodes().reduce((e,n)=>{let i=lY(n);return this.isCombo(tt(i))||(void 0===t?e.push(i):t.includes(tt(i))&&e.push(i)),e},[])}getEdgeDatum(t){return lY(this.model.getEdge(t))}getEdgeData(t){return this.model.getAllEdges().reduce((e,n)=>{let i=lY(n);return void 0===t?e.push(i):t.includes(tt(i))&&e.push(i),e},[])}getComboData(t){return this.model.getAllNodes().reduce((e,n)=>{let i=lY(n);return this.isCombo(tt(i))&&(void 0===t?e.push(i):t.includes(tt(i))&&e.push(i)),e},[])}getAncestorsData(t,e){let{model:n}=this;return n.hasNode(t)&&n.hasTreeStructure(e)?n.getAncestors(t,e).map(lY):[]}getDescendantsData(t){let e=this.getElementDataById(t),n=[];return t8(e,t=>{t!==e&&n.push(t)},t=>this.getChildrenData(tt(t)),"TB"),n}getParentData(t,e){let{model:n}=this;if(!e){Y.warn("The hierarchy structure key is not specified");return}if(!n.hasNode(t)||!n.hasTreeStructure(e))return;let i=n.getParent(t,e);return i?lY(i):void 0}getChildrenData(t){let e="node"===this.getElementType(t)?H:G,{model:n}=this;return n.hasNode(t)&&n.hasTreeStructure(e)?n.getChildren(t,e).map(lY):[]}getElementsDataByType(t){return"node"===t?this.getNodeData():"edge"===t?this.getEdgeData():"combo"===t?this.getComboData():[]}getElementDataById(t){let e=this.getElementType(t);return"edge"===e?this.getEdgeDatum(t):this.getNodeLikeDatum(t)}getNodeLikeDatum(t){let e=this.model.getNode(t);return lY(e)}getNodeLikeData(t){return this.model.getAllNodes().reduce((e,n)=>{let i=lY(n);return t?t.includes(tt(i))&&e.push(i):e.push(i),e},[])}getElementDataByState(t,e){let n=this.getElementsDataByType(t);return n.filter(t=>{var n;return null===(n=t.states)||void 0===n?void 0:n.includes(e)})}getElementState(t){var e;return(null===(e=this.getElementDataById(t))||void 0===e?void 0:e.states)||[]}hasNode(t){return this.model.hasNode(t)&&!this.isCombo(t)}hasEdge(t){return this.model.hasEdge(t)}hasCombo(t){return this.model.hasNode(t)&&this.isCombo(t)}getRelatedEdgesData(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";return this.model.getRelatedEdges(t,e).map(lY)}getNeighborNodesData(t){return this.model.getNeighbors(t).map(lY)}setData(t){let{nodes:e=[],edges:n=[],combos:i=[]}=t,{nodes:r,edges:a,combos:o}=this.getData(),s=tl(r,e,t=>tt(t)),l=tl(a,n,t=>tt(t)),h=tl(o,i,t=>tt(t));this.batch(()=>{this.addData({nodes:s.enter,edges:l.enter,combos:h.enter}),this.updateData({nodes:s.update,edges:l.update,combos:h.update}),this.removeData({nodes:s.exit.map(tt),edges:l.exit.map(tt),combos:h.exit.map(tt)})})}addData(t){let{nodes:e,edges:n,combos:i}=t;this.batch(()=>{this.addComboData(i),this.addNodeData(e),this.addEdgeData(n)})}addNodeData(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.length&&(this.model.addNodes(t.map(t=>(this.pushChange({value:t,type:v.NodeAdded}),lU(t)))),this.updateNodeLikeHierarchy(t))}addEdgeData(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.length&&this.model.addEdges(t.map(t=>(this.pushChange({value:t,type:v.EdgeAdded}),lU(t))))}addComboData(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!t.length)return;let{model:e}=this;e.hasTreeStructure(G)||e.attachTreeStructure(G),e.addNodes(t.map(t=>(this.comboIds.add(tt(t)),this.pushChange({value:t,type:v.ComboAdded}),lU(t)))),this.updateNodeLikeHierarchy(t)}addChildrenData(t,e){let n=this.getNodeLikeDatum(t),i=e.map(tt);this.addNodeData(e),this.updateNodeData([{id:t,children:[...n.children||[],...i]}]),this.addEdgeData(i.map(e=>({source:t,target:e})))}updateNodeLikeHierarchy(t){if(!this.enableUpdateNodeLikeHierarchy)return;let{model:e}=this;t.forEach(t=>{let n=tt(t);e.attachTreeStructure(G),this.setParent(n,t.combo,G);let i=t.children;if(void 0!==i){e.attachTreeStructure(H);let t=i.filter(t=>e.hasNode(t));t.forEach(t=>this.setParent(t,n,H)),t.length!==i.length&&this.updateNodeData([{id:n,children:t}])}})}preventUpdateNodeLikeHierarchy(t){this.enableUpdateNodeLikeHierarchy=!1,t(),this.enableUpdateNodeLikeHierarchy=!0}updateData(t){let{nodes:e,edges:n,combos:i}=t;this.batch(()=>{this.updateNodeData(e),this.updateComboData(i),this.updateEdgeData(n)})}updateNodeData(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!t.length)return;let{model:e}=this;this.batch(()=>{let n=[];t.forEach(t=>{let i=tt(t),r=lY(e.getNode(i));if((0,F.Z)(r,t))return;let a=lW(r,t);this.pushChange({value:a,original:r,type:v.NodeUpdated}),e.mergeNodeData(i,a),n.push(a)}),this.updateNodeLikeHierarchy(n)})}refreshData(){let{nodes:t,edges:e,combos:n}=this.getData();t.forEach(t=>{this.pushChange({value:t,original:t,type:v.NodeUpdated})}),e.forEach(t=>{this.pushChange({value:t,original:t,type:v.EdgeUpdated})}),n.forEach(t=>{this.pushChange({value:t,original:t,type:v.ComboUpdated})})}syncNodeDatum(t){let{model:e}=this,n=tt(t),i=lY(e.getNode(n)),r=lW(i,t);e.mergeNodeData(n,r)}updateEdgeData(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!t.length)return;let{model:e}=this;this.batch(()=>{t.forEach(t=>{let n=tt(t),i=lY(e.getEdge(n));if((0,F.Z)(i,t))return;t.source&&i.source!==t.source&&e.updateEdgeSource(n,t.source),t.target&&i.target!==t.target&&e.updateEdgeTarget(n,t.target);let r=lW(i,t);this.pushChange({value:r,original:i,type:v.EdgeUpdated}),e.mergeEdgeData(n,r)})})}updateComboData(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!t.length)return;let{model:e}=this;e.batch(()=>{let n=[];t.forEach(t=>{let i=tt(t),r=lY(e.getNode(i));if((0,F.Z)(r,t))return;let a=lW(r,t);this.pushChange({value:a,original:r,type:v.ComboUpdated}),e.mergeNodeData(i,a),n.push(a)}),this.updateNodeLikeHierarchy(n)})}setParent(t,e,n){let i=!(arguments.length>3)||void 0===arguments[3]||arguments[3];if(t===e)return;let r=this.getNodeLikeDatum(t).combo;if(r!==e&&n===G){let n={id:t,combo:e};this.isCombo(t)?this.syncComboDatum(n):this.syncNodeDatum(n)}this.model.setParent(t,e,n),i&&n===G&&(function(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var i=0,r=t.length;i{void 0!==t&&this.refreshComboData(t)})}refreshComboData(t){let e=this.getComboData([t])[0],n=this.getAncestorsData(t,G);e&&this.pushChange({value:e,original:e,type:v.ComboUpdated}),n.forEach(t=>{this.pushChange({value:t,original:t,type:v.ComboUpdated})})}syncComboDatum(t){let{model:e}=this,n=tt(t);if(!e.hasNode(n))return;let i=lY(e.getNode(n)),r=lW(i,t);e.mergeNodeData(n,r)}getElementPosition(t){let e=this.getElementDataById(t);return tH(e)}translateNodeLikeBy(t,e){this.isCombo(t)?this.translateComboBy(t,e):this.translateNodeBy(t,e)}translateNodeLikeTo(t,e){this.isCombo(t)?this.translateComboTo(t,e):this.translateNodeTo(t,e)}translateNodeBy(t,e){let n=this.getElementPosition(t),i=tM(n,[...e,0].slice(0,3));this.translateNodeTo(t,i)}translateNodeTo(t,e){let[n=0,i=0,r=0]=e;this.preventUpdateNodeLikeHierarchy(()=>{this.updateNodeData([{id:t,style:{x:n,y:i,z:r}}])})}translateComboBy(t,e){let[n=0,i=0,r=0]=e;if([n,i,r].some(isNaN)||[n,i,r].every(t=>0===t))return;let a=this.getComboData([t])[0];a&&t8(a,t=>{let e=tt(t),[a,o,s]=tH(t),l=lW(t,{style:{x:a+n,y:o+i,z:s+r}});this.pushChange({value:l,original:t,type:this.isCombo(e)?v.ComboUpdated:v.NodeUpdated}),this.model.mergeNodeData(e,l)},t=>this.getChildrenData(tt(t)),"BT")}translateComboTo(t,e){var n;if(e.some(isNaN))return;let[i=0,r=0,a=0]=e,o=null===(n=this.getComboData([t]))||void 0===n?void 0:n[0];if(!o)return;let[s,l,h]=tH(o),c=i-s,u=r-l,d=a-h;t8(o,t=>{let e=tt(t),[n,i,r]=tH(t),a=lW(t,{style:{x:n+c,y:i+u,z:r+d}});this.pushChange({value:a,original:t,type:this.isCombo(e)?v.ComboUpdated:v.NodeUpdated}),this.model.mergeNodeData(e,a)},t=>this.getChildrenData(tt(t)),"BT")}removeData(t){let{nodes:e,edges:n,combos:i}=t;this.batch(()=>{this.removeEdgeData(n),this.removeNodeData(e),this.removeComboData(i),this.latestRemovedComboIds=new Set(i)})}removeNodeData(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.length&&this.batch(()=>{t.forEach(t=>{this.removeEdgeData(this.getRelatedEdgesData(t).map(tt)),this.pushChange({value:this.getNodeData([t])[0],type:v.NodeRemoved}),this.removeNodeLikeHierarchy(t)}),this.model.removeNodes(t)})}removeEdgeData(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.length&&(t.forEach(t=>this.pushChange({value:this.getEdgeData([t])[0],type:v.EdgeRemoved})),this.model.removeEdges(t))}removeComboData(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.length&&this.batch(()=>{t.forEach(t=>{this.pushChange({value:this.getComboData([t])[0],type:v.ComboRemoved}),this.removeNodeLikeHierarchy(t),this.comboIds.delete(t)}),this.model.removeNodes(t)})}removeNodeLikeHierarchy(t){if(this.model.hasTreeStructure(G)){let e=this.getNodeLikeDatum(t).combo;this.setParent(t,void 0,G,!1),this.model.getChildren(t,G).forEach(t=>{let n=lY(t),i=tt(n);this.setParent(tt(n),e,G,!1);let r=lW(n,{id:tt(n),combo:e});this.pushChange({value:r,original:n,type:this.isCombo(i)?v.ComboUpdated:v.NodeUpdated}),this.model.mergeNodeData(tt(n),r)}),(0,e9.Z)(e)||this.refreshComboData(e)}}getElementType(t){if(this.model.hasNode(t))return this.isCombo(t)?"combo":"node";if(this.model.hasEdge(t))return"edge";throw Error(U("Unknown element type of id: ".concat(t)))}destroy(){let{model:t}=this,e=t.getAllNodes(),n=t.getAllEdges();t.removeEdges(n.map(t=>t.id)),t.removeNodes(e.map(t=>t.id)),this.context={}}constructor(){this.latestRemovedComboIds=new Set,this.comboIds=new Set,this.changes=[],this.batchCount=0,this.isTraceless=!1,this.enableUpdateNodeLikeHierarchy=!0,this.model=new io.k}}class l${init(){if(!this.container){let{canvas:t}=this.context;this.container=t.appendChild(new I.ZA({className:"elements"}))}}emit(t,e){e.silence||lI(this.context.graph,t)}forEachElementData(t){t4.forEach(e=>{let n=this.context.model.getElementsDataByType(e);t(e,n)})}getElementType(t,e){var n;let{options:i,graph:r}=this.context,a=(null===(n=i[t])||void 0===n?void 0:n.type)||e.type;return a?"string"==typeof a?a:a.call(r,e):"edge"===t?"line":"circle"}getTheme(t){return K(this.context.options)[t]||{}}getThemeStyle(t){return this.getTheme(t).style||{}}getThemeStateStyle(t,e){let{state:n={}}=this.getTheme(t);return Object.assign({},...e.map(t=>n[t]||{}))}computePaletteStyle(){let{options:t}=this.context;this.paletteStyle={},this.forEachElementData((e,n)=>{var i,r;let a=Object.assign({},eC(null===(i=this.getTheme(e))||void 0===i?void 0:i.palette),eC(null===(r=t[e])||void 0===r?void 0:r.palette));(null==a?void 0:a.field)&&Object.assign(this.paletteStyle,function(t,e){if(!e)return{};let{type:n,color:i,field:r,invert:a}=e,o=t=>{let e="string"==typeof i?V("palette",i):i;if("function"==typeof e){let n={};return t.forEach(t=>{let[i,r]=t;n[i]=e(a?1-r:r)}),n}if(Array.isArray(e)){let n=a?[...e].reverse():e,i={};return t.forEach(t=>{let[r,a]=t;i[r]=n[a%e.length]}),i}return{}},s=(t,e)=>{var n;return"string"==typeof t?null===(n=e.data)||void 0===n?void 0:n[t]:null==t?void 0:t(e)};if("group"===n){let e=ew(t,t=>{if(!r)return"default";let e=s(r,t);return e?String(e):"default"}),n=Object.keys(e),i=o(n.map((t,e)=>[t,e])),a={};return Object.entries(e).forEach(t=>{let[e,n]=t;n.forEach(t=>{a[tt(t)]=i[e]})}),a}if("value"===n){let[e,n]=t.reduce((t,e)=>{let[n,i]=t,a=s(r,e);if("number"!=typeof a)throw Error(U("Palette field ".concat(r," is not a number")));return[Math.min(n,a),Math.max(i,a)]},[1/0,-1/0]),i=n-e;return o(t.map(t=>[t.id,(s(r,t)-e)/i]))}}(n,a))})}getPaletteStyle(t,e){let n=this.paletteStyle[e];return n?"edge"===t?{stroke:n}:{fill:n}:{}}computeElementDefaultStyle(t,e){var n;let{options:i}=this.context,r=(null===(n=i[t])||void 0===n?void 0:n.style)||{};this.defaultStyle[tt(e.datum)]=ec(r,e)}computeElementsDefaultStyle(t){let{graph:e}=this.context;this.forEachElementData((n,i)=>{let r=i.length;for(let a=0;athis.getElementStateStyle(t,e,n)))}computeElementsStatesStyle(t){let{graph:e}=this.context;this.forEachElementData((n,i)=>{let r=i.length;for(let a=0;a{let{id:e}=t;return this.elementMap[e]})}getEdges(){return this.context.model.getEdgeData().map(t=>this.elementMap[tt(t)])}getCombos(){return this.context.model.getComboData().map(t=>{let{id:e}=t;return this.elementMap[e]})}getElementComputedStyle(t,e){let n=tt(e),i=this.getThemeStyle(t),r=this.getPaletteStyle(t,n),a=e.style||{},o=this.getDefaultStyle(n),s=this.getThemeStateStyle(t,this.getElementState(n)),l=this.getStateStyle(n),h=Object.assign({},i,r,a,o,s,l);if("combo"===t){let t=this.context.model.getChildrenData(n),e=!!h.collapsed,i=e?[]:t.map(tt).filter(t=>this.getElement(t));Object.assign(h,{childrenNode:i,childrenData:t})}return h}draw(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{animation:!0};this.init();let e=this.computeChangesAndDrawData(t);if(!e)return null;let{dataChanges:n,drawData:i}=e;this.markDestroyElement(i),this.computeStyle(t.stage);let{add:r,update:a,remove:o}=i;this.destroyElements(o,t),this.createElements(r,t),this.updateElements(a,t);let{animation:s,silence:l}=t,{type:h="draw"}=t,c="render"===h;return this.context.animation.animate(s,l?{}:{before:()=>this.emit(new lP(R.BEFORE_DRAW,{dataChanges:n,animation:s,render:c}),t),beforeAnimate:e=>this.emit(new lL(R.BEFORE_ANIMATE,b.DRAW,e,i),t),afterAnimate:e=>this.emit(new lL(R.AFTER_ANIMATE,b.DRAW,e,i),t),after:()=>this.emit(new lP(R.AFTER_DRAW,{dataChanges:n,animation:s,render:c}),t)})}computeChangesAndDrawData(t){let{model:e}=this.context,n=e.getChanges(),i=rc(n);if(0===i.length)return null;let{NodeAdded:r=[],NodeUpdated:a=[],NodeRemoved:o=[],EdgeAdded:s=[],EdgeUpdated:l=[],EdgeRemoved:h=[],ComboAdded:c=[],ComboUpdated:u=[],ComboRemoved:d=[]}=ew(i,t=>t.type),p=t=>new Map(t.map(t=>{let e=t.value;return[tt(e),e]})),f={add:{nodes:p(r),edges:p(s),combos:p(c)},update:{nodes:p(a),edges:p(l),combos:p(u)},remove:{nodes:p(o),edges:p(h),combos:p(d)}},g=this.transformData(f,t);return e.clearChanges(),{dataChanges:n,drawData:g}}transformData(t,e){let n=this.context.transform.getTransformInstance();return Object.values(n).reduce((t,n)=>n.beforeDraw(t,e),t)}createElement(t,e,n){var i;let r=tt(e),a=this.getElement(r);if(a)return;let o=this.getElementType(t,e),s=this.getElementComputedStyle(t,e),l=V(t,o);if(!l)return Y.warn("The element ".concat(o," of ").concat(t," is not registered."));this.emit(new lD(R.BEFORE_ELEMENT_CREATE,t,e),n);let h=this.container.appendChild(new l({id:r,style:{context:this.context,...s}}));this.shapeTypeMap[r]=o,this.elementMap[r]=h;let{stage:c="enter"}=n;null===(i=this.context.animation)||void 0===i||i.add({element:h,elementType:t,stage:c,originalStyle:{...h.attributes},modifiedStyle:{...h.attributes,...s}},{after:()=>{var i;this.emit(new lD(R.AFTER_ELEMENT_CREATE,t,e),n),null===(i=h.onCreate)||void 0===i||i.call(h)}})}createElements(t,e){let{nodes:n,edges:i,combos:r}=t;[["node",n],["combo",r],["edge",i]].forEach(t=>{let[n,i]=t;i.forEach(t=>this.createElement(n,t,e))})}updateElement(t,e,n){var i;let r=tt(e),a=this.getElement(r);if(!a)return()=>null;this.emit(new lD(R.BEFORE_ELEMENT_UPDATE,t,e),n);let o=this.getElementType(t,e),s=this.getElementComputedStyle(t,e);this.shapeTypeMap[r]!==o&&(a.destroy(),delete this.shapeTypeMap[r],delete this.elementMap[r],this.createElement(t,e,{animation:!1,silence:!0}));let{stage:l="update"}=n,h="visibility"!==l?l:"hidden"===s.visibility?"hide":"show";"hide"===h&&delete s.visibility,null===(i=this.context.animation)||void 0===i||i.add({element:a,elementType:t,stage:h,originalStyle:{...a.attributes},modifiedStyle:{...a.attributes,...s}},{before:()=>{let t=this.elementMap[r];"collapse"!==l&&n8(t,s),"visibility"===l&&(ey(t,"opacity")||ef(t,"opacity"),this.visibilityCache.set(t,"show"===h?"visible":"hidden"),"show"===h&&eM(t,"visible"))},after:()=>{var i;let a=this.elementMap[r];"collapse"===l&&n8(a,s),"hide"===h&&eM(a,this.visibilityCache.get(a)),this.emit(new lD(R.AFTER_ELEMENT_UPDATE,t,e),n),null===(i=a.onUpdate)||void 0===i||i.call(a)}})}updateElements(t,e){let{nodes:n,edges:i,combos:r}=t;[["node",n],["combo",r],["edge",i]].forEach(t=>{let[n,i]=t;i.forEach(t=>this.updateElement(n,t,e))})}markDestroyElement(t){Object.values(t.remove).forEach(t=>{t.forEach(t=>{let e=tt(t),n=this.getElement(e);n&&(0,ei.Z)(n,"__to_be_destroyed__",!0)})})}destroyElement(t,e,n){var i;let{stage:r="exit"}=n,a=tt(e),o=this.elementMap[a];if(!o)return()=>null;this.emit(new lD(R.BEFORE_ELEMENT_DESTROY,t,e),n),null===(i=this.context.animation)||void 0===i||i.add({element:o,elementType:t,stage:r,originalStyle:{...o.attributes},modifiedStyle:{...o.attributes}},{after:()=>{var i;this.clearElement(a),o.destroy(),null===(i=o.onDestroy)||void 0===i||i.call(o),this.emit(new lD(R.AFTER_ELEMENT_DESTROY,t,e),n)}})}destroyElements(t,e){let{nodes:n,edges:i,combos:r}=t;[["combo",r],["edge",i],["node",n]].forEach(t=>{let[n,i]=t;i.forEach(t=>this.destroyElement(n,t,e))})}clearElement(t){delete this.paletteStyle[t],delete this.defaultStyle[t],delete this.stateStyle[t],delete this.elementMap[t],delete this.shapeTypeMap[t]}async collapseNode(t,e){var n;let{model:i,layout:r}=this.context,a=this.computeChangesAndDrawData({stage:"collapse",animation:e});this.markDestroyElement(a.drawData);let o=await r.simulate();i.updateData(o);let{drawData:s}=this.computeChangesAndDrawData({stage:"collapse",animation:e}),{add:l,remove:h,update:c}=s;this.markDestroyElement(s);let u={animation:e,stage:"collapse",data:s};this.destroyElements(h,u),this.createElements(l,u),this.updateElements(c,u),await (null===(n=this.context.animation.animate(e,{beforeAnimate:t=>this.emit(new lL(R.BEFORE_ANIMATE,b.COLLAPSE,t,s),u),afterAnimate:t=>this.emit(new lL(R.AFTER_ANIMATE,b.COLLAPSE,t,s),u)},{collapse:{target:t,descendants:Array.from(h.nodes).map(t=>{let[,e]=t;return tt(e)}),position:tH(c.nodes.get(t))}}))||void 0===n?void 0:n.finished)}async expandNode(t,e){var n;let{model:i,layout:r}=this.context;if(!i.getAncestorsData(t,G).every(t=>ee(t)))return;let a=tH(i.getNodeData([t])[0]),{drawData:{add:o}}=this.computeChangesAndDrawData({stage:"collapse",animation:e});this.createElements(o,{animation:!1,stage:"expand"}),this.context.animation.clear();let s=await r.simulate();i.updateData(s),this.computeStyle("expand");let{drawData:l}=this.computeChangesAndDrawData({stage:"collapse",animation:e}),{update:h}=l,c={animation:e,stage:"expand",data:l};o.edges.forEach(t=>{let e=tt(t);h.edges.has(e)||h.edges.set(e,t)}),this.updateElements(h,c),await (null===(n=this.context.animation.animate(e,{beforeAnimate:t=>this.emit(new lL(R.BEFORE_ANIMATE,b.EXPAND,t,l),c),afterAnimate:t=>this.emit(new lL(R.AFTER_ANIMATE,b.EXPAND,t,l),c)},{expand:{target:t,descendants:Array.from(o.nodes).map(t=>{let[,e]=t;return tt(e)}),position:a}}))||void 0===n?void 0:n.finished)}async collapseCombo(t,e){var n;let{model:i,element:r}=this.context;if(i.getAncestorsData(t,G).some(t=>ee(t)))return;let a=r.getElement(t),o=a.getComboPosition({...a.attributes,collapsed:!0}),{dataChanges:s,drawData:l}=this.computeChangesAndDrawData({stage:"collapse",animation:e});this.markDestroyElement(l);let{update:h,remove:c}=l,u={animation:e,stage:"collapse",data:l};this.destroyElements(c,u),this.updateElements(h,u);let d=t=>Array.from(t).map(t=>{let[,e]=t;return tt(e)});await (null===(n=this.context.animation.animate(e,{before:()=>this.emit(new lP(R.BEFORE_DRAW,{dataChanges:s,animation:e}),u),beforeAnimate:t=>this.emit(new lL(R.BEFORE_ANIMATE,b.COLLAPSE,t,l),u),afterAnimate:t=>this.emit(new lL(R.AFTER_ANIMATE,b.COLLAPSE,t,l),u),after:()=>this.emit(new lP(R.AFTER_DRAW,{dataChanges:s,animation:e}),u)},{collapse:{target:t,descendants:[...d(c.nodes),...d(c.combos)],position:o}}))||void 0===n?void 0:n.finished)}async expandCombo(t,e){var n;let{model:i}=this.context,r=tH(i.getComboData([t])[0]);this.computeStyle("expand");let{dataChanges:a,drawData:o}=this.computeChangesAndDrawData({stage:"expand",animation:e}),{add:s,update:l}=o,h={animation:e,stage:"expand",data:o};this.createElements(s,h),this.updateElements(l,h);let c=t=>Array.from(t).map(t=>{let[,e]=t;return tt(e)});await (null===(n=this.context.animation.animate(e,{before:()=>this.emit(new lP(R.BEFORE_DRAW,{dataChanges:a,animation:e}),h),beforeAnimate:t=>this.emit(new lL(R.BEFORE_ANIMATE,b.EXPAND,t,o),h),afterAnimate:t=>this.emit(new lL(R.AFTER_ANIMATE,b.EXPAND,t,o),h),after:()=>this.emit(new lP(R.AFTER_DRAW,{dataChanges:a,animation:e}),h)},{expand:{target:t,descendants:[...c(s.nodes),...c(s.combos)],position:r}}))||void 0===n?void 0:n.finished)}getFrontZIndex(t){let{model:e}=this.context,n=e.getElementType(t),i=e.getElementDataById(t),r=e.getData();if(Object.assign(r,{["".concat(n,"s")]:r["".concat(n,"s")].filter(e=>tt(e)!==t)}),"combo"===n&&!ee(i)){let n=e.getAncestorsData(t,G).map(tt);r.nodes=r.nodes.filter(t=>!n.includes(tt(t))),r.combos=r.combos.filter(t=>!n.includes(tt(t))),r.edges=r.edges.filter(t=>{let{source:e,target:i}=t;return n.includes(e)&&n.includes(i)})}return Math.max(0,...Object.values(r).flat().map(t=>{let e=tt(t);return this.getElementZIndex(e)}))+1}destroy(){this.container.destroy(),this.elementMap={},this.shapeTypeMap={},this.defaultStyle={},this.stateStyle={},this.paletteStyle={},this.context={}}constructor(t){this.elementMap={},this.shapeTypeMap={},this.paletteStyle={},this.defaultStyle={},this.stateStyle={},this.visibilityCache=new WeakMap,this.context=t}}var lX=n(38027),lq=n(54375);class lQ extends rh.Z{constructor(t,e,n){super(),this.graph=t,this.layout=e,this.options=n,this.spawnWorker()}spawnWorker(){this.proxy=lq.Ud(new Worker(n.tu(new URL(n.p+n.u(1939),n.b)),{type:void 0})),this.running&&(this.running=!1,this.execute())}execute(){var t;return(0,rE.mG)(this,void 0,void 0,function*(){if(this.running)return this;this.running=!0;let e=this.layout.options,{onTick:n}=e,i=(0,rE._T)(e,["onTick"]),r={};Object.keys(i).forEach(t=>{(0,lX.Z)(i[t])||(r[t]=i[t])});let a={layout:{id:this.layout.id,options:r,iterations:null===(t=this.options)||void 0===t?void 0:t.iterations},nodes:this.graph.getAllNodes(),edges:this.graph.getAllEdges()},o=new Float32Array([0]),[s]=yield this.proxy.calculateLayout(a,[o]);return s})}stop(){return this.running=!1,this.proxy.stopLayout(),this}kill(){this.proxy[lq.Yy]()}isRunning(){return this.running}}var lJ=n(10779);class l0{get presetOptions(){return{animation:!!Q(this.context.options,!0)}}get options(){let{options:t}=this.context;return t.layout}getLayoutInstance(){return this.instances}async layout(){if(!this.options)return;let t=Array.isArray(this.options)?this.options:[this.options],{graph:e}=this.context;for(let n of(lI(e,new lP(R.BEFORE_LAYOUT)),t)){let i=t.indexOf(n),r=this.getLayoutData(n),a={...this.presetOptions,...n};lI(e,new lP(R.BEFORE_STAGE_LAYOUT,{options:a,index:i}));let o=await this.stepLayout(r,a,i);lI(e,new lP(R.AFTER_STAGE_LAYOUT,{options:a,index:i})),n.animation||this.updateElementPosition(o,!1)}lI(e,new lP(R.AFTER_LAYOUT))}async simulate(){if(!this.options)return{};let t=Array.isArray(this.options)?this.options:[this.options],e={};for(let n of t){let i=t.indexOf(n),r=this.getLayoutData(n),a=await this.stepLayout(r,{...this.presetOptions,...n,animation:!1},i);e=a}return e}async stepLayout(t,e,n){return!function(t){let{type:e}=t;return["compact-box","mindmap","dendrogram","indented"].includes(e)}(e)?await this.graphLayout(t,e,n):await this.treeLayout(t,e,n)}async graphLayout(t,e,n){let{animation:i,enableWorker:r,iterations:a=300}=e,o=this.initGraphLayout(e);if(!o)return{};if(this.instances[n]=o,this.instance=o,r)return this.supervisor=new lQ(o.graphData2LayoutModel(t),o.instance,{iterations:a}),il(await this.supervisor.execute());if((0,lJ.h)(o))return i?await o.execute(t,{onTick:t=>{this.updateElementPosition(t,!1)}}):(o.execute(t),o.stop(),o.tick(a));let s=await o.execute(t);return i&&this.updateElementPosition(s,i),s}async treeLayout(t,e,n){let{type:i,animation:r}=e,a=V("layout",i);if(!a)return{};let{nodes:o=[],edges:s=[]}=t,l=new io.k({nodes:o.map(t=>({id:tt(t),data:t.data||{}})),edges:s.map(t=>({id:tt(t),source:t.source,target:t.target,data:t.data||{}}))});!function(t){if(t.hasTreeStructure(H))return;t.attachTreeStructure(H);let e=t.getAllEdges();for(let n of e){let{source:e,target:i}=n;t.setParent(i,e,H)}}(l);let h={nodes:[],edges:[]},c={nodes:[],edges:[]},u=l.getRoots(H);u.forEach(t=>{t8(t,t=>{t.children=l.getSuccessors(t.id)},t=>l.getSuccessors(t.id),"TB");let n=a(t,e),{x:i,y:r,z:o=0}=n;t8(n,t=>{let{id:e,x:n,y:a,z:s=0}=t;h.nodes.push({id:e,style:{x:i,y:r,z:o}}),c.nodes.push({id:e,style:{x:n,y:a,z:s}})},t=>t.children,"TB")});let d=this.inferTreeLayoutOffset(c);return l1(c,d),r&&(l1(h,d),this.updateElementPosition(h,!1),this.updateElementPosition(c,r)),c}inferTreeLayoutOffset(t){var e;let[n,i]=[1/0,-1/0],[r,a]=[1/0,-1/0];null===(e=t.nodes)||void 0===e||e.forEach(t=>{let{x:e=0,y:o=0}=t.style||{};n=Math.min(n,e),i=Math.max(i,e),r=Math.min(r,o),a=Math.max(a,o)});let{canvas:o}=this.context,s=o.getSize(),[l,h]=o.getCanvasByViewport([0,0]),[c,u]=o.getCanvasByViewport(s);return n>=l&&i<=c&&r>=h&&a<=u?[0,0]:[(l+c)/2-(n+i)/2,(h+u)/2-(r+a)/2]}stopLayout(){this.instance&&(0,lJ.h)(this.instance)&&(this.instance.stop(),this.instance=void 0),this.supervisor&&(this.supervisor.stop(),this.supervisor=void 0),this.animationResult&&(this.animationResult.finish(),this.animationResult=void 0)}getLayoutData(t){let{nodeFilter:e=()=>!0}=t,{nodes:n,edges:i,combos:r}=this.context.model.getData(),a=t=>this.context.element.getElement(t),o=n.filter(t=>{let n=tt(t),i=a(n);return!(!i||n9(i))&&e(t)}),s=new Map(o.map(t=>[tt(t),t])),l=i.filter(t=>{let{source:e,target:n}=t;return!!(s.has(e)&&s.has(n))});return{nodes:o,edges:l,combos:r}}initGraphLayout(t){var e,n;let{element:i,viewport:r}=this.context,{type:a,enableWorker:o,animation:s,iterations:l,...h}=t,[c,u]=r.getCanvasSize(),d=[c/2,u/2],p=null!==(e=null==t?void 0:t.nodeSize)&&void 0!==e?e:t=>{let e=null==i?void 0:i.getElement(t.id),{size:n}=(null==e?void 0:e.attributes)||{};return Math.max(...eh(n))},f=V("layout",a);if(!f)return Y.warn("The layout of ".concat(a," is not registered."));let g=Object.getPrototypeOf(f.prototype)===is.prototype?f:(n=this.context,class extends is{async execute(t,e){return il(await this.instance.execute(this.graphData2LayoutModel(t),this.transformOptions((0,J.Z)({},this.options,e))))}transformOptions(t){let{onTick:e}=t;return e&&(t.onTick=t=>e(il(t))),t}graphData2LayoutModel(t){let{nodes:e=[],edges:i=[],combos:r=[]}=t,a=e.map(t=>{let e=tt(t),{data:n,style:i,combo:r}=t,a={id:e,data:{...n,...r?{parentId:r}:{}},style:{...i}};return(null==i?void 0:i.x)&&Object.assign(a.data,{x:i.x}),(null==i?void 0:i.y)&&Object.assign(a.data,{y:i.y}),(null==i?void 0:i.z)&&Object.assign(a.data,{z:i.z}),a}),o=new Map(a.map(t=>[t.id,t])),s=i.filter(t=>{let{source:e,target:n}=t;return o.has(e)&&o.has(n)}).map(t=>{let{source:e,target:n,data:i,style:r}=t;return{id:tt(t),source:e,target:n,data:{...i},style:{...r}}}),l=r.map(t=>({id:tt(t),data:{_isCombo:!0,...t.data},style:{...t.style}})),h=new io.k({nodes:[...a,...l],edges:s});return n.model.model.hasTreeStructure(G)&&(h.attachTreeStructure(G),a.forEach(t=>{let e=n.model.model.getParent(t.id,G);e&&h.hasNode(e.id)&&h.setParent(t.id,e.id,G)})),h}constructor(t,e){if(super(t,e),this.instance=new f({}),this.id=this.instance.id,"stop"in this.instance&&"tick"in this.instance){let t=this.instance;this.stop=t.stop.bind(t),this.tick=e=>{let n=t.tick(e);return il(n)}}}}),y=new g(this.context),m={nodeSize:p,width:c,height:u,center:d};switch(y.id){case"d3-force":case"d3-force-3d":Object.assign(m,{center:{x:c/2,y:u/2,z:0}})}return(0,J.Z)(y.options,m,h),y}updateElementPosition(t,e){let{model:n,element:i}=this.context;return i?(n.updateData(t),i.draw({animation:e,silence:!0})):null}destroy(){var t;this.stopLayout(),this.context={},null===(t=this.supervisor)||void 0===t||t.kill(),this.supervisor=void 0,this.instance=void 0,this.instances=[],this.animationResult=void 0}constructor(t){this.instances=[],this.context=t}}let l1=(t,e)=>{var n;let[i,r]=e;null===(n=t.nodes)||void 0===n||n.forEach(t=>{if(t.style){let{x:e=0,y:n=0}=t.style;t.style.x=e+i,t.style.y=n+r}else t.style={x:i,y:r}})};class l2 extends th{setPlugins(t){this.setExtensions(t)}getPluginInstance(t){let e=this.extensionMap[t];if(e)return e;Y.warn("Cannot find the plugin ".concat(t,", will try to find it by type."));let n=this.extensions.find(e=>e.type===t);if(n)return this.extensionMap[n.key]}constructor(t){super(t),this.category="plugin",this.setPlugins(this.context.options.plugins||[])}}let l3=["update-related-edges","collapse-expand-node","collapse-expand-combo","get-edge-actual-ends","arrange-draw-order"];class l6 extends th{getTransforms(){}setTransforms(t){this.setExtensions([...l3.slice(0,l3.length-1),...t,l3[l3.length-1]])}getTransformInstance(t){return t?this.extensionMap[t]:this.extensionMap}constructor(t){super(t),this.category="transform",this.setTransforms(this.context.options.transforms||[])}}class l4{get padding(){return ty(this.context.options.padding)}get paddingOffset(){let[t,e,n,i]=this.padding,[r,a,o]=[(i-e)/2,(t-n)/2,0];return[r,a,o]}get camera(){let{canvas:t}=this.context;return new Proxy(t.getCamera(),{get:(e,n)=>{let i=Object.entries(t.getLayers()).filter(t=>{let[e]=t;return!["main"].includes(e)}),r=i.map(t=>{let[,e]=t;return e.getCamera()}),a=e[n];if("function"==typeof a)return function(){for(var t=arguments.length,i=Array(t),o=0;o{t[n].apply(t,i)}),s}}})}createLandmark(t){return this.camera.createLandmark("landmark-".concat(this.landmarkCounter++),t)}getAnimation(t){let e=Q(this.context.options,t);return!!e&&(0,e8.Z)({...e},["easing","duration"])}getCanvasSize(){let{canvas:t}=this.context,{width:e=0,height:n=0}=t.getConfig();return[e,n]}getCanvasCenter(){let{canvas:t}=this.context,{width:e=0,height:n=0}=t.getConfig();return[e/2,n/2,0]}getViewportCenter(){let[t,e]=this.camera.getPosition();return[t,e,0]}getGraphCenter(){return this.context.graph.getViewportByCanvas(this.getCanvasCenter())}getZoom(){return this.camera.getZoom()}getRotation(){return this.camera.getRoll()}getTranslateOptions(t){let{camera:e}=this,{mode:n,translate:i=[]}=t,r=this.getZoom(),a=e.getPosition(),o=e.getFocalPoint(),[s,l]=this.getCanvasCenter(),[h=0,c=0,u=0]=i,d=tP([-h,-c,-u],r);return"relative"===n?{position:tM(a,d),focalPoint:tM(o,d)}:{position:tM([s,l,a[2]],d),focalPoint:tM([s,l,o[2]],d)}}getRotateOptions(t){let{mode:e,rotate:n=0}=t,i="relative"===e?this.camera.getRoll()+n:n;return{roll:i}}getZoomOptions(t){let{zoomRange:e}=this.context.options,n=this.camera.getZoom(),{mode:i,scale:r=1}=t;return(0,im.Z)("relative"===i?n*r:r,...e)}async transform(t,e){let{graph:n}=this.context,{translate:i,rotate:r,scale:a,origin:o}=t;this.cancelAnimation();let s=this.getAnimation(e);if(lI(n,new lN(R.BEFORE_TRANSFORM,t)),!r&&a&&!i&&o&&!s){this.camera.setZoomByViewportPoint(this.getZoomOptions(t),o),lI(n,new lN(R.AFTER_TRANSFORM,t));return}let l={};if(i&&Object.assign(l,this.getTranslateOptions(t)),(0,eJ.Z)(r)&&Object.assign(l,this.getRotateOptions(t)),(0,eJ.Z)(a)&&Object.assign(l,{zoom:this.getZoomOptions(t)}),s)return lI(n,new lL(R.BEFORE_ANIMATE,b.TRANSFORM,null,t)),new Promise(e=>{this.transformResolver=e,this.camera.gotoLandmark(this.createLandmark(l),{...s,onfinish:()=>{lI(n,new lL(R.AFTER_ANIMATE,b.TRANSFORM,null,t)),lI(n,new lN(R.AFTER_TRANSFORM,t)),this.transformResolver=void 0,e()}})});this.camera.gotoLandmark(this.createLandmark(l),{duration:0}),lI(n,new lN(R.AFTER_TRANSFORM,t))}async fitView(t,e){let[n,i,r,a]=this.padding,{when:o="always",direction:s="both"}=t||{},[l,h]=this.context.canvas.getSize(),c=l-a-i,u=h-n-r,d=this.context.canvas.getBounds(),p=this.getBBoxInViewport(d),[f,g]=tb(p);if("overflow"===o&&!("x"===s&&f>=c||"y"===s&&g>=u||"both"===s&&f>=c&&g>=u))return await this.fitCenter(e);let y=c/f,m=u/g,v="x"===s?y:"y"===s?m:Math.min(y,m),b=this.getAnimation(e);await this.transform({mode:"relative",scale:v,translate:tM(tT(this.getCanvasCenter(),this.getBBoxInViewport(d).center),tP(this.paddingOffset,v))},b)}async fitCenter(t){let e=this.context.canvas.getBounds();await this.focus(e,t)}async focusElements(t,e){let{element:n}=this.context;if(!n)return;let i=tw(t.map(t=>n.getElement(t).getRenderBounds()));await this.focus(i,e)}async focus(t,e){let n=this.context.graph.getViewportByCanvas(t.center),i=this.getCanvasCenter(),r=tT(i,n);await this.transform({mode:"relative",translate:tM(r,this.paddingOffset)},e)}getBBoxInViewport(t){let{min:e,max:n}=t,{graph:i}=this.context,[r,a]=i.getViewportByCanvas(e),[o,s]=i.getViewportByCanvas(n),l=new I.mN;return l.setMinMax([r,a,0],[o,s,0]),l}isInViewport(t){let{graph:e}=this.context,n=this.getCanvasSize(),[i,r]=e.getCanvasByViewport([0,0]),[a,o]=e.getCanvasByViewport(n),s=new I.mN;return s.setMinMax([i,r,0],[a,o,0]),tf(t)?tC(t,s):s.intersects(t)}cancelAnimation(){var t,e;(null===(t=this.camera.landmarks)||void 0===t?void 0:t.length)&&this.camera.cancelLandmarkAnimation(),null===(e=this.transformResolver)||void 0===e||e.call(this)}constructor(t){this.landmarkCounter=0,this.context=t;let[e,n]=this.paddingOffset,{zoom:i,rotation:r,x:a=e,y:o=n}=t.options;this.transform({mode:"absolute",scale:i,translate:[a,o],rotate:r},!1)}}class l8 extends rh.Z{getOptions(){return this.options}setOptions(t){var e,n,i;let{behaviors:r,combo:a,data:o,edge:s,height:l,layout:h,node:c,plugins:u,theme:d,transforms:p,width:f,cursor:g,renderer:y}=t;if(y){let t=this.context.canvas;t&&(this.emit(R.BEFORE_RENDERER_CHANGE,{renderer:this.options.renderer}),t.setRenderer(y),this.emit(R.AFTER_RENDERER_CHANGE,{renderer:y}))}Object.assign(this.options,t),g&&(null===(e=this.context.canvas)||void 0===e||e.setCursor(g)),r&&this.setBehaviors(r),a&&this.setCombo(a),o&&this.setData(o),s&&this.setEdge(s),h&&this.setLayout(h),c&&this.setNode(c),d&&this.setTheme(d),u&&this.setPlugins(u),p&&this.setTransforms(p),((0,eJ.Z)(f)||(0,eJ.Z)(l))&&this.setSize(null!==(n=null!=f?f:this.options.width)&&void 0!==n?n:0,null!==(i=null!=l?l:this.options.height)&&void 0!==i?i:0)}getSize(){return this.context.canvas?this.context.canvas.getSize():[this.options.width||0,this.options.height||0]}setSize(t,e){var n;Object.assign(this.options,{width:t,height:e}),null===(n=this.context.canvas)||void 0===n||n.resize(t,e)}setZoomRange(t){this.options.zoomRange=t}getZoomRange(){return this.options.zoomRange}setNode(t){this.options.node=t,this.context.model.refreshData()}setEdge(t){this.options.edge=t,this.context.model.refreshData()}setCombo(t){this.options.combo=t,this.context.model.refreshData()}getTheme(){return this.options.theme}setTheme(t){this.options.theme=(0,td.Z)(t)?t(this.getTheme()):t}setLayout(t){this.options.layout=(0,td.Z)(t)?t(this.getLayout()):t}getLayout(){return this.options.layout}setBehaviors(t){var e;this.options.behaviors=(0,td.Z)(t)?t(this.getBehaviors()):t,null===(e=this.context.behavior)||void 0===e||e.setBehaviors(this.options.behaviors)}updateBehavior(t){this.setBehaviors(e=>e.map(e=>"object"==typeof e&&e.key===t.key?{...e,...t}:e))}getBehaviors(){return this.options.behaviors||[]}setPlugins(t){var e;this.options.plugins=(0,td.Z)(t)?t(this.getPlugins()):t,null===(e=this.context.plugin)||void 0===e||e.setPlugins(this.options.plugins)}updatePlugin(t){this.setPlugins(e=>e.map(e=>"object"==typeof e&&e.key===t.key?{...e,...t}:e))}getPlugins(){return this.options.plugins||[]}getPluginInstance(t){return this.context.plugin.getPluginInstance(t)}setTransforms(t){var e;this.options.transforms=(0,td.Z)(t)?t(this.getTransforms()):t,null===(e=this.context.transform)||void 0===e||e.setTransforms(this.options.transforms)}updateTransform(t){this.setTransforms(e=>e.map(e=>"object"==typeof e&&e.key===t.key?{...e,...t}:e)),this.context.model.refreshData()}getTransforms(){return this.options.transforms||[]}getData(){return this.context.model.getData()}getElementData(t){return Array.isArray(t)?t.map(t=>this.context.model.getElementDataById(t)):this.context.model.getElementDataById(t)}getNodeData(t){var e;return void 0===t?this.context.model.getNodeData():Array.isArray(t)?this.context.model.getNodeData(t):null===(e=this.context.model.getNodeData([t]))||void 0===e?void 0:e[0]}getEdgeData(t){var e;return void 0===t?this.context.model.getEdgeData():Array.isArray(t)?this.context.model.getEdgeData(t):null===(e=this.context.model.getEdgeData([t]))||void 0===e?void 0:e[0]}getComboData(t){var e;return void 0===t?this.context.model.getComboData():Array.isArray(t)?this.context.model.getComboData(t):null===(e=this.context.model.getComboData([t]))||void 0===e?void 0:e[0]}setData(t){this.context.model.setData((0,td.Z)(t)?t(this.getData()):t)}addData(t){this.context.model.addData((0,td.Z)(t)?t(this.getData()):t)}addNodeData(t){this.context.model.addNodeData((0,td.Z)(t)?t(this.getNodeData()):t)}addEdgeData(t){this.context.model.addEdgeData((0,td.Z)(t)?t(this.getEdgeData()):t)}addComboData(t){this.context.model.addComboData((0,td.Z)(t)?t(this.getComboData()):t)}addChildrenData(t,e){this.context.model.addChildrenData(t,e)}updateData(t){this.context.model.updateData((0,td.Z)(t)?t(this.getData()):t)}updateNodeData(t){this.context.model.updateNodeData((0,td.Z)(t)?t(this.getNodeData()):t)}updateEdgeData(t){this.context.model.updateEdgeData((0,td.Z)(t)?t(this.getEdgeData()):t)}updateComboData(t){this.context.model.updateComboData((0,td.Z)(t)?t(this.getComboData()):t)}removeData(t){this.context.model.removeData((0,td.Z)(t)?t(this.getData()):t)}removeNodeData(t){this.context.model.removeNodeData((0,td.Z)(t)?t(this.getNodeData()):t)}removeEdgeData(t){this.context.model.removeEdgeData((0,td.Z)(t)?t(this.getEdgeData()):t)}removeComboData(t){this.context.model.removeComboData((0,td.Z)(t)?t(this.getComboData()):t)}getElementType(t){return this.context.model.getElementType(t)}getRelatedEdgesData(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";return this.context.model.getRelatedEdgesData(t,e)}getNeighborNodesData(t){return this.context.model.getNeighborNodesData(t)}getAncestorsData(t,e){return this.context.model.getAncestorsData(t,e)}getParentData(t,e){return this.context.model.getParentData(t,e)}getChildrenData(t){return this.context.model.getChildrenData(t)}getElementDataByState(t,e){return this.context.model.getElementDataByState(t,e)}async initCanvas(){if(this.context.canvas)return await this.context.canvas.ready;let{container:t="container",width:e,height:n,renderer:i,cursor:r,background:a}=this.options;if(t instanceof lz)this.context.canvas=t,r&&t.setCursor(r),await t.ready;else{let o=(0,t0.Z)(t)?document.getElementById(t):t,s=iI(o);this.emit(R.BEFORE_CANVAS_INIT,{container:o,width:e,height:n});let l=new lz({container:o,width:e||s[0],height:n||s[1],background:a,renderer:i,cursor:r});this.context.canvas=l,await l.ready,this.emit(R.AFTER_CANVAS_INIT,{canvas:l})}}initRuntime(){this.context.options=this.options,this.context.batch||(this.context.batch=new l_(this.context)),this.context.plugin||(this.context.plugin=new l2(this.context)),this.context.viewport||(this.context.viewport=new l4(this.context)),this.context.transform||(this.context.transform=new l6(this.context)),this.context.element||(this.context.element=new l$(this.context)),this.context.animation||(this.context.animation=new lB(this.context)),this.context.layout||(this.context.layout=new l0(this.context)),this.context.behavior||(this.context.behavior=new lF(this.context))}async prepare(){if(await Promise.resolve(),this.destroyed)throw Error(U("The graph instance has been destroyed"));await this.initCanvas(),this.initRuntime()}async render(){await this.prepare(),lI(this,new lP(R.BEFORE_RENDER));let t=this.context.element.draw({type:"render"});await Promise.all([null==t?void 0:t.finished,this.context.layout.layout()]),await this.autoFit(),lI(this,new lP(R.AFTER_RENDER))}async draw(){var t;await this.prepare(),await (null===(t=this.context.element.draw())||void 0===t?void 0:t.finished)}async layout(){await this.context.layout.layout()}stopLayout(){this.context.layout.stopLayout()}async clear(){this.context.model.setData({}),await this.draw()}destroy(){lI(this,new lP(R.BEFORE_DESTROY));let{layout:t,animation:e,element:n,model:i,canvas:r,behavior:a,plugin:o}=this.context;null==o||o.destroy(),null==a||a.destroy(),null==t||t.destroy(),null==e||e.destroy(),null==n||n.destroy(),i.destroy(),null==r||r.destroy(),this.options={},this.context={},this.off(),window.removeEventListener("resize",this.onResize),this.destroyed=!0,lI(this,new lP(R.AFTER_DESTROY))}getCanvas(){return this.context.canvas}resize(t,e){let n=t&&e?[t,e]:iI(this.context.canvas.getContainer());(0,F.Z)(n,this.getSize())||(lI(this,new lP(R.BEFORE_SIZE_CHANGE,{size:n})),this.context.canvas.resize(...n),lI(this,new lP(R.AFTER_SIZE_CHANGE,{size:n})))}async fitView(t,e){var n;await (null===(n=this.context.viewport)||void 0===n?void 0:n.fitView(t,e))}async fitCenter(t){var e;await (null===(e=this.context.viewport)||void 0===e?void 0:e.fitCenter(t))}async autoFit(){let{autoFit:t}=this.context.options;if(t){if((0,t0.Z)(t))"view"===t?await this.fitView():"center"===t&&await this.fitCenter();else{let{type:e,animation:n}=t;"view"===e?await this.fitView(t.options,n):"center"===e&&await this.fitCenter(n)}}}async focusElement(t,e){var n;await (null===(n=this.context.viewport)||void 0===n?void 0:n.focusElements(Array.isArray(t)?t:[t],e))}async zoomBy(t,e,n){await this.context.viewport.transform({mode:"relative",scale:t,origin:n},e)}async zoomTo(t,e,n){this.context.viewport.transform({mode:"absolute",scale:t,origin:n},e)}getZoom(){return this.context.viewport.getZoom()}async rotateBy(t,e,n){await this.context.viewport.transform({mode:"relative",rotate:t,origin:n},e)}async rotateTo(t,e,n){await this.context.viewport.transform({mode:"absolute",rotate:t,origin:n},e)}getRotation(){return this.context.viewport.getRotation()}async translateBy(t,e){await this.context.viewport.transform({mode:"relative",translate:t},e)}async translateTo(t,e){await this.context.viewport.transform({mode:"absolute",translate:t},e)}getPosition(){return tT([0,0],this.getCanvasByViewport([0,0]))}async translateElementBy(t,e){var n;let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],[r,a]=(0,j.Z)(t)?[t,null==e||e]:[{[t]:e},i];Object.entries(r).forEach(t=>{let[e,n]=t;return this.context.model.translateNodeLikeBy(e,n)}),await (null===(n=this.context.element.draw({animation:a,stage:"translate"}))||void 0===n?void 0:n.finished)}async translateElementTo(t,e){var n;let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],[r,a]=(0,j.Z)(t)?[t,null==e||e]:[{[t]:e},i];Object.entries(r).forEach(t=>{let[e,n]=t;return this.context.model.translateNodeLikeTo(e,n)}),await (null===(n=this.context.element.draw({animation:a,stage:"translate"}))||void 0===n?void 0:n.finished)}getElementPosition(t){return this.context.model.getElementPosition(t)}getElementRenderStyle(t){return(0,iD.Z)(this.context.element.getElement(t).attributes,["context"])}async setElementVisibility(t,e){var n;let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],[r,a]=(0,j.Z)(t)?[t,null==e||e]:[{[t]:e},i],o={nodes:[],edges:[],combos:[]};Object.entries(r).forEach(t=>{let[e,n]=t,i=this.getElementType(e);o["".concat(i,"s")].push({id:e,style:{visibility:n}})});let{model:s,element:l}=this.context;s.preventUpdateNodeLikeHierarchy(()=>{s.updateData(o)}),await (null===(n=l.draw({animation:a,stage:"visibility"}))||void 0===n?void 0:n.finished)}async showElement(t,e){let n=Array.isArray(t)?t:[t];await this.setElementVisibility(Object.fromEntries(n.map(t=>[t,"visible"])),e)}async hideElement(t,e){let n=Array.isArray(t)?t:[t];await this.setElementVisibility(Object.fromEntries(n.map(t=>[t,"hidden"])),e)}getElementVisibility(t){var e,n;let i=this.context.element.getElement(t);return null!==(n=null==i?void 0:null===(e=i.style)||void 0===e?void 0:e.visibility)&&void 0!==n?n:"visible"}async setElementZIndex(t,e){var n;let i={nodes:[],edges:[],combos:[]},r=(0,j.Z)(t)?t:{[t]:e};Object.entries(r).forEach(t=>{let[e,n]=t,r=this.getElementType(e);i["".concat(r,"s")].push({id:e,style:{zIndex:n}})});let{model:a,element:o}=this.context;a.preventUpdateNodeLikeHierarchy(()=>a.updateData(i)),await (null===(n=o.draw({animation:!1,stage:"zIndex"}))||void 0===n?void 0:n.finished)}async frontElement(t){let e=Array.isArray(t)?t:[t],{model:n,element:i}=this.context,r={};e.map(t=>{let e=i.getFrontZIndex(t),a=n.getElementType(t);if("combo"===a){let a=n.getAncestorsData(t,G).at(-1)||this.getComboData(t),o=[a,...n.getDescendantsData(tt(a))],s=e-i.getElementZIndex(t);o.forEach(t=>{r[tt(t)]=this.getElementZIndex(tt(t))+s})}else r[t]=e}),await this.setElementZIndex(r)}getElementZIndex(t){var e,n,i;let{model:r,element:a}=this.context;return null!==(i=null===(e=r.getElementDataById(t))||void 0===e?void 0:null===(n=e.style)||void 0===n?void 0:n.zIndex)&&void 0!==i?i:a.getElementZIndex(t)}async setElementState(t,e){var n;let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],[r,a]=(0,j.Z)(t)?[t,null==e||e]:[{[t]:e},i],o=t=>t?Array.isArray(t)?t:[t]:[],s={nodes:[],edges:[],combos:[]};Object.entries(r).forEach(t=>{let[e,n]=t,i=this.getElementType(e);s["".concat(i,"s")].push({id:e,states:o(n)})}),this.updateData(s),await (null===(n=this.context.element.draw({animation:a}))||void 0===n?void 0:n.finished)}getElementState(t){return this.context.model.getElementState(t)}getElementRenderBounds(t){return this.context.element.getElement(t).getRenderBounds()}async collapseElement(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],{model:n,element:i}=this.context;if(ee(n.getNodeLikeData([t])[0])||this.isCollapsingExpanding)return;let r=n.getElementType(t);await this.frontElement(t),this.isCollapsingExpanding=!0,this.setElementCollapsibility(t,!0),"node"===r?await i.collapseNode(t,e):"combo"===r&&await i.collapseCombo(t,e),this.isCollapsingExpanding=!1}async expandElement(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],{model:n,element:i}=this.context;if(!ee(n.getNodeLikeData([t])[0])||this.isCollapsingExpanding)return;let r=n.getElementType(t);this.isCollapsingExpanding=!0,this.setElementCollapsibility(t,!1),"node"===r?await i.expandNode(t,e):"combo"===r&&await i.expandCombo(t,e),this.isCollapsingExpanding=!1}setElementCollapsibility(t,e){let n=this.getElementType(t);"node"===n?this.updateNodeData([{id:t,style:{collapsed:e}}]):"combo"===n&&this.updateComboData([{id:t,style:{collapsed:e}}])}async toDataURL(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.context.canvas.toDataURL(t)}getCanvasByViewport(t){return this.context.canvas.getCanvasByViewport(t)}getViewportByCanvas(t){return this.context.canvas.getViewportByCanvas(t)}getClientByCanvas(t){return this.context.canvas.getClientByCanvas(t)}getCanvasByClient(t){return this.context.canvas.getCanvasByClient(t)}getViewportCenter(){return this.context.viewport.getViewportCenter()}getCanvasCenter(){return this.context.viewport.getCanvasCenter()}on(t,e,n){return super.on(t,e,n)}once(t,e){return super.once(t,e)}off(t,e){return super.off(t,e)}constructor(t){super(),this.destroyed=!1,this.context={model:new lK},this.isCollapsingExpanding=!1,this.onResize=(0,ii.Z)(()=>{this.resize()},300),this.options=Object.assign({},l8.defaultOptions,t),this.setOptions(this.options),this.context.graph=this,this.options.autoResize&&window.addEventListener("resize",this.onResize)}}l8.defaultOptions={autoResize:!1,theme:"light",rotation:0,zoom:1,zoomRange:[.01,10]};let l9=(t,e)=>{let{source:n,target:i}=e,r=t.getElementDataById(n),a=t.getElementDataById(i),o=nE(r,e=>t.getParentData(e,G)),s=nE(a,e=>t.getParentData(e,G)),l=tt(o),h=tt(s),c={sourceNode:l,targetNode:h};return e.style?Object.assign(e.style,c):e.style=c,e};var l5=n(90134);let l7=["top","top-right","right","right-bottom","bottom","bottom-left","left","left-top"];class ht extends lO{beforeDraw(t){let e=this.getAffectedParallelEdges(t);return 0===e.size||("bundle"===this.options.mode?this.applyBundlingStyle(t,e,this.options.distance):this.applyMergingStyle(t,e)),t}constructor(t,e){super(t,Object.assign({},ht.defaultOptions,e)),this.cacheMergeStyle=new Map,this.getAffectedParallelEdges=t=>{let{add:{edges:e},update:{nodes:n,edges:i,combos:r},remove:{edges:a}}=t,{model:o}=this.context,s=new Map,l=(t,e)=>{let n=o.getRelatedEdgesData(e);n.forEach(t=>!s.has(tt(t))&&s.set(tt(t),t))};n.forEach(l),r.forEach(l);let h=t=>{let e=o.getEdgeData().map(t=>l9(o,t)),n=hn(t,e,!0);n.forEach(t=>!s.has(tt(t))&&s.set(tt(t),t))};if(a.size&&a.forEach(h),e.size&&e.forEach(h),i.size){let t=ru(rc(o.getChanges())).update.edges;i.forEach(e=>{var n;h(e);let i=null===(n=t.find(t=>tt(t.value)===tt(e)))||void 0===n?void 0:n.original;i&&!hi(e,i)&&h(i)})}eN(this.options.edges)||s.forEach((t,e)=>!this.options.edges.includes(e)&&s.delete(e));let c=o.getEdgeData().map(tt);return new Map([...s].sort((t,e)=>c.indexOf(t[0])-c.indexOf(e[0])))},this.applyBundlingStyle=(t,e,n)=>{let{edgeMap:i,reverses:r}=he(e);i.forEach(e=>{e.forEach((e,i,a)=>{var o;let s=Object.assign(e,{type:"quadratic",style:(()=>{let t=a.length,o={};if(e.source===e.target){let t=l7.length;o.loopPlacement=l7[i%t],o.loopDist=Math.floor(i/t)*n+50}else if(1===t)o.curveOffset=0;else{let a=(i%2==0?1:-1)*(r["".concat(e.source,"|").concat(e.target,"|").concat(i)]?-1:1);o.curveOffset=t%2==1?a*Math.ceil(i/2)*n*2:a*(Math.floor(i/2)*n*2+n)}return Object.assign({},e.style,o)})()}),l=null===(o=this.context.element)||void 0===o?void 0:o.getElement(tt(e));l?ti(t,"update","edge",s,!0):ti(t,"add","edge",s,!0)})})},this.resetEdgeStyle=t=>{let e=t.style||{},n=this.cacheMergeStyle.get(tt(t))||{};return Object.keys(n).forEach(i=>{(0,F.Z)(e[i],n[i])&&(t[i]?e[i]=t[i]:delete e[i])}),Object.assign(t,{style:e})},this.applyMergingStyle=(t,e)=>{let{edgeMap:n,reverses:i}=he(e);n.forEach(e=>{if(1===e.length){var n;let i=e[0],r=null===(n=this.context.element)||void 0===n?void 0:n.getElement(tt(i));ti(t,r?"update":"add","edge",this.resetEdgeStyle(i),!0);return}let r=e.map((t,e)=>{let{source:n,target:r,style:a={}}=t,{startArrow:o,endArrow:s}=a,l={},[h,c]=i["".concat(n,"|").concat(r,"|").concat(e)]?["endArrow","startArrow"]:["startArrow","endArrow"];return(0,l5.Z)(o)&&(l[h]=o),(0,l5.Z)(s)&&(l[c]=s),l}).reduce((t,e)=>({...t,...e}),{});e.forEach((e,n,i)=>{if(0===n){var a;let n=Object.assign({},(0,td.Z)(this.options.style)?this.options.style(i):this.options.style,{childrenData:i});this.cacheMergeStyle.set(tt(e),n);let o={...e,type:"line",style:{...r,...n}},s=null===(a=this.context.element)||void 0===a?void 0:a.getElement(tt(e));ti(t,s?"update":"add","edge",o,!0)}else ti(t,"remove","edge",e)})})}}}ht.defaultOptions={mode:"bundle",edges:void 0,distance:15};let he=t=>{let e=new Map,n=new Set,i={};for(let[r,a]of t){if(n.has(r))continue;let{source:o,target:s}=a,l="".concat(o,"-").concat(s);for(let[h,c]of(e.has(l)||e.set(l,[]),e.get(l).push(a),n.add(r),t))!n.has(h)&&hi(a,c)&&(e.get(l).push(c),n.add(h),o===c.target&&s===c.source&&(i["".concat(c.source,"|").concat(c.target,"|").concat(e.get(l).length-1)]=!0))}return{edgeMap:e,reverses:i}},hn=(t,e,n)=>e.filter(e=>(n||tt(e)!==tt(t))&&hi(e,t)),hi=(t,e)=>{let{sourceNode:n,targetNode:i}=t.style||{},{sourceNode:r,targetNode:a}=e.style||{};return n===r&&i===a||n===a&&i===r},hr={animation:{"combo-collapse":ts,"combo-expand":ts,"node-collapse":ta,"node-expand":ta,"path-in":to,"path-out":to,fade:[{fields:["opacity"]}],translate:[{fields:["x","y"]}]},behavior:{"brush-select":t3,"click-select":et,"collapse-expand":n5,"create-edge":ie,"drag-canvas":ir,"drag-element-force":class extends ia{get forceLayoutInstance(){return this.context.layout.getLayoutInstance().find(t=>["d3-force","d3-force-3d"].includes(null==t?void 0:t.id))}validate(t){return!!this.context.layout&&(this.forceLayoutInstance?super.validate(t):(Y.warn("DragElementForce only works with d3-force or d3-force-3d layout"),!1))}async moveElement(t,e){let n=this.forceLayoutInstance;this.context.graph.getNodeData(t).forEach((i,r)=>{let{x:a=0,y:o=0}=i.style||{};n&&ih(n,"setFixedPosition",t[r],[...tM([+a,+o],e)])})}onDragStart(t){if(this.enable=this.validate(t),!this.enable)return;this.target=this.getSelectedNodeIDs([t.target.id]),this.hideEdge(),this.context.graph.frontElement(this.target);let e=this.forceLayoutInstance;e&&ic(e,"simulation").alphaTarget(.3).restart(),this.context.graph.getNodeData(this.target).forEach(t=>{let{x:n=0,y:i=0}=t.style||{};e&&ih(e,"setFixedPosition",tt(t),[+n,+i])})}onDrag(t){if(!this.enable)return;let e=this.getDelta(t);this.moveElement(this.target,e)}onDragEnd(){let t=this.forceLayoutInstance;t&&ic(t,"simulation").alphaTarget(0),this.context.graph.getNodeData(this.target).forEach(e=>{t&&ih(t,"setFixedPosition",tt(e),[null,null,null])})}},"drag-element":ia,"fix-element-size":iu,"focus-element":id,"hover-activate":ip,"lasso-select":class extends t3{onPointerDown(t){if(!super.validate(t)||!super.isKeydown()||this.points)return;let{canvas:e}=this.context;this.pathShape=new I.y$({id:"g6-lasso-select",style:this.options.style}),e.appendChild(this.pathShape),this.points=[t6(t)]}onPointerMove(t){var e;if(!this.points)return;let{immediately:n,mode:i}=this.options;this.points.push(t6(t)),null===(e=this.pathShape)||void 0===e||e.setAttribute("d",function(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=[];return t.forEach((t,e)=>{n.push([0===e?"M":"L",...t])}),e&&n.push(["Z"]),n}(this.points)),n&&"default"===i&&this.points.length>2&&super.updateElementsStates(this.points)}onPointerUp(){if(this.points){if(this.points.length<2){this.clearLasso();return}super.updateElementsStates(this.points),this.clearLasso()}}clearLasso(){var t;null===(t=this.pathShape)||void 0===t||t.remove(),this.pathShape=void 0,this.points=void 0}},"optimize-viewport-transform":ig,"scroll-canvas":iy,"zoom-canvas":iv},combo:{circle:class extends ne{drawKeyShape(t,e){return this.upsert("key",I.Cd,this.getKeyStyle(t),e)}getKeyStyle(t){let{collapsed:e}=t,n=super.getKeyStyle(t),[i]=this.getKeySize(t);return{...n,...e&&eo(n,"collapsed"),r:i/2}}getCollapsedKeySize(t){let[e,n]=eh(t.collapsedSize),i=Math.max(e,n)/2;return[2*i,2*i,0]}getExpandedKeySize(t){let e=this.getContentBBox(t),[n,i]=tb(e),r=Math.sqrt(n**2+i**2)/2;return[2*r,2*r,0]}getIntersectPoint(t){let e=this.getShape("key").getBounds();return tX(t,e)}constructor(t){super(t)}},rect:class extends ne{drawKeyShape(t,e){return this.upsert("key",I.UL,this.getKeyStyle(t),e)}getKeyStyle(t){let e=super.getKeyStyle(t),[n,i]=this.getKeySize(t);return{...e,...t.collapsed&&eo(e,"collapsed"),width:n,height:i,x:-n/2,y:-i/2}}constructor(t){super(t)}}},edge:{cubic:nP,line:nN,polyline:nV,quadratic:nU,"cubic-horizontal":nL,"cubic-vertical":nD},layout:{"antv-dagre":ix.b,"combo-combined":iw.u,"compact-box":ib.compactBox,"force-atlas2":iA.E,circular:iE.S,concentric:iC.W,"d3-force":iS.j,dagre:iR.V,dendrogram:ib.dendrogram,force:iO.y,fruchterman:iM.O,grid:iT.M,indented:ib.indented,mds:ik.A,mindmap:ib.mindmap,radial:iP.D,random:iL._},node:{circle:eq,diamond:class extends eQ{getPoints(t){let[e,n]=this.getSize(t);return[[0,-n/2],[e/2,0],[0,n/2],[-e/2,0]]}constructor(t){super(t)}},ellipse:e4,hexagon:class extends eQ{getOuterR(t){return t.outerR||Math.min(...this.getSize(t))/2}getPoints(t){var e;return[[0,e=this.getOuterR(t)],[e*Math.sqrt(3)/2,e/2],[e*Math.sqrt(3)/2,-e/2],[0,-e],[-e*Math.sqrt(3)/2,-e/2],[-e*Math.sqrt(3)/2,e/2]]}getIconStyle(t){let e=super.getIconStyle(t),n=.8*this.getOuterR(t);return!!e&&{width:n,height:n,...e}}constructor(t){super(t)}},html:e5,image:e7,rect:class extends eX{getKeyStyle(t){let[e,n]=this.getSize(t);return{...super.getKeyStyle(t),width:e,height:n,x:-e/2,y:-n/2}}getIconStyle(t){let e=super.getIconStyle(t),{width:n,height:i}=this.getShape("key").attributes;return!!e&&{width:.8*n,height:.8*i,...e}}drawKeyShape(t,e){return this.upsert("key",I.UL,this.getKeyStyle(t),e)}constructor(t){super(t)}},star:class extends eQ{getInnerR(t){return t.innerR||3*this.getOuterR(t)/8}getOuterR(t){return Math.min(...this.getSize(t))/2}getPoints(t){var e,n;return[[0,-(e=this.getOuterR(t))],[(n=this.getInnerR(t))*Math.cos(3*Math.PI/10),-n*Math.sin(3*Math.PI/10)],[e*Math.cos(Math.PI/10),-e*Math.sin(Math.PI/10)],[n*Math.cos(Math.PI/10),n*Math.sin(Math.PI/10)],[e*Math.cos(3*Math.PI/10),e*Math.sin(3*Math.PI/10)],[0,n],[-e*Math.cos(3*Math.PI/10),e*Math.sin(3*Math.PI/10)],[-n*Math.cos(Math.PI/10),n*Math.sin(Math.PI/10)],[-e*Math.cos(Math.PI/10),-e*Math.sin(Math.PI/10)],[-n*Math.cos(3*Math.PI/10),-n*Math.sin(3*Math.PI/10)]]}getIconStyle(t){let e=super.getIconStyle(t),n=2*this.getInnerR(t)*.8;return!!e&&{width:n,height:n,...e}}getPortXY(t,e){let{placement:n="top"}=e,i=this.getShape("key").getLocalBounds(),r=function(t,e){let n={};return n.top=[0,-t],n.left=[-t*Math.cos(Math.PI/10),-t*Math.sin(Math.PI/10)],n["left-bottom"]=[-t*Math.cos(3*Math.PI/10),t*Math.sin(3*Math.PI/10)],n.bottom=[0,e],n["right-bottom"]=[t*Math.cos(3*Math.PI/10),t*Math.sin(3*Math.PI/10)],n.right=n.default=[t*Math.cos(Math.PI/10),-t*Math.sin(Math.PI/10)],n}(this.getOuterR(t),this.getInnerR(t));return nq(i,n,r,!1)}constructor(t){super(t)}},donut:e0,triangle:nt},palette:{spectral:["rgb(158, 1, 66)","rgb(213, 62, 79)","rgb(244, 109, 67)","rgb(253, 174, 97)","rgb(254, 224, 139)","rgb(255, 255, 191)","rgb(230, 245, 152)","rgb(171, 221, 164)","rgb(102, 194, 165)","rgb(50, 136, 189)","rgb(94, 79, 162)"],tableau:["rgb(78, 121, 167)","rgb(242, 142, 44)","rgb(225, 87, 89)","rgb(118, 183, 178)","rgb(89, 161, 79)","rgb(237, 201, 73)","rgb(175, 122, 161)","rgb(255, 157, 167)","rgb(156, 117, 95)","rgb(186, 176, 171)"],oranges:["rgb(255, 245, 235)","rgb(254, 230, 206)","rgb(253, 208, 162)","rgb(253, 174, 107)","rgb(253, 141, 60)","rgb(241, 105, 19)","rgb(217, 72, 1)","rgb(166, 54, 3)","rgb(127, 39, 4)"],greens:["rgb(247, 252, 245)","rgb(229, 245, 224)","rgb(199, 233, 192)","rgb(161, 217, 155)","rgb(116, 196, 118)","rgb(65, 171, 93)","rgb(35, 139, 69)","rgb(0, 109, 44)","rgb(0, 68, 27)"],blues:["rgb(247, 251, 255)","rgb(222, 235, 247)","rgb(198, 219, 239)","rgb(158, 202, 225)","rgb(107, 174, 214)","rgb(66, 146, 198)","rgb(33, 113, 181)","rgb(8, 81, 156)","rgb(8, 48, 107)"]},theme:{dark:lR,light:lA},plugin:{"bubble-sets":re,"edge-filter-lens":ro,"grid-line":rl,background:ij,contextmenu:rr,fullscreen:rs,history:rd,hull:rx,legend:aS,minimap:oy,snapline:ox,timebar:la,toolbar:lh,tooltip:ly,watermark:lx},transform:{"update-related-edges":class extends lO{beforeDraw(t,e){let{stage:n}=e;if("visibility"===n)return t;let{model:i}=this.context,{update:{nodes:r,edges:a,combos:o}}=t,s=(t,e)=>{let n=i.getRelatedEdgesData(e);n.forEach(t=>!a.has(tt(t))&&a.set(tt(t),t))};return r.forEach(s),o.forEach(s),t}},"arrange-draw-order":class extends lO{beforeDraw(t){let{model:e}=this.context,n=t.add.combos,i=t=>{let n=[];return t.forEach((t,i)=>{let r=e.getAncestorsData(i,"combo"),a=r.map(t=>tt(t)).reverse();n.push([i,t,a.length])}),new Map(n.sort((t,e)=>{let[,,n]=t,[,,i]=e;return i-n}).map(t=>{let[e,n]=t;return[e,n]}))};return t.add.combos=i(n),t.update.combos=i(t.update.combos),t}},"collapse-expand-combo":class extends lO{beforeDraw(t,e){if("visibility"===e.stage)return t;let{model:n}=this.context,{add:i,update:r}=t,a=[...t.update.combos.entries(),...t.add.combos.entries()];for(;a.length;){let[e,o]=a.pop();if(ee(o)){let o=n.getDescendantsData(e),s=o.map(tt),{internal:l,external:h}=nx(s,t=>n.getRelatedEdgesData(t));o.forEach(e=>{let i=tt(e),r=a.findIndex(t=>{let[e]=t;return e===i});-1!==r&&a.splice(r,1);let o=n.getElementType(i);lM(t,"remove",o,e)}),l.forEach(e=>lM(t,"remove","edge",e)),h.forEach(t=>{var e;let n=tt(t),a=null===(e=this.context.element)||void 0===e?void 0:e.getElement(n);a?r.edges.set(n,t):i.edges.set(n,t)})}else{let i=n.getChildrenData(e),r=i.map(tt),{edges:o}=nx(r,t=>n.getRelatedEdgesData(t));[...i,...o].forEach(e=>{var i;let r=tt(e),o=n.getElementType(r),s=null===(i=this.context.element)||void 0===i?void 0:i.getElement(r);s?lM(t,"update",o,e):lM(t,"add",o,e),"combo"===o&&a.push([r,e])})}}return t}},"collapse-expand-node":class extends lO{getElement(t){return this.context.element.getElement(t)}handleExpand(t,e){if(lT(e,"add","node",t),ee(t))return;let n=tt(t);lT(e,"add","node",t);let i=this.context.model.getRelatedEdgesData(n,"out");i.forEach(t=>{lM(e,"add","edge",t)});let r=this.context.model.getChildrenData(n);r.forEach(t=>{this.handleExpand(t,e)})}beforeDraw(t){let{graph:e,model:n}=this.context,{add:{nodes:i,edges:r},update:{nodes:a}}=t,o=new Map,s=new Map;i.forEach((t,e)=>{ee(t)&&o.set(e,t)}),r.forEach(t=>{if("node"!==e.getElementType(t.source))return;let n=e.getNodeData(t.source);ee(n)&&o.set(t.source,n)}),a.forEach((t,e)=>{let n=this.getElement(e);if(!n)return;let i=n.attributes.collapsed;ee(t)?i||o.set(e,t):i&&s.set(e,t)});let l=new Set;return o.forEach((e,i)=>{let r=n.getDescendantsData(i);r.forEach(e=>{let i=tt(e);if(l.has(i))return;lM(t,"remove","node",e);let r=n.getRelatedEdgesData(i);r.forEach(e=>{lM(t,"remove","edge",e)}),l.add(i)})}),s.forEach((e,i)=>{let r=n.getAncestorsData(i,H);if(r.some(ee)){lM(t,"remove","node",e);return}this.handleExpand(e,t)}),t}},"process-parallel-edges":ht,"get-edge-actual-ends":class extends lO{beforeDraw(t){let{add:e,update:n}=t,{model:i}=this.context;return[...e.edges.entries(),...n.edges.entries()].forEach(t=>{let[,e]=t;l9(i,e)}),t}}},shape:{circle:I.Cd,ellipse:I.Pj,group:I.ZA,html:I.k9,image:eG,line:I.x1,path:I.y$,polygon:I.mg,polyline:I.aH,rect:I.UL,text:I.xv,label:e_,badge:eF}};I.GZ.enableCSSParsing=!1,Object.entries(hr).forEach(t=>{let[e,n]=t;Object.entries(n).forEach(t=>{let[n,i]=t;!function(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=W[t][e];!i&&r?r!==n&&Y.warn("The extension ".concat(e," of ").concat(t," has been registered before.")):Object.assign(W[t],{[e]:n})}(e,n,i)})})},99397:function(t,e,n){"use strict";n.d(e,{P3:function(){return u}});var i=n(67294),r=i.createContext({graph:null,isReady:!1}),a=n(83007),o=function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0)&&!(i=a.next()).done;)o.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o},l=function(){return(l=Object.assign||function(t){for(var e,n=1,i=arguments.length;ne.indexOf(i)&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(t);re.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n},c=(0,i.forwardRef)(function(t,e){var n,c,u,d,p,f,g,y,m,v,b=t.style,x=t.children,E=(c=(n=h(t,["style","children"])).onInit,u=n.onReady,d=n.onDestroy,p=n.options,g=(f=s((0,i.useState)(!1),2))[0],y=f[1],m=(0,i.useRef)(null),v=(0,i.useRef)(null),(0,i.useEffect)(function(){if(!m.current&&v.current){var t=new a.kJ(o({container:v.current},p));return m.current=t,y(!0),null==c||c(m.current),function(){var t=m.current;t&&(t.destroy(),null==d||d(),m.current=null)}}},[]),(0,i.useEffect)(function(){var t=v.current,e=m.current;p&&t&&e&&!e.destroyed&&(e.setOptions(p),e.render().then(function(){return null==u?void 0:u(e)}))},[p]),{graph:m.current,containerRef:v,isReady:g}),w=E.graph,C=E.containerRef,S=E.isReady;(0,i.useImperativeHandle)(e,function(){return w},[w]);var R=l({height:"inherit",position:"relative"},b);return x?i.createElement(r.Provider,{value:{graph:w,isReady:S}},i.createElement("div",{ref:C,style:R},S&&x)):i.createElement("div",{ref:C,style:R})}),u=(0,i.memo)(c)},54375:function(t,e,n){"use strict";n.d(e,{Ud:function(){return u},Yy:function(){return a}});/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */let i=Symbol("Comlink.proxy"),r=Symbol("Comlink.endpoint"),a=Symbol("Comlink.releaseProxy"),o=Symbol("Comlink.finalizer"),s=Symbol("Comlink.thrown"),l=t=>"object"==typeof t&&null!==t||"function"==typeof t,h=new Map([["proxy",{canHandle:t=>l(t)&&t[i],serialize(t){let{port1:e,port2:n}=new MessageChannel;return function t(e,n=globalThis,r=["*"]){n.addEventListener("message",function a(l){let h;if(!l||!l.data)return;if(!function(t,e){for(let n of t)if(e===n||"*"===n||n instanceof RegExp&&n.test(e))return!0;return!1}(r,l.origin)){console.warn(`Invalid origin '${l.origin}' for comlink proxy`);return}let{id:u,type:d,path:p}=Object.assign({path:[]},l.data),f=(l.data.argumentList||[]).map(b);try{var g;let n=p.slice(0,-1).reduce((t,e)=>t[e],e),r=p.reduce((t,e)=>t[e],e);switch(d){case"GET":h=r;break;case"SET":n[p.slice(-1)[0]]=b(l.data.value),h=!0;break;case"APPLY":h=r.apply(n,f);break;case"CONSTRUCT":{let t=new r(...f);h=Object.assign(t,{[i]:!0})}break;case"ENDPOINT":{let{port1:n,port2:i}=new MessageChannel;t(e,i),g=[n],m.set(n,g),h=n}break;case"RELEASE":h=void 0;break;default:return}}catch(t){h={value:t,[s]:0}}Promise.resolve(h).catch(t=>({value:t,[s]:0})).then(t=>{let[i,r]=v(t);n.postMessage(Object.assign(Object.assign({},i),{id:u}),r),"RELEASE"===d&&(n.removeEventListener("message",a),c(n),o in e&&"function"==typeof e[o]&&e[o]())}).catch(t=>{let[e,i]=v({value:TypeError("Unserializable return value"),[s]:0});n.postMessage(Object.assign(Object.assign({},e),{id:u}),i)})}),n.start&&n.start()}(t,e),[n,[n]]},deserialize:t=>(t.start(),u(t))}],["throw",{canHandle:t=>l(t)&&s in t,serialize:({value:t})=>[t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[]],deserialize(t){if(t.isError)throw Object.assign(Error(t.value.message),t.value);throw t.value}}]]);function c(t){"MessagePort"===t.constructor.name&&t.close()}function u(t,e){return function t(e,n=[],i=function(){}){let o=!1,s=new Proxy(i,{get(i,r){if(d(o),r===a)return()=>{g&&g.unregister(s),p(e),o=!0};if("then"===r){if(0===n.length)return{then:()=>s};let t=x(e,{type:"GET",path:n.map(t=>t.toString())}).then(b);return t.then.bind(t)}return t(e,[...n,r])},set(t,i,r){d(o);let[a,s]=v(r);return x(e,{type:"SET",path:[...n,i].map(t=>t.toString()),value:a},s).then(b)},apply(i,a,s){d(o);let l=n[n.length-1];if(l===r)return x(e,{type:"ENDPOINT"}).then(b);if("bind"===l)return t(e,n.slice(0,-1));let[h,c]=y(s);return x(e,{type:"APPLY",path:n.map(t=>t.toString()),argumentList:h},c).then(b)},construct(t,i){d(o);let[r,a]=y(i);return x(e,{type:"CONSTRUCT",path:n.map(t=>t.toString()),argumentList:r},a).then(b)}});return!function(t,e){let n=(f.get(e)||0)+1;f.set(e,n),g&&g.register(t,e,t)}(s,e),s}(t,[],e)}function d(t){if(t)throw Error("Proxy has been released and is not useable")}function p(t){return x(t,{type:"RELEASE"}).then(()=>{c(t)})}let f=new WeakMap,g="FinalizationRegistry"in globalThis&&new FinalizationRegistry(t=>{let e=(f.get(t)||0)-1;f.set(t,e),0===e&&p(t)});function y(t){var e;let n=t.map(v);return[n.map(t=>t[0]),(e=n.map(t=>t[1]),Array.prototype.concat.apply([],e))]}let m=new WeakMap;function v(t){for(let[e,n]of h)if(n.canHandle(t)){let[i,r]=n.serialize(t);return[{type:"HANDLER",name:e,value:i},r]}return[{type:"RAW",value:t},m.get(t)||[]]}function b(t){switch(t.type){case"HANDLER":return h.get(t.name).deserialize(t.value);case"RAW":return t.value}}function x(t,e,n){return new Promise(i=>{let r=[,,,,].fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");t.addEventListener("message",function e(n){n.data&&n.data.id&&n.data.id===r&&(t.removeEventListener("message",e),i(n.data))}),t.start&&t.start(),t.postMessage(Object.assign({id:r},e),n)})}}}]); \ No newline at end of file diff --git a/dbgpt/app/static/web/_next/static/chunks/5592-8a15450259f82164.js b/dbgpt/app/static/web/_next/static/chunks/5592-8dc805e9681b81e3.js similarity index 100% rename from dbgpt/app/static/web/_next/static/chunks/5592-8a15450259f82164.js rename to dbgpt/app/static/web/_next/static/chunks/5592-8dc805e9681b81e3.js diff --git a/dbgpt/app/static/web/_next/static/chunks/5706-1f56d612c78af955.js b/dbgpt/app/static/web/_next/static/chunks/5706-956f2518fcce6be2.js similarity index 100% rename from dbgpt/app/static/web/_next/static/chunks/5706-1f56d612c78af955.js rename to dbgpt/app/static/web/_next/static/chunks/5706-956f2518fcce6be2.js diff --git a/dbgpt/app/static/web/_next/static/chunks/5717-371108bec35a88cc.js b/dbgpt/app/static/web/_next/static/chunks/5717-30366cfbe0962925.js similarity index 100% rename from dbgpt/app/static/web/_next/static/chunks/5717-371108bec35a88cc.js rename to dbgpt/app/static/web/_next/static/chunks/5717-30366cfbe0962925.js diff --git a/dbgpt/app/static/web/_next/static/chunks/6388-48677aedc5adc747.js b/dbgpt/app/static/web/_next/static/chunks/6388-3308b989f8a5ea15.js similarity index 100% rename from dbgpt/app/static/web/_next/static/chunks/6388-48677aedc5adc747.js rename to dbgpt/app/static/web/_next/static/chunks/6388-3308b989f8a5ea15.js diff --git a/dbgpt/app/static/web/_next/static/chunks/7249-c89afc738df4be8e.js b/dbgpt/app/static/web/_next/static/chunks/7249-c89afc738df4be8e.js new file mode 100644 index 000000000..47d43a8df --- /dev/null +++ b/dbgpt/app/static/web/_next/static/chunks/7249-c89afc738df4be8e.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7249],{98978:function(e,t,a){"use strict";var l=a(85893),s=a(25675),n=a.n(s);t.Z=function(e){let{src:t,label:a,width:s,height:r,className:i}=e;return(0,l.jsx)(n(),{className:"w-11 h-11 rounded-full mr-4 border border-gray-200 object-contain bg-white ".concat(i),width:s||44,height:r||44,src:t,alt:a||"db-icon"})}},43446:function(e,t,a){"use strict";var l=a(41468),s=a(64371),n=a(62418),r=a(25519),i=a(1375),o=a(45360),c=a(67294),d=a(83454);t.Z=e=>{let{queryAgentURL:t="/api/v1/chat/completions",app_code:a}=e,[u,m]=(0,c.useState)({}),{scene:p}=(0,c.useContext)(l.p),x=(0,c.useCallback)(async e=>{let{data:l,chatId:c,onMessage:u,onClose:x,onDone:h,onError:f,ctrl:v}=e;if(v&&m(v),!(null==l?void 0:l.user_input)&&!(null==l?void 0:l.doc_id)){o.ZP.warning(s.Z.t("no_context_tip"));return}let g={...l,conv_uid:c,app_code:a};try{var _,j;await (0,i.L)("".concat(null!==(_=d.env.API_BASE_URL)&&void 0!==_?_:"").concat(t),{method:"POST",headers:{"Content-Type":"application/json",[r.gp]:null!==(j=(0,n.n5)())&&void 0!==j?j:""},body:JSON.stringify(g),signal:v?v.signal:null,openWhenHidden:!0,async onopen(e){e.ok&&e.headers.get("content-type")===i.a||"application/json"!==e.headers.get("content-type")||e.json().then(e=>{null==u||u(e),null==h||h(),v&&v.abort()})},onclose(){v&&v.abort(),null==x||x()},onerror(e){throw Error(e)},onmessage:e=>{let t=e.data;try{t="chat_agent"===p?JSON.parse(t).vis:JSON.parse(t)}catch(e){t.replaceAll("\\n","\n")}"string"==typeof t?"[DONE]"===t?null==h||h():(null==t?void 0:t.startsWith("[ERROR]"))?null==f||f(null==t?void 0:t.replace("[ERROR]","")):null==u||u(t):(null==u||u(t),null==h||h())}})}catch(e){v&&v.abort(),null==f||f("Sorry, We meet some error, please try agin later.",e)}},[t,a,p]);return{chat:x,ctrl:u}}},91467:function(e,t,a){"use strict";a.d(t,{TH:function(){return h},ZS:function(){return f}});var l=a(85893),s=a(89705),n=a(83062),r=a(96074),i=a(45030),o=a(85418),c=a(93967),d=a.n(c),u=a(36609),m=a(25675),p=a.n(m);a(67294);var x=a(48218);a(11873);let h=e=>{let{onClick:t,Icon:a="/pictures/card_chat.png",text:s=(0,u.t)("start_chat")}=e;return"string"==typeof a&&(a=(0,l.jsx)(p(),{src:a,alt:a,width:17,height:15})),(0,l.jsxs)("div",{className:"flex items-center gap-1 text-default",onClick:e=>{e.stopPropagation(),t&&t()},children:[a,(0,l.jsx)("span",{children:s})]})},f=e=>{let{menu:t}=e;return(0,l.jsx)(o.Z,{menu:t,getPopupContainer:e=>e.parentNode,placement:"bottomRight",autoAdjustOverflow:!1,children:(0,l.jsx)(s.Z,{className:"p-2 hover:bg-white hover:dark:bg-black rounded-md"})})};t.ZP=e=>{let{RightTop:t,Tags:a,LeftBottom:s,RightBottom:o,onClick:c,rightTopHover:u=!0,logo:m,name:h,description:f,className:v,scene:g,code:_}=e;return"string"==typeof f&&(f=(0,l.jsx)("p",{className:"line-clamp-2 relative bottom-4 text-ellipsis min-h-[42px] text-sm text-[#525964] dark:text-[rgba(255,255,255,0.65)]",children:f})),(0,l.jsx)("div",{className:d()("hover-underline-gradient flex justify-center mt-6 relative group w-1/3 px-2 mb-6",v),children:(0,l.jsxs)("div",{onClick:c,className:"backdrop-filter backdrop-blur-lg cursor-pointer bg-white bg-opacity-70 border-2 border-white rounded-lg shadow p-4 relative w-full h-full dark:border-[#6f7f95] dark:bg-[#6f7f95] dark:bg-opacity-60",children:[(0,l.jsxs)("div",{className:"flex items-end relative bottom-8 justify-between w-full",children:[(0,l.jsxs)("div",{className:"flex items-end gap-4 w-11/12 flex-1",children:[(0,l.jsx)("div",{className:"bg-white rounded-lg shadow-sm w-14 h-14 flex items-center p-3",children:g?(0,l.jsx)(x.Z,{scene:g,width:14,height:14}):m&&(0,l.jsx)(p(),{src:m,width:44,height:44,alt:h,className:"w-8 min-w-8 rounded-full max-w-none"})}),(0,l.jsx)("div",{className:"flex-1",children:h.length>6?(0,l.jsx)(n.Z,{title:h,children:(0,l.jsx)("span",{className:"line-clamp-1 text-ellipsis font-semibold text-base",style:{maxWidth:"60%"},children:h})}):(0,l.jsx)("span",{className:"line-clamp-1 text-ellipsis font-semibold text-base",style:{maxWidth:"60%"},children:h})})]}),(0,l.jsx)("span",{className:d()("shrink-0",{hidden:u,"group-hover:block":u}),onClick:e=>{e.stopPropagation()},children:t})]}),f,(0,l.jsx)("div",{className:"relative bottom-2",children:a}),(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)("div",{children:s}),(0,l.jsx)("div",{children:o})]}),_&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.Z,{className:"my-3"}),(0,l.jsx)(i.Z.Text,{copyable:!0,className:"absolute bottom-1 right-4 text-xs text-gray-500",children:_})]})]})})}},57249:function(e,t,a){"use strict";a.r(t),a.d(t,{ChatContentContext:function(){return eP},default:function(){return eM}});var l=a(85893),s=a(41468),n=a(76212),r=a(43446),i=a(50888),o=a(90598),c=a(75750),d=a(58638),u=a(45360),m=a(66309),p=a(45030),x=a(74330),h=a(20640),f=a.n(h),v=a(67294),g=a(67421),_=a(65654),j=a(48218);let b=["magenta","orange","geekblue","purple","cyan","green"];var w=e=>{var t,a,s,r,h,w;let{isScrollToTop:y}=e,{appInfo:N,refreshAppInfo:k,handleChat:Z,scrollRef:S,temperatureValue:C,resourceValue:P,currentDialogue:M}=(0,v.useContext)(eP),{t:V}=(0,g.$G)(),R=(0,v.useMemo)(()=>{var e;return(null==N?void 0:null===(e=N.team_context)||void 0===e?void 0:e.chat_scene)||"chat_agent"},[N]),T=(0,v.useMemo)(()=>(null==N?void 0:N.is_collected)==="true",[N]),{run:L,loading:O}=(0,_.Z)(async()=>{let[e]=await (0,n.Vx)(T?(0,n.gD)({app_code:N.app_code}):(0,n.mo)({app_code:N.app_code}));if(!e)return await k()},{manual:!0}),z=(0,v.useMemo)(()=>{var e;return(null===(e=N.param_need)||void 0===e?void 0:e.map(e=>e.type))||[]},[N.param_need]);if(!Object.keys(N).length)return null;let E=async()=>{let e=f()(location.href);u.ZP[e?"success":"error"](e?V("copy_success"):V("copy_failed"))};return(0,l.jsx)("div",{className:"h-20 mt-6 ".concat((null==N?void 0:N.recommend_questions)&&(null==N?void 0:null===(t=N.recommend_questions)||void 0===t?void 0:t.length)>0?"mb-6":""," sticky top-0 bg-transparent z-30 transition-all duration-400 ease-in-out"),children:y?(0,l.jsxs)("header",{className:"flex items-center justify-between w-full h-14 bg-[#ffffffb7] dark:bg-[rgba(41,63,89,0.4)] px-8 transition-all duration-500 ease-in-out",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("div",{className:"flex items-center justify-center w-8 h-8 rounded-lg mr-2 bg-white",children:(0,l.jsx)(j.Z,{scene:R})}),(0,l.jsxs)("div",{className:"flex items-center text-base text-[#1c2533] dark:text-[rgba(255,255,255,0.85)] font-semibold gap-2",children:[(0,l.jsx)("span",{children:null==N?void 0:N.app_name}),(0,l.jsxs)("div",{className:"flex gap-1",children:[(null==N?void 0:N.team_mode)&&(0,l.jsx)(m.Z,{color:"green",children:null==N?void 0:N.team_mode}),(null==N?void 0:null===(a=N.team_context)||void 0===a?void 0:a.chat_scene)&&(0,l.jsx)(m.Z,{color:"cyan",children:null==N?void 0:null===(s=N.team_context)||void 0===s?void 0:s.chat_scene})]})]})]}),(0,l.jsxs)("div",{className:"flex gap-8",onClick:async()=>{await L()},children:[O?(0,l.jsx)(x.Z,{spinning:O,indicator:(0,l.jsx)(i.Z,{style:{fontSize:24},spin:!0})}):(0,l.jsx)(l.Fragment,{children:T?(0,l.jsx)(o.Z,{style:{fontSize:18},className:"text-yellow-400 cursor-pointer"}):(0,l.jsx)(c.Z,{style:{fontSize:18,cursor:"pointer"}})}),(0,l.jsx)(d.Z,{className:"text-lg",onClick:e=>{e.stopPropagation(),E()}})]})]}):(0,l.jsxs)("header",{className:"flex items-center justify-between w-5/6 h-full px-6 bg-[#ffffff99] border dark:bg-[rgba(255,255,255,0.1)] dark:border-[rgba(255,255,255,0.1)] rounded-2xl mx-auto transition-all duration-400 ease-in-out relative",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("div",{className:"flex w-12 h-12 justify-center items-center rounded-xl mr-4 bg-white",children:(0,l.jsx)(j.Z,{scene:R,width:16,height:16})}),(0,l.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,l.jsxs)("div",{className:"flex items-center text-base text-[#1c2533] dark:text-[rgba(255,255,255,0.85)] font-semibold gap-2",children:[(0,l.jsx)("span",{children:null==N?void 0:N.app_name}),(0,l.jsxs)("div",{className:"flex gap-1",children:[(null==N?void 0:N.team_mode)&&(0,l.jsx)(m.Z,{color:"green",children:null==N?void 0:N.team_mode}),(null==N?void 0:null===(r=N.team_context)||void 0===r?void 0:r.chat_scene)&&(0,l.jsx)(m.Z,{color:"cyan",children:null==N?void 0:null===(h=N.team_context)||void 0===h?void 0:h.chat_scene})]})]}),(0,l.jsx)(p.Z.Text,{className:"text-sm text-[#525964] dark:text-[rgba(255,255,255,0.65)] leading-6",ellipsis:{tooltip:!0},children:null==N?void 0:N.app_describe})]})]}),(0,l.jsxs)("div",{className:"flex items-center gap-4",children:[(0,l.jsx)("div",{onClick:async()=>{await L()},className:"flex items-center justify-center w-10 h-10 bg-[#ffffff99] dark:bg-[rgba(255,255,255,0.2)] border border-white dark:border-[rgba(255,255,255,0.2)] rounded-[50%] cursor-pointer",children:O?(0,l.jsx)(x.Z,{spinning:O,indicator:(0,l.jsx)(i.Z,{style:{fontSize:24},spin:!0})}):(0,l.jsx)(l.Fragment,{children:T?(0,l.jsx)(o.Z,{style:{fontSize:18},className:"text-yellow-400 cursor-pointer"}):(0,l.jsx)(c.Z,{style:{fontSize:18,cursor:"pointer"}})})}),(0,l.jsx)("div",{onClick:E,className:"flex items-center justify-center w-10 h-10 bg-[#ffffff99] dark:bg-[rgba(255,255,255,0.2)] border border-white dark:border-[rgba(255,255,255,0.2)] rounded-[50%] cursor-pointer",children:(0,l.jsx)(d.Z,{className:"text-lg"})})]}),!!(null==N?void 0:null===(w=N.recommend_questions)||void 0===w?void 0:w.length)&&(0,l.jsxs)("div",{className:"absolute bottom-[-40px] left-0",children:[(0,l.jsx)("span",{className:"text-sm text-[#525964] dark:text-[rgba(255,255,255,0.65)] leading-6",children:"或许你想问:"}),N.recommend_questions.map((e,t)=>(0,l.jsx)(m.Z,{color:b[t],className:"text-xs p-1 px-2 cursor-pointer",onClick:async()=>{Z((null==e?void 0:e.question)||"",{app_code:N.app_code,...z.includes("temperature")&&{temperature:C},...z.includes("resource")&&{select_param:"string"==typeof P?P:JSON.stringify(P)||M.select_param}}),setTimeout(()=>{var e,t;null===(e=S.current)||void 0===e||e.scrollTo({top:null===(t=S.current)||void 0===t?void 0:t.scrollHeight,behavior:"smooth"})},0)},children:e.question},e.id))]})]})})},y=a(5152),N=a.n(y);let k=N()(()=>Promise.all([a.e(3662),a.e(7034),a.e(6106),a.e(8674),a.e(3166),a.e(2837),a.e(2168),a.e(8163),a.e(2398),a.e(1300),a.e(4567),a.e(9773),a.e(4035),a.e(152),a.e(4705),a.e(9202),a.e(3764),a.e(5e3),a.e(6216),a.e(8709),a.e(3913),a.e(4434),a.e(9958)]).then(a.bind(a,88331)),{loadableGenerated:{webpack:()=>[88331]},ssr:!1});var Z=(0,v.forwardRef)((e,t)=>{let{}=e,a=(0,v.useRef)(null),[s,n]=(0,v.useState)(!1);return(0,v.useImperativeHandle)(t,()=>a.current),(0,v.useEffect)(()=>(a.current&&a.current.addEventListener("scroll",()=>{var e;let t=(null===(e=a.current)||void 0===e?void 0:e.scrollTop)||0;t>=74?n(!0):n(!1)}),()=>{a.current&&a.current.removeEventListener("scroll",()=>{})}),[]),(0,l.jsx)("div",{className:"flex flex-1 overflow-hidden",children:(0,l.jsxs)("div",{ref:a,className:"h-full w-full mx-auto overflow-y-auto",children:[(0,l.jsx)(w,{isScrollToTop:s}),(0,l.jsx)(k,{})]})})}),S=a(89546),C=a(91467),P=a(7134),M=a(32983),V=a(25675),R=a.n(V),T=a(11163),L=a(70065),O=e=>{let{apps:t,refresh:a,loading:r,type:i}=e,d=async e=>{let[t]=await (0,n.Vx)("true"===e.is_collected?(0,n.gD)({app_code:e.app_code}):(0,n.mo)({app_code:e.app_code}));t||a()},{setAgent:u,model:m,setCurrentDialogInfo:p}=(0,v.useContext)(s.p),h=(0,T.useRouter)(),f=async e=>{if("native_app"===e.team_mode){let{chat_scene:t=""}=e.team_context,[,a]=await (0,n.Vx)((0,n.sW)({chat_mode:t}));a&&(null==p||p({chat_scene:a.chat_mode,app_code:e.app_code}),localStorage.setItem("cur_dialog_info",JSON.stringify({chat_scene:a.chat_mode,app_code:e.app_code})),h.push("/chat?scene=".concat(t,"&id=").concat(a.conv_uid).concat(m?"&model=".concat(m):"")))}else{let[,t]=await (0,n.Vx)((0,n.sW)({chat_mode:"chat_agent"}));t&&(null==p||p({chat_scene:t.chat_mode,app_code:e.app_code}),localStorage.setItem("cur_dialog_info",JSON.stringify({chat_scene:t.chat_mode,app_code:e.app_code})),null==u||u(e.app_code),h.push("/chat/?scene=chat_agent&id=".concat(t.conv_uid).concat(m?"&model=".concat(m):"")))}};return r?(0,l.jsx)(x.Z,{size:"large",className:"flex items-center justify-center h-full",spinning:r}):(0,l.jsx)("div",{className:"flex flex-wrap mt-4 w-full overflow-y-auto ",children:(null==t?void 0:t.length)>0?t.map(e=>{var t;return(0,l.jsx)(C.ZP,{name:e.app_name,description:e.app_describe,onClick:()=>f(e),RightTop:"true"===e.is_collected?(0,l.jsx)(o.Z,{onClick:t=>{t.stopPropagation(),d(e)},style:{height:"21px",cursor:"pointer",color:"#f9c533"}}):(0,l.jsx)(c.Z,{onClick:t=>{t.stopPropagation(),d(e)},style:{height:"21px",cursor:"pointer"}}),LeftBottom:(0,l.jsxs)("div",{className:"flex gap-8 items-center text-gray-500 text-sm",children:[e.owner_name&&(0,l.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,l.jsx)(P.C,{src:null==e?void 0:e.owner_avatar_url,className:"bg-gradient-to-tr from-[#31afff] to-[#1677ff] cursor-pointer",children:e.owner_name}),(0,l.jsx)("span",{children:e.owner_name})]}),"used"!==i&&(0,l.jsxs)("div",{className:"flex items-start gap-1",children:[(0,l.jsx)(L.Z,{type:"icon-hot",className:"text-lg"}),(0,l.jsx)("span",{className:"text-[#878c93]",children:e.hot_value})]})]}),scene:(null==e?void 0:null===(t=e.team_context)||void 0===t?void 0:t.chat_scene)||"chat_agent"},e.app_code)}):(0,l.jsx)(M.Z,{image:(0,l.jsx)(R(),{src:"/pictures/empty.png",alt:"empty",width:142,height:133,className:"w-[142px] h-[133px]"}),className:"flex justify-center items-center w-full h-full min-h-[200px]"})})},z=a(62418),E=a(25278),A=a(14726),D=a(93967),G=a.n(D),J=function(){let{setCurrentDialogInfo:e}=(0,v.useContext)(s.p),{t}=(0,g.$G)(),a=(0,T.useRouter)(),[r,i]=(0,v.useState)(""),[o,c]=(0,v.useState)(!1),[d,u]=(0,v.useState)(!1),m=async()=>{let[,t]=await (0,n.Vx)((0,n.sW)({chat_mode:"chat_normal"}));t&&(null==e||e({chat_scene:t.chat_mode,app_code:t.chat_mode}),localStorage.setItem("cur_dialog_info",JSON.stringify({chat_scene:t.chat_mode,app_code:t.chat_mode})),localStorage.setItem(z.rU,JSON.stringify({id:t.conv_uid,message:r})),a.push("/chat/?scene=chat_normal&id=".concat(t.conv_uid))),i("")};return(0,l.jsxs)("div",{className:"flex flex-1 h-12 p-2 pl-4 items-center justify-between bg-white dark:bg-[#242733] dark:border-[#6f7f95] rounded-xl border-t border-b border-l border-r ".concat(o?"border-[#0c75fc]":""),children:[(0,l.jsx)(E.default.TextArea,{placeholder:t("input_tips"),className:"w-full resize-none border-0 p-0 focus:shadow-none",value:r,autoSize:{minRows:1},onKeyDown:e=>{"Enter"===e.key&&!e.shiftKey&&!d&&(e.preventDefault(),r.trim()&&m())},onChange:e=>{i(e.target.value)},onFocus:()=>{c(!0)},onBlur:()=>c(!1),onCompositionStart:()=>u(!0),onCompositionEnd:()=>u(!1)}),(0,l.jsx)(A.ZP,{type:"primary",className:G()("flex items-center justify-center w-14 h-8 rounded-lg text-sm bg-button-gradient border-0",{"opacity-40 cursor-not-allowed":!r.trim()}),onClick:()=>{r.trim()&&m()},children:t("sent")})]})},W=a(28459),I=a(92783),$=a(36609),q=function(){let{setCurrentDialogInfo:e,model:t}=(0,v.useContext)(s.p),a=(0,T.useRouter)(),[r,i]=(0,v.useState)({app_list:[],total_count:0}),[o,c]=(0,v.useState)("recommend"),d=e=>(0,n.Vx)((0,n.yk)({...e,page_no:"1",page_size:"6"})),u=e=>(0,n.Vx)((0,n.mW)({page_no:"1",page_size:"6",...e})),{run:m,loading:p,refresh:x}=(0,_.Z)(async e=>{switch(o){case"recommend":return await u({});case"used":return await d({is_recent_used:"true",need_owner_info:"true",...e&&{app_name:e}});default:return[]}},{manual:!0,onSuccess:e=>{let[t,a]=e;if("recommend"===o)return i({app_list:a,total_count:(null==a?void 0:a.length)||0});i(a||{})},debounceWait:500});(0,v.useEffect)(()=>{m()},[o,m]);let h=[{value:"recommend",label:(0,$.t)("recommend_apps")},{value:"used",label:(0,$.t)("used_apps")}],{data:f}=(0,_.Z)(async()=>{let[,e]=await (0,n.Vx)((0,S.A)({is_hot_question:"true"}));return null!=e?e:[]});return(0,l.jsx)(W.ZP,{theme:{components:{Button:{defaultBorderColor:"white"},Segmented:{itemSelectedBg:"#2867f5",itemSelectedColor:"white"}}},children:(0,l.jsxs)("div",{className:"px-28 py-10 h-full flex flex-col justify-between",children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)(I.Z,{className:"backdrop-filter h-10 backdrop-blur-lg bg-white bg-opacity-30 border border-white rounded-lg shadow p-1 dark:border-[#6f7f95] dark:bg-[#6f7f95] dark:bg-opacity-60",options:h,value:o,onChange:e=>{c(e)}}),(0,l.jsxs)("span",{className:"flex items-center text-gray-500 gap-1 dark:text-slate-300",children:[(0,l.jsx)("span",{children:(0,$.t)("app_in_mind")}),(0,l.jsxs)("span",{className:"flex items-center cursor-pointer",onClick:()=>{a.push("/")},children:[(0,l.jsx)(R(),{src:"/pictures/explore_active.png",alt:"construct_image",width:24,height:24},"image_explore"),(0,l.jsx)("span",{className:"text-default",children:(0,$.t)("explore")})]}),(0,l.jsx)("span",{children:(0,$.t)("Discover_more")})]})]}),(0,l.jsx)(O,{apps:(null==r?void 0:r.app_list)||[],loading:p,refresh:x,type:o}),f&&f.length>0&&(0,l.jsxs)("div",{children:[(0,l.jsx)("h2",{className:"font-medium text-xl my-4",children:(0,$.t)("help")}),(0,l.jsx)("div",{className:"flex justify-start gap-4",children:f.map(s=>(0,l.jsxs)("span",{className:"flex gap-4 items-center backdrop-filter backdrop-blur-lg cursor-pointer bg-white bg-opacity-70 border-0 rounded-lg shadow p-2 relative dark:bg-[#6f7f95] dark:bg-opacity-60",onClick:async()=>{let[,l]=await (0,n.Vx)((0,n.sW)({chat_mode:"chat_knowledge",model:t}));l&&(null==e||e({chat_scene:l.chat_mode,app_code:s.app_code}),localStorage.setItem("cur_dialog_info",JSON.stringify({chat_scene:l.chat_mode,app_code:s.app_code})),localStorage.setItem(z.rU,JSON.stringify({id:l.conv_uid,message:s.question})),a.push("/chat/?scene=".concat(l.chat_mode,"&id=").concat(null==l?void 0:l.conv_uid)))},children:[(0,l.jsx)("span",{children:s.question}),(0,l.jsx)(R(),{src:"/icons/send.png",alt:"construct_image",width:20,height:20},"image_explore")]},s.id))})]})]}),(0,l.jsx)("div",{children:(0,l.jsx)(J,{})})]})})},F=a(39332),B=a(30159),H=a(87740),U=a(52645),K=a(83062),X=a(11186),Y=a(55241),Q=a(30568),ee=a(13457),et=(0,v.memo)(e=>{let{maxNewTokensValue:t,setMaxNewTokensValue:a}=e,{appInfo:s}=(0,v.useContext)(eP),{t:n}=(0,g.$G)(),r=(0,v.useMemo)(()=>{var e;return(null===(e=s.param_need)||void 0===e?void 0:e.map(e=>e.type))||[]},[s.param_need]);if(!r.includes("max_new_tokens"))return(0,l.jsx)(K.Z,{title:n("max_new_tokens_tip"),children:(0,l.jsx)("div",{className:"flex w-8 h-8 items-center justify-center rounded-md hover:bg-[rgb(221,221,221,0.6)] cursor-pointer",children:(0,l.jsx)(X.Z,{className:"text-xl cursor-not-allowed opacity-30"})})});let i=e=>{null===e||isNaN(e)||a(e)},o=e=>{a(e)};return(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(Y.Z,{arrow:!1,trigger:["click"],placement:"topLeft",content:()=>(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(Q.Z,{className:"w-32",min:1,max:20480,step:1,onChange:o,value:"number"==typeof t?t:2048}),(0,l.jsx)(ee.Z,{size:"small",className:"w-20",min:1,max:20480,step:1,onChange:i,value:t})]}),children:(0,l.jsx)(K.Z,{title:n("max_new_tokens"),placement:"bottom",arrow:!1,children:(0,l.jsx)("div",{className:"flex w-8 h-8 items-center justify-center rounded-md hover:bg-[rgb(221,221,221,0.6)] cursor-pointer",children:(0,l.jsx)(X.Z,{})})})}),(0,l.jsx)("span",{className:"text-sm ml-2",children:t})]})}),ea=a(42952),el=a(34041),es=a(39718),en=(0,v.memo)(()=>{let{modelList:e}=(0,v.useContext)(s.p),{appInfo:t,modelValue:a,setModelValue:n}=(0,v.useContext)(eP),{t:r}=(0,g.$G)(),i=(0,v.useMemo)(()=>{var e;return(null===(e=t.param_need)||void 0===e?void 0:e.map(e=>e.type))||[]},[t.param_need]);return i.includes("model")?(0,l.jsx)(el.default,{value:a,placeholder:r("choose_model"),className:"h-8 rounded-3xl",onChange:e=>{n(e)},popupMatchSelectWidth:300,children:e.map(e=>(0,l.jsx)(el.default.Option,{children:(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(es.Z,{model:e}),(0,l.jsx)("span",{className:"ml-2",children:e})]})},e))}):(0,l.jsx)(K.Z,{title:r("model_tip"),children:(0,l.jsx)("div",{className:"flex w-8 h-8 items-center justify-center rounded-md hover:bg-[rgb(221,221,221,0.6)]",children:(0,l.jsx)(ea.Z,{className:"text-xl cursor-not-allowed opacity-30"})})})}),er=a(98978),ei=a(90725),eo=a(83266),ec=a(2093),ed=a(23799),eu=(0,v.memo)(e=>{var t,a,s,r,i;let{fileList:o,setFileList:c,setLoading:d,fileName:u}=e,{setResourceValue:m,appInfo:p,refreshHistory:x,refreshDialogList:h,modelValue:f,resourceValue:j}=(0,v.useContext)(eP),b=(0,F.useSearchParams)(),w=null!==(t=null==b?void 0:b.get("scene"))&&void 0!==t?t:"",y=null!==(a=null==b?void 0:b.get("id"))&&void 0!==a?a:"",{t:N}=(0,g.$G)(),[k,Z]=(0,v.useState)([]),S=(0,v.useMemo)(()=>{var e;return(null===(e=p.param_need)||void 0===e?void 0:e.map(e=>e.type))||[]},[p.param_need]),C=(0,v.useMemo)(()=>{var e,t;return S.includes("resource")&&(null===(e=null===(t=p.param_need)||void 0===t?void 0:t.filter(e=>"resource"===e.type)[0])||void 0===e?void 0:e.value)==="database"},[p.param_need,S]),P=(0,v.useMemo)(()=>{var e,t;return S.includes("resource")&&(null===(e=null===(t=p.param_need)||void 0===t?void 0:t.filter(e=>"resource"===e.type)[0])||void 0===e?void 0:e.value)==="knowledge"},[p.param_need,S]),M=(0,v.useMemo)(()=>{var e;return null===(e=p.param_need)||void 0===e?void 0:e.find(e=>"resource"===e.type)},[p.param_need]),{run:V,loading:R}=(0,_.Z)(async()=>await (0,n.Vx)((0,n.vD)(w)),{manual:!0,onSuccess:e=>{let[,t]=e;Z(null!=t?t:[])}});(0,ec.Z)(async()=>{(C||P)&&!(null==M?void 0:M.bind_value)&&await V()},[C,P,M]);let T=(0,v.useMemo)(()=>{var e;return null===(e=k.map)||void 0===e?void 0:e.call(k,e=>({label:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(er.Z,{width:24,height:24,src:z.S$[e.type].icon,label:z.S$[e.type].label,className:"w-[1.5em] h-[1.5em] mr-1 inline-block mt-[-4px]"}),e.param]}),value:e.param}))},[k]),L=(0,v.useCallback)(async()=>{let e=new FormData;e.append("doc_file",null==o?void 0:o[0]),d(!0);let[t,a]=await (0,n.Vx)((0,n.qn)({convUid:y,chatMode:w,data:e,model:f,config:{timeout:36e5}})).finally(()=>{d(!1)});a&&(m(a),await x(),await h())},[y,o,f,h,x,w,d,m]);if(!S.includes("resource"))return(0,l.jsx)(K.Z,{title:N("extend_tip"),children:(0,l.jsx)("div",{className:"flex w-8 h-8 items-center justify-center rounded-md hover:bg-[rgb(221,221,221,0.6)]",children:(0,l.jsx)(ei.Z,{className:"text-lg cursor-not-allowed opacity-30"})})});switch(null==M?void 0:M.value){case"excel_file":case"text_file":case"image_file":return(0,l.jsx)(ed.default,{name:"file",accept:".csv,.xlsx,.xls",fileList:o,showUploadList:!1,beforeUpload:(e,t)=>{null==c||c(t)},customRequest:L,disabled:!!u||!!(null===(s=o[0])||void 0===s?void 0:s.name),children:(0,l.jsx)(K.Z,{title:N("file_tip"),arrow:!1,placement:"bottom",children:(0,l.jsx)("div",{className:"flex w-8 h-8 items-center justify-center rounded-md hover:bg-[rgb(221,221,221,0.6)]",children:(0,l.jsx)(eo.Z,{className:G()("text-xl",{"cursor-pointer":!(u||(null===(r=o[0])||void 0===r?void 0:r.name))})})})})});case"database":case"knowledge":case"plugin":case"awel_flow":return j||m(null==T?void 0:null===(i=T[0])||void 0===i?void 0:i.value),(0,l.jsx)(el.default,{value:j,className:"w-52 h-8 rounded-3xl",onChange:e=>{m(e)},disabled:!!(null==M?void 0:M.bind_value),loading:R,options:T})}}),em=(0,v.memo)(e=>{let{temperatureValue:t,setTemperatureValue:a}=e,{appInfo:s}=(0,v.useContext)(eP),{t:n}=(0,g.$G)(),r=(0,v.useMemo)(()=>{var e;return(null===(e=s.param_need)||void 0===e?void 0:e.map(e=>e.type))||[]},[s.param_need]);if(!r.includes("temperature"))return(0,l.jsx)(K.Z,{title:n("temperature_tip"),children:(0,l.jsx)("div",{className:"flex w-8 h-8 items-center justify-center rounded-md hover:bg-[rgb(221,221,221,0.6)] cursor-pointer",children:(0,l.jsx)(X.Z,{className:"text-xl cursor-not-allowed opacity-30"})})});let i=e=>{isNaN(e)||a(e)};return(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(Y.Z,{arrow:!1,trigger:["click"],placement:"topLeft",content:()=>(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(Q.Z,{className:"w-20",min:0,max:1,step:.1,onChange:i,value:"number"==typeof t?t:0}),(0,l.jsx)(ee.Z,{size:"small",className:"w-14",min:0,max:1,step:.1,onChange:i,value:t})]}),children:(0,l.jsx)(K.Z,{title:n("temperature"),placement:"bottom",arrow:!1,children:(0,l.jsx)("div",{className:"flex w-8 h-8 items-center justify-center rounded-md hover:bg-[rgb(221,221,221,0.6)] cursor-pointer",children:(0,l.jsx)(X.Z,{})})})}),(0,l.jsx)("span",{className:"text-sm ml-2",children:t})]})}),ep=e=>{var t,a;let{ctrl:s}=e,{t:r}=(0,g.$G)(),{history:o,scrollRef:c,canAbort:d,replyLoading:u,currentDialogue:m,appInfo:p,temperatureValue:h,maxNewTokensValue:f,resourceValue:_,setTemperatureValue:j,setMaxNewTokensValue:b,refreshHistory:w,setCanAbort:y,setReplyLoading:N,handleChat:k}=(0,v.useContext)(eP),[Z,S]=(0,v.useState)([]),[C,P]=(0,v.useState)(!1),[M,V]=(0,v.useState)(!1),T=(0,v.useMemo)(()=>{var e;return(null===(e=p.param_need)||void 0===e?void 0:e.map(e=>e.type))||[]},[p.param_need]),L=(0,v.useMemo)(()=>[{tip:r("stop_replying"),icon:(0,l.jsx)(B.Z,{className:G()({"text-[#0c75fc]":d})}),can_use:d,key:"abort",onClick:()=>{d&&(s.abort(),setTimeout(()=>{y(!1),N(!1)},100))}},{tip:r("answer_again"),icon:(0,l.jsx)(H.Z,{}),can_use:!u&&o.length>0,key:"redo",onClick:async()=>{var e,t;let a=null===(e=null===(t=o.filter(e=>"human"===e.role))||void 0===t?void 0:t.slice(-1))||void 0===e?void 0:e[0];k((null==a?void 0:a.context)||"",{app_code:p.app_code,...T.includes("temperature")&&{temperature:h},...T.includes("max_new_tokens")&&{max_new_tokens:f},...T.includes("resource")&&{select_param:"string"==typeof _?_:JSON.stringify(_)||m.select_param}}),setTimeout(()=>{var e,t;null===(e=c.current)||void 0===e||e.scrollTo({top:null===(t=c.current)||void 0===t?void 0:t.scrollHeight,behavior:"smooth"})},0)}},{tip:r("erase_memory"),icon:M?(0,l.jsx)(x.Z,{spinning:M,indicator:(0,l.jsx)(i.Z,{style:{fontSize:20}})}):(0,l.jsx)(U.Z,{}),can_use:o.length>0,key:"clear",onClick:async()=>{M||(V(!0),await (0,n.Vx)((0,n.zR)(m.conv_uid)).finally(async()=>{await w(),V(!1)}))}}],[r,d,u,o,M,s,y,N,k,p.app_code,T,h,_,m.select_param,m.conv_uid,c,w]),O=(0,v.useMemo)(()=>{try{return JSON.parse(m.select_param).file_name}catch(e){return""}},[m.select_param]);return(0,l.jsxs)("div",{className:"flex flex-col mb-2",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between h-full w-full",children:[(0,l.jsxs)("div",{className:"flex gap-3 text-lg",children:[(0,l.jsx)(en,{}),(0,l.jsx)(eu,{fileList:Z,setFileList:S,setLoading:P,fileName:O}),(0,l.jsx)(em,{temperatureValue:h,setTemperatureValue:j}),(0,l.jsx)(et,{maxNewTokensValue:f,setMaxNewTokensValue:b})]}),(0,l.jsx)("div",{className:"flex gap-1",children:(0,l.jsx)(l.Fragment,{children:L.map(e=>(0,l.jsx)(K.Z,{title:e.tip,arrow:!1,placement:"bottom",children:(0,l.jsx)("div",{className:"flex w-8 h-8 items-center justify-center rounded-md hover:bg-[rgb(221,221,221,0.6)] text-lg ".concat(e.can_use?"cursor-pointer":"opacity-30 cursor-not-allowed"),onClick:()=>{var t;null===(t=e.onClick)||void 0===t||t.call(e)},children:e.icon})},e.key))})})]}),(O||(null===(t=Z[0])||void 0===t?void 0:t.name))&&(0,l.jsx)("div",{className:"group/item flex mt-2",children:(0,l.jsxs)("div",{className:"flex items-center justify-between w-64 border border-[#e3e4e6] dark:border-[rgba(255,255,255,0.6)] rounded-lg p-2",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(R(),{src:"/icons/chat/excel.png",width:20,height:20,alt:"file-icon",className:"mr-2"}),(0,l.jsx)("span",{className:"text-sm text-[#1c2533] dark:text-white line-clamp-1",children:O||(null===(a=Z[0])||void 0===a?void 0:a.name)})]}),(0,l.jsx)(x.Z,{spinning:C,indicator:(0,l.jsx)(i.Z,{style:{fontSize:24},spin:!0})})]})})]})},ex=e=>{var t;let{ctrl:a}=e,{t:s}=(0,g.$G)(),{scrollRef:n,replyLoading:r,handleChat:o,appInfo:c,currentDialogue:d,temperatureValue:u,maxNewTokensValue:m,resourceValue:p,refreshDialogList:h}=(0,v.useContext)(eP),f=(0,F.useSearchParams)(),_=null!==(t=null==f?void 0:f.get("select_param"))&&void 0!==t?t:"",[j,b]=(0,v.useState)(""),[w,y]=(0,v.useState)(!1),[N,k]=(0,v.useState)(!1),Z=(0,v.useRef)(0),S=(0,v.useMemo)(()=>{var e;return(null===(e=c.param_need)||void 0===e?void 0:e.map(e=>e.type))||[]},[c.param_need]),C=async()=>{Z.current++,setTimeout(()=>{var e,t;null===(e=n.current)||void 0===e||e.scrollTo({top:null===(t=n.current)||void 0===t?void 0:t.scrollHeight,behavior:"smooth"}),b("")},0),await o(j,{app_code:c.app_code||"",...S.includes("temperature")&&{temperature:u},...S.includes("max_new_tokens")&&{max_new_tokens:m},select_param:_,...S.includes("resource")&&{select_param:"string"==typeof p?p:JSON.stringify(p)||d.select_param}}),1===Z.current&&await h()};return(0,l.jsx)("div",{className:"flex flex-col w-5/6 mx-auto pt-4 pb-6 bg-transparent",children:(0,l.jsxs)("div",{className:"flex flex-1 flex-col bg-white dark:bg-[rgba(255,255,255,0.16)] px-5 py-4 pt-2 rounded-xl relative border-t border-b border-l border-r dark:border-[rgba(255,255,255,0.6)] ".concat(w?"border-[#0c75fc]":""),id:"input-panel",children:[(0,l.jsx)(ep,{ctrl:a}),(0,l.jsx)(E.default.TextArea,{placeholder:s("input_tips"),className:"w-full h-20 resize-none border-0 p-0 focus:shadow-none dark:bg-transparent",value:j,onKeyDown:e=>{"Enter"===e.key&&!e.shiftKey&&!N&&(e.preventDefault(),j.trim()&&!r&&C())},onChange:e=>{b(e.target.value)},onFocus:()=>{y(!0)},onBlur:()=>y(!1),onCompositionStart:()=>k(!0),onCompositionEnd:()=>k(!1)}),(0,l.jsx)(A.ZP,{type:"primary",className:G()("flex items-center justify-center w-14 h-8 rounded-lg text-sm absolute right-4 bottom-3 bg-button-gradient border-0",{"cursor-not-allowed":!j.trim()}),onClick:()=>{!r&&j.trim()&&C()},children:r?(0,l.jsx)(x.Z,{spinning:r,indicator:(0,l.jsx)(i.Z,{className:"text-white"})}):s("sent")})]})})},eh=a(20046),ef=a(48689),ev=a(14313),eg=a(94155),e_=a(21612),ej=a(85576),eb=a(86250);let{Sider:ew}=e_.default,ey={display:"flex",alignItems:"center",justifyContent:"center",width:16,height:48,position:"absolute",top:"50%",transform:"translateY(-50%)",border:"1px solid #d6d8da",borderRadius:8,right:-8},eN=e=>{var t,a;let{item:r,refresh:i,historyLoading:o}=e,{t:c}=(0,g.$G)(),d=(0,F.useRouter)(),m=(0,F.useSearchParams)(),x=null!==(t=null==m?void 0:m.get("id"))&&void 0!==t?t:"",h=null!==(a=null==m?void 0:m.get("scene"))&&void 0!==a?a:"",{setCurrentDialogInfo:_}=(0,v.useContext)(s.p),j=(0,v.useMemo)(()=>r.default?r.default&&!x&&!h:r.conv_uid===x&&r.chat_mode===h,[x,h,r]),b=()=>{ej.default.confirm({title:c("delete_chat"),content:c("delete_chat_confirm"),centered:!0,onOk:async()=>{let[e]=await (0,n.Vx)((0,n.MX)(r.conv_uid));e||(await (null==i?void 0:i()),r.conv_uid===x&&d.push("/chat"))}})};return(0,l.jsxs)(eb.Z,{align:"center",className:"group/item w-full h-12 p-3 rounded-lg hover:bg-white dark:hover:bg-theme-dark cursor-pointer mb-2 relative ".concat(j?"bg-white dark:bg-theme-dark bg-opacity-100":""),onClick:()=>{o||(r.default||null==_||_({chat_scene:r.chat_mode,app_code:r.app_code}),localStorage.setItem("cur_dialog_info",JSON.stringify({chat_scene:r.chat_mode,app_code:r.app_code})),d.push(r.default?"/chat":"?scene=".concat(r.chat_mode,"&id=").concat(r.conv_uid)))},children:[(0,l.jsx)(K.Z,{title:r.chat_mode,children:(0,l.jsx)("div",{className:"flex items-center justify-center w-8 h-8 rounded-lg mr-3 bg-white",children:r.icon})}),(0,l.jsx)("div",{className:"flex flex-1 line-clamp-1",children:(0,l.jsx)(p.Z.Text,{ellipsis:{tooltip:!0},children:r.label})}),!r.default&&(0,l.jsxs)("div",{className:"flex gap-1 ml-1",children:[(0,l.jsx)("div",{className:"group-hover/item:opacity-100 cursor-pointer opacity-0",onClick:e=>{e.stopPropagation()},children:(0,l.jsx)(eh.Z,{style:{fontSize:16},onClick:()=>{let e=f()("".concat(location.origin,"/chat?scene=").concat(r.chat_mode,"&id=").concat(r.conv_uid));u.ZP[e?"success":"error"](e?c("copy_success"):c("copy_failed"))}})}),(0,l.jsx)("div",{className:"group-hover/item:opacity-100 cursor-pointer opacity-0",onClick:e=>{e.stopPropagation(),b()},children:(0,l.jsx)(ef.Z,{style:{fontSize:16}})})]}),(0,l.jsx)("div",{className:" w-1 rounded-sm bg-[#0c75fc] absolute top-1/2 left-0 -translate-y-1/2 transition-all duration-500 ease-in-out ".concat(j?"h-5":"w-0 h-0")})]})};var ek=e=>{var t;let{dialogueList:a=[],refresh:n,historyLoading:r,listLoading:i,order:o}=e,c=(0,F.useSearchParams)(),d=null!==(t=null==c?void 0:c.get("scene"))&&void 0!==t?t:"",{t:u}=(0,g.$G)(),{mode:m}=(0,v.useContext)(s.p),[p,h]=(0,v.useState)("chat_dashboard"===d),f=(0,v.useMemo)(()=>p?{...ey,right:-16,borderRadius:"0px 8px 8px 0",borderLeft:"1px solid #d5e5f6"}:{...ey,borderLeft:"1px solid #d6d8da"},[p]),_=(0,v.useMemo)(()=>{let e=a[1]||[];return(null==e?void 0:e.length)>0?e.map(e=>({...e,label:e.user_input||e.select_param,key:e.conv_uid,icon:(0,l.jsx)(j.Z,{scene:e.chat_mode}),default:!1})):[]},[a]);return(0,l.jsx)(ew,{className:"bg-[#ffffff80] border-r border-[#d5e5f6] dark:bg-[#ffffff29] dark:border-[#ffffff66]",theme:m,width:280,collapsible:!0,collapsed:p,collapsedWidth:0,trigger:p?(0,l.jsx)(ev.Z,{className:"text-base"}):(0,l.jsx)(eg.Z,{className:"text-base"}),zeroWidthTriggerStyle:f,onCollapse:e=>h(e),children:(0,l.jsxs)("div",{className:"flex flex-col h-full w-full bg-transparent px-4 pt-6 ",children:[(0,l.jsx)("div",{className:"w-full text-base font-semibold text-[#1c2533] dark:text-[rgba(255,255,255,0.85)] mb-4 line-clamp-1",children:u("dialog_list")}),(0,l.jsxs)(eb.Z,{flex:1,vertical:!0,className:"overflow-y-auto",children:[(0,l.jsx)(eN,{item:{label:u("assistant"),key:"default",icon:(0,l.jsx)(R(),{src:"/LOGO_SMALL.png",alt:"default",width:24,height:24,className:"flex-1"}),default:!0},order:o}),(0,l.jsx)(x.Z,{spinning:i,className:"mt-2",children:!!(null==_?void 0:_.length)&&_.map(e=>(0,l.jsx)(eN,{item:e,refresh:n,historyLoading:r,order:o},null==e?void 0:e.key))})]})]})})};let eZ=N()(()=>Promise.all([a.e(3662),a.e(7034),a.e(6106),a.e(8674),a.e(3166),a.e(2837),a.e(2168),a.e(8163),a.e(1300),a.e(4567),a.e(9773),a.e(4035),a.e(152),a.e(3764),a.e(5e3),a.e(4434),a.e(4451)]).then(a.bind(a,96307)),{loadableGenerated:{webpack:()=>[96307]},ssr:!1}),eS=N()(()=>Promise.all([a.e(3662),a.e(7034),a.e(6106),a.e(8674),a.e(3166),a.e(2837),a.e(2168),a.e(8163),a.e(2398),a.e(9859),a.e(1300),a.e(4567),a.e(9773),a.e(4035),a.e(152),a.e(4705),a.e(9202),a.e(3764),a.e(5e3),a.e(1010),a.e(6220),a.e(8709),a.e(3913),a.e(4434),a.e(4769)]).then(a.bind(a,36517)),{loadableGenerated:{webpack:()=>[36517]},ssr:!1}),{Content:eC}=e_.default,eP=(0,v.createContext)({history:[],replyLoading:!1,scrollRef:{current:null},canAbort:!1,chartsData:[],agent:"",currentDialogue:{},appInfo:{},temperatureValue:.5,maxNewTokensValue:1024,resourceValue:{},modelValue:"",setModelValue:()=>{},setResourceValue:()=>{},setTemperatureValue:()=>{},setMaxNewTokensValue:()=>{},setAppInfo:()=>{},setAgent:()=>{},setCanAbort:()=>{},setReplyLoading:()=>{},refreshDialogList:()=>{},refreshHistory:()=>{},refreshAppInfo:()=>{},setHistory:()=>{},handleChat:()=>Promise.resolve()});var eM=()=>{var e,t,a,i;let{model:o,currentDialogInfo:c}=(0,v.useContext)(s.p),{isContract:d,setIsContract:u,setIsMenuExpand:m}=(0,v.useContext)(s.p),{chat:p,ctrl:h}=(0,r.Z)({app_code:c.app_code||""}),f=(0,F.useSearchParams)(),g=null!==(e=null==f?void 0:f.get("id"))&&void 0!==e?e:"",j=null!==(t=null==f?void 0:f.get("scene"))&&void 0!==t?t:"",b=null!==(a=null==f?void 0:f.get("knowledge_id"))&&void 0!==a?a:"",w=null!==(i=null==f?void 0:f.get("db_name"))&&void 0!==i?i:"",y=(0,v.useRef)(null),N=(0,v.useRef)(1),[k,S]=(0,v.useState)([]),[C]=(0,v.useState)(),[P,M]=(0,v.useState)(!1),[V,R]=(0,v.useState)(!1),[T,L]=(0,v.useState)(""),[O,E]=(0,v.useState)({}),[A,D]=(0,v.useState)(),[G,J]=(0,v.useState)(),[W,I]=(0,v.useState)(),[$,B]=(0,v.useState)("");(0,v.useEffect)(()=>{var e,t,a,l,s,n,r,i;D((null===(e=null==O?void 0:null===(t=O.param_need)||void 0===t?void 0:t.filter(e=>"temperature"===e.type)[0])||void 0===e?void 0:e.value)||.5),J((null===(a=null==O?void 0:null===(l=O.param_need)||void 0===l?void 0:l.filter(e=>"max_new_tokens"===e.type)[0])||void 0===a?void 0:a.value)||2048),B((null===(s=null==O?void 0:null===(n=O.param_need)||void 0===n?void 0:n.filter(e=>"model"===e.type)[0])||void 0===s?void 0:s.value)||o),I(b||w||(null===(r=null==O?void 0:null===(i=O.param_need)||void 0===i?void 0:i.filter(e=>"resource"===e.type)[0])||void 0===r?void 0:r.bind_value))},[O,w,b,o]),(0,v.useEffect)(()=>{m("chat_dashboard"!==j),g&&j&&u(!1)},[g,j]);let H=(0,v.useMemo)(()=>!g&&!j,[g,j]),{data:U=[],refresh:K,loading:X}=(0,_.Z)(async()=>await (0,n.Vx)((0,n.iP)())),{run:Y,refresh:Q}=(0,_.Z)(async()=>await (0,n.Vx)((0,n.BN)({...c})),{manual:!0,onSuccess:e=>{let[,t]=e;E(t||{})}}),ee=(0,v.useMemo)(()=>{let[,e]=U;return(null==e?void 0:e.find(e=>e.conv_uid===g))||{}},[g,U]);(0,v.useEffect)(()=>{let e=(0,z.a_)();c.chat_scene!==j||H||e&&e.message||Y()},[g,c,H,Y,j]);let{run:et,loading:ea,refresh:el}=(0,_.Z)(async()=>await (0,n.Vx)((0,n.$i)(g)),{manual:!0,onSuccess:e=>{let[,t]=e,a=null==t?void 0:t.filter(e=>"view"===e.role);a&&a.length>0&&(N.current=a[a.length-1].order+1),S(t||[])}}),es=(0,v.useCallback)((e,t)=>new Promise(a=>{let l=(0,z.a_)(),s=new AbortController;if(M(!0),k&&k.length>0){var n,r;let e=null==k?void 0:k.filter(e=>"view"===e.role),t=null==k?void 0:k.filter(e=>"human"===e.role);N.current=((null===(n=e[e.length-1])||void 0===n?void 0:n.order)||(null===(r=t[t.length-1])||void 0===r?void 0:r.order))+1}let i=[...l&&l.id===g?[]:k,{role:"human",context:e,model_name:(null==t?void 0:t.model_name)||$,order:N.current,time_stamp:0},{role:"view",context:"",model_name:(null==t?void 0:t.model_name)||$,order:N.current,time_stamp:0,thinking:!0}],o=i.length-1;S([...i]),p({data:{chat_mode:j,model_name:$,user_input:e,...t},ctrl:s,chatId:g,onMessage:e=>{R(!0),(null==t?void 0:t.incremental)?(i[o].context+=e,i[o].thinking=!1):(i[o].context=e,i[o].thinking=!1),S([...i])},onDone:()=>{M(!1),R(!1),a()},onClose:()=>{M(!1),R(!1),a()},onError:e=>{M(!1),R(!1),i[o].context=e,i[o].thinking=!1,S([...i]),a()}})}),[g,k,$,p,j]);return(0,ec.Z)(async()=>{if(H)return;let e=(0,z.a_)();e&&e.id===g||await et()},[g,j,et]),(0,v.useEffect)(()=>{H&&(N.current=1,S([]))},[H]),(0,l.jsx)(eP.Provider,{value:{history:k,replyLoading:P,scrollRef:y,canAbort:V,chartsData:C||[],agent:T,currentDialogue:ee,appInfo:O,temperatureValue:A,maxNewTokensValue:G,resourceValue:W,modelValue:$,setModelValue:B,setResourceValue:I,setTemperatureValue:D,setMaxNewTokensValue:J,setAppInfo:E,setAgent:L,setCanAbort:R,setReplyLoading:M,handleChat:es,refreshDialogList:K,refreshHistory:el,refreshAppInfo:Q,setHistory:S},children:(0,l.jsx)(eb.Z,{flex:1,children:(0,l.jsxs)(e_.default,{className:"bg-gradient-light bg-cover bg-center dark:bg-gradient-dark",children:[(0,l.jsx)(ek,{refresh:K,dialogueList:U,listLoading:X,historyLoading:ea,order:N}),(0,l.jsx)(e_.default,{className:"bg-transparent",children:"chat_dashboard"===j?d?(0,l.jsx)(eZ,{}):(0,l.jsx)(eS,{}):H?(0,l.jsx)(eC,{children:(0,l.jsx)(q,{})}):(0,l.jsx)(x.Z,{spinning:ea,className:"w-full h-full m-auto",children:(0,l.jsxs)(eC,{className:"flex flex-col h-screen",children:[(0,l.jsx)(Z,{ref:y}),(0,l.jsx)(ex,{ctrl:h})]})})})]})})})}},11873:function(){}}]); \ No newline at end of file diff --git a/dbgpt/app/static/web/_next/static/chunks/8510-aad9e67a7d4f6fad.js b/dbgpt/app/static/web/_next/static/chunks/8510-d70b58ecdd38a004.js similarity index 81% rename from dbgpt/app/static/web/_next/static/chunks/8510-aad9e67a7d4f6fad.js rename to dbgpt/app/static/web/_next/static/chunks/8510-d70b58ecdd38a004.js index f1099d989..6d370e559 100644 --- a/dbgpt/app/static/web/_next/static/chunks/8510-aad9e67a7d4f6fad.js +++ b/dbgpt/app/static/web/_next/static/chunks/8510-d70b58ecdd38a004.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8510,3913],{2440:function(e,l,t){var n=t(25519);l.Z=()=>{var e;return JSON.parse(null!==(e=localStorage.getItem(n.C9))&&void 0!==e?e:"")}},39718:function(e,l,t){var n=t(85893),a=t(19284),r=t(25675),i=t.n(r),s=t(67294);l.Z=(0,s.memo)(e=>{let{width:l,height:t,model:r}=e,o=(0,s.useMemo)(()=>{let e=null==r?void 0:r.replaceAll("-","_").split("_")[0],l=Object.keys(a.Me);for(let t=0;t{let{width:l,height:t,scene:s}=e,o=(0,i.useCallback)(()=>{switch(s){case"chat_knowledge":return a.je;case"chat_with_db_execute":return a.zM;case"chat_excel":return a.DL;case"chat_with_db_qa":case"chat_dba":return a.RD;case"chat_dashboard":return a.In;case"chat_agent":return a.si;case"chat_normal":return a.O7;default:return}},[s]);return(0,n.jsx)(r.Z,{className:"w-".concat(l||7," h-").concat(t||7),component:o()})}},70065:function(e,l,t){var n=t(91321);let a=(0,n.Z)({scriptUrl:"//at.alicdn.com/t/a/font_4440880_ljyggdw605.js"});l.Z=a},77451:function(e,l,t){t.r(l);var n=t(85893),a=t(76212),r=t(18102),i=t(11475),s=t(65654),o=t(34041),u=t(85576),d=t(99859),c=t(93967),m=t.n(c),v=t(67294),p=t(67421),x=t(25934),f=t(49264);let h=e=>{let{value:l,onChange:t,promptList:a}=e,[s,d]=(0,v.useState)(!1),[c,m]=(0,v.useState)(),{t:x}=(0,p.$G)();return(0,v.useEffect)(()=>{if(l){let e=null==a?void 0:a.filter(e=>e.prompt_code===l)[0];m(e)}},[a,l]),(0,n.jsxs)("div",{className:"w-2/5 flex items-center gap-2",children:[(0,n.jsx)(o.default,{className:"w-1/2",placeholder:x("please_select_prompt"),options:a,fieldNames:{label:"prompt_name",value:"prompt_code"},onChange:e=>{let l=null==a?void 0:a.filter(l=>l.prompt_code===e)[0];m(l),null==t||t(e)},value:l,allowClear:!0,showSearch:!0}),c&&(0,n.jsxs)("span",{className:"text-sm text-blue-500 cursor-pointer",onClick:()=>d(!0),children:[(0,n.jsx)(i.Z,{className:"mr-1"}),x("View_details")]}),(0,n.jsx)(u.default,{title:"Prompt ".concat(x("details")),open:s,footer:!1,width:"60%",onCancel:()=>d(!1),children:(0,n.jsx)(r.default,{children:null==c?void 0:c.content})})]})};l.default=e=>{var l,t;let{name:r,initValue:i,modelStrategyOptions:u,resourceTypeOptions:c,updateData:g,classNames:j,promptList:_}=e,{t:b}=(0,p.$G)(),[y]=d.default.useForm(),w=d.default.useWatch("prompt_template",y),N=d.default.useWatch("llm_strategy",y),k=d.default.useWatch("llm_strategy_value",y),Z=(0,v.useMemo)(()=>(null==i?void 0:i.find(e=>e.agent_name===r))||[],[i,r]),C=(0,v.useRef)([]),{run:S,loading:E,data:R}=(0,s.Z)(async()=>{var e;let[,l]=await (0,a.Vx)((0,a.m9)("priority"));return null!==(e=null==l?void 0:l.map(e=>({label:e,value:e})))&&void 0!==e?e:[]},{manual:!0});return(0,v.useEffect)(()=>{"priority"===N&&S()},[S,N]),(0,v.useEffect)(()=>{var e;let l=y.getFieldsValue();g({agent_name:r,...l,llm_strategy_value:null==l?void 0:null===(e=l.llm_strategy_value)||void 0===e?void 0:e.join(","),resources:C.current})},[y,E,r,w,N,k,g]),(0,n.jsx)("div",{className:m()(j),children:(0,n.jsxs)(d.default,{style:{width:"100%"},labelCol:{span:4},form:y,initialValues:{llm_strategy:"default",...Z,llm_strategy_value:null==Z?void 0:null===(l=Z.llm_strategy_value)||void 0===l?void 0:l.split(",")},children:[(0,n.jsx)(d.default.Item,{label:b("Prompt"),name:"prompt_template",children:(0,n.jsx)(h,{promptList:_})}),(0,n.jsx)(d.default.Item,{label:b("LLM_strategy"),required:!0,name:"llm_strategy",children:(0,n.jsx)(o.default,{className:"w-1/5",placeholder:b("please_select_LLM_strategy"),options:u,allowClear:!0})}),"priority"===N&&(0,n.jsx)(d.default.Item,{label:b("LLM_strategy_value"),required:!0,name:"llm_strategy_value",children:(0,n.jsx)(o.default,{mode:"multiple",className:"w-2/5",placeholder:b("please_select_LLM_strategy_value"),options:R,allowClear:!0})}),(0,n.jsx)(d.default.Item,{label:b("available_resources"),name:"resources",children:(0,n.jsx)(f.default,{resourceTypeOptions:c,initValue:null==Z?void 0:null===(t=Z.resources)||void 0===t?void 0:t.map(e=>({...e,uid:(0,x.Z)()})),updateData:e=>{C.current=null==e?void 0:e[1],g({agent_name:r,resources:C.current})},name:r})})]})})}},2856:function(e,l,t){t.r(l);var n=t(85893),a=t(76212),r=t(65654),i=t(99859),s=t(34041),o=t(72269),u=t(93967),d=t.n(u),c=t(67294),m=t(67421);l.default=e=>{let{uid:l,initValue:t,updateData:u,classNames:v,resourceTypeOptions:p,setCurIcon:x}=e,[f]=i.default.useForm(),h=i.default.useWatch("type",f),g=i.default.useWatch("is_dynamic",f),j=i.default.useWatch("value",f),{t:_}=(0,m.$G)(),b=(0,c.useMemo)(()=>(null==p?void 0:p.filter(e=>"all"!==e.value))||[],[p]),{run:y,data:w,loading:N}=(0,r.Z)(async e=>{var l;let[,n]=await (0,a.Vx)((0,a.RX)({type:e}));return f.setFieldsValue({value:(null==t?void 0:t.value)||(null==n?void 0:null===(l=n[0])||void 0===l?void 0:l.key)}),n||[]},{manual:!0});(0,c.useEffect)(()=>{h&&y(h)},[y,h]);let k=(0,c.useMemo)(()=>(null==w?void 0:w.map(e=>({...e,label:e.label,value:e.key+""})))||[],[w]);return(0,c.useEffect)(()=>{let e=f.getFieldsValue(),t=(null==e?void 0:e.is_dynamic)?"":null==e?void 0:e.value;u({uid:l,...e,value:t})},[l,g,f,u,j,h]),(0,n.jsx)("div",{className:d()("flex flex-1",v),children:(0,n.jsxs)(i.default,{style:{width:"100%"},form:f,labelCol:{span:4},initialValues:{...t},children:[(0,n.jsx)(i.default.Item,{label:_("resource_type"),name:"type",children:(0,n.jsx)(s.default,{className:"w-2/5",options:b,onChange:e=>{x({uid:l,icon:e})}})}),(0,n.jsx)(i.default.Item,{label:_("resource_dynamic"),name:"is_dynamic",children:(0,n.jsx)(o.Z,{style:{background:g?"#1677ff":"#ccc"}})}),!g&&(0,n.jsxs)(n.Fragment,{children:[" ","image_file"===h||"internet"===h||["text_file","excel_file"].includes(h)?null:(0,n.jsx)(i.default.Item,{label:_("resource_value"),name:"value",required:!0,children:(0,n.jsx)(s.default,{placeholder:_("please_select_param"),options:k,loading:N,className:"w-3/5",allowClear:!0})})]})]})})}},49264:function(e,l,t){t.r(l),t.d(l,{default:function(){return _}});var n=t(85893),a=t(32983),r=t(93967),i=t.n(r),s=e=>{let{className:l,imgUrl:t="/pictures/empty.png"}=e;return(0,n.jsx)("div",{className:i()("m-auto",{className:l}),children:(0,n.jsx)(a.Z,{image:t,imageStyle:{margin:"0 auto",width:"100%",height:"100%"}})})},o=t(48689),u=t(24969),d=t(34041),c=t(45030),m=t(86738),v=t(14726),p=t(96486),x=t(67294),f=t(67421),h=t(25934),g=t(83072),j=t(2856),_=e=>{var l;let{name:t,updateData:a,resourceTypeOptions:r,initValue:_}=e,{t:b}=(0,f.$G)(),y=(0,x.useRef)(_||[]),[w,N]=(0,x.useState)({uid:"",icon:""}),[k,Z]=(0,x.useState)((null==_?void 0:_.map(e=>({...e,icon:e.type,initVal:e})))||[]),[C,S]=(0,x.useState)([...k]),[E,R]=(0,x.useState)((null==k?void 0:null===(l=k[0])||void 0===l?void 0:l.uid)||""),[M,I]=(0,x.useState)(""),V=(e,l)=>{var n,r;null==e||e.stopPropagation();let i=null===(n=y.current)||void 0===n?void 0:n.findIndex(e=>e.uid===E),s=null==k?void 0:k.filter(e=>e.uid!==l.uid);y.current=y.current.filter(e=>e.uid!==l.uid)||[],a([t,y.current]),Z(s),i===(null==k?void 0:k.length)-1&&0!==i&&setTimeout(()=>{var e;R((null==s?void 0:null===(e=s[s.length-1])||void 0===e?void 0:e.uid)||"")},0),R((null==s?void 0:null===(r=s[i])||void 0===r?void 0:r.uid)||"")};return(0,x.useEffect)(()=>{S([...k])},[k]),(0,x.useEffect)(()=>{Z(k.map(e=>(null==w?void 0:w.uid)===e.uid?{...e,icon:w.icon}:e))},[w]),(0,n.jsxs)("div",{className:"flex flex-1 h-64 px-3 py-4 border border-[#d6d8da] rounded-md",children:[(0,n.jsxs)("div",{className:"flex flex-col w-40 h-full",children:[(0,n.jsx)(d.default,{options:r,className:"w-full h-8",variant:"borderless",defaultValue:"all",onChange:e=>{var l,t;if("all"===e)S(k),R((null==k?void 0:null===(l=k[0])||void 0===l?void 0:l.uid)||"");else{let l=null==k?void 0:k.filter(l=>(null==l?void 0:l.icon)===e);R((null==l?void 0:null===(t=l[0])||void 0===t?void 0:t.uid)||""),S(l)}}}),(0,n.jsx)("div",{className:"flex flex-1 flex-col gap-1 overflow-y-auto",children:null==C?void 0:C.map(e=>(0,n.jsxs)("div",{className:i()("flex h-8 items-center px-3 pl-[0.6rem] rounded-md hover:bg-[#f5faff] hover:dark:bg-[#606264] cursor-pointer relative",{"bg-[#f5faff] dark:bg-[#606264]":e.uid===E}),onClick:()=>{R(e.uid||"")},onMouseEnter:()=>{I(e.uid||"")},onMouseLeave:()=>{I("")},children:[g.resourceTypeIcon[e.icon||""],(0,n.jsx)(c.Z.Text,{className:i()("flex flex-1 items-center text-sm p-0 m-0 mx-2 line-clamp-1",{"text-[#0c75fc]":e.uid===E}),editable:{autoSize:{maxRows:1},onChange:l=>{Z(k.map(t=>t.uid===e.uid?{...t,name:l}:t)),y.current=y.current.map(t=>t.uid===e.uid?{...t,name:l}:t),a([t,y.current])}},ellipsis:{tooltip:!0},children:e.name}),(0,n.jsx)(m.Z,{title:b("want_delete"),onConfirm:l=>{V(l,e)},onCancel:e=>null==e?void 0:e.stopPropagation(),children:(0,n.jsx)(o.Z,{className:"text-sm cursor-pointer absolute right-2 ".concat(M===e.uid?"opacity-100":"opacity-0"),style:{top:"50%",transform:"translateY(-50%)"},onClick:e=>e.stopPropagation()})})]},e.uid))}),(0,n.jsx)(v.ZP,{className:"w-full h-8",type:"dashed",block:!0,icon:(0,n.jsx)(u.Z,{}),onClick:()=>{var e,l;let n=(0,h.Z)();y.current=(0,p.concat)(y.current,[{is_dynamic:!1,type:null===(e=null==r?void 0:r.filter(e=>"all"!==e.value))||void 0===e?void 0:e[0].value,value:"",uid:n,name:b("resource")+" ".concat(y.current.length+1)}].filter(Boolean)),a([t,y.current]),Z(e=>{var l,t,a;return[...e,{icon:(null===(l=null==r?void 0:r.filter(e=>"all"!==e.value))||void 0===l?void 0:null===(t=l[0])||void 0===t?void 0:t.value)||"",uid:n,initVal:{is_dynamic:!1,type:null===(a=null==r?void 0:r.filter(e=>"all"!==e.value))||void 0===a?void 0:a[0].value,value:"",uid:n,name:b("resource")+" ".concat(e.length+1)},name:b("resource")+" ".concat(e.length+1)}]}),R(n),N({uid:n,icon:null===(l=null==r?void 0:r.filter(e=>"all"!==e.value))||void 0===l?void 0:l[0].value})},children:b("add_resource")})]}),(0,n.jsx)("div",{className:"flex flex-1 ml-6 ",children:C&&(null==C?void 0:C.length)>0?(0,n.jsx)("div",{className:"flex flex-1",children:null==C?void 0:C.map(e=>(0,n.jsx)(j.default,{classNames:e.uid===E?"block":"hidden",resourceTypeOptions:r,initValue:e.initVal,setCurIcon:N,updateData:e=>{var l;y.current=null===(l=y.current)||void 0===l?void 0:l.map(l=>(null==l?void 0:l.uid)===(null==e?void 0:e.uid)?{...l,...e}:l),a([t,y.current])},uid:e.uid||""},e.uid))}):(0,n.jsx)(s,{className:"w-40 h-40"})})]})}},83072:function(e,l,t){t.r(l),t.d(l,{agentIcon:function(){return _},resourceTypeIcon:function(){return b}});var n=t(85893),a=t(70065),r=t(89035),i=t(48869),s=t(61086),o=t(57132),u=t(97879),d=t(32319),c=t(79383),m=t(13520),v=t(14079),p=t(10524),x=t(56466),f=t(26911),h=t(97175),g=t(16801),j=t(13179);t(67294);let _={CodeEngineer:(0,n.jsx)(r.Z,{}),Reporter:(0,n.jsx)(i.Z,{}),DataScientist:(0,n.jsx)(s.Z,{}),Summarizer:(0,n.jsx)(o.Z,{}),ToolExpert:(0,n.jsx)(a.Z,{type:"icon-plugin",style:{fontSize:17.25,marginTop:2}}),Indicator:(0,n.jsx)(u.Z,{}),Dbass:(0,n.jsx)(d.Z,{})},b={all:(0,n.jsx)(c.Z,{}),database:(0,n.jsx)(m.Z,{}),knowledge:(0,n.jsx)(v.Z,{}),internet:(0,n.jsx)(p.Z,{}),plugin:(0,n.jsx)(x.Z,{}),text_file:(0,n.jsx)(f.Z,{}),excel_file:(0,n.jsx)(h.Z,{}),image_file:(0,n.jsx)(g.Z,{}),awel_flow:(0,n.jsx)(j.Z,{})};l.default=()=>(0,n.jsx)(n.Fragment,{})},56397:function(e,l,t){t.r(l);var n=t(85893),a=t(48218),r=t(58638),i=t(31418),s=t(45030),o=t(20640),u=t.n(o),d=t(67294),c=t(73913);l.default=(0,d.memo)(()=>{var e;let{appInfo:l}=(0,d.useContext)(c.MobileChatContext),{message:t}=i.Z.useApp(),[o,m]=(0,d.useState)(0);if(!(null==l?void 0:l.app_code))return null;let v=async()=>{let e=u()("dingtalk://dingtalkclient/page/link?url=".concat(encodeURIComponent(location.href),"&pc_slide=true"));t[e?"success":"error"](e?"复制成功":"复制失败")};return o>6&&t.info(JSON.stringify(window.navigator.userAgent),2,()=>{m(0)}),(0,n.jsxs)("header",{className:"flex w-full items-center justify-between bg-[rgba(255,255,255,0.9)] border dark:bg-black dark:border-[rgba(255,255,255,0.6)] rounded-xl mx-auto px-4 py-2 mb-4 sticky top-4 z-50 mt-4 shadow-md",children:[(0,n.jsxs)("div",{className:"flex gap-2 items-center",onClick:()=>m(o+1),children:[(0,n.jsx)(a.Z,{scene:(null==l?void 0:null===(e=l.team_context)||void 0===e?void 0:e.chat_scene)||"chat_agent",width:8,height:8}),(0,n.jsxs)("div",{className:"flex flex-col ml-2",children:[(0,n.jsx)(s.Z.Text,{className:"text-md font-bold line-clamp-2",children:null==l?void 0:l.app_name}),(0,n.jsx)(s.Z.Text,{className:"text-sm line-clamp-2",children:null==l?void 0:l.app_describe})]})]}),(0,n.jsx)("div",{onClick:v,className:"flex items-center justify-center w-10 h-10 bg-[#ffffff99] dark:bg-[rgba(255,255,255,0.2)] border border-white dark:border-[rgba(255,255,255,0.2)] rounded-[50%] cursor-pointer",children:(0,n.jsx)(r.Z,{className:"text-lg"})})]})})},74638:function(e,l,t){t.r(l);var n=t(85893),a=t(76212),r=t(62418),i=t(25519),s=t(30159),o=t(87740),u=t(50888),d=t(52645),c=t(27496),m=t(1375),v=t(65654),p=t(66309),x=t(55241),f=t(74330),h=t(25278),g=t(14726),j=t(93967),_=t.n(j),b=t(39332),y=t(67294),w=t(73913),N=t(7001),k=t(73749),Z=t(97109),C=t(83454);let S=["magenta","orange","geekblue","purple","cyan","green"];l.default=()=>{var e,l;let t=(0,b.useSearchParams)(),j=null!==(l=null==t?void 0:t.get("ques"))&&void 0!==l?l:"",{history:E,model:R,scene:M,temperature:I,resource:V,conv_uid:O,appInfo:T,scrollViewRef:L,order:P,userInput:A,ctrl:D,canAbort:z,canNewChat:W,setHistory:q,setCanNewChat:F,setCarAbort:$,setUserInput:J}=(0,y.useContext)(w.MobileChatContext),[U,B]=(0,y.useState)(!1),[G,H]=(0,y.useState)(!1),K=async e=>{var l,t,n;J(""),D.current=new AbortController;let a={chat_mode:M,model_name:R,user_input:e||A,conv_uid:O,temperature:I,app_code:null==T?void 0:T.app_code,...V&&{select_param:JSON.stringify(V)}};if(E&&E.length>0){let e=null==E?void 0:E.filter(e=>"view"===e.role);P.current=e[e.length-1].order+1}let s=[{role:"human",context:e||A,model_name:R,order:P.current,time_stamp:0},{role:"view",context:"",model_name:R,order:P.current,time_stamp:0,thinking:!0}],o=s.length-1;q([...E,...s]),F(!1);try{await (0,m.L)("".concat(null!==(l=C.env.API_BASE_URL)&&void 0!==l?l:"","/api/v1/chat/completions"),{method:"POST",headers:{"Content-Type":"application/json",[i.gp]:null!==(t=(0,r.n5)())&&void 0!==t?t:""},signal:D.current.signal,body:JSON.stringify(a),openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===m.a)return},onclose(){var e;null===(e=D.current)||void 0===e||e.abort(),F(!0),$(!1)},onerror(e){throw Error(e)},onmessage:e=>{let l=e.data;try{l=JSON.parse(l).vis}catch(e){l.replaceAll("\\n","\n")}"[DONE]"===l?(F(!0),$(!1)):(null==l?void 0:l.startsWith("[ERROR]"))?(s[o].context=null==l?void 0:l.replace("[ERROR]",""),s[o].thinking=!1,q([...E,...s]),F(!0),$(!1)):($(!0),s[o].context=l,s[o].thinking=!1,q([...E,...s]))}})}catch(e){null===(n=D.current)||void 0===n||n.abort(),s[o].context="Sorry, we meet some error, please try again later.",s[o].thinking=!1,q([...s]),F(!0),$(!1)}},X=async()=>{A.trim()&&W&&await K()};(0,y.useEffect)(()=>{var e,l;null===(e=L.current)||void 0===e||e.scrollTo({top:null===(l=L.current)||void 0===l?void 0:l.scrollHeight,behavior:"auto"})},[E,L]);let Y=(0,y.useMemo)(()=>{if(!T)return[];let{param_need:e=[]}=T;return null==e?void 0:e.map(e=>e.type)},[T]),Q=(0,y.useMemo)(()=>{var e;return 0===E.length&&T&&!!(null==T?void 0:null===(e=T.recommend_questions)||void 0===e?void 0:e.length)},[E,T]),{run:ee,loading:el}=(0,v.Z)(async()=>await (0,a.Vx)((0,a.zR)(O)),{manual:!0,onSuccess:()=>{q([])}});return(0,y.useEffect)(()=>{j&&R&&O&&T&&K(j)},[T,O,R,j]),(0,n.jsxs)("div",{className:"flex flex-col",children:[Q&&(0,n.jsx)("ul",{children:null==T?void 0:null===(e=T.recommend_questions)||void 0===e?void 0:e.map((e,l)=>(0,n.jsx)("li",{className:"mb-3",children:(0,n.jsx)(p.Z,{color:S[l],className:"p-2 rounded-xl",onClick:async()=>{K(e.question)},children:e.question})},e.id))}),(0,n.jsxs)("div",{className:"flex items-center justify-between gap-1",children:[(0,n.jsxs)("div",{className:"flex gap-2 mb-1 w-full overflow-x-auto",children:[(null==Y?void 0:Y.includes("model"))&&(0,n.jsx)(N.default,{}),(null==Y?void 0:Y.includes("resource"))&&(0,n.jsx)(k.default,{}),(null==Y?void 0:Y.includes("temperature"))&&(0,n.jsx)(Z.default,{})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between text-lg font-bold",children:[(0,n.jsx)(x.Z,{content:"暂停回复",trigger:["hover"],children:(0,n.jsx)(s.Z,{className:_()("p-2 cursor-pointer",{"text-[#0c75fc]":z,"text-gray-400":!z}),onClick:()=>{var e;z&&(null===(e=D.current)||void 0===e||e.abort(),setTimeout(()=>{$(!1),F(!0)},100))}})}),(0,n.jsx)(x.Z,{content:"再来一次",trigger:["hover"],children:(0,n.jsx)(o.Z,{className:_()("p-2 cursor-pointer",{"text-gray-400":!E.length||!W}),onClick:()=>{var e,l;if(!W||0===E.length)return;let t=null===(e=null===(l=E.filter(e=>"human"===e.role))||void 0===l?void 0:l.slice(-1))||void 0===e?void 0:e[0];K((null==t?void 0:t.context)||"")}})}),el?(0,n.jsx)(f.Z,{spinning:el,indicator:(0,n.jsx)(u.Z,{style:{fontSize:18},spin:!0}),className:"p-2"}):(0,n.jsx)(x.Z,{content:"清除历史",trigger:["hover"],children:(0,n.jsx)(d.Z,{className:_()("p-2 cursor-pointer",{"text-gray-400":!E.length||!W}),onClick:()=>{W&&ee()}})})]})]}),(0,n.jsxs)("div",{className:_()("flex py-2 px-3 items-center justify-between bg-white dark:bg-[#242733] dark:border-[#6f7f95] rounded-xl border",{"border-[#0c75fc] dark:border-[rgba(12,117,252,0.8)]":U}),children:[(0,n.jsx)(h.default.TextArea,{placeholder:"可以问我任何问题",className:"w-full resize-none border-0 p-0 focus:shadow-none",value:A,autoSize:{minRows:1},onKeyDown:e=>{if("Enter"===e.key&&!e.shiftKey){if(G){e.preventDefault();return}A.trim()&&(e.preventDefault(),X())}},onChange:e=>{J(e.target.value)},onFocus:()=>{B(!0)},onBlur:()=>B(!1),onCompositionStartCapture:()=>{H(!0)},onCompositionEndCapture:()=>{setTimeout(()=>{H(!1)},0)}}),(0,n.jsx)(g.ZP,{type:"primary",className:_()("flex items-center justify-center rounded-lg bg-button-gradient border-0 ml-2",{"opacity-40 cursor-not-allowed":!A.trim()||!W}),onClick:X,children:W?(0,n.jsx)(c.Z,{}):(0,n.jsx)(f.Z,{indicator:(0,n.jsx)(u.Z,{className:"text-white"})})})]})]})}},7001:function(e,l,t){t.r(l);var n=t(85893),a=t(41468),r=t(39718),i=t(94668),s=t(85418),o=t(55241),u=t(67294),d=t(73913);l.default=()=>{let{modelList:e}=(0,u.useContext)(a.p),{model:l,setModel:t}=(0,u.useContext)(d.MobileChatContext),c=(0,u.useMemo)(()=>e.length>0?e.map(e=>({label:(0,n.jsxs)("div",{className:"flex items-center gap-2",onClick:()=>{t(e)},children:[(0,n.jsx)(r.Z,{width:14,height:14,model:e}),(0,n.jsx)("span",{className:"text-xs",children:e})]}),key:e})):[],[e,t]);return(0,n.jsx)(s.Z,{menu:{items:c},placement:"top",trigger:["click"],children:(0,n.jsx)(o.Z,{content:l,children:(0,n.jsxs)("div",{className:"flex items-center gap-1 border rounded-xl bg-white dark:bg-black p-2 flex-shrink-0",children:[(0,n.jsx)(r.Z,{width:16,height:16,model:l}),(0,n.jsx)("span",{className:"text-xs font-medium line-clamp-1",style:{maxWidth:96},children:l}),(0,n.jsx)(i.Z,{rotate:90})]})})})}},46568:function(e,l,t){t.r(l);var n=t(85893),a=t(25675),r=t.n(a),i=t(67294);l.default=(0,i.memo)(e=>{let{width:l,height:t,src:a,label:i}=e;return(0,n.jsx)(r(),{width:l||14,height:t||14,src:a,alt:i||"db-icon",priority:!0})})},73749:function(e,l,t){t.r(l);var n=t(85893),a=t(76212),r=t(62418),i=t(50888),s=t(94668),o=t(83266),u=t(65654),d=t(74330),c=t(23799),m=t(85418),v=t(67294),p=t(73913),x=t(46568);l.default=()=>{let{appInfo:e,resourceList:l,scene:t,model:f,conv_uid:h,getChatHistoryRun:g,setResource:j,resource:_}=(0,v.useContext)(p.MobileChatContext),[b,y]=(0,v.useState)(null),w=(0,v.useMemo)(()=>{var l,t,n;return null===(l=null==e?void 0:null===(t=e.param_need)||void 0===t?void 0:t.filter(e=>"resource"===e.type))||void 0===l?void 0:null===(n=l[0])||void 0===n?void 0:n.value},[e]),N=(0,v.useMemo)(()=>l&&l.length>0?l.map(e=>({label:(0,n.jsxs)("div",{className:"flex items-center gap-2",onClick:()=>{y(e),j(e.space_id||e.param)},children:[(0,n.jsx)(x.default,{width:14,height:14,src:r.S$[e.type].icon,label:r.S$[e.type].label}),(0,n.jsx)("span",{className:"text-xs",children:e.param})]}),key:e.space_id||e.param})):[],[l,j]),{run:k,loading:Z}=(0,u.Z)(async e=>{let[,l]=await (0,a.Vx)((0,a.qn)({convUid:h,chatMode:t,data:e,model:f,config:{timeout:36e5}}));return j(l),l},{manual:!0,onSuccess:async()=>{await g()}}),C=async e=>{let l=new FormData;l.append("doc_file",null==e?void 0:e.file),await k(l)},S=(0,v.useMemo)(()=>Z?(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)(d.Z,{size:"small",indicator:(0,n.jsx)(i.Z,{spin:!0})}),(0,n.jsx)("span",{className:"text-xs",children:"上传中"})]}):_?(0,n.jsxs)("div",{className:"flex gap-1",children:[(0,n.jsx)("span",{className:"text-xs",children:_.file_name}),(0,n.jsx)(s.Z,{rotate:90})]}):(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)(o.Z,{className:"text-base"}),(0,n.jsx)("span",{className:"text-xs",children:"上传文件"})]}),[Z,_]);return(0,n.jsx)(n.Fragment,{children:(()=>{switch(w){case"excel_file":case"text_file":case"image_file":return(0,n.jsx)("div",{className:"flex items-center justify-center gap-1 border rounded-xl bg-white dark:bg-black px-2 flex-shrink-0",children:(0,n.jsx)(c.default,{name:"file",accept:".xlsx,.xls",maxCount:1,showUploadList:!1,beforeUpload:()=>!1,onChange:C,className:"flex h-full w-full items-center justify-center",children:S})});case"database":case"knowledge":case"plugin":case"awel_flow":var e,t,a,i,o;if(!(null==l?void 0:l.length))return null;return(0,n.jsx)(m.Z,{menu:{items:N},placement:"top",trigger:["click"],children:(0,n.jsxs)("div",{className:"flex items-center gap-1 border rounded-xl bg-white dark:bg-black p-2 flex-shrink-0",children:[(0,n.jsx)(x.default,{width:14,height:14,src:null===(e=r.S$[(null==b?void 0:b.type)||(null==l?void 0:null===(t=l[0])||void 0===t?void 0:t.type)])||void 0===e?void 0:e.icon,label:null===(a=r.S$[(null==b?void 0:b.type)||(null==l?void 0:null===(i=l[0])||void 0===i?void 0:i.type)])||void 0===a?void 0:a.label}),(0,n.jsx)("span",{className:"text-xs font-medium",children:(null==b?void 0:b.param)||(null==l?void 0:null===(o=l[0])||void 0===o?void 0:o.param)}),(0,n.jsx)(s.Z,{rotate:90})]})})}})()})}},97109:function(e,l,t){t.r(l);var n=t(85893),a=t(70065),r=t(85418),i=t(30568),s=t(67294),o=t(73913);l.default=()=>{let{temperature:e,setTemperature:l}=(0,s.useContext)(o.MobileChatContext),t=e=>{isNaN(e)||l(e)};return(0,n.jsx)(r.Z,{trigger:["click"],dropdownRender:()=>(0,n.jsx)("div",{className:"flex h-28 bg-white dark:bg-[rgba(255,255,255,0.5)] items-center justify-center rounded-xl py-3",children:(0,n.jsx)(i.Z,{defaultValue:.5,max:1,min:0,step:.1,vertical:!0,onChange:t,value:e})}),placement:"top",children:(0,n.jsxs)("div",{className:"flex items-center justify-between border rounded-xl bg-white dark:bg-black w-14 p-2 flex-shrink-0",children:[(0,n.jsx)(a.Z,{type:"icon-icons-temperature",className:"text-sm"}),(0,n.jsx)("span",{className:"text-xs font-medium",children:e})]})})}},73913:function(e,l,t){t.r(l),t.d(l,{MobileChatContext:function(){return _}});var n=t(85893),a=t(41468),r=t(76212),i=t(2440),s=t(62418),o=t(25519),u=t(1375),d=t(65654),c=t(74330),m=t(5152),v=t.n(m),p=t(39332),x=t(67294),f=t(56397),h=t(74638),g=t(83454);let j=v()(()=>Promise.all([t.e(3662),t.e(7034),t.e(8674),t.e(930),t.e(3166),t.e(2837),t.e(2168),t.e(8163),t.e(7126),t.e(4041),t.e(2398),t.e(1300),t.e(4567),t.e(9773),t.e(3457),t.e(4455),t.e(5110),t.e(4705),t.e(9202),t.e(5782),t.e(2783),t.e(8709),t.e(9256),t.e(9870)]).then(t.bind(t,36818)),{loadableGenerated:{webpack:()=>[36818]},ssr:!1}),_=(0,x.createContext)({model:"",temperature:.5,resource:null,setModel:()=>{},setTemperature:()=>{},setResource:()=>{},scene:"",history:[],setHistory:()=>{},scrollViewRef:{current:null},appInfo:{},conv_uid:"",resourceList:[],order:{current:1},handleChat:()=>Promise.resolve(),canAbort:!1,setCarAbort:()=>{},canNewChat:!1,setCanNewChat:()=>{},ctrl:{current:void 0},userInput:"",setUserInput:()=>{},getChatHistoryRun:()=>{}});l.default=()=>{var e,l;let t=(0,p.useSearchParams)(),m=null!==(e=null==t?void 0:t.get("chat_scene"))&&void 0!==e?e:"",v=null!==(l=null==t?void 0:t.get("app_code"))&&void 0!==l?l:"",{modelList:b}=(0,x.useContext)(a.p),[y,w]=(0,x.useState)([]),[N,k]=(0,x.useState)(""),[Z,C]=(0,x.useState)(.5),[S,E]=(0,x.useState)(null),R=(0,x.useRef)(null),[M,I]=(0,x.useState)(""),[V,O]=(0,x.useState)(!1),[T,L]=(0,x.useState)(!0),P=(0,x.useRef)(),A=(0,x.useRef)(1),D=(0,i.Z)(),z=(0,x.useMemo)(()=>"".concat(null==D?void 0:D.user_no,"_").concat(v),[v,D]),{run:W,loading:q}=(0,d.Z)(async()=>await (0,r.Vx)((0,r.$i)("".concat(null==D?void 0:D.user_no,"_").concat(v))),{manual:!0,onSuccess:e=>{let[,l]=e,t=null==l?void 0:l.filter(e=>"view"===e.role);t&&t.length>0&&(A.current=t[t.length-1].order+1),w(l||[])}}),{data:F,run:$,loading:J}=(0,d.Z)(async e=>{let[,l]=await (0,r.Vx)((0,r.BN)(e));return null!=l?l:{}},{manual:!0}),{run:U,data:B,loading:G}=(0,d.Z)(async()=>{var e,l;let[,t]=await (0,r.Vx)((0,r.vD)(m));return E((null==t?void 0:null===(e=t[0])||void 0===e?void 0:e.space_id)||(null==t?void 0:null===(l=t[0])||void 0===l?void 0:l.param)),null!=t?t:[]},{manual:!0}),{run:H,loading:K}=(0,d.Z)(async()=>{let[,e]=await (0,r.Vx)((0,r.iP)());return null!=e?e:[]},{manual:!0,onSuccess:e=>{var l;let t=null===(l=null==e?void 0:e.filter(e=>e.conv_uid===z))||void 0===l?void 0:l[0];(null==t?void 0:t.select_param)&&E(JSON.parse(null==t?void 0:t.select_param))}});(0,x.useEffect)(()=>{m&&v&&b.length&&$({chat_scene:m,app_code:v})},[v,m,$,b]),(0,x.useEffect)(()=>{v&&W()},[v]),(0,x.useEffect)(()=>{if(b.length>0){var e,l,t;let n=null===(e=null==F?void 0:null===(l=F.param_need)||void 0===l?void 0:l.filter(e=>"model"===e.type))||void 0===e?void 0:null===(t=e[0])||void 0===t?void 0:t.value;k(n||b[0])}},[b,F]),(0,x.useEffect)(()=>{var e,l,t;let n=null===(e=null==F?void 0:null===(l=F.param_need)||void 0===l?void 0:l.filter(e=>"temperature"===e.type))||void 0===e?void 0:null===(t=e[0])||void 0===t?void 0:t.value;C(n||.5)},[F]),(0,x.useEffect)(()=>{if(m&&(null==F?void 0:F.app_code)){var e,l,t,n,a,r;let i=null===(e=null==F?void 0:null===(l=F.param_need)||void 0===l?void 0:l.filter(e=>"resource"===e.type))||void 0===e?void 0:null===(t=e[0])||void 0===t?void 0:t.value,s=null===(n=null==F?void 0:null===(a=F.param_need)||void 0===a?void 0:a.filter(e=>"resource"===e.type))||void 0===n?void 0:null===(r=n[0])||void 0===r?void 0:r.bind_value;s&&E(s),["database","knowledge","plugin","awel_flow"].includes(i)&&!s&&U()}},[F,m,U]);let X=async e=>{var l,t,n;I(""),P.current=new AbortController;let a={chat_mode:m,model_name:N,user_input:e||M,conv_uid:z,temperature:Z,app_code:null==F?void 0:F.app_code,...S&&{select_param:S}};if(y&&y.length>0){let e=null==y?void 0:y.filter(e=>"view"===e.role);A.current=e[e.length-1].order+1}let r=[{role:"human",context:e||M,model_name:N,order:A.current,time_stamp:0},{role:"view",context:"",model_name:N,order:A.current,time_stamp:0,thinking:!0}],i=r.length-1;w([...y,...r]),L(!1);try{await (0,u.L)("".concat(null!==(l=g.env.API_BASE_URL)&&void 0!==l?l:"","/api/v1/chat/completions"),{method:"POST",headers:{"Content-Type":"application/json",[o.gp]:null!==(t=(0,s.n5)())&&void 0!==t?t:""},signal:P.current.signal,body:JSON.stringify(a),openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===u.a)return},onclose(){var e;null===(e=P.current)||void 0===e||e.abort(),L(!0),O(!1)},onerror(e){throw Error(e)},onmessage:e=>{let l=e.data;try{l=JSON.parse(l).vis}catch(e){l.replaceAll("\\n","\n")}"[DONE]"===l?(L(!0),O(!1)):(null==l?void 0:l.startsWith("[ERROR]"))?(r[i].context=null==l?void 0:l.replace("[ERROR]",""),r[i].thinking=!1,w([...y,...r]),L(!0),O(!1)):(O(!0),r[i].context=l,r[i].thinking=!1,w([...y,...r]))}})}catch(e){null===(n=P.current)||void 0===n||n.abort(),r[i].context="Sorry, we meet some error, please try again later.",r[i].thinking=!1,w([...r]),L(!0),O(!1)}};return(0,x.useEffect)(()=>{m&&"chat_agent"!==m&&H()},[m,H]),(0,n.jsx)(_.Provider,{value:{model:N,resource:S,setModel:k,setTemperature:C,setResource:E,temperature:Z,appInfo:F,conv_uid:z,scene:m,history:y,scrollViewRef:R,setHistory:w,resourceList:B,order:A,handleChat:X,setCanNewChat:L,ctrl:P,canAbort:V,setCarAbort:O,canNewChat:T,userInput:M,setUserInput:I,getChatHistoryRun:W},children:(0,n.jsx)(c.Z,{size:"large",className:"flex h-screen w-screen justify-center items-center max-h-screen",spinning:q||J||G||K,children:(0,n.jsxs)("div",{className:"flex flex-col h-screen bg-gradient-light dark:bg-gradient-dark p-4 pt-0",children:[(0,n.jsxs)("div",{ref:R,className:"flex flex-col flex-1 overflow-y-auto mb-3",children:[(0,n.jsx)(f.default,{}),(0,n.jsx)(j,{})]}),(null==F?void 0:F.app_code)&&(0,n.jsx)(h.default,{})]})})})}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8510,3913],{2440:function(e,l,t){var n=t(25519);l.Z=()=>{var e;return JSON.parse(null!==(e=localStorage.getItem(n.C9))&&void 0!==e?e:"")}},39718:function(e,l,t){var n=t(85893),a=t(19284),r=t(25675),i=t.n(r),s=t(67294);l.Z=(0,s.memo)(e=>{let{width:l,height:t,model:r}=e,o=(0,s.useMemo)(()=>{let e=null==r?void 0:r.replaceAll("-","_").split("_")[0],l=Object.keys(a.Me);for(let t=0;t{let{width:l,height:t,scene:s}=e,o=(0,i.useCallback)(()=>{switch(s){case"chat_knowledge":return a.je;case"chat_with_db_execute":return a.zM;case"chat_excel":return a.DL;case"chat_with_db_qa":case"chat_dba":return a.RD;case"chat_dashboard":return a.In;case"chat_agent":return a.si;case"chat_normal":return a.O7;default:return}},[s]);return(0,n.jsx)(r.Z,{className:"w-".concat(l||7," h-").concat(t||7),component:o()})}},70065:function(e,l,t){var n=t(91321);let a=(0,n.Z)({scriptUrl:"//at.alicdn.com/t/a/font_4440880_ljyggdw605.js"});l.Z=a},77451:function(e,l,t){t.r(l);var n=t(85893),a=t(76212),r=t(18102),i=t(11475),s=t(65654),o=t(34041),u=t(85576),d=t(99859),c=t(93967),m=t.n(c),v=t(67294),p=t(67421),x=t(25934),f=t(49264);let h=e=>{let{value:l,onChange:t,promptList:a}=e,[s,d]=(0,v.useState)(!1),[c,m]=(0,v.useState)(),{t:x}=(0,p.$G)();return(0,v.useEffect)(()=>{if(l){let e=null==a?void 0:a.filter(e=>e.prompt_code===l)[0];m(e)}},[a,l]),(0,n.jsxs)("div",{className:"w-2/5 flex items-center gap-2",children:[(0,n.jsx)(o.default,{className:"w-1/2",placeholder:x("please_select_prompt"),options:a,fieldNames:{label:"prompt_name",value:"prompt_code"},onChange:e=>{let l=null==a?void 0:a.filter(l=>l.prompt_code===e)[0];m(l),null==t||t(e)},value:l,allowClear:!0,showSearch:!0}),c&&(0,n.jsxs)("span",{className:"text-sm text-blue-500 cursor-pointer",onClick:()=>d(!0),children:[(0,n.jsx)(i.Z,{className:"mr-1"}),x("View_details")]}),(0,n.jsx)(u.default,{title:"Prompt ".concat(x("details")),open:s,footer:!1,width:"60%",onCancel:()=>d(!1),children:(0,n.jsx)(r.default,{children:null==c?void 0:c.content})})]})};l.default=e=>{var l,t;let{name:r,initValue:i,modelStrategyOptions:u,resourceTypeOptions:c,updateData:g,classNames:j,promptList:_}=e,{t:b}=(0,p.$G)(),[y]=d.default.useForm(),w=d.default.useWatch("prompt_template",y),N=d.default.useWatch("llm_strategy",y),k=d.default.useWatch("llm_strategy_value",y),Z=(0,v.useMemo)(()=>(null==i?void 0:i.find(e=>e.agent_name===r))||[],[i,r]),C=(0,v.useRef)([]),{run:S,loading:E,data:R}=(0,s.Z)(async()=>{var e;let[,l]=await (0,a.Vx)((0,a.m9)("priority"));return null!==(e=null==l?void 0:l.map(e=>({label:e,value:e})))&&void 0!==e?e:[]},{manual:!0});return(0,v.useEffect)(()=>{"priority"===N&&S()},[S,N]),(0,v.useEffect)(()=>{var e;let l=y.getFieldsValue();g({agent_name:r,...l,llm_strategy_value:null==l?void 0:null===(e=l.llm_strategy_value)||void 0===e?void 0:e.join(","),resources:C.current})},[y,E,r,w,N,k,g]),(0,n.jsx)("div",{className:m()(j),children:(0,n.jsxs)(d.default,{style:{width:"100%"},labelCol:{span:4},form:y,initialValues:{llm_strategy:"default",...Z,llm_strategy_value:null==Z?void 0:null===(l=Z.llm_strategy_value)||void 0===l?void 0:l.split(",")},children:[(0,n.jsx)(d.default.Item,{label:b("Prompt"),name:"prompt_template",children:(0,n.jsx)(h,{promptList:_})}),(0,n.jsx)(d.default.Item,{label:b("LLM_strategy"),required:!0,name:"llm_strategy",children:(0,n.jsx)(o.default,{className:"w-1/5",placeholder:b("please_select_LLM_strategy"),options:u,allowClear:!0})}),"priority"===N&&(0,n.jsx)(d.default.Item,{label:b("LLM_strategy_value"),required:!0,name:"llm_strategy_value",children:(0,n.jsx)(o.default,{mode:"multiple",className:"w-2/5",placeholder:b("please_select_LLM_strategy_value"),options:R,allowClear:!0})}),(0,n.jsx)(d.default.Item,{label:b("available_resources"),name:"resources",children:(0,n.jsx)(f.default,{resourceTypeOptions:c,initValue:null==Z?void 0:null===(t=Z.resources)||void 0===t?void 0:t.map(e=>({...e,uid:(0,x.Z)()})),updateData:e=>{C.current=null==e?void 0:e[1],g({agent_name:r,resources:C.current})},name:r})})]})})}},2856:function(e,l,t){t.r(l);var n=t(85893),a=t(76212),r=t(65654),i=t(99859),s=t(34041),o=t(72269),u=t(93967),d=t.n(u),c=t(67294),m=t(67421);l.default=e=>{let{uid:l,initValue:t,updateData:u,classNames:v,resourceTypeOptions:p,setCurIcon:x}=e,[f]=i.default.useForm(),h=i.default.useWatch("type",f),g=i.default.useWatch("is_dynamic",f),j=i.default.useWatch("value",f),{t:_}=(0,m.$G)(),b=(0,c.useMemo)(()=>(null==p?void 0:p.filter(e=>"all"!==e.value))||[],[p]),{run:y,data:w,loading:N}=(0,r.Z)(async e=>{var l;let[,n]=await (0,a.Vx)((0,a.RX)({type:e}));return f.setFieldsValue({value:(null==t?void 0:t.value)||(null==n?void 0:null===(l=n[0])||void 0===l?void 0:l.key)}),n||[]},{manual:!0});(0,c.useEffect)(()=>{h&&y(h)},[y,h]);let k=(0,c.useMemo)(()=>(null==w?void 0:w.map(e=>({...e,label:e.label,value:e.key+""})))||[],[w]);return(0,c.useEffect)(()=>{let e=f.getFieldsValue(),t=(null==e?void 0:e.is_dynamic)?"":null==e?void 0:e.value;u({uid:l,...e,value:t})},[l,g,f,u,j,h]),(0,n.jsx)("div",{className:d()("flex flex-1",v),children:(0,n.jsxs)(i.default,{style:{width:"100%"},form:f,labelCol:{span:4},initialValues:{...t},children:[(0,n.jsx)(i.default.Item,{label:_("resource_type"),name:"type",children:(0,n.jsx)(s.default,{className:"w-2/5",options:b,onChange:e=>{x({uid:l,icon:e})}})}),(0,n.jsx)(i.default.Item,{label:_("resource_dynamic"),name:"is_dynamic",children:(0,n.jsx)(o.Z,{style:{background:g?"#1677ff":"#ccc"}})}),!g&&(0,n.jsxs)(n.Fragment,{children:[" ","image_file"===h||"internet"===h||["text_file","excel_file"].includes(h)?null:(0,n.jsx)(i.default.Item,{label:_("resource_value"),name:"value",required:!0,children:(0,n.jsx)(s.default,{placeholder:_("please_select_param"),options:k,loading:N,className:"w-3/5",allowClear:!0})})]})]})})}},49264:function(e,l,t){t.r(l),t.d(l,{default:function(){return _}});var n=t(85893),a=t(32983),r=t(93967),i=t.n(r),s=e=>{let{className:l,imgUrl:t="/pictures/empty.png"}=e;return(0,n.jsx)("div",{className:i()("m-auto",{className:l}),children:(0,n.jsx)(a.Z,{image:t,imageStyle:{margin:"0 auto",width:"100%",height:"100%"}})})},o=t(48689),u=t(24969),d=t(34041),c=t(45030),m=t(86738),v=t(14726),p=t(96486),x=t(67294),f=t(67421),h=t(25934),g=t(83072),j=t(2856),_=e=>{var l;let{name:t,updateData:a,resourceTypeOptions:r,initValue:_}=e,{t:b}=(0,f.$G)(),y=(0,x.useRef)(_||[]),[w,N]=(0,x.useState)({uid:"",icon:""}),[k,Z]=(0,x.useState)((null==_?void 0:_.map(e=>({...e,icon:e.type,initVal:e})))||[]),[C,S]=(0,x.useState)([...k]),[E,R]=(0,x.useState)((null==k?void 0:null===(l=k[0])||void 0===l?void 0:l.uid)||""),[M,I]=(0,x.useState)(""),V=(e,l)=>{var n,r;null==e||e.stopPropagation();let i=null===(n=y.current)||void 0===n?void 0:n.findIndex(e=>e.uid===E),s=null==k?void 0:k.filter(e=>e.uid!==l.uid);y.current=y.current.filter(e=>e.uid!==l.uid)||[],a([t,y.current]),Z(s),i===(null==k?void 0:k.length)-1&&0!==i&&setTimeout(()=>{var e;R((null==s?void 0:null===(e=s[s.length-1])||void 0===e?void 0:e.uid)||"")},0),R((null==s?void 0:null===(r=s[i])||void 0===r?void 0:r.uid)||"")};return(0,x.useEffect)(()=>{S([...k])},[k]),(0,x.useEffect)(()=>{Z(k.map(e=>(null==w?void 0:w.uid)===e.uid?{...e,icon:w.icon}:e))},[w]),(0,n.jsxs)("div",{className:"flex flex-1 h-64 px-3 py-4 border border-[#d6d8da] rounded-md",children:[(0,n.jsxs)("div",{className:"flex flex-col w-40 h-full",children:[(0,n.jsx)(d.default,{options:r,className:"w-full h-8",variant:"borderless",defaultValue:"all",onChange:e=>{var l,t;if("all"===e)S(k),R((null==k?void 0:null===(l=k[0])||void 0===l?void 0:l.uid)||"");else{let l=null==k?void 0:k.filter(l=>(null==l?void 0:l.icon)===e);R((null==l?void 0:null===(t=l[0])||void 0===t?void 0:t.uid)||""),S(l)}}}),(0,n.jsx)("div",{className:"flex flex-1 flex-col gap-1 overflow-y-auto",children:null==C?void 0:C.map(e=>(0,n.jsxs)("div",{className:i()("flex h-8 items-center px-3 pl-[0.6rem] rounded-md hover:bg-[#f5faff] hover:dark:bg-[#606264] cursor-pointer relative",{"bg-[#f5faff] dark:bg-[#606264]":e.uid===E}),onClick:()=>{R(e.uid||"")},onMouseEnter:()=>{I(e.uid||"")},onMouseLeave:()=>{I("")},children:[g.resourceTypeIcon[e.icon||""],(0,n.jsx)(c.Z.Text,{className:i()("flex flex-1 items-center text-sm p-0 m-0 mx-2 line-clamp-1",{"text-[#0c75fc]":e.uid===E}),editable:{autoSize:{maxRows:1},onChange:l=>{Z(k.map(t=>t.uid===e.uid?{...t,name:l}:t)),y.current=y.current.map(t=>t.uid===e.uid?{...t,name:l}:t),a([t,y.current])}},ellipsis:{tooltip:!0},children:e.name}),(0,n.jsx)(m.Z,{title:b("want_delete"),onConfirm:l=>{V(l,e)},onCancel:e=>null==e?void 0:e.stopPropagation(),children:(0,n.jsx)(o.Z,{className:"text-sm cursor-pointer absolute right-2 ".concat(M===e.uid?"opacity-100":"opacity-0"),style:{top:"50%",transform:"translateY(-50%)"},onClick:e=>e.stopPropagation()})})]},e.uid))}),(0,n.jsx)(v.ZP,{className:"w-full h-8",type:"dashed",block:!0,icon:(0,n.jsx)(u.Z,{}),onClick:()=>{var e,l;let n=(0,h.Z)();y.current=(0,p.concat)(y.current,[{is_dynamic:!1,type:null===(e=null==r?void 0:r.filter(e=>"all"!==e.value))||void 0===e?void 0:e[0].value,value:"",uid:n,name:b("resource")+" ".concat(y.current.length+1)}].filter(Boolean)),a([t,y.current]),Z(e=>{var l,t,a;return[...e,{icon:(null===(l=null==r?void 0:r.filter(e=>"all"!==e.value))||void 0===l?void 0:null===(t=l[0])||void 0===t?void 0:t.value)||"",uid:n,initVal:{is_dynamic:!1,type:null===(a=null==r?void 0:r.filter(e=>"all"!==e.value))||void 0===a?void 0:a[0].value,value:"",uid:n,name:b("resource")+" ".concat(e.length+1)},name:b("resource")+" ".concat(e.length+1)}]}),R(n),N({uid:n,icon:null===(l=null==r?void 0:r.filter(e=>"all"!==e.value))||void 0===l?void 0:l[0].value})},children:b("add_resource")})]}),(0,n.jsx)("div",{className:"flex flex-1 ml-6 ",children:C&&(null==C?void 0:C.length)>0?(0,n.jsx)("div",{className:"flex flex-1",children:null==C?void 0:C.map(e=>(0,n.jsx)(j.default,{classNames:e.uid===E?"block":"hidden",resourceTypeOptions:r,initValue:e.initVal,setCurIcon:N,updateData:e=>{var l;y.current=null===(l=y.current)||void 0===l?void 0:l.map(l=>(null==l?void 0:l.uid)===(null==e?void 0:e.uid)?{...l,...e}:l),a([t,y.current])},uid:e.uid||""},e.uid))}):(0,n.jsx)(s,{className:"w-40 h-40"})})]})}},83072:function(e,l,t){t.r(l),t.d(l,{agentIcon:function(){return _},resourceTypeIcon:function(){return b}});var n=t(85893),a=t(70065),r=t(89035),i=t(48869),s=t(61086),o=t(57132),u=t(97879),d=t(32319),c=t(79383),m=t(13520),v=t(14079),p=t(10524),x=t(56466),f=t(26911),h=t(97175),g=t(16801),j=t(13179);t(67294);let _={CodeEngineer:(0,n.jsx)(r.Z,{}),Reporter:(0,n.jsx)(i.Z,{}),DataScientist:(0,n.jsx)(s.Z,{}),Summarizer:(0,n.jsx)(o.Z,{}),ToolExpert:(0,n.jsx)(a.Z,{type:"icon-plugin",style:{fontSize:17.25,marginTop:2}}),Indicator:(0,n.jsx)(u.Z,{}),Dbass:(0,n.jsx)(d.Z,{})},b={all:(0,n.jsx)(c.Z,{}),database:(0,n.jsx)(m.Z,{}),knowledge:(0,n.jsx)(v.Z,{}),internet:(0,n.jsx)(p.Z,{}),plugin:(0,n.jsx)(x.Z,{}),text_file:(0,n.jsx)(f.Z,{}),excel_file:(0,n.jsx)(h.Z,{}),image_file:(0,n.jsx)(g.Z,{}),awel_flow:(0,n.jsx)(j.Z,{})};l.default=()=>(0,n.jsx)(n.Fragment,{})},56397:function(e,l,t){t.r(l);var n=t(85893),a=t(48218),r=t(58638),i=t(31418),s=t(45030),o=t(20640),u=t.n(o),d=t(67294),c=t(73913);l.default=(0,d.memo)(()=>{var e;let{appInfo:l}=(0,d.useContext)(c.MobileChatContext),{message:t}=i.Z.useApp(),[o,m]=(0,d.useState)(0);if(!(null==l?void 0:l.app_code))return null;let v=async()=>{let e=u()("dingtalk://dingtalkclient/page/link?url=".concat(encodeURIComponent(location.href),"&pc_slide=true"));t[e?"success":"error"](e?"复制成功":"复制失败")};return o>6&&t.info(JSON.stringify(window.navigator.userAgent),2,()=>{m(0)}),(0,n.jsxs)("header",{className:"flex w-full items-center justify-between bg-[rgba(255,255,255,0.9)] border dark:bg-black dark:border-[rgba(255,255,255,0.6)] rounded-xl mx-auto px-4 py-2 mb-4 sticky top-4 z-50 mt-4 shadow-md",children:[(0,n.jsxs)("div",{className:"flex gap-2 items-center",onClick:()=>m(o+1),children:[(0,n.jsx)(a.Z,{scene:(null==l?void 0:null===(e=l.team_context)||void 0===e?void 0:e.chat_scene)||"chat_agent",width:8,height:8}),(0,n.jsxs)("div",{className:"flex flex-col ml-2",children:[(0,n.jsx)(s.Z.Text,{className:"text-md font-bold line-clamp-2",children:null==l?void 0:l.app_name}),(0,n.jsx)(s.Z.Text,{className:"text-sm line-clamp-2",children:null==l?void 0:l.app_describe})]})]}),(0,n.jsx)("div",{onClick:v,className:"flex items-center justify-center w-10 h-10 bg-[#ffffff99] dark:bg-[rgba(255,255,255,0.2)] border border-white dark:border-[rgba(255,255,255,0.2)] rounded-[50%] cursor-pointer",children:(0,n.jsx)(r.Z,{className:"text-lg"})})]})})},74638:function(e,l,t){t.r(l);var n=t(85893),a=t(76212),r=t(62418),i=t(25519),s=t(30159),o=t(87740),u=t(50888),d=t(52645),c=t(27496),m=t(1375),v=t(65654),p=t(66309),x=t(55241),f=t(74330),h=t(25278),g=t(14726),j=t(93967),_=t.n(j),b=t(39332),y=t(67294),w=t(73913),N=t(7001),k=t(73749),Z=t(97109),C=t(83454);let S=["magenta","orange","geekblue","purple","cyan","green"];l.default=()=>{var e,l;let t=(0,b.useSearchParams)(),j=null!==(l=null==t?void 0:t.get("ques"))&&void 0!==l?l:"",{history:E,model:R,scene:M,temperature:I,resource:V,conv_uid:O,appInfo:T,scrollViewRef:L,order:P,userInput:A,ctrl:D,canAbort:z,canNewChat:W,setHistory:q,setCanNewChat:F,setCarAbort:$,setUserInput:J}=(0,y.useContext)(w.MobileChatContext),[U,B]=(0,y.useState)(!1),[G,H]=(0,y.useState)(!1),K=async e=>{var l,t,n;J(""),D.current=new AbortController;let a={chat_mode:M,model_name:R,user_input:e||A,conv_uid:O,temperature:I,app_code:null==T?void 0:T.app_code,...V&&{select_param:JSON.stringify(V)}};if(E&&E.length>0){let e=null==E?void 0:E.filter(e=>"view"===e.role);P.current=e[e.length-1].order+1}let s=[{role:"human",context:e||A,model_name:R,order:P.current,time_stamp:0},{role:"view",context:"",model_name:R,order:P.current,time_stamp:0,thinking:!0}],o=s.length-1;q([...E,...s]),F(!1);try{await (0,m.L)("".concat(null!==(l=C.env.API_BASE_URL)&&void 0!==l?l:"","/api/v1/chat/completions"),{method:"POST",headers:{"Content-Type":"application/json",[i.gp]:null!==(t=(0,r.n5)())&&void 0!==t?t:""},signal:D.current.signal,body:JSON.stringify(a),openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===m.a)return},onclose(){var e;null===(e=D.current)||void 0===e||e.abort(),F(!0),$(!1)},onerror(e){throw Error(e)},onmessage:e=>{let l=e.data;try{l=JSON.parse(l).vis}catch(e){l.replaceAll("\\n","\n")}"[DONE]"===l?(F(!0),$(!1)):(null==l?void 0:l.startsWith("[ERROR]"))?(s[o].context=null==l?void 0:l.replace("[ERROR]",""),s[o].thinking=!1,q([...E,...s]),F(!0),$(!1)):($(!0),s[o].context=l,s[o].thinking=!1,q([...E,...s]))}})}catch(e){null===(n=D.current)||void 0===n||n.abort(),s[o].context="Sorry, we meet some error, please try again later.",s[o].thinking=!1,q([...s]),F(!0),$(!1)}},X=async()=>{A.trim()&&W&&await K()};(0,y.useEffect)(()=>{var e,l;null===(e=L.current)||void 0===e||e.scrollTo({top:null===(l=L.current)||void 0===l?void 0:l.scrollHeight,behavior:"auto"})},[E,L]);let Y=(0,y.useMemo)(()=>{if(!T)return[];let{param_need:e=[]}=T;return null==e?void 0:e.map(e=>e.type)},[T]),Q=(0,y.useMemo)(()=>{var e;return 0===E.length&&T&&!!(null==T?void 0:null===(e=T.recommend_questions)||void 0===e?void 0:e.length)},[E,T]),{run:ee,loading:el}=(0,v.Z)(async()=>await (0,a.Vx)((0,a.zR)(O)),{manual:!0,onSuccess:()=>{q([])}});return(0,y.useEffect)(()=>{j&&R&&O&&T&&K(j)},[T,O,R,j]),(0,n.jsxs)("div",{className:"flex flex-col",children:[Q&&(0,n.jsx)("ul",{children:null==T?void 0:null===(e=T.recommend_questions)||void 0===e?void 0:e.map((e,l)=>(0,n.jsx)("li",{className:"mb-3",children:(0,n.jsx)(p.Z,{color:S[l],className:"p-2 rounded-xl",onClick:async()=>{K(e.question)},children:e.question})},e.id))}),(0,n.jsxs)("div",{className:"flex items-center justify-between gap-1",children:[(0,n.jsxs)("div",{className:"flex gap-2 mb-1 w-full overflow-x-auto",children:[(null==Y?void 0:Y.includes("model"))&&(0,n.jsx)(N.default,{}),(null==Y?void 0:Y.includes("resource"))&&(0,n.jsx)(k.default,{}),(null==Y?void 0:Y.includes("temperature"))&&(0,n.jsx)(Z.default,{})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between text-lg font-bold",children:[(0,n.jsx)(x.Z,{content:"暂停回复",trigger:["hover"],children:(0,n.jsx)(s.Z,{className:_()("p-2 cursor-pointer",{"text-[#0c75fc]":z,"text-gray-400":!z}),onClick:()=>{var e;z&&(null===(e=D.current)||void 0===e||e.abort(),setTimeout(()=>{$(!1),F(!0)},100))}})}),(0,n.jsx)(x.Z,{content:"再来一次",trigger:["hover"],children:(0,n.jsx)(o.Z,{className:_()("p-2 cursor-pointer",{"text-gray-400":!E.length||!W}),onClick:()=>{var e,l;if(!W||0===E.length)return;let t=null===(e=null===(l=E.filter(e=>"human"===e.role))||void 0===l?void 0:l.slice(-1))||void 0===e?void 0:e[0];K((null==t?void 0:t.context)||"")}})}),el?(0,n.jsx)(f.Z,{spinning:el,indicator:(0,n.jsx)(u.Z,{style:{fontSize:18},spin:!0}),className:"p-2"}):(0,n.jsx)(x.Z,{content:"清除历史",trigger:["hover"],children:(0,n.jsx)(d.Z,{className:_()("p-2 cursor-pointer",{"text-gray-400":!E.length||!W}),onClick:()=>{W&&ee()}})})]})]}),(0,n.jsxs)("div",{className:_()("flex py-2 px-3 items-center justify-between bg-white dark:bg-[#242733] dark:border-[#6f7f95] rounded-xl border",{"border-[#0c75fc] dark:border-[rgba(12,117,252,0.8)]":U}),children:[(0,n.jsx)(h.default.TextArea,{placeholder:"可以问我任何问题",className:"w-full resize-none border-0 p-0 focus:shadow-none",value:A,autoSize:{minRows:1},onKeyDown:e=>{if("Enter"===e.key&&!e.shiftKey){if(G){e.preventDefault();return}A.trim()&&(e.preventDefault(),X())}},onChange:e=>{J(e.target.value)},onFocus:()=>{B(!0)},onBlur:()=>B(!1),onCompositionStartCapture:()=>{H(!0)},onCompositionEndCapture:()=>{setTimeout(()=>{H(!1)},0)}}),(0,n.jsx)(g.ZP,{type:"primary",className:_()("flex items-center justify-center rounded-lg bg-button-gradient border-0 ml-2",{"opacity-40 cursor-not-allowed":!A.trim()||!W}),onClick:X,children:W?(0,n.jsx)(c.Z,{}):(0,n.jsx)(f.Z,{indicator:(0,n.jsx)(u.Z,{className:"text-white"})})})]})]})}},7001:function(e,l,t){t.r(l);var n=t(85893),a=t(41468),r=t(39718),i=t(94668),s=t(85418),o=t(55241),u=t(67294),d=t(73913);l.default=()=>{let{modelList:e}=(0,u.useContext)(a.p),{model:l,setModel:t}=(0,u.useContext)(d.MobileChatContext),c=(0,u.useMemo)(()=>e.length>0?e.map(e=>({label:(0,n.jsxs)("div",{className:"flex items-center gap-2",onClick:()=>{t(e)},children:[(0,n.jsx)(r.Z,{width:14,height:14,model:e}),(0,n.jsx)("span",{className:"text-xs",children:e})]}),key:e})):[],[e,t]);return(0,n.jsx)(s.Z,{menu:{items:c},placement:"top",trigger:["click"],children:(0,n.jsx)(o.Z,{content:l,children:(0,n.jsxs)("div",{className:"flex items-center gap-1 border rounded-xl bg-white dark:bg-black p-2 flex-shrink-0",children:[(0,n.jsx)(r.Z,{width:16,height:16,model:l}),(0,n.jsx)("span",{className:"text-xs font-medium line-clamp-1",style:{maxWidth:96},children:l}),(0,n.jsx)(i.Z,{rotate:90})]})})})}},46568:function(e,l,t){t.r(l);var n=t(85893),a=t(25675),r=t.n(a),i=t(67294);l.default=(0,i.memo)(e=>{let{width:l,height:t,src:a,label:i}=e;return(0,n.jsx)(r(),{width:l||14,height:t||14,src:a,alt:i||"db-icon",priority:!0})})},73749:function(e,l,t){t.r(l);var n=t(85893),a=t(76212),r=t(62418),i=t(50888),s=t(94668),o=t(83266),u=t(65654),d=t(74330),c=t(23799),m=t(85418),v=t(67294),p=t(73913),x=t(46568);l.default=()=>{let{appInfo:e,resourceList:l,scene:t,model:f,conv_uid:h,getChatHistoryRun:g,setResource:j,resource:_}=(0,v.useContext)(p.MobileChatContext),[b,y]=(0,v.useState)(null),w=(0,v.useMemo)(()=>{var l,t,n;return null===(l=null==e?void 0:null===(t=e.param_need)||void 0===t?void 0:t.filter(e=>"resource"===e.type))||void 0===l?void 0:null===(n=l[0])||void 0===n?void 0:n.value},[e]),N=(0,v.useMemo)(()=>l&&l.length>0?l.map(e=>({label:(0,n.jsxs)("div",{className:"flex items-center gap-2",onClick:()=>{y(e),j(e.space_id||e.param)},children:[(0,n.jsx)(x.default,{width:14,height:14,src:r.S$[e.type].icon,label:r.S$[e.type].label}),(0,n.jsx)("span",{className:"text-xs",children:e.param})]}),key:e.space_id||e.param})):[],[l,j]),{run:k,loading:Z}=(0,u.Z)(async e=>{let[,l]=await (0,a.Vx)((0,a.qn)({convUid:h,chatMode:t,data:e,model:f,config:{timeout:36e5}}));return j(l),l},{manual:!0,onSuccess:async()=>{await g()}}),C=async e=>{let l=new FormData;l.append("doc_file",null==e?void 0:e.file),await k(l)},S=(0,v.useMemo)(()=>Z?(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)(d.Z,{size:"small",indicator:(0,n.jsx)(i.Z,{spin:!0})}),(0,n.jsx)("span",{className:"text-xs",children:"上传中"})]}):_?(0,n.jsxs)("div",{className:"flex gap-1",children:[(0,n.jsx)("span",{className:"text-xs",children:_.file_name}),(0,n.jsx)(s.Z,{rotate:90})]}):(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)(o.Z,{className:"text-base"}),(0,n.jsx)("span",{className:"text-xs",children:"上传文件"})]}),[Z,_]);return(0,n.jsx)(n.Fragment,{children:(()=>{switch(w){case"excel_file":case"text_file":case"image_file":return(0,n.jsx)("div",{className:"flex items-center justify-center gap-1 border rounded-xl bg-white dark:bg-black px-2 flex-shrink-0",children:(0,n.jsx)(c.default,{name:"file",accept:".xlsx,.xls",maxCount:1,showUploadList:!1,beforeUpload:()=>!1,onChange:C,className:"flex h-full w-full items-center justify-center",children:S})});case"database":case"knowledge":case"plugin":case"awel_flow":var e,t,a,i,o;if(!(null==l?void 0:l.length))return null;return(0,n.jsx)(m.Z,{menu:{items:N},placement:"top",trigger:["click"],children:(0,n.jsxs)("div",{className:"flex items-center gap-1 border rounded-xl bg-white dark:bg-black p-2 flex-shrink-0",children:[(0,n.jsx)(x.default,{width:14,height:14,src:null===(e=r.S$[(null==b?void 0:b.type)||(null==l?void 0:null===(t=l[0])||void 0===t?void 0:t.type)])||void 0===e?void 0:e.icon,label:null===(a=r.S$[(null==b?void 0:b.type)||(null==l?void 0:null===(i=l[0])||void 0===i?void 0:i.type)])||void 0===a?void 0:a.label}),(0,n.jsx)("span",{className:"text-xs font-medium",children:(null==b?void 0:b.param)||(null==l?void 0:null===(o=l[0])||void 0===o?void 0:o.param)}),(0,n.jsx)(s.Z,{rotate:90})]})})}})()})}},97109:function(e,l,t){t.r(l);var n=t(85893),a=t(70065),r=t(85418),i=t(30568),s=t(67294),o=t(73913);l.default=()=>{let{temperature:e,setTemperature:l}=(0,s.useContext)(o.MobileChatContext),t=e=>{isNaN(e)||l(e)};return(0,n.jsx)(r.Z,{trigger:["click"],dropdownRender:()=>(0,n.jsx)("div",{className:"flex h-28 bg-white dark:bg-[rgba(255,255,255,0.5)] items-center justify-center rounded-xl py-3",children:(0,n.jsx)(i.Z,{defaultValue:.5,max:1,min:0,step:.1,vertical:!0,onChange:t,value:e})}),placement:"top",children:(0,n.jsxs)("div",{className:"flex items-center justify-between border rounded-xl bg-white dark:bg-black w-14 p-2 flex-shrink-0",children:[(0,n.jsx)(a.Z,{type:"icon-icons-temperature",className:"text-sm"}),(0,n.jsx)("span",{className:"text-xs font-medium",children:e})]})})}},73913:function(e,l,t){t.r(l),t.d(l,{MobileChatContext:function(){return _}});var n=t(85893),a=t(41468),r=t(76212),i=t(2440),s=t(62418),o=t(25519),u=t(1375),d=t(65654),c=t(74330),m=t(5152),v=t.n(m),p=t(39332),x=t(67294),f=t(56397),h=t(74638),g=t(83454);let j=v()(()=>Promise.all([t.e(3662),t.e(7034),t.e(6106),t.e(8674),t.e(3166),t.e(2837),t.e(2168),t.e(8163),t.e(4041),t.e(2398),t.e(1300),t.e(4567),t.e(9773),t.e(3457),t.e(4035),t.e(152),t.e(4705),t.e(9202),t.e(5782),t.e(2783),t.e(8709),t.e(7249),t.e(9870)]).then(t.bind(t,36818)),{loadableGenerated:{webpack:()=>[36818]},ssr:!1}),_=(0,x.createContext)({model:"",temperature:.5,resource:null,setModel:()=>{},setTemperature:()=>{},setResource:()=>{},scene:"",history:[],setHistory:()=>{},scrollViewRef:{current:null},appInfo:{},conv_uid:"",resourceList:[],order:{current:1},handleChat:()=>Promise.resolve(),canAbort:!1,setCarAbort:()=>{},canNewChat:!1,setCanNewChat:()=>{},ctrl:{current:void 0},userInput:"",setUserInput:()=>{},getChatHistoryRun:()=>{}});l.default=()=>{var e,l;let t=(0,p.useSearchParams)(),m=null!==(e=null==t?void 0:t.get("chat_scene"))&&void 0!==e?e:"",v=null!==(l=null==t?void 0:t.get("app_code"))&&void 0!==l?l:"",{modelList:b}=(0,x.useContext)(a.p),[y,w]=(0,x.useState)([]),[N,k]=(0,x.useState)(""),[Z,C]=(0,x.useState)(.5),[S,E]=(0,x.useState)(null),R=(0,x.useRef)(null),[M,I]=(0,x.useState)(""),[V,O]=(0,x.useState)(!1),[T,L]=(0,x.useState)(!0),P=(0,x.useRef)(),A=(0,x.useRef)(1),D=(0,i.Z)(),z=(0,x.useMemo)(()=>"".concat(null==D?void 0:D.user_no,"_").concat(v),[v,D]),{run:W,loading:q}=(0,d.Z)(async()=>await (0,r.Vx)((0,r.$i)("".concat(null==D?void 0:D.user_no,"_").concat(v))),{manual:!0,onSuccess:e=>{let[,l]=e,t=null==l?void 0:l.filter(e=>"view"===e.role);t&&t.length>0&&(A.current=t[t.length-1].order+1),w(l||[])}}),{data:F,run:$,loading:J}=(0,d.Z)(async e=>{let[,l]=await (0,r.Vx)((0,r.BN)(e));return null!=l?l:{}},{manual:!0}),{run:U,data:B,loading:G}=(0,d.Z)(async()=>{var e,l;let[,t]=await (0,r.Vx)((0,r.vD)(m));return E((null==t?void 0:null===(e=t[0])||void 0===e?void 0:e.space_id)||(null==t?void 0:null===(l=t[0])||void 0===l?void 0:l.param)),null!=t?t:[]},{manual:!0}),{run:H,loading:K}=(0,d.Z)(async()=>{let[,e]=await (0,r.Vx)((0,r.iP)());return null!=e?e:[]},{manual:!0,onSuccess:e=>{var l;let t=null===(l=null==e?void 0:e.filter(e=>e.conv_uid===z))||void 0===l?void 0:l[0];(null==t?void 0:t.select_param)&&E(JSON.parse(null==t?void 0:t.select_param))}});(0,x.useEffect)(()=>{m&&v&&b.length&&$({chat_scene:m,app_code:v})},[v,m,$,b]),(0,x.useEffect)(()=>{v&&W()},[v]),(0,x.useEffect)(()=>{if(b.length>0){var e,l,t;let n=null===(e=null==F?void 0:null===(l=F.param_need)||void 0===l?void 0:l.filter(e=>"model"===e.type))||void 0===e?void 0:null===(t=e[0])||void 0===t?void 0:t.value;k(n||b[0])}},[b,F]),(0,x.useEffect)(()=>{var e,l,t;let n=null===(e=null==F?void 0:null===(l=F.param_need)||void 0===l?void 0:l.filter(e=>"temperature"===e.type))||void 0===e?void 0:null===(t=e[0])||void 0===t?void 0:t.value;C(n||.5)},[F]),(0,x.useEffect)(()=>{if(m&&(null==F?void 0:F.app_code)){var e,l,t,n,a,r;let i=null===(e=null==F?void 0:null===(l=F.param_need)||void 0===l?void 0:l.filter(e=>"resource"===e.type))||void 0===e?void 0:null===(t=e[0])||void 0===t?void 0:t.value,s=null===(n=null==F?void 0:null===(a=F.param_need)||void 0===a?void 0:a.filter(e=>"resource"===e.type))||void 0===n?void 0:null===(r=n[0])||void 0===r?void 0:r.bind_value;s&&E(s),["database","knowledge","plugin","awel_flow"].includes(i)&&!s&&U()}},[F,m,U]);let X=async e=>{var l,t,n;I(""),P.current=new AbortController;let a={chat_mode:m,model_name:N,user_input:e||M,conv_uid:z,temperature:Z,app_code:null==F?void 0:F.app_code,...S&&{select_param:S}};if(y&&y.length>0){let e=null==y?void 0:y.filter(e=>"view"===e.role);A.current=e[e.length-1].order+1}let r=[{role:"human",context:e||M,model_name:N,order:A.current,time_stamp:0},{role:"view",context:"",model_name:N,order:A.current,time_stamp:0,thinking:!0}],i=r.length-1;w([...y,...r]),L(!1);try{await (0,u.L)("".concat(null!==(l=g.env.API_BASE_URL)&&void 0!==l?l:"","/api/v1/chat/completions"),{method:"POST",headers:{"Content-Type":"application/json",[o.gp]:null!==(t=(0,s.n5)())&&void 0!==t?t:""},signal:P.current.signal,body:JSON.stringify(a),openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===u.a)return},onclose(){var e;null===(e=P.current)||void 0===e||e.abort(),L(!0),O(!1)},onerror(e){throw Error(e)},onmessage:e=>{let l=e.data;try{l=JSON.parse(l).vis}catch(e){l.replaceAll("\\n","\n")}"[DONE]"===l?(L(!0),O(!1)):(null==l?void 0:l.startsWith("[ERROR]"))?(r[i].context=null==l?void 0:l.replace("[ERROR]",""),r[i].thinking=!1,w([...y,...r]),L(!0),O(!1)):(O(!0),r[i].context=l,r[i].thinking=!1,w([...y,...r]))}})}catch(e){null===(n=P.current)||void 0===n||n.abort(),r[i].context="Sorry, we meet some error, please try again later.",r[i].thinking=!1,w([...r]),L(!0),O(!1)}};return(0,x.useEffect)(()=>{m&&"chat_agent"!==m&&H()},[m,H]),(0,n.jsx)(_.Provider,{value:{model:N,resource:S,setModel:k,setTemperature:C,setResource:E,temperature:Z,appInfo:F,conv_uid:z,scene:m,history:y,scrollViewRef:R,setHistory:w,resourceList:B,order:A,handleChat:X,setCanNewChat:L,ctrl:P,canAbort:V,setCarAbort:O,canNewChat:T,userInput:M,setUserInput:I,getChatHistoryRun:W},children:(0,n.jsx)(c.Z,{size:"large",className:"flex h-screen w-screen justify-center items-center max-h-screen",spinning:q||J||G||K,children:(0,n.jsxs)("div",{className:"flex flex-col h-screen bg-gradient-light dark:bg-gradient-dark p-4 pt-0",children:[(0,n.jsxs)("div",{ref:R,className:"flex flex-col flex-1 overflow-y-auto mb-3",children:[(0,n.jsx)(f.default,{}),(0,n.jsx)(j,{})]}),(null==F?void 0:F.app_code)&&(0,n.jsx)(h.default,{})]})})})}}}]); \ No newline at end of file diff --git a/dbgpt/app/static/web/_next/static/chunks/8709-ff85477a4bf2c6da.js b/dbgpt/app/static/web/_next/static/chunks/8709-d105c344eae67537.js similarity index 99% rename from dbgpt/app/static/web/_next/static/chunks/8709-ff85477a4bf2c6da.js rename to dbgpt/app/static/web/_next/static/chunks/8709-d105c344eae67537.js index b1b0a2cd4..a3e5acbe2 100644 --- a/dbgpt/app/static/web/_next/static/chunks/8709-ff85477a4bf2c6da.js +++ b/dbgpt/app/static/web/_next/static/chunks/8709-d105c344eae67537.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8709],{21332:function(e,t,a){a.d(t,{_:function(){return I},a:function(){return D}});var l=a(85893),r=a(41468),n=a(64371),s=a(23430),i=a(99802),c=a(34041),d=a(71230),o=a(15746),u=a(42075),m=a(83062),h=a(14726),x=a(32983),p=a(96486),v=a(67294);let g=e=>{if(!e)return;let t=e.getContainer(),a=t.getElementsByTagName("canvas")[0];return a};var f=a(64352),j=a(8625);let y=e=>{let{charts:t,scopeOfCharts:a,ruleConfig:l}=e,r={};if(null==t||t.forEach(e=>{if(e.chartKnowledge.toSpec){let t=e.chartKnowledge.toSpec;e.chartKnowledge.toSpec=(e,a)=>({...t(e,a),dataProps:a})}else e.chartKnowledge.toSpec=(e,t)=>({dataProps:t});r[e.chartType]=e.chartKnowledge}),(null==a?void 0:a.exclude)&&a.exclude.forEach(e=>{Object.keys(r).includes(e)&&delete r[e]}),null==a?void 0:a.include){let e=a.include;Object.keys(r).forEach(t=>{e.includes(t)||delete r[t]})}let n={...a,custom:r},s={...l},i=new f.w({ckbCfg:n,ruleCfg:s});return i},b=e=>{var t;let{data:a,dataMetaMap:l,myChartAdvisor:r}=e,n=l?Object.keys(l).map(e=>({name:e,...l[e]})):null,s=new j.Z(a).info(),i=(0,p.size)(s)>2?null==s?void 0:s.filter(e=>"string"!==e.recommendation&&"date"!==e.recommendation||e.distinct&&e.distinct>1):s,c=null==r?void 0:r.adviseWithLog({data:a,dataProps:n,fields:null==i?void 0:i.map(e=>e.name)});return null!==(t=null==c?void 0:c.advices)&&void 0!==t?t:[]};function N(e,t){return t.every(t=>e.includes(t))}function _(e,t){let a=t.find(t=>t.name===e);return(null==a?void 0:a.recommendation)==="date"?t=>new Date(t[e]):e}function k(e){return e.find(e=>{var t;return e.levelOfMeasurements&&(t=e.levelOfMeasurements,["Time","Ordinal"].some(e=>t.includes(e)))})}function Z(e){return e.find(e=>e.levelOfMeasurements&&N(e.levelOfMeasurements,["Nominal"]))}let w=e=>{let{data:t,xField:a}=e,l=(0,p.uniq)(t.map(e=>e[a]));return l.length<=1},C=(e,t,a)=>{let{field4Split:l,field4X:r}=a;if((null==l?void 0:l.name)&&(null==r?void 0:r.name)){let a=e[l.name],n=t.filter(e=>l.name&&e[l.name]===a);return w({data:n,xField:r.name})?5:void 0}return(null==r?void 0:r.name)&&w({data:t,xField:r.name})?5:void 0},S=e=>{let{data:t,chartType:a,xField:l}=e,r=(0,p.cloneDeep)(t);try{if(a.includes("line")&&(null==l?void 0:l.name)&&"date"===l.recommendation)return r.sort((e,t)=>new Date(e[l.name]).getTime()-new Date(t[l.name]).getTime()),r;a.includes("line")&&(null==l?void 0:l.name)&&["float","integer"].includes(l.recommendation)&&r.sort((e,t)=>e[l.name]-t[l.name])}catch(e){console.error(e)}return r},O=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.map(e=>{let a={};return Object.keys(e).forEach(l=>{a[l]=e[l]===t?null:e[l]}),a})},P="multi_line_chart",E="multi_measure_line_chart",T=[{chartType:"multi_line_chart",chartKnowledge:{id:P,name:"multi_line_chart",alias:["multi_line_chart"],family:["LineCharts"],def:"multi_line_chart uses lines with segments to show changes in data in a ordinal dimension",purpose:["Comparison","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:1,maxQty:"*",fieldConditions:["Interval"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Direction","Position"],recRate:"Recommended",toSpec:(e,t)=>{var a,l;let r=k(t),n=Z(t),s=null!==(a=null!=r?r:n)&&void 0!==a?a:t[0],i=t.filter(e=>e.name!==(null==s?void 0:s.name)),c=null!==(l=i.filter(e=>e.levelOfMeasurements&&N(e.levelOfMeasurements,["Interval"])))&&void 0!==l?l:[i[0]],d=i.filter(e=>!c.find(t=>t.name===e.name)).find(e=>e.levelOfMeasurements&&N(e.levelOfMeasurements,["Nominal"]));if(!s||!c)return null;let o={type:"view",autoFit:!0,data:S({data:e,chartType:P,xField:s}),children:[]};return c.forEach(a=>{let l={type:"line",encode:{x:_(s.name,t),y:a.name,size:t=>C(t,e,{field4Split:d,field4X:s})},legend:{size:!1}};d&&(l.encode.color=d.name),o.children.push(l)}),o}},chineseName:"折线图"},{chartType:"multi_measure_column_chart",chartKnowledge:{id:"multi_measure_column_chart",name:"multi_measure_column_chart",alias:["multi_measure_column_chart"],family:["ColumnCharts"],def:"multi_measure_column_chart uses lines with segments to show changes in data in a ordinal dimension",purpose:["Comparison","Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Direction","Position"],recRate:"Recommended",toSpec:(e,t)=>{try{let a=null==t?void 0:t.filter(e=>N(e.levelOfMeasurements,["Interval"])),l=Z(t),r=k(t),n=null!=l?l:r;if(!n||!a)return null;let s={type:"view",data:e,children:[]};return null==a||a.forEach(e=>{let t={type:"interval",encode:{x:n.name,y:e.name,color:()=>e.name,series:()=>e.name}};s.children.push(t)}),s}catch(e){return console.log(e),null}}},chineseName:"折线图"},{chartType:"multi_measure_line_chart",chartKnowledge:{id:E,name:"multi_measure_line_chart",alias:["multi_measure_line_chart"],family:["LineCharts"],def:"multi_measure_line_chart uses lines with segments to show changes in data in a ordinal dimension",purpose:["Comparison","Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Direction","Position"],recRate:"Recommended",toSpec:(e,t)=>{try{var a,l;let r=null!==(l=null!==(a=Z(t))&&void 0!==a?a:k(t))&&void 0!==l?l:t[0],n=null==t?void 0:t.filter(e=>e.name!==(null==r?void 0:r.name)&&N(e.levelOfMeasurements,["Interval"]));if(!r||!n)return null;let s={type:"view",data:S({data:e,chartType:E,xField:r}),children:[]};return null==n||n.forEach(a=>{let l={type:"line",encode:{x:_(r.name,t),y:a.name,color:()=>a.name,series:()=>a.name,size:t=>C(t,e,{field4X:r})},legend:{size:!1}};s.children.push(l)}),s}catch(e){return console.log(e),null}}},chineseName:"折线图"}],D=e=>"response_line_chart"===e?["multi_line_chart","multi_measure_line_chart"]:"response_bar_chart"===e?["multi_measure_column_chart"]:"response_pie_chart"===e?["pie_chart"]:"response_scatter_chart"===e?["scatter_plot"]:"response_area_chart"===e?["area_chart"]:"response_heatmap_chart"===e?["heatmap"]:[],{Option:M}=c.default,I=e=>{let{data:t,chartType:a,scopeOfCharts:f,ruleConfig:j}=e,N=O(t),{mode:_}=(0,v.useContext)(r.p),[k,Z]=(0,v.useState)(),[w,C]=(0,v.useState)([]),[P,E]=(0,v.useState)(),D=(0,v.useRef)();(0,v.useEffect)(()=>{Z(y({charts:T,scopeOfCharts:{exclude:["area_chart","stacked_area_chart","percent_stacked_area_chart"]},ruleConfig:j}))},[j,f]);let I=e=>{if(!k)return[];let t=function(e){let{advices:t}=e;return t}({advices:e}),l=(0,p.uniq)((0,p.compact)((0,p.concat)(a,e.map(e=>e.type)))),r=l.map(e=>{let a=t.find(t=>t.type===e);if(a)return a;let l=k.dataAnalyzer.execute({data:N});if("data"in l){var r;let t=k.specGenerator.execute({data:l.data,dataProps:l.dataProps,chartTypeRecommendations:[{chartType:e,score:1}]});if("advices"in t)return null===(r=t.advices)||void 0===r?void 0:r[0]}}).filter(e=>null==e?void 0:e.spec);return r};(0,v.useEffect)(()=>{if(N&&k){var e;let t=b({data:N,myChartAdvisor:k}),a=I(t);C(a),E(null===(e=a[0])||void 0===e?void 0:e.type)}},[JSON.stringify(N),k,a]);let R=(0,v.useMemo)(()=>{if((null==w?void 0:w.length)>0){var e,t,a,r;let n=null!=P?P:w[0].type,s=null!==(t=null===(e=null==w?void 0:w.find(e=>e.type===n))||void 0===e?void 0:e.spec)&&void 0!==t?t:void 0;if(s){if(s.data&&["line_chart","step_line_chart"].includes(n)){let e=null==k?void 0:k.dataAnalyzer.execute({data:N});e&&"dataProps"in e&&(s.data=S({data:s.data,xField:null===(r=e.dataProps)||void 0===r?void 0:r.find(e=>"date"===e.recommendation),chartType:n}))}return"pie_chart"===n&&(null==s?void 0:null===(a=s.encode)||void 0===a?void 0:a.color)&&(s.tooltip={title:{field:s.encode.color}}),(0,l.jsx)(i.k,{options:{...s,autoFit:!0,theme:_,height:300},ref:D},n)}}},[w,_,P]);return P?(0,l.jsxs)("div",{children:[(0,l.jsxs)(d.Z,{justify:"space-between",className:"mb-2",children:[(0,l.jsx)(o.Z,{children:(0,l.jsxs)(u.Z,{children:[(0,l.jsx)("span",{children:n.Z.t("Advices")}),(0,l.jsx)(c.default,{className:"w-52",value:P,placeholder:"Chart Switcher",onChange:e=>E(e),size:"small",children:null==w?void 0:w.map(e=>{let t=n.Z.t(e.type);return(0,l.jsx)(M,{value:e.type,children:(0,l.jsx)(m.Z,{title:t,placement:"right",children:(0,l.jsx)("div",{children:t})})},e.type)})})]})}),(0,l.jsx)(o.Z,{children:(0,l.jsx)(m.Z,{title:n.Z.t("Download"),children:(0,l.jsx)(h.ZP,{onClick:()=>(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Chart",a=document.createElement("a"),l="".concat(t,".png");setTimeout(()=>{let t=function(e){let t=g(e);if(t){let e=t.toDataURL("image/png");return e}}(e);if(t){a.addEventListener("click",()=>{a.download=l,a.href=t});let e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),a.dispatchEvent(e)}},16)})(D.current,n.Z.t(P)),icon:(0,l.jsx)(s.Z,{}),type:"text"})})})]}),(0,l.jsx)("div",{className:"flex",children:R})]}):(0,l.jsx)(x.Z,{image:x.Z.PRESENTED_IMAGE_SIMPLE,description:"暂无合适的可视化视图"})}},39156:function(e,t,a){a.d(t,{_z:function(){return p._},ZP:function(){return v},aG:function(){return p.a}});var l=a(85893),r=a(41118),n=a(30208),s=a(40911),i=a(67294),c=a(41468),d=a(99802);function o(e){let{chart:t}=e,{mode:a}=(0,i.useContext)(c.p);return(0,l.jsx)("div",{className:"flex-1 min-w-0 p-4 bg-white dark:bg-theme-dark-container rounded",children:(0,l.jsxs)("div",{className:"h-full",children:[(0,l.jsx)("div",{className:"mb-2",children:t.chart_name}),(0,l.jsx)("div",{className:"opacity-80 text-sm mb-2",children:t.chart_desc}),(0,l.jsx)("div",{className:"h-[300px]",children:(0,l.jsx)(d.k,{style:{height:"100%"},options:{autoFit:!0,theme:a,type:"interval",data:t.values,encode:{x:"name",y:"value",color:"type"},axis:{x:{labelAutoRotate:!1}}}})})]})})}function u(e){let{chart:t}=e,{mode:a}=(0,i.useContext)(c.p);return(0,l.jsx)("div",{className:"flex-1 min-w-0 p-4 bg-white dark:bg-theme-dark-container rounded",children:(0,l.jsxs)("div",{className:"h-full",children:[(0,l.jsx)("div",{className:"mb-2",children:t.chart_name}),(0,l.jsx)("div",{className:"opacity-80 text-sm mb-2",children:t.chart_desc}),(0,l.jsx)("div",{className:"h-[300px]",children:(0,l.jsx)(d.k,{style:{height:"100%"},options:{autoFit:!0,theme:a,type:"view",data:t.values,children:[{type:"line",encode:{x:"name",y:"value",color:"type",shape:"smooth"}},{type:"area",encode:{x:"name",y:"value",color:"type",shape:"smooth"},legend:!1,style:{fillOpacity:.15}}],axis:{x:{labelAutoRotate:!1}}}})})]})})}var m=a(61685),h=a(96486);function x(e){var t,a;let{chart:r}=e,n=(0,h.groupBy)(r.values,"type");return(0,l.jsx)("div",{className:"flex-1 min-w-0 p-4 bg-white dark:bg-theme-dark-container rounded",children:(0,l.jsxs)("div",{className:"h-full",children:[(0,l.jsx)("div",{className:"mb-2",children:r.chart_name}),(0,l.jsx)("div",{className:"opacity-80 text-sm mb-2",children:r.chart_desc}),(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsxs)(m.Z,{"aria-label":"basic table",stripe:"odd",hoverRow:!0,borderAxis:"bothBetween",children:[(0,l.jsx)("thead",{children:(0,l.jsx)("tr",{children:Object.keys(n).map(e=>(0,l.jsx)("th",{children:e},e))})}),(0,l.jsx)("tbody",{children:null===(t=Object.values(n))||void 0===t?void 0:null===(a=t[0])||void 0===a?void 0:a.map((e,t)=>{var a;return(0,l.jsx)("tr",{children:null===(a=Object.keys(n))||void 0===a?void 0:a.map(e=>{var a;return(0,l.jsx)("td",{children:(null==n?void 0:null===(a=n[e])||void 0===a?void 0:a[t].value)||""},e)})},t)})})]})})]})})}var p=a(21332),v=function(e){let{chartsData:t}=e,a=(0,i.useMemo)(()=>{if(t){let e=[],a=null==t?void 0:t.filter(e=>"IndicatorValue"===e.chart_type);a.length>0&&e.push({charts:a,type:"IndicatorValue"});let l=null==t?void 0:t.filter(e=>"IndicatorValue"!==e.chart_type),r=l.length,n=0;return[[0],[1],[2],[1,2],[1,3],[2,1,2],[2,1,3],[3,1,3],[3,2,3]][r].forEach(t=>{if(t>0){let a=l.slice(n,n+t);n+=t,e.push({charts:a})}}),e}},[t]);return(0,l.jsx)("div",{className:"flex flex-col gap-3",children:null==a?void 0:a.map((e,t)=>(0,l.jsx)("div",{className:"".concat((null==e?void 0:e.type)!=="IndicatorValue"?"flex gap-3":""),children:e.charts.map(e=>"IndicatorValue"===e.chart_type||"IndicatorValue"===e.type?(0,l.jsx)("div",{className:"flex flex-row gap-3",children:e.values.map(e=>(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)(r.Z,{sx:{background:"transparent"},children:(0,l.jsxs)(n.Z,{className:"justify-around",children:[(0,l.jsx)(s.ZP,{gutterBottom:!0,component:"div",children:e.name}),(0,l.jsx)(s.ZP,{children:e.value})]})})},e.name))},e.chart_uid):"LineChart"===e.chart_type||"LineChart"===e.type?(0,l.jsx)(u,{chart:e},e.chart_uid):"BarChart"===e.chart_type||"BarChart"===e.type?(0,l.jsx)(o,{chart:e},e.chart_uid):"Table"===e.chart_type||"TableChartData"===e.type?(0,l.jsx)(x,{chart:e},e.chart_uid):void 0)},"chart_row_".concat(t)))})}},30853:function(e,t,a){a.d(t,{Z:function(){return ek}});var l=a(85893),r=a(39156),n=a(62418),s=a(29158),i=a(98165),c=a(14079),d=a(49148),o=a(87554),u=a(57020),m=a(66309),h=a(39773),x=a(92398),p=a(14660),v=a(55186),g=a(18102),f=a(45030),j=a(96074),y=a(85265),b=a(11163),N=a(67294);let _=e=>{let{references:t}=e,a=(0,b.useRouter)(),[r,n]=(0,N.useState)(!1),i=(0,N.useMemo)(()=>a.pathname.includes("/mobile"),[a]),c=(0,N.useMemo)(()=>{var e;return null==t?void 0:null===(e=t.knowledge)||void 0===e?void 0:e.map(e=>{var t;return{label:(0,l.jsx)("div",{style:{maxWidth:"120px"},children:(0,l.jsx)(f.Z.Text,{ellipsis:{tooltip:e.name},children:decodeURIComponent(e.name).split("_")[0]})}),key:e.name,children:(0,l.jsx)("div",{className:"h-full overflow-y-auto",children:null==e?void 0:null===(t=e.chunks)||void 0===t?void 0:t.map(e=>(0,l.jsx)(g.default,{children:e.content},e.id))})}})},[t]);return(0,l.jsxs)("div",{children:[(0,l.jsx)(j.Z,{className:"mb-1 mt-0",dashed:!0}),(0,l.jsxs)("div",{className:"flex text-sm gap-2 text-blue-400",onClick:()=>n(!0),children:[(0,l.jsx)(s.Z,{}),(0,l.jsx)("span",{className:"text-sm",children:"查看回复引用"})]}),(0,l.jsx)(y.Z,{open:r,title:"回复引用",placement:i?"bottom":"right",onClose:()=>n(!1),destroyOnClose:!0,className:"p-0",...!i&&{width:"30%"},children:(0,l.jsx)(x.Z,{items:c,size:"small"})})]})};var k=e=>{let{references:t}=e;try{let e=JSON.parse(t);return(0,l.jsx)(_,{references:e})}catch(e){return null}},Z=a(48218),w=a(24019),C=a(18429),S=a(8751),O=a(50888),P=a(74330),E=e=>{let{data:t}=e,a=(0,N.useMemo)(()=>{switch(t.status){case"todo":return(0,l.jsx)(w.Z,{});case"failed":return(0,l.jsx)(C.Z,{className:"text-[rgb(255,77,79)]"});case"complete":return(0,l.jsx)(S.Z,{className:"text-[rgb(82,196,26)]"});case"running":return(0,l.jsx)(P.Z,{indicator:(0,l.jsx)(O.Z,{style:{fontSize:24},spin:!0})});default:return null}},[t]);return t?(0,l.jsxs)("div",{className:"flex flex-col p-2 border pr-4 rounded-md min-w-fit w-2/5",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(Z.Z,{scene:"chat_agent",width:8,height:8}),(0,l.jsxs)("div",{className:"flex flex-col flex-1 ml-2",children:[(0,l.jsx)("div",{className:"flex items-center text-sm dark:text-[rgba(255,255,255,0.85)] gap-2",children:null==t?void 0:t.app_name}),(0,l.jsx)(f.Z.Text,{className:"text-sm text-[#525964] dark:text-[rgba(255,255,255,0.65)] leading-6",ellipsis:{tooltip:!0},children:null==t?void 0:t.app_desc})]})]}),(0,l.jsx)("div",{className:"text-2xl ml-1",children:a})]}),"failed"===t.status&&t.msg&&(0,l.jsx)(f.Z.Text,{type:"danger",className:"pl-12 text-xs mt-2",children:t.msg})]}):null},T=a(69256),D=a(73913),M=a(14726),I=e=>{let{children:t,msg:a}=e,{handleChat:r}=(0,N.useContext)(T.ChatContentContext),{handleChat:n}=(0,N.useContext)(D.MobileChatContext);return(0,l.jsx)(M.ZP,{className:"ml-1 inline text-xs",onClick:()=>{null==n||n(a),null==r||r(a)},type:"dashed",size:"small",children:t||"点击分析当前异常"})},R=a(41468),q=a(12576),z=a(63086),Q=a(54143),J=a(40056),L=a(93967),A=a.n(L),K=e=>{let{data:t}=e,{mode:a}=(0,N.useContext)(R.p),r=(0,N.useMemo)(()=>{switch(t.status){case"complete":return"success";case"failed":return"error";case"running":return"warning";default:return}},[t]);if(!t)return null;let n="dark"===a?z.R:Q.K;return(0,l.jsxs)("div",{className:"flex flex-1 flex-col",children:[(0,l.jsx)(J.Z,{className:A()("mb-4",{"bg-[#fafafa] border-[transparent]":!r}),message:t.name,type:r,...r&&{showIcon:!0},..."warning"===r&&{icon:(0,l.jsx)(P.Z,{indicator:(0,l.jsx)(O.Z,{spin:!0})})}}),t.result&&(0,l.jsx)(q.ZP,{style:{...n,width:"100%",padding:10},className:A()({"bg-[#fafafa]":"light"===a}),value:JSON.parse(t.result||"{}"),enableClipboard:!1,displayDataTypes:!1,objectSortKeys:!1}),t.err_msg&&(0,l.jsx)(o.Z,{components:ek,remarkPlugins:[v.Z],rehypePlugins:[p.Z],children:t.err_msg})]})},F=a(39718),B=a(32198),G=function(e){let{data:t}=e;return t&&t.length?(0,l.jsx)(l.Fragment,{children:t.map((e,t)=>(0,l.jsxs)("div",{className:"rounded",children:[(0,l.jsxs)("div",{className:"flex items-center mb-3 text-sm",children:[e.model?(0,l.jsx)(F.Z,{model:e.model}):(0,l.jsx)("div",{className:"rounded-full w-6 h-6 bg-gray-100"}),(0,l.jsxs)("div",{className:"ml-2 opacity-70",children:[e.sender,(0,l.jsx)(B.Z,{className:"mx-2 text-base"}),e.receiver]})]}),(0,l.jsx)("div",{className:"whitespace-normal text-sm mb-3",children:(0,l.jsx)(o.Z,{components:ek,remarkPlugins:[v.Z],rehypePlugins:[p.Z],children:e.markdown})}),e.resource&&"null"!==e.resource&&(0,l.jsx)(k,{references:e.resource})]},t))}):null},V=a(14313),U=a(63606),W=a(47221),H=function(e){let{data:t}=e;return t&&t.length?(0,l.jsx)(W.Z,{bordered:!0,className:"my-3",expandIcon:e=>{let{isActive:t}=e;return(0,l.jsx)(V.Z,{rotate:t?90:0})},items:t.map((e,t)=>({key:t,label:(0,l.jsxs)("div",{children:[(0,l.jsxs)("span",{children:[e.name," - ",e.agent]}),"complete"===e.status?(0,l.jsx)(U.Z,{className:"!text-green-500 ml-2"}):(0,l.jsx)(w.Z,{className:"!text-gray-500 ml-2"})]}),children:(0,l.jsx)(o.Z,{components:ek,rehypePlugins:[p.Z],remarkPlugins:[v.Z],children:e.markdown})}))}):null},X=a(57132),$=a(45360),Y=a(20640),ee=a.n(Y),et=a(84502),ea=a(94969),el=a(12187);function er(e){let{code:t,light:a,dark:r,language:n,customStyle:s}=e,{mode:i}=(0,N.useContext)(R.p);return(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(M.ZP,{className:"absolute right-3 top-2 text-gray-300 hover:!text-gray-200 bg-gray-700",type:"text",icon:(0,l.jsx)(X.Z,{}),onClick:()=>{let e=ee()(t);$.ZP[e?"success":"error"](e?"复制成功":"复制失败")}}),(0,l.jsx)(et.Z,{customStyle:s,language:n,style:"dark"===i?null!=r?r:ea.Z:null!=a?a:el.Z,children:t})]})}var en=a(21332),es=function(e){var t;let{data:a,type:r,sql:s}=e,i=(null==a?void 0:a[0])?null===(t=Object.keys(null==a?void 0:a[0]))||void 0===t?void 0:t.map(e=>({title:e,dataIndex:e,key:e})):[],c={key:"chart",label:"Chart",children:(0,l.jsx)(en._,{data:a,chartType:(0,en.a)(r)})},d={key:"sql",label:"SQL",children:(0,l.jsx)(er,{language:"sql",code:(0,n._m)(null!=s?s:"","mysql")})},o={key:"data",label:"Data",children:(0,l.jsx)(h.Z,{dataSource:a,columns:i,scroll:{x:"auto"}})},u="response_table"===r?[o,d]:[c,d,o];return(0,l.jsx)(x.Z,{defaultActiveKey:"response_table"===r?"data":"chart",items:u,size:"small"})},ei=function(e){let{data:t}=e;return t?(0,l.jsx)(es,{data:null==t?void 0:t.data,type:null==t?void 0:t.type,sql:null==t?void 0:t.sql}):null},ec=a(47727),ed=a(15273),eo=a(67421),eu=a(89144),em=function(e){let{data:t}=e,{t:a}=(0,eo.$G)(),[r,n]=(0,N.useState)(0);return(0,l.jsxs)("div",{className:"bg-[#EAEAEB] rounded overflow-hidden border border-theme-primary dark:bg-theme-dark text-sm",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"flex",children:t.code.map((e,t)=>(0,l.jsxs)("div",{className:A()("px-4 py-2 text-[#121417] dark:text-white cursor-pointer",{"bg-white dark:bg-theme-dark-container":t===r}),onClick:()=>{n(t)},children:["CODE ",t+1,": ",e[0]]},t))}),t.code.length&&(0,l.jsx)(er,{language:t.code[r][0],code:t.code[r][1],customStyle:{maxHeight:300,margin:0},light:eu.Z,dark:el.Z})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"flex",children:(0,l.jsxs)("div",{className:"bg-white dark:bg-theme-dark-container px-4 py-2 text-[#121417] dark:text-white",children:[a("Terminal")," ",t.exit_success?(0,l.jsx)(ec.Z,{className:"text-green-600"}):(0,l.jsx)(ed.Z,{className:"text-red-600"})]})}),(0,l.jsx)("div",{className:"p-4 max-h-72 overflow-y-auto whitespace-normal bg-white dark:dark:bg-theme-dark",children:(0,l.jsx)(o.Z,{components:ek,remarkPlugins:[v.Z],children:t.log})})]})]})},eh=function(e){let{data:t}=e;return(0,l.jsxs)("div",{className:"rounded overflow-hidden",children:[(0,l.jsx)("div",{className:"p-3 text-white bg-red-500 whitespace-normal",children:t.display_type}),(0,l.jsxs)("div",{className:"p-3 bg-red-50",children:[(0,l.jsx)("div",{className:"mb-2 whitespace-normal",children:t.thought}),(0,l.jsx)(er,{code:(0,n._m)(t.sql),language:"sql"})]})]})};let ex=[[2],[1,2],[1,3],[2,1,2],[2,1,3],[3,1,3],[3,2,3]];var ep=function(e){let{data:t}=e,a=(0,N.useMemo)(()=>{if(t.chart_count>1){let e=ex[t.chart_count-2],a=0;return e.map(e=>{let l=t.data.slice(a,a+e);return a=e,l})}return[t.data]},[t.data,t.chart_count]);return(0,l.jsx)("div",{className:"flex flex-col gap-3",children:a.map((e,t)=>(0,l.jsx)("div",{className:"flex gap-3",children:e.map((e,t)=>(0,l.jsxs)("div",{className:"flex flex-1 flex-col justify-between p-4 rounded border border-gray-200 dark:border-gray-500 whitespace-normal",children:[(0,l.jsxs)("div",{children:[e.title&&(0,l.jsx)("div",{className:"mb-2 text-lg",children:e.title}),e.describe&&(0,l.jsx)("div",{className:"mb-4 text-sm text-gray-500",children:e.describe})]}),(0,l.jsx)(r._z,{data:e.data,chartType:(0,r.aG)(e.type)})]},"chart-".concat(t)))},"row-".concat(t)))})},ev=a(97937);let eg={todo:{bgClass:"bg-gray-500",icon:(0,l.jsx)(w.Z,{className:"ml-2"})},runing:{bgClass:"bg-blue-500",icon:(0,l.jsx)(O.Z,{className:"ml-2"})},failed:{bgClass:"bg-red-500",icon:(0,l.jsx)(ev.Z,{className:"ml-2"})},complete:{bgClass:"bg-green-500",icon:(0,l.jsx)(U.Z,{className:"ml-2"})}};var ef=function(e){var t,a;let{data:r}=e,{bgClass:n,icon:s}=null!==(t=eg[r.status])&&void 0!==t?t:{};return(0,l.jsxs)("div",{className:"bg-theme-light dark:bg-theme-dark-container rounded overflow-hidden my-2 flex flex-col",children:[(0,l.jsxs)("div",{className:A()("flex px-4 md:px-6 py-2 items-center text-white text-sm",n),children:[r.name,s]}),r.result?(0,l.jsx)("div",{className:"px-4 md:px-6 py-4 text-sm whitespace-normal",children:(0,l.jsx)(o.Z,{components:ek,rehypePlugins:[p.Z],remarkPlugins:[v.Z],children:null!==(a=r.result)&&void 0!==a?a:""})}):(0,l.jsx)("div",{className:"px-4 md:px-6 py-4 text-sm",children:r.err_msg})]})};let ej=["custom-view","chart-view","references","summary"],ey={code:(0,d.r)({languageRenderers:{"agent-plans":e=>{let{className:t,children:a}=e,r=String(a),n=(null==t?void 0:t.replace("language-",""))||"javascript";try{let e=JSON.parse(r);return(0,l.jsx)(H,{data:e})}catch(e){return(0,l.jsx)(er,{language:n,code:r})}},"agent-messages":e=>{let{className:t,children:a}=e,r=String(a),n=(null==t?void 0:t.replace("language-",""))||"javascript";try{let e=JSON.parse(r);return(0,l.jsx)(G,{data:e})}catch(e){return(0,l.jsx)(er,{language:n,code:r})}},"vis-convert-error":e=>{let{className:t,children:a}=e,r=String(a),n=(null==t?void 0:t.replace("language-",""))||"javascript";try{let e=JSON.parse(r);return(0,l.jsx)(eh,{data:e})}catch(e){return(0,l.jsx)(er,{language:n,code:r})}},"vis-dashboard":e=>{let{className:t,children:a}=e,r=String(a),n=(null==t?void 0:t.replace("language-",""))||"javascript";try{let e=JSON.parse(r);return(0,l.jsx)(ep,{data:e})}catch(e){return(0,l.jsx)(er,{language:n,code:r})}},"vis-db-chart":e=>{let{className:t,children:a}=e,r=String(a),n=(null==t?void 0:t.replace("language-",""))||"javascript";try{let e=JSON.parse(r);return(0,l.jsx)(ei,{data:e})}catch(e){return(0,l.jsx)(er,{language:n,code:r})}},"vis-plugin":e=>{let{className:t,children:a}=e,r=String(a),n=(null==t?void 0:t.replace("language-",""))||"javascript";try{let e=JSON.parse(r);return(0,l.jsx)(ef,{data:e})}catch(e){return(0,l.jsx)(er,{language:n,code:r})}},"vis-code":e=>{let{className:t,children:a}=e,r=String(a),n=(null==t?void 0:t.replace("language-",""))||"javascript";try{let e=JSON.parse(r);return(0,l.jsx)(em,{data:e})}catch(e){return(0,l.jsx)(er,{language:n,code:r})}},"vis-app-link":e=>{let{className:t,children:a}=e,r=String(a),n=(null==t?void 0:t.replace("language-",""))||"javascript";try{let e=JSON.parse(r);return(0,l.jsx)(E,{data:e})}catch(e){return(0,l.jsx)(er,{language:n,code:r})}},"vis-api-response":e=>{let{className:t,children:a}=e,r=String(a),n=(null==t?void 0:t.replace("language-",""))||"javascript";try{let e=JSON.parse(r);return(0,l.jsx)(K,{data:e})}catch(e){return(0,l.jsx)(er,{language:n,code:r})}}},defaultRenderer(e){let{node:t,className:a,children:r,style:n,...s}=e,i=String(r),c=(null==a?void 0:a.replace("language-",""))||"",{context:d,matchValues:u}=function(e){let t=ej.reduce((t,a)=>{let l=RegExp("<".concat(a,"[^>]*/?>"),"gi");return e=e.replace(l,e=>(t.push(e),"")),t},[]);return{context:e,matchValues:t}}(i);return(0,l.jsxs)(l.Fragment,{children:[c?(0,l.jsx)(er,{code:d,language:c||"javascript"}):(0,l.jsx)("code",{...s,style:n,className:"p-1 mx-1 rounded bg-theme-light dark:bg-theme-dark text-sm",children:r}),(0,l.jsx)(o.Z,{components:e_,rehypePlugins:[p.Z],remarkPlugins:[v.Z],children:u.join("\n")})]})}})},eb={...ey,ul(e){let{children:t}=e;return(0,l.jsx)("ul",{className:"py-1",children:t})},ol(e){let{children:t}=e;return(0,l.jsx)("ol",{className:"py-1",children:t})},li(e){let{children:t,ordered:a}=e;return(0,l.jsx)("li",{className:"text-sm leading-7 ml-5 pl-2 text-gray-600 dark:text-gray-300 ".concat(a?"list-decimal":"list-disc"),children:t})},table(e){let{children:t}=e;return(0,l.jsx)("table",{className:"my-2 rounded-tl-md rounded-tr-md bg-white dark:bg-gray-800 text-sm rounded-lg overflow-hidden",children:t})},thead(e){let{children:t}=e;return(0,l.jsx)("thead",{className:"bg-[#fafafa] dark:bg-black font-semibold",children:t})},th(e){let{children:t}=e;return(0,l.jsx)("th",{className:"!text-left p-4",children:t})},td(e){let{children:t}=e;return(0,l.jsx)("td",{className:"p-4 border-t border-[#f0f0f0] dark:border-gray-700",children:t})},h1(e){let{children:t}=e;return(0,l.jsx)("h3",{className:"text-2xl font-bold my-4 border-b border-slate-300 pb-4",children:t})},h2(e){let{children:t}=e;return(0,l.jsx)("h3",{className:"text-xl font-bold my-3",children:t})},h3(e){let{children:t}=e;return(0,l.jsx)("h3",{className:"text-lg font-semibold my-2",children:t})},h4(e){let{children:t}=e;return(0,l.jsx)("h3",{className:"text-base font-semibold my-1",children:t})},a(e){let{children:t,href:a}=e;return(0,l.jsxs)("div",{className:"inline-block text-blue-600 dark:text-blue-400",children:[(0,l.jsx)(s.Z,{className:"mr-1"}),(0,l.jsx)("a",{href:a,target:"_blank",rel:"noreferrer",children:t})]})},img(e){let{src:t,alt:a}=e;return(0,l.jsx)("div",{children:(0,l.jsx)(u.Z,{className:"min-h-[1rem] max-w-full max-h-full border rounded",src:t,alt:a,placeholder:(0,l.jsx)(m.Z,{icon:(0,l.jsx)(i.Z,{spin:!0}),color:"processing",children:"Image Loading..."}),fallback:"/pictures/fallback.png"})})},blockquote(e){let{children:t}=e;return(0,l.jsx)("blockquote",{className:"py-4 px-6 border-l-4 border-blue-600 rounded bg-white my-2 text-gray-500 dark:bg-slate-800 dark:text-gray-200 dark:border-white shadow-sm",children:t})},button(e){let{children:t,className:a,...r}=e;if("chat-link"===a){let e=null==r?void 0:r["data-msg"];return(0,l.jsx)(I,{msg:e,children:t})}return(0,l.jsx)("button",{className:a,...r,children:t})}},eN=e=>{let t={",":",","。":".","?":"?","!":"!",":":":",";":";","“":'"',"”":'"',"‘":"'","’":"'","(":"(",")":")","【":"[","】":"]","《":"<","》":">","—":"-","、":",","…":"..."},a=RegExp(Object.keys(t).join("|"),"g");return e.replace(a,e=>t[e])},e_={...eb,"chart-view":function(e){var t,a,s;let i,{content:c,children:d}=e;try{i=JSON.parse(c)}catch(e){console.log(e,c),i={type:"response_table",sql:"",data:[]}}let o=(null==i?void 0:null===(t=i.data)||void 0===t?void 0:t[0])?null===(a=Object.keys(null==i?void 0:null===(s=i.data)||void 0===s?void 0:s[0]))||void 0===a?void 0:a.map(e=>({title:e,dataIndex:e,key:e})):[],u={key:"chart",label:"Chart",children:(0,l.jsx)(r._z,{data:null==i?void 0:i.data,chartType:(0,r.aG)(null==i?void 0:i.type)})},m={key:"sql",label:"SQL",children:(0,l.jsx)(er,{code:(0,n._m)(eN(null==i?void 0:i.sql),"mysql"),language:"sql"})},p={key:"data",label:"Data",children:(0,l.jsx)(h.Z,{dataSource:null==i?void 0:i.data,columns:o,scroll:{x:!0},virtual:!0})},v=(null==i?void 0:i.type)==="response_table"?[p,m]:[u,m,p];return(0,l.jsxs)("div",{children:[(0,l.jsx)(x.Z,{defaultActiveKey:(null==i?void 0:i.type)==="response_table"?"data":"chart",items:v,size:"small"}),d]})},references:function(e){let{children:t}=e;if(t)try{let e=JSON.parse(t),a=e.references;return(0,l.jsx)(k,{references:a})}catch(e){return null}},summary:function(e){let{children:t}=e;return(0,l.jsxs)("div",{children:[(0,l.jsxs)("p",{className:"mb-2",children:[(0,l.jsx)(c.Z,{className:"mr-2"}),(0,l.jsx)("span",{className:"font-semibold",children:"Document Summary"})]}),(0,l.jsx)("div",{children:t})]})}};var ek=e_},18102:function(e,t,a){a.r(t);var l=a(85893),r=a(30853),n=a(87554);a(67294);var s=a(14660),i=a(55186);t.default=e=>{let{children:t}=e;return(0,l.jsx)(n.Z,{components:{...r.Z},rehypePlugins:[s.Z],remarkPlugins:[i.Z],children:t})}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8709],{21332:function(e,t,a){a.d(t,{_:function(){return I},a:function(){return D}});var l=a(85893),r=a(41468),n=a(64371),s=a(23430),i=a(32408),c=a(34041),d=a(71230),o=a(15746),u=a(42075),m=a(83062),h=a(14726),x=a(32983),p=a(96486),v=a(67294);let g=e=>{if(!e)return;let t=e.getContainer(),a=t.getElementsByTagName("canvas")[0];return a};var f=a(64352),j=a(8625);let y=e=>{let{charts:t,scopeOfCharts:a,ruleConfig:l}=e,r={};if(null==t||t.forEach(e=>{if(e.chartKnowledge.toSpec){let t=e.chartKnowledge.toSpec;e.chartKnowledge.toSpec=(e,a)=>({...t(e,a),dataProps:a})}else e.chartKnowledge.toSpec=(e,t)=>({dataProps:t});r[e.chartType]=e.chartKnowledge}),(null==a?void 0:a.exclude)&&a.exclude.forEach(e=>{Object.keys(r).includes(e)&&delete r[e]}),null==a?void 0:a.include){let e=a.include;Object.keys(r).forEach(t=>{e.includes(t)||delete r[t]})}let n={...a,custom:r},s={...l},i=new f.w({ckbCfg:n,ruleCfg:s});return i},b=e=>{var t;let{data:a,dataMetaMap:l,myChartAdvisor:r}=e,n=l?Object.keys(l).map(e=>({name:e,...l[e]})):null,s=new j.Z(a).info(),i=(0,p.size)(s)>2?null==s?void 0:s.filter(e=>"string"!==e.recommendation&&"date"!==e.recommendation||e.distinct&&e.distinct>1):s,c=null==r?void 0:r.adviseWithLog({data:a,dataProps:n,fields:null==i?void 0:i.map(e=>e.name)});return null!==(t=null==c?void 0:c.advices)&&void 0!==t?t:[]};function N(e,t){return t.every(t=>e.includes(t))}function _(e,t){let a=t.find(t=>t.name===e);return(null==a?void 0:a.recommendation)==="date"?t=>new Date(t[e]):e}function k(e){return e.find(e=>{var t;return e.levelOfMeasurements&&(t=e.levelOfMeasurements,["Time","Ordinal"].some(e=>t.includes(e)))})}function Z(e){return e.find(e=>e.levelOfMeasurements&&N(e.levelOfMeasurements,["Nominal"]))}let w=e=>{let{data:t,xField:a}=e,l=(0,p.uniq)(t.map(e=>e[a]));return l.length<=1},C=(e,t,a)=>{let{field4Split:l,field4X:r}=a;if((null==l?void 0:l.name)&&(null==r?void 0:r.name)){let a=e[l.name],n=t.filter(e=>l.name&&e[l.name]===a);return w({data:n,xField:r.name})?5:void 0}return(null==r?void 0:r.name)&&w({data:t,xField:r.name})?5:void 0},S=e=>{let{data:t,chartType:a,xField:l}=e,r=(0,p.cloneDeep)(t);try{if(a.includes("line")&&(null==l?void 0:l.name)&&"date"===l.recommendation)return r.sort((e,t)=>new Date(e[l.name]).getTime()-new Date(t[l.name]).getTime()),r;a.includes("line")&&(null==l?void 0:l.name)&&["float","integer"].includes(l.recommendation)&&r.sort((e,t)=>e[l.name]-t[l.name])}catch(e){console.error(e)}return r},O=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.map(e=>{let a={};return Object.keys(e).forEach(l=>{a[l]=e[l]===t?null:e[l]}),a})},P="multi_line_chart",E="multi_measure_line_chart",T=[{chartType:"multi_line_chart",chartKnowledge:{id:P,name:"multi_line_chart",alias:["multi_line_chart"],family:["LineCharts"],def:"multi_line_chart uses lines with segments to show changes in data in a ordinal dimension",purpose:["Comparison","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:1,maxQty:"*",fieldConditions:["Interval"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Direction","Position"],recRate:"Recommended",toSpec:(e,t)=>{var a,l;let r=k(t),n=Z(t),s=null!==(a=null!=r?r:n)&&void 0!==a?a:t[0],i=t.filter(e=>e.name!==(null==s?void 0:s.name)),c=null!==(l=i.filter(e=>e.levelOfMeasurements&&N(e.levelOfMeasurements,["Interval"])))&&void 0!==l?l:[i[0]],d=i.filter(e=>!c.find(t=>t.name===e.name)).find(e=>e.levelOfMeasurements&&N(e.levelOfMeasurements,["Nominal"]));if(!s||!c)return null;let o={type:"view",autoFit:!0,data:S({data:e,chartType:P,xField:s}),children:[]};return c.forEach(a=>{let l={type:"line",encode:{x:_(s.name,t),y:a.name,size:t=>C(t,e,{field4Split:d,field4X:s})},legend:{size:!1}};d&&(l.encode.color=d.name),o.children.push(l)}),o}},chineseName:"折线图"},{chartType:"multi_measure_column_chart",chartKnowledge:{id:"multi_measure_column_chart",name:"multi_measure_column_chart",alias:["multi_measure_column_chart"],family:["ColumnCharts"],def:"multi_measure_column_chart uses lines with segments to show changes in data in a ordinal dimension",purpose:["Comparison","Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Direction","Position"],recRate:"Recommended",toSpec:(e,t)=>{try{let a=null==t?void 0:t.filter(e=>N(e.levelOfMeasurements,["Interval"])),l=Z(t),r=k(t),n=null!=l?l:r;if(!n||!a)return null;let s={type:"view",data:e,children:[]};return null==a||a.forEach(e=>{let t={type:"interval",encode:{x:n.name,y:e.name,color:()=>e.name,series:()=>e.name}};s.children.push(t)}),s}catch(e){return console.log(e),null}}},chineseName:"折线图"},{chartType:"multi_measure_line_chart",chartKnowledge:{id:E,name:"multi_measure_line_chart",alias:["multi_measure_line_chart"],family:["LineCharts"],def:"multi_measure_line_chart uses lines with segments to show changes in data in a ordinal dimension",purpose:["Comparison","Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Direction","Position"],recRate:"Recommended",toSpec:(e,t)=>{try{var a,l;let r=null!==(l=null!==(a=Z(t))&&void 0!==a?a:k(t))&&void 0!==l?l:t[0],n=null==t?void 0:t.filter(e=>e.name!==(null==r?void 0:r.name)&&N(e.levelOfMeasurements,["Interval"]));if(!r||!n)return null;let s={type:"view",data:S({data:e,chartType:E,xField:r}),children:[]};return null==n||n.forEach(a=>{let l={type:"line",encode:{x:_(r.name,t),y:a.name,color:()=>a.name,series:()=>a.name,size:t=>C(t,e,{field4X:r})},legend:{size:!1}};s.children.push(l)}),s}catch(e){return console.log(e),null}}},chineseName:"折线图"}],D=e=>"response_line_chart"===e?["multi_line_chart","multi_measure_line_chart"]:"response_bar_chart"===e?["multi_measure_column_chart"]:"response_pie_chart"===e?["pie_chart"]:"response_scatter_chart"===e?["scatter_plot"]:"response_area_chart"===e?["area_chart"]:"response_heatmap_chart"===e?["heatmap"]:[],{Option:M}=c.default,I=e=>{let{data:t,chartType:a,scopeOfCharts:f,ruleConfig:j}=e,N=O(t),{mode:_}=(0,v.useContext)(r.p),[k,Z]=(0,v.useState)(),[w,C]=(0,v.useState)([]),[P,E]=(0,v.useState)(),D=(0,v.useRef)();(0,v.useEffect)(()=>{Z(y({charts:T,scopeOfCharts:{exclude:["area_chart","stacked_area_chart","percent_stacked_area_chart"]},ruleConfig:j}))},[j,f]);let I=e=>{if(!k)return[];let t=function(e){let{advices:t}=e;return t}({advices:e}),l=(0,p.uniq)((0,p.compact)((0,p.concat)(a,e.map(e=>e.type)))),r=l.map(e=>{let a=t.find(t=>t.type===e);if(a)return a;let l=k.dataAnalyzer.execute({data:N});if("data"in l){var r;let t=k.specGenerator.execute({data:l.data,dataProps:l.dataProps,chartTypeRecommendations:[{chartType:e,score:1}]});if("advices"in t)return null===(r=t.advices)||void 0===r?void 0:r[0]}}).filter(e=>null==e?void 0:e.spec);return r};(0,v.useEffect)(()=>{if(N&&k){var e;let t=b({data:N,myChartAdvisor:k}),a=I(t);C(a),E(null===(e=a[0])||void 0===e?void 0:e.type)}},[JSON.stringify(N),k,a]);let R=(0,v.useMemo)(()=>{if((null==w?void 0:w.length)>0){var e,t,a,r;let n=null!=P?P:w[0].type,s=null!==(t=null===(e=null==w?void 0:w.find(e=>e.type===n))||void 0===e?void 0:e.spec)&&void 0!==t?t:void 0;if(s){if(s.data&&["line_chart","step_line_chart"].includes(n)){let e=null==k?void 0:k.dataAnalyzer.execute({data:N});e&&"dataProps"in e&&(s.data=S({data:s.data,xField:null===(r=e.dataProps)||void 0===r?void 0:r.find(e=>"date"===e.recommendation),chartType:n}))}return"pie_chart"===n&&(null==s?void 0:null===(a=s.encode)||void 0===a?void 0:a.color)&&(s.tooltip={title:{field:s.encode.color}}),(0,l.jsx)(i.k,{options:{...s,autoFit:!0,theme:_,height:300},ref:D},n)}}},[w,_,P]);return P?(0,l.jsxs)("div",{children:[(0,l.jsxs)(d.Z,{justify:"space-between",className:"mb-2",children:[(0,l.jsx)(o.Z,{children:(0,l.jsxs)(u.Z,{children:[(0,l.jsx)("span",{children:n.Z.t("Advices")}),(0,l.jsx)(c.default,{className:"w-52",value:P,placeholder:"Chart Switcher",onChange:e=>E(e),size:"small",children:null==w?void 0:w.map(e=>{let t=n.Z.t(e.type);return(0,l.jsx)(M,{value:e.type,children:(0,l.jsx)(m.Z,{title:t,placement:"right",children:(0,l.jsx)("div",{children:t})})},e.type)})})]})}),(0,l.jsx)(o.Z,{children:(0,l.jsx)(m.Z,{title:n.Z.t("Download"),children:(0,l.jsx)(h.ZP,{onClick:()=>(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Chart",a=document.createElement("a"),l="".concat(t,".png");setTimeout(()=>{let t=function(e){let t=g(e);if(t){let e=t.toDataURL("image/png");return e}}(e);if(t){a.addEventListener("click",()=>{a.download=l,a.href=t});let e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),a.dispatchEvent(e)}},16)})(D.current,n.Z.t(P)),icon:(0,l.jsx)(s.Z,{}),type:"text"})})})]}),(0,l.jsx)("div",{className:"flex",children:R})]}):(0,l.jsx)(x.Z,{image:x.Z.PRESENTED_IMAGE_SIMPLE,description:"暂无合适的可视化视图"})}},39156:function(e,t,a){a.d(t,{_z:function(){return p._},ZP:function(){return v},aG:function(){return p.a}});var l=a(85893),r=a(41118),n=a(30208),s=a(40911),i=a(67294),c=a(41468),d=a(32408);function o(e){let{chart:t}=e,{mode:a}=(0,i.useContext)(c.p);return(0,l.jsx)("div",{className:"flex-1 min-w-0 p-4 bg-white dark:bg-theme-dark-container rounded",children:(0,l.jsxs)("div",{className:"h-full",children:[(0,l.jsx)("div",{className:"mb-2",children:t.chart_name}),(0,l.jsx)("div",{className:"opacity-80 text-sm mb-2",children:t.chart_desc}),(0,l.jsx)("div",{className:"h-[300px]",children:(0,l.jsx)(d.k,{style:{height:"100%"},options:{autoFit:!0,theme:a,type:"interval",data:t.values,encode:{x:"name",y:"value",color:"type"},axis:{x:{labelAutoRotate:!1}}}})})]})})}function u(e){let{chart:t}=e,{mode:a}=(0,i.useContext)(c.p);return(0,l.jsx)("div",{className:"flex-1 min-w-0 p-4 bg-white dark:bg-theme-dark-container rounded",children:(0,l.jsxs)("div",{className:"h-full",children:[(0,l.jsx)("div",{className:"mb-2",children:t.chart_name}),(0,l.jsx)("div",{className:"opacity-80 text-sm mb-2",children:t.chart_desc}),(0,l.jsx)("div",{className:"h-[300px]",children:(0,l.jsx)(d.k,{style:{height:"100%"},options:{autoFit:!0,theme:a,type:"view",data:t.values,children:[{type:"line",encode:{x:"name",y:"value",color:"type",shape:"smooth"}},{type:"area",encode:{x:"name",y:"value",color:"type",shape:"smooth"},legend:!1,style:{fillOpacity:.15}}],axis:{x:{labelAutoRotate:!1}}}})})]})})}var m=a(61685),h=a(96486);function x(e){var t,a;let{chart:r}=e,n=(0,h.groupBy)(r.values,"type");return(0,l.jsx)("div",{className:"flex-1 min-w-0 p-4 bg-white dark:bg-theme-dark-container rounded",children:(0,l.jsxs)("div",{className:"h-full",children:[(0,l.jsx)("div",{className:"mb-2",children:r.chart_name}),(0,l.jsx)("div",{className:"opacity-80 text-sm mb-2",children:r.chart_desc}),(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsxs)(m.Z,{"aria-label":"basic table",stripe:"odd",hoverRow:!0,borderAxis:"bothBetween",children:[(0,l.jsx)("thead",{children:(0,l.jsx)("tr",{children:Object.keys(n).map(e=>(0,l.jsx)("th",{children:e},e))})}),(0,l.jsx)("tbody",{children:null===(t=Object.values(n))||void 0===t?void 0:null===(a=t[0])||void 0===a?void 0:a.map((e,t)=>{var a;return(0,l.jsx)("tr",{children:null===(a=Object.keys(n))||void 0===a?void 0:a.map(e=>{var a;return(0,l.jsx)("td",{children:(null==n?void 0:null===(a=n[e])||void 0===a?void 0:a[t].value)||""},e)})},t)})})]})})]})})}var p=a(21332),v=function(e){let{chartsData:t}=e,a=(0,i.useMemo)(()=>{if(t){let e=[],a=null==t?void 0:t.filter(e=>"IndicatorValue"===e.chart_type);a.length>0&&e.push({charts:a,type:"IndicatorValue"});let l=null==t?void 0:t.filter(e=>"IndicatorValue"!==e.chart_type),r=l.length,n=0;return[[0],[1],[2],[1,2],[1,3],[2,1,2],[2,1,3],[3,1,3],[3,2,3]][r].forEach(t=>{if(t>0){let a=l.slice(n,n+t);n+=t,e.push({charts:a})}}),e}},[t]);return(0,l.jsx)("div",{className:"flex flex-col gap-3",children:null==a?void 0:a.map((e,t)=>(0,l.jsx)("div",{className:"".concat((null==e?void 0:e.type)!=="IndicatorValue"?"flex gap-3":""),children:e.charts.map(e=>"IndicatorValue"===e.chart_type||"IndicatorValue"===e.type?(0,l.jsx)("div",{className:"flex flex-row gap-3",children:e.values.map(e=>(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)(r.Z,{sx:{background:"transparent"},children:(0,l.jsxs)(n.Z,{className:"justify-around",children:[(0,l.jsx)(s.ZP,{gutterBottom:!0,component:"div",children:e.name}),(0,l.jsx)(s.ZP,{children:e.value})]})})},e.name))},e.chart_uid):"LineChart"===e.chart_type||"LineChart"===e.type?(0,l.jsx)(u,{chart:e},e.chart_uid):"BarChart"===e.chart_type||"BarChart"===e.type?(0,l.jsx)(o,{chart:e},e.chart_uid):"Table"===e.chart_type||"TableChartData"===e.type?(0,l.jsx)(x,{chart:e},e.chart_uid):void 0)},"chart_row_".concat(t)))})}},30853:function(e,t,a){a.d(t,{Z:function(){return ek}});var l=a(85893),r=a(39156),n=a(62418),s=a(29158),i=a(98165),c=a(14079),d=a(87155),o=a(87554),u=a(57020),m=a(66309),h=a(39773),x=a(92398),p=a(14660),v=a(55186),g=a(18102),f=a(45030),j=a(96074),y=a(85265),b=a(11163),N=a(67294);let _=e=>{let{references:t}=e,a=(0,b.useRouter)(),[r,n]=(0,N.useState)(!1),i=(0,N.useMemo)(()=>a.pathname.includes("/mobile"),[a]),c=(0,N.useMemo)(()=>{var e;return null==t?void 0:null===(e=t.knowledge)||void 0===e?void 0:e.map(e=>{var t;return{label:(0,l.jsx)("div",{style:{maxWidth:"120px"},children:(0,l.jsx)(f.Z.Text,{ellipsis:{tooltip:e.name},children:decodeURIComponent(e.name).split("_")[0]})}),key:e.name,children:(0,l.jsx)("div",{className:"h-full overflow-y-auto",children:null==e?void 0:null===(t=e.chunks)||void 0===t?void 0:t.map(e=>(0,l.jsx)(g.default,{children:e.content},e.id))})}})},[t]);return(0,l.jsxs)("div",{children:[(0,l.jsx)(j.Z,{className:"mb-1 mt-0",dashed:!0}),(0,l.jsxs)("div",{className:"flex text-sm gap-2 text-blue-400",onClick:()=>n(!0),children:[(0,l.jsx)(s.Z,{}),(0,l.jsx)("span",{className:"text-sm",children:"查看回复引用"})]}),(0,l.jsx)(y.Z,{open:r,title:"回复引用",placement:i?"bottom":"right",onClose:()=>n(!1),destroyOnClose:!0,className:"p-0",...!i&&{width:"30%"},children:(0,l.jsx)(x.Z,{items:c,size:"small"})})]})};var k=e=>{let{references:t}=e;try{let e=JSON.parse(t);return(0,l.jsx)(_,{references:e})}catch(e){return null}},Z=a(48218),w=a(24019),C=a(18429),S=a(8751),O=a(50888),P=a(74330),E=e=>{let{data:t}=e,a=(0,N.useMemo)(()=>{switch(t.status){case"todo":return(0,l.jsx)(w.Z,{});case"failed":return(0,l.jsx)(C.Z,{className:"text-[rgb(255,77,79)]"});case"complete":return(0,l.jsx)(S.Z,{className:"text-[rgb(82,196,26)]"});case"running":return(0,l.jsx)(P.Z,{indicator:(0,l.jsx)(O.Z,{style:{fontSize:24},spin:!0})});default:return null}},[t]);return t?(0,l.jsxs)("div",{className:"flex flex-col p-2 border pr-4 rounded-md min-w-fit w-2/5",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(Z.Z,{scene:"chat_agent",width:8,height:8}),(0,l.jsxs)("div",{className:"flex flex-col flex-1 ml-2",children:[(0,l.jsx)("div",{className:"flex items-center text-sm dark:text-[rgba(255,255,255,0.85)] gap-2",children:null==t?void 0:t.app_name}),(0,l.jsx)(f.Z.Text,{className:"text-sm text-[#525964] dark:text-[rgba(255,255,255,0.65)] leading-6",ellipsis:{tooltip:!0},children:null==t?void 0:t.app_desc})]})]}),(0,l.jsx)("div",{className:"text-2xl ml-1",children:a})]}),"failed"===t.status&&t.msg&&(0,l.jsx)(f.Z.Text,{type:"danger",className:"pl-12 text-xs mt-2",children:t.msg})]}):null},T=a(57249),D=a(73913),M=a(14726),I=e=>{let{children:t,msg:a}=e,{handleChat:r}=(0,N.useContext)(T.ChatContentContext),{handleChat:n}=(0,N.useContext)(D.MobileChatContext);return(0,l.jsx)(M.ZP,{className:"ml-1 inline text-xs",onClick:()=>{null==n||n(a),null==r||r(a)},type:"dashed",size:"small",children:t||"点击分析当前异常"})},R=a(41468),q=a(12576),z=a(63086),Q=a(54143),J=a(40056),L=a(93967),A=a.n(L),K=e=>{let{data:t}=e,{mode:a}=(0,N.useContext)(R.p),r=(0,N.useMemo)(()=>{switch(t.status){case"complete":return"success";case"failed":return"error";case"running":return"warning";default:return}},[t]);if(!t)return null;let n="dark"===a?z.R:Q.K;return(0,l.jsxs)("div",{className:"flex flex-1 flex-col",children:[(0,l.jsx)(J.Z,{className:A()("mb-4",{"bg-[#fafafa] border-[transparent]":!r}),message:t.name,type:r,...r&&{showIcon:!0},..."warning"===r&&{icon:(0,l.jsx)(P.Z,{indicator:(0,l.jsx)(O.Z,{spin:!0})})}}),t.result&&(0,l.jsx)(q.ZP,{style:{...n,width:"100%",padding:10},className:A()({"bg-[#fafafa]":"light"===a}),value:JSON.parse(t.result||"{}"),enableClipboard:!1,displayDataTypes:!1,objectSortKeys:!1}),t.err_msg&&(0,l.jsx)(o.Z,{components:ek,remarkPlugins:[v.Z],rehypePlugins:[p.Z],children:t.err_msg})]})},F=a(39718),B=a(32198),G=function(e){let{data:t}=e;return t&&t.length?(0,l.jsx)(l.Fragment,{children:t.map((e,t)=>(0,l.jsxs)("div",{className:"rounded",children:[(0,l.jsxs)("div",{className:"flex items-center mb-3 text-sm",children:[e.model?(0,l.jsx)(F.Z,{model:e.model}):(0,l.jsx)("div",{className:"rounded-full w-6 h-6 bg-gray-100"}),(0,l.jsxs)("div",{className:"ml-2 opacity-70",children:[e.sender,(0,l.jsx)(B.Z,{className:"mx-2 text-base"}),e.receiver]})]}),(0,l.jsx)("div",{className:"whitespace-normal text-sm mb-3",children:(0,l.jsx)(o.Z,{components:ek,remarkPlugins:[v.Z],rehypePlugins:[p.Z],children:e.markdown})}),e.resource&&"null"!==e.resource&&(0,l.jsx)(k,{references:e.resource})]},t))}):null},V=a(14313),U=a(63606),W=a(47221),H=function(e){let{data:t}=e;return t&&t.length?(0,l.jsx)(W.Z,{bordered:!0,className:"my-3",expandIcon:e=>{let{isActive:t}=e;return(0,l.jsx)(V.Z,{rotate:t?90:0})},items:t.map((e,t)=>({key:t,label:(0,l.jsxs)("div",{children:[(0,l.jsxs)("span",{children:[e.name," - ",e.agent]}),"complete"===e.status?(0,l.jsx)(U.Z,{className:"!text-green-500 ml-2"}):(0,l.jsx)(w.Z,{className:"!text-gray-500 ml-2"})]}),children:(0,l.jsx)(o.Z,{components:ek,rehypePlugins:[p.Z],remarkPlugins:[v.Z],children:e.markdown})}))}):null},X=a(57132),$=a(45360),Y=a(20640),ee=a.n(Y),et=a(84502),ea=a(94969),el=a(12187);function er(e){let{code:t,light:a,dark:r,language:n,customStyle:s}=e,{mode:i}=(0,N.useContext)(R.p);return(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(M.ZP,{className:"absolute right-3 top-2 text-gray-300 hover:!text-gray-200 bg-gray-700",type:"text",icon:(0,l.jsx)(X.Z,{}),onClick:()=>{let e=ee()(t);$.ZP[e?"success":"error"](e?"复制成功":"复制失败")}}),(0,l.jsx)(et.Z,{customStyle:s,language:n,style:"dark"===i?null!=r?r:ea.Z:null!=a?a:el.Z,children:t})]})}var en=a(21332),es=function(e){var t;let{data:a,type:r,sql:s}=e,i=(null==a?void 0:a[0])?null===(t=Object.keys(null==a?void 0:a[0]))||void 0===t?void 0:t.map(e=>({title:e,dataIndex:e,key:e})):[],c={key:"chart",label:"Chart",children:(0,l.jsx)(en._,{data:a,chartType:(0,en.a)(r)})},d={key:"sql",label:"SQL",children:(0,l.jsx)(er,{language:"sql",code:(0,n._m)(null!=s?s:"","mysql")})},o={key:"data",label:"Data",children:(0,l.jsx)(h.Z,{dataSource:a,columns:i,scroll:{x:"auto"}})},u="response_table"===r?[o,d]:[c,d,o];return(0,l.jsx)(x.Z,{defaultActiveKey:"response_table"===r?"data":"chart",items:u,size:"small"})},ei=function(e){let{data:t}=e;return t?(0,l.jsx)(es,{data:null==t?void 0:t.data,type:null==t?void 0:t.type,sql:null==t?void 0:t.sql}):null},ec=a(47727),ed=a(15273),eo=a(67421),eu=a(89144),em=function(e){let{data:t}=e,{t:a}=(0,eo.$G)(),[r,n]=(0,N.useState)(0);return(0,l.jsxs)("div",{className:"bg-[#EAEAEB] rounded overflow-hidden border border-theme-primary dark:bg-theme-dark text-sm",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"flex",children:t.code.map((e,t)=>(0,l.jsxs)("div",{className:A()("px-4 py-2 text-[#121417] dark:text-white cursor-pointer",{"bg-white dark:bg-theme-dark-container":t===r}),onClick:()=>{n(t)},children:["CODE ",t+1,": ",e[0]]},t))}),t.code.length&&(0,l.jsx)(er,{language:t.code[r][0],code:t.code[r][1],customStyle:{maxHeight:300,margin:0},light:eu.Z,dark:el.Z})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"flex",children:(0,l.jsxs)("div",{className:"bg-white dark:bg-theme-dark-container px-4 py-2 text-[#121417] dark:text-white",children:[a("Terminal")," ",t.exit_success?(0,l.jsx)(ec.Z,{className:"text-green-600"}):(0,l.jsx)(ed.Z,{className:"text-red-600"})]})}),(0,l.jsx)("div",{className:"p-4 max-h-72 overflow-y-auto whitespace-normal bg-white dark:dark:bg-theme-dark",children:(0,l.jsx)(o.Z,{components:ek,remarkPlugins:[v.Z],children:t.log})})]})]})},eh=function(e){let{data:t}=e;return(0,l.jsxs)("div",{className:"rounded overflow-hidden",children:[(0,l.jsx)("div",{className:"p-3 text-white bg-red-500 whitespace-normal",children:t.display_type}),(0,l.jsxs)("div",{className:"p-3 bg-red-50",children:[(0,l.jsx)("div",{className:"mb-2 whitespace-normal",children:t.thought}),(0,l.jsx)(er,{code:(0,n._m)(t.sql),language:"sql"})]})]})};let ex=[[2],[1,2],[1,3],[2,1,2],[2,1,3],[3,1,3],[3,2,3]];var ep=function(e){let{data:t}=e,a=(0,N.useMemo)(()=>{if(t.chart_count>1){let e=ex[t.chart_count-2],a=0;return e.map(e=>{let l=t.data.slice(a,a+e);return a=e,l})}return[t.data]},[t.data,t.chart_count]);return(0,l.jsx)("div",{className:"flex flex-col gap-3",children:a.map((e,t)=>(0,l.jsx)("div",{className:"flex gap-3",children:e.map((e,t)=>(0,l.jsxs)("div",{className:"flex flex-1 flex-col justify-between p-4 rounded border border-gray-200 dark:border-gray-500 whitespace-normal",children:[(0,l.jsxs)("div",{children:[e.title&&(0,l.jsx)("div",{className:"mb-2 text-lg",children:e.title}),e.describe&&(0,l.jsx)("div",{className:"mb-4 text-sm text-gray-500",children:e.describe})]}),(0,l.jsx)(r._z,{data:e.data,chartType:(0,r.aG)(e.type)})]},"chart-".concat(t)))},"row-".concat(t)))})},ev=a(97937);let eg={todo:{bgClass:"bg-gray-500",icon:(0,l.jsx)(w.Z,{className:"ml-2"})},runing:{bgClass:"bg-blue-500",icon:(0,l.jsx)(O.Z,{className:"ml-2"})},failed:{bgClass:"bg-red-500",icon:(0,l.jsx)(ev.Z,{className:"ml-2"})},complete:{bgClass:"bg-green-500",icon:(0,l.jsx)(U.Z,{className:"ml-2"})}};var ef=function(e){var t,a;let{data:r}=e,{bgClass:n,icon:s}=null!==(t=eg[r.status])&&void 0!==t?t:{};return(0,l.jsxs)("div",{className:"bg-theme-light dark:bg-theme-dark-container rounded overflow-hidden my-2 flex flex-col",children:[(0,l.jsxs)("div",{className:A()("flex px-4 md:px-6 py-2 items-center text-white text-sm",n),children:[r.name,s]}),r.result?(0,l.jsx)("div",{className:"px-4 md:px-6 py-4 text-sm whitespace-normal",children:(0,l.jsx)(o.Z,{components:ek,rehypePlugins:[p.Z],remarkPlugins:[v.Z],children:null!==(a=r.result)&&void 0!==a?a:""})}):(0,l.jsx)("div",{className:"px-4 md:px-6 py-4 text-sm",children:r.err_msg})]})};let ej=["custom-view","chart-view","references","summary"],ey={code:(0,d.r)({languageRenderers:{"agent-plans":e=>{let{className:t,children:a}=e,r=String(a),n=(null==t?void 0:t.replace("language-",""))||"javascript";try{let e=JSON.parse(r);return(0,l.jsx)(H,{data:e})}catch(e){return(0,l.jsx)(er,{language:n,code:r})}},"agent-messages":e=>{let{className:t,children:a}=e,r=String(a),n=(null==t?void 0:t.replace("language-",""))||"javascript";try{let e=JSON.parse(r);return(0,l.jsx)(G,{data:e})}catch(e){return(0,l.jsx)(er,{language:n,code:r})}},"vis-convert-error":e=>{let{className:t,children:a}=e,r=String(a),n=(null==t?void 0:t.replace("language-",""))||"javascript";try{let e=JSON.parse(r);return(0,l.jsx)(eh,{data:e})}catch(e){return(0,l.jsx)(er,{language:n,code:r})}},"vis-dashboard":e=>{let{className:t,children:a}=e,r=String(a),n=(null==t?void 0:t.replace("language-",""))||"javascript";try{let e=JSON.parse(r);return(0,l.jsx)(ep,{data:e})}catch(e){return(0,l.jsx)(er,{language:n,code:r})}},"vis-db-chart":e=>{let{className:t,children:a}=e,r=String(a),n=(null==t?void 0:t.replace("language-",""))||"javascript";try{let e=JSON.parse(r);return(0,l.jsx)(ei,{data:e})}catch(e){return(0,l.jsx)(er,{language:n,code:r})}},"vis-plugin":e=>{let{className:t,children:a}=e,r=String(a),n=(null==t?void 0:t.replace("language-",""))||"javascript";try{let e=JSON.parse(r);return(0,l.jsx)(ef,{data:e})}catch(e){return(0,l.jsx)(er,{language:n,code:r})}},"vis-code":e=>{let{className:t,children:a}=e,r=String(a),n=(null==t?void 0:t.replace("language-",""))||"javascript";try{let e=JSON.parse(r);return(0,l.jsx)(em,{data:e})}catch(e){return(0,l.jsx)(er,{language:n,code:r})}},"vis-app-link":e=>{let{className:t,children:a}=e,r=String(a),n=(null==t?void 0:t.replace("language-",""))||"javascript";try{let e=JSON.parse(r);return(0,l.jsx)(E,{data:e})}catch(e){return(0,l.jsx)(er,{language:n,code:r})}},"vis-api-response":e=>{let{className:t,children:a}=e,r=String(a),n=(null==t?void 0:t.replace("language-",""))||"javascript";try{let e=JSON.parse(r);return(0,l.jsx)(K,{data:e})}catch(e){return(0,l.jsx)(er,{language:n,code:r})}}},defaultRenderer(e){let{node:t,className:a,children:r,style:n,...s}=e,i=String(r),c=(null==a?void 0:a.replace("language-",""))||"",{context:d,matchValues:u}=function(e){let t=ej.reduce((t,a)=>{let l=RegExp("<".concat(a,"[^>]*/?>"),"gi");return e=e.replace(l,e=>(t.push(e),"")),t},[]);return{context:e,matchValues:t}}(i);return(0,l.jsxs)(l.Fragment,{children:[c?(0,l.jsx)(er,{code:d,language:c||"javascript"}):(0,l.jsx)("code",{...s,style:n,className:"p-1 mx-1 rounded bg-theme-light dark:bg-theme-dark text-sm",children:r}),(0,l.jsx)(o.Z,{components:e_,rehypePlugins:[p.Z],remarkPlugins:[v.Z],children:u.join("\n")})]})}})},eb={...ey,ul(e){let{children:t}=e;return(0,l.jsx)("ul",{className:"py-1",children:t})},ol(e){let{children:t}=e;return(0,l.jsx)("ol",{className:"py-1",children:t})},li(e){let{children:t,ordered:a}=e;return(0,l.jsx)("li",{className:"text-sm leading-7 ml-5 pl-2 text-gray-600 dark:text-gray-300 ".concat(a?"list-decimal":"list-disc"),children:t})},table(e){let{children:t}=e;return(0,l.jsx)("table",{className:"my-2 rounded-tl-md rounded-tr-md bg-white dark:bg-gray-800 text-sm rounded-lg overflow-hidden",children:t})},thead(e){let{children:t}=e;return(0,l.jsx)("thead",{className:"bg-[#fafafa] dark:bg-black font-semibold",children:t})},th(e){let{children:t}=e;return(0,l.jsx)("th",{className:"!text-left p-4",children:t})},td(e){let{children:t}=e;return(0,l.jsx)("td",{className:"p-4 border-t border-[#f0f0f0] dark:border-gray-700",children:t})},h1(e){let{children:t}=e;return(0,l.jsx)("h3",{className:"text-2xl font-bold my-4 border-b border-slate-300 pb-4",children:t})},h2(e){let{children:t}=e;return(0,l.jsx)("h3",{className:"text-xl font-bold my-3",children:t})},h3(e){let{children:t}=e;return(0,l.jsx)("h3",{className:"text-lg font-semibold my-2",children:t})},h4(e){let{children:t}=e;return(0,l.jsx)("h3",{className:"text-base font-semibold my-1",children:t})},a(e){let{children:t,href:a}=e;return(0,l.jsxs)("div",{className:"inline-block text-blue-600 dark:text-blue-400",children:[(0,l.jsx)(s.Z,{className:"mr-1"}),(0,l.jsx)("a",{href:a,target:"_blank",rel:"noreferrer",children:t})]})},img(e){let{src:t,alt:a}=e;return(0,l.jsx)("div",{children:(0,l.jsx)(u.Z,{className:"min-h-[1rem] max-w-full max-h-full border rounded",src:t,alt:a,placeholder:(0,l.jsx)(m.Z,{icon:(0,l.jsx)(i.Z,{spin:!0}),color:"processing",children:"Image Loading..."}),fallback:"/pictures/fallback.png"})})},blockquote(e){let{children:t}=e;return(0,l.jsx)("blockquote",{className:"py-4 px-6 border-l-4 border-blue-600 rounded bg-white my-2 text-gray-500 dark:bg-slate-800 dark:text-gray-200 dark:border-white shadow-sm",children:t})},button(e){let{children:t,className:a,...r}=e;if("chat-link"===a){let e=null==r?void 0:r["data-msg"];return(0,l.jsx)(I,{msg:e,children:t})}return(0,l.jsx)("button",{className:a,...r,children:t})}},eN=e=>{let t={",":",","。":".","?":"?","!":"!",":":":",";":";","“":'"',"”":'"',"‘":"'","’":"'","(":"(",")":")","【":"[","】":"]","《":"<","》":">","—":"-","、":",","…":"..."},a=RegExp(Object.keys(t).join("|"),"g");return e.replace(a,e=>t[e])},e_={...eb,"chart-view":function(e){var t,a,s;let i,{content:c,children:d}=e;try{i=JSON.parse(c)}catch(e){console.log(e,c),i={type:"response_table",sql:"",data:[]}}let o=(null==i?void 0:null===(t=i.data)||void 0===t?void 0:t[0])?null===(a=Object.keys(null==i?void 0:null===(s=i.data)||void 0===s?void 0:s[0]))||void 0===a?void 0:a.map(e=>({title:e,dataIndex:e,key:e})):[],u={key:"chart",label:"Chart",children:(0,l.jsx)(r._z,{data:null==i?void 0:i.data,chartType:(0,r.aG)(null==i?void 0:i.type)})},m={key:"sql",label:"SQL",children:(0,l.jsx)(er,{code:(0,n._m)(eN(null==i?void 0:i.sql),"mysql"),language:"sql"})},p={key:"data",label:"Data",children:(0,l.jsx)(h.Z,{dataSource:null==i?void 0:i.data,columns:o,scroll:{x:!0},virtual:!0})},v=(null==i?void 0:i.type)==="response_table"?[p,m]:[u,m,p];return(0,l.jsxs)("div",{children:[(0,l.jsx)(x.Z,{defaultActiveKey:(null==i?void 0:i.type)==="response_table"?"data":"chart",items:v,size:"small"}),d]})},references:function(e){let{children:t}=e;if(t)try{let e=JSON.parse(t),a=e.references;return(0,l.jsx)(k,{references:a})}catch(e){return null}},summary:function(e){let{children:t}=e;return(0,l.jsxs)("div",{children:[(0,l.jsxs)("p",{className:"mb-2",children:[(0,l.jsx)(c.Z,{className:"mr-2"}),(0,l.jsx)("span",{className:"font-semibold",children:"Document Summary"})]}),(0,l.jsx)("div",{children:t})]})}};var ek=e_},18102:function(e,t,a){a.r(t);var l=a(85893),r=a(30853),n=a(87554);a(67294);var s=a(14660),i=a(55186);t.default=e=>{let{children:t}=e;return(0,l.jsx)(n.Z,{components:{...r.Z},rehypePlugins:[s.Z],remarkPlugins:[i.Z],children:t})}}}]); \ No newline at end of file diff --git a/dbgpt/app/static/web/_next/static/chunks/9256-9967d7b38583093a.js b/dbgpt/app/static/web/_next/static/chunks/9256-9967d7b38583093a.js deleted file mode 100644 index 1262c525c..000000000 --- a/dbgpt/app/static/web/_next/static/chunks/9256-9967d7b38583093a.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9256],{98978:function(e,t,a){"use strict";var l=a(85893),s=a(25675),n=a.n(s);t.Z=function(e){let{src:t,label:a,width:s,height:r,className:i}=e;return(0,l.jsx)(n(),{className:"w-11 h-11 rounded-full mr-4 border border-gray-200 object-contain bg-white ".concat(i),width:s||44,height:r||44,src:t,alt:a||"db-icon"})}},43446:function(e,t,a){"use strict";var l=a(41468),s=a(64371),n=a(62418),r=a(25519),i=a(1375),o=a(45360),c=a(67294),d=a(83454);t.Z=e=>{let{queryAgentURL:t="/api/v1/chat/completions",app_code:a}=e,[u,m]=(0,c.useState)({}),{scene:p}=(0,c.useContext)(l.p),h=(0,c.useCallback)(async e=>{let{data:l,chatId:c,onMessage:u,onClose:h,onDone:x,onError:f,ctrl:v}=e;if(v&&m(v),!(null==l?void 0:l.user_input)&&!(null==l?void 0:l.doc_id)){o.ZP.warning(s.Z.t("no_context_tip"));return}let g={...l,conv_uid:c,app_code:a};try{var _,b;await (0,i.L)("".concat(null!==(_=d.env.API_BASE_URL)&&void 0!==_?_:"").concat(t),{method:"POST",headers:{"Content-Type":"application/json",[r.gp]:null!==(b=(0,n.n5)())&&void 0!==b?b:""},body:JSON.stringify(g),signal:v?v.signal:null,openWhenHidden:!0,async onopen(e){e.ok&&e.headers.get("content-type")===i.a||"application/json"!==e.headers.get("content-type")||e.json().then(e=>{null==u||u(e),null==x||x(),v&&v.abort()})},onclose(){v&&v.abort(),null==h||h()},onerror(e){throw Error(e)},onmessage:e=>{let t=e.data;try{t="chat_agent"===p?JSON.parse(t).vis:JSON.parse(t)}catch(e){t.replaceAll("\\n","\n")}"string"==typeof t?"[DONE]"===t?null==x||x():(null==t?void 0:t.startsWith("[ERROR]"))?null==f||f(null==t?void 0:t.replace("[ERROR]","")):null==u||u(t):(null==u||u(t),null==x||x())}})}catch(e){v&&v.abort(),null==f||f("Sorry, We meet some error, please try agin later.",e)}},[t,a,p]);return{chat:h,ctrl:u}}},91467:function(e,t,a){"use strict";a.d(t,{TH:function(){return x},ZS:function(){return f}});var l=a(85893),s=a(89705),n=a(83062),r=a(96074),i=a(45030),o=a(85418),c=a(93967),d=a.n(c),u=a(36609),m=a(25675),p=a.n(m);a(67294);var h=a(48218);a(11873);let x=e=>{let{onClick:t,Icon:a="/pictures/card_chat.png",text:s=(0,u.t)("start_chat")}=e;return"string"==typeof a&&(a=(0,l.jsx)(p(),{src:a,alt:a,width:17,height:15})),(0,l.jsxs)("div",{className:"flex items-center gap-1 text-default",onClick:e=>{e.stopPropagation(),t&&t()},children:[a,(0,l.jsx)("span",{children:s})]})},f=e=>{let{menu:t}=e;return(0,l.jsx)(o.Z,{menu:t,getPopupContainer:e=>e.parentNode,placement:"bottomRight",autoAdjustOverflow:!1,children:(0,l.jsx)(s.Z,{className:"p-2 hover:bg-white hover:dark:bg-black rounded-md"})})};t.ZP=e=>{let{RightTop:t,Tags:a,LeftBottom:s,RightBottom:o,onClick:c,rightTopHover:u=!0,logo:m,name:x,description:f,className:v,scene:g,code:_}=e;return"string"==typeof f&&(f=(0,l.jsx)("p",{className:"line-clamp-2 relative bottom-4 text-ellipsis min-h-[42px] text-sm text-[#525964] dark:text-[rgba(255,255,255,0.65)]",children:f})),(0,l.jsx)("div",{className:d()("hover-underline-gradient flex justify-center mt-6 relative group w-1/3 px-2 mb-6",v),children:(0,l.jsxs)("div",{onClick:c,className:"backdrop-filter backdrop-blur-lg cursor-pointer bg-white bg-opacity-70 border-2 border-white rounded-lg shadow p-4 relative w-full h-full dark:border-[#6f7f95] dark:bg-[#6f7f95] dark:bg-opacity-60",children:[(0,l.jsxs)("div",{className:"flex items-end relative bottom-8 justify-between w-full",children:[(0,l.jsxs)("div",{className:"flex items-end gap-4 w-11/12 flex-1",children:[(0,l.jsx)("div",{className:"bg-white rounded-lg shadow-sm w-14 h-14 flex items-center p-3",children:g?(0,l.jsx)(h.Z,{scene:g,width:14,height:14}):m&&(0,l.jsx)(p(),{src:m,width:44,height:44,alt:x,className:"w-8 min-w-8 rounded-full max-w-none"})}),(0,l.jsx)("div",{className:"flex-1",children:x.length>6?(0,l.jsx)(n.Z,{title:x,children:(0,l.jsx)("span",{className:"line-clamp-1 text-ellipsis font-semibold text-base",style:{maxWidth:"60%"},children:x})}):(0,l.jsx)("span",{className:"line-clamp-1 text-ellipsis font-semibold text-base",style:{maxWidth:"60%"},children:x})})]}),(0,l.jsx)("span",{className:d()("shrink-0",{hidden:u,"group-hover:block":u}),onClick:e=>{e.stopPropagation()},children:t})]}),f,(0,l.jsx)("div",{className:"relative bottom-2",children:a}),(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)("div",{children:s}),(0,l.jsx)("div",{children:o})]}),_&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.Z,{className:"my-3"}),(0,l.jsx)(i.Z.Text,{copyable:!0,className:"absolute bottom-1 right-4 text-xs text-gray-500",children:_})]})]})})}},69256:function(e,t,a){"use strict";a.r(t),a.d(t,{ChatContentContext:function(){return eC},default:function(){return eP}});var l=a(85893),s=a(41468),n=a(76212),r=a(43446),i=a(50888),o=a(90598),c=a(75750),d=a(58638),u=a(45360),m=a(66309),p=a(45030),h=a(74330),x=a(20640),f=a.n(x),v=a(67294),g=a(67421),_=a(65654),b=a(48218);let j=["magenta","orange","geekblue","purple","cyan","green"];var y=e=>{var t,a,s,r,x,y;let{isScrollToTop:w}=e,{appInfo:N,refreshAppInfo:k,handleChat:Z,scrollRef:S,temperatureValue:C,resourceValue:P,currentDialogue:R}=(0,v.useContext)(eC),{t:M}=(0,g.$G)(),O=(0,v.useMemo)(()=>{var e;return(null==N?void 0:null===(e=N.team_context)||void 0===e?void 0:e.chat_scene)||"chat_agent"},[N]),V=(0,v.useMemo)(()=>(null==N?void 0:N.is_collected)==="true",[N]),{run:L,loading:T}=(0,_.Z)(async()=>{let[e]=await (0,n.Vx)(V?(0,n.gD)({app_code:N.app_code}):(0,n.mo)({app_code:N.app_code}));if(!e)return await k()},{manual:!0}),z=(0,v.useMemo)(()=>{var e;return(null===(e=N.param_need)||void 0===e?void 0:e.map(e=>e.type))||[]},[N.param_need]);if(!Object.keys(N).length)return null;let E=async()=>{let e=f()(location.href);u.ZP[e?"success":"error"](e?M("copy_success"):M("copy_failed"))};return(0,l.jsx)("div",{className:"h-20 mt-6 ".concat((null==N?void 0:N.recommend_questions)&&(null==N?void 0:null===(t=N.recommend_questions)||void 0===t?void 0:t.length)>0?"mb-6":""," sticky top-0 bg-transparent z-30 transition-all duration-400 ease-in-out"),children:w?(0,l.jsxs)("header",{className:"flex items-center justify-between w-full h-14 bg-[#ffffffb7] dark:bg-[rgba(41,63,89,0.4)] px-8 transition-all duration-500 ease-in-out",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("div",{className:"flex items-center justify-center w-8 h-8 rounded-lg mr-2 bg-white",children:(0,l.jsx)(b.Z,{scene:O})}),(0,l.jsxs)("div",{className:"flex items-center text-base text-[#1c2533] dark:text-[rgba(255,255,255,0.85)] font-semibold gap-2",children:[(0,l.jsx)("span",{children:null==N?void 0:N.app_name}),(0,l.jsxs)("div",{className:"flex gap-1",children:[(null==N?void 0:N.team_mode)&&(0,l.jsx)(m.Z,{color:"green",children:null==N?void 0:N.team_mode}),(null==N?void 0:null===(a=N.team_context)||void 0===a?void 0:a.chat_scene)&&(0,l.jsx)(m.Z,{color:"cyan",children:null==N?void 0:null===(s=N.team_context)||void 0===s?void 0:s.chat_scene})]})]})]}),(0,l.jsxs)("div",{className:"flex gap-8",onClick:async()=>{await L()},children:[T?(0,l.jsx)(h.Z,{spinning:T,indicator:(0,l.jsx)(i.Z,{style:{fontSize:24},spin:!0})}):(0,l.jsx)(l.Fragment,{children:V?(0,l.jsx)(o.Z,{style:{fontSize:18},className:"text-yellow-400 cursor-pointer"}):(0,l.jsx)(c.Z,{style:{fontSize:18,cursor:"pointer"}})}),(0,l.jsx)(d.Z,{className:"text-lg",onClick:e=>{e.stopPropagation(),E()}})]})]}):(0,l.jsxs)("header",{className:"flex items-center justify-between w-5/6 h-full px-6 bg-[#ffffff99] border dark:bg-[rgba(255,255,255,0.1)] dark:border-[rgba(255,255,255,0.1)] rounded-2xl mx-auto transition-all duration-400 ease-in-out relative",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("div",{className:"flex w-12 h-12 justify-center items-center rounded-xl mr-4 bg-white",children:(0,l.jsx)(b.Z,{scene:O,width:16,height:16})}),(0,l.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,l.jsxs)("div",{className:"flex items-center text-base text-[#1c2533] dark:text-[rgba(255,255,255,0.85)] font-semibold gap-2",children:[(0,l.jsx)("span",{children:null==N?void 0:N.app_name}),(0,l.jsxs)("div",{className:"flex gap-1",children:[(null==N?void 0:N.team_mode)&&(0,l.jsx)(m.Z,{color:"green",children:null==N?void 0:N.team_mode}),(null==N?void 0:null===(r=N.team_context)||void 0===r?void 0:r.chat_scene)&&(0,l.jsx)(m.Z,{color:"cyan",children:null==N?void 0:null===(x=N.team_context)||void 0===x?void 0:x.chat_scene})]})]}),(0,l.jsx)(p.Z.Text,{className:"text-sm text-[#525964] dark:text-[rgba(255,255,255,0.65)] leading-6",ellipsis:{tooltip:!0},children:null==N?void 0:N.app_describe})]})]}),(0,l.jsxs)("div",{className:"flex items-center gap-4",children:[(0,l.jsx)("div",{onClick:async()=>{await L()},className:"flex items-center justify-center w-10 h-10 bg-[#ffffff99] dark:bg-[rgba(255,255,255,0.2)] border border-white dark:border-[rgba(255,255,255,0.2)] rounded-[50%] cursor-pointer",children:T?(0,l.jsx)(h.Z,{spinning:T,indicator:(0,l.jsx)(i.Z,{style:{fontSize:24},spin:!0})}):(0,l.jsx)(l.Fragment,{children:V?(0,l.jsx)(o.Z,{style:{fontSize:18},className:"text-yellow-400 cursor-pointer"}):(0,l.jsx)(c.Z,{style:{fontSize:18,cursor:"pointer"}})})}),(0,l.jsx)("div",{onClick:E,className:"flex items-center justify-center w-10 h-10 bg-[#ffffff99] dark:bg-[rgba(255,255,255,0.2)] border border-white dark:border-[rgba(255,255,255,0.2)] rounded-[50%] cursor-pointer",children:(0,l.jsx)(d.Z,{className:"text-lg"})})]}),!!(null==N?void 0:null===(y=N.recommend_questions)||void 0===y?void 0:y.length)&&(0,l.jsxs)("div",{className:"absolute bottom-[-40px] left-0",children:[(0,l.jsx)("span",{className:"text-sm text-[#525964] dark:text-[rgba(255,255,255,0.65)] leading-6",children:"或许你想问:"}),N.recommend_questions.map((e,t)=>(0,l.jsx)(m.Z,{color:j[t],className:"text-xs p-1 px-2 cursor-pointer",onClick:async()=>{Z((null==e?void 0:e.question)||"",{app_code:N.app_code,...z.includes("temperature")&&{temperature:C},...z.includes("resource")&&{select_param:"string"==typeof P?P:JSON.stringify(P)||R.select_param}}),setTimeout(()=>{var e,t;null===(e=S.current)||void 0===e||e.scrollTo({top:null===(t=S.current)||void 0===t?void 0:t.scrollHeight,behavior:"smooth"})},0)},children:e.question},e.id))]})]})})},w=a(5152),N=a.n(w);let k=N()(()=>Promise.all([a.e(3662),a.e(7034),a.e(8674),a.e(930),a.e(3166),a.e(2837),a.e(2168),a.e(8163),a.e(7126),a.e(2398),a.e(1300),a.e(4567),a.e(9773),a.e(4455),a.e(5110),a.e(4705),a.e(9202),a.e(3764),a.e(5e3),a.e(6216),a.e(8709),a.e(3913),a.e(4434),a.e(9958)]).then(a.bind(a,88331)),{loadableGenerated:{webpack:()=>[88331]},ssr:!1});var Z=(0,v.forwardRef)((e,t)=>{let{}=e,a=(0,v.useRef)(null),[s,n]=(0,v.useState)(!1);return(0,v.useImperativeHandle)(t,()=>a.current),(0,v.useEffect)(()=>(a.current&&a.current.addEventListener("scroll",()=>{var e;let t=(null===(e=a.current)||void 0===e?void 0:e.scrollTop)||0;t>=74?n(!0):n(!1)}),()=>{a.current&&a.current.removeEventListener("scroll",()=>{})}),[]),(0,l.jsx)("div",{className:"flex flex-1 overflow-hidden",children:(0,l.jsxs)("div",{ref:a,className:"h-full w-full mx-auto overflow-y-auto",children:[(0,l.jsx)(y,{isScrollToTop:s}),(0,l.jsx)(k,{})]})})}),S=a(89546),C=a(91467),P=a(7134),R=a(32983),M=a(25675),O=a.n(M),V=a(11163),L=a(70065),T=e=>{let{apps:t,refresh:a,loading:r,type:i}=e,d=async e=>{let[t]=await (0,n.Vx)("true"===e.is_collected?(0,n.gD)({app_code:e.app_code}):(0,n.mo)({app_code:e.app_code}));t||a()},{setAgent:u,model:m,setCurrentDialogInfo:p}=(0,v.useContext)(s.p),x=(0,V.useRouter)(),f=async e=>{if("native_app"===e.team_mode){let{chat_scene:t=""}=e.team_context,[,a]=await (0,n.Vx)((0,n.sW)({chat_mode:t}));a&&(null==p||p({chat_scene:a.chat_mode,app_code:e.app_code}),localStorage.setItem("cur_dialog_info",JSON.stringify({chat_scene:a.chat_mode,app_code:e.app_code})),x.push("/chat?scene=".concat(t,"&id=").concat(a.conv_uid).concat(m?"&model=".concat(m):"")))}else{let[,t]=await (0,n.Vx)((0,n.sW)({chat_mode:"chat_agent"}));t&&(null==p||p({chat_scene:t.chat_mode,app_code:e.app_code}),localStorage.setItem("cur_dialog_info",JSON.stringify({chat_scene:t.chat_mode,app_code:e.app_code})),null==u||u(e.app_code),x.push("/chat/?scene=chat_agent&id=".concat(t.conv_uid).concat(m?"&model=".concat(m):"")))}};return r?(0,l.jsx)(h.Z,{size:"large",className:"flex items-center justify-center h-full",spinning:r}):(0,l.jsx)("div",{className:"flex flex-wrap mt-4 w-full overflow-y-auto ",children:(null==t?void 0:t.length)>0?t.map(e=>{var t;return(0,l.jsx)(C.ZP,{name:e.app_name,description:e.app_describe,onClick:()=>f(e),RightTop:"true"===e.is_collected?(0,l.jsx)(o.Z,{onClick:t=>{t.stopPropagation(),d(e)},style:{height:"21px",cursor:"pointer",color:"#f9c533"}}):(0,l.jsx)(c.Z,{onClick:t=>{t.stopPropagation(),d(e)},style:{height:"21px",cursor:"pointer"}}),LeftBottom:(0,l.jsxs)("div",{className:"flex gap-8 items-center text-gray-500 text-sm",children:[e.owner_name&&(0,l.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,l.jsx)(P.C,{src:null==e?void 0:e.owner_avatar_url,className:"bg-gradient-to-tr from-[#31afff] to-[#1677ff] cursor-pointer",children:e.owner_name}),(0,l.jsx)("span",{children:e.owner_name})]}),"used"!==i&&(0,l.jsxs)("div",{className:"flex items-start gap-1",children:[(0,l.jsx)(L.Z,{type:"icon-hot",className:"text-lg"}),(0,l.jsx)("span",{className:"text-[#878c93]",children:e.hot_value})]})]}),scene:(null==e?void 0:null===(t=e.team_context)||void 0===t?void 0:t.chat_scene)||"chat_agent"},e.app_code)}):(0,l.jsx)(R.Z,{image:(0,l.jsx)(O(),{src:"/pictures/empty.png",alt:"empty",width:142,height:133,className:"w-[142px] h-[133px]"}),className:"flex justify-center items-center w-full h-full min-h-[200px]"})})},z=a(62418),E=a(25278),A=a(14726),D=a(93967),J=a.n(D),W=function(){let{setCurrentDialogInfo:e}=(0,v.useContext)(s.p),{t}=(0,g.$G)(),a=(0,V.useRouter)(),[r,i]=(0,v.useState)(""),[o,c]=(0,v.useState)(!1),[d,u]=(0,v.useState)(!1),m=async()=>{let[,t]=await (0,n.Vx)((0,n.sW)({chat_mode:"chat_normal"}));t&&(null==e||e({chat_scene:t.chat_mode,app_code:t.chat_mode}),localStorage.setItem("cur_dialog_info",JSON.stringify({chat_scene:t.chat_mode,app_code:t.chat_mode})),localStorage.setItem(z.rU,JSON.stringify({id:t.conv_uid,message:r})),a.push("/chat/?scene=chat_normal&id=".concat(t.conv_uid))),i("")};return(0,l.jsxs)("div",{className:"flex flex-1 h-12 p-2 pl-4 items-center justify-between bg-white dark:bg-[#242733] dark:border-[#6f7f95] rounded-xl border-t border-b border-l border-r ".concat(o?"border-[#0c75fc]":""),children:[(0,l.jsx)(E.default.TextArea,{placeholder:t("input_tips"),className:"w-full resize-none border-0 p-0 focus:shadow-none",value:r,autoSize:{minRows:1},onKeyDown:e=>{"Enter"===e.key&&!e.shiftKey&&!d&&(e.preventDefault(),r.trim()&&m())},onChange:e=>{i(e.target.value)},onFocus:()=>{c(!0)},onBlur:()=>c(!1),onCompositionStart:()=>u(!0),onCompositionEnd:()=>u(!1)}),(0,l.jsx)(A.ZP,{type:"primary",className:J()("flex items-center justify-center w-14 h-8 rounded-lg text-sm bg-button-gradient border-0",{"opacity-40 cursor-not-allowed":!r.trim()}),onClick:()=>{r.trim()&&m()},children:t("sent")})]})},G=a(28459),I=a(92783),$=a(36609),q=function(){let{setCurrentDialogInfo:e,model:t}=(0,v.useContext)(s.p),a=(0,V.useRouter)(),[r,i]=(0,v.useState)({app_list:[],total_count:0}),[o,c]=(0,v.useState)("recommend"),d=e=>(0,n.Vx)((0,n.yk)({...e,page_no:"1",page_size:"6"})),u=e=>(0,n.Vx)((0,n.mW)({page_no:"1",page_size:"6",...e})),{run:m,loading:p,refresh:h}=(0,_.Z)(async e=>{switch(o){case"recommend":return await u({});case"used":return await d({is_recent_used:"true",need_owner_info:"true",...e&&{app_name:e}});default:return[]}},{manual:!0,onSuccess:e=>{let[t,a]=e;if("recommend"===o)return i({app_list:a,total_count:(null==a?void 0:a.length)||0});i(a||{})},debounceWait:500});(0,v.useEffect)(()=>{m()},[o,m]);let x=[{value:"recommend",label:(0,$.t)("recommend_apps")},{value:"used",label:(0,$.t)("used_apps")}],{data:f}=(0,_.Z)(async()=>{let[,e]=await (0,n.Vx)((0,S.A)({is_hot_question:"true"}));return null!=e?e:[]});return(0,l.jsx)(G.ZP,{theme:{components:{Button:{defaultBorderColor:"white"},Segmented:{itemSelectedBg:"#2867f5",itemSelectedColor:"white"}}},children:(0,l.jsxs)("div",{className:"px-28 py-10 h-full flex flex-col justify-between",children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)(I.Z,{className:"backdrop-filter h-10 backdrop-blur-lg bg-white bg-opacity-30 border border-white rounded-lg shadow p-1 dark:border-[#6f7f95] dark:bg-[#6f7f95] dark:bg-opacity-60",options:x,value:o,onChange:e=>{c(e)}}),(0,l.jsxs)("span",{className:"flex items-center text-gray-500 gap-1 dark:text-slate-300",children:[(0,l.jsx)("span",{children:(0,$.t)("app_in_mind")}),(0,l.jsxs)("span",{className:"flex items-center cursor-pointer",onClick:()=>{a.push("/")},children:[(0,l.jsx)(O(),{src:"/pictures/explore_active.png",alt:"construct_image",width:24,height:24},"image_explore"),(0,l.jsx)("span",{className:"text-default",children:(0,$.t)("explore")})]}),(0,l.jsx)("span",{children:(0,$.t)("Discover_more")})]})]}),(0,l.jsx)(T,{apps:(null==r?void 0:r.app_list)||[],loading:p,refresh:h,type:o}),f&&f.length>0&&(0,l.jsxs)("div",{children:[(0,l.jsx)("h2",{className:"font-medium text-xl my-4",children:(0,$.t)("help")}),(0,l.jsx)("div",{className:"flex justify-start gap-4",children:f.map(s=>(0,l.jsxs)("span",{className:"flex gap-4 items-center backdrop-filter backdrop-blur-lg cursor-pointer bg-white bg-opacity-70 border-0 rounded-lg shadow p-2 relative dark:bg-[#6f7f95] dark:bg-opacity-60",onClick:async()=>{let[,l]=await (0,n.Vx)((0,n.sW)({chat_mode:"chat_knowledge",model:t}));l&&(null==e||e({chat_scene:l.chat_mode,app_code:s.app_code}),localStorage.setItem("cur_dialog_info",JSON.stringify({chat_scene:l.chat_mode,app_code:s.app_code})),localStorage.setItem(z.rU,JSON.stringify({id:l.conv_uid,message:s.question})),a.push("/chat/?scene=".concat(l.chat_mode,"&id=").concat(null==l?void 0:l.conv_uid)))},children:[(0,l.jsx)("span",{children:s.question}),(0,l.jsx)(O(),{src:"/icons/send.png",alt:"construct_image",width:20,height:20},"image_explore")]},s.id))})]})]}),(0,l.jsx)("div",{children:(0,l.jsx)(W,{})})]})})},F=a(39332),B=a(30159),H=a(87740),U=a(52645),K=a(83062),X=a(42952),Y=a(34041),Q=a(39718),ee=(0,v.memo)(()=>{let{modelList:e}=(0,v.useContext)(s.p),{appInfo:t,modelValue:a,setModelValue:n}=(0,v.useContext)(eC),{t:r}=(0,g.$G)(),i=(0,v.useMemo)(()=>{var e;return(null===(e=t.param_need)||void 0===e?void 0:e.map(e=>e.type))||[]},[t.param_need]);return i.includes("model")?(0,l.jsx)(Y.default,{value:a,placeholder:r("choose_model"),className:"h-8 rounded-3xl",onChange:e=>{n(e)},popupMatchSelectWidth:300,children:e.map(e=>(0,l.jsx)(Y.default.Option,{children:(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(Q.Z,{model:e}),(0,l.jsx)("span",{className:"ml-2",children:e})]})},e))}):(0,l.jsx)(K.Z,{title:r("model_tip"),children:(0,l.jsx)("div",{className:"flex w-8 h-8 items-center justify-center rounded-md hover:bg-[rgb(221,221,221,0.6)]",children:(0,l.jsx)(X.Z,{className:"text-xl cursor-not-allowed opacity-30"})})})}),et=a(98978),ea=a(90725),el=a(83266),es=a(2093),en=a(23799),er=(0,v.memo)(e=>{var t,a,s,r,i;let{fileList:o,setFileList:c,setLoading:d,fileName:u}=e,{setResourceValue:m,appInfo:p,refreshHistory:h,refreshDialogList:x,modelValue:f,resourceValue:b}=(0,v.useContext)(eC),j=(0,F.useSearchParams)(),y=null!==(t=null==j?void 0:j.get("scene"))&&void 0!==t?t:"",w=null!==(a=null==j?void 0:j.get("id"))&&void 0!==a?a:"",{t:N}=(0,g.$G)(),[k,Z]=(0,v.useState)([]),S=(0,v.useMemo)(()=>{var e;return(null===(e=p.param_need)||void 0===e?void 0:e.map(e=>e.type))||[]},[p.param_need]),C=(0,v.useMemo)(()=>{var e,t;return S.includes("resource")&&(null===(e=null===(t=p.param_need)||void 0===t?void 0:t.filter(e=>"resource"===e.type)[0])||void 0===e?void 0:e.value)==="database"},[p.param_need,S]),P=(0,v.useMemo)(()=>{var e,t;return S.includes("resource")&&(null===(e=null===(t=p.param_need)||void 0===t?void 0:t.filter(e=>"resource"===e.type)[0])||void 0===e?void 0:e.value)==="knowledge"},[p.param_need,S]),R=(0,v.useMemo)(()=>{var e;return null===(e=p.param_need)||void 0===e?void 0:e.find(e=>"resource"===e.type)},[p.param_need]),{run:M,loading:O}=(0,_.Z)(async()=>await (0,n.Vx)((0,n.vD)(y)),{manual:!0,onSuccess:e=>{let[,t]=e;Z(null!=t?t:[])}});(0,es.Z)(async()=>{(C||P)&&!(null==R?void 0:R.bind_value)&&await M()},[C,P,R]);let V=(0,v.useMemo)(()=>{var e;return null===(e=k.map)||void 0===e?void 0:e.call(k,e=>({label:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(et.Z,{width:24,height:24,src:z.S$[e.type].icon,label:z.S$[e.type].label,className:"w-[1.5em] h-[1.5em] mr-1 inline-block mt-[-4px]"}),e.param]}),value:e.param}))},[k]),L=(0,v.useCallback)(async()=>{let e=new FormData;e.append("doc_file",null==o?void 0:o[0]),d(!0);let[t,a]=await (0,n.Vx)((0,n.qn)({convUid:w,chatMode:y,data:e,model:f,config:{timeout:36e5}})).finally(()=>{d(!1)});a&&(m(a),await h(),await x())},[w,o,f,x,h,y,d,m]);if(!S.includes("resource"))return(0,l.jsx)(K.Z,{title:N("extend_tip"),children:(0,l.jsx)("div",{className:"flex w-8 h-8 items-center justify-center rounded-md hover:bg-[rgb(221,221,221,0.6)]",children:(0,l.jsx)(ea.Z,{className:"text-lg cursor-not-allowed opacity-30"})})});switch(null==R?void 0:R.value){case"excel_file":case"text_file":case"image_file":return(0,l.jsx)(en.default,{name:"file",accept:".csv,.xlsx,.xls",fileList:o,showUploadList:!1,beforeUpload:(e,t)=>{null==c||c(t)},customRequest:L,disabled:!!u||!!(null===(s=o[0])||void 0===s?void 0:s.name),children:(0,l.jsx)(K.Z,{title:N("file_tip"),arrow:!1,placement:"bottom",children:(0,l.jsx)("div",{className:"flex w-8 h-8 items-center justify-center rounded-md hover:bg-[rgb(221,221,221,0.6)]",children:(0,l.jsx)(el.Z,{className:J()("text-xl",{"cursor-pointer":!(u||(null===(r=o[0])||void 0===r?void 0:r.name))})})})})});case"database":case"knowledge":case"plugin":case"awel_flow":return b||m(null==V?void 0:null===(i=V[0])||void 0===i?void 0:i.value),(0,l.jsx)(Y.default,{value:b,className:"w-52 h-8 rounded-3xl",onChange:e=>{m(e)},disabled:!!(null==R?void 0:R.bind_value),loading:O,options:V})}}),ei=a(11186),eo=a(55241),ec=a(30568),ed=a(13457),eu=(0,v.memo)(e=>{let{temperatureValue:t,setTemperatureValue:a}=e,{appInfo:s}=(0,v.useContext)(eC),{t:n}=(0,g.$G)(),r=(0,v.useMemo)(()=>{var e;return(null===(e=s.param_need)||void 0===e?void 0:e.map(e=>e.type))||[]},[s.param_need]);if(!r.includes("temperature"))return(0,l.jsx)(K.Z,{title:n("temperature_tip"),children:(0,l.jsx)("div",{className:"flex w-8 h-8 items-center justify-center rounded-md hover:bg-[rgb(221,221,221,0.6)] cursor-pointer",children:(0,l.jsx)(ei.Z,{className:"text-xl cursor-not-allowed opacity-30"})})});let i=e=>{isNaN(e)||a(e)};return(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eo.Z,{arrow:!1,trigger:["click"],placement:"topLeft",content:()=>(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(ec.Z,{className:"w-20",min:0,max:1,step:.1,onChange:i,value:"number"==typeof t?t:0}),(0,l.jsx)(ed.Z,{size:"small",className:"w-14",min:0,max:1,step:.1,onChange:i,value:t})]}),children:(0,l.jsx)(K.Z,{title:n("temperature"),placement:"bottom",arrow:!1,children:(0,l.jsx)("div",{className:"flex w-8 h-8 items-center justify-center rounded-md hover:bg-[rgb(221,221,221,0.6)] cursor-pointer",children:(0,l.jsx)(ei.Z,{})})})}),(0,l.jsx)("span",{className:"text-sm ml-2",children:t})]})}),em=e=>{var t,a;let{ctrl:s}=e,{t:r}=(0,g.$G)(),{history:o,scrollRef:c,canAbort:d,replyLoading:u,currentDialogue:m,appInfo:p,temperatureValue:x,resourceValue:f,setTemperatureValue:_,refreshHistory:b,setCanAbort:j,setReplyLoading:y,handleChat:w}=(0,v.useContext)(eC),[N,k]=(0,v.useState)([]),[Z,S]=(0,v.useState)(!1),[C,P]=(0,v.useState)(!1),R=(0,v.useMemo)(()=>{var e;return(null===(e=p.param_need)||void 0===e?void 0:e.map(e=>e.type))||[]},[p.param_need]),M=(0,v.useMemo)(()=>[{tip:r("stop_replying"),icon:(0,l.jsx)(B.Z,{className:J()({"text-[#0c75fc]":d})}),can_use:d,key:"abort",onClick:()=>{d&&(s.abort(),setTimeout(()=>{j(!1),y(!1)},100))}},{tip:r("answer_again"),icon:(0,l.jsx)(H.Z,{}),can_use:!u&&o.length>0,key:"redo",onClick:async()=>{var e,t;let a=null===(e=null===(t=o.filter(e=>"human"===e.role))||void 0===t?void 0:t.slice(-1))||void 0===e?void 0:e[0];w((null==a?void 0:a.context)||"",{app_code:p.app_code,...R.includes("temperature")&&{temperature:x},...R.includes("resource")&&{select_param:"string"==typeof f?f:JSON.stringify(f)||m.select_param}}),setTimeout(()=>{var e,t;null===(e=c.current)||void 0===e||e.scrollTo({top:null===(t=c.current)||void 0===t?void 0:t.scrollHeight,behavior:"smooth"})},0)}},{tip:r("erase_memory"),icon:C?(0,l.jsx)(h.Z,{spinning:C,indicator:(0,l.jsx)(i.Z,{style:{fontSize:20}})}):(0,l.jsx)(U.Z,{}),can_use:o.length>0,key:"clear",onClick:async()=>{C||(P(!0),await (0,n.Vx)((0,n.zR)(m.conv_uid)).finally(async()=>{await b(),P(!1)}))}}],[r,d,u,o,C,s,j,y,w,p.app_code,R,x,f,m.select_param,m.conv_uid,c,b]),V=(0,v.useMemo)(()=>{try{return JSON.parse(m.select_param).file_name}catch(e){return""}},[m.select_param]);return(0,l.jsxs)("div",{className:"flex flex-col mb-2",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between h-full w-full",children:[(0,l.jsxs)("div",{className:"flex gap-3 text-lg",children:[(0,l.jsx)(ee,{}),(0,l.jsx)(er,{fileList:N,setFileList:k,setLoading:S,fileName:V}),(0,l.jsx)(eu,{temperatureValue:x,setTemperatureValue:_})]}),(0,l.jsx)("div",{className:"flex gap-1",children:(0,l.jsx)(l.Fragment,{children:M.map(e=>(0,l.jsx)(K.Z,{title:e.tip,arrow:!1,placement:"bottom",children:(0,l.jsx)("div",{className:"flex w-8 h-8 items-center justify-center rounded-md hover:bg-[rgb(221,221,221,0.6)] text-lg ".concat(e.can_use?"cursor-pointer":"opacity-30 cursor-not-allowed"),onClick:()=>{var t;null===(t=e.onClick)||void 0===t||t.call(e)},children:e.icon})},e.key))})})]}),(V||(null===(t=N[0])||void 0===t?void 0:t.name))&&(0,l.jsx)("div",{className:"group/item flex mt-2",children:(0,l.jsxs)("div",{className:"flex items-center justify-between w-64 border border-[#e3e4e6] dark:border-[rgba(255,255,255,0.6)] rounded-lg p-2",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(O(),{src:"/icons/chat/excel.png",width:20,height:20,alt:"file-icon",className:"mr-2"}),(0,l.jsx)("span",{className:"text-sm text-[#1c2533] dark:text-white line-clamp-1",children:V||(null===(a=N[0])||void 0===a?void 0:a.name)})]}),(0,l.jsx)(h.Z,{spinning:Z,indicator:(0,l.jsx)(i.Z,{style:{fontSize:24},spin:!0})})]})})]})},ep=e=>{var t;let{ctrl:a}=e,{t:s}=(0,g.$G)(),{scrollRef:n,replyLoading:r,handleChat:o,appInfo:c,currentDialogue:d,temperatureValue:u,resourceValue:m,refreshDialogList:p}=(0,v.useContext)(eC),x=(0,F.useSearchParams)(),f=null!==(t=null==x?void 0:x.get("select_param"))&&void 0!==t?t:"",[_,b]=(0,v.useState)(""),[j,y]=(0,v.useState)(!1),[w,N]=(0,v.useState)(!1),k=(0,v.useRef)(0),Z=(0,v.useMemo)(()=>{var e;return(null===(e=c.param_need)||void 0===e?void 0:e.map(e=>e.type))||[]},[c.param_need]),S=async()=>{k.current++,setTimeout(()=>{var e,t;null===(e=n.current)||void 0===e||e.scrollTo({top:null===(t=n.current)||void 0===t?void 0:t.scrollHeight,behavior:"smooth"}),b("")},0),await o(_,{app_code:c.app_code||"",...Z.includes("temperature")&&{temperature:u},select_param:f,...Z.includes("resource")&&{select_param:"string"==typeof m?m:JSON.stringify(m)||d.select_param}}),1===k.current&&await p()};return(0,l.jsx)("div",{className:"flex flex-col w-5/6 mx-auto pt-4 pb-6 bg-transparent",children:(0,l.jsxs)("div",{className:"flex flex-1 flex-col bg-white dark:bg-[rgba(255,255,255,0.16)] px-5 py-4 pt-2 rounded-xl relative border-t border-b border-l border-r dark:border-[rgba(255,255,255,0.6)] ".concat(j?"border-[#0c75fc]":""),id:"input-panel",children:[(0,l.jsx)(em,{ctrl:a}),(0,l.jsx)(E.default.TextArea,{placeholder:s("input_tips"),className:"w-full h-20 resize-none border-0 p-0 focus:shadow-none dark:bg-transparent",value:_,onKeyDown:e=>{"Enter"===e.key&&!e.shiftKey&&!w&&(e.preventDefault(),_.trim()&&!r&&S())},onChange:e=>{b(e.target.value)},onFocus:()=>{y(!0)},onBlur:()=>y(!1),onCompositionStart:()=>N(!0),onCompositionEnd:()=>N(!1)}),(0,l.jsx)(A.ZP,{type:"primary",className:J()("flex items-center justify-center w-14 h-8 rounded-lg text-sm absolute right-4 bottom-3 bg-button-gradient border-0",{"cursor-not-allowed":!_.trim()}),onClick:()=>{!r&&_.trim()&&S()},children:r?(0,l.jsx)(h.Z,{spinning:r,indicator:(0,l.jsx)(i.Z,{className:"text-white"})}):s("sent")})]})})},eh=a(20046),ex=a(48689),ef=a(14313),ev=a(94155),eg=a(21612),e_=a(85576),eb=a(86250);let{Sider:ej}=eg.default,ey={display:"flex",alignItems:"center",justifyContent:"center",width:16,height:48,position:"absolute",top:"50%",transform:"translateY(-50%)",border:"1px solid #d6d8da",borderRadius:8,right:-8},ew=e=>{var t,a;let{item:r,refresh:i,historyLoading:o}=e,{t:c}=(0,g.$G)(),d=(0,F.useRouter)(),m=(0,F.useSearchParams)(),h=null!==(t=null==m?void 0:m.get("id"))&&void 0!==t?t:"",x=null!==(a=null==m?void 0:m.get("scene"))&&void 0!==a?a:"",{setCurrentDialogInfo:_}=(0,v.useContext)(s.p),b=(0,v.useMemo)(()=>r.default?r.default&&!h&&!x:r.conv_uid===h&&r.chat_mode===x,[h,x,r]),j=()=>{e_.default.confirm({title:c("delete_chat"),content:c("delete_chat_confirm"),centered:!0,onOk:async()=>{let[e]=await (0,n.Vx)((0,n.MX)(r.conv_uid));e||(await (null==i?void 0:i()),r.conv_uid===h&&d.push("/chat"))}})};return(0,l.jsxs)(eb.Z,{align:"center",className:"group/item w-full h-12 p-3 rounded-lg hover:bg-white dark:hover:bg-theme-dark cursor-pointer mb-2 relative ".concat(b?"bg-white dark:bg-theme-dark bg-opacity-100":""),onClick:()=>{o||(r.default||null==_||_({chat_scene:r.chat_mode,app_code:r.app_code}),localStorage.setItem("cur_dialog_info",JSON.stringify({chat_scene:r.chat_mode,app_code:r.app_code})),d.push(r.default?"/chat":"?scene=".concat(r.chat_mode,"&id=").concat(r.conv_uid)))},children:[(0,l.jsx)(K.Z,{title:r.chat_mode,children:(0,l.jsx)("div",{className:"flex items-center justify-center w-8 h-8 rounded-lg mr-3 bg-white",children:r.icon})}),(0,l.jsx)("div",{className:"flex flex-1 line-clamp-1",children:(0,l.jsx)(p.Z.Text,{ellipsis:{tooltip:!0},children:r.label})}),!r.default&&(0,l.jsxs)("div",{className:"flex gap-1 ml-1",children:[(0,l.jsx)("div",{className:"group-hover/item:opacity-100 cursor-pointer opacity-0",onClick:e=>{e.stopPropagation()},children:(0,l.jsx)(eh.Z,{style:{fontSize:16},onClick:()=>{let e=f()("".concat(location.origin,"/chat?scene=").concat(r.chat_mode,"&id=").concat(r.conv_uid));u.ZP[e?"success":"error"](e?c("copy_success"):c("copy_failed"))}})}),(0,l.jsx)("div",{className:"group-hover/item:opacity-100 cursor-pointer opacity-0",onClick:e=>{e.stopPropagation(),j()},children:(0,l.jsx)(ex.Z,{style:{fontSize:16}})})]}),(0,l.jsx)("div",{className:" w-1 rounded-sm bg-[#0c75fc] absolute top-1/2 left-0 -translate-y-1/2 transition-all duration-500 ease-in-out ".concat(b?"h-5":"w-0 h-0")})]})};var eN=e=>{var t;let{dialogueList:a=[],refresh:n,historyLoading:r,listLoading:i,order:o}=e,c=(0,F.useSearchParams)(),d=null!==(t=null==c?void 0:c.get("scene"))&&void 0!==t?t:"",{t:u}=(0,g.$G)(),{mode:m}=(0,v.useContext)(s.p),[p,x]=(0,v.useState)("chat_dashboard"===d),f=(0,v.useMemo)(()=>p?{...ey,right:-16,borderRadius:"0px 8px 8px 0",borderLeft:"1px solid #d5e5f6"}:{...ey,borderLeft:"1px solid #d6d8da"},[p]),_=(0,v.useMemo)(()=>{let e=a[1]||[];return(null==e?void 0:e.length)>0?e.map(e=>({...e,label:e.user_input||e.select_param,key:e.conv_uid,icon:(0,l.jsx)(b.Z,{scene:e.chat_mode}),default:!1})):[]},[a]);return(0,l.jsx)(ej,{className:"bg-[#ffffff80] border-r border-[#d5e5f6] dark:bg-[#ffffff29] dark:border-[#ffffff66]",theme:m,width:280,collapsible:!0,collapsed:p,collapsedWidth:0,trigger:p?(0,l.jsx)(ef.Z,{className:"text-base"}):(0,l.jsx)(ev.Z,{className:"text-base"}),zeroWidthTriggerStyle:f,onCollapse:e=>x(e),children:(0,l.jsxs)("div",{className:"flex flex-col h-full w-full bg-transparent px-4 pt-6 ",children:[(0,l.jsx)("div",{className:"w-full text-base font-semibold text-[#1c2533] dark:text-[rgba(255,255,255,0.85)] mb-4 line-clamp-1",children:u("dialog_list")}),(0,l.jsxs)(eb.Z,{flex:1,vertical:!0,className:"overflow-y-auto",children:[(0,l.jsx)(ew,{item:{label:u("assistant"),key:"default",icon:(0,l.jsx)(O(),{src:"/LOGO_SMALL.png",alt:"default",width:24,height:24,className:"flex-1"}),default:!0},order:o}),(0,l.jsx)(h.Z,{spinning:i,className:"mt-2",children:!!(null==_?void 0:_.length)&&_.map(e=>(0,l.jsx)(ew,{item:e,refresh:n,historyLoading:r,order:o},null==e?void 0:e.key))})]})]})})};let ek=N()(()=>Promise.all([a.e(3662),a.e(7034),a.e(8674),a.e(930),a.e(3166),a.e(2837),a.e(2168),a.e(8163),a.e(7126),a.e(1300),a.e(4567),a.e(9773),a.e(4455),a.e(5110),a.e(3764),a.e(5e3),a.e(4434),a.e(4451)]).then(a.bind(a,96307)),{loadableGenerated:{webpack:()=>[96307]},ssr:!1}),eZ=N()(()=>Promise.all([a.e(3662),a.e(7034),a.e(8674),a.e(930),a.e(3166),a.e(2837),a.e(2168),a.e(8163),a.e(7126),a.e(2398),a.e(9859),a.e(1300),a.e(4567),a.e(9773),a.e(4455),a.e(5110),a.e(4705),a.e(9202),a.e(3764),a.e(5e3),a.e(1010),a.e(6220),a.e(8709),a.e(3913),a.e(4434),a.e(4769)]).then(a.bind(a,36517)),{loadableGenerated:{webpack:()=>[36517]},ssr:!1}),{Content:eS}=eg.default,eC=(0,v.createContext)({history:[],replyLoading:!1,scrollRef:{current:null},canAbort:!1,chartsData:[],agent:"",currentDialogue:{},appInfo:{},temperatureValue:.5,resourceValue:{},modelValue:"",setModelValue:()=>{},setResourceValue:()=>{},setTemperatureValue:()=>{},setAppInfo:()=>{},setAgent:()=>{},setCanAbort:()=>{},setReplyLoading:()=>{},refreshDialogList:()=>{},refreshHistory:()=>{},refreshAppInfo:()=>{},setHistory:()=>{},handleChat:()=>Promise.resolve()});var eP=()=>{var e,t,a,i;let{model:o,currentDialogInfo:c}=(0,v.useContext)(s.p),{isContract:d,setIsContract:u,setIsMenuExpand:m}=(0,v.useContext)(s.p),{chat:p,ctrl:x}=(0,r.Z)({app_code:c.app_code||""}),f=(0,F.useSearchParams)(),g=null!==(e=null==f?void 0:f.get("id"))&&void 0!==e?e:"",b=null!==(t=null==f?void 0:f.get("scene"))&&void 0!==t?t:"",j=null!==(a=null==f?void 0:f.get("knowledge_id"))&&void 0!==a?a:"",y=null!==(i=null==f?void 0:f.get("db_name"))&&void 0!==i?i:"",w=(0,v.useRef)(null),N=(0,v.useRef)(1),[k,S]=(0,v.useState)([]),[C]=(0,v.useState)(),[P,R]=(0,v.useState)(!1),[M,O]=(0,v.useState)(!1),[V,L]=(0,v.useState)(""),[T,E]=(0,v.useState)({}),[A,D]=(0,v.useState)(),[J,W]=(0,v.useState)(),[G,I]=(0,v.useState)("");(0,v.useEffect)(()=>{var e,t,a,l,s,n;D((null===(e=null==T?void 0:null===(t=T.param_need)||void 0===t?void 0:t.filter(e=>"temperature"===e.type)[0])||void 0===e?void 0:e.value)||.5),I((null===(a=null==T?void 0:null===(l=T.param_need)||void 0===l?void 0:l.filter(e=>"model"===e.type)[0])||void 0===a?void 0:a.value)||o),W(j||y||(null===(s=null==T?void 0:null===(n=T.param_need)||void 0===n?void 0:n.filter(e=>"resource"===e.type)[0])||void 0===s?void 0:s.bind_value))},[T,y,j,o]),(0,v.useEffect)(()=>{m("chat_dashboard"!==b),g&&b&&u(!1)},[g,b]);let $=(0,v.useMemo)(()=>!g&&!b,[g,b]),{data:B=[],refresh:H,loading:U}=(0,_.Z)(async()=>await (0,n.Vx)((0,n.iP)())),{run:K,refresh:X}=(0,_.Z)(async()=>await (0,n.Vx)((0,n.BN)({...c})),{manual:!0,onSuccess:e=>{let[,t]=e;E(t||{})}}),Y=(0,v.useMemo)(()=>{let[,e]=B;return(null==e?void 0:e.find(e=>e.conv_uid===g))||{}},[g,B]);(0,v.useEffect)(()=>{let e=(0,z.a_)();c.chat_scene!==b||$||e&&e.message||K()},[g,c,$,K,b]);let{run:Q,loading:ee,refresh:et}=(0,_.Z)(async()=>await (0,n.Vx)((0,n.$i)(g)),{manual:!0,onSuccess:e=>{let[,t]=e,a=null==t?void 0:t.filter(e=>"view"===e.role);a&&a.length>0&&(N.current=a[a.length-1].order+1),S(t||[])}}),ea=(0,v.useCallback)((e,t)=>new Promise(a=>{let l=(0,z.a_)(),s=new AbortController;if(R(!0),k&&k.length>0){var n,r;let e=null==k?void 0:k.filter(e=>"view"===e.role),t=null==k?void 0:k.filter(e=>"human"===e.role);N.current=((null===(n=e[e.length-1])||void 0===n?void 0:n.order)||(null===(r=t[t.length-1])||void 0===r?void 0:r.order))+1}let i=[...l&&l.id===g?[]:k,{role:"human",context:e,model_name:(null==t?void 0:t.model_name)||G,order:N.current,time_stamp:0},{role:"view",context:"",model_name:(null==t?void 0:t.model_name)||G,order:N.current,time_stamp:0,thinking:!0}],o=i.length-1;S([...i]),p({data:{chat_mode:b,model_name:G,user_input:e,...t},ctrl:s,chatId:g,onMessage:e=>{O(!0),(null==t?void 0:t.incremental)?(i[o].context+=e,i[o].thinking=!1):(i[o].context=e,i[o].thinking=!1),S([...i])},onDone:()=>{R(!1),O(!1),a()},onClose:()=>{R(!1),O(!1),a()},onError:e=>{R(!1),O(!1),i[o].context=e,i[o].thinking=!1,S([...i]),a()}})}),[g,k,G,p,b]);return(0,es.Z)(async()=>{if($)return;let e=(0,z.a_)();e&&e.id===g||await Q()},[g,b,Q]),(0,v.useEffect)(()=>{$&&(N.current=1,S([]))},[$]),(0,l.jsx)(eC.Provider,{value:{history:k,replyLoading:P,scrollRef:w,canAbort:M,chartsData:C||[],agent:V,currentDialogue:Y,appInfo:T,temperatureValue:A,resourceValue:J,modelValue:G,setModelValue:I,setResourceValue:W,setTemperatureValue:D,setAppInfo:E,setAgent:L,setCanAbort:O,setReplyLoading:R,handleChat:ea,refreshDialogList:H,refreshHistory:et,refreshAppInfo:X,setHistory:S},children:(0,l.jsx)(eb.Z,{flex:1,children:(0,l.jsxs)(eg.default,{className:"bg-gradient-light bg-cover bg-center dark:bg-gradient-dark",children:[(0,l.jsx)(eN,{refresh:H,dialogueList:B,listLoading:U,historyLoading:ee,order:N}),(0,l.jsx)(eg.default,{className:"bg-transparent",children:"chat_dashboard"===b?d?(0,l.jsx)(ek,{}):(0,l.jsx)(eZ,{}):$?(0,l.jsx)(eS,{children:(0,l.jsx)(q,{})}):(0,l.jsx)(h.Z,{spinning:ee,className:"w-full h-full m-auto",children:(0,l.jsxs)(eS,{className:"flex flex-col h-screen",children:[(0,l.jsx)(Z,{ref:w}),(0,l.jsx)(ep,{ctrl:x})]})})})]})})})}},11873:function(){}}]); \ No newline at end of file diff --git a/dbgpt/app/static/web/_next/static/chunks/9958.787e606531dee667.js b/dbgpt/app/static/web/_next/static/chunks/9958.787e606531dee667.js new file mode 100644 index 000000000..92cce0913 --- /dev/null +++ b/dbgpt/app/static/web/_next/static/chunks/9958.787e606531dee667.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9958],{2440:function(e,l,t){var s=t(25519);l.Z=()=>{var e;return JSON.parse(null!==(e=localStorage.getItem(s.C9))&&void 0!==e?e:"")}},88331:function(e,l,t){t.r(l),t.d(l,{default:function(){return Y}});var s=t(85893),n=t(41468),a=t(76212),i=t(74434),r=t(30853),c=t(25519),o=t(24019),d=t(50888),u=t(97937),m=t(63606),x=t(89035),p=t(87554),v=t(93967),f=t.n(v),g=t(25675),h=t.n(g),j=t(39332),y=t(67294),w=t(67421),_=t(14660),b=t(55186),k=t(65429),N=t(15381),Z=t(57132),C=t(65654),S=t(66309),P=t(25278),O=t(14726),J=t(45360),$=t(55241),I=t(96074),M=t(20640),A=t.n(M);let E=e=>{let{list:l,loading:t,feedback:n,setFeedbackOpen:a}=e,{t:i}=(0,w.$G)(),[r,c]=(0,y.useState)([]),[o,d]=(0,y.useState)("");return(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("div",{className:"flex flex-1 flex-wrap w-72",children:null==l?void 0:l.map(e=>{let l=r.findIndex(l=>l.reason_type===e.reason_type)>-1;return(0,s.jsx)(S.Z,{className:"text-xs text-[#525964] mb-2 p-1 px-2 rounded-md cursor-pointer ".concat(l?"border-[#0c75fc] text-[#0c75fc]":""),onClick:()=>{c(l=>{let t=l.findIndex(l=>l.reason_type===e.reason_type);return t>-1?[...l.slice(0,t),...l.slice(t+1)]:[...l,e]})},children:e.reason},e.reason_type)})}),(0,s.jsx)(P.default.TextArea,{placeholder:i("feedback_tip"),className:"w-64 h-20 resize-none mb-2",value:o,onChange:e=>d(e.target.value.trim())}),(0,s.jsxs)("div",{className:"flex gap-2 justify-end",children:[(0,s.jsx)(O.ZP,{className:"w-16 h-8",onClick:()=>{a(!1)},children:"取消"}),(0,s.jsx)(O.ZP,{type:"primary",className:"min-w-16 h-8",onClick:async()=>{let e=r.map(e=>e.reason_type);await (null==n?void 0:n({feedback_type:"unlike",reason_types:e,remark:o}))},loading:t,children:"确认"})]})]})};var F=e=>{var l,t;let{content:n}=e,{t:i}=(0,w.$G)(),r=(0,j.useSearchParams)(),c=null!==(t=null==r?void 0:r.get("id"))&&void 0!==t?t:"",[o,d]=J.ZP.useMessage(),[u,m]=(0,y.useState)(!1),[x,p]=(0,y.useState)(null==n?void 0:null===(l=n.feedback)||void 0===l?void 0:l.feedback_type),[v,g]=(0,y.useState)(),h=async e=>{let l=null==e?void 0:e.replace(/\trelations:.*/g,""),t=A()(l);t?l?o.open({type:"success",content:i("copy_success")}):o.open({type:"warning",content:i("copy_nothing")}):o.open({type:"error",content:i("copy_failed")})},{run:_,loading:b}=(0,C.Z)(async e=>await (0,a.Vx)((0,a.zx)({conv_uid:c,message_id:n.order+"",feedback_type:e.feedback_type,reason_types:e.reason_types,remark:e.remark})),{manual:!0,onSuccess:e=>{let[,l]=e;p(null==l?void 0:l.feedback_type),J.ZP.success("反馈成功"),m(!1)}}),{run:S}=(0,C.Z)(async()=>await (0,a.Vx)((0,a.Jr)()),{manual:!0,onSuccess:e=>{let[,l]=e;g(l||[]),l&&m(!0)}}),{run:P}=(0,C.Z)(async()=>await (0,a.Vx)((0,a.Ir)({conv_uid:c,message_id:(null==n?void 0:n.order)+""})),{manual:!0,onSuccess:e=>{let[,l]=e;l&&(p("none"),J.ZP.success("操作成功"))}});return(0,s.jsxs)(s.Fragment,{children:[d,(0,s.jsxs)("div",{className:"flex flex-1 items-center text-sm px-4",children:[(0,s.jsxs)("div",{className:"flex gap-3",children:[(0,s.jsx)(k.Z,{className:f()("cursor-pointer",{"text-[#0C75FC]":"like"===x}),onClick:async()=>{if("like"===x){await P();return}await _({feedback_type:"like"})}}),(0,s.jsx)($.Z,{placement:"bottom",autoAdjustOverflow:!0,destroyTooltipOnHide:!0,content:(0,s.jsx)(E,{setFeedbackOpen:m,feedback:_,list:v||[],loading:b}),trigger:"click",open:u,children:(0,s.jsx)(N.Z,{className:f()("cursor-pointer",{"text-[#0C75FC]":"unlike"===x}),onClick:async()=>{if("unlike"===x){await P();return}await S()}})})]}),(0,s.jsx)(I.Z,{type:"vertical"}),(0,s.jsx)(Z.Z,{className:"cursor-pointer",onClick:()=>h(n.context)})]})]})},T=t(50228),V=t(48218),G=t(39718),z=(0,y.memo)(e=>{var l;let{model:t}=e,n=(0,j.useSearchParams)(),a=null!==(l=null==n?void 0:n.get("scene"))&&void 0!==l?l:"";return"chat_agent"===a?(0,s.jsx)("div",{className:"flex items-center justify-center w-8 h-8 rounded-full bg-white dark:bg-[rgba(255,255,255,0.16)]",children:(0,s.jsx)(V.Z,{scene:a})}):t?(0,s.jsx)(G.Z,{width:32,height:32,model:t}):(0,s.jsx)("div",{className:"flex items-center justify-center w-8 h-8 rounded-full bg-white dark:bg-[rgba(255,255,255,0.16)]",children:(0,s.jsx)(T.Z,{})})});let B=()=>{var e;let l=JSON.parse(null!==(e=localStorage.getItem(c.C9))&&void 0!==e?e:"");return l.avatar_url?(0,s.jsx)(h(),{className:"rounded-full border border-gray-200 object-contain bg-white inline-block",width:32,height:32,src:null==l?void 0:l.avatar_url,alt:null==l?void 0:l.nick_name}):(0,s.jsx)("div",{className:"flex items-center justify-center w-8 h-8 rounded-full bg-gradient-to-tr from-[#31afff] to-[#1677ff] text-xs text-white",children:null==l?void 0:l.nick_name})},D={todo:{bgClass:"bg-gray-500",icon:(0,s.jsx)(o.Z,{className:"ml-2"})},runing:{bgClass:"bg-blue-500",icon:(0,s.jsx)(d.Z,{className:"ml-2"})},failed:{bgClass:"bg-red-500",icon:(0,s.jsx)(u.Z,{className:"ml-2"})},completed:{bgClass:"bg-green-500",icon:(0,s.jsx)(m.Z,{className:"ml-2"})}},H=e=>e.replaceAll("\\n","\n").replace(/]+)>/gi,"").replace(/]+)>/gi,""),L=e=>null==e?void 0:e.replace(/]+)>/gi,"
    ").replace(/]+)>/gi,"");var R=(0,y.memo)(e=>{var l;let{content:t,onLinkClick:n}=e,{t:a}=(0,w.$G)(),i=(0,j.useSearchParams)(),c=null!==(l=null==i?void 0:i.get("scene"))&&void 0!==l?l:"",{context:o,model_name:d,role:u,thinking:m}=t,v=(0,y.useMemo)(()=>"view"===u,[u]),{value:g,cachePluginContext:h}=(0,y.useMemo)(()=>{if("string"!=typeof o)return{relations:[],value:"",cachePluginContext:[]};let[e,l]=o.split(" relations:"),t=l?l.split(","):[],s=[],n=0,a=e.replace(/]*>[^<]*<\/dbgpt-view>/gi,e=>{try{var l;let t=e.replaceAll("\n","\\n").replace(/<[^>]*>|<\/[^>]*>/gm,""),a=JSON.parse(t),i="".concat(n,"");return s.push({...a,result:H(null!==(l=a.result)&&void 0!==l?l:"")}),n++,i}catch(l){return console.log(l.message,l),e}});return{relations:t,cachePluginContext:s,value:a}},[o]),k=(0,y.useMemo)(()=>({"custom-view"(e){var l;let{children:t}=e,n=+t.toString();if(!h[n])return t;let{name:a,status:i,err_msg:c,result:o}=h[n],{bgClass:d,icon:u}=null!==(l=D[i])&&void 0!==l?l:{};return(0,s.jsxs)("div",{className:"bg-white dark:bg-[#212121] rounded-lg overflow-hidden my-2 flex flex-col lg:max-w-[80%]",children:[(0,s.jsxs)("div",{className:f()("flex px-4 md:px-6 py-2 items-center text-white text-sm",d),children:[a,u]}),o?(0,s.jsx)("div",{className:"px-4 md:px-6 py-4 text-sm",children:(0,s.jsx)(p.Z,{components:r.Z,rehypePlugins:[_.Z],remarkPlugins:[b.Z],children:null!=o?o:""})}):(0,s.jsx)("div",{className:"px-4 md:px-6 py-4 text-sm",children:c})]})}}),[h]);return(0,s.jsxs)("div",{className:"flex flex-1 gap-3 mt-6",children:[(0,s.jsx)("div",{className:"flex flex-shrink-0 items-start",children:v?(0,s.jsx)(z,{model:d}):(0,s.jsx)(B,{})}),(0,s.jsxs)("div",{className:"flex ".concat("chat_agent"!==c||m?"":"flex-1"," overflow-hidden"),children:[!v&&(0,s.jsx)("div",{className:"flex flex-1 items-center text-sm text-[#1c2533] dark:text-white",children:"string"==typeof o&&o}),v&&(0,s.jsxs)("div",{className:"flex flex-1 flex-col w-full",children:[(0,s.jsxs)("div",{className:"bg-white dark:bg-[rgba(255,255,255,0.16)] p-4 rounded-2xl rounded-tl-none mb-2",children:["object"==typeof o&&(0,s.jsxs)("div",{children:["[".concat(o.template_name,"]: "),(0,s.jsxs)("span",{className:"text-theme-primary cursor-pointer",onClick:n,children:[(0,s.jsx)(x.Z,{className:"mr-1"}),o.template_introduce||"More Details"]})]}),"string"==typeof o&&"chat_agent"===c&&(0,s.jsx)(p.Z,{components:{...r.Z},rehypePlugins:[_.Z],remarkPlugins:[b.Z],children:L(g)}),"string"==typeof o&&"chat_agent"!==c&&(0,s.jsx)("div",{children:(0,s.jsx)(p.Z,{components:{...r.Z,...k},rehypePlugins:[_.Z],remarkPlugins:[b.Z],children:H(g)})}),m&&!o&&(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"flex text-sm text-[#1c2533] dark:text-white",children:a("thinking")}),(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)("div",{className:"w-1 h-1 rounded-full mx-1 animate-pulse1"}),(0,s.jsx)("div",{className:"w-1 h-1 rounded-full mx-1 animate-pulse2"}),(0,s.jsx)("div",{className:"w-1 h-1 rounded-full mx-1 animate-pulse3"})]})]})]}),(0,s.jsx)(F,{content:t})]})]})]})}),U=t(57249),q=t(62418),K=t(2093),Q=t(85576),W=t(96486),X=t(25934),Y=()=>{var e,l;let t=(0,y.useRef)(null),r=(0,j.useSearchParams)(),c=null!==(l=null==r?void 0:r.get("id"))&&void 0!==l?l:"",{currentDialogInfo:o,model:d}=(0,y.useContext)(n.p),{history:u,handleChat:m,refreshDialogList:x,setAppInfo:p,setModelValue:v,setTemperatureValue:f,setMaxNewTokensValue:g,setResourceValue:h}=(0,y.useContext)(U.ChatContentContext),[w,_]=(0,y.useState)(!1),[b,k]=(0,y.useState)(""),N=(0,y.useMemo)(()=>{let e=(0,W.cloneDeep)(u);return e.filter(e=>["view","human"].includes(e.role)).map(e=>({...e,key:(0,X.Z)()}))},[u]);return(0,K.Z)(async()=>{let e=(0,q.a_)();if(e&&e.id===c){let[,c]=await (0,a.Vx)((0,a.BN)({...o}));if(c){var l,t,s,n,i,r,u,j,y;let a=(null==c?void 0:null===(l=c.param_need)||void 0===l?void 0:l.map(e=>e.type))||[],o=(null===(t=null==c?void 0:null===(s=c.param_need)||void 0===s?void 0:s.filter(e=>"model"===e.type)[0])||void 0===t?void 0:t.value)||d,w=(null===(n=null==c?void 0:null===(i=c.param_need)||void 0===i?void 0:i.filter(e=>"temperature"===e.type)[0])||void 0===n?void 0:n.value)||.5,_=(null===(r=null==c?void 0:null===(u=c.param_need)||void 0===u?void 0:u.filter(e=>"max_new_tokens"===e.type)[0])||void 0===r?void 0:r.value)||2048,b=null===(j=null==c?void 0:null===(y=c.param_need)||void 0===y?void 0:y.filter(e=>"resource"===e.type)[0])||void 0===j?void 0:j.bind_value;p(c||{}),f(w||.5),g(_||2048),v(o),h(b),await m(e.message,{app_code:null==c?void 0:c.app_code,model_name:o,...(null==a?void 0:a.includes("temperature"))&&{temperature:w},...(null==a?void 0:a.includes("max_new_tokens"))&&{max_new_tokens:_},...a.includes("resource")&&{select_param:"string"==typeof b?b:JSON.stringify(b)}}),await x(),localStorage.removeItem(q.rU)}}},[c,o]),(0,y.useEffect)(()=>{setTimeout(()=>{var e,l;null===(e=t.current)||void 0===e||e.scrollTo(0,null===(l=t.current)||void 0===l?void 0:l.scrollHeight)},50)},[u,null===(e=u[u.length-1])||void 0===e?void 0:e.context]),(0,s.jsxs)("div",{className:"flex flex-col w-5/6 mx-auto",ref:t,children:[!!N.length&&N.map((e,l)=>(0,s.jsx)(R,{content:e,onLinkClick:()=>{_(!0),k(JSON.stringify(null==e?void 0:e.context,null,2))}},l)),(0,s.jsx)(Q.default,{title:"JSON Editor",open:w,width:"60%",cancelButtonProps:{hidden:!0},onOk:()=>{_(!1)},onCancel:()=>{_(!1)},children:(0,s.jsx)(i.Z,{className:"w-full h-[500px]",language:"json",value:b})})]})}}}]); \ No newline at end of file diff --git a/dbgpt/app/static/web/_next/static/chunks/9958.baed211c1b6bb8d4.js b/dbgpt/app/static/web/_next/static/chunks/9958.baed211c1b6bb8d4.js deleted file mode 100644 index a7abb49e1..000000000 --- a/dbgpt/app/static/web/_next/static/chunks/9958.baed211c1b6bb8d4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9958],{2440:function(e,l,t){var s=t(25519);l.Z=()=>{var e;return JSON.parse(null!==(e=localStorage.getItem(s.C9))&&void 0!==e?e:"")}},88331:function(e,l,t){t.r(l),t.d(l,{default:function(){return Y}});var s=t(85893),a=t(41468),n=t(76212),r=t(74434),i=t(30853),c=t(25519),o=t(24019),d=t(50888),u=t(97937),m=t(63606),x=t(89035),p=t(87554),v=t(93967),f=t.n(v),g=t(25675),h=t.n(g),j=t(39332),y=t(67294),w=t(67421),b=t(14660),N=t(55186),k=t(65429),_=t(15381),Z=t(57132),C=t(65654),S=t(66309),P=t(25278),O=t(14726),J=t(45360),$=t(55241),I=t(96074),M=t(20640),A=t.n(M);let E=e=>{let{list:l,loading:t,feedback:a,setFeedbackOpen:n}=e,{t:r}=(0,w.$G)(),[i,c]=(0,y.useState)([]),[o,d]=(0,y.useState)("");return(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("div",{className:"flex flex-1 flex-wrap w-72",children:null==l?void 0:l.map(e=>{let l=i.findIndex(l=>l.reason_type===e.reason_type)>-1;return(0,s.jsx)(S.Z,{className:"text-xs text-[#525964] mb-2 p-1 px-2 rounded-md cursor-pointer ".concat(l?"border-[#0c75fc] text-[#0c75fc]":""),onClick:()=>{c(l=>{let t=l.findIndex(l=>l.reason_type===e.reason_type);return t>-1?[...l.slice(0,t),...l.slice(t+1)]:[...l,e]})},children:e.reason},e.reason_type)})}),(0,s.jsx)(P.default.TextArea,{placeholder:r("feedback_tip"),className:"w-64 h-20 resize-none mb-2",value:o,onChange:e=>d(e.target.value.trim())}),(0,s.jsxs)("div",{className:"flex gap-2 justify-end",children:[(0,s.jsx)(O.ZP,{className:"w-16 h-8",onClick:()=>{n(!1)},children:"取消"}),(0,s.jsx)(O.ZP,{type:"primary",className:"min-w-16 h-8",onClick:async()=>{let e=i.map(e=>e.reason_type);await (null==a?void 0:a({feedback_type:"unlike",reason_types:e,remark:o}))},loading:t,children:"确认"})]})]})};var F=e=>{var l,t;let{content:a}=e,{t:r}=(0,w.$G)(),i=(0,j.useSearchParams)(),c=null!==(t=null==i?void 0:i.get("id"))&&void 0!==t?t:"",[o,d]=J.ZP.useMessage(),[u,m]=(0,y.useState)(!1),[x,p]=(0,y.useState)(null==a?void 0:null===(l=a.feedback)||void 0===l?void 0:l.feedback_type),[v,g]=(0,y.useState)(),h=async e=>{let l=null==e?void 0:e.replace(/\trelations:.*/g,""),t=A()(l);t?l?o.open({type:"success",content:r("copy_success")}):o.open({type:"warning",content:r("copy_nothing")}):o.open({type:"error",content:r("copy_failed")})},{run:b,loading:N}=(0,C.Z)(async e=>await (0,n.Vx)((0,n.zx)({conv_uid:c,message_id:a.order+"",feedback_type:e.feedback_type,reason_types:e.reason_types,remark:e.remark})),{manual:!0,onSuccess:e=>{let[,l]=e;p(null==l?void 0:l.feedback_type),J.ZP.success("反馈成功"),m(!1)}}),{run:S}=(0,C.Z)(async()=>await (0,n.Vx)((0,n.Jr)()),{manual:!0,onSuccess:e=>{let[,l]=e;g(l||[]),l&&m(!0)}}),{run:P}=(0,C.Z)(async()=>await (0,n.Vx)((0,n.Ir)({conv_uid:c,message_id:(null==a?void 0:a.order)+""})),{manual:!0,onSuccess:e=>{let[,l]=e;l&&(p("none"),J.ZP.success("操作成功"))}});return(0,s.jsxs)(s.Fragment,{children:[d,(0,s.jsxs)("div",{className:"flex flex-1 items-center text-sm px-4",children:[(0,s.jsxs)("div",{className:"flex gap-3",children:[(0,s.jsx)(k.Z,{className:f()("cursor-pointer",{"text-[#0C75FC]":"like"===x}),onClick:async()=>{if("like"===x){await P();return}await b({feedback_type:"like"})}}),(0,s.jsx)($.Z,{placement:"bottom",autoAdjustOverflow:!0,destroyTooltipOnHide:!0,content:(0,s.jsx)(E,{setFeedbackOpen:m,feedback:b,list:v||[],loading:N}),trigger:"click",open:u,children:(0,s.jsx)(_.Z,{className:f()("cursor-pointer",{"text-[#0C75FC]":"unlike"===x}),onClick:async()=>{if("unlike"===x){await P();return}await S()}})})]}),(0,s.jsx)(I.Z,{type:"vertical"}),(0,s.jsx)(Z.Z,{className:"cursor-pointer",onClick:()=>h(a.context)})]})]})},T=t(50228),V=t(48218),G=t(39718),z=(0,y.memo)(e=>{var l;let{model:t}=e,a=(0,j.useSearchParams)(),n=null!==(l=null==a?void 0:a.get("scene"))&&void 0!==l?l:"";return"chat_agent"===n?(0,s.jsx)("div",{className:"flex items-center justify-center w-8 h-8 rounded-full bg-white dark:bg-[rgba(255,255,255,0.16)]",children:(0,s.jsx)(V.Z,{scene:n})}):t?(0,s.jsx)(G.Z,{width:32,height:32,model:t}):(0,s.jsx)("div",{className:"flex items-center justify-center w-8 h-8 rounded-full bg-white dark:bg-[rgba(255,255,255,0.16)]",children:(0,s.jsx)(T.Z,{})})});let B=()=>{var e;let l=JSON.parse(null!==(e=localStorage.getItem(c.C9))&&void 0!==e?e:"");return l.avatar_url?(0,s.jsx)(h(),{className:"rounded-full border border-gray-200 object-contain bg-white inline-block",width:32,height:32,src:null==l?void 0:l.avatar_url,alt:null==l?void 0:l.nick_name}):(0,s.jsx)("div",{className:"flex items-center justify-center w-8 h-8 rounded-full bg-gradient-to-tr from-[#31afff] to-[#1677ff] text-xs text-white",children:null==l?void 0:l.nick_name})},D={todo:{bgClass:"bg-gray-500",icon:(0,s.jsx)(o.Z,{className:"ml-2"})},runing:{bgClass:"bg-blue-500",icon:(0,s.jsx)(d.Z,{className:"ml-2"})},failed:{bgClass:"bg-red-500",icon:(0,s.jsx)(u.Z,{className:"ml-2"})},completed:{bgClass:"bg-green-500",icon:(0,s.jsx)(m.Z,{className:"ml-2"})}},H=e=>e.replaceAll("\\n","\n").replace(/]+)>/gi,"
    ").replace(/]+)>/gi,""),L=e=>null==e?void 0:e.replace(/]+)>/gi,"
    ").replace(/]+)>/gi,"");var R=(0,y.memo)(e=>{var l;let{content:t,onLinkClick:a}=e,{t:n}=(0,w.$G)(),r=(0,j.useSearchParams)(),c=null!==(l=null==r?void 0:r.get("scene"))&&void 0!==l?l:"",{context:o,model_name:d,role:u,thinking:m}=t,v=(0,y.useMemo)(()=>"view"===u,[u]),{value:g,cachePluginContext:h}=(0,y.useMemo)(()=>{if("string"!=typeof o)return{relations:[],value:"",cachePluginContext:[]};let[e,l]=o.split(" relations:"),t=l?l.split(","):[],s=[],a=0,n=e.replace(/]*>[^<]*<\/dbgpt-view>/gi,e=>{try{var l;let t=e.replaceAll("\n","\\n").replace(/<[^>]*>|<\/[^>]*>/gm,""),n=JSON.parse(t),r="".concat(a,"");return s.push({...n,result:H(null!==(l=n.result)&&void 0!==l?l:"")}),a++,r}catch(l){return console.log(l.message,l),e}});return{relations:t,cachePluginContext:s,value:n}},[o]),k=(0,y.useMemo)(()=>({"custom-view"(e){var l;let{children:t}=e,a=+t.toString();if(!h[a])return t;let{name:n,status:r,err_msg:c,result:o}=h[a],{bgClass:d,icon:u}=null!==(l=D[r])&&void 0!==l?l:{};return(0,s.jsxs)("div",{className:"bg-white dark:bg-[#212121] rounded-lg overflow-hidden my-2 flex flex-col lg:max-w-[80%]",children:[(0,s.jsxs)("div",{className:f()("flex px-4 md:px-6 py-2 items-center text-white text-sm",d),children:[n,u]}),o?(0,s.jsx)("div",{className:"px-4 md:px-6 py-4 text-sm",children:(0,s.jsx)(p.Z,{components:i.Z,rehypePlugins:[b.Z],remarkPlugins:[N.Z],children:null!=o?o:""})}):(0,s.jsx)("div",{className:"px-4 md:px-6 py-4 text-sm",children:c})]})}}),[h]);return(0,s.jsxs)("div",{className:"flex flex-1 gap-3 mt-6",children:[(0,s.jsx)("div",{className:"flex flex-shrink-0 items-start",children:v?(0,s.jsx)(z,{model:d}):(0,s.jsx)(B,{})}),(0,s.jsxs)("div",{className:"flex ".concat("chat_agent"!==c||m?"":"flex-1"," overflow-hidden"),children:[!v&&(0,s.jsx)("div",{className:"flex flex-1 items-center text-sm text-[#1c2533] dark:text-white",children:"string"==typeof o&&o}),v&&(0,s.jsxs)("div",{className:"flex flex-1 flex-col w-full",children:[(0,s.jsxs)("div",{className:"bg-white dark:bg-[rgba(255,255,255,0.16)] p-4 rounded-2xl rounded-tl-none mb-2",children:["object"==typeof o&&(0,s.jsxs)("div",{children:["[".concat(o.template_name,"]: "),(0,s.jsxs)("span",{className:"text-theme-primary cursor-pointer",onClick:a,children:[(0,s.jsx)(x.Z,{className:"mr-1"}),o.template_introduce||"More Details"]})]}),"string"==typeof o&&"chat_agent"===c&&(0,s.jsx)(p.Z,{components:{...i.Z},rehypePlugins:[b.Z],remarkPlugins:[N.Z],children:L(g)}),"string"==typeof o&&"chat_agent"!==c&&(0,s.jsx)("div",{children:(0,s.jsx)(p.Z,{components:{...i.Z,...k},rehypePlugins:[b.Z],remarkPlugins:[N.Z],children:H(g)})}),m&&!o&&(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"flex text-sm text-[#1c2533] dark:text-white",children:n("thinking")}),(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)("div",{className:"w-1 h-1 rounded-full mx-1 animate-pulse1"}),(0,s.jsx)("div",{className:"w-1 h-1 rounded-full mx-1 animate-pulse2"}),(0,s.jsx)("div",{className:"w-1 h-1 rounded-full mx-1 animate-pulse3"})]})]})]}),(0,s.jsx)(F,{content:t})]})]})]})}),U=t(69256),q=t(62418),K=t(2093),Q=t(85576),W=t(96486),X=t(25934),Y=()=>{var e,l;let t=(0,y.useRef)(null),i=(0,j.useSearchParams)(),c=null!==(l=null==i?void 0:i.get("id"))&&void 0!==l?l:"",{currentDialogInfo:o,model:d}=(0,y.useContext)(a.p),{history:u,handleChat:m,refreshDialogList:x,setAppInfo:p,setModelValue:v,setTemperatureValue:f,setResourceValue:g}=(0,y.useContext)(U.ChatContentContext),[h,w]=(0,y.useState)(!1),[b,N]=(0,y.useState)(""),k=(0,y.useMemo)(()=>{let e=(0,W.cloneDeep)(u);return e.filter(e=>["view","human"].includes(e.role)).map(e=>({...e,key:(0,X.Z)()}))},[u]);return(0,K.Z)(async()=>{let e=(0,q.a_)();if(e&&e.id===c){let[,c]=await (0,n.Vx)((0,n.BN)({...o}));if(c){var l,t,s,a,r,i,u;let n=(null==c?void 0:null===(l=c.param_need)||void 0===l?void 0:l.map(e=>e.type))||[],o=(null===(t=null==c?void 0:null===(s=c.param_need)||void 0===s?void 0:s.filter(e=>"model"===e.type)[0])||void 0===t?void 0:t.value)||d,h=(null===(a=null==c?void 0:null===(r=c.param_need)||void 0===r?void 0:r.filter(e=>"temperature"===e.type)[0])||void 0===a?void 0:a.value)||.5,j=null===(i=null==c?void 0:null===(u=c.param_need)||void 0===u?void 0:u.filter(e=>"resource"===e.type)[0])||void 0===i?void 0:i.bind_value;p(c||{}),f(h||.5),v(o),g(j),await m(e.message,{app_code:null==c?void 0:c.app_code,model_name:o,...(null==n?void 0:n.includes("temperature"))&&{temperature:h},...n.includes("resource")&&{select_param:"string"==typeof j?j:JSON.stringify(j)}}),await x(),localStorage.removeItem(q.rU)}}},[c,o]),(0,y.useEffect)(()=>{setTimeout(()=>{var e,l;null===(e=t.current)||void 0===e||e.scrollTo(0,null===(l=t.current)||void 0===l?void 0:l.scrollHeight)},50)},[u,null===(e=u[u.length-1])||void 0===e?void 0:e.context]),(0,s.jsxs)("div",{className:"flex flex-col w-5/6 mx-auto",ref:t,children:[!!k.length&&k.map((e,l)=>(0,s.jsx)(R,{content:e,onLinkClick:()=>{w(!0),N(JSON.stringify(null==e?void 0:e.context,null,2))}},l)),(0,s.jsx)(Q.default,{title:"JSON Editor",open:h,width:"60%",cancelButtonProps:{hidden:!0},onOk:()=>{w(!1)},onCancel:()=>{w(!1)},children:(0,s.jsx)(r.Z,{className:"w-full h-[500px]",language:"json",value:b})})]})}}}]); \ No newline at end of file diff --git a/dbgpt/app/static/web/_next/static/chunks/9dceabb2-6acd8f5e5e29167e.js b/dbgpt/app/static/web/_next/static/chunks/9dceabb2-6acd8f5e5e29167e.js deleted file mode 100644 index f8360c50a..000000000 --- a/dbgpt/app/static/web/_next/static/chunks/9dceabb2-6acd8f5e5e29167e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7126],{20477:function(t,e,n){n.d(e,{$p:function(){return nz},F6:function(){return tC},I8:function(){return tw},Rr:function(){return z},jU:function(){return nZ}});var r,i,o,a,s,l,u,c,h,p,d,f,v,y,g,m,E,x,b,T,P,S,N,C,w,k,M,R,A,O,I,L,D,G,B,F,_,U,V,Z,Y,z,X,j,W=n(97582),H=n(90230),q=n(77160),K=n(85975),J=n(35600),$=n(98333),Q=n(32945),tt=n(31437),te=n(25897),tn=n(95147),tr=n(76714),ti=n(81957),to=n(69877),ta=n(71523),ts=n(13882),tl=n(80450),tu=n(8614),tc=n(4848),th=n(75839),tp=n(99872),td=n(92455),tf=n(65850),tv=n(28659),ty=n(83555),tg=n(71154),tm=n(5199),tE=n(90134),tx=n(4637),tb=n(84329),tT=n(16372),tP=n(11702),tS=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self,{exports:{}});tS.exports=function(){function t(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function e(t,e){return te?1:0}var n=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function r(t,e){i(t,0,t.children.length,e,t)}function i(t,e,n,r,i){i||(i=p(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var a=e;a=t.minX&&e.maxY>=t.minY}function p(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function d(n,r,i,o,a){for(var s=[r,i];s.length;)if(i=s.pop(),r=s.pop(),!(i-r<=o)){var l=r+Math.ceil((i-r)/o/2)*o;(function e(n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=r-i+1,u=Math.log(s),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1),p=Math.max(i,Math.floor(r-l*c/s+h)),d=Math.min(o,Math.floor(r+(s-l)*c/s+h));e(n,r,p,d,a)}var f=n[r],v=i,y=o;for(t(n,i,r),a(n[o],f)>0&&t(n,i,o);va(n[v],f);)v++;for(;a(n[y],f)>0;)y--}0===a(n[i],f)?t(n,i,y):t(n,++y,o),y<=r&&(i=y+1),r<=y&&(o=y-1)}})(n,l,r||0,i||n.length-1,a||e),s.push(r,l,l,i)}}return n.prototype.all=function(){return this._all(this.data,[])},n.prototype.search=function(t){var e=this.data,n=[];if(!h(t,e))return n;for(var r=this.toBBox,i=[];e;){for(var o=0;o=0;)if(i[e].children.length>this._maxEntries)this._split(i,e),e--;else break;this._adjustParentBBoxes(r,i,e)},n.prototype._split=function(t,e){var n=t[e],i=n.children.length,o=this._minEntries;this._chooseSplitAxis(n,o,i);var a=this._chooseSplitIndex(n,o,i),s=p(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,r(n,this.toBBox),r(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(n,s)},n.prototype._splitRoot=function(t,e){this.data=p([t,e]),this.data.height=t.height+1,this.data.leaf=!1,r(this.data,this.toBBox)},n.prototype._chooseSplitIndex=function(t,e,n){for(var r,o=1/0,a=1/0,s=e;s<=n-e;s++){var u=i(t,0,s,this.toBBox),c=i(t,s,n,this.toBBox),h=function(t,e){var n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY);return Math.max(0,Math.min(t.maxX,e.maxX)-n)*Math.max(0,Math.min(t.maxY,e.maxY)-r)}(u,c),p=l(u)+l(c);h=e;d--){var f=t.children[d];o(l,t.leaf?a(f):f),c+=u(l)}return c},n.prototype._adjustParentBBoxes=function(t,e,n){for(var r=n;r>=0;r--)o(e[r],t)},n.prototype._condense=function(t){for(var e=t.length-1,n=void 0;e>=0;e--)0===t[e].children.length?e>0?(n=t[e-1].children).splice(n.indexOf(t[e]),1):this.clear():r(t[e],this.toBBox)},n}();var tN=tS.exports;(r=k||(k={})).GROUP="g",r.CIRCLE="circle",r.ELLIPSE="ellipse",r.IMAGE="image",r.RECT="rect",r.LINE="line",r.POLYLINE="polyline",r.POLYGON="polygon",r.TEXT="text",r.PATH="path",r.HTML="html",r.MESH="mesh",(i=M||(M={}))[i.ZERO=0]="ZERO",i[i.NEGATIVE_ONE=1]="NEGATIVE_ONE";var tC=function(){function t(){this.plugins=[]}return t.prototype.addRenderingPlugin=function(t){this.plugins.push(t),this.context.renderingPlugins.push(t)},t.prototype.removeAllRenderingPlugins=function(){var t=this;this.plugins.forEach(function(e){var n=t.context.renderingPlugins.indexOf(e);n>=0&&t.context.renderingPlugins.splice(n,1)})},t}(),tw=function(){function t(t){this.clipSpaceNearZ=M.NEGATIVE_ONE,this.plugins=[],this.config=(0,W.pi)({enableDirtyCheck:!0,enableCulling:!1,enableAutoRendering:!0,enableDirtyRectangleRendering:!0,enableDirtyRectangleRenderingDebug:!1,enableSizeAttenuation:!0},t)}return t.prototype.registerPlugin=function(t){-1===this.plugins.findIndex(function(e){return e===t})&&this.plugins.push(t)},t.prototype.unregisterPlugin=function(t){var e=this.plugins.findIndex(function(e){return e===t});e>-1&&this.plugins.splice(e,1)},t.prototype.getPlugins=function(){return this.plugins},t.prototype.getPlugin=function(t){return this.plugins.find(function(e){return e.name===t})},t.prototype.getConfig=function(){return this.config},t.prototype.setConfig=function(t){Object.assign(this.config,t)},t}();function tk(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function tM(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function tR(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function tA(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function tO(t){return void 0===t?0:t>360||t<-360?t%360:t}function tI(t,e,n){return(void 0===e&&(e=0),void 0===n&&(n=0),Array.isArray(t)&&3===t.length)?q.d9(t):(0,te.Z)(t)?q.al(t,e,n):q.al(t[0],t[1]||e,t[2]||n)}function tL(t){return t*(Math.PI/180)}function tD(t){return t*(180/Math.PI)}function tG(t,e){var n,r,i,o,a,s,l,u,c,h,p,d,f,v,y,g,m;return 16===e.length?(i=.5*Math.PI,a=(o=(0,W.CR)(K.getScaling(q.Ue(),e),3))[0],s=o[1],l=o[2],(u=Math.asin(-e[2]/a))-i?(n=Math.atan2(e[6]/s,e[10]/l),r=Math.atan2(e[1]/a,e[0]/a)):(r=0,n=-Math.atan2(e[4]/s,e[5]/s)):(r=0,n=Math.atan2(e[4]/s,e[5]/s)),t[0]=n,t[1]=u,t[2]=r,t):(c=e[0],h=e[1],p=e[2],d=e[3],g=c*c+(f=h*h)+(v=p*p)+(y=d*d),(m=c*d-h*p)>.499995*g?(t[0]=Math.PI/2,t[1]=2*Math.atan2(h,c),t[2]=0):m<-.499995*g?(t[0]=-Math.PI/2,t[1]=2*Math.atan2(h,c),t[2]=0):(t[0]=Math.asin(2*(c*p-d*h)),t[1]=Math.atan2(2*(c*d+h*p),1-2*(v+y)),t[2]=Math.atan2(2*(c*h+p*d),1-2*(f+v))),t)}function tB(t){var e=t[0],n=t[1],r=t[3],i=t[4],o=Math.sqrt(e*e+n*n),a=Math.sqrt(r*r+i*i);e*i-n*r<0&&(eh&&(h=N),Cd&&(d=w),kv&&(v=M),n[0]=(c+h)*.5,n[1]=(p+d)*.5,n[2]=(f+v)*.5,a[0]=(h-c)*.5,a[1]=(d-p)*.5,a[2]=(v-f)*.5,this.min[0]=c,this.min[1]=p,this.min[2]=f,this.max[0]=h,this.max[1]=d,this.max[2]=v}},t.prototype.setFromTransformedAABB=function(t,e){var n=this.center,r=this.halfExtents,i=t.center,o=t.halfExtents,a=e[0],s=e[4],l=e[8],u=e[1],c=e[5],h=e[9],p=e[2],d=e[6],f=e[10],v=Math.abs(a),y=Math.abs(s),g=Math.abs(l),m=Math.abs(u),E=Math.abs(c),x=Math.abs(h),b=Math.abs(p),T=Math.abs(d),P=Math.abs(f);n[0]=e[12]+a*i[0]+s*i[1]+l*i[2],n[1]=e[13]+u*i[0]+c*i[1]+h*i[2],n[2]=e[14]+p*i[0]+d*i[1]+f*i[2],r[0]=v*o[0]+y*o[1]+g*o[2],r[1]=m*o[0]+E*o[1]+x*o[2],r[2]=b*o[0]+T*o[1]+P*o[2],tM(this.min,n,r),tR(this.max,n,r)},t.prototype.intersects=function(t){var e=this.getMax(),n=this.getMin(),r=t.getMax(),i=t.getMin();return n[0]<=r[0]&&e[0]>=i[0]&&n[1]<=r[1]&&e[1]>=i[1]&&n[2]<=r[2]&&e[2]>=i[2]},t.prototype.intersection=function(e){if(!this.intersects(e))return null;var n,r,i,o,a,s,l=new t,u=(n=[0,0,0],r=this.getMin(),i=e.getMin(),n[0]=Math.max(r[0],i[0]),n[1]=Math.max(r[1],i[1]),n[2]=Math.max(r[2],i[2]),n),c=(o=[0,0,0],a=this.getMax(),s=e.getMax(),o[0]=Math.min(a[0],s[0]),o[1]=Math.min(a[1],s[1]),o[2]=Math.min(a[2],s[2]),o);return l.setMinMax(u,c),l},t.prototype.getNegativeFarPoint=function(t){if(273===t.pnVertexFlag)return tk([0,0,0],this.min);if(272===t.pnVertexFlag)return[this.min[0],this.min[1],this.max[2]];if(257===t.pnVertexFlag)return[this.min[0],this.max[1],this.min[2]];if(256===t.pnVertexFlag)return[this.min[0],this.max[1],this.max[2]];if(17===t.pnVertexFlag)return[this.max[0],this.min[1],this.min[2]];if(16===t.pnVertexFlag)return[this.max[0],this.min[1],this.max[2]];if(1===t.pnVertexFlag)return[this.max[0],this.max[1],this.min[2]];else return[this.max[0],this.max[1],this.max[2]]},t.prototype.getPositiveFarPoint=function(t){if(273===t.pnVertexFlag)return tk([0,0,0],this.max);if(272===t.pnVertexFlag)return[this.max[0],this.max[1],this.min[2]];if(257===t.pnVertexFlag)return[this.max[0],this.min[1],this.max[2]];if(256===t.pnVertexFlag)return[this.max[0],this.min[1],this.min[2]];if(17===t.pnVertexFlag)return[this.min[0],this.max[1],this.max[2]];if(16===t.pnVertexFlag)return[this.min[0],this.max[1],this.min[2]];if(1===t.pnVertexFlag)return[this.min[0],this.min[1],this.max[2]];else return[this.min[0],this.min[1],this.min[2]]},t}(),tX=function(){function t(t,e){this.distance=t||0,this.normal=e||q.al(0,1,0),this.updatePNVertexFlag()}return t.prototype.updatePNVertexFlag=function(){this.pnVertexFlag=(Number(this.normal[0]>=0)<<8)+(Number(this.normal[1]>=0)<<4)+Number(this.normal[2]>=0)},t.prototype.distanceToPoint=function(t){return q.AK(t,this.normal)-this.distance},t.prototype.normalize=function(){var t=1/q.Zh(this.normal);q.bA(this.normal,this.normal,t),this.distance*=t},t.prototype.intersectsLine=function(t,e,n){var r=this.distanceToPoint(t),i=r/(r-this.distanceToPoint(e)),o=i>=0&&i<=1;return o&&n&&q.t7(n,t,e,i),o},t}();(o=R||(R={}))[o.OUTSIDE=4294967295]="OUTSIDE",o[o.INSIDE=0]="INSIDE",o[o.INDETERMINATE=2147483647]="INDETERMINATE";var tj=function(){function t(t){if(this.planes=[],t)this.planes=t;else for(var e=0;e<6;e++)this.planes.push(new tX)}return t.prototype.extractFromVPMatrix=function(t){var e=(0,W.CR)(t,16),n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],p=e[10],d=e[11],f=e[12],v=e[13],y=e[14],g=e[15];q.t8(this.planes[0].normal,o-n,u-a,d-c),this.planes[0].distance=g-f,q.t8(this.planes[1].normal,o+n,u+a,d+c),this.planes[1].distance=g+f,q.t8(this.planes[2].normal,o+r,u+s,d+h),this.planes[2].distance=g+v,q.t8(this.planes[3].normal,o-r,u-s,d-h),this.planes[3].distance=g-v,q.t8(this.planes[4].normal,o-i,u-l,d-p),this.planes[4].distance=g-y,q.t8(this.planes[5].normal,o+i,u+l,d+p),this.planes[5].distance=g+y,this.planes.forEach(function(t){t.normalize(),t.updatePNVertexFlag()})},t}(),tW=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.x=0,this.y=0,this.x=t,this.y=e}return t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.copyFrom=function(t){this.x=t.x,this.y=t.y},t}(),tH=function(){function t(t,e,n,r){this.x=t,this.y=e,this.width=n,this.height=r,this.left=t,this.right=t+n,this.top=e,this.bottom=e+r}return t.prototype.toJSON=function(){},t}(),tq="Method not implemented.",tK="Use document.documentElement instead.";(a=A||(A={}))[a.ORBITING=0]="ORBITING",a[a.EXPLORING=1]="EXPLORING",a[a.TRACKING=2]="TRACKING",(s=O||(O={}))[s.DEFAULT=0]="DEFAULT",s[s.ROTATIONAL=1]="ROTATIONAL",s[s.TRANSLATIONAL=2]="TRANSLATIONAL",s[s.CINEMATIC=3]="CINEMATIC",(l=I||(I={}))[l.ORTHOGRAPHIC=0]="ORTHOGRAPHIC",l[l.PERSPECTIVE=1]="PERSPECTIVE";var tJ={UPDATED:"updated"},t$=function(){function t(){this.clipSpaceNearZ=M.NEGATIVE_ONE,this.eventEmitter=new H.Z,this.matrix=K.create(),this.right=q.al(1,0,0),this.up=q.al(0,1,0),this.forward=q.al(0,0,1),this.position=q.al(0,0,1),this.focalPoint=q.al(0,0,0),this.distanceVector=q.al(0,0,-1),this.distance=1,this.azimuth=0,this.elevation=0,this.roll=0,this.relAzimuth=0,this.relElevation=0,this.relRoll=0,this.dollyingStep=0,this.maxDistance=1/0,this.minDistance=-1/0,this.zoom=1,this.rotateWorld=!1,this.fov=30,this.near=.1,this.far=1e3,this.aspect=1,this.projectionMatrix=K.create(),this.projectionMatrixInverse=K.create(),this.jitteredProjectionMatrix=void 0,this.enableUpdate=!0,this.type=A.EXPLORING,this.trackingMode=O.DEFAULT,this.projectionMode=I.PERSPECTIVE,this.frustum=new tj,this.orthoMatrix=K.create()}return t.prototype.isOrtho=function(){return this.projectionMode===I.ORTHOGRAPHIC},t.prototype.getProjectionMode=function(){return this.projectionMode},t.prototype.getPerspective=function(){return this.jitteredProjectionMatrix||this.projectionMatrix},t.prototype.getPerspectiveInverse=function(){return this.projectionMatrixInverse},t.prototype.getFrustum=function(){return this.frustum},t.prototype.getPosition=function(){return this.position},t.prototype.getFocalPoint=function(){return this.focalPoint},t.prototype.getDollyingStep=function(){return this.dollyingStep},t.prototype.getNear=function(){return this.near},t.prototype.getFar=function(){return this.far},t.prototype.getZoom=function(){return this.zoom},t.prototype.getOrthoMatrix=function(){return this.orthoMatrix},t.prototype.getView=function(){return this.view},t.prototype.setEnableUpdate=function(t){this.enableUpdate=t},t.prototype.setType=function(t,e){return this.type=t,this.type===A.EXPLORING?this.setWorldRotation(!0):this.setWorldRotation(!1),this._getAngles(),this.type===A.TRACKING&&void 0!==e&&this.setTrackingMode(e),this},t.prototype.setProjectionMode=function(t){return this.projectionMode=t,this},t.prototype.setTrackingMode=function(t){if(this.type!==A.TRACKING)throw Error("Impossible to set a tracking mode if the camera is not of tracking type");return this.trackingMode=t,this},t.prototype.setWorldRotation=function(t){return this.rotateWorld=t,this._getAngles(),this},t.prototype.getViewTransform=function(){return K.invert(K.create(),this.matrix)},t.prototype.getWorldTransform=function(){return this.matrix},t.prototype.jitterProjectionMatrix=function(t,e){var n=K.fromTranslation(K.create(),[t,e,0]);this.jitteredProjectionMatrix=K.multiply(K.create(),n,this.projectionMatrix)},t.prototype.clearJitterProjectionMatrix=function(){this.jitteredProjectionMatrix=void 0},t.prototype.setMatrix=function(t){return this.matrix=t,this._update(),this},t.prototype.setProjectionMatrix=function(t){this.projectionMatrix=t},t.prototype.setFov=function(t){return this.setPerspective(this.near,this.far,t,this.aspect),this},t.prototype.setAspect=function(t){return this.setPerspective(this.near,this.far,this.fov,t),this},t.prototype.setNear=function(t){return this.projectionMode===I.PERSPECTIVE?this.setPerspective(t,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,t,this.far),this},t.prototype.setFar=function(t){return this.projectionMode===I.PERSPECTIVE?this.setPerspective(this.near,t,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,t),this},t.prototype.setViewOffset=function(t,e,n,r,i,o){return this.aspect=t/e,void 0===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=o,this.projectionMode===I.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.clearViewOffset=function(){return void 0!==this.view&&(this.view.enabled=!1),this.projectionMode===I.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.setZoom=function(t){return this.zoom=t,this.projectionMode===I.ORTHOGRAPHIC?this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far):this.projectionMode===I.PERSPECTIVE&&this.setPerspective(this.near,this.far,this.fov,this.aspect),this},t.prototype.setZoomByViewportPoint=function(t,e){var n=this.canvas.viewport2Canvas({x:e[0],y:e[1]}),r=n.x,i=n.y,o=this.roll;this.rotate(0,0,-o),this.setPosition(r,i),this.setFocalPoint(r,i),this.setZoom(t),this.rotate(0,0,o);var a=this.canvas.viewport2Canvas({x:e[0],y:e[1]}),s=a.x,l=a.y,u=q.al(s-r,l-i,0),c=q.AK(u,this.right)/q.kE(this.right),h=q.AK(u,this.up)/q.kE(this.up);return this.pan(-c,-h),this},t.prototype.setPerspective=function(t,e,n,r){this.projectionMode=I.PERSPECTIVE,this.fov=n,this.near=t,this.far=e,this.aspect=r;var i,o,a,s,l,u,c,h,p,d=this.near*Math.tan(tL(.5*this.fov))/this.zoom,f=2*d,v=this.aspect*f,y=-.5*v;if(null===(p=this.view)||void 0===p?void 0:p.enabled){var g=this.view.fullWidth,m=this.view.fullHeight;y+=this.view.offsetX*v/g,d-=this.view.offsetY*f/m,v*=this.view.width/g,f*=this.view.height/m}return i=this.projectionMatrix,o=y,a=y+v,s=d,l=d-f,u=this.far,this.clipSpaceNearZ===M.ZERO?(c=-u/(u-t),h=-u*t/(u-t)):(c=-(u+t)/(u-t),h=-2*u*t/(u-t)),i[0]=2*t/(a-o),i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=2*t/(s-l),i[6]=0,i[7]=0,i[8]=(a+o)/(a-o),i[9]=(s+l)/(s-l),i[10]=c,i[11]=-1,i[12]=0,i[13]=0,i[14]=h,i[15]=0,K.scale(this.projectionMatrix,this.projectionMatrix,q.al(1,-1,1)),K.invert(this.projectionMatrixInverse,this.projectionMatrix),this.triggerUpdate(),this},t.prototype.setOrthographic=function(t,e,n,r,i,o){this.projectionMode=I.ORTHOGRAPHIC,this.rright=e,this.left=t,this.top=n,this.bottom=r,this.near=i,this.far=o;var a,s=(this.rright-this.left)/(2*this.zoom),l=(this.top-this.bottom)/(2*this.zoom),u=(this.rright+this.left)/2,c=(this.top+this.bottom)/2,h=u-s,p=u+s,d=c+l,f=c-l;if(null===(a=this.view)||void 0===a?void 0:a.enabled){var v=(this.rright-this.left)/this.view.fullWidth/this.zoom,y=(this.top-this.bottom)/this.view.fullHeight/this.zoom;h+=v*this.view.offsetX,p=h+v*this.view.width,d-=y*this.view.offsetY,f=d-y*this.view.height}return this.clipSpaceNearZ===M.NEGATIVE_ONE?K.ortho(this.projectionMatrix,h,p,f,d,i,o):K.orthoZO(this.projectionMatrix,h,p,f,d,i,o),K.scale(this.projectionMatrix,this.projectionMatrix,q.al(1,-1,1)),K.invert(this.projectionMatrixInverse,this.projectionMatrix),this._getOrthoMatrix(),this.triggerUpdate(),this},t.prototype.setPosition=function(t,e,n){void 0===e&&(e=this.position[1]),void 0===n&&(n=this.position[2]);var r=tI(t,e,n);return this._setPosition(r),this.setFocalPoint(this.focalPoint),this.triggerUpdate(),this},t.prototype.setFocalPoint=function(t,e,n){void 0===e&&(e=this.focalPoint[1]),void 0===n&&(n=this.focalPoint[2]);var r=q.al(0,1,0);if(this.focalPoint=tI(t,e,n),this.trackingMode===O.CINEMATIC){var i=q.$X(q.Ue(),this.focalPoint,this.position);t=i[0],e=i[1],n=i[2];var o=tD(Math.asin(e/q.kE(i))),a=90+tD(Math.atan2(n,t)),s=K.create();K.rotateY(s,s,tL(a)),K.rotateX(s,s,tL(o)),r=q.fF(q.Ue(),[0,1,0],s)}return K.invert(this.matrix,K.lookAt(K.create(),this.position,this.focalPoint,r)),this._getAxes(),this._getDistance(),this._getAngles(),this.triggerUpdate(),this},t.prototype.getDistance=function(){return this.distance},t.prototype.getDistanceVector=function(){return this.distanceVector},t.prototype.setDistance=function(t){if(this.distance===t||t<0)return this;this.distance=t,this.distance<2e-4&&(this.distance=2e-4),this.dollyingStep=this.distance/100;var e=q.Ue();t=this.distance;var n=this.forward,r=this.focalPoint;return e[0]=t*n[0]+r[0],e[1]=t*n[1]+r[1],e[2]=t*n[2]+r[2],this._setPosition(e),this.triggerUpdate(),this},t.prototype.setMaxDistance=function(t){return this.maxDistance=t,this},t.prototype.setMinDistance=function(t){return this.minDistance=t,this},t.prototype.setAzimuth=function(t){return this.azimuth=tO(t),this.computeMatrix(),this._getAxes(),this.type===A.ORBITING||this.type===A.EXPLORING?this._getPosition():this.type===A.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this},t.prototype.getAzimuth=function(){return this.azimuth},t.prototype.setElevation=function(t){return this.elevation=tO(t),this.computeMatrix(),this._getAxes(),this.type===A.ORBITING||this.type===A.EXPLORING?this._getPosition():this.type===A.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this},t.prototype.getElevation=function(){return this.elevation},t.prototype.setRoll=function(t){return this.roll=tO(t),this.computeMatrix(),this._getAxes(),this.type===A.ORBITING||this.type===A.EXPLORING?this._getPosition():this.type===A.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this},t.prototype.getRoll=function(){return this.roll},t.prototype._update=function(){this._getAxes(),this._getPosition(),this._getDistance(),this._getAngles(),this._getOrthoMatrix(),this.triggerUpdate()},t.prototype.computeMatrix=function(){var t=Q.yY(Q.Ue(),[0,0,1],tL(this.roll));K.identity(this.matrix);var e=Q.yY(Q.Ue(),[1,0,0],tL((this.rotateWorld&&this.type!==A.TRACKING||this.type===A.TRACKING?1:-1)*this.elevation)),n=Q.yY(Q.Ue(),[0,1,0],tL((this.rotateWorld&&this.type!==A.TRACKING||this.type===A.TRACKING?1:-1)*this.azimuth)),r=Q.Jp(Q.Ue(),n,e);r=Q.Jp(Q.Ue(),r,t);var i=K.fromQuat(K.create(),r);this.type===A.ORBITING||this.type===A.EXPLORING?(K.translate(this.matrix,this.matrix,this.focalPoint),K.multiply(this.matrix,this.matrix,i),K.translate(this.matrix,this.matrix,[0,0,this.distance])):this.type===A.TRACKING&&(K.translate(this.matrix,this.matrix,this.position),K.multiply(this.matrix,this.matrix,i))},t.prototype._setPosition=function(t,e,n){this.position=tI(t,e,n);var r=this.matrix;r[12]=this.position[0],r[13]=this.position[1],r[14]=this.position[2],r[15]=1,this._getOrthoMatrix()},t.prototype._getAxes=function(){q.JG(this.right,tI($.fF($.Ue(),[1,0,0,0],this.matrix))),q.JG(this.up,tI($.fF($.Ue(),[0,1,0,0],this.matrix))),q.JG(this.forward,tI($.fF($.Ue(),[0,0,1,0],this.matrix))),q.Fv(this.right,this.right),q.Fv(this.up,this.up),q.Fv(this.forward,this.forward)},t.prototype._getAngles=function(){var t=this.distanceVector[0],e=this.distanceVector[1],n=this.distanceVector[2],r=q.kE(this.distanceVector);if(0===r){this.elevation=0,this.azimuth=0;return}this.type===A.TRACKING?(this.elevation=tD(Math.asin(e/r)),this.azimuth=tD(Math.atan2(-t,-n))):this.rotateWorld?(this.elevation=tD(Math.asin(e/r)),this.azimuth=tD(Math.atan2(-t,-n))):(this.elevation=-tD(Math.asin(e/r)),this.azimuth=-tD(Math.atan2(-t,-n)))},t.prototype._getPosition=function(){q.JG(this.position,tI($.fF($.Ue(),[0,0,0,1],this.matrix))),this._getDistance()},t.prototype._getFocalPoint=function(){q.kK(this.distanceVector,[0,0,-this.distance],J.xO(J.Ue(),this.matrix)),q.IH(this.focalPoint,this.position,this.distanceVector),this._getDistance()},t.prototype._getDistance=function(){this.distanceVector=q.$X(q.Ue(),this.focalPoint,this.position),this.distance=q.kE(this.distanceVector),this.dollyingStep=this.distance/100},t.prototype._getOrthoMatrix=function(){if(this.projectionMode===I.ORTHOGRAPHIC){var t=this.position,e=Q.yY(Q.Ue(),[0,0,1],-this.roll*Math.PI/180);K.fromRotationTranslationScaleOrigin(this.orthoMatrix,e,q.al((this.rright-this.left)/2-t[0],(this.top-this.bottom)/2-t[1],0),q.al(this.zoom,this.zoom,1),t)}},t.prototype.triggerUpdate=function(){if(this.enableUpdate){var t=this.getViewTransform(),e=K.multiply(K.create(),this.getPerspective(),t);this.getFrustum().extractFromVPMatrix(e),this.eventEmitter.emit(tJ.UPDATED)}},t.prototype.rotate=function(t,e,n){throw Error(tq)},t.prototype.pan=function(t,e){throw Error(tq)},t.prototype.dolly=function(t){throw Error(tq)},t.prototype.createLandmark=function(t,e){throw Error(tq)},t.prototype.gotoLandmark=function(t,e){throw Error(tq)},t.prototype.cancelLandmarkAnimation=function(){throw Error(tq)},t}();function tQ(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var n=function(){for(var r=[],i=0;i=L.kEms&&t=_.kUnitType&&this.getType()<=_.kClampType},t}(),t9=function(t){function e(e){var n=t.call(this)||this;return n.colorSpace=e,n}return(0,W.ZT)(e,t),e.prototype.getType=function(){return _.kColorType},e.prototype.to=function(t){return this},e}(t4);(v=U||(U={}))[v.Constant=0]="Constant",v[v.LinearGradient=1]="LinearGradient",v[v.RadialGradient=2]="RadialGradient";var t8=function(t){function e(e,n){var r=t.call(this)||this;return r.type=e,r.value=n,r}return(0,W.ZT)(e,t),e.prototype.clone=function(){return new e(this.type,this.value)},e.prototype.buildCSSText=function(t,e,n){return n},e.prototype.getType=function(){return _.kColorType},e}(t4),t6=function(t){function e(e){var n=t.call(this)||this;return n.value=e,n}return(0,W.ZT)(e,t),e.prototype.clone=function(){return new e(this.value)},e.prototype.getType=function(){return _.kKeywordType},e.prototype.buildCSSText=function(t,e,n){return n+this.value},e}(t4),t7=tQ(function(t){return void 0===t&&(t=""),t.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})}),et=function(t){return t.split("").map(function(t,e){return t.toUpperCase()===t?"".concat(0!==e?"-":"").concat(t.toLowerCase()):t}).join("")};function ee(t){return"function"==typeof t}var en={d:{alias:"path"},strokeDasharray:{alias:"lineDash"},strokeWidth:{alias:"lineWidth"},textAnchor:{alias:"textAlign"},src:{alias:"img"}},er=tQ(function(t){var e=t7(t),n=en[e];return(null==n?void 0:n.alias)||e}),ei=function(t,e){void 0===e&&(e="");var n="";return Number.isFinite(t)?(function(t){if(!t)throw Error()}(Number.isNaN(t)),n="NaN"):n=t>0?"infinity":"-infinity",n+e},eo=function(t){return t2(t1(t))},ea=function(t){function e(e,n){void 0===n&&(n=L.kNumber);var r,i,o=t.call(this)||this;return i="string"==typeof n?(r=n)?"number"===r?L.kNumber:"percent"===r||"%"===r?L.kPercentage:t0.find(function(t){return t.name===r}).unit_type:L.kUnknown:n,o.unit=i,o.value=e,o}return(0,W.ZT)(e,t),e.prototype.clone=function(){return new e(this.value,this.unit)},e.prototype.equals=function(t){return this.value===t.value&&this.unit===t.unit},e.prototype.getType=function(){return _.kUnitType},e.prototype.convertTo=function(t){if(this.unit===t)return new e(this.value,this.unit);var n=eo(this.unit);if(n!==eo(t)||n===L.kUnknown)return null;var r=t3(this.unit)/t3(t);return new e(this.value*r,t)},e.prototype.buildCSSText=function(t,e,n){var r;switch(this.unit){case L.kUnknown:break;case L.kInteger:r=Number(this.value).toFixed(0);break;case L.kNumber:case L.kPercentage:case L.kEms:case L.kRems:case L.kPixels:case L.kDegrees:case L.kRadians:case L.kGradians:case L.kMilliseconds:case L.kSeconds:case L.kTurns:var i=this.value,o=t5(this.unit);if(i<-999999||i>999999){var a=t5(this.unit);r=!Number.isFinite(i)||Number.isNaN(i)?ei(i,a):i+(a||"")}else r="".concat(i).concat(o)}return n+r},e}(t4),es=new ea(0,"px");new ea(1,"px");var el=new ea(0,"deg"),eu=function(t){function e(e,n,r,i,o){void 0===i&&(i=1),void 0===o&&(o=!1);var a=t.call(this,"rgb")||this;return a.r=e,a.g=n,a.b=r,a.alpha=i,a.isNone=o,a}return(0,W.ZT)(e,t),e.prototype.clone=function(){return new e(this.r,this.g,this.b,this.alpha)},e.prototype.buildCSSText=function(t,e,n){return n+"rgba(".concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.alpha,")")},e}(t9),ec=new t6("unset"),eh={"":ec,unset:ec,initial:new t6("initial"),inherit:new t6("inherit")},ep=function(t){return eh[t]||(eh[t]=new t6(t)),eh[t]},ed=new eu(0,0,0,0,!0),ef=new eu(0,0,0,0),ev=tQ(function(t,e,n,r){return new eu(t,e,n,r)},function(t,e,n,r){return"rgba(".concat(t,",").concat(e,",").concat(n,",").concat(r,")")}),ey=function(t,e){return void 0===e&&(e=L.kNumber),new ea(t,e)};new ea(50,"%"),(y=V||(V={}))[y.Standard=0]="Standard",(g=Z||(Z={}))[g.ADDED=0]="ADDED",g[g.REMOVED=1]="REMOVED",g[g.Z_INDEX_CHANGED=2]="Z_INDEX_CHANGED";var eg={absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new tH(0,0,0,0)};(m=Y||(Y={})).COORDINATE="",m.COLOR="",m.PAINT="",m.NUMBER="",m.ANGLE="",m.OPACITY_VALUE="",m.SHADOW_BLUR="",m.LENGTH="",m.PERCENTAGE="",m.LENGTH_PERCENTAGE=" | ",m.LENGTH_PERCENTAGE_12="[ | ]{1,2}",m.LENGTH_PERCENTAGE_14="[ | ]{1,4}",m.LIST_OF_POINTS="",m.PATH="",m.FILTER="",m.Z_INDEX="",m.OFFSET_DISTANCE="",m.DEFINED_PATH="",m.MARKER="",m.TRANSFORM="",m.TRANSFORM_ORIGIN="",m.TEXT="",m.TEXT_TRANSFORM="";var em=function(){var t={linearGradient:/^(linear\-gradient)/i,repeatingLinearGradient:/^(repeating\-linear\-gradient)/i,radialGradient:/^(radial\-gradient)/i,repeatingRadialGradient:/^(repeating\-radial\-gradient)/i,conicGradient:/^(conic\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},e="";function n(t){throw Error(e+": "+t)}function r(){return i("linear-gradient",t.linearGradient,a)||i("repeating-linear-gradient",t.repeatingLinearGradient,a)||i("radial-gradient",t.radialGradient,s)||i("repeating-radial-gradient",t.repeatingRadialGradient,s)||i("conic-gradient",t.conicGradient,s)}function i(e,r,i){return o(r,function(r){var o=i();return o&&!m(t.comma)&&n("Missing comma before color stops"),{type:e,orientation:o,colorStops:p(d)}})}function o(e,r){var i=m(e);if(i){m(t.startCall)||n("Missing (");var o=r(i);return m(t.endCall)||n("Missing )"),o}}function a(){return g("directional",t.sideOrCorner,1)||g("angular",t.angleValue,1)}function s(){var n,r,i=l();return i&&((n=[]).push(i),r=e,m(t.comma)&&((i=l())?n.push(i):e=r)),n}function l(){var t,e,n=((t=g("shape",/^(circle)/i,0))&&(t.style=y()||u()),t||((e=g("shape",/^(ellipse)/i,0))&&(e.style=v()||u()),e));if(n)n.at=c();else{var r=u();if(r){n=r;var i=c();i&&(n.at=i)}else{var o=h();o&&(n={type:"default-radial",at:o})}}return n}function u(){return g("extent-keyword",t.extentKeywords,1)}function c(){if(g("position",/^at/,0)){var t=h();return t||n("Missing positioning value"),t}}function h(){var t={x:v(),y:v()};if(t.x||t.y)return{type:"position",value:t}}function p(e){var r=e(),i=[];if(r)for(i.push(r);m(t.comma);)(r=e())?i.push(r):n("One extra comma");return i}function d(){var e=g("hex",t.hexColor,1)||o(t.rgbaColor,function(){return{type:"rgba",value:p(f)}})||o(t.rgbColor,function(){return{type:"rgb",value:p(f)}})||g("literal",t.literalColor,0);return e||n("Expected color definition"),e.length=v(),e}function f(){return m(t.number)[1]}function v(){return g("%",t.percentageValue,1)||g("position-keyword",t.positionKeywords,1)||y()}function y(){return g("px",t.pixelValue,1)||g("em",t.emValue,1)}function g(t,e,n){var r=m(e);if(r)return{type:t,value:r[n]}}function m(t){var n=/^[\n\r\t\s]+/.exec(e);n&&E(n[0].length);var r=t.exec(e);return r&&E(r[0].length),r}function E(t){e=e.substring(t)}return function(t){var i;return e=t,i=p(r),e.length>0&&n("Invalid input not EOF"),i}}(),eE=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,ex=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,eb=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,eT=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,eP={left:180,top:-90,bottom:90,right:0,"left top":225,"top left":225,"left bottom":135,"bottom left":135,"right top":-45,"top right":-45,"right bottom":45,"bottom right":45},eS=tQ(function(t){return ey("angular"===t.type?Number(t.value):eP[t.value]||0,"deg")}),eN=tQ(function(t){var e=50,n=50,r="%",i="%";if((null==t?void 0:t.type)==="position"){var o=t.value,a=o.x,s=o.y;(null==a?void 0:a.type)==="position-keyword"&&("left"===a.value?e=0:"center"===a.value?e=50:"right"===a.value?e=100:"top"===a.value?n=0:"bottom"===a.value&&(n=100)),(null==s?void 0:s.type)==="position-keyword"&&("left"===s.value?e=0:"center"===s.value?n=50:"right"===s.value?e=100:"top"===s.value?n=0:"bottom"===s.value&&(n=100)),((null==a?void 0:a.type)==="px"||(null==a?void 0:a.type)==="%"||(null==a?void 0:a.type)==="em")&&(r=null==a?void 0:a.type,e=Number(a.value)),((null==s?void 0:s.type)==="px"||(null==s?void 0:s.type)==="%"||(null==s?void 0:s.type)==="em")&&(i=null==s?void 0:s.type,n=Number(s.value))}return{cx:ey(e,r),cy:ey(n,i)}}),eC=tQ(function(t){if(t.indexOf("linear")>-1||t.indexOf("radial")>-1){var e;return em(t).map(function(t){var e=t.type,n=t.orientation,r=t.colorStops;!function(t){var e,n,r,i=t.length;t[i-1].length=null!==(e=t[i-1].length)&&void 0!==e?e:{type:"%",value:"100"},i>1&&(t[0].length=null!==(n=t[0].length)&&void 0!==n?n:{type:"%",value:"0"});for(var o=0,a=Number(t[0].length.value),s=1;s=0)return ey(Number(e),"px");if("deg".search(t)>=0)return ey(Number(e),"deg")}var n=[];e=e.replace(t,function(t){return n.push(t),"U"+t});var r="U("+t.source+")";return n.map(function(t){return ey(Number(e.replace(RegExp("U"+t,"g"),"").replace(RegExp(r,"g"),"*0")),t)})[0]}var eA=function(t){return eR(/px/g,t)},eO=tQ(eA);tQ(function(t){return eR(RegExp("%","g"),t)});var eI=function(t){return(0,te.Z)(t)||isFinite(Number(t))?ey(Number(t)||0,"px"):eR(RegExp("px|%|em|rem","g"),t)},eL=tQ(eI),eD=function(t){return eR(RegExp("deg|rad|grad|turn","g"),t)},eG=tQ(eD);function eB(t){var e=0;return t.unit===L.kDegrees?e=t.value:t.unit===L.kRadians?e=tD(Number(t.value)):t.unit===L.kTurns&&(e=360*Number(t.value)),e}function eF(t,e){var n;return(Array.isArray(t)?n=t.map(function(t){return Number(t)}):(0,tr.Z)(t)?n=t.split(" ").map(function(t){return Number(t)}):(0,te.Z)(t)&&(n=[t]),2===e)?1===n.length?[n[0],n[0]]:[n[0],n[1]]:1===n.length?[n[0],n[0],n[0],n[0]]:2===n.length?[n[0],n[1],n[0],n[1]]:3===n.length?[n[0],n[1],n[2],n[1]]:[n[0],n[1],n[2],n[3]]}function e_(t){return(0,tr.Z)(t)?t.split(" ").map(function(t){return eL(t)}):t.map(function(t){return eL(t.toString())})}function eU(t,e,n,r){if(void 0===r&&(r=!1),t.unit===L.kPixels)return Number(t.value);if(t.unit===L.kPercentage&&n){var i=n.nodeName===k.GROUP?n.getLocalBounds():n.getGeometryBounds();return(r?i.min[e]:0)+t.value/100*i.halfExtents[e]*2}return 0}var eV=["blur","brightness","drop-shadow","contrast","grayscale","sepia","saturate","hue-rotate","invert"];function eZ(t){if(void 0===t&&(t=""),"none"===(t=t.toLowerCase().trim()))return[];for(var e,n=/\s*([\w-]+)\(([^)]*)\)/g,r=[],i=0;(e=n.exec(t))&&e.index===i;)if(i=e.index+e[0].length,eV.indexOf(e[1])>-1&&r.push({name:e[1],params:e[2].split(" ").map(function(t){return eR(/deg|rad|grad|turn|px|%/g,t)||ek(t)})}),n.lastIndex===t.length)return r;return[]}function eY(t){return t.toString()}var ez=function(t){return"number"==typeof t?ey(t):/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t)?ey(Number(t)):ey(0)},eX=tQ(ez);function ej(t,e){return[t,e,eY]}function eW(t,e){return function(n,r){return[n,r,function(n){return eY((0,ti.Z)(n,t,e))}]}}function eH(t,e){if(t.length===e.length)return[t,e,function(t){return t}]}function eq(t){return 0===t.parsedStyle.d.totalLength&&(t.parsedStyle.d.totalLength=(0,to.D)(t.parsedStyle.d.absolutePath)),t.parsedStyle.d.totalLength}function eK(t,e){return t[0]===e[0]&&t[1]===e[1]}function eJ(t,e){var n=t.prePoint,r=t.currentPoint,i=t.nextPoint,o=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),a=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),s=Math.acos((o+a-(Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2)))/(2*Math.sqrt(o)*Math.sqrt(a)));if(!s||0===Math.sin(s)||(0,tl.Z)(s,0))return{xExtra:0,yExtra:0};var l=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),u=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));return{xExtra:Math.cos(s/2-(l=l>Math.PI/2?Math.PI-l:l))*(e/2*(1/Math.sin(s/2)))-e/2||0,yExtra:Math.cos((u=u>Math.PI/2?Math.PI-u:u)-s/2)*(e/2*(1/Math.sin(s/2)))-e/2||0}}function e$(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}tQ(function(t){return(0,tr.Z)(t)?t.split(" ").map(eX):t.map(eX)});var eQ=function(t,e){var n=t.x*e.x+t.y*e.y,r=Math.sqrt((Math.pow(t.x,2)+Math.pow(t.y,2))*(Math.pow(e.x,2)+Math.pow(e.y,2)));return(t.x*e.y-t.y*e.x<0?-1:1)*Math.acos(n/r)},e0=function(t,e,n,r,i,o,a,s){e=Math.abs(e),n=Math.abs(n);var l=tL(r=(0,tu.Z)(r,360));if(t.x===a.x&&t.y===a.y)return{x:t.x,y:t.y,ellipticalArcAngle:0};if(0===e||0===n)return{x:0,y:0,ellipticalArcAngle:0};var u=(t.x-a.x)/2,c=(t.y-a.y)/2,h={x:Math.cos(l)*u+Math.sin(l)*c,y:-Math.sin(l)*u+Math.cos(l)*c},p=Math.pow(h.x,2)/Math.pow(e,2)+Math.pow(h.y,2)/Math.pow(n,2);p>1&&(e=Math.sqrt(p)*e,n=Math.sqrt(p)*n);var d=(Math.pow(e,2)*Math.pow(n,2)-Math.pow(e,2)*Math.pow(h.y,2)-Math.pow(n,2)*Math.pow(h.x,2))/(Math.pow(e,2)*Math.pow(h.y,2)+Math.pow(n,2)*Math.pow(h.x,2)),f=(i!==o?1:-1)*Math.sqrt(d=d<0?0:d),v={x:f*(e*h.y/n),y:f*(-(n*h.x)/e)},y={x:Math.cos(l)*v.x-Math.sin(l)*v.y+(t.x+a.x)/2,y:Math.sin(l)*v.x+Math.cos(l)*v.y+(t.y+a.y)/2},g={x:(h.x-v.x)/e,y:(h.y-v.y)/n},m=eQ({x:1,y:0},g),E=eQ(g,{x:(-h.x-v.x)/e,y:(-h.y-v.y)/n});!o&&E>0?E-=2*Math.PI:o&&E<0&&(E+=2*Math.PI);var x=m+(E%=2*Math.PI)*s,b=e*Math.cos(x),T=n*Math.sin(x);return{x:Math.cos(l)*b-Math.sin(l)*T+y.x,y:Math.sin(l)*b+Math.cos(l)*T+y.y,ellipticalArcStartAngle:m,ellipticalArcEndAngle:m+E,ellipticalArcAngle:x,ellipticalArcCenter:y,resultantRx:e,resultantRy:n}};function e1(t,e,n){void 0===n&&(n=!0);var r=t.arcParams,i=r.rx,o=void 0===i?0:i,a=r.ry,s=void 0===a?0:a,l=r.xRotation,u=r.arcFlag,c=r.sweepFlag,h=e0({x:t.prePoint[0],y:t.prePoint[1]},o,s,l,!!u,!!c,{x:t.currentPoint[0],y:t.currentPoint[1]},e),p=e0({x:t.prePoint[0],y:t.prePoint[1]},o,s,l,!!u,!!c,{x:t.currentPoint[0],y:t.currentPoint[1]},n?e+.005:e-.005),d=p.x-h.x,f=p.y-h.y,v=Math.sqrt(d*d+f*f);return{x:-d/v,y:-f/v}}function e2(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function e3(t,e){return e2(t)*e2(e)?(t[0]*e[0]+t[1]*e[1])/(e2(t)*e2(e)):1}function e5(t,e){return(t[0]*e[1]0&&n.push(r),{polygons:e,polylines:n}}(e),i=r.polygons,o=r.polylines,a=function(t){for(var e=[],n=null,r=null,i=null,o=0,a=t.length,s=0;s1&&(n*=Math.sqrt(d),r*=Math.sqrt(d));var f=n*n*(p*p)+r*r*(h*h),v=f?Math.sqrt((n*n*(r*r)-f)/f):1;o===a&&(v*=-1),isNaN(v)&&(v=0);var y=r?v*n*p/r:0,g=n?-(v*r)*h/n:0,m=(s+u)/2+Math.cos(i)*y-Math.sin(i)*g,E=(l+c)/2+Math.sin(i)*y+Math.cos(i)*g,x=[(h-y)/n,(p-g)/r],b=[(-1*h-y)/n,(-1*p-g)/r],T=e5([1,0],x),P=e5(x,b);return -1>=e3(x,b)&&(P=Math.PI),e3(x,b)>=1&&(P=0),0===a&&P>0&&(P-=2*Math.PI),1===a&&P<0&&(P+=2*Math.PI),{cx:m,cy:E,rx:eK(t,[u,c])?0:n,ry:eK(t,[u,c])?0:r,startAngle:T,endAngle:T+P,xRotation:i,arcFlag:o,sweepFlag:a}}(n,l);c.arcParams=h}if("Z"===u)n=i,r=t[o+1];else{var p=l.length;n=[l[p-2],l[p-1]]}r&&"Z"===r[0]&&(r=t[o],e[o]&&(e[o].prePoint=n)),c.currentPoint=n,e[o]&&eK(n,e[o].currentPoint)&&(e[o].prePoint=c.prePoint);var d=r?[r[r.length-2],r[r.length-1]]:null;c.nextPoint=d;var f=c.prePoint;if(["L","H","V"].includes(u))c.startTangent=[f[0]-n[0],f[1]-n[1]],c.endTangent=[n[0]-f[0],n[1]-f[1]];else if("Q"===u){var v=[l[1],l[2]];c.startTangent=[f[0]-v[0],f[1]-v[1]],c.endTangent=[n[0]-v[0],n[1]-v[1]]}else if("T"===u){var y=e[s-1],v=e$(y.currentPoint,f);"Q"===y.command?(c.command="Q",c.startTangent=[f[0]-v[0],f[1]-v[1]],c.endTangent=[n[0]-v[0],n[1]-v[1]]):(c.command="TL",c.startTangent=[f[0]-n[0],f[1]-n[1]],c.endTangent=[n[0]-f[0],n[1]-f[1]])}else if("C"===u){var g=[l[1],l[2]],m=[l[3],l[4]];c.startTangent=[f[0]-g[0],f[1]-g[1]],c.endTangent=[n[0]-m[0],n[1]-m[1]],0===c.startTangent[0]&&0===c.startTangent[1]&&(c.startTangent=[g[0]-m[0],g[1]-m[1]]),0===c.endTangent[0]&&0===c.endTangent[1]&&(c.endTangent=[m[0]-g[0],m[1]-g[1]])}else if("S"===u){var y=e[s-1],g=e$(y.currentPoint,f),m=[l[1],l[2]];"C"===y.command?(c.command="C",c.startTangent=[f[0]-g[0],f[1]-g[1]],c.endTangent=[n[0]-m[0],n[1]-m[1]]):(c.command="SQ",c.startTangent=[f[0]-m[0],f[1]-m[1]],c.endTangent=[n[0]-m[0],n[1]-m[1]])}else if("A"===u){var E=e1(c,0),x=E.x,b=E.y,T=e1(c,1,!1),P=T.x,S=T.y;c.startTangent=[x,b],c.endTangent=[P,S]}e.push(c)}return e}(e),s=function(t,e){for(var n=[],r=[],i=[],o=0;oMath.abs(K.determinant(t_))))){var a=tF[3],s=tF[7],l=tF[11],u=tF[12],c=tF[13],h=tF[14],p=tF[15];if(0!==a||0!==s||0!==l){if(tU[0]=a,tU[1]=s,tU[2]=l,tU[3]=p,!K.invert(t_,t_))return;K.transpose(t_,t_),$.fF(i,tU,t_)}else i[0]=i[1]=i[2]=0,i[3]=1;if(e[0]=u,e[1]=c,e[2]=h,tV[0][0]=tF[0],tV[0][1]=tF[1],tV[0][2]=tF[2],tV[1][0]=tF[4],tV[1][1]=tF[5],tV[1][2]=tF[6],tV[2][0]=tF[8],tV[2][1]=tF[9],tV[2][2]=tF[10],n[0]=q.kE(tV[0]),q.Fv(tV[0],tV[0]),r[0]=q.AK(tV[0],tV[1]),tY(tV[1],tV[1],tV[0],1,-r[0]),n[1]=q.kE(tV[1]),q.Fv(tV[1],tV[1]),r[0]/=n[1],r[1]=q.AK(tV[0],tV[2]),tY(tV[2],tV[2],tV[0],1,-r[1]),r[2]=q.AK(tV[1],tV[2]),tY(tV[2],tV[2],tV[1],1,-r[2]),n[2]=q.kE(tV[2]),q.Fv(tV[2],tV[2]),r[1]/=n[2],r[2]/=n[2],q.kC(tZ,tV[1],tV[2]),0>q.AK(tV[0],tZ))for(var d=0;d<3;d++)n[d]*=-1,tV[d][0]*=-1,tV[d][1]*=-1,tV[d][2]*=-1;o[0]=.5*Math.sqrt(Math.max(1+tV[0][0]-tV[1][1]-tV[2][2],0)),o[1]=.5*Math.sqrt(Math.max(1-tV[0][0]+tV[1][1]-tV[2][2],0)),o[2]=.5*Math.sqrt(Math.max(1-tV[0][0]-tV[1][1]+tV[2][2],0)),o[3]=.5*Math.sqrt(Math.max(1+tV[0][0]+tV[1][1]+tV[2][2],0)),tV[2][1]>tV[1][2]&&(o[0]=-o[0]),tV[0][2]>tV[2][0]&&(o[1]=-o[1]),tV[1][0]>tV[0][1]&&(o[2]=-o[2])}}(0===t.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:t.map(na).reduce(ns),e,n,r,i,o),[[e,n,r,o,i]]}var nu=function(){function t(t,e){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var i=0;i<4;i++)for(var o=0;o<4;o++)n[r][i]+=e[r][o]*t[o][i];return n}return function(e,n,r,i,o){for(var a,s=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],l=0;l<4;l++)s[l][3]=o[l];for(var l=0;l<3;l++)for(var u=0;u<3;u++)s[3][l]+=e[u]*s[u][l];var c=i[0],h=i[1],p=i[2],d=i[3],f=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];f[0][0]=1-2*(h*h+p*p),f[0][1]=2*(c*h-p*d),f[0][2]=2*(c*p+h*d),f[1][0]=2*(c*h+p*d),f[1][1]=1-2*(c*c+p*p),f[1][2]=2*(h*p-c*d),f[2][0]=2*(c*p-h*d),f[2][1]=2*(h*p+c*d),f[2][2]=1-2*(c*c+h*h),s=t(s,f);var v=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];r[2]&&(v[2][1]=r[2],s=t(s,v)),r[1]&&(v[2][1]=0,v[2][0]=r[0],s=t(s,v)),r[0]&&(v[2][0]=0,v[1][0]=r[0],s=t(s,v));for(var l=0;l<3;l++)for(var u=0;u<3;u++)s[l][u]*=n[l];return 0==(a=s)[0][2]&&0==a[0][3]&&0==a[1][2]&&0==a[1][3]&&0==a[2][0]&&0==a[2][1]&&1==a[2][2]&&0==a[2][3]&&0==a[3][2]&&1==a[3][3]?[s[0][0],s[0][1],s[1][0],s[1][1],s[3][0],s[3][1]]:s[0].concat(s[1],s[2],s[3])}}();function nc(t){return t.toFixed(6).replace(".000000","")}function nh(t,e){var n,r;return(t.decompositionPair!==e&&(t.decompositionPair=e,n=nl(t)),e.decompositionPair!==t&&(e.decompositionPair=t,r=nl(e)),null===n[0]||null===r[0])?[[!1],[!0],function(n){return n?e[0].d:t[0].d}]:(n[0].push(0),r[0].push(1),[n,r,function(t){var e=function(t,e,n){var r=function(t,e){for(var n=0,r=0;r"].calculator(null,null,{value:e.textTransform},t,null),(0,tg.Z)(e.clipPath)||this.runtime.CSSPropertySyntaxFactory[""].calculator("clipPath",p,e.clipPath,t,this.runtime),e.offsetPath&&this.runtime.CSSPropertySyntaxFactory[""].calculator("offsetPath",d,e.offsetPath,t,this.runtime),e.transform&&(t.parsedStyle.transform=ni(e.transform)),e.transformOrigin&&(t.parsedStyle.transformOrigin=nv(e.transformOrigin)),e.markerStart&&(t.parsedStyle.markerStart=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,e.markerStart,e.markerStart,null,null)),e.markerEnd&&(t.parsedStyle.markerEnd=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,e.markerEnd,e.markerEnd,null,null)),e.markerMid&&(t.parsedStyle.markerMid=this.runtime.CSSPropertySyntaxFactory[""].calculator("",e.markerMid,e.markerMid,null,null)),(0,tn.Z)(e.zIndex)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(t,h),(0,tn.Z)(e.offsetDistance)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(t,h),e.transform&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(t,h),e.transformOrigin&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(t,h),f&&(t.geometry.dirty=!0,t.renderable.boundsDirty=!0,t.renderable.renderBoundsDirty=!0,n.forceUpdateGeometry||this.runtime.sceneGraphService.dirtifyToRoot(t))}},t.prototype.parseProperty=function(t,e,n,r){var i=nx[t],o=e;if((""===e||(0,tn.Z)(e))&&(e="unset"),"unset"===e||"initial"===e||"inherit"===e)o=ep(e);else if(i){var a=i.k,s=i.syntax,l=s&&this.getPropertySyntax(s);a&&a.indexOf(e)>-1?o=ep(e):l&&(!r&&l.parserUnmemoize?o=l.parserUnmemoize(e,n):l.parser&&(o=l.parser(e,n)))}return o},t.prototype.computeProperty=function(t,e,n,r){var i=nx[t],o="g-root"===n.id,a=e;if(i){var s=i.syntax,l=i.inh,u=i.d;if(e instanceof t6){var c=e.value;if("unset"===c&&(c=l&&!o?"inherit":"initial"),"initial"===c)(0,tn.Z)(u)||(e=this.parseProperty(t,ee(u)?u(n.nodeName):u,n,r));else if("inherit"===c){var h=this.tryToResolveProperty(n,t,{inherited:!0});return(0,tn.Z)(h)?void this.addUnresolveProperty(n,t):h}}var p=s&&this.getPropertySyntax(s);if(p&&p.calculator){var d=n.parsedStyle[t];a=p.calculator(t,d,e,n,this.runtime)}else a=e instanceof t6?e.value:e}return a},t.prototype.postProcessProperty=function(t,e,n){var r=nx[t];if(r&&r.syntax){var i=r.syntax&&this.getPropertySyntax(r.syntax);i&&i.postProcessor&&i.postProcessor(e,n)}},t.prototype.addUnresolveProperty=function(t,e){var n=nb.get(t);n||(nb.set(t,[]),n=nb.get(t)),-1===n.indexOf(e)&&n.push(e)},t.prototype.tryToResolveProperty=function(t,e,n){if(void 0===n&&(n={}),n.inherited&&t.parentElement&&nT(t.parentElement,e)){var r=t.parentElement.parsedStyle[e];if("unset"!==r&&"initial"!==r&&"inherit"!==r)return r}},t.prototype.recalc=function(t){var e=nb.get(t);if(e&&e.length){var n={};e.forEach(function(e){n[e]=t.attributes[e]}),this.processProperties(t,n),nb.delete(t)}},t.prototype.updateGeometry=function(t){var e=t.nodeName,n=this.runtime.geometryUpdaterFactory[e];if(n){var r=t.geometry;r.contentBounds||(r.contentBounds=new tz),r.renderBounds||(r.renderBounds=new tz);var i=t.parsedStyle,o=n.update(i,t),a=o.cx,s=o.cy,l=o.cz,u=o.hwidth,c=void 0===u?0:u,h=o.hheight,p=void 0===h?0:h,d=o.hdepth,f=[Math.abs(c),Math.abs(p),void 0===d?0:d],v=i.stroke,y=i.lineWidth,g=i.increasedLineWidthForHitTesting,m=i.shadowType,E=void 0===m?"outer":m,x=i.shadowColor,b=i.filter,T=i.transformOrigin,P=[void 0===a?0:a,void 0===s?0:s,void 0===l?0:l];r.contentBounds.update(P,f);var S=e===k.POLYLINE||e===k.POLYGON||e===k.PATH?Math.SQRT2:.5;if(v&&!v.isNone){var N=(((void 0===y?1:y)||0)+((void 0===g?0:g)||0))*S;f[0]+=N,f[1]+=N}if(r.renderBounds.update(P,f),x&&E&&"inner"!==E){var C=r.renderBounds,w=C.min,M=C.max,R=i.shadowBlur,A=i.shadowOffsetX,O=i.shadowOffsetY,I=R||0,L=A||0,D=O||0,G=w[0]-I+L,B=M[0]+I+L,F=w[1]-I+D,_=M[1]+I+D;w[0]=Math.min(w[0],G),M[0]=Math.max(M[0],B),w[1]=Math.min(w[1],F),M[1]=Math.max(M[1],_),r.renderBounds.setMinMax(w,M)}(void 0===b?[]:b).forEach(function(t){var e=t.name,n=t.params;if("blur"===e){var i=n[0].value;r.renderBounds.update(r.renderBounds.center,tR(r.renderBounds.halfExtents,r.renderBounds.halfExtents,[i,i,0]))}else if("drop-shadow"===e){var o=n[0].value,a=n[1].value,s=n[2].value,l=r.renderBounds,u=l.min,c=l.max,h=u[0]-s+o,p=c[0]+s+o,d=u[1]-s+a,f=c[1]+s+a;u[0]=Math.min(u[0],h),c[0]=Math.max(c[0],p),u[1]=Math.min(u[1],d),c[1]=Math.max(c[1],f),r.renderBounds.setMinMax(u,c)}}),t.geometry.dirty=!1;var U=p<0,V=(c<0?-1:1)*(T?eU(T[0],0,t,!0):0),Z=(U?-1:1)*(T?eU(T[1],1,t,!0):0);(V||Z)&&t.setOrigin(V,Z)}},t.prototype.updateSizeAttenuation=function(t,e){t.style.isSizeAttenuation?(t.style.rawLineWidth||(t.style.rawLineWidth=t.style.lineWidth),t.style.lineWidth=(t.style.rawLineWidth||1)/e,t.nodeName===k.CIRCLE&&(t.style.rawR||(t.style.rawR=t.style.r),t.style.r=(t.style.rawR||1)/e)):(t.style.rawLineWidth&&(t.style.lineWidth=t.style.rawLineWidth,delete t.style.rawLineWidth),t.nodeName===k.CIRCLE&&t.style.rawR&&(t.style.r=t.style.rawR,delete t.style.rawR))},t.prototype.isPropertyInheritable=function(t){var e=nx[t];return!!e&&e.inh},t}(),nS=function(){function t(){this.parser=eG,this.parserUnmemoize=eD,this.parserWithCSSDisabled=null,this.mixer=ej}return t.prototype.calculator=function(t,e,n,r){return eB(n)},t}(),nN=function(){function t(){}return t.prototype.calculator=function(t,e,n,r,i){return n instanceof t6&&(n=null),i.sceneGraphService.updateDisplayObjectDependency(t,e,n,r),"clipPath"===t&&r.forEach(function(t){0===t.childNodes.length&&i.sceneGraphService.dirtifyToRoot(t)}),n},t}(),nC=function(){function t(){this.parser=ek,this.parserWithCSSDisabled=ek,this.mixer=eM}return t.prototype.calculator=function(t,e,n,r){return n instanceof t6?"none"===n.value?ed:ef:n},t}(),nw=function(){function t(){this.parser=eZ}return t.prototype.calculator=function(t,e,n){return n instanceof t6?[]:n},t}();function nk(t){var e=t.parsedStyle.fontSize;return(0,tn.Z)(e)?null:e}var nM=function(){function t(){this.parser=eL,this.parserUnmemoize=eI,this.parserWithCSSDisabled=null,this.mixer=ej}return t.prototype.calculator=function(t,e,n,r,i){if((0,te.Z)(n))return n;if(!ea.isRelativeUnit(n.unit))return n.value;var o,a=i.styleValueRegistry;if(n.unit===L.kPercentage)return 0;if(n.unit===L.kEms){if(r.parentNode){var s=nk(r.parentNode);if(s)return s*n.value;a.addUnresolveProperty(r,t)}else a.addUnresolveProperty(r,t);return 0}if(n.unit===L.kRems){if(null===(o=null==r?void 0:r.ownerDocument)||void 0===o?void 0:o.documentElement){var s=nk(r.ownerDocument.documentElement);if(s)return s*n.value;a.addUnresolveProperty(r,t)}else a.addUnresolveProperty(r,t);return 0}},t}(),nR=function(){function t(){this.mixer=eH}return t.prototype.parser=function(t){var e=e_((0,te.Z)(t)?[t]:t);return 1===e.length?[e[0],e[0]]:[e[0],e[1]]},t.prototype.calculator=function(t,e,n){return n.map(function(t){return t.value})},t}(),nA=function(){function t(){this.mixer=eH}return t.prototype.parser=function(t){var e=e_((0,te.Z)(t)?[t]:t);return 1===e.length?[e[0],e[0],e[0],e[0]]:2===e.length?[e[0],e[1],e[0],e[1]]:3===e.length?[e[0],e[1],e[2],e[1]]:[e[0],e[1],e[2],e[3]]},t.prototype.calculator=function(t,e,n){return n.map(function(t){return t.value})},t}(),nO=function(){function t(){}return t.prototype.calculator=function(t,e,n,r){n instanceof t6&&(n=null);var i=null==n?void 0:n.cloneNode(!0);return i&&(i.style.isMarker=!0),i},t}(),nI=function(){function t(){this.mixer=ej,this.parser=eX,this.parserUnmemoize=ez,this.parserWithCSSDisabled=null}return t.prototype.calculator=function(t,e,n){return n.value},t}(),nL=function(){function t(){this.parser=eX,this.parserUnmemoize=ez,this.parserWithCSSDisabled=null,this.mixer=eW(0,1)}return t.prototype.calculator=function(t,e,n){return n.value},t.prototype.postProcessor=function(t){var e=t.parsedStyle,n=e.offsetPath,r=e.offsetDistance;if(n){var i=n.nodeName;if(i===k.LINE||i===k.PATH||i===k.POLYLINE){var o=n.getPoint(r);o&&t.setLocalPosition(o.x,o.y)}}},t}(),nD=function(){function t(){this.parser=eX,this.parserUnmemoize=ez,this.parserWithCSSDisabled=null,this.mixer=eW(0,1)}return t.prototype.calculator=function(t,e,n){return n.value},t}(),nG=function(){function t(){this.parser=e8,this.parserWithCSSDisabled=e8,this.mixer=e6}return t.prototype.calculator=function(t,e,n){return n instanceof t6&&"unset"===n.value?{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new tH(0,0,0,0)}:n},t}(),nB=function(t){function e(){var e=t.apply(this,(0,W.ev)([],(0,W.CR)(arguments),!1))||this;return e.mixer=eW(0,1/0),e}return(0,W.ZT)(e,t),e}(nM),nF=function(){function t(){}return t.prototype.calculator=function(t,e,n,r){return n instanceof t6?"unset"===n.value?"":n.value:"".concat(n)},t.prototype.postProcessor=function(t){t.nodeValue="".concat(t.parsedStyle.text)||""},t}(),n_=function(){function t(){}return t.prototype.calculator=function(t,e,n,r){var i=r.getAttribute("text");if(i){var o=i;"capitalize"===n.value?o=i.charAt(0).toUpperCase()+i.slice(1):"lowercase"===n.value?o=i.toLowerCase():"uppercase"===n.value&&(o=i.toUpperCase()),r.parsedStyle.text=o}return n.value},t}(),nU={},nV=0,nZ="undefined"!=typeof window&&void 0!==window.document;function nY(t,e){var n=Number(t.parsedStyle.zIndex||0),r=Number(e.parsedStyle.zIndex||0);if(n===r){var i=t.parentNode;if(i){var o=i.childNodes||[];return o.indexOf(t)-o.indexOf(e)}}return n-r}function nz(t,e,n){nZ&&t.style&&(t.style.width=e+"px",t.style.height=n+"px")}function nX(t,e){if(nZ)return document.defaultView.getComputedStyle(t,null).getPropertyValue(e)}var nj={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"},nW="object"==typeof performance&&performance.now?performance:Date,nH=1,nq="object"==typeof self&&self.self==self?self:"object"==typeof n.g&&n.g.global==n.g?n.g:{},nK=Date.now(),nJ={},n$=Date.now(),nQ=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function");var e=Date.now(),n=e-n$,r=nH++;return nJ[r]=t,Object.keys(nJ).length>1||setTimeout(function(){n$=e;var t=nJ;nJ={},Object.keys(t).forEach(function(e){return t[e](nq.performance&&"function"==typeof nq.performance.now?nq.performance.now():Date.now()-nK)})},n>16?0:16-n),r},n0=function(t){return"string"!=typeof t?nQ:""===t?nq.requestAnimationFrame:nq[t+"RequestAnimationFrame"]},n1=function(t,e){for(var n=0;void 0!==t[n];){if(e(t[n]))return t[n];n+=1}}(["","webkit","moz","ms","o"],function(t){return!!n0(t)}),n2=n0(n1),n3="string"!=typeof n1?function(t){delete nJ[t]}:""===n1?nq.cancelAnimationFrame:nq[n1+"CancelAnimationFrame"]||nq[n1+"CancelRequestAnimationFrame"];nq.requestAnimationFrame=n2,nq.cancelAnimationFrame=n3;var n5=function(){function t(){this.callbacks=[]}return t.prototype.getCallbacksNum=function(){return this.callbacks.length},t.prototype.tapPromise=function(t,e){this.callbacks.push(e)},t.prototype.promise=function(){for(var t=[],e=0;e-1){var l=(0,W.CR)(t.split(":"),2),u=l[0];t=l[1],s=u,a=!0}if(t=r?"".concat(t,"capture"):t,e=ee(e)?e:e.handleEvent,a){var c=e;e=function(){for(var t,e=[],n=0;n0},e.prototype.isDefaultNamespace=function(t){throw Error(tq)},e.prototype.lookupNamespaceURI=function(t){throw Error(tq)},e.prototype.lookupPrefix=function(t){throw Error(tq)},e.prototype.normalize=function(){throw Error(tq)},e.prototype.isEqualNode=function(t){return this===t},e.prototype.isSameNode=function(t){return this.isEqualNode(t)},Object.defineProperty(e.prototype,"parent",{get:function(){return this.parentNode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.childNodes.length>0?this.childNodes[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.childNodes.length>0?this.childNodes[this.childNodes.length-1]:null},enumerable:!1,configurable:!0}),e.prototype.compareDocumentPosition=function(t){if(t===this)return 0;for(var n,r=t,i=this,o=[r],a=[i];null!==(n=r.parentNode)&&void 0!==n?n:i.parentNode;)r=r.parentNode?(o.push(r.parentNode),r.parentNode):r,i=i.parentNode?(a.push(i.parentNode),i.parentNode):i;if(r!==i)return e.DOCUMENT_POSITION_DISCONNECTED|e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|e.DOCUMENT_POSITION_PRECEDING;var s=o.length>a.length?o:a,l=s===o?a:o;if(s[s.length-l.length]===l[0])return s===o?e.DOCUMENT_POSITION_CONTAINED_BY|e.DOCUMENT_POSITION_FOLLOWING:e.DOCUMENT_POSITION_CONTAINS|e.DOCUMENT_POSITION_PRECEDING;for(var u=s.length-l.length,c=l.length-1;c>=0;c--){var h=l[c],p=s[u+c];if(p!==h){var d=h.parentNode.childNodes;if(d.indexOf(h)0&&e;)e=e.parentNode,t--;return e},e.prototype.forEach=function(t,e){void 0===e&&(e=!1),t(this)||(e?this.childNodes.slice():this.childNodes).forEach(function(e){e.forEach(t)})},e.DOCUMENT_POSITION_DISCONNECTED=1,e.DOCUMENT_POSITION_PRECEDING=2,e.DOCUMENT_POSITION_FOLLOWING=4,e.DOCUMENT_POSITION_CONTAINS=8,e.DOCUMENT_POSITION_CONTAINED_BY=16,e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32,e}(rE),rb=function(){function t(t,e){var n=this;this.globalRuntime=t,this.context=e,this.emitter=new H.Z,this.nativeHTMLMap=new WeakMap,this.cursor="default",this.mappingTable={},this.mappingState={trackingData:{}},this.eventPool=new Map,this.tmpMatrix=K.create(),this.tmpVec3=q.Ue(),this.onPointerDown=function(t){var e=n.createPointerEvent(t);if(n.dispatchEvent(e,"pointerdown"),"touch"===e.pointerType)n.dispatchEvent(e,"touchstart");else if("mouse"===e.pointerType||"pen"===e.pointerType){var r=2===e.button;n.dispatchEvent(e,r?"rightdown":"mousedown")}n.trackingData(t.pointerId).pressTargetsByButton[t.button]=e.composedPath(),n.freeEvent(e)},this.onPointerUp=function(t){var e,r=nW.now(),i=n.createPointerEvent(t,void 0,void 0,n.context.config.alwaysTriggerPointerEventOnCanvas?n.rootTarget:void 0);if(n.dispatchEvent(i,"pointerup"),"touch"===i.pointerType)n.dispatchEvent(i,"touchend");else if("mouse"===i.pointerType||"pen"===i.pointerType){var o=2===i.button;n.dispatchEvent(i,o?"rightup":"mouseup")}var a=n.trackingData(t.pointerId),s=n.findMountedTarget(a.pressTargetsByButton[t.button]),l=s;if(s&&!i.composedPath().includes(s)){for(var u=s;u&&!i.composedPath().includes(u);){if(i.currentTarget=u,n.notifyTarget(i,"pointerupoutside"),"touch"===i.pointerType)n.notifyTarget(i,"touchendoutside");else if("mouse"===i.pointerType||"pen"===i.pointerType){var o=2===i.button;n.notifyTarget(i,o?"rightupoutside":"mouseupoutside")}rx.isNode(u)&&(u=u.parentNode)}delete a.pressTargetsByButton[t.button],l=u}if(l){var c=n.clonePointerEvent(i,"click");c.target=l,c.path=[],a.clicksByButton[t.button]||(a.clicksByButton[t.button]={clickCount:0,target:c.target,timeStamp:r});var h=a.clicksByButton[t.button];h.target===c.target&&r-h.timeStamp<200?++h.clickCount:h.clickCount=1,h.target=c.target,h.timeStamp=r,c.detail=h.clickCount,(null===(e=i.detail)||void 0===e?void 0:e.preventClick)||(n.context.config.useNativeClickEvent||"mouse"!==c.pointerType&&"touch"!==c.pointerType||n.dispatchEvent(c,"click"),n.dispatchEvent(c,"pointertap")),n.freeEvent(c)}n.freeEvent(i)},this.onPointerMove=function(t){var e=n.createPointerEvent(t,void 0,void 0,n.context.config.alwaysTriggerPointerEventOnCanvas?n.rootTarget:void 0),r="mouse"===e.pointerType||"pen"===e.pointerType,i=n.trackingData(t.pointerId),o=n.findMountedTarget(i.overTargets);if(i.overTargets&&o!==e.target){var a="mousemove"===t.type?"mouseout":"pointerout",s=n.createPointerEvent(t,a,o||void 0);if(n.dispatchEvent(s,"pointerout"),r&&n.dispatchEvent(s,"mouseout"),!e.composedPath().includes(o)){var l=n.createPointerEvent(t,"pointerleave",o||void 0);for(l.eventPhase=l.AT_TARGET;l.target&&!e.composedPath().includes(l.target);)l.currentTarget=l.target,n.notifyTarget(l),r&&n.notifyTarget(l,"mouseleave"),rx.isNode(l.target)&&(l.target=l.target.parentNode);n.freeEvent(l)}n.freeEvent(s)}if(o!==e.target){var u="mousemove"===t.type?"mouseover":"pointerover",c=n.clonePointerEvent(e,u);n.dispatchEvent(c,"pointerover"),r&&n.dispatchEvent(c,"mouseover");for(var h=o&&rx.isNode(o)&&o.parentNode;h&&h!==(rx.isNode(n.rootTarget)&&n.rootTarget.parentNode)&&h!==e.target;)h=h.parentNode;if(!h||h===(rx.isNode(n.rootTarget)&&n.rootTarget.parentNode)){var p=n.clonePointerEvent(e,"pointerenter");for(p.eventPhase=p.AT_TARGET;p.target&&p.target!==o&&p.target!==(rx.isNode(n.rootTarget)&&n.rootTarget.parentNode);)p.currentTarget=p.target,n.notifyTarget(p),r&&n.notifyTarget(p,"mouseenter"),rx.isNode(p.target)&&(p.target=p.target.parentNode);n.freeEvent(p)}n.freeEvent(c)}n.dispatchEvent(e,"pointermove"),"touch"===e.pointerType&&n.dispatchEvent(e,"touchmove"),r&&(n.dispatchEvent(e,"mousemove"),n.cursor=n.getCursor(e.target)),i.overTargets=e.composedPath(),n.freeEvent(e)},this.onPointerOut=function(t){var e=n.trackingData(t.pointerId);if(e.overTargets){var r="mouse"===t.pointerType||"pen"===t.pointerType,i=n.findMountedTarget(e.overTargets),o=n.createPointerEvent(t,"pointerout",i||void 0);n.dispatchEvent(o),r&&n.dispatchEvent(o,"mouseout");var a=n.createPointerEvent(t,"pointerleave",i||void 0);for(a.eventPhase=a.AT_TARGET;a.target&&a.target!==(rx.isNode(n.rootTarget)&&n.rootTarget.parentNode);)a.currentTarget=a.target,n.notifyTarget(a),r&&n.notifyTarget(a,"mouseleave"),rx.isNode(a.target)&&(a.target=a.target.parentNode);e.overTargets=null,n.freeEvent(o),n.freeEvent(a)}n.cursor=null},this.onPointerOver=function(t){var e=n.trackingData(t.pointerId),r=n.createPointerEvent(t),i="mouse"===r.pointerType||"pen"===r.pointerType;n.dispatchEvent(r,"pointerover"),i&&n.dispatchEvent(r,"mouseover"),"mouse"===r.pointerType&&(n.cursor=n.getCursor(r.target));var o=n.clonePointerEvent(r,"pointerenter");for(o.eventPhase=o.AT_TARGET;o.target&&o.target!==(rx.isNode(n.rootTarget)&&n.rootTarget.parentNode);)o.currentTarget=o.target,n.notifyTarget(o),i&&n.notifyTarget(o,"mouseenter"),rx.isNode(o.target)&&(o.target=o.target.parentNode);e.overTargets=r.composedPath(),n.freeEvent(r),n.freeEvent(o)},this.onPointerUpOutside=function(t){var e=n.trackingData(t.pointerId),r=n.findMountedTarget(e.pressTargetsByButton[t.button]),i=n.createPointerEvent(t);if(r){for(var o=r;o;)i.currentTarget=o,n.notifyTarget(i,"pointerupoutside"),"touch"===i.pointerType||("mouse"===i.pointerType||"pen"===i.pointerType)&&n.notifyTarget(i,2===i.button?"rightupoutside":"mouseupoutside"),rx.isNode(o)&&(o=o.parentNode);delete e.pressTargetsByButton[t.button]}n.freeEvent(i)},this.onWheel=function(t){var e=n.createWheelEvent(t);n.dispatchEvent(e),n.freeEvent(e)},this.onClick=function(t){if(n.context.config.useNativeClickEvent){var e=n.createPointerEvent(t);n.dispatchEvent(e),n.freeEvent(e)}},this.onPointerCancel=function(t){var e=n.createPointerEvent(t,void 0,void 0,n.context.config.alwaysTriggerPointerEventOnCanvas?n.rootTarget:void 0);n.dispatchEvent(e),n.freeEvent(e)}}return t.prototype.init=function(){this.rootTarget=this.context.renderingContext.root.parentNode,this.addEventMapping("pointerdown",this.onPointerDown),this.addEventMapping("pointerup",this.onPointerUp),this.addEventMapping("pointermove",this.onPointerMove),this.addEventMapping("pointerout",this.onPointerOut),this.addEventMapping("pointerleave",this.onPointerOut),this.addEventMapping("pointercancel",this.onPointerCancel),this.addEventMapping("pointerover",this.onPointerOver),this.addEventMapping("pointerupoutside",this.onPointerUpOutside),this.addEventMapping("wheel",this.onWheel),this.addEventMapping("click",this.onClick)},t.prototype.destroy=function(){this.emitter.removeAllListeners(),this.mappingTable={},this.mappingState={},this.eventPool.clear()},t.prototype.getScale=function(){var t=this.context.contextService.getBoundingClientRect(),e=1,n=1,r=this.context.contextService.getDomElement();if(r&&t){var i=r.offsetWidth,o=r.offsetHeight;i&&o&&(e=t.width/i,n=t.height/o)}return{scaleX:e,scaleY:n,bbox:t}},t.prototype.client2Viewport=function(t){var e=this.getScale(),n=e.scaleX,r=e.scaleY,i=e.bbox;return new tW((t.x-((null==i?void 0:i.left)||0))/n,(t.y-((null==i?void 0:i.top)||0))/r)},t.prototype.viewport2Client=function(t){var e=this.getScale(),n=e.scaleX,r=e.scaleY,i=e.bbox;return new tW((t.x+((null==i?void 0:i.left)||0))*n,(t.y+((null==i?void 0:i.top)||0))*r)},t.prototype.viewport2Canvas=function(t){var e=t.x,n=t.y,r=this.rootTarget.defaultView.getCamera(),i=this.context.config,o=i.width,a=i.height,s=r.getPerspectiveInverse(),l=r.getWorldTransform(),u=K.multiply(this.tmpMatrix,l,s),c=q.t8(this.tmpVec3,e/o*2-1,(1-n/a)*2-1,0);return q.fF(c,c,u),new tW(c[0],c[1])},t.prototype.canvas2Viewport=function(t){var e=this.rootTarget.defaultView.getCamera(),n=e.getPerspective(),r=e.getViewTransform(),i=K.multiply(this.tmpMatrix,n,r),o=q.t8(this.tmpVec3,t.x,t.y,0);q.fF(this.tmpVec3,this.tmpVec3,i);var a=this.context.config,s=a.width,l=a.height;return new tW((o[0]+1)/2*s,(1-(o[1]+1)/2)*l)},t.prototype.setPickHandler=function(t){this.pickHandler=t},t.prototype.addEventMapping=function(t,e){this.mappingTable[t]||(this.mappingTable[t]=[]),this.mappingTable[t].push({fn:e,priority:0}),this.mappingTable[t].sort(function(t,e){return t.priority-e.priority})},t.prototype.mapEvent=function(t){if(this.rootTarget){var e=this.mappingTable[t.type];if(e)for(var n=0,r=e.length;n=1;r--)if(t.currentTarget=n[r],this.notifyTarget(t,e),t.propagationStopped||t.propagationImmediatelyStopped)return;if(t.eventPhase=t.AT_TARGET,t.currentTarget=t.target,this.notifyTarget(t,e),!t.propagationStopped&&!t.propagationImmediatelyStopped){var i=n.indexOf(t.currentTarget);t.eventPhase=t.BUBBLING_PHASE;for(var r=i+1;ri||n>o?null:!a&&this.pickHandler(t)||this.rootTarget||null},t.prototype.isNativeEventFromCanvas=function(t,e){var n=null==e?void 0:e.target;if((null==n?void 0:n.shadowRoot)&&(n=e.composedPath()[0]),n){if(n===t)return!0;if(t&&t.contains)return t.contains(n)}return null!=e&&!!e.composedPath&&e.composedPath().indexOf(t)>-1},t.prototype.getExistedHTML=function(t){var e,n;if(t.nativeEvent.composedPath)try{for(var r=(0,W.XA)(t.nativeEvent.composedPath()),i=r.next();!i.done;i=r.next()){var o=i.value,a=this.nativeHTMLMap.get(o);if(a)return a}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return null},t.prototype.pickTarget=function(t){return this.hitTest({clientX:t.clientX,clientY:t.clientY,viewportX:t.viewportX,viewportY:t.viewportY,x:t.canvasX,y:t.canvasY})},t.prototype.createPointerEvent=function(t,e,n,r){var i=this.allocateEvent(ry);this.copyPointerData(t,i),this.copyMouseData(t,i),this.copyData(t,i),i.nativeEvent=t.nativeEvent,i.originalEvent=t;var o=this.getExistedHTML(i),a=this.context.contextService.getDomElement();return i.target=null!=n?n:o||this.isNativeEventFromCanvas(a,i.nativeEvent)&&this.pickTarget(i)||r,"string"==typeof e&&(i.type=e),i},t.prototype.createWheelEvent=function(t){var e=this.allocateEvent(rg);this.copyWheelData(t,e),this.copyMouseData(t,e),this.copyData(t,e),e.nativeEvent=t.nativeEvent,e.originalEvent=t;var n=this.getExistedHTML(e),r=this.context.contextService.getDomElement();return e.target=n||this.isNativeEventFromCanvas(r,e.nativeEvent)&&this.pickTarget(e),e},t.prototype.trackingData=function(t){return this.mappingState.trackingData[t]||(this.mappingState.trackingData[t]={pressTargetsByButton:{},clicksByButton:{},overTarget:null}),this.mappingState.trackingData[t]},t.prototype.cloneWheelEvent=function(t){var e=this.allocateEvent(rg);return e.nativeEvent=t.nativeEvent,e.originalEvent=t.originalEvent,this.copyWheelData(t,e),this.copyMouseData(t,e),this.copyData(t,e),e.target=t.target,e.path=t.composedPath().slice(),e.type=t.type,e},t.prototype.clonePointerEvent=function(t,e){var n=this.allocateEvent(ry);return n.nativeEvent=t.nativeEvent,n.originalEvent=t.originalEvent,this.copyPointerData(t,n),this.copyMouseData(t,n),this.copyData(t,n),n.target=t.target,n.path=t.composedPath().slice(),n.type=null!=e?e:n.type,n},t.prototype.copyPointerData=function(t,e){e.pointerId=t.pointerId,e.width=t.width,e.height=t.height,e.isPrimary=t.isPrimary,e.pointerType=t.pointerType,e.pressure=t.pressure,e.tangentialPressure=t.tangentialPressure,e.tiltX=t.tiltX,e.tiltY=t.tiltY,e.twist=t.twist},t.prototype.copyMouseData=function(t,e){e.altKey=t.altKey,e.button=t.button,e.buttons=t.buttons,e.ctrlKey=t.ctrlKey,e.metaKey=t.metaKey,e.shiftKey=t.shiftKey,e.client.copyFrom(t.client),e.movement.copyFrom(t.movement),e.canvas.copyFrom(t.canvas),e.screen.copyFrom(t.screen),e.global.copyFrom(t.global),e.offset.copyFrom(t.offset)},t.prototype.copyWheelData=function(t,e){e.deltaMode=t.deltaMode,e.deltaX=t.deltaX,e.deltaY=t.deltaY,e.deltaZ=t.deltaZ},t.prototype.copyData=function(t,e){e.isTrusted=t.isTrusted,e.timeStamp=nW.now(),e.type=t.type,e.detail=t.detail,e.view=t.view,e.page.copyFrom(t.page),e.viewport.copyFrom(t.viewport)},t.prototype.allocateEvent=function(t){this.eventPool.has(t)||this.eventPool.set(t,[]);var e=this.eventPool.get(t).pop()||new t(this);return e.eventPhase=e.NONE,e.currentTarget=null,e.path=[],e.target=null,e},t.prototype.freeEvent=function(t){if(t.manager!==this)throw Error("It is illegal to free an event not managed by this EventBoundary!");var e=t.constructor;this.eventPool.has(e)||this.eventPool.set(e,[]),this.eventPool.get(e).push(t)},t.prototype.notifyTarget=function(t,e){e=null!=e?e:t.type;var n=t.eventPhase===t.CAPTURING_PHASE||t.eventPhase===t.AT_TARGET?"".concat(e,"capture"):e;this.notifyListeners(t,n),t.eventPhase===t.AT_TARGET&&this.notifyListeners(t,e)},t.prototype.notifyListeners=function(t,e){var n=t.currentTarget.emitter,r=n._events[e];if(r){if("fn"in r)r.once&&n.removeListener(e,r.fn,void 0,!0),r.fn.call(t.currentTarget||r.context,t);else for(var i=0;i=0;n--){var r=t[n];if(r===this.rootTarget||rx.isNode(r)&&r.parentNode===e)e=t[n];else break}return e},t.prototype.getCursor=function(t){for(var e=t;e;){var n=!!e.getAttribute&&e.getAttribute("cursor");if(n)return n;e=rx.isNode(e)&&e.parentNode}},t}(),rT=function(){function t(){}return t.prototype.getOrCreateCanvas=function(t,e){if(this.canvas)return this.canvas;if(t||rD.offscreenCanvas)this.canvas=t||rD.offscreenCanvas,this.context=this.canvas.getContext("2d",(0,W.pi)({willReadFrequently:!0},e));else try{this.canvas=new window.OffscreenCanvas(0,0),this.context=this.canvas.getContext("2d",(0,W.pi)({willReadFrequently:!0},e)),this.context&&this.context.measureText||(this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"))}catch(t){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d",(0,W.pi)({willReadFrequently:!0},e))}return this.canvas.width=10,this.canvas.height=10,this.canvas},t.prototype.getOrCreateContext=function(t,e){return this.context||this.getOrCreateCanvas(t,e),this.context},t}();(E=z||(z={}))[E.CAMERA_CHANGED=0]="CAMERA_CHANGED",E[E.DISPLAY_OBJECT_CHANGED=1]="DISPLAY_OBJECT_CHANGED",E[E.NONE=2]="NONE";var rP=function(){function t(t,e){this.globalRuntime=t,this.context=e,this.inited=!1,this.stats={total:0,rendered:0},this.zIndexCounter=0,this.hooks={init:new n9,initAsync:new n5,dirtycheck:new n8,cull:new n8,beginFrame:new n9,beforeRender:new n9,render:new n9,afterRender:new n9,endFrame:new n9,destroy:new n9,pick:new n4,pickSync:new n8,pointerDown:new n9,pointerUp:new n9,pointerMove:new n9,pointerOut:new n9,pointerOver:new n9,pointerWheel:new n9,pointerCancel:new n9,click:new n9}}return t.prototype.init=function(t){var e=this,n=(0,W.pi)((0,W.pi)({},this.globalRuntime),this.context);this.context.renderingPlugins.forEach(function(t){t.apply(n,e.globalRuntime)}),this.hooks.init.call(),0===this.hooks.initAsync.getCallbacksNum()?(this.inited=!0,t()):this.hooks.initAsync.promise().then(function(){e.inited=!0,t()})},t.prototype.getStats=function(){return this.stats},t.prototype.disableDirtyRectangleRendering=function(){return!this.context.config.renderer.getConfig().enableDirtyRectangleRendering||this.context.renderingContext.renderReasons.has(z.CAMERA_CHANGED)},t.prototype.render=function(t,e,n){var r=this;this.stats.total=0,this.stats.rendered=0,this.zIndexCounter=0;var i=this.context.renderingContext;if(this.globalRuntime.sceneGraphService.syncHierarchy(i.root),this.globalRuntime.sceneGraphService.triggerPendingEvents(),i.renderReasons.size&&this.inited){i.dirtyRectangleRenderingDisabled=this.disableDirtyRectangleRendering();var o=1===i.renderReasons.size&&i.renderReasons.has(z.CAMERA_CHANGED),a=!t.disableRenderHooks||!(t.disableRenderHooks&&o);a&&this.renderDisplayObject(i.root,t,i),this.hooks.beginFrame.call(e),a&&i.renderListCurrentFrame.forEach(function(t){r.hooks.beforeRender.call(t),r.hooks.render.call(t),r.hooks.afterRender.call(t)}),this.hooks.endFrame.call(e),i.renderListCurrentFrame=[],i.renderReasons.clear(),n()}},t.prototype.renderDisplayObject=function(t,e,n){var r=this,i=e.renderer.getConfig(),o=i.enableDirtyCheck,a=i.enableCulling;this.globalRuntime.enableCSSParsing&&this.globalRuntime.styleValueRegistry.recalc(t);var s=t.renderable,l=o?s.dirty||n.dirtyRectangleRenderingDisabled?t:null:t;if(l){var u=a?this.hooks.cull.call(l,this.context.camera):l;u&&(this.stats.rendered++,n.renderListCurrentFrame.push(u))}t.renderable.dirty=!1,t.sortable.renderOrder=this.zIndexCounter++,this.stats.total++;var c=t.sortable;c.dirty&&(this.sort(t,c),c.dirty=!1,c.dirtyChildren=[],c.dirtyReason=void 0),(c.sorted||t.childNodes).forEach(function(t){r.renderDisplayObject(t,e,n)})},t.prototype.sort=function(t,e){e.sorted&&e.dirtyReason!==Z.Z_INDEX_CHANGED?e.dirtyChildren.forEach(function(n){if(-1===t.childNodes.indexOf(n)){var r=e.sorted.indexOf(n);r>=0&&e.sorted.splice(r,1)}else if(0===e.sorted.length)e.sorted.push(n);else{var i=function(t,e){for(var n=0,r=t.length;n>>1;0>nY(t[i],e)?n=i+1:r=i}return n}(e.sorted,n);e.sorted.splice(i,0,n)}}):e.sorted=t.childNodes.slice().sort(nY)},t.prototype.destroy=function(){this.inited=!1,this.hooks.destroy.call(),this.globalRuntime.sceneGraphService.clearPendingEvents()},t.prototype.dirtify=function(){this.context.renderingContext.renderReasons.add(z.DISPLAY_OBJECT_CHANGED)},t}(),rS=/\[\s*(.*)=(.*)\s*\]/,rN=function(){function t(){}return t.prototype.selectOne=function(t,e){var n=this;if(t.startsWith("."))return e.find(function(e){return((null==e?void 0:e.classList)||[]).indexOf(n.getIdOrClassname(t))>-1});if(t.startsWith("#"))return e.find(function(e){return e.id===n.getIdOrClassname(t)});if(!t.startsWith("["))return e.find(function(n){return e!==n&&n.nodeName===t});var r=this.getAttribute(t),i=r.name,o=r.value;return i?e.find(function(t){return e!==t&&("name"===i?t.name===o:n.attributeToString(t,i)===o)}):null},t.prototype.selectAll=function(t,e){var n=this;if(t.startsWith("."))return e.findAll(function(r){return e!==r&&((null==r?void 0:r.classList)||[]).indexOf(n.getIdOrClassname(t))>-1});if(t.startsWith("#"))return e.findAll(function(r){return e!==r&&r.id===n.getIdOrClassname(t)});if(!t.startsWith("["))return e.findAll(function(n){return e!==n&&n.nodeName===t});var r=this.getAttribute(t),i=r.name,o=r.value;return i?e.findAll(function(t){return e!==t&&("name"===i?t.name===o:n.attributeToString(t,i)===o)}):[]},t.prototype.is=function(t,e){if(t.startsWith("."))return e.className===this.getIdOrClassname(t);if(t.startsWith("#"))return e.id===this.getIdOrClassname(t);if(!t.startsWith("["))return e.nodeName===t;var n=this.getAttribute(t),r=n.name,i=n.value;return"name"===r?e.name===i:this.attributeToString(e,r)===i},t.prototype.getIdOrClassname=function(t){return t.substring(1)},t.prototype.getAttribute=function(t){var e=t.match(rS),n="",r="";return e&&e.length>2&&(n=e[1].replace(/"/g,""),r=e[2].replace(/"/g,"")),{name:n,value:r}},t.prototype.attributeToString=function(t,e){if(!t.getAttribute)return"";var n=t.getAttribute(e);return(0,tn.Z)(n)?"":n.toString?n.toString():""},t}(),rC=function(t){function e(e,n,r,i,o,a,s,l){var u=t.call(this,null)||this;return u.relatedNode=n,u.prevValue=r,u.newValue=i,u.attrName=o,u.attrChange=a,u.prevParsedValue=s,u.newParsedValue=l,u.type=e,u}return(0,W.ZT)(e,t),e.ADDITION=2,e.MODIFICATION=1,e.REMOVAL=3,e}(rf);function rw(t){var e=t.renderable;e&&(e.renderBoundsDirty=!0,e.boundsDirty=!0)}(x=X||(X={})).REPARENT="reparent",x.DESTROY="destroy",x.ATTR_MODIFIED="DOMAttrModified",x.INSERTED="DOMNodeInserted",x.REMOVED="removed",x.MOUNTED="DOMNodeInsertedIntoDocument",x.UNMOUNTED="DOMNodeRemovedFromDocument",x.BOUNDS_CHANGED="bounds-changed",x.CULLED="culled";var rk=new rC(X.REPARENT,null,"","","",0,"",""),rM=function(){function t(t){var e,n,r,i,o,a,s,l,u,c,h,p,d=this;this.runtime=t,this.pendingEvents=[],this.boundsChangedEvent=new rm(X.BOUNDS_CHANGED),this.rotate=(e=Q.Ue(),function(t,n,r,i,o){void 0===r&&(r=0),void 0===i&&(i=0),void 0===o&&(o=!0),"number"==typeof n&&(n=q.al(n,r,i));var a=t.transformable;if(null!==t.parentNode&&t.parentNode.transformable){var s=Q.Ue();Q.Su(s,n[0],n[1],n[2]);var l=d.getRotation(t),u=d.getRotation(t.parentNode);Q.JG(e,u),Q.U_(e,e),Q.Jp(s,e,s),Q.Jp(a.localRotation,s,l),Q.Fv(a.localRotation,a.localRotation),o&&d.dirtifyLocal(t,a)}else d.rotateLocal(t,n)}),this.rotateLocal=(n=Q.Ue(),function(t,e,r,i,o){void 0===r&&(r=0),void 0===i&&(i=0),void 0===o&&(o=!0),"number"==typeof e&&(e=q.al(e,r,i));var a=t.transformable;Q.Su(n,e[0],e[1],e[2]),Q.dC(a.localRotation,a.localRotation,n),o&&d.dirtifyLocal(t,a)}),this.setEulerAngles=(r=Q.Ue(),function(t,e,n,i,o){void 0===n&&(n=0),void 0===i&&(i=0),void 0===o&&(o=!0),"number"==typeof e&&(e=q.al(e,n,i));var a=t.transformable;if(null!==t.parentNode&&t.parentNode.transformable){Q.Su(a.localRotation,e[0],e[1],e[2]);var s=d.getRotation(t.parentNode);Q.JG(r,Q.U_(Q.Ue(),s)),Q.dC(a.localRotation,a.localRotation,r),o&&d.dirtifyLocal(t,a)}else d.setLocalEulerAngles(t,e)}),this.translateLocal=function(t,e,n,r,i){void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=!0),"number"==typeof e&&(e=q.al(e,n,r));var o=t.transformable;!q.fS(e,q.Ue())&&(q.VC(e,e,o.localRotation),q.IH(o.localPosition,o.localPosition,e),i&&d.dirtifyLocal(t,o))},this.setPosition=(i=K.create(),o=q.Ue(),function(t,e,n){void 0===n&&(n=!0);var r=t.transformable;if(o[0]=e[0],o[1]=e[1],o[2]=e[2]||0,!q.fS(d.getPosition(t),o)){if(q.JG(r.position,o),null!==t.parentNode&&t.parentNode.transformable){var a=t.parentNode.transformable;K.copy(i,a.worldTransform),K.invert(i,i),q.fF(r.localPosition,o,i)}else q.JG(r.localPosition,o);n&&d.dirtifyLocal(t,r)}}),this.setLocalPosition=(a=q.Ue(),function(t,e,n){void 0===n&&(n=!0);var r=t.transformable;a[0]=e[0],a[1]=e[1],a[2]=e[2]||0,!q.fS(r.localPosition,a)&&(q.JG(r.localPosition,a),n&&d.dirtifyLocal(t,r))}),this.translate=(s=q.Ue(),l=q.Ue(),u=q.Ue(),function(t,e,n,r,i){void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=!0),"number"==typeof e&&(e=q.t8(l,e,n,r)),q.fS(e,s)||(q.IH(u,d.getPosition(t),e),d.setPosition(t,u,i))}),this.setRotation=function(){var t=Q.Ue();return function(e,n,r,i,o,a){void 0===a&&(a=!0);var s=e.transformable;if("number"==typeof n&&(n=Q.al(n,r,i,o)),null!==e.parentNode&&e.parentNode.transformable){var l=d.getRotation(e.parentNode);Q.JG(t,l),Q.U_(t,t),Q.Jp(s.localRotation,t,n),Q.Fv(s.localRotation,s.localRotation),a&&d.dirtifyLocal(e,s)}else d.setLocalRotation(e,n)}},this.displayObjectDependencyMap=new WeakMap,this.calcLocalTransform=(c=K.create(),h=q.Ue(),p=Q.al(0,0,0,1),function(t){if(0!==t.localSkew[0]||0!==t.localSkew[1]){if(K.fromRotationTranslationScaleOrigin(t.localTransform,t.localRotation,t.localPosition,q.al(1,1,1),t.origin),0!==t.localSkew[0]||0!==t.localSkew[1]){var e=K.identity(c);e[4]=Math.tan(t.localSkew[0]),e[1]=Math.tan(t.localSkew[1]),K.multiply(t.localTransform,t.localTransform,e)}var n=K.fromRotationTranslationScaleOrigin(c,p,h,t.localScale,t.origin);K.multiply(t.localTransform,t.localTransform,n)}else K.fromRotationTranslationScaleOrigin(t.localTransform,t.localRotation,t.localPosition,t.localScale,t.origin)})}return t.prototype.matches=function(t,e){return this.runtime.sceneGraphSelector.is(t,e)},t.prototype.querySelector=function(t,e){return this.runtime.sceneGraphSelector.selectOne(t,e)},t.prototype.querySelectorAll=function(t,e){return this.runtime.sceneGraphSelector.selectAll(t,e)},t.prototype.attach=function(t,e,n){var r,i=!1;t.parentNode&&(i=t.parentNode!==e,this.detach(t)),t.parentNode=e,(0,tn.Z)(n)?t.parentNode.childNodes.push(t):t.parentNode.childNodes.splice(n,0,t);var o=e.sortable;((null===(r=null==o?void 0:o.sorted)||void 0===r?void 0:r.length)||t.parsedStyle.zIndex)&&(-1===o.dirtyChildren.indexOf(t)&&o.dirtyChildren.push(t),o.dirty=!0,o.dirtyReason=Z.ADDED);var a=t.transformable;a&&this.dirtifyWorld(t,a),a.frozen&&this.unfreezeParentToRoot(t),i&&t.dispatchEvent(rk)},t.prototype.detach=function(t){var e,n;if(t.parentNode){var r=t.transformable,i=t.parentNode.sortable;((null===(e=null==i?void 0:i.sorted)||void 0===e?void 0:e.length)||(null===(n=t.style)||void 0===n?void 0:n.zIndex))&&(-1===i.dirtyChildren.indexOf(t)&&i.dirtyChildren.push(t),i.dirty=!0,i.dirtyReason=Z.REMOVED);var o=t.parentNode.childNodes.indexOf(t);o>-1&&t.parentNode.childNodes.splice(o,1),r&&this.dirtifyWorld(t,r),t.parentNode=null}},t.prototype.getOrigin=function(t){return t.getGeometryBounds(),t.transformable.origin},t.prototype.setOrigin=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0),"number"==typeof e&&(e=[e,n,r]);var i=t.transformable;if(e[0]!==i.origin[0]||e[1]!==i.origin[1]||e[2]!==i.origin[2]){var o=i.origin;o[0]=e[0],o[1]=e[1],o[2]=e[2]||0,this.dirtifyLocal(t,i)}},t.prototype.setLocalEulerAngles=function(t,e,n,r,i){void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=!0),"number"==typeof e&&(e=q.al(e,n,r));var o=t.transformable;Q.Su(o.localRotation,e[0],e[1],e[2]),i&&this.dirtifyLocal(t,o)},t.prototype.scaleLocal=function(t,e,n){void 0===n&&(n=!0);var r=t.transformable;q.Jp(r.localScale,r.localScale,q.al(e[0],e[1],e[2]||1)),n&&this.dirtifyLocal(t,r)},t.prototype.setLocalScale=function(t,e,n){void 0===n&&(n=!0);var r=t.transformable,i=q.al(e[0],e[1],e[2]||r.localScale[2]);!q.fS(i,r.localScale)&&(q.JG(r.localScale,i),n&&this.dirtifyLocal(t,r))},t.prototype.setLocalRotation=function(t,e,n,r,i,o){void 0===o&&(o=!0),"number"==typeof e&&(e=Q.al(e,n,r,i));var a=t.transformable;Q.JG(a.localRotation,e),o&&this.dirtifyLocal(t,a)},t.prototype.setLocalSkew=function(t,e,n){"number"==typeof e&&(e=tt.al(e,n));var r=t.transformable;tt.JG(r.localSkew,e),this.dirtifyLocal(t,r)},t.prototype.dirtifyLocal=function(t,e){e.localDirtyFlag||(e.localDirtyFlag=!0,e.dirtyFlag||this.dirtifyWorld(t,e))},t.prototype.dirtifyWorld=function(t,e){e.dirtyFlag||this.unfreezeParentToRoot(t),this.dirtifyWorldInternal(t,e),this.dirtifyToRoot(t,!0)},t.prototype.triggerPendingEvents=function(){var t=this,e=new Set,n=function(n,r){n.isConnected&&!e.has(n.entity)&&(t.boundsChangedEvent.detail=r,t.boundsChangedEvent.target=n,n.isMutationObserved?n.dispatchEvent(t.boundsChangedEvent):n.ownerDocument.defaultView.dispatchEvent(t.boundsChangedEvent,!0),e.add(n.entity))};this.pendingEvents.forEach(function(t){var e=(0,W.CR)(t,2),r=e[0],i=e[1];i.affectChildren?r.forEach(function(t){n(t,i)}):n(r,i)}),this.clearPendingEvents(),e.clear()},t.prototype.clearPendingEvents=function(){this.pendingEvents=[]},t.prototype.dirtifyToRoot=function(t,e){void 0===e&&(e=!1);var n=t;for(n.renderable&&(n.renderable.dirty=!0);n;)rw(n),n=n.parentNode;e&&t.forEach(function(t){rw(t)}),this.informDependentDisplayObjects(t),this.pendingEvents.push([t,{affectChildren:e}])},t.prototype.updateDisplayObjectDependency=function(t,e,n,r){if(e&&e!==n){var i=this.displayObjectDependencyMap.get(e);if(i&&i[t]){var o=i[t].indexOf(r);i[t].splice(o,1)}}if(n){var a=this.displayObjectDependencyMap.get(n);a||(this.displayObjectDependencyMap.set(n,{}),a=this.displayObjectDependencyMap.get(n)),a[t]||(a[t]=[]),a[t].push(r)}},t.prototype.informDependentDisplayObjects=function(t){var e=this,n=this.displayObjectDependencyMap.get(t);n&&Object.keys(n).forEach(function(t){n[t].forEach(function(n){e.dirtifyToRoot(n,!0),n.dispatchEvent(new rC(X.ATTR_MODIFIED,n,e,e,t,rC.MODIFICATION,e,e)),n.isCustomElement&&n.isConnected&&n.attributeChangedCallback&&n.attributeChangedCallback(t,e,e)})})},t.prototype.getPosition=function(t){var e=t.transformable;return K.getTranslation(e.position,this.getWorldTransform(t,e))},t.prototype.getRotation=function(t){var e=t.transformable;return K.getRotation(e.rotation,this.getWorldTransform(t,e))},t.prototype.getScale=function(t){var e=t.transformable;return K.getScaling(e.scaling,this.getWorldTransform(t,e))},t.prototype.getWorldTransform=function(t,e){return void 0===e&&(e=t.transformable),(e.localDirtyFlag||e.dirtyFlag)&&(t.parentNode&&t.parentNode.transformable&&this.getWorldTransform(t.parentNode),this.sync(t,e)),e.worldTransform},t.prototype.getLocalPosition=function(t){return t.transformable.localPosition},t.prototype.getLocalRotation=function(t){return t.transformable.localRotation},t.prototype.getLocalScale=function(t){return t.transformable.localScale},t.prototype.getLocalSkew=function(t){return t.transformable.localSkew},t.prototype.getLocalTransform=function(t){var e=t.transformable;return e.localDirtyFlag&&(this.calcLocalTransform(e),e.localDirtyFlag=!1),e.localTransform},t.prototype.setLocalTransform=function(t,e){var n=K.getTranslation(q.Ue(),e),r=K.getRotation(Q.Ue(),e),i=K.getScaling(q.Ue(),e);this.setLocalScale(t,i,!1),this.setLocalPosition(t,n,!1),this.setLocalRotation(t,r,void 0,void 0,void 0,!1),this.dirtifyLocal(t,t.transformable)},t.prototype.resetLocalTransform=function(t){this.setLocalScale(t,[1,1,1]),this.setLocalPosition(t,[0,0,0]),this.setLocalEulerAngles(t,[0,0,0]),this.setLocalSkew(t,[0,0])},t.prototype.getTransformedGeometryBounds=function(t,e,n){void 0===e&&(e=!1);var r=this.getGeometryBounds(t,e);if(tz.isEmpty(r))return null;var i=n||new tz;return i.setFromTransformedAABB(r,this.getWorldTransform(t)),i},t.prototype.getGeometryBounds=function(t,e){void 0===e&&(e=!1);var n=t.geometry;return n.dirty&&rD.styleValueRegistry.updateGeometry(t),(e?n.renderBounds:n.contentBounds||null)||new tz},t.prototype.getBounds=function(t,e){var n=this;void 0===e&&(e=!1);var r=t.renderable;if(!r.boundsDirty&&!e&&r.bounds)return r.bounds;if(!r.renderBoundsDirty&&e&&r.renderBounds)return r.renderBounds;var i=e?r.renderBounds:r.bounds,o=this.getTransformedGeometryBounds(t,e,i);if(t.childNodes.forEach(function(t){var r=n.getBounds(t,e);r&&(o?o.add(r):(o=i||new tz).update(r.center,r.halfExtents))}),o||(o=new tz),e){var a=function(t){var e,n=t;do{if(null===(e=n.parsedStyle)||void 0===e?void 0:e.clipPath)return n;n=n.parentElement}while(null!==n);return null}(t);if(a){var s=a.parsedStyle.clipPath.getBounds(e);o?s&&(o=s.intersection(o)):o.update(s.center,s.halfExtents)}}return e?(r.renderBounds=o,r.renderBoundsDirty=!1):(r.bounds=o,r.boundsDirty=!1),o},t.prototype.getLocalBounds=function(t){if(t.parentNode){var e=K.create();t.parentNode.transformable&&(e=K.invert(K.create(),this.getWorldTransform(t.parentNode)));var n=this.getBounds(t);if(!tz.isEmpty(n)){var r=new tz;return r.setFromTransformedAABB(n,e),r}}return this.getBounds(t)},t.prototype.getBoundingClientRect=function(t){var e,n,r,i=this.getGeometryBounds(t);tz.isEmpty(i)||(r=new tz).setFromTransformedAABB(i,this.getWorldTransform(t));var o=null===(n=null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView)||void 0===n?void 0:n.getContextService().getBoundingClientRect();if(r){var a=(0,W.CR)(r.getMin(),2),s=a[0],l=a[1],u=(0,W.CR)(r.getMax(),2),c=u[0],h=u[1];return new tH(s+((null==o?void 0:o.left)||0),l+((null==o?void 0:o.top)||0),c-s,h-l)}return new tH((null==o?void 0:o.left)||0,(null==o?void 0:o.top)||0,0,0)},t.prototype.dirtifyWorldInternal=function(t,e){var n=this;if(!e.dirtyFlag){e.dirtyFlag=!0,e.frozen=!1,t.childNodes.forEach(function(t){var e=t.transformable;e.dirtyFlag||n.dirtifyWorldInternal(t,e)});var r=t.renderable;r&&(r.renderBoundsDirty=!0,r.boundsDirty=!0,r.dirty=!0)}},t.prototype.syncHierarchy=function(t){var e=t.transformable;if(!e.frozen){e.frozen=!0,(e.localDirtyFlag||e.dirtyFlag)&&this.sync(t,e);for(var n=t.childNodes,r=0;rs;--p){for(var v=0;v=0;h--){var p=c[h].trim();!n7.test(p)&&0>n6.indexOf(p)&&(p='"'.concat(p,'"')),c[h]=p}return"".concat(void 0===i?"normal":i," ").concat(a," ").concat(l," ").concat(u," ").concat(c.join(","))}(e),E=this.measureFont(m,n);0===E.fontSize&&(E.fontSize=i,E.ascent=i);var x=this.runtime.offscreenCanvasCreator.getOrCreateContext(n);x.font=m,e.isOverflowing=!1;var b=(void 0!==o&&o?this.wordWrap(t,e,n):t).split(/(?:\r\n|\r|\n)/),T=Array(b.length),P=0;if(v){v.getTotalLength();for(var S=0;S=l){e.isOverflowing=!0;break}v=0,d[f]="";continue}if(v>0&&v+S>h){if(f+1>=l){if(e.isOverflowing=!0,m>0&&m<=h){for(var N=d[f].length,C=0,w=N,k=0;kh){w=k;break}C+=M}d[f]=(d[f]||"").slice(0,w)+p}break}if(v=0,d[++f]="",this.isBreakingSpace(b))continue;this.canBreakInLastChar(b)||(d=this.trimToBreakable(d),v=this.sumTextWidthByCache(d[f]||"",y)),this.shouldBreakByKinsokuShorui(b,P)&&(d=this.trimByKinsokuShorui(d),v+=g(T||""))}v+=S,d[f]=(d[f]||"")+b}return d.join("\n")},t.prototype.isBreakingSpace=function(t){return"string"==typeof t&&rR.BreakingSpaces.indexOf(t.charCodeAt(0))>=0},t.prototype.isNewline=function(t){return"string"==typeof t&&rR.Newlines.indexOf(t.charCodeAt(0))>=0},t.prototype.trimToBreakable=function(t){var e=(0,W.ev)([],(0,W.CR)(t),!1),n=e[e.length-2],r=this.findBreakableIndex(n);if(-1===r||!n)return e;var i=n.slice(r,r+1),o=this.isBreakingSpace(i),a=r+1,s=r+(o?0:1);return e[e.length-1]+=n.slice(a,n.length),e[e.length-2]=n.slice(0,s),e},t.prototype.canBreakInLastChar=function(t){return!(t&&rA.test(t))},t.prototype.sumTextWidthByCache=function(t,e){return t.split("").reduce(function(t,n){if(!e[n])throw Error("cannot count the word without cache");return t+e[n]},0)},t.prototype.findBreakableIndex=function(t){for(var e=t.length-1;e>=0;e--)if(!rA.test(t[e]))return e;return -1},t.prototype.getFromCache=function(t,e,n,r){var i=n[t];if("number"!=typeof i){var o=t.length*e;i=r.measureText(t).width+o,n[t]=i}return i},t}(),rD={},rG=(T=new rh,P=new rc,(b={})[k.CIRCLE]=new ra,b[k.ELLIPSE]=new rs,b[k.RECT]=T,b[k.IMAGE]=T,b[k.GROUP]=new rd,b[k.LINE]=new rl,b[k.TEXT]=new rp(rD),b[k.POLYLINE]=P,b[k.POLYGON]=P,b[k.PATH]=new ru,b[k.HTML]=null,b[k.MESH]=null,b),rB=(N=new nC,C=new nM,(S={})[Y.PERCENTAGE]=null,S[Y.NUMBER]=new nI,S[Y.ANGLE]=new nS,S[Y.DEFINED_PATH]=new nN,S[Y.PAINT]=N,S[Y.COLOR]=N,S[Y.FILTER]=new nw,S[Y.LENGTH]=C,S[Y.LENGTH_PERCENTAGE]=C,S[Y.LENGTH_PERCENTAGE_12]=new nR,S[Y.LENGTH_PERCENTAGE_14]=new nA,S[Y.COORDINATE]=new nM,S[Y.OFFSET_DISTANCE]=new nL,S[Y.OPACITY_VALUE]=new nD,S[Y.PATH]=new nG,S[Y.LIST_OF_POINTS]=new function(){this.parser=e7,this.mixer=nt},S[Y.SHADOW_BLUR]=new nB,S[Y.TEXT]=new nF,S[Y.TEXT_TRANSFORM]=new n_,S[Y.TRANSFORM]=new rr,S[Y.TRANSFORM_ORIGIN]=new ri,S[Y.Z_INDEX]=new ro,S[Y.MARKER]=new nO,S);rD.CameraContribution=t$,rD.AnimationTimeline=null,rD.EasingFunction=null,rD.offscreenCanvasCreator=new rT,rD.sceneGraphSelector=new rN,rD.sceneGraphService=new rM(rD),rD.textService=new rL(rD),rD.geometryUpdaterFactory=rG,rD.CSSPropertySyntaxFactory=rB,rD.styleValueRegistry=new nP(rD),rD.layoutRegistry=null,rD.globalThis="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},rD.enableCSSParsing=!1,rD.enableDataset=!1,rD.enableStyleSyntax=!0,rD.enableAttributeDashCased=!1,rD.enableSizeAttenuation=!1;var rF=0,r_=new rC(X.INSERTED,null,"","","",0,"",""),rU=new rC(X.REMOVED,null,"","","",0,"",""),rV=new rm(X.DESTROY),rZ=function(t){function e(){var e=t.call(this)||this;return e.entity=rF++,e.renderable={bounds:void 0,boundsDirty:!0,renderBounds:void 0,renderBoundsDirty:!0,dirtyRenderBounds:void 0,dirty:!1},e.cullable={strategy:V.Standard,visibilityPlaneMask:-1,visible:!0,enable:!0},e.transformable={dirtyFlag:!1,localDirtyFlag:!1,frozen:!1,localPosition:[0,0,0],localRotation:[0,0,0,1],localScale:[1,1,1],localTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],localSkew:[0,0],position:[0,0,0],rotation:[0,0,0,1],scaling:[1,1,1],worldTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],origin:[0,0,0]},e.sortable={dirty:!1,sorted:void 0,renderOrder:0,dirtyChildren:[],dirtyReason:void 0},e.geometry={contentBounds:void 0,renderBounds:void 0,dirty:!0},e.rBushNode={aabb:void 0},e.namespaceURI="g",e.scrollLeft=0,e.scrollTop=0,e.clientTop=0,e.clientLeft=0,e.destroyed=!1,e.style={},e.computedStyle=rD.enableCSSParsing?{opacity:ec,fillOpacity:ec,strokeOpacity:ec,fill:ec,stroke:ec,transform:ec,transformOrigin:ec,visibility:ec,pointerEvents:ec,lineWidth:ec,lineCap:ec,lineJoin:ec,increasedLineWidthForHitTesting:ec,fontSize:ec,fontFamily:ec,fontStyle:ec,fontWeight:ec,fontVariant:ec,textAlign:ec,textBaseline:ec,textTransform:ec,zIndex:ec,filter:ec,shadowType:ec}:null,e.parsedStyle={},e.attributes={},e}return(0,W.ZT)(e,t),Object.defineProperty(e.prototype,"className",{get:function(){return this.getAttribute("class")||""},set:function(t){this.setAttribute("class",t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classList",{get:function(){return this.className.split(" ").filter(function(t){return""!==t})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.nodeName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.firstChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){return this.lastChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return this.parentNode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){if(this.parentNode){var t=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[t+1]||null}return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){if(this.parentNode){var t=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[t-1]||null}return null},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){throw Error(tq)},e.prototype.appendChild=function(t,e){var n;if(t.destroyed)throw Error("Cannot append a destroyed element.");return rD.sceneGraphService.attach(t,this,e),(null===(n=this.ownerDocument)||void 0===n?void 0:n.defaultView)&&this.ownerDocument.defaultView.mountChildren(t),this.isMutationObserved&&(r_.relatedNode=this,t.dispatchEvent(r_)),t},e.prototype.insertBefore=function(t,e){if(e){t.parentElement&&t.parentElement.removeChild(t);var n=this.childNodes.indexOf(e);-1===n?this.appendChild(t):this.appendChild(t,n)}else this.appendChild(t);return t},e.prototype.replaceChild=function(t,e){var n=this.childNodes.indexOf(e);return this.removeChild(e),this.appendChild(t,n),e},e.prototype.removeChild=function(t){var e;return rU.relatedNode=this,t.dispatchEvent(rU),(null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView)&&t.ownerDocument.defaultView.unmountChildren(t),rD.sceneGraphService.detach(t),t},e.prototype.removeChildren=function(){for(var t=this.childNodes.length-1;t>=0;t--){var e=this.childNodes[t];this.removeChild(e)}},e.prototype.destroyChildren=function(){for(var t=this.childNodes.length-1;t>=0;t--){var e=this.childNodes[t];e.childNodes.length&&e.destroyChildren(),e.destroy()}},e.prototype.matches=function(t){return rD.sceneGraphService.matches(t,this)},e.prototype.getElementById=function(t){return rD.sceneGraphService.querySelector("#".concat(t),this)},e.prototype.getElementsByName=function(t){return rD.sceneGraphService.querySelectorAll('[name="'.concat(t,'"]'),this)},e.prototype.getElementsByClassName=function(t){return rD.sceneGraphService.querySelectorAll(".".concat(t),this)},e.prototype.getElementsByTagName=function(t){return rD.sceneGraphService.querySelectorAll(t,this)},e.prototype.querySelector=function(t){return rD.sceneGraphService.querySelector(t,this)},e.prototype.querySelectorAll=function(t){return rD.sceneGraphService.querySelectorAll(t,this)},e.prototype.closest=function(t){var e=this;do{if(rD.sceneGraphService.matches(t,e))return e;e=e.parentElement}while(null!==e);return null},e.prototype.find=function(t){var e=this,n=null;return this.forEach(function(r){return!!(r!==e&&t(r))&&(n=r,!0)}),n},e.prototype.findAll=function(t){var e=this,n=[];return this.forEach(function(r){r!==e&&t(r)&&n.push(r)}),n},e.prototype.after=function(){for(var t=this,e=[],n=0;n1){var n=t[0].currentPoint,r=t[1].currentPoint,i=t[1].startTangent;e=[],i?(e.push([n[0]-i[0],n[1]-i[1]]),e.push([n[0],n[1]])):(e.push([r[0],r[1]]),e.push([n[0],n[1]]))}return e},e.prototype.getEndTangent=function(){var t=this.parsedStyle.d.segments,e=t.length,n=[];if(e>1){var r=t[e-2].currentPoint,i=t[e-1].currentPoint,o=t[e-1].endTangent;n=[],o?(n.push([i[0]-o[0],i[1]-o[1]]),n.push([i[0],i[1]])):(n.push([r[0],r[1]]),n.push([i[0],i[1]]))}return n},e}(rK),r5=function(t){function e(e){void 0===e&&(e={});var n=this,r=e.style,i=(0,W._T)(e,["style"]);(n=t.call(this,(0,W.pi)({type:k.POLYGON,style:rD.enableCSSParsing?(0,W.pi)({points:"",miterLimit:"",isClosed:!0},r):(0,W.pi)({},r),initialParsedStyle:rD.enableCSSParsing?null:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!0}},i))||this).markerStartAngle=0,n.markerEndAngle=0,n.markerMidList=[];var o=n.parsedStyle,a=o.markerStart,s=o.markerEnd,l=o.markerMid;return a&&rY(a)&&(n.markerStartAngle=a.getLocalEulerAngles(),n.appendChild(a)),l&&rY(l)&&n.placeMarkerMid(l),s&&rY(s)&&(n.markerEndAngle=s.getLocalEulerAngles(),n.appendChild(s)),n.transformMarker(!0),n.transformMarker(!1),n}return(0,W.ZT)(e,t),e.prototype.attributeChangedCallback=function(t,e,n,r,i){"points"===t?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):"markerStartOffset"===t||"markerEndOffset"===t?(this.transformMarker(!0),this.transformMarker(!1)):"markerStart"===t?(r&&rY(r)&&(this.markerStartAngle=0,r.remove()),i&&rY(i)&&(this.markerStartAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!0))):"markerEnd"===t?(r&&rY(r)&&(this.markerEndAngle=0,r.remove()),i&&rY(i)&&(this.markerEndAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!1))):"markerMid"===t&&this.placeMarkerMid(i)},e.prototype.transformMarker=function(t){var e,n,r,i,o,a,s=this.parsedStyle,l=s.markerStart,u=s.markerEnd,c=s.markerStartOffset,h=s.markerEndOffset,p=(s.points||{}).points,d=t?l:u;if(d&&rY(d)&&p){var f=0;if(r=p[0][0],i=p[0][1],t)e=p[1][0]-p[0][0],n=p[1][1]-p[0][1],o=c||0,a=this.markerStartAngle;else{var v=p.length;this.parsedStyle.isClosed?(e=p[v-1][0]-p[0][0],n=p[v-1][1]-p[0][1]):(r=p[v-1][0],i=p[v-1][1],e=p[v-2][0]-p[v-1][0],n=p[v-2][1]-p[v-1][1]),o=h||0,a=this.markerEndAngle}f=Math.atan2(n,e),d.setLocalEulerAngles(180*f/Math.PI+a),d.setLocalPosition(r+Math.cos(f)*o,i+Math.sin(f)*o)}},e.prototype.placeMarkerMid=function(t){var e=(this.parsedStyle.points||{}).points;if(this.markerMidList.forEach(function(t){t.remove()}),this.markerMidList=[],t&&rY(t)&&e)for(var n=1;n<(this.parsedStyle.isClosed?e.length:e.length-1);n++){var r=e[n][0],i=e[n][1],o=1===n?t:t.cloneNode(!0);this.markerMidList.push(o),this.appendChild(o),o.setLocalPosition(r,i)}},e}(rK),r4=function(t){function e(e){void 0===e&&(e={});var n=e.style,r=(0,W._T)(e,["style"]);return t.call(this,(0,W.pi)({type:k.POLYLINE,style:rD.enableCSSParsing?(0,W.pi)({points:"",miterLimit:"",isClosed:!1},n):(0,W.pi)({},n),initialParsedStyle:rD.enableCSSParsing?null:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!1}},r))||this}return(0,W.ZT)(e,t),e.prototype.getTotalLength=function(){return 0===this.parsedStyle.points.totalLength&&(this.parsedStyle.points.totalLength=(0,tP.hE)(this.parsedStyle.points.points)),this.parsedStyle.points.totalLength},e.prototype.getPointAtLength=function(t,e){return void 0===e&&(e=!1),this.getPoint(t/this.getTotalLength(),e)},e.prototype.getPoint=function(t,e){void 0===e&&(e=!1);var n=this.parsedStyle.points.points;if(0===this.parsedStyle.points.segments.length){var r,i=[],o=0,a=this.getTotalLength();n.forEach(function(t,e){n[e+1]&&((r=[0,0])[0]=o/a,o+=(0,tP.Xk)(t[0],t[1],n[e+1][0],n[e+1][1]),r[1]=o/a,i.push(r))}),this.parsedStyle.points.segments=i}var s=0,l=0;this.parsedStyle.points.segments.forEach(function(e,n){t>=e[0]&&t<=e[1]&&(s=(t-e[0])/(e[1]-e[0]),l=n)});var u=(0,tP.U4)(n[l][0],n[l][1],n[l+1][0],n[l+1][1],s),c=u.x,h=u.y,p=q.fF(q.Ue(),q.al(c,h,0),e?this.getWorldTransform():this.getLocalTransform());return new tW(p[0],p[1])},e.prototype.getStartTangent=function(){var t=this.parsedStyle.points.points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.parsedStyle.points.points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(r5),r9=function(t){function e(e){return void 0===e&&(e={}),t.call(this,(0,W.pi)({type:k.RECT},e))||this}return(0,W.ZT)(e,t),e}(rK),r8=function(t){function e(e){void 0===e&&(e={});var n=e.style,r=(0,W._T)(e,["style"]);return t.call(this,(0,W.pi)({type:k.TEXT,style:rD.enableCSSParsing?(0,W.pi)({x:"",y:"",text:"",fontSize:"",fontFamily:"",fontStyle:"",fontWeight:"",fontVariant:"",textAlign:"",textBaseline:"",textTransform:"",fill:"black",letterSpacing:"",lineHeight:"",miterLimit:"",wordWrap:!1,wordWrapWidth:0,leading:0,dx:"",dy:""},n):(0,W.pi)({fill:"black"},n)},r))||this}return(0,W.ZT)(e,t),e.prototype.getComputedTextLength=function(){var t;return this.getGeometryBounds(),(null===(t=this.parsedStyle.metrics)||void 0===t?void 0:t.maxLineWidth)||0},e.prototype.getLineBoundingRects=function(){var t;return this.getGeometryBounds(),(null===(t=this.parsedStyle.metrics)||void 0===t?void 0:t.lineMetrics)||[]},e.prototype.isOverflowing=function(){return this.getGeometryBounds(),!!this.parsedStyle.isOverflowing},e}(rK),r6=function(){function t(){this.registry={},this.define(k.CIRCLE,rJ),this.define(k.ELLIPSE,r$),this.define(k.RECT,r9),this.define(k.IMAGE,r1),this.define(k.LINE,r2),this.define(k.GROUP,rQ),this.define(k.PATH,r3),this.define(k.POLYGON,r5),this.define(k.POLYLINE,r4),this.define(k.TEXT,r8),this.define(k.HTML,r0)}return t.prototype.define=function(t,e){this.registry[t]=e},t.prototype.get=function(t){return this.registry[t]},t}(),r7=function(t){function e(){var e=t.call(this)||this;e.defaultView=null,e.ownerDocument=null,e.nodeName="document";try{e.timeline=new rD.AnimationTimeline(e)}catch(t){}var n={};return nm.forEach(function(t){var e=t.n,r=t.inh,i=t.d;r&&i&&(n[e]=ee(i)?i(k.GROUP):i)}),e.documentElement=new rQ({id:"g-root",style:n}),e.documentElement.ownerDocument=e,e.documentElement.parentNode=e,e.childNodes=[e.documentElement],e}return(0,W.ZT)(e,t),Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.firstChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){return this.lastChild},enumerable:!1,configurable:!0}),e.prototype.createElement=function(t,e){if("svg"===t)return this.documentElement;var n=this.defaultView.customElements.get(t);n||(console.warn("Unsupported tagName: ",t),n="tspan"===t?r8:rQ);var r=new n(e);return r.ownerDocument=this,r},e.prototype.createElementNS=function(t,e,n){return this.createElement(e,n)},e.prototype.cloneNode=function(t){throw Error(tq)},e.prototype.destroy=function(){try{this.documentElement.destroyChildren(),this.timeline.destroy()}catch(t){}},e.prototype.elementsFromBBox=function(t,e,n,r){var i=this.defaultView.context.rBushRoot.search({minX:t,minY:e,maxX:n,maxY:r}),o=[];return i.forEach(function(t){var e=t.displayObject,n=e.parsedStyle.pointerEvents,r=["auto","visiblepainted","visiblefill","visiblestroke","visible"].includes(void 0===n?"auto":n);(!r||r&&e.isVisible())&&!e.isCulled()&&e.isInteractive()&&o.push(e)}),o.sort(function(t,e){return e.sortable.renderOrder-t.sortable.renderOrder}),o},e.prototype.elementFromPointSync=function(t,e){var n=this.defaultView.canvas2Viewport({x:t,y:e}),r=n.x,i=n.y,o=this.defaultView.getConfig(),a=o.width,s=o.height;if(r<0||i<0||r>a||i>s)return null;var l=this.defaultView.viewport2Client({x:r,y:i}),u=l.x,c=l.y,h=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!0,position:{x:t,y:e,viewportX:r,viewportY:i,clientX:u,clientY:c},picked:[]}).picked;return h&&h[0]||this.documentElement},e.prototype.elementFromPoint=function(t,e){return(0,W.mG)(this,void 0,void 0,function(){var n,r,i,o,a,s,l,u,c,h;return(0,W.Jh)(this,function(p){switch(p.label){case 0:if(r=(n=this.defaultView.canvas2Viewport({x:t,y:e})).x,i=n.y,a=(o=this.defaultView.getConfig()).width,s=o.height,r<0||i<0||r>a||i>s)return[2,null];return u=(l=this.defaultView.viewport2Client({x:r,y:i})).x,c=l.y,[4,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!0,position:{x:t,y:e,viewportX:r,viewportY:i,clientX:u,clientY:c},picked:[]})];case 1:return[2,(h=p.sent().picked)&&h[0]||this.documentElement]}})})},e.prototype.elementsFromPointSync=function(t,e){var n=this.defaultView.canvas2Viewport({x:t,y:e}),r=n.x,i=n.y,o=this.defaultView.getConfig(),a=o.width,s=o.height;if(r<0||i<0||r>a||i>s)return[];var l=this.defaultView.viewport2Client({x:r,y:i}),u=l.x,c=l.y,h=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!1,position:{x:t,y:e,viewportX:r,viewportY:i,clientX:u,clientY:c},picked:[]}).picked;return h[h.length-1]!==this.documentElement&&h.push(this.documentElement),h},e.prototype.elementsFromPoint=function(t,e){return(0,W.mG)(this,void 0,void 0,function(){var n,r,i,o,a,s,l,u,c,h;return(0,W.Jh)(this,function(p){switch(p.label){case 0:if(r=(n=this.defaultView.canvas2Viewport({x:t,y:e})).x,i=n.y,a=(o=this.defaultView.getConfig()).width,s=o.height,r<0||i<0||r>a||i>s)return[2,[]];return u=(l=this.defaultView.viewport2Client({x:r,y:i})).x,c=l.y,[4,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!1,position:{x:t,y:e,viewportX:r,viewportY:i,clientX:u,clientY:c},picked:[]})];case 1:return(h=p.sent().picked)[h.length-1]!==this.documentElement&&h.push(this.documentElement),[2,h]}})})},e.prototype.appendChild=function(t,e){throw Error(tK)},e.prototype.insertBefore=function(t,e){throw Error(tK)},e.prototype.removeChild=function(t,e){throw Error(tK)},e.prototype.replaceChild=function(t,e,n){throw Error(tK)},e.prototype.append=function(){throw Error(tK)},e.prototype.prepend=function(){throw Error(tK)},e.prototype.getElementById=function(t){return this.documentElement.getElementById(t)},e.prototype.getElementsByName=function(t){return this.documentElement.getElementsByName(t)},e.prototype.getElementsByTagName=function(t){return this.documentElement.getElementsByTagName(t)},e.prototype.getElementsByClassName=function(t){return this.documentElement.getElementsByClassName(t)},e.prototype.querySelector=function(t){return this.documentElement.querySelector(t)},e.prototype.querySelectorAll=function(t){return this.documentElement.querySelectorAll(t)},e.prototype.find=function(t){return this.documentElement.find(t)},e.prototype.findAll=function(t){return this.documentElement.findAll(t)},e}(rx),it=function(){function t(t){this.strategies=t}return t.prototype.apply=function(e){var n=e.camera,r=e.renderingService,i=e.renderingContext,o=this.strategies;r.hooks.cull.tap(t.tag,function(t){if(t){var e=t.cullable;return(0===o.length?e.visible=i.unculledEntities.indexOf(t.entity)>-1:e.visible=o.every(function(e){return e.isVisible(n,t)}),!t.isCulled()&&t.isVisible())?t:(t.dispatchEvent(new rm(X.CULLED)),null)}return t}),r.hooks.afterRender.tap(t.tag,function(t){t.cullable.visibilityPlaneMask=-1})},t.tag="Culling",t}(),ie=function(){function t(){var t=this;this.autoPreventDefault=!1,this.rootPointerEvent=new ry(null),this.rootWheelEvent=new rg(null),this.onPointerMove=function(e){var n,r,i,o,a=null===(o=null===(i=t.context.renderingContext.root)||void 0===i?void 0:i.ownerDocument)||void 0===o?void 0:o.defaultView;if(!a.supportsTouchEvents||"touch"!==e.pointerType){var s=t.normalizeToPointerEvent(e,a);try{for(var l=(0,W.XA)(s),u=l.next();!u.done;u=l.next()){var c=u.value,h=t.bootstrapEvent(t.rootPointerEvent,c,a,e);t.context.eventService.mapEvent(h)}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}t.setCursor(t.context.eventService.cursor)}},this.onClick=function(e){var n,r,i,o,a=null===(o=null===(i=t.context.renderingContext.root)||void 0===i?void 0:i.ownerDocument)||void 0===o?void 0:o.defaultView,s=t.normalizeToPointerEvent(e,a);try{for(var l=(0,W.XA)(s),u=l.next();!u.done;u=l.next()){var c=u.value,h=t.bootstrapEvent(t.rootPointerEvent,c,a,e);t.context.eventService.mapEvent(h)}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}t.setCursor(t.context.eventService.cursor)}}return t.prototype.apply=function(e){var n=this;this.context=e;var r=e.renderingService,i=this.context.renderingContext.root.ownerDocument.defaultView;this.context.eventService.setPickHandler(function(t){return n.context.renderingService.hooks.pickSync.call({position:t,picked:[],topmost:!0}).picked[0]||null}),r.hooks.pointerWheel.tap(t.tag,function(t){var e=n.normalizeWheelEvent(t);n.context.eventService.mapEvent(e)}),r.hooks.pointerDown.tap(t.tag,function(t){if(!i.supportsTouchEvents||"touch"!==t.pointerType){var e,r,o=n.normalizeToPointerEvent(t,i);n.autoPreventDefault&&o[0].isNormalized&&(t.cancelable||!("cancelable"in t))&&t.preventDefault();try{for(var a=(0,W.XA)(o),s=a.next();!s.done;s=a.next()){var l=s.value,u=n.bootstrapEvent(n.rootPointerEvent,l,i,t);n.context.eventService.mapEvent(u)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}n.setCursor(n.context.eventService.cursor)}}),r.hooks.pointerUp.tap(t.tag,function(t){if(!i.supportsTouchEvents||"touch"!==t.pointerType){var e,r,o=n.context.contextService.getDomElement(),a=n.context.eventService.isNativeEventFromCanvas(o,t)?"":"outside",s=n.normalizeToPointerEvent(t,i);try{for(var l=(0,W.XA)(s),u=l.next();!u.done;u=l.next()){var c=u.value,h=n.bootstrapEvent(n.rootPointerEvent,c,i,t);h.type+=a,n.context.eventService.mapEvent(h)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}n.setCursor(n.context.eventService.cursor)}}),r.hooks.pointerMove.tap(t.tag,this.onPointerMove),r.hooks.pointerOver.tap(t.tag,this.onPointerMove),r.hooks.pointerOut.tap(t.tag,this.onPointerMove),r.hooks.click.tap(t.tag,this.onClick),r.hooks.pointerCancel.tap(t.tag,function(t){var e,r,o=n.normalizeToPointerEvent(t,i);try{for(var a=(0,W.XA)(o),s=a.next();!s.done;s=a.next()){var l=s.value,u=n.bootstrapEvent(n.rootPointerEvent,l,i,t);n.context.eventService.mapEvent(u)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}n.setCursor(n.context.eventService.cursor)})},t.prototype.bootstrapEvent=function(t,e,n,r){t.view=n,t.originalEvent=null,t.nativeEvent=r,t.pointerId=e.pointerId,t.width=e.width,t.height=e.height,t.isPrimary=e.isPrimary,t.pointerType=e.pointerType,t.pressure=e.pressure,t.tangentialPressure=e.tangentialPressure,t.tiltX=e.tiltX,t.tiltY=e.tiltY,t.twist=e.twist,this.transferMouseData(t,e);var i=this.context.eventService.client2Viewport({x:e.clientX,y:e.clientY}),o=i.x,a=i.y;t.viewport.x=o,t.viewport.y=a;var s=this.context.eventService.viewport2Canvas(t.viewport),l=s.x,u=s.y;return t.canvas.x=l,t.canvas.y=u,t.global.copyFrom(t.canvas),t.offset.copyFrom(t.canvas),t.isTrusted=r.isTrusted,"pointerleave"===t.type&&(t.type="pointerout"),t.type.startsWith("mouse")&&(t.type=t.type.replace("mouse","pointer")),t.type.startsWith("touch")&&(t.type=nj[t.type]||t.type),t},t.prototype.normalizeWheelEvent=function(t){var e=this.rootWheelEvent;this.transferMouseData(e,t),e.deltaMode=t.deltaMode,e.deltaX=t.deltaX,e.deltaY=t.deltaY,e.deltaZ=t.deltaZ;var n=this.context.eventService.client2Viewport({x:t.clientX,y:t.clientY}),r=n.x,i=n.y;e.viewport.x=r,e.viewport.y=i;var o=this.context.eventService.viewport2Canvas(e.viewport),a=o.x,s=o.y;return e.canvas.x=a,e.canvas.y=s,e.global.copyFrom(e.canvas),e.offset.copyFrom(e.canvas),e.nativeEvent=t,e.type=t.type,e},t.prototype.transferMouseData=function(t,e){t.isTrusted=e.isTrusted,t.srcElement=e.srcElement,t.timeStamp=nW.now(),t.type=e.type,t.altKey=e.altKey,t.metaKey=e.metaKey,t.shiftKey=e.shiftKey,t.ctrlKey=e.ctrlKey,t.button=e.button,t.buttons=e.buttons,t.client.x=e.clientX,t.client.y=e.clientY,t.movement.x=e.movementX,t.movement.y=e.movementY,t.page.x=e.pageX,t.page.y=e.pageY,t.screen.x=e.screenX,t.screen.y=e.screenY,t.relatedTarget=null},t.prototype.setCursor=function(t){this.context.contextService.applyCursorStyle(t||this.context.config.cursor||"default")},t.prototype.normalizeToPointerEvent=function(t,e){var n=[];if(e.isTouchEvent(t))for(var r=0;r-1,a=0,s=r.length;a=1?Math.ceil(k):1,C=l||("auto"===(n=nX(a,"width"))?a.offsetWidth:parseFloat(n))||a.width/k,w=u||("auto"===(r=nX(a,"height"))?a.offsetHeight:parseFloat(r))||a.height/k),s&&(rD.offscreenCanvas=s),i.devicePixelRatio=k,i.requestAnimationFrame=null!=v?v:n2.bind(rD.globalThis),i.cancelAnimationFrame=null!=y?y:n3.bind(rD.globalThis),i.supportsTouchEvents=null!=E?E:"ontouchstart"in rD.globalThis,i.supportsPointerEvents=null!=m?m:!!rD.globalThis.PointerEvent,i.isTouchEvent=null!=S?S:function(t){return i.supportsTouchEvents&&t instanceof rD.globalThis.TouchEvent},i.isMouseEvent=null!=N?N:function(t){return!rD.globalThis.MouseEvent||t instanceof rD.globalThis.MouseEvent&&(!i.supportsPointerEvents||!(t instanceof rD.globalThis.PointerEvent))},i.initRenderingContext({container:o,canvas:a,width:C,height:w,renderer:h,offscreenCanvas:s,devicePixelRatio:k,cursor:d||"default",background:p||"transparent",createImage:g,document:f,supportsCSSTransform:x,useNativeClickEvent:T,alwaysTriggerPointerEventOnCanvas:P}),i.initDefaultCamera(C,w,h.clipSpaceNearZ),i.initRenderer(h,!0),i}(0,W.ZT)(e,t),e.prototype.initRenderingContext=function(t){this.context.config=t,this.context.renderingContext={root:this.document.documentElement,renderListCurrentFrame:[],unculledEntities:[],renderReasons:new Set,force:!1,dirty:!1}},e.prototype.initDefaultCamera=function(t,e,n){var r=this,i=new rD.CameraContribution;i.clipSpaceNearZ=n,i.setType(A.EXPLORING,O.DEFAULT).setPosition(t/2,e/2,500).setFocalPoint(t/2,e/2,0).setOrthographic(-(t/2),t/2,e/2,-(e/2),.1,1e3),i.canvas=this,i.eventEmitter.on(tJ.UPDATED,function(){r.context.renderingContext.renderReasons.add(z.CAMERA_CHANGED),rD.enableSizeAttenuation&&r.getConfig().renderer.getConfig().enableSizeAttenuation&&r.updateSizeAttenuation()}),this.context.camera=i},e.prototype.updateSizeAttenuation=function(){var t=this.getCamera().getZoom();this.document.documentElement.forEach(function(e){rD.styleValueRegistry.updateSizeAttenuation(e,t)})},e.prototype.getConfig=function(){return this.context.config},e.prototype.getRoot=function(){return this.document.documentElement},e.prototype.getCamera=function(){return this.context.camera},e.prototype.getContextService=function(){return this.context.contextService},e.prototype.getEventService=function(){return this.context.eventService},e.prototype.getRenderingService=function(){return this.context.renderingService},e.prototype.getRenderingContext=function(){return this.context.renderingContext},e.prototype.getStats=function(){return this.getRenderingService().getStats()},Object.defineProperty(e.prototype,"ready",{get:function(){var t=this;return!this.readyPromise&&(this.readyPromise=new Promise(function(e){t.resolveReadyPromise=function(){e(t)}}),this.inited&&this.resolveReadyPromise()),this.readyPromise},enumerable:!1,configurable:!0}),e.prototype.destroy=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!1),e||this.dispatchEvent(new rm(j.BEFORE_DESTROY)),this.frameId&&(this.getConfig().cancelAnimationFrame||cancelAnimationFrame)(this.frameId);var n=this.getRoot();this.unmountChildren(n),t&&(this.document.destroy(),this.getEventService().destroy()),this.getRenderingService().destroy(),this.getContextService().destroy(),t&&this.context.rBushRoot&&(this.context.rBushRoot.clear(),this.context.rBushRoot=null,this.context.renderingContext.root=null),e||this.dispatchEvent(new rm(j.AFTER_DESTROY))},e.prototype.changeSize=function(t,e){this.resize(t,e)},e.prototype.resize=function(t,e){var n=this.context.config;n.width=t,n.height=e,this.getContextService().resize(t,e);var r=this.context.camera,i=r.getProjectionMode();r.setPosition(t/2,e/2,500).setFocalPoint(t/2,e/2,0),i===I.ORTHOGRAPHIC?r.setOrthographic(-(t/2),t/2,e/2,-(e/2),r.getNear(),r.getFar()):r.setAspect(t/e),this.dispatchEvent(new rm(j.RESIZE,{width:t,height:e}))},e.prototype.appendChild=function(t,e){return this.document.documentElement.appendChild(t,e)},e.prototype.insertBefore=function(t,e){return this.document.documentElement.insertBefore(t,e)},e.prototype.removeChild=function(t){return this.document.documentElement.removeChild(t)},e.prototype.removeChildren=function(){this.document.documentElement.removeChildren()},e.prototype.destroyChildren=function(){this.document.documentElement.destroyChildren()},e.prototype.render=function(t){var e=this;this.dispatchEvent(il),this.getRenderingService().render(this.getConfig(),t,function(){e.dispatchEvent(iu)}),this.dispatchEvent(ic)},e.prototype.run=function(){var t=this,e=function(n,r){t.render(r),t.frameId=t.requestAnimationFrame(e)};e()},e.prototype.initRenderer=function(t,e){var n=this;if(void 0===e&&(e=!1),!t)throw Error("Renderer is required.");this.inited=!1,this.readyPromise=void 0,this.context.rBushRoot=new tN,this.context.renderingPlugins=[],this.context.renderingPlugins.push(new ie,new io,new it([new ii])),this.loadRendererContainerModule(t),this.context.contextService=new this.context.ContextService((0,W.pi)((0,W.pi)({},rD),this.context)),this.context.renderingService=new rP(rD,this.context),this.context.eventService=new rb(rD,this.context),this.context.eventService.init(),this.context.contextService.init?(this.context.contextService.init(),this.initRenderingService(t,e,!0)):this.context.contextService.initAsync().then(function(){n.initRenderingService(t,e)})},e.prototype.initRenderingService=function(t,e,n){var r=this;void 0===e&&(e=!1),void 0===n&&(n=!1),this.context.renderingService.init(function(){r.inited=!0,e?(n?r.requestAnimationFrame(function(){r.dispatchEvent(new rm(j.READY))}):r.dispatchEvent(new rm(j.READY)),r.readyPromise&&r.resolveReadyPromise()):r.dispatchEvent(new rm(j.RENDERER_CHANGED)),e||r.getRoot().forEach(function(t){var e=t.renderable;e&&(e.renderBoundsDirty=!0,e.boundsDirty=!0,e.dirty=!0)}),r.mountChildren(r.getRoot()),t.getConfig().enableAutoRendering&&r.run()})},e.prototype.loadRendererContainerModule=function(t){var e=this;t.getPlugins().forEach(function(t){t.context=e.context,t.init(rD)})},e.prototype.setRenderer=function(t){var e=this.getConfig();if(e.renderer!==t){var n=e.renderer;e.renderer=t,this.destroy(!1,!0),(0,W.ev)([],(0,W.CR)(null==n?void 0:n.getPlugins()),!1).reverse().forEach(function(t){t.destroy(rD)}),this.initRenderer(t)}},e.prototype.setCursor=function(t){this.getConfig().cursor=t,this.getContextService().applyCursorStyle(t)},e.prototype.unmountChildren=function(t){var e=this;t.childNodes.forEach(function(t){e.unmountChildren(t)}),this.inited&&(t.isMutationObserved?t.dispatchEvent(is):(is.target=t,this.dispatchEvent(is,!0)),t!==this.document.documentElement&&(t.ownerDocument=null),t.isConnected=!1),t.isCustomElement&&t.disconnectedCallback&&t.disconnectedCallback()},e.prototype.mountChildren=function(t){var e=this;this.inited?t.isConnected||(t.ownerDocument=this.document,t.isConnected=!0,t.isMutationObserved?t.dispatchEvent(ia):(ia.target=t,this.dispatchEvent(ia,!0))):console.warn("[g]: You are trying to call `canvas.appendChild` before canvas' initialization finished. You can either await `canvas.ready` or listen to `CanvasEvent.READY` manually.","appended child: ",t.nodeName),t.childNodes.forEach(function(t){e.mountChildren(t)}),t.isCustomElement&&t.connectedCallback&&t.connectedCallback()},e.prototype.client2Viewport=function(t){return this.getEventService().client2Viewport(t)},e.prototype.viewport2Client=function(t){return this.getEventService().viewport2Client(t)},e.prototype.viewport2Canvas=function(t){return this.getEventService().viewport2Canvas(t)},e.prototype.canvas2Viewport=function(t){return this.getEventService().canvas2Viewport(t)},e.prototype.getPointByClient=function(t,e){return this.client2Viewport({x:t,y:e})},e.prototype.getClientByPoint=function(t,e){return this.viewport2Client({x:t,y:e})}}(rE)}}]); \ No newline at end of file diff --git a/dbgpt/app/static/web/_next/static/chunks/d9005de1-9554a68697ca3836.js b/dbgpt/app/static/web/_next/static/chunks/d9005de1-9554a68697ca3836.js new file mode 100644 index 000000000..c084817d5 --- /dev/null +++ b/dbgpt/app/static/web/_next/static/chunks/d9005de1-9554a68697ca3836.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6106],{50041:function(t,e,n){n.d(e,{$6:function(){return j},$p:function(){return nX},Dk:function(){return X},F6:function(){return tC},I8:function(){return tw},R:function(){return ew},Rr:function(){return z},bn:function(){return k},jU:function(){return nY},qA:function(){return ek}});var r,i,o,a,s,l,u,c,h,p,d,f,v,y,g,m,E,x,b,T,P,S,N,C,w,k,M,R,A,O,I,L,D,G,B,F,_,U,V,Z,Y,z,X,j,W=n(97582),H=n(71879),q=n(77160),K=n(85975),J=n(35600),$=n(98333),Q=n(32945),tt=n(31437),te=n(25897),tn=n(95147),tr=n(76714),ti=n(81957),to=n(69877),ta=n(71523),ts=n(13882),tl=n(80450),tu=n(8614),tc=n(4848),th=n(75839),tp=n(99872),td=n(92455),tf=n(65850),tv=n(28659),ty=n(83555),tg=n(71154),tm=n(5199),tE=n(90134),tx=n(4637),tb=n(84329),tT=n(16372),tP=n(11702),tS=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self,{exports:{}});tS.exports=function(){function t(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function e(t,e){return te?1:0}var n=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function r(t,e){i(t,0,t.children.length,e,t)}function i(t,e,n,r,i){i||(i=p(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var a=e;a=t.minX&&e.maxY>=t.minY}function p(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function d(n,r,i,o,a){for(var s=[r,i];s.length;)if(i=s.pop(),r=s.pop(),!(i-r<=o)){var l=r+Math.ceil((i-r)/o/2)*o;(function e(n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=r-i+1,u=Math.log(s),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1),p=Math.max(i,Math.floor(r-l*c/s+h)),d=Math.min(o,Math.floor(r+(s-l)*c/s+h));e(n,r,p,d,a)}var f=n[r],v=i,y=o;for(t(n,i,r),a(n[o],f)>0&&t(n,i,o);va(n[v],f);)v++;for(;a(n[y],f)>0;)y--}0===a(n[i],f)?t(n,i,y):t(n,++y,o),y<=r&&(i=y+1),r<=y&&(o=y-1)}})(n,l,r||0,i||n.length-1,a||e),s.push(r,l,l,i)}}return n.prototype.all=function(){return this._all(this.data,[])},n.prototype.search=function(t){var e=this.data,n=[];if(!h(t,e))return n;for(var r=this.toBBox,i=[];e;){for(var o=0;o=0;)if(i[e].children.length>this._maxEntries)this._split(i,e),e--;else break;this._adjustParentBBoxes(r,i,e)},n.prototype._split=function(t,e){var n=t[e],i=n.children.length,o=this._minEntries;this._chooseSplitAxis(n,o,i);var a=this._chooseSplitIndex(n,o,i),s=p(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,r(n,this.toBBox),r(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(n,s)},n.prototype._splitRoot=function(t,e){this.data=p([t,e]),this.data.height=t.height+1,this.data.leaf=!1,r(this.data,this.toBBox)},n.prototype._chooseSplitIndex=function(t,e,n){for(var r,o=1/0,a=1/0,s=e;s<=n-e;s++){var u=i(t,0,s,this.toBBox),c=i(t,s,n,this.toBBox),h=function(t,e){var n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY);return Math.max(0,Math.min(t.maxX,e.maxX)-n)*Math.max(0,Math.min(t.maxY,e.maxY)-r)}(u,c),p=l(u)+l(c);h=e;d--){var f=t.children[d];o(l,t.leaf?a(f):f),c+=u(l)}return c},n.prototype._adjustParentBBoxes=function(t,e,n){for(var r=n;r>=0;r--)o(e[r],t)},n.prototype._condense=function(t){for(var e=t.length-1,n=void 0;e>=0;e--)0===t[e].children.length?e>0?(n=t[e-1].children).splice(n.indexOf(t[e]),1):this.clear():r(t[e],this.toBBox)},n}();var tN=tS.exports;(r=k||(k={})).GROUP="g",r.CIRCLE="circle",r.ELLIPSE="ellipse",r.IMAGE="image",r.RECT="rect",r.LINE="line",r.POLYLINE="polyline",r.POLYGON="polygon",r.TEXT="text",r.PATH="path",r.HTML="html",r.MESH="mesh",(i=M||(M={}))[i.ZERO=0]="ZERO",i[i.NEGATIVE_ONE=1]="NEGATIVE_ONE";var tC=function(){function t(){this.plugins=[]}return t.prototype.addRenderingPlugin=function(t){this.plugins.push(t),this.context.renderingPlugins.push(t)},t.prototype.removeAllRenderingPlugins=function(){var t=this;this.plugins.forEach(function(e){var n=t.context.renderingPlugins.indexOf(e);n>=0&&t.context.renderingPlugins.splice(n,1)})},t}(),tw=function(){function t(t){this.clipSpaceNearZ=M.NEGATIVE_ONE,this.plugins=[],this.config=(0,W.pi)({enableDirtyCheck:!0,enableCulling:!1,enableAutoRendering:!0,enableDirtyRectangleRendering:!0,enableDirtyRectangleRenderingDebug:!1,enableSizeAttenuation:!0},t)}return t.prototype.registerPlugin=function(t){-1===this.plugins.findIndex(function(e){return e===t})&&this.plugins.push(t)},t.prototype.unregisterPlugin=function(t){var e=this.plugins.findIndex(function(e){return e===t});e>-1&&this.plugins.splice(e,1)},t.prototype.getPlugins=function(){return this.plugins},t.prototype.getPlugin=function(t){return this.plugins.find(function(e){return e.name===t})},t.prototype.getConfig=function(){return this.config},t.prototype.setConfig=function(t){Object.assign(this.config,t)},t}();function tk(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function tM(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function tR(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function tA(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function tO(t){return void 0===t?0:t>360||t<-360?t%360:t}function tI(t,e,n){return(void 0===e&&(e=0),void 0===n&&(n=0),Array.isArray(t)&&3===t.length)?q.d9(t):(0,te.Z)(t)?q.al(t,e,n):q.al(t[0],t[1]||e,t[2]||n)}function tL(t){return t*(Math.PI/180)}function tD(t){return t*(180/Math.PI)}function tG(t,e){var n,r,i,o,a,s,l,u,c,h,p,d,f,v,y,g,m;return 16===e.length?(i=.5*Math.PI,a=(o=(0,W.CR)(K.getScaling(q.Ue(),e),3))[0],s=o[1],l=o[2],(u=Math.asin(-e[2]/a))-i?(n=Math.atan2(e[6]/s,e[10]/l),r=Math.atan2(e[1]/a,e[0]/a)):(r=0,n=-Math.atan2(e[4]/s,e[5]/s)):(r=0,n=Math.atan2(e[4]/s,e[5]/s)),t[0]=n,t[1]=u,t[2]=r,t):(c=e[0],h=e[1],p=e[2],d=e[3],g=c*c+(f=h*h)+(v=p*p)+(y=d*d),(m=c*d-h*p)>.499995*g?(t[0]=Math.PI/2,t[1]=2*Math.atan2(h,c),t[2]=0):m<-.499995*g?(t[0]=-Math.PI/2,t[1]=2*Math.atan2(h,c),t[2]=0):(t[0]=Math.asin(2*(c*p-d*h)),t[1]=Math.atan2(2*(c*d+h*p),1-2*(v+y)),t[2]=Math.atan2(2*(c*h+p*d),1-2*(f+v))),t)}function tB(t){var e=t[0],n=t[1],r=t[3],i=t[4],o=Math.sqrt(e*e+n*n),a=Math.sqrt(r*r+i*i);e*i-n*r<0&&(eh&&(h=N),Cd&&(d=w),kv&&(v=M),n[0]=(c+h)*.5,n[1]=(p+d)*.5,n[2]=(f+v)*.5,a[0]=(h-c)*.5,a[1]=(d-p)*.5,a[2]=(v-f)*.5,this.min[0]=c,this.min[1]=p,this.min[2]=f,this.max[0]=h,this.max[1]=d,this.max[2]=v}},t.prototype.setFromTransformedAABB=function(t,e){var n=this.center,r=this.halfExtents,i=t.center,o=t.halfExtents,a=e[0],s=e[4],l=e[8],u=e[1],c=e[5],h=e[9],p=e[2],d=e[6],f=e[10],v=Math.abs(a),y=Math.abs(s),g=Math.abs(l),m=Math.abs(u),E=Math.abs(c),x=Math.abs(h),b=Math.abs(p),T=Math.abs(d),P=Math.abs(f);n[0]=e[12]+a*i[0]+s*i[1]+l*i[2],n[1]=e[13]+u*i[0]+c*i[1]+h*i[2],n[2]=e[14]+p*i[0]+d*i[1]+f*i[2],r[0]=v*o[0]+y*o[1]+g*o[2],r[1]=m*o[0]+E*o[1]+x*o[2],r[2]=b*o[0]+T*o[1]+P*o[2],tM(this.min,n,r),tR(this.max,n,r)},t.prototype.intersects=function(t){var e=this.getMax(),n=this.getMin(),r=t.getMax(),i=t.getMin();return n[0]<=r[0]&&e[0]>=i[0]&&n[1]<=r[1]&&e[1]>=i[1]&&n[2]<=r[2]&&e[2]>=i[2]},t.prototype.intersection=function(e){if(!this.intersects(e))return null;var n,r,i,o,a,s,l=new t,u=(n=[0,0,0],r=this.getMin(),i=e.getMin(),n[0]=Math.max(r[0],i[0]),n[1]=Math.max(r[1],i[1]),n[2]=Math.max(r[2],i[2]),n),c=(o=[0,0,0],a=this.getMax(),s=e.getMax(),o[0]=Math.min(a[0],s[0]),o[1]=Math.min(a[1],s[1]),o[2]=Math.min(a[2],s[2]),o);return l.setMinMax(u,c),l},t.prototype.getNegativeFarPoint=function(t){if(273===t.pnVertexFlag)return tk([0,0,0],this.min);if(272===t.pnVertexFlag)return[this.min[0],this.min[1],this.max[2]];if(257===t.pnVertexFlag)return[this.min[0],this.max[1],this.min[2]];if(256===t.pnVertexFlag)return[this.min[0],this.max[1],this.max[2]];if(17===t.pnVertexFlag)return[this.max[0],this.min[1],this.min[2]];if(16===t.pnVertexFlag)return[this.max[0],this.min[1],this.max[2]];if(1===t.pnVertexFlag)return[this.max[0],this.max[1],this.min[2]];else return[this.max[0],this.max[1],this.max[2]]},t.prototype.getPositiveFarPoint=function(t){if(273===t.pnVertexFlag)return tk([0,0,0],this.max);if(272===t.pnVertexFlag)return[this.max[0],this.max[1],this.min[2]];if(257===t.pnVertexFlag)return[this.max[0],this.min[1],this.max[2]];if(256===t.pnVertexFlag)return[this.max[0],this.min[1],this.min[2]];if(17===t.pnVertexFlag)return[this.min[0],this.max[1],this.max[2]];if(16===t.pnVertexFlag)return[this.min[0],this.max[1],this.min[2]];if(1===t.pnVertexFlag)return[this.min[0],this.min[1],this.max[2]];else return[this.min[0],this.min[1],this.min[2]]},t}(),tX=function(){function t(t,e){this.distance=t||0,this.normal=e||q.al(0,1,0),this.updatePNVertexFlag()}return t.prototype.updatePNVertexFlag=function(){this.pnVertexFlag=(Number(this.normal[0]>=0)<<8)+(Number(this.normal[1]>=0)<<4)+Number(this.normal[2]>=0)},t.prototype.distanceToPoint=function(t){return q.AK(t,this.normal)-this.distance},t.prototype.normalize=function(){var t=1/q.Zh(this.normal);q.bA(this.normal,this.normal,t),this.distance*=t},t.prototype.intersectsLine=function(t,e,n){var r=this.distanceToPoint(t),i=r/(r-this.distanceToPoint(e)),o=i>=0&&i<=1;return o&&n&&q.t7(n,t,e,i),o},t}();(o=R||(R={}))[o.OUTSIDE=4294967295]="OUTSIDE",o[o.INSIDE=0]="INSIDE",o[o.INDETERMINATE=2147483647]="INDETERMINATE";var tj=function(){function t(t){if(this.planes=[],t)this.planes=t;else for(var e=0;e<6;e++)this.planes.push(new tX)}return t.prototype.extractFromVPMatrix=function(t){var e=(0,W.CR)(t,16),n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],p=e[10],d=e[11],f=e[12],v=e[13],y=e[14],g=e[15];q.t8(this.planes[0].normal,o-n,u-a,d-c),this.planes[0].distance=g-f,q.t8(this.planes[1].normal,o+n,u+a,d+c),this.planes[1].distance=g+f,q.t8(this.planes[2].normal,o+r,u+s,d+h),this.planes[2].distance=g+v,q.t8(this.planes[3].normal,o-r,u-s,d-h),this.planes[3].distance=g-v,q.t8(this.planes[4].normal,o-i,u-l,d-p),this.planes[4].distance=g-y,q.t8(this.planes[5].normal,o+i,u+l,d+p),this.planes[5].distance=g+y,this.planes.forEach(function(t){t.normalize(),t.updatePNVertexFlag()})},t}(),tW=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.x=0,this.y=0,this.x=t,this.y=e}return t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.copyFrom=function(t){this.x=t.x,this.y=t.y},t}(),tH=function(){function t(t,e,n,r){this.x=t,this.y=e,this.width=n,this.height=r,this.left=t,this.right=t+n,this.top=e,this.bottom=e+r}return t.prototype.toJSON=function(){},t}(),tq="Method not implemented.",tK="Use document.documentElement instead.";(a=A||(A={}))[a.ORBITING=0]="ORBITING",a[a.EXPLORING=1]="EXPLORING",a[a.TRACKING=2]="TRACKING",(s=O||(O={}))[s.DEFAULT=0]="DEFAULT",s[s.ROTATIONAL=1]="ROTATIONAL",s[s.TRANSLATIONAL=2]="TRANSLATIONAL",s[s.CINEMATIC=3]="CINEMATIC",(l=I||(I={}))[l.ORTHOGRAPHIC=0]="ORTHOGRAPHIC",l[l.PERSPECTIVE=1]="PERSPECTIVE";var tJ={UPDATED:"updated"},t$=function(){function t(){this.clipSpaceNearZ=M.NEGATIVE_ONE,this.eventEmitter=new H.Z,this.matrix=K.create(),this.right=q.al(1,0,0),this.up=q.al(0,1,0),this.forward=q.al(0,0,1),this.position=q.al(0,0,1),this.focalPoint=q.al(0,0,0),this.distanceVector=q.al(0,0,-1),this.distance=1,this.azimuth=0,this.elevation=0,this.roll=0,this.relAzimuth=0,this.relElevation=0,this.relRoll=0,this.dollyingStep=0,this.maxDistance=1/0,this.minDistance=-1/0,this.zoom=1,this.rotateWorld=!1,this.fov=30,this.near=.1,this.far=1e3,this.aspect=1,this.projectionMatrix=K.create(),this.projectionMatrixInverse=K.create(),this.jitteredProjectionMatrix=void 0,this.enableUpdate=!0,this.type=A.EXPLORING,this.trackingMode=O.DEFAULT,this.projectionMode=I.PERSPECTIVE,this.frustum=new tj,this.orthoMatrix=K.create()}return t.prototype.isOrtho=function(){return this.projectionMode===I.ORTHOGRAPHIC},t.prototype.getProjectionMode=function(){return this.projectionMode},t.prototype.getPerspective=function(){return this.jitteredProjectionMatrix||this.projectionMatrix},t.prototype.getPerspectiveInverse=function(){return this.projectionMatrixInverse},t.prototype.getFrustum=function(){return this.frustum},t.prototype.getPosition=function(){return this.position},t.prototype.getFocalPoint=function(){return this.focalPoint},t.prototype.getDollyingStep=function(){return this.dollyingStep},t.prototype.getNear=function(){return this.near},t.prototype.getFar=function(){return this.far},t.prototype.getZoom=function(){return this.zoom},t.prototype.getOrthoMatrix=function(){return this.orthoMatrix},t.prototype.getView=function(){return this.view},t.prototype.setEnableUpdate=function(t){this.enableUpdate=t},t.prototype.setType=function(t,e){return this.type=t,this.type===A.EXPLORING?this.setWorldRotation(!0):this.setWorldRotation(!1),this._getAngles(),this.type===A.TRACKING&&void 0!==e&&this.setTrackingMode(e),this},t.prototype.setProjectionMode=function(t){return this.projectionMode=t,this},t.prototype.setTrackingMode=function(t){if(this.type!==A.TRACKING)throw Error("Impossible to set a tracking mode if the camera is not of tracking type");return this.trackingMode=t,this},t.prototype.setWorldRotation=function(t){return this.rotateWorld=t,this._getAngles(),this},t.prototype.getViewTransform=function(){return K.invert(K.create(),this.matrix)},t.prototype.getWorldTransform=function(){return this.matrix},t.prototype.jitterProjectionMatrix=function(t,e){var n=K.fromTranslation(K.create(),[t,e,0]);this.jitteredProjectionMatrix=K.multiply(K.create(),n,this.projectionMatrix)},t.prototype.clearJitterProjectionMatrix=function(){this.jitteredProjectionMatrix=void 0},t.prototype.setMatrix=function(t){return this.matrix=t,this._update(),this},t.prototype.setProjectionMatrix=function(t){this.projectionMatrix=t},t.prototype.setFov=function(t){return this.setPerspective(this.near,this.far,t,this.aspect),this},t.prototype.setAspect=function(t){return this.setPerspective(this.near,this.far,this.fov,t),this},t.prototype.setNear=function(t){return this.projectionMode===I.PERSPECTIVE?this.setPerspective(t,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,t,this.far),this},t.prototype.setFar=function(t){return this.projectionMode===I.PERSPECTIVE?this.setPerspective(this.near,t,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,t),this},t.prototype.setViewOffset=function(t,e,n,r,i,o){return this.aspect=t/e,void 0===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=o,this.projectionMode===I.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.clearViewOffset=function(){return void 0!==this.view&&(this.view.enabled=!1),this.projectionMode===I.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.setZoom=function(t){return this.zoom=t,this.projectionMode===I.ORTHOGRAPHIC?this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far):this.projectionMode===I.PERSPECTIVE&&this.setPerspective(this.near,this.far,this.fov,this.aspect),this},t.prototype.setZoomByViewportPoint=function(t,e){var n=this.canvas.viewport2Canvas({x:e[0],y:e[1]}),r=n.x,i=n.y,o=this.roll;this.rotate(0,0,-o),this.setPosition(r,i),this.setFocalPoint(r,i),this.setZoom(t),this.rotate(0,0,o);var a=this.canvas.viewport2Canvas({x:e[0],y:e[1]}),s=a.x,l=a.y,u=q.al(s-r,l-i,0),c=q.AK(u,this.right)/q.kE(this.right),h=q.AK(u,this.up)/q.kE(this.up);return this.pan(-c,-h),this},t.prototype.setPerspective=function(t,e,n,r){this.projectionMode=I.PERSPECTIVE,this.fov=n,this.near=t,this.far=e,this.aspect=r;var i,o,a,s,l,u,c,h,p,d=this.near*Math.tan(tL(.5*this.fov))/this.zoom,f=2*d,v=this.aspect*f,y=-.5*v;if(null===(p=this.view)||void 0===p?void 0:p.enabled){var g=this.view.fullWidth,m=this.view.fullHeight;y+=this.view.offsetX*v/g,d-=this.view.offsetY*f/m,v*=this.view.width/g,f*=this.view.height/m}return i=this.projectionMatrix,o=y,a=y+v,s=d,l=d-f,u=this.far,this.clipSpaceNearZ===M.ZERO?(c=-u/(u-t),h=-u*t/(u-t)):(c=-(u+t)/(u-t),h=-2*u*t/(u-t)),i[0]=2*t/(a-o),i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=2*t/(s-l),i[6]=0,i[7]=0,i[8]=(a+o)/(a-o),i[9]=(s+l)/(s-l),i[10]=c,i[11]=-1,i[12]=0,i[13]=0,i[14]=h,i[15]=0,K.scale(this.projectionMatrix,this.projectionMatrix,q.al(1,-1,1)),K.invert(this.projectionMatrixInverse,this.projectionMatrix),this.triggerUpdate(),this},t.prototype.setOrthographic=function(t,e,n,r,i,o){this.projectionMode=I.ORTHOGRAPHIC,this.rright=e,this.left=t,this.top=n,this.bottom=r,this.near=i,this.far=o;var a,s=(this.rright-this.left)/(2*this.zoom),l=(this.top-this.bottom)/(2*this.zoom),u=(this.rright+this.left)/2,c=(this.top+this.bottom)/2,h=u-s,p=u+s,d=c+l,f=c-l;if(null===(a=this.view)||void 0===a?void 0:a.enabled){var v=(this.rright-this.left)/this.view.fullWidth/this.zoom,y=(this.top-this.bottom)/this.view.fullHeight/this.zoom;h+=v*this.view.offsetX,p=h+v*this.view.width,d-=y*this.view.offsetY,f=d-y*this.view.height}return this.clipSpaceNearZ===M.NEGATIVE_ONE?K.ortho(this.projectionMatrix,h,p,f,d,i,o):K.orthoZO(this.projectionMatrix,h,p,f,d,i,o),K.scale(this.projectionMatrix,this.projectionMatrix,q.al(1,-1,1)),K.invert(this.projectionMatrixInverse,this.projectionMatrix),this._getOrthoMatrix(),this.triggerUpdate(),this},t.prototype.setPosition=function(t,e,n){void 0===e&&(e=this.position[1]),void 0===n&&(n=this.position[2]);var r=tI(t,e,n);return this._setPosition(r),this.setFocalPoint(this.focalPoint),this.triggerUpdate(),this},t.prototype.setFocalPoint=function(t,e,n){void 0===e&&(e=this.focalPoint[1]),void 0===n&&(n=this.focalPoint[2]);var r=q.al(0,1,0);if(this.focalPoint=tI(t,e,n),this.trackingMode===O.CINEMATIC){var i=q.$X(q.Ue(),this.focalPoint,this.position);t=i[0],e=i[1],n=i[2];var o=tD(Math.asin(e/q.kE(i))),a=90+tD(Math.atan2(n,t)),s=K.create();K.rotateY(s,s,tL(a)),K.rotateX(s,s,tL(o)),r=q.fF(q.Ue(),[0,1,0],s)}return K.invert(this.matrix,K.lookAt(K.create(),this.position,this.focalPoint,r)),this._getAxes(),this._getDistance(),this._getAngles(),this.triggerUpdate(),this},t.prototype.getDistance=function(){return this.distance},t.prototype.getDistanceVector=function(){return this.distanceVector},t.prototype.setDistance=function(t){if(this.distance===t||t<0)return this;this.distance=t,this.distance<2e-4&&(this.distance=2e-4),this.dollyingStep=this.distance/100;var e=q.Ue();t=this.distance;var n=this.forward,r=this.focalPoint;return e[0]=t*n[0]+r[0],e[1]=t*n[1]+r[1],e[2]=t*n[2]+r[2],this._setPosition(e),this.triggerUpdate(),this},t.prototype.setMaxDistance=function(t){return this.maxDistance=t,this},t.prototype.setMinDistance=function(t){return this.minDistance=t,this},t.prototype.setAzimuth=function(t){return this.azimuth=tO(t),this.computeMatrix(),this._getAxes(),this.type===A.ORBITING||this.type===A.EXPLORING?this._getPosition():this.type===A.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this},t.prototype.getAzimuth=function(){return this.azimuth},t.prototype.setElevation=function(t){return this.elevation=tO(t),this.computeMatrix(),this._getAxes(),this.type===A.ORBITING||this.type===A.EXPLORING?this._getPosition():this.type===A.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this},t.prototype.getElevation=function(){return this.elevation},t.prototype.setRoll=function(t){return this.roll=tO(t),this.computeMatrix(),this._getAxes(),this.type===A.ORBITING||this.type===A.EXPLORING?this._getPosition():this.type===A.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this},t.prototype.getRoll=function(){return this.roll},t.prototype._update=function(){this._getAxes(),this._getPosition(),this._getDistance(),this._getAngles(),this._getOrthoMatrix(),this.triggerUpdate()},t.prototype.computeMatrix=function(){var t=Q.yY(Q.Ue(),[0,0,1],tL(this.roll));K.identity(this.matrix);var e=Q.yY(Q.Ue(),[1,0,0],tL((this.rotateWorld&&this.type!==A.TRACKING||this.type===A.TRACKING?1:-1)*this.elevation)),n=Q.yY(Q.Ue(),[0,1,0],tL((this.rotateWorld&&this.type!==A.TRACKING||this.type===A.TRACKING?1:-1)*this.azimuth)),r=Q.Jp(Q.Ue(),n,e);r=Q.Jp(Q.Ue(),r,t);var i=K.fromQuat(K.create(),r);this.type===A.ORBITING||this.type===A.EXPLORING?(K.translate(this.matrix,this.matrix,this.focalPoint),K.multiply(this.matrix,this.matrix,i),K.translate(this.matrix,this.matrix,[0,0,this.distance])):this.type===A.TRACKING&&(K.translate(this.matrix,this.matrix,this.position),K.multiply(this.matrix,this.matrix,i))},t.prototype._setPosition=function(t,e,n){this.position=tI(t,e,n);var r=this.matrix;r[12]=this.position[0],r[13]=this.position[1],r[14]=this.position[2],r[15]=1,this._getOrthoMatrix()},t.prototype._getAxes=function(){q.JG(this.right,tI($.fF($.Ue(),[1,0,0,0],this.matrix))),q.JG(this.up,tI($.fF($.Ue(),[0,1,0,0],this.matrix))),q.JG(this.forward,tI($.fF($.Ue(),[0,0,1,0],this.matrix))),q.Fv(this.right,this.right),q.Fv(this.up,this.up),q.Fv(this.forward,this.forward)},t.prototype._getAngles=function(){var t=this.distanceVector[0],e=this.distanceVector[1],n=this.distanceVector[2],r=q.kE(this.distanceVector);if(0===r){this.elevation=0,this.azimuth=0;return}this.type===A.TRACKING?(this.elevation=tD(Math.asin(e/r)),this.azimuth=tD(Math.atan2(-t,-n))):this.rotateWorld?(this.elevation=tD(Math.asin(e/r)),this.azimuth=tD(Math.atan2(-t,-n))):(this.elevation=-tD(Math.asin(e/r)),this.azimuth=-tD(Math.atan2(-t,-n)))},t.prototype._getPosition=function(){q.JG(this.position,tI($.fF($.Ue(),[0,0,0,1],this.matrix))),this._getDistance()},t.prototype._getFocalPoint=function(){q.kK(this.distanceVector,[0,0,-this.distance],J.xO(J.Ue(),this.matrix)),q.IH(this.focalPoint,this.position,this.distanceVector),this._getDistance()},t.prototype._getDistance=function(){this.distanceVector=q.$X(q.Ue(),this.focalPoint,this.position),this.distance=q.kE(this.distanceVector),this.dollyingStep=this.distance/100},t.prototype._getOrthoMatrix=function(){if(this.projectionMode===I.ORTHOGRAPHIC){var t=this.position,e=Q.yY(Q.Ue(),[0,0,1],-this.roll*Math.PI/180);K.fromRotationTranslationScaleOrigin(this.orthoMatrix,e,q.al((this.rright-this.left)/2-t[0],(this.top-this.bottom)/2-t[1],0),q.al(this.zoom,this.zoom,1),t)}},t.prototype.triggerUpdate=function(){if(this.enableUpdate){var t=this.getViewTransform(),e=K.multiply(K.create(),this.getPerspective(),t);this.getFrustum().extractFromVPMatrix(e),this.eventEmitter.emit(tJ.UPDATED)}},t.prototype.rotate=function(t,e,n){throw Error(tq)},t.prototype.pan=function(t,e){throw Error(tq)},t.prototype.dolly=function(t){throw Error(tq)},t.prototype.createLandmark=function(t,e){throw Error(tq)},t.prototype.gotoLandmark=function(t,e){throw Error(tq)},t.prototype.cancelLandmarkAnimation=function(){throw Error(tq)},t}();function tQ(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var n=function(){for(var r=[],i=0;i=L.kEms&&t=_.kUnitType&&this.getType()<=_.kClampType},t}(),t9=function(t){function e(e){var n=t.call(this)||this;return n.colorSpace=e,n}return(0,W.ZT)(e,t),e.prototype.getType=function(){return _.kColorType},e.prototype.to=function(t){return this},e}(t4);(v=U||(U={}))[v.Constant=0]="Constant",v[v.LinearGradient=1]="LinearGradient",v[v.RadialGradient=2]="RadialGradient";var t8=function(t){function e(e,n){var r=t.call(this)||this;return r.type=e,r.value=n,r}return(0,W.ZT)(e,t),e.prototype.clone=function(){return new e(this.type,this.value)},e.prototype.buildCSSText=function(t,e,n){return n},e.prototype.getType=function(){return _.kColorType},e}(t4),t6=function(t){function e(e){var n=t.call(this)||this;return n.value=e,n}return(0,W.ZT)(e,t),e.prototype.clone=function(){return new e(this.value)},e.prototype.getType=function(){return _.kKeywordType},e.prototype.buildCSSText=function(t,e,n){return n+this.value},e}(t4),t7=tQ(function(t){return void 0===t&&(t=""),t.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})}),et=function(t){return t.split("").map(function(t,e){return t.toUpperCase()===t?"".concat(0!==e?"-":"").concat(t.toLowerCase()):t}).join("")};function ee(t){return"function"==typeof t}var en={d:{alias:"path"},strokeDasharray:{alias:"lineDash"},strokeWidth:{alias:"lineWidth"},textAnchor:{alias:"textAlign"},src:{alias:"img"}},er=tQ(function(t){var e=t7(t),n=en[e];return(null==n?void 0:n.alias)||e}),ei=function(t,e){void 0===e&&(e="");var n="";return Number.isFinite(t)?(function(t){if(!t)throw Error()}(Number.isNaN(t)),n="NaN"):n=t>0?"infinity":"-infinity",n+e},eo=function(t){return t2(t1(t))},ea=function(t){function e(e,n){void 0===n&&(n=L.kNumber);var r,i,o=t.call(this)||this;return i="string"==typeof n?(r=n)?"number"===r?L.kNumber:"percent"===r||"%"===r?L.kPercentage:t0.find(function(t){return t.name===r}).unit_type:L.kUnknown:n,o.unit=i,o.value=e,o}return(0,W.ZT)(e,t),e.prototype.clone=function(){return new e(this.value,this.unit)},e.prototype.equals=function(t){return this.value===t.value&&this.unit===t.unit},e.prototype.getType=function(){return _.kUnitType},e.prototype.convertTo=function(t){if(this.unit===t)return new e(this.value,this.unit);var n=eo(this.unit);if(n!==eo(t)||n===L.kUnknown)return null;var r=t3(this.unit)/t3(t);return new e(this.value*r,t)},e.prototype.buildCSSText=function(t,e,n){var r;switch(this.unit){case L.kUnknown:break;case L.kInteger:r=Number(this.value).toFixed(0);break;case L.kNumber:case L.kPercentage:case L.kEms:case L.kRems:case L.kPixels:case L.kDegrees:case L.kRadians:case L.kGradians:case L.kMilliseconds:case L.kSeconds:case L.kTurns:var i=this.value,o=t5(this.unit);if(i<-999999||i>999999){var a=t5(this.unit);r=!Number.isFinite(i)||Number.isNaN(i)?ei(i,a):i+(a||"")}else r="".concat(i).concat(o)}return n+r},e}(t4),es=new ea(0,"px");new ea(1,"px");var el=new ea(0,"deg"),eu=function(t){function e(e,n,r,i,o){void 0===i&&(i=1),void 0===o&&(o=!1);var a=t.call(this,"rgb")||this;return a.r=e,a.g=n,a.b=r,a.alpha=i,a.isNone=o,a}return(0,W.ZT)(e,t),e.prototype.clone=function(){return new e(this.r,this.g,this.b,this.alpha)},e.prototype.buildCSSText=function(t,e,n){return n+"rgba(".concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.alpha,")")},e}(t9),ec=new t6("unset"),eh={"":ec,unset:ec,initial:new t6("initial"),inherit:new t6("inherit")},ep=function(t){return eh[t]||(eh[t]=new t6(t)),eh[t]},ed=new eu(0,0,0,0,!0),ef=new eu(0,0,0,0),ev=tQ(function(t,e,n,r){return new eu(t,e,n,r)},function(t,e,n,r){return"rgba(".concat(t,",").concat(e,",").concat(n,",").concat(r,")")}),ey=function(t,e){return void 0===e&&(e=L.kNumber),new ea(t,e)};new ea(50,"%"),(y=V||(V={}))[y.Standard=0]="Standard",(g=Z||(Z={}))[g.ADDED=0]="ADDED",g[g.REMOVED=1]="REMOVED",g[g.Z_INDEX_CHANGED=2]="Z_INDEX_CHANGED";var eg={absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new tH(0,0,0,0)};(m=Y||(Y={})).COORDINATE="",m.COLOR="",m.PAINT="",m.NUMBER="",m.ANGLE="",m.OPACITY_VALUE="",m.SHADOW_BLUR="",m.LENGTH="",m.PERCENTAGE="",m.LENGTH_PERCENTAGE=" | ",m.LENGTH_PERCENTAGE_12="[ | ]{1,2}",m.LENGTH_PERCENTAGE_14="[ | ]{1,4}",m.LIST_OF_POINTS="",m.PATH="",m.FILTER="",m.Z_INDEX="",m.OFFSET_DISTANCE="",m.DEFINED_PATH="",m.MARKER="",m.TRANSFORM="",m.TRANSFORM_ORIGIN="",m.TEXT="",m.TEXT_TRANSFORM="";var em=function(){var t={linearGradient:/^(linear\-gradient)/i,repeatingLinearGradient:/^(repeating\-linear\-gradient)/i,radialGradient:/^(radial\-gradient)/i,repeatingRadialGradient:/^(repeating\-radial\-gradient)/i,conicGradient:/^(conic\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},e="";function n(t){throw Error(e+": "+t)}function r(){return i("linear-gradient",t.linearGradient,a)||i("repeating-linear-gradient",t.repeatingLinearGradient,a)||i("radial-gradient",t.radialGradient,s)||i("repeating-radial-gradient",t.repeatingRadialGradient,s)||i("conic-gradient",t.conicGradient,s)}function i(e,r,i){return o(r,function(r){var o=i();return o&&!m(t.comma)&&n("Missing comma before color stops"),{type:e,orientation:o,colorStops:p(d)}})}function o(e,r){var i=m(e);if(i){m(t.startCall)||n("Missing (");var o=r(i);return m(t.endCall)||n("Missing )"),o}}function a(){return g("directional",t.sideOrCorner,1)||g("angular",t.angleValue,1)}function s(){var n,r,i=l();return i&&((n=[]).push(i),r=e,m(t.comma)&&((i=l())?n.push(i):e=r)),n}function l(){var t,e,n=((t=g("shape",/^(circle)/i,0))&&(t.style=y()||u()),t||((e=g("shape",/^(ellipse)/i,0))&&(e.style=v()||u()),e));if(n)n.at=c();else{var r=u();if(r){n=r;var i=c();i&&(n.at=i)}else{var o=h();o&&(n={type:"default-radial",at:o})}}return n}function u(){return g("extent-keyword",t.extentKeywords,1)}function c(){if(g("position",/^at/,0)){var t=h();return t||n("Missing positioning value"),t}}function h(){var t={x:v(),y:v()};if(t.x||t.y)return{type:"position",value:t}}function p(e){var r=e(),i=[];if(r)for(i.push(r);m(t.comma);)(r=e())?i.push(r):n("One extra comma");return i}function d(){var e=g("hex",t.hexColor,1)||o(t.rgbaColor,function(){return{type:"rgba",value:p(f)}})||o(t.rgbColor,function(){return{type:"rgb",value:p(f)}})||g("literal",t.literalColor,0);return e||n("Expected color definition"),e.length=v(),e}function f(){return m(t.number)[1]}function v(){return g("%",t.percentageValue,1)||g("position-keyword",t.positionKeywords,1)||y()}function y(){return g("px",t.pixelValue,1)||g("em",t.emValue,1)}function g(t,e,n){var r=m(e);if(r)return{type:t,value:r[n]}}function m(t){var n=/^[\n\r\t\s]+/.exec(e);n&&E(n[0].length);var r=t.exec(e);return r&&E(r[0].length),r}function E(t){e=e.substring(t)}return function(t){var i;return e=t,i=p(r),e.length>0&&n("Invalid input not EOF"),i}}(),eE=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,ex=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,eb=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,eT=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,eP={left:180,top:-90,bottom:90,right:0,"left top":225,"top left":225,"left bottom":135,"bottom left":135,"right top":-45,"top right":-45,"right bottom":45,"bottom right":45},eS=tQ(function(t){return ey("angular"===t.type?Number(t.value):eP[t.value]||0,"deg")}),eN=tQ(function(t){var e=50,n=50,r="%",i="%";if((null==t?void 0:t.type)==="position"){var o=t.value,a=o.x,s=o.y;(null==a?void 0:a.type)==="position-keyword"&&("left"===a.value?e=0:"center"===a.value?e=50:"right"===a.value?e=100:"top"===a.value?n=0:"bottom"===a.value&&(n=100)),(null==s?void 0:s.type)==="position-keyword"&&("left"===s.value?e=0:"center"===s.value?n=50:"right"===s.value?e=100:"top"===s.value?n=0:"bottom"===s.value&&(n=100)),((null==a?void 0:a.type)==="px"||(null==a?void 0:a.type)==="%"||(null==a?void 0:a.type)==="em")&&(r=null==a?void 0:a.type,e=Number(a.value)),((null==s?void 0:s.type)==="px"||(null==s?void 0:s.type)==="%"||(null==s?void 0:s.type)==="em")&&(i=null==s?void 0:s.type,n=Number(s.value))}return{cx:ey(e,r),cy:ey(n,i)}}),eC=tQ(function(t){if(t.indexOf("linear")>-1||t.indexOf("radial")>-1){var e;return em(t).map(function(t){var e=t.type,n=t.orientation,r=t.colorStops;!function(t){var e,n,r,i=t.length;t[i-1].length=null!==(e=t[i-1].length)&&void 0!==e?e:{type:"%",value:"100"},i>1&&(t[0].length=null!==(n=t[0].length)&&void 0!==n?n:{type:"%",value:"0"});for(var o=0,a=Number(t[0].length.value),s=1;s=0)return ey(Number(e),"px");if("deg".search(t)>=0)return ey(Number(e),"deg")}var n=[];e=e.replace(t,function(t){return n.push(t),"U"+t});var r="U("+t.source+")";return n.map(function(t){return ey(Number(e.replace(RegExp("U"+t,"g"),"").replace(RegExp(r,"g"),"*0")),t)})[0]}var eO=function(t){return eA(/px/g,t)},eI=tQ(eO);tQ(function(t){return eA(RegExp("%","g"),t)});var eL=function(t){return(0,te.Z)(t)||isFinite(Number(t))?ey(Number(t)||0,"px"):eA(RegExp("px|%|em|rem","g"),t)},eD=tQ(eL),eG=function(t){return eA(RegExp("deg|rad|grad|turn","g"),t)},eB=tQ(eG);function eF(t){var e=0;return t.unit===L.kDegrees?e=t.value:t.unit===L.kRadians?e=tD(Number(t.value)):t.unit===L.kTurns&&(e=360*Number(t.value)),e}function e_(t,e){var n;return(Array.isArray(t)?n=t.map(function(t){return Number(t)}):(0,tr.Z)(t)?n=t.split(" ").map(function(t){return Number(t)}):(0,te.Z)(t)&&(n=[t]),2===e)?1===n.length?[n[0],n[0]]:[n[0],n[1]]:1===n.length?[n[0],n[0],n[0],n[0]]:2===n.length?[n[0],n[1],n[0],n[1]]:3===n.length?[n[0],n[1],n[2],n[1]]:[n[0],n[1],n[2],n[3]]}function eU(t){return(0,tr.Z)(t)?t.split(" ").map(function(t){return eD(t)}):t.map(function(t){return eD(t.toString())})}function eV(t,e,n,r){if(void 0===r&&(r=!1),t.unit===L.kPixels)return Number(t.value);if(t.unit===L.kPercentage&&n){var i=n.nodeName===k.GROUP?n.getLocalBounds():n.getGeometryBounds();return(r?i.min[e]:0)+t.value/100*i.halfExtents[e]*2}return 0}var eZ=["blur","brightness","drop-shadow","contrast","grayscale","sepia","saturate","hue-rotate","invert"];function eY(t){if(void 0===t&&(t=""),"none"===(t=t.toLowerCase().trim()))return[];for(var e,n=/\s*([\w-]+)\(([^)]*)\)/g,r=[],i=0;(e=n.exec(t))&&e.index===i;)if(i=e.index+e[0].length,eZ.indexOf(e[1])>-1&&r.push({name:e[1],params:e[2].split(" ").map(function(t){return eA(/deg|rad|grad|turn|px|%/g,t)||eM(t)})}),n.lastIndex===t.length)return r;return[]}function ez(t){return t.toString()}var eX=function(t){return"number"==typeof t?ey(t):/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t)?ey(Number(t)):ey(0)},ej=tQ(eX);function eW(t,e){return[t,e,ez]}function eH(t,e){return function(n,r){return[n,r,function(n){return ez((0,ti.Z)(n,t,e))}]}}function eq(t,e){if(t.length===e.length)return[t,e,function(t){return t}]}function eK(t){return 0===t.parsedStyle.d.totalLength&&(t.parsedStyle.d.totalLength=(0,to.D)(t.parsedStyle.d.absolutePath)),t.parsedStyle.d.totalLength}function eJ(t,e){return t[0]===e[0]&&t[1]===e[1]}function e$(t,e){var n=t.prePoint,r=t.currentPoint,i=t.nextPoint,o=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),a=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),s=Math.acos((o+a-(Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2)))/(2*Math.sqrt(o)*Math.sqrt(a)));if(!s||0===Math.sin(s)||(0,tl.Z)(s,0))return{xExtra:0,yExtra:0};var l=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),u=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));return{xExtra:Math.cos(s/2-(l=l>Math.PI/2?Math.PI-l:l))*(e/2*(1/Math.sin(s/2)))-e/2||0,yExtra:Math.cos((u=u>Math.PI/2?Math.PI-u:u)-s/2)*(e/2*(1/Math.sin(s/2)))-e/2||0}}function eQ(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}tQ(function(t){return(0,tr.Z)(t)?t.split(" ").map(ej):t.map(ej)});var e0=function(t,e){var n=t.x*e.x+t.y*e.y,r=Math.sqrt((Math.pow(t.x,2)+Math.pow(t.y,2))*(Math.pow(e.x,2)+Math.pow(e.y,2)));return(t.x*e.y-t.y*e.x<0?-1:1)*Math.acos(n/r)},e1=function(t,e,n,r,i,o,a,s){e=Math.abs(e),n=Math.abs(n);var l=tL(r=(0,tu.Z)(r,360));if(t.x===a.x&&t.y===a.y)return{x:t.x,y:t.y,ellipticalArcAngle:0};if(0===e||0===n)return{x:0,y:0,ellipticalArcAngle:0};var u=(t.x-a.x)/2,c=(t.y-a.y)/2,h={x:Math.cos(l)*u+Math.sin(l)*c,y:-Math.sin(l)*u+Math.cos(l)*c},p=Math.pow(h.x,2)/Math.pow(e,2)+Math.pow(h.y,2)/Math.pow(n,2);p>1&&(e=Math.sqrt(p)*e,n=Math.sqrt(p)*n);var d=(Math.pow(e,2)*Math.pow(n,2)-Math.pow(e,2)*Math.pow(h.y,2)-Math.pow(n,2)*Math.pow(h.x,2))/(Math.pow(e,2)*Math.pow(h.y,2)+Math.pow(n,2)*Math.pow(h.x,2)),f=(i!==o?1:-1)*Math.sqrt(d=d<0?0:d),v={x:f*(e*h.y/n),y:f*(-(n*h.x)/e)},y={x:Math.cos(l)*v.x-Math.sin(l)*v.y+(t.x+a.x)/2,y:Math.sin(l)*v.x+Math.cos(l)*v.y+(t.y+a.y)/2},g={x:(h.x-v.x)/e,y:(h.y-v.y)/n},m=e0({x:1,y:0},g),E=e0(g,{x:(-h.x-v.x)/e,y:(-h.y-v.y)/n});!o&&E>0?E-=2*Math.PI:o&&E<0&&(E+=2*Math.PI);var x=m+(E%=2*Math.PI)*s,b=e*Math.cos(x),T=n*Math.sin(x);return{x:Math.cos(l)*b-Math.sin(l)*T+y.x,y:Math.sin(l)*b+Math.cos(l)*T+y.y,ellipticalArcStartAngle:m,ellipticalArcEndAngle:m+E,ellipticalArcAngle:x,ellipticalArcCenter:y,resultantRx:e,resultantRy:n}};function e2(t,e,n){void 0===n&&(n=!0);var r=t.arcParams,i=r.rx,o=void 0===i?0:i,a=r.ry,s=void 0===a?0:a,l=r.xRotation,u=r.arcFlag,c=r.sweepFlag,h=e1({x:t.prePoint[0],y:t.prePoint[1]},o,s,l,!!u,!!c,{x:t.currentPoint[0],y:t.currentPoint[1]},e),p=e1({x:t.prePoint[0],y:t.prePoint[1]},o,s,l,!!u,!!c,{x:t.currentPoint[0],y:t.currentPoint[1]},n?e+.005:e-.005),d=p.x-h.x,f=p.y-h.y,v=Math.sqrt(d*d+f*f);return{x:-d/v,y:-f/v}}function e3(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function e5(t,e){return e3(t)*e3(e)?(t[0]*e[0]+t[1]*e[1])/(e3(t)*e3(e)):1}function e4(t,e){return(t[0]*e[1]0&&n.push(r),{polygons:e,polylines:n}}(e),i=r.polygons,o=r.polylines,a=function(t){for(var e=[],n=null,r=null,i=null,o=0,a=t.length,s=0;s1&&(n*=Math.sqrt(d),r*=Math.sqrt(d));var f=n*n*(p*p)+r*r*(h*h),v=f?Math.sqrt((n*n*(r*r)-f)/f):1;o===a&&(v*=-1),isNaN(v)&&(v=0);var y=r?v*n*p/r:0,g=n?-(v*r)*h/n:0,m=(s+u)/2+Math.cos(i)*y-Math.sin(i)*g,E=(l+c)/2+Math.sin(i)*y+Math.cos(i)*g,x=[(h-y)/n,(p-g)/r],b=[(-1*h-y)/n,(-1*p-g)/r],T=e4([1,0],x),P=e4(x,b);return -1>=e5(x,b)&&(P=Math.PI),e5(x,b)>=1&&(P=0),0===a&&P>0&&(P-=2*Math.PI),1===a&&P<0&&(P+=2*Math.PI),{cx:m,cy:E,rx:eJ(t,[u,c])?0:n,ry:eJ(t,[u,c])?0:r,startAngle:T,endAngle:T+P,xRotation:i,arcFlag:o,sweepFlag:a}}(n,l);c.arcParams=h}if("Z"===u)n=i,r=t[o+1];else{var p=l.length;n=[l[p-2],l[p-1]]}r&&"Z"===r[0]&&(r=t[o],e[o]&&(e[o].prePoint=n)),c.currentPoint=n,e[o]&&eJ(n,e[o].currentPoint)&&(e[o].prePoint=c.prePoint);var d=r?[r[r.length-2],r[r.length-1]]:null;c.nextPoint=d;var f=c.prePoint;if(["L","H","V"].includes(u))c.startTangent=[f[0]-n[0],f[1]-n[1]],c.endTangent=[n[0]-f[0],n[1]-f[1]];else if("Q"===u){var v=[l[1],l[2]];c.startTangent=[f[0]-v[0],f[1]-v[1]],c.endTangent=[n[0]-v[0],n[1]-v[1]]}else if("T"===u){var y=e[s-1],v=eQ(y.currentPoint,f);"Q"===y.command?(c.command="Q",c.startTangent=[f[0]-v[0],f[1]-v[1]],c.endTangent=[n[0]-v[0],n[1]-v[1]]):(c.command="TL",c.startTangent=[f[0]-n[0],f[1]-n[1]],c.endTangent=[n[0]-f[0],n[1]-f[1]])}else if("C"===u){var g=[l[1],l[2]],m=[l[3],l[4]];c.startTangent=[f[0]-g[0],f[1]-g[1]],c.endTangent=[n[0]-m[0],n[1]-m[1]],0===c.startTangent[0]&&0===c.startTangent[1]&&(c.startTangent=[g[0]-m[0],g[1]-m[1]]),0===c.endTangent[0]&&0===c.endTangent[1]&&(c.endTangent=[m[0]-g[0],m[1]-g[1]])}else if("S"===u){var y=e[s-1],g=eQ(y.currentPoint,f),m=[l[1],l[2]];"C"===y.command?(c.command="C",c.startTangent=[f[0]-g[0],f[1]-g[1]],c.endTangent=[n[0]-m[0],n[1]-m[1]]):(c.command="SQ",c.startTangent=[f[0]-m[0],f[1]-m[1]],c.endTangent=[n[0]-m[0],n[1]-m[1]])}else if("A"===u){var E=e2(c,0),x=E.x,b=E.y,T=e2(c,1,!1),P=T.x,S=T.y;c.startTangent=[x,b],c.endTangent=[P,S]}e.push(c)}return e}(e),s=function(t,e){for(var n=[],r=[],i=[],o=0;oMath.abs(K.determinant(t_))))){var a=tF[3],s=tF[7],l=tF[11],u=tF[12],c=tF[13],h=tF[14],p=tF[15];if(0!==a||0!==s||0!==l){if(tU[0]=a,tU[1]=s,tU[2]=l,tU[3]=p,!K.invert(t_,t_))return;K.transpose(t_,t_),$.fF(i,tU,t_)}else i[0]=i[1]=i[2]=0,i[3]=1;if(e[0]=u,e[1]=c,e[2]=h,tV[0][0]=tF[0],tV[0][1]=tF[1],tV[0][2]=tF[2],tV[1][0]=tF[4],tV[1][1]=tF[5],tV[1][2]=tF[6],tV[2][0]=tF[8],tV[2][1]=tF[9],tV[2][2]=tF[10],n[0]=q.kE(tV[0]),q.Fv(tV[0],tV[0]),r[0]=q.AK(tV[0],tV[1]),tY(tV[1],tV[1],tV[0],1,-r[0]),n[1]=q.kE(tV[1]),q.Fv(tV[1],tV[1]),r[0]/=n[1],r[1]=q.AK(tV[0],tV[2]),tY(tV[2],tV[2],tV[0],1,-r[1]),r[2]=q.AK(tV[1],tV[2]),tY(tV[2],tV[2],tV[1],1,-r[2]),n[2]=q.kE(tV[2]),q.Fv(tV[2],tV[2]),r[1]/=n[2],r[2]/=n[2],q.kC(tZ,tV[1],tV[2]),0>q.AK(tV[0],tZ))for(var d=0;d<3;d++)n[d]*=-1,tV[d][0]*=-1,tV[d][1]*=-1,tV[d][2]*=-1;o[0]=.5*Math.sqrt(Math.max(1+tV[0][0]-tV[1][1]-tV[2][2],0)),o[1]=.5*Math.sqrt(Math.max(1-tV[0][0]+tV[1][1]-tV[2][2],0)),o[2]=.5*Math.sqrt(Math.max(1-tV[0][0]-tV[1][1]+tV[2][2],0)),o[3]=.5*Math.sqrt(Math.max(1+tV[0][0]+tV[1][1]+tV[2][2],0)),tV[2][1]>tV[1][2]&&(o[0]=-o[0]),tV[0][2]>tV[2][0]&&(o[1]=-o[1]),tV[1][0]>tV[0][1]&&(o[2]=-o[2])}}(0===t.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:t.map(ns).reduce(nl),e,n,r,i,o),[[e,n,r,o,i]]}var nc=function(){function t(t,e){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var i=0;i<4;i++)for(var o=0;o<4;o++)n[r][i]+=e[r][o]*t[o][i];return n}return function(e,n,r,i,o){for(var a,s=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],l=0;l<4;l++)s[l][3]=o[l];for(var l=0;l<3;l++)for(var u=0;u<3;u++)s[3][l]+=e[u]*s[u][l];var c=i[0],h=i[1],p=i[2],d=i[3],f=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];f[0][0]=1-2*(h*h+p*p),f[0][1]=2*(c*h-p*d),f[0][2]=2*(c*p+h*d),f[1][0]=2*(c*h+p*d),f[1][1]=1-2*(c*c+p*p),f[1][2]=2*(h*p-c*d),f[2][0]=2*(c*p-h*d),f[2][1]=2*(h*p+c*d),f[2][2]=1-2*(c*c+h*h),s=t(s,f);var v=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];r[2]&&(v[2][1]=r[2],s=t(s,v)),r[1]&&(v[2][1]=0,v[2][0]=r[0],s=t(s,v)),r[0]&&(v[2][0]=0,v[1][0]=r[0],s=t(s,v));for(var l=0;l<3;l++)for(var u=0;u<3;u++)s[l][u]*=n[l];return 0==(a=s)[0][2]&&0==a[0][3]&&0==a[1][2]&&0==a[1][3]&&0==a[2][0]&&0==a[2][1]&&1==a[2][2]&&0==a[2][3]&&0==a[3][2]&&1==a[3][3]?[s[0][0],s[0][1],s[1][0],s[1][1],s[3][0],s[3][1]]:s[0].concat(s[1],s[2],s[3])}}();function nh(t){return t.toFixed(6).replace(".000000","")}function np(t,e){var n,r;return(t.decompositionPair!==e&&(t.decompositionPair=e,n=nu(t)),e.decompositionPair!==t&&(e.decompositionPair=t,r=nu(e)),null===n[0]||null===r[0])?[[!1],[!0],function(n){return n?e[0].d:t[0].d}]:(n[0].push(0),r[0].push(1),[n,r,function(t){var e=function(t,e,n){var r=function(t,e){for(var n=0,r=0;r"].calculator(null,null,{value:e.textTransform},t,null),(0,tg.Z)(e.clipPath)||this.runtime.CSSPropertySyntaxFactory[""].calculator("clipPath",p,e.clipPath,t,this.runtime),e.offsetPath&&this.runtime.CSSPropertySyntaxFactory[""].calculator("offsetPath",d,e.offsetPath,t,this.runtime),e.transform&&(t.parsedStyle.transform=no(e.transform)),e.transformOrigin&&(t.parsedStyle.transformOrigin=ny(e.transformOrigin)),e.markerStart&&(t.parsedStyle.markerStart=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,e.markerStart,e.markerStart,null,null)),e.markerEnd&&(t.parsedStyle.markerEnd=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,e.markerEnd,e.markerEnd,null,null)),e.markerMid&&(t.parsedStyle.markerMid=this.runtime.CSSPropertySyntaxFactory[""].calculator("",e.markerMid,e.markerMid,null,null)),(0,tn.Z)(e.zIndex)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(t,h),(0,tn.Z)(e.offsetDistance)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(t,h),e.transform&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(t,h),e.transformOrigin&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(t,h),f&&(t.geometry.dirty=!0,t.renderable.boundsDirty=!0,t.renderable.renderBoundsDirty=!0,n.forceUpdateGeometry||this.runtime.sceneGraphService.dirtifyToRoot(t))}},t.prototype.parseProperty=function(t,e,n,r){var i=nb[t],o=e;if((""===e||(0,tn.Z)(e))&&(e="unset"),"unset"===e||"initial"===e||"inherit"===e)o=ep(e);else if(i){var a=i.k,s=i.syntax,l=s&&this.getPropertySyntax(s);a&&a.indexOf(e)>-1?o=ep(e):l&&(!r&&l.parserUnmemoize?o=l.parserUnmemoize(e,n):l.parser&&(o=l.parser(e,n)))}return o},t.prototype.computeProperty=function(t,e,n,r){var i=nb[t],o="g-root"===n.id,a=e;if(i){var s=i.syntax,l=i.inh,u=i.d;if(e instanceof t6){var c=e.value;if("unset"===c&&(c=l&&!o?"inherit":"initial"),"initial"===c)(0,tn.Z)(u)||(e=this.parseProperty(t,ee(u)?u(n.nodeName):u,n,r));else if("inherit"===c){var h=this.tryToResolveProperty(n,t,{inherited:!0});return(0,tn.Z)(h)?void this.addUnresolveProperty(n,t):h}}var p=s&&this.getPropertySyntax(s);if(p&&p.calculator){var d=n.parsedStyle[t];a=p.calculator(t,d,e,n,this.runtime)}else a=e instanceof t6?e.value:e}return a},t.prototype.postProcessProperty=function(t,e,n){var r=nb[t];if(r&&r.syntax){var i=r.syntax&&this.getPropertySyntax(r.syntax);i&&i.postProcessor&&i.postProcessor(e,n)}},t.prototype.addUnresolveProperty=function(t,e){var n=nT.get(t);n||(nT.set(t,[]),n=nT.get(t)),-1===n.indexOf(e)&&n.push(e)},t.prototype.tryToResolveProperty=function(t,e,n){if(void 0===n&&(n={}),n.inherited&&t.parentElement&&nP(t.parentElement,e)){var r=t.parentElement.parsedStyle[e];if("unset"!==r&&"initial"!==r&&"inherit"!==r)return r}},t.prototype.recalc=function(t){var e=nT.get(t);if(e&&e.length){var n={};e.forEach(function(e){n[e]=t.attributes[e]}),this.processProperties(t,n),nT.delete(t)}},t.prototype.updateGeometry=function(t){var e=t.nodeName,n=this.runtime.geometryUpdaterFactory[e];if(n){var r=t.geometry;r.contentBounds||(r.contentBounds=new tz),r.renderBounds||(r.renderBounds=new tz);var i=t.parsedStyle,o=n.update(i,t),a=o.cx,s=o.cy,l=o.cz,u=o.hwidth,c=void 0===u?0:u,h=o.hheight,p=void 0===h?0:h,d=o.hdepth,f=[Math.abs(c),Math.abs(p),void 0===d?0:d],v=i.stroke,y=i.lineWidth,g=i.increasedLineWidthForHitTesting,m=i.shadowType,E=void 0===m?"outer":m,x=i.shadowColor,b=i.filter,T=i.transformOrigin,P=[void 0===a?0:a,void 0===s?0:s,void 0===l?0:l];r.contentBounds.update(P,f);var S=e===k.POLYLINE||e===k.POLYGON||e===k.PATH?Math.SQRT2:.5;if(v&&!v.isNone){var N=(((void 0===y?1:y)||0)+((void 0===g?0:g)||0))*S;f[0]+=N,f[1]+=N}if(r.renderBounds.update(P,f),x&&E&&"inner"!==E){var C=r.renderBounds,w=C.min,M=C.max,R=i.shadowBlur,A=i.shadowOffsetX,O=i.shadowOffsetY,I=R||0,L=A||0,D=O||0,G=w[0]-I+L,B=M[0]+I+L,F=w[1]-I+D,_=M[1]+I+D;w[0]=Math.min(w[0],G),M[0]=Math.max(M[0],B),w[1]=Math.min(w[1],F),M[1]=Math.max(M[1],_),r.renderBounds.setMinMax(w,M)}(void 0===b?[]:b).forEach(function(t){var e=t.name,n=t.params;if("blur"===e){var i=n[0].value;r.renderBounds.update(r.renderBounds.center,tR(r.renderBounds.halfExtents,r.renderBounds.halfExtents,[i,i,0]))}else if("drop-shadow"===e){var o=n[0].value,a=n[1].value,s=n[2].value,l=r.renderBounds,u=l.min,c=l.max,h=u[0]-s+o,p=c[0]+s+o,d=u[1]-s+a,f=c[1]+s+a;u[0]=Math.min(u[0],h),c[0]=Math.max(c[0],p),u[1]=Math.min(u[1],d),c[1]=Math.max(c[1],f),r.renderBounds.setMinMax(u,c)}}),t.geometry.dirty=!1;var U=p<0,V=(c<0?-1:1)*(T?eV(T[0],0,t,!0):0),Z=(U?-1:1)*(T?eV(T[1],1,t,!0):0);(V||Z)&&t.setOrigin(V,Z)}},t.prototype.updateSizeAttenuation=function(t,e){t.style.isSizeAttenuation?(t.style.rawLineWidth||(t.style.rawLineWidth=t.style.lineWidth),t.style.lineWidth=(t.style.rawLineWidth||1)/e,t.nodeName===k.CIRCLE&&(t.style.rawR||(t.style.rawR=t.style.r),t.style.r=(t.style.rawR||1)/e)):(t.style.rawLineWidth&&(t.style.lineWidth=t.style.rawLineWidth,delete t.style.rawLineWidth),t.nodeName===k.CIRCLE&&t.style.rawR&&(t.style.r=t.style.rawR,delete t.style.rawR))},t.prototype.isPropertyInheritable=function(t){var e=nb[t];return!!e&&e.inh},t}(),nN=function(){function t(){this.parser=eB,this.parserUnmemoize=eG,this.parserWithCSSDisabled=null,this.mixer=eW}return t.prototype.calculator=function(t,e,n,r){return eF(n)},t}(),nC=function(){function t(){}return t.prototype.calculator=function(t,e,n,r,i){return n instanceof t6&&(n=null),i.sceneGraphService.updateDisplayObjectDependency(t,e,n,r),"clipPath"===t&&r.forEach(function(t){0===t.childNodes.length&&i.sceneGraphService.dirtifyToRoot(t)}),n},t}(),nw=function(){function t(){this.parser=eM,this.parserWithCSSDisabled=eM,this.mixer=eR}return t.prototype.calculator=function(t,e,n,r){return n instanceof t6?"none"===n.value?ed:ef:n},t}(),nk=function(){function t(){this.parser=eY}return t.prototype.calculator=function(t,e,n){return n instanceof t6?[]:n},t}();function nM(t){var e=t.parsedStyle.fontSize;return(0,tn.Z)(e)?null:e}var nR=function(){function t(){this.parser=eD,this.parserUnmemoize=eL,this.parserWithCSSDisabled=null,this.mixer=eW}return t.prototype.calculator=function(t,e,n,r,i){if((0,te.Z)(n))return n;if(!ea.isRelativeUnit(n.unit))return n.value;var o,a=i.styleValueRegistry;if(n.unit===L.kPercentage)return 0;if(n.unit===L.kEms){if(r.parentNode){var s=nM(r.parentNode);if(s)return s*n.value;a.addUnresolveProperty(r,t)}else a.addUnresolveProperty(r,t);return 0}if(n.unit===L.kRems){if(null===(o=null==r?void 0:r.ownerDocument)||void 0===o?void 0:o.documentElement){var s=nM(r.ownerDocument.documentElement);if(s)return s*n.value;a.addUnresolveProperty(r,t)}else a.addUnresolveProperty(r,t);return 0}},t}(),nA=function(){function t(){this.mixer=eq}return t.prototype.parser=function(t){var e=eU((0,te.Z)(t)?[t]:t);return 1===e.length?[e[0],e[0]]:[e[0],e[1]]},t.prototype.calculator=function(t,e,n){return n.map(function(t){return t.value})},t}(),nO=function(){function t(){this.mixer=eq}return t.prototype.parser=function(t){var e=eU((0,te.Z)(t)?[t]:t);return 1===e.length?[e[0],e[0],e[0],e[0]]:2===e.length?[e[0],e[1],e[0],e[1]]:3===e.length?[e[0],e[1],e[2],e[1]]:[e[0],e[1],e[2],e[3]]},t.prototype.calculator=function(t,e,n){return n.map(function(t){return t.value})},t}(),nI=function(){function t(){}return t.prototype.calculator=function(t,e,n,r){n instanceof t6&&(n=null);var i=null==n?void 0:n.cloneNode(!0);return i&&(i.style.isMarker=!0),i},t}(),nL=function(){function t(){this.mixer=eW,this.parser=ej,this.parserUnmemoize=eX,this.parserWithCSSDisabled=null}return t.prototype.calculator=function(t,e,n){return n.value},t}(),nD=function(){function t(){this.parser=ej,this.parserUnmemoize=eX,this.parserWithCSSDisabled=null,this.mixer=eH(0,1)}return t.prototype.calculator=function(t,e,n){return n.value},t.prototype.postProcessor=function(t){var e=t.parsedStyle,n=e.offsetPath,r=e.offsetDistance;if(n){var i=n.nodeName;if(i===k.LINE||i===k.PATH||i===k.POLYLINE){var o=n.getPoint(r);o&&t.setLocalPosition(o.x,o.y)}}},t}(),nG=function(){function t(){this.parser=ej,this.parserUnmemoize=eX,this.parserWithCSSDisabled=null,this.mixer=eH(0,1)}return t.prototype.calculator=function(t,e,n){return n.value},t}(),nB=function(){function t(){this.parser=e6,this.parserWithCSSDisabled=e6,this.mixer=e7}return t.prototype.calculator=function(t,e,n){return n instanceof t6&&"unset"===n.value?{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new tH(0,0,0,0)}:n},t}(),nF=function(t){function e(){var e=t.apply(this,(0,W.ev)([],(0,W.CR)(arguments),!1))||this;return e.mixer=eH(0,1/0),e}return(0,W.ZT)(e,t),e}(nR),n_=function(){function t(){}return t.prototype.calculator=function(t,e,n,r){return n instanceof t6?"unset"===n.value?"":n.value:"".concat(n)},t.prototype.postProcessor=function(t){t.nodeValue="".concat(t.parsedStyle.text)||""},t}(),nU=function(){function t(){}return t.prototype.calculator=function(t,e,n,r){var i=r.getAttribute("text");if(i){var o=i;"capitalize"===n.value?o=i.charAt(0).toUpperCase()+i.slice(1):"lowercase"===n.value?o=i.toLowerCase():"uppercase"===n.value&&(o=i.toUpperCase()),r.parsedStyle.text=o}return n.value},t}(),nV={},nZ=0,nY="undefined"!=typeof window&&void 0!==window.document;function nz(t,e){var n=Number(t.parsedStyle.zIndex||0),r=Number(e.parsedStyle.zIndex||0);if(n===r){var i=t.parentNode;if(i){var o=i.childNodes||[];return o.indexOf(t)-o.indexOf(e)}}return n-r}function nX(t,e,n){nY&&t.style&&(t.style.width=e+"px",t.style.height=n+"px")}function nj(t,e){if(nY)return document.defaultView.getComputedStyle(t,null).getPropertyValue(e)}var nW={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"},nH="object"==typeof performance&&performance.now?performance:Date,nq=1,nK="object"==typeof self&&self.self==self?self:"object"==typeof n.g&&n.g.global==n.g?n.g:{},nJ=Date.now(),n$={},nQ=Date.now(),n0=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function");var e=Date.now(),n=e-nQ,r=nq++;return n$[r]=t,Object.keys(n$).length>1||setTimeout(function(){nQ=e;var t=n$;n$={},Object.keys(t).forEach(function(e){return t[e](nK.performance&&"function"==typeof nK.performance.now?nK.performance.now():Date.now()-nJ)})},n>16?0:16-n),r},n1=function(t){return"string"!=typeof t?n0:""===t?nK.requestAnimationFrame:nK[t+"RequestAnimationFrame"]},n2=function(t,e){for(var n=0;void 0!==t[n];){if(e(t[n]))return t[n];n+=1}}(["","webkit","moz","ms","o"],function(t){return!!n1(t)}),n3=n1(n2),n5="string"!=typeof n2?function(t){delete n$[t]}:""===n2?nK.cancelAnimationFrame:nK[n2+"CancelAnimationFrame"]||nK[n2+"CancelRequestAnimationFrame"];nK.requestAnimationFrame=n3,nK.cancelAnimationFrame=n5;var n4=function(){function t(){this.callbacks=[]}return t.prototype.getCallbacksNum=function(){return this.callbacks.length},t.prototype.tapPromise=function(t,e){this.callbacks.push(e)},t.prototype.promise=function(){for(var t=[],e=0;e-1){var l=(0,W.CR)(t.split(":"),2),u=l[0];t=l[1],s=u,a=!0}if(t=r?"".concat(t,"capture"):t,e=ee(e)?e:e.handleEvent,a){var c=e;e=function(){for(var t,e=[],n=0;n0},e.prototype.isDefaultNamespace=function(t){throw Error(tq)},e.prototype.lookupNamespaceURI=function(t){throw Error(tq)},e.prototype.lookupPrefix=function(t){throw Error(tq)},e.prototype.normalize=function(){throw Error(tq)},e.prototype.isEqualNode=function(t){return this===t},e.prototype.isSameNode=function(t){return this.isEqualNode(t)},Object.defineProperty(e.prototype,"parent",{get:function(){return this.parentNode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.childNodes.length>0?this.childNodes[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.childNodes.length>0?this.childNodes[this.childNodes.length-1]:null},enumerable:!1,configurable:!0}),e.prototype.compareDocumentPosition=function(t){if(t===this)return 0;for(var n,r=t,i=this,o=[r],a=[i];null!==(n=r.parentNode)&&void 0!==n?n:i.parentNode;)r=r.parentNode?(o.push(r.parentNode),r.parentNode):r,i=i.parentNode?(a.push(i.parentNode),i.parentNode):i;if(r!==i)return e.DOCUMENT_POSITION_DISCONNECTED|e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|e.DOCUMENT_POSITION_PRECEDING;var s=o.length>a.length?o:a,l=s===o?a:o;if(s[s.length-l.length]===l[0])return s===o?e.DOCUMENT_POSITION_CONTAINED_BY|e.DOCUMENT_POSITION_FOLLOWING:e.DOCUMENT_POSITION_CONTAINS|e.DOCUMENT_POSITION_PRECEDING;for(var u=s.length-l.length,c=l.length-1;c>=0;c--){var h=l[c],p=s[u+c];if(p!==h){var d=h.parentNode.childNodes;if(d.indexOf(h)0&&e;)e=e.parentNode,t--;return e},e.prototype.forEach=function(t,e){void 0===e&&(e=!1),t(this)||(e?this.childNodes.slice():this.childNodes).forEach(function(e){e.forEach(t)})},e.DOCUMENT_POSITION_DISCONNECTED=1,e.DOCUMENT_POSITION_PRECEDING=2,e.DOCUMENT_POSITION_FOLLOWING=4,e.DOCUMENT_POSITION_CONTAINS=8,e.DOCUMENT_POSITION_CONTAINED_BY=16,e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32,e}(rx),rT=function(){function t(t,e){var n=this;this.globalRuntime=t,this.context=e,this.emitter=new H.Z,this.nativeHTMLMap=new WeakMap,this.cursor="default",this.mappingTable={},this.mappingState={trackingData:{}},this.eventPool=new Map,this.tmpMatrix=K.create(),this.tmpVec3=q.Ue(),this.onPointerDown=function(t){var e=n.createPointerEvent(t);if(n.dispatchEvent(e,"pointerdown"),"touch"===e.pointerType)n.dispatchEvent(e,"touchstart");else if("mouse"===e.pointerType||"pen"===e.pointerType){var r=2===e.button;n.dispatchEvent(e,r?"rightdown":"mousedown")}n.trackingData(t.pointerId).pressTargetsByButton[t.button]=e.composedPath(),n.freeEvent(e)},this.onPointerUp=function(t){var e,r=nH.now(),i=n.createPointerEvent(t,void 0,void 0,n.context.config.alwaysTriggerPointerEventOnCanvas?n.rootTarget:void 0);if(n.dispatchEvent(i,"pointerup"),"touch"===i.pointerType)n.dispatchEvent(i,"touchend");else if("mouse"===i.pointerType||"pen"===i.pointerType){var o=2===i.button;n.dispatchEvent(i,o?"rightup":"mouseup")}var a=n.trackingData(t.pointerId),s=n.findMountedTarget(a.pressTargetsByButton[t.button]),l=s;if(s&&!i.composedPath().includes(s)){for(var u=s;u&&!i.composedPath().includes(u);){if(i.currentTarget=u,n.notifyTarget(i,"pointerupoutside"),"touch"===i.pointerType)n.notifyTarget(i,"touchendoutside");else if("mouse"===i.pointerType||"pen"===i.pointerType){var o=2===i.button;n.notifyTarget(i,o?"rightupoutside":"mouseupoutside")}rb.isNode(u)&&(u=u.parentNode)}delete a.pressTargetsByButton[t.button],l=u}if(l){var c=n.clonePointerEvent(i,"click");c.target=l,c.path=[],a.clicksByButton[t.button]||(a.clicksByButton[t.button]={clickCount:0,target:c.target,timeStamp:r});var h=a.clicksByButton[t.button];h.target===c.target&&r-h.timeStamp<200?++h.clickCount:h.clickCount=1,h.target=c.target,h.timeStamp=r,c.detail=h.clickCount,(null===(e=i.detail)||void 0===e?void 0:e.preventClick)||(n.context.config.useNativeClickEvent||"mouse"!==c.pointerType&&"touch"!==c.pointerType||n.dispatchEvent(c,"click"),n.dispatchEvent(c,"pointertap")),n.freeEvent(c)}n.freeEvent(i)},this.onPointerMove=function(t){var e=n.createPointerEvent(t,void 0,void 0,n.context.config.alwaysTriggerPointerEventOnCanvas?n.rootTarget:void 0),r="mouse"===e.pointerType||"pen"===e.pointerType,i=n.trackingData(t.pointerId),o=n.findMountedTarget(i.overTargets);if(i.overTargets&&o!==e.target){var a="mousemove"===t.type?"mouseout":"pointerout",s=n.createPointerEvent(t,a,o||void 0);if(n.dispatchEvent(s,"pointerout"),r&&n.dispatchEvent(s,"mouseout"),!e.composedPath().includes(o)){var l=n.createPointerEvent(t,"pointerleave",o||void 0);for(l.eventPhase=l.AT_TARGET;l.target&&!e.composedPath().includes(l.target);)l.currentTarget=l.target,n.notifyTarget(l),r&&n.notifyTarget(l,"mouseleave"),rb.isNode(l.target)&&(l.target=l.target.parentNode);n.freeEvent(l)}n.freeEvent(s)}if(o!==e.target){var u="mousemove"===t.type?"mouseover":"pointerover",c=n.clonePointerEvent(e,u);n.dispatchEvent(c,"pointerover"),r&&n.dispatchEvent(c,"mouseover");for(var h=o&&rb.isNode(o)&&o.parentNode;h&&h!==(rb.isNode(n.rootTarget)&&n.rootTarget.parentNode)&&h!==e.target;)h=h.parentNode;if(!h||h===(rb.isNode(n.rootTarget)&&n.rootTarget.parentNode)){var p=n.clonePointerEvent(e,"pointerenter");for(p.eventPhase=p.AT_TARGET;p.target&&p.target!==o&&p.target!==(rb.isNode(n.rootTarget)&&n.rootTarget.parentNode);)p.currentTarget=p.target,n.notifyTarget(p),r&&n.notifyTarget(p,"mouseenter"),rb.isNode(p.target)&&(p.target=p.target.parentNode);n.freeEvent(p)}n.freeEvent(c)}n.dispatchEvent(e,"pointermove"),"touch"===e.pointerType&&n.dispatchEvent(e,"touchmove"),r&&(n.dispatchEvent(e,"mousemove"),n.cursor=n.getCursor(e.target)),i.overTargets=e.composedPath(),n.freeEvent(e)},this.onPointerOut=function(t){var e=n.trackingData(t.pointerId);if(e.overTargets){var r="mouse"===t.pointerType||"pen"===t.pointerType,i=n.findMountedTarget(e.overTargets),o=n.createPointerEvent(t,"pointerout",i||void 0);n.dispatchEvent(o),r&&n.dispatchEvent(o,"mouseout");var a=n.createPointerEvent(t,"pointerleave",i||void 0);for(a.eventPhase=a.AT_TARGET;a.target&&a.target!==(rb.isNode(n.rootTarget)&&n.rootTarget.parentNode);)a.currentTarget=a.target,n.notifyTarget(a),r&&n.notifyTarget(a,"mouseleave"),rb.isNode(a.target)&&(a.target=a.target.parentNode);e.overTargets=null,n.freeEvent(o),n.freeEvent(a)}n.cursor=null},this.onPointerOver=function(t){var e=n.trackingData(t.pointerId),r=n.createPointerEvent(t),i="mouse"===r.pointerType||"pen"===r.pointerType;n.dispatchEvent(r,"pointerover"),i&&n.dispatchEvent(r,"mouseover"),"mouse"===r.pointerType&&(n.cursor=n.getCursor(r.target));var o=n.clonePointerEvent(r,"pointerenter");for(o.eventPhase=o.AT_TARGET;o.target&&o.target!==(rb.isNode(n.rootTarget)&&n.rootTarget.parentNode);)o.currentTarget=o.target,n.notifyTarget(o),i&&n.notifyTarget(o,"mouseenter"),rb.isNode(o.target)&&(o.target=o.target.parentNode);e.overTargets=r.composedPath(),n.freeEvent(r),n.freeEvent(o)},this.onPointerUpOutside=function(t){var e=n.trackingData(t.pointerId),r=n.findMountedTarget(e.pressTargetsByButton[t.button]),i=n.createPointerEvent(t);if(r){for(var o=r;o;)i.currentTarget=o,n.notifyTarget(i,"pointerupoutside"),"touch"===i.pointerType||("mouse"===i.pointerType||"pen"===i.pointerType)&&n.notifyTarget(i,2===i.button?"rightupoutside":"mouseupoutside"),rb.isNode(o)&&(o=o.parentNode);delete e.pressTargetsByButton[t.button]}n.freeEvent(i)},this.onWheel=function(t){var e=n.createWheelEvent(t);n.dispatchEvent(e),n.freeEvent(e)},this.onClick=function(t){if(n.context.config.useNativeClickEvent){var e=n.createPointerEvent(t);n.dispatchEvent(e),n.freeEvent(e)}},this.onPointerCancel=function(t){var e=n.createPointerEvent(t,void 0,void 0,n.context.config.alwaysTriggerPointerEventOnCanvas?n.rootTarget:void 0);n.dispatchEvent(e),n.freeEvent(e)}}return t.prototype.init=function(){this.rootTarget=this.context.renderingContext.root.parentNode,this.addEventMapping("pointerdown",this.onPointerDown),this.addEventMapping("pointerup",this.onPointerUp),this.addEventMapping("pointermove",this.onPointerMove),this.addEventMapping("pointerout",this.onPointerOut),this.addEventMapping("pointerleave",this.onPointerOut),this.addEventMapping("pointercancel",this.onPointerCancel),this.addEventMapping("pointerover",this.onPointerOver),this.addEventMapping("pointerupoutside",this.onPointerUpOutside),this.addEventMapping("wheel",this.onWheel),this.addEventMapping("click",this.onClick)},t.prototype.destroy=function(){this.emitter.removeAllListeners(),this.mappingTable={},this.mappingState={},this.eventPool.clear()},t.prototype.getScale=function(){var t=this.context.contextService.getBoundingClientRect(),e=1,n=1,r=this.context.contextService.getDomElement();if(r&&t){var i=r.offsetWidth,o=r.offsetHeight;i&&o&&(e=t.width/i,n=t.height/o)}return{scaleX:e,scaleY:n,bbox:t}},t.prototype.client2Viewport=function(t){var e=this.getScale(),n=e.scaleX,r=e.scaleY,i=e.bbox;return new tW((t.x-((null==i?void 0:i.left)||0))/n,(t.y-((null==i?void 0:i.top)||0))/r)},t.prototype.viewport2Client=function(t){var e=this.getScale(),n=e.scaleX,r=e.scaleY,i=e.bbox;return new tW((t.x+((null==i?void 0:i.left)||0))*n,(t.y+((null==i?void 0:i.top)||0))*r)},t.prototype.viewport2Canvas=function(t){var e=t.x,n=t.y,r=this.rootTarget.defaultView.getCamera(),i=this.context.config,o=i.width,a=i.height,s=r.getPerspectiveInverse(),l=r.getWorldTransform(),u=K.multiply(this.tmpMatrix,l,s),c=q.t8(this.tmpVec3,e/o*2-1,(1-n/a)*2-1,0);return q.fF(c,c,u),new tW(c[0],c[1])},t.prototype.canvas2Viewport=function(t){var e=this.rootTarget.defaultView.getCamera(),n=e.getPerspective(),r=e.getViewTransform(),i=K.multiply(this.tmpMatrix,n,r),o=q.t8(this.tmpVec3,t.x,t.y,0);q.fF(this.tmpVec3,this.tmpVec3,i);var a=this.context.config,s=a.width,l=a.height;return new tW((o[0]+1)/2*s,(1-(o[1]+1)/2)*l)},t.prototype.setPickHandler=function(t){this.pickHandler=t},t.prototype.addEventMapping=function(t,e){this.mappingTable[t]||(this.mappingTable[t]=[]),this.mappingTable[t].push({fn:e,priority:0}),this.mappingTable[t].sort(function(t,e){return t.priority-e.priority})},t.prototype.mapEvent=function(t){if(this.rootTarget){var e=this.mappingTable[t.type];if(e)for(var n=0,r=e.length;n=1;r--)if(t.currentTarget=n[r],this.notifyTarget(t,e),t.propagationStopped||t.propagationImmediatelyStopped)return;if(t.eventPhase=t.AT_TARGET,t.currentTarget=t.target,this.notifyTarget(t,e),!t.propagationStopped&&!t.propagationImmediatelyStopped){var i=n.indexOf(t.currentTarget);t.eventPhase=t.BUBBLING_PHASE;for(var r=i+1;ri||n>o?null:!a&&this.pickHandler(t)||this.rootTarget||null},t.prototype.isNativeEventFromCanvas=function(t,e){var n=null==e?void 0:e.target;if((null==n?void 0:n.shadowRoot)&&(n=e.composedPath()[0]),n){if(n===t)return!0;if(t&&t.contains)return t.contains(n)}return null!=e&&!!e.composedPath&&e.composedPath().indexOf(t)>-1},t.prototype.getExistedHTML=function(t){var e,n;if(t.nativeEvent.composedPath)try{for(var r=(0,W.XA)(t.nativeEvent.composedPath()),i=r.next();!i.done;i=r.next()){var o=i.value,a=this.nativeHTMLMap.get(o);if(a)return a}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return null},t.prototype.pickTarget=function(t){return this.hitTest({clientX:t.clientX,clientY:t.clientY,viewportX:t.viewportX,viewportY:t.viewportY,x:t.canvasX,y:t.canvasY})},t.prototype.createPointerEvent=function(t,e,n,r){var i=this.allocateEvent(rg);this.copyPointerData(t,i),this.copyMouseData(t,i),this.copyData(t,i),i.nativeEvent=t.nativeEvent,i.originalEvent=t;var o=this.getExistedHTML(i),a=this.context.contextService.getDomElement();return i.target=null!=n?n:o||this.isNativeEventFromCanvas(a,i.nativeEvent)&&this.pickTarget(i)||r,"string"==typeof e&&(i.type=e),i},t.prototype.createWheelEvent=function(t){var e=this.allocateEvent(rm);this.copyWheelData(t,e),this.copyMouseData(t,e),this.copyData(t,e),e.nativeEvent=t.nativeEvent,e.originalEvent=t;var n=this.getExistedHTML(e),r=this.context.contextService.getDomElement();return e.target=n||this.isNativeEventFromCanvas(r,e.nativeEvent)&&this.pickTarget(e),e},t.prototype.trackingData=function(t){return this.mappingState.trackingData[t]||(this.mappingState.trackingData[t]={pressTargetsByButton:{},clicksByButton:{},overTarget:null}),this.mappingState.trackingData[t]},t.prototype.cloneWheelEvent=function(t){var e=this.allocateEvent(rm);return e.nativeEvent=t.nativeEvent,e.originalEvent=t.originalEvent,this.copyWheelData(t,e),this.copyMouseData(t,e),this.copyData(t,e),e.target=t.target,e.path=t.composedPath().slice(),e.type=t.type,e},t.prototype.clonePointerEvent=function(t,e){var n=this.allocateEvent(rg);return n.nativeEvent=t.nativeEvent,n.originalEvent=t.originalEvent,this.copyPointerData(t,n),this.copyMouseData(t,n),this.copyData(t,n),n.target=t.target,n.path=t.composedPath().slice(),n.type=null!=e?e:n.type,n},t.prototype.copyPointerData=function(t,e){e.pointerId=t.pointerId,e.width=t.width,e.height=t.height,e.isPrimary=t.isPrimary,e.pointerType=t.pointerType,e.pressure=t.pressure,e.tangentialPressure=t.tangentialPressure,e.tiltX=t.tiltX,e.tiltY=t.tiltY,e.twist=t.twist},t.prototype.copyMouseData=function(t,e){e.altKey=t.altKey,e.button=t.button,e.buttons=t.buttons,e.ctrlKey=t.ctrlKey,e.metaKey=t.metaKey,e.shiftKey=t.shiftKey,e.client.copyFrom(t.client),e.movement.copyFrom(t.movement),e.canvas.copyFrom(t.canvas),e.screen.copyFrom(t.screen),e.global.copyFrom(t.global),e.offset.copyFrom(t.offset)},t.prototype.copyWheelData=function(t,e){e.deltaMode=t.deltaMode,e.deltaX=t.deltaX,e.deltaY=t.deltaY,e.deltaZ=t.deltaZ},t.prototype.copyData=function(t,e){e.isTrusted=t.isTrusted,e.timeStamp=nH.now(),e.type=t.type,e.detail=t.detail,e.view=t.view,e.page.copyFrom(t.page),e.viewport.copyFrom(t.viewport)},t.prototype.allocateEvent=function(t){this.eventPool.has(t)||this.eventPool.set(t,[]);var e=this.eventPool.get(t).pop()||new t(this);return e.eventPhase=e.NONE,e.currentTarget=null,e.path=[],e.target=null,e},t.prototype.freeEvent=function(t){if(t.manager!==this)throw Error("It is illegal to free an event not managed by this EventBoundary!");var e=t.constructor;this.eventPool.has(e)||this.eventPool.set(e,[]),this.eventPool.get(e).push(t)},t.prototype.notifyTarget=function(t,e){e=null!=e?e:t.type;var n=t.eventPhase===t.CAPTURING_PHASE||t.eventPhase===t.AT_TARGET?"".concat(e,"capture"):e;this.notifyListeners(t,n),t.eventPhase===t.AT_TARGET&&this.notifyListeners(t,e)},t.prototype.notifyListeners=function(t,e){var n=t.currentTarget.emitter,r=n._events[e];if(r){if("fn"in r)r.once&&n.removeListener(e,r.fn,void 0,!0),r.fn.call(t.currentTarget||r.context,t);else for(var i=0;i=0;n--){var r=t[n];if(r===this.rootTarget||rb.isNode(r)&&r.parentNode===e)e=t[n];else break}return e},t.prototype.getCursor=function(t){for(var e=t;e;){var n=!!e.getAttribute&&e.getAttribute("cursor");if(n)return n;e=rb.isNode(e)&&e.parentNode}},t}(),rP=function(){function t(){}return t.prototype.getOrCreateCanvas=function(t,e){if(this.canvas)return this.canvas;if(t||rG.offscreenCanvas)this.canvas=t||rG.offscreenCanvas,this.context=this.canvas.getContext("2d",(0,W.pi)({willReadFrequently:!0},e));else try{this.canvas=new window.OffscreenCanvas(0,0),this.context=this.canvas.getContext("2d",(0,W.pi)({willReadFrequently:!0},e)),this.context&&this.context.measureText||(this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"))}catch(t){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d",(0,W.pi)({willReadFrequently:!0},e))}return this.canvas.width=10,this.canvas.height=10,this.canvas},t.prototype.getOrCreateContext=function(t,e){return this.context||this.getOrCreateCanvas(t,e),this.context},t}();(E=z||(z={}))[E.CAMERA_CHANGED=0]="CAMERA_CHANGED",E[E.DISPLAY_OBJECT_CHANGED=1]="DISPLAY_OBJECT_CHANGED",E[E.NONE=2]="NONE";var rS=function(){function t(t,e){this.globalRuntime=t,this.context=e,this.inited=!1,this.stats={total:0,rendered:0},this.zIndexCounter=0,this.hooks={init:new n8,initAsync:new n4,dirtycheck:new n6,cull:new n6,beginFrame:new n8,beforeRender:new n8,render:new n8,afterRender:new n8,endFrame:new n8,destroy:new n8,pick:new n9,pickSync:new n6,pointerDown:new n8,pointerUp:new n8,pointerMove:new n8,pointerOut:new n8,pointerOver:new n8,pointerWheel:new n8,pointerCancel:new n8,click:new n8}}return t.prototype.init=function(t){var e=this,n=(0,W.pi)((0,W.pi)({},this.globalRuntime),this.context);this.context.renderingPlugins.forEach(function(t){t.apply(n,e.globalRuntime)}),this.hooks.init.call(),0===this.hooks.initAsync.getCallbacksNum()?(this.inited=!0,t()):this.hooks.initAsync.promise().then(function(){e.inited=!0,t()})},t.prototype.getStats=function(){return this.stats},t.prototype.disableDirtyRectangleRendering=function(){return!this.context.config.renderer.getConfig().enableDirtyRectangleRendering||this.context.renderingContext.renderReasons.has(z.CAMERA_CHANGED)},t.prototype.render=function(t,e,n){var r=this;this.stats.total=0,this.stats.rendered=0,this.zIndexCounter=0;var i=this.context.renderingContext;if(this.globalRuntime.sceneGraphService.syncHierarchy(i.root),this.globalRuntime.sceneGraphService.triggerPendingEvents(),i.renderReasons.size&&this.inited){i.dirtyRectangleRenderingDisabled=this.disableDirtyRectangleRendering();var o=1===i.renderReasons.size&&i.renderReasons.has(z.CAMERA_CHANGED),a=!t.disableRenderHooks||!(t.disableRenderHooks&&o);a&&this.renderDisplayObject(i.root,t,i),this.hooks.beginFrame.call(e),a&&i.renderListCurrentFrame.forEach(function(t){r.hooks.beforeRender.call(t),r.hooks.render.call(t),r.hooks.afterRender.call(t)}),this.hooks.endFrame.call(e),i.renderListCurrentFrame=[],i.renderReasons.clear(),n()}},t.prototype.renderDisplayObject=function(t,e,n){var r=this,i=e.renderer.getConfig(),o=i.enableDirtyCheck,a=i.enableCulling;this.globalRuntime.enableCSSParsing&&this.globalRuntime.styleValueRegistry.recalc(t);var s=t.renderable,l=o?s.dirty||n.dirtyRectangleRenderingDisabled?t:null:t;if(l){var u=a?this.hooks.cull.call(l,this.context.camera):l;u&&(this.stats.rendered++,n.renderListCurrentFrame.push(u))}t.renderable.dirty=!1,t.sortable.renderOrder=this.zIndexCounter++,this.stats.total++;var c=t.sortable;c.dirty&&(this.sort(t,c),c.dirty=!1,c.dirtyChildren=[],c.dirtyReason=void 0),(c.sorted||t.childNodes).forEach(function(t){r.renderDisplayObject(t,e,n)})},t.prototype.sort=function(t,e){e.sorted&&e.dirtyReason!==Z.Z_INDEX_CHANGED?e.dirtyChildren.forEach(function(n){if(-1===t.childNodes.indexOf(n)){var r=e.sorted.indexOf(n);r>=0&&e.sorted.splice(r,1)}else if(0===e.sorted.length)e.sorted.push(n);else{var i=function(t,e){for(var n=0,r=t.length;n>>1;0>nz(t[i],e)?n=i+1:r=i}return n}(e.sorted,n);e.sorted.splice(i,0,n)}}):e.sorted=t.childNodes.slice().sort(nz)},t.prototype.destroy=function(){this.inited=!1,this.hooks.destroy.call(),this.globalRuntime.sceneGraphService.clearPendingEvents()},t.prototype.dirtify=function(){this.context.renderingContext.renderReasons.add(z.DISPLAY_OBJECT_CHANGED)},t}(),rN=/\[\s*(.*)=(.*)\s*\]/,rC=function(){function t(){}return t.prototype.selectOne=function(t,e){var n=this;if(t.startsWith("."))return e.find(function(e){return((null==e?void 0:e.classList)||[]).indexOf(n.getIdOrClassname(t))>-1});if(t.startsWith("#"))return e.find(function(e){return e.id===n.getIdOrClassname(t)});if(!t.startsWith("["))return e.find(function(n){return e!==n&&n.nodeName===t});var r=this.getAttribute(t),i=r.name,o=r.value;return i?e.find(function(t){return e!==t&&("name"===i?t.name===o:n.attributeToString(t,i)===o)}):null},t.prototype.selectAll=function(t,e){var n=this;if(t.startsWith("."))return e.findAll(function(r){return e!==r&&((null==r?void 0:r.classList)||[]).indexOf(n.getIdOrClassname(t))>-1});if(t.startsWith("#"))return e.findAll(function(r){return e!==r&&r.id===n.getIdOrClassname(t)});if(!t.startsWith("["))return e.findAll(function(n){return e!==n&&n.nodeName===t});var r=this.getAttribute(t),i=r.name,o=r.value;return i?e.findAll(function(t){return e!==t&&("name"===i?t.name===o:n.attributeToString(t,i)===o)}):[]},t.prototype.is=function(t,e){if(t.startsWith("."))return e.className===this.getIdOrClassname(t);if(t.startsWith("#"))return e.id===this.getIdOrClassname(t);if(!t.startsWith("["))return e.nodeName===t;var n=this.getAttribute(t),r=n.name,i=n.value;return"name"===r?e.name===i:this.attributeToString(e,r)===i},t.prototype.getIdOrClassname=function(t){return t.substring(1)},t.prototype.getAttribute=function(t){var e=t.match(rN),n="",r="";return e&&e.length>2&&(n=e[1].replace(/"/g,""),r=e[2].replace(/"/g,"")),{name:n,value:r}},t.prototype.attributeToString=function(t,e){if(!t.getAttribute)return"";var n=t.getAttribute(e);return(0,tn.Z)(n)?"":n.toString?n.toString():""},t}(),rw=function(t){function e(e,n,r,i,o,a,s,l){var u=t.call(this,null)||this;return u.relatedNode=n,u.prevValue=r,u.newValue=i,u.attrName=o,u.attrChange=a,u.prevParsedValue=s,u.newParsedValue=l,u.type=e,u}return(0,W.ZT)(e,t),e.ADDITION=2,e.MODIFICATION=1,e.REMOVAL=3,e}(rv);function rk(t){var e=t.renderable;e&&(e.renderBoundsDirty=!0,e.boundsDirty=!0)}(x=X||(X={})).REPARENT="reparent",x.DESTROY="destroy",x.ATTR_MODIFIED="DOMAttrModified",x.INSERTED="DOMNodeInserted",x.REMOVED="removed",x.MOUNTED="DOMNodeInsertedIntoDocument",x.UNMOUNTED="DOMNodeRemovedFromDocument",x.BOUNDS_CHANGED="bounds-changed",x.CULLED="culled";var rM=new rw(X.REPARENT,null,"","","",0,"",""),rR=function(){function t(t){var e,n,r,i,o,a,s,l,u,c,h,p,d=this;this.runtime=t,this.pendingEvents=[],this.boundsChangedEvent=new rE(X.BOUNDS_CHANGED),this.rotate=(e=Q.Ue(),function(t,n,r,i,o){void 0===r&&(r=0),void 0===i&&(i=0),void 0===o&&(o=!0),"number"==typeof n&&(n=q.al(n,r,i));var a=t.transformable;if(null!==t.parentNode&&t.parentNode.transformable){var s=Q.Ue();Q.Su(s,n[0],n[1],n[2]);var l=d.getRotation(t),u=d.getRotation(t.parentNode);Q.JG(e,u),Q.U_(e,e),Q.Jp(s,e,s),Q.Jp(a.localRotation,s,l),Q.Fv(a.localRotation,a.localRotation),o&&d.dirtifyLocal(t,a)}else d.rotateLocal(t,n)}),this.rotateLocal=(n=Q.Ue(),function(t,e,r,i,o){void 0===r&&(r=0),void 0===i&&(i=0),void 0===o&&(o=!0),"number"==typeof e&&(e=q.al(e,r,i));var a=t.transformable;Q.Su(n,e[0],e[1],e[2]),Q.dC(a.localRotation,a.localRotation,n),o&&d.dirtifyLocal(t,a)}),this.setEulerAngles=(r=Q.Ue(),function(t,e,n,i,o){void 0===n&&(n=0),void 0===i&&(i=0),void 0===o&&(o=!0),"number"==typeof e&&(e=q.al(e,n,i));var a=t.transformable;if(null!==t.parentNode&&t.parentNode.transformable){Q.Su(a.localRotation,e[0],e[1],e[2]);var s=d.getRotation(t.parentNode);Q.JG(r,Q.U_(Q.Ue(),s)),Q.dC(a.localRotation,a.localRotation,r),o&&d.dirtifyLocal(t,a)}else d.setLocalEulerAngles(t,e)}),this.translateLocal=function(t,e,n,r,i){void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=!0),"number"==typeof e&&(e=q.al(e,n,r));var o=t.transformable;!q.fS(e,q.Ue())&&(q.VC(e,e,o.localRotation),q.IH(o.localPosition,o.localPosition,e),i&&d.dirtifyLocal(t,o))},this.setPosition=(i=K.create(),o=q.Ue(),function(t,e,n){void 0===n&&(n=!0);var r=t.transformable;if(o[0]=e[0],o[1]=e[1],o[2]=e[2]||0,!q.fS(d.getPosition(t),o)){if(q.JG(r.position,o),null!==t.parentNode&&t.parentNode.transformable){var a=t.parentNode.transformable;K.copy(i,a.worldTransform),K.invert(i,i),q.fF(r.localPosition,o,i)}else q.JG(r.localPosition,o);n&&d.dirtifyLocal(t,r)}}),this.setLocalPosition=(a=q.Ue(),function(t,e,n){void 0===n&&(n=!0);var r=t.transformable;a[0]=e[0],a[1]=e[1],a[2]=e[2]||0,!q.fS(r.localPosition,a)&&(q.JG(r.localPosition,a),n&&d.dirtifyLocal(t,r))}),this.translate=(s=q.Ue(),l=q.Ue(),u=q.Ue(),function(t,e,n,r,i){void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=!0),"number"==typeof e&&(e=q.t8(l,e,n,r)),q.fS(e,s)||(q.IH(u,d.getPosition(t),e),d.setPosition(t,u,i))}),this.setRotation=function(){var t=Q.Ue();return function(e,n,r,i,o,a){void 0===a&&(a=!0);var s=e.transformable;if("number"==typeof n&&(n=Q.al(n,r,i,o)),null!==e.parentNode&&e.parentNode.transformable){var l=d.getRotation(e.parentNode);Q.JG(t,l),Q.U_(t,t),Q.Jp(s.localRotation,t,n),Q.Fv(s.localRotation,s.localRotation),a&&d.dirtifyLocal(e,s)}else d.setLocalRotation(e,n)}},this.displayObjectDependencyMap=new WeakMap,this.calcLocalTransform=(c=K.create(),h=q.Ue(),p=Q.al(0,0,0,1),function(t){if(0!==t.localSkew[0]||0!==t.localSkew[1]){if(K.fromRotationTranslationScaleOrigin(t.localTransform,t.localRotation,t.localPosition,q.al(1,1,1),t.origin),0!==t.localSkew[0]||0!==t.localSkew[1]){var e=K.identity(c);e[4]=Math.tan(t.localSkew[0]),e[1]=Math.tan(t.localSkew[1]),K.multiply(t.localTransform,t.localTransform,e)}var n=K.fromRotationTranslationScaleOrigin(c,p,h,t.localScale,t.origin);K.multiply(t.localTransform,t.localTransform,n)}else K.fromRotationTranslationScaleOrigin(t.localTransform,t.localRotation,t.localPosition,t.localScale,t.origin)})}return t.prototype.matches=function(t,e){return this.runtime.sceneGraphSelector.is(t,e)},t.prototype.querySelector=function(t,e){return this.runtime.sceneGraphSelector.selectOne(t,e)},t.prototype.querySelectorAll=function(t,e){return this.runtime.sceneGraphSelector.selectAll(t,e)},t.prototype.attach=function(t,e,n){var r,i=!1;t.parentNode&&(i=t.parentNode!==e,this.detach(t)),t.parentNode=e,(0,tn.Z)(n)?t.parentNode.childNodes.push(t):t.parentNode.childNodes.splice(n,0,t);var o=e.sortable;((null===(r=null==o?void 0:o.sorted)||void 0===r?void 0:r.length)||t.parsedStyle.zIndex)&&(-1===o.dirtyChildren.indexOf(t)&&o.dirtyChildren.push(t),o.dirty=!0,o.dirtyReason=Z.ADDED);var a=t.transformable;a&&this.dirtifyWorld(t,a),a.frozen&&this.unfreezeParentToRoot(t),i&&t.dispatchEvent(rM)},t.prototype.detach=function(t){var e,n;if(t.parentNode){var r=t.transformable,i=t.parentNode.sortable;((null===(e=null==i?void 0:i.sorted)||void 0===e?void 0:e.length)||(null===(n=t.style)||void 0===n?void 0:n.zIndex))&&(-1===i.dirtyChildren.indexOf(t)&&i.dirtyChildren.push(t),i.dirty=!0,i.dirtyReason=Z.REMOVED);var o=t.parentNode.childNodes.indexOf(t);o>-1&&t.parentNode.childNodes.splice(o,1),r&&this.dirtifyWorld(t,r),t.parentNode=null}},t.prototype.getOrigin=function(t){return t.getGeometryBounds(),t.transformable.origin},t.prototype.setOrigin=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0),"number"==typeof e&&(e=[e,n,r]);var i=t.transformable;if(e[0]!==i.origin[0]||e[1]!==i.origin[1]||e[2]!==i.origin[2]){var o=i.origin;o[0]=e[0],o[1]=e[1],o[2]=e[2]||0,this.dirtifyLocal(t,i)}},t.prototype.setLocalEulerAngles=function(t,e,n,r,i){void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=!0),"number"==typeof e&&(e=q.al(e,n,r));var o=t.transformable;Q.Su(o.localRotation,e[0],e[1],e[2]),i&&this.dirtifyLocal(t,o)},t.prototype.scaleLocal=function(t,e,n){void 0===n&&(n=!0);var r=t.transformable;q.Jp(r.localScale,r.localScale,q.al(e[0],e[1],e[2]||1)),n&&this.dirtifyLocal(t,r)},t.prototype.setLocalScale=function(t,e,n){void 0===n&&(n=!0);var r=t.transformable,i=q.al(e[0],e[1],e[2]||r.localScale[2]);!q.fS(i,r.localScale)&&(q.JG(r.localScale,i),n&&this.dirtifyLocal(t,r))},t.prototype.setLocalRotation=function(t,e,n,r,i,o){void 0===o&&(o=!0),"number"==typeof e&&(e=Q.al(e,n,r,i));var a=t.transformable;Q.JG(a.localRotation,e),o&&this.dirtifyLocal(t,a)},t.prototype.setLocalSkew=function(t,e,n){"number"==typeof e&&(e=tt.al(e,n));var r=t.transformable;tt.JG(r.localSkew,e),this.dirtifyLocal(t,r)},t.prototype.dirtifyLocal=function(t,e){e.localDirtyFlag||(e.localDirtyFlag=!0,e.dirtyFlag||this.dirtifyWorld(t,e))},t.prototype.dirtifyWorld=function(t,e){e.dirtyFlag||this.unfreezeParentToRoot(t),this.dirtifyWorldInternal(t,e),this.dirtifyToRoot(t,!0)},t.prototype.triggerPendingEvents=function(){var t=this,e=new Set,n=function(n,r){n.isConnected&&!e.has(n.entity)&&(t.boundsChangedEvent.detail=r,t.boundsChangedEvent.target=n,n.isMutationObserved?n.dispatchEvent(t.boundsChangedEvent):n.ownerDocument.defaultView.dispatchEvent(t.boundsChangedEvent,!0),e.add(n.entity))};this.pendingEvents.forEach(function(t){var e=(0,W.CR)(t,2),r=e[0],i=e[1];i.affectChildren?r.forEach(function(t){n(t,i)}):n(r,i)}),this.clearPendingEvents(),e.clear()},t.prototype.clearPendingEvents=function(){this.pendingEvents=[]},t.prototype.dirtifyToRoot=function(t,e){void 0===e&&(e=!1);var n=t;for(n.renderable&&(n.renderable.dirty=!0);n;)rk(n),n=n.parentNode;e&&t.forEach(function(t){rk(t)}),this.informDependentDisplayObjects(t),this.pendingEvents.push([t,{affectChildren:e}])},t.prototype.updateDisplayObjectDependency=function(t,e,n,r){if(e&&e!==n){var i=this.displayObjectDependencyMap.get(e);if(i&&i[t]){var o=i[t].indexOf(r);i[t].splice(o,1)}}if(n){var a=this.displayObjectDependencyMap.get(n);a||(this.displayObjectDependencyMap.set(n,{}),a=this.displayObjectDependencyMap.get(n)),a[t]||(a[t]=[]),a[t].push(r)}},t.prototype.informDependentDisplayObjects=function(t){var e=this,n=this.displayObjectDependencyMap.get(t);n&&Object.keys(n).forEach(function(t){n[t].forEach(function(n){e.dirtifyToRoot(n,!0),n.dispatchEvent(new rw(X.ATTR_MODIFIED,n,e,e,t,rw.MODIFICATION,e,e)),n.isCustomElement&&n.isConnected&&n.attributeChangedCallback&&n.attributeChangedCallback(t,e,e)})})},t.prototype.getPosition=function(t){var e=t.transformable;return K.getTranslation(e.position,this.getWorldTransform(t,e))},t.prototype.getRotation=function(t){var e=t.transformable;return K.getRotation(e.rotation,this.getWorldTransform(t,e))},t.prototype.getScale=function(t){var e=t.transformable;return K.getScaling(e.scaling,this.getWorldTransform(t,e))},t.prototype.getWorldTransform=function(t,e){return void 0===e&&(e=t.transformable),(e.localDirtyFlag||e.dirtyFlag)&&(t.parentNode&&t.parentNode.transformable&&this.getWorldTransform(t.parentNode),this.sync(t,e)),e.worldTransform},t.prototype.getLocalPosition=function(t){return t.transformable.localPosition},t.prototype.getLocalRotation=function(t){return t.transformable.localRotation},t.prototype.getLocalScale=function(t){return t.transformable.localScale},t.prototype.getLocalSkew=function(t){return t.transformable.localSkew},t.prototype.getLocalTransform=function(t){var e=t.transformable;return e.localDirtyFlag&&(this.calcLocalTransform(e),e.localDirtyFlag=!1),e.localTransform},t.prototype.setLocalTransform=function(t,e){var n=K.getTranslation(q.Ue(),e),r=K.getRotation(Q.Ue(),e),i=K.getScaling(q.Ue(),e);this.setLocalScale(t,i,!1),this.setLocalPosition(t,n,!1),this.setLocalRotation(t,r,void 0,void 0,void 0,!1),this.dirtifyLocal(t,t.transformable)},t.prototype.resetLocalTransform=function(t){this.setLocalScale(t,[1,1,1]),this.setLocalPosition(t,[0,0,0]),this.setLocalEulerAngles(t,[0,0,0]),this.setLocalSkew(t,[0,0])},t.prototype.getTransformedGeometryBounds=function(t,e,n){void 0===e&&(e=!1);var r=this.getGeometryBounds(t,e);if(tz.isEmpty(r))return null;var i=n||new tz;return i.setFromTransformedAABB(r,this.getWorldTransform(t)),i},t.prototype.getGeometryBounds=function(t,e){void 0===e&&(e=!1);var n=t.geometry;return n.dirty&&rG.styleValueRegistry.updateGeometry(t),(e?n.renderBounds:n.contentBounds||null)||new tz},t.prototype.getBounds=function(t,e){var n=this;void 0===e&&(e=!1);var r=t.renderable;if(!r.boundsDirty&&!e&&r.bounds)return r.bounds;if(!r.renderBoundsDirty&&e&&r.renderBounds)return r.renderBounds;var i=e?r.renderBounds:r.bounds,o=this.getTransformedGeometryBounds(t,e,i);if(t.childNodes.forEach(function(t){var r=n.getBounds(t,e);r&&(o?o.add(r):(o=i||new tz).update(r.center,r.halfExtents))}),o||(o=new tz),e){var a=function(t){var e,n=t;do{if(null===(e=n.parsedStyle)||void 0===e?void 0:e.clipPath)return n;n=n.parentElement}while(null!==n);return null}(t);if(a){var s=a.parsedStyle.clipPath.getBounds(e);o?s&&(o=s.intersection(o)):o.update(s.center,s.halfExtents)}}return e?(r.renderBounds=o,r.renderBoundsDirty=!1):(r.bounds=o,r.boundsDirty=!1),o},t.prototype.getLocalBounds=function(t){if(t.parentNode){var e=K.create();t.parentNode.transformable&&(e=K.invert(K.create(),this.getWorldTransform(t.parentNode)));var n=this.getBounds(t);if(!tz.isEmpty(n)){var r=new tz;return r.setFromTransformedAABB(n,e),r}}return this.getBounds(t)},t.prototype.getBoundingClientRect=function(t){var e,n,r,i=this.getGeometryBounds(t);tz.isEmpty(i)||(r=new tz).setFromTransformedAABB(i,this.getWorldTransform(t));var o=null===(n=null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView)||void 0===n?void 0:n.getContextService().getBoundingClientRect();if(r){var a=(0,W.CR)(r.getMin(),2),s=a[0],l=a[1],u=(0,W.CR)(r.getMax(),2),c=u[0],h=u[1];return new tH(s+((null==o?void 0:o.left)||0),l+((null==o?void 0:o.top)||0),c-s,h-l)}return new tH((null==o?void 0:o.left)||0,(null==o?void 0:o.top)||0,0,0)},t.prototype.dirtifyWorldInternal=function(t,e){var n=this;if(!e.dirtyFlag){e.dirtyFlag=!0,e.frozen=!1,t.childNodes.forEach(function(t){var e=t.transformable;e.dirtyFlag||n.dirtifyWorldInternal(t,e)});var r=t.renderable;r&&(r.renderBoundsDirty=!0,r.boundsDirty=!0,r.dirty=!0)}},t.prototype.syncHierarchy=function(t){var e=t.transformable;if(!e.frozen){e.frozen=!0,(e.localDirtyFlag||e.dirtyFlag)&&this.sync(t,e);for(var n=t.childNodes,r=0;rs;--p){for(var v=0;v=0;h--){var p=c[h].trim();!rt.test(p)&&0>n7.indexOf(p)&&(p='"'.concat(p,'"')),c[h]=p}return"".concat(void 0===i?"normal":i," ").concat(a," ").concat(l," ").concat(u," ").concat(c.join(","))}(e),E=this.measureFont(m,n);0===E.fontSize&&(E.fontSize=i,E.ascent=i);var x=this.runtime.offscreenCanvasCreator.getOrCreateContext(n);x.font=m,e.isOverflowing=!1;var b=(void 0!==o&&o?this.wordWrap(t,e,n):t).split(/(?:\r\n|\r|\n)/),T=Array(b.length),P=0;if(v){v.getTotalLength();for(var S=0;S=l){e.isOverflowing=!0;break}v=0,d[f]="";continue}if(v>0&&v+S>h){if(f+1>=l){if(e.isOverflowing=!0,m>0&&m<=h){for(var N=d[f].length,C=0,w=N,k=0;kh){w=k;break}C+=M}d[f]=(d[f]||"").slice(0,w)+p}break}if(v=0,d[++f]="",this.isBreakingSpace(b))continue;this.canBreakInLastChar(b)||(d=this.trimToBreakable(d),v=this.sumTextWidthByCache(d[f]||"",y)),this.shouldBreakByKinsokuShorui(b,P)&&(d=this.trimByKinsokuShorui(d),v+=g(T||""))}v+=S,d[f]=(d[f]||"")+b}return d.join("\n")},t.prototype.isBreakingSpace=function(t){return"string"==typeof t&&rA.BreakingSpaces.indexOf(t.charCodeAt(0))>=0},t.prototype.isNewline=function(t){return"string"==typeof t&&rA.Newlines.indexOf(t.charCodeAt(0))>=0},t.prototype.trimToBreakable=function(t){var e=(0,W.ev)([],(0,W.CR)(t),!1),n=e[e.length-2],r=this.findBreakableIndex(n);if(-1===r||!n)return e;var i=n.slice(r,r+1),o=this.isBreakingSpace(i),a=r+1,s=r+(o?0:1);return e[e.length-1]+=n.slice(a,n.length),e[e.length-2]=n.slice(0,s),e},t.prototype.canBreakInLastChar=function(t){return!(t&&rO.test(t))},t.prototype.sumTextWidthByCache=function(t,e){return t.split("").reduce(function(t,n){if(!e[n])throw Error("cannot count the word without cache");return t+e[n]},0)},t.prototype.findBreakableIndex=function(t){for(var e=t.length-1;e>=0;e--)if(!rO.test(t[e]))return e;return -1},t.prototype.getFromCache=function(t,e,n,r){var i=n[t];if("number"!=typeof i){var o=t.length*e;i=r.measureText(t).width+o,n[t]=i}return i},t}(),rG={},rB=(T=new rp,P=new rh,(b={})[k.CIRCLE]=new rs,b[k.ELLIPSE]=new rl,b[k.RECT]=T,b[k.IMAGE]=T,b[k.GROUP]=new rf,b[k.LINE]=new ru,b[k.TEXT]=new rd(rG),b[k.POLYLINE]=P,b[k.POLYGON]=P,b[k.PATH]=new rc,b[k.HTML]=null,b[k.MESH]=null,b),rF=(N=new nw,C=new nR,(S={})[Y.PERCENTAGE]=null,S[Y.NUMBER]=new nL,S[Y.ANGLE]=new nN,S[Y.DEFINED_PATH]=new nC,S[Y.PAINT]=N,S[Y.COLOR]=N,S[Y.FILTER]=new nk,S[Y.LENGTH]=C,S[Y.LENGTH_PERCENTAGE]=C,S[Y.LENGTH_PERCENTAGE_12]=new nA,S[Y.LENGTH_PERCENTAGE_14]=new nO,S[Y.COORDINATE]=new nR,S[Y.OFFSET_DISTANCE]=new nD,S[Y.OPACITY_VALUE]=new nG,S[Y.PATH]=new nB,S[Y.LIST_OF_POINTS]=new function(){this.parser=nt,this.mixer=ne},S[Y.SHADOW_BLUR]=new nF,S[Y.TEXT]=new n_,S[Y.TEXT_TRANSFORM]=new nU,S[Y.TRANSFORM]=new ri,S[Y.TRANSFORM_ORIGIN]=new ro,S[Y.Z_INDEX]=new ra,S[Y.MARKER]=new nI,S);rG.CameraContribution=t$,rG.AnimationTimeline=null,rG.EasingFunction=null,rG.offscreenCanvasCreator=new rP,rG.sceneGraphSelector=new rC,rG.sceneGraphService=new rR(rG),rG.textService=new rD(rG),rG.geometryUpdaterFactory=rB,rG.CSSPropertySyntaxFactory=rF,rG.styleValueRegistry=new nS(rG),rG.layoutRegistry=null,rG.globalThis="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},rG.enableCSSParsing=!1,rG.enableDataset=!1,rG.enableStyleSyntax=!0,rG.enableAttributeDashCased=!1,rG.enableSizeAttenuation=!1;var r_=0,rU=new rw(X.INSERTED,null,"","","",0,"",""),rV=new rw(X.REMOVED,null,"","","",0,"",""),rZ=new rE(X.DESTROY),rY=function(t){function e(){var e=t.call(this)||this;return e.entity=r_++,e.renderable={bounds:void 0,boundsDirty:!0,renderBounds:void 0,renderBoundsDirty:!0,dirtyRenderBounds:void 0,dirty:!1},e.cullable={strategy:V.Standard,visibilityPlaneMask:-1,visible:!0,enable:!0},e.transformable={dirtyFlag:!1,localDirtyFlag:!1,frozen:!1,localPosition:[0,0,0],localRotation:[0,0,0,1],localScale:[1,1,1],localTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],localSkew:[0,0],position:[0,0,0],rotation:[0,0,0,1],scaling:[1,1,1],worldTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],origin:[0,0,0]},e.sortable={dirty:!1,sorted:void 0,renderOrder:0,dirtyChildren:[],dirtyReason:void 0},e.geometry={contentBounds:void 0,renderBounds:void 0,dirty:!0},e.rBushNode={aabb:void 0},e.namespaceURI="g",e.scrollLeft=0,e.scrollTop=0,e.clientTop=0,e.clientLeft=0,e.destroyed=!1,e.style={},e.computedStyle=rG.enableCSSParsing?{opacity:ec,fillOpacity:ec,strokeOpacity:ec,fill:ec,stroke:ec,transform:ec,transformOrigin:ec,visibility:ec,pointerEvents:ec,lineWidth:ec,lineCap:ec,lineJoin:ec,increasedLineWidthForHitTesting:ec,fontSize:ec,fontFamily:ec,fontStyle:ec,fontWeight:ec,fontVariant:ec,textAlign:ec,textBaseline:ec,textTransform:ec,zIndex:ec,filter:ec,shadowType:ec}:null,e.parsedStyle={},e.attributes={},e}return(0,W.ZT)(e,t),Object.defineProperty(e.prototype,"className",{get:function(){return this.getAttribute("class")||""},set:function(t){this.setAttribute("class",t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classList",{get:function(){return this.className.split(" ").filter(function(t){return""!==t})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.nodeName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.firstChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){return this.lastChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return this.parentNode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){if(this.parentNode){var t=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[t+1]||null}return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){if(this.parentNode){var t=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[t-1]||null}return null},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){throw Error(tq)},e.prototype.appendChild=function(t,e){var n;if(t.destroyed)throw Error("Cannot append a destroyed element.");return rG.sceneGraphService.attach(t,this,e),(null===(n=this.ownerDocument)||void 0===n?void 0:n.defaultView)&&this.ownerDocument.defaultView.mountChildren(t),this.isMutationObserved&&(rU.relatedNode=this,t.dispatchEvent(rU)),t},e.prototype.insertBefore=function(t,e){if(e){t.parentElement&&t.parentElement.removeChild(t);var n=this.childNodes.indexOf(e);-1===n?this.appendChild(t):this.appendChild(t,n)}else this.appendChild(t);return t},e.prototype.replaceChild=function(t,e){var n=this.childNodes.indexOf(e);return this.removeChild(e),this.appendChild(t,n),e},e.prototype.removeChild=function(t){var e;return rV.relatedNode=this,t.dispatchEvent(rV),(null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView)&&t.ownerDocument.defaultView.unmountChildren(t),rG.sceneGraphService.detach(t),t},e.prototype.removeChildren=function(){for(var t=this.childNodes.length-1;t>=0;t--){var e=this.childNodes[t];this.removeChild(e)}},e.prototype.destroyChildren=function(){for(var t=this.childNodes.length-1;t>=0;t--){var e=this.childNodes[t];e.childNodes.length&&e.destroyChildren(),e.destroy()}},e.prototype.matches=function(t){return rG.sceneGraphService.matches(t,this)},e.prototype.getElementById=function(t){return rG.sceneGraphService.querySelector("#".concat(t),this)},e.prototype.getElementsByName=function(t){return rG.sceneGraphService.querySelectorAll('[name="'.concat(t,'"]'),this)},e.prototype.getElementsByClassName=function(t){return rG.sceneGraphService.querySelectorAll(".".concat(t),this)},e.prototype.getElementsByTagName=function(t){return rG.sceneGraphService.querySelectorAll(t,this)},e.prototype.querySelector=function(t){return rG.sceneGraphService.querySelector(t,this)},e.prototype.querySelectorAll=function(t){return rG.sceneGraphService.querySelectorAll(t,this)},e.prototype.closest=function(t){var e=this;do{if(rG.sceneGraphService.matches(t,e))return e;e=e.parentElement}while(null!==e);return null},e.prototype.find=function(t){var e=this,n=null;return this.forEach(function(r){return!!(r!==e&&t(r))&&(n=r,!0)}),n},e.prototype.findAll=function(t){var e=this,n=[];return this.forEach(function(r){r!==e&&t(r)&&n.push(r)}),n},e.prototype.after=function(){for(var t=this,e=[],n=0;n1){var n=t[0].currentPoint,r=t[1].currentPoint,i=t[1].startTangent;e=[],i?(e.push([n[0]-i[0],n[1]-i[1]]),e.push([n[0],n[1]])):(e.push([r[0],r[1]]),e.push([n[0],n[1]]))}return e},e.prototype.getEndTangent=function(){var t=this.parsedStyle.d.segments,e=t.length,n=[];if(e>1){var r=t[e-2].currentPoint,i=t[e-1].currentPoint,o=t[e-1].endTangent;n=[],o?(n.push([i[0]-o[0],i[1]-o[1]]),n.push([i[0],i[1]])):(n.push([r[0],r[1]]),n.push([i[0],i[1]]))}return n},e}(rJ),r4=function(t){function e(e){void 0===e&&(e={});var n=this,r=e.style,i=(0,W._T)(e,["style"]);(n=t.call(this,(0,W.pi)({type:k.POLYGON,style:rG.enableCSSParsing?(0,W.pi)({points:"",miterLimit:"",isClosed:!0},r):(0,W.pi)({},r),initialParsedStyle:rG.enableCSSParsing?null:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!0}},i))||this).markerStartAngle=0,n.markerEndAngle=0,n.markerMidList=[];var o=n.parsedStyle,a=o.markerStart,s=o.markerEnd,l=o.markerMid;return a&&rz(a)&&(n.markerStartAngle=a.getLocalEulerAngles(),n.appendChild(a)),l&&rz(l)&&n.placeMarkerMid(l),s&&rz(s)&&(n.markerEndAngle=s.getLocalEulerAngles(),n.appendChild(s)),n.transformMarker(!0),n.transformMarker(!1),n}return(0,W.ZT)(e,t),e.prototype.attributeChangedCallback=function(t,e,n,r,i){"points"===t?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):"markerStartOffset"===t||"markerEndOffset"===t?(this.transformMarker(!0),this.transformMarker(!1)):"markerStart"===t?(r&&rz(r)&&(this.markerStartAngle=0,r.remove()),i&&rz(i)&&(this.markerStartAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!0))):"markerEnd"===t?(r&&rz(r)&&(this.markerEndAngle=0,r.remove()),i&&rz(i)&&(this.markerEndAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!1))):"markerMid"===t&&this.placeMarkerMid(i)},e.prototype.transformMarker=function(t){var e,n,r,i,o,a,s=this.parsedStyle,l=s.markerStart,u=s.markerEnd,c=s.markerStartOffset,h=s.markerEndOffset,p=(s.points||{}).points,d=t?l:u;if(d&&rz(d)&&p){var f=0;if(r=p[0][0],i=p[0][1],t)e=p[1][0]-p[0][0],n=p[1][1]-p[0][1],o=c||0,a=this.markerStartAngle;else{var v=p.length;this.parsedStyle.isClosed?(e=p[v-1][0]-p[0][0],n=p[v-1][1]-p[0][1]):(r=p[v-1][0],i=p[v-1][1],e=p[v-2][0]-p[v-1][0],n=p[v-2][1]-p[v-1][1]),o=h||0,a=this.markerEndAngle}f=Math.atan2(n,e),d.setLocalEulerAngles(180*f/Math.PI+a),d.setLocalPosition(r+Math.cos(f)*o,i+Math.sin(f)*o)}},e.prototype.placeMarkerMid=function(t){var e=(this.parsedStyle.points||{}).points;if(this.markerMidList.forEach(function(t){t.remove()}),this.markerMidList=[],t&&rz(t)&&e)for(var n=1;n<(this.parsedStyle.isClosed?e.length:e.length-1);n++){var r=e[n][0],i=e[n][1],o=1===n?t:t.cloneNode(!0);this.markerMidList.push(o),this.appendChild(o),o.setLocalPosition(r,i)}},e}(rJ),r9=function(t){function e(e){void 0===e&&(e={});var n=e.style,r=(0,W._T)(e,["style"]);return t.call(this,(0,W.pi)({type:k.POLYLINE,style:rG.enableCSSParsing?(0,W.pi)({points:"",miterLimit:"",isClosed:!1},n):(0,W.pi)({},n),initialParsedStyle:rG.enableCSSParsing?null:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!1}},r))||this}return(0,W.ZT)(e,t),e.prototype.getTotalLength=function(){return 0===this.parsedStyle.points.totalLength&&(this.parsedStyle.points.totalLength=(0,tP.hE)(this.parsedStyle.points.points)),this.parsedStyle.points.totalLength},e.prototype.getPointAtLength=function(t,e){return void 0===e&&(e=!1),this.getPoint(t/this.getTotalLength(),e)},e.prototype.getPoint=function(t,e){void 0===e&&(e=!1);var n=this.parsedStyle.points.points;if(0===this.parsedStyle.points.segments.length){var r,i=[],o=0,a=this.getTotalLength();n.forEach(function(t,e){n[e+1]&&((r=[0,0])[0]=o/a,o+=(0,tP.Xk)(t[0],t[1],n[e+1][0],n[e+1][1]),r[1]=o/a,i.push(r))}),this.parsedStyle.points.segments=i}var s=0,l=0;this.parsedStyle.points.segments.forEach(function(e,n){t>=e[0]&&t<=e[1]&&(s=(t-e[0])/(e[1]-e[0]),l=n)});var u=(0,tP.U4)(n[l][0],n[l][1],n[l+1][0],n[l+1][1],s),c=u.x,h=u.y,p=q.fF(q.Ue(),q.al(c,h,0),e?this.getWorldTransform():this.getLocalTransform());return new tW(p[0],p[1])},e.prototype.getStartTangent=function(){var t=this.parsedStyle.points.points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.parsedStyle.points.points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(r4),r8=function(t){function e(e){return void 0===e&&(e={}),t.call(this,(0,W.pi)({type:k.RECT},e))||this}return(0,W.ZT)(e,t),e}(rJ),r6=function(t){function e(e){void 0===e&&(e={});var n=e.style,r=(0,W._T)(e,["style"]);return t.call(this,(0,W.pi)({type:k.TEXT,style:rG.enableCSSParsing?(0,W.pi)({x:"",y:"",text:"",fontSize:"",fontFamily:"",fontStyle:"",fontWeight:"",fontVariant:"",textAlign:"",textBaseline:"",textTransform:"",fill:"black",letterSpacing:"",lineHeight:"",miterLimit:"",wordWrap:!1,wordWrapWidth:0,leading:0,dx:"",dy:""},n):(0,W.pi)({fill:"black"},n)},r))||this}return(0,W.ZT)(e,t),e.prototype.getComputedTextLength=function(){var t;return this.getGeometryBounds(),(null===(t=this.parsedStyle.metrics)||void 0===t?void 0:t.maxLineWidth)||0},e.prototype.getLineBoundingRects=function(){var t;return this.getGeometryBounds(),(null===(t=this.parsedStyle.metrics)||void 0===t?void 0:t.lineMetrics)||[]},e.prototype.isOverflowing=function(){return this.getGeometryBounds(),!!this.parsedStyle.isOverflowing},e}(rJ),r7=function(){function t(){this.registry={},this.define(k.CIRCLE,r$),this.define(k.ELLIPSE,rQ),this.define(k.RECT,r8),this.define(k.IMAGE,r2),this.define(k.LINE,r3),this.define(k.GROUP,r0),this.define(k.PATH,r5),this.define(k.POLYGON,r4),this.define(k.POLYLINE,r9),this.define(k.TEXT,r6),this.define(k.HTML,r1)}return t.prototype.define=function(t,e){this.registry[t]=e},t.prototype.get=function(t){return this.registry[t]},t}(),it=function(t){function e(){var e=t.call(this)||this;e.defaultView=null,e.ownerDocument=null,e.nodeName="document";try{e.timeline=new rG.AnimationTimeline(e)}catch(t){}var n={};return nE.forEach(function(t){var e=t.n,r=t.inh,i=t.d;r&&i&&(n[e]=ee(i)?i(k.GROUP):i)}),e.documentElement=new r0({id:"g-root",style:n}),e.documentElement.ownerDocument=e,e.documentElement.parentNode=e,e.childNodes=[e.documentElement],e}return(0,W.ZT)(e,t),Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.firstChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){return this.lastChild},enumerable:!1,configurable:!0}),e.prototype.createElement=function(t,e){if("svg"===t)return this.documentElement;var n=this.defaultView.customElements.get(t);n||(console.warn("Unsupported tagName: ",t),n="tspan"===t?r6:r0);var r=new n(e);return r.ownerDocument=this,r},e.prototype.createElementNS=function(t,e,n){return this.createElement(e,n)},e.prototype.cloneNode=function(t){throw Error(tq)},e.prototype.destroy=function(){try{this.documentElement.destroyChildren(),this.timeline.destroy()}catch(t){}},e.prototype.elementsFromBBox=function(t,e,n,r){var i=this.defaultView.context.rBushRoot.search({minX:t,minY:e,maxX:n,maxY:r}),o=[];return i.forEach(function(t){var e=t.displayObject,n=e.parsedStyle.pointerEvents,r=["auto","visiblepainted","visiblefill","visiblestroke","visible"].includes(void 0===n?"auto":n);(!r||r&&e.isVisible())&&!e.isCulled()&&e.isInteractive()&&o.push(e)}),o.sort(function(t,e){return e.sortable.renderOrder-t.sortable.renderOrder}),o},e.prototype.elementFromPointSync=function(t,e){var n=this.defaultView.canvas2Viewport({x:t,y:e}),r=n.x,i=n.y,o=this.defaultView.getConfig(),a=o.width,s=o.height;if(r<0||i<0||r>a||i>s)return null;var l=this.defaultView.viewport2Client({x:r,y:i}),u=l.x,c=l.y,h=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!0,position:{x:t,y:e,viewportX:r,viewportY:i,clientX:u,clientY:c},picked:[]}).picked;return h&&h[0]||this.documentElement},e.prototype.elementFromPoint=function(t,e){return(0,W.mG)(this,void 0,void 0,function(){var n,r,i,o,a,s,l,u,c,h;return(0,W.Jh)(this,function(p){switch(p.label){case 0:if(r=(n=this.defaultView.canvas2Viewport({x:t,y:e})).x,i=n.y,a=(o=this.defaultView.getConfig()).width,s=o.height,r<0||i<0||r>a||i>s)return[2,null];return u=(l=this.defaultView.viewport2Client({x:r,y:i})).x,c=l.y,[4,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!0,position:{x:t,y:e,viewportX:r,viewportY:i,clientX:u,clientY:c},picked:[]})];case 1:return[2,(h=p.sent().picked)&&h[0]||this.documentElement]}})})},e.prototype.elementsFromPointSync=function(t,e){var n=this.defaultView.canvas2Viewport({x:t,y:e}),r=n.x,i=n.y,o=this.defaultView.getConfig(),a=o.width,s=o.height;if(r<0||i<0||r>a||i>s)return[];var l=this.defaultView.viewport2Client({x:r,y:i}),u=l.x,c=l.y,h=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!1,position:{x:t,y:e,viewportX:r,viewportY:i,clientX:u,clientY:c},picked:[]}).picked;return h[h.length-1]!==this.documentElement&&h.push(this.documentElement),h},e.prototype.elementsFromPoint=function(t,e){return(0,W.mG)(this,void 0,void 0,function(){var n,r,i,o,a,s,l,u,c,h;return(0,W.Jh)(this,function(p){switch(p.label){case 0:if(r=(n=this.defaultView.canvas2Viewport({x:t,y:e})).x,i=n.y,a=(o=this.defaultView.getConfig()).width,s=o.height,r<0||i<0||r>a||i>s)return[2,[]];return u=(l=this.defaultView.viewport2Client({x:r,y:i})).x,c=l.y,[4,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!1,position:{x:t,y:e,viewportX:r,viewportY:i,clientX:u,clientY:c},picked:[]})];case 1:return(h=p.sent().picked)[h.length-1]!==this.documentElement&&h.push(this.documentElement),[2,h]}})})},e.prototype.appendChild=function(t,e){throw Error(tK)},e.prototype.insertBefore=function(t,e){throw Error(tK)},e.prototype.removeChild=function(t,e){throw Error(tK)},e.prototype.replaceChild=function(t,e,n){throw Error(tK)},e.prototype.append=function(){throw Error(tK)},e.prototype.prepend=function(){throw Error(tK)},e.prototype.getElementById=function(t){return this.documentElement.getElementById(t)},e.prototype.getElementsByName=function(t){return this.documentElement.getElementsByName(t)},e.prototype.getElementsByTagName=function(t){return this.documentElement.getElementsByTagName(t)},e.prototype.getElementsByClassName=function(t){return this.documentElement.getElementsByClassName(t)},e.prototype.querySelector=function(t){return this.documentElement.querySelector(t)},e.prototype.querySelectorAll=function(t){return this.documentElement.querySelectorAll(t)},e.prototype.find=function(t){return this.documentElement.find(t)},e.prototype.findAll=function(t){return this.documentElement.findAll(t)},e}(rb),ie=function(){function t(t){this.strategies=t}return t.prototype.apply=function(e){var n=e.camera,r=e.renderingService,i=e.renderingContext,o=this.strategies;r.hooks.cull.tap(t.tag,function(t){if(t){var e=t.cullable;return(0===o.length?e.visible=i.unculledEntities.indexOf(t.entity)>-1:e.visible=o.every(function(e){return e.isVisible(n,t)}),!t.isCulled()&&t.isVisible())?t:(t.dispatchEvent(new rE(X.CULLED)),null)}return t}),r.hooks.afterRender.tap(t.tag,function(t){t.cullable.visibilityPlaneMask=-1})},t.tag="Culling",t}(),ir=function(){function t(){var t=this;this.autoPreventDefault=!1,this.rootPointerEvent=new rg(null),this.rootWheelEvent=new rm(null),this.onPointerMove=function(e){var n,r,i,o,a=null===(o=null===(i=t.context.renderingContext.root)||void 0===i?void 0:i.ownerDocument)||void 0===o?void 0:o.defaultView;if(!a.supportsTouchEvents||"touch"!==e.pointerType){var s=t.normalizeToPointerEvent(e,a);try{for(var l=(0,W.XA)(s),u=l.next();!u.done;u=l.next()){var c=u.value,h=t.bootstrapEvent(t.rootPointerEvent,c,a,e);t.context.eventService.mapEvent(h)}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}t.setCursor(t.context.eventService.cursor)}},this.onClick=function(e){var n,r,i,o,a=null===(o=null===(i=t.context.renderingContext.root)||void 0===i?void 0:i.ownerDocument)||void 0===o?void 0:o.defaultView,s=t.normalizeToPointerEvent(e,a);try{for(var l=(0,W.XA)(s),u=l.next();!u.done;u=l.next()){var c=u.value,h=t.bootstrapEvent(t.rootPointerEvent,c,a,e);t.context.eventService.mapEvent(h)}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}t.setCursor(t.context.eventService.cursor)}}return t.prototype.apply=function(e){var n=this;this.context=e;var r=e.renderingService,i=this.context.renderingContext.root.ownerDocument.defaultView;this.context.eventService.setPickHandler(function(t){return n.context.renderingService.hooks.pickSync.call({position:t,picked:[],topmost:!0}).picked[0]||null}),r.hooks.pointerWheel.tap(t.tag,function(t){var e=n.normalizeWheelEvent(t);n.context.eventService.mapEvent(e)}),r.hooks.pointerDown.tap(t.tag,function(t){if(!i.supportsTouchEvents||"touch"!==t.pointerType){var e,r,o=n.normalizeToPointerEvent(t,i);n.autoPreventDefault&&o[0].isNormalized&&(t.cancelable||!("cancelable"in t))&&t.preventDefault();try{for(var a=(0,W.XA)(o),s=a.next();!s.done;s=a.next()){var l=s.value,u=n.bootstrapEvent(n.rootPointerEvent,l,i,t);n.context.eventService.mapEvent(u)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}n.setCursor(n.context.eventService.cursor)}}),r.hooks.pointerUp.tap(t.tag,function(t){if(!i.supportsTouchEvents||"touch"!==t.pointerType){var e,r,o=n.context.contextService.getDomElement(),a=n.context.eventService.isNativeEventFromCanvas(o,t)?"":"outside",s=n.normalizeToPointerEvent(t,i);try{for(var l=(0,W.XA)(s),u=l.next();!u.done;u=l.next()){var c=u.value,h=n.bootstrapEvent(n.rootPointerEvent,c,i,t);h.type+=a,n.context.eventService.mapEvent(h)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}n.setCursor(n.context.eventService.cursor)}}),r.hooks.pointerMove.tap(t.tag,this.onPointerMove),r.hooks.pointerOver.tap(t.tag,this.onPointerMove),r.hooks.pointerOut.tap(t.tag,this.onPointerMove),r.hooks.click.tap(t.tag,this.onClick),r.hooks.pointerCancel.tap(t.tag,function(t){var e,r,o=n.normalizeToPointerEvent(t,i);try{for(var a=(0,W.XA)(o),s=a.next();!s.done;s=a.next()){var l=s.value,u=n.bootstrapEvent(n.rootPointerEvent,l,i,t);n.context.eventService.mapEvent(u)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}n.setCursor(n.context.eventService.cursor)})},t.prototype.bootstrapEvent=function(t,e,n,r){t.view=n,t.originalEvent=null,t.nativeEvent=r,t.pointerId=e.pointerId,t.width=e.width,t.height=e.height,t.isPrimary=e.isPrimary,t.pointerType=e.pointerType,t.pressure=e.pressure,t.tangentialPressure=e.tangentialPressure,t.tiltX=e.tiltX,t.tiltY=e.tiltY,t.twist=e.twist,this.transferMouseData(t,e);var i=this.context.eventService.client2Viewport({x:e.clientX,y:e.clientY}),o=i.x,a=i.y;t.viewport.x=o,t.viewport.y=a;var s=this.context.eventService.viewport2Canvas(t.viewport),l=s.x,u=s.y;return t.canvas.x=l,t.canvas.y=u,t.global.copyFrom(t.canvas),t.offset.copyFrom(t.canvas),t.isTrusted=r.isTrusted,"pointerleave"===t.type&&(t.type="pointerout"),t.type.startsWith("mouse")&&(t.type=t.type.replace("mouse","pointer")),t.type.startsWith("touch")&&(t.type=nW[t.type]||t.type),t},t.prototype.normalizeWheelEvent=function(t){var e=this.rootWheelEvent;this.transferMouseData(e,t),e.deltaMode=t.deltaMode,e.deltaX=t.deltaX,e.deltaY=t.deltaY,e.deltaZ=t.deltaZ;var n=this.context.eventService.client2Viewport({x:t.clientX,y:t.clientY}),r=n.x,i=n.y;e.viewport.x=r,e.viewport.y=i;var o=this.context.eventService.viewport2Canvas(e.viewport),a=o.x,s=o.y;return e.canvas.x=a,e.canvas.y=s,e.global.copyFrom(e.canvas),e.offset.copyFrom(e.canvas),e.nativeEvent=t,e.type=t.type,e},t.prototype.transferMouseData=function(t,e){t.isTrusted=e.isTrusted,t.srcElement=e.srcElement,t.timeStamp=nH.now(),t.type=e.type,t.altKey=e.altKey,t.metaKey=e.metaKey,t.shiftKey=e.shiftKey,t.ctrlKey=e.ctrlKey,t.button=e.button,t.buttons=e.buttons,t.client.x=e.clientX,t.client.y=e.clientY,t.movement.x=e.movementX,t.movement.y=e.movementY,t.page.x=e.pageX,t.page.y=e.pageY,t.screen.x=e.screenX,t.screen.y=e.screenY,t.relatedTarget=null},t.prototype.setCursor=function(t){this.context.contextService.applyCursorStyle(t||this.context.config.cursor||"default")},t.prototype.normalizeToPointerEvent=function(t,e){var n=[];if(e.isTouchEvent(t))for(var r=0;r-1,a=0,s=r.length;a=1?Math.ceil(k):1,C=l||("auto"===(n=nj(a,"width"))?a.offsetWidth:parseFloat(n))||a.width/k,w=u||("auto"===(r=nj(a,"height"))?a.offsetHeight:parseFloat(r))||a.height/k),s&&(rG.offscreenCanvas=s),i.devicePixelRatio=k,i.requestAnimationFrame=null!=v?v:n3.bind(rG.globalThis),i.cancelAnimationFrame=null!=y?y:n5.bind(rG.globalThis),i.supportsTouchEvents=null!=E?E:"ontouchstart"in rG.globalThis,i.supportsPointerEvents=null!=m?m:!!rG.globalThis.PointerEvent,i.isTouchEvent=null!=S?S:function(t){return i.supportsTouchEvents&&t instanceof rG.globalThis.TouchEvent},i.isMouseEvent=null!=N?N:function(t){return!rG.globalThis.MouseEvent||t instanceof rG.globalThis.MouseEvent&&(!i.supportsPointerEvents||!(t instanceof rG.globalThis.PointerEvent))},i.initRenderingContext({container:o,canvas:a,width:C,height:w,renderer:h,offscreenCanvas:s,devicePixelRatio:k,cursor:d||"default",background:p||"transparent",createImage:g,document:f,supportsCSSTransform:x,useNativeClickEvent:T,alwaysTriggerPointerEventOnCanvas:P}),i.initDefaultCamera(C,w,h.clipSpaceNearZ),i.initRenderer(h,!0),i}(0,W.ZT)(e,t),e.prototype.initRenderingContext=function(t){this.context.config=t,this.context.renderingContext={root:this.document.documentElement,renderListCurrentFrame:[],unculledEntities:[],renderReasons:new Set,force:!1,dirty:!1}},e.prototype.initDefaultCamera=function(t,e,n){var r=this,i=new rG.CameraContribution;i.clipSpaceNearZ=n,i.setType(A.EXPLORING,O.DEFAULT).setPosition(t/2,e/2,500).setFocalPoint(t/2,e/2,0).setOrthographic(-(t/2),t/2,e/2,-(e/2),.1,1e3),i.canvas=this,i.eventEmitter.on(tJ.UPDATED,function(){r.context.renderingContext.renderReasons.add(z.CAMERA_CHANGED),rG.enableSizeAttenuation&&r.getConfig().renderer.getConfig().enableSizeAttenuation&&r.updateSizeAttenuation()}),this.context.camera=i},e.prototype.updateSizeAttenuation=function(){var t=this.getCamera().getZoom();this.document.documentElement.forEach(function(e){rG.styleValueRegistry.updateSizeAttenuation(e,t)})},e.prototype.getConfig=function(){return this.context.config},e.prototype.getRoot=function(){return this.document.documentElement},e.prototype.getCamera=function(){return this.context.camera},e.prototype.getContextService=function(){return this.context.contextService},e.prototype.getEventService=function(){return this.context.eventService},e.prototype.getRenderingService=function(){return this.context.renderingService},e.prototype.getRenderingContext=function(){return this.context.renderingContext},e.prototype.getStats=function(){return this.getRenderingService().getStats()},Object.defineProperty(e.prototype,"ready",{get:function(){var t=this;return!this.readyPromise&&(this.readyPromise=new Promise(function(e){t.resolveReadyPromise=function(){e(t)}}),this.inited&&this.resolveReadyPromise()),this.readyPromise},enumerable:!1,configurable:!0}),e.prototype.destroy=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!1),e||this.dispatchEvent(new rE(j.BEFORE_DESTROY)),this.frameId&&(this.getConfig().cancelAnimationFrame||cancelAnimationFrame)(this.frameId);var n=this.getRoot();this.unmountChildren(n),t&&(this.document.destroy(),this.getEventService().destroy()),this.getRenderingService().destroy(),this.getContextService().destroy(),t&&this.context.rBushRoot&&(this.context.rBushRoot.clear(),this.context.rBushRoot=null,this.context.renderingContext.root=null),e||this.dispatchEvent(new rE(j.AFTER_DESTROY))},e.prototype.changeSize=function(t,e){this.resize(t,e)},e.prototype.resize=function(t,e){var n=this.context.config;n.width=t,n.height=e,this.getContextService().resize(t,e);var r=this.context.camera,i=r.getProjectionMode();r.setPosition(t/2,e/2,500).setFocalPoint(t/2,e/2,0),i===I.ORTHOGRAPHIC?r.setOrthographic(-(t/2),t/2,e/2,-(e/2),r.getNear(),r.getFar()):r.setAspect(t/e),this.dispatchEvent(new rE(j.RESIZE,{width:t,height:e}))},e.prototype.appendChild=function(t,e){return this.document.documentElement.appendChild(t,e)},e.prototype.insertBefore=function(t,e){return this.document.documentElement.insertBefore(t,e)},e.prototype.removeChild=function(t){return this.document.documentElement.removeChild(t)},e.prototype.removeChildren=function(){this.document.documentElement.removeChildren()},e.prototype.destroyChildren=function(){this.document.documentElement.destroyChildren()},e.prototype.render=function(t){var e=this;this.dispatchEvent(iu),this.getRenderingService().render(this.getConfig(),t,function(){e.dispatchEvent(ic)}),this.dispatchEvent(ih)},e.prototype.run=function(){var t=this,e=function(n,r){t.render(r),t.frameId=t.requestAnimationFrame(e)};e()},e.prototype.initRenderer=function(t,e){var n=this;if(void 0===e&&(e=!1),!t)throw Error("Renderer is required.");this.inited=!1,this.readyPromise=void 0,this.context.rBushRoot=new tN,this.context.renderingPlugins=[],this.context.renderingPlugins.push(new ir,new ia,new ie([new io])),this.loadRendererContainerModule(t),this.context.contextService=new this.context.ContextService((0,W.pi)((0,W.pi)({},rG),this.context)),this.context.renderingService=new rS(rG,this.context),this.context.eventService=new rT(rG,this.context),this.context.eventService.init(),this.context.contextService.init?(this.context.contextService.init(),this.initRenderingService(t,e,!0)):this.context.contextService.initAsync().then(function(){n.initRenderingService(t,e)})},e.prototype.initRenderingService=function(t,e,n){var r=this;void 0===e&&(e=!1),void 0===n&&(n=!1),this.context.renderingService.init(function(){r.inited=!0,e?(n?r.requestAnimationFrame(function(){r.dispatchEvent(new rE(j.READY))}):r.dispatchEvent(new rE(j.READY)),r.readyPromise&&r.resolveReadyPromise()):r.dispatchEvent(new rE(j.RENDERER_CHANGED)),e||r.getRoot().forEach(function(t){var e=t.renderable;e&&(e.renderBoundsDirty=!0,e.boundsDirty=!0,e.dirty=!0)}),r.mountChildren(r.getRoot()),t.getConfig().enableAutoRendering&&r.run()})},e.prototype.loadRendererContainerModule=function(t){var e=this;t.getPlugins().forEach(function(t){t.context=e.context,t.init(rG)})},e.prototype.setRenderer=function(t){var e=this.getConfig();if(e.renderer!==t){var n=e.renderer;e.renderer=t,this.destroy(!1,!0),(0,W.ev)([],(0,W.CR)(null==n?void 0:n.getPlugins()),!1).reverse().forEach(function(t){t.destroy(rG)}),this.initRenderer(t)}},e.prototype.setCursor=function(t){this.getConfig().cursor=t,this.getContextService().applyCursorStyle(t)},e.prototype.unmountChildren=function(t){var e=this;t.childNodes.forEach(function(t){e.unmountChildren(t)}),this.inited&&(t.isMutationObserved?t.dispatchEvent(il):(il.target=t,this.dispatchEvent(il,!0)),t!==this.document.documentElement&&(t.ownerDocument=null),t.isConnected=!1),t.isCustomElement&&t.disconnectedCallback&&t.disconnectedCallback()},e.prototype.mountChildren=function(t){var e=this;this.inited?t.isConnected||(t.ownerDocument=this.document,t.isConnected=!0,t.isMutationObserved?t.dispatchEvent(is):(is.target=t,this.dispatchEvent(is,!0))):console.warn("[g]: You are trying to call `canvas.appendChild` before canvas' initialization finished. You can either await `canvas.ready` or listen to `CanvasEvent.READY` manually.","appended child: ",t.nodeName),t.childNodes.forEach(function(t){e.mountChildren(t)}),t.isCustomElement&&t.connectedCallback&&t.connectedCallback()},e.prototype.client2Viewport=function(t){return this.getEventService().client2Viewport(t)},e.prototype.viewport2Client=function(t){return this.getEventService().viewport2Client(t)},e.prototype.viewport2Canvas=function(t){return this.getEventService().viewport2Canvas(t)},e.prototype.canvas2Viewport=function(t){return this.getEventService().canvas2Viewport(t)},e.prototype.getPointByClient=function(t,e){return this.client2Viewport({x:t,y:e})},e.prototype.getClientByPoint=function(t,e){return this.viewport2Client({x:t,y:e})}}(rx)}}]); \ No newline at end of file diff --git a/dbgpt/app/static/web/_next/static/chunks/d9132460-b948a0681f38c793.js b/dbgpt/app/static/web/_next/static/chunks/d9132460-b948a0681f38c793.js deleted file mode 100644 index 22b23ad9b..000000000 --- a/dbgpt/app/static/web/_next/static/chunks/d9132460-b948a0681f38c793.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[930],{82002:function(t,e,n){n.d(e,{$6:function(){return j},Dk:function(){return X},F6:function(){return tC},R:function(){return eC},Rr:function(){return z},bn:function(){return k},qA:function(){return ew}});var r,i,o,a,s,l,u,c,h,p,d,f,v,y,g,m,E,x,b,T,P,S,N,C,w,k,M,R,A,O,I,L,D,G,B,F,_,U,V,Z,Y,z,X,j,W=n(97582),H=n(23943),q=n(77160),K=n(85975),J=n(35600),$=n(98333),Q=n(32945),tt=n(31437),te=n(25897),tn=n(95147),tr=n(76714),ti=n(81957),to=n(69877),ta=n(71523),ts=n(13882),tl=n(80450),tu=n(8614),tc=n(4848),th=n(75839),tp=n(99872),td=n(92455),tf=n(65850),tv=n(28659),ty=n(83555),tg=n(71154),tm=n(5199),tE=n(90134),tx=n(4637),tb=n(84329),tT=n(16372),tP=n(11702),tS=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self,{exports:{}});tS.exports=function(){function t(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function e(t,e){return te?1:0}var n=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function r(t,e){i(t,0,t.children.length,e,t)}function i(t,e,n,r,i){i||(i=p(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var a=e;a=t.minX&&e.maxY>=t.minY}function p(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function d(n,r,i,o,a){for(var s=[r,i];s.length;)if(i=s.pop(),r=s.pop(),!(i-r<=o)){var l=r+Math.ceil((i-r)/o/2)*o;(function e(n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=r-i+1,u=Math.log(s),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1),p=Math.max(i,Math.floor(r-l*c/s+h)),d=Math.min(o,Math.floor(r+(s-l)*c/s+h));e(n,r,p,d,a)}var f=n[r],v=i,y=o;for(t(n,i,r),a(n[o],f)>0&&t(n,i,o);va(n[v],f);)v++;for(;a(n[y],f)>0;)y--}0===a(n[i],f)?t(n,i,y):t(n,++y,o),y<=r&&(i=y+1),r<=y&&(o=y-1)}})(n,l,r||0,i||n.length-1,a||e),s.push(r,l,l,i)}}return n.prototype.all=function(){return this._all(this.data,[])},n.prototype.search=function(t){var e=this.data,n=[];if(!h(t,e))return n;for(var r=this.toBBox,i=[];e;){for(var o=0;o=0;)if(i[e].children.length>this._maxEntries)this._split(i,e),e--;else break;this._adjustParentBBoxes(r,i,e)},n.prototype._split=function(t,e){var n=t[e],i=n.children.length,o=this._minEntries;this._chooseSplitAxis(n,o,i);var a=this._chooseSplitIndex(n,o,i),s=p(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,r(n,this.toBBox),r(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(n,s)},n.prototype._splitRoot=function(t,e){this.data=p([t,e]),this.data.height=t.height+1,this.data.leaf=!1,r(this.data,this.toBBox)},n.prototype._chooseSplitIndex=function(t,e,n){for(var r,o=1/0,a=1/0,s=e;s<=n-e;s++){var u=i(t,0,s,this.toBBox),c=i(t,s,n,this.toBBox),h=function(t,e){var n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY);return Math.max(0,Math.min(t.maxX,e.maxX)-n)*Math.max(0,Math.min(t.maxY,e.maxY)-r)}(u,c),p=l(u)+l(c);h=e;d--){var f=t.children[d];o(l,t.leaf?a(f):f),c+=u(l)}return c},n.prototype._adjustParentBBoxes=function(t,e,n){for(var r=n;r>=0;r--)o(e[r],t)},n.prototype._condense=function(t){for(var e=t.length-1,n=void 0;e>=0;e--)0===t[e].children.length?e>0?(n=t[e-1].children).splice(n.indexOf(t[e]),1):this.clear():r(t[e],this.toBBox)},n}();var tN=tS.exports;(r=k||(k={})).GROUP="g",r.CIRCLE="circle",r.ELLIPSE="ellipse",r.IMAGE="image",r.RECT="rect",r.LINE="line",r.POLYLINE="polyline",r.POLYGON="polygon",r.TEXT="text",r.PATH="path",r.HTML="html",r.MESH="mesh",(i=M||(M={}))[i.ZERO=0]="ZERO",i[i.NEGATIVE_ONE=1]="NEGATIVE_ONE";var tC=function(){function t(){this.plugins=[]}return t.prototype.addRenderingPlugin=function(t){this.plugins.push(t),this.context.renderingPlugins.push(t)},t.prototype.removeAllRenderingPlugins=function(){var t=this;this.plugins.forEach(function(e){var n=t.context.renderingPlugins.indexOf(e);n>=0&&t.context.renderingPlugins.splice(n,1)})},t}();function tw(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function tk(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function tM(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function tR(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function tA(t){return void 0===t?0:t>360||t<-360?t%360:t}function tO(t,e,n){return(void 0===e&&(e=0),void 0===n&&(n=0),Array.isArray(t)&&3===t.length)?q.d9(t):(0,te.Z)(t)?q.al(t,e,n):q.al(t[0],t[1]||e,t[2]||n)}function tI(t){return t*(Math.PI/180)}function tL(t){return t*(180/Math.PI)}function tD(t,e){var n,r,i,o,a,s,l,u,c,h,p,d,f,v,y,g,m;return 16===e.length?(i=.5*Math.PI,a=(o=(0,W.CR)(K.getScaling(q.Ue(),e),3))[0],s=o[1],l=o[2],(u=Math.asin(-e[2]/a))-i?(n=Math.atan2(e[6]/s,e[10]/l),r=Math.atan2(e[1]/a,e[0]/a)):(r=0,n=-Math.atan2(e[4]/s,e[5]/s)):(r=0,n=Math.atan2(e[4]/s,e[5]/s)),t[0]=n,t[1]=u,t[2]=r,t):(c=e[0],h=e[1],p=e[2],d=e[3],g=c*c+(f=h*h)+(v=p*p)+(y=d*d),(m=c*d-h*p)>.499995*g?(t[0]=Math.PI/2,t[1]=2*Math.atan2(h,c),t[2]=0):m<-.499995*g?(t[0]=-Math.PI/2,t[1]=2*Math.atan2(h,c),t[2]=0):(t[0]=Math.asin(2*(c*p-d*h)),t[1]=Math.atan2(2*(c*d+h*p),1-2*(v+y)),t[2]=Math.atan2(2*(c*h+p*d),1-2*(f+v))),t)}function tG(t){var e=t[0],n=t[1],r=t[3],i=t[4],o=Math.sqrt(e*e+n*n),a=Math.sqrt(r*r+i*i);e*i-n*r<0&&(e-1&&this.plugins.splice(e,1)},t.prototype.getPlugins=function(){return this.plugins},t.prototype.getPlugin=function(t){return this.plugins.find(function(e){return e.name===t})},t.prototype.getConfig=function(){return this.config},t.prototype.setConfig=function(t){Object.assign(this.config,t)}}();var tB=K.create(),tF=K.create(),t_=$.Ue(),tU=[q.Ue(),q.Ue(),q.Ue()],tV=q.Ue();function tZ(t,e,n,r,i){t[0]=e[0]*r+n[0]*i,t[1]=e[1]*r+n[1]*i,t[2]=e[2]*r+n[2]*i}var tY=function(){function t(){this.center=[0,0,0],this.halfExtents=[0,0,0],this.min=[0,0,0],this.max=[0,0,0]}return t.isEmpty=function(t){return!t||0===t.halfExtents[0]&&0===t.halfExtents[1]&&0===t.halfExtents[2]},t.prototype.update=function(t,e){tw(this.center,t),tw(this.halfExtents,e),tk(this.min,this.center,this.halfExtents),tM(this.max,this.center,this.halfExtents)},t.prototype.setMinMax=function(t,e){tM(this.center,e,t),tR(this.center,this.center,.5),tk(this.halfExtents,e,t),tR(this.halfExtents,this.halfExtents,.5),tw(this.min,t),tw(this.max,e)},t.prototype.getMin=function(){return this.min},t.prototype.getMax=function(){return this.max},t.prototype.add=function(e){if(!t.isEmpty(e)){if(t.isEmpty(this)){this.setMinMax(e.getMin(),e.getMax());return}var n=this.center,r=n[0],i=n[1],o=n[2],a=this.halfExtents,s=a[0],l=a[1],u=a[2],c=r-s,h=r+s,p=i-l,d=i+l,f=o-u,v=o+u,y=e.center,g=y[0],m=y[1],E=y[2],x=e.halfExtents,b=x[0],T=x[1],P=x[2],S=g-b,N=g+b,C=m-T,w=m+T,k=E-P,M=E+P;Sh&&(h=N),Cd&&(d=w),kv&&(v=M),n[0]=(c+h)*.5,n[1]=(p+d)*.5,n[2]=(f+v)*.5,a[0]=(h-c)*.5,a[1]=(d-p)*.5,a[2]=(v-f)*.5,this.min[0]=c,this.min[1]=p,this.min[2]=f,this.max[0]=h,this.max[1]=d,this.max[2]=v}},t.prototype.setFromTransformedAABB=function(t,e){var n=this.center,r=this.halfExtents,i=t.center,o=t.halfExtents,a=e[0],s=e[4],l=e[8],u=e[1],c=e[5],h=e[9],p=e[2],d=e[6],f=e[10],v=Math.abs(a),y=Math.abs(s),g=Math.abs(l),m=Math.abs(u),E=Math.abs(c),x=Math.abs(h),b=Math.abs(p),T=Math.abs(d),P=Math.abs(f);n[0]=e[12]+a*i[0]+s*i[1]+l*i[2],n[1]=e[13]+u*i[0]+c*i[1]+h*i[2],n[2]=e[14]+p*i[0]+d*i[1]+f*i[2],r[0]=v*o[0]+y*o[1]+g*o[2],r[1]=m*o[0]+E*o[1]+x*o[2],r[2]=b*o[0]+T*o[1]+P*o[2],tk(this.min,n,r),tM(this.max,n,r)},t.prototype.intersects=function(t){var e=this.getMax(),n=this.getMin(),r=t.getMax(),i=t.getMin();return n[0]<=r[0]&&e[0]>=i[0]&&n[1]<=r[1]&&e[1]>=i[1]&&n[2]<=r[2]&&e[2]>=i[2]},t.prototype.intersection=function(e){if(!this.intersects(e))return null;var n,r,i,o,a,s,l=new t,u=(n=[0,0,0],r=this.getMin(),i=e.getMin(),n[0]=Math.max(r[0],i[0]),n[1]=Math.max(r[1],i[1]),n[2]=Math.max(r[2],i[2]),n),c=(o=[0,0,0],a=this.getMax(),s=e.getMax(),o[0]=Math.min(a[0],s[0]),o[1]=Math.min(a[1],s[1]),o[2]=Math.min(a[2],s[2]),o);return l.setMinMax(u,c),l},t.prototype.getNegativeFarPoint=function(t){if(273===t.pnVertexFlag)return tw([0,0,0],this.min);if(272===t.pnVertexFlag)return[this.min[0],this.min[1],this.max[2]];if(257===t.pnVertexFlag)return[this.min[0],this.max[1],this.min[2]];if(256===t.pnVertexFlag)return[this.min[0],this.max[1],this.max[2]];if(17===t.pnVertexFlag)return[this.max[0],this.min[1],this.min[2]];if(16===t.pnVertexFlag)return[this.max[0],this.min[1],this.max[2]];if(1===t.pnVertexFlag)return[this.max[0],this.max[1],this.min[2]];else return[this.max[0],this.max[1],this.max[2]]},t.prototype.getPositiveFarPoint=function(t){if(273===t.pnVertexFlag)return tw([0,0,0],this.max);if(272===t.pnVertexFlag)return[this.max[0],this.max[1],this.min[2]];if(257===t.pnVertexFlag)return[this.max[0],this.min[1],this.max[2]];if(256===t.pnVertexFlag)return[this.max[0],this.min[1],this.min[2]];if(17===t.pnVertexFlag)return[this.min[0],this.max[1],this.max[2]];if(16===t.pnVertexFlag)return[this.min[0],this.max[1],this.min[2]];if(1===t.pnVertexFlag)return[this.min[0],this.min[1],this.max[2]];else return[this.min[0],this.min[1],this.min[2]]},t}(),tz=function(){function t(t,e){this.distance=t||0,this.normal=e||q.al(0,1,0),this.updatePNVertexFlag()}return t.prototype.updatePNVertexFlag=function(){this.pnVertexFlag=(Number(this.normal[0]>=0)<<8)+(Number(this.normal[1]>=0)<<4)+Number(this.normal[2]>=0)},t.prototype.distanceToPoint=function(t){return q.AK(t,this.normal)-this.distance},t.prototype.normalize=function(){var t=1/q.Zh(this.normal);q.bA(this.normal,this.normal,t),this.distance*=t},t.prototype.intersectsLine=function(t,e,n){var r=this.distanceToPoint(t),i=r/(r-this.distanceToPoint(e)),o=i>=0&&i<=1;return o&&n&&q.t7(n,t,e,i),o},t}();(o=R||(R={}))[o.OUTSIDE=4294967295]="OUTSIDE",o[o.INSIDE=0]="INSIDE",o[o.INDETERMINATE=2147483647]="INDETERMINATE";var tX=function(){function t(t){if(this.planes=[],t)this.planes=t;else for(var e=0;e<6;e++)this.planes.push(new tz)}return t.prototype.extractFromVPMatrix=function(t){var e=(0,W.CR)(t,16),n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],p=e[10],d=e[11],f=e[12],v=e[13],y=e[14],g=e[15];q.t8(this.planes[0].normal,o-n,u-a,d-c),this.planes[0].distance=g-f,q.t8(this.planes[1].normal,o+n,u+a,d+c),this.planes[1].distance=g+f,q.t8(this.planes[2].normal,o+r,u+s,d+h),this.planes[2].distance=g+v,q.t8(this.planes[3].normal,o-r,u-s,d-h),this.planes[3].distance=g-v,q.t8(this.planes[4].normal,o-i,u-l,d-p),this.planes[4].distance=g-y,q.t8(this.planes[5].normal,o+i,u+l,d+p),this.planes[5].distance=g+y,this.planes.forEach(function(t){t.normalize(),t.updatePNVertexFlag()})},t}(),tj=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.x=0,this.y=0,this.x=t,this.y=e}return t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.copyFrom=function(t){this.x=t.x,this.y=t.y},t}(),tW=function(){function t(t,e,n,r){this.x=t,this.y=e,this.width=n,this.height=r,this.left=t,this.right=t+n,this.top=e,this.bottom=e+r}return t.prototype.toJSON=function(){},t}(),tH="Method not implemented.",tq="Use document.documentElement instead.";(a=A||(A={}))[a.ORBITING=0]="ORBITING",a[a.EXPLORING=1]="EXPLORING",a[a.TRACKING=2]="TRACKING",(s=O||(O={}))[s.DEFAULT=0]="DEFAULT",s[s.ROTATIONAL=1]="ROTATIONAL",s[s.TRANSLATIONAL=2]="TRANSLATIONAL",s[s.CINEMATIC=3]="CINEMATIC",(l=I||(I={}))[l.ORTHOGRAPHIC=0]="ORTHOGRAPHIC",l[l.PERSPECTIVE=1]="PERSPECTIVE";var tK={UPDATED:"updated"},tJ=function(){function t(){this.clipSpaceNearZ=M.NEGATIVE_ONE,this.eventEmitter=new H.Z,this.matrix=K.create(),this.right=q.al(1,0,0),this.up=q.al(0,1,0),this.forward=q.al(0,0,1),this.position=q.al(0,0,1),this.focalPoint=q.al(0,0,0),this.distanceVector=q.al(0,0,-1),this.distance=1,this.azimuth=0,this.elevation=0,this.roll=0,this.relAzimuth=0,this.relElevation=0,this.relRoll=0,this.dollyingStep=0,this.maxDistance=1/0,this.minDistance=-1/0,this.zoom=1,this.rotateWorld=!1,this.fov=30,this.near=.1,this.far=1e3,this.aspect=1,this.projectionMatrix=K.create(),this.projectionMatrixInverse=K.create(),this.jitteredProjectionMatrix=void 0,this.enableUpdate=!0,this.type=A.EXPLORING,this.trackingMode=O.DEFAULT,this.projectionMode=I.PERSPECTIVE,this.frustum=new tX,this.orthoMatrix=K.create()}return t.prototype.isOrtho=function(){return this.projectionMode===I.ORTHOGRAPHIC},t.prototype.getProjectionMode=function(){return this.projectionMode},t.prototype.getPerspective=function(){return this.jitteredProjectionMatrix||this.projectionMatrix},t.prototype.getPerspectiveInverse=function(){return this.projectionMatrixInverse},t.prototype.getFrustum=function(){return this.frustum},t.prototype.getPosition=function(){return this.position},t.prototype.getFocalPoint=function(){return this.focalPoint},t.prototype.getDollyingStep=function(){return this.dollyingStep},t.prototype.getNear=function(){return this.near},t.prototype.getFar=function(){return this.far},t.prototype.getZoom=function(){return this.zoom},t.prototype.getOrthoMatrix=function(){return this.orthoMatrix},t.prototype.getView=function(){return this.view},t.prototype.setEnableUpdate=function(t){this.enableUpdate=t},t.prototype.setType=function(t,e){return this.type=t,this.type===A.EXPLORING?this.setWorldRotation(!0):this.setWorldRotation(!1),this._getAngles(),this.type===A.TRACKING&&void 0!==e&&this.setTrackingMode(e),this},t.prototype.setProjectionMode=function(t){return this.projectionMode=t,this},t.prototype.setTrackingMode=function(t){if(this.type!==A.TRACKING)throw Error("Impossible to set a tracking mode if the camera is not of tracking type");return this.trackingMode=t,this},t.prototype.setWorldRotation=function(t){return this.rotateWorld=t,this._getAngles(),this},t.prototype.getViewTransform=function(){return K.invert(K.create(),this.matrix)},t.prototype.getWorldTransform=function(){return this.matrix},t.prototype.jitterProjectionMatrix=function(t,e){var n=K.fromTranslation(K.create(),[t,e,0]);this.jitteredProjectionMatrix=K.multiply(K.create(),n,this.projectionMatrix)},t.prototype.clearJitterProjectionMatrix=function(){this.jitteredProjectionMatrix=void 0},t.prototype.setMatrix=function(t){return this.matrix=t,this._update(),this},t.prototype.setProjectionMatrix=function(t){this.projectionMatrix=t},t.prototype.setFov=function(t){return this.setPerspective(this.near,this.far,t,this.aspect),this},t.prototype.setAspect=function(t){return this.setPerspective(this.near,this.far,this.fov,t),this},t.prototype.setNear=function(t){return this.projectionMode===I.PERSPECTIVE?this.setPerspective(t,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,t,this.far),this},t.prototype.setFar=function(t){return this.projectionMode===I.PERSPECTIVE?this.setPerspective(this.near,t,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,t),this},t.prototype.setViewOffset=function(t,e,n,r,i,o){return this.aspect=t/e,void 0===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=o,this.projectionMode===I.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.clearViewOffset=function(){return void 0!==this.view&&(this.view.enabled=!1),this.projectionMode===I.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.setZoom=function(t){return this.zoom=t,this.projectionMode===I.ORTHOGRAPHIC?this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far):this.projectionMode===I.PERSPECTIVE&&this.setPerspective(this.near,this.far,this.fov,this.aspect),this},t.prototype.setZoomByViewportPoint=function(t,e){var n=this.canvas.viewport2Canvas({x:e[0],y:e[1]}),r=n.x,i=n.y,o=this.roll;this.rotate(0,0,-o),this.setPosition(r,i),this.setFocalPoint(r,i),this.setZoom(t),this.rotate(0,0,o);var a=this.canvas.viewport2Canvas({x:e[0],y:e[1]}),s=a.x,l=a.y,u=q.al(s-r,l-i,0),c=q.AK(u,this.right)/q.kE(this.right),h=q.AK(u,this.up)/q.kE(this.up);return this.pan(-c,-h),this},t.prototype.setPerspective=function(t,e,n,r){this.projectionMode=I.PERSPECTIVE,this.fov=n,this.near=t,this.far=e,this.aspect=r;var i,o,a,s,l,u,c,h,p,d=this.near*Math.tan(tI(.5*this.fov))/this.zoom,f=2*d,v=this.aspect*f,y=-.5*v;if(null===(p=this.view)||void 0===p?void 0:p.enabled){var g=this.view.fullWidth,m=this.view.fullHeight;y+=this.view.offsetX*v/g,d-=this.view.offsetY*f/m,v*=this.view.width/g,f*=this.view.height/m}return i=this.projectionMatrix,o=y,a=y+v,s=d,l=d-f,u=this.far,this.clipSpaceNearZ===M.ZERO?(c=-u/(u-t),h=-u*t/(u-t)):(c=-(u+t)/(u-t),h=-2*u*t/(u-t)),i[0]=2*t/(a-o),i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=2*t/(s-l),i[6]=0,i[7]=0,i[8]=(a+o)/(a-o),i[9]=(s+l)/(s-l),i[10]=c,i[11]=-1,i[12]=0,i[13]=0,i[14]=h,i[15]=0,K.scale(this.projectionMatrix,this.projectionMatrix,q.al(1,-1,1)),K.invert(this.projectionMatrixInverse,this.projectionMatrix),this.triggerUpdate(),this},t.prototype.setOrthographic=function(t,e,n,r,i,o){this.projectionMode=I.ORTHOGRAPHIC,this.rright=e,this.left=t,this.top=n,this.bottom=r,this.near=i,this.far=o;var a,s=(this.rright-this.left)/(2*this.zoom),l=(this.top-this.bottom)/(2*this.zoom),u=(this.rright+this.left)/2,c=(this.top+this.bottom)/2,h=u-s,p=u+s,d=c+l,f=c-l;if(null===(a=this.view)||void 0===a?void 0:a.enabled){var v=(this.rright-this.left)/this.view.fullWidth/this.zoom,y=(this.top-this.bottom)/this.view.fullHeight/this.zoom;h+=v*this.view.offsetX,p=h+v*this.view.width,d-=y*this.view.offsetY,f=d-y*this.view.height}return this.clipSpaceNearZ===M.NEGATIVE_ONE?K.ortho(this.projectionMatrix,h,p,f,d,i,o):K.orthoZO(this.projectionMatrix,h,p,f,d,i,o),K.scale(this.projectionMatrix,this.projectionMatrix,q.al(1,-1,1)),K.invert(this.projectionMatrixInverse,this.projectionMatrix),this._getOrthoMatrix(),this.triggerUpdate(),this},t.prototype.setPosition=function(t,e,n){void 0===e&&(e=this.position[1]),void 0===n&&(n=this.position[2]);var r=tO(t,e,n);return this._setPosition(r),this.setFocalPoint(this.focalPoint),this.triggerUpdate(),this},t.prototype.setFocalPoint=function(t,e,n){void 0===e&&(e=this.focalPoint[1]),void 0===n&&(n=this.focalPoint[2]);var r=q.al(0,1,0);if(this.focalPoint=tO(t,e,n),this.trackingMode===O.CINEMATIC){var i=q.$X(q.Ue(),this.focalPoint,this.position);t=i[0],e=i[1],n=i[2];var o=tL(Math.asin(e/q.kE(i))),a=90+tL(Math.atan2(n,t)),s=K.create();K.rotateY(s,s,tI(a)),K.rotateX(s,s,tI(o)),r=q.fF(q.Ue(),[0,1,0],s)}return K.invert(this.matrix,K.lookAt(K.create(),this.position,this.focalPoint,r)),this._getAxes(),this._getDistance(),this._getAngles(),this.triggerUpdate(),this},t.prototype.getDistance=function(){return this.distance},t.prototype.getDistanceVector=function(){return this.distanceVector},t.prototype.setDistance=function(t){if(this.distance===t||t<0)return this;this.distance=t,this.distance<2e-4&&(this.distance=2e-4),this.dollyingStep=this.distance/100;var e=q.Ue();t=this.distance;var n=this.forward,r=this.focalPoint;return e[0]=t*n[0]+r[0],e[1]=t*n[1]+r[1],e[2]=t*n[2]+r[2],this._setPosition(e),this.triggerUpdate(),this},t.prototype.setMaxDistance=function(t){return this.maxDistance=t,this},t.prototype.setMinDistance=function(t){return this.minDistance=t,this},t.prototype.setAzimuth=function(t){return this.azimuth=tA(t),this.computeMatrix(),this._getAxes(),this.type===A.ORBITING||this.type===A.EXPLORING?this._getPosition():this.type===A.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this},t.prototype.getAzimuth=function(){return this.azimuth},t.prototype.setElevation=function(t){return this.elevation=tA(t),this.computeMatrix(),this._getAxes(),this.type===A.ORBITING||this.type===A.EXPLORING?this._getPosition():this.type===A.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this},t.prototype.getElevation=function(){return this.elevation},t.prototype.setRoll=function(t){return this.roll=tA(t),this.computeMatrix(),this._getAxes(),this.type===A.ORBITING||this.type===A.EXPLORING?this._getPosition():this.type===A.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this},t.prototype.getRoll=function(){return this.roll},t.prototype._update=function(){this._getAxes(),this._getPosition(),this._getDistance(),this._getAngles(),this._getOrthoMatrix(),this.triggerUpdate()},t.prototype.computeMatrix=function(){var t=Q.yY(Q.Ue(),[0,0,1],tI(this.roll));K.identity(this.matrix);var e=Q.yY(Q.Ue(),[1,0,0],tI((this.rotateWorld&&this.type!==A.TRACKING||this.type===A.TRACKING?1:-1)*this.elevation)),n=Q.yY(Q.Ue(),[0,1,0],tI((this.rotateWorld&&this.type!==A.TRACKING||this.type===A.TRACKING?1:-1)*this.azimuth)),r=Q.Jp(Q.Ue(),n,e);r=Q.Jp(Q.Ue(),r,t);var i=K.fromQuat(K.create(),r);this.type===A.ORBITING||this.type===A.EXPLORING?(K.translate(this.matrix,this.matrix,this.focalPoint),K.multiply(this.matrix,this.matrix,i),K.translate(this.matrix,this.matrix,[0,0,this.distance])):this.type===A.TRACKING&&(K.translate(this.matrix,this.matrix,this.position),K.multiply(this.matrix,this.matrix,i))},t.prototype._setPosition=function(t,e,n){this.position=tO(t,e,n);var r=this.matrix;r[12]=this.position[0],r[13]=this.position[1],r[14]=this.position[2],r[15]=1,this._getOrthoMatrix()},t.prototype._getAxes=function(){q.JG(this.right,tO($.fF($.Ue(),[1,0,0,0],this.matrix))),q.JG(this.up,tO($.fF($.Ue(),[0,1,0,0],this.matrix))),q.JG(this.forward,tO($.fF($.Ue(),[0,0,1,0],this.matrix))),q.Fv(this.right,this.right),q.Fv(this.up,this.up),q.Fv(this.forward,this.forward)},t.prototype._getAngles=function(){var t=this.distanceVector[0],e=this.distanceVector[1],n=this.distanceVector[2],r=q.kE(this.distanceVector);if(0===r){this.elevation=0,this.azimuth=0;return}this.type===A.TRACKING?(this.elevation=tL(Math.asin(e/r)),this.azimuth=tL(Math.atan2(-t,-n))):this.rotateWorld?(this.elevation=tL(Math.asin(e/r)),this.azimuth=tL(Math.atan2(-t,-n))):(this.elevation=-tL(Math.asin(e/r)),this.azimuth=-tL(Math.atan2(-t,-n)))},t.prototype._getPosition=function(){q.JG(this.position,tO($.fF($.Ue(),[0,0,0,1],this.matrix))),this._getDistance()},t.prototype._getFocalPoint=function(){q.kK(this.distanceVector,[0,0,-this.distance],J.xO(J.Ue(),this.matrix)),q.IH(this.focalPoint,this.position,this.distanceVector),this._getDistance()},t.prototype._getDistance=function(){this.distanceVector=q.$X(q.Ue(),this.focalPoint,this.position),this.distance=q.kE(this.distanceVector),this.dollyingStep=this.distance/100},t.prototype._getOrthoMatrix=function(){if(this.projectionMode===I.ORTHOGRAPHIC){var t=this.position,e=Q.yY(Q.Ue(),[0,0,1],-this.roll*Math.PI/180);K.fromRotationTranslationScaleOrigin(this.orthoMatrix,e,q.al((this.rright-this.left)/2-t[0],(this.top-this.bottom)/2-t[1],0),q.al(this.zoom,this.zoom,1),t)}},t.prototype.triggerUpdate=function(){if(this.enableUpdate){var t=this.getViewTransform(),e=K.multiply(K.create(),this.getPerspective(),t);this.getFrustum().extractFromVPMatrix(e),this.eventEmitter.emit(tK.UPDATED)}},t.prototype.rotate=function(t,e,n){throw Error(tH)},t.prototype.pan=function(t,e){throw Error(tH)},t.prototype.dolly=function(t){throw Error(tH)},t.prototype.createLandmark=function(t,e){throw Error(tH)},t.prototype.gotoLandmark=function(t,e){throw Error(tH)},t.prototype.cancelLandmarkAnimation=function(){throw Error(tH)},t}();function t$(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var n=function(){for(var r=[],i=0;i=L.kEms&&t=_.kUnitType&&this.getType()<=_.kClampType},t}(),t4=function(t){function e(e){var n=t.call(this)||this;return n.colorSpace=e,n}return(0,W.ZT)(e,t),e.prototype.getType=function(){return _.kColorType},e.prototype.to=function(t){return this},e}(t5);(v=U||(U={}))[v.Constant=0]="Constant",v[v.LinearGradient=1]="LinearGradient",v[v.RadialGradient=2]="RadialGradient";var t9=function(t){function e(e,n){var r=t.call(this)||this;return r.type=e,r.value=n,r}return(0,W.ZT)(e,t),e.prototype.clone=function(){return new e(this.type,this.value)},e.prototype.buildCSSText=function(t,e,n){return n},e.prototype.getType=function(){return _.kColorType},e}(t5),t8=function(t){function e(e){var n=t.call(this)||this;return n.value=e,n}return(0,W.ZT)(e,t),e.prototype.clone=function(){return new e(this.value)},e.prototype.getType=function(){return _.kKeywordType},e.prototype.buildCSSText=function(t,e,n){return n+this.value},e}(t5),t6=t$(function(t){return void 0===t&&(t=""),t.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})}),t7=function(t){return t.split("").map(function(t,e){return t.toUpperCase()===t?"".concat(0!==e?"-":"").concat(t.toLowerCase()):t}).join("")};function et(t){return"function"==typeof t}var ee={d:{alias:"path"},strokeDasharray:{alias:"lineDash"},strokeWidth:{alias:"lineWidth"},textAnchor:{alias:"textAlign"},src:{alias:"img"}},en=t$(function(t){var e=t6(t),n=ee[e];return(null==n?void 0:n.alias)||e}),er=function(t,e){void 0===e&&(e="");var n="";return Number.isFinite(t)?(function(t){if(!t)throw Error()}(Number.isNaN(t)),n="NaN"):n=t>0?"infinity":"-infinity",n+e},ei=function(t){return t1(t0(t))},eo=function(t){function e(e,n){void 0===n&&(n=L.kNumber);var r,i,o=t.call(this)||this;return i="string"==typeof n?(r=n)?"number"===r?L.kNumber:"percent"===r||"%"===r?L.kPercentage:tQ.find(function(t){return t.name===r}).unit_type:L.kUnknown:n,o.unit=i,o.value=e,o}return(0,W.ZT)(e,t),e.prototype.clone=function(){return new e(this.value,this.unit)},e.prototype.equals=function(t){return this.value===t.value&&this.unit===t.unit},e.prototype.getType=function(){return _.kUnitType},e.prototype.convertTo=function(t){if(this.unit===t)return new e(this.value,this.unit);var n=ei(this.unit);if(n!==ei(t)||n===L.kUnknown)return null;var r=t2(this.unit)/t2(t);return new e(this.value*r,t)},e.prototype.buildCSSText=function(t,e,n){var r;switch(this.unit){case L.kUnknown:break;case L.kInteger:r=Number(this.value).toFixed(0);break;case L.kNumber:case L.kPercentage:case L.kEms:case L.kRems:case L.kPixels:case L.kDegrees:case L.kRadians:case L.kGradians:case L.kMilliseconds:case L.kSeconds:case L.kTurns:var i=this.value,o=t3(this.unit);if(i<-999999||i>999999){var a=t3(this.unit);r=!Number.isFinite(i)||Number.isNaN(i)?er(i,a):i+(a||"")}else r="".concat(i).concat(o)}return n+r},e}(t5),ea=new eo(0,"px");new eo(1,"px");var es=new eo(0,"deg"),el=function(t){function e(e,n,r,i,o){void 0===i&&(i=1),void 0===o&&(o=!1);var a=t.call(this,"rgb")||this;return a.r=e,a.g=n,a.b=r,a.alpha=i,a.isNone=o,a}return(0,W.ZT)(e,t),e.prototype.clone=function(){return new e(this.r,this.g,this.b,this.alpha)},e.prototype.buildCSSText=function(t,e,n){return n+"rgba(".concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.alpha,")")},e}(t4),eu=new t8("unset"),ec={"":eu,unset:eu,initial:new t8("initial"),inherit:new t8("inherit")},eh=function(t){return ec[t]||(ec[t]=new t8(t)),ec[t]},ep=new el(0,0,0,0,!0),ed=new el(0,0,0,0),ef=t$(function(t,e,n,r){return new el(t,e,n,r)},function(t,e,n,r){return"rgba(".concat(t,",").concat(e,",").concat(n,",").concat(r,")")}),ev=function(t,e){return void 0===e&&(e=L.kNumber),new eo(t,e)};new eo(50,"%"),(y=V||(V={}))[y.Standard=0]="Standard",(g=Z||(Z={}))[g.ADDED=0]="ADDED",g[g.REMOVED=1]="REMOVED",g[g.Z_INDEX_CHANGED=2]="Z_INDEX_CHANGED";var ey={absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new tW(0,0,0,0)};(m=Y||(Y={})).COORDINATE="",m.COLOR="",m.PAINT="",m.NUMBER="",m.ANGLE="",m.OPACITY_VALUE="",m.SHADOW_BLUR="",m.LENGTH="",m.PERCENTAGE="",m.LENGTH_PERCENTAGE=" | ",m.LENGTH_PERCENTAGE_12="[ | ]{1,2}",m.LENGTH_PERCENTAGE_14="[ | ]{1,4}",m.LIST_OF_POINTS="",m.PATH="",m.FILTER="",m.Z_INDEX="",m.OFFSET_DISTANCE="",m.DEFINED_PATH="",m.MARKER="",m.TRANSFORM="",m.TRANSFORM_ORIGIN="",m.TEXT="",m.TEXT_TRANSFORM="";var eg=function(){var t={linearGradient:/^(linear\-gradient)/i,repeatingLinearGradient:/^(repeating\-linear\-gradient)/i,radialGradient:/^(radial\-gradient)/i,repeatingRadialGradient:/^(repeating\-radial\-gradient)/i,conicGradient:/^(conic\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},e="";function n(t){throw Error(e+": "+t)}function r(){return i("linear-gradient",t.linearGradient,a)||i("repeating-linear-gradient",t.repeatingLinearGradient,a)||i("radial-gradient",t.radialGradient,s)||i("repeating-radial-gradient",t.repeatingRadialGradient,s)||i("conic-gradient",t.conicGradient,s)}function i(e,r,i){return o(r,function(r){var o=i();return o&&!m(t.comma)&&n("Missing comma before color stops"),{type:e,orientation:o,colorStops:p(d)}})}function o(e,r){var i=m(e);if(i){m(t.startCall)||n("Missing (");var o=r(i);return m(t.endCall)||n("Missing )"),o}}function a(){return g("directional",t.sideOrCorner,1)||g("angular",t.angleValue,1)}function s(){var n,r,i=l();return i&&((n=[]).push(i),r=e,m(t.comma)&&((i=l())?n.push(i):e=r)),n}function l(){var t,e,n=((t=g("shape",/^(circle)/i,0))&&(t.style=y()||u()),t||((e=g("shape",/^(ellipse)/i,0))&&(e.style=v()||u()),e));if(n)n.at=c();else{var r=u();if(r){n=r;var i=c();i&&(n.at=i)}else{var o=h();o&&(n={type:"default-radial",at:o})}}return n}function u(){return g("extent-keyword",t.extentKeywords,1)}function c(){if(g("position",/^at/,0)){var t=h();return t||n("Missing positioning value"),t}}function h(){var t={x:v(),y:v()};if(t.x||t.y)return{type:"position",value:t}}function p(e){var r=e(),i=[];if(r)for(i.push(r);m(t.comma);)(r=e())?i.push(r):n("One extra comma");return i}function d(){var e=g("hex",t.hexColor,1)||o(t.rgbaColor,function(){return{type:"rgba",value:p(f)}})||o(t.rgbColor,function(){return{type:"rgb",value:p(f)}})||g("literal",t.literalColor,0);return e||n("Expected color definition"),e.length=v(),e}function f(){return m(t.number)[1]}function v(){return g("%",t.percentageValue,1)||g("position-keyword",t.positionKeywords,1)||y()}function y(){return g("px",t.pixelValue,1)||g("em",t.emValue,1)}function g(t,e,n){var r=m(e);if(r)return{type:t,value:r[n]}}function m(t){var n=/^[\n\r\t\s]+/.exec(e);n&&E(n[0].length);var r=t.exec(e);return r&&E(r[0].length),r}function E(t){e=e.substring(t)}return function(t){var i;return e=t,i=p(r),e.length>0&&n("Invalid input not EOF"),i}}(),em=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,eE=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,ex=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,eb=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,eT={left:180,top:-90,bottom:90,right:0,"left top":225,"top left":225,"left bottom":135,"bottom left":135,"right top":-45,"top right":-45,"right bottom":45,"bottom right":45},eP=t$(function(t){return ev("angular"===t.type?Number(t.value):eT[t.value]||0,"deg")}),eS=t$(function(t){var e=50,n=50,r="%",i="%";if((null==t?void 0:t.type)==="position"){var o=t.value,a=o.x,s=o.y;(null==a?void 0:a.type)==="position-keyword"&&("left"===a.value?e=0:"center"===a.value?e=50:"right"===a.value?e=100:"top"===a.value?n=0:"bottom"===a.value&&(n=100)),(null==s?void 0:s.type)==="position-keyword"&&("left"===s.value?e=0:"center"===s.value?n=50:"right"===s.value?e=100:"top"===s.value?n=0:"bottom"===s.value&&(n=100)),((null==a?void 0:a.type)==="px"||(null==a?void 0:a.type)==="%"||(null==a?void 0:a.type)==="em")&&(r=null==a?void 0:a.type,e=Number(a.value)),((null==s?void 0:s.type)==="px"||(null==s?void 0:s.type)==="%"||(null==s?void 0:s.type)==="em")&&(i=null==s?void 0:s.type,n=Number(s.value))}return{cx:ev(e,r),cy:ev(n,i)}}),eN=t$(function(t){if(t.indexOf("linear")>-1||t.indexOf("radial")>-1){var e;return eg(t).map(function(t){var e=t.type,n=t.orientation,r=t.colorStops;!function(t){var e,n,r,i=t.length;t[i-1].length=null!==(e=t[i-1].length)&&void 0!==e?e:{type:"%",value:"100"},i>1&&(t[0].length=null!==(n=t[0].length)&&void 0!==n?n:{type:"%",value:"0"});for(var o=0,a=Number(t[0].length.value),s=1;s=0)return ev(Number(e),"px");if("deg".search(t)>=0)return ev(Number(e),"deg")}var n=[];e=e.replace(t,function(t){return n.push(t),"U"+t});var r="U("+t.source+")";return n.map(function(t){return ev(Number(e.replace(RegExp("U"+t,"g"),"").replace(RegExp(r,"g"),"*0")),t)})[0]}var eA=function(t){return eR(/px/g,t)},eO=t$(eA);t$(function(t){return eR(RegExp("%","g"),t)});var eI=function(t){return(0,te.Z)(t)||isFinite(Number(t))?ev(Number(t)||0,"px"):eR(RegExp("px|%|em|rem","g"),t)},eL=t$(eI),eD=function(t){return eR(RegExp("deg|rad|grad|turn","g"),t)},eG=t$(eD);function eB(t){var e=0;return t.unit===L.kDegrees?e=t.value:t.unit===L.kRadians?e=tL(Number(t.value)):t.unit===L.kTurns&&(e=360*Number(t.value)),e}function eF(t,e){var n;return(Array.isArray(t)?n=t.map(function(t){return Number(t)}):(0,tr.Z)(t)?n=t.split(" ").map(function(t){return Number(t)}):(0,te.Z)(t)&&(n=[t]),2===e)?1===n.length?[n[0],n[0]]:[n[0],n[1]]:1===n.length?[n[0],n[0],n[0],n[0]]:2===n.length?[n[0],n[1],n[0],n[1]]:3===n.length?[n[0],n[1],n[2],n[1]]:[n[0],n[1],n[2],n[3]]}function e_(t){return(0,tr.Z)(t)?t.split(" ").map(function(t){return eL(t)}):t.map(function(t){return eL(t.toString())})}function eU(t,e,n,r){if(void 0===r&&(r=!1),t.unit===L.kPixels)return Number(t.value);if(t.unit===L.kPercentage&&n){var i=n.nodeName===k.GROUP?n.getLocalBounds():n.getGeometryBounds();return(r?i.min[e]:0)+t.value/100*i.halfExtents[e]*2}return 0}var eV=["blur","brightness","drop-shadow","contrast","grayscale","sepia","saturate","hue-rotate","invert"];function eZ(t){if(void 0===t&&(t=""),"none"===(t=t.toLowerCase().trim()))return[];for(var e,n=/\s*([\w-]+)\(([^)]*)\)/g,r=[],i=0;(e=n.exec(t))&&e.index===i;)if(i=e.index+e[0].length,eV.indexOf(e[1])>-1&&r.push({name:e[1],params:e[2].split(" ").map(function(t){return eR(/deg|rad|grad|turn|px|%/g,t)||ek(t)})}),n.lastIndex===t.length)return r;return[]}function eY(t){return t.toString()}var ez=function(t){return"number"==typeof t?ev(t):/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t)?ev(Number(t)):ev(0)},eX=t$(ez);function ej(t,e){return[t,e,eY]}function eW(t,e){return function(n,r){return[n,r,function(n){return eY((0,ti.Z)(n,t,e))}]}}function eH(t,e){if(t.length===e.length)return[t,e,function(t){return t}]}function eq(t){return 0===t.parsedStyle.d.totalLength&&(t.parsedStyle.d.totalLength=(0,to.D)(t.parsedStyle.d.absolutePath)),t.parsedStyle.d.totalLength}function eK(t,e){return t[0]===e[0]&&t[1]===e[1]}function eJ(t,e){var n=t.prePoint,r=t.currentPoint,i=t.nextPoint,o=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),a=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),s=Math.acos((o+a-(Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2)))/(2*Math.sqrt(o)*Math.sqrt(a)));if(!s||0===Math.sin(s)||(0,tl.Z)(s,0))return{xExtra:0,yExtra:0};var l=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),u=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));return{xExtra:Math.cos(s/2-(l=l>Math.PI/2?Math.PI-l:l))*(e/2*(1/Math.sin(s/2)))-e/2||0,yExtra:Math.cos((u=u>Math.PI/2?Math.PI-u:u)-s/2)*(e/2*(1/Math.sin(s/2)))-e/2||0}}function e$(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}t$(function(t){return(0,tr.Z)(t)?t.split(" ").map(eX):t.map(eX)});var eQ=function(t,e){var n=t.x*e.x+t.y*e.y,r=Math.sqrt((Math.pow(t.x,2)+Math.pow(t.y,2))*(Math.pow(e.x,2)+Math.pow(e.y,2)));return(t.x*e.y-t.y*e.x<0?-1:1)*Math.acos(n/r)},e0=function(t,e,n,r,i,o,a,s){e=Math.abs(e),n=Math.abs(n);var l=tI(r=(0,tu.Z)(r,360));if(t.x===a.x&&t.y===a.y)return{x:t.x,y:t.y,ellipticalArcAngle:0};if(0===e||0===n)return{x:0,y:0,ellipticalArcAngle:0};var u=(t.x-a.x)/2,c=(t.y-a.y)/2,h={x:Math.cos(l)*u+Math.sin(l)*c,y:-Math.sin(l)*u+Math.cos(l)*c},p=Math.pow(h.x,2)/Math.pow(e,2)+Math.pow(h.y,2)/Math.pow(n,2);p>1&&(e=Math.sqrt(p)*e,n=Math.sqrt(p)*n);var d=(Math.pow(e,2)*Math.pow(n,2)-Math.pow(e,2)*Math.pow(h.y,2)-Math.pow(n,2)*Math.pow(h.x,2))/(Math.pow(e,2)*Math.pow(h.y,2)+Math.pow(n,2)*Math.pow(h.x,2)),f=(i!==o?1:-1)*Math.sqrt(d=d<0?0:d),v={x:f*(e*h.y/n),y:f*(-(n*h.x)/e)},y={x:Math.cos(l)*v.x-Math.sin(l)*v.y+(t.x+a.x)/2,y:Math.sin(l)*v.x+Math.cos(l)*v.y+(t.y+a.y)/2},g={x:(h.x-v.x)/e,y:(h.y-v.y)/n},m=eQ({x:1,y:0},g),E=eQ(g,{x:(-h.x-v.x)/e,y:(-h.y-v.y)/n});!o&&E>0?E-=2*Math.PI:o&&E<0&&(E+=2*Math.PI);var x=m+(E%=2*Math.PI)*s,b=e*Math.cos(x),T=n*Math.sin(x);return{x:Math.cos(l)*b-Math.sin(l)*T+y.x,y:Math.sin(l)*b+Math.cos(l)*T+y.y,ellipticalArcStartAngle:m,ellipticalArcEndAngle:m+E,ellipticalArcAngle:x,ellipticalArcCenter:y,resultantRx:e,resultantRy:n}};function e1(t,e,n){void 0===n&&(n=!0);var r=t.arcParams,i=r.rx,o=void 0===i?0:i,a=r.ry,s=void 0===a?0:a,l=r.xRotation,u=r.arcFlag,c=r.sweepFlag,h=e0({x:t.prePoint[0],y:t.prePoint[1]},o,s,l,!!u,!!c,{x:t.currentPoint[0],y:t.currentPoint[1]},e),p=e0({x:t.prePoint[0],y:t.prePoint[1]},o,s,l,!!u,!!c,{x:t.currentPoint[0],y:t.currentPoint[1]},n?e+.005:e-.005),d=p.x-h.x,f=p.y-h.y,v=Math.sqrt(d*d+f*f);return{x:-d/v,y:-f/v}}function e2(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function e3(t,e){return e2(t)*e2(e)?(t[0]*e[0]+t[1]*e[1])/(e2(t)*e2(e)):1}function e5(t,e){return(t[0]*e[1]0&&n.push(r),{polygons:e,polylines:n}}(e),i=r.polygons,o=r.polylines,a=function(t){for(var e=[],n=null,r=null,i=null,o=0,a=t.length,s=0;s1&&(n*=Math.sqrt(d),r*=Math.sqrt(d));var f=n*n*(p*p)+r*r*(h*h),v=f?Math.sqrt((n*n*(r*r)-f)/f):1;o===a&&(v*=-1),isNaN(v)&&(v=0);var y=r?v*n*p/r:0,g=n?-(v*r)*h/n:0,m=(s+u)/2+Math.cos(i)*y-Math.sin(i)*g,E=(l+c)/2+Math.sin(i)*y+Math.cos(i)*g,x=[(h-y)/n,(p-g)/r],b=[(-1*h-y)/n,(-1*p-g)/r],T=e5([1,0],x),P=e5(x,b);return -1>=e3(x,b)&&(P=Math.PI),e3(x,b)>=1&&(P=0),0===a&&P>0&&(P-=2*Math.PI),1===a&&P<0&&(P+=2*Math.PI),{cx:m,cy:E,rx:eK(t,[u,c])?0:n,ry:eK(t,[u,c])?0:r,startAngle:T,endAngle:T+P,xRotation:i,arcFlag:o,sweepFlag:a}}(n,l);c.arcParams=h}if("Z"===u)n=i,r=t[o+1];else{var p=l.length;n=[l[p-2],l[p-1]]}r&&"Z"===r[0]&&(r=t[o],e[o]&&(e[o].prePoint=n)),c.currentPoint=n,e[o]&&eK(n,e[o].currentPoint)&&(e[o].prePoint=c.prePoint);var d=r?[r[r.length-2],r[r.length-1]]:null;c.nextPoint=d;var f=c.prePoint;if(["L","H","V"].includes(u))c.startTangent=[f[0]-n[0],f[1]-n[1]],c.endTangent=[n[0]-f[0],n[1]-f[1]];else if("Q"===u){var v=[l[1],l[2]];c.startTangent=[f[0]-v[0],f[1]-v[1]],c.endTangent=[n[0]-v[0],n[1]-v[1]]}else if("T"===u){var y=e[s-1],v=e$(y.currentPoint,f);"Q"===y.command?(c.command="Q",c.startTangent=[f[0]-v[0],f[1]-v[1]],c.endTangent=[n[0]-v[0],n[1]-v[1]]):(c.command="TL",c.startTangent=[f[0]-n[0],f[1]-n[1]],c.endTangent=[n[0]-f[0],n[1]-f[1]])}else if("C"===u){var g=[l[1],l[2]],m=[l[3],l[4]];c.startTangent=[f[0]-g[0],f[1]-g[1]],c.endTangent=[n[0]-m[0],n[1]-m[1]],0===c.startTangent[0]&&0===c.startTangent[1]&&(c.startTangent=[g[0]-m[0],g[1]-m[1]]),0===c.endTangent[0]&&0===c.endTangent[1]&&(c.endTangent=[m[0]-g[0],m[1]-g[1]])}else if("S"===u){var y=e[s-1],g=e$(y.currentPoint,f),m=[l[1],l[2]];"C"===y.command?(c.command="C",c.startTangent=[f[0]-g[0],f[1]-g[1]],c.endTangent=[n[0]-m[0],n[1]-m[1]]):(c.command="SQ",c.startTangent=[f[0]-m[0],f[1]-m[1]],c.endTangent=[n[0]-m[0],n[1]-m[1]])}else if("A"===u){var E=e1(c,0),x=E.x,b=E.y,T=e1(c,1,!1),P=T.x,S=T.y;c.startTangent=[x,b],c.endTangent=[P,S]}e.push(c)}return e}(e),s=function(t,e){for(var n=[],r=[],i=[],o=0;oMath.abs(K.determinant(tF))))){var a=tB[3],s=tB[7],l=tB[11],u=tB[12],c=tB[13],h=tB[14],p=tB[15];if(0!==a||0!==s||0!==l){if(t_[0]=a,t_[1]=s,t_[2]=l,t_[3]=p,!K.invert(tF,tF))return;K.transpose(tF,tF),$.fF(i,t_,tF)}else i[0]=i[1]=i[2]=0,i[3]=1;if(e[0]=u,e[1]=c,e[2]=h,tU[0][0]=tB[0],tU[0][1]=tB[1],tU[0][2]=tB[2],tU[1][0]=tB[4],tU[1][1]=tB[5],tU[1][2]=tB[6],tU[2][0]=tB[8],tU[2][1]=tB[9],tU[2][2]=tB[10],n[0]=q.kE(tU[0]),q.Fv(tU[0],tU[0]),r[0]=q.AK(tU[0],tU[1]),tZ(tU[1],tU[1],tU[0],1,-r[0]),n[1]=q.kE(tU[1]),q.Fv(tU[1],tU[1]),r[0]/=n[1],r[1]=q.AK(tU[0],tU[2]),tZ(tU[2],tU[2],tU[0],1,-r[1]),r[2]=q.AK(tU[1],tU[2]),tZ(tU[2],tU[2],tU[1],1,-r[2]),n[2]=q.kE(tU[2]),q.Fv(tU[2],tU[2]),r[1]/=n[2],r[2]/=n[2],q.kC(tV,tU[1],tU[2]),0>q.AK(tU[0],tV))for(var d=0;d<3;d++)n[d]*=-1,tU[d][0]*=-1,tU[d][1]*=-1,tU[d][2]*=-1;o[0]=.5*Math.sqrt(Math.max(1+tU[0][0]-tU[1][1]-tU[2][2],0)),o[1]=.5*Math.sqrt(Math.max(1-tU[0][0]+tU[1][1]-tU[2][2],0)),o[2]=.5*Math.sqrt(Math.max(1-tU[0][0]-tU[1][1]+tU[2][2],0)),o[3]=.5*Math.sqrt(Math.max(1+tU[0][0]+tU[1][1]+tU[2][2],0)),tU[2][1]>tU[1][2]&&(o[0]=-o[0]),tU[0][2]>tU[2][0]&&(o[1]=-o[1]),tU[1][0]>tU[0][1]&&(o[2]=-o[2])}}(0===t.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:t.map(na).reduce(ns),e,n,r,i,o),[[e,n,r,o,i]]}var nu=function(){function t(t,e){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var i=0;i<4;i++)for(var o=0;o<4;o++)n[r][i]+=e[r][o]*t[o][i];return n}return function(e,n,r,i,o){for(var a,s=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],l=0;l<4;l++)s[l][3]=o[l];for(var l=0;l<3;l++)for(var u=0;u<3;u++)s[3][l]+=e[u]*s[u][l];var c=i[0],h=i[1],p=i[2],d=i[3],f=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];f[0][0]=1-2*(h*h+p*p),f[0][1]=2*(c*h-p*d),f[0][2]=2*(c*p+h*d),f[1][0]=2*(c*h+p*d),f[1][1]=1-2*(c*c+p*p),f[1][2]=2*(h*p-c*d),f[2][0]=2*(c*p-h*d),f[2][1]=2*(h*p+c*d),f[2][2]=1-2*(c*c+h*h),s=t(s,f);var v=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];r[2]&&(v[2][1]=r[2],s=t(s,v)),r[1]&&(v[2][1]=0,v[2][0]=r[0],s=t(s,v)),r[0]&&(v[2][0]=0,v[1][0]=r[0],s=t(s,v));for(var l=0;l<3;l++)for(var u=0;u<3;u++)s[l][u]*=n[l];return 0==(a=s)[0][2]&&0==a[0][3]&&0==a[1][2]&&0==a[1][3]&&0==a[2][0]&&0==a[2][1]&&1==a[2][2]&&0==a[2][3]&&0==a[3][2]&&1==a[3][3]?[s[0][0],s[0][1],s[1][0],s[1][1],s[3][0],s[3][1]]:s[0].concat(s[1],s[2],s[3])}}();function nc(t){return t.toFixed(6).replace(".000000","")}function nh(t,e){var n,r;return(t.decompositionPair!==e&&(t.decompositionPair=e,n=nl(t)),e.decompositionPair!==t&&(e.decompositionPair=t,r=nl(e)),null===n[0]||null===r[0])?[[!1],[!0],function(n){return n?e[0].d:t[0].d}]:(n[0].push(0),r[0].push(1),[n,r,function(t){var e=function(t,e,n){var r=function(t,e){for(var n=0,r=0;r"].calculator(null,null,{value:e.textTransform},t,null),(0,tg.Z)(e.clipPath)||this.runtime.CSSPropertySyntaxFactory[""].calculator("clipPath",p,e.clipPath,t,this.runtime),e.offsetPath&&this.runtime.CSSPropertySyntaxFactory[""].calculator("offsetPath",d,e.offsetPath,t,this.runtime),e.transform&&(t.parsedStyle.transform=ni(e.transform)),e.transformOrigin&&(t.parsedStyle.transformOrigin=nv(e.transformOrigin)),e.markerStart&&(t.parsedStyle.markerStart=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,e.markerStart,e.markerStart,null,null)),e.markerEnd&&(t.parsedStyle.markerEnd=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,e.markerEnd,e.markerEnd,null,null)),e.markerMid&&(t.parsedStyle.markerMid=this.runtime.CSSPropertySyntaxFactory[""].calculator("",e.markerMid,e.markerMid,null,null)),(0,tn.Z)(e.zIndex)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(t,h),(0,tn.Z)(e.offsetDistance)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(t,h),e.transform&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(t,h),e.transformOrigin&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(t,h),f&&(t.geometry.dirty=!0,t.renderable.boundsDirty=!0,t.renderable.renderBoundsDirty=!0,n.forceUpdateGeometry||this.runtime.sceneGraphService.dirtifyToRoot(t))}},t.prototype.parseProperty=function(t,e,n,r){var i=nx[t],o=e;if((""===e||(0,tn.Z)(e))&&(e="unset"),"unset"===e||"initial"===e||"inherit"===e)o=eh(e);else if(i){var a=i.k,s=i.syntax,l=s&&this.getPropertySyntax(s);a&&a.indexOf(e)>-1?o=eh(e):l&&(!r&&l.parserUnmemoize?o=l.parserUnmemoize(e,n):l.parser&&(o=l.parser(e,n)))}return o},t.prototype.computeProperty=function(t,e,n,r){var i=nx[t],o="g-root"===n.id,a=e;if(i){var s=i.syntax,l=i.inh,u=i.d;if(e instanceof t8){var c=e.value;if("unset"===c&&(c=l&&!o?"inherit":"initial"),"initial"===c)(0,tn.Z)(u)||(e=this.parseProperty(t,et(u)?u(n.nodeName):u,n,r));else if("inherit"===c){var h=this.tryToResolveProperty(n,t,{inherited:!0});return(0,tn.Z)(h)?void this.addUnresolveProperty(n,t):h}}var p=s&&this.getPropertySyntax(s);if(p&&p.calculator){var d=n.parsedStyle[t];a=p.calculator(t,d,e,n,this.runtime)}else a=e instanceof t8?e.value:e}return a},t.prototype.postProcessProperty=function(t,e,n){var r=nx[t];if(r&&r.syntax){var i=r.syntax&&this.getPropertySyntax(r.syntax);i&&i.postProcessor&&i.postProcessor(e,n)}},t.prototype.addUnresolveProperty=function(t,e){var n=nb.get(t);n||(nb.set(t,[]),n=nb.get(t)),-1===n.indexOf(e)&&n.push(e)},t.prototype.tryToResolveProperty=function(t,e,n){if(void 0===n&&(n={}),n.inherited&&t.parentElement&&nT(t.parentElement,e)){var r=t.parentElement.parsedStyle[e];if("unset"!==r&&"initial"!==r&&"inherit"!==r)return r}},t.prototype.recalc=function(t){var e=nb.get(t);if(e&&e.length){var n={};e.forEach(function(e){n[e]=t.attributes[e]}),this.processProperties(t,n),nb.delete(t)}},t.prototype.updateGeometry=function(t){var e=t.nodeName,n=this.runtime.geometryUpdaterFactory[e];if(n){var r=t.geometry;r.contentBounds||(r.contentBounds=new tY),r.renderBounds||(r.renderBounds=new tY);var i=t.parsedStyle,o=n.update(i,t),a=o.cx,s=o.cy,l=o.cz,u=o.hwidth,c=void 0===u?0:u,h=o.hheight,p=void 0===h?0:h,d=o.hdepth,f=[Math.abs(c),Math.abs(p),void 0===d?0:d],v=i.stroke,y=i.lineWidth,g=i.increasedLineWidthForHitTesting,m=i.shadowType,E=void 0===m?"outer":m,x=i.shadowColor,b=i.filter,T=i.transformOrigin,P=[void 0===a?0:a,void 0===s?0:s,void 0===l?0:l];r.contentBounds.update(P,f);var S=e===k.POLYLINE||e===k.POLYGON||e===k.PATH?Math.SQRT2:.5;if(v&&!v.isNone){var N=(((void 0===y?1:y)||0)+((void 0===g?0:g)||0))*S;f[0]+=N,f[1]+=N}if(r.renderBounds.update(P,f),x&&E&&"inner"!==E){var C=r.renderBounds,w=C.min,M=C.max,R=i.shadowBlur,A=i.shadowOffsetX,O=i.shadowOffsetY,I=R||0,L=A||0,D=O||0,G=w[0]-I+L,B=M[0]+I+L,F=w[1]-I+D,_=M[1]+I+D;w[0]=Math.min(w[0],G),M[0]=Math.max(M[0],B),w[1]=Math.min(w[1],F),M[1]=Math.max(M[1],_),r.renderBounds.setMinMax(w,M)}(void 0===b?[]:b).forEach(function(t){var e=t.name,n=t.params;if("blur"===e){var i=n[0].value;r.renderBounds.update(r.renderBounds.center,tM(r.renderBounds.halfExtents,r.renderBounds.halfExtents,[i,i,0]))}else if("drop-shadow"===e){var o=n[0].value,a=n[1].value,s=n[2].value,l=r.renderBounds,u=l.min,c=l.max,h=u[0]-s+o,p=c[0]+s+o,d=u[1]-s+a,f=c[1]+s+a;u[0]=Math.min(u[0],h),c[0]=Math.max(c[0],p),u[1]=Math.min(u[1],d),c[1]=Math.max(c[1],f),r.renderBounds.setMinMax(u,c)}}),t.geometry.dirty=!1;var U=p<0,V=(c<0?-1:1)*(T?eU(T[0],0,t,!0):0),Z=(U?-1:1)*(T?eU(T[1],1,t,!0):0);(V||Z)&&t.setOrigin(V,Z)}},t.prototype.updateSizeAttenuation=function(t,e){t.style.isSizeAttenuation?(t.style.rawLineWidth||(t.style.rawLineWidth=t.style.lineWidth),t.style.lineWidth=(t.style.rawLineWidth||1)/e,t.nodeName===k.CIRCLE&&(t.style.rawR||(t.style.rawR=t.style.r),t.style.r=(t.style.rawR||1)/e)):(t.style.rawLineWidth&&(t.style.lineWidth=t.style.rawLineWidth,delete t.style.rawLineWidth),t.nodeName===k.CIRCLE&&t.style.rawR&&(t.style.r=t.style.rawR,delete t.style.rawR))},t.prototype.isPropertyInheritable=function(t){var e=nx[t];return!!e&&e.inh},t}(),nS=function(){function t(){this.parser=eG,this.parserUnmemoize=eD,this.parserWithCSSDisabled=null,this.mixer=ej}return t.prototype.calculator=function(t,e,n,r){return eB(n)},t}(),nN=function(){function t(){}return t.prototype.calculator=function(t,e,n,r,i){return n instanceof t8&&(n=null),i.sceneGraphService.updateDisplayObjectDependency(t,e,n,r),"clipPath"===t&&r.forEach(function(t){0===t.childNodes.length&&i.sceneGraphService.dirtifyToRoot(t)}),n},t}(),nC=function(){function t(){this.parser=ek,this.parserWithCSSDisabled=ek,this.mixer=eM}return t.prototype.calculator=function(t,e,n,r){return n instanceof t8?"none"===n.value?ep:ed:n},t}(),nw=function(){function t(){this.parser=eZ}return t.prototype.calculator=function(t,e,n){return n instanceof t8?[]:n},t}();function nk(t){var e=t.parsedStyle.fontSize;return(0,tn.Z)(e)?null:e}var nM=function(){function t(){this.parser=eL,this.parserUnmemoize=eI,this.parserWithCSSDisabled=null,this.mixer=ej}return t.prototype.calculator=function(t,e,n,r,i){if((0,te.Z)(n))return n;if(!eo.isRelativeUnit(n.unit))return n.value;var o,a=i.styleValueRegistry;if(n.unit===L.kPercentage)return 0;if(n.unit===L.kEms){if(r.parentNode){var s=nk(r.parentNode);if(s)return s*n.value;a.addUnresolveProperty(r,t)}else a.addUnresolveProperty(r,t);return 0}if(n.unit===L.kRems){if(null===(o=null==r?void 0:r.ownerDocument)||void 0===o?void 0:o.documentElement){var s=nk(r.ownerDocument.documentElement);if(s)return s*n.value;a.addUnresolveProperty(r,t)}else a.addUnresolveProperty(r,t);return 0}},t}(),nR=function(){function t(){this.mixer=eH}return t.prototype.parser=function(t){var e=e_((0,te.Z)(t)?[t]:t);return 1===e.length?[e[0],e[0]]:[e[0],e[1]]},t.prototype.calculator=function(t,e,n){return n.map(function(t){return t.value})},t}(),nA=function(){function t(){this.mixer=eH}return t.prototype.parser=function(t){var e=e_((0,te.Z)(t)?[t]:t);return 1===e.length?[e[0],e[0],e[0],e[0]]:2===e.length?[e[0],e[1],e[0],e[1]]:3===e.length?[e[0],e[1],e[2],e[1]]:[e[0],e[1],e[2],e[3]]},t.prototype.calculator=function(t,e,n){return n.map(function(t){return t.value})},t}(),nO=function(){function t(){}return t.prototype.calculator=function(t,e,n,r){n instanceof t8&&(n=null);var i=null==n?void 0:n.cloneNode(!0);return i&&(i.style.isMarker=!0),i},t}(),nI=function(){function t(){this.mixer=ej,this.parser=eX,this.parserUnmemoize=ez,this.parserWithCSSDisabled=null}return t.prototype.calculator=function(t,e,n){return n.value},t}(),nL=function(){function t(){this.parser=eX,this.parserUnmemoize=ez,this.parserWithCSSDisabled=null,this.mixer=eW(0,1)}return t.prototype.calculator=function(t,e,n){return n.value},t.prototype.postProcessor=function(t){var e=t.parsedStyle,n=e.offsetPath,r=e.offsetDistance;if(n){var i=n.nodeName;if(i===k.LINE||i===k.PATH||i===k.POLYLINE){var o=n.getPoint(r);o&&t.setLocalPosition(o.x,o.y)}}},t}(),nD=function(){function t(){this.parser=eX,this.parserUnmemoize=ez,this.parserWithCSSDisabled=null,this.mixer=eW(0,1)}return t.prototype.calculator=function(t,e,n){return n.value},t}(),nG=function(){function t(){this.parser=e8,this.parserWithCSSDisabled=e8,this.mixer=e6}return t.prototype.calculator=function(t,e,n){return n instanceof t8&&"unset"===n.value?{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new tW(0,0,0,0)}:n},t}(),nB=function(t){function e(){var e=t.apply(this,(0,W.ev)([],(0,W.CR)(arguments),!1))||this;return e.mixer=eW(0,1/0),e}return(0,W.ZT)(e,t),e}(nM),nF=function(){function t(){}return t.prototype.calculator=function(t,e,n,r){return n instanceof t8?"unset"===n.value?"":n.value:"".concat(n)},t.prototype.postProcessor=function(t){t.nodeValue="".concat(t.parsedStyle.text)||""},t}(),n_=function(){function t(){}return t.prototype.calculator=function(t,e,n,r){var i=r.getAttribute("text");if(i){var o=i;"capitalize"===n.value?o=i.charAt(0).toUpperCase()+i.slice(1):"lowercase"===n.value?o=i.toLowerCase():"uppercase"===n.value&&(o=i.toUpperCase()),r.parsedStyle.text=o}return n.value},t}(),nU={},nV=0,nZ="undefined"!=typeof window&&void 0!==window.document;function nY(t,e){var n=Number(t.parsedStyle.zIndex||0),r=Number(e.parsedStyle.zIndex||0);if(n===r){var i=t.parentNode;if(i){var o=i.childNodes||[];return o.indexOf(t)-o.indexOf(e)}}return n-r}function nz(t,e){if(nZ)return document.defaultView.getComputedStyle(t,null).getPropertyValue(e)}var nX={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"},nj="object"==typeof performance&&performance.now?performance:Date,nW=1,nH="object"==typeof self&&self.self==self?self:"object"==typeof n.g&&n.g.global==n.g?n.g:{},nq=Date.now(),nK={},nJ=Date.now(),n$=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function");var e=Date.now(),n=e-nJ,r=nW++;return nK[r]=t,Object.keys(nK).length>1||setTimeout(function(){nJ=e;var t=nK;nK={},Object.keys(t).forEach(function(e){return t[e](nH.performance&&"function"==typeof nH.performance.now?nH.performance.now():Date.now()-nq)})},n>16?0:16-n),r},nQ=function(t){return"string"!=typeof t?n$:""===t?nH.requestAnimationFrame:nH[t+"RequestAnimationFrame"]},n0=function(t,e){for(var n=0;void 0!==t[n];){if(e(t[n]))return t[n];n+=1}}(["","webkit","moz","ms","o"],function(t){return!!nQ(t)}),n1=nQ(n0),n2="string"!=typeof n0?function(t){delete nK[t]}:""===n0?nH.cancelAnimationFrame:nH[n0+"CancelAnimationFrame"]||nH[n0+"CancelRequestAnimationFrame"];nH.requestAnimationFrame=n1,nH.cancelAnimationFrame=n2;var n3=function(){function t(){this.callbacks=[]}return t.prototype.getCallbacksNum=function(){return this.callbacks.length},t.prototype.tapPromise=function(t,e){this.callbacks.push(e)},t.prototype.promise=function(){for(var t=[],e=0;e-1){var l=(0,W.CR)(t.split(":"),2),u=l[0];t=l[1],s=u,a=!0}if(t=r?"".concat(t,"capture"):t,e=et(e)?e:e.handleEvent,a){var c=e;e=function(){for(var t,e=[],n=0;n0},e.prototype.isDefaultNamespace=function(t){throw Error(tH)},e.prototype.lookupNamespaceURI=function(t){throw Error(tH)},e.prototype.lookupPrefix=function(t){throw Error(tH)},e.prototype.normalize=function(){throw Error(tH)},e.prototype.isEqualNode=function(t){return this===t},e.prototype.isSameNode=function(t){return this.isEqualNode(t)},Object.defineProperty(e.prototype,"parent",{get:function(){return this.parentNode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.childNodes.length>0?this.childNodes[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.childNodes.length>0?this.childNodes[this.childNodes.length-1]:null},enumerable:!1,configurable:!0}),e.prototype.compareDocumentPosition=function(t){if(t===this)return 0;for(var n,r=t,i=this,o=[r],a=[i];null!==(n=r.parentNode)&&void 0!==n?n:i.parentNode;)r=r.parentNode?(o.push(r.parentNode),r.parentNode):r,i=i.parentNode?(a.push(i.parentNode),i.parentNode):i;if(r!==i)return e.DOCUMENT_POSITION_DISCONNECTED|e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|e.DOCUMENT_POSITION_PRECEDING;var s=o.length>a.length?o:a,l=s===o?a:o;if(s[s.length-l.length]===l[0])return s===o?e.DOCUMENT_POSITION_CONTAINED_BY|e.DOCUMENT_POSITION_FOLLOWING:e.DOCUMENT_POSITION_CONTAINS|e.DOCUMENT_POSITION_PRECEDING;for(var u=s.length-l.length,c=l.length-1;c>=0;c--){var h=l[c],p=s[u+c];if(p!==h){var d=h.parentNode.childNodes;if(d.indexOf(h)0&&e;)e=e.parentNode,t--;return e},e.prototype.forEach=function(t,e){void 0===e&&(e=!1),t(this)||(e?this.childNodes.slice():this.childNodes).forEach(function(e){e.forEach(t)})},e.DOCUMENT_POSITION_DISCONNECTED=1,e.DOCUMENT_POSITION_PRECEDING=2,e.DOCUMENT_POSITION_FOLLOWING=4,e.DOCUMENT_POSITION_CONTAINS=8,e.DOCUMENT_POSITION_CONTAINED_BY=16,e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32,e}(rm),rx=function(){function t(t,e){var n=this;this.globalRuntime=t,this.context=e,this.emitter=new H.Z,this.nativeHTMLMap=new WeakMap,this.cursor="default",this.mappingTable={},this.mappingState={trackingData:{}},this.eventPool=new Map,this.tmpMatrix=K.create(),this.tmpVec3=q.Ue(),this.onPointerDown=function(t){var e=n.createPointerEvent(t);if(n.dispatchEvent(e,"pointerdown"),"touch"===e.pointerType)n.dispatchEvent(e,"touchstart");else if("mouse"===e.pointerType||"pen"===e.pointerType){var r=2===e.button;n.dispatchEvent(e,r?"rightdown":"mousedown")}n.trackingData(t.pointerId).pressTargetsByButton[t.button]=e.composedPath(),n.freeEvent(e)},this.onPointerUp=function(t){var e,r=nj.now(),i=n.createPointerEvent(t,void 0,void 0,n.context.config.alwaysTriggerPointerEventOnCanvas?n.rootTarget:void 0);if(n.dispatchEvent(i,"pointerup"),"touch"===i.pointerType)n.dispatchEvent(i,"touchend");else if("mouse"===i.pointerType||"pen"===i.pointerType){var o=2===i.button;n.dispatchEvent(i,o?"rightup":"mouseup")}var a=n.trackingData(t.pointerId),s=n.findMountedTarget(a.pressTargetsByButton[t.button]),l=s;if(s&&!i.composedPath().includes(s)){for(var u=s;u&&!i.composedPath().includes(u);){if(i.currentTarget=u,n.notifyTarget(i,"pointerupoutside"),"touch"===i.pointerType)n.notifyTarget(i,"touchendoutside");else if("mouse"===i.pointerType||"pen"===i.pointerType){var o=2===i.button;n.notifyTarget(i,o?"rightupoutside":"mouseupoutside")}rE.isNode(u)&&(u=u.parentNode)}delete a.pressTargetsByButton[t.button],l=u}if(l){var c=n.clonePointerEvent(i,"click");c.target=l,c.path=[],a.clicksByButton[t.button]||(a.clicksByButton[t.button]={clickCount:0,target:c.target,timeStamp:r});var h=a.clicksByButton[t.button];h.target===c.target&&r-h.timeStamp<200?++h.clickCount:h.clickCount=1,h.target=c.target,h.timeStamp=r,c.detail=h.clickCount,(null===(e=i.detail)||void 0===e?void 0:e.preventClick)||(n.context.config.useNativeClickEvent||"mouse"!==c.pointerType&&"touch"!==c.pointerType||n.dispatchEvent(c,"click"),n.dispatchEvent(c,"pointertap")),n.freeEvent(c)}n.freeEvent(i)},this.onPointerMove=function(t){var e=n.createPointerEvent(t,void 0,void 0,n.context.config.alwaysTriggerPointerEventOnCanvas?n.rootTarget:void 0),r="mouse"===e.pointerType||"pen"===e.pointerType,i=n.trackingData(t.pointerId),o=n.findMountedTarget(i.overTargets);if(i.overTargets&&o!==e.target){var a="mousemove"===t.type?"mouseout":"pointerout",s=n.createPointerEvent(t,a,o||void 0);if(n.dispatchEvent(s,"pointerout"),r&&n.dispatchEvent(s,"mouseout"),!e.composedPath().includes(o)){var l=n.createPointerEvent(t,"pointerleave",o||void 0);for(l.eventPhase=l.AT_TARGET;l.target&&!e.composedPath().includes(l.target);)l.currentTarget=l.target,n.notifyTarget(l),r&&n.notifyTarget(l,"mouseleave"),rE.isNode(l.target)&&(l.target=l.target.parentNode);n.freeEvent(l)}n.freeEvent(s)}if(o!==e.target){var u="mousemove"===t.type?"mouseover":"pointerover",c=n.clonePointerEvent(e,u);n.dispatchEvent(c,"pointerover"),r&&n.dispatchEvent(c,"mouseover");for(var h=o&&rE.isNode(o)&&o.parentNode;h&&h!==(rE.isNode(n.rootTarget)&&n.rootTarget.parentNode)&&h!==e.target;)h=h.parentNode;if(!h||h===(rE.isNode(n.rootTarget)&&n.rootTarget.parentNode)){var p=n.clonePointerEvent(e,"pointerenter");for(p.eventPhase=p.AT_TARGET;p.target&&p.target!==o&&p.target!==(rE.isNode(n.rootTarget)&&n.rootTarget.parentNode);)p.currentTarget=p.target,n.notifyTarget(p),r&&n.notifyTarget(p,"mouseenter"),rE.isNode(p.target)&&(p.target=p.target.parentNode);n.freeEvent(p)}n.freeEvent(c)}n.dispatchEvent(e,"pointermove"),"touch"===e.pointerType&&n.dispatchEvent(e,"touchmove"),r&&(n.dispatchEvent(e,"mousemove"),n.cursor=n.getCursor(e.target)),i.overTargets=e.composedPath(),n.freeEvent(e)},this.onPointerOut=function(t){var e=n.trackingData(t.pointerId);if(e.overTargets){var r="mouse"===t.pointerType||"pen"===t.pointerType,i=n.findMountedTarget(e.overTargets),o=n.createPointerEvent(t,"pointerout",i||void 0);n.dispatchEvent(o),r&&n.dispatchEvent(o,"mouseout");var a=n.createPointerEvent(t,"pointerleave",i||void 0);for(a.eventPhase=a.AT_TARGET;a.target&&a.target!==(rE.isNode(n.rootTarget)&&n.rootTarget.parentNode);)a.currentTarget=a.target,n.notifyTarget(a),r&&n.notifyTarget(a,"mouseleave"),rE.isNode(a.target)&&(a.target=a.target.parentNode);e.overTargets=null,n.freeEvent(o),n.freeEvent(a)}n.cursor=null},this.onPointerOver=function(t){var e=n.trackingData(t.pointerId),r=n.createPointerEvent(t),i="mouse"===r.pointerType||"pen"===r.pointerType;n.dispatchEvent(r,"pointerover"),i&&n.dispatchEvent(r,"mouseover"),"mouse"===r.pointerType&&(n.cursor=n.getCursor(r.target));var o=n.clonePointerEvent(r,"pointerenter");for(o.eventPhase=o.AT_TARGET;o.target&&o.target!==(rE.isNode(n.rootTarget)&&n.rootTarget.parentNode);)o.currentTarget=o.target,n.notifyTarget(o),i&&n.notifyTarget(o,"mouseenter"),rE.isNode(o.target)&&(o.target=o.target.parentNode);e.overTargets=r.composedPath(),n.freeEvent(r),n.freeEvent(o)},this.onPointerUpOutside=function(t){var e=n.trackingData(t.pointerId),r=n.findMountedTarget(e.pressTargetsByButton[t.button]),i=n.createPointerEvent(t);if(r){for(var o=r;o;)i.currentTarget=o,n.notifyTarget(i,"pointerupoutside"),"touch"===i.pointerType||("mouse"===i.pointerType||"pen"===i.pointerType)&&n.notifyTarget(i,2===i.button?"rightupoutside":"mouseupoutside"),rE.isNode(o)&&(o=o.parentNode);delete e.pressTargetsByButton[t.button]}n.freeEvent(i)},this.onWheel=function(t){var e=n.createWheelEvent(t);n.dispatchEvent(e),n.freeEvent(e)},this.onClick=function(t){if(n.context.config.useNativeClickEvent){var e=n.createPointerEvent(t);n.dispatchEvent(e),n.freeEvent(e)}},this.onPointerCancel=function(t){var e=n.createPointerEvent(t,void 0,void 0,n.context.config.alwaysTriggerPointerEventOnCanvas?n.rootTarget:void 0);n.dispatchEvent(e),n.freeEvent(e)}}return t.prototype.init=function(){this.rootTarget=this.context.renderingContext.root.parentNode,this.addEventMapping("pointerdown",this.onPointerDown),this.addEventMapping("pointerup",this.onPointerUp),this.addEventMapping("pointermove",this.onPointerMove),this.addEventMapping("pointerout",this.onPointerOut),this.addEventMapping("pointerleave",this.onPointerOut),this.addEventMapping("pointercancel",this.onPointerCancel),this.addEventMapping("pointerover",this.onPointerOver),this.addEventMapping("pointerupoutside",this.onPointerUpOutside),this.addEventMapping("wheel",this.onWheel),this.addEventMapping("click",this.onClick)},t.prototype.destroy=function(){this.emitter.removeAllListeners(),this.mappingTable={},this.mappingState={},this.eventPool.clear()},t.prototype.getScale=function(){var t=this.context.contextService.getBoundingClientRect(),e=1,n=1,r=this.context.contextService.getDomElement();if(r&&t){var i=r.offsetWidth,o=r.offsetHeight;i&&o&&(e=t.width/i,n=t.height/o)}return{scaleX:e,scaleY:n,bbox:t}},t.prototype.client2Viewport=function(t){var e=this.getScale(),n=e.scaleX,r=e.scaleY,i=e.bbox;return new tj((t.x-((null==i?void 0:i.left)||0))/n,(t.y-((null==i?void 0:i.top)||0))/r)},t.prototype.viewport2Client=function(t){var e=this.getScale(),n=e.scaleX,r=e.scaleY,i=e.bbox;return new tj((t.x+((null==i?void 0:i.left)||0))*n,(t.y+((null==i?void 0:i.top)||0))*r)},t.prototype.viewport2Canvas=function(t){var e=t.x,n=t.y,r=this.rootTarget.defaultView.getCamera(),i=this.context.config,o=i.width,a=i.height,s=r.getPerspectiveInverse(),l=r.getWorldTransform(),u=K.multiply(this.tmpMatrix,l,s),c=q.t8(this.tmpVec3,e/o*2-1,(1-n/a)*2-1,0);return q.fF(c,c,u),new tj(c[0],c[1])},t.prototype.canvas2Viewport=function(t){var e=this.rootTarget.defaultView.getCamera(),n=e.getPerspective(),r=e.getViewTransform(),i=K.multiply(this.tmpMatrix,n,r),o=q.t8(this.tmpVec3,t.x,t.y,0);q.fF(this.tmpVec3,this.tmpVec3,i);var a=this.context.config,s=a.width,l=a.height;return new tj((o[0]+1)/2*s,(1-(o[1]+1)/2)*l)},t.prototype.setPickHandler=function(t){this.pickHandler=t},t.prototype.addEventMapping=function(t,e){this.mappingTable[t]||(this.mappingTable[t]=[]),this.mappingTable[t].push({fn:e,priority:0}),this.mappingTable[t].sort(function(t,e){return t.priority-e.priority})},t.prototype.mapEvent=function(t){if(this.rootTarget){var e=this.mappingTable[t.type];if(e)for(var n=0,r=e.length;n=1;r--)if(t.currentTarget=n[r],this.notifyTarget(t,e),t.propagationStopped||t.propagationImmediatelyStopped)return;if(t.eventPhase=t.AT_TARGET,t.currentTarget=t.target,this.notifyTarget(t,e),!t.propagationStopped&&!t.propagationImmediatelyStopped){var i=n.indexOf(t.currentTarget);t.eventPhase=t.BUBBLING_PHASE;for(var r=i+1;ri||n>o?null:!a&&this.pickHandler(t)||this.rootTarget||null},t.prototype.isNativeEventFromCanvas=function(t,e){var n=null==e?void 0:e.target;if((null==n?void 0:n.shadowRoot)&&(n=e.composedPath()[0]),n){if(n===t)return!0;if(t&&t.contains)return t.contains(n)}return null!=e&&!!e.composedPath&&e.composedPath().indexOf(t)>-1},t.prototype.getExistedHTML=function(t){var e,n;if(t.nativeEvent.composedPath)try{for(var r=(0,W.XA)(t.nativeEvent.composedPath()),i=r.next();!i.done;i=r.next()){var o=i.value,a=this.nativeHTMLMap.get(o);if(a)return a}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return null},t.prototype.pickTarget=function(t){return this.hitTest({clientX:t.clientX,clientY:t.clientY,viewportX:t.viewportX,viewportY:t.viewportY,x:t.canvasX,y:t.canvasY})},t.prototype.createPointerEvent=function(t,e,n,r){var i=this.allocateEvent(rv);this.copyPointerData(t,i),this.copyMouseData(t,i),this.copyData(t,i),i.nativeEvent=t.nativeEvent,i.originalEvent=t;var o=this.getExistedHTML(i),a=this.context.contextService.getDomElement();return i.target=null!=n?n:o||this.isNativeEventFromCanvas(a,i.nativeEvent)&&this.pickTarget(i)||r,"string"==typeof e&&(i.type=e),i},t.prototype.createWheelEvent=function(t){var e=this.allocateEvent(ry);this.copyWheelData(t,e),this.copyMouseData(t,e),this.copyData(t,e),e.nativeEvent=t.nativeEvent,e.originalEvent=t;var n=this.getExistedHTML(e),r=this.context.contextService.getDomElement();return e.target=n||this.isNativeEventFromCanvas(r,e.nativeEvent)&&this.pickTarget(e),e},t.prototype.trackingData=function(t){return this.mappingState.trackingData[t]||(this.mappingState.trackingData[t]={pressTargetsByButton:{},clicksByButton:{},overTarget:null}),this.mappingState.trackingData[t]},t.prototype.cloneWheelEvent=function(t){var e=this.allocateEvent(ry);return e.nativeEvent=t.nativeEvent,e.originalEvent=t.originalEvent,this.copyWheelData(t,e),this.copyMouseData(t,e),this.copyData(t,e),e.target=t.target,e.path=t.composedPath().slice(),e.type=t.type,e},t.prototype.clonePointerEvent=function(t,e){var n=this.allocateEvent(rv);return n.nativeEvent=t.nativeEvent,n.originalEvent=t.originalEvent,this.copyPointerData(t,n),this.copyMouseData(t,n),this.copyData(t,n),n.target=t.target,n.path=t.composedPath().slice(),n.type=null!=e?e:n.type,n},t.prototype.copyPointerData=function(t,e){e.pointerId=t.pointerId,e.width=t.width,e.height=t.height,e.isPrimary=t.isPrimary,e.pointerType=t.pointerType,e.pressure=t.pressure,e.tangentialPressure=t.tangentialPressure,e.tiltX=t.tiltX,e.tiltY=t.tiltY,e.twist=t.twist},t.prototype.copyMouseData=function(t,e){e.altKey=t.altKey,e.button=t.button,e.buttons=t.buttons,e.ctrlKey=t.ctrlKey,e.metaKey=t.metaKey,e.shiftKey=t.shiftKey,e.client.copyFrom(t.client),e.movement.copyFrom(t.movement),e.canvas.copyFrom(t.canvas),e.screen.copyFrom(t.screen),e.global.copyFrom(t.global),e.offset.copyFrom(t.offset)},t.prototype.copyWheelData=function(t,e){e.deltaMode=t.deltaMode,e.deltaX=t.deltaX,e.deltaY=t.deltaY,e.deltaZ=t.deltaZ},t.prototype.copyData=function(t,e){e.isTrusted=t.isTrusted,e.timeStamp=nj.now(),e.type=t.type,e.detail=t.detail,e.view=t.view,e.page.copyFrom(t.page),e.viewport.copyFrom(t.viewport)},t.prototype.allocateEvent=function(t){this.eventPool.has(t)||this.eventPool.set(t,[]);var e=this.eventPool.get(t).pop()||new t(this);return e.eventPhase=e.NONE,e.currentTarget=null,e.path=[],e.target=null,e},t.prototype.freeEvent=function(t){if(t.manager!==this)throw Error("It is illegal to free an event not managed by this EventBoundary!");var e=t.constructor;this.eventPool.has(e)||this.eventPool.set(e,[]),this.eventPool.get(e).push(t)},t.prototype.notifyTarget=function(t,e){e=null!=e?e:t.type;var n=t.eventPhase===t.CAPTURING_PHASE||t.eventPhase===t.AT_TARGET?"".concat(e,"capture"):e;this.notifyListeners(t,n),t.eventPhase===t.AT_TARGET&&this.notifyListeners(t,e)},t.prototype.notifyListeners=function(t,e){var n=t.currentTarget.emitter,r=n._events[e];if(r){if("fn"in r)r.once&&n.removeListener(e,r.fn,void 0,!0),r.fn.call(t.currentTarget||r.context,t);else for(var i=0;i=0;n--){var r=t[n];if(r===this.rootTarget||rE.isNode(r)&&r.parentNode===e)e=t[n];else break}return e},t.prototype.getCursor=function(t){for(var e=t;e;){var n=!!e.getAttribute&&e.getAttribute("cursor");if(n)return n;e=rE.isNode(e)&&e.parentNode}},t}(),rb=function(){function t(){}return t.prototype.getOrCreateCanvas=function(t,e){if(this.canvas)return this.canvas;if(t||rL.offscreenCanvas)this.canvas=t||rL.offscreenCanvas,this.context=this.canvas.getContext("2d",(0,W.pi)({willReadFrequently:!0},e));else try{this.canvas=new window.OffscreenCanvas(0,0),this.context=this.canvas.getContext("2d",(0,W.pi)({willReadFrequently:!0},e)),this.context&&this.context.measureText||(this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"))}catch(t){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d",(0,W.pi)({willReadFrequently:!0},e))}return this.canvas.width=10,this.canvas.height=10,this.canvas},t.prototype.getOrCreateContext=function(t,e){return this.context||this.getOrCreateCanvas(t,e),this.context},t}();(E=z||(z={}))[E.CAMERA_CHANGED=0]="CAMERA_CHANGED",E[E.DISPLAY_OBJECT_CHANGED=1]="DISPLAY_OBJECT_CHANGED",E[E.NONE=2]="NONE";var rT=function(){function t(t,e){this.globalRuntime=t,this.context=e,this.inited=!1,this.stats={total:0,rendered:0},this.zIndexCounter=0,this.hooks={init:new n4,initAsync:new n3,dirtycheck:new n9,cull:new n9,beginFrame:new n4,beforeRender:new n4,render:new n4,afterRender:new n4,endFrame:new n4,destroy:new n4,pick:new n5,pickSync:new n9,pointerDown:new n4,pointerUp:new n4,pointerMove:new n4,pointerOut:new n4,pointerOver:new n4,pointerWheel:new n4,pointerCancel:new n4,click:new n4}}return t.prototype.init=function(t){var e=this,n=(0,W.pi)((0,W.pi)({},this.globalRuntime),this.context);this.context.renderingPlugins.forEach(function(t){t.apply(n,e.globalRuntime)}),this.hooks.init.call(),0===this.hooks.initAsync.getCallbacksNum()?(this.inited=!0,t()):this.hooks.initAsync.promise().then(function(){e.inited=!0,t()})},t.prototype.getStats=function(){return this.stats},t.prototype.disableDirtyRectangleRendering=function(){return!this.context.config.renderer.getConfig().enableDirtyRectangleRendering||this.context.renderingContext.renderReasons.has(z.CAMERA_CHANGED)},t.prototype.render=function(t,e,n){var r=this;this.stats.total=0,this.stats.rendered=0,this.zIndexCounter=0;var i=this.context.renderingContext;if(this.globalRuntime.sceneGraphService.syncHierarchy(i.root),this.globalRuntime.sceneGraphService.triggerPendingEvents(),i.renderReasons.size&&this.inited){i.dirtyRectangleRenderingDisabled=this.disableDirtyRectangleRendering();var o=1===i.renderReasons.size&&i.renderReasons.has(z.CAMERA_CHANGED),a=!t.disableRenderHooks||!(t.disableRenderHooks&&o);a&&this.renderDisplayObject(i.root,t,i),this.hooks.beginFrame.call(e),a&&i.renderListCurrentFrame.forEach(function(t){r.hooks.beforeRender.call(t),r.hooks.render.call(t),r.hooks.afterRender.call(t)}),this.hooks.endFrame.call(e),i.renderListCurrentFrame=[],i.renderReasons.clear(),n()}},t.prototype.renderDisplayObject=function(t,e,n){var r=this,i=e.renderer.getConfig(),o=i.enableDirtyCheck,a=i.enableCulling;this.globalRuntime.enableCSSParsing&&this.globalRuntime.styleValueRegistry.recalc(t);var s=t.renderable,l=o?s.dirty||n.dirtyRectangleRenderingDisabled?t:null:t;if(l){var u=a?this.hooks.cull.call(l,this.context.camera):l;u&&(this.stats.rendered++,n.renderListCurrentFrame.push(u))}t.renderable.dirty=!1,t.sortable.renderOrder=this.zIndexCounter++,this.stats.total++;var c=t.sortable;c.dirty&&(this.sort(t,c),c.dirty=!1,c.dirtyChildren=[],c.dirtyReason=void 0),(c.sorted||t.childNodes).forEach(function(t){r.renderDisplayObject(t,e,n)})},t.prototype.sort=function(t,e){e.sorted&&e.dirtyReason!==Z.Z_INDEX_CHANGED?e.dirtyChildren.forEach(function(n){if(-1===t.childNodes.indexOf(n)){var r=e.sorted.indexOf(n);r>=0&&e.sorted.splice(r,1)}else if(0===e.sorted.length)e.sorted.push(n);else{var i=function(t,e){for(var n=0,r=t.length;n>>1;0>nY(t[i],e)?n=i+1:r=i}return n}(e.sorted,n);e.sorted.splice(i,0,n)}}):e.sorted=t.childNodes.slice().sort(nY)},t.prototype.destroy=function(){this.inited=!1,this.hooks.destroy.call(),this.globalRuntime.sceneGraphService.clearPendingEvents()},t.prototype.dirtify=function(){this.context.renderingContext.renderReasons.add(z.DISPLAY_OBJECT_CHANGED)},t}(),rP=/\[\s*(.*)=(.*)\s*\]/,rS=function(){function t(){}return t.prototype.selectOne=function(t,e){var n=this;if(t.startsWith("."))return e.find(function(e){return((null==e?void 0:e.classList)||[]).indexOf(n.getIdOrClassname(t))>-1});if(t.startsWith("#"))return e.find(function(e){return e.id===n.getIdOrClassname(t)});if(!t.startsWith("["))return e.find(function(n){return e!==n&&n.nodeName===t});var r=this.getAttribute(t),i=r.name,o=r.value;return i?e.find(function(t){return e!==t&&("name"===i?t.name===o:n.attributeToString(t,i)===o)}):null},t.prototype.selectAll=function(t,e){var n=this;if(t.startsWith("."))return e.findAll(function(r){return e!==r&&((null==r?void 0:r.classList)||[]).indexOf(n.getIdOrClassname(t))>-1});if(t.startsWith("#"))return e.findAll(function(r){return e!==r&&r.id===n.getIdOrClassname(t)});if(!t.startsWith("["))return e.findAll(function(n){return e!==n&&n.nodeName===t});var r=this.getAttribute(t),i=r.name,o=r.value;return i?e.findAll(function(t){return e!==t&&("name"===i?t.name===o:n.attributeToString(t,i)===o)}):[]},t.prototype.is=function(t,e){if(t.startsWith("."))return e.className===this.getIdOrClassname(t);if(t.startsWith("#"))return e.id===this.getIdOrClassname(t);if(!t.startsWith("["))return e.nodeName===t;var n=this.getAttribute(t),r=n.name,i=n.value;return"name"===r?e.name===i:this.attributeToString(e,r)===i},t.prototype.getIdOrClassname=function(t){return t.substring(1)},t.prototype.getAttribute=function(t){var e=t.match(rP),n="",r="";return e&&e.length>2&&(n=e[1].replace(/"/g,""),r=e[2].replace(/"/g,"")),{name:n,value:r}},t.prototype.attributeToString=function(t,e){if(!t.getAttribute)return"";var n=t.getAttribute(e);return(0,tn.Z)(n)?"":n.toString?n.toString():""},t}(),rN=function(t){function e(e,n,r,i,o,a,s,l){var u=t.call(this,null)||this;return u.relatedNode=n,u.prevValue=r,u.newValue=i,u.attrName=o,u.attrChange=a,u.prevParsedValue=s,u.newParsedValue=l,u.type=e,u}return(0,W.ZT)(e,t),e.ADDITION=2,e.MODIFICATION=1,e.REMOVAL=3,e}(rd);function rC(t){var e=t.renderable;e&&(e.renderBoundsDirty=!0,e.boundsDirty=!0)}(x=X||(X={})).REPARENT="reparent",x.DESTROY="destroy",x.ATTR_MODIFIED="DOMAttrModified",x.INSERTED="DOMNodeInserted",x.REMOVED="removed",x.MOUNTED="DOMNodeInsertedIntoDocument",x.UNMOUNTED="DOMNodeRemovedFromDocument",x.BOUNDS_CHANGED="bounds-changed",x.CULLED="culled";var rw=new rN(X.REPARENT,null,"","","",0,"",""),rk=function(){function t(t){var e,n,r,i,o,a,s,l,u,c,h,p,d=this;this.runtime=t,this.pendingEvents=[],this.boundsChangedEvent=new rg(X.BOUNDS_CHANGED),this.rotate=(e=Q.Ue(),function(t,n,r,i,o){void 0===r&&(r=0),void 0===i&&(i=0),void 0===o&&(o=!0),"number"==typeof n&&(n=q.al(n,r,i));var a=t.transformable;if(null!==t.parentNode&&t.parentNode.transformable){var s=Q.Ue();Q.Su(s,n[0],n[1],n[2]);var l=d.getRotation(t),u=d.getRotation(t.parentNode);Q.JG(e,u),Q.U_(e,e),Q.Jp(s,e,s),Q.Jp(a.localRotation,s,l),Q.Fv(a.localRotation,a.localRotation),o&&d.dirtifyLocal(t,a)}else d.rotateLocal(t,n)}),this.rotateLocal=(n=Q.Ue(),function(t,e,r,i,o){void 0===r&&(r=0),void 0===i&&(i=0),void 0===o&&(o=!0),"number"==typeof e&&(e=q.al(e,r,i));var a=t.transformable;Q.Su(n,e[0],e[1],e[2]),Q.dC(a.localRotation,a.localRotation,n),o&&d.dirtifyLocal(t,a)}),this.setEulerAngles=(r=Q.Ue(),function(t,e,n,i,o){void 0===n&&(n=0),void 0===i&&(i=0),void 0===o&&(o=!0),"number"==typeof e&&(e=q.al(e,n,i));var a=t.transformable;if(null!==t.parentNode&&t.parentNode.transformable){Q.Su(a.localRotation,e[0],e[1],e[2]);var s=d.getRotation(t.parentNode);Q.JG(r,Q.U_(Q.Ue(),s)),Q.dC(a.localRotation,a.localRotation,r),o&&d.dirtifyLocal(t,a)}else d.setLocalEulerAngles(t,e)}),this.translateLocal=function(t,e,n,r,i){void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=!0),"number"==typeof e&&(e=q.al(e,n,r));var o=t.transformable;!q.fS(e,q.Ue())&&(q.VC(e,e,o.localRotation),q.IH(o.localPosition,o.localPosition,e),i&&d.dirtifyLocal(t,o))},this.setPosition=(i=K.create(),o=q.Ue(),function(t,e,n){void 0===n&&(n=!0);var r=t.transformable;if(o[0]=e[0],o[1]=e[1],o[2]=e[2]||0,!q.fS(d.getPosition(t),o)){if(q.JG(r.position,o),null!==t.parentNode&&t.parentNode.transformable){var a=t.parentNode.transformable;K.copy(i,a.worldTransform),K.invert(i,i),q.fF(r.localPosition,o,i)}else q.JG(r.localPosition,o);n&&d.dirtifyLocal(t,r)}}),this.setLocalPosition=(a=q.Ue(),function(t,e,n){void 0===n&&(n=!0);var r=t.transformable;a[0]=e[0],a[1]=e[1],a[2]=e[2]||0,!q.fS(r.localPosition,a)&&(q.JG(r.localPosition,a),n&&d.dirtifyLocal(t,r))}),this.translate=(s=q.Ue(),l=q.Ue(),u=q.Ue(),function(t,e,n,r,i){void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=!0),"number"==typeof e&&(e=q.t8(l,e,n,r)),q.fS(e,s)||(q.IH(u,d.getPosition(t),e),d.setPosition(t,u,i))}),this.setRotation=function(){var t=Q.Ue();return function(e,n,r,i,o,a){void 0===a&&(a=!0);var s=e.transformable;if("number"==typeof n&&(n=Q.al(n,r,i,o)),null!==e.parentNode&&e.parentNode.transformable){var l=d.getRotation(e.parentNode);Q.JG(t,l),Q.U_(t,t),Q.Jp(s.localRotation,t,n),Q.Fv(s.localRotation,s.localRotation),a&&d.dirtifyLocal(e,s)}else d.setLocalRotation(e,n)}},this.displayObjectDependencyMap=new WeakMap,this.calcLocalTransform=(c=K.create(),h=q.Ue(),p=Q.al(0,0,0,1),function(t){if(0!==t.localSkew[0]||0!==t.localSkew[1]){if(K.fromRotationTranslationScaleOrigin(t.localTransform,t.localRotation,t.localPosition,q.al(1,1,1),t.origin),0!==t.localSkew[0]||0!==t.localSkew[1]){var e=K.identity(c);e[4]=Math.tan(t.localSkew[0]),e[1]=Math.tan(t.localSkew[1]),K.multiply(t.localTransform,t.localTransform,e)}var n=K.fromRotationTranslationScaleOrigin(c,p,h,t.localScale,t.origin);K.multiply(t.localTransform,t.localTransform,n)}else K.fromRotationTranslationScaleOrigin(t.localTransform,t.localRotation,t.localPosition,t.localScale,t.origin)})}return t.prototype.matches=function(t,e){return this.runtime.sceneGraphSelector.is(t,e)},t.prototype.querySelector=function(t,e){return this.runtime.sceneGraphSelector.selectOne(t,e)},t.prototype.querySelectorAll=function(t,e){return this.runtime.sceneGraphSelector.selectAll(t,e)},t.prototype.attach=function(t,e,n){var r,i=!1;t.parentNode&&(i=t.parentNode!==e,this.detach(t)),t.parentNode=e,(0,tn.Z)(n)?t.parentNode.childNodes.push(t):t.parentNode.childNodes.splice(n,0,t);var o=e.sortable;((null===(r=null==o?void 0:o.sorted)||void 0===r?void 0:r.length)||t.parsedStyle.zIndex)&&(-1===o.dirtyChildren.indexOf(t)&&o.dirtyChildren.push(t),o.dirty=!0,o.dirtyReason=Z.ADDED);var a=t.transformable;a&&this.dirtifyWorld(t,a),a.frozen&&this.unfreezeParentToRoot(t),i&&t.dispatchEvent(rw)},t.prototype.detach=function(t){var e,n;if(t.parentNode){var r=t.transformable,i=t.parentNode.sortable;((null===(e=null==i?void 0:i.sorted)||void 0===e?void 0:e.length)||(null===(n=t.style)||void 0===n?void 0:n.zIndex))&&(-1===i.dirtyChildren.indexOf(t)&&i.dirtyChildren.push(t),i.dirty=!0,i.dirtyReason=Z.REMOVED);var o=t.parentNode.childNodes.indexOf(t);o>-1&&t.parentNode.childNodes.splice(o,1),r&&this.dirtifyWorld(t,r),t.parentNode=null}},t.prototype.getOrigin=function(t){return t.getGeometryBounds(),t.transformable.origin},t.prototype.setOrigin=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0),"number"==typeof e&&(e=[e,n,r]);var i=t.transformable;if(e[0]!==i.origin[0]||e[1]!==i.origin[1]||e[2]!==i.origin[2]){var o=i.origin;o[0]=e[0],o[1]=e[1],o[2]=e[2]||0,this.dirtifyLocal(t,i)}},t.prototype.setLocalEulerAngles=function(t,e,n,r,i){void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=!0),"number"==typeof e&&(e=q.al(e,n,r));var o=t.transformable;Q.Su(o.localRotation,e[0],e[1],e[2]),i&&this.dirtifyLocal(t,o)},t.prototype.scaleLocal=function(t,e,n){void 0===n&&(n=!0);var r=t.transformable;q.Jp(r.localScale,r.localScale,q.al(e[0],e[1],e[2]||1)),n&&this.dirtifyLocal(t,r)},t.prototype.setLocalScale=function(t,e,n){void 0===n&&(n=!0);var r=t.transformable,i=q.al(e[0],e[1],e[2]||r.localScale[2]);!q.fS(i,r.localScale)&&(q.JG(r.localScale,i),n&&this.dirtifyLocal(t,r))},t.prototype.setLocalRotation=function(t,e,n,r,i,o){void 0===o&&(o=!0),"number"==typeof e&&(e=Q.al(e,n,r,i));var a=t.transformable;Q.JG(a.localRotation,e),o&&this.dirtifyLocal(t,a)},t.prototype.setLocalSkew=function(t,e,n){"number"==typeof e&&(e=tt.al(e,n));var r=t.transformable;tt.JG(r.localSkew,e),this.dirtifyLocal(t,r)},t.prototype.dirtifyLocal=function(t,e){e.localDirtyFlag||(e.localDirtyFlag=!0,e.dirtyFlag||this.dirtifyWorld(t,e))},t.prototype.dirtifyWorld=function(t,e){e.dirtyFlag||this.unfreezeParentToRoot(t),this.dirtifyWorldInternal(t,e),this.dirtifyToRoot(t,!0)},t.prototype.triggerPendingEvents=function(){var t=this,e=new Set,n=function(n,r){n.isConnected&&!e.has(n.entity)&&(t.boundsChangedEvent.detail=r,t.boundsChangedEvent.target=n,n.isMutationObserved?n.dispatchEvent(t.boundsChangedEvent):n.ownerDocument.defaultView.dispatchEvent(t.boundsChangedEvent,!0),e.add(n.entity))};this.pendingEvents.forEach(function(t){var e=(0,W.CR)(t,2),r=e[0],i=e[1];i.affectChildren?r.forEach(function(t){n(t,i)}):n(r,i)}),this.clearPendingEvents(),e.clear()},t.prototype.clearPendingEvents=function(){this.pendingEvents=[]},t.prototype.dirtifyToRoot=function(t,e){void 0===e&&(e=!1);var n=t;for(n.renderable&&(n.renderable.dirty=!0);n;)rC(n),n=n.parentNode;e&&t.forEach(function(t){rC(t)}),this.informDependentDisplayObjects(t),this.pendingEvents.push([t,{affectChildren:e}])},t.prototype.updateDisplayObjectDependency=function(t,e,n,r){if(e&&e!==n){var i=this.displayObjectDependencyMap.get(e);if(i&&i[t]){var o=i[t].indexOf(r);i[t].splice(o,1)}}if(n){var a=this.displayObjectDependencyMap.get(n);a||(this.displayObjectDependencyMap.set(n,{}),a=this.displayObjectDependencyMap.get(n)),a[t]||(a[t]=[]),a[t].push(r)}},t.prototype.informDependentDisplayObjects=function(t){var e=this,n=this.displayObjectDependencyMap.get(t);n&&Object.keys(n).forEach(function(t){n[t].forEach(function(n){e.dirtifyToRoot(n,!0),n.dispatchEvent(new rN(X.ATTR_MODIFIED,n,e,e,t,rN.MODIFICATION,e,e)),n.isCustomElement&&n.isConnected&&n.attributeChangedCallback&&n.attributeChangedCallback(t,e,e)})})},t.prototype.getPosition=function(t){var e=t.transformable;return K.getTranslation(e.position,this.getWorldTransform(t,e))},t.prototype.getRotation=function(t){var e=t.transformable;return K.getRotation(e.rotation,this.getWorldTransform(t,e))},t.prototype.getScale=function(t){var e=t.transformable;return K.getScaling(e.scaling,this.getWorldTransform(t,e))},t.prototype.getWorldTransform=function(t,e){return void 0===e&&(e=t.transformable),(e.localDirtyFlag||e.dirtyFlag)&&(t.parentNode&&t.parentNode.transformable&&this.getWorldTransform(t.parentNode),this.sync(t,e)),e.worldTransform},t.prototype.getLocalPosition=function(t){return t.transformable.localPosition},t.prototype.getLocalRotation=function(t){return t.transformable.localRotation},t.prototype.getLocalScale=function(t){return t.transformable.localScale},t.prototype.getLocalSkew=function(t){return t.transformable.localSkew},t.prototype.getLocalTransform=function(t){var e=t.transformable;return e.localDirtyFlag&&(this.calcLocalTransform(e),e.localDirtyFlag=!1),e.localTransform},t.prototype.setLocalTransform=function(t,e){var n=K.getTranslation(q.Ue(),e),r=K.getRotation(Q.Ue(),e),i=K.getScaling(q.Ue(),e);this.setLocalScale(t,i,!1),this.setLocalPosition(t,n,!1),this.setLocalRotation(t,r,void 0,void 0,void 0,!1),this.dirtifyLocal(t,t.transformable)},t.prototype.resetLocalTransform=function(t){this.setLocalScale(t,[1,1,1]),this.setLocalPosition(t,[0,0,0]),this.setLocalEulerAngles(t,[0,0,0]),this.setLocalSkew(t,[0,0])},t.prototype.getTransformedGeometryBounds=function(t,e,n){void 0===e&&(e=!1);var r=this.getGeometryBounds(t,e);if(tY.isEmpty(r))return null;var i=n||new tY;return i.setFromTransformedAABB(r,this.getWorldTransform(t)),i},t.prototype.getGeometryBounds=function(t,e){void 0===e&&(e=!1);var n=t.geometry;return n.dirty&&rL.styleValueRegistry.updateGeometry(t),(e?n.renderBounds:n.contentBounds||null)||new tY},t.prototype.getBounds=function(t,e){var n=this;void 0===e&&(e=!1);var r=t.renderable;if(!r.boundsDirty&&!e&&r.bounds)return r.bounds;if(!r.renderBoundsDirty&&e&&r.renderBounds)return r.renderBounds;var i=e?r.renderBounds:r.bounds,o=this.getTransformedGeometryBounds(t,e,i);if(t.childNodes.forEach(function(t){var r=n.getBounds(t,e);r&&(o?o.add(r):(o=i||new tY).update(r.center,r.halfExtents))}),o||(o=new tY),e){var a=function(t){var e,n=t;do{if(null===(e=n.parsedStyle)||void 0===e?void 0:e.clipPath)return n;n=n.parentElement}while(null!==n);return null}(t);if(a){var s=a.parsedStyle.clipPath.getBounds(e);o?s&&(o=s.intersection(o)):o.update(s.center,s.halfExtents)}}return e?(r.renderBounds=o,r.renderBoundsDirty=!1):(r.bounds=o,r.boundsDirty=!1),o},t.prototype.getLocalBounds=function(t){if(t.parentNode){var e=K.create();t.parentNode.transformable&&(e=K.invert(K.create(),this.getWorldTransform(t.parentNode)));var n=this.getBounds(t);if(!tY.isEmpty(n)){var r=new tY;return r.setFromTransformedAABB(n,e),r}}return this.getBounds(t)},t.prototype.getBoundingClientRect=function(t){var e,n,r,i=this.getGeometryBounds(t);tY.isEmpty(i)||(r=new tY).setFromTransformedAABB(i,this.getWorldTransform(t));var o=null===(n=null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView)||void 0===n?void 0:n.getContextService().getBoundingClientRect();if(r){var a=(0,W.CR)(r.getMin(),2),s=a[0],l=a[1],u=(0,W.CR)(r.getMax(),2),c=u[0],h=u[1];return new tW(s+((null==o?void 0:o.left)||0),l+((null==o?void 0:o.top)||0),c-s,h-l)}return new tW((null==o?void 0:o.left)||0,(null==o?void 0:o.top)||0,0,0)},t.prototype.dirtifyWorldInternal=function(t,e){var n=this;if(!e.dirtyFlag){e.dirtyFlag=!0,e.frozen=!1,t.childNodes.forEach(function(t){var e=t.transformable;e.dirtyFlag||n.dirtifyWorldInternal(t,e)});var r=t.renderable;r&&(r.renderBoundsDirty=!0,r.boundsDirty=!0,r.dirty=!0)}},t.prototype.syncHierarchy=function(t){var e=t.transformable;if(!e.frozen){e.frozen=!0,(e.localDirtyFlag||e.dirtyFlag)&&this.sync(t,e);for(var n=t.childNodes,r=0;rs;--p){for(var v=0;v=0;h--){var p=c[h].trim();!n6.test(p)&&0>n8.indexOf(p)&&(p='"'.concat(p,'"')),c[h]=p}return"".concat(void 0===i?"normal":i," ").concat(a," ").concat(l," ").concat(u," ").concat(c.join(","))}(e),E=this.measureFont(m,n);0===E.fontSize&&(E.fontSize=i,E.ascent=i);var x=this.runtime.offscreenCanvasCreator.getOrCreateContext(n);x.font=m,e.isOverflowing=!1;var b=(void 0!==o&&o?this.wordWrap(t,e,n):t).split(/(?:\r\n|\r|\n)/),T=Array(b.length),P=0;if(v){v.getTotalLength();for(var S=0;S=l){e.isOverflowing=!0;break}v=0,d[f]="";continue}if(v>0&&v+S>h){if(f+1>=l){if(e.isOverflowing=!0,m>0&&m<=h){for(var N=d[f].length,C=0,w=N,k=0;kh){w=k;break}C+=M}d[f]=(d[f]||"").slice(0,w)+p}break}if(v=0,d[++f]="",this.isBreakingSpace(b))continue;this.canBreakInLastChar(b)||(d=this.trimToBreakable(d),v=this.sumTextWidthByCache(d[f]||"",y)),this.shouldBreakByKinsokuShorui(b,P)&&(d=this.trimByKinsokuShorui(d),v+=g(T||""))}v+=S,d[f]=(d[f]||"")+b}return d.join("\n")},t.prototype.isBreakingSpace=function(t){return"string"==typeof t&&rM.BreakingSpaces.indexOf(t.charCodeAt(0))>=0},t.prototype.isNewline=function(t){return"string"==typeof t&&rM.Newlines.indexOf(t.charCodeAt(0))>=0},t.prototype.trimToBreakable=function(t){var e=(0,W.ev)([],(0,W.CR)(t),!1),n=e[e.length-2],r=this.findBreakableIndex(n);if(-1===r||!n)return e;var i=n.slice(r,r+1),o=this.isBreakingSpace(i),a=r+1,s=r+(o?0:1);return e[e.length-1]+=n.slice(a,n.length),e[e.length-2]=n.slice(0,s),e},t.prototype.canBreakInLastChar=function(t){return!(t&&rR.test(t))},t.prototype.sumTextWidthByCache=function(t,e){return t.split("").reduce(function(t,n){if(!e[n])throw Error("cannot count the word without cache");return t+e[n]},0)},t.prototype.findBreakableIndex=function(t){for(var e=t.length-1;e>=0;e--)if(!rR.test(t[e]))return e;return -1},t.prototype.getFromCache=function(t,e,n,r){var i=n[t];if("number"!=typeof i){var o=t.length*e;i=r.measureText(t).width+o,n[t]=i}return i},t}(),rL={},rD=(T=new rc,P=new ru,(b={})[k.CIRCLE]=new ro,b[k.ELLIPSE]=new ra,b[k.RECT]=T,b[k.IMAGE]=T,b[k.GROUP]=new rp,b[k.LINE]=new rs,b[k.TEXT]=new rh(rL),b[k.POLYLINE]=P,b[k.POLYGON]=P,b[k.PATH]=new rl,b[k.HTML]=null,b[k.MESH]=null,b),rG=(N=new nC,C=new nM,(S={})[Y.PERCENTAGE]=null,S[Y.NUMBER]=new nI,S[Y.ANGLE]=new nS,S[Y.DEFINED_PATH]=new nN,S[Y.PAINT]=N,S[Y.COLOR]=N,S[Y.FILTER]=new nw,S[Y.LENGTH]=C,S[Y.LENGTH_PERCENTAGE]=C,S[Y.LENGTH_PERCENTAGE_12]=new nR,S[Y.LENGTH_PERCENTAGE_14]=new nA,S[Y.COORDINATE]=new nM,S[Y.OFFSET_DISTANCE]=new nL,S[Y.OPACITY_VALUE]=new nD,S[Y.PATH]=new nG,S[Y.LIST_OF_POINTS]=new function(){this.parser=e7,this.mixer=nt},S[Y.SHADOW_BLUR]=new nB,S[Y.TEXT]=new nF,S[Y.TEXT_TRANSFORM]=new n_,S[Y.TRANSFORM]=new rn,S[Y.TRANSFORM_ORIGIN]=new rr,S[Y.Z_INDEX]=new ri,S[Y.MARKER]=new nO,S);rL.CameraContribution=tJ,rL.AnimationTimeline=null,rL.EasingFunction=null,rL.offscreenCanvasCreator=new rb,rL.sceneGraphSelector=new rS,rL.sceneGraphService=new rk(rL),rL.textService=new rI(rL),rL.geometryUpdaterFactory=rD,rL.CSSPropertySyntaxFactory=rG,rL.styleValueRegistry=new nP(rL),rL.layoutRegistry=null,rL.globalThis="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},rL.enableCSSParsing=!1,rL.enableDataset=!1,rL.enableStyleSyntax=!0,rL.enableAttributeDashCased=!1,rL.enableSizeAttenuation=!1;var rB=0,rF=new rN(X.INSERTED,null,"","","",0,"",""),r_=new rN(X.REMOVED,null,"","","",0,"",""),rU=new rg(X.DESTROY),rV=function(t){function e(){var e=t.call(this)||this;return e.entity=rB++,e.renderable={bounds:void 0,boundsDirty:!0,renderBounds:void 0,renderBoundsDirty:!0,dirtyRenderBounds:void 0,dirty:!1},e.cullable={strategy:V.Standard,visibilityPlaneMask:-1,visible:!0,enable:!0},e.transformable={dirtyFlag:!1,localDirtyFlag:!1,frozen:!1,localPosition:[0,0,0],localRotation:[0,0,0,1],localScale:[1,1,1],localTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],localSkew:[0,0],position:[0,0,0],rotation:[0,0,0,1],scaling:[1,1,1],worldTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],origin:[0,0,0]},e.sortable={dirty:!1,sorted:void 0,renderOrder:0,dirtyChildren:[],dirtyReason:void 0},e.geometry={contentBounds:void 0,renderBounds:void 0,dirty:!0},e.rBushNode={aabb:void 0},e.namespaceURI="g",e.scrollLeft=0,e.scrollTop=0,e.clientTop=0,e.clientLeft=0,e.destroyed=!1,e.style={},e.computedStyle=rL.enableCSSParsing?{opacity:eu,fillOpacity:eu,strokeOpacity:eu,fill:eu,stroke:eu,transform:eu,transformOrigin:eu,visibility:eu,pointerEvents:eu,lineWidth:eu,lineCap:eu,lineJoin:eu,increasedLineWidthForHitTesting:eu,fontSize:eu,fontFamily:eu,fontStyle:eu,fontWeight:eu,fontVariant:eu,textAlign:eu,textBaseline:eu,textTransform:eu,zIndex:eu,filter:eu,shadowType:eu}:null,e.parsedStyle={},e.attributes={},e}return(0,W.ZT)(e,t),Object.defineProperty(e.prototype,"className",{get:function(){return this.getAttribute("class")||""},set:function(t){this.setAttribute("class",t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classList",{get:function(){return this.className.split(" ").filter(function(t){return""!==t})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.nodeName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.firstChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){return this.lastChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return this.parentNode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){if(this.parentNode){var t=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[t+1]||null}return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){if(this.parentNode){var t=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[t-1]||null}return null},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){throw Error(tH)},e.prototype.appendChild=function(t,e){var n;if(t.destroyed)throw Error("Cannot append a destroyed element.");return rL.sceneGraphService.attach(t,this,e),(null===(n=this.ownerDocument)||void 0===n?void 0:n.defaultView)&&this.ownerDocument.defaultView.mountChildren(t),this.isMutationObserved&&(rF.relatedNode=this,t.dispatchEvent(rF)),t},e.prototype.insertBefore=function(t,e){if(e){t.parentElement&&t.parentElement.removeChild(t);var n=this.childNodes.indexOf(e);-1===n?this.appendChild(t):this.appendChild(t,n)}else this.appendChild(t);return t},e.prototype.replaceChild=function(t,e){var n=this.childNodes.indexOf(e);return this.removeChild(e),this.appendChild(t,n),e},e.prototype.removeChild=function(t){var e;return r_.relatedNode=this,t.dispatchEvent(r_),(null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView)&&t.ownerDocument.defaultView.unmountChildren(t),rL.sceneGraphService.detach(t),t},e.prototype.removeChildren=function(){for(var t=this.childNodes.length-1;t>=0;t--){var e=this.childNodes[t];this.removeChild(e)}},e.prototype.destroyChildren=function(){for(var t=this.childNodes.length-1;t>=0;t--){var e=this.childNodes[t];e.childNodes.length&&e.destroyChildren(),e.destroy()}},e.prototype.matches=function(t){return rL.sceneGraphService.matches(t,this)},e.prototype.getElementById=function(t){return rL.sceneGraphService.querySelector("#".concat(t),this)},e.prototype.getElementsByName=function(t){return rL.sceneGraphService.querySelectorAll('[name="'.concat(t,'"]'),this)},e.prototype.getElementsByClassName=function(t){return rL.sceneGraphService.querySelectorAll(".".concat(t),this)},e.prototype.getElementsByTagName=function(t){return rL.sceneGraphService.querySelectorAll(t,this)},e.prototype.querySelector=function(t){return rL.sceneGraphService.querySelector(t,this)},e.prototype.querySelectorAll=function(t){return rL.sceneGraphService.querySelectorAll(t,this)},e.prototype.closest=function(t){var e=this;do{if(rL.sceneGraphService.matches(t,e))return e;e=e.parentElement}while(null!==e);return null},e.prototype.find=function(t){var e=this,n=null;return this.forEach(function(r){return!!(r!==e&&t(r))&&(n=r,!0)}),n},e.prototype.findAll=function(t){var e=this,n=[];return this.forEach(function(r){r!==e&&t(r)&&n.push(r)}),n},e.prototype.after=function(){for(var t=this,e=[],n=0;n1){var n=t[0].currentPoint,r=t[1].currentPoint,i=t[1].startTangent;e=[],i?(e.push([n[0]-i[0],n[1]-i[1]]),e.push([n[0],n[1]])):(e.push([r[0],r[1]]),e.push([n[0],n[1]]))}return e},e.prototype.getEndTangent=function(){var t=this.parsedStyle.d.segments,e=t.length,n=[];if(e>1){var r=t[e-2].currentPoint,i=t[e-1].currentPoint,o=t[e-1].endTangent;n=[],o?(n.push([i[0]-o[0],i[1]-o[1]]),n.push([i[0],i[1]])):(n.push([r[0],r[1]]),n.push([i[0],i[1]]))}return n},e}(rq),r3=function(t){function e(e){void 0===e&&(e={});var n=this,r=e.style,i=(0,W._T)(e,["style"]);(n=t.call(this,(0,W.pi)({type:k.POLYGON,style:rL.enableCSSParsing?(0,W.pi)({points:"",miterLimit:"",isClosed:!0},r):(0,W.pi)({},r),initialParsedStyle:rL.enableCSSParsing?null:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!0}},i))||this).markerStartAngle=0,n.markerEndAngle=0,n.markerMidList=[];var o=n.parsedStyle,a=o.markerStart,s=o.markerEnd,l=o.markerMid;return a&&rZ(a)&&(n.markerStartAngle=a.getLocalEulerAngles(),n.appendChild(a)),l&&rZ(l)&&n.placeMarkerMid(l),s&&rZ(s)&&(n.markerEndAngle=s.getLocalEulerAngles(),n.appendChild(s)),n.transformMarker(!0),n.transformMarker(!1),n}return(0,W.ZT)(e,t),e.prototype.attributeChangedCallback=function(t,e,n,r,i){"points"===t?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):"markerStartOffset"===t||"markerEndOffset"===t?(this.transformMarker(!0),this.transformMarker(!1)):"markerStart"===t?(r&&rZ(r)&&(this.markerStartAngle=0,r.remove()),i&&rZ(i)&&(this.markerStartAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!0))):"markerEnd"===t?(r&&rZ(r)&&(this.markerEndAngle=0,r.remove()),i&&rZ(i)&&(this.markerEndAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!1))):"markerMid"===t&&this.placeMarkerMid(i)},e.prototype.transformMarker=function(t){var e,n,r,i,o,a,s=this.parsedStyle,l=s.markerStart,u=s.markerEnd,c=s.markerStartOffset,h=s.markerEndOffset,p=(s.points||{}).points,d=t?l:u;if(d&&rZ(d)&&p){var f=0;if(r=p[0][0],i=p[0][1],t)e=p[1][0]-p[0][0],n=p[1][1]-p[0][1],o=c||0,a=this.markerStartAngle;else{var v=p.length;this.parsedStyle.isClosed?(e=p[v-1][0]-p[0][0],n=p[v-1][1]-p[0][1]):(r=p[v-1][0],i=p[v-1][1],e=p[v-2][0]-p[v-1][0],n=p[v-2][1]-p[v-1][1]),o=h||0,a=this.markerEndAngle}f=Math.atan2(n,e),d.setLocalEulerAngles(180*f/Math.PI+a),d.setLocalPosition(r+Math.cos(f)*o,i+Math.sin(f)*o)}},e.prototype.placeMarkerMid=function(t){var e=(this.parsedStyle.points||{}).points;if(this.markerMidList.forEach(function(t){t.remove()}),this.markerMidList=[],t&&rZ(t)&&e)for(var n=1;n<(this.parsedStyle.isClosed?e.length:e.length-1);n++){var r=e[n][0],i=e[n][1],o=1===n?t:t.cloneNode(!0);this.markerMidList.push(o),this.appendChild(o),o.setLocalPosition(r,i)}},e}(rq),r5=function(t){function e(e){void 0===e&&(e={});var n=e.style,r=(0,W._T)(e,["style"]);return t.call(this,(0,W.pi)({type:k.POLYLINE,style:rL.enableCSSParsing?(0,W.pi)({points:"",miterLimit:"",isClosed:!1},n):(0,W.pi)({},n),initialParsedStyle:rL.enableCSSParsing?null:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!1}},r))||this}return(0,W.ZT)(e,t),e.prototype.getTotalLength=function(){return 0===this.parsedStyle.points.totalLength&&(this.parsedStyle.points.totalLength=(0,tP.hE)(this.parsedStyle.points.points)),this.parsedStyle.points.totalLength},e.prototype.getPointAtLength=function(t,e){return void 0===e&&(e=!1),this.getPoint(t/this.getTotalLength(),e)},e.prototype.getPoint=function(t,e){void 0===e&&(e=!1);var n=this.parsedStyle.points.points;if(0===this.parsedStyle.points.segments.length){var r,i=[],o=0,a=this.getTotalLength();n.forEach(function(t,e){n[e+1]&&((r=[0,0])[0]=o/a,o+=(0,tP.Xk)(t[0],t[1],n[e+1][0],n[e+1][1]),r[1]=o/a,i.push(r))}),this.parsedStyle.points.segments=i}var s=0,l=0;this.parsedStyle.points.segments.forEach(function(e,n){t>=e[0]&&t<=e[1]&&(s=(t-e[0])/(e[1]-e[0]),l=n)});var u=(0,tP.U4)(n[l][0],n[l][1],n[l+1][0],n[l+1][1],s),c=u.x,h=u.y,p=q.fF(q.Ue(),q.al(c,h,0),e?this.getWorldTransform():this.getLocalTransform());return new tj(p[0],p[1])},e.prototype.getStartTangent=function(){var t=this.parsedStyle.points.points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.parsedStyle.points.points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(r3),r4=function(t){function e(e){return void 0===e&&(e={}),t.call(this,(0,W.pi)({type:k.RECT},e))||this}return(0,W.ZT)(e,t),e}(rq),r9=function(t){function e(e){void 0===e&&(e={});var n=e.style,r=(0,W._T)(e,["style"]);return t.call(this,(0,W.pi)({type:k.TEXT,style:rL.enableCSSParsing?(0,W.pi)({x:"",y:"",text:"",fontSize:"",fontFamily:"",fontStyle:"",fontWeight:"",fontVariant:"",textAlign:"",textBaseline:"",textTransform:"",fill:"black",letterSpacing:"",lineHeight:"",miterLimit:"",wordWrap:!1,wordWrapWidth:0,leading:0,dx:"",dy:""},n):(0,W.pi)({fill:"black"},n)},r))||this}return(0,W.ZT)(e,t),e.prototype.getComputedTextLength=function(){var t;return this.getGeometryBounds(),(null===(t=this.parsedStyle.metrics)||void 0===t?void 0:t.maxLineWidth)||0},e.prototype.getLineBoundingRects=function(){var t;return this.getGeometryBounds(),(null===(t=this.parsedStyle.metrics)||void 0===t?void 0:t.lineMetrics)||[]},e.prototype.isOverflowing=function(){return this.getGeometryBounds(),!!this.parsedStyle.isOverflowing},e}(rq),r8=function(){function t(){this.registry={},this.define(k.CIRCLE,rK),this.define(k.ELLIPSE,rJ),this.define(k.RECT,r4),this.define(k.IMAGE,r0),this.define(k.LINE,r1),this.define(k.GROUP,r$),this.define(k.PATH,r2),this.define(k.POLYGON,r3),this.define(k.POLYLINE,r5),this.define(k.TEXT,r9),this.define(k.HTML,rQ)}return t.prototype.define=function(t,e){this.registry[t]=e},t.prototype.get=function(t){return this.registry[t]},t}(),r6=function(t){function e(){var e=t.call(this)||this;e.defaultView=null,e.ownerDocument=null,e.nodeName="document";try{e.timeline=new rL.AnimationTimeline(e)}catch(t){}var n={};return nm.forEach(function(t){var e=t.n,r=t.inh,i=t.d;r&&i&&(n[e]=et(i)?i(k.GROUP):i)}),e.documentElement=new r$({id:"g-root",style:n}),e.documentElement.ownerDocument=e,e.documentElement.parentNode=e,e.childNodes=[e.documentElement],e}return(0,W.ZT)(e,t),Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.firstChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){return this.lastChild},enumerable:!1,configurable:!0}),e.prototype.createElement=function(t,e){if("svg"===t)return this.documentElement;var n=this.defaultView.customElements.get(t);n||(console.warn("Unsupported tagName: ",t),n="tspan"===t?r9:r$);var r=new n(e);return r.ownerDocument=this,r},e.prototype.createElementNS=function(t,e,n){return this.createElement(e,n)},e.prototype.cloneNode=function(t){throw Error(tH)},e.prototype.destroy=function(){try{this.documentElement.destroyChildren(),this.timeline.destroy()}catch(t){}},e.prototype.elementsFromBBox=function(t,e,n,r){var i=this.defaultView.context.rBushRoot.search({minX:t,minY:e,maxX:n,maxY:r}),o=[];return i.forEach(function(t){var e=t.displayObject,n=e.parsedStyle.pointerEvents,r=["auto","visiblepainted","visiblefill","visiblestroke","visible"].includes(void 0===n?"auto":n);(!r||r&&e.isVisible())&&!e.isCulled()&&e.isInteractive()&&o.push(e)}),o.sort(function(t,e){return e.sortable.renderOrder-t.sortable.renderOrder}),o},e.prototype.elementFromPointSync=function(t,e){var n=this.defaultView.canvas2Viewport({x:t,y:e}),r=n.x,i=n.y,o=this.defaultView.getConfig(),a=o.width,s=o.height;if(r<0||i<0||r>a||i>s)return null;var l=this.defaultView.viewport2Client({x:r,y:i}),u=l.x,c=l.y,h=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!0,position:{x:t,y:e,viewportX:r,viewportY:i,clientX:u,clientY:c},picked:[]}).picked;return h&&h[0]||this.documentElement},e.prototype.elementFromPoint=function(t,e){return(0,W.mG)(this,void 0,void 0,function(){var n,r,i,o,a,s,l,u,c,h;return(0,W.Jh)(this,function(p){switch(p.label){case 0:if(r=(n=this.defaultView.canvas2Viewport({x:t,y:e})).x,i=n.y,a=(o=this.defaultView.getConfig()).width,s=o.height,r<0||i<0||r>a||i>s)return[2,null];return u=(l=this.defaultView.viewport2Client({x:r,y:i})).x,c=l.y,[4,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!0,position:{x:t,y:e,viewportX:r,viewportY:i,clientX:u,clientY:c},picked:[]})];case 1:return[2,(h=p.sent().picked)&&h[0]||this.documentElement]}})})},e.prototype.elementsFromPointSync=function(t,e){var n=this.defaultView.canvas2Viewport({x:t,y:e}),r=n.x,i=n.y,o=this.defaultView.getConfig(),a=o.width,s=o.height;if(r<0||i<0||r>a||i>s)return[];var l=this.defaultView.viewport2Client({x:r,y:i}),u=l.x,c=l.y,h=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!1,position:{x:t,y:e,viewportX:r,viewportY:i,clientX:u,clientY:c},picked:[]}).picked;return h[h.length-1]!==this.documentElement&&h.push(this.documentElement),h},e.prototype.elementsFromPoint=function(t,e){return(0,W.mG)(this,void 0,void 0,function(){var n,r,i,o,a,s,l,u,c,h;return(0,W.Jh)(this,function(p){switch(p.label){case 0:if(r=(n=this.defaultView.canvas2Viewport({x:t,y:e})).x,i=n.y,a=(o=this.defaultView.getConfig()).width,s=o.height,r<0||i<0||r>a||i>s)return[2,[]];return u=(l=this.defaultView.viewport2Client({x:r,y:i})).x,c=l.y,[4,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!1,position:{x:t,y:e,viewportX:r,viewportY:i,clientX:u,clientY:c},picked:[]})];case 1:return(h=p.sent().picked)[h.length-1]!==this.documentElement&&h.push(this.documentElement),[2,h]}})})},e.prototype.appendChild=function(t,e){throw Error(tq)},e.prototype.insertBefore=function(t,e){throw Error(tq)},e.prototype.removeChild=function(t,e){throw Error(tq)},e.prototype.replaceChild=function(t,e,n){throw Error(tq)},e.prototype.append=function(){throw Error(tq)},e.prototype.prepend=function(){throw Error(tq)},e.prototype.getElementById=function(t){return this.documentElement.getElementById(t)},e.prototype.getElementsByName=function(t){return this.documentElement.getElementsByName(t)},e.prototype.getElementsByTagName=function(t){return this.documentElement.getElementsByTagName(t)},e.prototype.getElementsByClassName=function(t){return this.documentElement.getElementsByClassName(t)},e.prototype.querySelector=function(t){return this.documentElement.querySelector(t)},e.prototype.querySelectorAll=function(t){return this.documentElement.querySelectorAll(t)},e.prototype.find=function(t){return this.documentElement.find(t)},e.prototype.findAll=function(t){return this.documentElement.findAll(t)},e}(rE),r7=function(){function t(t){this.strategies=t}return t.prototype.apply=function(e){var n=e.camera,r=e.renderingService,i=e.renderingContext,o=this.strategies;r.hooks.cull.tap(t.tag,function(t){if(t){var e=t.cullable;return(0===o.length?e.visible=i.unculledEntities.indexOf(t.entity)>-1:e.visible=o.every(function(e){return e.isVisible(n,t)}),!t.isCulled()&&t.isVisible())?t:(t.dispatchEvent(new rg(X.CULLED)),null)}return t}),r.hooks.afterRender.tap(t.tag,function(t){t.cullable.visibilityPlaneMask=-1})},t.tag="Culling",t}(),it=function(){function t(){var t=this;this.autoPreventDefault=!1,this.rootPointerEvent=new rv(null),this.rootWheelEvent=new ry(null),this.onPointerMove=function(e){var n,r,i,o,a=null===(o=null===(i=t.context.renderingContext.root)||void 0===i?void 0:i.ownerDocument)||void 0===o?void 0:o.defaultView;if(!a.supportsTouchEvents||"touch"!==e.pointerType){var s=t.normalizeToPointerEvent(e,a);try{for(var l=(0,W.XA)(s),u=l.next();!u.done;u=l.next()){var c=u.value,h=t.bootstrapEvent(t.rootPointerEvent,c,a,e);t.context.eventService.mapEvent(h)}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}t.setCursor(t.context.eventService.cursor)}},this.onClick=function(e){var n,r,i,o,a=null===(o=null===(i=t.context.renderingContext.root)||void 0===i?void 0:i.ownerDocument)||void 0===o?void 0:o.defaultView,s=t.normalizeToPointerEvent(e,a);try{for(var l=(0,W.XA)(s),u=l.next();!u.done;u=l.next()){var c=u.value,h=t.bootstrapEvent(t.rootPointerEvent,c,a,e);t.context.eventService.mapEvent(h)}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}t.setCursor(t.context.eventService.cursor)}}return t.prototype.apply=function(e){var n=this;this.context=e;var r=e.renderingService,i=this.context.renderingContext.root.ownerDocument.defaultView;this.context.eventService.setPickHandler(function(t){return n.context.renderingService.hooks.pickSync.call({position:t,picked:[],topmost:!0}).picked[0]||null}),r.hooks.pointerWheel.tap(t.tag,function(t){var e=n.normalizeWheelEvent(t);n.context.eventService.mapEvent(e)}),r.hooks.pointerDown.tap(t.tag,function(t){if(!i.supportsTouchEvents||"touch"!==t.pointerType){var e,r,o=n.normalizeToPointerEvent(t,i);n.autoPreventDefault&&o[0].isNormalized&&(t.cancelable||!("cancelable"in t))&&t.preventDefault();try{for(var a=(0,W.XA)(o),s=a.next();!s.done;s=a.next()){var l=s.value,u=n.bootstrapEvent(n.rootPointerEvent,l,i,t);n.context.eventService.mapEvent(u)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}n.setCursor(n.context.eventService.cursor)}}),r.hooks.pointerUp.tap(t.tag,function(t){if(!i.supportsTouchEvents||"touch"!==t.pointerType){var e,r,o=n.context.contextService.getDomElement(),a=n.context.eventService.isNativeEventFromCanvas(o,t)?"":"outside",s=n.normalizeToPointerEvent(t,i);try{for(var l=(0,W.XA)(s),u=l.next();!u.done;u=l.next()){var c=u.value,h=n.bootstrapEvent(n.rootPointerEvent,c,i,t);h.type+=a,n.context.eventService.mapEvent(h)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}n.setCursor(n.context.eventService.cursor)}}),r.hooks.pointerMove.tap(t.tag,this.onPointerMove),r.hooks.pointerOver.tap(t.tag,this.onPointerMove),r.hooks.pointerOut.tap(t.tag,this.onPointerMove),r.hooks.click.tap(t.tag,this.onClick),r.hooks.pointerCancel.tap(t.tag,function(t){var e,r,o=n.normalizeToPointerEvent(t,i);try{for(var a=(0,W.XA)(o),s=a.next();!s.done;s=a.next()){var l=s.value,u=n.bootstrapEvent(n.rootPointerEvent,l,i,t);n.context.eventService.mapEvent(u)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}n.setCursor(n.context.eventService.cursor)})},t.prototype.bootstrapEvent=function(t,e,n,r){t.view=n,t.originalEvent=null,t.nativeEvent=r,t.pointerId=e.pointerId,t.width=e.width,t.height=e.height,t.isPrimary=e.isPrimary,t.pointerType=e.pointerType,t.pressure=e.pressure,t.tangentialPressure=e.tangentialPressure,t.tiltX=e.tiltX,t.tiltY=e.tiltY,t.twist=e.twist,this.transferMouseData(t,e);var i=this.context.eventService.client2Viewport({x:e.clientX,y:e.clientY}),o=i.x,a=i.y;t.viewport.x=o,t.viewport.y=a;var s=this.context.eventService.viewport2Canvas(t.viewport),l=s.x,u=s.y;return t.canvas.x=l,t.canvas.y=u,t.global.copyFrom(t.canvas),t.offset.copyFrom(t.canvas),t.isTrusted=r.isTrusted,"pointerleave"===t.type&&(t.type="pointerout"),t.type.startsWith("mouse")&&(t.type=t.type.replace("mouse","pointer")),t.type.startsWith("touch")&&(t.type=nX[t.type]||t.type),t},t.prototype.normalizeWheelEvent=function(t){var e=this.rootWheelEvent;this.transferMouseData(e,t),e.deltaMode=t.deltaMode,e.deltaX=t.deltaX,e.deltaY=t.deltaY,e.deltaZ=t.deltaZ;var n=this.context.eventService.client2Viewport({x:t.clientX,y:t.clientY}),r=n.x,i=n.y;e.viewport.x=r,e.viewport.y=i;var o=this.context.eventService.viewport2Canvas(e.viewport),a=o.x,s=o.y;return e.canvas.x=a,e.canvas.y=s,e.global.copyFrom(e.canvas),e.offset.copyFrom(e.canvas),e.nativeEvent=t,e.type=t.type,e},t.prototype.transferMouseData=function(t,e){t.isTrusted=e.isTrusted,t.srcElement=e.srcElement,t.timeStamp=nj.now(),t.type=e.type,t.altKey=e.altKey,t.metaKey=e.metaKey,t.shiftKey=e.shiftKey,t.ctrlKey=e.ctrlKey,t.button=e.button,t.buttons=e.buttons,t.client.x=e.clientX,t.client.y=e.clientY,t.movement.x=e.movementX,t.movement.y=e.movementY,t.page.x=e.pageX,t.page.y=e.pageY,t.screen.x=e.screenX,t.screen.y=e.screenY,t.relatedTarget=null},t.prototype.setCursor=function(t){this.context.contextService.applyCursorStyle(t||this.context.config.cursor||"default")},t.prototype.normalizeToPointerEvent=function(t,e){var n=[];if(e.isTouchEvent(t))for(var r=0;r-1,a=0,s=r.length;a=1?Math.ceil(k):1,C=l||("auto"===(n=nz(a,"width"))?a.offsetWidth:parseFloat(n))||a.width/k,w=u||("auto"===(r=nz(a,"height"))?a.offsetHeight:parseFloat(r))||a.height/k),s&&(rL.offscreenCanvas=s),i.devicePixelRatio=k,i.requestAnimationFrame=null!=v?v:n1.bind(rL.globalThis),i.cancelAnimationFrame=null!=y?y:n2.bind(rL.globalThis),i.supportsTouchEvents=null!=E?E:"ontouchstart"in rL.globalThis,i.supportsPointerEvents=null!=m?m:!!rL.globalThis.PointerEvent,i.isTouchEvent=null!=S?S:function(t){return i.supportsTouchEvents&&t instanceof rL.globalThis.TouchEvent},i.isMouseEvent=null!=N?N:function(t){return!rL.globalThis.MouseEvent||t instanceof rL.globalThis.MouseEvent&&(!i.supportsPointerEvents||!(t instanceof rL.globalThis.PointerEvent))},i.initRenderingContext({container:o,canvas:a,width:C,height:w,renderer:h,offscreenCanvas:s,devicePixelRatio:k,cursor:d||"default",background:p||"transparent",createImage:g,document:f,supportsCSSTransform:x,useNativeClickEvent:T,alwaysTriggerPointerEventOnCanvas:P}),i.initDefaultCamera(C,w,h.clipSpaceNearZ),i.initRenderer(h,!0),i}(0,W.ZT)(e,t),e.prototype.initRenderingContext=function(t){this.context.config=t,this.context.renderingContext={root:this.document.documentElement,renderListCurrentFrame:[],unculledEntities:[],renderReasons:new Set,force:!1,dirty:!1}},e.prototype.initDefaultCamera=function(t,e,n){var r=this,i=new rL.CameraContribution;i.clipSpaceNearZ=n,i.setType(A.EXPLORING,O.DEFAULT).setPosition(t/2,e/2,500).setFocalPoint(t/2,e/2,0).setOrthographic(-(t/2),t/2,e/2,-(e/2),.1,1e3),i.canvas=this,i.eventEmitter.on(tK.UPDATED,function(){r.context.renderingContext.renderReasons.add(z.CAMERA_CHANGED),rL.enableSizeAttenuation&&r.getConfig().renderer.getConfig().enableSizeAttenuation&&r.updateSizeAttenuation()}),this.context.camera=i},e.prototype.updateSizeAttenuation=function(){var t=this.getCamera().getZoom();this.document.documentElement.forEach(function(e){rL.styleValueRegistry.updateSizeAttenuation(e,t)})},e.prototype.getConfig=function(){return this.context.config},e.prototype.getRoot=function(){return this.document.documentElement},e.prototype.getCamera=function(){return this.context.camera},e.prototype.getContextService=function(){return this.context.contextService},e.prototype.getEventService=function(){return this.context.eventService},e.prototype.getRenderingService=function(){return this.context.renderingService},e.prototype.getRenderingContext=function(){return this.context.renderingContext},e.prototype.getStats=function(){return this.getRenderingService().getStats()},Object.defineProperty(e.prototype,"ready",{get:function(){var t=this;return!this.readyPromise&&(this.readyPromise=new Promise(function(e){t.resolveReadyPromise=function(){e(t)}}),this.inited&&this.resolveReadyPromise()),this.readyPromise},enumerable:!1,configurable:!0}),e.prototype.destroy=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!1),e||this.dispatchEvent(new rg(j.BEFORE_DESTROY)),this.frameId&&(this.getConfig().cancelAnimationFrame||cancelAnimationFrame)(this.frameId);var n=this.getRoot();this.unmountChildren(n),t&&(this.document.destroy(),this.getEventService().destroy()),this.getRenderingService().destroy(),this.getContextService().destroy(),t&&this.context.rBushRoot&&(this.context.rBushRoot.clear(),this.context.rBushRoot=null,this.context.renderingContext.root=null),e||this.dispatchEvent(new rg(j.AFTER_DESTROY))},e.prototype.changeSize=function(t,e){this.resize(t,e)},e.prototype.resize=function(t,e){var n=this.context.config;n.width=t,n.height=e,this.getContextService().resize(t,e);var r=this.context.camera,i=r.getProjectionMode();r.setPosition(t/2,e/2,500).setFocalPoint(t/2,e/2,0),i===I.ORTHOGRAPHIC?r.setOrthographic(-(t/2),t/2,e/2,-(e/2),r.getNear(),r.getFar()):r.setAspect(t/e),this.dispatchEvent(new rg(j.RESIZE,{width:t,height:e}))},e.prototype.appendChild=function(t,e){return this.document.documentElement.appendChild(t,e)},e.prototype.insertBefore=function(t,e){return this.document.documentElement.insertBefore(t,e)},e.prototype.removeChild=function(t){return this.document.documentElement.removeChild(t)},e.prototype.removeChildren=function(){this.document.documentElement.removeChildren()},e.prototype.destroyChildren=function(){this.document.documentElement.destroyChildren()},e.prototype.render=function(t){var e=this;this.dispatchEvent(is),this.getRenderingService().render(this.getConfig(),t,function(){e.dispatchEvent(il)}),this.dispatchEvent(iu)},e.prototype.run=function(){var t=this,e=function(n,r){t.render(r),t.frameId=t.requestAnimationFrame(e)};e()},e.prototype.initRenderer=function(t,e){var n=this;if(void 0===e&&(e=!1),!t)throw Error("Renderer is required.");this.inited=!1,this.readyPromise=void 0,this.context.rBushRoot=new tN,this.context.renderingPlugins=[],this.context.renderingPlugins.push(new it,new ii,new r7([new ir])),this.loadRendererContainerModule(t),this.context.contextService=new this.context.ContextService((0,W.pi)((0,W.pi)({},rL),this.context)),this.context.renderingService=new rT(rL,this.context),this.context.eventService=new rx(rL,this.context),this.context.eventService.init(),this.context.contextService.init?(this.context.contextService.init(),this.initRenderingService(t,e,!0)):this.context.contextService.initAsync().then(function(){n.initRenderingService(t,e)})},e.prototype.initRenderingService=function(t,e,n){var r=this;void 0===e&&(e=!1),void 0===n&&(n=!1),this.context.renderingService.init(function(){r.inited=!0,e?(n?r.requestAnimationFrame(function(){r.dispatchEvent(new rg(j.READY))}):r.dispatchEvent(new rg(j.READY)),r.readyPromise&&r.resolveReadyPromise()):r.dispatchEvent(new rg(j.RENDERER_CHANGED)),e||r.getRoot().forEach(function(t){var e=t.renderable;e&&(e.renderBoundsDirty=!0,e.boundsDirty=!0,e.dirty=!0)}),r.mountChildren(r.getRoot()),t.getConfig().enableAutoRendering&&r.run()})},e.prototype.loadRendererContainerModule=function(t){var e=this;t.getPlugins().forEach(function(t){t.context=e.context,t.init(rL)})},e.prototype.setRenderer=function(t){var e=this.getConfig();if(e.renderer!==t){var n=e.renderer;e.renderer=t,this.destroy(!1,!0),(0,W.ev)([],(0,W.CR)(null==n?void 0:n.getPlugins()),!1).reverse().forEach(function(t){t.destroy(rL)}),this.initRenderer(t)}},e.prototype.setCursor=function(t){this.getConfig().cursor=t,this.getContextService().applyCursorStyle(t)},e.prototype.unmountChildren=function(t){var e=this;t.childNodes.forEach(function(t){e.unmountChildren(t)}),this.inited&&(t.isMutationObserved?t.dispatchEvent(ia):(ia.target=t,this.dispatchEvent(ia,!0)),t!==this.document.documentElement&&(t.ownerDocument=null),t.isConnected=!1),t.isCustomElement&&t.disconnectedCallback&&t.disconnectedCallback()},e.prototype.mountChildren=function(t){var e=this;this.inited?t.isConnected||(t.ownerDocument=this.document,t.isConnected=!0,t.isMutationObserved?t.dispatchEvent(io):(io.target=t,this.dispatchEvent(io,!0))):console.warn("[g]: You are trying to call `canvas.appendChild` before canvas' initialization finished. You can either await `canvas.ready` or listen to `CanvasEvent.READY` manually.","appended child: ",t.nodeName),t.childNodes.forEach(function(t){e.mountChildren(t)}),t.isCustomElement&&t.connectedCallback&&t.connectedCallback()},e.prototype.client2Viewport=function(t){return this.getEventService().client2Viewport(t)},e.prototype.viewport2Client=function(t){return this.getEventService().viewport2Client(t)},e.prototype.viewport2Canvas=function(t){return this.getEventService().viewport2Canvas(t)},e.prototype.canvas2Viewport=function(t){return this.getEventService().canvas2Viewport(t)},e.prototype.getPointByClient=function(t,e){return this.client2Viewport({x:t,y:e})},e.prototype.getClientByPoint=function(t,e){return this.viewport2Client({x:t,y:e})}}(rm)}}]); \ No newline at end of file diff --git a/dbgpt/app/static/web/_next/static/chunks/f9a75a99-808c28cc36e09422.js b/dbgpt/app/static/web/_next/static/chunks/f9a75a99-95eebf4be8f76543.js similarity index 100% rename from dbgpt/app/static/web/_next/static/chunks/f9a75a99-808c28cc36e09422.js rename to dbgpt/app/static/web/_next/static/chunks/f9a75a99-95eebf4be8f76543.js diff --git a/dbgpt/app/static/web/_next/static/chunks/pages/_app-7c76237d5662964a.js b/dbgpt/app/static/web/_next/static/chunks/pages/_app-dcdb32527e2fdd0b.js similarity index 66% rename from dbgpt/app/static/web/_next/static/chunks/pages/_app-7c76237d5662964a.js rename to dbgpt/app/static/web/_next/static/chunks/pages/_app-dcdb32527e2fdd0b.js index 244deb215..3466f00d1 100644 --- a/dbgpt/app/static/web/_next/static/chunks/pages/_app-7c76237d5662964a.js +++ b/dbgpt/app/static/web/_next/static/chunks/pages/_app-dcdb32527e2fdd0b.js @@ -2,10 +2,10 @@ :root { ${i.join("\n")} } - `.trim()}(e,t);(0,m.Z)()&&(0,C.hq)(n,`${L}-dynamic-theme`)}(B(),s):i=s)},$.useConfig=function(){let e=(0,s.useContext)(g.Z),t=(0,s.useContext)(v.Z);return{componentDisabled:e,componentSize:t}},Object.defineProperty($,"SizeContext",{get:()=>v.Z});var W=$},71191:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=(0,r.Z)((0,r.Z)({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),i=n(42115);let a={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},o),timePickerLocale:Object.assign({},i.Z)};var s=a},12652:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=n(67294),o=n(62635),i=n(93967),a=n.n(i),s=n(29372),l=n(42550),E=n(66367),c=n(58375),u=n(74902),T=n(75164),R=function(e){let t;let n=n=>()=>{t=null,e.apply(void 0,(0,u.Z)(n))},r=function(){if(null==t){for(var e=arguments.length,r=Array(e),o=0;o{T.Z.cancel(t),t=null},r},d=n(53124);let f=r.createContext(void 0),{Provider:A}=f;var S=n(98423),O=n(40411),p=n(35792),N=n(83062),I=n(15360),h=(0,r.memo)(e=>{let{icon:t,description:n,prefixCls:o,className:i}=e,s=r.createElement("div",{className:`${o}-icon`},r.createElement(I.Z,null));return r.createElement("div",{onClick:e.onClick,onFocus:e.onFocus,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,className:a()(i,`${o}-content`)},t||n?r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${o}-icon`},t),n&&r.createElement("div",{className:`${o}-description`},n)):s)}),_=n(25446),m=n(14747),C=n(16932),L=n(93590),g=n(83559),v=n(83262),P=e=>0===e?0:e-Math.sqrt(Math.pow(e,2)/2);let y=e=>{let{componentCls:t,floatButtonSize:n,motionDurationSlow:r,motionEaseInOutCirc:o}=e,i=`${t}-group`,a=new _.E4("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${(0,_.bf)(n)}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),s=new _.E4("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${(0,_.bf)(n)}, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${i}-wrap`]:Object.assign({},(0,L.R)(`${i}-wrap`,a,s,r,!0))},{[`${i}-wrap`]:{[` + `.trim()}(e,t);(0,m.Z)()&&(0,C.hq)(n,`${L}-dynamic-theme`)}(B(),s):i=s)},$.useConfig=function(){let e=(0,s.useContext)(g.Z),t=(0,s.useContext)(v.Z);return{componentDisabled:e,componentSize:t}},Object.defineProperty($,"SizeContext",{get:()=>v.Z});var W=$},29494:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=(0,r.Z)((0,r.Z)({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),i=n(42115);let a={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},o),timePickerLocale:Object.assign({},i.Z)};var s=a},12652:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=n(67294),o=n(62635),i=n(93967),a=n.n(i),s=n(29372),l=n(42550),E=n(66367),c=n(58375),u=n(74902),T=n(75164),R=function(e){let t;let n=n=>()=>{t=null,e.apply(void 0,(0,u.Z)(n))},r=function(){if(null==t){for(var e=arguments.length,r=Array(e),o=0;o{T.Z.cancel(t),t=null},r},d=n(53124);let f=r.createContext(void 0),{Provider:A}=f;var S=n(98423),O=n(40411),p=n(35792),N=n(83062),I=n(15360),h=(0,r.memo)(e=>{let{icon:t,description:n,prefixCls:o,className:i}=e,s=r.createElement("div",{className:`${o}-icon`},r.createElement(I.Z,null));return r.createElement("div",{onClick:e.onClick,onFocus:e.onFocus,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,className:a()(i,`${o}-content`)},t||n?r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${o}-icon`},t),n&&r.createElement("div",{className:`${o}-description`},n)):s)}),_=n(25446),m=n(14747),C=n(16932),L=n(93590),g=n(83559),v=n(83262),P=e=>0===e?0:e-Math.sqrt(Math.pow(e,2)/2);let y=e=>{let{componentCls:t,floatButtonSize:n,motionDurationSlow:r,motionEaseInOutCirc:o}=e,i=`${t}-group`,a=new _.E4("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${(0,_.bf)(n)}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),s=new _.E4("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${(0,_.bf)(n)}, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${i}-wrap`]:Object.assign({},(0,L.R)(`${i}-wrap`,a,s,r,!0))},{[`${i}-wrap`]:{[` &${i}-wrap-enter, &${i}-wrap-appear - `]:{opacity:0,animationTimingFunction:o},[`&${i}-wrap-leave`]:{animationTimingFunction:o}}}]},D=e=>{let{antCls:t,componentCls:n,floatButtonSize:r,margin:o,borderRadiusLG:i,borderRadiusSM:a,badgeOffset:s,floatButtonBodyPadding:l,calc:E}=e,c=`${n}-group`;return{[c]:Object.assign(Object.assign({},(0,m.Wf)(e)),{zIndex:e.zIndexPopupBase,display:"block",border:"none",position:"fixed",width:r,height:"auto",boxShadow:"none",minHeight:r,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:i,[`${c}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:o},[`&${c}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${c}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:r,height:r,borderRadius:"50%"}}},[`${c}-square`]:{[`${n}-square`]:{padding:0,borderRadius:0,[`&${c}-trigger`]:{borderRadius:i},"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${(0,_.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:E(E(l).add(s)).mul(-1).equal(),insetInlineEnd:E(E(l).add(s)).mul(-1).equal()}}},[`${c}-wrap`]:{display:"block",borderRadius:i,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:l,"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${(0,_.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${c}-circle-shadow`]:{boxShadow:"none"},[`${c}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:l,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:a}}}}},M=e=>{let{antCls:t,componentCls:n,floatButtonBodyPadding:r,floatButtonIconSize:o,floatButtonSize:i,borderRadiusLG:a,badgeOffset:s,dotOffsetInSquare:l,dotOffsetInCircle:E,calc:c}=e;return{[n]:Object.assign(Object.assign({},(0,m.Wf)(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:e.zIndexPopupBase,display:"block",width:i,height:i,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:c(s).mul(-1).equal(),insetInlineEnd:c(s).mul(-1).equal()}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:i,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${(0,_.bf)(c(r).div(2).equal())} ${(0,_.bf)(r)}`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:o,fontSize:o,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:i,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:E,insetInlineEnd:E}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:i,borderRadius:a,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:l,insetInlineEnd:l}},[`${n}-body`]:{height:"auto",borderRadius:a}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:(0,_.bf)(e.fontSizeLG),color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:(0,_.bf)(e.fontSizeLG),color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}};var b=(0,g.I$)("FloatButton",e=>{let{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:r,marginXXL:o,marginLG:i,fontSize:a,fontSizeIcon:s,controlItemBgHover:l,paddingXXS:E,calc:c}=e,u=(0,v.IX)(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:l,floatButtonFontSize:a,floatButtonIconSize:c(s).mul(1.5).equal(),floatButtonSize:r,floatButtonInsetBlockEnd:o,floatButtonInsetInlineEnd:i,floatButtonBodySize:c(r).sub(c(E).mul(2)).equal(),floatButtonBodyPadding:E,badgeOffset:c(E).mul(1.5).equal()});return[D(u),M(u),(0,C.J$)(e),y(u)]},e=>({dotOffsetInCircle:P(e.controlHeightLG/2),dotOffsetInSquare:P(e.borderRadiusLG)})),U=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let x="float-btn",w=r.forwardRef((e,t)=>{let{prefixCls:n,className:o,rootClassName:i,type:s="default",shape:l="circle",icon:E,description:c,tooltip:u,badge:T={}}=e,R=U(e,["prefixCls","className","rootClassName","type","shape","icon","description","tooltip","badge"]),{getPrefixCls:A,direction:I}=(0,r.useContext)(d.E_),_=(0,r.useContext)(f),m=A(x,n),C=(0,p.Z)(m),[L,g,v]=b(m,C),P=a()(g,v,C,m,o,i,`${m}-${s}`,`${m}-${_||l}`,{[`${m}-rtl`]:"rtl"===I}),y=(0,r.useMemo)(()=>(0,S.Z)(T,["title","children","status","text"]),[T]),D=(0,r.useMemo)(()=>({prefixCls:m,description:c,icon:E,type:s}),[m,c,E,s]),M=r.createElement("div",{className:`${m}-body`},r.createElement(h,Object.assign({},D)));return"badge"in e&&(M=r.createElement(O.Z,Object.assign({},y),M)),"tooltip"in e&&(M=r.createElement(N.Z,{title:u,placement:"rtl"===I?"right":"left"},M)),L(e.href?r.createElement("a",Object.assign({ref:t},R,{className:P}),M):r.createElement("button",Object.assign({ref:t},R,{className:P,type:"button"}),M))});var G=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let F=r.forwardRef((e,t)=>{let{prefixCls:n,className:i,type:u="default",shape:T="circle",visibilityHeight:A=400,icon:S=r.createElement(o.Z,null),target:O,onClick:p,duration:N=450}=e,I=G(e,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),[h,_]=(0,r.useState)(0===A),m=r.useRef(null);r.useImperativeHandle(t,()=>({nativeElement:m.current}));let C=()=>{var e;return(null===(e=m.current)||void 0===e?void 0:e.ownerDocument)||window},L=R(e=>{let t=(0,E.Z)(e.target);_(t>=A)});(0,r.useEffect)(()=>{let e=O||C,t=e();return L({target:t}),null==t||t.addEventListener("scroll",L),()=>{L.cancel(),null==t||t.removeEventListener("scroll",L)}},[O]);let g=e=>{(0,c.Z)(0,{getContainer:O||C,duration:N}),null==p||p(e)},{getPrefixCls:v}=(0,r.useContext)(d.E_),P=v(x,n),y=v(),D=(0,r.useContext)(f),M=Object.assign({prefixCls:P,icon:S,type:u,shape:D||T},I);return r.createElement(s.ZP,{visible:h,motionName:`${y}-fade`},(e,t)=>{let{className:n}=e;return r.createElement(w,Object.assign({ref:(0,l.sQ)(m,t)},M,{onClick:g,className:a()(i,n)}))})});var H=n(97937),B=n(56790),Y=n(21770),k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},V=(0,r.memo)(e=>{var t;let{prefixCls:n,className:o,style:i,shape:l="circle",type:E="default",icon:c=r.createElement(I.Z,null),closeIcon:u,description:T,trigger:R,children:f,onOpenChange:S,open:O,onClick:N}=e,h=k(e,["prefixCls","className","style","shape","type","icon","closeIcon","description","trigger","children","onOpenChange","open","onClick"]),{direction:_,getPrefixCls:m,floatButtonGroup:C}=(0,r.useContext)(d.E_),L=null!==(t=null!=u?u:null==C?void 0:C.closeIcon)&&void 0!==t?t:r.createElement(H.Z,null),g=m(x,n),v=(0,p.Z)(g),[P,y,D]=b(g,v),M=`${g}-group`,U=a()(M,y,D,v,o,{[`${M}-rtl`]:"rtl"===_,[`${M}-${l}`]:l,[`${M}-${l}-shadow`]:!R}),G=a()(y,`${M}-wrap`),[F,V]=(0,Y.Z)(!1,{value:O}),$=r.useRef(null),W="hover"===R,Z="click"===R,j=(0,B.zX)(e=>{F!==e&&(V(e),null==S||S(e))});return r.useEffect(()=>{if(Z){let e=e=>{var t;null!==(t=$.current)&&void 0!==t&&t.contains(e.target)||j(!1)};return document.addEventListener("click",e,{capture:!0}),()=>{document.removeEventListener("click",e,{capture:!0})}}},[Z]),P(r.createElement(A,{value:l},r.createElement("div",{ref:$,className:U,style:i,onMouseEnter:()=>{W&&j(!0)},onMouseLeave:()=>{W&&j(!1)}},R&&["click","hover"].includes(R)?r.createElement(r.Fragment,null,r.createElement(s.ZP,{visible:F,motionName:`${M}-wrap`},e=>{let{className:t}=e;return r.createElement("div",{className:a()(t,G)},f)}),r.createElement(w,Object.assign({type:E,icon:F?L:c,description:T,"aria-label":e["aria-label"],className:`${M}-trigger`,onClick:e=>{Z&&j(!F),null==N||N(e)}},h))):f)))}),$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let W=e=>{var{backTop:t}=e,n=$(e,["backTop"]);return t?r.createElement(F,Object.assign({},n,{visibilityHeight:0})):r.createElement(w,Object.assign({},n))};w.BackTop=F,w.Group=V,w._InternalPanelDoNotUseOrYouWillBeFired=e=>{var{className:t,items:n}=e,o=$(e,["className","items"]);let{prefixCls:i}=o,{getPrefixCls:s}=r.useContext(d.E_),l=s(x,i),E=`${l}-pure`;return n?r.createElement(V,Object.assign({className:a()(t,E)},o),n.map((e,t)=>r.createElement(W,Object.assign({key:t},e)))):r.createElement(W,Object.assign({className:a()(t,E)},o))};var Z=w},65223:function(e,t,n){"use strict";n.d(t,{RV:function(){return l},Rk:function(){return E},Ux:function(){return u},aM:function(){return c},pg:function(){return T},q3:function(){return a},qI:function(){return s}});var r=n(67294),o=n(88692),i=n(98423);let a=r.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),s=r.createContext(null),l=e=>{let t=(0,i.Z)(e,["prefixCls"]);return r.createElement(o.RV,Object.assign({},t))},E=r.createContext({prefixCls:""}),c=r.createContext({}),u=e=>{let{children:t,status:n,override:o}=e,i=(0,r.useContext)(c),a=(0,r.useMemo)(()=>{let e=Object.assign({},i);return o&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[n,o,i]);return r.createElement(c.Provider,{value:a},t)},T=(0,r.createContext)(void 0)},37920:function(e,t,n){"use strict";var r=n(67294);t.Z=(0,r.createContext)(void 0)},25378:function(e,t,n){"use strict";var r=n(67294),o=n(8410),i=n(57838),a=n(74443);t.Z=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,r.useRef)({}),n=(0,i.Z)(),s=(0,a.ZP)();return(0,o.Z)(()=>{let r=s.subscribe(r=>{t.current=r,e&&n()});return()=>s.unsubscribe(r)},[]),t.current}},76745:function(e,t,n){"use strict";var r=n(67294);let o=(0,r.createContext)(void 0);t.Z=o},24457:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(62906),o=n(71191),i=o.Z,a=n(42115);let s="${label} is not a valid ${type}",l={locale:"en",Pagination:r.Z,DatePicker:o.Z,TimePicker:a.Z,Calendar:i,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:s,method:s,array:s,object:s,number:s,date:s,boolean:s,integer:s,float:s,regexp:s,email:s,url:s,hex:s},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};var E=l},10110:function(e,t,n){"use strict";var r=n(67294),o=n(76745),i=n(24457);t.Z=(e,t)=>{let n=r.useContext(o.Z),a=r.useMemo(()=>{var r;let o=t||i.Z[e],a=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),a||{})},[e,t,n]),s=r.useMemo(()=>{let e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?i.Z.locale:e},[n]);return[a,s]}},66277:function(e,t,n){"use strict";n.d(t,{CW:function(){return S}});var r=n(67294),o=n(89739),i=n(4340),a=n(21640),s=n(78860),l=n(50888),E=n(93967),c=n.n(E),u=n(42999),T=n(53124),R=n(35792),d=n(34792),f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let A={info:r.createElement(s.Z,null),success:r.createElement(o.Z,null),error:r.createElement(i.Z,null),warning:r.createElement(a.Z,null),loading:r.createElement(l.Z,null)},S=e=>{let{prefixCls:t,type:n,icon:o,children:i}=e;return r.createElement("div",{className:c()(`${t}-custom-content`,`${t}-${n}`)},o||A[n],r.createElement("span",null,i))};t.ZP=e=>{let{prefixCls:t,className:n,type:o,icon:i,content:a}=e,s=f(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=r.useContext(T.E_),E=t||l("message"),A=(0,R.Z)(E),[O,p,N]=(0,d.Z)(E,A);return O(r.createElement(u.qX,Object.assign({},s,{prefixCls:E,className:c()(n,p,`${E}-notice-pure-panel`,N,A),eventKey:"pure",duration:null,content:r.createElement(S,{prefixCls:E,type:o,icon:i},a)})))}},34792:function(e,t,n){"use strict";var r=n(25446),o=n(87263),i=n(14747),a=n(83559),s=n(83262);let l=e=>{let{componentCls:t,iconCls:n,boxShadow:o,colorText:a,colorSuccess:s,colorError:l,colorWarning:E,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:T,motionDurationSlow:R,marginXS:d,paddingXS:f,borderRadiusLG:A,zIndexPopup:S,contentPadding:O,contentBg:p}=e,N=`${t}-notice`,I=new r.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:f,transform:"translateY(0)",opacity:1}}),h=new r.E4("MessageMoveOut",{"0%":{maxHeight:e.height,padding:f,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),_={padding:f,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:d,fontSize:u},[`${N}-content`]:{display:"inline-block",padding:O,background:p,borderRadius:A,boxShadow:o,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:s},[`${t}-error > ${n}`]:{color:l},[`${t}-warning > ${n}`]:{color:E},[`${t}-info > ${n}, + `]:{opacity:0,animationTimingFunction:o},[`&${i}-wrap-leave`]:{animationTimingFunction:o}}}]},D=e=>{let{antCls:t,componentCls:n,floatButtonSize:r,margin:o,borderRadiusLG:i,borderRadiusSM:a,badgeOffset:s,floatButtonBodyPadding:l,calc:E}=e,c=`${n}-group`;return{[c]:Object.assign(Object.assign({},(0,m.Wf)(e)),{zIndex:e.zIndexPopupBase,display:"block",border:"none",position:"fixed",width:r,height:"auto",boxShadow:"none",minHeight:r,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:i,[`${c}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:o},[`&${c}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${c}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:r,height:r,borderRadius:"50%"}}},[`${c}-square`]:{[`${n}-square`]:{padding:0,borderRadius:0,[`&${c}-trigger`]:{borderRadius:i},"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${(0,_.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:E(E(l).add(s)).mul(-1).equal(),insetInlineEnd:E(E(l).add(s)).mul(-1).equal()}}},[`${c}-wrap`]:{display:"block",borderRadius:i,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:l,"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${(0,_.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${c}-circle-shadow`]:{boxShadow:"none"},[`${c}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:l,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:a}}}}},M=e=>{let{antCls:t,componentCls:n,floatButtonBodyPadding:r,floatButtonIconSize:o,floatButtonSize:i,borderRadiusLG:a,badgeOffset:s,dotOffsetInSquare:l,dotOffsetInCircle:E,calc:c}=e;return{[n]:Object.assign(Object.assign({},(0,m.Wf)(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:e.zIndexPopupBase,display:"block",width:i,height:i,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:c(s).mul(-1).equal(),insetInlineEnd:c(s).mul(-1).equal()}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:i,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${(0,_.bf)(c(r).div(2).equal())} ${(0,_.bf)(r)}`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:o,fontSize:o,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:i,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:E,insetInlineEnd:E}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:i,borderRadius:a,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:l,insetInlineEnd:l}},[`${n}-body`]:{height:"auto",borderRadius:a}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:(0,_.bf)(e.fontSizeLG),color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:(0,_.bf)(e.fontSizeLG),color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}};var b=(0,g.I$)("FloatButton",e=>{let{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:r,marginXXL:o,marginLG:i,fontSize:a,fontSizeIcon:s,controlItemBgHover:l,paddingXXS:E,calc:c}=e,u=(0,v.IX)(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:l,floatButtonFontSize:a,floatButtonIconSize:c(s).mul(1.5).equal(),floatButtonSize:r,floatButtonInsetBlockEnd:o,floatButtonInsetInlineEnd:i,floatButtonBodySize:c(r).sub(c(E).mul(2)).equal(),floatButtonBodyPadding:E,badgeOffset:c(E).mul(1.5).equal()});return[D(u),M(u),(0,C.J$)(e),y(u)]},e=>({dotOffsetInCircle:P(e.controlHeightLG/2),dotOffsetInSquare:P(e.borderRadiusLG)})),U=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let x="float-btn",w=r.forwardRef((e,t)=>{let{prefixCls:n,className:o,rootClassName:i,type:s="default",shape:l="circle",icon:E,description:c,tooltip:u,badge:T={}}=e,R=U(e,["prefixCls","className","rootClassName","type","shape","icon","description","tooltip","badge"]),{getPrefixCls:A,direction:I}=(0,r.useContext)(d.E_),_=(0,r.useContext)(f),m=A(x,n),C=(0,p.Z)(m),[L,g,v]=b(m,C),P=a()(g,v,C,m,o,i,`${m}-${s}`,`${m}-${_||l}`,{[`${m}-rtl`]:"rtl"===I}),y=(0,r.useMemo)(()=>(0,S.Z)(T,["title","children","status","text"]),[T]),D=(0,r.useMemo)(()=>({prefixCls:m,description:c,icon:E,type:s}),[m,c,E,s]),M=r.createElement("div",{className:`${m}-body`},r.createElement(h,Object.assign({},D)));return"badge"in e&&(M=r.createElement(O.Z,Object.assign({},y),M)),"tooltip"in e&&(M=r.createElement(N.Z,{title:u,placement:"rtl"===I?"right":"left"},M)),L(e.href?r.createElement("a",Object.assign({ref:t},R,{className:P}),M):r.createElement("button",Object.assign({ref:t},R,{className:P,type:"button"}),M))});var G=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let F=r.forwardRef((e,t)=>{let{prefixCls:n,className:i,type:u="default",shape:T="circle",visibilityHeight:A=400,icon:S=r.createElement(o.Z,null),target:O,onClick:p,duration:N=450}=e,I=G(e,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),[h,_]=(0,r.useState)(0===A),m=r.useRef(null);r.useImperativeHandle(t,()=>({nativeElement:m.current}));let C=()=>{var e;return(null===(e=m.current)||void 0===e?void 0:e.ownerDocument)||window},L=R(e=>{let t=(0,E.Z)(e.target);_(t>=A)});(0,r.useEffect)(()=>{let e=O||C,t=e();return L({target:t}),null==t||t.addEventListener("scroll",L),()=>{L.cancel(),null==t||t.removeEventListener("scroll",L)}},[O]);let g=e=>{(0,c.Z)(0,{getContainer:O||C,duration:N}),null==p||p(e)},{getPrefixCls:v}=(0,r.useContext)(d.E_),P=v(x,n),y=v(),D=(0,r.useContext)(f),M=Object.assign({prefixCls:P,icon:S,type:u,shape:D||T},I);return r.createElement(s.ZP,{visible:h,motionName:`${y}-fade`},(e,t)=>{let{className:n}=e;return r.createElement(w,Object.assign({ref:(0,l.sQ)(m,t)},M,{onClick:g,className:a()(i,n)}))})});var H=n(97937),B=n(56790),Y=n(21770),k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},V=(0,r.memo)(e=>{var t;let{prefixCls:n,className:o,style:i,shape:l="circle",type:E="default",icon:c=r.createElement(I.Z,null),closeIcon:u,description:T,trigger:R,children:f,onOpenChange:S,open:O,onClick:N}=e,h=k(e,["prefixCls","className","style","shape","type","icon","closeIcon","description","trigger","children","onOpenChange","open","onClick"]),{direction:_,getPrefixCls:m,floatButtonGroup:C}=(0,r.useContext)(d.E_),L=null!==(t=null!=u?u:null==C?void 0:C.closeIcon)&&void 0!==t?t:r.createElement(H.Z,null),g=m(x,n),v=(0,p.Z)(g),[P,y,D]=b(g,v),M=`${g}-group`,U=a()(M,y,D,v,o,{[`${M}-rtl`]:"rtl"===_,[`${M}-${l}`]:l,[`${M}-${l}-shadow`]:!R}),G=a()(y,`${M}-wrap`),[F,V]=(0,Y.Z)(!1,{value:O}),$=r.useRef(null),W="hover"===R,Z="click"===R,j=(0,B.zX)(e=>{F!==e&&(V(e),null==S||S(e))});return r.useEffect(()=>{if(Z){let e=e=>{var t;null!==(t=$.current)&&void 0!==t&&t.contains(e.target)||j(!1)};return document.addEventListener("click",e,{capture:!0}),()=>{document.removeEventListener("click",e,{capture:!0})}}},[Z]),P(r.createElement(A,{value:l},r.createElement("div",{ref:$,className:U,style:i,onMouseEnter:()=>{W&&j(!0)},onMouseLeave:()=>{W&&j(!1)}},R&&["click","hover"].includes(R)?r.createElement(r.Fragment,null,r.createElement(s.ZP,{visible:F,motionName:`${M}-wrap`},e=>{let{className:t}=e;return r.createElement("div",{className:a()(t,G)},f)}),r.createElement(w,Object.assign({type:E,icon:F?L:c,description:T,"aria-label":e["aria-label"],className:`${M}-trigger`,onClick:e=>{Z&&j(!F),null==N||N(e)}},h))):f)))}),$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let W=e=>{var{backTop:t}=e,n=$(e,["backTop"]);return t?r.createElement(F,Object.assign({},n,{visibilityHeight:0})):r.createElement(w,Object.assign({},n))};w.BackTop=F,w.Group=V,w._InternalPanelDoNotUseOrYouWillBeFired=e=>{var{className:t,items:n}=e,o=$(e,["className","items"]);let{prefixCls:i}=o,{getPrefixCls:s}=r.useContext(d.E_),l=s(x,i),E=`${l}-pure`;return n?r.createElement(V,Object.assign({className:a()(t,E)},o),n.map((e,t)=>r.createElement(W,Object.assign({key:t},e)))):r.createElement(W,Object.assign({className:a()(t,E)},o))};var Z=w},65223:function(e,t,n){"use strict";n.d(t,{RV:function(){return l},Rk:function(){return E},Ux:function(){return u},aM:function(){return c},pg:function(){return T},q3:function(){return a},qI:function(){return s}});var r=n(67294),o=n(88692),i=n(98423);let a=r.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),s=r.createContext(null),l=e=>{let t=(0,i.Z)(e,["prefixCls"]);return r.createElement(o.RV,Object.assign({},t))},E=r.createContext({prefixCls:""}),c=r.createContext({}),u=e=>{let{children:t,status:n,override:o}=e,i=(0,r.useContext)(c),a=(0,r.useMemo)(()=>{let e=Object.assign({},i);return o&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[n,o,i]);return r.createElement(c.Provider,{value:a},t)},T=(0,r.createContext)(void 0)},37920:function(e,t,n){"use strict";var r=n(67294);t.Z=(0,r.createContext)(void 0)},25378:function(e,t,n){"use strict";var r=n(67294),o=n(8410),i=n(57838),a=n(74443);t.Z=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,r.useRef)({}),n=(0,i.Z)(),s=(0,a.ZP)();return(0,o.Z)(()=>{let r=s.subscribe(r=>{t.current=r,e&&n()});return()=>s.unsubscribe(r)},[]),t.current}},76745:function(e,t,n){"use strict";var r=n(67294);let o=(0,r.createContext)(void 0);t.Z=o},24457:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(62906),o=n(29494),i=o.Z,a=n(42115);let s="${label} is not a valid ${type}",l={locale:"en",Pagination:r.Z,DatePicker:o.Z,TimePicker:a.Z,Calendar:i,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:s,method:s,array:s,object:s,number:s,date:s,boolean:s,integer:s,float:s,regexp:s,email:s,url:s,hex:s},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};var E=l},10110:function(e,t,n){"use strict";var r=n(67294),o=n(76745),i=n(24457);t.Z=(e,t)=>{let n=r.useContext(o.Z),a=r.useMemo(()=>{var r;let o=t||i.Z[e],a=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),a||{})},[e,t,n]),s=r.useMemo(()=>{let e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?i.Z.locale:e},[n]);return[a,s]}},66277:function(e,t,n){"use strict";n.d(t,{CW:function(){return S}});var r=n(67294),o=n(89739),i=n(4340),a=n(21640),s=n(78860),l=n(50888),E=n(93967),c=n.n(E),u=n(42999),T=n(53124),R=n(35792),d=n(34792),f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let A={info:r.createElement(s.Z,null),success:r.createElement(o.Z,null),error:r.createElement(i.Z,null),warning:r.createElement(a.Z,null),loading:r.createElement(l.Z,null)},S=e=>{let{prefixCls:t,type:n,icon:o,children:i}=e;return r.createElement("div",{className:c()(`${t}-custom-content`,`${t}-${n}`)},o||A[n],r.createElement("span",null,i))};t.ZP=e=>{let{prefixCls:t,className:n,type:o,icon:i,content:a}=e,s=f(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=r.useContext(T.E_),E=t||l("message"),A=(0,R.Z)(E),[O,p,N]=(0,d.Z)(E,A);return O(r.createElement(u.qX,Object.assign({},s,{prefixCls:E,className:c()(n,p,`${E}-notice-pure-panel`,N,A),eventKey:"pure",duration:null,content:r.createElement(S,{prefixCls:E,type:o,icon:i},a)})))}},34792:function(e,t,n){"use strict";var r=n(25446),o=n(87263),i=n(14747),a=n(83559),s=n(83262);let l=e=>{let{componentCls:t,iconCls:n,boxShadow:o,colorText:a,colorSuccess:s,colorError:l,colorWarning:E,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:T,motionDurationSlow:R,marginXS:d,paddingXS:f,borderRadiusLG:A,zIndexPopup:S,contentPadding:O,contentBg:p}=e,N=`${t}-notice`,I=new r.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:f,transform:"translateY(0)",opacity:1}}),h=new r.E4("MessageMoveOut",{"0%":{maxHeight:e.height,padding:f,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),_={padding:f,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:d,fontSize:u},[`${N}-content`]:{display:"inline-block",padding:O,background:p,borderRadius:A,boxShadow:o,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:s},[`${t}-error > ${n}`]:{color:l},[`${t}-warning > ${n}`]:{color:E},[`${t}-info > ${n}, ${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},(0,i.Wf)(e)),{color:a,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:S,[`${t}-move-up`]:{animationFillMode:"forwards"},[` ${t}-move-up-appear, ${t}-move-up-enter @@ -68,16 +68,16 @@ 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),i);return E}},98719:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(8796);function o(e,t){return r.i.reduce((n,r)=>{let o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}},83559:function(e,t,n){"use strict";n.d(t,{A1:function(){return c},I$:function(){return E},bk:function(){return u}});var r=n(67294),o=n(83262),i=n(53124),a=n(14747),s=n(25976),l=n(53269);let{genStyleHooks:E,genComponentStyleHook:c,genSubStyleComponent:u}=(0,o.rb)({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,r.useContext)(i.E_),n=e();return{rootPrefixCls:n,iconPrefixCls:t}},useToken:()=>{let[e,t,n,r,o]=(0,s.ZP)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{let{csp:e,iconPrefixCls:t}=(0,r.useContext)(i.E_);return(0,l.Z)(t,e),null!=e?e:{}},getResetStyles:e=>[{"&":(0,a.Lx)(e)}],getCommonStyle:a.du,getCompUnitless:()=>s.NJ})},53269:function(e,t,n){"use strict";var r=n(25446),o=n(14747),i=n(25976);t.Z=(e,t)=>{let[n,a]=(0,i.ZP)();return(0,r.xy)({theme:n,token:a,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},(0,o.Ro)()),{[`.${e} .${e}-icon`]:{display:"block"}})}])}},42115:function(e,t){"use strict";t.Z={placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},83062:function(e,t,n){"use strict";n.d(t,{Z:function(){return M}});var r=n(67294),o=n(93967),i=n.n(o),a=n(92419),s=n(21770),l=n(89942),E=n(87263),c=n(33603),u=n(80636),T=n(96159),R=n(27288),d=n(43945),f=n(53124),A=n(25976),S=n(25446),O=n(14747),p=n(50438),N=n(97414),I=n(79511),h=n(98719),_=n(83262),m=n(83559);let C=e=>{let{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:E,paddingXS:c}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,O.Wf)(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:"var(--valid-offset-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${(0,S.bf)(e.calc(E).div(2).equal())} ${(0,S.bf)(c)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:l,boxSizing:"border-box"},"&-placement-left,&-placement-leftTop,&-placement-leftBottom,&-placement-right,&-placement-rightTop,&-placement-rightBottom":{[`${t}-inner`]:{borderRadius:e.min(i,N.qN)}},[`${t}-content`]:{position:"relative"}}),(0,h.Z)(e,(e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}})),{"&-rtl":{direction:"rtl"}})},(0,N.ZP)(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},L=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},(0,N.wZ)({contentRadius:e.borderRadius,limitVerticalRadius:!0})),(0,I.w)((0,_.IX)(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var g=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=(0,m.I$)("Tooltip",e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=(0,_.IX)(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[C(o),(0,p._y)(e,"zoom-big-fast")]},L,{resetStyle:!1,injectStyle:t});return n(e)},v=n(98787);function P(e,t){let n=(0,v.o2)(t),r=i()({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}var y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let D=r.forwardRef((e,t)=>{var n,o;let{prefixCls:S,openClassName:O,getTooltipContainer:p,overlayClassName:N,color:I,overlayInnerStyle:h,children:_,afterOpenChange:m,afterVisibleChange:C,destroyTooltipOnHide:L,arrow:v=!0,title:D,overlay:M,builtinPlacements:b,arrowPointAtCenter:U=!1,autoAdjustOverflow:x=!0}=e,w=!!v,[,G]=(0,A.ZP)(),{getPopupContainer:F,getPrefixCls:H,direction:B}=r.useContext(f.E_),Y=(0,R.ln)("Tooltip"),k=r.useRef(null),V=()=>{var e;null===(e=k.current)||void 0===e||e.forceAlign()};r.useImperativeHandle(t,()=>{var e;return{forceAlign:V,forcePopupAlign:()=>{Y.deprecated(!1,"forcePopupAlign","forceAlign"),V()},nativeElement:null===(e=k.current)||void 0===e?void 0:e.nativeElement}});let[$,W]=(0,s.Z)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),Z=!D&&!M&&0!==D,j=r.useMemo(()=>{var e,t;let n=U;return"object"==typeof v&&(n=null!==(t=null!==(e=v.pointAtCenter)&&void 0!==e?e:v.arrowPointAtCenter)&&void 0!==t?t:U),b||(0,u.Z)({arrowPointAtCenter:n,autoAdjustOverflow:x,arrowWidth:w?G.sizePopupArrow:0,borderRadius:G.borderRadius,offset:G.marginXXS,visibleFirst:!0})},[U,v,b,G]),X=r.useMemo(()=>0===D?D:M||D||"",[M,D]),K=r.createElement(l.Z,{space:!0},"function"==typeof X?X():X),{getPopupContainer:z,placement:J="top",mouseEnterDelay:q=.1,mouseLeaveDelay:Q=.1,overlayStyle:ee,rootClassName:et}=e,en=y(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),er=H("tooltip",S),eo=H(),ei=e["data-popover-inject"],ea=$;"open"in e||"visible"in e||!Z||(ea=!1);let es=r.isValidElement(_)&&!(0,T.M2)(_)?_:r.createElement("span",null,_),el=es.props,eE=el.className&&"string"!=typeof el.className?el.className:i()(el.className,O||`${er}-open`),[ec,eu,eT]=g(er,!ei),eR=P(er,I),ed=eR.arrowStyle,ef=Object.assign(Object.assign({},h),eR.overlayStyle),eA=i()(N,{[`${er}-rtl`]:"rtl"===B},eR.className,et,eu,eT),[eS,eO]=(0,E.Cn)("Tooltip",en.zIndex),ep=r.createElement(a.Z,Object.assign({},en,{zIndex:eS,showArrow:w,placement:J,mouseEnterDelay:q,mouseLeaveDelay:Q,prefixCls:er,overlayClassName:eA,overlayStyle:Object.assign(Object.assign({},ed),ee),getTooltipContainer:z||p||F,ref:k,builtinPlacements:j,overlay:K,visible:ea,onVisibleChange:t=>{var n,r;W(!Z&&t),Z||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=m?m:C,overlayInnerStyle:ef,arrowContent:r.createElement("span",{className:`${er}-arrow-content`}),motion:{motionName:(0,c.m)(eo,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!L}),ea?(0,T.Tm)(es,{className:eE}):es);return ec(r.createElement(d.Z.Provider,{value:eO},ep))});D._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,className:n,placement:o="top",title:s,color:l,overlayInnerStyle:E}=e,{getPrefixCls:c}=r.useContext(f.E_),u=c("tooltip",t),[T,R,d]=g(u),A=P(u,l),S=A.arrowStyle,O=Object.assign(Object.assign({},E),A.overlayStyle),p=i()(R,d,u,`${u}-pure`,`${u}-placement-${o}`,n,A.className);return T(r.createElement("div",{className:p,style:S},r.createElement("div",{className:`${u}-arrow`}),r.createElement(a.G,Object.assign({},e,{className:R,prefixCls:u,overlayInnerStyle:O}),s)))};var M=D},16569:function(e,t,n){"use strict";n.d(t,{H:function(){return s}});var r=n(67294),o=n(56790);function i(){}let a=r.createContext({add:i,remove:i});function s(e){let t=r.useContext(a),n=r.useRef(),i=(0,o.zX)(r=>{if(r){let o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)});return i}},1028:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(25633));t.default=o.default},80037:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(5584));t.default=o.default},25633:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(61434)),i=r(n(52040));let a={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},o.default),timePickerLocale:Object.assign({},i.default)};t.default=a},5584:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(53457)),i=r(n(15704));let a={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},o.default),timePickerLocale:Object.assign({},i.default)};a.lang.ok="确定",t.default=a},18253:function(e,t,n){"use strict";var r=n(64836).default;t.Z=void 0;var o=r(n(62273)),i=r(n(1028)),a=r(n(25633)),s=r(n(52040));let l="${label} is not a valid ${type}",E={locale:"en",Pagination:o.default,DatePicker:a.default,TimePicker:s.default,Calendar:i.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};t.Z=E},82925:function(e,t,n){"use strict";var r=n(64836).default;t.Z=void 0;var o=r(n(74219)),i=r(n(80037)),a=r(n(5584)),s=r(n(15704));let l="${label}不是一个有效的${type}",E={locale:"zh-cn",Pagination:o.default,DatePicker:a.default,TimePicker:s.default,Calendar:i.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};t.Z=E},52040:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},15704:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]}},61401:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commonLocale=void 0,t.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}},61434:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(42122)),i=n(61401),a=(0,o.default)((0,o.default)({},i.commonLocale),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});t.default=a},53457:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(42122)),i=n(61401),a=(0,o.default)((0,o.default)({},i.commonLocale),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});t.default=a},79742:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,i=l(e),a=i[0],s=i[1],E=new o((a+s)*3/4-s),c=0,u=s>0?a-4:a;for(n=0;n>16&255,E[c++]=t>>8&255,E[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,E[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,E[c++]=t>>8&255,E[c++]=255&t),E},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=0,s=r-o;a>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return i.join("")}(e,a,a+16383>s?s:a+16383));return 1===o?i.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===o&&i.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},48764:function(e,t,n){"use strict";/*! + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),i);return E}},98719:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(8796);function o(e,t){return r.i.reduce((n,r)=>{let o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}},83559:function(e,t,n){"use strict";n.d(t,{A1:function(){return c},I$:function(){return E},bk:function(){return u}});var r=n(67294),o=n(83262),i=n(53124),a=n(14747),s=n(25976),l=n(53269);let{genStyleHooks:E,genComponentStyleHook:c,genSubStyleComponent:u}=(0,o.rb)({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,r.useContext)(i.E_),n=e();return{rootPrefixCls:n,iconPrefixCls:t}},useToken:()=>{let[e,t,n,r,o]=(0,s.ZP)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{let{csp:e,iconPrefixCls:t}=(0,r.useContext)(i.E_);return(0,l.Z)(t,e),null!=e?e:{}},getResetStyles:e=>[{"&":(0,a.Lx)(e)}],getCommonStyle:a.du,getCompUnitless:()=>s.NJ})},53269:function(e,t,n){"use strict";var r=n(25446),o=n(14747),i=n(25976);t.Z=(e,t)=>{let[n,a]=(0,i.ZP)();return(0,r.xy)({theme:n,token:a,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},(0,o.Ro)()),{[`.${e} .${e}-icon`]:{display:"block"}})}])}},42115:function(e,t){"use strict";t.Z={placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},83062:function(e,t,n){"use strict";n.d(t,{Z:function(){return M}});var r=n(67294),o=n(93967),i=n.n(o),a=n(92419),s=n(21770),l=n(89942),E=n(87263),c=n(33603),u=n(80636),T=n(96159),R=n(27288),d=n(43945),f=n(53124),A=n(25976),S=n(25446),O=n(14747),p=n(50438),N=n(97414),I=n(79511),h=n(98719),_=n(83262),m=n(83559);let C=e=>{let{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:E,paddingXS:c}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,O.Wf)(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:"var(--valid-offset-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${(0,S.bf)(e.calc(E).div(2).equal())} ${(0,S.bf)(c)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:l,boxSizing:"border-box"},"&-placement-left,&-placement-leftTop,&-placement-leftBottom,&-placement-right,&-placement-rightTop,&-placement-rightBottom":{[`${t}-inner`]:{borderRadius:e.min(i,N.qN)}},[`${t}-content`]:{position:"relative"}}),(0,h.Z)(e,(e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}})),{"&-rtl":{direction:"rtl"}})},(0,N.ZP)(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},L=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},(0,N.wZ)({contentRadius:e.borderRadius,limitVerticalRadius:!0})),(0,I.w)((0,_.IX)(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var g=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=(0,m.I$)("Tooltip",e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=(0,_.IX)(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[C(o),(0,p._y)(e,"zoom-big-fast")]},L,{resetStyle:!1,injectStyle:t});return n(e)},v=n(98787);function P(e,t){let n=(0,v.o2)(t),r=i()({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}var y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let D=r.forwardRef((e,t)=>{var n,o;let{prefixCls:S,openClassName:O,getTooltipContainer:p,overlayClassName:N,color:I,overlayInnerStyle:h,children:_,afterOpenChange:m,afterVisibleChange:C,destroyTooltipOnHide:L,arrow:v=!0,title:D,overlay:M,builtinPlacements:b,arrowPointAtCenter:U=!1,autoAdjustOverflow:x=!0}=e,w=!!v,[,G]=(0,A.ZP)(),{getPopupContainer:F,getPrefixCls:H,direction:B}=r.useContext(f.E_),Y=(0,R.ln)("Tooltip"),k=r.useRef(null),V=()=>{var e;null===(e=k.current)||void 0===e||e.forceAlign()};r.useImperativeHandle(t,()=>{var e;return{forceAlign:V,forcePopupAlign:()=>{Y.deprecated(!1,"forcePopupAlign","forceAlign"),V()},nativeElement:null===(e=k.current)||void 0===e?void 0:e.nativeElement}});let[$,W]=(0,s.Z)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),Z=!D&&!M&&0!==D,j=r.useMemo(()=>{var e,t;let n=U;return"object"==typeof v&&(n=null!==(t=null!==(e=v.pointAtCenter)&&void 0!==e?e:v.arrowPointAtCenter)&&void 0!==t?t:U),b||(0,u.Z)({arrowPointAtCenter:n,autoAdjustOverflow:x,arrowWidth:w?G.sizePopupArrow:0,borderRadius:G.borderRadius,offset:G.marginXXS,visibleFirst:!0})},[U,v,b,G]),X=r.useMemo(()=>0===D?D:M||D||"",[M,D]),K=r.createElement(l.Z,{space:!0},"function"==typeof X?X():X),{getPopupContainer:z,placement:J="top",mouseEnterDelay:q=.1,mouseLeaveDelay:Q=.1,overlayStyle:ee,rootClassName:et}=e,en=y(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),er=H("tooltip",S),eo=H(),ei=e["data-popover-inject"],ea=$;"open"in e||"visible"in e||!Z||(ea=!1);let es=r.isValidElement(_)&&!(0,T.M2)(_)?_:r.createElement("span",null,_),el=es.props,eE=el.className&&"string"!=typeof el.className?el.className:i()(el.className,O||`${er}-open`),[ec,eu,eT]=g(er,!ei),eR=P(er,I),ed=eR.arrowStyle,ef=Object.assign(Object.assign({},h),eR.overlayStyle),eA=i()(N,{[`${er}-rtl`]:"rtl"===B},eR.className,et,eu,eT),[eS,eO]=(0,E.Cn)("Tooltip",en.zIndex),ep=r.createElement(a.Z,Object.assign({},en,{zIndex:eS,showArrow:w,placement:J,mouseEnterDelay:q,mouseLeaveDelay:Q,prefixCls:er,overlayClassName:eA,overlayStyle:Object.assign(Object.assign({},ed),ee),getTooltipContainer:z||p||F,ref:k,builtinPlacements:j,overlay:K,visible:ea,onVisibleChange:t=>{var n,r;W(!Z&&t),Z||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=m?m:C,overlayInnerStyle:ef,arrowContent:r.createElement("span",{className:`${er}-arrow-content`}),motion:{motionName:(0,c.m)(eo,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!L}),ea?(0,T.Tm)(es,{className:eE}):es);return ec(r.createElement(d.Z.Provider,{value:eO},ep))});D._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,className:n,placement:o="top",title:s,color:l,overlayInnerStyle:E}=e,{getPrefixCls:c}=r.useContext(f.E_),u=c("tooltip",t),[T,R,d]=g(u),A=P(u,l),S=A.arrowStyle,O=Object.assign(Object.assign({},E),A.overlayStyle),p=i()(R,d,u,`${u}-pure`,`${u}-placement-${o}`,n,A.className);return T(r.createElement("div",{className:p,style:S},r.createElement("div",{className:`${u}-arrow`}),r.createElement(a.G,Object.assign({},e,{className:R,prefixCls:u,overlayInnerStyle:O}),s)))};var M=D},16569:function(e,t,n){"use strict";n.d(t,{H:function(){return s}});var r=n(67294),o=n(56790);function i(){}let a=r.createContext({add:i,remove:i});function s(e){let t=r.useContext(a),n=r.useRef(),i=(0,o.zX)(r=>{if(r){let o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)});return i}},1028:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(25633));t.default=o.default},80037:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(5584));t.default=o.default},25633:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(27590)),i=r(n(52040));let a={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},o.default),timePickerLocale:Object.assign({},i.default)};t.default=a},5584:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(85369)),i=r(n(15704));let a={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},o.default),timePickerLocale:Object.assign({},i.default)};a.lang.ok="确定",t.default=a},18253:function(e,t,n){"use strict";var r=n(64836).default;t.Z=void 0;var o=r(n(62273)),i=r(n(1028)),a=r(n(25633)),s=r(n(52040));let l="${label} is not a valid ${type}",E={locale:"en",Pagination:o.default,DatePicker:a.default,TimePicker:s.default,Calendar:i.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};t.Z=E},82925:function(e,t,n){"use strict";var r=n(64836).default;t.Z=void 0;var o=r(n(74219)),i=r(n(80037)),a=r(n(5584)),s=r(n(15704));let l="${label}不是一个有效的${type}",E={locale:"zh-cn",Pagination:o.default,DatePicker:a.default,TimePicker:s.default,Calendar:i.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};t.Z=E},52040:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},15704:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]}},79742:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,i=l(e),a=i[0],s=i[1],E=new o((a+s)*3/4-s),c=0,u=s>0?a-4:a;for(n=0;n>16&255,E[c++]=t>>8&255,E[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,E[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,E[c++]=t>>8&255,E[c++]=255&t),E},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=0,s=r-o;a>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return i.join("")}(e,a,a+16383>s?s:a+16383));return 1===o?i.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===o&&i.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},48764:function(e,t,n){"use strict";/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */let r=n(79742),o=n(80645),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);let n=0|d(e,t),r=a(n),o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(G(e,Uint8Array)){let t=new Uint8Array(e);return T(t.buffer,t.byteOffset,t.byteLength)}return u(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(G(e,ArrayBuffer)||e&&G(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(G(e,SharedArrayBuffer)||e&&G(e.buffer,SharedArrayBuffer)))return T(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);let o=function(e){var t;if(s.isBuffer(e)){let t=0|R(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):u(e):"Buffer"===e.type&&Array.isArray(e.data)?u(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function E(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return E(e),a(e<0?0:0|R(e))}function u(e){let t=e.length<0?0:0|R(e.length),n=a(t);for(let r=0;r=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function d(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||G(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return x(e).length;default:if(o)return r?-1:U(e).length;t=(""+t).toLowerCase(),o=!0}}function f(e,t,n){let o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let o="";for(let r=t;r2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(i=n=+n)!=i&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return -1;n=e.length-1}else if(n<0){if(!o)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:O(e,t,n,r,o);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):O(e,[t],n,r,o);throw TypeError("val must be string, number or Buffer")}function O(e,t,n,r,o){let i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,n/=2}function E(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let r=-1;for(i=n;is&&(n=s-l),i=n;i>=0;i--){let n=!0;for(let r=0;r239?4:t>223?3:t>191?2:1;if(o+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(i=t);break;case 2:(192&(n=e[o+1]))==128&&(l=(31&t)<<6|63&n)>127&&(i=l);break;case 3:n=e[o+1],r=e[o+2],(192&n)==128&&(192&r)==128&&(l=(15&t)<<12|(63&n)<<6|63&r)>2047&&(l<55296||l>57343)&&(i=l);break;case 4:n=e[o+1],r=e[o+2],s=e[o+3],(192&n)==128&&(192&r)==128&&(192&s)==128&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s)>65535&&l<1114112&&(i=l)}}null===i?(i=65533,a=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=a}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rn)throw RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,o,i){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw RangeError("Index out of range")}function h(e,t,n,r,o){y(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function _(e,t,n,r,o){y(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function m(e,t,n,r,o,i){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function C(e,t,n,r,i){return t=+t,n>>>=0,i||m(e,t,n,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,i){return t=+t,n>>>=0,i||m(e,t,n,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,n,r,52,8),n+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(E(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(G(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),G(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let o=0,i=Math.min(n,r);or.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,o)):Uint8Array.prototype.set.call(r,t,o);else if(s.isBuffer(t))t.copy(r,o);else throw TypeError('"list" argument must be an Array of Buffers');o+=t.length}return r},s.byteLength=d,s.prototype._isBuffer=!0,s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},i&&(s.prototype[i]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,o){if(G(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;let i=o-r,a=n-t,l=Math.min(i,a),E=this.slice(r,o),c=e.slice(t,n);for(let e=0;e>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let T=this.length-t;if((void 0===n||n>T)&&(n=T),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let R=!1;for(;;)switch(r){case"hex":return function(e,t,n,r){let o;n=Number(n)||0;let i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;let a=t.length;for(r>a/2&&(r=a/2),o=0;o>8,o.push(n%256),o.push(r);return o}(e,this.length-c),this,c,u);default:if(R)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),R=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){let n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e],o=1,i=0;for(;++i>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e+--t],o=1;for(;t>0&&(o*=256);)r+=this[e+--t]*o;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=H(function(e){D(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&M(e,this.length-8);let r=t+256*this[++e]+65536*this[++e]+16777216*this[++e],o=this[++e]+256*this[++e]+65536*this[++e]+16777216*n;return BigInt(r)+(BigInt(o)<>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&M(e,this.length-8);let r=16777216*t+65536*this[++e]+256*this[++e]+this[++e],o=16777216*this[++e]+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e],o=1,i=0;for(;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=t,o=1,i=this[e+--r];for(;r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return(e>>>=0,t||N(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||N(e,2,this.length);let n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||N(e,2,this.length);let n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=H(function(e){D(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&M(e,this.length-8);let r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&M(e,this.length-8);let r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||N(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||N(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||N(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||N(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=Math.pow(2,8*n)-1;I(this,e,t,n,r,0)}let o=1,i=0;for(this[t]=255&e;++i>>=0,n>>>=0,!r){let r=Math.pow(2,8*n)-1;I(this,e,t,n,r,0)}let o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=H(function(e,t=0){return h(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=H(function(e,t=0){return _(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}let o=0,i=1,a=0;for(this[t]=255&e;++o>0)-a&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}let o=n-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=H(function(e,t=0){return h(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=H(function(e,t=0){return _(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,n){return C(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return C(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function y(e,t,n,r,o,i){if(e>n||e3?0===t||t===BigInt(0)?`>= 0${o} and < 2${o} ** ${(i+1)*8}${o}`:`>= -(2${o} ** ${(i+1)*8-1}${o}) and < 2 ** ${(i+1)*8-1}${o}`:`>= ${t}${o} and <= ${n}${o}`,new g.ERR_OUT_OF_RANGE("value",r,e)}D(o,"offset"),(void 0===r[o]||void 0===r[o+i])&&M(o,r.length-(i+1))}function D(e,t){if("number"!=typeof e)throw new g.ERR_INVALID_ARG_TYPE(t,"number",e)}function M(e,t,n){if(Math.floor(e)!==e)throw D(e,n),new g.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new g.ERR_BUFFER_OUT_OF_BOUNDS;throw new g.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}v("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),v("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),v("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>4294967296?o=P(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=P(o)),o+="n"),r+=` It must be ${t}. Received ${o}`},RangeError);let b=/[^+/0-9A-Za-z-_]/g;function U(e,t){let n;t=t||1/0;let r=e.length,o=null,i=[];for(let a=0;a55295&&n<57344){if(!o){if(n>56319||a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return i}function x(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(b,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function w(e,t,n,r){let o;for(o=0;o=t.length)&&!(o>=e.length);++o)t[o+n]=e[o];return o}function G(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let F=function(){let e="0123456789abcdef",t=Array(256);for(let n=0;n<16;++n){let r=16*n;for(let o=0;o<16;++o)t[r+o]=e[n]+e[o]}return t}();function H(e){return"undefined"==typeof BigInt?B:e}function B(){throw Error("BigInt not supported")}},80645:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<>1,c=-7,u=n?o-1:0,T=n?-1:1,R=e[t+u];for(u+=T,i=R&(1<<-c)-1,R>>=-c,c+=s;c>0;i=256*i+e[t+u],u+=T,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[t+u],u+=T,c-=8);if(0===i)i=1-E;else{if(i===l)return a?NaN:(R?-1:1)*(1/0);a+=Math.pow(2,r),i-=E}return(R?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,l,E=8*i-o-1,c=(1<>1,T=23===o?5960464477539062e-23:0,R=r?0:i-1,d=r?1:-1,f=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+u>=1?t+=T/l:t+=T*Math.pow(2,1-u),t*l>=2&&(a++,l/=2),a+u>=c?(s=0,a=c):a+u>=1?(s=(t*l-1)*Math.pow(2,o),a+=u):(s=t*Math.pow(2,u-1)*Math.pow(2,o),a=0));o>=8;e[n+R]=255&s,R+=d,s/=256,o-=8);for(a=a<0;e[n+R]=255&a,R+=d,a/=256,E-=8);e[n+R-d]|=128*f}},62705:function(e,t,n){var r=n(55639).Symbol;e.exports=r},44239:function(e,t,n){var r=n(62705),o=n(89607),i=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},27561:function(e,t,n){var r=n(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},31957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},89607:function(e,t,n){var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},23279:function(e,t,n){var r=n(13218),o=n(7771),i=n(14841),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,E,c,u,T,R,d=0,f=!1,A=!1,S=!0;if("function"!=typeof e)throw TypeError("Expected a function");function O(t){var n=l,r=E;return l=E=void 0,d=t,u=e.apply(r,n)}function p(e){var n=e-R,r=e-d;return void 0===R||n>=t||n<0||A&&r>=c}function N(){var e,n,r,i=o();if(p(i))return I(i);T=setTimeout(N,(e=i-R,n=i-d,r=t-e,A?s(r,c-n):r))}function I(e){return(T=void 0,S&&l)?O(e):(l=E=void 0,u)}function h(){var e,n=o(),r=p(n);if(l=arguments,E=this,R=n,r){if(void 0===T)return d=e=R,T=setTimeout(N,t),f?O(e):u;if(A)return clearTimeout(T),T=setTimeout(N,t),O(R)}return void 0===T&&(T=setTimeout(N,t)),u}return t=i(t)||0,r(n)&&(f=!!n.leading,c=(A="maxWait"in n)?a(i(n.maxWait)||0,t):c,S="trailing"in n?!!n.trailing:S),h.cancel=function(){void 0!==T&&clearTimeout(T),d=0,l=R=E=T=void 0},h.flush=function(){return void 0===T?u:I(o())},h}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},23493:function(e,t,n){var r=n(23279),o=n(13218);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},14841:function(e,t,n){var r=n(27561),o=n(13218),i=n(33448),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,E=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||E.test(e)?c(e.slice(2),n?2:8):s.test(e)?a:+e}},83839:function(e,t,n){!function(e){e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return(12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t)?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(30381))},30381:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";function t(){return B.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function i(e){var t;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(t in e)if(o(e,t))return!1;return!0}function a(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function E(e,t){var n,r=[],o=e.length;for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null,k=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)o(e,t)&&n.push(t);return n};var y=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,D=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,M={},b={};function U(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(b[e]=o),t&&(b[t[0]]=function(){return P(o.apply(this,arguments),t[1],t[2])}),n&&(b[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function x(e,t){return e.isValid()?(M[t=w(t,e.localeData())]=M[t]||function(e){var t,n,r,o=e.match(y);for(n=0,r=o.length;n=0&&D.test(e);)e=e.replace(D,r),D.lastIndex=0,n-=1;return e}var G={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function F(e){return"string"==typeof e?G[e]||G[e.toLowerCase()]:void 0}function H(e){var t,n,r={};for(n in e)o(e,n)&&(t=F(n))&&(r[t]=e[n]);return r}var B,Y,k,V,$={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},W=/\d/,Z=/\d\d/,j=/\d{3}/,X=/\d{4}/,K=/[+-]?\d{6}/,z=/\d\d?/,J=/\d\d\d\d?/,q=/\d\d\d\d\d\d?/,Q=/\d{1,3}/,ee=/\d{1,4}/,et=/[+-]?\d{1,6}/,en=/\d+/,er=/[+-]?\d+/,eo=/Z|[+-]\d\d:?\d\d/gi,ei=/Z|[+-]\d\d(?::?\d\d)?/gi,ea=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,es=/^[1-9]\d?/,el=/^([1-9]\d|\d)/;function eE(e,t,n){V[e]=L(t)?t:function(e,r){return e&&n?n:t}}function ec(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function eu(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function eT(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=eu(t)),n}V={};var eR={};function ed(e,t){var n,r,o=t;for("string"==typeof e&&(e=[e]),s(t)&&(o=function(e,n){n[t]=eT(e)}),r=e.length,n=0;n68?1900:2e3)};var eO=ep("FullYear",!0);function ep(e,n){return function(r){return null!=r?(eI(this,e,r),t.updateOffset(this,n),this):eN(this,e)}}function eN(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function eI(e,t,n){var r,o,i,a;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=e.month(),a=29!==(a=e.date())||1!==i||eA(n)?a:28,o?r.setUTCFullYear(n,i,a):r.setFullYear(n,i,a)}}function eh(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%12+12)%12;return e+=(t-n)/12,1===n?eA(e)?29:28:31-n%7%2}ek=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0?isFinite((s=new Date(e+400,t,n,r,o,i,a)).getFullYear())&&s.setFullYear(e):s=new Date(e,t,n,r,o,i,a),s}function ey(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,isFinite((t=new Date(Date.UTC.apply(null,n))).getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function eD(e,t,n){var r=7+t-n;return-((7+ey(e,0,r).getUTCDay()-t)%7)+r-1}function eM(e,t,n,r,o){var i,a,s=1+7*(t-1)+(7+n-r)%7+eD(e,r,o);return s<=0?a=eS(i=e-1)+s:s>eS(e)?(i=e+1,a=s-eS(e)):(i=e,a=s),{year:i,dayOfYear:a}}function eb(e,t,n){var r,o,i=eD(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?r=a+eU(o=e.year()-1,t,n):a>eU(e.year(),t,n)?(r=a-eU(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function eU(e,t,n){var r=eD(e,t,n),o=eD(e+1,t,n);return(eS(e)-r+o)/7}function ex(e,t){return e.slice(t,7).concat(e.slice(0,t))}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),eE("w",z,es),eE("ww",z,Z),eE("W",z,es),eE("WW",z,Z),ef(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=eT(e)}),U("d",0,"do","day"),U("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),U("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),U("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),eE("d",z),eE("e",z),eE("E",z),eE("dd",function(e,t){return t.weekdaysMinRegex(e)}),eE("ddd",function(e,t){return t.weekdaysShortRegex(e)}),eE("dddd",function(e,t){return t.weekdaysRegex(e)}),ef(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:T(n).invalidWeekday=e}),ef(["d","e","E"],function(e,t,n,r){t[r]=eT(e)});var ew="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function eG(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(r=0,this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[];r<7;++r)i=u([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=ek.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=ek.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=ek.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=ek.call(this._weekdaysParse,a))||-1!==(o=ek.call(this._shortWeekdaysParse,a))?o:-1!==(o=ek.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=ek.call(this._shortWeekdaysParse,a))||-1!==(o=ek.call(this._weekdaysParse,a))?o:-1!==(o=ek.call(this._minWeekdaysParse,a))?o:null:-1!==(o=ek.call(this._minWeekdaysParse,a))||-1!==(o=ek.call(this._weekdaysParse,a))?o:-1!==(o=ek.call(this._shortWeekdaysParse,a))?o:null}function eF(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],l=[],E=[];for(t=0;t<7;t++)n=u([2e3,1]).day(t),r=ec(this.weekdaysMin(n,"")),o=ec(this.weekdaysShort(n,"")),i=ec(this.weekdays(n,"")),a.push(r),s.push(o),l.push(i),E.push(r),E.push(o),E.push(i);a.sort(e),s.sort(e),l.sort(e),E.sort(e),this._weekdaysRegex=RegExp("^("+E.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+a.join("|")+")","i")}function eH(){return this.hours()%12||12}function eB(e,t){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function eY(e,t){return t._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,eH),U("k",["kk",2],0,function(){return this.hours()||24}),U("hmm",0,0,function(){return""+eH.apply(this)+P(this.minutes(),2)}),U("hmmss",0,0,function(){return""+eH.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+P(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)}),eB("a",!0),eB("A",!1),eE("a",eY),eE("A",eY),eE("H",z,el),eE("h",z,es),eE("k",z,es),eE("HH",z,Z),eE("hh",z,Z),eE("kk",z,Z),eE("hmm",J),eE("hmmss",q),eE("Hmm",J),eE("Hmmss",q),ed(["H","HH"],3),ed(["k","kk"],function(e,t,n){var r=eT(e);t[3]=24===r?0:r}),ed(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ed(["h","hh"],function(e,t,n){t[3]=eT(e),T(n).bigHour=!0}),ed("hmm",function(e,t,n){var r=e.length-2;t[3]=eT(e.substr(0,r)),t[4]=eT(e.substr(r)),T(n).bigHour=!0}),ed("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=eT(e.substr(0,r)),t[4]=eT(e.substr(r,2)),t[5]=eT(e.substr(o)),T(n).bigHour=!0}),ed("Hmm",function(e,t,n){var r=e.length-2;t[3]=eT(e.substr(0,r)),t[4]=eT(e.substr(r))}),ed("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=eT(e.substr(0,r)),t[4]=eT(e.substr(r,2)),t[5]=eT(e.substr(o))});var ek,eV,e$=ep("Hours",!0),eW={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:e_,week:{dow:0,doy:6},weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysShort:ew,meridiemParse:/[ap]\.?m?\.?/i},eZ={},ej={};function eX(e){return e?e.toLowerCase().replace("_","-"):e}function eK(t){var n=null;if(void 0===eZ[t]&&e&&e.exports&&t&&t.match("^[^/\\\\]*$"))try{n=eV._abbr,function(){var e=Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}(),ez(n)}catch(e){eZ[t]=null}return eZ[t]}function ez(e,t){var n;return e&&((n=a(t)?eq(e):eJ(e,t))?eV=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),eV._abbr}function eJ(e,t){if(null===t)return delete eZ[e],null;var n,r=eW;if(t.abbr=e,null!=eZ[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=eZ[e]._config;else if(null!=t.parentLocale){if(null!=eZ[t.parentLocale])r=eZ[t.parentLocale]._config;else{if(null==(n=eK(t.parentLocale)))return ej[t.parentLocale]||(ej[t.parentLocale]=[]),ej[t.parentLocale].push({name:e,config:t}),null;r=n._config}}return eZ[e]=new v(g(r,t)),ej[e]&&ej[e].forEach(function(e){eJ(e.name,e.config)}),ez(e),eZ[e]}function eq(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return eV;if(!n(e)){if(t=eK(e))return t;e=[e]}return function(e){for(var t,n,r,o,i=0;i0;){if(r=eK(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&function(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n=t-1)break;t--}i++}return eV}(e)}function eQ(e){var t,n=e._a;return n&&-2===T(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>eh(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,T(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),T(e)._overflowWeeks&&-1===t&&(t=7),T(e)._overflowWeekday&&-1===t&&(t=8),T(e).overflow=t),e}var e0=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e1=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e2=/Z|[+-]\d\d(?::?\d\d)?/,e4=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],e6=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],e3=/^\/?Date\((-?\d+)/i,e8=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,e5={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function e7(e){var t,n,r,o,i,a,s=e._i,l=e0.exec(s)||e1.exec(s),E=e4.length,c=e6.length;if(l){for(t=0,T(e).iso=!0,n=E;t7)&&(E=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,c=eb(ti(),a,s),r=te(n.gg,e._a[0],c.year),o=te(n.w,c.week),null!=n.d?((i=n.d)<0||i>6)&&(E=!0):null!=n.e?(i=n.e+a,(n.e<0||n.e>6)&&(E=!0)):i=a),o<1||o>eU(r,a,s)?T(e)._overflowWeeks=!0:null!=E?T(e)._overflowWeekday=!0:(l=eM(r,o,i,a,s),e._a[0]=l.year,e._dayOfYear=l.dayOfYear)),null!=e._dayOfYear&&(S=te(e._a[0],f[0]),(e._dayOfYear>eS(S)||0===e._dayOfYear)&&(T(e)._overflowDayOfYear=!0),d=ey(S,0,e._dayOfYear),e._a[1]=d.getUTCMonth(),e._a[2]=d.getUTCDate()),R=0;R<3&&null==e._a[R];++R)e._a[R]=O[R]=f[R];for(;R<7;R++)e._a[R]=O[R]=null==e._a[R]?2===R?1:0:e._a[R];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?ey:eP).apply(null,O),A=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==A&&(T(e).weekdayMismatch=!0)}}function tn(e){if(e._f===t.ISO_8601){e7(e);return}if(e._f===t.RFC_2822){e9(e);return}e._a=[],T(e).empty=!0;var n,r,i,a,s,l,E,c,u,R,d,f=""+e._i,A=f.length,S=0;for(s=0,d=(E=w(e._f,e._locale).match(y)||[]).length;s0&&T(e).unusedInput.push(u),f=f.slice(f.indexOf(l)+l.length),S+=l.length),b[c])?(l?T(e).empty=!1:T(e).unusedTokens.push(c),null!=l&&o(eR,c)&&eR[c](l,e._a,e,c)):e._strict&&!l&&T(e).unusedTokens.push(c);T(e).charsLeftOver=A-S,f.length>0&&T(e).unusedInput.push(f),e._a[3]<=12&&!0===T(e).bigHour&&e._a[3]>0&&(T(e).bigHour=void 0),T(e).parsedDateParts=e._a.slice(0),T(e).meridiem=e._meridiem,e._a[3]=(n=e._locale,r=e._a[3],null==(i=e._meridiem)?r:null!=n.meridiemHour?n.meridiemHour(r,i):(null!=n.isPM&&((a=n.isPM(i))&&r<12&&(r+=12),a||12!==r||(r=0)),r)),null!==(R=T(e).era)&&(e._a[0]=e._locale.erasConvertYear(R,e._a[0])),tt(e),eQ(e)}function tr(e){var o,i=e._i,u=e._f;return(e._locale=e._locale||eq(e._l),null===i||void 0===u&&""===i)?d({nullInput:!0}):("string"==typeof i&&(e._i=i=e._locale.preparse(i)),I(i))?new N(eQ(i)):(l(i)?e._d=i:n(u)?function(e){var t,n,r,o,i,a,s=!1,l=e._f.length;if(0===l){T(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;othis?this:e:d()});function tl(e,t){var r,o;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return ti();for(o=1,r=t[0];o=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function tU(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function tx(e,t){return t.erasAbbrRegex(e)}function tw(){var e,t,n,r,o,i=[],a=[],s=[],l=[],E=this.eras();for(e=0,t=E.length;e(i=eU(e,r,o))&&(t=i),tH.call(this,e,t,n,r,o))}function tH(e,t,n,r,o){var i=eM(e,t,n,r,o),a=ey(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}U("N",0,0,"eraAbbr"),U("NN",0,0,"eraAbbr"),U("NNN",0,0,"eraAbbr"),U("NNNN",0,0,"eraName"),U("NNNNN",0,0,"eraNarrow"),U("y",["y",1],"yo","eraYear"),U("y",["yy",2],0,"eraYear"),U("y",["yyy",3],0,"eraYear"),U("y",["yyyy",4],0,"eraYear"),eE("N",tx),eE("NN",tx),eE("NNN",tx),eE("NNNN",function(e,t){return t.erasNameRegex(e)}),eE("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),ed(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?T(n).era=o:T(n).invalidEra=e}),eE("y",en),eE("yy",en),eE("yyy",en),eE("yyyy",en),eE("yo",function(e,t){return t._eraYearOrdinalRegex||en}),ed(["y","yy","yyy","yyyy"],0),ed(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,o):t[0]=parseInt(e,10)}),U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tG("gggg","weekYear"),tG("ggggg","weekYear"),tG("GGGG","isoWeekYear"),tG("GGGGG","isoWeekYear"),eE("G",er),eE("g",er),eE("GG",z,Z),eE("gg",z,Z),eE("GGGG",ee,X),eE("gggg",ee,X),eE("GGGGG",et,K),eE("ggggg",et,K),ef(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=eT(e)}),ef(["gg","GG"],function(e,n,r,o){n[o]=t.parseTwoDigitYear(e)}),U("Q",0,"Qo","quarter"),eE("Q",W),ed("Q",function(e,t){t[1]=(eT(e)-1)*3}),U("D",["DD",2],"Do","date"),eE("D",z,es),eE("DD",z,Z),eE("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ed(["D","DD"],2),ed("Do",function(e,t){t[2]=eT(e.match(z)[0])});var tB=ep("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),eE("DDD",Q),eE("DDDD",j),ed(["DDD","DDDD"],function(e,t,n){n._dayOfYear=eT(e)}),U("m",["mm",2],0,"minute"),eE("m",z,el),eE("mm",z,Z),ed(["m","mm"],4);var tY=ep("Minutes",!1);U("s",["ss",2],0,"second"),eE("s",z,el),eE("ss",z,Z),ed(["s","ss"],5);var tk=ep("Seconds",!1);for(U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),eE("S",Q,W),eE("SS",Q,Z),eE("SSS",Q,j),f="SSSS";f.length<=9;f+="S")eE(f,en);function tV(e,t){t[6]=eT(("0."+e)*1e3)}for(f="S";f.length<=9;f+="S")ed(f,tV);A=ep("Milliseconds",!1),U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var t$=N.prototype;function tW(e){return e}t$.add=tL,t$.calendar=function(e,a){if(1==arguments.length){if(arguments[0]){var E,c,u;(E=arguments[0],I(E)||l(E)||tv(E)||s(E)||(c=n(E),u=!1,c&&(u=0===E.filter(function(e){return!s(e)&&tv(E)}).length),c&&u)||function(e){var t,n,a=r(e)&&!i(e),s=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],E=l.length;for(t=0;tn.valueOf():n.valueOf()n.year()||n.year()>9999?x(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):L(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+6e4*this.utcOffset()).toISOString().replace("Z",x(n,"Z")):x(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},t$.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+r+'("]',t=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",n=o+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(t$[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),t$.toJSON=function(){return this.isValid()?this.toISOString():null},t$.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},t$.unix=function(){return Math.floor(this.valueOf()/1e3)},t$.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},t$.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},t$.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;eMath.abs(e)&&!r&&(e*=60);return!this._isUTC&&n&&(o=tS(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),i===e||(!n||this._changeInProgress?tC(this,tI(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this},t$.utc=function(e){return this.utcOffset(0,e)},t$.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(tS(this),"m")),this},t$.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=tf(eo,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},t$.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?ti(e).utcOffset():0,(this.utcOffset()-e)%60==0)},t$.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},t$.isLocal=function(){return!!this.isValid()&&!this._isUTC},t$.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},t$.isUtc=tO,t$.isUTC=tO,t$.zoneAbbr=function(){return this._isUTC?"UTC":""},t$.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},t$.dates=_("dates accessor is deprecated. Use date instead.",tB),t$.months=_("months accessor is deprecated. Use month instead",eg),t$.years=_("years accessor is deprecated. Use year instead",eO),t$.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),t$.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e,t={};return p(t,this),(t=tr(t))._a?(e=t._isUTC?u(t._a):ti(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r0):this._isDSTShifted=!1,this._isDSTShifted});var tZ=v.prototype;function tj(e,t,n,r){var o=eq(),i=u().set(r,t);return o[n](i,e)}function tX(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return tj(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=tj(e,r,n,"month");return o}function tK(e,t,n,r){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var o,i=eq(),a=e?i._week.dow:0,l=[];if(null!=n)return tj(t,(n+a)%7,r,"day");for(o=0;o<7;o++)l[o]=tj(t,(o+a)%7,r,"day");return l}tZ.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return L(r)?r.call(t,n):r},tZ.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(y).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},tZ.invalidDate=function(){return this._invalidDate},tZ.ordinal=function(e){return this._ordinal.replace("%d",e)},tZ.preparse=tW,tZ.postformat=tW,tZ.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return L(o)?o(e,t,n,r):o.replace(/%d/i,e)},tZ.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return L(n)?n(t):n.replace(/%s/i,t)},tZ.set=function(e){var t,n;for(n in e)o(e,n)&&(L(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},tZ.eras=function(e,n){var r,o,i,a=this._eras||eq("en")._eras;for(r=0,o=a.length;r=0)return l[r]},tZ.erasConvertYear=function(e,n){var r=e.since<=e.until?1:-1;return void 0===n?t(e.since).year():t(e.since).year()+(n-e.offset)*r},tZ.erasAbbrRegex=function(e){return o(this,"_erasAbbrRegex")||tw.call(this),e?this._erasAbbrRegex:this._erasRegex},tZ.erasNameRegex=function(e){return o(this,"_erasNameRegex")||tw.call(this),e?this._erasNameRegex:this._erasRegex},tZ.erasNarrowRegex=function(e){return o(this,"_erasNarrowRegex")||tw.call(this),e?this._erasNarrowRegex:this._erasRegex},tZ.months=function(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||em).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone},tZ.monthsShort=function(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[em.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},tZ.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return eC.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if(o=u([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e)||n&&"MMM"===t&&this._shortMonthsParse[r].test(e)||!n&&this._monthsParse[r].test(e))return r},tZ.monthsRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||ev.call(this),e)?this._monthsStrictRegex:this._monthsRegex:(o(this,"_monthsRegex")||(this._monthsRegex=ea),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},tZ.monthsShortRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||ev.call(this),e)?this._monthsShortStrictRegex:this._monthsShortRegex:(o(this,"_monthsShortRegex")||(this._monthsShortRegex=ea),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},tZ.week=function(e){return eb(e,this._week.dow,this._week.doy).week},tZ.firstDayOfYear=function(){return this._week.doy},tZ.firstDayOfWeek=function(){return this._week.dow},tZ.weekdays=function(e,t){var r=n(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?ex(r,this._week.dow):e?r[e.day()]:r},tZ.weekdaysMin=function(e){return!0===e?ex(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},tZ.weekdaysShort=function(e){return!0===e?ex(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},tZ.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return eG.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=u([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e)||n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},tZ.weekdaysRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||eF.call(this),e)?this._weekdaysStrictRegex:this._weekdaysRegex:(o(this,"_weekdaysRegex")||(this._weekdaysRegex=ea),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},tZ.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||eF.call(this),e)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ea),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},tZ.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||eF.call(this),e)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ea),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},tZ.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},tZ.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ez("en",{eras:[{since:"0001-01-01",until:Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===eT(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),t.lang=_("moment.lang is deprecated. Use moment.locale instead.",ez),t.langData=_("moment.langData is deprecated. Use moment.localeData instead.",eq);var tz=Math.abs;function tJ(e,t,n,r){var o=tI(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function tq(e){return e<0?Math.floor(e):Math.ceil(e)}function tQ(e){return 4800*e/146097}function t0(e){return 146097*e/4800}function t1(e){return function(){return this.as(e)}}var t2=t1("ms"),t4=t1("s"),t6=t1("m"),t3=t1("h"),t8=t1("d"),t5=t1("w"),t7=t1("M"),t9=t1("Q"),ne=t1("y");function nt(e){return function(){return this.isValid()?this._data[e]:NaN}}var nn=nt("milliseconds"),nr=nt("seconds"),no=nt("minutes"),ni=nt("hours"),na=nt("days"),ns=nt("months"),nl=nt("years"),nE=Math.round,nc={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function nu(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var nT=Math.abs;function nR(e){return(e>0)-(e<0)||+e}function nd(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,i,a,s,l=nT(this._milliseconds)/1e3,E=nT(this._days),c=nT(this._months),u=this.asSeconds();return u?(e=eu(l/60),t=eu(e/60),l%=60,e%=60,n=eu(c/12),c%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",o=u<0?"-":"",i=nR(this._months)!==nR(u)?"-":"",a=nR(this._days)!==nR(u)?"-":"",s=nR(this._milliseconds)!==nR(u)?"-":"",o+"P"+(n?i+n+"Y":"")+(c?i+c+"M":"")+(E?a+E+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var nf=tc.prototype;return nf.isValid=function(){return this._isValid},nf.abs=function(){var e=this._data;return this._milliseconds=tz(this._milliseconds),this._days=tz(this._days),this._months=tz(this._months),e.milliseconds=tz(e.milliseconds),e.seconds=tz(e.seconds),e.minutes=tz(e.minutes),e.hours=tz(e.hours),e.months=tz(e.months),e.years=tz(e.years),this},nf.add=function(e,t){return tJ(this,e,t,1)},nf.subtract=function(e,t){return tJ(this,e,t,-1)},nf.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=F(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+tQ(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(t0(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw Error("Unknown unit "+e)}},nf.asMilliseconds=t2,nf.asSeconds=t4,nf.asMinutes=t6,nf.asHours=t3,nf.asDays=t8,nf.asWeeks=t5,nf.asMonths=t7,nf.asQuarters=t9,nf.asYears=ne,nf.valueOf=t2,nf._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*tq(t0(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=eu(i/1e3),l.seconds=e%60,t=eu(e/60),l.minutes=t%60,n=eu(t/60),l.hours=n%24,a+=eu(n/24),s+=o=eu(tQ(a)),a-=tq(t0(o)),r=eu(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},nf.clone=function(){return tI(this)},nf.get=function(e){return e=F(e),this.isValid()?this[e+"s"]():NaN},nf.milliseconds=nn,nf.seconds=nr,nf.minutes=no,nf.hours=ni,nf.days=na,nf.weeks=function(){return eu(this.days()/7)},nf.months=ns,nf.years=nl,nf.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o,i,a,s,l,E,c,u,T,R,d,f=!1,A=nc;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(f=e),"object"==typeof t&&(A=Object.assign({},nc,t),null!=t.s&&null==t.ss&&(A.ss=t.s-1)),R=this.localeData(),n=!f,r=A,i=nE((o=tI(this).abs()).as("s")),a=nE(o.as("m")),s=nE(o.as("h")),l=nE(o.as("d")),E=nE(o.as("M")),c=nE(o.as("w")),u=nE(o.as("y")),T=i<=r.ss&&["s",i]||i0,T[4]=R,d=nu.apply(null,T),f&&(d=R.pastFuture(+this,d)),R.postformat(d)},nf.toISOString=nd,nf.toString=nd,nf.toJSON=nd,nf.locale=ty,nf.localeData=tM,nf.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nd),nf.lang=tD,U("X",0,0,"unix"),U("x",0,0,"valueOf"),eE("x",er),eE("X",/[+-]?\d+(\.\d{1,3})?/),ed("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),ed("x",function(e,t,n){n._d=new Date(eT(e))}),//! moment.js -t.version="2.30.1",B=ti,t.fn=t$,t.min=function(){var e=[].slice.call(arguments,0);return tl("isBefore",e)},t.max=function(){var e=[].slice.call(arguments,0);return tl("isAfter",e)},t.now=function(){return Date.now?Date.now():+new Date},t.utc=u,t.unix=function(e){return ti(1e3*e)},t.months=function(e,t){return tX(e,t,"months")},t.isDate=l,t.locale=ez,t.invalid=d,t.duration=tI,t.isMoment=I,t.weekdays=function(e,t,n){return tK(e,t,n,"weekdays")},t.parseZone=function(){return ti.apply(null,arguments).parseZone()},t.localeData=eq,t.isDuration=tu,t.monthsShort=function(e,t){return tX(e,t,"monthsShort")},t.weekdaysMin=function(e,t,n){return tK(e,t,n,"weekdaysMin")},t.defineLocale=eJ,t.updateLocale=function(e,t){if(null!=t){var n,r,o=eW;null!=eZ[e]&&null!=eZ[e].parentLocale?eZ[e].set(g(eZ[e]._config,t)):(null!=(r=eK(e))&&(o=r._config),t=g(o,t),null==r&&(t.abbr=e),(n=new v(t)).parentLocale=eZ[e],eZ[e]=n),ez(e)}else null!=eZ[e]&&(null!=eZ[e].parentLocale?(eZ[e]=eZ[e].parentLocale,e===ez()&&ez(e)):null!=eZ[e]&&delete eZ[e]);return eZ[e]},t.locales=function(){return k(eZ)},t.weekdaysShort=function(e,t,n){return tK(e,t,n,"weekdaysShort")},t.normalizeUnits=F,t.relativeTimeRounding=function(e){return void 0===e?nE:"function"==typeof e&&(nE=e,!0)},t.relativeTimeThreshold=function(e,t){return void 0!==nc[e]&&(void 0===t?nc[e]:(nc[e]=t,"s"===e&&(nc.ss=t-1),!0))},t.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},t.prototype=t$,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t}()},69654:function(e){var t;t=function(){function e(t,n,r){return this.id=++e.highestId,this.name=t,this.symbols=n,this.postprocess=r,this}function t(e,t,n,r){this.rule=e,this.dot=t,this.reference=n,this.data=[],this.wantedBy=r,this.isComplete=this.dot===e.symbols.length}function n(e,t){this.grammar=e,this.index=t,this.states=[],this.wants={},this.scannable=[],this.completed={}}function r(e,t){this.rules=e,this.start=t||this.rules[0].name;var n=this.byName={};this.rules.forEach(function(e){n.hasOwnProperty(e.name)||(n[e.name]=[]),n[e.name].push(e)})}function o(){this.reset("")}function i(e,t,i){if(e instanceof r)var a=e,i=t;else var a=r.fromCompiled(e,t);for(var s in this.grammar=a,this.options={keepHistory:!1,lexer:a.lexer||new o},i||{})this.options[s]=i[s];this.lexer=this.options.lexer,this.lexerState=void 0;var l=new n(a,0);this.table=[l],l.wants[a.start]=[],l.predict(a.start),l.process(),this.current=0}function a(e){var t=typeof e;if("string"===t)return e;if("object"===t){if(e.literal)return JSON.stringify(e.literal);if(e instanceof RegExp)return e.toString();if(e.type)return"%"+e.type;if(e.test)return"<"+String(e.test)+">";else throw Error("Unknown symbol type: "+e)}}return e.highestId=0,e.prototype.toString=function(e){var t=void 0===e?this.symbols.map(a).join(" "):this.symbols.slice(0,e).map(a).join(" ")+" ● "+this.symbols.slice(e).map(a).join(" ");return this.name+" → "+t},t.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},t.prototype.nextState=function(e){var n=new t(this.rule,this.dot+1,this.reference,this.wantedBy);return n.left=this,n.right=e,n.isComplete&&(n.data=n.build(),n.right=void 0),n},t.prototype.build=function(){var e=[],t=this;do e.push(t.right.data),t=t.left;while(t.left);return e.reverse(),e},t.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,i.fail))},n.prototype.process=function(e){for(var t=this.states,n=this.wants,r=this.completed,o=0;o0&&t.push(" ^ "+r+" more lines identical to this"),r=0,t.push(" "+a)),n=a}},i.prototype.getSymbolDisplay=function(e){return function(e){var t=typeof e;if("string"===t)return e;if("object"===t){if(e.literal)return JSON.stringify(e.literal);if(e instanceof RegExp)return"character matching "+e;if(e.type)return e.type+" token";if(e.test)return"token matching "+String(e.test);else throw Error("Unknown symbol type: "+e)}}(e)},i.prototype.buildFirstStateStack=function(e,t){if(-1!==t.indexOf(e))return null;if(0===e.wantedBy.length)return[e];var n=e.wantedBy[0],r=[e].concat(t),o=this.buildFirstStateStack(n,r);return null===o?null:[e].concat(o)},i.prototype.save=function(){var e=this.table[this.current];return e.lexerState=this.lexerState,e},i.prototype.restore=function(e){var t=e.index;this.current=t,this.table[t]=e,this.table.splice(t+1),this.lexerState=e.lexerState,this.results=this.finish()},i.prototype.rewind=function(e){if(!this.options.keepHistory)throw Error("set option `keepHistory` to enable rewinding");this.restore(this.table[e])},i.prototype.finish=function(){var e=[],t=this.grammar.start;return this.table[this.table.length-1].states.forEach(function(n){n.rule.name===t&&n.dot===n.rule.symbols.length&&0===n.reference&&n.data!==i.fail&&e.push(n)}),e.map(function(e){return e.data})},{Parser:i,Grammar:r,Rule:e}},e.exports?e.exports=t():this.nearley=t()},83454:function(e,t,n){"use strict";var r,o;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(o=n.g.process)?void 0:o.env)?n.g.process:n(77663)},6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(26466)}])},41468:function(e,t,n){"use strict";n.d(t,{R:function(){return u},p:function(){return c}});var r=n(85893),o=n(76212),i=n(62418),a=n(25519),s=n(65654),l=n(39332),E=n(67294);let c=(0,E.createContext)({mode:"light",scene:"",chatId:"",model:"",modelList:[],dbParam:void 0,dialogueList:[],agent:"",setAgent:()=>{},setModel:()=>{},setIsContract:()=>{},setIsMenuExpand:()=>{},setDbParam:()=>void 0,setMode:()=>void 0,history:[],setHistory:()=>{},docId:void 0,setDocId:()=>{},currentDialogInfo:{chat_scene:"",app_code:""},setCurrentDialogInfo:()=>{},adminList:[],refreshDialogList:()=>{}}),u=e=>{var t,n,u;let{children:T}=e,R=(0,l.useSearchParams)(),d=null!==(t=null==R?void 0:R.get("id"))&&void 0!==t?t:"",f=null!==(n=null==R?void 0:R.get("scene"))&&void 0!==n?n:"",A=null!==(u=null==R?void 0:R.get("db_param"))&&void 0!==u?u:"",[S,O]=(0,E.useState)(!1),[p,N]=(0,E.useState)(""),[I,h]=(0,E.useState)("chat_dashboard"!==f),[_,m]=(0,E.useState)(A),[C,L]=(0,E.useState)(""),[g,v]=(0,E.useState)([]),[P,y]=(0,E.useState)(),[D,M]=(0,E.useState)("light"),[b,U]=(0,E.useState)([]),[x,w]=(0,E.useState)({chat_scene:"",app_code:""}),{data:G=[]}=(0,s.Z)(async()=>{let[,e]=await (0,o.Vx)((0,o.Vw)());return null!=e?e:[]}),{run:F}=(0,s.Z)(async()=>{let[,e]=await (0,o.Vx)((0,o.WA)({role:"admin"}));return null!=e?e:[]},{onSuccess:e=>{U(e)},manual:!0});return(0,E.useEffect)(()=>{(0,i.n5)()&&F()},[F,(0,i.n5)()]),(0,E.useEffect)(()=>{M(function(){let e=localStorage.getItem(a.he);return e||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")}());try{let e=JSON.parse(localStorage.getItem("cur_dialog_info")||"");w(e)}catch(e){w({chat_scene:"",app_code:""})}},[]),(0,E.useEffect)(()=>{N(G[0])},[G,null==G?void 0:G.length]),(0,r.jsx)(c.Provider,{value:{isContract:S,isMenuExpand:I,scene:f,chatId:d,model:p,modelList:G,dbParam:_||A,agent:C,setAgent:L,mode:D,setMode:M,setModel:N,setIsContract:O,setIsMenuExpand:h,setDbParam:m,history:g,setHistory:v,docId:P,setDocId:y,currentDialogInfo:x,setCurrentDialogInfo:w,adminList:b},children:T})}},64371:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(36609),o=n(67421);r.ZP.use(o.Db).init({resources:{en:{translation:{chat_online:"chat Online",dialog_list:"Dialog List",delete_chat:"Delete Chat",delete_chat_confirm:"Are you sure you want to delete this chat?",input_tips:"Ask me anything, Shift + Enter newline",sent:"Sent",answer_again:"Answer again",feedback_tip:"Describe specific questions or better answers",thinking:"Thinking",stop_replying:"Stop replying",erase_memory:"Erase Memory",copy_nothing:"Content copied is empty",copy_success:"Copy success",copy_failed:"Copy failed",file_tip:"File cannot be changed after upload",assistant:"Platform Assistant",model_tip:"Model selection is not supported for the current application",temperature_tip:"The current application does not support temperature configuration",extend_tip:"Extended configuration is not supported for the current application",Upload_Data_Successfully:"file uploaded successfully",Upload_Data_Failed:"file upload failed",Upload_Data:"Upload Data",Code_Editor:"Code Editor",Open_Code_Editor:"Open Code Editor",Export_Flow_Success:"Export flow success",Import_Flow_Success:"Import flow success",Import:"Import",Export:"Export",Import_Flow:"Import Flow",Export_Flow:"Export Flow",Select_File:"Select File",Save_After_Import:"Save after import",Export_File_Type:"File_Type",Export_File_Format:"File_Format",Yes:"Yes",No:"No",Please_Add_Nodes_First:"Please add nodes first",Add_Global_Variable_of_Flow:"Add global variable of flow",Add_Parameter:"Add Parameter",Higher_Order_Nodes:"Higher Order",All_Nodes:"All",Import_From_Template:"Import from template",Template_Description:"Description",Template_Name:"Template Name",Template_Label:"Label",Template_Action:"Action",Knowledge_Space:"Knowledge",space:"space",Vector:"Vector",Owner:"Owner",Count:"Count",File_type_Invalid:"The file type is invalid",Knowledge_Space_Config:"Space Config",Choose_a_Datasource_type:"Datasource type",Segmentation:"Segmentation",No_parameter:"No segementation parameter required.",Knowledge_Space_Name:"Knowledge Space Name",Please_input_the_name:"Please input the name",Please_input_the_owner:"Please input the owner",Please_select_file:"Please select one file",Description:"Description",Storage:"Storage",Domain:"Domain",Please_input_the_description:"Please input the description",Please_select_the_storage:"Please select the storage",Please_select_the_domain_type:"Please select the domain type",Next:"Next",the_name_can_only_contain:'the name can only contain numbers, letters, Chinese characters, "-" and "_"',Text:"Text","Fill your raw text":"Fill your raw text",URL:"URL",Fetch_the_content_of_a_URL:"Fetch the content of a URL",Document:"Document",Upload_a_document:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown, Zip",Name:"Name",Text_Source:"Text Source(Optional)",Please_input_the_text_source:"Please input the text source",Sync:"Sync",Back:"Back",Finish:"Finish",Web_Page_URL:"Web Page URL",Please_input_the_Web_Page_URL:"Please input the Web Page URL",Select_or_Drop_file:"Select or Drop file",Documents:"Documents",Chat:"Chat",Add_Datasource:"Add Datasource",View_Graph:"View Graph",Arguments:"Arguments",Type:"Type",Size:"Size",Last_Sync:"Last Sync",Status:"Status",Result:"Result",Details:"Details",Delete:"Delete",Operation:"Operation",Submit:"Submit",Chunks:"Chunks",Content:"Content",Meta_Data:"Meta Data",Please_select_a_file:"Please select a file",Please_input_the_text:"Please input the text",Embedding:"Embedding",topk:"topk",the_top_k_vectors:"the top k vectors based on similarity score",recall_score:"recall_score",Set_a_threshold_score:"Set a threshold score for the retrieval of similar vectors",recall_type:"recall_type",model:"model",A_model_used:"A model used to create vector representations of text or other data",Automatic:"Automatic",Process:"Process",Automatic_desc:"Automatically set segmentation and preprocessing rules.",chunk_size:"chunk_size",The_size_of_the_data_chunks:"The size of the data chunks used in processing",chunk_overlap:"chunk_overlap",The_amount_of_overlap:"The amount of overlap between adjacent data chunks",Prompt:"Prompt",scene:"scene",A_contextual_parameter:"A contextual parameter used to define the setting or environment in which the prompt is being used",template:"template",structure_or_format:"A pre-defined structure or format for the prompt, which can help ensure that the AI system generates responses that are consistent with the desired style or tone.",max_token:"max_token",max_iteration:"max_iteration",concurrency_limit:"concurrency_limit",The_maximum_number_of_tokens:"The maximum number of tokens or words allowed in a prompt",Theme:"Theme",Port:"Port",Username:"Username",Password:"Password",Remark:"Remark",Edit:"Edit",Database:"Database",Data_Source:"Data Center",Close_Sidebar:"Fold",Show_Sidebar:"UnFold",language:"Language",choose_model:"Please choose a model",data_center_desc:"DB-GPT also offers a user-friendly data center management interface for efficient data maintenance.",create_database:"Create Database",create_knowledge:"Create Knowledge",path:"Path",model_manage:"Models",stop_model_success:"Stop model success",create_model:"Create Model",model_select_tips:"Please select a model",language_select_tips:"Please select a language",submit:"Submit",close:"Close",start_model_success:"Start model success",download_model_tip:"Please download model first.",Plugins:"Plugins",try_again:"Try again",no_data:"No data",Open_Sidebar:"Unfold",verify:"Verify",cancel:"Cancel",Edit_Success:"Edit Success",Add:"Add",Add_Success:"Add Success",Error_Message:"Something Error",Please_Input:"Please Input",Prompt_Info_Scene:"Scene",Prompt_Info_Sub_Scene:"Sub Scene",Prompt_Info_Name:"Name",Prompt_Info_Content:"Content",Public:"Public",Private:"Private",Lowest:"Lowest",Missed:"Missed",Lost:"Lost",Incorrect:"Incorrect",Verbose:"Verbose",Best:"Best",Rating:"Rating",Q_A_Category:"Q&A Category",Q_A_Rating:"Q&A Rating",feed_back_desc:"0: No results\n1: Results exist, but they are irrelevant, the question is not understood\n2: Results exist, the question is understood, but it indicates that the question cannot be answered\n3: Results exist, the question is understood, and an answer is given, but the answer is incorrect\n4: Results exist, the question is understood, the answer is correct, but it is verbose and lacks a summary\n5: Results exist, the question is understood, the answer is correct, the reasoning is correct, and a summary is provided, concise and to the point\n",input_count:"Total input",input_unit:"characters",Click_Select:"Click&Select",Quick_Start:"Quick Start",Select_Plugins:"Select Plugins",Search:"Search",Update_From_Github:"Upload From Github",Reset:"Reset",Upload:"Upload",Market_Plugins:"Market Plugin",My_Plugins:"My Plugins",Del_Knowledge_Tips:"Do you want delete the Space",Del_Document_Tips:"Do you want delete the Document",Tips:"Tips",Limit_Upload_File_Count_Tips:"Only one file can be uploaded at a time",To_Plugin_Market:"Go to the Plugin Market",Summary:"Summary",stacked_column_chart:"Stacked Column",column_chart:"Column",percent_stacked_column_chart:"Percent Stacked Column",grouped_column_chart:"Grouped Column",time_column:"Time Column",pie_chart:"Pie",line_chart:"Line",area_chart:"Area",stacked_area_chart:"Stacked Area",scatter_plot:"Scatter",bubble_chart:"Bubble",stacked_bar_chart:"Stacked Bar",bar_chart:"Bar",percent_stacked_bar_chart:"Percent Stacked Bar",grouped_bar_chart:"Grouped Bar",water_fall_chart:"Waterfall",table:"Table",multi_line_chart:"Multi Line",multi_measure_column_chart:"Multi Measure Column",multi_measure_line_chart:"Multi Measure Line",Advices:"Advices",Retry:"Retry",Load_more:"load more",new_chat:"New Chat",choice_agent_tip:"Please choose an agent",no_context_tip:"Please enter your question",Terminal:"Terminal",used_apps:"Used Apps",app_in_mind:"Don't have an app in mind? to",explore:"Explore",Discover_more:"Discove more",sdk_insert:"SDK Insert",my_apps:"My Apps",awel_flow:"AWEL Flow",save:"Save",add_node:"Add Node",no_node:"No Node",connect_warning:"Nodes cannot be connected",flow_modal_title:"Save Flow",flow_name:"Flow Name",flow_description:"Flow Description",flow_name_required:"Please enter the flow name",flow_description_required:"Please enter the flow description",save_flow_success:"Save flow success",delete_flow_confirm:"Are you sure you want to delete this flow?",related_nodes:"Related Nodes",add_resource:"Add Resource",team_modal:"Work Modal",App:"App",resource_name:"Resource Name",resource_type:"Resource Type",resource_value:"Value",resource_dynamic:"Dynamic",Please_input_the_work_modal:"Please select the work modal",available_resources:" Available Resources",edit_new_applications:"Edit new applications",collect:"Collect",collected:"Collected",create:"Create",Agents:"Agents",edit_application:"edit application",add_application:"add application",app_name:"App Name",input_app_name:"Please enter the application name",LLM_strategy:"LLM Strategy",LLM_strategy_value:"LLM Strategy Value",please_select_LLM_strategy:"Please select LLM strategy",please_select_LLM_strategy_value:"Please select LLM strategy value",resource:"Resource",operators:"Operators",Chinese:"Chinese",English:"English",docs:"Docs",apps:"All Apps",please_enter_the_keywords:"Please enter the keywords",input_tip:"Please select the model and enter the description to start quickly",create_app:"Create App",copy_url:"Click the Copy Share link",double_click_open:"Double click on Nail nail to open",construct:" Construct App",chat_online:"Chat",recommend_apps:"Recommend",all_apps:"All",latest_apps:"Latest",my_collected_apps:"Collected",collect_success:"Collect success",cancel_success:"Cancel success",published:"Published",unpublished:"Unpublished",start_chat:"Chat",native_app:"Native app",temperature:"Temperature",create_flow:"Create flow",update:"Update",native_type:"App type",refreshSuccess:"Refresh Success",Download:"Download",app_type_select:"Please select app type",please_select_param:"Please select parameters",please_select_model:"Please select model",please_input_temperature:"Please input the temperature value",select_workflow:"Select workflow",please_select_workflow:"Please select workflow",recommended_questions:"Recommended questions",question:"Question",please_input_recommended_questions:"Please input recommendation question",is_effective:"Whether to enable",add_question:"Add question",update_success:"Update successful",update_failed:"Update failed",please_select_prompt:"Please select a prompt",details:"Details",choose:"Choose",please_choose:"Please choose",want_delete:"Are you sure delete it?",success:"Success",input_parameter:"Input parameter",output_structure:"Output structure",User_input:"User input",LLM_test:"LLM test",Output_verification:"Output verification",select_scene:"Please select a scene",select_type:"Please select a type",Please_complete_the_input_parameters:"Please complete the input parameters",Please_fill_in_the_user_input:"Please fill in the user input",help:"I can help you:",Refresh_status:"Refresh status",Recall_test:"Recall test",synchronization:"One-key synchronization",Synchronization_initiated:"Synchronization has been initiated, please wait",Edit_document:"Edit document",Document_name:"Document name",Correlation_problem:"Correlation problem",Add_problem:"Add problem",New_knowledge_base:"New knowledge base",yuque:"yuque document",Get_yuque_document:"Get the contents of the Sparrow document",document_url:"Document address",input_document_url:"Please enter the document address",Get_token:"Please obtain the team knowledge base token first",Reference_link:"Reference link",document_token:"Document token",input_document_token:"Please enter document token",input_question:"Please enter a question",detail:"Detail",Manual_entry:"Manual entry",Data_content:"Data content",Main_content:"Main content",Auxiliary_data:"Auxiliary data",enter_question_first:"Please enter the question first",Update_successfully:"Update successfully",Create_successfully:"Create successfully",Update_failure:"Update failure",Create_failure:"Create failure",View_details:"View details",All:"All",Please_input_prompt_name:"Please input prompt name",Copy_Btn:"Copy",Delete_Btn:"Delete",publish:"Publish",unpublish:"Unpublished",publish_desc:"Are you sure about releasing the application?",unPublish_desc:"Are you sure you want to unpublish this application?",published_success:"Published Success",dbgpts_community:"DBGPTS Community",community_dbgpts:"Community DBGPTS",my_dbgpts:"My DBGPTS",Refresh_dbgpts:"Refresh from the community Git repository",workflow:"Workflow",resources:"Resources",app:"App"}},zh:{translation:{dialog_list:"对话列表",delete_chat:"删除会话",delete_chat_confirm:"您确认要删除会话吗?",input_tips:"可以问我任何问题,shift + Enter 换行",sent:"发送",answer_again:"重新回答",feedback_tip:"描述一下具体问题或更优的答案",thinking:"正在思考中",stop_replying:"停止回复",erase_memory:"清除记忆",copy_success:"复制成功",copy_failed:"复制失败",copy_nothing:"内容复制为空",file_tip:"文件上传后无法更改",chat_online:"在线对话",assistant:"平台小助手",model_tip:"当前应用暂不支持模型选择",temperature_tip:"当前应用暂不支持温度配置",extend_tip:"当前应用暂不支持拓展配置",Upload_Data_Successfully:"文件上传成功",Upload_Data_Failed:"文件上传失败",Upload_Data:"上传数据",Code_Editor:"代码编辑器",Open_Code_Editor:"打开代码编辑器",Export_Flow_Success:"导出工作流成功",Import_Flow_Success:"导入工作流成功",Import:"导入",Export:"导出",Import_Flow:"导入工作流",Export_Flow:"导出工作流",Select_File:"选择文件",Save_After_Import:"导入后保存",Export_File_Type:"文件类型",Export_File_Format:"文件格式",Yes:"是",No:"否",Please_Add_Nodes_First:"请先添加节点",Add_Global_Variable_of_Flow:"添加 Flow 全局变量",Add_Parameter:"添加参数",Higher_Order_Nodes:"高阶",All_Nodes:"所有",Import_From_Template:"导入模版",Template_Description:"描述",Template_Name:"模版名称",Template_Label:"标签",Template_Action:"操作",Knowledge_Space:"知识库",space:"知识库",Vector:"向量",Owner:"创建人",Count:"文档数",File_type_Invalid:"文件类型错误",Knowledge_Space_Config:"知识库配置",Choose_a_Datasource_type:"知识库类型",Segmentation:"分片",No_parameter:"不需要配置分片参数",Knowledge_Space_Name:"知识库名称",Please_input_the_name:"请输入名称",Please_input_the_owner:"请输入创建人",Please_select_file:"请至少选择一个文件",Description:"描述",Storage:"存储类型",Domain:"领域类型",Please_input_the_description:"请输入描述",Please_select_the_storage:"请选择存储类型",Please_select_the_domain_type:"请选择领域类型",Next:"下一步",the_name_can_only_contain:"名称只能包含数字、字母、中文字符、-或_",Text:"文本","Fill your raw text":"填写您的原始文本",URL:"网址",Fetch_the_content_of_a_URL:"获取 URL 的内容",Document:"文档",Upload_a_document:"上传文档,文档类型可以是PDF、CSV、Text、PowerPoint、Word、Markdown、Zip",Name:"名称",Text_Source:"文本来源(可选)",Please_input_the_text_source:"请输入文本来源",Sync:"同步",Back:"上一步",Finish:"完成",Web_Page_URL:"网页网址",Please_input_the_Web_Page_URL:"请输入网页网址",Select_or_Drop_file:"选择或拖拽文件",Documents:"文档",Chat:"对话",Add_Datasource:"添加数据源",View_Graph:"查看图谱",Arguments:"参数",Type:"类型",Size:"切片",Last_Sync:"上次同步时间",Status:"状态",Result:"结果",Details:"明细",Delete:"删除",Operation:"操作",Submit:"提交",close:"关闭",Chunks:"切片",Content:"内容",Meta_Data:"元数据",Please_select_a_file:"请上传一个文件",Please_input_the_text:"请输入文本",Embedding:"嵌入",topk:"TopK",the_top_k_vectors:"基于相似度得分的前 k 个向量",recall_score:"召回分数",Set_a_threshold_score:"设置相似向量检索的阈值分数",recall_type:"召回类型",model:"模型",A_model_used:"用于创建文本或其他数据的矢量表示的模型",Automatic:"自动切片",Process:"切片处理",Automatic_desc:"自动设置分割和预处理规则。",chunk_size:"块大小",The_size_of_the_data_chunks:"处理中使用的数据块的大小",chunk_overlap:"块重叠",The_amount_of_overlap:"相邻数据块之间的重叠量",scene:"场景",A_contextual_parameter:"用于定义使用提示的设置或环境的上下文参数",template:"模板",structure_or_format:"预定义的提示结构或格式,有助于确保人工智能系统生成与所需风格或语气一致的响应。",max_token:"最大令牌",max_iteration:"最大迭代",concurrency_limit:"并发限制",The_maximum_number_of_tokens:"提示中允许的最大标记或单词数",Theme:"主题",Port:"端口",Username:"用户名",Password:"密码",Remark:"备注",Edit:"编辑",Database:"数据库",Data_Source:"数据中心",Close_Sidebar:"收起",Show_Sidebar:"展开",language:"语言",choose_model:"请选择一个模型",data_center_desc:"DB-GPT支持数据库交互和基于文档的对话,它还提供了一个用户友好的数据中心管理界面。",create_database:"创建数据库",create_knowledge:"创建知识库",create_flow:"创建工作流",path:"路径",model_manage:"模型管理",stop_model_success:"模型停止成功",create_model:"创建模型",model_select_tips:"请选择一个模型",submit:"提交",start_model_success:"启动模型成功",download_model_tip:"请先下载模型!",Plugins:"插件列表",try_again:"刷新重试",no_data:"暂无数据",Prompt:"提示词",Open_Sidebar:"展开",verify:"确认",cancel:"取消",Edit_Success:"编辑成功",Add:"新增",Add_Success:"新增成功",Error_Message:"出错了",Please_Input:"请输入",Prompt_Info_Scene:"场景",Prompt_Info_Sub_Scene:"次级场景",Prompt_Info_Name:"名称",Prompt_Info_Content:"内容",Public:"公共",Private:"私有",Lowest:"渣渣",Missed:"没理解",Lost:"答不了",Incorrect:"答错了",Verbose:"较啰嗦",Best:"真棒",Rating:"评分",Q_A_Category:"问答类别",Q_A_Rating:"问答评分",feed_back_desc:"0: 无结果\n1: 有结果,但是在文不对题,没有理解问题\n2: 有结果,理解了问题,但是提示回答不了这个问题\n3: 有结果,理解了问题,并做出回答,但是回答的结果错误\n4: 有结果,理解了问题,回答结果正确,但是比较啰嗦,缺乏总结\n5: 有结果,理解了问题,回答结果正确,推理正确,并给出了总结,言简意赅\n",input_count:"共计输入",input_unit:"字",Click_Select:"点击选择",Quick_Start:"快速开始",Select_Plugins:"选择插件",Search:"搜索",Reset:"重置",Update_From_Github:"更新Github插件",Upload:"上传",Market_Plugins:"插件市场",My_Plugins:"我的插件",Del_Knowledge_Tips:"你确定删除该知识库吗",Del_Document_Tips:"你确定删除该文档吗",Tips:"提示",Limit_Upload_File_Count_Tips:"一次只能上传一个文件",To_Plugin_Market:"前往插件市场",Summary:"总结",stacked_column_chart:"堆叠柱状图",column_chart:"柱状图",percent_stacked_column_chart:"百分比堆叠柱状图",grouped_column_chart:"簇形柱状图",time_column:"簇形柱状图",pie_chart:"饼图",line_chart:"折线图",area_chart:"面积图",stacked_area_chart:"堆叠面积图",scatter_plot:"散点图",bubble_chart:"气泡图",stacked_bar_chart:"堆叠条形图",bar_chart:"条形图",percent_stacked_bar_chart:"百分比堆叠条形图",grouped_bar_chart:"簇形条形图",water_fall_chart:"瀑布图",table:"表格",multi_line_chart:"多折线图",multi_measure_column_chart:"多指标柱形图",multi_measure_line_chart:"多指标折线图",Advices:"自动推荐",Retry:"重试",Load_more:"加载更多",new_chat:"创建会话",choice_agent_tip:"请选择代理",no_context_tip:"请输入你的问题",Terminal:"终端",used_apps:"最近使用",app_in_mind:"没有心仪的应用?去",explore:"探索广场",Discover_more:"发现更多",sdk_insert:"SDK接入",my_apps:"我的应用",awel_flow:"AWEL 工作流",save:"保存",add_node:"添加节点",no_node:"没有可编排节点",connect_warning:"节点无法连接",flow_modal_title:"保存工作流",flow_name:"工作流名称",flow_description:"工作流描述",flow_name_required:"请输入工作流名称",flow_description_required:"请输入工作流描述",save_flow_success:"保存工作流成功",delete_flow_confirm:"确定删除该工作流吗?",related_nodes:"关联节点",language_select_tips:"请选择语言",add_resource:"添加资源",team_modal:"工作模式",App:"应用程序",resource:"资源",resource_name:"资源名",resource_type:"资源类型",resource_value:"参数",resource_dynamic:"动态",Please_input_the_work_modal:"请选择工作模式",available_resources:"可用资源",edit_new_applications:"编辑新的应用",collect:"收藏",collected:"已收藏",create:"创建",Agents:"智能体",edit_application:"编辑应用",add_application:"添加应用",app_name:"应用名称",input_app_name:"请输入应用名称",LLM_strategy:"模型策略",please_select_LLM_strategy:"请选择模型策略",LLM_strategy_value:"模型策略参数",please_select_LLM_strategy_value:"请选择模型策略参数",operators:"算子",Chinese:"中文",English:"英文",docs:"文档",apps:"全部",please_enter_the_keywords:"请输入关键词",input_tip:"请选择模型,输入描述快速开始",create_app:"创建应用",copy_url:"单击复制分享链接",double_click_open:"双击钉钉打开",construct:"应用管理",chat_online:"在线对话",recommend_apps:"热门推荐",all_apps:"全部应用",latest_apps:"最新应用",my_collected_apps:"我的收藏",collect_success:"收藏成功",cancel_success:"取消成功",published:"已发布",unpublished:"未发布",start_chat:"开始对话",native_app:"原生应用",native_type:"应用类型",temperature:"温度",update:"更新",refreshSuccess:"刷新成功",Download:"下载",app_type_select:"请选择应用类型",please_select_param:"请选择参数",please_select_model:"请选择模型",please_input_temperature:"请输入temperature值",select_workflow:"选择工作流",please_select_workflow:"请选择工作流",recommended_questions:"推荐问题",question:"问题",please_input_recommended_questions:"请输入推荐问题",is_effective:"是否生效",add_question:"添加问题",update_success:"更新成功",update_failed:"更新失败",please_select_prompt:"请选择一个提示词",details:"详情",choose:"选择",please_choose:"请先选择",want_delete:"你确定要删除吗?",success:"成功",input_parameter:"输入参数",output_structure:"输出结构",User_input:"用户输入",LLM_test:"LLM测试",Output_verification:"输出验证",select_scene:"请选择场景",select_type:"请选择类型",Please_complete_the_input_parameters:"请填写完整的输入参数",Please_fill_in_the_user_input:"请填写用户输入内容",help:"我可以帮您:",Refresh_status:"刷新状态",Recall_test:"召回测试",synchronization:"一键同步",Synchronization_initiated:"同步已发起,请稍后",Edit_document:"编辑文档",Document_name:"文档名",Correlation_problem:"关联问题",Add_problem:"添加问题",New_knowledge_base:"新增知识库",yuque:"语雀文档",Get_yuque_document:"获取语雀文档的内容",document_url:"文档地址",input_document_url:"请输入文档地址",Get_token:"请先获取团队知识库token,token获取",Reference_link:"参考链接",document_token:"文档token",input_document_token:"请输入文档token",input_question:"请输入问题",detail:"详情",Manual_entry:"手动录入",Data_content:"数据内容",Main_content:"主要内容",Auxiliary_data:"辅助数据",enter_question_first:"请先输入问题",Update_successfully:"更新成功",Create_successfully:"创建成功",Update_failure:"更新失败",Create_failure:"创建失败",View_details:"查看详情",All:"全部",Please_input_prompt_name:"请输入prompt名称",Copy_Btn:"复制",Delete_Btn:"删除",publish:"发布",unpublish:"取消发布",publish_desc:"您确认发布该应用吗?",unPublish_desc:"您确认取消发布该应用吗?",published_success:"发布成功",dbgpts_community:"DBGPTS社区",community_dbgpts:"社区DBGPTS",my_dbgpts:"我的DBGPTS",Refresh_dbgpts:"从社区Git仓库刷新",workflow:"工作流",resources:"资源",app:"应用"}}},lng:"en",interpolation:{escapeValue:!1}});var i=r.ZP},89546:function(e,t,n){"use strict";n.d(t,{A:function(){return o},Ir:function(){return s},Jr:function(){return i},Ty:function(){return l},zx:function(){return a}});var r=n(76212);let o=e=>(0,r.HT)("/api/v1/question/list",e),i=()=>(0,r.HT)("/api/v1/conv/feedback/reasons"),a=e=>(0,r.a4)("/api/v1/conv/feedback/add",e),s=e=>(0,r.a4)("/api/v1/conv/feedback/cancel",e),l=e=>(0,r.a4)("/api/v1/chat/topic/terminate?conv_id=".concat(e.conv_id,"&round_index=").concat(e.round_index),e)},76212:function(e,t,n){"use strict";n.d(t,{yY:function(){return tI},HT:function(){return tO},a4:function(){return tp},uO:function(){return tN},L5:function(){return l},H_:function(){return e_},zd:function(){return M},Jm:function(){return e0},Hy:function(){return Q},be:function(){return em},TT:function(){return W},Vx:function(){return tR},Ir:function(){return O.Ir},fU:function(){return z},zR:function(){return eA},mo:function(){return eK},kg:function(){return y},Nl:function(){return e6},$E:function(){return _},MX:function(){return eS},n3:function(){return ey},Wd:function(){return L},XK:function(){return eD},Jq:function(){return w},$j:function(){return et},Ug:function(){return m},XI:function(){return C},k7:function(){return Z},zx:function(){return O.zx},j8:function(){return u},GQ:function(){return A},BN:function(){return e1},yk:function(){return c},Vd:function(){return T},m9:function(){return f},Tu:function(){return eO},Eb:function(){return ej},Lu:function(){return eZ},$i:function(){return ed},gV:function(){return eP},iZ:function(){return eC},a$:function(){return N},Bw:function(){return ei},t$:function(){return ea},H4:function(){return eW},iP:function(){return eu},_Q:function(){return eI},Wm:function(){return g},Jr:function(){return O.Jr},_d:function(){return U},As:function(){return G},MJ:function(){return B},Wf:function(){return b},FT:function(){return eh},RR:function(){return Y},Kt:function(){return v},fZ:function(){return eM},tM:function(){return d},xA:function(){return en},RX:function(){return R},Q5:function(){return eJ},mB:function(){return e3},Vm:function(){return eN},bf:function(){return e2},xv:function(){return eU},lz:function(){return s},Vw:function(){return eT},gt:function(){return k},_Y:function(){return H},Gn:function(){return er},Jx:function(){return V},sW:function(){return eo},DM:function(){return eG},v6:function(){return eY},N6:function(){return eH},bC:function(){return ex},YU:function(){return eV},VC:function(){return eX},qn:function(){return ef},vD:function(){return eR},b_:function(){return eE},J5:function(){return es},mR:function(){return el},KS:function(){return ec},zE:function(){return eF},Al:function(){return ek},YP:function(){return eB},uf:function(){return ew},l_:function(){return e$},GU:function(){return q},pm:function(){return J},b1:function(){return eq},WA:function(){return td},UO:function(){return X},Y2:function(){return K},Pg:function(){return j},mW:function(){return e4},ks:function(){return F},iH:function(){return ep},ey:function(){return $},YK:function(){return P},vA:function(){return eb},Ty:function(){return O.Ty},KL:function(){return eg},Hx:function(){return eL},gD:function(){return ez},Fq:function(){return eQ},KT:function(){return E},p$:function(){return S},w_:function(){return D},ao:function(){return x},Fu:function(){return ee},h:function(){return I},L$:function(){return h},iG:function(){return ev}});var r,o=n(62418),i=n(25519),a=n(87066);let s=()=>tO("/api/v1/team-mode/list"),l=e=>tp("/api/v1/app/create",e),E=e=>tp("/api/v1/app/edit",e),c=e=>tp("/api/v1/app/list?page=".concat(e.page||1,"&page_size=").concat(e.page_size||12),e),u=()=>tO("/api/v1/agents/list",{}),T=()=>tO("/api/v1/llm-strategy/list"),R=e=>tO("/api/v1/app/resources/list?type=".concat(e.type)),d=()=>tO("/api/v1/native_scenes"),f=e=>tO("/api/v1/llm-strategy/value/list?type=".concat(e)),A=e=>tO("/api/v1/app/".concat(e,"/admins")),S=e=>tp("/api/v1/app/admins/update",e);var O=n(89546);let p=(0,o.n5)(),N=e=>tO("/api/v1/evaluate/datasets",e,{headers:{"user-id":p}}),I=e=>tp("/api/v1/evaluate/dataset/upload/content",e,{headers:{"user-id":p}}),h=e=>tp("/api/v1/evaluate/dataset/upload/file",e,{headers:{"user-id":p,"Content-Type":"multipart/form-data"}}),_=e=>tI("/api/v1/evaluate/dataset",e,{headers:{"user-id":p}}),m=e=>tO("/api/v1/evaluate/dataset/download",e,{headers:{"user-id":p,"Content-Type":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},responseType:"blob"}),C=e=>tO("/api/v1/evaluate/evaluation/result/download",e,{headers:{"user-id":p,"Content-Type":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},responseType:"blob"}),L=e=>tI("/api/v1/evaluate/evaluation",e,{headers:{"user-id":p}}),g=e=>tO("/api/v1/evaluate/evaluations",e,{headers:{"user-id":p}}),v=e=>tO("/api/v1/evaluate/metrics",e,{headers:{"user-id":p}}),P=e=>tO("/api/v1/evaluate/evaluation/detail/show",e,{headers:{"user-id":p}}),y=e=>tp("/api/v1/evaluate/start",e,{headers:{"user-id":p}}),D=e=>tp("/api/v1/evaluate/dataset/members/update",e,{headers:{"user-id":p}}),M=e=>tp("/api/v2/serve/awel/flows",e),b=e=>{let{page:t,page_size:n}=e;return tO("/api/v2/serve/awel/flows",{page:t,page_size:n})},U=e=>tO("/api/v2/serve/awel/flows/".concat(e)),x=(e,t)=>tN("/api/v2/serve/awel/flows/".concat(e),t),w=e=>tI("/api/v2/serve/awel/flows/".concat(e)),G=e=>tO("/api/v2/serve/awel/nodes",{tags:e}),F=e=>tp("/api/v2/serve/awel/nodes/refresh",e),H=e=>tp("/api/v2/serve/awel/flow/import",e),B=()=>tO("/api/v2/serve/awel/flow/templates"),Y=e=>tO("/api/v2/serve/awel/variables/keys",e),k=e=>tO("/api/v2/serve/awel/variables",e),V=e=>tp("/api/v2/serve/file/files/metadata/batch",e),$=(e,t)=>tp("/knowledge/".concat(e,"/document/list"),t),W=e=>tp("/knowledge/".concat(e.space_name,"/document/yuque/add"),e),Z=(e,t)=>tp("/knowledge/".concat(e,"/document/edit"),t),j=e=>tO("/knowledge/".concat(e,"/recommend_questions")),X=e=>tO("/knowledge/".concat(e,"/recall_retrievers")),K=(e,t)=>tp("/knowledge/".concat(t,"/recall_test"),e),z=e=>tp("/knowledge/questions/chunk/edit",e),J=e=>tO("/prompt/type/targets?prompt_type=".concat(e)),q=e=>tp("/prompt/template/load?prompt_type=".concat(e.prompt_type,"&target=").concat(e.target),e),Q=e=>tp("/prompt/add",e),ee=e=>tp("/prompt/update",e),et=e=>tp("/prompt/delete",e),en=e=>tp("/prompt/query_page?page=".concat(e.page,"&page_size=").concat(e.page_size),e),er=e=>tp("/prompt/response/verify",e),eo=e=>tp("/api/v1/chat/dialogue/new?chat_mode=".concat(e.chat_mode,"&model_name=").concat(e.model),e),ei=()=>tO("/api/v1/chat/db/list"),ea=()=>tO("/api/v1/chat/db/support/type"),es=e=>tp("/api/v1/chat/db/delete?db_name=".concat(e)),el=e=>tp("/api/v1/chat/db/edit",e),eE=e=>tp("/api/v1/chat/db/add",e),ec=e=>tp("/api/v1/chat/db/test/connect",e),eu=()=>tO("/api/v1/chat/dialogue/list"),eT=()=>tO("/api/v1/model/types"),eR=e=>tp("/api/v1/chat/mode/params/list?chat_mode=".concat(e)),ed=e=>tO("/api/v1/chat/dialogue/messages/history?con_uid=".concat(e)),ef=e=>{let{convUid:t,chatMode:n,data:r,config:o,model:i,userName:a,sysCode:s}=e;return tp("/api/v1/resource/file/upload?conv_uid=".concat(t,"&chat_mode=").concat(n,"&model_name=").concat(i,"&user_name=").concat(a,"&sys_code=").concat(s),r,{headers:{"Content-Type":"multipart/form-data"},...o})},eA=e=>tp("/api/v1/chat/dialogue/clear?con_uid=".concat(e)),eS=e=>tp("/api/v1/chat/dialogue/delete?con_uid=".concat(e)),eO=e=>tp("/knowledge/".concat(e,"/arguments"),{}),ep=(e,t)=>tp("/knowledge/".concat(e,"/argument/save"),t),eN=e=>tp("/knowledge/space/list",e),eI=(e,t)=>tp("/knowledge/".concat(e,"/document/list"),t),eh=(e,t)=>tp("/knowledge/".concat(e,"/graphvis"),t),e_=(e,t)=>tp("/knowledge/".concat(e,"/document/add"),t),em=e=>tp("/knowledge/space/add",e),eC=()=>tO("/knowledge/document/chunkstrategies"),eL=(e,t)=>tp("/knowledge/".concat(e,"/document/sync"),t),eg=(e,t)=>tp("/knowledge/".concat(e,"/document/sync_batch"),t),ev=(e,t)=>tp("/knowledge/".concat(e,"/document/upload"),t),eP=(e,t)=>tp("/knowledge/".concat(e,"/chunk/list"),t),ey=(e,t)=>tp("/knowledge/".concat(e,"/document/delete"),t),eD=e=>tp("/knowledge/space/delete",e),eM=()=>tO("/api/v1/worker/model/list"),eb=e=>tp("/api/v1/worker/model/start",e),eU=()=>tO("/api/v1/worker/model/params"),ex=e=>tp("/api/v1/agent/query",e),ew=e=>tp("/api/v1/serve/dbgpts/hub/query_page?page=".concat(null==e?void 0:e.page_index,"&page_size=").concat(null==e?void 0:e.page_size),e),eG=e=>tp("/api/v1/agent/hub/update",null!=e?e:{channel:"",url:"",branch:"",authorization:""}),eF=e=>tp("/api/v1/serve/dbgpts/hub/source/refresh",null!=e?e:{channel:"",url:"",branch:"",authorization:""}),eH=e=>tp("/api/v1/agent/my",void 0,{params:{user:e}}),eB=e=>tp("/api/v1/serve/dbgpts/my/query_page?page=".concat(null==e?void 0:e.page_index,"&page_size=").concat(null==e?void 0:e.page_size),e),eY=(e,t)=>tp("/api/v1/agent/install",void 0,{params:{plugin_name:e,user:t},timeout:6e4}),ek=(e,t)=>tp("/api/v1/serve/dbgpts/hub/install",e,{params:{user:t},timeout:6e4}),eV=(e,t)=>tp("/api/v1/agent/uninstall",void 0,{params:{plugin_name:e,user:t},timeout:6e4}),e$=(e,t)=>tp("/api/v1/serve/dbgpts/my/uninstall",void 0,{params:{...e,user:t},timeout:6e4}),eW=()=>tO("/api/v1/dbgpts/list"),eZ=()=>tO("/api/v1/feedback/select",void 0),ej=(e,t)=>tO("/api/v1/feedback/find?conv_uid=".concat(e,"&conv_index=").concat(t),void 0),eX=e=>{let{data:t,config:n}=e;return tp("/api/v1/feedback/commit",t,{headers:{"Content-Type":"application/json"},...n})},eK=e=>tp("/api/v1/app/collect",e),ez=e=>tp("/api/v1/app/uncollect",e),eJ=()=>tO("/api/v1/resource-type/list"),eq=e=>tp("/api/v1/app/publish",{app_code:e}),eQ=e=>tp("/api/v1/app/unpublish",{app_code:e}),e0=e=>tp("/api/v1/chat/db/add",e),e1=e=>tO("/api/v1/app/info",e),e2=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return tO("/api/v1/permission/db/list?db_name=".concat(e))},e4=e=>tp("/api/v1/app/hot/list",e),e6=e=>tp("/api/v1/app/remove",e),e3=()=>tO("/knowledge/space/config");var e8=n(26855);let{Axios:e5,AxiosError:e7,CanceledError:e9,isCancel:te,CancelToken:tt,VERSION:tn,all:tr,Cancel:to,isAxiosError:ti,spread:ta,toFormData:ts,AxiosHeaders:tl,HttpStatusCode:tE,formToJSON:tc,getAdapter:tu,mergeConfig:tT}=a.default,tR=(e,t)=>e.then(e=>{let{data:n}=e;if(!n)throw Error("Network Error!");if(!n.success){if("*"===t||n.err_code&&t&&t.includes(n.err_code));else{var r;e8.ZP.error({message:"Request error",description:null!==(r=null==n?void 0:n.err_msg)&&void 0!==r?r:"The interface is abnormal. Please try again later"})}}return[null,n.data,n,e]}).catch(e=>{let t=e.message;if(e instanceof e7)try{let{err_msg:n}=JSON.parse(e.request.response);n&&(t=n)}catch(e){}return e8.ZP.error({message:"Request error",description:t}),[e,null,null,null]}),td=e=>[];var tf=n(83454);let tA=a.default.create({baseURL:null!==(r=tf.env.API_BASE_URL)&&void 0!==r?r:""}),tS=["/db/add","/db/test/connect","/db/summary","/params/file/load","/chat/prepare","/model/start","/model/stop","/editor/sql/run","/sql/editor/submit","/editor/chart/run","/chart/editor/submit","/document/upload","/document/sync","/agent/install","/agent/uninstall","/personal/agent/upload"];tA.interceptors.request.use(e=>{let t=tS.some(t=>e.url&&e.url.indexOf(t)>=0);return e.timeout||(e.timeout=t?6e4:1e5),e.headers.set(i.gp,(0,o.n5)()),e});let tO=(e,t,n)=>tA.get(e,{params:t,...n}),tp=(e,t,n)=>tA.post(e,t,n),tN=(e,t,n)=>tA.put(e,t,n),tI=(e,t,n)=>tA.delete(e,{params:t,...n})},1051:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(85893);function o(){return(0,r.jsx)("svg",{className:"mr-1",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",children:(0,r.jsx)("path",{d:"M688 312c0 4.4-3.6 8-8 8H296c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8v48z m-392 88h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H296c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8z m376 116c119.3 0 216 96.7 216 216s-96.7 216-216 216-216-96.7-216-216 96.7-216 216-216z m107.5 323.5C808.2 810.8 824 772.6 824 732s-15.8-78.8-44.5-107.5S712.6 580 672 580s-78.8 15.8-107.5 44.5S520 691.4 520 732s15.8 78.8 44.5 107.5S631.4 884 672 884s78.8-15.8 107.5-44.5zM440 852c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H168c-17.7 0-32-14.3-32-32V108c0-17.7 14.3-32 32-32h640c17.7 0 32 14.3 32 32v384c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8V148H208v704h232z m232-76.06l-20.56 28.43c-1.5 2.1-3.9 3.3-6.5 3.3h-44.3c-6.5 0-10.3-7.4-6.4-12.7l45.75-63.3-45.75-63.3c-3.9-5.3-0.1-12.7 6.4-12.7h44.3c2.6 0 5 1.2 6.5 3.3L672 687.4l20.56-28.43c1.5-2.1 3.9-3.3 6.5-3.3h44.3c6.5 0 10.3 7.4 6.4 12.7l-45.75 63.3 45.75 63.3c3.9 5.3 0.1 12.7-6.4 12.7h-44.3c-2.6 0-5-1.2-6.5-3.3L672 775.94z",fill:"#d81e06"})})}},82353:function(e,t,n){"use strict";n.d(t,{O7:function(){return o},RD:function(){return s},In:function(){return i},zM:function(){return a},je:function(){return l},DL:function(){return E},si:function(){return c},FD:function(){return u},qw:function(){return T},s2:function(){return R},FE:function(){return d.Z},Rp:function(){return f},IN:function(){return A},tu:function(){return S},ig:function(){return O},ol:function(){return p},bn:function(){return N}});var r=n(85893),o=function(){return(0,r.jsxs)("svg",{className:"w-full h-full",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M416.9549913 314.32347826h297.42302609a119.56758261 119.56758261 0 0 1 119.56758261 119.56758261v179.19109565a196.71485217 196.71485217 0 0 1-196.71485217 196.71485218H416.9549913a119.56758261 119.56758261 0 0 1-119.5675826-119.56758261v-256.44521739A119.56758261 119.56758261 0 0 1 416.9549913 314.32347826z",fill:"#F5384A"}),(0,r.jsx)("path",{d:"M716.24793043 314.32347826H415.03165217a117.5373913 117.5373913 0 0 0-117.5373913 117.53739131v260.18504347c0 3.84667826 0 7.69335652 0.58768696 11.43318261a345.7202087 345.7202087 0 0 0 502.9531826-353.19986087A117.1634087 117.1634087 0 0 0 716.24793043 314.32347826z",fill:"#F54F5C"}),(0,r.jsx)("path",{d:"M318.91812174 594.54330435a345.7202087 345.7202087 0 0 0 420.73043478-249.07241739c2.35074783-9.18928696 4.22066087-18.432 5.82344348-27.67471305a117.10998261 117.10998261 0 0 0-29.22406957-3.63297391H415.03165217a117.5373913 117.5373913 0 0 0-117.5373913 117.5373913v156.43158261c6.9453913 2.35074783 14.10448696 4.54121739 21.42386087 6.41113044z",fill:"#F66C73"}),(0,r.jsx)("path",{d:"M630.17850435 314.32347826H415.03165217a117.5373913 117.5373913 0 0 0-117.5373913 117.53739131v48.08347826a346.14761739 346.14761739 0 0 0 332.68424348-165.62086957z",fill:"#F78989"}),(0,r.jsx)("path",{d:"M859.85725217 354.76702609h-25.53766956C802.26393043 200.52591304 669.92751304 84.59130435 512 84.59130435S221.73606957 200.52591304 189.68041739 354.76702609h-25.53766956a139.6557913 139.6557913 0 0 0-139.44208696 139.49551304v79.872a139.6557913 139.6557913 0 0 0 139.44208696 139.49551304h27.62128695a54.65488696 54.65488696 0 0 0 54.60146087-54.60146087V427.10594783C246.36549565 273.6128 365.50566957 148.7026087 512 148.7026087s265.63450435 124.9101913 265.63450435 278.40333913v159.3165913c0 116.09488696-74.79652174 219.47436522-181.38156522 251.42316522a30.23916522 30.23916522 0 0 0-3.09871304 1.06852174 60.15777391 60.15777391 0 1 0 18.05801739 61.06601739 23.50747826 23.50747826 0 0 0 3.36584348-0.69453913c93.12166957-27.88841739 166.63596522-98.67798261 203.01913043-187.79269565a54.92201739 54.92201739 0 0 0 14.90587826 2.13704347h27.62128696a139.6557913 139.6557913 0 0 0 139.44208696-139.49551304V494.26253913a139.6557913 139.6557913 0 0 0-139.7092174-139.49551304zM182.2541913 649.51874783h-18.11144347a75.43763478 75.43763478 0 0 1-75.33078261-75.3842087V494.26253913a75.43763478 75.43763478 0 0 1 75.33078261-75.3842087h18.11144347v230.6404174z m752.93384348-75.3842087a75.43763478 75.43763478 0 0 1-75.33078261 75.3842087h-18.11144347V418.87833043h18.11144347a75.43763478 75.43763478 0 0 1 75.33078261 75.3842087z",fill:"#444444"})]})},i=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1116 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M80.75 80.75m67.14674945 0l805.76099677 0q67.14674945 0 67.14674947 67.14674945l0 604.32074759q0 67.14674945-67.14674947 67.14674945l-805.76099677 0q-67.14674945 0-67.14674945-67.14674945l0-604.32074759q0-67.14674945 67.14674945-67.14674945Z",fill:"#36CFC9"}),(0,r.jsx)("path",{d:"M1020.80449568 685.07074759v67.14674945a67.14674945 67.14674945 0 0 1-67.14674946 67.14674945h-308.20358111l91.3195796 100.72012459-24.84429735 22.49416172L600.46584251 819.36424649h-100.72012459L389.62504831 943.25 364.78075097 920.08437108l91.31957961-100.72012459H147.89674945a67.14674945 67.14674945 0 0 1-67.14674945-67.14674945v-67.14674946z",fill:"#08979C"}),(0,r.jsx)("path",{d:"M416.48374894 282.19024919v335.7337481H315.76362434V282.19024919z m167.86687404 134.29349975v201.44024834h-100.72012459v-201.44024834z m167.86687406 67.14674945v134.2934989h-100.7201246v-134.2934989z m-225.94881252-302.16037379v141.34390829h201.4402492V272.11823698L819.36424649 341.27938889l-91.3195796 63.45367858V356.38740719h-239.71389641V215.04349975H315.76362434V181.4701246z",fill:"#B5F5EC"}),(0,r.jsx)("path",{d:"M550.77724783 752.21749704m-33.57337513 0a33.57337515 33.57337515 0 1 0 67.14675028 0 33.57337515 33.57337515 0 1 0-67.14675028 0Z",fill:"#FFFFFF"})]})},a=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M207.83 962c-5.4 0-10.88-1.17-16.08-3.67-18.55-8.89-26.39-31.13-17.5-49.69l77.22-161.26c8.9-18.58 31.14-26.41 49.7-17.51 18.55 8.89 26.39 31.13 17.5 49.69l-77.22 161.26c-6.4 13.38-19.74 21.18-33.62 21.18zM821.57 962c-13.88 0-27.21-7.8-33.62-21.17l-77.24-161.26c-8.9-18.55-1.06-40.8 17.5-49.69 18.57-8.87 40.8-1.07 49.7 17.51l77.24 161.26c8.9 18.55 1.06 40.8-17.5 49.69a37.266 37.266 0 0 1-16.08 3.66z",fill:"#12926E"}),(0,r.jsx)("path",{d:"M156.74 105.14h710.51c50.7 0 91.8 41.1 91.8 91.8v525.82c0 50.7-41.1 91.8-91.8 91.8H156.74c-50.7 0-91.8-41.1-91.8-91.8V196.93c0.01-50.69 41.11-91.79 91.8-91.79z",fill:"#39E2A0"}),(0,r.jsx)("path",{d:"M835.65 686.01h-614.7c-5.14 0-9.31-4.17-9.31-9.31 0-5.14 4.17-9.31 9.31-9.31h614.7c5.14 0 9.31 4.17 9.31 9.31 0 5.14-4.17 9.31-9.31 9.31z",fill:"#D3F8EA"}),(0,r.jsx)("path",{d:"M699.31 631.94H624.8V454.95c0-11.28 9.14-20.42 20.42-20.42h33.67c11.28 0 20.42 9.14 20.42 20.42v176.99zM846.22 631.94h-74.51V346.76c0-11.28 9.14-20.42 20.42-20.42h33.67c11.28 0 20.42 9.14 20.42 20.42v285.18zM289.51 631.94H215V417.69c0-11.28 9.14-20.42 20.42-20.42h33.67c11.28 0 20.42 9.14 20.42 20.42v214.25zM436.42 631.94h-74.51V495.77c0-11.28 9.14-20.42 20.42-20.42H416c11.28 0 20.42 9.14 20.42 20.42v136.17z",fill:"#FFFFFF"}),(0,r.jsx)("path",{d:"M715.4 173.76H308.6c-11.11 0-20.12-9.01-20.12-20.12V82.12c0-11.11 9.01-20.12 20.12-20.12h406.8c11.11 0 20.12 9.01 20.12 20.12v71.52c0.01 11.11-9 20.12-20.12 20.12z",fill:"#12926E"})]})},s=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M226.3 70.4C151.1 91.6 91.6 151.1 70.4 226.3L226.3 70.4z",fill:"#FFA65A"}),(0,r.jsx)("path",{d:"M277.9 62.2c-116.5 4.7-211 99.1-215.7 215.7L277.9 62.2z",fill:"#FFA659"}),(0,r.jsx)("path",{d:"M321.5 62H287C163.3 62 62 163.3 62 287v34.5L321.5 62z",fill:"#FFA558"}),(0,r.jsx)("path",{d:"M365 62h-78C163.3 62 62 163.3 62 287v78L365 62z",fill:"#FFA557"}),(0,r.jsx)("path",{d:"M408.4 62H287C163.3 62 62 163.3 62 287v121.4L408.4 62z",fill:"#FFA556"}),(0,r.jsx)("path",{d:"M451.8 62H287c-35.9 0-69.8 8.5-100 23.6L85.6 187C70.5 217.2 62 251.1 62 287v164.8L451.8 62z",fill:"#FFA555"}),(0,r.jsx)("path",{d:"M495.3 62H287c-12.2 0-24.2 1-35.9 2.9L64.9 251.1C63 262.8 62 274.8 62 287v208.3L495.3 62z",fill:"#FFA454"}),(0,r.jsx)("path",{d:"M62 538.7L538.7 62H297.5L62 297.5z",fill:"#FFA453"}),(0,r.jsx)("path",{d:"M62 582.1L582.1 62H340.9L62 340.9z",fill:"#FFA452"}),(0,r.jsx)("path",{d:"M62 625.6L625.6 62H384.3L62 384.3z",fill:"#FFA451"}),(0,r.jsx)("path",{d:"M62 427.8V669L669 62H427.8z",fill:"#FFA450"}),(0,r.jsx)("path",{d:"M62 471.2v241.2L712.4 62H471.2z",fill:"#FFA34F"}),(0,r.jsx)("path",{d:"M737 62H514.6L62 514.6V737c0 6.1 0.3 12.1 0.7 18.1L755.1 62.7c-6-0.4-12-0.7-18.1-0.7z",fill:"#FFA34E"}),(0,r.jsx)("path",{d:"M737 62H558.1L62 558.1V737c0 19.1 2.4 37.6 6.9 55.4L792.4 68.9C774.6 64.4 756.1 62 737 62z",fill:"#FFA34D"}),(0,r.jsx)("path",{d:"M737 62H601.5L62 601.5V737c0 31.1 6.4 60.8 17.9 87.8L824.8 79.9C797.8 68.4 768.1 62 737 62z",fill:"#FFA34C"}),(0,r.jsx)("path",{d:"M853.5 94.7C819.4 74 779.5 62 737 62h-92.1L62 644.9V737c0 42.5 12 82.4 32.7 116.5L853.5 94.7z",fill:"#FFA24B"}),(0,r.jsx)("path",{d:"M878.9 112.7C840.1 81.1 790.7 62 737 62h-48.6L62 688.4V737c0 53.7 19.1 103.1 50.7 141.9l766.2-766.2z",fill:"#FFA24A"}),(0,r.jsx)("path",{d:"M737 62h-5.2L62 731.8v5.2c0 64.7 27.7 123.2 71.7 164.3l767.6-767.6C860.2 89.7 801.7 62 737 62z",fill:"#FFA249"}),(0,r.jsx)("path",{d:"M64.8 772.4c9.8 61 44.3 114.1 92.8 148.4l763.2-763.2c-34.3-48.6-87.4-83.1-148.4-92.8L64.8 772.4z",fill:"#FFA248"}),(0,r.jsx)("path",{d:"M73.3 807.3c18.7 56.4 59.2 103 111.3 129.9l752.6-752.6C910.4 132.5 863.7 92 807.3 73.3l-734 734z",fill:"#FFA247"}),(0,r.jsx)("path",{d:"M86.1 838c26.5 52.3 72.9 93.1 129.1 112.2l735-735C931.1 159 890.3 112.6 838 86.1L86.1 838z",fill:"#FFA147"}),(0,r.jsx)("path",{d:"M102.4 865.2c34 48.7 86.7 83.5 147.5 93.7l709-709c-10.2-60.8-45-113.5-93.7-147.5L102.4 865.2z",fill:"#FFA146"}),(0,r.jsx)("path",{d:"M962 287c0-65.2-28.1-124.1-72.7-165.3L121.7 889.3C162.9 933.9 221.8 962 287 962h3.2L962 290.2V287z",fill:"#FFA145"}),(0,r.jsx)("path",{d:"M962 287c0-54.2-19.4-104-51.6-143L144 910.4c39 32.2 88.8 51.6 143 51.6h46.6L962 333.6V287z",fill:"#FFA144"}),(0,r.jsx)("path",{d:"M962 287c0-43.1-12.3-83.4-33.5-117.7L169.3 928.5C203.6 949.7 243.9 962 287 962h90.1L962 377.1V287z",fill:"#FFA143"}),(0,r.jsx)("path",{d:"M287 962h133.5L962 420.5V287c0-31.6-6.6-61.8-18.5-89.2L197.8 943.4c27.4 12 57.6 18.6 89.2 18.6z",fill:"#FFA042"}),(0,r.jsx)("path",{d:"M287 962h176.9L962 463.9V287c0-19.7-2.6-38.7-7.4-56.9L230.1 954.6c18.2 4.8 37.2 7.4 56.9 7.4z",fill:"#FFA041"}),(0,r.jsx)("path",{d:"M287 962h220.4L962 507.4V287c0-6.7-0.3-13.4-0.9-20L267 961.1c6.6 0.6 13.3 0.9 20 0.9z",fill:"#FFA040"}),(0,r.jsx)("path",{d:"M550.8 962L962 550.8V309.6L309.6 962z",fill:"#FFA03F"}),(0,r.jsx)("path",{d:"M594.2 962L962 594.2V353L353 962z",fill:"#FF9F3E"}),(0,r.jsx)("path",{d:"M637.7 962L962 637.7V396.4L396.4 962z",fill:"#FF9F3D"}),(0,r.jsx)("path",{d:"M681.1 962L962 681.1V439.9L439.9 962z",fill:"#FF9F3C"}),(0,r.jsx)("path",{d:"M724.5 962L962 724.5V483.3L483.3 962z",fill:"#FF9F3B"}),(0,r.jsx)("path",{d:"M962 737V526.7L526.7 962H737c11.4 0 22.5-0.9 33.5-2.5l189-189c1.6-11 2.5-22.1 2.5-33.5z",fill:"#FF9F3A"}),(0,r.jsx)("path",{d:"M962 737V570.2L570.2 962H737c34.3 0 66.9-7.8 96.1-21.7l107.2-107.2c13.9-29.2 21.7-61.8 21.7-96.1z",fill:"#FF9E39"}),(0,r.jsx)("path",{d:"M962 613.6L613.6 962H737c123.8 0 225-101.3 225-225V613.6z",fill:"#FF9E38"}),(0,r.jsx)("path",{d:"M962 657L657 962h80c123.8 0 225-101.3 225-225v-80z",fill:"#FF9E37"}),(0,r.jsx)("path",{d:"M962 700.5L700.5 962H737c123.8 0 225-101.3 225-225v-36.5z",fill:"#FF9E36"}),(0,r.jsx)("path",{d:"M961.9 744L744 961.9c118.2-3.7 214.2-99.7 217.9-217.9z",fill:"#FF9D35"}),(0,r.jsx)("path",{d:"M954.4 795L795 954.4c77.4-20.8 138.6-82 159.4-159.4z",fill:"#FF9D34"}),(0,r.jsx)("path",{d:"M736.3 622.9L523.5 747.3c-5.6 3.3-12.4 3.3-18 0.1L287.8 622.6c-12.2-7-12-24.6 0.3-31.4l212.8-116.7c5.3-2.9 11.8-3 17.2-0.1l217.7 117c12.3 6.7 12.6 24.4 0.5 31.5z",fill:"#FFD9C0"}),(0,r.jsx)("path",{d:"M736.3 523.9L523.5 648.3c-5.6 3.3-12.4 3.3-18 0.1L287.8 523.6c-12.2-7-12-24.6 0.3-31.4l212.8-116.7c5.3-2.9 11.8-3 17.2-0.1l217.7 117c12.3 6.7 12.6 24.4 0.5 31.5z",fill:"#FFE8D9"}),(0,r.jsx)("path",{d:"M736.3 424.9L523.5 549.3c-5.6 3.3-12.4 3.3-18 0.1L287.8 424.6c-12.2-7-12-24.6 0.3-31.4l212.8-116.7c5.3-2.9 11.8-3 17.2-0.1l217.7 117c12.3 6.7 12.6 24.4 0.5 31.5z",fill:"#FFF6F0"})]})},l=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M197.99492187 62v900h-34.18066406C124.57285156 962 92.76171875 930.18886719 92.76171875 890.94746094V133.05253906C92.76171875 93.81113281 124.57285156 62 163.81425781 62h34.18066406z m662.19082032 0C899.42714844 62 931.23828125 93.81113281 931.23828125 133.05253906v757.89492188c0 39.24140625-31.81113281 71.05253906-71.05253906 71.05253906H276.92070312V62h583.26503907z",fill:"#19A05F"}),(0,r.jsx)("path",{d:"M577.0390625 62l0.33222656 220.3875 111.2475586-108.80771484L800.19951172 284.36328125V62zM425.40224609 508.18554688h377.05078125v50.94404296h-377.05078125V508.18554688z m0 101.88720703h377.05078125v50.94316406h-377.05078125v-50.94316406z",fill:"#FFFFFF"})]})},E=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M701.95942066 37.1014489H250.80579673a142.46956521 142.46956521 0 0 0-142.46956522 142.46956523v664.85797174a142.46956521 142.46956521 0 0 0 142.46956522 142.46956523h522.38840654a142.46956521 142.46956521 0 0 0 142.46956522-142.46956523V274.55072501L701.95942066 37.1014489z",fill:"#53D39C"}),(0,r.jsx)("path",{d:"M444.2794663 392.18309566l69.64387283 117.72735109h2.70692174l69.97630108-117.70360654h82.4661337l-105.40373371 172.67311305 107.77822609 172.6968587h-83.98580869l-70.83111847-117.89356521h-2.70692174L443.09222066 737.57681196h-83.65338045l108.11065544-172.6968587-106.09233586-172.6968576h82.82230651z",fill:"#25BF79"}),(0,r.jsx)("path",{d:"M444.2794663 380.31063151l69.64387283 117.7273511h2.70692174l69.97630108-117.70360543h82.4661337l-105.40373371 172.67311305L671.44718803 725.70434783h-83.98580869l-70.83111847-117.89356522h-2.70692174L443.09222066 725.70434783h-83.65338045l108.11065544-172.6968576-106.09233586-172.69685872h82.82230651z",fill:"#FFFFFF"}),(0,r.jsx)("path",{d:"M701.95942066 37.1014489l160.27826087 178.08695653L915.66376849 274.55072501h-142.46956522a71.23478261 71.23478261 0 0 1-71.23478261-71.23478261V37.1014489z",fill:"#25BF79"})]})},c=function(){return(0,r.jsx)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:(0,r.jsx)("path",{d:"M688.51536688 447.75428656l-2.39993719 1.25996719a200.75473031 200.75473031 0 0 1-7.19981156 38.03900156l-47.33875688 166.43563031 110.45710031-59.63843437-47.03876531-114.41699625a108.2971575 108.2971575 0 0 1-6.47982937-31.67916844z m194.87488406-200.99472375l-96.35747063-58.55846344-354.77068687 217.43429251a70.01816156 70.01816156 0 0 0-32.51914688 59.57843624v193.97490844l-158.99582625-98.09742562V362.67651969a69.4181775 69.4181775 0 0 1 33.95910844-60.41841375l358.67058469-206.99456625 13.55964469 7.97979L544.75914031 41.26495719a62.75835281 62.75835281 0 0 0-65.63827687 0L140.54975094 246.75956281a69.89816531 69.89816531 0 0 0-32.81913844 59.75843063v410.98921218c-0.11999719 24.47935781 12.2996775 47.1587625 32.81913844 59.81842969l338.5711125 205.49460563c20.21946937 12.23967844 45.35880937 12.23967844 65.63827687 0l338.69110875-205.49460563c20.33946563-12.41967375 32.87913656-35.09907844 32.8791375-59.81842968v-410.98921219a69.77816813 69.77816813 0 0 0-32.93913562-59.75843063z m-89.51764969 477.88745532l-31.01918625-75.65801438-150.53604844 81.35786438-30.47919937 108.95713968-95.81748563 51.7186425 151.61602032-485.20726312 103.79727562-56.09852719 148.73609531 322.97152219-96.29747156 51.95863594z m0-1e-8",fill:"#0F6CF9"})})},u=function(){return(0,r.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",children:(0,r.jsx)("path",{d:"M593.054 120.217C483.656 148.739 402.91 248.212 402.91 366.546c0 140.582 113.962 254.544 254.544 254.544 118.334 0 217.808-80.746 246.328-190.144C909.17 457.12 912 484.23 912 512c0 220.914-179.086 400-400 400S112 732.914 112 512s179.086-400 400-400c27.77 0 54.88 2.83 81.054 8.217z"})})};function T(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",children:[(0,r.jsx)("path",{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-8zM296 400c-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-8H296zM672 516c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216z m107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5z",fill:"#1afa29"}),(0,r.jsx)("path",{d:"M761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9c-1.5-2.1-3.9-3.3-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3 0.1-12.7-6.4-12.7z",fill:"#1afa29"}),(0,r.jsx)("path",{d:"M440 852H208V148h560v344c0 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-8z",fill:"#1afa29"})]})}function R(){return(0,r.jsxs)("svg",{className:"mr-1",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",children:[(0,r.jsx)("path",{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-8zM296 400c-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-8H296zM672 516c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216z m107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5z",fill:"#87d068"}),(0,r.jsx)("path",{d:"M761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9c-1.5-2.1-3.9-3.3-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3 0.1-12.7-6.4-12.7z",fill:"#87d068"}),(0,r.jsx)("path",{d:"M440 852H208V148h560v344c0 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-8z",fill:"#87d068"})]})}var d=n(1051);function f(){return(0,r.jsxs)("svg",{className:"mr-1",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",children:[(0,r.jsx)("path",{d:"M296 256c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zM488 456v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8z",fill:"#2db7f5"}),(0,r.jsx)("path",{d:"M440 852H208V148h560v344c0 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-8z",fill:"#2db7f5"}),(0,r.jsx)("path",{d:"M544.1 736.4c1.8-34.5 16.2-66.8 40.8-91.4 26.2-26.2 62-41 99.1-41 37.4 0 72.6 14.6 99.1 41 3.2 3.2 6.3 6.6 9.2 10.1L769.2 673c-5.3 4.1-3.5 12.5 3 14.1l93.3 22.5c5 1.2 9.8-2.6 9.9-7.7l0.6-95.4c0-6.7-7.6-10.5-12.9-6.4l-20.3 15.8C805.4 569.6 748.1 540 684 540c-109.9 0-199.6 86.9-204 195.7-0.2 4.5 3.5 8.3 8 8.3h48.1c4.3 0 7.8-3.3 8-7.6zM880 744h-48.1c-4.3 0-7.8 3.3-8 7.6-1.8 34.5-16.2 66.8-40.8 91.4-26.2 26.2-62 41-99.1 41-37.4 0-72.6-14.6-99.1-41-3.2-3.2-6.3-6.6-9.2-10.1l23.1-17.9c5.3-4.1 3.5-12.5-3-14.1l-93.3-22.5c-5-1.2-9.8 2.6-9.9 7.7l-0.6 95.4c0 6.7 7.6 10.5 12.9 6.4l20.3-15.8C562.6 918.4 619.9 948 684 948c109.9 0 199.6-86.9 204-195.7 0.2-4.5-3.5-8.3-8-8.3z",fill:"#2db7f5"})]})}var A=function(){return(0,r.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",children:(0,r.jsx)("path",{d:"M513.89 950.72c-5.5 0-11-1.4-15.99-4.2L143.84 743c-9.85-5.73-15.99-16.17-15.99-27.64V308.58c0-11.33 6.14-21.91 15.99-27.64L497.9 77.43c9.85-5.73 22.14-5.73 31.99 0l354.06 203.52c9.85 5.73 15.99 16.17 15.99 27.64V715.5c0 11.33-6.14 21.91-15.99 27.64L529.89 946.52c-4.99 2.8-10.49 4.2-16 4.2zM191.83 697.15L513.89 882.2l322.07-185.05V326.92L513.89 141.87 191.83 326.92v370.23z m322.06-153.34c-5.37 0-10.88-1.4-15.99-4.33L244.29 393.91c-15.35-8.79-20.6-28.27-11.77-43.56 8.83-15.28 28.41-20.5 43.76-11.72l253.61 145.7c15.35 8.79 20.6 28.27 11.77 43.56-6.01 10.32-16.76 15.92-27.77 15.92z m0 291.52c-17.66 0-31.99-14.26-31.99-31.84V530.44L244.55 393.91s-0.13 0-0.13-0.13l-100.45-57.69c-15.35-8.79-20.6-28.27-11.77-43.56s28.41-20.5 43.76-11.72l354.06 203.52c9.85 5.73 15.99 16.17 15.99 27.64v291.39c-0.13 17.71-14.46 31.97-32.12 31.97z m0 115.39c-17.66 0-31.99-14.26-31.99-31.84V511.97c0-17.58 14.33-31.84 31.99-31.84s31.99 14.26 31.99 31.84v406.91c0 17.7-14.33 31.84-31.99 31.84z m0-406.91c-11 0-21.75-5.73-27.77-15.92-8.83-15.28-3.58-34.64 11.77-43.56l354.06-203.52c15.35-8.79 34.8-3.57 43.76 11.72 8.83 15.28 3.58 34.64-11.77 43.56L529.89 539.61c-4.99 2.93-10.49 4.2-16 4.2z"})})};function S(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",children:[(0,r.jsx)("path",{d:"M114.5856 951.04h298.24v-71.68H186.2656v-747.52h593.92v271.36h71.68v-343.04h-737.28v890.88z",fill:"#747690"}),(0,r.jsx)("path",{d:"M662.4256 311.04h-358.4v-71.68h358.4v71.68zM508.8256 490.24h-204.8v-71.68h204.8v71.68zM668.8256 554.24a168.96 168.96 0 1 0 0 337.92 168.96 168.96 0 0 0 0-337.92z m-240.64 168.96a240.64 240.64 0 1 1 481.28 0 240.64 240.64 0 0 1-481.28 0z",fill:"#747690"}),(0,r.jsx)("path",{d:"M629.76 588.8h71.68v131.4304l82.5856 41.3184-32.0512 64.1024-122.2144-61.0816V588.8z",fill:"#747690"})]})}var O=function(){return(0,r.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",children:(0,r.jsx)("path",{d:"M602.24 246.72a17.28 17.28 0 0 0-11.84-16.32l-42.88-14.4A90.56 90.56 0 0 1 490.24 160l-14.4-42.88a17.28 17.28 0 0 0-32 0L428.8 160a90.56 90.56 0 0 1-57.28 57.28l-42.88 14.4a17.28 17.28 0 0 0 0 32l42.88 14.4a90.56 90.56 0 0 1 57.28 57.28l14.4 42.88a17.28 17.28 0 0 0 32 0l14.4-42.88a90.56 90.56 0 0 1 57.28-57.28l42.88-14.4a17.28 17.28 0 0 0 12.48-16.96z m301.12 221.76l-48.32-16a101.44 101.44 0 0 1-64-64l-16-48.32a19.2 19.2 0 0 0-36.8 0l-16 48.32a101.44 101.44 0 0 1-64 64l-48.32 16a19.2 19.2 0 0 0 0 36.8l48.32 16a101.44 101.44 0 0 1 64 64l16 48.32a19.2 19.2 0 0 0 36.8 0l16-48.32a101.44 101.44 0 0 1 64-64l48.32-16a19.2 19.2 0 0 0 0-36.8z m-376.64 195.52l-64-20.8a131.84 131.84 0 0 1-83.52-83.52l-20.8-64a25.28 25.28 0 0 0-47.68 0l-20.8 64a131.84 131.84 0 0 1-82.24 83.52l-64 20.8a25.28 25.28 0 0 0 0 47.68l64 20.8a131.84 131.84 0 0 1 83.52 83.84l20.8 64a25.28 25.28 0 0 0 47.68 0l20.8-64a131.84 131.84 0 0 1 83.52-83.52l64-20.8a25.28 25.28 0 0 0 0-47.68z"})})},p=function(){return(0,r.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",children:(0,r.jsx)("path",{d:"M554.6 64h-85.4v128h85.4V64z m258.2 87.4L736 228.2l59.8 59.8 76.8-76.8-59.8-59.8z m-601.6 0l-59.8 59.8 76.8 76.8 59.8-59.8-76.8-76.8zM512 256c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z m448 213.4h-128v85.4h128v-85.4z m-768 0H64v85.4h128v-85.4zM795.8 736L736 795.8l76.8 76.8 59.8-59.8-76.8-76.8z m-567.6 0l-76.8 76.8 59.8 59.8 76.8-76.8-59.8-59.8z m326.4 96h-85.4v128h85.4v-128z"})})};function N(){return(0,r.jsx)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",children:(0,r.jsx)("path",{d:"M151.5 586.2c-5-24.2-7.5-49.2-7.5-74.2s2.5-50 7.5-74.2c4.8-23.6 12-46.8 21.4-69 9.2-21.8 20.6-42.8 33.9-62.5 13.2-19.5 28.3-37.8 45-54.5s35-31.8 54.5-45c19.7-13.3 40.7-24.7 62.5-33.9 22.2-9.4 45.4-16.6 69-21.4 48.5-9.9 99.9-9.9 148.4 0 23.6 4.8 46.8 12 69 21.4 21.8 9.2 42.8 20.6 62.5 33.9 19.5 13.2 37.8 28.3 54.5 45 1.4 1.4 2.8 2.8 4.1 4.2H688c-17.7 0-32 14.3-32 32s14.3 32 32 32h160c17.7 0 32-14.3 32-32V128c0-17.7-14.3-32-32-32s-32 14.3-32 32v77.1c-19.2-19-40.1-36.2-62.4-51.3-23.1-15.6-47.8-29-73.4-39.8-26.1-11-53.4-19.5-81.1-25.2-56.9-11.6-117.1-11.6-174.1 0-27.8 5.7-55.1 14.2-81.1 25.2-25.6 10.8-50.3 24.2-73.4 39.8-22.9 15.4-44.4 33.2-63.9 52.7s-37.3 41-52.7 63.9c-15.6 23.1-29 47.8-39.8 73.4-11 26.1-19.5 53.4-25.2 81.1C83 453.4 80 482.7 80 512s3 58.6 8.8 87c3.1 15.2 16.4 25.6 31.3 25.6 2.1 0 4.3-0.2 6.4-0.7 17.4-3.5 28.5-20.4 25-37.7zM935.2 425c-3.5-17.3-20.5-28.5-37.8-24.9-17.3 3.5-28.5 20.5-24.9 37.8 5 24.2 7.5 49.2 7.5 74.2s-2.5 50-7.5 74.2c-4.8 23.6-12 46.8-21.4 69-9.2 21.8-20.6 42.8-33.9 62.5-13.2 19.5-28.3 37.8-45 54.5s-35 31.8-54.5 45C698 830.6 677 842 655.2 851.2c-22.2 9.4-45.4 16.6-69 21.4-48.5 9.9-99.9 9.9-148.4 0-23.6-4.8-46.8-12-69-21.4-21.8-9.2-42.8-20.6-62.5-33.9-19.5-13.2-37.8-28.3-54.5-45-1.4-1.4-2.8-2.8-4.1-4.2H336c17.7 0 32-14.3 32-32s-14.3-32-32-32H176c-17.7 0-32 14.3-32 32v160c0 17.7 14.3 32 32 32s32-14.3 32-32V819c19.2 19 40.1 36.2 62.4 51.3 23.1 15.6 47.8 29 73.4 39.8 26.1 11 53.4 19.5 81.1 25.2 28.5 5.8 57.7 8.8 87 8.8s58.6-3 87-8.8c27.8-5.7 55-14.2 81.1-25.2 25.6-10.8 50.3-24.2 73.4-39.8 22.9-15.5 44.4-33.2 63.9-52.7s37.3-41 52.7-63.9c15.6-23.1 29-47.8 39.8-73.4 11-26.1 19.5-53.4 25.2-81.1 5.8-28.5 8.8-57.7 8.8-87 0.2-29.5-2.8-58.8-8.6-87.2z",fill:"#1875F0"})})}},32665:function(e,t,n){"use strict";function r(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return r}}),n(38754),n(67294),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41219:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return R},useSearchParams:function(){return d},usePathname:function(){return f},ServerInsertedHTMLContext:function(){return l.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return l.useServerInsertedHTML},useRouter:function(){return A},useParams:function(){return S},useSelectedLayoutSegments:function(){return O},useSelectedLayoutSegment:function(){return p},redirect:function(){return E.redirect},notFound:function(){return c.notFound}});let r=n(67294),o=n(27473),i=n(35802),a=n(32665),s=n(43512),l=n(98751),E=n(96885),c=n(86323),u=Symbol("internal for urlsearchparams readonly");function T(){return Error("ReadonlyURLSearchParams cannot be modified")}class R{[Symbol.iterator](){return this[u][Symbol.iterator]()}append(){throw T()}delete(){throw T()}set(){throw T()}sort(){throw T()}constructor(e){this[u]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e)}}function d(){(0,a.clientHookInServerComponentError)("useSearchParams");let e=(0,r.useContext)(i.SearchParamsContext),t=(0,r.useMemo)(()=>e?new R(e):null,[e]);return t}function f(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,r.useContext)(i.PathnameContext)}function A(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,r.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function S(){(0,a.clientHookInServerComponentError)("useParams");let e=(0,r.useContext)(o.GlobalLayoutRouterContext);return e?function e(t,n){void 0===n&&(n={});let r=t[1];for(let t of Object.values(r)){let r=t[0],o=Array.isArray(r),i=o?r[1]:r;!i||i.startsWith("__PAGE__")||(o&&(n[r[0]]=r[1]),n=e(t,n))}return n}(e.tree):null}function O(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,r.useContext)(o.LayoutRouterContext);return function e(t,n,r,o){let i;if(void 0===r&&(r=!0),void 0===o&&(o=[]),r)i=t[1][n];else{var a;let e=t[1];i=null!=(a=e.children)?a:Object.values(e)[0]}if(!i)return o;let l=i[0],E=(0,s.getSegmentValue)(l);return!E||E.startsWith("__PAGE__")?o:(o.push(E),e(i,n,!1,o))}(t,e)}function p(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=O(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86323:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{notFound:function(){return r},isNotFoundError:function(){return o}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function o(e){return(null==e?void 0:e.digest)===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96885:function(e,t,n){"use strict";var r,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return s},redirect:function(){return l},isRedirectError:function(){return E},getURLFromRedirectError:function(){return c},getRedirectTypeFromError:function(){return u}});let i=n(68214),a="NEXT_REDIRECT";function s(e,t){let n=Error(a);n.digest=a+";"+t+";"+e;let r=i.requestAsyncStorage.getStore();return r&&(n.mutableCookies=r.mutableCookies),n}function l(e,t){throw void 0===t&&(t="replace"),s(e,t)}function E(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,r]=e.digest.split(";",3);return t===a&&("replace"===n||"push"===n)&&"string"==typeof r}function c(e){return E(e)?e.digest.split(";",3)[2]:null}function u(e){if(!E(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(o=r||(r={})).push="push",o.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43512:function(e,t){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29382:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return o},ACTION_NAVIGATE:function(){return i},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return l},ACTION_FAST_REFRESH:function(){return E},ACTION_SERVER_ACTION:function(){return c}});let o="refresh",i="navigate",a="restore",s="server-patch",l="prefetch",E="fast-refresh",c="server-action";(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75476:function(e,t){"use strict";function n(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69873:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return O}});let r=n(38754),o=n(61757),i=o._(n(67294)),a=r._(n(68965)),s=n(38083),l=n(2478),E=n(76226);n(59941);let c=r._(n(31720)),u={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function T(e){return void 0!==e.default}function R(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function d(e,t,n,r,o,i,a){if(!e||e["data-loaded-src"]===t)return;e["data-loaded-src"]=t;let s="decode"in e?e.decode():Promise.resolve();s.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("blur"===n&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,o=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==o?void 0:o.current)&&o.current(e)}})}function f(e){let[t,n]=i.version.split("."),r=parseInt(t,10),o=parseInt(n,10);return r>18||18===r&&o>=3?{fetchPriority:e}:{fetchpriority:e}}let A=(0,i.forwardRef)((e,t)=>{let{imgAttributes:n,heightInt:r,widthInt:o,qualityInt:a,className:s,imgStyle:l,blurStyle:E,isLazy:c,fetchPriority:u,fill:T,placeholder:R,loading:A,srcString:S,config:O,unoptimized:p,loader:N,onLoadRef:I,onLoadingCompleteRef:h,setBlurComplete:_,setShowAltText:m,onLoad:C,onError:L,...g}=e;return A=c?"lazy":A,i.default.createElement("img",{...g,...f(u),loading:A,width:o,height:r,decoding:"async","data-nimg":T?"fill":"1",className:s,style:{...l,...E},...n,ref:(0,i.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(L&&(e.src=e.src),e.complete&&d(e,S,R,I,h,_,p))},[S,R,I,h,_,L,p,t]),onLoad:e=>{let t=e.currentTarget;d(t,S,R,I,h,_,p)},onError:e=>{m(!0),"blur"===R&&_(!0),L&&L(e)}})}),S=(0,i.forwardRef)((e,t)=>{var n;let r,o,{src:d,sizes:S,unoptimized:O=!1,priority:p=!1,loading:N,className:I,quality:h,width:_,height:m,fill:C,style:L,onLoad:g,onLoadingComplete:v,placeholder:P="empty",blurDataURL:y,fetchPriority:D,layout:M,objectFit:b,objectPosition:U,lazyBoundary:x,lazyRoot:w,...G}=e,F=(0,i.useContext)(E.ImageConfigContext),H=(0,i.useMemo)(()=>{let e=u||F||l.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[F]),B=G.loader||c.default;delete G.loader;let Y="__next_img_default"in B;if(Y){if("custom"===H.loader)throw Error('Image with src "'+d+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=B;B=t=>{let{config:n,...r}=t;return e(r)}}if(M){"fill"===M&&(C=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[M];e&&(L={...L,...e});let t={responsive:"100vw",fill:"100vw"}[M];t&&!S&&(S=t)}let k="",V=R(_),$=R(m);if("object"==typeof(n=d)&&(T(n)||void 0!==n.src)){let e=T(d)?d.default:d;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(r=e.blurWidth,o=e.blurHeight,y=y||e.blurDataURL,k=e.src,!C){if(V||$){if(V&&!$){let t=V/e.width;$=Math.round(e.height*t)}else if(!V&&$){let t=$/e.height;V=Math.round(e.width*t)}}else V=e.width,$=e.height}}let W=!p&&("lazy"===N||void 0===N);(!(d="string"==typeof d?d:k)||d.startsWith("data:")||d.startsWith("blob:"))&&(O=!0,W=!1),H.unoptimized&&(O=!0),Y&&d.endsWith(".svg")&&!H.dangerouslyAllowSVG&&(O=!0),p&&(D="high");let[Z,j]=(0,i.useState)(!1),[X,K]=(0,i.useState)(!1),z=R(h),J=Object.assign(C?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:b,objectPosition:U}:{},X?{}:{color:"transparent"},L),q="blur"===P&&y&&!Z?{backgroundSize:J.objectFit||"cover",backgroundPosition:J.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'+(0,s.getImageBlurSvg)({widthInt:V,heightInt:$,blurWidth:r,blurHeight:o,blurDataURL:y,objectFit:J.objectFit})+'")'}:{},Q=function(e){let{config:t,src:n,unoptimized:r,width:o,quality:i,sizes:a,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:E}=function(e,t,n){let{deviceSizes:r,allSizes:o}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:o,kind:"w"}}if("number"!=typeof t)return{widths:r,kind:"w"};let i=[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))];return{widths:i,kind:"x"}}(t,o,a),c=l.length-1;return{sizes:a||"w"!==E?a:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:i,width:e})+" "+("w"===E?e:r+1)+E).join(", "),src:s({config:t,src:n,quality:i,width:l[c]})}}({config:H,src:d,unoptimized:O,width:V,quality:z,sizes:S,loader:B}),ee=d,et=(0,i.useRef)(g);(0,i.useEffect)(()=>{et.current=g},[g]);let en=(0,i.useRef)(v);(0,i.useEffect)(()=>{en.current=v},[v]);let er={isLazy:W,imgAttributes:Q,heightInt:$,widthInt:V,qualityInt:z,className:I,imgStyle:J,blurStyle:q,loading:N,config:H,fetchPriority:D,fill:C,unoptimized:O,placeholder:P,loader:B,srcString:ee,onLoadRef:et,onLoadingCompleteRef:en,setBlurComplete:j,setShowAltText:K,...G};return i.default.createElement(i.default.Fragment,null,i.default.createElement(A,{...er,ref:t}),p?i.default.createElement(a.default,null,i.default.createElement("link",{key:"__nimg-"+Q.src+Q.srcSet+Q.sizes,rel:"preload",as:"image",href:Q.srcSet?void 0:Q.src,imageSrcSet:Q.srcSet,imageSizes:Q.sizes,crossOrigin:G.crossOrigin,referrerPolicy:G.referrerPolicy,...f(D)})):null)}),O=S;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9940:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return N}});let r=n(38754),o=r._(n(67294)),i=n(65722),a=n(65723),s=n(28904),l=n(95514),E=n(27521),c=n(44293),u=n(27473),T=n(81307),R=n(75476),d=n(66318),f=n(29382),A=new Set;function S(e,t,n,r,o,i){if(!i&&!(0,a.isLocalURL)(t))return;if(!r.bypassPrefetchedCheck){let o=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,i=t+"%"+n+"%"+o;if(A.has(i))return;A.add(i)}let s=i?e.prefetch(t,o):e.prefetch(t,n,r);Promise.resolve(s).catch(e=>{})}function O(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let p=o.default.forwardRef(function(e,t){let n,r;let{href:s,as:A,children:p,prefetch:N=null,passHref:I,replace:h,shallow:_,scroll:m,locale:C,onClick:L,onMouseEnter:g,onTouchStart:v,legacyBehavior:P=!1,...y}=e;n=p,P&&("string"==typeof n||"number"==typeof n)&&(n=o.default.createElement("a",null,n));let D=!1!==N,M=null===N?f.PrefetchKind.AUTO:f.PrefetchKind.FULL,b=o.default.useContext(c.RouterContext),U=o.default.useContext(u.AppRouterContext),x=null!=b?b:U,w=!b,{href:G,as:F}=o.default.useMemo(()=>{if(!b){let e=O(s);return{href:e,as:A?O(A):e}}let[e,t]=(0,i.resolveHref)(b,s,!0);return{href:e,as:A?(0,i.resolveHref)(b,A):t||e}},[b,s,A]),H=o.default.useRef(G),B=o.default.useRef(F);P&&(r=o.default.Children.only(n));let Y=P?r&&"object"==typeof r&&r.ref:t,[k,V,$]=(0,T.useIntersection)({rootMargin:"200px"}),W=o.default.useCallback(e=>{(B.current!==F||H.current!==G)&&($(),B.current=F,H.current=G),k(e),Y&&("function"==typeof Y?Y(e):"object"==typeof Y&&(Y.current=e))},[F,Y,G,$,k]);o.default.useEffect(()=>{x&&V&&D&&S(x,G,F,{locale:C},{kind:M},w)},[F,G,V,C,D,null==b?void 0:b.locale,x,w,M]);let Z={ref:W,onClick(e){P||"function"!=typeof L||L(e),P&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),x&&!e.defaultPrevented&&function(e,t,n,r,i,s,l,E,c,u){let{nodeName:T}=e.currentTarget,R="A"===T.toUpperCase();if(R&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let d=()=>{"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:s,locale:E,scroll:l}):t[i?"replace":"push"](r||n,{forceOptimisticNavigation:!u})};c?o.default.startTransition(d):d()}(e,x,G,F,h,_,m,C,w,D)},onMouseEnter(e){P||"function"!=typeof g||g(e),P&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),x&&(D||!w)&&S(x,G,F,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:M},w)},onTouchStart(e){P||"function"!=typeof v||v(e),P&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),x&&(D||!w)&&S(x,G,F,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:M},w)}};if((0,l.isAbsoluteUrl)(F))Z.href=F;else if(!P||I||"a"===r.type&&!("href"in r.props)){let e=void 0!==C?C:null==b?void 0:b.locale,t=(null==b?void 0:b.isLocaleDomain)&&(0,R.getDomainLocale)(F,e,null==b?void 0:b.locales,null==b?void 0:b.domainLocales);Z.href=t||(0,d.addBasePath)((0,E.addLocale)(F,e,null==b?void 0:b.defaultLocale))}return P?o.default.cloneElement(r,Z):o.default.createElement("a",{...y,...Z},n)}),N=p;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81307:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(67294),o=n(82997),i="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,E=l||!i,[c,u]=(0,r.useState)(!1),T=(0,r.useRef)(null),R=(0,r.useCallback)(e=>{T.current=e},[]);(0,r.useEffect)(()=>{if(i){if(E||c)return;let e=T.current;if(e&&e.tagName){let r=function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let o=new Map,i=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:i,elements:o},s.push(n),a.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&u(e),{root:null==t?void 0:t.current,rootMargin:n});return r}}else if(!c){let e=(0,o.requestIdleCallback)(()=>u(!0));return()=>(0,o.cancelIdleCallback)(e)}},[E,n,t,c,T.current]);let d=(0,r.useCallback)(()=>{u(!1)},[]);return[R,c,d]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38083:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:o,blurDataURL:i,objectFit:a}=e,s=r||t,l=o||n,E=i.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return s&&l?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 "+s+" "+l+"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+(r&&o?"1":"20")+"'/%3E"+E+"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='"+i+"'/%3E%3C/svg%3E":"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' preserveAspectRatio='"+("contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' x='0' y='0' height='100%25' width='100%25' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},31720:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:o}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(o||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},98751:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return a}});let r=n(61757),o=r._(n(67294)),i=o.default.createContext(null);function a(e){let t=(0,o.useContext)(i);t&&t(e)}},26466:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return en}});var r=n(85893),o=n(41468),i=n(82353),a=n(25519),s=n(7134),l=n(93967),E=n.n(l),c=n(67294),u=function(e){let{onlyAvatar:t=!1}=e,[n,o]=(0,c.useState)();return(0,c.useEffect)(()=>{try{var e;let t=JSON.parse(null!==(e=localStorage.getItem(a.C9))&&void 0!==e?e:"");o(t)}catch(e){return}},[]),(0,r.jsx)("div",{className:"flex flex-1 items-center justify-center",children:(0,r.jsx)("div",{className:E()("flex items-center group w-full",{"justify-center":t,"justify-between":!t}),children:(0,r.jsxs)("span",{className:"flex gap-2 items-center",children:[(0,r.jsx)(s.C,{src:null==n?void 0:n.avatar_url,className:"bg-gradient-to-tr from-[#31afff] to-[#1677ff] cursor-pointer",children:null==n?void 0:n.nick_name}),(0,r.jsx)("span",{className:E()("text-sm",{hidden:t}),children:null==n?void 0:n.nick_name})]})})})},T=n(16165),R=n(10524),d=n(84477),f=n(19944),A=n(83062),S=n(55241),O=n(30381),p=n.n(O);n(83839);var N=n(25675),I=n.n(N),h=n(41664),_=n.n(h),m=n(11163),C=n(67421),L=function(){let{isMenuExpand:e,setIsMenuExpand:t,mode:n,setMode:s,adminList:l}=(0,c.useContext)(o.p),{pathname:O}=(0,m.useRouter)(),{t:N,i18n:h}=(0,C.$G)(),[L,g]=(0,c.useState)("/logo_zh_latest.png"),v=(0,c.useMemo)(()=>{let{user_id:e}=JSON.parse(localStorage.getItem(a.C9)||"{}");return l.some(t=>t.user_id===e)},[l]),P=(0,c.useCallback)(()=>{t(!e)},[e,t]),y=(0,c.useCallback)(()=>{let e="light"===n?"dark":"light";s(e),localStorage.setItem(a.he,e)},[n,s]),D=(0,c.useCallback)(()=>{let e="en"===h.language?"zh":"en";h.changeLanguage(e),"zh"===e&&p().locale("zh-cn"),"en"===e&&p().locale("en"),localStorage.setItem(a.Yl,e)},[h]),M=(0,c.useMemo)(()=>{let t=[{key:"theme",name:N("Theme"),icon:"dark"===n?(0,r.jsx)(T.Z,{component:i.FD}):(0,r.jsx)(T.Z,{component:i.ol}),items:[{key:"light",label:(0,r.jsxs)("div",{className:"py-1 flex justify-between gap-8 ",children:[(0,r.jsxs)("span",{className:"flex gap-2 items-center",children:[(0,r.jsx)(I(),{src:"/pictures/theme_light.png",alt:"english",width:38,height:32}),(0,r.jsx)("span",{children:"Light"})]}),(0,r.jsx)("span",{className:E()({block:"light"===n,hidden:"light"!==n}),children:"✓"})]})},{key:"dark",label:(0,r.jsxs)("div",{className:"py-1 flex justify-between gap-8 ",children:[(0,r.jsxs)("span",{className:"flex gap-2 items-center",children:[(0,r.jsx)(I(),{src:"/pictures/theme_dark.png",alt:"english",width:38,height:32}),(0,r.jsx)("span",{children:"Dark"})]}),(0,r.jsx)("span",{className:E()({block:"dark"===n,hidden:"dark"!==n}),children:"✓"})]})}],onClick:y,onSelect:e=>{let{key:t}=e;n!==t&&(s(t),localStorage.setItem(a.he,t))},defaultSelectedKeys:[n],placement:"topLeft"},{key:"language",name:N("language"),icon:(0,r.jsx)(R.Z,{}),items:[{key:"en",label:(0,r.jsxs)("div",{className:"py-1 flex justify-between gap-8 ",children:[(0,r.jsxs)("span",{className:"flex gap-2",children:[(0,r.jsx)(I(),{src:"/icons/english.png",alt:"english",width:21,height:21}),(0,r.jsx)("span",{children:"English"})]}),(0,r.jsx)("span",{className:E()({block:"en"===h.language,hidden:"en"!==h.language}),children:"✓"})]})},{key:"zh",label:(0,r.jsxs)("div",{className:"py-1 flex justify-between gap-8 ",children:[(0,r.jsxs)("span",{className:"flex gap-2",children:[(0,r.jsx)(I(),{src:"/icons/zh.png",alt:"english",width:21,height:21}),(0,r.jsx)("span",{children:"简体中文"})]}),(0,r.jsx)("span",{className:E()({block:"zh"===h.language,hidden:"zh"!==h.language}),children:"✓"})]})}],onSelect:e=>{let{key:t}=e;h.language!==t&&(h.changeLanguage(t),"zh"===t&&p().locale("zh-cn"),"en"===t&&p().locale("en"),localStorage.setItem(a.Yl,t))},onClick:D,defaultSelectedKeys:[h.language]},{key:"fold",name:N(e?"Close_Sidebar":"Show_Sidebar"),icon:e?(0,r.jsx)(d.Z,{}):(0,r.jsx)(f.Z,{}),onClick:P,noDropdownItem:!0}];return t},[N,n,y,h,D,e,P,s]),b=(0,c.useMemo)(()=>{let e=[{key:"chat",name:N("chat_online"),icon:(0,r.jsx)(I(),{src:"/chat"===O?"/pictures/chat_active.png":"/pictures/chat.png",alt:"chat_image",width:40,height:40},"image_chat"),path:"/chat",isActive:O.startsWith("/chat")},{key:"explore",name:N("explore"),isActive:"/"===O,icon:(0,r.jsx)(I(),{src:"/"===O?"/pictures/explore_active.png":"/pictures/explore.png",alt:"construct_image",width:40,height:40},"image_explore"),path:"/"},{key:"construct",name:N("construct"),isActive:O.startsWith("/construct"),icon:(0,r.jsx)(I(),{src:O.startsWith("/construct")?"/pictures/app_active.png":"/pictures/app.png",alt:"construct_image",width:40,height:40},"image_construct"),path:"/construct/app"}];return v&&e.push({key:"evaluation",name:"场景评测",icon:(0,r.jsx)(I(),{src:O.startsWith("/evaluation")?"/pictures/app_active.png":"/pictures/app.png",alt:"construct_image",width:40,height:40},"image_construct"),path:"/evaluation",isActive:"/evaluation"===O}),e},[N,O,v]);return((0,c.useEffect)(()=>{let e=h.language;"zh"===e&&p().locale("zh-cn"),"en"===e&&p().locale("en")},[]),(0,c.useEffect)(()=>{g("dark"===n?"/logo_s_latest.png":"/logo_zh_latest.png")},[n]),e)?(0,r.jsxs)("div",{className:"flex flex-col justify-between h-screen px-4 pt-4 bg-bar dark:bg-[#232734] animate-fade animate-duration-300",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(_(),{href:"/",className:"flex items-center justify-center p-2 pb-4",children:(0,r.jsx)(I(),{src:e?L:"/LOGO_SMALL.png",alt:"DB-GPT",width:180,height:40})}),(0,r.jsx)("div",{className:"flex flex-col gap-4",children:b.map(e=>(0,r.jsxs)(_(),{href:e.path,className:E()("flex items-center w-full h-12 px-4 cursor-pointer hover:bg-[#F1F5F9] dark:hover:bg-theme-dark hover:rounded-xl",{"bg-white rounded-xl dark:bg-black":e.isActive}),children:[(0,r.jsx)("div",{className:"mr-3",children:e.icon}),(0,r.jsx)("span",{className:"text-sm",children:N(e.name)})]},e.key))})]}),(0,r.jsxs)("div",{className:"pt-4",children:[(0,r.jsx)("span",{className:E()("flex items-center w-full h-12 px-4 bg-[#F1F5F9] dark:bg-theme-dark rounded-xl"),children:(0,r.jsx)("div",{className:"mr-3 w-full",children:(0,r.jsx)(u,{})})}),(0,r.jsx)("div",{className:"flex items-center justify-around py-4 mt-2 border-t border-dashed border-gray-200 dark:border-gray-700",children:M.map(e=>(0,r.jsx)("div",{children:(0,r.jsx)(S.Z,{content:e.name,children:(0,r.jsx)("div",{className:"flex-1 flex items-center justify-center cursor-pointer text-xl",onClick:e.onClick,children:e.icon})})},e.key))})]})]}):(0,r.jsxs)("div",{className:"flex flex-col justify-between pt-4 h-screen bg-bar dark:bg-[#232734] animate-fade animate-duration-300",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(_(),{href:"/",className:"flex justify-center items-center pb-4",children:(0,r.jsx)(I(),{src:e?L:"/LOGO_SMALL.png",alt:"DB-GPT",width:40,height:40})}),(0,r.jsx)("div",{className:"flex flex-col gap-4 items-center",children:b.map(e=>(0,r.jsx)(_(),{className:"h-12 flex items-center",href:e.path,children:null==e?void 0:e.icon},e.key))})]}),(0,r.jsxs)("div",{className:"py-4",children:[(0,r.jsx)(u,{onlyAvatar:!0}),M.filter(e=>e.noDropdownItem).map(e=>(0,r.jsx)(A.Z,{title:e.name,placement:"right",children:(0,r.jsx)("div",{className:"flex items-center justify-center mx-auto rounded w-14 h-14 text-xl hover:bg-[#F1F5F9] dark:hover:bg-theme-dark transition-colors cursor-pointer ".concat(""),onClick:e.onClick,children:e.icon})},e.key))]})]})},g=n(93045),v=n(14079),P=n(12652),y=()=>(0,r.jsx)(P.Z.Group,{trigger:"hover",icon:(0,r.jsx)(g.Z,{}),children:(0,r.jsx)(P.Z,{icon:(0,r.jsx)(v.Z,{}),href:"http://docs.dbgpt.cn",target:"_blank",tooltip:"Doucuments"})}),D=n(25446),M=n(67164),b=n(2790),U=n(1393),x=n(25976),w=n(33083),G=n(372),F=n(69594),H=n(84898),B=n(57),Y=n(10274);let k=(e,t)=>new Y.C(e).setAlpha(t).toRgbString(),V=(e,t)=>{let n=new Y.C(e);return n.lighten(t).toHexString()},$=e=>{let t=(0,H.R_)(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},W=(e,t)=>{let n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:k(r,.85),colorTextSecondary:k(r,.65),colorTextTertiary:k(r,.45),colorTextQuaternary:k(r,.25),colorFill:k(r,.18),colorFillSecondary:k(r,.12),colorFillTertiary:k(r,.08),colorFillQuaternary:k(r,.04),colorBgElevated:V(n,12),colorBgContainer:V(n,8),colorBgLayout:V(n,0),colorBgSpotlight:V(n,26),colorBgBlur:k(r,.04),colorBorder:V(n,26),colorBorderSecondary:V(n,19)}};var Z={defaultSeed:w.u_.token,useToken:function(){let[e,t,n]=(0,x.ZP)();return{theme:e,token:t,hashId:n}},defaultAlgorithm:M.Z,darkAlgorithm:(e,t)=>{let n=Object.keys(b.M).map(t=>{let n=(0,H.R_)(e[t],{theme:"dark"});return Array(10).fill(1).reduce((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{}),r=null!=t?t:(0,M.Z)(e);return Object.assign(Object.assign(Object.assign({},r),n),(0,B.Z)(e,{generateColorPalettes:$,generateNeutralColorPalettes:W}))},compactAlgorithm:(e,t)=>{let n=null!=t?t:(0,M.Z)(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){let{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}(null!=t?t:e)),(0,F.Z)(r)),{controlHeight:o}),(0,G.Z)(Object.assign(Object.assign({},n),{controlHeight:o})))},getDesignToken:e=>{let t=(null==e?void 0:e.algorithm)?(0,D.jG)(e.algorithm):(0,D.jG)(M.Z),n=Object.assign(Object.assign({},b.Z),null==e?void 0:e.token);return(0,D.t2)(n,{override:null==e?void 0:e.token},t,U.Z)},defaultConfig:w.u_,_internalContext:w.Mj},j=n(28459),X=n(31418),K=n(18253),z=n(82925),J=n(9008),q=n.n(J);n(64371),n(90833),n(80864);let Q=(e,t)=>({...Z.darkAlgorithm(e,t),colorBgBase:"#232734",colorBorder:"#828282",colorBgContainer:"#232734"});function ee(e){let{children:t}=e,{mode:n}=(0,c.useContext)(o.p),{i18n:i}=(0,C.$G)();return(0,c.useEffect)(()=>{if(n){var e,t,r,o,i,a;null===(e=document.body)||void 0===e||null===(t=e.classList)||void 0===t||t.add(n),"light"===n?null===(r=document.body)||void 0===r||null===(o=r.classList)||void 0===o||o.remove("dark"):null===(i=document.body)||void 0===i||null===(a=i.classList)||void 0===a||a.remove("light")}},[n]),(0,c.useEffect)(()=>{var e;null===(e=i.changeLanguage)||void 0===e||e.call(i,window.localStorage.getItem(a.Yl)||"zh")},[i]),(0,r.jsx)("div",{children:t})}function et(e){let{children:t}=e,{isMenuExpand:n,mode:i}=(0,c.useContext)(o.p),{i18n:s}=(0,C.$G)(),[l,u]=(0,c.useState)(!1),T=(0,m.useRouter)(),R=async()=>{u(!1);let e={user_channel:"dbgpt",user_no:"001",nick_name:"dbgpt"};e&&(localStorage.setItem(a.C9,JSON.stringify(e)),localStorage.setItem(a.Sc,Date.now().toString()),u(!0))};return((0,c.useEffect)(()=>{R()},[]),l)?(0,r.jsx)(j.ZP,{locale:"en"===s.language?K.Z:z.Z,theme:{token:{colorPrimary:"#0C75FC",borderRadius:4},algorithm:"dark"===i?Q:void 0},children:(0,r.jsx)(X.Z,{children:T.pathname.includes("mobile")?(0,r.jsx)(r.Fragment,{children:t}):(0,r.jsxs)("div",{className:"flex w-screen h-screen overflow-hidden",children:[(0,r.jsx)(q(),{children:(0,r.jsx)("meta",{name:"viewport",content:"initial-scale=1.0, width=device-width, maximum-scale=1"})}),"/construct/app/extra"!==T.pathname&&(0,r.jsx)("div",{className:E()("transition-[width]",n?"w-60":"w-20","hidden","md:block"),children:(0,r.jsx)(L,{})}),(0,r.jsx)("div",{className:"flex flex-col flex-1 relative overflow-hidden",children:t}),(0,r.jsx)(y,{})]})})}):null}var en=function(e){let{Component:t,pageProps:n}=e;return(0,r.jsx)(o.R,{children:(0,r.jsx)(ee,{children:(0,r.jsx)(et,{children:(0,r.jsx)(t,{...n})})})})}},19284:function(e,t,n){"use strict";n.d(t,{Hf:function(){return r},Me:function(){return o},S$:function(){return i}});let r={proxyllm:{label:"Proxy LLM",icon:"/models/chatgpt.png"},"flan-t5-base":{label:"flan-t5-base",icon:"/models/google.png"},"vicuna-13b":{label:"vicuna-13b",icon:"/models/vicuna.jpeg"},"vicuna-7b":{label:"vicuna-7b",icon:"/models/vicuna.jpeg"},"vicuna-13b-v1.5":{label:"vicuna-13b-v1.5",icon:"/models/vicuna.jpeg"},"vicuna-7b-v1.5":{label:"vicuna-7b-v1.5",icon:"/models/vicuna.jpeg"},"codegen2-1b":{label:"codegen2-1B",icon:"/models/vicuna.jpeg"},"codet5p-2b":{label:"codet5p-2b",icon:"/models/vicuna.jpeg"},"chatglm-6b-int4":{label:"chatglm-6b-int4",icon:"/models/chatglm.png"},"chatglm-6b":{label:"chatglm-6b",icon:"/models/chatglm.png"},"chatglm2-6b":{label:"chatglm2-6b",icon:"/models/chatglm.png"},"chatglm2-6b-int4":{label:"chatglm2-6b-int4",icon:"/models/chatglm.png"},"guanaco-33b-merged":{label:"guanaco-33b-merged",icon:"/models/huggingface.svg"},"falcon-40b":{label:"falcon-40b",icon:"/models/falcon.jpeg"},"gorilla-7b":{label:"gorilla-7b",icon:"/models/gorilla.png"},"gptj-6b":{label:"ggml-gpt4all-j-v1.3-groovy.bin",icon:""},chatgpt_proxyllm:{label:"chatgpt_proxyllm",icon:"/models/chatgpt.png"},bard_proxyllm:{label:"bard_proxyllm",icon:"/models/bard.gif"},claude_proxyllm:{label:"claude_proxyllm",icon:"/models/claude.png"},wenxin_proxyllm:{label:"wenxin_proxyllm",icon:""},tongyi_proxyllm:{label:"tongyi_proxyllm",icon:"/models/qwen2.png"},zhipu_proxyllm:{label:"zhipu_proxyllm",icon:"/models/zhipu.png"},yi_proxyllm:{label:"yi_proxyllm",icon:"/models/yi.svg"},"yi-34b-chat":{label:"yi-34b-chat",icon:"/models/yi.svg"},"yi-34b-chat-8bits":{label:"yi-34b-chat-8bits",icon:"/models/yi.svg"},"yi-34b-chat-4bits":{label:"yi-34b-chat-4bits",icon:"/models/yi.svg"},"yi-6b-chat":{label:"yi-6b-chat",icon:"/models/yi.svg"},bailing_proxyllm:{label:"bailing_proxyllm",icon:"/models/bailing.svg"},antglm_proxyllm:{label:"antglm_proxyllm",icon:"/models/huggingface.svg"},chatglm_proxyllm:{label:"chatglm_proxyllm",icon:"/models/chatglm.png"},qwen7b_proxyllm:{label:"qwen7b_proxyllm",icon:"/models/tongyi.apng"},qwen72b_proxyllm:{label:"qwen72b_proxyllm",icon:"/models/qwen2.png"},qwen110b_proxyllm:{label:"qwen110b_proxyllm",icon:"/models/qwen2.png"},"llama-2-7b":{label:"Llama-2-7b-chat-hf",icon:"/models/llama.jpg"},"llama-2-13b":{label:"Llama-2-13b-chat-hf",icon:"/models/llama.jpg"},"llama-2-70b":{label:"Llama-2-70b-chat-hf",icon:"/models/llama.jpg"},"baichuan-13b":{label:"Baichuan-13B-Chat",icon:"/models/baichuan.png"},"baichuan-7b":{label:"baichuan-7b",icon:"/models/baichuan.png"},"baichuan2-7b":{label:"Baichuan2-7B-Chat",icon:"/models/baichuan.png"},"baichuan2-13b":{label:"Baichuan2-13B-Chat",icon:"/models/baichuan.png"},"wizardlm-13b":{label:"WizardLM-13B-V1.2",icon:"/models/wizardlm.png"},"llama-cpp":{label:"ggml-model-q4_0.bin",icon:"/models/huggingface.svg"},"internlm-7b":{label:"internlm-chat-7b-v1_1",icon:"/models/internlm.png"},"internlm-7b-8k":{label:"internlm-chat-7b-8k",icon:"/models/internlm.png"},"solar-10.7b-instruct-v1.0":{label:"solar-10.7b-instruct-v1.0",icon:"/models/solar_logo.png"},bailing_65b_v21_0520_proxyllm:{label:"bailing_65b_v21_0520_proxyllm",icon:"/models/bailing.svg"}},o={proxyllm:"/models/chatgpt.png",qwen:"/models/qwen2.png",bailing:"/models/bailing.svg",antglm:"/models/huggingface.svg",chatgpt:"/models/chatgpt.png",vicuna:"/models/vicuna.jpeg",flan:"/models/google.png",code:"/models/vicuna.jpeg",chatglm:"/models/chatglm.png",guanaco:"/models/huggingface.svg",gorilla:"/models/gorilla.png",gptj:"/models/huggingface.svg",bard:"/models/bard.gif",claude:"/models/claude.png",wenxin:"/models/huggingface.svg",tongyi:"/models/qwen2.png",zhipu:"/models/zhipu.png",llama:"/models/llama.jpg",baichuan:"/models/baichuan.png",wizardlm:"/models/wizardlm.png",internlm:"/models/internlm.png",solar:"/models/solar_logo.png"},i={mysql:{label:"MySQL",icon:"/icons/mysql.png",desc:"Fast, reliable, scalable open-source relational database management system."},oceanbase:{label:"OceanBase",icon:"/icons/oceanbase.png",desc:"An Ultra-Fast & Cost-Effective Distributed SQL Database."},mssql:{label:"MSSQL",icon:"/icons/mssql.png",desc:"Powerful, scalable, secure relational database system by Microsoft."},duckdb:{label:"DuckDB",icon:"/icons/duckdb.png",desc:"In-memory analytical database with efficient query processing."},sqlite:{label:"Sqlite",icon:"/icons/sqlite.png",desc:"Lightweight embedded relational database with simplicity and portability."},clickhouse:{label:"ClickHouse",icon:"/icons/clickhouse.png",desc:"Columnar database for high-performance analytics and real-time queries."},oracle:{label:"Oracle",icon:"/icons/oracle.png",desc:"Robust, scalable, secure relational database widely used in enterprises."},access:{label:"Access",icon:"/icons/access.png",desc:"Easy-to-use relational database for small-scale applications by Microsoft."},mongodb:{label:"MongoDB",icon:"/icons/mongodb.png",desc:"Flexible, scalable NoSQL document database for web and mobile apps."},doris:{label:"ApacheDoris",icon:"/icons/doris.png",desc:"A new-generation open-source real-time data warehouse."},starrocks:{label:"StarRocks",icon:"/icons/starrocks.png",desc:"An Open-Source, High-Performance Analytical Database."},db2:{label:"DB2",icon:"/icons/db2.png",desc:"Scalable, secure relational database system developed by IBM."},hbase:{label:"HBase",icon:"/icons/hbase.png",desc:"Distributed, scalable NoSQL database for large structured/semi-structured data."},redis:{label:"Redis",icon:"/icons/redis.png",desc:"Fast, versatile in-memory data structure store as cache, DB, or broker."},cassandra:{label:"Cassandra",icon:"/icons/cassandra.png",desc:"Scalable, fault-tolerant distributed NoSQL database for large data."},couchbase:{label:"Couchbase",icon:"/icons/couchbase.png",desc:"High-performance NoSQL document database with distributed architecture."},omc:{label:"Omc",icon:"/icons/odc.png",desc:"Omc meta data."},postgresql:{label:"PostgreSQL",icon:"/icons/postgresql.png",desc:"Powerful open-source relational database with extensibility and SQL standards."},vertica:{label:"Vertica",icon:"/icons/vertica.png",desc:"Vertica is a strongly consistent, ACID-compliant, SQL data warehouse, built for the scale and complexity of today’s data-driven world."},spark:{label:"Spark",icon:"/icons/spark.png",desc:"Unified engine for large-scale data analytics."},hive:{label:"Hive",icon:"/icons/hive.png",desc:"A distributed fault-tolerant data warehouse system."},space:{label:"Space",icon:"/icons/knowledge.png",desc:"knowledge analytics."},tugraph:{label:"TuGraph",icon:"/icons/tugraph.png",desc:"TuGraph is a high-performance graph database jointly developed by Ant Group and Tsinghua University."}}},25519:function(e,t,n){"use strict";var r,o;n.d(t,{gp:function(){return i},rU:function(){return l},Yl:function(){return s},he:function(){return a},C9:function(){return E},Sc:function(){return c}}),(o=r||(r={}))[o.NO_PERMISSION=-1]="NO_PERMISSION",o[o.SERVICE_ERROR=-2]="SERVICE_ERROR",o[o.INVALID=-3]="INVALID",o[o.IS_EXITS=-4]="IS_EXITS",o[o.MISSING_PARAMETER=-5]="MISSING_PARAMETER";let i="user-id",a="__db_gpt_theme_key",s="__db_gpt_lng_key",l="__db_gpt_im_key",E="__db_gpt_uinfo_key",c="__db_gpt_uinfo_vt_key"},62418:function(e,t,n){"use strict";let r,o,i;n.d(t,{zN:function(){return rr},rU:function(){return rn},S$:function(){return n7.S$},_m:function(){return ro},a_:function(){return re},n5:function(){return rt}});var a,s,l,E={};n.r(E),n.d(E,{bigquery:function(){return F},db2:function(){return X},hive:function(){return er},mariadb:function(){return eT},mysql:function(){return eI},n1ql:function(){return ey},plsql:function(){return eH},postgresql:function(){return eX},redshift:function(){return e4},singlestoredb:function(){return tj},snowflake:function(){return t2},spark:function(){return tn},sql:function(){return tN},sqlite:function(){return tu},transactsql:function(){return tF},trino:function(){return tP}}),(a=r||(r={})).QUOTED_IDENTIFIER="QUOTED_IDENTIFIER",a.IDENTIFIER="IDENTIFIER",a.STRING="STRING",a.VARIABLE="VARIABLE",a.RESERVED_KEYWORD="RESERVED_KEYWORD",a.RESERVED_FUNCTION_NAME="RESERVED_FUNCTION_NAME",a.RESERVED_PHRASE="RESERVED_PHRASE",a.RESERVED_SET_OPERATION="RESERVED_SET_OPERATION",a.RESERVED_CLAUSE="RESERVED_CLAUSE",a.RESERVED_SELECT="RESERVED_SELECT",a.RESERVED_JOIN="RESERVED_JOIN",a.ARRAY_IDENTIFIER="ARRAY_IDENTIFIER",a.ARRAY_KEYWORD="ARRAY_KEYWORD",a.CASE="CASE",a.END="END",a.WHEN="WHEN",a.ELSE="ELSE",a.THEN="THEN",a.LIMIT="LIMIT",a.BETWEEN="BETWEEN",a.AND="AND",a.OR="OR",a.XOR="XOR",a.OPERATOR="OPERATOR",a.COMMA="COMMA",a.ASTERISK="ASTERISK",a.DOT="DOT",a.OPEN_PAREN="OPEN_PAREN",a.CLOSE_PAREN="CLOSE_PAREN",a.LINE_COMMENT="LINE_COMMENT",a.BLOCK_COMMENT="BLOCK_COMMENT",a.NUMBER="NUMBER",a.NAMED_PARAMETER="NAMED_PARAMETER",a.QUOTED_PARAMETER="QUOTED_PARAMETER",a.NUMBERED_PARAMETER="NUMBERED_PARAMETER",a.POSITIONAL_PARAMETER="POSITIONAL_PARAMETER",a.CUSTOM_PARAMETER="CUSTOM_PARAMETER",a.DELIMITER="DELIMITER",a.EOF="EOF";let c=e=>({type:r.EOF,raw:"\xabEOF\xbb",text:"\xabEOF\xbb",start:e}),u=c(1/0),T=e=>t=>t.type===e.type&&t.text===e.text,R={ARRAY:T({text:"ARRAY",type:r.RESERVED_KEYWORD}),BY:T({text:"BY",type:r.RESERVED_KEYWORD}),SET:T({text:"SET",type:r.RESERVED_CLAUSE}),STRUCT:T({text:"STRUCT",type:r.RESERVED_KEYWORD}),WINDOW:T({text:"WINDOW",type:r.RESERVED_CLAUSE})},d=e=>e===r.RESERVED_KEYWORD||e===r.RESERVED_FUNCTION_NAME||e===r.RESERVED_PHRASE||e===r.RESERVED_CLAUSE||e===r.RESERVED_SELECT||e===r.RESERVED_SET_OPERATION||e===r.RESERVED_JOIN||e===r.ARRAY_KEYWORD||e===r.CASE||e===r.END||e===r.WHEN||e===r.ELSE||e===r.THEN||e===r.LIMIT||e===r.BETWEEN||e===r.AND||e===r.OR||e===r.XOR,f=e=>e===r.AND||e===r.OR||e===r.XOR,A=e=>e.flatMap(S),S=e=>h(I(e)).map(e=>e.trim()),O=/[^[\]{}]+/y,p=/\{.*?\}/y,N=/\[.*?\]/y,I=e=>{let t=0,n=[];for(;te.trim());n.push(["",...e]),t+=o[0].length}p.lastIndex=t;let i=p.exec(e);if(i){let e=i[0].slice(1,-1).split("|").map(e=>e.trim());n.push(e),t+=i[0].length}if(!r&&!o&&!i)throw Error(`Unbalanced parenthesis in: ${e}`)}return n},h=([e,...t])=>void 0===e?[""]:h(t).flatMap(t=>e.map(e=>e.trim()+" "+t.trim())),_=e=>[...new Set(e)],m=e=>e[e.length-1],C=e=>e.sort((e,t)=>t.length-e.length||e.localeCompare(t)),L=e=>e.reduce((e,t)=>Math.max(e,t.length),0),g=e=>e.replace(/\s+/gu," "),v=e=>_(Object.values(e).flat()),P=e=>/\n/.test(e),y=v({keywords:["ALL","AND","ANY","ARRAY","AS","ASC","ASSERT_ROWS_MODIFIED","AT","BETWEEN","BY","CASE","CAST","COLLATE","CONTAINS","CREATE","CROSS","CUBE","CURRENT","DEFAULT","DEFINE","DESC","DISTINCT","ELSE","END","ENUM","ESCAPE","EXCEPT","EXCLUDE","EXISTS","EXTRACT","FALSE","FETCH","FOLLOWING","FOR","FROM","FULL","GROUP","GROUPING","GROUPS","HASH","HAVING","IF","IGNORE","IN","INNER","INTERSECT","INTERVAL","INTO","IS","JOIN","LATERAL","LEFT","LIKE","LIMIT","LOOKUP","MERGE","NATURAL","NEW","NO","NOT","NULL","NULLS","OF","ON","OR","ORDER","OUTER","OVER","PARTITION","PRECEDING","PROTO","RANGE","RECURSIVE","RESPECT","RIGHT","ROLLUP","ROWS","SELECT","SET","SOME","STRUCT","TABLE","TABLESAMPLE","THEN","TO","TREAT","TRUE","UNBOUNDED","UNION","UNNEST","USING","WHEN","WHERE","WINDOW","WITH","WITHIN"],datatypes:["ARRAY","BOOL","BYTES","DATE","DATETIME","GEOGRAPHY","INTERVAL","INT64","INT","SMALLINT","INTEGER","BIGINT","TINYINT","BYTEINT","NUMERIC","DECIMAL","BIGNUMERIC","BIGDECIMAL","FLOAT64","STRING","STRUCT","TIME","TIMEZONE"],stringFormat:["HEX","BASEX","BASE64M","ASCII","UTF-8","UTF8"],misc:["SAFE"],ddl:["LIKE","COPY","CLONE","IN","OUT","INOUT","RETURNS","LANGUAGE","CASCADE","RESTRICT","DETERMINISTIC"]}),D=v({aead:["KEYS.NEW_KEYSET","KEYS.ADD_KEY_FROM_RAW_BYTES","AEAD.DECRYPT_BYTES","AEAD.DECRYPT_STRING","AEAD.ENCRYPT","KEYS.KEYSET_CHAIN","KEYS.KEYSET_FROM_JSON","KEYS.KEYSET_TO_JSON","KEYS.ROTATE_KEYSET","KEYS.KEYSET_LENGTH"],aggregateAnalytic:["ANY_VALUE","ARRAY_AGG","AVG","CORR","COUNT","COUNTIF","COVAR_POP","COVAR_SAMP","MAX","MIN","ST_CLUSTERDBSCAN","STDDEV_POP","STDDEV_SAMP","STRING_AGG","SUM","VAR_POP","VAR_SAMP"],aggregate:["ANY_VALUE","ARRAY_AGG","ARRAY_CONCAT_AGG","AVG","BIT_AND","BIT_OR","BIT_XOR","COUNT","COUNTIF","LOGICAL_AND","LOGICAL_OR","MAX","MIN","STRING_AGG","SUM"],approximateAggregate:["APPROX_COUNT_DISTINCT","APPROX_QUANTILES","APPROX_TOP_COUNT","APPROX_TOP_SUM"],array:["ARRAY_CONCAT","ARRAY_LENGTH","ARRAY_TO_STRING","GENERATE_ARRAY","GENERATE_DATE_ARRAY","GENERATE_TIMESTAMP_ARRAY","ARRAY_REVERSE","OFFSET","SAFE_OFFSET","ORDINAL","SAFE_ORDINAL"],bitwise:["BIT_COUNT"],conversion:["PARSE_BIGNUMERIC","PARSE_NUMERIC","SAFE_CAST"],date:["CURRENT_DATE","EXTRACT","DATE","DATE_ADD","DATE_SUB","DATE_DIFF","DATE_TRUNC","DATE_FROM_UNIX_DATE","FORMAT_DATE","LAST_DAY","PARSE_DATE","UNIX_DATE"],datetime:["CURRENT_DATETIME","DATETIME","EXTRACT","DATETIME_ADD","DATETIME_SUB","DATETIME_DIFF","DATETIME_TRUNC","FORMAT_DATETIME","LAST_DAY","PARSE_DATETIME"],debugging:["ERROR"],federatedQuery:["EXTERNAL_QUERY"],geography:["S2_CELLIDFROMPOINT","S2_COVERINGCELLIDS","ST_ANGLE","ST_AREA","ST_ASBINARY","ST_ASGEOJSON","ST_ASTEXT","ST_AZIMUTH","ST_BOUNDARY","ST_BOUNDINGBOX","ST_BUFFER","ST_BUFFERWITHTOLERANCE","ST_CENTROID","ST_CENTROID_AGG","ST_CLOSESTPOINT","ST_CLUSTERDBSCAN","ST_CONTAINS","ST_CONVEXHULL","ST_COVEREDBY","ST_COVERS","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DUMP","ST_DWITHIN","ST_ENDPOINT","ST_EQUALS","ST_EXTENT","ST_EXTERIORRING","ST_GEOGFROM","ST_GEOGFROMGEOJSON","ST_GEOGFROMTEXT","ST_GEOGFROMWKB","ST_GEOGPOINT","ST_GEOGPOINTFROMGEOHASH","ST_GEOHASH","ST_GEOMETRYTYPE","ST_INTERIORRINGS","ST_INTERSECTION","ST_INTERSECTS","ST_INTERSECTSBOX","ST_ISCOLLECTION","ST_ISEMPTY","ST_LENGTH","ST_MAKELINE","ST_MAKEPOLYGON","ST_MAKEPOLYGONORIENTED","ST_MAXDISTANCE","ST_NPOINTS","ST_NUMGEOMETRIES","ST_NUMPOINTS","ST_PERIMETER","ST_POINTN","ST_SIMPLIFY","ST_SNAPTOGRID","ST_STARTPOINT","ST_TOUCHES","ST_UNION","ST_UNION_AGG","ST_WITHIN","ST_X","ST_Y"],hash:["FARM_FINGERPRINT","MD5","SHA1","SHA256","SHA512"],hll:["HLL_COUNT.INIT","HLL_COUNT.MERGE","HLL_COUNT.MERGE_PARTIAL","HLL_COUNT.EXTRACT"],interval:["MAKE_INTERVAL","EXTRACT","JUSTIFY_DAYS","JUSTIFY_HOURS","JUSTIFY_INTERVAL"],json:["JSON_EXTRACT","JSON_QUERY","JSON_EXTRACT_SCALAR","JSON_VALUE","JSON_EXTRACT_ARRAY","JSON_QUERY_ARRAY","JSON_EXTRACT_STRING_ARRAY","JSON_VALUE_ARRAY","TO_JSON_STRING"],math:["ABS","SIGN","IS_INF","IS_NAN","IEEE_DIVIDE","RAND","SQRT","POW","POWER","EXP","LN","LOG","LOG10","GREATEST","LEAST","DIV","SAFE_DIVIDE","SAFE_MULTIPLY","SAFE_NEGATE","SAFE_ADD","SAFE_SUBTRACT","MOD","ROUND","TRUNC","CEIL","CEILING","FLOOR","COS","COSH","ACOS","ACOSH","SIN","SINH","ASIN","ASINH","TAN","TANH","ATAN","ATANH","ATAN2","RANGE_BUCKET"],navigation:["FIRST_VALUE","LAST_VALUE","NTH_VALUE","LEAD","LAG","PERCENTILE_CONT","PERCENTILE_DISC"],net:["NET.IP_FROM_STRING","NET.SAFE_IP_FROM_STRING","NET.IP_TO_STRING","NET.IP_NET_MASK","NET.IP_TRUNC","NET.IPV4_FROM_INT64","NET.IPV4_TO_INT64","NET.HOST","NET.PUBLIC_SUFFIX","NET.REG_DOMAIN"],numbering:["RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","NTILE","ROW_NUMBER"],security:["SESSION_USER"],statisticalAggregate:["CORR","COVAR_POP","COVAR_SAMP","STDDEV_POP","STDDEV_SAMP","STDDEV","VAR_POP","VAR_SAMP","VARIANCE"],string:["ASCII","BYTE_LENGTH","CHAR_LENGTH","CHARACTER_LENGTH","CHR","CODE_POINTS_TO_BYTES","CODE_POINTS_TO_STRING","CONCAT","CONTAINS_SUBSTR","ENDS_WITH","FORMAT","FROM_BASE32","FROM_BASE64","FROM_HEX","INITCAP","INSTR","LEFT","LENGTH","LPAD","LOWER","LTRIM","NORMALIZE","NORMALIZE_AND_CASEFOLD","OCTET_LENGTH","REGEXP_CONTAINS","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPLACE","REPEAT","REVERSE","RIGHT","RPAD","RTRIM","SAFE_CONVERT_BYTES_TO_STRING","SOUNDEX","SPLIT","STARTS_WITH","STRPOS","SUBSTR","SUBSTRING","TO_BASE32","TO_BASE64","TO_CODE_POINTS","TO_HEX","TRANSLATE","TRIM","UNICODE","UPPER"],time:["CURRENT_TIME","TIME","EXTRACT","TIME_ADD","TIME_SUB","TIME_DIFF","TIME_TRUNC","FORMAT_TIME","PARSE_TIME"],timestamp:["CURRENT_TIMESTAMP","EXTRACT","STRING","TIMESTAMP","TIMESTAMP_ADD","TIMESTAMP_SUB","TIMESTAMP_DIFF","TIMESTAMP_TRUNC","FORMAT_TIMESTAMP","PARSE_TIMESTAMP","TIMESTAMP_SECONDS","TIMESTAMP_MILLIS","TIMESTAMP_MICROS","UNIX_SECONDS","UNIX_MILLIS","UNIX_MICROS"],uuid:["GENERATE_UUID"],conditional:["COALESCE","IF","IFNULL","NULLIF"],legacyAggregate:["AVG","BIT_AND","BIT_OR","BIT_XOR","CORR","COUNT","COVAR_POP","COVAR_SAMP","EXACT_COUNT_DISTINCT","FIRST","GROUP_CONCAT","GROUP_CONCAT_UNQUOTED","LAST","MAX","MIN","NEST","NTH","QUANTILES","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","TOP","UNIQUE","VARIANCE","VAR_POP","VAR_SAMP"],legacyBitwise:["BIT_COUNT"],legacyCasting:["BOOLEAN","BYTES","CAST","FLOAT","HEX_STRING","INTEGER","STRING"],legacyComparison:["COALESCE","GREATEST","IFNULL","IS_INF","IS_NAN","IS_EXPLICITLY_DEFINED","LEAST","NVL"],legacyDatetime:["CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE","DATE_ADD","DATEDIFF","DAY","DAYOFWEEK","DAYOFYEAR","FORMAT_UTC_USEC","HOUR","MINUTE","MONTH","MSEC_TO_TIMESTAMP","NOW","PARSE_UTC_USEC","QUARTER","SEC_TO_TIMESTAMP","SECOND","STRFTIME_UTC_USEC","TIME","TIMESTAMP","TIMESTAMP_TO_MSEC","TIMESTAMP_TO_SEC","TIMESTAMP_TO_USEC","USEC_TO_TIMESTAMP","UTC_USEC_TO_DAY","UTC_USEC_TO_HOUR","UTC_USEC_TO_MONTH","UTC_USEC_TO_WEEK","UTC_USEC_TO_YEAR","WEEK","YEAR"],legacyIp:["FORMAT_IP","PARSE_IP","FORMAT_PACKED_IP","PARSE_PACKED_IP"],legacyJson:["JSON_EXTRACT","JSON_EXTRACT_SCALAR"],legacyMath:["ABS","ACOS","ACOSH","ASIN","ASINH","ATAN","ATANH","ATAN2","CEIL","COS","COSH","DEGREES","EXP","FLOOR","LN","LOG","LOG2","LOG10","PI","POW","RADIANS","RAND","ROUND","SIN","SINH","SQRT","TAN","TANH"],legacyRegex:["REGEXP_MATCH","REGEXP_EXTRACT","REGEXP_REPLACE"],legacyString:["CONCAT","INSTR","LEFT","LENGTH","LOWER","LPAD","LTRIM","REPLACE","RIGHT","RPAD","RTRIM","SPLIT","SUBSTR","UPPER"],legacyTableWildcard:["TABLE_DATE_RANGE","TABLE_DATE_RANGE_STRICT","TABLE_QUERY"],legacyUrl:["HOST","DOMAIN","TLD"],legacyWindow:["AVG","COUNT","MAX","MIN","STDDEV","SUM","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","RATIO_TO_REPORT","ROW_NUMBER"],legacyMisc:["CURRENT_USER","EVERY","FROM_BASE64","HASH","FARM_FINGERPRINT","IF","POSITION","SHA1","SOME","TO_BASE64"],other:["BQ.JOBS.CANCEL","BQ.REFRESH_MATERIALIZED_VIEW"],ddl:["OPTIONS"],pivot:["PIVOT","UNPIVOT"],dataTypes:["BYTES","NUMERIC","DECIMAL","BIGNUMERIC","BIGDECIMAL","STRING"]}),M=A(["SELECT [ALL | DISTINCT] [AS STRUCT | AS VALUE]"]),b=A(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","QUALIFY","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","OMIT RECORD IF","INSERT [INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [BY SOURCE | BY TARGET] [THEN]","UPDATE SET","CREATE [OR REPLACE] [MATERIALIZED] VIEW [IF NOT EXISTS]","CREATE [OR REPLACE] [TEMP|TEMPORARY|SNAPSHOT|EXTERNAL] TABLE [IF NOT EXISTS]","CLUSTER BY","FOR SYSTEM_TIME AS OF","WITH CONNECTION","WITH PARTITION COLUMNS","REMOTE WITH CONNECTION"]),U=A(["UPDATE","DELETE [FROM]","DROP [SNAPSHOT | EXTERNAL] TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","ADD COLUMN [IF NOT EXISTS]","DROP COLUMN [IF EXISTS]","RENAME TO","ALTER COLUMN [IF EXISTS]","SET DEFAULT COLLATE","SET OPTIONS","DROP NOT NULL","SET DATA TYPE","ALTER SCHEMA [IF EXISTS]","ALTER [MATERIALIZED] VIEW [IF EXISTS]","ALTER BI_CAPACITY","TRUNCATE TABLE","CREATE SCHEMA [IF NOT EXISTS]","DEFAULT COLLATE","CREATE [OR REPLACE] [TEMP|TEMPORARY|TABLE] FUNCTION [IF NOT EXISTS]","CREATE [OR REPLACE] PROCEDURE [IF NOT EXISTS]","CREATE [OR REPLACE] ROW ACCESS POLICY [IF NOT EXISTS]","GRANT TO","FILTER USING","CREATE CAPACITY","AS JSON","CREATE RESERVATION","CREATE ASSIGNMENT","CREATE SEARCH INDEX [IF NOT EXISTS]","DROP SCHEMA [IF EXISTS]","DROP [MATERIALIZED] VIEW [IF EXISTS]","DROP [TABLE] FUNCTION [IF EXISTS]","DROP PROCEDURE [IF EXISTS]","DROP ROW ACCESS POLICY","DROP ALL ROW ACCESS POLICIES","DROP CAPACITY [IF EXISTS]","DROP RESERVATION [IF EXISTS]","DROP ASSIGNMENT [IF EXISTS]","DROP SEARCH INDEX [IF EXISTS]","DROP [IF EXISTS]","GRANT","REVOKE","DECLARE","EXECUTE IMMEDIATE","LOOP","END LOOP","REPEAT","END REPEAT","WHILE","END WHILE","BREAK","LEAVE","CONTINUE","ITERATE","FOR","END FOR","BEGIN","BEGIN TRANSACTION","COMMIT TRANSACTION","ROLLBACK TRANSACTION","RAISE","RETURN","CALL","ASSERT","EXPORT DATA"]),x=A(["UNION {ALL | DISTINCT}","EXCEPT DISTINCT","INTERSECT DISTINCT"]),w=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN"]),G=A(["TABLESAMPLE SYSTEM","ANY TYPE","ALL COLUMNS","NOT DETERMINISTIC","{ROWS | RANGE} BETWEEN","IS [NOT] DISTINCT FROM"]),F={tokenizerOptions:{reservedSelect:M,reservedClauses:[...b,...U],reservedSetOperations:x,reservedJoins:w,reservedPhrases:G,reservedKeywords:y,reservedFunctionNames:D,extraParens:["[]"],stringTypes:[{quote:'""".."""',prefixes:["R","B","RB","BR"]},{quote:"'''..'''",prefixes:["R","B","RB","BR"]},'""-bs',"''-bs",{quote:'""-raw',prefixes:["R","B","RB","BR"],requirePrefix:!0},{quote:"''-raw",prefixes:["R","B","RB","BR"],requirePrefix:!0}],identTypes:["``"],identChars:{dashes:!0},paramTypes:{positional:!0,named:["@"],quoted:["@"]},variableTypes:[{regex:String.raw`@@\w+`}],lineCommentTypes:["--","#"],operators:["&","|","^","~",">>","<<","||","=>"],postProcess:function(e){var t;let n;return t=function(e){let t=[];for(let o=0;o"===t.text?n--:">>"===t.text&&(n-=2),0===n)return r}return e.length-1}(e,o+1),a=e.slice(o,n+1);t.push({type:r.IDENTIFIER,raw:a.map(H("raw")).join(""),text:a.map(H("text")).join(""),start:i.start}),o=n}else t.push(i)}return t}(e),n=u,t.map(e=>"OFFSET"===e.text&&"["===n.text?(n=e,{...e,type:r.RESERVED_FUNCTION_NAME}):(n=e,e))}},formatOptions:{onelineClauses:U}},H=e=>t=>t.type===r.IDENTIFIER||t.type===r.COMMA?t[e]+" ":t[e],B=v({aggregate:["ARRAY_AGG","AVG","CORR","CORRELATION","COUNT","COUNT_BIG","COVAR_POP","COVARIANCE","COVAR","COVAR_SAMP","COVARIANCE_SAMP","CUME_DIST","GROUPING","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_ICPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV_POP","STDDEV","STDDEV_SAMP","SUM","VAR_POP","VARIANCE","VAR","VAR_SAMP","VARIANCE_SAMP","XMLAGG"],scalar:["ABS","ABSVAL","ACOS","ADD_DAYS","ADD_MONTHS","ARRAY_DELETE","ARRAY_FIRST","ARRAY_LAST","ARRAY_NEXT","ARRAY_PRIOR","ARRAY_TRIM","ASCII","ASCII_CHR","ASCII_STR","ASCIISTR","ASIN","ATAN","ATANH","ATAN2","BIGINT","BINARY","BITAND","BITANDNOT","BITOR","BITXOR","BITNOT","BLOB","BTRIM","CARDINALITY","CCSID_ENCODING","CEILING","CEIL","CHAR","CHAR9","CHARACTER_LENGTH","CHAR_LENGTH","CHR","CLOB","COALESCE","COLLATION_KEY","COMPARE_DECFLOAT","CONCAT","CONTAINS","COS","COSH","DATE","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFWEEK_ISO","DAYOFYEAR","DAYS","DAYS_BETWEEN","DBCLOB","DECFLOAT","DECFLOAT_FORMAT","DECFLOAT_SORTKEY","DECIMAL","DEC","DECODE","DECRYPT_BINARY","DECRYPT_BIT","DECRYPT_CHAR","DECRYPT_DB","DECRYPT_DATAKEY_BIGINT","DECRYPT_DATAKEY_BIT","DECRYPT_DATAKEY_CLOB","DECRYPT_DATAKEY_DBCLOB","DECRYPT_DATAKEY_DECIMAL","DECRYPT_DATAKEY_INTEGER","DECRYPT_DATAKEY_VARCHAR","DECRYPT_DATAKEY_VARGRAPHIC","DEGREES","DIFFERENCE","DIGITS","DOUBLE_PRECISION","DOUBLE","DSN_XMLVALIDATE","EBCDIC_CHR","EBCDIC_STR","ENCRYPT_DATAKEY","ENCRYPT_TDES","EXP","EXTRACT","FLOAT","FLOOR","GENERATE_UNIQUE","GENERATE_UNIQUE_BINARY","GETHINT","GETVARIABLE","GRAPHIC","GREATEST","HASH","HASH_CRC32","HASH_MD5","HASH_SHA1","HASH_SHA256","HEX","HOUR","IDENTITY_VAL_LOCAL","IFNULL","INSERT","INSTR","INTEGER","INT","JULIAN_DAY","LAST_DAY","LCASE","LEAST","LEFT","LENGTH","LN","LOCATE","LOCATE_IN_STRING","LOG10","LOWER","LPAD","LTRIM","MAX","MAX_CARDINALITY","MICROSECOND","MIDNIGHT_SECONDS","MIN","MINUTE","MOD","MONTH","MONTHS_BETWEEN","MQREAD","MQREADCLOB","MQRECEIVE","MQRECEIVECLOB","MQSEND","MULTIPLY_ALT","NEXT_DAY","NEXT_MONTH","NORMALIZE_DECFLOAT","NORMALIZE_STRING","NULLIF","NVL","OVERLAY","PACK","POSITION","POSSTR","POWER","POW","QUANTIZE","QUARTER","RADIANS","RAISE_ERROR","RANDOM","RAND","REAL","REGEXP_COUNT","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","RID","RIGHT","ROUND","ROUND_TIMESTAMP","ROWID","RPAD","RTRIM","SCORE","SECOND","SIGN","SIN","SINH","SMALLINT","SOUNDEX","SOAPHTTPC","SOAPHTTPV","SOAPHTTPNC","SOAPHTTPNV","SPACE","SQRT","STRIP","STRLEFT","STRPOS","STRRIGHT","SUBSTR","SUBSTRING","TAN","TANH","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIMESTAMP_FORMAT","TIMESTAMP_ISO","TIMESTAMP_TZ","TO_CHAR","TO_CLOB","TO_DATE","TO_NUMBER","TOTALORDER","TO_TIMESTAMP","TRANSLATE","TRIM","TRIM_ARRAY","TRUNCATE","TRUNC","TRUNC_TIMESTAMP","UCASE","UNICODE","UNICODE_STR","UNISTR","UPPER","VALUE","VARBINARY","VARCHAR","VARCHAR9","VARCHAR_BIT_FORMAT","VARCHAR_FORMAT","VARGRAPHIC","VERIFY_GROUP_FOR_USER","VERIFY_ROLE_FOR_USER","VERIFY_TRUSTED_CONTEXT_ROLE_FOR_USER","WEEK","WEEK_ISO","WRAP","XMLATTRIBUTES","XMLCOMMENT","XMLCONCAT","XMLDOCUMENT","XMLELEMENT","XMLFOREST","XMLMODIFY","XMLNAMESPACES","XMLPARSE","XMLPI","XMLQUERY","XMLSERIALIZE","XMLTEXT","XMLXSROBJECTID","XSLTRANSFORM","YEAR"],table:["ADMIN_TASK_LIST","ADMIN_TASK_OUTPUT","ADMIN_TASK_STATUS","BLOCKING_THREADS","MQREADALL","MQREADALLCLOB","MQRECEIVEALL","MQRECEIVEALLCLOB","XMLTABLE"],row:["UNPACK"],olap:["CUME_DIST","PERCENT_RANK","RANK","DENSE_RANK","NTILE","LAG","LEAD","ROW_NUMBER","FIRST_VALUE","LAST_VALUE","NTH_VALUE","RATIO_TO_REPORT"],cast:["CAST"]}),Y=v({standard:["ALL","ALLOCATE","ALLOW","ALTERAND","ANY","AS","ARRAY","ARRAY_EXISTS","ASENSITIVE","ASSOCIATE","ASUTIME","AT","AUDIT","AUX","AUXILIARY","BEFORE","BEGIN","BETWEEN","BUFFERPOOL","BY","CAPTURE","CASCADED","CAST","CCSID","CHARACTER","CHECK","CLONE","CLUSTER","COLLECTION","COLLID","COLUMN","CONDITION","CONNECTION","CONSTRAINT","CONTENT","CONTINUE","CREATE","CUBE","CURRENT","CURRENT_DATE","CURRENT_LC_CTYPE","CURRENT_PATH","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRVAL","CURSOR","DATA","DATABASE","DBINFO","DECLARE","DEFAULT","DESCRIPTOR","DETERMINISTIC","DISABLE","DISALLOW","DISTINCT","DO","DOCUMENT","DSSIZE","DYNAMIC","EDITPROC","ELSE","ELSEIF","ENCODING","ENCRYPTION","ENDING","END-EXEC","ERASE","ESCAPE","EXCEPTION","EXISTS","EXIT","EXTERNAL","FENCED","FIELDPROC","FINAL","FIRST","FOR","FREE","FULL","FUNCTION","GENERATED","GET","GLOBAL","GOTO","GROUP","HANDLER","HOLD","HOURS","IF","IMMEDIATE","IN","INCLUSIVE","INDEX","INHERIT","INNER","INOUT","INSENSITIVE","INTO","IS","ISOBID","ITERATE","JAR","KEEP","KEY","LANGUAGE","LAST","LC_CTYPE","LEAVE","LIKE","LOCAL","LOCALE","LOCATOR","LOCATORS","LOCK","LOCKMAX","LOCKSIZE","LONG","LOOP","MAINTAINED","MATERIALIZED","MICROSECONDS","MINUTEMINUTES","MODIFIES","MONTHS","NEXT","NEXTVAL","NO","NONE","NOT","NULL","NULLS","NUMPARTS","OBID","OF","OLD","ON","OPTIMIZATION","OPTIMIZE","ORDER","ORGANIZATION","OUT","OUTER","PACKAGE","PARAMETER","PART","PADDED","PARTITION","PARTITIONED","PARTITIONING","PATH","PIECESIZE","PERIOD","PLAN","PRECISION","PREVVAL","PRIOR","PRIQTY","PRIVILEGES","PROCEDURE","PROGRAM","PSID","PUBLIC","QUERY","QUERYNO","READS","REFERENCES","RESIGNAL","RESTRICT","RESULT","RESULT_SET_LOCATOR","RETURN","RETURNS","ROLE","ROLLUP","ROUND_CEILING","ROUND_DOWN","ROUND_FLOOR","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_HALF_UP","ROUND_UP","ROW","ROWSET","SCHEMA","SCRATCHPAD","SECONDS","SECQTY","SECURITY","SEQUENCE","SENSITIVE","SESSION_USER","SIMPLE","SOME","SOURCE","SPECIFIC","STANDARD","STATIC","STATEMENT","STAY","STOGROUP","STORES","STYLE","SUMMARY","SYNONYM","SYSDATE","SYSTEM","SYSTIMESTAMP","TABLE","TABLESPACE","THEN","TO","TRIGGER","TYPE","UNDO","UNIQUE","UNTIL","USER","USING","VALIDPROC","VARIABLE","VARIANT","VCAT","VERSIONING","VIEW","VOLATILE","VOLUMES","WHILE","WLM","XMLEXISTS","XMLCAST","YEARS","ZONE"]}),k=A(["SELECT [ALL | DISTINCT]"]),V=A(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY [INPUT SEQUENCE]","FETCH FIRST","INSERT INTO","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED [THEN]","UPDATE SET","INSERT","CREATE [OR REPLACE] VIEW","CREATE [GLOBAL TEMPORARY] TABLE"]),$=A(["UPDATE","WHERE CURRENT OF","WITH {RR | RS | CS | UR}","DELETE FROM","DROP TABLE [HIERARCHY]","ALTER TABLE","ADD [COLUMN]","DROP [COLUMN]","RENAME [COLUMN]","ALTER [COLUMN]","SET DATA TYPE","SET NOT NULL","DROP {IDENTITY | EXPRESSION | DEFAULT | NOT NULL}","TRUNCATE [TABLE]","SET [CURRENT] SCHEMA","AFTER","GO","ALLOCATE CURSOR","ALTER DATABASE","ALTER FUNCTION","ALTER INDEX","ALTER MASK","ALTER PERMISSION","ALTER PROCEDURE","ALTER SEQUENCE","ALTER STOGROUP","ALTER TABLESPACE","ALTER TRIGGER","ALTER TRUSTED CONTEXT","ALTER VIEW","ASSOCIATE LOCATORS","BEGIN DECLARE SECTION","CALL","CLOSE","COMMENT","COMMIT","CONNECT","CREATE ALIAS","CREATE AUXILIARY TABLE","CREATE DATABASE","CREATE FUNCTION","CREATE GLOBAL TEMPORARY TABLE","CREATE INDEX","CREATE LOB TABLESPACE","CREATE MASK","CREATE PERMISSION","CREATE PROCEDURE","CREATE ROLE","CREATE SEQUENCE","CREATE STOGROUP","CREATE SYNONYM","CREATE TABLESPACE","CREATE TRIGGER","CREATE TRUSTED CONTEXT","CREATE TYPE","CREATE VARIABLE","DECLARE CURSOR","DECLARE GLOBAL TEMPORARY TABLE","DECLARE STATEMENT","DECLARE TABLE","DECLARE VARIABLE","DESCRIBE CURSOR","DESCRIBE INPUT","DESCRIBE OUTPUT","DESCRIBE PROCEDURE","DESCRIBE TABLE","DROP","END DECLARE SECTION","EXCHANGE","EXECUTE","EXECUTE IMMEDIATE","EXPLAIN","FETCH","FREE LOCATOR","GET DIAGNOSTICS","GRANT","HOLD LOCATOR","INCLUDE","LABEL","LOCK TABLE","OPEN","PREPARE","REFRESH","RELEASE","RELEASE SAVEPOINT","RENAME","REVOKE","ROLLBACK","SAVEPOINT","SELECT INTO","SET CONNECTION","SET CURRENT ACCELERATOR","SET CURRENT APPLICATION COMPATIBILITY","SET CURRENT APPLICATION ENCODING SCHEME","SET CURRENT DEBUG MODE","SET CURRENT DECFLOAT ROUNDING MODE","SET CURRENT DEGREE","SET CURRENT EXPLAIN MODE","SET CURRENT GET_ACCEL_ARCHIVE","SET CURRENT LOCALE LC_CTYPE","SET CURRENT MAINTAINED TABLE TYPES FOR OPTIMIZATION","SET CURRENT OPTIMIZATION HINT","SET CURRENT PACKAGE PATH","SET CURRENT PACKAGESET","SET CURRENT PRECISION","SET CURRENT QUERY ACCELERATION","SET CURRENT QUERY ACCELERATION WAITFORDATA","SET CURRENT REFRESH AGE","SET CURRENT ROUTINE VERSION","SET CURRENT RULES","SET CURRENT SQLID","SET CURRENT TEMPORAL BUSINESS_TIME","SET CURRENT TEMPORAL SYSTEM_TIME","SET ENCRYPTION PASSWORD","SET PATH","SET SESSION TIME ZONE","SIGNAL","VALUES INTO","WHENEVER"]),W=A(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),Z=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN"]),j=A(["ON DELETE","ON UPDATE","SET NULL","{ROWS | RANGE} BETWEEN"]),X={tokenizerOptions:{reservedSelect:k,reservedClauses:[...V,...$],reservedSetOperations:W,reservedJoins:Z,reservedPhrases:j,reservedKeywords:Y,reservedFunctionNames:B,stringTypes:[{quote:"''-qq",prefixes:["G","N","U&"]},{quote:"''-raw",prefixes:["X","BX","GX","UX"],requirePrefix:!0}],identTypes:['""-qq'],identChars:{first:"@#$"},paramTypes:{positional:!0,named:[":"]},paramChars:{first:"@#$",rest:"@#$"},operators:["**","\xac=","\xac>","\xac<","!>","!<","||"]},formatOptions:{onelineClauses:$}},K=v({math:["ABS","ACOS","ASIN","ATAN","BIN","BROUND","CBRT","CEIL","CEILING","CONV","COS","DEGREES","EXP","FACTORIAL","FLOOR","GREATEST","HEX","LEAST","LN","LOG","LOG10","LOG2","NEGATIVE","PI","PMOD","POSITIVE","POW","POWER","RADIANS","RAND","ROUND","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIN","SQRT","TAN","UNHEX","WIDTH_BUCKET"],array:["ARRAY_CONTAINS","MAP_KEYS","MAP_VALUES","SIZE","SORT_ARRAY"],conversion:["BINARY","CAST"],date:["ADD_MONTHS","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","QUARTER","SECOND","TIMESTAMP","TO_DATE","TO_UTC_TIMESTAMP","TRUNC","UNIX_TIMESTAMP","WEEKOFYEAR","YEAR"],conditional:["ASSERT_TRUE","COALESCE","IF","ISNOTNULL","ISNULL","NULLIF","NVL"],string:["ASCII","BASE64","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONTEXT_NGRAMS","DECODE","ELT","ENCODE","FIELD","FIND_IN_SET","FORMAT_NUMBER","GET_JSON_OBJECT","IN_FILE","INITCAP","INSTR","LCASE","LENGTH","LEVENSHTEIN","LOCATE","LOWER","LPAD","LTRIM","NGRAMS","OCTET_LENGTH","PARSE_URL","PRINTF","QUOTE","REGEXP_EXTRACT","REGEXP_REPLACE","REPEAT","REVERSE","RPAD","RTRIM","SENTENCES","SOUNDEX","SPACE","SPLIT","STR_TO_MAP","SUBSTR","SUBSTRING","TRANSLATE","TRIM","UCASE","UNBASE64","UPPER"],masking:["MASK","MASK_FIRST_N","MASK_HASH","MASK_LAST_N","MASK_SHOW_FIRST_N","MASK_SHOW_LAST_N"],misc:["AES_DECRYPT","AES_ENCRYPT","CRC32","CURRENT_DATABASE","CURRENT_USER","HASH","JAVA_METHOD","LOGGED_IN_USER","MD5","REFLECT","SHA","SHA1","SHA2","SURROGATE_KEY","VERSION"],aggregate:["AVG","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COVAR_POP","COVAR_SAMP","HISTOGRAM_NUMERIC","MAX","MIN","NTILE","PERCENTILE","PERCENTILE_APPROX","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE"],table:["EXPLODE","INLINE","JSON_TUPLE","PARSE_URL_TUPLE","POSEXPLODE","STACK"],window:["LEAD","LAG","FIRST_VALUE","LAST_VALUE","RANK","ROW_NUMBER","DENSE_RANK","CUME_DIST","PERCENT_RANK","NTILE"],dataTypes:["DECIMAL","NUMERIC","VARCHAR","CHAR"]}),z=v({nonReserved:["ADD","ADMIN","AFTER","ANALYZE","ARCHIVE","ASC","BEFORE","BUCKET","BUCKETS","CASCADE","CHANGE","CLUSTER","CLUSTERED","CLUSTERSTATUS","COLLECTION","COLUMNS","COMMENT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONTINUE","DATA","DATABASES","DATETIME","DAY","DBPROPERTIES","DEFERRED","DEFINED","DELIMITED","DEPENDENCY","DESC","DIRECTORIES","DIRECTORY","DISABLE","DISTRIBUTE","ELEM_TYPE","ENABLE","ESCAPED","EXCLUSIVE","EXPLAIN","EXPORT","FIELDS","FILE","FILEFORMAT","FIRST","FORMAT","FORMATTED","FUNCTIONS","HOLD_DDLTIME","HOUR","IDXPROPERTIES","IGNORE","INDEX","INDEXES","INPATH","INPUTDRIVER","INPUTFORMAT","ITEMS","JAR","KEYS","KEY_TYPE","LIMIT","LINES","LOAD","LOCATION","LOCK","LOCKS","LOGICAL","LONG","MAPJOIN","MATERIALIZED","METADATA","MINUS","MINUTE","MONTH","MSCK","NOSCAN","NO_DROP","OFFLINE","OPTION","OUTPUTDRIVER","OUTPUTFORMAT","OVERWRITE","OWNER","PARTITIONED","PARTITIONS","PLUS","PRETTY","PRINCIPALS","PROTECTION","PURGE","READ","READONLY","REBUILD","RECORDREADER","RECORDWRITER","RELOAD","RENAME","REPAIR","REPLACE","REPLICATION","RESTRICT","REWRITE","ROLE","ROLES","SCHEMA","SCHEMAS","SECOND","SEMI","SERDE","SERDEPROPERTIES","SERVER","SETS","SHARED","SHOW","SHOW_DATABASE","SKEWED","SORT","SORTED","SSL","STATISTICS","STORED","STREAMTABLE","STRING","STRUCT","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","TINYINT","TOUCH","TRANSACTIONS","UNARCHIVE","UNDO","UNIONTYPE","UNLOCK","UNSET","UNSIGNED","URI","USE","UTC","UTCTIMESTAMP","VALUE_TYPE","VIEW","WHILE","YEAR","AUTOCOMMIT","ISOLATION","LEVEL","OFFSET","SNAPSHOT","TRANSACTION","WORK","WRITE","ABORT","KEY","LAST","NORELY","NOVALIDATE","NULLS","RELY","VALIDATE","DETAIL","DOW","EXPRESSION","OPERATOR","QUARTER","SUMMARY","VECTORIZATION","WEEK","YEARS","MONTHS","WEEKS","DAYS","HOURS","MINUTES","SECONDS","TIMESTAMPTZ","ZONE"],reserved:["ALL","ALTER","AND","ARRAY","AS","AUTHORIZATION","BETWEEN","BIGINT","BINARY","BOOLEAN","BOTH","BY","CASE","CAST","CHAR","COLUMN","CONF","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIMESTAMP","CURSOR","DATABASE","DATE","DECIMAL","DELETE","DESCRIBE","DISTINCT","DOUBLE","DROP","ELSE","END","EXCHANGE","EXISTS","EXTENDED","EXTERNAL","FALSE","FETCH","FLOAT","FOLLOWING","FOR","FROM","FULL","FUNCTION","GRANT","GROUP","GROUPING","HAVING","IF","IMPORT","IN","INNER","INSERT","INT","INTERSECT","INTERVAL","INTO","IS","JOIN","LATERAL","LEFT","LESS","LIKE","LOCAL","MACRO","MAP","MORE","NONE","NOT","NULL","OF","ON","OR","ORDER","OUT","OUTER","OVER","PARTIALSCAN","PARTITION","PERCENT","PRECEDING","PRESERVE","PROCEDURE","RANGE","READS","REDUCE","REVOKE","RIGHT","ROLLUP","ROW","ROWS","SELECT","SET","SMALLINT","TABLE","TABLESAMPLE","THEN","TIMESTAMP","TO","TRANSFORM","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNION","UNIQUEJOIN","UPDATE","USER","USING","UTC_TMESTAMP","VALUES","VARCHAR","WHEN","WHERE","WINDOW","WITH","COMMIT","ONLY","REGEXP","RLIKE","ROLLBACK","START","CACHE","CONSTRAINT","FOREIGN","PRIMARY","REFERENCES","DAYOFWEEK","EXTRACT","FLOOR","INTEGER","PRECISION","VIEWS","TIME","NUMERIC","SYNC"],fileTypes:["TEXTFILE","SEQUENCEFILE","ORC","CSV","TSV","PARQUET","AVRO","RCFILE","JSONFILE","INPUTFORMAT","OUTPUTFORMAT"]}),J=A(["SELECT [ALL | DISTINCT]"]),q=A(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","SORT BY","CLUSTER BY","DISTRIBUTE BY","LIMIT","INSERT INTO [TABLE]","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED [THEN]","UPDATE SET","INSERT [VALUES]","INSERT OVERWRITE [LOCAL] DIRECTORY","LOAD DATA [LOCAL] INPATH","[OVERWRITE] INTO TABLE","CREATE [MATERIALIZED] VIEW [IF NOT EXISTS]","CREATE [TEMPORARY] [EXTERNAL] TABLE [IF NOT EXISTS]"]),Q=A(["UPDATE","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE","RENAME TO","TRUNCATE [TABLE]","ALTER","CREATE","USE","DESCRIBE","DROP","FETCH","SHOW","STORED AS","STORED BY","ROW FORMAT"]),ee=A(["UNION [ALL | DISTINCT]"]),et=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","LEFT SEMI JOIN"]),en=A(["{ROWS | RANGE} BETWEEN"]),er={tokenizerOptions:{reservedSelect:J,reservedClauses:[...q,...Q],reservedSetOperations:ee,reservedJoins:et,reservedPhrases:en,reservedKeywords:z,reservedFunctionNames:K,extraParens:["[]"],stringTypes:['""-bs',"''-bs"],identTypes:["``"],variableTypes:[{quote:"{}",prefixes:["$"],requirePrefix:!0}],operators:["%","~","^","|","&","<=>","==","!","||"]},formatOptions:{onelineClauses:Q}},eo=v({all:["ACCESSIBLE","ACCOUNT","ACTION","ADD","ADMIN","AFTER","AGAINST","AGGREGATE","ALL","ALGORITHM","ALTER","ALWAYS","ANALYZE","AND","ANY","AS","ASC","ASCII","ASENSITIVE","AT","ATOMIC","AUTHORS","AUTO_INCREMENT","AUTOEXTEND_SIZE","AUTO","AVG","AVG_ROW_LENGTH","BACKUP","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BINLOG","BIT","BLOB","BLOCK","BODY","BOOL","BOOLEAN","BOTH","BTREE","BY","BYTE","CACHE","CALL","CASCADE","CASCADED","CASE","CATALOG_NAME","CHAIN","CHANGE","CHANGED","CHAR","CHARACTER","CHARSET","CHECK","CHECKPOINT","CHECKSUM","CIPHER","CLASS_ORIGIN","CLIENT","CLOB","CLOSE","COALESCE","CODE","COLLATE","COLLATION","COLUMN","COLUMN_NAME","COLUMNS","COLUMN_ADD","COLUMN_CHECK","COLUMN_CREATE","COLUMN_DELETE","COLUMN_GET","COMMENT","COMMIT","COMMITTED","COMPACT","COMPLETION","COMPRESSED","CONCURRENT","CONDITION","CONNECTION","CONSISTENT","CONSTRAINT","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONTAINS","CONTEXT","CONTINUE","CONTRIBUTORS","CONVERT","CPU","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_POS","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CURSOR_NAME","CYCLE","DATA","DATABASE","DATABASES","DATAFILE","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFINER","DELAYED","DELAY_KEY_WRITE","DELETE","DELETE_DOMAIN_ID","DESC","DESCRIBE","DES_KEY_FILE","DETERMINISTIC","DIAGNOSTICS","DIRECTORY","DISABLE","DISCARD","DISK","DISTINCT","DISTINCTROW","DIV","DO","DOUBLE","DO_DOMAIN_IDS","DROP","DUAL","DUMPFILE","DUPLICATE","DYNAMIC","EACH","ELSE","ELSEIF","ELSIF","EMPTY","ENABLE","ENCLOSED","END","ENDS","ENGINE","ENGINES","ENUM","ERROR","ERRORS","ESCAPE","ESCAPED","EVENT","EVENTS","EVERY","EXAMINED","EXCEPT","EXCHANGE","EXCLUDE","EXECUTE","EXCEPTION","EXISTS","EXIT","EXPANSION","EXPIRE","EXPORT","EXPLAIN","EXTENDED","EXTENT_SIZE","FALSE","FAST","FAULTS","FEDERATED","FETCH","FIELDS","FILE","FIRST","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWING","FOLLOWS","FOR","FORCE","FOREIGN","FORMAT","FOUND","FROM","FULL","FULLTEXT","FUNCTION","GENERAL","GENERATED","GET_FORMAT","GET","GLOBAL","GOTO","GRANT","GRANTS","GROUP","HANDLER","HARD","HASH","HAVING","HELP","HIGH_PRIORITY","HISTORY","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IF","IGNORE","IGNORED","IGNORE_DOMAIN_IDS","IGNORE_SERVER_IDS","IMMEDIATE","IMPORT","INTERSECT","IN","INCREMENT","INDEX","INDEXES","INFILE","INITIAL_SIZE","INNER","INOUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTALL","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERVAL","INVISIBLE","INTO","IO","IO_THREAD","IPC","IS","ISOLATION","ISOPEN","ISSUER","ITERATE","INVOKER","JOIN","JSON","JSON_TABLE","KEY","KEYS","KEY_BLOCK_SIZE","KILL","LANGUAGE","LAST","LAST_VALUE","LASTVAL","LEADING","LEAVE","LEAVES","LEFT","LESS","LEVEL","LIKE","LIMIT","LINEAR","LINES","LIST","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCK","LOCKED","LOCKS","LOGFILE","LOGS","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER","MASTER_CONNECT_RETRY","MASTER_DELAY","MASTER_GTID_POS","MASTER_HOST","MASTER_LOG_FILE","MASTER_LOG_POS","MASTER_PASSWORD","MASTER_PORT","MASTER_SERVER_ID","MASTER_SSL","MASTER_SSL_CA","MASTER_SSL_CAPATH","MASTER_SSL_CERT","MASTER_SSL_CIPHER","MASTER_SSL_CRL","MASTER_SSL_CRLPATH","MASTER_SSL_KEY","MASTER_SSL_VERIFY_SERVER_CERT","MASTER_USER","MASTER_USE_GTID","MASTER_HEARTBEAT_PERIOD","MATCH","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_SIZE","MAX_STATEMENT_TIME","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MAXVALUE","MEDIUM","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMORY","MERGE","MESSAGE_TEXT","MICROSECOND","MIDDLEINT","MIGRATE","MINUS","MINUTE","MINUTE_MICROSECOND","MINUTE_SECOND","MINVALUE","MIN_ROWS","MOD","MODE","MODIFIES","MODIFY","MONITOR","MONTH","MUTEX","MYSQL","MYSQL_ERRNO","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NESTED","NEVER","NEW","NEXT","NEXTVAL","NO","NOMAXVALUE","NOMINVALUE","NOCACHE","NOCYCLE","NO_WAIT","NOWAIT","NODEGROUP","NONE","NOT","NOTFOUND","NO_WRITE_TO_BINLOG","NULL","NUMBER","NUMERIC","NVARCHAR","OF","OFFSET","OLD_PASSWORD","ON","ONE","ONLINE","ONLY","OPEN","OPTIMIZE","OPTIONS","OPTION","OPTIONALLY","OR","ORDER","ORDINALITY","OTHERS","OUT","OUTER","OUTFILE","OVER","OVERLAPS","OWNER","PACKAGE","PACK_KEYS","PAGE","PAGE_CHECKSUM","PARSER","PARSE_VCOL_EXPR","PATH","PERIOD","PARTIAL","PARTITION","PARTITIONING","PARTITIONS","PASSWORD","PERSISTENT","PHASE","PLUGIN","PLUGINS","PORT","PORTION","PRECEDES","PRECEDING","PRECISION","PREPARE","PRESERVE","PREV","PREVIOUS","PRIMARY","PRIVILEGES","PROCEDURE","PROCESS","PROCESSLIST","PROFILE","PROFILES","PROXY","PURGE","QUARTER","QUERY","QUICK","RAISE","RANGE","RAW","READ","READ_ONLY","READ_WRITE","READS","REAL","REBUILD","RECOVER","RECURSIVE","REDO_BUFFER_SIZE","REDOFILE","REDUNDANT","REFERENCES","REGEXP","RELAY","RELAYLOG","RELAY_LOG_FILE","RELAY_LOG_POS","RELAY_THREAD","RELEASE","RELOAD","REMOVE","RENAME","REORGANIZE","REPAIR","REPEATABLE","REPLACE","REPLAY","REPLICA","REPLICAS","REPLICA_POS","REPLICATION","REPEAT","REQUIRE","RESET","RESIGNAL","RESTART","RESTORE","RESTRICT","RESUME","RETURNED_SQLSTATE","RETURN","RETURNING","RETURNS","REUSE","REVERSE","REVOKE","RIGHT","RLIKE","ROLE","ROLLBACK","ROLLUP","ROUTINE","ROW","ROWCOUNT","ROWNUM","ROWS","ROWTYPE","ROW_COUNT","ROW_FORMAT","RTREE","SAVEPOINT","SCHEDULE","SCHEMA","SCHEMA_NAME","SCHEMAS","SECOND","SECOND_MICROSECOND","SECURITY","SELECT","SENSITIVE","SEPARATOR","SEQUENCE","SERIAL","SERIALIZABLE","SESSION","SERVER","SET","SETVAL","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMPLE","SKIP","SLAVE","SLAVES","SLAVE_POS","SLOW","SNAPSHOT","SMALLINT","SOCKET","SOFT","SOME","SONAME","SOUNDS","SOURCE","STAGE","STORED","SPATIAL","SPECIFIC","REF_SYSTEM_ID","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQL_NO_CACHE","SQL_SMALL_RESULT","SQL_THREAD","SQL_TSI_SECOND","SQL_TSI_MINUTE","SQL_TSI_HOUR","SQL_TSI_DAY","SQL_TSI_WEEK","SQL_TSI_MONTH","SQL_TSI_QUARTER","SQL_TSI_YEAR","SSL","START","STARTING","STARTS","STATEMENT","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STATUS","STOP","STORAGE","STRAIGHT_JOIN","STRING","SUBCLASS_ORIGIN","SUBJECT","SUBPARTITION","SUBPARTITIONS","SUPER","SUSPEND","SWAPS","SWITCHES","SYSDATE","SYSTEM","SYSTEM_TIME","TABLE","TABLE_NAME","TABLES","TABLESPACE","TABLE_CHECKSUM","TEMPORARY","TEMPTABLE","TERMINATED","TEXT","THAN","THEN","TIES","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TINYBLOB","TINYINT","TINYTEXT","TO","TRAILING","TRANSACTION","TRANSACTIONAL","THREADS","TRIGGER","TRIGGERS","TRUE","TRUNCATE","TYPE","TYPES","UNBOUNDED","UNCOMMITTED","UNDEFINED","UNDO_BUFFER_SIZE","UNDOFILE","UNDO","UNICODE","UNION","UNIQUE","UNKNOWN","UNLOCK","UNINSTALL","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USER_RESOURCES","USE_FRM","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARCHAR2","VARIABLES","VARYING","VIA","VIEW","VIRTUAL","VISIBLE","VERSIONING","WAIT","WARNINGS","WEEK","WEIGHT_STRING","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","X509","XOR","XA","XML","YEAR","YEAR_MONTH","ZEROFILL"]}),ei=v({all:["ADDDATE","ADD_MONTHS","BIT_AND","BIT_OR","BIT_XOR","CAST","COUNT","CUME_DIST","CURDATE","CURTIME","DATE_ADD","DATE_SUB","DATE_FORMAT","DECODE","DENSE_RANK","EXTRACT","FIRST_VALUE","GROUP_CONCAT","JSON_ARRAYAGG","JSON_OBJECTAGG","LAG","LEAD","MAX","MEDIAN","MID","MIN","NOW","NTH_VALUE","NTILE","POSITION","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","ROW_NUMBER","SESSION_USER","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUBDATE","SUBSTR","SUBSTRING","SUM","SYSTEM_USER","TRIM","TRIM_ORACLE","VARIANCE","VAR_POP","VAR_SAMP","ABS","ACOS","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ASIN","ATAN","ATAN2","BENCHMARK","BIN","BINLOG_GTID_POS","BIT_COUNT","BIT_LENGTH","CEIL","CEILING","CHARACTER_LENGTH","CHAR_LENGTH","CHR","COERCIBILITY","COLUMN_CHECK","COLUMN_EXISTS","COLUMN_LIST","COLUMN_JSON","COMPRESS","CONCAT","CONCAT_OPERATOR_ORACLE","CONCAT_WS","CONNECTION_ID","CONV","CONVERT_TZ","COS","COT","CRC32","DATEDIFF","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEGREES","DECODE_HISTOGRAM","DECODE_ORACLE","DES_DECRYPT","DES_ENCRYPT","ELT","ENCODE","ENCRYPT","EXP","EXPORT_SET","EXTRACTVALUE","FIELD","FIND_IN_SET","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GET_LOCK","GREATEST","HEX","IFNULL","INSTR","ISNULL","IS_FREE_LOCK","IS_USED_LOCK","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_COMPACT","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_DETAILED","JSON_EXISTS","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_LOOSE","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_QUERY","JSON_QUOTE","JSON_OBJECT","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_SEARCH","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAST_DAY","LAST_INSERT_ID","LCASE","LEAST","LENGTH","LENGTHB","LN","LOAD_FILE","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LPAD_ORACLE","LTRIM","LTRIM_ORACLE","MAKEDATE","MAKETIME","MAKE_SET","MASTER_GTID_WAIT","MASTER_POS_WAIT","MD5","MONTHNAME","NAME_CONST","NVL","NVL2","OCT","OCTET_LENGTH","ORD","PERIOD_ADD","PERIOD_DIFF","PI","POW","POWER","QUOTE","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","RADIANS","RAND","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPLACE_ORACLE","REVERSE","ROUND","RPAD","RPAD_ORACLE","RTRIM","RTRIM_ORACLE","SEC_TO_TIME","SHA","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SPACE","SQRT","STRCMP","STR_TO_DATE","SUBSTR_ORACLE","SUBSTRING_INDEX","SUBTIME","SYS_GUID","TAN","TIMEDIFF","TIME_FORMAT","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_SECONDS","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UUID","UUID_SHORT","VERSION","WEEKDAY","WEEKOFYEAR","WSREP_LAST_WRITTEN_GTID","WSREP_LAST_SEEN_GTID","WSREP_SYNC_WAIT_UPTO_GTID","YEARWEEK","COALESCE","NULLIF","TINYINT","SMALLINT","MEDIUMINT","INT","INTEGER","BIGINT","DECIMAL","DEC","NUMERIC","FIXED","FLOAT","DOUBLE","DOUBLE PRECISION","REAL","BIT","BINARY","BLOB","CHAR","NATIONAL CHAR","CHAR BYTE","ENUM","VARBINARY","VARCHAR","NATIONAL VARCHAR","TIME","DATETIME","TIMESTAMP","YEAR"]}),ea=A(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),es=A(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO]","REPLACE [LOW_PRIORITY | DELAYED] [INTO]","VALUES","SET","CREATE [OR REPLACE] [SQL SECURITY DEFINER | SQL SECURITY INVOKER] VIEW [IF NOT EXISTS]","CREATE [OR REPLACE] [TEMPORARY] TABLE [IF NOT EXISTS]","RETURNING"]),el=A(["UPDATE [LOW_PRIORITY] [IGNORE]","DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER [ONLINE] [IGNORE] TABLE [IF EXISTS]","ADD [COLUMN] [IF NOT EXISTS]","{CHANGE | MODIFY} [COLUMN] [IF EXISTS]","DROP [COLUMN] [IF EXISTS]","RENAME [TO]","RENAME COLUMN","ALTER [COLUMN]","{SET | DROP} DEFAULT","SET {VISIBLE | INVISIBLE}","TRUNCATE [TABLE]","ALTER DATABASE","ALTER DATABASE COMMENT","ALTER EVENT","ALTER FUNCTION","ALTER PROCEDURE","ALTER SCHEMA","ALTER SCHEMA COMMENT","ALTER SEQUENCE","ALTER SERVER","ALTER USER","ALTER VIEW","ANALYZE","ANALYZE TABLE","BACKUP LOCK","BACKUP STAGE","BACKUP UNLOCK","BEGIN","BINLOG","CACHE INDEX","CALL","CHANGE MASTER TO","CHECK TABLE","CHECK VIEW","CHECKSUM TABLE","COMMIT","CREATE AGGREGATE FUNCTION","CREATE DATABASE","CREATE EVENT","CREATE FUNCTION","CREATE INDEX","CREATE PROCEDURE","CREATE ROLE","CREATE SEQUENCE","CREATE SERVER","CREATE SPATIAL INDEX","CREATE TRIGGER","CREATE UNIQUE INDEX","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DROP DATABASE","DROP EVENT","DROP FUNCTION","DROP INDEX","DROP PREPARE","DROP PROCEDURE","DROP ROLE","DROP SEQUENCE","DROP SERVER","DROP TRIGGER","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","GET DIAGNOSTICS","GET DIAGNOSTICS CONDITION","GRANT","HANDLER","HELP","INSTALL PLUGIN","INSTALL SONAME","KILL","LOAD DATA INFILE","LOAD INDEX INTO CACHE","LOAD XML INFILE","LOCK TABLE","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","PURGE MASTER LOGS","RELEASE SAVEPOINT","RENAME TABLE","RENAME USER","REPAIR TABLE","REPAIR VIEW","RESET MASTER","RESET QUERY CACHE","RESET REPLICA","RESET SLAVE","RESIGNAL","REVOKE","ROLLBACK","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET GLOBAL TRANSACTION","SET NAMES","SET PASSWORD","SET ROLE","SET STATEMENT","SET TRANSACTION","SHOW","SHOW ALL REPLICAS STATUS","SHOW ALL SLAVES STATUS","SHOW AUTHORS","SHOW BINARY LOGS","SHOW BINLOG EVENTS","SHOW BINLOG STATUS","SHOW CHARACTER SET","SHOW CLIENT_STATISTICS","SHOW COLLATION","SHOW COLUMNS","SHOW CONTRIBUTORS","SHOW CREATE DATABASE","SHOW CREATE EVENT","SHOW CREATE FUNCTION","SHOW CREATE PACKAGE","SHOW CREATE PACKAGE BODY","SHOW CREATE PROCEDURE","SHOW CREATE SEQUENCE","SHOW CREATE TABLE","SHOW CREATE TRIGGER","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINE INNODB STATUS","SHOW ENGINES","SHOW ERRORS","SHOW EVENTS","SHOW EXPLAIN","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW INDEXES","SHOW INDEX_STATISTICS","SHOW KEYS","SHOW LOCALES","SHOW MASTER LOGS","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PACKAGE BODY CODE","SHOW PACKAGE BODY STATUS","SHOW PACKAGE STATUS","SHOW PLUGINS","SHOW PLUGINS SONAME","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW QUERY_RESPONSE_TIME","SHOW RELAYLOG EVENTS","SHOW REPLICA","SHOW REPLICA HOSTS","SHOW REPLICA STATUS","SHOW SCHEMAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW SLAVE STATUS","SHOW STATUS","SHOW STORAGE ENGINES","SHOW TABLE STATUS","SHOW TABLES","SHOW TRIGGERS","SHOW USER_STATISTICS","SHOW VARIABLES","SHOW WARNINGS","SHOW WSREP_MEMBERSHIP","SHOW WSREP_STATUS","SHUTDOWN","SIGNAL","START ALL REPLICAS","START ALL SLAVES","START REPLICA","START SLAVE","START TRANSACTION","STOP ALL REPLICAS","STOP ALL SLAVES","STOP REPLICA","STOP SLAVE","UNINSTALL PLUGIN","UNINSTALL SONAME","UNLOCK TABLE","USE","XA BEGIN","XA COMMIT","XA END","XA PREPARE","XA RECOVER","XA ROLLBACK","XA START"]),eE=A(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]","MINUS [ALL | DISTINCT]"]),ec=A(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),eu=A(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","CHARACTER SET","{ROWS | RANGE} BETWEEN"]),eT={tokenizerOptions:{reservedSelect:ea,reservedClauses:[...es,...el],reservedSetOperations:eE,reservedJoins:ec,reservedPhrases:eu,supportsXor:!0,reservedKeywords:eo,reservedFunctionNames:ei,stringTypes:['""-qq-bs',"''-qq-bs",{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_.$]+"},{quote:'""-qq-bs',prefixes:["@"],requirePrefix:!0},{quote:"''-qq-bs",prefixes:["@"],requirePrefix:!0},{quote:"``",prefixes:["@"],requirePrefix:!0}],paramTypes:{positional:!0},lineCommentTypes:["--","#"],operators:["%",":=","&","|","^","~","<<",">>","<=>","&&","||","!"],postProcess:function(e){return e.map((t,n)=>{let o=e[n+1]||u;return R.SET(t)&&"("===o.text?{...t,type:r.RESERVED_FUNCTION_NAME}:t})}},formatOptions:{onelineClauses:el}},eR=v({all:["ACCESSIBLE","ACCOUNT","ACTION","ACTIVE","ADD","ADMIN","AFTER","AGAINST","AGGREGATE","ALGORITHM","ALL","ALTER","ALWAYS","ANALYZE","AND","ANY","ARRAY","AS","ASC","ASCII","ASENSITIVE","AT","ATTRIBUTE","AUTHENTICATION","AUTOEXTEND_SIZE","AUTO_INCREMENT","AVG","AVG_ROW_LENGTH","BACKUP","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BINLOG","BIT","BLOB","BLOCK","BOOL","BOOLEAN","BOTH","BTREE","BUCKETS","BY","BYTE","CACHE","CALL","CASCADE","CASCADED","CASE","CATALOG_NAME","CHAIN","CHALLENGE_RESPONSE","CHANGE","CHANGED","CHANNEL","CHAR","CHARACTER","CHARSET","CHECK","CHECKSUM","CIPHER","CLASS_ORIGIN","CLIENT","CLONE","CLOSE","COALESCE","CODE","COLLATE","COLLATION","COLUMN","COLUMNS","COLUMN_FORMAT","COLUMN_NAME","COMMENT","COMMIT","COMMITTED","COMPACT","COMPLETION","COMPONENT","COMPRESSED","COMPRESSION","CONCURRENT","CONDITION","CONNECTION","CONSISTENT","CONSTRAINT","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONTAINS","CONTEXT","CONTINUE","CONVERT","CPU","CREATE","CROSS","CUBE","CUME_DIST","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CURSOR_NAME","DATA","DATABASE","DATABASES","DATAFILE","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULT_AUTH","DEFINER","DEFINITION","DELAYED","DELAY_KEY_WRITE","DELETE","DENSE_RANK","DESC","DESCRIBE","DESCRIPTION","DETERMINISTIC","DIAGNOSTICS","DIRECTORY","DISABLE","DISCARD","DISK","DISTINCT","DISTINCTROW","DIV","DO","DOUBLE","DROP","DUAL","DUMPFILE","DUPLICATE","DYNAMIC","EACH","ELSE","ELSEIF","EMPTY","ENABLE","ENCLOSED","ENCRYPTION","END","ENDS","ENFORCED","ENGINE","ENGINES","ENGINE_ATTRIBUTE","ENUM","ERROR","ERRORS","ESCAPE","ESCAPED","EVENT","EVENTS","EVERY","EXCEPT","EXCHANGE","EXCLUDE","EXECUTE","EXISTS","EXIT","EXPANSION","EXPIRE","EXPLAIN","EXPORT","EXTENDED","EXTENT_SIZE","FACTOR","FAILED_LOGIN_ATTEMPTS","FALSE","FAST","FAULTS","FETCH","FIELDS","FILE","FILE_BLOCK_SIZE","FILTER","FINISH","FIRST","FIRST_VALUE","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWING","FOLLOWS","FOR","FORCE","FOREIGN","FORMAT","FOUND","FROM","FULL","FULLTEXT","FUNCTION","GENERAL","GENERATED","GEOMCOLLECTION","GEOMETRY","GEOMETRYCOLLECTION","GET","GET_FORMAT","GET_MASTER_PUBLIC_KEY","GET_SOURCE_PUBLIC_KEY","GLOBAL","GRANT","GRANTS","GROUP","GROUPING","GROUPS","GROUP_REPLICATION","GTID_ONLY","HANDLER","HASH","HAVING","HELP","HIGH_PRIORITY","HISTOGRAM","HISTORY","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IF","IGNORE","IGNORE_SERVER_IDS","IMPORT","IN","INACTIVE","INDEX","INDEXES","INFILE","INITIAL","INITIAL_SIZE","INITIATE","INNER","INOUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTALL","INSTANCE","IN","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERSECT","INTERVAL","INTO","INVISIBLE","INVOKER","IO","IO_AFTER_GTIDS","IO_BEFORE_GTIDS","IO_THREAD","IPC","IS","ISOLATION","ISSUER","ITERATE","JOIN","JSON","JSON_TABLE","JSON_VALUE","KEY","KEYRING","KEYS","KEY_BLOCK_SIZE","KILL","LAG","LANGUAGE","LAST","LAST_VALUE","LATERAL","LEAD","LEADING","LEAVE","LEAVES","LEFT","LESS","LEVEL","LIKE","LIMIT","LINEAR","LINES","LINESTRING","LIST","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCK","LOCKED","LOCKS","LOGFILE","LOGS","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER","MASTER_AUTO_POSITION","MASTER_BIND","MASTER_COMPRESSION_ALGORITHMS","MASTER_CONNECT_RETRY","MASTER_DELAY","MASTER_HEARTBEAT_PERIOD","MASTER_HOST","MASTER_LOG_FILE","MASTER_LOG_POS","MASTER_PASSWORD","MASTER_PORT","MASTER_PUBLIC_KEY_PATH","MASTER_RETRY_COUNT","MASTER_SSL","MASTER_SSL_CA","MASTER_SSL_CAPATH","MASTER_SSL_CERT","MASTER_SSL_CIPHER","MASTER_SSL_CRL","MASTER_SSL_CRLPATH","MASTER_SSL_KEY","MASTER_SSL_VERIFY_SERVER_CERT","MASTER_TLS_CIPHERSUITES","MASTER_TLS_VERSION","MASTER_USER","MASTER_ZSTD_COMPRESSION_LEVEL","MATCH","MAXVALUE","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_SIZE","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MEDIUM","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMBER","MEMORY","MERGE","MESSAGE_TEXT","MICROSECOND","MIDDLEINT","MIGRATE","MINUTE","MINUTE_MICROSECOND","MINUTE_SECOND","MIN_ROWS","MOD","MODE","MODIFIES","MODIFY","MONTH","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","MUTEX","MYSQL_ERRNO","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NDB","NDBCLUSTER","NESTED","NETWORK_NAMESPACE","NEVER","NEW","NEXT","NO","NODEGROUP","NONE","NOT","NOWAIT","NO_WAIT","NO_WRITE_TO_BINLOG","NTH_VALUE","NTILE","NULL","NULLS","NUMBER","NUMERIC","NVARCHAR","OF","OFF","OFFSET","OJ","OLD","ON","ONE","ONLY","OPEN","OPTIMIZE","OPTIMIZER_COSTS","OPTION","OPTIONAL","OPTIONALLY","OPTIONS","OR","ORDER","ORDINALITY","ORGANIZATION","OTHERS","OUT","OUTER","OUTFILE","OVER","OWNER","PACK_KEYS","PAGE","PARSER","PARTIAL","PARTITION","PARTITIONING","PARTITIONS","PASSWORD","PASSWORD_LOCK_TIME","PATH","PERCENT_RANK","PERSIST","PERSIST_ONLY","PHASE","PLUGIN","PLUGINS","PLUGIN_DIR","POINT","POLYGON","PORT","PRECEDES","PRECEDING","PRECISION","PREPARE","PRESERVE","PREV","PRIMARY","PRIVILEGES","PRIVILEGE_CHECKS_USER","PROCEDURE","PROCESS","PROCESSLIST","PROFILE","PROFILES","PROXY","PURGE","QUARTER","QUERY","QUICK","RANDOM","RANGE","RANK","READ","READS","READ_ONLY","READ_WRITE","REAL","REBUILD","RECOVER","RECURSIVE","REDO_BUFFER_SIZE","REDUNDANT","REFERENCE","REFERENCES","REGEXP","REGISTRATION","RELAY","RELAYLOG","RELAY_LOG_FILE","RELAY_LOG_POS","RELAY_THREAD","RELEASE","RELOAD","REMOVE","RENAME","REORGANIZE","REPAIR","REPEAT","REPEATABLE","REPLACE","REPLICA","REPLICAS","REPLICATE_DO_DB","REPLICATE_DO_TABLE","REPLICATE_IGNORE_DB","REPLICATE_IGNORE_TABLE","REPLICATE_REWRITE_DB","REPLICATE_WILD_DO_TABLE","REPLICATE_WILD_IGNORE_TABLE","REPLICATION","REQUIRE","REQUIRE_ROW_FORMAT","RESET","RESIGNAL","RESOURCE","RESPECT","RESTART","RESTORE","RESTRICT","RESUME","RETAIN","RETURN","RETURNED_SQLSTATE","RETURNING","RETURNS","REUSE","REVERSE","REVOKE","RIGHT","RLIKE","ROLE","ROLLBACK","ROLLUP","ROTATE","ROUTINE","ROW","ROWS","ROW_COUNT","ROW_FORMAT","ROW_NUMBER","RTREE","SAVEPOINT","SCHEDULE","SCHEMA","SCHEMAS","SCHEMA_NAME","SECOND","SECONDARY","SECONDARY_ENGINE","SECONDARY_ENGINE_ATTRIBUTE","SECONDARY_LOAD","SECONDARY_UNLOAD","SECOND_MICROSECOND","SECURITY","SELECT","SENSITIVE","SEPARATOR","SERIAL","SERIALIZABLE","SERVER","SESSION","SET","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMPLE","SKIP","SLAVE","SLOW","SMALLINT","SNAPSHOT","SOCKET","SOME","SONAME","SOUNDS","SOURCE","SOURCE_AUTO_POSITION","SOURCE_BIND","SOURCE_COMPRESSION_ALGORITHMS","SOURCE_CONNECT_RETRY","SOURCE_DELAY","SOURCE_HEARTBEAT_PERIOD","SOURCE_HOST","SOURCE_LOG_FILE","SOURCE_LOG_POS","SOURCE_PASSWORD","SOURCE_PORT","SOURCE_PUBLIC_KEY_PATH","SOURCE_RETRY_COUNT","SOURCE_SSL","SOURCE_SSL_CA","SOURCE_SSL_CAPATH","SOURCE_SSL_CERT","SOURCE_SSL_CIPHER","SOURCE_SSL_CRL","SOURCE_SSL_CRLPATH","SOURCE_SSL_KEY","SOURCE_SSL_VERIFY_SERVER_CERT","SOURCE_TLS_CIPHERSUITES","SOURCE_TLS_VERSION","SOURCE_USER","SOURCE_ZSTD_COMPRESSION_LEVEL","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_AFTER_GTIDS","SQL_AFTER_MTS_GAPS","SQL_BEFORE_GTIDS","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CALC_FOUND_ROWS","SQL_NO_CACHE","SQL_SMALL_RESULT","SQL_THREAD","SQL_TSI_DAY","SQL_TSI_HOUR","SQL_TSI_MINUTE","SQL_TSI_MONTH","SQL_TSI_QUARTER","SQL_TSI_SECOND","SQL_TSI_WEEK","SQL_TSI_YEAR","SRID","SSL","STACKED","START","STARTING","STARTS","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STATUS","STOP","STORAGE","STORED","STRAIGHT_JOIN","STREAM","STRING","SUBCLASS_ORIGIN","SUBJECT","SUBPARTITION","SUBPARTITIONS","SUPER","SUSPEND","SWAPS","SWITCHES","SYSTEM","TABLE","TABLES","TABLESPACE","TABLE_CHECKSUM","TABLE_NAME","TEMPORARY","TEMPTABLE","TERMINATED","TEXT","THAN","THEN","THREAD_PRIORITY","TIES","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TINYBLOB","TINYINT","TINYTEXT","TLS","TO","TRAILING","TRANSACTION","TRIGGER","TRIGGERS","TRUE","TRUNCATE","TYPE","TYPES","UNBOUNDED","UNCOMMITTED","UNDEFINED","UNDO","UNDOFILE","UNDO_BUFFER_SIZE","UNICODE","UNINSTALL","UNION","UNIQUE","UNKNOWN","UNLOCK","UNREGISTER","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USER_RESOURCES","USE_FRM","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALIDATION","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARIABLES","VARYING","VCPU","VIEW","VIRTUAL","VISIBLE","WAIT","WARNINGS","WEEK","WEIGHT_STRING","WHEN","WHERE","WHILE","WINDOW","WITH","WITHOUT","WORK","WRAPPER","WRITE","X509","XA","XID","XML","XOR","YEAR","YEAR_MONTH","ZEROFILL","ZONE"]}),ed=v({all:["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","ASCII","ASIN","ATAN","ATAN2","AVG","BENCHMARK","BIN","BIN_TO_UUID","BINARY","BIT_AND","BIT_COUNT","BIT_LENGTH","BIT_OR","BIT_XOR","CAN_ACCESS_COLUMN","CAN_ACCESS_DATABASE","CAN_ACCESS_TABLE","CAN_ACCESS_USER","CAN_ACCESS_VIEW","CAST","CEIL","CEILING","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COMPRESS","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CRC32","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEFAULT","DEGREES","DENSE_RANK","DIV","ELT","EXP","EXPORT_SET","EXTRACT","EXTRACTVALUE","FIELD","FIND_IN_SET","FIRST_VALUE","FLOOR","FORMAT","FORMAT_BYTES","FORMAT_PICO_TIME","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOMCOLLECTION","GEOMETRYCOLLECTION","GET_DD_COLUMN_PRIVILEGES","GET_DD_CREATE_OPTIONS","GET_DD_INDEX_SUB_PART_LENGTH","GET_FORMAT","GET_LOCK","GREATEST","GROUP_CONCAT","GROUPING","GTID_SUBSET","GTID_SUBTRACT","HEX","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INSERT","INSTR","INTERNAL_AUTO_INCREMENT","INTERNAL_AVG_ROW_LENGTH","INTERNAL_CHECK_TIME","INTERNAL_CHECKSUM","INTERNAL_DATA_FREE","INTERNAL_DATA_LENGTH","INTERNAL_DD_CHAR_LENGTH","INTERNAL_GET_COMMENT_OR_ERROR","INTERNAL_GET_ENABLED_ROLE_JSON","INTERNAL_GET_HOSTNAME","INTERNAL_GET_USERNAME","INTERNAL_GET_VIEW_WARNING_OR_ERROR","INTERNAL_INDEX_COLUMN_CARDINALITY","INTERNAL_INDEX_LENGTH","INTERNAL_IS_ENABLED_ROLE","INTERNAL_IS_MANDATORY_ROLE","INTERNAL_KEYS_DISABLED","INTERNAL_MAX_DATA_LENGTH","INTERNAL_TABLE_ROWS","INTERNAL_UPDATE_TIME","INTERVAL","IS","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS NOT","IS NOT NULL","IS NULL","IS_USED_LOCK","IS_UUID","ISNULL","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_ARRAYAGG","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_OBJECTAGG","JSON_OVERLAPS","JSON_PRETTY","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SCHEMA_VALID","JSON_SCHEMA_VALIDATION_REPORT","JSON_SEARCH","JSON_SET","JSON_STORAGE_FREE","JSON_STORAGE_SIZE","JSON_TABLE","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAG","LAST_DAY","LAST_INSERT_ID","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LINESTRING","LN","LOAD_FILE","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","MAKE_SET","MAKEDATE","MAKETIME","MASTER_POS_WAIT","MATCH","MAX","MBRCONTAINS","MBRCOVEREDBY","MBRCOVERS","MBRDISJOINT","MBREQUALS","MBRINTERSECTS","MBROVERLAPS","MBRTOUCHES","MBRWITHIN","MD5","MEMBER OF","MICROSECOND","MID","MIN","MINUTE","MOD","MONTH","MONTHNAME","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","NAME_CONST","NOT","NOT IN","NOT LIKE","NOT REGEXP","NOW","NTH_VALUE","NTILE","NULLIF","OCT","OCTET_LENGTH","ORD","PERCENT_RANK","PERIOD_ADD","PERIOD_DIFF","PI","POINT","POLYGON","POSITION","POW","POWER","PS_CURRENT_THREAD_ID","PS_THREAD_ID","QUARTER","QUOTE","RADIANS","RAND","RANDOM_BYTES","RANK","REGEXP","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROLES_GRAPHML","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCHEMA","SEC_TO_TIME","SECOND","SESSION_USER","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","ST_AREA","ST_ASBINARY","ST_ASGEOJSON","ST_ASTEXT","ST_BUFFER","ST_BUFFER_STRATEGY","ST_CENTROID","ST_COLLECT","ST_CONTAINS","ST_CONVEXHULL","ST_CROSSES","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DISTANCE_SPHERE","ST_ENDPOINT","ST_ENVELOPE","ST_EQUALS","ST_EXTERIORRING","ST_FRECHETDISTANCE","ST_GEOHASH","ST_GEOMCOLLFROMTEXT","ST_GEOMCOLLFROMWKB","ST_GEOMETRYN","ST_GEOMETRYTYPE","ST_GEOMFROMGEOJSON","ST_GEOMFROMTEXT","ST_GEOMFROMWKB","ST_HAUSDORFFDISTANCE","ST_INTERIORRINGN","ST_INTERSECTION","ST_INTERSECTS","ST_ISCLOSED","ST_ISEMPTY","ST_ISSIMPLE","ST_ISVALID","ST_LATFROMGEOHASH","ST_LATITUDE","ST_LENGTH","ST_LINEFROMTEXT","ST_LINEFROMWKB","ST_LINEINTERPOLATEPOINT","ST_LINEINTERPOLATEPOINTS","ST_LONGFROMGEOHASH","ST_LONGITUDE","ST_MAKEENVELOPE","ST_MLINEFROMTEXT","ST_MLINEFROMWKB","ST_MPOINTFROMTEXT","ST_MPOINTFROMWKB","ST_MPOLYFROMTEXT","ST_MPOLYFROMWKB","ST_NUMGEOMETRIES","ST_NUMINTERIORRING","ST_NUMPOINTS","ST_OVERLAPS","ST_POINTATDISTANCE","ST_POINTFROMGEOHASH","ST_POINTFROMTEXT","ST_POINTFROMWKB","ST_POINTN","ST_POLYFROMTEXT","ST_POLYFROMWKB","ST_SIMPLIFY","ST_SRID","ST_STARTPOINT","ST_SWAPXY","ST_SYMDIFFERENCE","ST_TOUCHES","ST_TRANSFORM","ST_UNION","ST_VALIDATE","ST_WITHIN","ST_X","ST_Y","STATEMENT_DIGEST","STATEMENT_DIGEST_TEXT","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","STRCMP","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUBTIME","SUM","SYSDATE","SYSTEM_USER","TAN","TIME","TIME_FORMAT","TIME_TO_SEC","TIMEDIFF","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TO_BASE64","TO_DAYS","TO_SECONDS","TRIM","TRUNCATE","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","USER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","UUID_SHORT","UUID_TO_BIN","VALIDATE_PASSWORD_STRENGTH","VALUES","VAR_POP","VAR_SAMP","VARIANCE","VERSION","WAIT_FOR_EXECUTED_GTID_SET","WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS","WEEK","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","YEAR","YEARWEEK","BIT","TINYINT","SMALLINT","MEDIUMINT","INT","INTEGER","BIGINT","DECIMAL","DEC","NUMERIC","FIXED","FLOAT","DOUBLE","DOUBLE PRECISION","REAL","DATETIME","TIMESTAMP","TIME","YEAR","CHAR","NATIONAL CHAR","VARCHAR","NATIONAL VARCHAR","BINARY","VARBINARY","BLOB","TEXT","ENUM"]}),ef=A(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),eA=A(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO]","REPLACE [LOW_PRIORITY | DELAYED] [INTO]","VALUES","SET","CREATE [OR REPLACE] [SQL SECURITY DEFINER | SQL SECURITY INVOKER] VIEW [IF NOT EXISTS]","CREATE [TEMPORARY] TABLE [IF NOT EXISTS]"]),eS=A(["UPDATE [LOW_PRIORITY] [IGNORE]","DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER TABLE","ADD [COLUMN]","{CHANGE | MODIFY} [COLUMN]","DROP [COLUMN]","RENAME [TO | AS]","RENAME COLUMN","ALTER [COLUMN]","{SET | DROP} DEFAULT","TRUNCATE [TABLE]","ALTER DATABASE","ALTER EVENT","ALTER FUNCTION","ALTER INSTANCE","ALTER LOGFILE GROUP","ALTER PROCEDURE","ALTER RESOURCE GROUP","ALTER SERVER","ALTER TABLESPACE","ALTER USER","ALTER VIEW","ANALYZE TABLE","BINLOG","CACHE INDEX","CALL","CHANGE MASTER TO","CHANGE REPLICATION FILTER","CHANGE REPLICATION SOURCE TO","CHECK TABLE","CHECKSUM TABLE","CLONE","COMMIT","CREATE DATABASE","CREATE EVENT","CREATE FUNCTION","CREATE FUNCTION","CREATE INDEX","CREATE LOGFILE GROUP","CREATE PROCEDURE","CREATE RESOURCE GROUP","CREATE ROLE","CREATE SERVER","CREATE SPATIAL REFERENCE SYSTEM","CREATE TABLESPACE","CREATE TRIGGER","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DROP DATABASE","DROP EVENT","DROP FUNCTION","DROP FUNCTION","DROP INDEX","DROP LOGFILE GROUP","DROP PROCEDURE","DROP RESOURCE GROUP","DROP ROLE","DROP SERVER","DROP SPATIAL REFERENCE SYSTEM","DROP TABLESPACE","DROP TRIGGER","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","GRANT","HANDLER","HELP","IMPORT TABLE","INSTALL COMPONENT","INSTALL PLUGIN","KILL","LOAD DATA","LOAD INDEX INTO CACHE","LOAD XML","LOCK INSTANCE FOR BACKUP","LOCK TABLES","MASTER_POS_WAIT","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","RELEASE SAVEPOINT","RENAME TABLE","RENAME USER","REPAIR TABLE","RESET","RESET MASTER","RESET PERSIST","RESET REPLICA","RESET SLAVE","RESTART","REVOKE","ROLLBACK","ROLLBACK TO SAVEPOINT","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET NAMES","SET PASSWORD","SET RESOURCE GROUP","SET ROLE","SET TRANSACTION","SHOW","SHOW BINARY LOGS","SHOW BINLOG EVENTS","SHOW CHARACTER SET","SHOW COLLATION","SHOW COLUMNS","SHOW CREATE DATABASE","SHOW CREATE EVENT","SHOW CREATE FUNCTION","SHOW CREATE PROCEDURE","SHOW CREATE TABLE","SHOW CREATE TRIGGER","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINES","SHOW ERRORS","SHOW EVENTS","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PLUGINS","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW RELAYLOG EVENTS","SHOW REPLICA STATUS","SHOW REPLICAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW STATUS","SHOW TABLE STATUS","SHOW TABLES","SHOW TRIGGERS","SHOW VARIABLES","SHOW WARNINGS","SHUTDOWN","SOURCE_POS_WAIT","START GROUP_REPLICATION","START REPLICA","START SLAVE","START TRANSACTION","STOP GROUP_REPLICATION","STOP REPLICA","STOP SLAVE","TABLE","UNINSTALL COMPONENT","UNINSTALL PLUGIN","UNLOCK INSTANCE","UNLOCK TABLES","USE","XA","ITERATE","LEAVE","LOOP","REPEAT","RETURN","WHILE"]),eO=A(["UNION [ALL | DISTINCT]"]),ep=A(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),eN=A(["ON {UPDATE | DELETE} [SET NULL]","CHARACTER SET","{ROWS | RANGE} BETWEEN"]),eI={tokenizerOptions:{reservedSelect:ef,reservedClauses:[...eA,...eS],reservedSetOperations:eO,reservedJoins:ep,reservedPhrases:eN,supportsXor:!0,reservedKeywords:eR,reservedFunctionNames:ed,stringTypes:['""-qq-bs',{quote:"''-qq-bs",prefixes:["N"]},{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_.$]+"},{quote:'""-qq-bs',prefixes:["@"],requirePrefix:!0},{quote:"''-qq-bs",prefixes:["@"],requirePrefix:!0},{quote:"``",prefixes:["@"],requirePrefix:!0}],paramTypes:{positional:!0},lineCommentTypes:["--","#"],operators:["%",":=","&","|","^","~","<<",">>","<=>","->","->>","&&","||","!"],postProcess:function(e){return e.map((t,n)=>{let o=e[n+1]||u;return R.SET(t)&&"("===o.text?{...t,type:r.RESERVED_FUNCTION_NAME}:t})}},formatOptions:{onelineClauses:eS}},eh=v({all:["ABORT","ABS","ACOS","ADVISOR","ARRAY_AGG","ARRAY_AGG","ARRAY_APPEND","ARRAY_AVG","ARRAY_BINARY_SEARCH","ARRAY_CONCAT","ARRAY_CONTAINS","ARRAY_COUNT","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_FLATTEN","ARRAY_IFNULL","ARRAY_INSERT","ARRAY_INTERSECT","ARRAY_LENGTH","ARRAY_MAX","ARRAY_MIN","ARRAY_MOVE","ARRAY_POSITION","ARRAY_PREPEND","ARRAY_PUT","ARRAY_RANGE","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_REPLACE","ARRAY_REVERSE","ARRAY_SORT","ARRAY_STAR","ARRAY_SUM","ARRAY_SYMDIFF","ARRAY_SYMDIFF1","ARRAY_SYMDIFFN","ARRAY_UNION","ASIN","ATAN","ATAN2","AVG","BASE64","BASE64_DECODE","BASE64_ENCODE","BITAND ","BITCLEAR ","BITNOT ","BITOR ","BITSET ","BITSHIFT ","BITTEST ","BITXOR ","CEIL","CLOCK_LOCAL","CLOCK_MILLIS","CLOCK_STR","CLOCK_TZ","CLOCK_UTC","COALESCE","CONCAT","CONCAT2","CONTAINS","CONTAINS_TOKEN","CONTAINS_TOKEN_LIKE","CONTAINS_TOKEN_REGEXP","COS","COUNT","COUNT","COUNTN","CUME_DIST","CURL","DATE_ADD_MILLIS","DATE_ADD_STR","DATE_DIFF_MILLIS","DATE_DIFF_STR","DATE_FORMAT_STR","DATE_PART_MILLIS","DATE_PART_STR","DATE_RANGE_MILLIS","DATE_RANGE_STR","DATE_TRUNC_MILLIS","DATE_TRUNC_STR","DECODE","DECODE_JSON","DEGREES","DENSE_RANK","DURATION_TO_STR","ENCODED_SIZE","ENCODE_JSON","EXP","FIRST_VALUE","FLOOR","GREATEST","HAS_TOKEN","IFINF","IFMISSING","IFMISSINGORNULL","IFNAN","IFNANORINF","IFNULL","INITCAP","ISARRAY","ISATOM","ISBITSET","ISBOOLEAN","ISNUMBER","ISOBJECT","ISSTRING","LAG","LAST_VALUE","LEAD","LEAST","LENGTH","LN","LOG","LOWER","LTRIM","MAX","MEAN","MEDIAN","META","MILLIS","MILLIS_TO_LOCAL","MILLIS_TO_STR","MILLIS_TO_TZ","MILLIS_TO_UTC","MILLIS_TO_ZONE_NAME","MIN","MISSINGIF","NANIF","NEGINFIF","NOW_LOCAL","NOW_MILLIS","NOW_STR","NOW_TZ","NOW_UTC","NTH_VALUE","NTILE","NULLIF","NVL","NVL2","OBJECT_ADD","OBJECT_CONCAT","OBJECT_INNER_PAIRS","OBJECT_INNER_VALUES","OBJECT_LENGTH","OBJECT_NAMES","OBJECT_PAIRS","OBJECT_PUT","OBJECT_REMOVE","OBJECT_RENAME","OBJECT_REPLACE","OBJECT_UNWRAP","OBJECT_VALUES","PAIRS","PERCENT_RANK","PI","POLY_LENGTH","POSINFIF","POSITION","POWER","RADIANS","RANDOM","RANK","RATIO_TO_REPORT","REGEXP_CONTAINS","REGEXP_LIKE","REGEXP_MATCHES","REGEXP_POSITION","REGEXP_REPLACE","REGEXP_SPLIT","REGEX_CONTAINS","REGEX_LIKE","REGEX_MATCHES","REGEX_POSITION","REGEX_REPLACE","REGEX_SPLIT","REPEAT","REPLACE","REVERSE","ROUND","ROW_NUMBER","RTRIM","SEARCH","SEARCH_META","SEARCH_SCORE","SIGN","SIN","SPLIT","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DURATION","STR_TO_MILLIS","STR_TO_TZ","STR_TO_UTC","STR_TO_ZONE_NAME","SUBSTR","SUFFIXES","SUM","TAN","TITLE","TOARRAY","TOATOM","TOBOOLEAN","TOKENS","TOKENS","TONUMBER","TOOBJECT","TOSTRING","TRIM","TRUNC","UPPER","UUID","VARIANCE","VARIANCE_POP","VARIANCE_SAMP","VAR_POP","VAR_SAMP","WEEKDAY_MILLIS","WEEKDAY_STR","CAST"]}),e_=v({all:["ADVISE","ALL","ALTER","ANALYZE","AND","ANY","ARRAY","AS","ASC","AT","BEGIN","BETWEEN","BINARY","BOOLEAN","BREAK","BUCKET","BUILD","BY","CALL","CASE","CAST","CLUSTER","COLLATE","COLLECTION","COMMIT","COMMITTED","CONNECT","CONTINUE","CORRELATED","COVER","CREATE","CURRENT","DATABASE","DATASET","DATASTORE","DECLARE","DECREMENT","DELETE","DERIVED","DESC","DESCRIBE","DISTINCT","DO","DROP","EACH","ELEMENT","ELSE","END","EVERY","EXCEPT","EXCLUDE","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FILTER","FIRST","FLATTEN","FLUSH","FOLLOWING","FOR","FORCE","FROM","FTS","FUNCTION","GOLANG","GRANT","GROUP","GROUPS","GSI","HASH","HAVING","IF","ISOLATION","IGNORE","ILIKE","IN","INCLUDE","INCREMENT","INDEX","INFER","INLINE","INNER","INSERT","INTERSECT","INTO","IS","JAVASCRIPT","JOIN","KEY","KEYS","KEYSPACE","KNOWN","LANGUAGE","LAST","LEFT","LET","LETTING","LEVEL","LIKE","LIMIT","LSM","MAP","MAPPING","MATCHED","MATERIALIZED","MERGE","MINUS","MISSING","NAMESPACE","NEST","NL","NO","NOT","NTH_VALUE","NULL","NULLS","NUMBER","OBJECT","OFFSET","ON","OPTION","OPTIONS","OR","ORDER","OTHERS","OUTER","OVER","PARSE","PARTITION","PASSWORD","PATH","POOL","PRECEDING","PREPARE","PRIMARY","PRIVATE","PRIVILEGE","PROBE","PROCEDURE","PUBLIC","RANGE","RAW","REALM","REDUCE","RENAME","RESPECT","RETURN","RETURNING","REVOKE","RIGHT","ROLE","ROLLBACK","ROW","ROWS","SATISFIES","SAVEPOINT","SCHEMA","SCOPE","SELECT","SELF","SEMI","SET","SHOW","SOME","START","STATISTICS","STRING","SYSTEM","THEN","TIES","TO","TRAN","TRANSACTION","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNDER","UNION","UNIQUE","UNKNOWN","UNNEST","UNSET","UPDATE","UPSERT","USE","USER","USING","VALIDATE","VALUE","VALUED","VALUES","VIA","VIEW","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WORK","XOR"]}),em=A(["SELECT [ALL | DISTINCT]"]),eC=A(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT INTO","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED THEN","UPDATE SET","INSERT","NEST","UNNEST","RETURNING"]),eL=A(["UPDATE","DELETE FROM","SET SCHEMA","ADVISE","ALTER INDEX","BEGIN TRANSACTION","BUILD INDEX","COMMIT TRANSACTION","CREATE COLLECTION","CREATE FUNCTION","CREATE INDEX","CREATE PRIMARY INDEX","CREATE SCOPE","DROP COLLECTION","DROP FUNCTION","DROP INDEX","DROP PRIMARY INDEX","DROP SCOPE","EXECUTE","EXECUTE FUNCTION","EXPLAIN","GRANT","INFER","PREPARE","REVOKE","ROLLBACK TRANSACTION","SAVEPOINT","SET TRANSACTION","UPDATE STATISTICS","UPSERT","LET","SET CURRENT SCHEMA","SHOW","USE [PRIMARY] KEYS"]),eg=A(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),ev=A(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","INNER JOIN"]),eP=A(["{ROWS | RANGE | GROUPS} BETWEEN"]),ey={tokenizerOptions:{reservedSelect:em,reservedClauses:[...eC,...eL],reservedSetOperations:eg,reservedJoins:ev,reservedPhrases:eP,supportsXor:!0,reservedKeywords:e_,reservedFunctionNames:eh,stringTypes:['""-bs',"''-bs"],identTypes:["``"],extraParens:["[]","{}"],paramTypes:{positional:!0,numbered:["$"],named:["$"]},lineCommentTypes:["#","--"],operators:["%","==",":","||"]},formatOptions:{onelineClauses:eL}},eD=v({all:["ADD","AGENT","AGGREGATE","ALL","ALTER","AND","ANY","ARRAY","ARROW","AS","ASC","AT","ATTRIBUTE","AUTHID","AVG","BEGIN","BETWEEN","BFILE_BASE","BINARY","BLOB_BASE","BLOCK","BODY","BOTH","BOUND","BULK","BY","BYTE","CALL","CALLING","CASCADE","CASE","CHAR","CHAR_BASE","CHARACTER","CHARSET","CHARSETFORM","CHARSETID","CHECK","CLOB_BASE","CLOSE","CLUSTER","CLUSTERS","COLAUTH","COLLECT","COLUMNS","COMMENT","COMMIT","COMMITTED","COMPILED","COMPRESS","CONNECT","CONSTANT","CONSTRUCTOR","CONTEXT","CONVERT","COUNT","CRASH","CREATE","CURRENT","CURSOR","CUSTOMDATUM","DANGLING","DATA","DATE","DATE_BASE","DAY","DECIMAL","DECLARE","DEFAULT","DEFINE","DELETE","DESC","DETERMINISTIC","DISTINCT","DOUBLE","DROP","DURATION","ELEMENT","ELSE","ELSIF","EMPTY","END","ESCAPE","EXCEPT","EXCEPTION","EXCEPTIONS","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXTERNAL","FETCH","FINAL","FIXED","FLOAT","FOR","FORALL","FORCE","FORM","FROM","FUNCTION","GENERAL","GOTO","GRANT","GROUP","HASH","HAVING","HEAP","HIDDEN","HOUR","IDENTIFIED","IF","IMMEDIATE","IN","INCLUDING","INDEX","INDEXES","INDICATOR","INDICES","INFINITE","INSERT","INSTANTIABLE","INT","INTERFACE","INTERSECT","INTERVAL","INTO","INVALIDATE","IS","ISOLATION","JAVA","LANGUAGE","LARGE","LEADING","LENGTH","LEVEL","LIBRARY","LIKE","LIKE2","LIKE4","LIKEC","LIMIT","LIMITED","LOCAL","LOCK","LONG","LOOP","MAP","MAX","MAXLEN","MEMBER","MERGE","MIN","MINUS","MINUTE","MOD","MODE","MODIFY","MONTH","MULTISET","NAME","NAN","NATIONAL","NATIVE","NCHAR","NEW","NOCOMPRESS","NOCOPY","NOT","NOWAIT","NULL","NUMBER_BASE","OBJECT","OCICOLL","OCIDATE","OCIDATETIME","OCIDURATION","OCIINTERVAL","OCILOBLOCATOR","OCINUMBER","OCIRAW","OCIREF","OCIREFCURSOR","OCIROWID","OCISTRING","OCITYPE","OF","ON","ONLY","OPAQUE","OPEN","OPERATOR","OPTION","OR","ORACLE","ORADATA","ORDER","OVERLAPS","ORGANIZATION","ORLANY","ORLVARY","OTHERS","OUT","OVERRIDING","PACKAGE","PARALLEL_ENABLE","PARAMETER","PARAMETERS","PARTITION","PASCAL","PIPE","PIPELINED","PRAGMA","PRECISION","PRIOR","PRIVATE","PROCEDURE","PUBLIC","RAISE","RANGE","RAW","READ","RECORD","REF","REFERENCE","REM","REMAINDER","RENAME","RESOURCE","RESULT","RETURN","RETURNING","REVERSE","REVOKE","ROLLBACK","ROW","SAMPLE","SAVE","SAVEPOINT","SB1","SB2","SB4","SECOND","SEGMENT","SELECT","SELF","SEPARATE","SEQUENCE","SERIALIZABLE","SET","SHARE","SHORT","SIZE","SIZE_T","SOME","SPARSE","SQL","SQLCODE","SQLDATA","SQLNAME","SQLSTATE","STANDARD","START","STATIC","STDDEV","STORED","STRING","STRUCT","STYLE","SUBMULTISET","SUBPARTITION","SUBSTITUTABLE","SUBTYPE","SUM","SYNONYM","TABAUTH","TABLE","TDO","THE","THEN","TIME","TIMESTAMP","TIMEZONE_ABBR","TIMEZONE_HOUR","TIMEZONE_MINUTE","TIMEZONE_REGION","TO","TRAILING","TRANSAC","TRANSACTIONAL","TRUSTED","TYPE","UB1","UB2","UB4","UNDER","UNION","UNIQUE","UNSIGNED","UNTRUSTED","UPDATE","USE","USING","VALIST","VALUE","VALUES","VARIABLE","VARIANCE","VARRAY","VARYING","VIEW","VIEWS","VOID","WHEN","WHERE","WHILE","WITH","WORK","WRAPPED","WRITE","YEAR","ZONE"]}),eM=v({numeric:["ABS","ACOS","ASIN","ATAN","ATAN2","BITAND","CEIL","COS","COSH","EXP","FLOOR","LN","LOG","MOD","NANVL","POWER","REMAINDER","ROUND","SIGN","SIN","SINH","SQRT","TAN","TANH","TRUNC","WIDTH_BUCKET"],character:["CHR","CONCAT","INITCAP","LOWER","LPAD","LTRIM","NLS_INITCAP","NLS_LOWER","NLSSORT","NLS_UPPER","REGEXP_REPLACE","REGEXP_SUBSTR","REPLACE","RPAD","RTRIM","SOUNDEX","SUBSTR","TRANSLATE","TREAT","TRIM","UPPER","NLS_CHARSET_DECL_LEN","NLS_CHARSET_ID","NLS_CHARSET_NAME","ASCII","INSTR","LENGTH","REGEXP_INSTR"],datetime:["ADD_MONTHS","CURRENT_DATE","CURRENT_TIMESTAMP","DBTIMEZONE","EXTRACT","FROM_TZ","LAST_DAY","LOCALTIMESTAMP","MONTHS_BETWEEN","NEW_TIME","NEXT_DAY","NUMTODSINTERVAL","NUMTOYMINTERVAL","ROUND","SESSIONTIMEZONE","SYS_EXTRACT_UTC","SYSDATE","SYSTIMESTAMP","TO_CHAR","TO_TIMESTAMP","TO_TIMESTAMP_TZ","TO_DSINTERVAL","TO_YMINTERVAL","TRUNC","TZ_OFFSET"],comparison:["GREATEST","LEAST"],conversion:["ASCIISTR","BIN_TO_NUM","CAST","CHARTOROWID","COMPOSE","CONVERT","DECOMPOSE","HEXTORAW","NUMTODSINTERVAL","NUMTOYMINTERVAL","RAWTOHEX","RAWTONHEX","ROWIDTOCHAR","ROWIDTONCHAR","SCN_TO_TIMESTAMP","TIMESTAMP_TO_SCN","TO_BINARY_DOUBLE","TO_BINARY_FLOAT","TO_CHAR","TO_CLOB","TO_DATE","TO_DSINTERVAL","TO_LOB","TO_MULTI_BYTE","TO_NCHAR","TO_NCLOB","TO_NUMBER","TO_DSINTERVAL","TO_SINGLE_BYTE","TO_TIMESTAMP","TO_TIMESTAMP_TZ","TO_YMINTERVAL","TO_YMINTERVAL","TRANSLATE","UNISTR"],largeObject:["BFILENAME","EMPTY_BLOB,","EMPTY_CLOB"],collection:["CARDINALITY","COLLECT","POWERMULTISET","POWERMULTISET_BY_CARDINALITY","SET"],hierarchical:["SYS_CONNECT_BY_PATH"],dataMining:["CLUSTER_ID","CLUSTER_PROBABILITY","CLUSTER_SET","FEATURE_ID","FEATURE_SET","FEATURE_VALUE","PREDICTION","PREDICTION_COST","PREDICTION_DETAILS","PREDICTION_PROBABILITY","PREDICTION_SET"],xml:["APPENDCHILDXML","DELETEXML","DEPTH","EXTRACT","EXISTSNODE","EXTRACTVALUE","INSERTCHILDXML","INSERTXMLBEFORE","PATH","SYS_DBURIGEN","SYS_XMLAGG","SYS_XMLGEN","UPDATEXML","XMLAGG","XMLCDATA","XMLCOLATTVAL","XMLCOMMENT","XMLCONCAT","XMLFOREST","XMLPARSE","XMLPI","XMLQUERY","XMLROOT","XMLSEQUENCE","XMLSERIALIZE","XMLTABLE","XMLTRANSFORM"],encoding:["DECODE","DUMP","ORA_HASH","VSIZE"],nullRelated:["COALESCE","LNNVL","NULLIF","NVL","NVL2"],env:["SYS_CONTEXT","SYS_GUID","SYS_TYPEID","UID","USER","USERENV"],aggregate:["AVG","COLLECT","CORR","CORR_S","CORR_K","COUNT","COVAR_POP","COVAR_SAMP","CUME_DIST","DENSE_RANK","FIRST","GROUP_ID","GROUPING","GROUPING_ID","LAST","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","RANK","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","STATS_BINOMIAL_TEST","STATS_CROSSTAB","STATS_F_TEST","STATS_KS_TEST","STATS_MODE","STATS_MW_TEST","STATS_ONE_WAY_ANOVA","STATS_T_TEST_ONE","STATS_T_TEST_PAIRED","STATS_T_TEST_INDEP","STATS_T_TEST_INDEPU","STATS_WSR_TEST","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE"],window:["FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTILE","RATIO_TO_REPORT","ROW_NUMBER"],objectReference:["DEREF","MAKE_REF","REF","REFTOHEX","VALUE"],model:["CV","ITERATION_NUMBER","PRESENTNNV","PRESENTV","PREVIOUS"],dataTypes:["VARCHAR2","NVARCHAR2","NUMBER","FLOAT","TIMESTAMP","INTERVAL YEAR","INTERVAL DAY","RAW","UROWID","NCHAR","CHARACTER","CHAR","CHARACTER VARYING","CHAR VARYING","NATIONAL CHARACTER","NATIONAL CHAR","NATIONAL CHARACTER VARYING","NATIONAL CHAR VARYING","NCHAR VARYING","NUMERIC","DECIMAL","FLOAT","VARCHAR"]}),eb=A(["SELECT [ALL | DISTINCT | UNIQUE]"]),eU=A(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER [SIBLINGS] BY","OFFSET","FETCH {FIRST | NEXT}","FOR UPDATE [OF]","INSERT [INTO | ALL INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [THEN]","UPDATE SET","CREATE [OR REPLACE] [NO FORCE | FORCE] [EDITIONING | EDITIONABLE | EDITIONABLE EDITIONING | NONEDITIONABLE] VIEW","CREATE MATERIALIZED VIEW","CREATE [GLOBAL TEMPORARY | PRIVATE TEMPORARY | SHARDED | DUPLICATED | IMMUTABLE BLOCKCHAIN | BLOCKCHAIN | IMMUTABLE] TABLE","RETURNING"]),ex=A(["UPDATE [ONLY]","DELETE FROM [ONLY]","DROP TABLE","ALTER TABLE","ADD","DROP {COLUMN | UNUSED COLUMNS | COLUMNS CONTINUE}","MODIFY","RENAME TO","RENAME COLUMN","TRUNCATE TABLE","SET SCHEMA","BEGIN","CONNECT BY","DECLARE","EXCEPT","EXCEPTION","LOOP","START WITH"]),ew=A(["UNION [ALL]","EXCEPT","INTERSECT"]),eG=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN","{CROSS | OUTER} APPLY"]),eF=A(["ON {UPDATE | DELETE} [SET NULL]","ON COMMIT","{ROWS | RANGE} BETWEEN"]),eH={tokenizerOptions:{reservedSelect:eb,reservedClauses:[...eU,...ex],reservedSetOperations:ew,reservedJoins:eG,reservedPhrases:eF,supportsXor:!0,reservedKeywords:eD,reservedFunctionNames:eM,stringTypes:[{quote:"''-qq",prefixes:["N"]},{quote:"q''",prefixes:["N"]}],identTypes:['""-qq'],identChars:{rest:"$#"},variableTypes:[{regex:"&{1,2}[A-Za-z][A-Za-z0-9_$#]*"}],paramTypes:{numbered:[":"],named:[":"]},paramChars:{},operators:["**",":=","%","~=","^=",">>","<<","=>","@","||"],postProcess:function(e){let t=u;return e.map(e=>R.SET(e)&&R.BY(t)?{...e,type:r.RESERVED_KEYWORD}:(d(e.type)&&(t=e),e))}},formatOptions:{alwaysDenseOperators:["@"],onelineClauses:ex}},eB=v({math:["ABS","ACOS","ACOSD","ACOSH","ASIN","ASIND","ASINH","ATAN","ATAN2","ATAN2D","ATAND","ATANH","CBRT","CEIL","CEILING","COS","COSD","COSH","COT","COTD","DEGREES","DIV","EXP","FACTORIAL","FLOOR","GCD","LCM","LN","LOG","LOG10","MIN_SCALE","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SCALE","SETSEED","SIGN","SIN","SIND","SINH","SQRT","TAN","TAND","TANH","TRIM_SCALE","TRUNC","WIDTH_BUCKET"],string:["ABS","ASCII","BIT_LENGTH","BTRIM","CHARACTER_LENGTH","CHAR_LENGTH","CHR","CONCAT","CONCAT_WS","FORMAT","INITCAP","LEFT","LENGTH","LOWER","LPAD","LTRIM","MD5","NORMALIZE","OCTET_LENGTH","OVERLAY","PARSE_IDENT","PG_CLIENT_ENCODING","POSITION","QUOTE_IDENT","QUOTE_LITERAL","QUOTE_NULLABLE","REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE","REPEAT","REPLACE","REVERSE","RIGHT","RPAD","RTRIM","SPLIT_PART","SPRINTF","STARTS_WITH","STRING_AGG","STRING_TO_ARRAY","STRING_TO_TABLE","STRPOS","SUBSTR","SUBSTRING","TO_ASCII","TO_HEX","TRANSLATE","TRIM","UNISTR","UPPER"],binary:["BIT_COUNT","BIT_LENGTH","BTRIM","CONVERT","CONVERT_FROM","CONVERT_TO","DECODE","ENCODE","GET_BIT","GET_BYTE","LENGTH","LTRIM","MD5","OCTET_LENGTH","OVERLAY","POSITION","RTRIM","SET_BIT","SET_BYTE","SHA224","SHA256","SHA384","SHA512","STRING_AGG","SUBSTR","SUBSTRING","TRIM"],bitstring:["BIT_COUNT","BIT_LENGTH","GET_BIT","LENGTH","OCTET_LENGTH","OVERLAY","POSITION","SET_BIT","SUBSTRING"],pattern:["REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE"],datatype:["TO_CHAR","TO_DATE","TO_NUMBER","TO_TIMESTAMP"],datetime:["CLOCK_TIMESTAMP","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_BIN","DATE_PART","DATE_TRUNC","EXTRACT","ISFINITE","JUSTIFY_DAYS","JUSTIFY_HOURS","JUSTIFY_INTERVAL","LOCALTIME","LOCALTIMESTAMP","MAKE_DATE","MAKE_INTERVAL","MAKE_TIME","MAKE_TIMESTAMP","MAKE_TIMESTAMPTZ","NOW","PG_SLEEP","PG_SLEEP_FOR","PG_SLEEP_UNTIL","STATEMENT_TIMESTAMP","TIMEOFDAY","TO_TIMESTAMP","TRANSACTION_TIMESTAMP"],enum:["ENUM_FIRST","ENUM_LAST","ENUM_RANGE"],geometry:["AREA","BOUND_BOX","BOX","CENTER","CIRCLE","DIAGONAL","DIAMETER","HEIGHT","ISCLOSED","ISOPEN","LENGTH","LINE","LSEG","NPOINTS","PATH","PCLOSE","POINT","POLYGON","POPEN","RADIUS","SLOPE","WIDTH"],network:["ABBREV","BROADCAST","FAMILY","HOST","HOSTMASK","INET_MERGE","INET_SAME_FAMILY","MACADDR8_SET7BIT","MASKLEN","NETMASK","NETWORK","SET_MASKLEN","TEXT","TRUNC"],textsearch:["ARRAY_TO_TSVECTOR","GET_CURRENT_TS_CONFIG","JSONB_TO_TSVECTOR","JSON_TO_TSVECTOR","LENGTH","NUMNODE","PHRASETO_TSQUERY","PLAINTO_TSQUERY","QUERYTREE","SETWEIGHT","STRIP","TO_TSQUERY","TO_TSVECTOR","TSQUERY_PHRASE","TSVECTOR_TO_ARRAY","TS_DEBUG","TS_DELETE","TS_FILTER","TS_HEADLINE","TS_LEXIZE","TS_PARSE","TS_RANK","TS_RANK_CD","TS_REWRITE","TS_STAT","TS_TOKEN_TYPE","WEBSEARCH_TO_TSQUERY"],uuid:["UUID"],xml:["CURSOR_TO_XML","CURSOR_TO_XMLSCHEMA","DATABASE_TO_XML","DATABASE_TO_XMLSCHEMA","DATABASE_TO_XML_AND_XMLSCHEMA","NEXTVAL","QUERY_TO_XML","QUERY_TO_XMLSCHEMA","QUERY_TO_XML_AND_XMLSCHEMA","SCHEMA_TO_XML","SCHEMA_TO_XMLSCHEMA","SCHEMA_TO_XML_AND_XMLSCHEMA","STRING","TABLE_TO_XML","TABLE_TO_XMLSCHEMA","TABLE_TO_XML_AND_XMLSCHEMA","XMLAGG","XMLCOMMENT","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","XML_IS_WELL_FORMED","XML_IS_WELL_FORMED_CONTENT","XML_IS_WELL_FORMED_DOCUMENT","XPATH","XPATH_EXISTS"],json:["ARRAY_TO_JSON","JSONB_AGG","JSONB_ARRAY_ELEMENTS","JSONB_ARRAY_ELEMENTS_TEXT","JSONB_ARRAY_LENGTH","JSONB_BUILD_ARRAY","JSONB_BUILD_OBJECT","JSONB_EACH","JSONB_EACH_TEXT","JSONB_EXTRACT_PATH","JSONB_EXTRACT_PATH_TEXT","JSONB_INSERT","JSONB_OBJECT","JSONB_OBJECT_AGG","JSONB_OBJECT_KEYS","JSONB_PATH_EXISTS","JSONB_PATH_EXISTS_TZ","JSONB_PATH_MATCH","JSONB_PATH_MATCH_TZ","JSONB_PATH_QUERY","JSONB_PATH_QUERY_ARRAY","JSONB_PATH_QUERY_ARRAY_TZ","JSONB_PATH_QUERY_FIRST","JSONB_PATH_QUERY_FIRST_TZ","JSONB_PATH_QUERY_TZ","JSONB_POPULATE_RECORD","JSONB_POPULATE_RECORDSET","JSONB_PRETTY","JSONB_SET","JSONB_SET_LAX","JSONB_STRIP_NULLS","JSONB_TO_RECORD","JSONB_TO_RECORDSET","JSONB_TYPEOF","JSON_AGG","JSON_ARRAY_ELEMENTS","JSON_ARRAY_ELEMENTS_TEXT","JSON_ARRAY_LENGTH","JSON_BUILD_ARRAY","JSON_BUILD_OBJECT","JSON_EACH","JSON_EACH_TEXT","JSON_EXTRACT_PATH","JSON_EXTRACT_PATH_TEXT","JSON_OBJECT","JSON_OBJECT_AGG","JSON_OBJECT_KEYS","JSON_POPULATE_RECORD","JSON_POPULATE_RECORDSET","JSON_STRIP_NULLS","JSON_TO_RECORD","JSON_TO_RECORDSET","JSON_TYPEOF","ROW_TO_JSON","TO_JSON","TO_JSONB","TO_TIMESTAMP"],sequence:["CURRVAL","LASTVAL","NEXTVAL","SETVAL"],conditional:["COALESCE","GREATEST","LEAST","NULLIF"],array:["ARRAY_AGG","ARRAY_APPEND","ARRAY_CAT","ARRAY_DIMS","ARRAY_FILL","ARRAY_LENGTH","ARRAY_LOWER","ARRAY_NDIMS","ARRAY_POSITION","ARRAY_POSITIONS","ARRAY_PREPEND","ARRAY_REMOVE","ARRAY_REPLACE","ARRAY_TO_STRING","ARRAY_UPPER","CARDINALITY","STRING_TO_ARRAY","TRIM_ARRAY","UNNEST"],range:["ISEMPTY","LOWER","LOWER_INC","LOWER_INF","MULTIRANGE","RANGE_MERGE","UPPER","UPPER_INC","UPPER_INF"],aggregate:["ARRAY_AGG","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COALESCE","CORR","COUNT","COVAR_POP","COVAR_SAMP","CUME_DIST","DENSE_RANK","EVERY","GROUPING","JSONB_AGG","JSONB_OBJECT_AGG","JSON_AGG","JSON_OBJECT_AGG","MAX","MIN","MODE","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","RANGE_AGG","RANGE_INTERSECT_AGG","RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV","STDDEV_POP","STDDEV_SAMP","STRING_AGG","SUM","TO_JSON","TO_JSONB","VARIANCE","VAR_POP","VAR_SAMP","XMLAGG"],window:["CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER"],set:["GENERATE_SERIES","GENERATE_SUBSCRIPTS"],sysInfo:["ACLDEFAULT","ACLEXPLODE","COL_DESCRIPTION","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_QUERY","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","FORMAT_TYPE","HAS_ANY_COLUMN_PRIVILEGE","HAS_COLUMN_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_FOREIGN_DATA_WRAPPER_PRIVILEGE","HAS_FUNCTION_PRIVILEGE","HAS_LANGUAGE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_SEQUENCE_PRIVILEGE","HAS_SERVER_PRIVILEGE","HAS_TABLESPACE_PRIVILEGE","HAS_TABLE_PRIVILEGE","HAS_TYPE_PRIVILEGE","INET_CLIENT_ADDR","INET_CLIENT_PORT","INET_SERVER_ADDR","INET_SERVER_PORT","MAKEACLITEM","OBJ_DESCRIPTION","PG_BACKEND_PID","PG_BLOCKING_PIDS","PG_COLLATION_IS_VISIBLE","PG_CONF_LOAD_TIME","PG_CONTROL_CHECKPOINT","PG_CONTROL_INIT","PG_CONTROL_SYSTEM","PG_CONVERSION_IS_VISIBLE","PG_CURRENT_LOGFILE","PG_CURRENT_SNAPSHOT","PG_CURRENT_XACT_ID","PG_CURRENT_XACT_ID_IF_ASSIGNED","PG_DESCRIBE_OBJECT","PG_FUNCTION_IS_VISIBLE","PG_GET_CATALOG_FOREIGN_KEYS","PG_GET_CONSTRAINTDEF","PG_GET_EXPR","PG_GET_FUNCTIONDEF","PG_GET_FUNCTION_ARGUMENTS","PG_GET_FUNCTION_IDENTITY_ARGUMENTS","PG_GET_FUNCTION_RESULT","PG_GET_INDEXDEF","PG_GET_KEYWORDS","PG_GET_OBJECT_ADDRESS","PG_GET_OWNED_SEQUENCE","PG_GET_RULEDEF","PG_GET_SERIAL_SEQUENCE","PG_GET_STATISTICSOBJDEF","PG_GET_TRIGGERDEF","PG_GET_USERBYID","PG_GET_VIEWDEF","PG_HAS_ROLE","PG_IDENTIFY_OBJECT","PG_IDENTIFY_OBJECT_AS_ADDRESS","PG_INDEXAM_HAS_PROPERTY","PG_INDEX_COLUMN_HAS_PROPERTY","PG_INDEX_HAS_PROPERTY","PG_IS_OTHER_TEMP_SCHEMA","PG_JIT_AVAILABLE","PG_LAST_COMMITTED_XACT","PG_LISTENING_CHANNELS","PG_MY_TEMP_SCHEMA","PG_NOTIFICATION_QUEUE_USAGE","PG_OPCLASS_IS_VISIBLE","PG_OPERATOR_IS_VISIBLE","PG_OPFAMILY_IS_VISIBLE","PG_OPTIONS_TO_TABLE","PG_POSTMASTER_START_TIME","PG_SAFE_SNAPSHOT_BLOCKING_PIDS","PG_SNAPSHOT_XIP","PG_SNAPSHOT_XMAX","PG_SNAPSHOT_XMIN","PG_STATISTICS_OBJ_IS_VISIBLE","PG_TABLESPACE_DATABASES","PG_TABLESPACE_LOCATION","PG_TABLE_IS_VISIBLE","PG_TRIGGER_DEPTH","PG_TS_CONFIG_IS_VISIBLE","PG_TS_DICT_IS_VISIBLE","PG_TS_PARSER_IS_VISIBLE","PG_TS_TEMPLATE_IS_VISIBLE","PG_TYPEOF","PG_TYPE_IS_VISIBLE","PG_VISIBLE_IN_SNAPSHOT","PG_XACT_COMMIT_TIMESTAMP","PG_XACT_COMMIT_TIMESTAMP_ORIGIN","PG_XACT_STATUS","PQSERVERVERSION","ROW_SECURITY_ACTIVE","SESSION_USER","SHOBJ_DESCRIPTION","TO_REGCLASS","TO_REGCOLLATION","TO_REGNAMESPACE","TO_REGOPER","TO_REGOPERATOR","TO_REGPROC","TO_REGPROCEDURE","TO_REGROLE","TO_REGTYPE","TXID_CURRENT","TXID_CURRENT_IF_ASSIGNED","TXID_CURRENT_SNAPSHOT","TXID_SNAPSHOT_XIP","TXID_SNAPSHOT_XMAX","TXID_SNAPSHOT_XMIN","TXID_STATUS","TXID_VISIBLE_IN_SNAPSHOT","USER","VERSION"],sysAdmin:["BRIN_DESUMMARIZE_RANGE","BRIN_SUMMARIZE_NEW_VALUES","BRIN_SUMMARIZE_RANGE","CONVERT_FROM","CURRENT_SETTING","GIN_CLEAN_PENDING_LIST","PG_ADVISORY_LOCK","PG_ADVISORY_LOCK_SHARED","PG_ADVISORY_UNLOCK","PG_ADVISORY_UNLOCK_ALL","PG_ADVISORY_UNLOCK_SHARED","PG_ADVISORY_XACT_LOCK","PG_ADVISORY_XACT_LOCK_SHARED","PG_BACKUP_START_TIME","PG_CANCEL_BACKEND","PG_COLLATION_ACTUAL_VERSION","PG_COLUMN_COMPRESSION","PG_COLUMN_SIZE","PG_COPY_LOGICAL_REPLICATION_SLOT","PG_COPY_PHYSICAL_REPLICATION_SLOT","PG_CREATE_LOGICAL_REPLICATION_SLOT","PG_CREATE_PHYSICAL_REPLICATION_SLOT","PG_CREATE_RESTORE_POINT","PG_CURRENT_WAL_FLUSH_LSN","PG_CURRENT_WAL_INSERT_LSN","PG_CURRENT_WAL_LSN","PG_DATABASE_SIZE","PG_DROP_REPLICATION_SLOT","PG_EXPORT_SNAPSHOT","PG_FILENODE_RELATION","PG_GET_WAL_REPLAY_PAUSE_STATE","PG_IMPORT_SYSTEM_COLLATIONS","PG_INDEXES_SIZE","PG_IS_IN_BACKUP","PG_IS_IN_RECOVERY","PG_IS_WAL_REPLAY_PAUSED","PG_LAST_WAL_RECEIVE_LSN","PG_LAST_WAL_REPLAY_LSN","PG_LAST_XACT_REPLAY_TIMESTAMP","PG_LOGICAL_EMIT_MESSAGE","PG_LOGICAL_SLOT_GET_BINARY_CHANGES","PG_LOGICAL_SLOT_GET_CHANGES","PG_LOGICAL_SLOT_PEEK_BINARY_CHANGES","PG_LOGICAL_SLOT_PEEK_CHANGES","PG_LOG_BACKEND_MEMORY_CONTEXTS","PG_LS_ARCHIVE_STATUSDIR","PG_LS_DIR","PG_LS_LOGDIR","PG_LS_TMPDIR","PG_LS_WALDIR","PG_PARTITION_ANCESTORS","PG_PARTITION_ROOT","PG_PARTITION_TREE","PG_PROMOTE","PG_READ_BINARY_FILE","PG_READ_FILE","PG_RELATION_FILENODE","PG_RELATION_FILEPATH","PG_RELATION_SIZE","PG_RELOAD_CONF","PG_REPLICATION_ORIGIN_ADVANCE","PG_REPLICATION_ORIGIN_CREATE","PG_REPLICATION_ORIGIN_DROP","PG_REPLICATION_ORIGIN_OID","PG_REPLICATION_ORIGIN_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_IS_SETUP","PG_REPLICATION_ORIGIN_SESSION_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_RESET","PG_REPLICATION_ORIGIN_SESSION_SETUP","PG_REPLICATION_ORIGIN_XACT_RESET","PG_REPLICATION_ORIGIN_XACT_SETUP","PG_REPLICATION_SLOT_ADVANCE","PG_ROTATE_LOGFILE","PG_SIZE_BYTES","PG_SIZE_PRETTY","PG_START_BACKUP","PG_STAT_FILE","PG_STOP_BACKUP","PG_SWITCH_WAL","PG_TABLESPACE_SIZE","PG_TABLE_SIZE","PG_TERMINATE_BACKEND","PG_TOTAL_RELATION_SIZE","PG_TRY_ADVISORY_LOCK","PG_TRY_ADVISORY_LOCK_SHARED","PG_TRY_ADVISORY_XACT_LOCK","PG_TRY_ADVISORY_XACT_LOCK_SHARED","PG_WALFILE_NAME","PG_WALFILE_NAME_OFFSET","PG_WAL_LSN_DIFF","PG_WAL_REPLAY_PAUSE","PG_WAL_REPLAY_RESUME","SET_CONFIG"],trigger:["SUPPRESS_REDUNDANT_UPDATES_TRIGGER","TSVECTOR_UPDATE_TRIGGER","TSVECTOR_UPDATE_TRIGGER_COLUMN"],eventTrigger:["PG_EVENT_TRIGGER_DDL_COMMANDS","PG_EVENT_TRIGGER_DROPPED_OBJECTS","PG_EVENT_TRIGGER_TABLE_REWRITE_OID","PG_EVENT_TRIGGER_TABLE_REWRITE_REASON","PG_GET_OBJECT_ADDRESS"],stats:["PG_MCV_LIST_ITEMS"],cast:["CAST"],dataTypes:["BIT","BIT VARYING","CHARACTER","CHARACTER VARYING","VARCHAR","CHAR","DECIMAL","NUMERIC","TIME","TIMESTAMP","ENUM"]}),eY=v({all:["ABORT","ABSOLUTE","ACCESS","ACTION","ADD","ADMIN","AFTER","AGGREGATE","ALL","ALSO","ALTER","ALWAYS","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","ASENSITIVE","ASSERTION","ASSIGNMENT","ASYMMETRIC","AT","ATOMIC","ATTACH","ATTRIBUTE","AUTHORIZATION","BACKWARD","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BIT","BOOLEAN","BOTH","BREADTH","BY","CACHE","CALL","CALLED","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAIN","CHAR","CHARACTER","CHARACTERISTICS","CHECK","CHECKPOINT","CLASS","CLOSE","CLUSTER","COALESCE","COLLATE","COLLATION","COLUMN","COLUMNS","COMMENT","COMMENTS","COMMIT","COMMITTED","COMPRESSION","CONCURRENTLY","CONFIGURATION","CONFLICT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTENT","CONTINUE","CONVERSION","COPY","COST","CREATE","CROSS","CSV","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFERRABLE","DEFERRED","DEFINER","DELETE","DELIMITER","DELIMITERS","DEPENDS","DEPTH","DESC","DETACH","DICTIONARY","DISABLE","DISCARD","DISTINCT","DO","DOCUMENT","DOMAIN","DOUBLE","DROP","EACH","ELSE","ENABLE","ENCODING","ENCRYPTED","END","ENUM","ESCAPE","EVENT","EXCEPT","EXCLUDE","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXPLAIN","EXPRESSION","EXTENSION","EXTERNAL","EXTRACT","FALSE","FAMILY","FETCH","FILTER","FINALIZE","FIRST","FLOAT","FOLLOWING","FOR","FORCE","FOREIGN","FORWARD","FREEZE","FROM","FULL","FUNCTION","FUNCTIONS","GENERATED","GLOBAL","GRANT","GRANTED","GREATEST","GROUP","GROUPING","GROUPS","HANDLER","HAVING","HEADER","HOLD","HOUR","IDENTITY","IF","ILIKE","IMMEDIATE","IMMUTABLE","IMPLICIT","IMPORT","IN","INCLUDE","INCLUDING","INCREMENT","INDEX","INDEXES","INHERIT","INHERITS","INITIALLY","INLINE","INNER","INOUT","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","INVOKER","IS","ISNULL","ISOLATION","JOIN","KEY","LABEL","LANGUAGE","LARGE","LAST","LATERAL","LEADING","LEAKPROOF","LEAST","LEFT","LEVEL","LIKE","LIMIT","LISTEN","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCK","LOCKED","LOGGED","MAPPING","MATCH","MATERIALIZED","MAXVALUE","METHOD","MINUTE","MINVALUE","MODE","MONTH","MOVE","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NEW","NEXT","NFC","NFD","NFKC","NFKD","NO","NONE","NORMALIZE","NORMALIZED","NOT","NOTHING","NOTIFY","NOTNULL","NOWAIT","NULL","NULLIF","NULLS","NUMERIC","OBJECT","OF","OFF","OFFSET","OIDS","OLD","ON","ONLY","OPERATOR","OPTION","OPTIONS","OR","ORDER","ORDINALITY","OTHERS","OUT","OUTER","OVER","OVERLAPS","OVERLAY","OVERRIDING","OWNED","OWNER","PARALLEL","PARSER","PARTIAL","PARTITION","PASSING","PASSWORD","PLACING","PLANS","POLICY","POSITION","PRECEDING","PRECISION","PREPARE","PREPARED","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROCEDURES","PROGRAM","PUBLICATION","QUOTE","RANGE","READ","REAL","REASSIGN","RECHECK","RECURSIVE","REF","REFERENCES","REFERENCING","REFRESH","REINDEX","RELATIVE","RELEASE","RENAME","REPEATABLE","REPLACE","REPLICA","RESET","RESTART","RESTRICT","RETURN","RETURNING","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROLLUP","ROUTINE","ROUTINES","ROW","ROWS","RULE","SAVEPOINT","SCHEMA","SCHEMAS","SCROLL","SEARCH","SECOND","SECURITY","SELECT","SEQUENCE","SEQUENCES","SERIALIZABLE","SERVER","SESSION","SESSION_USER","SET","SETOF","SETS","SHARE","SHOW","SIMILAR","SIMPLE","SKIP","SMALLINT","SNAPSHOT","SOME","SQL","STABLE","STANDALONE","START","STATEMENT","STATISTICS","STDIN","STDOUT","STORAGE","STORED","STRICT","STRIP","SUBSCRIPTION","SUBSTRING","SUPPORT","SYMMETRIC","SYSID","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESPACE","TEMP","TEMPLATE","TEMPORARY","TEXT","THEN","TIES","TIME","TIMESTAMP","TO","TRAILING","TRANSACTION","TRANSFORM","TREAT","TRIGGER","TRIM","TRUE","TRUNCATE","TRUSTED","TYPE","TYPES","UESCAPE","UNBOUNDED","UNCOMMITTED","UNENCRYPTED","UNION","UNIQUE","UNKNOWN","UNLISTEN","UNLOGGED","UNTIL","UPDATE","USER","USING","VACUUM","VALID","VALIDATE","VALIDATOR","VALUE","VALUES","VARCHAR","VARIADIC","VARYING","VERBOSE","VERSION","VIEW","VIEWS","VOLATILE","WHEN","WHERE","WHITESPACE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","XML","XMLATTRIBUTES","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLNAMESPACES","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","YEAR","YES","ZONE"]}),ek=A(["SELECT [ALL | DISTINCT]"]),eV=A(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","FOR {UPDATE | NO KEY UPDATE | SHARE | KEY SHARE} [OF]","INSERT INTO","VALUES","SET","CREATE [OR REPLACE] [TEMP | TEMPORARY] [RECURSIVE] VIEW","CREATE MATERIALIZED VIEW [IF NOT EXISTS]","CREATE [GLOBAL | LOCAL] [TEMPORARY | TEMP | UNLOGGED] TABLE [IF NOT EXISTS]","RETURNING"]),e$=A(["UPDATE [ONLY]","WHERE CURRENT OF","ON CONFLICT","DELETE FROM [ONLY]","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS] [ONLY]","ALTER TABLE ALL IN TABLESPACE","RENAME [COLUMN]","RENAME TO","ADD [COLUMN] [IF NOT EXISTS]","DROP [COLUMN] [IF EXISTS]","ALTER [COLUMN]","[SET DATA] TYPE","{SET | DROP} DEFAULT","{SET | DROP} NOT NULL","TRUNCATE [TABLE] [ONLY]","SET SCHEMA","AFTER","ABORT","ALTER AGGREGATE","ALTER COLLATION","ALTER CONVERSION","ALTER DATABASE","ALTER DEFAULT PRIVILEGES","ALTER DOMAIN","ALTER EVENT TRIGGER","ALTER EXTENSION","ALTER FOREIGN DATA WRAPPER","ALTER FOREIGN TABLE","ALTER FUNCTION","ALTER GROUP","ALTER INDEX","ALTER LANGUAGE","ALTER LARGE OBJECT","ALTER MATERIALIZED VIEW","ALTER OPERATOR","ALTER OPERATOR CLASS","ALTER OPERATOR FAMILY","ALTER POLICY","ALTER PROCEDURE","ALTER PUBLICATION","ALTER ROLE","ALTER ROUTINE","ALTER RULE","ALTER SCHEMA","ALTER SEQUENCE","ALTER SERVER","ALTER STATISTICS","ALTER SUBSCRIPTION","ALTER SYSTEM","ALTER TABLESPACE","ALTER TEXT SEARCH CONFIGURATION","ALTER TEXT SEARCH DICTIONARY","ALTER TEXT SEARCH PARSER","ALTER TEXT SEARCH TEMPLATE","ALTER TRIGGER","ALTER TYPE","ALTER USER","ALTER USER MAPPING","ALTER VIEW","ANALYZE","BEGIN","CALL","CHECKPOINT","CLOSE","CLUSTER","COMMENT","COMMIT","COMMIT PREPARED","COPY","CREATE ACCESS METHOD","CREATE AGGREGATE","CREATE CAST","CREATE COLLATION","CREATE CONVERSION","CREATE DATABASE","CREATE DOMAIN","CREATE EVENT TRIGGER","CREATE EXTENSION","CREATE FOREIGN DATA WRAPPER","CREATE FOREIGN TABLE","CREATE FUNCTION","CREATE GROUP","CREATE INDEX","CREATE LANGUAGE","CREATE OPERATOR","CREATE OPERATOR CLASS","CREATE OPERATOR FAMILY","CREATE POLICY","CREATE PROCEDURE","CREATE PUBLICATION","CREATE ROLE","CREATE RULE","CREATE SCHEMA","CREATE SEQUENCE","CREATE SERVER","CREATE STATISTICS","CREATE SUBSCRIPTION","CREATE TABLESPACE","CREATE TEXT SEARCH CONFIGURATION","CREATE TEXT SEARCH DICTIONARY","CREATE TEXT SEARCH PARSER","CREATE TEXT SEARCH TEMPLATE","CREATE TRANSFORM","CREATE TRIGGER","CREATE TYPE","CREATE USER","CREATE USER MAPPING","DEALLOCATE","DECLARE","DISCARD","DROP ACCESS METHOD","DROP AGGREGATE","DROP CAST","DROP COLLATION","DROP CONVERSION","DROP DATABASE","DROP DOMAIN","DROP EVENT TRIGGER","DROP EXTENSION","DROP FOREIGN DATA WRAPPER","DROP FOREIGN TABLE","DROP FUNCTION","DROP GROUP","DROP INDEX","DROP LANGUAGE","DROP MATERIALIZED VIEW","DROP OPERATOR","DROP OPERATOR CLASS","DROP OPERATOR FAMILY","DROP OWNED","DROP POLICY","DROP PROCEDURE","DROP PUBLICATION","DROP ROLE","DROP ROUTINE","DROP RULE","DROP SCHEMA","DROP SEQUENCE","DROP SERVER","DROP STATISTICS","DROP SUBSCRIPTION","DROP TABLESPACE","DROP TEXT SEARCH CONFIGURATION","DROP TEXT SEARCH DICTIONARY","DROP TEXT SEARCH PARSER","DROP TEXT SEARCH TEMPLATE","DROP TRANSFORM","DROP TRIGGER","DROP TYPE","DROP USER","DROP USER MAPPING","DROP VIEW","EXECUTE","EXPLAIN","FETCH","GRANT","IMPORT FOREIGN SCHEMA","LISTEN","LOAD","LOCK","MOVE","NOTIFY","PREPARE","PREPARE TRANSACTION","REASSIGN OWNED","REFRESH MATERIALIZED VIEW","REINDEX","RELEASE SAVEPOINT","RESET","REVOKE","ROLLBACK","ROLLBACK PREPARED","ROLLBACK TO SAVEPOINT","SAVEPOINT","SECURITY LABEL","SELECT INTO","SET CONSTRAINTS","SET ROLE","SET SESSION AUTHORIZATION","SET TRANSACTION","SHOW","START TRANSACTION","UNLISTEN","VACUUM"]),eW=A(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),eZ=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),ej=A(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE | GROUPS} BETWEEN","{TIMESTAMP | TIME} {WITH | WITHOUT} TIME ZONE","IS [NOT] DISTINCT FROM"]),eX={tokenizerOptions:{reservedSelect:ek,reservedClauses:[...eV,...e$],reservedSetOperations:eW,reservedJoins:eZ,reservedPhrases:ej,reservedKeywords:eY,reservedFunctionNames:eB,nestedBlockComments:!0,extraParens:["[]"],stringTypes:["$$",{quote:"''-qq",prefixes:["U&"]},{quote:"''-bs",prefixes:["E"],requirePrefix:!0},{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:[{quote:'""-qq',prefixes:["U&"]}],identChars:{rest:"$"},paramTypes:{numbered:["$"]},operators:["%","^","|/","||/","@",":=","&","|","#","~","<<",">>","~>~","~<~","~>=~","~<=~","@-@","@@","##","<->","&&","&<","&>","<<|","&<|","|>>","|&>","<^","^>","?#","?-","?|","?-|","?||","@>","<@","~=","?","@?","?&","->","->>","#>","#>>","#-","=>",">>=","<<=","~~","~~*","!~~","!~~*","~","~*","!~","!~*","-|-","||","@@@","!!","<%","%>","<<%","%>>","<<->","<->>","<<<->","<->>>","::"]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:e$}},eK=v({aggregate:["ANY_VALUE","APPROXIMATE PERCENTILE_DISC","AVG","COUNT","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP"],array:["array","array_concat","array_flatten","get_array_length","split_to_array","subarray"],bitwise:["BIT_AND","BIT_OR","BOOL_AND","BOOL_OR"],conditional:["COALESCE","DECODE","GREATEST","LEAST","NVL","NVL2","NULLIF"],dateTime:["ADD_MONTHS","AT TIME ZONE","CONVERT_TIMEZONE","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_CMP","DATE_CMP_TIMESTAMP","DATE_CMP_TIMESTAMPTZ","DATE_PART_YEAR","DATEADD","DATEDIFF","DATE_PART","DATE_TRUNC","EXTRACT","GETDATE","INTERVAL_CMP","LAST_DAY","MONTHS_BETWEEN","NEXT_DAY","SYSDATE","TIMEOFDAY","TIMESTAMP_CMP","TIMESTAMP_CMP_DATE","TIMESTAMP_CMP_TIMESTAMPTZ","TIMESTAMPTZ_CMP","TIMESTAMPTZ_CMP_DATE","TIMESTAMPTZ_CMP_TIMESTAMP","TIMEZONE","TO_TIMESTAMP","TRUNC"],spatial:["AddBBox","DropBBox","GeometryType","ST_AddPoint","ST_Angle","ST_Area","ST_AsBinary","ST_AsEWKB","ST_AsEWKT","ST_AsGeoJSON","ST_AsText","ST_Azimuth","ST_Boundary","ST_Collect","ST_Contains","ST_ContainsProperly","ST_ConvexHull","ST_CoveredBy","ST_Covers","ST_Crosses","ST_Dimension","ST_Disjoint","ST_Distance","ST_DistanceSphere","ST_DWithin","ST_EndPoint","ST_Envelope","ST_Equals","ST_ExteriorRing","ST_Force2D","ST_Force3D","ST_Force3DM","ST_Force3DZ","ST_Force4D","ST_GeometryN","ST_GeometryType","ST_GeomFromEWKB","ST_GeomFromEWKT","ST_GeomFromText","ST_GeomFromWKB","ST_InteriorRingN","ST_Intersects","ST_IsPolygonCCW","ST_IsPolygonCW","ST_IsClosed","ST_IsCollection","ST_IsEmpty","ST_IsSimple","ST_IsValid","ST_Length","ST_LengthSphere","ST_Length2D","ST_LineFromMultiPoint","ST_LineInterpolatePoint","ST_M","ST_MakeEnvelope","ST_MakeLine","ST_MakePoint","ST_MakePolygon","ST_MemSize","ST_MMax","ST_MMin","ST_Multi","ST_NDims","ST_NPoints","ST_NRings","ST_NumGeometries","ST_NumInteriorRings","ST_NumPoints","ST_Perimeter","ST_Perimeter2D","ST_Point","ST_PointN","ST_Points","ST_Polygon","ST_RemovePoint","ST_Reverse","ST_SetPoint","ST_SetSRID","ST_Simplify","ST_SRID","ST_StartPoint","ST_Touches","ST_Within","ST_X","ST_XMax","ST_XMin","ST_Y","ST_YMax","ST_YMin","ST_Z","ST_ZMax","ST_ZMin","SupportsBBox"],hash:["CHECKSUM","FUNC_SHA1","FNV_HASH","MD5","SHA","SHA1","SHA2"],hyperLogLog:["HLL","HLL_CREATE_SKETCH","HLL_CARDINALITY","HLL_COMBINE"],json:["IS_VALID_JSON","IS_VALID_JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_EXTRACT_ARRAY_ELEMENT_TEXT","JSON_EXTRACT_PATH_TEXT","JSON_PARSE","JSON_SERIALIZE"],math:["ABS","ACOS","ASIN","ATAN","ATAN2","CBRT","CEILING","CEIL","COS","COT","DEGREES","DEXP","DLOG1","DLOG10","EXP","FLOOR","LN","LOG","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SIN","SIGN","SQRT","TAN","TO_HEX","TRUNC"],machineLearning:["EXPLAIN_MODEL"],string:["ASCII","BPCHARCMP","BTRIM","BTTEXT_PATTERN_CMP","CHAR_LENGTH","CHARACTER_LENGTH","CHARINDEX","CHR","COLLATE","CONCAT","CRC32","DIFFERENCE","INITCAP","LEFT","RIGHT","LEN","LENGTH","LOWER","LPAD","RPAD","LTRIM","OCTETINDEX","OCTET_LENGTH","POSITION","QUOTE_IDENT","QUOTE_LITERAL","REGEXP_COUNT","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","REPLICATE","REVERSE","RTRIM","SOUNDEX","SPLIT_PART","STRPOS","STRTOL","SUBSTRING","TEXTLEN","TRANSLATE","TRIM","UPPER"],superType:["decimal_precision","decimal_scale","is_array","is_bigint","is_boolean","is_char","is_decimal","is_float","is_integer","is_object","is_scalar","is_smallint","is_varchar","json_typeof"],window:["AVG","COUNT","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAST_VALUE","LAG","LEAD","LISTAGG","MAX","MEDIAN","MIN","NTH_VALUE","NTILE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","RATIO_TO_REPORT","ROW_NUMBER","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP"],dataType:["CAST","CONVERT","TO_CHAR","TO_DATE","TO_NUMBER","TEXT_TO_INT_ALT","TEXT_TO_NUMERIC_ALT"],sysAdmin:["CHANGE_QUERY_PRIORITY","CHANGE_SESSION_PRIORITY","CHANGE_USER_PRIORITY","CURRENT_SETTING","PG_CANCEL_BACKEND","PG_TERMINATE_BACKEND","REBOOT_CLUSTER","SET_CONFIG"],sysInfo:["CURRENT_AWS_ACCOUNT","CURRENT_DATABASE","CURRENT_NAMESPACE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","CURRENT_USER_ID","HAS_ASSUMEROLE_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_TABLE_PRIVILEGE","PG_BACKEND_PID","PG_GET_COLS","PG_GET_GRANTEE_BY_IAM_ROLE","PG_GET_IAM_ROLE_BY_USER","PG_GET_LATE_BINDING_VIEW_COLS","PG_LAST_COPY_COUNT","PG_LAST_COPY_ID","PG_LAST_UNLOAD_ID","PG_LAST_QUERY_ID","PG_LAST_UNLOAD_COUNT","SESSION_USER","SLICE_NUM","USER","VERSION"],dataTypes:["DECIMAL","NUMERIC","CHAR","CHARACTER","VARCHAR","CHARACTER VARYING","NCHAR","NVARCHAR","VARBYTE"]}),ez=v({standard:["AES128","AES256","ALL","ALLOWOVERWRITE","ANY","ARRAY","AS","ASC","AUTHORIZATION","BACKUP","BETWEEN","BINARY","BOTH","CHECK","COLUMN","CONSTRAINT","CREATE","CROSS","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DESC","DISABLE","DISTINCT","DO","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GROUP","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTO","IS","ISNULL","LANGUAGE","LEADING","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","MINUS","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RECOVER","REFERENCES","REJECTLOG","RESORT","RESPECT","RESTORE","SIMILAR","SNAPSHOT","SOME","SYSTEM","TABLE","TAG","TDES","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","UNIQUE","USING","VERBOSE","WALLET","WITHOUT"],dataConversionParams:["ACCEPTANYDATE","ACCEPTINVCHARS","BLANKSASNULL","DATEFORMAT","EMPTYASNULL","ENCODING","ESCAPE","EXPLICIT_IDS","FILLRECORD","IGNOREBLANKLINES","IGNOREHEADER","REMOVEQUOTES","ROUNDEC","TIMEFORMAT","TRIMBLANKS","TRUNCATECOLUMNS"],dataLoadParams:["COMPROWS","COMPUPDATE","MAXERROR","NOLOAD","STATUPDATE"],dataFormatParams:["FORMAT","CSV","DELIMITER","FIXEDWIDTH","SHAPEFILE","AVRO","JSON","PARQUET","ORC"],copyAuthParams:["ACCESS_KEY_ID","CREDENTIALS","ENCRYPTED","IAM_ROLE","MASTER_SYMMETRIC_KEY","SECRET_ACCESS_KEY","SESSION_TOKEN"],copyCompressionParams:["BZIP2","GZIP","LZOP","ZSTD"],copyMiscParams:["MANIFEST","READRATIO","REGION","SSH"],compressionEncodings:["RAW","AZ64","BYTEDICT","DELTA","DELTA32K","LZO","MOSTLY8","MOSTLY16","MOSTLY32","RUNLENGTH","TEXT255","TEXT32K"],misc:["CATALOG_ROLE","SECRET_ARN","EXTERNAL","AUTO","EVEN","KEY","PREDICATE","COMPRESSION"],dataTypes:["BPCHAR","TEXT"]}),eJ=A(["SELECT [ALL | DISTINCT]"]),eq=A(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT INTO","VALUES","SET","CREATE [OR REPLACE | MATERIALIZED] VIEW","CREATE [TEMPORARY | TEMP | LOCAL TEMPORARY | LOCAL TEMP] TABLE [IF NOT EXISTS]"]),eQ=A(["UPDATE","DELETE [FROM]","DROP TABLE [IF EXISTS]","ALTER TABLE","ALTER TABLE APPEND","ADD [COLUMN]","DROP [COLUMN]","RENAME TO","RENAME COLUMN","ALTER COLUMN","TYPE","ENCODE","TRUNCATE [TABLE]","ABORT","ALTER DATABASE","ALTER DATASHARE","ALTER DEFAULT PRIVILEGES","ALTER GROUP","ALTER MATERIALIZED VIEW","ALTER PROCEDURE","ALTER SCHEMA","ALTER USER","ANALYSE","ANALYZE","ANALYSE COMPRESSION","ANALYZE COMPRESSION","BEGIN","CALL","CANCEL","CLOSE","COMMENT","COMMIT","COPY","CREATE DATABASE","CREATE DATASHARE","CREATE EXTERNAL FUNCTION","CREATE EXTERNAL SCHEMA","CREATE EXTERNAL TABLE","CREATE FUNCTION","CREATE GROUP","CREATE LIBRARY","CREATE MODEL","CREATE PROCEDURE","CREATE SCHEMA","CREATE USER","DEALLOCATE","DECLARE","DESC DATASHARE","DROP DATABASE","DROP DATASHARE","DROP FUNCTION","DROP GROUP","DROP LIBRARY","DROP MODEL","DROP MATERIALIZED VIEW","DROP PROCEDURE","DROP SCHEMA","DROP USER","DROP VIEW","DROP","EXECUTE","EXPLAIN","FETCH","GRANT","LOCK","PREPARE","REFRESH MATERIALIZED VIEW","RESET","REVOKE","ROLLBACK","SELECT INTO","SET SESSION AUTHORIZATION","SET SESSION CHARACTERISTICS","SHOW","SHOW EXTERNAL TABLE","SHOW MODEL","SHOW DATASHARES","SHOW PROCEDURE","SHOW TABLE","SHOW VIEW","START TRANSACTION","UNLOAD","VACUUM"]),e0=A(["UNION [ALL]","EXCEPT","INTERSECT","MINUS"]),e1=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),e2=A(["NULL AS","DATA CATALOG","HIVE METASTORE","{ROWS | RANGE} BETWEEN"]),e4={tokenizerOptions:{reservedSelect:eJ,reservedClauses:[...eq,...eQ],reservedSetOperations:e0,reservedJoins:e1,reservedPhrases:e2,reservedKeywords:ez,reservedFunctionNames:eK,stringTypes:["''-qq"],identTypes:['""-qq'],identChars:{first:"#"},paramTypes:{numbered:["$"]},operators:["^","%","@","|/","||/","&","|","~","<<",">>","||","::"]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:eQ}},e6=v({all:["ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANTI","ANY","ARCHIVE","ARRAY","AS","ASC","AT","AUTHORIZATION","BETWEEN","BOTH","BUCKET","BUCKETS","BY","CACHE","CASCADE","CAST","CHANGE","CHECK","CLEAR","CLUSTER","CLUSTERED","CODEGEN","COLLATE","COLLECTION","COLUMN","COLUMNS","COMMENT","COMMIT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONSTRAINT","COST","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DATA","DATABASE","DATABASES","DAY","DBPROPERTIES","DEFINED","DELETE","DELIMITED","DESC","DESCRIBE","DFS","DIRECTORIES","DIRECTORY","DISTINCT","DISTRIBUTE","DIV","DROP","ESCAPE","ESCAPED","EXCEPT","EXCHANGE","EXISTS","EXPORT","EXTENDED","EXTERNAL","EXTRACT","FALSE","FETCH","FIELDS","FILTER","FILEFORMAT","FIRST","FIRST_VALUE","FOLLOWING","FOR","FOREIGN","FORMAT","FORMATTED","FULL","FUNCTION","FUNCTIONS","GLOBAL","GRANT","GROUP","GROUPING","HOUR","IF","IGNORE","IMPORT","IN","INDEX","INDEXES","INNER","INPATH","INPUTFORMAT","INTERSECT","INTERVAL","INTO","IS","ITEMS","KEYS","LAST","LAST_VALUE","LATERAL","LAZY","LEADING","LEFT","LIKE","LINES","LIST","LOCAL","LOCATION","LOCK","LOCKS","LOGICAL","MACRO","MAP","MATCHED","MERGE","MINUTE","MONTH","MSCK","NAMESPACE","NAMESPACES","NATURAL","NO","NOT","NULL","NULLS","OF","ONLY","OPTION","OPTIONS","OR","ORDER","OUT","OUTER","OUTPUTFORMAT","OVER","OVERLAPS","OVERLAY","OVERWRITE","OWNER","PARTITION","PARTITIONED","PARTITIONS","PERCENT","PLACING","POSITION","PRECEDING","PRIMARY","PRINCIPALS","PROPERTIES","PURGE","QUERY","RANGE","RECORDREADER","RECORDWRITER","RECOVER","REDUCE","REFERENCES","RENAME","REPAIR","REPLACE","RESPECT","RESTRICT","REVOKE","RIGHT","RLIKE","ROLE","ROLES","ROLLBACK","ROLLUP","ROW","ROWS","SCHEMA","SECOND","SELECT","SEMI","SEPARATED","SERDE","SERDEPROPERTIES","SESSION_USER","SETS","SHOW","SKEWED","SOME","SORT","SORTED","START","STATISTICS","STORED","STRATIFY","STRUCT","SUBSTR","SUBSTRING","TABLE","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","THEN","TO","TOUCH","TRAILING","TRANSACTION","TRANSACTIONS","TRIM","TRUE","TRUNCATE","UNARCHIVE","UNBOUNDED","UNCACHE","UNIQUE","UNKNOWN","UNLOCK","UNSET","USE","USER","USING","VIEW","WINDOW","YEAR","ANALYSE","ARRAY_ZIP","COALESCE","CONTAINS","CONVERT","DAYS","DAY_HOUR","DAY_MINUTE","DAY_SECOND","DECODE","DEFAULT","DISTINCTROW","ENCODE","EXPLODE","EXPLODE_OUTER","FIXED","GREATEST","GROUP_CONCAT","HOURS","HOUR_MINUTE","HOUR_SECOND","IFNULL","LEAST","LEVEL","MINUTE_SECOND","NULLIF","OFFSET","ON","OPTIMIZE","REGEXP","SEPARATOR","SIZE","STRING","TYPE","TYPES","UNSIGNED","VARIABLES","YEAR_MONTH"]}),e3=v({aggregate:["APPROX_COUNT_DISTINCT","APPROX_PERCENTILE","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COUNT","COUNT","COUNT_IF","COUNT_MIN_SKETCH","COVAR_POP","COVAR_SAMP","EVERY","FIRST","FIRST_VALUE","GROUPING","GROUPING_ID","KURTOSIS","LAST","LAST_VALUE","MAX","MAX_BY","MEAN","MIN","MIN_BY","PERCENTILE","PERCENTILE","PERCENTILE_APPROX","SKEWNESS","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE"],window:["CUME_DIST","DENSE_RANK","LAG","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER"],array:["ARRAY","ARRAY_CONTAINS","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_INTERSECT","ARRAY_JOIN","ARRAY_MAX","ARRAY_MIN","ARRAY_POSITION","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_UNION","ARRAYS_OVERLAP","ARRAYS_ZIP","FLATTEN","SEQUENCE","SHUFFLE","SLICE","SORT_ARRAY"],map:["ELEMENT_AT","ELEMENT_AT","MAP","MAP_CONCAT","MAP_ENTRIES","MAP_FROM_ARRAYS","MAP_FROM_ENTRIES","MAP_KEYS","MAP_VALUES","STR_TO_MAP"],datetime:["ADD_MONTHS","CURRENT_DATE","CURRENT_DATE","CURRENT_TIMESTAMP","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","DATE_ADD","DATE_FORMAT","DATE_FROM_UNIX_DATE","DATE_PART","DATE_SUB","DATE_TRUNC","DATEDIFF","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MAKE_DATE","MAKE_DT_INTERVAL","MAKE_INTERVAL","MAKE_TIMESTAMP","MAKE_YM_INTERVAL","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","NOW","QUARTER","SECOND","SESSION_WINDOW","TIMESTAMP_MICROS","TIMESTAMP_MILLIS","TIMESTAMP_SECONDS","TO_DATE","TO_TIMESTAMP","TO_UNIX_TIMESTAMP","TO_UTC_TIMESTAMP","TRUNC","UNIX_DATE","UNIX_MICROS","UNIX_MILLIS","UNIX_SECONDS","UNIX_TIMESTAMP","WEEKDAY","WEEKOFYEAR","WINDOW","YEAR"],json:["FROM_JSON","GET_JSON_OBJECT","JSON_ARRAY_LENGTH","JSON_OBJECT_KEYS","JSON_TUPLE","SCHEMA_OF_JSON","TO_JSON"],misc:["ABS","ACOS","ACOSH","AGGREGATE","ARRAY_SORT","ASCII","ASIN","ASINH","ASSERT_TRUE","ATAN","ATAN2","ATANH","BASE64","BIGINT","BIN","BINARY","BIT_COUNT","BIT_GET","BIT_LENGTH","BOOLEAN","BROUND","BTRIM","CARDINALITY","CBRT","CEIL","CEILING","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONV","COS","COSH","COT","CRC32","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_USER","DATE","DECIMAL","DEGREES","DOUBLE","ELT","EXP","EXPM1","FACTORIAL","FIND_IN_SET","FLOAT","FLOOR","FORALL","FORMAT_NUMBER","FORMAT_STRING","FROM_CSV","GETBIT","HASH","HEX","HYPOT","INITCAP","INLINE","INLINE_OUTER","INPUT_FILE_BLOCK_LENGTH","INPUT_FILE_BLOCK_START","INPUT_FILE_NAME","INSTR","INT","ISNAN","ISNOTNULL","ISNULL","JAVA_METHOD","LCASE","LEFT","LENGTH","LEVENSHTEIN","LN","LOCATE","LOG","LOG10","LOG1P","LOG2","LOWER","LPAD","LTRIM","MAP_FILTER","MAP_ZIP_WITH","MD5","MOD","MONOTONICALLY_INCREASING_ID","NAMED_STRUCT","NANVL","NEGATIVE","NVL","NVL2","OCTET_LENGTH","OVERLAY","PARSE_URL","PI","PMOD","POSEXPLODE","POSEXPLODE_OUTER","POSITION","POSITIVE","POW","POWER","PRINTF","RADIANS","RAISE_ERROR","RAND","RANDN","RANDOM","REFLECT","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_LIKE","REGEXP_REPLACE","REPEAT","REPLACE","REVERSE","RIGHT","RINT","ROUND","RPAD","RTRIM","SCHEMA_OF_CSV","SENTENCES","SHA","SHA1","SHA2","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIGNUM","SIN","SINH","SMALLINT","SOUNDEX","SPACE","SPARK_PARTITION_ID","SPLIT","SQRT","STACK","SUBSTR","SUBSTRING","SUBSTRING_INDEX","TAN","TANH","TIMESTAMP","TINYINT","TO_CSV","TRANSFORM_KEYS","TRANSFORM_VALUES","TRANSLATE","TRIM","TRY_ADD","TRY_DIVIDE","TYPEOF","UCASE","UNBASE64","UNHEX","UPPER","UUID","VERSION","WIDTH_BUCKET","XPATH","XPATH_BOOLEAN","XPATH_DOUBLE","XPATH_FLOAT","XPATH_INT","XPATH_LONG","XPATH_NUMBER","XPATH_SHORT","XPATH_STRING","XXHASH64","ZIP_WITH"],cast:["CAST"],caseAbbrev:["COALESCE","NULLIF"],dataTypes:["DECIMAL","DEC","NUMERIC","VARCHAR"]}),e8=A(["SELECT [ALL | DISTINCT]"]),e5=A(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","SORT BY","CLUSTER BY","DISTRIBUTE BY","LIMIT","INSERT [INTO | OVERWRITE] [TABLE]","VALUES","INSERT OVERWRITE [LOCAL] DIRECTORY","LOAD DATA [LOCAL] INPATH","[OVERWRITE] INTO TABLE","CREATE [OR REPLACE] [GLOBAL TEMPORARY | TEMPORARY] VIEW [IF NOT EXISTS]","CREATE [EXTERNAL] TABLE [IF NOT EXISTS]"]),e7=A(["DROP TABLE [IF EXISTS]","ALTER TABLE","ADD COLUMNS","DROP {COLUMN | COLUMNS}","RENAME TO","RENAME COLUMN","ALTER COLUMN","TRUNCATE TABLE","LATERAL VIEW","ALTER DATABASE","ALTER VIEW","CREATE DATABASE","CREATE FUNCTION","DROP DATABASE","DROP FUNCTION","DROP VIEW","REPAIR TABLE","USE DATABASE","TABLESAMPLE","PIVOT","TRANSFORM","EXPLAIN","ADD FILE","ADD JAR","ANALYZE TABLE","CACHE TABLE","CLEAR CACHE","DESCRIBE DATABASE","DESCRIBE FUNCTION","DESCRIBE QUERY","DESCRIBE TABLE","LIST FILE","LIST JAR","REFRESH","REFRESH TABLE","REFRESH FUNCTION","RESET","SHOW COLUMNS","SHOW CREATE TABLE","SHOW DATABASES","SHOW FUNCTIONS","SHOW PARTITIONS","SHOW TABLE EXTENDED","SHOW TABLES","SHOW TBLPROPERTIES","SHOW VIEWS","UNCACHE TABLE"]),e9=A(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),te=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN","[LEFT] {ANTI | SEMI} JOIN","NATURAL [LEFT] {ANTI | SEMI} JOIN"]),tt=A(["ON DELETE","ON UPDATE","CURRENT ROW","{ROWS | RANGE} BETWEEN"]),tn={tokenizerOptions:{reservedSelect:e8,reservedClauses:[...e5,...e7],reservedSetOperations:e9,reservedJoins:te,reservedPhrases:tt,supportsXor:!0,reservedKeywords:e6,reservedFunctionNames:e3,extraParens:["[]"],stringTypes:["''-bs",'""-bs',{quote:"''-raw",prefixes:["R","X"],requirePrefix:!0},{quote:'""-raw',prefixes:["R","X"],requirePrefix:!0}],identTypes:["``"],variableTypes:[{quote:"{}",prefixes:["$"],requirePrefix:!0}],operators:["%","~","^","|","&","<=>","==","!","||","->"],postProcess:function(e){return e.map((t,n)=>{let o=e[n-1]||u,i=e[n+1]||u;return R.WINDOW(t)&&i.type===r.OPEN_PAREN?{...t,type:r.RESERVED_FUNCTION_NAME}:"ITEMS"!==t.text||t.type!==r.RESERVED_KEYWORD||"COLLECTION"===o.text&&"TERMINATED"===i.text?t:{...t,type:r.IDENTIFIER,text:t.raw}})}},formatOptions:{onelineClauses:e7}},tr=v({scalar:["ABS","CHANGES","CHAR","COALESCE","FORMAT","GLOB","HEX","IFNULL","IIF","INSTR","LAST_INSERT_ROWID","LENGTH","LIKE","LIKELIHOOD","LIKELY","LOAD_EXTENSION","LOWER","LTRIM","NULLIF","PRINTF","QUOTE","RANDOM","RANDOMBLOB","REPLACE","ROUND","RTRIM","SIGN","SOUNDEX","SQLITE_COMPILEOPTION_GET","SQLITE_COMPILEOPTION_USED","SQLITE_OFFSET","SQLITE_SOURCE_ID","SQLITE_VERSION","SUBSTR","SUBSTRING","TOTAL_CHANGES","TRIM","TYPEOF","UNICODE","UNLIKELY","UPPER","ZEROBLOB"],aggregate:["AVG","COUNT","GROUP_CONCAT","MAX","MIN","SUM","TOTAL"],datetime:["DATE","TIME","DATETIME","JULIANDAY","UNIXEPOCH","STRFTIME"],window:["row_number","rank","dense_rank","percent_rank","cume_dist","ntile","lag","lead","first_value","last_value","nth_value"],math:["ACOS","ACOSH","ASIN","ASINH","ATAN","ATAN2","ATANH","CEIL","CEILING","COS","COSH","DEGREES","EXP","FLOOR","LN","LOG","LOG","LOG10","LOG2","MOD","PI","POW","POWER","RADIANS","SIN","SINH","SQRT","TAN","TANH","TRUNC"],json:["JSON","JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_ARRAY_LENGTH","JSON_EXTRACT","JSON_INSERT","JSON_OBJECT","JSON_PATCH","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_TYPE","JSON_TYPE","JSON_VALID","JSON_QUOTE","JSON_GROUP_ARRAY","JSON_GROUP_OBJECT","JSON_EACH","JSON_TREE"],cast:["CAST"],dataTypes:["CHARACTER","VARCHAR","VARYING CHARACTER","NCHAR","NATIVE CHARACTER","NVARCHAR","NUMERIC","DECIMAL"]}),to=v({all:["ABORT","ACTION","ADD","AFTER","ALL","ALTER","AND","ANY","ARE","ARRAY","ALWAYS","ANALYZE","AS","ASC","ATTACH","AUTOINCREMENT","BEFORE","BEGIN","BETWEEN","BY","CASCADE","CASE","CAST","CHECK","COLLATE","COLUMN","COMMIT","CONFLICT","CONSTRAINT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATABASE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DESC","DETACH","DISTINCT","DO","DROP","EACH","ELSE","END","ESCAPE","EXCEPT","EXCLUDE","EXCLUSIVE","EXISTS","EXPLAIN","FAIL","FILTER","FIRST","FOLLOWING","FOR","FOREIGN","FROM","FULL","GENERATED","GLOB","GROUP","GROUPS","HAVING","IF","IGNORE","IMMEDIATE","IN","INDEX","INDEXED","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","KEY","LAST","LEFT","LIKE","LIMIT","MATCH","MATERIALIZED","NATURAL","NO","NOT","NOTHING","NOTNULL","NULL","NULLS","OF","OFFSET","ON","ONLY","OPEN","OR","ORDER","OTHERS","OUTER","OVER","PARTITION","PLAN","PRAGMA","PRECEDING","PRIMARY","QUERY","RAISE","RANGE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELEASE","RENAME","REPLACE","RESTRICT","RETURNING","RIGHT","ROLLBACK","ROW","ROWS","SAVEPOINT","SELECT","SET","TABLE","TEMP","TEMPORARY","THEN","TIES","TO","TRANSACTION","TRIGGER","UNBOUNDED","UNION","UNIQUE","UPDATE","USING","VACUUM","VALUES","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT"]}),ti=A(["SELECT [ALL | DISTINCT]"]),ta=A(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [OR ABORT | OR FAIL | OR IGNORE | OR REPLACE | OR ROLLBACK] INTO","REPLACE INTO","VALUES","SET","CREATE [TEMPORARY | TEMP] VIEW [IF NOT EXISTS]","CREATE [TEMPORARY | TEMP] TABLE [IF NOT EXISTS]"]),ts=A(["UPDATE [OR ABORT | OR FAIL | OR IGNORE | OR REPLACE | OR ROLLBACK]","ON CONFLICT","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD [COLUMN]","DROP [COLUMN]","RENAME [COLUMN]","RENAME TO","SET SCHEMA"]),tl=A(["UNION [ALL]","EXCEPT","INTERSECT"]),tE=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),tc=A(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE | GROUPS} BETWEEN"]),tu={tokenizerOptions:{reservedSelect:ti,reservedClauses:[...ta,...ts],reservedSetOperations:tl,reservedJoins:tE,reservedPhrases:tc,reservedKeywords:to,reservedFunctionNames:tr,stringTypes:["''-qq",{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``","[]"],paramTypes:{positional:!0,numbered:["?"],named:[":","@","$"]},operators:["%","~","&","|","<<",">>","==","->","->>","||"]},formatOptions:{onelineClauses:ts}},tT=v({set:["GROUPING"],window:["RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","ROW_NUMBER"],numeric:["POSITION","OCCURRENCES_REGEX","POSITION_REGEX","EXTRACT","CHAR_LENGTH","CHARACTER_LENGTH","OCTET_LENGTH","CARDINALITY","ABS","MOD","LN","EXP","POWER","SQRT","FLOOR","CEIL","CEILING","WIDTH_BUCKET"],string:["SUBSTRING","SUBSTRING_REGEX","UPPER","LOWER","CONVERT","TRANSLATE","TRANSLATE_REGEX","TRIM","OVERLAY","NORMALIZE","SPECIFICTYPE"],datetime:["CURRENT_DATE","CURRENT_TIME","LOCALTIME","CURRENT_TIMESTAMP","LOCALTIMESTAMP"],aggregate:["COUNT","AVG","MAX","MIN","SUM","STDDEV_POP","STDDEV_SAMP","VAR_SAMP","VAR_POP","COLLECT","FUSION","INTERSECTION","COVAR_POP","COVAR_SAMP","CORR","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","PERCENTILE_CONT","PERCENTILE_DISC"],cast:["CAST"],caseAbbrev:["COALESCE","NULLIF"],nonStandard:["ROUND","SIN","COS","TAN","ASIN","ACOS","ATAN"],dataTypes:["CHARACTER","CHAR","CHARACTER VARYING","CHAR VARYING","VARCHAR","CHARACTER LARGE OBJECT","CHAR LARGE OBJECT","CLOB","NATIONAL CHARACTER","NATIONAL CHAR","NCHAR","NATIONAL CHARACTER VARYING","NATIONAL CHAR VARYING","NCHAR VARYING","NATIONAL CHARACTER LARGE OBJECT","NCHAR LARGE OBJECT","NCLOB","BINARY","BINARY VARYING","VARBINARY","BINARY LARGE OBJECT","BLOB","NUMERIC","DECIMAL","DEC","TIME","TIMESTAMP"]}),tR=v({all:["ALL","ALLOCATE","ALTER","ANY","ARE","ARRAY","AS","ASENSITIVE","ASYMMETRIC","AT","ATOMIC","AUTHORIZATION","BEGIN","BETWEEN","BIGINT","BINARY","BLOB","BOOLEAN","BOTH","BY","CALL","CALLED","CASCADED","CAST","CHAR","CHARACTER","CHECK","CLOB","CLOSE","COALESCE","COLLATE","COLUMN","COMMIT","CONDITION","CONNECT","CONSTRAINT","CORRESPONDING","CREATE","CROSS","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DATE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DELETE","DEREF","DESCRIBE","DETERMINISTIC","DISCONNECT","DISTINCT","DOUBLE","DROP","DYNAMIC","EACH","ELEMENT","END-EXEC","ESCAPE","EVERY","EXCEPT","EXEC","EXECUTE","EXISTS","EXTERNAL","FALSE","FETCH","FILTER","FLOAT","FOR","FOREIGN","FREE","FROM","FULL","FUNCTION","GET","GLOBAL","GRANT","GROUP","HAVING","HOLD","HOUR","IDENTITY","IN","INDICATOR","INNER","INOUT","INSENSITIVE","INSERT","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","LANGUAGE","LARGE","LATERAL","LEADING","LEFT","LIKE","LIKE_REGEX","LOCAL","MATCH","MEMBER","MERGE","METHOD","MINUTE","MODIFIES","MODULE","MONTH","MULTISET","NATIONAL","NATURAL","NCHAR","NCLOB","NEW","NO","NONE","NOT","NULL","NULLIF","NUMERIC","OF","OLD","ON","ONLY","OPEN","ORDER","OUT","OUTER","OVER","OVERLAPS","PARAMETER","PARTITION","PRECISION","PREPARE","PRIMARY","PROCEDURE","RANGE","READS","REAL","RECURSIVE","REF","REFERENCES","REFERENCING","RELEASE","RESULT","RETURN","RETURNS","REVOKE","RIGHT","ROLLBACK","ROLLUP","ROW","ROWS","SAVEPOINT","SCOPE","SCROLL","SEARCH","SECOND","SELECT","SENSITIVE","SESSION_USER","SET","SIMILAR","SMALLINT","SOME","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","START","STATIC","SUBMULTISET","SYMMETRIC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSLATION","TREAT","TRIGGER","TRUE","UESCAPE","UNION","UNIQUE","UNKNOWN","UNNEST","UPDATE","USER","USING","VALUE","VALUES","VARBINARY","VARCHAR","VARYING","WHENEVER","WINDOW","WITHIN","WITHOUT","YEAR"]}),td=A(["SELECT [ALL | DISTINCT]"]),tf=A(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","SET","CREATE [RECURSIVE] VIEW","CREATE [GLOBAL TEMPORARY | LOCAL TEMPORARY] TABLE"]),tA=A(["UPDATE","WHERE CURRENT OF","DELETE FROM","DROP TABLE","ALTER TABLE","ADD COLUMN","DROP [COLUMN]","RENAME COLUMN","RENAME TO","ALTER [COLUMN]","{SET | DROP} DEFAULT","ADD SCOPE","DROP SCOPE {CASCADE | RESTRICT}","RESTART WITH","TRUNCATE TABLE","SET SCHEMA"]),tS=A(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),tO=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),tp=A(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),tN={tokenizerOptions:{reservedSelect:td,reservedClauses:[...tf,...tA],reservedSetOperations:tS,reservedJoins:tO,reservedPhrases:tp,reservedKeywords:tR,reservedFunctionNames:tT,stringTypes:[{quote:"''-qq-bs",prefixes:["N","U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``"],paramTypes:{positional:!0},operators:["||"]},formatOptions:{onelineClauses:tA}},tI=v({all:["ABS","ACOS","ALL_MATCH","ANY_MATCH","APPROX_DISTINCT","APPROX_MOST_FREQUENT","APPROX_PERCENTILE","APPROX_SET","ARBITRARY","ARRAYS_OVERLAP","ARRAY_AGG","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_INTERSECT","ARRAY_JOIN","ARRAY_MAX","ARRAY_MIN","ARRAY_POSITION","ARRAY_REMOVE","ARRAY_SORT","ARRAY_UNION","ASIN","ATAN","ATAN2","AT_TIMEZONE","AVG","BAR","BETA_CDF","BING_TILE","BING_TILES_AROUND","BING_TILE_AT","BING_TILE_COORDINATES","BING_TILE_POLYGON","BING_TILE_QUADKEY","BING_TILE_ZOOM_LEVEL","BITWISE_AND","BITWISE_AND_AGG","BITWISE_LEFT_SHIFT","BITWISE_NOT","BITWISE_OR","BITWISE_OR_AGG","BITWISE_RIGHT_SHIFT","BITWISE_RIGHT_SHIFT_ARITHMETIC","BITWISE_XOR","BIT_COUNT","BOOL_AND","BOOL_OR","CARDINALITY","CAST","CBRT","CEIL","CEILING","CHAR2HEXINT","CHECKSUM","CHR","CLASSIFY","COALESCE","CODEPOINT","COLOR","COMBINATIONS","CONCAT","CONCAT_WS","CONTAINS","CONTAINS_SEQUENCE","CONVEX_HULL_AGG","CORR","COS","COSH","COSINE_SIMILARITY","COUNT","COUNT_IF","COVAR_POP","COVAR_SAMP","CRC32","CUME_DIST","CURRENT_CATALOG","CURRENT_DATE","CURRENT_GROUPS","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_USER","DATE","DATE_ADD","DATE_DIFF","DATE_FORMAT","DATE_PARSE","DATE_TRUNC","DAY","DAY_OF_MONTH","DAY_OF_WEEK","DAY_OF_YEAR","DEGREES","DENSE_RANK","DOW","DOY","E","ELEMENT_AT","EMPTY_APPROX_SET","EVALUATE_CLASSIFIER_PREDICTIONS","EVERY","EXP","EXTRACT","FEATURES","FILTER","FIRST_VALUE","FLATTEN","FLOOR","FORMAT","FORMAT_DATETIME","FORMAT_NUMBER","FROM_BASE","FROM_BASE32","FROM_BASE64","FROM_BASE64URL","FROM_BIG_ENDIAN_32","FROM_BIG_ENDIAN_64","FROM_ENCODED_POLYLINE","FROM_GEOJSON_GEOMETRY","FROM_HEX","FROM_IEEE754_32","FROM_IEEE754_64","FROM_ISO8601_DATE","FROM_ISO8601_TIMESTAMP","FROM_ISO8601_TIMESTAMP_NANOS","FROM_UNIXTIME","FROM_UNIXTIME_NANOS","FROM_UTF8","GEOMETRIC_MEAN","GEOMETRY_FROM_HADOOP_SHAPE","GEOMETRY_INVALID_REASON","GEOMETRY_NEAREST_POINTS","GEOMETRY_TO_BING_TILES","GEOMETRY_UNION","GEOMETRY_UNION_AGG","GREATEST","GREAT_CIRCLE_DISTANCE","HAMMING_DISTANCE","HASH_COUNTS","HISTOGRAM","HMAC_MD5","HMAC_SHA1","HMAC_SHA256","HMAC_SHA512","HOUR","HUMAN_READABLE_SECONDS","IF","INDEX","INFINITY","INTERSECTION_CARDINALITY","INVERSE_BETA_CDF","INVERSE_NORMAL_CDF","IS_FINITE","IS_INFINITE","IS_JSON_SCALAR","IS_NAN","JACCARD_INDEX","JSON_ARRAY_CONTAINS","JSON_ARRAY_GET","JSON_ARRAY_LENGTH","JSON_EXISTS","JSON_EXTRACT","JSON_EXTRACT_SCALAR","JSON_FORMAT","JSON_PARSE","JSON_QUERY","JSON_SIZE","JSON_VALUE","KURTOSIS","LAG","LAST_DAY_OF_MONTH","LAST_VALUE","LEAD","LEARN_CLASSIFIER","LEARN_LIBSVM_CLASSIFIER","LEARN_LIBSVM_REGRESSOR","LEARN_REGRESSOR","LEAST","LENGTH","LEVENSHTEIN_DISTANCE","LINE_INTERPOLATE_POINT","LINE_INTERPOLATE_POINTS","LINE_LOCATE_POINT","LISTAGG","LN","LOCALTIME","LOCALTIMESTAMP","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","LUHN_CHECK","MAKE_SET_DIGEST","MAP","MAP_AGG","MAP_CONCAT","MAP_ENTRIES","MAP_FILTER","MAP_FROM_ENTRIES","MAP_KEYS","MAP_UNION","MAP_VALUES","MAP_ZIP_WITH","MAX","MAX_BY","MD5","MERGE","MERGE_SET_DIGEST","MILLISECOND","MIN","MINUTE","MIN_BY","MOD","MONTH","MULTIMAP_AGG","MULTIMAP_FROM_ENTRIES","MURMUR3","NAN","NGRAMS","NONE_MATCH","NORMALIZE","NORMAL_CDF","NOW","NTH_VALUE","NTILE","NULLIF","NUMERIC_HISTOGRAM","OBJECTID","OBJECTID_TIMESTAMP","PARSE_DATA_SIZE","PARSE_DATETIME","PARSE_DURATION","PERCENT_RANK","PI","POSITION","POW","POWER","QDIGEST_AGG","QUARTER","RADIANS","RAND","RANDOM","RANK","REDUCE","REDUCE_AGG","REGEXP_COUNT","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_LIKE","REGEXP_POSITION","REGEXP_REPLACE","REGEXP_SPLIT","REGRESS","REGR_INTERCEPT","REGR_SLOPE","RENDER","REPEAT","REPLACE","REVERSE","RGB","ROUND","ROW_NUMBER","RPAD","RTRIM","SECOND","SEQUENCE","SHA1","SHA256","SHA512","SHUFFLE","SIGN","SIMPLIFY_GEOMETRY","SIN","SKEWNESS","SLICE","SOUNDEX","SPATIAL_PARTITIONING","SPATIAL_PARTITIONS","SPLIT","SPLIT_PART","SPLIT_TO_MAP","SPLIT_TO_MULTIMAP","SPOOKY_HASH_V2_32","SPOOKY_HASH_V2_64","SQRT","STARTS_WITH","STDDEV","STDDEV_POP","STDDEV_SAMP","STRPOS","ST_AREA","ST_ASBINARY","ST_ASTEXT","ST_BOUNDARY","ST_BUFFER","ST_CENTROID","ST_CONTAINS","ST_CONVEXHULL","ST_COORDDIM","ST_CROSSES","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_ENDPOINT","ST_ENVELOPE","ST_ENVELOPEASPTS","ST_EQUALS","ST_EXTERIORRING","ST_GEOMETRIES","ST_GEOMETRYFROMTEXT","ST_GEOMETRYN","ST_GEOMETRYTYPE","ST_GEOMFROMBINARY","ST_INTERIORRINGN","ST_INTERIORRINGS","ST_INTERSECTION","ST_INTERSECTS","ST_ISCLOSED","ST_ISEMPTY","ST_ISRING","ST_ISSIMPLE","ST_ISVALID","ST_LENGTH","ST_LINEFROMTEXT","ST_LINESTRING","ST_MULTIPOINT","ST_NUMGEOMETRIES","ST_NUMINTERIORRING","ST_NUMPOINTS","ST_OVERLAPS","ST_POINT","ST_POINTN","ST_POINTS","ST_POLYGON","ST_RELATE","ST_STARTPOINT","ST_SYMDIFFERENCE","ST_TOUCHES","ST_UNION","ST_WITHIN","ST_X","ST_XMAX","ST_XMIN","ST_Y","ST_YMAX","ST_YMIN","SUBSTR","SUBSTRING","SUM","TAN","TANH","TDIGEST_AGG","TIMESTAMP_OBJECTID","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO_BASE","TO_BASE32","TO_BASE64","TO_BASE64URL","TO_BIG_ENDIAN_32","TO_BIG_ENDIAN_64","TO_CHAR","TO_DATE","TO_ENCODED_POLYLINE","TO_GEOJSON_GEOMETRY","TO_GEOMETRY","TO_HEX","TO_IEEE754_32","TO_IEEE754_64","TO_ISO8601","TO_MILLISECONDS","TO_SPHERICAL_GEOGRAPHY","TO_TIMESTAMP","TO_UNIXTIME","TO_UTF8","TRANSFORM","TRANSFORM_KEYS","TRANSFORM_VALUES","TRANSLATE","TRIM","TRIM_ARRAY","TRUNCATE","TRY","TRY_CAST","TYPEOF","UPPER","URL_DECODE","URL_ENCODE","URL_EXTRACT_FRAGMENT","URL_EXTRACT_HOST","URL_EXTRACT_PARAMETER","URL_EXTRACT_PATH","URL_EXTRACT_PORT","URL_EXTRACT_PROTOCOL","URL_EXTRACT_QUERY","UUID","VALUES_AT_QUANTILES","VALUE_AT_QUANTILE","VARIANCE","VAR_POP","VAR_SAMP","VERSION","WEEK","WEEK_OF_YEAR","WIDTH_BUCKET","WILSON_INTERVAL_LOWER","WILSON_INTERVAL_UPPER","WITH_TIMEZONE","WORD_STEM","XXHASH64","YEAR","YEAR_OF_WEEK","YOW","ZIP","ZIP_WITH"],rowPattern:["CLASSIFIER","FIRST","LAST","MATCH_NUMBER","NEXT","PERMUTE","PREV"]}),th=v({all:["ABSENT","ADD","ADMIN","AFTER","ALL","ALTER","ANALYZE","AND","ANY","ARRAY","AS","ASC","AT","AUTHORIZATION","BERNOULLI","BETWEEN","BOTH","BY","CALL","CASCADE","CASE","CATALOGS","COLUMN","COLUMNS","COMMENT","COMMIT","COMMITTED","CONDITIONAL","CONSTRAINT","COPARTITION","CREATE","CROSS","CUBE","CURRENT","CURRENT_PATH","CURRENT_ROLE","DATA","DEALLOCATE","DEFAULT","DEFINE","DEFINER","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DISTINCT","DISTRIBUTED","DOUBLE","DROP","ELSE","EMPTY","ENCODING","END","ERROR","ESCAPE","EXCEPT","EXCLUDING","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FINAL","FIRST","FOLLOWING","FOR","FROM","FULL","FUNCTIONS","GRANT","GRANTED","GRANTS","GRAPHVIZ","GROUP","GROUPING","GROUPS","HAVING","IGNORE","IN","INCLUDING","INITIAL","INNER","INPUT","INSERT","INTERSECT","INTERVAL","INTO","INVOKER","IO","IS","ISOLATION","JOIN","JSON","JSON_ARRAY","JSON_OBJECT","KEEP","KEY","KEYS","LAST","LATERAL","LEADING","LEFT","LEVEL","LIKE","LIMIT","LOCAL","LOGICAL","MATCH","MATCHED","MATCHES","MATCH_RECOGNIZE","MATERIALIZED","MEASURES","NATURAL","NEXT","NFC","NFD","NFKC","NFKD","NO","NONE","NOT","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OR","ORDER","ORDINALITY","OUTER","OUTPUT","OVER","OVERFLOW","PARTITION","PARTITIONS","PASSING","PAST","PATH","PATTERN","PER","PERMUTE","PRECEDING","PRECISION","PREPARE","PRIVILEGES","PROPERTIES","PRUNE","QUOTES","RANGE","READ","RECURSIVE","REFRESH","RENAME","REPEATABLE","RESET","RESPECT","RESTRICT","RETURNING","REVOKE","RIGHT","ROLE","ROLES","ROLLBACK","ROLLUP","ROW","ROWS","RUNNING","SCALAR","SCHEMA","SCHEMAS","SECURITY","SEEK","SELECT","SERIALIZABLE","SESSION","SET","SETS","SHOW","SKIP","SOME","START","STATS","STRING","SUBSET","SYSTEM","TABLE","TABLES","TABLESAMPLE","TEXT","THEN","TIES","TIME","TIMESTAMP","TO","TRAILING","TRANSACTION","TRUE","TYPE","UESCAPE","UNBOUNDED","UNCOMMITTED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UNNEST","UPDATE","USE","USER","USING","UTF16","UTF32","UTF8","VALIDATE","VALUE","VALUES","VERBOSE","VIEW","WHEN","WHERE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","ZONE"],types:["BIGINT","INT","INTEGER","SMALLINT","TINYINT","BOOLEAN","DATE","DECIMAL","REAL","DOUBLE","HYPERLOGLOG","QDIGEST","TDIGEST","P4HYPERLOGLOG","INTERVAL","TIMESTAMP","TIME","VARBINARY","VARCHAR","CHAR","ROW","ARRAY","MAP","JSON","JSON2016","IPADDRESS","GEOMETRY","UUID","SETDIGEST","JONIREGEXP","RE2JREGEXP","LIKEPATTERN","COLOR","CODEPOINTS","FUNCTION","JSONPATH"]}),t_=A(["SELECT [ALL | DISTINCT]"]),tm=A(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","SET","CREATE [OR REPLACE] [MATERIALIZED] VIEW","CREATE TABLE [IF NOT EXISTS]","MATCH_RECOGNIZE","MEASURES","ONE ROW PER MATCH","ALL ROWS PER MATCH","AFTER MATCH","PATTERN","SUBSET","DEFINE"]),tC=A(["UPDATE","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","ADD COLUMN [IF NOT EXISTS]","DROP COLUMN [IF EXISTS]","RENAME COLUMN [IF EXISTS]","RENAME TO","SET AUTHORIZATION [USER | ROLE]","SET PROPERTIES","EXECUTE","TRUNCATE TABLE","ALTER SCHEMA","ALTER MATERIALIZED VIEW","ALTER VIEW","CREATE SCHEMA","CREATE ROLE","DROP SCHEMA","DROP MATERIALIZED VIEW","DROP VIEW","DROP ROLE","EXPLAIN","ANALYZE","EXPLAIN ANALYZE","EXPLAIN ANALYZE VERBOSE","USE","COMMENT ON TABLE","COMMENT ON COLUMN","DESCRIBE INPUT","DESCRIBE OUTPUT","REFRESH MATERIALIZED VIEW","RESET SESSION","SET SESSION","SET PATH","SET TIME ZONE","SHOW GRANTS","SHOW CREATE TABLE","SHOW CREATE SCHEMA","SHOW CREATE VIEW","SHOW CREATE MATERIALIZED VIEW","SHOW TABLES","SHOW SCHEMAS","SHOW CATALOGS","SHOW COLUMNS","SHOW STATS FOR","SHOW ROLES","SHOW CURRENT ROLES","SHOW ROLE GRANTS","SHOW FUNCTIONS","SHOW SESSION"]),tL=A(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),tg=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),tv=A(["{ROWS | RANGE | GROUPS} BETWEEN","IS [NOT] DISTINCT FROM"]),tP={tokenizerOptions:{reservedSelect:t_,reservedClauses:[...tm,...tC],reservedSetOperations:tL,reservedJoins:tg,reservedPhrases:tv,reservedKeywords:th,reservedFunctionNames:tI,extraParens:["[]","{}"],stringTypes:[{quote:"''-qq",prefixes:["U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq'],paramTypes:{positional:!0},operators:["%","->","=>",":","||","|","^","$"]},formatOptions:{onelineClauses:tC}},ty=v({aggregate:["APPROX_COUNT_DISTINCT","AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","STDEV","STDEVP","SUM","VAR","VARP"],analytic:["CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","Collation - COLLATIONPROPERTY","Collation - TERTIARY_WEIGHTS"],configuration:["@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION"],conversion:["CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE"],cryptographic:["ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY"],cursor:["@@CURSOR_ROWS","@@FETCH_STATUS","CURSOR_STATUS"],dataType:["DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY"],datetime:["@@DATEFIRST","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_TIMEZONE_ID","DATEADD","DATEDIFF","DATEDIFF_BIG","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","JSON","ISJSON","JSON_VALUE","JSON_QUERY","JSON_MODIFY"],mathematical:["ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","CHOOSE","GREATEST","IIF","LEAST"],metadata:["@@PROCID","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FILEPROPERTYEX","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","NEXT VALUE FOR","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY"],ranking:["DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME"],security:["CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","DATABASE_PRINCIPAL_ID","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME"],string:["ASCII","CHAR","CHARINDEX","CONCAT","CONCAT_WS","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STRING_AGG","STRING_ESCAPE","STUFF","SUBSTRING","TRANSLATE","TRIM","UNICODE","UPPER"],system:["$PARTITION","@@ERROR","@@IDENTITY","@@PACK_RECEIVED","@@ROWCOUNT","@@TRANCOUNT","BINARY_CHECKSUM","CHECKSUM","COMPRESS","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","CURRENT_TRANSACTION_ID","DECOMPRESS","ERROR_LINE","ERROR_MESSAGE","ERROR_NUMBER","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GET_FILESTREAM_TRANSACTION_CONTEXT","GETANSINULL","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","SESSION_CONTEXT","XACT_STATE"],statistical:["@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACK_SENT","@@PACKET_ERRORS","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE","TEXTPTR","TEXTVALID"],trigger:["COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE"],caseAbbrev:["COALESCE","NULLIF"],dataTypes:["DECIMAL","NUMERIC","FLOAT","REAL","DATETIME2","DATETIMEOFFSET","TIME","CHAR","VARCHAR","NCHAR","NVARCHAR","BINARY","VARBINARY"]}),tD=v({standard:["ADD","ALL","ALTER","AND","ANY","AS","ASC","AUTHORIZATION","BACKUP","BEGIN","BETWEEN","BREAK","BROWSE","BULK","BY","CASCADE","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLUMN","COMMIT","COMPUTE","CONSTRAINT","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DBCC","DEALLOCATE","DECLARE","DEFAULT","DELETE","DENY","DESC","DISK","DISTINCT","DISTRIBUTED","DOUBLE","DROP","DUMP","ERRLVL","ESCAPE","EXEC","EXECUTE","EXISTS","EXIT","EXTERNAL","FETCH","FILE","FILLFACTOR","FOR","FOREIGN","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GOTO","GRANT","GROUP","HAVING","HOLDLOCK","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IN","INDEX","INNER","INSERT","INTERSECT","INTO","IS","JOIN","KEY","KILL","LEFT","LIKE","LINENO","LOAD","MERGE","NATIONAL","NOCHECK","NONCLUSTERED","NOT","NULL","NULLIF","OF","OFF","OFFSETS","ON","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OUTER","OVER","PERCENT","PIVOT","PLAN","PRECISION","PRIMARY","PRINT","PROC","PROCEDURE","PUBLIC","RAISERROR","READ","READTEXT","RECONFIGURE","REFERENCES","REPLICATION","RESTORE","RESTRICT","RETURN","REVERT","REVOKE","RIGHT","ROLLBACK","ROWCOUNT","ROWGUIDCOL","RULE","SAVE","SCHEMA","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION_USER","SET","SETUSER","SHUTDOWN","SOME","STATISTICS","SYSTEM_USER","TABLE","TABLESAMPLE","TEXTSIZE","THEN","TO","TOP","TRAN","TRANSACTION","TRIGGER","TRUNCATE","TRY_CONVERT","TSEQUAL","UNION","UNIQUE","UNPIVOT","UPDATE","UPDATETEXT","USE","USER","VALUES","VARYING","VIEW","WAITFOR","WHERE","WHILE","WITH","WITHIN GROUP","WRITETEXT"],odbc:["ABSOLUTE","ACTION","ADA","ADD","ALL","ALLOCATE","ALTER","AND","ANY","ARE","AS","ASC","ASSERTION","AT","AUTHORIZATION","AVG","BEGIN","BETWEEN","BIT","BIT_LENGTH","BOTH","BY","CASCADE","CASCADED","CAST","CATALOG","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CLOSE","COALESCE","COLLATE","COLLATION","COLUMN","COMMIT","CONNECT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTINUE","CONVERT","CORRESPONDING","COUNT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DESC","DESCRIBE","DESCRIPTOR","DIAGNOSTICS","DISCONNECT","DISTINCT","DOMAIN","DOUBLE","DROP","END-EXEC","ESCAPE","EXCEPTION","EXEC","EXECUTE","EXISTS","EXTERNAL","EXTRACT","FALSE","FETCH","FIRST","FLOAT","FOR","FOREIGN","FORTRAN","FOUND","FROM","FULL","GET","GLOBAL","GO","GOTO","GRANT","GROUP","HAVING","HOUR","IDENTITY","IMMEDIATE","IN","INCLUDE","INDEX","INDICATOR","INITIALLY","INNER","INPUT","INSENSITIVE","INSERT","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","ISOLATION","JOIN","KEY","LANGUAGE","LAST","LEADING","LEFT","LEVEL","LIKE","LOCAL","LOWER","MATCH","MAX","MIN","MINUTE","MODULE","MONTH","NAMES","NATIONAL","NATURAL","NCHAR","NEXT","NO","NONE","NOT","NULL","NULLIF","NUMERIC","OCTET_LENGTH","OF","ONLY","OPEN","OPTION","OR","ORDER","OUTER","OUTPUT","OVERLAPS","PAD","PARTIAL","PASCAL","POSITION","PRECISION","PREPARE","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURE","PUBLIC","READ","REAL","REFERENCES","RELATIVE","RESTRICT","REVOKE","RIGHT","ROLLBACK","ROWS","SCHEMA","SCROLL","SECOND","SECTION","SELECT","SESSION","SESSION_USER","SET","SIZE","SMALLINT","SOME","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","SUBSTRING","SUM","SYSTEM_USER","TABLE","TEMPORARY","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSACTION","TRANSLATE","TRANSLATION","TRIM","TRUE","UNION","UNIQUE","UNKNOWN","UPDATE","UPPER","USAGE","USER","VALUE","VALUES","VARCHAR","VARYING","VIEW","WHENEVER","WHERE","WITH","WORK","WRITE","YEAR","ZONE"]}),tM=A(["SELECT [ALL | DISTINCT]"]),tb=A(["WITH","INTO","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","OFFSET","FETCH {FIRST | NEXT}","INSERT [INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [BY TARGET | BY SOURCE] [THEN]","UPDATE SET","CREATE [OR ALTER] [MATERIALIZED] VIEW","CREATE TABLE","CREATE [OR ALTER] {PROC | PROCEDURE}"]),tU=A(["UPDATE","WHERE CURRENT OF","DELETE [FROM]","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD","DROP COLUMN [IF EXISTS]","ALTER COLUMN","TRUNCATE TABLE","ADD SENSITIVITY CLASSIFICATION","ADD SIGNATURE","AGGREGATE","ANSI_DEFAULTS","ANSI_NULLS","ANSI_NULL_DFLT_OFF","ANSI_NULL_DFLT_ON","ANSI_PADDING","ANSI_WARNINGS","APPLICATION ROLE","ARITHABORT","ARITHIGNORE","ASSEMBLY","ASYMMETRIC KEY","AUTHORIZATION","AVAILABILITY GROUP","BACKUP","BACKUP CERTIFICATE","BACKUP MASTER KEY","BACKUP SERVICE MASTER KEY","BEGIN CONVERSATION TIMER","BEGIN DIALOG CONVERSATION","BROKER PRIORITY","BULK INSERT","CERTIFICATE","CLOSE MASTER KEY","CLOSE SYMMETRIC KEY","COLLATE","COLUMN ENCRYPTION KEY","COLUMN MASTER KEY","COLUMNSTORE INDEX","CONCAT_NULL_YIELDS_NULL","CONTEXT_INFO","CONTRACT","CREDENTIAL","CRYPTOGRAPHIC PROVIDER","CURSOR_CLOSE_ON_COMMIT","DATABASE","DATABASE AUDIT SPECIFICATION","DATABASE ENCRYPTION KEY","DATABASE HADR","DATABASE SCOPED CONFIGURATION","DATABASE SCOPED CREDENTIAL","DATABASE SET","DATEFIRST","DATEFORMAT","DEADLOCK_PRIORITY","DENY","DENY XML","DISABLE TRIGGER","ENABLE TRIGGER","END CONVERSATION","ENDPOINT","EVENT NOTIFICATION","EVENT SESSION","EXECUTE AS","EXTERNAL DATA SOURCE","EXTERNAL FILE FORMAT","EXTERNAL LANGUAGE","EXTERNAL LIBRARY","EXTERNAL RESOURCE POOL","EXTERNAL TABLE","FIPS_FLAGGER","FMTONLY","FORCEPLAN","FULLTEXT CATALOG","FULLTEXT INDEX","FULLTEXT STOPLIST","FUNCTION","GET CONVERSATION GROUP","GET_TRANSMISSION_STATUS","GRANT","GRANT XML","IDENTITY_INSERT","IMPLICIT_TRANSACTIONS","INDEX","LANGUAGE","LOCK_TIMEOUT","LOGIN","MASTER KEY","MESSAGE TYPE","MOVE CONVERSATION","NOCOUNT","NOEXEC","NUMERIC_ROUNDABORT","OFFSETS","OPEN MASTER KEY","OPEN SYMMETRIC KEY","PARSEONLY","PARTITION FUNCTION","PARTITION SCHEME","PROCEDURE","QUERY_GOVERNOR_COST_LIMIT","QUEUE","QUOTED_IDENTIFIER","RECEIVE","REMOTE SERVICE BINDING","REMOTE_PROC_TRANSACTIONS","RESOURCE GOVERNOR","RESOURCE POOL","RESTORE","RESTORE FILELISTONLY","RESTORE HEADERONLY","RESTORE LABELONLY","RESTORE MASTER KEY","RESTORE REWINDONLY","RESTORE SERVICE MASTER KEY","RESTORE VERIFYONLY","REVERT","REVOKE","REVOKE XML","ROLE","ROUTE","ROWCOUNT","RULE","SCHEMA","SEARCH PROPERTY LIST","SECURITY POLICY","SELECTIVE XML INDEX","SEND","SENSITIVITY CLASSIFICATION","SEQUENCE","SERVER AUDIT","SERVER AUDIT SPECIFICATION","SERVER CONFIGURATION","SERVER ROLE","SERVICE","SERVICE MASTER KEY","SETUSER","SHOWPLAN_ALL","SHOWPLAN_TEXT","SHOWPLAN_XML","SIGNATURE","SPATIAL INDEX","STATISTICS","STATISTICS IO","STATISTICS PROFILE","STATISTICS TIME","STATISTICS XML","SYMMETRIC KEY","SYNONYM","TABLE","TABLE IDENTITY","TEXTSIZE","TRANSACTION ISOLATION LEVEL","TRIGGER","TYPE","UPDATE STATISTICS","USER","WORKLOAD GROUP","XACT_ABORT","XML INDEX","XML SCHEMA COLLECTION"]),tx=A(["UNION [ALL]","EXCEPT","INTERSECT"]),tw=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","{CROSS | OUTER} APPLY"]),tG=A(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),tF={tokenizerOptions:{reservedSelect:tM,reservedClauses:[...tb,...tU],reservedSetOperations:tx,reservedJoins:tw,reservedPhrases:tG,reservedKeywords:tD,reservedFunctionNames:ty,nestedBlockComments:!0,stringTypes:[{quote:"''-qq",prefixes:["N"]}],identTypes:['""-qq',"[]"],identChars:{first:"#@",rest:"#@$"},paramTypes:{named:["@"],quoted:["@"]},operators:["%","&","|","^","~","!<","!>","+=","-=","*=","/=","%=","|=","&=","^=","::"]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:tU}},tH=v({all:["ABORT","ABSOLUTE","ACCESS","ACCESSIBLE","ACCOUNT","ACTION","ACTIVE","ADD","ADMIN","AFTER","AGAINST","AGGREGATE","AGGREGATES","AGGREGATOR","AGGREGATOR_ID","AGGREGATOR_PLAN_HASH","AGGREGATORS","ALGORITHM","ALL","ALSO","ALTER","ALWAYS","ANALYZE","AND","ANY","ARGHISTORY","ARRANGE","ARRANGEMENT","ARRAY","AS","ASC","ASCII","ASENSITIVE","ASM","ASSERTION","ASSIGNMENT","AST","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTE","AUTHORIZATION","AUTO","AUTO_INCREMENT","AUTO_REPROVISION","AUTOSTATS","AUTOSTATS_CARDINALITY_MODE","AUTOSTATS_ENABLED","AUTOSTATS_HISTOGRAM_MODE","AUTOSTATS_SAMPLING","AVAILABILITY","AVG","AVG_ROW_LENGTH","AVRO","AZURE","BACKGROUND","_BACKGROUND_THREADS_FOR_CLEANUP","BACKUP","BACKUP_HISTORY","BACKUP_ID","BACKWARD","BATCH","BATCHES","BATCH_INTERVAL","_BATCH_SIZE_LIMIT","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","_BINARY","BIT","BLOB","BOOL","BOOLEAN","BOOTSTRAP","BOTH","_BT","BTREE","BUCKET_COUNT","BUCKETS","BY","BYTE","BYTE_LENGTH","CACHE","CALL","CALL_FOR_PIPELINE","CALLED","CAPTURE","CASCADE","CASCADED","CASE","CATALOG","CHAIN","CHANGE","CHAR","CHARACTER","CHARACTERISTICS","CHARSET","CHECK","CHECKPOINT","_CHECK_CAN_CONNECT","_CHECK_CONSISTENCY","CHECKSUM","_CHECKSUM","CLASS","CLEAR","CLIENT","CLIENT_FOUND_ROWS","CLOSE","CLUSTER","CLUSTERED","CNF","COALESCE","COLLATE","COLLATION","COLUMN","COLUMNAR","COLUMNS","COLUMNSTORE","COLUMNSTORE_SEGMENT_ROWS","COMMENT","COMMENTS","COMMIT","COMMITTED","_COMMIT_LOG_TAIL","COMPACT","COMPILE","COMPRESSED","COMPRESSION","CONCURRENT","CONCURRENTLY","CONDITION","CONFIGURATION","CONNECTION","CONNECTIONS","CONFIG","CONSTRAINT","CONTAINS","CONTENT","CONTINUE","_CONTINUE_REPLAY","CONVERSION","CONVERT","COPY","_CORE","COST","CREATE","CREDENTIALS","CROSS","CUBE","CSV","CUME_DIST","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_SCHEMA","CURRENT_SECURITY_GROUPS","CURRENT_SECURITY_ROLES","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DATABASES","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFERRABLE","DEFERRED","DEFINED","DEFINER","DELAYED","DELAY_KEY_WRITE","DELETE","DELIMITER","DELIMITERS","DENSE_RANK","DESC","DESCRIBE","DETACH","DETERMINISTIC","DICTIONARY","DIFFERENTIAL","DIRECTORY","DISABLE","DISCARD","_DISCONNECT","DISK","DISTINCT","DISTINCTROW","DISTRIBUTED_JOINS","DIV","DO","DOCUMENT","DOMAIN","DOUBLE","DROP","_DROP_PROFILE","DUAL","DUMP","DUPLICATE","DURABILITY","DYNAMIC","EARLIEST","EACH","ECHO","ELECTION","ELSE","ELSEIF","ENABLE","ENCLOSED","ENCODING","ENCRYPTED","END","ENGINE","ENGINES","ENUM","ERRORS","ESCAPE","ESCAPED","ESTIMATE","EVENT","EVENTS","EXCEPT","EXCLUDE","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTENDED","EXTENSION","EXTERNAL","EXTERNAL_HOST","EXTERNAL_PORT","EXTRACTOR","EXTRACTORS","EXTRA_JOIN","_FAILOVER","FAILED_LOGIN_ATTEMPTS","FAILURE","FALSE","FAMILY","FAULT","FETCH","FIELDS","FILE","FILES","FILL","FIX_ALTER","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWING","FOR","FORCE","FORCE_COMPILED_MODE","FORCE_INTERPRETER_MODE","FOREGROUND","FOREIGN","FORMAT","FORWARD","FREEZE","FROM","FS","_FSYNC","FULL","FULLTEXT","FUNCTION","FUNCTIONS","GC","GCS","GET_FORMAT","_GC","_GCX","GENERATE","GEOGRAPHY","GEOGRAPHYPOINT","GEOMETRY","GEOMETRYPOINT","GLOBAL","_GLOBAL_VERSION_TIMESTAMP","GRANT","GRANTED","GRANTS","GROUP","GROUPING","GROUPS","GZIP","HANDLE","HANDLER","HARD_CPU_LIMIT_PERCENTAGE","HASH","HAS_TEMP_TABLES","HAVING","HDFS","HEADER","HEARTBEAT_NO_LOGGING","HIGH_PRIORITY","HISTOGRAM","HOLD","HOLDING","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IDENTITY","IF","IGNORE","ILIKE","IMMEDIATE","IMMUTABLE","IMPLICIT","IMPORT","IN","INCLUDING","INCREMENT","INCREMENTAL","INDEX","INDEXES","INFILE","INHERIT","INHERITS","_INIT_PROFILE","INIT","INITIALIZE","INITIALLY","INJECT","INLINE","INNER","INOUT","INPUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTANCE","INSTEAD","IN","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","_INTERNAL_DYNAMIC_TYPECAST","INTERPRETER_MODE","INTERSECT","INTERVAL","INTO","INVOKER","ISOLATION","ITERATE","JOIN","JSON","KAFKA","KEY","KEY_BLOCK_SIZE","KEYS","KILL","KILLALL","LABEL","LAG","LANGUAGE","LARGE","LAST","LAST_VALUE","LATERAL","LATEST","LC_COLLATE","LC_CTYPE","LEAD","LEADING","LEAF","LEAKPROOF","LEAVE","LEAVES","LEFT","LEVEL","LICENSE","LIKE","LIMIT","LINES","LISTEN","LLVM","LOADDATA_WHERE","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCK","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","_LS","LZ4","MANAGEMENT","_MANAGEMENT_THREAD","MAPPING","MASTER","MATCH","MATERIALIZED","MAXVALUE","MAX_CONCURRENCY","MAX_ERRORS","MAX_PARTITIONS_PER_BATCH","MAX_QUEUE_DEPTH","MAX_RETRIES_PER_BATCH_PARTITION","MAX_ROWS","MBC","MPL","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMBER","MEMORY","MEMORY_PERCENTAGE","_MEMSQL_TABLE_ID_LOOKUP","MEMSQL","MEMSQL_DESERIALIZE","MEMSQL_IMITATING_KAFKA","MEMSQL_SERIALIZE","MERGE","METADATA","MICROSECOND","MIDDLEINT","MIN_ROWS","MINUS","MINUTE_MICROSECOND","MINUTE_SECOND","MINVALUE","MOD","MODE","MODEL","MODIFIES","MODIFY","MONTH","MOVE","MPL","NAMES","NAMED","NAMESPACE","NATIONAL","NATURAL","NCHAR","NEXT","NO","NODE","NONE","NO_QUERY_REWRITE","NOPARAM","NOT","NOTHING","NOTIFY","NOWAIT","NO_WRITE_TO_BINLOG","NO_QUERY_REWRITE","NORELY","NTH_VALUE","NTILE","NULL","NULLCOLS","NULLS","NUMERIC","NVARCHAR","OBJECT","OF","OFF","OFFLINE","OFFSET","OFFSETS","OIDS","ON","ONLINE","ONLY","OPEN","OPERATOR","OPTIMIZATION","OPTIMIZE","OPTIMIZER","OPTIMIZER_STATE","OPTION","OPTIONS","OPTIONALLY","OR","ORDER","ORDERED_SERIALIZE","ORPHAN","OUT","OUT_OF_ORDER","OUTER","OUTFILE","OVER","OVERLAPS","OVERLAY","OWNED","OWNER","PACK_KEYS","PAIRED","PARSER","PARQUET","PARTIAL","PARTITION","PARTITION_ID","PARTITIONING","PARTITIONS","PASSING","PASSWORD","PASSWORD_LOCK_TIME","PAUSE","_PAUSE_REPLAY","PERIODIC","PERSISTED","PIPELINE","PIPELINES","PLACING","PLAN","PLANS","PLANCACHE","PLUGINS","POOL","POOLS","PORT","PRECEDING","PRECISION","PREPARE","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROCEDURES","PROCESS","PROCESSLIST","PROFILE","PROFILES","PROGRAM","PROMOTE","PROXY","PURGE","QUARTER","QUERIES","QUERY","QUERY_TIMEOUT","QUEUE","RANGE","RANK","READ","_READ","READS","REAL","REASSIGN","REBALANCE","RECHECK","RECORD","RECURSIVE","REDUNDANCY","REDUNDANT","REF","REFERENCE","REFERENCES","REFRESH","REGEXP","REINDEX","RELATIVE","RELEASE","RELOAD","RELY","REMOTE","REMOVE","RENAME","REPAIR","_REPAIR_TABLE","REPEAT","REPEATABLE","_REPL","_REPROVISIONING","REPLACE","REPLICA","REPLICATE","REPLICATING","REPLICATION","REQUIRE","RESOURCE","RESOURCE_POOL","RESET","RESTART","RESTORE","RESTRICT","RESULT","_RESURRECT","RETRY","RETURN","RETURNING","RETURNS","REVERSE","RG_POOL","REVOKE","RIGHT","RIGHT_ANTI_JOIN","RIGHT_SEMI_JOIN","RIGHT_STRAIGHT_JOIN","RLIKE","ROLES","ROLLBACK","ROLLUP","ROUTINE","ROW","ROW_COUNT","ROW_FORMAT","ROW_NUMBER","ROWS","ROWSTORE","RULE","_RPC","RUNNING","S3","SAFE","SAVE","SAVEPOINT","SCALAR","SCHEMA","SCHEMAS","SCHEMA_BINDING","SCROLL","SEARCH","SECOND","SECOND_MICROSECOND","SECURITY","SELECT","SEMI_JOIN","_SEND_THREADS","SENSITIVE","SEPARATOR","SEQUENCE","SEQUENCES","SERIAL","SERIALIZABLE","SERIES","SERVICE_USER","SERVER","SESSION","SESSION_USER","SET","SETOF","SECURITY_LISTS_INTERSECT","SHA","SHARD","SHARDED","SHARDED_ID","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMILAR","SIMPLE","SITE","SKIP","SKIPPED_BATCHES","__SLEEP","SMALLINT","SNAPSHOT","_SNAPSHOT","_SNAPSHOTS","SOFT_CPU_LIMIT_PERCENTAGE","SOME","SONAME","SPARSE","SPATIAL","SPATIAL_CHECK_INDEX","SPECIFIC","SQL","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQLEXCEPTION","SQL_MODE","SQL_NO_CACHE","SQL_NO_LOGGING","SQL_SMALL_RESULT","SQLSTATE","SQLWARNING","STDIN","STDOUT","STOP","STORAGE","STRAIGHT_JOIN","STRICT","STRING","STRIP","SUCCESS","SUPER","SYMMETRIC","SYNC_SNAPSHOT","SYNC","_SYNC","_SYNC2","_SYNC_PARTITIONS","_SYNC_SNAPSHOT","SYNCHRONIZE","SYSID","SYSTEM","TABLE","TABLE_CHECKSUM","TABLES","TABLESPACE","TAGS","TARGET_SIZE","TASK","TEMP","TEMPLATE","TEMPORARY","TEMPTABLE","_TERM_BUMP","TERMINATE","TERMINATED","TEXT","THEN","TIME","TIMEOUT","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIMEZONE","TINYBLOB","TINYINT","TINYTEXT","TO","TRACELOGS","TRADITIONAL","TRAILING","TRANSFORM","TRANSACTION","_TRANSACTIONS_EXPERIMENTAL","TREAT","TRIGGER","TRIGGERS","TRUE","TRUNC","TRUNCATE","TRUSTED","TWO_PHASE","_TWOPCID","TYPE","TYPES","UNBOUNDED","UNCOMMITTED","UNDEFINED","UNDO","UNENCRYPTED","UNENFORCED","UNHOLD","UNICODE","UNION","UNIQUE","_UNITTEST","UNKNOWN","UNLISTEN","_UNLOAD","UNLOCK","UNLOGGED","UNPIVOT","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USERS","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","_UTF8","VACUUM","VALID","VALIDATE","VALIDATOR","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARIABLES","VARIADIC","VARYING","VERBOSE","VIEW","VOID","VOLATILE","VOTING","WAIT","_WAKE","WARNINGS","WEEK","WHEN","WHERE","WHILE","WHITESPACE","WINDOW","WITH","WITHOUT","WITHIN","_WM_HEARTBEAT","WORK","WORKLOAD","WRAPPER","WRITE","XACT_ID","XOR","YEAR","YEAR_MONTH","YES","ZEROFILL","ZONE"]}),tB=v({all:["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","APPROX_COUNT_DISTINCT","APPROX_COUNT_DISTINCT_ACCUMULATE","APPROX_COUNT_DISTINCT_COMBINE","APPROX_COUNT_DISTINCT_ESTIMATE","APPROX_GEOGRAPHY_INTERSECTS","APPROX_PERCENTILE","ASCII","ASIN","ATAN","ATAN2","AVG","BIN","BINARY","BIT_AND","BIT_COUNT","BIT_OR","BIT_XOR","CAST","CEIL","CEILING","CHAR","CHARACTER_LENGTH","CHAR_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COLLECT","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATEDIFF","DATE_FORMAT","DATE_SUB","DATE_TRUNC","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEFAULT","DEGREES","DENSE_RANK","DIV","DOT_PRODUCT","ELT","EUCLIDEAN_DISTANCE","EXP","EXTRACT","FIELD","FIRST","FIRST_VALUE","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOGRAPHY_AREA","GEOGRAPHY_CONTAINS","GEOGRAPHY_DISTANCE","GEOGRAPHY_INTERSECTS","GEOGRAPHY_LATITUDE","GEOGRAPHY_LENGTH","GEOGRAPHY_LONGITUDE","GEOGRAPHY_POINT","GEOGRAPHY_WITHIN_DISTANCE","GEOMETRY_AREA","GEOMETRY_CONTAINS","GEOMETRY_DISTANCE","GEOMETRY_FILTER","GEOMETRY_INTERSECTS","GEOMETRY_LENGTH","GEOMETRY_POINT","GEOMETRY_WITHIN_DISTANCE","GEOMETRY_X","GEOMETRY_Y","GREATEST","GROUPING","GROUP_CONCAT","HEX","HIGHLIGHT","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INITCAP","INSERT","INSTR","INTERVAL","IS","IS NULL","JSON_AGG","JSON_ARRAY_CONTAINS_DOUBLE","JSON_ARRAY_CONTAINS_JSON","JSON_ARRAY_CONTAINS_STRING","JSON_ARRAY_PUSH_DOUBLE","JSON_ARRAY_PUSH_JSON","JSON_ARRAY_PUSH_STRING","JSON_DELETE_KEY","JSON_EXTRACT_DOUBLE","JSON_EXTRACT_JSON","JSON_EXTRACT_STRING","JSON_EXTRACT_BIGINT","JSON_GET_TYPE","JSON_LENGTH","JSON_SET_DOUBLE","JSON_SET_JSON","JSON_SET_STRING","JSON_SPLICE_DOUBLE","JSON_SPLICE_JSON","JSON_SPLICE_STRING","LAG","LAST_DAY","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LN","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LPAD","LTRIM","MATCH","MAX","MD5","MEDIAN","MICROSECOND","MIN","MINUTE","MOD","MONTH","MONTHNAME","MONTHS_BETWEEN","NOT","NOW","NTH_VALUE","NTILE","NULLIF","OCTET_LENGTH","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PI","PIVOT","POSITION","POW","POWER","QUARTER","QUOTE","RADIANS","RAND","RANK","REGEXP","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCALAR","SCHEMA","SEC_TO_TIME","SHA1","SHA2","SIGMOID","SIGN","SIN","SLEEP","SPLIT","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUM","SYS_GUID","TAN","TIME","TIMEDIFF","TIME_BUCKET","TIME_FORMAT","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_JSON","TO_NUMBER","TO_SECONDS","TO_TIMESTAMP","TRIM","TRUNC","TRUNCATE","UCASE","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","USER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","VALUES","VARIANCE","VAR_POP","VAR_SAMP","VECTOR_SUB","VERSION","WEEK","WEEKDAY","WEEKOFYEAR","YEAR","BIT","TINYINT","SMALLINT","MEDIUMINT","INT","INTEGER","BIGINT","DECIMAL","DEC","NUMERIC","FIXED","FLOAT","DOUBLE","DOUBLE PRECISION","REAL","DATETIME","TIMESTAMP","TIME","YEAR","CHAR","NATIONAL CHAR","VARCHAR","NATIONAL VARCHAR","BINARY","VARBINARY","BLOB","TEXT","ENUM"]}),tY=A(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),tk=A(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [IGNORE] [INTO]","VALUES","REPLACE [INTO]","SET","CREATE VIEW","CREATE [ROWSTORE] [REFERENCE | TEMPORARY | GLOBAL TEMPORARY] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [TEMPORARY] PROCEDURE [IF NOT EXISTS]","CREATE [OR REPLACE] [EXTERNAL] FUNCTION"]),tV=A(["UPDATE","DELETE [FROM]","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER [ONLINE] TABLE","ADD [COLUMN]","ADD [UNIQUE] {INDEX | KEY}","DROP [COLUMN]","MODIFY [COLUMN]","CHANGE","RENAME [TO | AS]","TRUNCATE [TABLE]","ADD AGGREGATOR","ADD LEAF","AGGREGATOR SET AS MASTER","ALTER DATABASE","ALTER PIPELINE","ALTER RESOURCE POOL","ALTER USER","ALTER VIEW","ANALYZE TABLE","ATTACH DATABASE","ATTACH LEAF","ATTACH LEAF ALL","BACKUP DATABASE","BINLOG","BOOTSTRAP AGGREGATOR","CACHE INDEX","CALL","CHANGE","CHANGE MASTER TO","CHANGE REPLICATION FILTER","CHANGE REPLICATION SOURCE TO","CHECK BLOB CHECKSUM","CHECK TABLE","CHECKSUM TABLE","CLEAR ORPHAN DATABASES","CLONE","COMMIT","CREATE DATABASE","CREATE GROUP","CREATE INDEX","CREATE LINK","CREATE MILESTONE","CREATE PIPELINE","CREATE RESOURCE POOL","CREATE ROLE","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DETACH DATABASE","DETACH PIPELINE","DROP DATABASE","DROP FUNCTION","DROP INDEX","DROP LINK","DROP PIPELINE","DROP PROCEDURE","DROP RESOURCE POOL","DROP ROLE","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","FORCE","GRANT","HANDLER","HELP","KILL CONNECTION","KILLALL QUERIES","LOAD DATA","LOAD INDEX INTO CACHE","LOAD XML","LOCK INSTANCE FOR BACKUP","LOCK TABLES","MASTER_POS_WAIT","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","REBALANCE PARTITIONS","RELEASE SAVEPOINT","REMOVE AGGREGATOR","REMOVE LEAF","REPAIR TABLE","REPLACE","REPLICATE DATABASE","RESET","RESET MASTER","RESET PERSIST","RESET REPLICA","RESET SLAVE","RESTART","RESTORE DATABASE","RESTORE REDUNDANCY","REVOKE","ROLLBACK","ROLLBACK TO SAVEPOINT","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET NAMES","SET PASSWORD","SET RESOURCE GROUP","SET ROLE","SET TRANSACTION","SHOW","SHOW CHARACTER SET","SHOW COLLATION","SHOW COLUMNS","SHOW CREATE DATABASE","SHOW CREATE FUNCTION","SHOW CREATE PIPELINE","SHOW CREATE PROCEDURE","SHOW CREATE TABLE","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINES","SHOW ERRORS","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PLUGINS","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW RELAYLOG EVENTS","SHOW REPLICA STATUS","SHOW REPLICAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW STATUS","SHOW TABLE STATUS","SHOW TABLES","SHOW VARIABLES","SHOW WARNINGS","SHUTDOWN","SNAPSHOT DATABASE","SOURCE_POS_WAIT","START GROUP_REPLICATION","START PIPELINE","START REPLICA","START SLAVE","START TRANSACTION","STOP GROUP_REPLICATION","STOP PIPELINE","STOP REPLICA","STOP REPLICATING","STOP SLAVE","TEST PIPELINE","UNLOCK INSTANCE","UNLOCK TABLES","USE","XA","ITERATE","LEAVE","LOOP","REPEAT","RETURN","WHILE"]),t$=A(["UNION [ALL | DISTINCT]","EXCEPT","INTERSECT","MINUS"]),tW=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),tZ=A(["ON DELETE","ON UPDATE","CHARACTER SET","{ROWS | RANGE} BETWEEN"]),tj={tokenizerOptions:{reservedSelect:tY,reservedClauses:[...tk,...tV],reservedSetOperations:t$,reservedJoins:tW,reservedPhrases:tZ,reservedKeywords:tH,reservedFunctionNames:tB,stringTypes:['""-qq-bs',"''-qq-bs",{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_$]+"},{quote:"``",prefixes:["@"],requirePrefix:!0}],lineCommentTypes:["--","#"],operators:[":=","&","|","^","~","<<",">>","<=>","&&","||","::","::$","::%",":>","!:>"],postProcess:function(e){return e.map((t,n)=>{let o=e[n+1]||u;return R.SET(t)&&"("===o.text?{...t,type:r.RESERVED_FUNCTION_NAME}:t})}},formatOptions:{alwaysDenseOperators:["::","::$","::%"],onelineClauses:tV}},tX=v({all:["ABS","ACOS","ACOSH","ADD_MONTHS","ALL_USER_NAMES","ANY_VALUE","APPROX_COUNT_DISTINCT","APPROX_PERCENTILE","APPROX_PERCENTILE_ACCUMULATE","APPROX_PERCENTILE_COMBINE","APPROX_PERCENTILE_ESTIMATE","APPROX_TOP_K","APPROX_TOP_K_ACCUMULATE","APPROX_TOP_K_COMBINE","APPROX_TOP_K_ESTIMATE","APPROXIMATE_JACCARD_INDEX","APPROXIMATE_SIMILARITY","ARRAY_AGG","ARRAY_APPEND","ARRAY_CAT","ARRAY_COMPACT","ARRAY_CONSTRUCT","ARRAY_CONSTRUCT_COMPACT","ARRAY_CONTAINS","ARRAY_INSERT","ARRAY_INTERSECTION","ARRAY_POSITION","ARRAY_PREPEND","ARRAY_SIZE","ARRAY_SLICE","ARRAY_TO_STRING","ARRAY_UNION_AGG","ARRAY_UNIQUE_AGG","ARRAYS_OVERLAP","AS_ARRAY","AS_BINARY","AS_BOOLEAN","AS_CHAR","AS_VARCHAR","AS_DATE","AS_DECIMAL","AS_NUMBER","AS_DOUBLE","AS_REAL","AS_INTEGER","AS_OBJECT","AS_TIME","AS_TIMESTAMP_LTZ","AS_TIMESTAMP_NTZ","AS_TIMESTAMP_TZ","ASCII","ASIN","ASINH","ATAN","ATAN2","ATANH","AUTO_REFRESH_REGISTRATION_HISTORY","AUTOMATIC_CLUSTERING_HISTORY","AVG","BASE64_DECODE_BINARY","BASE64_DECODE_STRING","BASE64_ENCODE","BIT_LENGTH","BITAND","BITAND_AGG","BITMAP_BIT_POSITION","BITMAP_BUCKET_NUMBER","BITMAP_CONSTRUCT_AGG","BITMAP_COUNT","BITMAP_OR_AGG","BITNOT","BITOR","BITOR_AGG","BITSHIFTLEFT","BITSHIFTRIGHT","BITXOR","BITXOR_AGG","BOOLAND","BOOLAND_AGG","BOOLNOT","BOOLOR","BOOLOR_AGG","BOOLXOR","BOOLXOR_AGG","BUILD_SCOPED_FILE_URL","BUILD_STAGE_FILE_URL","CASE","CAST","CBRT","CEIL","CHARINDEX","CHECK_JSON","CHECK_XML","CHR","CHAR","COALESCE","COLLATE","COLLATION","COMPLETE_TASK_GRAPHS","COMPRESS","CONCAT","CONCAT_WS","CONDITIONAL_CHANGE_EVENT","CONDITIONAL_TRUE_EVENT","CONTAINS","CONVERT_TIMEZONE","COPY_HISTORY","CORR","COS","COSH","COT","COUNT","COUNT_IF","COVAR_POP","COVAR_SAMP","CUME_DIST","CURRENT_ACCOUNT","CURRENT_AVAILABLE_ROLES","CURRENT_CLIENT","CURRENT_DATABASE","CURRENT_DATE","CURRENT_IP_ADDRESS","CURRENT_REGION","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_SECONDARY_ROLES","CURRENT_SESSION","CURRENT_STATEMENT","CURRENT_TASK_GRAPHS","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TRANSACTION","CURRENT_USER","CURRENT_VERSION","CURRENT_WAREHOUSE","DATA_TRANSFER_HISTORY","DATABASE_REFRESH_HISTORY","DATABASE_REFRESH_PROGRESS","DATABASE_REFRESH_PROGRESS_BY_JOB","DATABASE_STORAGE_USAGE_HISTORY","DATE_FROM_PARTS","DATE_PART","DATE_TRUNC","DATEADD","DATEDIFF","DAYNAME","DECODE","DECOMPRESS_BINARY","DECOMPRESS_STRING","DECRYPT","DECRYPT_RAW","DEGREES","DENSE_RANK","DIV0","EDITDISTANCE","ENCRYPT","ENCRYPT_RAW","ENDSWITH","EQUAL_NULL","EXP","EXPLAIN_JSON","EXTERNAL_FUNCTIONS_HISTORY","EXTERNAL_TABLE_FILES","EXTERNAL_TABLE_FILE_REGISTRATION_HISTORY","EXTRACT","EXTRACT_SEMANTIC_CATEGORIES","FACTORIAL","FIRST_VALUE","FLATTEN","FLOOR","GENERATE_COLUMN_DESCRIPTION","GENERATOR","GET","GET_ABSOLUTE_PATH","GET_DDL","GET_IGNORE_CASE","GET_OBJECT_REFERENCES","GET_PATH","GET_PRESIGNED_URL","GET_RELATIVE_PATH","GET_STAGE_LOCATION","GETBIT","GREATEST","GROUPING","GROUPING_ID","HASH","HASH_AGG","HAVERSINE","HEX_DECODE_BINARY","HEX_DECODE_STRING","HEX_ENCODE","HLL","HLL_ACCUMULATE","HLL_COMBINE","HLL_ESTIMATE","HLL_EXPORT","HLL_IMPORT","HOUR","MINUTE","SECOND","IFF","IFNULL","ILIKE","ILIKE ANY","INFER_SCHEMA","INITCAP","INSERT","INVOKER_ROLE","INVOKER_SHARE","IS_ARRAY","IS_BINARY","IS_BOOLEAN","IS_CHAR","IS_VARCHAR","IS_DATE","IS_DATE_VALUE","IS_DECIMAL","IS_DOUBLE","IS_REAL","IS_GRANTED_TO_INVOKER_ROLE","IS_INTEGER","IS_NULL_VALUE","IS_OBJECT","IS_ROLE_IN_SESSION","IS_TIME","IS_TIMESTAMP_LTZ","IS_TIMESTAMP_NTZ","IS_TIMESTAMP_TZ","JAROWINKLER_SIMILARITY","JSON_EXTRACT_PATH_TEXT","KURTOSIS","LAG","LAST_DAY","LAST_QUERY_ID","LAST_TRANSACTION","LAST_VALUE","LEAD","LEAST","LEFT","LENGTH","LEN","LIKE","LIKE ALL","LIKE ANY","LISTAGG","LN","LOCALTIME","LOCALTIMESTAMP","LOG","LOGIN_HISTORY","LOGIN_HISTORY_BY_USER","LOWER","LPAD","LTRIM","MATERIALIZED_VIEW_REFRESH_HISTORY","MD5","MD5_HEX","MD5_BINARY","MD5_NUMBER — Obsoleted","MD5_NUMBER_LOWER64","MD5_NUMBER_UPPER64","MEDIAN","MIN","MAX","MINHASH","MINHASH_COMBINE","MOD","MODE","MONTHNAME","MONTHS_BETWEEN","NEXT_DAY","NORMAL","NTH_VALUE","NTILE","NULLIF","NULLIFZERO","NVL","NVL2","OBJECT_AGG","OBJECT_CONSTRUCT","OBJECT_CONSTRUCT_KEEP_NULL","OBJECT_DELETE","OBJECT_INSERT","OBJECT_KEYS","OBJECT_PICK","OCTET_LENGTH","PARSE_IP","PARSE_JSON","PARSE_URL","PARSE_XML","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PI","PIPE_USAGE_HISTORY","POLICY_CONTEXT","POLICY_REFERENCES","POSITION","POW","POWER","PREVIOUS_DAY","QUERY_ACCELERATION_HISTORY","QUERY_HISTORY","QUERY_HISTORY_BY_SESSION","QUERY_HISTORY_BY_USER","QUERY_HISTORY_BY_WAREHOUSE","RADIANS","RANDOM","RANDSTR","RANK","RATIO_TO_REPORT","REGEXP","REGEXP_COUNT","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","REGEXP_SUBSTR_ALL","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","REGR_VALX","REGR_VALY","REPEAT","REPLACE","REPLICATION_GROUP_REFRESH_HISTORY","REPLICATION_GROUP_REFRESH_PROGRESS","REPLICATION_GROUP_REFRESH_PROGRESS_BY_JOB","REPLICATION_GROUP_USAGE_HISTORY","REPLICATION_USAGE_HISTORY","REST_EVENT_HISTORY","RESULT_SCAN","REVERSE","RIGHT","RLIKE","ROUND","ROW_NUMBER","RPAD","RTRIM","RTRIMMED_LENGTH","SEARCH_OPTIMIZATION_HISTORY","SEQ1","SEQ2","SEQ4","SEQ8","SERVERLESS_TASK_HISTORY","SHA1","SHA1_HEX","SHA1_BINARY","SHA2","SHA2_HEX","SHA2_BINARY","SIGN","SIN","SINH","SKEW","SOUNDEX","SPACE","SPLIT","SPLIT_PART","SPLIT_TO_TABLE","SQRT","SQUARE","ST_AREA","ST_ASEWKB","ST_ASEWKT","ST_ASGEOJSON","ST_ASWKB","ST_ASBINARY","ST_ASWKT","ST_ASTEXT","ST_AZIMUTH","ST_CENTROID","ST_COLLECT","ST_CONTAINS","ST_COVEREDBY","ST_COVERS","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DWITHIN","ST_ENDPOINT","ST_ENVELOPE","ST_GEOGFROMGEOHASH","ST_GEOGPOINTFROMGEOHASH","ST_GEOGRAPHYFROMWKB","ST_GEOGRAPHYFROMWKT","ST_GEOHASH","ST_GEOMETRYFROMWKB","ST_GEOMETRYFROMWKT","ST_HAUSDORFFDISTANCE","ST_INTERSECTION","ST_INTERSECTS","ST_LENGTH","ST_MAKEGEOMPOINT","ST_GEOM_POINT","ST_MAKELINE","ST_MAKEPOINT","ST_POINT","ST_MAKEPOLYGON","ST_POLYGON","ST_NPOINTS","ST_NUMPOINTS","ST_PERIMETER","ST_POINTN","ST_SETSRID","ST_SIMPLIFY","ST_SRID","ST_STARTPOINT","ST_SYMDIFFERENCE","ST_UNION","ST_WITHIN","ST_X","ST_XMAX","ST_XMIN","ST_Y","ST_YMAX","ST_YMIN","STAGE_DIRECTORY_FILE_REGISTRATION_HISTORY","STAGE_STORAGE_USAGE_HISTORY","STARTSWITH","STDDEV","STDDEV_POP","STDDEV_SAMP","STRIP_NULL_VALUE","STRTOK","STRTOK_SPLIT_TO_TABLE","STRTOK_TO_ARRAY","SUBSTR","SUBSTRING","SUM","SYSDATE","SYSTEM$ABORT_SESSION","SYSTEM$ABORT_TRANSACTION","SYSTEM$AUTHORIZE_PRIVATELINK","SYSTEM$AUTHORIZE_STAGE_PRIVATELINK_ACCESS","SYSTEM$BEHAVIOR_CHANGE_BUNDLE_STATUS","SYSTEM$CANCEL_ALL_QUERIES","SYSTEM$CANCEL_QUERY","SYSTEM$CLUSTERING_DEPTH","SYSTEM$CLUSTERING_INFORMATION","SYSTEM$CLUSTERING_RATIO ","SYSTEM$CURRENT_USER_TASK_NAME","SYSTEM$DATABASE_REFRESH_HISTORY ","SYSTEM$DATABASE_REFRESH_PROGRESS","SYSTEM$DATABASE_REFRESH_PROGRESS_BY_JOB ","SYSTEM$DISABLE_BEHAVIOR_CHANGE_BUNDLE","SYSTEM$DISABLE_DATABASE_REPLICATION","SYSTEM$ENABLE_BEHAVIOR_CHANGE_BUNDLE","SYSTEM$ESTIMATE_QUERY_ACCELERATION","SYSTEM$ESTIMATE_SEARCH_OPTIMIZATION_COSTS","SYSTEM$EXPLAIN_JSON_TO_TEXT","SYSTEM$EXPLAIN_PLAN_JSON","SYSTEM$EXTERNAL_TABLE_PIPE_STATUS","SYSTEM$GENERATE_SAML_CSR","SYSTEM$GENERATE_SCIM_ACCESS_TOKEN","SYSTEM$GET_AWS_SNS_IAM_POLICY","SYSTEM$GET_PREDECESSOR_RETURN_VALUE","SYSTEM$GET_PRIVATELINK","SYSTEM$GET_PRIVATELINK_AUTHORIZED_ENDPOINTS","SYSTEM$GET_PRIVATELINK_CONFIG","SYSTEM$GET_SNOWFLAKE_PLATFORM_INFO","SYSTEM$GET_TAG","SYSTEM$GET_TAG_ALLOWED_VALUES","SYSTEM$GET_TAG_ON_CURRENT_COLUMN","SYSTEM$GET_TAG_ON_CURRENT_TABLE","SYSTEM$GLOBAL_ACCOUNT_SET_PARAMETER","SYSTEM$LAST_CHANGE_COMMIT_TIME","SYSTEM$LINK_ACCOUNT_OBJECTS_BY_NAME","SYSTEM$MIGRATE_SAML_IDP_REGISTRATION","SYSTEM$PIPE_FORCE_RESUME","SYSTEM$PIPE_STATUS","SYSTEM$REVOKE_PRIVATELINK","SYSTEM$REVOKE_STAGE_PRIVATELINK_ACCESS","SYSTEM$SET_RETURN_VALUE","SYSTEM$SHOW_OAUTH_CLIENT_SECRETS","SYSTEM$STREAM_GET_TABLE_TIMESTAMP","SYSTEM$STREAM_HAS_DATA","SYSTEM$TASK_DEPENDENTS_ENABLE","SYSTEM$TYPEOF","SYSTEM$USER_TASK_CANCEL_ONGOING_EXECUTIONS","SYSTEM$VERIFY_EXTERNAL_OAUTH_TOKEN","SYSTEM$WAIT","SYSTEM$WHITELIST","SYSTEM$WHITELIST_PRIVATELINK","TAG_REFERENCES","TAG_REFERENCES_ALL_COLUMNS","TAG_REFERENCES_WITH_LINEAGE","TAN","TANH","TASK_DEPENDENTS","TASK_HISTORY","TIME_FROM_PARTS","TIME_SLICE","TIMEADD","TIMEDIFF","TIMESTAMP_FROM_PARTS","TIMESTAMPADD","TIMESTAMPDIFF","TO_ARRAY","TO_BINARY","TO_BOOLEAN","TO_CHAR","TO_VARCHAR","TO_DATE","DATE","TO_DECIMAL","TO_NUMBER","TO_NUMERIC","TO_DOUBLE","TO_GEOGRAPHY","TO_GEOMETRY","TO_JSON","TO_OBJECT","TO_TIME","TIME","TO_TIMESTAMP","TO_TIMESTAMP_LTZ","TO_TIMESTAMP_NTZ","TO_TIMESTAMP_TZ","TO_VARIANT","TO_XML","TRANSLATE","TRIM","TRUNCATE","TRUNC","TRUNC","TRY_BASE64_DECODE_BINARY","TRY_BASE64_DECODE_STRING","TRY_CAST","TRY_HEX_DECODE_BINARY","TRY_HEX_DECODE_STRING","TRY_PARSE_JSON","TRY_TO_BINARY","TRY_TO_BOOLEAN","TRY_TO_DATE","TRY_TO_DECIMAL","TRY_TO_NUMBER","TRY_TO_NUMERIC","TRY_TO_DOUBLE","TRY_TO_GEOGRAPHY","TRY_TO_GEOMETRY","TRY_TO_TIME","TRY_TO_TIMESTAMP","TRY_TO_TIMESTAMP_LTZ","TRY_TO_TIMESTAMP_NTZ","TRY_TO_TIMESTAMP_TZ","TYPEOF","UNICODE","UNIFORM","UPPER","UUID_STRING","VALIDATE","VALIDATE_PIPE_LOAD","VAR_POP","VAR_SAMP","VARIANCE","VARIANCE_SAMP","VARIANCE_POP","WAREHOUSE_LOAD_HISTORY","WAREHOUSE_METERING_HISTORY","WIDTH_BUCKET","XMLGET","YEAR","YEAROFWEEK","YEAROFWEEKISO","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFWEEKISO","DAYOFYEAR","WEEK","WEEK","WEEKOFYEAR","WEEKISO","MONTH","QUARTER","ZEROIFNULL","ZIPF"]}),tK=v({all:["ACCOUNT","ALL","ALTER","AND","ANY","AS","BETWEEN","BY","CASE","CAST","CHECK","COLUMN","CONNECT","CONNECTION","CONSTRAINT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DATABASE","DELETE","DISTINCT","DROP","ELSE","EXISTS","FALSE","FOLLOWING","FOR","FROM","FULL","GRANT","GROUP","GSCLUSTER","HAVING","ILIKE","IN","INCREMENT","INNER","INSERT","INTERSECT","INTO","IS","ISSUE","JOIN","LATERAL","LEFT","LIKE","LOCALTIME","LOCALTIMESTAMP","MINUS","NATURAL","NOT","NULL","OF","ON","OR","ORDER","ORGANIZATION","QUALIFY","REGEXP","REVOKE","RIGHT","RLIKE","ROW","ROWS","SAMPLE","SCHEMA","SELECT","SET","SOME","START","TABLE","TABLESAMPLE","THEN","TO","TRIGGER","TRUE","TRY_CAST","UNION","UNIQUE","UPDATE","USING","VALUES","VIEW","WHEN","WHENEVER","WHERE","WITH"]}),tz=A(["SELECT [ALL | DISTINCT]"]),tJ=A(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","QUALIFY","LIMIT","OFFSET","FETCH [FIRST | NEXT]","INSERT [OVERWRITE] [ALL INTO | INTO | ALL | FIRST]","{THEN | ELSE} INTO","VALUES","SET","CREATE [OR REPLACE] [SECURE] [RECURSIVE] VIEW [IF NOT EXISTS]","CREATE [OR REPLACE] [VOLATILE] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [LOCAL | GLOBAL] {TEMP|TEMPORARY} TABLE [IF NOT EXISTS]","CLUSTER BY","[WITH] {MASKING POLICY | TAG | ROW ACCESS POLICY}","COPY GRANTS","USING TEMPLATE","MERGE INTO","WHEN MATCHED [AND]","THEN {UPDATE SET | DELETE}","WHEN NOT MATCHED THEN INSERT"]),tq=A(["UPDATE","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","RENAME TO","SWAP WITH","[SUSPEND | RESUME] RECLUSTER","DROP CLUSTERING KEY","ADD [COLUMN]","RENAME COLUMN","{ALTER | MODIFY} [COLUMN]","DROP [COLUMN]","{ADD | ALTER | MODIFY | DROP} [CONSTRAINT]","RENAME CONSTRAINT","{ADD | DROP} SEARCH OPTIMIZATION","{SET | UNSET} TAG","{ADD | DROP} ROW ACCESS POLICY","DROP ALL ROW ACCESS POLICIES","{SET | DROP} DEFAULT","{SET | DROP} NOT NULL","[SET DATA] TYPE","[UNSET] COMMENT","{SET | UNSET} MASKING POLICY","TRUNCATE [TABLE] [IF EXISTS]","ALTER ACCOUNT","ALTER API INTEGRATION","ALTER CONNECTION","ALTER DATABASE","ALTER EXTERNAL TABLE","ALTER FAILOVER GROUP","ALTER FILE FORMAT","ALTER FUNCTION","ALTER INTEGRATION","ALTER MASKING POLICY","ALTER MATERIALIZED VIEW","ALTER NETWORK POLICY","ALTER NOTIFICATION INTEGRATION","ALTER PIPE","ALTER PROCEDURE","ALTER REPLICATION GROUP","ALTER RESOURCE MONITOR","ALTER ROLE","ALTER ROW ACCESS POLICY","ALTER SCHEMA","ALTER SECURITY INTEGRATION","ALTER SEQUENCE","ALTER SESSION","ALTER SESSION POLICY","ALTER SHARE","ALTER STAGE","ALTER STORAGE INTEGRATION","ALTER STREAM","ALTER TAG","ALTER TASK","ALTER USER","ALTER VIEW","ALTER WAREHOUSE","BEGIN","CALL","COMMIT","COPY INTO","CREATE ACCOUNT","CREATE API INTEGRATION","CREATE CONNECTION","CREATE DATABASE","CREATE EXTERNAL FUNCTION","CREATE EXTERNAL TABLE","CREATE FAILOVER GROUP","CREATE FILE FORMAT","CREATE FUNCTION","CREATE INTEGRATION","CREATE MANAGED ACCOUNT","CREATE MASKING POLICY","CREATE MATERIALIZED VIEW","CREATE NETWORK POLICY","CREATE NOTIFICATION INTEGRATION","CREATE PIPE","CREATE PROCEDURE","CREATE REPLICATION GROUP","CREATE RESOURCE MONITOR","CREATE ROLE","CREATE ROW ACCESS POLICY","CREATE SCHEMA","CREATE SECURITY INTEGRATION","CREATE SEQUENCE","CREATE SESSION POLICY","CREATE SHARE","CREATE STAGE","CREATE STORAGE INTEGRATION","CREATE STREAM","CREATE TAG","CREATE TASK","CREATE USER","CREATE WAREHOUSE","DELETE","DESCRIBE DATABASE","DESCRIBE EXTERNAL TABLE","DESCRIBE FILE FORMAT","DESCRIBE FUNCTION","DESCRIBE INTEGRATION","DESCRIBE MASKING POLICY","DESCRIBE MATERIALIZED VIEW","DESCRIBE NETWORK POLICY","DESCRIBE PIPE","DESCRIBE PROCEDURE","DESCRIBE RESULT","DESCRIBE ROW ACCESS POLICY","DESCRIBE SCHEMA","DESCRIBE SEQUENCE","DESCRIBE SESSION POLICY","DESCRIBE SHARE","DESCRIBE STAGE","DESCRIBE STREAM","DESCRIBE TABLE","DESCRIBE TASK","DESCRIBE TRANSACTION","DESCRIBE USER","DESCRIBE VIEW","DESCRIBE WAREHOUSE","DROP CONNECTION","DROP DATABASE","DROP EXTERNAL TABLE","DROP FAILOVER GROUP","DROP FILE FORMAT","DROP FUNCTION","DROP INTEGRATION","DROP MANAGED ACCOUNT","DROP MASKING POLICY","DROP MATERIALIZED VIEW","DROP NETWORK POLICY","DROP PIPE","DROP PROCEDURE","DROP REPLICATION GROUP","DROP RESOURCE MONITOR","DROP ROLE","DROP ROW ACCESS POLICY","DROP SCHEMA","DROP SEQUENCE","DROP SESSION POLICY","DROP SHARE","DROP STAGE","DROP STREAM","DROP TAG","DROP TASK","DROP USER","DROP VIEW","DROP WAREHOUSE","EXECUTE IMMEDIATE","EXECUTE TASK","EXPLAIN","GET","GRANT OWNERSHIP","GRANT ROLE","INSERT","LIST","MERGE","PUT","REMOVE","REVOKE ROLE","ROLLBACK","SHOW COLUMNS","SHOW CONNECTIONS","SHOW DATABASES","SHOW DATABASES IN FAILOVER GROUP","SHOW DATABASES IN REPLICATION GROUP","SHOW DELEGATED AUTHORIZATIONS","SHOW EXTERNAL FUNCTIONS","SHOW EXTERNAL TABLES","SHOW FAILOVER GROUPS","SHOW FILE FORMATS","SHOW FUNCTIONS","SHOW GLOBAL ACCOUNTS","SHOW GRANTS","SHOW INTEGRATIONS","SHOW LOCKS","SHOW MANAGED ACCOUNTS","SHOW MASKING POLICIES","SHOW MATERIALIZED VIEWS","SHOW NETWORK POLICIES","SHOW OBJECTS","SHOW ORGANIZATION ACCOUNTS","SHOW PARAMETERS","SHOW PIPES","SHOW PRIMARY KEYS","SHOW PROCEDURES","SHOW REGIONS","SHOW REPLICATION ACCOUNTS","SHOW REPLICATION DATABASES","SHOW REPLICATION GROUPS","SHOW RESOURCE MONITORS","SHOW ROLES","SHOW ROW ACCESS POLICIES","SHOW SCHEMAS","SHOW SEQUENCES","SHOW SESSION POLICIES","SHOW SHARES","SHOW SHARES IN FAILOVER GROUP","SHOW SHARES IN REPLICATION GROUP","SHOW STAGES","SHOW STREAMS","SHOW TABLES","SHOW TAGS","SHOW TASKS","SHOW TRANSACTIONS","SHOW USER FUNCTIONS","SHOW USERS","SHOW VARIABLES","SHOW VIEWS","SHOW WAREHOUSES","TRUNCATE MATERIALIZED VIEW","UNDROP DATABASE","UNDROP SCHEMA","UNDROP TABLE","UNDROP TAG","UNSET","USE DATABASE","USE ROLE","USE SCHEMA","USE SECONDARY ROLES","USE WAREHOUSE"]),tQ=A(["UNION [ALL]","MINUS","EXCEPT","INTERSECT"]),t0=A(["[INNER] JOIN","[NATURAL] {LEFT | RIGHT | FULL} [OUTER] JOIN","{CROSS | NATURAL} JOIN"]),t1=A(["{ROWS | RANGE} BETWEEN","ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]"]),t2={tokenizerOptions:{reservedSelect:tz,reservedClauses:[...tJ,...tq],reservedSetOperations:tQ,reservedJoins:t0,reservedPhrases:t1,reservedKeywords:tK,reservedFunctionNames:tX,stringTypes:["$$","''-qq-bs"],identTypes:['""-qq'],variableTypes:[{regex:"[$][1-9]\\d*"},{regex:"[$][_a-zA-Z][_a-zA-Z0-9$]*"}],extraParens:["[]"],identChars:{rest:"$"},lineCommentTypes:["--","//"],operators:["%","::","||",":","=>"]},formatOptions:{alwaysDenseOperators:[":","::"],onelineClauses:tq}},t4=e=>e.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&"),t6=/\s+/uy,t3=e=>RegExp(`(?:${e})`,"uy"),t8=e=>e.split("").map(e=>/ /gu.test(e)?"\\s+":`[${e.toUpperCase()}${e.toLowerCase()}]`).join(""),t5=e=>e+"(?:-"+e+")*",t7=({prefixes:e,requirePrefix:t})=>`(?:${e.map(t8).join("|")}${t?"":"|"})`,t9=e=>RegExp(`(?:${e.map(t4).join("|")}).*?(?=\r +t.version="2.30.1",B=ti,t.fn=t$,t.min=function(){var e=[].slice.call(arguments,0);return tl("isBefore",e)},t.max=function(){var e=[].slice.call(arguments,0);return tl("isAfter",e)},t.now=function(){return Date.now?Date.now():+new Date},t.utc=u,t.unix=function(e){return ti(1e3*e)},t.months=function(e,t){return tX(e,t,"months")},t.isDate=l,t.locale=ez,t.invalid=d,t.duration=tI,t.isMoment=I,t.weekdays=function(e,t,n){return tK(e,t,n,"weekdays")},t.parseZone=function(){return ti.apply(null,arguments).parseZone()},t.localeData=eq,t.isDuration=tu,t.monthsShort=function(e,t){return tX(e,t,"monthsShort")},t.weekdaysMin=function(e,t,n){return tK(e,t,n,"weekdaysMin")},t.defineLocale=eJ,t.updateLocale=function(e,t){if(null!=t){var n,r,o=eW;null!=eZ[e]&&null!=eZ[e].parentLocale?eZ[e].set(g(eZ[e]._config,t)):(null!=(r=eK(e))&&(o=r._config),t=g(o,t),null==r&&(t.abbr=e),(n=new v(t)).parentLocale=eZ[e],eZ[e]=n),ez(e)}else null!=eZ[e]&&(null!=eZ[e].parentLocale?(eZ[e]=eZ[e].parentLocale,e===ez()&&ez(e)):null!=eZ[e]&&delete eZ[e]);return eZ[e]},t.locales=function(){return k(eZ)},t.weekdaysShort=function(e,t,n){return tK(e,t,n,"weekdaysShort")},t.normalizeUnits=F,t.relativeTimeRounding=function(e){return void 0===e?nE:"function"==typeof e&&(nE=e,!0)},t.relativeTimeThreshold=function(e,t){return void 0!==nc[e]&&(void 0===t?nc[e]:(nc[e]=t,"s"===e&&(nc.ss=t-1),!0))},t.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},t.prototype=t$,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t}()},69654:function(e){var t;t=function(){function e(t,n,r){return this.id=++e.highestId,this.name=t,this.symbols=n,this.postprocess=r,this}function t(e,t,n,r){this.rule=e,this.dot=t,this.reference=n,this.data=[],this.wantedBy=r,this.isComplete=this.dot===e.symbols.length}function n(e,t){this.grammar=e,this.index=t,this.states=[],this.wants={},this.scannable=[],this.completed={}}function r(e,t){this.rules=e,this.start=t||this.rules[0].name;var n=this.byName={};this.rules.forEach(function(e){n.hasOwnProperty(e.name)||(n[e.name]=[]),n[e.name].push(e)})}function o(){this.reset("")}function i(e,t,i){if(e instanceof r)var a=e,i=t;else var a=r.fromCompiled(e,t);for(var s in this.grammar=a,this.options={keepHistory:!1,lexer:a.lexer||new o},i||{})this.options[s]=i[s];this.lexer=this.options.lexer,this.lexerState=void 0;var l=new n(a,0);this.table=[l],l.wants[a.start]=[],l.predict(a.start),l.process(),this.current=0}function a(e){var t=typeof e;if("string"===t)return e;if("object"===t){if(e.literal)return JSON.stringify(e.literal);if(e instanceof RegExp)return e.toString();if(e.type)return"%"+e.type;if(e.test)return"<"+String(e.test)+">";else throw Error("Unknown symbol type: "+e)}}return e.highestId=0,e.prototype.toString=function(e){var t=void 0===e?this.symbols.map(a).join(" "):this.symbols.slice(0,e).map(a).join(" ")+" ● "+this.symbols.slice(e).map(a).join(" ");return this.name+" → "+t},t.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},t.prototype.nextState=function(e){var n=new t(this.rule,this.dot+1,this.reference,this.wantedBy);return n.left=this,n.right=e,n.isComplete&&(n.data=n.build(),n.right=void 0),n},t.prototype.build=function(){var e=[],t=this;do e.push(t.right.data),t=t.left;while(t.left);return e.reverse(),e},t.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,i.fail))},n.prototype.process=function(e){for(var t=this.states,n=this.wants,r=this.completed,o=0;o0&&t.push(" ^ "+r+" more lines identical to this"),r=0,t.push(" "+a)),n=a}},i.prototype.getSymbolDisplay=function(e){return function(e){var t=typeof e;if("string"===t)return e;if("object"===t){if(e.literal)return JSON.stringify(e.literal);if(e instanceof RegExp)return"character matching "+e;if(e.type)return e.type+" token";if(e.test)return"token matching "+String(e.test);else throw Error("Unknown symbol type: "+e)}}(e)},i.prototype.buildFirstStateStack=function(e,t){if(-1!==t.indexOf(e))return null;if(0===e.wantedBy.length)return[e];var n=e.wantedBy[0],r=[e].concat(t),o=this.buildFirstStateStack(n,r);return null===o?null:[e].concat(o)},i.prototype.save=function(){var e=this.table[this.current];return e.lexerState=this.lexerState,e},i.prototype.restore=function(e){var t=e.index;this.current=t,this.table[t]=e,this.table.splice(t+1),this.lexerState=e.lexerState,this.results=this.finish()},i.prototype.rewind=function(e){if(!this.options.keepHistory)throw Error("set option `keepHistory` to enable rewinding");this.restore(this.table[e])},i.prototype.finish=function(){var e=[],t=this.grammar.start;return this.table[this.table.length-1].states.forEach(function(n){n.rule.name===t&&n.dot===n.rule.symbols.length&&0===n.reference&&n.data!==i.fail&&e.push(n)}),e.map(function(e){return e.data})},{Parser:i,Grammar:r,Rule:e}},e.exports?e.exports=t():this.nearley=t()},83454:function(e,t,n){"use strict";var r,o;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(o=n.g.process)?void 0:o.env)?n.g.process:n(77663)},6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(26466)}])},41468:function(e,t,n){"use strict";n.d(t,{R:function(){return u},p:function(){return c}});var r=n(85893),o=n(76212),i=n(62418),a=n(25519),s=n(65654),l=n(39332),E=n(67294);let c=(0,E.createContext)({mode:"light",scene:"",chatId:"",model:"",modelList:[],dbParam:void 0,dialogueList:[],agent:"",setAgent:()=>{},setModel:()=>{},setIsContract:()=>{},setIsMenuExpand:()=>{},setDbParam:()=>void 0,setMode:()=>void 0,history:[],setHistory:()=>{},docId:void 0,setDocId:()=>{},currentDialogInfo:{chat_scene:"",app_code:""},setCurrentDialogInfo:()=>{},adminList:[],refreshDialogList:()=>{}}),u=e=>{var t,n,u;let{children:T}=e,R=(0,l.useSearchParams)(),d=null!==(t=null==R?void 0:R.get("id"))&&void 0!==t?t:"",f=null!==(n=null==R?void 0:R.get("scene"))&&void 0!==n?n:"",A=null!==(u=null==R?void 0:R.get("db_param"))&&void 0!==u?u:"",[S,O]=(0,E.useState)(!1),[p,N]=(0,E.useState)(""),[I,h]=(0,E.useState)("chat_dashboard"!==f),[_,m]=(0,E.useState)(A),[C,L]=(0,E.useState)(""),[g,v]=(0,E.useState)([]),[P,y]=(0,E.useState)(),[D,M]=(0,E.useState)("light"),[b,U]=(0,E.useState)([]),[x,w]=(0,E.useState)({chat_scene:"",app_code:""}),{data:G=[]}=(0,s.Z)(async()=>{let[,e]=await (0,o.Vx)((0,o.Vw)());return null!=e?e:[]}),{run:F}=(0,s.Z)(async()=>{let[,e]=await (0,o.Vx)((0,o.WA)({role:"admin"}));return null!=e?e:[]},{onSuccess:e=>{U(e)},manual:!0});return(0,E.useEffect)(()=>{(0,i.n5)()&&F()},[F,(0,i.n5)()]),(0,E.useEffect)(()=>{M(function(){let e=localStorage.getItem(a.he);return e||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")}());try{let e=JSON.parse(localStorage.getItem("cur_dialog_info")||"");w(e)}catch(e){w({chat_scene:"",app_code:""})}},[]),(0,E.useEffect)(()=>{N(G[0])},[G,null==G?void 0:G.length]),(0,r.jsx)(c.Provider,{value:{isContract:S,isMenuExpand:I,scene:f,chatId:d,model:p,modelList:G,dbParam:_||A,agent:C,setAgent:L,mode:D,setMode:M,setModel:N,setIsContract:O,setIsMenuExpand:h,setDbParam:m,history:g,setHistory:v,docId:P,setDocId:y,currentDialogInfo:x,setCurrentDialogInfo:w,adminList:b},children:T})}},64371:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(36609),o=n(67421);r.ZP.use(o.Db).init({resources:{en:{translation:{chat_online:"chat Online",dialog_list:"Dialog List",delete_chat:"Delete Chat",delete_chat_confirm:"Are you sure you want to delete this chat?",input_tips:"Ask me anything, Shift + Enter newline",sent:"Sent",answer_again:"Answer again",feedback_tip:"Describe specific questions or better answers",thinking:"Thinking",stop_replying:"Stop replying",erase_memory:"Erase Memory",copy_nothing:"Content copied is empty",copy_success:"Copy success",copy_failed:"Copy failed",file_tip:"File cannot be changed after upload",assistant:"Platform Assistant",model_tip:"Model selection is not supported for the current application",temperature_tip:"The current application does not support temperature configuration",max_new_tokens_tip:"The current application does not support max_new_tokens configuration",extend_tip:"Extended configuration is not supported for the current application",Upload_Data_Successfully:"file uploaded successfully",Upload_Data_Failed:"file upload failed",Upload_Data:"Upload Data",Code_Editor:"Code Editor",Open_Code_Editor:"Open Code Editor",Export_Flow_Success:"Export flow success",Import_Flow_Success:"Import flow success",Import:"Import",Export:"Export",Import_Flow:"Import Flow",Export_Flow:"Export Flow",Select_File:"Select File",Save_After_Import:"Save after import",Export_File_Type:"File_Type",Export_File_Format:"File_Format",Yes:"Yes",No:"No",Please_Add_Nodes_First:"Please add nodes first",Add_Global_Variable_of_Flow:"Add global variable of flow",Add_Parameter:"Add Parameter",Higher_Order_Nodes:"Higher Order",All_Nodes:"All",Import_From_Template:"Import from template",Template_Description:"Description",Template_Name:"Template Name",Template_Label:"Label",Template_Action:"Action",Knowledge_Space:"Knowledge",space:"space",Vector:"Vector",Owner:"Owner",Count:"Count",File_type_Invalid:"The file type is invalid",Knowledge_Space_Config:"Space Config",Choose_a_Datasource_type:"Datasource type",Segmentation:"Segmentation",No_parameter:"No segementation parameter required.",Knowledge_Space_Name:"Knowledge Space Name",Please_input_the_name:"Please input the name",Please_input_the_owner:"Please input the owner",Please_select_file:"Please select one file",Description:"Description",Storage:"Storage",Domain:"Domain",Please_input_the_description:"Please input the description",Please_select_the_storage:"Please select the storage",Please_select_the_domain_type:"Please select the domain type",Next:"Next",the_name_can_only_contain:'the name can only contain numbers, letters, Chinese characters, "-" and "_"',Text:"Text","Fill your raw text":"Fill your raw text",URL:"URL",Fetch_the_content_of_a_URL:"Fetch the content of a URL",Document:"Document",Upload_a_document:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown, Zip",Name:"Name",Text_Source:"Text Source(Optional)",Please_input_the_text_source:"Please input the text source",Sync:"Sync",Back:"Back",Finish:"Finish",Web_Page_URL:"Web Page URL",Please_input_the_Web_Page_URL:"Please input the Web Page URL",Select_or_Drop_file:"Select or Drop file",Documents:"Documents",Chat:"Chat",Add_Datasource:"Add Datasource",View_Graph:"View Graph",Arguments:"Arguments",Type:"Type",Size:"Size",Last_Sync:"Last Sync",Status:"Status",Result:"Result",Details:"Details",Delete:"Delete",Operation:"Operation",Submit:"Submit",Chunks:"Chunks",Content:"Content",Meta_Data:"Meta Data",Please_select_a_file:"Please select a file",Please_input_the_text:"Please input the text",Embedding:"Embedding",topk:"topk",the_top_k_vectors:"the top k vectors based on similarity score",recall_score:"recall_score",Set_a_threshold_score:"Set a threshold score for the retrieval of similar vectors",recall_type:"recall_type",model:"model",A_model_used:"A model used to create vector representations of text or other data",Automatic:"Automatic",Process:"Process",Automatic_desc:"Automatically set segmentation and preprocessing rules.",chunk_size:"chunk_size",The_size_of_the_data_chunks:"The size of the data chunks used in processing",chunk_overlap:"chunk_overlap",The_amount_of_overlap:"The amount of overlap between adjacent data chunks",Prompt:"Prompt",scene:"scene",A_contextual_parameter:"A contextual parameter used to define the setting or environment in which the prompt is being used",template:"template",structure_or_format:"A pre-defined structure or format for the prompt, which can help ensure that the AI system generates responses that are consistent with the desired style or tone.",max_token:"max_token",max_iteration:"max_iteration",concurrency_limit:"concurrency_limit",The_maximum_number_of_tokens:"The maximum number of tokens or words allowed in a prompt",Theme:"Theme",Port:"Port",Username:"Username",Password:"Password",Remark:"Remark",Edit:"Edit",Database:"Database",Data_Source:"Data Center",Close_Sidebar:"Fold",Show_Sidebar:"UnFold",language:"Language",choose_model:"Please choose a model",data_center_desc:"DB-GPT also offers a user-friendly data center management interface for efficient data maintenance.",create_database:"Create Database",create_knowledge:"Create Knowledge",path:"Path",model_manage:"Models",stop_model_success:"Stop model success",create_model:"Create Model",model_select_tips:"Please select a model",language_select_tips:"Please select a language",submit:"Submit",close:"Close",start_model_success:"Start model success",download_model_tip:"Please download model first.",Plugins:"Plugins",try_again:"Try again",no_data:"No data",Open_Sidebar:"Unfold",verify:"Verify",cancel:"Cancel",Edit_Success:"Edit Success",Add:"Add",Add_Success:"Add Success",Error_Message:"Something Error",Please_Input:"Please Input",Prompt_Info_Scene:"Scene",Prompt_Info_Sub_Scene:"Sub Scene",Prompt_Info_Name:"Name",Prompt_Info_Content:"Content",Public:"Public",Private:"Private",Lowest:"Lowest",Missed:"Missed",Lost:"Lost",Incorrect:"Incorrect",Verbose:"Verbose",Best:"Best",Rating:"Rating",Q_A_Category:"Q&A Category",Q_A_Rating:"Q&A Rating",feed_back_desc:"0: No results\n1: Results exist, but they are irrelevant, the question is not understood\n2: Results exist, the question is understood, but it indicates that the question cannot be answered\n3: Results exist, the question is understood, and an answer is given, but the answer is incorrect\n4: Results exist, the question is understood, the answer is correct, but it is verbose and lacks a summary\n5: Results exist, the question is understood, the answer is correct, the reasoning is correct, and a summary is provided, concise and to the point\n",input_count:"Total input",input_unit:"characters",Click_Select:"Click&Select",Quick_Start:"Quick Start",Select_Plugins:"Select Plugins",Search:"Search",Update_From_Github:"Upload From Github",Reset:"Reset",Upload:"Upload",Market_Plugins:"Market Plugin",My_Plugins:"My Plugins",Del_Knowledge_Tips:"Do you want delete the Space",Del_Document_Tips:"Do you want delete the Document",Tips:"Tips",Limit_Upload_File_Count_Tips:"Only one file can be uploaded at a time",To_Plugin_Market:"Go to the Plugin Market",Summary:"Summary",stacked_column_chart:"Stacked Column",column_chart:"Column",percent_stacked_column_chart:"Percent Stacked Column",grouped_column_chart:"Grouped Column",time_column:"Time Column",pie_chart:"Pie",line_chart:"Line",area_chart:"Area",stacked_area_chart:"Stacked Area",scatter_plot:"Scatter",bubble_chart:"Bubble",stacked_bar_chart:"Stacked Bar",bar_chart:"Bar",percent_stacked_bar_chart:"Percent Stacked Bar",grouped_bar_chart:"Grouped Bar",water_fall_chart:"Waterfall",table:"Table",multi_line_chart:"Multi Line",multi_measure_column_chart:"Multi Measure Column",multi_measure_line_chart:"Multi Measure Line",Advices:"Advices",Retry:"Retry",Load_more:"load more",new_chat:"New Chat",choice_agent_tip:"Please choose an agent",no_context_tip:"Please enter your question",Terminal:"Terminal",used_apps:"Used Apps",app_in_mind:"Don't have an app in mind? to",explore:"Explore",Discover_more:"Discove more",sdk_insert:"SDK Insert",my_apps:"My Apps",awel_flow:"AWEL Flow",save:"Save",add_node:"Add Node",no_node:"No Node",connect_warning:"Nodes cannot be connected",flow_modal_title:"Save Flow",flow_name:"Flow Name",flow_description:"Flow Description",flow_name_required:"Please enter the flow name",flow_description_required:"Please enter the flow description",save_flow_success:"Save flow success",delete_flow_confirm:"Are you sure you want to delete this flow?",related_nodes:"Related Nodes",add_resource:"Add Resource",team_modal:"Work Modal",App:"App",resource_name:"Resource Name",resource_type:"Resource Type",resource_value:"Value",resource_dynamic:"Dynamic",Please_input_the_work_modal:"Please select the work modal",available_resources:" Available Resources",edit_new_applications:"Edit new applications",collect:"Collect",collected:"Collected",create:"Create",Agents:"Agents",edit_application:"edit application",add_application:"add application",app_name:"App Name",input_app_name:"Please enter the application name",LLM_strategy:"LLM Strategy",LLM_strategy_value:"LLM Strategy Value",please_select_LLM_strategy:"Please select LLM strategy",please_select_LLM_strategy_value:"Please select LLM strategy value",resource:"Resource",operators:"Operators",Chinese:"Chinese",English:"English",docs:"Docs",apps:"All Apps",please_enter_the_keywords:"Please enter the keywords",input_tip:"Please select the model and enter the description to start quickly",create_app:"Create App",copy_url:"Click the Copy Share link",double_click_open:"Double click on Nail nail to open",construct:" Construct App",chat_online:"Chat",recommend_apps:"Recommend",all_apps:"All",latest_apps:"Latest",my_collected_apps:"Collected",collect_success:"Collect success",cancel_success:"Cancel success",published:"Published",unpublished:"Unpublished",start_chat:"Chat",native_app:"Native app",temperature:"Temperature",max_new_tokens:"Max output tokens",create_flow:"Create flow",update:"Update",native_type:"App type",refreshSuccess:"Refresh Success",Download:"Download",app_type_select:"Please select app type",please_select_param:"Please select parameters",please_select_model:"Please select model",please_input_temperature:"Please input the temperature value",please_input_max_new_tokens:"Please input the max new tokens",select_workflow:"Select workflow",please_select_workflow:"Please select workflow",recommended_questions:"Recommended questions",question:"Question",please_input_recommended_questions:"Please input recommendation question",is_effective:"Whether to enable",add_question:"Add question",update_success:"Update successful",update_failed:"Update failed",please_select_prompt:"Please select a prompt",details:"Details",choose:"Choose",please_choose:"Please choose",want_delete:"Are you sure delete it?",success:"Success",input_parameter:"Input parameter",output_structure:"Output structure",User_input:"User input",LLM_test:"LLM test",Output_verification:"Output verification",select_scene:"Please select a scene",select_type:"Please select a type",Please_complete_the_input_parameters:"Please complete the input parameters",Please_fill_in_the_user_input:"Please fill in the user input",help:"I can help you:",Refresh_status:"Refresh status",Recall_test:"Recall test",synchronization:"One-key synchronization",Synchronization_initiated:"Synchronization has been initiated, please wait",Edit_document:"Edit document",Document_name:"Document name",Correlation_problem:"Correlation problem",Add_problem:"Add problem",New_knowledge_base:"New knowledge base",yuque:"yuque document",Get_yuque_document:"Get the contents of the Sparrow document",document_url:"Document address",input_document_url:"Please enter the document address",Get_token:"Please obtain the team knowledge base token first",Reference_link:"Reference link",document_token:"Document token",input_document_token:"Please enter document token",input_question:"Please enter a question",detail:"Detail",Manual_entry:"Manual entry",Data_content:"Data content",Main_content:"Main content",Auxiliary_data:"Auxiliary data",enter_question_first:"Please enter the question first",Update_successfully:"Update successfully",Create_successfully:"Create successfully",Update_failure:"Update failure",Create_failure:"Create failure",View_details:"View details",All:"All",Please_input_prompt_name:"Please input prompt name",Copy_Btn:"Copy",Delete_Btn:"Delete",publish:"Publish",unpublish:"Unpublished",publish_desc:"Are you sure about releasing the application?",unPublish_desc:"Are you sure you want to unpublish this application?",published_success:"Published Success",dbgpts_community:"DBGPTS Community",community_dbgpts:"Community DBGPTS",my_dbgpts:"My DBGPTS",Refresh_dbgpts:"Refresh from the community Git repository",workflow:"Workflow",resources:"Resources",app:"App"}},zh:{translation:{dialog_list:"对话列表",delete_chat:"删除会话",delete_chat_confirm:"您确认要删除会话吗?",input_tips:"可以问我任何问题,shift + Enter 换行",sent:"发送",answer_again:"重新回答",feedback_tip:"描述一下具体问题或更优的答案",thinking:"正在思考中",stop_replying:"停止回复",erase_memory:"清除记忆",copy_success:"复制成功",copy_failed:"复制失败",copy_nothing:"内容复制为空",file_tip:"文件上传后无法更改",chat_online:"在线对话",assistant:"平台小助手",model_tip:"当前应用暂不支持模型选择",temperature_tip:"当前应用暂不支持温度配置",max_new_tokens_tip:"当前应用暂不支持max_new_tokens配置",extend_tip:"当前应用暂不支持拓展配置",Upload_Data_Successfully:"文件上传成功",Upload_Data_Failed:"文件上传失败",Upload_Data:"上传数据",Code_Editor:"代码编辑器",Open_Code_Editor:"打开代码编辑器",Export_Flow_Success:"导出工作流成功",Import_Flow_Success:"导入工作流成功",Import:"导入",Export:"导出",Import_Flow:"导入工作流",Export_Flow:"导出工作流",Select_File:"选择文件",Save_After_Import:"导入后保存",Export_File_Type:"文件类型",Export_File_Format:"文件格式",Yes:"是",No:"否",Please_Add_Nodes_First:"请先添加节点",Add_Global_Variable_of_Flow:"添加 Flow 全局变量",Add_Parameter:"添加参数",Higher_Order_Nodes:"高阶",All_Nodes:"所有",Import_From_Template:"导入模版",Template_Description:"描述",Template_Name:"模版名称",Template_Label:"标签",Template_Action:"操作",Knowledge_Space:"知识库",space:"知识库",Vector:"向量",Owner:"创建人",Count:"文档数",File_type_Invalid:"文件类型错误",Knowledge_Space_Config:"知识库配置",Choose_a_Datasource_type:"知识库类型",Segmentation:"分片",No_parameter:"不需要配置分片参数",Knowledge_Space_Name:"知识库名称",Please_input_the_name:"请输入名称",Please_input_the_owner:"请输入创建人",Please_select_file:"请至少选择一个文件",Description:"描述",Storage:"存储类型",Domain:"领域类型",Please_input_the_description:"请输入描述",Please_select_the_storage:"请选择存储类型",Please_select_the_domain_type:"请选择领域类型",Next:"下一步",the_name_can_only_contain:"名称只能包含数字、字母、中文字符、-或_",Text:"文本","Fill your raw text":"填写您的原始文本",URL:"网址",Fetch_the_content_of_a_URL:"获取 URL 的内容",Document:"文档",Upload_a_document:"上传文档,文档类型可以是PDF、CSV、Text、PowerPoint、Word、Markdown、Zip",Name:"名称",Text_Source:"文本来源(可选)",Please_input_the_text_source:"请输入文本来源",Sync:"同步",Back:"上一步",Finish:"完成",Web_Page_URL:"网页网址",Please_input_the_Web_Page_URL:"请输入网页网址",Select_or_Drop_file:"选择或拖拽文件",Documents:"文档",Chat:"对话",Add_Datasource:"添加数据源",View_Graph:"查看图谱",Arguments:"参数",Type:"类型",Size:"切片",Last_Sync:"上次同步时间",Status:"状态",Result:"结果",Details:"明细",Delete:"删除",Operation:"操作",Submit:"提交",close:"关闭",Chunks:"切片",Content:"内容",Meta_Data:"元数据",Please_select_a_file:"请上传一个文件",Please_input_the_text:"请输入文本",Embedding:"嵌入",topk:"TopK",the_top_k_vectors:"基于相似度得分的前 k 个向量",recall_score:"召回分数",Set_a_threshold_score:"设置相似向量检索的阈值分数",recall_type:"召回类型",model:"模型",A_model_used:"用于创建文本或其他数据的矢量表示的模型",Automatic:"自动切片",Process:"切片处理",Automatic_desc:"自动设置分割和预处理规则。",chunk_size:"块大小",The_size_of_the_data_chunks:"处理中使用的数据块的大小",chunk_overlap:"块重叠",The_amount_of_overlap:"相邻数据块之间的重叠量",scene:"场景",A_contextual_parameter:"用于定义使用提示的设置或环境的上下文参数",template:"模板",structure_or_format:"预定义的提示结构或格式,有助于确保人工智能系统生成与所需风格或语气一致的响应。",max_token:"最大令牌",max_iteration:"最大迭代",concurrency_limit:"并发限制",The_maximum_number_of_tokens:"提示中允许的最大标记或单词数",Theme:"主题",Port:"端口",Username:"用户名",Password:"密码",Remark:"备注",Edit:"编辑",Database:"数据库",Data_Source:"数据中心",Close_Sidebar:"收起",Show_Sidebar:"展开",language:"语言",choose_model:"请选择一个模型",data_center_desc:"DB-GPT支持数据库交互和基于文档的对话,它还提供了一个用户友好的数据中心管理界面。",create_database:"创建数据库",create_knowledge:"创建知识库",create_flow:"创建工作流",path:"路径",model_manage:"模型管理",stop_model_success:"模型停止成功",create_model:"创建模型",model_select_tips:"请选择一个模型",submit:"提交",start_model_success:"启动模型成功",download_model_tip:"请先下载模型!",Plugins:"插件列表",try_again:"刷新重试",no_data:"暂无数据",Prompt:"提示词",Open_Sidebar:"展开",verify:"确认",cancel:"取消",Edit_Success:"编辑成功",Add:"新增",Add_Success:"新增成功",Error_Message:"出错了",Please_Input:"请输入",Prompt_Info_Scene:"场景",Prompt_Info_Sub_Scene:"次级场景",Prompt_Info_Name:"名称",Prompt_Info_Content:"内容",Public:"公共",Private:"私有",Lowest:"渣渣",Missed:"没理解",Lost:"答不了",Incorrect:"答错了",Verbose:"较啰嗦",Best:"真棒",Rating:"评分",Q_A_Category:"问答类别",Q_A_Rating:"问答评分",feed_back_desc:"0: 无结果\n1: 有结果,但是在文不对题,没有理解问题\n2: 有结果,理解了问题,但是提示回答不了这个问题\n3: 有结果,理解了问题,并做出回答,但是回答的结果错误\n4: 有结果,理解了问题,回答结果正确,但是比较啰嗦,缺乏总结\n5: 有结果,理解了问题,回答结果正确,推理正确,并给出了总结,言简意赅\n",input_count:"共计输入",input_unit:"字",Click_Select:"点击选择",Quick_Start:"快速开始",Select_Plugins:"选择插件",Search:"搜索",Reset:"重置",Update_From_Github:"更新Github插件",Upload:"上传",Market_Plugins:"插件市场",My_Plugins:"我的插件",Del_Knowledge_Tips:"你确定删除该知识库吗",Del_Document_Tips:"你确定删除该文档吗",Tips:"提示",Limit_Upload_File_Count_Tips:"一次只能上传一个文件",To_Plugin_Market:"前往插件市场",Summary:"总结",stacked_column_chart:"堆叠柱状图",column_chart:"柱状图",percent_stacked_column_chart:"百分比堆叠柱状图",grouped_column_chart:"簇形柱状图",time_column:"簇形柱状图",pie_chart:"饼图",line_chart:"折线图",area_chart:"面积图",stacked_area_chart:"堆叠面积图",scatter_plot:"散点图",bubble_chart:"气泡图",stacked_bar_chart:"堆叠条形图",bar_chart:"条形图",percent_stacked_bar_chart:"百分比堆叠条形图",grouped_bar_chart:"簇形条形图",water_fall_chart:"瀑布图",table:"表格",multi_line_chart:"多折线图",multi_measure_column_chart:"多指标柱形图",multi_measure_line_chart:"多指标折线图",Advices:"自动推荐",Retry:"重试",Load_more:"加载更多",new_chat:"创建会话",choice_agent_tip:"请选择代理",no_context_tip:"请输入你的问题",Terminal:"终端",used_apps:"最近使用",app_in_mind:"没有心仪的应用?去",explore:"探索广场",Discover_more:"发现更多",sdk_insert:"SDK接入",my_apps:"我的应用",awel_flow:"AWEL 工作流",save:"保存",add_node:"添加节点",no_node:"没有可编排节点",connect_warning:"节点无法连接",flow_modal_title:"保存工作流",flow_name:"工作流名称",flow_description:"工作流描述",flow_name_required:"请输入工作流名称",flow_description_required:"请输入工作流描述",save_flow_success:"保存工作流成功",delete_flow_confirm:"确定删除该工作流吗?",related_nodes:"关联节点",language_select_tips:"请选择语言",add_resource:"添加资源",team_modal:"工作模式",App:"应用程序",resource:"资源",resource_name:"资源名",resource_type:"资源类型",resource_value:"参数",resource_dynamic:"动态",Please_input_the_work_modal:"请选择工作模式",available_resources:"可用资源",edit_new_applications:"编辑新的应用",collect:"收藏",collected:"已收藏",create:"创建",Agents:"智能体",edit_application:"编辑应用",add_application:"添加应用",app_name:"应用名称",input_app_name:"请输入应用名称",LLM_strategy:"模型策略",please_select_LLM_strategy:"请选择模型策略",LLM_strategy_value:"模型策略参数",please_select_LLM_strategy_value:"请选择模型策略参数",operators:"算子",Chinese:"中文",English:"英文",docs:"文档",apps:"全部",please_enter_the_keywords:"请输入关键词",input_tip:"请选择模型,输入描述快速开始",create_app:"创建应用",copy_url:"单击复制分享链接",double_click_open:"双击钉钉打开",construct:"应用管理",chat_online:"在线对话",recommend_apps:"热门推荐",all_apps:"全部应用",latest_apps:"最新应用",my_collected_apps:"我的收藏",collect_success:"收藏成功",cancel_success:"取消成功",published:"已发布",unpublished:"未发布",start_chat:"开始对话",native_app:"原生应用",native_type:"应用类型",temperature:"温度",max_new_tokens:"最大输出token",update:"更新",refreshSuccess:"刷新成功",Download:"下载",app_type_select:"请选择应用类型",please_select_param:"请选择参数",please_select_model:"请选择模型",please_input_temperature:"请输入temperature值",please_input_max_new_tokens:"请输入max_new_tokens值",select_workflow:"选择工作流",please_select_workflow:"请选择工作流",recommended_questions:"推荐问题",question:"问题",please_input_recommended_questions:"请输入推荐问题",is_effective:"是否生效",add_question:"添加问题",update_success:"更新成功",update_failed:"更新失败",please_select_prompt:"请选择一个提示词",details:"详情",choose:"选择",please_choose:"请先选择",want_delete:"你确定要删除吗?",success:"成功",input_parameter:"输入参数",output_structure:"输出结构",User_input:"用户输入",LLM_test:"LLM测试",Output_verification:"输出验证",select_scene:"请选择场景",select_type:"请选择类型",Please_complete_the_input_parameters:"请填写完整的输入参数",Please_fill_in_the_user_input:"请填写用户输入内容",help:"我可以帮您:",Refresh_status:"刷新状态",Recall_test:"召回测试",synchronization:"一键同步",Synchronization_initiated:"同步已发起,请稍后",Edit_document:"编辑文档",Document_name:"文档名",Correlation_problem:"关联问题",Add_problem:"添加问题",New_knowledge_base:"新增知识库",yuque:"语雀文档",Get_yuque_document:"获取语雀文档的内容",document_url:"文档地址",input_document_url:"请输入文档地址",Get_token:"请先获取团队知识库token,token获取",Reference_link:"参考链接",document_token:"文档token",input_document_token:"请输入文档token",input_question:"请输入问题",detail:"详情",Manual_entry:"手动录入",Data_content:"数据内容",Main_content:"主要内容",Auxiliary_data:"辅助数据",enter_question_first:"请先输入问题",Update_successfully:"更新成功",Create_successfully:"创建成功",Update_failure:"更新失败",Create_failure:"创建失败",View_details:"查看详情",All:"全部",Please_input_prompt_name:"请输入prompt名称",Copy_Btn:"复制",Delete_Btn:"删除",publish:"发布",unpublish:"取消发布",publish_desc:"您确认发布该应用吗?",unPublish_desc:"您确认取消发布该应用吗?",published_success:"发布成功",dbgpts_community:"DBGPTS社区",community_dbgpts:"社区DBGPTS",my_dbgpts:"我的DBGPTS",Refresh_dbgpts:"从社区Git仓库刷新",workflow:"工作流",resources:"资源",app:"应用"}}},lng:"en",interpolation:{escapeValue:!1}});var i=r.ZP},89546:function(e,t,n){"use strict";n.d(t,{A:function(){return o},Ir:function(){return s},Jr:function(){return i},Ty:function(){return l},zx:function(){return a}});var r=n(76212);let o=e=>(0,r.HT)("/api/v1/question/list",e),i=()=>(0,r.HT)("/api/v1/conv/feedback/reasons"),a=e=>(0,r.a4)("/api/v1/conv/feedback/add",e),s=e=>(0,r.a4)("/api/v1/conv/feedback/cancel",e),l=e=>(0,r.a4)("/api/v1/chat/topic/terminate?conv_id=".concat(e.conv_id,"&round_index=").concat(e.round_index),e)},76212:function(e,t,n){"use strict";n.d(t,{yY:function(){return tI},HT:function(){return tO},a4:function(){return tp},uO:function(){return tN},L5:function(){return l},H_:function(){return e_},zd:function(){return M},Jm:function(){return e0},Hy:function(){return Q},be:function(){return em},TT:function(){return W},Vx:function(){return tR},Ir:function(){return O.Ir},fU:function(){return z},zR:function(){return eA},mo:function(){return eK},kg:function(){return y},Nl:function(){return e6},$E:function(){return _},MX:function(){return eS},n3:function(){return ey},Wd:function(){return L},XK:function(){return eD},Jq:function(){return w},$j:function(){return et},Ug:function(){return m},XI:function(){return C},k7:function(){return Z},zx:function(){return O.zx},j8:function(){return u},GQ:function(){return A},BN:function(){return e1},yk:function(){return c},Vd:function(){return T},m9:function(){return f},Tu:function(){return eO},Eb:function(){return ej},Lu:function(){return eZ},$i:function(){return ed},gV:function(){return eP},iZ:function(){return eC},a$:function(){return N},Bw:function(){return ei},t$:function(){return ea},H4:function(){return eW},iP:function(){return eu},_Q:function(){return eI},Wm:function(){return g},Jr:function(){return O.Jr},_d:function(){return U},As:function(){return G},MJ:function(){return B},Wf:function(){return b},FT:function(){return eh},RR:function(){return Y},Kt:function(){return v},fZ:function(){return eM},tM:function(){return d},xA:function(){return en},RX:function(){return R},Q5:function(){return eJ},mB:function(){return e3},Vm:function(){return eN},bf:function(){return e2},xv:function(){return eU},lz:function(){return s},Vw:function(){return eT},gt:function(){return k},_Y:function(){return H},Gn:function(){return er},Jx:function(){return V},sW:function(){return eo},DM:function(){return eG},v6:function(){return eY},N6:function(){return eH},bC:function(){return ex},YU:function(){return eV},VC:function(){return eX},qn:function(){return ef},vD:function(){return eR},b_:function(){return eE},J5:function(){return es},mR:function(){return el},KS:function(){return ec},zE:function(){return eF},Al:function(){return ek},YP:function(){return eB},uf:function(){return ew},l_:function(){return e$},GU:function(){return q},pm:function(){return J},b1:function(){return eq},WA:function(){return td},UO:function(){return X},Y2:function(){return K},Pg:function(){return j},mW:function(){return e4},ks:function(){return F},iH:function(){return ep},ey:function(){return $},YK:function(){return P},vA:function(){return eb},Ty:function(){return O.Ty},KL:function(){return eg},Hx:function(){return eL},gD:function(){return ez},Fq:function(){return eQ},KT:function(){return E},p$:function(){return S},w_:function(){return D},ao:function(){return x},Fu:function(){return ee},h:function(){return I},L$:function(){return h},iG:function(){return ev}});var r,o=n(62418),i=n(25519),a=n(87066);let s=()=>tO("/api/v1/team-mode/list"),l=e=>tp("/api/v1/app/create",e),E=e=>tp("/api/v1/app/edit",e),c=e=>tp("/api/v1/app/list?page=".concat(e.page||1,"&page_size=").concat(e.page_size||12),e),u=()=>tO("/api/v1/agents/list",{}),T=()=>tO("/api/v1/llm-strategy/list"),R=e=>tO("/api/v1/app/resources/list?type=".concat(e.type)),d=()=>tO("/api/v1/native_scenes"),f=e=>tO("/api/v1/llm-strategy/value/list?type=".concat(e)),A=e=>tO("/api/v1/app/".concat(e,"/admins")),S=e=>tp("/api/v1/app/admins/update",e);var O=n(89546);let p=(0,o.n5)(),N=e=>tO("/api/v1/evaluate/datasets",e,{headers:{"user-id":p}}),I=e=>tp("/api/v1/evaluate/dataset/upload/content",e,{headers:{"user-id":p}}),h=e=>tp("/api/v1/evaluate/dataset/upload/file",e,{headers:{"user-id":p,"Content-Type":"multipart/form-data"}}),_=e=>tI("/api/v1/evaluate/dataset",e,{headers:{"user-id":p}}),m=e=>tO("/api/v1/evaluate/dataset/download",e,{headers:{"user-id":p,"Content-Type":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},responseType:"blob"}),C=e=>tO("/api/v1/evaluate/evaluation/result/download",e,{headers:{"user-id":p,"Content-Type":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},responseType:"blob"}),L=e=>tI("/api/v1/evaluate/evaluation",e,{headers:{"user-id":p}}),g=e=>tO("/api/v1/evaluate/evaluations",e,{headers:{"user-id":p}}),v=e=>tO("/api/v1/evaluate/metrics",e,{headers:{"user-id":p}}),P=e=>tO("/api/v1/evaluate/evaluation/detail/show",e,{headers:{"user-id":p}}),y=e=>tp("/api/v1/evaluate/start",e,{headers:{"user-id":p}}),D=e=>tp("/api/v1/evaluate/dataset/members/update",e,{headers:{"user-id":p}}),M=e=>tp("/api/v2/serve/awel/flows",e),b=e=>{let{page:t,page_size:n}=e;return tO("/api/v2/serve/awel/flows",{page:t,page_size:n})},U=e=>tO("/api/v2/serve/awel/flows/".concat(e)),x=(e,t)=>tN("/api/v2/serve/awel/flows/".concat(e),t),w=e=>tI("/api/v2/serve/awel/flows/".concat(e)),G=e=>tO("/api/v2/serve/awel/nodes",{tags:e}),F=e=>tp("/api/v2/serve/awel/nodes/refresh",e),H=e=>tp("/api/v2/serve/awel/flow/import",e),B=()=>tO("/api/v2/serve/awel/flow/templates"),Y=e=>tO("/api/v2/serve/awel/variables/keys",e),k=e=>tO("/api/v2/serve/awel/variables",e),V=e=>tp("/api/v2/serve/file/files/metadata/batch",e),$=(e,t)=>tp("/knowledge/".concat(e,"/document/list"),t),W=e=>tp("/knowledge/".concat(e.space_name,"/document/yuque/add"),e),Z=(e,t)=>tp("/knowledge/".concat(e,"/document/edit"),t),j=e=>tO("/knowledge/".concat(e,"/recommend_questions")),X=e=>tO("/knowledge/".concat(e,"/recall_retrievers")),K=(e,t)=>tp("/knowledge/".concat(t,"/recall_test"),e),z=e=>tp("/knowledge/questions/chunk/edit",e),J=e=>tO("/prompt/type/targets?prompt_type=".concat(e)),q=e=>tp("/prompt/template/load?prompt_type=".concat(e.prompt_type,"&target=").concat(e.target),e),Q=e=>tp("/prompt/add",e),ee=e=>tp("/prompt/update",e),et=e=>tp("/prompt/delete",e),en=e=>tp("/prompt/query_page?page=".concat(e.page,"&page_size=").concat(e.page_size),e),er=e=>tp("/prompt/response/verify",e),eo=e=>tp("/api/v1/chat/dialogue/new?chat_mode=".concat(e.chat_mode,"&model_name=").concat(e.model),e),ei=()=>tO("/api/v1/chat/db/list"),ea=()=>tO("/api/v1/chat/db/support/type"),es=e=>tp("/api/v1/chat/db/delete?db_name=".concat(e)),el=e=>tp("/api/v1/chat/db/edit",e),eE=e=>tp("/api/v1/chat/db/add",e),ec=e=>tp("/api/v1/chat/db/test/connect",e),eu=()=>tO("/api/v1/chat/dialogue/list"),eT=()=>tO("/api/v1/model/types"),eR=e=>tp("/api/v1/chat/mode/params/list?chat_mode=".concat(e)),ed=e=>tO("/api/v1/chat/dialogue/messages/history?con_uid=".concat(e)),ef=e=>{let{convUid:t,chatMode:n,data:r,config:o,model:i,userName:a,sysCode:s}=e;return tp("/api/v1/resource/file/upload?conv_uid=".concat(t,"&chat_mode=").concat(n,"&model_name=").concat(i,"&user_name=").concat(a,"&sys_code=").concat(s),r,{headers:{"Content-Type":"multipart/form-data"},...o})},eA=e=>tp("/api/v1/chat/dialogue/clear?con_uid=".concat(e)),eS=e=>tp("/api/v1/chat/dialogue/delete?con_uid=".concat(e)),eO=e=>tp("/knowledge/".concat(e,"/arguments"),{}),ep=(e,t)=>tp("/knowledge/".concat(e,"/argument/save"),t),eN=e=>tp("/knowledge/space/list",e),eI=(e,t)=>tp("/knowledge/".concat(e,"/document/list"),t),eh=(e,t)=>tp("/knowledge/".concat(e,"/graphvis"),t),e_=(e,t)=>tp("/knowledge/".concat(e,"/document/add"),t),em=e=>tp("/knowledge/space/add",e),eC=()=>tO("/knowledge/document/chunkstrategies"),eL=(e,t)=>tp("/knowledge/".concat(e,"/document/sync"),t),eg=(e,t)=>tp("/knowledge/".concat(e,"/document/sync_batch"),t),ev=(e,t)=>tp("/knowledge/".concat(e,"/document/upload"),t),eP=(e,t)=>tp("/knowledge/".concat(e,"/chunk/list"),t),ey=(e,t)=>tp("/knowledge/".concat(e,"/document/delete"),t),eD=e=>tp("/knowledge/space/delete",e),eM=()=>tO("/api/v1/worker/model/list"),eb=e=>tp("/api/v1/worker/model/start",e),eU=()=>tO("/api/v1/worker/model/params"),ex=e=>tp("/api/v1/agent/query",e),ew=e=>tp("/api/v1/serve/dbgpts/hub/query_page?page=".concat(null==e?void 0:e.page_index,"&page_size=").concat(null==e?void 0:e.page_size),e),eG=e=>tp("/api/v1/agent/hub/update",null!=e?e:{channel:"",url:"",branch:"",authorization:""}),eF=e=>tp("/api/v1/serve/dbgpts/hub/source/refresh",null!=e?e:{channel:"",url:"",branch:"",authorization:""}),eH=e=>tp("/api/v1/agent/my",void 0,{params:{user:e}}),eB=e=>tp("/api/v1/serve/dbgpts/my/query_page?page=".concat(null==e?void 0:e.page_index,"&page_size=").concat(null==e?void 0:e.page_size),e),eY=(e,t)=>tp("/api/v1/agent/install",void 0,{params:{plugin_name:e,user:t},timeout:6e4}),ek=(e,t)=>tp("/api/v1/serve/dbgpts/hub/install",e,{params:{user:t},timeout:6e4}),eV=(e,t)=>tp("/api/v1/agent/uninstall",void 0,{params:{plugin_name:e,user:t},timeout:6e4}),e$=(e,t)=>tp("/api/v1/serve/dbgpts/my/uninstall",void 0,{params:{...e,user:t},timeout:6e4}),eW=()=>tO("/api/v1/dbgpts/list"),eZ=()=>tO("/api/v1/feedback/select",void 0),ej=(e,t)=>tO("/api/v1/feedback/find?conv_uid=".concat(e,"&conv_index=").concat(t),void 0),eX=e=>{let{data:t,config:n}=e;return tp("/api/v1/feedback/commit",t,{headers:{"Content-Type":"application/json"},...n})},eK=e=>tp("/api/v1/app/collect",e),ez=e=>tp("/api/v1/app/uncollect",e),eJ=()=>tO("/api/v1/resource-type/list"),eq=e=>tp("/api/v1/app/publish",{app_code:e}),eQ=e=>tp("/api/v1/app/unpublish",{app_code:e}),e0=e=>tp("/api/v1/chat/db/add",e),e1=e=>tO("/api/v1/app/info",e),e2=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return tO("/api/v1/permission/db/list?db_name=".concat(e))},e4=e=>tp("/api/v1/app/hot/list",e),e6=e=>tp("/api/v1/app/remove",e),e3=()=>tO("/knowledge/space/config");var e8=n(26855);let{Axios:e5,AxiosError:e7,CanceledError:e9,isCancel:te,CancelToken:tt,VERSION:tn,all:tr,Cancel:to,isAxiosError:ti,spread:ta,toFormData:ts,AxiosHeaders:tl,HttpStatusCode:tE,formToJSON:tc,getAdapter:tu,mergeConfig:tT}=a.default,tR=(e,t)=>e.then(e=>{let{data:n}=e;if(!n)throw Error("Network Error!");if(!n.success){if("*"===t||n.err_code&&t&&t.includes(n.err_code));else{var r;e8.ZP.error({message:"Request error",description:null!==(r=null==n?void 0:n.err_msg)&&void 0!==r?r:"The interface is abnormal. Please try again later"})}}return[null,n.data,n,e]}).catch(e=>{let t=e.message;if(e instanceof e7)try{let{err_msg:n}=JSON.parse(e.request.response);n&&(t=n)}catch(e){}return e8.ZP.error({message:"Request error",description:t}),[e,null,null,null]}),td=e=>[];var tf=n(83454);let tA=a.default.create({baseURL:null!==(r=tf.env.API_BASE_URL)&&void 0!==r?r:""}),tS=["/db/add","/db/test/connect","/db/summary","/params/file/load","/chat/prepare","/model/start","/model/stop","/editor/sql/run","/sql/editor/submit","/editor/chart/run","/chart/editor/submit","/document/upload","/document/sync","/agent/install","/agent/uninstall","/personal/agent/upload"];tA.interceptors.request.use(e=>{let t=tS.some(t=>e.url&&e.url.indexOf(t)>=0);return e.timeout||(e.timeout=t?6e4:1e5),e.headers.set(i.gp,(0,o.n5)()),e});let tO=(e,t,n)=>tA.get(e,{params:t,...n}),tp=(e,t,n)=>tA.post(e,t,n),tN=(e,t,n)=>tA.put(e,t,n),tI=(e,t,n)=>tA.delete(e,{params:t,...n})},1051:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(85893);function o(){return(0,r.jsx)("svg",{className:"mr-1",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",children:(0,r.jsx)("path",{d:"M688 312c0 4.4-3.6 8-8 8H296c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8v48z m-392 88h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H296c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8z m376 116c119.3 0 216 96.7 216 216s-96.7 216-216 216-216-96.7-216-216 96.7-216 216-216z m107.5 323.5C808.2 810.8 824 772.6 824 732s-15.8-78.8-44.5-107.5S712.6 580 672 580s-78.8 15.8-107.5 44.5S520 691.4 520 732s15.8 78.8 44.5 107.5S631.4 884 672 884s78.8-15.8 107.5-44.5zM440 852c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H168c-17.7 0-32-14.3-32-32V108c0-17.7 14.3-32 32-32h640c17.7 0 32 14.3 32 32v384c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8V148H208v704h232z m232-76.06l-20.56 28.43c-1.5 2.1-3.9 3.3-6.5 3.3h-44.3c-6.5 0-10.3-7.4-6.4-12.7l45.75-63.3-45.75-63.3c-3.9-5.3-0.1-12.7 6.4-12.7h44.3c2.6 0 5 1.2 6.5 3.3L672 687.4l20.56-28.43c1.5-2.1 3.9-3.3 6.5-3.3h44.3c6.5 0 10.3 7.4 6.4 12.7l-45.75 63.3 45.75 63.3c3.9 5.3 0.1 12.7-6.4 12.7h-44.3c-2.6 0-5-1.2-6.5-3.3L672 775.94z",fill:"#d81e06"})})}},82353:function(e,t,n){"use strict";n.d(t,{O7:function(){return o},RD:function(){return s},In:function(){return i},zM:function(){return a},je:function(){return l},DL:function(){return E},si:function(){return c},FD:function(){return u},qw:function(){return T},s2:function(){return R},FE:function(){return d.Z},Rp:function(){return f},IN:function(){return A},tu:function(){return S},ig:function(){return O},ol:function(){return p},bn:function(){return N}});var r=n(85893),o=function(){return(0,r.jsxs)("svg",{className:"w-full h-full",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M416.9549913 314.32347826h297.42302609a119.56758261 119.56758261 0 0 1 119.56758261 119.56758261v179.19109565a196.71485217 196.71485217 0 0 1-196.71485217 196.71485218H416.9549913a119.56758261 119.56758261 0 0 1-119.5675826-119.56758261v-256.44521739A119.56758261 119.56758261 0 0 1 416.9549913 314.32347826z",fill:"#F5384A"}),(0,r.jsx)("path",{d:"M716.24793043 314.32347826H415.03165217a117.5373913 117.5373913 0 0 0-117.5373913 117.53739131v260.18504347c0 3.84667826 0 7.69335652 0.58768696 11.43318261a345.7202087 345.7202087 0 0 0 502.9531826-353.19986087A117.1634087 117.1634087 0 0 0 716.24793043 314.32347826z",fill:"#F54F5C"}),(0,r.jsx)("path",{d:"M318.91812174 594.54330435a345.7202087 345.7202087 0 0 0 420.73043478-249.07241739c2.35074783-9.18928696 4.22066087-18.432 5.82344348-27.67471305a117.10998261 117.10998261 0 0 0-29.22406957-3.63297391H415.03165217a117.5373913 117.5373913 0 0 0-117.5373913 117.5373913v156.43158261c6.9453913 2.35074783 14.10448696 4.54121739 21.42386087 6.41113044z",fill:"#F66C73"}),(0,r.jsx)("path",{d:"M630.17850435 314.32347826H415.03165217a117.5373913 117.5373913 0 0 0-117.5373913 117.53739131v48.08347826a346.14761739 346.14761739 0 0 0 332.68424348-165.62086957z",fill:"#F78989"}),(0,r.jsx)("path",{d:"M859.85725217 354.76702609h-25.53766956C802.26393043 200.52591304 669.92751304 84.59130435 512 84.59130435S221.73606957 200.52591304 189.68041739 354.76702609h-25.53766956a139.6557913 139.6557913 0 0 0-139.44208696 139.49551304v79.872a139.6557913 139.6557913 0 0 0 139.44208696 139.49551304h27.62128695a54.65488696 54.65488696 0 0 0 54.60146087-54.60146087V427.10594783C246.36549565 273.6128 365.50566957 148.7026087 512 148.7026087s265.63450435 124.9101913 265.63450435 278.40333913v159.3165913c0 116.09488696-74.79652174 219.47436522-181.38156522 251.42316522a30.23916522 30.23916522 0 0 0-3.09871304 1.06852174 60.15777391 60.15777391 0 1 0 18.05801739 61.06601739 23.50747826 23.50747826 0 0 0 3.36584348-0.69453913c93.12166957-27.88841739 166.63596522-98.67798261 203.01913043-187.79269565a54.92201739 54.92201739 0 0 0 14.90587826 2.13704347h27.62128696a139.6557913 139.6557913 0 0 0 139.44208696-139.49551304V494.26253913a139.6557913 139.6557913 0 0 0-139.7092174-139.49551304zM182.2541913 649.51874783h-18.11144347a75.43763478 75.43763478 0 0 1-75.33078261-75.3842087V494.26253913a75.43763478 75.43763478 0 0 1 75.33078261-75.3842087h18.11144347v230.6404174z m752.93384348-75.3842087a75.43763478 75.43763478 0 0 1-75.33078261 75.3842087h-18.11144347V418.87833043h18.11144347a75.43763478 75.43763478 0 0 1 75.33078261 75.3842087z",fill:"#444444"})]})},i=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1116 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M80.75 80.75m67.14674945 0l805.76099677 0q67.14674945 0 67.14674947 67.14674945l0 604.32074759q0 67.14674945-67.14674947 67.14674945l-805.76099677 0q-67.14674945 0-67.14674945-67.14674945l0-604.32074759q0-67.14674945 67.14674945-67.14674945Z",fill:"#36CFC9"}),(0,r.jsx)("path",{d:"M1020.80449568 685.07074759v67.14674945a67.14674945 67.14674945 0 0 1-67.14674946 67.14674945h-308.20358111l91.3195796 100.72012459-24.84429735 22.49416172L600.46584251 819.36424649h-100.72012459L389.62504831 943.25 364.78075097 920.08437108l91.31957961-100.72012459H147.89674945a67.14674945 67.14674945 0 0 1-67.14674945-67.14674945v-67.14674946z",fill:"#08979C"}),(0,r.jsx)("path",{d:"M416.48374894 282.19024919v335.7337481H315.76362434V282.19024919z m167.86687404 134.29349975v201.44024834h-100.72012459v-201.44024834z m167.86687406 67.14674945v134.2934989h-100.7201246v-134.2934989z m-225.94881252-302.16037379v141.34390829h201.4402492V272.11823698L819.36424649 341.27938889l-91.3195796 63.45367858V356.38740719h-239.71389641V215.04349975H315.76362434V181.4701246z",fill:"#B5F5EC"}),(0,r.jsx)("path",{d:"M550.77724783 752.21749704m-33.57337513 0a33.57337515 33.57337515 0 1 0 67.14675028 0 33.57337515 33.57337515 0 1 0-67.14675028 0Z",fill:"#FFFFFF"})]})},a=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M207.83 962c-5.4 0-10.88-1.17-16.08-3.67-18.55-8.89-26.39-31.13-17.5-49.69l77.22-161.26c8.9-18.58 31.14-26.41 49.7-17.51 18.55 8.89 26.39 31.13 17.5 49.69l-77.22 161.26c-6.4 13.38-19.74 21.18-33.62 21.18zM821.57 962c-13.88 0-27.21-7.8-33.62-21.17l-77.24-161.26c-8.9-18.55-1.06-40.8 17.5-49.69 18.57-8.87 40.8-1.07 49.7 17.51l77.24 161.26c8.9 18.55 1.06 40.8-17.5 49.69a37.266 37.266 0 0 1-16.08 3.66z",fill:"#12926E"}),(0,r.jsx)("path",{d:"M156.74 105.14h710.51c50.7 0 91.8 41.1 91.8 91.8v525.82c0 50.7-41.1 91.8-91.8 91.8H156.74c-50.7 0-91.8-41.1-91.8-91.8V196.93c0.01-50.69 41.11-91.79 91.8-91.79z",fill:"#39E2A0"}),(0,r.jsx)("path",{d:"M835.65 686.01h-614.7c-5.14 0-9.31-4.17-9.31-9.31 0-5.14 4.17-9.31 9.31-9.31h614.7c5.14 0 9.31 4.17 9.31 9.31 0 5.14-4.17 9.31-9.31 9.31z",fill:"#D3F8EA"}),(0,r.jsx)("path",{d:"M699.31 631.94H624.8V454.95c0-11.28 9.14-20.42 20.42-20.42h33.67c11.28 0 20.42 9.14 20.42 20.42v176.99zM846.22 631.94h-74.51V346.76c0-11.28 9.14-20.42 20.42-20.42h33.67c11.28 0 20.42 9.14 20.42 20.42v285.18zM289.51 631.94H215V417.69c0-11.28 9.14-20.42 20.42-20.42h33.67c11.28 0 20.42 9.14 20.42 20.42v214.25zM436.42 631.94h-74.51V495.77c0-11.28 9.14-20.42 20.42-20.42H416c11.28 0 20.42 9.14 20.42 20.42v136.17z",fill:"#FFFFFF"}),(0,r.jsx)("path",{d:"M715.4 173.76H308.6c-11.11 0-20.12-9.01-20.12-20.12V82.12c0-11.11 9.01-20.12 20.12-20.12h406.8c11.11 0 20.12 9.01 20.12 20.12v71.52c0.01 11.11-9 20.12-20.12 20.12z",fill:"#12926E"})]})},s=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M226.3 70.4C151.1 91.6 91.6 151.1 70.4 226.3L226.3 70.4z",fill:"#FFA65A"}),(0,r.jsx)("path",{d:"M277.9 62.2c-116.5 4.7-211 99.1-215.7 215.7L277.9 62.2z",fill:"#FFA659"}),(0,r.jsx)("path",{d:"M321.5 62H287C163.3 62 62 163.3 62 287v34.5L321.5 62z",fill:"#FFA558"}),(0,r.jsx)("path",{d:"M365 62h-78C163.3 62 62 163.3 62 287v78L365 62z",fill:"#FFA557"}),(0,r.jsx)("path",{d:"M408.4 62H287C163.3 62 62 163.3 62 287v121.4L408.4 62z",fill:"#FFA556"}),(0,r.jsx)("path",{d:"M451.8 62H287c-35.9 0-69.8 8.5-100 23.6L85.6 187C70.5 217.2 62 251.1 62 287v164.8L451.8 62z",fill:"#FFA555"}),(0,r.jsx)("path",{d:"M495.3 62H287c-12.2 0-24.2 1-35.9 2.9L64.9 251.1C63 262.8 62 274.8 62 287v208.3L495.3 62z",fill:"#FFA454"}),(0,r.jsx)("path",{d:"M62 538.7L538.7 62H297.5L62 297.5z",fill:"#FFA453"}),(0,r.jsx)("path",{d:"M62 582.1L582.1 62H340.9L62 340.9z",fill:"#FFA452"}),(0,r.jsx)("path",{d:"M62 625.6L625.6 62H384.3L62 384.3z",fill:"#FFA451"}),(0,r.jsx)("path",{d:"M62 427.8V669L669 62H427.8z",fill:"#FFA450"}),(0,r.jsx)("path",{d:"M62 471.2v241.2L712.4 62H471.2z",fill:"#FFA34F"}),(0,r.jsx)("path",{d:"M737 62H514.6L62 514.6V737c0 6.1 0.3 12.1 0.7 18.1L755.1 62.7c-6-0.4-12-0.7-18.1-0.7z",fill:"#FFA34E"}),(0,r.jsx)("path",{d:"M737 62H558.1L62 558.1V737c0 19.1 2.4 37.6 6.9 55.4L792.4 68.9C774.6 64.4 756.1 62 737 62z",fill:"#FFA34D"}),(0,r.jsx)("path",{d:"M737 62H601.5L62 601.5V737c0 31.1 6.4 60.8 17.9 87.8L824.8 79.9C797.8 68.4 768.1 62 737 62z",fill:"#FFA34C"}),(0,r.jsx)("path",{d:"M853.5 94.7C819.4 74 779.5 62 737 62h-92.1L62 644.9V737c0 42.5 12 82.4 32.7 116.5L853.5 94.7z",fill:"#FFA24B"}),(0,r.jsx)("path",{d:"M878.9 112.7C840.1 81.1 790.7 62 737 62h-48.6L62 688.4V737c0 53.7 19.1 103.1 50.7 141.9l766.2-766.2z",fill:"#FFA24A"}),(0,r.jsx)("path",{d:"M737 62h-5.2L62 731.8v5.2c0 64.7 27.7 123.2 71.7 164.3l767.6-767.6C860.2 89.7 801.7 62 737 62z",fill:"#FFA249"}),(0,r.jsx)("path",{d:"M64.8 772.4c9.8 61 44.3 114.1 92.8 148.4l763.2-763.2c-34.3-48.6-87.4-83.1-148.4-92.8L64.8 772.4z",fill:"#FFA248"}),(0,r.jsx)("path",{d:"M73.3 807.3c18.7 56.4 59.2 103 111.3 129.9l752.6-752.6C910.4 132.5 863.7 92 807.3 73.3l-734 734z",fill:"#FFA247"}),(0,r.jsx)("path",{d:"M86.1 838c26.5 52.3 72.9 93.1 129.1 112.2l735-735C931.1 159 890.3 112.6 838 86.1L86.1 838z",fill:"#FFA147"}),(0,r.jsx)("path",{d:"M102.4 865.2c34 48.7 86.7 83.5 147.5 93.7l709-709c-10.2-60.8-45-113.5-93.7-147.5L102.4 865.2z",fill:"#FFA146"}),(0,r.jsx)("path",{d:"M962 287c0-65.2-28.1-124.1-72.7-165.3L121.7 889.3C162.9 933.9 221.8 962 287 962h3.2L962 290.2V287z",fill:"#FFA145"}),(0,r.jsx)("path",{d:"M962 287c0-54.2-19.4-104-51.6-143L144 910.4c39 32.2 88.8 51.6 143 51.6h46.6L962 333.6V287z",fill:"#FFA144"}),(0,r.jsx)("path",{d:"M962 287c0-43.1-12.3-83.4-33.5-117.7L169.3 928.5C203.6 949.7 243.9 962 287 962h90.1L962 377.1V287z",fill:"#FFA143"}),(0,r.jsx)("path",{d:"M287 962h133.5L962 420.5V287c0-31.6-6.6-61.8-18.5-89.2L197.8 943.4c27.4 12 57.6 18.6 89.2 18.6z",fill:"#FFA042"}),(0,r.jsx)("path",{d:"M287 962h176.9L962 463.9V287c0-19.7-2.6-38.7-7.4-56.9L230.1 954.6c18.2 4.8 37.2 7.4 56.9 7.4z",fill:"#FFA041"}),(0,r.jsx)("path",{d:"M287 962h220.4L962 507.4V287c0-6.7-0.3-13.4-0.9-20L267 961.1c6.6 0.6 13.3 0.9 20 0.9z",fill:"#FFA040"}),(0,r.jsx)("path",{d:"M550.8 962L962 550.8V309.6L309.6 962z",fill:"#FFA03F"}),(0,r.jsx)("path",{d:"M594.2 962L962 594.2V353L353 962z",fill:"#FF9F3E"}),(0,r.jsx)("path",{d:"M637.7 962L962 637.7V396.4L396.4 962z",fill:"#FF9F3D"}),(0,r.jsx)("path",{d:"M681.1 962L962 681.1V439.9L439.9 962z",fill:"#FF9F3C"}),(0,r.jsx)("path",{d:"M724.5 962L962 724.5V483.3L483.3 962z",fill:"#FF9F3B"}),(0,r.jsx)("path",{d:"M962 737V526.7L526.7 962H737c11.4 0 22.5-0.9 33.5-2.5l189-189c1.6-11 2.5-22.1 2.5-33.5z",fill:"#FF9F3A"}),(0,r.jsx)("path",{d:"M962 737V570.2L570.2 962H737c34.3 0 66.9-7.8 96.1-21.7l107.2-107.2c13.9-29.2 21.7-61.8 21.7-96.1z",fill:"#FF9E39"}),(0,r.jsx)("path",{d:"M962 613.6L613.6 962H737c123.8 0 225-101.3 225-225V613.6z",fill:"#FF9E38"}),(0,r.jsx)("path",{d:"M962 657L657 962h80c123.8 0 225-101.3 225-225v-80z",fill:"#FF9E37"}),(0,r.jsx)("path",{d:"M962 700.5L700.5 962H737c123.8 0 225-101.3 225-225v-36.5z",fill:"#FF9E36"}),(0,r.jsx)("path",{d:"M961.9 744L744 961.9c118.2-3.7 214.2-99.7 217.9-217.9z",fill:"#FF9D35"}),(0,r.jsx)("path",{d:"M954.4 795L795 954.4c77.4-20.8 138.6-82 159.4-159.4z",fill:"#FF9D34"}),(0,r.jsx)("path",{d:"M736.3 622.9L523.5 747.3c-5.6 3.3-12.4 3.3-18 0.1L287.8 622.6c-12.2-7-12-24.6 0.3-31.4l212.8-116.7c5.3-2.9 11.8-3 17.2-0.1l217.7 117c12.3 6.7 12.6 24.4 0.5 31.5z",fill:"#FFD9C0"}),(0,r.jsx)("path",{d:"M736.3 523.9L523.5 648.3c-5.6 3.3-12.4 3.3-18 0.1L287.8 523.6c-12.2-7-12-24.6 0.3-31.4l212.8-116.7c5.3-2.9 11.8-3 17.2-0.1l217.7 117c12.3 6.7 12.6 24.4 0.5 31.5z",fill:"#FFE8D9"}),(0,r.jsx)("path",{d:"M736.3 424.9L523.5 549.3c-5.6 3.3-12.4 3.3-18 0.1L287.8 424.6c-12.2-7-12-24.6 0.3-31.4l212.8-116.7c5.3-2.9 11.8-3 17.2-0.1l217.7 117c12.3 6.7 12.6 24.4 0.5 31.5z",fill:"#FFF6F0"})]})},l=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M197.99492187 62v900h-34.18066406C124.57285156 962 92.76171875 930.18886719 92.76171875 890.94746094V133.05253906C92.76171875 93.81113281 124.57285156 62 163.81425781 62h34.18066406z m662.19082032 0C899.42714844 62 931.23828125 93.81113281 931.23828125 133.05253906v757.89492188c0 39.24140625-31.81113281 71.05253906-71.05253906 71.05253906H276.92070312V62h583.26503907z",fill:"#19A05F"}),(0,r.jsx)("path",{d:"M577.0390625 62l0.33222656 220.3875 111.2475586-108.80771484L800.19951172 284.36328125V62zM425.40224609 508.18554688h377.05078125v50.94404296h-377.05078125V508.18554688z m0 101.88720703h377.05078125v50.94316406h-377.05078125v-50.94316406z",fill:"#FFFFFF"})]})},E=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M701.95942066 37.1014489H250.80579673a142.46956521 142.46956521 0 0 0-142.46956522 142.46956523v664.85797174a142.46956521 142.46956521 0 0 0 142.46956522 142.46956523h522.38840654a142.46956521 142.46956521 0 0 0 142.46956522-142.46956523V274.55072501L701.95942066 37.1014489z",fill:"#53D39C"}),(0,r.jsx)("path",{d:"M444.2794663 392.18309566l69.64387283 117.72735109h2.70692174l69.97630108-117.70360654h82.4661337l-105.40373371 172.67311305 107.77822609 172.6968587h-83.98580869l-70.83111847-117.89356521h-2.70692174L443.09222066 737.57681196h-83.65338045l108.11065544-172.6968587-106.09233586-172.6968576h82.82230651z",fill:"#25BF79"}),(0,r.jsx)("path",{d:"M444.2794663 380.31063151l69.64387283 117.7273511h2.70692174l69.97630108-117.70360543h82.4661337l-105.40373371 172.67311305L671.44718803 725.70434783h-83.98580869l-70.83111847-117.89356522h-2.70692174L443.09222066 725.70434783h-83.65338045l108.11065544-172.6968576-106.09233586-172.69685872h82.82230651z",fill:"#FFFFFF"}),(0,r.jsx)("path",{d:"M701.95942066 37.1014489l160.27826087 178.08695653L915.66376849 274.55072501h-142.46956522a71.23478261 71.23478261 0 0 1-71.23478261-71.23478261V37.1014489z",fill:"#25BF79"})]})},c=function(){return(0,r.jsx)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:(0,r.jsx)("path",{d:"M688.51536688 447.75428656l-2.39993719 1.25996719a200.75473031 200.75473031 0 0 1-7.19981156 38.03900156l-47.33875688 166.43563031 110.45710031-59.63843437-47.03876531-114.41699625a108.2971575 108.2971575 0 0 1-6.47982937-31.67916844z m194.87488406-200.99472375l-96.35747063-58.55846344-354.77068687 217.43429251a70.01816156 70.01816156 0 0 0-32.51914688 59.57843624v193.97490844l-158.99582625-98.09742562V362.67651969a69.4181775 69.4181775 0 0 1 33.95910844-60.41841375l358.67058469-206.99456625 13.55964469 7.97979L544.75914031 41.26495719a62.75835281 62.75835281 0 0 0-65.63827687 0L140.54975094 246.75956281a69.89816531 69.89816531 0 0 0-32.81913844 59.75843063v410.98921218c-0.11999719 24.47935781 12.2996775 47.1587625 32.81913844 59.81842969l338.5711125 205.49460563c20.21946937 12.23967844 45.35880937 12.23967844 65.63827687 0l338.69110875-205.49460563c20.33946563-12.41967375 32.87913656-35.09907844 32.8791375-59.81842968v-410.98921219a69.77816813 69.77816813 0 0 0-32.93913562-59.75843063z m-89.51764969 477.88745532l-31.01918625-75.65801438-150.53604844 81.35786438-30.47919937 108.95713968-95.81748563 51.7186425 151.61602032-485.20726312 103.79727562-56.09852719 148.73609531 322.97152219-96.29747156 51.95863594z m0-1e-8",fill:"#0F6CF9"})})},u=function(){return(0,r.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",children:(0,r.jsx)("path",{d:"M593.054 120.217C483.656 148.739 402.91 248.212 402.91 366.546c0 140.582 113.962 254.544 254.544 254.544 118.334 0 217.808-80.746 246.328-190.144C909.17 457.12 912 484.23 912 512c0 220.914-179.086 400-400 400S112 732.914 112 512s179.086-400 400-400c27.77 0 54.88 2.83 81.054 8.217z"})})};function T(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",children:[(0,r.jsx)("path",{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-8zM296 400c-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-8H296zM672 516c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216z m107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5z",fill:"#1afa29"}),(0,r.jsx)("path",{d:"M761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9c-1.5-2.1-3.9-3.3-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3 0.1-12.7-6.4-12.7z",fill:"#1afa29"}),(0,r.jsx)("path",{d:"M440 852H208V148h560v344c0 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-8z",fill:"#1afa29"})]})}function R(){return(0,r.jsxs)("svg",{className:"mr-1",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",children:[(0,r.jsx)("path",{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-8zM296 400c-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-8H296zM672 516c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216z m107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5z",fill:"#87d068"}),(0,r.jsx)("path",{d:"M761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9c-1.5-2.1-3.9-3.3-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3 0.1-12.7-6.4-12.7z",fill:"#87d068"}),(0,r.jsx)("path",{d:"M440 852H208V148h560v344c0 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-8z",fill:"#87d068"})]})}var d=n(1051);function f(){return(0,r.jsxs)("svg",{className:"mr-1",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",children:[(0,r.jsx)("path",{d:"M296 256c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zM488 456v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8z",fill:"#2db7f5"}),(0,r.jsx)("path",{d:"M440 852H208V148h560v344c0 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-8z",fill:"#2db7f5"}),(0,r.jsx)("path",{d:"M544.1 736.4c1.8-34.5 16.2-66.8 40.8-91.4 26.2-26.2 62-41 99.1-41 37.4 0 72.6 14.6 99.1 41 3.2 3.2 6.3 6.6 9.2 10.1L769.2 673c-5.3 4.1-3.5 12.5 3 14.1l93.3 22.5c5 1.2 9.8-2.6 9.9-7.7l0.6-95.4c0-6.7-7.6-10.5-12.9-6.4l-20.3 15.8C805.4 569.6 748.1 540 684 540c-109.9 0-199.6 86.9-204 195.7-0.2 4.5 3.5 8.3 8 8.3h48.1c4.3 0 7.8-3.3 8-7.6zM880 744h-48.1c-4.3 0-7.8 3.3-8 7.6-1.8 34.5-16.2 66.8-40.8 91.4-26.2 26.2-62 41-99.1 41-37.4 0-72.6-14.6-99.1-41-3.2-3.2-6.3-6.6-9.2-10.1l23.1-17.9c5.3-4.1 3.5-12.5-3-14.1l-93.3-22.5c-5-1.2-9.8 2.6-9.9 7.7l-0.6 95.4c0 6.7 7.6 10.5 12.9 6.4l20.3-15.8C562.6 918.4 619.9 948 684 948c109.9 0 199.6-86.9 204-195.7 0.2-4.5-3.5-8.3-8-8.3z",fill:"#2db7f5"})]})}var A=function(){return(0,r.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",children:(0,r.jsx)("path",{d:"M513.89 950.72c-5.5 0-11-1.4-15.99-4.2L143.84 743c-9.85-5.73-15.99-16.17-15.99-27.64V308.58c0-11.33 6.14-21.91 15.99-27.64L497.9 77.43c9.85-5.73 22.14-5.73 31.99 0l354.06 203.52c9.85 5.73 15.99 16.17 15.99 27.64V715.5c0 11.33-6.14 21.91-15.99 27.64L529.89 946.52c-4.99 2.8-10.49 4.2-16 4.2zM191.83 697.15L513.89 882.2l322.07-185.05V326.92L513.89 141.87 191.83 326.92v370.23z m322.06-153.34c-5.37 0-10.88-1.4-15.99-4.33L244.29 393.91c-15.35-8.79-20.6-28.27-11.77-43.56 8.83-15.28 28.41-20.5 43.76-11.72l253.61 145.7c15.35 8.79 20.6 28.27 11.77 43.56-6.01 10.32-16.76 15.92-27.77 15.92z m0 291.52c-17.66 0-31.99-14.26-31.99-31.84V530.44L244.55 393.91s-0.13 0-0.13-0.13l-100.45-57.69c-15.35-8.79-20.6-28.27-11.77-43.56s28.41-20.5 43.76-11.72l354.06 203.52c9.85 5.73 15.99 16.17 15.99 27.64v291.39c-0.13 17.71-14.46 31.97-32.12 31.97z m0 115.39c-17.66 0-31.99-14.26-31.99-31.84V511.97c0-17.58 14.33-31.84 31.99-31.84s31.99 14.26 31.99 31.84v406.91c0 17.7-14.33 31.84-31.99 31.84z m0-406.91c-11 0-21.75-5.73-27.77-15.92-8.83-15.28-3.58-34.64 11.77-43.56l354.06-203.52c15.35-8.79 34.8-3.57 43.76 11.72 8.83 15.28 3.58 34.64-11.77 43.56L529.89 539.61c-4.99 2.93-10.49 4.2-16 4.2z"})})};function S(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",children:[(0,r.jsx)("path",{d:"M114.5856 951.04h298.24v-71.68H186.2656v-747.52h593.92v271.36h71.68v-343.04h-737.28v890.88z",fill:"#747690"}),(0,r.jsx)("path",{d:"M662.4256 311.04h-358.4v-71.68h358.4v71.68zM508.8256 490.24h-204.8v-71.68h204.8v71.68zM668.8256 554.24a168.96 168.96 0 1 0 0 337.92 168.96 168.96 0 0 0 0-337.92z m-240.64 168.96a240.64 240.64 0 1 1 481.28 0 240.64 240.64 0 0 1-481.28 0z",fill:"#747690"}),(0,r.jsx)("path",{d:"M629.76 588.8h71.68v131.4304l82.5856 41.3184-32.0512 64.1024-122.2144-61.0816V588.8z",fill:"#747690"})]})}var O=function(){return(0,r.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",children:(0,r.jsx)("path",{d:"M602.24 246.72a17.28 17.28 0 0 0-11.84-16.32l-42.88-14.4A90.56 90.56 0 0 1 490.24 160l-14.4-42.88a17.28 17.28 0 0 0-32 0L428.8 160a90.56 90.56 0 0 1-57.28 57.28l-42.88 14.4a17.28 17.28 0 0 0 0 32l42.88 14.4a90.56 90.56 0 0 1 57.28 57.28l14.4 42.88a17.28 17.28 0 0 0 32 0l14.4-42.88a90.56 90.56 0 0 1 57.28-57.28l42.88-14.4a17.28 17.28 0 0 0 12.48-16.96z m301.12 221.76l-48.32-16a101.44 101.44 0 0 1-64-64l-16-48.32a19.2 19.2 0 0 0-36.8 0l-16 48.32a101.44 101.44 0 0 1-64 64l-48.32 16a19.2 19.2 0 0 0 0 36.8l48.32 16a101.44 101.44 0 0 1 64 64l16 48.32a19.2 19.2 0 0 0 36.8 0l16-48.32a101.44 101.44 0 0 1 64-64l48.32-16a19.2 19.2 0 0 0 0-36.8z m-376.64 195.52l-64-20.8a131.84 131.84 0 0 1-83.52-83.52l-20.8-64a25.28 25.28 0 0 0-47.68 0l-20.8 64a131.84 131.84 0 0 1-82.24 83.52l-64 20.8a25.28 25.28 0 0 0 0 47.68l64 20.8a131.84 131.84 0 0 1 83.52 83.84l20.8 64a25.28 25.28 0 0 0 47.68 0l20.8-64a131.84 131.84 0 0 1 83.52-83.52l64-20.8a25.28 25.28 0 0 0 0-47.68z"})})},p=function(){return(0,r.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",children:(0,r.jsx)("path",{d:"M554.6 64h-85.4v128h85.4V64z m258.2 87.4L736 228.2l59.8 59.8 76.8-76.8-59.8-59.8z m-601.6 0l-59.8 59.8 76.8 76.8 59.8-59.8-76.8-76.8zM512 256c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z m448 213.4h-128v85.4h128v-85.4z m-768 0H64v85.4h128v-85.4zM795.8 736L736 795.8l76.8 76.8 59.8-59.8-76.8-76.8z m-567.6 0l-76.8 76.8 59.8 59.8 76.8-76.8-59.8-59.8z m326.4 96h-85.4v128h85.4v-128z"})})};function N(){return(0,r.jsx)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",children:(0,r.jsx)("path",{d:"M151.5 586.2c-5-24.2-7.5-49.2-7.5-74.2s2.5-50 7.5-74.2c4.8-23.6 12-46.8 21.4-69 9.2-21.8 20.6-42.8 33.9-62.5 13.2-19.5 28.3-37.8 45-54.5s35-31.8 54.5-45c19.7-13.3 40.7-24.7 62.5-33.9 22.2-9.4 45.4-16.6 69-21.4 48.5-9.9 99.9-9.9 148.4 0 23.6 4.8 46.8 12 69 21.4 21.8 9.2 42.8 20.6 62.5 33.9 19.5 13.2 37.8 28.3 54.5 45 1.4 1.4 2.8 2.8 4.1 4.2H688c-17.7 0-32 14.3-32 32s14.3 32 32 32h160c17.7 0 32-14.3 32-32V128c0-17.7-14.3-32-32-32s-32 14.3-32 32v77.1c-19.2-19-40.1-36.2-62.4-51.3-23.1-15.6-47.8-29-73.4-39.8-26.1-11-53.4-19.5-81.1-25.2-56.9-11.6-117.1-11.6-174.1 0-27.8 5.7-55.1 14.2-81.1 25.2-25.6 10.8-50.3 24.2-73.4 39.8-22.9 15.4-44.4 33.2-63.9 52.7s-37.3 41-52.7 63.9c-15.6 23.1-29 47.8-39.8 73.4-11 26.1-19.5 53.4-25.2 81.1C83 453.4 80 482.7 80 512s3 58.6 8.8 87c3.1 15.2 16.4 25.6 31.3 25.6 2.1 0 4.3-0.2 6.4-0.7 17.4-3.5 28.5-20.4 25-37.7zM935.2 425c-3.5-17.3-20.5-28.5-37.8-24.9-17.3 3.5-28.5 20.5-24.9 37.8 5 24.2 7.5 49.2 7.5 74.2s-2.5 50-7.5 74.2c-4.8 23.6-12 46.8-21.4 69-9.2 21.8-20.6 42.8-33.9 62.5-13.2 19.5-28.3 37.8-45 54.5s-35 31.8-54.5 45C698 830.6 677 842 655.2 851.2c-22.2 9.4-45.4 16.6-69 21.4-48.5 9.9-99.9 9.9-148.4 0-23.6-4.8-46.8-12-69-21.4-21.8-9.2-42.8-20.6-62.5-33.9-19.5-13.2-37.8-28.3-54.5-45-1.4-1.4-2.8-2.8-4.1-4.2H336c17.7 0 32-14.3 32-32s-14.3-32-32-32H176c-17.7 0-32 14.3-32 32v160c0 17.7 14.3 32 32 32s32-14.3 32-32V819c19.2 19 40.1 36.2 62.4 51.3 23.1 15.6 47.8 29 73.4 39.8 26.1 11 53.4 19.5 81.1 25.2 28.5 5.8 57.7 8.8 87 8.8s58.6-3 87-8.8c27.8-5.7 55-14.2 81.1-25.2 25.6-10.8 50.3-24.2 73.4-39.8 22.9-15.5 44.4-33.2 63.9-52.7s37.3-41 52.7-63.9c15.6-23.1 29-47.8 39.8-73.4 11-26.1 19.5-53.4 25.2-81.1 5.8-28.5 8.8-57.7 8.8-87 0.2-29.5-2.8-58.8-8.6-87.2z",fill:"#1875F0"})})}},32665:function(e,t,n){"use strict";function r(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return r}}),n(38754),n(67294),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41219:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return R},useSearchParams:function(){return d},usePathname:function(){return f},ServerInsertedHTMLContext:function(){return l.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return l.useServerInsertedHTML},useRouter:function(){return A},useParams:function(){return S},useSelectedLayoutSegments:function(){return O},useSelectedLayoutSegment:function(){return p},redirect:function(){return E.redirect},notFound:function(){return c.notFound}});let r=n(67294),o=n(27473),i=n(35802),a=n(32665),s=n(43512),l=n(98751),E=n(96885),c=n(86323),u=Symbol("internal for urlsearchparams readonly");function T(){return Error("ReadonlyURLSearchParams cannot be modified")}class R{[Symbol.iterator](){return this[u][Symbol.iterator]()}append(){throw T()}delete(){throw T()}set(){throw T()}sort(){throw T()}constructor(e){this[u]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e)}}function d(){(0,a.clientHookInServerComponentError)("useSearchParams");let e=(0,r.useContext)(i.SearchParamsContext),t=(0,r.useMemo)(()=>e?new R(e):null,[e]);return t}function f(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,r.useContext)(i.PathnameContext)}function A(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,r.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function S(){(0,a.clientHookInServerComponentError)("useParams");let e=(0,r.useContext)(o.GlobalLayoutRouterContext);return e?function e(t,n){void 0===n&&(n={});let r=t[1];for(let t of Object.values(r)){let r=t[0],o=Array.isArray(r),i=o?r[1]:r;!i||i.startsWith("__PAGE__")||(o&&(n[r[0]]=r[1]),n=e(t,n))}return n}(e.tree):null}function O(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,r.useContext)(o.LayoutRouterContext);return function e(t,n,r,o){let i;if(void 0===r&&(r=!0),void 0===o&&(o=[]),r)i=t[1][n];else{var a;let e=t[1];i=null!=(a=e.children)?a:Object.values(e)[0]}if(!i)return o;let l=i[0],E=(0,s.getSegmentValue)(l);return!E||E.startsWith("__PAGE__")?o:(o.push(E),e(i,n,!1,o))}(t,e)}function p(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=O(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86323:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{notFound:function(){return r},isNotFoundError:function(){return o}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function o(e){return(null==e?void 0:e.digest)===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96885:function(e,t,n){"use strict";var r,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return s},redirect:function(){return l},isRedirectError:function(){return E},getURLFromRedirectError:function(){return c},getRedirectTypeFromError:function(){return u}});let i=n(68214),a="NEXT_REDIRECT";function s(e,t){let n=Error(a);n.digest=a+";"+t+";"+e;let r=i.requestAsyncStorage.getStore();return r&&(n.mutableCookies=r.mutableCookies),n}function l(e,t){throw void 0===t&&(t="replace"),s(e,t)}function E(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,r]=e.digest.split(";",3);return t===a&&("replace"===n||"push"===n)&&"string"==typeof r}function c(e){return E(e)?e.digest.split(";",3)[2]:null}function u(e){if(!E(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(o=r||(r={})).push="push",o.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43512:function(e,t){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29382:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return o},ACTION_NAVIGATE:function(){return i},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return l},ACTION_FAST_REFRESH:function(){return E},ACTION_SERVER_ACTION:function(){return c}});let o="refresh",i="navigate",a="restore",s="server-patch",l="prefetch",E="fast-refresh",c="server-action";(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75476:function(e,t){"use strict";function n(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69873:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return O}});let r=n(38754),o=n(61757),i=o._(n(67294)),a=r._(n(68965)),s=n(38083),l=n(2478),E=n(76226);n(59941);let c=r._(n(31720)),u={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function T(e){return void 0!==e.default}function R(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function d(e,t,n,r,o,i,a){if(!e||e["data-loaded-src"]===t)return;e["data-loaded-src"]=t;let s="decode"in e?e.decode():Promise.resolve();s.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("blur"===n&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,o=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==o?void 0:o.current)&&o.current(e)}})}function f(e){let[t,n]=i.version.split("."),r=parseInt(t,10),o=parseInt(n,10);return r>18||18===r&&o>=3?{fetchPriority:e}:{fetchpriority:e}}let A=(0,i.forwardRef)((e,t)=>{let{imgAttributes:n,heightInt:r,widthInt:o,qualityInt:a,className:s,imgStyle:l,blurStyle:E,isLazy:c,fetchPriority:u,fill:T,placeholder:R,loading:A,srcString:S,config:O,unoptimized:p,loader:N,onLoadRef:I,onLoadingCompleteRef:h,setBlurComplete:_,setShowAltText:m,onLoad:C,onError:L,...g}=e;return A=c?"lazy":A,i.default.createElement("img",{...g,...f(u),loading:A,width:o,height:r,decoding:"async","data-nimg":T?"fill":"1",className:s,style:{...l,...E},...n,ref:(0,i.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(L&&(e.src=e.src),e.complete&&d(e,S,R,I,h,_,p))},[S,R,I,h,_,L,p,t]),onLoad:e=>{let t=e.currentTarget;d(t,S,R,I,h,_,p)},onError:e=>{m(!0),"blur"===R&&_(!0),L&&L(e)}})}),S=(0,i.forwardRef)((e,t)=>{var n;let r,o,{src:d,sizes:S,unoptimized:O=!1,priority:p=!1,loading:N,className:I,quality:h,width:_,height:m,fill:C,style:L,onLoad:g,onLoadingComplete:v,placeholder:P="empty",blurDataURL:y,fetchPriority:D,layout:M,objectFit:b,objectPosition:U,lazyBoundary:x,lazyRoot:w,...G}=e,F=(0,i.useContext)(E.ImageConfigContext),H=(0,i.useMemo)(()=>{let e=u||F||l.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[F]),B=G.loader||c.default;delete G.loader;let Y="__next_img_default"in B;if(Y){if("custom"===H.loader)throw Error('Image with src "'+d+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=B;B=t=>{let{config:n,...r}=t;return e(r)}}if(M){"fill"===M&&(C=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[M];e&&(L={...L,...e});let t={responsive:"100vw",fill:"100vw"}[M];t&&!S&&(S=t)}let k="",V=R(_),$=R(m);if("object"==typeof(n=d)&&(T(n)||void 0!==n.src)){let e=T(d)?d.default:d;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(r=e.blurWidth,o=e.blurHeight,y=y||e.blurDataURL,k=e.src,!C){if(V||$){if(V&&!$){let t=V/e.width;$=Math.round(e.height*t)}else if(!V&&$){let t=$/e.height;V=Math.round(e.width*t)}}else V=e.width,$=e.height}}let W=!p&&("lazy"===N||void 0===N);(!(d="string"==typeof d?d:k)||d.startsWith("data:")||d.startsWith("blob:"))&&(O=!0,W=!1),H.unoptimized&&(O=!0),Y&&d.endsWith(".svg")&&!H.dangerouslyAllowSVG&&(O=!0),p&&(D="high");let[Z,j]=(0,i.useState)(!1),[X,K]=(0,i.useState)(!1),z=R(h),J=Object.assign(C?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:b,objectPosition:U}:{},X?{}:{color:"transparent"},L),q="blur"===P&&y&&!Z?{backgroundSize:J.objectFit||"cover",backgroundPosition:J.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'+(0,s.getImageBlurSvg)({widthInt:V,heightInt:$,blurWidth:r,blurHeight:o,blurDataURL:y,objectFit:J.objectFit})+'")'}:{},Q=function(e){let{config:t,src:n,unoptimized:r,width:o,quality:i,sizes:a,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:E}=function(e,t,n){let{deviceSizes:r,allSizes:o}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:o,kind:"w"}}if("number"!=typeof t)return{widths:r,kind:"w"};let i=[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))];return{widths:i,kind:"x"}}(t,o,a),c=l.length-1;return{sizes:a||"w"!==E?a:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:i,width:e})+" "+("w"===E?e:r+1)+E).join(", "),src:s({config:t,src:n,quality:i,width:l[c]})}}({config:H,src:d,unoptimized:O,width:V,quality:z,sizes:S,loader:B}),ee=d,et=(0,i.useRef)(g);(0,i.useEffect)(()=>{et.current=g},[g]);let en=(0,i.useRef)(v);(0,i.useEffect)(()=>{en.current=v},[v]);let er={isLazy:W,imgAttributes:Q,heightInt:$,widthInt:V,qualityInt:z,className:I,imgStyle:J,blurStyle:q,loading:N,config:H,fetchPriority:D,fill:C,unoptimized:O,placeholder:P,loader:B,srcString:ee,onLoadRef:et,onLoadingCompleteRef:en,setBlurComplete:j,setShowAltText:K,...G};return i.default.createElement(i.default.Fragment,null,i.default.createElement(A,{...er,ref:t}),p?i.default.createElement(a.default,null,i.default.createElement("link",{key:"__nimg-"+Q.src+Q.srcSet+Q.sizes,rel:"preload",as:"image",href:Q.srcSet?void 0:Q.src,imageSrcSet:Q.srcSet,imageSizes:Q.sizes,crossOrigin:G.crossOrigin,referrerPolicy:G.referrerPolicy,...f(D)})):null)}),O=S;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9940:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return N}});let r=n(38754),o=r._(n(67294)),i=n(65722),a=n(65723),s=n(28904),l=n(95514),E=n(27521),c=n(44293),u=n(27473),T=n(81307),R=n(75476),d=n(66318),f=n(29382),A=new Set;function S(e,t,n,r,o,i){if(!i&&!(0,a.isLocalURL)(t))return;if(!r.bypassPrefetchedCheck){let o=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,i=t+"%"+n+"%"+o;if(A.has(i))return;A.add(i)}let s=i?e.prefetch(t,o):e.prefetch(t,n,r);Promise.resolve(s).catch(e=>{})}function O(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let p=o.default.forwardRef(function(e,t){let n,r;let{href:s,as:A,children:p,prefetch:N=null,passHref:I,replace:h,shallow:_,scroll:m,locale:C,onClick:L,onMouseEnter:g,onTouchStart:v,legacyBehavior:P=!1,...y}=e;n=p,P&&("string"==typeof n||"number"==typeof n)&&(n=o.default.createElement("a",null,n));let D=!1!==N,M=null===N?f.PrefetchKind.AUTO:f.PrefetchKind.FULL,b=o.default.useContext(c.RouterContext),U=o.default.useContext(u.AppRouterContext),x=null!=b?b:U,w=!b,{href:G,as:F}=o.default.useMemo(()=>{if(!b){let e=O(s);return{href:e,as:A?O(A):e}}let[e,t]=(0,i.resolveHref)(b,s,!0);return{href:e,as:A?(0,i.resolveHref)(b,A):t||e}},[b,s,A]),H=o.default.useRef(G),B=o.default.useRef(F);P&&(r=o.default.Children.only(n));let Y=P?r&&"object"==typeof r&&r.ref:t,[k,V,$]=(0,T.useIntersection)({rootMargin:"200px"}),W=o.default.useCallback(e=>{(B.current!==F||H.current!==G)&&($(),B.current=F,H.current=G),k(e),Y&&("function"==typeof Y?Y(e):"object"==typeof Y&&(Y.current=e))},[F,Y,G,$,k]);o.default.useEffect(()=>{x&&V&&D&&S(x,G,F,{locale:C},{kind:M},w)},[F,G,V,C,D,null==b?void 0:b.locale,x,w,M]);let Z={ref:W,onClick(e){P||"function"!=typeof L||L(e),P&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),x&&!e.defaultPrevented&&function(e,t,n,r,i,s,l,E,c,u){let{nodeName:T}=e.currentTarget,R="A"===T.toUpperCase();if(R&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let d=()=>{"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:s,locale:E,scroll:l}):t[i?"replace":"push"](r||n,{forceOptimisticNavigation:!u})};c?o.default.startTransition(d):d()}(e,x,G,F,h,_,m,C,w,D)},onMouseEnter(e){P||"function"!=typeof g||g(e),P&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),x&&(D||!w)&&S(x,G,F,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:M},w)},onTouchStart(e){P||"function"!=typeof v||v(e),P&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),x&&(D||!w)&&S(x,G,F,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:M},w)}};if((0,l.isAbsoluteUrl)(F))Z.href=F;else if(!P||I||"a"===r.type&&!("href"in r.props)){let e=void 0!==C?C:null==b?void 0:b.locale,t=(null==b?void 0:b.isLocaleDomain)&&(0,R.getDomainLocale)(F,e,null==b?void 0:b.locales,null==b?void 0:b.domainLocales);Z.href=t||(0,d.addBasePath)((0,E.addLocale)(F,e,null==b?void 0:b.defaultLocale))}return P?o.default.cloneElement(r,Z):o.default.createElement("a",{...y,...Z},n)}),N=p;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81307:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(67294),o=n(82997),i="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,E=l||!i,[c,u]=(0,r.useState)(!1),T=(0,r.useRef)(null),R=(0,r.useCallback)(e=>{T.current=e},[]);(0,r.useEffect)(()=>{if(i){if(E||c)return;let e=T.current;if(e&&e.tagName){let r=function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let o=new Map,i=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:i,elements:o},s.push(n),a.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&u(e),{root:null==t?void 0:t.current,rootMargin:n});return r}}else if(!c){let e=(0,o.requestIdleCallback)(()=>u(!0));return()=>(0,o.cancelIdleCallback)(e)}},[E,n,t,c,T.current]);let d=(0,r.useCallback)(()=>{u(!1)},[]);return[R,c,d]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38083:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:o,blurDataURL:i,objectFit:a}=e,s=r||t,l=o||n,E=i.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return s&&l?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 "+s+" "+l+"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+(r&&o?"1":"20")+"'/%3E"+E+"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='"+i+"'/%3E%3C/svg%3E":"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' preserveAspectRatio='"+("contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' x='0' y='0' height='100%25' width='100%25' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},31720:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:o}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(o||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},98751:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return a}});let r=n(61757),o=r._(n(67294)),i=o.default.createContext(null);function a(e){let t=(0,o.useContext)(i);t&&t(e)}},26466:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return en}});var r=n(85893),o=n(41468),i=n(82353),a=n(25519),s=n(7134),l=n(93967),E=n.n(l),c=n(67294),u=function(e){let{onlyAvatar:t=!1}=e,[n,o]=(0,c.useState)();return(0,c.useEffect)(()=>{try{var e;let t=JSON.parse(null!==(e=localStorage.getItem(a.C9))&&void 0!==e?e:"");o(t)}catch(e){return}},[]),(0,r.jsx)("div",{className:"flex flex-1 items-center justify-center",children:(0,r.jsx)("div",{className:E()("flex items-center group w-full",{"justify-center":t,"justify-between":!t}),children:(0,r.jsxs)("span",{className:"flex gap-2 items-center",children:[(0,r.jsx)(s.C,{src:null==n?void 0:n.avatar_url,className:"bg-gradient-to-tr from-[#31afff] to-[#1677ff] cursor-pointer",children:null==n?void 0:n.nick_name}),(0,r.jsx)("span",{className:E()("text-sm",{hidden:t}),children:null==n?void 0:n.nick_name})]})})})},T=n(16165),R=n(10524),d=n(84477),f=n(19944),A=n(83062),S=n(55241),O=n(30381),p=n.n(O);n(83839);var N=n(25675),I=n.n(N),h=n(41664),_=n.n(h),m=n(11163),C=n(67421),L=function(){let{isMenuExpand:e,setIsMenuExpand:t,mode:n,setMode:s,adminList:l}=(0,c.useContext)(o.p),{pathname:O}=(0,m.useRouter)(),{t:N,i18n:h}=(0,C.$G)(),[L,g]=(0,c.useState)("/logo_zh_latest.png"),v=(0,c.useMemo)(()=>{let{user_id:e}=JSON.parse(localStorage.getItem(a.C9)||"{}");return l.some(t=>t.user_id===e)},[l]),P=(0,c.useCallback)(()=>{t(!e)},[e,t]),y=(0,c.useCallback)(()=>{let e="light"===n?"dark":"light";s(e),localStorage.setItem(a.he,e)},[n,s]),D=(0,c.useCallback)(()=>{let e="en"===h.language?"zh":"en";h.changeLanguage(e),"zh"===e&&p().locale("zh-cn"),"en"===e&&p().locale("en"),localStorage.setItem(a.Yl,e)},[h]),M=(0,c.useMemo)(()=>{let t=[{key:"theme",name:N("Theme"),icon:"dark"===n?(0,r.jsx)(T.Z,{component:i.FD}):(0,r.jsx)(T.Z,{component:i.ol}),items:[{key:"light",label:(0,r.jsxs)("div",{className:"py-1 flex justify-between gap-8 ",children:[(0,r.jsxs)("span",{className:"flex gap-2 items-center",children:[(0,r.jsx)(I(),{src:"/pictures/theme_light.png",alt:"english",width:38,height:32}),(0,r.jsx)("span",{children:"Light"})]}),(0,r.jsx)("span",{className:E()({block:"light"===n,hidden:"light"!==n}),children:"✓"})]})},{key:"dark",label:(0,r.jsxs)("div",{className:"py-1 flex justify-between gap-8 ",children:[(0,r.jsxs)("span",{className:"flex gap-2 items-center",children:[(0,r.jsx)(I(),{src:"/pictures/theme_dark.png",alt:"english",width:38,height:32}),(0,r.jsx)("span",{children:"Dark"})]}),(0,r.jsx)("span",{className:E()({block:"dark"===n,hidden:"dark"!==n}),children:"✓"})]})}],onClick:y,onSelect:e=>{let{key:t}=e;n!==t&&(s(t),localStorage.setItem(a.he,t))},defaultSelectedKeys:[n],placement:"topLeft"},{key:"language",name:N("language"),icon:(0,r.jsx)(R.Z,{}),items:[{key:"en",label:(0,r.jsxs)("div",{className:"py-1 flex justify-between gap-8 ",children:[(0,r.jsxs)("span",{className:"flex gap-2",children:[(0,r.jsx)(I(),{src:"/icons/english.png",alt:"english",width:21,height:21}),(0,r.jsx)("span",{children:"English"})]}),(0,r.jsx)("span",{className:E()({block:"en"===h.language,hidden:"en"!==h.language}),children:"✓"})]})},{key:"zh",label:(0,r.jsxs)("div",{className:"py-1 flex justify-between gap-8 ",children:[(0,r.jsxs)("span",{className:"flex gap-2",children:[(0,r.jsx)(I(),{src:"/icons/zh.png",alt:"english",width:21,height:21}),(0,r.jsx)("span",{children:"简体中文"})]}),(0,r.jsx)("span",{className:E()({block:"zh"===h.language,hidden:"zh"!==h.language}),children:"✓"})]})}],onSelect:e=>{let{key:t}=e;h.language!==t&&(h.changeLanguage(t),"zh"===t&&p().locale("zh-cn"),"en"===t&&p().locale("en"),localStorage.setItem(a.Yl,t))},onClick:D,defaultSelectedKeys:[h.language]},{key:"fold",name:N(e?"Close_Sidebar":"Show_Sidebar"),icon:e?(0,r.jsx)(d.Z,{}):(0,r.jsx)(f.Z,{}),onClick:P,noDropdownItem:!0}];return t},[N,n,y,h,D,e,P,s]),b=(0,c.useMemo)(()=>{let e=[{key:"chat",name:N("chat_online"),icon:(0,r.jsx)(I(),{src:"/chat"===O?"/pictures/chat_active.png":"/pictures/chat.png",alt:"chat_image",width:40,height:40},"image_chat"),path:"/chat",isActive:O.startsWith("/chat")},{key:"explore",name:N("explore"),isActive:"/"===O,icon:(0,r.jsx)(I(),{src:"/"===O?"/pictures/explore_active.png":"/pictures/explore.png",alt:"construct_image",width:40,height:40},"image_explore"),path:"/"},{key:"construct",name:N("construct"),isActive:O.startsWith("/construct"),icon:(0,r.jsx)(I(),{src:O.startsWith("/construct")?"/pictures/app_active.png":"/pictures/app.png",alt:"construct_image",width:40,height:40},"image_construct"),path:"/construct/app"}];return v&&e.push({key:"evaluation",name:"场景评测",icon:(0,r.jsx)(I(),{src:O.startsWith("/evaluation")?"/pictures/app_active.png":"/pictures/app.png",alt:"construct_image",width:40,height:40},"image_construct"),path:"/evaluation",isActive:"/evaluation"===O}),e},[N,O,v]);return((0,c.useEffect)(()=>{let e=h.language;"zh"===e&&p().locale("zh-cn"),"en"===e&&p().locale("en")},[]),(0,c.useEffect)(()=>{g("dark"===n?"/logo_s_latest.png":"/logo_zh_latest.png")},[n]),e)?(0,r.jsxs)("div",{className:"flex flex-col justify-between h-screen px-4 pt-4 bg-bar dark:bg-[#232734] animate-fade animate-duration-300",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(_(),{href:"/",className:"flex items-center justify-center p-2 pb-4",children:(0,r.jsx)(I(),{src:e?L:"/LOGO_SMALL.png",alt:"DB-GPT",width:180,height:40})}),(0,r.jsx)("div",{className:"flex flex-col gap-4",children:b.map(e=>(0,r.jsxs)(_(),{href:e.path,className:E()("flex items-center w-full h-12 px-4 cursor-pointer hover:bg-[#F1F5F9] dark:hover:bg-theme-dark hover:rounded-xl",{"bg-white rounded-xl dark:bg-black":e.isActive}),children:[(0,r.jsx)("div",{className:"mr-3",children:e.icon}),(0,r.jsx)("span",{className:"text-sm",children:N(e.name)})]},e.key))})]}),(0,r.jsxs)("div",{className:"pt-4",children:[(0,r.jsx)("span",{className:E()("flex items-center w-full h-12 px-4 bg-[#F1F5F9] dark:bg-theme-dark rounded-xl"),children:(0,r.jsx)("div",{className:"mr-3 w-full",children:(0,r.jsx)(u,{})})}),(0,r.jsx)("div",{className:"flex items-center justify-around py-4 mt-2 border-t border-dashed border-gray-200 dark:border-gray-700",children:M.map(e=>(0,r.jsx)("div",{children:(0,r.jsx)(S.Z,{content:e.name,children:(0,r.jsx)("div",{className:"flex-1 flex items-center justify-center cursor-pointer text-xl",onClick:e.onClick,children:e.icon})})},e.key))})]})]}):(0,r.jsxs)("div",{className:"flex flex-col justify-between pt-4 h-screen bg-bar dark:bg-[#232734] animate-fade animate-duration-300",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(_(),{href:"/",className:"flex justify-center items-center pb-4",children:(0,r.jsx)(I(),{src:e?L:"/LOGO_SMALL.png",alt:"DB-GPT",width:40,height:40})}),(0,r.jsx)("div",{className:"flex flex-col gap-4 items-center",children:b.map(e=>(0,r.jsx)(_(),{className:"h-12 flex items-center",href:e.path,children:null==e?void 0:e.icon},e.key))})]}),(0,r.jsxs)("div",{className:"py-4",children:[(0,r.jsx)(u,{onlyAvatar:!0}),M.filter(e=>e.noDropdownItem).map(e=>(0,r.jsx)(A.Z,{title:e.name,placement:"right",children:(0,r.jsx)("div",{className:"flex items-center justify-center mx-auto rounded w-14 h-14 text-xl hover:bg-[#F1F5F9] dark:hover:bg-theme-dark transition-colors cursor-pointer ".concat(""),onClick:e.onClick,children:e.icon})},e.key))]})]})},g=n(93045),v=n(14079),P=n(12652),y=()=>(0,r.jsx)(P.Z.Group,{trigger:"hover",icon:(0,r.jsx)(g.Z,{}),children:(0,r.jsx)(P.Z,{icon:(0,r.jsx)(v.Z,{}),href:"http://docs.dbgpt.cn",target:"_blank",tooltip:"Doucuments"})}),D=n(25446),M=n(67164),b=n(2790),U=n(1393),x=n(25976),w=n(33083),G=n(372),F=n(69594),H=n(84898),B=n(57),Y=n(10274);let k=(e,t)=>new Y.C(e).setAlpha(t).toRgbString(),V=(e,t)=>{let n=new Y.C(e);return n.lighten(t).toHexString()},$=e=>{let t=(0,H.R_)(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},W=(e,t)=>{let n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:k(r,.85),colorTextSecondary:k(r,.65),colorTextTertiary:k(r,.45),colorTextQuaternary:k(r,.25),colorFill:k(r,.18),colorFillSecondary:k(r,.12),colorFillTertiary:k(r,.08),colorFillQuaternary:k(r,.04),colorBgElevated:V(n,12),colorBgContainer:V(n,8),colorBgLayout:V(n,0),colorBgSpotlight:V(n,26),colorBgBlur:k(r,.04),colorBorder:V(n,26),colorBorderSecondary:V(n,19)}};var Z={defaultSeed:w.u_.token,useToken:function(){let[e,t,n]=(0,x.ZP)();return{theme:e,token:t,hashId:n}},defaultAlgorithm:M.Z,darkAlgorithm:(e,t)=>{let n=Object.keys(b.M).map(t=>{let n=(0,H.R_)(e[t],{theme:"dark"});return Array(10).fill(1).reduce((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{}),r=null!=t?t:(0,M.Z)(e);return Object.assign(Object.assign(Object.assign({},r),n),(0,B.Z)(e,{generateColorPalettes:$,generateNeutralColorPalettes:W}))},compactAlgorithm:(e,t)=>{let n=null!=t?t:(0,M.Z)(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){let{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}(null!=t?t:e)),(0,F.Z)(r)),{controlHeight:o}),(0,G.Z)(Object.assign(Object.assign({},n),{controlHeight:o})))},getDesignToken:e=>{let t=(null==e?void 0:e.algorithm)?(0,D.jG)(e.algorithm):(0,D.jG)(M.Z),n=Object.assign(Object.assign({},b.Z),null==e?void 0:e.token);return(0,D.t2)(n,{override:null==e?void 0:e.token},t,U.Z)},defaultConfig:w.u_,_internalContext:w.Mj},j=n(28459),X=n(31418),K=n(18253),z=n(82925),J=n(9008),q=n.n(J);n(64371),n(90833),n(80864);let Q=(e,t)=>({...Z.darkAlgorithm(e,t),colorBgBase:"#232734",colorBorder:"#828282",colorBgContainer:"#232734"});function ee(e){let{children:t}=e,{mode:n}=(0,c.useContext)(o.p),{i18n:i}=(0,C.$G)();return(0,c.useEffect)(()=>{if(n){var e,t,r,o,i,a;null===(e=document.body)||void 0===e||null===(t=e.classList)||void 0===t||t.add(n),"light"===n?null===(r=document.body)||void 0===r||null===(o=r.classList)||void 0===o||o.remove("dark"):null===(i=document.body)||void 0===i||null===(a=i.classList)||void 0===a||a.remove("light")}},[n]),(0,c.useEffect)(()=>{var e;null===(e=i.changeLanguage)||void 0===e||e.call(i,window.localStorage.getItem(a.Yl)||"zh")},[i]),(0,r.jsx)("div",{children:t})}function et(e){let{children:t}=e,{isMenuExpand:n,mode:i}=(0,c.useContext)(o.p),{i18n:s}=(0,C.$G)(),[l,u]=(0,c.useState)(!1),T=(0,m.useRouter)(),R=async()=>{u(!1);let e={user_channel:"dbgpt",user_no:"001",nick_name:"dbgpt"};e&&(localStorage.setItem(a.C9,JSON.stringify(e)),localStorage.setItem(a.Sc,Date.now().toString()),u(!0))};return((0,c.useEffect)(()=>{R()},[]),l)?(0,r.jsx)(j.ZP,{locale:"en"===s.language?K.Z:z.Z,theme:{token:{colorPrimary:"#0C75FC",borderRadius:4},algorithm:"dark"===i?Q:void 0},children:(0,r.jsx)(X.Z,{children:T.pathname.includes("mobile")?(0,r.jsx)(r.Fragment,{children:t}):(0,r.jsxs)("div",{className:"flex w-screen h-screen overflow-hidden",children:[(0,r.jsx)(q(),{children:(0,r.jsx)("meta",{name:"viewport",content:"initial-scale=1.0, width=device-width, maximum-scale=1"})}),"/construct/app/extra"!==T.pathname&&(0,r.jsx)("div",{className:E()("transition-[width]",n?"w-60":"w-20","hidden","md:block"),children:(0,r.jsx)(L,{})}),(0,r.jsx)("div",{className:"flex flex-col flex-1 relative overflow-hidden",children:t}),(0,r.jsx)(y,{})]})})}):null}var en=function(e){let{Component:t,pageProps:n}=e;return(0,r.jsx)(o.R,{children:(0,r.jsx)(ee,{children:(0,r.jsx)(et,{children:(0,r.jsx)(t,{...n})})})})}},19284:function(e,t,n){"use strict";n.d(t,{Hf:function(){return r},Me:function(){return o},S$:function(){return i}});let r={proxyllm:{label:"Proxy LLM",icon:"/models/chatgpt.png"},"flan-t5-base":{label:"flan-t5-base",icon:"/models/google.png"},"vicuna-13b":{label:"vicuna-13b",icon:"/models/vicuna.jpeg"},"vicuna-7b":{label:"vicuna-7b",icon:"/models/vicuna.jpeg"},"vicuna-13b-v1.5":{label:"vicuna-13b-v1.5",icon:"/models/vicuna.jpeg"},"vicuna-7b-v1.5":{label:"vicuna-7b-v1.5",icon:"/models/vicuna.jpeg"},"codegen2-1b":{label:"codegen2-1B",icon:"/models/vicuna.jpeg"},"codet5p-2b":{label:"codet5p-2b",icon:"/models/vicuna.jpeg"},"chatglm-6b-int4":{label:"chatglm-6b-int4",icon:"/models/chatglm.png"},"chatglm-6b":{label:"chatglm-6b",icon:"/models/chatglm.png"},"chatglm2-6b":{label:"chatglm2-6b",icon:"/models/chatglm.png"},"chatglm2-6b-int4":{label:"chatglm2-6b-int4",icon:"/models/chatglm.png"},"guanaco-33b-merged":{label:"guanaco-33b-merged",icon:"/models/huggingface.svg"},"falcon-40b":{label:"falcon-40b",icon:"/models/falcon.jpeg"},"gorilla-7b":{label:"gorilla-7b",icon:"/models/gorilla.png"},"gptj-6b":{label:"ggml-gpt4all-j-v1.3-groovy.bin",icon:""},chatgpt_proxyllm:{label:"chatgpt_proxyllm",icon:"/models/chatgpt.png"},bard_proxyllm:{label:"bard_proxyllm",icon:"/models/bard.gif"},claude_proxyllm:{label:"claude_proxyllm",icon:"/models/claude.png"},wenxin_proxyllm:{label:"wenxin_proxyllm",icon:""},tongyi_proxyllm:{label:"tongyi_proxyllm",icon:"/models/qwen2.png"},zhipu_proxyllm:{label:"zhipu_proxyllm",icon:"/models/zhipu.png"},yi_proxyllm:{label:"yi_proxyllm",icon:"/models/yi.svg"},"yi-34b-chat":{label:"yi-34b-chat",icon:"/models/yi.svg"},"yi-34b-chat-8bits":{label:"yi-34b-chat-8bits",icon:"/models/yi.svg"},"yi-34b-chat-4bits":{label:"yi-34b-chat-4bits",icon:"/models/yi.svg"},"yi-6b-chat":{label:"yi-6b-chat",icon:"/models/yi.svg"},bailing_proxyllm:{label:"bailing_proxyllm",icon:"/models/bailing.svg"},antglm_proxyllm:{label:"antglm_proxyllm",icon:"/models/huggingface.svg"},chatglm_proxyllm:{label:"chatglm_proxyllm",icon:"/models/chatglm.png"},qwen7b_proxyllm:{label:"qwen7b_proxyllm",icon:"/models/tongyi.apng"},qwen72b_proxyllm:{label:"qwen72b_proxyllm",icon:"/models/qwen2.png"},qwen110b_proxyllm:{label:"qwen110b_proxyllm",icon:"/models/qwen2.png"},"llama-2-7b":{label:"Llama-2-7b-chat-hf",icon:"/models/llama.jpg"},"llama-2-13b":{label:"Llama-2-13b-chat-hf",icon:"/models/llama.jpg"},"llama-2-70b":{label:"Llama-2-70b-chat-hf",icon:"/models/llama.jpg"},"baichuan-13b":{label:"Baichuan-13B-Chat",icon:"/models/baichuan.png"},"baichuan-7b":{label:"baichuan-7b",icon:"/models/baichuan.png"},"baichuan2-7b":{label:"Baichuan2-7B-Chat",icon:"/models/baichuan.png"},"baichuan2-13b":{label:"Baichuan2-13B-Chat",icon:"/models/baichuan.png"},"wizardlm-13b":{label:"WizardLM-13B-V1.2",icon:"/models/wizardlm.png"},"llama-cpp":{label:"ggml-model-q4_0.bin",icon:"/models/huggingface.svg"},"internlm-7b":{label:"internlm-chat-7b-v1_1",icon:"/models/internlm.png"},"internlm-7b-8k":{label:"internlm-chat-7b-8k",icon:"/models/internlm.png"},"solar-10.7b-instruct-v1.0":{label:"solar-10.7b-instruct-v1.0",icon:"/models/solar_logo.png"},bailing_65b_v21_0520_proxyllm:{label:"bailing_65b_v21_0520_proxyllm",icon:"/models/bailing.svg"}},o={proxyllm:"/models/chatgpt.png",qwen:"/models/qwen2.png",bailing:"/models/bailing.svg",antglm:"/models/huggingface.svg",chatgpt:"/models/chatgpt.png",vicuna:"/models/vicuna.jpeg",flan:"/models/google.png",code:"/models/vicuna.jpeg",chatglm:"/models/chatglm.png",guanaco:"/models/huggingface.svg",gorilla:"/models/gorilla.png",gptj:"/models/huggingface.svg",bard:"/models/bard.gif",claude:"/models/claude.png",wenxin:"/models/huggingface.svg",tongyi:"/models/qwen2.png",zhipu:"/models/zhipu.png",llama:"/models/llama.jpg",baichuan:"/models/baichuan.png",wizardlm:"/models/wizardlm.png",internlm:"/models/internlm.png",solar:"/models/solar_logo.png"},i={mysql:{label:"MySQL",icon:"/icons/mysql.png",desc:"Fast, reliable, scalable open-source relational database management system."},oceanbase:{label:"OceanBase",icon:"/icons/oceanbase.png",desc:"An Ultra-Fast & Cost-Effective Distributed SQL Database."},mssql:{label:"MSSQL",icon:"/icons/mssql.png",desc:"Powerful, scalable, secure relational database system by Microsoft."},duckdb:{label:"DuckDB",icon:"/icons/duckdb.png",desc:"In-memory analytical database with efficient query processing."},sqlite:{label:"Sqlite",icon:"/icons/sqlite.png",desc:"Lightweight embedded relational database with simplicity and portability."},clickhouse:{label:"ClickHouse",icon:"/icons/clickhouse.png",desc:"Columnar database for high-performance analytics and real-time queries."},oracle:{label:"Oracle",icon:"/icons/oracle.png",desc:"Robust, scalable, secure relational database widely used in enterprises."},access:{label:"Access",icon:"/icons/access.png",desc:"Easy-to-use relational database for small-scale applications by Microsoft."},mongodb:{label:"MongoDB",icon:"/icons/mongodb.png",desc:"Flexible, scalable NoSQL document database for web and mobile apps."},doris:{label:"ApacheDoris",icon:"/icons/doris.png",desc:"A new-generation open-source real-time data warehouse."},starrocks:{label:"StarRocks",icon:"/icons/starrocks.png",desc:"An Open-Source, High-Performance Analytical Database."},db2:{label:"DB2",icon:"/icons/db2.png",desc:"Scalable, secure relational database system developed by IBM."},hbase:{label:"HBase",icon:"/icons/hbase.png",desc:"Distributed, scalable NoSQL database for large structured/semi-structured data."},redis:{label:"Redis",icon:"/icons/redis.png",desc:"Fast, versatile in-memory data structure store as cache, DB, or broker."},cassandra:{label:"Cassandra",icon:"/icons/cassandra.png",desc:"Scalable, fault-tolerant distributed NoSQL database for large data."},couchbase:{label:"Couchbase",icon:"/icons/couchbase.png",desc:"High-performance NoSQL document database with distributed architecture."},omc:{label:"Omc",icon:"/icons/odc.png",desc:"Omc meta data."},postgresql:{label:"PostgreSQL",icon:"/icons/postgresql.png",desc:"Powerful open-source relational database with extensibility and SQL standards."},vertica:{label:"Vertica",icon:"/icons/vertica.png",desc:"Vertica is a strongly consistent, ACID-compliant, SQL data warehouse, built for the scale and complexity of today’s data-driven world."},spark:{label:"Spark",icon:"/icons/spark.png",desc:"Unified engine for large-scale data analytics."},hive:{label:"Hive",icon:"/icons/hive.png",desc:"A distributed fault-tolerant data warehouse system."},space:{label:"Space",icon:"/icons/knowledge.png",desc:"knowledge analytics."},tugraph:{label:"TuGraph",icon:"/icons/tugraph.png",desc:"TuGraph is a high-performance graph database jointly developed by Ant Group and Tsinghua University."}}},25519:function(e,t,n){"use strict";var r,o;n.d(t,{gp:function(){return i},rU:function(){return l},Yl:function(){return s},he:function(){return a},C9:function(){return E},Sc:function(){return c}}),(o=r||(r={}))[o.NO_PERMISSION=-1]="NO_PERMISSION",o[o.SERVICE_ERROR=-2]="SERVICE_ERROR",o[o.INVALID=-3]="INVALID",o[o.IS_EXITS=-4]="IS_EXITS",o[o.MISSING_PARAMETER=-5]="MISSING_PARAMETER";let i="user-id",a="__db_gpt_theme_key",s="__db_gpt_lng_key",l="__db_gpt_im_key",E="__db_gpt_uinfo_key",c="__db_gpt_uinfo_vt_key"},62418:function(e,t,n){"use strict";let r,o,i;n.d(t,{zN:function(){return rr},rU:function(){return rn},S$:function(){return n7.S$},_m:function(){return ro},a_:function(){return re},n5:function(){return rt}});var a,s,l,E={};n.r(E),n.d(E,{bigquery:function(){return F},db2:function(){return X},hive:function(){return er},mariadb:function(){return eT},mysql:function(){return eI},n1ql:function(){return ey},plsql:function(){return eH},postgresql:function(){return eX},redshift:function(){return e4},singlestoredb:function(){return tj},snowflake:function(){return t2},spark:function(){return tn},sql:function(){return tN},sqlite:function(){return tu},transactsql:function(){return tF},trino:function(){return tP}}),(a=r||(r={})).QUOTED_IDENTIFIER="QUOTED_IDENTIFIER",a.IDENTIFIER="IDENTIFIER",a.STRING="STRING",a.VARIABLE="VARIABLE",a.RESERVED_KEYWORD="RESERVED_KEYWORD",a.RESERVED_FUNCTION_NAME="RESERVED_FUNCTION_NAME",a.RESERVED_PHRASE="RESERVED_PHRASE",a.RESERVED_SET_OPERATION="RESERVED_SET_OPERATION",a.RESERVED_CLAUSE="RESERVED_CLAUSE",a.RESERVED_SELECT="RESERVED_SELECT",a.RESERVED_JOIN="RESERVED_JOIN",a.ARRAY_IDENTIFIER="ARRAY_IDENTIFIER",a.ARRAY_KEYWORD="ARRAY_KEYWORD",a.CASE="CASE",a.END="END",a.WHEN="WHEN",a.ELSE="ELSE",a.THEN="THEN",a.LIMIT="LIMIT",a.BETWEEN="BETWEEN",a.AND="AND",a.OR="OR",a.XOR="XOR",a.OPERATOR="OPERATOR",a.COMMA="COMMA",a.ASTERISK="ASTERISK",a.DOT="DOT",a.OPEN_PAREN="OPEN_PAREN",a.CLOSE_PAREN="CLOSE_PAREN",a.LINE_COMMENT="LINE_COMMENT",a.BLOCK_COMMENT="BLOCK_COMMENT",a.NUMBER="NUMBER",a.NAMED_PARAMETER="NAMED_PARAMETER",a.QUOTED_PARAMETER="QUOTED_PARAMETER",a.NUMBERED_PARAMETER="NUMBERED_PARAMETER",a.POSITIONAL_PARAMETER="POSITIONAL_PARAMETER",a.CUSTOM_PARAMETER="CUSTOM_PARAMETER",a.DELIMITER="DELIMITER",a.EOF="EOF";let c=e=>({type:r.EOF,raw:"\xabEOF\xbb",text:"\xabEOF\xbb",start:e}),u=c(1/0),T=e=>t=>t.type===e.type&&t.text===e.text,R={ARRAY:T({text:"ARRAY",type:r.RESERVED_KEYWORD}),BY:T({text:"BY",type:r.RESERVED_KEYWORD}),SET:T({text:"SET",type:r.RESERVED_CLAUSE}),STRUCT:T({text:"STRUCT",type:r.RESERVED_KEYWORD}),WINDOW:T({text:"WINDOW",type:r.RESERVED_CLAUSE})},d=e=>e===r.RESERVED_KEYWORD||e===r.RESERVED_FUNCTION_NAME||e===r.RESERVED_PHRASE||e===r.RESERVED_CLAUSE||e===r.RESERVED_SELECT||e===r.RESERVED_SET_OPERATION||e===r.RESERVED_JOIN||e===r.ARRAY_KEYWORD||e===r.CASE||e===r.END||e===r.WHEN||e===r.ELSE||e===r.THEN||e===r.LIMIT||e===r.BETWEEN||e===r.AND||e===r.OR||e===r.XOR,f=e=>e===r.AND||e===r.OR||e===r.XOR,A=e=>e.flatMap(S),S=e=>h(I(e)).map(e=>e.trim()),O=/[^[\]{}]+/y,p=/\{.*?\}/y,N=/\[.*?\]/y,I=e=>{let t=0,n=[];for(;te.trim());n.push(["",...e]),t+=o[0].length}p.lastIndex=t;let i=p.exec(e);if(i){let e=i[0].slice(1,-1).split("|").map(e=>e.trim());n.push(e),t+=i[0].length}if(!r&&!o&&!i)throw Error(`Unbalanced parenthesis in: ${e}`)}return n},h=([e,...t])=>void 0===e?[""]:h(t).flatMap(t=>e.map(e=>e.trim()+" "+t.trim())),_=e=>[...new Set(e)],m=e=>e[e.length-1],C=e=>e.sort((e,t)=>t.length-e.length||e.localeCompare(t)),L=e=>e.reduce((e,t)=>Math.max(e,t.length),0),g=e=>e.replace(/\s+/gu," "),v=e=>_(Object.values(e).flat()),P=e=>/\n/.test(e),y=v({keywords:["ALL","AND","ANY","ARRAY","AS","ASC","ASSERT_ROWS_MODIFIED","AT","BETWEEN","BY","CASE","CAST","COLLATE","CONTAINS","CREATE","CROSS","CUBE","CURRENT","DEFAULT","DEFINE","DESC","DISTINCT","ELSE","END","ENUM","ESCAPE","EXCEPT","EXCLUDE","EXISTS","EXTRACT","FALSE","FETCH","FOLLOWING","FOR","FROM","FULL","GROUP","GROUPING","GROUPS","HASH","HAVING","IF","IGNORE","IN","INNER","INTERSECT","INTERVAL","INTO","IS","JOIN","LATERAL","LEFT","LIKE","LIMIT","LOOKUP","MERGE","NATURAL","NEW","NO","NOT","NULL","NULLS","OF","ON","OR","ORDER","OUTER","OVER","PARTITION","PRECEDING","PROTO","RANGE","RECURSIVE","RESPECT","RIGHT","ROLLUP","ROWS","SELECT","SET","SOME","STRUCT","TABLE","TABLESAMPLE","THEN","TO","TREAT","TRUE","UNBOUNDED","UNION","UNNEST","USING","WHEN","WHERE","WINDOW","WITH","WITHIN"],datatypes:["ARRAY","BOOL","BYTES","DATE","DATETIME","GEOGRAPHY","INTERVAL","INT64","INT","SMALLINT","INTEGER","BIGINT","TINYINT","BYTEINT","NUMERIC","DECIMAL","BIGNUMERIC","BIGDECIMAL","FLOAT64","STRING","STRUCT","TIME","TIMEZONE"],stringFormat:["HEX","BASEX","BASE64M","ASCII","UTF-8","UTF8"],misc:["SAFE"],ddl:["LIKE","COPY","CLONE","IN","OUT","INOUT","RETURNS","LANGUAGE","CASCADE","RESTRICT","DETERMINISTIC"]}),D=v({aead:["KEYS.NEW_KEYSET","KEYS.ADD_KEY_FROM_RAW_BYTES","AEAD.DECRYPT_BYTES","AEAD.DECRYPT_STRING","AEAD.ENCRYPT","KEYS.KEYSET_CHAIN","KEYS.KEYSET_FROM_JSON","KEYS.KEYSET_TO_JSON","KEYS.ROTATE_KEYSET","KEYS.KEYSET_LENGTH"],aggregateAnalytic:["ANY_VALUE","ARRAY_AGG","AVG","CORR","COUNT","COUNTIF","COVAR_POP","COVAR_SAMP","MAX","MIN","ST_CLUSTERDBSCAN","STDDEV_POP","STDDEV_SAMP","STRING_AGG","SUM","VAR_POP","VAR_SAMP"],aggregate:["ANY_VALUE","ARRAY_AGG","ARRAY_CONCAT_AGG","AVG","BIT_AND","BIT_OR","BIT_XOR","COUNT","COUNTIF","LOGICAL_AND","LOGICAL_OR","MAX","MIN","STRING_AGG","SUM"],approximateAggregate:["APPROX_COUNT_DISTINCT","APPROX_QUANTILES","APPROX_TOP_COUNT","APPROX_TOP_SUM"],array:["ARRAY_CONCAT","ARRAY_LENGTH","ARRAY_TO_STRING","GENERATE_ARRAY","GENERATE_DATE_ARRAY","GENERATE_TIMESTAMP_ARRAY","ARRAY_REVERSE","OFFSET","SAFE_OFFSET","ORDINAL","SAFE_ORDINAL"],bitwise:["BIT_COUNT"],conversion:["PARSE_BIGNUMERIC","PARSE_NUMERIC","SAFE_CAST"],date:["CURRENT_DATE","EXTRACT","DATE","DATE_ADD","DATE_SUB","DATE_DIFF","DATE_TRUNC","DATE_FROM_UNIX_DATE","FORMAT_DATE","LAST_DAY","PARSE_DATE","UNIX_DATE"],datetime:["CURRENT_DATETIME","DATETIME","EXTRACT","DATETIME_ADD","DATETIME_SUB","DATETIME_DIFF","DATETIME_TRUNC","FORMAT_DATETIME","LAST_DAY","PARSE_DATETIME"],debugging:["ERROR"],federatedQuery:["EXTERNAL_QUERY"],geography:["S2_CELLIDFROMPOINT","S2_COVERINGCELLIDS","ST_ANGLE","ST_AREA","ST_ASBINARY","ST_ASGEOJSON","ST_ASTEXT","ST_AZIMUTH","ST_BOUNDARY","ST_BOUNDINGBOX","ST_BUFFER","ST_BUFFERWITHTOLERANCE","ST_CENTROID","ST_CENTROID_AGG","ST_CLOSESTPOINT","ST_CLUSTERDBSCAN","ST_CONTAINS","ST_CONVEXHULL","ST_COVEREDBY","ST_COVERS","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DUMP","ST_DWITHIN","ST_ENDPOINT","ST_EQUALS","ST_EXTENT","ST_EXTERIORRING","ST_GEOGFROM","ST_GEOGFROMGEOJSON","ST_GEOGFROMTEXT","ST_GEOGFROMWKB","ST_GEOGPOINT","ST_GEOGPOINTFROMGEOHASH","ST_GEOHASH","ST_GEOMETRYTYPE","ST_INTERIORRINGS","ST_INTERSECTION","ST_INTERSECTS","ST_INTERSECTSBOX","ST_ISCOLLECTION","ST_ISEMPTY","ST_LENGTH","ST_MAKELINE","ST_MAKEPOLYGON","ST_MAKEPOLYGONORIENTED","ST_MAXDISTANCE","ST_NPOINTS","ST_NUMGEOMETRIES","ST_NUMPOINTS","ST_PERIMETER","ST_POINTN","ST_SIMPLIFY","ST_SNAPTOGRID","ST_STARTPOINT","ST_TOUCHES","ST_UNION","ST_UNION_AGG","ST_WITHIN","ST_X","ST_Y"],hash:["FARM_FINGERPRINT","MD5","SHA1","SHA256","SHA512"],hll:["HLL_COUNT.INIT","HLL_COUNT.MERGE","HLL_COUNT.MERGE_PARTIAL","HLL_COUNT.EXTRACT"],interval:["MAKE_INTERVAL","EXTRACT","JUSTIFY_DAYS","JUSTIFY_HOURS","JUSTIFY_INTERVAL"],json:["JSON_EXTRACT","JSON_QUERY","JSON_EXTRACT_SCALAR","JSON_VALUE","JSON_EXTRACT_ARRAY","JSON_QUERY_ARRAY","JSON_EXTRACT_STRING_ARRAY","JSON_VALUE_ARRAY","TO_JSON_STRING"],math:["ABS","SIGN","IS_INF","IS_NAN","IEEE_DIVIDE","RAND","SQRT","POW","POWER","EXP","LN","LOG","LOG10","GREATEST","LEAST","DIV","SAFE_DIVIDE","SAFE_MULTIPLY","SAFE_NEGATE","SAFE_ADD","SAFE_SUBTRACT","MOD","ROUND","TRUNC","CEIL","CEILING","FLOOR","COS","COSH","ACOS","ACOSH","SIN","SINH","ASIN","ASINH","TAN","TANH","ATAN","ATANH","ATAN2","RANGE_BUCKET"],navigation:["FIRST_VALUE","LAST_VALUE","NTH_VALUE","LEAD","LAG","PERCENTILE_CONT","PERCENTILE_DISC"],net:["NET.IP_FROM_STRING","NET.SAFE_IP_FROM_STRING","NET.IP_TO_STRING","NET.IP_NET_MASK","NET.IP_TRUNC","NET.IPV4_FROM_INT64","NET.IPV4_TO_INT64","NET.HOST","NET.PUBLIC_SUFFIX","NET.REG_DOMAIN"],numbering:["RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","NTILE","ROW_NUMBER"],security:["SESSION_USER"],statisticalAggregate:["CORR","COVAR_POP","COVAR_SAMP","STDDEV_POP","STDDEV_SAMP","STDDEV","VAR_POP","VAR_SAMP","VARIANCE"],string:["ASCII","BYTE_LENGTH","CHAR_LENGTH","CHARACTER_LENGTH","CHR","CODE_POINTS_TO_BYTES","CODE_POINTS_TO_STRING","CONCAT","CONTAINS_SUBSTR","ENDS_WITH","FORMAT","FROM_BASE32","FROM_BASE64","FROM_HEX","INITCAP","INSTR","LEFT","LENGTH","LPAD","LOWER","LTRIM","NORMALIZE","NORMALIZE_AND_CASEFOLD","OCTET_LENGTH","REGEXP_CONTAINS","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPLACE","REPEAT","REVERSE","RIGHT","RPAD","RTRIM","SAFE_CONVERT_BYTES_TO_STRING","SOUNDEX","SPLIT","STARTS_WITH","STRPOS","SUBSTR","SUBSTRING","TO_BASE32","TO_BASE64","TO_CODE_POINTS","TO_HEX","TRANSLATE","TRIM","UNICODE","UPPER"],time:["CURRENT_TIME","TIME","EXTRACT","TIME_ADD","TIME_SUB","TIME_DIFF","TIME_TRUNC","FORMAT_TIME","PARSE_TIME"],timestamp:["CURRENT_TIMESTAMP","EXTRACT","STRING","TIMESTAMP","TIMESTAMP_ADD","TIMESTAMP_SUB","TIMESTAMP_DIFF","TIMESTAMP_TRUNC","FORMAT_TIMESTAMP","PARSE_TIMESTAMP","TIMESTAMP_SECONDS","TIMESTAMP_MILLIS","TIMESTAMP_MICROS","UNIX_SECONDS","UNIX_MILLIS","UNIX_MICROS"],uuid:["GENERATE_UUID"],conditional:["COALESCE","IF","IFNULL","NULLIF"],legacyAggregate:["AVG","BIT_AND","BIT_OR","BIT_XOR","CORR","COUNT","COVAR_POP","COVAR_SAMP","EXACT_COUNT_DISTINCT","FIRST","GROUP_CONCAT","GROUP_CONCAT_UNQUOTED","LAST","MAX","MIN","NEST","NTH","QUANTILES","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","TOP","UNIQUE","VARIANCE","VAR_POP","VAR_SAMP"],legacyBitwise:["BIT_COUNT"],legacyCasting:["BOOLEAN","BYTES","CAST","FLOAT","HEX_STRING","INTEGER","STRING"],legacyComparison:["COALESCE","GREATEST","IFNULL","IS_INF","IS_NAN","IS_EXPLICITLY_DEFINED","LEAST","NVL"],legacyDatetime:["CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE","DATE_ADD","DATEDIFF","DAY","DAYOFWEEK","DAYOFYEAR","FORMAT_UTC_USEC","HOUR","MINUTE","MONTH","MSEC_TO_TIMESTAMP","NOW","PARSE_UTC_USEC","QUARTER","SEC_TO_TIMESTAMP","SECOND","STRFTIME_UTC_USEC","TIME","TIMESTAMP","TIMESTAMP_TO_MSEC","TIMESTAMP_TO_SEC","TIMESTAMP_TO_USEC","USEC_TO_TIMESTAMP","UTC_USEC_TO_DAY","UTC_USEC_TO_HOUR","UTC_USEC_TO_MONTH","UTC_USEC_TO_WEEK","UTC_USEC_TO_YEAR","WEEK","YEAR"],legacyIp:["FORMAT_IP","PARSE_IP","FORMAT_PACKED_IP","PARSE_PACKED_IP"],legacyJson:["JSON_EXTRACT","JSON_EXTRACT_SCALAR"],legacyMath:["ABS","ACOS","ACOSH","ASIN","ASINH","ATAN","ATANH","ATAN2","CEIL","COS","COSH","DEGREES","EXP","FLOOR","LN","LOG","LOG2","LOG10","PI","POW","RADIANS","RAND","ROUND","SIN","SINH","SQRT","TAN","TANH"],legacyRegex:["REGEXP_MATCH","REGEXP_EXTRACT","REGEXP_REPLACE"],legacyString:["CONCAT","INSTR","LEFT","LENGTH","LOWER","LPAD","LTRIM","REPLACE","RIGHT","RPAD","RTRIM","SPLIT","SUBSTR","UPPER"],legacyTableWildcard:["TABLE_DATE_RANGE","TABLE_DATE_RANGE_STRICT","TABLE_QUERY"],legacyUrl:["HOST","DOMAIN","TLD"],legacyWindow:["AVG","COUNT","MAX","MIN","STDDEV","SUM","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","RATIO_TO_REPORT","ROW_NUMBER"],legacyMisc:["CURRENT_USER","EVERY","FROM_BASE64","HASH","FARM_FINGERPRINT","IF","POSITION","SHA1","SOME","TO_BASE64"],other:["BQ.JOBS.CANCEL","BQ.REFRESH_MATERIALIZED_VIEW"],ddl:["OPTIONS"],pivot:["PIVOT","UNPIVOT"],dataTypes:["BYTES","NUMERIC","DECIMAL","BIGNUMERIC","BIGDECIMAL","STRING"]}),M=A(["SELECT [ALL | DISTINCT] [AS STRUCT | AS VALUE]"]),b=A(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","QUALIFY","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","OMIT RECORD IF","INSERT [INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [BY SOURCE | BY TARGET] [THEN]","UPDATE SET","CREATE [OR REPLACE] [MATERIALIZED] VIEW [IF NOT EXISTS]","CREATE [OR REPLACE] [TEMP|TEMPORARY|SNAPSHOT|EXTERNAL] TABLE [IF NOT EXISTS]","CLUSTER BY","FOR SYSTEM_TIME AS OF","WITH CONNECTION","WITH PARTITION COLUMNS","REMOTE WITH CONNECTION"]),U=A(["UPDATE","DELETE [FROM]","DROP [SNAPSHOT | EXTERNAL] TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","ADD COLUMN [IF NOT EXISTS]","DROP COLUMN [IF EXISTS]","RENAME TO","ALTER COLUMN [IF EXISTS]","SET DEFAULT COLLATE","SET OPTIONS","DROP NOT NULL","SET DATA TYPE","ALTER SCHEMA [IF EXISTS]","ALTER [MATERIALIZED] VIEW [IF EXISTS]","ALTER BI_CAPACITY","TRUNCATE TABLE","CREATE SCHEMA [IF NOT EXISTS]","DEFAULT COLLATE","CREATE [OR REPLACE] [TEMP|TEMPORARY|TABLE] FUNCTION [IF NOT EXISTS]","CREATE [OR REPLACE] PROCEDURE [IF NOT EXISTS]","CREATE [OR REPLACE] ROW ACCESS POLICY [IF NOT EXISTS]","GRANT TO","FILTER USING","CREATE CAPACITY","AS JSON","CREATE RESERVATION","CREATE ASSIGNMENT","CREATE SEARCH INDEX [IF NOT EXISTS]","DROP SCHEMA [IF EXISTS]","DROP [MATERIALIZED] VIEW [IF EXISTS]","DROP [TABLE] FUNCTION [IF EXISTS]","DROP PROCEDURE [IF EXISTS]","DROP ROW ACCESS POLICY","DROP ALL ROW ACCESS POLICIES","DROP CAPACITY [IF EXISTS]","DROP RESERVATION [IF EXISTS]","DROP ASSIGNMENT [IF EXISTS]","DROP SEARCH INDEX [IF EXISTS]","DROP [IF EXISTS]","GRANT","REVOKE","DECLARE","EXECUTE IMMEDIATE","LOOP","END LOOP","REPEAT","END REPEAT","WHILE","END WHILE","BREAK","LEAVE","CONTINUE","ITERATE","FOR","END FOR","BEGIN","BEGIN TRANSACTION","COMMIT TRANSACTION","ROLLBACK TRANSACTION","RAISE","RETURN","CALL","ASSERT","EXPORT DATA"]),x=A(["UNION {ALL | DISTINCT}","EXCEPT DISTINCT","INTERSECT DISTINCT"]),w=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN"]),G=A(["TABLESAMPLE SYSTEM","ANY TYPE","ALL COLUMNS","NOT DETERMINISTIC","{ROWS | RANGE} BETWEEN","IS [NOT] DISTINCT FROM"]),F={tokenizerOptions:{reservedSelect:M,reservedClauses:[...b,...U],reservedSetOperations:x,reservedJoins:w,reservedPhrases:G,reservedKeywords:y,reservedFunctionNames:D,extraParens:["[]"],stringTypes:[{quote:'""".."""',prefixes:["R","B","RB","BR"]},{quote:"'''..'''",prefixes:["R","B","RB","BR"]},'""-bs',"''-bs",{quote:'""-raw',prefixes:["R","B","RB","BR"],requirePrefix:!0},{quote:"''-raw",prefixes:["R","B","RB","BR"],requirePrefix:!0}],identTypes:["``"],identChars:{dashes:!0},paramTypes:{positional:!0,named:["@"],quoted:["@"]},variableTypes:[{regex:String.raw`@@\w+`}],lineCommentTypes:["--","#"],operators:["&","|","^","~",">>","<<","||","=>"],postProcess:function(e){var t;let n;return t=function(e){let t=[];for(let o=0;o"===t.text?n--:">>"===t.text&&(n-=2),0===n)return r}return e.length-1}(e,o+1),a=e.slice(o,n+1);t.push({type:r.IDENTIFIER,raw:a.map(H("raw")).join(""),text:a.map(H("text")).join(""),start:i.start}),o=n}else t.push(i)}return t}(e),n=u,t.map(e=>"OFFSET"===e.text&&"["===n.text?(n=e,{...e,type:r.RESERVED_FUNCTION_NAME}):(n=e,e))}},formatOptions:{onelineClauses:U}},H=e=>t=>t.type===r.IDENTIFIER||t.type===r.COMMA?t[e]+" ":t[e],B=v({aggregate:["ARRAY_AGG","AVG","CORR","CORRELATION","COUNT","COUNT_BIG","COVAR_POP","COVARIANCE","COVAR","COVAR_SAMP","COVARIANCE_SAMP","CUME_DIST","GROUPING","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_ICPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV_POP","STDDEV","STDDEV_SAMP","SUM","VAR_POP","VARIANCE","VAR","VAR_SAMP","VARIANCE_SAMP","XMLAGG"],scalar:["ABS","ABSVAL","ACOS","ADD_DAYS","ADD_MONTHS","ARRAY_DELETE","ARRAY_FIRST","ARRAY_LAST","ARRAY_NEXT","ARRAY_PRIOR","ARRAY_TRIM","ASCII","ASCII_CHR","ASCII_STR","ASCIISTR","ASIN","ATAN","ATANH","ATAN2","BIGINT","BINARY","BITAND","BITANDNOT","BITOR","BITXOR","BITNOT","BLOB","BTRIM","CARDINALITY","CCSID_ENCODING","CEILING","CEIL","CHAR","CHAR9","CHARACTER_LENGTH","CHAR_LENGTH","CHR","CLOB","COALESCE","COLLATION_KEY","COMPARE_DECFLOAT","CONCAT","CONTAINS","COS","COSH","DATE","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFWEEK_ISO","DAYOFYEAR","DAYS","DAYS_BETWEEN","DBCLOB","DECFLOAT","DECFLOAT_FORMAT","DECFLOAT_SORTKEY","DECIMAL","DEC","DECODE","DECRYPT_BINARY","DECRYPT_BIT","DECRYPT_CHAR","DECRYPT_DB","DECRYPT_DATAKEY_BIGINT","DECRYPT_DATAKEY_BIT","DECRYPT_DATAKEY_CLOB","DECRYPT_DATAKEY_DBCLOB","DECRYPT_DATAKEY_DECIMAL","DECRYPT_DATAKEY_INTEGER","DECRYPT_DATAKEY_VARCHAR","DECRYPT_DATAKEY_VARGRAPHIC","DEGREES","DIFFERENCE","DIGITS","DOUBLE_PRECISION","DOUBLE","DSN_XMLVALIDATE","EBCDIC_CHR","EBCDIC_STR","ENCRYPT_DATAKEY","ENCRYPT_TDES","EXP","EXTRACT","FLOAT","FLOOR","GENERATE_UNIQUE","GENERATE_UNIQUE_BINARY","GETHINT","GETVARIABLE","GRAPHIC","GREATEST","HASH","HASH_CRC32","HASH_MD5","HASH_SHA1","HASH_SHA256","HEX","HOUR","IDENTITY_VAL_LOCAL","IFNULL","INSERT","INSTR","INTEGER","INT","JULIAN_DAY","LAST_DAY","LCASE","LEAST","LEFT","LENGTH","LN","LOCATE","LOCATE_IN_STRING","LOG10","LOWER","LPAD","LTRIM","MAX","MAX_CARDINALITY","MICROSECOND","MIDNIGHT_SECONDS","MIN","MINUTE","MOD","MONTH","MONTHS_BETWEEN","MQREAD","MQREADCLOB","MQRECEIVE","MQRECEIVECLOB","MQSEND","MULTIPLY_ALT","NEXT_DAY","NEXT_MONTH","NORMALIZE_DECFLOAT","NORMALIZE_STRING","NULLIF","NVL","OVERLAY","PACK","POSITION","POSSTR","POWER","POW","QUANTIZE","QUARTER","RADIANS","RAISE_ERROR","RANDOM","RAND","REAL","REGEXP_COUNT","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","RID","RIGHT","ROUND","ROUND_TIMESTAMP","ROWID","RPAD","RTRIM","SCORE","SECOND","SIGN","SIN","SINH","SMALLINT","SOUNDEX","SOAPHTTPC","SOAPHTTPV","SOAPHTTPNC","SOAPHTTPNV","SPACE","SQRT","STRIP","STRLEFT","STRPOS","STRRIGHT","SUBSTR","SUBSTRING","TAN","TANH","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIMESTAMP_FORMAT","TIMESTAMP_ISO","TIMESTAMP_TZ","TO_CHAR","TO_CLOB","TO_DATE","TO_NUMBER","TOTALORDER","TO_TIMESTAMP","TRANSLATE","TRIM","TRIM_ARRAY","TRUNCATE","TRUNC","TRUNC_TIMESTAMP","UCASE","UNICODE","UNICODE_STR","UNISTR","UPPER","VALUE","VARBINARY","VARCHAR","VARCHAR9","VARCHAR_BIT_FORMAT","VARCHAR_FORMAT","VARGRAPHIC","VERIFY_GROUP_FOR_USER","VERIFY_ROLE_FOR_USER","VERIFY_TRUSTED_CONTEXT_ROLE_FOR_USER","WEEK","WEEK_ISO","WRAP","XMLATTRIBUTES","XMLCOMMENT","XMLCONCAT","XMLDOCUMENT","XMLELEMENT","XMLFOREST","XMLMODIFY","XMLNAMESPACES","XMLPARSE","XMLPI","XMLQUERY","XMLSERIALIZE","XMLTEXT","XMLXSROBJECTID","XSLTRANSFORM","YEAR"],table:["ADMIN_TASK_LIST","ADMIN_TASK_OUTPUT","ADMIN_TASK_STATUS","BLOCKING_THREADS","MQREADALL","MQREADALLCLOB","MQRECEIVEALL","MQRECEIVEALLCLOB","XMLTABLE"],row:["UNPACK"],olap:["CUME_DIST","PERCENT_RANK","RANK","DENSE_RANK","NTILE","LAG","LEAD","ROW_NUMBER","FIRST_VALUE","LAST_VALUE","NTH_VALUE","RATIO_TO_REPORT"],cast:["CAST"]}),Y=v({standard:["ALL","ALLOCATE","ALLOW","ALTERAND","ANY","AS","ARRAY","ARRAY_EXISTS","ASENSITIVE","ASSOCIATE","ASUTIME","AT","AUDIT","AUX","AUXILIARY","BEFORE","BEGIN","BETWEEN","BUFFERPOOL","BY","CAPTURE","CASCADED","CAST","CCSID","CHARACTER","CHECK","CLONE","CLUSTER","COLLECTION","COLLID","COLUMN","CONDITION","CONNECTION","CONSTRAINT","CONTENT","CONTINUE","CREATE","CUBE","CURRENT","CURRENT_DATE","CURRENT_LC_CTYPE","CURRENT_PATH","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRVAL","CURSOR","DATA","DATABASE","DBINFO","DECLARE","DEFAULT","DESCRIPTOR","DETERMINISTIC","DISABLE","DISALLOW","DISTINCT","DO","DOCUMENT","DSSIZE","DYNAMIC","EDITPROC","ELSE","ELSEIF","ENCODING","ENCRYPTION","ENDING","END-EXEC","ERASE","ESCAPE","EXCEPTION","EXISTS","EXIT","EXTERNAL","FENCED","FIELDPROC","FINAL","FIRST","FOR","FREE","FULL","FUNCTION","GENERATED","GET","GLOBAL","GOTO","GROUP","HANDLER","HOLD","HOURS","IF","IMMEDIATE","IN","INCLUSIVE","INDEX","INHERIT","INNER","INOUT","INSENSITIVE","INTO","IS","ISOBID","ITERATE","JAR","KEEP","KEY","LANGUAGE","LAST","LC_CTYPE","LEAVE","LIKE","LOCAL","LOCALE","LOCATOR","LOCATORS","LOCK","LOCKMAX","LOCKSIZE","LONG","LOOP","MAINTAINED","MATERIALIZED","MICROSECONDS","MINUTEMINUTES","MODIFIES","MONTHS","NEXT","NEXTVAL","NO","NONE","NOT","NULL","NULLS","NUMPARTS","OBID","OF","OLD","ON","OPTIMIZATION","OPTIMIZE","ORDER","ORGANIZATION","OUT","OUTER","PACKAGE","PARAMETER","PART","PADDED","PARTITION","PARTITIONED","PARTITIONING","PATH","PIECESIZE","PERIOD","PLAN","PRECISION","PREVVAL","PRIOR","PRIQTY","PRIVILEGES","PROCEDURE","PROGRAM","PSID","PUBLIC","QUERY","QUERYNO","READS","REFERENCES","RESIGNAL","RESTRICT","RESULT","RESULT_SET_LOCATOR","RETURN","RETURNS","ROLE","ROLLUP","ROUND_CEILING","ROUND_DOWN","ROUND_FLOOR","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_HALF_UP","ROUND_UP","ROW","ROWSET","SCHEMA","SCRATCHPAD","SECONDS","SECQTY","SECURITY","SEQUENCE","SENSITIVE","SESSION_USER","SIMPLE","SOME","SOURCE","SPECIFIC","STANDARD","STATIC","STATEMENT","STAY","STOGROUP","STORES","STYLE","SUMMARY","SYNONYM","SYSDATE","SYSTEM","SYSTIMESTAMP","TABLE","TABLESPACE","THEN","TO","TRIGGER","TYPE","UNDO","UNIQUE","UNTIL","USER","USING","VALIDPROC","VARIABLE","VARIANT","VCAT","VERSIONING","VIEW","VOLATILE","VOLUMES","WHILE","WLM","XMLEXISTS","XMLCAST","YEARS","ZONE"]}),k=A(["SELECT [ALL | DISTINCT]"]),V=A(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY [INPUT SEQUENCE]","FETCH FIRST","INSERT INTO","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED [THEN]","UPDATE SET","INSERT","CREATE [OR REPLACE] VIEW","CREATE [GLOBAL TEMPORARY] TABLE"]),$=A(["UPDATE","WHERE CURRENT OF","WITH {RR | RS | CS | UR}","DELETE FROM","DROP TABLE [HIERARCHY]","ALTER TABLE","ADD [COLUMN]","DROP [COLUMN]","RENAME [COLUMN]","ALTER [COLUMN]","SET DATA TYPE","SET NOT NULL","DROP {IDENTITY | EXPRESSION | DEFAULT | NOT NULL}","TRUNCATE [TABLE]","SET [CURRENT] SCHEMA","AFTER","GO","ALLOCATE CURSOR","ALTER DATABASE","ALTER FUNCTION","ALTER INDEX","ALTER MASK","ALTER PERMISSION","ALTER PROCEDURE","ALTER SEQUENCE","ALTER STOGROUP","ALTER TABLESPACE","ALTER TRIGGER","ALTER TRUSTED CONTEXT","ALTER VIEW","ASSOCIATE LOCATORS","BEGIN DECLARE SECTION","CALL","CLOSE","COMMENT","COMMIT","CONNECT","CREATE ALIAS","CREATE AUXILIARY TABLE","CREATE DATABASE","CREATE FUNCTION","CREATE GLOBAL TEMPORARY TABLE","CREATE INDEX","CREATE LOB TABLESPACE","CREATE MASK","CREATE PERMISSION","CREATE PROCEDURE","CREATE ROLE","CREATE SEQUENCE","CREATE STOGROUP","CREATE SYNONYM","CREATE TABLESPACE","CREATE TRIGGER","CREATE TRUSTED CONTEXT","CREATE TYPE","CREATE VARIABLE","DECLARE CURSOR","DECLARE GLOBAL TEMPORARY TABLE","DECLARE STATEMENT","DECLARE TABLE","DECLARE VARIABLE","DESCRIBE CURSOR","DESCRIBE INPUT","DESCRIBE OUTPUT","DESCRIBE PROCEDURE","DESCRIBE TABLE","DROP","END DECLARE SECTION","EXCHANGE","EXECUTE","EXECUTE IMMEDIATE","EXPLAIN","FETCH","FREE LOCATOR","GET DIAGNOSTICS","GRANT","HOLD LOCATOR","INCLUDE","LABEL","LOCK TABLE","OPEN","PREPARE","REFRESH","RELEASE","RELEASE SAVEPOINT","RENAME","REVOKE","ROLLBACK","SAVEPOINT","SELECT INTO","SET CONNECTION","SET CURRENT ACCELERATOR","SET CURRENT APPLICATION COMPATIBILITY","SET CURRENT APPLICATION ENCODING SCHEME","SET CURRENT DEBUG MODE","SET CURRENT DECFLOAT ROUNDING MODE","SET CURRENT DEGREE","SET CURRENT EXPLAIN MODE","SET CURRENT GET_ACCEL_ARCHIVE","SET CURRENT LOCALE LC_CTYPE","SET CURRENT MAINTAINED TABLE TYPES FOR OPTIMIZATION","SET CURRENT OPTIMIZATION HINT","SET CURRENT PACKAGE PATH","SET CURRENT PACKAGESET","SET CURRENT PRECISION","SET CURRENT QUERY ACCELERATION","SET CURRENT QUERY ACCELERATION WAITFORDATA","SET CURRENT REFRESH AGE","SET CURRENT ROUTINE VERSION","SET CURRENT RULES","SET CURRENT SQLID","SET CURRENT TEMPORAL BUSINESS_TIME","SET CURRENT TEMPORAL SYSTEM_TIME","SET ENCRYPTION PASSWORD","SET PATH","SET SESSION TIME ZONE","SIGNAL","VALUES INTO","WHENEVER"]),W=A(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),Z=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN"]),j=A(["ON DELETE","ON UPDATE","SET NULL","{ROWS | RANGE} BETWEEN"]),X={tokenizerOptions:{reservedSelect:k,reservedClauses:[...V,...$],reservedSetOperations:W,reservedJoins:Z,reservedPhrases:j,reservedKeywords:Y,reservedFunctionNames:B,stringTypes:[{quote:"''-qq",prefixes:["G","N","U&"]},{quote:"''-raw",prefixes:["X","BX","GX","UX"],requirePrefix:!0}],identTypes:['""-qq'],identChars:{first:"@#$"},paramTypes:{positional:!0,named:[":"]},paramChars:{first:"@#$",rest:"@#$"},operators:["**","\xac=","\xac>","\xac<","!>","!<","||"]},formatOptions:{onelineClauses:$}},K=v({math:["ABS","ACOS","ASIN","ATAN","BIN","BROUND","CBRT","CEIL","CEILING","CONV","COS","DEGREES","EXP","FACTORIAL","FLOOR","GREATEST","HEX","LEAST","LN","LOG","LOG10","LOG2","NEGATIVE","PI","PMOD","POSITIVE","POW","POWER","RADIANS","RAND","ROUND","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIN","SQRT","TAN","UNHEX","WIDTH_BUCKET"],array:["ARRAY_CONTAINS","MAP_KEYS","MAP_VALUES","SIZE","SORT_ARRAY"],conversion:["BINARY","CAST"],date:["ADD_MONTHS","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","QUARTER","SECOND","TIMESTAMP","TO_DATE","TO_UTC_TIMESTAMP","TRUNC","UNIX_TIMESTAMP","WEEKOFYEAR","YEAR"],conditional:["ASSERT_TRUE","COALESCE","IF","ISNOTNULL","ISNULL","NULLIF","NVL"],string:["ASCII","BASE64","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONTEXT_NGRAMS","DECODE","ELT","ENCODE","FIELD","FIND_IN_SET","FORMAT_NUMBER","GET_JSON_OBJECT","IN_FILE","INITCAP","INSTR","LCASE","LENGTH","LEVENSHTEIN","LOCATE","LOWER","LPAD","LTRIM","NGRAMS","OCTET_LENGTH","PARSE_URL","PRINTF","QUOTE","REGEXP_EXTRACT","REGEXP_REPLACE","REPEAT","REVERSE","RPAD","RTRIM","SENTENCES","SOUNDEX","SPACE","SPLIT","STR_TO_MAP","SUBSTR","SUBSTRING","TRANSLATE","TRIM","UCASE","UNBASE64","UPPER"],masking:["MASK","MASK_FIRST_N","MASK_HASH","MASK_LAST_N","MASK_SHOW_FIRST_N","MASK_SHOW_LAST_N"],misc:["AES_DECRYPT","AES_ENCRYPT","CRC32","CURRENT_DATABASE","CURRENT_USER","HASH","JAVA_METHOD","LOGGED_IN_USER","MD5","REFLECT","SHA","SHA1","SHA2","SURROGATE_KEY","VERSION"],aggregate:["AVG","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COVAR_POP","COVAR_SAMP","HISTOGRAM_NUMERIC","MAX","MIN","NTILE","PERCENTILE","PERCENTILE_APPROX","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE"],table:["EXPLODE","INLINE","JSON_TUPLE","PARSE_URL_TUPLE","POSEXPLODE","STACK"],window:["LEAD","LAG","FIRST_VALUE","LAST_VALUE","RANK","ROW_NUMBER","DENSE_RANK","CUME_DIST","PERCENT_RANK","NTILE"],dataTypes:["DECIMAL","NUMERIC","VARCHAR","CHAR"]}),z=v({nonReserved:["ADD","ADMIN","AFTER","ANALYZE","ARCHIVE","ASC","BEFORE","BUCKET","BUCKETS","CASCADE","CHANGE","CLUSTER","CLUSTERED","CLUSTERSTATUS","COLLECTION","COLUMNS","COMMENT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONTINUE","DATA","DATABASES","DATETIME","DAY","DBPROPERTIES","DEFERRED","DEFINED","DELIMITED","DEPENDENCY","DESC","DIRECTORIES","DIRECTORY","DISABLE","DISTRIBUTE","ELEM_TYPE","ENABLE","ESCAPED","EXCLUSIVE","EXPLAIN","EXPORT","FIELDS","FILE","FILEFORMAT","FIRST","FORMAT","FORMATTED","FUNCTIONS","HOLD_DDLTIME","HOUR","IDXPROPERTIES","IGNORE","INDEX","INDEXES","INPATH","INPUTDRIVER","INPUTFORMAT","ITEMS","JAR","KEYS","KEY_TYPE","LIMIT","LINES","LOAD","LOCATION","LOCK","LOCKS","LOGICAL","LONG","MAPJOIN","MATERIALIZED","METADATA","MINUS","MINUTE","MONTH","MSCK","NOSCAN","NO_DROP","OFFLINE","OPTION","OUTPUTDRIVER","OUTPUTFORMAT","OVERWRITE","OWNER","PARTITIONED","PARTITIONS","PLUS","PRETTY","PRINCIPALS","PROTECTION","PURGE","READ","READONLY","REBUILD","RECORDREADER","RECORDWRITER","RELOAD","RENAME","REPAIR","REPLACE","REPLICATION","RESTRICT","REWRITE","ROLE","ROLES","SCHEMA","SCHEMAS","SECOND","SEMI","SERDE","SERDEPROPERTIES","SERVER","SETS","SHARED","SHOW","SHOW_DATABASE","SKEWED","SORT","SORTED","SSL","STATISTICS","STORED","STREAMTABLE","STRING","STRUCT","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","TINYINT","TOUCH","TRANSACTIONS","UNARCHIVE","UNDO","UNIONTYPE","UNLOCK","UNSET","UNSIGNED","URI","USE","UTC","UTCTIMESTAMP","VALUE_TYPE","VIEW","WHILE","YEAR","AUTOCOMMIT","ISOLATION","LEVEL","OFFSET","SNAPSHOT","TRANSACTION","WORK","WRITE","ABORT","KEY","LAST","NORELY","NOVALIDATE","NULLS","RELY","VALIDATE","DETAIL","DOW","EXPRESSION","OPERATOR","QUARTER","SUMMARY","VECTORIZATION","WEEK","YEARS","MONTHS","WEEKS","DAYS","HOURS","MINUTES","SECONDS","TIMESTAMPTZ","ZONE"],reserved:["ALL","ALTER","AND","ARRAY","AS","AUTHORIZATION","BETWEEN","BIGINT","BINARY","BOOLEAN","BOTH","BY","CASE","CAST","CHAR","COLUMN","CONF","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIMESTAMP","CURSOR","DATABASE","DATE","DECIMAL","DELETE","DESCRIBE","DISTINCT","DOUBLE","DROP","ELSE","END","EXCHANGE","EXISTS","EXTENDED","EXTERNAL","FALSE","FETCH","FLOAT","FOLLOWING","FOR","FROM","FULL","FUNCTION","GRANT","GROUP","GROUPING","HAVING","IF","IMPORT","IN","INNER","INSERT","INT","INTERSECT","INTERVAL","INTO","IS","JOIN","LATERAL","LEFT","LESS","LIKE","LOCAL","MACRO","MAP","MORE","NONE","NOT","NULL","OF","ON","OR","ORDER","OUT","OUTER","OVER","PARTIALSCAN","PARTITION","PERCENT","PRECEDING","PRESERVE","PROCEDURE","RANGE","READS","REDUCE","REVOKE","RIGHT","ROLLUP","ROW","ROWS","SELECT","SET","SMALLINT","TABLE","TABLESAMPLE","THEN","TIMESTAMP","TO","TRANSFORM","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNION","UNIQUEJOIN","UPDATE","USER","USING","UTC_TMESTAMP","VALUES","VARCHAR","WHEN","WHERE","WINDOW","WITH","COMMIT","ONLY","REGEXP","RLIKE","ROLLBACK","START","CACHE","CONSTRAINT","FOREIGN","PRIMARY","REFERENCES","DAYOFWEEK","EXTRACT","FLOOR","INTEGER","PRECISION","VIEWS","TIME","NUMERIC","SYNC"],fileTypes:["TEXTFILE","SEQUENCEFILE","ORC","CSV","TSV","PARQUET","AVRO","RCFILE","JSONFILE","INPUTFORMAT","OUTPUTFORMAT"]}),J=A(["SELECT [ALL | DISTINCT]"]),q=A(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","SORT BY","CLUSTER BY","DISTRIBUTE BY","LIMIT","INSERT INTO [TABLE]","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED [THEN]","UPDATE SET","INSERT [VALUES]","INSERT OVERWRITE [LOCAL] DIRECTORY","LOAD DATA [LOCAL] INPATH","[OVERWRITE] INTO TABLE","CREATE [MATERIALIZED] VIEW [IF NOT EXISTS]","CREATE [TEMPORARY] [EXTERNAL] TABLE [IF NOT EXISTS]"]),Q=A(["UPDATE","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE","RENAME TO","TRUNCATE [TABLE]","ALTER","CREATE","USE","DESCRIBE","DROP","FETCH","SHOW","STORED AS","STORED BY","ROW FORMAT"]),ee=A(["UNION [ALL | DISTINCT]"]),et=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","LEFT SEMI JOIN"]),en=A(["{ROWS | RANGE} BETWEEN"]),er={tokenizerOptions:{reservedSelect:J,reservedClauses:[...q,...Q],reservedSetOperations:ee,reservedJoins:et,reservedPhrases:en,reservedKeywords:z,reservedFunctionNames:K,extraParens:["[]"],stringTypes:['""-bs',"''-bs"],identTypes:["``"],variableTypes:[{quote:"{}",prefixes:["$"],requirePrefix:!0}],operators:["%","~","^","|","&","<=>","==","!","||"]},formatOptions:{onelineClauses:Q}},eo=v({all:["ACCESSIBLE","ACCOUNT","ACTION","ADD","ADMIN","AFTER","AGAINST","AGGREGATE","ALL","ALGORITHM","ALTER","ALWAYS","ANALYZE","AND","ANY","AS","ASC","ASCII","ASENSITIVE","AT","ATOMIC","AUTHORS","AUTO_INCREMENT","AUTOEXTEND_SIZE","AUTO","AVG","AVG_ROW_LENGTH","BACKUP","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BINLOG","BIT","BLOB","BLOCK","BODY","BOOL","BOOLEAN","BOTH","BTREE","BY","BYTE","CACHE","CALL","CASCADE","CASCADED","CASE","CATALOG_NAME","CHAIN","CHANGE","CHANGED","CHAR","CHARACTER","CHARSET","CHECK","CHECKPOINT","CHECKSUM","CIPHER","CLASS_ORIGIN","CLIENT","CLOB","CLOSE","COALESCE","CODE","COLLATE","COLLATION","COLUMN","COLUMN_NAME","COLUMNS","COLUMN_ADD","COLUMN_CHECK","COLUMN_CREATE","COLUMN_DELETE","COLUMN_GET","COMMENT","COMMIT","COMMITTED","COMPACT","COMPLETION","COMPRESSED","CONCURRENT","CONDITION","CONNECTION","CONSISTENT","CONSTRAINT","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONTAINS","CONTEXT","CONTINUE","CONTRIBUTORS","CONVERT","CPU","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_POS","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CURSOR_NAME","CYCLE","DATA","DATABASE","DATABASES","DATAFILE","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFINER","DELAYED","DELAY_KEY_WRITE","DELETE","DELETE_DOMAIN_ID","DESC","DESCRIBE","DES_KEY_FILE","DETERMINISTIC","DIAGNOSTICS","DIRECTORY","DISABLE","DISCARD","DISK","DISTINCT","DISTINCTROW","DIV","DO","DOUBLE","DO_DOMAIN_IDS","DROP","DUAL","DUMPFILE","DUPLICATE","DYNAMIC","EACH","ELSE","ELSEIF","ELSIF","EMPTY","ENABLE","ENCLOSED","END","ENDS","ENGINE","ENGINES","ENUM","ERROR","ERRORS","ESCAPE","ESCAPED","EVENT","EVENTS","EVERY","EXAMINED","EXCEPT","EXCHANGE","EXCLUDE","EXECUTE","EXCEPTION","EXISTS","EXIT","EXPANSION","EXPIRE","EXPORT","EXPLAIN","EXTENDED","EXTENT_SIZE","FALSE","FAST","FAULTS","FEDERATED","FETCH","FIELDS","FILE","FIRST","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWING","FOLLOWS","FOR","FORCE","FOREIGN","FORMAT","FOUND","FROM","FULL","FULLTEXT","FUNCTION","GENERAL","GENERATED","GET_FORMAT","GET","GLOBAL","GOTO","GRANT","GRANTS","GROUP","HANDLER","HARD","HASH","HAVING","HELP","HIGH_PRIORITY","HISTORY","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IF","IGNORE","IGNORED","IGNORE_DOMAIN_IDS","IGNORE_SERVER_IDS","IMMEDIATE","IMPORT","INTERSECT","IN","INCREMENT","INDEX","INDEXES","INFILE","INITIAL_SIZE","INNER","INOUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTALL","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERVAL","INVISIBLE","INTO","IO","IO_THREAD","IPC","IS","ISOLATION","ISOPEN","ISSUER","ITERATE","INVOKER","JOIN","JSON","JSON_TABLE","KEY","KEYS","KEY_BLOCK_SIZE","KILL","LANGUAGE","LAST","LAST_VALUE","LASTVAL","LEADING","LEAVE","LEAVES","LEFT","LESS","LEVEL","LIKE","LIMIT","LINEAR","LINES","LIST","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCK","LOCKED","LOCKS","LOGFILE","LOGS","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER","MASTER_CONNECT_RETRY","MASTER_DELAY","MASTER_GTID_POS","MASTER_HOST","MASTER_LOG_FILE","MASTER_LOG_POS","MASTER_PASSWORD","MASTER_PORT","MASTER_SERVER_ID","MASTER_SSL","MASTER_SSL_CA","MASTER_SSL_CAPATH","MASTER_SSL_CERT","MASTER_SSL_CIPHER","MASTER_SSL_CRL","MASTER_SSL_CRLPATH","MASTER_SSL_KEY","MASTER_SSL_VERIFY_SERVER_CERT","MASTER_USER","MASTER_USE_GTID","MASTER_HEARTBEAT_PERIOD","MATCH","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_SIZE","MAX_STATEMENT_TIME","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MAXVALUE","MEDIUM","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMORY","MERGE","MESSAGE_TEXT","MICROSECOND","MIDDLEINT","MIGRATE","MINUS","MINUTE","MINUTE_MICROSECOND","MINUTE_SECOND","MINVALUE","MIN_ROWS","MOD","MODE","MODIFIES","MODIFY","MONITOR","MONTH","MUTEX","MYSQL","MYSQL_ERRNO","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NESTED","NEVER","NEW","NEXT","NEXTVAL","NO","NOMAXVALUE","NOMINVALUE","NOCACHE","NOCYCLE","NO_WAIT","NOWAIT","NODEGROUP","NONE","NOT","NOTFOUND","NO_WRITE_TO_BINLOG","NULL","NUMBER","NUMERIC","NVARCHAR","OF","OFFSET","OLD_PASSWORD","ON","ONE","ONLINE","ONLY","OPEN","OPTIMIZE","OPTIONS","OPTION","OPTIONALLY","OR","ORDER","ORDINALITY","OTHERS","OUT","OUTER","OUTFILE","OVER","OVERLAPS","OWNER","PACKAGE","PACK_KEYS","PAGE","PAGE_CHECKSUM","PARSER","PARSE_VCOL_EXPR","PATH","PERIOD","PARTIAL","PARTITION","PARTITIONING","PARTITIONS","PASSWORD","PERSISTENT","PHASE","PLUGIN","PLUGINS","PORT","PORTION","PRECEDES","PRECEDING","PRECISION","PREPARE","PRESERVE","PREV","PREVIOUS","PRIMARY","PRIVILEGES","PROCEDURE","PROCESS","PROCESSLIST","PROFILE","PROFILES","PROXY","PURGE","QUARTER","QUERY","QUICK","RAISE","RANGE","RAW","READ","READ_ONLY","READ_WRITE","READS","REAL","REBUILD","RECOVER","RECURSIVE","REDO_BUFFER_SIZE","REDOFILE","REDUNDANT","REFERENCES","REGEXP","RELAY","RELAYLOG","RELAY_LOG_FILE","RELAY_LOG_POS","RELAY_THREAD","RELEASE","RELOAD","REMOVE","RENAME","REORGANIZE","REPAIR","REPEATABLE","REPLACE","REPLAY","REPLICA","REPLICAS","REPLICA_POS","REPLICATION","REPEAT","REQUIRE","RESET","RESIGNAL","RESTART","RESTORE","RESTRICT","RESUME","RETURNED_SQLSTATE","RETURN","RETURNING","RETURNS","REUSE","REVERSE","REVOKE","RIGHT","RLIKE","ROLE","ROLLBACK","ROLLUP","ROUTINE","ROW","ROWCOUNT","ROWNUM","ROWS","ROWTYPE","ROW_COUNT","ROW_FORMAT","RTREE","SAVEPOINT","SCHEDULE","SCHEMA","SCHEMA_NAME","SCHEMAS","SECOND","SECOND_MICROSECOND","SECURITY","SELECT","SENSITIVE","SEPARATOR","SEQUENCE","SERIAL","SERIALIZABLE","SESSION","SERVER","SET","SETVAL","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMPLE","SKIP","SLAVE","SLAVES","SLAVE_POS","SLOW","SNAPSHOT","SMALLINT","SOCKET","SOFT","SOME","SONAME","SOUNDS","SOURCE","STAGE","STORED","SPATIAL","SPECIFIC","REF_SYSTEM_ID","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQL_NO_CACHE","SQL_SMALL_RESULT","SQL_THREAD","SQL_TSI_SECOND","SQL_TSI_MINUTE","SQL_TSI_HOUR","SQL_TSI_DAY","SQL_TSI_WEEK","SQL_TSI_MONTH","SQL_TSI_QUARTER","SQL_TSI_YEAR","SSL","START","STARTING","STARTS","STATEMENT","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STATUS","STOP","STORAGE","STRAIGHT_JOIN","STRING","SUBCLASS_ORIGIN","SUBJECT","SUBPARTITION","SUBPARTITIONS","SUPER","SUSPEND","SWAPS","SWITCHES","SYSDATE","SYSTEM","SYSTEM_TIME","TABLE","TABLE_NAME","TABLES","TABLESPACE","TABLE_CHECKSUM","TEMPORARY","TEMPTABLE","TERMINATED","TEXT","THAN","THEN","TIES","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TINYBLOB","TINYINT","TINYTEXT","TO","TRAILING","TRANSACTION","TRANSACTIONAL","THREADS","TRIGGER","TRIGGERS","TRUE","TRUNCATE","TYPE","TYPES","UNBOUNDED","UNCOMMITTED","UNDEFINED","UNDO_BUFFER_SIZE","UNDOFILE","UNDO","UNICODE","UNION","UNIQUE","UNKNOWN","UNLOCK","UNINSTALL","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USER_RESOURCES","USE_FRM","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARCHAR2","VARIABLES","VARYING","VIA","VIEW","VIRTUAL","VISIBLE","VERSIONING","WAIT","WARNINGS","WEEK","WEIGHT_STRING","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","X509","XOR","XA","XML","YEAR","YEAR_MONTH","ZEROFILL"]}),ei=v({all:["ADDDATE","ADD_MONTHS","BIT_AND","BIT_OR","BIT_XOR","CAST","COUNT","CUME_DIST","CURDATE","CURTIME","DATE_ADD","DATE_SUB","DATE_FORMAT","DECODE","DENSE_RANK","EXTRACT","FIRST_VALUE","GROUP_CONCAT","JSON_ARRAYAGG","JSON_OBJECTAGG","LAG","LEAD","MAX","MEDIAN","MID","MIN","NOW","NTH_VALUE","NTILE","POSITION","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","ROW_NUMBER","SESSION_USER","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUBDATE","SUBSTR","SUBSTRING","SUM","SYSTEM_USER","TRIM","TRIM_ORACLE","VARIANCE","VAR_POP","VAR_SAMP","ABS","ACOS","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ASIN","ATAN","ATAN2","BENCHMARK","BIN","BINLOG_GTID_POS","BIT_COUNT","BIT_LENGTH","CEIL","CEILING","CHARACTER_LENGTH","CHAR_LENGTH","CHR","COERCIBILITY","COLUMN_CHECK","COLUMN_EXISTS","COLUMN_LIST","COLUMN_JSON","COMPRESS","CONCAT","CONCAT_OPERATOR_ORACLE","CONCAT_WS","CONNECTION_ID","CONV","CONVERT_TZ","COS","COT","CRC32","DATEDIFF","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEGREES","DECODE_HISTOGRAM","DECODE_ORACLE","DES_DECRYPT","DES_ENCRYPT","ELT","ENCODE","ENCRYPT","EXP","EXPORT_SET","EXTRACTVALUE","FIELD","FIND_IN_SET","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GET_LOCK","GREATEST","HEX","IFNULL","INSTR","ISNULL","IS_FREE_LOCK","IS_USED_LOCK","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_COMPACT","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_DETAILED","JSON_EXISTS","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_LOOSE","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_QUERY","JSON_QUOTE","JSON_OBJECT","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_SEARCH","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAST_DAY","LAST_INSERT_ID","LCASE","LEAST","LENGTH","LENGTHB","LN","LOAD_FILE","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LPAD_ORACLE","LTRIM","LTRIM_ORACLE","MAKEDATE","MAKETIME","MAKE_SET","MASTER_GTID_WAIT","MASTER_POS_WAIT","MD5","MONTHNAME","NAME_CONST","NVL","NVL2","OCT","OCTET_LENGTH","ORD","PERIOD_ADD","PERIOD_DIFF","PI","POW","POWER","QUOTE","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","RADIANS","RAND","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPLACE_ORACLE","REVERSE","ROUND","RPAD","RPAD_ORACLE","RTRIM","RTRIM_ORACLE","SEC_TO_TIME","SHA","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SPACE","SQRT","STRCMP","STR_TO_DATE","SUBSTR_ORACLE","SUBSTRING_INDEX","SUBTIME","SYS_GUID","TAN","TIMEDIFF","TIME_FORMAT","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_SECONDS","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UUID","UUID_SHORT","VERSION","WEEKDAY","WEEKOFYEAR","WSREP_LAST_WRITTEN_GTID","WSREP_LAST_SEEN_GTID","WSREP_SYNC_WAIT_UPTO_GTID","YEARWEEK","COALESCE","NULLIF","TINYINT","SMALLINT","MEDIUMINT","INT","INTEGER","BIGINT","DECIMAL","DEC","NUMERIC","FIXED","FLOAT","DOUBLE","DOUBLE PRECISION","REAL","BIT","BINARY","BLOB","CHAR","NATIONAL CHAR","CHAR BYTE","ENUM","VARBINARY","VARCHAR","NATIONAL VARCHAR","TIME","DATETIME","TIMESTAMP","YEAR"]}),ea=A(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),es=A(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO]","REPLACE [LOW_PRIORITY | DELAYED] [INTO]","VALUES","SET","CREATE [OR REPLACE] [SQL SECURITY DEFINER | SQL SECURITY INVOKER] VIEW [IF NOT EXISTS]","CREATE [OR REPLACE] [TEMPORARY] TABLE [IF NOT EXISTS]","RETURNING"]),el=A(["UPDATE [LOW_PRIORITY] [IGNORE]","DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER [ONLINE] [IGNORE] TABLE [IF EXISTS]","ADD [COLUMN] [IF NOT EXISTS]","{CHANGE | MODIFY} [COLUMN] [IF EXISTS]","DROP [COLUMN] [IF EXISTS]","RENAME [TO]","RENAME COLUMN","ALTER [COLUMN]","{SET | DROP} DEFAULT","SET {VISIBLE | INVISIBLE}","TRUNCATE [TABLE]","ALTER DATABASE","ALTER DATABASE COMMENT","ALTER EVENT","ALTER FUNCTION","ALTER PROCEDURE","ALTER SCHEMA","ALTER SCHEMA COMMENT","ALTER SEQUENCE","ALTER SERVER","ALTER USER","ALTER VIEW","ANALYZE","ANALYZE TABLE","BACKUP LOCK","BACKUP STAGE","BACKUP UNLOCK","BEGIN","BINLOG","CACHE INDEX","CALL","CHANGE MASTER TO","CHECK TABLE","CHECK VIEW","CHECKSUM TABLE","COMMIT","CREATE AGGREGATE FUNCTION","CREATE DATABASE","CREATE EVENT","CREATE FUNCTION","CREATE INDEX","CREATE PROCEDURE","CREATE ROLE","CREATE SEQUENCE","CREATE SERVER","CREATE SPATIAL INDEX","CREATE TRIGGER","CREATE UNIQUE INDEX","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DROP DATABASE","DROP EVENT","DROP FUNCTION","DROP INDEX","DROP PREPARE","DROP PROCEDURE","DROP ROLE","DROP SEQUENCE","DROP SERVER","DROP TRIGGER","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","GET DIAGNOSTICS","GET DIAGNOSTICS CONDITION","GRANT","HANDLER","HELP","INSTALL PLUGIN","INSTALL SONAME","KILL","LOAD DATA INFILE","LOAD INDEX INTO CACHE","LOAD XML INFILE","LOCK TABLE","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","PURGE MASTER LOGS","RELEASE SAVEPOINT","RENAME TABLE","RENAME USER","REPAIR TABLE","REPAIR VIEW","RESET MASTER","RESET QUERY CACHE","RESET REPLICA","RESET SLAVE","RESIGNAL","REVOKE","ROLLBACK","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET GLOBAL TRANSACTION","SET NAMES","SET PASSWORD","SET ROLE","SET STATEMENT","SET TRANSACTION","SHOW","SHOW ALL REPLICAS STATUS","SHOW ALL SLAVES STATUS","SHOW AUTHORS","SHOW BINARY LOGS","SHOW BINLOG EVENTS","SHOW BINLOG STATUS","SHOW CHARACTER SET","SHOW CLIENT_STATISTICS","SHOW COLLATION","SHOW COLUMNS","SHOW CONTRIBUTORS","SHOW CREATE DATABASE","SHOW CREATE EVENT","SHOW CREATE FUNCTION","SHOW CREATE PACKAGE","SHOW CREATE PACKAGE BODY","SHOW CREATE PROCEDURE","SHOW CREATE SEQUENCE","SHOW CREATE TABLE","SHOW CREATE TRIGGER","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINE INNODB STATUS","SHOW ENGINES","SHOW ERRORS","SHOW EVENTS","SHOW EXPLAIN","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW INDEXES","SHOW INDEX_STATISTICS","SHOW KEYS","SHOW LOCALES","SHOW MASTER LOGS","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PACKAGE BODY CODE","SHOW PACKAGE BODY STATUS","SHOW PACKAGE STATUS","SHOW PLUGINS","SHOW PLUGINS SONAME","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW QUERY_RESPONSE_TIME","SHOW RELAYLOG EVENTS","SHOW REPLICA","SHOW REPLICA HOSTS","SHOW REPLICA STATUS","SHOW SCHEMAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW SLAVE STATUS","SHOW STATUS","SHOW STORAGE ENGINES","SHOW TABLE STATUS","SHOW TABLES","SHOW TRIGGERS","SHOW USER_STATISTICS","SHOW VARIABLES","SHOW WARNINGS","SHOW WSREP_MEMBERSHIP","SHOW WSREP_STATUS","SHUTDOWN","SIGNAL","START ALL REPLICAS","START ALL SLAVES","START REPLICA","START SLAVE","START TRANSACTION","STOP ALL REPLICAS","STOP ALL SLAVES","STOP REPLICA","STOP SLAVE","UNINSTALL PLUGIN","UNINSTALL SONAME","UNLOCK TABLE","USE","XA BEGIN","XA COMMIT","XA END","XA PREPARE","XA RECOVER","XA ROLLBACK","XA START"]),eE=A(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]","MINUS [ALL | DISTINCT]"]),ec=A(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),eu=A(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","CHARACTER SET","{ROWS | RANGE} BETWEEN"]),eT={tokenizerOptions:{reservedSelect:ea,reservedClauses:[...es,...el],reservedSetOperations:eE,reservedJoins:ec,reservedPhrases:eu,supportsXor:!0,reservedKeywords:eo,reservedFunctionNames:ei,stringTypes:['""-qq-bs',"''-qq-bs",{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_.$]+"},{quote:'""-qq-bs',prefixes:["@"],requirePrefix:!0},{quote:"''-qq-bs",prefixes:["@"],requirePrefix:!0},{quote:"``",prefixes:["@"],requirePrefix:!0}],paramTypes:{positional:!0},lineCommentTypes:["--","#"],operators:["%",":=","&","|","^","~","<<",">>","<=>","&&","||","!"],postProcess:function(e){return e.map((t,n)=>{let o=e[n+1]||u;return R.SET(t)&&"("===o.text?{...t,type:r.RESERVED_FUNCTION_NAME}:t})}},formatOptions:{onelineClauses:el}},eR=v({all:["ACCESSIBLE","ACCOUNT","ACTION","ACTIVE","ADD","ADMIN","AFTER","AGAINST","AGGREGATE","ALGORITHM","ALL","ALTER","ALWAYS","ANALYZE","AND","ANY","ARRAY","AS","ASC","ASCII","ASENSITIVE","AT","ATTRIBUTE","AUTHENTICATION","AUTOEXTEND_SIZE","AUTO_INCREMENT","AVG","AVG_ROW_LENGTH","BACKUP","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BINLOG","BIT","BLOB","BLOCK","BOOL","BOOLEAN","BOTH","BTREE","BUCKETS","BY","BYTE","CACHE","CALL","CASCADE","CASCADED","CASE","CATALOG_NAME","CHAIN","CHALLENGE_RESPONSE","CHANGE","CHANGED","CHANNEL","CHAR","CHARACTER","CHARSET","CHECK","CHECKSUM","CIPHER","CLASS_ORIGIN","CLIENT","CLONE","CLOSE","COALESCE","CODE","COLLATE","COLLATION","COLUMN","COLUMNS","COLUMN_FORMAT","COLUMN_NAME","COMMENT","COMMIT","COMMITTED","COMPACT","COMPLETION","COMPONENT","COMPRESSED","COMPRESSION","CONCURRENT","CONDITION","CONNECTION","CONSISTENT","CONSTRAINT","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONTAINS","CONTEXT","CONTINUE","CONVERT","CPU","CREATE","CROSS","CUBE","CUME_DIST","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CURSOR_NAME","DATA","DATABASE","DATABASES","DATAFILE","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULT_AUTH","DEFINER","DEFINITION","DELAYED","DELAY_KEY_WRITE","DELETE","DENSE_RANK","DESC","DESCRIBE","DESCRIPTION","DETERMINISTIC","DIAGNOSTICS","DIRECTORY","DISABLE","DISCARD","DISK","DISTINCT","DISTINCTROW","DIV","DO","DOUBLE","DROP","DUAL","DUMPFILE","DUPLICATE","DYNAMIC","EACH","ELSE","ELSEIF","EMPTY","ENABLE","ENCLOSED","ENCRYPTION","END","ENDS","ENFORCED","ENGINE","ENGINES","ENGINE_ATTRIBUTE","ENUM","ERROR","ERRORS","ESCAPE","ESCAPED","EVENT","EVENTS","EVERY","EXCEPT","EXCHANGE","EXCLUDE","EXECUTE","EXISTS","EXIT","EXPANSION","EXPIRE","EXPLAIN","EXPORT","EXTENDED","EXTENT_SIZE","FACTOR","FAILED_LOGIN_ATTEMPTS","FALSE","FAST","FAULTS","FETCH","FIELDS","FILE","FILE_BLOCK_SIZE","FILTER","FINISH","FIRST","FIRST_VALUE","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWING","FOLLOWS","FOR","FORCE","FOREIGN","FORMAT","FOUND","FROM","FULL","FULLTEXT","FUNCTION","GENERAL","GENERATED","GEOMCOLLECTION","GEOMETRY","GEOMETRYCOLLECTION","GET","GET_FORMAT","GET_MASTER_PUBLIC_KEY","GET_SOURCE_PUBLIC_KEY","GLOBAL","GRANT","GRANTS","GROUP","GROUPING","GROUPS","GROUP_REPLICATION","GTID_ONLY","HANDLER","HASH","HAVING","HELP","HIGH_PRIORITY","HISTOGRAM","HISTORY","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IF","IGNORE","IGNORE_SERVER_IDS","IMPORT","IN","INACTIVE","INDEX","INDEXES","INFILE","INITIAL","INITIAL_SIZE","INITIATE","INNER","INOUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTALL","INSTANCE","IN","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERSECT","INTERVAL","INTO","INVISIBLE","INVOKER","IO","IO_AFTER_GTIDS","IO_BEFORE_GTIDS","IO_THREAD","IPC","IS","ISOLATION","ISSUER","ITERATE","JOIN","JSON","JSON_TABLE","JSON_VALUE","KEY","KEYRING","KEYS","KEY_BLOCK_SIZE","KILL","LAG","LANGUAGE","LAST","LAST_VALUE","LATERAL","LEAD","LEADING","LEAVE","LEAVES","LEFT","LESS","LEVEL","LIKE","LIMIT","LINEAR","LINES","LINESTRING","LIST","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCK","LOCKED","LOCKS","LOGFILE","LOGS","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER","MASTER_AUTO_POSITION","MASTER_BIND","MASTER_COMPRESSION_ALGORITHMS","MASTER_CONNECT_RETRY","MASTER_DELAY","MASTER_HEARTBEAT_PERIOD","MASTER_HOST","MASTER_LOG_FILE","MASTER_LOG_POS","MASTER_PASSWORD","MASTER_PORT","MASTER_PUBLIC_KEY_PATH","MASTER_RETRY_COUNT","MASTER_SSL","MASTER_SSL_CA","MASTER_SSL_CAPATH","MASTER_SSL_CERT","MASTER_SSL_CIPHER","MASTER_SSL_CRL","MASTER_SSL_CRLPATH","MASTER_SSL_KEY","MASTER_SSL_VERIFY_SERVER_CERT","MASTER_TLS_CIPHERSUITES","MASTER_TLS_VERSION","MASTER_USER","MASTER_ZSTD_COMPRESSION_LEVEL","MATCH","MAXVALUE","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_SIZE","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MEDIUM","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMBER","MEMORY","MERGE","MESSAGE_TEXT","MICROSECOND","MIDDLEINT","MIGRATE","MINUTE","MINUTE_MICROSECOND","MINUTE_SECOND","MIN_ROWS","MOD","MODE","MODIFIES","MODIFY","MONTH","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","MUTEX","MYSQL_ERRNO","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NDB","NDBCLUSTER","NESTED","NETWORK_NAMESPACE","NEVER","NEW","NEXT","NO","NODEGROUP","NONE","NOT","NOWAIT","NO_WAIT","NO_WRITE_TO_BINLOG","NTH_VALUE","NTILE","NULL","NULLS","NUMBER","NUMERIC","NVARCHAR","OF","OFF","OFFSET","OJ","OLD","ON","ONE","ONLY","OPEN","OPTIMIZE","OPTIMIZER_COSTS","OPTION","OPTIONAL","OPTIONALLY","OPTIONS","OR","ORDER","ORDINALITY","ORGANIZATION","OTHERS","OUT","OUTER","OUTFILE","OVER","OWNER","PACK_KEYS","PAGE","PARSER","PARTIAL","PARTITION","PARTITIONING","PARTITIONS","PASSWORD","PASSWORD_LOCK_TIME","PATH","PERCENT_RANK","PERSIST","PERSIST_ONLY","PHASE","PLUGIN","PLUGINS","PLUGIN_DIR","POINT","POLYGON","PORT","PRECEDES","PRECEDING","PRECISION","PREPARE","PRESERVE","PREV","PRIMARY","PRIVILEGES","PRIVILEGE_CHECKS_USER","PROCEDURE","PROCESS","PROCESSLIST","PROFILE","PROFILES","PROXY","PURGE","QUARTER","QUERY","QUICK","RANDOM","RANGE","RANK","READ","READS","READ_ONLY","READ_WRITE","REAL","REBUILD","RECOVER","RECURSIVE","REDO_BUFFER_SIZE","REDUNDANT","REFERENCE","REFERENCES","REGEXP","REGISTRATION","RELAY","RELAYLOG","RELAY_LOG_FILE","RELAY_LOG_POS","RELAY_THREAD","RELEASE","RELOAD","REMOVE","RENAME","REORGANIZE","REPAIR","REPEAT","REPEATABLE","REPLACE","REPLICA","REPLICAS","REPLICATE_DO_DB","REPLICATE_DO_TABLE","REPLICATE_IGNORE_DB","REPLICATE_IGNORE_TABLE","REPLICATE_REWRITE_DB","REPLICATE_WILD_DO_TABLE","REPLICATE_WILD_IGNORE_TABLE","REPLICATION","REQUIRE","REQUIRE_ROW_FORMAT","RESET","RESIGNAL","RESOURCE","RESPECT","RESTART","RESTORE","RESTRICT","RESUME","RETAIN","RETURN","RETURNED_SQLSTATE","RETURNING","RETURNS","REUSE","REVERSE","REVOKE","RIGHT","RLIKE","ROLE","ROLLBACK","ROLLUP","ROTATE","ROUTINE","ROW","ROWS","ROW_COUNT","ROW_FORMAT","ROW_NUMBER","RTREE","SAVEPOINT","SCHEDULE","SCHEMA","SCHEMAS","SCHEMA_NAME","SECOND","SECONDARY","SECONDARY_ENGINE","SECONDARY_ENGINE_ATTRIBUTE","SECONDARY_LOAD","SECONDARY_UNLOAD","SECOND_MICROSECOND","SECURITY","SELECT","SENSITIVE","SEPARATOR","SERIAL","SERIALIZABLE","SERVER","SESSION","SET","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMPLE","SKIP","SLAVE","SLOW","SMALLINT","SNAPSHOT","SOCKET","SOME","SONAME","SOUNDS","SOURCE","SOURCE_AUTO_POSITION","SOURCE_BIND","SOURCE_COMPRESSION_ALGORITHMS","SOURCE_CONNECT_RETRY","SOURCE_DELAY","SOURCE_HEARTBEAT_PERIOD","SOURCE_HOST","SOURCE_LOG_FILE","SOURCE_LOG_POS","SOURCE_PASSWORD","SOURCE_PORT","SOURCE_PUBLIC_KEY_PATH","SOURCE_RETRY_COUNT","SOURCE_SSL","SOURCE_SSL_CA","SOURCE_SSL_CAPATH","SOURCE_SSL_CERT","SOURCE_SSL_CIPHER","SOURCE_SSL_CRL","SOURCE_SSL_CRLPATH","SOURCE_SSL_KEY","SOURCE_SSL_VERIFY_SERVER_CERT","SOURCE_TLS_CIPHERSUITES","SOURCE_TLS_VERSION","SOURCE_USER","SOURCE_ZSTD_COMPRESSION_LEVEL","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_AFTER_GTIDS","SQL_AFTER_MTS_GAPS","SQL_BEFORE_GTIDS","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CALC_FOUND_ROWS","SQL_NO_CACHE","SQL_SMALL_RESULT","SQL_THREAD","SQL_TSI_DAY","SQL_TSI_HOUR","SQL_TSI_MINUTE","SQL_TSI_MONTH","SQL_TSI_QUARTER","SQL_TSI_SECOND","SQL_TSI_WEEK","SQL_TSI_YEAR","SRID","SSL","STACKED","START","STARTING","STARTS","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STATUS","STOP","STORAGE","STORED","STRAIGHT_JOIN","STREAM","STRING","SUBCLASS_ORIGIN","SUBJECT","SUBPARTITION","SUBPARTITIONS","SUPER","SUSPEND","SWAPS","SWITCHES","SYSTEM","TABLE","TABLES","TABLESPACE","TABLE_CHECKSUM","TABLE_NAME","TEMPORARY","TEMPTABLE","TERMINATED","TEXT","THAN","THEN","THREAD_PRIORITY","TIES","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TINYBLOB","TINYINT","TINYTEXT","TLS","TO","TRAILING","TRANSACTION","TRIGGER","TRIGGERS","TRUE","TRUNCATE","TYPE","TYPES","UNBOUNDED","UNCOMMITTED","UNDEFINED","UNDO","UNDOFILE","UNDO_BUFFER_SIZE","UNICODE","UNINSTALL","UNION","UNIQUE","UNKNOWN","UNLOCK","UNREGISTER","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USER_RESOURCES","USE_FRM","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALIDATION","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARIABLES","VARYING","VCPU","VIEW","VIRTUAL","VISIBLE","WAIT","WARNINGS","WEEK","WEIGHT_STRING","WHEN","WHERE","WHILE","WINDOW","WITH","WITHOUT","WORK","WRAPPER","WRITE","X509","XA","XID","XML","XOR","YEAR","YEAR_MONTH","ZEROFILL","ZONE"]}),ed=v({all:["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","ASCII","ASIN","ATAN","ATAN2","AVG","BENCHMARK","BIN","BIN_TO_UUID","BINARY","BIT_AND","BIT_COUNT","BIT_LENGTH","BIT_OR","BIT_XOR","CAN_ACCESS_COLUMN","CAN_ACCESS_DATABASE","CAN_ACCESS_TABLE","CAN_ACCESS_USER","CAN_ACCESS_VIEW","CAST","CEIL","CEILING","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COMPRESS","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CRC32","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEFAULT","DEGREES","DENSE_RANK","DIV","ELT","EXP","EXPORT_SET","EXTRACT","EXTRACTVALUE","FIELD","FIND_IN_SET","FIRST_VALUE","FLOOR","FORMAT","FORMAT_BYTES","FORMAT_PICO_TIME","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOMCOLLECTION","GEOMETRYCOLLECTION","GET_DD_COLUMN_PRIVILEGES","GET_DD_CREATE_OPTIONS","GET_DD_INDEX_SUB_PART_LENGTH","GET_FORMAT","GET_LOCK","GREATEST","GROUP_CONCAT","GROUPING","GTID_SUBSET","GTID_SUBTRACT","HEX","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INSERT","INSTR","INTERNAL_AUTO_INCREMENT","INTERNAL_AVG_ROW_LENGTH","INTERNAL_CHECK_TIME","INTERNAL_CHECKSUM","INTERNAL_DATA_FREE","INTERNAL_DATA_LENGTH","INTERNAL_DD_CHAR_LENGTH","INTERNAL_GET_COMMENT_OR_ERROR","INTERNAL_GET_ENABLED_ROLE_JSON","INTERNAL_GET_HOSTNAME","INTERNAL_GET_USERNAME","INTERNAL_GET_VIEW_WARNING_OR_ERROR","INTERNAL_INDEX_COLUMN_CARDINALITY","INTERNAL_INDEX_LENGTH","INTERNAL_IS_ENABLED_ROLE","INTERNAL_IS_MANDATORY_ROLE","INTERNAL_KEYS_DISABLED","INTERNAL_MAX_DATA_LENGTH","INTERNAL_TABLE_ROWS","INTERNAL_UPDATE_TIME","INTERVAL","IS","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS NOT","IS NOT NULL","IS NULL","IS_USED_LOCK","IS_UUID","ISNULL","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_ARRAYAGG","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_OBJECTAGG","JSON_OVERLAPS","JSON_PRETTY","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SCHEMA_VALID","JSON_SCHEMA_VALIDATION_REPORT","JSON_SEARCH","JSON_SET","JSON_STORAGE_FREE","JSON_STORAGE_SIZE","JSON_TABLE","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAG","LAST_DAY","LAST_INSERT_ID","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LINESTRING","LN","LOAD_FILE","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","MAKE_SET","MAKEDATE","MAKETIME","MASTER_POS_WAIT","MATCH","MAX","MBRCONTAINS","MBRCOVEREDBY","MBRCOVERS","MBRDISJOINT","MBREQUALS","MBRINTERSECTS","MBROVERLAPS","MBRTOUCHES","MBRWITHIN","MD5","MEMBER OF","MICROSECOND","MID","MIN","MINUTE","MOD","MONTH","MONTHNAME","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","NAME_CONST","NOT","NOT IN","NOT LIKE","NOT REGEXP","NOW","NTH_VALUE","NTILE","NULLIF","OCT","OCTET_LENGTH","ORD","PERCENT_RANK","PERIOD_ADD","PERIOD_DIFF","PI","POINT","POLYGON","POSITION","POW","POWER","PS_CURRENT_THREAD_ID","PS_THREAD_ID","QUARTER","QUOTE","RADIANS","RAND","RANDOM_BYTES","RANK","REGEXP","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROLES_GRAPHML","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCHEMA","SEC_TO_TIME","SECOND","SESSION_USER","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","ST_AREA","ST_ASBINARY","ST_ASGEOJSON","ST_ASTEXT","ST_BUFFER","ST_BUFFER_STRATEGY","ST_CENTROID","ST_COLLECT","ST_CONTAINS","ST_CONVEXHULL","ST_CROSSES","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DISTANCE_SPHERE","ST_ENDPOINT","ST_ENVELOPE","ST_EQUALS","ST_EXTERIORRING","ST_FRECHETDISTANCE","ST_GEOHASH","ST_GEOMCOLLFROMTEXT","ST_GEOMCOLLFROMWKB","ST_GEOMETRYN","ST_GEOMETRYTYPE","ST_GEOMFROMGEOJSON","ST_GEOMFROMTEXT","ST_GEOMFROMWKB","ST_HAUSDORFFDISTANCE","ST_INTERIORRINGN","ST_INTERSECTION","ST_INTERSECTS","ST_ISCLOSED","ST_ISEMPTY","ST_ISSIMPLE","ST_ISVALID","ST_LATFROMGEOHASH","ST_LATITUDE","ST_LENGTH","ST_LINEFROMTEXT","ST_LINEFROMWKB","ST_LINEINTERPOLATEPOINT","ST_LINEINTERPOLATEPOINTS","ST_LONGFROMGEOHASH","ST_LONGITUDE","ST_MAKEENVELOPE","ST_MLINEFROMTEXT","ST_MLINEFROMWKB","ST_MPOINTFROMTEXT","ST_MPOINTFROMWKB","ST_MPOLYFROMTEXT","ST_MPOLYFROMWKB","ST_NUMGEOMETRIES","ST_NUMINTERIORRING","ST_NUMPOINTS","ST_OVERLAPS","ST_POINTATDISTANCE","ST_POINTFROMGEOHASH","ST_POINTFROMTEXT","ST_POINTFROMWKB","ST_POINTN","ST_POLYFROMTEXT","ST_POLYFROMWKB","ST_SIMPLIFY","ST_SRID","ST_STARTPOINT","ST_SWAPXY","ST_SYMDIFFERENCE","ST_TOUCHES","ST_TRANSFORM","ST_UNION","ST_VALIDATE","ST_WITHIN","ST_X","ST_Y","STATEMENT_DIGEST","STATEMENT_DIGEST_TEXT","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","STRCMP","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUBTIME","SUM","SYSDATE","SYSTEM_USER","TAN","TIME","TIME_FORMAT","TIME_TO_SEC","TIMEDIFF","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TO_BASE64","TO_DAYS","TO_SECONDS","TRIM","TRUNCATE","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","USER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","UUID_SHORT","UUID_TO_BIN","VALIDATE_PASSWORD_STRENGTH","VALUES","VAR_POP","VAR_SAMP","VARIANCE","VERSION","WAIT_FOR_EXECUTED_GTID_SET","WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS","WEEK","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","YEAR","YEARWEEK","BIT","TINYINT","SMALLINT","MEDIUMINT","INT","INTEGER","BIGINT","DECIMAL","DEC","NUMERIC","FIXED","FLOAT","DOUBLE","DOUBLE PRECISION","REAL","DATETIME","TIMESTAMP","TIME","YEAR","CHAR","NATIONAL CHAR","VARCHAR","NATIONAL VARCHAR","BINARY","VARBINARY","BLOB","TEXT","ENUM"]}),ef=A(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),eA=A(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO]","REPLACE [LOW_PRIORITY | DELAYED] [INTO]","VALUES","SET","CREATE [OR REPLACE] [SQL SECURITY DEFINER | SQL SECURITY INVOKER] VIEW [IF NOT EXISTS]","CREATE [TEMPORARY] TABLE [IF NOT EXISTS]"]),eS=A(["UPDATE [LOW_PRIORITY] [IGNORE]","DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER TABLE","ADD [COLUMN]","{CHANGE | MODIFY} [COLUMN]","DROP [COLUMN]","RENAME [TO | AS]","RENAME COLUMN","ALTER [COLUMN]","{SET | DROP} DEFAULT","TRUNCATE [TABLE]","ALTER DATABASE","ALTER EVENT","ALTER FUNCTION","ALTER INSTANCE","ALTER LOGFILE GROUP","ALTER PROCEDURE","ALTER RESOURCE GROUP","ALTER SERVER","ALTER TABLESPACE","ALTER USER","ALTER VIEW","ANALYZE TABLE","BINLOG","CACHE INDEX","CALL","CHANGE MASTER TO","CHANGE REPLICATION FILTER","CHANGE REPLICATION SOURCE TO","CHECK TABLE","CHECKSUM TABLE","CLONE","COMMIT","CREATE DATABASE","CREATE EVENT","CREATE FUNCTION","CREATE FUNCTION","CREATE INDEX","CREATE LOGFILE GROUP","CREATE PROCEDURE","CREATE RESOURCE GROUP","CREATE ROLE","CREATE SERVER","CREATE SPATIAL REFERENCE SYSTEM","CREATE TABLESPACE","CREATE TRIGGER","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DROP DATABASE","DROP EVENT","DROP FUNCTION","DROP FUNCTION","DROP INDEX","DROP LOGFILE GROUP","DROP PROCEDURE","DROP RESOURCE GROUP","DROP ROLE","DROP SERVER","DROP SPATIAL REFERENCE SYSTEM","DROP TABLESPACE","DROP TRIGGER","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","GRANT","HANDLER","HELP","IMPORT TABLE","INSTALL COMPONENT","INSTALL PLUGIN","KILL","LOAD DATA","LOAD INDEX INTO CACHE","LOAD XML","LOCK INSTANCE FOR BACKUP","LOCK TABLES","MASTER_POS_WAIT","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","RELEASE SAVEPOINT","RENAME TABLE","RENAME USER","REPAIR TABLE","RESET","RESET MASTER","RESET PERSIST","RESET REPLICA","RESET SLAVE","RESTART","REVOKE","ROLLBACK","ROLLBACK TO SAVEPOINT","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET NAMES","SET PASSWORD","SET RESOURCE GROUP","SET ROLE","SET TRANSACTION","SHOW","SHOW BINARY LOGS","SHOW BINLOG EVENTS","SHOW CHARACTER SET","SHOW COLLATION","SHOW COLUMNS","SHOW CREATE DATABASE","SHOW CREATE EVENT","SHOW CREATE FUNCTION","SHOW CREATE PROCEDURE","SHOW CREATE TABLE","SHOW CREATE TRIGGER","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINES","SHOW ERRORS","SHOW EVENTS","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PLUGINS","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW RELAYLOG EVENTS","SHOW REPLICA STATUS","SHOW REPLICAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW STATUS","SHOW TABLE STATUS","SHOW TABLES","SHOW TRIGGERS","SHOW VARIABLES","SHOW WARNINGS","SHUTDOWN","SOURCE_POS_WAIT","START GROUP_REPLICATION","START REPLICA","START SLAVE","START TRANSACTION","STOP GROUP_REPLICATION","STOP REPLICA","STOP SLAVE","TABLE","UNINSTALL COMPONENT","UNINSTALL PLUGIN","UNLOCK INSTANCE","UNLOCK TABLES","USE","XA","ITERATE","LEAVE","LOOP","REPEAT","RETURN","WHILE"]),eO=A(["UNION [ALL | DISTINCT]"]),ep=A(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),eN=A(["ON {UPDATE | DELETE} [SET NULL]","CHARACTER SET","{ROWS | RANGE} BETWEEN"]),eI={tokenizerOptions:{reservedSelect:ef,reservedClauses:[...eA,...eS],reservedSetOperations:eO,reservedJoins:ep,reservedPhrases:eN,supportsXor:!0,reservedKeywords:eR,reservedFunctionNames:ed,stringTypes:['""-qq-bs',{quote:"''-qq-bs",prefixes:["N"]},{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_.$]+"},{quote:'""-qq-bs',prefixes:["@"],requirePrefix:!0},{quote:"''-qq-bs",prefixes:["@"],requirePrefix:!0},{quote:"``",prefixes:["@"],requirePrefix:!0}],paramTypes:{positional:!0},lineCommentTypes:["--","#"],operators:["%",":=","&","|","^","~","<<",">>","<=>","->","->>","&&","||","!"],postProcess:function(e){return e.map((t,n)=>{let o=e[n+1]||u;return R.SET(t)&&"("===o.text?{...t,type:r.RESERVED_FUNCTION_NAME}:t})}},formatOptions:{onelineClauses:eS}},eh=v({all:["ABORT","ABS","ACOS","ADVISOR","ARRAY_AGG","ARRAY_AGG","ARRAY_APPEND","ARRAY_AVG","ARRAY_BINARY_SEARCH","ARRAY_CONCAT","ARRAY_CONTAINS","ARRAY_COUNT","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_FLATTEN","ARRAY_IFNULL","ARRAY_INSERT","ARRAY_INTERSECT","ARRAY_LENGTH","ARRAY_MAX","ARRAY_MIN","ARRAY_MOVE","ARRAY_POSITION","ARRAY_PREPEND","ARRAY_PUT","ARRAY_RANGE","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_REPLACE","ARRAY_REVERSE","ARRAY_SORT","ARRAY_STAR","ARRAY_SUM","ARRAY_SYMDIFF","ARRAY_SYMDIFF1","ARRAY_SYMDIFFN","ARRAY_UNION","ASIN","ATAN","ATAN2","AVG","BASE64","BASE64_DECODE","BASE64_ENCODE","BITAND ","BITCLEAR ","BITNOT ","BITOR ","BITSET ","BITSHIFT ","BITTEST ","BITXOR ","CEIL","CLOCK_LOCAL","CLOCK_MILLIS","CLOCK_STR","CLOCK_TZ","CLOCK_UTC","COALESCE","CONCAT","CONCAT2","CONTAINS","CONTAINS_TOKEN","CONTAINS_TOKEN_LIKE","CONTAINS_TOKEN_REGEXP","COS","COUNT","COUNT","COUNTN","CUME_DIST","CURL","DATE_ADD_MILLIS","DATE_ADD_STR","DATE_DIFF_MILLIS","DATE_DIFF_STR","DATE_FORMAT_STR","DATE_PART_MILLIS","DATE_PART_STR","DATE_RANGE_MILLIS","DATE_RANGE_STR","DATE_TRUNC_MILLIS","DATE_TRUNC_STR","DECODE","DECODE_JSON","DEGREES","DENSE_RANK","DURATION_TO_STR","ENCODED_SIZE","ENCODE_JSON","EXP","FIRST_VALUE","FLOOR","GREATEST","HAS_TOKEN","IFINF","IFMISSING","IFMISSINGORNULL","IFNAN","IFNANORINF","IFNULL","INITCAP","ISARRAY","ISATOM","ISBITSET","ISBOOLEAN","ISNUMBER","ISOBJECT","ISSTRING","LAG","LAST_VALUE","LEAD","LEAST","LENGTH","LN","LOG","LOWER","LTRIM","MAX","MEAN","MEDIAN","META","MILLIS","MILLIS_TO_LOCAL","MILLIS_TO_STR","MILLIS_TO_TZ","MILLIS_TO_UTC","MILLIS_TO_ZONE_NAME","MIN","MISSINGIF","NANIF","NEGINFIF","NOW_LOCAL","NOW_MILLIS","NOW_STR","NOW_TZ","NOW_UTC","NTH_VALUE","NTILE","NULLIF","NVL","NVL2","OBJECT_ADD","OBJECT_CONCAT","OBJECT_INNER_PAIRS","OBJECT_INNER_VALUES","OBJECT_LENGTH","OBJECT_NAMES","OBJECT_PAIRS","OBJECT_PUT","OBJECT_REMOVE","OBJECT_RENAME","OBJECT_REPLACE","OBJECT_UNWRAP","OBJECT_VALUES","PAIRS","PERCENT_RANK","PI","POLY_LENGTH","POSINFIF","POSITION","POWER","RADIANS","RANDOM","RANK","RATIO_TO_REPORT","REGEXP_CONTAINS","REGEXP_LIKE","REGEXP_MATCHES","REGEXP_POSITION","REGEXP_REPLACE","REGEXP_SPLIT","REGEX_CONTAINS","REGEX_LIKE","REGEX_MATCHES","REGEX_POSITION","REGEX_REPLACE","REGEX_SPLIT","REPEAT","REPLACE","REVERSE","ROUND","ROW_NUMBER","RTRIM","SEARCH","SEARCH_META","SEARCH_SCORE","SIGN","SIN","SPLIT","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DURATION","STR_TO_MILLIS","STR_TO_TZ","STR_TO_UTC","STR_TO_ZONE_NAME","SUBSTR","SUFFIXES","SUM","TAN","TITLE","TOARRAY","TOATOM","TOBOOLEAN","TOKENS","TOKENS","TONUMBER","TOOBJECT","TOSTRING","TRIM","TRUNC","UPPER","UUID","VARIANCE","VARIANCE_POP","VARIANCE_SAMP","VAR_POP","VAR_SAMP","WEEKDAY_MILLIS","WEEKDAY_STR","CAST"]}),e_=v({all:["ADVISE","ALL","ALTER","ANALYZE","AND","ANY","ARRAY","AS","ASC","AT","BEGIN","BETWEEN","BINARY","BOOLEAN","BREAK","BUCKET","BUILD","BY","CALL","CASE","CAST","CLUSTER","COLLATE","COLLECTION","COMMIT","COMMITTED","CONNECT","CONTINUE","CORRELATED","COVER","CREATE","CURRENT","DATABASE","DATASET","DATASTORE","DECLARE","DECREMENT","DELETE","DERIVED","DESC","DESCRIBE","DISTINCT","DO","DROP","EACH","ELEMENT","ELSE","END","EVERY","EXCEPT","EXCLUDE","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FILTER","FIRST","FLATTEN","FLUSH","FOLLOWING","FOR","FORCE","FROM","FTS","FUNCTION","GOLANG","GRANT","GROUP","GROUPS","GSI","HASH","HAVING","IF","ISOLATION","IGNORE","ILIKE","IN","INCLUDE","INCREMENT","INDEX","INFER","INLINE","INNER","INSERT","INTERSECT","INTO","IS","JAVASCRIPT","JOIN","KEY","KEYS","KEYSPACE","KNOWN","LANGUAGE","LAST","LEFT","LET","LETTING","LEVEL","LIKE","LIMIT","LSM","MAP","MAPPING","MATCHED","MATERIALIZED","MERGE","MINUS","MISSING","NAMESPACE","NEST","NL","NO","NOT","NTH_VALUE","NULL","NULLS","NUMBER","OBJECT","OFFSET","ON","OPTION","OPTIONS","OR","ORDER","OTHERS","OUTER","OVER","PARSE","PARTITION","PASSWORD","PATH","POOL","PRECEDING","PREPARE","PRIMARY","PRIVATE","PRIVILEGE","PROBE","PROCEDURE","PUBLIC","RANGE","RAW","REALM","REDUCE","RENAME","RESPECT","RETURN","RETURNING","REVOKE","RIGHT","ROLE","ROLLBACK","ROW","ROWS","SATISFIES","SAVEPOINT","SCHEMA","SCOPE","SELECT","SELF","SEMI","SET","SHOW","SOME","START","STATISTICS","STRING","SYSTEM","THEN","TIES","TO","TRAN","TRANSACTION","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNDER","UNION","UNIQUE","UNKNOWN","UNNEST","UNSET","UPDATE","UPSERT","USE","USER","USING","VALIDATE","VALUE","VALUED","VALUES","VIA","VIEW","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WORK","XOR"]}),em=A(["SELECT [ALL | DISTINCT]"]),eC=A(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT INTO","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED THEN","UPDATE SET","INSERT","NEST","UNNEST","RETURNING"]),eL=A(["UPDATE","DELETE FROM","SET SCHEMA","ADVISE","ALTER INDEX","BEGIN TRANSACTION","BUILD INDEX","COMMIT TRANSACTION","CREATE COLLECTION","CREATE FUNCTION","CREATE INDEX","CREATE PRIMARY INDEX","CREATE SCOPE","DROP COLLECTION","DROP FUNCTION","DROP INDEX","DROP PRIMARY INDEX","DROP SCOPE","EXECUTE","EXECUTE FUNCTION","EXPLAIN","GRANT","INFER","PREPARE","REVOKE","ROLLBACK TRANSACTION","SAVEPOINT","SET TRANSACTION","UPDATE STATISTICS","UPSERT","LET","SET CURRENT SCHEMA","SHOW","USE [PRIMARY] KEYS"]),eg=A(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),ev=A(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","INNER JOIN"]),eP=A(["{ROWS | RANGE | GROUPS} BETWEEN"]),ey={tokenizerOptions:{reservedSelect:em,reservedClauses:[...eC,...eL],reservedSetOperations:eg,reservedJoins:ev,reservedPhrases:eP,supportsXor:!0,reservedKeywords:e_,reservedFunctionNames:eh,stringTypes:['""-bs',"''-bs"],identTypes:["``"],extraParens:["[]","{}"],paramTypes:{positional:!0,numbered:["$"],named:["$"]},lineCommentTypes:["#","--"],operators:["%","==",":","||"]},formatOptions:{onelineClauses:eL}},eD=v({all:["ADD","AGENT","AGGREGATE","ALL","ALTER","AND","ANY","ARRAY","ARROW","AS","ASC","AT","ATTRIBUTE","AUTHID","AVG","BEGIN","BETWEEN","BFILE_BASE","BINARY","BLOB_BASE","BLOCK","BODY","BOTH","BOUND","BULK","BY","BYTE","CALL","CALLING","CASCADE","CASE","CHAR","CHAR_BASE","CHARACTER","CHARSET","CHARSETFORM","CHARSETID","CHECK","CLOB_BASE","CLOSE","CLUSTER","CLUSTERS","COLAUTH","COLLECT","COLUMNS","COMMENT","COMMIT","COMMITTED","COMPILED","COMPRESS","CONNECT","CONSTANT","CONSTRUCTOR","CONTEXT","CONVERT","COUNT","CRASH","CREATE","CURRENT","CURSOR","CUSTOMDATUM","DANGLING","DATA","DATE","DATE_BASE","DAY","DECIMAL","DECLARE","DEFAULT","DEFINE","DELETE","DESC","DETERMINISTIC","DISTINCT","DOUBLE","DROP","DURATION","ELEMENT","ELSE","ELSIF","EMPTY","END","ESCAPE","EXCEPT","EXCEPTION","EXCEPTIONS","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXTERNAL","FETCH","FINAL","FIXED","FLOAT","FOR","FORALL","FORCE","FORM","FROM","FUNCTION","GENERAL","GOTO","GRANT","GROUP","HASH","HAVING","HEAP","HIDDEN","HOUR","IDENTIFIED","IF","IMMEDIATE","IN","INCLUDING","INDEX","INDEXES","INDICATOR","INDICES","INFINITE","INSERT","INSTANTIABLE","INT","INTERFACE","INTERSECT","INTERVAL","INTO","INVALIDATE","IS","ISOLATION","JAVA","LANGUAGE","LARGE","LEADING","LENGTH","LEVEL","LIBRARY","LIKE","LIKE2","LIKE4","LIKEC","LIMIT","LIMITED","LOCAL","LOCK","LONG","LOOP","MAP","MAX","MAXLEN","MEMBER","MERGE","MIN","MINUS","MINUTE","MOD","MODE","MODIFY","MONTH","MULTISET","NAME","NAN","NATIONAL","NATIVE","NCHAR","NEW","NOCOMPRESS","NOCOPY","NOT","NOWAIT","NULL","NUMBER_BASE","OBJECT","OCICOLL","OCIDATE","OCIDATETIME","OCIDURATION","OCIINTERVAL","OCILOBLOCATOR","OCINUMBER","OCIRAW","OCIREF","OCIREFCURSOR","OCIROWID","OCISTRING","OCITYPE","OF","ON","ONLY","OPAQUE","OPEN","OPERATOR","OPTION","OR","ORACLE","ORADATA","ORDER","OVERLAPS","ORGANIZATION","ORLANY","ORLVARY","OTHERS","OUT","OVERRIDING","PACKAGE","PARALLEL_ENABLE","PARAMETER","PARAMETERS","PARTITION","PASCAL","PIPE","PIPELINED","PRAGMA","PRECISION","PRIOR","PRIVATE","PROCEDURE","PUBLIC","RAISE","RANGE","RAW","READ","RECORD","REF","REFERENCE","REM","REMAINDER","RENAME","RESOURCE","RESULT","RETURN","RETURNING","REVERSE","REVOKE","ROLLBACK","ROW","SAMPLE","SAVE","SAVEPOINT","SB1","SB2","SB4","SECOND","SEGMENT","SELECT","SELF","SEPARATE","SEQUENCE","SERIALIZABLE","SET","SHARE","SHORT","SIZE","SIZE_T","SOME","SPARSE","SQL","SQLCODE","SQLDATA","SQLNAME","SQLSTATE","STANDARD","START","STATIC","STDDEV","STORED","STRING","STRUCT","STYLE","SUBMULTISET","SUBPARTITION","SUBSTITUTABLE","SUBTYPE","SUM","SYNONYM","TABAUTH","TABLE","TDO","THE","THEN","TIME","TIMESTAMP","TIMEZONE_ABBR","TIMEZONE_HOUR","TIMEZONE_MINUTE","TIMEZONE_REGION","TO","TRAILING","TRANSAC","TRANSACTIONAL","TRUSTED","TYPE","UB1","UB2","UB4","UNDER","UNION","UNIQUE","UNSIGNED","UNTRUSTED","UPDATE","USE","USING","VALIST","VALUE","VALUES","VARIABLE","VARIANCE","VARRAY","VARYING","VIEW","VIEWS","VOID","WHEN","WHERE","WHILE","WITH","WORK","WRAPPED","WRITE","YEAR","ZONE"]}),eM=v({numeric:["ABS","ACOS","ASIN","ATAN","ATAN2","BITAND","CEIL","COS","COSH","EXP","FLOOR","LN","LOG","MOD","NANVL","POWER","REMAINDER","ROUND","SIGN","SIN","SINH","SQRT","TAN","TANH","TRUNC","WIDTH_BUCKET"],character:["CHR","CONCAT","INITCAP","LOWER","LPAD","LTRIM","NLS_INITCAP","NLS_LOWER","NLSSORT","NLS_UPPER","REGEXP_REPLACE","REGEXP_SUBSTR","REPLACE","RPAD","RTRIM","SOUNDEX","SUBSTR","TRANSLATE","TREAT","TRIM","UPPER","NLS_CHARSET_DECL_LEN","NLS_CHARSET_ID","NLS_CHARSET_NAME","ASCII","INSTR","LENGTH","REGEXP_INSTR"],datetime:["ADD_MONTHS","CURRENT_DATE","CURRENT_TIMESTAMP","DBTIMEZONE","EXTRACT","FROM_TZ","LAST_DAY","LOCALTIMESTAMP","MONTHS_BETWEEN","NEW_TIME","NEXT_DAY","NUMTODSINTERVAL","NUMTOYMINTERVAL","ROUND","SESSIONTIMEZONE","SYS_EXTRACT_UTC","SYSDATE","SYSTIMESTAMP","TO_CHAR","TO_TIMESTAMP","TO_TIMESTAMP_TZ","TO_DSINTERVAL","TO_YMINTERVAL","TRUNC","TZ_OFFSET"],comparison:["GREATEST","LEAST"],conversion:["ASCIISTR","BIN_TO_NUM","CAST","CHARTOROWID","COMPOSE","CONVERT","DECOMPOSE","HEXTORAW","NUMTODSINTERVAL","NUMTOYMINTERVAL","RAWTOHEX","RAWTONHEX","ROWIDTOCHAR","ROWIDTONCHAR","SCN_TO_TIMESTAMP","TIMESTAMP_TO_SCN","TO_BINARY_DOUBLE","TO_BINARY_FLOAT","TO_CHAR","TO_CLOB","TO_DATE","TO_DSINTERVAL","TO_LOB","TO_MULTI_BYTE","TO_NCHAR","TO_NCLOB","TO_NUMBER","TO_DSINTERVAL","TO_SINGLE_BYTE","TO_TIMESTAMP","TO_TIMESTAMP_TZ","TO_YMINTERVAL","TO_YMINTERVAL","TRANSLATE","UNISTR"],largeObject:["BFILENAME","EMPTY_BLOB,","EMPTY_CLOB"],collection:["CARDINALITY","COLLECT","POWERMULTISET","POWERMULTISET_BY_CARDINALITY","SET"],hierarchical:["SYS_CONNECT_BY_PATH"],dataMining:["CLUSTER_ID","CLUSTER_PROBABILITY","CLUSTER_SET","FEATURE_ID","FEATURE_SET","FEATURE_VALUE","PREDICTION","PREDICTION_COST","PREDICTION_DETAILS","PREDICTION_PROBABILITY","PREDICTION_SET"],xml:["APPENDCHILDXML","DELETEXML","DEPTH","EXTRACT","EXISTSNODE","EXTRACTVALUE","INSERTCHILDXML","INSERTXMLBEFORE","PATH","SYS_DBURIGEN","SYS_XMLAGG","SYS_XMLGEN","UPDATEXML","XMLAGG","XMLCDATA","XMLCOLATTVAL","XMLCOMMENT","XMLCONCAT","XMLFOREST","XMLPARSE","XMLPI","XMLQUERY","XMLROOT","XMLSEQUENCE","XMLSERIALIZE","XMLTABLE","XMLTRANSFORM"],encoding:["DECODE","DUMP","ORA_HASH","VSIZE"],nullRelated:["COALESCE","LNNVL","NULLIF","NVL","NVL2"],env:["SYS_CONTEXT","SYS_GUID","SYS_TYPEID","UID","USER","USERENV"],aggregate:["AVG","COLLECT","CORR","CORR_S","CORR_K","COUNT","COVAR_POP","COVAR_SAMP","CUME_DIST","DENSE_RANK","FIRST","GROUP_ID","GROUPING","GROUPING_ID","LAST","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","RANK","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","STATS_BINOMIAL_TEST","STATS_CROSSTAB","STATS_F_TEST","STATS_KS_TEST","STATS_MODE","STATS_MW_TEST","STATS_ONE_WAY_ANOVA","STATS_T_TEST_ONE","STATS_T_TEST_PAIRED","STATS_T_TEST_INDEP","STATS_T_TEST_INDEPU","STATS_WSR_TEST","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE"],window:["FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTILE","RATIO_TO_REPORT","ROW_NUMBER"],objectReference:["DEREF","MAKE_REF","REF","REFTOHEX","VALUE"],model:["CV","ITERATION_NUMBER","PRESENTNNV","PRESENTV","PREVIOUS"],dataTypes:["VARCHAR2","NVARCHAR2","NUMBER","FLOAT","TIMESTAMP","INTERVAL YEAR","INTERVAL DAY","RAW","UROWID","NCHAR","CHARACTER","CHAR","CHARACTER VARYING","CHAR VARYING","NATIONAL CHARACTER","NATIONAL CHAR","NATIONAL CHARACTER VARYING","NATIONAL CHAR VARYING","NCHAR VARYING","NUMERIC","DECIMAL","FLOAT","VARCHAR"]}),eb=A(["SELECT [ALL | DISTINCT | UNIQUE]"]),eU=A(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER [SIBLINGS] BY","OFFSET","FETCH {FIRST | NEXT}","FOR UPDATE [OF]","INSERT [INTO | ALL INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [THEN]","UPDATE SET","CREATE [OR REPLACE] [NO FORCE | FORCE] [EDITIONING | EDITIONABLE | EDITIONABLE EDITIONING | NONEDITIONABLE] VIEW","CREATE MATERIALIZED VIEW","CREATE [GLOBAL TEMPORARY | PRIVATE TEMPORARY | SHARDED | DUPLICATED | IMMUTABLE BLOCKCHAIN | BLOCKCHAIN | IMMUTABLE] TABLE","RETURNING"]),ex=A(["UPDATE [ONLY]","DELETE FROM [ONLY]","DROP TABLE","ALTER TABLE","ADD","DROP {COLUMN | UNUSED COLUMNS | COLUMNS CONTINUE}","MODIFY","RENAME TO","RENAME COLUMN","TRUNCATE TABLE","SET SCHEMA","BEGIN","CONNECT BY","DECLARE","EXCEPT","EXCEPTION","LOOP","START WITH"]),ew=A(["UNION [ALL]","EXCEPT","INTERSECT"]),eG=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN","{CROSS | OUTER} APPLY"]),eF=A(["ON {UPDATE | DELETE} [SET NULL]","ON COMMIT","{ROWS | RANGE} BETWEEN"]),eH={tokenizerOptions:{reservedSelect:eb,reservedClauses:[...eU,...ex],reservedSetOperations:ew,reservedJoins:eG,reservedPhrases:eF,supportsXor:!0,reservedKeywords:eD,reservedFunctionNames:eM,stringTypes:[{quote:"''-qq",prefixes:["N"]},{quote:"q''",prefixes:["N"]}],identTypes:['""-qq'],identChars:{rest:"$#"},variableTypes:[{regex:"&{1,2}[A-Za-z][A-Za-z0-9_$#]*"}],paramTypes:{numbered:[":"],named:[":"]},paramChars:{},operators:["**",":=","%","~=","^=",">>","<<","=>","@","||"],postProcess:function(e){let t=u;return e.map(e=>R.SET(e)&&R.BY(t)?{...e,type:r.RESERVED_KEYWORD}:(d(e.type)&&(t=e),e))}},formatOptions:{alwaysDenseOperators:["@"],onelineClauses:ex}},eB=v({math:["ABS","ACOS","ACOSD","ACOSH","ASIN","ASIND","ASINH","ATAN","ATAN2","ATAN2D","ATAND","ATANH","CBRT","CEIL","CEILING","COS","COSD","COSH","COT","COTD","DEGREES","DIV","EXP","FACTORIAL","FLOOR","GCD","LCM","LN","LOG","LOG10","MIN_SCALE","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SCALE","SETSEED","SIGN","SIN","SIND","SINH","SQRT","TAN","TAND","TANH","TRIM_SCALE","TRUNC","WIDTH_BUCKET"],string:["ABS","ASCII","BIT_LENGTH","BTRIM","CHARACTER_LENGTH","CHAR_LENGTH","CHR","CONCAT","CONCAT_WS","FORMAT","INITCAP","LEFT","LENGTH","LOWER","LPAD","LTRIM","MD5","NORMALIZE","OCTET_LENGTH","OVERLAY","PARSE_IDENT","PG_CLIENT_ENCODING","POSITION","QUOTE_IDENT","QUOTE_LITERAL","QUOTE_NULLABLE","REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE","REPEAT","REPLACE","REVERSE","RIGHT","RPAD","RTRIM","SPLIT_PART","SPRINTF","STARTS_WITH","STRING_AGG","STRING_TO_ARRAY","STRING_TO_TABLE","STRPOS","SUBSTR","SUBSTRING","TO_ASCII","TO_HEX","TRANSLATE","TRIM","UNISTR","UPPER"],binary:["BIT_COUNT","BIT_LENGTH","BTRIM","CONVERT","CONVERT_FROM","CONVERT_TO","DECODE","ENCODE","GET_BIT","GET_BYTE","LENGTH","LTRIM","MD5","OCTET_LENGTH","OVERLAY","POSITION","RTRIM","SET_BIT","SET_BYTE","SHA224","SHA256","SHA384","SHA512","STRING_AGG","SUBSTR","SUBSTRING","TRIM"],bitstring:["BIT_COUNT","BIT_LENGTH","GET_BIT","LENGTH","OCTET_LENGTH","OVERLAY","POSITION","SET_BIT","SUBSTRING"],pattern:["REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE"],datatype:["TO_CHAR","TO_DATE","TO_NUMBER","TO_TIMESTAMP"],datetime:["CLOCK_TIMESTAMP","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_BIN","DATE_PART","DATE_TRUNC","EXTRACT","ISFINITE","JUSTIFY_DAYS","JUSTIFY_HOURS","JUSTIFY_INTERVAL","LOCALTIME","LOCALTIMESTAMP","MAKE_DATE","MAKE_INTERVAL","MAKE_TIME","MAKE_TIMESTAMP","MAKE_TIMESTAMPTZ","NOW","PG_SLEEP","PG_SLEEP_FOR","PG_SLEEP_UNTIL","STATEMENT_TIMESTAMP","TIMEOFDAY","TO_TIMESTAMP","TRANSACTION_TIMESTAMP"],enum:["ENUM_FIRST","ENUM_LAST","ENUM_RANGE"],geometry:["AREA","BOUND_BOX","BOX","CENTER","CIRCLE","DIAGONAL","DIAMETER","HEIGHT","ISCLOSED","ISOPEN","LENGTH","LINE","LSEG","NPOINTS","PATH","PCLOSE","POINT","POLYGON","POPEN","RADIUS","SLOPE","WIDTH"],network:["ABBREV","BROADCAST","FAMILY","HOST","HOSTMASK","INET_MERGE","INET_SAME_FAMILY","MACADDR8_SET7BIT","MASKLEN","NETMASK","NETWORK","SET_MASKLEN","TEXT","TRUNC"],textsearch:["ARRAY_TO_TSVECTOR","GET_CURRENT_TS_CONFIG","JSONB_TO_TSVECTOR","JSON_TO_TSVECTOR","LENGTH","NUMNODE","PHRASETO_TSQUERY","PLAINTO_TSQUERY","QUERYTREE","SETWEIGHT","STRIP","TO_TSQUERY","TO_TSVECTOR","TSQUERY_PHRASE","TSVECTOR_TO_ARRAY","TS_DEBUG","TS_DELETE","TS_FILTER","TS_HEADLINE","TS_LEXIZE","TS_PARSE","TS_RANK","TS_RANK_CD","TS_REWRITE","TS_STAT","TS_TOKEN_TYPE","WEBSEARCH_TO_TSQUERY"],uuid:["UUID"],xml:["CURSOR_TO_XML","CURSOR_TO_XMLSCHEMA","DATABASE_TO_XML","DATABASE_TO_XMLSCHEMA","DATABASE_TO_XML_AND_XMLSCHEMA","NEXTVAL","QUERY_TO_XML","QUERY_TO_XMLSCHEMA","QUERY_TO_XML_AND_XMLSCHEMA","SCHEMA_TO_XML","SCHEMA_TO_XMLSCHEMA","SCHEMA_TO_XML_AND_XMLSCHEMA","STRING","TABLE_TO_XML","TABLE_TO_XMLSCHEMA","TABLE_TO_XML_AND_XMLSCHEMA","XMLAGG","XMLCOMMENT","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","XML_IS_WELL_FORMED","XML_IS_WELL_FORMED_CONTENT","XML_IS_WELL_FORMED_DOCUMENT","XPATH","XPATH_EXISTS"],json:["ARRAY_TO_JSON","JSONB_AGG","JSONB_ARRAY_ELEMENTS","JSONB_ARRAY_ELEMENTS_TEXT","JSONB_ARRAY_LENGTH","JSONB_BUILD_ARRAY","JSONB_BUILD_OBJECT","JSONB_EACH","JSONB_EACH_TEXT","JSONB_EXTRACT_PATH","JSONB_EXTRACT_PATH_TEXT","JSONB_INSERT","JSONB_OBJECT","JSONB_OBJECT_AGG","JSONB_OBJECT_KEYS","JSONB_PATH_EXISTS","JSONB_PATH_EXISTS_TZ","JSONB_PATH_MATCH","JSONB_PATH_MATCH_TZ","JSONB_PATH_QUERY","JSONB_PATH_QUERY_ARRAY","JSONB_PATH_QUERY_ARRAY_TZ","JSONB_PATH_QUERY_FIRST","JSONB_PATH_QUERY_FIRST_TZ","JSONB_PATH_QUERY_TZ","JSONB_POPULATE_RECORD","JSONB_POPULATE_RECORDSET","JSONB_PRETTY","JSONB_SET","JSONB_SET_LAX","JSONB_STRIP_NULLS","JSONB_TO_RECORD","JSONB_TO_RECORDSET","JSONB_TYPEOF","JSON_AGG","JSON_ARRAY_ELEMENTS","JSON_ARRAY_ELEMENTS_TEXT","JSON_ARRAY_LENGTH","JSON_BUILD_ARRAY","JSON_BUILD_OBJECT","JSON_EACH","JSON_EACH_TEXT","JSON_EXTRACT_PATH","JSON_EXTRACT_PATH_TEXT","JSON_OBJECT","JSON_OBJECT_AGG","JSON_OBJECT_KEYS","JSON_POPULATE_RECORD","JSON_POPULATE_RECORDSET","JSON_STRIP_NULLS","JSON_TO_RECORD","JSON_TO_RECORDSET","JSON_TYPEOF","ROW_TO_JSON","TO_JSON","TO_JSONB","TO_TIMESTAMP"],sequence:["CURRVAL","LASTVAL","NEXTVAL","SETVAL"],conditional:["COALESCE","GREATEST","LEAST","NULLIF"],array:["ARRAY_AGG","ARRAY_APPEND","ARRAY_CAT","ARRAY_DIMS","ARRAY_FILL","ARRAY_LENGTH","ARRAY_LOWER","ARRAY_NDIMS","ARRAY_POSITION","ARRAY_POSITIONS","ARRAY_PREPEND","ARRAY_REMOVE","ARRAY_REPLACE","ARRAY_TO_STRING","ARRAY_UPPER","CARDINALITY","STRING_TO_ARRAY","TRIM_ARRAY","UNNEST"],range:["ISEMPTY","LOWER","LOWER_INC","LOWER_INF","MULTIRANGE","RANGE_MERGE","UPPER","UPPER_INC","UPPER_INF"],aggregate:["ARRAY_AGG","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COALESCE","CORR","COUNT","COVAR_POP","COVAR_SAMP","CUME_DIST","DENSE_RANK","EVERY","GROUPING","JSONB_AGG","JSONB_OBJECT_AGG","JSON_AGG","JSON_OBJECT_AGG","MAX","MIN","MODE","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","RANGE_AGG","RANGE_INTERSECT_AGG","RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV","STDDEV_POP","STDDEV_SAMP","STRING_AGG","SUM","TO_JSON","TO_JSONB","VARIANCE","VAR_POP","VAR_SAMP","XMLAGG"],window:["CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER"],set:["GENERATE_SERIES","GENERATE_SUBSCRIPTS"],sysInfo:["ACLDEFAULT","ACLEXPLODE","COL_DESCRIPTION","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_QUERY","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","FORMAT_TYPE","HAS_ANY_COLUMN_PRIVILEGE","HAS_COLUMN_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_FOREIGN_DATA_WRAPPER_PRIVILEGE","HAS_FUNCTION_PRIVILEGE","HAS_LANGUAGE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_SEQUENCE_PRIVILEGE","HAS_SERVER_PRIVILEGE","HAS_TABLESPACE_PRIVILEGE","HAS_TABLE_PRIVILEGE","HAS_TYPE_PRIVILEGE","INET_CLIENT_ADDR","INET_CLIENT_PORT","INET_SERVER_ADDR","INET_SERVER_PORT","MAKEACLITEM","OBJ_DESCRIPTION","PG_BACKEND_PID","PG_BLOCKING_PIDS","PG_COLLATION_IS_VISIBLE","PG_CONF_LOAD_TIME","PG_CONTROL_CHECKPOINT","PG_CONTROL_INIT","PG_CONTROL_SYSTEM","PG_CONVERSION_IS_VISIBLE","PG_CURRENT_LOGFILE","PG_CURRENT_SNAPSHOT","PG_CURRENT_XACT_ID","PG_CURRENT_XACT_ID_IF_ASSIGNED","PG_DESCRIBE_OBJECT","PG_FUNCTION_IS_VISIBLE","PG_GET_CATALOG_FOREIGN_KEYS","PG_GET_CONSTRAINTDEF","PG_GET_EXPR","PG_GET_FUNCTIONDEF","PG_GET_FUNCTION_ARGUMENTS","PG_GET_FUNCTION_IDENTITY_ARGUMENTS","PG_GET_FUNCTION_RESULT","PG_GET_INDEXDEF","PG_GET_KEYWORDS","PG_GET_OBJECT_ADDRESS","PG_GET_OWNED_SEQUENCE","PG_GET_RULEDEF","PG_GET_SERIAL_SEQUENCE","PG_GET_STATISTICSOBJDEF","PG_GET_TRIGGERDEF","PG_GET_USERBYID","PG_GET_VIEWDEF","PG_HAS_ROLE","PG_IDENTIFY_OBJECT","PG_IDENTIFY_OBJECT_AS_ADDRESS","PG_INDEXAM_HAS_PROPERTY","PG_INDEX_COLUMN_HAS_PROPERTY","PG_INDEX_HAS_PROPERTY","PG_IS_OTHER_TEMP_SCHEMA","PG_JIT_AVAILABLE","PG_LAST_COMMITTED_XACT","PG_LISTENING_CHANNELS","PG_MY_TEMP_SCHEMA","PG_NOTIFICATION_QUEUE_USAGE","PG_OPCLASS_IS_VISIBLE","PG_OPERATOR_IS_VISIBLE","PG_OPFAMILY_IS_VISIBLE","PG_OPTIONS_TO_TABLE","PG_POSTMASTER_START_TIME","PG_SAFE_SNAPSHOT_BLOCKING_PIDS","PG_SNAPSHOT_XIP","PG_SNAPSHOT_XMAX","PG_SNAPSHOT_XMIN","PG_STATISTICS_OBJ_IS_VISIBLE","PG_TABLESPACE_DATABASES","PG_TABLESPACE_LOCATION","PG_TABLE_IS_VISIBLE","PG_TRIGGER_DEPTH","PG_TS_CONFIG_IS_VISIBLE","PG_TS_DICT_IS_VISIBLE","PG_TS_PARSER_IS_VISIBLE","PG_TS_TEMPLATE_IS_VISIBLE","PG_TYPEOF","PG_TYPE_IS_VISIBLE","PG_VISIBLE_IN_SNAPSHOT","PG_XACT_COMMIT_TIMESTAMP","PG_XACT_COMMIT_TIMESTAMP_ORIGIN","PG_XACT_STATUS","PQSERVERVERSION","ROW_SECURITY_ACTIVE","SESSION_USER","SHOBJ_DESCRIPTION","TO_REGCLASS","TO_REGCOLLATION","TO_REGNAMESPACE","TO_REGOPER","TO_REGOPERATOR","TO_REGPROC","TO_REGPROCEDURE","TO_REGROLE","TO_REGTYPE","TXID_CURRENT","TXID_CURRENT_IF_ASSIGNED","TXID_CURRENT_SNAPSHOT","TXID_SNAPSHOT_XIP","TXID_SNAPSHOT_XMAX","TXID_SNAPSHOT_XMIN","TXID_STATUS","TXID_VISIBLE_IN_SNAPSHOT","USER","VERSION"],sysAdmin:["BRIN_DESUMMARIZE_RANGE","BRIN_SUMMARIZE_NEW_VALUES","BRIN_SUMMARIZE_RANGE","CONVERT_FROM","CURRENT_SETTING","GIN_CLEAN_PENDING_LIST","PG_ADVISORY_LOCK","PG_ADVISORY_LOCK_SHARED","PG_ADVISORY_UNLOCK","PG_ADVISORY_UNLOCK_ALL","PG_ADVISORY_UNLOCK_SHARED","PG_ADVISORY_XACT_LOCK","PG_ADVISORY_XACT_LOCK_SHARED","PG_BACKUP_START_TIME","PG_CANCEL_BACKEND","PG_COLLATION_ACTUAL_VERSION","PG_COLUMN_COMPRESSION","PG_COLUMN_SIZE","PG_COPY_LOGICAL_REPLICATION_SLOT","PG_COPY_PHYSICAL_REPLICATION_SLOT","PG_CREATE_LOGICAL_REPLICATION_SLOT","PG_CREATE_PHYSICAL_REPLICATION_SLOT","PG_CREATE_RESTORE_POINT","PG_CURRENT_WAL_FLUSH_LSN","PG_CURRENT_WAL_INSERT_LSN","PG_CURRENT_WAL_LSN","PG_DATABASE_SIZE","PG_DROP_REPLICATION_SLOT","PG_EXPORT_SNAPSHOT","PG_FILENODE_RELATION","PG_GET_WAL_REPLAY_PAUSE_STATE","PG_IMPORT_SYSTEM_COLLATIONS","PG_INDEXES_SIZE","PG_IS_IN_BACKUP","PG_IS_IN_RECOVERY","PG_IS_WAL_REPLAY_PAUSED","PG_LAST_WAL_RECEIVE_LSN","PG_LAST_WAL_REPLAY_LSN","PG_LAST_XACT_REPLAY_TIMESTAMP","PG_LOGICAL_EMIT_MESSAGE","PG_LOGICAL_SLOT_GET_BINARY_CHANGES","PG_LOGICAL_SLOT_GET_CHANGES","PG_LOGICAL_SLOT_PEEK_BINARY_CHANGES","PG_LOGICAL_SLOT_PEEK_CHANGES","PG_LOG_BACKEND_MEMORY_CONTEXTS","PG_LS_ARCHIVE_STATUSDIR","PG_LS_DIR","PG_LS_LOGDIR","PG_LS_TMPDIR","PG_LS_WALDIR","PG_PARTITION_ANCESTORS","PG_PARTITION_ROOT","PG_PARTITION_TREE","PG_PROMOTE","PG_READ_BINARY_FILE","PG_READ_FILE","PG_RELATION_FILENODE","PG_RELATION_FILEPATH","PG_RELATION_SIZE","PG_RELOAD_CONF","PG_REPLICATION_ORIGIN_ADVANCE","PG_REPLICATION_ORIGIN_CREATE","PG_REPLICATION_ORIGIN_DROP","PG_REPLICATION_ORIGIN_OID","PG_REPLICATION_ORIGIN_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_IS_SETUP","PG_REPLICATION_ORIGIN_SESSION_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_RESET","PG_REPLICATION_ORIGIN_SESSION_SETUP","PG_REPLICATION_ORIGIN_XACT_RESET","PG_REPLICATION_ORIGIN_XACT_SETUP","PG_REPLICATION_SLOT_ADVANCE","PG_ROTATE_LOGFILE","PG_SIZE_BYTES","PG_SIZE_PRETTY","PG_START_BACKUP","PG_STAT_FILE","PG_STOP_BACKUP","PG_SWITCH_WAL","PG_TABLESPACE_SIZE","PG_TABLE_SIZE","PG_TERMINATE_BACKEND","PG_TOTAL_RELATION_SIZE","PG_TRY_ADVISORY_LOCK","PG_TRY_ADVISORY_LOCK_SHARED","PG_TRY_ADVISORY_XACT_LOCK","PG_TRY_ADVISORY_XACT_LOCK_SHARED","PG_WALFILE_NAME","PG_WALFILE_NAME_OFFSET","PG_WAL_LSN_DIFF","PG_WAL_REPLAY_PAUSE","PG_WAL_REPLAY_RESUME","SET_CONFIG"],trigger:["SUPPRESS_REDUNDANT_UPDATES_TRIGGER","TSVECTOR_UPDATE_TRIGGER","TSVECTOR_UPDATE_TRIGGER_COLUMN"],eventTrigger:["PG_EVENT_TRIGGER_DDL_COMMANDS","PG_EVENT_TRIGGER_DROPPED_OBJECTS","PG_EVENT_TRIGGER_TABLE_REWRITE_OID","PG_EVENT_TRIGGER_TABLE_REWRITE_REASON","PG_GET_OBJECT_ADDRESS"],stats:["PG_MCV_LIST_ITEMS"],cast:["CAST"],dataTypes:["BIT","BIT VARYING","CHARACTER","CHARACTER VARYING","VARCHAR","CHAR","DECIMAL","NUMERIC","TIME","TIMESTAMP","ENUM"]}),eY=v({all:["ABORT","ABSOLUTE","ACCESS","ACTION","ADD","ADMIN","AFTER","AGGREGATE","ALL","ALSO","ALTER","ALWAYS","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","ASENSITIVE","ASSERTION","ASSIGNMENT","ASYMMETRIC","AT","ATOMIC","ATTACH","ATTRIBUTE","AUTHORIZATION","BACKWARD","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BIT","BOOLEAN","BOTH","BREADTH","BY","CACHE","CALL","CALLED","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAIN","CHAR","CHARACTER","CHARACTERISTICS","CHECK","CHECKPOINT","CLASS","CLOSE","CLUSTER","COALESCE","COLLATE","COLLATION","COLUMN","COLUMNS","COMMENT","COMMENTS","COMMIT","COMMITTED","COMPRESSION","CONCURRENTLY","CONFIGURATION","CONFLICT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTENT","CONTINUE","CONVERSION","COPY","COST","CREATE","CROSS","CSV","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFERRABLE","DEFERRED","DEFINER","DELETE","DELIMITER","DELIMITERS","DEPENDS","DEPTH","DESC","DETACH","DICTIONARY","DISABLE","DISCARD","DISTINCT","DO","DOCUMENT","DOMAIN","DOUBLE","DROP","EACH","ELSE","ENABLE","ENCODING","ENCRYPTED","END","ENUM","ESCAPE","EVENT","EXCEPT","EXCLUDE","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXPLAIN","EXPRESSION","EXTENSION","EXTERNAL","EXTRACT","FALSE","FAMILY","FETCH","FILTER","FINALIZE","FIRST","FLOAT","FOLLOWING","FOR","FORCE","FOREIGN","FORWARD","FREEZE","FROM","FULL","FUNCTION","FUNCTIONS","GENERATED","GLOBAL","GRANT","GRANTED","GREATEST","GROUP","GROUPING","GROUPS","HANDLER","HAVING","HEADER","HOLD","HOUR","IDENTITY","IF","ILIKE","IMMEDIATE","IMMUTABLE","IMPLICIT","IMPORT","IN","INCLUDE","INCLUDING","INCREMENT","INDEX","INDEXES","INHERIT","INHERITS","INITIALLY","INLINE","INNER","INOUT","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","INVOKER","IS","ISNULL","ISOLATION","JOIN","KEY","LABEL","LANGUAGE","LARGE","LAST","LATERAL","LEADING","LEAKPROOF","LEAST","LEFT","LEVEL","LIKE","LIMIT","LISTEN","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCK","LOCKED","LOGGED","MAPPING","MATCH","MATERIALIZED","MAXVALUE","METHOD","MINUTE","MINVALUE","MODE","MONTH","MOVE","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NEW","NEXT","NFC","NFD","NFKC","NFKD","NO","NONE","NORMALIZE","NORMALIZED","NOT","NOTHING","NOTIFY","NOTNULL","NOWAIT","NULL","NULLIF","NULLS","NUMERIC","OBJECT","OF","OFF","OFFSET","OIDS","OLD","ON","ONLY","OPERATOR","OPTION","OPTIONS","OR","ORDER","ORDINALITY","OTHERS","OUT","OUTER","OVER","OVERLAPS","OVERLAY","OVERRIDING","OWNED","OWNER","PARALLEL","PARSER","PARTIAL","PARTITION","PASSING","PASSWORD","PLACING","PLANS","POLICY","POSITION","PRECEDING","PRECISION","PREPARE","PREPARED","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROCEDURES","PROGRAM","PUBLICATION","QUOTE","RANGE","READ","REAL","REASSIGN","RECHECK","RECURSIVE","REF","REFERENCES","REFERENCING","REFRESH","REINDEX","RELATIVE","RELEASE","RENAME","REPEATABLE","REPLACE","REPLICA","RESET","RESTART","RESTRICT","RETURN","RETURNING","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROLLUP","ROUTINE","ROUTINES","ROW","ROWS","RULE","SAVEPOINT","SCHEMA","SCHEMAS","SCROLL","SEARCH","SECOND","SECURITY","SELECT","SEQUENCE","SEQUENCES","SERIALIZABLE","SERVER","SESSION","SESSION_USER","SET","SETOF","SETS","SHARE","SHOW","SIMILAR","SIMPLE","SKIP","SMALLINT","SNAPSHOT","SOME","SQL","STABLE","STANDALONE","START","STATEMENT","STATISTICS","STDIN","STDOUT","STORAGE","STORED","STRICT","STRIP","SUBSCRIPTION","SUBSTRING","SUPPORT","SYMMETRIC","SYSID","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESPACE","TEMP","TEMPLATE","TEMPORARY","TEXT","THEN","TIES","TIME","TIMESTAMP","TO","TRAILING","TRANSACTION","TRANSFORM","TREAT","TRIGGER","TRIM","TRUE","TRUNCATE","TRUSTED","TYPE","TYPES","UESCAPE","UNBOUNDED","UNCOMMITTED","UNENCRYPTED","UNION","UNIQUE","UNKNOWN","UNLISTEN","UNLOGGED","UNTIL","UPDATE","USER","USING","VACUUM","VALID","VALIDATE","VALIDATOR","VALUE","VALUES","VARCHAR","VARIADIC","VARYING","VERBOSE","VERSION","VIEW","VIEWS","VOLATILE","WHEN","WHERE","WHITESPACE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","XML","XMLATTRIBUTES","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLNAMESPACES","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","YEAR","YES","ZONE"]}),ek=A(["SELECT [ALL | DISTINCT]"]),eV=A(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","FOR {UPDATE | NO KEY UPDATE | SHARE | KEY SHARE} [OF]","INSERT INTO","VALUES","SET","CREATE [OR REPLACE] [TEMP | TEMPORARY] [RECURSIVE] VIEW","CREATE MATERIALIZED VIEW [IF NOT EXISTS]","CREATE [GLOBAL | LOCAL] [TEMPORARY | TEMP | UNLOGGED] TABLE [IF NOT EXISTS]","RETURNING"]),e$=A(["UPDATE [ONLY]","WHERE CURRENT OF","ON CONFLICT","DELETE FROM [ONLY]","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS] [ONLY]","ALTER TABLE ALL IN TABLESPACE","RENAME [COLUMN]","RENAME TO","ADD [COLUMN] [IF NOT EXISTS]","DROP [COLUMN] [IF EXISTS]","ALTER [COLUMN]","[SET DATA] TYPE","{SET | DROP} DEFAULT","{SET | DROP} NOT NULL","TRUNCATE [TABLE] [ONLY]","SET SCHEMA","AFTER","ABORT","ALTER AGGREGATE","ALTER COLLATION","ALTER CONVERSION","ALTER DATABASE","ALTER DEFAULT PRIVILEGES","ALTER DOMAIN","ALTER EVENT TRIGGER","ALTER EXTENSION","ALTER FOREIGN DATA WRAPPER","ALTER FOREIGN TABLE","ALTER FUNCTION","ALTER GROUP","ALTER INDEX","ALTER LANGUAGE","ALTER LARGE OBJECT","ALTER MATERIALIZED VIEW","ALTER OPERATOR","ALTER OPERATOR CLASS","ALTER OPERATOR FAMILY","ALTER POLICY","ALTER PROCEDURE","ALTER PUBLICATION","ALTER ROLE","ALTER ROUTINE","ALTER RULE","ALTER SCHEMA","ALTER SEQUENCE","ALTER SERVER","ALTER STATISTICS","ALTER SUBSCRIPTION","ALTER SYSTEM","ALTER TABLESPACE","ALTER TEXT SEARCH CONFIGURATION","ALTER TEXT SEARCH DICTIONARY","ALTER TEXT SEARCH PARSER","ALTER TEXT SEARCH TEMPLATE","ALTER TRIGGER","ALTER TYPE","ALTER USER","ALTER USER MAPPING","ALTER VIEW","ANALYZE","BEGIN","CALL","CHECKPOINT","CLOSE","CLUSTER","COMMENT","COMMIT","COMMIT PREPARED","COPY","CREATE ACCESS METHOD","CREATE AGGREGATE","CREATE CAST","CREATE COLLATION","CREATE CONVERSION","CREATE DATABASE","CREATE DOMAIN","CREATE EVENT TRIGGER","CREATE EXTENSION","CREATE FOREIGN DATA WRAPPER","CREATE FOREIGN TABLE","CREATE FUNCTION","CREATE GROUP","CREATE INDEX","CREATE LANGUAGE","CREATE OPERATOR","CREATE OPERATOR CLASS","CREATE OPERATOR FAMILY","CREATE POLICY","CREATE PROCEDURE","CREATE PUBLICATION","CREATE ROLE","CREATE RULE","CREATE SCHEMA","CREATE SEQUENCE","CREATE SERVER","CREATE STATISTICS","CREATE SUBSCRIPTION","CREATE TABLESPACE","CREATE TEXT SEARCH CONFIGURATION","CREATE TEXT SEARCH DICTIONARY","CREATE TEXT SEARCH PARSER","CREATE TEXT SEARCH TEMPLATE","CREATE TRANSFORM","CREATE TRIGGER","CREATE TYPE","CREATE USER","CREATE USER MAPPING","DEALLOCATE","DECLARE","DISCARD","DROP ACCESS METHOD","DROP AGGREGATE","DROP CAST","DROP COLLATION","DROP CONVERSION","DROP DATABASE","DROP DOMAIN","DROP EVENT TRIGGER","DROP EXTENSION","DROP FOREIGN DATA WRAPPER","DROP FOREIGN TABLE","DROP FUNCTION","DROP GROUP","DROP INDEX","DROP LANGUAGE","DROP MATERIALIZED VIEW","DROP OPERATOR","DROP OPERATOR CLASS","DROP OPERATOR FAMILY","DROP OWNED","DROP POLICY","DROP PROCEDURE","DROP PUBLICATION","DROP ROLE","DROP ROUTINE","DROP RULE","DROP SCHEMA","DROP SEQUENCE","DROP SERVER","DROP STATISTICS","DROP SUBSCRIPTION","DROP TABLESPACE","DROP TEXT SEARCH CONFIGURATION","DROP TEXT SEARCH DICTIONARY","DROP TEXT SEARCH PARSER","DROP TEXT SEARCH TEMPLATE","DROP TRANSFORM","DROP TRIGGER","DROP TYPE","DROP USER","DROP USER MAPPING","DROP VIEW","EXECUTE","EXPLAIN","FETCH","GRANT","IMPORT FOREIGN SCHEMA","LISTEN","LOAD","LOCK","MOVE","NOTIFY","PREPARE","PREPARE TRANSACTION","REASSIGN OWNED","REFRESH MATERIALIZED VIEW","REINDEX","RELEASE SAVEPOINT","RESET","REVOKE","ROLLBACK","ROLLBACK PREPARED","ROLLBACK TO SAVEPOINT","SAVEPOINT","SECURITY LABEL","SELECT INTO","SET CONSTRAINTS","SET ROLE","SET SESSION AUTHORIZATION","SET TRANSACTION","SHOW","START TRANSACTION","UNLISTEN","VACUUM"]),eW=A(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),eZ=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),ej=A(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE | GROUPS} BETWEEN","{TIMESTAMP | TIME} {WITH | WITHOUT} TIME ZONE","IS [NOT] DISTINCT FROM"]),eX={tokenizerOptions:{reservedSelect:ek,reservedClauses:[...eV,...e$],reservedSetOperations:eW,reservedJoins:eZ,reservedPhrases:ej,reservedKeywords:eY,reservedFunctionNames:eB,nestedBlockComments:!0,extraParens:["[]"],stringTypes:["$$",{quote:"''-qq",prefixes:["U&"]},{quote:"''-bs",prefixes:["E"],requirePrefix:!0},{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:[{quote:'""-qq',prefixes:["U&"]}],identChars:{rest:"$"},paramTypes:{numbered:["$"]},operators:["%","^","|/","||/","@",":=","&","|","#","~","<<",">>","~>~","~<~","~>=~","~<=~","@-@","@@","##","<->","&&","&<","&>","<<|","&<|","|>>","|&>","<^","^>","?#","?-","?|","?-|","?||","@>","<@","~=","?","@?","?&","->","->>","#>","#>>","#-","=>",">>=","<<=","~~","~~*","!~~","!~~*","~","~*","!~","!~*","-|-","||","@@@","!!","<%","%>","<<%","%>>","<<->","<->>","<<<->","<->>>","::"]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:e$}},eK=v({aggregate:["ANY_VALUE","APPROXIMATE PERCENTILE_DISC","AVG","COUNT","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP"],array:["array","array_concat","array_flatten","get_array_length","split_to_array","subarray"],bitwise:["BIT_AND","BIT_OR","BOOL_AND","BOOL_OR"],conditional:["COALESCE","DECODE","GREATEST","LEAST","NVL","NVL2","NULLIF"],dateTime:["ADD_MONTHS","AT TIME ZONE","CONVERT_TIMEZONE","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_CMP","DATE_CMP_TIMESTAMP","DATE_CMP_TIMESTAMPTZ","DATE_PART_YEAR","DATEADD","DATEDIFF","DATE_PART","DATE_TRUNC","EXTRACT","GETDATE","INTERVAL_CMP","LAST_DAY","MONTHS_BETWEEN","NEXT_DAY","SYSDATE","TIMEOFDAY","TIMESTAMP_CMP","TIMESTAMP_CMP_DATE","TIMESTAMP_CMP_TIMESTAMPTZ","TIMESTAMPTZ_CMP","TIMESTAMPTZ_CMP_DATE","TIMESTAMPTZ_CMP_TIMESTAMP","TIMEZONE","TO_TIMESTAMP","TRUNC"],spatial:["AddBBox","DropBBox","GeometryType","ST_AddPoint","ST_Angle","ST_Area","ST_AsBinary","ST_AsEWKB","ST_AsEWKT","ST_AsGeoJSON","ST_AsText","ST_Azimuth","ST_Boundary","ST_Collect","ST_Contains","ST_ContainsProperly","ST_ConvexHull","ST_CoveredBy","ST_Covers","ST_Crosses","ST_Dimension","ST_Disjoint","ST_Distance","ST_DistanceSphere","ST_DWithin","ST_EndPoint","ST_Envelope","ST_Equals","ST_ExteriorRing","ST_Force2D","ST_Force3D","ST_Force3DM","ST_Force3DZ","ST_Force4D","ST_GeometryN","ST_GeometryType","ST_GeomFromEWKB","ST_GeomFromEWKT","ST_GeomFromText","ST_GeomFromWKB","ST_InteriorRingN","ST_Intersects","ST_IsPolygonCCW","ST_IsPolygonCW","ST_IsClosed","ST_IsCollection","ST_IsEmpty","ST_IsSimple","ST_IsValid","ST_Length","ST_LengthSphere","ST_Length2D","ST_LineFromMultiPoint","ST_LineInterpolatePoint","ST_M","ST_MakeEnvelope","ST_MakeLine","ST_MakePoint","ST_MakePolygon","ST_MemSize","ST_MMax","ST_MMin","ST_Multi","ST_NDims","ST_NPoints","ST_NRings","ST_NumGeometries","ST_NumInteriorRings","ST_NumPoints","ST_Perimeter","ST_Perimeter2D","ST_Point","ST_PointN","ST_Points","ST_Polygon","ST_RemovePoint","ST_Reverse","ST_SetPoint","ST_SetSRID","ST_Simplify","ST_SRID","ST_StartPoint","ST_Touches","ST_Within","ST_X","ST_XMax","ST_XMin","ST_Y","ST_YMax","ST_YMin","ST_Z","ST_ZMax","ST_ZMin","SupportsBBox"],hash:["CHECKSUM","FUNC_SHA1","FNV_HASH","MD5","SHA","SHA1","SHA2"],hyperLogLog:["HLL","HLL_CREATE_SKETCH","HLL_CARDINALITY","HLL_COMBINE"],json:["IS_VALID_JSON","IS_VALID_JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_EXTRACT_ARRAY_ELEMENT_TEXT","JSON_EXTRACT_PATH_TEXT","JSON_PARSE","JSON_SERIALIZE"],math:["ABS","ACOS","ASIN","ATAN","ATAN2","CBRT","CEILING","CEIL","COS","COT","DEGREES","DEXP","DLOG1","DLOG10","EXP","FLOOR","LN","LOG","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SIN","SIGN","SQRT","TAN","TO_HEX","TRUNC"],machineLearning:["EXPLAIN_MODEL"],string:["ASCII","BPCHARCMP","BTRIM","BTTEXT_PATTERN_CMP","CHAR_LENGTH","CHARACTER_LENGTH","CHARINDEX","CHR","COLLATE","CONCAT","CRC32","DIFFERENCE","INITCAP","LEFT","RIGHT","LEN","LENGTH","LOWER","LPAD","RPAD","LTRIM","OCTETINDEX","OCTET_LENGTH","POSITION","QUOTE_IDENT","QUOTE_LITERAL","REGEXP_COUNT","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","REPLICATE","REVERSE","RTRIM","SOUNDEX","SPLIT_PART","STRPOS","STRTOL","SUBSTRING","TEXTLEN","TRANSLATE","TRIM","UPPER"],superType:["decimal_precision","decimal_scale","is_array","is_bigint","is_boolean","is_char","is_decimal","is_float","is_integer","is_object","is_scalar","is_smallint","is_varchar","json_typeof"],window:["AVG","COUNT","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAST_VALUE","LAG","LEAD","LISTAGG","MAX","MEDIAN","MIN","NTH_VALUE","NTILE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","RATIO_TO_REPORT","ROW_NUMBER","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP"],dataType:["CAST","CONVERT","TO_CHAR","TO_DATE","TO_NUMBER","TEXT_TO_INT_ALT","TEXT_TO_NUMERIC_ALT"],sysAdmin:["CHANGE_QUERY_PRIORITY","CHANGE_SESSION_PRIORITY","CHANGE_USER_PRIORITY","CURRENT_SETTING","PG_CANCEL_BACKEND","PG_TERMINATE_BACKEND","REBOOT_CLUSTER","SET_CONFIG"],sysInfo:["CURRENT_AWS_ACCOUNT","CURRENT_DATABASE","CURRENT_NAMESPACE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","CURRENT_USER_ID","HAS_ASSUMEROLE_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_TABLE_PRIVILEGE","PG_BACKEND_PID","PG_GET_COLS","PG_GET_GRANTEE_BY_IAM_ROLE","PG_GET_IAM_ROLE_BY_USER","PG_GET_LATE_BINDING_VIEW_COLS","PG_LAST_COPY_COUNT","PG_LAST_COPY_ID","PG_LAST_UNLOAD_ID","PG_LAST_QUERY_ID","PG_LAST_UNLOAD_COUNT","SESSION_USER","SLICE_NUM","USER","VERSION"],dataTypes:["DECIMAL","NUMERIC","CHAR","CHARACTER","VARCHAR","CHARACTER VARYING","NCHAR","NVARCHAR","VARBYTE"]}),ez=v({standard:["AES128","AES256","ALL","ALLOWOVERWRITE","ANY","ARRAY","AS","ASC","AUTHORIZATION","BACKUP","BETWEEN","BINARY","BOTH","CHECK","COLUMN","CONSTRAINT","CREATE","CROSS","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DESC","DISABLE","DISTINCT","DO","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GROUP","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTO","IS","ISNULL","LANGUAGE","LEADING","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","MINUS","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RECOVER","REFERENCES","REJECTLOG","RESORT","RESPECT","RESTORE","SIMILAR","SNAPSHOT","SOME","SYSTEM","TABLE","TAG","TDES","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","UNIQUE","USING","VERBOSE","WALLET","WITHOUT"],dataConversionParams:["ACCEPTANYDATE","ACCEPTINVCHARS","BLANKSASNULL","DATEFORMAT","EMPTYASNULL","ENCODING","ESCAPE","EXPLICIT_IDS","FILLRECORD","IGNOREBLANKLINES","IGNOREHEADER","REMOVEQUOTES","ROUNDEC","TIMEFORMAT","TRIMBLANKS","TRUNCATECOLUMNS"],dataLoadParams:["COMPROWS","COMPUPDATE","MAXERROR","NOLOAD","STATUPDATE"],dataFormatParams:["FORMAT","CSV","DELIMITER","FIXEDWIDTH","SHAPEFILE","AVRO","JSON","PARQUET","ORC"],copyAuthParams:["ACCESS_KEY_ID","CREDENTIALS","ENCRYPTED","IAM_ROLE","MASTER_SYMMETRIC_KEY","SECRET_ACCESS_KEY","SESSION_TOKEN"],copyCompressionParams:["BZIP2","GZIP","LZOP","ZSTD"],copyMiscParams:["MANIFEST","READRATIO","REGION","SSH"],compressionEncodings:["RAW","AZ64","BYTEDICT","DELTA","DELTA32K","LZO","MOSTLY8","MOSTLY16","MOSTLY32","RUNLENGTH","TEXT255","TEXT32K"],misc:["CATALOG_ROLE","SECRET_ARN","EXTERNAL","AUTO","EVEN","KEY","PREDICATE","COMPRESSION"],dataTypes:["BPCHAR","TEXT"]}),eJ=A(["SELECT [ALL | DISTINCT]"]),eq=A(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT INTO","VALUES","SET","CREATE [OR REPLACE | MATERIALIZED] VIEW","CREATE [TEMPORARY | TEMP | LOCAL TEMPORARY | LOCAL TEMP] TABLE [IF NOT EXISTS]"]),eQ=A(["UPDATE","DELETE [FROM]","DROP TABLE [IF EXISTS]","ALTER TABLE","ALTER TABLE APPEND","ADD [COLUMN]","DROP [COLUMN]","RENAME TO","RENAME COLUMN","ALTER COLUMN","TYPE","ENCODE","TRUNCATE [TABLE]","ABORT","ALTER DATABASE","ALTER DATASHARE","ALTER DEFAULT PRIVILEGES","ALTER GROUP","ALTER MATERIALIZED VIEW","ALTER PROCEDURE","ALTER SCHEMA","ALTER USER","ANALYSE","ANALYZE","ANALYSE COMPRESSION","ANALYZE COMPRESSION","BEGIN","CALL","CANCEL","CLOSE","COMMENT","COMMIT","COPY","CREATE DATABASE","CREATE DATASHARE","CREATE EXTERNAL FUNCTION","CREATE EXTERNAL SCHEMA","CREATE EXTERNAL TABLE","CREATE FUNCTION","CREATE GROUP","CREATE LIBRARY","CREATE MODEL","CREATE PROCEDURE","CREATE SCHEMA","CREATE USER","DEALLOCATE","DECLARE","DESC DATASHARE","DROP DATABASE","DROP DATASHARE","DROP FUNCTION","DROP GROUP","DROP LIBRARY","DROP MODEL","DROP MATERIALIZED VIEW","DROP PROCEDURE","DROP SCHEMA","DROP USER","DROP VIEW","DROP","EXECUTE","EXPLAIN","FETCH","GRANT","LOCK","PREPARE","REFRESH MATERIALIZED VIEW","RESET","REVOKE","ROLLBACK","SELECT INTO","SET SESSION AUTHORIZATION","SET SESSION CHARACTERISTICS","SHOW","SHOW EXTERNAL TABLE","SHOW MODEL","SHOW DATASHARES","SHOW PROCEDURE","SHOW TABLE","SHOW VIEW","START TRANSACTION","UNLOAD","VACUUM"]),e0=A(["UNION [ALL]","EXCEPT","INTERSECT","MINUS"]),e1=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),e2=A(["NULL AS","DATA CATALOG","HIVE METASTORE","{ROWS | RANGE} BETWEEN"]),e4={tokenizerOptions:{reservedSelect:eJ,reservedClauses:[...eq,...eQ],reservedSetOperations:e0,reservedJoins:e1,reservedPhrases:e2,reservedKeywords:ez,reservedFunctionNames:eK,stringTypes:["''-qq"],identTypes:['""-qq'],identChars:{first:"#"},paramTypes:{numbered:["$"]},operators:["^","%","@","|/","||/","&","|","~","<<",">>","||","::"]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:eQ}},e6=v({all:["ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANTI","ANY","ARCHIVE","ARRAY","AS","ASC","AT","AUTHORIZATION","BETWEEN","BOTH","BUCKET","BUCKETS","BY","CACHE","CASCADE","CAST","CHANGE","CHECK","CLEAR","CLUSTER","CLUSTERED","CODEGEN","COLLATE","COLLECTION","COLUMN","COLUMNS","COMMENT","COMMIT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONSTRAINT","COST","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DATA","DATABASE","DATABASES","DAY","DBPROPERTIES","DEFINED","DELETE","DELIMITED","DESC","DESCRIBE","DFS","DIRECTORIES","DIRECTORY","DISTINCT","DISTRIBUTE","DIV","DROP","ESCAPE","ESCAPED","EXCEPT","EXCHANGE","EXISTS","EXPORT","EXTENDED","EXTERNAL","EXTRACT","FALSE","FETCH","FIELDS","FILTER","FILEFORMAT","FIRST","FIRST_VALUE","FOLLOWING","FOR","FOREIGN","FORMAT","FORMATTED","FULL","FUNCTION","FUNCTIONS","GLOBAL","GRANT","GROUP","GROUPING","HOUR","IF","IGNORE","IMPORT","IN","INDEX","INDEXES","INNER","INPATH","INPUTFORMAT","INTERSECT","INTERVAL","INTO","IS","ITEMS","KEYS","LAST","LAST_VALUE","LATERAL","LAZY","LEADING","LEFT","LIKE","LINES","LIST","LOCAL","LOCATION","LOCK","LOCKS","LOGICAL","MACRO","MAP","MATCHED","MERGE","MINUTE","MONTH","MSCK","NAMESPACE","NAMESPACES","NATURAL","NO","NOT","NULL","NULLS","OF","ONLY","OPTION","OPTIONS","OR","ORDER","OUT","OUTER","OUTPUTFORMAT","OVER","OVERLAPS","OVERLAY","OVERWRITE","OWNER","PARTITION","PARTITIONED","PARTITIONS","PERCENT","PLACING","POSITION","PRECEDING","PRIMARY","PRINCIPALS","PROPERTIES","PURGE","QUERY","RANGE","RECORDREADER","RECORDWRITER","RECOVER","REDUCE","REFERENCES","RENAME","REPAIR","REPLACE","RESPECT","RESTRICT","REVOKE","RIGHT","RLIKE","ROLE","ROLES","ROLLBACK","ROLLUP","ROW","ROWS","SCHEMA","SECOND","SELECT","SEMI","SEPARATED","SERDE","SERDEPROPERTIES","SESSION_USER","SETS","SHOW","SKEWED","SOME","SORT","SORTED","START","STATISTICS","STORED","STRATIFY","STRUCT","SUBSTR","SUBSTRING","TABLE","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","THEN","TO","TOUCH","TRAILING","TRANSACTION","TRANSACTIONS","TRIM","TRUE","TRUNCATE","UNARCHIVE","UNBOUNDED","UNCACHE","UNIQUE","UNKNOWN","UNLOCK","UNSET","USE","USER","USING","VIEW","WINDOW","YEAR","ANALYSE","ARRAY_ZIP","COALESCE","CONTAINS","CONVERT","DAYS","DAY_HOUR","DAY_MINUTE","DAY_SECOND","DECODE","DEFAULT","DISTINCTROW","ENCODE","EXPLODE","EXPLODE_OUTER","FIXED","GREATEST","GROUP_CONCAT","HOURS","HOUR_MINUTE","HOUR_SECOND","IFNULL","LEAST","LEVEL","MINUTE_SECOND","NULLIF","OFFSET","ON","OPTIMIZE","REGEXP","SEPARATOR","SIZE","STRING","TYPE","TYPES","UNSIGNED","VARIABLES","YEAR_MONTH"]}),e3=v({aggregate:["APPROX_COUNT_DISTINCT","APPROX_PERCENTILE","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COUNT","COUNT","COUNT_IF","COUNT_MIN_SKETCH","COVAR_POP","COVAR_SAMP","EVERY","FIRST","FIRST_VALUE","GROUPING","GROUPING_ID","KURTOSIS","LAST","LAST_VALUE","MAX","MAX_BY","MEAN","MIN","MIN_BY","PERCENTILE","PERCENTILE","PERCENTILE_APPROX","SKEWNESS","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE"],window:["CUME_DIST","DENSE_RANK","LAG","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER"],array:["ARRAY","ARRAY_CONTAINS","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_INTERSECT","ARRAY_JOIN","ARRAY_MAX","ARRAY_MIN","ARRAY_POSITION","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_UNION","ARRAYS_OVERLAP","ARRAYS_ZIP","FLATTEN","SEQUENCE","SHUFFLE","SLICE","SORT_ARRAY"],map:["ELEMENT_AT","ELEMENT_AT","MAP","MAP_CONCAT","MAP_ENTRIES","MAP_FROM_ARRAYS","MAP_FROM_ENTRIES","MAP_KEYS","MAP_VALUES","STR_TO_MAP"],datetime:["ADD_MONTHS","CURRENT_DATE","CURRENT_DATE","CURRENT_TIMESTAMP","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","DATE_ADD","DATE_FORMAT","DATE_FROM_UNIX_DATE","DATE_PART","DATE_SUB","DATE_TRUNC","DATEDIFF","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MAKE_DATE","MAKE_DT_INTERVAL","MAKE_INTERVAL","MAKE_TIMESTAMP","MAKE_YM_INTERVAL","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","NOW","QUARTER","SECOND","SESSION_WINDOW","TIMESTAMP_MICROS","TIMESTAMP_MILLIS","TIMESTAMP_SECONDS","TO_DATE","TO_TIMESTAMP","TO_UNIX_TIMESTAMP","TO_UTC_TIMESTAMP","TRUNC","UNIX_DATE","UNIX_MICROS","UNIX_MILLIS","UNIX_SECONDS","UNIX_TIMESTAMP","WEEKDAY","WEEKOFYEAR","WINDOW","YEAR"],json:["FROM_JSON","GET_JSON_OBJECT","JSON_ARRAY_LENGTH","JSON_OBJECT_KEYS","JSON_TUPLE","SCHEMA_OF_JSON","TO_JSON"],misc:["ABS","ACOS","ACOSH","AGGREGATE","ARRAY_SORT","ASCII","ASIN","ASINH","ASSERT_TRUE","ATAN","ATAN2","ATANH","BASE64","BIGINT","BIN","BINARY","BIT_COUNT","BIT_GET","BIT_LENGTH","BOOLEAN","BROUND","BTRIM","CARDINALITY","CBRT","CEIL","CEILING","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONV","COS","COSH","COT","CRC32","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_USER","DATE","DECIMAL","DEGREES","DOUBLE","ELT","EXP","EXPM1","FACTORIAL","FIND_IN_SET","FLOAT","FLOOR","FORALL","FORMAT_NUMBER","FORMAT_STRING","FROM_CSV","GETBIT","HASH","HEX","HYPOT","INITCAP","INLINE","INLINE_OUTER","INPUT_FILE_BLOCK_LENGTH","INPUT_FILE_BLOCK_START","INPUT_FILE_NAME","INSTR","INT","ISNAN","ISNOTNULL","ISNULL","JAVA_METHOD","LCASE","LEFT","LENGTH","LEVENSHTEIN","LN","LOCATE","LOG","LOG10","LOG1P","LOG2","LOWER","LPAD","LTRIM","MAP_FILTER","MAP_ZIP_WITH","MD5","MOD","MONOTONICALLY_INCREASING_ID","NAMED_STRUCT","NANVL","NEGATIVE","NVL","NVL2","OCTET_LENGTH","OVERLAY","PARSE_URL","PI","PMOD","POSEXPLODE","POSEXPLODE_OUTER","POSITION","POSITIVE","POW","POWER","PRINTF","RADIANS","RAISE_ERROR","RAND","RANDN","RANDOM","REFLECT","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_LIKE","REGEXP_REPLACE","REPEAT","REPLACE","REVERSE","RIGHT","RINT","ROUND","RPAD","RTRIM","SCHEMA_OF_CSV","SENTENCES","SHA","SHA1","SHA2","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIGNUM","SIN","SINH","SMALLINT","SOUNDEX","SPACE","SPARK_PARTITION_ID","SPLIT","SQRT","STACK","SUBSTR","SUBSTRING","SUBSTRING_INDEX","TAN","TANH","TIMESTAMP","TINYINT","TO_CSV","TRANSFORM_KEYS","TRANSFORM_VALUES","TRANSLATE","TRIM","TRY_ADD","TRY_DIVIDE","TYPEOF","UCASE","UNBASE64","UNHEX","UPPER","UUID","VERSION","WIDTH_BUCKET","XPATH","XPATH_BOOLEAN","XPATH_DOUBLE","XPATH_FLOAT","XPATH_INT","XPATH_LONG","XPATH_NUMBER","XPATH_SHORT","XPATH_STRING","XXHASH64","ZIP_WITH"],cast:["CAST"],caseAbbrev:["COALESCE","NULLIF"],dataTypes:["DECIMAL","DEC","NUMERIC","VARCHAR"]}),e8=A(["SELECT [ALL | DISTINCT]"]),e5=A(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","SORT BY","CLUSTER BY","DISTRIBUTE BY","LIMIT","INSERT [INTO | OVERWRITE] [TABLE]","VALUES","INSERT OVERWRITE [LOCAL] DIRECTORY","LOAD DATA [LOCAL] INPATH","[OVERWRITE] INTO TABLE","CREATE [OR REPLACE] [GLOBAL TEMPORARY | TEMPORARY] VIEW [IF NOT EXISTS]","CREATE [EXTERNAL] TABLE [IF NOT EXISTS]"]),e7=A(["DROP TABLE [IF EXISTS]","ALTER TABLE","ADD COLUMNS","DROP {COLUMN | COLUMNS}","RENAME TO","RENAME COLUMN","ALTER COLUMN","TRUNCATE TABLE","LATERAL VIEW","ALTER DATABASE","ALTER VIEW","CREATE DATABASE","CREATE FUNCTION","DROP DATABASE","DROP FUNCTION","DROP VIEW","REPAIR TABLE","USE DATABASE","TABLESAMPLE","PIVOT","TRANSFORM","EXPLAIN","ADD FILE","ADD JAR","ANALYZE TABLE","CACHE TABLE","CLEAR CACHE","DESCRIBE DATABASE","DESCRIBE FUNCTION","DESCRIBE QUERY","DESCRIBE TABLE","LIST FILE","LIST JAR","REFRESH","REFRESH TABLE","REFRESH FUNCTION","RESET","SHOW COLUMNS","SHOW CREATE TABLE","SHOW DATABASES","SHOW FUNCTIONS","SHOW PARTITIONS","SHOW TABLE EXTENDED","SHOW TABLES","SHOW TBLPROPERTIES","SHOW VIEWS","UNCACHE TABLE"]),e9=A(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),te=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN","[LEFT] {ANTI | SEMI} JOIN","NATURAL [LEFT] {ANTI | SEMI} JOIN"]),tt=A(["ON DELETE","ON UPDATE","CURRENT ROW","{ROWS | RANGE} BETWEEN"]),tn={tokenizerOptions:{reservedSelect:e8,reservedClauses:[...e5,...e7],reservedSetOperations:e9,reservedJoins:te,reservedPhrases:tt,supportsXor:!0,reservedKeywords:e6,reservedFunctionNames:e3,extraParens:["[]"],stringTypes:["''-bs",'""-bs',{quote:"''-raw",prefixes:["R","X"],requirePrefix:!0},{quote:'""-raw',prefixes:["R","X"],requirePrefix:!0}],identTypes:["``"],variableTypes:[{quote:"{}",prefixes:["$"],requirePrefix:!0}],operators:["%","~","^","|","&","<=>","==","!","||","->"],postProcess:function(e){return e.map((t,n)=>{let o=e[n-1]||u,i=e[n+1]||u;return R.WINDOW(t)&&i.type===r.OPEN_PAREN?{...t,type:r.RESERVED_FUNCTION_NAME}:"ITEMS"!==t.text||t.type!==r.RESERVED_KEYWORD||"COLLECTION"===o.text&&"TERMINATED"===i.text?t:{...t,type:r.IDENTIFIER,text:t.raw}})}},formatOptions:{onelineClauses:e7}},tr=v({scalar:["ABS","CHANGES","CHAR","COALESCE","FORMAT","GLOB","HEX","IFNULL","IIF","INSTR","LAST_INSERT_ROWID","LENGTH","LIKE","LIKELIHOOD","LIKELY","LOAD_EXTENSION","LOWER","LTRIM","NULLIF","PRINTF","QUOTE","RANDOM","RANDOMBLOB","REPLACE","ROUND","RTRIM","SIGN","SOUNDEX","SQLITE_COMPILEOPTION_GET","SQLITE_COMPILEOPTION_USED","SQLITE_OFFSET","SQLITE_SOURCE_ID","SQLITE_VERSION","SUBSTR","SUBSTRING","TOTAL_CHANGES","TRIM","TYPEOF","UNICODE","UNLIKELY","UPPER","ZEROBLOB"],aggregate:["AVG","COUNT","GROUP_CONCAT","MAX","MIN","SUM","TOTAL"],datetime:["DATE","TIME","DATETIME","JULIANDAY","UNIXEPOCH","STRFTIME"],window:["row_number","rank","dense_rank","percent_rank","cume_dist","ntile","lag","lead","first_value","last_value","nth_value"],math:["ACOS","ACOSH","ASIN","ASINH","ATAN","ATAN2","ATANH","CEIL","CEILING","COS","COSH","DEGREES","EXP","FLOOR","LN","LOG","LOG","LOG10","LOG2","MOD","PI","POW","POWER","RADIANS","SIN","SINH","SQRT","TAN","TANH","TRUNC"],json:["JSON","JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_ARRAY_LENGTH","JSON_EXTRACT","JSON_INSERT","JSON_OBJECT","JSON_PATCH","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_TYPE","JSON_TYPE","JSON_VALID","JSON_QUOTE","JSON_GROUP_ARRAY","JSON_GROUP_OBJECT","JSON_EACH","JSON_TREE"],cast:["CAST"],dataTypes:["CHARACTER","VARCHAR","VARYING CHARACTER","NCHAR","NATIVE CHARACTER","NVARCHAR","NUMERIC","DECIMAL"]}),to=v({all:["ABORT","ACTION","ADD","AFTER","ALL","ALTER","AND","ANY","ARE","ARRAY","ALWAYS","ANALYZE","AS","ASC","ATTACH","AUTOINCREMENT","BEFORE","BEGIN","BETWEEN","BY","CASCADE","CASE","CAST","CHECK","COLLATE","COLUMN","COMMIT","CONFLICT","CONSTRAINT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATABASE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DESC","DETACH","DISTINCT","DO","DROP","EACH","ELSE","END","ESCAPE","EXCEPT","EXCLUDE","EXCLUSIVE","EXISTS","EXPLAIN","FAIL","FILTER","FIRST","FOLLOWING","FOR","FOREIGN","FROM","FULL","GENERATED","GLOB","GROUP","GROUPS","HAVING","IF","IGNORE","IMMEDIATE","IN","INDEX","INDEXED","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","KEY","LAST","LEFT","LIKE","LIMIT","MATCH","MATERIALIZED","NATURAL","NO","NOT","NOTHING","NOTNULL","NULL","NULLS","OF","OFFSET","ON","ONLY","OPEN","OR","ORDER","OTHERS","OUTER","OVER","PARTITION","PLAN","PRAGMA","PRECEDING","PRIMARY","QUERY","RAISE","RANGE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELEASE","RENAME","REPLACE","RESTRICT","RETURNING","RIGHT","ROLLBACK","ROW","ROWS","SAVEPOINT","SELECT","SET","TABLE","TEMP","TEMPORARY","THEN","TIES","TO","TRANSACTION","TRIGGER","UNBOUNDED","UNION","UNIQUE","UPDATE","USING","VACUUM","VALUES","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT"]}),ti=A(["SELECT [ALL | DISTINCT]"]),ta=A(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [OR ABORT | OR FAIL | OR IGNORE | OR REPLACE | OR ROLLBACK] INTO","REPLACE INTO","VALUES","SET","CREATE [TEMPORARY | TEMP] VIEW [IF NOT EXISTS]","CREATE [TEMPORARY | TEMP] TABLE [IF NOT EXISTS]"]),ts=A(["UPDATE [OR ABORT | OR FAIL | OR IGNORE | OR REPLACE | OR ROLLBACK]","ON CONFLICT","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD [COLUMN]","DROP [COLUMN]","RENAME [COLUMN]","RENAME TO","SET SCHEMA"]),tl=A(["UNION [ALL]","EXCEPT","INTERSECT"]),tE=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),tc=A(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE | GROUPS} BETWEEN"]),tu={tokenizerOptions:{reservedSelect:ti,reservedClauses:[...ta,...ts],reservedSetOperations:tl,reservedJoins:tE,reservedPhrases:tc,reservedKeywords:to,reservedFunctionNames:tr,stringTypes:["''-qq",{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``","[]"],paramTypes:{positional:!0,numbered:["?"],named:[":","@","$"]},operators:["%","~","&","|","<<",">>","==","->","->>","||"]},formatOptions:{onelineClauses:ts}},tT=v({set:["GROUPING"],window:["RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","ROW_NUMBER"],numeric:["POSITION","OCCURRENCES_REGEX","POSITION_REGEX","EXTRACT","CHAR_LENGTH","CHARACTER_LENGTH","OCTET_LENGTH","CARDINALITY","ABS","MOD","LN","EXP","POWER","SQRT","FLOOR","CEIL","CEILING","WIDTH_BUCKET"],string:["SUBSTRING","SUBSTRING_REGEX","UPPER","LOWER","CONVERT","TRANSLATE","TRANSLATE_REGEX","TRIM","OVERLAY","NORMALIZE","SPECIFICTYPE"],datetime:["CURRENT_DATE","CURRENT_TIME","LOCALTIME","CURRENT_TIMESTAMP","LOCALTIMESTAMP"],aggregate:["COUNT","AVG","MAX","MIN","SUM","STDDEV_POP","STDDEV_SAMP","VAR_SAMP","VAR_POP","COLLECT","FUSION","INTERSECTION","COVAR_POP","COVAR_SAMP","CORR","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","PERCENTILE_CONT","PERCENTILE_DISC"],cast:["CAST"],caseAbbrev:["COALESCE","NULLIF"],nonStandard:["ROUND","SIN","COS","TAN","ASIN","ACOS","ATAN"],dataTypes:["CHARACTER","CHAR","CHARACTER VARYING","CHAR VARYING","VARCHAR","CHARACTER LARGE OBJECT","CHAR LARGE OBJECT","CLOB","NATIONAL CHARACTER","NATIONAL CHAR","NCHAR","NATIONAL CHARACTER VARYING","NATIONAL CHAR VARYING","NCHAR VARYING","NATIONAL CHARACTER LARGE OBJECT","NCHAR LARGE OBJECT","NCLOB","BINARY","BINARY VARYING","VARBINARY","BINARY LARGE OBJECT","BLOB","NUMERIC","DECIMAL","DEC","TIME","TIMESTAMP"]}),tR=v({all:["ALL","ALLOCATE","ALTER","ANY","ARE","ARRAY","AS","ASENSITIVE","ASYMMETRIC","AT","ATOMIC","AUTHORIZATION","BEGIN","BETWEEN","BIGINT","BINARY","BLOB","BOOLEAN","BOTH","BY","CALL","CALLED","CASCADED","CAST","CHAR","CHARACTER","CHECK","CLOB","CLOSE","COALESCE","COLLATE","COLUMN","COMMIT","CONDITION","CONNECT","CONSTRAINT","CORRESPONDING","CREATE","CROSS","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DATE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DELETE","DEREF","DESCRIBE","DETERMINISTIC","DISCONNECT","DISTINCT","DOUBLE","DROP","DYNAMIC","EACH","ELEMENT","END-EXEC","ESCAPE","EVERY","EXCEPT","EXEC","EXECUTE","EXISTS","EXTERNAL","FALSE","FETCH","FILTER","FLOAT","FOR","FOREIGN","FREE","FROM","FULL","FUNCTION","GET","GLOBAL","GRANT","GROUP","HAVING","HOLD","HOUR","IDENTITY","IN","INDICATOR","INNER","INOUT","INSENSITIVE","INSERT","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","LANGUAGE","LARGE","LATERAL","LEADING","LEFT","LIKE","LIKE_REGEX","LOCAL","MATCH","MEMBER","MERGE","METHOD","MINUTE","MODIFIES","MODULE","MONTH","MULTISET","NATIONAL","NATURAL","NCHAR","NCLOB","NEW","NO","NONE","NOT","NULL","NULLIF","NUMERIC","OF","OLD","ON","ONLY","OPEN","ORDER","OUT","OUTER","OVER","OVERLAPS","PARAMETER","PARTITION","PRECISION","PREPARE","PRIMARY","PROCEDURE","RANGE","READS","REAL","RECURSIVE","REF","REFERENCES","REFERENCING","RELEASE","RESULT","RETURN","RETURNS","REVOKE","RIGHT","ROLLBACK","ROLLUP","ROW","ROWS","SAVEPOINT","SCOPE","SCROLL","SEARCH","SECOND","SELECT","SENSITIVE","SESSION_USER","SET","SIMILAR","SMALLINT","SOME","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","START","STATIC","SUBMULTISET","SYMMETRIC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSLATION","TREAT","TRIGGER","TRUE","UESCAPE","UNION","UNIQUE","UNKNOWN","UNNEST","UPDATE","USER","USING","VALUE","VALUES","VARBINARY","VARCHAR","VARYING","WHENEVER","WINDOW","WITHIN","WITHOUT","YEAR"]}),td=A(["SELECT [ALL | DISTINCT]"]),tf=A(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","SET","CREATE [RECURSIVE] VIEW","CREATE [GLOBAL TEMPORARY | LOCAL TEMPORARY] TABLE"]),tA=A(["UPDATE","WHERE CURRENT OF","DELETE FROM","DROP TABLE","ALTER TABLE","ADD COLUMN","DROP [COLUMN]","RENAME COLUMN","RENAME TO","ALTER [COLUMN]","{SET | DROP} DEFAULT","ADD SCOPE","DROP SCOPE {CASCADE | RESTRICT}","RESTART WITH","TRUNCATE TABLE","SET SCHEMA"]),tS=A(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),tO=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),tp=A(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),tN={tokenizerOptions:{reservedSelect:td,reservedClauses:[...tf,...tA],reservedSetOperations:tS,reservedJoins:tO,reservedPhrases:tp,reservedKeywords:tR,reservedFunctionNames:tT,stringTypes:[{quote:"''-qq-bs",prefixes:["N","U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``"],paramTypes:{positional:!0},operators:["||"]},formatOptions:{onelineClauses:tA}},tI=v({all:["ABS","ACOS","ALL_MATCH","ANY_MATCH","APPROX_DISTINCT","APPROX_MOST_FREQUENT","APPROX_PERCENTILE","APPROX_SET","ARBITRARY","ARRAYS_OVERLAP","ARRAY_AGG","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_INTERSECT","ARRAY_JOIN","ARRAY_MAX","ARRAY_MIN","ARRAY_POSITION","ARRAY_REMOVE","ARRAY_SORT","ARRAY_UNION","ASIN","ATAN","ATAN2","AT_TIMEZONE","AVG","BAR","BETA_CDF","BING_TILE","BING_TILES_AROUND","BING_TILE_AT","BING_TILE_COORDINATES","BING_TILE_POLYGON","BING_TILE_QUADKEY","BING_TILE_ZOOM_LEVEL","BITWISE_AND","BITWISE_AND_AGG","BITWISE_LEFT_SHIFT","BITWISE_NOT","BITWISE_OR","BITWISE_OR_AGG","BITWISE_RIGHT_SHIFT","BITWISE_RIGHT_SHIFT_ARITHMETIC","BITWISE_XOR","BIT_COUNT","BOOL_AND","BOOL_OR","CARDINALITY","CAST","CBRT","CEIL","CEILING","CHAR2HEXINT","CHECKSUM","CHR","CLASSIFY","COALESCE","CODEPOINT","COLOR","COMBINATIONS","CONCAT","CONCAT_WS","CONTAINS","CONTAINS_SEQUENCE","CONVEX_HULL_AGG","CORR","COS","COSH","COSINE_SIMILARITY","COUNT","COUNT_IF","COVAR_POP","COVAR_SAMP","CRC32","CUME_DIST","CURRENT_CATALOG","CURRENT_DATE","CURRENT_GROUPS","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_USER","DATE","DATE_ADD","DATE_DIFF","DATE_FORMAT","DATE_PARSE","DATE_TRUNC","DAY","DAY_OF_MONTH","DAY_OF_WEEK","DAY_OF_YEAR","DEGREES","DENSE_RANK","DOW","DOY","E","ELEMENT_AT","EMPTY_APPROX_SET","EVALUATE_CLASSIFIER_PREDICTIONS","EVERY","EXP","EXTRACT","FEATURES","FILTER","FIRST_VALUE","FLATTEN","FLOOR","FORMAT","FORMAT_DATETIME","FORMAT_NUMBER","FROM_BASE","FROM_BASE32","FROM_BASE64","FROM_BASE64URL","FROM_BIG_ENDIAN_32","FROM_BIG_ENDIAN_64","FROM_ENCODED_POLYLINE","FROM_GEOJSON_GEOMETRY","FROM_HEX","FROM_IEEE754_32","FROM_IEEE754_64","FROM_ISO8601_DATE","FROM_ISO8601_TIMESTAMP","FROM_ISO8601_TIMESTAMP_NANOS","FROM_UNIXTIME","FROM_UNIXTIME_NANOS","FROM_UTF8","GEOMETRIC_MEAN","GEOMETRY_FROM_HADOOP_SHAPE","GEOMETRY_INVALID_REASON","GEOMETRY_NEAREST_POINTS","GEOMETRY_TO_BING_TILES","GEOMETRY_UNION","GEOMETRY_UNION_AGG","GREATEST","GREAT_CIRCLE_DISTANCE","HAMMING_DISTANCE","HASH_COUNTS","HISTOGRAM","HMAC_MD5","HMAC_SHA1","HMAC_SHA256","HMAC_SHA512","HOUR","HUMAN_READABLE_SECONDS","IF","INDEX","INFINITY","INTERSECTION_CARDINALITY","INVERSE_BETA_CDF","INVERSE_NORMAL_CDF","IS_FINITE","IS_INFINITE","IS_JSON_SCALAR","IS_NAN","JACCARD_INDEX","JSON_ARRAY_CONTAINS","JSON_ARRAY_GET","JSON_ARRAY_LENGTH","JSON_EXISTS","JSON_EXTRACT","JSON_EXTRACT_SCALAR","JSON_FORMAT","JSON_PARSE","JSON_QUERY","JSON_SIZE","JSON_VALUE","KURTOSIS","LAG","LAST_DAY_OF_MONTH","LAST_VALUE","LEAD","LEARN_CLASSIFIER","LEARN_LIBSVM_CLASSIFIER","LEARN_LIBSVM_REGRESSOR","LEARN_REGRESSOR","LEAST","LENGTH","LEVENSHTEIN_DISTANCE","LINE_INTERPOLATE_POINT","LINE_INTERPOLATE_POINTS","LINE_LOCATE_POINT","LISTAGG","LN","LOCALTIME","LOCALTIMESTAMP","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","LUHN_CHECK","MAKE_SET_DIGEST","MAP","MAP_AGG","MAP_CONCAT","MAP_ENTRIES","MAP_FILTER","MAP_FROM_ENTRIES","MAP_KEYS","MAP_UNION","MAP_VALUES","MAP_ZIP_WITH","MAX","MAX_BY","MD5","MERGE","MERGE_SET_DIGEST","MILLISECOND","MIN","MINUTE","MIN_BY","MOD","MONTH","MULTIMAP_AGG","MULTIMAP_FROM_ENTRIES","MURMUR3","NAN","NGRAMS","NONE_MATCH","NORMALIZE","NORMAL_CDF","NOW","NTH_VALUE","NTILE","NULLIF","NUMERIC_HISTOGRAM","OBJECTID","OBJECTID_TIMESTAMP","PARSE_DATA_SIZE","PARSE_DATETIME","PARSE_DURATION","PERCENT_RANK","PI","POSITION","POW","POWER","QDIGEST_AGG","QUARTER","RADIANS","RAND","RANDOM","RANK","REDUCE","REDUCE_AGG","REGEXP_COUNT","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_LIKE","REGEXP_POSITION","REGEXP_REPLACE","REGEXP_SPLIT","REGRESS","REGR_INTERCEPT","REGR_SLOPE","RENDER","REPEAT","REPLACE","REVERSE","RGB","ROUND","ROW_NUMBER","RPAD","RTRIM","SECOND","SEQUENCE","SHA1","SHA256","SHA512","SHUFFLE","SIGN","SIMPLIFY_GEOMETRY","SIN","SKEWNESS","SLICE","SOUNDEX","SPATIAL_PARTITIONING","SPATIAL_PARTITIONS","SPLIT","SPLIT_PART","SPLIT_TO_MAP","SPLIT_TO_MULTIMAP","SPOOKY_HASH_V2_32","SPOOKY_HASH_V2_64","SQRT","STARTS_WITH","STDDEV","STDDEV_POP","STDDEV_SAMP","STRPOS","ST_AREA","ST_ASBINARY","ST_ASTEXT","ST_BOUNDARY","ST_BUFFER","ST_CENTROID","ST_CONTAINS","ST_CONVEXHULL","ST_COORDDIM","ST_CROSSES","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_ENDPOINT","ST_ENVELOPE","ST_ENVELOPEASPTS","ST_EQUALS","ST_EXTERIORRING","ST_GEOMETRIES","ST_GEOMETRYFROMTEXT","ST_GEOMETRYN","ST_GEOMETRYTYPE","ST_GEOMFROMBINARY","ST_INTERIORRINGN","ST_INTERIORRINGS","ST_INTERSECTION","ST_INTERSECTS","ST_ISCLOSED","ST_ISEMPTY","ST_ISRING","ST_ISSIMPLE","ST_ISVALID","ST_LENGTH","ST_LINEFROMTEXT","ST_LINESTRING","ST_MULTIPOINT","ST_NUMGEOMETRIES","ST_NUMINTERIORRING","ST_NUMPOINTS","ST_OVERLAPS","ST_POINT","ST_POINTN","ST_POINTS","ST_POLYGON","ST_RELATE","ST_STARTPOINT","ST_SYMDIFFERENCE","ST_TOUCHES","ST_UNION","ST_WITHIN","ST_X","ST_XMAX","ST_XMIN","ST_Y","ST_YMAX","ST_YMIN","SUBSTR","SUBSTRING","SUM","TAN","TANH","TDIGEST_AGG","TIMESTAMP_OBJECTID","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO_BASE","TO_BASE32","TO_BASE64","TO_BASE64URL","TO_BIG_ENDIAN_32","TO_BIG_ENDIAN_64","TO_CHAR","TO_DATE","TO_ENCODED_POLYLINE","TO_GEOJSON_GEOMETRY","TO_GEOMETRY","TO_HEX","TO_IEEE754_32","TO_IEEE754_64","TO_ISO8601","TO_MILLISECONDS","TO_SPHERICAL_GEOGRAPHY","TO_TIMESTAMP","TO_UNIXTIME","TO_UTF8","TRANSFORM","TRANSFORM_KEYS","TRANSFORM_VALUES","TRANSLATE","TRIM","TRIM_ARRAY","TRUNCATE","TRY","TRY_CAST","TYPEOF","UPPER","URL_DECODE","URL_ENCODE","URL_EXTRACT_FRAGMENT","URL_EXTRACT_HOST","URL_EXTRACT_PARAMETER","URL_EXTRACT_PATH","URL_EXTRACT_PORT","URL_EXTRACT_PROTOCOL","URL_EXTRACT_QUERY","UUID","VALUES_AT_QUANTILES","VALUE_AT_QUANTILE","VARIANCE","VAR_POP","VAR_SAMP","VERSION","WEEK","WEEK_OF_YEAR","WIDTH_BUCKET","WILSON_INTERVAL_LOWER","WILSON_INTERVAL_UPPER","WITH_TIMEZONE","WORD_STEM","XXHASH64","YEAR","YEAR_OF_WEEK","YOW","ZIP","ZIP_WITH"],rowPattern:["CLASSIFIER","FIRST","LAST","MATCH_NUMBER","NEXT","PERMUTE","PREV"]}),th=v({all:["ABSENT","ADD","ADMIN","AFTER","ALL","ALTER","ANALYZE","AND","ANY","ARRAY","AS","ASC","AT","AUTHORIZATION","BERNOULLI","BETWEEN","BOTH","BY","CALL","CASCADE","CASE","CATALOGS","COLUMN","COLUMNS","COMMENT","COMMIT","COMMITTED","CONDITIONAL","CONSTRAINT","COPARTITION","CREATE","CROSS","CUBE","CURRENT","CURRENT_PATH","CURRENT_ROLE","DATA","DEALLOCATE","DEFAULT","DEFINE","DEFINER","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DISTINCT","DISTRIBUTED","DOUBLE","DROP","ELSE","EMPTY","ENCODING","END","ERROR","ESCAPE","EXCEPT","EXCLUDING","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FINAL","FIRST","FOLLOWING","FOR","FROM","FULL","FUNCTIONS","GRANT","GRANTED","GRANTS","GRAPHVIZ","GROUP","GROUPING","GROUPS","HAVING","IGNORE","IN","INCLUDING","INITIAL","INNER","INPUT","INSERT","INTERSECT","INTERVAL","INTO","INVOKER","IO","IS","ISOLATION","JOIN","JSON","JSON_ARRAY","JSON_OBJECT","KEEP","KEY","KEYS","LAST","LATERAL","LEADING","LEFT","LEVEL","LIKE","LIMIT","LOCAL","LOGICAL","MATCH","MATCHED","MATCHES","MATCH_RECOGNIZE","MATERIALIZED","MEASURES","NATURAL","NEXT","NFC","NFD","NFKC","NFKD","NO","NONE","NOT","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OR","ORDER","ORDINALITY","OUTER","OUTPUT","OVER","OVERFLOW","PARTITION","PARTITIONS","PASSING","PAST","PATH","PATTERN","PER","PERMUTE","PRECEDING","PRECISION","PREPARE","PRIVILEGES","PROPERTIES","PRUNE","QUOTES","RANGE","READ","RECURSIVE","REFRESH","RENAME","REPEATABLE","RESET","RESPECT","RESTRICT","RETURNING","REVOKE","RIGHT","ROLE","ROLES","ROLLBACK","ROLLUP","ROW","ROWS","RUNNING","SCALAR","SCHEMA","SCHEMAS","SECURITY","SEEK","SELECT","SERIALIZABLE","SESSION","SET","SETS","SHOW","SKIP","SOME","START","STATS","STRING","SUBSET","SYSTEM","TABLE","TABLES","TABLESAMPLE","TEXT","THEN","TIES","TIME","TIMESTAMP","TO","TRAILING","TRANSACTION","TRUE","TYPE","UESCAPE","UNBOUNDED","UNCOMMITTED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UNNEST","UPDATE","USE","USER","USING","UTF16","UTF32","UTF8","VALIDATE","VALUE","VALUES","VERBOSE","VIEW","WHEN","WHERE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","ZONE"],types:["BIGINT","INT","INTEGER","SMALLINT","TINYINT","BOOLEAN","DATE","DECIMAL","REAL","DOUBLE","HYPERLOGLOG","QDIGEST","TDIGEST","P4HYPERLOGLOG","INTERVAL","TIMESTAMP","TIME","VARBINARY","VARCHAR","CHAR","ROW","ARRAY","MAP","JSON","JSON2016","IPADDRESS","GEOMETRY","UUID","SETDIGEST","JONIREGEXP","RE2JREGEXP","LIKEPATTERN","COLOR","CODEPOINTS","FUNCTION","JSONPATH"]}),t_=A(["SELECT [ALL | DISTINCT]"]),tm=A(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","SET","CREATE [OR REPLACE] [MATERIALIZED] VIEW","CREATE TABLE [IF NOT EXISTS]","MATCH_RECOGNIZE","MEASURES","ONE ROW PER MATCH","ALL ROWS PER MATCH","AFTER MATCH","PATTERN","SUBSET","DEFINE"]),tC=A(["UPDATE","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","ADD COLUMN [IF NOT EXISTS]","DROP COLUMN [IF EXISTS]","RENAME COLUMN [IF EXISTS]","RENAME TO","SET AUTHORIZATION [USER | ROLE]","SET PROPERTIES","EXECUTE","TRUNCATE TABLE","ALTER SCHEMA","ALTER MATERIALIZED VIEW","ALTER VIEW","CREATE SCHEMA","CREATE ROLE","DROP SCHEMA","DROP MATERIALIZED VIEW","DROP VIEW","DROP ROLE","EXPLAIN","ANALYZE","EXPLAIN ANALYZE","EXPLAIN ANALYZE VERBOSE","USE","COMMENT ON TABLE","COMMENT ON COLUMN","DESCRIBE INPUT","DESCRIBE OUTPUT","REFRESH MATERIALIZED VIEW","RESET SESSION","SET SESSION","SET PATH","SET TIME ZONE","SHOW GRANTS","SHOW CREATE TABLE","SHOW CREATE SCHEMA","SHOW CREATE VIEW","SHOW CREATE MATERIALIZED VIEW","SHOW TABLES","SHOW SCHEMAS","SHOW CATALOGS","SHOW COLUMNS","SHOW STATS FOR","SHOW ROLES","SHOW CURRENT ROLES","SHOW ROLE GRANTS","SHOW FUNCTIONS","SHOW SESSION"]),tL=A(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),tg=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),tv=A(["{ROWS | RANGE | GROUPS} BETWEEN","IS [NOT] DISTINCT FROM"]),tP={tokenizerOptions:{reservedSelect:t_,reservedClauses:[...tm,...tC],reservedSetOperations:tL,reservedJoins:tg,reservedPhrases:tv,reservedKeywords:th,reservedFunctionNames:tI,extraParens:["[]","{}"],stringTypes:[{quote:"''-qq",prefixes:["U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq'],paramTypes:{positional:!0},operators:["%","->","=>",":","||","|","^","$"]},formatOptions:{onelineClauses:tC}},ty=v({aggregate:["APPROX_COUNT_DISTINCT","AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","STDEV","STDEVP","SUM","VAR","VARP"],analytic:["CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","Collation - COLLATIONPROPERTY","Collation - TERTIARY_WEIGHTS"],configuration:["@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION"],conversion:["CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE"],cryptographic:["ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY"],cursor:["@@CURSOR_ROWS","@@FETCH_STATUS","CURSOR_STATUS"],dataType:["DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY"],datetime:["@@DATEFIRST","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_TIMEZONE_ID","DATEADD","DATEDIFF","DATEDIFF_BIG","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","JSON","ISJSON","JSON_VALUE","JSON_QUERY","JSON_MODIFY"],mathematical:["ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","CHOOSE","GREATEST","IIF","LEAST"],metadata:["@@PROCID","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FILEPROPERTYEX","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","NEXT VALUE FOR","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY"],ranking:["DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME"],security:["CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","DATABASE_PRINCIPAL_ID","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME"],string:["ASCII","CHAR","CHARINDEX","CONCAT","CONCAT_WS","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STRING_AGG","STRING_ESCAPE","STUFF","SUBSTRING","TRANSLATE","TRIM","UNICODE","UPPER"],system:["$PARTITION","@@ERROR","@@IDENTITY","@@PACK_RECEIVED","@@ROWCOUNT","@@TRANCOUNT","BINARY_CHECKSUM","CHECKSUM","COMPRESS","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","CURRENT_TRANSACTION_ID","DECOMPRESS","ERROR_LINE","ERROR_MESSAGE","ERROR_NUMBER","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GET_FILESTREAM_TRANSACTION_CONTEXT","GETANSINULL","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","SESSION_CONTEXT","XACT_STATE"],statistical:["@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACK_SENT","@@PACKET_ERRORS","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE","TEXTPTR","TEXTVALID"],trigger:["COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE"],caseAbbrev:["COALESCE","NULLIF"],dataTypes:["DECIMAL","NUMERIC","FLOAT","REAL","DATETIME2","DATETIMEOFFSET","TIME","CHAR","VARCHAR","NCHAR","NVARCHAR","BINARY","VARBINARY"]}),tD=v({standard:["ADD","ALL","ALTER","AND","ANY","AS","ASC","AUTHORIZATION","BACKUP","BEGIN","BETWEEN","BREAK","BROWSE","BULK","BY","CASCADE","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLUMN","COMMIT","COMPUTE","CONSTRAINT","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DBCC","DEALLOCATE","DECLARE","DEFAULT","DELETE","DENY","DESC","DISK","DISTINCT","DISTRIBUTED","DOUBLE","DROP","DUMP","ERRLVL","ESCAPE","EXEC","EXECUTE","EXISTS","EXIT","EXTERNAL","FETCH","FILE","FILLFACTOR","FOR","FOREIGN","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GOTO","GRANT","GROUP","HAVING","HOLDLOCK","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IN","INDEX","INNER","INSERT","INTERSECT","INTO","IS","JOIN","KEY","KILL","LEFT","LIKE","LINENO","LOAD","MERGE","NATIONAL","NOCHECK","NONCLUSTERED","NOT","NULL","NULLIF","OF","OFF","OFFSETS","ON","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OUTER","OVER","PERCENT","PIVOT","PLAN","PRECISION","PRIMARY","PRINT","PROC","PROCEDURE","PUBLIC","RAISERROR","READ","READTEXT","RECONFIGURE","REFERENCES","REPLICATION","RESTORE","RESTRICT","RETURN","REVERT","REVOKE","RIGHT","ROLLBACK","ROWCOUNT","ROWGUIDCOL","RULE","SAVE","SCHEMA","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION_USER","SET","SETUSER","SHUTDOWN","SOME","STATISTICS","SYSTEM_USER","TABLE","TABLESAMPLE","TEXTSIZE","THEN","TO","TOP","TRAN","TRANSACTION","TRIGGER","TRUNCATE","TRY_CONVERT","TSEQUAL","UNION","UNIQUE","UNPIVOT","UPDATE","UPDATETEXT","USE","USER","VALUES","VARYING","VIEW","WAITFOR","WHERE","WHILE","WITH","WITHIN GROUP","WRITETEXT"],odbc:["ABSOLUTE","ACTION","ADA","ADD","ALL","ALLOCATE","ALTER","AND","ANY","ARE","AS","ASC","ASSERTION","AT","AUTHORIZATION","AVG","BEGIN","BETWEEN","BIT","BIT_LENGTH","BOTH","BY","CASCADE","CASCADED","CAST","CATALOG","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CLOSE","COALESCE","COLLATE","COLLATION","COLUMN","COMMIT","CONNECT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTINUE","CONVERT","CORRESPONDING","COUNT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DESC","DESCRIBE","DESCRIPTOR","DIAGNOSTICS","DISCONNECT","DISTINCT","DOMAIN","DOUBLE","DROP","END-EXEC","ESCAPE","EXCEPTION","EXEC","EXECUTE","EXISTS","EXTERNAL","EXTRACT","FALSE","FETCH","FIRST","FLOAT","FOR","FOREIGN","FORTRAN","FOUND","FROM","FULL","GET","GLOBAL","GO","GOTO","GRANT","GROUP","HAVING","HOUR","IDENTITY","IMMEDIATE","IN","INCLUDE","INDEX","INDICATOR","INITIALLY","INNER","INPUT","INSENSITIVE","INSERT","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","ISOLATION","JOIN","KEY","LANGUAGE","LAST","LEADING","LEFT","LEVEL","LIKE","LOCAL","LOWER","MATCH","MAX","MIN","MINUTE","MODULE","MONTH","NAMES","NATIONAL","NATURAL","NCHAR","NEXT","NO","NONE","NOT","NULL","NULLIF","NUMERIC","OCTET_LENGTH","OF","ONLY","OPEN","OPTION","OR","ORDER","OUTER","OUTPUT","OVERLAPS","PAD","PARTIAL","PASCAL","POSITION","PRECISION","PREPARE","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURE","PUBLIC","READ","REAL","REFERENCES","RELATIVE","RESTRICT","REVOKE","RIGHT","ROLLBACK","ROWS","SCHEMA","SCROLL","SECOND","SECTION","SELECT","SESSION","SESSION_USER","SET","SIZE","SMALLINT","SOME","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","SUBSTRING","SUM","SYSTEM_USER","TABLE","TEMPORARY","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSACTION","TRANSLATE","TRANSLATION","TRIM","TRUE","UNION","UNIQUE","UNKNOWN","UPDATE","UPPER","USAGE","USER","VALUE","VALUES","VARCHAR","VARYING","VIEW","WHENEVER","WHERE","WITH","WORK","WRITE","YEAR","ZONE"]}),tM=A(["SELECT [ALL | DISTINCT]"]),tb=A(["WITH","INTO","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","OFFSET","FETCH {FIRST | NEXT}","INSERT [INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [BY TARGET | BY SOURCE] [THEN]","UPDATE SET","CREATE [OR ALTER] [MATERIALIZED] VIEW","CREATE TABLE","CREATE [OR ALTER] {PROC | PROCEDURE}"]),tU=A(["UPDATE","WHERE CURRENT OF","DELETE [FROM]","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD","DROP COLUMN [IF EXISTS]","ALTER COLUMN","TRUNCATE TABLE","ADD SENSITIVITY CLASSIFICATION","ADD SIGNATURE","AGGREGATE","ANSI_DEFAULTS","ANSI_NULLS","ANSI_NULL_DFLT_OFF","ANSI_NULL_DFLT_ON","ANSI_PADDING","ANSI_WARNINGS","APPLICATION ROLE","ARITHABORT","ARITHIGNORE","ASSEMBLY","ASYMMETRIC KEY","AUTHORIZATION","AVAILABILITY GROUP","BACKUP","BACKUP CERTIFICATE","BACKUP MASTER KEY","BACKUP SERVICE MASTER KEY","BEGIN CONVERSATION TIMER","BEGIN DIALOG CONVERSATION","BROKER PRIORITY","BULK INSERT","CERTIFICATE","CLOSE MASTER KEY","CLOSE SYMMETRIC KEY","COLLATE","COLUMN ENCRYPTION KEY","COLUMN MASTER KEY","COLUMNSTORE INDEX","CONCAT_NULL_YIELDS_NULL","CONTEXT_INFO","CONTRACT","CREDENTIAL","CRYPTOGRAPHIC PROVIDER","CURSOR_CLOSE_ON_COMMIT","DATABASE","DATABASE AUDIT SPECIFICATION","DATABASE ENCRYPTION KEY","DATABASE HADR","DATABASE SCOPED CONFIGURATION","DATABASE SCOPED CREDENTIAL","DATABASE SET","DATEFIRST","DATEFORMAT","DEADLOCK_PRIORITY","DENY","DENY XML","DISABLE TRIGGER","ENABLE TRIGGER","END CONVERSATION","ENDPOINT","EVENT NOTIFICATION","EVENT SESSION","EXECUTE AS","EXTERNAL DATA SOURCE","EXTERNAL FILE FORMAT","EXTERNAL LANGUAGE","EXTERNAL LIBRARY","EXTERNAL RESOURCE POOL","EXTERNAL TABLE","FIPS_FLAGGER","FMTONLY","FORCEPLAN","FULLTEXT CATALOG","FULLTEXT INDEX","FULLTEXT STOPLIST","FUNCTION","GET CONVERSATION GROUP","GET_TRANSMISSION_STATUS","GRANT","GRANT XML","IDENTITY_INSERT","IMPLICIT_TRANSACTIONS","INDEX","LANGUAGE","LOCK_TIMEOUT","LOGIN","MASTER KEY","MESSAGE TYPE","MOVE CONVERSATION","NOCOUNT","NOEXEC","NUMERIC_ROUNDABORT","OFFSETS","OPEN MASTER KEY","OPEN SYMMETRIC KEY","PARSEONLY","PARTITION FUNCTION","PARTITION SCHEME","PROCEDURE","QUERY_GOVERNOR_COST_LIMIT","QUEUE","QUOTED_IDENTIFIER","RECEIVE","REMOTE SERVICE BINDING","REMOTE_PROC_TRANSACTIONS","RESOURCE GOVERNOR","RESOURCE POOL","RESTORE","RESTORE FILELISTONLY","RESTORE HEADERONLY","RESTORE LABELONLY","RESTORE MASTER KEY","RESTORE REWINDONLY","RESTORE SERVICE MASTER KEY","RESTORE VERIFYONLY","REVERT","REVOKE","REVOKE XML","ROLE","ROUTE","ROWCOUNT","RULE","SCHEMA","SEARCH PROPERTY LIST","SECURITY POLICY","SELECTIVE XML INDEX","SEND","SENSITIVITY CLASSIFICATION","SEQUENCE","SERVER AUDIT","SERVER AUDIT SPECIFICATION","SERVER CONFIGURATION","SERVER ROLE","SERVICE","SERVICE MASTER KEY","SETUSER","SHOWPLAN_ALL","SHOWPLAN_TEXT","SHOWPLAN_XML","SIGNATURE","SPATIAL INDEX","STATISTICS","STATISTICS IO","STATISTICS PROFILE","STATISTICS TIME","STATISTICS XML","SYMMETRIC KEY","SYNONYM","TABLE","TABLE IDENTITY","TEXTSIZE","TRANSACTION ISOLATION LEVEL","TRIGGER","TYPE","UPDATE STATISTICS","USER","WORKLOAD GROUP","XACT_ABORT","XML INDEX","XML SCHEMA COLLECTION"]),tx=A(["UNION [ALL]","EXCEPT","INTERSECT"]),tw=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","{CROSS | OUTER} APPLY"]),tG=A(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),tF={tokenizerOptions:{reservedSelect:tM,reservedClauses:[...tb,...tU],reservedSetOperations:tx,reservedJoins:tw,reservedPhrases:tG,reservedKeywords:tD,reservedFunctionNames:ty,nestedBlockComments:!0,stringTypes:[{quote:"''-qq",prefixes:["N"]}],identTypes:['""-qq',"[]"],identChars:{first:"#@",rest:"#@$"},paramTypes:{named:["@"],quoted:["@"]},operators:["%","&","|","^","~","!<","!>","+=","-=","*=","/=","%=","|=","&=","^=","::"]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:tU}},tH=v({all:["ABORT","ABSOLUTE","ACCESS","ACCESSIBLE","ACCOUNT","ACTION","ACTIVE","ADD","ADMIN","AFTER","AGAINST","AGGREGATE","AGGREGATES","AGGREGATOR","AGGREGATOR_ID","AGGREGATOR_PLAN_HASH","AGGREGATORS","ALGORITHM","ALL","ALSO","ALTER","ALWAYS","ANALYZE","AND","ANY","ARGHISTORY","ARRANGE","ARRANGEMENT","ARRAY","AS","ASC","ASCII","ASENSITIVE","ASM","ASSERTION","ASSIGNMENT","AST","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTE","AUTHORIZATION","AUTO","AUTO_INCREMENT","AUTO_REPROVISION","AUTOSTATS","AUTOSTATS_CARDINALITY_MODE","AUTOSTATS_ENABLED","AUTOSTATS_HISTOGRAM_MODE","AUTOSTATS_SAMPLING","AVAILABILITY","AVG","AVG_ROW_LENGTH","AVRO","AZURE","BACKGROUND","_BACKGROUND_THREADS_FOR_CLEANUP","BACKUP","BACKUP_HISTORY","BACKUP_ID","BACKWARD","BATCH","BATCHES","BATCH_INTERVAL","_BATCH_SIZE_LIMIT","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","_BINARY","BIT","BLOB","BOOL","BOOLEAN","BOOTSTRAP","BOTH","_BT","BTREE","BUCKET_COUNT","BUCKETS","BY","BYTE","BYTE_LENGTH","CACHE","CALL","CALL_FOR_PIPELINE","CALLED","CAPTURE","CASCADE","CASCADED","CASE","CATALOG","CHAIN","CHANGE","CHAR","CHARACTER","CHARACTERISTICS","CHARSET","CHECK","CHECKPOINT","_CHECK_CAN_CONNECT","_CHECK_CONSISTENCY","CHECKSUM","_CHECKSUM","CLASS","CLEAR","CLIENT","CLIENT_FOUND_ROWS","CLOSE","CLUSTER","CLUSTERED","CNF","COALESCE","COLLATE","COLLATION","COLUMN","COLUMNAR","COLUMNS","COLUMNSTORE","COLUMNSTORE_SEGMENT_ROWS","COMMENT","COMMENTS","COMMIT","COMMITTED","_COMMIT_LOG_TAIL","COMPACT","COMPILE","COMPRESSED","COMPRESSION","CONCURRENT","CONCURRENTLY","CONDITION","CONFIGURATION","CONNECTION","CONNECTIONS","CONFIG","CONSTRAINT","CONTAINS","CONTENT","CONTINUE","_CONTINUE_REPLAY","CONVERSION","CONVERT","COPY","_CORE","COST","CREATE","CREDENTIALS","CROSS","CUBE","CSV","CUME_DIST","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_SCHEMA","CURRENT_SECURITY_GROUPS","CURRENT_SECURITY_ROLES","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DATABASES","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFERRABLE","DEFERRED","DEFINED","DEFINER","DELAYED","DELAY_KEY_WRITE","DELETE","DELIMITER","DELIMITERS","DENSE_RANK","DESC","DESCRIBE","DETACH","DETERMINISTIC","DICTIONARY","DIFFERENTIAL","DIRECTORY","DISABLE","DISCARD","_DISCONNECT","DISK","DISTINCT","DISTINCTROW","DISTRIBUTED_JOINS","DIV","DO","DOCUMENT","DOMAIN","DOUBLE","DROP","_DROP_PROFILE","DUAL","DUMP","DUPLICATE","DURABILITY","DYNAMIC","EARLIEST","EACH","ECHO","ELECTION","ELSE","ELSEIF","ENABLE","ENCLOSED","ENCODING","ENCRYPTED","END","ENGINE","ENGINES","ENUM","ERRORS","ESCAPE","ESCAPED","ESTIMATE","EVENT","EVENTS","EXCEPT","EXCLUDE","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTENDED","EXTENSION","EXTERNAL","EXTERNAL_HOST","EXTERNAL_PORT","EXTRACTOR","EXTRACTORS","EXTRA_JOIN","_FAILOVER","FAILED_LOGIN_ATTEMPTS","FAILURE","FALSE","FAMILY","FAULT","FETCH","FIELDS","FILE","FILES","FILL","FIX_ALTER","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWING","FOR","FORCE","FORCE_COMPILED_MODE","FORCE_INTERPRETER_MODE","FOREGROUND","FOREIGN","FORMAT","FORWARD","FREEZE","FROM","FS","_FSYNC","FULL","FULLTEXT","FUNCTION","FUNCTIONS","GC","GCS","GET_FORMAT","_GC","_GCX","GENERATE","GEOGRAPHY","GEOGRAPHYPOINT","GEOMETRY","GEOMETRYPOINT","GLOBAL","_GLOBAL_VERSION_TIMESTAMP","GRANT","GRANTED","GRANTS","GROUP","GROUPING","GROUPS","GZIP","HANDLE","HANDLER","HARD_CPU_LIMIT_PERCENTAGE","HASH","HAS_TEMP_TABLES","HAVING","HDFS","HEADER","HEARTBEAT_NO_LOGGING","HIGH_PRIORITY","HISTOGRAM","HOLD","HOLDING","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IDENTITY","IF","IGNORE","ILIKE","IMMEDIATE","IMMUTABLE","IMPLICIT","IMPORT","IN","INCLUDING","INCREMENT","INCREMENTAL","INDEX","INDEXES","INFILE","INHERIT","INHERITS","_INIT_PROFILE","INIT","INITIALIZE","INITIALLY","INJECT","INLINE","INNER","INOUT","INPUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTANCE","INSTEAD","IN","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","_INTERNAL_DYNAMIC_TYPECAST","INTERPRETER_MODE","INTERSECT","INTERVAL","INTO","INVOKER","ISOLATION","ITERATE","JOIN","JSON","KAFKA","KEY","KEY_BLOCK_SIZE","KEYS","KILL","KILLALL","LABEL","LAG","LANGUAGE","LARGE","LAST","LAST_VALUE","LATERAL","LATEST","LC_COLLATE","LC_CTYPE","LEAD","LEADING","LEAF","LEAKPROOF","LEAVE","LEAVES","LEFT","LEVEL","LICENSE","LIKE","LIMIT","LINES","LISTEN","LLVM","LOADDATA_WHERE","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCK","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","_LS","LZ4","MANAGEMENT","_MANAGEMENT_THREAD","MAPPING","MASTER","MATCH","MATERIALIZED","MAXVALUE","MAX_CONCURRENCY","MAX_ERRORS","MAX_PARTITIONS_PER_BATCH","MAX_QUEUE_DEPTH","MAX_RETRIES_PER_BATCH_PARTITION","MAX_ROWS","MBC","MPL","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMBER","MEMORY","MEMORY_PERCENTAGE","_MEMSQL_TABLE_ID_LOOKUP","MEMSQL","MEMSQL_DESERIALIZE","MEMSQL_IMITATING_KAFKA","MEMSQL_SERIALIZE","MERGE","METADATA","MICROSECOND","MIDDLEINT","MIN_ROWS","MINUS","MINUTE_MICROSECOND","MINUTE_SECOND","MINVALUE","MOD","MODE","MODEL","MODIFIES","MODIFY","MONTH","MOVE","MPL","NAMES","NAMED","NAMESPACE","NATIONAL","NATURAL","NCHAR","NEXT","NO","NODE","NONE","NO_QUERY_REWRITE","NOPARAM","NOT","NOTHING","NOTIFY","NOWAIT","NO_WRITE_TO_BINLOG","NO_QUERY_REWRITE","NORELY","NTH_VALUE","NTILE","NULL","NULLCOLS","NULLS","NUMERIC","NVARCHAR","OBJECT","OF","OFF","OFFLINE","OFFSET","OFFSETS","OIDS","ON","ONLINE","ONLY","OPEN","OPERATOR","OPTIMIZATION","OPTIMIZE","OPTIMIZER","OPTIMIZER_STATE","OPTION","OPTIONS","OPTIONALLY","OR","ORDER","ORDERED_SERIALIZE","ORPHAN","OUT","OUT_OF_ORDER","OUTER","OUTFILE","OVER","OVERLAPS","OVERLAY","OWNED","OWNER","PACK_KEYS","PAIRED","PARSER","PARQUET","PARTIAL","PARTITION","PARTITION_ID","PARTITIONING","PARTITIONS","PASSING","PASSWORD","PASSWORD_LOCK_TIME","PAUSE","_PAUSE_REPLAY","PERIODIC","PERSISTED","PIPELINE","PIPELINES","PLACING","PLAN","PLANS","PLANCACHE","PLUGINS","POOL","POOLS","PORT","PRECEDING","PRECISION","PREPARE","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROCEDURES","PROCESS","PROCESSLIST","PROFILE","PROFILES","PROGRAM","PROMOTE","PROXY","PURGE","QUARTER","QUERIES","QUERY","QUERY_TIMEOUT","QUEUE","RANGE","RANK","READ","_READ","READS","REAL","REASSIGN","REBALANCE","RECHECK","RECORD","RECURSIVE","REDUNDANCY","REDUNDANT","REF","REFERENCE","REFERENCES","REFRESH","REGEXP","REINDEX","RELATIVE","RELEASE","RELOAD","RELY","REMOTE","REMOVE","RENAME","REPAIR","_REPAIR_TABLE","REPEAT","REPEATABLE","_REPL","_REPROVISIONING","REPLACE","REPLICA","REPLICATE","REPLICATING","REPLICATION","REQUIRE","RESOURCE","RESOURCE_POOL","RESET","RESTART","RESTORE","RESTRICT","RESULT","_RESURRECT","RETRY","RETURN","RETURNING","RETURNS","REVERSE","RG_POOL","REVOKE","RIGHT","RIGHT_ANTI_JOIN","RIGHT_SEMI_JOIN","RIGHT_STRAIGHT_JOIN","RLIKE","ROLES","ROLLBACK","ROLLUP","ROUTINE","ROW","ROW_COUNT","ROW_FORMAT","ROW_NUMBER","ROWS","ROWSTORE","RULE","_RPC","RUNNING","S3","SAFE","SAVE","SAVEPOINT","SCALAR","SCHEMA","SCHEMAS","SCHEMA_BINDING","SCROLL","SEARCH","SECOND","SECOND_MICROSECOND","SECURITY","SELECT","SEMI_JOIN","_SEND_THREADS","SENSITIVE","SEPARATOR","SEQUENCE","SEQUENCES","SERIAL","SERIALIZABLE","SERIES","SERVICE_USER","SERVER","SESSION","SESSION_USER","SET","SETOF","SECURITY_LISTS_INTERSECT","SHA","SHARD","SHARDED","SHARDED_ID","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMILAR","SIMPLE","SITE","SKIP","SKIPPED_BATCHES","__SLEEP","SMALLINT","SNAPSHOT","_SNAPSHOT","_SNAPSHOTS","SOFT_CPU_LIMIT_PERCENTAGE","SOME","SONAME","SPARSE","SPATIAL","SPATIAL_CHECK_INDEX","SPECIFIC","SQL","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQLEXCEPTION","SQL_MODE","SQL_NO_CACHE","SQL_NO_LOGGING","SQL_SMALL_RESULT","SQLSTATE","SQLWARNING","STDIN","STDOUT","STOP","STORAGE","STRAIGHT_JOIN","STRICT","STRING","STRIP","SUCCESS","SUPER","SYMMETRIC","SYNC_SNAPSHOT","SYNC","_SYNC","_SYNC2","_SYNC_PARTITIONS","_SYNC_SNAPSHOT","SYNCHRONIZE","SYSID","SYSTEM","TABLE","TABLE_CHECKSUM","TABLES","TABLESPACE","TAGS","TARGET_SIZE","TASK","TEMP","TEMPLATE","TEMPORARY","TEMPTABLE","_TERM_BUMP","TERMINATE","TERMINATED","TEXT","THEN","TIME","TIMEOUT","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIMEZONE","TINYBLOB","TINYINT","TINYTEXT","TO","TRACELOGS","TRADITIONAL","TRAILING","TRANSFORM","TRANSACTION","_TRANSACTIONS_EXPERIMENTAL","TREAT","TRIGGER","TRIGGERS","TRUE","TRUNC","TRUNCATE","TRUSTED","TWO_PHASE","_TWOPCID","TYPE","TYPES","UNBOUNDED","UNCOMMITTED","UNDEFINED","UNDO","UNENCRYPTED","UNENFORCED","UNHOLD","UNICODE","UNION","UNIQUE","_UNITTEST","UNKNOWN","UNLISTEN","_UNLOAD","UNLOCK","UNLOGGED","UNPIVOT","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USERS","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","_UTF8","VACUUM","VALID","VALIDATE","VALIDATOR","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARIABLES","VARIADIC","VARYING","VERBOSE","VIEW","VOID","VOLATILE","VOTING","WAIT","_WAKE","WARNINGS","WEEK","WHEN","WHERE","WHILE","WHITESPACE","WINDOW","WITH","WITHOUT","WITHIN","_WM_HEARTBEAT","WORK","WORKLOAD","WRAPPER","WRITE","XACT_ID","XOR","YEAR","YEAR_MONTH","YES","ZEROFILL","ZONE"]}),tB=v({all:["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","APPROX_COUNT_DISTINCT","APPROX_COUNT_DISTINCT_ACCUMULATE","APPROX_COUNT_DISTINCT_COMBINE","APPROX_COUNT_DISTINCT_ESTIMATE","APPROX_GEOGRAPHY_INTERSECTS","APPROX_PERCENTILE","ASCII","ASIN","ATAN","ATAN2","AVG","BIN","BINARY","BIT_AND","BIT_COUNT","BIT_OR","BIT_XOR","CAST","CEIL","CEILING","CHAR","CHARACTER_LENGTH","CHAR_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COLLECT","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATEDIFF","DATE_FORMAT","DATE_SUB","DATE_TRUNC","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEFAULT","DEGREES","DENSE_RANK","DIV","DOT_PRODUCT","ELT","EUCLIDEAN_DISTANCE","EXP","EXTRACT","FIELD","FIRST","FIRST_VALUE","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOGRAPHY_AREA","GEOGRAPHY_CONTAINS","GEOGRAPHY_DISTANCE","GEOGRAPHY_INTERSECTS","GEOGRAPHY_LATITUDE","GEOGRAPHY_LENGTH","GEOGRAPHY_LONGITUDE","GEOGRAPHY_POINT","GEOGRAPHY_WITHIN_DISTANCE","GEOMETRY_AREA","GEOMETRY_CONTAINS","GEOMETRY_DISTANCE","GEOMETRY_FILTER","GEOMETRY_INTERSECTS","GEOMETRY_LENGTH","GEOMETRY_POINT","GEOMETRY_WITHIN_DISTANCE","GEOMETRY_X","GEOMETRY_Y","GREATEST","GROUPING","GROUP_CONCAT","HEX","HIGHLIGHT","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INITCAP","INSERT","INSTR","INTERVAL","IS","IS NULL","JSON_AGG","JSON_ARRAY_CONTAINS_DOUBLE","JSON_ARRAY_CONTAINS_JSON","JSON_ARRAY_CONTAINS_STRING","JSON_ARRAY_PUSH_DOUBLE","JSON_ARRAY_PUSH_JSON","JSON_ARRAY_PUSH_STRING","JSON_DELETE_KEY","JSON_EXTRACT_DOUBLE","JSON_EXTRACT_JSON","JSON_EXTRACT_STRING","JSON_EXTRACT_BIGINT","JSON_GET_TYPE","JSON_LENGTH","JSON_SET_DOUBLE","JSON_SET_JSON","JSON_SET_STRING","JSON_SPLICE_DOUBLE","JSON_SPLICE_JSON","JSON_SPLICE_STRING","LAG","LAST_DAY","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LN","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LPAD","LTRIM","MATCH","MAX","MD5","MEDIAN","MICROSECOND","MIN","MINUTE","MOD","MONTH","MONTHNAME","MONTHS_BETWEEN","NOT","NOW","NTH_VALUE","NTILE","NULLIF","OCTET_LENGTH","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PI","PIVOT","POSITION","POW","POWER","QUARTER","QUOTE","RADIANS","RAND","RANK","REGEXP","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCALAR","SCHEMA","SEC_TO_TIME","SHA1","SHA2","SIGMOID","SIGN","SIN","SLEEP","SPLIT","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUM","SYS_GUID","TAN","TIME","TIMEDIFF","TIME_BUCKET","TIME_FORMAT","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_JSON","TO_NUMBER","TO_SECONDS","TO_TIMESTAMP","TRIM","TRUNC","TRUNCATE","UCASE","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","USER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","VALUES","VARIANCE","VAR_POP","VAR_SAMP","VECTOR_SUB","VERSION","WEEK","WEEKDAY","WEEKOFYEAR","YEAR","BIT","TINYINT","SMALLINT","MEDIUMINT","INT","INTEGER","BIGINT","DECIMAL","DEC","NUMERIC","FIXED","FLOAT","DOUBLE","DOUBLE PRECISION","REAL","DATETIME","TIMESTAMP","TIME","YEAR","CHAR","NATIONAL CHAR","VARCHAR","NATIONAL VARCHAR","BINARY","VARBINARY","BLOB","TEXT","ENUM"]}),tY=A(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),tk=A(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [IGNORE] [INTO]","VALUES","REPLACE [INTO]","SET","CREATE VIEW","CREATE [ROWSTORE] [REFERENCE | TEMPORARY | GLOBAL TEMPORARY] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [TEMPORARY] PROCEDURE [IF NOT EXISTS]","CREATE [OR REPLACE] [EXTERNAL] FUNCTION"]),tV=A(["UPDATE","DELETE [FROM]","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER [ONLINE] TABLE","ADD [COLUMN]","ADD [UNIQUE] {INDEX | KEY}","DROP [COLUMN]","MODIFY [COLUMN]","CHANGE","RENAME [TO | AS]","TRUNCATE [TABLE]","ADD AGGREGATOR","ADD LEAF","AGGREGATOR SET AS MASTER","ALTER DATABASE","ALTER PIPELINE","ALTER RESOURCE POOL","ALTER USER","ALTER VIEW","ANALYZE TABLE","ATTACH DATABASE","ATTACH LEAF","ATTACH LEAF ALL","BACKUP DATABASE","BINLOG","BOOTSTRAP AGGREGATOR","CACHE INDEX","CALL","CHANGE","CHANGE MASTER TO","CHANGE REPLICATION FILTER","CHANGE REPLICATION SOURCE TO","CHECK BLOB CHECKSUM","CHECK TABLE","CHECKSUM TABLE","CLEAR ORPHAN DATABASES","CLONE","COMMIT","CREATE DATABASE","CREATE GROUP","CREATE INDEX","CREATE LINK","CREATE MILESTONE","CREATE PIPELINE","CREATE RESOURCE POOL","CREATE ROLE","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DETACH DATABASE","DETACH PIPELINE","DROP DATABASE","DROP FUNCTION","DROP INDEX","DROP LINK","DROP PIPELINE","DROP PROCEDURE","DROP RESOURCE POOL","DROP ROLE","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","FORCE","GRANT","HANDLER","HELP","KILL CONNECTION","KILLALL QUERIES","LOAD DATA","LOAD INDEX INTO CACHE","LOAD XML","LOCK INSTANCE FOR BACKUP","LOCK TABLES","MASTER_POS_WAIT","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","REBALANCE PARTITIONS","RELEASE SAVEPOINT","REMOVE AGGREGATOR","REMOVE LEAF","REPAIR TABLE","REPLACE","REPLICATE DATABASE","RESET","RESET MASTER","RESET PERSIST","RESET REPLICA","RESET SLAVE","RESTART","RESTORE DATABASE","RESTORE REDUNDANCY","REVOKE","ROLLBACK","ROLLBACK TO SAVEPOINT","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET NAMES","SET PASSWORD","SET RESOURCE GROUP","SET ROLE","SET TRANSACTION","SHOW","SHOW CHARACTER SET","SHOW COLLATION","SHOW COLUMNS","SHOW CREATE DATABASE","SHOW CREATE FUNCTION","SHOW CREATE PIPELINE","SHOW CREATE PROCEDURE","SHOW CREATE TABLE","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINES","SHOW ERRORS","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PLUGINS","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW RELAYLOG EVENTS","SHOW REPLICA STATUS","SHOW REPLICAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW STATUS","SHOW TABLE STATUS","SHOW TABLES","SHOW VARIABLES","SHOW WARNINGS","SHUTDOWN","SNAPSHOT DATABASE","SOURCE_POS_WAIT","START GROUP_REPLICATION","START PIPELINE","START REPLICA","START SLAVE","START TRANSACTION","STOP GROUP_REPLICATION","STOP PIPELINE","STOP REPLICA","STOP REPLICATING","STOP SLAVE","TEST PIPELINE","UNLOCK INSTANCE","UNLOCK TABLES","USE","XA","ITERATE","LEAVE","LOOP","REPEAT","RETURN","WHILE"]),t$=A(["UNION [ALL | DISTINCT]","EXCEPT","INTERSECT","MINUS"]),tW=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),tZ=A(["ON DELETE","ON UPDATE","CHARACTER SET","{ROWS | RANGE} BETWEEN"]),tj={tokenizerOptions:{reservedSelect:tY,reservedClauses:[...tk,...tV],reservedSetOperations:t$,reservedJoins:tW,reservedPhrases:tZ,reservedKeywords:tH,reservedFunctionNames:tB,stringTypes:['""-qq-bs',"''-qq-bs",{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_$]+"},{quote:"``",prefixes:["@"],requirePrefix:!0}],lineCommentTypes:["--","#"],operators:[":=","&","|","^","~","<<",">>","<=>","&&","||","::","::$","::%",":>","!:>"],postProcess:function(e){return e.map((t,n)=>{let o=e[n+1]||u;return R.SET(t)&&"("===o.text?{...t,type:r.RESERVED_FUNCTION_NAME}:t})}},formatOptions:{alwaysDenseOperators:["::","::$","::%"],onelineClauses:tV}},tX=v({all:["ABS","ACOS","ACOSH","ADD_MONTHS","ALL_USER_NAMES","ANY_VALUE","APPROX_COUNT_DISTINCT","APPROX_PERCENTILE","APPROX_PERCENTILE_ACCUMULATE","APPROX_PERCENTILE_COMBINE","APPROX_PERCENTILE_ESTIMATE","APPROX_TOP_K","APPROX_TOP_K_ACCUMULATE","APPROX_TOP_K_COMBINE","APPROX_TOP_K_ESTIMATE","APPROXIMATE_JACCARD_INDEX","APPROXIMATE_SIMILARITY","ARRAY_AGG","ARRAY_APPEND","ARRAY_CAT","ARRAY_COMPACT","ARRAY_CONSTRUCT","ARRAY_CONSTRUCT_COMPACT","ARRAY_CONTAINS","ARRAY_INSERT","ARRAY_INTERSECTION","ARRAY_POSITION","ARRAY_PREPEND","ARRAY_SIZE","ARRAY_SLICE","ARRAY_TO_STRING","ARRAY_UNION_AGG","ARRAY_UNIQUE_AGG","ARRAYS_OVERLAP","AS_ARRAY","AS_BINARY","AS_BOOLEAN","AS_CHAR","AS_VARCHAR","AS_DATE","AS_DECIMAL","AS_NUMBER","AS_DOUBLE","AS_REAL","AS_INTEGER","AS_OBJECT","AS_TIME","AS_TIMESTAMP_LTZ","AS_TIMESTAMP_NTZ","AS_TIMESTAMP_TZ","ASCII","ASIN","ASINH","ATAN","ATAN2","ATANH","AUTO_REFRESH_REGISTRATION_HISTORY","AUTOMATIC_CLUSTERING_HISTORY","AVG","BASE64_DECODE_BINARY","BASE64_DECODE_STRING","BASE64_ENCODE","BIT_LENGTH","BITAND","BITAND_AGG","BITMAP_BIT_POSITION","BITMAP_BUCKET_NUMBER","BITMAP_CONSTRUCT_AGG","BITMAP_COUNT","BITMAP_OR_AGG","BITNOT","BITOR","BITOR_AGG","BITSHIFTLEFT","BITSHIFTRIGHT","BITXOR","BITXOR_AGG","BOOLAND","BOOLAND_AGG","BOOLNOT","BOOLOR","BOOLOR_AGG","BOOLXOR","BOOLXOR_AGG","BUILD_SCOPED_FILE_URL","BUILD_STAGE_FILE_URL","CASE","CAST","CBRT","CEIL","CHARINDEX","CHECK_JSON","CHECK_XML","CHR","CHAR","COALESCE","COLLATE","COLLATION","COMPLETE_TASK_GRAPHS","COMPRESS","CONCAT","CONCAT_WS","CONDITIONAL_CHANGE_EVENT","CONDITIONAL_TRUE_EVENT","CONTAINS","CONVERT_TIMEZONE","COPY_HISTORY","CORR","COS","COSH","COT","COUNT","COUNT_IF","COVAR_POP","COVAR_SAMP","CUME_DIST","CURRENT_ACCOUNT","CURRENT_AVAILABLE_ROLES","CURRENT_CLIENT","CURRENT_DATABASE","CURRENT_DATE","CURRENT_IP_ADDRESS","CURRENT_REGION","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_SECONDARY_ROLES","CURRENT_SESSION","CURRENT_STATEMENT","CURRENT_TASK_GRAPHS","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TRANSACTION","CURRENT_USER","CURRENT_VERSION","CURRENT_WAREHOUSE","DATA_TRANSFER_HISTORY","DATABASE_REFRESH_HISTORY","DATABASE_REFRESH_PROGRESS","DATABASE_REFRESH_PROGRESS_BY_JOB","DATABASE_STORAGE_USAGE_HISTORY","DATE_FROM_PARTS","DATE_PART","DATE_TRUNC","DATEADD","DATEDIFF","DAYNAME","DECODE","DECOMPRESS_BINARY","DECOMPRESS_STRING","DECRYPT","DECRYPT_RAW","DEGREES","DENSE_RANK","DIV0","EDITDISTANCE","ENCRYPT","ENCRYPT_RAW","ENDSWITH","EQUAL_NULL","EXP","EXPLAIN_JSON","EXTERNAL_FUNCTIONS_HISTORY","EXTERNAL_TABLE_FILES","EXTERNAL_TABLE_FILE_REGISTRATION_HISTORY","EXTRACT","EXTRACT_SEMANTIC_CATEGORIES","FACTORIAL","FIRST_VALUE","FLATTEN","FLOOR","GENERATE_COLUMN_DESCRIPTION","GENERATOR","GET","GET_ABSOLUTE_PATH","GET_DDL","GET_IGNORE_CASE","GET_OBJECT_REFERENCES","GET_PATH","GET_PRESIGNED_URL","GET_RELATIVE_PATH","GET_STAGE_LOCATION","GETBIT","GREATEST","GROUPING","GROUPING_ID","HASH","HASH_AGG","HAVERSINE","HEX_DECODE_BINARY","HEX_DECODE_STRING","HEX_ENCODE","HLL","HLL_ACCUMULATE","HLL_COMBINE","HLL_ESTIMATE","HLL_EXPORT","HLL_IMPORT","HOUR","MINUTE","SECOND","IFF","IFNULL","ILIKE","ILIKE ANY","INFER_SCHEMA","INITCAP","INSERT","INVOKER_ROLE","INVOKER_SHARE","IS_ARRAY","IS_BINARY","IS_BOOLEAN","IS_CHAR","IS_VARCHAR","IS_DATE","IS_DATE_VALUE","IS_DECIMAL","IS_DOUBLE","IS_REAL","IS_GRANTED_TO_INVOKER_ROLE","IS_INTEGER","IS_NULL_VALUE","IS_OBJECT","IS_ROLE_IN_SESSION","IS_TIME","IS_TIMESTAMP_LTZ","IS_TIMESTAMP_NTZ","IS_TIMESTAMP_TZ","JAROWINKLER_SIMILARITY","JSON_EXTRACT_PATH_TEXT","KURTOSIS","LAG","LAST_DAY","LAST_QUERY_ID","LAST_TRANSACTION","LAST_VALUE","LEAD","LEAST","LEFT","LENGTH","LEN","LIKE","LIKE ALL","LIKE ANY","LISTAGG","LN","LOCALTIME","LOCALTIMESTAMP","LOG","LOGIN_HISTORY","LOGIN_HISTORY_BY_USER","LOWER","LPAD","LTRIM","MATERIALIZED_VIEW_REFRESH_HISTORY","MD5","MD5_HEX","MD5_BINARY","MD5_NUMBER — Obsoleted","MD5_NUMBER_LOWER64","MD5_NUMBER_UPPER64","MEDIAN","MIN","MAX","MINHASH","MINHASH_COMBINE","MOD","MODE","MONTHNAME","MONTHS_BETWEEN","NEXT_DAY","NORMAL","NTH_VALUE","NTILE","NULLIF","NULLIFZERO","NVL","NVL2","OBJECT_AGG","OBJECT_CONSTRUCT","OBJECT_CONSTRUCT_KEEP_NULL","OBJECT_DELETE","OBJECT_INSERT","OBJECT_KEYS","OBJECT_PICK","OCTET_LENGTH","PARSE_IP","PARSE_JSON","PARSE_URL","PARSE_XML","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PI","PIPE_USAGE_HISTORY","POLICY_CONTEXT","POLICY_REFERENCES","POSITION","POW","POWER","PREVIOUS_DAY","QUERY_ACCELERATION_HISTORY","QUERY_HISTORY","QUERY_HISTORY_BY_SESSION","QUERY_HISTORY_BY_USER","QUERY_HISTORY_BY_WAREHOUSE","RADIANS","RANDOM","RANDSTR","RANK","RATIO_TO_REPORT","REGEXP","REGEXP_COUNT","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","REGEXP_SUBSTR_ALL","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","REGR_VALX","REGR_VALY","REPEAT","REPLACE","REPLICATION_GROUP_REFRESH_HISTORY","REPLICATION_GROUP_REFRESH_PROGRESS","REPLICATION_GROUP_REFRESH_PROGRESS_BY_JOB","REPLICATION_GROUP_USAGE_HISTORY","REPLICATION_USAGE_HISTORY","REST_EVENT_HISTORY","RESULT_SCAN","REVERSE","RIGHT","RLIKE","ROUND","ROW_NUMBER","RPAD","RTRIM","RTRIMMED_LENGTH","SEARCH_OPTIMIZATION_HISTORY","SEQ1","SEQ2","SEQ4","SEQ8","SERVERLESS_TASK_HISTORY","SHA1","SHA1_HEX","SHA1_BINARY","SHA2","SHA2_HEX","SHA2_BINARY","SIGN","SIN","SINH","SKEW","SOUNDEX","SPACE","SPLIT","SPLIT_PART","SPLIT_TO_TABLE","SQRT","SQUARE","ST_AREA","ST_ASEWKB","ST_ASEWKT","ST_ASGEOJSON","ST_ASWKB","ST_ASBINARY","ST_ASWKT","ST_ASTEXT","ST_AZIMUTH","ST_CENTROID","ST_COLLECT","ST_CONTAINS","ST_COVEREDBY","ST_COVERS","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DWITHIN","ST_ENDPOINT","ST_ENVELOPE","ST_GEOGFROMGEOHASH","ST_GEOGPOINTFROMGEOHASH","ST_GEOGRAPHYFROMWKB","ST_GEOGRAPHYFROMWKT","ST_GEOHASH","ST_GEOMETRYFROMWKB","ST_GEOMETRYFROMWKT","ST_HAUSDORFFDISTANCE","ST_INTERSECTION","ST_INTERSECTS","ST_LENGTH","ST_MAKEGEOMPOINT","ST_GEOM_POINT","ST_MAKELINE","ST_MAKEPOINT","ST_POINT","ST_MAKEPOLYGON","ST_POLYGON","ST_NPOINTS","ST_NUMPOINTS","ST_PERIMETER","ST_POINTN","ST_SETSRID","ST_SIMPLIFY","ST_SRID","ST_STARTPOINT","ST_SYMDIFFERENCE","ST_UNION","ST_WITHIN","ST_X","ST_XMAX","ST_XMIN","ST_Y","ST_YMAX","ST_YMIN","STAGE_DIRECTORY_FILE_REGISTRATION_HISTORY","STAGE_STORAGE_USAGE_HISTORY","STARTSWITH","STDDEV","STDDEV_POP","STDDEV_SAMP","STRIP_NULL_VALUE","STRTOK","STRTOK_SPLIT_TO_TABLE","STRTOK_TO_ARRAY","SUBSTR","SUBSTRING","SUM","SYSDATE","SYSTEM$ABORT_SESSION","SYSTEM$ABORT_TRANSACTION","SYSTEM$AUTHORIZE_PRIVATELINK","SYSTEM$AUTHORIZE_STAGE_PRIVATELINK_ACCESS","SYSTEM$BEHAVIOR_CHANGE_BUNDLE_STATUS","SYSTEM$CANCEL_ALL_QUERIES","SYSTEM$CANCEL_QUERY","SYSTEM$CLUSTERING_DEPTH","SYSTEM$CLUSTERING_INFORMATION","SYSTEM$CLUSTERING_RATIO ","SYSTEM$CURRENT_USER_TASK_NAME","SYSTEM$DATABASE_REFRESH_HISTORY ","SYSTEM$DATABASE_REFRESH_PROGRESS","SYSTEM$DATABASE_REFRESH_PROGRESS_BY_JOB ","SYSTEM$DISABLE_BEHAVIOR_CHANGE_BUNDLE","SYSTEM$DISABLE_DATABASE_REPLICATION","SYSTEM$ENABLE_BEHAVIOR_CHANGE_BUNDLE","SYSTEM$ESTIMATE_QUERY_ACCELERATION","SYSTEM$ESTIMATE_SEARCH_OPTIMIZATION_COSTS","SYSTEM$EXPLAIN_JSON_TO_TEXT","SYSTEM$EXPLAIN_PLAN_JSON","SYSTEM$EXTERNAL_TABLE_PIPE_STATUS","SYSTEM$GENERATE_SAML_CSR","SYSTEM$GENERATE_SCIM_ACCESS_TOKEN","SYSTEM$GET_AWS_SNS_IAM_POLICY","SYSTEM$GET_PREDECESSOR_RETURN_VALUE","SYSTEM$GET_PRIVATELINK","SYSTEM$GET_PRIVATELINK_AUTHORIZED_ENDPOINTS","SYSTEM$GET_PRIVATELINK_CONFIG","SYSTEM$GET_SNOWFLAKE_PLATFORM_INFO","SYSTEM$GET_TAG","SYSTEM$GET_TAG_ALLOWED_VALUES","SYSTEM$GET_TAG_ON_CURRENT_COLUMN","SYSTEM$GET_TAG_ON_CURRENT_TABLE","SYSTEM$GLOBAL_ACCOUNT_SET_PARAMETER","SYSTEM$LAST_CHANGE_COMMIT_TIME","SYSTEM$LINK_ACCOUNT_OBJECTS_BY_NAME","SYSTEM$MIGRATE_SAML_IDP_REGISTRATION","SYSTEM$PIPE_FORCE_RESUME","SYSTEM$PIPE_STATUS","SYSTEM$REVOKE_PRIVATELINK","SYSTEM$REVOKE_STAGE_PRIVATELINK_ACCESS","SYSTEM$SET_RETURN_VALUE","SYSTEM$SHOW_OAUTH_CLIENT_SECRETS","SYSTEM$STREAM_GET_TABLE_TIMESTAMP","SYSTEM$STREAM_HAS_DATA","SYSTEM$TASK_DEPENDENTS_ENABLE","SYSTEM$TYPEOF","SYSTEM$USER_TASK_CANCEL_ONGOING_EXECUTIONS","SYSTEM$VERIFY_EXTERNAL_OAUTH_TOKEN","SYSTEM$WAIT","SYSTEM$WHITELIST","SYSTEM$WHITELIST_PRIVATELINK","TAG_REFERENCES","TAG_REFERENCES_ALL_COLUMNS","TAG_REFERENCES_WITH_LINEAGE","TAN","TANH","TASK_DEPENDENTS","TASK_HISTORY","TIME_FROM_PARTS","TIME_SLICE","TIMEADD","TIMEDIFF","TIMESTAMP_FROM_PARTS","TIMESTAMPADD","TIMESTAMPDIFF","TO_ARRAY","TO_BINARY","TO_BOOLEAN","TO_CHAR","TO_VARCHAR","TO_DATE","DATE","TO_DECIMAL","TO_NUMBER","TO_NUMERIC","TO_DOUBLE","TO_GEOGRAPHY","TO_GEOMETRY","TO_JSON","TO_OBJECT","TO_TIME","TIME","TO_TIMESTAMP","TO_TIMESTAMP_LTZ","TO_TIMESTAMP_NTZ","TO_TIMESTAMP_TZ","TO_VARIANT","TO_XML","TRANSLATE","TRIM","TRUNCATE","TRUNC","TRUNC","TRY_BASE64_DECODE_BINARY","TRY_BASE64_DECODE_STRING","TRY_CAST","TRY_HEX_DECODE_BINARY","TRY_HEX_DECODE_STRING","TRY_PARSE_JSON","TRY_TO_BINARY","TRY_TO_BOOLEAN","TRY_TO_DATE","TRY_TO_DECIMAL","TRY_TO_NUMBER","TRY_TO_NUMERIC","TRY_TO_DOUBLE","TRY_TO_GEOGRAPHY","TRY_TO_GEOMETRY","TRY_TO_TIME","TRY_TO_TIMESTAMP","TRY_TO_TIMESTAMP_LTZ","TRY_TO_TIMESTAMP_NTZ","TRY_TO_TIMESTAMP_TZ","TYPEOF","UNICODE","UNIFORM","UPPER","UUID_STRING","VALIDATE","VALIDATE_PIPE_LOAD","VAR_POP","VAR_SAMP","VARIANCE","VARIANCE_SAMP","VARIANCE_POP","WAREHOUSE_LOAD_HISTORY","WAREHOUSE_METERING_HISTORY","WIDTH_BUCKET","XMLGET","YEAR","YEAROFWEEK","YEAROFWEEKISO","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFWEEKISO","DAYOFYEAR","WEEK","WEEK","WEEKOFYEAR","WEEKISO","MONTH","QUARTER","ZEROIFNULL","ZIPF"]}),tK=v({all:["ACCOUNT","ALL","ALTER","AND","ANY","AS","BETWEEN","BY","CASE","CAST","CHECK","COLUMN","CONNECT","CONNECTION","CONSTRAINT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DATABASE","DELETE","DISTINCT","DROP","ELSE","EXISTS","FALSE","FOLLOWING","FOR","FROM","FULL","GRANT","GROUP","GSCLUSTER","HAVING","ILIKE","IN","INCREMENT","INNER","INSERT","INTERSECT","INTO","IS","ISSUE","JOIN","LATERAL","LEFT","LIKE","LOCALTIME","LOCALTIMESTAMP","MINUS","NATURAL","NOT","NULL","OF","ON","OR","ORDER","ORGANIZATION","QUALIFY","REGEXP","REVOKE","RIGHT","RLIKE","ROW","ROWS","SAMPLE","SCHEMA","SELECT","SET","SOME","START","TABLE","TABLESAMPLE","THEN","TO","TRIGGER","TRUE","TRY_CAST","UNION","UNIQUE","UPDATE","USING","VALUES","VIEW","WHEN","WHENEVER","WHERE","WITH"]}),tz=A(["SELECT [ALL | DISTINCT]"]),tJ=A(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","QUALIFY","LIMIT","OFFSET","FETCH [FIRST | NEXT]","INSERT [OVERWRITE] [ALL INTO | INTO | ALL | FIRST]","{THEN | ELSE} INTO","VALUES","SET","CREATE [OR REPLACE] [SECURE] [RECURSIVE] VIEW [IF NOT EXISTS]","CREATE [OR REPLACE] [VOLATILE] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [LOCAL | GLOBAL] {TEMP|TEMPORARY} TABLE [IF NOT EXISTS]","CLUSTER BY","[WITH] {MASKING POLICY | TAG | ROW ACCESS POLICY}","COPY GRANTS","USING TEMPLATE","MERGE INTO","WHEN MATCHED [AND]","THEN {UPDATE SET | DELETE}","WHEN NOT MATCHED THEN INSERT"]),tq=A(["UPDATE","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","RENAME TO","SWAP WITH","[SUSPEND | RESUME] RECLUSTER","DROP CLUSTERING KEY","ADD [COLUMN]","RENAME COLUMN","{ALTER | MODIFY} [COLUMN]","DROP [COLUMN]","{ADD | ALTER | MODIFY | DROP} [CONSTRAINT]","RENAME CONSTRAINT","{ADD | DROP} SEARCH OPTIMIZATION","{SET | UNSET} TAG","{ADD | DROP} ROW ACCESS POLICY","DROP ALL ROW ACCESS POLICIES","{SET | DROP} DEFAULT","{SET | DROP} NOT NULL","[SET DATA] TYPE","[UNSET] COMMENT","{SET | UNSET} MASKING POLICY","TRUNCATE [TABLE] [IF EXISTS]","ALTER ACCOUNT","ALTER API INTEGRATION","ALTER CONNECTION","ALTER DATABASE","ALTER EXTERNAL TABLE","ALTER FAILOVER GROUP","ALTER FILE FORMAT","ALTER FUNCTION","ALTER INTEGRATION","ALTER MASKING POLICY","ALTER MATERIALIZED VIEW","ALTER NETWORK POLICY","ALTER NOTIFICATION INTEGRATION","ALTER PIPE","ALTER PROCEDURE","ALTER REPLICATION GROUP","ALTER RESOURCE MONITOR","ALTER ROLE","ALTER ROW ACCESS POLICY","ALTER SCHEMA","ALTER SECURITY INTEGRATION","ALTER SEQUENCE","ALTER SESSION","ALTER SESSION POLICY","ALTER SHARE","ALTER STAGE","ALTER STORAGE INTEGRATION","ALTER STREAM","ALTER TAG","ALTER TASK","ALTER USER","ALTER VIEW","ALTER WAREHOUSE","BEGIN","CALL","COMMIT","COPY INTO","CREATE ACCOUNT","CREATE API INTEGRATION","CREATE CONNECTION","CREATE DATABASE","CREATE EXTERNAL FUNCTION","CREATE EXTERNAL TABLE","CREATE FAILOVER GROUP","CREATE FILE FORMAT","CREATE FUNCTION","CREATE INTEGRATION","CREATE MANAGED ACCOUNT","CREATE MASKING POLICY","CREATE MATERIALIZED VIEW","CREATE NETWORK POLICY","CREATE NOTIFICATION INTEGRATION","CREATE PIPE","CREATE PROCEDURE","CREATE REPLICATION GROUP","CREATE RESOURCE MONITOR","CREATE ROLE","CREATE ROW ACCESS POLICY","CREATE SCHEMA","CREATE SECURITY INTEGRATION","CREATE SEQUENCE","CREATE SESSION POLICY","CREATE SHARE","CREATE STAGE","CREATE STORAGE INTEGRATION","CREATE STREAM","CREATE TAG","CREATE TASK","CREATE USER","CREATE WAREHOUSE","DELETE","DESCRIBE DATABASE","DESCRIBE EXTERNAL TABLE","DESCRIBE FILE FORMAT","DESCRIBE FUNCTION","DESCRIBE INTEGRATION","DESCRIBE MASKING POLICY","DESCRIBE MATERIALIZED VIEW","DESCRIBE NETWORK POLICY","DESCRIBE PIPE","DESCRIBE PROCEDURE","DESCRIBE RESULT","DESCRIBE ROW ACCESS POLICY","DESCRIBE SCHEMA","DESCRIBE SEQUENCE","DESCRIBE SESSION POLICY","DESCRIBE SHARE","DESCRIBE STAGE","DESCRIBE STREAM","DESCRIBE TABLE","DESCRIBE TASK","DESCRIBE TRANSACTION","DESCRIBE USER","DESCRIBE VIEW","DESCRIBE WAREHOUSE","DROP CONNECTION","DROP DATABASE","DROP EXTERNAL TABLE","DROP FAILOVER GROUP","DROP FILE FORMAT","DROP FUNCTION","DROP INTEGRATION","DROP MANAGED ACCOUNT","DROP MASKING POLICY","DROP MATERIALIZED VIEW","DROP NETWORK POLICY","DROP PIPE","DROP PROCEDURE","DROP REPLICATION GROUP","DROP RESOURCE MONITOR","DROP ROLE","DROP ROW ACCESS POLICY","DROP SCHEMA","DROP SEQUENCE","DROP SESSION POLICY","DROP SHARE","DROP STAGE","DROP STREAM","DROP TAG","DROP TASK","DROP USER","DROP VIEW","DROP WAREHOUSE","EXECUTE IMMEDIATE","EXECUTE TASK","EXPLAIN","GET","GRANT OWNERSHIP","GRANT ROLE","INSERT","LIST","MERGE","PUT","REMOVE","REVOKE ROLE","ROLLBACK","SHOW COLUMNS","SHOW CONNECTIONS","SHOW DATABASES","SHOW DATABASES IN FAILOVER GROUP","SHOW DATABASES IN REPLICATION GROUP","SHOW DELEGATED AUTHORIZATIONS","SHOW EXTERNAL FUNCTIONS","SHOW EXTERNAL TABLES","SHOW FAILOVER GROUPS","SHOW FILE FORMATS","SHOW FUNCTIONS","SHOW GLOBAL ACCOUNTS","SHOW GRANTS","SHOW INTEGRATIONS","SHOW LOCKS","SHOW MANAGED ACCOUNTS","SHOW MASKING POLICIES","SHOW MATERIALIZED VIEWS","SHOW NETWORK POLICIES","SHOW OBJECTS","SHOW ORGANIZATION ACCOUNTS","SHOW PARAMETERS","SHOW PIPES","SHOW PRIMARY KEYS","SHOW PROCEDURES","SHOW REGIONS","SHOW REPLICATION ACCOUNTS","SHOW REPLICATION DATABASES","SHOW REPLICATION GROUPS","SHOW RESOURCE MONITORS","SHOW ROLES","SHOW ROW ACCESS POLICIES","SHOW SCHEMAS","SHOW SEQUENCES","SHOW SESSION POLICIES","SHOW SHARES","SHOW SHARES IN FAILOVER GROUP","SHOW SHARES IN REPLICATION GROUP","SHOW STAGES","SHOW STREAMS","SHOW TABLES","SHOW TAGS","SHOW TASKS","SHOW TRANSACTIONS","SHOW USER FUNCTIONS","SHOW USERS","SHOW VARIABLES","SHOW VIEWS","SHOW WAREHOUSES","TRUNCATE MATERIALIZED VIEW","UNDROP DATABASE","UNDROP SCHEMA","UNDROP TABLE","UNDROP TAG","UNSET","USE DATABASE","USE ROLE","USE SCHEMA","USE SECONDARY ROLES","USE WAREHOUSE"]),tQ=A(["UNION [ALL]","MINUS","EXCEPT","INTERSECT"]),t0=A(["[INNER] JOIN","[NATURAL] {LEFT | RIGHT | FULL} [OUTER] JOIN","{CROSS | NATURAL} JOIN"]),t1=A(["{ROWS | RANGE} BETWEEN","ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]"]),t2={tokenizerOptions:{reservedSelect:tz,reservedClauses:[...tJ,...tq],reservedSetOperations:tQ,reservedJoins:t0,reservedPhrases:t1,reservedKeywords:tK,reservedFunctionNames:tX,stringTypes:["$$","''-qq-bs"],identTypes:['""-qq'],variableTypes:[{regex:"[$][1-9]\\d*"},{regex:"[$][_a-zA-Z][_a-zA-Z0-9$]*"}],extraParens:["[]"],identChars:{rest:"$"},lineCommentTypes:["--","//"],operators:["%","::","||",":","=>"]},formatOptions:{alwaysDenseOperators:[":","::"],onelineClauses:tq}},t4=e=>e.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&"),t6=/\s+/uy,t3=e=>RegExp(`(?:${e})`,"uy"),t8=e=>e.split("").map(e=>/ /gu.test(e)?"\\s+":`[${e.toUpperCase()}${e.toLowerCase()}]`).join(""),t5=e=>e+"(?:-"+e+")*",t7=({prefixes:e,requirePrefix:t})=>`(?:${e.map(t8).join("|")}${t?"":"|"})`,t9=e=>RegExp(`(?:${e.map(t4).join("|")}).*?(?=\r |\r| |$)`,"uy"),ne=(e,t=[])=>{let n="open"===e?0:1,r=["()",...t].map(e=>e[n]);return t3(r.map(t4).join("|"))},nt=e=>t3(`${C(e).map(t4).join("|")}`),nn=({rest:e,dashes:t})=>e||t?`(?![${e||""}${t?"-":""}])`:"",nr=(e,t={})=>{if(0===e.length)return/^\b$/u;let n=nn(t),r=C(e).map(t4).join("|").replace(/ /gu,"\\s+");return RegExp(`(?:${r})${n}\\b`,"iuy")},no=(e,t)=>{if(!e.length)return;let n=e.map(t4).join("|");return t3(`(?:${n})(?:${t})`)},ni={"``":"(?:`[^`]*`)+","[]":String.raw`(?:\[[^\]]*\])(?:\][^\]]*\])*`,'""-qq':String.raw`(?:"[^"]*")+`,'""-bs':String.raw`(?:"[^"\\]*(?:\\.[^"\\]*)*")`,'""-qq-bs':String.raw`(?:"[^"\\]*(?:\\.[^"\\]*)*")+`,'""-raw':String.raw`(?:"[^"]*")`,"''-qq":String.raw`(?:'[^']*')+`,"''-bs":String.raw`(?:'[^'\\]*(?:\\.[^'\\]*)*')`,"''-qq-bs":String.raw`(?:'[^'\\]*(?:\\.[^'\\]*)*')+`,"''-raw":String.raw`(?:'[^']*')`,$$:String.raw`(?\$\w*\$)[\s\S]*?\k`,"'''..'''":String.raw`'''[^\\]*?(?:\\.[^\\]*?)*?'''`,'""".."""':String.raw`"""[^\\]*?(?:\\.[^\\]*?)*?"""`,"{}":String.raw`(?:\{[^\}]*\})`,"q''":(()=>{let e={"<":">","[":"]","(":")","{":"}"},t=Object.entries(e).map(([e,t])=>"{left}(?:(?!{right}').)*?{right}".replace(/{left}/g,t4(e)).replace(/{right}/g,t4(t))),n=t4(Object.keys(e).join("")),r=String.raw`(?[^\s${n}])(?:(?!\k').)*?\k`,o=`[Qq]'(?:${r}|${t.join("|")})'`;return o})()},na=e=>"string"==typeof e?ni[e]:"regex"in e?e.regex:t7(e)+ni[e.quote],ns=e=>t3(e.map(e=>"regex"in e?e.regex:na(e)).join("|")),nl=e=>e.map(na).join("|"),nE=e=>t3(nl(e)),nc=(e={})=>t3(nu(e)),nu=({first:e,rest:t,dashes:n,allowFirstCharNumber:r}={})=>{let o="\\p{Alphabetic}\\p{Mark}_",i="\\p{Decimal_Number}",a=t4(e??""),s=t4(t??""),l=r?`[${o}${i}${a}][${o}${i}${s}]*`:`[${o}${a}][${o}${i}${s}]*`;return n?t5(l):l};function nT(e,t){let n=e.slice(0,t).split(/\n/);return{line:n.length,col:n[n.length-1].length+1}}class nR{input="";index=0;constructor(e){this.rules=e}tokenize(e){let t;this.input=e,this.index=0;let n=[];for(;this.index0;)if(t=this.matchSection(nd,e))n+=t,r++;else if(t=this.matchSection(nA,e))n+=t,r--;else{if(!(t=this.matchSection(nf,e)))return null;n+=t}return[n]}matchSection(e,t){e.lastIndex=this.lastIndex;let n=e.exec(t);return n&&(this.lastIndex+=n[0].length),n?n[0]:null}}class nO{constructor(e){this.cfg=e,this.rulesBeforeParams=this.buildRulesBeforeParams(e),this.rulesAfterParams=this.buildRulesAfterParams(e)}tokenize(e,t){let n=[...this.rulesBeforeParams,...this.buildParamRules(this.cfg,t),...this.rulesAfterParams],r=new nR(n).tokenize(e);return this.cfg.postProcess?this.cfg.postProcess(r):r}buildRulesBeforeParams(e){return this.validRules([{type:r.BLOCK_COMMENT,regex:e.nestedBlockComments?new nS:/(\/\*[^]*?\*\/)/uy},{type:r.LINE_COMMENT,regex:t9(e.lineCommentTypes??["--"])},{type:r.QUOTED_IDENTIFIER,regex:nE(e.identTypes)},{type:r.NUMBER,regex:/(?:0x[0-9a-fA-F]+|0b[01]+|(?:-\s*)?[0-9]+(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+(?:\.[0-9]+)?)?)(?!\w)/uy},{type:r.RESERVED_PHRASE,regex:nr(e.reservedPhrases??[],e.identChars),text:np},{type:r.CASE,regex:/CASE\b/iuy,text:np},{type:r.END,regex:/END\b/iuy,text:np},{type:r.BETWEEN,regex:/BETWEEN\b/iuy,text:np},{type:r.LIMIT,regex:e.reservedClauses.includes("LIMIT")?/LIMIT\b/iuy:void 0,text:np},{type:r.RESERVED_CLAUSE,regex:nr(e.reservedClauses,e.identChars),text:np},{type:r.RESERVED_SELECT,regex:nr(e.reservedSelect,e.identChars),text:np},{type:r.RESERVED_SET_OPERATION,regex:nr(e.reservedSetOperations,e.identChars),text:np},{type:r.WHEN,regex:/WHEN\b/iuy,text:np},{type:r.ELSE,regex:/ELSE\b/iuy,text:np},{type:r.THEN,regex:/THEN\b/iuy,text:np},{type:r.RESERVED_JOIN,regex:nr(e.reservedJoins,e.identChars),text:np},{type:r.AND,regex:/AND\b/iuy,text:np},{type:r.OR,regex:/OR\b/iuy,text:np},{type:r.XOR,regex:e.supportsXor?/XOR\b/iuy:void 0,text:np},{type:r.RESERVED_FUNCTION_NAME,regex:nr(e.reservedFunctionNames,e.identChars),text:np},{type:r.RESERVED_KEYWORD,regex:nr(e.reservedKeywords,e.identChars),text:np}])}buildRulesAfterParams(e){return this.validRules([{type:r.VARIABLE,regex:e.variableTypes?ns(e.variableTypes):void 0},{type:r.STRING,regex:nE(e.stringTypes)},{type:r.IDENTIFIER,regex:nc(e.identChars)},{type:r.DELIMITER,regex:/[;]/uy},{type:r.COMMA,regex:/[,]/y},{type:r.OPEN_PAREN,regex:ne("open",e.extraParens)},{type:r.CLOSE_PAREN,regex:ne("close",e.extraParens)},{type:r.OPERATOR,regex:nt(["+","-","/",">","<","=","<>","<=",">=","!=",...e.operators??[]])},{type:r.ASTERISK,regex:/[*]/uy},{type:r.DOT,regex:/[.]/uy}])}buildParamRules(e,t){var n,o,i,a,s;let l={named:(null==t?void 0:t.named)||(null===(n=e.paramTypes)||void 0===n?void 0:n.named)||[],quoted:(null==t?void 0:t.quoted)||(null===(o=e.paramTypes)||void 0===o?void 0:o.quoted)||[],numbered:(null==t?void 0:t.numbered)||(null===(i=e.paramTypes)||void 0===i?void 0:i.numbered)||[],positional:"boolean"==typeof(null==t?void 0:t.positional)?t.positional:null===(a=e.paramTypes)||void 0===a?void 0:a.positional,custom:(null==t?void 0:t.custom)||(null===(s=e.paramTypes)||void 0===s?void 0:s.custom)||[]};return this.validRules([{type:r.NAMED_PARAMETER,regex:no(l.named,nu(e.paramChars||e.identChars)),key:e=>e.slice(1)},{type:r.QUOTED_PARAMETER,regex:no(l.quoted,nl(e.identTypes)),key:e=>(({tokenKey:e,quoteChar:t})=>e.replace(RegExp(t4("\\"+t),"gu"),t))({tokenKey:e.slice(2,-1),quoteChar:e.slice(-1)})},{type:r.NUMBERED_PARAMETER,regex:no(l.numbered,"[0-9]+"),key:e=>e.slice(1)},{type:r.POSITIONAL_PARAMETER,regex:l.positional?/[?]/y:void 0},...l.custom.map(e=>({type:r.CUSTOM_PARAMETER,regex:t3(e.regex),key:e.key??(e=>e)}))])}validRules(e){return e.filter(e=>!!e.regex)}}let np=e=>g(e.toUpperCase()),nN=new Map,nI=e=>{let t=nN.get(e);return t||(t=nh(e),nN.set(e,t)),t},nh=e=>({tokenizer:new nO(e.tokenizerOptions),formatOptions:n_(e.formatOptions)}),n_=e=>({alwaysDenseOperators:e.alwaysDenseOperators||[],onelineClauses:Object.fromEntries(e.onelineClauses.map(e=>[e,!0]))});function nm(e){return"tabularLeft"===e.indentStyle||"tabularRight"===e.indentStyle?" ".repeat(10):e.useTabs?" ":" ".repeat(e.tabWidth)}function nC(e){return"tabularLeft"===e.indentStyle||"tabularRight"===e.indentStyle}class nL{constructor(e){this.params=e,this.index=0}get({key:e,text:t}){return this.params?e?this.params[e]:this.params[this.index++]:t}getPositionalParameterIndex(){return this.index}setPositionalParameterIndex(e){this.index=e}}var ng=n(69654);let nv=(e,t,n)=>{if(d(e.type)){let o=nM(n,t);if(o&&"."===o.text)return{...e,type:r.IDENTIFIER,text:e.raw}}return e},nP=(e,t,n)=>{if(e.type===r.RESERVED_FUNCTION_NAME){let o=nb(n,t);if(!o||!nU(o))return{...e,type:r.RESERVED_KEYWORD}}return e},ny=(e,t,n)=>{if(e.type===r.IDENTIFIER){let o=nb(n,t);if(o&&nx(o))return{...e,type:r.ARRAY_IDENTIFIER}}return e},nD=(e,t,n)=>{if(e.type===r.RESERVED_KEYWORD){let o=nb(n,t);if(o&&nx(o))return{...e,type:r.ARRAY_KEYWORD}}return e},nM=(e,t)=>nb(e,t,-1),nb=(e,t,n=1)=>{let r=1;for(;e[t+r*n]&&nw(e[t+r*n]);)r++;return e[t+r*n]},nU=e=>e.type===r.OPEN_PAREN&&"("===e.text,nx=e=>e.type===r.OPEN_PAREN&&"["===e.text,nw=e=>e.type===r.BLOCK_COMMENT||e.type===r.LINE_COMMENT;class nG{index=0;tokens=[];input="";constructor(e){this.tokenize=e}reset(e,t){this.input=e,this.index=0,this.tokens=this.tokenize(e)}next(){return this.tokens[this.index++]}save(){}formatError(e){let{line:t,col:n}=nT(this.input,e.start);return`Parse error at token: ${e.text} at line ${t} column ${n}`}has(e){return e in r}}function nF(e){return e[0]}(s=o||(o={})).statement="statement",s.clause="clause",s.set_operation="set_operation",s.function_call="function_call",s.array_subscript="array_subscript",s.property_access="property_access",s.parenthesis="parenthesis",s.between_predicate="between_predicate",s.case_expression="case_expression",s.case_when="case_when",s.case_else="case_else",s.limit_clause="limit_clause",s.all_columns_asterisk="all_columns_asterisk",s.literal="literal",s.identifier="identifier",s.keyword="keyword",s.parameter="parameter",s.operator="operator",s.comma="comma",s.line_comment="line_comment",s.block_comment="block_comment";let nH=new nG(e=>[]),nB=e=>({type:o.keyword,tokenType:e.type,text:e.text,raw:e.raw}),nY=(e,{leading:t,trailing:n})=>(null!=t&&t.length&&(e={...e,leadingComments:t}),null!=n&&n.length&&(e={...e,trailingComments:n}),e),nk=(e,{leading:t,trailing:n})=>{if(null!=t&&t.length){let[n,...r]=e;e=[nY(n,{leading:t}),...r]}if(null!=n&&n.length){let t=e.slice(0,-1),r=e[e.length-1];e=[...t,nY(r,{trailing:n})]}return e},nV={Lexer:nH,ParserRules:[{name:"main$ebnf$1",symbols:[]},{name:"main$ebnf$1",symbols:["main$ebnf$1","statement"],postprocess:e=>e[0].concat([e[1]])},{name:"main",symbols:["main$ebnf$1"],postprocess:([e])=>{let t=e[e.length-1];return t&&!t.hasSemicolon?t.children.length>0?e:e.slice(0,-1):e}},{name:"statement$subexpression$1",symbols:[nH.has("DELIMITER")?{type:"DELIMITER"}:DELIMITER]},{name:"statement$subexpression$1",symbols:[nH.has("EOF")?{type:"EOF"}:EOF]},{name:"statement",symbols:["expressions_or_clauses","statement$subexpression$1"],postprocess:([e,[t]])=>({type:o.statement,children:e,hasSemicolon:t.type===r.DELIMITER})},{name:"expressions_or_clauses$ebnf$1",symbols:[]},{name:"expressions_or_clauses$ebnf$1",symbols:["expressions_or_clauses$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"expressions_or_clauses$ebnf$2",symbols:[]},{name:"expressions_or_clauses$ebnf$2",symbols:["expressions_or_clauses$ebnf$2","clause"],postprocess:e=>e[0].concat([e[1]])},{name:"expressions_or_clauses",symbols:["expressions_or_clauses$ebnf$1","expressions_or_clauses$ebnf$2"],postprocess:([e,t])=>[...e,...t]},{name:"clause$subexpression$1",symbols:["limit_clause"]},{name:"clause$subexpression$1",symbols:["select_clause"]},{name:"clause$subexpression$1",symbols:["other_clause"]},{name:"clause$subexpression$1",symbols:["set_operation"]},{name:"clause",symbols:["clause$subexpression$1"],postprocess:([[e]])=>e},{name:"limit_clause$ebnf$1$subexpression$1$ebnf$1",symbols:["free_form_sql"]},{name:"limit_clause$ebnf$1$subexpression$1$ebnf$1",symbols:["limit_clause$ebnf$1$subexpression$1$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"limit_clause$ebnf$1$subexpression$1",symbols:[nH.has("COMMA")?{type:"COMMA"}:COMMA,"limit_clause$ebnf$1$subexpression$1$ebnf$1"]},{name:"limit_clause$ebnf$1",symbols:["limit_clause$ebnf$1$subexpression$1"],postprocess:nF},{name:"limit_clause$ebnf$1",symbols:[],postprocess:()=>null},{name:"limit_clause",symbols:[nH.has("LIMIT")?{type:"LIMIT"}:LIMIT,"_","expression_chain_","limit_clause$ebnf$1"],postprocess:([e,t,n,r])=>{if(!r)return{type:o.limit_clause,limitKw:nY(nB(e),{trailing:t}),count:n};{let[i,a]=r;return{type:o.limit_clause,limitKw:nY(nB(e),{trailing:t}),offset:n,count:a}}}},{name:"select_clause$subexpression$1$ebnf$1",symbols:[]},{name:"select_clause$subexpression$1$ebnf$1",symbols:["select_clause$subexpression$1$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"select_clause$subexpression$1",symbols:["all_columns_asterisk","select_clause$subexpression$1$ebnf$1"]},{name:"select_clause$subexpression$1$ebnf$2",symbols:[]},{name:"select_clause$subexpression$1$ebnf$2",symbols:["select_clause$subexpression$1$ebnf$2","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"select_clause$subexpression$1",symbols:["asteriskless_free_form_sql","select_clause$subexpression$1$ebnf$2"]},{name:"select_clause",symbols:[nH.has("RESERVED_SELECT")?{type:"RESERVED_SELECT"}:RESERVED_SELECT,"select_clause$subexpression$1"],postprocess:([e,[t,n]])=>({type:o.clause,nameKw:nB(e),children:[t,...n]})},{name:"select_clause",symbols:[nH.has("RESERVED_SELECT")?{type:"RESERVED_SELECT"}:RESERVED_SELECT],postprocess:([e])=>({type:o.clause,nameKw:nB(e),children:[]})},{name:"all_columns_asterisk",symbols:[nH.has("ASTERISK")?{type:"ASTERISK"}:ASTERISK],postprocess:()=>({type:o.all_columns_asterisk})},{name:"other_clause$ebnf$1",symbols:[]},{name:"other_clause$ebnf$1",symbols:["other_clause$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"other_clause",symbols:[nH.has("RESERVED_CLAUSE")?{type:"RESERVED_CLAUSE"}:RESERVED_CLAUSE,"other_clause$ebnf$1"],postprocess:([e,t])=>({type:o.clause,nameKw:nB(e),children:t})},{name:"set_operation$ebnf$1",symbols:[]},{name:"set_operation$ebnf$1",symbols:["set_operation$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"set_operation",symbols:[nH.has("RESERVED_SET_OPERATION")?{type:"RESERVED_SET_OPERATION"}:RESERVED_SET_OPERATION,"set_operation$ebnf$1"],postprocess:([e,t])=>({type:o.set_operation,nameKw:nB(e),children:t})},{name:"expression_chain_$ebnf$1",symbols:["expression_with_comments_"]},{name:"expression_chain_$ebnf$1",symbols:["expression_chain_$ebnf$1","expression_with_comments_"],postprocess:e=>e[0].concat([e[1]])},{name:"expression_chain_",symbols:["expression_chain_$ebnf$1"],postprocess:nF},{name:"expression_chain$ebnf$1",symbols:[]},{name:"expression_chain$ebnf$1",symbols:["expression_chain$ebnf$1","_expression_with_comments"],postprocess:e=>e[0].concat([e[1]])},{name:"expression_chain",symbols:["expression","expression_chain$ebnf$1"],postprocess:([e,t])=>[e,...t]},{name:"andless_expression_chain$ebnf$1",symbols:[]},{name:"andless_expression_chain$ebnf$1",symbols:["andless_expression_chain$ebnf$1","_andless_expression_with_comments"],postprocess:e=>e[0].concat([e[1]])},{name:"andless_expression_chain",symbols:["andless_expression","andless_expression_chain$ebnf$1"],postprocess:([e,t])=>[e,...t]},{name:"expression_with_comments_",symbols:["expression","_"],postprocess:([e,t])=>nY(e,{trailing:t})},{name:"_expression_with_comments",symbols:["_","expression"],postprocess:([e,t])=>nY(t,{leading:e})},{name:"_andless_expression_with_comments",symbols:["_","andless_expression"],postprocess:([e,t])=>nY(t,{leading:e})},{name:"free_form_sql$subexpression$1",symbols:["asteriskless_free_form_sql"]},{name:"free_form_sql$subexpression$1",symbols:["asterisk"]},{name:"free_form_sql",symbols:["free_form_sql$subexpression$1"],postprocess:([[e]])=>e},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["asteriskless_andless_expression"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["logic_operator"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["between_predicate"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["comma"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["comment"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["other_keyword"]},{name:"asteriskless_free_form_sql",symbols:["asteriskless_free_form_sql$subexpression$1"],postprocess:([[e]])=>e},{name:"expression$subexpression$1",symbols:["andless_expression"]},{name:"expression$subexpression$1",symbols:["logic_operator"]},{name:"expression",symbols:["expression$subexpression$1"],postprocess:([[e]])=>e},{name:"andless_expression$subexpression$1",symbols:["asteriskless_andless_expression"]},{name:"andless_expression$subexpression$1",symbols:["asterisk"]},{name:"andless_expression",symbols:["andless_expression$subexpression$1"],postprocess:([[e]])=>e},{name:"asteriskless_andless_expression$subexpression$1",symbols:["array_subscript"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["case_expression"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["function_call"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["property_access"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["parenthesis"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["curly_braces"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["square_brackets"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["operator"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["identifier"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["parameter"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["literal"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["keyword"]},{name:"asteriskless_andless_expression",symbols:["asteriskless_andless_expression$subexpression$1"],postprocess:([[e]])=>e},{name:"array_subscript",symbols:[nH.has("ARRAY_IDENTIFIER")?{type:"ARRAY_IDENTIFIER"}:ARRAY_IDENTIFIER,"_","square_brackets"],postprocess:([e,t,n])=>({type:o.array_subscript,array:nY({type:o.identifier,text:e.text},{trailing:t}),parenthesis:n})},{name:"array_subscript",symbols:[nH.has("ARRAY_KEYWORD")?{type:"ARRAY_KEYWORD"}:ARRAY_KEYWORD,"_","square_brackets"],postprocess:([e,t,n])=>({type:o.array_subscript,array:nY(nB(e),{trailing:t}),parenthesis:n})},{name:"function_call",symbols:[nH.has("RESERVED_FUNCTION_NAME")?{type:"RESERVED_FUNCTION_NAME"}:RESERVED_FUNCTION_NAME,"_","parenthesis"],postprocess:([e,t,n])=>({type:o.function_call,nameKw:nY(nB(e),{trailing:t}),parenthesis:n})},{name:"parenthesis",symbols:[{literal:"("},"expressions_or_clauses",{literal:")"}],postprocess:([e,t,n])=>({type:o.parenthesis,children:t,openParen:"(",closeParen:")"})},{name:"curly_braces$ebnf$1",symbols:[]},{name:"curly_braces$ebnf$1",symbols:["curly_braces$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"curly_braces",symbols:[{literal:"{"},"curly_braces$ebnf$1",{literal:"}"}],postprocess:([e,t,n])=>({type:o.parenthesis,children:t,openParen:"{",closeParen:"}"})},{name:"square_brackets$ebnf$1",symbols:[]},{name:"square_brackets$ebnf$1",symbols:["square_brackets$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"square_brackets",symbols:[{literal:"["},"square_brackets$ebnf$1",{literal:"]"}],postprocess:([e,t,n])=>({type:o.parenthesis,children:t,openParen:"[",closeParen:"]"})},{name:"property_access$subexpression$1",symbols:["identifier"]},{name:"property_access$subexpression$1",symbols:["array_subscript"]},{name:"property_access$subexpression$1",symbols:["all_columns_asterisk"]},{name:"property_access",symbols:["expression","_",nH.has("DOT")?{type:"DOT"}:DOT,"_","property_access$subexpression$1"],postprocess:([e,t,n,r,[i]])=>({type:o.property_access,object:nY(e,{trailing:t}),property:nY(i,{leading:r})})},{name:"between_predicate",symbols:[nH.has("BETWEEN")?{type:"BETWEEN"}:BETWEEN,"_","andless_expression_chain","_",nH.has("AND")?{type:"AND"}:AND,"_","andless_expression"],postprocess:([e,t,n,r,i,a,s])=>({type:o.between_predicate,betweenKw:nB(e),expr1:nk(n,{leading:t,trailing:r}),andKw:nB(i),expr2:[nY(s,{leading:a})]})},{name:"case_expression$ebnf$1",symbols:["expression_chain_"],postprocess:nF},{name:"case_expression$ebnf$1",symbols:[],postprocess:()=>null},{name:"case_expression$ebnf$2",symbols:[]},{name:"case_expression$ebnf$2",symbols:["case_expression$ebnf$2","case_clause"],postprocess:e=>e[0].concat([e[1]])},{name:"case_expression",symbols:[nH.has("CASE")?{type:"CASE"}:CASE,"_","case_expression$ebnf$1","case_expression$ebnf$2",nH.has("END")?{type:"END"}:END],postprocess:([e,t,n,r,i])=>({type:o.case_expression,caseKw:nY(nB(e),{trailing:t}),endKw:nB(i),expr:n||[],clauses:r})},{name:"case_clause",symbols:[nH.has("WHEN")?{type:"WHEN"}:WHEN,"_","expression_chain_",nH.has("THEN")?{type:"THEN"}:THEN,"_","expression_chain_"],postprocess:([e,t,n,r,i,a])=>({type:o.case_when,whenKw:nY(nB(e),{trailing:t}),thenKw:nY(nB(r),{trailing:i}),condition:n,result:a})},{name:"case_clause",symbols:[nH.has("ELSE")?{type:"ELSE"}:ELSE,"_","expression_chain_"],postprocess:([e,t,n])=>({type:o.case_else,elseKw:nY(nB(e),{trailing:t}),result:n})},{name:"comma$subexpression$1",symbols:[nH.has("COMMA")?{type:"COMMA"}:COMMA]},{name:"comma",symbols:["comma$subexpression$1"],postprocess:([[e]])=>({type:o.comma})},{name:"asterisk$subexpression$1",symbols:[nH.has("ASTERISK")?{type:"ASTERISK"}:ASTERISK]},{name:"asterisk",symbols:["asterisk$subexpression$1"],postprocess:([[e]])=>({type:o.operator,text:e.text})},{name:"operator$subexpression$1",symbols:[nH.has("OPERATOR")?{type:"OPERATOR"}:OPERATOR]},{name:"operator",symbols:["operator$subexpression$1"],postprocess:([[e]])=>({type:o.operator,text:e.text})},{name:"identifier$subexpression$1",symbols:[nH.has("IDENTIFIER")?{type:"IDENTIFIER"}:IDENTIFIER]},{name:"identifier$subexpression$1",symbols:[nH.has("QUOTED_IDENTIFIER")?{type:"QUOTED_IDENTIFIER"}:QUOTED_IDENTIFIER]},{name:"identifier$subexpression$1",symbols:[nH.has("VARIABLE")?{type:"VARIABLE"}:VARIABLE]},{name:"identifier",symbols:["identifier$subexpression$1"],postprocess:([[e]])=>({type:o.identifier,text:e.text})},{name:"parameter$subexpression$1",symbols:[nH.has("NAMED_PARAMETER")?{type:"NAMED_PARAMETER"}:NAMED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[nH.has("QUOTED_PARAMETER")?{type:"QUOTED_PARAMETER"}:QUOTED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[nH.has("NUMBERED_PARAMETER")?{type:"NUMBERED_PARAMETER"}:NUMBERED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[nH.has("POSITIONAL_PARAMETER")?{type:"POSITIONAL_PARAMETER"}:POSITIONAL_PARAMETER]},{name:"parameter$subexpression$1",symbols:[nH.has("CUSTOM_PARAMETER")?{type:"CUSTOM_PARAMETER"}:CUSTOM_PARAMETER]},{name:"parameter",symbols:["parameter$subexpression$1"],postprocess:([[e]])=>({type:o.parameter,key:e.key,text:e.text})},{name:"literal$subexpression$1",symbols:[nH.has("NUMBER")?{type:"NUMBER"}:NUMBER]},{name:"literal$subexpression$1",symbols:[nH.has("STRING")?{type:"STRING"}:STRING]},{name:"literal",symbols:["literal$subexpression$1"],postprocess:([[e]])=>({type:o.literal,text:e.text})},{name:"keyword$subexpression$1",symbols:[nH.has("RESERVED_KEYWORD")?{type:"RESERVED_KEYWORD"}:RESERVED_KEYWORD]},{name:"keyword$subexpression$1",symbols:[nH.has("RESERVED_PHRASE")?{type:"RESERVED_PHRASE"}:RESERVED_PHRASE]},{name:"keyword$subexpression$1",symbols:[nH.has("RESERVED_JOIN")?{type:"RESERVED_JOIN"}:RESERVED_JOIN]},{name:"keyword",symbols:["keyword$subexpression$1"],postprocess:([[e]])=>nB(e)},{name:"logic_operator$subexpression$1",symbols:[nH.has("AND")?{type:"AND"}:AND]},{name:"logic_operator$subexpression$1",symbols:[nH.has("OR")?{type:"OR"}:OR]},{name:"logic_operator$subexpression$1",symbols:[nH.has("XOR")?{type:"XOR"}:XOR]},{name:"logic_operator",symbols:["logic_operator$subexpression$1"],postprocess:([[e]])=>nB(e)},{name:"other_keyword$subexpression$1",symbols:[nH.has("WHEN")?{type:"WHEN"}:WHEN]},{name:"other_keyword$subexpression$1",symbols:[nH.has("THEN")?{type:"THEN"}:THEN]},{name:"other_keyword$subexpression$1",symbols:[nH.has("ELSE")?{type:"ELSE"}:ELSE]},{name:"other_keyword$subexpression$1",symbols:[nH.has("END")?{type:"END"}:END]},{name:"other_keyword",symbols:["other_keyword$subexpression$1"],postprocess:([[e]])=>nB(e)},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1","comment"],postprocess:e=>e[0].concat([e[1]])},{name:"_",symbols:["_$ebnf$1"],postprocess:([e])=>e},{name:"comment",symbols:[nH.has("LINE_COMMENT")?{type:"LINE_COMMENT"}:LINE_COMMENT],postprocess:([e])=>({type:o.line_comment,text:e.text,precedingWhitespace:e.precedingWhitespace})},{name:"comment",symbols:[nH.has("BLOCK_COMMENT")?{type:"BLOCK_COMMENT"}:BLOCK_COMMENT],postprocess:([e])=>({type:o.block_comment,text:e.text,precedingWhitespace:e.precedingWhitespace})}],ParserStart:"main"},{Parser:n$,Grammar:nW}=ng,nZ=/^\s+/u;(l=i||(i={}))[l.SPACE=0]="SPACE",l[l.NO_SPACE=1]="NO_SPACE",l[l.NO_NEWLINE=2]="NO_NEWLINE",l[l.NEWLINE=3]="NEWLINE",l[l.MANDATORY_NEWLINE=4]="MANDATORY_NEWLINE",l[l.INDENT=5]="INDENT",l[l.SINGLE_INDENT=6]="SINGLE_INDENT";class nj{items=[];constructor(e){this.indentation=e}add(...e){for(let t of e)switch(t){case i.SPACE:this.items.push(i.SPACE);break;case i.NO_SPACE:this.trimHorizontalWhitespace();break;case i.NO_NEWLINE:this.trimWhitespace();break;case i.NEWLINE:this.trimHorizontalWhitespace(),this.addNewline(i.NEWLINE);break;case i.MANDATORY_NEWLINE:this.trimHorizontalWhitespace(),this.addNewline(i.MANDATORY_NEWLINE);break;case i.INDENT:this.addIndentation();break;case i.SINGLE_INDENT:this.items.push(i.SINGLE_INDENT);break;default:this.items.push(t)}}trimHorizontalWhitespace(){for(;nX(m(this.items));)this.items.pop()}trimWhitespace(){for(;nK(m(this.items));)this.items.pop()}addNewline(e){if(this.items.length>0)switch(m(this.items)){case i.NEWLINE:this.items.pop(),this.items.push(e);break;case i.MANDATORY_NEWLINE:break;default:this.items.push(e)}}addIndentation(){for(let e=0;ethis.itemToString(e)).join("")}getLayoutItems(){return this.items}itemToString(e){switch(e){case i.SPACE:return" ";case i.NEWLINE:case i.MANDATORY_NEWLINE:return"\n";case i.SINGLE_INDENT:return this.indentation.getSingleIndent();default:return e}}}let nX=e=>e===i.SPACE||e===i.SINGLE_INDENT,nK=e=>e===i.SPACE||e===i.SINGLE_INDENT||e===i.NEWLINE,nz="top-level";class nJ{indentTypes=[];constructor(e){this.indent=e}getSingleIndent(){return this.indent}getLevel(){return this.indentTypes.length}increaseTopLevel(){this.indentTypes.push(nz)}increaseBlockLevel(){this.indentTypes.push("block-level")}decreaseTopLevel(){this.indentTypes.length>0&&m(this.indentTypes)===nz&&this.indentTypes.pop()}decreaseBlockLevel(){for(;this.indentTypes.length>0;){let e=this.indentTypes.pop();if(e!==nz)break}}}class nq extends nj{length=0;trailingSpace=!1;constructor(e){super(new nJ("")),this.expressionWidth=e}add(...e){if(e.forEach(e=>this.addToLength(e)),this.length>this.expressionWidth)throw new nQ;super.add(...e)}addToLength(e){if("string"==typeof e)this.length+=e.length,this.trailingSpace=!1;else if(e===i.MANDATORY_NEWLINE||e===i.NEWLINE)throw new nQ;else e===i.INDENT||e===i.SINGLE_INDENT||e===i.SPACE?this.trailingSpace||(this.length++,this.trailingSpace=!0):(e===i.NO_NEWLINE||e===i.NO_SPACE)&&this.trailingSpace&&(this.trailingSpace=!1,this.length--)}}class nQ extends Error{}class n0{inline=!1;nodes=[];index=-1;constructor({cfg:e,dialectCfg:t,params:n,layout:r,inline:o=!1}){this.cfg=e,this.dialectCfg=t,this.inline=o,this.params=n,this.layout=r}format(e){for(this.nodes=e,this.index=0;this.index{this.layout.add(this.showKw(e.nameKw))}),this.formatNode(e.parenthesis)}formatArraySubscript(e){this.withComments(e.array,()=>{this.layout.add(e.array.type===o.keyword?this.showKw(e.array):e.array.text)}),this.formatNode(e.parenthesis)}formatPropertyAccess(e){this.formatNode(e.object),this.layout.add(i.NO_SPACE,"."),this.formatNode(e.property)}formatParenthesis(e){let t=this.formatInlineExpression(e.children);t?(this.layout.add(e.openParen),this.layout.add(...t.getLayoutItems()),this.layout.add(i.NO_SPACE,e.closeParen,i.SPACE)):(this.layout.add(e.openParen,i.NEWLINE),nC(this.cfg)?(this.layout.add(i.INDENT),this.layout=this.formatSubExpression(e.children)):(this.layout.indentation.increaseBlockLevel(),this.layout.add(i.INDENT),this.layout=this.formatSubExpression(e.children),this.layout.indentation.decreaseBlockLevel()),this.layout.add(i.NEWLINE,i.INDENT,e.closeParen,i.SPACE))}formatBetweenPredicate(e){this.layout.add(this.showKw(e.betweenKw),i.SPACE),this.layout=this.formatSubExpression(e.expr1),this.layout.add(i.NO_SPACE,i.SPACE,this.showNonTabularKw(e.andKw),i.SPACE),this.layout=this.formatSubExpression(e.expr2),this.layout.add(i.SPACE)}formatCaseExpression(e){this.formatNode(e.caseKw),this.layout.indentation.increaseBlockLevel(),this.layout=this.formatSubExpression(e.expr),this.layout=this.formatSubExpression(e.clauses),this.layout.indentation.decreaseBlockLevel(),this.layout.add(i.NEWLINE,i.INDENT),this.formatNode(e.endKw)}formatCaseWhen(e){this.layout.add(i.NEWLINE,i.INDENT),this.formatNode(e.whenKw),this.layout=this.formatSubExpression(e.condition),this.formatNode(e.thenKw),this.layout=this.formatSubExpression(e.result)}formatCaseElse(e){this.layout.add(i.NEWLINE,i.INDENT),this.formatNode(e.elseKw),this.layout=this.formatSubExpression(e.result)}formatClause(e){this.isOnelineClause(e)?this.formatClauseInOnelineStyle(e):nC(this.cfg)?this.formatClauseInTabularStyle(e):this.formatClauseInIndentedStyle(e)}isOnelineClause(e){return this.dialectCfg.onelineClauses[e.nameKw.text]}formatClauseInIndentedStyle(e){this.layout.add(i.NEWLINE,i.INDENT,this.showKw(e.nameKw),i.NEWLINE),this.layout.indentation.increaseTopLevel(),this.layout.add(i.INDENT),this.layout=this.formatSubExpression(e.children),this.layout.indentation.decreaseTopLevel()}formatClauseInOnelineStyle(e){this.layout.add(i.NEWLINE,i.INDENT,this.showKw(e.nameKw),i.SPACE),this.layout=this.formatSubExpression(e.children)}formatClauseInTabularStyle(e){this.layout.add(i.NEWLINE,i.INDENT,this.showKw(e.nameKw),i.SPACE),this.layout.indentation.increaseTopLevel(),this.layout=this.formatSubExpression(e.children),this.layout.indentation.decreaseTopLevel()}formatSetOperation(e){this.layout.add(i.NEWLINE,i.INDENT,this.showKw(e.nameKw),i.NEWLINE),this.layout.add(i.INDENT),this.layout=this.formatSubExpression(e.children)}formatLimitClause(e){this.withComments(e.limitKw,()=>{this.layout.add(i.NEWLINE,i.INDENT,this.showKw(e.limitKw))}),this.layout.indentation.increaseTopLevel(),nC(this.cfg)?this.layout.add(i.SPACE):this.layout.add(i.NEWLINE,i.INDENT),e.offset&&(this.layout=this.formatSubExpression(e.offset),this.layout.add(i.NO_SPACE,",",i.SPACE)),this.layout=this.formatSubExpression(e.count),this.layout.indentation.decreaseTopLevel()}formatAllColumnsAsterisk(e){this.layout.add("*",i.SPACE)}formatLiteral(e){this.layout.add(e.text,i.SPACE)}formatIdentifier(e){this.layout.add(e.text,i.SPACE)}formatParameter(e){this.layout.add(this.params.get(e),i.SPACE)}formatOperator({text:e}){this.cfg.denseOperators||this.dialectCfg.alwaysDenseOperators.includes(e)?this.layout.add(i.NO_SPACE,e):":"===e?this.layout.add(i.NO_SPACE,e,i.SPACE):this.layout.add(e,i.SPACE)}formatComma(e){this.inline?this.layout.add(i.NO_SPACE,",",i.SPACE):this.layout.add(i.NO_SPACE,",",i.NEWLINE,i.INDENT)}withComments(e,t){this.formatComments(e.leadingComments),t(),this.formatComments(e.trailingComments)}formatComments(e){e&&e.forEach(e=>{e.type===o.line_comment?this.formatLineComment(e):this.formatBlockComment(e)})}formatLineComment(e){P(e.precedingWhitespace||"")?this.layout.add(i.NEWLINE,i.INDENT,e.text,i.MANDATORY_NEWLINE,i.INDENT):this.layout.getLayoutItems().length>0?this.layout.add(i.NO_NEWLINE,i.SPACE,e.text,i.MANDATORY_NEWLINE,i.INDENT):this.layout.add(e.text,i.MANDATORY_NEWLINE,i.INDENT)}formatBlockComment(e){this.isMultilineBlockComment(e)?(this.splitBlockComment(e.text).forEach(e=>{this.layout.add(i.NEWLINE,i.INDENT,e)}),this.layout.add(i.NEWLINE,i.INDENT)):this.layout.add(e.text,i.SPACE)}isMultilineBlockComment(e){return P(e.text)||P(e.precedingWhitespace||"")}isDocComment(e){let t=e.split(/\n/);return/^\/\*\*?$/.test(t[0])&&t.slice(1,t.length-1).every(e=>/^\s*\*/.test(e))&&/^\s*\*\/$/.test(m(t))}splitBlockComment(e){return this.isDocComment(e)?e.split(/\n/).map(e=>/^\s*\*/.test(e)?" "+e.replace(/^\s*/,""):e):e.split(/\n/).map(e=>e.replace(/^\s*/,""))}formatSubExpression(e){return new n0({cfg:this.cfg,dialectCfg:this.dialectCfg,params:this.params,layout:this.layout,inline:this.inline}).format(e)}formatInlineExpression(e){let t=this.params.getPositionalParameterIndex();try{return new n0({cfg:this.cfg,dialectCfg:this.dialectCfg,params:this.params,layout:new nq(this.cfg.expressionWidth),inline:!0}).format(e)}catch(e){if(e instanceof nQ){this.params.setPositionalParameterIndex(t);return}throw e}}formatKeywordNode(e){switch(e.tokenType){case r.RESERVED_JOIN:return this.formatJoin(e);case r.AND:case r.OR:case r.XOR:return this.formatLogicalOperator(e);default:return this.formatKeyword(e)}}formatJoin(e){nC(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(i.NEWLINE,i.INDENT,this.showKw(e),i.SPACE),this.layout.indentation.increaseTopLevel()):this.layout.add(i.NEWLINE,i.INDENT,this.showKw(e),i.SPACE)}formatKeyword(e){this.layout.add(this.showKw(e),i.SPACE)}formatLogicalOperator(e){"before"===this.cfg.logicalOperatorNewline?nC(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(i.NEWLINE,i.INDENT,this.showKw(e),i.SPACE),this.layout.indentation.increaseTopLevel()):this.layout.add(i.NEWLINE,i.INDENT,this.showKw(e),i.SPACE):this.layout.add(this.showKw(e),i.NEWLINE,i.INDENT)}showKw(e){var t;return f(t=e.tokenType)||t===r.RESERVED_CLAUSE||t===r.RESERVED_SELECT||t===r.RESERVED_SET_OPERATION||t===r.RESERVED_JOIN||t===r.LIMIT?function(e,t){if("standard"===t)return e;let n=[];return e.length>=10&&e.includes(" ")&&([e,...n]=e.split(" ")),(e="tabularLeft"===t?e.padEnd(9," "):e.padStart(9," "))+["",...n].join(" ")}(this.showNonTabularKw(e),this.cfg.indentStyle):this.showNonTabularKw(e)}showNonTabularKw(e){switch(this.cfg.keywordCase){case"preserve":return g(e.raw);case"upper":return e.text;case"lower":return e.text.toLowerCase()}}}class n1{constructor(e,t){this.dialect=e,this.cfg=t,this.params=new nL(this.cfg.params)}format(e){let t=this.parse(e),n=this.formatAst(t),r=this.postFormat(n);return r.trimEnd()}parse(e){return(function(e){let t={},n=new nG(n=>[...e.tokenize(n,t).map(nv).map(nP).map(ny).map(nD),c(n.length)]),r=new n$(nW.fromCompiled(nV),{lexer:n});return{parse:(e,n)=>{t=n;let{results:o}=r.feed(e);if(1===o.length)return o[0];if(0===o.length)throw Error("Parse error: Invalid SQL");throw Error(`Parse error: Ambiguous grammar -${JSON.stringify(o,void 0,2)}`)}}})(this.dialect.tokenizer).parse(e,this.cfg.paramTypes||{})}formatAst(e){return e.map(e=>this.formatStatement(e)).join("\n".repeat(this.cfg.linesBetweenQueries+1))}formatStatement(e){let t=new n0({cfg:this.cfg,dialectCfg:this.dialect.formatOptions,params:this.params,layout:new nj(new nJ(nm(this.cfg)))}).format(e.children);return e.hasSemicolon&&(this.cfg.newlineBeforeSemicolon?t.add(i.NEWLINE,";"):t.add(i.NO_NEWLINE,";")),t.toString()}postFormat(e){if(this.cfg.tabulateAlias&&(e=function(e){let t=e.split("\n"),n=[];for(let e=0;e({line:e,matches:e.match(/(^.*?\S) (AS )?(\S+,?$)/i)})).map(({line:e,matches:t})=>t?{precedingText:t[1],as:t[2],alias:t[3]}:{precedingText:e}),i=L(o.map(({precedingText:e})=>e.replace(/\s*,\s*$/,"")));n=[...n,...r=o.map(({precedingText:e,as:t,alias:n})=>e+(n?" ".repeat(i-e.length+1)+(t??"")+n:""))]}n.push(t[e])}return n.join("\n")}(e)),"before"===this.cfg.commaPosition||"tabular"===this.cfg.commaPosition){var t,n,r;t=e,n=this.cfg.commaPosition,r=nm(this.cfg),e=(function(e){let t=[];for(let n=0;n{if(1===e.length)return e;if("tabular"===n)return function(e){let t=L(e.map(e=>e.replace(/\s*--.*/,"")))-1;return e.map((n,r)=>r===e.length-1?n:function(e,t){let[,n,r]=e.match(/^(.*?),(\s*--.*)?$/)||[],o=" ".repeat(t-n.length);return`${n}${o},${r??""}`}(n,t))}(e);if("before"===n)return e.map(e=>e.replace(/,(\s*(--.*)?$)/,"$1")).map((e,t)=>{if(0===t)return e;let[n]=e.match(nZ)||[""];return n.replace(RegExp(r+"$"),"")+r.replace(/ {2}$/,", ")+e.trimStart()});throw Error(`Unexpected commaPosition: ${n}`)}).join("\n")}return e}}class n2 extends Error{}let n4={bigquery:"bigquery",db2:"db2",hive:"hive",mariadb:"mariadb",mysql:"mysql",n1ql:"n1ql",plsql:"plsql",postgresql:"postgresql",redshift:"redshift",spark:"spark",sqlite:"sqlite",sql:"sql",trino:"trino",transactsql:"transactsql",tsql:"transactsql",singlestoredb:"singlestoredb",snowflake:"snowflake"},n6=Object.keys(n4),n3={tabWidth:2,useTabs:!1,keywordCase:"preserve",indentStyle:"standard",logicalOperatorNewline:"before",tabulateAlias:!1,commaPosition:"after",expressionWidth:50,linesBetweenQueries:1,denseOperators:!1,newlineBeforeSemicolon:!1},n8=(e,t={})=>{if("string"==typeof t.language&&!n6.includes(t.language))throw new n2(`Unsupported SQL dialect: ${t.language}`);let n=n4[t.language||"sql"];return n5(e,{...t,dialect:E[n]})},n5=(e,{dialect:t,...n})=>{if("string"!=typeof e)throw Error("Invalid query argument. Expected string, instead got "+typeof e);let r=function(e){if("multilineLists"in e)throw new n2("multilineLists config is no more supported.");if("newlineBeforeOpenParen"in e)throw new n2("newlineBeforeOpenParen config is no more supported.");if("newlineBeforeCloseParen"in e)throw new n2("newlineBeforeCloseParen config is no more supported.");if("aliasAs"in e)throw new n2("aliasAs config is no more supported.");if(e.expressionWidth<=0)throw new n2(`expressionWidth config must be positive number. Received ${e.expressionWidth} instead.`);if("before"===e.commaPosition&&e.useTabs)throw new n2("commaPosition: before does not work when tabs are used for indentation.");return e.params&&!function(e){let t=e instanceof Array?e:Object.values(e);return t.every(e=>"string"==typeof e)}(e.params)&&console.warn('WARNING: All "params" option values should be strings.'),e}({...n3,...n});return new n1(nI(t),r).format(e)};var n7=n(19284),n9=n(25519);function re(){var e;let t=null!==(e=localStorage.getItem(n9.rU))&&void 0!==e?e:"";try{let e=JSON.parse(t);return e}catch(e){return null}}function rt(){try{var e;let t=JSON.parse(null!==(e=localStorage.getItem(n9.C9))&&void 0!==e?e:"").user_id;return t}catch(e){return}}let rn="__db_gpt_im_key",rr="__db_gpt_static_flow_nodes_key";function ro(e,t){if(!e)return"";try{return n8(e,{language:t})}catch(t){return e}}},90833:function(){},80864:function(){},77663:function(e){!function(){var t={229:function(e){var t,n,r,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l=[],E=!1,c=-1;function u(){E&&r&&(E=!1,r.length?l=r.concat(l):c=-1,l.length&&T())}function T(){if(!E){var e=s(u);E=!0;for(var t=l.length;t;){for(r=l,l=[];++c1)for(var n=1;n1?t-1:0),r=1;r=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}}):e}function w(e,t){return!!(null==e||"array"===t&&Array.isArray(e)&&!e.length)||("string"===t||"url"===t||"hex"===t||"email"===t||"date"===t||"pattern"===t)&&"string"==typeof e&&!e}function G(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length){n(a);return}var s=r;r+=1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},W={integer:function(e){return W.number(e)&&parseInt(e,10)===e},float:function(e){return W.number(e)&&!W.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return new RegExp(e),!0}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(0,C.Z)(e)&&!W.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match($.email)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(V())},hex:function(e){return"string"==typeof e&&!!e.match($.hex)}},Z={required:k,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(x(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t){k(e,t,n,r,o);return}var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?W[i](t)||r.push(x(o.messages.types[i],e.fullField,e.type)):i&&(0,C.Z)(t)!==e.type&&r.push(x(o.messages.types[i],e.fullField,e.type))},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,E=null,c="number"==typeof t,u="string"==typeof t,T=Array.isArray(t);if(c?E="number":u?E="string":T&&(E="array"),!E)return!1;T&&(l=t.length),u&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&r.push(x(o.messages[E].len,e.fullField,e.len)):a&&!s&&le.max?r.push(x(o.messages[E].max,e.fullField,e.max)):a&&s&&(le.max)&&r.push(x(o.messages[E].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[Y]=Array.isArray(e[Y])?e[Y]:[],-1===e[Y].indexOf(t)&&r.push(x(o.messages[Y],e.fullField,e[Y].join(", ")))},pattern:function(e,t,n,r,o){!e.pattern||(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(x(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"!=typeof e.pattern||new RegExp(e.pattern).test(t)||r.push(x(o.messages.pattern.mismatch,e.fullField,t,e.pattern)))}},j=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(w(t,i)&&!e.required)return n();Z.required(e,t,r,a,o,i),w(t,i)||Z.type(e,t,r,a,o)}n(a)},X={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(w(t,"string")&&!e.required)return n();Z.required(e,t,r,i,o,"string"),w(t,"string")||(Z.type(e,t,r,i,o),Z.range(e,t,r,i,o),Z.pattern(e,t,r,i,o),!0===e.whitespace&&Z.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(w(t)&&!e.required)return n();Z.required(e,t,r,i,o),void 0!==t&&Z.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),w(t)&&!e.required)return n();Z.required(e,t,r,i,o),void 0!==t&&(Z.type(e,t,r,i,o),Z.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(w(t)&&!e.required)return n();Z.required(e,t,r,i,o),void 0!==t&&Z.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(w(t)&&!e.required)return n();Z.required(e,t,r,i,o),w(t)||Z.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(w(t)&&!e.required)return n();Z.required(e,t,r,i,o),void 0!==t&&(Z.type(e,t,r,i,o),Z.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(w(t)&&!e.required)return n();Z.required(e,t,r,i,o),void 0!==t&&(Z.type(e,t,r,i,o),Z.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();Z.required(e,t,r,i,o,"array"),null!=t&&(Z.type(e,t,r,i,o),Z.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(w(t)&&!e.required)return n();Z.required(e,t,r,i,o),void 0!==t&&Z.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(w(t)&&!e.required)return n();Z.required(e,t,r,i,o),void 0!==t&&Z.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(w(t,"string")&&!e.required)return n();Z.required(e,t,r,i,o),w(t,"string")||Z.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(w(t,"date")&&!e.required)return n();Z.required(e,t,r,a,o),!w(t,"date")&&(i=t instanceof Date?t:new Date(t),Z.type(e,i,r,a,o),i&&Z.range(e,i.getTime(),r,a,o))}n(a)},url:j,hex:j,email:j,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":(0,C.Z)(t);Z.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(w(t)&&!e.required)return n();Z.required(e,t,r,i,o)}n(i)}},K=function(){function e(t){(0,u.Z)(this,e),(0,A.Z)(this,"rules",null),(0,A.Z)(this,"_messages",g),this.define(t)}return(0,T.Z)(e,[{key:"define",value:function(e){var t=this;if(!e)throw Error("Cannot configure a schema with no rules");if("object"!==(0,C.Z)(e)||Array.isArray(e))throw Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})}},{key:"messages",value:function(e){return e&&(this._messages=B(L(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},i=t,a=r,s=o;if("function"==typeof a&&(s=a,a={}),!this.rules||0===Object.keys(this.rules).length)return s&&s(null,i),Promise.resolve(i);if(a.messages){var l=this.messages();l===g&&(l=L()),B(l,a.messages),a.messages=l}else a.messages=this.messages();var u={};(a.keys||Object.keys(this.rules)).forEach(function(e){var r=n.rules[e],o=i[e];r.forEach(function(r){var a=r;"function"==typeof a.transform&&(i===t&&(i=(0,E.Z)({},i)),null!=(o=i[e]=a.transform(o))&&(a.type=a.type||(Array.isArray(o)?"array":(0,C.Z)(o)))),(a="function"==typeof a?{validator:a}:(0,E.Z)({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),u[e]=u[e]||[],u[e].push({rule:a,value:o,source:i,field:e}))})});var T={};return function(e,t,n,r,o){if(t.first){var i=new Promise(function(t,i){var a;G((a=[],Object.keys(e).forEach(function(t){a.push.apply(a,(0,c.Z)(e[t]||[]))}),a),n,function(e){return r(e),e.length?i(new F(e,U(e))):t(o)})});return i.catch(function(e){return e}),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,E=0,u=[],T=new Promise(function(t,i){var T=function(e){if(u.push.apply(u,e),++E===l)return r(u),u.length?i(new F(u,U(u))):t(o)};s.length||(r(u),t(o)),s.forEach(function(t){var r=e[t];-1!==a.indexOf(t)?G(r,n,T):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,(0,c.Z)(e||[])),++o===i&&n(r)}e.forEach(function(e){t(e,a)})}(r,n,T)})});return T.catch(function(e){return e}),T}(u,a,function(t,n){var r,o,s,l=t.rule,u=("object"===l.type||"array"===l.type)&&("object"===(0,C.Z)(l.fields)||"object"===(0,C.Z)(l.defaultField));function R(e,t){return(0,E.Z)((0,E.Z)({},t),{},{fullField:"".concat(l.fullField,".").concat(e),fullFields:l.fullFields?[].concat((0,c.Z)(l.fullFields),[e]):[e]})}function d(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Array.isArray(r)?r:[r];!a.suppressWarning&&o.length&&e.warning("async-validator:",o),o.length&&void 0!==l.message&&(o=[].concat(l.message));var s=o.map(H(l,i));if(a.first&&s.length)return T[l.field]=1,n(s);if(u){if(l.required&&!t.value)return void 0!==l.message?s=[].concat(l.message).map(H(l,i)):a.error&&(s=[a.error(l,x(a.messages.required,l.field))]),n(s);var d={};l.defaultField&&Object.keys(t.value).map(function(e){d[e]=l.defaultField});var f={};Object.keys(d=(0,E.Z)((0,E.Z)({},d),t.rule.fields)).forEach(function(e){var t=d[e],n=Array.isArray(t)?t:[t];f[e]=n.map(R.bind(null,e))});var A=new e(f);A.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),A.validate(t.value,t.rule.options||a,function(e){var t=[];s&&s.length&&t.push.apply(t,(0,c.Z)(s)),e&&e.length&&t.push.apply(t,(0,c.Z)(e)),n(t.length?t:null)})}else n(s)}if(u=u&&(l.required||!l.required&&t.value),l.field=t.field,l.asyncValidator)r=l.asyncValidator(l,t.value,d,t.source,a);else if(l.validator){try{r=l.validator(l,t.value,d,t.source,a)}catch(e){null===(o=(s=console).error)||void 0===o||o.call(s,e),a.suppressValidatorError||setTimeout(function(){throw e},0),d(e.message)}!0===r?d():!1===r?d("function"==typeof l.message?l.message(l.fullField||l.field):l.message||"".concat(l.fullField||l.field," fails")):r instanceof Array?d(r):r instanceof Error&&d(r.message)}r&&r.then&&r.then(function(){return d()},function(e){return d(e)})},function(e){!function(e){for(var t=[],n={},r=0;r2&&void 0!==arguments[2]&&arguments[2];return e&&e.some(function(e){return el(t,e,n)})}function el(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!e&&!!t&&(!!n||e.length===t.length)&&t.every(function(t,n){return e[n]===t})}function eE(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===(0,C.Z)(t.target)&&e in t.target?t.target[e]:t}function ec(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat((0,c.Z)(e.slice(0,n)),[o],(0,c.Z)(e.slice(n,t)),(0,c.Z)(e.slice(t+1,r))):i<0?[].concat((0,c.Z)(e.slice(0,t)),(0,c.Z)(e.slice(t+1,n+1)),[o],(0,c.Z)(e.slice(n+1,r))):e}var eu=["name"],eT=[];function eR(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var ed=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(e){var r;return(0,u.Z)(this,n),r=t.call(this,e),(0,A.Z)((0,R.Z)(r),"state",{resetCount:0}),(0,A.Z)((0,R.Z)(r),"cancelRegisterFunc",null),(0,A.Z)((0,R.Z)(r),"mounted",!1),(0,A.Z)((0,R.Z)(r),"touched",!1),(0,A.Z)((0,R.Z)(r),"dirty",!1),(0,A.Z)((0,R.Z)(r),"validatePromise",void 0),(0,A.Z)((0,R.Z)(r),"prevValidating",void 0),(0,A.Z)((0,R.Z)(r),"errors",eT),(0,A.Z)((0,R.Z)(r),"warnings",eT),(0,A.Z)((0,R.Z)(r),"cancelRegister",function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,ei(o)),r.cancelRegisterFunc=null}),(0,A.Z)((0,R.Z)(r),"getNamePath",function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName,o=void 0===n?[]:n;return void 0!==t?[].concat((0,c.Z)(o),(0,c.Z)(t)):[]}),(0,A.Z)((0,R.Z)(r),"getRules",function(){var e=r.props,t=e.rules,n=e.fieldContext;return(void 0===t?[]:t).map(function(e){return"function"==typeof e?e(n):e})}),(0,A.Z)((0,R.Z)(r),"refresh",function(){r.mounted&&r.setState(function(e){return{resetCount:e.resetCount+1}})}),(0,A.Z)((0,R.Z)(r),"metaCache",null),(0,A.Z)((0,R.Z)(r),"triggerMetaEvent",function(e){var t=r.props.onMetaChange;if(t){var n=(0,E.Z)((0,E.Z)({},r.getMeta()),{},{destroy:e});(0,O.Z)(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null}),(0,A.Z)((0,R.Z)(r),"onStoreChange",function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,s=void 0===a?[]:a,l=o.onReset,E=n.store,c=r.getNamePath(),u=r.getValue(e),T=r.getValue(E),R=t&&es(t,c);switch("valueUpdate"!==n.type||"external"!==n.source||(0,O.Z)(u,T)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=eT,r.warnings=eT,r.triggerMetaEvent()),n.type){case"reset":if(!t||R){r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=eT,r.warnings=eT,r.triggerMetaEvent(),null==l||l(),r.refresh();return}break;case"remove":if(i&&eR(i,e,E,u,T,n)){r.reRender();return}break;case"setField":var d=n.data;if(R){"touched"in d&&(r.touched=d.touched),"validating"in d&&!("originRCField"in d)&&(r.validatePromise=d.validating?Promise.resolve([]):null),"errors"in d&&(r.errors=d.errors||eT),"warnings"in d&&(r.warnings=d.warnings||eT),r.dirty=!0,r.triggerMetaEvent(),r.reRender();return}if("value"in d&&es(t,c,!0)||i&&!c.length&&eR(i,e,E,u,T,n)){r.reRender();return}break;case"dependenciesUpdate":if(s.map(ei).some(function(e){return es(n.relatedFields,e)})){r.reRender();return}break;default:if(R||(!s.length||c.length||i)&&eR(i,e,E,u,T,n)){r.reRender();return}}!0===i&&r.reRender()}),(0,A.Z)((0,R.Z)(r),"validateRules",function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,u=Promise.resolve().then((0,l.Z)((0,s.Z)().mark(function o(){var a,T,R,d,f,A,S;return(0,s.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(R=void 0!==(T=(a=r.props).validateFirst)&&T,d=a.messageVariables,f=a.validateDebounce,A=r.getRules(),i&&(A=A.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||m(t).includes(i)})),!(f&&i)){o.next=10;break}return o.next=8,new Promise(function(e){setTimeout(e,f)});case 8:if(!(r.validatePromise!==u)){o.next=10;break}return o.abrupt("return",[]);case 10:return(S=function(e,t,n,r,o,i){var a,c,u=e.join("."),T=n.map(function(e,t){var n=e.validator,r=(0,E.Z)((0,E.Z)({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,function(){for(var e=arguments.length,t=Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:eT;if(r.validatePromise===u){r.validatePromise=null;var t,n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?eT:r;t?o.push.apply(o,(0,c.Z)(i)):n.push.apply(n,(0,c.Z)(i))}),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}}),o.abrupt("return",S);case 13:case"end":return o.stop()}},o)})));return void 0!==a&&a||(r.validatePromise=u,r.dirty=!0,r.errors=eT,r.warnings=eT,r.triggerMetaEvent(),r.reRender()),u}),(0,A.Z)((0,R.Z)(r),"isFieldValidating",function(){return!!r.validatePromise}),(0,A.Z)((0,R.Z)(r),"isFieldTouched",function(){return r.touched}),(0,A.Z)((0,R.Z)(r),"isFieldDirty",function(){return!!r.dirty||void 0!==r.props.initialValue||void 0!==(0,r.props.fieldContext.getInternalHooks(N).getInitialValue)(r.getNamePath())}),(0,A.Z)((0,R.Z)(r),"getErrors",function(){return r.errors}),(0,A.Z)((0,R.Z)(r),"getWarnings",function(){return r.warnings}),(0,A.Z)((0,R.Z)(r),"isListField",function(){return r.props.isListField}),(0,A.Z)((0,R.Z)(r),"isList",function(){return r.props.isList}),(0,A.Z)((0,R.Z)(r),"isPreserve",function(){return r.props.preserve}),(0,A.Z)((0,R.Z)(r),"getMeta",function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}}),(0,A.Z)((0,R.Z)(r),"getOnlyChild",function(e){if("function"==typeof e){var t=r.getMeta();return(0,E.Z)((0,E.Z)({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=(0,S.Z)(e);return 1===n.length&&o.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}}),(0,A.Z)((0,R.Z)(r),"getValue",function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return(0,eo.Z)(e||t(!0),n)}),(0,A.Z)((0,R.Z)(r),"getControlled",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.name,o=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,s=t.normalize,l=t.valuePropName,c=t.getValueProps,u=t.fieldContext,T=void 0!==i?i:u.validateTrigger,R=r.getNamePath(),d=u.getInternalHooks,f=u.getFieldsValue,S=d(N).dispatch,O=r.getValue(),p=c||function(e){return(0,A.Z)({},l,e)},I=e[o],h=void 0!==n?p(O):{},_=(0,E.Z)((0,E.Z)({},e),h);return _[o]=function(){r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var e,t=arguments.length,n=Array(t),o=0;o=0&&t<=n.length?(T.keys=[].concat((0,c.Z)(T.keys.slice(0,t)),[T.id],(0,c.Z)(T.keys.slice(t))),o([].concat((0,c.Z)(n.slice(0,t)),[e],(0,c.Z)(n.slice(t))))):(T.keys=[].concat((0,c.Z)(T.keys),[T.id]),o([].concat((0,c.Z)(n),[e]))),T.id+=1},remove:function(e){var t=a(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(T.keys=T.keys.filter(function(e,t){return!n.has(t)}),o(t.filter(function(e,t){return!n.has(t)})))},move:function(e,t){if(e!==t){var n=a();e<0||e>=n.length||t<0||t>=n.length||(T.keys=ec(T.keys,e,t),o(ec(n,e,t)))}}},t)})))},eS=n(97685),eO="__@field_split__";function ep(e){return e.map(function(e){return"".concat((0,C.Z)(e),":").concat(e)}).join(eO)}var eN=function(){function e(){(0,u.Z)(this,e),(0,A.Z)(this,"kvs",new Map)}return(0,T.Z)(e,[{key:"set",value:function(e,t){this.kvs.set(ep(e),t)}},{key:"get",value:function(e){return this.kvs.get(ep(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(ep(e))}},{key:"map",value:function(e){return(0,c.Z)(this.kvs.entries()).map(function(t){var n=(0,eS.Z)(t,2),r=n[0],o=n[1];return e({key:r.split(eO).map(function(e){var t=e.match(/^([^:]*):(.*)$/),n=(0,eS.Z)(t,3),r=n[1],o=n[2];return"number"===r?Number(o):o}),value:o})})}},{key:"toJSON",value:function(){var e={};return this.map(function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null}),e}}]),e}(),eI=["name"],eh=(0,T.Z)(function e(t){var n=this;(0,u.Z)(this,e),(0,A.Z)(this,"formHooked",!1),(0,A.Z)(this,"forceRootUpdate",void 0),(0,A.Z)(this,"subscribable",!0),(0,A.Z)(this,"store",{}),(0,A.Z)(this,"fieldEntities",[]),(0,A.Z)(this,"initialValues",{}),(0,A.Z)(this,"callbacks",{}),(0,A.Z)(this,"validateMessages",null),(0,A.Z)(this,"preserve",null),(0,A.Z)(this,"lastValidatePromise",null),(0,A.Z)(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),(0,A.Z)(this,"getInternalHooks",function(e){return e===N?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):((0,p.ZP)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),(0,A.Z)(this,"useSubscribe",function(e){n.subscribable=e}),(0,A.Z)(this,"prevWithoutPreserves",null),(0,A.Z)(this,"setInitialValues",function(e,t){if(n.initialValues=e||{},t){var r,o=(0,q.T)(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map(function(t){var n=t.key;o=(0,q.Z)(o,n,(0,eo.Z)(e,n))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),(0,A.Z)(this,"destroyForm",function(e){if(e)n.updateStore({});else{var t=new eN;n.getFieldEntities(!0).forEach(function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)}),n.prevWithoutPreserves=t}}),(0,A.Z)(this,"getInitialValue",function(e){var t=(0,eo.Z)(n.initialValues,e);return e.length?(0,q.T)(t):t}),(0,A.Z)(this,"setCallbacks",function(e){n.callbacks=e}),(0,A.Z)(this,"setValidateMessages",function(e){n.validateMessages=e}),(0,A.Z)(this,"setPreserve",function(e){n.preserve=e}),(0,A.Z)(this,"watchList",[]),(0,A.Z)(this,"registerWatch",function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter(function(t){return t!==e})}}),(0,A.Z)(this,"notifyWatch",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach(function(n){n(t,r,e)})}}),(0,A.Z)(this,"timeoutId",null),(0,A.Z)(this,"warningUnhooked",function(){}),(0,A.Z)(this,"updateStore",function(e){n.store=e}),(0,A.Z)(this,"getFieldEntities",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?n.fieldEntities.filter(function(e){return e.getNamePath().length}):n.fieldEntities}),(0,A.Z)(this,"getFieldsMap",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new eN;return n.getFieldEntities(e).forEach(function(e){var n=e.getNamePath();t.set(n,e)}),t}),(0,A.Z)(this,"getFieldEntitiesForNamePathList",function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map(function(e){var n=ei(e);return t.get(n)||{INVALIDATE_NAME_PATH:ei(e)}})}),(0,A.Z)(this,"getFieldsValue",function(e,t){if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===(0,C.Z)(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var r,o,i,a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),s=[];return a.forEach(function(e){var t,n,a,l="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=e.isList)&&void 0!==a&&a.call(e))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;o?o("getMeta"in e?e.getMeta():null)&&s.push(l):s.push(l)}),ea(n.store,s.map(ei))}),(0,A.Z)(this,"getFieldValue",function(e){n.warningUnhooked();var t=ei(e);return(0,eo.Z)(n.store,t)}),(0,A.Z)(this,"getFieldsError",function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map(function(t,n){return!t||"INVALIDATE_NAME_PATH"in t?{name:ei(e[n]),errors:[],warnings:[]}:{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}})}),(0,A.Z)(this,"getFieldError",function(e){n.warningUnhooked();var t=ei(e);return n.getFieldsError([t])[0].errors}),(0,A.Z)(this,"getFieldWarning",function(e){n.warningUnhooked();var t=ei(e);return n.getFieldsError([t])[0].warnings}),(0,A.Z)(this,"isFieldsTouched",function(){n.warningUnhooked();for(var e,t=arguments.length,r=Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},r=new eN,o=n.getFieldEntities(!0);o.forEach(function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var o=r.get(n)||new Set;o.add({entity:e,value:t}),r.set(n,o)}}),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach(function(t){var n,o=r.get(t);o&&(n=e).push.apply(n,(0,c.Z)((0,c.Z)(o).map(function(e){return e.entity})))})):e=o,function(e){e.forEach(function(e){if(void 0!==e.props.initialValue){var o=e.getNamePath();if(void 0!==n.getInitialValue(o))(0,p.ZP)(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=r.get(o);if(i&&i.size>1)(0,p.ZP)(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);e.isListField()||t.skipExist&&void 0!==a||n.updateStore((0,q.Z)(n.store,o,(0,c.Z)(i)[0].value))}}}})}(e)}),(0,A.Z)(this,"resetFields",function(e){n.warningUnhooked();var t=n.store;if(!e){n.updateStore((0,q.T)(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),n.notifyWatch();return}var r=e.map(ei);r.forEach(function(e){var t=n.getInitialValue(e);n.updateStore((0,q.Z)(n.store,e,t))}),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)}),(0,A.Z)(this,"setFields",function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach(function(e){var o=e.name,i=(0,a.Z)(e,eI),s=ei(o);r.push(s),"value"in i&&n.updateStore((0,q.Z)(n.store,s,i.value)),n.notifyObservers(t,[s],{type:"setField",data:e})}),n.notifyWatch(r)}),(0,A.Z)(this,"getFields",function(){return n.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),r=e.getMeta(),o=(0,E.Z)((0,E.Z)({},r),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o})}),(0,A.Z)(this,"initEntityValue",function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===(0,eo.Z)(n.store,r)&&n.updateStore((0,q.Z)(n.store,r,t))}}),(0,A.Z)(this,"isMergedPreserve",function(e){var t=void 0!==e?e:n.preserve;return null==t||t}),(0,A.Z)(this,"registerField",function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(t){return t!==e}),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every(function(e){return!el(e.getNamePath(),t)})){var s=n.store;n.updateStore((0,q.Z)(s,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}}),(0,A.Z)(this,"dispatch",function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}}),(0,A.Z)(this,"notifyObservers",function(e,t,r){if(n.subscribable){var o=(0,E.Z)((0,E.Z)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(n){(0,n.onStoreChange)(e,t,o)})}else n.forceRootUpdate()}),(0,A.Z)(this,"triggerDependenciesUpdate",function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat((0,c.Z)(r))}),r}),(0,A.Z)(this,"updateValue",function(e,t){var r=ei(e),o=n.store;n.updateStore((0,q.Z)(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(ea(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat((0,c.Z)(i)))}),(0,A.Z)(this,"setFieldsValue",function(e){n.warningUnhooked();var t=n.store;if(e){var r=(0,q.T)(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),(0,A.Z)(this,"setFieldValue",function(e,t){n.setFields([{name:e,value:t}])}),(0,A.Z)(this,"getDependencyChildrenFields",function(e){var t=new Set,r=[],o=new eN;return n.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var n=ei(t);o.update(n,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})}),function e(n){(o.get(n)||new Set).forEach(function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}})}(e),r}),(0,A.Z)(this,"triggerOnFieldsChange",function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new eN;t.forEach(function(e){var t=e.name,n=e.errors;i.set(t,n)}),o.forEach(function(e){e.errors=i.get(e.name)||e.errors})}var a=o.filter(function(t){return es(e,t.name)});a.length&&r(a,o)}}),(0,A.Z)(this,"validateFields",function(e,t){n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(a=e,s=t):s=e;var r,o,i,a,s,l=!!a,u=l?a.map(ei):[],T=[],R=String(Date.now()),d=new Set,f=s||{},A=f.recursive,S=f.dirty;n.getFieldEntities(!0).forEach(function(e){if(l||u.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!S||e.isFieldDirty())){var t=e.getNamePath();if(d.add(t.join(R)),!l||es(u,t,A)){var r=e.validateRules((0,E.Z)({validateMessages:(0,E.Z)((0,E.Z)({},J),n.validateMessages)},s));T.push(r.then(function(){return{name:t,errors:[],warnings:[]}}).catch(function(e){var n,r=[],o=[];return(null===(n=e.forEach)||void 0===n||n.call(e,function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,(0,c.Z)(n)):r.push.apply(r,(0,c.Z)(n))}),r.length)?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}}))}}});var O=(r=!1,o=T.length,i=[],T.length?new Promise(function(e,t){T.forEach(function(n,a){n.catch(function(e){return r=!0,e}).then(function(n){o-=1,i[a]=n,o>0||(r&&t(i),e(i))})})}):Promise.resolve([]));n.lastValidatePromise=O,O.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)});var p=O.then(function(){return n.lastValidatePromise===O?Promise.resolve(n.getFieldsValue(u)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:n.getFieldsValue(u),errorFields:t,outOfDate:n.lastValidatePromise!==O})});p.catch(function(e){return e});var N=u.filter(function(e){return d.has(e.join(R))});return n.triggerOnFieldsChange(N),p}),(0,A.Z)(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}}).catch(function(e){var t=n.callbacks.onFinishFailed;t&&t(e)})}),this.forceRootUpdate=t}),e_=function(e){var t=o.useRef(),n=o.useState({}),r=(0,eS.Z)(n,2)[1];if(!t.current){if(e)t.current=e;else{var i=new eh(function(){r({})});t.current=i.getForm()}}return[t.current]},em=o.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),eC=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,i=e.children,a=o.useContext(em),s=o.useRef({});return o.createElement(em.Provider,{value:(0,E.Z)((0,E.Z)({},a),{},{validateMessages:(0,E.Z)((0,E.Z)({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:s.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:s.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(s.current=(0,E.Z)((0,E.Z)({},s.current),{},(0,A.Z)({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=(0,E.Z)({},s.current);delete t[e],s.current=t,a.unregisterForm(e)}})},i)},eL=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];function eg(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var ev=function(){},eP=function(){for(var e=arguments.length,t=Array(e),n=0;n1?t-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:2;t();var i=(0,q.Z)(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i},t]},ee=[U,x,w,"end"],et=[U,G];function en(e){return e===w||"end"===e}var er=function(e,t,n){var r=(0,g.Z)(b),o=(0,c.Z)(r,2),i=o[0],a=o[1],s=Q(),l=(0,c.Z)(s,2),E=l[0],u=l[1],T=t?et:ee;return J(function(){if(i!==b&&"end"!==i){var e=T.indexOf(i),t=T[e+1],r=n(i);!1===r?a(t,!0):t&&E(function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)})}},[e,i]),A.useEffect(function(){return function(){u()}},[]),[function(){a(U,!0)},i]},eo=(a=Z,"object"===(0,u.Z)(Z)&&(a=Z.transitionSupport),(s=A.forwardRef(function(e,t){var n=e.visible,r=void 0===n||n,o=e.removeOnLeave,i=void 0===o||o,s=e.forceRender,u=e.children,T=e.motionName,S=e.leavedClassName,O=e.eventProps,N=A.useContext(p).motion,I=!!(e.motionName&&a&&!1!==N),h=(0,A.useRef)(),_=(0,A.useRef)(),m=function(e,t,n,r){var o,i,a,s=r.motionEnter,u=void 0===s||s,T=r.motionAppear,R=void 0===T||T,d=r.motionLeave,f=void 0===d||d,S=r.motionDeadline,O=r.motionLeaveImmediately,p=r.onAppearPrepare,N=r.onEnterPrepare,I=r.onLeavePrepare,h=r.onAppearStart,_=r.onEnterStart,m=r.onLeaveStart,C=r.onAppearActive,b=r.onEnterActive,F=r.onLeaveActive,H=r.onAppearEnd,B=r.onEnterEnd,Y=r.onLeaveEnd,k=r.onVisibleChanged,V=(0,g.Z)(),$=(0,c.Z)(V,2),W=$[0],Z=$[1],j=(o=A.useReducer(function(e){return e+1},0),i=(0,c.Z)(o,2)[1],a=A.useRef(P),[(0,v.Z)(function(){return a.current}),(0,v.Z)(function(e){a.current="function"==typeof e?e(a.current):e,i()})]),X=(0,c.Z)(j,2),K=X[0],q=X[1],Q=(0,g.Z)(null),ee=(0,c.Z)(Q,2),et=ee[0],eo=ee[1],ei=K(),ea=(0,A.useRef)(!1),es=(0,A.useRef)(null),el=(0,A.useRef)(!1);function eE(){q(P),eo(null,!0)}var ec=(0,L.zX)(function(e){var t,r=K();if(r!==P){var o=n();if(!e||e.deadline||e.target===o){var i=el.current;r===y&&i?t=null==H?void 0:H(o,e):r===D&&i?t=null==B?void 0:B(o,e):r===M&&i&&(t=null==Y?void 0:Y(o,e)),i&&!1!==t&&eE()}}}),eu=z(ec),eT=(0,c.Z)(eu,1)[0],eR=function(e){switch(e){case y:return(0,l.Z)((0,l.Z)((0,l.Z)({},U,p),x,h),w,C);case D:return(0,l.Z)((0,l.Z)((0,l.Z)({},U,N),x,_),w,b);case M:return(0,l.Z)((0,l.Z)((0,l.Z)({},U,I),x,m),w,F);default:return{}}},ed=A.useMemo(function(){return eR(ei)},[ei]),ef=er(ei,!e,function(e){if(e===U){var t,r=ed[U];return!!r&&r(n())}return eO in ed&&eo((null===(t=ed[eO])||void 0===t?void 0:t.call(ed,n(),null))||null),eO===w&&ei!==P&&(eT(n()),S>0&&(clearTimeout(es.current),es.current=setTimeout(function(){ec({deadline:!0})},S))),eO===G&&eE(),!0}),eA=(0,c.Z)(ef,2),eS=eA[0],eO=eA[1],ep=en(eO);el.current=ep,J(function(){Z(t);var n,r=ea.current;ea.current=!0,!r&&t&&R&&(n=y),r&&t&&u&&(n=D),(r&&!t&&f||!r&&O&&!t&&f)&&(n=M);var o=eR(n);n&&(e||o[U])?(q(n),eS()):q(P)},[t]),(0,A.useEffect)(function(){(ei!==y||R)&&(ei!==D||u)&&(ei!==M||f)||q(P)},[R,u,f]),(0,A.useEffect)(function(){return function(){ea.current=!1,clearTimeout(es.current)}},[]);var eN=A.useRef(!1);(0,A.useEffect)(function(){W&&(eN.current=!0),void 0!==W&&ei===P&&((eN.current||W)&&(null==k||k(W)),eN.current=!0)},[W,ei]);var eI=et;return ed[U]&&eO===x&&(eI=(0,E.Z)({transition:"none"},eI)),[ei,eO,eI,null!=W?W:t]}(I,r,function(){try{return h.current instanceof HTMLElement?h.current:(0,d.ZP)(_.current)}catch(e){return null}},e),b=(0,c.Z)(m,4),F=b[0],H=b[1],B=b[2],Y=b[3],k=A.useRef(Y);Y&&(k.current=!0);var V=A.useCallback(function(e){h.current=e,(0,f.mH)(t,e)},[t]),$=(0,E.Z)((0,E.Z)({},O),{},{visible:r});if(u){if(F===P)W=Y?u((0,E.Z)({},$),V):!i&&k.current&&S?u((0,E.Z)((0,E.Z)({},$),{},{className:S}),V):!s&&(i||S)?null:u((0,E.Z)((0,E.Z)({},$),{},{style:{display:"none"}}),V);else{H===U?Z="prepare":en(H)?Z="active":H===x&&(Z="start");var W,Z,j=K(T,"".concat(F,"-").concat(Z));W=u((0,E.Z)((0,E.Z)({},$),{},{className:R()(K(T,F),(0,l.Z)((0,l.Z)({},j,j&&Z),T,"string"==typeof T)),style:B}),V)}}else W=null;return A.isValidElement(W)&&(0,f.Yr)(W)&&!W.ref&&(W=A.cloneElement(W,{ref:V})),A.createElement(C,{ref:_},W)})).displayName="CSSMotion",s),ei=n(87462),ea=n(97326),es="keep",el="remove",eE="removed";function ec(e){var t;return t=e&&"object"===(0,u.Z)(e)&&"key"in e?e:{key:e},(0,E.Z)((0,E.Z)({},t),{},{key:String(t.key)})}function eu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(ec)}var eT=["component","children","onVisibleChanged","onAllRemoved"],eR=["status"],ed=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"],ef=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eo,n=function(e){(0,_.Z)(r,e);var n=(0,m.Z)(r);function r(){var e;(0,I.Z)(this,r);for(var t=arguments.length,o=Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=eu(e),a=eu(t);i.forEach(function(e){for(var t=!1,i=r;i1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==el})).forEach(function(t){t.key===e&&(t.status=es)})}),n})(r,eu(n)).filter(function(e){var t=r.find(function(t){var n=t.key;return e.key===n});return!t||t.status!==eE||e.status!==el})}}}]),r}(A.Component);return(0,l.Z)(n,"defaultProps",{component:"div"}),n}(Z),eA=eo},42999:function(e,t,n){"use strict";n.d(t,{qX:function(){return S},JB:function(){return p},lm:function(){return g}});var r=n(74902),o=n(97685),i=n(45987),a=n(67294),s=n(1413),l=n(73935),E=n(87462),c=n(4942),u=n(93967),T=n.n(u),R=n(29372),d=n(71002),f=n(15105),A=n(64217),S=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,s=e.duration,l=void 0===s?4.5:s,u=e.showProgress,R=e.pauseOnHover,S=void 0===R||R,O=e.eventKey,p=e.content,N=e.closable,I=e.closeIcon,h=void 0===I?"x":I,_=e.props,m=e.onClick,C=e.onNoticeClose,L=e.times,g=e.hovering,v=a.useState(!1),P=(0,o.Z)(v,2),y=P[0],D=P[1],M=a.useState(0),b=(0,o.Z)(M,2),U=b[0],x=b[1],w=a.useState(0),G=(0,o.Z)(w,2),F=G[0],H=G[1],B=g||y,Y=l>0&&u,k=function(){C(O)};a.useEffect(function(){if(!B&&l>0){var e=Date.now()-F,t=setTimeout(function(){k()},1e3*l-F);return function(){S&&clearTimeout(t),H(Date.now()-e)}}},[l,B,L]),a.useEffect(function(){if(!B&&Y&&(S||0===F)){var e,t=performance.now();return function n(){cancelAnimationFrame(e),e=requestAnimationFrame(function(e){var r=Math.min((e+F-t)/(1e3*l),1);x(100*r),r<1&&n()})}(),function(){S&&cancelAnimationFrame(e)}}},[l,F,B,Y,L]);var V=a.useMemo(function(){return"object"===(0,d.Z)(N)&&null!==N?N:N?{closeIcon:h}:{}},[N,h]),$=(0,A.Z)(V,!0),W=100-(!U||U<0?0:U>100?100:U),Z="".concat(n,"-notice");return a.createElement("div",(0,E.Z)({},_,{ref:t,className:T()(Z,i,(0,c.Z)({},"".concat(Z,"-closable"),N)),style:r,onMouseEnter:function(e){var t;D(!0),null==_||null===(t=_.onMouseEnter)||void 0===t||t.call(_,e)},onMouseLeave:function(e){var t;D(!1),null==_||null===(t=_.onMouseLeave)||void 0===t||t.call(_,e)},onClick:m}),a.createElement("div",{className:"".concat(Z,"-content")},p),N&&a.createElement("a",(0,E.Z)({tabIndex:0,className:"".concat(Z,"-close"),onKeyDown:function(e){("Enter"===e.key||"Enter"===e.code||e.keyCode===f.Z.ENTER)&&k()},"aria-label":"Close"},$,{onClick:function(e){e.preventDefault(),e.stopPropagation(),k()}}),V.closeIcon),Y&&a.createElement("progress",{className:"".concat(Z,"-progress"),max:"100",value:W},W+"%"))}),O=a.createContext({}),p=function(e){var t=e.children,n=e.classNames;return a.createElement(O.Provider,{value:{classNames:n}},t)},N=function(e){var t,n,r,o={offset:8,threshold:3,gap:16};return e&&"object"===(0,d.Z)(e)&&(o.offset=null!==(t=e.offset)&&void 0!==t?t:8,o.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,o.gap=null!==(r=e.gap)&&void 0!==r?r:16),[!!e,o]},I=["className","style","classNames","styles"],h=function(e){var t=e.configList,n=e.placement,l=e.prefixCls,u=e.className,d=e.style,f=e.motion,A=e.onAllNoticeRemoved,p=e.onNoticeClose,h=e.stack,_=(0,a.useContext)(O).classNames,m=(0,a.useRef)({}),C=(0,a.useState)(null),L=(0,o.Z)(C,2),g=L[0],v=L[1],P=(0,a.useState)([]),y=(0,o.Z)(P,2),D=y[0],M=y[1],b=t.map(function(e){return{config:e,key:String(e.key)}}),U=N(h),x=(0,o.Z)(U,2),w=x[0],G=x[1],F=G.offset,H=G.threshold,B=G.gap,Y=w&&(D.length>0||b.length<=H),k="function"==typeof f?f(n):f;return(0,a.useEffect)(function(){w&&D.length>1&&M(function(e){return e.filter(function(e){return b.some(function(t){return e===t.key})})})},[D,b,w]),(0,a.useEffect)(function(){var e,t;w&&m.current[null===(e=b[b.length-1])||void 0===e?void 0:e.key]&&v(m.current[null===(t=b[b.length-1])||void 0===t?void 0:t.key])},[b,w]),a.createElement(R.V4,(0,E.Z)({key:n,className:T()(l,"".concat(l,"-").concat(n),null==_?void 0:_.list,u,(0,c.Z)((0,c.Z)({},"".concat(l,"-stack"),!!w),"".concat(l,"-stack-expanded"),Y)),style:d,keys:b,motionAppear:!0},k,{onAllRemoved:function(){A(n)}}),function(e,t){var o=e.config,c=e.className,u=e.style,R=e.index,d=o.key,f=o.times,A=String(d),O=o.className,N=o.style,h=o.classNames,C=o.styles,L=(0,i.Z)(o,I),v=b.findIndex(function(e){return e.key===A}),P={};if(w){var y=b.length-1-(v>-1?v:R-1),U="top"===n||"bottom"===n?"-50%":"0";if(y>0){P.height=Y?null===(x=m.current[A])||void 0===x?void 0:x.offsetHeight:null==g?void 0:g.offsetHeight;for(var x,G,H,k,V=0,$=0;$-1?m.current[A]=e:delete m.current[A]},prefixCls:l,classNames:h,styles:C,className:T()(O,null==_?void 0:_.notice),style:N,times:f,key:d,eventKey:d,onNoticeClose:p,hovering:w&&D.length>0})))})},_=a.forwardRef(function(e,t){var n=e.prefixCls,i=void 0===n?"rc-notification":n,E=e.container,c=e.motion,u=e.maxCount,T=e.className,R=e.style,d=e.onAllRemoved,f=e.stack,A=e.renderNotifications,S=a.useState([]),O=(0,o.Z)(S,2),p=O[0],N=O[1],I=function(e){var t,n=p.find(function(t){return t.key===e});null==n||null===(t=n.onClose)||void 0===t||t.call(n),N(function(t){return t.filter(function(t){return t.key!==e})})};a.useImperativeHandle(t,function(){return{open:function(e){N(function(t){var n,o=(0,r.Z)(t),i=o.findIndex(function(t){return t.key===e.key}),a=(0,s.Z)({},e);return i>=0?(a.times=((null===(n=t[i])||void 0===n?void 0:n.times)||0)+1,o[i]=a):(a.times=0,o.push(a)),u>0&&o.length>u&&(o=o.slice(-u)),o})},close:function(e){I(e)},destroy:function(){N([])}}});var _=a.useState({}),m=(0,o.Z)(_,2),C=m[0],L=m[1];a.useEffect(function(){var e={};p.forEach(function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))}),Object.keys(C).forEach(function(t){e[t]=e[t]||[]}),L(e)},[p]);var g=function(e){L(function(t){var n=(0,s.Z)({},t);return(n[e]||[]).length||delete n[e],n})},v=a.useRef(!1);if(a.useEffect(function(){Object.keys(C).length>0?v.current=!0:v.current&&(null==d||d(),v.current=!1)},[C]),!E)return null;var P=Object.keys(C);return(0,l.createPortal)(a.createElement(a.Fragment,null,P.map(function(e){var t=C[e],n=a.createElement(h,{key:e,configList:t,placement:e,prefixCls:i,className:null==T?void 0:T(e),style:null==R?void 0:R(e),motion:c,onNoticeClose:I,onAllNoticeRemoved:g,stack:f});return A?A(n,{prefixCls:i,key:e}):n})),E)}),m=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],C=function(){return document.body},L=0;function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?C:t,s=e.motion,l=e.prefixCls,E=e.maxCount,c=e.className,u=e.style,T=e.onAllRemoved,R=e.stack,d=e.renderNotifications,f=(0,i.Z)(e,m),A=a.useState(),S=(0,o.Z)(A,2),O=S[0],p=S[1],N=a.useRef(),I=a.createElement(_,{container:O,ref:N,prefixCls:l,motion:s,maxCount:E,className:c,style:u,onAllRemoved:T,stack:R,renderNotifications:d}),h=a.useState([]),g=(0,o.Z)(h,2),v=g[0],P=g[1],y=a.useMemo(function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=Array(t),r=0;r0},e.prototype.connect_=function(){T&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),A?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){T&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;f.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),O=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),v="undefined"!=typeof WeakMap?new WeakMap:new u,P=function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var n=S.getInstance(),r=new g(t,n,this);v.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){P.prototype[e]=function(){var t;return(t=v.get(this))[e].apply(t,arguments)}});var y=void 0!==R.ResizeObserver?R.ResizeObserver:P,D=new Map,M=new y(function(e){e.forEach(function(e){var t,n=e.target;null===(t=D.get(n))||void 0===t||t.forEach(function(e){return e(n)})})}),b=n(15671),U=n(43144),x=n(60136),w=n(29388),G=function(e){(0,x.Z)(n,e);var t=(0,w.Z)(n);function n(){return(0,b.Z)(this,n),t.apply(this,arguments)}return(0,U.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component),F=o.forwardRef(function(e,t){var n=e.children,r=e.disabled,i=o.useRef(null),u=o.useRef(null),T=o.useContext(c),R="function"==typeof n,d=R?n(i):n,f=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),A=!R&&o.isValidElement(d)&&(0,E.Yr)(d),S=A?d.ref:null,O=(0,E.x1)(S,i),p=function(){var e;return(0,l.ZP)(i.current)||(i.current&&"object"===(0,s.Z)(i.current)?(0,l.ZP)(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||(0,l.ZP)(u.current)};o.useImperativeHandle(t,function(){return p()});var N=o.useRef(e);N.current=e;var I=o.useCallback(function(e){var t=N.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,s=o.height,l=e.offsetWidth,E=e.offsetHeight,c=Math.floor(i),u=Math.floor(s);if(f.current.width!==c||f.current.height!==u||f.current.offsetWidth!==l||f.current.offsetHeight!==E){var R={width:c,height:u,offsetWidth:l,offsetHeight:E};f.current=R;var d=l===Math.round(i)?i:l,A=E===Math.round(s)?s:E,S=(0,a.Z)((0,a.Z)({},R),{},{offsetWidth:d,offsetHeight:A});null==T||T(S,e,r),n&&Promise.resolve().then(function(){n(S,e)})}},[]);return o.useEffect(function(){var e=p();return e&&!r&&(D.has(e)||(D.set(e,new Set),M.observe(e)),D.get(e).add(I)),function(){D.has(e)&&(D.get(e).delete(I),D.get(e).size||(M.unobserve(e),D.delete(e)))}},[i.current,r]),o.createElement(G,{ref:u},A?o.cloneElement(d,{ref:O}):d)}),H=o.forwardRef(function(e,t){var n=e.children;return("function"==typeof n?[n]:(0,i.Z)(n)).map(function(n,i){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return o.createElement(F,(0,r.Z)({},e,{key:a,ref:0===i?t:void 0}),n)})});H.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(c),s=o.useCallback(function(e,t,o){r.current+=1;var s=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then(function(){s===r.current&&(null==n||n(i.current),i.current=[])}),null==a||a(e,t,o)},[n,a]);return o.createElement(c.Provider,{value:s},t)};var B=H},92419:function(e,t,n){"use strict";n.d(t,{G:function(){return a},Z:function(){return A}});var r=n(93967),o=n.n(r),i=n(67294);function a(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,s=e.className,l=e.style;return i.createElement("div",{className:o()("".concat(n,"-content"),s),style:l},i.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:a},"function"==typeof t?t():t))}var s=n(87462),l=n(1413),E=n(45987),c=n(40228),u={shiftX:64,adjustY:1},T={adjustX:1,shiftY:!0},R=[0,0],d={left:{points:["cr","cl"],overflow:T,offset:[-4,0],targetOffset:R},right:{points:["cl","cr"],overflow:T,offset:[4,0],targetOffset:R},top:{points:["bc","tc"],overflow:u,offset:[0,-4],targetOffset:R},bottom:{points:["tc","bc"],overflow:u,offset:[0,4],targetOffset:R},topLeft:{points:["bl","tl"],overflow:u,offset:[0,-4],targetOffset:R},leftTop:{points:["tr","tl"],overflow:T,offset:[-4,0],targetOffset:R},topRight:{points:["br","tr"],overflow:u,offset:[0,-4],targetOffset:R},rightTop:{points:["tl","tr"],overflow:T,offset:[4,0],targetOffset:R},bottomRight:{points:["tr","br"],overflow:u,offset:[0,4],targetOffset:R},rightBottom:{points:["bl","br"],overflow:T,offset:[4,0],targetOffset:R},bottomLeft:{points:["tl","bl"],overflow:u,offset:[0,4],targetOffset:R},leftBottom:{points:["br","bl"],overflow:T,offset:[-4,0],targetOffset:R}},f=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],A=(0,i.forwardRef)(function(e,t){var n=e.overlayClassName,r=e.trigger,o=e.mouseEnterDelay,u=e.mouseLeaveDelay,T=e.overlayStyle,R=e.prefixCls,A=void 0===R?"rc-tooltip":R,S=e.children,O=e.onVisibleChange,p=e.afterVisibleChange,N=e.transitionName,I=e.animation,h=e.motion,_=e.placement,m=e.align,C=e.destroyTooltipOnHide,L=e.defaultVisible,g=e.getTooltipContainer,v=e.overlayInnerStyle,P=(e.arrowContent,e.overlay),y=e.id,D=e.showArrow,M=(0,E.Z)(e,f),b=(0,i.useRef)(null);(0,i.useImperativeHandle)(t,function(){return b.current});var U=(0,l.Z)({},M);return"visible"in e&&(U.popupVisible=e.visible),i.createElement(c.Z,(0,s.Z)({popupClassName:n,prefixCls:A,popup:function(){return i.createElement(a,{key:"content",prefixCls:A,id:y,overlayInnerStyle:v},P)},action:void 0===r?["hover"]:r,builtinPlacements:d,popupPlacement:void 0===_?"right":_,ref:b,popupAlign:void 0===m?{}:m,getPopupContainer:g,onPopupVisibleChange:O,afterPopupVisibleChange:p,popupTransitionName:N,popupAnimation:I,popupMotion:h,defaultPopupVisible:L,autoDestroy:void 0!==C&&C,mouseLeaveDelay:void 0===u?.1:u,popupStyle:T,mouseEnterDelay:void 0===o?0:o,arrow:void 0===D||D},U),S)})},50344:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=[];return r.Children.forEach(t,function(t){(null!=t||n.keepEmpty)&&(Array.isArray(t)?i=i.concat(e(t)):(0,o.isFragment)(t)&&t.props?i=i.concat(e(t.props.children,n)):i.push(t))}),i}}});var r=n(67294),o=n(59864)},98924:function(e,t,n){"use strict";function r(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}n.d(t,{Z:function(){return r}})},94999:function(e,t,n){"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{Z:function(){return r}})},44958:function(e,t,n){"use strict";n.d(t,{hq:function(){return f},jL:function(){return d}});var r=n(1413),o=n(98924),i=n(94999),a="data-rc-order",s="data-rc-priority",l=new Map;function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):"rc-util-key"}function c(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function u(e){return Array.from((l.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,o.Z)())return null;var n=t.csp,r=t.prepend,i=t.priority,l=void 0===i?0:i,E="queue"===r?"prependQueue":r?"prepend":"append",T="prependQueue"===E,R=document.createElement("style");R.setAttribute(a,E),T&&l&&R.setAttribute(s,"".concat(l)),null!=n&&n.nonce&&(R.nonce=null==n?void 0:n.nonce),R.innerHTML=e;var d=c(t),f=d.firstChild;if(r){if(T){var A=(t.styles||u(d)).filter(function(e){return!!["prepend","prependQueue"].includes(e.getAttribute(a))&&l>=Number(e.getAttribute(s)||0)});if(A.length)return d.insertBefore(R,A[A.length-1].nextSibling),R}d.insertBefore(R,f)}else d.appendChild(R);return R}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=c(t);return(t.styles||u(n)).find(function(n){return n.getAttribute(E(t))===e})}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=R(e,t);n&&c(t).removeChild(n)}function f(e,t){var n,o,a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},d=c(s),f=u(d),A=(0,r.Z)((0,r.Z)({},s),{},{styles:f});!function(e,t){var n=l.get(e);if(!n||!(0,i.Z)(document,n)){var r=T("",t),o=r.parentNode;l.set(e,o),e.removeChild(r)}}(d,A);var S=R(t,A);if(S)return null!==(n=A.csp)&&void 0!==n&&n.nonce&&S.nonce!==(null===(o=A.csp)||void 0===o?void 0:o.nonce)&&(S.nonce=null===(a=A.csp)||void 0===a?void 0:a.nonce),S.innerHTML!==e&&(S.innerHTML=e),S;var O=T(e,A);return O.setAttribute(E(A),t),O}},34203:function(e,t,n){"use strict";n.d(t,{Sh:function(){return a},ZP:function(){return l},bn:function(){return s}});var r=n(71002),o=n(67294),i=n(73935);function a(e){return e instanceof HTMLElement||e instanceof SVGElement}function s(e){return e&&"object"===(0,r.Z)(e)&&a(e.nativeElement)?e.nativeElement:a(e)?e:null}function l(e){var t;return s(e)||(e instanceof o.Component?null===(t=i.findDOMNode)||void 0===t?void 0:t.call(i,e):null)}},5110:function(e,t){"use strict";t.Z=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}},27571:function(e,t,n){"use strict";function r(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function o(e){return r(e) instanceof ShadowRoot?r(e):null}n.d(t,{A:function(){return o}})},15105:function(e,t){"use strict";var n={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=n.F1&&t<=n.F12)return!1;switch(t){case n.ALT:case n.CAPS_LOCK:case n.CONTEXT_MENU:case n.CTRL:case n.DOWN:case n.END:case n.ESC:case n.HOME:case n.INSERT:case n.LEFT:case n.MAC_FF_META:case n.META:case n.NUMLOCK:case n.NUM_CENTER:case n.PAGE_DOWN:case n.PAGE_UP:case n.PAUSE:case n.PRINT_SCREEN:case n.RIGHT:case n.SHIFT:case n.UP:case n.WIN_KEY:case n.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=n.ZERO&&e<=n.NINE||e>=n.NUM_ZERO&&e<=n.NUM_MULTIPLY||e>=n.A&&e<=n.Z||-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case n.SPACE:case n.QUESTION_MARK:case n.NUM_PLUS:case n.NUM_MINUS:case n.NUM_PERIOD:case n.NUM_DIVISION:case n.SEMICOLON:case n.DASH:case n.EQUALS:case n.COMMA:case n.PERIOD:case n.SLASH:case n.APOSTROPHE:case n.SINGLE_QUOTE:case n.OPEN_SQUARE_BRACKET:case n.BACKSLASH:case n.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.Z=n},38135:function(e,t,n){"use strict";n.d(t,{s:function(){return A},v:function(){return O}});var r,o,i=n(74165),a=n(15861),s=n(71002),l=n(1413),E=n(73935),c=(0,l.Z)({},r||(r=n.t(E,2))),u=c.version,T=c.render,R=c.unmountComponentAtNode;try{Number((u||"").split(".")[0])>=18&&(o=c.createRoot)}catch(e){}function d(e){var t=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,s.Z)(t)&&(t.usingClientEntryPoint=e)}var f="__rc_react_root__";function A(e,t){if(o){var n;d(!0),n=t[f]||o(t),d(!1),n.render(e),t[f]=n;return}T(e,t)}function S(){return(S=(0,a.Z)((0,i.Z)().mark(function e(t){return(0,i.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then(function(){var e;null===(e=t[f])||void 0===e||e.unmount(),delete t[f]}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function O(e){return p.apply(this,arguments)}function p(){return(p=(0,a.Z)((0,i.Z)().mark(function e(t){return(0,i.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(void 0!==o)){e.next=2;break}return e.abrupt("return",function(e){return S.apply(this,arguments)}(t));case 2:R(t);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}},74204:function(e,t,n){"use strict";n.d(t,{Z:function(){return a},o:function(){return s}});var r,o=n(44958);function i(e){var t,n,r="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),i=document.createElement("div");i.id=r;var a=i.style;if(a.position="absolute",a.left="0",a.top="0",a.width="100px",a.height="100px",a.overflow="scroll",e){var s=getComputedStyle(e);a.scrollbarColor=s.scrollbarColor,a.scrollbarWidth=s.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),E=parseInt(l.width,10),c=parseInt(l.height,10);try{var u=E?"width: ".concat(l.width,";"):"",T=c?"height: ".concat(l.height,";"):"";(0,o.hq)("\n#".concat(r,"::-webkit-scrollbar {\n").concat(u,"\n").concat(T,"\n}"),r)}catch(e){console.error(e),t=E,n=c}}document.body.appendChild(i);var R=e&&t&&!isNaN(t)?t:i.offsetWidth-i.clientWidth,d=e&&n&&!isNaN(n)?n:i.offsetHeight-i.clientHeight;return document.body.removeChild(i),(0,o.jL)(r),{width:R,height:d}}function a(e){return"undefined"==typeof document?0:((e||void 0===r)&&(r=i()),r.width)}function s(e){return"undefined"!=typeof document&&e&&e instanceof Element?i(e):{width:0,height:0}}},66680:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294);function o(e){var t=r.useRef();return t.current=e,r.useCallback(function(){for(var e,n=arguments.length,r=Array(n),o=0;o2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,l=i.has(t);if((0,o.ZP)(!l,"Warning: There may be circular references"),l)return!1;if(t===a)return!0;if(n&&s>1)return!1;i.add(t);var E=s+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var c=0;c
    ").replace(/]+)>/gi,"");return(0,n.jsxs)("div",{className:o()("flex w-full",{"justify-end":!h}),ref:f,children:[!h&&(0,n.jsx)("div",{className:"flex bg-[#0C75FC] text-white p-3 rounded-xl rounded-br-none",children:x}),h&&(0,n.jsxs)("div",{className:"flex max-w-full flex-col flex-wrap bg-white dark:bg-[rgba(255,255,255,0.16)] p-3 rounded-xl rounded-bl-none",children:["string"==typeof x&&"chat_agent"===i&&(0,n.jsx)(r.default,{children:null==g?void 0:g.replace(/]+)>/gi,"
    ").replace(/]+)>/gi,"")}),"string"==typeof x&&"chat_agent"!==i&&(0,n.jsx)(r.default,{children:b(g)}),v&&!x&&(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"flex text-sm text-[#1c2533] dark:text-white",children:"思考中"}),(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsx)("div",{className:"w-1 h-1 rounded-full mx-1 animate-pulse1"}),(0,n.jsx)("div",{className:"w-1 h-1 rounded-full mx-1 animate-pulse2"}),(0,n.jsx)("div",{className:"w-1 h-1 rounded-full mx-1 animate-pulse3"})]})]}),!v&&(0,n.jsx)(s.Z,{className:"my-2"}),(0,n.jsxs)("div",{className:o()("opacity-0 h-0 w-0",{"opacity-100 flex items-center justify-between gap-6 w-auto h-auto":!v}),children:[(0,n.jsx)(u.default,{content:t,index:l,chatDialogRef:f}),"chat_agent"!==i&&(0,n.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,n.jsx)(a.Z,{width:14,height:14,model:m}),(0,n.jsx)("span",{className:"text-xs text-gray-500",children:m})]})]})]})]})})},5583:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(85265),r=l(66309),s=l(25278),i=l(14726),o=l(67294);t.default=e=>{let{open:t,setFeedbackOpen:l,list:c,feedback:d,loading:u}=e,[x,m]=(0,o.useState)([]),[p,v]=(0,o.useState)("");return(0,n.jsx)(a.Z,{title:"你的反馈助我进步",placement:"bottom",open:t,onClose:()=>l(!1),destroyOnClose:!0,height:"auto",children:(0,n.jsxs)("div",{className:"flex flex-col w-full gap-4",children:[(0,n.jsx)("div",{className:"flex w-full flex-wrap gap-2",children:null==c?void 0:c.map(e=>{let t=x.findIndex(t=>t.reason_type===e.reason_type)>-1;return(0,n.jsx)(r.Z,{className:"text-sm text-[#525964] p-1 px-2 rounded-md cursor-pointer ".concat(t?"border-[#0c75fc] text-[#0c75fc]":""),onClick:()=>{m(t=>{let l=t.findIndex(t=>t.reason_type===e.reason_type);return l>-1?[...t.slice(0,l),...t.slice(l+1)]:[...t,e]})},children:e.reason},e.reason_type)})}),(0,n.jsx)(s.default.TextArea,{placeholder:"描述一下具体问题或更优的答案",className:"h-24 resize-none mb-2",value:p,onChange:e=>v(e.target.value.trim())}),(0,n.jsxs)("div",{className:"flex gap-2 justify-end",children:[(0,n.jsx)(i.ZP,{className:"w-16 h-8",onClick:()=>{l(!1)},children:"取消"}),(0,n.jsx)(i.ZP,{type:"primary",className:"min-w-16 h-8",onClick:async()=>{let e=x.map(e=>e.reason_type);await (null==d?void 0:d({feedback_type:"unlike",reason_types:e,remark:p}))},loading:u,children:"确认"})]})]})})}},32966:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(76212),r=l(65429),s=l(15381),i=l(57132),o=l(65654),c=l(31418),d=l(96074),u=l(14726),x=l(93967),m=l.n(x),p=l(20640),v=l.n(p),h=l(67294),f=l(73913),g=l(5583);t.default=e=>{var t;let{content:l,index:x,chatDialogRef:p}=e,{conv_uid:b,history:j,scene:w}=(0,h.useContext)(f.MobileChatContext),{message:y}=c.Z.useApp(),[_,N]=(0,h.useState)(!1),[k,C]=(0,h.useState)(null==l?void 0:null===(t=l.feedback)||void 0===t?void 0:t.feedback_type),[Z,S]=(0,h.useState)([]),R=async e=>{var t;let l=null==e?void 0:e.replace(/\trelations:.*/g,""),n=v()((null===(t=p.current)||void 0===t?void 0:t.textContent)||l);n?l?y.success("复制成功"):y.warning("内容复制为空"):y.error("复制失败")},{run:E,loading:M}=(0,o.Z)(async e=>await (0,a.Vx)((0,a.zx)({conv_uid:b,message_id:l.order+"",feedback_type:e.feedback_type,reason_types:e.reason_types,remark:e.remark})),{manual:!0,onSuccess:e=>{let[,t]=e;C(null==t?void 0:t.feedback_type),y.success("反馈成功"),N(!1)}}),{run:O}=(0,o.Z)(async()=>await (0,a.Vx)((0,a.Ir)({conv_uid:b,message_id:(null==l?void 0:l.order)+""})),{manual:!0,onSuccess:e=>{let[,t]=e;t&&(C("none"),y.success("操作成功"))}}),{run:A}=(0,o.Z)(async()=>await (0,a.Vx)((0,a.Jr)()),{manual:!0,onSuccess:e=>{let[,t]=e;S(t||[]),t&&N(!0)}}),{run:P,loading:T}=(0,o.Z)(async()=>await (0,a.Vx)((0,a.Ty)({conv_id:b,round_index:0})),{manual:!0,onSuccess:()=>{y.success("操作成功")}});return(0,n.jsxs)("div",{className:"flex items-center text-sm",children:[(0,n.jsxs)("div",{className:"flex gap-3",children:[(0,n.jsx)(r.Z,{className:m()("cursor-pointer",{"text-[#0C75FC]":"like"===k}),onClick:async()=>{if("like"===k){await O();return}await E({feedback_type:"like"})}}),(0,n.jsx)(s.Z,{className:m()("cursor-pointer",{"text-[#0C75FC]":"unlike"===k}),onClick:async()=>{if("unlike"===k){await O();return}await A()}}),(0,n.jsx)(g.default,{open:_,setFeedbackOpen:N,list:Z,feedback:E,loading:M})]}),(0,n.jsx)(d.Z,{type:"vertical"}),(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)(i.Z,{className:"cursor-pointer",onClick:()=>R(l.context)}),j.length-1===x&&"chat_agent"===w&&(0,n.jsx)(u.ZP,{loading:T,size:"small",onClick:async()=>{await P()},className:"text-xs",children:"终止话题"})]})]})}},56397:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(48218),r=l(58638),s=l(31418),i=l(45030),o=l(20640),c=l.n(o),d=l(67294),u=l(73913);t.default=(0,d.memo)(()=>{var e;let{appInfo:t}=(0,d.useContext)(u.MobileChatContext),{message:l}=s.Z.useApp(),[o,x]=(0,d.useState)(0);if(!(null==t?void 0:t.app_code))return null;let m=async()=>{let e=c()("dingtalk://dingtalkclient/page/link?url=".concat(encodeURIComponent(location.href),"&pc_slide=true"));l[e?"success":"error"](e?"复制成功":"复制失败")};return o>6&&l.info(JSON.stringify(window.navigator.userAgent),2,()=>{x(0)}),(0,n.jsxs)("header",{className:"flex w-full items-center justify-between bg-[rgba(255,255,255,0.9)] border dark:bg-black dark:border-[rgba(255,255,255,0.6)] rounded-xl mx-auto px-4 py-2 mb-4 sticky top-4 z-50 mt-4 shadow-md",children:[(0,n.jsxs)("div",{className:"flex gap-2 items-center",onClick:()=>x(o+1),children:[(0,n.jsx)(a.Z,{scene:(null==t?void 0:null===(e=t.team_context)||void 0===e?void 0:e.chat_scene)||"chat_agent",width:8,height:8}),(0,n.jsxs)("div",{className:"flex flex-col ml-2",children:[(0,n.jsx)(i.Z.Text,{className:"text-md font-bold line-clamp-2",children:null==t?void 0:t.app_name}),(0,n.jsx)(i.Z.Text,{className:"text-sm line-clamp-2",children:null==t?void 0:t.app_describe})]})]}),(0,n.jsx)("div",{onClick:m,className:"flex items-center justify-center w-10 h-10 bg-[#ffffff99] dark:bg-[rgba(255,255,255,0.2)] border border-white dark:border-[rgba(255,255,255,0.2)] rounded-[50%] cursor-pointer",children:(0,n.jsx)(r.Z,{className:"text-lg"})})]})})},74638:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(76212),r=l(62418),s=l(25519),i=l(30159),o=l(87740),c=l(50888),d=l(52645),u=l(27496),x=l(1375),m=l(65654),p=l(66309),v=l(55241),h=l(74330),f=l(25278),g=l(14726),b=l(93967),j=l.n(b),w=l(39332),y=l(67294),_=l(73913),N=l(7001),k=l(73749),C=l(97109),Z=l(83454);let S=["magenta","orange","geekblue","purple","cyan","green"];t.default=()=>{var e,t;let l=(0,w.useSearchParams)(),b=null!==(t=null==l?void 0:l.get("ques"))&&void 0!==t?t:"",{history:R,model:E,scene:M,temperature:O,resource:A,conv_uid:P,appInfo:T,scrollViewRef:I,order:V,userInput:z,ctrl:D,canAbort:J,canNewChat:$,setHistory:L,setCanNewChat:U,setCarAbort:q,setUserInput:F}=(0,y.useContext)(_.MobileChatContext),[H,W]=(0,y.useState)(!1),[B,K]=(0,y.useState)(!1),X=async e=>{var t,l,n;F(""),D.current=new AbortController;let a={chat_mode:M,model_name:E,user_input:e||z,conv_uid:P,temperature:O,app_code:null==T?void 0:T.app_code,...A&&{select_param:JSON.stringify(A)}};if(R&&R.length>0){let e=null==R?void 0:R.filter(e=>"view"===e.role);V.current=e[e.length-1].order+1}let i=[{role:"human",context:e||z,model_name:E,order:V.current,time_stamp:0},{role:"view",context:"",model_name:E,order:V.current,time_stamp:0,thinking:!0}],o=i.length-1;L([...R,...i]),U(!1);try{await (0,x.L)("".concat(null!==(t=Z.env.API_BASE_URL)&&void 0!==t?t:"","/api/v1/chat/completions"),{method:"POST",headers:{"Content-Type":"application/json",[s.gp]:null!==(l=(0,r.n5)())&&void 0!==l?l:""},signal:D.current.signal,body:JSON.stringify(a),openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===x.a)return},onclose(){var e;null===(e=D.current)||void 0===e||e.abort(),U(!0),q(!1)},onerror(e){throw Error(e)},onmessage:e=>{let t=e.data;try{t=JSON.parse(t).vis}catch(e){t.replaceAll("\\n","\n")}"[DONE]"===t?(U(!0),q(!1)):(null==t?void 0:t.startsWith("[ERROR]"))?(i[o].context=null==t?void 0:t.replace("[ERROR]",""),i[o].thinking=!1,L([...R,...i]),U(!0),q(!1)):(q(!0),i[o].context=t,i[o].thinking=!1,L([...R,...i]))}})}catch(e){null===(n=D.current)||void 0===n||n.abort(),i[o].context="Sorry, we meet some error, please try again later.",i[o].thinking=!1,L([...i]),U(!0),q(!1)}},G=async()=>{z.trim()&&$&&await X()};(0,y.useEffect)(()=>{var e,t;null===(e=I.current)||void 0===e||e.scrollTo({top:null===(t=I.current)||void 0===t?void 0:t.scrollHeight,behavior:"auto"})},[R,I]);let Q=(0,y.useMemo)(()=>{if(!T)return[];let{param_need:e=[]}=T;return null==e?void 0:e.map(e=>e.type)},[T]),Y=(0,y.useMemo)(()=>{var e;return 0===R.length&&T&&!!(null==T?void 0:null===(e=T.recommend_questions)||void 0===e?void 0:e.length)},[R,T]),{run:ee,loading:et}=(0,m.Z)(async()=>await (0,a.Vx)((0,a.zR)(P)),{manual:!0,onSuccess:()=>{L([])}});return(0,y.useEffect)(()=>{b&&E&&P&&T&&X(b)},[T,P,E,b]),(0,n.jsxs)("div",{className:"flex flex-col",children:[Y&&(0,n.jsx)("ul",{children:null==T?void 0:null===(e=T.recommend_questions)||void 0===e?void 0:e.map((e,t)=>(0,n.jsx)("li",{className:"mb-3",children:(0,n.jsx)(p.Z,{color:S[t],className:"p-2 rounded-xl",onClick:async()=>{X(e.question)},children:e.question})},e.id))}),(0,n.jsxs)("div",{className:"flex items-center justify-between gap-1",children:[(0,n.jsxs)("div",{className:"flex gap-2 mb-1 w-full overflow-x-auto",children:[(null==Q?void 0:Q.includes("model"))&&(0,n.jsx)(N.default,{}),(null==Q?void 0:Q.includes("resource"))&&(0,n.jsx)(k.default,{}),(null==Q?void 0:Q.includes("temperature"))&&(0,n.jsx)(C.default,{})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between text-lg font-bold",children:[(0,n.jsx)(v.Z,{content:"暂停回复",trigger:["hover"],children:(0,n.jsx)(i.Z,{className:j()("p-2 cursor-pointer",{"text-[#0c75fc]":J,"text-gray-400":!J}),onClick:()=>{var e;J&&(null===(e=D.current)||void 0===e||e.abort(),setTimeout(()=>{q(!1),U(!0)},100))}})}),(0,n.jsx)(v.Z,{content:"再来一次",trigger:["hover"],children:(0,n.jsx)(o.Z,{className:j()("p-2 cursor-pointer",{"text-gray-400":!R.length||!$}),onClick:()=>{var e,t;if(!$||0===R.length)return;let l=null===(e=null===(t=R.filter(e=>"human"===e.role))||void 0===t?void 0:t.slice(-1))||void 0===e?void 0:e[0];X((null==l?void 0:l.context)||"")}})}),et?(0,n.jsx)(h.Z,{spinning:et,indicator:(0,n.jsx)(c.Z,{style:{fontSize:18},spin:!0}),className:"p-2"}):(0,n.jsx)(v.Z,{content:"清除历史",trigger:["hover"],children:(0,n.jsx)(d.Z,{className:j()("p-2 cursor-pointer",{"text-gray-400":!R.length||!$}),onClick:()=>{$&&ee()}})})]})]}),(0,n.jsxs)("div",{className:j()("flex py-2 px-3 items-center justify-between bg-white dark:bg-[#242733] dark:border-[#6f7f95] rounded-xl border",{"border-[#0c75fc] dark:border-[rgba(12,117,252,0.8)]":H}),children:[(0,n.jsx)(f.default.TextArea,{placeholder:"可以问我任何问题",className:"w-full resize-none border-0 p-0 focus:shadow-none",value:z,autoSize:{minRows:1},onKeyDown:e=>{if("Enter"===e.key&&!e.shiftKey){if(B){e.preventDefault();return}z.trim()&&(e.preventDefault(),G())}},onChange:e=>{F(e.target.value)},onFocus:()=>{W(!0)},onBlur:()=>W(!1),onCompositionStartCapture:()=>{K(!0)},onCompositionEndCapture:()=>{setTimeout(()=>{K(!1)},0)}}),(0,n.jsx)(g.ZP,{type:"primary",className:j()("flex items-center justify-center rounded-lg bg-button-gradient border-0 ml-2",{"opacity-40 cursor-not-allowed":!z.trim()||!$}),onClick:G,children:$?(0,n.jsx)(u.Z,{}):(0,n.jsx)(h.Z,{indicator:(0,n.jsx)(c.Z,{className:"text-white"})})})]})]})}},7001:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(41468),r=l(39718),s=l(94668),i=l(85418),o=l(55241),c=l(67294),d=l(73913);t.default=()=>{let{modelList:e}=(0,c.useContext)(a.p),{model:t,setModel:l}=(0,c.useContext)(d.MobileChatContext),u=(0,c.useMemo)(()=>e.length>0?e.map(e=>({label:(0,n.jsxs)("div",{className:"flex items-center gap-2",onClick:()=>{l(e)},children:[(0,n.jsx)(r.Z,{width:14,height:14,model:e}),(0,n.jsx)("span",{className:"text-xs",children:e})]}),key:e})):[],[e,l]);return(0,n.jsx)(i.Z,{menu:{items:u},placement:"top",trigger:["click"],children:(0,n.jsx)(o.Z,{content:t,children:(0,n.jsxs)("div",{className:"flex items-center gap-1 border rounded-xl bg-white dark:bg-black p-2 flex-shrink-0",children:[(0,n.jsx)(r.Z,{width:16,height:16,model:t}),(0,n.jsx)("span",{className:"text-xs font-medium line-clamp-1",style:{maxWidth:96},children:t}),(0,n.jsx)(s.Z,{rotate:90})]})})})}},46568:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(25675),r=l.n(a),s=l(67294);t.default=(0,s.memo)(e=>{let{width:t,height:l,src:a,label:s}=e;return(0,n.jsx)(r(),{width:t||14,height:l||14,src:a,alt:s||"db-icon",priority:!0})})},73749:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(76212),r=l(62418),s=l(50888),i=l(94668),o=l(83266),c=l(65654),d=l(74330),u=l(23799),x=l(85418),m=l(67294),p=l(73913),v=l(46568);t.default=()=>{let{appInfo:e,resourceList:t,scene:l,model:h,conv_uid:f,getChatHistoryRun:g,setResource:b,resource:j}=(0,m.useContext)(p.MobileChatContext),[w,y]=(0,m.useState)(null),_=(0,m.useMemo)(()=>{var t,l,n;return null===(t=null==e?void 0:null===(l=e.param_need)||void 0===l?void 0:l.filter(e=>"resource"===e.type))||void 0===t?void 0:null===(n=t[0])||void 0===n?void 0:n.value},[e]),N=(0,m.useMemo)(()=>t&&t.length>0?t.map(e=>({label:(0,n.jsxs)("div",{className:"flex items-center gap-2",onClick:()=>{y(e),b(e.space_id||e.param)},children:[(0,n.jsx)(v.default,{width:14,height:14,src:r.S$[e.type].icon,label:r.S$[e.type].label}),(0,n.jsx)("span",{className:"text-xs",children:e.param})]}),key:e.space_id||e.param})):[],[t,b]),{run:k,loading:C}=(0,c.Z)(async e=>{let[,t]=await (0,a.Vx)((0,a.qn)({convUid:f,chatMode:l,data:e,model:h,config:{timeout:36e5}}));return b(t),t},{manual:!0,onSuccess:async()=>{await g()}}),Z=async e=>{let t=new FormData;t.append("doc_file",null==e?void 0:e.file),await k(t)},S=(0,m.useMemo)(()=>C?(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)(d.Z,{size:"small",indicator:(0,n.jsx)(s.Z,{spin:!0})}),(0,n.jsx)("span",{className:"text-xs",children:"上传中"})]}):j?(0,n.jsxs)("div",{className:"flex gap-1",children:[(0,n.jsx)("span",{className:"text-xs",children:j.file_name}),(0,n.jsx)(i.Z,{rotate:90})]}):(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)(o.Z,{className:"text-base"}),(0,n.jsx)("span",{className:"text-xs",children:"上传文件"})]}),[C,j]);return(0,n.jsx)(n.Fragment,{children:(()=>{switch(_){case"excel_file":case"text_file":case"image_file":return(0,n.jsx)("div",{className:"flex items-center justify-center gap-1 border rounded-xl bg-white dark:bg-black px-2 flex-shrink-0",children:(0,n.jsx)(u.default,{name:"file",accept:".xlsx,.xls",maxCount:1,showUploadList:!1,beforeUpload:()=>!1,onChange:Z,className:"flex h-full w-full items-center justify-center",children:S})});case"database":case"knowledge":case"plugin":case"awel_flow":var e,l,a,s,o;if(!(null==t?void 0:t.length))return null;return(0,n.jsx)(x.Z,{menu:{items:N},placement:"top",trigger:["click"],children:(0,n.jsxs)("div",{className:"flex items-center gap-1 border rounded-xl bg-white dark:bg-black p-2 flex-shrink-0",children:[(0,n.jsx)(v.default,{width:14,height:14,src:null===(e=r.S$[(null==w?void 0:w.type)||(null==t?void 0:null===(l=t[0])||void 0===l?void 0:l.type)])||void 0===e?void 0:e.icon,label:null===(a=r.S$[(null==w?void 0:w.type)||(null==t?void 0:null===(s=t[0])||void 0===s?void 0:s.type)])||void 0===a?void 0:a.label}),(0,n.jsx)("span",{className:"text-xs font-medium",children:(null==w?void 0:w.param)||(null==t?void 0:null===(o=t[0])||void 0===o?void 0:o.param)}),(0,n.jsx)(i.Z,{rotate:90})]})})}})()})}},97109:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(70065),r=l(85418),s=l(30568),i=l(67294),o=l(73913);t.default=()=>{let{temperature:e,setTemperature:t}=(0,i.useContext)(o.MobileChatContext),l=e=>{isNaN(e)||t(e)};return(0,n.jsx)(r.Z,{trigger:["click"],dropdownRender:()=>(0,n.jsx)("div",{className:"flex h-28 bg-white dark:bg-[rgba(255,255,255,0.5)] items-center justify-center rounded-xl py-3",children:(0,n.jsx)(s.Z,{defaultValue:.5,max:1,min:0,step:.1,vertical:!0,onChange:l,value:e})}),placement:"top",children:(0,n.jsxs)("div",{className:"flex items-center justify-between border rounded-xl bg-white dark:bg-black w-14 p-2 flex-shrink-0",children:[(0,n.jsx)(a.Z,{type:"icon-icons-temperature",className:"text-sm"}),(0,n.jsx)("span",{className:"text-xs font-medium",children:e})]})})}},73913:function(e,t,l){"use strict";l.r(t),l.d(t,{MobileChatContext:function(){return j}});var n=l(85893),a=l(41468),r=l(76212),s=l(2440),i=l(62418),o=l(25519),c=l(1375),d=l(65654),u=l(74330),x=l(5152),m=l.n(x),p=l(39332),v=l(67294),h=l(56397),f=l(74638),g=l(83454);let b=m()(()=>Promise.all([l.e(3662),l.e(7034),l.e(8674),l.e(930),l.e(3166),l.e(2837),l.e(2168),l.e(8163),l.e(7126),l.e(4041),l.e(2398),l.e(1300),l.e(4567),l.e(9773),l.e(3457),l.e(4455),l.e(5110),l.e(4705),l.e(9202),l.e(5782),l.e(2783),l.e(8709),l.e(9256),l.e(9870)]).then(l.bind(l,36818)),{loadableGenerated:{webpack:()=>[36818]},ssr:!1}),j=(0,v.createContext)({model:"",temperature:.5,resource:null,setModel:()=>{},setTemperature:()=>{},setResource:()=>{},scene:"",history:[],setHistory:()=>{},scrollViewRef:{current:null},appInfo:{},conv_uid:"",resourceList:[],order:{current:1},handleChat:()=>Promise.resolve(),canAbort:!1,setCarAbort:()=>{},canNewChat:!1,setCanNewChat:()=>{},ctrl:{current:void 0},userInput:"",setUserInput:()=>{},getChatHistoryRun:()=>{}});t.default=()=>{var e,t;let l=(0,p.useSearchParams)(),x=null!==(e=null==l?void 0:l.get("chat_scene"))&&void 0!==e?e:"",m=null!==(t=null==l?void 0:l.get("app_code"))&&void 0!==t?t:"",{modelList:w}=(0,v.useContext)(a.p),[y,_]=(0,v.useState)([]),[N,k]=(0,v.useState)(""),[C,Z]=(0,v.useState)(.5),[S,R]=(0,v.useState)(null),E=(0,v.useRef)(null),[M,O]=(0,v.useState)(""),[A,P]=(0,v.useState)(!1),[T,I]=(0,v.useState)(!0),V=(0,v.useRef)(),z=(0,v.useRef)(1),D=(0,s.Z)(),J=(0,v.useMemo)(()=>"".concat(null==D?void 0:D.user_no,"_").concat(m),[m,D]),{run:$,loading:L}=(0,d.Z)(async()=>await (0,r.Vx)((0,r.$i)("".concat(null==D?void 0:D.user_no,"_").concat(m))),{manual:!0,onSuccess:e=>{let[,t]=e,l=null==t?void 0:t.filter(e=>"view"===e.role);l&&l.length>0&&(z.current=l[l.length-1].order+1),_(t||[])}}),{data:U,run:q,loading:F}=(0,d.Z)(async e=>{let[,t]=await (0,r.Vx)((0,r.BN)(e));return null!=t?t:{}},{manual:!0}),{run:H,data:W,loading:B}=(0,d.Z)(async()=>{var e,t;let[,l]=await (0,r.Vx)((0,r.vD)(x));return R((null==l?void 0:null===(e=l[0])||void 0===e?void 0:e.space_id)||(null==l?void 0:null===(t=l[0])||void 0===t?void 0:t.param)),null!=l?l:[]},{manual:!0}),{run:K,loading:X}=(0,d.Z)(async()=>{let[,e]=await (0,r.Vx)((0,r.iP)());return null!=e?e:[]},{manual:!0,onSuccess:e=>{var t;let l=null===(t=null==e?void 0:e.filter(e=>e.conv_uid===J))||void 0===t?void 0:t[0];(null==l?void 0:l.select_param)&&R(JSON.parse(null==l?void 0:l.select_param))}});(0,v.useEffect)(()=>{x&&m&&w.length&&q({chat_scene:x,app_code:m})},[m,x,q,w]),(0,v.useEffect)(()=>{m&&$()},[m]),(0,v.useEffect)(()=>{if(w.length>0){var e,t,l;let n=null===(e=null==U?void 0:null===(t=U.param_need)||void 0===t?void 0:t.filter(e=>"model"===e.type))||void 0===e?void 0:null===(l=e[0])||void 0===l?void 0:l.value;k(n||w[0])}},[w,U]),(0,v.useEffect)(()=>{var e,t,l;let n=null===(e=null==U?void 0:null===(t=U.param_need)||void 0===t?void 0:t.filter(e=>"temperature"===e.type))||void 0===e?void 0:null===(l=e[0])||void 0===l?void 0:l.value;Z(n||.5)},[U]),(0,v.useEffect)(()=>{if(x&&(null==U?void 0:U.app_code)){var e,t,l,n,a,r;let s=null===(e=null==U?void 0:null===(t=U.param_need)||void 0===t?void 0:t.filter(e=>"resource"===e.type))||void 0===e?void 0:null===(l=e[0])||void 0===l?void 0:l.value,i=null===(n=null==U?void 0:null===(a=U.param_need)||void 0===a?void 0:a.filter(e=>"resource"===e.type))||void 0===n?void 0:null===(r=n[0])||void 0===r?void 0:r.bind_value;i&&R(i),["database","knowledge","plugin","awel_flow"].includes(s)&&!i&&H()}},[U,x,H]);let G=async e=>{var t,l,n;O(""),V.current=new AbortController;let a={chat_mode:x,model_name:N,user_input:e||M,conv_uid:J,temperature:C,app_code:null==U?void 0:U.app_code,...S&&{select_param:S}};if(y&&y.length>0){let e=null==y?void 0:y.filter(e=>"view"===e.role);z.current=e[e.length-1].order+1}let r=[{role:"human",context:e||M,model_name:N,order:z.current,time_stamp:0},{role:"view",context:"",model_name:N,order:z.current,time_stamp:0,thinking:!0}],s=r.length-1;_([...y,...r]),I(!1);try{await (0,c.L)("".concat(null!==(t=g.env.API_BASE_URL)&&void 0!==t?t:"","/api/v1/chat/completions"),{method:"POST",headers:{"Content-Type":"application/json",[o.gp]:null!==(l=(0,i.n5)())&&void 0!==l?l:""},signal:V.current.signal,body:JSON.stringify(a),openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===c.a)return},onclose(){var e;null===(e=V.current)||void 0===e||e.abort(),I(!0),P(!1)},onerror(e){throw Error(e)},onmessage:e=>{let t=e.data;try{t=JSON.parse(t).vis}catch(e){t.replaceAll("\\n","\n")}"[DONE]"===t?(I(!0),P(!1)):(null==t?void 0:t.startsWith("[ERROR]"))?(r[s].context=null==t?void 0:t.replace("[ERROR]",""),r[s].thinking=!1,_([...y,...r]),I(!0),P(!1)):(P(!0),r[s].context=t,r[s].thinking=!1,_([...y,...r]))}})}catch(e){null===(n=V.current)||void 0===n||n.abort(),r[s].context="Sorry, we meet some error, please try again later.",r[s].thinking=!1,_([...r]),I(!0),P(!1)}};return(0,v.useEffect)(()=>{x&&"chat_agent"!==x&&K()},[x,K]),(0,n.jsx)(j.Provider,{value:{model:N,resource:S,setModel:k,setTemperature:Z,setResource:R,temperature:C,appInfo:U,conv_uid:J,scene:x,history:y,scrollViewRef:E,setHistory:_,resourceList:W,order:z,handleChat:G,setCanNewChat:I,ctrl:V,canAbort:A,setCarAbort:P,canNewChat:T,userInput:M,setUserInput:O,getChatHistoryRun:$},children:(0,n.jsx)(u.Z,{size:"large",className:"flex h-screen w-screen justify-center items-center max-h-screen",spinning:L||F||B||X,children:(0,n.jsxs)("div",{className:"flex flex-col h-screen bg-gradient-light dark:bg-gradient-dark p-4 pt-0",children:[(0,n.jsxs)("div",{ref:E,className:"flex flex-col flex-1 overflow-y-auto mb-3",children:[(0,n.jsx)(h.default,{}),(0,n.jsx)(b,{})]}),(null==U?void 0:U.app_code)&&(0,n.jsx)(f.default,{})]})})})}}},function(e){e.O(0,[3662,7034,8674,930,3166,2837,2168,8163,7126,2648,3791,2913,5278,8791,4330,1049,5030,4041,2398,3799,2684,1300,4567,9773,3457,4455,5110,4705,9202,5782,6388,8709,9256,9774,2888,179],function(){return e(e.s=32682)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8258,3913],{32682:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mobile/chat/components/ChatDialog",function(){return l(7332)}])},2440:function(e,t,l){"use strict";var n=l(25519);t.Z=()=>{var e;return JSON.parse(null!==(e=localStorage.getItem(n.C9))&&void 0!==e?e:"")}},39718:function(e,t,l){"use strict";var n=l(85893),a=l(19284),r=l(25675),s=l.n(r),i=l(67294);t.Z=(0,i.memo)(e=>{let{width:t,height:l,model:r}=e,o=(0,i.useMemo)(()=>{let e=null==r?void 0:r.replaceAll("-","_").split("_")[0],t=Object.keys(a.Me);for(let l=0;l{let{width:t,height:l,scene:i}=e,o=(0,s.useCallback)(()=>{switch(i){case"chat_knowledge":return a.je;case"chat_with_db_execute":return a.zM;case"chat_excel":return a.DL;case"chat_with_db_qa":case"chat_dba":return a.RD;case"chat_dashboard":return a.In;case"chat_agent":return a.si;case"chat_normal":return a.O7;default:return}},[i]);return(0,n.jsx)(r.Z,{className:"w-".concat(t||7," h-").concat(l||7),component:o()})}},70065:function(e,t,l){"use strict";var n=l(91321);let a=(0,n.Z)({scriptUrl:"//at.alicdn.com/t/a/font_4440880_ljyggdw605.js"});t.Z=a},7332:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(39718),r=l(18102),s=l(96074),i=l(93967),o=l.n(i),c=l(67294),d=l(73913),u=l(32966);t.default=(0,c.memo)(e=>{let{message:t,index:l}=e,{scene:i}=(0,c.useContext)(d.MobileChatContext),{context:x,model_name:m,role:p,thinking:v}=t,h=(0,c.useMemo)(()=>"view"===p,[p]),f=(0,c.useRef)(null),{value:g}=(0,c.useMemo)(()=>{if("string"!=typeof x)return{relations:[],value:"",cachePluginContext:[]};let[e,t]=x.split(" relations:"),l=t?t.split(","):[],n=[],a=0,r=e.replace(/]*>[^<]*<\/dbgpt-view>/gi,e=>{try{var t;let l=e.replaceAll("\n","\\n").replace(/<[^>]*>|<\/[^>]*>/gm,""),r=JSON.parse(l),s="".concat(a,"");return n.push({...r,result:b(null!==(t=r.result)&&void 0!==t?t:"")}),a++,s}catch(t){return console.log(t.message,t),e}});return{relations:l,cachePluginContext:n,value:r}},[x]),b=e=>e.replaceAll("\\n","\n").replace(/]+)>/gi,"
    ").replace(/]+)>/gi,"");return(0,n.jsxs)("div",{className:o()("flex w-full",{"justify-end":!h}),ref:f,children:[!h&&(0,n.jsx)("div",{className:"flex bg-[#0C75FC] text-white p-3 rounded-xl rounded-br-none",children:x}),h&&(0,n.jsxs)("div",{className:"flex max-w-full flex-col flex-wrap bg-white dark:bg-[rgba(255,255,255,0.16)] p-3 rounded-xl rounded-bl-none",children:["string"==typeof x&&"chat_agent"===i&&(0,n.jsx)(r.default,{children:null==g?void 0:g.replace(/]+)>/gi,"
    ").replace(/]+)>/gi,"")}),"string"==typeof x&&"chat_agent"!==i&&(0,n.jsx)(r.default,{children:b(g)}),v&&!x&&(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"flex text-sm text-[#1c2533] dark:text-white",children:"思考中"}),(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsx)("div",{className:"w-1 h-1 rounded-full mx-1 animate-pulse1"}),(0,n.jsx)("div",{className:"w-1 h-1 rounded-full mx-1 animate-pulse2"}),(0,n.jsx)("div",{className:"w-1 h-1 rounded-full mx-1 animate-pulse3"})]})]}),!v&&(0,n.jsx)(s.Z,{className:"my-2"}),(0,n.jsxs)("div",{className:o()("opacity-0 h-0 w-0",{"opacity-100 flex items-center justify-between gap-6 w-auto h-auto":!v}),children:[(0,n.jsx)(u.default,{content:t,index:l,chatDialogRef:f}),"chat_agent"!==i&&(0,n.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,n.jsx)(a.Z,{width:14,height:14,model:m}),(0,n.jsx)("span",{className:"text-xs text-gray-500",children:m})]})]})]})]})})},5583:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(85265),r=l(66309),s=l(25278),i=l(14726),o=l(67294);t.default=e=>{let{open:t,setFeedbackOpen:l,list:c,feedback:d,loading:u}=e,[x,m]=(0,o.useState)([]),[p,v]=(0,o.useState)("");return(0,n.jsx)(a.Z,{title:"你的反馈助我进步",placement:"bottom",open:t,onClose:()=>l(!1),destroyOnClose:!0,height:"auto",children:(0,n.jsxs)("div",{className:"flex flex-col w-full gap-4",children:[(0,n.jsx)("div",{className:"flex w-full flex-wrap gap-2",children:null==c?void 0:c.map(e=>{let t=x.findIndex(t=>t.reason_type===e.reason_type)>-1;return(0,n.jsx)(r.Z,{className:"text-sm text-[#525964] p-1 px-2 rounded-md cursor-pointer ".concat(t?"border-[#0c75fc] text-[#0c75fc]":""),onClick:()=>{m(t=>{let l=t.findIndex(t=>t.reason_type===e.reason_type);return l>-1?[...t.slice(0,l),...t.slice(l+1)]:[...t,e]})},children:e.reason},e.reason_type)})}),(0,n.jsx)(s.default.TextArea,{placeholder:"描述一下具体问题或更优的答案",className:"h-24 resize-none mb-2",value:p,onChange:e=>v(e.target.value.trim())}),(0,n.jsxs)("div",{className:"flex gap-2 justify-end",children:[(0,n.jsx)(i.ZP,{className:"w-16 h-8",onClick:()=>{l(!1)},children:"取消"}),(0,n.jsx)(i.ZP,{type:"primary",className:"min-w-16 h-8",onClick:async()=>{let e=x.map(e=>e.reason_type);await (null==d?void 0:d({feedback_type:"unlike",reason_types:e,remark:p}))},loading:u,children:"确认"})]})]})})}},32966:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(76212),r=l(65429),s=l(15381),i=l(57132),o=l(65654),c=l(31418),d=l(96074),u=l(14726),x=l(93967),m=l.n(x),p=l(20640),v=l.n(p),h=l(67294),f=l(73913),g=l(5583);t.default=e=>{var t;let{content:l,index:x,chatDialogRef:p}=e,{conv_uid:b,history:j,scene:w}=(0,h.useContext)(f.MobileChatContext),{message:y}=c.Z.useApp(),[_,N]=(0,h.useState)(!1),[k,C]=(0,h.useState)(null==l?void 0:null===(t=l.feedback)||void 0===t?void 0:t.feedback_type),[Z,S]=(0,h.useState)([]),R=async e=>{var t;let l=null==e?void 0:e.replace(/\trelations:.*/g,""),n=v()((null===(t=p.current)||void 0===t?void 0:t.textContent)||l);n?l?y.success("复制成功"):y.warning("内容复制为空"):y.error("复制失败")},{run:E,loading:M}=(0,o.Z)(async e=>await (0,a.Vx)((0,a.zx)({conv_uid:b,message_id:l.order+"",feedback_type:e.feedback_type,reason_types:e.reason_types,remark:e.remark})),{manual:!0,onSuccess:e=>{let[,t]=e;C(null==t?void 0:t.feedback_type),y.success("反馈成功"),N(!1)}}),{run:O}=(0,o.Z)(async()=>await (0,a.Vx)((0,a.Ir)({conv_uid:b,message_id:(null==l?void 0:l.order)+""})),{manual:!0,onSuccess:e=>{let[,t]=e;t&&(C("none"),y.success("操作成功"))}}),{run:A}=(0,o.Z)(async()=>await (0,a.Vx)((0,a.Jr)()),{manual:!0,onSuccess:e=>{let[,t]=e;S(t||[]),t&&N(!0)}}),{run:P,loading:T}=(0,o.Z)(async()=>await (0,a.Vx)((0,a.Ty)({conv_id:b,round_index:0})),{manual:!0,onSuccess:()=>{y.success("操作成功")}});return(0,n.jsxs)("div",{className:"flex items-center text-sm",children:[(0,n.jsxs)("div",{className:"flex gap-3",children:[(0,n.jsx)(r.Z,{className:m()("cursor-pointer",{"text-[#0C75FC]":"like"===k}),onClick:async()=>{if("like"===k){await O();return}await E({feedback_type:"like"})}}),(0,n.jsx)(s.Z,{className:m()("cursor-pointer",{"text-[#0C75FC]":"unlike"===k}),onClick:async()=>{if("unlike"===k){await O();return}await A()}}),(0,n.jsx)(g.default,{open:_,setFeedbackOpen:N,list:Z,feedback:E,loading:M})]}),(0,n.jsx)(d.Z,{type:"vertical"}),(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)(i.Z,{className:"cursor-pointer",onClick:()=>R(l.context)}),j.length-1===x&&"chat_agent"===w&&(0,n.jsx)(u.ZP,{loading:T,size:"small",onClick:async()=>{await P()},className:"text-xs",children:"终止话题"})]})]})}},56397:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(48218),r=l(58638),s=l(31418),i=l(45030),o=l(20640),c=l.n(o),d=l(67294),u=l(73913);t.default=(0,d.memo)(()=>{var e;let{appInfo:t}=(0,d.useContext)(u.MobileChatContext),{message:l}=s.Z.useApp(),[o,x]=(0,d.useState)(0);if(!(null==t?void 0:t.app_code))return null;let m=async()=>{let e=c()("dingtalk://dingtalkclient/page/link?url=".concat(encodeURIComponent(location.href),"&pc_slide=true"));l[e?"success":"error"](e?"复制成功":"复制失败")};return o>6&&l.info(JSON.stringify(window.navigator.userAgent),2,()=>{x(0)}),(0,n.jsxs)("header",{className:"flex w-full items-center justify-between bg-[rgba(255,255,255,0.9)] border dark:bg-black dark:border-[rgba(255,255,255,0.6)] rounded-xl mx-auto px-4 py-2 mb-4 sticky top-4 z-50 mt-4 shadow-md",children:[(0,n.jsxs)("div",{className:"flex gap-2 items-center",onClick:()=>x(o+1),children:[(0,n.jsx)(a.Z,{scene:(null==t?void 0:null===(e=t.team_context)||void 0===e?void 0:e.chat_scene)||"chat_agent",width:8,height:8}),(0,n.jsxs)("div",{className:"flex flex-col ml-2",children:[(0,n.jsx)(i.Z.Text,{className:"text-md font-bold line-clamp-2",children:null==t?void 0:t.app_name}),(0,n.jsx)(i.Z.Text,{className:"text-sm line-clamp-2",children:null==t?void 0:t.app_describe})]})]}),(0,n.jsx)("div",{onClick:m,className:"flex items-center justify-center w-10 h-10 bg-[#ffffff99] dark:bg-[rgba(255,255,255,0.2)] border border-white dark:border-[rgba(255,255,255,0.2)] rounded-[50%] cursor-pointer",children:(0,n.jsx)(r.Z,{className:"text-lg"})})]})})},74638:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(76212),r=l(62418),s=l(25519),i=l(30159),o=l(87740),c=l(50888),d=l(52645),u=l(27496),x=l(1375),m=l(65654),p=l(66309),v=l(55241),h=l(74330),f=l(25278),g=l(14726),b=l(93967),j=l.n(b),w=l(39332),y=l(67294),_=l(73913),N=l(7001),k=l(73749),C=l(97109),Z=l(83454);let S=["magenta","orange","geekblue","purple","cyan","green"];t.default=()=>{var e,t;let l=(0,w.useSearchParams)(),b=null!==(t=null==l?void 0:l.get("ques"))&&void 0!==t?t:"",{history:R,model:E,scene:M,temperature:O,resource:A,conv_uid:P,appInfo:T,scrollViewRef:I,order:V,userInput:z,ctrl:D,canAbort:J,canNewChat:$,setHistory:L,setCanNewChat:U,setCarAbort:q,setUserInput:F}=(0,y.useContext)(_.MobileChatContext),[H,W]=(0,y.useState)(!1),[B,K]=(0,y.useState)(!1),X=async e=>{var t,l,n;F(""),D.current=new AbortController;let a={chat_mode:M,model_name:E,user_input:e||z,conv_uid:P,temperature:O,app_code:null==T?void 0:T.app_code,...A&&{select_param:JSON.stringify(A)}};if(R&&R.length>0){let e=null==R?void 0:R.filter(e=>"view"===e.role);V.current=e[e.length-1].order+1}let i=[{role:"human",context:e||z,model_name:E,order:V.current,time_stamp:0},{role:"view",context:"",model_name:E,order:V.current,time_stamp:0,thinking:!0}],o=i.length-1;L([...R,...i]),U(!1);try{await (0,x.L)("".concat(null!==(t=Z.env.API_BASE_URL)&&void 0!==t?t:"","/api/v1/chat/completions"),{method:"POST",headers:{"Content-Type":"application/json",[s.gp]:null!==(l=(0,r.n5)())&&void 0!==l?l:""},signal:D.current.signal,body:JSON.stringify(a),openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===x.a)return},onclose(){var e;null===(e=D.current)||void 0===e||e.abort(),U(!0),q(!1)},onerror(e){throw Error(e)},onmessage:e=>{let t=e.data;try{t=JSON.parse(t).vis}catch(e){t.replaceAll("\\n","\n")}"[DONE]"===t?(U(!0),q(!1)):(null==t?void 0:t.startsWith("[ERROR]"))?(i[o].context=null==t?void 0:t.replace("[ERROR]",""),i[o].thinking=!1,L([...R,...i]),U(!0),q(!1)):(q(!0),i[o].context=t,i[o].thinking=!1,L([...R,...i]))}})}catch(e){null===(n=D.current)||void 0===n||n.abort(),i[o].context="Sorry, we meet some error, please try again later.",i[o].thinking=!1,L([...i]),U(!0),q(!1)}},G=async()=>{z.trim()&&$&&await X()};(0,y.useEffect)(()=>{var e,t;null===(e=I.current)||void 0===e||e.scrollTo({top:null===(t=I.current)||void 0===t?void 0:t.scrollHeight,behavior:"auto"})},[R,I]);let Q=(0,y.useMemo)(()=>{if(!T)return[];let{param_need:e=[]}=T;return null==e?void 0:e.map(e=>e.type)},[T]),Y=(0,y.useMemo)(()=>{var e;return 0===R.length&&T&&!!(null==T?void 0:null===(e=T.recommend_questions)||void 0===e?void 0:e.length)},[R,T]),{run:ee,loading:et}=(0,m.Z)(async()=>await (0,a.Vx)((0,a.zR)(P)),{manual:!0,onSuccess:()=>{L([])}});return(0,y.useEffect)(()=>{b&&E&&P&&T&&X(b)},[T,P,E,b]),(0,n.jsxs)("div",{className:"flex flex-col",children:[Y&&(0,n.jsx)("ul",{children:null==T?void 0:null===(e=T.recommend_questions)||void 0===e?void 0:e.map((e,t)=>(0,n.jsx)("li",{className:"mb-3",children:(0,n.jsx)(p.Z,{color:S[t],className:"p-2 rounded-xl",onClick:async()=>{X(e.question)},children:e.question})},e.id))}),(0,n.jsxs)("div",{className:"flex items-center justify-between gap-1",children:[(0,n.jsxs)("div",{className:"flex gap-2 mb-1 w-full overflow-x-auto",children:[(null==Q?void 0:Q.includes("model"))&&(0,n.jsx)(N.default,{}),(null==Q?void 0:Q.includes("resource"))&&(0,n.jsx)(k.default,{}),(null==Q?void 0:Q.includes("temperature"))&&(0,n.jsx)(C.default,{})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between text-lg font-bold",children:[(0,n.jsx)(v.Z,{content:"暂停回复",trigger:["hover"],children:(0,n.jsx)(i.Z,{className:j()("p-2 cursor-pointer",{"text-[#0c75fc]":J,"text-gray-400":!J}),onClick:()=>{var e;J&&(null===(e=D.current)||void 0===e||e.abort(),setTimeout(()=>{q(!1),U(!0)},100))}})}),(0,n.jsx)(v.Z,{content:"再来一次",trigger:["hover"],children:(0,n.jsx)(o.Z,{className:j()("p-2 cursor-pointer",{"text-gray-400":!R.length||!$}),onClick:()=>{var e,t;if(!$||0===R.length)return;let l=null===(e=null===(t=R.filter(e=>"human"===e.role))||void 0===t?void 0:t.slice(-1))||void 0===e?void 0:e[0];X((null==l?void 0:l.context)||"")}})}),et?(0,n.jsx)(h.Z,{spinning:et,indicator:(0,n.jsx)(c.Z,{style:{fontSize:18},spin:!0}),className:"p-2"}):(0,n.jsx)(v.Z,{content:"清除历史",trigger:["hover"],children:(0,n.jsx)(d.Z,{className:j()("p-2 cursor-pointer",{"text-gray-400":!R.length||!$}),onClick:()=>{$&&ee()}})})]})]}),(0,n.jsxs)("div",{className:j()("flex py-2 px-3 items-center justify-between bg-white dark:bg-[#242733] dark:border-[#6f7f95] rounded-xl border",{"border-[#0c75fc] dark:border-[rgba(12,117,252,0.8)]":H}),children:[(0,n.jsx)(f.default.TextArea,{placeholder:"可以问我任何问题",className:"w-full resize-none border-0 p-0 focus:shadow-none",value:z,autoSize:{minRows:1},onKeyDown:e=>{if("Enter"===e.key&&!e.shiftKey){if(B){e.preventDefault();return}z.trim()&&(e.preventDefault(),G())}},onChange:e=>{F(e.target.value)},onFocus:()=>{W(!0)},onBlur:()=>W(!1),onCompositionStartCapture:()=>{K(!0)},onCompositionEndCapture:()=>{setTimeout(()=>{K(!1)},0)}}),(0,n.jsx)(g.ZP,{type:"primary",className:j()("flex items-center justify-center rounded-lg bg-button-gradient border-0 ml-2",{"opacity-40 cursor-not-allowed":!z.trim()||!$}),onClick:G,children:$?(0,n.jsx)(u.Z,{}):(0,n.jsx)(h.Z,{indicator:(0,n.jsx)(c.Z,{className:"text-white"})})})]})]})}},7001:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(41468),r=l(39718),s=l(94668),i=l(85418),o=l(55241),c=l(67294),d=l(73913);t.default=()=>{let{modelList:e}=(0,c.useContext)(a.p),{model:t,setModel:l}=(0,c.useContext)(d.MobileChatContext),u=(0,c.useMemo)(()=>e.length>0?e.map(e=>({label:(0,n.jsxs)("div",{className:"flex items-center gap-2",onClick:()=>{l(e)},children:[(0,n.jsx)(r.Z,{width:14,height:14,model:e}),(0,n.jsx)("span",{className:"text-xs",children:e})]}),key:e})):[],[e,l]);return(0,n.jsx)(i.Z,{menu:{items:u},placement:"top",trigger:["click"],children:(0,n.jsx)(o.Z,{content:t,children:(0,n.jsxs)("div",{className:"flex items-center gap-1 border rounded-xl bg-white dark:bg-black p-2 flex-shrink-0",children:[(0,n.jsx)(r.Z,{width:16,height:16,model:t}),(0,n.jsx)("span",{className:"text-xs font-medium line-clamp-1",style:{maxWidth:96},children:t}),(0,n.jsx)(s.Z,{rotate:90})]})})})}},46568:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(25675),r=l.n(a),s=l(67294);t.default=(0,s.memo)(e=>{let{width:t,height:l,src:a,label:s}=e;return(0,n.jsx)(r(),{width:t||14,height:l||14,src:a,alt:s||"db-icon",priority:!0})})},73749:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(76212),r=l(62418),s=l(50888),i=l(94668),o=l(83266),c=l(65654),d=l(74330),u=l(23799),x=l(85418),m=l(67294),p=l(73913),v=l(46568);t.default=()=>{let{appInfo:e,resourceList:t,scene:l,model:h,conv_uid:f,getChatHistoryRun:g,setResource:b,resource:j}=(0,m.useContext)(p.MobileChatContext),[w,y]=(0,m.useState)(null),_=(0,m.useMemo)(()=>{var t,l,n;return null===(t=null==e?void 0:null===(l=e.param_need)||void 0===l?void 0:l.filter(e=>"resource"===e.type))||void 0===t?void 0:null===(n=t[0])||void 0===n?void 0:n.value},[e]),N=(0,m.useMemo)(()=>t&&t.length>0?t.map(e=>({label:(0,n.jsxs)("div",{className:"flex items-center gap-2",onClick:()=>{y(e),b(e.space_id||e.param)},children:[(0,n.jsx)(v.default,{width:14,height:14,src:r.S$[e.type].icon,label:r.S$[e.type].label}),(0,n.jsx)("span",{className:"text-xs",children:e.param})]}),key:e.space_id||e.param})):[],[t,b]),{run:k,loading:C}=(0,c.Z)(async e=>{let[,t]=await (0,a.Vx)((0,a.qn)({convUid:f,chatMode:l,data:e,model:h,config:{timeout:36e5}}));return b(t),t},{manual:!0,onSuccess:async()=>{await g()}}),Z=async e=>{let t=new FormData;t.append("doc_file",null==e?void 0:e.file),await k(t)},S=(0,m.useMemo)(()=>C?(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)(d.Z,{size:"small",indicator:(0,n.jsx)(s.Z,{spin:!0})}),(0,n.jsx)("span",{className:"text-xs",children:"上传中"})]}):j?(0,n.jsxs)("div",{className:"flex gap-1",children:[(0,n.jsx)("span",{className:"text-xs",children:j.file_name}),(0,n.jsx)(i.Z,{rotate:90})]}):(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)(o.Z,{className:"text-base"}),(0,n.jsx)("span",{className:"text-xs",children:"上传文件"})]}),[C,j]);return(0,n.jsx)(n.Fragment,{children:(()=>{switch(_){case"excel_file":case"text_file":case"image_file":return(0,n.jsx)("div",{className:"flex items-center justify-center gap-1 border rounded-xl bg-white dark:bg-black px-2 flex-shrink-0",children:(0,n.jsx)(u.default,{name:"file",accept:".xlsx,.xls",maxCount:1,showUploadList:!1,beforeUpload:()=>!1,onChange:Z,className:"flex h-full w-full items-center justify-center",children:S})});case"database":case"knowledge":case"plugin":case"awel_flow":var e,l,a,s,o;if(!(null==t?void 0:t.length))return null;return(0,n.jsx)(x.Z,{menu:{items:N},placement:"top",trigger:["click"],children:(0,n.jsxs)("div",{className:"flex items-center gap-1 border rounded-xl bg-white dark:bg-black p-2 flex-shrink-0",children:[(0,n.jsx)(v.default,{width:14,height:14,src:null===(e=r.S$[(null==w?void 0:w.type)||(null==t?void 0:null===(l=t[0])||void 0===l?void 0:l.type)])||void 0===e?void 0:e.icon,label:null===(a=r.S$[(null==w?void 0:w.type)||(null==t?void 0:null===(s=t[0])||void 0===s?void 0:s.type)])||void 0===a?void 0:a.label}),(0,n.jsx)("span",{className:"text-xs font-medium",children:(null==w?void 0:w.param)||(null==t?void 0:null===(o=t[0])||void 0===o?void 0:o.param)}),(0,n.jsx)(i.Z,{rotate:90})]})})}})()})}},97109:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(70065),r=l(85418),s=l(30568),i=l(67294),o=l(73913);t.default=()=>{let{temperature:e,setTemperature:t}=(0,i.useContext)(o.MobileChatContext),l=e=>{isNaN(e)||t(e)};return(0,n.jsx)(r.Z,{trigger:["click"],dropdownRender:()=>(0,n.jsx)("div",{className:"flex h-28 bg-white dark:bg-[rgba(255,255,255,0.5)] items-center justify-center rounded-xl py-3",children:(0,n.jsx)(s.Z,{defaultValue:.5,max:1,min:0,step:.1,vertical:!0,onChange:l,value:e})}),placement:"top",children:(0,n.jsxs)("div",{className:"flex items-center justify-between border rounded-xl bg-white dark:bg-black w-14 p-2 flex-shrink-0",children:[(0,n.jsx)(a.Z,{type:"icon-icons-temperature",className:"text-sm"}),(0,n.jsx)("span",{className:"text-xs font-medium",children:e})]})})}},73913:function(e,t,l){"use strict";l.r(t),l.d(t,{MobileChatContext:function(){return j}});var n=l(85893),a=l(41468),r=l(76212),s=l(2440),i=l(62418),o=l(25519),c=l(1375),d=l(65654),u=l(74330),x=l(5152),m=l.n(x),p=l(39332),v=l(67294),h=l(56397),f=l(74638),g=l(83454);let b=m()(()=>Promise.all([l.e(3662),l.e(7034),l.e(6106),l.e(8674),l.e(3166),l.e(2837),l.e(2168),l.e(8163),l.e(4041),l.e(2398),l.e(1300),l.e(4567),l.e(9773),l.e(3457),l.e(4035),l.e(152),l.e(4705),l.e(9202),l.e(5782),l.e(2783),l.e(8709),l.e(7249),l.e(9870)]).then(l.bind(l,36818)),{loadableGenerated:{webpack:()=>[36818]},ssr:!1}),j=(0,v.createContext)({model:"",temperature:.5,resource:null,setModel:()=>{},setTemperature:()=>{},setResource:()=>{},scene:"",history:[],setHistory:()=>{},scrollViewRef:{current:null},appInfo:{},conv_uid:"",resourceList:[],order:{current:1},handleChat:()=>Promise.resolve(),canAbort:!1,setCarAbort:()=>{},canNewChat:!1,setCanNewChat:()=>{},ctrl:{current:void 0},userInput:"",setUserInput:()=>{},getChatHistoryRun:()=>{}});t.default=()=>{var e,t;let l=(0,p.useSearchParams)(),x=null!==(e=null==l?void 0:l.get("chat_scene"))&&void 0!==e?e:"",m=null!==(t=null==l?void 0:l.get("app_code"))&&void 0!==t?t:"",{modelList:w}=(0,v.useContext)(a.p),[y,_]=(0,v.useState)([]),[N,k]=(0,v.useState)(""),[C,Z]=(0,v.useState)(.5),[S,R]=(0,v.useState)(null),E=(0,v.useRef)(null),[M,O]=(0,v.useState)(""),[A,P]=(0,v.useState)(!1),[T,I]=(0,v.useState)(!0),V=(0,v.useRef)(),z=(0,v.useRef)(1),D=(0,s.Z)(),J=(0,v.useMemo)(()=>"".concat(null==D?void 0:D.user_no,"_").concat(m),[m,D]),{run:$,loading:L}=(0,d.Z)(async()=>await (0,r.Vx)((0,r.$i)("".concat(null==D?void 0:D.user_no,"_").concat(m))),{manual:!0,onSuccess:e=>{let[,t]=e,l=null==t?void 0:t.filter(e=>"view"===e.role);l&&l.length>0&&(z.current=l[l.length-1].order+1),_(t||[])}}),{data:U,run:q,loading:F}=(0,d.Z)(async e=>{let[,t]=await (0,r.Vx)((0,r.BN)(e));return null!=t?t:{}},{manual:!0}),{run:H,data:W,loading:B}=(0,d.Z)(async()=>{var e,t;let[,l]=await (0,r.Vx)((0,r.vD)(x));return R((null==l?void 0:null===(e=l[0])||void 0===e?void 0:e.space_id)||(null==l?void 0:null===(t=l[0])||void 0===t?void 0:t.param)),null!=l?l:[]},{manual:!0}),{run:K,loading:X}=(0,d.Z)(async()=>{let[,e]=await (0,r.Vx)((0,r.iP)());return null!=e?e:[]},{manual:!0,onSuccess:e=>{var t;let l=null===(t=null==e?void 0:e.filter(e=>e.conv_uid===J))||void 0===t?void 0:t[0];(null==l?void 0:l.select_param)&&R(JSON.parse(null==l?void 0:l.select_param))}});(0,v.useEffect)(()=>{x&&m&&w.length&&q({chat_scene:x,app_code:m})},[m,x,q,w]),(0,v.useEffect)(()=>{m&&$()},[m]),(0,v.useEffect)(()=>{if(w.length>0){var e,t,l;let n=null===(e=null==U?void 0:null===(t=U.param_need)||void 0===t?void 0:t.filter(e=>"model"===e.type))||void 0===e?void 0:null===(l=e[0])||void 0===l?void 0:l.value;k(n||w[0])}},[w,U]),(0,v.useEffect)(()=>{var e,t,l;let n=null===(e=null==U?void 0:null===(t=U.param_need)||void 0===t?void 0:t.filter(e=>"temperature"===e.type))||void 0===e?void 0:null===(l=e[0])||void 0===l?void 0:l.value;Z(n||.5)},[U]),(0,v.useEffect)(()=>{if(x&&(null==U?void 0:U.app_code)){var e,t,l,n,a,r;let s=null===(e=null==U?void 0:null===(t=U.param_need)||void 0===t?void 0:t.filter(e=>"resource"===e.type))||void 0===e?void 0:null===(l=e[0])||void 0===l?void 0:l.value,i=null===(n=null==U?void 0:null===(a=U.param_need)||void 0===a?void 0:a.filter(e=>"resource"===e.type))||void 0===n?void 0:null===(r=n[0])||void 0===r?void 0:r.bind_value;i&&R(i),["database","knowledge","plugin","awel_flow"].includes(s)&&!i&&H()}},[U,x,H]);let G=async e=>{var t,l,n;O(""),V.current=new AbortController;let a={chat_mode:x,model_name:N,user_input:e||M,conv_uid:J,temperature:C,app_code:null==U?void 0:U.app_code,...S&&{select_param:S}};if(y&&y.length>0){let e=null==y?void 0:y.filter(e=>"view"===e.role);z.current=e[e.length-1].order+1}let r=[{role:"human",context:e||M,model_name:N,order:z.current,time_stamp:0},{role:"view",context:"",model_name:N,order:z.current,time_stamp:0,thinking:!0}],s=r.length-1;_([...y,...r]),I(!1);try{await (0,c.L)("".concat(null!==(t=g.env.API_BASE_URL)&&void 0!==t?t:"","/api/v1/chat/completions"),{method:"POST",headers:{"Content-Type":"application/json",[o.gp]:null!==(l=(0,i.n5)())&&void 0!==l?l:""},signal:V.current.signal,body:JSON.stringify(a),openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===c.a)return},onclose(){var e;null===(e=V.current)||void 0===e||e.abort(),I(!0),P(!1)},onerror(e){throw Error(e)},onmessage:e=>{let t=e.data;try{t=JSON.parse(t).vis}catch(e){t.replaceAll("\\n","\n")}"[DONE]"===t?(I(!0),P(!1)):(null==t?void 0:t.startsWith("[ERROR]"))?(r[s].context=null==t?void 0:t.replace("[ERROR]",""),r[s].thinking=!1,_([...y,...r]),I(!0),P(!1)):(P(!0),r[s].context=t,r[s].thinking=!1,_([...y,...r]))}})}catch(e){null===(n=V.current)||void 0===n||n.abort(),r[s].context="Sorry, we meet some error, please try again later.",r[s].thinking=!1,_([...r]),I(!0),P(!1)}};return(0,v.useEffect)(()=>{x&&"chat_agent"!==x&&K()},[x,K]),(0,n.jsx)(j.Provider,{value:{model:N,resource:S,setModel:k,setTemperature:Z,setResource:R,temperature:C,appInfo:U,conv_uid:J,scene:x,history:y,scrollViewRef:E,setHistory:_,resourceList:W,order:z,handleChat:G,setCanNewChat:I,ctrl:V,canAbort:A,setCarAbort:P,canNewChat:T,userInput:M,setUserInput:O,getChatHistoryRun:$},children:(0,n.jsx)(u.Z,{size:"large",className:"flex h-screen w-screen justify-center items-center max-h-screen",spinning:L||F||B||X,children:(0,n.jsxs)("div",{className:"flex flex-col h-screen bg-gradient-light dark:bg-gradient-dark p-4 pt-0",children:[(0,n.jsxs)("div",{ref:E,className:"flex flex-col flex-1 overflow-y-auto mb-3",children:[(0,n.jsx)(h.default,{}),(0,n.jsx)(b,{})]}),(null==U?void 0:U.app_code)&&(0,n.jsx)(f.default,{})]})})})}}},function(e){e.O(0,[3662,7034,6106,8674,3166,2837,2168,8163,2648,3791,2913,5278,8791,4330,1049,5030,4041,2398,3799,2684,1300,4567,9773,3457,4035,152,4705,9202,5782,6388,8709,7249,9774,2888,179],function(){return e(e.s=32682)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/dbgpt/app/static/web/_next/static/chunks/pages/mobile/chat/components/Content-fc16c988f460c7d3.js b/dbgpt/app/static/web/_next/static/chunks/pages/mobile/chat/components/Content-4944355050e5f32f.js similarity index 78% rename from dbgpt/app/static/web/_next/static/chunks/pages/mobile/chat/components/Content-fc16c988f460c7d3.js rename to dbgpt/app/static/web/_next/static/chunks/pages/mobile/chat/components/Content-4944355050e5f32f.js index 316bf54b2..55e921950 100644 --- a/dbgpt/app/static/web/_next/static/chunks/pages/mobile/chat/components/Content-fc16c988f460c7d3.js +++ b/dbgpt/app/static/web/_next/static/chunks/pages/mobile/chat/components/Content-4944355050e5f32f.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6980,3913],{79373:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mobile/chat/components/Content",function(){return l(36818)}])},2440:function(e,t,l){"use strict";var n=l(25519);t.Z=()=>{var e;return JSON.parse(null!==(e=localStorage.getItem(n.C9))&&void 0!==e?e:"")}},39718:function(e,t,l){"use strict";var n=l(85893),a=l(19284),r=l(25675),s=l.n(r),i=l(67294);t.Z=(0,i.memo)(e=>{let{width:t,height:l,model:r}=e,o=(0,i.useMemo)(()=>{let e=null==r?void 0:r.replaceAll("-","_").split("_")[0],t=Object.keys(a.Me);for(let l=0;l{let{width:t,height:l,scene:i}=e,o=(0,s.useCallback)(()=>{switch(i){case"chat_knowledge":return a.je;case"chat_with_db_execute":return a.zM;case"chat_excel":return a.DL;case"chat_with_db_qa":case"chat_dba":return a.RD;case"chat_dashboard":return a.In;case"chat_agent":return a.si;case"chat_normal":return a.O7;default:return}},[i]);return(0,n.jsx)(r.Z,{className:"w-".concat(t||7," h-").concat(l||7),component:o()})}},70065:function(e,t,l){"use strict";var n=l(91321);let a=(0,n.Z)({scriptUrl:"//at.alicdn.com/t/a/font_4440880_ljyggdw605.js"});t.Z=a},7332:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(39718),r=l(18102),s=l(96074),i=l(93967),o=l.n(i),c=l(67294),d=l(73913),u=l(32966);t.default=(0,c.memo)(e=>{let{message:t,index:l}=e,{scene:i}=(0,c.useContext)(d.MobileChatContext),{context:x,model_name:m,role:p,thinking:v}=t,h=(0,c.useMemo)(()=>"view"===p,[p]),f=(0,c.useRef)(null),{value:g}=(0,c.useMemo)(()=>{if("string"!=typeof x)return{relations:[],value:"",cachePluginContext:[]};let[e,t]=x.split(" relations:"),l=t?t.split(","):[],n=[],a=0,r=e.replace(/]*>[^<]*<\/dbgpt-view>/gi,e=>{try{var t;let l=e.replaceAll("\n","\\n").replace(/<[^>]*>|<\/[^>]*>/gm,""),r=JSON.parse(l),s="".concat(a,"");return n.push({...r,result:j(null!==(t=r.result)&&void 0!==t?t:"")}),a++,s}catch(t){return console.log(t.message,t),e}});return{relations:l,cachePluginContext:n,value:r}},[x]),j=e=>e.replaceAll("\\n","\n").replace(/]+)>/gi,"
    ").replace(/]+)>/gi,"");return(0,n.jsxs)("div",{className:o()("flex w-full",{"justify-end":!h}),ref:f,children:[!h&&(0,n.jsx)("div",{className:"flex bg-[#0C75FC] text-white p-3 rounded-xl rounded-br-none",children:x}),h&&(0,n.jsxs)("div",{className:"flex max-w-full flex-col flex-wrap bg-white dark:bg-[rgba(255,255,255,0.16)] p-3 rounded-xl rounded-bl-none",children:["string"==typeof x&&"chat_agent"===i&&(0,n.jsx)(r.default,{children:null==g?void 0:g.replace(/]+)>/gi,"
    ").replace(/]+)>/gi,"")}),"string"==typeof x&&"chat_agent"!==i&&(0,n.jsx)(r.default,{children:j(g)}),v&&!x&&(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"flex text-sm text-[#1c2533] dark:text-white",children:"思考中"}),(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsx)("div",{className:"w-1 h-1 rounded-full mx-1 animate-pulse1"}),(0,n.jsx)("div",{className:"w-1 h-1 rounded-full mx-1 animate-pulse2"}),(0,n.jsx)("div",{className:"w-1 h-1 rounded-full mx-1 animate-pulse3"})]})]}),!v&&(0,n.jsx)(s.Z,{className:"my-2"}),(0,n.jsxs)("div",{className:o()("opacity-0 h-0 w-0",{"opacity-100 flex items-center justify-between gap-6 w-auto h-auto":!v}),children:[(0,n.jsx)(u.default,{content:t,index:l,chatDialogRef:f}),"chat_agent"!==i&&(0,n.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,n.jsx)(a.Z,{width:14,height:14,model:m}),(0,n.jsx)("span",{className:"text-xs text-gray-500",children:m})]})]})]})]})})},36818:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(67294),r=l(73913),s=l(7332);t.default=(0,a.memo)(()=>{let{history:e}=(0,a.useContext)(r.MobileChatContext),t=(0,a.useMemo)(()=>e.filter(e=>["view","human"].includes(e.role)),[e]);return(0,n.jsx)("div",{className:"flex flex-col gap-4",children:!!t.length&&t.map((e,t)=>(0,n.jsx)(s.default,{message:e,index:t},e.context+t))})})},5583:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(85265),r=l(66309),s=l(25278),i=l(14726),o=l(67294);t.default=e=>{let{open:t,setFeedbackOpen:l,list:c,feedback:d,loading:u}=e,[x,m]=(0,o.useState)([]),[p,v]=(0,o.useState)("");return(0,n.jsx)(a.Z,{title:"你的反馈助我进步",placement:"bottom",open:t,onClose:()=>l(!1),destroyOnClose:!0,height:"auto",children:(0,n.jsxs)("div",{className:"flex flex-col w-full gap-4",children:[(0,n.jsx)("div",{className:"flex w-full flex-wrap gap-2",children:null==c?void 0:c.map(e=>{let t=x.findIndex(t=>t.reason_type===e.reason_type)>-1;return(0,n.jsx)(r.Z,{className:"text-sm text-[#525964] p-1 px-2 rounded-md cursor-pointer ".concat(t?"border-[#0c75fc] text-[#0c75fc]":""),onClick:()=>{m(t=>{let l=t.findIndex(t=>t.reason_type===e.reason_type);return l>-1?[...t.slice(0,l),...t.slice(l+1)]:[...t,e]})},children:e.reason},e.reason_type)})}),(0,n.jsx)(s.default.TextArea,{placeholder:"描述一下具体问题或更优的答案",className:"h-24 resize-none mb-2",value:p,onChange:e=>v(e.target.value.trim())}),(0,n.jsxs)("div",{className:"flex gap-2 justify-end",children:[(0,n.jsx)(i.ZP,{className:"w-16 h-8",onClick:()=>{l(!1)},children:"取消"}),(0,n.jsx)(i.ZP,{type:"primary",className:"min-w-16 h-8",onClick:async()=>{let e=x.map(e=>e.reason_type);await (null==d?void 0:d({feedback_type:"unlike",reason_types:e,remark:p}))},loading:u,children:"确认"})]})]})})}},32966:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(76212),r=l(65429),s=l(15381),i=l(57132),o=l(65654),c=l(31418),d=l(96074),u=l(14726),x=l(93967),m=l.n(x),p=l(20640),v=l.n(p),h=l(67294),f=l(73913),g=l(5583);t.default=e=>{var t;let{content:l,index:x,chatDialogRef:p}=e,{conv_uid:j,history:b,scene:w}=(0,h.useContext)(f.MobileChatContext),{message:y}=c.Z.useApp(),[_,N]=(0,h.useState)(!1),[k,C]=(0,h.useState)(null==l?void 0:null===(t=l.feedback)||void 0===t?void 0:t.feedback_type),[Z,S]=(0,h.useState)([]),R=async e=>{var t;let l=null==e?void 0:e.replace(/\trelations:.*/g,""),n=v()((null===(t=p.current)||void 0===t?void 0:t.textContent)||l);n?l?y.success("复制成功"):y.warning("内容复制为空"):y.error("复制失败")},{run:E,loading:M}=(0,o.Z)(async e=>await (0,a.Vx)((0,a.zx)({conv_uid:j,message_id:l.order+"",feedback_type:e.feedback_type,reason_types:e.reason_types,remark:e.remark})),{manual:!0,onSuccess:e=>{let[,t]=e;C(null==t?void 0:t.feedback_type),y.success("反馈成功"),N(!1)}}),{run:O}=(0,o.Z)(async()=>await (0,a.Vx)((0,a.Ir)({conv_uid:j,message_id:(null==l?void 0:l.order)+""})),{manual:!0,onSuccess:e=>{let[,t]=e;t&&(C("none"),y.success("操作成功"))}}),{run:A}=(0,o.Z)(async()=>await (0,a.Vx)((0,a.Jr)()),{manual:!0,onSuccess:e=>{let[,t]=e;S(t||[]),t&&N(!0)}}),{run:P,loading:T}=(0,o.Z)(async()=>await (0,a.Vx)((0,a.Ty)({conv_id:j,round_index:0})),{manual:!0,onSuccess:()=>{y.success("操作成功")}});return(0,n.jsxs)("div",{className:"flex items-center text-sm",children:[(0,n.jsxs)("div",{className:"flex gap-3",children:[(0,n.jsx)(r.Z,{className:m()("cursor-pointer",{"text-[#0C75FC]":"like"===k}),onClick:async()=>{if("like"===k){await O();return}await E({feedback_type:"like"})}}),(0,n.jsx)(s.Z,{className:m()("cursor-pointer",{"text-[#0C75FC]":"unlike"===k}),onClick:async()=>{if("unlike"===k){await O();return}await A()}}),(0,n.jsx)(g.default,{open:_,setFeedbackOpen:N,list:Z,feedback:E,loading:M})]}),(0,n.jsx)(d.Z,{type:"vertical"}),(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)(i.Z,{className:"cursor-pointer",onClick:()=>R(l.context)}),b.length-1===x&&"chat_agent"===w&&(0,n.jsx)(u.ZP,{loading:T,size:"small",onClick:async()=>{await P()},className:"text-xs",children:"终止话题"})]})]})}},56397:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(48218),r=l(58638),s=l(31418),i=l(45030),o=l(20640),c=l.n(o),d=l(67294),u=l(73913);t.default=(0,d.memo)(()=>{var e;let{appInfo:t}=(0,d.useContext)(u.MobileChatContext),{message:l}=s.Z.useApp(),[o,x]=(0,d.useState)(0);if(!(null==t?void 0:t.app_code))return null;let m=async()=>{let e=c()("dingtalk://dingtalkclient/page/link?url=".concat(encodeURIComponent(location.href),"&pc_slide=true"));l[e?"success":"error"](e?"复制成功":"复制失败")};return o>6&&l.info(JSON.stringify(window.navigator.userAgent),2,()=>{x(0)}),(0,n.jsxs)("header",{className:"flex w-full items-center justify-between bg-[rgba(255,255,255,0.9)] border dark:bg-black dark:border-[rgba(255,255,255,0.6)] rounded-xl mx-auto px-4 py-2 mb-4 sticky top-4 z-50 mt-4 shadow-md",children:[(0,n.jsxs)("div",{className:"flex gap-2 items-center",onClick:()=>x(o+1),children:[(0,n.jsx)(a.Z,{scene:(null==t?void 0:null===(e=t.team_context)||void 0===e?void 0:e.chat_scene)||"chat_agent",width:8,height:8}),(0,n.jsxs)("div",{className:"flex flex-col ml-2",children:[(0,n.jsx)(i.Z.Text,{className:"text-md font-bold line-clamp-2",children:null==t?void 0:t.app_name}),(0,n.jsx)(i.Z.Text,{className:"text-sm line-clamp-2",children:null==t?void 0:t.app_describe})]})]}),(0,n.jsx)("div",{onClick:m,className:"flex items-center justify-center w-10 h-10 bg-[#ffffff99] dark:bg-[rgba(255,255,255,0.2)] border border-white dark:border-[rgba(255,255,255,0.2)] rounded-[50%] cursor-pointer",children:(0,n.jsx)(r.Z,{className:"text-lg"})})]})})},74638:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(76212),r=l(62418),s=l(25519),i=l(30159),o=l(87740),c=l(50888),d=l(52645),u=l(27496),x=l(1375),m=l(65654),p=l(66309),v=l(55241),h=l(74330),f=l(25278),g=l(14726),j=l(93967),b=l.n(j),w=l(39332),y=l(67294),_=l(73913),N=l(7001),k=l(73749),C=l(97109),Z=l(83454);let S=["magenta","orange","geekblue","purple","cyan","green"];t.default=()=>{var e,t;let l=(0,w.useSearchParams)(),j=null!==(t=null==l?void 0:l.get("ques"))&&void 0!==t?t:"",{history:R,model:E,scene:M,temperature:O,resource:A,conv_uid:P,appInfo:T,scrollViewRef:I,order:V,userInput:z,ctrl:D,canAbort:J,canNewChat:$,setHistory:L,setCanNewChat:U,setCarAbort:q,setUserInput:F}=(0,y.useContext)(_.MobileChatContext),[H,W]=(0,y.useState)(!1),[B,K]=(0,y.useState)(!1),X=async e=>{var t,l,n;F(""),D.current=new AbortController;let a={chat_mode:M,model_name:E,user_input:e||z,conv_uid:P,temperature:O,app_code:null==T?void 0:T.app_code,...A&&{select_param:JSON.stringify(A)}};if(R&&R.length>0){let e=null==R?void 0:R.filter(e=>"view"===e.role);V.current=e[e.length-1].order+1}let i=[{role:"human",context:e||z,model_name:E,order:V.current,time_stamp:0},{role:"view",context:"",model_name:E,order:V.current,time_stamp:0,thinking:!0}],o=i.length-1;L([...R,...i]),U(!1);try{await (0,x.L)("".concat(null!==(t=Z.env.API_BASE_URL)&&void 0!==t?t:"","/api/v1/chat/completions"),{method:"POST",headers:{"Content-Type":"application/json",[s.gp]:null!==(l=(0,r.n5)())&&void 0!==l?l:""},signal:D.current.signal,body:JSON.stringify(a),openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===x.a)return},onclose(){var e;null===(e=D.current)||void 0===e||e.abort(),U(!0),q(!1)},onerror(e){throw Error(e)},onmessage:e=>{let t=e.data;try{t=JSON.parse(t).vis}catch(e){t.replaceAll("\\n","\n")}"[DONE]"===t?(U(!0),q(!1)):(null==t?void 0:t.startsWith("[ERROR]"))?(i[o].context=null==t?void 0:t.replace("[ERROR]",""),i[o].thinking=!1,L([...R,...i]),U(!0),q(!1)):(q(!0),i[o].context=t,i[o].thinking=!1,L([...R,...i]))}})}catch(e){null===(n=D.current)||void 0===n||n.abort(),i[o].context="Sorry, we meet some error, please try again later.",i[o].thinking=!1,L([...i]),U(!0),q(!1)}},G=async()=>{z.trim()&&$&&await X()};(0,y.useEffect)(()=>{var e,t;null===(e=I.current)||void 0===e||e.scrollTo({top:null===(t=I.current)||void 0===t?void 0:t.scrollHeight,behavior:"auto"})},[R,I]);let Q=(0,y.useMemo)(()=>{if(!T)return[];let{param_need:e=[]}=T;return null==e?void 0:e.map(e=>e.type)},[T]),Y=(0,y.useMemo)(()=>{var e;return 0===R.length&&T&&!!(null==T?void 0:null===(e=T.recommend_questions)||void 0===e?void 0:e.length)},[R,T]),{run:ee,loading:et}=(0,m.Z)(async()=>await (0,a.Vx)((0,a.zR)(P)),{manual:!0,onSuccess:()=>{L([])}});return(0,y.useEffect)(()=>{j&&E&&P&&T&&X(j)},[T,P,E,j]),(0,n.jsxs)("div",{className:"flex flex-col",children:[Y&&(0,n.jsx)("ul",{children:null==T?void 0:null===(e=T.recommend_questions)||void 0===e?void 0:e.map((e,t)=>(0,n.jsx)("li",{className:"mb-3",children:(0,n.jsx)(p.Z,{color:S[t],className:"p-2 rounded-xl",onClick:async()=>{X(e.question)},children:e.question})},e.id))}),(0,n.jsxs)("div",{className:"flex items-center justify-between gap-1",children:[(0,n.jsxs)("div",{className:"flex gap-2 mb-1 w-full overflow-x-auto",children:[(null==Q?void 0:Q.includes("model"))&&(0,n.jsx)(N.default,{}),(null==Q?void 0:Q.includes("resource"))&&(0,n.jsx)(k.default,{}),(null==Q?void 0:Q.includes("temperature"))&&(0,n.jsx)(C.default,{})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between text-lg font-bold",children:[(0,n.jsx)(v.Z,{content:"暂停回复",trigger:["hover"],children:(0,n.jsx)(i.Z,{className:b()("p-2 cursor-pointer",{"text-[#0c75fc]":J,"text-gray-400":!J}),onClick:()=>{var e;J&&(null===(e=D.current)||void 0===e||e.abort(),setTimeout(()=>{q(!1),U(!0)},100))}})}),(0,n.jsx)(v.Z,{content:"再来一次",trigger:["hover"],children:(0,n.jsx)(o.Z,{className:b()("p-2 cursor-pointer",{"text-gray-400":!R.length||!$}),onClick:()=>{var e,t;if(!$||0===R.length)return;let l=null===(e=null===(t=R.filter(e=>"human"===e.role))||void 0===t?void 0:t.slice(-1))||void 0===e?void 0:e[0];X((null==l?void 0:l.context)||"")}})}),et?(0,n.jsx)(h.Z,{spinning:et,indicator:(0,n.jsx)(c.Z,{style:{fontSize:18},spin:!0}),className:"p-2"}):(0,n.jsx)(v.Z,{content:"清除历史",trigger:["hover"],children:(0,n.jsx)(d.Z,{className:b()("p-2 cursor-pointer",{"text-gray-400":!R.length||!$}),onClick:()=>{$&&ee()}})})]})]}),(0,n.jsxs)("div",{className:b()("flex py-2 px-3 items-center justify-between bg-white dark:bg-[#242733] dark:border-[#6f7f95] rounded-xl border",{"border-[#0c75fc] dark:border-[rgba(12,117,252,0.8)]":H}),children:[(0,n.jsx)(f.default.TextArea,{placeholder:"可以问我任何问题",className:"w-full resize-none border-0 p-0 focus:shadow-none",value:z,autoSize:{minRows:1},onKeyDown:e=>{if("Enter"===e.key&&!e.shiftKey){if(B){e.preventDefault();return}z.trim()&&(e.preventDefault(),G())}},onChange:e=>{F(e.target.value)},onFocus:()=>{W(!0)},onBlur:()=>W(!1),onCompositionStartCapture:()=>{K(!0)},onCompositionEndCapture:()=>{setTimeout(()=>{K(!1)},0)}}),(0,n.jsx)(g.ZP,{type:"primary",className:b()("flex items-center justify-center rounded-lg bg-button-gradient border-0 ml-2",{"opacity-40 cursor-not-allowed":!z.trim()||!$}),onClick:G,children:$?(0,n.jsx)(u.Z,{}):(0,n.jsx)(h.Z,{indicator:(0,n.jsx)(c.Z,{className:"text-white"})})})]})]})}},7001:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(41468),r=l(39718),s=l(94668),i=l(85418),o=l(55241),c=l(67294),d=l(73913);t.default=()=>{let{modelList:e}=(0,c.useContext)(a.p),{model:t,setModel:l}=(0,c.useContext)(d.MobileChatContext),u=(0,c.useMemo)(()=>e.length>0?e.map(e=>({label:(0,n.jsxs)("div",{className:"flex items-center gap-2",onClick:()=>{l(e)},children:[(0,n.jsx)(r.Z,{width:14,height:14,model:e}),(0,n.jsx)("span",{className:"text-xs",children:e})]}),key:e})):[],[e,l]);return(0,n.jsx)(i.Z,{menu:{items:u},placement:"top",trigger:["click"],children:(0,n.jsx)(o.Z,{content:t,children:(0,n.jsxs)("div",{className:"flex items-center gap-1 border rounded-xl bg-white dark:bg-black p-2 flex-shrink-0",children:[(0,n.jsx)(r.Z,{width:16,height:16,model:t}),(0,n.jsx)("span",{className:"text-xs font-medium line-clamp-1",style:{maxWidth:96},children:t}),(0,n.jsx)(s.Z,{rotate:90})]})})})}},46568:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(25675),r=l.n(a),s=l(67294);t.default=(0,s.memo)(e=>{let{width:t,height:l,src:a,label:s}=e;return(0,n.jsx)(r(),{width:t||14,height:l||14,src:a,alt:s||"db-icon",priority:!0})})},73749:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(76212),r=l(62418),s=l(50888),i=l(94668),o=l(83266),c=l(65654),d=l(74330),u=l(23799),x=l(85418),m=l(67294),p=l(73913),v=l(46568);t.default=()=>{let{appInfo:e,resourceList:t,scene:l,model:h,conv_uid:f,getChatHistoryRun:g,setResource:j,resource:b}=(0,m.useContext)(p.MobileChatContext),[w,y]=(0,m.useState)(null),_=(0,m.useMemo)(()=>{var t,l,n;return null===(t=null==e?void 0:null===(l=e.param_need)||void 0===l?void 0:l.filter(e=>"resource"===e.type))||void 0===t?void 0:null===(n=t[0])||void 0===n?void 0:n.value},[e]),N=(0,m.useMemo)(()=>t&&t.length>0?t.map(e=>({label:(0,n.jsxs)("div",{className:"flex items-center gap-2",onClick:()=>{y(e),j(e.space_id||e.param)},children:[(0,n.jsx)(v.default,{width:14,height:14,src:r.S$[e.type].icon,label:r.S$[e.type].label}),(0,n.jsx)("span",{className:"text-xs",children:e.param})]}),key:e.space_id||e.param})):[],[t,j]),{run:k,loading:C}=(0,c.Z)(async e=>{let[,t]=await (0,a.Vx)((0,a.qn)({convUid:f,chatMode:l,data:e,model:h,config:{timeout:36e5}}));return j(t),t},{manual:!0,onSuccess:async()=>{await g()}}),Z=async e=>{let t=new FormData;t.append("doc_file",null==e?void 0:e.file),await k(t)},S=(0,m.useMemo)(()=>C?(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)(d.Z,{size:"small",indicator:(0,n.jsx)(s.Z,{spin:!0})}),(0,n.jsx)("span",{className:"text-xs",children:"上传中"})]}):b?(0,n.jsxs)("div",{className:"flex gap-1",children:[(0,n.jsx)("span",{className:"text-xs",children:b.file_name}),(0,n.jsx)(i.Z,{rotate:90})]}):(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)(o.Z,{className:"text-base"}),(0,n.jsx)("span",{className:"text-xs",children:"上传文件"})]}),[C,b]);return(0,n.jsx)(n.Fragment,{children:(()=>{switch(_){case"excel_file":case"text_file":case"image_file":return(0,n.jsx)("div",{className:"flex items-center justify-center gap-1 border rounded-xl bg-white dark:bg-black px-2 flex-shrink-0",children:(0,n.jsx)(u.default,{name:"file",accept:".xlsx,.xls",maxCount:1,showUploadList:!1,beforeUpload:()=>!1,onChange:Z,className:"flex h-full w-full items-center justify-center",children:S})});case"database":case"knowledge":case"plugin":case"awel_flow":var e,l,a,s,o;if(!(null==t?void 0:t.length))return null;return(0,n.jsx)(x.Z,{menu:{items:N},placement:"top",trigger:["click"],children:(0,n.jsxs)("div",{className:"flex items-center gap-1 border rounded-xl bg-white dark:bg-black p-2 flex-shrink-0",children:[(0,n.jsx)(v.default,{width:14,height:14,src:null===(e=r.S$[(null==w?void 0:w.type)||(null==t?void 0:null===(l=t[0])||void 0===l?void 0:l.type)])||void 0===e?void 0:e.icon,label:null===(a=r.S$[(null==w?void 0:w.type)||(null==t?void 0:null===(s=t[0])||void 0===s?void 0:s.type)])||void 0===a?void 0:a.label}),(0,n.jsx)("span",{className:"text-xs font-medium",children:(null==w?void 0:w.param)||(null==t?void 0:null===(o=t[0])||void 0===o?void 0:o.param)}),(0,n.jsx)(i.Z,{rotate:90})]})})}})()})}},97109:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(70065),r=l(85418),s=l(30568),i=l(67294),o=l(73913);t.default=()=>{let{temperature:e,setTemperature:t}=(0,i.useContext)(o.MobileChatContext),l=e=>{isNaN(e)||t(e)};return(0,n.jsx)(r.Z,{trigger:["click"],dropdownRender:()=>(0,n.jsx)("div",{className:"flex h-28 bg-white dark:bg-[rgba(255,255,255,0.5)] items-center justify-center rounded-xl py-3",children:(0,n.jsx)(s.Z,{defaultValue:.5,max:1,min:0,step:.1,vertical:!0,onChange:l,value:e})}),placement:"top",children:(0,n.jsxs)("div",{className:"flex items-center justify-between border rounded-xl bg-white dark:bg-black w-14 p-2 flex-shrink-0",children:[(0,n.jsx)(a.Z,{type:"icon-icons-temperature",className:"text-sm"}),(0,n.jsx)("span",{className:"text-xs font-medium",children:e})]})})}},73913:function(e,t,l){"use strict";l.r(t),l.d(t,{MobileChatContext:function(){return b}});var n=l(85893),a=l(41468),r=l(76212),s=l(2440),i=l(62418),o=l(25519),c=l(1375),d=l(65654),u=l(74330),x=l(5152),m=l.n(x),p=l(39332),v=l(67294),h=l(56397),f=l(74638),g=l(83454);let j=m()(()=>Promise.all([l.e(3662),l.e(7034),l.e(8674),l.e(930),l.e(3166),l.e(2837),l.e(2168),l.e(8163),l.e(7126),l.e(4041),l.e(2398),l.e(1300),l.e(4567),l.e(9773),l.e(3457),l.e(4455),l.e(5110),l.e(4705),l.e(9202),l.e(5782),l.e(2783),l.e(8709),l.e(9256),l.e(9870)]).then(l.bind(l,36818)),{loadableGenerated:{webpack:()=>[36818]},ssr:!1}),b=(0,v.createContext)({model:"",temperature:.5,resource:null,setModel:()=>{},setTemperature:()=>{},setResource:()=>{},scene:"",history:[],setHistory:()=>{},scrollViewRef:{current:null},appInfo:{},conv_uid:"",resourceList:[],order:{current:1},handleChat:()=>Promise.resolve(),canAbort:!1,setCarAbort:()=>{},canNewChat:!1,setCanNewChat:()=>{},ctrl:{current:void 0},userInput:"",setUserInput:()=>{},getChatHistoryRun:()=>{}});t.default=()=>{var e,t;let l=(0,p.useSearchParams)(),x=null!==(e=null==l?void 0:l.get("chat_scene"))&&void 0!==e?e:"",m=null!==(t=null==l?void 0:l.get("app_code"))&&void 0!==t?t:"",{modelList:w}=(0,v.useContext)(a.p),[y,_]=(0,v.useState)([]),[N,k]=(0,v.useState)(""),[C,Z]=(0,v.useState)(.5),[S,R]=(0,v.useState)(null),E=(0,v.useRef)(null),[M,O]=(0,v.useState)(""),[A,P]=(0,v.useState)(!1),[T,I]=(0,v.useState)(!0),V=(0,v.useRef)(),z=(0,v.useRef)(1),D=(0,s.Z)(),J=(0,v.useMemo)(()=>"".concat(null==D?void 0:D.user_no,"_").concat(m),[m,D]),{run:$,loading:L}=(0,d.Z)(async()=>await (0,r.Vx)((0,r.$i)("".concat(null==D?void 0:D.user_no,"_").concat(m))),{manual:!0,onSuccess:e=>{let[,t]=e,l=null==t?void 0:t.filter(e=>"view"===e.role);l&&l.length>0&&(z.current=l[l.length-1].order+1),_(t||[])}}),{data:U,run:q,loading:F}=(0,d.Z)(async e=>{let[,t]=await (0,r.Vx)((0,r.BN)(e));return null!=t?t:{}},{manual:!0}),{run:H,data:W,loading:B}=(0,d.Z)(async()=>{var e,t;let[,l]=await (0,r.Vx)((0,r.vD)(x));return R((null==l?void 0:null===(e=l[0])||void 0===e?void 0:e.space_id)||(null==l?void 0:null===(t=l[0])||void 0===t?void 0:t.param)),null!=l?l:[]},{manual:!0}),{run:K,loading:X}=(0,d.Z)(async()=>{let[,e]=await (0,r.Vx)((0,r.iP)());return null!=e?e:[]},{manual:!0,onSuccess:e=>{var t;let l=null===(t=null==e?void 0:e.filter(e=>e.conv_uid===J))||void 0===t?void 0:t[0];(null==l?void 0:l.select_param)&&R(JSON.parse(null==l?void 0:l.select_param))}});(0,v.useEffect)(()=>{x&&m&&w.length&&q({chat_scene:x,app_code:m})},[m,x,q,w]),(0,v.useEffect)(()=>{m&&$()},[m]),(0,v.useEffect)(()=>{if(w.length>0){var e,t,l;let n=null===(e=null==U?void 0:null===(t=U.param_need)||void 0===t?void 0:t.filter(e=>"model"===e.type))||void 0===e?void 0:null===(l=e[0])||void 0===l?void 0:l.value;k(n||w[0])}},[w,U]),(0,v.useEffect)(()=>{var e,t,l;let n=null===(e=null==U?void 0:null===(t=U.param_need)||void 0===t?void 0:t.filter(e=>"temperature"===e.type))||void 0===e?void 0:null===(l=e[0])||void 0===l?void 0:l.value;Z(n||.5)},[U]),(0,v.useEffect)(()=>{if(x&&(null==U?void 0:U.app_code)){var e,t,l,n,a,r;let s=null===(e=null==U?void 0:null===(t=U.param_need)||void 0===t?void 0:t.filter(e=>"resource"===e.type))||void 0===e?void 0:null===(l=e[0])||void 0===l?void 0:l.value,i=null===(n=null==U?void 0:null===(a=U.param_need)||void 0===a?void 0:a.filter(e=>"resource"===e.type))||void 0===n?void 0:null===(r=n[0])||void 0===r?void 0:r.bind_value;i&&R(i),["database","knowledge","plugin","awel_flow"].includes(s)&&!i&&H()}},[U,x,H]);let G=async e=>{var t,l,n;O(""),V.current=new AbortController;let a={chat_mode:x,model_name:N,user_input:e||M,conv_uid:J,temperature:C,app_code:null==U?void 0:U.app_code,...S&&{select_param:S}};if(y&&y.length>0){let e=null==y?void 0:y.filter(e=>"view"===e.role);z.current=e[e.length-1].order+1}let r=[{role:"human",context:e||M,model_name:N,order:z.current,time_stamp:0},{role:"view",context:"",model_name:N,order:z.current,time_stamp:0,thinking:!0}],s=r.length-1;_([...y,...r]),I(!1);try{await (0,c.L)("".concat(null!==(t=g.env.API_BASE_URL)&&void 0!==t?t:"","/api/v1/chat/completions"),{method:"POST",headers:{"Content-Type":"application/json",[o.gp]:null!==(l=(0,i.n5)())&&void 0!==l?l:""},signal:V.current.signal,body:JSON.stringify(a),openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===c.a)return},onclose(){var e;null===(e=V.current)||void 0===e||e.abort(),I(!0),P(!1)},onerror(e){throw Error(e)},onmessage:e=>{let t=e.data;try{t=JSON.parse(t).vis}catch(e){t.replaceAll("\\n","\n")}"[DONE]"===t?(I(!0),P(!1)):(null==t?void 0:t.startsWith("[ERROR]"))?(r[s].context=null==t?void 0:t.replace("[ERROR]",""),r[s].thinking=!1,_([...y,...r]),I(!0),P(!1)):(P(!0),r[s].context=t,r[s].thinking=!1,_([...y,...r]))}})}catch(e){null===(n=V.current)||void 0===n||n.abort(),r[s].context="Sorry, we meet some error, please try again later.",r[s].thinking=!1,_([...r]),I(!0),P(!1)}};return(0,v.useEffect)(()=>{x&&"chat_agent"!==x&&K()},[x,K]),(0,n.jsx)(b.Provider,{value:{model:N,resource:S,setModel:k,setTemperature:Z,setResource:R,temperature:C,appInfo:U,conv_uid:J,scene:x,history:y,scrollViewRef:E,setHistory:_,resourceList:W,order:z,handleChat:G,setCanNewChat:I,ctrl:V,canAbort:A,setCarAbort:P,canNewChat:T,userInput:M,setUserInput:O,getChatHistoryRun:$},children:(0,n.jsx)(u.Z,{size:"large",className:"flex h-screen w-screen justify-center items-center max-h-screen",spinning:L||F||B||X,children:(0,n.jsxs)("div",{className:"flex flex-col h-screen bg-gradient-light dark:bg-gradient-dark p-4 pt-0",children:[(0,n.jsxs)("div",{ref:E,className:"flex flex-col flex-1 overflow-y-auto mb-3",children:[(0,n.jsx)(h.default,{}),(0,n.jsx)(j,{})]}),(null==U?void 0:U.app_code)&&(0,n.jsx)(f.default,{})]})})})}}},function(e){e.O(0,[3662,7034,8674,930,3166,2837,2168,8163,7126,2648,3791,2913,5278,8791,4330,1049,5030,4041,2398,3799,2684,1300,4567,9773,3457,4455,5110,4705,9202,5782,464,8709,9256,9774,2888,179],function(){return e(e.s=79373)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6980,3913],{79373:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mobile/chat/components/Content",function(){return l(36818)}])},2440:function(e,t,l){"use strict";var n=l(25519);t.Z=()=>{var e;return JSON.parse(null!==(e=localStorage.getItem(n.C9))&&void 0!==e?e:"")}},39718:function(e,t,l){"use strict";var n=l(85893),a=l(19284),r=l(25675),s=l.n(r),i=l(67294);t.Z=(0,i.memo)(e=>{let{width:t,height:l,model:r}=e,o=(0,i.useMemo)(()=>{let e=null==r?void 0:r.replaceAll("-","_").split("_")[0],t=Object.keys(a.Me);for(let l=0;l{let{width:t,height:l,scene:i}=e,o=(0,s.useCallback)(()=>{switch(i){case"chat_knowledge":return a.je;case"chat_with_db_execute":return a.zM;case"chat_excel":return a.DL;case"chat_with_db_qa":case"chat_dba":return a.RD;case"chat_dashboard":return a.In;case"chat_agent":return a.si;case"chat_normal":return a.O7;default:return}},[i]);return(0,n.jsx)(r.Z,{className:"w-".concat(t||7," h-").concat(l||7),component:o()})}},70065:function(e,t,l){"use strict";var n=l(91321);let a=(0,n.Z)({scriptUrl:"//at.alicdn.com/t/a/font_4440880_ljyggdw605.js"});t.Z=a},7332:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(39718),r=l(18102),s=l(96074),i=l(93967),o=l.n(i),c=l(67294),d=l(73913),u=l(32966);t.default=(0,c.memo)(e=>{let{message:t,index:l}=e,{scene:i}=(0,c.useContext)(d.MobileChatContext),{context:x,model_name:m,role:p,thinking:v}=t,h=(0,c.useMemo)(()=>"view"===p,[p]),f=(0,c.useRef)(null),{value:g}=(0,c.useMemo)(()=>{if("string"!=typeof x)return{relations:[],value:"",cachePluginContext:[]};let[e,t]=x.split(" relations:"),l=t?t.split(","):[],n=[],a=0,r=e.replace(/]*>[^<]*<\/dbgpt-view>/gi,e=>{try{var t;let l=e.replaceAll("\n","\\n").replace(/<[^>]*>|<\/[^>]*>/gm,""),r=JSON.parse(l),s="".concat(a,"");return n.push({...r,result:j(null!==(t=r.result)&&void 0!==t?t:"")}),a++,s}catch(t){return console.log(t.message,t),e}});return{relations:l,cachePluginContext:n,value:r}},[x]),j=e=>e.replaceAll("\\n","\n").replace(/]+)>/gi,"
    ").replace(/]+)>/gi,"");return(0,n.jsxs)("div",{className:o()("flex w-full",{"justify-end":!h}),ref:f,children:[!h&&(0,n.jsx)("div",{className:"flex bg-[#0C75FC] text-white p-3 rounded-xl rounded-br-none",children:x}),h&&(0,n.jsxs)("div",{className:"flex max-w-full flex-col flex-wrap bg-white dark:bg-[rgba(255,255,255,0.16)] p-3 rounded-xl rounded-bl-none",children:["string"==typeof x&&"chat_agent"===i&&(0,n.jsx)(r.default,{children:null==g?void 0:g.replace(/]+)>/gi,"
    ").replace(/]+)>/gi,"")}),"string"==typeof x&&"chat_agent"!==i&&(0,n.jsx)(r.default,{children:j(g)}),v&&!x&&(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"flex text-sm text-[#1c2533] dark:text-white",children:"思考中"}),(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsx)("div",{className:"w-1 h-1 rounded-full mx-1 animate-pulse1"}),(0,n.jsx)("div",{className:"w-1 h-1 rounded-full mx-1 animate-pulse2"}),(0,n.jsx)("div",{className:"w-1 h-1 rounded-full mx-1 animate-pulse3"})]})]}),!v&&(0,n.jsx)(s.Z,{className:"my-2"}),(0,n.jsxs)("div",{className:o()("opacity-0 h-0 w-0",{"opacity-100 flex items-center justify-between gap-6 w-auto h-auto":!v}),children:[(0,n.jsx)(u.default,{content:t,index:l,chatDialogRef:f}),"chat_agent"!==i&&(0,n.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,n.jsx)(a.Z,{width:14,height:14,model:m}),(0,n.jsx)("span",{className:"text-xs text-gray-500",children:m})]})]})]})]})})},36818:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(67294),r=l(73913),s=l(7332);t.default=(0,a.memo)(()=>{let{history:e}=(0,a.useContext)(r.MobileChatContext),t=(0,a.useMemo)(()=>e.filter(e=>["view","human"].includes(e.role)),[e]);return(0,n.jsx)("div",{className:"flex flex-col gap-4",children:!!t.length&&t.map((e,t)=>(0,n.jsx)(s.default,{message:e,index:t},e.context+t))})})},5583:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(85265),r=l(66309),s=l(25278),i=l(14726),o=l(67294);t.default=e=>{let{open:t,setFeedbackOpen:l,list:c,feedback:d,loading:u}=e,[x,m]=(0,o.useState)([]),[p,v]=(0,o.useState)("");return(0,n.jsx)(a.Z,{title:"你的反馈助我进步",placement:"bottom",open:t,onClose:()=>l(!1),destroyOnClose:!0,height:"auto",children:(0,n.jsxs)("div",{className:"flex flex-col w-full gap-4",children:[(0,n.jsx)("div",{className:"flex w-full flex-wrap gap-2",children:null==c?void 0:c.map(e=>{let t=x.findIndex(t=>t.reason_type===e.reason_type)>-1;return(0,n.jsx)(r.Z,{className:"text-sm text-[#525964] p-1 px-2 rounded-md cursor-pointer ".concat(t?"border-[#0c75fc] text-[#0c75fc]":""),onClick:()=>{m(t=>{let l=t.findIndex(t=>t.reason_type===e.reason_type);return l>-1?[...t.slice(0,l),...t.slice(l+1)]:[...t,e]})},children:e.reason},e.reason_type)})}),(0,n.jsx)(s.default.TextArea,{placeholder:"描述一下具体问题或更优的答案",className:"h-24 resize-none mb-2",value:p,onChange:e=>v(e.target.value.trim())}),(0,n.jsxs)("div",{className:"flex gap-2 justify-end",children:[(0,n.jsx)(i.ZP,{className:"w-16 h-8",onClick:()=>{l(!1)},children:"取消"}),(0,n.jsx)(i.ZP,{type:"primary",className:"min-w-16 h-8",onClick:async()=>{let e=x.map(e=>e.reason_type);await (null==d?void 0:d({feedback_type:"unlike",reason_types:e,remark:p}))},loading:u,children:"确认"})]})]})})}},32966:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(76212),r=l(65429),s=l(15381),i=l(57132),o=l(65654),c=l(31418),d=l(96074),u=l(14726),x=l(93967),m=l.n(x),p=l(20640),v=l.n(p),h=l(67294),f=l(73913),g=l(5583);t.default=e=>{var t;let{content:l,index:x,chatDialogRef:p}=e,{conv_uid:j,history:b,scene:w}=(0,h.useContext)(f.MobileChatContext),{message:y}=c.Z.useApp(),[_,N]=(0,h.useState)(!1),[k,C]=(0,h.useState)(null==l?void 0:null===(t=l.feedback)||void 0===t?void 0:t.feedback_type),[Z,S]=(0,h.useState)([]),R=async e=>{var t;let l=null==e?void 0:e.replace(/\trelations:.*/g,""),n=v()((null===(t=p.current)||void 0===t?void 0:t.textContent)||l);n?l?y.success("复制成功"):y.warning("内容复制为空"):y.error("复制失败")},{run:E,loading:M}=(0,o.Z)(async e=>await (0,a.Vx)((0,a.zx)({conv_uid:j,message_id:l.order+"",feedback_type:e.feedback_type,reason_types:e.reason_types,remark:e.remark})),{manual:!0,onSuccess:e=>{let[,t]=e;C(null==t?void 0:t.feedback_type),y.success("反馈成功"),N(!1)}}),{run:O}=(0,o.Z)(async()=>await (0,a.Vx)((0,a.Ir)({conv_uid:j,message_id:(null==l?void 0:l.order)+""})),{manual:!0,onSuccess:e=>{let[,t]=e;t&&(C("none"),y.success("操作成功"))}}),{run:A}=(0,o.Z)(async()=>await (0,a.Vx)((0,a.Jr)()),{manual:!0,onSuccess:e=>{let[,t]=e;S(t||[]),t&&N(!0)}}),{run:P,loading:T}=(0,o.Z)(async()=>await (0,a.Vx)((0,a.Ty)({conv_id:j,round_index:0})),{manual:!0,onSuccess:()=>{y.success("操作成功")}});return(0,n.jsxs)("div",{className:"flex items-center text-sm",children:[(0,n.jsxs)("div",{className:"flex gap-3",children:[(0,n.jsx)(r.Z,{className:m()("cursor-pointer",{"text-[#0C75FC]":"like"===k}),onClick:async()=>{if("like"===k){await O();return}await E({feedback_type:"like"})}}),(0,n.jsx)(s.Z,{className:m()("cursor-pointer",{"text-[#0C75FC]":"unlike"===k}),onClick:async()=>{if("unlike"===k){await O();return}await A()}}),(0,n.jsx)(g.default,{open:_,setFeedbackOpen:N,list:Z,feedback:E,loading:M})]}),(0,n.jsx)(d.Z,{type:"vertical"}),(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)(i.Z,{className:"cursor-pointer",onClick:()=>R(l.context)}),b.length-1===x&&"chat_agent"===w&&(0,n.jsx)(u.ZP,{loading:T,size:"small",onClick:async()=>{await P()},className:"text-xs",children:"终止话题"})]})]})}},56397:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(48218),r=l(58638),s=l(31418),i=l(45030),o=l(20640),c=l.n(o),d=l(67294),u=l(73913);t.default=(0,d.memo)(()=>{var e;let{appInfo:t}=(0,d.useContext)(u.MobileChatContext),{message:l}=s.Z.useApp(),[o,x]=(0,d.useState)(0);if(!(null==t?void 0:t.app_code))return null;let m=async()=>{let e=c()("dingtalk://dingtalkclient/page/link?url=".concat(encodeURIComponent(location.href),"&pc_slide=true"));l[e?"success":"error"](e?"复制成功":"复制失败")};return o>6&&l.info(JSON.stringify(window.navigator.userAgent),2,()=>{x(0)}),(0,n.jsxs)("header",{className:"flex w-full items-center justify-between bg-[rgba(255,255,255,0.9)] border dark:bg-black dark:border-[rgba(255,255,255,0.6)] rounded-xl mx-auto px-4 py-2 mb-4 sticky top-4 z-50 mt-4 shadow-md",children:[(0,n.jsxs)("div",{className:"flex gap-2 items-center",onClick:()=>x(o+1),children:[(0,n.jsx)(a.Z,{scene:(null==t?void 0:null===(e=t.team_context)||void 0===e?void 0:e.chat_scene)||"chat_agent",width:8,height:8}),(0,n.jsxs)("div",{className:"flex flex-col ml-2",children:[(0,n.jsx)(i.Z.Text,{className:"text-md font-bold line-clamp-2",children:null==t?void 0:t.app_name}),(0,n.jsx)(i.Z.Text,{className:"text-sm line-clamp-2",children:null==t?void 0:t.app_describe})]})]}),(0,n.jsx)("div",{onClick:m,className:"flex items-center justify-center w-10 h-10 bg-[#ffffff99] dark:bg-[rgba(255,255,255,0.2)] border border-white dark:border-[rgba(255,255,255,0.2)] rounded-[50%] cursor-pointer",children:(0,n.jsx)(r.Z,{className:"text-lg"})})]})})},74638:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(76212),r=l(62418),s=l(25519),i=l(30159),o=l(87740),c=l(50888),d=l(52645),u=l(27496),x=l(1375),m=l(65654),p=l(66309),v=l(55241),h=l(74330),f=l(25278),g=l(14726),j=l(93967),b=l.n(j),w=l(39332),y=l(67294),_=l(73913),N=l(7001),k=l(73749),C=l(97109),Z=l(83454);let S=["magenta","orange","geekblue","purple","cyan","green"];t.default=()=>{var e,t;let l=(0,w.useSearchParams)(),j=null!==(t=null==l?void 0:l.get("ques"))&&void 0!==t?t:"",{history:R,model:E,scene:M,temperature:O,resource:A,conv_uid:P,appInfo:T,scrollViewRef:I,order:V,userInput:z,ctrl:D,canAbort:J,canNewChat:$,setHistory:L,setCanNewChat:U,setCarAbort:q,setUserInput:F}=(0,y.useContext)(_.MobileChatContext),[H,W]=(0,y.useState)(!1),[B,K]=(0,y.useState)(!1),X=async e=>{var t,l,n;F(""),D.current=new AbortController;let a={chat_mode:M,model_name:E,user_input:e||z,conv_uid:P,temperature:O,app_code:null==T?void 0:T.app_code,...A&&{select_param:JSON.stringify(A)}};if(R&&R.length>0){let e=null==R?void 0:R.filter(e=>"view"===e.role);V.current=e[e.length-1].order+1}let i=[{role:"human",context:e||z,model_name:E,order:V.current,time_stamp:0},{role:"view",context:"",model_name:E,order:V.current,time_stamp:0,thinking:!0}],o=i.length-1;L([...R,...i]),U(!1);try{await (0,x.L)("".concat(null!==(t=Z.env.API_BASE_URL)&&void 0!==t?t:"","/api/v1/chat/completions"),{method:"POST",headers:{"Content-Type":"application/json",[s.gp]:null!==(l=(0,r.n5)())&&void 0!==l?l:""},signal:D.current.signal,body:JSON.stringify(a),openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===x.a)return},onclose(){var e;null===(e=D.current)||void 0===e||e.abort(),U(!0),q(!1)},onerror(e){throw Error(e)},onmessage:e=>{let t=e.data;try{t=JSON.parse(t).vis}catch(e){t.replaceAll("\\n","\n")}"[DONE]"===t?(U(!0),q(!1)):(null==t?void 0:t.startsWith("[ERROR]"))?(i[o].context=null==t?void 0:t.replace("[ERROR]",""),i[o].thinking=!1,L([...R,...i]),U(!0),q(!1)):(q(!0),i[o].context=t,i[o].thinking=!1,L([...R,...i]))}})}catch(e){null===(n=D.current)||void 0===n||n.abort(),i[o].context="Sorry, we meet some error, please try again later.",i[o].thinking=!1,L([...i]),U(!0),q(!1)}},G=async()=>{z.trim()&&$&&await X()};(0,y.useEffect)(()=>{var e,t;null===(e=I.current)||void 0===e||e.scrollTo({top:null===(t=I.current)||void 0===t?void 0:t.scrollHeight,behavior:"auto"})},[R,I]);let Q=(0,y.useMemo)(()=>{if(!T)return[];let{param_need:e=[]}=T;return null==e?void 0:e.map(e=>e.type)},[T]),Y=(0,y.useMemo)(()=>{var e;return 0===R.length&&T&&!!(null==T?void 0:null===(e=T.recommend_questions)||void 0===e?void 0:e.length)},[R,T]),{run:ee,loading:et}=(0,m.Z)(async()=>await (0,a.Vx)((0,a.zR)(P)),{manual:!0,onSuccess:()=>{L([])}});return(0,y.useEffect)(()=>{j&&E&&P&&T&&X(j)},[T,P,E,j]),(0,n.jsxs)("div",{className:"flex flex-col",children:[Y&&(0,n.jsx)("ul",{children:null==T?void 0:null===(e=T.recommend_questions)||void 0===e?void 0:e.map((e,t)=>(0,n.jsx)("li",{className:"mb-3",children:(0,n.jsx)(p.Z,{color:S[t],className:"p-2 rounded-xl",onClick:async()=>{X(e.question)},children:e.question})},e.id))}),(0,n.jsxs)("div",{className:"flex items-center justify-between gap-1",children:[(0,n.jsxs)("div",{className:"flex gap-2 mb-1 w-full overflow-x-auto",children:[(null==Q?void 0:Q.includes("model"))&&(0,n.jsx)(N.default,{}),(null==Q?void 0:Q.includes("resource"))&&(0,n.jsx)(k.default,{}),(null==Q?void 0:Q.includes("temperature"))&&(0,n.jsx)(C.default,{})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between text-lg font-bold",children:[(0,n.jsx)(v.Z,{content:"暂停回复",trigger:["hover"],children:(0,n.jsx)(i.Z,{className:b()("p-2 cursor-pointer",{"text-[#0c75fc]":J,"text-gray-400":!J}),onClick:()=>{var e;J&&(null===(e=D.current)||void 0===e||e.abort(),setTimeout(()=>{q(!1),U(!0)},100))}})}),(0,n.jsx)(v.Z,{content:"再来一次",trigger:["hover"],children:(0,n.jsx)(o.Z,{className:b()("p-2 cursor-pointer",{"text-gray-400":!R.length||!$}),onClick:()=>{var e,t;if(!$||0===R.length)return;let l=null===(e=null===(t=R.filter(e=>"human"===e.role))||void 0===t?void 0:t.slice(-1))||void 0===e?void 0:e[0];X((null==l?void 0:l.context)||"")}})}),et?(0,n.jsx)(h.Z,{spinning:et,indicator:(0,n.jsx)(c.Z,{style:{fontSize:18},spin:!0}),className:"p-2"}):(0,n.jsx)(v.Z,{content:"清除历史",trigger:["hover"],children:(0,n.jsx)(d.Z,{className:b()("p-2 cursor-pointer",{"text-gray-400":!R.length||!$}),onClick:()=>{$&&ee()}})})]})]}),(0,n.jsxs)("div",{className:b()("flex py-2 px-3 items-center justify-between bg-white dark:bg-[#242733] dark:border-[#6f7f95] rounded-xl border",{"border-[#0c75fc] dark:border-[rgba(12,117,252,0.8)]":H}),children:[(0,n.jsx)(f.default.TextArea,{placeholder:"可以问我任何问题",className:"w-full resize-none border-0 p-0 focus:shadow-none",value:z,autoSize:{minRows:1},onKeyDown:e=>{if("Enter"===e.key&&!e.shiftKey){if(B){e.preventDefault();return}z.trim()&&(e.preventDefault(),G())}},onChange:e=>{F(e.target.value)},onFocus:()=>{W(!0)},onBlur:()=>W(!1),onCompositionStartCapture:()=>{K(!0)},onCompositionEndCapture:()=>{setTimeout(()=>{K(!1)},0)}}),(0,n.jsx)(g.ZP,{type:"primary",className:b()("flex items-center justify-center rounded-lg bg-button-gradient border-0 ml-2",{"opacity-40 cursor-not-allowed":!z.trim()||!$}),onClick:G,children:$?(0,n.jsx)(u.Z,{}):(0,n.jsx)(h.Z,{indicator:(0,n.jsx)(c.Z,{className:"text-white"})})})]})]})}},7001:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(41468),r=l(39718),s=l(94668),i=l(85418),o=l(55241),c=l(67294),d=l(73913);t.default=()=>{let{modelList:e}=(0,c.useContext)(a.p),{model:t,setModel:l}=(0,c.useContext)(d.MobileChatContext),u=(0,c.useMemo)(()=>e.length>0?e.map(e=>({label:(0,n.jsxs)("div",{className:"flex items-center gap-2",onClick:()=>{l(e)},children:[(0,n.jsx)(r.Z,{width:14,height:14,model:e}),(0,n.jsx)("span",{className:"text-xs",children:e})]}),key:e})):[],[e,l]);return(0,n.jsx)(i.Z,{menu:{items:u},placement:"top",trigger:["click"],children:(0,n.jsx)(o.Z,{content:t,children:(0,n.jsxs)("div",{className:"flex items-center gap-1 border rounded-xl bg-white dark:bg-black p-2 flex-shrink-0",children:[(0,n.jsx)(r.Z,{width:16,height:16,model:t}),(0,n.jsx)("span",{className:"text-xs font-medium line-clamp-1",style:{maxWidth:96},children:t}),(0,n.jsx)(s.Z,{rotate:90})]})})})}},46568:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(25675),r=l.n(a),s=l(67294);t.default=(0,s.memo)(e=>{let{width:t,height:l,src:a,label:s}=e;return(0,n.jsx)(r(),{width:t||14,height:l||14,src:a,alt:s||"db-icon",priority:!0})})},73749:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(76212),r=l(62418),s=l(50888),i=l(94668),o=l(83266),c=l(65654),d=l(74330),u=l(23799),x=l(85418),m=l(67294),p=l(73913),v=l(46568);t.default=()=>{let{appInfo:e,resourceList:t,scene:l,model:h,conv_uid:f,getChatHistoryRun:g,setResource:j,resource:b}=(0,m.useContext)(p.MobileChatContext),[w,y]=(0,m.useState)(null),_=(0,m.useMemo)(()=>{var t,l,n;return null===(t=null==e?void 0:null===(l=e.param_need)||void 0===l?void 0:l.filter(e=>"resource"===e.type))||void 0===t?void 0:null===(n=t[0])||void 0===n?void 0:n.value},[e]),N=(0,m.useMemo)(()=>t&&t.length>0?t.map(e=>({label:(0,n.jsxs)("div",{className:"flex items-center gap-2",onClick:()=>{y(e),j(e.space_id||e.param)},children:[(0,n.jsx)(v.default,{width:14,height:14,src:r.S$[e.type].icon,label:r.S$[e.type].label}),(0,n.jsx)("span",{className:"text-xs",children:e.param})]}),key:e.space_id||e.param})):[],[t,j]),{run:k,loading:C}=(0,c.Z)(async e=>{let[,t]=await (0,a.Vx)((0,a.qn)({convUid:f,chatMode:l,data:e,model:h,config:{timeout:36e5}}));return j(t),t},{manual:!0,onSuccess:async()=>{await g()}}),Z=async e=>{let t=new FormData;t.append("doc_file",null==e?void 0:e.file),await k(t)},S=(0,m.useMemo)(()=>C?(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)(d.Z,{size:"small",indicator:(0,n.jsx)(s.Z,{spin:!0})}),(0,n.jsx)("span",{className:"text-xs",children:"上传中"})]}):b?(0,n.jsxs)("div",{className:"flex gap-1",children:[(0,n.jsx)("span",{className:"text-xs",children:b.file_name}),(0,n.jsx)(i.Z,{rotate:90})]}):(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)(o.Z,{className:"text-base"}),(0,n.jsx)("span",{className:"text-xs",children:"上传文件"})]}),[C,b]);return(0,n.jsx)(n.Fragment,{children:(()=>{switch(_){case"excel_file":case"text_file":case"image_file":return(0,n.jsx)("div",{className:"flex items-center justify-center gap-1 border rounded-xl bg-white dark:bg-black px-2 flex-shrink-0",children:(0,n.jsx)(u.default,{name:"file",accept:".xlsx,.xls",maxCount:1,showUploadList:!1,beforeUpload:()=>!1,onChange:Z,className:"flex h-full w-full items-center justify-center",children:S})});case"database":case"knowledge":case"plugin":case"awel_flow":var e,l,a,s,o;if(!(null==t?void 0:t.length))return null;return(0,n.jsx)(x.Z,{menu:{items:N},placement:"top",trigger:["click"],children:(0,n.jsxs)("div",{className:"flex items-center gap-1 border rounded-xl bg-white dark:bg-black p-2 flex-shrink-0",children:[(0,n.jsx)(v.default,{width:14,height:14,src:null===(e=r.S$[(null==w?void 0:w.type)||(null==t?void 0:null===(l=t[0])||void 0===l?void 0:l.type)])||void 0===e?void 0:e.icon,label:null===(a=r.S$[(null==w?void 0:w.type)||(null==t?void 0:null===(s=t[0])||void 0===s?void 0:s.type)])||void 0===a?void 0:a.label}),(0,n.jsx)("span",{className:"text-xs font-medium",children:(null==w?void 0:w.param)||(null==t?void 0:null===(o=t[0])||void 0===o?void 0:o.param)}),(0,n.jsx)(i.Z,{rotate:90})]})})}})()})}},97109:function(e,t,l){"use strict";l.r(t);var n=l(85893),a=l(70065),r=l(85418),s=l(30568),i=l(67294),o=l(73913);t.default=()=>{let{temperature:e,setTemperature:t}=(0,i.useContext)(o.MobileChatContext),l=e=>{isNaN(e)||t(e)};return(0,n.jsx)(r.Z,{trigger:["click"],dropdownRender:()=>(0,n.jsx)("div",{className:"flex h-28 bg-white dark:bg-[rgba(255,255,255,0.5)] items-center justify-center rounded-xl py-3",children:(0,n.jsx)(s.Z,{defaultValue:.5,max:1,min:0,step:.1,vertical:!0,onChange:l,value:e})}),placement:"top",children:(0,n.jsxs)("div",{className:"flex items-center justify-between border rounded-xl bg-white dark:bg-black w-14 p-2 flex-shrink-0",children:[(0,n.jsx)(a.Z,{type:"icon-icons-temperature",className:"text-sm"}),(0,n.jsx)("span",{className:"text-xs font-medium",children:e})]})})}},73913:function(e,t,l){"use strict";l.r(t),l.d(t,{MobileChatContext:function(){return b}});var n=l(85893),a=l(41468),r=l(76212),s=l(2440),i=l(62418),o=l(25519),c=l(1375),d=l(65654),u=l(74330),x=l(5152),m=l.n(x),p=l(39332),v=l(67294),h=l(56397),f=l(74638),g=l(83454);let j=m()(()=>Promise.all([l.e(3662),l.e(7034),l.e(6106),l.e(8674),l.e(3166),l.e(2837),l.e(2168),l.e(8163),l.e(4041),l.e(2398),l.e(1300),l.e(4567),l.e(9773),l.e(3457),l.e(4035),l.e(152),l.e(4705),l.e(9202),l.e(5782),l.e(2783),l.e(8709),l.e(7249),l.e(9870)]).then(l.bind(l,36818)),{loadableGenerated:{webpack:()=>[36818]},ssr:!1}),b=(0,v.createContext)({model:"",temperature:.5,resource:null,setModel:()=>{},setTemperature:()=>{},setResource:()=>{},scene:"",history:[],setHistory:()=>{},scrollViewRef:{current:null},appInfo:{},conv_uid:"",resourceList:[],order:{current:1},handleChat:()=>Promise.resolve(),canAbort:!1,setCarAbort:()=>{},canNewChat:!1,setCanNewChat:()=>{},ctrl:{current:void 0},userInput:"",setUserInput:()=>{},getChatHistoryRun:()=>{}});t.default=()=>{var e,t;let l=(0,p.useSearchParams)(),x=null!==(e=null==l?void 0:l.get("chat_scene"))&&void 0!==e?e:"",m=null!==(t=null==l?void 0:l.get("app_code"))&&void 0!==t?t:"",{modelList:w}=(0,v.useContext)(a.p),[y,_]=(0,v.useState)([]),[N,k]=(0,v.useState)(""),[C,Z]=(0,v.useState)(.5),[S,R]=(0,v.useState)(null),E=(0,v.useRef)(null),[M,O]=(0,v.useState)(""),[A,P]=(0,v.useState)(!1),[T,I]=(0,v.useState)(!0),V=(0,v.useRef)(),z=(0,v.useRef)(1),D=(0,s.Z)(),J=(0,v.useMemo)(()=>"".concat(null==D?void 0:D.user_no,"_").concat(m),[m,D]),{run:$,loading:L}=(0,d.Z)(async()=>await (0,r.Vx)((0,r.$i)("".concat(null==D?void 0:D.user_no,"_").concat(m))),{manual:!0,onSuccess:e=>{let[,t]=e,l=null==t?void 0:t.filter(e=>"view"===e.role);l&&l.length>0&&(z.current=l[l.length-1].order+1),_(t||[])}}),{data:U,run:q,loading:F}=(0,d.Z)(async e=>{let[,t]=await (0,r.Vx)((0,r.BN)(e));return null!=t?t:{}},{manual:!0}),{run:H,data:W,loading:B}=(0,d.Z)(async()=>{var e,t;let[,l]=await (0,r.Vx)((0,r.vD)(x));return R((null==l?void 0:null===(e=l[0])||void 0===e?void 0:e.space_id)||(null==l?void 0:null===(t=l[0])||void 0===t?void 0:t.param)),null!=l?l:[]},{manual:!0}),{run:K,loading:X}=(0,d.Z)(async()=>{let[,e]=await (0,r.Vx)((0,r.iP)());return null!=e?e:[]},{manual:!0,onSuccess:e=>{var t;let l=null===(t=null==e?void 0:e.filter(e=>e.conv_uid===J))||void 0===t?void 0:t[0];(null==l?void 0:l.select_param)&&R(JSON.parse(null==l?void 0:l.select_param))}});(0,v.useEffect)(()=>{x&&m&&w.length&&q({chat_scene:x,app_code:m})},[m,x,q,w]),(0,v.useEffect)(()=>{m&&$()},[m]),(0,v.useEffect)(()=>{if(w.length>0){var e,t,l;let n=null===(e=null==U?void 0:null===(t=U.param_need)||void 0===t?void 0:t.filter(e=>"model"===e.type))||void 0===e?void 0:null===(l=e[0])||void 0===l?void 0:l.value;k(n||w[0])}},[w,U]),(0,v.useEffect)(()=>{var e,t,l;let n=null===(e=null==U?void 0:null===(t=U.param_need)||void 0===t?void 0:t.filter(e=>"temperature"===e.type))||void 0===e?void 0:null===(l=e[0])||void 0===l?void 0:l.value;Z(n||.5)},[U]),(0,v.useEffect)(()=>{if(x&&(null==U?void 0:U.app_code)){var e,t,l,n,a,r;let s=null===(e=null==U?void 0:null===(t=U.param_need)||void 0===t?void 0:t.filter(e=>"resource"===e.type))||void 0===e?void 0:null===(l=e[0])||void 0===l?void 0:l.value,i=null===(n=null==U?void 0:null===(a=U.param_need)||void 0===a?void 0:a.filter(e=>"resource"===e.type))||void 0===n?void 0:null===(r=n[0])||void 0===r?void 0:r.bind_value;i&&R(i),["database","knowledge","plugin","awel_flow"].includes(s)&&!i&&H()}},[U,x,H]);let G=async e=>{var t,l,n;O(""),V.current=new AbortController;let a={chat_mode:x,model_name:N,user_input:e||M,conv_uid:J,temperature:C,app_code:null==U?void 0:U.app_code,...S&&{select_param:S}};if(y&&y.length>0){let e=null==y?void 0:y.filter(e=>"view"===e.role);z.current=e[e.length-1].order+1}let r=[{role:"human",context:e||M,model_name:N,order:z.current,time_stamp:0},{role:"view",context:"",model_name:N,order:z.current,time_stamp:0,thinking:!0}],s=r.length-1;_([...y,...r]),I(!1);try{await (0,c.L)("".concat(null!==(t=g.env.API_BASE_URL)&&void 0!==t?t:"","/api/v1/chat/completions"),{method:"POST",headers:{"Content-Type":"application/json",[o.gp]:null!==(l=(0,i.n5)())&&void 0!==l?l:""},signal:V.current.signal,body:JSON.stringify(a),openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===c.a)return},onclose(){var e;null===(e=V.current)||void 0===e||e.abort(),I(!0),P(!1)},onerror(e){throw Error(e)},onmessage:e=>{let t=e.data;try{t=JSON.parse(t).vis}catch(e){t.replaceAll("\\n","\n")}"[DONE]"===t?(I(!0),P(!1)):(null==t?void 0:t.startsWith("[ERROR]"))?(r[s].context=null==t?void 0:t.replace("[ERROR]",""),r[s].thinking=!1,_([...y,...r]),I(!0),P(!1)):(P(!0),r[s].context=t,r[s].thinking=!1,_([...y,...r]))}})}catch(e){null===(n=V.current)||void 0===n||n.abort(),r[s].context="Sorry, we meet some error, please try again later.",r[s].thinking=!1,_([...r]),I(!0),P(!1)}};return(0,v.useEffect)(()=>{x&&"chat_agent"!==x&&K()},[x,K]),(0,n.jsx)(b.Provider,{value:{model:N,resource:S,setModel:k,setTemperature:Z,setResource:R,temperature:C,appInfo:U,conv_uid:J,scene:x,history:y,scrollViewRef:E,setHistory:_,resourceList:W,order:z,handleChat:G,setCanNewChat:I,ctrl:V,canAbort:A,setCarAbort:P,canNewChat:T,userInput:M,setUserInput:O,getChatHistoryRun:$},children:(0,n.jsx)(u.Z,{size:"large",className:"flex h-screen w-screen justify-center items-center max-h-screen",spinning:L||F||B||X,children:(0,n.jsxs)("div",{className:"flex flex-col h-screen bg-gradient-light dark:bg-gradient-dark p-4 pt-0",children:[(0,n.jsxs)("div",{ref:E,className:"flex flex-col flex-1 overflow-y-auto mb-3",children:[(0,n.jsx)(h.default,{}),(0,n.jsx)(j,{})]}),(null==U?void 0:U.app_code)&&(0,n.jsx)(f.default,{})]})})})}}},function(e){e.O(0,[3662,7034,6106,8674,3166,2837,2168,8163,2648,3791,2913,5278,8791,4330,1049,5030,4041,2398,3799,2684,1300,4567,9773,3457,4035,152,4705,9202,5782,464,8709,7249,9774,2888,179],function(){return e(e.s=79373)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/dbgpt/app/static/web/_next/static/chunks/pages/mobile/chat/components/Header-6d7326a17febc66f.js b/dbgpt/app/static/web/_next/static/chunks/pages/mobile/chat/components/Header-d56a17a349ff2cda.js similarity index 92% rename from dbgpt/app/static/web/_next/static/chunks/pages/mobile/chat/components/Header-6d7326a17febc66f.js rename to dbgpt/app/static/web/_next/static/chunks/pages/mobile/chat/components/Header-d56a17a349ff2cda.js index a0cd48ca4..41b358d9a 100644 --- a/dbgpt/app/static/web/_next/static/chunks/pages/mobile/chat/components/Header-6d7326a17febc66f.js +++ b/dbgpt/app/static/web/_next/static/chunks/pages/mobile/chat/components/Header-d56a17a349ff2cda.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1244],{85335:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mobile/chat/components/Header",function(){return n(56397)}])},2440:function(e,t,n){"use strict";var r=n(25519);t.Z=()=>{var e;return JSON.parse(null!==(e=localStorage.getItem(r.C9))&&void 0!==e?e:"")}},39718:function(e,t,n){"use strict";var r=n(85893),c=n(19284),a=n(25675),l=n.n(a),u=n(67294);t.Z=(0,u.memo)(e=>{let{width:t,height:n,model:a}=e,s=(0,u.useMemo)(()=>{let e=null==a?void 0:a.replaceAll("-","_").split("_")[0],t=Object.keys(c.Me);for(let n=0;n{let{width:t,height:n,scene:u}=e,s=(0,l.useCallback)(()=>{switch(u){case"chat_knowledge":return c.je;case"chat_with_db_execute":return c.zM;case"chat_excel":return c.DL;case"chat_with_db_qa":case"chat_dba":return c.RD;case"chat_dashboard":return c.In;case"chat_agent":return c.si;case"chat_normal":return c.O7;default:return}},[u]);return(0,r.jsx)(a.Z,{className:"w-".concat(t||7," h-").concat(n||7),component:s()})}},70065:function(e,t,n){"use strict";var r=n(91321);let c=(0,r.Z)({scriptUrl:"//at.alicdn.com/t/a/font_4440880_ljyggdw605.js"});t.Z=c}},function(e){e.O(0,[2648,3791,2913,5278,8791,4330,1049,5030,3799,2684,6231,1437,3913,9774,2888,179],function(){return e(e.s=85335)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1244],{85335:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mobile/chat/components/Header",function(){return n(56397)}])},2440:function(e,t,n){"use strict";var r=n(25519);t.Z=()=>{var e;return JSON.parse(null!==(e=localStorage.getItem(r.C9))&&void 0!==e?e:"")}},39718:function(e,t,n){"use strict";var r=n(85893),c=n(19284),a=n(25675),l=n.n(a),u=n(67294);t.Z=(0,u.memo)(e=>{let{width:t,height:n,model:a}=e,s=(0,u.useMemo)(()=>{let e=null==a?void 0:a.replaceAll("-","_").split("_")[0],t=Object.keys(c.Me);for(let n=0;n{let{width:t,height:n,scene:u}=e,s=(0,l.useCallback)(()=>{switch(u){case"chat_knowledge":return c.je;case"chat_with_db_execute":return c.zM;case"chat_excel":return c.DL;case"chat_with_db_qa":case"chat_dba":return c.RD;case"chat_dashboard":return c.In;case"chat_agent":return c.si;case"chat_normal":return c.O7;default:return}},[u]);return(0,r.jsx)(a.Z,{className:"w-".concat(t||7," h-").concat(n||7),component:s()})}},70065:function(e,t,n){"use strict";var r=n(91321);let c=(0,r.Z)({scriptUrl:"//at.alicdn.com/t/a/font_4440880_ljyggdw605.js"});t.Z=c}},function(e){e.O(0,[2648,3791,2913,5278,8791,4330,1049,5030,3799,2684,6231,950,3913,9774,2888,179],function(){return e(e.s=85335)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/dbgpt/app/static/web/_next/static/chunks/pages/mobile/chat/components/InputContainer-7ad0b324bc2a00b4.js b/dbgpt/app/static/web/_next/static/chunks/pages/mobile/chat/components/InputContainer-ee3c87c14da505d8.js similarity index 92% rename from dbgpt/app/static/web/_next/static/chunks/pages/mobile/chat/components/InputContainer-7ad0b324bc2a00b4.js rename to dbgpt/app/static/web/_next/static/chunks/pages/mobile/chat/components/InputContainer-ee3c87c14da505d8.js index 61aa75f18..34256cccd 100644 --- a/dbgpt/app/static/web/_next/static/chunks/pages/mobile/chat/components/InputContainer-7ad0b324bc2a00b4.js +++ b/dbgpt/app/static/web/_next/static/chunks/pages/mobile/chat/components/InputContainer-ee3c87c14da505d8.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3882],{69487:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mobile/chat/components/InputContainer",function(){return n(74638)}])},2440:function(e,t,n){"use strict";var r=n(25519);t.Z=()=>{var e;return JSON.parse(null!==(e=localStorage.getItem(r.C9))&&void 0!==e?e:"")}},39718:function(e,t,n){"use strict";var r=n(85893),c=n(19284),a=n(25675),l=n.n(a),u=n(67294);t.Z=(0,u.memo)(e=>{let{width:t,height:n,model:a}=e,s=(0,u.useMemo)(()=>{let e=null==a?void 0:a.replaceAll("-","_").split("_")[0],t=Object.keys(c.Me);for(let n=0;n{let{width:t,height:n,scene:u}=e,s=(0,l.useCallback)(()=>{switch(u){case"chat_knowledge":return c.je;case"chat_with_db_execute":return c.zM;case"chat_excel":return c.DL;case"chat_with_db_qa":case"chat_dba":return c.RD;case"chat_dashboard":return c.In;case"chat_agent":return c.si;case"chat_normal":return c.O7;default:return}},[u]);return(0,r.jsx)(a.Z,{className:"w-".concat(t||7," h-").concat(n||7),component:s()})}},70065:function(e,t,n){"use strict";var r=n(91321);let c=(0,r.Z)({scriptUrl:"//at.alicdn.com/t/a/font_4440880_ljyggdw605.js"});t.Z=c}},function(e){e.O(0,[2648,3791,2913,5278,8791,4330,1049,5030,3799,2684,6231,950,3913,9774,2888,179],function(){return e(e.s=69487)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3882],{69487:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mobile/chat/components/InputContainer",function(){return n(74638)}])},2440:function(e,t,n){"use strict";var r=n(25519);t.Z=()=>{var e;return JSON.parse(null!==(e=localStorage.getItem(r.C9))&&void 0!==e?e:"")}},39718:function(e,t,n){"use strict";var r=n(85893),c=n(19284),a=n(25675),l=n.n(a),u=n(67294);t.Z=(0,u.memo)(e=>{let{width:t,height:n,model:a}=e,s=(0,u.useMemo)(()=>{let e=null==a?void 0:a.replaceAll("-","_").split("_")[0],t=Object.keys(c.Me);for(let n=0;n{let{width:t,height:n,scene:u}=e,s=(0,l.useCallback)(()=>{switch(u){case"chat_knowledge":return c.je;case"chat_with_db_execute":return c.zM;case"chat_excel":return c.DL;case"chat_with_db_qa":case"chat_dba":return c.RD;case"chat_dashboard":return c.In;case"chat_agent":return c.si;case"chat_normal":return c.O7;default:return}},[u]);return(0,r.jsx)(a.Z,{className:"w-".concat(t||7," h-").concat(n||7),component:s()})}},70065:function(e,t,n){"use strict";var r=n(91321);let c=(0,r.Z)({scriptUrl:"//at.alicdn.com/t/a/font_4440880_ljyggdw605.js"});t.Z=c}},function(e){e.O(0,[2648,3791,2913,5278,8791,4330,1049,5030,3799,2684,6231,6047,3913,9774,2888,179],function(){return e(e.s=69487)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/dbgpt/app/static/web/_next/static/chunks/pages/mobile/chat/components/ModelSelector-b563164808b51b5d.js b/dbgpt/app/static/web/_next/static/chunks/pages/mobile/chat/components/ModelSelector-bfb7411da144d132.js similarity index 96% rename from dbgpt/app/static/web/_next/static/chunks/pages/mobile/chat/components/ModelSelector-b563164808b51b5d.js rename to dbgpt/app/static/web/_next/static/chunks/pages/mobile/chat/components/ModelSelector-bfb7411da144d132.js index 8badaebae..fc2c1432e 100644 --- a/dbgpt/app/static/web/_next/static/chunks/pages/mobile/chat/components/ModelSelector-b563164808b51b5d.js +++ b/dbgpt/app/static/web/_next/static/chunks/pages/mobile/chat/components/ModelSelector-bfb7411da144d132.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2767],{96052:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mobile/chat/components/ModelSelector",function(){return n(7001)}])},2440:function(e,t,n){"use strict";var r=n(25519);t.Z=()=>{var e;return JSON.parse(null!==(e=localStorage.getItem(r.C9))&&void 0!==e?e:"")}},39718:function(e,t,n){"use strict";var r=n(85893),c=n(19284),a=n(25675),l=n.n(a),u=n(67294);t.Z=(0,u.memo)(e=>{let{width:t,height:n,model:a}=e,s=(0,u.useMemo)(()=>{let e=null==a?void 0:a.replaceAll("-","_").split("_")[0],t=Object.keys(c.Me);for(let n=0;n{let{width:t,height:n,scene:u}=e,s=(0,l.useCallback)(()=>{switch(u){case"chat_knowledge":return c.je;case"chat_with_db_execute":return c.zM;case"chat_excel":return c.DL;case"chat_with_db_qa":case"chat_dba":return c.RD;case"chat_dashboard":return c.In;case"chat_agent":return c.si;case"chat_normal":return c.O7;default:return}},[u]);return(0,r.jsx)(a.Z,{className:"w-".concat(t||7," h-").concat(n||7),component:s()})}},70065:function(e,t,n){"use strict";var r=n(91321);let c=(0,r.Z)({scriptUrl:"//at.alicdn.com/t/a/font_4440880_ljyggdw605.js"});t.Z=c}},function(e){e.O(0,[2648,3791,2913,5278,8791,4330,1049,5030,3799,2684,6231,6047,3913,9774,2888,179],function(){return e(e.s=96052)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2767],{96052:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mobile/chat/components/ModelSelector",function(){return n(7001)}])},2440:function(e,t,n){"use strict";var r=n(25519);t.Z=()=>{var e;return JSON.parse(null!==(e=localStorage.getItem(r.C9))&&void 0!==e?e:"")}},39718:function(e,t,n){"use strict";var r=n(85893),c=n(19284),a=n(25675),l=n.n(a),u=n(67294);t.Z=(0,u.memo)(e=>{let{width:t,height:n,model:a}=e,s=(0,u.useMemo)(()=>{let e=null==a?void 0:a.replaceAll("-","_").split("_")[0],t=Object.keys(c.Me);for(let n=0;n{let{width:t,height:n,scene:u}=e,s=(0,l.useCallback)(()=>{switch(u){case"chat_knowledge":return c.je;case"chat_with_db_execute":return c.zM;case"chat_excel":return c.DL;case"chat_with_db_qa":case"chat_dba":return c.RD;case"chat_dashboard":return c.In;case"chat_agent":return c.si;case"chat_normal":return c.O7;default:return}},[u]);return(0,r.jsx)(a.Z,{className:"w-".concat(t||7," h-").concat(n||7),component:s()})}},70065:function(e,t,n){"use strict";var r=n(91321);let c=(0,r.Z)({scriptUrl:"//at.alicdn.com/t/a/font_4440880_ljyggdw605.js"});t.Z=c}},function(e){e.O(0,[2648,3791,2913,5278,8791,4330,1049,5030,3799,2684,6231,1437,3913,9774,2888,179],function(){return e(e.s=96052)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/dbgpt/app/static/web/_next/static/chunks/webpack-be7003411ffbe393.js b/dbgpt/app/static/web/_next/static/chunks/webpack-be7003411ffbe393.js new file mode 100644 index 000000000..099ca30ad --- /dev/null +++ b/dbgpt/app/static/web/_next/static/chunks/webpack-be7003411ffbe393.js @@ -0,0 +1 @@ +!function(){"use strict";var e,c,t,a,f,n,d,b,r,s,u,i,o={},l={};function h(e){var c=l[e];if(void 0!==c)return c.exports;var t=l[e]={id:e,loaded:!1,exports:{}},a=!0;try{o[e].call(t.exports,t,t.exports,h),a=!1}finally{a&&delete l[e]}return t.loaded=!0,t.exports}h.m=o,h.amdO={},e=[],h.O=function(c,t,a,f){if(t){f=f||0;for(var n=e.length;n>0&&e[n-1][2]>f;n--)e[n]=e[n-1];e[n]=[t,a,f];return}for(var d=1/0,n=0;n=f&&Object.keys(h.O).every(function(e){return h.O[e](t[r])})?t.splice(r--,1):(b=!1,f0&&e[n-1][2]>f;n--)e[n]=e[n-1];e[n]=[t,a,f];return}for(var b=1/0,n=0;n=f&&Object.keys(h.O).every(function(e){return h.O[e](t[r])})?t.splice(r--,1):(d=!1,f
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/construct/agent/index.html b/dbgpt/app/static/web/construct/agent/index.html index 414c0de94..1dcf85e01 100644 --- a/dbgpt/app/static/web/construct/agent/index.html +++ b/dbgpt/app/static/web/construct/agent/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/construct/app/components/create-app-modal/index.html b/dbgpt/app/static/web/construct/app/components/create-app-modal/index.html index 60cc2e8c0..2974d9642 100644 --- a/dbgpt/app/static/web/construct/app/components/create-app-modal/index.html +++ b/dbgpt/app/static/web/construct/app/components/create-app-modal/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/construct/app/extra/components/AwelLayout/index.html b/dbgpt/app/static/web/construct/app/extra/components/AwelLayout/index.html index 307100bf6..11ca5c769 100644 --- a/dbgpt/app/static/web/construct/app/extra/components/AwelLayout/index.html +++ b/dbgpt/app/static/web/construct/app/extra/components/AwelLayout/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/construct/app/extra/components/NativeApp/index.html b/dbgpt/app/static/web/construct/app/extra/components/NativeApp/index.html index 995bc3ae4..8fa7d38c8 100644 --- a/dbgpt/app/static/web/construct/app/extra/components/NativeApp/index.html +++ b/dbgpt/app/static/web/construct/app/extra/components/NativeApp/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/construct/app/extra/components/RecommendQuestions/index.html b/dbgpt/app/static/web/construct/app/extra/components/RecommendQuestions/index.html index 041f0e35a..7b1bc1bed 100644 --- a/dbgpt/app/static/web/construct/app/extra/components/RecommendQuestions/index.html +++ b/dbgpt/app/static/web/construct/app/extra/components/RecommendQuestions/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/construct/app/extra/components/auto-plan/DetailsCard/index.html b/dbgpt/app/static/web/construct/app/extra/components/auto-plan/DetailsCard/index.html index b618d00bd..c68bfdbd6 100644 --- a/dbgpt/app/static/web/construct/app/extra/components/auto-plan/DetailsCard/index.html +++ b/dbgpt/app/static/web/construct/app/extra/components/auto-plan/DetailsCard/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/construct/app/extra/components/auto-plan/ResourceContent/index.html b/dbgpt/app/static/web/construct/app/extra/components/auto-plan/ResourceContent/index.html index a20db0366..8d181888d 100644 --- a/dbgpt/app/static/web/construct/app/extra/components/auto-plan/ResourceContent/index.html +++ b/dbgpt/app/static/web/construct/app/extra/components/auto-plan/ResourceContent/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/construct/app/extra/components/auto-plan/ResourcesCard/index.html b/dbgpt/app/static/web/construct/app/extra/components/auto-plan/ResourcesCard/index.html index a2a519393..91647a6a8 100644 --- a/dbgpt/app/static/web/construct/app/extra/components/auto-plan/ResourcesCard/index.html +++ b/dbgpt/app/static/web/construct/app/extra/components/auto-plan/ResourcesCard/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/construct/app/extra/components/auto-plan/index.html b/dbgpt/app/static/web/construct/app/extra/components/auto-plan/index.html index 17b324af3..bf4726d50 100644 --- a/dbgpt/app/static/web/construct/app/extra/components/auto-plan/index.html +++ b/dbgpt/app/static/web/construct/app/extra/components/auto-plan/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/construct/app/extra/config/index.html b/dbgpt/app/static/web/construct/app/extra/config/index.html index ae930c956..68426cf32 100644 --- a/dbgpt/app/static/web/construct/app/extra/config/index.html +++ b/dbgpt/app/static/web/construct/app/extra/config/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/construct/app/extra/index.html b/dbgpt/app/static/web/construct/app/extra/index.html index 4b49a7c14..4a22f009f 100644 --- a/dbgpt/app/static/web/construct/app/extra/index.html +++ b/dbgpt/app/static/web/construct/app/extra/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/construct/app/index.html b/dbgpt/app/static/web/construct/app/index.html index f17961152..32e1d6944 100644 --- a/dbgpt/app/static/web/construct/app/index.html +++ b/dbgpt/app/static/web/construct/app/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/construct/database/index.html b/dbgpt/app/static/web/construct/database/index.html index 0fd4b43c7..9b1fbfb50 100644 --- a/dbgpt/app/static/web/construct/database/index.html +++ b/dbgpt/app/static/web/construct/database/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/construct/dbgpts/index.html b/dbgpt/app/static/web/construct/dbgpts/index.html index 52d99a671..c28195d5b 100644 --- a/dbgpt/app/static/web/construct/dbgpts/index.html +++ b/dbgpt/app/static/web/construct/dbgpts/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/construct/flow/canvas/index.html b/dbgpt/app/static/web/construct/flow/canvas/index.html index ddea7ee9f..0c6c8dce8 100644 --- a/dbgpt/app/static/web/construct/flow/canvas/index.html +++ b/dbgpt/app/static/web/construct/flow/canvas/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/construct/flow/index.html b/dbgpt/app/static/web/construct/flow/index.html index cf7f37b6b..20cd62155 100644 --- a/dbgpt/app/static/web/construct/flow/index.html +++ b/dbgpt/app/static/web/construct/flow/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/construct/flow/libro/index.html b/dbgpt/app/static/web/construct/flow/libro/index.html index aa39f343c..d613b9c58 100644 --- a/dbgpt/app/static/web/construct/flow/libro/index.html +++ b/dbgpt/app/static/web/construct/flow/libro/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/construct/index.html b/dbgpt/app/static/web/construct/index.html index 21dde244e..5ac73ed78 100644 --- a/dbgpt/app/static/web/construct/index.html +++ b/dbgpt/app/static/web/construct/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/construct/knowledge/chunk/index.html b/dbgpt/app/static/web/construct/knowledge/chunk/index.html index 70de14e0e..ddef1c9b5 100644 --- a/dbgpt/app/static/web/construct/knowledge/chunk/index.html +++ b/dbgpt/app/static/web/construct/knowledge/chunk/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/construct/knowledge/index.html b/dbgpt/app/static/web/construct/knowledge/index.html index 415289bed..ac0783525 100644 --- a/dbgpt/app/static/web/construct/knowledge/index.html +++ b/dbgpt/app/static/web/construct/knowledge/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/construct/models/index.html b/dbgpt/app/static/web/construct/models/index.html index 9782ce0b1..0d67d6358 100644 --- a/dbgpt/app/static/web/construct/models/index.html +++ b/dbgpt/app/static/web/construct/models/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/construct/prompt/add/index.html b/dbgpt/app/static/web/construct/prompt/add/index.html index 6f6e359e1..47d817e44 100644 --- a/dbgpt/app/static/web/construct/prompt/add/index.html +++ b/dbgpt/app/static/web/construct/prompt/add/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/construct/prompt/edit/index.html b/dbgpt/app/static/web/construct/prompt/edit/index.html index 8d9bda3cd..1a2b38f26 100644 --- a/dbgpt/app/static/web/construct/prompt/edit/index.html +++ b/dbgpt/app/static/web/construct/prompt/edit/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/construct/prompt/index.html b/dbgpt/app/static/web/construct/prompt/index.html index 1e822e2a4..f26192b37 100644 --- a/dbgpt/app/static/web/construct/prompt/index.html +++ b/dbgpt/app/static/web/construct/prompt/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/evaluation/index.html b/dbgpt/app/static/web/evaluation/index.html index 40a57d9eb..9450c0f30 100644 --- a/dbgpt/app/static/web/evaluation/index.html +++ b/dbgpt/app/static/web/evaluation/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/index.html b/dbgpt/app/static/web/index.html index b7ab0bac6..e06ee52cc 100644 --- a/dbgpt/app/static/web/index.html +++ b/dbgpt/app/static/web/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/knowledge/graph/index.html b/dbgpt/app/static/web/knowledge/graph/index.html index ae93a2f3c..a590daf70 100644 --- a/dbgpt/app/static/web/knowledge/graph/index.html +++ b/dbgpt/app/static/web/knowledge/graph/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/mobile/chat/components/ChatDialog/index.html b/dbgpt/app/static/web/mobile/chat/components/ChatDialog/index.html index 2589f5c26..ced14f0f1 100644 --- a/dbgpt/app/static/web/mobile/chat/components/ChatDialog/index.html +++ b/dbgpt/app/static/web/mobile/chat/components/ChatDialog/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/mobile/chat/components/Content/index.html b/dbgpt/app/static/web/mobile/chat/components/Content/index.html index d0709d975..b469cf9ab 100644 --- a/dbgpt/app/static/web/mobile/chat/components/Content/index.html +++ b/dbgpt/app/static/web/mobile/chat/components/Content/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/mobile/chat/components/DislikeDrawer/index.html b/dbgpt/app/static/web/mobile/chat/components/DislikeDrawer/index.html index 658342771..12fa8a4d9 100644 --- a/dbgpt/app/static/web/mobile/chat/components/DislikeDrawer/index.html +++ b/dbgpt/app/static/web/mobile/chat/components/DislikeDrawer/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/mobile/chat/components/Feedback/index.html b/dbgpt/app/static/web/mobile/chat/components/Feedback/index.html index e313d96d9..8c8f08ce7 100644 --- a/dbgpt/app/static/web/mobile/chat/components/Feedback/index.html +++ b/dbgpt/app/static/web/mobile/chat/components/Feedback/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/mobile/chat/components/Header/index.html b/dbgpt/app/static/web/mobile/chat/components/Header/index.html index 58a852862..426c2e510 100644 --- a/dbgpt/app/static/web/mobile/chat/components/Header/index.html +++ b/dbgpt/app/static/web/mobile/chat/components/Header/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/mobile/chat/components/InputContainer/index.html b/dbgpt/app/static/web/mobile/chat/components/InputContainer/index.html index d245a1664..063d41878 100644 --- a/dbgpt/app/static/web/mobile/chat/components/InputContainer/index.html +++ b/dbgpt/app/static/web/mobile/chat/components/InputContainer/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/mobile/chat/components/ModelSelector/index.html b/dbgpt/app/static/web/mobile/chat/components/ModelSelector/index.html index fe9f28ced..20fe2d130 100644 --- a/dbgpt/app/static/web/mobile/chat/components/ModelSelector/index.html +++ b/dbgpt/app/static/web/mobile/chat/components/ModelSelector/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/mobile/chat/components/OptionIcon/index.html b/dbgpt/app/static/web/mobile/chat/components/OptionIcon/index.html index c766765de..30eb420eb 100644 --- a/dbgpt/app/static/web/mobile/chat/components/OptionIcon/index.html +++ b/dbgpt/app/static/web/mobile/chat/components/OptionIcon/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/mobile/chat/components/Resource/index.html b/dbgpt/app/static/web/mobile/chat/components/Resource/index.html index f85eec8fb..e95ac78e4 100644 --- a/dbgpt/app/static/web/mobile/chat/components/Resource/index.html +++ b/dbgpt/app/static/web/mobile/chat/components/Resource/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/mobile/chat/components/Thermometer/index.html b/dbgpt/app/static/web/mobile/chat/components/Thermometer/index.html index bfc58c897..ed36dae6d 100644 --- a/dbgpt/app/static/web/mobile/chat/components/Thermometer/index.html +++ b/dbgpt/app/static/web/mobile/chat/components/Thermometer/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/app/static/web/mobile/chat/index.html b/dbgpt/app/static/web/mobile/chat/index.html index 4b8035b5c..f4ffb1e7c 100644 --- a/dbgpt/app/static/web/mobile/chat/index.html +++ b/dbgpt/app/static/web/mobile/chat/index.html @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/dbgpt/model/proxy/llms/chatgpt.py b/dbgpt/model/proxy/llms/chatgpt.py index fd8b2e92f..000748732 100755 --- a/dbgpt/model/proxy/llms/chatgpt.py +++ b/dbgpt/model/proxy/llms/chatgpt.py @@ -112,6 +112,11 @@ class OpenAILLMClient(ProxyLLMClient): _initialize_openai(self._init_params) + if not self._openai_less_then_v1: + # Prepare openai client and cache default headers + # It will block the main thread in some cases + _ = self.client.default_headers + @classmethod def new_client( cls, diff --git a/dbgpt/serve/agent/db/gpts_app.py b/dbgpt/serve/agent/db/gpts_app.py index ab188fe2a..c232ae2e1 100644 --- a/dbgpt/serve/agent/db/gpts_app.py +++ b/dbgpt/serve/agent/db/gpts_app.py @@ -1113,6 +1113,7 @@ class GptsAppDao(BaseDao): }, {"type": AppParamType.Model.value, "value": None}, {"type": AppParamType.Temperature.value, "value": None}, + {"type": AppParamType.MaxNewTokens.value, "value": None}, ], user_code=user_code, published="true", @@ -1134,6 +1135,7 @@ class GptsAppDao(BaseDao): param_need=[ {"type": AppParamType.Model.value, "value": None}, {"type": AppParamType.Temperature.value, "value": None}, + {"type": AppParamType.MaxNewTokens.value, "value": None}, ], user_code=user_code, published="true", @@ -1156,6 +1158,7 @@ class GptsAppDao(BaseDao): {"type": AppParamType.Resource.value, "value": ResourceType.DB.value}, {"type": AppParamType.Model.value, "value": None}, {"type": AppParamType.Temperature.value, "value": None}, + {"type": AppParamType.MaxNewTokens.value, "value": None}, ], user_code=user_code, published="true", @@ -1178,6 +1181,7 @@ class GptsAppDao(BaseDao): {"type": AppParamType.Resource.value, "value": ResourceType.DB.value}, {"type": AppParamType.Model.value, "value": None}, {"type": AppParamType.Temperature.value, "value": None}, + {"type": AppParamType.MaxNewTokens.value, "value": None}, ], user_code=user_code, published="true", @@ -1199,6 +1203,7 @@ class GptsAppDao(BaseDao): {"type": AppParamType.Resource.value, "value": ResourceType.DB.value}, {"type": AppParamType.Model.value, "value": None}, {"type": AppParamType.Temperature.value, "value": None}, + {"type": AppParamType.MaxNewTokens.value, "value": None}, ], team_context=chat_dashboard_ctx, user_code=user_code, @@ -1225,6 +1230,7 @@ class GptsAppDao(BaseDao): }, {"type": AppParamType.Model.value, "value": None}, {"type": AppParamType.Temperature.value, "value": None}, + {"type": AppParamType.MaxNewTokens.value, "value": None}, ], user_code=user_code, published="true", @@ -1293,6 +1299,7 @@ def native_app_params(): }, {"type": AppParamType.Model.value, "value": None}, {"type": AppParamType.Temperature.value, "value": None}, + {"type": AppParamType.MaxNewTokens.value, "value": None}, ], } chat_with_db_qa = { @@ -1302,6 +1309,7 @@ def native_app_params(): {"type": AppParamType.Resource.value, "value": ResourceType.DB.value}, {"type": AppParamType.Model.value, "value": None}, {"type": AppParamType.Temperature.value, "value": None}, + {"type": AppParamType.MaxNewTokens.value, "value": None}, ], } chat_with_db_execute = { @@ -1311,6 +1319,7 @@ def native_app_params(): {"type": AppParamType.Resource.value, "value": ResourceType.DB.value}, {"type": AppParamType.Model.value, "value": None}, {"type": AppParamType.Temperature.value, "value": None}, + {"type": AppParamType.MaxNewTokens.value, "value": None}, ], } chat_knowledge = { @@ -1323,6 +1332,7 @@ def native_app_params(): }, {"type": AppParamType.Model.value, "value": None}, {"type": AppParamType.Temperature.value, "value": None}, + {"type": AppParamType.MaxNewTokens.value, "value": None}, ], } chat_dashboard = { @@ -1332,6 +1342,16 @@ def native_app_params(): {"type": AppParamType.Resource.value, "value": ResourceType.DB.value}, {"type": AppParamType.Model.value, "value": None}, {"type": AppParamType.Temperature.value, "value": None}, + {"type": AppParamType.MaxNewTokens.value, "value": None}, + ], + } + chat_normal = { + "chat_scene": ChatScene.ChatNormal.value(), + "scene_name": ChatScene.ChatNormal.scene_name(), + "param_need": [ + {"type": AppParamType.Model.value, "value": None}, + {"type": AppParamType.Temperature.value, "value": None}, + {"type": AppParamType.MaxNewTokens.value, "value": None}, ], } return [ @@ -1340,6 +1360,7 @@ def native_app_params(): chat_with_db_execute, chat_knowledge, chat_dashboard, + chat_normal, ] @@ -1354,6 +1375,7 @@ def adapt_native_app_model(dialogue: ConversationVo): ChatScene.ChatWithDbQA.value(), ChatScene.ChatWithDbExecute.value(), ChatScene.ChatDashboard.value(), + ChatScene.ChatNormal.value, ]: return dialogue gpts_dao = GptsAppDao() @@ -1406,3 +1428,4 @@ class AppParamType(Enum): Resource = "resource" Model = "model" Temperature = "temperature" + MaxNewTokens = "max_new_tokens" diff --git a/web/components/flow/canvas-modal/save-flow-modal.tsx b/web/components/flow/canvas-modal/save-flow-modal.tsx index 0434af90f..e8177714b 100644 --- a/web/components/flow/canvas-modal/save-flow-modal.tsx +++ b/web/components/flow/canvas-modal/save-flow-modal.tsx @@ -27,9 +27,14 @@ export const SaveFlowModal: React.FC = ({ const [form] = Form.useForm(); const [messageApi, contextHolder] = message.useMessage(); - const [deploy, setDeploy] = useState(false); + const isDeployed = flowInfo?.state === 'deployed' || flowInfo?.state === 'running'; + const [deploy, setDeploy] = useState(isDeployed); const [id, setId] = useState(router.query.id || ''); + useEffect(() => { + setDeploy(flowInfo?.state === 'deployed' || flowInfo?.state === 'running'); + }, [flowInfo?.state]); + useEffect(() => { setId(router.query.id || ''); }, [router.query.id]); @@ -157,7 +162,6 @@ export const SaveFlowModal: React.FC = ({ { const val = e.target.checked; diff --git a/web/locales/en/chat.ts b/web/locales/en/chat.ts index d11061cee..0461daf94 100644 --- a/web/locales/en/chat.ts +++ b/web/locales/en/chat.ts @@ -17,5 +17,6 @@ export const ChatEn = { assistant: 'Platform Assistant', // DataFun Assistant model_tip: 'Model selection is not supported for the current application', temperature_tip: 'The current application does not support temperature configuration', + max_new_tokens_tip: 'The current application does not support max_new_tokens configuration', extend_tip: 'Extended configuration is not supported for the current application', }; diff --git a/web/locales/en/common.ts b/web/locales/en/common.ts index f72b896b0..05e8d8106 100644 --- a/web/locales/en/common.ts +++ b/web/locales/en/common.ts @@ -249,6 +249,7 @@ export const CommonEn = { start_chat: 'Chat', native_app: 'Native app', temperature: 'Temperature', + max_new_tokens: 'Max output tokens', create_flow: 'Create flow', update: 'Update', native_type: 'App type', @@ -258,6 +259,7 @@ export const CommonEn = { please_select_param: 'Please select parameters', please_select_model: 'Please select model', please_input_temperature: 'Please input the temperature value', + please_input_max_new_tokens: 'Please input the max new tokens', select_workflow: 'Select workflow', please_select_workflow: 'Please select workflow', recommended_questions: 'Recommended questions', diff --git a/web/locales/zh/chat.ts b/web/locales/zh/chat.ts index 7a7eb3e0b..2856fd737 100644 --- a/web/locales/zh/chat.ts +++ b/web/locales/zh/chat.ts @@ -25,5 +25,6 @@ export const ChatZh: Resources['translation'] = { assistant: '平台小助手', // 灵数平台小助手 model_tip: '当前应用暂不支持模型选择', temperature_tip: '当前应用暂不支持温度配置', + max_new_tokens_tip: '当前应用暂不支持max_new_tokens配置', extend_tip: '当前应用暂不支持拓展配置', } as const; diff --git a/web/locales/zh/common.ts b/web/locales/zh/common.ts index 5d4f265d3..93242668a 100644 --- a/web/locales/zh/common.ts +++ b/web/locales/zh/common.ts @@ -256,6 +256,7 @@ export const CommonZh: Resources['translation'] = { native_app: '原生应用', native_type: '应用类型', temperature: '温度', + max_new_tokens: '最大输出token', update: '更新', refreshSuccess: '刷新成功', Download: '下载', @@ -263,6 +264,7 @@ export const CommonZh: Resources['translation'] = { please_select_param: '请选择参数', please_select_model: '请选择模型', please_input_temperature: '请输入temperature值', + please_input_max_new_tokens: '请输入max_new_tokens值', select_workflow: '选择工作流', please_select_workflow: '请选择工作流', recommended_questions: '推荐问题', diff --git a/web/new-components/chat/content/ChatCompletion.tsx b/web/new-components/chat/content/ChatCompletion.tsx index 863877122..6275e0244 100644 --- a/web/new-components/chat/content/ChatCompletion.tsx +++ b/web/new-components/chat/content/ChatCompletion.tsx @@ -19,8 +19,16 @@ const ChatCompletion: React.FC = () => { const chatId = searchParams?.get('id') ?? ''; const { currentDialogInfo, model } = useContext(ChatContext); - const { history, handleChat, refreshDialogList, setAppInfo, setModelValue, setTemperatureValue, setResourceValue } = - useContext(ChatContentContext); + const { + history, + handleChat, + refreshDialogList, + setAppInfo, + setModelValue, + setTemperatureValue, + setMaxNewTokensValue, + setResourceValue, + } = useContext(ChatContentContext); const [jsonModalOpen, setJsonModalOpen] = useState(false); const [jsonValue, setJsonValue] = useState(''); @@ -49,15 +57,18 @@ const ChatCompletion: React.FC = () => { const paramKey: string[] = res?.param_need?.map(i => i.type) || []; const resModel = res?.param_need?.filter(item => item.type === 'model')[0]?.value || model; const temperature = res?.param_need?.filter(item => item.type === 'temperature')[0]?.value || 0.5; + const maxNewTokens = res?.param_need?.filter(item => item.type === 'max_new_tokens')[0]?.value || 2048; const resource = res?.param_need?.filter(item => item.type === 'resource')[0]?.bind_value; setAppInfo(res || ({} as IApp)); setTemperatureValue(temperature || 0.5); + setMaxNewTokensValue(maxNewTokens || 2048); setModelValue(resModel); setResourceValue(resource); await handleChat(initMessage.message, { app_code: res?.app_code, model_name: resModel, ...(paramKey?.includes('temperature') && { temperature }), + ...(paramKey?.includes('max_new_tokens') && { max_new_tokens: maxNewTokens }), ...(paramKey.includes('resource') && { select_param: typeof resource === 'string' ? resource : JSON.stringify(resource), }), diff --git a/web/new-components/chat/input/ChatInputPanel.tsx b/web/new-components/chat/input/ChatInputPanel.tsx index 0342326f5..d3ed1c3d5 100644 --- a/web/new-components/chat/input/ChatInputPanel.tsx +++ b/web/new-components/chat/input/ChatInputPanel.tsx @@ -17,6 +17,7 @@ const ChatInputPanel: React.FC<{ ctrl: AbortController }> = ({ ctrl }) => { appInfo, currentDialogue, temperatureValue, + maxNewTokensValue, resourceValue, refreshDialogList, } = useContext(ChatContentContext); @@ -47,6 +48,7 @@ const ChatInputPanel: React.FC<{ ctrl: AbortController }> = ({ ctrl }) => { await handleChat(userInput, { app_code: appInfo.app_code || '', ...(paramKey.includes('temperature') && { temperature: temperatureValue }), + ...(paramKey.includes('max_new_tokens') && { max_new_tokens: maxNewTokensValue }), select_param, ...(paramKey.includes('resource') && { select_param: diff --git a/web/new-components/chat/input/MaxNewTokens.tsx b/web/new-components/chat/input/MaxNewTokens.tsx new file mode 100644 index 000000000..2a5aac89c --- /dev/null +++ b/web/new-components/chat/input/MaxNewTokens.tsx @@ -0,0 +1,80 @@ +import { ChatContentContext } from '@/pages/chat'; +import { ControlOutlined } from '@ant-design/icons'; +import { InputNumber, Popover, Slider, Tooltip } from 'antd'; +import React, { memo, useContext, useMemo } from 'react'; +import { useTranslation } from 'react-i18next'; + +const MaxNewTokens: React.FC<{ + maxNewTokensValue: number; + setMaxNewTokensValue: (value: number) => void; +}> = ({ maxNewTokensValue, setMaxNewTokensValue }) => { + const { appInfo } = useContext(ChatContentContext); + const { t } = useTranslation(); + + const paramKey: string[] = useMemo(() => { + return appInfo.param_need?.map(i => i.type) || []; + }, [appInfo.param_need]); + + if (!paramKey.includes('max_new_tokens')) { + return ( + +
    + +
    +
    + ); + } + + // 处理 InputNumber 的值变化 + const handleInputChange = (value: number | null) => { + if (value === null || isNaN(value)) { + return; + } + setMaxNewTokensValue(value); + }; + + // 处理 Slider 的值变化 + const handleSliderChange = (value: number) => { + setMaxNewTokensValue(value); + }; + + return ( +
    + ( +
    + + +
    + )} + > + +
    + +
    +
    +
    + {maxNewTokensValue} +
    + ); +}; + +export default memo(MaxNewTokens); diff --git a/web/new-components/chat/input/ToolsBar.tsx b/web/new-components/chat/input/ToolsBar.tsx index 179b2e687..367996f7b 100644 --- a/web/new-components/chat/input/ToolsBar.tsx +++ b/web/new-components/chat/input/ToolsBar.tsx @@ -8,6 +8,7 @@ import Image from 'next/image'; import React, { useContext, useMemo, useState } from 'react'; import { useTranslation } from 'react-i18next'; +import MaxNewTokens from './MaxNewTokens'; import ModelSwitcher from './ModelSwitcher'; import Resource from './Resource'; import Temperature from './Temperature'; @@ -33,8 +34,10 @@ const ToolsBar: React.FC<{ currentDialogue, appInfo, temperatureValue, + maxNewTokensValue, resourceValue, setTemperatureValue, + setMaxNewTokensValue, refreshHistory, setCanAbort, setReplyLoading, @@ -78,6 +81,7 @@ const ToolsBar: React.FC<{ handleChat(lastHuman?.context || '', { app_code: appInfo.app_code, ...(paramKey.includes('temperature') && { temperature: temperatureValue }), + ...(paramKey.includes('max_new_tokens') && { max_new_tokens: maxNewTokensValue }), ...(paramKey.includes('resource') && { select_param: typeof resourceValue === 'string' @@ -170,6 +174,7 @@ const ToolsBar: React.FC<{ +
    {returnTools(rightToolsConfig)}
    diff --git a/web/pages/chat/index.tsx b/web/pages/chat/index.tsx index 8bd26c21a..9fc1dfb16 100644 --- a/web/pages/chat/index.tsx +++ b/web/pages/chat/index.tsx @@ -31,10 +31,12 @@ interface ChatContentProps { currentDialogue: IChatDialogueSchema; // 当前选择的会话 appInfo: IApp; temperatureValue: any; + maxNewTokensValue: any; resourceValue: any; modelValue: string; setModelValue: React.Dispatch>; setTemperatureValue: React.Dispatch>; + setMaxNewTokensValue: React.Dispatch>; setResourceValue: React.Dispatch>; setAppInfo: React.Dispatch>; setAgent: React.Dispatch>; @@ -56,11 +58,13 @@ export const ChatContentContext = createContext({ currentDialogue: {} as any, appInfo: {} as any, temperatureValue: 0.5, + maxNewTokensValue: 1024, resourceValue: {}, modelValue: '', setModelValue: () => {}, setResourceValue: () => {}, setTemperatureValue: () => {}, + setMaxNewTokensValue: () => {}, setAppInfo: () => {}, setAgent: () => {}, setCanAbort: () => {}, @@ -95,11 +99,13 @@ const Chat: React.FC = () => { const [agent, setAgent] = useState(''); const [appInfo, setAppInfo] = useState({} as IApp); const [temperatureValue, setTemperatureValue] = useState(); + const [maxNewTokensValue, setMaxNewTokensValue] = useState(); const [resourceValue, setResourceValue] = useState(); const [modelValue, setModelValue] = useState(''); useEffect(() => { setTemperatureValue(appInfo?.param_need?.filter(item => item.type === 'temperature')[0]?.value || 0.5); + setMaxNewTokensValue(appInfo?.param_need?.filter(item => item.type === 'max_new_tokens')[0]?.value || 2048); setModelValue(appInfo?.param_need?.filter(item => item.type === 'model')[0]?.value || model); setResourceValue( knowledgeId || dbName || appInfo?.param_need?.filter(item => item.type === 'resource')[0]?.bind_value, @@ -302,11 +308,13 @@ const Chat: React.FC = () => { currentDialogue, appInfo, temperatureValue, + maxNewTokensValue, resourceValue, modelValue, setModelValue, setResourceValue, setTemperatureValue, + setMaxNewTokensValue, setAppInfo, setAgent, setCanAbort, diff --git a/web/pages/construct/app/extra/components/NativeApp.tsx b/web/pages/construct/app/extra/components/NativeApp.tsx index e9ed5f523..59e521bc8 100644 --- a/web/pages/construct/app/extra/components/NativeApp.tsx +++ b/web/pages/construct/app/extra/components/NativeApp.tsx @@ -21,6 +21,7 @@ interface FormProps { bind_value?: string; model?: string; temperature?: number; + max_new_tokens?: number; } const NativeApp: React.FC<{ @@ -34,6 +35,7 @@ const NativeApp: React.FC<{ const bindValue = Form.useWatch('bind_value', form); const model = Form.useWatch('model', form); const temperature = Form.useWatch('temperature', form); + const max_new_tokens = Form.useWatch('max_new_tokens', form); const { team_context, param_need } = initValue || {}; @@ -47,6 +49,7 @@ const NativeApp: React.FC<{ form.setFieldValue('chat_scene', team_context?.chat_scene); form.setFieldValue('model', param_need?.find(param => param.type === 'model')?.value); form.setFieldValue('temperature', param_need?.find(param => param.type === 'temperature')?.value); + form.setFieldValue('max_new_tokens', param_need?.find(param => param.type === 'max_new_tokens')?.value); await run(param_need?.find(param => param.type === 'resource')?.value || ''); return [types, models] ?? []; }); @@ -112,6 +115,7 @@ const NativeApp: React.FC<{ [ { type: 'model', value: rawVal.model }, { type: 'temperature', value: rawVal.temperature }, + { type: 'max_new_tokens', value: rawVal.max_new_tokens }, { type: 'resource', value: appTypeOptions @@ -122,7 +126,7 @@ const NativeApp: React.FC<{ ], ], ]); - }, [form, chatScene, bindValue, model, temperature, updateData, appTypeOptions, loading]); + }, [form, chatScene, bindValue, model, temperature, max_new_tokens, updateData, appTypeOptions, loading]); useEffect(() => { const type = (data?.[0]?.[1]?.find((type: any) => type.chat_scene === chatScene) as any)?.param_need?.find( @@ -173,6 +177,9 @@ const NativeApp: React.FC<{ + + + );